Skip to content
September 26, 2013 / doganay

HOW TO SEE EDITIONS TREE in ORACLE 12C

with ed as (select PARENT_EDITION_NAME parent, EDITION_NAME child
from dba_editions where PARENT_EDITION_NAME is not null and EDITION_NAME is not null)
select lpad(' ',2*(level-1))||child from
(select * from ed
union all
select distinct 'root', parent from ed
where parent not in (select child from ed))
connect by prior child=parent start with parent='root';
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: