OracleXML and TNS errors

I have a very annoying issue. I'm attempting to use the
OracleXML front-end client and I keep getting "oracle not
available" and "tns: couldn't resolve name" messages. I use JDBC
on this machine all the time so I doubt it is my environment.
Oracle has been installed on this machine for sometime,JDBC
developing has be working for sometime, now OracleXML breaks.
What is the deal?
null

Hi Chris,
Here are some excerpts from various replies that I had posted
in this forum regarding connection problems,
The OracleXML front-end currently assumes the oci8 jdbc protocol
and connects using the
string "jdbc:oracle:oci8:"+username_password_string+"@"
We will update the front-end in the next version so that we can
take in the JDBC connect string as well in the argument list.
One thing for you to try out would be to write a small java
program against the OracleXMLQuery class to see if that works.
I have attached a very simple program below:-
import java.sql.*;
import java.math.*;
import oracle.xml.sql.query.*;
import oracle.jdbc.*;
import oracle.jdbc.driver.*;
public class testXML{
public static void main(String args[]) throws SQLException
DriverManager.registerDriver
(new oracle.jdbc.driver.OracleDriver());
Connection conn = (Connection)
DriverManager.getConnection("jdbc:oracle:oci8:scott/tiger@");
Statement stmt = conn.createStatement();
ResultSet rset = stmt.executeQuery("select * from emp");
OracleXMLQuery qry = new OracleXMLQuery(conn,rset);
String xmlString = qry.getXMLString();
System.out.println(" OUPUT IS "+xmlString);
This code does a select from emp table available in scott/tiger
schema. U can change the login and the table names
appropriately. Setup all the environment variables etc.. (see
release notes), save this as testXML.java, run javac to get the
class and execute it using "java testXML". If this doesnt work,
try changing the getConnection line to use the thin jdbc, such
as,
DriverManager.getConnection
("jdbc:oracle:thin:@","scott","tiger");
You can check out the JDBC documentation for how to specify
your connection for your particular setup (such as specifying
the port number etc.. if needed).
Lemme know if it works,
I think the problem in your case must be the JDBC connect
string. Please check that and also make sure that the ORACLE_SID
etc.. is set correctly.
Thanks
Murali
================================================================
Chris Madison (guest) wrote:
: I have a very annoying issue. I'm attempting to use the
: OracleXML front-end client and I keep getting "oracle not
: available" and "tns: couldn't resolve name" messages. I use
JDBC
: on this machine all the time so I doubt it is my environment.
: Oracle has been installed on this machine for sometime,JDBC
: developing has be working for sometime, now OracleXML breaks.
: What is the deal?
null

Similar Messages

  • ORACLE 8i INSTALLER WITH P4 ISSUES AND TNS ERROR WITH 9i

    I want to thank those that have been of help on this subject matter. Finally after 2 agonised weeks, I was able to get around the Oracle 8i installer not able to run on my Pentium 4 laptop. Also having problem logging in to 9i SQL*PLUS. I just want to reinstate that by renaming the file symcjit.dll to symcjit.old does not work automatically. I tried it on Oracle 8.1.6 and 8.1.7(Enterprise/Standard/Personal) many times. Although it did work with Oracle Personal 8.1.6 at one point in time after the system has already 9i installed. After uninstalling the 9i, the installer stopped working again. I WAS NOT SURE IF ORACLE HAS THIS ORACLE 9i DATABASE ENTERPRISE/STANDARD/PERSONAL FOR WINDOWS NT/2000/XP ON CD. THE ONE I BOUGHT IS THE 9IAS AND 9IDS (2 Boxes) WHICH WILL NOT CONFIGURE YOUR DATABASE FOR YOU.
    When I was about to give up after doing some more research, then I saw the download for "Oracle9i Database Enterprise/Standard/Personal Edition for Windows NT/2000/XP". I followed the exact direction, but did everything in my directory and not DOS since I don't know the command for unzipping files in DOS. By unzipping all the files in their respective folders Disk1/Disk2/Disk3, and going to install/win32/setup.exe, the rest of the installation went smoothly, when the system prompt for the location of the next disk, just type 2 and then 3. The installation configured everything like tnsnmaes, instances, databases e.t.c. All I did was suppied the password for Sys and System.
    By downloading this particular file, I was able to bypass any configuration which is a pain, but not for you DBA guys out there. THE DOCUMENTATION FOR THESE CD,s DID NOT GIVE EXACT STEP BY STEP FOR CONFIGURATION, ONLY INSTALLATION. I AM A DEVELOPER AND NOT A DBA. Orale 8i is more easy to confugure than 9i. I WAS ALSO ABLE TO INSTALL 6i, 9ids AND SQL NAVIGATOR ON TOP OF THIS 9i, AND ALL CONNECTIONS WORKED PERFECTLY BY USING SYS OR SYSTEM AND THE PASSWORD I SUPPLIED DURING INSTALLATION.
    AGAIN THANKS TO EVERYBODY USING THIS FORUM. YOU GUYS ARE GREAT AND DOING A GOOD JOB HELPING OUT OTHERS. LET'S KEEP IT ROLLING!!!
    Timi Jones

