Apache Tomcat · Apex · Oracle · ORDS

APEX Oracle – Ords 503 Service Unavailable

ORDS was unable to make a connection to the database. This can occur if the database is unavailable, the maximum number of sessions has been reached or the pool is not correctly configured. The connection pool named: |apex|| had the following error(s): ORA-28000: The account is locked.

Este error suele pasar por tener algunos usuarios bloqueados, necesarios para conectarse a APEX-ORDS

select username
     , account_status
  from dba_users
 where username in (
       'ANONYMOUS'
     , 'APEX_210100'
     , 'APEX_LISTENER'
     , 'APEX_PUBLIC_USER'
     , 'APEX_REST_PUBLIC_USER'
     , 'APEX_INSTANCE_ADMIN_USER'
     , 'ORDS_PUBLIC_USER'
     , 'ORDS_METADATA'
     , 'PDBADMIN'
     , 'SYS'
     , 'XDB'
 )
 order by username;

Como pueden ver hay varios usuarios bloqueados, entre los principales que necesitamos habilitar esta ANONYMOUS, APEX_210100, APEX_PUBLIC_USER.

Para corregir el usuario ANONYMOUS necesitaremos conectarnos por sqlplus. Y ejecutar:

alter user ANONYMOUS identified by my_password account unlock;

Para desbloquear las demás instancias necesitaremos conectarnos como sys dba también pero al base de datos XEPDB1. Para hacerlo mas facíl yo suelo conectarme por sqldeveloper.

Una vez conectados ejecutamos: (dependiendo de los usuarios que tengan bloqueados)

Importante: el password debe ser el mismo que pusieron cuando configuraron ORDS, si no lo recuerdan les recomiendo volver a configurar ORDS y usar ese password.

--alter user ANONYMOUS identified by my_password account unlock;
alter user APEX_210100 identified by my_password account unlock;
alter user APEX_LISTENER identified by my_password account unlock;
alter user APEX_PUBLIC_USER identified by my_password account unlock;

Actualizar ANONYMOUS como lo mencione líneas atrás.

Finalmente necesitaremos reiniciar Apache Tomcat o el WebService que estén usando. Stop y Start.

Luego ya podrán conectarse a APEX 🙂

One thought on “APEX Oracle – Ords 503 Service Unavailable

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s