[toc]
1. 安装需求
必须安装Oracle 10g,11g或者12c
2. 下载Oracle Apex
http://www.oracle.com/technetwork/developer-tools/apex/downloads/index.html
注意:下载需要Oracle帐号
3. 安装Oracle Apex
1. 解包Apex文件
解包”apex_5.1.4.zip”到Oracle的安装路径(C:appWindowsproduct11.2.0dbhome_1).
一般来说,此目录下已经存在Apex文件夹,可以选择先删除后移动或者是直接覆盖.
2. 登录到SQLPlus
打开”CMD”或者”Power Shell”,并且登录到”sys”用户
3. 运用”apexins.sql”脚本.
以下脚本大约需要等待30分钟执行完成.在执行完成以后,会在数据库上创建一些表,你可以通过在SQLPLUS上查询ALL_USERS来检查
-- Run script apexins.sql with parameters:
-- @apexins.sql tablespace_apex tablespace_files tablespace_temp images
-- Where:
-- tablespace_apex is the name of the tablespace for the Oracle Application Express application user.
-- tablespace_files is the name of the tablespace for the Oracle Application Express files user.
-- tablespace_temp is the name of the temporary tablespace or tablespace group.
-- images is the virtual directory for Oracle Application Express images.
-- (To support future Oracle Application Express upgrades, define the virtual image directory as /i/.)
@apexins.sql sysaux sysaux temp /i/
4. 配置Apex
1.你需要重新以sys的身份登录SQLPlus
2.运行”apex_egp_config.sql”,这个脚本会加载”application express”(应用程序表达)到XDB中,然后通过在”Embedded PL/SQL Gateway”(PL/SQL嵌入式网关)上的”application express”(应用程序表达)配置一个DAD.
-- Running script apex_epg_config.sql with parameter:
-- @apex_epg_config.sql <parent of apex directory>
@apex_epg_config.sql C:DevPrograms
3.解锁匿名用户
-- Unlock user anonymous:
alter user anonymous account unlock;
4.运行脚本”apexconf.sql”,这个脚本用于执行”oracle application express”(甲骨文应用程序表达)最后的配置步骤,包括设置”XDB HTTP Listener port”(XDB的HTTP监听端口)和”application express”(应用程序表达)的管理员密码.
-- Running script: @apxconf.sql
-- Setup password for ADMIN
-- Configuring XDB Http Listener port
@apxconf.sql
对于用户,你可以使用默认的ADMIN账户,同时邮箱可以跳过.
对于密码,系统要求你输入一个强类型密码:
密码不符合本网站的密码复杂性规则。
密码必须包含至少6个字符。
密码必须包含至少一个字母字符(abcdefghijklmnopqrstuvwxyzqrmnopqrstuvwxyz)。
密码必须包含至少一个标点符号(!$%&()’+,-/:?)。
密码必须包含至少一个大写字母字符。
密码必须包含至少一个小写字母的字符。
端口默认为8080.