//授权Oracle使用lsnrctl start 命令权限
[root@localhost ~]# chmod 777 /var/tmp/.oracle
//切换到oracle用户
[root@localhost ~]# su oracle
//查看Oracle状态
[oracle@localhost root]$ lsnrctl status
TNS-12541: TNS:no listener
//启动
[oracle@localhost root]$ lsnrctl start
Instance "orclhq", status UNKNOWN, has 1 handler(s) for this service...
//连接数据库
[oracle@localhost root]$ sqlplus /nolog
SQL> connect /as sysdba ;
ERROR:
ORA-12162: TNS:net service name is incorrectly specified
SQL> exit;
[oracle@localhost root]$ export ORACLE_SID=orclhq
[oracle@localhost root]$ sqlplus /nolog
SQL> connect /as sysdba ;
SQL> startup mount;
SQL> alter system register;
SQL> exit;
[oracle@localhost root]$ lsnrctl status
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521)))
Services Summary...
Service "orcl11g.us.oracle.com" has 2 instance(s).
Instance "orclhq", status UNKNOWN, has 1 handler(s) for this service...
Instance "orclhq", status READY, has 1 handler(s) for this service...
Service "silentXDB.us.oracle.com" has 1 instance(s).
Instance "orclhq", status READY, has 1 handler(s) for this service...
The command completed successfully
以上完成启动