Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Problems with DBMS_METADATA

Re: Problems with DBMS_METADATA

From: sybrandb <sybrandb_at_gmail.com>
Date: 11 Jan 2007 01:23:15 -0800
Message-ID: <1168507395.283658.119940@77g2000hsv.googlegroups.com>

On Jan 11, 10:08 am, "sati_82" <krys_..._at_interia.pl> wrote:
> Hi,
>
> I have a problem with DBMS_METADATA packet.
>
> I try to move database schema from one database to another. For moving
> table definitions (DDL) I log in source schema and use the query below
> for each table:
>
> SELECT DBMS_METADATA.GET_DDL('TABLE','table_name','table_user') FROM
> DUAL
>
> For the majority of tables everything is ok., but some of them throw an
> error:
> ORA-31603: object "table_name" of type TABLE not found in schema
> "table_user"
> ORA-06512: at "SYS.DBMS_SYS_ERROR", line 105
> ORA-06512: at "SYS.DBMS_METADATA", line 628
> ORA-06512: at "SYS.DBMS_METADATA", line 1221
> ORA-06512: at line 1
>
> It's very strange, because I'm sure that this table exists in schema
> "table_user". To ensure I run the query: SELECT * FROM user_tables
> WHERE table_name = 'table_name' and this query returns me 1 proper row.
>
> Could you please analize the problem and suggest the solution?
> Thanks and regards,
> Krystian

As you don't specify the exact command, my only suggestion can be all parameters are case-sensitive as far as I know.

-- 
Sybrand Bakker
Senior Oracle DBA
Received on Thu Jan 11 2007 - 03:23:15 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US