VS2010, ORACLE11G        Dim con As OracleConnection = New OracleConnection()
        con.ConnectionString = "data source=orcl;uid=sys as SYSDBA;pwd=walp412586X; integrated security=yes"
        con.Open()
ORA-01017: invalid username/password; logon denied
ORACLE   初学者 

解决方案 »

  1.   

    cnn.ConnectionString = "User Id=/;Data Source=orcl;DBA Privilege=SYSDBA"
    将ConnectionString属性的User Id设为/,便可以使用操作系统认证。另外可以指定DBA
    Privilege属性,可以以SYSDBA权限或SYSOPER权限来连接Oracle数据库。
      

  2.   

    你的用户名输入的不正确,sys as SYSDBA 是无法作为数据库的用户名的,去掉后面的as SYSDBA。
      

  3.   

    ORA-01017: invalid username/password; logon 还是这个错误
    denied
      

  4.   

     <connectionStrings>
            <add name="CrystalReportsApplication1.Properties.Settings.ConnectionString"
                connectionString="Data Source=xxx;User ID=xxxx;Password=xxxx;Unicode=True"
                providerName="System.Data.OracleClient" />
        </connectionStrings>
      

  5.   

    ORA-01017 invalid username/password; logon deniedCause: An invalid username or password was entered in an attempt to log on to Oracle. The username and password must be the same as was specified in a GRANT CONNECT statement. If the username and password are entered together, the format is: username/password.Action: Enter a valid username and password combination in the correct format.