ODBC - Bind int 64 value (Oracle 10g)

I have a problem, since that in a documentation given on http://docs.oracle.com/cd/B19306_01/server.102/b15658/app_odbc.htm
sais that SQL_C_UBIGINT and SQL_C_SBIGINT identifiers are not supported, is there any ather way to bind int 64 value to my prepared statement?
For examle I trying to write number 1162040854047621120 in to my column which is type NUMBER(38, 0), I can not find nowhere example with prepared statement, which constants I need to pass SQLBindParameter function?

Well, here's what I'd check anyway..
1) get Process Explorer from http://sysinternals.com
2) make a mysql connection, get a list of dll's loaded (include the location and version columns in the lower pane output)
3) close that, then make an ora odbc connection, get a list of dlls.
4) close that, then make a mysql connection followed by an ora odbc connection, get a list of dlls
5) compare the lists of loaded dlls. In particular, the difference between #3 and #4, is there a dll dependency that gets loaded by oracle's odbc that comes from a different location when you've opened a mysql connection first?
May or may not help, but might turn up a difference to help point you in a direction.
Greg

Similar Messages

  • Cannot get ODBC data source to talk to Oracle 10g for Windows

    Problem description
    I recently installed Oracle 10g on my laptop computer, which is running Windows 7. Everything went smoothly except for one crucial item: The ODBC data source I added keeps returning this error when I click the "Test Connection" button:
    Testing Connection
    Unable to connect
    [Microsoft][ODBC Driver Manager] Driver's SQLAllocHandle on SQL_HANDLE_ENV failed.
    I was using the following ODBC driver
    Oracle in OraDb10g_home1 (TNS Service Name = ORCL and User ID = scott)
    This type of error happened, in one form or another for the three other Oracle drivers I have on my machine
    Microsoft ODBC for Oracle
    WinSQL Oracle
    WinSQL Oracle Wire Protocol
    These services are currently running (status = Started)
    OractDBConsoleorcl
    OracleMTSRecoveryService
    OracleOraDb10g_home1iSQL*Plus
    OracleOraDb10g_home1TNSListener
    OracleServiceORCL
    (NOTE: I entered the foregoing information by hand, since I was not able to copy-and-paste it. So be aware that there is a small possibility of a minor typo in case you plan to cut-and-paste it.)
    If requested, I can provide the contents of these files
    tnsnames.ora
    sqlnet.ora
    listener.ora
    Other installations on the same computer
    ODAC (ADO data provider for Oracle)
    SQL Server 2009 Express
    .NET 4
    Visual Studio 2010
    Any help would be greatly appreciated!

    OK, I went ahead and upgraded to Windows 7 Professional and I STILL get the same error messages when trying to get the Oracle ODBC driver to talk to Oracle 10g. Here are some screen shots that show what happened:
    1) Select ODBC driver: http://yfrog.com/f3driverselectionp
    2) Configure driver: http://yfrog.com/ccoracleodbcfororaclep
    3) Test connection: http://yfrog.com/1goracleodbcfororacletestp
    I also get the following error when I try to run SQL*Plus from the line command, even with no parameters:
    C:\Users\Bruce>sqlplus
    SP2-1503: Unable to initialize Oracle call interface
    SP2-0152: ORACLE may not be functioning properly
    Any suggestions as to how I might to go about diagnosing (and fixing) this problem?
    Thanks,
    Bruce

  • Reading BLOB from SQL Server 2005 using DB Link from Oracle 10g

    Hi All,
    I am trying to read a table's data from SQL Server 2005 using ODBC DB Link created in Oracle 10g (10.2.0.3/4) database. I am not using oracle gateway.
    I am able read all data except for the BLOB data from SQL server 2005. It gives error given below when I try to execute query SELECT * from T_TRANSACTION_DATA@sdeslink inside a stored procedure:
    ORA-22992: cannot use LOB locators selected from remote tables
    Kindly help how to read BLOB from SQL server 2005 inside Oracle 10g.
    Best Regards!
    Irfan

    Irfan,
    If you can read the blob data using 10.2 HSODBC then there should be no problem using the 11g gateway.
    I recommend you download the latest version which is 11.2.0.3 available from My oracle Support as -
    Patch 10404530: 11.2.0.3.0 PATCH SET FOR ORACLE DATABASE SERVER
    This is a full version and does not need a previous version to have bene installed. When installing it needs to be in a completlely separate ORACLE_HOME from the existing 11.2 install.
    For the Ora-22992 problem have a look at this note in My Oracle Support -
    Ora-22992 has a workaround in 10gR2 (Doc ID 436707.1)
    Regards,
    Mike

  • Crystal report developer 10 vs. oracle 10g

    Dear all,
    Is there any compatability between crystal report 10 and oracle 10g?
    I setup an ODBC data source connecting to oracle 10g DB which works properly in crystal report 8.5 however not working in crystal report 10.
    Am I missed something?
    Thanks,
    Rachel.

    Install Oracle client on the machine and use the Oracle Server native connection option.
    Alternatively,you may try using some other driver (OraHome or Microsoft Driver for Oracle databse) rom the available choice.
    OLEDB connection can also be tried.
    You may specify the exact error message (and at what stage you are getting it) if the above options do not work or they are not feasible for you.
    Thanks

  • Oracle 10g ODBC driver (ver 10.1.0.2) :  SQLConnect Hangs

    hi,
    We have a Win32 multithreaded app which uses the given 10g driver, but intermittently all the threads hang on SqlConnect.
    After running Adplus the call stack that we get , always point to oranls10. This is the call stack from the last time the server hanged when it tried to do a SQLConnect.The call stack generated by adplus is given below:
    ChildEBP RetAddr Args to Child
    WARNING: Stack unwind information not available. Following frames may be wrong.
    0135f088 612a1833 003ee494 00001399 00000002 ORANLS10!lmsapsc+0x78
    0135f2bc 612a176e 003ee494 00000002 00001399 ORANLS10!lmsagbcmt+0x103
    0135f2f0 612a1722 003ee494 00001399 00000000 ORANLS10!lmsagbcmt+0x3e
    0135f31c 031990f4 003ee494 00001399 00000000 ORANLS10!lmsagbf+0x22
    0135f334 036e0bcf 003ee494 00001399 00000000 oci!lmsagbf+0x24
    0135f360 036bed2f 02675e4c 00000000 00001399 sqora32!SQLTablesW+0x372df
    0135f3b8 036b61c3 02675e4c 0268f418 0267682c sqora32!SQLTablesW+0x1543f
    0135f4f0 036a3b2c 0268f334 02675bcc 00000006 sqora32!SQLTablesW+0xc8d3
    0135f524 4bf8e667 0268f334 0135f65c 00000006 sqora32!SQLConnectW+0xfc
    0135f554 4bf8efed 00000001 0135f65c 00000006 odbc32!SQLInternalConnectW+0xfa
    0135f6a4 4bfa1e5e 00781b28 00782628 00000006 odbc32!SQLConnectW+0x250
    0135f6e0 00397454 00781b28 01d7fffd fffffffd odbc32!SQLConnect+0x140
    01360068 016dc13a 00000005 0136f9d0 0136fa14 libsas!CM_dbopen+0x341
    Since we have been facing this issue for a long time, we decided on making use of the SQL_ATTR_LOGIN_TIMEOUT value before we issue a SQLConnect, but that driver doesn't seem to like that option even though it says its 3.5 compliant
    lRetcode = SQLSetConnectAttr( OD_DBDBC(pCtx),          SQL_ATTR_LOGIN_TIMEOUT,(SQLUINTEGER )10,     SQL_IS_UINTEGER );
    Setup details
    Oracle 10g Release 1 Enterprise database server
    App has been built using VC++6 and is running on Win2003 Enterprise Server
    Our analysis has shows that the network was fine as other apps were able to connect to the database at that time
    Question
    1. Is this a Driver related issue? Because when we were using Merant ODBC driver, everything seems to be working fine!
    2. Is there some patch that is out there which might resolve this issue?
    If you all folks could help or provide some kind of advice , i would really appreciate that.
    regards,
    GG

    Well, do you have a code example that causes it? Don't take this the wrong way, but I've seen more than a few badly written multi-threaded applications which do nothing but corrupt memory and use handles in non-threadsafe ways; all of which cause issues which rear their ugly heads in various odd ways. It may also be an Oracle bug, but comparing two different drivers does not mean it's not your application causing the crash as well.
    If you could provide a quick little code sample which causes the issue, I'll take a look at it for you.

  • How to change timeout parameter value in Oracle 10g R2

    Anyone knows how to change timeout parameter value in Oracle 10g Database R2?

    Waheed Azhar wrote:
    actually i am getting ORA-01013 exception which directly relates to the timeout value but i think it's hidden parameter...What makes you think it's a hidden parameter?
    A search of MetaLink for that error turns up a number of hits, most of which a very situational specific. Exactly what are you doing when you get this error? Are you connecting over an ODBC connection? Are you getting it on a connection request? At db shutdown? During a long-running query?

  • MS Visual Studio 2005 + Oracle 10g = Cannot connect to ODBC error: 12154

    Hi there!
    I've read so many threads of same kind of problems but always some key elements seems to be missing so I cannot solve my problem with the solutions in those threads. So, I'll do my own.
    Our environment is...
    We have Oracle 8 database with all the data that we have. Now we have our new server, SQL Server 2005 installed and I am trying to transfer data from Oracle to SQL using MS Visual Studio 2005 using available ODBC drivers. System is Windows 2003 64Bit on intel based hardware.
    Current installations and settings
    I have installed Oracle 10g 32bit and 64bit to separate foldes. Then I made tnsnames and sqlnet files with right settings to specified folders and tested connection with tnsping <servername> command.
    Both, 64bit and 32bit connections are working. (Used 32bit CMD for 32bit connection test)
    ODBC
    I added Microsoft ODBC for Oracle as 32bit driver and Oracle 10g driver for 64bit environment as ODBC driver.
    Both environments uses same ODBC names: Myserver and Mytestserver
    Debug
    First, when I only had 64bit version of ODBC, I had a warning which said that I am using incompatible version of ODBC driver. Then I read from here that I can install 32bit client also and use drivers from that on 32bit ODBC environment and get rid of that message.
    Tried to connect Oracle DB with SQL-Plus and it works.
    Visual studio 2005 SP2
    I have tried to use .Net Providers/Oracle Client dataprovider and .Net Providers for OleDB/Microsoft Old DB for Oracle and also .Net Providers for OldDB/Oracle provider for OldDB
    Frist two gives me an error: ORA-12154 TNS: Could not resolve the connect identifier specified
    Last one says that OraOldDB.oracle.1 is not registered on local machine
    I have absolutily no idea what I can try next?
    Anyone who has more ideas? Suggest anything. I might have tried that already, but give a shot anyway. :)
    Message was edited by:
    user640570

    Hi,
    From where you got Oracle 10g driver for 64bit environment as ODBC driver. I am searching for the same.
    Are you got solution. I am facing same problem.
    Thanks,
    Vijay
    Edited by: user3976154 on Sep 6, 2008 5:12 PM

  • Access 2007 ODBC connect to Oracle 10g

    I have configured MSAccess 2007 on my laptop with a ODBC data source to my Oracle Database and I can link to tables in the Oracle database and everything works.
    I have placed the Access Database on a 64 bit server running Window 2003 r2 Enterprise x64 edition.
    I have both the 32 bit Oracle 10g client and the 64 bit client installed on the machine.
    I have configured a 32bit ODBC data source using the 32 bit Oracle ODBC driver.
    When I click on the test connection button while setting up the data source it reports "Connection Successful"
    I have configured the registry entires (for 32 bit and 64bit) with TNS_ADMIN =the location where we have our sqlnet.ora and tnsnames.ora files.
    These files were configured to support the applications which run on this same server and they all function properly.
    When I attempt to create a link table in Access, I select the datasource and I enter the password I receive an ORA-12154 error.
    Any suggestions ?
    Thank You

    user7378475 wrote:
    I have configured MSAccess 2007 on my laptop with a ODBC data source to my Oracle Database and I can link to tables in the Oracle database and everything works.
    I have placed the Access Database on a 64 bit server running Window 2003 r2 Enterprise x64 edition.
    I have both the 32 bit Oracle 10g client and the 64 bit client installed on the machine.
    I have configured a 32bit ODBC data source using the 32 bit Oracle ODBC driver.
    When I click on the test connection button while setting up the data source it reports "Connection Successful"
    I have configured the registry entires (for 32 bit and 64bit) with TNS_ADMIN =the location where we have our sqlnet.ora and tnsnames.ora files.
    These files were configured to support the applications which run on this same server and they all function properly.
    When I attempt to create a link table in Access, I select the datasource and I enter the password I receive an ORA-12154 error.
    Any suggestions ?
    Thank YouProbably looking at the wrong tnsnames.ora.
    Or your sqlnet.ora doesn't match the other with regard to DEFAULT_DOMAIN
    Or your password has an "@" in it.
    http://edstevensdba.wordpress.com/2011/02/26/ora-12154tns-03505/

  • Oracle 10g RAC: misscount value

    Hi,
    On an Oracle 10g R2 RAC environment for Linux 4.5, I noticed that misscount value returned by crsctl is different from its value in $CRS_HOME/install/rootconfig. Is that acceptable?
    By the way, misscount value had been modified manually by the DBA who insalled the RAC database during installation in $CRS_HOME/install/rootconfig file but he didn't use the crsctl set command.
    Should we still modify it using crsctl set command as well?
    [oracle@rac1 bin]$ crsctl get css misscount
    60
    [oracle@rac1 bin]$ cat /u01/crs/install/rootconfig | grep misscount
    CLSCFG_MISCNT="-misscount 300"

    MISSCOUNT is for network heartbeat between nodes. Please find out the reason why it is set to 60 currently. Current effective value is 60s. This value will be overridden with value in rootconfig file if DBA run root.sh. At this stage, find out why it is set to 60 for your knowledge and information.

  • How to install Oracle 10g ODBC driver  for win 64 bit?

    I need to install Oracle 10g ODBC driver for win 64 bit, I donot know how to do that,
    where to find the driver....
    The driver 10.1.0.5.0 25-Apr-2006 2.1 MB isnot for 64 bits Win server 2003.

    Dear Sir,
    Yes, you can find the Driver here
    http://www.oracle.com/technology/software/tech/windows/odbc/index.html

  • Oracle 10g Express Edition Beta 3 ODBC Driver Always Crashes

    I find that if you set up an ODBC Data Source for Oracle 10g Express Edition on Windows XP SP2 using the "Oracle in XE" driver, anything that tries to access it will crash, even the Windows ODBC Data Source Administratior if you click the "Test Connection" button.
    Having clicked the button, you get a window coming up entitled "Oracle ODBC Driver" with a yellow exclamation mark in it, with no other text in the window except for an OK button.
    If you press OK, then it crashes and goes through the "Please tell Microsoft about this problem" process....

    Hi,
    Thanks for your comment, but I can't get onto the XE forum.
    I found http://www.oracle.com/technology/products/database/xe/forum.html which says:
    Forum registration is possible only by downloading and installing Oracle Database XE. After installation, click on the "Registration" link from the Database homepage.
    However I find that the "Database Homepage" does not exist.
    Choosing the Oracle XE "Go To Database Home Page" takes my browser to http://127.0.0.1:8080/apex which is not available even though my oracle server is running and sqlplus can talk to it.
    There's definitely nothing serving on tcp port 8080, as follows:
    [dcampbel@clevo]~> telnet localhost 8080
    Trying 127.0.0.1...
    telnet: Unable to connect to remote host: Connection refused
    Regards,
    -- Dave

  • Differences between Oracle 10G Client ODBC from 10.1.x to 10.2.x (datatype)

    What differences where implemented to Oracle 10G Clients ODBC connectivity drivers between 10G Release 1 and Release 2 concerning datatypes?
    I have an application that performs a qualified read returning a group of records (this is successful) and then performs a delete on each record read. No errors occur on completion of the application. When using release 1, the records are physically removed. Using release 2 a portion of the same group of records are not removed. The key for the table is a numeric field with six decimal places (not my design). My applications C code defines the field as a DOUBLE.

    I certainly agree that something changed. The question is whether it was a change in function or not. With a lot of these sorts of errors, tracking down the "source" of the error involves finding a change in a piece of code that allowed what was always possible to actually occur. That is, you may have two pieces of code that are functionally identical but that end up allowing the sorts of "round off" errors that are always possible when using doubles. The driver might, for example, now be going down a code path where it shifts a number to the right or left rather than dividing or multiplying by 2, which may make this sort of thing more likely. Functionally, given that doubles don't guarantee infinite precision, these operations are identical, but one may be significantly more likely to cause problems.
    Is your application using the ODBC API directly? Or is it going through a higher-level API? If you are going through ODBC directly, you might look to see whether the data types that are being returned by the driver to your code are the same across driver versions.
    Justin

  • ODBC Error while Siebel Server try to connect to Oracle 10G

    We have managed to get through with the configuration of siebel server on HP Unix. However before we get to the Database configuration, we are encountering errors with ODBC connection to oracle 10g database. We are able to connect to oracle using sql plus but odbc connection is failing. We verified for patches, missing files, directory access rights - but no clue as of now.
    Our error says:
    Logging into "ENTSIA_DEV_DAN" as "sadmin"....
    /user/lib/hpux32/dld.so: Unable to find library 'libclntsh.so'.
    ODBC error IM0003 in SQLConnect:
    (DataDirect){ODBC lib} specified driver could not be loaded
    Unable to login using specified odbc parameters
    This has become a show stopped for us and we are strugging with this for the past three days without much direction.
    Any help is greatly appreciated.
    Thanks.

    Hi,
    I guess your DataDirect Driver which gets registered during Database Configuration has some problems.
    Can you check whether the DSN is using the proper Driver?
    Also, the username through which you are logging in to start Siebel Services must have proper rights.
    Many times on Windows platform i have noticied this error in ODBC due to improper user rights. If the rights are not proper, the DataDirect Driver fails to get loaded & throws similar error.
    Regards,
    Shalabhsneha

  • Oracle 10g ODBC driver with Windows 7 32 bit connecting to Excel

    Hi Everyone,
    I'm having an issue connecting to our oracle 10g database (64 bit system) from a 32 bit windows 7 installation running excel 2010/2007 using odbc drivers. Our excel spreadsheets worked without issue in windows xp.
    In windows 7 I have been able to install the odbc driver via the following method:
    1. Download the oracle 'basic' client and oracle 'odbc' client from www.oracle.com and extract the contents:
    instantclient-basic-win32-10.2.0.3-20061115
    instantclient-odbc-win32-10.2.0.3-20061115
    2. Create a folder 'oracle' and place the instantclient_10_2 folder inside.
    3. Ensure all the basic and odbc files reside in this folder.
    4. Create a 'network' folder within instantclient_10_2
    5. Create an 'admin' folder within 'network'
    6. Create sqlnet.ora and tnsnames.ora files within the 'admin' folder:
    7. Run 'obdc_install' within the instantclient_10_2 folder
    8. Download and run the oracle odbc driver exe file from www.oracle.com (ORA10203.exe)
    9. Go to Control Panel -> Administrative Tools -> Data Sources and create a new System DN
    This allows excel spreadsheets connecting ONLY to oracle to function.
    Unfortunately some of our spreadsheets connect to both a MySQL database as well as oracle. Spreadsheets connecting only to MySQL also function correctly, however, as soon as the vb associated with a spreadsheet includes a mysql call followed by an oracle call the spreadsheets fail. In Excel 2007 excel crashes completely everytime. In Excel 2010 the mysql data is generated, then when the script hits to oracle odbc connection there is a long pause, the oracle ODBC driver connect pops up requesting a username/password (this didn't happen in xp), then the data source selection pops up, then the username/password connect screen pops up again, and finally it fails with a runtime error '1004' General ODBC error.
    If you look at the VB script it's failing at the Refresh BackgroundQuery statement in the ODBC connection block:
    With Worksheets("Oracle1").QueryTables.Add(Connection:= _
    "ODBC;DSN=Oracle_ODBC;UID=user;PWD=password;SERVER=ORACLE_LINUX;", _
    Destination:=Worksheets("Oracle1").Range("A1"))
    .CommandText = strSql
    .Name = "Oracle1_data"
    .FieldNames = True
    .RowNumbers = False
    .FillAdjacentFormulas = False
    .PreserveFormatting = True
    .RefreshOnFileOpen = False
    .BackgroundQuery = True
    .RefreshStyle = xlOverwriteCells
    .SavePassword = True
    .SaveData = True
    .AdjustColumnWidth = True
    .RefreshPeriod = 0
    .PreserveColumnInfo = True
    .Refresh BackgroundQuery:=False
    End With
    Does anyone know how to get around this? It's very important!!
    Also if you try to edit the oracle ODBC connections in Control Panels -> Administrative Tools -> Data Sources, ODBC crashes 95% of the time.
    Advice greatly appreciated!!

    Well, here's what I'd check anyway..
    1) get Process Explorer from http://sysinternals.com
    2) make a mysql connection, get a list of dll's loaded (include the location and version columns in the lower pane output)
    3) close that, then make an ora odbc connection, get a list of dlls.
    4) close that, then make a mysql connection followed by an ora odbc connection, get a list of dlls
    5) compare the lists of loaded dlls. In particular, the difference between #3 and #4, is there a dll dependency that gets loaded by oracle's odbc that comes from a different location when you've opened a mysql connection first?
    May or may not help, but might turn up a difference to help point you in a direction.
    Greg

  • Can't Create the ODBC connection for Oracle 10g

    Hi,
         I am working with Oracle 10g Database Release 2 in windows XP professional. I am trying to create an ODBC connection for oracle but become failure because its generating the following errors:
    system error code 998
    could not locate the setup or translator library
    Please help me how can I solve this problem and create the ODBC connection for oracle 10g database.
    Best Regards,

    mwz wrote:
    I am trying to create an ODBC connection for oracle but become failure because its generating the following errors:
    system error code 998
    could not locate the setup or translator libraryThe symptom described is typical of an incorrect system env PATH setting (used by the data source admin tool), compared to that of the Oracle Home (specifically, path $OH/bin). The odbc driver config routine will search directories listed in PATH variable for necessary libraries (Client dll's). If some library fails to load (from e.g. oraoci*.dll or oraclient10.dll) it will probably error out, as in your case.
    Are you creating the odbc dsn on the databse server host or on some other machine? I.e. are you using the db host as a client or not?

Maybe you are looking for

  • How to improve upload speeds with new Airport Extreme?

    Hi! Just plugged in a new Airport Extreme to replace a BT HomeHub 3.0.  The wi-fi download speeds have generally increased over a wider range in the house but the wi-fi upload speeds have dropped to under 1Mbps. Speeds to laptop linked via ethernet a

  • Web Content overlay crashing! Help?

    Everytime I try to use the Web Content overlay, InDesign CS 5.5 crashes. Working in Mac OS 10.6.8, for what it's worth. I have a local html file that should display an RSS feed. When I try to bring it into my InDesign file with the Web Content overla

  • Lost all music on ipod but the space is still being used

    I have seen this posted already and i apologize for a repeat. Those posts didnt have any useful info though. My problem: I am in France staying at a friends house. I brought my new 60 gig ipod video with me and was charging it on his laptop. I believ

  • Creating accessibility forms

    Hello, i´m using Livecycle designer/Formserver 7.2. I need to create accessibility form conforming to the standards (A, AA or C). Can it be done using this tools? How can I validate the conformidity of my forms? Any tool? Thank you

  • InDesign CS4 missing fonts

    I'll try this again.  After upgrading from CS2 to CS4, there are many fonts missing from my system, in particular the Warnock Pro family.  How do I get it back?