Conectando o Oracle XE DB / Oracle Database 10g Express

1

Eu comecei com o Oracle DB. No Windows Server 2003, instalei o Oracle Database 10g Express Edition e também instalei o PL SQL Developer.

Eu tentei fazer logon via PL SQL Developer para o banco de dados XE.

Eu uso essas credenciais:

  • Nome de usuário: sistema
  • Senha: a senha está correta:)
  • Banco de dados: XE

Eu recebi este erro: ORA-12528 . Então eu pesquisei e tentei esta solução: link :

SQL> conn system as sysdba
Enter password:
Connected.

SQL> $ lsnrctl


LSNRCTL> stop
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
The command completed successfully

e novamente iniciar o ouvinte

LSNRCTL> start
Starting tnslsnr: please wait...

TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production
System parameter file is C:\oraclexe\app\oracle\product.2.0\server\network\ad
min\listener.ora
Log messages written to C:\oraclexe\app\oracle\product.2.0\server\network\log
\listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\.\pipe\EXTPROC_FOR
_XEipc)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=jan)(PORT=1521)))

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Produ
ction
Start Date                24-J┌N-2011 19:14:14
Uptime                    0 days 0 hr. 0 min. 1 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Default Service           XE
Listener Parameter File   C:\oraclexe\app\oracle\product.2.0\server\network\a
dmin\listener.ora
Listener Log File         C:\oraclexe\app\oracle\product.2.0\server\network\l
og\listener.log
Listening Endpoints Summary...
 (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\.\pipe\EXTPROC_FOR_XEipc)))
 (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=jan)(PORT=1521)))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
 Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "PLSExtProc" has 1 instance(s).
 Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully

Depois tentei conectar-me novamente ao banco de dados XE via PL SQL Developer, mas recebi o erro ORA 12514 .

Eu verifiquei o arquivo de log do ouvinte ( listener.log ), aqui está a saída:

System parameter file is C:\oraclexe\app\oracle\product.2.0\server\network\admin\listener.ora
Log messages written to C:\oraclexe\app\oracle\product.2.0\server\network\log\listener.log
Trace information written to C:\oraclexe\app\oracle\product.2.0\server\network\trace\listener.trc
Trace level is currently 0

Started with pid=2964
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\.\pipe\EXTPROC_FOR_XEipc)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=jan)(PORT=1521)))
Listener completed notification to CRS on start

TIMESTAMP * CONNECT DATA [* PROTOCOL INFO] * EVENT [* SID] * RETURN CODE
24-JÚN-2011 19:17:52 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=Administrator))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=169869568)) * status * 0
24-JÚN-2011 19:18:19 * (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=XE)(CID=(PROGRAM=C:\Program Files\PLSQL Developer\plsqldev.exe)(HOST=JAN)(USER=Administrator))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.5.100)(PORT=2907)) * establish * XE * 12514
TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
24-JÚN-2011 19:18:48 * service_register * xe * 0

Aqui eu coloco as configurações.

tnsname.ora

XE =
 (DESCRIPTION =
   (ADDRESS = (PROTOCOL = TCP)(HOST = jan)(PORT = 1521))
   (CONNECT_DATA =
     (SERVER = DEDICATED)
     (SERVICE_NAME = XE)
   )
 )
EXTPROC_CONNECTION_DATA =
 (DESCRIPTION =
   (ADDRESS_LIST =
     (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
   )
   (CONNECT_DATA =
     (SID = PLSExtProc)
     (PRESENTATION = RO)
   )
 )
ORACLR_CONNECTION_DATA =
 (DESCRIPTION =
   (ADDRESS_LIST =
     (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
   )
   (CONNECT_DATA =
     (SID = CLRExtProc)
     (PRESENTATION = RO)
   )
 )

listener.ora

SID_LIST_LISTENER =
 (SID_LIST =
   (SID_DESC =
     (SID_NAME = PLSExtProc)
     (ORACLE_HOME = C:\oraclexe\app\oracle\product.2.0\server)
     (PROGRAM = extproc)
   )
   (SID_DESC =
     (SID_NAME = CLRExtProc)
     (ORACLE_HOME = C:\oraclexe\app\oracle\product.2.0\server)
     (PROGRAM = extproc)
   )
 )

LISTENER =
 (DESCRIPTION_LIST =
   (DESCRIPTION =
     (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
     (ADDRESS = (PROTOCOL = TCP)(HOST = jan)(PORT = 1521))
   )
 )

DEFAULT_SERVICE_LISTENER = (XE)

Eu tentei fazer uma alteração no tsname.ora e mudar o SERVICE_NAME para o SID

XE =
 (DESCRIPTION =
   (ADDRESS = (PROTOCOL = TCP)(HOST = jan)(PORT = 1521))
   (CONNECT_DATA =
     (SERVER = DEDICATED)
     (SID = XE)
   )
 )

Mas recebi um erro:

**ORA-12505** TNS: listener does not currently know of SID given in connect descriptor

Eu removi change (SID = XE = > SERVICE_NAME = XE) em tsname.ora e finalmente verifiquei o status do listener com o comando.

LSNRCTL> stat

O resultado está aqui:

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Produ
ction
Start Date                24-J┌N-2011 19:30:31
Uptime                    0 days 0 hr. 5 min. 57 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Default Service           XE
Listener Parameter File   C:\oraclexe\app\oracle\product.2.0\server\network\a
dmin\listener.ora
Listener Log File         C:\oraclexe\app\oracle\product.2.0\server\network\l
og\listener.log
Listening Endpoints Summary...
 (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\.\pipe\EXTPROC_FOR_XEipc)))
 (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=jan)(PORT=1521)))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
 Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "PLSExtProc" has 1 instance(s).
 Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "XE_XPT" has 1 instance(s).
 Instance "xe", status BLOCKED, has 1 handler(s) for this service...
Service "xe" has 1 instance(s).
 Instance "xe", status BLOCKED, has 1 handler(s) for this service...
The command completed successfully

Tentei reiniciado o OracleServiceXE (Painel de controle > Toolls administrativos > Serviços >)

A última tentativa para resolver este problema foi conectar-se ao XE via cmd.

SQL> conn system/jano@XE
ERROR:
ORA-12528: TNS:listener: all appropriate instances are blocking new connections

Nada funciona. Eu não consigo me conectar ao XE.

Esta é a primeira vez que ligo com o Oracle DB. Qual é a raiz do problema e como pode resolver esse problema.

Obrigado pela cooperação.

    
por rco 24.06.2011 / 19:58

1 resposta

1

uma vez, desative todas as suas conexões de rede, reinicie o PC / Server e tente efetuar login. se tiver êxito, ative todas as suas conexões de rede.

    
por 12.03.2014 / 09:50