ORACLE 10G HTML DB 2.0 安裝配置

 

1.首先安裝數據庫10g
2.到http://www.oracle.com/technology/software/products/database/oracle10g/htdocs/10201winsoft.html下載Oracle Database 10g Companion CD Release 2 (10.2.0.1.0)和Oracle Application Express (formerly HTML DB) v2.0 , 前者包含了Apache服務器,後者爲html db 2.0的安裝腳本.

3.解壓縮10201_companion_linux32.zip, 執行./runInstaller執行安裝.

4.歡迎窗口直接點下一步, 在接下來的界面上選中第三個選項:Oracle Database 10g Companion Products

5.指定http server的主目錄和安裝路徑,進入下一步.
6.選擇Apache Standalone進入下一步,執行Install.

7. 等待直到安裝完成.
8.安裝 HTML DB 之前,需確保您的 PATH Environment Variable 設置正確。確保將路徑中第一個目錄設爲您的 Oracle 數據庫 10g 主目錄,而不是 Apache HTTP Server 主目錄.

9.解壓縮下載到的htmldb_2.0.zip, 定位到htmldb目錄.

10.打開一個終端, 以sys用戶登陸數據庫. 執行:
SQL> /opt/htmldb/htmldbins.sql oracle SYSAUX SYSAUX TEMP /i/ orcl
其中oracle是密碼, 接下來的三個參數是表空間, /i/是虛擬目錄, orcl是數據庫的SID.

11.安裝程序開始執行安裝. 等待安裝結束.

12.http server的安裝目錄下/Apache/Apache下建一目錄:images.並將/opt/htmldb/ htmldb目錄下的images目錄中的文件拷貝到新創建的images目錄中.


13. 打開/opt/oracle/product/10.2.1/http_1/Apache/modplsql/conf/,創建一文件:marvel.conf ,並在其中添加以下內容:

Alias /i/ /opt/oracle/product/10.2.1/http_1/Apache/Apache/images/
AddType text/xml xbl
AddType text/x-component htc
<Location /pls/htmldb>
SetHandler pls_handler
Order deny,allow
Allow from all
AllowOverride None
PlsqlDatabaseUsername HTMLDB_PUBLIC_USER
PlsqlDatabasePassword oracle
PlsqlDatabaseConnectString localhost.localdomain:1521:orcl
PlsqlDefaultPage htmldb
PlsqlDocumentTablename wwv_flow_file_objects$
PlsqlDocumentPath docs
PlsqlDocumentProcedure wwv_flow_file_manager.process_download
PlsqlAuthenticationMode Basic
PlsqlNLSLanguage AMERICAN_AMERICA.WE8ISO8859P1
</Location>

其中orcl爲安裝時設置的密碼, localhost.localdomain:1521:orcl爲主機:端口:實例.

14.修改/opt/oracle/product/10.2.1/http_1/Apache/Apache/conf/httpd.conf文件,在最後添加: include "/opt/oracle/product/10.2.1/http_1/Apache/modplsql/conf/marvel.conf"
15.轉到/opt/oracle/product/10.2.1/http_1/opmn/bin目錄,執行
opmnctl stopall
opmnctl startall
重啓Apache.
然後打開瀏覽器,輸入以下 URL:

http://主機名:7779/pls/htmldb/htmldb_admin
即可登陸.

注:我在打開網頁 http://主機名:7779/pls/htmldb/htmldb_admin 出現錯誤

You don't have permission to access /pls/htmldb/htmldb_admin on this server

通過查看logs目錄下的日誌 發現是

mod_plsql: /pls/htmldb/htmldb_admin HTTP-403 ORA-1017錯誤

pl/sql登錄HTMLDB_PUBLIC_USER/oracle 報 ORA-28000: the account is locked 錯誤

把用戶HTMLDB_PUBLIC_USER解下鎖即可

參考網頁

http://www.oracle.com/technology/global/cn/obe/10gr2_db_single/install/htmldbinst/htmldbinst_otn.htm

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章