设为首页 加入收藏

TOP

Oracle APEX installation with ORDS(一)
2015-11-21 01:47:44 来源: 作者: 【 】 浏览:0
Tags:Oracle APEX installation with ORDS
在开始之前,先介绍下Oracle Application Express(APEX)。
Oracle Application Express—APEX for short, or by its former name HTML DB — is a declarative, Web-based RAD (Rapid Application development) tool. It is used to develop native Web-based, data centric applications. It requires no software to install on the client.
自2004年开始,Oracle已经开始这一款产品的开发,现在已升级到5.0。细心的人估计以前注意到,Oracle11g中自带了APEX开头的账户,它们是APEX内置schema, 并且已经绑定到Oracle安装中。也就是说,在你买了Oracle数据库情况下,不要额外的License,就可以放心使用APEX。
出了免费外,它的优势很明显,
1,一切基于web, 架构在Oracle 数据库上, 独立于软硬件环境
2,快速开发,极大缩短开发周期,支持html,css, java script
2,相比OBIEE,SAPBO这样重量级BI报表工具,它更加灵活,可以作为轻量级的BI解决方案
至于我为甚用APEX,一句话领导不给力,不想买主流的 还让我们自己找免费的开发工具做报表,还要专业。擦,想让马儿跑,还不给喂草><||
还好,在以前的公司,接触过着APEX,当时还是版本3。虽然当时只是略懂皮毛,这回在选工具方面给了极大的帮助。 接下来,几个月,开始了死磕APEX的苦逼日子。
说了那么多废话,开始干正事,准备安装!
1,建立数据库环境, 创建两个表空间, 用于安装APEX, 以便日后的管理。


CREATE TABLESPACE APEX datafile‘/u01/app/oracle/oradata/APEX/apex.dbf’
SIZE 500M
EXTENT MANAGEMENT LOCAL
SEGMENT SPACE MANAGEMENT AUTO;


CREATE TABLESPACE APEX_FILES datafile‘/u01/app/oracle/oradata/APEX/apex_files.dbf’
SIZE 500M
EXTENT MANAGEMENT LOCAL
SEGMENT SPACE MANAGEMENT AUTO;


2, 下载解压APEX 安装包, 具体下载地址
http://www.oracle.com/technetwork/developer-tools/apex/overview/index.html
3, 解压完后, 切换到解压后的目录,并以sys登陆 数据库。 这一步目录切换很重要,在APEX安装过程中, 路径用的是相对路径,如果开始没切换目录的话, 过程中, 会报文件找不到的错误
4, 安装APEX, 命令如下


Full development environment. Run apexins.sql passingthe following four arguments in the order shown:
@apexins.sqltablespace_apex tablespace_files tablespace_tempimages
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/.

我采用的是开发环境的安装, 当然,在产品环境,可以选择Runtime environment 模式安装, sql 脚本换成 @apxrtins.sql

之前创建的两个表空间将tablespace_apex, tablespace_files 替换如下:

?

@apexins.sqlAPEX APEX_FILES TEMP /i/

\

这一步会花一段时间安装完如果一切安装顺利的话, 就会出现和截图一样

?

\

当安装完后, 一下三个schema 会被创建,有空的话,可以查看验证下

■ APEX_050000 - The account that owns the Oracle Application Express schema and

metadata.

■ FLOWS_FILES - The account that owns the Oracle Application Express uploaded

files.

■ APEX_PUBLIC_USER - The minimally privileged account is used for Oracle

Application Express configuration with Oracle REST Data Services or Oracle

HTTP Server and mod_plsql.

5, 运行apxchpwd.sql, 它的作用如下, 就是设置APEX的超级管理员。 运行完后, 重启数据库。

Running the apxchpwd.sql script enables your to create or update your Instance

Administrator account. You must run the apxchpwd.sql script in the following

scenarios:

■ New Oracle Application Express installations - Run apxchpwd.sql to create an

Instance Administrator account and password.

■ Converting of a runtime environment to a development environment - Run

apxchpwd.sql to change the Instance Administrator account password.

■ Changing Your Instance Administrator Password -Run apxchpwd.sql to change

the password for an existing Instance Administrator account.

■ Unlocking Your Instance Administrator Account - Run apxchpwd.sql to unlock

an existing Instance Administrator account.

\

6, 设置APEX_PUBLIC_USER, 为了下面配置ORDS 用

解锁

SQL>A

首页 上一页 1 2 3 下一页 尾页 1/3/3
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇ORACLE-013:oracle中kill死锁进程 下一篇oracle&mysql的日志信息

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: