If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > JAVA > how to execute a ddl definition

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-22-08, 07:54
Ciri Ciri is offline
Registered User
 
Join Date: May 2008
Posts: 1
how to execute a ddl definition

Hi,

I have a Java programa that obtains an oracle object ddl definition by using DBMS_METADATA.GET_DDL procedure. This definition is stored as a String.

After that, I sometimes need to execute that definition. I use the executeUpdate() of statement class.

This works ok when the stored definition fills one statement. But sometimes the stored definition fills more than one statement. For example package definition uses 2 statements (one for specification and other for body). In this case, executeUpdate does not work properly.

Any issues to solve this problem?

Thanks in advanced,

Ciri
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On