OCCI problem - Please urgent guidance needed

I'm using VC++ 6.0 and Oracle 10g, and want to connect to the Oracle database XE, code is getting compile successfully, but i'm getting runtime exception on executing the application... [its normal command line application]
conn = env->createConnection ("admin", "admin","//localhost:1521/XE"); - rutime exception on this statement
Here is the code snippet:
#pragma comment(lib, "oraocci10.lib")
#define WIN32COMMON
#include <stdlib.h>
#include <occi.h>
#include <iostream>
using namespace oracle::occi;
using namespace std;
class lobarray
private:
Environment *env;
Connection *conn;
public:
lobarray (string user, string passwd, string db)
     cout <<"connecting DB" << endl;
env = Environment::createEnvironment();
     cout <<"ENV set" << endl;
conn = env->createConnection ("admin", "admin","//<ip_address>:1521/XE");     //Runtime exception...
     cout <<"conneted " << endl;
As, First time ever i'm working on VC++, so i have no clue how to address this.. although i read about OCCI, header file, libs.. and able to complie program..
I do catching SQLException in code.. where i'm creating the object......
Please provide any hit/Guidance/ or links to refer...
This program will be running from client machine and will connect to Oracle server (diff machine) over the network.
Please let me know, how do i achieve this?

Hi,
you cannot use the occi 10g with VC6++ !
When using precompiled C++ library, you have to use the same compiler than the one used to compile the C++ dll.
Oracle 10g provided occi dll to be used with VC7 and VC7.1
It's not possible to use them the VC6 C++ runtime.
That' why OCCI is alway a pain... Because Oracle only provides precompiled shared libs, you have to use supported compilers. and VC6 C++ runtime is not.
You have to upgrade your VC version or use the Windows SDK that includes free C++ compiler and C++ runtime.

