ORA-39162: Transportable tablespace job require privileges ORACLE 报错 故障修复 远程处理

文档解释

ORA-39162: Transportable tablespace job require privileges

Cause: User attempted to perform a transportable tablespace job without being having the proper EXP_FULL_DATABASE or IMP_FULL_DATABASE role.

Action: Retry the operation in a schema that has the required roles.

ORA-39162这个错误是指在使用transportable tablespace job时,管理员登录用户没有权限与系统管理权限。官方解释是:当尝试分发传输表空间作业时,将产生ORA-39162错误,指示远程数据库中的管理员登录用户未被授予系统管理权限。

常见的案例是:当尝试使用Data Pump的Transportable Tablespaces功能时,会出现ORA-39162错误,因为在目标数据库中,管理员登录用户没有系统管理权限。

一般处理方法及步骤

1、使用SYSDBA登录到源数据库,并对拥有SYSDBA功能的用户实施GRANT.

2、使用SYSDBA登录到目标数据库,并为拥有SYSDBA功能的用户授予系统管理权限,如下所示:SQL> GRANT SYSDBA TO USERNAME;

3、使用Data Pump的Transportable Tablespaces功能向目标数据库导入表空间,例如:impdp system/password@source_database directory=data_pump_dir dumpfile=tab01.dmp logfile=tab01.log REMAP_TABLESPACE=TS1:TS2 TRANSPORTABLE_TABLESPACES=TS1.

4、导入完成后,检查目标数据库中的表空间,并检查是否可用。


数据运维技术 » ORA-39162: Transportable tablespace job require privileges ORACLE 报错 故障修复 远程处理