Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

The Database Forum


You are currently viewing our The Database Forum as a guest. Please register to participate.
Login



Reply
Oracle 10g how to extract the data from DB?
Old 08-08-2008, 09:34 AM Oracle 10g how to extract the data from DB?
Novice Talker

Posts: 6
Trades: 0
Question 1
-------------
Oracle 10g how to extract the data from DB?

Any link?

Any client software needed?

Is it as easy as Mysql database or MS SQL [ Just Click on Extract database to script... ] Then load back to the new database...

The script will create the schema and insert the data into the database....

Question 2
------------

Let say the database too huge 100G, can I extract a portion of the data?
Let say I extract 80% from the existing database...

How can I do this?

Thank you...

Last edited by fsloke; 08-08-2008 at 09:41 AM..
fsloke is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-08-2008, 10:25 AM Re: Oracle 10g how to extract the data from DB?
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
Last time I had to do that, I used TOAD, from http://www.toadsoft.com But I don't remember the procedure, it was a bit complicated. What toad did, in fact, was to create a sql script that you could have replayed elsewhere later. And yes, you could export specific tables too, so it would allow you to fragment the data. I only did this once, and it was almost 2 years ago, so I don't remember the procedure involved.
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 08-08-2008, 04:31 PM Re: Oracle 10g how to extract the data from DB?
Learning Newbie's Avatar
Defies a Status

Latest Blog Post:
Astounding Republican Paranoia
Posts: 5,662
Name: John Alexander
Trades: 0
Quote:
Originally Posted by fsloke View Post
Let say the database too huge 100G, can I extract a portion of the data?
Let say I extract 80% from the existing database...
If there's such a thing as too much data for Oracle 10 G to manage, there's no way you can hope to fit it in a text file (aka script). Not even worth considering.

Scripts were great in the 1840s. Times have moved on. Anyone who's trying to do ETL by passing data around in scripts shouldn't be working with databases. Sorry.

Use something like Oracle Loader, or even Microsoft's SSIS or DTS. If you only have 100 rows it won't be such a big deal, but when you start talking about big data sets, it's the only way you'll succeed at this task you're trying to accomplish.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
Learning Newbie is offline
Reply With Quote
View Public Profile
 
Old 08-10-2008, 05:20 AM Re: Oracle 10g how to extract the data from DB?
Novice Talker

Posts: 6
Trades: 0
More detail for my case 2:
Let say the database server have 160 G hard disc, 120G are being used.
When I want to copy the data out from the database, I use external harddisc which is 60G.

It is no possible to extract 120G into 60G harddisc...

That why I ask this question...

Thank you
fsloke is offline
Reply With Quote
View Public Profile
 
Old 08-11-2008, 03:49 PM Re: Oracle 10g how to extract the data from DB?
Learning Newbie's Avatar
Defies a Status

Latest Blog Post:
Astounding Republican Paranoia
Posts: 5,662
Name: John Alexander
Trades: 0
The database server uses an optimized binary format to persist the data, with no wasted space. Extra space in your data forces the server to work much harder to keep up with the disc IO, which is one of the slowest things a computer can do.

A text file with not only the values, but also the INSERT INTO {TABLE} ( {COLUMNS} ) VALUES ( {ACTUAL VALUES} ). This is going to require far more space than the database itself.

Your best chance is Oracle Loader with 2 direct connections, or making a full backup with compression.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
Learning Newbie is offline
Reply With Quote
View Public Profile
 
Old 09-01-2008, 10:38 PM Re: Oracle 10g how to extract the data from DB?
Junior Talker

Posts: 4
Name: Jeff
Trades: 0
Checkout the EXP and IMP commands. Not sure if you have a Unix, Linux or Windows platform. With EXP (export), you can export a table, list of tables, entire schema or the entire database to a single file, with or without the actual data in the tables. Conversley, you then use IMP (import) to load the export into another database. As long as you are moving lateral or forward (i.e. 9i to 10g or 10g to 10g), this is supported. These commands are super fast. You should try a single, large table and check it out, and note the file size and duration of the export. You should be able to extrapulate a rough estimate on a full export size and time needed. Also, you may wish to check out the UTL_FILE package. When implemented, this allows you to, with the help of PL/SQL, write directly to a local oracle filesystem (Oracle calls them "Directories"). You could then conceivably use PL/SQL to insert the data into the tables. IMO, this would be the 2nd choice and should be done only after IMPorting the entire database first. Note that EXP can be set to export only the object (no data) as well. This would establish a duplicate database. I've used this method to create TEST and STAGING environments.

Last edited by ImaCubFan; 09-01-2008 at 10:44 PM.. Reason: Append another note
ImaCubFan is offline
Reply With Quote
View Public Profile
 
Old 09-03-2008, 07:00 AM Re: Oracle 10g how to extract the data from DB?
Junior Talker

Posts: 1
Trades: 0
If you want to extract a very small but referentially intact portion of the data from your DB, then http://jailer.sourceforge.net/ may help you.
Raws is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Oracle 10g how to extract the data from DB?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.25363 seconds with 12 queries