Oracle Application Express 4.0 install

Oracle Application Express 4.0(htmlDB)

参考[url]http://download.oracle.com/docs/cd/E17556_01/doc/install.40/e15513/otn_install.htm#BABFICIA[/url]即可


安装中的一个错误:
执行@apex_epg_config /tmp 后

SQL> @apex_epg_config /tmp
PL/SQL procedure successfully completed.
PL/SQL procedure successfully completed.
old 1: create directory APEX_IMAGES as '&1/apex/images'
new 1: create directory APEX_IMAGES as '/tmp/apex/images'
Directory created.
old 47: if '&IMGUPG' != '' then
new 47: if '' != '' then
old 48: l_mv_folder := '&IMGUPG';
new 48: l_mv_folder := '';
declare
*
ERROR at line 1:
ORA-22288: file or LOB operation FILEOPEN failed
No such file or directory
ORA-06512: at "SYS.XMLTYPE", line 296
ORA-06512: at line 18
Commit complete.
PL/SQL procedure successfully completed.
PL/SQL procedure successfully completed.
timing for: Load Images
Elapsed: 00:00:08.68
Session altered.
PL/SQL procedure successfully completed.
Commit complete.
Session altered.
Directory dropped.


解决办法:
改 /tmp 为你解压apex后所在的目录,例如:/home/oracle/apex,那么/tmp为/home/oracle.
文档做了注释,但地方不对,在@apxldimg.sql是有如下说明:
[quote]Tip:
The above examples assume that you unzipped Oracle Application Express in a directory called TEMP on Windows and tmp on UNIX or Linux.[/quote]


附件是安装文档的拷贝。

2.变量表达法
a)应用页面上一个参数或值,首先在computation中创建一个全局变量,例如P1_RELEASE_VERSION(可以指定定义范围)
&P1_RELEASE_VERSION.
-注意后面的'.'号,用于页面引用
:P1_RELEASE_VERSION
-用于sql中
b)如果想用sql中的其它变量,用#parameters#,如:
select BUGNO,Name from bugdb;

给table的列bugNo加link,可以设置如下:
url:http://www.bug.com/bug=#BUGNO#

3.table翻页后取不到页面的变量值
如:
Table1
ID Name Age
[u]1[/u] a 17

ID有link,如:url:http://www.g.cn/&UID.

问题
UID是当前页面的一个参数,它是一个下拉列表。如果Table1有翻页,点击翻页后,虽然在同一页面内,但此时查看url发现&UID.没有值。

解决办法
给UID设置一computations(类似全局变量),为了保证不影selected value,设置condition,如 UID is null then UID=xx

你可能感兴趣的:(ORACLE)