我有台服务器,经常需要重置密码,所以想写个存储过程。
create or replace procedure p_change_password
is
   begin execute immediate 'ALTER PROFILE DEFAULT LIMIT PASSWORD_REUSE_TIME UNLIMITED';
 execute immediate 'ALTER PROFILE DEFAULT LIMIT PASSWORD_REUSE_MAX UNLIMITED';
 
 execute immediate 'alter user bmp  dentified by 12341qaz';
 execute immediate 'alter user rcdd dentified by  12341qaz';
 execute immediate 'alter user rcdd2 dentified by  12341qaz'; execute immediate 'ALTER PROFILE DEFAULT LIMIT PASSWORD_REUSE_TIME 60';
 execute immediate 'ALTER PROFILE DEFAULT LIMIT PASSWORD_REUSE_MAX 5';end p_change_password;
/但执行的时候报错如下:
SQL>  exec p_change_password;
BEGIN p_change_password; END;*
ERROR at line 1:
ORA-00922: missing or invalid option
ORA-06512: at "SYS.P_CHANGE_PASSWORD", line 8
ORA-06512: at line 1
求大神解救。