运行shudown命令关闭数据库,操作如下:
╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠
sql> shutdown
database closed.
database dismounted.
oracle instance shut down.
sql>
╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠
启动oracle 9i 数据库,操作如下:
╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠
[oracle@linux oracle]$ sqlplus "/ as sysdba"
sql*plus: release 9.2.0.1.0 - production on thu feb 26 16:00:59 2004
copyright (c) 1982,2002, oracle corporation. all rights reserved.
connected to an idle instance.
sql> startup
oracle instance started.
total system global area 235999352 bytes
fixed size 450680 bytes
variable size 201326592 bytes
database buffers 33554432 bytes
redo buffers 667648 bytes
database mounted.
database opened.
sql>
╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠
启动oracle 9i监听程序,操作如下:
说明:oracle的监听程序主要是为客户端的连接提供接口的。
╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠
[oracle@linux oracle]$ lsnrctl
lsnrctl for linux: version 9.2.0.1.0 - production on 26-feb-2004 16:10:17
copyright (c) 1991, 2002, oracle corporation. all rights reserved.
welcome to lsnrctl, type "help" for information.
lsnrctl> start
starting /opt/oracle9i/product/9.2.0/bin/tnslsnr: please wait...
tnslsnr for linux: version 9.2.0.1.0 - production
system parameter file is /opt/oracle9i/product/9.2.0/network/admin/listener.ora
log messages written to /opt/oracle9i/product/9.2.0/network/log/listener.log
listening on: (description=(address=(protocol=ipc)(key=extproc)))
listening on: (description=(address=(protocol=tcp)(host=linux)(port=1521)))
connecting to (description=(address=(protocol=ipc)(key=extproc)))
status of the listener
------------------------
alias listener
version tnslsnr for linux: version 9.2.0.1.0 - production
start date 26-feb-2004 15:28:23
uptime 0 days 0 hr. 0 min. 0 sec
trace level off
security off
snmp off
listener parameter file /opt/oracle9i/product/9.2.0/network/admin/listener.ora
listener log file /opt/oracle9i/product/9.2.0/network/log/listener.log
listening endpoints summary...
(description=(address=(protocol=ipc)(key=extproc)))
(description=(address=(protocol=tcp)(host=linux)(port=1521)))
services summary...
service "orcl.soft" has 1 instance(s).
instance "orcl", status unknown, has 1 handler(s) for this service...
service "plsextproc" has 1 instance(s).
instance "plsextproc", status unknown, has 1 handler(s) for this service...
the command completed successfully
lsnrctl>
╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠
关闭oracle 9i监听程序,操作如下:
╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠
[oracle@linux oracle]$ lsnrctl
lsnrctl for linux: version 9.2.0.1.0 - production on 26-feb-2004 16:15:28
copyright (c) 1991, 2002, oracle corporation. all rights reserved.
welcome to lsnrctl, type "help" for information.
lsnrctl> stop
connecting to (description=(address=(protocol=ipc)(key=extproc)))
the command completed successfully
lsnrctl>
╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠
启动oracle web server,操作如下:
╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠
[oracle@linux oracle]$cd $oracle_home/apache/apache/bin
[oracle@linux oracle]$./startjserv.sh
/opt/oracle9i/product/9.2.0/apache/apache/bin/apachectl start: httpd started
╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠
启动oracle web server后默认的端口号是7777,在客户端的浏览器地址栏中输入