su -oracle
查看监听器状态:lsnrctl status
如果没有开启则开启:lsnrctl start(如果要关闭监听器:lsnrctl stop)
以管理员身份登入(2步):
sqlplus /nolog
conn /as sysdba
启动操作:
SQL> startup
ORACLE instance started.
Total System
... ...
Database mounted.
Database opened.
关闭操作:
SQL> shutdown
Database closed.
Database dismounted.
ORACLE instance shut down.
退出操作界面:
SQL> quit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options