What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 59092 |  Welcome, Guest!   Register  Login
 Home > Forums > ASP.NET > Ooracle database connction ...
Eager Minds

Ooracle database connction

Replies: 1 | Posted by: Eager Minds on 10/7/2012 | Category: ASP.NET Forums | Views: 355 | Status: [Member] | Points: 10  


this is my code for connection(for connecting to oracle using oledb )

OleDbConnection con =new OleDbConnection("provider=msdaora.1;User Id=myuserid;Password=mypassword");

but it shows error like this
ORA-06413: Connection not open.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.OleDb.OleDbException: ORA-06413: Connection not open.

Source Error:


Line 17: OleDbDataReader dr;
Line 18: string loantype1 = "", roi = "";
Line 19: con.Open();
Line 20: dr = cmd.ExecuteReader();
Line 21: DropDownList1.Items.Add("-----select---");

Source File: d:\aspnet\bankloansite\register.aspx.cs Line: 19


Reply | Reply with attachment | Alert Moderator

 Responses below this adGet hundreds of .NET Tips and Tricks videos

 Replies

Sureshknkt7
Sureshknkt7  
Posted on: 10/7/2012 11:41:40 PM
Level: Starter | Status: [Member] | Points: 25

Hi,


Check Your Oledb Connection login Credentials,


Thank you,
Suresh

Eager Minds, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Reply - Please login to reply


Click here to login & reply

About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/21/2013 11:11:52 AM