新聞中心
創(chuàng)建catalog數(shù)據(jù)庫步驟:

為千陽等地區(qū)用戶提供了全套網(wǎng)頁設(shè)計制作服務(wù),及千陽網(wǎng)站建設(shè)行業(yè)解決方案。主營業(yè)務(wù)為成都網(wǎng)站設(shè)計、成都網(wǎng)站制作、千陽網(wǎng)站設(shè)計,以傳統(tǒng)方式定制建設(shè)網(wǎng)站,并提供域名空間備案等一條龍服務(wù),秉承以專業(yè)、用心的態(tài)度為用戶提供真誠的服務(wù)。我們深信只要達到每一位用戶的要求,就會得到認可,從而選擇與我們長期合作。這樣,我們也可以走得更遠!
步驟一:創(chuàng)建恢復(fù)目錄用戶
step1: 為恢復(fù)目錄單***建表空間catalog_tbs,
創(chuàng)建恢復(fù)目錄用戶 CREATE USER rcat_user IDENTIFIED BY rcat_password DEFAULT TABLESPACE catalog_tbs;
step2: 為恢復(fù)目錄授予下列角色
connect
resource
recovery_catalog_owner
GRANT connect,resource,recovery_catalog_owner TO rcat_user;
步驟二:創(chuàng)建恢復(fù)目錄模式對象
step1: 使用RMAN連接的恢復(fù)目錄
RMAN
catalog=rcat_user/rcat_password
step2: 在RMAN 提示符下執(zhí)行create catalog命令
create catalog tablespace catalog_tbs;
步驟三:在恢復(fù)目錄中注冊數(shù)據(jù)庫
step1: 使用RMAN 同時連接到數(shù)據(jù)庫和恢復(fù)目錄
set ORACLE_SID=main_db
RMAN target=backup_admin/backupuserpassword
catalog=rcat_user/rcat_password@recover
step2: 使用恢復(fù)目錄注冊數(shù)據(jù)庫
RMAN>Register database;
rman catalog,撤消目標(biāo)數(shù)據(jù)庫注冊
步驟一:進入要撤消注冊的數(shù)據(jù)庫,獲取這個數(shù)據(jù)庫的DBID
SQL>select dbid from v$database;
DBID
2539725638
步驟二:連接擁有恢復(fù)目錄的模式,確定恢復(fù)目錄中該數(shù)據(jù)庫的DB_KEY
SQL>select db_key from db where db_id=2539725638
DB_KEY
1
步驟三:使用dbms_rcvcat.unregisterdatabase過程從恢復(fù)目錄中撤消數(shù)據(jù)庫的注冊
exec dbms_rcvcat.unregisterdatabase(1,2539725638)
按照上文中講解的步驟就能夠完成創(chuàng)建catalog數(shù)據(jù)庫的工作,希望大家都能夠從上文中有所收獲,然后熟練掌握創(chuàng)建catalog數(shù)據(jù)庫的步驟,這對大家日后的工作會非常有幫助的。
文章題目:創(chuàng)建catalog數(shù)據(jù)庫步驟
當(dāng)前路徑:http://www.5511xx.com/article/dhjhecg.html


咨詢
建站咨詢
