このクエリのコメント付き(/ * * /)部分は実行されますが、クエリ全体で///////部分で問題が発生しています。これを解決するにはhlepしてください。
SELECT *
FROM (
/* (SELECT U1.EMAIL, S1.GRNNUM
FROM RDT_USER U1,
(SELECT O.ID, GRNNUM
FROM RDT_ORGANIZATION O,
(SELECT GRNNUM, RECEPIENTCODE, ORGINATORCODE
FROM RDT_GOODSRECEIPTNOTE M
WHERE M.ACTIONSTATUS = 0
AND M.LATEST = 1
AND (SYSDATE - M.GENDATE) >= 0) S
WHERE O.FUCODE = S.ORGINATORCODE) S1
WHERE U1.ORGID = S1.ID)*/ A///////here am getting right paranthesis missing,
(SELECT U.EMAIL, T1.GRNNUM
FROM RDT_USER U,
(SELECT O.ID, GRNNUM
FROM RDT_ORGANIZATION O,
(SELECT GRNNUM, RECEPIENTCODE, ORGINATORCODE
FROM RDT_GOODSRECEIPTNOTE M
WHERE M.ACTIONSTATUS = 0
AND M.LATEST = 1
AND (SYSDATE - M.GENDATE) >= 0) T
WHERE O.FUCODE = T.ORGINATORCODE) T1
WHERE U.ORGID = T1.ID) B)
WHERE A.GRNNUM = B.GRNNUM