Error to connect to oracle using oci driver in solaris

Urgent Please help me.
This is the error i am getting when connecting to oracle10.2.0.4 version using oracle oci driver.
09/10/05 13:52:47 java.lang.UnsatisfiedLinkError: t2cGetCharSet
09/10/05 13:52:47 at oracle.jdbc.driver.T2CConnection.t2cGetCharSet(Native Method)
09/10/05 13:52:47 at oracle.jdbc.driver.T2CConnection.getCharSetIds(
09/10/05 13:52:47 at oracle.jdbc.driver.T2CConnection.logon(
09/10/05 13:52:47 at oracle.jdbc.driver.PhysicalConnection.<init>(
09/10/05 13:52:47 at oracle.jdbc.driver.T2CConnection.<init>(
09/10/05 13:52:47 at oracle.jdbc.driver.T2CDriverExtension.getConnection(
09/10/05 13:52:47 at oracle.jdbc.driver.OracleDriver.connect(
09/10/05 13:52:47 at oracle.jdbc.pool.OracleDataSource.getConnection(
09/10/05 13:52:47 at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPhysicalConnection(
09/10/05 13:52:47 at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPooledConnection(
09/10/05 13:52:47 at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPooledConnection(
09/10/05 13:52:47 at com.evermind.sql.OrionPooledDataSource.getPooledConnection(
09/10/05 13:52:47 at com.evermind.sql.PooledConnectionUsage.getPooledConnection(
09/10/05 13:52:47 at com.evermind.sql.OrionPooledDataSource.checkAndGetMinConnections(
09/10/05 13:52:47 at com.evermind.sql.OrionPooledDataSource.getTheConnection(
09/10/05 13:52:47 at com.evermind.sql.OrionPooledDataSource.getTheConnection(
09/10/05 13:52:47 at com.evermind.sql.OrionPooledDataSource.getConnection(
09/10/05 13:52:47 at
09/10/05 13:52:47 at
09/10/05 13:52:47 at
09/10/05 13:52:47 at
09/10/05 13:52:47 at
09/10/05 13:52:47 at
09/10/05 13:52:47 at$JMSRunner.handleMessage(
09/10/05 13:52:47 at$
09/10/05 13:52:47 at

# 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)I have configured the listener by using NETCA.
However the TNS connection failed with SQLNET.AUTHENTICATION_SERVICES = (NTS)
, so I had to disable this parameter

Similar Messages

  • Oracle database Connectivity using OCI driver

    I am getting the error only when ever I am using oci driver
    04:52:55,093 ERROR [STDERR] java.sql.SQLException: ???S???Y??x??
    04:52:55,094 ERROR [STDERR] at oracle.jdbc.driver.SQLStateMapping.newSQLException(
    04:52:55,094 ERROR [STDERR] at oracle.jdbc.driver.DatabaseError.newSQLException(
    04:52:55,095 ERROR [STDERR] at oracle.jdbc.driver.DatabaseError.throwSqlException(
    04:52:55,095 ERROR [STDERR] at oracle.jdbc.driver.T2CConnection.checkError(
    04:52:55,095 ERROR [STDERR] at oracle.jdbc.driver.T2CConnection.logon(
    04:52:55,095 ERROR [STDERR] at oracle.jdbc.driver.PhysicalConnection.<init>(
    04:52:55,095 ERROR [STDERR] at oracle.jdbc.driver.T2CConnection.<init>(
    04:52:55,096 ERROR [STDERR] at oracle.jdbc.driver.T2CDriverExtension.getConnection(
    04:52:55,096 ERROR [STDERR] at oracle.jdbc.driver.OracleDriver.connect(
    04:52:55,096 ERROR [STDERR] at java.sql.DriverManager.getConnection(
    04:52:55,096 ERROR [STDERR] at java.sql.DriverManager.getConnection(
    04:52:55,097 ERROR [STDERR] at org.apache.jsp.index_jsp._jspService(
    04:52:55,097 ERROR [STDERR] at org.apache.jasper.runtime.HttpJspBase.service(
    04:52:55,097 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(
    04:52:55,097 ERROR [STDERR] at org.apache.jasper.servlet.JspServletWrapper.service(
    04:52:55,097 ERROR [STDERR] at org.apache.jasper.servlet.JspServlet.serviceJspFile(
    04:52:55,098 ERROR [STDERR] at org.apache.jasper.servlet.JspServlet.service(
    04:52:55,098 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(
    04:52:55,098 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
    04:52:55,098 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(
    04:52:55,099 ERROR [STDERR] at org.jboss.resteasy.plugins.server.servlet.FilterDispatcher.doFilter(
    04:52:55,099 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
    04:52:55,099 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(
    04:52:55,099 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(
    04:52:55,099 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(
    04:52:55,100 ERROR [STDERR] at
    04:52:55,100 ERROR [STDERR] at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(
    04:52:55,100 ERROR [STDERR] at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(
    04:52:55,100 ERROR [STDERR] at
    04:52:55,101 ERROR [STDERR] at
    04:52:55,101 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(
    04:52:55,101 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(
    04:52:55,101 ERROR [STDERR] at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(
    04:52:55,101 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(
    04:52:55,102 ERROR [STDERR] at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(
    04:52:55,102 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(
    04:52:55,102 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(
    04:52:55,102 ERROR [STDERR] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
    04:52:55,102 ERROR [STDERR] at$
    04:52:55,103 ERROR [STDERR] at
    04:52:55,105 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[Test].[jsp]] Servlet.service() for servlet jsp threw exception: java.sql.SQLException: ???S???Y??x??
    at oracle.jdbc.driver.SQLStateMapping.newSQLException( [ojdbc5.jar:Oracle JDBC Driver version - ""]
    at oracle.jdbc.driver.DatabaseError.newSQLException( [ojdbc5.jar:Oracle JDBC Driver version - ""]
    at oracle.jdbc.driver.DatabaseError.throwSqlException( [ojdbc5.jar:Oracle JDBC Driver version - ""]
    at oracle.jdbc.driver.T2CConnection.checkError( [ojdbc5.jar:Oracle JDBC Driver version - ""]
    at oracle.jdbc.driver.T2CConnection.logon( [ojdbc5.jar:Oracle JDBC Driver version - ""]
    at oracle.jdbc.driver.PhysicalConnection.<init>( [ojdbc5.jar:Oracle JDBC Driver version - ""]
    at oracle.jdbc.driver.T2CConnection.<init>( [ojdbc5.jar:Oracle JDBC Driver version - ""]
    at oracle.jdbc.driver.T2CDriverExtension.getConnection( [ojdbc5.jar:Oracle JDBC Driver version - ""]
    at oracle.jdbc.driver.OracleDriver.connect( [ojdbc5.jar:Oracle JDBC Driver version - ""]
    at java.sql.DriverManager.getConnection( [:1.6.0_13]
    at java.sql.DriverManager.getConnection( [:1.6.0_13]
    at org.apache.jsp.index_jsp._jspService(
    at org.apache.jasper.runtime.HttpJspBase.service( [:]
    at javax.servlet.http.HttpServlet.service( [:1.0.0.Beta2]
    at org.apache.jasper.servlet.JspServletWrapper.service( [:]
    at org.apache.jasper.servlet.JspServlet.serviceJspFile( [:]
    at org.apache.jasper.servlet.JspServlet.service( [:]
    at javax.servlet.http.HttpServlet.service( [:1.0.0.Beta2]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( [:]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter( [:]
    at org.jboss.resteasy.plugins.server.servlet.FilterDispatcher.doFilter( [:]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( [:]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter( [:]
    at org.apache.catalina.core.StandardWrapperValve.invoke( [:]
    at org.apache.catalina.core.StandardContextValve.invoke( [:]
    at [:]
    at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event( [:1.1.0.CR3]
    at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke( [:1.1.0.CR3]
    at [:]
    at [:]
    at org.apache.catalina.core.StandardHostValve.invoke( [:]
    at org.apache.catalina.valves.ErrorReportValve.invoke( [:]
    at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke( [:]
    at org.apache.catalina.core.StandardEngineValve.invoke( [:]
    at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke( [:]
    at org.apache.catalina.connector.CoyoteAdapter.service( [:]
    at org.apache.coyote.http11.Http11Processor.process( [:]
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process( [:]
    at$ [:]
    at [:1.6.0_13]
    When I am using thin driver, I am successful in connecting to the database
    I am using JBOSS 1.6 with oracle 11.1.0 and jdk 1.6
    Please help me resolve the problem

    You should confirm that you can connect to the DB with a simple Java class using the url that the code you posted is using.
    This will show that the OCI client is installed and executing properly. If you can't connect externally you will need to fix that first.
    Is the Oracle client installed on the same machine the JDBC code is running on?

  • How connect to oracle RAC via the RSG using port forwarding

    Hi all,
    I got a problem trying to connect to oracle RAC via the RSG using port forwarding .
    on command line i sue to connect :
    sqlplus 'username/[email protected](DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=firstRACnode)(PORT=1521))(ADDRESS=(PROTOCOL=tcp)(HOST=secondRACnode)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=MSDP)))'
    but when using port forwarding i forward the port 1521 to a local port and make ssh to the DB node ( as normal with other nodes but not RAC) but it never work with me for this situation
    can any one give me a help ifthere is any changes should be done on the server side , or if any one faced such a problem and found a solution

    782011 wrote:
    I got a problem trying to connect to oracle RAC via the RSG using port forwarding .
    on command line i sue to connect :
    sqlplus 'username/[email protected](DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=firstRACnode)(PORT=1521))(ADDRESS=(PROTOCOL=tcp)(HOST=secondRACnode)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=MSDP)))'Not exactly sure what you are attempting, but if you doing port forwarding via ssh, the basic approach is as follows:
    Step 1
    Create a ssh tunnel from local machine to remote db server. Forward any local port (should not be a well known port or a port in the private/dynamic port range) to connect to the database server's listener port. If the ssh tunnel is into the db server itself, the connection (port forwarding) can be on localhost (as the Listener should be listening on it). Alternatively use a public IP of that db server.
    Example (using OpenSSH on Ubuntu 9.4):
    Local server port 1527 tunneled to port 1521 on database server using o/s account johnd (we connect to port 1521 on db server via
    ssh -X -f -N -o ServerAliveInterval=3 -L 1527: [email protected]
    Step 2
    Run sqlplus and connect to the local fowarded port on localhost, using the applicable connection settings (e.g SID/Service Name, etc).
    sqlplus scott/[email protected]"(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST= (CONNECT_DATA=(SID=orcl) (SERVER=dedicated)))"Note that the Listener must not hand our connection off - as the case would be when using RAC for example and connecting via a Service Name and not a SID. We need the Listener that accepts our connection to immediately hand us over to the database instance (via either a dedicated server or a shared server dispatcher process).

  • Problem JDBC Connection using OCI Driver on Weblogic Portal on Linux

    Hi Team,
    I want a JDBC connection using OCI Driver in Weblogic Portal 8.1 sp4 on Linux. When I had tested using JDBC connection using Plain Java Code it is working. Also when I create the OCI Connection Weblogic Connection Pool it is working.
    But My Requirement is to create the connection using Java Code in Portal Application
    But When I create OCI connection in the code it is throwing NO SUITABLE DRIVER Found.
    ---------- Code in Plain Java Code ------------ Same code is used in Weblogic Portal Application --------------------------------
         public static void main(String[] args) throws Exception{
              DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
              String url="jdbc:oracle:oci8:@TESTDB";
              Properties props = new Properties();
    When I am using the same code in Weblogic Portal and Deployed on Weblogic Portal Server 8.1 SP4 it is throwing following error.
    -------------- Exception on Server Log --------------------
    java.sql.SQLException: No suitable driver
    at java.sql.DriverManager.getConnection(Ljava.lang.String;Ljava.util.Properties;Ljava.lang.ClassLoader;)Ljava.sql.Connection;(Unknown Source)
    at java.sql.DriverManager.getConnection(Ljava.lang.String;Ljava.util.Properties;)Ljava.sql.Connection;(Unknown Source)
    My Environment is
    Weblogic 8.1 SP4
    Oracle 9i Client on Same Machine
    Oracle 10g Server on Different Machine
    My Environment Variables on the Linux Server also set properly as following
    Please help me, Let me know if you required anything.
    Thanks in Advance
    Edited by: vishnuk on Oct 23, 2009 4:07 AM
    Edited by: vishnuk on Oct 23, 2009 4:10 AM

    Hi Vishnu
    Looks like a classloader issue. BEA class loader is very tricky. Any jar added manually in classpath, will end up loading only those classes. Any imports that we have in any of those classes do not get loaded. Anyhow, coming to your point, add classes12.jar inside your portal web project Web-Inf/lib folder and see if that helps. Usually thats where we put all the JARs for 8.1 SPxx applications. If this still breaks, then remove the jar from web-inf/lib folder and add under your portal app App-Inf/lib folder. First try with app-inf/lib folder having this jar. If not then with web-inf/lib. Basically web-inf is specific to that web app only. If you have a different app having this jdbc code, then put under app-inf/lib folder. Make sure that you remove the classes12.jar that you added in classpath either in env variable or in setdomainenv.cmd file.
    When weblogic uses native OCI Drivers, it refers to jars at this location: ....\beawlp814\weblogic81\server\ext\jdbc\oracle\10g or 9g. Try using one of these jars and see if that works. Most of the times I used these jars only for oracle specific native drivers.
    Word of caution. Try to use Connection Pool and a DataSource created in weblogic console for your jdbc code. This Datasource can still use the Oracle drivers that you want (instead of BEA Weblogic wrapper oci drivers) located in above location. Use JNDI Lookup and get Datasource and then connection. This is more recommended approach with many advantages then using DriverManager approach..

  • Probem with databse connection using OCI driver

    hai folks,
    Iam using OCI driver to connect to the database.
    the program is compiling successfully but during runtime it is showing invalid url
    my code follows and my SID value is "mohan"
    import java.sql.*;
    import oracle.sql.*;
    import oracle.jdbc.oracore.Util;
    import oracle.jdbc.*;
    import java.math.BigDecimal;
    public class ArrayExample
         ResultSet rs;
    public static void main (String args[])
    throws Exception
         String driver="oracle.jdbc.driver.OracleDriver";
    DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
    String url="jdbc:oracle://oci8:/@mohan";
    Connection conn=DriverManager.getConnection(url,"SCOTT","TIGER");
    DriverManager.getConnection("jdbc:oracle://oci8:/@","scott","tiger") ;
    Statement stmt = conn.createStatement ();
    stmt.execute ("DROP TABLE varray_table");
    stmt.execute ("DROP TYPE num_varray");
    catch (SQLException e)
    stmt.execute ("CREATE TYPE num_varray AS VARRAY(10) OF NUMBER(12, 2)");
    stmt.execute ("CREATE TABLE varray_table (col1 num_varray)");
    stmt.execute ("INSERT INTO varray_table VALUES (num_varray(100, 200))");
    ResultSet rs = stmt.executeQuery("SELECT * FROM varray_table");
    showResultSet (rs);
    int elements[] = { 300, 400, 500, 600 };
    ArrayDescriptor desc = ArrayDescriptor.createDescriptor("NUM_VARRAY", conn);
    ARRAY newArray = new ARRAY(desc, conn, elements);
    PreparedStatement ps =
    conn.prepareStatement ("insert into varray_table values (?)");
    ((OraclePreparedStatement)ps).setARRAY(1, newArray);
    ps.execute ();
    ResultSet rs = stmt.executeQuery("SELECT * FROM varray_table");
    showResultSet (rs);
    public static void showResultSet (ResultSet rs)
    throws SQLException
    int line = 0;
    while (
    System.out.println("Row "+line+" : ");
    ARRAY array = ((OracleResultSet)rs).getARRAY (1);
    System.out.println ("Array is of type "+array.getSQLTypeName());
    ("Array element is of typecode "+array.getBaseType());
    System.out.println ("Array is of length "+array.length());
    BigDecimal[] values = (BigDecimal[]) array.getArray();
    for (int i=0; i<values.length; i++)
    BigDecimal value = (BigDecimal) values;
    System.out.println(">> index "+i+" = "+value.intValue());
    please help me in sloving this problem
    my global database name and SID value in mohan
    Thanking u

    Your problem is in your URL:
    String url="jdbc:oracle://oci8:/@mohan";As far as I know, you can't use the forward-slash character ("/"), by itself, as your database login name -- you must supply a "login/password". I don't know why, and if you don't like it, I suggest you create a TAR (Technical Assistance Request) via the MetaLink Web site.
    I recall similar questions being asked in this forum -- have you tried searching the forum archives?
    Good Luck,

  • Error creating connection to Oracle Application Server 10g(10.1.3)

    Im using Oracle JDeveloper 10g and when i tried to create a new connection to Oracle App Server 10.1.3 and test it, I received the following error message
    Error while parsing OPMN dump in XML format: XML Parse Exception: tag=[null] Ran out of data, content []
    I have no idea what this means and any help on this will be highly appreciated. Thank you

    OK, in short:
    Cause: Wrong OPMN request port used to configure the connection (third step of "Create Application Server Connection" wizard). You might have kept the default (6003) but your OPMN is configured with different request port.
    Solution: Check $ORACLE_HOME/opmn/conf/opmn.xml file and look for entry like this:
    <port local="6140" remote="6240" request="6040" />
    Create the connection using OPMN request port that is set in opmn.xml file.

  • Error when connecting an oracle DB with Integration gateway

    I followed the steps from the blog How to connect an Oracle DB with Integration Gateway in SMP3 and the ojdbc was deployed successfully to SMP. Still, i'm getting "Driver class oracle.jdbc.driver.OracleDriver not found" error message when i try to test my connection. The first difference i saw when completing these steps was that I'm using SMP3 SP05, could this be the issue?

    Joao D Franco Net
    Could you share below information:
    Can you cross check if deployed driver are OSGi enabled? Refer this.
    Can you share screenshot of the destination settings and error ?
    note: The blog you followed is referring to SP03 (1st GA of SMP3)..You should not have any problem in connecting to Oracle DB being on any SP.

  • Error when connecting linux oracle dataabse for replication thru oms

    I have installed oracle 8.1.7 ee on Redhat linux 7.1 and 6.2 both and also on windows2000.
    When i try to access database of any oracle installed on linux machines from any of management server it gives following errors:
    ora-01034 oracle not available
    ora-27101 shared memory realm does not exist
    linux error:2: file or dir does not exist.
    if i try to access dataabse without login to any management server ( i.e thru dba studio) then it connects to it.
    i want to setup master replication with two linux machine database.
    if any person has solution for this then please help me.
    Thx in advance
    if possible mail me at [email protected]
    thx in advance
    pranav shah

    1010056 wrote:
    When iam connecting getting the following error
    [[email protected] ~]$ sqlplus '/as sysdba'
    SQL*Plus: Release - Production on Wed Jun 5 21:16:53 2013
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release - Production
    With the Partitioning, OLAP and Data Mining options
    SQL> select status from v$instance;
    SQL> alter database open;
    alter database open
    ERROR at line 1:
    ORA-01589: must use RESETLOGS or NORESETLOGS option for database open
    SQL> alter database open resetlogs;
    alter database open resetlogs
    ERROR at line 1:
    ORA-01152: file 1 was not restored from a sufficiently old backup
    ORA-01110: data file 1: '/u01/rmancln/oradata/CLN/system01.dbf'provide details on what events lead up to this situation.
    [[email protected] ~]$ oerr ora 1152
    01152, 00000, "file %s was not restored from a sufficiently old backup "
    // *Cause:  An incomplete recovery session was started, but an insufficient
    //         number of logs were applied to make the database consistent. This
    //         file is still in the future of the last log applied. The most
    //         likely cause of this error is forgetting to restore the file
    //         from a backup before doing incomplete recovery.
    // *Action: Either apply more logs until the database is consistent or
    //         restore the database file from an older backup and repeat recovery.

  • Error while connecting to Oracle in Linux

    I wrote a JAVA program to test the connection with Oracle. It worked in NT environment, but it did not in Linux Environment. I got the error message: "IO exception: The Network Adapter could not establish the connection."
    Here is JAVA code:
    import java.sql.*;
    class Employee1
    public static void main (String args [])
    throws SQLException
    Connection conn =
    DriverManager.getConnection ("jdbc:oracle:thin:@",
    "dxhub", "manager");
    Statement stmt = conn.createStatement ();
    ResultSet rset = stmt.executeQuery ("select user_id from user_info");
    while ( ())
    System.out.println (rset.getString ("user_id"));
    catch(Exception e)
    I think there is nothing wrong with JAVA code. There must be something wrong in the Linux environment. I appreciate your help if someone can give me a little advice.

    I wrote a JAVA program to test the connection with
    Oracle. It worked in NT environment, but it did not
    in Linux Environment. I got the error message: "IO
    exception: The Network Adapter could not establish
    the connection."
    Here is JAVA code:
    import java.sql.*;
    class Employee1
    public static void main (String args [])
    throws SQLException
    Connection conn =
    n ("jdbc:oracle:thin:@",
    "dxhub", "manager");
    Statement stmt = conn.createStatement ();
    ResultSet rset = stmt.executeQuery ("select user_id
    d from user_info");
    while ( ())
    System.out.println (rset.getString ("user_id"));
    catch(Exception e)
    I think there is nothing wrong with JAVA code. There
    must be something wrong in the Linux environment. I
    appreciate your help if someone can give me a little
    nullDid you ever find an answer to this, I'm having the same problem. My application works under windows, but doesn't under linux.

  • ORA-12504 error when connecting to Oracle 11G DB using OCI and

    Dear Friends,
    I am using OCI and instant_client (  in my C++ program (on Windows 7) to connect remotely to 11G database.
    While doing a connection using server name as well as servername:port/service_name as connection strings, I am getting error of ORA-12504 TNS:listener was not given the SERVICE_NAME in CONNECT_DATA.
    According to instant client FAQ & white paper at, no tnsnames.ora is required for instant client. Then why could I be getting this error?
    I ensured that only the instant client directory is in Path environment variable. There was a ODBC driver installed on this same host. Could that be modifying the behavior of instant client?
    Kindly guide.
    Many thanks in advance for your help and time.
    Best Regards,
    - ganesh

    >>what is the exact connect string you are using?
    For connection, I am using the plain hostname on which the DB server is running.
    >>are you calling OCIServerAttach before OCISessionBegin?
    I am not using OCISessionBegin. For connecting to DB server, I am using the following sequence of OCI calls (in this same order):
    1) g_OCIEnvNlsCreate
    2) g_OCIHandleAlloc //-- error handle: OCI_HTYPE_ERROR
    3) g_OCIHandleAlloc // --- sevice context: OCI_HTYPE_SVCCTX
    4) Setting driver name and application name for the session:
        OCISession* usersession = 0;
        ret = g_OCIAttrGet(m_pSvcCtx, OCI_HTYPE_SVCCTX, &usersession, NULL,
                                 OCI_ATTR_SESSION, m_pErrHdl);
        if (ret == OCI_SUCCESS)
            ret = g_OCIAttrSet(usersession, OCI_HTYPE_SESSION, (void*)"OCI_DRV", 2,OCI_ATTR_DRIVER_NAME, m_pErrHdl);
            ret = g_OCIAttrSet(usersession, OCI_HTYPE_SESSION, (void*)"ClientApplication", <ub4>(strlen("DataReconScanning")), OCI_ATTR_CLIENT_IDENTIFIER, m_pErrHdl);
    5) g_OCILogon() using the user, password and host name, as below:
    g_OCILogon(m_pDbCon, m_pErrHdl, &m_pSvcCtx,
                                   (text*)user.c_str(), static_cast<ub4>(user.length()),
                                   (text*)pass.c_str(), static_cast<ub4>(pass.length()),
                                   (text*)host.c_str(), static_cast<ub4>(host.length()));

  • Sun Ray error when connecting to Oracle VDI - No Kiosk Sessions Available

    When the Sun Ray DTUs go to connect to the Oracle VDI cluster at times they will throw the error "Error starting Kiosk session: No Kiosk accounts configured." We have tried going through the steps to confirm that the Kiosk sessions are configured on the two secondary hosts but the problem persists. When the Sun Ray DTUs do connect they will work for a while and then when left idle for a period of time will loose their connection and be unable to restart the connection with the error mentioned. The Screen Blanking option on the Sun Ray DTUs is set to "0" to prevent them from going into power-save mode but this makes no difference. The Sun Ray DTUs are all updated with the latest GUI firmware and there are no custom options set in the Sun Ray Session Servers.
    The thing that bothers me the most is I have not seen any error messages in the logs. I will post up the logs as links in a follow-up post.
    Has anyone had any similar issues while connecting with a Sun Ray DTU?
    Currently we are running Oracle VDI 3.2.1 on the cluster.
    Here are the commands we used to reset the Sun Ray Kiosk accounts:
    # /opt/SUNWkio/bin/kioskstatus -c
    # /opt/SUNWkio/bin/kioskuseradm status
    # /opt/SUNWkio/bin/kioskuseradm delete
    # /opt/SUNWkio/bin/kioskuseradm create -l utku -g utkiosk -i auto -u –c

    I was trying to transfer data from oracle to sql server 2008 on a daily basis.
    I have very hard time connecting to oracle from ssis package on windows server 2008. I am almost dead and cannot find any help. i was able to connect to oracle using import/export 64 bit feature of SQL Server 2008 using Oracle provider for OLEDB. But I am not sure why the same does not work with BIDS?
    Here's the environment info:
    1. Oracle Client 10g
    2. SQL Server 2008
    3. Windows Server 2008
    Appreciate your help. Please save me.

  • ODBC Error when connecting to Oracle

    Dear All,
    Linking one of the tables in Access 2000 to Oracle using ODBC connection (multiuser). I created a System DSN in every user m/c. In one system DSN creatrion was successful,
    but when accessing the linked data in the form I got this error "Reserved error (-7709); there is no message for this error." How do I solve this?
    In another m/c I got an error while creating a DSN. Error msg: "The Oracle(TM) client and networking components were not found. These components are supplied by Oracle Corporation and are part of the Oracle Version 7.3
    (or greater) client software installation. You will be unable to use this driver until these components have been installed". What is that I need to install?
    Any help highly appreciated.
    Thank you in advance.
    Rajesh Candmaourty

    You can also get this message if you connect using a user account that does not have the correct privileges to query the table/view.
    Also say you query with say a user called sqluser and the table resides in the schema esstables then you would need to query it using select * from esstables.tablename

  • Error while connecting to Oracle 8 from PI 7.1

    I am trying the connect oracel 8.0 from PI 7.1,
    I am getting following error in communication channel monitoring
    "Exception caught during JDBC adapter processing: java.lang.NullPointerException "
    at the same time I can connect to oracle 10g smoothly without any error.
    Please suggest what would be the reason.

    Hi Check this thread
    same problem disueed here & solved
    Error in Sender JDBC communication channel

  • Error while connecting to Oracle db using jdbc

    When I try to execute a java class which has to access data in
    the Oracle db using Jdbc connection, get an error --
    Appln- pathname/filename is attempting to call the OCI function
    (opinit) this function does not exist in ORA72.DLL.
    Exit this appln ? Yes or No
    Both oracle db & java are on the same PC.Would like to know what
    can be done to rectify this.

    The OCI driver 7.3 requires the 7.3 OCI to be installed (this is
    part of the client required support files or RSF). The particular
    call in question wasn't added to the OCI untill 7.3 so it
    wouldn't exist in the 7.2 OCI library.

  • Error While Connecting to Oracle

    Hi All,
    While Connecting to Oracle through jdbc thin driver, following error is displayed. Please help me in resolving the same.
    <b>SQL Exception:
    State  : null
    Message: Io exception: The Network Adapter could not establish the connection
    Error  : 17002</b>

    Any or all of the following conditions may also apply:
    1) You are able to establish a SQL*Plus connection from the same client to the same Oracle instance.
    2) You are able to establish a JDBC OCI connection, but not a Thin
       connection from the same client to the same Oracle instance.
    3) The same JDBC application is able to connect from a different
       client to the same Oracle instance.
    4) The same behavior applies whether the initial JDBC connection
       string specifies a hostname or an IP address.
    Go thru the foll url

Maybe you are looking for

  • Why is the latest version of iTunes having difficulty recognising my Apple ID?

    This past week, I have been unable to access my iTunes library on my home iMac from my wired Apple TV which was working perfectly well before. No other changes apart from upgrades to Mountain Lion and latest iTunes version as per Software Update. I h

  • Black and white images in iPhoto.

    Hello all, As my old Photoshop no longer works in Leopard, I wanted to use iPhoto to view a collection of jpg format BW images made from hires scans of the negatives. However, after importing them from an iMac file, I saw only black spaces instead of

  • External case for my FUJITSU MHT2060AT

    My G5 Imac has fried its logic board (three years old). I want to take out the FUJITSU MHT2060AT hard drive, then put it into a case to use it as a external hard drive. Has anyone done this or know where I can get a case (and cables) for it. It would

  • Changing the managed account to Admin

    while trying to set the parental controls on my iMac 2006 (OSX Lion), it has changed my current User (only Admin Account) to a managed. It did not ask me for creating a new user account. after restart I realized that my user account is under parental

  • Activity Monitor won't run after leopard install

    The only problem i'm having is that when i try and load Activity Monitor it bounces once and crashes. No amount of relaunches and reset/relaunches fixes the problem. Any ideas? I've also tried launching the old tiger version of Activity Monitor that