millesm,
I just tried executing the statement, and I can't successfully execute though sqlplus, it returns back the distributed operation not permitted error. Looks like I should seek oracle help, not php help.
On the off chance someone here could possibly help me, here's some more information:
SQL> declare
2 ret varchar2(2000);
3 begin
4 LotPkg.lot_start@ltcs_link( 'TEST1', '2BE7_1501', 'EPHEMTXX', 'GAAS', ret );
5 end;
6 /
declare
*
ERROR at line 1:
ORA-02064: distributed operation not supported
ORA-06512: at "LTCS.LOTPKG", line 175
ORA-06512: at line 4
Here's the relevant SQL code in the procedure :
INSERT INTO wip ( lot_id,
part_id,
process_id,
route_id,
route_seq,
status,
cur_oper,
cur_oper_rev,
cur_step,
cur_step_rev,
cur_step_seq,
cur_qty,
action )
VALUES ( lot_rec.LOT_ID,
part_rec.PART_ID,
process_rec.PROCESS_ID,
route_rec.ROUTE_ID,
first_route_seq,
'QUEUED',
first_op_id,
first_op_rev,
0,
'NULL',
0,
lot_rec.QTY_OPEN,
'LOT_START' );
ret := '0😮K:lot_id ' || lot_rec.LOT_ID;
ret := ret || ' inserted as part_id ' || part_rec.PART_ID;
ret := ret || ' process_id ' || process_rec.PROCESS_ID;
ret := ret || ' route_id ' || route_rec.ROUTE_ID;
ret := ret || ' quantity ' || lot_rec.QTY_OPEN;
DBMS_OUTPUT.PUT_LINE( ret );
DBMS_OUTPUT.PUT_LINE( 'commiting insertion' );
COMMIT;
I am thinking the unsupported operation I am attempting is "A commit is issued in a coordinated session from an RPC with OUT parameters" - and the solution is to simplify the statement - but I do not see how. Any suggestions?
Brian