oracle 创建用户并赋权 清空用户表

create user BUSM identified by BUSM;

grant connect,resource,dba to BUSM;  

grant select any table to BUSM;

grant delete any table to BUSM;

grant insert any table to BUSM;

grant update any table to BUSM;

grant execute any procedure to BUSM;

select 'drop table ' || table_name ||';'||chr(13)||chr(10) from user_tables;
select 'drop view ' || view_name||';'||chr(13)||chr(10) from user_views;
select 'drop sequence ' || sequence_name||';'||chr(13)||chr(10) from user_sequences;
select 'drop function ' || object_name||';'||chr(13)||chr(10) from user_objects where object_type='FUNCTION';
select 'drop procedure ' || object_name||';'||chr(13)||chr(10) from user_objects where object_type='PROCEDURE';
select 'drop package ' || object_name||';'||chr(13)||chr(10) from user_objects where object_type='PACKAGE';
上一篇:Java面试题必备知识之ThreadLocal


下一篇:Java并发(基础知识)—— Executor框架及线程池