Professional Documents
Culture Documents
DAY1
DAY2
RMAN
Dumps
11. blockdump
12. dump metadata using kfed
13. dd
***********************************************************
RAW DEVICES with ASM
file -> loopdev -> rawdev
***********************************************************
important note:
It could be possible, that loopdevice setup was already completed.
check this before:
raw -qa
if so, continue with device permissions and ownership
Check view v$asm_disk to see if the new disk fs_disk1 was discovered:
3. startup nomount
5. check results
v$asm_disk
v$asm_diskgroup
******************************
create ASM database
******************************
mount/dismount diskgroup
drop diskgroup
STRIPING
REBALANCE
ASM FS mixup
1.Download ASMLIB
http://www.oracle.com/technology/tech/linux/asmlib/index.html
3.Configure ASMLIB
As root:
# cd /etc/init.d
# ./oracleasm config
# lsmod
# df –ha
# rpm –qa |grep asm
4.Create disks that will be used by ASMLIB
file -> loop -> asmlib
* Pick a directory with plenty of space and create the file with 'dd' command.
500Mb each file
$ dd if=/dev/zero of=loop_disk5 bs=1M count=500
$ dd if=/dev/zero of=loop_disk6 bs=1M count=500
$ ls -l
total 200208
-rw-r--r-- 1 oracle dba 524288000 Apr 5 14:16 loop_disk5
-rw-r--r-- 1 oracle dba 524288000 Apr 5 14:17 loop_disk6
* With second step using 'losetup' command, we will associate a loop device
with a file. This time, as root execute these commands:
$ su -
# losetup /dev/loop5 loop_disk5
# losetup /dev/loop6 loop_disk6
cd /etc/init.d
./oracleasm createdisk DISK1 /dev/loop1
./oracleasm createdisk DISK2 /dev/loop2
ls –l /dev/oracleasm/disks
ls –l /dev/loop1 /dev/loop2
6. Adjust asm_diskstring
ORCL:*
**********************************************
Using filesystems to implement ASM
_asm_allow_only_raw_disks = FALSE
**********************************************
#
# Reference Note: 293095.1
1. Create a directory to store the files that will be used as ASM DISKS.
Mkdir <path>
3. Include <path> into asm_diskstring parameter . Make the change in the init+ASM.ora
Alter system set asm_diskstring=’ORCL:*’,’<path>’
4. Check view v$asm_disk to see if the new disk fs_disk1 was discovered:
1. On the ASM instance, identify the structure for the new location
Directories can be created on a diskgroup.
use asmcmd
Note: You can use any path under the diskgroup name.
* Call RMAN
rman nocatalog
rman>connect target
* Copy controlfile:
rman>restore controlfile to <new location> from <old location>;
rman>sql 'alter database mount';
rman>sql 'alter database open.
rman nocatalog
rman>connect target
rman>backup as copy datafile 8 format '/oradata2/p10g/backup/testx_%f.dbf'
BLOCKDUMP
check tracefile
DD SAME DISKHEADER
e.g.
dd if=/dev/raw/raw4 of=dumpraw4 count=100