Retrieve Oracle export to tape

Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Retrieve Oracle export to tape
# 1  
Old 05-31-2001
Question Retrieve Oracle export to tape


We have an Oracle db export that was compressed and written to DLT tape directly!- This is from box1

The next step is to restore the contents of the tape into the database on box2. The problem is that there is no DLT tape drive attached to box2. There is a box3 that has the tape drive attached to it!

Box 2 and box3 are on the same network!

How can I use the tape drive on box3 to restore the data from the tape into the database on box2?


# 2  
Old 05-31-2001
Depends how large the Oracle export file is.

You could always restore the file into a filesystem on box3 and then use NFS to mount that drive on to a filesystem on box2.

NFS is simple enough to use, depending on your flavour of UNIX there will be a nfsconf file with all the the network files, in HP-UX it is in /etc/rc.config.d/. The entries in here are self explanatory - box3 will need to be a server and client. Create an exports file on this box to detail what directory you want to export, and then simply use the exportfs command to export.

Modfiy the nfsconf file on box2 to make it a client. Start the nfs sub-system on box3 by locating the start script, which will be with all the other networking start scripts, in HP-UX this is /sbin/init.d/ - if you're unsure where it is all these scripts are linked to the run level scripts in rc1.d/rc2.d/rc3/d etc.

Then start nfs on box2. Make sure you do it in this order - the server needs to be started before the client or else the client will hang while it looks for the nfs server.

The syntax on box2 then, to mount the exported filesystem is a logical extension of the normal mount syntax:

mount [nfsserver]:[exported_directory] [local_directory]

Having said all this, attention must be made to network impact, if the export is very large, exporting the directory will put a consequent strain on the network and you may become very unpopular very fast.

If this isnt an issue run man pages on nfs and exportfs to get a better picture if you're stuck at any point.

Hope this helps.

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Homework & Coursework Questions

DB2 Export and Import Oracle

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: is this enough to make the data perfect export into delimited file? there are some posted that i read, they... (9 Replies)
Discussion started by: Sonny_103024
9 Replies

2. Shell Programming and Scripting

Unable to retrieve data from shell when connected to Oracle

I am trying to get the data from oracle table to a variable I have tried the below code #/usr/bin/sh echo " I am in correct loop" SPOOL_FILE=/app/scripts/alt.lst sqlplus /nolog <<END_SQL connect bindu/bindu@gis whenever sqlerror exit failure rollback;... (4 Replies)
Discussion started by: Kiransagar
4 Replies

3. Shell Programming and Scripting

Parallel export of all oracle DB schema.

In my Oracle db there are 4 schemas. All the username & passwords are stored in a text file. I am using a while loop to export all the schemas. It read the first line and doing the export. For all users it export one by one. But I need all the schemas will exported simultaneously. i.e. all the... (1 Reply)
Discussion started by: priya001
1 Replies

4. Shell Programming and Scripting

How to do Parallel Export in Oracle DB

I intend to do parallel export of my Oracle db (i.e all the schema in my db). Currently I'm using the below exp command in my script: exp $uid/$pwd@$ORACLE_SID FILE=./DUMP/$today$username.dmp STATISTICS=NONE LOG=./LOG/$today$username.log For parallel export what should I use? Please... (1 Reply)
Discussion started by: priya001
1 Replies

5. Shell Programming and Scripting

Oracle export

Hi Experts , Does anybody know the sheel scripts , which exports oracle tables into xls files . Thanks for your feedback. Regards Pranav (1 Reply)
Discussion started by: Heisonline
1 Replies

6. UNIX for Advanced & Expert Users

Failing to write retrieve script for tape to disk conversion

I have the below script which has been written to retrieve files from tape drive i.e. TSM server. Now i have to write the script using UNIX commands for retrieve operation but I am not able to proceed. The script is: #!/usr/local/bin/expect -f set timeout 1800 set file spawn $env(SHELL)... (0 Replies)
Discussion started by: hrsaurav
0 Replies

7. AIX

how to use tar to retrieve all tape content

Hi, I use tar to backup the following programs: tar -cvf /dev/rmt0.1 u04/devdb/log/arch tar -cvf /dev/rmt0.1 u01/app/oracle/product/ tar -cvf /dev/rmt0 u01/app/oracle/product/ when I want to retrieve the tape content list with: tar -tvf /dev/rmt0 it... (1 Reply)
Discussion started by: victorcheung
1 Replies

8. UNIX for Advanced & Expert Users

full export oracle on aix

Hi I have an oracle 7.3.4 running on an aix 4.3, I need to make a full export of the db and I haven't space on disk. Can I export directly to a tape drive? Has anybody a script to do so or something that can help me to? thank you very much (1 Reply)
Discussion started by: andwhat
1 Replies

9. Solaris

export oracle schemas

Hi, How do i export selected Oracle database schemas from HpUnix? Is it possible to export it to a windows shared drive? If so how do i do it? Pls advice. Thanks in advance. (4 Replies)
Discussion started by: nicky88
4 Replies

10. Shell Programming and Scripting

export table from oracle database

i would like to export a particular table in my oracle database installed in a hpux box. i would like to determine the filesize of the output before performing these action so i can assess if my harddisk can still handle it. thanks as usuall :rolleyes: (1 Reply)
Discussion started by: inquirer
1 Replies
Login or Register to Ask a Question