> For the complete documentation index, see [llms.txt](https://documentation.atempo.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.atempo.com/tina-4.9.5/tina-4.9.5-en/administration-guide/backup/oracle.md). Agents can also search and read this documentation through its [MCP server](https://documentation.atempo.com/~gitbook/mcp).

# Oracle

## Time Navigator for Oracle

### Hot backup

This topic describes how to perform a hot backup of the Oracle database.

#### Overview

Tina for Oracle was designed to perform hot backups of your Oracle database. You can therefore back up your database without stopping it or affecting its users. To perform hot backups of your database, it must be in ARCHIVELOG mode. This way, redo log files are archived before being overwritten. In the event of a restore, it is then possible to replay all the redo log files to recover the datafiles to the state they were in before the restore was needed.

> **Note**: If you cannot put your database into ARCHIVELOG mode but still want to perform hot backups, use the <kbd>TINA\_ORA\_SWITCH\_MODE</kbd> environment variable. See [TINA\_ORA\_SWITCH\_MODE Variable](#tina_ora_switch_mode-variable) for more information.

By default, all databases are in NOARCHIVELOG mode after creation. Switching to ARCHIVELOG mode involves allocating disk space for archiving redo logs, creating a suitable directory owned by the database owner, and modifying parameters.

#### ARCHIVELOG mode parameters

Use the following parameters to switch the database to ARCHIVELOG mode. The archivelog parameters include four parameters (log\_archive\_dest, log\_archive\_dest\_ 1...*10, log\_archive\_format, and log\_archive\_start) and one Tina parameter (TINA\_ORA\_LOG* DEST\_MAX). To switch the database to ARCHIVELOG mode, use these four Oracle parameters:

* **log\_archive\_dest. Deprecated.** Oracle no longer uses this parameter.
* **log\_archive\_dest\_1...*****10.** This set of parameters is used to create up to 10 mirror copies of the log files. They replace the classic log\_archive\_dest parameter. The path assigned to log\_archive\_dest\_1 must point to the local disk. Tina cannot access any other destination, for example, destination=ORACLE\_HOME/dbs/arch/.*
* ***log\_archive\_format.** Determines the name of archived redo log files. The name is made up of the thread number (%t), the sequence substitution number (%s), and the incarnation identifier (%r). The default value is %t*%s\_%r.dbf. You can use any suffix, such as .dbf, .arc, or .log. %t represents the thread number, while %s represents the sequence number. See Thread and Sequence Numbers for more information.

> **Important**: Oracle can accept certain ambiguous log\_archive\_ format values, but Tina for Oracle will reject them. For example, the value arch%t%s.log is ambiguous, because the file arch1129.log could represent either the sequence 129 log for thread 1, or the sequence 29 log for thread 11. We therefore recommend adding an underscore character between %t and %s.

We recommend using the %S character for the sequence number, rather than the %s variant, to avoid sorting issues when viewing the archived redo log destination directory, for example, arch1\_9999.log placed after arch1\_10000.log. The %S variant generates a ten-digit field such as arch1\_0000009999.log.

We recommend using a suffix different from that of the datafiles in the case of an OFA (Optimal Flexible Architecture) compliant database. This lets you exclude the database's datafiles from the file system backup without excluding the redo log files. It is always useful to have several copies of a redo log file.

> **Note**: Avoid overloading the configuration with formats such as archive\_ thread\_%t\_sequence\_%S.log. They take up space in the parent directory and slow down file access. A format such as %t\_%S.log is entirely appropriate.

* **log\_archive\_start.** Lets you perform archiving operations. Its default value is false. It must be set to true for the Oracle database to be able to switch to ARCHIVELOG mode.

> **Note**: The log\_archive\_start parameter is deprecated as of Oracle 10g.

To switch the database to ARCHIVELOG mode, use this Tina variable:

* **TINA\_ORA\_LOG\_DEST\_MAX.** Lets you define the purge of archived redo log files from disk at regular intervals. Its value is a fixed number, which you can estimate by taking into account the disk space reserved for storing redo log files as well as their size. Oracle reads the archived logs on disk during recovery (the <kbd>recover</kbd> command) of a datafile. Consequently, the required archived logs (generally the most recent) must be present on disk, or must be restored from a cartridge. You must therefore reserve enough disk space for the archived logs to remain on disk for several days, depending on the frequency of full database backups. Old archived logs are purged during incremental backups, which frees up disk space in the file system containing the archived logs destination.

Therefore, you must take into account two constraints regarding archive logs:

* Keep a sufficient number of archive logs on disk so that you do not have to restore them from another source (a very long task).
* Monitor disk space so as not to saturate it with archive files. To address these constraints, you can use a purge system based on the <kbd>TINA\_ORA\_LOG\_DEST\_MAX,</kbd> environment variable, whose value represents the minimum number of archive logs that you must keep on disk. During the purge, Tina deletes the archive logs that were backed up during the last backup operation, up to the number defined by the value of <kbd>TINA\_ORA\_LOG\_DEST\_MAX</kbd>.

> **Note**: For security reasons, old archived logs are only purged if they have already been backed up and recorded in the catalog for a given strategy.

When old archived logs are purged, the mirror logs specified by the <kbd>log\_archive\_dest\_n</kbd> parameters are also purged. The default value of this variable is 1,000. The maximum allowed value is 10,000. For Oracle 10g and 11g versions, Oracle can perform recovery using reset logs. It is no longer necessary to perform a full backup following a reset log during an incremental backup.

The minimum number of redo logs will not always be used (fewer logs may\
be sufficient) because Tina purges all backed-up archive logs that do not have the new\ <kbd>incarnation\_id.</kbd> This image shows an example of using <kbd>incarnation\_id</kbd>:

<figure><img src="https://137371609-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HOI4mniMS7pDfClN83G%2Fuploads%2FdGI2Z0HLl4HODB8438zL%2Fimage.png?alt=media&amp;token=fb5be311-be7e-4a01-9511-4bb1ae346a9a" alt=""><figcaption></figcaption></figure>

You can note that the sequence of incremental backups since the last full backup is 115,116,117 on the sequence defined on incarnation\_id = 1. However, at 118, a full restore is performed. While incremental backups (such as 119,120, and so on) can continue on the original sequence defined by incarnation\_id = 1, a new incarnation\_id = 2 is created at the restore point and its incremental backups (whose number starts over at 1) run in parallel with those associated with incarnation\_id = 1. This process can start again at point 4 while a new restore creates incarnation\_id = 3, and so on.

Note that at the restore at point 4 on incarnation\_id = 2, with TINA\_ORA\_LOG\_ DEST\_MAX set to the value 10, only seven archive logs (3,2,1,118,117,116,115) are kept, but the tablespaces are not backed up.

**Parameter location**

You will find Oracle parameters in these locations:

* **Windows**. Look in the %ORACLE\_HOME%\database directory. Oracle imposes no rule on the location of parameter files, since a file can be specified using the pfile or spfile keyword at database startup. During regular file system backups, you must back up the parameter files along with the entire Oracle software.
* **Unix**. Oracle parameters are generally found in the $ORACLE\_\
  HOME/dbs/spfile.ora file. They can also be found in a subsidiary file referenced in the ifile statement, such as a configSID.ora file. In this case, SID represents the instance identifier as in the ORACLE\_SID environment variable.

> **Note**: Some parameters can be changed dynamically and others cannot. Therefore, to fully install and configure Tina for Oracle and perform hot backups, you may need to shut down the database completely for a short time.

The TINA\_ORA\_LOG\_DEST\_MAX parameter is declared in the Tina Oracle application window. See Create an Oracle Application for more information.

**Switching to ARCHIVELOG mode**

Switching the Oracle database to ARCHIVELOG mode

Run these commands from Oracle Server Manager or SQL\*Plus:

```
[oracle@cesar oracle]$ sqlplus /nolog
SQL*Plus: Release 10.2.0.1.0 - Production on Thu Oct 19 14:55:07 2006
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL> connect / as sysdba
Connected.
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup mount
ORACLE instance started.
Total System Global Area 281018368 bytes
Fixed Size 1218944 bytes
Variable Size 88082048 bytes
Database Buffers 184549376 bytes
Redo Buffers 7168000 bytes
Database mounted.
SQL> show parameters log_archive
NAME TYPE VALUElog_archive_config string log_archive_dest string log_archive_dest_1 string 
log_archive_dest_10 string log_archive_dest_2 string log_archive_dest_3 string 
log_archive_dest_4 string log_archive_dest_5 string log_archive_dest_6 string 
log_archive_dest_7 string log_archive_dest_8 string log_archive_dest_9 string 
log_archive_dest_state_1 string enable log_archive_dest_state_10 string enable 
log_archive_dest_state_2 string enable log_archive_dest_state_3 string enable 
log_archive_dest_state_4 string enable log_archive_dest_state_5 string enable
log_archive_dest_state_6 string enable
log_archive_dest_state_7 string enable
log_archive_dest_state_8 string enable
log_archive_dest_state_9 string enable
log_archive_duplex_dest string
log_archive_format string %t_%s_%r.dbf
log_archive_local_first boolean TRUE
log_archive_max_processes integer 2
log_archive_min_succeed_dest integer 1
log_archive_start boolean FALSE
log_archive_trace integer 0
SQL> archive log list
Database log mode No Archive Mode
Automatic archival Disabled
Archive destination /Appli/oracle/ora102/dbs/arch
Oldest online log sequence 0
Current log sequence 1
SQL> alter system set log_archive_dest_
1='location=/Appli/oracle/oradata/LOG102/arch' scope=both;
System altered.
SQL> alter system set log_archive_format='%t_%s_%r.arch' scope=spfile;
System altered.
SQL> alter database archivelog;
Database altered.
SQL> alter database open;
Database altered.
SQL> archive log list
Database log mode Archive Mode
Automatic archival Enabled
Archive destination /Appli/oracle/oradata/LOG102/arch
Oldest online log sequence 0
Next log sequence to archive 1
Current log sequence 1
```

**Removing the Oracle metacharacters "?" and "@"**

Certain parameters used to specify physical paths, such as log\_archive\_dest\_1 or user\_dump\_dest, or control file paths, may contain the old Oracle metacharacters ? which represents the ORACLE\_HOME value and @ which represents the ORACLE\_ SID value. Since Tina does not accept these metacharacters, you must replace them with the appropriate environment variables in all parameter files.

> **Note**: Oracle replaces the value of environment variables in parameters, so this operation should not cause any issues.

All referenced variables must be defined in the environment when the database is started.

Once the changes have been made to the Oracle parameters, you must stop and restart the database, using a special sequence to change the database's connection mode before it is opened and made available to users, using the command-line version of Server Manager or sqlplus.

**Incremental backups and Oracle versions**

It is important to know when incremental backups should be performed. The calculation of the distance between the current sequence for a datafile and the original backup sequence changes. Depending on the Oracle version, the sequence distance calculation method differs. Here is a summary:

**Oracle 9i**

The sequence distance is expressed as follows:

<kbd>current\_sequence - backup\_sequence</kbd>

Where:

• <kbd>current\_sequence</kbd> is the current database sequence.

• <kbd>backup\_sequence</kbd> is the database sequence at the time of the last datafile backup.

The <kbd>TINA\_ORA\_LOG\_DEST\_MAX</kbd> variable is used to specify the purge of archived redo logs from disk at regular intervals.

**Oracle 10g and 11g**

For these Oracle versions, Tina uses Oracle's <kbd>Incarnation\_id</kbd> function to calculate the sequence distance.\
This table describes the possible use cases of the <kbd>Incarnation\_id</kbd> function:

<table><thead><tr><th width="195.66668701171875">Incarnation ID value</th><th width="199.6666259765625">atap.incarnation ID value</th><th>Case</th></tr></thead><tbody><tr><td><strong>other than 0</strong></td><td>equal to 0</td><td>An old <strong>dbf</strong> backup exists (before Tina added the incarnation into the atap). In this case, the backup must be forced.</td></tr><tr><td><strong>current incarnation</strong></td><td>current incarnation</td><td><p>No resetlogs has occurred since the last <strong>dbf</strong> backup.</p><p>The distance is: <strong>associated_sequence - catalog_atap.sequence</strong></p></td></tr><tr><td><strong>current incarnation</strong></td><td>other than current incarnation</td><td>A resetlog has occurred since the last <strong>dbf</strong> backup. The distance is difficult to calculate. A good estimate is <strong>associated_sequence</strong></td></tr></tbody></table>

The <kbd>TINA\_ORA\_LOG\_DEST\_MAX</kbd> variable is also used to specify the purge of archived redo logs from disk at regular intervals.

#### Backup optimization

A good understanding of backup and recovery concepts will be very useful for optimizing backup windows as well as restore and recovery time.\
This table describes the concepts of hot backup, restore, and recovery, and explains how to optimize hot backups:

<table><thead><tr><th width="201.66668701171875">Concept</th><th>Explanation</th></tr></thead><tbody><tr><td><strong>Hot backup</strong></td><td>Every Oracle datafile has a header containing essential information, such as the datafile and block size, the associated tablespace, the creation date, and the SCN value corresponding to the last checkpoint performed on that datafile.When the database is backed up hot, Tina puts each tablespace in turn into <strong>BEGIN BACKUP</strong> mode and logs this in the events (Current Activity menu → Web Administration Events). The datafiles belonging to the tablespace undergo a checkpoint (pending changes are flushed from memory) and their header is updated. While these datafiles are being backed up, Oracle no longer logs the occurrence of database checkpoints in the headers.Once a tablespace has been backed up, Tina takes it out of hot backup state by issuing the <strong>END BACKUP</strong> statement, and logs this in the events. Oracle then updates the datafile headers to reflect the current checkpoint.</td></tr><tr><td><strong>Restore and recovery</strong></td><td>When a datafile is restored, it contains information about the checkpoint preceding the hot backup, but none about the checkpoints performed during it. For this reason, Oracle looks for all the redo logs needed for recovery and replays all the changes made during the backup.As soon as you open a database or attempt to bring a tablespace or datafile online, Oracle checks that the information contained in the datafile header matches that of the control file. If this is not the case, recovery is required.The duration of the restore depends on the number of cartridges to mount and the volume of data to restore. The duration of the recovery depends on the number of redo logs that need to be applied to the datafiles requiring recovery.It is applying the redo logs to the datafiles, not reading them, that takes the most time. Indeed, applying redo log files requires finding all the changes made to the various datafiles, which causes many disk head movements. Reading sequential redo log files is much faster, so it is not a penalty, for example, to read a long sequence of redo log files to restore an old datafile that has undergone few changes.Conversely, applying redo logs to a datafile that is constantly being modified because it contains rollback segments or undo information, for example, will take longer.</td></tr><tr><td><strong>Hot backup</strong><br><strong>optimization</strong></td><td><p>Hot backups are often considered unreliable because some parts of the database are being modified during the backup. Database consistency is ensured if the redo log is applied while the database is in ARCHIVELOG mode. You can therefore reconstruct a full backup of your database from the backups of the various datafiles you have performed. For example, if your database contains seven tablespaces and you back up the control files and redo log files plus one tablespace every night, you will have performed a complete backup of your database within a week.</p><p>If you do not implement the split or snapshot technique, the daily backup window may be too short to perform a complete backup of the database, because hot backups use a lot of resources (CPU, memory, etc.).</p><p>See <a href="#split-mode-backup">Split Mode Backup</a> (/spaces/2HOI4mniMS7pDfClN83G/pages/akI7IF47eGB5ryBLO1vx#split-mode-backup) for more information on split mode. You should perform daily backups of the parts of the database that undergo the most changes, in particular the SYSTEM tablespaces that contain the data dictionary, and the RBS or UNDOTBS tablespaces that contain rollback segments or undo information, which log changes and are not managed locally. By backing up the constantly modified tablespaces more often, you can obtain more recent copies of their datafiles in your backup history, thereby reducing the number of redo logs to apply after an incident.</p><p>Example: If you perform a full backup of your database once a week on Sunday, and it is under heavy load for the rest of the week, a failure that occurs on Friday may require you to apply a very large number of redo logs during recovery. On the other hand, if you schedule a backup of the most heavily used tablespaces every night, you shorten the recovery time by reducing the number of changes to take into account before the failure. During the restore, Tina will only mount the Sunday and Thursday cartridges. Using locally managed temporary tablespaces limits changes to the system data dictionary and reduces redo log transactions. This reduces recovery time.</p></td></tr></tbody></table>

#### Backup strategy and selection

You must define backup strategies and selections for your Oracle application folder using the Restore and Archiving interface and the Web Administration, in the same way as for a file system backup.

The design of Tina options takes into account the need for a common administration and interface for file systems and applications. If you know how to administer file system backups with Tina, you know how to administer Oracle backups.\
This topic provides additional information on strategy options and the placement of backup selections appropriate for Oracle databases.

**Backup strategy**

You can define up to 4 backup strategies for an Oracle application folder. You can simplify operations by using a single strategy and a single media set, or you can define separate strategies for a full database backup and an incremental backup of redo log files. In the latter case, you can associate the full database backup with one media set and the redo log file backup with a separate set. It is recommended to use Tina's multiple backup feature to have several copies of the redo log files.

On the other hand, it is not useful to write the datafile backup in duplicate, because if you lose one backup version of a datafile, you can always use an older version and replay more redo logs during recovery. It is preferable to back up datafiles twice as often in single-write mode than less often in dual-write mode, for the same tape capacity. However, you can write all backups in duplicate to store your data off-site. Another solution is to write the datafile backup to standard media and the log backup to disk. This is a good compromise between volume, security, and cost. The Tina and SIDF write formats are recommended for backing up an Oracle database due to the potential size of the object and to benefit from source-side compression. However, Tina for Oracle supports the tar and cpio formats. For more information on creating backup strategies, see the Tina Administration Documentation.

**Backup selection**

Organization of backup selections\
By default, Tina automatically places a backup selection on the root meta-directory of the file tree so that the entire database is backed up. The characteristics of this default backup selection are:

* It is associated with all backup strategies.
* No filter is set.
* No time range is excluded.
* The data format is compressed and not encrypted.

Subsequently, if you want to extend this policy to perform regular\
incremental backups, you can place additional backup selections on the log and control file meta-directories and associate them with a separate backup strategy. **Example**. For the DB102 database, you must place the three backup selections on the /DB102/\_ARCHIVE\_LOGS, /DB102/\_CONTROL\_FILES, and /DB102/\_REDO\_LOGS meta-directories.

> **Note**: POSIX syntax can also be used in Windows environments.

To avoid having to create additional backup strategies and selections, you can also use the TINA\_ORA\_LOG\_INCR\_MIN variable. See [Datafile backup](#datafile-backup). For more information on defining backup selections, see the Tina Administration Documentation.

**Data compression**

It is recommended to compress Oracle data on the Tina client to reduce network load. This compression option is not suitable if your CPU is heavily loaded during the database backup. You can enable compression by checking the Compressed box in the Format area of the Backup Selection Definition window.

**Backup without defining a backup selection**

In some cases, you can configure backups without defining backup selections. This lets you launch several jobs in parallel on the same strategy and media set. This method lets you partially back up tablespaces that undergo many changes without having to create a specific strategy. You can only perform a backup without a backup selection via the Command Line Interface. To use the Tina scheduler directly for these backups, you must launch a script as a pre-processing option to run the <kbd>tina\_backup</kbd> command via the Command Line Interface. The parameters of the tina\_backup command let you identify the backup folder, the strategy, and the objects to back up. This table describes the parameters of the <kbd>tina\_backup</kbd> command:

<table><thead><tr><th width="262.33331298828125">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><code>-path path1 [path2]...</code></td><td>Specifies the absolute meta-paths of the objects (directories and/or files) to back up.Using this parameter creates an exclusive lock on the strategy, meaning that only one backup job can be launched at a time.</td></tr><tr><td><code>-file_list file_path</code></td><td>Specifies a file listing the meta-paths (one per line) of all the objects to back up. This file allows blank lines between meta-paths.This parameter is very useful when the number of objects to back up is high.Using this parameter creates a shared lock on the strategy, meaning that several backup jobs can be launched at the same time.</td></tr><tr><td><code>[-catalog catalog]</code></td><td>Required if there are multiple catalogs. Specifies the working catalog.</td></tr><tr><td><code>[-sync_cart]</code></td><td>Specifies that the backup ends once the data has been written to media. If this option is not specified, the backup ends once the data has been written to cache.</td></tr><tr><td><code>[-date yyyymmddhhmm]</code></td><td>Specifies the backup date (year, month, day, hour, and minute). This option lets you force the backup date. If not specified, the default date is the machine's date.</td></tr><tr><td><code>-strat A|B|C|D</code></td><td>Specifies the backup strategy (A, B, C, or D).</td></tr><tr><td><code>[-encode]</code></td><td>Active with <code>-path</code> or <code>-file_list</code>, this parameter triggers data encoding during the backup.</td></tr><tr><td><code>[-compress]</code></td><td>Active with <code>-path</code> or <code>-file_list</code>, this parameter triggers data compression during the backup.</td></tr><tr><td><code>[-application application]</code></td><td>Specifies the application on which the backup is launched.</td></tr><tr><td><code>[-full/incr]</code></td><td>Specifies the backup mode (full or incremental).The default value is full mode.</td></tr><tr><td><code>[-help]</code></td><td>Displays the command syntax.</td></tr></tbody></table>

> **Important**: Make sure that the lists of objects to back up in parallel do not overlap and that the whole remains consistent, especially in the case of database backups. Ask for assistance from Atempo Professional Services before using this technique.

For more information on the <kbd>tina\_backup,</kbd> command, see the Atempo-Tina Command Line Interface User's Guide.

#### Datafile backup

You can schedule full and incremental backups of your datafiles. The criterion used to decide whether a datafile should be backed up during an incremental backup is its checkpoint (SCN) point, taking into account that of the previous backup with the same strategy. It is either backed up entirely or not at all. Since every redo log switch causes a checkpoint on all read/write tablespaces, the probability of a datafile keeping the same SCN from one backup to another is low. Databases containing read-only tablespaces keep the same SCN.

During incremental backups, only the archive logs (redo logs and control files) are backed up; the datafiles are not backed up, in order to limit the duration of backup operations. As a result, Oracle recovery is very long because it must restore all the datafiles (dbf) as well as the archive logs from the last full backup and perform archive log recovery. The application variable TINA\_ORA\_LOG\_INCR\_MIN, which defines the maximum number of archive logs to replay during a recovery, lets you resolve this issue because it lets you control more precisely the criteria used to perform an incremental backup of online read/write datafiles.

Tina calculates the interval separating each datafile from its previous backup on the same strategy by looking at the number of redo logs. If the interval is less than the value of the variable, the datafile will not be backed up during an incremental backup. Since Oracle 10g, Oracle can perform a recovery from reset logs. It is no longer necessary to perform a full backup following a reset log.

In the case of an incremental backup following a reset log, the distance calculation ignores all archive logs whose incarnation\_id differs from the new one. However, all other archive logs are backed up.

During an incremental backup, if the number of archive logs (generated by Oracle since the last tablespace backup) is less than the value of <kbd>TINA\_ORA\_LOG\_INCR\_MIN,</kbd> Tina only backs up the archive logs. If the number is greater than the value of TINA\_ORA\_ LOG\_INCR\_MIN, it backs up the tablespaces and the archive logs. The default value of this variable is half the value of <kbd>TINA\_ORA\_LOG\_DEST\_MAX</kbd>. The maximum allowed value is 10,000.

Using this variable enables faster recovery (RTO) because the datafile backup is triggered as soon as the number of redo logs required for recovery exceeds the value of the variable. It also lets you administer a cycle of full and incremental backups for tablespaces and redo logs using a single strategy and a single backup selection placed at the meta-root of the tree.

> **Note**: You cannot define a backup selection at the datafile level, only at the tablespace level. Therefore, all datafiles belonging to the same tablespace have the same backup configuration.

> **Note**: Tina supports backing up datafiles located on a network mount through a CIFS or NFS file system. This is possible even if the Traverse Network File Systems option is not enabled in the New Strategy window.

**Redo log file backup**

You can schedule full and incremental backups of your logs. As with a file system, the criterion used to decide whether a log should be backed up during an incremental backup is its modification date and its SCN values. By scheduling frequent incremental backups of your logs, you increase the number of points in time (RPO) at which you can easily recover your database in the event of redo log loss, without needing to reset the redo log sequence, which would invalidate your backup history. See [Restore and Recovery](https://documentation.atempo.com/tina-4.9.5/tina-4.9.5-en/administration-guide/restore/oracle.md). You also minimize the risk of transaction loss in the event of a problem with the disk on which the redo logs are archived. An hourly backup is recommended for transactional databases.

**Control file backup**

Control files must be backed up with every backup. It is possible to generate and back up a standby-type control file with every full and incremental backup. The control file, along with the datafiles, can then be cross-restored to a second system, where the standby database is installed. You can define a different destination directory on the target system by declaring the <kbd>TINA\_ORA\_STANDBY\_DEST</kbd> variable in the destination application.

**Parameter file backup**

Oracle recommends regularly backing up the parameter files contained in the \_SPARAMS meta-directory. When a parameter file is missing, Tina displays a warning in the tree. This warning is saved and a minor alarm is generated during the backup. This table describes the resulting action depending on the backup type:

<table><thead><tr><th width="123">Backup type</th><th>Action</th></tr></thead><tbody><tr><td><strong>Snapshot</strong></td><td>If you use Tina SnapBackup to back up your Oracle application, the contents of the <strong>_SPARAMS</strong> directory are not included in the snapshot, but are copied to media.</td></tr><tr><td><strong>Replication</strong></td><td>Tina's replication feature does not replicate the <strong>_SPARAMS</strong> directory, because parameter files cannot be copied from one instance to another. In addition, network configuration is necessarily different between the source and the destination.Similarly, when generating the List file for the cold backup, Tina does not include the <strong>_SPARAMS</strong> directory because the List file is used by redirected restore replication, for which you do not want to replicate parameter files.</td></tr></tbody></table>

For more information on Tina snapshots and replication, see the Tina SnapBackup and Atempo-Tina Replication manuals.

#### TINA\_ORA\_SWITCH\_MODE Variable

If, for disk space reasons, you prefer not to back up the active redo logs of your database, you can back up the datafiles, archived redo logs, and control files by placing only the appropriate backup selections or filters. In this case, it is recommended to order a log switch at the end of the tablespace backup, so that the changes committed to the database during a datafile backup are recorded in a log that is also archived and backed up.

Otherwise, some versions of the datafile backup cannot be recovered in the event of a significant file loss. You can force the log switch during the tablespace backup using the TINA\_ORA\_SWITCH\_MODE variable. The TINA\_ORA\_SWITCH\_MODE variable can be used to perform hot backups while the database is in NOARCHIVELOG mode. However, since the redo log files are not archived, you may not be able to replay all transactions in the event of a restore.

This table describes the five possible values you can specify for the <kbd>TINA\_ORA\_SWITCH\_MODE</kbd> application variable:

<table><thead><tr><th width="147.6666259765625">Value</th><th>Meaning</th></tr></thead><tbody><tr><td><code>TABLESPACES</code></td><td>Does not trigger a redo log switch, <strong>ARCHIVELOG</strong> mode.</td></tr><tr><td><code>[TABLESPACES</code></td><td>Triggers a log switch at the start of the tablespace backup to delimit the backup period.</td></tr><tr><td><code>TABLESPACES]</code></td><td><strong>Default mode.</strong>Triggers a log switch at the end of the tablespace backup to recover the datafiles only using archived and backed-up redo logs.</td></tr><tr><td><code>[TABLESPACES]</code></td><td>Triggers a log switch before and after the tablespace backup.</td></tr><tr><td><code>NOARCHIVELOG</code></td><td>The database must be backed up even if it is in <strong>NOARCHIVELOG</strong> mode.</td></tr></tbody></table>

> **Note**: The opening bracket (\[) always triggers the log switch. The closing bracket (]) triggers the log switch, except after an incremental backup during which no datafile was backed up.

**Archiving redo log files**

Current redo log files are archived at the start or end of the backup depending on the value of the TINA\_ORA\_SWITCH\_MODE variable, which performs a checkpoint (synchronization) of all online read/write datafiles. This process also checks for any bottleneck during the archiving of redo log files. Indeed, such a problem could compromise the backup and even the availability of the database in the event that the archiving file system is full.

See [TINA\_ORA\_SWITCH\_MODE Variable](#tina_ora_switch_mode-variable) for more information on the TINA\_ORA\_ SWITCH\_MODE variable.

**Archive log purging**

Archive log purging follows these rules:

* If there is an archive log with an earlier <kbd>incarnation\_id</kbd> that has not been backed up, it is backed up.
* If there are archive logs with an earlier <kbd>incarnation\_id</kbd>, they are only purged if there are enough archive logs in the sequence corresponding to the current incarnation\_id.

#### Specific backup methods

This topic contains the following information:

* Split Mode Backup
* Cluster Backup

#### Split Mode Backup

Hardware manufacturers have developed intelligent systems that incorporate instant mirror copy technologies. This makes it possible to create, within a few minutes, an image of the entire database, which will then be backed up normally. This backup has no impact on the database's operation.\
This type of backup can be described as lukewarm, because the data is written to media independently of the database (like a cold backup) without disrupting the database's operation (like a hot backup). If the datafiles are restored, Oracle will recognize them as coming from a hot backup.

**TINA\_ORA\_SPLIT\_MODE Variable**

This technology is integrated into Tina for Oracle's hot backup solution by means of the <kbd>TINA\_ORA\_SPLIT\_MODE</kbd> variable, declared in the application folder. The logs and control files are backed up normally by the first job, while the datafiles are prepared for backup but not backed up. A second job using a List Application or NDMP must be launched to back up the image of the datafiles, on the same system or on another system.

See [Preparing a Cold Backup](#preparing-a-cold-backup) and the Tina Administration Documentation for more information on creating a List application. This variable specifies that hot backups will be performed in split mode. Its value is the absolute path of an executable or script that will be launched during a hot backup.

> **Note**: To view all datafiles in the DATAFILES meta-directory, set the TINA\_ORA\_SHOW\_DATAFILES variable to Yes. DATAFILES are listed by device, not by tablespace.

**Running the split program or script**

The split program or script is run twice during each hot backup of the database. The application environment must have been defined before running the program, so that the database is connected and the list of current datafiles is generated in a file - in application meta-language (AML), provided the TINA\_ ORA\_SHOW\_DATAFILES variable is set to Yes.

**Example**\
This example shows the list of datafiles that Tina for Oracle generated.

```abap
Generated by Time Navigator Enterprise Edition List 4.1.0.1.B1 12-sep-200610:00 MET, App 4.0.13, Dynamic "Linuxlibc63", Com VERSION 7 LINK "device00000806\_tempfile0001" ( "/Appli/oracle/oradata/TEST102/TEST102/temp01.dbf" SIZE 20488K ), LINK "device00000806\_datafile0001" ( "/Appli/oracle/oradata/TEST102/TEST102/system01.dbf" SIZE 501768K ), LINK "device00000806\_datafile0002" ( "/Appli/oracle/oradata/TEST102/TEST102/undotbs01.dbf" SIZE 56328K ), LINK "device00000806\_datafile0003" ( "/Appli/oracle/oradata/TEST102/TEST102/sysaux01.dbf" SIZE 296968K ), LINK "device00000806\_datafile0004" ( "/Appli/oracle/oradata/TEST102/TEST102/users01.dbf" SIZE 5128K ), LINK "device00000806\_datafile0005" ( "/Appli/oracle/oradata/TEST102/TEST102/users02.dbf" SIZE 5128K ), LINK "device00000806\_datafile0006" ( "/Appli/oracle/oradata/TEST102/TEST102/rcvcat.dbf" SIZE 10248K )
```

Tina for Oracle runs the split program twice for these reasons:

* The first run of the program or script manages resources,\
  synchronizes the mirror copy and the primary copy, or waits for resources to become available, for example. The program can check that each datafile actually has a mirror copy. If the run completes successfully, all online read/write tablespaces switch to backup mode, but no datafile is backed up.\
  If the program fails during the first or second run of the script\
  (return code <>0), the backup is canceled.

> **Note**: The operation is identical whether it is a full or incremental backup.

* The second run of the program or script isolates or separates the mirror copy or the snapshot. This operation must be performed as quickly as possible. At the end of this operation, the tablespaces are no longer in backup mode and the database is freed from the overhead associated with the backup. The log files and control files are then backed up normally.\
  If the program fails during the first or second run of the script (return\
  code <>0), the backup is canceled.

**Execution order**

Tina for Oracle runs the program or script in this order :

* The script is run with the -sync parameter to go through all the datafiles and synchronize their mirror copy. Perform this operation first because it can take a long time. If the program fails (return code <>0), the backup is canceled.
* Redo log switch and archiving of current logs if you specified \[TABLESPACES. Logs ready to be archived are archived.
* All datafiles switch to backup mode but are not backed up.
* The script is run with the -split parameter to isolate or split the copies of the datafiles.
* The datafiles come out of backup mode (as soon as possible after isolation).
* Redo log switch and archiving if you specified TABLESPACES]. There is no need to switch the log files twice. So the value TINA\_ORA\_SWITCH\_ MODE=\[TABLESPACES] is not used in Split mode.
* The backup of the archived log files, control files, and redo logs is performed normally.

**Example script**

This example script proposes a structure for the script you must create to perform a hot backup in Split mode.\
For more information, contact Atempo Professional Services.

```sh
#!/bin/sh
case "$1" in
  '-sync')
    echo "Synchronisation de la copie miroir"
    $TINA_HOME/Bin/tina_alarm -severity acct -text "Constitution de tous les BCV"
    sleep 20
    ;;
  '-split')
    echo "Isolation de la copie miroir"
    $TINA_HOME/Bin/tina_alarm -severity acct -text "Isolation de tous les BCVs"
    sleep 20
    ;;
  *)
    echo "Usage: $0 { -sync | -split } -filelist path"
    exit 100
    ;;
esac

case "$2" in
  '-filelist')
    if [ -f "$3" ]; then
      $TINA_HOME/Bin/tina_alarm -severity acct -text "Liste de fichiers BCV trouvée $3"
    fi
    ;;
  *)
    echo "Usage: $0 { -sync | -split } -filelist path"
    exit 101
    ;;
esac

exit 0
```

> **Note**: The third parameter indicating the path to the datafile list is empty if the TINA\_ORA\_SHOW\_DATAFILES variable is set to No.

**Cluster Backup**

**RAC (Real Application Cluster)**

Tina for Oracle Graphical Mode lets you back up RAC (Real Application Cluster) instances.

This diagram provides an example of a cluster configuration:

<figure><img src="https://137371609-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HOI4mniMS7pDfClN83G%2Fuploads%2Fgit-blob-d9d210997ff6d4df9c87566130e13ffbdce858e9%2Fimage%20(64).png?alt=media" alt="" width="556"><figcaption></figcaption></figure>

> **Note**: This topic describes the broad outlines of configuring Tina to back up Oracle 9i RAC. Contact Atempo Professional Services for more information.

The procedure differs depending on the hardware configuration:

* If you are not using a system cluster, install Tina for Oracle on all nodes hosting an Oracle instance. All nodes must be declared in the same Tina catalog and an Oracle application must be created for each node. The backup selection is placed on the / root for the first node (ORACLE\_ 1), and on the archived redo logs for the second node (ORACLE\_2). When a backup is launched on ORACLE\_1, a backup is also triggered on ORACLE\_2 via a script that runs the tina\_start\_backup command.
* If you are using a system cluster, install Tina for Oracle on the physical nodes (ORACLE\_1 and ORACLE\_2) as well as on the virtual node (ORACLE\_CLU). You must create an Oracle application for each node. Backups are launched on ORACLE\_CLU by a backup strategy that also triggers the backup of ORACLE\_1 and ORACLE\_2 via post-processing.

> **Note**: ORACLE\_1 and ORACLE\_2 must use the same SID for each mounted Oracle instance.

**Prerequisites for backing up Oracle 9iRAC on OCFS**

If you back up Oracle 9iRAC with an OCFS file system, Tina locks the Redo log files and causes the Oracle database to shut down abruptly. Be sure to exclude the Redo logs meta-directory from the backup by setting filters in the backup selection. See the Tina Administration Documentation for more information on backup selections and filters.

#### Parallel backup

Parallel backup is available for Oracle. It is important to understand the concepts of parallelization points and synchronization points in order to correctly use parallel backup.

**Parallel backup concepts**

You can assign backup selections to the nodes of an Oracle tree.\
Parallelism is a characteristic of backup selections. When Tina detects such a parallelized selection during a backup, it creates a backup process for the node and its children. Consequently, your division of the tree determines the parallelism.\
Oracle hot backup requires backing up objects in a specific order. Data files must be archived before archived logs, archived logs before control files, and control files before redo logs.\
This diagram illustrates the hierarchy in the parallelism topology of an Oracle tree:

<figure><img src="https://137371609-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HOI4mniMS7pDfClN83G%2Fuploads%2FkU6Pc5xn7qtwshoc7wr5%2Fimage.png?alt=media&amp;token=d52d2284-040c-405c-9cd2-af0fabb70dbc" alt=""><figcaption></figcaption></figure>

Directory information and the database name are neither parallelism points nor synchronization points. The backup order of objects is established by the synchronization points on the nodes. When Tina detects such a synchronization point on a node, it waits for all the node's children to be backed up before detecting the next synchronization point in the Oracle tree. Consequently, parallelism only exists between two synchronization points.

> **Note**: We recommend placing a parallel backup selection on each node corresponding to a tablespace.

To distribute a single backup job across several backup jobs, you must perform these steps:

* Create an Oracle application.
* Place a standard backup selection at the root.
* Place a parallel backup selection on each node corresponding to a tablespace.
* In the backup strategy, set the parallelism to more than 2.

**Scheduling parallel backup jobs**

Your Oracle database may be located on one or more high-performance disk arrays capable of supporting write access rates well above those of your tape drives. For example, the throughput of the disk array may be around 1 terabyte/hour while the throughput of the drives is only 150 gigabytes/hour.

If the database is very large (VLDB) with a reduced backup window, it could be advantageous to parallelize the backup into, for example, 6 streams, using 6 drives. The conditions to be met to use 6 drives in parallel are:

* Enough drives and controllers are available. To support such throughput on SCSI or FC, it is advisable to limit yourself to two drives per controller. In this case, three controllers are needed.
* Enough blank media in the media set. Media provisioning must be an integral part of backup administration.
* Enough read processes or threads must be created to achieve the desired throughput of the disk array. While one process or thread is waiting, the others must continue working in parallel.
* A roughly equivalent number of write processes or threads must also be created. In the case of a backup that does not use cache on the server, the same processes can perform both reading and writing.
* The integrity of the backed-up data must be preserved, and it must be possible to restore the complete database as well as individual files.
* An equivalent procedure must allow the restore of the complete database to be parallelized with the same degree of parallelism.

This topic describes the process for parallelizing the backup of datafiles, which\
constitute the largest part of the database. The backup of redo logs and control files must be performed separately after the datafile backup.

**Granularity**

Granularity in parallel backup refers to the amount of data that can be handled by a single backup stream. Ideally, this amount should correspond to a datafile, which represents a small amount of data, typically 2, 4, or 8 GB. However, if you use a standard Oracle application, the granularity is not a datafile but a tablespace, since it is the tablespace that is put into backup mode by the Pro\*C SQL commands.

If the largest tablespace in your database represents 10% of the total size, you can distribute the tablespaces across 6 streams. However, if the largest tablespace represents 50% of the total size, you will not be able to perform this distribution. Note that a very large table can be spread across several tablespaces, so you should avoid having very large tablespaces. If it is impossible to avoid a very large table, you can easily avoid large tablespaces.

If you want to parallelize at the datafile level, you can use a List application defined from the cold backup list file generated by the Oracle application. Starting and stopping the tablespace backup is done using the ora\_connect utility. See [Using the ora\_connect utility](#using-the-ora_connect-utility). Datafiles backed up using the List application do not have Oracle attributes, such as the SCN, in the catalog.

**Using command mode**

Parallel backup requires the prior creation of a file list per backup stream. File lists are text files containing the meta-path of each object to back up, one meta-path per line.

**Example**

In this example, a List file specifies 4 tablespaces.

```
/PROD920/TABLESPACES/INDX
/PROD920/TABLESPACES/BMT_0003
/PROD920/TABLESPACES/BMT_0011
/PROD920/TABLESPACES/BMT_0012
```

Run a <kbd>tina\_backup -parallel\_file\_list</kbd> command, which creates several jobs in parallel, one for each file list. If you chose tablespace granularity, use the ora\_connect utility to generate the file lists.

These lists can be used with the Oracle application on the system hosting the database, or with a List application on a system with access to a mirror copy of the database, provided that the Oracle application was used in split mode on the system hosting the database, for example.

If you chose datafile granularity, you must create file lists containing the meta-paths of the datafiles as well as the associated links. You can only use a List application for the backup.

#### Using the ora\_connect utility

This utility, whether binary or executable, is part of the Tina for Oracle distribution for each library supported by the distribution.

For example, <kbd>Bin/ora\_connect92</kbd> corresponds to the <kbd>Lib/libtina\_ora\_92.so</kbd> library. You must set the Oracle and Tina environment variables, in particular:

<kbd>• TINA\_CATALOG</kbd>

<kbd>• TINA\_HOME</kbd>

<kbd>• ORACLE\_HOME</kbd>

<kbd>• ORACLE\_SID</kbd>

This binary has four execution options, and a <kbd>-help.</kbd> option

**Examples**

These examples illustrate a few uses of the <kbd>ora\_connect</kbd> utility:\
Example 1. Shows the syntax of an ora\_connect call:

```bash
legolas.oracle(1) [ ~ ] ora_connect92 -help

Usage: ora_connect92 utilisateur_oracle/mot_de_passe \
       [-begin_backup | -end_backup | -ts_parallelism_index int]

legolas.oracle(2) [ ~ ]
```

Take these remarks into account:

* If the binary is launched with only the Oracle access username and password, ora\_connect connects to the database and runs a series of tests on each tablespace and datafile. Each line is recorded in the events file with debug severity. You then just need to review the events in the Web Administration to find out the database's response time. Be careful, as thousands of lines could be generated in the events file.
* If the binary is launched with the -begin\_backup parameter, ora\_connect connects to the database and puts the permanent, read/write, online tablespaces into backup mode. In the event of an error, a log is recorded and the binary moves on to the next tablespace. This operation is useful for preparing for a backup, copy, split, or snapshot of the database using the List application. You can also perform this operation with RMAN in Proxy I/O mode.
* If the binary is launched with the -end\_backup parameter, ora\_connect connects to the database and takes the permanent, read/write, online tablespaces out of backup mode.

**Example 2.** Shows how to put a database into and out of backup mode:

```bash
legolas.oracle(2) [ ~ ] ora_connect92 sys/sys -begin_backup

RUNNING ora_connect92 in 4.0.0.1, App 4.0.2, Ora 3.2.15, SID TEST920, DLL Oracle 9.2

Oracle PROD920, begin backup on 20 tablespaces after 00:01:27

EXITING ora_connect92 was OK for PROD920
(Oracle9i Enterprise Edition Release 9.2.0.6.0 - 64bit Production)

legolas.oracle(3) [ ~ ] ora_connect92 sys/sys -end_backup

RUNNING ora_connect92 in 4.0.0.1, App 4.0.2, Ora 3.2.15, SID TEST920, DLL Oracle 9.2

Oracle PROD920, end backup on 20 tablespaces after 00:04:57

EXITING ora_connect92 was OK for PROD920
(Oracle9i Enterprise Edition Release 9.2.0.6.0 - 64bit Production)

legolas.oracle(4) [ ~ ]
```

> **Note**: In this example, you are not required to use either the -begin\_backup or -end\_backup options. The Oracle application uses them automatically.

Take this remark into account:

* If the binary is launched with the <kbd>-ts\_parallelism\_index,</kbd> parameter, <kbd>ora\_connect</kbd> connects to the database, calculates the size of each permanent tablespace, and arranges them in the specified file lists, so that the sizes of the lists are roughly equivalent.

**Example**. Shows how to generate five tablespace lists of equivalent size:

```bash
legolas.oracle(4) [ ~ ] ora_connect92 sys/sys -ts_parallelism_index 5

RUNNING ora_connect92 in 4.0.0.1, App 4.0.2, Ora 3.2.15, SID TEST920, DLL Oracle 9.2

Oracle ts BMT_0011, size 252888K, assigned to list 0, size 252888K
Oracle ts BMT_0001, size 225132K, assigned to list 1, size 225132K
Oracle ts BMT_0004, size 221020K, assigned to list 2, size 221020K
Oracle ts BMT_0009, size 209712K, assigned to list 3, size 209712K
Oracle ts BMT_0002, size 197376K, assigned to list 4, size 197376K
Oracle ts BMT_0014, size 195320K, assigned to list 4, size 392696K
Oracle ts SYSTEM, size 158724K, assigned to list 3, size 368436K
Oracle ts BMT_0010, size 151116K, assigned to list 2, size 372136K
Oracle ts BMT_0015, size 139808K, assigned to list 1, size 364940K
Oracle ts BMT_0012, size 133640K, assigned to list 0, size 386528K
Oracle ts BMT_0006, size 128500K, assigned to list 1, size 493440K
Oracle ts BMT_0005, size 100744K, assigned to list 3, size 469180K
Oracle ts BMT_0013, size 98688K, assigned to list 2, size 470824K
Oracle ts BMT_0003, size 92520K, assigned to list 0, size 479048K
Oracle ts BMT_0000, size 88408K, assigned to list 4, size 481104K
Oracle ts UNDOTBS1, size 71684K, assigned to list 3, size 540864K
Oracle ts BMT_0008, size 66820K, assigned to list 2, size 537644K
Oracle ts INDX, size 51204K, assigned to list 0, size 530252K
Oracle ts BMT_0007, size 23644K, assigned to list 4, size 504748K
Oracle ts USERS, size 15368K, assigned to list 1, size 508808K
Oracle ts TOOLS, size 10244K, assigned to list 4, size 514992K

Generating 5 tablespace lists in /Appli/oracle/admin/TEST920/udump/...

List 00, size 518M, ts 4: INDX, BMT_0003, BMT_0011, BMT_0012
List 01, size 497M, ts 4: USERS, BMT_0001, BMT_0006, BMT_0015
List 02, size 525M, ts 4: BMT_0004, BMT_0008, BMT_0010, BMT_0013
List 03, size 528M, ts 4: SYSTEM, UNDOTBS1, BMT_0005, BMT_0009
List 04, size 503M, ts 5: TOOLS, BMT_0000, BMT_0002, BMT_0007, BMT_0014

EXITING ora_connect92 was OK for PROD920
(Oracle9i Enterprise Edition Release 9.2.0.6.0 - 64bit Production)

legolas.oracle(5) [ ~ ]
```

### Cold backup

This topic describes how to perform a cold backup.

#### Overview

Oracle has built into its database engine a fully reliable hot backup system, based on the complementary role of datafiles and redo logs. During the backup, the datafiles are updated and the associated redo logs record the changes made to these datafiles. By replaying these redo logs and the related changes during the recovery operation, Oracle ensures that the datafiles return to a consistent state, even though an isolated datafile backup version may be inconsistent once backed up. Hot backups are just as reliable as cold backups.

They let sites that run 24/7 perform backups safely even when a cold backup is impossible. Tina lets you perform cold backups because every time you back up the database (whether full or incremental, and regardless of the scope of the backup selections used), it generates a text file in the List application's meta-language to describe the database's physical structure. The described tree is equivalent to the Oracle meta-tree used for hot backups. This file is generated in the user\_dump\_dest directory or the trace directory.

#### Preparing a Cold Backup

**Preparing a cold backup**

1. In the Web Administration, create a List application. In the Absolute path of the List file field, enter the name and path of the file generated by hot backups. This file is generally in this form: $ORACLE\_BASE/admin/\<instance\_name>/udump/tina\_cold\_SID.txt You must specify the ORACLE\_OWNER user for the backup process to work for this user. For more information on the List application, see the Tina Administration Documentation.
2. Define a backup strategy to associate a media set and place a backup selection on the root meta-directory. For more information on strategies and backup selections, see the [Tina Administration Documentation.](https://documentation.atempo.com/tina-4.9.5/tina-4.9.5-en/tina-4.9.5-documentation.md)
3. Open the Restore and Archiving interface on this List application folder to check your settings. This way, cold backups are kept separate from hot backups in a different backup folder. You can associate different media sets for hot and cold backups, or split the backup strategies, media sets, and backup selections between hot and cold backups by moving the folders into the same backup group.

> **Important**: For versions 9i and later, the <kbd>\_SPARAMS</kbd> directory, which contains parameter files, is not included in the List file generated by each hot backup.

You can launch a script to stop the database as pre-processing for your strategy and restart the database from post-processing.

#### Example file generated by Tina

This example represents a List file generated by Tina:

```bash
# Generated by Time Navigator-r list 3.7.0.1.SP0, App 3.2.3, Dynamic "Hp700v11b64", Compiled Mar 20 2003

VERSION 4

DIR "TEST901" (
  DIR "TABLESPACES" (

    DIR "INDX" (
      FILE "file0003.dbf" ( "/Appli/oracle/oradata/TEST901/indx01.dbf" )
    ),

    DIR "PROD" (
      FILE "file0007.dbf" ( "/Appli/oracle/oradata/TEST901/prod01.dbf" )
    ),

    DIR "RECOVERY" (
      FILE "file0006.dbf" ( "/Appli/oracle/oradata/TEST901/rman.dbf" )
    ),

    DIR "SYSTEM" (
      FILE "file0001.dbf" ( "/Appli/oracle/oradata/TEST901/system01.dbf" )
    ),

    DIR "TEMP" (
      LINK "tempfile0001" ( "/Appli/oracle/oradata/TEST901/temp01.dbf" SIZE 25604K )
    ),

    DIR "TOOLS" (
      FILE "file0004.dbf" ( "/Appli/oracle/oradata/TEST901/tool01.dbf" )
    ),

    DIR "UNDOTBS" (
      FILE "file0002.dbf" ( "/Appli/oracle/oradata/TEST901/undotbs0101.dbf" )
    ),

    DIR "USERS" (
      FILE "file0005.dbf" ( "/Appli/oracle/oradata/TEST901/user01.dbf" )
    )
  ),

  DIR "_ARCHIVE_LOGS" (
    "/Appli/oracle/oradata/TEST901/"
  ),

  DIR "_CONTROL_FILES" (
    FILE "control.ctl" (
      "/Appli/oracle/oradata/TEST901/control01.ctl",
      "/Appli/oracle/oradata/TEST901/control02.ctl",
      "/Appli/oracle/oradata/TEST901/control03.ctl"
    ),
    FILE "control.sql" ( )
  ),

  DIR "_REDO_LOGS" (
    FILE "GROUP 02" ( "/Appli/oracle/oradata/TEST901/redo02.log" ),
    FILE "GROUP 03" ( "/Appli/oracle/oradata/TEST901/redo03.log" )
  )
)
FILE "GROUP 01" ( "/Appli/oracle/oradata/TEST901/redo01.log" )
)
)

```

> **Note**: During a cold backup, the state of the Oracle database may not be fully known. In this case, your backup folder may contain the backup of an inconsistent database. To avoid this situation, you must request that the database be shut down during the backup preparation phase. If shutdown is not possible, the script must interrupt the cold backup.

> **Note**: With a cold backup, you also risk not backing up all the files because the physical structure of the database changes over time. You can address this by using an updated List file.

> **Note**: If, for a specific database, you decide to perform only cold backups, you can still launch a hot backup for, for example, only the control files, in order to generate an updated List file.

Even if you chose to perform cold backups because your database is in NOARCHIVELOG mode, you can launch a hot backup by setting the TINA\_ORA\_SWITCH\_MODE variable to NOARCHIVELOG.

See [TINA\_ORA\_SWITCH\_MODE Variable](#tina_ora_switch_mode-variable) for more information on the TINA\_ORA\_ SWITCH\_MODE variable.

To prevent the database from undergoing changes during the procedure, it is recommended to shut it down to disconnect all users before restarting it in restricted mode (startup restrict command). This way, Tina can connect to the database in restricted mode.

## Time Navigator for Oracle using Recovery Manager

### Backup Solution

Oracle's Recovery Manager (RMAN) cannot manage a library or drives. To back up data to media, it therefore calls on Tina, which handles mounting, labeling, and unmounting cartridges.

#### Overview of Recovery Manager (RMAN)

RMAN determines the full set of data to back up or restore. It triggers backups and restores through commands issued by the Database Administrator (DBA).

**Recovery Catalog**

RMAN stores metadata about backups and restores either in a Recovery Catalog or in a control file. The Recovery Catalog lets RMAN easily locate the Oracle objects to restore.

> **Note**: You must use the Recovery Catalog to use Tina for Oracle using Recovery Manager.

For more information about the Recovery Catalog, see the Oracle Backup and Recovery Guide documentation.

**Flash Recovery Area**

The flash recovery area has been used since Oracle 10g. The flash recovery area is a location on the file system, on an Automatic Storage Management (ASM) disk group, or a Clustered File System (CFS), that contains files related to recovery.\
This table describes the files related to recovery:

<table><thead><tr><th width="270.66668701171875">File</th><th>Explanation</th></tr></thead><tbody><tr><td><strong>Datafile copies</strong></td><td>Created by RMAN's new <strong>BACKUP AS COPY</strong> command.</td></tr><tr><td><strong>Control file autobackups</strong></td><td>Including <strong>SPFILE</strong> files.</td></tr><tr><td><strong>Archived redo logs</strong></td><td>—</td></tr><tr><td><strong>Flashback logs</strong></td><td>Copies of changed blocks used to rebuild datafiles.</td></tr><tr><td><strong>RMAN files / backupsets</strong></td><td>Created by RMAN.</td></tr><tr><td><strong>Active redo logs</strong></td><td>—</td></tr><tr><td><strong>Active control file</strong></td><td>Multiplexed copy.</td></tr></tbody></table>

> **Note**: Several databases can share a flash recovery area.

Space in the flash recovery area is managed by the database. The flash recovery area can contain these types of files:

* Permanent. You cannot delete them without causing the instance to fail. The redo logs and the online active control file are permanent files.
* Temporary. You can delete them at a certain point in time

#### Tina

Tina provides the media management mechanism. Libraries and drives are connected to the Tina server.\
During a backup or restore operation, Tina Server receives the data sent by RMAN through one of these dynamic libraries:

* Unix platforms use the <kbd>orasbt.dll.</kbd> library.
* Windows platforms use the <kbd>libtina\_rman</kbd> library. A Tina process writes the data to tape. Tina's media retention policy defines how long backups remain on a medium.

This image shows the components of the backup architecture:

<figure><img src="https://137371609-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HOI4mniMS7pDfClN83G%2Fuploads%2FwS1l0WhTCU3ccRHWZaDH%2Fimage.png?alt=media&amp;token=cc82ef62-392a-4476-ad83-8bdc84b33480" alt="" width="563"><figcaption></figcaption></figure>

**Tina and the Solaris 10 Zone Feature**

Solaris 10 includes the zone feature. Zone is a software partitioning technology that virtualizes operating system services and provides an isolated, secure environment for running applications. The two zone types are global and non-global. To perform an RMAN backup of a local zone from a global zone, you must:

* Install a Tina agent in the global zone.
* Configure the <kbd>$TINA\_HOME/Conf/hosts</kbd> file with <kbd>localhostname zone\_global.</kbd>
* When backing up, set the <kbd>TINA\_RMAN\_BCK\_ZONE\_PREFIX</kbd> variable.

This variable accounts for the specifics of communication between zones. Indeed, pipes are created and deleted using the name in the global zone, for example, /tmp/tn\_pipe\_\[...].data.

tina\_stream uses pipes with a zone prefix. However, their name must be in the local zone, for example, /zone/su845ads-orad/root/tmp/tn\_pipe\_\[...].data. In this example, you must set TINA\_RMAN\_BCK\_ZONE\_PREFIX to /zone/su845adsorad/root.

### Data Backup

This topic describes how to back up the Oracle database using Tina for Oracle using Recovery Manager.

#### Overview

The backup is performed through scripts interpreted by RMAN. Tina collects the data sent by Oracle in the communication pipe via <kbd>tina\_stream</kbd> and<kbd>tina\_ tpl\_back\_end</kbd> and stores it in an archive folder on the cartridges. This illustration shows the data flow during restore for Time Navigator for Oracle Using Recovery Manager (RMAN):

<figure><img src="https://137371609-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HOI4mniMS7pDfClN83G%2Fuploads%2FZOaedLMkDo8yQ0vUJAD4%2Fimage.png?alt=media&amp;token=fbb8bff8-78aa-422c-909a-410268b5a091" alt=""><figcaption></figcaption></figure>

See the [<mark style="color:blue;">environment variables table</mark>](https://documentation.atempo.com/tina-4.9.5/tina-4.9.5-en/administration-guide/settings/environment-variables.md#global-environment-variables) for more details about timeouts.

**Backup Organization**

When the <kbd>backup</kbd> command is run in RMAN, one or more backup sets are created for each allocated channel. A backup set is a logical grouping that contains one or more physical backup pieces. A backup piece is an operating system file that contains backed-up objects, that is, datafiles, control files, and archived redo logs.\
The backup set is the result of a full or incremental backup of the objects specified by the <kbd>backup</kbd> command.

**Zone Feature Parameter**

Starting with Oracle 10g, Solaris 10 includes the Zone feature. Zone is a software partitioning technology that virtualizes operating system services and provides an isolated, secure environment for running applications. The two zone types are global and non-global.

RMAN is compatible with zones. Pipes are created and deleted using the name in the global zone, for example, /tmp/tn\_pipe\_\[...].data. However, tina\_stream uses pipes with a zone prefix, for example, /zone/su845ads-orad/root/tmp/tn\_pipe\_ \[...].data. RMAN uses the TINA\_RMAN\_BCK\_ZONE\_PREFIX parameter to store the zone path. In this example, you must set the TINA\_RMAN\_BCK\_ZONE\_PREFIX parameter to /zone/su845ads-orad/root.

You must set the variable in the RMAN script in the parms clause, as with TINA\_RMAN\_CATALOG. This variable is optional. If it is set, it must point to the zone path. The variable only applies in backup mode.

**RMAN Compression**

Starting with Oracle 10g, you can use compression for backup sets, that is, for database, tablespace, and datafile backups. Compression is useful in these types of backup:

* With limited disk space.
* On networks with limited bandwidth.
* On media when drive-based compression is not available.

When enabled, compression is automatically available when Tina performs a backup or restore.

#### Starting a Backup

> **Important**: Once the backup has started, do not stop the tina\_stream process. If you need to interrupt the backup, display the jobs (Current Activity > Jobs menu) in the Administration Web, select the jobs to cancel, and click the Cancel button.

> **Note**: Tina treats any backup stream coming from RMAN as a full backup.

**Preliminary Procedures (Unix only)**

On Unix, perform these steps before starting a backup:

To prepare a backup from RMAN

1. Log in as the Oracle server administrator.
2. Set the ORACLE\_SID variable to the SID value of the target database, that is, the one that will be backed up.
3. In $ORACLE\_HOME/products.x.x.x/bin, launch the RMAN command interpreter (rman).

**Enabling Compression**

This applies starting with Oracle 10g.\
To enable compression, add this line to the RMAN backup script:\
backup as compressed backupset database plus archivelog;

**RMAN Backup Scripts**

RMAN backup scripts consist of a series of commands included in the run command. Backup scripts contain these parameters:

**Basic Commands**

**Allocate channel command (required)**

At least one channel must be allocated so that RMAN can connect to the target database and open a session on the Oracle server. You must also specify the media type on which you want to back up your data. You can allocate several channels to speed up the backup. RMAN thereby parallelizes the backup by splitting it into multiple files. Tina launches the tina\_stream and tina\_tpl\_back\_end commands as many times as there are files to back up. Each channel needs 16 MB of shared memory for the tina\_stream and tina\_tpl\_back\_end commands to communicate.

To ensure communication between Tina and RMAN, certain Tina environment variables must be set in the RMAN scripts. They must appear after the parms keyword. See <kbd>backup command</kbd> (required) for a sample script.\
These environment variables are required unless otherwise noted in the table below. This table describes the environment variables you can use in RMAN scripts:

<table><thead><tr><th width="243.66668701171875">Variable name</th><th>Description</th></tr></thead><tbody><tr><td><strong>TINA_HOME</strong></td><td>Tina installation directory. Due to an RMAN limitation, the installation directory name must not contain a space.</td></tr><tr><td><strong>TINA_RMAN_CATALOG</strong></td><td>Name of the Tina catalog.</td></tr><tr><td><strong>TINA_RMAN_FOLDER</strong></td><td><p>Name of the archive folder where Oracle backups are stored.Allowed characters:</p><p>• Letters (a–z)</p><p>• Digits (0–9)</p><p>• Underscore (_)</p><p>• Hyphen (-)</p></td></tr><tr><td><strong>TINA_RMAN_USER</strong></td><td>Tina user and owner of the archive folder.</td></tr><tr><td><strong>TINA_RMAN_BCK_TIMEOUT</strong></td><td><p><strong>Optional.</strong>Timeout for opening TPL-FE / TPL-BE communications.</p><p>• Default: 7,200 s (2 h)</p><p>• Values: 1 to 86,400 s (24 h)</p></td></tr><tr><td><strong>TINA_TIMEOUT_NET_SHORT</strong></td><td><p><strong>Optional.</strong>Timeout for opening communications between <em>tina_stream</em> and the TPL Back-End.</p><p>• Default: 2,400 seconds (40 minutes)</p></td></tr><tr><td><strong>TINA_RMAN_BCK_ZONE_PREFIX</strong></td><td><strong>Solaris 10 only.</strong>Variable containing the zone path.Used by RMAN to back up a local zone from a global zone and to manage the <em>Zone</em> feature.</td></tr><tr><td><strong>TINA_RMAN_BUG_MTL</strong></td><td><p><strong>Optional.</strong>Allows backups even if:</p><p>• the cartridge name exceeds 12 characters</p><p>• more than 5 cartridges are requiredEnable by setting the value to <strong>Yes</strong>.Workaround for an Oracle bug.</p></td></tr><tr><td><strong>TINA_RMAN_POOL</strong></td><td><p><strong>Optional.</strong>List of media pools for RMAN (replaces those in the archive folder).Syntax: <code>{pool_name}[/ {pool_name}]*</code></p><p>• Max 4 pools (only the first 4 are taken into account)</p><p>• The 1st = primary copy</p><p>• The others = multiple writesAllows, for example, different retention periods.</p></td></tr><tr><td><strong>TINA_KAC_SIZE</strong></td><td><strong>Optional.</strong>Keeps the Tina server/agent connection active (useful with a firewall).Value = size of the backed-up stream (MB).Triggers a connection test once this size is exceeded.</td></tr><tr><td><strong>TINA_ RMAN_ TRACE_ LEVEL</strong></td><td><p>Indicates the trace level. Use this variable if the RMAN trace command is not set. If both are set, RMAN takes the trace command into account rather than TINA_RMAN_TRACE_LEVEL. Depending on the desired trace value, the possible values are:</p><p>• 0 indicates no trace.</p><p>• 1 indicates a low trace level.</p><p>• 2 indicates a medium trace level.</p><p>• 3 indicates a high trace level.</p></td></tr></tbody></table>

**SBT\_LIBRARY Parameter**

Absolute path of the libtina\_rman.so library, for example, /usr/atempo/tina/Lib.

**trace Command (optional)**

You can also set the trace variable in the backup scripts. It indicates the trace level used while running the commands. The available levels are:

• <kbd>trace = 0</kbd>. Only errors are displayed on screen.

• <kbd>trace = 1.</kbd> Errors and inputs/outputs are displayed on screen.

> **Note**: On some operating systems, the trace variable is not recognized by RMAN.

If the trace variable is not supported, set the debug variable to on so that all traces are displayed.

> **Note**: You can also set the trace level using the TINA\_RMAN\_ TRACE\_LEVEL variable. However, the trace command takes precedence over the Tina variable.

**backup Command (required)**

The backup command lets you specify the backup type and the Oracle objects to\
back up.\
**Example**. This script backs up the complete database to media using Tina with a single channel and a timeout of 14,400 seconds, that is, 4 hours:

```rman
RMAN> connect catalog rman/rman@rman81.glAtempoow
RMAN> connect target sys/change_on_install@ora81.glAtempoow

RMAN> run {
  allocate channel c1 type 'sbt_tape'
    parms="ENV=(TINA_HOME=D:\tina, TINA_RMAN_CATALOG=odb, TINA_RMAN_FOLDER=glAtempoow.rman, TINA_RMAN_USER=oracle, TINA_RMAN_BCK_TIMEOUT=14400)"
    trace=1;
  backup database;
}
```

> **Note**: Container databases (CDB) on Oracle 12c. To back up pluggable databases (PDB, Pluggable Database), the backup database command must be replaced with backup pluggable database \<pdb\_name>.

**Backup to the Flash Recovery Area**

Starting with Oracle 10g, you can back up items to the flash recovery area using the <kbd>backup recovery area</kbd> command in an RMAN script. However, some items cannot be backed up this way.\
This table describes the objects you can back up and those you cannot back up using the backup recovery area command:

<table><thead><tr><th width="322.33331298828125">Backs up</th><th>Does not back up</th></tr></thead><tbody><tr><td><strong>Full / incremental backup sets</strong></td><td>Flashback logs</td></tr><tr><td><strong>Control file autobackups</strong></td><td>Incremental bitmaps</td></tr><tr><td><strong>Archived redo logs</strong></td><td>The active control file</td></tr><tr><td><strong>Datafile copies</strong></td><td>Active redo logs</td></tr></tbody></table>

**Backing Up to the Flash Recovery Area**

Enter the following commands in RMAN:

<kbd>RMAN> configure backup optimization on;</kbd>

<kbd>RMAN> configure controlfile autobackup on;</kbd>

<kbd>RMAN> backup recovery area;</kbd>

**Example 1.** This is an example of the backup recovery command on Windows:

```
Recovery Manager: Release 10.1.0.2.0 - Production
Copyright (c) 1995, 2005, Oracle. All rights reserved.

RMAN> connect catalog *
RMAN> connect target *

run {
  allocate channel c1 type 'sbt_tape'
    parms='SBT_LIBRARY=D:\tina\Bin\orasbt.dll, ENV=(TINA_HOME=D:\tina, TINA_RMAN_CATALOG=tina_rman, TINA_RMAN_FOLDER=RMAN, TINA_RMAN_USER="NT AUTHORITY\system")'
    trace=1;
  backup recovery area;
}
```

**Example 2.** In this example of the backup recovery command on Unix, these lines\
replace the parms line from the Windows example:

<kbd>parms='SBT\_LIBRARY=/usr/atempo/tina/lib/libtina\_rman.so, TINA\_ HOME/usr/atempo/tina, TINA\_RMAN\_FOLDER=RMAN,TINA\_RMAN\_USER=oracle)'</kbd>

#### Multiple Backups

To perform multiple backups to media, you can use the RMAN set duplex command, which works for disk backups. You can also configure Tina as follows:

* Use Tina's multiple-write feature. See the Tina Administration Documentation for more details.
* Associate the media pool(s) with the archive folder created for RMAN backups. See Archive Folders for more details.

#### Backup Copies

Starting with Oracle 10g, the backup command can back up a complete database as an image copy. It creates images of the database files instead of creating backup sets. Since backup copies can only be made to disk, Tina is not involved in the process.

> **Note**: If flash recovery is configured, the result of a backup copy is saved in the flash recovery area.

**Enabling Backup Copies with RMAN**

Enter the following command in RMAN:

```
RMAN> connect target sys/oracle@test10g; 
connected to target database: TEST10G (DBID=783719315) 

RMAN> connect catalog rman/oracle@rman10g; 
connected to recovery catalog database 

RMAN> backup as copy database;
```

#### Block Change Tracking File

The block change tracking file is used to improve incremental\
backups. When configured with this file, Oracle 10g and 11g record every block change in the block change tracking file. During an incremental backup, instead of reading every datafile to determine which block has changed, RMAN reads the block change tracking file to identify the changes. By default, this option is disabled.

**Enabling the Block Change Tracking File**

Enter this command in the SQL\* Plus Interpreter:

<kbd>alter database enable block change tracking ;</kbd>

#### Viewing Backed-Up Objects

This topic contains this information:

**Tina Archive Folder**

To view backed-up databases stored in archive folders

1. Open the **Restore and Archiving** interface.
2. Choose **Archiving > View.**
3. Enter the name of the archive folder you created to store the RMAN backups, or click **Search**, then click **OK**.
4. Open the archive folder to view the backup sets. Oracle assigns a unique name to each backup set. This image shows the Restore and Archiving interface:

<figure><img src="https://137371609-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HOI4mniMS7pDfClN83G%2Fuploads%2Fgit-blob-b4ff5edf18d9cae722c09b4443e0500ff39f3ad2%2Fimage%20(61).png?alt=media" alt=""><figcaption></figcaption></figure>

5. Select one of the backed-up files and choose Versions to view information about the backup file.

#### Backup Report

This table describes the trace files that RMAN and Tina generate during a backup:

<table><thead><tr><th width="162.33331298828125">Type</th><th width="168">Source</th><th>Location</th><th>Description</th></tr></thead><tbody><tr><td><strong>RMAN messages</strong></td><td>RMAN</td><td>Standard output or file specified by the <code>log</code> option</td><td>Contains the actions and errors that occurred during execution.</td></tr><tr><td><strong>RMAN trace</strong></td><td>RMAN debug command</td><td>File specified via the <code>trace</code> parameter (CLI)</td><td>Contains traces of PL/SQL unit creation and execution.</td></tr><tr><td><strong>alert.log</strong></td><td>Oracle server</td><td><code>USER_DUMP_DEST</code> directory</td><td>Chronological log of errors and administration operations.</td></tr><tr><td><strong>Oracle trace</strong></td><td>Oracle server</td><td><code>USER_DUMP_DEST</code> directory</td><td>Contains detailed traces of Oracle processes.</td></tr><tr><td><strong>sbtio.log</strong></td><td>Tina</td><td><code>USER_DUMP_DEST</code> directory</td><td>Information and errors about the backup's progress.</td></tr><tr><td><strong>event</strong></td><td>Tina</td><td><code>TINA_HOME/Adm</code> directory</td><td>Tina information and errors.</td></tr></tbody></table>

**RMAN Messages**

When the backup completes successfully, RMAN displays these messages:

```rman
Recovery Manager: Release 10.2.0.1.0 - Production on Fri Sep 29 16:55:07 2006
Copyright (c) 1982, 2005, Oracle. All rights reserved.

RMAN> connect catalog *
RMAN> connect target *

run {
  allocate channel c1 type 'sbt_tape'
    parms="SBT_LIBRARY=/usr/atempo/tina/Lib/libtina_rman.so, ENV=(TINA_HOME=/usr/atempo/tina, TINA_RMAN_CATALOG=rman_cat, TINA_RMAN_FOLDER=rman, TINA_RMAN_USER=oracle)";
  
  allocate channel c2 type 'sbt_tape'
    parms="SBT_LIBRARY=/usr/atempo/tina/Lib/libtina_rman.so, ENV=(TINA_HOME=/usr/atempo/tina, TINA_RMAN_CATALOG=rman_cat, TINA_RMAN_FOLDER=rman, TINA_RMAN_USER=oracle)";
  
  backup database;
  
  release channel c1;
  release channel c2;
}
connected to recovery catalog database
connected to target database: TEST102 (DBID=4092454596)
allocated channel: c1
channel c1: sid=139 devtype=SBT_TAPE
channel c1: Time Navigator Media Management (Tpl)
allocated channel: c2
channel c2: sid=154 devtype=SBT_TAPE
channel c2: Time Navigator Media Management (Tpl)
Starting backup at 29-SEP-06
channel c1: starting full datafile backupset
channel c1: specifying datafile(s) in backupset
input datafile fno=00005 name=/Applis/oracle/oradata/TEST102/rman01.dbf
input datafile fno=00004 name=/Applis/oracle/oradata/TEST102/users01.dbf
input datafile fno=00003 name=/Applis/oracle/oradata/TEST102/sysaux01.dbf
channel c1: starting piece 1 at 29-SEP-06
channel c2: starting full datafile backupset
channel c2: specifying datafile(s) in backupset
input datafile fno=00001 name=/Applis/oracle/oradata/TEST102/system01.dbf
input datafile fno=00002 name=/Applis/oracle/oradata/TEST102/undotbs01.dbf
channel c2: starting piece 1 at 29-SEP-06
channel c1: finished piece 1 at 29-SEP-06
piece handle=09huh1vs_1_1 tag=TAG20060929T165523 comment=API Version 2.0,MMS
Version 3.7.0.4
channel c1: backup set complete, elapsed time: 00:00:45
channel c1: starting full datafile backupset
channel c1: specifying datafile(s) in backupset
including current control file in backupset
channel c1: starting piece 1 at 29-SEP-06
channel c1: finished piece 1 at 29-SEP-06
piece handle=0bhuh219_1_1 tag=TAG20060929T165523 comment=API Version 2.0,MMS
Version 3.7.0.4
channel c1: backup set complete, elapsed time: 00:00:16
channel c1: starting full datafile backupset
channel c1: specifying datafile(s) in backupset
including current SPFILE in backupset
channel c1: starting piece 1 at 29-SEP-06
channel c2: finished piece 1 at 29-SEP-06
piece handle=0ahuh1vs_1_1 tag=TAG20060929T165523 comment=API Version 2.0,MMS
Version 3.7.0.4
channel c2: backup set complete, elapsed time: 00:01:04
channel c1: finished piece 1 at 29-SEP-06
piece handle=0chuh21p_1_1 tag=TAG20060929T165523 comment=API Version 2.0,MMS
Version 3.7.0.4
channel c1: backup set complete, elapsed time: 00:00:18
Finished backup at 29-SEP-06
released channel: c1
released channel: c2
Recovery Manager complete.

```

**sbtio.log File**

The sbtio.log file contains traces of how RMAN operates with Tina.\
This image shows how the traces are formatted in the sbtio.log file:

<figure><img src="https://137371609-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HOI4mniMS7pDfClN83G%2Fuploads%2FJPrxFZO3cmsWRddbNA5i%2Fimage.png?alt=media&amp;token=49acd115-d6ec-4e1d-a659-405afe39ff16" alt=""><figcaption></figcaption></figure>

The <kbd>sbtio.log</kbd> file contains messages from the libtina\_rman library, while events concerning tina\_stream and <kbd>tina\_tpl\_back\_end</kbd> are stored in the Tina events. To view the events, in the Administration Web choose Current Activity > Events.

For more information, see the [Tina Administration Documentation](https://documentation.atempo.com/tina-4.9.4/).

**RMAN Compatibility with Oracle**

This table describes the version that RMAN components need in order to work:

| Target database (Oracle database) | RMAN client (shown at startup) | Catalog database (Oracle database) | Catalog schema (RMAN client version used to create the recovery table) |
| --------------------------------- | ------------------------------ | ---------------------------------- | ---------------------------------------------------------------------- |
| **9.0.1**                         | 9.0.1                          | 8.1.7 or later                     | RMAN client or later                                                   |
| **9.2**                           | 9.0.1.3 or later               | 8.1.7 or later                     | RMAN client or later                                                   |
| **10.1.0.5**                      | 10.1.0.5 or later              | 10.1.0.5 or later                  | RMAN client or later                                                   |
| **10.2.0**                        | 10.1.0.5 or later              | 10.1.0.5 or later                  | RMAN client or later                                                   |
| **11**                            | 10.1.0.5 or later              | 10.2.0.3 or later                  | RMAN client or later                                                   |
| **12.1.0.x**                      | 12.1.0.x                       | 10.2.0.3 or later                  | RMAN client                                                            |

## Time Navigator for Oracle on NetApp

### Database Backup

This chapter describes how to configure and trigger a backup of an Oracle database using Tina.

#### Backup principles

Tina perfoms a backup operation by running four steps. Tina runs a first job that consists of these steps:

1. Tina triggers a backup of the Oracle database using the split mode feature.
2. Once the database is in backup mode, the file server takes a Snapshot of the datafiles.
3. Tina backs up Oracle control files and archive logs. Then Tina runs a second job that consists of this step:

> A server-free backup of the Oracle datafiles is performed through NDMP.

#### Backup configuration

You must configure backup strategies and set backup selections on these applications:

* The Oracle application which enables you to control file and archive log backup.
* The NDMP application(s) which enables you to back up datafiles.

**Oracle Application Backup**

To create a backup strategy

1. Connect to the Administration Web and expand your catalog in the Tina Explorer.
2. Select Data Management Strategies. The Strategies pane opens.
3. Click the New Strategy button to launch the Strategy Creation Wizard.
4. Define the new strategy parameters as described in the Tina Administration Documentation.
5. In the Full and Incremental Media Pool windows, ensure you select the media pool you created for control files and archive logs backups.
6. Verify the Summary of the strategy parameters carefully and click Finish to create the strategy.
7. If the strategy has been created successfully, click Close to exit the Strategy Creation Wizard. The newly created strategy displays in the list of strategies. Or If the strategy creation fails, read the error messages to solve the problem.
8. Select the newly created strategy in the list and click the Strategy Details button.
9. In the Postprocessing field of the Advanced-Commands area, enter the path of the start\_ ndmp\_backup script which triggers the NDMP backup. You can find an example of the script in the $TINA\_HOME/Tools/Tina/OracleNDMP directory.

**start\_ndmp\_backup Script**

You must modify this sample script for it to fit to your own configuration.

**Windows**

This table describes the variables that you must set for a Windows system:

| Variable name                                           | Description                                                                           | Example                            |
| ------------------------------------------------------- | ------------------------------------------------------------------------------------- | ---------------------------------- |
| **TINA\_CATALOG**                                       | Specifies the name of the Tina catalog.                                               | catndmp                            |
| **nb\_filer**                                           | Specifies the number of file servers used for the database.                           | 3                                  |
| **filer1 / filer2 / filer3**                            | Specifies the name of the Network Appliance file servers.                             | dardar / aria / Jane               |
| **volumefiler1 / volumefiler2 / volumefiler3**          | Specifies the names of the volumes that host the Oracle database on each file server. | vol0 / vol0 / vol0                 |
| **snapname**                                            | Specifies the name of the snapshot.                                                   | oracle\_snap                       |
| **applinamefiler1 / applinamefiler2 / applinamefiler3** | Specifies the name of the NDMP Applications for each file server.                     | takata.ndmp / ora.ndmp / Jane.ndmp |

**Unix**

This table describes the variables that you must set for a Unix system:

<table><thead><tr><th width="197.33331298828125">Variable name</th><th>Description</th><th>Example</th></tr></thead><tbody><tr><td><strong>TINA_CATALOG</strong></td><td>Specifies the name of the Tina catalog.</td><td>catndmp</td></tr><tr><td><strong>filer</strong></td><td>Specifies the name of the Network Appliance file server.</td><td>dardar</td></tr><tr><td><strong>volume</strong></td><td>Specifies the names of the volumes that host the Oracle database on the file server.</td><td>vol0</td></tr><tr><td><strong>snapname</strong></td><td>Specifies the name of the snapshot for the Oracle databases.</td><td>oracle_snap</td></tr><tr><td><strong>appliname</strong></td><td>Specifies the name of the NDMP Applications for each file server.</td><td>takata.ndmp</td></tr></tbody></table>

**To create a backup selection**

1. Connect to the Administration Web and expand your catalog in the Tina Explorer.
2. Select Data Management Backup Selections. The Backup Selections pane opens.
3. Click the New Backup Selection button to launch the Backup Selection Creation Wizard.
4. Define the new backup selection parameters as described in the Tina Administration Documentation.
5. Verify the Summary of the backup selection parameters carefully and click Finish to create the backup selection.
6. If the backup selection has been created successfully, click Close to exit the Backup Selection Creation Wizard. The newly created backup selection displays in the list of backup selections. Or If the backup selection creation fails, read the error messages to solve the problem.

**NDMP Application Backup**

To configure the backup through NDMP

1. In the Administration Web, create a backup strategy associated with the media pool you created to back up the datafiles. See the Tina Administration Documentation for details on the creation of backup strategies.
2. In the NDMP Application's Restore and Archiving, set a backup selection on the directory where the datafiles you want to back up are located. See the Tina Administration Documentation for details on backup selection settings.

#### Backup triggering

Besides scheduled automatic triggering, you can manually initiate an incremental or a full backup of your Oracle database.

**To manually initiate a backup**

1. In the Administration Web, select the Oracle application.
2. Click the **Launch Backup button.**
3. Select Launch Full Backup-Full A (B, C, or D) to start a full backup manually. Or Select Launch Incremental Backup-Incr A (B, C, or D) to start an incremental backup manually.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://documentation.atempo.com/tina-4.9.5/tina-4.9.5-en/administration-guide/backup/oracle.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
