Problem in connecting to sqlplus

Hi all,i have been facing problem in connecting to sqlplusw.Whenever i try to connect to our local instance i face this problem.However,when i try to connect to my client db it works fine.I understand what's going wrong.All tns names are correct as per my undderstanding
CAn anyone say what i am missing
Error while trying to connect:
Oracle SQL*PLUS has encountered a problem and needs to close.  We are sorry for the inconvenienceBut when i try to connect to same db using sqlplus,it connects..i am only facing the error with sqlplusw
Thanks in advance!!

Hi sandy;
Please check:
Oracle SQL*PLUS has encountered a problem and needs to close
sqlplus fails to start, halting Ora10g install on WinXP
Regard
Helios

Similar Messages

  • Problem in connecting to sqlplus from windows batch file (DOS)

    Hi All,
    We have a new 10g Oracle database installed on windows server. I am trying to write a windows batch file to
    1) Connect to SQLPLUS
    2) Execute a script
    3) Disconnect from SQLPLUS.
    Example File Name:- execsql.bat
    SET ORACLE_SID=CAUT
    SET SCHEMA_IN=%1
    SET PASS=DEV
    SET script=%2
    sqlplus %SCHEMA_IN%/%PASS%@%ORACLE_SID% @%script%
    if %errorlevel% NEQ 0 echo ERROR: %ERRORLEVEL% else echo OK
    Now if i run this bat file like :- execsql.bat DEV script1.sql
    DEV= schema name,
    script1.sql = this file contains select * from dual;
    The code runs fine, but if i change dual to dual1 the sql error's out but not able to catch the error in the batch file.
    Reason why i would like to catch the error is this batch file would be scheduled through Autosys job scheduler and for autosys any exit code >0 is an error. Please help me in rewriting this batch script.
    Thanks
    Sam.

    Hello,
    What if you run this in SQL*Plus before you run the SELECT:
    whenever sqlerror exit failure

  • Problems when I try to connect to sqlplus

    Hi,
    Can someone help me with the following problem?
    When I try to connect to sqlplus I get this response
    "ora 12514: listener could not resolve SERVICE_NAME given in connect descriptor "

    user555145 wrote:
    this is the tnsnames.ora
    "# tnsnames.ora Network Configuration File: C:\oracle\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    ORCL =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = orcl)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = orcl)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    the sqlnet.ora
    "# sqlnet.ora Network Configuration File: C:\oracle\network\admin\sqlnet.ora
    # Generated by Oracle configuration tools.
    SQLNET.AUTHENTICATION_SERVICES= (NTS)
    NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
    and listener.ora
    "# listener.ora Network Configuration File: C:\oracle\NETWORK\ADMIN\listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = Oracle8)
    (ORACLE_HOME = c:\oracle\bin)
    (SID_NAME = ORCL)
    (SID_DESC =
    (GLOBAL_DBNAME = orcl)
    (PROGRAM = extproc)
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oracle)
    LISTENER =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = user.mycomputer.com)(PORT = 1521))
    There are lots of mismatches in your files.
    Tnsnames point to a host called "orcl" but listener is listening on user.mycomputer.com. Why it is so ?
    Second, in the listener.ora , the global db name is set to Oracle8 while sid is set to ORCl.
    Can you try removing all these , match the files, restart teh listener and retry connection please?
    HTH
    Aman....

  • Connect to SqlPLus

    Hi to everybody
    I installed oracle Client 10g-home2 in my laptop having the Windows 7 Home premium OS.. But I cant able to connect with
    SQLPLUS. After entering the Username,password,hoststring it is exiting.. It doesn't show any errors..
    Can anyone tel whats the problem also whats the username,password and host string need to give??
    How can I check If oracle Database is installed or not??
    Thanks in advance

    There are several issues with the information you have posted.
    First, you have installed the client - this is software needed to access a database on a remote computer. This does not include the software needed to create a database. For this, you will need to install the full blown software (which also includes the client piece) and create a database.
    Second, no Oracle software is supported/certified on any Windows Home version. You will need to upgrade to Win 7 Professional or higher, or downgrade to Win XP Pro.
    The database software download for 11gR2 is available here - http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html
    The Install Guide for 11gR2 is here (for Win) - http://download.oracle.com/docs/cd/E11882_01/install.112/e16773/toc.htm
    When you install the software on a supported OS, one of the options is to create a database (typically named "orcl") during the install process - you select a password when creating the database. Or you could install the software first, then create a database using DBCA (database creation assistant) - pl review the Guide posted above
    HTH
    Srini

  • Problem in connect to database?

    hello experts,
    when i am trying to connect with sqlplus with my user following error is showing:
    ora 01034: oracle not available
    ora 27101shared memory realm SGA does not exist.
    suddendly this error is showing. i just connect successfully before 10 minuts.
    please help me how to resolve it and what is the problem.
    but when i can connect to sysdba i hgiven message:
    connected to an ideal instance.
    thanks
    yash

    sqlplus / as sysdba
    startup ;Also how Many Instance you have ?
    Do you have one more than once on same server ?
    How many Memory (Ram) Server have ?

  • Error 12545 on Connecting with sqlplus to Database. Remote connect hangs.

    Hi there,
    i'am new to Oracle.
    After installing 11g on Windows 2008 x64 Server i had solved many Problems. But this Problem now i do not get fixed.
    If i connect through SQLPlus local to DB it works. But if i connect on client (Win XP Service Pack 3) it hangs.
    Firewalls are turned off.
    Ping and TNSping works fine.
    Listener.ora:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = CLRExtProc)
    (ORACLE_HOME = D:\app\Administrator\product\11.2.0\dbhome_1)
    (PROGRAM = extproc)
    (ENVS = "EXTPROC_DLLS=ONLY:D:\app\Administrator\product\11.2.0\dbhome_1\bin\oraclr11.dll")
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = de0-vsidcoes-p1)(PORT = 1521))
    ADR_BASE_LISTENER = D:\app\Administrator
    tnsname.ora:
    ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (CONNECT_DATA =
    (SID = CLRExtProc)
    (PRESENTATION = RO)
    INDACO11 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = de0-vsidcoes-p1)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = INDACO11)
    sqlnet.ora:
    SQLNET.AUTHENTICATION_SERVICES= (NTS)
    NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
    Alert.log:
    Fatal NI connect error 12545, connecting to:
    (LOCAL=NO)
    VERSION INFORMATION:
         TNS for 64-bit Windows: Version 11.2.0.1.0 - Production
         Oracle Bequeath NT Protocol Adapter for 64-bit Windows: Version 11.2.0.1.0 - Production
         Windows NT TCP/IP NT Protocol Adapter for 64-bit Windows: Version 11.2.0.1.0 - Production
    Time: 09-APR-2013 10:10:33
    Tracing not turned on.
    Tns error struct:
    ns main err code: 12545
    TNS-12545: CONNECT nicht erfolgreich, da Ziel-Host oder -Objekt nicht vorhanden
    ns secondary err code: 12560
    nt main err code: 0
    nt secondary err code: 0
    nt OS err code: 0
    opiodr aborting process unknown ospid (2208) as a result of ORA-609
    Listener.Log:
    09-APR-2013 10:10:33 * (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=indaco11)(CID=(PROGRAM=D:\app\Cyber\product\11.2.0\client_1\sqlplus.exe)(HOST=XPSUPCLNT)(USER=Cyber))) * (ADDRESS=(PROTOCOL=tcp)(HOST=169.254.238.212%11)(PORT=1047)) * establish * indaco11 * 0
    lsnrctl services
    LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 09-APR-2013 10:35:31
    Copyright (c) 1991, 2010, Oracle. All rights reserved.
    Anmeldung bei (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
    Services ▄bersicht...
    Dienst "CLRExtProc" hat 1 Instanzen.
    Instanz "CLRExtProc", Status UNKNOWN, hat 1 Handler f³r diesen Dienst...
    Handler:
    "DEDICATED" eingerichtet:0 abgewiesen:0
    LOCAL SERVER
    Dienst "INDACO11XDB" hat 1 Instanzen.
    Instanz "indaco11", Status READY, hat 1 Handler f³r diesen Dienst...
    Handler:
    "D000" eingerichtet:0 abgewiesen:0 aktuell:0 max:1022 Status:ready
    DISPATCHER <machine: DE0-VSIDCOES-P1, pid: 1296>
    (ADDRESS=(PROTOCOL=tcp)(HOST=de0-vsidcoes-p1)(PORT=49168))
    Dienst "indaco11" hat 1 Instanzen.
    Instanz "indaco11", Status READY, hat 1 Handler f³r diesen Dienst...
    Handler:
    "DEDICATED" festgelegt:3 abgelehnt:0 Status:ready
    LOCAL SERVER
    Der Befehl wurde erfolgreich ausgef³hrt.
    lsnrctl status
    LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 09-APR-2013 10:36:05
    Copyright (c) 1991, 2010, Oracle. All rights reserved.
    Anmeldung bei (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
    STATUS des LISTENER
    Alias LISTENER
    Version TNSLSNR for 64-bit Windows: Version 11.2.0.1.0 - Production
    Startdatum 09-APR-2013 10:02:57
    Uptime 0 Tage 0 Std. 33 Min. 8 Sek.
    Trace-Ebene off
    Sicherheit ON: Local OS Authentication
    SNMP OFF
    Parameterdatei des Listener D:\app\Administrator\product\11.2.0\dbhome_1\network\admin\listener.ora
    Log-Datei des Listener d:\app\administrator\diag\tnslsnr\de0-vsidcoes-p1\listener\alert\log.xml
    Zusammenfassung Listening-Endpunkte...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=de0-vsidcoes-p1)(PORT=1521)))
    Services ▄bersicht...
    Dienst "CLRExtProc" hat 1 Instanzen.
    Instanz "CLRExtProc", Status UNKNOWN, hat 1 Handler f³r diesen Dienst...
    Dienst "INDACO11XDB" hat 1 Instanzen.
    Instanz "indaco11", Status READY, hat 1 Handler f³r diesen Dienst...
    Dienst "indaco11" hat 1 Instanzen.
    Instanz "indaco11", Status READY, hat 1 Handler f³r diesen Dienst...
    Der Befehl wurde erfolgreich ausgef³hrt.
    Variables are set to:
    ORACLE_HOME=D:\app\Administrator\product\11.2.0\dbhome_1
    ORACLE_SID=INDACO11
    TWO_TASK=INDACO11
    I hope this is all information you need.
    Any Idea to solve this problem?
    Thanks!
    Jens
    Edited by: 998906 on 09.04.2013 01:40
    Edited by: 998906 on 09.04.2013 01:53

    Ok. Sorry, i solved this.
    Set the local_listener helps:
    alter system set local_listener='(ADDRESS=(PROTOCOL=TCP)(HOST=169.254.154.98)(PORT=1521))' sid='INDACO11';
    Thanks!

  • Problem with  connection to database when PC is connected to network

    Hi,
    I can't connect to my database locally when my PC (with database) is connected to network. When I try run enterpsise manager I see that Database Instance is down, Agent Connection to Instance is down with error ORA-12505 and Listener is up. When I try connect by sqlplus I see errors :ORA-01034 :Oracle not avilable and ORA-27101:shared memory realm does not exists. When I was installing database my PC was not connected to network.
    When I disconnect my PC from network, after few minutes I can run enterprise manager, can connect to Oracle and everything is OK.Moreover after that I can connect PC to network and still everything is OK.
    What is the reason of this problem and what can I do that I could always connect to Oracle, whenever my PC is connected or disconeccted to network?
    Thanks
    Jarek

    user9290950 wrote:
    Hi,
    As I wrote in my previous post when I was installing database my PC was not connected to network.
    And as was already replied.
    My guess is that you installed on a network with dynamic IP and now you have a different IP address or none. If this is the case it is a clear indication that you didn't waste any time reading the installation documentation before you installed. This might be a great time to do so.Now, go back and read the installation guide. Pay particular attention to the section titled "Database Network Topics", especially the part about loopback adapters.
    Servers process don't work very well with DHCP assigned addresses, causing the clients to have to guess where the server is.
    version of Windows- Windows XP ( I test there my java program which connects to Oracle),
    version of Oracle - 10g Release 2,
    Oracle database service is running,
    IP address which I gets is dynamic. After getting this addres I can't connect to database.
    My TNSNAMES.ORA file:
    SMSINFO =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = SMSINFO)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    Thanks
    Jarek

  • Tooooooooo slow connect by sqlplus from windows 2008 to windows 2003

    hello i'm mr.kang from korea
    i wana quick connect by sqlplus below envirunment
    plzzzzzzz help me!!!!!
    have a nice day~:)
    from :
    OS : Windows 2008
    Client : Oracle Database 10g Client Release 2 (10.2.0.3)
    to :
    OS : Windows 2003
    DB : Oracle Database 10g Release 2 (10.2.0.1.0) for Microsoft Windows
    Edited by: user581964 on Oct 31, 2009 8:42 AM

    Fahd Mirza wrote:
    Would you please shed more light on masking the higher order of IP address?
    regardsJust to confirm what Niall said, I just meant to obscure it from public viewing when posting back to here. The 'high-order' end would be the left most octet .. Say your IP address is 111.222.333.444, when posting to a public forum such as this you'd show it as ***.222.333.444 or xxx.222.333.444. This is a security issue, so you don't expose your network to the world. It is best to just obscure the high-order part, because the OP's problem could be due to mis-matched IP addresses, and we'd miss spotting that if the entire address were masked and it is usuallly the low-order end where the discrepancies come.
    and if you think this is being overly cautious .... there was a thread on c.d.o.s a few years back where a careless person posted a question and revealed his entire server/domain name, and it was a U.S. military domain. I called him out on it. He replied that it didn't matter because it couldn't be reached from the outside. Another participant promptly posted back the proof that it was accessible ...

  • Unable to Connect to SqlPlus on Oracle8i Enterprise Edition

    I installed Oracle8i Enterprise Edition Release 8.1.5 for MS Windows NT on my PC at home and has Windows 98, I am unable to connect to SQLPLUS or SVRMGR, it gives an error ,the error is
    ORA-12541: TNS: no listener.
    Sometimes i get ORA-12560 TNS:Protocol Adapter Error.
    I created LISTENER.ORA file and now i am unable to start the Listener.
    Please let me know how to configure SQL NET and its components, and also to start LISTENER on my PC.
    Thanks & Regards,

    hi,
    compare the entries in listener.ora and tnsnames.ora files.
    actually both should match with one another.
    Ensure that the supplied destination address matches one of the addresses used by the listener
    hope this will solve ur problem. if not send me mail with above those two files.
    regards,
    arun.

  • Connection to db fails from client if connecting with sqlplus user/ps@NAME

    Hi
    I have just installed Oracle client 11.2 on a linux server.
    When I connect with sqlplus apmr/******@apm
    I am getting:
    SQL*Plus: Release 11.2.0.2.0 Production on Thu Mar 29 11:11:17 2012
    Copyright (c) 1982, 2010, Oracle. All rights reserved.
    ERROR:
    ORA-12545: Connect failed because target host or object does not exist
    BUT, if I am connecting with /nolog and then insert user/password --> it success!!!
    Could anyone solve this mystery ? :-)
    sqlplus /nolog
    SQL*Plus: Release 11.2.0.2.0 Production on Thu Mar 29 11:12:20 2012
    Copyright (c) 1982, 2010, Oracle. All rights reserved.
    SQL> conn apmr_larisa@apm
    Enter password:
    Connected.
    Thanks
    Larisa

    884714 wrote:
    Thanks a lot for the response. I am getting the following error :
    java.sql.SQLException: Io exception: The Network Adapter could not establish the connection.Before asking you to get the help from your DBA, i would suggest to check couple of things like:
    1) Write a standalone program and check whether everytime you are getting connection. If answer is yes.
    2) Check whether in your web application do jdbc jar's are there (in lib folder) . If answer is yes. Check the version of jars. because the application first checks the dependant jars in application lib folder, if not found then it checks at classpath.
    So this might casuse a problem.
    If no luck after doing above steps, then i would suggest to ask the DBA, does DB goes down frequently? and show him that error. Because the error is pure say's SID is not up and running.

  • Problem in connection from SAP to XI

    Hi Guys,
    I have problem to connect from SAP to XI.  We have existing SAP R/3 (IS-H) and we newly installed XI. We decided to use ABAP proxy to send data from SAP to XI. When I go to SPROXY system showing ‘No Connection to Integration Builder’. Please kindly advice what configuration we need to in SAP side in order to connect XI.
    It’s Very Urgent. Please advice me.
    Thanks in Advance.
    Regards,
    Anil.

    Anil,
    could you please have a look to SAP Note 689847 - XI 3.0: SPROXY - No connection to the Integration Builder
    Cheers,
    -Sunil

  • Problem with connecting and syncing   (quicktime.qts)

    Hi,
    I have a problem with connecting and syncing my Iphone to itunes.
    iphone alone on PC -> uploading files (fotos) is possible
    itunes starts normaly, if iphone is not conected.
    if i connect iphone after starting itunes, or if i start itunes after connecting iphone i get an itunes-error with message:
    AppName: itunes.exe AppVer: 9.0.2.25 ModName: quicktime.qts
    ModVer: 7.65.17.80 Offset: 00909a47
    i test different things...
    - used another USB-port
    - used another PC
    - used macbook of my wife instead PC
    - deinstalled and new installed of itunes (older and newer versions) folow tutorials of apple
    - use another USB-Cable...
    I'm resigned, Please help me..
    Tom

    AppName: itunes.exe AppVer: 9.0.2.25 ModName: quicktime.qts
    In this context, that can sometimes indicate trouble with a content file on the phone (or Touch).
    Do you have any podcasts stored on the iPhone at the moment? If so, if you delete them from the phone, can you connect to iTunes without the error?

  • HT204053 I have a problem. I bought Pages and Numbers for my iMac and so far everything was OK.  Suddenly i have a problem with connection to iCloud. Dokuments created on iMac in Pages or Numbers are not transfered to iCloud. Not uploaded in iCloud.

    I have a problem.
    I bought Pages and Numbers for my iMac and so far everything was OK.
    Suddenly i have a problem with connection to iCloud.
    Dokuments created on iMac in Pages or Numbers are not transfered to iCloud. Not uploaded to iCloud. There is a sign  (small shape of iCloud), that they are waiting to be uploaded to iCloud.
    I think the iCloud is OK.
    i can see and manage documents in iCloud. i can create them on iPad and  see them and delete them in iCloud.
    But not on iMac.
    i dont know what has happened and I am not abble to find the solution. It was OK till some days ago….

    I have a similar problem! Everything stopped working after upgrading to Mac OS 10.8.4 through the App Store. Help!

  • I have problem to connect iChat. Sometime work and some time not working. When it was not working, there was a message on screen and said the mobile be server was not working. I needed to turn off computer and restarted the computer. Then it might. work

    To whom it may help,
           I use my iChat to do video chat with my granddaughter. I used to do iChat without any problem to connect with her in New York. However, After Mobil Me account closed, I accounted connection problems frequently. Sometime, I had to turn-off my computer then re-started the computer to make it work again. . When I had this problem to connect on iChat (the Mac did not allow me to choose "available"), the poped out window message said that " the iChat lost the Mobil Me account [email protected]" "The server connection was unexplected disconnect". Do you know what is my problem? My Apple ID for iCloud and previous Mobil Me account should be [email protected] I am no longer using [email protected] for Mobil Me e-mail address. My current iCloud e-mail address is [email protected] is no longer of using [email protected] account for my e-mail. If this is the problem, please let me know how to remove the [email protected] account from your system. Thanks!
    David

    SadisticIron wrote:
    i just baught my first iphone and it is a jalbroken
    Buzz! Thank you for playing!
    Discussing jailbroken devices is forbidden here by the Terms of Service.
    You can not get help here.

  • Problem with connecting to a website.  Just purchased a new iMac with Version 10.10.2 Yosemite.  Once in a while I have trouble connecting to a site.  It takes forever.  Is this an issue with Yosemite or my internet service?

    I purchased this iMac in Feb. 2015.  When I try to connect to a web site using Safari or Google Chrome I usually have no problems getting connected to the site.  But maybe once a day I will try to connect and I will see the blue progress bar at the top of the screen showing it is trying to connect and then it just stops.  It may take a couple of minutes before it connects to the site. 
    Would this be a problem with OS X Yosemite Version 10.10.2 ?  Or would this be a problem with my internet company? 
    Thank you,
    Laurie

    Hi lauriefrommi,
    Welcome to the Apple Support Communities!
    i understand that you have some intermittent webpage loading issues while using Safari on your Mac. In this situation, to ensure that Safari is working as it should, I would suggest reading over the attached article and using the information to make sure Safari has no unsupported third-party add-ons. 
    Unsupported third-party add-ons may cause Safari to unexpectedly quit or have performance issues - Apple Support
    Best regards,
    Joe

Maybe you are looking for