string connectionString = String.Format("Provider=OraOLEDB.Oracle;OLEDB.NET=true;User ID={0};password={1};Data Source={2}", username, password, database);
OleDbConnection connection = new OleDbConnection(connectionString);
connection.Open();
如果oracle密码过期,打开连接时会提示用户更改密码。我只是希望它失败并且不提示他们输入密码。