Archive for the ‘Oracle Enterprise Manager’ tag
OEM Stop and Start DB
Somebody posed a question about starting and stopping the database from within the OEM tool as the SYSTEM
rather than the SYS
user. There’s actually a simple trick to do that, you connect to OEM as the SYSTEM
user but when you startup or shutdown the database, you reconnect for those tasks as the SYS
user.
You can use the Windows services (services.msc
) to start or stop the OEM service. Alternatively, you can do it at the command-line. Instructions for starting and stopping OEM from the command-line are found in this older post.
I put together these screen shots from the point where the DBConsole and database are up and running. That means they show you how to shutdown the database before re-starting it.
- Navigate to the DB Console home page and click the Shutdown button.
- After clicking the Shutdown button, you’re prompted for an authorized host operating system credentials and database credentials.
- You enter the host operating system user and password, and
SYS
user and password (which is often the same as theSYSTEM
password). Click the OK button after entering the host and database credentials.
- After validating credentials, you get a confirmation page. Click the Yes button.
- Since a shutdown can take more than a few moments, you get the following screen. Click the Refresh button when you want to check whether the database is shutdown.
- The Refresh button shows the following webpage. You can click the Startup button to restart the database.
- Clicking the Startup button re-prompts you for the same host and database credentials as used during the shutdown operation. Click the OK button to continue.
- After validating credentials, you get a confirmation page. Click the Yes button.
- After validating credentials and starting the database, you are prompted for the database credential to sign on to OEM.
- After validating credentials and starting the database, you are prompted for the database credential to sign on to OEM. Enter the credentials and click the Login button to connect to OEM.
Hopefully, this answers the questions and helps those who are curious to see the screens before trying the process.