How to connect Delphi to Oracle (local server IP Address: 127.0.0.1)

Source: Internet
Author: User
How does delphi connect to Oracle (local server IP Address: 127.0.0.1)? Delphi/Windows SDK/API
Http://www.delphi2007.net/DelphiDB/html/delphi_20061218083334247.html
As the question.
I found some remote server documents, but what's wrong?
Sid: myoracle

Do you still use ADO to connect to the Oracle database with odac?
Use ADO:
Step 1: install an Oracle client on the local machine, and then use net manager to create a service name connected to the server
Step 2: use ADO to connect

Odac:
It's easy to connect without installing an Oracle client. You can download an odac control.

The Oracle client needs to be installed with BDE. Currently, BDE is rarely used.

Does the Database need to be installed on the local machine?
BDE and ADO can all be used, as long as they can be connected...

We can consider using DOA.
Or Use ODBC to connect
Easy to use ODBC

You can use ADO to automatically generate strings.

First, use net assisant to create an Oracle Net service name and connect to the local machine. The IP address and Sid are specified during the service name configuration;
Use the ADO control in Delphi and use the Microsoft Oracle provided driver to connect to the Oracle database. Set the data source of the connection string (the server in the window configuration ), set the net service name configured for you. Of course, the user name and password of the connection must be prepared.

It's no different from connecting SQL.

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.