ora-39083/01917報錯
報錯信息:
Import: Release 11.2.0.4.0 - Production on Wed Dec 7 17:59:59 2022
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, Automatic Storage Management, OLAP, Data Mining
and Real Application Testing options
Master table "SYS"."SYS_IMPORT_TABLE_03" successfully loaded/unloaded
Starting "SYS"."SYS_IMPORT_TABLE_03": "/******** AS SYSDBA" directory=impdp_asm_dir dumpfile=
TERMINALACTIVELOGS_20200115.dmp logfile=impdp_log_dir:TERMINALACTIVELOGS_20200115.log tables=COM.TERMINALACTIVELOGS_20200115 cluster=n
r
Processing object type TABLE_EXPORT/TABLE/TABLE
Processing object type
TABLE_EXPORT/TABLE/TABLE_DATA
. . imported "COM"."
TERMINALACTIVELOGS_20200115" 28.89 GB 139222130 rows
Processing object type
TABLE_EXPORT/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT
ORA-39083: Object type OBJECT_GRANT failed to create with error:
ORA-01917: user or role 'GAB_XPLBD' does not exist
Failing sql is:
GRANT SELECT ON "COM"."
TERMINALACTIVELOGS_20200115" TO "GAB_XPLBD"
Processing object type
TABLE_EXPORT/TABLE/COMMENT
Processing object type
TABLE_EXPORT/TABLE/INDEX/INDEX
解決方案
既然導入的時候報錯了,說明源數據庫中是存在該對象的,那么首先要做的是,去源庫中查詢該角色的權限信息,然后在新的數據庫中,在sys用戶下,建一個角色?GAB_XPLBD,并賦給和源數據庫中相同的數據庫操作權限,然后再重新執(zhí)行導入操作。