环境:redhat 5.4 + oracle 10.2.0.1.0

一、HTMLDB 与HTTP server

注:如果机器上已经安装了oracle db,在选择路径时一定要创建一个新的路径,否则无法安装。

oracle 10R2的companion中HTMDB的版本是1.6, HTTP server 的版本是10.2。

如果选择先安装了oracle database 10g companion products 10.2.0.1.0 ----> HTTP SERVER,再手动安装HTMLDB2.0的话,需要手动的创建   Apache/modplsql/conf/marvel.conf文件。文件的格式如下:

Alias /i/ /u01/app/oracle/product/10.2.0/HTMLDB/htmldb/images/<Location /pls/htmldb>Order deny,allowPlsqlDocumentPath docsAllowOverride NonePlsqlDocumentProcedure wwv_flow_file_manager.process_downloadPlsqlDatabaseConnectString localhost.localdomain:1521:zzlhy ServiceNameFormatPlsqlNLSLanguage AMERICAN_AMERICA.ZHS16GBKPlsqlAuthenticationMode BasicSetHandler pls_handlerPlsqlDocumentTablename wwv_flow_file_objects$PlsqlDatabaseUsername HTMLDB_PUBLIC_USERPlsqlDefaultPage htmldbPlsqlDatabasePassword @BfsSgUiCUa0nzndZ+v4iHS8=Allow from all
</Location>

问题一:在安装oracle companion 时会有三种类型选择:

在选择第一个和第三个时都会在打开 oracle http server 时出现以下错误:

opmnctl: starting opmn and all managed processes... opmnctl: opmn start failedCommand = /u01/app/oracle/product/10.2.0/companion/opmn/bin/opmnctl has failedINFO: Configuration assistant "Starting HTTP Server" failed

解决方法:

查看/usr/lib文件夹下是否存在

libgdm.so.2.0.0 和 libdb.so.2

如果只有前者,没有后者,在root用户下执行:

ln -s /usr/lib/libgdbm.so.2.0.0 /usr/lib/libdb.so.2。

然后 在失败的界面点击 retry。

问题二、在安装过程中选择了上图中的第一项:oracle HTML DB 10.2.0.1.0(htmldb的版本是1.6),在安装结束后。可以打开http://localhost:7782主页面,却无法打开http://localhost:7782/pls/htmldb 页面。(注:7782是在文件 %Apache_Home/Apache/conf/httpd.conf).

# Port: The port to which the standalone server listens. For
# ports < 1024, you will need httpd to be run as root initially.
#
# This port is used when starting without SSL
Port 7782
Listen 7782

页面出现以下错误

Service Temporarily Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

同时在$Apache_Home/Apache/log/error*   日志中出现了以下错误。

[Wed May 23 03:46:46 2012] [error] [client 192.168.1.145] [ecid: 1337716006:127.0.0.1:3813:0:1,0] mod_plsql: DAD '/pls/htmldb' is disabled because of misconfiguration. Please refer to the log entries during server startup for more information.

于是打开modplsql日志功能,需要对 $Apache_Home/Apache/modplsql/conf/plsql.conf文件进行配置

PlsqlLogEnable Off    #如果需要查看日志将Off 改成 OnPlsqlLogDirectory /u01/app/oracle/product/10.2.0/OHS/Apache/modplsql/logs  #此为日志的路径

再次访问该页面,在$Apache_Home/modplsql/logs/_pls_htmldb/中产生两个日志文件 2707.log       cid1_2707.log,其中2727.log文件内容如下:

