Anda di halaman 1dari 5

Install APEX Listener 2.0.

0
1. Download Oracle APEX Listener 2.0.0 beta 2. Download and install latest JRE 1.6 version, currently latest version is 1.6.34 Unpack to /opt/jre1.6.0_34 3. Unlock and set password for apex_public_user at the Oracle XE database: alter user APEX_PUBLIC_USER account unlock; alter user APEX_PUBLIC_USER identified by secret; 4. Patch Oracle APEX to support RESTful Services: cd /oracle/apxlsnr/apex_patch/ sqlplus / as sysdba @catpatch.sql Set passwords for both users APEX_LISTENER and APEX_REST_PUBLIC_USER. 5. Install Oracle APEX Listener: mkdir /oracle/apxlsnr/ cd /oracle/apxlsnr/ unzip apex_listener.2.0.0.215.16.35.zip Now this is tricky, for XE edition the images are kept in the XML DB repository, so images have to be copied from the patch to the listener home: cp /tmp/patch/images . 6. Configure Oracle APEX Listener: export JAVA_HOME=/opt/jre1.6.0_34 export PATH=$JAVA_HOME/bin:$PATH Set APEX listener config dir: java -jar apex.war configdir $PWD/config Configure the listener: java -jar apex.war Once configuration is complete, listener is started. It has to be stopped and run with appropriate parameters, use Ctrl-C to stop it. 7. Finally start the listener: java -jar apex.war standalone apex-images /oracle/apxlsnr/images In case you want to run it in background heres how to do it: nohup java -jar apex.war standalone apex-images /oracle/apxlsnr/images > apxlsnr.log &

Periodically I was seeing exceptions like these: ConnectionPoolException [error=BAD_CONFIGURATION] Caused by: oracle.ucp.UniversalConnectionPoolException: Universal Connection Pool already exists in the Universal Connection Pool Manager. Universal Connection Pool cannot be added to the Universal Connection Pool Manager I found that if APEX Listener is not configured with RESTful Services then these messages appeared in the log and could be safety ignored.

Hi, I've configured the ApexListener 2.0.0.354.17.05 via command line interface as described in http://docs.oracle.com/cd/E37099_01/doc/doc.20/e25066/install.htm

[oracle@rac02 apex_listener]$ java -jar apex.war This Listener instance has not yet been configured. Please complete the following prompts

Enter the location to store configuration data:/u01/app/oracle/apex_listener Jan 8, 2013 2:29:00 PM oracle.dbtools.common.config.cmds.ConfigDir execute INFO: Set config.dir to /u01/app/oracle/apex_listener in: /home/oracle/apex_listener/apex.war Jan 8, 2013 2:29:03 PM oracle.dbtools.common.config.file.ConfigurationFo lder logConfigFolder INFO: Using configuration folder: /u01/app/oracle/apex_listener/apex Enter the name of the database server [localhost]:rac-scan.akragmbh.local Enter the database listen port [1521]: Enter 1 to specify the database service name, or 2 to specify the database SID [1]: Enter the database service name:rac.akragmbh.local Enter the database user name [APEX_PUBLIC_USER]: [...]

Everything worked fine and the configuration is written in defaults.xml. No entry for key "db.sid"

[oracle@rac02 apex]$ cat /u01/app/oracle/apex_listener/apex/defaults.xml <?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> <properties> <comment>Saved on Tue Jan 08 14:30:03 CET 2013</comment> [...] <entry key="db.hostname">racscan.akragmbh.local</entry> <entry key="db.password">I don't tell</entry> <entry key="db.port">1521</entry> <entry key="db.servicename">rac.akragmbh.local</entry> [...]

The Listener and APEX is up und running. But when I import the configuration from ApexListener into SQLDeveloper 3.2.20.09 the dialogbox says, I've configured a SID instead of a service name. This is the saved configuration

<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> <properties>

<comment> Listener Administration Oracle SQL Developer 3.2.20.09.87

Last Update: Tue Jan 08 16:07:23 CET 2013 </comment>

<entry key="db.password">I don't tell</entry> <entry key="db.connectionType">basic</entry> <entry key="db.hostname">racscan.akragmbh.local</entry> <entry key="db.port">1521</entry> <entry key="db.sid">orcl</entry> <entry key="db.servicename">rac.akragmbh.local</entry> <entry key="db.tnsAliasName"/> <entry key="db.tnsDirectory"/> <entry key="db.customURL"/> [...]

What is wrong? Liz Saunders Posts: 6 Registered: 06/18/10 Re: ApexListener 2.0 configured with service name but SQLDeveloper says SID Posted: Jan 8, 2013 1:25 PM in response to: OlafGerike Correct Reply

This is a bug in SQL Developer providing a default SID, "orcl", even if a service name is provided. The workaround is to remove the SID "orcl" in 1. Global Settings->Connections and 2. Database Settings -> name (e.g., apex) -> Connections Make sure you make these changes prior to uploading your settings. Edited by: Liz Saunders on Jan 8, 2013 3:52 PM

OlafGerike Posts: 9 Registered: 02/09/11

Re: ApexListener 2.0 configured with service name but SQLDeveloper says SID Posted: Jan 9, 2013 2:05 AM in response to: Liz Saunders

Reply

It's working. I've removed the SID and set the radio button to "service name" in global settings and database settings and then uploaded the configuration. Now I can upload and download the settings without problems. Thanks

Anda mungkin juga menyukai