cancel
Showing results for 
Search instead for 
Did you mean: 

stop database via command line

Former Member
0 Kudos

Hi,

I need to stop and oracle database via command line, but I´m not secure how to do it.

More thanks

Accepted Solutions (1)

Accepted Solutions (1)

former_member204746
Active Contributor
0 Kudos

start:

brconnect -c -u / -f dbstart

stop:

brconnect -c -u / -f dbshut

Answers (1)

Answers (1)

stefan_koehler
Active Contributor
0 Kudos

Hi Ruben,

Start database


shell> sqlplus / as sysdba
SQL> startup;

Stop database


shell> sqlplus / as sysdba
SQL> shutdown immediate;

Documentation: http://download.oracle.com/docs/cd/B19306_01/server.102/b14357/toc.htm

Regards

Stefan

Former Member
0 Kudos

But when i execute the sqlplus I get command not found. In which folder I can found the executable?

stefan_koehler
Active Contributor
0 Kudos

Hello Ruben,

on which platform are you running oracle?

The whole environment for the oracle instance is not set for every user .. it depends on the platform (Windows, Linux, Unix, etc.) which user you have to use.

Regards

Stefan

Former Member
0 Kudos

It´s running on UNIX

stefan_koehler
Active Contributor
0 Kudos

Hello Ruben,

in this case you have to switch to the user ora<SID> before you run the sqlplus command.


shell> su - ora<SID>     (for example "su - orap01", if your SID is P01)
shell> sqlplus / as sysdba
....
....

Regards

Stefan