Connecting to Oracle from Visual Studio
http://blogs.msdn.com/b/kaevans/archive/2009/07/18/connecting-to-oracle-from-visual-studio.aspx
1. Install the Oracle Developer Tools
2. Configure TNSNames.ora
1) C:\app\kirke\product\11.1.0\client_1\Network\Admin
2)
oraclexe (a) =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = xe (b))
)
)
(a) data source name
(b) SID
3) Set the SID Environment Variable
oracle_sid
xe
3. Connect with Server Explorer in Visual Studio 2010
data source: oraclexe
In visual studio server explorer, the only required information is the data source name (), username and password; other information like Protocol, Host, Port, Service_Name, etc are maintained in tnsnames.ora.
1. Install the Oracle Developer Tools
2. Configure TNSNames.ora
1) C:\app\kirke\product\11.1.0\client_1\Network\Admin
2)
oraclexe (a) =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = xe (b))
)
)
(a) data source name
(b) SID
3) Set the SID Environment Variable
oracle_sid
xe
3. Connect with Server Explorer in Visual Studio 2010
data source: oraclexe
In visual studio server explorer, the only required information is the data source name (), username and password; other information like Protocol, Host, Port, Service_Name, etc are maintained in tnsnames.ora.
Comments
Post a Comment