For database re-architecture I need to get DDL of each table and view in the database(Oracle). I don\'t want to go to property of each table/view and get SQL out of it in SQ
Try the below query for view:
select text from ALL_VIEWS where upper(view_name) like upper();
For mviews:
select query from ALL_MVIEWS where upper(mview_name) like upper();