Backing up the Embedded Oracle database of a Red Hat Network Satellite



Similar documents
Implementing Failover Capabilities in Red Hat Network Satellite

MapGuide Open Source Repository Management Back up, restore, and recover your resource repository.

Configuring an OpenNMS Stand-by Server

Preparing for the Installation

Red Hat Network Satellite Management and automation of your Red Hat Enterprise Linux environment

Red Hat Satellite Management and automation of your Red Hat Enterprise Linux environment

JAMF Software Server Installation Guide for Linux. Version 8.6

Best Practices for Deploying and Managing Linux with Red Hat Network

This appendix describes the following procedures: Cisco ANA Registry Backup and Restore Oracle Database Backup and Restore

JAMF Software Server Installation Guide for Windows. Version 8.6

How to Replace ASMlib with the udev Device Manager for New and Existing Oracle Instances

Plesk 8.3 for Linux/Unix Acronis True Image Server Module Administrator's Guide

Lenovo ThinkServer Solution For Apache Hadoop: Cloudera Installation Guide

How To Migrate To Redhat Enterprise Linux 4

IBM Redistribute Big SQL v4.x Storage Paths IBM. Redistribute Big SQL v4.x Storage Paths

Using Red Hat Enterprise Linux with Georgia Tech's RHN Satellite Server Installing Red Hat Enterprise Linux

OpenGeo Suite for Linux Release 3.0

PARALLELS SERVER 4 BARE METAL README

BrightStor ARCserve Backup for Linux

Parallels Virtuozzo Containers 4.7 for Linux

Migrating LAMP stack from x86 to Power using the Server Consolidation Tool

Open-Xchange Server Backup Whitepaper

Oracle VM Server Recovery Guide. Version 8.2

Partek Flow Installation Guide

DOCUMENTATION LOTUS NOTES BACKUP & RESTORE OPERATIONS

Backing Up CNG SAFE Version 6.0

Intelligent Power Protector User manual extension for Microsoft Virtual architectures: Hyper-V 6.0 Manager Hyper-V Server (R1&R2)

How to Backup XenServer VM with VirtualIQ

Backing Up Your System With rsnapshot

Managing your Red Hat Enterprise Linux guests with RHN Satellite

Performing Administrative Tasks

Red Hat Network Satellite High Availability Guide By Wayman Smith, Red Hat Consultant

Red Hat Network Satellite 5.4 Installation Guide. Red Hat Network Satellite

ADSMConnect Agent for Oracle Backup on Sun Solaris Installation and User's Guide

DOCUMENTATION MICROSOFT SQL BACKUP & RESTORE OPERATIONS

Unless otherwise noted, all references to STRM refer to STRM, STRM Log Manager, and STRM Network Anomaly Detection.

Ahsay Offsite Backup Server and Ahsay Replication Server

Linux System Administration on Red Hat

BrightStor ARCserve Backup

Agenda. Overview Configuring the database for basic Backup and Recovery Backing up your database Restore and Recovery Operations Managing your backups

Intel Cloud Builder Guide: Cloud Design and Deployment on Intel Platforms

Storage Management for the Oracle Database on Red Hat Enterprise Linux 6: Using ASM With or Without ASMLib

Backup and Recovery. What Backup, Recovery, and Disaster Recovery Mean to Your SQL Anywhere Databases

Dell UPS Local Node Manager USER'S GUIDE EXTENSION FOR MICROSOFT VIRTUAL ARCHITECTURES Dellups.com

How To Install Acronis Backup & Recovery 11.5 On A Linux Computer

DOCUMENTATION SHADOWPROTECT - MICROSOFT WINDOWS SYSTEM BACKUP AND RESTORE OPERATIONS

Upgrading VMware Identity Manager Connector

McAfee Firewall for Linux 8.0.0

PARALLELS SERVER BARE METAL 5.0 README

Intel Storage System SSR212CC Enclosure Management Software Installation Guide For Red Hat* Enterprise Linux

Using. DataTrust Secure Online Backup. To Protect Your. Hyper-V Virtual Environment. 1 P a g e

Acronis Backup & Recovery 11

Advanced SUSE Linux Enterprise Server Administration (Course 3038) Chapter 5 Manage Backup and Recovery

Microsoft s SBS 2003 Best Practice Guide

Do it Yourself System Administration

Using Symantec NetBackup with Symantec Security Information Manager 4.5

BMC BladeLogic Client Automation Installation Guide

Using Red Hat Network Satellite Server to Manage Dell PowerEdge Servers

LSN 10 Linux Overview

Attix5 Pro Server Edition

