dbms_metadata.get_ddl introduces a newline in the ddl [message #178234] |
Tue, 20 June 2006 04:00 |
arunkathirvelu
Messages: 3 Registered: June 2006
|
Junior Member |
|
|
Hi,
I tried to fetch the ddl of the database objects like tables, triggers and so on, using the dbms_metadata.get_ddl function. It worked fine for all the objecs except for a few triggers. The problem is that it has broken few of the comment lines (arbitrarily) in the trigger's ddl. I had to manually edit this before playing it to recreate the trigger.
The same problem occurs wiht the fetch_clob method too. Did anyone experienced this before? Any help is greatly appreciated.
Thanks,
Arun
|
|
|
|
Re: dbms_metadata.get_ddl introduces a newline in the ddl [message #180350 is a reply to message #178241] |
Mon, 03 July 2006 03:17 |
arunkathirvelu
Messages: 3 Registered: June 2006
|
Junior Member |
|
|
Hi Mahesh,
Thanks for the reply. I did have the PRETTY flag set. I guess that's by default. Anyways I did force that setting. Even then the results were same.
Finally I took the redundant way, collecting the information from the dba_source view for whatever objects that view is supporting!! Those values are clean and there was no break!!
I'm wondering.. for the same trigger, when the other tools like TOAD, PLEdit(Benthic) are collecting the source properly, just the dbms_metadata package conks!! Anyways thanks a lot.
Regards,
Arun
|
|
|
|
Re: dbms_metadata.get_ddl introduces a newline in the ddl [message #216597 is a reply to message #180361] |
Mon, 29 January 2007 11:19 |
agostino_neto
Messages: 180 Registered: July 2005
|
Senior Member |
|
|
Hi Mahesh,
I am using DBMS_METADATA but the output is like this (after table description):
---
PCTFREE 10 PCTUSED 40 INITRANS 10 MAXTRANS 255 NOC
OMPRESS LOGGING
STORAGE(INITIAL 131072 NEXT 131072 MINEXTENTS 1 MAXEXTENTS 2
147483645
PCTINCREASE 0 FREELISTS 4 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
---
I don't know how to put NOCOMPRESS in one line.
Since NOCOMPRESS is in 2 lines, I am having ORA-00922: NOC Invalid or missing option.
Thanks.
|
|
|
|
|
|
|
|
|
|