RMAN -- Frequently Asked Question (FAQ) (Doc ID 469777.1)
RMAN -- Frequently Asked Question (FAQ) (Doc ID 469777.1) | To Bottom |
In this Document
Applies to:Enterprise Manager for Oracle Database - Version 10.1.0.2 to 11.1 [Release 10.1 to 10.2]Oracle Database - Enterprise Edition - Version 10.1.0.2 to 11.1.0.6 [Release 10.1 to 11.1] Information in this document applies to any platform. PurposeThis Article will act as quick reference guide for RMAN tool. Its use full to all DBAs. Questions and Answers
In case you may want or need more about your current topic - please also access the
Backup & Recover Community
of Customers and Oracle Specialists directly via:
General RMAN Information :
What is RMAN and How to configure it ?
Q.What is RMAN and How to configure it ?
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. There is no additional installation required for this tool. Its by default get installed with the oracle database installation. The RMAN environment consists of the utilities and databases that play a role in backing up your data.You can access RMAN through the command line or through Oracle Enterprise Manager.
Q.Why to use RMAN ?
-- Automatic specification of files to include in a backup : Establishes the name and locations of all files to be backed up. -- Maintain backup repository : Backups are recorded in the control file, which is the main repository of RMAN metadata. Additionally, you can store this metadata in a recovery catalog, -- 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. -- Unused block compression : In unused block compression, RMAN can skip data blocks that have never been used -- Block media recovery : You an repair a datafile with only a small number of corrupt data blocks without taking it offline or restoring it from backup. -- 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. -- Corrupt block detection : RMAN checks for the block corruption before taking its backup.
Q.How RMAN works ?
When you take a database backup using RMAN, you need to connect to the target database using RMAN Client.The RMAN client can use Oracle Net to connect to a target database, so it can be located on any host that is connected to the target host through Oracle Net. For backup you need to allocate explicit or implicit channel to the target database. An RMAN channel represents one stream of data to a device, and corresponds to one database server session. This session dynamically collect information of the files from the target database control file before taking the backup or while restoring. For example If you give ' Backup database ' from RMAN, it will first get all the datafiles information from the controlfile. Then it will divide all the datafiles among the allocated channels. ( roughly equal size of work as per the datafile size ). Then it takes the backup in 2 steps. In the first step the channel will read all the Blocks of the entire datafile to find out all the formatted blocks to backup. Note : RMAN do not take backup of the un formatted blocks. In the second step it take backup of the formatted blocks. This is the best advantage of using RMAN as it only take backup of the required blocks. Lets say in a datafile of 100 MB size, there may be only 10 MB of use full data and rest 90 MB is free then RMAN will only take backup of those 10 MB.
Q.What O/S and oracle user privilege required to use RMAN ?
The O/S user should be part of the DBA group . For remote connection it needs the password file Authentication.Target database should have the initialization parameter REMOTE_LOGIN_PASSWORDFILE set to EXCLUSIVE or SHARED. Q.RMAN terminology :
A target database :
An Oracle database to which RMAN is connected with the TARGET keyword. A target database is a database on which RMAN is performing backup and recovery operations. RMAN always maintains metadata about its operations on a database in the control file of the database.
RMAN Configuration :
What is RMAN Configuration and how to Configure it ?
By default there are few default configuration are set when you login to RMAN. You can customize them as per your requirement. Any time you can check the current setting by using the "Show all " command. CONFIGURE command is used to create persistent settings in the RMAN environment, which apply to all subsequent operations, even if you exit and restart RMAN.For details of the Configuration kindly refer Note <>
Q.How to check RMAN Configuration ?
RMAN>Show all;
Q.How to Reset to default Configuration ? A.To reset the default configuration setting use
Connect to the target database from sqlplus and run
SQL> connect <sys/passwd as sysdba>@target_database; SQL> execute dbms_backup_restore.resetConfig; RMAN Catalog Database
What is Catalog database and How to Configure it ?
Q. What is Catalog database and How to Configure it ?
Q. How Many catalog database I can have ?
Q. Is this mandatory to use catalog database ?
Q. What is the advantage of catalog database ?
Q. What is the difference between catalog database & catalog schema ?
Q. Catalog database compatibility matrix with the target database ?
Q. What happen if catalog database lost ?
RMAN backup :
What are the database files that RMAN can backup ?
Q. What are the database file's that RMAN can backup ?
Q. What are the database file's that RMAN can not backup ?
Q. Can I have archivelogs and datafile backup in a single backupset ?
Q. Can I have datafiles and contolfile backup in a single backup set ?
Q. What is RMAN consistent backup and inconsistent backup ?
Q. Can I take RMAN backup when the database is Down ?
Q. Do I need to place the database in begin backup mode while taking RMAN inconsistent backup ?
Q. Can I compress RMAN backups ?
Note : RMAN compressed backup with BZIP2 provides great compression but is CPU intensive. Using ZLIB compression requires the Oracle Database 11g Advanced Compression Option and is only supported with an 11g database. The feature is not backward compatible with 10g databases.
Q. Can I encrypt RMAN backup ?
8.13 How to specify backup destination ?
Can RMAN take backup to Tape ?
Yes ! you can use RMAN for the tape backup. But RMAN can not able to write directly to tape. You need to have third party Media Management Software installed. Oracle has published an API specification which Media Management Vendor's who are members of Oracle's Backup Solutions Partner program have access to. Media Management Vendors (MMVs) then write an interface library which the Oracle server uses to write and read to
Before performing backup or restore to a media manager, you must allocate one or more channels or configure default channels for use with the media manager to handle the communication with the media manager. RMAN does not issue specific commands to load, label, or unload tapes. When backing up, RMAN gives the media manager a stream of bytes and associates a unique name with this stream. When RMAN needs to restore the backup, it asks the media manager to retrieve the byte stream. All details of how and where that stream is stored are handled entirely by the media manager. 9.3 What is Proxy copy backup to tape ? Proxy copy is functionality, supported by few media manager in which they handle the entire data movement between datafiles and the backup devices. Such products may use technologies such as high-speed connections between storage and media subsystems to reduce load on the primary database server. RMAN provides a list of files requiring backup or restore to the media manager, which in turn makes all decisions regarding how and when to move the data. 9.4 What is Oracle Secure backup ? Oracle Secure Backup is a media manager provided by oracle that provides reliable and secure data protection through file system backup to tape. All major tape drives and tape libraries in SAN, Gigabit Ethernet, and SCSI environments are supported. |
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/14377/viewspace-2564516/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle 最新PSU (Doc ID 2118136.2)2022-08-23Oracle
- expdp/impdp變慢 (Doc ID 2469587.1)2022-12-07
- Reading and Understanding Systemstate Dumps (Doc ID 423153.1)2022-05-08
- Oracle 下載最新psu (Doc ID 2118136.2)2022-08-23Oracle
- PRCT-1011 : Failed to run "oifcfg" (Doc ID 1380183.1)2020-05-07AI
- How to Collect Diagnostics for Database Hanging Issues (Doc ID 452358.1)2021-10-09Database
- [轉帖]Release Schedule of Current Database Releases (Doc ID 742060.1)2024-05-06Database
- 【CURSOR】How to Monitor and tune Open and Cached Cursors (Doc ID 1430255.1)2022-06-09
- Physical Standby Switchover_status Showing Not Allowed. (Doc ID 1392763.1)2018-09-17
- oracle11g: Scheduler Maintenance Tasks or Autotasks (Doc ID 756734.1)2022-05-08OracleAINaN
- 【DBA】Relinking Oracle Home 常見問題 (Doc ID 2048232.1)2022-04-25Oracle
- How To Replicate Data from Oracle to Postgres Using GoldenGate (Doc ID 1544137.12021-05-14OracleGo
- 11g-Reduce Transportable Tablespace Downtime using XTTS (Doc ID 1389592.1)2021-04-10TTS
- Can GoldenGate Replicate An Oracle Table That Contains Only CLOB Column(s)? (Doc ID 971833.1)2020-10-24GoOracleAI
- 12c DG新特性 - Active Data Guard Far Sync (Doc ID 2179719.1)2020-03-19
- 【GRID】Grid Infrastructure 啟動的五大問題 (Doc ID 1526147.1)2021-10-27ASTStruct
- 【DATAGUARD】Data Guard 12C 新特性:Far Sync Standby (Doc ID 2179719.1)2021-09-19
- RMAN restore fails with ORA-01180: can not create datafile 1 (文件 ID 1265151.1)2018-03-22RESTAI
- ORA-04063: package body SYS.DBMS_REGISTRY_SYS has errors (Doc ID 2165402.1)2021-04-16PackageError
- 【ASM】ORA-27504 ORA-27300 ORA-27303 while starting ASM (Doc ID 2281441.1)2022-01-19ASMWhile
- 【RAC】Oracle 12c以及以上版本的diagsnap是什麼? (Doc ID 2469643.1)2022-04-15Oracle
- [Javascript] Promise question with async await2024-10-06JavaScriptPromiseAI
- sqlserver doc2019-01-08SQLServer
- Docker FAQ2019-02-23Docker
- Volatility FAQ2020-08-19
- Seneca FAQ2021-04-11
- A Survey of Natural Language Question Answering System2018-08-04
- ENGL642 Research Skills Question2024-07-01
- 【RMAN】RMAN備份至ASM2020-06-10ASM
- Daily-Interview-Question[Title-Cover]2019-02-18AIView
- MaxCompute studio FAQ2018-05-31
- 【譯】ConfigureAwait FAQ2023-04-18AI
- Oracle 11G RAC複製備庫RMAN-03002 RMAN-05501 RMAN-03015 RMAN-03009 RMAN-100382022-09-26Oracle
- 【RMAN】RMAN的備份保留策略2020-12-17
- This is a good question,初學者都犯暈!2022-03-21Go
- 部署Onlyoffice Doc Server2024-05-30Server
- ORACLE rman與RMAN-00054&ORA-099452021-01-30Oracle
- CSDN學院FAQ2018-11-15