Oracle の PL/SQL で例外が発生しても処理を継続させるには、 declare begin 処理 ... exception when others then 例外処理 ... end; という具合に書いてやればよい。 例) 全ての表・索引・クラスタから未使用の領域のみを解放するPL/SQL - ablog からの抜粋。 declare cursor cu is select segment_name, segment_type from user_segments where (segment_type = 'TABLE' or segment_type = 'INDEX' or segment_type = 'CLUSTER') and bytes > 65536; sql_stmt varchar2(500); begin for rec in cu loop declar