select o.organ_id,o.organ_name,level from organ o
start with o.organ_id='1'
connect by prior o.parent_id =o.organ_id
order by level
select organ_id,organ_name,level from organ
start with organ_id='42'
connect by nocycle prior parent_id =organ_id
order by level desc