Linux dd commands for Oracle DBAs
dd is a command line utility for Unix/Linux operating systems whose primary purpose is to convert files, copy files and to take backup.
dd commands are used - restores/clone a hard disk drive from a previously created image. Clones one partition to another.
Arguments:
if -- input file
of -- output file
bs -- block size
dd if=/u02/ocfs2/vote/VDFile_0 of=$ORACLE_BASE/bkp/VDFile_0
dd if=/dev/hdb2 of=/dev/sda5 bs=8192
dd if=/dev/sda2 of=/dev/sdb2 bs=4096 conv=notrunc,noerror
dd if=/dev/zero of=/abc bs=1 count=1 conv=notrunc,ucase
dd if=/dev/cdrom of=/home/satya/myCD.iso bs=2048 conv=sync,notrunc,lcase
dd if=/dev/hda3 skip=9200 of=/home/satya/backup_set_3.img bs=1M count=4600
dd if=/home/satya/1Gb.file bs=64k | dd of=/dev/null
dd if=testwrite.dbf bs=8192 count=1 skip=1246 of=blk1246.dmp
dd of=testwrite.dbf bs=8192 count=1 seek=3407 if=blk 3407.dmp conv=notrunc
Related Oracle Articles: ocrcheck in Oracle RAC ocrdump in Oracle RAC ocrconfig commands in Oracle RAC
Hi Satya -- Is there a way to download your blog? print each page is cumbersome. would you help?
ReplyDelete