linux下启动关闭Oracle 9i
<P>使用Oracle 9i 数据库 <BR>安装完毕后Oracle数据库会自动启动,下面我们用实际超作来说明一下Oracle 9i数据库的启动和关闭。 <BR>以Oracle用户登陆数据库,开个控制台窗口; <BR>关闭Oracle 9i 数据库 <BR>$ sqlplus " / as sysdba" //以sysdba用户登陆数据库 <BR>SQL*Plus: Release 9.0.1.0.0 - Production on Wed Jul 11 15:35:31 2001 <BR>(c) Copyright 2001 Oracle Corporation. All rights reserved. </P><P>Connected to: <BR>Oracle9i Enterprise Edition Release 9.0.1.0.0 - Production <BR>With the Partitioning option <BR>JServer Release 9.0.1.0.0 - Production <BR>运行shudown命令关闭数据库 <BR>SQL> shutdown <BR>Database closed. <BR>Database di***ounted. <BR>Oracle instance shut down. <BR>SQL> <BR>启动Oracle 9i 数据库 <BR>$ sqlplus " / as sysdba" <BR>SQL*Plus: Release 9.0.1.0.0 - Production on Wed Jul 11 16:00:59 2001 <BR>(c) Copyright 2001 Oracle Corporation. All rights reserved. <BR>Connected to an idle instance. <BR>SQL> startup <BR>Oracle instance started. <BR>Total System Global Area 336356520 bytes <BR>Fixed Size 279720 bytes <BR>Variable Size 268435456 bytes <BR>Database Buffers 67108864 bytes <BR>Redo Buffers 532480 bytes <BR>Database mounted. <BR>Database opened. <BR>SQL> </P>
<P><BR>启动Oracle 9i监听程序 <BR>Oracle的监听程序主要是为客户端的连接提供接口 <BR>$ lsnrctl <BR>LSNRCTL for Linux: Version 9.0.1.0.0 - Production on 11-JUL-2001 16:12:17 <BR>Copyright (c) 1991, 2001, Oracle Corporation. All rights reserved. <BR>Welcome to LSNRCTL, type "help" for information. <BR>LSNRCTL> start <BR>Starting /Oracle/product/9.0.1/bin/tnslsnr: please wait... <BR>TNSLSNR for Linux: Version 9.0.1.0.0 - Production <BR>System parameter file is /Oracle/product/9.0.1/network/admin/listener.ora <BR>Log messages written to /Oracle/product/9.0.1/network/log/listener.log <BR>Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC))) <BR>Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=wing)(PORT=1521))) <BR>Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC))) <BR>STATUS of the LISTENER <BR>------------------------ <BR>Alias LISTENER <BR>Version TNSLSNR for Linux: Version 9.0.1.0.0 - Production <BR>Start Date 11-JUL-2001 16:12:58 <BR>Uptime 0 days 0 hr. 0 min. 0 sec <BR>Trace Level off <BR>Security OFF <BR>SNMP OFF <BR>Listener Parameter File /Oracle/product/9.0.1/network/admin/listener.ora <BR>Listener Log File /Oracle/product/9.0.1/network/log/listener.log <BR>Listening Endpoints Summary... <BR>(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC))) <BR>(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=wing)(PORT=1521))) <BR>Services Summary... <BR>Service "PLSExtProc" has 1 instance(s). <BR>Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service... <BR>Service "Oracle" has 1 instance(s). <BR>Instance "Oracle", status UNKNOWN, has 1 handler(s) for this service... <BR>The command completed successfully <BR>LSNRCTL> </P>
<P><BR>关闭Oracle 9i监听程序 <BR>$ lsnrctl <BR>LSNRCTL for Linux: Version 9.0.1.0.0 - Production on 11-JUL-2001 16:12:17 <BR>Copyright (c) 1991, 2001, Oracle Corporation. All rights reserved. <BR>Welcome to LSNRCTL, type "help" for information. <BR>LSNRCTL> stop <BR>Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC))) <BR>The command completed successfully <BR>LSNRCTL> </P>
<P>关闭Oracle Web Server <BR>cd $Oracle_HOME/Apache/Apache/bin <BR>./stopJServ.sh <BR>/Oracle/product/9.0.1/Apache/Apache/bin/apachectl stop: httpd stopped </P>
<P><BR>启动Oracle Web Server <BR>cd $Oracle_HOME/Apache/Apache/bin <BR>$ ./startJServ.sh <BR>/Oracle/product/9.0.1/Apache/Apache/bin/apachectl start: httpd started </P>
<P>启动Oracle Web Server后默认的端口号是7777 <BR>在客户端浏览器地址栏输入<A href="http://xxx.xx.xxx.xxx:7777/">http://xxx.xx.xxx.xxx:7777/</A> <BR>如果浏览器出现以下界面则表示Oracle Web Server运行正常 </P>
<P> </P>
<P><BR> </P>
<P> </P> 谢谢楼主,学习
页:
[1]