ORA-00988: missing or invalid password(s)

简介:

创建账号或修改账号密码时有可能会遇到ORA-00988: missing or invalid password(s),那么什么情况下会遇到这种错误呢? 一般是因为密码的设置不符合命名规范:

1:密码是关键字,但是没有用双引号包裹起来。

2:密码以数字开头,但是没有用双引号包裹起来

3:密码包含特殊字符,并且没有用双引号包裹起来。

 

官方文档关于passwor的介绍如下:

The BY password clause lets you creates a local user and indicates that the user must specify password to log on to the database. Passwords can contain only single-byte characters from your database character set regardless of whether the character set also contains multibyte characters.

Passwords must follow the rules described in the section "Schema Object Naming Rules", unless you are using the Oracle Database password complexity verification routine. That routine requires a more complex combination of characters than the normal naming rules permit. You implement this routine with the UTLPWDMG.SQL script, which is further described in Oracle Database Security Guide.

 

而Schema Object Naming Rules就包含下面这些规则。

More usernames than passwords were specified in a GRANT statement. A valid password must be specified for each username listed in the GRANT statement. This error indicates that you are violating the object names and qualifiers for Oracle. The following rules apply when naming objects:

1) Names must be from 1 -30 characters long with the exceptions: - Names of database are limited to 8 characters. - Names of database links can be as long as 128 characters.

2) Names cannot contain quotation marks.

3) Names are not case-sensitive. (注意,这条只适用于ORACLE 10g)

4)A name must begin with and contain an alphanumeric character from your database character set unless surrounded by double quotation marks. 5) Oracle strongly discourages using $ and #.

 

下面我们通过几个案例来了解一下上面的内容吧

 

1:密码是关键字,但是没有用双引号。

SQL> create user test identified by table;
create user test identified by table
                               *
ERROR at line 1:
ORA-00988: missing or invalid password(s)
 
 
SQL> create user test identified by 'table';
create user test identified by 'table'
                               *
ERROR at line 1:
ORA-00988: missing or invalid password(s)
 
 
SQL> create user test identified by "table";
 
User created.

clip_image001

 

2:密码以数字开头,但是没有使用双引号

SQL> create user test identified by 123456;
create user test identified by 123456
                               *
ERROR at line 1:
ORA-00988: missing or invalid password(s)
 
 
SQL> create user test identified by '123456';
create user test identified by '123456'
                               *
ERROR at line 1:
ORA-00988: missing or invalid password(s)
 
 
SQL> create user test identified by "123456";
 
User created.

clip_image002

 

3:密码包含特殊字符,并且没有用双引号。

SQL> drop user test;
 
User dropped.
 
SQL> create user test identified by k*123$6;
create user test identified by k*123$6
                                *
ERROR at line 1:
ORA-00922: missing or invalid option
 
 
SQL> create user test identified by 'k*123$6';
create user test identified by 'k*123$6'
                               *
ERROR at line 1:
ORA-00988: missing or invalid password(s)
 
 
SQL> create user test identified by "k*123$6";
 
User created.
相关文章
|
2月前
|
关系型数据库 MySQL 数据安全/隐私保护
问题:ERROR 1819 (HY000) Your password does not satisfy the current policy requirements
问题:ERROR 1819 (HY000) Your password does not satisfy the current policy requirements
23 0
|
3月前
|
安全 关系型数据库 MySQL
ERROR 1819 (HY000): Your password does not satisfy the current policy requirements问题处理
【5月更文挑战第8天】ERROR 1819 (HY000): Your password does not satisfy the current policy requirements问题处理
29 2
|
3月前
|
安全 关系型数据库 MySQL
ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
24 2
|
3月前
|
SQL Oracle 关系型数据库
【已解决】ORA-01722: invalid number
【已解决】ORA-01722: invalid number
101 0
|
Oracle 关系型数据库 数据安全/隐私保护
在Oracle中,ORA-01017 invalid username password; logon denied原因有哪些
在Oracle中,ORA-01017 invalid username password; logon denied原因有哪些
2097 0
|
SQL Oracle 关系型数据库
ORA-01722:invalid number
Oracle表字段为`VARCHAR2`时,where条件出现`NUMBER`的匹配,`可能`会出现该错误。
271 0
ORA-01722:invalid number
|
Linux
WARNING: Re-reading the partition table failed with error 22: Invalid argument
在划分磁盘分区时,遇到错误“WARNING: Re-reading the partition table failed with error 22: Invalid argument” 如下所示: [root@DB-Server u02]# fdisk -l   Disk /dev/sda: 500.
2517 0
|
关系型数据库 MySQL 数据安全/隐私保护