select
sys_connect_by_path(b,'=>') PATH1
from
(
select
least(a, b) a,
greatest(a, b) b
from aaa
)
start with a = 0
connect by prior b = a
UPD :
select
sys_connect_by_path(b, '=>') PATH1
from
(
select a, b from aaa
union all
select b, a from aaa
union all
select null, 'Berlin' from dual
)
start with a is null
connect by nocycle prior b = a