Unix下Oracle的启动步骤

Unix下Oracle的启动步骤
首先看看listener是否启动

$ lsnrctl service

LSNRCTL for Intel SVR4 UNIX: Version 8.1.6.0.0 - Production on 02-APR-2001 11:14:08

(c) Copyright 1998, 1999, Oracle Corporation. All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC)))
TNS-01103: Protocol specific component of the address is incorrectly specified
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
Intel SVR4 UNIX Error: 146: Connection refused

启动listener服务
$ lsnrctl start

LSNRCTL for Intel SVR4 UNIX: Version 8.1.6.0.0 - Production on 02-APR-2001 11:14:14

(c) Copyright 1998, 1999, Oracle Corporation. All rights reserved.

Starting /home/oracle/product/816/bin/tnslsnr: please wait...

TNSLSNR for Intel SVR4 UNIX: Version 8.1.6.0.0 - Production
System parameter file is /home/oracle/product/816/network/admin/listener.ora
Log messages written to /home/oracle/product/816/network/log/listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=solaris1.163.com)(PORT=1521)))

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Intel SVR4 UNIX: Version 8.1.6.0.0 - Production
Start Date 02-APR-2001 11:14:14
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security OFF
SNMP OFF
Listener Parameter File /home/oracle/product/816/network/admin/listener.ora
Listener Log File /home/oracle/product/816/network/log/listener.log
Services Summary...
PLSExtProc has 1 service handler(s)
s8o8 has 1 service handler(s)
The command completed successfully


$ svrmgrl

Oracle Server Manager Release 3.1.6.0.0 - Production

Copyright (c) 1997, 1999, Oracle Corporation. All Rights Reserved.

Oracle8i Enterprise Edition Release 8.1.6.0.0 - Production
With the Partitioning option
JServer Release 8.1.6.0.0 - Production

SVRMGR> connect internal
Connected.
SVRMGR>
SVRMGR> startup
ORACLE instance started.
到这里,oracle就算起来了,退出就成了 :)

转贴自:http://www.gbunix.com/htmldata/2004_07/2/5/article_419_1.html

你可能感兴趣的:(Unix/Linux,Reference)