SWsoft, Inc. Plesk Firewall. Administrator's Guide

Oracle Linux 7: System Administration Ed 1 NEW

Red Hat System Administration 1(RH124) is Designed for IT Professionals who are new to Linux.

To get started, you will need the following items Product Key Router with firewall capability Network cables

identity management in Linux and UNIX environments

Abstract. Avaya Solution & Interoperability Test Lab

NetApp Storage System Plug-In for Oracle Enterprise Manager 12c Installation and Administration Guide

Mobile App User's Guide

MySQL Backups: From strategy to Implementation

Use QNAP NAS for Backup

VMTurbo Operations Manager 4.5 Installing and Updating Operations Manager

White Paper. Fabasoft on Linux Cluster Support. Fabasoft Folio 2015 Update Rollup 2

VirtualCenter Database Maintenance VirtualCenter 2.0.x and Microsoft SQL Server

Installing and Configuring Adobe LiveCycle 9.5 Connector for Microsoft SharePoint

CA arcserve Unified Data Protection Agent for Linux

IBM Pure Application Create Custom Virtual Image Guide - Part 1 Virtual Image by extending

White Paper. Alfresco Backup and Disaster Recovery

Disaster Recovery. Websense Web Security Web Security Gateway. v7.6

2.6.1 Creating an Acronis account Subscription to Acronis Cloud Creating bootable rescue media... 12

Content Management System

Parallels. for your Linux or Windows Server. Small Business Panel. Getting Started Guide. Parallels Small Business Panel // Linux & Windows Server

EMC DOCUMENTUM xplore 1.1 DISASTER RECOVERY USING EMC NETWORKER

Running VirtualCenter in a Virtual Machine

IBM Campaign Version-independent Integration with IBM Engage Version 1 Release 3 April 8, Integration Guide IBM

Best Practices. Using IBM InfoSphere Optim High Performance Unload as part of a Recovery Strategy. IBM Smart Analytics System

How To Use Networker With Orgsap With Orgos.Org Software On A Powerbook (Orchestra) On A Networkor (Orroboron) With An Ipa (Ororor) With A Networker

TIBCO Spotfire Server Migration. Migration Manual

DOCUMENTATION MICROSOFT WINDOWS SYSTEM BACKUP AND RESTORE OPERATIONS

Product Guide Revision A. McAfee Web Reporter 5.2.1

NetNumen U31 R06. Backup and Recovery Guide. Unified Element Management System. Version: V

Transferring AIS to a different computer

Moving to Plesk Automation 11.5

Cloud Storage Quick Start Guide

This is when a server versus a workstation is desirable because it has the capability to have:

Using the Adobe Access Server for Protected Streaming

Copyright by Parallels Holdings, Ltd. All rights reserved.

DOCUMENTATION FILE BACKUP

Transcription:

Backing up the Embedded Oracle database of a Red Hat Network Satellite By Melissa Goldin and Vladimir Zlatkin Abstract This document will help you create a backup of the Oracle database of a Red Hat Network (RHN) Satellite with Embedded Database. It also discusses the steps required to verify and restore the database. January 2006 Copyright 2006 Red Hat, Inc. Red Hat, Red Hat Linux, the Red Hat Shadowman logo, and the products listed are trademarks or registered trademarks of Red Hat, Inc. in the US and other countries. Linux is a registered trademark of Linus Torvalds. WHP149906US 11/05

Table of Contents Requirements...3 Red Hat Network...3 Hardware...3 Software...3 Backing up the Database...3 Preparation...3 Creating the backup with db control...3 Verifying the Backup...4 Automation...4 Restoring the Database...5 Conclusion...6 Appendix Useful documentation...6 Appendix db control options...6 Backing up the Embedded Oracle database of a Red Hat Network Satellite 2

Requirements Before beginning, review the necessary requirements listed below: Red Hat Network Your RHN Hosted account must have one Red Hat Enterprise Linux channel entitlement and one RHN Satellite entitlement. Hardware This configuration requires a RHN Satellite Server with embedded Oracle database and a storage solution with at least 12 GB of storage space. Actual space requirements depend on the size of your Satellite, including custom channels. This storage solution can be any partition or directory specifiable at backup time. Choosing a storage solution that is a separate set of disks off site may lead to increased reliability of backups. Hardware requirements for the Satellite can be found in the Satellite Installation Guide. Software As with hardware, software requirements for the RHN Satellite and the embedded Oracle database can be found in the Satellite Installation Guide. Backing up the Database Red Hat recommends performing nightly backups of the Embedded Database and moving the resulting directory to another system via NFS, SCP, FTP, rsync, or other secure file transfer utility. Preparation It is necessary to shut down the database and related services before attempting to back up the database, or the backup will fail. (It is also possible that attempting to write to the database while a backup is in process will corrupt the database.) To stop the database and all related services, issue the command: service rhn-satellite stop Creating the backup with db-control Switch to the Oracle user in preparation for using the db-control utility. The password of the Oracle user is set during the Satellite installation process. Refer to the Satellite Installation Guide for information on the initial database configuration. su - oracle Backing up the Embedded Oracle database of a Red Hat Network Satellite 3

