$sqlplus /nolog
SQL>conn user/password@service [as sysdba/sysoper]或
$sqlplus "user/password@serivce [as sysdba/sysoper]"

解决方案 »

  1.   

    sqlplus和pl/sql下用以上方法
    如果是从前台程序如java,delphi则要配置相关jdbc或者ado驱动
      

  2.   

    --当然在用前要先引用.
    --参考:--模块
    Public Conn As New ADODB.Connection
    Public rs As New ADODB.Recordset
    Public cmd As New ADODB.CommandPublic Function DBPath() As String
        'DBPath = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\inventory_MS.mdb"
        DBPath = "Provider=MSDAORA.1;Password=romasys;User ID=apps;Data Source=demo;Persist Security Info=True"
    End Function
    Private Sub Form_Load()
        On Error GoTo Err
        Dim ConnStr As String  
        ConnStr = DBPath
        With Conn
            .ConnectionString = ConnStr
            .ConnectionTimeout = 10
            .CursorLocation = adUseClient
            .Open
        End With
        Set cmd.ActiveConnection = Conn
        cmd.CommandText = "select * from t_User"
        rs.CursorLocation = adUseClient
        rs.Open cmd, , adOpenStatic, adLockBatchOptimistic
        rs.MoveFirst
        Exit Sub
    Err:
        MsgBox ("连接数据库失败!")
        End
    End Sub
      

  3.   

    dinya2003(OK)兄弟算你狠,又让你抢先了!