当前位置:网站首页>[teacher Zhao Yuqiang] use the catalog database of Oracle
[teacher Zhao Yuqiang] use the catalog database of Oracle
2022-07-03 05:46:00 【Teacher zhaoyuqiang】

One 、 What is a catalog database ?
You may have heard it from other people or books RMAN Restore directory ( It could be some other name ,RMAN Recovery Catalog The translation of English is more complicated , Hereinafter referred to as the recovery directory ), The expression of others or the vague description in the book , Many friends have been confused about its practical significance and function . in my opinion , Think of it as storage RMAN Backup and restore the database of relevant information ( In physical form, it can correspond to Oracle One of them SCHEMA).
When the directory is not recovered ,RMAN Related backup information , For example, the path to the archive 、 The backup set path is stored in the control file of the target database , However, considering that control files can't grow indefinitely , And the control file is not only used to store information related to backup , therefore RMAN There is also a dedicated backup information store , This is the recovery Directory , namely : Catalog database . When the database to be backed up is registered in the recovery Directory ,RMAN The relevant information is stored in the control file ( The control file is actually only part of it ), More detailed information is stored in the recovery Directory . As shown in the figure below :

Two 、 Create and use Oracle Directory database for
- First , Use DBCA establish rcat database . The database we created here is :rcat.example.com. As shown in the figure below .

- Create a new table space in the directory database . Here we set the table space size as 50M.
create tablespace rcat_tbs datafile '/home/oracle/rcat_tbs01.dbf' size 50M;
- Create user , Able to use rcat_tbs Table space , And authorized to use the above table space
create user rcat_owner identified by password;
alter user rcat_owner default tablespace rcat_tbs;
alter user rcat_owner quota unlimited on rcat_tbs
grant recovery_catalog_owner to rcat_owner;
- Use RMAN Log in to the directory database , Use the above to create users
rman catalog [email protected]
- establish catalog
create catalog;
- Add the target database ( That is, the database to be backed up ) Register in the directory database ; Register the target database into the catalog database , As shown in the figure below
rman target / catalog ract_owner/[email protected]

register database;

- Now let's do a simple backup , Here we backup it users Table space . Now RMAN The backup meta information will be written to the directory database , As shown in the figure below .
backup tablespace users;

- Check the information in the catalog database , As shown in the figure below .
边栏推荐
- [trivia of two-dimensional array application] | [simple version] [detailed steps + code]
- Complete set of C language file operation functions (super detailed)
- @Solutions to null pointer error caused by Autowired
- Can altaro back up Microsoft teams?
- "C and pointer" - Chapter 13 advanced pointer int * (* (* (*f) () [6]) ()
- 期末复习DAY8
- 大二困局(复盘)
- Apache+php+mysql environment construction is super detailed!!!
- Altaro VM backup getting started
- AtCoder Beginner Contest 258(A-D)
猜你喜欢

Introduction to redis using Lua script

redis 无法远程连接问题。

kubernetes资源对象介绍及常用命令(五)-(ConfigMap)

Map的扩容机制

Altaro o365 total backup subscription plan
![[explain in depth the creation and destruction of function stack frames] | detailed analysis + graphic analysis](/img/df/884313a69fb1e613aec3497800f7ba.jpg)
[explain in depth the creation and destruction of function stack frames] | detailed analysis + graphic analysis

3dslam with 16 line lidar and octomap

@Import annotation: four ways to import configuration classes & source code analysis

Sophomore dilemma (resumption)

"C and pointer" - Chapter 13 function pointer 1: callback function 2 (combined with template to simplify code)
随机推荐
Ensemble, série shuishu] jour 9
Btrfs and ext4 - features, strengths and weaknesses
Ext4 vs XFS -- which file system should you use
ROS Compilation Principle
期末复习(DAY7)
How to use source insight
Installation of CAD plug-ins and automatic loading of DLL and ARX
Deploy crawl detection network using tensorrt (I)
College campus IP network broadcasting - manufacturer's design guide for college campus IP broadcasting scheme based on campus LAN
6.23 warehouse operation on Thursday
Apache+PHP+MySQL环境搭建超详细!!!
获取并监控远程服务器日志
Final review (Day7)
期末复习DAY8
Export the altaro event log to a text file
2022.6.30DAY591
Exception when introducing redistemplate: noclassdeffounderror: com/fasterxml/jackson/core/jsonprocessingexception
Analysis of the example of network subnet division in secondary vocational school
Altaro requirements for starting from backup on Hyper-V
2022.7.2 simulation match

