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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值