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.

Similar Messages

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

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

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

  • Database Service Name or Global Database Name with Oracle 10G, when Oracle

    I have an old installation of Oracle 9i (SID=ORCL) and now have installed Oracle 10G (SID=ORC2). I can get connection to Oracle 10G if i define it as an Oracle 8 compatible identification (ie I access to a SID, and don´t provide a Service Name.
    Now I want to install Oracle HTML DB, and succeeded to install the SQL-script that came with the download, but when I install Apache and HTML DB from the Oracle Companion CD I am asked to give the Database Service Name (in the Help it is explained as the Global Database Name).
    When i give the Net Service Name I get error messages (incomprehensible).
    When I look in Net Manager, the Net Service Name does not have a Service Name, but only points to a SID (ie ORC2).
    Where can I find the Database Service Name (or Global Database Name), OR define it if it is not defined??
    Thanks for your help,

    create a net service for oracle10g and provide the name of this service during HTML DB installation it is required for installation.

  • 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

  • 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

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

  • 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

  • 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

  • How to deal with the situation when the database change into ms-sqlserver ?

    Hi,dear all,
    How to deal with the situation when the database change into ms-sqlserver or other database?
    Now, i want to build a j2ee project with ORACLE ADF bc,but this project may be used in several diffrent databases for example oracle db,ms db,mysql and so on.however,if i have developer this project in jdeveloper and this project connection was config as a oracle database,and then,can this project be reused for other databases espasially including the model codes? if yes,how should i do?
    all who know how to resolve this,tell me pls,thanks.
    bruce Li,
    China
    Message was edited by:
    user526724

    Hi Paulbin,
    Do you want to supply a function-pointer to a DLL so it can call[back] your VI?  Here's how it can be done with .NET, though, that solution requires a C compiler.   A single "VI_to_function-reference" utility could handle all cases where the callback passes no parameters.  Maybe someday somebody will share that dll.
    Did you know that LabVIEW can use Events for some COM-signals change?  See pic.  (Note: DTR is not listed - - )
    Another question is another function's prototype is WORD SetTestType(WORD comHandle, bool type1, bool type2, bool type3),   I tried to use a boolean control and a Boolean to (0,1) node in labVIEW to pass parameters to CLF, I config the bool input value as U8(according to C++ bool type) and U32(according to WIN32 BOOL type), it dose not help, when I execute the VI, LabVIEW will be disappeare, it seems to be closed, I must start it again.
    Could someone has similar experience on this points?
    It's easy to crash LabVIEW misusing CLF - maybe there's another reason for the crash besides bool mis-match(?)  Do you know which "Calling convention" is required?  What type is comHandle? (where does comHandle come from?) 
    Cheers!
    Message Edited by tbd on 03-23-2007 09:34 PM
    Message Edited by tbd on 03-23-2007 09:35 PM
    "Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
    Attachments:
    evt.jpg ‏7 KB

  • How to check my job name from the database...

    I have written one job scheduler which is as follows :
    SQL> ED
    Wrote file afiedt.buf
    1 DECLARE
    2 X NUMBER;
    3 JobNumber NUMBER;
    4 BEGIN
    5 SYS.DBMS_JOB.SUBMIT
    6 (
    7 job => X
    8 ,what => 'scott.SPLITSMS;'
    9 ,next_date => SYSDATE+1/1440
    10 ,interval => 'SYSDATE+1/1440 '
    11 ,no_parse => FALSE
    12 );
    13 JobNumber := to_char(X);
    14* END;
    15 /
    PL/SQL procedure successfully completed.
    Now I want to check whether the job has been really created or not?
    so for that I have used the following command line:
    SQL> SELECT JOB_NAME FROM DBA_SCHEDULER_JOBS WHERE JOB_NAME = 'SCOTT.SPLITSMS';
    SELECT JOB_NAME FROM DBA_SCHEDULER_JOBS WHERE JOB_NAME = 'SCOTT.SPLITSMS'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    how to check my job name from the database...
    what is the command used to check the job_name ????
    and how can i ensure that my job scheduler is running properly...???
    please help ........my dear friends.....!

    957029 wrote:
    Now I want to check whether the job has been really created or not?
    so for that I have used the following command line:
    SQL> SELECT JOB_NAME FROM DBA_SCHEDULER_JOBS WHERE JOB_NAME = 'SCOTT.SPLITSMS';
    SELECT JOB_NAME FROM DBA_SCHEDULER_JOBS WHERE JOB_NAME = 'SCOTT.SPLITSMS'
    ERROR at line 1:
    ORA-00942: table or view does not existYou can use DBA_* views only if the User has been Granted a DBA Privilege.
    how to check my job name from the database...
    what is the command used to check the job_name ????You can use USER_JOBS view to check. But, is it not that you have just created the Job, so you must be knowing it?
    and how can i ensure that my job scheduler is running properly...???If USER_JOBS.FAILURES is Non Zero, that means the Job has encountered a problem that needs to be Investigated. Similarly, the LAST_DATE, LAST_SEC, NEXT_DAY, NEXT_SEC can be used to determine if the Job has been running successfully.
    if you are on 11g, you should consider using DBMS_SCHEDULER.

  • How does one find out the database name , service name in a database

    hi,
    how do u find out the database name , service name , SID in a database.
    Please reply.
    Thanks ,
    Regards,
    RC

    This particular information is available in the view V_$PARAMETER owned by SYS. But you can also login with Server Manager as user INTERNAL and run:
    SHOW PARAMETERS
    The entries pertaining to the naming of the database are:
    1. db_name
    2. db_domain
    3. db_name
    4. instance_name
    5. service_names
    GLOBAL_NAME is a static (not changing) Data Dictionary view which has just 1 attribute (column) called GLOBAL_NAME.
    When you run:
    select GLOBAL_NAME from GLOBAL_NAME;
    You are returned the full global name of the database, i.e. the db_name and the db_domain joined together by dot (.) For e.g. if your db_name = mgmt and db_domain = tech.co.in, then your global_name will be MGMT.TECH.CO.IN.
    Ciao.
    null

  • How to get the service name of a webservice using UDDI API

    Hi,
    Iam working on setting up a dynamic partner link in a BPEL, by passing the endpoint of a web service queried from the UDDI (Oracle Service Registry 10.3 ) using the API. Iam able to do it successfully.
    Now, for example I have two operations in my wsdl, one to createCustomer and the other to bookTicket. I need to get the operation name using UDDI API so that i can pass it along with the endpoint to the partner link. ie. When i need to createCustomer, my UDDI API code will need to get the service name createCustomer and the endpoint and I would pass them to the partnerlink and the createCustomer operation of my webservice would be called.
    Can any one help me to get the service names of the wsdl using UDDI APIs.
    Thanks,
    Ananth

    Hi sia,
    1. Table is APQI
    2. field name for session name is GROUPID
    regards,
    amit m.

Maybe you are looking for