Web server configuration of ADO. Net EF + Oracle

Source: Internet
Author: User

1. Install the simplified dotnet35sp1 version

2. Register eforacleprovider:

C: \> gacutil/I eforacleprovider. dll

Gacutil.exe and eforacleprovider. dll are available in the current directory. Eforaclesampleprovider ProjectSource codeObtained after compilation

Eforacleprovider. dll. If the server has a vs2008 environment, you can directly compile it to achieve the registration effect.

3. Configuration: C: \ WINDOWS \ Microsoft. NET \ framework \ v2.0.50727 \ config \ machine. config

<Add name = "Ef ORACLE data provider" invariant = "eforacleprovider" Description = "Ef provider for Oracle"

Type = "eforacleprovider. eforacleproviderfactory, eforacleprovider, version = 1.0.0.0, culture = neutral,

Publickeytoken = def642f226e0e59b "/>

Between <dbproviderfactories> </dbproviderfactories>

4. Simplified Oracle client Configuration:

Add the system environment variable tns_admin. The value is c: \ instantclient.

Add: C: \ instantclient to the path value of the environment variable.

Required file:

Msvcr71.dll
OCI. dll
Oraociei11.dll

You do not need to install oracleclient or odtwithodac. The dllcan be downloaded from odac111_21xcopy.zipor instantclient-basic-win32-11.1.0.7.0.zip.

.

5. Configure tnsnames. ora and put it in the instantclient directory.

RCM =
(Description =
(Address_list =
(Address = (Protocol = TCP) (host = 192.168.1.200) (Port = 1521 ))
)
(CONNECT_DATA =
(SERVICE_NAME = RCM)
)
)

6. It takes effect after restart.

In Windows XP SP3 environment, the test passes.

Related Article

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.