扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
来源:IT认证考试 2010年9月24日
关键字:
在本页阅读全文(共9页)
File Size(MB) Tablespace Maxsize(MB) Tempfile Name
—- ——– ——————– ———– ——————–
1 29 TEMP 32767 +DATADG/pcard/tempfile/temp.262.663797505
Uninstall RAC
shutdown DB instance, ASM, OCR
/etc/init.d/init.crs disable
/etc/init.d/init.crs stop
Edit /etc/inittab, remove CRSD,EVMD, CSSD entries
reboot
rm -fr All directories and files about oracle under /etc (oracle, oraInst.loc, oratab)
rm -fr /etc/init.d/init.crs, init.crsd, init.evmd, init.cssd, /etc/rc0.d/K96init.crs, /etc/rc1.d/K96init.crs, /etc/rc2.d/K96init.crs, /etc/rc3.d/S96init.crs, /etc/rc4.d/K96init.crs, /etc/rc5.d/S96init.crs, /etc/rc6.d/K96init.crs
cd /oracle
rm -fr *
# OCR and Vote Disk
dd if=/dev/zero of=/dev/raw/raw1 bs=4096 count=128
dd if=/dev/zero of=/dev/raw/raw2 bs=4096 count=128
dd if=/dev/zero of=/dev/raw/raw3 bs=4096 count=128
dd if=/dev/zero of=/dev/raw/raw4 bs=4096 count=128
dd if=/dev/zero of=/dev/raw/raw5 bs=4096 count=128
# ASM disks
dd if=/dev/zero of=/dev/raw/raw6 bs=8192 count=128
dd if=/dev/zero of=/dev/raw/raw7 bs=8192 count=128
dd if=/dev/zero of=/dev/raw/raw8 bs=8192 count=128
dd if=/dev/zero of=/dev/raw/raw9 bs=8192 count=128
dd if=/dev/zero of=/dev/raw/raw10 bs=8192 count=128
dd if=/dev/zero of=/dev/raw/raw11 bs=8192 count=128
Create Physical Standby Database and Switchover
RAC01 side:
rman target sys/nhy67ujm@pcard1 catalog=RMANUSR/rman@RMANUAT
mkdir -p /oracle /backup/hotbackup
RMAN》 run{
allocate channel d1 type disk;
backup format ‘/oracle/backup/hotbackup/df_t%t_s%s_p%p’ database;
backup current controlfile for standby format
‘/oracle/backup/hotbackup/sb_t%t_s%s_p%p’;
sql ‘alter system archive log current’;
backup format ‘/oracle/backup/hotbackup/al_t%t_s%s_p%p’ archivelog all;
release channel d1;
}
Standby side:
mkdir -p /oracle/backup/hotbackup
cd /oracle/backup/hotbackup
sftp oracle@rac01:/oracle/backup/hotbackup/
Use “get” command to copy all backup files in this directory.
Create standby db directory
mkdir -p /oracle/admin/pcard/adump
mkdir -p /oracle/admin/pcard/bdump
mkdir -p /oracle/admin/pcard/cdump
mkdir -p /oracle/admin/pcard/udump
mkdir -p /oracle/oradata/pcard/arch/
mkdir -p /oracle/oradata/pcard/datafile
mkdir -p /oracle/oradata/pcard/onlinelog
Standby Side: Edit listener.ora and tnsname.ora
listener.ora:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /oracle/product/10.2.0/db)
(PROGRAM = extproc)
)
(SID_DESC =
(GLOBAL_DBNAME = standby)
(ORACLE_HOME = /oracle/product/10.2.0/db)
(SID_NAME = pcarddg)
)
)
LISTENER_STANDBY =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.10.201)(PORT = 1521))
)
)
tnsname.ora (Copy from RAC01, and add the following contents):
#####STANDBY SETTINGS##############
LISTENERS_STANDBY =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.10.201)(PORT = 1521))
PCARDDG =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.10.201)(PORT = 1521))
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = PCARDDG)(UR=A)
(INSTANCE_NAME = PCARDDG)
)
)
RAC01 Side: Create pfile from spfile and edit
SQL》 create pfile from spfile;
SQL》 host vi /oracle/product/10.2.0/db_1/dbs/initpcard1.ora
如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。
现场直击|2021世界人工智能大会
直击5G创新地带,就在2021MWC上海
5G已至 转型当时——服务提供商如何把握转型的绝佳时机
寻找自己的Flag
华为开发者大会2020(Cloud)- 科技行者