PLSQL already connected
CodePudding user response:
CodePudding user response:
Configuration uniconnection user name and password, will DIRECT set to TRUE, you canCodePudding user response:
Is there any installation oracleProviderCodePudding user response:
Configuration uniconnection user name and password, will DIRECT set to TRUE, you canCodePudding user response:
1, need reference OracleUniProvider2, 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;