重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1168|回复: 0
打印 上一主题 下一主题

[Oracle] ORA-20783:RECYCLEBIN must be turned off

[复制链接]
跳转到指定楼层
楼主
发表于 2022-12-22 15:57:46 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
问题描述:oracle 10.2.0.4安装ogg执行ddl_setup.sql时,报警“ORA-20783RECYCLEBINmust be turned off”,如下所示:
SQL>@ddl_setup.sql;
GoldenGateDDL Replication setup script
Verifyingthat current user has privileges to install DDL Replication...
You willbe prompted for the name of a schema for the GoldenGate database objects.
NOTE: Foran Oracle 10g source, the system recycle bin must be disabled. For Oracle 11gand later, it can be enabled.
NOTE: Theschema must be created prior to running this script.
NOTE:Stop all DDL replication before starting this installation.
EnterGoldenGate schema name:ogg
You willbe prompted for the mode of installation.
Toinstall or reinstall DDL replication, enter INITIALSETUP
Toupgrade DDL replication, enter NORMAL
Entermode of installation:INITIALSETUP
Working,please wait ...
Spoolingto file ddl_setup_spool.txt
Checkingfor sessions that are holding locks on Oracle Golden Gate metadata tables ...
Checkcomplete.
Using OGGas a GoldenGate schema name, INITIALSETUP as a mode of installation.
Working,please wait ...
BEGIN
*
ERROR atline 1:
ORA-20783:
GoldenGateDDL Replication setup:
***RECYCLEBIN must be turned off.
*** For10gr2, set RECYCLEBIN in parameter file to OFF. For 10gr1, set _RECYCLEBIN inparameter file to FALSE. Then
restartdatabase and installation.
ORA-06512:at line 19
Disconnectedfrom Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bitProduction
With thePartitioning, OLAP, Data Mining and Real Application Testing options
异常原因:
根据提示可知,10gr2执行DDLReplication设置时,recyclebin需要关闭.
解决过程:
SQL>show parameter recyclebin
NAME                                 TYPE        VALUE
----------------------------------------------- ------------------------------
recyclebin                           string      on
SQL>alter system set recyclebin=off;
Systemaltered.
SQL>show parameter recyclebin
NAME                                 TYPE        VALUE
----------------------------------------------- ------------------------------
recyclebin                           string      OFF
SQL>@ddl_setup.sql;
GoldenGateDDL Replication setup script
Verifyingthat current user has privileges to install DDL Replication...
You willbe prompted for the name of a schema for the GoldenGate database objects.
NOTE: Foran Oracle 10g source, the system recycle bin must be disabled. For Oracle 11gand later, it can be enabled.
NOTE: Theschema must be created prior to running this script.
NOTE:Stop all DDL replication before starting this installation.
Enter GoldenGateschema name:ogg
You willbe prompted for the mode of installation.
Toinstall or reinstall DDL replication, enter INITIALSETUP
Toupgrade DDL replication, enter NORMAL
Entermode of installation:INITIALSETUP
Working,please wait ...
Spoolingto file ddl_setup_spool.txt
Checkingfor sessions that are holding locks on Oracle Golden Gate metadata tables ...
Checkcomplete.
Using OGGas a GoldenGate schema name, INITIALSETUP as a mode of installation.
Working,please wait ...
RECYCLEBINmust be empty.
Thisinstallation will purge RECYCLEBIN for all users.
Toproceed, enter yes. To stop installation, enter no.
Enter yesor no:yes
DDLreplication setup script complete, running verification script...
Pleaseenter the name of a schema for the GoldenGate database objects:
Settingschema name to OGG
DDLORA_GETTABLESPACESIZESTATUS:
Line/pos                                 Error
---------------------------------------------------------------------------------------------------------
Noerrors                                No errors
CLEAR_TRACESTATUS:
Line/pos                                 Error
---------------------------------------------------------------------------------------------------------
Noerrors                                Noerrors
CREATE_TRACESTATUS:
Line/pos                                 Error
---------------------------------------------------------------------------------------------------------
Noerrors                                Noerrors
TRACE_PUT_LINESTATUS:
Line/pos                                 Error
---------------------------------------------------------------------------------------------------------
Noerrors                                Noerrors
INITIAL_SETUPSTATUS:
Line/pos                                 Error
---------------------------------------------------------------------------------------------------------
Noerrors                                Noerrors
DDLVERSIONSPECIFICPACKAGE STATUS:
Line/pos                                 Error
---------------------------------------------------------------------------------------------------------
Noerrors                                Noerrors
DDLREPLICATIONPACKAGE STATUS:
Line/pos                                 Error
---------------------------------------------------------------------------------------------------------
Noerrors                                Noerrors
DDLREPLICATIONPACKAGE BODY STATUS:
Line/pos                                 Error
---------------------------------------------------------------------------------------------------------
Noerrors                                Noerrors
DDLHISTORY TABLE
-----------------------------------
OK
DDLHISTORY TABLE(1)
-----------------------------------
OK
DDL DUMPTABLES
-----------------------------------
OK
DDL DUMPCOLUMNS
-----------------------------------
OK
DDL DUMPLOG GROUPS
-----------------------------------
OK
DDL DUMPPARTITIONS
-----------------------------------
OK
DDL DUMP PRIMARYKEYS
-----------------------------------
OK
DDLSEQUENCE
-----------------------------------
OK
GGS_TEMP_COLS
-----------------------------------
OK
GGS_TEMP_UK
-----------------------------------
OK
DDLTRIGGER CODE STATUS:
Line/pos                                 Error
---------------------------------------------------------------------------------------------------------
Noerrors                                Noerrors
DDLTRIGGER INSTALL STATUS
-----------------------------------
OK
DDLTRIGGER RUNNING STATUS
------------------------------------------------------------------------------------------------------------------------
ENABLED
STAYMETADATAIN TRIGGER
------------------------------------------------------------------------------------------------------------------------
OFF
DDLTRIGGER SQL TRACING
------------------------------------------------------------------------------------------------------------------------
0
DDLTRIGGER TRACE LEVEL
------------------------------------------------------------------------------------------------------------------------
0
LOCATIONOF DDL TRACE FILE
------------------------------------------------------------------------------------------------------------------------
/u01/app/oracle/admin/orcl/udump/ggs_ddl_trace.log
Analyzinginstallation status...
STATUS OFDDL REPLICATION
------------------------------------------------------------------------------------------------------------------------
SUCCESSFULinstallation of DDL Replication software components
Scriptcomplete.
说明:如上所示,关闭recyclebin之后,ddl_setup.sql成功执行.

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-11-25 17:42 , Processed in 0.097042 second(s), 21 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表