Connect to oracle database through ODBC

Hi,
I have oracle installed on my linux machine. I need to establish connection to the oracle database from windows.
Regards
Bobs

user12119634(bobs) wrote:
Hi,
I have oracle installed on my linux machine. I need to establish connection to the oracle database from windows.
Regards
BobsNeeding to connect from a windows client does NOT automatically mean you need odbc. It depends on what app you are using.
And please note that ODBC is NOT a substitution for the Oracle client software, it is in addition to it.

Similar Messages

  • Unable to connect to SQL database through ODBC calls

    I have been looking around for an answer to this, but haven't found the exact issue I'm seeing.
    I have several Excel spreadsheets which have been working until recently, which use an ODBC call to a remote SQL database. The database is running, remote connections are allowed. The SQL server is in a domain which has no external trusts. Users with accounts
    in this domain can remotely access the SQl databases through ODBC just fine. Users who do not have domain accounts in this domain are being denied access by their domain account, and the SQL authentication is not passed through, even though remote access is
    set to allow "everyone", and the database is set to Windows authentication and SQL authentication. This worked until early this week (the spreadsheet was created in 2010), and I have been looking fruitlessly for a fix ever since. As far as I know,
    no changes were made to group policy on this domain, and no changes were made to the server or database recently, except Microsoft patches. None of the patches this month looked like they would affect this.

    It works locally on the server and remotely for users in the same domain. I am trying to use the SQL account and password to connect to the database, but users from outside this domain fail to reach the SQL database for authentication. It looks like Windows
    authentication is not passing the SQL credentials on if the windows authentication fails. I don't know how to resolve this. The only options in SQL are "Windows authentication and SQL authentication" or "Windows authentication only". The database is already
    set to the first option. Somehow, I need to set the server to allow the SQL authentication even if the Windows authentication fails.
    Hi pkuti01,
    SQL Server mixed mode is "Windows Authentication and SQL Server Authentication", we have to restart SQL Server service after change the authentication to mixed mode.
    In your case, have you got any error message/information if you faild connect to SQL Server via ODBC? If so, please post them to us for further investigation. Furthermore, here is an article regarding steps to troubleshooting SQL connectivity issues for
    your reference. Please see:
    http://blogs.msdn.com/b/sql_protocols/archive/2008/04/30/steps-to-troubleshoot-connectivity-issues.aspx
    If you have any feedback on our support, please click
    here.
    Regards,
    Elvis Long
    TechNet Community Support

  • Connect to Oracle database through Excel to load data

    Dear all,
    does anybody have an idea if i can connect directly from microsoft excel to an oraclle database in order to load the data in the excel file in the database.
    Thank u

    user562674 wrote:
    Dear all,
    does anybody have an idea if i can connect directly from microsoft excel to an oraclle database in order to load the data in the excel file in the database.
    Thank uyes, EXCEL can use ODBC to connect to Oracle DB

  • How to connect Oracle database  through Microsoft ODBC?

    My ODBC Configuration:
    DSN name is :db
    Username : india
    Server :db.world
    Now, i am trying to connect with oracle database through SQL*plus or TOAD.
    But, it is giving the following error.
    ORA-03121: no interface driver connected - function not performed
    Database version : 9.2.0.1.0
    Operating System : Microsoft Windows XP
    ODBC Version : 2.575.1117.00
    I am trying to connect with the database like this:
    Username : india
    Password : india
    Database : ODBC:db
    Can i connect like this otherwise whether i need install any other supporting driver?

    Now, i am trying to connect with oracle database
    through SQL*plus or TOAD.
    But, it is giving the following error.
    ORA-03121: no interface driver connected -
    function not performed
    I am trying to connect with the database like this:
    Username : india
    Password : india
    Database : ODBC:db
    As already stated, you can not use the DSN in SQL*Plus (nor TOAD, afaik)!
    I can reproduce the error message with the following:
    C:\>sqlplus a/b@ODBC:c
    SQL*Plus: Release 11.1.0.6.0 - Production on Mon Aug 4 21:34:58 2008
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
    ERROR:
    ORA-03121: no interface driver connected - function not performedLooking up the message, it says:
    Cause: A SQL*Net version 1 prefix was erroneously used in the connect string
    Looks like this has nothing to do with your DSN - it is more a matter of not using a proper connection string.
    If 'Test Connection' works then you should probably proceed to work with Crystal Reports, using the DSN in question.
    However, you should note that the old MS ODBC driver for Oracle was designed for OCI 7 (and for databases 7.x-8.x) and is now considered obsolete by both MS and Oracle.
    Deprecated MDAC components and MS KB Article 244661.
    Use the Oracle ODBC driver included with a supported Client version instead.
    Edit:
    Clarifying and adding references.
    Message was edited by:
    orafad

  • Connect PostgreSQL to Oracle 10g through ODBC: can't read all_tables

    Oracle 10g is not able to read the database table names (all_tables and all_objects, es. select * from all_tables@hspostgresodbc) from PostgreSQL using ODBC (v. 08.01.0200). This functionality is essential to be able to use Oracle Warehouse Builder and import external database definitions (heterogeneous services).
    However, Oracle (SQL*Plus) is able to retrieve records when the table name is stated in the SQL query (es. select * from “my_table”).
    The problem seems to be specifically with the PostgreSQL ODBC because Oracle is able to read schemes from other databases through ODBC. I’ve done some tests with Access dbs just to be sure that the problem is not with my system (Windows XP SP2).
    The problem appears both with ANSI and UNICODE PostgreSQL drivers.
    Any suggestion of how workaround this problem?
    thanks in advance,
    Raoni

    Dear all,
    I’ve tried different tracing levels with out success. The log file does not seem to be created by Oracle.
    Looking closer to the debug and comm logs from the driver 8.01.0200, I’ve found out that the problem was generated after a table wasn’t found (the driver seems to search for the all_tables table, and just afterwards to query the scheme pg_catalog). In this case the all the following queries returned with the error “ERROR: current transaction is aborted, commands ignored until end of transaction block”. Maybe this problem is related with the bug [#1000641] http://pgfoundry.org/tracker/index.php?func=detail&aid=1000641&group_id=1000125&atid=538
    Following the Postgres odbc developers suggestion, I’ve installed the psqlODBC v 08.02.0002 and I’ve got a completely different result.
    As before, the simple query “select * from my_table@hsodbc” returns the result using SQL*Plus clearly faster than before.
    Doing the query “select * from all_tables@hsodbc” the result is OK (the name of 56 tables) but the process is very slow and burdensome. The file paging memory in the machine running Oracle and the SQL*Plus jumps from the normal 700 MB to 1.7 GB, and the query takes about 20 minutes to complete.
    Also the 1.7 GB remains allocated and the query process halted in PostGreSQL even after the on screen result of the query. The memory is freed and the process terminated after the logging out SQL*Plus.
    Probably as result of this memory explosion, the system runs out of memory and Oracle Warehouse Builder selecting data base link -> schema, after some minutes get an error similar to: “can’t read from memory address XXXXX”
    All those test where done with PostGreSQL 8.0.1 (on Linux Suse 9.0) and Oracle 10g (Windows XP SP2).
    To be sure that the problem was not related to the PostGreSQL version, we updated the server to the 8.1.3 (running in Linux Suse 9.0 with psqlODBC v 08.02.0002 ) and OWB couldn’t see any table as before and doing Select * from all_tables@hsodbc we’ve got the message:
    ERROR:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Generic Connectivity Using ODBC]
    ORA-02063: preceding 2 lines from HSPG
    no rows selected
    On the other hand, with the same configuration as before (Oracle 10g under Windows XP SP1, psqlODBC v 08.02.0002) but with PostGreSQL 8.1.3 under Windows XP SP1, OWB can read table names (same tables imported from Linux PostgreSQL) but not all_tables (a minor problem, because what is important for us is to make OWB work with PostgreSQL).
    The encoding for all DBs is UTF8.
    Any ideas of where could be the problem?
    regards,
    R.

  • Issues when trying to connect to Oracle database

    Hi
    We have set up a linked server in SQL Server to connect to an Oracle database. We are using SQL Server 2008 R2 Enterprise (64 bit) on Windows Server 2008 and Oracle client 11g 11.02.00.01 connecting to Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production using UTF8.
    Most tables are selectable without error, however, we got this error message for some:
    Msg 7347, Level 16, State 1, Line 1
    OLE DB provider 'OraOLEDB.Oracle' for linked server 'OurLinkedServer' returned data that does not match expected data length for column '[OraOLEDB.Oracle].Ourfieldname'. The (maximum) expected data length is 6, while the returned data length is 2.
    This error message refers to a column of type char(3)
    Will the characterset cause this error (I’ve read that SQL Server doesn’t support UTF8)?
    If not, is there some other resolution that anyone can think of?
    Any suggestions are greatly appreciated.
    Thanks a lot!
    Tom

    Thank You for replying, Justin!
    Yes, I can connect successfully to the database through other tools - at the moment I tried SQL*Plus, Net8 Easy Config and Schema Manager.
    The Oracle client in the NT machine is 8.0.5.0.0. And unfortunately I do not know anything about the Oracle installation on this machine and at the moment I don't have that person near me too whom to ask also. But I think the installation was ok, because the connection through ODBC was working before the DB upgrade as far as I understood (sorry, again at the moment I don't know what was the previous version of DB. I will ask that information as soon as possible).
    The main problem that bothers me at the moment is that I can't install 8.1.* series OraODBC driver with 8.0.5.0.0 Oracle Installer. I managed to install 8.0.6.6.0 version of the driver, but not the newer ones. As far as I've understood I have to upgrade the whole Oracle in the NT machine to upgrade that installer. Am I correct?
    Regards,
    Madis Priilinn

  • I want to connect Visual foxpro database through forms6i.

    Hi ,
    I want to connect Visual foxpro database through forms6i.
    actually i want to access Visual foxpro database in forms6i and retrive and update data from forms6i.
    please help me urgently how can i do this in forms6i.
    Thanks,
    Md.Muniruzzaman Khan
    Email : [email protected]

    do the following steps for hetrogenous service
    Step 1
    Create ODBC named Access1.
    Step 2
    Go to urs inithsodbc.ora file which reside at
    ORACLE_HOME\hs\admin\inithsodbc.ora
    and overrite by
    # This is a sample agent init file that contains the HS parameters that are
    # needed for an ODBC Agent.
    # HS init parameters
    HS_FDS_CONNECT_INFO = Access1
    HS_FDS_TRACE_LEVEL = off
    # Environment variables required for the non-Oracle system
    #set <envvar>=<value>
    Step 3
    Add the following entry to the tnsnames.ora file:
    ACCESS1.WORLD =
    (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))
    (CONNECT_DATA=(SID=ACCESS1))
    (HS=OK)
    Step 4
    Add the following entry into the listener.ora file:
    (SID_DESC=
    (SID_NAME=ACCESS1)
    (ORACLE_HOME=D:\Oracle)
    ---Define urs oracle home path in mine case it is at D:\Oracle--
    (PROGRAM=hsodbc)
    Step 5
    Reload the listener from contol panel services yours listener service
    Step 6
    Create a database link using:
    CREATE DATABASE LINK access1.world CONNECT TO "MyUser" IDENTIFIED BY "MyPassword" USING 'ACCESS1.WORLD';
    Step 7
    Connect to scott/tiger
    Query the table using:
    SELECT *
    FROM [email protected];
    Step 8
    Same you can connect to urs forms and write above sql in cursor
    Acknowledge me.
    Khurram Siddiqui

  • Not connecting to Oracle Database from Oracle BIEE 10g on Windows 7 machine

    Hi friends,
    I succesfully installed OBIEE 10g on my Windows 7 (Ultimate) machine using the assistance from one of your threads.
    Now I am not able to connect to Oracle 11g database. When I tried to configure through START->Control Panel --> Administrative Tools --> DATA SOURCES (ODBC) ---> ....I am seeing Oracle 11g in System DSN but I am unable to see OBIEE driver in system DSN. After setting manually, I am now seeing OBIEE driver in user DSN. So is all other 32 bitapplications like MS Acess, Excel, etc., are all in user dsn.
    When I open OBIEE Administration tool, I can only see ONLY Analytics Web and nothing else. How do I connect to Oracle database. Please assist me.
    Thanks in advance.
    Din

    Hi,
    Your window os 32bit or 64bit -- Please conform?
    Your Os 64 bit -- http://www.mycabi.net/?p=19 please read this link.
    Your windows os 32 bit :
    Go--> Run--> odbcad32 follow the below step
    In ODBC Administration, on the System DSN tab add a new connection
    1. step : Data Source: "Oracle BI Server" -->"Next"-->Name: "AnalyticsWeb"-->Server: "local"-->(everything else unchecked)-->"Next"-->Give the username for the BI Server-->"Administrator" -->(I think the password can main blanc),Port: "9703 -->(everything else unchecked)-->"Next"-->(everything unchecked)-->"Finish"
    When I tried to configure through START->Control Panel --> Administrative Tools --> DATA SOURCES (ODBC) ---> ....I am seeing Oracle 11g in System DSN but I am unable to see OBIEE driver in system DSN
    A. I don't no why your creating ODBC connection.
    Note: Open your rpd with AnalyticsWeb and give me useranme and password --> go to physical layer select connection pool and give all credntails here.
    http://gerardnico.com/wiki/dat/obiee/ociv -- please refer this link
    Datasource : Your dbname (ORCL,)
    username: your schema name
    Password: your schema password.
    Hope it help's
    Thanks,
    Satya

  • Unable to connect to Oracle database running on Windows machine from linux.

    Hi,
    I'm not able to connect to oracle database running on Windows machine from Linux machine. I'm geting the below mentioned error. I have given below the code I used to connect to database and database propertes.Do I need to use any specific driver?
    Please help me.
    Thanks,
    Sunjyoti
    Code :
    import oracle.jdbc.pool.OracleDataSource;
    import java.sql.Connection;
    import java.util.*;
    import java.sql.*;
    import java.io.*;
    class try2{
    public static void main(String args[]) {
    try {
              System.out.println("hi");
    // Load the properties file to get the connection information
    Properties prop = new Properties();
    prop.load(new FileInputStream("/home/sreejith/EDIReader/Connection.properties"));
    // Create a OracleDataSource instance
    OracleDataSource ods = new OracleDataSource();
    System.out.println("prop is "+prop);
    configureDataSource(ods, prop);
    Connection conn=null;
    // Create a connection object
    conn = ods.getConnection();
         System.out.println("Connection is"+conn);
    // Sets the auto-commit property for the connection to be false.
    conn.setAutoCommit(false);
    } catch (SQLException sqlEx){ // Handle SQL Errors
    System.out.println("In exception "+sqlEx);
    } catch(Exception excep) { // Handle other errors
    System.out.println(" Exception "+ excep.toString());
    private static void configureDataSource(OracleDataSource ods, Properties prop) {
    // Database Host Name
    ods.setServerName(prop.getProperty("HostName"));
    // Set the database SID
    ods.setDatabaseName(prop.getProperty("SID"));
    // Set database port
    ods.setPortNumber( new Integer( prop.getProperty("Port") ).intValue());
    // Set the driver type
    ods.setDriverType ("thin");
    // Sets the user name
    ods.setUser(prop.getProperty("UserName"));
    // Sets the password
    ods.setPassword(prop.getProperty("Password"));
    Connection properties :
    # Your Database Connection details
    HostName = 10.20.3.19
    SID = EDIREAD
    Port = 1521
    UserName = dbuser
    Password = dbuser
    Error I'm getting is
    error while trying to connect with odbc datasource
    [root@iflexpau2217 EDIReader]# java try2
    hi
    prop is {HostName=10.20.3.19, Password=dbuser, UserName=dbuser, SID=EDIREAD, Port=1521}
    In exception java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
    Also I tried to connect with weblogic JDBC driver
    Code is here:
    import java.io.BufferedReader;
    import java.io.ByteArrayInputStream;
    import java.io.File;
    import java.io.FileNotFoundException;
    import java.io.FileReader;
    import java.io.IOException;
    import java.sql.Blob;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.PreparedStatement;
    import java.sql.SQLException;
    //import com.entrust.toolkit.util.ByteArray;
    public class trial{
         public static void main(String args[]) throws IOException{
              System.out.println("hi");
              Connection p_conn = null;
              PreparedStatement xml_insert = null;
              try {
         // Load the JDBC driver
                   System.out.println("hi2");
         // String driverName = "oracle.jdbc.driver.OracleDriver";
    String driverName = "weblogic.jdbc.oracle.OracleDriver";
         System.out.println("hi2");
         Class.forName(driverName);
         // Create a connection to the database
         String serverName = "10.20.3.19";
         String portNumber = "1521";
         String sid = "EDIREAD";
         //String url = "jdbc:oracle:thin:@" + serverName + ":" + portNumber + ":" + sid;
    String url = "jdbc:bea:oracle://10.20.3.19:1521";
         String username = "dbuser";
         String password = "dbuser";
    System.out.println("connection is:"+p_conn+"user name is"+username+"password is"+password);
         p_conn = DriverManager.getConnection(url, username, password);
         System.out.println("connection is:"+p_conn+"user name is"+username+"password is"+password);
              xml_insert=p_conn.prepareStatement("insert into PRTB_SUBUNIT (SUBUNT_ID,SUBUNT_SUB_UNIT,SUBUNT_PHYUNT_ID) values (?,?,?)");
              //InputStream in=null;
              File l_file=new File("/home/sreejith/EDIReader/propertyfiles/inputfile/BUG_10802_ES_CSB19_68.txt");
              BufferedReader input =null;
              input=new BufferedReader(new FileReader(l_file));
              String line = null;
              StringBuffer trial=new StringBuffer();
              while (( line = input.readLine()) != null){
                   trial.append(line);
                   trial.append(System.getProperty("line.separator"));
              //InputStream is = new BufferedInputStream(new FileInputStream(l_file));
              System.out.println(trial.toString());
              //Blob b ;
              //byte[] bytes=trial.toString().getBytes();
              //System.out.println("Size-->"+bytes.length);
              xml_insert.setString(1,new String("SpecailChar"));
              //xml_insert.setBinaryStream(2,new ByteArrayInputStream(bytes),15920);
              xml_insert.setString(3,"SpecailChar");
              xml_insert.executeUpdate();
              p_conn.commit();
              } catch (ClassNotFoundException e) {
                   System.out.println("ClassNotFoundException:"+e.getMessage());
              // Could not find the database driver
              } catch (SQLException e) {
                   System.out.println("SQEXCEPTIN:"+e.getMessage());
              // Could not connect to the database
              }catch (FileNotFoundException e) {
                   System.out.println("filenot found:"+e.getMessage());
              // Could not connect to the database
    Error I'm getting is
    error while trying with jdbc:
    SQEXCEPTIN:[BEA][Oracle JDBC Driver]Error establishing socket to host and port: 10.20.3.19:1521. Reason: Connection refused

    Is the Windows firewall active? Have you enabled the port on the firewall, if it is?

  • Help needed in connecting to oracle database in unity

    Hi,
    I have been trying to connect to Oracle database in my codes. I have tried using OdbcConnection and OleDbconnection. But both did not allowed me to connect to the database. The database, testDb, can be accessed using SQL plus as well as the SQL developer. I even tested the connection successful using ODBC data source administrator.
    the following is my code for the connection string:
    OdbcConnection connectionString = "Driver={Oracle ODBC Driver};Server=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP )(HOST=127.0.0.1)(PORT=1521))(CONNECT_DATA=(SID=Te stDb)));Uid=scott;Pwd=password;";
    the error i got is [ODBC Driver Manager] Data Source name not found and no default driver specified.
    for the driver parameter, i have tried using "Microsoft ODBC for Oracle". It gives me another error stating that the oracle and network components are not installed.
    I even tried "Oracle in OraDb11g_home1" which was specified in the ODBC Data Source Administrator. The same error came out.
    Below are some of my specifications:
    Platform: Windows 7 64bit
    Oracle: Oracle Database 11g Release 2 (64bit)
    Unity: 4.1.2
    Can someone please help me with this? What is it that i have done wrong?
    Thanks.

    1008737 wrote:
    Hi,
    I have been trying to connect to Oracle database in my codes. I have tried using OdbcConnection and OleDbconnection. But both did not allowed me to connect to the database. The database, testDb, can be accessed using SQL plus as well as the SQL developer. I even tested the connection successful using ODBC data source administrator.
    the following is my code for the connection string:
    OdbcConnection connectionString = "Driver={Oracle ODBC Driver};Server=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP )(HOST=127.0.0.1)(PORT=1521))(CONNECT_DATA=(SID=Te stDb)));Uid=scott;Pwd=password;";
    whenever localhost (127.0.0.1) is used, this means that no remote client can ever connect to this system
    The problem involves ODBC configuration & has nothing to do with Oracle.

  • Not able to connect with Oracle server through VBScript without DSN

    Hi
    I have both Oracle9i and Oracle10g clients installed with local system.
    I am able to connect to Oracle Database 11g Enterprise edition server though sqlplus through command prompt and also through AQT without any error.
    As the server has lots of database ,whenever I connect to a particular database through sqlplus from command prompt,I connect as below
    C:>sqlplus username/password@service_name
    and it gets connected without any error.
    When I am trying to connect the same database through VB Script,I am getting ORA-12560 TNS:Protocol Adaptor Error.
    Below is the connection string I am using:
    Database_String = "SERVER=xxxx.vvvn.Com;Driver={Oracle in OraHome92};DATABASE=service_name;user id=userid; password=passowrd"
    I have installed a Oracle10g server in my local system and tried to connect the same way and I was successfully ,but its not working when the server is running remotely.
    Does it make any difference with the version of driver being used ?Should I need to modify my connection string anyway.
    Please help me as to identify the issue.Thank you very much in advance.
    Regards
    Sahina

    check the listener status in server end,
    lsnrctl status
    lsnrctl servicesif not start
    lsnrctl startThanks

  • How to connect with Oracle database in JSF ?

    Hi ,
    am very new to JSF,i want to perform a database connection with an Oracle database through JSf.Is there any special tag as such in struts for DB connectivity in JSF?Can any one help me?

    No.
    A database shouldn't even be reached from inside the view layer. Do it in the controller/business layer, e.g. the backing bean. Read on about JDBC, DAO, DTO. If you're already familiar with that, consider an ORM, like Hibernate.

  • ODI topology connection error - oracle database

    Hi,
    I'm trying to connect to oracle database installed on a remote server through odi client installed on my windows machine. Oracle db is on RHEL 64 bit, I believe. I know the connection details such as hostname, sid etc but i'm not able to establish a connection using the oracle jdbc driver. I can perfectly connect to the db via sqldeveloper using tnsnames and also basic connection which rules out the possibility that i might be giving incorrect SID name in ODI connection since I'm using the same details for both
    Error which i received is:
    java.sql.SQLException: Listener refused the connection with the following error:
    ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
         at oracle.odi.jdbc.datasource.LoginTimeoutDatasourceAdapter.doGetConnection(LoginTimeoutDatasourceAdapter.java:133)
         at oracle.odi.jdbc.datasource.LoginTimeoutDatasourceAdapter.getConnection(LoginTimeoutDatasourceAdapter.java:62)
         at com.sunopsis.sql.SnpsConnection.testConnection(SnpsConnection.java:1125)
         at com.sunopsis.graphical.dialog.SnpsDialogTestConnet.getLocalConnect(SnpsDialogTestConnet.java:163)
         at com.sunopsis.graphical.dialog.SnpsDialogTestConnet.access$4(SnpsDialogTestConnet.java:159)
         at com.sunopsis.graphical.dialog.SnpsDialogTestConnet$4.doInBackground(SnpsDialogTestConnet.java:519)
         at com.sunopsis.graphical.dialog.SnpsDialogTestConnet$4.doInBackground(SnpsDialogTestConnet.java:1)
         at oracle.odi.ui.framework.AbsUIRunnableTask.run(AbsUIRunnableTask.java:258)
         at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:655)
         at java.lang.Thread.run(Thread.java:662)
    Caused by: java.sql.SQLException: Listener refused the connection with the following error:
    ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
         at oracle.odi.jdbc.datasource.LoginTimeoutDatasourceAdapter.doGetConnection(LoginTimeoutDatasourceAdapter.java:133)
         at oracle.odi.jdbc.datasource.LoginTimeoutDatasourceAdapter.getConnection(LoginTimeoutDatasourceAdapter.java:62)
         at oracle.odi.core.datasource.dwgobject.support.OnConnectOnDisconnectDataSourceAdapter.getConnection(OnConnectOnDisconnectDataSourceAdapter.java:74)
         at oracle.odi.jdbc.datasource.LoginTimeoutDatasourceAdapter$ConnectionProcessor.run(LoginTimeoutDatasourceAdapter.java:217)
         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
         at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
         at java.util.concurrent.FutureTask.run(FutureTask.java:138)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
         ... 1 more
    Caused by: java.sql.SQLException: Listener refused the connection with the following error:
    ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
         at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:482)
         at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:678)
         at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:238)
         at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:34)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:567)
         at oracle.odi.jdbc.datasource.DriverManagerDataSource.getConnectionFromDriver(DriverManagerDataSource.java:410)
         at oracle.odi.jdbc.datasource.DriverManagerDataSource.getConnectionFromDriver(DriverManagerDataSource.java:386)
         at oracle.odi.jdbc.datasource.DriverManagerDataSource.getConnectionFromDriver(DriverManagerDataSource.java:353)
         at oracle.odi.jdbc.datasource.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:332)
         ... 7 more
    Caused by: oracle.net.ns.NetException: Listener refused the connection with the following error:
    ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
         at oracle.net.ns.NSProtocol.connect(NSProtocol.java:411)
         at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1222)
         at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:330)
         ... 15 more

    tnsping works fine. To solve the problem, I changed my JDBC connection string to another format which uses connect description with service name and that solved the problem. This is what I used.
    jdbc:oracle:thin:@(DESCRIPTION=(LOAD_BALANCE=on) (ADDRESS=(PROTOCOL=TCP)(HOST=) (PORT=1521)) (ADDRESS=(PROTOCOL=TCP)(HOST=) (PORT=1521)) (CONNECT_DATA=(SERVICE_NAME=)))

  • I was facing problem while connecting to oracle database.Can some one help me soon!!!!!

    Hi all,
    I was facing problem from last week.Suddenly i was getting ora-12505 error while connecting to the database through toad.I tried to change tnsnames.ora & listener.ora in multiple ways,but no luck...Inspite i was getting different errors like ora - 01034: ORACLE not available / ora - 27101: shared memory realm does not exist...When i try to connect using sys / sys as sysdba,connection is establishing and when issue the command startup it was throwing the error ORA-01821: date format not recognized......Fed up solving these issues....Can some one help me out...It's very very urgent..
    Thanks in advance,
    pavankumar.

    Well, the obviously solution is to use separate Apple ID's for iCloud.

  • Connection to oracle database using jdbc

    i am using eclipse as editor.
    How to connect to the database?
    How to create a new table in oracle database through a servlet invoked
    program.
    My servlet receives input from an html page and then it can either do the above mentioned activities by itself or can invoke any other java class if necessary.

    This doesn't seem to have anything to do with JavaMail.
    You need to post this question to a more appropriate forum.

Maybe you are looking for

  • Using Time Capsule without it being a router

    I Have a Time Capsule connected to my Mac Mini (OS X 10.8.3) by ethernet cable, but not connected to my cable modem. I have an existing wireless network and wish to continue using that. I have the Time Capsule working okay for auto back-ups but every

  • What is the best way to set property to multiple fields?

    Dear Experts My requirement is, I want to allow user to fill only some specific fields in the form. When user A opens the form, he may be able to fill Field1~Field10. And when user B opens the form, he may be able to fill Field11~Field20. I have impl

  • QueuesDump

    Has anyone come across this before (PI7.0 SP10) I am running IDOCS from sending to receiver - SAP > XI > SAP <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> - <!--  Call Adapter   --> - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30"

  • Working with Test/Production environment as application sets

    Hi to all, does anyone here works with a Test/Production environment system? We've got a single system (2 machines, one for the DB server, one for BPC), and we were thinking on making 2 application sets: Production and Test. While most of the things

  • Oracel 11g express

    I would liek to install Oracle 11g express with the NLS CHARACTER SET or WE8MSWIN1252. Is there a way to install this character set or change it after the install. The install defaults to AL32UTF8 taht causes certain field to overflow when the exprt