问题: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;
原文:https://www.cnblogs.com/lylgt/p/12595093.html
如果您也喜欢它,动动您的小指点个赞吧