Perl DBI and ODBC Access to Oracle

I am trying to communicate with an Oracle database from a Debian Linux system.
I have looked through much documentation of various vintages, on how to achieve this, but I am still unclear about what I need.
I have the iODBC stuff, but this seems to need a "driver". Most references to drivers seem to need something from the Oracle distribution - typically header files or "oracle.mk"
Can anyone point me to an open source or downloadable driver, or help me to identify a way of downloading the necessary bits of Oracle to permit a driver to be built.
Thanks, (in hope),
Dave Whiteley

Re the reply below,
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by gv ():
you need two things:
the DBI package (interface)
the DBD package (driver)
you can find both on CPAN
<HR></BLOCKQUOTE>
Things are not as simple as indicated. To install the DBD package you MUST have an environmental variable ORACLE_HOME set up and pointing at an Oracle installation. It reads some of the files there in order to install itself.
This means that to install DBD:Oracle you need to first install Oracle... Unless, someone knows which files are necessary for the install, and they are legally availablke without breaking the Oracle license.
I have sucessfully installed DBD:Oracle in this way (at least, I can communicate with a remote server).
There are similar issues with DBD:ODBC.
This installs easily, however, as I understand the situation, it needs to communicate with other local "driver" software in order to contact the remote server. I I have not yet sucessfully installed and used this "driver" software. Again this seems to require a lcal Oracle installation.
The driver software consists of a driver manager, and the driver itself. Different people distribute different versions of these and the documentation available has confused me - perhaps some of it is out of date?
Up to now I am working on a lightly loaded machine with space. I will need to set up the working system on another more heavily loaded machine. I do not want to have to Install Oracle on that. I will never use it. It will only be there to permit installation of the Perl DBD stuff.
Hints and advice welcome.
Dave

