|
偶們也碰到一樣的問題,
也問過Oracle了,他們說沒有辦法了
一定要做就只能改Database
但是一旦改過Database之後,Oracle不做任何後續的Support
那個consultant還偷偷寄了一個script給我,
她建議儘量不要做Cancel的動作,如果需要的話,用close就可以了,有問題還能在開.
script也給大家分享一下,希望有點幫助
set echo off
set head off
set verify off
set feed off
declare
header_id po_headers.po_header_id%type;
line_id po_lines.po_line_id%type;
begin
select poh.po_header_id, pol.po_line_id
into header_id, line_id
from po_headers_all poh
, po_lines pol
where poh.segment1 = &1
and poh.po_header_id = pol.po_header_id
and pol.line_num = &2;
update po_headers_all
set cancel_flag = null
where po_header_id = header_id;
update po_lines_all
set cancel_flag = null
, cancelled_by = null
, cancel_reason = null
, cancel_date = null
where po_line_id = line_id
and po_header_id = header_id;
update po_line_locations_all
set cancel_flag = null
, cancelled_by = null
, cancel_date = null
, cancel_reason = null
, quanntity_cancelled = 0
where po_line_id = line_id
and po_header_id = header_id;
end; |
|