- 在數據字典內,所有的用戶名缺省都用大寫;同時區分大小寫
- 使用雙引號可以強制數據字典內用創建時的大小寫。但登錄時必須也用雙引號
- 密碼,無論是否使用雙引號,都是大小寫無關的
- 不用栓引號,創建時是大寫的,可以用小寫登錄
創建時是小寫的,只能用小寫
C:/>set NLS_LANG=SIMPLIFIED CHINESE_CHINA.ZHS16GBK
C:/>sqlplus system/mercurypw@pcdb95
SQL*Plus: Release 10.2.0.1.0 - Production on 星期五 12月 4 00:58:04 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Release 10.2.0.1.0 - Production
SQL> create user "PCdB001" identified by MIOrchid#1;
User created.
SQL> grant connect, resource to "PCdB001";
Grant succeeded.
SQL> conn PCdB001/MIOrchid#1@pcdb95
ERROR:
ORA-01017: invalid username/password; logon denied
Warning: You are no longer connected to ORACLE.
SQL> conn system/mercurypw@pcdb95
Connected.
SQL> select username from dba_users where username like 'PCDB%';
USERNAME
------------------------------
PCDB95
SQL> select username from dba_users where username like 'PCdB%';
USERNAME
------------------------------
PCdB001
SQL> conn "PCdB001/MIOrchid#1"@pcdb95
Enter password:
ERROR:
ORA-01017: invalid username/password; logon denied
Warning: You are no longer connected to ORACLE.
SQL> conn "PCdB001"/MIOrchid#1@pcdb95
Connected.
SQL> conn "PCdB001"/miorchid#1@pcdb95
Connected.
SQL> conn system/mercurypw@pcdb95
Connected.
SQL> create user pcdb001 identified by "MIOrchid#1";
User created.
SQL> grant connect, resource to pcdb001;
Grant succeeded.
SQL> conn pcdb001/miorchid#1@pcdb95
Connected.
SQL>
SQL> conn pcdb001/MIOrchid#1@pcdb95
Connected.
SQL> conn PCDB001/MioCHID#1@pcdb95
ERROR:
ORA-01017: invalid username/password; logon denied
Warning: You are no longer connected to ORACLE.
SQL> conn system/mercurypw@pcdb95
Connected.
SQL> select username from dba_users where username like 'PCDB%';
USERNAME
------------------------------
PCDB95
PCDB001
SQL> select username from dba_users where username like 'pcdb%';
no rows selected
SQL>
SQL> create user "PCDB111" identified by MIORCHID#1;
User created.
SQL> grant connect, resource to "PCDB111";
Grant succeeded.
SQL> conn PCDB111/miorchid#1@pcdb95
Connected.
SQL> conn system/mercurypw@pcdb95
Connected.
SQL> select username from dba_users where username like "PCDB%";
select username from dba_users where username like "PCDB%"
*
ERROR at line 1:
ORA-00904: "PCDB%": 標識符無效
SQL> select username from dba_users where username like 'PCDB%';
USERNAME
------------------------------
PCDB95
PCDB001
PCDB111
SQL> conn pcdb111/miorchid#1@pcdb95
Connected.
SQL> conn system/mercurypw@pcdb95
Connected.
SQL> select username from dba_users where username like 'pcdb%';
no rows selected
SQL>