LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 05-31-2007, 01:26 PM   #1
asi
LQ Newbie
 
Registered: Oct 2004
Location: Zurich, Switzerland
Posts: 6

Rep: Reputation: 0
Export-Import with pipe files


Hy together,

I have a question I can't find the answer for. I found a new way to export and import Oracle databases. We're running new Oracle 10g databases on RHEL 4 and we're migrating databases (8i) from HPUX which can only be done with exporting and importing the database.

So, "my new way", rather to export the file, move it to the new server and import it there, is as followed:

I created a pipe file (mknod) on the HPUX server and one on the Redhat server. Now, I'm exporting into the first pipe file, writing it's content through an SSH tunnel to the second pipe file and import it to the new database. It has the advantage that I don't have to wait for export to finish bevore import and I can eliminate the disk I/O on this old server which means a massive speed up.

So, the import ist faster than the export (new server beats the old one). But what is if the export would be faster than the export? Where does the exported data go to? Is it stored in the RAM? (Evil with a 60GB database and only 16GB RAM). Or is it stored on the disk? Or, and that would be my favourite, can the export write just so fast as the other server can import?

I often use pipes, but I never did with that amount of data. Can anybody tell my how that exactly works?

Thanks so far and regards.

Tobi
 
Old 06-05-2007, 08:06 AM   #2
jimux
LQ Newbie
 
Registered: Mar 2007
Posts: 11

Rep: Reputation: 1
When you fill up ram you will start to use the swap partition, if you have one! (recommended but not compulsory) At that point you will slow down dramatically and you could loose friends if you are on a multi-user network.
 
Old 06-05-2007, 11:25 AM   #3
asi
LQ Newbie
 
Registered: Oct 2004
Location: Zurich, Switzerland
Posts: 6

Original Poster
Rep: Reputation: 0
Since I'm SysAdmin on our Linux machines and Oracle DBA, I really made no friend. But who cares, I don't need friend at work, I need some in my spare time.

How ever. The "cheat" worked fine. I asked a mate which suggested, as I did, that pipes work synchronous, and it did. The RAM were in use as always, swap wasn't used at all and the export import session took about 10 hours, 6 less than in the usual way.

But thanks anyway for your answer.
 
  


Reply


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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Import/Export Thunderbird filters xri Linux - Software 2 01-07-2007 08:31 PM
Import/Export BookMarks of Mozilla/FireFox UFC Linux - Software 2 07-03-2006 08:41 PM
Accessing import and export symbols ? unclesam Linux - Newbie 2 01-11-2006 08:14 AM
export/import mzilla-mail setting FROM windows install to Linux steve1401 Linux - General 4 01-06-2005 03:56 PM


All times are GMT -5. The time now is 12:51 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration