In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
This article will explain in detail how to use nub to restore the database. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.
1.NBU database recovery script
Run {
Allocate channel T1 type 'sbt_tape'
Allocate channel T2 type 'sbt_tape'
Allocate channel T3 type 'sbt_tape'
Send 'NB_ORA_CLIENT=192.168.x.x'
Send 'NB_ORA_SERV=nbu5230'
Set until sequence 12 thread 1
Restore database
# switch datafile all
Recover database
Release channel t1
Release channel t2
Release channel t3
}
two。 Archive log recovery
Run {
Allocate channel T1 type 'sbt_tape'
Allocate channel T2 type 'sbt_tape'
Send 'NB_ORA_CLIENT=192.168.x.x'
Send 'NB_ORA_SERV=nbu5230'
Restore archivelog from sequence 8 until sequence 12 INCARNATION ALL
Release channel t1
Release channel t2
}
3. Other recoveries
Change the restore path:
RMAN > set archivelog destination to'/ u01Compact backup'
Restore all backup archives:
RMAN > restore archivelog all
Archive log scope recovery:
RMAN > restore archivelog from sequence 8 until sequence 12
RMAN > restore archivelog sequence between 8 and 12
Restore from low sequence:
RMAN > restore archivelog from sequence 5
RMAN > restore archivelog low sequence 5
Restore from high sequnece cutoff:
RMAN > restore archivelog until sequence 110
RMAN > restore archivelog high sequence 108
Restore by time:
RMAN > restore archivelog from time 'sysdate-7'
This is the end of the article on "how to use nub to recover the database". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.