procedure TForm1.FormCreate(Sender: TObject);
begin
pass:='abs';
user:='sys';
servername:='absdate';
mycon:='Provider=MSDAORA.1;Password= '+pass+ ';User ID= '+user+ ';Persist Security Info=True; '+ 'Data Source= '+servername;
con1.ConnectionString:=mycon;
con1.Open;
end;如上代码 连接oracle数据库 run后出现
---------------------------
Debugger Exception Notification
---------------------------
Project Project1.exe raised exception class EOleException with message 'ORA-28009: connection to sys should be as sysdba or sysoper'. Process stopped. Use Step or Run to continue.
---------------------------
OK Help
---------------------------如何处理?谢谢赐教...
begin
pass:='abs';
user:='sys';
servername:='absdate';
mycon:='Provider=MSDAORA.1;Password= '+pass+ ';User ID= '+user+ ';Persist Security Info=True; '+ 'Data Source= '+servername;
con1.ConnectionString:=mycon;
con1.Open;
end;如上代码 连接oracle数据库 run后出现
---------------------------
Debugger Exception Notification
---------------------------
Project Project1.exe raised exception class EOleException with message 'ORA-28009: connection to sys should be as sysdba or sysoper'. Process stopped. Use Step or Run to continue.
---------------------------
OK Help
---------------------------如何处理?谢谢赐教...
begin
pass:='abs';
user:='sys';
servername:='absdate';
mycon:='Provider=MSDAORA.1;Password= '+pass+ ';User ID= '+user+ ';Persist Security Info=True; '+ 'Data Source= '+servername;
con1.ConnectionString:=mycon;
con1.Connected:=true;
end;
那delphi应该咋写代码??查查