10g升級到11g密碼問題
升級前:
14:02:05 sys@myora>create tablespace test datafile '+DATA/oradata/myora/test.dbf' size 100M autoextend on next 50M;
Tablespace created.
Elapsed: 00:00:00.60
14:03:27 sys@myora>create user test default tablespace test identified by TEST;
User created.
Elapsed: 00:00:00.08
14:04:22 sys@myora>set linesize 1000 pagesize 1000
14:04:38 sys@myora>select username,password from dba_users;
USERNAME PASSWORD
------------------------------ ------------------------------
SYSTEM 2D594E86F93B17A1
SYS 8A8F025737A9097A
ORACLE_OCM 6D17CF1EB1611F94
TEST 7A0F2B316C212D67
DBSNMP E066D214D5421CCC
DIP CE4A36B8E06CA59C
OUTLN 4A3BA55E08595C81
TSMSYS 3DF26A8B17D0F29F
8 rows selected.
Elapsed: 00:00:00.02
create user test default tablespace test identified by tesT;
14:05:33 sys@myora>create user test default tablespace test identified by tesT;
User created.
Elapsed: 00:00:00.02
14:05:59 sys@myora>select username,password from dba_users;
USERNAME PASSWORD
------------------------------ ------------------------------
SYSTEM 2D594E86F93B17A1
SYS 8A8F025737A9097A
ORACLE_OCM 6D17CF1EB1611F94
TEST 7A0F2B316C212D67
DBSNMP E066D214D5421CCC
DIP CE4A36B8E06CA59C
OUTLN 4A3BA55E08595C81
TSMSYS 3DF26A8B17D0F29F
8 rows selected.
Elapsed: 00:00:00.00
這裡可以看出,10g設定密碼是,儲存的都是一樣的。
14:06:06 sys@myora>grant connect,resource to test;
Grant succeeded.
Elapsed: 00:00:00.04
升級後
[17:35:29 oracle@david_pri ~]$ sql
SQL*Plus: Release 11.2.0.3.0 Production on Fri Oct 11 17:35:31 2013
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, Automatic Storage Management, OLAP, Data Mining
and Real Application Testing options
SQL> conn test/test
Connected.
SQL> connect test/TEST
Connected.
SQL> conn test/tesT
Connected.
SQL>
可以看出升級後,密碼仍是不區分大小寫的。
以下是oracle官方給出的解釋,意思是新建使用者,或者修改了賬戶密碼,就會區分大小寫
In previous releases of Oracle Database, passwords were not case sensitive. If you import user accounts from a previous release, for example, Release 10g, into the current database release, the case-insensitive passwords in these accounts remain case insensitive until the user changes his or her password. If the account was granted SYSDBA or SYSOPER privilege, it is imported to the password file. (See "How Case Sensitivity Affects Password Files" for more information.) When a password from a user account from the previous release is changed, it then becomes case sensitive.
You can find users who have case sensitive or case insensitive passwords by querying the DBA_USERS view. The PASSWORD_VERSIONS column in this view indicates the release in which the password was created. For example:
SELECT USERNAME,PASSWORD_VERSIONS FROM DBA_USERS;
USERNAME PASSWORD_VERSIONS
------------------------------ -----------------
JONES 10G 11G
ADAMS 10G 11G
CLARK 10G 11G
PRESTON 11G
BLAKE 10G
The passwords for accounts jones, adams, and clark were originally created in Release 10g and then reset in Release 11g. Their passwords, assuming case sensitivity has been enabled, are now case sensitive, as is the password for preston. However, the account for blake is still using the Release 10g standard, so it is case insensitive. Ask him to reset his password so that it will be case sensitive, and therefore more secure.
我們可以先看一下升級後密碼相關資訊及修改密碼後相關情況。
SQL> SELECT USERNAME,PASSWORD_VERSIONS FROM DBA_USERS;
USERNAME PASSWORD
------------------------------ --------
OUTLN 10G
TEST 10G
SYS 10G
SYSTEM 10G
APPQOSSYS 10G 11G
DIP 10G
DBSNMP 10G
ORACLE_OCM 10G
8 rows selected.
SQL> alter user test identified by tesT;
User altered.
SQL> SELECT USERNAME,PASSWORD_VERSIONS FROM DBA_USERS;
USERNAME PASSWORD
------------------------------ --------
OUTLN 10G
TEST 10G 11G
SYS 10G
SYSTEM 10G
APPQOSSYS 10G 11G
DIP 10G
DBSNMP 10G
ORACLE_OCM 10G
8 rows selected.
SQL> conn test/test;
ERROR:
ORA-01017: invalid username/password; logon denied
Warning: You are no longer connected to ORACLE.
SQL> conn test/tesT
Connected.
結論是:升級資料庫的時候不需要擔心密碼大小些問題,但在修改密碼或者新建賬戶時,需要關注賬號密碼大小些問題。
當然,可以關掉這個密碼大小寫功能,修改sec_case_sensitive_logon 為false即可。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29033984/viewspace-1063863/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 10g升級至11g exp的問題解決
- 【問題處理】升級12c之後,10G密碼版本使用者無法登陸問題密碼
- Oracle從10g升級到11g詳細步驟Oracle
- Oracle從10g升級到11g詳細操作步驟Oracle
- 今天通過oracle 10g 升級到 11g ocp 考試Oracle 10g
- 升級Oracle 10g 到10.2.0.4Oracle 10g
- 11g升級到Oracle 12c碰到的問題(11g中不存在問題) - ORA-01792Oracle
- oracle 10g crs 10.2.0.3 升級到10.2.04不成功問題處理Oracle 10g
- 10G遷移升級到11G使用SPA 分析SQL效能例項SQL
- ORACLE9I升級到10GOracle
- Oracle 11g存在密碼過期問題Oracle密碼
- 10g升級至11g後資料庫無法啟動的問題解決資料庫
- Oracle9i 升級到10g 後,大多數SQL變慢的問題OracleSQL
- Oracle 10g升級psu的兩個小問題Oracle 10g
- 資料升級到5.1所遇到的問題
- Oracle 10g/11g 升級psu步驟Oracle 10g
- Oracle 11g升級到12COracle
- 靜默升級oracle 11g (從11.2.0.1升級到11.2.0.4)Oracle
- ORACLE9I升級到10G(zt)Oracle
- oracle 11g 密碼延遲驗證問題Oracle密碼
- ORACLE 從10G 單機 並升級到11G RAC時報錯分析處理Oracle
- Swift3.0專案升級到4.2遇到問題Swift
- Laravel 5.5.* 升級到 5.7.* 問題記錄Laravel
- Windows升級到oracle 11g的異機物理升級文件(冷備)WindowsOracle
- linux 上 10g rac 升級到10.2.0.4Linux
- 11g升級到Oracle 12c碰到的問題 - ORA-00904 WM_CONCATOracle
- Laravel5.5 升級到 5.7 問題及解決方法Laravel
- Oracle RAC 10.2.0.5升級到11.2.0.4遇到的問題Oracle
- 升級Android Studio到1.0.2的問題解決Android
- [網路資料] Oracle9i 升級到10g後的效能問題 - 引數調整Oracle
- ORACLE 10G 升級Oracle 10g
- 資料庫11g升級中一次奇怪的問題資料庫
- Oracle 10g rac升級(10.2.0.1 Rac到10.2.0.4)Oracle 10g
- Windows 下 oracle 10g升級到10.2.0.4的方法WindowsOracle 10g
- 10G密碼版本使用者無法登陸問題密碼
- 9i升級10g後發現job執行出問題
- impdp 10g/11g問題解決
- JDK升級問題小結JDK