Start an down Oracle Instance with Delphi
Posted: Tue 04 Sep 2007 14:49
Hi,
I'm using dbExpress driver for Oracle 2.50, Delphi 7.0 Built 4.453 and Oracle Database 10g.
I will connect with Delphi TSQLConnection a Oracle Database. The Instance of the Oracle Database is down. I will start the Instance with "startup". If I do this with a SQLPLUS console it will work.
There are some lines of my code
SQLConnection1 := TSQLConnection.Create(self);
with SQLConnection1 do
begin
DriverName := 'Oracle Net (Core Lab)';
GetDriverFunc := 'getSQLDriverORANET';
LibraryName := 'dbexpoda.dll';
VendorLib := 'dbexpoda.dll';
LoginPrompt := False;
with Params do
begin
Values['DataBase'] := 'myDatabase';
Values['User_Name'] := 'sys';
Values['Password'] := 'myPassword';
Values['RoleName'] := 'SYSDBA';
end;
if not Connected then open;
......
Is it possible to start a down Instance from Delphi? (if yes, whats the way?)
I'm using dbExpress driver for Oracle 2.50, Delphi 7.0 Built 4.453 and Oracle Database 10g.
I will connect with Delphi TSQLConnection a Oracle Database. The Instance of the Oracle Database is down. I will start the Instance with "startup". If I do this with a SQLPLUS console it will work.
There are some lines of my code
SQLConnection1 := TSQLConnection.Create(self);
with SQLConnection1 do
begin
DriverName := 'Oracle Net (Core Lab)';
GetDriverFunc := 'getSQLDriverORANET';
LibraryName := 'dbexpoda.dll';
VendorLib := 'dbexpoda.dll';
LoginPrompt := False;
with Params do
begin
Values['DataBase'] := 'myDatabase';
Values['User_Name'] := 'sys';
Values['Password'] := 'myPassword';
Values['RoleName'] := 'SYSDBA';
end;
if not Connected then open;
......
Is it possible to start a down Instance from Delphi? (if yes, whats the way?)