现在新出了专门连接ORACLE的DATAPROVIDER。到www.microsoft.com/net中下载回去装吧。应该都带有帮助的。

解决方案 »

  1.   

    嘿!不是这个样子的啦,现在是需要连接oracle
      

  2.   

    oledb不可以吗?或者用楼上兄弟spring_ok说的,也可以啊!只要注意你的ConnectionString和StoreProcedure、sql就可以了。
      

  3.   

    oledb的连接方式如下来做:
    1、确保WEB服务器上至少安装了 ORACLE的客户端软件,且已经配置好ORACLE服务。
    2、新建一个文本文件,命名为 xxx.udl
    3. 双击该UDL文件,从DATAPROVIDER中选择ORACLE OLEDB驱动程序。
    4 略。。
    5 配置完成后,将该UDL文件中的连接串用作程序中的 connectstring 就OK了。
      

  4.   

    [Visual Basic]
    Dim nwindConn As OleDbConnection = New OleDbConnection("Provider=SQLOLEDB;Data Source=localhost;" & _
                                                           "Integrated Security=SSPI;Initial Catalog=northwind")
    nwindConn.Open()
    [C#]
    OleDbConnection nwindConn = new OleDbConnection("Provider=SQLOLEDB;Data Source=localhost;" +
                                                    "Integrated Security=SSPI;Initial Catalog=northwind");
    nwindConn.Open();
      

  5.   

    要启动connection pool,很简单,打开控制面板
    odbc管理器-〉找到驱动程序标签,选择oracle,右面启用缓冲池,确定就可以了
      

  6.   

    tiantian335 (田甜) :问个私人问题,你是哪里人?
      

  7.   

    ORACLE一般是用OLEDB连asp.net的,设置好服务器端的ORACLE
    代码如下:
    string mySelectQuery="select * from tab";
    string myConnectString = "user id=user;password=pass;data source=data;provider=MSDAORA";
    OleDbConnection myConnection = new OleDbConnection(myConnectString);
    OleDbDataAdapter myCommand = new OleDbDataAdapter();
    myCommand.SelectCommand=new OleDbCommand(mySelectQuery, myConnection);DataSet ds = new DataSet();
    myCommand.Fill(ds,"table");
    DataList1.DataSource=ds.Tables["table"].DefaultView;
    DataList1.DataBind();
      

  8.   

    string myConnectString = "user id=user;password=pass;data source=data;provider=MSDAORA";
    这句里的各个值根据你的配置写
      

  9.   

    最后用了oledbc来连,马马虎虎行了吧,也该结贴了