当遇到设置数据库的字符集的窗体时,不要选择默认的数据库字符类型。字符集(Character Set)是建立Oracle数据库时最重要的一项设定,如果设定的不正确,很可能造成在使用中无法正常存取中文数据。在这里我们最好选择第三个选项的下拉框,选择Simplifiled Chinese ZHS16GBK,按Next进入下一步。
[oracle@Linux oracle]$ sqlplus "/ as sysdba"//以sysdba用户登陆数据库
出现如下字符提示: ―――――――――――――――――――――――――――――― SQL*Plus: Release 9.2.0.1.0 - Production on Thu Feb 26 15:53:31 2004 Copyright(c) 1982,2002, Oracle Corporation. All rights reserved.
Connected to: Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production With the Partitioning OLAP and Oracle Data Mining options JServer Release 9.2.0.1.0 – Production
启动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> ――――――――――――――――――――――――――――――
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.
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
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> ――――――――――――――――――――――――――――――
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,在客户端的浏览器地址栏中输入
http://xxx.xx.xxx.xxx:7777/
其中,xxx.xx.xxx.xxx代表IP地址,或用网络机器名也可。如果浏览器出现 ORACLE HTTP Server的页面,则说明Oracle Web Server运行正常。