当前位置:网站首页>[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 .
边栏推荐
- Redis使用Lua脚本简介
- Jetson AgX Orin platform porting ar0233 gw5200 max9295 camera driver
- ES 2022 正式发布!有哪些新特性?
- 2022.7.2day594
- Understand one-way hash function
- Altaro virtual machine replication failed: "unsupported file type vmgs"
- [Shangshui Shuo series together] day 10
- [explain in depth the creation and destruction of function stack frames] | detailed analysis + graphic analysis
- 2022.7.2 simulation match
- Today, many CTOs were killed because they didn't achieve business
猜你喜欢

今天很多 CTO 都是被干掉的,因为他没有成就业务

Strategy pattern: encapsulate changes and respond flexibly to changes in requirements

Error 1045 (28000) occurs when Linux logs in MySQL: access denied for user 'root' @ 'localhost' (using password: yes)

Gan network thought

一起上水硕系列】Day 9

今天很多 CTO 都是被幹掉的,因為他沒有成就業務
![[function explanation (Part 2)] | [function declaration and definition + function recursion] key analysis + code diagram](/img/29/1644588927226a49d4b8815d8bc196.jpg)
[function explanation (Part 2)] | [function declaration and definition + function recursion] key analysis + code diagram

Introduction to redis using Lua script

中职网络子网划分例题解析

@Autowired 导致空指针报错 解决方式
随机推荐
Xaml gradient issue in uwp for some devices
How to create your own repository for software packages on Debian
mysql启动报错:The server quit without updating PID file几种解决办法
Obtenir et surveiller les journaux du serveur distant
获取并监控远程服务器日志
Export the altaro event log to a text file
[minesweeping of two-dimensional array application] | [simple version] [detailed steps + code]
Talk about how to use p6spy for SQL monitoring
PHP notes are super detailed!!!
Final review (Day5)
Using the ethtool command by example
"C and pointer" - Chapter 13 advanced pointer int * (* (* (*f) () [6]) ()
Final review Day8
Strategy pattern: encapsulate changes and respond flexibly to changes in requirements
2022.7.2 simulation match
[function explanation (Part 2)] | [function declaration and definition + function recursion] key analysis + code diagram
Skip table: principle introduction, advantages and disadvantages of skiplist
Deploy crawl detection network using tensorrt (I)
大二困局(复盘)
[advanced pointer (1)] | detailed explanation of character pointer, pointer array, array pointer

