Connecting to Oracle9i through ADO

Hi,
I have an visual basic 6.0 application .It connects to the Database using ADO .The application works fine with Oracle7.x and Oracle 8i.However there are issues when the Database is Oracle 9i.The problem is Stored Procedures using ADO do not get executed.The same procedure(to manupilate table data)gets executed just fine when run at the backend.
There is no problem with the package installation(I am able to log in into the package etc.) or 9i Installation(packages and procedures are valid and get executes when run at the backend).I have a feeling that the problem lies with ADO.Any suggestions on how to solve the issue?
Thanks
Radhakrishnan K Krishnamoorthy

I am able to create a DSN using Oracle Driver "Oracle in OraHome90".
The following is the code for ADO connection
Public WithEvents adoConn As ADODB.Connection
Set adoConn = New ADODB.Connection
ConnectStr = "DRIVER={Oracle in OraHome90};" & _
"SERVER=XXXX;UID = "XXX/XXX"
With adoConn
.CursorLocation = adUseClient
.CommandTimeout = 0
.Open ConnectStr
End With
The above code does not even establish a connection even.I substituted the ConnectStr with the following code
ConnectStr = "DSN=OraTest;UID=XXX;PWD=XXX;DBQ=XXX;DBA=W;APA=T;EXC=F;FEN=T;QTO=T;FRC=10;FDL=10;LOB=T;RST=T;GDE=F;FRL=F;BAM=IfAllSuccessful;MTS=F;MDI=F;CSR=F;FWC=F;PFC=10;TLO=0;"
In the above case,connection gets established but I am not able to populate a recordset even.(The query used is a vaid query and returns more than one row when executed in the backend).
I am totally lost out here.Pls help.
Thanx
Radhakrishnan.

