Not able to connect to datatbase from sqlplus

Hi,
I migrated database from windows xp to windows 2003,after migration im able to start the services and listener
when i tried to connect with sqlplus
Iam getting the following error
ERROR: ORA-12560: TNS:protocol adapter error
Kindly help me on this issue.
Regards,
Pradeep madhavan

user12287748 wrote:
ERROR: ORA-12560: TNS:protocol adapter errorThis is a generic error that points to some problem with the IP stack on that platform, or the process (e.g. sqlplus) inability to use the protocol stack.
You need to start with the very basics. Is there an IP stack? What does ipconfig return? Is the IP address valid? Is the netmask valid? Is the sqlplus executable allowed to access the IP stack (firewall/security software can prevent this)? Etc.
Once this has been checked, you need to check connectivity. Does ping show a response when sending ICMP echoes to the server? What does tracert say?
Then when you get to testing sqlplus (after the prior checks succeeded), you need to make sure that it firstly uses the correct/intended tnsnames.ora and sqlnet.ora files.. and that secondly, the configuration settings in these files are valid.

Similar Messages

  • Not able to connect RAC database from client

    Hi there
    Recently I have configured RAC in test environment. version 11.2.0.1. OS Redhat 5.9. Everything seems to be fine except not able to connect rac database from client.  Error is as under :
    C:\Documents and Settings\pbl>sqlplus test1/test1@myrac
    SQL*Plus: Release 10.2.0.1.0 - Production on Mon Nov 17 14:29:06 2014
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    ERROR:
    ORA-12545: Connect failed because target host or object does not exist
    Enter user-name:
    myrac =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = rac-scan)(PORT = 1521))
        (CONNECT_DATA =
          (SERVICE_NAME = racdb.testdb.com.bd)
    Please give me your valuable suggestion to  overcome the issue.
    Regards
    Jewel

    user13134974 wrote:
    ORA-12545: Connect failed because target host or object does not exist
    This error means that the hostname or IP address used in the TNS connection string, failed to resolve or connect.
    Your client is making two connections. The first connection is to the SCAN listener. It matches a db instance for your connection request based on service requested, available registered service handlers, load balancing, and so on. It then send a redirect to your client informing it of the handler for that service.
    Your client then does a second connection to this service (a local RAC listener that will provide you with a connection to the local RAC instance). This is what seems to be failing in your case.
    The SCAN listener's redirect uses the hostname of the server that the local listener is running on. Your client needs to resolve that hostname (of a RAC node) to an IP address. This likely fails.
    You can add the RAC node hostnames to your client platforms hosts file. The appropriate action however would be to ensure that DNS is used for name resolution instead.

  • Not able to connect to database from Form builer

    Hi ,
    I installed oracle 10 g in my machine and is accessable from SQLPLUS & TOAD.
    In the same drive i installed Form builder, i am getting the below error when i tried to connect DB from form builder.
    ORA- 12154 : TNS : could not resolve service name.
    Kindly do the needfull.

    not able to connect to database from Form builder

  • Not able to connect to database from Report builder

    hello,
    I installed oracle 9i in my machine and is accessable from SQLPLUS . In the same drive i installed Report builder, i am getting the below error when i tried to connect DB from Report builder.
    REP-0501: Connecting to the database not specified.
    ORA-12521: TNS: address symbolic have not been resolved
    I create 2 accounts "system/ensa2010" and "sys/mrs2010" and a DB "master"
    to connect I use this informations
    User: system
    Password: ensa2010
    Database: master
    the contents of my tnsnames.ora file is:
    # TNSNAMES.ORA Network Configuration File: C:\oracle\ora92\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    MASTER =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = toto-86fb8e5b52)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = master)
    INST1_HTTP =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = toto-86fb8e5b52)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = SHARED)
    (SERVICE_NAME = MODOSE)
    (PRESENTATION = http://HRService)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    Please, if you have any ideas help and thanks.

    resolved
    I just add the master entry in the c:\Report\NET80\ADMIN\tnsnames.ora, and it works.
    but I can't connect with the system or sys accounts, it work just with scott/tiger.

  • Not able to connect to database from Form builder

    Hi ,
    I installed oracle 10 g in my machine and is accessable from SQLPLUS & TOAD.
    In the same drive i installed Form builder, i am getting the below error when i tried to connect DB from form builder.
    ORA- 12154 : TNS : could not resolve service name.
    Kindly do the needfull.

    i am getting the below error when i tried to connect DB from form builder.
    ORA- 12154 : TNS : could not resolve service name.Please post the exact syntax you use to connect.

  • Help Please!! Not able to connect to database from servlets

    Hi all,
    I hava placed a servlet which connects to a database in examples\web-inf\classes dir. I have specified everything in web.xml. But when I run the servlet it says no suitable driver found even though I have placed the driver tomcat/common\lib\classes12.zip in my classpath . I have also trtied converting the file to jar and running the servlet but I am not able to get the connection to database.
    I get the following error.
    Starting service Tomcat-Standalone
    Apache Tomcat/4.0.6
    Starting service Tomcat-Apache
    Apache Tomcat/4.0.6
    Error in init:oracle.jdbc.driver.OracleDriver
    java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1406)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1254)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:120)
    at testConnectionServlet.init(testConnectionServlet.java:19)
    at javax.servlet.GenericServlet.init(GenericServlet.java:256)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:918)
    at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:655)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:475)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
    at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
    at java.lang.Thread.run(Thread.java:484)
    Error in init:No suitable driver
    java.sql.SQLException: No suitable driver
    at java.sql.DriverManager.getConnection(DriverManager.java:537)
    at java.sql.DriverManager.getConnection(DriverManager.java:177)
    at testConnectionServlet.init(testConnectionServlet.java:27)
    at javax.servlet.GenericServlet.init(GenericServlet.java:256)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:918)
    at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:655)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:475)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
    at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
    at java.lang.Thread.run(Thread.java:484)

    after inserting the line in the classpath for classes12.zip try the whole proc again. if it does not work then u should try putting it in the jdk lib dir and if ok can put it also in the \jdk1.3\jre\lib and \jdk1.3\jre\lib\ext dirs....
    it has worked perfectly for me and i dont c any reason that it should not do for u also.

  • Not able to connect Oracle DB from Local Desktop.

    Hi Experts,
    I am getting below error when i tried to connect to Oracle datebase from my local desktop
    **Status : Failure-ORA-01017:invalid username/password; login denied**
    If I am connecting to Same Db using same username and Credentials from Citrix Box I am able to connect with out any issues.
    Please provide us the solution..Thanks in advance.
    Regards
    Sarika.

    989470 wrote:
    Hi Experts,
    I am getting below error when i tried to connect to Oracle datebase from my local desktop
    **Status : Failure-ORA-01017:invalid username/password; login denied**
    If I am connecting to Same Db using same username and Credentials from Citrix Box I am able to connect with out any issues.
    Please provide us the solution..Thanks in advance.What proof exists that you are REALLY attempting to connect to the same DB?
    Problem Exists Between Keyboard And Chair!
    when was the last time this worked without error?
    What changed since then?

  • Not able to connect to server from word 2003

    Able to connect directly thru the web but not via the Microsoft word.
    The BI Publisher link is displayed
    After entering the user name,Password and Report Server Name
    When trying to click LOGIN Nothing happens
    Could anyone answer this please. Is it related to Microsoft word version , Do i have to install any plugins.

    Hello Sandeep Ji,
    In my system having java environment, Oracle 10g database and OC4J with Oracle 10g developer suite.
    I want to learn to use Oracle BI publisher for making reports.
    Today i have installed Oracle BI publisher desktop for making reports in ms-word 2007. when i try to log on in BI Publisher option in ms-word. It ask for username, password & report server url.
    Should i need to download & install BI Publisher Enterprise server (Stand Alone) to fill up the report server url details?
    Thanks!

  • Not able to connect to database from client

    Hi ALL.
    I have a standby database and i am trying to connect to the database from the client machine. But i am getting the below error
    C:\Documents and Settings\-adm-kuma3u-ram>sqlplus "sys/sysvgsm@vgsmstdby as sysdba"
    SQL*Plus: Release 10.2.0.3.0 - Production on Mon Aug 30 09:15:08 2010
    Copyright (c) 1982, 2006, Oracle.  All Rights Reserved.
    ERROR:
    ORA-01031: insufficient privileges
    If i use any user id to login i get the below error
    Enter user-name: dbuptime/dbuptime@vgsmstdby
    ERROR:
    ORA-01033: ORACLE initialization or shutdown in progress
    However i am able to login to the standby db from the host server and login with the above credentials. database is in mounted state.
    Please help
    Regards,
    Arun

    tns ping is working fine
    C:\Documents and Settings\-adm-kuma3u-ram>tnsping vgsmstdby
    TNS Ping Utility for 32-bit Windows: Version 10.2.0.3.0 - Production on 30-AUG-2
    Copyright (c) 1997, 2006, Oracle.  All rights reserved.
    Used parameter files:
    I:\d001\oracle\product\10.2.0\db_1\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)
    OK (160 msec)

  • I am not able to connect my icloud from my iphone

    Hi there,
    I have just updated my IOS to IOS 7,
    and when it was completed, I was asked to Accept the new Agreement for ICLOUD..
    But when i was trying to reach there, it was unavalaible,
    so, I deleted my icloud account, and try to resign-in..
    And until now, everytime i try to sign in with my icloud on my device (email : [email protected]), it says "cannot connect to server"
    I tried to create new apple ID, using different email ([email protected]), and it works...
    And here I am writing this discussion through my Laptop, and I am able to log-in in www.icloud.com with my previous apple ID ([email protected])
    What should I do then ?
    Regards,
    Dani

    Hi there,
    So far there is one thing that worked for more then one persone.
    Download from AppStore: https://itunes.apple.com/us/app/find-my-friends/id466122094?mt=8
    Accept the TOS and then it will automaticly accept the TOS for iCloud aswell.
    Let me know if helped,

  • Not able to connect mysql server from java program

    Hi
    I have mysql server running in one machine and I am accessing from another machine using java program. I have added an user from the server and given all the permission. But its not working. But when I hav java program locally its working.
    The following is my program
    private Connection getConnection(){
    Connection con=null;
    try{
    Class.forName("com.mysql.jdbc.Driver");
    String url="jdbc:mysql://10.5.18.135:3306/test";
    con = DriverManager.getConnection(url,"new","");
    System.out.println("Connected");
    }catch(Exception e){
    System.out.println("Not Connected"+e);
    e.printStackTrace();
    return con;
    its throwing me the follwoing exceptioon
    Not Connectedjava.sql.SQLException: Unable to connect to any hosts due to exce
    ion: java.net.ConnectException: Connection timed out: connect
    java.sql.SQLException: Unable to connect to any hosts due to exception: java.n
    .ConnectException: Connection timed out: connect
    at com.mysql.jdbc.Connection.createNewIO(Connection.java:1690)
    Thanks in advance
    Sathish

    Try this way I think you will need the user and password.
    Connection con=null;
    try{
      Class.forName("com.mysql.jdbc.Driver");
      // assuming database test
      // assuming user is root
      // assuming user password is me
      String connectionString="jdbc:mysql://10.5.18.135:3306/test?user=root&password=me"
      con = DriverManager.getConnection(connectionString);
    [code/]
    rykk                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Not able to connect Oracle DBXE from sql*plus client

    Hi,
    I have installed Oracle 10gXE from oracle site. i have updated the tnsnames.ora also
    but when i try to connect the db through sql*plus client, i am redirected to .net debugger.
    Pls help me in this,
    Thanks in advance.
    -- Raja

    Hello,
    Can you clarify what you are trying to connect from? If it's B1 ( one ) then post to the [B1 forum|http://forums.sdn.sap.com/index.jspa#44].
    Otherwise need more info on the product you are using?
    Typically the Oracle Path must be in the PATH statement as well it requires the correct platform ( 32 or 64 ) bit client installed.
    Most BOE/CR products are 32 bit so you need to install the 32 bit client.
    Don

  • Not able to Connect to OLAP from Jdeveloper

    Hi
    I'am new to bIBeans I'am trying to connect to OLAP through JDEveloper.I'am getting classDefNotFoundError for oracle/express/connection/ConnectionManager.I've put all jars from the oracle/ora90/olap/olapapi/lib in classpath

    In order to further help you we need some more details on the version of JDeveloper, BI Beans, and database version that you are running.
    Aneel Shenker
    Senior Product Manager
    Oracle Corp.

  • Not able to connect PC to iMac with FileZilla after update to Lion

    Just updated to Lion and now I am not able to connect with Filezilla from a Win7 PC to my iMac. I receive an error message saying: ECONNREFUSED - Connection refused by server. Any ideas on how to proceed from here?

    Hello,
    This questions would be better asked on the "Words With Friends Support Forums"
    Hope This Helps,
         Ryan (BURNINGJUNK)

  • In 2 node RAC. After shutting down database not able to connect.

    I have 2 node Oracle 10g RAC (RAC-1 and RAC-2) on Windows 2003 Server.
    After shutting down instance on RAC-2
    I am not able to connect to database from any node.
    I did this on RAC-2 :
    SQL>shutdown immediate;
         Database went down smoothly.
    SQL>conn sys/oracle@rac as sysdba
    ERROR:
    ORA-12514: TNS:listener does not currnetly know of services requested in connect descriptor.
    My first node is running fine but I am not able to connect to database from first node or from client.
    Any suggestion???
    Regards:
    Sushil

    One question I want to ask, what should be the Listener Services startup mode in RAC? MANUAL or AUTOMATIC???Ideally, if you are instances and other oracle resources are set to autostart then there is no reason for you to set the listener to MANUAL. You may like to change it to AUTOMATIC so that on reboot it comes up without manual intervention.

Maybe you are looking for

  • Trouble with PSE12 as External Editor in Aperture 3.3

    I previously used Photoshop Elements 6 (PSE6) as my external editor in Aperture 3.3 with no problem.  After having installed PSE12 and set it as the external editor in Aperture, something is amiss.  When I choose a photo for external editing in PAS12

  • Upgrading from WLC 4402-50 to WLC 5508-250

    I am planning to upgrade my WLC 4402-50 (HA) to WLC 5508-250 (HA). I also have some really old 1020 Access points that I will be replacing with 1142's. Once I have completed the upgrade to the 5508s, I will repurpose the 4402's as Mobile Anchor contr

  • Error -196736202​0

    Hi everyone, Someone could help me with this error: Error -1967362020 occurred at an unidentified location Possible reason(s): IAK_SHARED:  (Hex 0x8ABC701C) The provided refnum is invalid. I have a subVI which get an element from a shared variable. T

  • No shortcut key for "Add Text" tool?

    we have shortcuts for comment tool (S), textbox tool, but why not one for Add text tool? or did i miss it out? I'm on acrobat XI pro right now.please advise!    

  • I have my serial number for photoshop elements 12 but am unable to find the downlaod to put it on my new mac?

    I have a new mac and would like to download my photoshop elements 12 to it I have the serial number but can not find where to get the download?