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.