問題:scott用戶導入dmp文件,提示沒有DBA權限。
解決方法:
1.授予dba角色權限:
grant dba to scott;
2.導入數據:
imp scott/1234@myDB file=G:\ac43_620.dmp full=y
3.取消dba角色權限:
revoke dba from scott;
另外,scott賬戶本來是鎖定的。
鎖定賬戶:
alter user scott account lock;
解鎖賬戶:
alter user scott account unlock;
修改scott的登錄密碼:
alter user scott identified by tiger;
授予連接權限:
grant connect to scott;
授予創建表等基本權限:
grant resource to scott;
授予使用空間權限:
grant unlimited on tablespace to scott;alter user scott quota unlimited on tablespace_name;