ORA-01017:invalid username/password; logon denied
現象:
客戶應用的開發人員反映使用plsql developer登入test使用者的時候報錯:ORA-01017:invalid username/password; logon denied,使用system和sys在pl/sql developer登入就沒問題。
在伺服器本機測試:
$ sqlplus /nolog
SQL*Plus: Release 10.2.0.4.0 - Production on Thu Apr 24 10:30:50 2014
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
SQL> conn test/test
ERROR:
ORA-01017: invalid username/password; logon denied
SQL> show parameter remote_login_passwordfile
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
remote_login_passwordfile string EXCLUSIVE ------------------此處為Oracle預設的值,沒問題。
嘗試:
$ export ORACLE_SID=test
$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.4.0 - Production on Thu Apr 24 11:28:23 2014
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> select open_mode from v$database;
OPEN_MODE
----------
READ WRITE
其中還懷疑是因為開發人員未給使用者賦許可權:
SQL> GRANT CREATE SESSION TO test;
Grant succeeded.
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
$ sqlplus /nolog
SQL*Plus: Release 10.2.0.4.0 - Production on Thu Apr 24 11:28:48 2014
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
SQL> conn test/test
ERROR:
ORA-01017: invalid username/password; logon denied ------------看來不是許可權問題。
SQL> conn / as sysdba
Connected.
SQL> show parameter service;
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
service_names string test
SQL> alter user test identified by test;
User altered.
該方案成功!
SQL> conn test/test
Connected.
最後找開發人員獲取建使用者的指令碼,發現確實是建立使用者時設定密碼有問題:
CREATE USER test
IDENTIFIED BY VALUES 'test' -----------------------此行導致的,一般使用 identified by 直接加密碼即可!!,
DEFAULT TABLESPACE TEST_DATA identied by values適用於加密方式指定密碼的,一般為
TEMPORARY TABLESPACE TEMP 一串16禁止無可讀性的字元,如果明文指定密碼的話,使用
PROFILE DEFAULT identied by password即可。
ACCOUNT UNLOCK;
-- 3 Roles for test
GRANT CONNECT TO test;
GRANT DBA TO test;
GRANT RESOURCE TO test;
ALTER USER test DEFAULT ROLE ALL;
-- 2 System Privileges for test
GRANT CREATE ANY TABLE TO test;
GRANT UNLIMITED TABLESPACE TO test;
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/20802110/viewspace-1153323/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- AD Administration error:ORA-01017: invalid username/password; logon deniedErrorGo
- sqlplus / as sysdba報錯ORA-01017: invalid username/password; logon deniedSQLGo
- 遠端登入sys使用者報錯:ORA-01017: invalid username/password; logon deniedGo
- SYS使用者遠端登入報錯:ORA-01017: invalid username/password; logon deniedGo
- ORA-01017: invalid username/password; logon denied ORA-02063: preceding line from TESTGo
- 【YashanDB資料庫】YAS-02143 invalid username/password, login denied資料庫
- RMAN-04006: error from auxiliary database: ORA-01017: invalid username/password;ErrorUXDatabase
- 【DG】搭建DG時報錯:ORA-01017、ORA-17627、ORA-17629 invalid username/password
- The password supplied with the username Domain\UserName was not correct. Verify that it was entered ...AI
- ConfigureGC.pl Reports - Invalid Username/Password. (文件 ID 602750.1)GC
- WCF Security:authentication based on Username/Password - Part I
- EBS在測試時報 APP-FND-01516: Invalid application username,password,or database.APPDatabase
- Access denied for user 'root'@'localhost' (using password: NO)localhost
- python urllib socks5 auth username password 設定Python
- WCF Services Sample: Authenticate Silverlight Client based on UserName and Passwordclient
- #1045 - Access denied for user 'root'@'localhost' (using password: NO)localhost
- mysql 1045, "Access denied for user 'root'@'localhost' (using password: NO)"MySqllocalhost
- nagios監控windows 報NSClient - ERROR: Invalid passwordiOSWindowsclientError
- MYSQL解決error: 'Access denied for user 'root'@'localhost' (using password:MySqlErrorlocalhost
- ERROR 1045: Access denied for user: 'root@localhost' (Using password: NO)Errorlocalhost
- ORA-01045: user HR lacks CREATE SESSION privilege; logon deniedSessionGo
- 啟動報錯:Access denied for user 'root'@'localhost' (using password:YES)localhost
- java.sql.SQLException: Access denied for user ‘root‘@‘localhost‘ (using password: YES)JavaSQLExceptionlocalhost
- 【MySQL】---1045-Access denied for user 'root'@'localhost'(using password :YES)MySqllocalhost
- SourceTreet提交時顯示remote: Incorrect username or password ( access token )(4種解決辦法)REM
- OBIEE 11g users still able to login even with invalid password
- ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password:YES)Errorlocalhost
- 報錯”ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: NO)”Errorlocalhost
- ERROR 1045 (28000): Access denied for user 'root'@'127.0.0.1' (using password: YES)Error127.0.0.1
- vue專案中連線MySQL時,報錯ER_ACCESS_DENIED_ERROR: Access denied for user 'root'@'localhost' (using password:YES)VueMySqlErrorlocalhost
- How to Restore ASM Password File if Lost ( ORA-01017 ORA-15077 )_1644005.1RESTASM
- Linux錯誤 ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)LinuxErrorlocalhost
- SpringBoot中yml配置java.sql.SQLException: Access denied for user ‘root‘@‘localhost‘ (using password: NOSpring BootJavaSQLExceptionlocalhost
- MySQL系列:Docker安裝 MySQL提示錯誤:Access denied for user'root'@'localhost' (using password:yes)MySqlDockerlocalhost
- 解決Mysql:ERROR 1045 (28000):Access denied for user ‘root‘@‘localhost‘ (using password: NO)的方法MySqlErrorlocalhost
- URL username 屬性
- MySQL 8.0.13 密碼問題 ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)MySql密碼Errorlocalhost
- mac os x 安裝mysql遇到 Access denied for user ‘root‘@‘localhost‘ (using password: YES)的解決方法MacMySqllocalhost