adajani1
asked on
Connect to Oracle database in C# ASP
Please help me in connecting to Oracle via a VPN connection.
My database is located on my school's server. I can connect to it using the following parameters:
* Name: apollo.ite.gmu.edu
* Port: 1521
* Oracle SID: ite10g
As long as I'm on the school network I can connect. But I am not sure how to add these parameters for my ASP page. Thank you,
My database is located on my school's server. I can connect to it using the following parameters:
* Name: apollo.ite.gmu.edu
* Port: 1521
* Oracle SID: ite10g
As long as I'm on the school network I can connect. But I am not sure how to add these parameters for my ASP page. Thank you,
ASKER
MY *.asp page will be on the school's network.
I was only provided with the above parameters. Not sure what driver they installed.
I was only provided with the above parameters. Not sure what driver they installed.
ASKER
I did an application with java b4 using the following parameters and it worked.. I just don't know how to include this info for my ASP.
String driverName = "oracle.jdbc.driver.Oracle Driver";
Class.forName(driverName);
System.out.println("Connec ting to Oracle...");
String url = "jdbc:oracle:thin:@apollo. ite.gmu.ed u:1521:ite 10g";
Connection conn = DriverManager.getConnectio n(url,"nam e","passwo rd");
String driverName = "oracle.jdbc.driver.Oracle
Class.forName(driverName);
System.out.println("Connec
String url = "jdbc:oracle:thin:@apollo.
Connection conn = DriverManager.getConnectio
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I suggest a split between ramumorla and myself.
i agree
Once you have the dataprovider installed you'll just need the proper references.
There's a decent page that has just about ever type of connection string available:
http://www.carlprothman.net/Default.aspx?tabid=81