Connect to the oracle server without installing the oracle client (NOTE: For odp.net)

Source: Internet
Author: User

A few days ago, I was studying how to access oracle without installing the oracle client and synchronize the data in it to the local SQL Server database.

Preparation: First, you have to have the following. dll. This is for oracle10g. If it is a later version, use 10g or above.

Oci. dll, ocijdbc10.dll, ociw32.dll, orannzsbb10.dll, oraocci10.dll, oraociei10.dll, System. Data. OracleClient. dll

The last dll I used was Oracle. dataacess. dll at first, and then I always reported initialization failure because it was probably due to a local environment problem. I am going to investigate it when I have time. I put the above dll on csdn, and the address is at the end.

Below are some code in the demo:

Orcle connection object OracleConnection conn = connstr = (conn = OracleExecuteDataSet ExecuteDataSet (optional text, DataSet ExecuteDataSet (optional text, CommandType optional type, ====== (conn! = PrepareOracleCommand PrepareCommand (OracleCommand command, OracleConnection connection, CommandType initialize type, (connection. State! ==== (CommandParameters! = (OracleParameter parm View Code

The operation is basically the same as that of. net. There is nothing to say about it. The main thing is the above dll, which is very important.

Http://download.csdn.net/download/pcbzw/7097097 (csdn)

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.