To initiate the backup, issue the following command: db-control backup <directory> Here, replace <directory> with the absolute path to the location at which you intend to store the database's output. This process takes several minutes. Return to root user mode and restart the database and related services: su - service rhn-satellite start Verifying the Backup Red Hat recommends verifying the integrity of the resulting backup. There are two methods of doing so: examine and verify. The examine option of db-control, issued as the Oracle user, conducts a quick check of the backup's timestamp and determines any missing files: su - oracle db-control examine <directory> The verify option of db-control, also issued as the Oracle user, conducts a thorough review. This includes checking the md5sum of each of the files in the backup: db-control verify <directory> If the verification returns as successful, it is safe to rely on the contents of <directory> to restore the database. Automation Red Hat strongly recommends scheduling the backup process automatically using cron jobs. In the following example crontab excerpt and scripts, the database is backed up at 3 AM and the resulting files are moved to a separate repository at 6 AM. The following is an example excerpt from root's crontab: 0 3 * * * backup-db.sh 0 6 * * * move-files.sh This crontab excerpt mentions two scripts, backup-db.sh and movefiles.sh. A good location for these scripts would be /usr/bin, although they can be placed anywhere in root's path. The scripts must be executable, Backing up the Embedded Oracle database of a Red Hat Network Satellite 4

which can be achieved with a command such as: chmod 744 /usr/bin/backup-db.sh chmod 744 /usr/bin/move-files.sh In the above example, backup-db.sh could look something like: #!/bin/bash { /sbin/service rhn-satellite stop; su - oracle -c' d=db-backup-$(date "+%F"); mkdir -p /tmp/$d; db-control backup /tmp/$d '; /sbin/service rhn-satellite start; } &> /dev/null Similarly, move-files.sh could look something like the following: #!/bin/bash rsync -avz /tmp/db-backup-$(date "+%F") destination &> /dev/null or #!/bin/bash scp -r /tmp/db-backup-$(date "+%F") destination &> /dev/null In both of these examples, replace destination with the storage location of the backup. Restoring the Database RHN Database Control makes Embedded Database restoration a relatively simple process. First, stop the database and related services: service rhn-satellite stop Then switch to the Oracle user and user the following command, replacing <directory> with the directory that contains the backup: su - oracle db-control restore <directory> This not only restores the Embedded Database, but first verifies the contents of the backup directory using md5sums. Once the restoration is complete, return to root user mode and restart the database and related services in this order: Backing up the Embedded Oracle database of a Red Hat Network Satellite 5

su - service rhn-satellite start Conclusion Backing up, verifying, and restoring the Embedded Database is easily accomplished with the above commands. Red Hat advises backing up the database on a daily basis, preferably to an off site storage solution. Appendix Useful documentation RHN Satellite Server Installation Guide https://rhn.redhat.com/rhn/help/satellite/index.jsp Red Hat Network Reference Guide https://rhn.redhat.com/rhn/help/reference/index.jsp Red Hat Knowledgebase http://kbase.redhat.com Appendix db-control options RHN Database Control offers many command line options. To use them, insert the option and the appropriate value, if needed, after the db-control command. Remember that you must be the Oracle user to use db-control. Option --help backup <directory> examine <directory> extend report restore <directory> Description Lists these db-control options with additional details. Backs up the database to the specified directory. Examines the contents of a backup directory. Returns the timestamp of backup creation and reports on the backup's contents. Increase the RHN Oracle tablespace. Reports on the current usage of database space. Restores the database from the backup kept in <directory>. The database must be stopped for this command to run successfully. Backing up the Embedded Oracle database of a Red Hat Network Satellite 6

Option start status stop tablesizes verify <directory> Description Starts the database instance. This is the same as issuing the service rhn-database start command as the root user. Shows the current status of the database, either running or offline. Stops the database instance. This is the same as issuing the service rhn-database stop command as the root user. Shows a space report for each table in the database. Verifies the contents of the backup stored in <directory>. This command checks the md5sum of each of the files kept in the backup. Backing up the Embedded Oracle database of a Red Hat Network Satellite 7