Create Nested Table Preferences
The following code sets the preferences and attributes for the NESTED_DATASTORE according to the definitions of the nested table type nt_tab and the parent table mytab:
begin
-- create nested datastore pref
ctx_ddl.create_preference('ntds','nested_datastore');
-- nest tab column in main table
ctx_ddl.set_attribute('ntds','nested_column', 'doc');
-- nested table type
ctx_ddl.set_attribute('ntds','nested_type', 'scott.nt_tab');
-- lineno column in nested table
ctx_ddl.set_attribute('ntds','nested_lineno','lno');
--text column in nested table
ctx_ddl.set_attribute('ntds','nested_text', 'ltxt');
end;