The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Tape Status shows 2 Hard errors and 5 Underruns on new tape psytropic SCO 5 04-24-2008 01:29 PM
Mounting DLT tape and to backup file to tape ayzeayem UNIX for Dummies Questions & Answers 0 08-14-2007 02:09 AM
Space free on tape /delete a single file on tape Minguccio75 UNIX for Advanced & Expert Users 3 12-21-2006 12:03 AM
Take a file from the system and put on tape and reset the file to 0 bytes JackieRyan26 UNIX for Dummies Questions & Answers 1 09-06-2001 05:08 PM
Restoring a file from Tape mfischer UNIX for Dummies Questions & Answers 3 06-29-2001 03:57 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-18-2002
jamesloh jamesloh is offline
Registered User
  
 

Join Date: Aug 2002
Location: Taiwan
Posts: 5
file on tape

Hi,
I use the following commands on Solairs to backup my Oracle db file to tape:
mt -t /dev/rmt/0 rew
exp ..... file= /dev/rmt/0n

Q1:
how can I copy this file back onto my disk? (ufsrestore doesn't work)

Q2:
I found that /dev/rmt/0n is linked to /devices/ssm@0,0/pci@1d,600000/pci@1/SUNW,isptwo@4/st04,0:n and the size of that file shows 33279. This filesize seems too small for my database file. So what does this number mean?
(btw, I got the number 33279 by ls -l /devices/ssm@0,0.......)

Thanks.
James.
  #2 (permalink)  
Old 10-18-2002
janr janr is offline
Registered User
  
 

Join Date: Jun 2002
Location: Amsterdam (Netherlands)
Posts: 142
Cool Question

Its not clear to with backup command you are using.

When you want to restore with `ufsrestore` you need to make your backup with `ufsdump`

The file you mentiond in Q2 is NOT the database file, it is just the tape device.


`mt -t /dev/rmt/0 rew` is just doing a rewind of your tape.
`exp ..... file= /dev/rmt/0n ` I do not know what you mean with this.

Hereby the man page of ufsdump/ufsrestore
http://docs.sun.com/db/doc/805-3727/...ufsdump&a=view
  #3 (permalink)  
Old 10-18-2002
jamesloh jamesloh is offline
Registered User
  
 

Join Date: Aug 2002
Location: Taiwan
Posts: 5
Sorry that my wording 'backup' was misleading.

My ex-co-worker extracted some data in an Oracle database by using the Oracle "exp" utility and directly write data onto the tape device(hence the command exp ....... file=/dev/rmt/0n ....).

by looking at the script I thought the data would be stored in the filename /dev/rmt/0n, which is the same as the tape device, so I try 'cp' it but it didn't work. Is there a default filename for data stored on the tape device? I want to copy the file back to a disk to I can ftp it to somewhere else.

Also, I did a 'ls -l /dev/rmt/0n' and it showed a link to /devices/ssm@0,0/pci@1d,600000/pci@1/SUNW,isptwo@4/st04,0:n and then I did a 'ls -l ' on the file and it showed 33279 as the filesize. Does this number represent how much data that is currently stored on the tape device?

Thanks.
  #4 (permalink)  
Old 10-18-2002
janr janr is offline
Registered User
  
 

Join Date: Jun 2002
Location: Amsterdam (Netherlands)
Posts: 142
Try dd

Hi,

You can use the `dd` command to read blocks from tape to disk.
hereby the SUN manpage of dd
http://docs.sun.com/db/doc/806-0625/...kv?q=dd&a=view
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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




All times are GMT -4. The time now is 04:34 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0