24.12.2012 Views

Backing Up Oracle - Computing at Cornell

Backing Up Oracle - Computing at Cornell

Backing Up Oracle - Computing at Cornell

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Inform<strong>at</strong>ion about each archive object is stored in a TSM internal d<strong>at</strong>abase<br />

table named archives. You can use an SQL select st<strong>at</strong>ement to view the<br />

entries in this table. Here is an example of such a query: select * from<br />

archives where node_name=’JAMAICA’. The entry in the quotes is case sensitive<br />

and must be upper case. Prior to running this command, we used the<br />

backup-archive client to archive the tnsnames.ora file.<br />

tsm: BRAZIL>select * from archives where node_name='JAMAICA' and type='FILE'<br />

ANR2963W This SQL query may produce a very large result table, or may require a<br />

significant amount of time to compute.<br />

Do you wish to proceed? (Yes (Y)/No (N)) y<br />

NODE_NAME: JAMAICA<br />

FILESPACE_NAME: \\jamaica\c$<br />

TYPE: FILE<br />

HL_NAME: \ORACLE\ORA81\NETWORK\ADMIN\<br />

LL_NAME: TNSNAMES.ORA<br />

OBJECT_ID: 105875<br />

ARCHIVE_DATE: 2001-04-05 16:36:04.000000<br />

OWNER:<br />

DESCRIPTION: Archive D<strong>at</strong>e: 04/05/2001<br />

CLASS_NAME: DEFAULT<br />

4.5.2.3 Differences between backup and archive objects<br />

Based on the output of the SQL commands for backup and archive objects,<br />

you can see th<strong>at</strong> there are some similarities and some differences.<br />

The backups table contains two fields th<strong>at</strong> the archives table does not:<br />

STATE and DEACTIVATE_DATE. These two fields are used in implementing<br />

versioning which is specific to backup objects. The STATE field can be either<br />

ACTIVE_VERSION or INACTIVE_VERSION. When the backup object is<br />

inactiv<strong>at</strong>ed, the STATE changes to INACTIVE_VERSION and a timestamp<br />

when this occurred is placed in the DEACTIVATE_DATE field.<br />

The archives table contains one field th<strong>at</strong> the backups table does not:<br />

DESCRIPTION. The DESCRIPTION field is used to group archive objects<br />

logically together. For example, the TSM backup-archive client GUI uses this<br />

field for the retrieve oper<strong>at</strong>ion to group archive objects th<strong>at</strong> were backed up<br />

with similar descriptions.<br />

4.5.2.4 Owner field in backups and archives tables<br />

Both the backups and archives tables have an OWNER field for each d<strong>at</strong>a<br />

object. This is used for client d<strong>at</strong>a sent from a UNIX oper<strong>at</strong>ing system. For<br />

files and directories the OWNER corresponds to the UNIX security owner for<br />

the file or directory. For API d<strong>at</strong>a this field normally comes from the UNIX user<br />

th<strong>at</strong> is used to perform the backup.<br />

Chapter 4. TSM server consider<strong>at</strong>ions 39

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!