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 "
Thanks

ORA-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

Similar Messages

  • 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.

  • 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,
    james

    If 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

  • 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

  • Netca Local Net Service Name Configuration

    Hello,
    I'm searching for a while now on how to configure a local net service name configuration silently with netca.rsp.
    I can't found any Template according to that kind of configuration.
    So I need to add a "Local Net Service Name configuration" into the Oracle Net Configuration Assistant.
    I just have to configure the service name, TCP, hostname, username and password but I don't know how to setup the response file.
    Here is the generic Template of netca.rsp
    ## Copyright(c) 1998, 2011 Oracle Corporation. All rights reserved. ##
    ## Specify values for the variables listed below to customize your  ##
    ## installation.                                                    ##
    ## Each variable is associated with a comment. The comment          ##
    ## identifies the variable type.                                    ##
    ## Please specify the values in the following format:               ##
    ##         Type         Example                                     ##
    ##         String       "Sample Value"                              ##
    ##         Boolean      True or False                               ##
    ##         Number       1000                                        ##
    ##         StringList   {"String value 1","String Value 2"}         ##
    ## This sample response file causes the Oracle Net Configuration    ##
    ## Assistant (NetCA) to complete an Oracle Net configuration during ##
    ## a custom install of the Oracle11g server which is similar to     ##
    ## what would be created by the NetCA during typical Oracle11g      ##
    ## install. It also documents all of the NetCA response file        ##
    ## variables so you can create your own response file to configure  ##
    ## Oracle Net during an install the way you wish.                   ##
    [GENERAL]
    RESPONSEFILE_VERSION="11.2"
    CREATE_TYPE="CUSTOM"
    # Name       : SHOW_GUI
    # Datatype   : Boolean
    # Description: This variable controls appearance/suppression of the NetCA GUI,
    # Pre-req    : N/A
    # Default    : TRUE
    # Note:
    # This must be set to false in order to run NetCA in silent mode.
    # This is a substitute of "/silent" flag in the NetCA command line.
    # The command line flag has precedence over the one in this response file.
    # This feature is present since 10.1.0.3.
    SHOW_GUI=false
    # Name       : LOG_FILE
    # Datatype   : String
    # Description: If present, NetCA will log output to this file in addition to the
    #        standard out.
    # Pre-req    : N/A
    # Default    : NONE
    # Note:
    #  This is a substitute of "/log" in the NetCA command line.
    # The command line argument has precedence over the one in this response file.
    # This feature is present since 10.1.0.3.
    LOG_FILE=""C:/netca.log""
    [oracle.net.ca]
    #INSTALLED_COMPONENTS;StringList;list of installed components
    # The possible values for installed components are:
    # "net8","server","client","aso", "cman", "javavm"
    #INSTALLED_COMPONENTS={"server","net8","javavm"}
    #INSTALL_TYPE;String;type of install
    # The possible values for install type are:
    # "typical","minimal" or "custom"
    INSTALL_TYPE=""typical""
    #LISTENER_NUMBER;Number;Number of Listeners
    # A typical install sets one listener
    LISTENER_NUMBER=1
    #LISTENER_NAMES;StringList;list of listener names
    # The values for listener are:
    # "LISTENER","LISTENER1","LISTENER2","LISTENER3", ...
    # A typical install sets only "LISTENER"
    LISTENER_NAMES={"LISTENER"}
    #LISTENER_PROTOCOLS;StringList;list of listener addresses (protocols and parameters separated by semicolons)
    # The possible values for listener protocols are:
    # "TCP;1521","TCPS;2484","NMP;ORAPIPE","IPC;IPCKEY","VI;1521"
    # A typical install sets only "TCP;1521"
    LISTENER_PROTOCOLS={"TCP;1521"}
    #LISTENER_START;String;name of the listener to start, in double quotes
    LISTENER_START=""ERPSERVER""
    #NAMING_METHODS;StringList;list of naming methods
    # The possible values for naming methods are:
    # LDAP, TNSNAMES, ONAMES, HOSTNAME, NOVELL, NIS, DCE
    # A typical install sets only: "TNSNAMES","ONAMES","HOSTNAMES"
    # or "LDAP","TNSNAMES","ONAMES","HOSTNAMES" for LDAP
    NAMING_METHODS={"TNSNAMES","ONAMES","HOSTNAME"}
    #NOVELL_NAMECONTEXT;String;Novell Directory Service name context, in double quotes
    # A typical install does not use this variable.
    #NOVELL_NAMECONTEXT = ""NAMCONTEXT""
    #SUN_METAMAP;String; SUN meta map, in double quotes
    # A typical install does not use this variable.
    #SUN_METAMAP = ""MAP""
    #DCE_CELLNAME;String;DCE cell name, in double quotes
    # A typical install does not use this variable.
    #DCE_CELLNAME = ""CELL""
    #NSN_NUMBER;Number;Number of NetService Names
    # A typical install sets one net service name
    NSN_NUMBER=1
    #NSN_NAMES;StringList;list of Net Service names
    # A typical install sets net service name to "EXTPROC_CONNECTION_DATA"
    NSN_NAMES={"EXTPROC_CONNECTION_DATA"}
    #NSN_SERVICE;StringList;Oracle11g database's service name
    # A typical install sets Oracle11g database's service name to "PLSExtProc"
    NSN_SERVICE={"PLSExtProc"}
    #NSN_PROTOCOLS;StringList;list of coma separated strings of Net Service Name protocol parameters
    # The possible values for net service name protocol parameters are:
    # "TCP;HOSTNAME;1521","TCPS;HOSTNAME;2484","NMP;COMPUTERNAME;ORAPIPE","VI;HOSTNAME;1521","IPC;IPCKEY" 
    # A typical install sets parameters to "IPC;EXTPROC"
    NSN_PROTOCOLS={"TCP;HOSTNAME;1521"}
    Does anyone have an idea or some information on how to configure the netca.rsp?
    Thanks in advance

    Just one more question how could i uninstall ORACLE client, it is not listed in the Add/remove programs.run Oracle Universal Installer (again).
    OUI contains uninstall capability

  • 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
    Patrick

    user8149666 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"?

  • 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.

  • 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.

  • LDAP(iPlanet & OID) Net Service Names

    Hi There,
    Is it possible to use iPlanet's LDAP for net service names lookup instaed of Oracle Names?
    Is there a way to extract the schema in OID and import into iPlanet ldap. If this could be done then NET8 should be able to connect to the directory server. Why I say this is: according to Oracle documentation, Net8 supports directory naming:
    "Service addresses and net service names can be stored in a Lightweight Directory Access Protocol (LDAP)-compliant directory server."
    Has anyone done this?.
    With the release of Orcale 9i Oracle is due to ship a product called Oracle Names LDAP Proxy. Is there any information on this product.
    All comments and suggestions are very welcome and appreciated
    Regards
    Pat Lehane

    Hi Jay,
    Thanks for the reply.
    I installed NET 8.1.7 and am trying to connect to iPlanet LDAP through NET8 Configuration Assitant to create an Oracle schema in the in the iPlanet Directory Server but I get an error as follows:
    configexception: Could not create Oracle schema:oracle.net.config.ConfigException
    You must update the schema from a computer which directly supports your type of directory
    There are still only three options in the directory server type in NET8 config assitant.
    Is there another way of creating the schema in iPlanet or is there some steps to be done in iPlanet first.
    Regards
    Pat

  • Retrieving local net service name

    Hi, Guys:
    Are there some APIs (C++ on Windows) from Oracle that can be used to retrieve net service names? Or I have to parse the tnsnames.ora file to get the service names?
    Thanks,
    Zhen

    user2014538 wrote:
    Please any body help me ...
    I am using Win 7, installed Oracle 10g 32 bit, i wanted to use:
    Net Configuration Assistant, its getting open but when i select Local Net Service Name configuration, the wizard is not going further.
    Regardsis it windows Ultimate?
    What is the Release? it 10gR1 or 10gR2?
    First check is it certified or not
    https://support.oracle.com/CSP/ui/flash.html#tab=CertifyHomePageV2%28page=CertifyHomePageV2&id=gtlnwdlz%28%29%29
    also if possible you can configure manually also.

  • Net Service Names \ ODBC connection in 8i Pers

    Hi,
    I am new to Oracle and have 8i Personal
    installed. I am trying to get an ODBC connection established to the sample database that was installed but it is not working. I have not been able to get the right combination of net service \ listener \ ODBC parameters. I have tried to do Test Database in the Net8 Assistant even on the
    EXT_PROCCONNECTION_DAT service name that shipped but always get a ORA12560:Protocol Adaptor error. Should my protocol be IPC or TCP\IP - I am running local and the sample database is local, too. Does anyone know what parameters to use to get a connection or where I can find more about ODBC connections?
    Thanks,
    Mike Thrapp

    Problem solved by running ODBC administrator from orahome instead of control panel.

  • Problem with Net Service name

    while installing oracle data warehouse builder 10g
    i am getting prob such tat
    INS0009:Unable to connect to the database with user SYS
    java.sql.SQLException:Io exception : could not resolve the connect identifier
    OraHome_1\network\ADMIN\SAMPLE\TNSNAMES.ORA

    hi my problem is in repository assistant IN 2ND STEP
    After i enter the
    Repository User name sindhu
    Repository User Password tiger (As i kept the password of Oracle 10g)
    SYSDBA User name SYS
    SYSDBA Password tiger (As i kept the password of Oracle 10g)
    Host name Local Host
    Port number 1521 (default)
    Oracle Service name OracleServiceXE
    and i am not clicking the SQL* Plus
    and clicking on " Next "
    then my prob is
    INS0009:Unable to connect to the database with the user SYS
    java.sql.SQLException : Listener refused the connection with the following error
    ORA-12514, TNS: listener dosenot currently know of service requested in connect descriptor
    The Connection Descriptor used by the client was
    (DESCRIPTION=(ADDRESS=(HOST=LOCALHOST)(PROTOCOL=tcp)(PORT=1521))(CONNECT_DATA=
    (SERVICE_NAME=ORACLESERVICEXE)))
    hope some one will give me a gud solution
    Waiting for ur reply
    Sindhu

  • Managing Net Service Names in Oracle Internet Directory

    Hello,
    I would like to manage all my company's network Service Names using OID included in Oracle Fusion 11g.
    Looking for a documentation I've found only an Oracle document related to OID 10.1.4.0.1
    http://www.oracle.com/technology/pub/articles/chan-oid.html
    Where is possible to find similar documentation related to OID in 11g release?
    With Best Regards

    Suggestion: realize that 11gR2 doesn't exist yet.

  • Unable to connect using Net service name

    I'm running 10.2.0.3 on a RHEL 4 box. I am able to connect to Oracle locally using :
    sqlplus username
    however, if i try to login using:
    sqlplus username@SID, i get this error message:
    ================================
    ERROR:
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Linux Error: 2: No such file or directory
    ==================================
    My sqlnet.ora file looks like this:
    =======================
    SQLNET.AUTHENTICATION_SERVICES=(NONE)
    NAMES.DEFAULT_DOMAIN = world
    NAMES.DIRECTORY_PATH=(TNSNAMES)
    =============================
    and my tnsnames.ora file looks like this:
    ===========================
    testsid.world =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 1.2.3.4)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = testsid)
    ==================================
    i ran TNSPING on the box, and that returns a success code, so I'm not really sure what I'm missing here. Any help would be greatly appreciated.

    Peculiar.
    When you show yourself logging on to an instance, wouldn't it be a good idea to then demonstrate that you've actually connected to the right instance? Instead, you do a mere count from a table. Why not, instead, do a select instance_name, status from v$instance? Then we would indeed know that an instance called TESTSID is running and that its status is OPEN. Without that, your statement that "this is how I know the database is up" is really just a faith-based proposition. The statement you show simply tells us AN instance is up: it doesn't tell us WHICH one, though (and your lsnrctl status feedback makes it clear more than one is running).
    Your output from tnsping is largely irrelevant, too. TNSPING tells you whether your client can talk to a listener, and that's it. It says nothing at all about whether the instance you're trying to reach is up, down or otherwise engaged.
    A better command to diagnose these sorts of things, incidentally, is lsnrctl services, because it's a service you are ultimately trying to connect to, so seeing what services your listener is aware of is more useful than knowing the status of the listener.
    Anyway: your listener has been configured statically to listen for two instances (PBDPASSM and TESTSID). "Configuring statically" means simply that your listener.ora will have a SID_LIST section in which both those services are listed as things the listener should be listening for. Because they're in the SID_LIST, that's why those services are listed in your lsnrctl status report -and that's also why they're listed as status UNKNOWN.
    If the instances were actually running, and unless you've set the LOCAL_LISTENER parameter in the init.ora for each instance to something weird, you would **also** see each service listed as 'Ready', because each instance's PMON background process would be registering the existence of its instance dynamically and actively with the listener. It's not saying, "Please listen for this but I don't know if it's running or not" but "here I am and I want you to listen on my behalf". So the listener does know its status at that point, and hence records it as 'ready'.
    The fact that you don't have any statuses of 'ready' means the instances aren't running or they are running but unable to register with the listener (perhaps because LOCAL_LISTENER is directing them to some other listener running on another port). But if dynamic registration was not working for that reason, static registration would still be fine for the purposes of making connections if the instance was actually up. Which again raises the question of which one you managed to connect to when you did the sqlplus / as sysdba in your test.
    I don't believe the case of anything is the issue here, by the way: your listener reports "testsid" and your SERVICE_NAME is asking for a connection to "testsid", so I see no problem there. It would be different if one said 'TESTSID' and the other 'testsid', but that's not what's happening.
    I'd like to see the output of a ps -ef | grep PMON for this host. I'd also like to see the results of a select instance_name, status from v$instance when you do your test connection. And I'd finally like to see the output of show parameter local_listener.

Maybe you are looking for