Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Configure asmlib on oracle linux 6.6

0 views

Published on

Configure asmlib on oracle linux 6.6

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Configure asmlib on oracle linux 6.6

  1. 1. DATABASE LINK FROM ORACLE TO MYSQL OSAMA MUSTAFA DATABASE LINK FROM ORACLE TO MYSQL Introduction This document describe steps to configure ASMLIB on Oracle Linux 6.6. Environment:- Operating System: Oracle Linux 6.6 Database: - 11.2.0.4 In my case Grid Infrastructure installed on both node, so I choose one node to configure database link. Software Needed:- 1- Oracle ASMLIB Download from Here. 2- Oracle Linux 6.6
  2. 2. DATABASE LINK FROM ORACLE TO MYSQL OSAMA MUSTAFA DATABASE LINK FROM ORACLE TO MYSQL About the Author Osama Mustafa has progressive experience in Oracle Products, community. He recently served as Oracle Database Administrator. Provide Database Implementation Solutions, High Availability Solution, Infrastructure and Storage Planning, Install, Configure, Implement and manage Oracle E-Business Suite environments. Architect, build and support highly-available Oracle EBS, Database and Fusion Middleware environments including appropriate reporting, Installs, configures, upgrades, tunes, and maintains production, development and test databases. He entered Oracle ACE Program in 2013, he is author for the book Oracle Penetration Testing, Osama Mustafa Certified OCP 10g,11g, Linux Implementations , Certified Ethical hacker and LPT , and Solaris Administrator. Include to all this Osama Mustafa is international Speaker in Oracle User Group and Oracle OTN Tour, Published Online Articles in His blog about Oracle Technology, Volunteer in Oracle User Group such as IOUG, ODTUG and UKOUG , Volunteer Board member in RACSIG and Organizer for RACATTACK Event around the world. Recently his article has been published on OTECH magazine about Real Application Cluster Here. Twitter: @OsamaOracle G+: Osama Mustafa SlidShare: Osama Mustafa LinkedIn: http://www.linkedin.com/in/osamamustafa Blog: https://osamamustafa.blogpsot.com.
  3. 3. DATABASE LINK FROM ORACLE TO MYSQL OSAMA MUSTAFA DATABASE LINK FROM ORACLE TO MYSQL First of all Download the ASMLIB package and Upload them to the server you have two option download them automatically using yum command or manually if you don’t have internet access. Too see the kernel version:- [root@test01 ~]# uname -a [root@test01 ~]# cat /etc/oracle-release Using Yum run the following command:- yum install kmod-oracleasm yum install oracleasm-support yum install oracleasmlib Or after download the package and upload them to the server use the rpm command:- rpm –ivh kmod-oracleasm-2.0.8-4.el6_6.x86_64.rpm rpm –ivh oracleasmlib-2.0.4-1.el6.x86_64.rpm rpm –ivh oracleasm-support-2.1.8-1.el6.x86_64.rpm It’s mandatory to install 3 packages don’t ignore any. Now the installation for ASMLIB is done, we need to partition the new disk using fdisk command. [root@moirac01 ASM]# fdisk -l Disk /dev/sda: 268.4 GB, 268435456000 bytes 255 heads, 63 sectors/track, 32635 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00031164 Disk /dev/sde: 549.8 GB, 549763153920 bytes 255 heads, 63 sectors/track, 66838 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000d23a3
  4. 4. DATABASE LINK FROM ORACLE TO MYSQL OSAMA MUSTAFA DATABASE LINK FROM ORACLE TO MYSQL # fdisk /dev/sdc Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel Building a new DOS disklabel with disk identifier 0xc8322e8f. Changes will remain in memory only, until you decide to write them. After that, of course, the previous content won't be recoverable. Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite) WARNING: DOS-compatible mode is deprecated. It's strongly recommended to switch off the mode (command 'c') and change display units to sectors (command 'u'). Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 1 First cylinder (1-1305, default 1): Using default value 1 Last cylinder, +cylinders or +size{K,M,G} (1-1305, default 1305): Using default value 1305 Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. Syncing disks. Now we can configure ASMLIB using the below command:- #/usr/sbin/oracleasm configure -i Configuring the Oracle ASM library driver. This will configure the on?boot properties of the Oracle ASM library driver. The following questions will determine whether the driver is loaded on boot and what permissions it will have. The current values will be shown in brackets ('[]'). Hitting without typing an answer will keep that current value. Ctrl?C will abort. Default user to own the driver interface []: oracle Default group to own the driver interface []: dba Start Oracle ASM library driver on boot (y/n) [n]: y Scan for Oracle ASM disks on boot (y/n) [y]: y
  5. 5. DATABASE LINK FROM ORACLE TO MYSQL OSAMA MUSTAFA DATABASE LINK FROM ORACLE TO MYSQL Writing Oracle ASM library driver configuration: done # oracleasm init Creating /dev/oracleasm mount point: /dev/oracleasm Loading module "oracleasm": oracleasm Mounting ASMlib driver filesystem: /dev/oracleasm Create disk oracleasm createdisk OCR1 /dev/sde1 Writing disk header: done Instantiating disk: done # oracleasm createdisk OCR2 /dev/sdf1 Writing disk header: done Instantiating disk: done # oracleasm listdisks OCR1 OCR2 The output like the below:-

×