Similar Messages

  • Itunes problem. Urgent assistance needed please!!

    Hello:
    Yesterday I updated my itunes version and installed the new 7.0.2 version but every time that I open the itunes, my computer get restarted. Please let me know what I have to do to resolve my problem.
    Thank you very much.

    Yesterday I updated my itunes version and installed the new 7.0.2 version but every time that I open the itunes, my computer get restarted.
    are you getting any sort of blue screen? if so, what numerical and text codes are you getting with it? (ie 0x[zeros/letters/numbers] CAPSANDUNDERSCORES)
    if the blue screen mentions a specific file, let us know what that is called too. (exact spelling, please.)
    here's a reference on the sorts of things i'm asking about:
    Troubleshooting Windows Stop Messages
    if you're not seeing a blue screen (or just a flash of one), we can use this technique to make hidden blue screens appear for us:
    1) Open your system control panel (Start->Control Panels->System).
    2) Select the "Advanced" tab.
    3) Click the "Startup and Recover" section's "Settings" button
    4) Verify that under "System Failure" the "Automatically restart" checkbox is not checked.

  • Please urgent help needed for the following

    Hi Everybody!
    I desperately need help as soon as possible.
    Following is the partial code for the driver program which will use the Employee class Objects(Employee is declared abstract). If you want to see whole code you can take a look at my last two or three posts in this forum.
    1-     Now data input by the user in the specific field( name, rate ) should be displayed in the �List� at the top of the frame after pressing �Enter� key. Can anyone help me to achieve this functionality. While doing this keep in mind the capacity of Array
    2-     I also need �rate� textfield to enabled initially & become disable when �raise� (for trigerring calculating raise in weekly pay) is checked. On this �increased� textbox will become �enabled� which was disabled initially.
    3-     The stuff which may have the problems is followed by �*******************�.
    // here is how I declared handlers
    ActionEventHandler handler = new ActionEventHandler();
    ItemEventHandler listener = new ItemEventHandler();
    // here is the declaration of awt components which are going to be placed on Frame.
    public class ActionEventHandler implements ActionListener
    public void actionPerformed(ActionEvent event)
    //if(event.getSource() == enterButton)
    for (int i = 0 ; i < empArray.length; i++)
    if(event.getSource() == enterButton)
    empData.add(nameField.getText());
    /*else if(event.getSource() == hoursField)
    calcWeeklyPay();
    if(event.getSource() == clearButton)
    nameField.setText("");
    hoursField.setText("");
    rateField.setText("");
    increaseField.setText("");
    }//else if
    }//ActionEventHandler
    public class ItemEventHandler implements ItemListener
    public void itemStateChanged(ItemEvent event)
    //if(event.getSource() == enterButton)
    if(hEmployee.getState())
    createHourly();
    }//if
    /*else
    sEmployee.setState(true);
    createSalaried();
    }//else*/
    else if(raiseSal.getState())
    increaseField.setEnabled(true);
    rateField.setEnabled(false);
    }//itemStateChanged
    }//ItemEventHandler
    public void createHourly()
    nameField.requestFocus();
    //String name = nameField.getText();
    double payRate = Double.parseDouble(rateField.getText());
    double hours = Double.parseDouble(hoursField.getText());
    empArray[empCreated] = new HourlyEmployee(nameField.getText(), payRate, hours);
    currentEmp = empCreated;
    empCreated++;
    //empData.add(emp.toString());
    enterButton.setLabel("add");
    }//createHourly
    /* public void createSalaried()
    nameField.requestFocus();
    //String name = nameField.getText();
    double payRate = Double.parseDouble(rateField.getText());
    double hours = Double.parseDouble(hoursField.getText());
    empArray[empCreated] = new HourlyEmployee(nameField.getText(), payRate, hours);
    currentEmp = empCreated;
    empCreated++;
    enterButton = new Button("add");
    }//createSalaried*/
    looking forward your kindness

    Visit YAT-Yet Another Thread this is a discussion using the Sun book Core Java 2
    and one part in that book uses an example with Employee class of which I assume you are stealing your class-name from. Anyway, that thread is in the Java forums.

  • Portal crashes and intermittant problems..urgent help needed.

    Portal Runtime Error
    An exception occurred while processing a request for :
    iView : pcd:portal_content/administrator/super_admin/super_admin_role/com.sap.portal.system_administration/com.sap.portal.system_admin_ws/com.sap.portal.themes/com.sap.portal.theme_editor/com.sap.portal.styleeditor
    Component Name : null
    Page could not create the iView.
    I briefly describe the system setup.
    sptltrex = central instance
    sptl1 = app1
    sptl2 = app2
    sptldb = database instance.
    sptltrex built with virtual name ourworld-0
    sptldb built with virtual name ourworld-db
    System setup with Oracle dataguard feature, so ourworld-0 and ourworld-db can fail over to disaster recovery systems sptldr and sptldevdb at another site. Although we installed using the SAPINST_USE_HOSTNAME for SCS/central instance the visual administrator and message server still pick
    up sptltrex. We though setting the SAPLOCALHOSTFULL to ourworld-0.sap.serco.com had fixed this issue, but this generated many iview errors that
    could not be found. When the SAPLOCALHOSTFULL was backed out everything
    began to display again. Although there is still intermittant errors of screens not acting as required.
    message server output
    http://sptltrex:8100/msgserver/text/logon
    version 1.0
    J2EE1666800
    J2EE sptl2.sap.serco.com 50000 LB=2
    J2EES sptl2.sap.serco.com 50001 LB=2
    P4 sptl2.sap.serco.com 50004 LB=2
    P4S sptl2.sap.serco.com 50006 LB=2
    J2EE13975600
    J2EE sptltrex.sap.serco.com 50100 LB=2
    J2EES sptltrex.sap.serco.com 50101 LB=2
    P4 sptltrex.sap.serco.com 50104 LB=2
    P4S sptltrex.sap.serco.com 50106 LB=2
    P4HTTP sptltrex.sap.serco.com 50105 LB=2
    JC_ourworld-0_PP1_01
    SDM ourworld-0 50118
    We have had numerous OSS messages for various continuing problems on the system. Today we have an complete up-to-date as possible patched system. SPS 9 with all the latest sub patches also. We have installed AIX TL 05 with service pack 2 so oslevel -s shows 5300-05-02 + a related db APAR, the IBM java JDK is SRS06. Full earlywatch go-live check parameters and options have been completed.
    But still we have problems.
    can anybody help......it's urgent....
    thanks
    saurabh

    hi!!
    We have a 3-server portal installation with one j2ee dispatcher and two
    j2ee servers on each server.
    We are experiencing major issues with the consistency or
    synchronisation between the servers and availability of portal applications.
    For example the themes editor is only available on sptl1 server0, so if
    you are lucky and log onto that server you can use this application.
    THIS IS ONE OF MANY examples of this type of issue. How can we ensure
    that the landscape is consistent? Screen shots from sptl1 showing the
    themes application being available and not available.
    A simple look at the filesystem reveals the following, and only the
    themes editor directory and contents are on sptl1.
    JSPM deployment finished successfully.
    sptl1:root:/ > find / -name "com.sap.portal.themes.editor" -print
    /usr/sap/PP1/J00/j2ee/cluster/server0/apps/sap.com/irj/servlet_jsp/irj/root/web-inf/portal/portalapps/com.sap.portal.themes.editor
    /usr/sap/PP1/J00/j2ee/cluster/server0/apps/sap.com/irj/servlet_jsp/irj/root/portalapps/com.sap.portal.themes.editor
    sptl1:root:/ > ssh sptl2 find / -name "com.sap.portal.themes.editor" -
    print
    sptl1:root:/ > ssh sptltrex find / -
    name "com.sap.portal.themes.editor" -pri>
    thanks
    saurabh

  • Output allaingment problem(please urgent help)

    i made report by report biulder
    and the output was ok but i have onr problem in one fathername header was out off records line as the below example
    studentid_ school class section fathername adress
    osama 2 2 1 dubai
    jamal
    ahmad 3 2 2 dubai
    osama
    amjad 2 3 1 dubai
    mohd
    ***the fathername sorce come from the below formula function*<b
    *<strong<strong>
    function SI_UNIT_COST_DSPFormula return V
    ***begin
    SRW.REFERENCE(:P_CURR
    ***SRW.REFERENCE(:SI_
    ***SRW.USER_EXIT('FND FORM
    *** CODE=":P_CUR
    *** DISPLAY
    *** PRECISION
    *** AMOUNT=":SI
    *** DISPLAY=":SI_UNIT_C
    ***RETURN(:SI_UNIT_COST_DSP);
    end;
    <p<b<b<br />***please ineed help*
    **<st

    i dont know what the below function doing
    how can i replace th is function with better one and get same functionalilty
    the below function cause problem in the layout
    the columne which referenced by this function appeare as outline of records (not in sutable place)
    please my fiends help Seriously
    function SI_UNIT_COST_DSPFormula return VARCHAR2 is
    begin
    SRW.REFERENCE(:P_CURRENCY_CODE);
    SRW.REFERENCE(:SI_UNIT_COST);
    SRW.USER_EXIT('FND FORMAT_CURRENCY
    CODE=":P_CURRENCY_CODE"
    DISPLAY_WIDTH="14"
    PRECISION="EXTENDED"
    AMOUNT=":SI_UNIT_COST"
    DISPLAY=":SI_UNIT_COST_DSP"');
    RETURN(:SI_UNIT_COST_DSP);
    end;

  • Please Urgent help needed!!!

    I conect 2 Apple 20"Cinema display to a Mac Pro with ATI Radeon 1900XT, and I only get one of the screens to work. The other indicates with the Led light switching in and out that it won't recognize the video signal. I have restarted the V RAM pressing RP Comand+Option and after the second tone of restart, it continues the same. If I disconect one, then the other switches on. Why does this happens?
    Can it be because the CPU and the 2 screens are plugged to the same pluggin base?
    Please, help me!!!
    and sorry if I have not explain it properly, as I am Spanish, and it is difficult to explain it in English.
    After posting this message and not receiving any answer, I called Apple care Plan, and they could not find any solution, I have tried to get in touch with ATI, but I still have not been succesful. Neither with Apple support Usa.
    The solution Apple Spain gave me was to bring my machine to an Apple shop in Spain, to leave it there, and they would take a look at it. But I am nearly sure my machine is ok, there must be something else.
    Can anybody help me!!!! I am desperate. PLEASE, help me, or give me a clue!!

    Sorry, I'm new in the disussions, I don't know how it works exactly, and I'm very worried. I beg your pardon if I have been wrong, or had bad manners.

  • Please Urgent help needed.........Cant open Downloads !!

    After the download completes i am unable to open any file.....its says this.....
    THIS IS THE MESSAGE........
    SAFARI CAN'T OPEN THE FILE
    SAFARI CAN'T OPEN THE FILE  "filename" BECAUSE "filename" HAS MOVED SINCE YOU DOWNLOADED IT.

    You get that message because the uploaded file doesn't contain serialized Java objects.

  • I want to buy an in-app purchase but i don`t remember my security questions and i cant access my recovery email either, what can i do? i have 100$ on my account and cant use it because of that problem, please help URGENT

    I want to buy an in-app purchase but i don`t remember my security questions and i cant access my recovery email either, what can i do? i have 100$ on my account and cant use it because of that problem, please help URGENT

    If you have a rescue email address on your account then you can use that - follow steps 1 to 5 half-way down this page will give you a reset link on your account : http://support.apple.com/kb/HT5312
    If you don't have a rescue email address (you won't be able to add one until you can answer your questions) then you will need to contact Support in your country to get the questions reset : http://support.apple.com/kb/HT5699

  • URGENT HELP NEEDED ... Tomcat Realm and JRE1.4 plug-in problem

    I have tried the Security Realm of Tomcat. Since I do not have
    an LDAP server, I decided to use the Tomcat-users.xml file in
    Tomcat\conf directory.
    I added the following lines of code in the web.xml file.
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>Entire Application</web-resource-name>
    <url-pattern>/*</url-pattern>
    </web-resource-collection>
    <auth-constraint>
    <!-- NOTE: This role is not present in the default users file -->
    <role-name>webviewer</role-name>
    </auth-constraint>
    </security-constraint>
    <login-config>
    <auth-method>BASIC</auth-method>
    <realm-name>Tomcat Manager Application</realm-name>
    </login-config>
    The <role-name> "webviewer" is added into "Tomcat-Users.xml" as the following:
    <tomcat-users>
    <user name="test" password="password" roles="webviewer" />
    </tomcat-users>
    So, now when we type the url: http://localhost:8080/adbpdbre/default.htm, TOMCAT shows a dialog box asking for UserName: and Password:Now, only when we give the username and password, it shows the page. This is exactly what we want.
    But the problem now is, this default.htm page, has 5 links to 5 applets. The first time that I click on one of these links, the JRE plug of 1.4 shows a dialog again asking for the username and password. Till I dont provide the username and password the system doesnt go ahead and applet doesnt load. I do not want the JRE to ask me for the username/passwords again..How to avoid this ?
    Can you give me some more information on this. Ultimately in the production usage, we will be using LDAP and not Tomcat's memory realm.
    URGENT HELP NEEDED ... I need to get back to my client on this.
    Help would be v. much appreciated.

    In the config file, you 're essentially saying that you want Tomcat to prompt for usr/passw on every request (url-pattern = /*) made by a 'webviewer', and that's exactly what Tomcat is doing.
    Consider using specific url-patterns & roles for resources to be protected. If for now, all you need is to protect the first page, use a more specific url-pattern.
    Just an advice : if you'll be using LDAP in production, do not waste time with Tomcat's Security Realm and the BASIC authentication type, since the two have not much in common. Start reading doc on LDAP, and code a prototype, or even better, a vertical slice of the app (i.e a proof of concept).

  • HT201272 A few songs from my old purchase is not available for download. It shows as purchased but I can't download it. Please help me resolve this problem, what do I need to do to enable download for all my purchased songs/movies etc. - Avinash

    Hi,
    A few songs from my old purchase is not available for download. It shows as purchased but I can't download it. Please help me resolve this problem, what do I need to do to enable download for all my purchased songs/movies etc.
    - Avinash

    The purchases are probably hidden:
    http://support.apple.com/kb/ht4919

  • I dont remember the first apple id that link with my clash of clans apps. the problem now is i need to link my COC village and it keep saying "please log in with correct game center" is there anyway that i can retrieve my old apple id? please help me

    i dont remember the first apple id that link with my clash of clans apps. the problem now is i need to link my COC village and it keep saying "please log in with correct game center" is there anyway that i can retrieve my old apple id? please help me i dont want to lose my village, i have spent my money on that game to much. hmmm

    thanks mate, but the problem is im using different apple id now, and after about 1 year play coc and today i want to link the village , suddenly coc said that
    thats mean im playing this village with different apple id and it not saved. and the problem is i dont remember the first apple id and password that i use first time to download this game. hmmm it was so confusing, why coc and game center just make this thing saved with a new game center account.

  • ITunes needs to fix the problem with there gift cards not being activated this is not up to the retailer and they will not return scratched coded cards! There is thousands of people having this problem please fix it

    iTunes needs to fix the problem with there iTunes cards not activating properly! This is not the retailers fault and they will not return iTunes cards that have had the code area scratched there for apple needs to credit and or activated the cards there is thousands of people having this problem please bite the bullet and fix it already I will not be using iTunes until this is corrected...

    If you haven't received the item then try the 'report a problem' page to contact iTunes Support : http://reportaproblem.apple.com
    If the 'report a problem' link doesn't work then you can try contacting iTunes support via this page : http://www.apple.com/support/itunes/contact/- click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • My mac has started displaying a message stating "You need to restart your computer".  Web says it's kind of kernel panic! Is this a hardware problem? Do i need to contact my distributor? please help..it annoys me very much..

    My mac has started displaying a message stating "You need to restart your computer".  Web says it's kind of kernel panic! Is this a hardware problem? Do i need to contact my distributor? please help..it annoys me very much..

    Hello welcome to the ASC user to user forums
    please see these support documents
    http://support.apple.com/kb/TS2570
    http://support.apple.com/kb/TS1440
    http://support.apple.com/kb/HT1455
    http://support.apple.com/kb/ht3964
    http://support.apple.com/kb/HT1379
    http://support.apple.com/kb/ht1379
    http://support.apple.com/kb/HT1509

  • Problem uninstalling MaxMSPRuntime on mac - urgent help needed

    Hello there,
    I've been using Cycle 74's MaxMSP Runtime version 5.1 for a while but recently had to witch to an earlier version to make some hardware function along side the Max runtime environment. The problem is that where i would usually just drag and drop Max 5.1 into the trash to uninstall it, for some reason, after i have done this and try to install the older version of Max, OSX wont let me install Max 4.0.8 as it says an updated version is currently installed. I have scoured my hard drive for the remanence of Max 5.1. and deleted everything i've found. Is there a way of overriding macosx and getting it to replace Max5.1 with an older version?
    Urgent help needed as i am playing a show this weekend and currently am not able to get my equipment to function.
    A shiny nickel for the one who saves my ***.
    Thanks
    Henry

    Hi- Try this...
    If you can, reinstall or use time machine to recover your recently deleted MaxMSP Runtime 5.1.
    Then, download AppZapper. It is a utility that helps you cleanly delete programs off your mac. It is free for the first 5 uses.
    http://appzapper.com/
    Then, install AppZapper, and then go ahead and drag the MaxMSP Runtime 5.1 into it, and it should hopefully get rid of the pesky program

  • HT1212 My device is disabled and I can't open/unlock it to trust the computer so I need to know how do I get around this problem please.

    My device is disabled and I can't open/unlock it to trust the computer so I need to know how do I get around this problem please. I don't mind restoring it updating anything that will work

    Follow the instructions in the support document that you linked to the forum with. See the section about not syncing. You will probably need to erase it in iCloud to be able to restore it as new. Remove the device from your iCloud account which will disable Find My iPhone.

Maybe you are looking for