How to connect to Oracle10g Database without installing the Oracle client

Source: Internet
Author: User

First, search for the following files on the machine where the Oracle server is installed,
OCI. dll
Ocijdbc10.dll
Ociw32.dll
Orannzsbb10.dll
Oraocci10.dll
Oraociei10.dll
Sqlnet. ora
Tnsnames. ora
Classes12.jar
Ojdbc14.jar
Make it into a compressed file and configure it for use by the target computer.

1.SetOracleinstantclient.rarDecompress the package to a directory.,For exampleD: \ oracleinstantclient

2.ConfigurationD: \ oracleinstantclientOfTnsnames. oraFile, you only need to modify the server address, service name, and port. 

3, Configure environment variables, inPathAdd to variableD: \ oracleinstantclient

4Add the following key value to the Registry

[HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Control \ Session Manager \ environment]

"LD_LIBRARY_PATH" = "D: \ oracleinstantclient"

"Nls_lang" = "american_america.zhs16gbk"

"Tns_admin" = "D: \ oracleinstantclient"

5If yesASP. NETApplicationASPnetUser allocationD: \ oracleinstantclientFolder ACL.

 With the above settings, you can achieve installation-freeOracleClient, connectOracleDatabase server.

 You can also create an installation package from the decompressed files and manual processes to achieve automatic installation.

 Note:

1, ConnectOracle9.2.

2If you useJDBCConnection. You need to download it from the official website.Instantclient-jdbc-win32-10.1.0.2.zip:IncludeJDBCDriverPackage 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.