Similar Messages

  • Perl DBI and DBD::Oracle

    Has anyone had any exerience with using Perl, DBI and DBD::Oracle to access Oracle databases on NT? I'll be starting a project that requires this kind of configuration and I was wondering if anyone has pointers.
    TIA!

    try cpan.org

  • MaxDB perl DBI and sql error -4008

    I'm using PERL DBI module to connect to my liveCache instances, as a read-only user, to obtain status of various things.
    I've installed the latest MaxDB DBI modules and latest MaxDB 7.7 Linux runtimes.
    I can successfully connect to a livecache 7.4 instance, but for some reason when I connect to a 7.6 instance I get a DBI error:
    sql error -4008
    failed: POS(1) Unknown user name/password combination
    My code is:
    $dbMAXDB = DBI->connect("dbi:MaxDB:$o_nodename/$o_SID",$maxdb_usr,$maxdb_pwd, \%dbi_attr) or die;
    The above code works with 7.5 etc, but not for my 1 single 7.6 instance!
    The username/pwd is correct, as using dbmcli with the same username/pwd works.
    Has anyone experienced this, or can someone offer a solution?

    Maybe you use the administrator user instead of the SQL user? MaxDB distinguishes between “Administrators” - as we called them - and “SQL users”. The group of “Administrators” (Database Manager operators, DBM operators) is used for the administration of the database only (start, stop, backup etc.) and cannot be used to open a SQL session. So please make sure that the user is a SQL user.
    Also you might check if you will be able to connect to the database with the command line tool sqlcli using this user.
    Regards,
    Marco

  • 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!

  • Perl DBI and DBD

    I know there has been a thread for this but there does not to be an answer to this.
    I have a new mac mini with Snow Leopard which I installed MYSQL 5 64 bit. I am trying to run perl scripts that connect to MYSQL but Perl throws an error regarding the DBD module. I have tried using CPAN to update the modules which seems to be successfull in regards updating but still I get the DBD module error. I have tried installing the modules manually but still I get the same error. Also I tried 32 bit MySQL but still it does not work.
    Has anyone solved this problem at all? I have rolled back my Mac using timemachine to the stock build so I am ready to try this all again!
    Regards
    Chris.
    Message was edited by: BigChrisUK01

    BigChrisUK01 wrote:
    to be honest I am not totally sure what I am doing.
    Unfortunately, you are going to have to find out. You are trying to get 4 very complex systems (MacOS X, MySQL, Perl, and CPAN) all working together. Plus, you have chosen to do so on a brand-new OS.
    If you want people to be able to help you can't just say things like "an error", "does not work", or "a web site". You must be explicit. What error are you getting? Use copy and paste. If you try it a different way, what error is that? What web site were you looking at? Maybe it was from 2002.
    Your first step is to find out just what is installed on your system. Use the command "file" to find out what architecture your mysqlclient libraries are. Also find out about your DBD files.

  • ODBC access to an Oracle DB running on Windows Server 64 bit?

    I'm being told by a company that there is no way to connect via ODBC from my Mac to an Oracle database hosted on a Windows 64 bit server. Does anyone know whether that is true, and if not, what tool or driver one could use to make the connection?
    Thanks,
    ~Andrew

    Fabio D'Alfonso wrote:
    Hi,
    I was setting up VMware vCenter 4.1 (probably the only well known and largely used product with this lethal mix) and needed to setup an ODBC access to Oracle on the 32 bit side of Windows to setup the Update Manager server component, which is still a 32 bit application)
    The problem with Oracle configuration is that in no way I found a 32 bit ODBC registered driver after the setup (of the 32 bit client and the 64 database server). I tried some third party driver for oracle (e.g. easysoft).They registered in the 32 bit ODBC manager but they never got a successful connection.
    Also if this vCenter requirement is questionable (more questionable considering that the setup of this 32 component is not allowed on a 32 separate OS, not because it is separate but because is a 32 bit OS) I would get it working.
    Could suggest a way to get this working?
    Thanks
    Fabio D'AlfonsoWhen you install the Oracle client software on Windows (which is necessary to support ODBC, as the Oracle ODBC driver sits on top of the native client software) the ODBC driver is NOT installed by default. You have to go back and do a "custom" install and select the "Windows components".

  • Perl and Shell Involvement in Oracle

    Hi All,
    I want to know about the involvement of Perl Script and Shell Script in Oracle.
    Can anyone guide how to prepare for perl script as a DBA.
    Cheers,
    Moorthy.GS

    A
    grep perl * under $ORACLE_HOME/bin will reveal there are quite a few scripts are prepared by perl especially EM related.
    Shell script is usually a wrapper script to setup environment variable before calling a another program.
    Being a DBA, you have a some advantage knowing how to write a Perl or Shell script. Do not have to be super proficient, at least you can read and understand a perl and shell coding and duplicate or modify according to your needs.

  • Get sql*net to use perl module (DBI and DBD::Oracle)

    Hi,
    I'm doing a perl script which tests oracle database availability
    Now to install it on a Unix computer i need some Oracle files to use the DBI and DBD::Oracle module
    I saw in differents forums that i need to install SQL*NET to have those files but i know few things about Oracle products and then i don't know which package i have to download to have it.
    If someone have the answer please mail me !!([email protected])
    Thanks a lot
    Nicolas Minant

    Ok, so i got it working as below. putting the details steps for someone to refer (or may myself in future if i forget)
    - Install Perl DBI module
    - install below 3 rpm for oracle instant client from (http://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html)
    oracle-instantclient11.2-basic-11.2.0.3.0-1
    oracle-instantclient11.2-devel-11.2.0.3.0-1
    oracle-instantclient11.2-sqlplus-11.2.0.3.0-1
    I am using 64 bit linux box, so choose your RPM accordingly.
    - set below variables:
    LD_LIBRARY_PATH=/usr/lib/oracle/11.2/client64/lib
    ORACLE_HOME=/usr/lib/oracle/11.2/client64
    also add ORACLE_HOME to your PATH variable
    - download DBD::Oracle ver 1.44 from
    - untar the module and run below commands in given sequence:
    perl Makefile.PL
    make
    make install
    DONE !!!
    Issues I had faced were due to the wrong LD_LIBRARY_PATH. i had set it to "/usr/lib/oracle/11.2/client64" whereas the correct value is "/usr/lib/oracle/11.2/client64/lib"
    certainly, this was a great learning for a newbie like me. i have spent 8 years as Linux sysadmin and have done a lot of perlscripting bt never had to deal with oracle stuff ever. hence this was a learning for me.
    Thanks everyone for your responses. you guys pushed me to right direction. thanks for the Great HELP.

  • How to configure oracle and ms-access db

    Hi All,
    I have a requirement to push data from the oracle to ms access. My oracle database is on the Unix server and ms access is on my local desktop. Is there a way to configure if so how to configure both the db? Basically I am wanted to make the ms access visible to oracle so that I can use the Heterogeneous package. Please let me know if there are any different ways.
    my oracle version is
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit
    ms-access 2007
    Thanks in advance.

    Hi,
    You could use the Database Gateway for ODBC (DG4ODBC) to do this. It uses a third party ODBC driver to make the connection to MS-Access so the best option would be to install it on the Windows machine where Access is running and use the Microsoft Access driver.
    Otherwise, you could install on Unix where Oracle is running but I don't think there is third party Access driver for Unix.
    The following note available in My Oracle Support describes the setup on Windows -
    Note.466225.1 How to Setup DG4ODBC (Oracle Database Gateway for ODBC) on Windows 32bit
    You should install the latest 11.2 DG4ODBC and this note has pointers to the download sites -
    Note.1083703.1 Master Note for Oracle Gateway Products
    DG4ODBC can be installed standalone without an RDBMS being installed.
    Regards,
    Mike

  • Oracle 8i equivalent of $sth- {mysql_insertid} w/Perl DBI?

    What is the easiest way to obtain the value of an auto-incrementing column following an insert using Perl DBI with Oracle 8i? I've done it for years under MySQL using my($lastInsertID)=$sth->{mysql_insertid}, but that's obviously MySQL-specific (if only because of the name).

    : 2 - can't use PERL in o/s because O/S is Linux
    and clients cgi's
    : use DBI:DBD:Oracle. There doesn't seem to be a
    DBD for DBI for
    : Oracle 8i for Linux. I have succeeded in
    making our scripts talk
    : to an Oracle 8.0.5 database, but get many
    errors when connecting
    : to 8.1.5 Does anybody out there have DBD for
    DBI for 8.1.5 for
    : linux RH 5.2 ????
    DBD::Oracle should work just fine with 8.1.5.
    What's so special about 8.1 vs 8.0? I beleive
    OCI was not changed. Anyway, it works here. What
    version did you try? Latest is 1.03, AFAIK. If
    you have errors you probably should report them
    back to the author: Tim Bunce
    <[email protected]>
    Cheers,
    Ivan
    null

  • Errors connecting to Oracle via perl DBI

    Hi List.
    I've installed Oracle on my linux box (SuSE 10) and I've installed
    DBD::Oracle.
    I can run sqlplus as the oracle user however when I try and connect via
    DBD::Oracle in a perl script I always get errors as follows:
    connect string =
    my $dbh = DBI->connect("dbi:Oracle:ORCL", 'oracle', 'oracle' );
    error =
    DBI connect('ORCL','oracle',...) failed: ORA-12541: TNS:no listener (DBD
    ERROR: OCIServerAttach) at ora1.pl line 7
    Connection Failed...
    connect string =
    my $dbh = DBI->connect("dbi:Oracle:HOST=linux.site;SID=ORCL;PORT=1522",
    'oracle', 'oracle' );
    error =
    DBI connect('HOST=linux.site;SID=ORCL;PORT=1522','oracle',...) failed:
    ORA-12541: TNS:no listener (DBD ERROR: OCIServerAttach) at ora1.pl line 7
    Connection Failed...
    Maybe I have the connect string wrong?
    Below is a listing of my code, and my tnsnames.ora:
    Thanks in advance for your help.
    ############ code listing ################ #!/usr/bin/perl
    use DBI;
    print "Started\n";
    my $dbh = DBI->connect("dbi:Oracle:HOST=linux.site;SID=ORCL;PORT=1522",
    'oracle', 'oracle' );
    if ($dbh) {
    print "Connected...\n";
    else {
    print "Connection Failed...\n";
    exit;
    my $qry = $dbh->prepare("select count(*) from dba_tables");
    $qry->execute();
    my @data = $qry->fetchrow_array();
    print "[$data[0]] [$data[1]] [$data[2]]\n";
    exit;
    ######### tnsnames.ora listing #####################
    # Generated by Oracle configuration tools.
    LISTENER_ORCL =
    (ADDRESS = (PROTOCOL = TCP)(HOST = linux.site)(PORT = 1522))
    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = linux.site)(PORT = 1522))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC2))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    )

    'TNS: no listener' usually means that your listener hasn't been started. Try a lsnrctl status to find out whether your Listener is actually running.

  • Ms access  and ms excel to oracle

    Hi,
    The client has some excel files and ms access.i don't have proper idea about that.
    1,how to convert from these to oracle using oracle migration workbench
    or
    covert the migration by plsql procedures?
    2,which method is best method
    extract the data from msaccess or ms excel and put into flat file then load into oracle.
    or
    extract the data from msaccess or ms excel and put into staging table then load into oracle.
    Edited by: user3266490 on Mar 12, 2010 11:17 AM

    2,which method is best method
    extract the data from msaccess or ms excel and put into flat file then load into oracle.
    or
    extract the data from msaccess or ms excel and put into staging table then load into oracle.NO
    Both Excel & MSAccess can directly interface to Oracle via ODBC

  • 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

  • [Microsoft][ODBC driver for Oracle]Syntax error or access violation

    Hi,
    When I am trying to connect to Oracle 8.1.6 database using Microsoft ODBC driver for Oracle. The connection is established.
    But while creating CallableStatement, I am getting error "[Microsoft][ODBC driver for Oracle]Syntax error or access violation".
    What I need to do to resolve this problem.
    Raj

    Hi Satish
    It could be an issue with the driver.
    You can try with the OLEDB n Oracle native connection to test if the issue persists.
    Also you can refer to the [Troubleshooting Database Connectivity for Crystal Reports|http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/d05b3bb7-0f28-2c10-4ea3-84dbdc4e414e&overridelayout=true]
    Hope this helps!!
    Regards
    Sourashree

  • 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

Maybe you are looking for