Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
441 views

Apex 11g Configuration Guide

The document provides instructions for installing and configuring Oracle Application Express (APEX). Key steps include running scripts to install APEX, configuring database users and passwords, setting the HTTP port, granting permissions to access help documentation, and copying image files to the Oracle HTTP Server directory. The document also covers restarting processes and enabling network services for APEX.

Uploaded by

Huma Zahra
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
441 views

Apex 11g Configuration Guide

The document provides instructions for installing and configuring Oracle Application Express (APEX). Key steps include running scripts to install APEX, configuring database users and passwords, setting the HTTP port, granting permissions to access help documentation, and copying image files to the Oracle HTTP Server directory. The document also covers restarting processes and enabling network services for APEX.

Uploaded by

Huma Zahra
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

Recommended Pre-installation Tasks 1. Shutdown processes Stop listener and HTTP server, and other network services.

2. Disable the Oracle XMLDB HTTP server by setting the HTTP port to 0 EXEC DBMS_XDB.SETHTTPPORT(0);

3. Change your working directory to apex


cd $ORACLE_HOME/apex Development environment: Full development environment provides complete access to the Application Builder environment to develop applications. 1. Run apexins.sql passing the following four arguments in the order shown sqlplus / as sysdba @apexins SYSAUX SYSAUX TEMP /i/ 2. Copy the Images Directory cp -rf $ORACLE_HOME/apex/images /home/oracle/ohs 3. When Oracle Application Express installs, it creates three new database accounts: Select username from dba_users; APEX_030200 APEX_PUBLIC_USER FLOWS_FILES Accomplish the following steps 4-5-6 to configure the embedded PL/SQL gateway, specify APEX password, and unlock the ANONYMOUS account 4. 5. 6. 7. @apxconf
ALTER USER ANONYMOUS ACCOUNT UNLOCK

EXEC DBMS_XDB.SETHTTPPORT(8080); SQL> alter system register;

8. Change the Password for the ADMIN Account @apxchpwd 9. Restart Processes Restart the processes that you stopped before you began the installation, such as a listener and other processes. In addition, restart Oracle HTTP Server. [oracle@srtestrn1 ~]$ export ORACLE_HTTPSERVER_HOME=/home/oracle [oracle@srtestrn1 ~]$ cp -rf $ORACLE_HOME/apex/images $ORACLE_HTTPSERVER_HOME/ohs [oracle@srtestrn1 ~]$ /u01/app/oracle/product/agent11g/opmn/bin/opmnctl stopproc iascomponent=HTTP_Server /u01/app/oracle/product/agent11g/opmn/bin/opmn: error while loading shared libraries: libcxa.so.3: cannot open shared object file: No such file or directory opmnctl: opmn is not running.

10. Configure APEX_PUBLIC_USER Account DB vault Account Manager: ALTER USER APEX_PUBLIC_USER ACCOUNT UNLOCK; 11. Changing the Password for the APEX_PUBLIC_USER Account ALTER USER APEX_PUBLIC_USER IDENTIFIED BY *******; 12. Check for the HTTP server port SELECT DBMS_XDB.GETHTTPPORT FROM DUAL; If not set, set the port: EXEC DBMS_XDB.SETHTTPPORT(8080);

About Password Expiration in Oracle Database 11g


In the default profile in Oracle Database 11g, the parameter PASSWORD_LIFE_TIME is set to 180. If you are using Oracle Database 11g with Oracle Application Express, this causes the password for APEX_PUBLIC_USER to expire in 180 days. As a result, your Oracle Application Express instance will become unusable until you change the password.

To prevent this behavior, create another profile in which the PASSWORD_LIFE_TIME parameter is set to unlimited and alter the APEX_PUBLIC_USER account and assign it the new profile.
Enable Network Services in Oracle Database 11g

By default, the ability to interact with network services is disabled in Oracle Database 11g release 1 or 2. Therefore, if you are running Oracle Application Express with Oracle Database 11g release 1 or 2, you must use the new DBMS_NETWORK_ACL_ADMIN package to grant connect privileges to any host for the APEX_040100 database user. Failing to grant these privileges results in issues with:

Sending outbound mail in Oracle Application Express. Users can call methods from the APEX_MAIL package, but issues arise when sending outbound email. Using Web services in Oracle Application Express. PDF/report printing.

