当前位置:网站首页>达梦数据库_用户口令策略
达梦数据库_用户口令策略
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
边栏推荐
- Whole station downloader recommendation
- C document reading and writing plus linked list addition, deletion, modification and query
- Summary of data types
- @Async 没有异步执行
- 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.
- Flink 生产环境配置建议
- Web3基金会「Grant计划」赋能开发者,盘点四大成功项目
- 02 mobile terminal page adaptation
- PyCharm设置代码模板
- Function_ generalization
猜你喜欢

【数据挖掘】聚类分析的简要介绍

Imitate Baidu API of Baidu map page of a website

spark 广播变量和累加器使用和原理
![利用流媒体将RSTP流转成WEB端播放(二)[可回看]](/img/b9/2c0e6eb19acaa2356ff49f6e272826.png)
利用流媒体将RSTP流转成WEB端播放(二)[可回看]

Station B video comment crawling - take the blade of ghost destruction as an example (and store it in CSV)

vulnhub-SolidState: 1靶机渗透测试

How to use phpstudy to build WordPress website locally

助力传统游戏转型GameFi,Web3Games推动游戏发展新航向
![[Baidu map API] the version of the map JS API you are using is too low and no longer maintained. In order to ensure the normal use of the basic functions of the map, please upgrade to the latest versi](/img/d5/b0e4cc4155673d6042a0e39de4eddf.png)
[Baidu map API] the version of the map JS API you are using is too low and no longer maintained. In order to ensure the normal use of the basic functions of the map, please upgrade to the latest versi

Variables and constants in C language
随机推荐
C document reading and writing plus linked list addition, deletion, modification and query
MySQL之CRUD
How to export Excel files with php+mysql
MySQL queries the last four digits of the mobile phone number. How to write the first few digits?
网页播放rtsp视频流
Wechat applet returns parameters or trigger events
Vulnhub solidstate: 1 target penetration test
公链Sui Layer1网络
【vsphere高可用】主机出现故障或隔离后的处理
Hex to RGB
【百度地图API】您所使用的地图JS API版本过低,已不再维护,为保证地图基本功能 正常使用,请尽快升级到最新版地图JS API
Web3 Foundation grant program empowers developers to review four successful projects
助力传统游戏转型GameFi,Web3Games推动游戏发展新航向
Draw a square on the screen and use ice BMP texture maps the square; Draw a yellow teapot after the square. Assuming that the square is transparent, draw the mixed effect of teapot and square; Adjust
Logic development analysis of LP dual currency liquidity pledge mining system
Polkadot | 一文解读颠覆传统社媒的Liberty计划如何在波卡落地
盘点波卡生态潜力项目 | 跨链特性促进多赛道繁荣
人生警示格言
canvas - Bezier 贝塞尔曲线
波卡生态发展不设限的奥义——多维解读平行链