首批通过分布式安全可靠测评,为关键业务系统打造
数据恢复报错 1235 should not have backup_dest and restore_source at the same time not supported
更新时间:2025-06-23 08:32
适用版本
OceanBase 数据库 V2.x 和 V3.x 版本。
问题现象
执行数据恢复命令遇到下述报错。
ERROR 1235 (0A000): should not have backup_dest and restore_source at the same time not supported
问题原因
恢复步骤有误,此操作前执行过 add restore source 操作。
解决方法
可通过下述方法解决(二选一)。
撤销之前的恢复路径,之后重新执行。
obclient> ALTER SYSTEM CLEAR RESTORE SOURCE;修改恢复语句,剔除恢复路径项目,然后重新执行。
--修改前
obclient> alter system restore restore_xxxx from ten_app_cifc0 at 'file:///ushare/restore_test/' until '2023-01-09 09:50:48.505300' with 'backup_cluster_name=obc_region01&backup_cluster_id=1658148067&pool_list=restore_test_xxxx_pool';--修改后
obclient> alter system restore restore_xxxx from ten_app_cifc0 until '2023-01-09 09:50:48.505300' with 'backup_cluster_name=obc_region01&backup_cluster_id=1658148067&pool_list=restore_test_xxxx_pool';
相关文档
具体操作参见 执行备份备份数据的恢复。