Error ORA-12162 with sqlplus

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

Similar Messages

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

    Lother 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

  • 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

  • Compiling error ORA-00600 with Forms 6 and Database 10g

    Hi,
    I am using "Oracle Database 10g Enterprise Edition Release 10.1.0.4.0" and "Forms [32 Bit] Version 6.0.8.26.0 " with patch 17, when i compile a form that works with some tables in another database under dblink the error ORA-00600:internal error code, arguments:[16203],[],[],[],[],[],[],[] is displayed.
    If i word with reports or sqlplus no error is displayed.
    Before we installed 10g everything worked ok
    What is wrong with forms or do i need to configure something else?
    Regards
    Yuri V. López Manrique

    I searched for this error on Google and found the following blog:
    Is there a tool to troubleshoot ORA-00600 and ORA-07445 errors?
    February 27th, 2006 By Fahd Mirza
    ORA-00600 and ORA-07445 errors are the most esoteric errors in Oracle.
    There is a tool called “ORA-600/ORA-7445 Troubleshooter” available at Metalink. It asks for the first argument of ORA-600 error with an optional database version number.
    For example, to see the description of the error:
    ORA-00600: internal error code, arguments: [723], [25908], [25908], [memory leak]
    You enter 723 in the “ORA-600 First Argument” field. The first argument is a pointer to where in the code the error was caught and thus is the key information in identifying the problem.
    You can also embed (copy/paste) the “Call Stack Trace” there, and, when you click on the “Search Call Stack” button an advanced MetaLink search is performed to find documents containing relevant sections from the call stack.
    Call Stack extracts from the following files are supported:
    * Generic foreground and background server trace files located in background_dump_dest and user_dump_dest
    * OpenVMS NETV2 and BEQ log files located in ORA_ROOT:[NETWORK.LOG]
    * WINDOWS CORE.LOG files
    * GDB (debugger) backtrace call stacks (best endeavors)
    Of course you will need a login to Oracle's Metalink site.
    Hope that helps,
    c

  • Error when connecting with sqlplus

    hello all
    I installed oracle 10g on windows xp, but whenever i try to access sqlplus through the command line it gives the following error.
    Enter user-name: oracle
    Enter password:
    ERROR:
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Enter user-name:
    i don't know what this means. pls help.

    hello all
    I installed oracle 10g on windows xp, but whenever i try to access sqlplus through the command line it gives the following error.
    Enter user-name: oracle
    Enter password:
    ERROR:
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Enter user-name:
    i don't know what this means. pls help.It seems that oracle database is not up and running. You have to start the instance. Try to startup the database and then connect. If you are a member of ora_dba group on you machine then you can startup as set oracle sid
    C:/>set ORACLE_SID=<SID> --this may there at OracleServicesSID in services of your machine.
    C:/>sqlplus /nolog
    SQL>startup
    Regards.

  • SVG CHart error ORA-20001 with Stacked Bar Chart HTML DB 1.6.0.00.87

    Hi,
    during I put a How-To into execution (How To Create a Stacked Bar Chart) I'll get the following error code:
    SVG Chart error:ORA-20001:line_Chart error:ORA-20001:
    get_data error:ORA-20001:Parse error:ORA009
    (see http://www.oracle.com/technology/products/database/htmldb/howtos/index.html)
    This Situation occurs when i add a second series to the
    chart. The first series works fine. I've used the following SQL-Statement:
    select null l, sales_month, revenue from (select to_char(o.order_timestamp,'Mon YYYY') sales_month, sum(oi.quantity * oi.unit_price) revenue, to_date(to_char(o.order_timestamp,'Mon YYYY'),'Mon YYYY') sales_month_order from DEMO_PRODUCT_INFO p, DEMO_ORDER_ITEMS oi, DEMO_ORDERS o where o.order_timestamp <= (trunc(sysdate,'MON')-1)and o.order_timestamp > (trunc(sysdate-365,'MON'))and o.order_id = oi.order_id and oi.product_id = p.product_id and p.category = 'Audio' group by to_char(o.order_timestamp,'Mon YYYY') order by sales_month_order);
    Please help.
    Regards
    Detlev

    Well,
    I've just been struggling for a couple of hours with a cluster bar chart giving the same problem.
    The problem is definitely with "ORDER BY".
    I guess the graphing chart is taking the sql query as a string and then does some other manipulation on it which ends abnormally when you include the order by clause.
    I presume that if you embed the query in a
    SELECT * FROM (<actual query with order by>)
    it might mitigate the problem.
    Bye,
    Flavio

  • Error ORA-12560 using sqlplus.exe  SQLPLUSW.exe is working !

    hi all,
    i have a strange problem using ora 8.1.7 client on windowsnt to connect against db on solaris.
    sqlplusw.exe works fine but i need sqlplus, and this is the error
    i setted all the variables like oracle-sid in the environment and in registry
    please help me, i have absolut no idea !!!!!!
    thanks
    ORA-12560: TNS:protocol adapter error
    nscall: entry
    nsmal: entry
    nsmal: 140 bytes at 0x475bf0
    nsmal: normal exit
    nscall: connecting...
    nladini: entry
    nladini: exit
    nladget: entry
    nladget: exit
    nsc2addr: entry
    nlpcaini: entry
    nlpcaini: prg =
    nlpcaini: arg[0] =
    nlpcaini: arg[1] =
    nlpcaini: exit
    nsc2addr: normal exit
    nsopen: entry
    nsmal: entry
    nsmal: 420 bytes at 0x476aa0
    nsmal: normal exit
    nsopenmplx: entry
    nsmal: entry
    nsmal: 1712 bytes at 0x15f3bd0
    nsmal: normal exit
    nsopenmplx: normal exit
    nsopen: opening transport...
    ntpcon: entry
    ntpcon: toc = 1
    sntpcall: entry
    snlpcss: entry
    ntpcon: exit
    nserror: entry
    nserror: nsres: id=0, op=65, ns=12560, ns2=0; nt[0]=530, nt[1]=126, nt[2]=0; ora[0]=0, ora[1]=0, ora[2]=0
    nsopen: unable to open transport
    nsbfr: entry
    nsbfr: normal exit
    nsmfr: entry
    nsmfr: 1712 bytes at 0x15f3bd0
    nsmfr: normal exit
    nsmfr: entry
    nsmfr: 420 bytes at 0x476aa0
    nsmfr: normal exit
    nsopen: error exit
    nsclose: entry
    nsclose: normal exit
    nladget: entry
    nladget: exit
    nsmfr: entry
    nsmfr: 140 bytes at 0x475bf0
    nsmfr: normal exit
    nladtrm: entry
    nladtrm: exit
    nscall: error exit
    nioqper: error from nscall
    nioqper: nr err code: 0
    nioqper: ns main err code: 12560
    nioqper: ns (2) err code: 0
    nioqper: nt main err code: 530
    nioqper: nt (2) err code: 126
    nioqper: nt OS err code: 0
    niomapnserror: entry
    niqme: entry
    niqme: reporting NS-12560 error as ORA-12560
    niqme: exit
    niomapnserror: returning error 12560
    niomapnserror: exit
    niotns: Couldn't connect, returning 12560
    niotns: exit
    nsbfrfl: entry
    nsbfrfl: normal exit
    nigtrm: Count in the NI global area is now 0
    nnfgdei: entry
    nrigbd: entry
    nrigbd: exit
    nigtrm: Count in the NL global area is now 0

    Hello Hemant,
    you can't connect via the listener unless the database is up.You mean if we are going to connect @, db must be mount/open? We can'nt connect with @ in nomount state?
    But i think we can connect in nomount using @, if we are having an SID name in SID_LIST of listener.ora?
    Please correct me, if i am wrong.
    Thanks and Regards
    Girish

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

  • Error ORA-00907 with query  SDO_GEOM.SDO_DIFFERENCE

    Hi,
    I have following query:
    SELECT SDO_GEOM.SDO_DIFFERENCE(
    SDO_RELATE(square.geometry, SDO_GEOM.SDO_BUFFER(MDSYS.SDO_GEOMETRY(3001, 1, MDSYS.SDO_POINT_TYPE(424, 1272, 0) , NULL, NULL), 100, 0.05,'unit=m arc_tolerance=0.005'), 'mask=ANYINTERACT querytype=WINDOW') = 'TRUE',
    SDO_RELATE(square.geometry, SDO_GEOM.SDO_BUFFER(MDSYS.SDO_GEOMETRY(3001, 1, MDSYS.SDO_POINT_TYPE(276, 1274, 0) , NULL, NULL), 100, 0.05,'unit=m arc_tolerance=0.005'), 'mask=ANYINTERACT querytype=WINDOW') = 'TRUE',
    0.001
    Always get the ora-00907: a bracket is missing-error.
    Any help is really appreciated. Is there a error in the query?
    Regards Ronald.

    Hi Ronald,
    try following:
    SELECT SDO_GEOM.SDO_DIFFERENCE(
        SELECT square.geometry from square where
          SDO_RELATE (square.geometry, SDO_GEOM.SDO_BUFFER(
              MDSYS.SDO_GEOMETRY(
                3001, 1, MDSYS.SDO_POINT_TYPE(424, 1272, 0) , NULL, NULL
              ), 100, 0.05,'unit=m arc_tolerance=0.005'
            ), 'mask=ANYINTERACT querytype=WINDOW'
          ) = 'TRUE'
        SELECT square.geometry from square where
          SDO_RELATE (square.geometry, SDO_GEOM.SDO_BUFFER(
              MDSYS.SDO_GEOMETRY(
                3001, 1, MDSYS.SDO_POINT_TYPE(276, 1274, 0) , NULL, NULL
              ), 100, 0.05,'unit=m arc_tolerance=0.005'
            ), 'mask=ANYINTERACT querytype=WINDOW'
          ) = 'TRUE'
        0.001   
    FROM DUAL   

  • Networking error (ORA-28547) with 10g on Red Hat Linux

    Hello everybody
    I'm having the following error when trying to set up a 10g database on a Red Hat machine. I can start the listener correctly, but then the Enterprise Manager shows the following error in the 'Agent Connection to Instance' section:
    ORA-28547: connection to server failed, probable Oracle Net admin error (DBD ERROR: OCISessionBegin)
    When I try to access using SQL*Plus, I get the same error. I don't know what can be wrong: the listener starts correctly, tnsping gives OK, both using the server name and the SID, and the config. files seem to be correct. Anyone has a clue?
    Thanks in advance for your answers.
    Just in case, here are (the relevant parts of) mi config. files:
    listener.ora:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (PROGRAM = extproc)
    (SID_NAME = oradb10g)
    (ORACLE_HOME = /opt/app/oracle/)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = oradb10g))
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = st03)(PORT = 1521))
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    tnsnames.ora:
    ORADB10G =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = st03)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = oradb10g)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(Key = EXTPROC0))
    (CONNECT_DATA =
    (SID = oradb10g)
    (PRESENTATION = RO)
    sqlnet.ora:
    SQLNET.AUTHENTICATION_SERVICES=(NONE)
    Thanks again.

    Sorry for the delay, I've been kind of busy :S
    Here are the requested files' contents
    /etc/hosts:
    192.168.1.19 st00.summatec.net st00
    192.168.1.33 st03.summatec.net st03
    127.0.0.1 localhost.localdomain localhost
    192.168.1.11 st01.summatec.net st01
    /etc/nsswitch.conf:
    passwd: files
    shadow: files
    group: files
    hosts: files dns
    bootparams: nisplus [NOTFOUND=return] files
    ethers: files
    netmasks: files
    networks: files
    protocols: files
    rpc: files
    services: files
    netgroup: files
    publickey: nisplus
    automount: files
    aliases: files nisplus
    $ORACLE_HOME/sysman/config/emd.properties:
    perlBin=/opt/app/oracle/perl/bin
    scriptsDir=/opt/app/oracle/sysman/admin/scripts
    emdRoot=/opt/app/oracle
    agentStateDir=/opt/app/oracle
    chronosRoot=/opt/app/oracle/sysman/emd/chronos
    REPOSITORY_URL=http://st03.summatec.net:4889/em/upload/
    agentSeed=802746336
    agentVersion=10.1.0.4.0
    UploadInterval=5
    UploadFailBackoffPct= 20
    UploadTimeout=1800
    UploadFileSize=2048
    UploadMaxBytesXML=50
    UploadMaxNumberXML=5000
    UploadMaxDiskUsedPct=98
    UploadMaxDiskUsedPctFloor=95
    emdRootCertLoc=/opt/app/oracle/sysman/config/b64LocalCertificate.txt
    internetCertLoc=/opt/app/oracle/sysman/config/b64InternetCertificate.txt
    emdWalletSrcUrl=http://st03.summatec.net:4889/em/wallets/emd
    emdWalletDest=/opt/app/oracle/sysman/config/server
    emd_email_address=
    emd_email_gateway=
    emd_from_email_address=
    EMD_URL=http://st03.summatec.net:/emd/main/
    AgentListenOnAllNICs=TRUE
    NormalThreadStackSize=0
    ouiLoc=/opt/app/oracle/oui
    hostConfigClasspath=/opt/app/oracle/oui/jlib/xmlparserv2.jar:/opt/app/oracle/oui/jlib/OraInstaller.jar:/opt/app/oracle/oui/jlib/srvm.jar:/opt/app/oracle/oui/jlib/share.jar:/opt/app/oracle/sysman/jlib/emd_java.jar:/opt/app/oracle/sysman/jlib/log4j-core.jar
    JAVA_HOME=/opt/app/oracle/jdk/jre
    CLASSPATH=/opt/app/oracle/sysman/jlib/emd_java.jar:/opt/app/oracle/opmn/lib/ons.jar:/opt/app/oracle/lib/xmlparserv2.jar:/opt/app/oracle/sysman/jlib/log4j-core.jar:/opt/app/oracle/oc4j/j2ee/home/lib/http_client.jar:/opt/app/oracle/lib/dms.jar:/opt/app/oracle/lib/dmsEmd.jar:/opt/app/oracle/jlib/share.jar:/opt/app/oracle/jdbc/lib/ojdbc14dms.jar:/opt/app/oracle/jlib/jssl-1_1.jar:/opt/app/oracle/jlib/javax-ssl-1_1.jar:/opt/app/oracle/jlib/ojmisc.jar:/opt/app/oracle/lib/em_test.jar:/opt/app/oracle/jlib/ojmisc.jar:/opt/app/oracle/jlib/repository.jar:/opt/app/oracle/opmn/lib/optic.jar
    agentJavaDefines=-Doracle.dms.refresh.wait.time=1000 -DUrlTiming.UseJSSE=true
    LogFileMaxSize=4096
    LogFileMaxRolls=4
    TrcFileMaxSize=4096
    TrcFileMaxRolls=4
    dynamicPropsComputeTimeout=60
    EMAGENT_PERL_TRACE_LEVEL=ERROR
    tracelevel.main=WARN
    tracelevel.emSDK.xml=WARN
    tracelevel.emSDK.utl=WARN
    tracelevel.ResMonitor=WARN
    tracelevel.Dispatcher=WARN
    tracelevel.ThreadPool=WARN
    tracelevel.pingManager=WARN
    tracelevel.collector=WARN
    tracelevel.http=WARN
    tracelevel.ssl=WARN
    tracelevel.ssl.io=WARN
    tracelevel.blackouts=WARN
    tracelevel.upload=WARN
    tracelevel.command=WARN
    tracelevel.reload=WARN
    tracelevel.scheduler=WARN
    tracelevel.Authentication=WARN
    tracelevel.metadata=WARN
    tracelevel.targets=WARN
    tracelevel.TargetManager=WARN
    tracelevel.engine=WARN
    tracelevel.javaproc=WARN
    tracelevel.vpxoci=WARN
    tracelevel.javavm=WARN
    tracelevel.fetchlets=WARN
    tracelevel.fetchlets.os=WARN
    tracelevel.fetchlets.osline=WARN
    tracelevel.fetchlets.oslinetok=WARN
    tracelevel.fetchlets.UDM=WARN
    tracelevel.fetchlets.sql=WARN
    tracelevel.fetchlets.url=WARN
    tracelevel.fetchlets.urllines=WARN
    tracelevel.fetchlets.urllinetoken=WARN
    tracelevel.fetchlets.URLTiming=WARN
    tracelevel.fetchlets.propEcho=WARN
    tracelevel.fetchlets.readFromFile=WARN
    tracelevel.fetchlets.readMultFromFile=WARN
    tracelevel.fetchlets.throwable=WARN
    tracelevel.fetchlets.resourceGrab=WARN
    tracelevel.fetchlets.emSDK=WARN
    httpTimeoutPrimaryHeader=30
    httpTimeoutSecondaryHeaders=30
    httpTimeoutBody=60
    $ORACLE_HOME/log/st03/client/css.log:
    (the following lines are repeated several times)
    2006-05-02 12:33:35.709: [  OCROSD][3070490304]utgdv:2:ocr loc file cannot be opened
    2006-05-02 12:33:35.710: [  OCROSD][3070490304]utopen:1: Couldnt find ocr,[ocrmirror] location in config file
    2006-05-02 12:33:35.710: [  OCRRAW][3070490304]proprinit: Could not open raw device
    2006-05-02 12:33:35.710: [ default][3070490304]a_init:7!: Backend init unsuccessful : [33]
    2006-05-02 12:33:35.711: [ CSSCLNT][3070490304]clsssinit: error(33 ) in OCR initialization
    $ORACLE_HOME/network/log/listener.log (a representative piece):
    05-MAY-2006 10:46:58 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=oradb10g)) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.33)(PORT=52204)) * establish * oradb10g * 0
    05-MAY-2006 10:47:07 * ping * 0
    WARNING: Subscription for node down event still pending
    05-MAY-2006 10:47:07 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=st03.summatec.net)(USER=oracle))(COMMAND=status)(ARGUMENTS=64)(SERVICE=(ADDRESS=(PROTOCOL=TCP)(HOST=st03.summatec.net)(PORT=1521)))(VERSION=169869568)) * status * 0
    05-MAY-2006 10:47:08 * (CONNECT_DATA=(SID=oradb10g)(CID=(PROGRAM=perl)(HOST=st03.summatec.net)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.33)(PORT=52208)) * establish * oradb10g * 0
    05-MAY-2006 10:47:28 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=oradb10g)) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.33)(PORT=52212)) * establish * oradb10g * 0
    (the last line is repeated several times)
    $ORACLE_HOME/network/log/sqlnet.log :
    Fatal NI connect error 12505, connecting to:
    (DESCRIPTION=(SOURCE_ROUTE=OFF)(ADDRESS=(PROTOCOL=IPC)(Key=EXTPROC0))(CONNECT_DATA=(SID=oradb10g)(SERVER=)(PRESENTATION=RO)(CID=(PROGRAM=java)(HOST=st03.summatec.net)(USER=oracle))))
    VERSION INFORMATION:
    TNS for Linux: Version 10.2.0.1.0 - Production
    Unix Domain Socket IPC NT Protocol Adaptor for Linux: Version 10.2.0.1.0 - Production
    TCP/IP NT Protocol Adapter for Linux: Version 10.2.0.1.0 - Production
    Time: 02-MAY-2006 12:35:22
    Tracing not turned on.
    Tns error struct:
    ns main err code: 12564
    TNS-12564: TNS:connection refused
    ns secondary err code: 0
    nt main err code: 0
    nt secondary err code: 0
    nt OS err code: 0
    Fatal NI connect error 12505, connecting to:
    (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(Key=EXTPROC0))(CONNECT_DATA=(SID=oradb10g)(PRESENTATION=RO)(CID=(PROGRAM=java)(HOST=st03.summatec.net)(USER=oracle))))
    VERSION INFORMATION:
    TNS for Linux: Version 10.2.0.1.0 - Production
    Unix Domain Socket IPC NT Protocol Adaptor for Linux: Version 10.2.0.1.0 - Production
    TCP/IP NT Protocol Adapter for Linux: Version 10.2.0.1.0 - Production
    Time: 02-MAY-2006 12:38:18
    Tracing not turned on.
    Tns error struct:
    ns main err code: 12564
    TNS-12564: TNS:connection refused
    ns secondary err code: 0
    nt main err code: 0
    nt secondary err code: 0
    nt OS err code: 0
    I wasn't sure which logs to post, so I included the ones in $ORACLE_HOME/logs and $ORACLE_HOME/network/logs; I hope they are helpful.
    Thanks again, and sorry for the long post.

  • 805 SQLPlus to Sun 7.3.4: ORA-12162

    Hi,
    I have installed Net8 and SQL*Plus from 8.0.5 on SuSE Linux 6.0.
    Using SQL*Plus from Linux to a Server V7.3.4.2 on Win NT works
    OK, but using it against a Server V7.3.4.0.1 on Solaris 2.6
    gives the error
    ORA-12162: TNS: service name is incorrectly specified
    The listener logfile on the Solaris server shows that tnsping
    and the connection startup from SQL*Plus go through.
    The connection string traced by the listener looks the same
    as when connecting to the same instance from a HP-UX client.
    The Linux client logfile cli.trc contains the following error
    trace:
    nioqbr: entry
    nioqbr: state = normal (0)
    nioqsm: entry
    nioqsm: Sending break packet (1)...
    nsdo: entry
    nsdo: cid=0, opcode=67, bl=1, what=18, uflgs=0x100, cflgs=0x3
    nsdo: rank=64, nsctxrnk=0
    nsdo: nsctx: state=8, flg=0x420d, mvd=0
    nsdo: gtn=127, gtc=127, ptn=10, ptc=2047
    nsdo: sending ATTN
    nsdo: transport write error
    nserror: entry
    nserror: nsres: id=0, op=67, ns=12571, ns2=12560; nt[0]=504,
    nt[1]=0, nt[2]=0
    nsdo: nsctxrnk=0
    nsdo: error exit
    nioqsm: send-break: failed to send OOB break...
    nioqper: error from send-marker
    nioqper: nr err code: 0
    nioqper: ns main err code: 12571
    nioqper: ns (2) err code: 12560
    nioqper: nt main err code: 504
    nioqper: nt (2) err code: 0
    nioqper: nt OS err code: 0
    nioqer: entry
    nioqer: incoming err = 12152
    niqme: entry
    niqme: reporting ns (2) error: (12571) as rdbms err (12571)
    niqme: exit
    nioqce: entry
    nioqce: exit
    nioqer: returning err = 12571
    nioqer: exit
    nioqbr: returning 12571
    nioqbr: exit
    nioqds: entry
    nioqds: disconnecting...
    The V7 documentation lists 12571 as an internal error when
    sending the packet, but gives no hint for a fix.
    (The Connection from Linux Net8 to a V7 Server on HP-UX fails
    with the same message.)
    Can anybody tell me the fix for this?
    Thank you,
    Mathias
    null

    I can confirm that the "disable_oob = ON" suggestion works for me
    as well. At last!
    /jde
    Anwar (guest) wrote:
    : Try adding
    : disable_oob = ON
    : to your sqlnet.ora. Works for me.
    : Anwar.
    : Mathias Naumann (guest) wrote:
    : : Hi,
    : : I have installed Net8 and SQL*Plus from 8.0.5 on SuSE Linux
    : 6.0.
    : : Using SQL*Plus from Linux to a Server V7.3.4.2 on Win NT
    works
    : : OK, but using it against a Server V7.3.4.0.1 on Solaris 2.6
    : : gives the error
    : : ORA-12162: TNS: service name is incorrectly specified
    : : The listener logfile on the Solaris server shows that tnsping
    : : and the connection startup from SQL*Plus go through.
    : : The connection string traced by the listener looks the same
    : : as when connecting to the same instance from a HP-UX client.
    : : The Linux client logfile cli.trc contains the following error
    : : trace:
    : : nioqbr: entry
    : : nioqbr: state = normal (0)
    : : nioqsm: entry
    : : nioqsm: Sending break packet (1)...
    : : nsdo: entry
    : : nsdo: cid=0, opcode=67, bl=1, what=18, uflgs=0x100,
    cflgs=0x3
    : : nsdo: rank=64, nsctxrnk=0
    : : nsdo: nsctx: state=8, flg=0x420d, mvd=0
    : : nsdo: gtn=127, gtc=127, ptn=10, ptc=2047
    : : nsdo: sending ATTN
    : : nsdo: transport write error
    : : nserror: entry
    : : nserror: nsres: id=0, op=67, ns=12571, ns2=12560; nt[0]=504,
    : : nt[1]=0, nt[2]=0
    : : nsdo: nsctxrnk=0
    : : nsdo: error exit
    : : nioqsm: send-break: failed to send OOB break...
    : : nioqper: error from send-marker
    : : nioqper: nr err code: 0
    : : nioqper: ns main err code: 12571
    : : nioqper: ns (2) err code: 12560
    : : nioqper: nt main err code: 504
    : : nioqper: nt (2) err code: 0
    : : nioqper: nt OS err code: 0
    : : nioqer: entry
    : : nioqer: incoming err = 12152
    : : niqme: entry
    : : niqme: reporting ns (2) error: (12571) as rdbms err (12571)
    : : niqme: exit
    : : nioqce: entry
    : : nioqce: exit
    : : nioqer: returning err = 12571
    : : nioqer: exit
    : : nioqbr: returning 12571
    : : nioqbr: exit
    : : nioqds: entry
    : : nioqds: disconnecting...
    : : The V7 documentation lists 12571 as an internal error when
    : : sending the packet, but gives no hint for a fix.
    : : (The Connection from Linux Net8 to a V7 Server on HP-UX fails
    : : with the same message.)
    : : Can anybody tell me the fix for this?
    : : Thank you,
    : : Mathias
    null

  • SQL-Query with JDBC returns error ORA-00600

    Hi,
    I try to execute a SQL-Query using JDeveloper 3.2.3 and the Oracle JDBC-Library 8.1.7
    The following statement
    'ResultSet rset=stmt.executeQuery(SQL-String);'
    where stmt is Statement returns a Database-Error
    ORA-00600 with the Arguments [ttcgcshnd-1], [0] [], [], [], [], [], []
    when the SQL-String queries Varchar2 or CHAR-Columns.
    The Query returns correct values for numeric fields.
    The Database-Server is running on Oracle 9i
    Does anybody know, what could be the reason?
    Thanks, Harold

    I found many forums about it also, but I still haven't got solution yet.
    They talk about the cause, and report to oracle group and so on,
    but I still don't know how to solve my problem and how to enable my oracle 9i jdbc driver working.
    Need help please

  • Connecting to an oracle database with SQLPlus

    I'm trying to connect from one CentOS server with SQLPlus installed to another CentOS server with Oracle installed.
    I've installed
    oracle-instantclient-basic-11.1.0.1-1.i386.rpm
    and
    oracle-instantclient-sqlplus-11.1.0.1-1.i386.rpm
    on the first server.
    I'm able to connect to the oracle server via SQL Developer without difficulties.
    When I try to connect to it via the command line with SQLPlus, I'm running the following:
    sqlplus savantdb@//192.168.100.37:1521/orcl
    But all I'm getting back is something that reads like help documentation.
    I've exported the LD_LIBRARY_PATH to point at /usr/lib/oracle/11.1.0.1/client/lib/:/lib
    I've created a tnsnames.ora file in my home directory containing the following:
    orcl=
    (DESCRIPTION=
    (ADDRESS=
    (PROTOCOL=tcp)
    (HOST=drax)
    (PORT=1521)
    (CONNECT_DATA=
    (SERVICE_NAME=orcl)
    Then I tried moving to my home directory and running
    sqlplus savantdb@orcl
    This prompts for a password, then throws the following error:
    ERROR:
    ORA-12154: TNS:could not resolve the connect identifier specified
    Then asks for a username/password, after which it throws the following error:
    ERROR:
    ORA-12162: TNS:net service name is incorrectly specified
    What I want to do is allow my unit tests written in Selenium and PHPUnit to make shell_exec calls to execute sql files to recreate the database from scratch before putting the application through its paces. So I need to make it totally non-interactive.
    Can anyone give me a clue where I'm going wrong here?

    You are mixing up the various naming methods. Try to stick to one!
    Your first attempt sqlplus savantdb@//192.168.100.37:1521/orcl uses the so-called "easy connect" method.
    That's actually not a bad idea, as it is fairly short and does not require a "tnsnames.ora" file, which is a pain in the somewhere or else.
    sqlplus has a parsing problem if you don't enclose part of the string in double quotes. You cannot find that in the documentation, but in Metalink Note 274757.1.
    The syntax is like this:
    sqlplus savantdb@\"//192.168.100.37:1521/orcl\"
    Your second attempt tries to use the TNS (local) naming method, but for that you need to have an environment variable TNS_ADMIN pointing to the directory containing "tnsnames.ora". It does not matter if that directory is your current directory or not. You don't need that if you use the method described above.
    The last error message is because of the annoying behaviour of sqlplus to ask for username and password (for a local connection!) again if the first attempt failed.
    You can avoid that by giving sqlplus the -L flag.
    Yours,
    Laurenz Albe
    PS: If you want to "make it totally non-interactive" you should add a password, like
    sqlplus savantdb/password@//192.168.100.37:1521/orcl
    In that case, you don't need to add the \"

  • Cannot connect to new XE DB install with sqlplus

    Hi, this is my first time installing Oracle and I need help connecting to it with the command line sqlplus client. I have the Oracle XE DB running on Ubuntu 7.04 and I can connect and log in as 'system' with the web interface on localhost. Now I am trying to connect with the sqlplus command line client. When I run sqlplus and put in 'system' and the password I set, I get:
    "ERROR:
    ORA-12162: TNS:net service name is incorrectly specified"
    Can someone tell me what I'm doing wrong? Thanks. I will reply with additional information if necessary.
    -Dan

    additional information

  • ORA-12162 TNS

    Hi,
    I am getting bellow error.Any idea?
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Enter user-name: "/as sysdba"
    Enter password:
    ERROR:
    ORA-12162: TNS:net service name is incorrectly specified
    Thanks,
    Mk

    [oracle@oracle ~]$ sqlplus
    SQL*Plus: Release 11.2.0.1.0 Production on Tue Oct 20 14:24:41 2009
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    Enter user-name: / as sysdba
    ERROR:
    ORA-12162: TNS:net service name is incorrectly specified
    Enter user-name:
    ERROR:
    ORA-12162: TNS:net service name is incorrectly specified
    Enter user-name: [oracle@oracle ~]$
    [oracle@oracle ~]$ export ORACLE_SID=DB112
    [oracle@oracle ~]$ sqlplus
    SQL*Plus: Release 11.2.0.1.0 Production on Tue Oct 20 14:24:59 2009
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    Enter user-name: / as sysdba
    Connecte a :
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL>

Maybe you are looking for