通过TCP/IP连接DB,无需安装Oracle客户端.

procedure TForm1.Button1Click(Sender: TObject);
begin
  self.OraSession1.Connected :=False;
  Self.OraSession1.Options.Direct:=true; //一定要设置为true
  self.OraSession1.ConnectString :='username/password@hostorIP:端口:serviceName';
//比如:'root/abcd1234@10.132.10.3:1521:testdb' try self.OraSession1.Connected :=true; except on E:Exception do raise Exception.Create(E.Message); end; ShowMessage('連接成功'); end;

  

相关文章:

  • 2021-06-16
  • 2021-11-03
  • 2021-08-29
  • 2021-10-01
  • 2022-01-10
  • 2021-08-30
  • 2022-01-16
猜你喜欢
  • 2021-07-04
  • 2022-12-23
  • 2021-05-17
  • 2021-11-18
  • 2021-12-09
  • 2021-09-23
  • 2022-01-26
相关资源
相似解决方案