ORA-12560: TNS:protocol adapter error while running Oracle Form 10g over IE

Hi,
I am getting the following error message while running my form over Internet Explorer. What could be the error and the solution.
ORA-12560: TNS:protocol adapter error
I am using the same user id/password that i used to create the database.
Plz help.
thanks,
RV

unless you defined the TWO_TASK in your environment, you might need to provide it during the login. The typical Forms login screen has 3 fields, username/password and TWO_TASK , which is the alias used for the database server in the tnsnames.ora file on your end. If you are using iAS forms, then a proper RAD (Resource Access Descriptor) needs to be created by the DBA or whoever manages the iAS server. This is only if SSO is utilized, if not, then you need to provide TWO_TASK as well.
Hope this proves useful
R/ Zafer

Similar Messages

  • ORA-12560: TNS:protocol adapter error while configuring ORACLE Workflow

    Hi,
    I am trying to configure ORACLE Workflow. I have given sys password and other parameters in the given format in Workflow Configuration Assistant. My DB Server is in my local network and I connect to it using SID in SQL Plus. But I got the following error while WorlflowCA tries to execute relevant script.
    ERROR:
    ORA-12560: TNS:protocol adapter error
    SP2-0640: Not connected
    WorkflowCA: Non-Oracle10g database detected
    If anybody is having any clues, please help me.
    Thanks in advance
    Ajish M.

    Thanks a lot for your quick reply.
    I've read all the posts mentioned (quite a few more) but I couldn't find any suggested solution to the "non-oracle10g"-problem other than using the global db name instead of the sid - which didn't help in our case:
    However, in a last desperate attempt to solve the problem on my own before launching another cry-for-help-post I did try running the configuration assistant using the correct password for the SYS user 8-} and - strange but true - it did work :-)
    Needless to say: I used the global db name of course, so I can't say what would have happened without it, but I trust your hint was a legitimate one.
    Anyway - I gues that error Message concerning a "non-oracle10g database" was slightly misleading in this case.... grrrr.
    Andreas

  • ORA-12560:TNS protocol adapter Error while upgrading oracle 8i to Oracle 9i

    Hi,
       I am updrading My oracle 8i setup to Oracle 9i in the Windows operaton System.During the upgradation in the Database upgrade Assistant,The installer asked for the system authetication for upgrading the existing database.After proving the Username and password i am getting an error as ORA-12560:TNS protocol adapter Error .Please help me about what do I need to modify.
    Thanks in Advance,
      Anjela

    Hi,
      Here are the output
    SQL> select * from v$version;
    BANNER                                                                         
    Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production                     
    PL/SQL Release 8.1.7.0.0 - Production                                          
    CORE     8.1.7.0.0     Production                                                      
    TNS for 32-bit Windows: Version 8.1.7.0.0 - Production                         
    NLSRTL Version 3.4.1.0.0 - Production                                          
    SQL> select version from v$instance;
    select version from v$instance
    ERROR at line 1:
    ORA-00942: table or view does not exist
    SQL> select comp_id,version,status from dba_registry;
    select comp_id,version,status from dba_registry
    ERROR at line 1:
    ORA-00942: table or view does not exist
    Thanks,
    Anjela

  • ORA-12560: TNS:protocol adapter error. Running sqlplus in different paths.

    Hi,
    Title: ORA-12560: TNS:protocol adapter error. Running sqlplus in different paths.
    Very strange. We have windows host, 32 bit oracle software 10g, 64 bit sap kernel X64.
    We have done Kernel patch yesterday and it was successful, system up and running.
    Only problem with sqlplus. I have logged in as SIDADM user and when i open command box, the default path is C:\Documents and Settings\SIDADM. when i run sqlplus sys as sysdba, iam able to connnect without any problem but when iam in this path -   /usr/sap/SID/SYS/exe/run and run sqlplus sys as sysdba, it returns ORA-12560 error. Thats why, the BRTOOLS are also not working, giving same error.
    Is there a problem in the kernel? Where could be the problem?
    The environment variables ORACLE_SID, ORACLE_HOME are set properly.
    Many thanks,
    Mohan.

    Hi,
    Please look into below SAP recommendation from SAP note 192822:
    3. Can I run 32-bit applications on my 64-bit platform?
    This depends on the platform you are running on. For all unix- platforms, this  can be done without any problem. Even if the OS is started in 64-bit mode, it is possible to run 32-bit applications (R/3, oracle) on it. there is no need to either upgrade oracle or R/3 toa 64-bit version.
    This, however is NOT the case for windows & Linux. If you have IA64 hardware in place, you do need to run an 64-bit OS as well as all application in 64-bit mode.
    Could you please now share with me your OS (version and whether it is 32 bit or 64 bit as well), database (32 bit or 64 bit), SAP system (32 bit or 64 bit and System release) ?
    Thanks
    Sunny

  • ORA-12560: TNS: protocol adapter error while linking tables in Access

    One of my app dev is encountering an interesting error message while linking Oracle tables from Access. I am not able to able to reproduce this in my desktop or anywhere else. Details enclosed. Can you guys point me to a solution? Thanks in advance!
    ODBC: Oracle Client version 10.2.0.1
    Desktop : Win XP ; Access 2003
    =>Able to login to the Oracle database sucessfully using sqlplus.
    =>Able to create an ODBC datasource to Oracle database.("Test Connection" works fine)
    =>But encountering the TNS protocol adpater error while linking the table(Access->File->Get External Data-> Link tables).
    =>Not able to link any table in any schema in any Oracle database. Hence this is not a data centric issue.
    What did I do?
    => Uninstalled Oracle 8 client and installed Oracle 10 client. No luck. Encountering the same error.
    => Turned on the ODBC trace and reproduced the error. The log is enclosed:
    MSACCESS 79c-ed4     ENTER SQLAllocEnv
              HENV * 0013C620
    MSACCESS 79c-ed4     EXIT SQLAllocEnv with return code 0 (SQL_SUCCESS)
              HENV * 0x0013C620 ( 0x09d31788)
    MSACCESS 79c-ed4     ENTER SQLAllocConnect
              HENV 09D31788
              HDBC * 0013C730
    MSACCESS 79c-ed4     EXIT SQLAllocConnect with return code 0 (SQL_SUCCESS)
              HENV 09D31788
              HDBC * 0x0013C730 ( 0x09d31830)
    MSACCESS 79c-ed4     ENTER SQLSetConnectOption
              HDBC 09D31830
              SQLINTEGER 103 <SQL_LOGIN_TIMEOUT>
              SQLPOINTER 0x00000014
    MSACCESS 79c-ed4     EXIT SQLSetConnectOption with return code 0 (SQL_SUCCESS)
              HDBC 09D31830
              SQLINTEGER 103 <SQL_LOGIN_TIMEOUT>
              SQLPOINTER 0x00000014 (BADMEM)
    MSACCESS 79c-ed4     ENTER SQLSetConnectAttrW
              SQLHDBC 09D31830
              SQLINTEGER 30002 <unknown>
              SQLPOINTER [Unknown attribute 30002]
              SQLINTEGER -3
    MSACCESS 79c-ed4     EXIT SQLSetConnectAttrW with return code 0 (SQL_SUCCESS)
              SQLHDBC 09D31830
              SQLINTEGER 30002 <unknown>
              SQLPOINTER [Unknown attribute 30002]
              SQLINTEGER -3
    MSACCESS 79c-ed4     ENTER SQLDriverConnectW
              HDBC 09D31830
              HWND 001D04E4
              WCHAR * 0x74329A38 [      -3] "******\ 0"
              SWORD -3
              WCHAR * 0x74329A38
              SWORD 2
              SWORD * 0x00000000
              UWORD 1 <SQL_DRIVER_COMPLETE>
    MSACCESS 79c-ed4     EXIT SQLDriverConnectW with return code -1 (SQL_ERROR)
              HDBC 09D31830
              HWND 001D04E4
              WCHAR * 0x74329A38 [      -3] "******\ 0"
              SWORD -3
              WCHAR * 0x74329A38
              SWORD 2
              SWORD * 0x00000000
              UWORD 1 <SQL_DRIVER_COMPLETE>
              DIAG [S1000] [Oracle][ODBC][Ora]ORA-12560: TNS: protocol adapter error (12560)
              DIAG [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed (0)
              DIAG [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed (0)
    MSACCESS 79c-ed4     ENTER SQLErrorW
              HENV 09D31788
              HDBC 09D31830
              HSTMT 00000000
              WCHAR * 0x0013C5EC (NYI)
              SDWORD * 0x0013C638
              WCHAR * 0x047EE8B8
              SWORD 4095
              SWORD * 0x0013C624
    MSACCESS 79c-ed4     EXIT SQLErrorW with return code 0 (SQL_SUCCESS)
              HENV 09D31788
              HDBC 09D31830
              HSTMT 00000000
              WCHAR * 0x0013C5EC (NYI)
              SDWORD * 0x0013C638 (12560)
              WCHAR * 0x047EE8B8 [     126] "[Oracle][ODBC][Ora]ORA-12560: TNS: protocol adapter error\ a\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0"
              SWORD 4095
              SWORD * 0x0013C624 (126)
    MSACCESS 79c-ed4     ENTER SQLErrorW
              HENV 09D31788
              HDBC 09D31830
              HSTMT 00000000
              WCHAR * 0x0013C5EC (NYI)
              SDWORD * 0x0013C638
              WCHAR * 0x047EE950
              SWORD 4019
              SWORD * 0x0013C624
    MSACCESS 79c-ed4     EXIT SQLErrorW with return code 0 (SQL_SUCCESS)
              HENV 09D31788
              HDBC 09D31830
              HSTMT 00000000
              WCHAR * 0x0013C5EC (NYI)
              SDWORD * 0x0013C638 (0)
              WCHAR * 0x047EE950 [      66] "[Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed"
              SWORD 4019
              SWORD * 0x0013C624 (66)
    MSACCESS 79c-ed4     ENTER SQLErrorW
              HENV 09D31788
              HDBC 09D31830
              HSTMT 00000000
              WCHAR * 0x0013C5EC (NYI)
              SDWORD * 0x0013C638
              WCHAR * 0x047EE9E6
              SWORD 3944
              SWORD * 0x0013C624
    MSACCESS 79c-ed4     EXIT SQLErrorW with return code 0 (SQL_SUCCESS)
              HENV 09D31788
              HDBC 09D31830
              HSTMT 00000000
              WCHAR * 0x0013C5EC (NYI)
              SDWORD * 0x0013C638 (0)
              WCHAR * 0x047EE9E6 [      66] "[Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed"
              SWORD 3944
              SWORD * 0x0013C624 (66)
    MSACCESS 79c-ed4     ENTER SQLErrorW
              HENV 09D31788
              HDBC 09D31830
              HSTMT 00000000
              WCHAR * 0x0013C5EC (NYI)
              SDWORD * 0x0013C638
              WCHAR * 0x047EEA7C
              SWORD 3869
              SWORD * 0x0013C624
    MSACCESS 79c-ed4     EXIT SQLErrorW with return code 100 (SQL_NO_DATA_FOUND)
              HENV 09D31788
              HDBC 09D31830
              HSTMT 00000000
              WCHAR * 0x0013C5EC (NYI)
              SDWORD * 0x0013C638
              WCHAR * 0x047EEA7C
              SWORD 3869
              SWORD * 0x0013C624
    MSACCESS 79c-ed4     ENTER SQLFreeConnect
              HDBC 09D31830
    MSACCESS 79c-ed4     EXIT SQLFreeConnect with return code 0 (SQL_SUCCESS)
              HDBC 09D31830
    Edited by: user5598619 on Feb 10, 2009 5:37 PM

    Thanks a lot for your quick reply.
    I've read all the posts mentioned (quite a few more) but I couldn't find any suggested solution to the "non-oracle10g"-problem other than using the global db name instead of the sid - which didn't help in our case:
    However, in a last desperate attempt to solve the problem on my own before launching another cry-for-help-post I did try running the configuration assistant using the correct password for the SYS user 8-} and - strange but true - it did work :-)
    Needless to say: I used the global db name of course, so I can't say what would have happened without it, but I trust your hint was a legitimate one.
    Anyway - I gues that error Message concerning a "non-oracle10g database" was slightly misleading in this case.... grrrr.
    Andreas

  • ORA-12560: TNS:protocol adapter error while creating new database

    Hi,
    I installed Oracle Enterprise Manager 10g Grid Control Release 1 (10.1.03) and created the default database it had which was emrep. Once Oracle Grid Control was installed I ran the install for Oracle Database 10g Release 1 (10.1.0.2).
    Now when I try to create a database I get the following error: ORA-12560: TNS:protocol adapter error.
    My assumption is because I seem to have 2 Oracle home's now because I installed the Grid Control??
    My question is, have I done this backwards? Should I install Oracle 10g before installing the grid control? If thats not it, can someone point me in the right direction?
    FYI: The server we're using is running Windows Server 2003.
    Thanks for your help

    Env variables are as follows:
    ClusterLog = C:\WINDOWS\Cluster\cluster.log
    ComSpec = %SystemRoot%\system32\cmd.exe
    FP_NO_HOST_CHECK = NO
    JSERV = D:\Oracle\Ora92/Apache/Jserv/conf
    NUMBER_OF_PROCESSORS = 4
    ORACLE_HOME = D:\Oracle\Ora10gGC
    OS = Windows_NT <-- its actually Windows Server 2003
    Path = D:\Oracle\Ora10g\bin;D:\Oracle\Ora10g\jre\1.4.2\bin\client;D:\Oracle\Ora10g\jre\1.4.2\bin;D:\Oracle\agent\bin;D:\Oracle\agent\oui\lib\win32;D:\Oracle\agent\jlib;D:\Oracle\agent\bin;D:\Oracle\agent\jre\1.4.2\bin\client;D:\Oracle\agent\jre\1.4.2\bin;D:\Oracle\Ora10gGC\bin;D:\Oracle\Ora10gGC\jlib;D:\Oracle\Ora10gGC\jre\1.1.8\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;
    Pathext = .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
    PERL5LIB = D:\Oracle\Ora10g\perl\lib\5.6.1\MSWin32-x86;D:\Oracle\Ora10g\perl\lib\5.6.1;D:\Oracle\Ora10g\perl\5.6.1\lib\MSWin32-x86;D:\Oracle\Ora10g\perl\site\5.6.1;D:\Oracle\Ora10g\perl\site\5.6.1\lib;D:\Oracle\Ora10g\sysman\admin\scripts
    WV_GATEWAY_CFG = D:\Oracle\Ora92\Apache\modplsql\cfg\wdbsvr.app

  • ORA-12560 TNS: Protocol adapter error while installing database

    Hello,
    I'm having troubles while installing my oracle database 10g. My server is SUN OS 5.10
    When I am in the copying datafiles step, a pop up message shows up [ORA-12560 TNS: Protocol adapter error]
    Could you please help me?

    I am creating the database the database.
    I am relatively new in Oracle but I have created a DB before and the ORACLE_SID was set after the database was created.
    The steps I execute for are:
    1. Install the Oracle engine (without create the DB)
    2. Install the Patch
    3. Create the database (dbca)
    After the database is created, appears a popup (Database configuration assistance warning) where it says to set the oracle_sid among others steps.
    Is it mandatory to set the ORACLE_SID before? some other configuration that I could be missing?
    Thank you

  • ORA-12560: TNS: protocol adapter error while installation

    Hi,
    I'm a newbie..
    I installed Oracle 10g to my WinXP but there is a problem with error "ORA-12560:TNS:protocol adapter error":
    I can't create the starter database..when i try to do that i get the error "ORA-12560:TNS:protocol adapter error"...
    i trace back the error log and find:
    oracle.sysman.emca..........
    SEVERE: job_queue_process must be greater than 1.
    Also, in my windows services, i don't find any service with name "Oracle10g<SID>"
    please help me asap.
    Thanks,
    Pankaj

    Hi
    read this article
    http://www.experts-exchange.com/Databases/Oracle/Q_21148649.html
    At the end, seems there is a solution for you.

  • Gives  ORA-12560: TNS: protocol adapter error when installing oracle 10g

    I tried to install oracle 10g r2 in server 2008. but it gives ORA-12560: TNS: protocol adapter error when installing. how I can fix this issue??? please help me ASAP. because its urgent.
    thanks in advance.
    chamara

    Welcome to the forums !
    Pl indicate which version of 10g you are installing and on which version of Win 2008. Neither 10gR1 nor 10gR2 are certified to be installed on Win 2008 R1, AFAIK.
    For 10gR2, only 10.2.0.5 is certified for Win 2008 R2 - see MOS Doc 1173433.1 (How to Install Oracle 10.2.0.5 on MS Windows 7 / Windows 2008R2)
    Also see MOS Doc 740926.1 (Where can I find the Database / Client software to download for Microsoft Vista, or Windows 2008R1?).
    Both 10gR1 and 10gR2 are now in extended support - is there a reason you are not using 11gR2 ?
    HTH
    Srini

  • ORA-12560: TNS: protocol adapter error when running forms from IE

    hi
    when i running forms i get the error
    ORA-12560: TNS: protocol adapter
    please any help

    Check if your tnsnames.ora file has the entry for database you are trying to connect.
    Are you able to connect using sqlplus??
    Navnit

  • ERROR:ORA-12560: TNS:protocol adapter error

    I am using Win XP Pro. in my PC. I just installed Oracle 9i. When I put in my
    user-name and password to run SQL+ 9.0.1 it gives me the following error
    message : ERROR:ORA-12560: TNS:protocol adapter error.
    I am new to Oracle. Please give me the steps how to fix this error to be
    able to run SQL+.
    Many thanks

    When starting server manager the following error is generated:
    ORA-12560: TNS:protocol adapter error occurred
    Cause:
    Oracle classify this as a 'generic protocol adapter error'. In my experience it indicates that Oracle client does not know what instance to connect to or what TNS alias to use.
    Possible Remedies:
    * If running on the server (or workstation) that is running the database (i.e. if the database is local to the machine) then try explicitly setting 'ORACLE_SID'. e.g.
    set ORACLE_SID=<sid>
    and then try again. If this works then consider whether to make the change permanent by specifying it as a system variable.
    FOR RUN THIS SID PLEASE REFER IT
    Go to command prompt
    C:\Document and settings\ORANGE> cd\
    C:\> set oracle_sid=<DB name>
    e.g C:\> set oracle_sid=<rajesh> {press enter}
    C:\> sqlplus /nolog {press enter}
    sql:\>connect sys/sys as sysdba {press enter} it cant ask for password directly connected
    or
    sql:\>connect sys as sysdba {press enter}
    password : sys {press enter}
    sql:\> connected
    or
    sql:\> connect scott {press enter}
    Enter password :tiger {press enter}
    sql:\> connected
    or
    sql:\> connect system {press enter}
    Enter password :manager {press enter}
    sql:\> connected

  • ORA-12560: TNS:protocol adapter error error while using BR*tools

    Hi,
    I am trying to use BRtools to display instance status (option 6 within Instance Management menu). We are running on Oracle 10g and SAP 4.6c (BRtools version 7.0 patch 13). SAP is running on Windows 2003 cluster environment.
    I checked lsnrctl status with following output..
    LSNRCTL for 64-bit Windows: Version 10.2.0.2.0 - Production on 19-FEB-200
    :06
    Copyright (c) 1991, 2005, Oracle.  All rights reserved.
    Connecting to (ADDRESS=(COMMUNITY=SAP.WORLD)(PROTOCOL=TCP)(HOST=172.20.0.
    PORT=1527))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for 64-bit Windows: Version 10.2.0.2.0
    ction
    Start Date                07-FEB-2009 19:51:03
    Uptime                    11 days 19 hr. 42 min. 2 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   C:\oracle\PR1\102\network\admin\listener.ora
    Listener Log File         C:\oracle\PR1\102\network\log\listener.log
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=172.20.0.140)(PORT=1527)))
    The listener supports no services
    The command completed successfully
    BRspace error reads as below
    BR1001I BRSPACE 7.00 (13)
    BR1002I Start of BRSPACE processing: sdzysjut.dbw 2009-02-19 15.35.43
    BR0280I BRSPACE time stamp: 2009-02-19 15.35.44
    BR0301E SQL error -12560 at location BrDbaConnect-2
    ORA-12560: TNS:protocol adapter error
    BR0310E Connect to database instance PR1 failed
    BR0700E Fatal errors occurred - terminating processing...
    Could you please let me know if I need to make any changes to current configuration to make it work.
    I appreciate all your help,
    Thanks,
    Jitendra

    Hi Rohit,
    Here are my listener file contents
    LISTENER =
      (ADDRESS_LIST=
        (ADDRESS=
          (PROTOCOL=IPC)
          (KEY=PR1)
        (ADDRESS=
          (PROTOCOL=IPC)
          (KEY=PR1.WORLD)
        (ADDRESS=
          (COMMUNITY=SAP.WORLD)
          (PROTOCOL=TCP)
          (Host=xxx.xx.x.xxx)
          (Port=1527)
    SID_LIST_LISTENER =
      (SID_LIST=
        (SID_DESC=
          (SDU=32768)
          (SID_NAME=PR1)
          (ORACLE_HOME=C:\oracle\PR1\102)
    Fsldbprd =
      (ADDRESS_LIST=
        (ADDRESS=
          (PROTOCOL=IPC)
          (KEY=PR1)
        (ADDRESS=
          (PROTOCOL=IPC)
          (KEY=PR1.WORLD)
        (ADDRESS=
          (COMMUNITY=SAP.WORLD)
          (PROTOCOL=TCP)
          (Host=xxx.xx.x.xxx)
          (Port=1527)
    SID_LIST_Fsldbprd =
      (SID_LIST=
        (SID_DESC=
          (SDU=32768)
          (SID_NAME=PR1)
          (ORACLE_HOME=C:\oracle\PR1\102)
    TRACE_LEVEL_LISTENER = OFF
    CONNECT_TIMEOUT_LISTENER = 10
    STARTUP_WAIT_TIME_LISTENER = 0
    And here is the output of lsnrctl status command after making above changes
    STATUS of the LISTENER
    Alias                     Fsldbprd
    Version                   TNSLSNR for 64-bit Windows: Version 10.2.0.2.0 -
    ction
    Start Date                19-FEB-2009 19:39:12
    Uptime                    0 days 0 hr. 14 min. 16 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   C:\oracle\PR1\102\network\admin\listener.ora
    Listener Log File         C:\oracle\PR1\102\network\log\fsldbprd.log
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=
    .\pipe\PR1ipc)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=
    .\pipe\PR1.WORLDipc)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=xxx.xx.x.xxx)(PORT=1527)))
    Services Summary...
    Service "PR1" has 2 instance(s).
      Instance "PR1", status UNKNOWN, has 1 handler(s) for this service...
      Instance "pr1", status READY, has 1 handler(s) for this service...
    Service "PR1_XPT" has 1 instance(s).
      Instance "pr1", status READY, has 1 handler(s) for this service...
    The command completed successfully
    In Cluster admin Oracle listener name is defined as Fsldbprd.
    Please let me know if you need any additional information and thanks for looking into this issue.
    Regards,
    Jitendra
    Edited by: Jitendra Kulkarni on Feb 20, 2009 1:03 AM

  • Vbscript to connect to oracle fails with ORA-12560: TNS:protocol adapter error

    I am running a Windows 7, 64 bit system with the Oracle 32 bit client installed.  The 32 bit client is required for use with Oracle's Documaker Studio which is working fine with the current client configuration.  I would like to connect the same database using a vbscript.  Here is the test script I am using:
    Option Explicit
    Dim strCon
    strCon = "Driver={Oracle in OraClient11g_home1_32bit}; " & _
             "CONNECTSTRING=(DESCRIPTION=" & _
             "(ADDRESS=(PROTOCOL=TCP)" & _
             "(HOST={VSTODEEDATxx.xxxxxxx.com})(PORT=1521))" & _
             "(CONNECT_DATA=(SERVICE_NAME=IDMAKER))); uid=xxxxxx;pwd=xxxxxxxx;"
    Dim oCon: Set oCon = WScript.CreateObject("ADODB.Connection")
    Dim oRs: Set oRs = WScript.CreateObject("ADODB.Recordset")
    oCon.Open strCon
    Set oRs = oCon.Execute("SELECT TO_CHAR(SYSDATE,'MM-DD-YYYY HH24:MI:SS') AS DateTime FROM DUA")
    While Not oRs.EOF
        WSCript.Echo oRs.Fields(0).Value
        oRs.MoveNext
    Wend
    oCon.Close
    Set oRs = Nothing
    Set oCon = Nothing
    In the connection string I am using the 32 bit driver used succesfully by Documaker.  I provided all the parms to eliminate the need for tnsnames.ora.  However, I do have tnsnames.ora on my system and Documaker is using it.
    Since the client is 32 bit, I am using the following command to run the script:
    c:\windows\syswow64\cscript.exe c:\temp\oracle\testing\testconnect.vbs
    This is suppose to run the script in 32 bit mode and be compatible with the client.
    When I run the program I get the following error:
    Microsoft (R) Windows Script Host Version 5.8
    Copyright (C) Microsoft Corporation. All rights reserved.
    c:\temp\oracle\testing\testconnect.vbs(12, 1) Microsoft OLE DB Provider for ODBC
    Drivers: [Oracle][ODBC][Ora]ORA-12560: TNS:protocol adapter error
    Would someone please advise on how to debug this problem?  Thanks, Gary

    "connectstring" is not a valid attribute with Oracle's ODBC driver, so since there is no datasource attribute specified, the app is trying to connect to a local database, and since you don't have one, you get 12560.
    To resolve the problem, pass DBQ=      instead of  CONNECTSTRING=
    http://docs.oracle.com/cd/B19306_01/server.102/b15658/app_odbc.htm#i1093897
    Greg

  • Oracle Database 11g Installation Issue: ORA-12560:TNS: protocol adapter error.

    Folks,
    Hello. Initially, my Windows XP host name is "localhost" and IP address 127.0.0.1.
    I installed Oracle Database 11g with Windows XP successfully and all Database clients work with Database instance correctly.
    For some reasons, I uninstalled the entire Database Server and delete the entire installation directory /oracle.
    I configured Windows XP IP address into 192.168.196.101 in order to ping other machines.
    For my need, I installed Oracle Database 11g with Windows XP again. On step 7 of 8: Oracle Database Configuration Assistant, I got this error:
    ORA-12560:TNS: protocol adapter error.
    I click "Password Management" button, there are no rows in this Windows (no username, no lock accounts).
    I check listener as below:
    C:\>lsnrctl
    LSNRCTL>start
    Its output: listener name LISTENER has already been started.
    LSNRCTL>status
    Its output: ......Service DB1 has 1 instance. Instance DB1 status ready. The command completed successfully.
    I check \Oracle\cfgtoollogs\dbca\DB1\trace file, the entry is :
    listen[0]=LISTENER address=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(port=1522))
    I also check \oracle\product\11.2.0\dbhome_1\NETWORK\ADMIN\SAMPLE\tnsnames.ora file and listener.ora file, the entries are the same as below
    HOST=localhost  port=1522
    I think HOST=localhost and port=1522 is the cause of the error ORA-12560 because Windows XP has been configured into HOST=192.168.196.101.
    But I don't understand how to solve this issue.
    Can any folk tell me how to solve this issue ? need to cancel the installation on step 7 of 8 and install it again ?
    Thanks.

    Folks,
    Hello. Oracle Database 11g Installation Wizard is on step 7 of 8. I don't cancel the Wizard. I am not sure whether there is effect or not. listener.ora is not removed. I have been waiting for a while after stop listener.  I run the 3 commands again and copy the result as below:
    C:\>lsnrctl stop
    LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 14-AUG-2013 19:32
    :14
    Copyright (c) 1991, 2010, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1522)))
    TNS-12541: TNS:no listener
    TNS-12560: TNS:protocol adapter error
      TNS-00511: No listener
       64-bit Windows Error: 2: No such file or directory
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1522)))
    TNS-12541: TNS:no listener
    TNS-12560: TNS:protocol adapter error
      TNS-00511: No listener
       64-bit Windows Error: 61: Unknown error
    C:\>
    C:\>
    C:\>
    C:\>
    C:\>
    C:\>lsnrctl start
    LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 14-AUG-2013 19:33
    :04
    Copyright (c) 1991, 2010, Oracle.  All rights reserved.
    Starting tnslsnr: please wait...
    TNSLSNR for 64-bit Windows: Version 11.2.0.1.0 - Production
    System parameter file is C:\SecondTime_OracleDatabase_Install_Directory\product\
    11.2.0\dbhome_1\network\admin\listener.ora
    Log messages written to c:\secondtime_oracledatabase_install_directory\diag\tnsl
    snr\user-19yyar8x0d\listener\alert\log.xml
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1522
    ipc)))
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1522)))
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1522)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for 64-bit Windows: Version 11.2.0.1.0 - Produ
    ction
    Start Date                14-AUG-2013 19:33:07
    Uptime                    0 days 0 hr. 0 min. 3 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   C:\SecondTime_OracleDatabase_Install_Directory\product
    \11.2.0\dbhome_1\network\admin\listener.ora
    Listener Log File         c:\secondtime_oracledatabase_install_directory\diag\tn
    slsnr\user-19yyar8x0d\listener\alert\log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1522ipc)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1522)))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
      Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    C:\>
    C:\>
    C:\>
    C:\>
    C:\>lsnrctl service
    LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 14-AUG-2013 19:36
    :37
    Copyright (c) 1991, 2010, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1522)))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
      Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
        Handler(s):
          "DEDICATED" established:0 refused:0
             LOCAL SERVER
    Service "DB1XDB" has 1 instance(s).
      Instance "DB1", status READY, has 1 handler(s) for this service...
        Handler(s):
          "D000" established:0 refused:0 current:0 max:1022 state:ready
             DISPATCHER <machine: user-19YYAR8X0D, pid: 120>
             (ADDRESS=(PROTOCOL=tcp)(HOST=user-19yyar8x0d)(PORT=1051))
    Service "DB1" has 1 instance(s).
      Instance "DB1", status READY, has 1 handler(s) for this service...
        Handler(s):
          "DEDICATED" established:19 refused:0 state:ready
             LOCAL SERVER
    The command completed successfully
    C:\>
    As we see, listener.ora file is not removed by Stop command. I am on the installation Wizard. How to solve this issue ?
    Thanks.

  • ORA-12560: TNS:protocol adapter error in Oracle Forms...

    Hi, I installed Oracle developer suite to use for Oracle forms but am getting "ORA-12560: TNS:protocol adapter error" when trying to run a form. The database is running locally on my PC.
    I've run the command line to see if hostname matches up with the "HOST= " in the ".../network/admin/listener.ora " file match, they do. What can I try next? I did have Oracle 10gXE installed, which I have now removed. I'm including my tnsnames and listener file content:
    # tnsnames.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    LISTENER_ORCL =
    (ADDRESS = (PROTOCOL = TCP)(HOST = frankenputer)(PORT = 1522))
    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = frankenputer)(PORT = 1522))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    # listener.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (ADDRESS = (PROTOCOL = TCP)(HOST = frankenputer)(PORT = 1522))
    Thanks in advance for any help!

    Of course you found another one. Each .and every Oracle database client home (such as developer, app server) has one.
    Don't just change the port - the tnsnames.ora in the dev home does not point to a database service. It only points to an extproc [external procedure called by a database]. You need to put a database service entry into that file similar to the one in the database home. (Easiest solution - copy the tnsnames.ora from db home ... after you've made a backup)
    And please don't tell me you are using Developer 6i - a simple Google search would verify that the networking is incompatible.

