oracle连接问题

zp1314 2004-11-30 10:09:41
set conn=server.createobject("adodb.connection")
DestinateionconStr="Provider=MSDAORA.1;"
DestinateionconStr=DestinateionconStr & "Persist Security Info=True;"
DestinateionconStr=DestinateionconStr & "User ID=YQ;Password=YQ;Data Source=dellone"
conn.Connectionstring=DestinateionconStr
conn.Open

请问上面的这三句是什么意思
DestinateionconStr="Provider=MSDAORA.1;"
DestinateionconStr=DestinateionconStr & "Persist Security Info=True;"
DestinateionconStr=DestinateionconStr & "User ID=YQ;Password=YQ;Data Source=dellone"
...全文
149 10 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
fogheart 2004-12-03
  • 打赏
  • 举报
回复
"Driver={Microsoft ODBC for Oracle};Server=OracleServer.world;Uid=Username;Pwd=asdasd;"
中的Server=OracleServer.world,我应该填什么啊
填你的ORACLE数据库名称就成
上面的写的是ADO连接
angelheavens 2004-12-03
  • 打赏
  • 举报
回复
网络服务名,如下的mydata
MYDATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 123.123.123.11)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = mydata)
)
)
zp1314 2004-12-02
  • 打赏
  • 举报
回复
请问asp与oracle连接的这种方式是什么方式啊
<%
Dim conn
Dim DestinateionconStr
'on error resume next
set conn=server.createobject("adodb.connection")
DestinateionconStr="Provider=MSDAORA.1;"
DestinateionconStr=DestinateionconStr & "Persist Security Info=True;"
DestinateionconStr=DestinateionconStr & "User ID=sa;Password=sa;Data Source=sa"
conn.Connectionstring=DestinateionconStr
conn.Open
if err then
Response.Redirect "DBOpenError.htm"
Err.Clear
Response.End
end if

%>


zp1314 2004-12-01
  • 打赏
  • 举报
回复
"Driver={Microsoft ODBC for Oracle};Server=OracleServer.world;Uid=Username;Pwd=asdasd;"
中的Server=OracleServer.world,我应该填什么啊
fogheart 2004-12-01
  • 打赏
  • 举报
回复
Set objConn = Server.CreateObject("ADODB.Connection")
objConn.ConnectionString="Provider=OraOLEDB.Oracle.1;Persist Security Info=True;User ID=username;Password=pwd;Data Source=dbname;"
objConn.Open

然后用ORACLE的那个带NET名的工具,我记不大清楚了,自己建立一个TCP/IP连接,应该就OK了
smallyear 2004-12-01
  • 打赏
  • 举报
回复
New version:

"Driver={Microsoft ODBC for Oracle};Server=OracleServer.world;Uid=Username;Pwd=asdasd;"



Old version:

"Driver={Microsoft ODBC Driver for Oracle};ConnectString=OracleServer.world;Uid=myUsername;Pwd=myPassword;"
zp1314 2004-12-01
  • 打赏
  • 举报
回复
我用的数据库是oracle9,原来的版本低,用odbc怎么连接啊
zp1314 2004-12-01
  • 打赏
  • 举报
回复
但是为什么连接不上oracle啊
pwxing 2004-12-01
  • 打赏
  • 举报
回复
同意!!!
其实只需要改的就只有Data Source\ User ID \Password
阿泰 2004-11-30
  • 打赏
  • 举报
回复
Provider : 数据引擎
Persist Security Info : 字面意思是保持安全信息
如果使用了True的话,数据库连接的安全信息(如帐号和密码会作为连接的一部分在返回)会保持在连接中,据说会有安全性问题
我所做过的程序中这里的值一律是False,别的值我没有试验过,它可以接受的值是
true、false、yes 、 no。

Data Source: Oracle的数据库实例
User ID : 帐号
Password: 密码

28,409

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