CR 2008 and ODBC connection using Oracle Instant Client driver?

Two questions.
I'm creating CR 2008 report using an ODBC connection. The ODBC driver is the Oracle Instant Client (version 10.2, I think.)
When I define the connection, I see only a few tables. I do not see the Tables, Views, Qualifiers tree that I see with a normal Oracle Server connection.
Does anybody know why this happens? Is there a CR ODBC driver that works better?
Second question:  I have a .NET application that is pointing the report to another Oracle DB. In my db, table names are not unique -- each user has the same set of tables. I find that when the .net applciation sets the datasource, I get connected to the first table with a given name; I do not get the table scoped by the logon user.
In the .net application, how do I scope the table name to a particular user.
Any info helps. Thanks.
Tim

Hi Tim,
Below are the replies to your questions:
Answer 1: Please try the below steps:
- Make sure that in File->Options->Database Tab in the Data Explorer section the corresponding checkboxes are checked for tables, views,system tables,synonyms and stored procedures and the Table name LIKE and Owner LIKE boxes are blank.
- Please try with OLEDB connection and check the results.
- You can also refer to this SAP note no# 1215994, the link to which is given below:
[https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/sno/ui_entry/entry.htm?param=69765F6D6F64653D3030312669765F7361706E6F7465735F6E756D6265723D3132313539393426]
Answer 2: If you are using RAS SDK only then you would be able to change table name. Please let us know if you are using RAS.
   If you are using RAS with Java please post your query in the Java forum else if you are using Visual Studio/.NET then please post your question in .NET Forum.
Please update with the results.
Thanks!

