Linux系統(tǒng)中如何啟動RMAN
Linux系統(tǒng)中如何啟動RMAN
這里學(xué)習(xí)啦小編介紹如何在Linux系統(tǒng)中啟動RMAN。下面一起來看看吧!!!
RMAN(Recovery Manager)是一種用于備份(backup)、還原(restore)和恢復(fù)(recover)數(shù)據(jù)庫的 Oracle 工具。
RMAN可以由OEM的Backup Manager GUI來控制。
Linux系統(tǒng)中啟動RMAN
如果是windows系統(tǒng),先看看oracle的SID,然后在DOS里面設(shè)置一下SID
命令set ORACLE_SID=test
Linux中,查看oracle數(shù)據(jù)庫的SID號,用如下命令:
rman的參數(shù)及說明
Argument Value Description
-----------------------------------------------------------------------------
target quoted-string connect-string for target database
catalog quoted-string connect-string for recovery catalog
nocatalog none if specified, then no recovery catalog
cmdfile quoted-string name of input command file
log quoted-string name of output message log file
trace quoted-string name of output debugging message log file
append none if specified, log is opened in append mode
debug optional-args activate debugging
msgno none show RMAN-nnnn prefix for all messages
send quoted-string send a command to the media manager
pipe string building block for pipe names
timeout integer number of seconds to wait for pipe input
checksyntax none check the command file for syntax errors
-----------------------------------------------------------------------------
Both single and double quotes (' or ") are accepted for a quoted-string.
Quotes are not required unless the string contains embedded white-space.
注意這里的說明
Both single and double quotes (' or ") are accepted for a quoted-string.
Quotes are not required unless the string contains embedded white-space.
如果字符串中沒有空格字符,可以不使用引號
直接輸入rman即可進(jìn)入rman,注意這里rman必須小寫
輸入connect target / 連接數(shù)據(jù)庫
輸入exit,可以退出rman