当前位置:网站首页>达梦数据库_用户口令策略
达梦数据库_用户口令策略
2022-07-24 05:19:00 【ls2best】
用户口令策略,即:用户口令复杂度,这关系到用户的安全性。
用户口令的管理
达梦数据库的用户口令最长为48字节,目前系统支持一下几种口令策略:
参数值 | 对应策略 |
|---|---|
| 0 | 无策略 |
| 1 | 禁止与用户名相同 |
| 2 | 口令长度不小于9 |
| 4 | 至少包含一个大写字母(A~Z) |
| 8 | 至少包含一个数字(0~9) |
| 16 | 至少包含一个标点符号(英文输入法状态下,除''和空格外的所有符号) |
需要注意的是,口令策略可以单独使用,也可以组合使用。组合使用时,如需要设置口令长度不小于9且至少包含一个大写字母(A~Z),则只需要设置策略2(口令长度不小于9)与策略4(至少包含一个大写字母)之和,即2+4=6即可。
数据库默认口令策略为2。
口令策略设置方法
1、创建用户时,指定次用户的口令策略。
需要注意的是,此方法仅支持在达梦数据库安全版使用,其他版本不支持。
CREATE USER TEST_1 IDENTIFIED BY A1234 PASSWORD_POLICY 5;
[执行语句1]:
CREATE USER TEST_1 IDENTIFIED BY A1234 PASSWORD_POLICY 5;
执行失败(语句1)
第1 行附近出现错误[-5630]:
非安全版本不能进行此操作
1条语句执行失败2、在DM的INI参数PWD_POLICY中指定系统默认的口令策略
方式一:通过控制台工具修改
方式二:调用系统存储过程SP_SET_PARA_VALUE(),重新设置PWD_POLICY的值。
如:
SP_SET_PARA_VALUE(1,'PWD_POLICY',3)
动态参数,立即生效。
查看口令策略
方式一:
SELECT * FROM V$PARAMETER WHERE NAME='PWD_POLICY';方式二:
SELECT SF_GET_PARA_VALUE(1,'PWD_POLICY');达梦社区地址:https://eco.dameng.com
边栏推荐
- 达梦数据库_dmfldr工具使用说明
- Flink函数(1):rich function
- MySQL 批量插入demo
- Moonbeam orbiters program: provides a new way for collectors to participate in moonbeam and Moonriver
- vscode配置autoprefixer
- 公链Sui Layer1网络
- Oracle数据库的逻辑结构
- The project is deployed to the public network for free (intranet penetration)
- Keywords_ 01return
- XML之建模
猜你喜欢
随机推荐
MySQL queries the last four digits of the mobile phone number. How to write the first few digits?
jsp标签
Flink 并行度的理解(parallel)
Development technical guide | the most complete technical documents, tutorials and courses of substrate and Polkadot
人生警示格言
波卡生态发展不设限的奥义——多维解读平行链
盘点波卡生态潜力项目 | 跨链特性促进多赛道繁荣
Variables and constants in C language
Web3 Foundation grant program empowers developers to review four successful projects
自定义MVC 3.0
网页内嵌B站视频,隐藏相关控件
Flink 时间流处理
C document reading and writing plus linked list addition, deletion, modification and query
开启Web3,曾经冷门的去中心化身份(DID)
mysql数据库的授权访问
OpenGL draws two points on the screen, a blue point on the right, using anti aliasing technology, and a red point on the left, without anti aliasing technology. Compare the difference between the two
自定义MVC 1.0
sunset: noontide靶机渗透-vulnhub
OpenGL simulates the process of a ball falling to the ground and bouncing up in real life. Draw a ball on the screen, and the ball will fall from top to bottom, hit the ground and bounce up again.
Vulnhub solidstate: 1 target penetration test









