欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Linux下Oracle数据库启动及关闭

程序员文章站 2022-06-30 21:32:13
...

1,启动数据库

 

[oracle@DB-SERVER ~]$ sqlplus /nolog

[省略N多log  ... ]

 

SQL> connect /as sysdba

Connected to an idle instance.

 

SQL> startup

ORACLE instance started.

[省略N多log  ... ]

 

SQL> exit

 

2,启动监听

 

[oracle@DB-SERVER ~]$ lsnrctl start

 

[省略N多log  ... ]

The command completed successfully

 

3,关闭数据库

SQL> connect /as sysdba

Connected to an idle instance.

SQL> shutdwon abort;

 

4,停止监听器

[oracle@DB-SERVER ~]$ lsnrctl stop

 

5,查看监听器状态

[oracle@DB-SERVER ~]$ lsnrctl

 

[省略N多log  ... ]

 

LSNRCTL> status

[省略N多log  ... ]

 

LSNRCTL> exit