<313794 ms>[ReqStartTime: 23/May/2012:17:05:06]
<313794 ms>Request ID ReqID:2707_1337763906
<313794 ms>(wpx.c,393) Initialized successfully 1
<313794 ms>(wpx.c,690) Shutdown has been called
<313794 ms>Maximum memory allocated by the request is 6721 bytes
<313794 ms>[ReqEndtime: 23/May/2012:17:05:06]
<313794 ms>[ReqExecTime: 0 ms]<313814 ms>[ReqStartTime: 23/May/2012:17:05:06]
<313814 ms>Request ID ReqID:2707_1337763906
<313814 ms>(wpdenv.c,677) script_name='/pls/htmldb' path_info='/htmldb'script_prefix='/pls' dad_name='htmldb'
<313814 ms>(wpdenv.c,790) User-Agent is Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0;  Embedded Web Browser from: http://bsalsa.com/; User-agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; http://bsalsa.com) ( Embedded Web Browser from: http://bsalsa.com/); User-agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; http://bsalsa.com) ( EmbeddedWB http://bsalsa.com/); .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
<313814 ms>(wpdenv.c,1410) dadname = 'htmldb', path_info = 'htmldb'
<313814 ms>(wpdenv.c,1449) Service will NOT use dynamic auth
<313814 ms>(wpx.c,393) Initialized successfully 0
<313814 ms>(wpx.c,315) SetRemoteUser : Remote User set to HTMLDB_PUBLIC_USER for this request.
<313814 ms>(wpx.c,482) Auth info from .APP file is being used
<313814 ms>(wpd.c,1728) Attempting to logon with '(unknown)'
<314104 ms>(wpd.c,1734) Database LogoN olog failed 604
<314104 ms>(wpd.c,1761) Failed connect as (unknown)
<314104 ms>/pls/htmldb/htmldb HTTP-503 ORA-604
<314104 ms>(wpx.c,595) Going to select...
<314104 ms>(wpx.c,690) Shutdown has been called
<314104 ms>Maximum memory allocated by the request is 12070 bytes
<314104 ms>[ReqEndtime: 23/May/2012:17:05:07]
<314104 ms>[ReqExecTime: 290 ms]

cid1_2707.log文件如下:

<313824 ms>[ReqStartTime: 23/May/2012:17:05:06]
<313824 ms>Request ID ReqID:2707_1337763906
<313824 ms>Connecting to database with connect string : "(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost.localdomain)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=zzlhy)))"
<314094 ms>ORA-604 LogOn ORA-00604: error occurred at recursive SQL level 1
ORA-01756: quoted string not properly terminated
<314104 ms>Stale Connection due to Oracle error 604
<314104 ms>Logoff: Closing connection due to stale connection
<314104 ms>[ReqEndtime: 23/May/2012:17:05:07]
<314104 ms>[ReqExecTime: 280 ms]

实际也出现过以下内容:

<5597054 ms>[ReqStartTime: 23/May/2012:04:08:19]
<5597054 ms>Request ID ReqID:4687_1337717299
<5597054 ms>Connecting to database with connect string : "zzlhy"
<5597054 ms>ORA-12154 LogOn ORA-12154: TNS:could not resolve the connect identifier specified
<5597054 ms>Stale Connection due to Oracle error 12154
<5597054 ms>Logoff: Closing connection due to stale connection
<5597054 ms>[ReqEndtime: 23/May/2012:04:08:19]
<5597054 ms>[ReqExecTime: 0 ms]

在$Apache_Home/Apache/logs/error_log 文件中日志如下:

[Wed May 23 17:04:14 2012] [notice] FastCGI: process manager initialized (pid 2702)
[Wed May 23 17:04:15 2012] [notice] Oracle-Application-Server-10g/10.1.2.0.0 Oracle-HTTP-Server configured -- resuming normal operations
[Wed May 23 17:04:15 2012] [notice] Accept mutex: fcntl (Default: sysvsem)
[Wed May 23 17:05:07 2012] [notice] [client 192.168.1.145] [ecid: 1337763906:127.0.0.1:2707:0:3,0] mod_plsql: ORA-604 LogOn ORA-00604: error occurred at recursive SQL level 1\nORA-01756: quoted string not properly terminated
[Wed May 23 17:05:07 2012] [error] [client 192.168.1.145] [ecid: 1337763906:127.0.0.1:2707:0:3,0] mod_plsql: /pls/htmldb/htmldb HTTP-503 ORA-604
[Wed May 23 17:05:07 2012] [error] [client 192.168.1.145] [ecid: 1337763907:127.0.0.1:2718:0:1,0] File does not exist: /u01/app/oracle/product/10.2.0/HTMLDB/Apache/Apache/htdocs/favicon.ico
[Wed May 23 17:05:07 2012] [error] [client 192.168.1.145] [ecid: 1337763907:127.0.0.1:2708:0:1,0] File does not exist: /u01/app/oracle/product/10.2.0/HTMLDB/Apache/Apache/htdocs/favicon.ico

