前面我們提到了,數(shù)據(jù)庫的字符類型在數(shù)據(jù)庫超作中是很要害的,這一步就是設(shè)置數(shù)據(jù)庫的字符集,前面我們設(shè)置的是NLS_LANG=american_america.ZHS16GBK,所以我們選擇Simplifiled Chinese ZHS16GBK,按Next進(jìn)入下一步;
點擊查看大圖
因為我們在前面選擇了EnterPRise的版本進(jìn)行安裝,系統(tǒng)會安裝Oracle Web Server,安裝Oracle Web Server需要使用JDK,我們使用Browse按鈕把前面安裝JDK的目錄指定好以便系統(tǒng)能在安裝過程中找到需要的應(yīng)用程序,確認(rèn)按Next進(jìn)入下一步; 進(jìn)行完所有選擇后,系統(tǒng)會給出一個安裝概要,這里列舉了你選擇安裝的組件,確認(rèn)你要安裝的東西都在列表內(nèi)后,安Install鈕進(jìn)行安裝,假如不需要安裝其它的程序,則按Exit退出安裝界面。 Oracle的安裝速度視服務(wù)器的性能一般來說需要裝30分鐘的時間,在安裝過程中可能會有對話框彈出,對話框內(nèi)會有一些需要root運行的命令要求你執(zhí)行,這時候另外開一個控制臺窗口,su成root并運行提示框內(nèi)的命令,運行完畢后按確定繼續(xù)安裝;
點擊查看大圖
安裝完數(shù)據(jù)庫后系統(tǒng)會運行配置工具對系統(tǒng)進(jìn)行網(wǎng)絡(luò)和數(shù)據(jù)庫的配置。配置完成后,系統(tǒng)會自動啟動數(shù)據(jù)庫,并開啟Oracle Web Server。所有配置完后,按Next完成安裝。
點擊查看大圖
假如一切正常,OUI會出現(xiàn)The Installation Of Oracle9i Database Was sUCcessful.的字樣,這表明你的Oracle9i數(shù)據(jù)庫安裝正常了,假如需要安裝其它的內(nèi)容按Next Install鈕進(jìn)行其它內(nèi)容的安裝,否則按Exit退出安裝。 使用Oracle 9i 數(shù)據(jù)庫 安裝完畢后Oracle數(shù)據(jù)庫會自動啟動,下面我們用實際超作來說明一下Oracle 9i數(shù)據(jù)庫的啟動和關(guān)閉。 以oracle用戶登陸數(shù)據(jù)庫,開個控制臺窗口; 關(guān)閉Oracle 9i 數(shù)據(jù)庫 [oracle@wing /oracle]$ sqlplus " / as sysdba" //以sysdba用戶登陸數(shù)據(jù)庫
SQL*Plus: Release 9.0.1.0.0 - Production on Wed Jul 11 15:35:31 2001
(c) Copyright 2001 Oracle Corporation. All rights reserved. Connected to: Oracle9i Enterprise Edition Release 9.0.1.0.0 - Production With the Partitioning option JServer Release 9.0.1.0.0 - Production 運行shudown命令關(guān)閉數(shù)據(jù)庫 SQL> shutdown Database closed. Database dismounted. ORACLE instance shut down. SQL> 啟動Oracle 9i 數(shù)據(jù)庫 [oracle@wing bin]$ sqlplus " / as sysdba"
SQL*Plus: Release 9.0.1.0.0 - Production on Wed Jul 11 16:00:59 2001
(c) Copyright 2001 Oracle Corporation. All rights reserved.
Connected to an idle instance.
SQL> startup ORACLE instance started.
Total System Global Area 336356520 bytes Fixed Size 279720 bytes Variable Size 268435456 bytes Database Buffers 67108864 bytes Redo Buffers 532480 bytes Database mounted. Database opened. SQL>
TNSLSNR for Linux: Version 9.0.1.0.0 - Production System parameter file is /oracle/product/9.0.1/network/admin/listener.ora Log messages written to /oracle/product/9.0.1/network/log/listener.log Listening on: (DESCRipTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC))) Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=wing)(PORT=1521)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC))) STATUS of the LISTENER ------------------------ Alias LISTENER Version TNSLSNR for Linux: Version 9.0.1.0.0 - Production Start Date 11-JUL-2001 16:12:58 Uptime 0 days 0 hr. 0 min. 0 sec Trace Level off Security OFF SNMP OFF Listener Parameter File /oracle/product/9.0.1/network/admin/listener.ora Listener Log File /oracle/product/9.0.1/network/log/listener.log Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC))) (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=wing)(PORT=1521))) Services Summary... Service "PLSExtProc" has 1 instance(s). Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service... Service "oracle" has 1 instance(s). Instance "oracle", status UNKNOWN, has 1 handler(s) for this service... The command completed successfully LSNRCTL> 關(guān)閉Oracle 9i監(jiān)聽程序 [oracle@wing bin]$ lsnrctl
LSNRCTL for Linux: Version 9.0.1.0.0 - Production on 11-JUL-2001 16:12:17
Copyright (c) 1991, 2001, 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>
關(guān)閉Oracle Web Server cd $ORACLE_HOME/Apache/Apache/bin ./stopJServ.sh /oracle/product/9.0.1/Apache/Apache/bin/apachectl stop: httpd stopped
啟動Oracle Web Server cd $ORACLE_HOME/Apache/Apache/bin[oracle@wing bin]$ ./startJServ.sh /oracle/product/9.0.1/Apache/Apache/bin/apachectl start: httpd started 啟動Oracle Web Server后默認(rèn)的端口號是7777 在客戶端瀏覽器地址欄輸入http://xxx.xx.xxx.xxx:7777/ 假如瀏覽器出現(xiàn)以下界面則表示Oracle Web Server運行正常。