Seminar Report
On
Bachelor of Technology
In
Computer Engineering
(Session 2018-2019)
Guided By Submitted By
Mr. Manish Sharma Akriti Singh
15EPECS015
1
DECLARATION
I hereby declare that the work which is being presented in the seminar report entitled “ Backup
Techniques in oracle Database“ in partial fulfillment for the award of the Degree of Bachelor
of Technology in Computer Engineering affiliated to Rajasthan Technical University, Kota
and submitted to the Department of Computer Engineering of Poornima College of
Engineering, Jaipur, is an authentic record of my own work carried out under the guidance of
Mr. Manish Sharma during the session 2018-2019.
I have not submitted the matter presented in this report anywhere for the award of any other
degree of this or any other institute / University.
2
CERTIFICATE
This is to certify that the seminar report entitled Backup Techniques in Oracle Databasehas
been submitted by Akriti Singh, RTU Roll No.15EPCCS015 student of B. Tech IV Year, VIII
Semester, Computer Engineering branch in the partial fulfillment of Degree of Bachelor of
Technology, Rajasthan Technical University, Kota during the session 2018-2019. The report
has been found satisfactory and approved for submission.
3
ACKNOWLEDGMENT
This reportwould not have been completed without the support from our Supervisor, friends and
our family. Thanks to those who devoted their time and shared information with us. Here is a
small tribute to those who were directly or indirectly associated with me and their good wishes
helped to complete this research workrespectfully.
At first, we would like to convey our sincere thanks to our guide, Dr. Mahesh Bundeleand my
Supervisor Mr. Manish Sharma. Their encouragement and support are very much appreciated.
Their guidance, advice, and continuous support have played an irreplaceable role throughout my
entire project.
I would also like to thank Dr.AjayKhuteta, HOD, Department Computer Engineering) and
other mentors from the Poornima College of Engineering for their valuable support & co-
operation during our work.
We are also pleased to thanks all our colleagues of work for sharing the important information
timely.
4
TABLE OF CONTENTS
5
LIST OF FIGURES
6
LIST OF ABBREVIATIONS
7
ABSTRACT
Backup and recovery of oracle database protect our database from getting lost. There can be
many events where loss of data can occur. There can be many such instance where your
critical data could be lost. Hence backing up your database becomes so important. Some of
the reasons for loss of data and files are:
One of the mandatory task of every Oracle database administrator is to make backup or
backup oracle database. Even with adequate precautions, important database can be still
destroyed by some user error, hardware or software failure. The only way to prevent this
situation is to perform regular backup operation.
8
CHAPTER 1
INTRODUCTION
As a backup administrator, your principal duty is to devise, implement, and manage a backup
and recovery strategy. In general, the purpose of a backup and recovery strategy is to protect
the database against data loss and reconstruct the database after data loss. Typically, backup
administration tasks include the following:
As a backup administrator, you may also be asked to perform other duties that are related to
backup and recovery:
Data preservation, which involves creating a database copy for long-term storage
Data transfer, which involves moving data from one database or one host to another
The purpose of this manual is to explain how to perform the preceding tasks.
9
physical backup. The focus in the backup and recovery documentation set is almost
exclusively on physical backups.
6 While several problems can halt the normal operation of an Oracle database or affect
database I/O operations, only the following typically require DBA intervention and data
recovery: media failure, user errors, and application errors. Other failures may require DBA
intervention without causing data loss or requiring recovery from backup. For example, you
may need to restart the database after an instance failure or allocate more disk space after
statement failure because of a full datafile.
Media Failures
A media failure is a physical problem with a disk that causes a failure of a read or write of a disk
file required to run the database. Any database file can be vulnerable to a media failure. The
appropriate recovery technique following a media failure depends on the files affected and the
types of backup available.
User Errors
User errors occur when, either due to an error in application logic or a manual mistake, data in a
database is changed or deleted incorrectly. User errors are estimated to be the greatest single
cause of database downtime.
Data loss due to user error can be either localized or widespread. An example of localized
damage is deleting the wrong SMITH from the employees table. This type of damage requires
surgical detection and repair. An example of widespread damage is a batch job that deletes the
company orders for the current month. In this case, drastic action is required to avoid a extensive
database downtime.
While user training and careful management of privileges can prevent most user errors, your
backup strategy determines how gracefully you recover the lost data when user error does cause
data loss.
Application Errors
Sometimes a software malfunction can corrupt data blocks. In a physical corruption, which is
also called a media corruption, the database does not recognize the block at all: the checksum is
invalid, the block contains all zeros, or the header and footer of the block do not match. If the
corruption is not extensive, then you can often repair it easily with block media recovery.
Data Preservation
Data preservation is related to data protection, but serves a different purpose. For example, you
may need to preserve a copy of a database as it existed at the end of a business quarter. This
backup is not part of the disaster recovery strategy. The media to which these backups are
10
written are often unavailable after the backup is complete. You may send the tape into fire
storage or ship a portable hard drive to a testing facility. RMAN provides a convenient way to
create a backup and exempt it from your backup retention policy. This type of backup is known
as an archival backup.
Data Transfer
In some situations you may need to take a backup of a database or database component and
move it to another location. For example, you can use Recovery Manager (RMAN) to create a
database copy, create a tablespace copy that can be imported into another database, or move an
entire database from one platform to another. These tasks are not strictly speaking part of a
backup and recovery strategy, but they do require the use of database backups, and so may be
included in the duties of a backup administrator .
11
12
CHAPTER 2
ORACLE BACKUP SOLUTIONS
2.1 Solution
When implementing a backup and recovery strategy, you have the following solutions available:
This tool integrates with sessions running on an Oracle database to perform a range of
backup and recovery activities, including maintaining an RMAN repository of historical
data about backups. You can access RMAN through the command line or through Oracle
Enterprise Manager.
In this solution, you perform backup and recovery with a mixture of host operating
system commands and SQL*Plus recovery commands.
Both of the preceding solutions are supported by Oracle and are fully documented, but RMAN is
the preferred solution for database backup and recovery. RMAN performs the same types of
backup and recovery available through user-managed techniques more easily, provides a
common interface for backup tasks across different host operating systems, and offers a number
of backup techniques not available through user-managed methods.
Most of this manual focuses on RMAN-based backup and recovery. User-managed backup and
recovery techniques are covered in Performing User-Managed Backup and Recovery. RMAN
gives you access to several backup and recovery techniques and features not available with user-
managed backup and recovery. The most noteworthy are the following:
Incremental backups
An incremental backup stores only blocks changed since a previous backup. Thus, they
provide more compact backups and faster recovery, thereby reducing the need to apply
redo during datafile media recovery. If you enable block change tracking, then you
can improve performance by avoiding full scans of every input datafile. You use
the BACKUP INCREMENTAL command to perform incremental backups.
You an repair a datafile with only a small number of corrupt data blocks without taking it
offline or restoring it from backup. You use the RECOVERcommand to perform block
media recovery.
13
Unused block compression
In unused block compression, RMAN can skip data blocks that have never been used
and, in some cases, used blocks that are currently unused.
Binary compression
A binary compression mechanism integrated into Oracle Database reduces the size of
backups.
Encrypted backups
RMAN uses backup encryption capabilities integrated into Oracle Database to store
backup sets in an encrypted format. To create encrypted backups on disk, the database
must use the Advanced Security Option. To create encrypted backups directly on tape,
RMAN must use the Oracle Secure Backup SBT interface, but does not require the
Advanced Security Option.
2.3 Conclusion
Whether you use RMAN or user-managed methods, you can supplement physical backups
with logical backups of schema objects made with Data Pump Export utility. You can later
use Data Pump Import to re-create data after restore and recovery. Logical backups are for
the most part beyond the scope of the backup and recovery documentation.
14
CHAPTER 3
PREREQUISTES STEPS OF BACKUP
An SLA defines the level of service that is expected and addresses many service-related issues,
including the availability and performance of the service. RTO is the time by which a business
process must be restored after a disruption in service. RPO defines the strategy for the age of the
files that must be recovered from backup storage for regular operations to resume after a failure.
SLA, RTO, and RPO contribute to the data protection strategy.
Steps
3. Decide on which node in a RAC environment you want to create your backup.
7. Determine the retention period for the Snapshot copies on the source storage system and
the SnapMirror destination.
SnapMirror retention is implicitly defined based on the Snapshot copy retention of the
primary storage. SnapVault retention has to be defined explicitly on the ONTAP storage
system.
8. Decide whether you want to verify the backup copies using the primary or secondary
storage volume.
10. Decide whether you want to use NetApp SnapMirror technology for replication
or NetApp SnapVault technology for long term retention.
15
3.2 Types of Backup
Backup type specifies the type of backup that you want to create. SnapCenter supports online
Online backup
A backup that is created when the database is in the online state is called an online backup. Also
called a hot backup, an online backup enables you to create a backup of the database without
shutting it down.
As part of online backup, you can create a backup of the following files:
Datafiles and control files only
Archive log files only (the database is not brought to backup mode in this scenario)
Full database that includes datafiles, control files, and archive log files
Offline backup
A backup created when the database is either in a mounted or shutdown state is called an offline
backup. An offline backup is also called a cold backup. You can include only datafiles and
control files in offline backups. You can create either an offline mount or offline shutdown
backup.
When creating an offline mount backup, you must ensure that the database is in a
mounted state.
The database state is changed to the required state to create a backup. After creating the
backup, the database state is reverted to the original state.
16
CHAPTER 4
FUNCCTIONAL AND NON-FUNCTIONAL REQUIREMENTS
The project is made on Oracle Database 11g which is setup on Linux Redhat. There
will be two machines. One machine will be treated as a client and another machine
will be treated as a server. The client and server will be made by NETCA software
where listener.ora file will be made on server side and tnsname.ora will be made on
client side.
9. Be sure the load does not adversely affect your primary system
Performance Requirements
For the machine to be worked upon the server side machine should be opened by STARTUP
command. In the real time scenario if a client wants to use a server side database, then the
server side database should be already opened. Populating a materialized view adds
load to both servers involved. The source server is queried to capture the data,
17
which is inserted into the destination server. Be sure the additional load does not
adversely affect your primary system.Although materialized view logs improve the
perform DML on the base table. Check the additional work does not adversely
Safety Requirements
The control file, Redo log file and Datafile of the database should not be lost. If lost the
connectivity of database cannot be established and hence the client cannot use the server.
For this matter, we will enable archiving in our database so that archive files will be
generated. Even when this is failed we can bring back the CRD files by cold or hot backup.In
a disaster situation where all files are lost you can only recover to the last SCN in the
archived redo logs. Beyond this point the recovery would have to make reference to the
online redo logs which are not present. Disaster recovery is therefore a type of incomplete
Security Requirements
The client should know the password of the server side database for the connectivity. If
password of that particular database is not know, the client cannot use the server side
database.
When we enable archiving in the database the data is backup in the system in the following
conditions:
3. In Every 3 secs
18
5. Whenever one-third of redo log file is filled
Operating Environment
The project is implemented on the Linux Operating System. The version of the
Hardware Interfaces
The project needs at least 1GB RAM for the installation of database and approximately
Software Interfaces
The ORACLE DATABASE 11g is setup on Linux Operating System Redhat 7. The tool used to
server we need to do the configuration of specific files in both the system. For server side
the file to be configured is listener.ora and for client side the file is tnsname.ora. This is
two machines we use NEAT. NEAT specified hostname for both the machines.Recovery
Manager (RMAN) is an Oracle Database client that performs backup and recovery tasks on
simplifies backing up, restoring, and recovering database files.The RMAN environment
consists of the utilities and databases that play a role in backing up your data.
Communications Interfaces
The communication between two machines is done by the IP address ,hostname and
machine name of both the systems. NEAT tool is used to specify the hostname of both the
systems.
19
CHAPTER 5
SYSTEM ARCHITECTURE
20
REFRENCES
Qun Li School of computer science & technology Nanjing University of Science and
Technology Nanjing, China
Honglin Xu School of Information Jiangnan University Wuxi, China
There are some references from we can get information about oracle and it’s product.
These are as follows:-
www.oracle.com
www.tutorialspoint.com
www.stackoverflow.com
www.javatpoint.com
21
PUBLISEHED RESEARCH PAPER
Conclusion
Oracle provides backup utilities and different
models to execute it for different situations each
with its own speciality and features. The DBA
should be aware of all the backup strategies used
in the database and should track all the activities
done. Backup techniques are used to strengthen
the quality and security of the database. It is one
of the major aspect of the database used in
organizations and companies.
REFERENCES
Database Hot Backup
Qun Li School of computer science
Hot backup or dynamic backup or online backup & technology Nanjing University of
is performed when the database is active and Science and Technology Nanjing,
some updation is going on in it. In online China
backup, the database is still accessible to the Honglin Xu School of Information
user. Recovery Manager(RMAN) is an example Jiangnan University Wuxi, China
of hot backup in Oracle database. Hot backup is
done without interrupting the implementation of
database operations. Hot backup is classified
into logical backup and physical backup.
24
CERTIFICATE
25
PLAGIARISM REPORT (MUST <40%)
seminar
ORIGINALITY REPORT
PRIMARY SOURCES
www.ijcaonline.org
1 Internet Source 5%
www.slideshare.net
2 Internet Source 4%
Submitted to Qun Li School of computer science &
technology Nanjing University of Science and
Technology Nanjing, China
3 Student Paper
4%
26
Submitted to Singapore of Technology
4 Student Paper
3%
www.oracle.com
6 Internet Source
2%
Intellipaat.com
7
2%
27
Stackoverflow.com
8 Internet source 2%
Submitted to Honglin Xu School of Information
Jiangnan University Wuxi, China
9
2%
Student Paper
Tutorialspoint.com
10 Internet Source 2%
www.oracle-dba-online.com
11 Internet Source 1%
www.searchdatabackup.techtarget.com
13 Internet Source 1%
www.orafaq.com
16
Internet Source
1%
29
30
31