Backup And Recovery User's Guide-從RMAN開始-開始使用RMAN並連線到資料庫
RMAN客戶端是通過在你的作業系統的提示符下輸入rman命令而啟動的。
[oracle@S1011:/export/home/oracle]$ rman
Recovery Manager: Release 11.2.0.3.0 - Production on Thu Jul 4 09:12:58 2013
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
RMAN> |
到資料庫的RMAN連線的指定和認證方式與SQL*Plus一致。
唯一的區別是RMAN連線到目標或輔助資料庫需要SYSDBA許可權。
AS SYSDBA關鍵字是隱式的,不能被顯式地指定。
注意:好的安全的實踐是不應該在命令列以文字的形式輸入口令,而是應該在RMAN提示輸入口令時再輸入。
# 使用CONNECT TARGET連線到目標資料庫 RMAN> connect target sys@testdb11
target database Password: connected to target database: TESTDB11 (DBID=2578856066)
# 使用作業系統認證連線到目標資料庫 RMAN> connect target /
connected to target database: TESTDB11 (DBID=2578856066)
# rman命令列選項的語法 RMAN [ TARGET connectStringSpec | { CATALOG connectStringSpec } | LOG ['] filename ['] [ APPEND ] . . . ]...
connectStringSpec::= ['] [userid] [/ [password]] [@net_service_name] [']
# 將RMAN會話的輸出附加到/export/home/oracle/rman.log檔案 # 1. 自己建立一個日誌檔案 oracle@Redhat55.cuug.net:/home/oracle> touch rman.log oracle@Redhat55.cuug.net:/home/oracle> ls rman.log # 2. 啟動RMAN時指定自己的日誌檔案 oracle@Redhat55.cuug.net:/home/oracle> rman target / log /home/oracle/rman.log append # 3. 執行一些操作 RMAN> report obsolete; RMAN> list backup; RMAN> exit oracle@Redhat55.cuug.net:/home/oracle> more rman.log
Recovery Manager: Release 11.2.0.3.0 - Production on Fri Jul 12 00:19:44 2013
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
connected to target database: TESTDB12 (DBID=2811829300)
RMAN> using target database control file instead of recovery catalog RMAN retention policy will be applied to the command RMAN retention policy is set to redundancy 1 no obsolete backups found
RMAN> specification does not match any backup in the repository
RMAN>
Recovery Manager complete. |
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/17013648/viewspace-1079865/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle RMAN 連線資料庫認證方法Oracle資料庫
- 使用RMAN備份資料庫資料庫
- sqlserver01(使用篇從新建資料庫開始)SQLServer資料庫
- 3.1.1.2 使用RMAN啟動資料庫資料庫
- Eggjs 從放棄到開始使用JS
- 使用RMAN複製資料庫 active database資料庫Database
- oracle資料庫使用rman備份指令碼Oracle資料庫指令碼
- 用rman遷移資料庫資料庫
- 【RMAN】Oracle使用rman將11.2.0.4資料庫遷移至Oracle12c命令參考Oracle資料庫
- webpack 從開始到結束Web
- 利用RMAN備份重建資料庫資料庫
- 不怕從零開始,只怕從未開始!
- 線段樹從零開始
- 幾何庫從零開始
- 【從零開始學習Oracle資料庫】(3)函式與子查詢和連線查詢Oracle資料庫函式
- 【從零開始學習 MySql 資料庫】(3) 函式與子查詢和連線查詢MySql資料庫函式
- 大資料學習路線(自己制定,從零開始)大資料
- 【從零開始學習 MySql 資料庫】(2) 函式MySql資料庫函式
- Rockchip RK3588 - 從零開始製作recovery系統
- 前端資料校驗從建模開始前端
- 保證資料庫質量安全:從0開始的資料庫測試資料庫
- Oracle使用RMAN從Windows遷移資料到LinuxOracleWindowsLinux
- Oracle 11G RAC複製備庫RMAN-03002 RMAN-05501 RMAN-03015 RMAN-03009 RMAN-10038Oracle
- Using V$BACKUP_ASYNC_IO / V$BACKUP_SYNC_IO to Monitor RMAN PerformanceORM
- 理解RMAN backup database plus archivelog delete all input命令DatabaseHivedelete
- SQL 查詢並不是從 SELECT 開始的SQL
- 從零開始
- 在DG備庫備份資料庫並恢復到一個主機上,報錯RMAN-06820資料庫
- 從零開始實現資料庫自動化巡檢(一)資料庫
- 從0開始構建一個瀚高資料庫Docker映象資料庫Docker
- K8s 開始K8S
- 從零開始實現線上直播
- 如何從0開始搭建 Vue 元件庫Vue元件
- RE.從單連結串列開始的資料結構生活(bushi資料結構
- 開展企業大資料,從數塔•Datale開始大資料
- 【MySQL】自定義資料庫連線池和開源資料庫連線池的使用MySql資料庫
- ORACLE DG從庫 Rman備份恢復Oracle
- 手把手教你從資料預處理開始體驗圖資料庫資料庫
- 資料庫連線分析(1)-從JDBC到MyBatis資料庫JDBCMyBatis