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
上一篇: 为何现在很多人反而推崇曹操,批评刘备呢?