SQL> create or replace type TCustomTaxRate as object( 2 tr_id number(12) 3 ) not final not instantiable; 4 / Type created. SQL> SQL> create table dat_tax_rates of TCustomTaxRate 2 ; Table created. SQL> SQL> create or replace type TCashlessServiceTaxItem is object( 2 ord_num integer /* порядковый номер */ 3 ); 4 / Type created. SQL> SQL> create or replace type TCashlessServiceTaxes is table of TCashlessServiceTaxItem; 2 / Type created. SQL> SQL> create or replace type TCashlessServiceTax under TCustomTaxRate( 2 tax_list TCashlessServiceTaxes 3 ) 4 not final instantiable; 5 / Type created. SQL> SQL> explain plan for select value(p) from dat_tax_rates p; Explained. SQL> SQL> select * from table(dbms_xplan.display); PLAN_TABLE_OUTPUT -------------------------------------------------------------------------------- | Id | Operation | Name | Rows | Bytes | Cost | -------------------------------------------------------------------------------- | 0 | SELECT STATEMENT | | | | |* 1 | TABLE ACCESS FULL | SYSNTAJmOajqQTHaBrlyMveIfCg== | | | | 2 | TABLE ACCESS FULL | DAT_TAX_RATES | | | Predicate Information (identified by operation id): --------------------------------------------------- 1 - filter("SYSNTAJmOajqQTHaBrlyMveIfCg=="."NESTED_TABLE_ID"=:B1) Note: rule based optimization 15 rows selected. SQL> SQL> drop table dat_tax_rates; Table dropped. SQL> SQL> drop type TCashlessServiceTax; Type dropped. SQL> SQL> drop type TCashlessServiceTaxes; Type dropped. SQL> SQL> drop type TCashlessServiceTaxItem; Type dropped. SQL> SQL> drop type TCustomTaxRate; Type dropped.
CREATE INDEX taxes_ind ON "SYSNTAJmOajqQTHaBrlyMveIfCg==" (nested_table_id);