按照OTN上的解决方法

unset LANG

在执行之前,先看一下 $echo $LANG,显示为 en_US.UTF-8。系统为英文操作系统,执行后该变量为空。

$Apache_Home/opmn/bin/opmnctl startall

然后再次访问 http://localhost:7782/pls/htmldb,正常显示。

同时在$Apache_Home/modplsql/logs/_pls_htmldb/cid1_2934.log日志如下:

<2188114 ms>[ReqStartTime: 23/May/2012:17:36:38]
<2188124 ms>Request ID ReqID:2934_1337765798
<2188124 ms>Connecting to database with connect string : "(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost.localdomain)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=zzlhy)))"
<2188254 ms>Doing alter session set nls_language= "AMERICAN" nls_territory= "AMERICA"
<2188254 ms>OpenCursor
<2188264 ms>Altered session to nls_language=AMERICAN nls_territory=AMERICA
<2188264 ms>DeinitCursor
<2188264 ms>OpenCursor
<2188434 ms>Status 1 (rc=0)
<2188434 ms>DeinitCursor
<2188434 ms>OpenCursor
<2188574 ms>DBCharSet is AMERICAN_AMERICA.ZHS16GBK, OWAVersion 10.1.2.0.0, 1001020000 (rc=0)
<2188574 ms>DeinitCursor
<2188574 ms>OpenCursor
<2188574 ms>(wpd.c,1761) Logged in as (unknown)
<2188574 ms>(wpx.c,595) Going to select...
<2188574 ms>(wpx.c,649) Have been asked to execute a request
<2188574 ms>(wppa.c,332) Building Arglist based on Parsed Content from WRB
<2188574 ms>(wppa.c,1012) Enter ParseUrlData
<2188574 ms>GET
<2188574 ms>(wppa.c,1061) Getting Values from QUERY_STRING
<2188574 ms>[headers begin]
<2188574 ms>[headers end]
<2188574 ms>(wppa.c,427) Arglist built, 0 unique entries
<2188574 ms>(wpx.c,656) Going to wpprodb_OciDoBlock...
<2188574 ms>(wpd.c,2746) Cache enabled. Gathering cache information.
<2188574 ms>(wpd.c,2764) Language for this request is en-US,zh-cn;q=0.5
<2188574 ms>(wpd.c,2815) Using user HTMLDB_PUBLIC_USER for caching.
<2188574 ms>cache: Checking for user level hit
<2188574 ms>cache: Cache MISS user - /u01/app/oracle/product/10.2.0/HTMLDB/Apache/modplsql/cache/plsql/411/1650
<2188574 ms>cache: Checking for system level hit
<2188574 ms>cache: Cache MISS system - /u01/app/oracle/product/10.2.0/HTMLDB/Apache/modplsql/cache/plsql/sys/400/1451
<2188574 ms>(wppr.c,459) start working with htmldb
<2188574 ms>(wppr.c,1163) The CALL block: len=908, bind_count=8
declarerc__ number;start_time__ binary_integer;simple_list__ owa_util.vc_arr;complex_list__ owa_util.vc_arr;
beginstart_time__ := dbms_utility.get_time;owa.init_cgi_env(:n__,:nm__,:v__);htp.HTBUF_LEN := 63;null;null;simple_list__(1) := 'sys.%';simple_list__(2) := 'dbms\_%';simple_list__(3) := 'utl\_%';simple_list__(4) := 'owa\_%';simple_list__(5) := 'owa.%';simple_list__(6) := 'htp.%';simple_list__(7) := 'htf.%';if ((owa_match.match_pattern('htmldb', simple_list__, complex_list__, true))) thenrc__ := 2;elsenull;null;htmldb;if (wpg_docload.is_file_download) thenrc__ := 1;wpg_docload.get_download_file(:doc_info);null;null;null;commit;elserc__ := 0;null;null;null;commit;owa.get_page(:data__,:ndata__);end if;end if;:rc__ := rc__;:db_proc_time__ := dbms_utility.get_time - start_time__;
end;
<2188574 ms>(wppr.c,519) Pl/sql block parsed...
<2188574 ms>(wpdenv.c,1526) CGI Environment has 27 vars. Max name len 128, Max Value Len 512
<2188574 ms> PLSQL_GATEWAY(14)=(6)WebDb
<2188574 ms> GATEWAY_IVERSION(17)=(2)2
<2188574 ms> SERVER_SOFTWARE(16)=(60)Oracle-Application-Server-10g/10.1.2.0.0 Oracle-HTTP-Server
<2188574 ms> GATEWAY_INTERFACE(18)=(8)CGI/1.1
<2188574 ms> SERVER_PORT(12)=(5)7782
<2188574 ms> SERVER_NAME(12)=(22)localhost.localdomain
<2188574 ms> REQUEST_METHOD(15)=(4)GET
<2188574 ms> PATH_INFO(10)=(8)/htmldb
<2188574 ms> SCRIPT_NAME(12)=(12)/pls/htmldb
<2188574 ms> REMOTE_ADDR(12)=(14)192.168.1.145
<2188574 ms> SERVER_PROTOCOL(16)=(9)HTTP/1.1
<2188574 ms> REQUEST_PROTOCOL(17)=(5)HTTP
<2188574 ms> REMOTE_USER(12)=(19)HTMLDB_PUBLIC_USER
<2188574 ms> HTTP_USER_AGENT(16)=(478)Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0;  Embedded Web Browser from: http://bsalsa.com/; User-agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; http://bsalsa.com) ( Embedded Web Browser from: http://bsalsa.com/); User-agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; http://bsalsa.com) ( EmbeddedWB http://bsalsa.com/); .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
<2188574 ms> HTTP_HOST(10)=(19)192.168.1.179:7782
<2188574 ms> HTTP_ACCEPT(12)=(268)image/gif, image/jpeg, image/pjpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-ms-application, application/x-ms-xbap, application/vnd.ms-xpsdocument, application/xaml+xml, */*
<2188574 ms> HTTP_ACCEPT_ENCODING(21)=(14)gzip, deflate
<2188574 ms> HTTP_ACCEPT_LANGUAGE(21)=(18)en-US,zh-cn;q=0.5
<2188574 ms> HTTP_ORACLE_ECID(17)=(32)1337765798:127.0.0.1:2934:0:4,0
<2188574 ms> WEB_AUTHENT_PREFIX(19)=(1)
<2188574 ms> DAD_NAME(9)=(7)htmldb
<2188574 ms> DOC_ACCESS_PATH(16)=(5)docs
<2188574 ms> DOCUMENT_TABLE(15)=(23)wwv_flow_file_objects$
<2188574 ms> PATH_ALIAS(11)=(1)
<2188574 ms> REQUEST_CHARSET(16)=(9)AL32UTF8
<2188574 ms> REQUEST_IANA_CHARSET(21)=(6)UTF-8
<2188574 ms> SCRIPT_PREFIX(14)=(5)/pls
<2188574 ms>StrArrPosBind pos 2 Charset Id : 873
<2188574 ms>StrArrPosBind pos 3 Charset Id : 873
<2188574 ms>StrArrPosBind pos 5 Charset Id : 873
<2190104 ms>(wpd.c,1958) Begin header parsing...
<2190104 ms>(wpd.c,2007) Got a line (47 bytes): X-ORACLE-IGNORE: IGNORE
<2190104 ms>(wpd.c,2025) X-ORACLE-IGNORE parsed
<2190104 ms>(wpd.c,2007) Got a line (47 bytes): X-ORACLE-IGNORE: IGNORE
<2190104 ms>(wpd.c,2025) X-ORACLE-IGNORE parsed
<2190104 ms>(wpd.c,2007) Got a line (47 bytes): X-ORACLE-IGNORE: IGNORE
<2190104 ms>(wpd.c,2025) X-ORACLE-IGNORE parsed
<2190104 ms>(wpd.c,2007) Got a line (47 bytes): X-ORACLE-IGNORE: IGNORE
<2190104 ms>(wpd.c,2025) X-ORACLE-IGNORE parsed
<2190104 ms>(wpd.c,2007) Got a line (81 bytes): Location: f?p=4550:1:6827067964513493848
<2190104 ms>(wpd.c,2129) Parsed header - Location:f?p=4550:1:6827067964513493848
<2190104 ms>(wpd.c,2007) Got a line (35 bytes): Content-length: 0
<2190104 ms>(wpd.c,2080) Parsed header - Content-Length:0
<2190104 ms>(wpd.c,2007) Got a line (1 bytes):
<2190104 ms>(wpd.c,2014) End of headers detected
<2190114 ms>(wpcs.c, 76) Executed 'begin dbms_session.reset_package; end;' (rc=0)
<2190114 ms>(wpd.c,1816) Going to close cursor
<2190114 ms>DeinitCursor
<2190114 ms>(wpx.c,662) Normal completion
<2190114 ms>(wpx.c,690) Shutdown has been called
<2190114 ms>(wpx.c,702) Going to logoff
<2190114 ms>Logoff: Pooling this connection
<2190114 ms>[ReqEndtime: 23/May/2012:17:36:40]
<2190114 ms>[ReqExecTime: 1990 ms]<2190114 ms>[ReqStartTime: 23/May/2012:17:36:40]
<2190114 ms>Request ID ReqID:2934_1337765800
<2190114 ms>Connecting to database with connect string : "(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost.localdomain)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=zzlhy)))"
<2190114 ms>OpenCursor
<2190114 ms>(wpd.c,1761) Logged in as (unknown)
<2190114 ms>(wpx.c,595) Going to select...
<2190114 ms>(wpx.c,649) Have been asked to execute a request
<2190114 ms>(wppa.c,332) Building Arglist based on Parsed Content from WRB
<2190114 ms>(wppa.c,1012) Enter ParseUrlData
<2190114 ms>GET
<2190114 ms>(wppa.c,1061) Getting Values from QUERY_STRING
<2190114 ms>[headers begin]
<2190114 ms>[headers end]
<2190114 ms>p=4550:1:6827067964513493848
<2190114 ms>(wppa.c,1506) indx = 1, entryCnt = 1
<2190114 ms>(wppa.c,1827) Listing distinct actual names:
<2190114 ms>(wppa.c,1829)    p
<2190114 ms>(wppa.c,1831) Listing actuals of array with large entries:
<2190114 ms>(wppa.c,1836) Listing distinct actual names and values:
<2190114 ms>(wppa.c,1868)  p, type = 0, value (27) = 4550:1:6827067964513493848
<2190114 ms>(wppa.c,427) Arglist built, 1 unique entries
<2190114 ms>(wpx.c,656) Going to wpprodb_OciDoBlock...
<2190114 ms>(wpd.c,2746) Cache enabled. Gathering cache information.
<2190114 ms>(wpd.c,2764) Language for this request is en-US,zh-cn;q=0.5
<2190114 ms>(wpd.c,2815) Using user HTMLDB_PUBLIC_USER for caching.
<2190114 ms>cache: Checking for user level hit
<2190114 ms>cache: Cache MISS user - /u01/app/oracle/product/10.2.0/HTMLDB/Apache/modplsql/cache/plsql/776/7520
<2190114 ms>cache: Checking for system level hit
<2190114 ms>cache: Cache MISS system - /u01/app/oracle/product/10.2.0/HTMLDB/Apache/modplsql/cache/plsql/sys/058/0713
<2190114 ms>(wppr.c,459) start working with f
<2190114 ms>(wppr.c,1163) The CALL block: len=905, bind_count=9
declarerc__ number;start_time__ binary_integer;simple_list__ owa_util.vc_arr;complex_list__ owa_util.vc_arr;
beginstart_time__ := dbms_utility.get_time;owa.init_cgi_env(:n__,:nm__,:v__);htp.HTBUF_LEN := 63;null;null;simple_list__(1) := 'sys.%';simple_list__(2) := 'dbms\_%';simple_list__(3) := 'utl\_%';simple_list__(4) := 'owa\_%';simple_list__(5) := 'owa.%';simple_list__(6) := 'htp.%';simple_list__(7) := 'htf.%';if ((owa_match.match_pattern('f', simple_list__, complex_list__, true))) thenrc__ := 2;elsenull;null;f(p=>:p);if (wpg_docload.is_file_download) thenrc__ := 1;wpg_docload.get_download_file(:doc_info);null;null;null;commit;elserc__ := 0;null;null;null;commit;owa.get_page(:data__,:ndata__);end if;end if;:rc__ := rc__;:db_proc_time__ := dbms_utility.get_time - start_time__;
end;
<2190114 ms>(wppr.c,519) Pl/sql block parsed...
<2190114 ms>(wpdenv.c,1526) CGI Environment has 28 vars. Max name len 128, Max Value Len 512
<2190114 ms> PLSQL_GATEWAY(14)=(6)WebDb
<2190114 ms> GATEWAY_IVERSION(17)=(2)3
<2190114 ms> SERVER_SOFTWARE(16)=(60)Oracle-Application-Server-10g/10.1.2.0.0 Oracle-HTTP-Server
<2190114 ms> GATEWAY_INTERFACE(18)=(8)CGI/1.1
<2190114 ms> SERVER_PORT(12)=(5)7782
<2190114 ms> SERVER_NAME(12)=(22)localhost.localdomain
<2190114 ms> REQUEST_METHOD(15)=(4)GET
<2190114 ms> QUERY_STRING(13)=(29)p=4550:1:6827067964513493848
<2190114 ms> PATH_INFO(10)=(3)/f
<2190114 ms> SCRIPT_NAME(12)=(12)/pls/htmldb
<2190114 ms> REMOTE_ADDR(12)=(14)192.168.1.145
<2190114 ms> SERVER_PROTOCOL(16)=(9)HTTP/1.1
<2190114 ms> REQUEST_PROTOCOL(17)=(5)HTTP
<2190114 ms> REMOTE_USER(12)=(19)HTMLDB_PUBLIC_USER
<2190114 ms> HTTP_USER_AGENT(16)=(478)Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0;  Embedded Web Browser from: http://bsalsa.com/; User-agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; http://bsalsa.com) ( Embedded Web Browser from: http://bsalsa.com/); User-agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; http://bsalsa.com) ( EmbeddedWB http://bsalsa.com/); .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
<2190114 ms> HTTP_HOST(10)=(19)192.168.1.179:7782
<2190114 ms> HTTP_ACCEPT(12)=(268)image/gif, image/jpeg, image/pjpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-ms-application, application/x-ms-xbap, application/vnd.ms-xpsdocument, application/xaml+xml, */*
<2190114 ms> HTTP_ACCEPT_ENCODING(21)=(14)gzip, deflate
<2190114 ms> HTTP_ACCEPT_LANGUAGE(21)=(18)en-US,zh-cn;q=0.5
<2190114 ms> HTTP_ORACLE_ECID(17)=(32)1337765800:127.0.0.1:2934:0:5,0
<2190114 ms> WEB_AUTHENT_PREFIX(19)=(1)
<2190114 ms> DAD_NAME(9)=(7)htmldb
<2190114 ms> DOC_ACCESS_PATH(16)=(5)docs
<2190114 ms> DOCUMENT_TABLE(15)=(23)wwv_flow_file_objects$
<2190114 ms> PATH_ALIAS(11)=(1)
<2190114 ms> REQUEST_CHARSET(16)=(9)AL32UTF8
<2190114 ms> REQUEST_IANA_CHARSET(21)=(6)UTF-8
<2190114 ms> SCRIPT_PREFIX(14)=(5)/pls
<2190114 ms>StrArrPosBind pos 2 Charset Id : 873
<2190114 ms>StrArrPosBind pos 3 Charset Id : 873
<2190114 ms>StrArrPosBind pos 6 Charset Id : 873
<2191384 ms>(wpd.c,1958) Begin header parsing...
<2191384 ms>(wpd.c,2007) Got a line (47 bytes): X-ORACLE-IGNORE: IGNORE
<2191384 ms>(wpd.c,2025) X-ORACLE-IGNORE parsed
<2191384 ms>(wpd.c,2007) Got a line (47 bytes): X-ORACLE-IGNORE: IGNORE
<2191384 ms>(wpd.c,2025) X-ORACLE-IGNORE parsed
<2191384 ms>(wpd.c,2007) Got a line (47 bytes): X-ORACLE-IGNORE: IGNORE
<2191384 ms>(wpd.c,2025) X-ORACLE-IGNORE parsed
<2191384 ms>(wpd.c,2007) Got a line (47 bytes): X-ORACLE-IGNORE: IGNORE
<2191384 ms>(wpd.c,2025) X-ORACLE-IGNORE parsed
<2191384 ms>(wpd.c,2007) Got a line (77 bytes): Content-type: text/html; charset=UTF-8
<2191384 ms>(wpd.c,2106) Parsed header - Content-Type:text/html; charset=UTF-8
<2191384 ms>(wpd.c,2007) Got a line (41 bytes): Content-length: 6769
<2191384 ms>(wpd.c,2080) Parsed header - Content-Length:6769
<2191384 ms>(wpd.c,2007) Got a line (1 bytes):
<2191384 ms>(wpd.c,2014) End of headers detected
<2191394 ms>(wpcs.c, 76) Executed 'begin dbms_session.reset_package; end;' (rc=0)
<2191394 ms>(wpd.c,1816) Going to close cursor
<2191394 ms>DeinitCursor
<2191394 ms>(wpx.c,662) Normal completion
<2191394 ms>(wpx.c,690) Shutdown has been called
<2191394 ms>(wpx.c,702) Going to logoff
<2191394 ms>Logoff: Pooling this connection
<2191394 ms>[ReqEndtime: 23/May/2012:17:36:41]
<2191394 ms>[ReqExecTime: 1280 ms]

