Restore db usering NBU7.5
hrmsdb
set environment variables for restore
export NLS_LANG=American_America.UTF8
export NLS_DATE_FORMAT="mm-dd-yyyy:hh24:mi:ss"
rman target /
startup nomount;
set dbid 2948431088;
1. restore controlfile
run {
allocate channel t1 type 'sbt_tape';
send 'NB_ORA_CLIENT=hrmsdb,NB_ORA_SERV=sznbm01.szoffice.mtrsz.local';
restore controlfile from 'c-2948431088-20130406-01';
release channel t1;
}
alter database mount;
2.restore DB
run{
allocate channel t1 type 'sbt_tape';
send 'NB_ORA_CLIENT=hrmsdb,NB_ORA_SERV=sznbm01.szoffice.mtrsz.local';
allocate channel t2 type 'sbt_tape';
send 'NB_ORA_CLIENT=hrmsdb,NB_ORA_SERV=sznbm01.szoffice.mtrsz.local';
set until sequence 1724 thread 1;
restore database;
recover database;
}
3. reset log
alter database open resetlogs;
shutdown immediate;
startup
Raname Database name from HRMSPRD to HRMCLONE
alter database backup controlfile to trace as '/home/hrmsoraprd/controlfile/controlfile_20130410.ctl' resetlogs;
-- Database can now be opened zeroing the online logs.
ALTER DATABASE OPEN RESETLOGS;
-- Commands to add tempfiles to temporary tablespaces.
-- Online tempfiles have complete space information.
-- Other tempfiles may require adjustment.
ALTER TABLESPACE TEMP ADD TEMPFILE '/uhrms/hrmsclone/hrmsclonedata/HRMSCLONE/temp01.dbf'
SIZE 28311552 REUSE AUTOEXTEND OFF;
ALTER TABLESPACE PSTEMP ADD TEMPFILE '/uhrms/hrmsclone/hrmsclonearch/HRMSCLONE/pstemp06.dbf'
SIZE 8192M REUSE AUTOEXTEND OFF;
ALTER TABLESPACE PSTEMP ADD TEMPFILE '/uhrms/hrmsclone/hrmsclonearch/HRMSCLONE/pstemp05.dbf'
SIZE 8192M REUSE AUTOEXTEND OFF;
ALTER TABLESPACE PSTEMP ADD TEMPFILE '/uhrms/hrmsclone/hrmsclonedata/HRMSCLONE/pstemp04.dbf'
SIZE 4096M REUSE AUTOEXTEND OFF;
ALTER TABLESPACE PSTEMP ADD TEMPFILE '/uhrms/hrmsclone/hrmsclonedata/HRMSCLONE/pstemp03.dbf'
SIZE 4096M REUSE AUTOEXTEND OFF;
ALTER TABLESPACE PSTEMP ADD TEMPFILE '/uhrms/hrmsclone/hrmsclonedata/HRMSCLONE/pstemp02.dbf'
SIZE 4096M REUSE AUTOEXTEND OFF;
ALTER TABLESPACE PSTEMP ADD TEMPFILE '/uhrms/hrmsclone/hrmsclonedata/HRMSCLONE/pstemp01.dbf'
SIZE 314572800 REUSE AUTOEXTEND OFF;
-- End of tempfile additions.
註冊監聽器:
alter system set local_listener='HRMCLONE' sid='HRMSCLONE';
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/23757700/viewspace-758416/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- db2備份恢復(backup restore)DB2REST
- usering mongotemplate bases on spring-Data-mongoGoSpring
- guarantee restore points-Flashback after RMAN restoreREST
- canvas restore()CanvasREST
- canvas save()和restore()CanvasREST
- DOCKER特性 - LIVE RESTOREDockerREST
- DBMS_BACKUP_RESTORE.DBMS_BACKUP_RESTORE用於特殊情況下的恢復REST
- [LeetCode] 93. Restore IP AddressesLeetCodeREST
- git操作之二:git restoreGitREST
- provider for back&restore app datyaIDERESTAPP
- python leetcode 93. Restore IP AddressesPythonLeetCodeREST
- [20190228]Backup Restore Throttle sleep.txtREST
- git restore極簡使用記錄GitREST
- Crunchy PostgreSQL database restore via pgo commandSQLDatabaseRESTGo
- Reboot Restore Rx Pro中文版bootREST
- RMAN restore validate database報ORA-19693RESTDatabase
- 【Mongodb】db.stats() 與 db.serverStats() 與 db.collection.stats()MongoDBServer
- rman 還原歸檔日誌(restore archivelogRESTHive
- Python Uses ibm_db connect to DB2PythonIBMDB2
- iptables報錯!iptables-restore unable to initialize table 'filterRESTFilter
- HowTo Restore RMAN Disk backups of RAC Database to Single Instance On Another NoRESTDatabase
- Laravel db:seedderLaravel
- SQLSERVER 2012從2000還原失敗:Restore of database failedSQLServerRESTDatabaseAI
- db2 鎖分析 DB2_CAPTURE_LOCKTIMEOUT使用DB2APT
- SQL Anywhere db檔案損壞修復 DB檔案修復 DB資料庫修復SQL資料庫
- cdc目標端資料庫初始化(backup restore)資料庫REST
- PL/SQL package SYS.DBMS_BACKUP_RESTORE version 19.16.00.00 in TARGET database isSQLPackageRESTDatabase
- db2exfmtDB2
- DB2 WLMDB2
- opera db選單
- db2 -attribute of key are miss in result set . db2 錯誤DB2
- You may fail to backup log or restore log after TDE certification/key rotation.AIREST
- RMAN restore fails with ORA-01180: can not create datafile 1 (文件 ID 1265151.1)RESTAI
- Android 高階UI9 Canvas save和restore例項解析AndroidUICanvasREST
- python中的一個現象,db.commit和db.commit()PythonMIT
- db2 reorg,runstatsDB2
- DB_FILES引數
- DB2的STMTIDDB2
- Oracle:db file scattered readOracle