Advertisement
Guest User

Untitled

a guest
Jul 20th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. DECLARE
  2. po dbms_aqadm.aq$_purge_options_t;
  3. BEGIN
  4. po.block := FALSE;
  5. DBMS_AQADM.PURGE_QUEUE_TABLE(
  6. queue_table => 'tcn_gxc_in_queue_table',
  7. purge_condition => NULL,
  8. purge_options => po);
  9. END;
  10. /
  11.  
  12. DECLARE
  13. po dbms_aqadm.aq$_purge_options_t;
  14. BEGIN
  15. po.block := FALSE;
  16. DBMS_AQADM.PURGE_QUEUE_TABLE(
  17. queue_table => 'tcn_gxc_out_queue_table',
  18. purge_condition => NULL,
  19. purge_options => po);
  20. END;
  21. /
  22.  
  23. DECLARE
  24. CURSOR notification_cursor IS
  25. SELECT p.id notification_id,
  26. p.status_id notification_status_id
  27. FROM tcn_sys_notifications p,
  28. tcn_sys_notification_statuses s
  29. WHERE p.status_id = s.id
  30. AND (s.status = 'ontvangen'
  31. OR s.status = 'ontvangen zonder geometrie');
  32.  
  33. BEGIN
  34. FOR notification IN notification_cursor
  35. LOOP
  36. tcn_ctl_notification.geoxchange_enqueue(notification.notification_id,
  37. notification.notification_status_id,
  38. NULL,
  39. NULL);
  40. END LOOP;
  41. END;
  42. /
  43.  
  44. DECLARE
  45. CURSOR notification_cursor IS
  46. SELECT p.id notification_id,
  47. p.status_id notification_status_id
  48. FROM tcn_sys_notifications p,
  49. tcn_sys_notification_statuses s
  50. WHERE p.status_id = s.id
  51. AND s.status = 'ingecheckt';
  52.  
  53. BEGIN
  54. FOR notification IN notification_cursor
  55. LOOP
  56. tcn_ctl_notification.geoxchange_enqueue(notification.notification_id,
  57. notification.notification_status_id,
  58. NULL,
  59. NULL);
  60. END LOOP;
  61. END;
  62. /
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement