[root@localhost ~]$ su - oracle
[oracle@localhost ~]$ export ORACLE_SID=zjidc
[oracle@localhost ~]$ sqlplus /nolog
SQL*Plus: Release 11.2.0.1.0 Production on Tue Nov 10 14:57:50 2015
Copyright (c) 1982, 2009, Oracle. All rights reserved.
SQL> connect /as sysdba
Connected to an idle instance.
SQL> startup
ORACLE instance started.
Total System Global Area 521936896 bytes
Fixed Size 2214936 bytes
Variable Size 318768104 bytes
Database Buffers 192937984 bytes
Redo Buffers 8015872 bytes
Database mounted.
Database opened.
<pre name="code" class="plain">2、关闭数据库:
oracle@suse92:~> sqlplus /nolog
SQL*Plus: Release 9.2.0.4.0 - Production on Fri Jan 20 02:29:37 2006
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
SQL> connect /as sysdba
Connected to an idle instance.
SQL> shutdwon abort;
3、启动监听器
oracle@suse92:~> lsnrctl start
4、停止监听器
oracle@suse92:~> lsnrctl stop
5、查看监听器状态
lsnrctl">oracle@suse92:~>lsnrctl
LSNRCTL> status
LSNRCTL> exit