Click here to Skip to main content
15,898,371 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Create a connection string to connect oracle database from asp.net using following information.

ipaddress;
sid
userid;
password;
Posted

Hi friend,

Create Connection string to ORACLE:

1. Open notepad
2. save as "filename.udl" on desktop
3. open filename.udl by double clicking
4. Go to provider tab ans select "Microsoft OLEDB provider for Oracle"
5.click on NEXT
6. It will take you to Connection tab
7. enter the server name
8. user name and password of your oracle
9. click on test connection button
10. You will get successfull connectoin message
11. Then close it.
12. Open the filename.udl file by right clicking on and select open with NOtepad
13. You will find a connection string to Oracle.
 
Share this answer
 
 
Share this answer
 
see
http://www.connectionstrings.com/oracle[^]
and other simple way to create connection string use these steps

For connectivity in visual studio 
open Server Explorer
right click add Connection
Follow simple steps
After Creating Connection Right click on Database
Click on properties
In Proprties Connection String will be found.
Copy This String.
 
Share this answer
 
v2
Comments
partyabhijeet 2-Feb-12 6:27am    
thanks.
what will be server name if i know ipaddress,portal and sid..

how would i get server name??
uspatel 2-Feb-12 6:52am    
run query
SELECT host_name
FROM v$instance

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900