Installeer Oracle Linux 6 Download the latest iso with oracle linux from oracle https://edelivery.oracle.com/linux (create a free account or login with existing account) Burn the iso to a DVD with the Linux 6 OS Boot your server from the DVD with the Linux 6 OS (if necessary, first adjust the BIOS boot options in your server/desktop/laptop to search for an OS on the DVD first before starting from HardDisk) Install Oracle Enterprise Linux 6 in graphical mode. Go for a fresh install , where everything on your hard disk will be deleted. Make the appropriate choices for your installation, choose for a database server when you have to decide what type of linux installation you want. For testing / training purposes, I prefer a server with some extra’s. Additional features such as X-Windows are necessary for installations of Oracle Software, but you might want to install a graphical desktop, system configuration and network tools. In case of serious server installations, where security is important, install only the minimum required to install a database server. For ASM, one thing is important: Before the installation starts and you choose the partition layout, make sure that you choose to make adjustements to the partition layout. Adjust the partition layout and create an empty partition without a filesystem reserved for later use with ASM
89
Embed
firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Installeer Oracle Linux 6
Download the latest iso with oracle linux from oracle
https://edelivery.oracle.com/linux
(create a free account or login with existing account)
Burn the iso to a DVD with the Linux 6 OS Boot your server from the DVD with the Linux 6 OS
(if necessary, first adjust the BIOS boot options in your server/desktop/laptop to search for an OS on the DVD first before starting from HardDisk)
Install Oracle Enterprise Linux 6 in graphical mode. Go for a fresh install , where everything on your hard disk will be deleted. Make the appropriate choices for your installation, choose for a database server
when you have to decide what type of linux installation you want. For testing / training purposes, I prefer a server with some extra’s. Additional features such as X-Windows are necessary for installations of Oracle Software, but you might want to install a graphical desktop, system configuration and network tools. In case of serious server installations, where security is important, install only the minimum required to install a database server.
For ASM, one thing is important:
Before the installation starts and you choose the partition layout, make sure that you choose to make adjustements to the partition layout. Adjust the partition layout and create an empty partition without a filesystem reserved for later use with ASM
1. Single disk
Adjust the partition layout, let’s assume that you have 1 disk and that the linux installer reserved 512 MB for a boot partition, 40 GB for a root partition and the rest for the home partition. Edit the home partition and shrink it to a lower value, let’s assume 100 GB less.
Default the installer will create a boot partition that we want to leave unchanged. Then for the rest, it will create a physical volume and a logical voume using the physical volume. Carefully write down the suggested configuration parameters and destroy both the physical and the logical volume. Now we create a new physical volume that leaves a part of the disk free, let’s say we leave 100GB free.
Create the physical volume, then create the logical volume root the same size as it was before using the physical volume created. Create a logical volume home using the rest of the space, which is 100 GB less then before.
(you might want to create extra filesystems as /u01 for oracle, /u02 for orage agent or any other filesystem like /var separate from /root)
We now have for our disk /dev/sda
/dev/sda1 for boot
/dev/sda2 for the lvm on /dev/mapper
In the lvm we have /root/ /home and other filesystems you might want to create, as /u01 for oracle
And 100 GB free, unused diskspace for later use for ASM
2. Two disks, one reserved for ASM
With two disk it’s even more easy. Install the linux 6 OS the same way as above, but for the partition layout, adjust it so that one disk will be used for the /boot and the physical and logical volume holding /root, /home and other filesystems you want to create
Make sure the first disk is used for the OS and oracle software, and the second disk is completely free and unused, reserved for later use with ASM
3. Three disks or more, two or more reserved for ASM
With more then two disks available , more choice is possible. If you have two identical disks you can leave them free and unused for later use with asm and reserve them for normal redundancy, where ASM will use the two disk to create a high available disk configuration where everything is mirrored on both disks.
After installation , reboot
Create an oracle user and minimal users for oinstall and dba group, oinstall primary group for oracle
Depending on security considerations , you might want to create other users as “grid” for asm, or operators belong to the dba or the asmdba group.
The most simple setup for training and testing is one oracle user, group oinstall and dba for everything
Login as root
Configure yum
# cd /etc/yum.repos.d# wget http://public-yum.oracle.com/public-yum-ol6.repo
4. Use asmlib5. Not use asmlib but configure udev rules
With asm, the disk must be accessed by oracle from the start and not by root. This can be accomplished by the solutions above. We will focus on solution 1 (easiest) but you might want to use the other option with udev as well
You can search the internet on configuring udev rules in /etc/udev.d/rules
Successfully configured Oracle Grid Infrastructure for a Standalone Server
cd ..
cd database/
[oracle@freya database]$ ./runInstaller
Starting Oracle Universal Installer...
Skip software updates
MEMORY_TARGET needs /dev/shm filesystem with required size. By default /dev/shm size is half of the system memory. So you have to change line in /etc/fstab from:
tmpfs /dev/shm tmpfs defaults 0 0
to something like:
tmpfs /dev/shm tmpfs defaults,size=49G 0 0
df -h /dev/shm will show you tmpfs size. To avoid reboot after editing /etc/fstab you can do:
umount tmpfs
mount -a
siz
[root@freya db]# ./root.sh
Performing root user operation for Oracle 11g
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /u01/app/oracle/product/11.2.0.4/db
Enter the full pathname of the local bin directory: [/usr/local/bin]:
The contents of "dbhome" have not changed. No need to overwrite.
The contents of "oraenv" have not changed. No need to overwrite.
The contents of "coraenv" have not changed. No need to overwrite.
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.