    O yea, I used WinZip 8.1 and it created correct directory stucture - that's the whole problem

  • Fatal NI connect error 12170 and TNS-12535: TNS:operation timed out

    We are getting intermittently following error.
    TNS for Solaris: Version 10.2.0.3.0 - Production
    Oracle Bequeath NT Protocol Adapter for Solaris: Version 10.2.0.3.0 - Production
    TCP/IP NT Protocol Adapter for Solaris: Version 10.2.0.3.0 - Production
    Time: 26-FEB-2008 07:17:25
    Tracing not turned on.
    Tns error struct:
    ns main err code: 12535
    TNS-12535: TNS:operation timed out
    ns secondary err code: 12606
    nt main err code: 0
    nt secondary err code: 0
    nt OS err code: 0
    sql net ora file
    NAMES.DIRECTORY_PATH= (TNSNAMES)
    # NAMES.DEFAULT_DOMAIN = world
    SQLNET.EXPIRE_TIME = 10
    Out of 10,000 sucessful connections, some 10 connections are getting the 12170 and 12535 error. It is due to firewall connection time out ?
    Appreciate advanced help
    Prasad

    Hi ,
    Even I am facing similar issue. Please let me know if you have any resolutions for this

  • Inbound connection timed out and TNS:operation timed out in Oracle 11g

    Hello All,
    We are getting the below messages in alert log since yesterday... And we could not see any other messages other than this...Users also complaining slow response from DB,
    Could any one please help me to resolve this ...? I believe in 11g inbound connection time out is deprecated ..isn't it ...?
    VERSION INFORMATION:
    TNS for Linux: Version 11.2.0.2.0 - Production
    Oracle Bequeath NT Protocol Adapter for Linux: Version 11.2.0.2.0 - Production
    TCP/IP NT Protocol Adapter for Linux: Version 11.2.0.2.0 - Production
    Time: 18-NOV-2011 01:54:50
    Tracing not turned on.
    Tns error struct:
    ns main err code: 12535
    TNS-12535: TNS:operation timed out
    ns secondary err code: 12560
    nt main err code: 505
    TNS-00505: Operation timed out
    nt secondary err code: 110
    nt OS err code: 0
    Client address: (ADDRESS=(PROTOCOL=tcp)(HOST=10.21.0.159)(PORT=4789))
    Fri Nov 18 09:43:04 2011
    Fatal NI connect error 12170.
    VERSION INFORMATION:
    TNS for Linux: Version 11.2.0.2.0 - Production
    Oracle Bequeath NT Protocol Adapter for Linux: Version 11.2.0.2.0 - Production
    TCP/IP NT Protocol Adapter for Linux: Version 11.2.0.2.0 - Production
    Time: 18-NOV-2011 09:43:04
    Tracing not turned on.
    Tns error struct:
    ns main err code: 12535
    TNS-12535: TNS:operation timed out
    ns secondary err code: 12606
    nt main err code: 0
    nt secondary err code: 0
    nt OS err code: 0
    Client address: (ADDRESS=(PROTOCOL=tcp)(HOST=10.25.1.65)(PORT=50839))
    WARNING: inbound connection timed out (ORA-3136)

    889828 wrote:
    Hello All,
    We are getting the below messages in alert log since yesterday... And we could not see any other messages other than this...Users also complaining slow response from DB,
    Could any one please help me to resolve this ...? I believe in 11g inbound connection time out is deprecated ..isn't it ...?
    VERSION INFORMATION:
    TNS for Linux: Version 11.2.0.2.0 - Production
    Oracle Bequeath NT Protocol Adapter for Linux: Version 11.2.0.2.0 - Production
    TCP/IP NT Protocol Adapter for Linux: Version 11.2.0.2.0 - Production
    Time: 18-NOV-2011 01:54:50
    Tracing not turned on.
    Tns error struct:
    ns main err code: 12535
    TNS-12535: TNS:operation timed out
    ns secondary err code: 12560
    nt main err code: 505
    TNS-00505: Operation timed out
    nt secondary err code: 110
    nt OS err code: 0
    Client address: (ADDRESS=(PROTOCOL=tcp)(HOST=10.21.0.159)(PORT=4789))
    Fri Nov 18 09:43:04 2011
    Fatal NI connect error 12170.
    VERSION INFORMATION:
    TNS for Linux: Version 11.2.0.2.0 - Production
    Oracle Bequeath NT Protocol Adapter for Linux: Version 11.2.0.2.0 - Production
    TCP/IP NT Protocol Adapter for Linux: Version 11.2.0.2.0 - Production
    Time: 18-NOV-2011 09:43:04
    Tracing not turned on.
    Tns error struct:
    ns main err code: 12535
    TNS-12535: TNS:operation timed out
    ns secondary err code: 12606
    nt main err code: 0
    nt secondary err code: 0
    nt OS err code: 0
    Client address: (ADDRESS=(PROTOCOL=tcp)(HOST=10.25.1.65)(PORT=50839))
    WARNING: inbound connection timed out (ORA-3136)The most common cause for this error is a firewall between clint & DB Server;
    which allows packets on port #1521, but does not allow DB Server to use new high random port.