问题三、$Apache_Home/modplsql/conf/文件夹中 marvel.conf和 dads.conf

在htmldb1.6版本中,marvel.conf文件不是必须的,只要dads.conf文件配置正确就行,格式如下:

Alias /i/ /u01/app/oracle/product/10.2.0/HTMLDB/htmldb/images/<Location /pls/htmldb>Order deny,allowPlsqlDocumentPath docsAllowOverride NonePlsqlDocumentProcedure wwv_flow_file_manager.process_downloadPlsqlDatabaseConnectString localhost.localdomain:1521:zzlhy ServiceNameFormatPlsqlNLSLanguage AMERICAN_AMERICA.AL32UTF8PlsqlAuthenticationMode BasicSetHandler pls_handlerPlsqlDocumentTablename wwv_flow_file_objects$PlsqlDatabaseUsername HTMLDB_PUBLIC_USERPlsqlDefaultPage htmldbPlsqlDatabasePassword wangmzAllow from all
</Location>

如果修改以下项时,无法打开 http://localhost:7782/pls/htmldb页面,错误和问题二相同。

PlsqlDatabaseConnectString localhost.localdomain:1521:zzlhy ServiceNameFormat

在$Apache_Home/modplsql/logs/_pls_htmldb/中的日志内容如下:

<4310984 ms>[ReqStartTime: 23/May/2012:18:12:19]
<4310984 ms>Request ID ReqID:3277_1337767939
<4310984 ms>Connecting to database with connect string : "zzlhy"
<4311074 ms>ORA-12154 LogOn ORA-12154: TNS:could not resolve the connect identifier specified
<4311074 ms>Stale Connection due to Oracle error 12154
<4311074 ms>Logoff: Closing connection due to stale connection
<4311074 ms>[ReqEndtime: 23/May/2012:18:12:19]
<4311074 ms>[ReqExecTime: 90 ms]

