For more information, please refer to this announcement explaining best practices for getting answers to questions.
Query functions only if "Connect By Prior" added
"SELECT DISTINCT hrao.effective_end_date effective_end_date1, hov_inner.status status1, hov_inner.organization_id org_id FROM per_dept_tree_node_v pdt, hr_all_organization_units_vl hrao, hr_organization_v hov_inner WHERE 1=1 AND pdt.organization_id = hrao.organization_id AND hrao.organization_id = hov_inner.organization_id AND hov_inner.status = 'A' START WITH pdt.organization_id = HOV_INNER.ORGANIZATION_ID CONNECT BY NOCYCLE PRIOR pdt.organization_id = pdt.parent_organization_id.
This query runs only by adding CONNEC BY NOCYCLE PRIOR, it errors out otherwise with ORA-01788: CONNECT BY clause required in this query block. Oracle SR was raised and we tried multiple methods including Oracle Fixes to fix or to isolate this data issue but we could not. The only fix was to keep the "CONNECT BY NOCYCLE PRIOR".