Unable to access Oracle using ODP

Hello,
I recently installed ODP and am trying to use it to access my Oracle 10g database from a C# Application built with Visual Studio 2005. (I can access the database via OLE with no problem). I've added the proper references and the program compiles fine. The following code failes on the call to ExecuteReader, with the message that the connection must be open. However, the call to dbConn.Open(); is successful, and as far as I can tell the connection is open (I can successfully read the database version number). Any ideas?
OracleConnection dbConn = new OracleConnection(
     "Data Source=myDBAsInTNSNamesFile;" +
     "User Id=myuserid;" +
     "Password=mypassword;");
try
dbConn.Open(); //OK!
catch (Exception)
return false; //Never gets here
OracleCommand cmd = dbConn.CreateCommand();
cmd.CommandText = "Select name from people";
OracleDataReader reader = cmd.ExecuteReader(); //FAILS! Claims connection is not open
//etc.

I'm not using that version of ODP.NET so I'm not altogether certain but your problem seems similar to the one described in this post...
Oracle Technology Network: Forums
After upgrading to ODP.NET 10.1.0.400 existings Apps fail.
..except your post implies that you hadn't previously tried an earlier version, so I don't think it's a problem with the assembly reference version. Still, are you sure that you've got the path references correctly configured? Did you try rebooting after the installation and setup? Also, just curious...are you encountering this problem with both win forms and asp.net applications?

