PIXNET Logo登入

DanBrother的部落格

跳到主文

歡迎光臨DanBrother在痞客邦的小天地. 部落格文章同步於=> http://blog.xuite.net/gem083/dba

部落格全站分類:數位生活

  • 相簿
  • 部落格
  • 留言
  • 名片
  • 10月 19 週一 201516:10
  • Restore Oracle 11g Database from RMAN Backup (Full and Archive Logs Backup)

Restore Oracle 11g Database from RMAN Backup (Full and Archive Logs Backup)
 
(繼續閱讀...)
文章標籤

DanBrother 發表在 痞客邦 留言(0) 人氣(80)

  • 個人分類:RMAN
▲top
  • 10月 15 週二 201317:16
  • Using RMAN to Restore A Dropped Tablespace (11gR2)

Using RMAN to Restore A Dropped Tablespace without Resetlogs (11gR2)
 
##############################################
# Create a Tablespace named “DROP_TEST_TBS”
(繼續閱讀...)
文章標籤

DanBrother 發表在 痞客邦 留言(0) 人氣(18)

  • 個人分類:RMAN
▲top
  • 10月 09 週三 201315:10
  • RMAN Backup Packages

There are two SYS Packages Used by RMAN while performing the backup:
1. SYS.dbms_backup_restore
à used to create system calls to backup datafiles, control files and archived redo logs
2. SYS.dbms_rcvman
à used to retrieve control file information to RMAN

(繼續閱讀...)
文章標籤

DanBrother 發表在 痞客邦 留言(0) 人氣(41)

  • 個人分類:RMAN
▲top
  • 9月 30 週一 201315:21
  • Simple RMAN Backup and Recovery Example

# Perform Backup:
. oraenv
[test1]
RMAN> backup device type disk format '/backup/test1_fullbk/%U' database;
RMAN> backup device type disk format '/backup/test1_fullbk/%U' archivelog all;
(繼續閱讀...)
文章標籤

DanBrother 發表在 痞客邦 留言(0) 人氣(25)

  • 個人分類:RMAN
▲top
  • 8月 23 週四 201218:29
  • RMAN Encrypted Backups Practice (Oracle 11g)

RMAN Encrypted Backups Practice (Oracle 11g):
export ORACLE_SID=TESTDB
sqlplus / as sysdba
SQL> create smallfile tablespace test_tbs datafile size 10M autoextend on;
SQL> col tablespace_name format a20
SQL> col file_name format a50
SQL> select tablespace_name,file_name,bytes/1024/1024 as MB from dba_data_files where tablespace_name = 'TEST_TBS';
(繼續閱讀...)
文章標籤

DanBrother 發表在 痞客邦 留言(0) 人氣(72)

  • 個人分類:RMAN
▲top
  • 12月 06 週二 201118:55
  • Clone RAC Database to a None-RAC DB From RMAN Backup Without Connect to the Source DB (Oracle11gR2)

Clone RAC Database to a None-RAC DB From RMAN Backup Without Connect to the Source DB  (Oracle11gR2)


-- Copy RMAN backup files from source DB server to the destination DB server
-- (Create the same directory structure)


-- Destination

# mkdir -p /u01/app/oracle/admin/TESTDB/adump
# mkdir -p /u01/app/oracle/admin/TESTDB/dpdump
# mkdir -p /u01/app/oracle/admin/TESTDB/pfile
# echo $ORACLE_HOME
/u01/app/oracle/product/11.2.0/db110203

# echo "TESTDB:/u01/app/oracle/product/11.2.0/db110203:N" >> /etc/oratab
# srvctl add database -d TESTDB -o /u01/app/oracle/product/11.2.0/db110203
/
-- vi $ORACLE_HOME/dbs/initTESTDB.ora
db_name='TESTDB'
memory_target=2G
processes=500
audit_file_dest='/u01/app/oracle/admin/TESTDB/adump'
audit_trail='db'
db_block_size=8192
db_domain=''
db_recovery_file_dest='+ARCH'
db_recovery_file_dest_size=50G
diagnostic_dest='u01/app/oracle'
open_cursors=300
remote_login_passwordfile='EXCLUSIVE'
undo_tablespace='UNDOTBS1'
compatible='11.2.0'
# export ORACLE_SID=TESTDB
# sqlplus / as sysdba
SQL> startup nomount pfile=$ORACLE_HOME/dbs/initTESTDB.ora
SQL> exit
# rman auxiliary /
set decryption identified by 'mypwd';
duplicate database to testdb
pfile='/u01/app/oracle/product/11.2.0/db110203/dbs/initTESTDB.ora'
backup location '/backup/daily/2011-10-01/TESTDB'
nofilenamecheck;

Result:
......
......
......
contents of Memory Script:
{
    Alter clone database open resetlogs;
}
executing Memory Script
database opened
Finished Duplicate Db at 01-DEC-11
(繼續閱讀...)
文章標籤

DanBrother 發表在 痞客邦 留言(0) 人氣(17)

  • 個人分類:RMAN
▲top
  • 10月 11 週二 201117:11
  • ORA-16014: log ....not archived, no available destinations

Alert Log:
************************************************************************
You have following choices to free up space from flash recovery area:
1. Consider changing RMAN RETENTION POLICY. If you are using Data Guard,
   then consider changing RMAN ARCHIVELOG DELETION POLICY.
2. Back up files to tertiary device such as tape using RMAN
   BACKUP RECOVERY AREA command.
3. Add disk space and increase db_recovery_file_dest_size parameter to
   reflect the new space.