  • External datasource problem(tns error)

    hi,
    i got and error while working with external datasource in BAM architect, how to fix it? Moreover i got tns error when i use tnsping utility for my XE db from command prompt
    ======================================
    C:\Documents and Settings\rehanfa>tnsping xe
    TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 06-JUN-2
    008 15:26:18
    Copyright (c) 1997, 2005, Oracle. All rights reserved.
    Used parameter files:
    C:\OracleBAM\ClientForBAM\network\admin\sqlnet.ora
    TNS-03505: Failed to resolve name
    ======================================
    and BAM archtect error while viewing contents of data model based on this external datasource
    ========================================
    ADC Server exception in OpenViewset().
    Details <<
    ADC Server exception in OpenViewset().
    Source: "ActiveDataCache" ID: "ADCServerException"
    ERROR [08001] [Microsoft][ODBC driver for Oracle][Oracle]ORA-12154: TNS:could not resolve the connect identifier specified ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed ERROR [01000] [Microsoft][ODBC Driver Manager] The driver doesn't support the version of ODBC behavior that the application requested (see SQLSetEnvAttr).
    Source: ""
    Internal debugging information >>
    Oracle.BAM.ActiveDataCache.Common.Exceptions.CacheException: ADC Server exception in OpenViewset(). ---> System.Data.Odbc.OdbcException: ERROR [08001] [Microsoft][ODBC driver for Oracle][Oracle]ORA-12154: TNS:could not resolve the connect identifier specified
    ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed
    ERROR [01000] [Microsoft][ODBC Driver Manager] The driver doesn't support the version of ODBC behavior that the application requested (see SQLSetEnvAttr).
    at System.Data.Odbc.OdbcConnection.Open()
    at Oracle.BAM.ActiveDataCache.ExternalDataSources.ODBC.Open(String strXml)
    at Oracle.BAM.ActiveDataCache.Kernel.Datasets.ExternalStorageEngine.GetDataReader(DSEQuery oDseQuery)
    at Oracle.BAM.ActiveDataCache.Kernel.Viewsets.Utilities.ExternalData.DataImporter.ExecuteQuery()
    at Oracle.BAM.ActiveDataCache.Kernel.Viewsets.Utilities.ExternalData.ExternalDataManager.ImportExternalData(String strDatasetID, String strTempName, FilterExpression filter)
    at Oracle.BAM.ActiveDataCache.Kernel.Viewsets.Utilities.ExternalData.ExternalDataManager.ImportExternalFactData()
    at Oracle.BAM.ActiveDataCache.Kernel.Viewsets.Utilities.ExternalData.ExternalDataManager.GetExternalData()
    at Oracle.BAM.ActiveDataCache.Kernel.Viewsets.Viewset.LoadData()
    at Oracle.BAM.ActiveDataCache.Kernel.Viewsets.ViewsetBase.Initialize()
    at Oracle.BAM.ActiveDataCache.Kernel.Viewsets.Viewset.Initialize()
    at Oracle.BAM.ActiveDataCache.Kernel.Viewsets.ViewsetBase.Open()
    at Oracle.BAM.ActiveDataCache.Kernel.Viewsets.ViewsetManager.InitViewset(Modifier oModifier, ViewsetOptions oViewsetOptions, Boolean bSynchronized, Int32 iTransactionID)
    at Oracle.BAM.ActiveDataCache.Kernel.Viewsets.ViewsetManager.OpenViewset(Modifier modifier, ViewsetOptions options, Int32 iTransactionID)
    at Oracle.BAM.ActiveDataCache.Kernel.Server.DataStoreServer.OpenViewset(Modifier modifier, ViewsetOptions options, Int32 iTransactionID)
    --- End of inner exception stack trace ---
    Server stack trace:
    at Oracle.BAM.ActiveDataCache.Kernel.Server.DataStoreServer.OpenViewset(Modifier modifier, ViewsetOptions options, Int32 iTransactionID)
    at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(MethodBase mb, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
    at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)
    Exception rethrown at [0]:
    at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
    at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
    at Oracle.BAM.ActiveDataCache.Common.Core.IDataStore.OpenViewset(Modifier oModifier, ViewsetOptions options, Int32 iTransactionID)
    at Oracle.BAM.ActiveDataCache.Remoting.ServerWrapper.OpenViewset(Modifier oModifier, ViewsetOptions options, Int32 iTransactionID)
    at Oracle.BAM.ActiveDataCache.Viewset.Open(Context ctxAdcContext, Modifier oModifier, ViewsetOptions options)
    at Oracle.BAM.Architect.DataObjectsContents.InternalContentsByRowID(String strEventParam, Boolean bEdit, Int64 lHighlightRowID, Boolean bAddBegin)
    ==========================================================

