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.
相关文章
|
存储 XML jenkins
iOS 底层原理38:自动化打包(一)Xcode + Shell脚本
iOS 底层原理38:自动化打包(一)Xcode + Shell脚本
4148 1
iOS 底层原理38:自动化打包(一)Xcode + Shell脚本
|
弹性计算 监控 Linux
跨云厂商网络接入&数据迁移
从华为云、腾讯云接入/搬站到阿里云网络时,暴露数据库公网 IP 有安全隐患,使用传统的 IPSec VPN 配置 VPN 网关过程繁琐,且连接带宽和速度不稳定,传输大量数据耗时很久。通过将 SAG vCPE 镜像部署在您网络的宿主机中,使宿主机作为一个 CPE(Customer-premises equipment)设备为您提供上云服务,突破了物理的限制,更加灵活地帮您将网络接入阿里云。
跨云厂商网络接入&数据迁移
|
7月前
|
边缘计算 监控 安全
AIWCLOUD:高防CDN大陆免备案在智慧城市视频监控中的隐私脱敏与防劫持技术
本文介绍专为智慧城市设计的高防CDN架构:依托边缘AI实现人脸车牌实时脱敏与隐形水印,结合帧级HMAC校验、国密SM2/SM3双向认证及GB28181深度防护,构建合规、安全、低时延的视频传输通道,守护城市视觉感知安全。(239字)
588 0
|
9月前
|
人工智能 自然语言处理 文字识别
阿里云AI产品免费试用:7000万Tokens+30款产品零成本体验!
阿里云推出“AI免费试用”活动:新用户享7000万Tokens、100张图+50秒视频生成额度,覆盖通义千问Qwen3、万相2.6等30+款AI产品。零门槛开通即用,支持Agent搭建、代码生成、NLP/视觉智能等全场景实践,助开发者低成本启航AI应用开发。
2868 7
|
JavaScript
Vue自定义组件实现类似elementUI的append-to-body功能,将创建的元素插入、挂载到body上面(网页最外层),适用于父元素overflow: hidden、绝对定位fixed的场景
Vue自定义组件实现类似elementUI的append-to-body功能,将创建的元素插入、挂载到body上面(网页最外层),适用于父元素overflow: hidden、绝对定位fixed的场景
|
人工智能 自然语言处理 算法
想让企业信息进 AI 答案?先搞懂 GEO 是啥!
GEO(生成引擎优化)是让内容被AI直接引用的新策略,通过权威引用、数据支撑、多平台分发等方法,提升品牌在AI回答中的曝光,与SEO互补,助力抢占AI搜索流量先机。
|
Oracle 关系型数据库 数据安全/隐私保护
在Oracle中,ORA-01017 invalid username password; logon denied原因有哪些
在Oracle中,ORA-01017 invalid username password; logon denied原因有哪些
4213 0
|
机器学习/深度学习 人工智能 自然语言处理
ai人工智能课程学什么
本内容全面介绍了AI课程的核心体系,涵盖基础理论、核心算法、应用领域及伦理责任等方面。从数学基础与编程技能到机器学习和深度学习算法,再到自然语言处理与计算机视觉等应用领域,系统阐述了AI技术的全貌。同时探讨了开发框架如TensorFlow和PyTorch的使用,并关注AI伦理与社会责任。通过分步验证与实践经验,帮助学习者规避AI局限性。展望未来,生成式人工智能等新兴技术将持续推动课程发展,助力职业成长与社会进步。
|
机器学习/深度学习 边缘计算 5G
室内定位之5G定位
室内定位之5G定位
1401 1