Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Oracle/OAS and the fly likes generate script Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Oracle/OAS
Bookmark "generate script" Watch "generate script" New topic
Author

generate script

rakesh kadulkar
Ranch Hand

Joined: Jul 24, 2008
Posts: 115
Hi,

I have some set of tables in my oracle 9i login.

I want to take those tables to my home in the script so how can i generate a script from the existing table.

Thanks


Rakesh Kadulkar
Fatih Keles
Ranch Hand

Joined: Sep 01, 2005
Posts: 182
Hi rakesh,

Almost any sql tool has the capability of extracting ddl from tables. You can use sql developer or toad to obtain generate table scripts. But if the number of tables is high then you should use oracle exp tool (standalone executable that exports data and ddl from database to be used with import tool) or built-in dbms_metadata.get_ddl function. There may be other third party tools or pl/sql ides that can handle this situation that I can not name them now.

Regards,

Fatih.
Vinod Tiwari
Ranch Hand

Joined: Feb 06, 2008
Posts: 459
    
    1
You can export these objects.... and import in database at your home PC...


Vinod Tiwari | Twitter
rakesh kadulkar
Ranch Hand

Joined: Jul 24, 2008
Posts: 115
well the question is how
Rizvan Asgarov
Ranch Hand

Joined: Jan 07, 2009
Posts: 451

rakesh kankavlikar wrote: well the question is how

You can do it in easily by using the "Toad for Oracle" tool as follows:



Hope this helps,

"Half of the science is to ask question"
Agador Paloi
Ranch Hand

Joined: Jan 24, 2006
Posts: 118
Data pump works well for this too.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: generate script
 
Similar Threads
can i execute sql script directly by java?
Hibernate development tracks
Reg: Jasper report
Generate HBM Files using Middlegen to use cache usage=read-write
Java script in Jasper reports