    Dear, I am facing that problem and I need some help. please tell me how the issue was resolved

  • TNS Error: ORA-12541: TNS: no listener.

    I have installed Oracle 9i on machine in Windows XP. When I try to open the database SID in the Enterprise Manager, it gives me TNS Error: ORA-12541: TNS: no listener.
    I have checked the Oracle Net Configuration:
    Protocol: TCP/IP
    Host: PNR18
    Port: 1521
    In the xp administrative tools, I found that the listener is on start.
    When I try to test trough ' Net Configration Assistant' getting same error, similarly with Net Manager.
    I don't know if I am using the correct protocol in my case of standalone installation.
    Any advice/correction? it would be appreciated. I am giving all the information of TNSNAMES.ORA, LISTENER.ORA, SQLNET.ORA, which is on my machine.
    Thanks in advance.
    # LISTENER.ORA Network Configuration File: #C:\oracle\ora90\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = PNR18)(PORT = 1521))
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oracle\ora90)
    (PROGRAM = extproc)
    # TNSNAMES.ORA Network Configuration File: #C:\oracle\ora90\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    ORCL =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = PNR18)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = ORCL)
    # SQLNET.ORA Network Configuration File:
    #C:\oracle\ora90\network\admin\sqlnet.ora
    # Generated by Oracle configuration tools.
    SQLNET.AUTHENTICATION_SERVICES= (NTS)
    NAMES.DIRECTORY_PATH= (TNSNAMES, ONAMES, HOSTNAME)

    First of all Thanks for suggestions for solutions but still SAME PROBLEM:
    Case-1::
    I tried according to your suggestion, still SAME error !! I have also configured new DB
    with Enterprise MAnager Configuration Assistent - during DB creation same error occured.
    1) I have seen in XP service where all listener is running as well as OracleServiceORCL
    is also running.
    2) OracleOraHome90TNSListener also running with other listeners!
    Case-2::
    Dear I also delete listener and create new one and also configured Database Description
    and tried to do so but still same problem while I am TESTing it with - Net Manager /
    Net Configuration Assistant. I have also tried
    C:\TNSPING ORCL - it is giving 'ok' result
    but when I am using C:\LSNRCTL START listener - it gives me following errors.
    Service OracleOraHome90TNSListener already running.
    TNS-12560: TNS:protocol adapter error
    TNS-00530: Protocol adapter error
    32-bit Windows Error: 1056: Unknown error
    Thats the whole story....hope this time you will find easy to give solution.
    All files after your suggestion are as follow:
    # TNSNAMES.ORA Network Configuration File: C:\oracle\ora90\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    ORCL =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = PNR18)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = ORCL)
    # LISTENER.ORA Network Configuration File: C:\oracle\ora90\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    LISTENER =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = PNR18)(PORT = 1521))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = ORCL)
    (ORACLE_HOME = C:\oracle\ora90)
    (SID_NAME = ORCL)
    (SID_DESC =
    (PROGRAM = extproc)
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oracle\ora90)
    # SQLNET.ORA Network Configuration File: C:\oracle\ora90\NETWORK\ADMIN\sqlnet.ora
    # Generated by Oracle configuration tools.
    NAMES.PREFERRED_SERVERS =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = PNR18)(PORT = 1521))
    SQLNET.AUTHENTICATION_SERVICES= (NTS)

  • OBIEE 11g : Report throwing TNS Error

    Hi,
    We have installed OBIEE 11g in Linux server. After replacing the Out-of-the-box RPD.
    The reports are throwing following TNS Error:
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65PState: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 17001] Oracle Error code: 12154, message: ORA-12154: TNS:could not resolve the connect identifier specified at OCI call OCIServerAttach. [nQSError: 17014] Could not connect to Oracle database. (HY000)SQL Issued: SELECT 0 s_0, "Assets"."Product"."Product" s_1 FROM "Assets" FETCH FIRST 65001 ROWS ONLY
    What configurations we need to re-check?
    Regards
    Sudipta

    HI,
    Please cross check you rpd connection pool details in physical layer like below.
    Data source name
    Username and password
    Or,
    Login Weblogic Console with admin username/pwd.
    Goto Services -> JDBC -> Data Sources.
    Select Lock & Edit button
    Select Data Source "bip_datasource" link in the available Data Sources list
    Select Connection Pool tab
    .... Change the URL|Driver|Properties|Password
    Select Save button.
    OR,
    you have to go to WEblogic Enterprise Manager (http://<server>:7001/em/. Then go to Business Intelligence folder -> coreapplication. Go to "Deployment" tab and then to "Scheduler" tab. Change the database field to point to the new DB and apply changes.
    Or,
    Please check Database services running or not including TNS listner service also.
    Hope this helps.
    Thanks
    Satya

  • Tns error

    Hi
    I am getting tns error below .we noticed that queries are disconnecting in between execution with ora-3113 error.I am getting error in sqlnet.log in server side
    VERSION INFORMATION:
         TNS for IBM/AIX RISC System/6000: Version 10.2.0.1.0 - Production
         TCP/IP NT Protocol Adapter for IBM/AIX RISC System/6000: Version 10.2.0.1.0 - Production
         Oracle Bequeath NT Protocol Adapter for IBM/AIX RISC System/6000: Version 10.2.0.1.0 - Production
    Time: 16-MAR-2008 20:32:42
    Tracing not turned on.
    Tns error struct:
    ns main err code: 12535
    TNS-12535: TNS:operation timed out
    ns secondary err code: 12560
    nt main err code: 505
    TNS-00505: Operation timed out
    nt secondary err code: 78
    nt OS err code: 0
    Client address: (ADDRESS=(PROTOCOL=tcp)(HOST=XXXXX)(PORT=XXXX))
    AND CLIENT SIDE
    Fatal NI connect error 12560, connecting to:
    (DESCRIPTION=(ADDRESS=(PROTOCOL=BEQ)(PROGRAM=oracle)(ARGV0=oracleORCL)(ARGS='(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))'))(CONNECT_DATA=(SID=XXXX)(CID=(PROGRAM=C:\Program Files\Microsoft Office\OFFICE11\EXCEL.EXE)(HOST=XXXXXX)(USER=XXXX))))
    VERSION INFORMATION:
    TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
    Oracle Bequeath NT Protocol Adapter for 32-bit Windows: Version 10.2.0.1.0 - Production
    Windows NT TCP/IP NT Protocol Adapter for 32-bit Windows: Version 10.2.0.1.0 - Production
    Time: 17-MAR-2008 08:49:00
    Tracing not turned on.
    Tns error struct:
    ns main err code: 12560
    TNS-12560: TNS:protocol adapter error
    ns secondary err code: 0
    nt main err code: 530
    TNS-00530: Protocol adapter error
    nt secondary err code: 126
    nt OS err code
    Anybody who have been sorted out these errors please let me know.
    thanks

    Protocol adapter error is either a missconfigured environment or a network related error. In your case, since you are working with a windows platform and there are other errors related to time out, I suggest you to verify the windows firewall, it could be preventing database from being reached by the oracle client.
    ~ Madrid
    http://hrivera99.blogspot.com/

  • TNS error adaplter

    Hi,
    I installeed 11.2g and when I try login I have got error TNS error adapter. My file
    tnsname
    # tnsnames.ora Network Configuration File: F:\app\Mariano\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (CONNECT_DATA =
    (SID = CLRExtProc)
    (PRESENTATION = RO)
    listener
    # listener.ora Network Configuration File: F:\app\Mariano\product\11.2.0\dbhome_1\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = CLRExtProc)
    (ORACLE_HOME = F:\app\Mariano\product\11.2.0\dbhome_1)
    (PROGRAM = extproc)
    (ENVS = "EXTPROC_DLLS=ONLY:F:\app\Mariano\product\11.2.0\dbhome_1\bin\oraclr11.dll")
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    ADR_BASE_LISTENER = F:\app\Mariano
    sqlnet
    # sqlnet.ora Network Configuration File: F:\app\Mariano\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
    # Generated by Oracle configuration tools.
    # This file is actually generated by netca. But if customers choose to
    # install "Software Only", this file wont exist and without the native
    # authentication, they will not be able to connect to the database on NT.
    SQLNET.AUTHENTICATION_SERVICES= (NTS)
    NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
    I try :
    lsnrctl stat
    sqlplus / as sysdba
    startup
    but still doesn't work

    C:\Documents and Settings\Mariano>set|sort
    ALLUSERSPROFILE=C:\Documents and Settings\All Users
    APPDATA=C:\Documents and Settings\Mariano\Dane aplikacji
    CLIENTNAME=Console
    CommonProgramFiles=C:\Program Files\Common Files
    COMPUTERNAME=MARIUSZ
    ComSpec=C:\WINDOWS\system32\cmd.exe
    FP_NO_HOST_CHECK=NO
    HOME=C:\cygwin\mariusz
    HOMEDRIVE=C:
    HOMEPATH=\Documents and Settings\Mariano
    LOGONSERVER=\\MARIUSZ
    NUMBER_OF_PROCESSORS=2
    OS=Windows_NT
    Path=F:\app\Mariano\product\11.2.0\dbhome_1\bin;C:\oraclexe\app\oracle\produc
    0.2.0\server\bin;C:\Program Files\PC Connectivity Solution\;C:\WINDOWS\system
    C:\WINDOWS;C:\WINDOWS\System32\Wbem
    PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
    PROCESSOR_ARCHITECTURE=x86
    PROCESSOR_IDENTIFIER=x86 Family 6 Model 15 Stepping 13, GenuineIntel
    PROCESSOR_LEVEL=6
    PROCESSOR_REVISION=0f0d
    ProgramFiles=C:\Program Files
    PROMPT=$P$G
    SESSIONNAME=Console
    SystemDrive=C:
    SystemRoot=C:\WINDOWS
    TEMP=C:\DOCUME~1\Mariano\USTAWI~1\Temp
    TMP=C:\DOCUME~1\Mariano\USTAWI~1\Temp
    USERDOMAIN=MARIUSZ
    USERNAME=Mariano
    USERPROFILE=C:\Documents and Settings\Mariano
    VBOX_INSTALL_PATH=C:\Program Files\Oracle\VirtualBox\
    windir=C:\WINDOWS
    C:\Documents and Settings\Mariano>sqlplus / as sysdba
    SQL*Plus: Release 11.2.0.1.0 Production on Wt Kwi 17 19:59:29 2012
    Copyright (c) 1982, 2010, Oracle. All rights reserved.
    ERROR:
    ORA-12560: TNS:b│╣d adaptera protoko│u
    Proszŕ podaŠ nazwŕ u┐ytkownika:
    OK, I see that I haven't got ORACLE_HOME and ORACLE_SID. How create them?
    Edited by: user8894354 on 2012-04-17 11:00

  • ORA-12560 TNS error in protocol adapter. Why ?

    I installed on computer1 an Oracle Express 10g server and he runs fine.
    Then, on another computer2 in the inhouse-net I installed the Oracle Client.
    When I try to contact now from computer2 the Oracle server on computer1
    with e.g.
    sqlplus.exe myname/mypasswd
    I am getting an error ORA-12560: TNS: Error in protofol adapter.
    What does that mean?When I enter the same locally on the server machine everything is fine.
    Firewalls between the computers are disabled.
    Which Oracle services must run on the client (not the server !) machine ?

    Ok, my Oracle Client is installed in C:\XEClient
    Below I show you the (recursive) output of the 'tree.exe' command (under WinXP)
    of the folder tree of C:\XEClient. Where is the directory "network/admin" ??????
    C:\XEClient>tree
    Folder PATH listing for volume WinXP
    Volume serial number is xxxxxxxx
    C:.
    ├───bin
    ├───doc
    ├───jdbc
    │ └───lib
    ├───jlib
    ├───lib
    ├───oci
    │ ├───include
    │ ├───lib
    │ │ └───msvc
    │ │ └───vc71
    │ └───samples
    ├───odbc
    │ ├───help
    │ └───html
    ├───odp.net
    │ ├───doc
    │ ├───help
    │ │ └───ja
    │ ├───PublisherPolicy
    │ ├───Resources
    │ │ ├───de
    │ │ ├───es
    │ │ ├───fr
    │ │ ├───it
    │ │ ├───ja
    │ │ ├───ko
    │ │ ├───pt-BR
    │ │ ├───zh-CHS
    │ │ └───zh-CHT
    │ └───samples
    │ ├───ArrayBind
    │ ├───AssocArray
    │ ├───DataSet
    │ │ ├───DMLOperOnDS
    │ │ │ ├───doc
    │ │ │ │ └───images
    │ │ │ ├───setup
    │ │ │ └───src
    │ │ ├───DSDRwithLOB
    │ │ │ ├───doc
    │ │ │ │ └───images
    │ │ │ ├───setup
    │ │ │ └───src
    │ │ ├───DSPopulate
    │ │ │ ├───doc
    │ │ │ │ └───images
    │ │ │ ├───setup
    │ │ │ └───src
    │ │ ├───DSPopulateVB
    │ │ │ ├───doc
    │ │ │ │ └───images
    │ │ │ ├───setup
    │ │ │ └───src
    │ │ ├───DSwithRefCur
    │ │ │ ├───doc
    │ │ │ │ └───images
    │ │ │ ├───setup
    │ │ │ └───src
    │ │ ├───RelationalData
    │ │ │ ├───doc
    │ │ │ │ └───images
    │ │ │ ├───setup
    │ │ │ └───src
    │ │ ├───RelationalDataVB
    │ │ │ ├───doc
    │ │ │ │ └───images
    │ │ │ ├───setup
    │ │ │ └───src
    │ │ └───SafeTypeMapping
    │ │ ├───doc
    │ │ │ └───images
    │ │ ├───setup
    │ │ └───src
    │ ├───EventHandler
    │ │ └───RowUpdateEventHandler
    │ │ ├───doc
    │ │ │ └───images
    │ │ └───src
    │ ├───Globalization
    │ │ ├───doc
    │ │ │ └───images
    │ │ ├───setup
    │ │ └───src
    │ ├───LOB
    │ │ ├───AccessBFile
    │ │ │ ├───doc
    │ │ │ │ └───images
    │ │ │ └───src
    │ │ └───UpdLob
    │ │ ├───doc
    │ │ │ └───images
    │ │ ├───setup
    │ │ └───src
    │ ├───RefCursor
    │ │ └───UpdRefCursor
    │ │ ├───doc
    │ │ │ └───images
    │ │ └───src
    │ ├───StatementCache
    │ ├───TAF
    │ │ ├───doc
    │ │ │ └───images
    │ │ ├───setup
    │ │ └───src
    │ ├───Transaction
    │ │ ├───DistributedTransaction
    │ │ │ ├───doc
    │ │ │ │ └───images
    │ │ │ ├───setup
    │ │ │ └───src
    │ │ └───Savepoint
    │ │ ├───doc
    │ │ │ └───images
    │ │ ├───setup
    │ │ └───src
    │ ├───WebService
    │ │ └───OdpNetWs
    │ │ ├───doc
    │ │ │ └───images
    │ │ └───src
    │ │ ├───client
    │ │ └───webservice
    │ └───XML
    │ ├───XMLView
    │ │ ├───doc
    │ │ │ └───images
    │ │ ├───setup
    │ │ └───src
    │ └───XMLViewVB
    │ ├───doc
    │ │ └───images
    │ ├───setup
    │ └───src
    ├───oledb
    │ ├───include
    │ ├───lib
    │ └───samples
    │ ├───DataSet
    │ │ ├───DMLOperOnDS
    │ │ │ ├───doc
    │ │ │ │ └───images
    │ │ │ ├───setup
    │ │ │ └───src
    │ │ ├───DSPopulate
    │ │ │ ├───doc
    │ │ │ │ └───images
    │ │ │ ├───setup
    │ │ │ └───src
    │ │ ├───DSPopulateVB
    │ │ │ ├───doc
    │ │ │ │ └───images
    │ │ │ ├───setup
    │ │ │ └───src
    │ │ ├───DSwithLOB
    │ │ │ ├───doc
    │ │ │ │ └───images
    │ │ │ ├───setup
    │ │ │ └───src
    │ │ └───DSwithRefCur
    │ │ ├───doc
    │ │ │ └───images
    │ │ ├───setup
    │ │ └───src
    │ └───RefCur
    ├───oramts
    │ ├───admin
    │ ├───public
    │ └───trace
    ├───precomp
    │ ├───admin
    │ └───lib
    └───sqlplus
    C:\XEClient>

  • Receive TNS error when trying to upgrade DB

    I receive a TNS error when I try to upgrade a database using the Database Upgrade Assistant. I want to upgrade to 9.2 from 8.1.7. When I click on the database I want to upgrade I receive the TNS error. It never prompts for a username/password@cstring.
    I am trying to run this through Windows Terminal Service, is this the problem? I know there are issues trying to run server manager through WTS.
    Thanks,
    Jim

    I'm new to this, but between Oracle 9.0 and 9.2 the required format appears to have changed for the "TNS Service Name" parameter for a "System DSN" in the Windows "ODBC Data Source Administrator". In 9.0 the "TNS Service Name" can be in either of two formats: global_database_name OR oracle_home$global_database_name. One can verify this by clicking the "Test Connection" button on the the "Oracle ODBC Driver Configuration" screen from the "ODBC Data Source Administrator" window. On a 9.2 system only the first format works. I tested this on freshly-installed systems, each with just one Oracle home and the default sample database.
    Perhaps this is related to the problem you are encountering. I was able to fix a problem connecting to 9.2 by changing the "TNS Service Name" parameter. The error I was receiving was: "[Oracle][ODBC][Ora]ORA-12154: TNS:could not resolve service name".
    Can anyone point me to some documentation on this apparent change between 9.0 and 9.2? Thanks in advance.

  • Installation Oracle 8i TNS error

    I am trying to install Oracle 8.1.7. on windows 2000 OS. I have installed Oracle before but never had the problems I am having now.
    I am installing it through a Remote Desktop Connection. I used the typical installation option. At 100% of the installation, it hangs on the net8 optional installation. When I am trying to create the database with the database configuration assistent I get an TNS error while initializing the global database. ORA-12560 TNS protocol adapter error.
    What could be the problem here?
    Marco

    I've never tried installing Oracle 8 on Windows XP machine, so I don't know. And Oracle does not provide download link for software they don't support (like Oracle 8.1.7), </br></br>
    So your options are upgrade your existing database or try searching 8.1.7 version. I presume you don't have 8.1.7 version, either way you need to upgrade your database anyway.</br></br>
    Give Oracle Express Edition(it's free) a try, using it you can fully utilize advance ODP.NET feature like Database Change Notification. If you choose to download Oracle Enterprise Edition, Oracle won't charge you if you use it only for development purpose.</br></br>
    Cheers,</br>
    NH</br>

  • Discoverer desktop installation on Windows 7 64 OS XP Mode TNS error

    I have installed discoverer administrator and desktop in XP Mode on a Windows 7 64 OS. I downloaded the install from Oracle Discoverer 11g Fusion Middleware. I am using XP mode because I believe there is no download for the 64 bit OS in the Windows environment. I have had no trouble with the installation. The trouble comes when trying to connect to a database. I get a TNS error.
    I have edited the environmental variable to include tns names. I am able to connect to a database on the network via sql developer but not with discoverer.
    One needs to run the xp application within the Windows 7 environment. I have included the environmental variable in both environments (xp virtual and Windows 7) and am 0% successful with discoverer and 100% successful with sql in seeing the database.
    Any technical advice?

    I am indebted to Praveen Deshpande for this :
    You need to create a Windows environment variable TNS_ADMIN that points to the directory where the correct Tnsnames.ora file is held.
    On my system, I went to 'Computer - System Properties - Advanced - Environment Variables", created an environment variable TNS_ADMIN and set its value to C:\oraclexe\app\oracle\product\11.2.0\server\network\ADMIN
    Check where your server or other tnsnames file is stored and set the corresponding value.
    Then it all worked perfectly.

  • ORA_-12560: TNS :ERROR  by Protokoladapter

    Hi,
    I've tried to Connect PHP and Oracle,but I'd get this error
    ERROR: Nr12560
    ORA-12560: TNS: Error by Protocolladapter
    my Script in PHP is als fallow and this is only for the connection to Oracle.
    <?php
    // Datenbank verbindug zu Oracle wifi
    //$wifi ="";
    $co = @ocilogon("hr8","hr8");
    $sql = 'select * from jobs';
    //Fehler ausgeben
    if(!$co)
    $fehler =ocierror();
    echo('<p>Fehler Nr');
    echo($fehler ['code']);
    echo('<br>');
    echo($fehler ['message']);
    die();
    else
    //die datenbank ansprechen
    echo('Verbunden mit'.ociserverversion($co).'<br>');
    //$result= prüfen($co,$sql);
    // die Verbindung schliessen
    ocilogoff($co);
    ?>
    I use Windows XP Prof. ,and I have my DataBase running when I 'd try to do the connection to Oracle .
    Please I need a fast answer.
      Regards
       CARLOS
     

    Hi ;
    is there anyone who can  help me this ERROR to resolve.
    First of all,  I use Windows XP system  and I tried to connect  PHP  to Oracle 10g DataBase.But I'd get the ERROR ABOVE.
    I've installed PHP 5 Editor 5.0.3  und  XAMPP  for the connection to Oracle Database . The Database is running When I 'd try the connection between  both of them. The  PHP script looks like this;:
    <?php
    // Datenbank verbindug zu Oracle wifi
    $co = @ocilogon('hr8','hr8') ; // this is a String with 'username' and 'PSW'
    $sql = 'select * from jobs';
    //Fehler ausgeben
    if(!$co)
    $fehler =ocierror();
    echo('<p>Fehler Nr');
    echo($fehler ['code']);
    echo('<br>');
    echo($fehler ['message']);
    die();
    else
    //die datenbank ansprechen
    echo('Verbunden mit'.ociserverversion($co).'<br>');
    // $result= prüfen($co,$sql);
    // die Verbindung schliessen
    ocilogoff($co);
    ?>
    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
    I' need an answer as soon as possible.
    Thanks.
      Greetings
         CARLOS

  • Import / Export TNS error

    Hello, I am getting this pesting TNS error when running IMP and EXP from the server. I can successfully run sqplus on the server and across the net.
    IMP 00058 - Oracle error 12560
    ORA 12560 - TNS: Protocol Adapter Error
    What gives?
    Scott

    Hi Ken, thanks for the reply. These look like Unix vars. Are they? I am running it under NT in a DOS shell. Do these exist elsewhere?
    Incidently, I am in the process of installing OMS and getting a simliar error when creating the Repository.
    ORA 12571 TNS Packet Writer Error.
    Thanks again.

Maybe you are looking for

  • Headphone jack doesn't work in Mac OS X 10.5.6

    My headphone jack stopped working on my less-than-30-day-old MacBook Aluminum. Without headphones internal speakers functioned normally. When I plugged in headphones there was no sound. With headphones plugged in System Preferences > Sound indicated

  • Weird client-authentication behavior

    I'm trying to enforce client-authentication. Tbe client-certificate I'm using is one that is signed by my own CA created using OpenSSL. Naturally, the CA cert is in my servers truststore. Anyway, I test client-authentication with Tomcat (clientAuth="

  • Software Duplicate in Report

    Hi everbody I have a doubt with software report. When a run a report for specific computer, visual studio appear twice like visual studio 2013 professional and visual studio premium 2013. But looking in add\remove programs that is only visual studio

  • QM-Control charts

    Dear all i have checked all the parameters required to maintain control charts. but when i enter data for in process insp. lot and display control chart an error message occur "track 1 of the control chart does not contain any data" so please guide m

  • Camera won't work, sending for repairs

    I bought an Xperia Z2 from a friend. The phone is nice and everything was working fine, until one day the camera stopped working. Whenever I open a camera app, even any flashlight app, it either says, "Unfortuantely, the camera has stopped" or "Can't