- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Commands to manipulate the tape drive
Categories
Company
Local Language
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- This widget could not be displayed.This widget could not be displayed.This widget could not be displayed.This widget could not be displayed.This widget could not be displayed.This widget could not be displayed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2009 01:39 AM
05-04-2009 01:39 AM
I am using Oracle exp utility to perform exports of the tables. I have to make a backup in the tape directly from the EXP utility.
Please tell me which is HPUX command which displays the content of the tape.
I want to run several exports on the same tape. Which is the command that moves the tape past the last export, so that the second execution of EXP utility does not overwrite the previous export?
Thank you.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2009 01:44 AM
05-04-2009 01:44 AM
SolutionOnly the commands that write the tape know how to read it.
>Which is the command that moves the tape past the last export
The tape would have to be a norewind device.
See mt(1): mt [-f tapename] fsf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2009 02:27 AM
05-04-2009 02:27 AM
Re: Commands to manipulate the tape drive
you need first to identify the block size of the record
with for instance a
dd if=/dev/tmp/0mn ibs=1024k obs=1 count=1 of=/dev/null
0+1 records in
655360+0 records out
- the number given in the out summary is the bloc size
Then you reposition your tape
dd if=/dev/rmt/0mn of=myfile bs=655360
Then you can look at the content of the file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2009 03:10 AM
05-04-2009 03:10 AM
Re: Commands to manipulate the tape drive
You might do better writing your file to local disk and then going to tape with it.
The exp utility has a parameter that permits you to change the target file you write do.
That can be tape, that can be disk.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2009 05:08 PM
05-04-2009 05:08 PM
Re: Commands to manipulate the tape drive
The mt command can be used to position a tape past a record or a file. But as seasoned sysadmins will tell you, you will make a mistake and destroy everything on the tape. And of course, there is no table of contents except a small sticky note that will get lost.
The cost of lost data far exceeds the small cost of extra tapes.
Bill Hassell, sysadmin