当前位置:网站首页>[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 .
边栏推荐
- 獲取並監控遠程服務器日志
- [untitled]
- PHP笔记超详细!!!
- 2022.6.30DAY591
- PHP notes are super detailed!!!
- Win10 install pytullet and test
- Progressive multi grasp detection using grasp path for rgbd images
- Beaucoup de CTO ont été tués aujourd'hui parce qu'il n'a pas fait d'affaires
- [minesweeping of two-dimensional array application] | [simple version] [detailed steps + code]
- Installation of CAD plug-ins and automatic loading of DLL and ARX
猜你喜欢
Qt读写Excel--QXlsx插入图表5
Apache+PHP+MySQL环境搭建超详细!!!
Classification and discussion of plane grab detection methods based on learning
About debugging the assignment of pagenum and PageSize of the formal parameter pageweb < T > (i.e. page encapsulation generic) in the controller
kubernetes资源对象介绍及常用命令(五)-(ConfigMap)
[set theory] relational closure (reflexive closure | symmetric closure | transitive closure)
Simpleitk learning notes
Exception when introducing redistemplate: noclassdeffounderror: com/fasterxml/jackson/core/jsonprocessingexception
Why is the website slow to open?
Capacity expansion mechanism of map
随机推荐
JS implements the problem of closing the current child window and refreshing the parent window
ninja: build stopped: subcommand failed.
Apache+php+mysql environment construction is super detailed!!!
"C and pointer" - Chapter 13 function of function pointer 1 - callback function 1
[escape character] [full of dry goods] super detailed explanation + code illustration!
[untitled]
[function explanation (Part 2)] | [function declaration and definition + function recursion] key analysis + code diagram
CAD插件的安裝和自動加載dll、arx
How to install and configure altaro VM backup for VMware vSphere
Primary school campus IP network broadcasting - Design of primary school IP digital broadcasting system based on campus LAN
Introduction to redis using Lua script
ansible防火墙firewalld设置
2022.7.2 simulation match
[set theory] relational closure (reflexive closure | symmetric closure | transitive closure)
Communication - how to be a good listener?
[untitled]
Redis encountered noauth authentication required
Installing altaro VM backup
Jetson AgX Orin platform porting ar0233 gw5200 max9295 camera driver
期末复习(DAY7)