ORACLE 使用DBMS包

如果非sys用户,需要授权。
例如:grant execute on dbms_lock to hr;
执行脚本:
declare
i integer :=1;
begin
while i<100
loop
insert into test1 values(sysdate);
i:=i+1;
dbms_lock.sleep(1);commit;
end loop;
end;
/

Comments

Popular posts from this blog

Nginx Proxy & Load Balance & LNMP

Snort+barnyard2+Snorby CentOS 6.5_64 Installation

ORACLE Error