ORA-00988: missing or invalid password(s)

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

大家好,又见面了,我是你们的朋友全栈君。

创建账号或修改账号密码时有可能会遇到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.

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/154566.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • c++计算程序运行时间_程序设计5个基本步骤

    c++计算程序运行时间_程序设计5个基本步骤注意:控制台需要加 #include “atltime.h” 头文件#include “stdafx.h” #include “atltime.h”#include <iostream>using namespace std; int _tmain(int argc, _TCHAR* argv[]){ CString strTime; //用于将CTime对象格式…

    2022年8月18日
    9
  • Base64实现android端图片上传到server端

    Base64实现android端图片上传到server端

    2022年1月19日
    47
  • 安卓渗透测试工具_渗透测试包括哪些

    安卓渗透测试工具_渗透测试包括哪些0x00前言     伴随着移动互联网的高速发展,手机端走进普通大众的日常生活,这里我们将基于android系统介绍一些基本android渗透测试必备的使用工具。这些工具更多的是安装在android客户端。至于PC端,在后面会陆续介绍。这里建议先把手机root了,获得root权限。至于怎样root,每个品牌每个型号的手机各不同,可以自行百度或者参考你手机的官网。0x01系统管理

    2022年8月12日
    10
  • JDK5什么是新的堵塞队列线程(四)

    JDK5什么是新的堵塞队列线程(四)

    2022年1月12日
    44
  • pycharm安装包说pip版本不对_django库

    pycharm安装包说pip版本不对_django库一、pycharm安装库与pip安装库的区别项目使用哪个解释器,就用哪个解释器下的库:python安装目录解释器就用该目录下的库,项目的解释器就用项目里面的库!而pip安装的库是保存在python安装目录解释器下的。“pip成功,pycharm识别不了”,这就是因为新建项目默认解释器是用“项目的解释器”的,但是pip安装的第三方库是在python安装目录下,所以会识别不了。这里我只把我需要知道的摘下来,具体友情链接:关于pip安装第三方库,但PyCharm中却无法识别的问题;以及PyCharm安装第三

    2022年8月26日
    7
  • springboot整合shiro实现权限控制

    springboot整合shiro实现权限控制ApacheShiro是一个强大且易用的Java安全框架,执行身份验证、授权、密码学和会话管理。使用Shiro的易于理解的API,您可以快速、轻松地获得任何应用程序,从最小的移动应用程序到最大的网络和企业应用程序。上个月写了一个在线教育的项目用到了shiro权限控制,这几天又复盘了一下,对其进行了深入探究,来总结一下。下面所总结的有关shiro的代码已经传到我的github上,可以访问下面的……

    2025年8月22日
    4

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号