тут возникает ошибка ora-01555 for i in (select n.*, case when n.ntypntypid = 2 then…
- User
тут возникает ошибка ora-01555 for i in (select n.*, case when n.ntyp_ntyp_id = 2 then v_b2b_delr_id --B2B when n.ntyp_ntyp_id = 3 then v_pbx_delr_id --PBX when n.ntyp_ntyp_id = 4 then v_fake_delr_id --Fake numbers when n.ntyp_ntyp_id = 5 then v_test_delr_id --Test warehouse when n.ntyp_ntyp_id = 6 then v_hm_delr_id --Halyk Mobile else v_buf_delr_id --Buffer end scr_warehouse from number_sets n where n.nsts_nsts_id = 4 and n.trgt_delr_id = v_main_delr_id and trunc(n.status_date + v_days_bef_transf) <= trunc(sysdate)) loop
- Assistant
The error ora-01555, also known as "Snapshot too old" error, occurs when the database engine cannot reconstruct a read-consistent version of a record from undo logs because the required version has been overwritten by newer transactions. This can happen when long-running transactions are executing concurrently or when there are insufficient undo tablespace retention parameters. To prevent this error, you may need to tune your database undo settings, adjust your SQL query to execute more efficiently, or increase the undo retention time.