Similar Messages

  • How to connect 10g database through Enterprise manager???

    Hi All,
    I want to connect the database through Enterprise manager.
    My database is on 10g. Version is 10.1
    Please tell me the procedure to connect the database through E.M.
    Thanks and Regards,
    Prathamesh.

    Are you thinking of the Enterprise Manager supplied with Oracle9i? If yes - it doesn't work quite that way ... and the 9i java OEM is not compatible.
    Use the enterprise manager supplied with the 10g database, called the dbconsole (look for a service or start it using 'emctl start dbconsole') and access it using http://{localhost}:5500/em
    If that doesn't satisfy you, load the updated version of the OEM 9i java standalone from the 10g client disk.

  • How to Connect my N79 through Internet on Laptop?

    Hi Friends ,
    i am facing a problem while connecting my N79 through Internet on my laptop . i am using USB Modem for Internet Connectivity. And i want to share this Internet on my N79 through Wireless LAN . i am using Windows Vista . Please tell me how to Configure my WLAN on my laptop . so that i can use it to browse through my N79.
    Please Help Me Guys .....................!!!!!!

    Yes, it can be done.
    1) Enable "Internet Connection Sharing" on the laptop and share the connection that refers to your USB modem.
    2) Ask your ISP what the IP addresses of their nameservers are and make a note of them.
    3) Configure the laptop's wireless adapter in ad-hoc mode and assign it a static address on the wireless network.
    4) Configure the N79 in ad-hoc mode as well, and give it a static address on the wireless network. Enter manual settings telling it to use the IP address of the laptop as its default gateway and to use the IP addresses given to you by your ISP as its nameservers.
    With this, you can use the laptop as your phone's portal to the Internet, but only with your phone. This will only work with one device at a time. If you want to use more than one device at the same time you're better off buying a real wireless router to which you will be able to connect your laptop, your phone and any other wifi-aware device you might have.
    NB: I don't use Windows on my machines and therefore can't give any specific information about doing this. The advanced settings needed for the phone will be described in the manual.
    Was this post helpful? If so, please click on the white "Kudos!" star below. Thank you!

  • I have two children each with an ipod which has FaceTime - I have the iphone 4s with FaceTime.  All of these devices are connected to itunes through the one account.  How do I set up the FaceTime on the two ipods so as it doesn't ring both of them?

    I have two children each with an ipod which has FaceTime - I have the iphone 4s with FaceTime.  All of these devices are connected to itunes through the one account.  How do I set up the FaceTime on the two ipods so as it doesn't ring both of them?

    I started to do that then it said that this will become their apple I.D or similar and then I thought that will disconnect them from the same iTunes?  I want them still on my iTunes as they are only young (8 and 10)?  Or have I got this all wrong and even if I do set them up with a different e-mail will they still be on my itunes?  For example if they want to purchase an App will it still go through my account even if they use their ipod?

  • I've connected my device through a wifi network and i accidentally signed out my apple ID for imessage then when I signed back in i cant seem to get connected though my wifi connection is working just fine. can anybody help me?

    I've connected my device through a wifi network and i accidentally signed out my apple ID for imessage then when I signed back in i cant seem to get connected though my wifi connection is working just fine. can anybody help me?

    I am having the same problem with my ipod nano
    I have been trying since Xmas

  • Can't connect to Facebook through WiFi - Lumina 92...

    Both my teenagers have just had upgrades to Nokia Lumina's at the weekend, from an HTC and a Huawei. Both phones are WM8 and both have the Amber update pre-installed.
    Unfortunately neither phone can connect with Facebook through the Wi-Fi but CAN connect through 3G. As both tariffs are on low monthly data usage, you can begin to imagine the annoyance they are displaying at having to switch off Wi-Fi just to make Facebook sync.
    Everything else works fine and I have trawled through numerous web pages and tried everything imaginable to get this to work, but no luck.
    If anybody else has had similar problems across their Wi-Fi, please can you share the solution and help restore some peace back to our household.
    Alas, both the previous WM8 phones worked flawlessly and my ancient HTC HD7 also works without a blip.

    Hi Squirrel23,
    Welcome to the Nokia forum.
    Are you using a Facebook app or you've setup your account via E-mail+accounts? Is this happening to just one specific Wi-Fi connection? Have you tried to connect to other Wi-Fi? Have you tried rebooting your phone? ^AR

  • Can't connect to PPPoE through Linksys anymore....

    I've been running my Earthlink DSL through a router for 9 months without any problems. (Model: Linksys WRT54G v3.1)
    But yesterday it seemed to just not work anymore.
    When I connect the ethernet directly to my Netopia modem from my G4 MDD Powermac, I can connect easily with the 'automatic' settings.
    HOWEVER... no matter how many different settings I try, I can't get the connection to work through the Linksys router. I keep getting the message 'Could not find PPPoE server'. The Network Settings says the ethernet is set up and trying to connect, but it can't seem to.
    I've tried unplugging, pushing in the reset buttons and all sorts of other things, but nothing works.
    I contacted Linksys and they claim you can reload the router firmware with a Mac. But after downloading their firmware update, I found it can't be opened by my Mac.
    But I'm wondering if the firmware is even the problem?
    Any clues much appreciated....

    That sounds like the exceptional tech support experience.
    Frankly I'm shocked at how bad the earthlink tech support experience was. In the past it wasn't that bad. It used to be a 3 minute wait and then someone halfway knowledgeable would be there.
    This time I waited through 4 minutes of brainless telephone ads until they put me through to the Phillipines to Moron #1 who started off asking in an almost impossilbe to understand accent "What eees your father's middle name?" and then "What ees your credit card number?"
    I explained to him that he was supposed to as for the mother's maiden name and that I would NEVER give him my credit card number. And then... after another 3 minutes of telephone ads I got connected to another identical 3rd world slave labor tech person who simply asked me all the same questions over again
    Needless to say, the experience was a sad reflection of corporate strategy... thinking this is going to get them customers.
    Rant over... thank gosh for the Apple discussion boards!

  • I wanted to know whether i can diffuse music to the bluetooth only speakers from a airport extreme-connected hard drive through my mac?

    I'm interested in the new soundlink mini Bose wireless speakers that function only via bluetooth. I wanted to diffuse music to them from an airport extreme connected hard drive through my macbook air. I don't want to stoc music on my mac given the limited flash drive and don't want to go though wires again. Is that possible? Also I can't go with airport express since those speakers don't have the airplay function.
    Thanks a lot for your help or ideas

    Hello jeri004,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    iTunes for Mac: Moving your iTunes Media folder
    http://support.apple.com/kb/ht1449
    Best of luck,
    Mario

  • Who can explain how EJB connect to Oracle9i DB with DataSource?

    I have taken 4 days into this problem. I am developing EJB with J2EE1.3 and Oracle9i DB, I can connect to DB in code with DriverManager. But I want to use DataSource to connect to DB. I failed, I can not get new way to resolve it when I after try to connect with javax.sql.DataSource, oracle.jdbc.pool.OracleDataSource and oracle.jdbc.pool.OracleConnectionPoolDataSource.
    I have got different Exceptions when I coding different ways:
    one is:
    Caught an exception.
    java.rmi.ServerException: RemoteException occurred in server thread; nested exce
    ption is:
    java.rmi.RemoteException: nested exception is: javax.ejb.EJBException: U
    nable to connect to database. com.sun.enterprise.resource.JdbcDataSource; nested
    exception is:
    javax.ejb.EJBException: Unable to connect to database. com.sun.enterpris
    e.resource.JdbcDataSource
    java.rmi.RemoteException: nested exception is: javax.ejb.EJBException: Unable to
    connect to database. com.sun.enterprise.resource.JdbcDataSource; nested excepti
    on is:
    javax.ejb.EJBException: Unable to connect to database. com.sun.enterpris
    e.resource.JdbcDataSource
    javax.ejb.EJBException: Unable to connect to database. com.sun.enterprise.resour
    ce.JdbcDataSource
    <<no stack trace available>>
    the Other is:
    Caught an exception.
    java.rmi.ServerException: RemoteException occurred in server thread; nested exce
    ption is:
    java.rmi.RemoteException: nested exception is: javax.ejb.EJBException: U
    nable to connect to database. makeConnection:Io Exception: Connection refused(DESCRIP
    TION=(TMP=)(VSNNUM=150999297)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4)
    ))); nested exception is:
    javax.ejb.EJBException: Unable to connect to database. makeConnection:Io
    Exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=150999297)(ERR=12505)(ERROR_
    STACK=(ERROR=(CODE=12505)(EMFI=4))))
    java.rmi.RemoteException: nested exception is: javax.ejb.EJBException: Unable to
    connect to database. makeConnection:Io Exception: Connection refused(DESCRIPTION=(TM
    P=)(VSNNUM=150999297)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4)))); nes
    ted exception is:
    javax.ejb.EJBException: Unable to connect to database. makeConnection:Io
    Exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=150999297)(ERR=12505)(ERROR_
    STACK=(ERROR=(CODE=12505)(EMFI=4))))
    javax.ejb.EJBException: Unable to connect to database. makeConnection:Io Exception: C
    onnection refused(DESCRIPTION=(TMP=)(VSNNUM=150999297)(ERR=12505)(ERROR_STACK=(E
    RROR=(CODE=12505)(EMFI=4))))
    <<no stack trace available>>
    My codes related are:
    private void makeConnection() throws NamingException, SQLException {
    try{
    InitialContext ic = new InitialContext();
    OracleConnectionPoolDataSource ocpds = (OracleConnectionPoolDataSource) ic.lookup(dbName);
    PooledConnection pc = ocpds.getPooledConnection();
    con = pc.getConnection();
    }catch(SQLException ex){
    throw new SQLException("makeConnection:" + ex.getMessage());
    DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
    con = DriverManager.getConnection(
    "jdbc:oracle:thin:@172.28.200.43:1521:shcd",
    "lijun", "xiaotian"); */
    public void setEntityContext(EntityContext context) {
    this.context = context;
    try {
    makeConnection();
    } catch (Exception ex) {
    throw new EJBException("Unable to connect to database. " +
    ex.getMessage());
    I believe I set JNDI and config EJB right, because I can run it with Cloudscape DB all right.
    who can tell me where is my WRONG, or tell me how to connect to Oracle9i DB?

    Hi Jhlijun,
    I am facing the same problem at the moment. However, I am not using a pooled connection. The following is my code. I am trying to connect a stateless session bean to an Oracle 9i database with result being fed back to a jsp page.
    package Test;
    import javax.naming.*;
    import java.sql.*;
    import java.util.*;
    import javax.ejb.*;
    import javax.sql.DataSource;
    import javax.sql.*;
    public class TestSessionEJBbean extends java.lang.Object implements javax.ejb.SessionBean
    String q="Select NAMETITLE,NAMEFIRST,NAMELAST from People where PeopleRSN<100";
         protected boolean create() throws java.lang.Exception
    return true;
    public TestSessionEJBbean()
    {   // EJB constructors don't have a server context.
    private void unhandledEvent( String listenerName, String methodName, java.lang.Object event )
    // method for interface javax.ejb.SessionBean
    public void ejbActivate() throws javax.ejb.EJBException, java.rmi.RemoteException
    // To Do
    // method for interface javax.ejb.SessionBean
    public void ejbPassivate() throws javax.ejb.EJBException, java.rmi.RemoteException
    // To Do
    // method for interface javax.ejb.SessionBean
    public void ejbRemove() throws javax.ejb.EJBException, java.rmi.RemoteException
    // To Do
    // method for interface javax.ejb.SessionBean
    public void setSessionContext( javax.ejb.SessionContext parm0 ) throws javax.ejb.EJBException, java.rmi.RemoteException
    this._sessionContext = parm0;          // generated helper code
    // To Do
    * Test Method
    public String Test() throws javax.ejb.EJBException
    return "Hi! I am the SessionEjbBean.";
    * Session Context of this EJB.
    * Set in 'setSessionContext()' before any 'ejbCreate()' is executed.
    private javax.ejb.SessionContext _sessionContext;
    * ejbCreate Method
    public void ejbCreate() throws javax.ejb.EJBException, javax.ejb.CreateException
    try {
    create(); // This 'create()' is used for internal initialization.
    catch( java.lang.Exception __e) {
    System.err.println( __e.toString() + " " + __e.getMessage() );
    // TODO: implement
    * getDBConnection Method
         public sun.jdbc.rowset.CachedRowSet getDBConnection() throws javax.ejb.EJBException
         String testPrint = "Starting...";//Only to check output
         Connection conn;
         sun.jdbc.rowset.CachedRowSet crset=null;
         try {
              testPrint += "before new InitialContext()....";//Only to check output
              InitialContext ic = new InitialContext();
              DataSource ds = (DataSource)ic.lookup("java:comp/env/jdbc/coquit");
              testPrint += "before ds.getConnection()....";//Only to check output
              conn = ds.getConnection("coquit","coquit");          
                   testPrint += "before conn.createStatement()....";
                   Statement stmt=conn.createStatement();
                   testPrint += "before stmt.executeQuery(....)";
                   ResultSet rset = stmt.executeQuery(q);
                   testPrint += "before new sun.jdbc.rowset.CachedRowSet()";     
                   crset = new sun.jdbc.rowset.CachedRowSet();
                   testPrint += "before crset.populate(rset)";
                   crset.populate(rset);
                   rset.close();
                   stmt.close();
                   conn.close();
         } catch (NamingException ne) {
         System.out.println("TestSessionEJBbean::getDBConnection Naming Exception " + ne);
         }catch (Exception e){
         System.out.println(testPrint+"...TestSessionEJBbean::getDBConnectionException" + e);
         System.out.println("\n\n");
         e.printStackTrace();
         return crset;

  • How do you access files from an external harddrive connected to TC through USB from iPad or windows computer?

    How do you access external hard drive data that is connected to TimeCapsule through USB from iPad or knows based computer?

    Filebrowser for the iPad does this very well.
    FileBrowser - Access files on remote computers for iPhone, iPod ...
    Cannot help on Windows, but another PC guy might be able to answer. Some possible clues here:
    http://support.apple.com/kb/HT1331

  • Hi, we are using mac mini's for our developement purpose. connecting the same through using Real VNC. Mac mini's are late 2009 and 2010. Now we have upgraded them to 10.8.5. after upgrading having display issues after launching the simulators

    hi, we are using mac mini's for our developement purpose. connecting the same through using Real VNC. Mac mini's are late 2009 and 2010. Now we have upgraded them to 10.8.5. after upgrading having display issues after launching the simulators, we are unable to view the icons we need to move the simulator (into different places) to view the icons.
    Also we are having Mac book pro's (Late 2009 & 2010) after upgrading them to 10.8.5. Unable to launch the mac, getting only white screen with apple icon.
    Let me know is there any specific Hardware (Graphic Cards) we need to use for the same.
    Please provide me the early solutions.
    Regards,
    Suresh.

    Hi, try this first...
    Bootup holding CMD+r, or the Option/alt key to boot from the Restore partition & use Disk Utility from there to Repair the Disk, then Repair Permissions.

  • Macbook pro connects to iphone through bluetooth but can't access the internet

    Hello, I have a macbook pro 10.6 and an iphone 3gs 4.3.3. I used to be able to connect the macbook to the iphone through bluetooth using personal hotspot and access the internet but one day it just stopped working. I have tried turning them off and on, disconnecting bluetooth etc but nothing has worked so far. I have tried connecting my iphone to my ipad2 through bluetooth, it works great. The iphone to the macbook through usb and it works great as well. I have tried connecting another iphone to my macbook through bluetooth and it doesn't work. The bluetooth on my macbook seems to be the problem
    Well, to be more precise, the macbook sees the iphones, connects to them through bluetooth, the blue bar appears on the iphones screens but the computer wont access the internet.
    Any idea?
    Thank you very much.

    SUCCESS!!!!!
    I visited my brother-in-law yesterday and attempted to connect with his secure network. By sheer luck, he is using the exact same model LinkSys router. My iPhone connected first time--so the iPhone was eliminated as a source of the problem.
    I didn't do a lot of troubleshooting at his house, but I did notice that his network was set for both dynamic DHCP and dynamic DNS. I know that either or both of Windstream (my ISP) and my broadband modem requires a pair of static DNS addresses.
    Sure enough, delving real deep into Windstream's support site, I discovered a LinkSys router DNS help page, specifying how to set static DNS addresses in LinkSys routers. I then accessed my router, enterd the known static addresses, saved the router settings, then rebooted the iPhone and connected to the network.
    SUCCESS!!!
    Thanks to Jane, who suggested it was an ISP issue, Jason, and all at Apple support. dumonj, I'll email you directly. Try this suggestion and see if it helps.

  • Got an (unlocked) iphone 4s from US and tried activating in India but it throws an error saying 'unable to activate bcos the activation server cannot be reached' ..I tried connecting to itunes through my laptop but it does not detect my iphone..pls help

    Got an (unlocked) iphone 4s from US and tried activating in India but it throws an error saying 'unable to activate bcos the activation server cannot be reached' ..I tried connecting to itunes through my laptop but it does not detect my iphone..pls help

    mithaani wrote:
    Got an (unlocked) iphone 4s from US
    As kb1951 states, unless this phone was purchased directly from Apple, it is not officially unlocked. In the US, only Apple sells officially unlocked iPhones. The message you got generally means your phone was hacked to unlock it...jailbroken...Apple's servers have detected such & are preventing your phone from activating...there's nothing wrong with the activation servers.
    You'll need a sim card from the carrier your phone is locked to in order to activate it. If you don't know what carrier, you'll have to call AppleCare in the US to determine this info. Be aware, US carriers will not authorize official unlocking unless you are a customer that used the phone on their network. Thus, there is most likely no way for you to get this phone officially unlocked.
    Good luck.

  • How do you get iPhone 5 to connect to iMac through bluetooth?

    How do you get iPhone 5 to connect to iMac through bluetooth?
    I know the basic steps, but all I get is pairing unsuccessful. I'm using an older bluetooth, would that make a difference? I got connected once with a Motorola bluetooth, but can't reconnect. TIA!

    Try the Bluetooth Troubleshooting steps here:
    http://support.apple.com/kb/TS2756
    Note that you need to have Personal Hotspot set up with your carrier and on your iPhone before you can connect the computer.
    Regards.

  • How to connect to website through computer if i do not use internet through phon's sim

    how to connect to website through computer if i do not use internet through phon's sim

    Connect through wifi.
    Turn off Cellular data through settings __ General __ Network __ Cellular Data on/off

Maybe you are looking for

  • Airport express and Negear adsl router

    I have a wi-fi netgear dg834g adsl router, which is connected to internet; my imac has not an airport card so it connects to the router with the ethernet port. Now, I have the airport express: what i'd like to do, is to connect my playstation (or pc)

  • AOL???

    Please Help!!! I don't understand how to get Aol on my macbook or use it !!! please help me with a link of where to purchase Aol or anything related!!!

  • Transaction:Rolled back

    Hi, I am not able to use Service management from adminui, It says service was .MarkedForRollbackException: The current transaction has been marked for rollback. I dont know why this error is coming, Please let me know how this can be resolved. Thanks

  • Location Services always ON with Auto Date/Time/Timezone ON

    iOS5 lets you see the Location Services (LS) indicator in the Status Bar when system services are using LS in addition to when apps are using LS. I turned this ON (Settings > Location Services > System Services > Status Bar Icon) and immediately saw

  • Is Keynote as functional on the iPad?

    How functional is Keynote on the iPad?  What features do I lose if I'm trying to develop a presentation on Keynote via the iPad? Thanks,