MacLochlainns Weblog

Michael McLaughlin's Technical Blog

Site Admin

OEM Stop and Start DB

without comments

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.

  1. Navigate to the DB Console home page and click the Shutdown button.

  1. After clicking the Shutdown button, you’re prompted for an authorized host operating system credentials and database credentials.

  1. You enter the host operating system user and password, and SYS user and password (which is often the same as the SYSTEM password). Click the OK button after entering the host and database credentials.

  1. After validating credentials, you get a confirmation page. Click the Yes button.

  1. 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.

  1. The Refresh button shows the following webpage. You can click the Startup button to restart the database.

  1. 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.

  1. After validating credentials, you get a confirmation page. Click the Yes button.

  1. After validating credentials and starting the database, you are prompted for the database credential to sign on to OEM.

  1. 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.

Written by maclochlainn

September 1st, 2012 at 1:17 am