Code: Select all
procedure TForm1.Button1Click(Sender: TObject);
begin
OraSession1:= TOraSession.Create(nil);
OraSession1.Username:='sys';
OraSession1.Password:='xxxxxxxxxxx';
OraSession1.Server:='192.168.1.8:1521:TESTDB';
OraSession1.ConnectMode:=cmSysDBA;
OraSession1.Options.Direct:=true;
while True do
begin
OraSession1.Connect;
OraSession1.Disconnect;
end;
end;
I've test it with ODAC v6.50(Trial) and v6.70(Trial), Delphi 2007. Oracle server 10.2.0.4, oracle client not installed.
P.S. Sorry for my bad English.