打开 http://localhost:7782/pls/htmldb/htmldb_admin,用户名必须是admin,密码则是dads.conf中 PlsqlDatabasePassword 的值。

参考:

https://forums.oracle.com/forums/thread.jspa?threadID=552966

oracle10g http server HTMLDB相关推荐

  1. Oracle电子商务套件版本12.1.3自述文件 (Doc ID 1534411.1)

    文档内容 用途 适用范围 详细信息   应用版本更新包   更新后的步骤   包含的修补程序列表   变更记录   文档可访问性 参考 适用于: Oracle Applications DBA - 版 ...

  2. oracle 感叹号,Oracle错误案例:ORA-00922

    ORA-00922 missing or invalid option 0RA-00922: 丢失或者无效的选项 Cause An invalid option was specified in de ...

  3. windows 如何安装oracle 补丁包,Windows Server 2003 上安装 Oracle10g(10.2.0.1)并升级 至补丁(10.2.0.4) 图解...

    Windows Server 2003 上安装 Oracle10g(10.2.0.1)并升级 至补丁(10.2.0.4) 图解 第一部分:安装 Oracle 10.2.0.1 1.选择安装方法 2.选 ...

  4. Windows server 2003下Oracle10g安装图解

    Windows server 2003下Oracle10g安装图解 Oracle是大中型企业.网站.公司.机构等使用的重量级的数据库.本篇给大家介绍其在Windows平台下的安装方法. 注意事项: 1 ...

  5. Oracle10g 64位 在Windows 2008 Server R2 中的安装 解决方案

    背景: 操作系统Windows 2008 Server R2 要安装Oracle10g 64位版本 安装时出现如下错误: 检查操作系统版本:必须是5.0,5.1,5.2 or 6.0.实际为6.1 未 ...

  6. 一个ubuntu server下的oracle10g简单生产库全库备份脚本

    2019独角兽企业重金招聘Python工程师标准>>> #!/bin/sh ### W.X.Z ### 2010.08.20 ### http://my.oschina.net/fe ...

  7. java 连接 oracle 10_java 怎么把原本连接32位oracle10g换到连接64位oracle10g

    经过各种折腾,终于解决了这个问题.参考了各论坛的方案,解决办法如下: 1.格式化电脑,重装操作系统和SQL Server 2012.因为看到有一种说法是64位的SQL Server安装的路径中有pro ...

  8. sql server面试题

    本面试题由2344095 (有心人)整理, 由ashzs((可以包含中文字符)) 解答,感谢二位! 1.磁盘柜上有14块73G的磁盘, 数据库为200G 大小包括日志文件,如何设置磁盘(要说明这14磁 ...

  9. Centos6/7下静默安装oracle10g

    Centos6/7下静默安装Oracle10g 远程安装oracle10g,通过网上资料,不断摸索成功安装.先在本地虚拟机Centos7上做实验,快照恢复快照恢复,安装了几十次成功之后,再在服务器Ce ...

最新文章

  1. LeetCode简单题之长按键入
  2. 中date转为string_股票数据获取篇(持续更新中...)
  3. TRzCheckTree的使用
  4. HDU1824 2-sat
  5. python自动化常用数字_Python全栈自动化系列之Python编程基础(基本数据类型)
  6. 为什么 SQL 程序员也要懂 Python?
  7. HDFS进阶应用 配置 NFS 网关
  8. [转载] Java之可变参数
  9. 【BZOJ】1002: [FJOI2007]轮状病毒 递推+高精度
  10. 静态路由的设置以及缺省路由的发布
  11. [Diary]花草本没有错
  12. 33. 深入解析互联网协议的原理
  13. python飞机大战类_500行代码,教你用python写个微信飞机大战
  14. 2017机器人与自动化领域SCI期刊最新影响因子
  15. 深度学习阅读导航 | 02 Faster R-CNN:基于RPN的实时目标检测
  16. Lorenz系统、简单的Rossler系统和Chua电路系统的混沌吸引子——MATLAB实现
  17. 加速数据无限超高速空间免费虚拟主机无限大小 支持SSL
  18. 相机参数(焦距)初始化对三维重建过程的影响
  19. 针对华硕飞行堡垒系列无法显示网卡驱动的问题
  20. 6个有效激励合作伙伴和促进推荐的小技巧

热门文章

  1. 基于人脸面部检测的口罩识别系统
  2. vue拖拽盒子;vue移动
  3. 25000linux集群源码,一文看懂 Redis5 搭建集群
  4. CSS3使用calc() 计算高度和宽度 vh px
  5. uni-app。APP-PLUS 获取应用缓存,缓存清除
  6. 开源一文多发平台ArtiPub,让文章随处可阅
  7. 【部分翻译】NSBezierPath的基础知识
  8. html加入3d模型的,3dmax怎么给模型添加材质
  9. lisp语言(转自百度)
  10. 服务器修改万兆网卡为千兆,从千兆到万兆 惠普服务器网卡横向导购 上