Fala galera! blz??
Estou com um problema ao conectar minha aplicação no oracle 10g.
Não sei se versão do banco influencia mas está ocorrendo o seguinte problema:
A aplicação conecta em dois bancos, no Oracle 9 e Oracle 10g.
No Oracle 9 blz… conecta! o problema está na hora de conectar no 10g.
O arquivo tnsnames.ora do Oracle está configurado corretamente para os dois bancos (tanto é q consigo acessar via sqlplus).
O erro que apresenta é o seguinte:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
Uso a API ojdbc14.jar para conexão. Alguém pode me dizer c mudo o driver de versão para versão?
Thx!!!
Uma pergunta, voce esta tentando conectar os dois ao mesmo tempo?
Se ajudar ai esta o motivo do erro e as ãções que devem ser tomadas para tentar resolver os problemas
Cause: The listener received a request to establish a connection to a database or other service. The connect descriptor received by the listener specified a SID for an instance (usually a database instance) that either has not yet dynamically registered with the listener or has not been statically configured for the listener. This may be a temporary condition such as after the listener has started, but before the database instance has registered with the listener.
Action:
-
Wait a moment and try to connect a second time.
-
Check which instances are currently known by the listener by executing: lsnrctl services <listener name>
-
Check that the SID parameter in the connect descriptor specifies an instance known by the listener.
-
Check for an event in the listener.log file.
Cara, posta o codigo pra agente ver…assim podemos conversar sobre o assunto