Maybe you are looking for

  • Af: richTextEditor is hyper link addition

    can we create hyper links in af:richTextEditor without appending the http://www protol to link ?, since i have created link with www.google.com it is not working but when i create hyper link with http://www.google.com its working is this expected beh

  • Error in preparedstatement

    Hi Is this preparedstatement valid INSERT INTO TABLE2 (COL1,COL2,COL3,COL4) SELECT C1,C2,?,? FROM TABLE1 WHERE condn When I do con.prepareStatement() on this sql it is giving me error saying "Use of parameter marker not valid" Is this wrong??

  • Trouble importing favorites etc. from IE to Firefox. Please help. Thanks alot,

    hen I tried several times to import favorites, etc. from IE to Firefox, I keep getting the same message- script busy or not responding. Tried several times and nothing was imported and keep getting same message listed above. I have XP on my laptop. A

  • Big trouble after updating 2nd gen. Nano (8GB) to firmware v1.1.1

    I bought my new 2n gen Nano (8GB) today at the airport and initially it worked fine with itunes 7.1. However, when I got to the hotel and connected to the Internet it asked me to upgrade to v1.1.1... I said yes, the update process finished without an

  • Zen Neeon not work

    My zen neeon is stuck on the recharging screen. I've tried formatting, didn't do a thing. I downloaded the firmware update, but it wont install, it keeps losing the connection. Anyone have any ideas?