Oracle physical standby中的邏輯備份(exp命令)
為了將匯出的邏輯備份燒錄到光碟,因一個DVD普通光碟最多能燒錄8.5G,因此需要分段匯出並壓縮後進行燒錄,今天在物理災備庫上執行邏輯備份,OS環境為Solaris 10 具體步驟如下:
[@more@]1、將physical standby庫的改為只讀模式開啟:
-bash-3.00$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.5.0 - Production on Wed Jun 8 11:32:01 2011
Copyright (c) 1982, 2010, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> alter database recover managed standby database cancel;
Database altered.
SQL> alter database open read only;
Database altered.
SQL> exit
2、執行預先寫好的匯出指令碼expdb_monthly.sh
:
bash-3.00$ ./expdb_monthly.sh
Export: Release 10.2.0.5.0 - Production on Wed Jun 8 11:34:40 2011
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Export done in ZHS16GBK character set and AL16UTF16 NCHAR character set
About to export specified users ...
. exporting pre-schema procedural objects and actions
. exporting foreign function library names for user REP
. exporting foreign function library names for user WF
…..
expdb_monthly.sh指令碼內容如下:
-bash-3.00$ more expdb_monthly.sh
. /export/home/oracle/.bash_profile
exp system/onewave owner=REP,WF file=/backup20110210_1.dmp,/backup20110210_2.dmp,/ba
ckup20110210_3.dmp log=/backup/monthlybak.log direct=y filesize=33000M statistics=none
cd /backup
compress -f backup20110210_1.dmp
compress -f backup20110210_2.dmp
compress -f backup20110210_3.dmp
將資料庫恢復為mount模式:
-bash-3.00$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.5.0 - Production on Wed Jun 8 13:42:25 2011
Copyright (c) 1982, 2010, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> alter database recover managed standby database disconnect from session;
Database altered.
SQL> exit
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/18841027/viewspace-1052529/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 揭祕ORACLE備份之--邏輯備份(EXP)Oracle
- ORACLE備份和恢復 - 邏輯備份 exp/impOracle
- 練習一下Oracle的邏輯備份恢復,EXP/IMPOracle
- windows下exp邏輯備份並且定期維護備份Windows
- Oracle 邏輯備份 expdp/impdpOracle
- Oracle邏輯備份指令碼Oracle指令碼
- Oracle裡邏輯備份、物理備份、Rman備份的區別Oracle
- 物理Standby資料庫及邏輯Standby資料庫(Physical Standby & Logical Standby)資料庫
- 揭祕ORACLE備份之--邏輯備份(EXPDP)Oracle
- mysql的邏輯備份MySql
- ORACLE資料庫的邏輯備份(轉)Oracle資料庫
- Oracle physical standbyOracle
- 邏輯備份--mysqldumpMySql
- oracle邏輯備份之--資料泵Oracle
- Oracle 邏輯備份之EXPDP精講Oracle
- Oracle主備架構下的邏輯備份考慮Oracle架構
- 使用exp/imp匯出匯入資料(邏輯備份恢復)
- mysql 邏輯備份 (mysqldump)MySql
- 搭建Oracle的exp備份機Oracle
- 邏輯備份全庫或者邏輯備份多個使用者的資料
- ORACLE10G 物理standby轉為邏輯standbyOracle
- [zt] Oracle如何配置邏輯備用資料庫(Logical Standby)Oracle資料庫
- Mysql備份與恢復(2)---邏輯備份MySql
- 【DataGuarad】邏輯遷移與standby備庫
- MongoDB 邏輯備份工具mongodumpMongoDB
- expdp 邏輯備份指令碼指令碼
- MySql邏輯備份恢復MySql
- 物理備份是以block來區別邏輯備份的(os block或oracle block) ?BloCOracle
- Windows邏輯備份-EXPDP(保留5天內邏輯備份)批處理指令碼Windows指令碼
- Oracle 12.2 physical standby備庫收集AWR報告Oracle
- 物理standby和邏輯standby的區別
- oracle資料庫備份之exp增量備份Oracle資料庫
- Oracle邏輯備份與恢復選項說明Oracle
- WINDOWS下部署ORACLE邏輯匯出備份指令碼WindowsOracle指令碼
- DataGuard搭建邏輯StandBy
- Oracle資料庫的邏輯備份工具-expdp資料泵Oracle資料庫
- 資料庫邏輯備份(轉)資料庫
- Oracle DG建立Physical Standby DatabaseOracleDatabase