当前位置:网站首页>[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 .
边栏推荐
- 【一起上水硕系列】Day 7 内容+Day8
- redis 遇到 NOAUTH Authentication required
- Basic introduction of redis and explanation of eight types and transactions
- Gan network thought
- Es 2022 officially released! What are the new features?
- Analysis of the example of network subnet division in secondary vocational school
- Calculation method of AUC
- 期末复习(DAY6)
- Installing altaro VM backup
- Source insight operation manual installation trial
猜你喜欢

About debugging the assignment of pagenum and PageSize of the formal parameter pageweb < T > (i.e. page encapsulation generic) in the controller

Understand one-way hash function

【一起上水硕系列】Day 10

Latest version of source insight

Simpleitk learning notes

大二困局(复盘)

MySQL 5.7.32-winx64 installation tutorial (support installing multiple MySQL services on one host)

Win10 install pytullet and test
![[together Shangshui Shuo series] day 7 content +day8](/img/fc/74b12addde3a4d3480e98f8578a969.png)
[together Shangshui Shuo series] day 7 content +day8

Altaro o365 total backup subscription plan
随机推荐
redis 无法远程连接问题。
College campus IP network broadcasting - manufacturer's design guide for college campus IP broadcasting scheme based on campus LAN
@Autowired 导致空指针报错 解决方式
Talk about how to use p6spy for SQL monitoring
求质数的方法
Method of finding prime number
@Import annotation: four ways to import configuration classes & source code analysis
Analysis of the example of network subnet division in secondary vocational school
2022.6.30DAY591
[together Shangshui Shuo series] day 7 content +day8
为什么网站打开速度慢?
Source insight License Activation
今天很多 CTO 都是被幹掉的,因為他沒有成就業務
Why is the website slow to open?
Linux登录MySQL出现ERROR 1045 (28000): Access denied for user ‘root‘@‘localhost‘ (using password: YES)
"C and pointer" - Chapter 13 advanced pointer int * (* (* (*f) () [6]) ()
Installing altaro VM backup
MySQL 5.7.32-winx64 installation tutorial (support installing multiple MySQL services on one host)
Explanation of several points needing attention in final (tested by the author)
Crontab command usage

