Cleanup SO_EXCEPTIONS Table

rem This program will run under apps on Rel 10.7
rem it will check the existing records under
rem fnd_concurrent_requests and delete the non
rem existing records on oe.so_exceptions table.
rem
-------------------------------------------------
set long 90000
set head on
set echo on
select a.request_id,
       a.creation_date,
       a.last_update_date,
       a.context,
       a.message_text
from so_exceptions a
where not exists (select b.request_id
                  from fnd_concurrent_requests b
                  where a.request_id =
                               b.request_id)
/
delete from so_exceptions a
       where not exists (select b.request_id
       from fnd_concurrent_requests b
          where a.request_id = b.request_id)
/

Have a Oracle Question
Do you have an Oracle Question?

Oracle Books
Oracle Certification, Database Administration, SQL, Application, Programming Reference Books

Oracle Application
Oracle Application Hints and Tips

Oracle Home
Oracle Database, SQL, Application, Programming Tips

All the site contents are Copyright © www.erpgreat.com and the content authors. All rights reserved.
All product names are trademarks of their respective companies.
The site www.erpgreat.com is not affiliated with or endorsed by any company listed at this site.
Every effort is made to ensure the content integrity.  Information used on this site is at your own risk.
 The content on this site may not be reproduced or redistributed without the express written permission of
www.erpgreat.com or the content authors.