Similar Messages

  • Unable to access Oracle VM Manager from browser

    Hi,
    I am unable to access the Oracle VM Manager from my browser at any of the url's e.g. /em; /OVS; /apex
    I can connect to my server via putty, so I know the IP address that I am using is correct.
    In the /var/ovm-manager/oc4j.log file I get the following message:
    ERROR J2EE HTTP-00004 Internal error raised tyring to instantiate web-application: webapp defined in web site OC4J 10g (10.1.3) Default Web Site. Application: datatags does not exist. Error creating Web application: webapp
    The oc4j service is running and the ovs-agent service is running but I cannot connect.
    I am new to Oracle VM and Linux for that matter so it is entirely possible that something is not configured correctly somewhere
    I'll appreciate it if anyone can assist
    Thanks

    Try this command from the console or SSH to the server:
    service iptables stop
    If you can then access the URLs you will need to modify iptables to allow port 8888
    I think this is the command:
    iptables -I INPUT -p tcp --dport 8888 -j ACCEPT
    then:
    service iptables start
    Then try to connect again.

  • Unable to access Oracle XE Apex Interface

    Hello,
    I've recently installed Oracle XE on Ubuntu (package oracle-xe-universal_10.2.0.1-1.1_i386.deb), however I am unable to access the web interface for Apex. If I use Firefox or Opera, it cannot recognize the file it's trying to access, but reports it as an application/octet-stream file and asks me how to open it or to save it to disk. If I use IE7, it simply displays a few unknown characters (boxes).
    I had the entirety of Oracle XE installed and working prior to rebuilding the server, which is when this problem began happening, but I shouldn't have changed anything to cause a problem like this.
    If anyone can shed some light on this, I would greatly appreciate it, since I've been unsuccessful at finding anything out about this problem.
    Thanks,
    Jeff

    This is a bit old but I've faced the issue and found a (temporary?) solution.
    The problem is caused by a syntax error of the generated HTML on the Change Password page. The APEX page generation code somehow truncated a closing '>' in a tag. By adding a few space, this page generated correctly. However, it seems very likely that the problem will also occur for other pages.
    In file builder/f4350.sql, line 5668, change
      p_plug_source=> s,
    to
      p_plug_source=> s || '  ',
    Then reload the page... I used 'sys as sysdba' and not sure this is the best option. Anyway the page showed afterwards.
    Message was edited by: thtsang

  • Unable to access Oracle Enterprise Manager in Oracle 10g AS Machine

    Hi All,
    We are working on oracle forms 10g in 3 tier architecture. I have installed oracle 10g Infrastructure (OraHome_1) followed by oracle 10g Application server (middle-tier,OraHome_2). I have copied all the forms to OraHome_2\forms folder and compiled them successfully.
    When i tried to access enterprise manager (Infrastructure)thru http://myappserver:18100, i was unable to do so. It displayed "page cannot be displayed".
    Also
    When i tried to access enterprise manager (middle-tier)thru http://172.16.1.1:18101, i was unable to do so. It displayed "page cannot be displayed".
    I checked for port status, thru “netstat –na” command, It was displaying
    172.16.1.1 18100 TIME_WAIT
    172.16.1.1 18101 TIME_WAIT
    172.16.1.1 7777 TIME_WAIT
    Why is that i am unable to access the Enterprise Manager?

    Hi All,
    I was able to resolve the issue. Thr was a proxy server enabled in the IE in AS machine. Once i checked the option for bypassing it and turned off the windows firewall(OS was win 2003 server). I was able to view the home page at http://myappserver, then was able to access EM also.

  • How to access Oracle Using Dos Based FoxPro(2.5,2.6)

    Hello Sir,
    I need some clarification regarding the following question.
    Q. How can access Oracle Database using Dos Based Foxpro of version either 2.5 or 2.6
    Thanking you,
    Kishore.P

    Hi Alex,
    the host and port depends on your network setup of your VM.
    Do an ifconfig -a and see what IP adress your guest has.
    With this IP address you should be able to access EM from outside your VM (but on the VM host, not from outside the network) with the same port.
    Regards
    Sebastian

  • Unable to access website using home network but able to access using school network.

    Hi, I'm currently on a MacBook Pro running OS X Mountain Lion and Safari v6.0.4.
    As per the title, I'm unable to access particular websites, namely abduzeedo.com and fromupnorth.com, using my home network but when I try to access using my school network, I can access it freely.
    The error message I get is: "Safari can't open the page [website] because the server where this page is located isn't responding"
    I've tried clearing my cache, resetting my IP, deleting the library file (or whatever it was that some people suggested in forums) but it still doesn't work ):
    Any suggestions?

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
    While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login, or by a peripheral device.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including Wi-Fi on certain iMacs.  The next normal boot may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of steps 1 and 2.

  • Unable to Access Oracle 9i Application - Jinitiator 1.3.1.25

    I am unable to access the Web based Application developed in Oracle 9i. The operating system on my laptop is Windows Vista and Jinitiator 1.3.1.25 is installed.
    Let me know how to Solve this.
    Thanks

    Hi,
    could you try expanding "unable to access".
    Try puting yourself in the shoes of people who may be able to help you. :-)

  • Unable to access oracle 10g DB package from 8i using DB link

    Hi,
    We have two oracle 8174 database A and B. One of the package in A calls an package in B using db link. The database B was upgraded to 10g (10.2.0.4). After the upgrade, the package in A got invalid. When tried to compile system hangs. No error is encountered.
    In UAT there was no issues. But only in production we face above problem. Can you please advise what went wrong. Is it due to incompatibiity?

    Can You logon that user an recompile?
    I hope you will see error something...
    Pacakages on B(10g) database.. invalid or not???
    Anyway Can you recreate your packages? ... (create or replace...)
    By the way, you might check something from Oracle Support
    Good Luck

  • Unable to access files using search title and link

    Once a list of search results appears, I am unable to retrieve the referenced document using either the hyperlink title or "link" hyperlink. I can only access the document using cache. Does crawler configuration need to be modified?

    file://localhost/dbadmin
    And here is the error message that appears when the title hyperlink is selected:
    java.io.IOException: \dbadmin\projects\NMAX_Refresh\Requests\NMAT_20050329\mtch_users_synonym.sql is not an acceptable relative path when user.dir is C:\ORACLE\PRODUCT\10.1.6\SES1\ at oracle.aurora.java.io.OracleIO.transformRelative(OracleIO.java:65) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.(FileInputStream.java:103) at oracle.search.GetPage.readFileURL(GetPage.java:958)

  • Unable to access Internet using a Mobile Network

    Hello friends
    I recently updated my SE Xperia mini pro 17i (2011 model) to ICS, initially there were some issues and I had to re-update it to finally get authentic interface of ICS. Even after the successful update I am unable to use the mobile network to access Internet, the only way  is to use a Wifi instead. Can somebody please help me out with this issue?
    Karan

    The first thing I would advise doing is contacting your current network provider and have them send you through the relevant internet settings.
    What are your thoughts about this forum? Let us know by doing this short survey.
     - Official Sony Xperia Support Staff
    If you're new to our forums make sure that you have read our Discussion guidelines.
    If you want to get in touch with the local support team for your country please visit our contact page.

  • Unable to access sysvol using path \\domain.local\sysvol

    Hi,
    We found that our newly configured workstations were unable to read/apply GPOs. Upon checking, we are able to access the path \\domain.local. However, when trying to open sysvol folder (or any other shared folder on the domain controller), we receive the
    following error:
    We cannot also access the folders when using domain netbios name. Strangely enough, when using IP address or DC name, we can successfully map the sysvol folder.
    Have also tried running DCdiag and the test
    NCSecDesc fails with error:
    Hope anyone can shed some light on what went wrong.
    Thank you.

    Hi,
    Based on your description, please make sure that TCP/IP NetBIOS Helper, Netlogon, and the Remote Procedure Call (RPC) services are started and set to Automatic.
    If the issue persists, we can also try disjoining and rejoining the workstation.
    The following thread focused on the similar issue and can be referred as reference.
    Cannot access
    \\domain\sysvol
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/c58600d7-5c7b-4cbb-9da4-4c98e3fa2997/cannot-access-domainsysvol?forum=windowsserver2008r2general
    Best regards,
    Frank Shen

  • Unable to access Calender using Groups (as Manager) using PC

    I own a mac, but I'm doing the following on a friends PC. (That might be important to know or not).
    I went to my mac.com account and created a group. First time. When I was in my group, i clicked on the calendar area thinking it would open up and I could begin to enter data into the calendar. But, it didn't open.
    Instructions at mac.com help section state to click on a link titled "Change Calendar" located below the Calendar. But when I do that, the link changes to "learn how to create a custom calendar" link. Contrary to what the help page said, there was no option to create a custom calender. When I clicked on the "learn how to create a custom calendar" I was directed to the Group's iCal help page located at
    http://www.mac.com/1/ical.html
    According to that help page, I'm suppose to to click on the link below the calendar "change calender". (oh oh, I'm going in circles).
    Does anyone know how I can access the calendar in the Groups?
      Mac OS X (10.4)  
      Mac OS X (10.4)  
      Mac OS X (10.4)  
      Mac OS X (10.4)  

    Welcome to Apple Discussions!
    From the Groups FAQ:
    Q: How do I publish a calendar for a group?
    A: You create and publish the calendar using iCal. You can then use either the Edit Group page or the group page to select the calendar from your list of published calendars and make it available to the group via the group page.
    Because you can only create a calendar in iCal, which only runs on a Mac, you'll need to do that part from a Mac.

  • Unable to access Oracle Cloud DB JNDI  in application after 4-5 successful attempts.

    Hello Everyone,
    I have been using the Oracle Cloud Service for the last 10-15 days. I deployed a JAVA Web service application which is connected with the Oracle Cloud Database. I am consuming that web service in my Oracle ADF Mobile Application. But when I try to request the any web method of the service more than 4-5 times then the database connection goes unavailable and it respond me NullPointerException. After 10-15 minutes, The Database connection is available but when I request again more than 4-5 times to any web method of Web service then I face same issue. 
    I have been facing this problem for last 2-3 Days.
    Thanks
    Gurphez

    Java Cloud Service basic (S1) and trial provides 5 DB connections in your connection pool. Make sure that your application is releasing the connections after each requests.
    Your application seems to be holding on to the connections and running out of it after 4-5 attempts,
    To adjust tuning parameters for ADF BC for cloud, it's recommended to change the following in the AM configuration:
    ensure jbo.txn.disconnect_level =1
    specify "Disconnect upon Release"
    Can you please try these.

  • Unable to access URL using HttpURLConnection

    Hi,
    I am using HttpURLCOnnection class to post a data to a url(which is a web service). The webservice accepts data as text/xml.
    Following is the code snippet i used:
    URL url = new URL("http://xxx.xxx.xx.xx:8080/SampleWebService.svc");
    HttpURLConnection conn =(HttpURLConnection) url.openConnection();
    conn.setDoOutput(true);
    conn.setRequestMethod("POST");
    conn.setRequestProperty("Content-Type","text/xml");
    String urlStr="param1="+URLEncoder.encode(value1)+"&param2="+URLEncoder.encode(value2)
    OutputStreamWriter wr = new OutputStreamWriter(conn.getOutputStream());
    wr.write(urlStr);
    wr.flush();
    InputStream in2 = conn.getInputStream();
    in2.close();
    wr.close();
    But when i execute the code, I am getting following error at the line(InputStream in2 = conn.getInputStream();)
    java.io.IOException: Server returned HTTP response code: 400 for URL
    Can someone please suggest a solution. Am i missing something here?
    Thanks in advance

    This may not be the cause of the problem, however I will point out that the Content-Type you are setting (text/xml) is not the content type you are sending (key=value&key=value...).
    If the webservice only accepts text/xml, then this is probably the cause of your problem.
    Another thing you could try is removing the line that sets the content type.
    Here are the request properties in some (hacky) code that I have used for sending POST requests:
                   conn.setDoOutput(true);
                   conn.setRequestProperty("Host", url.getHost());
                   conn.setRequestProperty("Referer", referer);
                   conn.setRequestProperty("Cache-Control", "max-age=0");
                   conn.setRequestProperty("User-Agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727)");
                   conn.setRequestProperty("Cookie", cookies);Edited by: 842408 on Mar 7, 2011 10:14 AM
    Edited by: 842408 on Mar 7, 2011 10:14 AM

  • Unable to access files using FilePermission class .

    Hi frineds !!!
    I m new to java networking..plz help in finding the solution of my problem*..Its urgent !!*
    FilePermission perm=new FilePermission("D:/contacts","read");
    AccessController.checkPermission(perm);
    and it is giving an error :
    Exception in thread "main" java.security.AccessControlException: access denied (java.io.FilePermission D:/contacts read)
    at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
    at java.security.AccessController.checkPermission(AccessController.java:546)
    at test.Main.main(Main.java:38)
    plz help me out...

    amit.trical wrote:
    But it should grant me the permission.Are you saying you think that creating the FilePermission object should grant the permission? Or are you saying that calling the checkPermission method should grant the permission?
    Neither of those are true. Creating the FilePermission object gives you something about which you can ask if it's permitted or not. And calling the checkPermission method asks that question.
    To grant the permission to read that file, you must do that via the policy file. Java code can't grant itself any permissions (for obvious reasons).

Maybe you are looking for

  • Podcasts not updating since upgrade to 11.3.1

    I have iTunes store and non-iTune store podcasts and they all stopped updating after the upgrade to 11.3.1.  Occasionally some would get a new episode, but not all the ones missed. I tried unsubscribing and subscribing to some of them, but it doesn't

  • Icloud music storage

    Forgive my stupidity, but if store all my music in the Cloud does that mean i don't have to have it taking up gb's on my computer.  I have over 850 albums which take up a lot of space so if i could free this up by storing elsewhere that would be fant

  • VPN/RDC HP OfficeJet 4632 printing

    I am trying to print from my Office workstation to my Laptop with USB connection to the HP OfficeJet 4632 printer. I have installed the print drivers for the OJ 4632 on the Office workstation that is running Win 7 Pro x64. The workstation showes the

  • Fax mobile phone

    hi, is it possible to upgrade nokia e71 to send fax from itself? thank you!

  • How to find the hello button in the firefox mobile?

    I cant locate the hello button in the menu