title: dbms_metadata.get_ddl not working
body: <p>I want to get the DDL of Table <code>CARD_TABLE</code> in <code>XT</code> schema  </p>
  
  <pre><code>SQL&gt; select dbms_metadata.get_ddl('TABLE','CARD_TABLE','XT') from dual;
      ERROR:
      ORA-31603: object "CARD_TABLE" of type TABLE not found in
      schema "XT"
      ORA-06512: at "SYS.DBMS_METADATA", line 5746
      ORA-06512: at "SYS.DBMS_METADATA", line 8333
      ORA-06512: at line 1
  </code></pre>
  
  <p>But my select Query works</p>
  
  <pre><code>select count(*) from XT.CARD_TABLE;
  count(*)
  ---------
  0
  </code></pre>
  
  <p>I queried <code>dba_objects</code> it still got the table:</p>
  
  <pre><code>    SQL&gt; select owner,object_type from DBA_OBJECTS
      where object_name='CARD_TABLE'  2
        3  ;
  
  
  PUBLIC     SYNONYM
      XT     TABLE PARTITION
      XT     TABLE PARTITION
      XT     TABLE PARTITION
      XT     TABLE
      XT     TABLE PARTITION
      VAT    TABLE
  
      7 rows selected.
  </code></pre>