文档解释
ORA-31495: error in synchronous change table on “string”.”string”
Cause: There was an error originating from this synchronous change table. One possible cause is that schema redefinition has occurred on the source table and one or more columns in the change table are now a different type than corresponding source columns. Another possible cause is that there is a problem accessing the synchronous change table.
Action: Check further error messages in stack for more detail about the cause. If there has been schema redefinition, drop and recreate the synchronous change table.
这是一个同步变更表错误,表示在指定的表上发生了同步变更错误。
官方解释
ORA-31495:表“string”.”string”上的同步变更错误
此错误可出现在执行ALTER TABLE … ENABLE CHANGE DATA CAPTURE子句期间。此错误是指监视此表以捕获变更的尝试失败了。
常见案例
例如,如果您尝试在表上启用变更数据捕获,但表中存在不可解析的列类型,则可能会出现此错误。
一般处理方法及步骤
首先,查看表,如果发现不可解析的列类型,可以尝试使用CAST函数更改列类型。此外,您也可以尝试重新创建表,这可能可以避免由于其他问题导致此错误的情况。