Install oracle10g + asm in rhel --- test environment setup

Source: Internet
Author: User

Install oracle10g + asm under rhel --- build su-root www.2cto.com mkdir/asmdisk = in unix/linux, all devices are files, so we can create several files to simulate multiple hard disks. Create several files with dd, the size is 1Gdd if =/dev/zero of =/asmdisk/disk1 bs = 1024 k count = 500dd if =/dev/zero of =/asmdisk/disk2 bs = 1024 k count = 500dd if =/dev/zero of =/asmdisk/disk3 bs = 1024 k count = 500dd if =/dev/zero of =/asmdisk/disk4 bs = 1024 k count = 500/ //// if the installation fails, use this command, clear the ASM disk dd if =/dev/zero of =/asmdisk/disk4 bs = 8192 count = 500 // = use the losetup command, in linux, these files are stored on/sbin/losetup/dev/loop1/asmdisk/disk1/sbin/losetup/ Dev/loop2/asmdisk/disk2/sbin/losetup/dev/loop3/asmdisk/disk3/sbin/losetup/dev/loop4/asmdisk/disk4raw/dev/raw/raw1/dev/ loop1raw/dev/raw/raw2/dev/loop2raw/dev/raw/raw3/dev/loop3raw/dev/raw/raw4/dev/loop4 note: if you want to delete a Virtual Disk File simulated by dd, you can directly Delete the simulated disk file (asm_disk1, asm_disk2... Asm_disk6) is not enough. You must also execute losetup-d/dev/loopN, where N ranges from 1 to 6. Otherwise, the disk space occupied by disk files cannot be released. Cd/dev/raw ls-ltrchown-R oracle: oinstall * chmod 660 * ls-ltr to avoid the previous configuration failure after restart, you can do the following settings: vi/etc/rc. local # Add the following content/sbin/losetup/dev/loop1/asmdisk/disk1/sbin/losetup/dev/loop2/asmdisk/disk2/sbin/losetup/dev/loop3/asmdisk/ disk3/sbin/losetup/dev/loop4/asmdisk/disk4raw/dev/raw/raw1/dev/loop1raw/dev/raw/raw2/dev/loop2raw/dev/raw/raw3/ dev/loop3raw/dev/raw/raw4/dev/loop4 start to install the oracle software, configure the asm disk. Su-oracledbca create asm run script create asmdg check asmdgsqlplus/as sysdba select name from v $ datafile; Confirm that the data file is on the asm disk. Supplement: how to delete a dgexport oracle_sid = + asm1.DBCA Delete instance2.sqlplus and then log on to ASM. Delete the ASM that DG sqlplus logs on to the second node. dismount the DG alter diskgroup xxx dismount to be deleted; sqlplus log on to the ASM of the first node and drop the DG drop diskgroup xxx include content; 3. stop ASM and execute srvctl stop asm-n node1 srvctl stop asm-n node2 4 on node 1. delete ASM and execute srvctl remove asm-n node1 srvctl remove asm-n node2 5 on node 1. delete related files and execute rm-f $ ORACLE_HOME/dbs/* ASM * on all nodes to delete the ASM content in/etc/oratab.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.