Oracle數據庫scott用戶無法導入數據的解決方法


問題: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;

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM