没有合适的资源?快使用搜索试试~ 我知道了~
首页oracle中修改用户密码复杂度
oracle中修改用户密码复杂度
需积分: 50 2.1k 浏览量
更新于2023-05-24
评论
收藏 15KB DOCX 举报
(unix中)oracle修改用户密码复杂度的具体例子及操作过程,本例子是为企业做oracle数据库安全时的实际操作过程,包括密码长度,要求字符类型,过期时间,提示过期时间,密码错误次数等等!
资源详情
资源评论
资源推荐

UNIX 中 oracle 修改用户密码复杂度的具体例子及操作过程
一.修改密码复杂读
更改 orcle 数据库用户的密码复杂度
1. 用 sys 用户创建存储过程
#splplus /nolog
SQL>connect /as sysdba
SQL>CREATE OR REPLACE FUNCTION verify_passwd
(username varchar2,
password varchar2,
old_password varchar2)
RETURN boolean IS
n boolean;
m integer;
differ integer;
isdigit boolean;
ischar boolean;
ispunct boolean;
digitarray varchar2(20);
punctarray varchar2(25);
chararray varchar2(52);
BEGIN
digitarray:= '0123456789';
chararray:= 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
punctarray:='!"#$%&()``*+,-/:;<=>?_';
-- Check if the password is same as the username
IF NLS_LOWER(password) = NLS_LOWER(username) THEN
raise_application_error(-20001, 'Password same as or similar to user');
END IF;
-- Check for the minimum length of the password
IF length(password) < 4 THEN
raise_application_error(-20002, 'Password length less than 4');
END IF;
-- Check if the password is too simple. A dictionary of words may be
-- maintained and a check may be made so as not to allow the words
-- that are too simple for the password.
IF NLS_LOWER(password) IN ('welcome', 'database', 'account', 'user', 'password', 'oracle',

















安全验证
文档复制为VIP权益,开通VIP直接复制

评论0