sqlplus / as sysdba報錯ORA-01017: invalid username/password; logon denied
客戶現場,有開發人員問我,他使用系統認證沒有用密碼登陸Oracle資料庫,報錯,提示使用者名稱和密碼無效,很疑惑,問我為什麼他使用系統認證會報錯。我登陸他的系統後,首先看他的系統認證是否是開啟的,果然發現他的系統是關閉是作業系統認證功能的,開啟後問題解決。現在總結一下Oracle的密碼檔案及作業系統認證知識點。
今天上班遇到相同的報錯。
一、密碼檔案
作用:主要進行dba許可權的認證。
位置:
Linux下的存放位置:$ORACLE_HOME/dbs/orapw$ORACLE_SID
即:ORACLE_HOME/dbs/orapw<sid>
二、是否作業系統認證
決定在兩個引數中
1、remote_remote_login_passwordfile
位於$ORACLE_HOME/dbs/spfile$ORACLE_SID.ora引數檔案中。
none:關閉密碼檔案認證。
exclusive:開啟密碼檔案認證,自己獨佔使用(預設值)。
shared:要密碼檔案認證,不同例項的dba使用者可以共享密碼檔案。
2、SQLNET.AUTHENTICATION_SERVICES
位於$ORACLE_HOME/network/admin/sqlnet.ora 。
none:關閉作業系統認證,只能密碼認證。
all:Linux和AIX系統,開啟作業系統認證,關閉密碼檔案認證,但遠端需要密碼檔案認證。
nts:用於Windows平臺開啟作業系統認證。
三、測試
1、在sqlnet.ora中追加SQLNET.AUTHENTICATION_SERVICES = none,嘗試dba免密登陸。
1
2
3
4
5
6
7
8
9
|
[ora122@enmodb1 admin]$ sqlplus /
as
sysdba
SQL*Plus: Release 12.2.0.1.0 Production
on
Fri Mar 1 23:49:34 2019
Copyright (c) 1982, 2016, Oracle.
All
rights reserved.
ERROR:
ORA-01017: invalid username/
password
; logon denied
Enter
user
-
name
:
ERROR:
ORA-01017: invalid username/
password
; logon denied
|
2、將 SQLNET.AUTHENTICATION_SERVICES =all,再次嘗試dba使用者免密登陸。
1
2
3
4
5
6
|
[ora122@enmodb1 admin]$ sqlplus /
as
sysdba
SQL*Plus: Release 12.2.0.1.0 Production
on
Fri Mar 1 23:52:25 2019
Copyright (c) 1982, 2016, Oracle.
All
rights reserved.
Connected
to
:
Oracle
Database
12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production
SYS@ora122>
|
或者註釋掉也可以,預設是採用作業系統認證的。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/31546994/viewspace-2637352/,如需轉載,請註明出處,否則將追究法律責任。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/31547066/viewspace-2646296/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- ORA-01017:invalid username/password; logon deniedGo
- 遠端登入sys使用者報錯:ORA-01017: invalid username/password; logon deniedGo
- SYS使用者遠端登入報錯:ORA-01017: invalid username/password; logon deniedGo
- AD Administration error:ORA-01017: invalid username/password; logon deniedErrorGo
- ORA-01017: invalid username/password; logon denied ORA-02063: preceding line from TESTGo
- 【DG】搭建DG時報錯:ORA-01017、ORA-17627、ORA-17629 invalid username/password
- 【YashanDB資料庫】YAS-02143 invalid username/password, login denied資料庫
- RMAN-04006: error from auxiliary database: ORA-01017: invalid username/password;ErrorUXDatabase
- sqlplus / as sysdba無法登入的奇怪報錯SQL
- The password supplied with the username Domain\UserName was not correct. Verify that it was entered ...AI
- 啟動報錯:Access denied for user 'root'@'localhost' (using password:YES)localhost
- ConfigureGC.pl Reports - Invalid Username/Password. (文件 ID 602750.1)GC
- 報錯”ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: NO)”Errorlocalhost
- WCF Security:authentication based on Username/Password - Part I
- EBS在測試時報 APP-FND-01516: Invalid application username,password,or database.APPDatabase
- sqlplus因selinux報錯cannot restore segment prot after reloc: Permission deniedSQLLinuxREST
- vue專案中連線MySQL時,報錯ER_ACCESS_DENIED_ERROR: Access denied for user 'root'@'localhost' (using password:YES)VueMySqlErrorlocalhost
- nagios監控windows 報NSClient - ERROR: Invalid passwordiOSWindowsclientError
- sqlplus / as sysdba報錯ORA-01031: insufficient privileges的原因分析SQL
- sqlplus as sysdb登入報ora-01017SQL
- sqlplus -prelim/ as sysdba用法SQL
- 隨筆 sqlplus / as sysdbaSQL
- sqlplus / as sysdba 登入報許可權不足 for windowsSQLWindows
- windows 下用 as sysdba登陸報錯Windows
- nginx部署(13:Permission denied)報錯Nginx
- Access denied for user 'root'@'localhost' (using password: NO)localhost
- Oracle所有者不是dba 引起sqlplus / as sysdba 登入報錯ORA-01031OracleSQL
- Access denied for user 'default'@'%' to database 'shop'報錯Database
- python urllib socks5 auth username password 設定Python
- WCF Services Sample: Authenticate Silverlight Client based on UserName and Passwordclient
- iOS 上架報錯 This bundle is invalid 或 Invalid Image PathiOS
- sqlplus -prelim / as sysdba強制登入SQL
- React報錯之Element type is invalidReact
- mybatis 報錯: Invalid bound statement (not found)MyBatis
- sqlplus 啟動報錯SQL
- laravel mysql批量提交報Access denied 錯誤LaravelMySql
- OGG Director連線報錯Access denied
- #1045 - Access denied for user 'root'@'localhost' (using password: NO)localhost