C # .NET Connect Oracle's client mode

xiaoxiao2021-03-06  38

There is now a C # .NET program, which is required to connect to Oracle's database mydb, and the code of the database connection string in a .cs file is:

Using system.data.oraclient;

Public static string constr = "data source = mydb; user id = myname; password = myname; persist security info = false";

The above code indicates which C # program is connected to the Oracle client, the Oracle client connection service name is a database of MyDB in the Oracle service which is the C # program connection is which database is connected. So there is no need to be confused in order to exist two of the same names in the network, everything is handed over to Oracle's client.

This is the result I asked for everyone in the community.

转载请注明原文地址:https://www.9cbs.com/read-57929.html

New Post(0)