APEX的安装

安装APEX还算简单,一步步按照Installation guide就可以。我是装了Oracle 10g R2版本的数据库,无法使用embedded pl/sql gateway(EPG)方式。只能按照手册中的ScenarioDownloading from OTN and Configuring Oracle HTTP Server来安装。先要去OTN上Oracle DB 11i R1第一个win32版本的最底下,下载OHS (Oracle Http Server) 就是Apache而非Oracle Application Server:

http://www.oracle.com/technology/software/products/database/oracle11g/111060_win32soft.html

Oracle HTTP Server (Apache 2.0) (10.1.3.3.0) for Microsoft Windows (32-bit)

iAS_101330_Apache2_Modplsql2_win32.zip

装完以后发现启动opmn进程很吃CPU啊。三层架构都在一台本本,够累的。以后用xe或者11g可以试试EPG的2层架构,估计CPU会轻松些。

[@more@]

安装APEX还算简单,一步步按照Installation guide就可以。我是装了Oracle 10g R2版本的数据库,无法使用embedded pl/sql gateway(EPG)方式。只能按照手册中的ScenarioDownloading from OTN and Configuring Oracle HTTP Server来安装。先要去OTN上Oracle DB 11i R1第一个win32版本的最底下,下载OHS (Oracle Http Server) 就是Apache而非Oracle Application Server:

http://www.oracle.com/technology/software/products/database/oracle11g/111060_win32soft.html

Oracle HTTP Server (Apache 2.0) (10.1.3.3.0) for Microsoft Windows (32-bit)

iAS_101330_Apache2_Modplsql2_win32.zip

装完以后发现启动opmn进程很吃CPU啊。三层架构都在一台本本,够累的。以后用xe或者11g可以试试EPG的2层架构,估计CPU会轻松些。

这里是Oracle的步骤:

· Step 1: Install the Oracle Database and Complete Pre-installation Tasks

· Step 2: Download and Install Oracle Application Express

· Step 3: Change the Password for the ADMIN Account

· Step 4: Restart Processes

· Step 5: Configure Oracle HTTP Server Distributed with Oracle Database 11g or Oracle Application Server 10g

· Step 6: Enable Network Services in Oracle Database 11g

· Step 7: Security Considerations

· Step 8: About Running Oracle Application Express in Other Languages

· Step 9: About Managing JOB_QUEUE_PROCESSES

· Step 10: About Obfuscating PlsqlDatabasePassword Parameter

· Step 11: Create a Workspace and Add Oracle Application Express Users

下面说明了一下以上的步骤,有特别的地方会细说:

1,安装前要注意一下JVM,以及PL/SQL Web Toolkit包的要求,没达标的要去下载升级;

2,下载apex3.2的包解压后,DOS进入此目录,然后登录sqlplus,并输入@apexins SYSAUX SYSAUX TEMP /i/来安装;有两种环境,一种是Runtime,一种是开发兼Runtime,当然是选后者。

3, 使用apxchpwd.sql修改apex的admin密码;

4, 重启一下;

5,解锁apex_public_user用户帐号,并修改密码。

把前面下载并解压的apex3.2包中的images文件夹复制到D:OracleOraHTTPohs下。我的Apache(OHS) Home是D:OracleOraHTTP。

编辑dads.conf文件,这很重要,将来系统起来后发现图片显示不全就是因为这里设置没设好。下面是我的设置,注意第一行最后的那个斜杠!!!

Alias /i/ "D:OracleOraHTTPohsimages/"

AddType text/xml xbl

AddType text/x-component htc

Order deny,allow

PlsqlDocumentPath docs

AllowOverride None

PlsqlDocumentProcedure wwv_flow_file_mgr.process_download

PlsqlDatabaseConnectString MY_PC_NAME:1521:ORCL_TNS

PlsqlNLSLanguage AMERICAN_AMERICA.AL32UTF8

PlsqlAuthenticationMode Basic

SetHandler pls_handler

PlsqlDocumentTablename wwv_flow_file_objects$

PlsqlDatabaseUsername APEX_PUBLIC_USER

PlsqlDefaultPage apex

PlsqlDatabasePassword apex_public

PlsqlRequestValidationFunction wwv_flow_epg_include_modules.authorize

Allow from all

设置完毕,可以开/关opmn:

D:OracleOraHTTPopmnbinopmnctl stopproc ias-component=HTTP_Server

D:OracleOraHTTPopmnbinopmnctl startproc ias-component=HTTP_Server

6, 由于不是11g所以不用管这一步;

7, 不是11g r2所以跳过;

8, 可以考虑使用SSL提高安全性,由于是自己玩,暂时不考虑这么复杂;

9, 装了一个中文包,满足中国人自己的需求,文件在解压apex的目录下,如D:Oracleapexbuilderzh-cn;

10,看看数据库启动文件JOB_QUEUE_PROCESSES 是否需要改,我的不用;

11,因为D:OracleOraHTTPohsmodplsqlconf下的dads.conf用了apex_public_user的明文密码,所有可以用个工具把这个密码变成一个字符串。到DOS进入

D:OracleOraHTTPohsmodplsqlconf目录下,然后运行下面:

set ORACLE_HOME=D:OracleOraHTTP

set PATH=D:OracleOraHTTPperl5.8.3binMSWin32-x86-multi-thread;%PATH%

perl dadTool.pl –o

再打开dads.conf发现明文密码变什么了。

12,进入http://hostname:port/pls/apex/apex_admin创建workspace和相关用户,ok了。

完成以后,可以到apex.oracle.com下载一些demo包,看看asktom,电子商务网站,或者issue tracker

系统,导入自己的apex后,可以学习他们的源代码。而且oracle提供了很多的范例可以学习。2 Day + Application Express Developer's Guide,Application Express Advanced Tutorials可以一步步熟悉它的使用方法。

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/1513/viewspace-1031252/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/1513/viewspace-1031252/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值