ORACLE操作常用语句

1导出
exp sytem/system@orcl file=EXPDAT_kubotanew_exp.DMP log=exp_kubotanew.log owner=kubotanew buffer=67108864 statistics=none grants=n consistent=y
2导入
imp system/system@orcl file=EXPDAT_kubotanew_exp.DMP log=imp_kubotanew_test.log fromuser=kubotanew touser=kubotanew_test statistics=none
3.查询权限
select 'grant '|| privilege || ' on '|| table_name || ' to ' || grantee from dba_tab_privs where owner = 'USER';

select 'grant '|| privilege || ' on '|| table_name || ' to ' || grantee from user_tab_privs where owner = 'USER';

select 'grant ' || privilege || ' to USER;' from session_privs order by privilege

你可能感兴趣的:(oracle)