4. Delete unnecessary files using RMAN DELETE command. If an operating
   system command was used to delete files, then use RMAN CROSSCHECK and
   DELETE EXPIRED commands.

rman target / nocatalog
RMAN> 
crosscheck archivelog all;
RMAN>
delete expired archivelog all;
SQL> alter system switch logfile;
 


 
(繼續閱讀...)
文章標籤

DanBrother 發表在 痞客邦 留言(0) 人氣(48)

  • 個人分類:RMAN
▲top
  • 9月 21 週三 201110:37
  • Rman: Ora-01008 When Connecting To Target in 11.2.0.2 [ID 1280447.1]

 
Rman: Ora-01008 When Connecting To Target in 11.2.0.2 [ID 1280447.1]
Bug#10414993

workaround: 
SQL> alter system flush shared_pool;

or
alter system set cursor_sharing=exact scope=both sid='*';
(繼續閱讀...)
文章標籤

DanBrother 發表在 痞客邦 留言(0) 人氣(11)

  • 個人分類:RMAN
▲top
  • 8月 26 週五 201115:18
  • Delete All Archivelog using RMAN

List All Archivelog:
RMAN> list archivelog all;
Delete All Archivelog:
RMAN> delete noprompt archivelog all;
(繼續閱讀...)
文章標籤

DanBrother 發表在 痞客邦 留言(0) 人氣(4)

  • 個人分類:RMAN
▲top
  • 8月 19 週四 201015:22
  • Archivelog Mode 實現無備份下還原遺失資料檔的演練

SQL> conn /@test9i as sysdba
已連線.
SQL> archive log list
資料庫日誌模式              儲存模式
可自動儲存             開啟
儲存目的地           D:\oracle\oradata\TEST9I
最早的線上日誌順序     185
下一個日誌順序以儲存   187
(繼續閱讀...)
文章標籤

DanBrother 發表在 痞客邦 留言(0) 人氣(418)

  • 個人分類:RMAN
▲top
12»

廣告

個人資訊

DanBrother
暱稱:
DanBrother
分類:
數位生活
好友:
累積中
地區:

熱門文章

  • (58,077)祝福禱告文-為工作祝福
  • (49,259)Excel 2007 中文字顯示亂碼之修復步驟
  • (2,928)ORA-24247: 存取控制清單 (ACL) 拒絕網路存取
  • (626)OSQL公用程式的使用方法
  • (456)Oracle11g Tracefile Housekeeping by ADRCI (Automatic Diagnostic Repository Command Interpreter)
  • (135)FORFILES command to remove older files or folders (Windows Server 2008)
  • (69)srvctl command usage
  • (19)Use EVERYDAY_WINDOW for DEFAULT_MAINTENANCE_PLAN
  • (17)Re-Installation Issue: you do not have sufficient permissions to access the inventory
  • (5)RPM & SRPM

文章分類

  • Android (1)
  • Java (1)
  • MongoDB (1)
  • MariaDB (7)
  • Python (10)
  • HTML (1)
  • ORDS (1)
  • Apache Tomcat (1)
  • Oracle Streams (1)
  • Javascript (1)
  • Oracle Data Guard (2)
  • Oracle VirtualBox (3)
  • Grid Infrastructure (4)
  • Oracle SQL Tuning (6)
  • OEM11g / 12c (28)
  • IT Links (1)
  • 心靈饗宴 (161)
  • Oracle Clusterware (5)
  • ORACLE RAC (21)
  • Oracle ASM (18)
  • Oracle Export/Import (10)
  • MySQL (22)
  • Windows Series (18)
  • Oracle HTTP Server (8)
  • Linux (49)
  • Microsoft Office (6)
  • SQL SERVER (19)
  • Install Apache & PHP (2)
  • Oracle in General (111)
  • RMAN (15)
  • SQL / PL/SQL (30)
  • 未分類文章 (1)

最新文章

  • MySQL Array Simulation in Stored Procedure
  • Extracts, orders, and then prints grants for MySQL user accounts (pt-show-grants)
  • MySQL Stored Procedure - Nested Loop Example
  • Metabase H2 DB Migration to MySQL 5.7
  • Steps for Upgrading Percona-Toolkit to the Latest Version
  • MySQL Slave - Skip Replication for A Particular Table
  • MySQL - Export & Import Table Data Based on the SQL Query
  • MySQL Table Fragmentation Detection and De-fragmentation Implementation
  • Multiple Log File Viewer (Linux Bash)
  • Solving MySQL slave lag Issues

最新留言

  • [21/08/16] jwang0189 於文章「祝福禱告文-為工作祝福...」留言:
    非常實用的文章,謝謝提供,已點廣告表示支持 https://...
  • [20/04/23] 廣利 於文章「祝福禱告文-為工作祝福...」留言:
    129:8 過路的也不說,願耶和華所賜的福,歸於你們;我們在...
  • [17/10/30] 66國語言翻譯公司 於文章「Download Google Chro...」留言:
    不了走會點中見你隻有果新家而去十走相隻把見作樣 95國...
  • [17/05/06] 50國語言翻譯公司 於文章「Python >>> a, b = b...」留言:
    之的不會然文道果三那大這年來來年物月用理學, 115國...
  • [16/10/13] KK 於文章「How to Change Defaul...」留言:
    感謝您分享的工作禱詞! 真的太感謝了!! 願 平安...
  • [15/08/23] 洪秀柱 於文章「如何在UltraEdit中正常顯示韓文?...」留言:
    此破解法可用於 UEstudio UltraEdit V2...

動態訂閱

文章精選

文章搜尋

誰來我家

參觀人氣

  • 本日人氣:
  • 累積人氣:

留言板