Connection Error 12541 [message #219001] |
Mon, 12 February 2007 08:41 |
dgitalia
Messages: 10 Registered: February 2007 Location: Italy
|
Junior Member |
|
|
Good morning
I have a problem connecting to my db with a client, the error that I obtain is 12514.
From aix server where is present the db, I check the listener.ora and tnsnames.ora but they seems ok.
I tried also to restart the listener with lsnrctl, the command work fine, but the problem remain.
The tnsping command is ok.
Until yesterday all worked fine, and there dont' should change anything.
Someone can help me or make a suggestion?
thans in advance
|
|
|
|
|
|
|
Re: Connection Error 12541 [message #219126 is a reply to message #219001] |
Tue, 13 February 2007 01:50 |
dgitalia
Messages: 10 Registered: February 2007 Location: Italy
|
Junior Member |
|
|
The ping reply, the firewall is disabled.
From my client I connetct to server with terminal or ftp without problem.
This is the tnsnames.ora:
OAS94.np.ge.com =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.224.3.6)(PORT = 1594))
)
(CONNECT_DATA =
(SID = OAS94)
)
)
OAS93.np.ge.com =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.224.3.6)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = OAS93)
)
)
OAS91.np.ge.com =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.224.3.6)(PORT = 1521))
)
(CONNECT_DATA =
(SID = OAS91)
)
)
This is the listener.ora
#name......: listener.ora
# Name..........: rs98edp.np.ge.com lsn_98. Listener Generico
# Date..........: 31-MAR-99 15:22:48
################
SQLNET.AUTHENTICATION_SERVICES = (NONE)
USE_PLUG_AND_PLAY_lsn98 = OFF
USE_CKPFILE_lsn98 = OFF
STARTUP_WAIT_TIME_lsn98 = 0
CONNECT_TIMEOUT_lsn98 = 10
TRACE_LEVEL_lsn98 = OFF
LOG_DIRECTORY_lsn98 = /u18/app/oracle/network/log
LOG_FILE_lsn98 = lsn98
TRACE_DIRECTORY_lsn98 = /u18/app/oracle/network/trace
lsn98 =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = rs98edp)(PORT = 1810))
(ADDRESS=
(PROTOCOL=IPC)
(KEY= OAS91.np.ge.com)
)
(ADDRESS=
(PROTOCOL=IPC)
(KEY= OAS91)
)
(ADDRESS=
(PROTOCOL=IPC)
(KEY= OAS93.np.ge.com)
)
(ADDRESS=
(PROTOCOL=IPC)
(KEY= OAS93)
)
)
)
)
SID_LIST_lsn98 =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = OAS91.np.ge.com)
(ORACLE_HOME = /u18/app/oracle/product/8.1.7)
(SID_NAME = OAS91)
)
(SID_DESC =
(GLOBAL_DBNAME = OAS93.np.ge.com)
(ORACLE_HOME = /u18/app/oracle/product/8.1.7)
(SID_NAME = OAS93)
)
)
# LISTENER.ORA Network Configuration File: /u18/app/oracle/product/9.2.0/network/admin/listener.ora
# Generated by Oracle configuration tools.
################################ OAS04 Instance #################################
SID_LIST_OAS94 =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = OAS94.np.ge.com)
(ORACLE_HOME = /u18/app/oracle/product/9.2.0)
(SID_NAME = OAS94)
)
)
OAS94 =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = rs98edp)(PORT = 1594))
)
)
)
SID_LIST_OAS93 =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = OAS93.np.ge.com)
(ORACLE_HOME = /u18/app/oracle/product/9.2.0)
(SID_NAME = OAS93)
)
)
OAS93 =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = rs98edp)(PORT = 1594))
)
)
)
Thank you
|
|
|
|
Re: Connection Error 12541 [message #219135 is a reply to message #219132] |
Tue, 13 February 2007 02:40 |
dgitalia
Messages: 10 Registered: February 2007 Location: Italy
|
Junior Member |
|
|
This is the tnsnames on the server.
I tried to replace sid with SERVICE_NAME, but the problem remain the same.
now the tnsnames.ora is:
OAS94.np.ge.com =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.224.3.6)(PORT = 1594))
)
(CONNECT_DATA =
(SERVICE_NAME = OAS94)
)
)
OAS93.np.ge.com =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.224.3.6)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = OAS93)
)
)
OAS91.np.ge.com =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.224.3.6)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = OAS91)
)
)
|
|
|
|
Re: Connection Error 12541 [message #219153 is a reply to message #219136] |
Tue, 13 February 2007 03:11 |
dgitalia
Messages: 10 Registered: February 2007 Location: Italy
|
Junior Member |
|
|
I try to explain better.
1. I have the mainly database OAS93 on the aix server and I connect it from some clients that has a terminal installed (and no oracle installation, so no tnsnames on the client).
When I run the terminal I obtain the error:
connection error: 000012203
Until last Sunday all worked fine.
2. The database OAS94 is another on the aix server and I connect it from a client that has oracle 9, installed, this is the tnsnames.ora on the client.
# TNSNAMES.ORA Network Configuration File: C:\oracle\ora9i\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
OAS94.np.ge.com =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.224.3.6)(PORT = 1594))
)
(CONNECT_DATA =
(SID = OAS94)
)
)
When I tried to run the application the error is:
20105 - connection error: 40002
20029 - verify the password
IM006: [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed
The password is surely correct.
If I tried to test the connection from ODBC source I obtain this error:
Unable to connect
SQLState=S1000
[Oracle][ODBC][Ora]ORA-12505: TNS: listener cannot resolve SID in the connection description
-----
The Db are running, yesterday morning I tried to stop the listener and shutdown the db. After I restarted the db and listener, but the problem remained.
Thank you
|
|
|
|
Re: Connection Error 12541 [message #219170 is a reply to message #219162] |
Tue, 13 February 2007 08:26 |
dgitalia
Messages: 10 Registered: February 2007 Location: Italy
|
Junior Member |
|
|
I tried to restart listener, but now the error is
ORA-12505: TNS:listener does not currently know of SERVICE_NAME given in connect descriptor
I'm not able to understand why...
|
|
|
Re: Connection Error 12541 [message #219206 is a reply to message #219001] |
Tue, 13 February 2007 10:11 |
dgitalia
Messages: 10 Registered: February 2007 Location: Italy
|
Junior Member |
|
|
After change again the tnsnames.ora with old tnsnames (that yesterday doesn't work!) now the application on database OAS94 works!
But the other application on OAS93 now obtains the error code: connection error: 000012514
Why now the OAS94 works, while OAS93 no?
Apparently anything don't should be changed.
|
|
|
|
Re: Connection Error 12541 [message #219235 is a reply to message #219211] |
Tue, 13 February 2007 11:22 |
dgitalia
Messages: 10 Registered: February 2007 Location: Italy
|
Junior Member |
|
|
1.Oracle Database Services is not started.
2.During connect through SYS user.because of LISTENER configure is DYNAMIC instead of STATIC.
3.When SQLNET.ORA file is missing.
4.SID is not register in listener services.
5.Wrong TNSNAMES.ORA file is point.
--------------
Thank you Taj, but my limited knowledge on this topic don't allow me to reply to all your points...
1. I don't how to check this
2. I don't how to check this
3. sqlnet.ora is present
4. if I run lsnrctl and then services I obtain "The listener supports no services" (if I undertando what you mean)
5. How can i check this? This is possible because I see that on the server there is three oracle installation
Thanks again
|
|
|
|
Re: Connection Error 12541 [message #219380 is a reply to message #219001] |
Wed, 14 February 2007 03:42 |
dgitalia
Messages: 10 Registered: February 2007 Location: Italy
|
Junior Member |
|
|
This is the output of listener restart and listener status:
LSNRCTL> start
Starting /u18/app/oracle/product/8.0.6/bin/tnslsnr: please wait...
TNSLSNR for IBM/AIX RISC System/6000: Version 8.0.6.3.0 - Production
System parameter file is /u18/app/oracle/network/listener.ora
Log messages written to /u18/app/oracle/product/8.0.6/network/log/listener.log
Listening on: (ADDRESS=(PROTOCOL=ipc)(DEV=6)(KEY=PNPKEY))
Listening on: (ADDRESS=(PROTOCOL=tcp)(DEV=10)(HOST=10.224.3.6)(PORT=1521))
Connecting to (ADDRESS=(PROTOCOL=ipc)(KEY=PNPKEY))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for IBM/AIX RISC System/6000: Version 8.0.6.3.
Start Date 14-FEB-2007 10:23:51
Uptime 0 days 0 hr. 0 min. 2 sec
Trace Level off
Security OFF
SNMP OFF
Listener Parameter File /u18/app/oracle/network/listener.ora
Listener Log File /u18/app/oracle/product/8.0.6/network/log/listener.log
The listener supports no services
The command completed successfully
LSNRCTL> status
Connecting to (ADDRESS=(PROTOCOL=ipc)(KEY=PNPKEY))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for IBM/AIX RISC System/6000: Version 8.0.6.3.
Start Date 14-FEB-2007 10:23:51
Uptime 0 days 0 hr. 0 min. 14 sec
Trace Level off
Security OFF
SNMP OFF
Listener Parameter File /u18/app/oracle/network/listener.ora
Listener Log File /u18/app/oracle/product/8.0.6/network/log/listener.log
The listener supports no services
The command completed successfully
This is the error that I obtain try to connect to OAS03 Db from odbc sources:
Unable to connect
SQLState=08004
[Oracle][ODBC][Ora]ORA-12154: TNS: could not resolve service name
|
|
|