title: Store object value in type table
body: <p>Following id the Code to store object value in array of type table.</p>
  
  <p>Object Creation :</p>
  
  <pre><code>Create or replace type t_loc as Object
      (
        name varchar2(255 byte),
        idt char(2)
      );
  </code></pre>
  
  <p>PLSQL Block</p>
  
  <pre><code>set serveroutput on;
    declare 
       TYPE test1 IS TABLE OF VARCHAR2(100) INDEX BY t_loc;
       test2 test1;
    begin
      test2('abad')  := t_loc('ahmedabad','CT');
      test2('bang')  := t_loc('bangalure','S');
      test2('surat')  :=t_loc('Surat','C');
  
      dbms_output.put_line(test2('surat'));
  
    end;
  </code></pre>
  
  <p>I am not able to compile upper code.
  Is it not possible in oracle ? or is there anything wrong ?</p>