执行导入数据库命令,遇到执行存储过程时,报错

解决 ORZ-06512 执行存储过程没权限
 
原因:在创建用户时,没有赋予执行存储过程的权限,导致导入时有执行存储过程时报错

解决:

1、删除用户及用户下所有内容

drop user yourName cascade;

2、重新创建用户

create user yourName identified by yourPassword default tablespace yourSpaceName temporary tablespace TEMP;


3、赋予用户创建存储过程权限,执行任何存储过程权限

grant connect to  yourName  ;
grant resource to  yourName  ;
grant imp_full_database to yourName ;
--赋予创建存储过程的权限
grant create procedure to yourName  ;
--赋予执行任何存储过程的权限
grant execute any procedure to yourName  ;


4、重新导入数据库

imp userid=yourName/yourName@yourOraName  file=yourFile.dmp  fromuser=OldName touser=yourName buffer=80000000 STATISTICS=none ignore=y commit=y


5、完美解决

相关文章:

  • 2021-10-14
  • 2022-02-15
  • 2021-11-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-07
猜你喜欢
  • 2022-12-23
  • 2021-10-14
  • 2021-10-14
  • 2022-03-08
  • 2021-05-24
  • 2021-10-14
相关资源
相似解决方案