Similar Messages

  • Advantages and Disadvantages of Using Oracle 7 Client with Oracle 9 Server

    Hello,
    I was wondering what are the advanatges of using Oracle 7 client with Oracle 9 Server versus using Oracle 9 Client with Oracle 9 server.

    Some years ago I used 7.3 Client with 9i DB, and I don't remember of particular problems, but I'm speaking of Sql*Plus only. Are there specific problems ?
    Of course the best thing is to install one 9i Client (did you already do it ?) : if there are same problems, then that's not compatibility issue.
    And what are advantages of using 9 Client with 9 server other than 7 is no longer supported.You're sure you won't have compatibility problems.
    If you have access to Metalink have a look at [url http://metalink.oracle.com/metalink/plsql/ml2_documents.showFrameDocument?p_database_id=NOTE&p_id=207303.1]Note 207303.1

  • Windows 2008 R2 ODBC connect to Oracle Linux with 11g db

    Hi
    i installed a fresh oracle linux and installes 11.2.0 database server. the server works fine but i have a proplem to connect to the database from a windows 2008 r2
    client. For the client connection i installed the oracle instantclient on the windows system. Now i want to configure the system dsn to connect to the oracle
    server like this
    data source description: vSphere 64
    description: ----
    TNS Service Name: VCDB
    user id: system
    then i go to TEST connection
    Service Name: VCDB
    user name: system
    Password: mypassword
    so i copied the tnsnames.ora from the server to the client
    then i get
    ora-12504 tns listener was not given the SERVICE_NAME in CONNECT-DATA
    here´s my tnsnames.ora from the client
    VCDB =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 172.31.98.173)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = vcdb.vmware)
    i tested serveral config´s but nothing works. I can ping the server and also i cn telnet the server on port 1521. The listener on the server works fine
    lsnrctl status
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 20-SEP-2010 20:48:52
    Copyright (c) 1991, 2009, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=vc-db1.mydomain)(PORT=1521)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    Start Date 20-SEP-2010 20:47:45
    Uptime 0 days 0 hr. 1 min. 7 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
    Listener Log File /u01/app/oracle/diag/tnslsnr/vc-db1/listener/alert/log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=vc-db1mydomain)(PORT=1521)))
    Services Summary...
    Service "vcdb.vmware" has 1 instance(s).
    Instance "vcdb", status READY, has 1 handler(s) for this service...
    Service "vcdbXDB.vmware" has 1 instance(s).
    Instance "vcdb", status READY, has 1 handler(s) for this service...
    The command completed successfully
    but it´s not possible to create a connection to the server. My enviroment variables are this
    ORACLE_BASE=/u01/app/oracle
    ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1
    ORACLE_HOSTNAME=vc-db1.mydomain
    ORACLE_SID=vcdb
    ORACLE_TERM=xterm
    so i think on the server site everything is correct. How could i establish a connection from the windows client
    to the linux database server. Or is ODBC the wrong method for this?
    Kind regards
    ACID25
    Edited by: 796038 on 20.09.2010 12:12

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

  • Cannot connect using oracle jdbc oci8 driver

    I am using Oracle 8.1.5 JDBC oci8 driver, but when try to connect, always got ERROR: java.lang.UnsatisfiedLinkError:make_c_state
    With the same code, but change to connect with thin driver, it works fine. Pls tell me the problem. Thank you.

    Hi,
    Here is the snippet code from oracle,
    // You need to import the java.sql package to use JDBC
    import java.sql.*;
    // We import java.io to be able to read from the command line
    import java.io.*;
    class JdbcCheckup
    public static void main (String args [])
    throws SQLException, IOException
    // Load the Oracle JDBC driver
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    // Prompt the user for connect information
    System.out.println ("Please enter information to test connection to the database");
    String user;
    String password;
    String database;
    user = readEntry ("user: ");
    int slash_index = user.indexOf ('/');
    if (slash_index != -1)
    password = user.substring (slash_index + 1);
    user = user.substring (0, slash_index);
    else
    password = readEntry ("password: ");
    database = readEntry ("database (a TNSNAME entry): ");
    System.out.print ("Connecting to the database...");
    System.out.flush ();
    System.out.println ("Connecting...");
    Connection conn =
    DriverManager.getConnection ("jdbc:oracle:oci8:@" + database,
    user, password);
    System.out.println ("connected.");
    // Create a statement
    Statement stmt = conn.createStatement ();
    // Do the SQL "Hello World" thing
    ResultSet rset = stmt.executeQuery ("select 'Hello World' from dual");
    while (rset.next ())
    System.out.println (rset.getString (1));
    System.out.println ("Your JDBC installation is correct.");
    // close the resultSet
    rset.close();
    // Close the statement
    stmt.close();
    // Close the connection
    conn.close();
    // Utility function to read a line from standard input
    static String readEntry (String prompt)
    try
    StringBuffer buffer = new StringBuffer ();
    System.out.print (prompt);
    System.out.flush ();
    int c = System.in.read ();
    while (c != '\n' && c != -1)
    buffer.append ((char)c);
    c = System.in.read ();
    return buffer.toString ().trim ();
    catch (IOException e)
    return "";
    This code can be run without specifying a TNSNAME connection string, as the oci8 jdbc driver will take localhost as default.
    OR
    Only specifying the TNSNAME is enough, i.e. edit %ORACLE_HOME%\network\ADMIN\TNSNAMES.ORA file and locate the XXXXX.WORLD entry in the file. This is the TNSNAME entry referred to.
    Without TNSNAME entry you can re-run,
    %ORACLE_HOME%\jdbc\demo\samples\oci8\basic-samples> java JdbcCheckup
    Please enter information to test connection to the database
    user: system
    password: manager
    database (a TNSNAME entry):
    Connecting to the database...Connecting...
    connected.
    Hello World
    Your JDBC installation is correct.
    Hope that helps.
    Best Luck!
    Senthil Babu J

  • Using SQLDriverConnect with special characters in password fails, same info with ODBC (Oracle instant client) works fine

    Hi,
    on a windows 2008 machine that has the Oracle instant client 11_1 installed (11.01.00.06) i am calling SQLDriverConnect in the following way:
    std::string str = "Driver={Oracle in instantclient11_1};Dbq=//10.10.101.66:1521/orcl;;Uid=myUser;pwd=a;b";
    odbcRc = SQLDriverConnect(hdbc, NULL, (SQLTCHAR*)str.c_str(), str.size(), (SQLTCHAR*)szConnStrOut, 1024, &cbConnStrOut, SQL_DRIVER_NOPROMPT)) == SQL_ERROR);
    as long as the password contains no special chars (namely semicolon) it works fine. but when I try to use special chars in the password It stops working, with an invalid username/password error.
    State: 28000 Native error: 1017 Message: [Oracle][ODBC][Ora]ORA-01017: invalid username/password; logon denied
    i tried different variations of adding " (\") over the password, over the entire pwd=a;b or braces { but nothing seems to work.
    the thing is that using ODBC works! what I did was:
    open ODBC, go to System DSN tab, add "Oracle in instantclient11_1", then fill the following information:
    Data source name: Anything
    TNS Service Name: //10.10.101.66:1521/orcl
    User ID: myUser
    then i press test connection, enter the password "a;b"
    and it works!
    I cannot figure out what's my problem.
    Thanks,
    Roy.

    I've created your test table in my Oracle database using this extra character and I'm able to describe it properly.
    SQL> desc test;
    Name Null? Type
    ATTIVITÀ VARCHAR2(40)
    My character set being used is:
    SQL> select * from v$nls_parameters;
    NLS_CHARACTERSET
    WE8ISO8859P15
    NLS_NCHAR_CHARACTERSET
    AL16UTF16
    NLS_LENGTH_SEMANTICS
    BYTE
    So as long as it doesn't work for you in your native Oracle database I don't think it would work with DG4ODBC. So yes, it would be best to log a service request so that the Oracle database support can check out the NLS issue.
    Edited by: kgronau on Sep 28, 2011 9:21 AM
    To be complete here the describe of the MySQL table native and using DG4ODBC:
    mysql> create table TEST (attività Varchar(40));
    Query OK, 0 rows affected (0.00 sec)
    mysql> desc TEST;
    ---------------------------------------------------+
    | Field | Type | Null | Key | Default | Extra |
    ---------------------------------------------------+
    | attività | varchar(40) | YES | | NULL | |
    ---------------------------------------------------+
    1 row in set (0.00 sec)
    SQL*Plus: Release 11.2.0.2.0 Production on Wed Sep 28 09:20:17 2011
    SQL> desc "gateway"."TEST"@MYSQL_DG4ODBC_EMGTW_1122_DB;
    Name Null? Type
    attività VARCHAR2(80)
    So in general it should work.

  • Compilation and use of instant client

    I have two questions:
    1. Can I compile a ProC and OCI program with Instant Client (10.1.0.4 or 10.2)? If so, how do I do it? what settings need to be done?
    2. Oracle 10g can be installed on SunOs 5.8 and above. Can I use Oracle Instant Client (which is 10g also) on lower level machine, like SunOs 5.7 ? Is there a matrix which shows the platform that instant client can be used?

    Thanks Toliver for the quick answer.
    I still have some missunderstanding regarding the second question.
    I saw Oracle's Client/Server interoperability matrix, but this matrix (at list the one I looked at) only stated the combination of which client version can work with which Oracle's Server version.
    The senario I am interested in is this:
    I compile a C program which uses ProC and OCI in SunOs 5.8, against Oracle server 10.1.0.4.
    Now, the program need to use Instant Client 10.1.0.4, and connect to 8i, 9i, and 10g databases.
    The tricky part is that the program actually runs on SunOs 5.7 (where SunOs 5.7 is not stateted as a platform for 10g), but the 5.7 machine is not where the database is. The program connects other machines which has 8i,9i and 10g databases.
    Will It work?

  • Anyone have experience about Mandrake9.1 + oracle instant client +php

    Anyone have experience about Mandrake9.1 + oracle instant client +php
    ======================
    Now i need your help about
    1. Install oracle instant client on my MDK9.1
    2. and want it so success and nice work ( PHP+Oracle Instant Client )
    ( PHP that can use oci8 tag : support oracle tag ) sir
    Can you help me and send me how-to/guide/link that "It's work !! " ? sir
    Thank you very much
    Pratchaya

    Use --with-oci8-instant-client option.
    Following links will help you:
    php + openldap +oci8 instantclient
    http://www.oracle.com/technology/pub/notes/technote_php_instant.html

  • ODBC connectivity between Oracle 11G and MSSQL Server on Solaris 10

    When we were running in 10G, I was able to successfully configure hsodbc using unixODBC and freeTDS to allow for an ODBC connection between Oracle and MSSQL Server.
    A few weeks ago we upgraded to 11G and I've been struggling to get the connectivity (dg4odbc) working.
    In our 10g environment unixODBC and freeTDS were compiled as 32-bit. I have recompiled them as 64-bit and switched over to an 11G listener and I am getting the following error:
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    here are my configuration files:
    /usr/local/unixODBC/etc[PPRD]> more odbc.ini
    [ODBC Data Sources]
    identipass = MS SQL Server
    [identipass]
    Driver = /usr/local/freetds/lib/libtdsodbc.so
    Setup = /usr/local/freetds/lib/libtdsodbc.so
    Description = MS SQL Server
    Trace = 1
    TraceFile = /export/home/oracle/ODBC/odbc.trace
    Server = stormwind
    QuoteID = Yes
    AnsiNPW = No
    Database = identipass
    Port = 1433
    TDS_Version = 8.0
    [Default]
    Driver = /usr/local/freetds/lib/libtdsodbc.so
    /usr/local/unixODBC/etc[PPRD]> more odbcinst.ini
    [TDS]
    Description=FreeTDS driver
    Driver=/usr/local/freetds/lib/libtdsodbc.so
    Setup=/usr/local/freetds/lib/libtdsodbc.so
    Trace=Yes
    TraceFile=/tmp/freetds.log
    FileUsage=1
    UsageCount=2
    tnsnames.ora
    identipass =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = tcp)(HOST = localhost)(PORT = 1522))
    (CONNECT_DATA =
    (SID = identipass)
    (HS = OK)
    listener.ora
    LISTENERODBC =
    (ADDRESS_LIST=
    (ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1522))
    (ADDRESS=(PROTOCOL=ipc)(KEY=PNPKEY)))
    SID_LIST_LISTENERODBC=
    (SID_LIST=
    (SID_DESC=
    (SID_NAME=identipass)
    (ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1)
    (ENV="LD_LIBRARY_PATH=/u01/app/oracle/product/11.2.0/db_1/lib:/u01/app/oracle/product/11.2.0/db_1/hs/lib")
    (PROGRAM=dg4odbc)
    And finally, output from the trace file:
    /u01/app/oracle/product/11.2.0/db_1/hs/log[PPRD]> more identipass_agt_1381.trc
    Oracle Corporation --- THURSDAY NOV 18 2010 16:00:16.010
    Heterogeneous Agent Release
    11.2.0.1.0
    Oracle Corporation --- THURSDAY NOV 18 2010 16:00:16.008
    Version 11.2.0.1.0
    Entered hgogprd
    HOSGIP for "HS_FDS_TRACE_LEVEL" returned "Debug"
    Entered hgosdip
    setting HS_OPEN_CURSORS to default of 50
    setting HS_FDS_RECOVERY_ACCOUNT to default of "RECOVER"
    setting HS_FDS_RECOVERY_PWD to default value
    setting HS_FDS_TRANSACTION_LOG to default of HS_TRANSACTION_LOG
    setting HS_IDLE_TIMEOUT to default of 0
    setting HS_FDS_TRANSACTION_ISOLATION to default of "READ_COMMITTED"
    setting HS_NLS_NCHAR to default of "AL32UTF8"
    setting HS_FDS_TIMESTAMP_MAPPING to default of "DATE"
    setting HS_FDS_DATE_MAPPING to default of "DATE"
    setting HS_RPC_FETCH_REBLOCKING to default of "ON"
    setting HS_FDS_FETCH_ROWS to default of "100"
    setting HS_FDS_RESULTSET_SUPPORT to default of "FALSE"
    setting HS_FDS_RSET_RETURN_ROWCOUNT to default of "FALSE"
    setting HS_FDS_PROC_IS_FUNC to default of "FALSE"
    setting HS_FDS_CHARACTER_SEMANTICS to default of "FALSE"
    setting HS_FDS_MAP_NCHAR to default of "TRUE"
    setting HS_NLS_DATE_FORMAT to default of "YYYY-MM-DD HH24:MI:SS"
    setting HS_FDS_REPORT_REAL_AS_DOUBLE to default of "FALSE"
    setting HS_LONG_PIECE_TRANSFER_SIZE to default of "65536"
    setting HS_SQL_HANDLE_STMT_REUSE to default of "FALSE"
    setting HS_FDS_QUERY_DRIVER to default of "TRUE"
    HOSGIP returned value of "FALSE" for HS_FDS_SUPPORT_STATISTICS
    Parameter HS_FDS_QUOTE_IDENTIFIER is not set
    setting HS_KEEP_REMOTE_COLUMN_SIZE to default of "OFF"
    setting HS_FDS_GRAPHIC_TO_MBCS to default of "FALSE"
    setting HS_FDS_MBCS_TO_GRAPHIC to default of "FALSE"
    Default value of 64 assumed for HS_FDS_SQLLEN_INTERPRETATION
    setting HS_CALL_NAME_ISP to "gtw$:SQLTables;gtw$:SQLColumns;gtw$:SQLPrimaryKeys;gtw$:SQLForeignKeys;gtw$:SQLProcedures;gtw$:SQLSt
    atistics;gtw$:SQLGetInfo"
    setting HS_FDS_DELAYED_OPEN to default of "TRUE"
    setting HS_FDS_WORKAROUNDS to default of "0"
    Exiting hgosdip, rc=0
    ORACLE_SID is "identipass"
    Product-Info:
    Port Rls/Upd:1/0 PrdStat:0
    Agent:Oracle Database Gateway for ODBC
    Facility:hsa
    Class:ODBC, ClassVsn:11.2.0.1.0_0008, Instance:identipass
    Exiting hgogprd, rc=0
    Entered hgoinit
    HOCXU_COMP_CSET=1
    HOCXU_DRV_CSET=873
    HOCXU_DRV_NCHAR=873
    HOCXU_DB_CSET=873
    HOCXU_SEM_VER=112000
    Entered hgolofn at 2010/11/18-16:00:16
    HOSGIP for "HS_FDS_SHAREABLE_NAME" returned "/usr/local/unixODBC/lib/libodbc.so"
    Entered hgolofns at 2010/11/18-16:00:16
    symbol_peflctx=0x7a715450
    hoaerr:0
    Exiting hgolofns at 2010/11/18-16:00:16
    Exiting hgolofn, rc=0 at 2010/11/18-16:00:16
    HOSGIP for "HS_OPEN_CURSORS" returned "50"
    HOSGIP for "HS_FDS_FETCH_ROWS" returned "100"
    HOSGIP for "HS_LONG_PIECE_TRANSFER_SIZE" returned "65536"
    HOSGIP for "HS_NLS_NUMERIC_CHARACTER" returned ".,"
    HOSGIP for "HS_KEEP_REMOTE_COLUMN_SIZE" returned "OFF"
    HOSGIP for "HS_FDS_DELAYED_OPEN" returned "TRUE"
    HOSGIP for "HS_FDS_WORKAROUNDS" returned "0"
    HOSGIP for "HS_FDS_MBCS_TO_GRAPHIC" returned "FALSE"
    HOSGIP for "HS_FDS_GRAPHIC_TO_MBCS" returned "FALSE"
    Invalid value of 64 given for HS_FDS_SQLLEN_INTERPRETATION
    treat_SQLLEN_as_compiled = 1
    Exiting hgoinit, rc=0 at 2010/11/18-16:00:16
    Entered hgolgon at 2010/11/18-16:00:16
    reco:0, name:identipass, tflag:0
    Entered hgosuec at 2010/11/18-16:00:16
    Exiting hgosuec, rc=0 at 2010/11/18-16:00:16
    HOSGIP for "HS_FDS_RECOVERY_ACCOUNT" returned "RECOVER"
    HOSGIP for "HS_FDS_TRANSACTION_LOG" returned "HS_TRANSACTION_LOG"
    HOSGIP for "HS_FDS_TIMESTAMP_MAPPING" returned "DATE"
    HOSGIP for "HS_FDS_DATE_MAPPING" returned "DATE"
    HOSGIP for "HS_FDS_CHARACTER_SEMANTICS" returned "FALSE"
    HOSGIP for "HS_FDS_MAP_NCHAR" returned "TRUE"
    HOSGIP for "HS_FDS_RESULTSET_SUPPORT" returned "FALSE"
    HOSGIP for "HS_FDS_RSET_RETURN_ROWCOUNT" returned "FALSE"
    HOSGIP for "HS_FDS_PROC_IS_FUNC" returned "FALSE"
    HOSGIP for "HS_FDS_REPORT_REAL_AS_DOUBLE" returned "FALSE"
    using identipass as default value for "HS_FDS_DEFAULT_OWNER"
    HOSGIP for "HS_SQL_HANDLE_STMT_REUSE" returned "FALSE"
    Entered hgocont at 2010/11/18-16:00:16
    HS_FDS_CONNECT_INFO = "identipass"
    RC=-1 from HOSGIP for "HS_FDS_CONNECT_STRING"
    Entered hgogenconstr at 2010/11/18-16:00:16
    dsn:identipass, name:identipass
    optn:
    Entered hgocip at 2010/11/18-16:00:16
    dsn:identipass
    Exiting hgocip, rc=0 at 2010/11/18-16:00:16
    Exiting hgogenconstr, rc=0 at 2010/11/18-16:00:16
    Entered hgopoer at 2010/11/18-16:00:16
    hgopoer, line 233: got native error 0 and sqlstate ; message follows...
    Exiting hgopoer, rc=0 at 2010/11/18-16:00:16
    hgocont, line 2753: calling SqlDriverConnect got sqlstate
    Exiting hgocont, rc=28500 at 2010/11/18-16:00:16 with error ptr FILE:hgocont.c LINE:2772 ID:Something other than invalid authoriza
    tion
    Exiting hgolgon, rc=28500 at 2010/11/18-16:00:16 with error ptr FILE:hgolgon.c LINE:781 ID:Calling hgocont
    Entered hgoexit at 2010/11/18-16:00:16
    Exiting hgoexit, rc=0
    Can anyone help me see what I'm missing?

    Thank you for your response.
    I modified the envs LD_LIBRARY_PATH parameter in my SID_LIST_LISTENERODBC to be:
    (ENV="LD_LIBRARY_PATH=/usr/local/freetds/lib:/usr/local/unixODBC/lib:/u01/app/oracle/product/11.2.0/db_1/lib:/
    u01/app/oracle/product/11.2.0/db_1/hs/lib")
    and bounced the listener, but I'm still getting the same error.
    I do not have a lib64 directory in my Freetds installation, but all the files in the lib directory are 64-bit.
    Here is a listing of my DG4ODBC init file:
    /u01/app/oracle/product/11.2.0/db_1/hs/admin[PPRD]> more initidentipass.ora
    # 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 = identipass
    #HS_FDS_TRACE_LEVEL = 0
    HS_FDS_TRACE_LEVEL = Debug
    HS_FDS_SHAREABLE_NAME = /usr/local/unixODBC/lib/libodbc.so
    HS_FDS_SUPPORT_STATISTICS=FALSE
    HS_LANGUAGE=AMERICAN.AMERICA.WE8ISO8859P15
    # ODBC specific environment variables
    set ODBCINI=/usr/local/unixODBC/etc/odbc.ini
    # Environment variables required for the non-Oracle system
    #set <envvar>=<value>
    Thanks for your help with this!
    Catina

  • How to create ODBC connection between Oracle 10g and MS SQL Server

    Hi,
    Can someone help us with the steps to create an ODBC connection between Oracle APPS using Oracle 10g database and MS SQL Server.
    Requirement is to extract the transactional data from MS SQL Server on a daily basis and dump it into Oracle tables for an interface to be run. Currently it is being done through Dataloader tool which we feel is causing the data issue with Arabic characters. We want to create the ODBC directly between Oracle and MS SQL Server and check if the data is being pulled correctly.
    The data is in sql server 2000 which has data in Arabic_CI_AS character set which is moved to Oracle 10.2.0.3 database with characterset AL32UTF8. The table data is moved to oracle using the dataloader 3.6 standard edition licensed version. We cannot change the character set of Sql Server 2000.
    Please help
    Thanks
    Shanil

    Hi,
    If you're trying to PULL data from SQLServer into an Oracle database, you wouldnt use Oracle ODBC driver for that, so you may want to post in the Heterogeneous Services forum instead:
    Heterogeneous Connectivity
    If you're trying to PUSH data from SQLServer into an Oracle database, you could use ODBC but most folks use OLEDB for that, and the following note on MOS should help:
    How to Create a Sql Server Linked Server With The Oracle Provider for OLE DB     (Doc ID 191368.1)
    As with any NLS related issue, the first thing to do is dump the codepoints of the data in the Oracle database to see if it is stored validly, rather than relying on what the data "looks like" from some tool or other. It's best to check a single row, with only a few characters in it if you can, and you can do that via
    SELECT DUMP(<columname>,1016) FROM <tablename> WHERE ...
    Hope it helps,
    Greg

  • Unix ODBC and Oracle Instant Client

    When I dowloaded Oracle 11 Instant client the the zip file does not contain the libsqlora.so.11.1 file. the odbc_update_ini file contains reference to it. I am trying to configure ODBC on HP UX Pa Risc to use the Instant Client. I have downloaded the UnixODBC driver manager from UnixODBC.org. But I can't seem to figure out how to hook up Oracle 11 Instant Client. Everything I have searched for indicates that libsqlora.so.11.1 is required for the driver manager to work. Who develops this, is it Oracle, is it UnixODBC.org? Do I need to use an older version of Oracle Instanct Client?
    Thank you in advance for any help.

    is it "libsq.." or "libsql.."? Did you check odbc.zip? "libsqora.so.11.1" suppose to be part of odbc.zip. From which location you have downloaded? because in my install location I can see that "libsqora.so.11.1" is part of odbc.zip file and same has been referred by odbc_update_ini file. Download fresh tar(odbc.zip) and recheck!

  • Jdbc connection using oracle thin driver( using jdk1.4 and oracle8 )

    hello ..
    while i was tring to connection using oracle thin driver and jdk1.4 am getting the below error message. i have set the class path for the driver also. am using oracle8 personal edition and jdk1.4.
    [java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
            at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
            at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
            at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:333)
            at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:404)
            at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
    va:468)
            at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:314)
            at java.sql.DriverManager.getConnection(DriverManager.java:512)
            at java.sql.DriverManager.getConnection(DriverManager.java:171)
            at Connexa.main(Connexa.java:18)[/b]
    Press any key to continue...
    my program is....
    import java.sql.*;                                          
    import java.io.*;
    import java.util.*;
    import oracle.jdbc.driver.*;
    // needed for new BFILE class
    import oracle.sql.*;
       public class Connexa {
      public static void main (String args []) throws Exception {
            Statement stmt=null; 
      try{
        // Load the Oracle JDBC driver                            
        //DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    Class.forName("oracle.jdbc.driver.OracleDriver");
        // Connect to the database
        // You can put a database name after the @ sign in the connection URL.
    Connection conn =
    DriverManager.getConnection("jdbc:oracle:thin:@127.0.0.1:1521:orcl","scott","tiger");
        //Connection conn =
        //  DriverManager.getConnection ("jdbc:odbc:datasource", "system", "manager");
        stmt = conn.createStatement ();
    catch (SQLException e)
          e.printStackTrace();

    The code itself is fine; the problem is with one of:
    1) the connection URL
    2) intermediate networking
    3) the database itself
    1) your connection URL is "jdbc:oracle:thin:@127.0.0.1:1521:orcl"
    - is Oracle really running on the default port, 1521
    - is the installation SID really "orcl"
    2) lots of possibilities, but only a couple are likely
    - is TCP/IP configured and running on your host
    - is there a persoanl firewall rpduct running? perhaps it's blocking the connection
    3) Is Oracle running?
    Is the listener running?

  • Getting sqlplus and odbc connection to work

    I'm looking to automate some data extraction activities either through a windows batch file or set up a data connection in an excel spreadsheet. I've installed (I think) the instant client, but, I'm not seeing any programs to run in my start>All Programs list except Microsoft ODBC Administrator and sqlplus does not work when typed at the command prompt (sqlplusw neither).
    Not sure what I should do next...thanks for looking and your help.
    I currently use sql server and access and have set odbc connections and connections to sql server in excel.
    Here's what the inventory shows:
    Inventory contents of (my-computer):
    Oracle Homes
    OraClient10g_home1
    Oracle Client 10.2.0.1.0
    Oracle Instant Client 10.2.0.1.0
    Oracle ODBC Driverfor Instant Client 10.2.0.1.0
    Oracle JDBC/OCI Instant Client 10.2.0.1.0
    SSL Required Support Files for InstantClient 10.2.0.1.0
    RDBMS Required Support Files for Instant Client 10.2.0.1.0
    SQL*Plus Files for Instant Client 10.2.0.1.0
    HOME SELECTION
    Central Inventory Location: "C:\Program Files\Oracle\Inventory"
    Oracle Home Status
    OraClient10g_home1 Selected
    PATH = D:\oracle\product\10.2.0\client_1\bin;D:\oracle\product\10.2.0\client_1;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;
    etc, etc, etc
    --------------------------------------------------------------------------------

    thanks
    sqlplus working, had the wrong path, but, not connecting. I did save a copy of the tnsnames.ora from another machine. Here's what it shows, below, I think I need to use the LDAP adapter, but, not sure how to make it use that, sqlnet.ora is:
    SQLNET.AUTHENTICATION_SERVICES= (NTS)
    NAMES.DIRECTORY_PATH= (LDAP, TNSNAMES, EZCONNECT)
    ----command line results------
    C:\>tnsping POST_DBSR.xxx.ourcompany.COM
    TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 21-SEP-2
    010 07:33:32
    Copyright (c) 1997, 2005, Oracle. All rights reserved.
    Used parameter files:
    D:\oracle\product\10.2.0\client_2\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)
    (HOST = 192.168.1.xxx)(PORT = 1521))) (CONNECT_DATA = (SID = post)))
    TNS-12535: TNS:operation timed out

  • Oracle instant Client and unixODBC for Linux has Error

    Hi experts,
    I have two Redhat EL 5. On the first Rehat(xxx.xxx.xxx.121 --> called Redhat1) I have installed Oracle 10g database server. On the second Redhat(xxx.xxx.xxx.123 --> called Redhat2) I want to connect to Oracle database server on xxx.xxx.xxx.121 via ODBC. But it does not work. Pls help me!
    I have done steps as following:
    Login to Redhat2 as root and type commands:
    1)Install Instant Client + sqlplus
    # rpm -ivh oracle-instantclient-basic-10.2.0.4-1.i386.rpm
    # rpm -ivh oracle-instantclient-sqlplus-10.2.0.4-1.i386.rpm
    2)Setting environment variable
    # LD_LIBRARY_PATH=/usr/lib/oracle/10.2.0.4/client/lib:${LD_LIBRARY_PATH}; export LD_LIBRARY_PATH
    # SQLPATH=/usr/lib/oracle/10.2.0.4/client/lib:${SQLPATH}; export SQLPATH
    3)Testing connection to Redhat1(Oracle DB server) using sqlplus
    # sqlplus abc/[email protected]:1521/lab2
    Connected.
    5)Begin to install unixODBC
    # rpm -ivh oracle-instantclient-odbc-10.2.0.4-1.i386.rpm
    # rpm -ivh unixODBC-2.2.11-7.1.i386.rpm
    # rpm -ivh unixODBC-devel-2.2.11-7.1.i386.rpm
    # rpm -ivh unixODBC-kde-2.2.11-7.1.i386.rpm
    6)After installation above packages I check for existing of odbc.ini and odbcinst.ini in /etc --> ok
    # ls /etc | grep odbc
    odbc.ini
    odbcinst.ini
    7) Tar unixODBC-2.2.14-linux-x86-32.tar.gz and copy file to /usr/local/bin, /usr/local/include, /usr/local/lib
    # tar -xzf unixODBC-2.2.14-linux-x86-32.tar.gz
    # ls /usr/local/bin/
    dltest isql iusql odbc_config odbcinst
    # ls /usr/local/include
    autotest.h odbcinstext.h odbcinst.h sqlext.h sql.h sqltypes.h sqlucode.h unixodbc_conf.h uodbc_extras.h uodbc_stats.h
    # ls /usr/local/lib
    libboundparam.la libgtrtst.la libodbccr.la libodbcinst.la libodbc.la
    libboundparam.so libgtrtst.so libodbccr.so libodbcinst.so libodbc.so
    libboundparam.so.1 libgtrtst.so.1 libodbccr.so.1 libodbcinst.so.1 libodbc.so.1
    libboundparam.so.1.0.0 libgtrtst.so.1.0.0 libodbccr.so.1.0.0 libodbcinst.so.1.0.0 libodbc.so.1.0.0
    # NLS_LANG=AMERICAN_AMERICA.UTF8; export NLS_LANG
    # TNS_ADMIN=/root; export TNS_ADMIN
    # ODBCINI=/etc/odbc.ini; export ODBCINI
    7)Retest sqlplus to Redhad1(Oracle database server) with local tnsname
    # sqlplus vonphoto/vonphoto@lab2
    SQL*Plus: Release 10.2.0.4.0 - Production on Sat Mar 27 03:20:55 2010
    Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    8) Edit odbc.ini and odbcinst.ini
    ---odbcinst.ini
    # Included in the unixODBC package
    [Oracle 10g ODBC driver]
    Description = Oracle ODBC driver for Oracle 10g
    Driver = /usr/lib/oracle/10.2.0.4/client/lib/libsqora.so.10.1
    Setup =
    FileUsage =
    CPTimeout =
    CPReuse =
    ---odbc.ini
    [ora_dns]
    Driver = Oracle 10g ODBC driver
    DSN = ora_dns
    ServerName = xxx.xxx.xxx.121
    UserID = vonphoto
    Application Attributes = T
    Attributes = W
    BatchAutocommitMode = IfAllSuccessful
    BindAsFLOAT = F
    CloseCursor = F
    DisableDPM = F
    DisableMTS = T
    EXECSchemaOpt =
    EXECSyntax = T
    Failover = T
    FailoverDelay = 10
    FailoverRetryCount = 10
    FetchBufferSize = 64000
    ForceWCHAR = F
    Lobs = T
    Longs = T
    MetadataIdDefault = F
    QueryTimeout = T
    ResultSets = T
    SQLGetData extensions = F
    Translation DLL =
    Translation Option = 0
    DisableRULEHint = T
    TraceFile = /backup/sql.log
    Trace = Yes
    9)Testing the driver and the data source
    # odbcinst -q -d
    [Oracle 10g ODBC driver]
    # odbcinst -q -s
    [ora_dns]
    10) Test connection via ODBC from Redhat2(xxx.xxx.xxx.123) to Redhat1(xxx.xxx.xxx.121)
    # isql -v ora_dns
    isql: error while loading shared libraries: libreadline.so.3: cannot open shared object file: No such file or directory
    I have spent 4 days to search on the internet. But it still error.
    Pls help me.

    Apologies - thought it was a database to database connection that you were trying to create.
    isql: error while loading shared libraries: libreadline.so.3: cannot open shared object file: No such file or directoryThe readline library is in package readline-4.3-13 on RHEL4 and in readline-5.1-1.1 for RHEL5 on my servers (minor version number are of course dependent on the kernel version used).
    This is also not an ODBC or Oracle issue. It seems that isql is using rlwrap or similar - this requires the readline library. And possibly LD_LIBRARY_PATH to be set too.

  • Oracle instant Client and unixODBC for Linux not work

    Hi experts,
    I have two Redhat EL 5. On the first Rehat(xxx.xxx.xxx.121 --> called Redhat1) I have installed Oracle 10g database server. On the second Redhat(xxx.xxx.xxx.123 --> called Redhat2) I want to connect to Oracle database server on xxx.xxx.xxx.121 via ODBC. But it does not work. Pls help me!
    I have done steps as following:
    Login to Redhat2 as root and type commands:
    1)Install Instant Client + sqlplus
    # rpm -ivh oracle-instantclient-basic-10.2.0.4-1.i386.rpm
    # rpm -ivh oracle-instantclient-sqlplus-10.2.0.4-1.i386.rpm
    2)Setting environment variable
    # LD_LIBRARY_PATH=/usr/lib/oracle/10.2.0.4/client/lib:${LD_LIBRARY_PATH}; export LD_LIBRARY_PATH
    # SQLPATH=/usr/lib/oracle/10.2.0.4/client/lib:${SQLPATH}; export SQLPATH
    3)Testing connection to Redhat1(Oracle DB server) using sqlplus
    # sqlplus abc/[email protected]:1521/lab2
    Connected.
    5)Begin to install unixODBC
    # rpm -ivh oracle-instantclient-odbc-10.2.0.4-1.i386.rpm
    # rpm -ivh unixODBC-2.2.11-7.1.i386.rpm
    # rpm -ivh unixODBC-devel-2.2.11-7.1.i386.rpm
    # rpm -ivh unixODBC-kde-2.2.11-7.1.i386.rpm
    6)After installation above packages I check for existing of odbc.ini and odbcinst.ini in /etc --> ok
    # ls /etc | grep odbc
    odbc.ini
    odbcinst.ini
    7) Tar unixODBC-2.2.14-linux-x86-32.tar.gz and copy file to /usr/local/bin, /usr/local/include, /usr/local/lib
    # tar -xzf unixODBC-2.2.14-linux-x86-32.tar.gz
    # ls /usr/local/bin/
    dltest isql iusql odbc_config odbcinst
    # ls /usr/local/include
    autotest.h odbcinstext.h odbcinst.h sqlext.h sql.h sqltypes.h sqlucode.h unixodbc_conf.h uodbc_extras.h uodbc_stats.h
    # ls /usr/local/lib
    libboundparam.la libgtrtst.la libodbccr.la libodbcinst.la libodbc.la
    libboundparam.so libgtrtst.so libodbccr.so libodbcinst.so libodbc.so
    libboundparam.so.1 libgtrtst.so.1 libodbccr.so.1 libodbcinst.so.1 libodbc.so.1
    libboundparam.so.1.0.0 libgtrtst.so.1.0.0 libodbccr.so.1.0.0 libodbcinst.so.1.0.0 libodbc.so.1.0.0
    # NLS_LANG=AMERICAN_AMERICA.UTF8; export NLS_LANG
    # TNS_ADMIN=/root; export TNS_ADMIN
    # ODBCINI=/etc/odbc.ini; export ODBCINI
    7)Retest sqlplus to Redhad1(Oracle database server) with local tnsname
    # sqlplus vonphoto/vonphoto@lab2
    SQL*Plus: Release 10.2.0.4.0 - Production on Sat Mar 27 03:20:55 2010
    Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    8) Edit odbc.ini and odbcinst.ini
    ---odbcinst.ini
    # Included in the unixODBC package
    [Oracle 10g ODBC driver]
    Description = Oracle ODBC driver for Oracle 10g
    Driver = /usr/lib/oracle/10.2.0.4/client/lib/libsqora.so.10.1
    Setup =
    FileUsage =
    CPTimeout =
    CPReuse =
    ---odbc.ini
    [ora_dns]
    Driver = Oracle 10g ODBC driver
    DSN = ora_dns
    ServerName = xxx.xxx.xxx.121
    UserID = vonphoto
    Application Attributes = T
    Attributes = W
    BatchAutocommitMode = IfAllSuccessful
    BindAsFLOAT = F
    CloseCursor = F
    DisableDPM = F
    DisableMTS = T
    EXECSchemaOpt =
    EXECSyntax = T
    Failover = T
    FailoverDelay = 10
    FailoverRetryCount = 10
    FetchBufferSize = 64000
    ForceWCHAR = F
    Lobs = T
    Longs = T
    MetadataIdDefault = F
    QueryTimeout = T
    ResultSets = T
    SQLGetData extensions = F
    Translation DLL =
    Translation Option = 0
    DisableRULEHint = T
    TraceFile = /backup/sql.log
    Trace = Yes
    9)Testing the driver and the data source
    # odbcinst -q -d
    [Oracle 10g ODBC driver]
    # odbcinst -q -s
    [ora_dns]
    10) Test connection via ODBC from Redhat2(xxx.xxx.xxx.123) to Redhat1(xxx.xxx.xxx.121)
    # isql -v ora_dns
    isql: error while loading shared libraries: libreadline.so.3: cannot open shared object file: No such file or directory
    I have spent 4 days to search on the internet. But it still error.
    Pls help me.

    I don't understand your step 7 (the first step 7, actually).
    What is that unixODBC-2.2.14-linux-x86-32.tar.gz, where did it come from, and why are you doing all that?
    unixODBC should be installed after step 5.
    I guess that that is the cause of your problem.
    isql is not linked against readline at all on my RHEL 5 system.
    Do you notice any improvement after removing the files from that tar.bz file?
    Yours,
    Laurenz Albe

  • Installing and using the instant client

    Hi, we are having some troubles with understanding how to use the instant client.
    We are using a windows client, connection to our Oracle database via odbc, so we can make some staticstics.
    We used to use the full oracle client 8 install, but when that gave us some troubles, so we wantedto switch to a newer release, and saw that there was an instant client. Thinking that i didnt need to install the full oracle client i downloaded the basic package and the odbc addon.
    I unzipped the two archieves in c:\oracleodbc on a clean computer.
    I added the c:\oracleodbc path to the %path%
    I added TNS_ADMIN system variable pointing to c:\oracleodbc
    i ran the odbc_install.exe program.
    I would now think that i could access the oracle database via odbc without having to install the full oracleclient, but it does not work.
    When i try to add a odbc connection in microsoft odbc manager i get the following error when i choose the oracle odbc driver:
    "The setup routines for the Oracle in instantclient10_2 ODBC driver could not be loaded due to system error code 126"
    When i click ok to that i get a new error window with the title: "Driver's ConfigDSN, ConfigDriver, or ConfigTranslator failed" and the error text:
    "Could not load the setup or translator library"
    I was not planning to use any TNS files, but just use the quickconnect string, to connect to the right oracle service.
    Do i still need to install the full client for it to work or what ?
    Hope someone can help out.
    Thanks in advance.

    I'm replying to an old thread, but did any of you ever got this resolved?
    I've got a fresh Windows 2003 Server install, from which I'd need to establish an ODBC connection to an Oracle database.
    I've downloaded Instant Client Basic and ODBC add-on, unzipped them into D:\oracle\instantclient10_2\ , added the path into PATH, TNS_ADMIN and ORACLE_HOME environment variables and run the odbc_install.exe successfully.
    Trying to create an ODBC connection (System DSN) results in "The setup routines for the Oracle in instantclient10_2 ODBC driver could not be loaded due to system error code 126".
    I don't have MFC71 on the server and I couldn't figure out where to get those - I won't install MS Visual .NET just for this. MFC42 appears to be included in the OS.
    Where can I get an older version of Instant Client instead?

Maybe you are looking for

  • Invoice reduction report

    Hi, Is there any report where I can get the list of Invoices where Invoice Reduction is used in MIRO Regards Sameer

  • How to put my java applet application inside a browser

    currently I have a java applet appilcation but it pops-out outside the browser. does anyone can show me how to embed it on my browser

  • IMac + Airport Snow as wireless bridge?

    I have an older iMac G5 that I have connected in one of the rooms in the house to the wireless router in the front of the house. My issue is that any rooms past the iMac are unable to connect to the original router in the front. My question is can I

  • Cannot use BOTH HP 8600 wireless printer pro in office and home

    I bought the same unit so I could interchange cartridges and parts as well as the ease of software, the home printer works fine wireless, but does not work at the office. The only way that it can be used is to plug in the ethernet cable and that defe

  • Driven Away by Stupidity - after 31 years with BT!

    Great isn't it? I want to stay on my Broadband and call package with BT. The only way that BT can be competitive with the other providers is by offering a £120 up front charge for line rental, that's OK - I am happy to go along with that. The Braodba