asp.net 如何连接oracle数据库?
wwyf 2003-08-04 02:03:45 asp.net 如何连接oracle数据库?
请问:
为什么我在.net中编写xxx.aspx时,输入如 <form 时代码专家
没有任何提示?如action 之类???
又如win2000,oracle8 我连接数据库时
代码:
<%@ page Language=VBScript debug=true %>
<%@ import namespace="system.data" %>
<%@ import namespace="system.data.oledb" %>
<script runat=server>
sub page_load(byval sender as object ,byval e as eventargs)
dim dbconn as oledbconnection
dim dbsql as new oledbcommand
dbconn=new oledbconnection("Provider=MSDAORA.1;Password=good;User ID=ff;Data Source=fly")
dbsql.commandtext="select * from users"
dbsql.connection=dbconn
dbsql.connection.open
dbsql.executenonquery()
end sub
</script>
/////////////////////////////
则出现错误提示:
Oracle client and networking components were not found.
These components are supplied by Oracle Corporation
and are part of the Oracle Version 7.3.3 or later client software installation.
Provider is unable to function until these components are installed.
如何处理??
谢谢!!!