Tns error ora-12162 net service name is incorrectly specified
Hello gurus ,
I am trying to connect database using telnet from windows machine ,
after login os , username ,password
i got $ prompt , after that i have given sqlplus command , then I have enter username,pwd correctly ,but I am unable to connect its giving error " Net service name is incorrectly specified ,
I have checked my tnsnames.ora file at the database system , i find all the entries are correct
plzzz can anybody help me .. how to connect database via telnet
user10608990 wrote:
Hello gurus ,
I am trying to connect database using telnet from windows machine ,
after login os , username ,password
i got $ prompt , after that i have given sqlplus command , then I have enter username,pwd correctly ,but I am unable to connect its giving error " Net service name is incorrectly specified ,
I have checked my tnsnames.ora file at the database system , i find all the entries are correct
plzzz can anybody help me .. how to connect database via telnet"I have enter username,pwd correctly "
"i find all the entries are correct "
And yet, it doesn't work!
=============
"I have checked my tnsnames.ora file at the database system "
when you start sqlplus ... is that on the same machine that is running the db, or some other machine? Remember .. (and I'm really feeling like a broken record on this one) <b><i>TNSNAMES.ORA IS USED BY THE <U>CLIENT</U> PROCESS.</i></b>
Show us the contents of your listener.ora file -- from the server machine
Show us the contents of your tnsnames.ora and sqlnet.ora files -- from the client machine.
Similar Messages
-
OSX SQLPLUS error:ORA-12162:TNS:net service name is incorrectly specified
Dear oracle community,
just stepped today into oracle world.
Installed OracleXE on my remote UBUNTU server.
From the server, sqlplus works perfectly.
From my client (followed this tutorial http://www.danilovizzarro.it/?p=10 ), i can connect via the
sqlplus connection string: #sqlplus hr/PASS@HOSTipADDRESS/XE .
But when i try just sqlplus and enter username/password later on, i get
ORA-12162:TNS:net service name is incorrectly specified .
My config:
OS - MAC OS X LEOPARD 10.5.5
#echo $ORACLE_SID
XE
#echo $ORACLE_HOME
/opt/oracle/instantclient_10_2/
#echo $TNS_ADMIN
/opt/oracle/tns/
# cat /opt/oracle/tns/tnsnames.ora
XE =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = HOSTipADDRESS)(PORT = 1521))
(CONNECT_DATA =
(SID = XE)
Any ideas - is it that sqlplus doesn't locate my tnsnames.ora file, or, maybe, there's an error in it?
thanks for any ideas, recipies, suggestions :)
enjoy the day,
jamesIf I understand you correctly you only give userid and password,but no connect string. That would be a LOCAL connection,which will not work,because you issue the command on the client,not the database server. For local connections you have to specify a value for ORACLE_SID. If you do that on your client (doesn't make sense , because you don't have a database here), you should see a message like 'Oracle not available'. If ORACLE_SID is not defined you get ORA-12162,which is a little misleading.
Werner -
Net service name is incorrectly specified
Hi,
Please can anyone explain me why am I getting this error ?
" ORA-12162: TNS:net service name is incorrectly specified "
ThanksORA-12162: TNS:net service name is incorrectly specified
Cause: The connect descriptor corresponding to the net service name in TNSNAMES.ORA or in the directory server (Oracle Internet Directory) is incorrectly specified.
Action: If using local naming make sure there are no syntax errors in the corresponding connect descriptor in the TNSNAMES.ORA file. If using directory naming check the information provided through the administration used for directory naming.
Regards
Asif Kabir -
Ora-12162 TNS: net service name is incorrectly specified
hi ,
i have installed oracle 11g on an AIX node and configured asm as well. when i su - oracle and give sid as +ASM am able to get in to sqlplus as ASM and oracle home is ASM.
but when i give oracle_home to db i get the error. the thing is that these files were not created wen i installed oracle. i created them manually :(
thanks in advance
--------- listener.ora-------------
# listener.ora.rac01 Network Configuration File: /u01/oracle/product/11.1.0.7/db
/network/admin/listener.ora.rac01
# Generated by Oracle configuration tools.
LISTENER=
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = rvn14)(PORT = 1521)(IP = FIRST))
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.160.103.46)(PORT = 1521)(IP = FIRST))
(SID_LIST_LISTENER=
(SID_LIST=
(SID_NAME=sys)
ADR_BASE_LISTENER_RAC01=/u02
---------- sqlnet.ora------------
names.default_domain = world
names.directory_path = (TNSNAMES)
trace_level_client = off
tcp.nodelay = yes
bequeath_detach = yes
sqlnet.expire_time = 10
sqlnet.inbound_connect_timeout = 0
adr_base=/u02
--------tnsnames.ora----------
LISTENER=
(DESCRIPTION=
(ADDRESS_LIST=(ADDRESS=(COMMUNITY=tcp.world)(PROTOCOL=TCP)
(Host=10.160.103.46)(Port=1521)))
(CONNECT_DATA=(SID=sys)Hi;
Please see:
ORA-12162 When Logging in Using BEQ (no tnsnames alias) [ID 312348.1]
Similar issue also mention before here. Please see:
https://forums.oracle.com/forums/search.jspa?threadID=&q=ora-12162+&objID=c18&dateRange=all&userID=&numResults=15
Regard
Helios -
Hit 500 Internal Error when Creating Net Service Name in Directory via EM
Dear All
When I click 'LISTENER_<Full_hostname>' in the General section of Page Database and then click 'Net Services Administration' in the Related Links section of Page Listener through Oracle Enterprise Manger 10g Database Control in order to create Net Service Name in Oracle Internet Directory, I got following 500 Internal Error
java.lang.RuntimeException: Expecting Vector, Enumeration or array, found oracle.cabo.ui.data.ListDataObjectList
at oracle.sysman.emSDK.jsp.Utils.getEnumeration(Utils.java:81)
at oracle.sysman.emSDK.jsp.ChoiceBean.render(ChoiceBean.java:58)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.xhtml.XhtmlLafRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.browser.MultipleSelectionRenderer$SelectorChildrenRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.browser.MultipleSelectionRenderer.renderTableControlBar(Unknown Source)
at oracle.cabo.ui.laf.browser.SingleSelectionRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderNamedChild(Unknown Source)
at oracle.cabo.ui.laf.browser.TableRenderer.renderControlBar(Unknown Source)
at oracle.cabo.ui.laf.xhtml.TableRenderer._renderControlBar(Unknown Source)
at oracle.cabo.ui.laf.xhtml.TableRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.xhtml.XhtmlLafRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.sysman.emSDK.jsp.TableBean.render(TableBean.java:690)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.laf.browser.HeaderRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.xhtml.XhtmlLafRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.xhtml.XhtmlLafRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.laf.xhtml.BodyRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.composite.ContextPoppingUINode$ContextPoppingRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.xhtml.XhtmlLafRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.laf.xhtml.BorderLayoutRenderer.renderIndexedChildren(Unknown Source)
at oracle.cabo.ui.laf.xhtml.BorderLayoutRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.xhtml.XhtmlLafRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.xhtml.XhtmlLafRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.composite.UINodeRenderer.renderWithNode(Unknown Source)
at oracle.cabo.ui.composite.UINodeRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.browser.PageLayoutRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.laf.xhtml.DocumentRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.xhtml.DocumentRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.jsps.tags.BaseUINodeTag.__handleFinishedNode(Unknown Source)
at oracle.cabo.ui.jsps.tags.BaseUINodeTag.doEndTag(Unknown Source)
at net.netAdmin._jspService(_netAdmin.java:699)
[net/netAdmin.jsp]
at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:139)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:347)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:765)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:220)
at oracle.sysman.emSDK.svlt.PageHandler.render(PageHandler.java:773)
at oracle.sysman.emSDK.svlt.PageHandler.handleRequest(PageHandler.java:396)
at oracle.sysman.db.net.NetControllerResolver.handleRequest(NetControllerResolver.java:169)
at oracle.sysman.emSDK.svlt.EMServlet.myDoGet(EMServlet.java:688)
at oracle.sysman.emSDK.svlt.EMServlet.doGet(EMServlet.java:291)
at oracle.sysman.eml.app.Console.doGet(Console.java:285)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
at oracle.sysman.emSDK.svlt.EMRedirectFilter.doFilter(EMRedirectFilter.java:101)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
at oracle.sysman.db.adm.inst.HandleRepDownFilter.doFilter(HandleRepDownFilter.java:133)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:20)
at oracle.sysman.eml.app.ContextInitFilter.doFilter(ContextInitFilter.java:269)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:600)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
at java.lang.Thread.run(Thread.java:534)
OS version is: Windows 2003 Enterprise Edition Release 2 SP2, which is msdn version built on VM EXSi 3.0
Platform: x86 (VM EXSi 3.0)
OIM Infrastructure: OIM_OIF 10.1.4.0.1
Please let me know how can I fix this problem and if you need anything else please let me know
Thanks in advance
Patrickuser8149666 wrote:
Dear All
When I click 'LISTENER_<Full_hostname>' in the General section of Page Database and then click 'Net Services Administration' in the Related Links section of Page Listener through Oracle Enterprise Manger 10g Database Control in order to create Net Service Name in Oracle Internet Directory, I got following 500 Internal ErrorWhat do you mean by "in order to create Net Service Name in Oracle Internet Directory"? -
Hi everybody,
When I open sqlplus64, I take the user-name ans password and I have the error message
ERROR:
ORA-12162: TNS:net service name is incorrectly specified
But while processing the user-name and password are the same I made ...
I don't understand.
Best regards,
Transact
Edited by: transact on 4 déc. 2010 13:36=================================
A couple of important points.
First, the listener is a server side only process. It's entire purpose in life is to receive requests for connections to databases and set up those connections. Once the connection is established, the listener is out of the picture. It creates the connection. It doesn't sustain the connection. One listener, with the default name of LISTENER, running from one oracle home, listening on a single port, will serve multiple database instances of multiple versions running from multiple homes. It is an unnecessary complexity to try to have multiple listeners or to name the listener as if it belongs to a particular database. That would be like the telephone company building a separate switchboard for each customer.
Additional notes on the listener: One listener is capable of listening on multiple ports. But please notice that it is the listener using these ports, not the database instance. You can't bind a specific listener port to a specific db instance. Similarly, one listener is capable of listnening on multiple IP addresses (in the case of a server with multiple NICs) But just like the port, you can't bind a specific ip address to a specific db instance.
Second, the tnsnames.ora file is a client side issue. It's purpose is for address resolution - the tns equivalent of the 'hosts' file further down the network stack. The only reason it exists on a host machine is because that machine can also run client processes.
Assume you have the following in your tnsnames.ora:
larry =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = myhost)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = curley)
)Now, when you issue a connect, say like this:
$> sqlplus scott/tiger@larrytns will look in your tnsnames.ora for an entry called 'larry'. Next, tns sends a request to (PORT = 1521) on (HOST = myhost) using (PROTOCOL = TCP), asking for a connection to (SERVICE_NAME = curley).
Where is (HOST = myhost) on the network? When the request gets passed from tns to the next layer in the network stack, the name 'myhost' will get resolved to an IP address, either via a local 'hosts' file, via DNS, or possibly other less used mechanisms. You can also hard-code the ip address (HOST = 123.456.789.101) in the tnsnames.ora.
Next, the request arrives at port 1521 on myhost. Hopefully, there is a listener on myhost configured to listen on port 1521, and that listener knows about SERVICE_NAME = curley. If so, you'll be connected.
What can go wrong?
First, there may not be an entry for 'larry' in your tnsnames. In that case you get "ORA-12154: TNS:could not resolve the connect identifier specified" No need to go looking for a problem on the host, with the listener, etc. If you can't place a telephone call because you don't know the number (can't find your telephone directory (tnsnames.ora) or can't find the party you are looking for listed in it (no entry for larry)) you don't look for problems at the telephone switchboard.
Maybe the entry for larry was found, but myhost couldn't be resolved to an IP address (say there was no entry for myhost in the local hosts file). This will result in "ORA-12545: Connect failed because target host or object does not exist"
Maybe there was an entry for myserver in the local hosts file, but it specified a bad IP address. This will result in "ORA-12545: Connect failed because target host or object does not exist"
Maybe the IP was good, but there is no listener running: "ORA-12541: TNS:no listener"
Maybe the IP was good, there is a listener at myhost, but it is listening on a different port. "ORA-12560: TNS:protocol adapter error"
Maybe the IP was good, there is a listener at myhost, it is listening on the specified port, but doesn't know about SERVICE_NAME = curley. "ORA-12514: TNS:listener does not currently know of service requested in connect descriptor"
Third: If the client is on the same machine as the db instance, it is possible to connect without referencing tnsnames and without going through the listener.
Now, when you issue a connect, say like this:
$> sqlplus scott/tigertns will attempt to establish an IPC connection to the db instance. How does it know the name of the instance? It uses the current value of the enviornment variable ORACLE_SID. So...
$> export ORACLE_SID=fred
$> sqlplus scott/tigerIt will attempt to connect to the instance known as "fred". If there is no such instance, it will, of course, fail. Also, if there is no value set for ORACLE_SID, the connect will fail.
check executing instances to get the SID
[oracle@vmlnx01 ~]$ ps -ef|grep pmon|grep -v grep
oracle 4236 1 0 10:30 ? 00:00:00 ora_pmon_vlnxora1set ORACLE_SID appropriately, and connect
[oracle@vmlnx01 ~]$ export ORACLE_SID='vlnxora1
[oracle@vmlnx01 ~]$ sqlplus scott/tiger
SQL*Plus: Release 10.2.0.4.0 - Production on Wed Sep 22 10:42:37 2010
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing optionsNow set ORACLE_SID to a bogus value, and try to connect
SQL> exit
[oracle@vmlnx01 ~]$ export ORACLE_SID=FUBAR
[oracle@vmlnx01 ~]$ sqlplus scott/tiger
SQL*Plus: Release 10.2.0.4.0 - Production on Wed Sep 22 10:42:57 2010
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux Error: 2: No such file or directory
Enter user-name: Now set ORACLE_SID to null, and try to connect
[oracle@vmlnx01 ~]$ export ORACLE_SID=
[oracle@vmlnx01 ~]$ sqlplus /scott/tiger
SQL*Plus: Release 10.2.0.4.0 - Production on Wed Sep 22 10:43:24 2010
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
ERROR:
ORA-12162: TNS:net service name is incorrectly specifiedOk, that is how we get from the client connection request to the listener. What about the listener's part of all this?
The listener is very simple. It's job is to listen for connection requests and make the connection (server process) between the client and the database instance. Once that connection is made, the listener is out of the picture. If you were to kill the listener, all existing connections would continue. The listener is configured with the listener.ora file, but if that file doesn't exist, the listener is quite capable of starting up with all default values. One common mistake with the listner configuration is to specify "HOST=localhost" or "HOST=127.0.01". This is a NONROUTABLE ip address. LOCALHOST and ip address 127.0.0.1 always mean "this machine on which I am sitting". So, all computers are known as "localhost" or "127.0.0.1". If you specify this address, the listener will only be capable of receiving requests from the machine on which it is running. If you specified that address in your tnsnames file - on a remote client machine - the request would be routed to the machine on which the requesting client resides. Probably not what you want.
===================================== -
Tns-04406 tns-04409 error during adding net service in oracle10g OID
Hi,
We have installed oracle OID using oracle app server 10 and are in process of configuring directory naming method
ldap.ora file has foll entries
# ldap.ora Network Configuration File: /app/oracle/product/101202/network/admin/ldap.ora
# Generated by Oracle configuration tools.
DIRECTORY_SERVERS= (smtest02:389:636)
DEFAULT_ADMIN_CONTEXT = ""
DIRECTORY_SERVER_TYPE = OID
getting following error during adding net service names ... is this a setup issue ?
error writing ServiceAlias to: LDAPDataStore [svr: smtest02:389:636, type: OID, ctxt: cn=OracleContext,, home: /app/oracle/product/101202] original exception message: TNS-04409: Directory service error caused by: oracle.net.config.DirectoryServiceException: TNS-04406: Invalid parameter caused by: oracle.net.ldap.NNFLException original stack trace: oracle.net.config.ServiceAliasException: TNS-04409: Directory service error caused by: oracle.net.config.DirectoryServiceException: TNS-04406: Invalid parameter caused by: oracle.net.ldap.NNFLException oracle.net.config.DirectoryServiceException: TNS-04406: Invalid parameter caused by: oracle.net.ldap.NNFLException oracle.net.ldap.NNFLException at oracle.net.config.DirectoryService.throwException(Unknown Source) at oracle.net.config.DirectoryService.read(Unknown Source) at oracle.net.config.ServiceAlias.<init>(Unknown Source) at oracle.net.common.dataStore.LDAPNetServiceHandler.save(Unknown Source) at oracle.net.common.dataStore.NetObjectHandler.maybeCommit(Unknown Source) at oracle.net.common.dataStore.NetObjectHandler.addElement(Unknown Source) at oracle.sysman.emo.net.config.srvc.Services.writeLDAPEntry(Services.java:1120) at oracle.sysman.emo.net.config.srvc.Services.saveService(Services.java:1072) at oracle.sysman.emo.net.config.srvc.NetServiceAdminObject.commit(NetServiceAdminObject.java:505) at oracle.sysman.db.net.NetController.applyAdminObjectBean(NetController.java:449) at oracle.sysman.db.net.NetController.onApply(NetController.java:499) at oracle.sysman.db.net.srvc.NetServiceController.onApply(NetServiceController.java:1401) at oracle.sysman.db.net.NetController.handleApply(NetController.java:843) at oracle.sysman.db.net.srvc.NetServiceController.handleApply(NetServiceController.java:1412) at oracle.sysman.db.net.NetController.handleEvent(NetController.java:1036) at oracle.sysman.emSDK.svlt.PageHandler.handleRequest(PageHandler.java:376) at oracle.sysman.db.net.NetControllerResolver.handleRequest(NetControllerResolver.java:169) at oracle.sysman.emSDK.svlt.EMServlet.myDoGet(EMServlet.java:688) at oracle.sysman.emSDK.svlt.EMServlet.doGet(EMServlet.java:291) at oracle.sysman.eml.app.Console.doGet(Console.java:285) at oracle.cabo.servlet.UIXServlet.doPost(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65) at oracle.sysman.emSDK.svlt.EMRedirectFilter.doFilter(EMRedirectFilter.java:101) at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16) at oracle.sysman.db.adm.inst.HandleRepDownFilter.doFilter(HandleRepDownFilter.java:133) at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:20) at oracle.sysman.eml.app.ContextInitFilter.doFilter(ContextInitFilter.java:269) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:600) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192) at java.lang.Thread.run(Thread.java:534)
thanks
KedarResolved this issue by logging in as super user.
-
ORA-12154 TNS Could not resolve the service name
I am working on Oracle 9i(Release 2) windows version. I want to change the value of
shared pool size, buffer size and others database parameter through "Enterprise Manager Console" but
when i connect to sysdba mode message comes "ORA-12154 TNS Could not resolve the service name".
How can I solve this problem?these problem are you getting from OEM?
post
lsnrctl status
lsnrctl services
make sure database is running.. all the services running in services.msc
check error code and start..
ORA-12514:
TNS:listener does not currently know of service requested in connect descriptor
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 service name for a service (usually a database service) 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 services are currently known by the listener by executing: lsnrctl services <listener name>
- Check that the SERVICE_NAME parameter in the connect descriptor of the net service name used specifies a service known by the listener.
- If an easy connect naming connect identifier was used, check that the service name specified is a service known by the listener.
- Check for an event in the listener.log file. -
TNS Error: ORA-12541: TNS: no listener.
I have installed Oracle 9i on machine in Windows XP. When I try to open the database SID in the Enterprise Manager, it gives me TNS Error: ORA-12541: TNS: no listener.
I have checked the Oracle Net Configuration:
Protocol: TCP/IP
Host: PNR18
Port: 1521
In the xp administrative tools, I found that the listener is on start.
When I try to test trough ' Net Configration Assistant' getting same error, similarly with Net Manager.
I don't know if I am using the correct protocol in my case of standalone installation.
Any advice/correction? it would be appreciated. I am giving all the information of TNSNAMES.ORA, LISTENER.ORA, SQLNET.ORA, which is on my machine.
Thanks in advance.
# LISTENER.ORA Network Configuration File: #C:\oracle\ora90\network\admin\listener.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = PNR18)(PORT = 1521))
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oracle\ora90)
(PROGRAM = extproc)
# TNSNAMES.ORA Network Configuration File: #C:\oracle\ora90\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
ORCL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = PNR18)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = ORCL)
# SQLNET.ORA Network Configuration File:
#C:\oracle\ora90\network\admin\sqlnet.ora
# Generated by Oracle configuration tools.
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, ONAMES, HOSTNAME)First of all Thanks for suggestions for solutions but still SAME PROBLEM:
Case-1::
I tried according to your suggestion, still SAME error !! I have also configured new DB
with Enterprise MAnager Configuration Assistent - during DB creation same error occured.
1) I have seen in XP service where all listener is running as well as OracleServiceORCL
is also running.
2) OracleOraHome90TNSListener also running with other listeners!
Case-2::
Dear I also delete listener and create new one and also configured Database Description
and tried to do so but still same problem while I am TESTing it with - Net Manager /
Net Configuration Assistant. I have also tried
C:\TNSPING ORCL - it is giving 'ok' result
but when I am using C:\LSNRCTL START listener - it gives me following errors.
Service OracleOraHome90TNSListener already running.
TNS-12560: TNS:protocol adapter error
TNS-00530: Protocol adapter error
32-bit Windows Error: 1056: Unknown error
Thats the whole story....hope this time you will find easy to give solution.
All files after your suggestion are as follow:
# TNSNAMES.ORA Network Configuration File: C:\oracle\ora90\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
ORCL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = PNR18)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = ORCL)
# LISTENER.ORA Network Configuration File: C:\oracle\ora90\network\admin\listener.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = PNR18)(PORT = 1521))
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = ORCL)
(ORACLE_HOME = C:\oracle\ora90)
(SID_NAME = ORCL)
(SID_DESC =
(PROGRAM = extproc)
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oracle\ora90)
# SQLNET.ORA Network Configuration File: C:\oracle\ora90\NETWORK\ADMIN\sqlnet.ora
# Generated by Oracle configuration tools.
NAMES.PREFERRED_SERVERS =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = PNR18)(PORT = 1521))
SQLNET.AUTHENTICATION_SERVICES= (NTS) -
EM doesn't allow creation of tnsnames.ora entry with service name orcl11gr2
Dear all,
I'm trying to create a net service name with EM Database Control, via Net Services Administration link. On the service name field, under the 'Edit Net Service Name' screen, I key in orcl11gr2, and it throws the the following error:
Validation Error
Examine and correct the following errors, then retry the operation:
Service Name - Specify a valid service name.
I wonder what is the extra validation that EM is checking. I assume it's checking the number of characters to be 8 characters or less.
Also, because of this extra validation that is in EM, all tnsnames.ora entry that have service name = orcl11gr2, I will not be able to use EM to modify them, as I will get the same above error.
But why does Oracle implements this extra validation, when the same validation is not implemented on other Oracle tools? For instance:
1. dbca allows me to create a database with instance_name greater than 8 characters, and the outcome of initialization parameters will be as follow:
db_name=orcl11gr -- truncated to 8 characters
instance_name=orcl11gr2
db_unique_name=orcl11gr2
service_names=orcl11gr2
2. Oracle Net Manager supports service name of orcl11gr2. The created Net Service Name, I have no problem connecting to the database.
3. Listener support orcl11gr2 service name
I'm using Oracle 11g R2 (11.2.0.1.0) for Microsoft Windows (x64), running on Windows 7.For your reference, here is the bug numbner: 10278345.
-Mughees -
Error while trying to retrieve text for error ORA-12162
I'm accessing the VM through Putty. My DB and GGate both reside on the same machine.
I'm trying to connect to DB using GG but It seems to be throwing some Issue. I tried to search for solution over net but couldnt get it fixed. I have set My ORACLE_HOME to the installed dir of Oracle 11g and ORACLE_SID to the one mentioned in my tns. But still no luck. Can some1 guide me.
It says check privileges, but when I try
GGSCI (XXXXXX) 1> dblogin userid sys as sysdba
Password:
ERROR: Did not recognize parameter argument.
Don't work this way, not the other way mentioned below
GGSCI (XXXXXX) 2> dblogin userid sys
Password:
ERROR: Unable to connect to database using user sys. Please check privileges.
Error while trying to retrieve text for error ORA-12162.
I can do a normal Login using SQLPLUS but Not through GGate :(
Please guide meLother wrote:
I'm accessing the VM through Putty. My DB and GGate both reside on the same machine.
I'm trying to connect to DB using GG but It seems to be throwing some Issue. I tried to search for solution over net but couldnt get it fixed. I have set My ORACLE_HOME to the installed dir of Oracle 11g and ORACLE_SID to the one mentioned in my tns. But still no luck. Can some1 guide me.
It says check privileges, but when I try
GGSCI (XXXXXX) 1> dblogin userid sys as sysdba
Password:
ERROR: Did not recognize parameter argument.
Don't work this way, not the other way mentioned below
GGSCI (XXXXXX) 2> dblogin userid sys
Password:
ERROR: Unable to connect to database using user sys. Please check privileges.
Error while trying to retrieve text for error ORA-12162.
I can do a normal Login using SQLPLUS but Not through GGate :(
Please guide mei wouldnt use SYS in the first place and rather create a new user to work with GG, but try this one:
dblogin userid sys, password <password> sysdba -
How to bypass net-service-name
When I login to database using SqlPlus with dba unix account,I go the following error message.
command>sqlplus username/passwd
ERROR:
ORA-01034: ORACLE not available
It is Ok for the following command.
command>sqlplus username/passwd@service-name
But If I login with "oracle"(a unix account),
command>sqlplus username/passwd
it is OK too.
The primary group of "dba unix account" and "oracle" is same.
How can I login database bypass net service name??
Thanks!!¿Ehm?
You'll need have to have a connection first, before you can query a table/view.
@ OP
i want connect to SQLDEVELPOERSounds like some 'Poor SQL devil' is driving you nuts...
Who's your DBA? ( Apparently not Sybrand ;) )
Don't get me wrong:
It's good to be 'OraHungry', but always try to understand what you 'eat' ;)
Read the docs, as Sybrand already asked you, you'll learn a lot for free.
It will give you information Google will not give you, unless you're willing to check out 1000's of links in vain first. -
How to bypass net service name when logining database
When I login to database using SqlPlus with dba unix account,I go the following error message.
command>sqlplus username/passwd
ERROR:
ORA-01034: ORACLE not available
It is Ok for the following command.
command>sqlplus username/passwd@service-name
But If I login with "oracle"(a unix account),
command>sqlplus username/passwd
it is OK too.
The primary group of "dba unix account" and "oracle" is same.
How can I login database
bypass net service name??
Thanks!!Let's assume your service name was "orcl.oracle.com" and now is "orcl", you can do (as sysdba) :
SQL> alter system set service_names='orcl, orcl.oracle.com'; -- (or just orcl.oracle.com)
If you use initSID.ora to start the DB, then you have to change it there, and bounce the DB. -
TNS : could not resove the service name
Here is the line that I added to my PC tnsnames .ora file.
srprod1.PLUS.COM =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = srvprod1)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = GAV.plusfuds.com)
Here is my What I get after I started the listerner.
The global_name is set to TRUE.
db_domain is also set to plusfunds.com
LSNRCTL for Solaris: Version 10.1.0.2.0 - Production on 30-AUG-2005 17:28:37
Copyright (c) 1991, 2004, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(PORT=1521))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Solaris: Version 10.1.0.2.0 - Production
Start Date 30-AUG-2005 16:18:10
Uptime 0 days 1 hr. 10 min. 26 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /oracle/GAV/101_64/network/admin/listener.ora
Listener Log File /oracle/GAV/101_64/network/log/listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=srvprod1)(PORT=1521)))
Services Summary...
Service "GAV.plusfunds.com" has 1 instance(s).
Instance "GAV", status READY, has 1 handler(s) for this service...
Service "plusfunds.com" has 1 instance(s).
Instance "GAV", status UNKNOWN, has 3 handler(s) for this service...
The command completed successfully.
Error message :
TNS 12154 could not resolve service name.
What I am missing ?
From
P
SID = GAV
hostname = srvprod1
From,
PFunny thing about this tool is I can connect right now with
PL/SQL developer client and sqlplus client from my PC
successfully but I can not connect through the dbastudio tool
But,
When I tried to connect to dbastudio it is connecting ... I can see in
on DB server that it has been connected with 1521
but nothing is happening on dbastudio tool screen.
Here is the string from tnsnames.ora from my PC file.
GAV_SRVPROD1.PLUS.COM =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = srvprod1)(PORT = 1521))
(CONNECT_DATA = (SID = GAV)(SERVER = DEDICATED))
From
P -
Enumerate Net Service Names in C++?
Is there some API that would allow me to enumerate the locally configured Net Service Names (those in tnsnames.ora) using C++ without having to parse the file directly. I'm not running Oracle Names on my network.
k1ng87 wrote:
Hi Ed,
thanks for the response. I tried what you suggested:
Data Source=(DESCRIPTION= (ADDRESS= (PROTOCOL=TCP) (HOST=105.1.12.190) (PORT=1521)) (CONNECT_DATA= (SERVICE_NAME=OMP1)))
but get the same result back...here is the full code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Oracle.DataAccess.Client; // ODP.NET Oracle managed provider
using Oracle.DataAccess.Types;
namespace OracleListenTrigger
class Program
static void Main(string[] args)
string oradb = "Data Source=(DESCRIPTION= (ADDRESS= (PROTOCOL=TCP) (HOST=105.1.12.190) (PORT=1521)) (CONNECT_DATA= (SERVICE_NAME=OMP1)));User ID=user;Password=pass;";
OracleConnection conn = new OracleConnection(oradb); // C#
conn.Open();
OracleCommand cmd = new OracleCommand();
cmd.Connection = conn;
cmd.CommandText = "SELECT cast(Count(*) as varchar(20)) as trig FROM ZDMSN.TRIGGER_TEST";
//cmd.CommandType = CommandType.Text;
OracleDataReader dr = cmd.ExecuteReader();
dr.Read();
int cnt;
if (int.TryParse(dr.GetString(0), out cnt))
if (cnt > 0)
System.Diagnostics.Process.Start(@"C:\AutoBatch\backup\trigger2.bat");
cmd.CommandText = "TRUNCATE TABLE ZDMSN.TRIGGER_TEST";
cmd.ExecuteNonQuery();
conn.Dispose();
I used brackets just to see if that would work...I'm no C programmer, so am not sure about the interface. I do question the wisdom of hard-coding that connect descriptor into a compiled program. As a general rule, I don't like hard-coding any run-time values that are even remotely subject to change. Why NOT rely on the tnsnames file?
That aside, to solve your immediate problem the next step I'd take would be to set up a level 16 client-side tns trace. The parms are set into the sqlnet.ora file. Details in the [url http://docs.oracle.com/cd/E11882_01/network.112/e10835/sqlnet.htm#i500318]fine manual
Once you get the trace file, just go on a fishing expedition.
Maybe you are looking for
-
How to restrict Group Currency to Version
Hi I am looking into multiple group currency consolidation, using different versions. My question, is it possible to restrict the Group Currency by version. E.g., I want version 100 to be restricted to group currency GBP, and version 999 to be restri
-
Help with FCS/FCP SAN setup - number of LUNS?
Dear all, I am a newly certified ACMA and have setup a couple of new SANS but now I am having to upgrade an existing xSan 1.4.2 to 2 and in the process I have decided to rebuild from scratch. The SAN is used to support 5 FCP edit bays. Each controlle
-
thanks viswesh, sm66 gives about work process but in that process i want to know about the reports GP40Z3S8 , SAPLRSAI , SAPLRSSM of ALEREMOTE users. please help me. jaya.
-
I downloaded Yosemite and now I have lots of pop ups and my safari isn't working correctly. How do I remove Yosemite?
-
Dmvpn + local break out to the internet
Hi, I have a dmvpn network, with multiple spokes. One of them, needs to have a local break out to the internet. Wasn't able to find a configuration example, so maybe if someone could show how to config it. Basically what I need is a split tunnel con