在Oracle 10g 上安装 Apex 4.0

WBOY
풀어 주다: 2016-06-07 16:58:05
원래의
1191명이 탐색했습니다.

本文主要介绍在Oracle 10g 上安装 Oracle Apex 4.0以及如何安装语言包。一、环境Oracle 10g 10.2.0.4 Apex 4.0.1 Apex Listener

摘要:

本文主要介绍在Oracle 10g 上安装 Oracle Apex 4.0以及如何安装语言包。

一、环境

Oracle 10g  10.2.0.4
Apex 4.0.1
Apex Listener 1.0.2
Window 2003
JDK 6 update22
J2EE 6
GlassfishV3 3.0.1
      Oracle 10g需要安装下面的组件

Oracle XML DB
Oracle Text 

二、步骤

1、安装 JDK

2、安装Apex 4.0.1

解压缩

将目录变更到 apex跟目录 /apex_4.0.1/apex/下

使用 Oracle 的sys用户登陆sqlplus,

@apexins 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.

– images is the virtual directory for Oracle Application Express images. To

support future Oracle Application Express upgrades, define the virtual

image directory as /i/.

Example:

@apexins SYSAUX SYSAUX TEMP /i/

sys用户重新登陆sqlplus

设置Admin密码

@apxchpwd

Configure APEX_PUBLIC_USER Account

Unlocking the APEX_PUBLIC_USER Account

ALTER USER APEX_PUBLIC_USER ACCOUNT UNLOCK

Changing the Password for the APEX_PUBLIC_USER Account

ALTER USER APEX_PUBLIC_USER IDENTIFIED BY new_password

3、安装 GlassfishV3

按照安装文件提示安装。

To Start the Default Domain

as-install/bin/asadmin start-domain

Copy Oracle Application Express Images

1. Create folder i in /domains//docroot .

2. Copy all files and its folders from Oracle Application Express images directory /images to /domains//docroot/i .

To start the Administration Console, type the URL in your browser.

The default URL for the Administration Console is:

:4848

如果admin console 加载缓慢的话,执行下面步骤。执行缓慢的原因,glassfish要更新,下面步骤是去掉更新模块。

参考 in OGS 3.0.1 Admin Console very slow

停止glassfish的默认Dmain

* cd glassfishv3/glassfish

* mv modules/console-updatecenter-plugin.jar modules/console-updatecenter-plugin.jar.ORIG

* rm -r domains/domain1/osgi-cache

* rm -r domains/domain1/generated

4、部署 Apex Listener 1.0.2

Administration Console

1. To start the Administration Console, type the URL in your browser.

The default URL for the Administration Console is:

:4848

2. If prompted, log in to the Administration Console.

You will be prompted to log in if you chose to require an administration password at the time GlassFish server was installed.

 

Users and Roles

The APEX Listener requires users to be assigned roles to access the Application Express Listener Administration. For additional information on Security Realms, Users, Group List, Roles, refer to the Sun GlassFish Enterprise Server documentation.

Create Roles

The APEX Listener requires roles to be assigned to the users to access the Application Express Listener Administration. The two types of roles are: Admin

The user with an APEX Listener Admin role has permission to access the APEX Listener Administration Page. Manager

The user with an APEX Listener Manager role has permission to access the APEX Listener Status Information Page.

You can enable a default principal-to-role mapping on the Application Server using the Admin Console if the group list names is defined the same as the role names.

1. On the navigation tree, select Configuration, then Security. The Security page is displayed.

2. Click on the checkbox next to Default Principal to Role Mapping to enable this option.

3. Click on the Save button.

Note: Enabling the Default Principal to Role requires the Group List to be the same as the role name as described below when creating the user.

Create Users

You will need to create users to access the APEX Listener Administration page and Status page.

1. In the navigation tree, expand the Configuration node.

2. Expand the Security node.

3. Expand the Realms node.

4. Select the realm to add your user (e.g., file)

5. The Edit Realm page opens.

6. On the Edit Realm page, click the Manage Users button.

7. The File Users page opens.

8. On the File Users page, click New.

9. The New File Realm User page opens.

10. In the User ID field, type the name of the APEX Listener administrator: adminlistener

11. In the Group List field, type the role to which the user belongs: Admin

12. In the Password field, type a unique password.

13. In the Confirm New Password field, type the user password again.

14. Click OK.

15. Create another user for the APEX Listener manager:

a. User ID: managerlistener

b. Group List: Manager

c. Click OK when you are done.

 

Deployment

Before You Begin

The Application Express Listener file, apex.war, must be available before you start this task.

1. On the navigation tree, click on Application node. The Applications page is displayed.

2. Click the Deploy button. The Deploy Applications or Modules page is displayed.

3. Select Packaged File to be Uploaded to the Server, and click Browse.

4. Navigate to the location of the apex.war file, select the file, and click Open. You are returned to the Deploy Applications or Modules page.

5. Specify and select the following:

a. Type: Web Application

b. Context Root: apex

c. Application Name: apex

d. Status: Enabled

e. Description: Application Express Listener

f. Accept all other default settings, and click OK.

 

You are returned to the Applications page. If a check mark does not appear in the Enabled field for apex, then select the check box next to the apex application and click the Enable button.

APEX Listener Administration

1. On your browser, specify :port/apex/listenerConfigure to display the Oracle Application Express Listener Administration. Refer to the Configuration section for detailed information.

登陆Apex Administration ,配置用户和workspace

创建第一个用户 和工作空间

5、安装中文语言包

中文Shell

Set NLS_LANG=SIMPLIFIED CHINESE_CHINA.AL32UTF8

日文Shell

Set NLS_LANG=JAPANESE_JAPAN.AL32UTF8

Set the NLS_LANG environment variable, making sure that the character set is AL32UTF8. For example:
Bourne or Korn shell:
NLS_LANG=American_America.AL32UTF8
export NLS_LANG
C shell:
setenv NLS_LANG American_America.AL32UTF8
For Windows based systems:
set NLS_LANG=American_America.AL32UTF8
Navigate to the directory under apex/builder based on the language you need to install. For example for German, navigate to apex/builder/de. Start SQL*Plus and connect to the database where Oracle Application Express is installed as SYS specifying the SYSDBA role. For example:
On Windows:
SYSTEM_DRIVE:\ sqlplus /nolog
SQL> CONNECT SYS as SYSDBA
Enter password: SYS_password
On UNIX and Linux:
$ sqlplus /nolog
SQL> CONNECT SYS as SYSDBA
Enter password: SYS_password
Execute the following statement:
ALTER SESSION SET CURRENT_SCHEMA = APEX_040000;
Execute the appropriate language specific script. For example:
@load_lang.sql

linux

원천:php.cn
본 웹사이트의 성명
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.
인기 튜토리얼
더>
최신 다운로드
더>
웹 효과
웹사이트 소스 코드
웹사이트 자료
프론트엔드 템플릿