Error connecting with OCCI in Oracle 11G

Hi,
I am trying to access the Oracle 10.2.0.1 database using Oracle 11.1.0.6 Client.
I am able to make connection in SQL Plus window.
But when I am trying to connect to the DB with Occi I ran with this problem in Oraocci11.dll
Unhandled exception at 0x1001e604 in Occi_8.exe: 0xC0000005: Access violation reading location 0x32869770.
Please suggest what is to be done in this regard.
Thanks in advance
kameswara Sarma

Please check if you are using the correct compilers (Installation guides) and see if you need anything from here:
[http://www.oracle.com/technology/tech/oci/occi/occidownloads.html]

Similar Messages

  • Error connecting with Few versions of Oracle

    I wrote an MFC based application in Visual C++ to make the connection with Oracle Database. ADO Control is used to make connection. Following is the Connection String:
    "Provider=MSDAORA;User Id=Scott;Password=Tiger;Data Source=(DESCRIPTION =(ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521)))(CONNECT_DATA =(SID = edox)));"
    I am able to connect with few versions of oracle like 8.0.5.0.0 and 9.0.1.1.1
    But few versions are not accepting this connection string. Like Oracle 9i, Release 1.0.2. What could be the reason of this problem?
    Another thing that noticed with 8.0.6.0.0 is that when i start the oracle service, and try to connect, it refuces connection, but next time it accepts the connection request...

    Another thing i noticed is if i connect the SQL+ software, it continues working. But if i close the session of sql+, my other application stops working...Strange.

  • Ora 24960 exception with VC9 and Oracle 11g - 11.1.0.6.0 client

    Hi,
    We have developed a OCCI client application using 10g express edition and visual studio 2003. It was working fine. Now we have migrated to 11g (11.1.0.6.0) client with visual studio 2008. VC version 9. We have migrated all .dll and .lib files based on oracles following link.
    http://www.oracle.com/technology/tech/oci/occi/occidownloads.html
    Now while trying to make connection it's throwing ORA 24960 exception. (the attribute OCI_ATTR_USERNAME is greater than the maximum allowable length of 255)
    but the attribute length is very less.
    connection = env->createConnection (oraUser,OraPass,conne);
    Anybody can help immediately please?

    Hi,
    Are you compiling in debug mode and using the Instant Client SDK by chance? If so, I suggest taking a look at My Oracle Support Note:747933.1 (ORA-24960 Error When Trying to Connect in Debug Mode With OCCI Instant Client). Essentially the issue is that the OCCI files included with Instant Client SDK do not include the oraocci11d.lib library.
    Regards,
    Mark

  • Trying to use ODAC on 64 bit Windows 7 with 64 bit Oracle 11g?

    I have been trying to connect to Oracle 11g with VS 2010 .NET Framework 4.0 on Windows 7 for about 5 days with no luck.
    Background: VS 2010, .Net Framework 4.0 and Oracle 11g 64 bit are running on the same maching.
    I have found that are two versions of the 64 bit ODAC.
    1) The XCopy bersion and 2) the Oracle Universal Installer version.
    To install the XCopy version, I right click on the cmd window, change to the folder where my xCopy install is and type install.bat all d:\oracle\myoraclehome odac just like the documentation says. The files are created in my Oracle home and there are registry keys under HKLM\Software\Oracle like the documentation says. I don't have a clue how to prove weather it's doing anything usefule though. When I go to VS 2010, I don't have System.Data.Oracleclient of Oracle.DataAccess.client or any other namespace that can talk to Oracle. How would I test the XCopy version and see if it is actually able to do anything?
    I like the Windows Installer version much better and set it up just like the readme.txt said to. I used the Oracle Data Access Components for Oracle Client 11.2.0.2.1. I wound up with two oracle homes, one for my server and one for the ODAC install. I copied tnsnames.ora and sqlnet.ora over to the odac client home's Network\Admin folder. From my server's oracle home, I ran sqlplus and was able to successfully login to the server. I liked the fact that it came with sample code and I saw that the Oracle.DataAcces.client dll was added as a project reference. I ran the samples with my userid and password and got a TNS Adapter error.
    Since the Oracle server is on the same server that everything else is on, I ASS-U-ME that I would want to install the Oracle Data although I didn't see it documented anywhere. I tried creating it in a different directory, but it says it must be installed on top of an existing oracle home. I tried creating it in my oracle home and got err message OUI-10044 - The selected oracle home location already contains an oracle home or APPL_TOP created while running a different OS.
    Can someone tell me how to correctly install either one of these and test it to make sure it is working?
    TIA I know someone on planet Earth must be using the 64-bit odac to connect to Oracle,
    George

    George,
    It sounds like I have the same setup as you and I am no expert on Oracle install issues but VS 2010 is 32bit. You need to install the 32 bit version of ODAC to make VS all happy. I was under the impression ther was no 64 bit version of ODAC? Then again I am no expert on the topic.
    I then installed the 64 bit xcopy version, decided upon the location for tnsname and then defined TNS_ADMIN. All works well. I create most of my exe's as AnyCPU and Windoze/Oracle seems to figure out what to do.
    r,
    dennis

  • Can't connect to MySQL from Oracle 11g R1

    Hello Oracle's guru.
    Sorry for my English it's not my native langauge
    Enviroments: Oracle 11g R1, Windows 7, ODBC Driver 5.1.8
    I have a some problem with creation gateway to connection to MySQL, and I hope somebody can help me.
    So,
    1) ODBC name - MYSQLDSN
    2) initMYSQLDSN.ora
    # This is a sample agent init file that contains the HS parameters that are
    # needed for the Database Gateway for ODBC
    # HS init parameters
    HS_FDS_CONNECT_INFO = MYSQLDSN
    HS_FDS_TRACE_LEVEL = 0
    3) listener.ora
    # listener.ora Network Configuration File: E:\app\voxa\product\11.1.0\db_1\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 0.0.0.0)(PORT = 1521))
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    SID_LIST_LISTENER=
    (SID_LIST=
    (SID_DESC=
    (SID_NAME=MYSQLDSN)
    (ORACLE_HOME=E:\app\voxa\product\11.1.0\db_1)
    (PROGRAM=dg4odbc)
    4) tnsnames.ora
    # tnsnames.ora Network Configuration File: E:\app\voxa\product\11.1.0\db_1\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    CXWH =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 0.0.0.0)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = CXWH)
    MYSQLDSN =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 0.0.0.0)(PORT = 1521))
    (CONNECT_DATA =(SID = MYSQLDSN))
    (HS = OK)
    Then I trying to connect to MySQL using sql*plus:
    C:\Windows\system32>sqlplus
    SQL*Plus: Release 11.1.0.6.0 - Production on Ср Июн 1 12:13:39 2011
    Copyright (c) 1982, 2007, Oracle. All rights reserved.
    login: system
    pass:
    Connect to:
    Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> create public database link MYSQLDSN
    2 connect to DEMO identified by "DEMO" using 'MYSQLDSN';
    Channel was created
    SQL> select * from items@MYSQLDSN;
    select * from items@MYSQLDSN
    Error in line 1:
    ORA-28500: connection with ORACLE with other system return message:
    [MySQL][ODBC 5.1 Driver][mysqld-5.5.12]You have an error in your SQL syntax;
    check the manual that corresponds to your MySQL server version for the right
    syntax to use near
    '"ITEMS_KEY",A1."ITEM_NAME",A1."ITEM_CATEGORY",A1."ITEM_VENDOR",A1."ITEM_SKU",A1
    .' at line 1
    ORA-02063: предшествующий 2 lines из MYSQLDSN
    If I trying create new ODBC mobule via OWB, I had next error:
    [MySQL][ODBC 5.1 Driver][mysqld-5.5.12]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"DUAL"' at line 1
    ORA-02063: предшествующий 2 lines из OWB_56
    What I do wrong? Please help me

    Hi,
    You can download the 11.1.0.7 patchset from My Oracle Support -
    support.oracle.com
    as patch 6890831.
    Once logged in click on 'Patches and Updates' and enter the patch number as 6890831 and choose whichever platform you are running.
    the readme explains how to apply the patch to an existing 11.1.0.6 install.
    The url you posted is only for complete product installs, but 11.1.0.7 is only a patchset that must be applied to an existing install.
    Regards,
    Mike

  • Error 1114 on XP+SP2, Oracle 11g

    My environment:
    Server: Linux, Oracle Enterprise 5.3. Oracle 11g, upgrade to 11.07 by a package download from web site, name as p6890831_111070_Linux-x86-64.zip.
    Client: XP+SP2, 11.06, upgrade to 11.07 b a package download from web site, name as p6890831_111070_Win32. I don't know the original zip name, just can see the folder name from our file server.
    There are 6 clients at our lab, all them are OK, until I install a new OS(English) XP+SP2 in D disk at 2 clients. Both the two clients fail to create an ODBC connection now, but others still are OK (the left 4 clients OS is same with the 2 clients, that's say, XP(En)+SP2). I still can connect to my Oracle Serve by SQL Developer at the 2 client now, just ODBC driver doesn't work.
    I can see an ODBC Driver from Control Panel->Administrative Tools->Data Sources(ODBC), as the following,
    Oracle in OraOdac11g_home1 11.01.00.07
    but when I try to add a DSN, I can see an error said,
    The setup routines for the Oracle in instantclient11_1 ODBC driver could not be loaded due to system error code 126.
    When Connect to Oracle from my application software, I can see a messag said
    Error Cannot Load Resource File sqresus.dll, after click OK button, another error message pop up,
    ERROR[IM003] Specified driver could not be loaded due to system error 1114 (Oracle in OraOdac11g_home1).
    I have download the latest ODBC Driver from web site, but these files date and size in the package are same with existing. Anyway, I install it, then I can see a new ODBC driver from Data Sources(ODBC), name as
    Oracle in instantclient11_1 11.01.00.07
    after restart, I try to create a DSN, still failed.
    By checking HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\, I can see both driver and setup value are
    "D:\\app\\Administrator\\product\\11.1.0\\client_1\\SQORA32.DLL"
    it is my installation path, and I can see the DLL under the directory.
    By the way, current PATH is
    PATH=D:\app\Administrator\product\11.1.0\client_1;D:\app\Administrator\product\11.1.0\client_1\bin;D:\WINDOWS\system32;D:\WINDOWS;D:\WINDOWS\System32\Wbem;%ORACLE_HOME%\bin;%ORACLE_HOME%\bin
    anyone can give me a kindly help?
    Thanks in advance.
    Edited by: user11083815 on Oct 7, 2009 10:00 PM

    My environment:
    Server: Linux, Oracle Enterprise 5.3. Oracle 11g, upgrade to 11.07 by a package download from web site, name as p6890831_111070_Linux-x86-64.zip.
    Client: XP+SP2, 11.06, upgrade to 11.07 b a package download from web site, name as p6890831_111070_Win32. I don't know the original zip name, just can see the folder name from our file server.
    There are 6 clients at our lab, all them are OK, until I install a new OS(English) XP+SP2 in D disk at 2 clients. Both the two clients fail to create an ODBC connection now, but others still are OK (the left 4 clients OS is same with the 2 clients, that's say, XP(En)+SP2). I still can connect to my Oracle Serve by SQL Developer at the 2 client now, just ODBC driver doesn't work.
    I can see an ODBC Driver from Control Panel->Administrative Tools->Data Sources(ODBC), as the following,
    Oracle in OraOdac11g_home1 11.01.00.07
    but when I try to add a DSN, I can see an error said,
    The setup routines for the Oracle in instantclient11_1 ODBC driver could not be loaded due to system error code 126.
    When Connect to Oracle from my application software, I can see a messag said
    Error Cannot Load Resource File sqresus.dll, after click OK button, another error message pop up,
    ERROR[IM003] Specified driver could not be loaded due to system error 1114 (Oracle in OraOdac11g_home1).
    I have download the latest ODBC Driver from web site, but these files date and size in the package are same with existing. Anyway, I install it, then I can see a new ODBC driver from Data Sources(ODBC), name as
    Oracle in instantclient11_1 11.01.00.07
    after restart, I try to create a DSN, still failed.
    By checking HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\, I can see both driver and setup value are
    "D:\\app\\Administrator\\product\\11.1.0\\client_1\\SQORA32.DLL"
    it is my installation path, and I can see the DLL under the directory.
    By the way, current PATH is
    PATH=D:\app\Administrator\product\11.1.0\client_1;D:\app\Administrator\product\11.1.0\client_1\bin;D:\WINDOWS\system32;D:\WINDOWS;D:\WINDOWS\System32\Wbem;%ORACLE_HOME%\bin;%ORACLE_HOME%\bin
    anyone can give me a kindly help?
    Thanks in advance.
    Edited by: user11083815 on Oct 7, 2009 10:00 PM

  • Establish 32-bit ODBC connection to 64-bit Oracle 11g database

    Hi Everyone,
    Just to set the scene:
    PC with Windows 2003 server x64 OS installed, Oracle 11g 11.1.0.7 64-bit installed and MS Office 2007 installed.
    I am looking for advice on the best way to establish an ODBC link so that MS Access 2007 (32-bit) can connect to the Oracle 11g (64-bit) database.
    There are known issues, see [http://support.microsoft.com/kb/942976|http://support.microsoft.com/kb/942976] (which I have hit) when attempting to use a 64-bit ODBC DSN within MS Access 2007. This means that I need to setup and install an Oracle 11g 32-bit ODBC driver to be used against the Oracle 11g database (TNS listener also running 64-bit).
    Any thoughts on the best approach I should take to do this?
    Regards,
    Leigh.

    The more information section of the MS support article doesn't give me much to go on other than to explain the differences in how user and system DSNs are displayed and managed between the 2 different bit versions of ODBC administrator and how this information is stored in the different registries (64-bit and WOW64).
    I have been able to install 32-bit Oracle11g instantclient and its ODBC driver successfully and then in turn create the 32-bit ODBC DSN, however I am unable to connect to the 64-bit database when I attempt to test the DSN. I have updated the Windows PATH environment variable to include both the path of the Oracle11g DB server and instantclient homes as well as creating a TNS_ADMIN environment variable to point to the location of the Oracle11g TNSNAMES.ORA and the 64-bit 11g listener. However despite this I still get the error when testing the DSN:
    Unable to connect
    SQLState=S1000
    [Oracle][ODBC][Ora]ORA-12541: TNS:no listener

  • Create PDF report with APEX and Oracle 11g doesn't work

    Hi everyone,
    I have a problem with the downloading of PDF reports from APEX with Oracle 11g.
    When I try to download a PDF, Acrobat Reader says it can not open the file.
    I have done the same test in an environment with APEX and Oracle 10g and it works perfectly.
    Does anyone know if there is a known bug for version 11g.
    Thank you very much.

    Hi Munky,
    I open the generated file the Notepad++ I can read the next message:
    *<HTML><HEAD><TITLE>500 Internal Server Error</TITLE></HEAD><BODY><H1>500 Internal Server Error</H1>OracleJSP:*
    An error occurred. Consult your application/system administrator for support. Programmers should consider setting the init-param <code>debug_mode</code> to "true" to see the complete exception message.</BODY></HTML>
    I have not idea can I solve the problem.
    Have you got any solution for this problem??
    Thank you so much.
    Victor Muñoz.

  • Error connection with a database in remote node

    When I try to start a dialog instance does not detect that the database is in a remote server is booted:
    "Checking SAP R/3 PAP Database
    Database is not available via /usr/sap/PAP/SYS/exe/run/R3trans -d -w
    Database PAP must be started on remote server"
    The output of R3trans -x is:
    "This is ./R3trans version 6.05 (release 46D - 28.03.01 - 11:30:00).
    2EETW169 no connect possible: "DBMS = ORACLE      --- dbs_ora_tnsname = 'PAP'"
    ./R3trans finished (0012)."
    The output of trans.log is:
    "4 ETW000  [developertrace,0] -->oci_logon(con_hdl=0, user='', dbname='PAP')
    4 ETW000                                                         88  0.035395
    4 ETW000  [dboci.c ,0] *** ERROR => OCI-call 'olog' failed: rc = 12705
    4 ETW000                                                      75859  0.111254
    4 ETW000  [dbsloci.,0] *** ERROR => CONNECT failed with sql error '12705'"
    Can anybody help me to solve this problem?

    Thank you for your help, RK.
    The problem was that sidadm was not the owner of ORA_NLS.
    Now I have another problem: when running startsap not boot disp + work.

  • Connecting SQL server from Oracle 11g

    Hello,
    I know there are several threads available to this post but please help me in
    *step by step process to follow in connecting 2 servers.
    I tried everything in internet but got Connection closed error after tnsping of DNS name. Do i need to run any instance sort of thing in SQL server?
    I dont have any access on SQL server.Whatever i have to do that has to be only in Oracle server.I got all those information and created ODBC (using SQL server driver) and tested the connection successfully in Oracle server. Altered INIT*.ORA,TNSNAMES.ORA and LISTENER.ORA but when pinging TNS awfully getting the afore said error.
    My environment : Oracle 11g server - SQL server 2008 ( both in windows platform).
    My
    TNS names entry
    GSIS =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.1.1.1)(PORT = 63455))
    (CONNECT_DATA = (SID=GSIS)
    (SERVER = DEDICATED)
    (HS=OK)
    Listener entry
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1522))
    (ADDRESS = (PROTOCOL = TCP)(HOST = COB417147.cob.apac.bosch.com)(PORT = 1522))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = CLRExtProc)
    (ORACLE_HOME = C:\Oracle\app\amk1cob\product\11.2.0\dbhome_1)
    (PROGRAM = extproc)
    (ENVS = "EXTPROC_DLLS=ONLY:C:\Oracle\app\amk1cob\product\11.2.0\dbhome_1\bin\oraclr11.dll")
    (SID_DESC =
    (SID_NAME = GSIS)
    (ORACLE_HOME = C:\Oracle\app\amk1cob\product\11.2.0\dbhome_1)
    (PROGRAM = hsodbc)
    and
    initGSIS
    entry
    # This is a sample agent init file that contains the HS parameters that are
    # needed for the Database Gateway for ODBC
    # HS init parameters
    HS_FDS_CONNECT_INFO = GSIS
    HS_FDS_TRACE_LEVEL = OFF
    # Environment variables required for the non-Oracle system
    #set
    when tnsping i am getting
    TNS connection closed.
    I am awfully stuck here.
    Please guide..

    Status
    C:\Oracle\app\amk1cob\product\11.2.0\dbhome_1\BIN>lsnrctl status
    LSNRCTL for 32-bit Windows: Version 11.2.0.1.0 - Production on 11-MAY-2012 17:48
    :14
    Copyright (c) 1991, 2010, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1522)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 11.2.0.1.0 - Produ
    ction
    Start Date 11-MAY-2012 17:36:30
    Uptime 0 days 0 hr. 11 min. 48 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File C:\Oracle\app\amk1cob\product\11.2.0\dbhome_1\network\
    admin\listener.ora
    Listener Log File c:\oracle\app\amk1cob\diag\tnslsnr\COB417147\listener\
    alert\log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1522ipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=COB417147.cob.apac.bosch.com)(PORT=1
    522)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=COB417147.cob.apac.bosch.com)(PORT=8
    080))(Presentation=HTTP)(Session=RAW))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
    Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "GSIS" has 1 instance(s).
    Instance "GSIS", status UNKNOWN, has 1 handler(s) for this service...
    Service "orcl.cob.apac.bosch.com" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orclXDB.cob.apac.bosch.com" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    The command completed successfully
    TNS ping
    C:\Oracle\app\amk1cob\product\11.2.0\dbhome_1\BIN>tnsping GSIS
    TNS Ping Utility for 32-bit Windows: Version 11.2.0.1.0 - Production on 11-MAY-2
    012 18:21:55
    Copyright (c) 1997, 2010, Oracle. All rights reserved.
    Used parameter files:
    C:\Oracle\app\amk1cob\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.1.
    1.1)(PORT = 63455)) (CONNECT_DATA = (SID=GSIS)) (HS=OK))
    TNS-12537: TNS:connection closed
    C:\Oracle\app\amk1cob\product\11.2.0\dbhome_1\BIN>
    BTW it is 32-bit machine.
    Edited by: 933729 on May 11, 2012 5:57 AM

  • 32 bit compiled Java Program not connecting to 64 bit Oracle 11g

    Hi,
    I am using one java program to connect to Oracle 11g (64 bit version) using Oracle10g 32 bit client libraries using OCI calls. Below is the program. If I compile it using 64 bit Oracle 10g libraries ($ORACLE_HOME/lib and $ORACLE_HOME/rdbms/lib) , it perfectly connects to Oracle11g but when i compile it using $ORACLE_HOME/lib32 and $ORACLE_HOME/rdbms/lib32, it hangs and keeps trying and takes 100% cpu usage. it does nothing. Please suggest what is going wrong in the environment.
    ============================
    import java.sql.*;
    class dbAccess {
    public static void main (String args []) throws Exception
    Class.forName ("oracle.jdbc.OracleDriver");
    Connection conn = DriverManager.getConnection
    ("jdbc:oracle:oci8:@lvfd", "fde", "fde");
    // or oci7 @TNSNames_Entry, userid, password
    try {
    Statement stmt = conn.createStatement();
    try {
    ResultSet rset = stmt.executeQuery("select * from tab");
    try {
    while (rset.next())
    System.out.println (rset.getString(1)); // Print col 1
    } finally {
    try { rset.close(); } catch (Exception ignore) {}
    } finally {
    try { stmt.close(); } catch (Exception ignore) {}
    } finally {
    try { conn.close(); } catch (Exception ignore) {}
    ================================================

    >
    I am compiling like when LD_LIBRARY_PATH set to $ORACLE_HOME/lib32:$ORACLE_HOME/rdbms/lib32.
    javac -cp .:$ORACLE_HOME/jdbc/lib/ojdbc14.jar dbAccess.java
    as my program resides in current directory. I run it like :
    java -cp .:$ORACLE_HOME/jdbc/lib/ojdbc14.jar dbAccess
    Output: it hangs forever.
    I am compiling like when LD_LIBRARY_PATH set to $ORACLE_HOME/lib:$ORACLE_HOME/rdbms/lib
    javac -cp .:$ORACLE_HOME/jdbc/lib/ojdbc14.jar dbAccess.java
    as my program resides in current directory. I run it like :
    java -cp .:$ORACLE_HOME/jdbc/lib/ojdbc14.jar dbAccess
    Output: It gets connected and list all the tables as output.
    >
    The ojdbc14.jar file is for use with Java 1.4 VMs.
    Are you still using Java 1.4? If so, why?
    For Oracle 11g you should be using the latest JDBC jar file (ojdbc6.jar) and the latest version of Java 1.6.
    You are not only using an old JDBC driver and Java version but are also trying to mix 32 bit and 64 bit operations.
    I suggest you start using recommended practices and update your Java and JDBC versions and select EITHER 32 bit or 64 bit operations.
    See the Official JDBC FAQ for the details on the support available for various combinations of Oracle DB, Java and the JDBC drivers:
    http://www.oracle.com/technetwork/database/enterprise-edition/jdbc-faq-090281.html

  • Vb6 ODBC - Syntax error or access violation in oracle 11g migration

    Hi,
    We have VB6 application with Oracle 10g and the same is working fine.
    Now, we are migrating to Oracle 11g now and we have updated the odbc drivers too.
    { call M_FR(?, ?, ?, ?, ?, ?, ?, ?) }
    L_ID = 890083
    V_ID = 1
    SUB_ID = 6955141
    SUB_SEQ = 1
    P_CODE = 1
    L_SUP_TYPE = 1
    L_REF_NO = 1
    DELETE_REASON_CODE = 1
    When calling the above sp in oracle 11g getting error: [Microsoft][ODBC driver for Oracle]Syntax error or access violation.
    But user has all the right and no issue with access. Also no syntax error. In SQLplus the same is working fine.
    Kindly help us to resolve this issue.
    Regards,
    Sathiya

    Try downloading the latest version of the 8.1.6 driver off OTN.
    That sounds like a bug that was fixed a while ago.
    Justin

  • Can't connect Forms 6i to Oracle 11g on Windows Server 2008 SE

    Hi everyone,
    I have Oracle 10g working pretty well with Forms 6i, but now I have installed Oracle 11g on another server and I'm trying to connect Forms 6i to my other Oracle 11g server, but Forms 6i never gets connected. Is there any trick to make it work? I have check the upper cases and other things related with lower and upper case passwords, but nothinh happens.
    Can anyone please help me?

    Hello;
    Its probably the Oracle client that installs with Forms 6. Try connecting to the database using SQL Plus from a Forms workstation. If it fails I would install a newer client and switch the Oracle Home on all the workstations.
    ( Provided it tests out )
    I would probably try using the Net Configurations Assistant in your Oracle Start Menu group with all combinations I could think of before I added a second client to the mix.
    Of minor interest :
    http://www.dbaportal.eu/?q=node/167
    The Windows version might put the hurt on you. This may or may not help that :
    http://www.araboug.org/ib/index.php?showtopic=49679
    Tough combination.
    Best Regards
    mseberg
    Edited by: mseberg on Jun 20, 2012 3:51 PM
    Later
    Legacy Applications and Oracle 11g
    http://jarneil.wordpress.com/2008/03/26/legacy-applications-and-oracle-11g/
    So I'm sorry to say you are out of options. I also checked the Forms Forum and the few posts there on Forms 6 ( Obsolete in 2004 ) all agree. Forms 6 and Oracle 11 database do not play together.
    I hope at least I saved you some time.
    mseberg
    Edited by: mseberg on Jun 20, 2012 4:36 PM
    Upgrading Oracle Forms 6i to Oracle Forms 11g
    http://docs.oracle.com/cd/E17904_01/doc.1111/e10394.pdf

  • Connect to DB2 from oracle 11g on windows 2008 server

    Hi Folks,
    I want to conenct to DB2 from oracle 11g using DB link.
    DB2 :
    user : db2user
    pwd : db2pwd
    database : db2database (OSBLDEV)
    able to connect to db2 server (installed on machine M1) using db2 client with above details from machine M2 (where oracle is installed).
    Oracle :
    user : orauser
    pwd : orapwd
    host : orahost
    port : 1521
    service : oraservice
    able to connect to oracle server using oracle sql developer with above details on Machine M2 (windows 2008 server)
    when i execute the query with database link
    select row_id from siebel.s_org_ext@OSBLDEV;
    I get the message : ORA-12154: TNS:could not resolve the connect identifier specified.
    could you pls check and let me know whether the below enteries are correct or not.
    Pls share if you have step by step connectivity from DB2 to oracle using DB link.
    1. I have created the Data source for DB2 - test successful
    create database link OSBLDEV
    connect to "db2user"
    identified by "ldb2pwd"
    using 'OSBLDEV';
    1. I have made the following entry in E:\oracle\product\11.1.0\db_1\hs\admin\initosbldev.ora
    HS_FDS_CONNECT_INFO = OSBLDEV
    HS_FDS_TRACE_LEVEL = 0
    2. I have made the following entry in E:\oracle\product\11.1.0\db_1\NETWORK\ADMIN\tnsnames.ora
    OSBLDEV =
    (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)(HOST=orahost)(PORT=1521))
    (CONNECT_DATA=(SID=OSBLDEV))
    (HS=OK)
    3. I have made the following entry in E:\oracle\product\11.1.0\db_1\NETWORK\ADMIN\listener.ora and releoaded the listner (lsnrctl reload)
    LISTENER =
    (ADDRESS_LIST=
    (ADDRESS=(PROTOCOL=tcp)(HOST=orahost)(PORT=1521))
    (ADDRESS=(PROTOCOL=ipc)(KEY=PNPKEY)))
    SID_LIST_LISTENER=
    (SID_LIST=
         (SID_DESC = # this is the entry for HSODBC
         (SID_NAME = OSBLDEV)
         (ORACLE_HOME = e:\oracle\product\11.1.0\db_1)
         (PROGRAM = hsodbc)
    Thanks in advance.

    1. My listener.ora is placed at the below location:
    E:\oracle\product\11.1.0\db_1\NETWORK\ADMIN
    2. I have modifed the listener and removed the entry - hsodbc
    3. stop and start the listener.
    still can't see the service entry in listener status.
    C:\>lsnrctl status
    LSNRCTL for 64-bit Windows: Version 11.1.0.7.0 - Production on 19-JUL-2010 02:27
    :08
    Copyright (c) 1991, 2008, Oracle. All rights reserved.
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 64-bit Windows: Version 11.1.0.7.0 - Produ
    ction
    Start Date 19-JUL-2010 02:21:17
    Uptime 0 days 0 hr. 5 min. 52 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Log File e:\oracle\diag\tnslsnr\DALDEVDBCRM1\listener\alert\log
    .xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=daldevdbcrm1.corp.nai.org)(PORT=1521
    Services Summary...
    Service "+ASM" has 1 instance(s).
    Instance "+asm1", status READY, has 1 handler(s) for this service...
    Service "+ASM_XPT" has 1 instance(s).
    Instance "+asm1", status READY, has 1 handler(s) for this service...
    Service "ARIBADEV" has 1 instance(s).
    Instance "ariba", status READY, has 1 handler(s) for this service...
    Service "ARIBADEV_XPT" has 1 instance(s).
    Instance "ariba", status READY, has 1 handler(s) for this service...
    Service "ARIBAXDB" has 1 instance(s).
    Instance "ariba", status READY, has 1 handler(s) for this service...
    Service "aiad.corp.nai.org" has 2 instance(s).
    Instance "aiad1", status READY, has 2 handler(s) for this service...
    Instance "aiad2", status READY, has 1 handler(s) for this service...
    Service "aiadXDB.corp.nai.org" has 2 instance(s).
    Instance "aiad1", status READY, has 1 handler(s) for this service...
    Instance "aiad2", status READY, has 1 handler(s) for this service...
    Service "aiad_XPT.corp.nai.org" has 2 instance(s).
    Instance "aiad1", status READY, has 2 handler(s) for this service...
    Instance "aiad2", status READY, has 1 handler(s) for this service...
    Service "aianew" has 1 instance(s).
    Instance "aianew", status READY, has 1 handler(s) for this service...
    Service "aianewXDB" has 1 instance(s).
    Instance "aianew", status READY, has 1 handler(s) for this service...
    Service "aianew_XPT" has 1 instance(s).
    Instance "aianew", status READY, has 1 handler(s) for this service...
    The command completed successfully
    C:\>

  • Error connecting form 6i to oracle 9i

    Hi,
    I installed developer 6i on windows XP with oracle 9i.
    I am getting ora-12203:TNS :Unable to connect to destination error while connecting form with oracle.
    Although i can connect to oracle from sqlplus.
    I replaced form's tnsnames.ora with that of oracle.
    Also service for oracle and listner are running.
    Any solutions.

    Hi,
    2 days b4 i also installed 9i and 6i for me its working perfectly, what i did first i have installed 9i then installed 6i and copied only the 9i hoststring related tnsnames.ora paragraph from oracle home directry and pasted in new 6i home tnsnames.ora.
    from data base home related sqlplus we not need to enter hoststring but from forms6i connect we have to enter the host string also
    are u trying with out host string ?, i have also new in installation of 9i and 6i if anything wrong pls excuse me.
    Regards,
    Anu

Maybe you are looking for

  • Forward to voicemail prompts to sign in

    I apologize for the trivial issue, but I am a Unity Connection newbie trying to fix an issue. After a call is ignored and forwarded to voicemail, Unity prompts the caller to enter a PIN rather than leave a message for the called user. When the PIN is

  • Reordering just the jacket of a hard cover book

    I would like to reorder just the jacket of the Large size hardcover book that I have previously ordered.  Is this possible?

  • Printing HP3030

    I keeping getting a low memory warning from the printer.  Any ideas about this?

  • Opening Flash 8 file in MX 2004?

    Is there any way I can open a Flash 8 file in Flash MX 2004? I'm taking a class and they're using Flash 8 at school. I brought the file home and it says "Unexpected file format" when I'm trying to open it. I am assuming this happens because I use MX

  • Cost center based release strategy.

    Hi Gurus, Could anyone explain about cost center based release strategy?. Thanks.