12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
ADADADADAD
建站问答 时间:2024-11-30 19:50:00
作者:文/会员上传
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
在PL/SQL中连接Oracle数据库有以下几种方法:使用连接字符串:DECLAREconnUTL_SMTP.Connection;BEGINconn := UTL_SMTP.Open_Connection('smtp.example.com', 25);END
以下为本文的正文内容,内容仅供参考!本站为公益性网站,复制本文以及下载DOC文档全部免费。
在PL/SQL中连接Oracle数据库有以下几种方法:
使用连接字符串:
DECLAREconnUTL_SMTP.Connection;BEGINconn := UTL_SMTP.Open_Connection('smtp.example.com', 25);END;
使用TNS连接:
DECLAREconnUTL_SMTP.Connection;BEGINconn := UTL_SMTP.Open_Connection('mytnsalias');END;
使用用户名和密码连接:
DECLAREconnUTL_SMTP.Connection;BEGINconn := UTL_SMTP.Open_Connection( host => 'smtp.example.com', port => 25, username => 'myusername', password => 'mypassword');END;
使用连接描述符:
DECLAREconnUTL_SMTP.Connection;BEGINconn := UTL_SMTP.Open_Connection( connstring => '(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=smtp.example.com)(PORT=25))(CONNECT_DATA=(SID=ORCL)))' );END;
请根据实际情况选择适合你的连接方法。
11-20
11-19
11-20
11-20
11-20
11-19
11-20
11-20
11-19
11-20
11-19
11-19
11-19
11-19
11-19
11-19