|
|
#1 |
|
In Runtime
Join Date: Jan 2011
Posts: 276
|
Today I have run the command
"su oracle" in my DB server, that time dbstart command is not running fine. After that I have tried using "su - oracle", that time it start without making any issue. Please let me why oracle not started, Any idea |
|
|
|
|
|
#2 |
|
Site Team
Join Date: Mar 2004
Posts: 6,945
|
su (Unix) - Wikipedia, the free encyclopedia
that article describes it. using su oracle will log you in as the oracle user, you switch from being root to being the oracle user. using su - oracle logs you in as the root user assuming the oracle users environment. (e.g. you're still root but you have access to their environment). so, su oracle means that you're the oracle user, whom I assume is not a root user, so you can't execute dbstart. su - oracle logs you in as root within the oracle users environment. you can issue dbstart as you are root, and because you're assuming the oracle users environment all the variables/paths etc are such that the program starts successfully.
__________________
I didn’t fight my way to the top of the food chain to be a vegetarian… Im sick of people saying 'dont waste paper'. If trees wanted to live, they'd all carry guns. "The inherent vice of capitalism is the unequal sharing of blessings; The inherent vice of socialism is the equal sharing of miseries." |
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|