oracle绿色版制作

连接字符串:

Data Source=(DESCRIPTION =(ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST = 172.68.0.150)(PORT = 1521)))(CONNECT_DATA =(SERVICE_NAME = ORCL)));

Persist Security Info=True;

User ID=test;

Password=1;

mybati.net版本

ISqlMapper mapper = Mapper.Instance();
mapper.DataSource.ConnectionString = connStr;

一下4个文件都在运行目录即可。

oci.dll
Oracle.DataAccess.dll
oraociei11.dll
OraOps11w.dll

文件来源:

instantclient-basic-win-x86-64-11.2.0.1.0.zip
ODAC112021Xcopy_x64.zip

以上可从oracle获取

你可能感兴趣的:(oracle,C#)