Connections with TNS V1-V3
Can anyone please explain what are connections with "<NAME>@<HOSTNAME> (TNS V1-V3)". and how are they created?
thanks in advance.
Oracle 6 came with TNS version 1 aka sqlnet v1.
Oracle 7 came with TNS version 2 aka sqlnet2, you didn't need separate drivers anymore for each protocol.
Oracle 8.0 and higher came with TNS version 3 aka Net8, introducing the service_name = syntax and a new set of OCI libraries, as the protocol changed.
On Oracle7 you see 'TNS V1-V2', and somehow I seem to recall, if you use the SID= syntax in tnsnames.ora you still use the OCI7 libraries, this will show when you run trcasst on your client trace files.
You only need to be somewhat inquisitive to get to know these facts. Just a bit of peeking around is sufficient.
Sybrand Bakker
Senior Oracle DBA
Similar Messages
-
"Xandros" (linux flavor), shows "TNS 12203" connect with oracle server(win
I am using oracle developer 6i and from 2000 on operating system "Xandros" (linux flavor),and working properly after instalation.
Problem when i am connecting to this Machine with oracle server(windos) it shows "TNS 12203"
i want to use xendros at client side to connect with Database Server on windows nt.
ThanksHi,
here is the descroption of TNS 12203
oerr TNS 12203
12203, 00000, "TNS:unable to connect to destination"
// *Cause: Invalid address specified or destination is not listening.
// This error can also occur because of underlying network or network
// transport problems.
// *Action: Verify that the net service name you entered was correct.
// Verify that the ADDRESS portion of the connect descriptor which
// corresponds to the net service name is correct. Ensure that the
// destination process (for example the listener) is running at the
// remote node.
Check if you see the database server from the client machine, and if listener is running and on which port, check tnsnames.ora on client. -
Good Day,
I'm encountering this problem
java.sql.SQLException: Listener refused the connection with the following error:
ORA-12514, TNS:listener does not currently know of service requested in connect descriptor
here's the java code
Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
String url = "jdbc:oracle:thin:@//10.143.85.21/UCSL";
String userName = "mssoriano";
String passWord = "mssoriano_4319";
conn = DriverManager.getConnection(url, userName, passWord);
and here's my tnsnames.ora
UCSL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.143.85.21)(PORT = 1521))
(CONNECT_DATA =
(SID = psusldb11)
Please do let me know if what may the cause of the problem and how to solve this. Thank you and God bless.Hi,
see this example
Connect to Oracle DB via JDBC driver
Frank -
TNS Ora-12532 error When connecting with Db11 running in the VM
I created a virtual machine from the PVM Entrerprise Linux 5 64 bits and db11g.
Inside the virtual Machine the sqlplus system/manager1@VDB11 is working well.
The tnsping 172.20.0.33 is working well too.
But from the other external machine using oracle 11g client these command are not working: Tns Ora-12532 error.
What to do?
Thanksmy virtual machine: vm1 have an static ip address 172.20.0.33
the oracle listener is was configured with the same ip
in the virtual machine : vm1 the /etc/hosts file content is:
127.0.0.1 localhost.localdomain
172.20.0.33 virtualdb11
in the tnsnames.ora file in the virtual machine i have a service:
VDB11 ...( host=172.20.0.33) (port=1521)
under console connection with my virtual machine vm1 the command : sqlplus system/manager1@VDB11 is working well
but when i working in an other external machine , where the tnsnames.ora have an entry:
VDB11 ...(host=172.20.0.33)......
the ping command : ping 172.20.0.33 is working well
but sqlplus system/manager1@VDB11 is not work and return the error:
ora-12532 tns -
Listener refused the connection with the following error: ORA-12500, TNS:li
I got this error when I use EM, or sqlplus:
Listener refused the connection with the following error: ORA-12500, TNS:listener failed to start a dedicated server process
when I do
$lsnrctl status:
here is the result
Service "abc.def.com" has 3 instance(s).
Instance "dbtest", status UNKNOWN, has 1 handler(s) for this service...
Instance "dbtest", status BLOCKED, has 1 handler(s) for this service...
Instance "dbtest", status READY, has 1 handler(s) for this service...
please help. Thanks.Ora12500 means your OS has run out of resources, so you cannot start a process on the Server Side. Post the complete error stack, the last lines show further information to troubleshoot this error.
-
From sql developer I am trying to connect to database in my local machine. It shows the following below error. Any suggestions?
An error was encountered performing the requested operation:
Listener refused the connection with the following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
Vendor code 12505lsnrctl results are as shown below
C:\Users\ndodd_000>lsnrctl status
LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 18-AUG-2013 17:40
:25
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 64-bit Windows: Version 11.2.0.1.0 - Produ
ction
Start Date 18-AUG-2013 15:29:41
Uptime 0 days 2 hr. 10 min. 50 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File C:\app\ndodd_000\product\11.2.0\dbhome_1\network\admin
\listener.ora
Listener Log File c:\app\ndodd_000\diag\tnslsnr\Vamsi\listener\alert\log
.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "sysdba" has 1 instance(s).
Instance "sysdba", status READY, has 1 handler(s) for this service...
Service "sysdbaXDB" has 1 instance(s).
Instance "sysdba", status READY, has 1 handler(s) for this service...
The command completed successfully
lsnrctl service results
LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 18-AUG-2013 17:
:20
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0
LOCAL SERVER
Service "sysdba" has 1 instance(s).
Instance "sysdba", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:186 refused:0 state:ready
LOCAL SERVER
Service "sysdbaXDB" has 1 instance(s).
Instance "sysdba", status READY, has 1 handler(s) for this service...
Handler(s):
"D000" established:0 refused:0 current:0 max:1022 state:ready
DISPATCHER <machine: VAMSI, pid: 904>
(ADDRESS=(PROTOCOL=tcp)(HOST=Vamsi)(PORT=49237))
The command completed successfully -
TNS Listener refused the connection with the -OracleXE Struts
I m using OracleXE as my back end. My Applicaiton Server is on Local Machine, while Database is on another machine. many a time
Caused by: java.sql.SQLException: Listener refused the connection with the following error: ORA-12516, TNS:listener could not find available handler with matching protocol stack
The Connection descriptor used by the client was:
192.168.1.8:1521
I m using the following datasource in struts.config.xml file:\
<data-source type="org.apache.commons.dbcp.BasicDataSource" key="msgds">
and I m using a DatasourcePlugin class which implements Plugin :
In this I m writing like this:
public void init(ActionServlet actionServlet, ApplicationConfig config) throws ServletException {
ServletContext context = actionServlet.getServletContext();
DataSource datasource = actionServlet.findDataSource("msgds");
ontext.setAttribute("ds", datasource);
And in each Action i m using like this:
ServletContext context = getServlet().getServletContext();
DataSource ds= (DataSource) context.getAttribute("ds");
Connection con = ds.getConnection();
and in finally i m closing the connection. Now Can somebody tell what could be the possible error. How can I use Connection Pooling Using JNDI, Commons dbcp.
If Somebody have the code snippet, plz send it,
Thanks in Advance...Hello,
OC4J is the core component of the OracleAS, the J2EE/WebService container where you deploy your J2EE applications
So you are using OC4J when deploying your application.
Do you know what release and the type pf topology that you are using when deploying your application? (stand alone OC4J -run from java command- or a managed OracleAS run from an opmnctl command...)
Regards
Tugdual Grall -
Hi All,
I am using oracle 11g client library on Linux 64bit machine and trying to connect to oracle database using jdbc thin driver.
The url format what I am trying to use is:
jdbc:oracle:thin:@IP address:port:service_name
When service_name = orcl : I am able to connect with the above syntax.
But when the service_name is having . e.g service_name = orcl.177.39.45, with the above format I get the above error.
If I change the URL syntax to following, it works
jdbc:oracle:thin:@IP address:port/service_name
But both seems to be valid syntax.
So I would like to undestand the reason behind the same.
When service_name is having ".", why ":" does not work and "/" works and when the service_name is without " ." , 1st format works.
Is there any specific reason behind same?
Please let me know,
Thanks,
AaratiHello,
as per the suggetion, I replaced the URL in the format
URL=jdbc:oracle:thin:@15.154.47.235:1521/ORCL
original URL :
URL=jdbc:oracle:thin:@15.154.47.235:1521:ORCL
With this I was able to access the main page and was not getting database access.
But when I tried to perform some operations say list the submitted jobs, our application internally contacts Oracle database and gets the information stored in the database.
its not able to get and it throws exception.
So is there any reason behind this?
Pasting our application logs for your referance
Thu Aug 08 17:03:33 http-0.0.0.0-9000-1: [ERROR] Exception occurred
com.hp.om.hpos.model.OperationException: Error listing jobs
at com.hp.om.hpos.model.DPAUtils.DPAlistJobsInDB(DPAUtils.java:98)
at com.hp.om.hpos.model.DomainGroup.listSubJobsInDB(DomainGroup.java:96)
at com.hp.om.hpos.model.DomainGroup.listSubJobs(DomainGroup.java:91)
at com.hp.om.wc.model.jobmanager.pagingmanager.PagingManager.ListJobs(PagingManager.java:381)
at com.hp.om.wc.webapp.jobmanager.actions.AbstractJobSearchAction.loadSortedJobListing(AbstractJobSearchAction.java:49)
at com.hp.om.wc.webapp.jobmanager.actions.AbstractJobSearchAction.loadJobListing(AbstractJobSearchAction.java:30)
at com.hp.om.wc.webapp.jobmanager.actions.BasicSearchAction.doExecute(BasicSearchAction.java:358)
at com.hp.om.wc.webapp.jobmanager.actions.WCBaseAction.execute(WCBaseAction.java:81)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)
~
~
Thanks,
aarati -
Problem in connecting with Oracle
hi everybody
I have a problem in connecting with Oracle express 10g. I got an error that doesn't allow me to connect. hope anyone can help me and solve this problem
--------------------Configuration: test - JDK version 1.6.0_20 <Default> - <Default>--------------------
java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:255)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:387)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:414)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:165)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:185)
at DB.dbConnect(test.java:36)
at test.main(test.java:18)
this is the code that I'm following
import java.io.*; import java.sql.*; public class test2 { public static void main(String[] args) { try { Connection con=null; Class.forName("oracle.jdbc.driver.OracleDriver"); con=DriverManager.getConnection( "jdbc:oracle:thin:@PLANET:1521:ORCL", "scott", "tiger"); Statement s=con.createStatement(); s.execute("INSERT INTO BOOKS VALUES('A Tale of Two Cities','William Shakespeare',4567891231,'05-JAN-1962')"); s.close(); con.close(); } catch(Exception e){e.printStackTrace();} } }
Edited by: Vantasia on Nov 12, 2010 10:18 AM1. Is the connection url correct?
"jdbc:oracle:thin:@PLANET:1521:ORCL" is fine.
2. Is the TNS listener started?
c:\oracle\product\ora10\bin> lsnrctl status
3. Is a firewall between client and database server?
Connection url with firewall would be different.
http://download.oracle.com/docs/cd/B28359_01/java.111/b31224/jdbcthin.htm#i1004276 -
Error - Applications File Server connection with the node FNDFS_WIN2000.
ERROR:
An error occurred while attempting to establish an Applications File Server connection with the node FNDFS_WIN2000. There may be a network configuration problem, or the TNS listener on node FNDFS_WIN2000 may not be running. Please contact your system administrator.
When I try to submit concurrent request error occured which I mentioned above.
Platform:Windows2000 server
Apps Version:11.5.3 Vision
Db version:8.1.6.0.0
Environment:Windows2000 server(Stand aloe).
I have one listener in database, I am sending you to my tns and listener files.
DB listener and tns file.
# LISTENER.ORA Network Configuration File: J:\oracle\visdb\8.1.6\NETWORK\ADMIN\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_VIS =
(SID_DESC =
(SID_NAME = VIS)
#(ORACLE_HOME = J:\oracle\visdb\8.1.6)
SID_LIST_VIS =
(SID_LIST =
( SID_DESC = ( SID_NAME = FNDFS )
( ORACLE_HOME = J:\oracle\visora\8.0.6 )
( PROGRAM = J:\oracle\visappl\fnd\11.5.0\bin\fndfs.exe )
( envs='EPC_DISABLED=TRUE,NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1' )
STARTUP_WAIT_TIME_APPS_VIS = 0
CONNECT_TIMEOUT_APPS_VIS = 10
TRACE_LEVEL_APPS_VIS = OFF
LOG_DIRECTORY_APPS_VIS = J:\oracle\visora\8.0.6\net80\admin
LOG_FILE_APPS_VIS = APPS_VIS
TRACE_DIRECTORY_APPS_VIS = J:\oracle\visora\8.0.6\net80\admin
TRACE_FILE_APPS_VIS = APPS_VIS
VIS =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = win2000)(PORT = 1521))
# TNSNAMES.ORA Network Configuration File: J:\oracle\visdb\8.1.6\NETWORK\ADMIN\tnsnames.ora
# Generated by Oracle configuration tools.
VIS =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = win2000)(PORT = 1521))
(CONNECT_DATA =
(SID = vis)
Client Site tns and listner.
# TNSNAMES.ORA FOR APPLICATIONS
# Created by Rapid Install
# Net8 definition for the database
VIS =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = win2000)(PORT = 1521))
(CONNECT_DATA =
(SID = VIS)
FNDFS_WIN2000 = (DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=win2000)(PORT=1523))
(CONNECT_DATA=(SID=FNDFS))
Rep60_VIS,Rep60_VIS.world=(ADDRESS=(PROTOCOL=tcp)(HOST=win2000.apps.com)(PORT=7002))
# LISTENER.ORA FOR APPLICATIONS
# Created by Rapid Install
# Net8 definition for FNDFS listener
SID_LIST_VIS =
(SID_LIST =
( SID_DESC = ( SID_NAME = FNDFS )
( ORACLE_HOME = J:\oracle\visora\8.0.6 )
( PROGRAM = J:\oracle\visappl\fnd\11.5.0\bin\fndfs.exe )
( envs='EPC_DISABLED=TRUE,NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1' )
STARTUP_WAIT_TIME_APPS_VIS = 0
CONNECT_TIMEOUT_APPS_VIS = 10
TRACE_LEVEL_APPS_VIS = OFF
LOG_DIRECTORY_APPS_VIS = J:\oracle\visora\8.0.6\net80\admin
LOG_FILE_APPS_VIS = APPS_VIS
TRACE_DIRECTORY_APPS_VIS = J:\oracle\visora\8.0.6\net80\admin
TRACE_FILE_APPS_VIS = APPS_VIS
Any help I appreciate in advance, I have been working on this issue since one week.
Thanks,
Kindest Regards
Zeeshan SiddiquiDuplicate post ..
Error - An error occurred while attempting to establish an Applications Fil -
"no ocijdbc11 in java.library.path" error when connecting a TNS database co
Hi
"no ocijdbc11 in java.library.path" error when connecting a TNS database connection
I have the same problem 'error code' when testing the connection to a database although I have an APEX db that connects without a problem.
I have re downloaded jre & SQL Developer just to ensure all files are where they should be with no luck.
I've also tried most of the suggestions in various threads.
Does anyone know what exactly causes this error?
eg; should I be looking for a file called 'ocijdbc11' & put it into the 'java.library.path' path?
Can anyone explain to a newbie at db connections what I should do?
I'm using the 'thin' client as the checkbox is clear & I don't know what path to enter into the correct file to make this work??
This is & needs to connect as a TNS connection & was working fine until recently, the only change I can think of is a move of files from the 'C' drive but I thought redownloading SQL Developer would slove this.
ThanksWhen you reinstalled SQL Developer, did you install into a new directory (ie rename or delete the old directory first)?
I don't know if system setup contains directory references (which might be invalid after moving the location of SQL Developer). Does renaming your system2.1.1.64.45 directory (in C:\Documents and Settings\username\Application Data\SQL Developer) help? Note that your connections are in the connections.xml file in the o.jdeveloper.db.connection.11.1.1.2.36.55.30 subdirectory of system2.1.1.64.45 - you will either need to export connections before renaming and then import again after or copy this file to test if you can connect.
Finally, the TNS Names directory preference is just a way of telling SQL Developer where to look for the tnsnames.ora file, rather than just assuming it will pick the right one. If you go to create a new connection, do you get the right list of TNS aliases? If not, then set this preference to the directory where the right tnsnames.ora file lives.
theFurryOne -
TNSping ok..can't connect with sqlPlus ...just stopped working
Hey Guys,
I have an Oracle Server running for the last year with little issues.
The lister just stopped working...
I can TNSPing ok...I just can't connect with toad or sqlplus anymore from another computer..
I can connect with sqlplus on the same computer...just not from any other computers.
=================================================================
C:\Documents and Settings\Phil>tnsping elvis 5
TNS Ping Utility for 32-bit Windows: Version 10.1.0.2.0 - Production on 17-JUL-2008 11:10:28
Copyright (c) 1997, 2003, Oracle. All rights reserved.
Used parameter files:
C:\Oracle\product\10.1.0\Client_1\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=7.7.1.1)(PORT=1521))(CONNECT_DATA=(SID=orcl)))
OK (70 msec)
OK (40 msec)
OK (50 msec)
OK (50 msec)
OK (40 msec)
C:\Documents and Settings\Phil>
==================================================
Listener status info
================================================
LSNRCTL>
LSNRCTL> status
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 10.1.0.4.0 - Production
Start Date 17-JUL-2008 10:45:26
Uptime 0 days 0 hr. 29 min. 2 sec
Trace Level off
Security ON: Password or Local OS Authentication
SNMP OFF
Listener Parameter File D:\oracle\product\10.1.0\Db_1\network\admin\listener.ora
Listener Log File D:\oracle\product\10.1.0\Db_1\network\log\listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROCipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=elvis)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=elvis)(PORT=8080))(Presentation=HTTP)(Session=RAW))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=elvis)(PORT=2100))(Presentation=FTP)(Session=RAW))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "orcl" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Service "orclXDB" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
The command completed successfully
LSNRCTL>
LSNRCTL>
LSNRCTL>
LSNRCTL>
==================================================
Listener.ora
# listener.ora Network Configuration File: D:\oracle\product\10.1.0\Db_1\NETWORK\ADMIN\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = D:\oracle\product\10.1.0\Db_1)
(PROGRAM = extproc)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = elvis)(PORT = 1521))
====================================================================
sqlnet.ora
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
====================================================================
tnsnames.ora
ORCL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = elvis)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = orcl)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
=============================================================================
I am getting this error from sqlnet.log
Fatal NI connect error 12638, connecting to:
(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
VERSION INFORMATION:
TNS for 32-bit Windows: Version 10.1.0.4.0 - Production
Oracle Bequeath NT Protocol Adapter for 32-bit Windows: Version 10.1.0.4.0 - Production
Time: 17-JUL-2008 10:23:14
Tracing not turned on.
Tns error struct:
ns main err code: 12638
TNS-12638: Credential retrieval failed
ns secondary err code: 0
nt main err code: 0
nt secondary err code: 0
nt OS err code: 0LSNRCTL>
LSNRCTL> services
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=elvis)(PORT=1521)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0
LOCAL SERVER
Service "orcl" has 2 instance(s).
Instance "orcl", status UNKNOWN, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0
LOCAL SERVER
Instance "orcl", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:18 refused:0 state:ready
LOCAL SERVER
Service "orclXDB" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Handler(s):
"D000" established:0 refused:0 current:0 max:1002 state:ready
DISPATCHER <machine: ELVIS, pid: 2284>
(ADDRESS=(PROTOCOL=tcp)(HOST=elvis)(PORT=1027))
The command completed successfully
LSNRCTL> -
Error in connecting with the database
Hi,
when i try to connect with the database the following error has occured
ORA-12504: TNS:listener name was not given the service name in connect data
solution wanthi,
i has the following in my tnsnames.ora file
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)
XE =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
ORCL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl.localdomain)
) -
Trouble connecting with sqlplus
I installed the "instant client" rpm files...
ORACLE_HOME=/usr/lib/oracle/10.1.0.2/client
tnsnames is located in
/usr/lib/oracle/10.1.0.2/client/tnsnames.ora
and it has the following contents
ibis8i =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = ibis.[company_domain_here])(PORT = 1555))
(CONNECT_DATA = (SID = oracle))
when I try connecting with
[user]@ibis8i
Hi, I get the follwoing error
ORA-12154: TNS:could not resolve the connect identifier specified
I can't work out what the problem is :(
This same tnsnames.ora file is used on another machine on the same network and it has no problems at all (ie. the specified identifier does exist).
help would be much appreciated.I used php4 some years ago with 8.1.7 DB.
In my php login function ORACLE_HOME was configured as
putenv("ORACLE_HOME=/ora/OraHome1");
and it worked (/ora/OraHome1 was my Oracle home).
Now I don't use php anymore, but just trying to help you, I tried to connect to a 9i DB, and got your same error. Maybe 9i and 10g need a newer php version (or oci8 version) ..... -
Global_name issue + connection using TNS -trouble
IPT_TEST.WORLD =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.29.62.21)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = TEST)
IPT_TEST =
*(DESCRIPTION =*
*(ADDRESS_LIST =*
*(ADDRESS = (PROTOCOL = TCP)(HOST = 172.29.62.21)(PORT = 1521))*
*(CONNECT_DATA =*
*(SERVICE_NAME = TEST.IP-TECH.COM)*
Now the Global_Name of the database is
select * from global_name
TEST.IP-TECH.COM
but by SQLDeveloper I am able to connect to TEST SID. But SQLDeveloper uses JDBC connection not TNS.
But while am trying using TNS , am not being able to connect to TEST.IP-TECH.COM ,
Even while am trying to configure Net Configuration Assisstant , it is not recognising TEST.IP-TECH.COM as a valid service name.
Also, I tnspinged. That is working. :(
C:\Documents and Settings\272318>tnsping 172.29.62.21
TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 22-JUL-2
*011 13:00:11*
Copyright (c) 1997, 2005, Oracle. All rights reserved.
Used parameter files:
D:\oracle\product\10.2.0\client_3\network\admin\sqlnet.ora
Used EZCONNECT adapter to resolve the alias
Attempting to contact (DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=172.29.62.21))(AD
DRESS=(PROTOCOL=TCP)(HOST=172.29.62.21)(PORT=1521)))
OK (500 msec)
Edited by: :) on Jul 22, 2011 1:00 PM:) wrote:
Oh very Sorry, actually I thought I went angry probably my question is so easy.
Yes I know that SQL Server can also use TNS.But currently, it's not connecting by TNS, it's using the JDBC connection
ORA-12154 error is the one I am getting.
Ok, then after I login in my onsite server will ping the service name "TEST" and will let you know the result.
My senior told me to check in the serve
Select * from gv$active_services;
I will request my onsite counterpart to check that also.You are free to rant what ever nonsense you believe.
ORA-12154 mean the lookup on the client failed & has NOTHING to do with anything on DB Server
12154, 00000, "TNS:could not resolve the connect identifier specified"
// *Cause: A connection to a database or other service was requested using
// a connect identifier, and the connect identifier specified could not
// be resolved into a connect descriptor using one of the naming methods
// configured. For example, if the type of connect identifier used was a
// net service name then the net service name could not be found in a
// naming method repository, or the repository could not be
// located or reached.
// *Action:
// - If you are using local naming (TNSNAMES.ORA file):
// - Make sure that "TNSNAMES" is listed as one of the values of the
// NAMES.DIRECTORY_PATH parameter in the Oracle Net profile
// (SQLNET.ORA)
// - Verify that a TNSNAMES.ORA file exists and is in the proper
// directory and is accessible.
// - Check that the net service name used as the connect identifier
// exists in the TNSNAMES.ORA file.
// - Make sure there are no syntax errors anywhere in the TNSNAMES.ORA
// file. Look for unmatched parentheses or stray characters. Errors
// in a TNSNAMES.ORA file may make it unusable.
// - If you are using directory naming:
// - Verify that "LDAP" is listed as one of the values of the
// NAMES.DIRETORY_PATH parameter in the Oracle Net profile
// (SQLNET.ORA).
// - Verify that the LDAP directory server is up and that it is
// accessible.
// - Verify that the net service name or database name used as the
// connect identifier is configured in the directory.
// - Verify that the default context being used is correct by
// specifying a fully qualified net service name or a full LDAP DN
// as the connect identifier
// - If you are using easy connect naming:
// - Verify that "EZCONNECT" is listed as one of the values of the
// NAMES.DIRETORY_PATH parameter in the Oracle Net profile
// (SQLNET.ORA).
// - Make sure the host, port and service name specified
// are correct.
// - Try enclosing the connect identifier in quote marks.
// See the Oracle Net Services Administrators Guide or the Oracle
// operating system specific guide for more information on naming.
Maybe you are looking for
-
I need a CD burning band-aid!
I have a 2001 G4, which has done me good--until it stopped burning CDs. I can get info off CDs just fine; but every time I try to burn (through iTunes or finder), I get this message: "An error ocurred while burning the disc. This disc cannot be used.
-
Nano 5G displaying wrong artist for compilations
Just got a Nano 5G and have begun transferring several compilation albums over. I'm anal about tags and all of the tracks have been marked as a Compilation in iTunes and the Album Artist is tagged as "Various Artists". Secondly, the compilation setti
-
Edit Flash Components Scoll Pane
Hello all expert, I tried to create the movieclip with scrollpane, and everything is fine, I would like to change/amend the scoll bar layout, I tried the edit each movieclip inside the ScrollBar Skins folder, but it cannont get the result what I want
-
How do I verify how many devices are using my apple ID?
I would like to know how many devices are using my apple ID?
-
Why won't old Word files open? Only option to open is to use Keynote
Why can't I open older word files not that I have upgraded to Snow Leopard? I assume this is the problem. It seems like I have to purchase Keynote if I want to open old documents???