当前位置:网站首页>[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 .
边栏推荐
- Using the ethtool command by example
- redis 无法远程连接问题。
- Notepad++ wrap by specified character
- 2022.DAY592
- Latest version of source insight
- [set theory] relational closure (relational closure related theorem)
- Final review (Day7)
- 2022.DAY592
- NG Textarea-auto-resize
- "C and pointer" - Chapter 13 function of function pointer 1 - callback function 1
猜你喜欢

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

Primary school campus IP network broadcasting - Design of primary school IP digital broadcasting system based on campus LAN

一起上水硕系列】Day 9

一起上水碩系列】Day 9

How to install and configure altaro VM backup for VMware vSphere

Today, many CTOs were killed because they didn't achieve business

求质数的方法

Final review (Day5)

为什么网站打开速度慢?

Kubernetes resource object introduction and common commands (V) - (configmap)
随机推荐
Altaro virtual machine replication failed: "unsupported file type vmgs"
Simpleitk learning notes
Today, many CTOs were killed because they didn't achieve business
Best practices for setting up altaro VM backups
The request database reported an error: "could not extract resultset; SQL [n/a]; needed exception is org.hibernate.exception.sqlgram"
Btrfs and ext4 - features, strengths and weaknesses
Notepad++ wrap by specified character
@Autowired 导致空指针报错 解决方式
Altaro set grandfather parent child (GFS) archiving
Complete set of C language file operation functions (super detailed)
MySQL 5.7.32-winx64 installation tutorial (support installing multiple MySQL services on one host)
Why should we rewrite hashcode when we rewrite the equals method?
Understand one-way hash function
@Import annotation: four ways to import configuration classes & source code analysis
Obtenir et surveiller les journaux du serveur distant
求质数的方法
Apache+PHP+MySQL环境搭建超详细!!!
期末复习(DAY6)
How does win7 solve the problem that telnet is not an internal or external command
Azure file synchronization of altaro: the end of traditional file servers?