Security Considerations Oracle highly recommends you configure and use Secure Sockets Layer (SSL) to ensure that passwords and other sensitive data are not transmitted in clear text in HTTP requests. Without the use of SSL, passwords could potentially be exposed, compromising security. About Managing JOB_QUEUE_PROCESSES

JOB_QUEUE_PROCESSES determine the maximum number of concurrently running


jobs. Transactional support and SQL scripts require jobs 1. View job queues assigned. SELECT VALUE FROM v$parameter WHERE NAME = 'job_queue_processes'; SQL> SELECT VALUE FROM v$parameter WHERE NAME = 'job_queue_processes'; VALUE -------------------------------------------------------------------------------1000 2. You can change the job queues if required by ALTER SYSTEM SET JOB_QUEUE_PROCESSES = <NUMBER>

Enable Indexing of Online Help in Oracle Database 11gR2 and Higher The ability to search Oracle Application Express online Help is accomplished through Oracle Text and a URL datastore. There is a change in the default behavior and permissions to use an Oracle Text URL datastore in database 11gR2 and higher. If users attempt to search Oracle Application Express online Help in Oracle database 11gR2 and encounter the following error, then the permission to use an Oracle Text URL datastore has not been granted to database user APEX_030200.

ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine ORA-20000: Oracle Text error: DRG-10758: index owner does not have the privilege to use file or URL datastore
1. Run the following command using sqlplus sysdba login:

2. SELECT par_value FROM ctxsys.ctx_parameters WHERE par_name = FILE_ACCESS_ROLE;


This returns either NULL or the database role which is granted the ability to use an Oracle Text URL datastore. 3. If no value is returned by step 2, then create a new database role as shown in the following example:

4. CREATE ROLE APEX_URL_DATASTORE_ROLE; 5. Grant this role to the database user APEX_030200 with the following statement: 6. GRANT APEX_URL_DATASTORE_ROLE to APEX_030200;
If step 2 returned a value, use this database role name instead of the example APEX_URL_DATASTORE_ROLE. 7. Lastly, if step 2 did not return a value, then use the Oracle Text API to grant permission to the newly created database role with the following statement:

8. EXEC ctxsys.ctx_adm.set_parameter(file_access_role, APEX_URL_DATASTORE_ROLE);


SQL> SELECT par_value FROM ctxsys.ctx_parameters WHERE par_name = FILE_ACCESS_ROLE; PAR_VALUE SQL> CREATE ROLE APEX_URL_DATASTORE_ROLE; Role created.

SQL> GRANT APEX_URL_DATASTORE_ROLE to APEX_030200; Grant succeeded. SQL> EXEC ctxsys.ctx_adm.set_parameter(file_access_role, APEX_URL_DATASTORE_ROLE); PL/SQL procedure successfully completed. Make sure you have copied the images file at its appropriate directory location

ORACLE HTTP SERVER HOME In our case is /u01/app/oracle/product/11.1.0/agent11g [oracle@srocrcn1 ohs]$ cp -rf /u01/app/oracle/product/11.2.0/dbhome_2/apex/images /home/oracle/ohs/images [oracle@srocrcn1 agent11g]$ cp -rf /u01/app/oracle/product/11.2.0/dbhome_2/apex/images /u01/app/oracle/product/11.1.0/agent11g/Apache/ [root@srocrcn1 bin]# /u01/app/oracle/product/11.1.0/agent11g/opmn/bin/opmnctl startproc ias-component=HTTP_Server Error: /u01/app/oracle/product/11.1.0/agent11g/opmn/bin/opmn: error while loading shared libraries: libcxa.so.3: cannot open shared object file: No such file or directory opmnctl: opmn is not running. [root@srocrcn1 bin]# /u01/app/oracle/product/11.1.0/agent11g/opmn/bin/opmnctl start opm Error: /u01/app/oracle/product/11.1.0/agent11g/opmn/bin/opmn: error while loading shared libraries: libcxa.so.3: cannot open shared object file: No such file or directory opmnctl: opmn start failed.

Access Apex Admin and Public Deployment:


1. http://srtestrn1:8080/apex/apex_admin

2. http://srtestrn1:8080/apex

You might also like