Home > Default > OCCI: Problem with CreateConnection() method

OCCI: Problem with CreateConnection() method

October 11Hits:0
I am using OCCI sdk for Oracle 10g database with VS2005. I am continuously getting an exception
"An unhandled exception of type 'System.Runtime.InteropServices.SEHException' occurred in OCCITest.exe
Additional information: External component has thrown an exception."
I get this exception at line:
user = "SYSTEM";
pass = "abc123";
db = "//";
     ->     con = env->createConnection(user, pass, db);
I have seen lots of posts with people asking this question... i tried almost all the alternatives specified in those posts. Even my Sqlplus works with this connection string. In sql plus, i can connect using these credentials, can create a table, insert data... etc. But I just can't connect from VC++...
For reference, I am pasting the entry in my tnsnames.ora file below:
I am using Vista machine. I have installed oracle 10g for vista. Can my OS be a problem? I will really appreciate the help...


This may be obvious, but please verify that you have first created the environment before calling CreateConnection...
Environment *env = Environment::createEnvironment (Environment::DEFAULT);
Connection *con = env->createConnection (<user>, <password>, <connStr>);                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Read other 2 answers


Related Articles

  • OCCI: Problem with CreateConnection() methodOctober 11

    I am using OCCI sdk for Oracle 10g database with VS2005. I am continuously getting an exception "An unhandled exception of type 'System.Runtime.InteropServices.SEHException' occurred in OCCITest.exe Additional information: External component has thro

  • I have problem with pay methodOctober 11

    I have problem with pay method. My card declined. I change card and I have the same problem. What can i do? Why declined my card again?Contact iTunes store support: https://ssl.apple.com/emea/support/itunes/contact.html.Read other 4 answers

  • Problem with traverse methodOctober 11

    Hi, I am having this problem: I made a CustomItem, a TextField, now I overloaded the traverse method, so if the keycode is Canvas.UP or Canvas.DOWN then return false else return true. The problem is that when I press the left or rigth button it also

  • Problem with Vector method addElementOctober 11

    I am new to Java. I am using JDK 1.3. I am writing a program that will convert a text file to a binary file that stores a Vector object. I have narrowed my problem to the method that reads the text file and creates my vector. Each element in my vecto

  • Problem with prerender methodOctober 11

    Hi, I have a problem with the method prerender. A month ago, I started to develop a web project using Sun Studio Creator and a few page beans that i used extended the Abstract Page Bean, so I overrided the prerender and customized it. The problem is

  • Problem with affinetransformOp method...October 11

    I have a serious problem with filter method I Want to make a image flipping or some other filtering by using AffineTransformOp but it printouts an erro like this cannot resolve symbol op.filter (img, flipped) (the error pointer shows ".after the op&q

  • Problem with WindowClosing() methodOctober 11

    Hello everyone, I have some problem with WindowClosing() method, in which I gave options to quit or not. Quit is working fine but in case of Cancel, its not returning to the frame. Can anyone help me ....Here is my code import javax.swing.*; import j

  • Problems using GET method in JSPNovember 30

    Hi, I had some problems using GET method in JSP. I'm using Apache web server 1.3 and Tomcat 3.3.1 in windows 2000. And I'm using language English and Korean. When I send messages using POST method, all is good But when I send message using GET method

  • Screen Resolution Problem in Session MethodNovember 30

    Hi I want to use session method in BDC. How to resolve screen resolution problem in Session Method? Please give me the code or steps regarding this. Thanks & Regards venkateswararaoHi U can only run the session with the option Dynpro Standard Size se

  • Problems w my method paymetNovember 30

    Problems w my method paymentGo to settings/itunes & app store tap on ID then view ID then tap payment information and see whether paypal is a payment option for you.  If it is not then you will need to check from one of the available payment optionsR

Copyright (C) 2019 wisumpire.com, All Rights Reserved. webmaster#wisumpire.com 14 q. 0.690 s.