Una vez instalada la base de datos XE tenemos que configurar un parámetro de la misma, tal como se indica en los requisitos:

Oracle Application Express requires the shared_pool_size of the target database to be at least 100 MB.

To check the shared_pool_size of the target database:

  1. Start the database:
    $ sqlplus /nolog
    connect sys@xe as sysdba
    SQL> STARTUP
  2. If necessary, enter the following command to determine whether the system uses an initialization parameter file (initsid.ora) or a server parameter file (spfiledbname.ora):
    SQL> SHOW PARAMETER PFILE;

    This command displays the name and location of the server parameter file or the initialization parameter file.

  3. Determine the current values of the shared_pool_size parameter:
    SQL> SHOW PARAMETER SHARED_POOL_SIZE
  4. If the system is using a server parameter file, set the value of the SHARED_POOL_SIZE initialization parameter to at least 100 MB:
    SQL> ALTER SYSTEM SET SHARED_POOL_SIZE='100M' SCOPE=spfile;
  5. If the system uses an initialization parameter file, change the values of the SHARED_POOL_SIZE parameter to at least 100 MB in the initialization parameter file (initsid.ora).
  6. Shut down the database:
    SQL> SHUTDOWN
  7. Restart the database (tuve que hacerlo así porque un STARTUP me devolvía el error «ORA-12514: TNS:listener does not currently know of service requested in connect descriptor»):
    EXIT
    # /etc/init.d/oracle-xe restart

También se puede hacer un «SHUTDOWN IMMEDIATE» para no esperar media hora a que cierren las sesiones. Este modo cierra todas las operaciones con COMMIT hecho antes de cerrar la base de datos.

Después, tras comprobar con la siguiente orden que no tenía la versión 10.1.2.0.6 o superior del PL/SQL Web Toolkit sino la 10.1.2.0.4

select owa_util.get_version from dual;

tuve que actualizar previamente a la instalación del APEX 3.1 la versión del Web Toolkit que incluye. Como indica el README.TXT incluido en el directorio apex/owa.

Installing the PL/SQL Web Toolkit 10.1.2.0.6
——————————————–
1) Stop all applications using the database
2) Navigate to the directory apex/owa
3) Connect via SQL*Plus as the database user SYS
4) Run the PL/SQL Web Toolkit installation script by issuing:

  @owainst.sql

5) Review the output displayed from owainst.sql and ensure no errors were encountered.
6) Confirm the PL/SQL Web Toolkit version is 10.1.2.0.6 or greater by connecting to the database
as the SYS user and running the query:

select owa_util.get_version from dual;

7) Run the utlrp.sql script from the Oracle Database home to recompile all invalid PL/SQL
packages now instead of when the packages are accessed for the first time. This step is
optional but recommended. To run utlrp.sql, issue:

 @?/rdbms/admin/utlrp.sql

Tendremos que esperar hasta que obtengamos el resultado:

ERRORS DURING RECOMPILATION
---------------------------
                          0
PL/SQL procedure successfully completed.

Una vez cumplidos los requisitos reiniciamos la base de datos e instalamos el APEX en modo Full development environment, tal como indica la gúia de instalación:

  1. Descomprimir el archivo de instalación de APEX 3.1, el mismo que contiene el README.TXT mencionado previamente, y desde el directorio apex descomprimido ejecutar:
  2. $ sqlplus /nolog
    connect sys@xe as sysdba
  3. Comenzamos la instalación, esto se llevará un buen rato:
    @apexins tablespace_apex tablespace_files tablespace_temp images
    
    

    Al finalizar obtendremos las direcciones para las distintas secciones del APEX:

     The structure of the link to the Application Express administration services is as follows:
     http://host:port/pls/apex/apex_admin (Oracle HTTP Server with mod_plsql)
     http://host:port/apex/apex_admin     (Oracle XML DB HTTP listener with the embedded PL/SQL gateway)
    The structure of the link to the Application Express development interface is as follows:
     http://host:port/pls/apex (Oracle HTTP Server with mod_plsql)
     http://host:port/apex     (Oracle XML DB HTTP listener with the embedded PL/SQL gateway)
  4. Cambiar la contraseña del usuario admin del APEX:

    @apxchpwd
  5. Configurar APEX:
    # /etc/init.d/oracle-xe restart
    $ sqlplus /nolog
    connect sys@xe as sysdba
    @apex_epg_config /tmp
    
  6. Desbloquear el usuario anónimo:
    ALTER USER ANONYMOUS ACCOUNT UNLOCK;
  7. Especificar el directorio de imágenes (si hemos probado el interfaz web veremos que no están disponibles):
    @apxldimg.sql /tmp
  8. Opcionalmente podemos comprobar el puerto utilizado por Oracle XML DB HTTP Server:
    SELECT DBMS_XDB.GETHTTPPORT FROM DUAL;
  9. Podemos cambiar el puerto o deshabilitar el servicio especificando el puerto 0 con la siguiente orden:
    EXEC DBMS_XDB.SETHTTPPORT(port);
  10. Configurando Oracle HTTP Server
    ALTER USER APEX_PUBLIC_USER ACCOUNT UNLOCK;
    ALTER USER APEX_PUBLIC_USER IDENTIFIED BY new_password;

Dejar una respuesta

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *

Puedes utilizar estas etiquetas y atributos HTML:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Este sitio usa Akismet para reducir el spam. Aprende cómo se procesan los datos de tus comentarios.