用控件时:
微软你可以不安oracle客户端用Microsoft OLE DB Provider for ODBC Drivers
安了还可以用Oracle Provider for OLE DB
用对象时:
用odbc的ole-db提供者:
 cn.open "server=tablespace;driver={Microsoft ODBC for Oracle};uid=;pwd=;"
oracle的本地ole-db提供者:
cn.open "provider=msdaora;data source=tablespace;user id=;password=;"

解决方案 »

  1.   

    Set adoConnection = New ADODB.Connection
    'adoConnection.Open "Provider=MSDAORA.1;Password=sa;User ID=SQL2KSA;Data Source=po8i2k;Persist Security Info=True"
    adoConnection.Open "Provider=OraOLEDB.Oracle.1;Persist Security Info=False;User ID=SQL2KSA;Password=SA;Data Source=po8i2k"
    'adoConnection.Open "Provider=OraOLEDB.Oracle.1;Persist Security Info=False;User ID=scott;Password=tiger;Data Source=po8i2k"
    Set adoRecordset = New ADODB.Recordset
    adoRecordset.CursorLocation = adUseClient
    'adoRecordset.Properties("IRowsetIdentity").Value = True
    adoRecordset.Open "SELECT * FROM blobtable", adoConnection, adOpenKeyset, adLockBatchOptimistic
    'Debug.Print adoRecordset.GetString
    Set DataGrid1.DataSource = adoRecordset
    'Set adoRecordset.ActiveConnection = Nothing
      

  2.   

    http://www.vbweb.co.uk/
    http://www.vbweb.co.uk/show.asp?id=6711. Introduction
    2. History of Oracle
    3. Client Components
    4. Configuring Net8
    5. Connecting to an Oracle database
    6. OLE DB Provider & ODBC
    7. Oracle Objects for OLE
    8. Overview of PL/SQL
    9. A sample ASP Application (1)
    10. A sample ASP Application (2)
    11. Stored Procedures
    12. Reference Cursors
    13. Summary