Home > Back-end >  The oracle database unidac way of using the client connection
The oracle database unidac way of using the client connection

Time:09-23

Unidac use client mode connection oracle, how to configure? Tried several parameters are not?
PLSQL already connected

CodePudding user response:

CodePudding user response:

Configuration uniconnection user name and password, will DIRECT set to TRUE, you can

CodePudding user response:

Is there any installation oracleProvider

CodePudding user response:

Configuration uniconnection user name and password, will DIRECT set to TRUE, you can

CodePudding user response:

1, need reference OracleUniProvider
2, the client need the support of oracle library oci. DLL
3, I am so packaging, you can refer to the
The function TSMUniDriver. Conntect () : a Boolean;
The begin
Disconnect ();
Case FDBParam. DbType of
DtMySQL: FConnection. ProviderName:='MySQL';
DtMSSQL: FConnection. ProviderName:='SQL Server;
DtSqlite: FConnection. ProviderName:='SQLite;
DtOracle: FConnection. ProviderName:='ORACLE';
end;
FConnection. SpecificOptions. Values: [' UseUnicode]='true';
FConnection. SpecificOptions. Values: [' Direct ']='true';
FConnection. Username:=FDBParam. Account;
FConnection. Password:=FDBParam. Password;
FConnection. Database:=FDBParam. DbName;
FConnection. Server:=FDBParam. Server;
FConnection. Port:=FDBParam. Port;
Try
FConnection. Connect;
Result:=FConnection. Connected;
Except,
Result:=false;
end;
end;
  • Related