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 -> using DBMS_METADATA.GET_DDL with table name containing a single quote

using DBMS_METADATA.GET_DDL with table name containing a single quote

From: yaru22 <yaru22_at_gmail.com>
Date: 18 Apr 2007 13:57:39 -0700
Message-ID: <1176929859.115411.71550@n76g2000hsh.googlegroups.com>


Hi,

I have a table named "Hi$Schema's" in my schema 'myschema'.

However, if I try the following sql statement, I get a failure message.

SELECT DBMS_METADATA.GET_DDL('TABLE','Hi$Schema''s','myschema') FROM dual

The error mesesage is:

ORA-19206: Invalid value for query or REF CURSOR parameter
ORA-06512: at "SYS.DBMS_XMLGEN", line 83
ORA-06512: at "SYS.DBMS_METADATA", line 345
ORA-06512: at "SYS.DBMS_METADATA", line 410
ORA-06512: at "SYS.DBMS_METADATA", line 449
ORA-06512: at "SYS.DBMS_METADATA", line 615
ORA-06512: at "SYS.DBMS_METADATA", line 1221
ORA-06512: at line 1

I don't know how to deal with this single quote.

Does anyone know a solution or a workaround? Received on Wed Apr 18 2007 - 15:57:39 CDT

Original text of this message

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