想测试一下备库只读模式下的读写功能,报错如下:
TEST@10.231.236.236:1521/pdbapp> insert into test values(2); insert into test values(2) * ERROR at line 1: ORA-25153: Temporary Tablespace is Empty
查看temp表空间、文件:
TEST@10.231.236.236:1521/pdbapp> select TS#,name from v$tablespace; TS# NAME --------------- -------------------- 0 SYSTEM 1 SYSAUX 2 UNDOTBS1 3 TEMP 4 UNDO_2 TEST@10.231.236.236:1521/pdbapp> select FILE#,NAME from v$tempfile; no rows selected
可见temp表空间没有temp文件。
因此只能停止同步,修改自动文件管理为手动,增加temp文件,如下操作:
CDB执行: recover managed standby database cancel; alter system set standby_file_management='MANUAL'; PDB执行: alter tablespace temp add tempfile size 5g; CDB执行: ALTER SYSTEM SET STANDBY_FILE_MANAGEMENT=AUTO scope=both; recover managed standby database using current logfile disconnect from session;
再次在备库执行insert操作,成功!
文章评论