Installing an Oracle 11.2.0.3 Database on an AIX system
It’s worth reading all the headings before beginning the installation process:
Hardware requirements
Min 1GB RAM (recommended amount is 2GB or more)
To find out the amount of installed RAM
|
1 |
#lsattr -E -l sys0 -a realmem |
Swap requirements
For 1-2 GB Physical RAM, 1.5 the amount of RAM
For 2-16 GB Physical RAM, the swap amount can be the same as the physical RAM
For systems with more than 16GB Physical RAM, 16GB of swap space is sufficient
Checking the size of the swap amount:
|
1 |
#lsps -a |
If the amount of swap space is insufficient, instructions showing how to increase its size are provided at the end of the page.
Disk requirements
A minimum of 1GB for /tmp.
|
1 2 3 |
df -g /tmp « The -g option is for the size in gigabytes df -k /tmp « The -k option is for the size in kilobytes chfs -a size=+2G /tmp « To increase the size of /tmp |
Information about the system to be installed. Whether the operating system’s kernel architecture is 32 or 64 bit.
|
1 2 |
#getconf HARDWARE_BITMODE 64 |
|
1 2 3 4 |
The operating system should, at a minimum, be the versions below or higher AIX 5L V5.3 TL 09 SP1 ("5300-09-01"), 64 bit kernel AIX 6.1 TL 02 SP1 ("6100-02-01), 64-bit kernel AIX 7.1 TL 0 SP1 ("7100-00-01"), 64-bit kernel |
Operating system release
|
1 2 |
#oslevel -s 6100-06-05-1115 |
The digits on line 2 indicate that this is AIX V6 TL6 service pack 5, released on the 15th week of 2011.
The filesets that need to be installed for AIX 5L :
|
1 2 3 4 5 6 7 8 |
bos.adt.base bos.adt.lib bos.adt.libm bos.perf.libperfstat 5.3.9.0 or later bos.perf.perfstat bos.perf.proctools xlC.aix50.rte.10.1.0.0 or later gpfs.base 3.2.1.8 or later |
The filesets that need to be installed for AIX 6.1:
|
1 2 3 4 5 6 7 8 9 |
bos.adt.base bos.adt.lib bos.adt.libm bos.perf.libperfstat 6.1.2.1 or later bos.perf.perfstat bos.perf.proctools xlC.aix61.rte.10.1.0.0 or later xlC.rte.10.1.0.0 or later gpfs.base 3.2.1.8 or later |
The filesets that need to be installed for AIX 7.1
|
1 2 3 4 5 6 7 8 9 |
bos.adt.base bos.adt.lib bos.adt.libm bos.perf.libperfstat bos.perf.perfstat bos.perf.proctools xlC.aix61.rte:10.1.0.0 or later xlC.rte.10.1.0.0 or later gpfs.base 3.3.0.11 or later |
Checking to see whether or not they have been installed:
|
1 2 |
lslpp -l bos.adt.base bos.adt.lib bos.adt.libm bos.perf.perfstat bos.perf.libperfstat bos.perf.proctools |
Necessary patches:
If using the minimum os requirement’s TL (Technology Level) for AIX 6L as listed above then:
Install all AIX 6L 6.1 Authorized Problem Analysis Reports (APARs) for AIX 6.1 TL 02 SP1, followed by these AIX fixes:
|
1 2 3 |
IZ41855 IZ51456 IZ52319 |
These 6.1 fixes are present in the following TLs:
|
1 2 3 |
AIX 6.1 TL-02 SP-04 and later AIX 6.1 TL-03 SP-02 and later AIX 6.1 TL-04 |
If you need to install a Service Pack, use the link below or the links at the end of the page
www.ibm.com/developerworks/aix/library/au-aixservicepacks/#resources
Checking to see whether or not they have been installed
|
1 |
instfix -ia|grep IZ52319 |
As the installed operating systems is AIX V6 TL6 Service Pack 5 released on the 15th week of 2011, this means that the patches have been installed.
Creating Users and Groups:
|
1 |
smit security |
|
1 2 3 |
id oracle passwd oracle smit chuser --soft --> -1 |
Kernel Parameters
Maximum number of PROCESSES (maxuprocs) 16384
ARG/ENV list size in 4K byte blocks (ncargs) 128
The values on your system shouldn’t be lower than the numbers shown above.
|
1 |
smit chgsys « To change the maximum number of processes |
alternatively
|
1 |
chdev -l sys0 -a maxuproc=3000 |
to query
|
1 2 |
lsattr -E -l sys0 | grep maxuproc maxuproc 3000 Maximum number of PROCESSES allowed per user True |
Asynchronous Input Output Processes
To activate “Asynchronous Input Output Processes”, run the rootpre.sh file in the AIX 5 database directory (active by default in AIX 6).
In AIX 5 and 6, the aio_maxreqs value is 65536.
|
1 2 3 4 |
#ioo –o aio_maxreqs aio_maxreqs = 65536 #lsattr -El aio0 -a maxreqs maxreqs 65536 Maximum number of REQUESTS True |
To view the AIO processes
|
1 |
ps -ek|grep -v grep|grep -v posix_aioserver|grep -c aioserver |
If many parallel queries are expected to be run simultaneously, it may be necessary to widen the UDP-TCP port.
The default values:
|
1 2 3 4 5 |
#/usr/sbin/no -a | fgrep ephemeral tcp_ephemeral_low = 32768 tcp_ephemeral_high = 65535 udp_ephemeral_low = 32768 udp_ephemeral_high = 65535 |
To widen the port range:http://sysdba.org/wp-admin/post.php?lang=en&action=edit&post_type=post&post=5005
|
1 2 |
#/usr/sbin/no -p -o tcp_ephemeral_low=9000 -o tcp_ephemeral_high=65500 #/usr/sbin/no -p -o udp_ephemeral_low=9000 -o udp_ephemeral_high=65500 |
To widen the port range:
|
1 2 3 |
mkdir -p /oracle/11G (Yada mkdir -p /u01/app/ --diskleri nereye mount ettiğinizle ya da kurulum prosedurunuzle ilgili) chown -R /oracle/11G chmod -R 755 /oracle/11G |
To be added to the /home/oracle/.profile file:
|
1 2 3 4 5 6 |
ORACLE_HOSTNAME=sunucu_ismi.domain.com; export ORACLE_HOSTNAME ORACLE_BASE=/oracle; export ORACLE_BASE ORACLE_HOME=$ORACLE_BASE/11G; export ORACLE_HOME ORACLE_SID=hidiv; export ORACLE_SID PATH=/usr/sbin:$PATH; export PATH PATH=$ORACLE_HOME/bin:$PATH; export PATHhostname |
The root.sh script in /…/database/rootpre is run as the root user.
Connecting using xmanager or similar software and running “runInstaller” in the /../database/ directory starts the installation process.
Installation and settings
Loading SSH
|
1 |
geninstall -I"Y" -d/dev/cd0 I:openssh.base |
|
1 2 3 |
startsrc -s sshd veya startsrc -g ssh (group) stopsrc -s sshd veya stopsrc -g ssh lssrc -s sshd veya lssrc -s ssh |
|
1 2 3 4 |
/etc/rc.d/rc2.d/Ksshd start /etc/rc.d/rc2.d/Ssshd start /etc/rc.d/rc2.d/Ksshd stop /etc/rc.d/rc2.d/Ssshd stop |
Installing bash and unzip
Download from ibm.com/systems/power/software/aix/linux/toolbox/ezinstall.html
|
1 2 |
rpm -i bash-3.2-1.aix5.2.ppc.rpm rpm -i unzip-5.51-1.aix5.1.ppc.rpm |
Patch level and/or installed patches
To list installed patches
|
1 |
instfix -ivq |
Installed filesets
|
1 |
lslpp -L |
Updating the server (futher details in the link below)
|
1 |
smit suma |
The path where images files are downloaded to is /usr/sys/inst.images
To update the system.
|
1 |
smit update_all |
Guide for installing service packs at the IBM website
ibm.com/developerworks/aix/library/au-aixservicepacks
ibm.com/developerworks/aix/library/au-aixservicepacks/#resources
Fix Center
ibm.com/support/fixcentral/main/System+p/AIX
|
1 2 3 4 5 |
bash-3.2#lspv hdisk0 00f6f61c679c5344 rootvg active hdisk1 00f6f61cf7ee6c60 vg00 active lsvg -l rootvg lsvg -l vg00 |
|
1 |
lspv hdisk0 |
|
1 |
lsvg -o | lsvg -i -l |
Disk/File System Tasks
Volume Group and File System information
|
1 |
crfs -v jfs2 -g vg00 -a size=10M -m /fs1 |
Note: In order to mount automatically at startup, the /fs1 mount parameter in /etc/filesystems needs to be set to true.
The mount -a (or mount all) command should be used to mount volumes that have their mount parameters set to true.
umount /fs1 unmounts the volume.
Adding a 10GB storage are to the 10MB storage area.
|
1 |
hfs -a size=+10G /fs1 |
This syntax creates a 10M read-only file system mounted on /fs2in volume group 00:
|
1 |
crfs -v jfs2 -g vg00 -a size=10M -p ro -m /fs2 #oluşturduktan sonra “mount /fs2” ile mount emek lazım. |
To delete the file system.
|
1 |
rmfs /fs1 |
defragment
|
1 |
defragfs /home |
File system mount
|
1 |
mount /dev/fslv01 /u01 -- /dev/fslv1 i /u01 e mount eder. |
Increasing the Swap size
|
1 2 3 |
lsps -a Page Space Physical Volume Volume Group Size %Used Active Auto Type Chksum hd6 hdisk0 rootvg 512MB 3 yes yes lv 0 |
|
1 |
extendlv hd6 2G |
|
1 2 3 |
lsps -a Page Space Physical Volume Volume Group Size %Used Active Auto Type Chksum hd6 hdisk0 rootvg 2560MB 3 yes yes lv 0 |
Disk Performance
|
1 2 |
iostat nmon ? (d->disk, c->cpu, n->network) |
LVM and RAID1
There are 2 disks on the system, hdisk0 and hdisk1. hdisk0 is active in the “rootvg” volume group.
We’ll now add hdisk1 to the rootvg volume group and place both disks in mirror mode.
|
1 2 3 4 |
extendvg rootvg hdisk1 mirror rootvg hdisk1 bosboot –ad /dev/hdisk1 bootlist –m normal hdisk0 hdisk1 « Writing this to the bootlist is necessary otherwise hdisk 1 won't be bootable |
|
1 |
bash-3.2# lsvg -l rootvg |
| LVNAME | TYPE | LPS | PPS | PVS | LV STATE | MOUNT POINT |
| hd5 | boot | 1 | 2 | 2 | CLOSED/SYNCED | N/A |
| hd6 | paging | 10 | 20 | 2 | OPEN/SYNCED | N/A |
| hd4 | jf2 | 40 | 80 | 2 | OPEN/SYNCED | / |
Entries in the output where the PPS is double the amount of PPS indicate that the mirroring is active.
This can be used in situations where there aren’t RAID controllers, however applying RAID 10 with this method would substantially decrease the database’s performance.
Mounting the CD
|
1 |
mount -V cdrfs -o ro /dev/cd0 /cdrom |
The fileset that the binary is from
|
1 2 3 4 |
lslpp -w /usr/bin/vmstat veya which_fileset ssh lslpp -l |grep ssh |
Installed filesets
|
1 2 |
instfix -i | grep ML instfix -ik IY24043 |
Detailed system information
|
1 2 3 |
lscfg lscfg -p lscfg-v |
Processor count
|
1 |
lscfg | grep proc |
SMT (Simultaneous Multi-Threading)
|
1 2 3 |
smtctl smtctl smtctl –m off « switches off multithreading |
Performance
|
1 2 3 4 5 6 7 |
nmon topas topas -P topas –D topas –F topas –L iostat |
Saving all of the configuration information under /tmp
|
1 |
snap -ac |
Display
If you’ll be performing the installation over a network using a different machine, you’ll want to see what’s happening.
To do this use Display Config
|
1 2 3 4 5 6 7 |
DISPLAY=local_IP:0.0 export DISPLAY xhost + remote_machine_IP (The IP of the machine where the setup screen is going to work) su - oracle DISPLAY=192.168.45.1:0.0 export DISPLAY Note: This sometimes doesn't work, which is why I prefer xmanager |
Some problems that may be encountered
OS Kernel Version – This is a prerequisite condition to test whether the system kernel version is at least “6.1-6100.02.01”.
Expected Value
: 6.1-6100.02.01
Actual Value
: 1 6 oslevel: Error processing cache, return code 215./bin/sh[2]: oslevel:: not found
Details:
–
Kernel of proper version is not found on node “ibmaix6” [Expected = “6.1-6100.02.01” ; Found = “1 6 oslevel: Error processing cache, return code 215./bin/sh[2]: oslevel:: not found”] – Cause: Cause Of Problem Not Available – Action: User Action Not Available
OS Patch:IZ97457 – This is a prerequisite condition to test whether the patch “IZ97457” is available on the system.
Expected Value
: Patch IZ97457
Actual Value
: missing
Details:
–
PRVF-9809 : Proper OS Patch is not found on node “ibmaix6” [Expected = “IZ97457” ; Found = “missing”] – Cause: Required OS Patch is not applied. – Action: Apply the required OS Patch.
We get these errors while installing Oracle, but our current OS level 6100-06-05-1115 already contains these patches.
Resources
http://www.ibm.com/developerworks/aix/library/au-aixservicepacks/#resources
http://www.ibm.com/developerworks/wikis/display/WikiPtype/AIX
http://docs.oracle.com/cd/E11882_01/install.112/e24335.pdf
http://docs.oracle.com/cd/E11882_01/install.112/e24332.pdf
http://www.ibm.com/developerworks/aix/library/au-aix_cmds/index.html?S_TACT=105AGX20&;S_CMP=EDU
http://docs.oracle.com/cd/B16240_01/doc/em.102/e10953/app_platform_pkg_req.htm
http://ramses.smeyers.be/varia/aix/mirrorrootvg/
How to mirror an AIX rootvg
The following steps will guide you trough the mirroring of an AIX rootvg.
This info is valid for AIX 4.3.3, AIX 5.1, AIX 5.2 and AIX 5.3.
Make sure you have an empty disk, in this example its hdisk1
- Add the disk to the vg via “extendvg rootvg hdisk1
- Mirror the vg via: “mirrorvg rootvg”
- Adapt the bootlist to add the current disk, the system will then fall to hdisk1 if hdisk0 fails during startup
- do bootlist -o -m normal , this will list currently 1 disk, in this exaple hdisk0
- do bootlist -m normal hdisk0 hdisk1
- Run a bosboot on both new disks, this will install all software needed for boot on the disk:
a. bosboot -ad hdisk0
b. bosboot -ad hdisk1
—————————————————————————————————————–
http://publib.boulder.ibm.com/infocenter/aix/v6r1/index.jsp
http://publib.boulder.ibm.com/infocenter/aix/v7r1/index.jsp
—————————————————————————————————————–
————————————————————————————————————–
http://publib.boulder.ibm.com/infocenter/powersys/v3r1m5/index.jsp?topic=/p7hcd/fc2053.htm
http://publib.boulder.ibm.com/infocenter/powersys/v3r1m5/index.jsp?topic=/p7hcd/fc2053.htm
AIX Best Practices
An explanation of the best practices after installing AIX can be found in the following link. It includes what the applicable practices are, why they are so and how to apply them.
http://www.ibm.com/developerworks/wikis/display/WikiPtype/AIXV53AdminBestPractice
– This page contains useful commands: http://www.ibm.com/developerworks/aix/library/au-dutta_cmds.html
– With every installation try to get the latest patches, but before applying the patches check online to see if any there have been any problems with them.
Hands-On tips
1. Adjusting the Paging Space
The suggested size of the paging space hd6 can be determined by the amount of RAM on the system and by using the following table.
Please note that these values are only an initial suggestion for the paging space size with the default system settings, you may be required to resize when necessary.
| RAM (GB) | Paging Space Size |
| 1 to 32GB | 1/2 of total RAM (512MB to 16GB) |
| 32 to 64GB | 1/4 of total RAM (8 to 16GB) |
| 64 to 128GB | 1/8 of total RAM (8 to 16GB) |
2. Increase the size of the Oracle fs. (for example: chfs -a size=+2G /var)
3. Arrange the size of the dump device, the sysdumpdev -K command enables sysdump.
4. Install open source programs such as OpenSSL, OpenSSH, BASH, GNU Screen, VNC, LSOF.
5. Before changing any file under /etc, first make a copy using cp -p.
6. Remove the default user limits:
vi /etc/security/limits
fsize=-1
7. If rootvg is the local (internal disk) check the bootlist by mirroring (mirrorvg rootvg).
8. Arrange the SCSI and hdisk attributes.
a) Through vio, do the following in Lpar:
chdev -a hcheck_interval=60 -a hcheck_mode=nonactive -l hdisk0 -P (requires a restart)
chdev -a hcheck_interval=60 -a hcheck_mode=nonactive -l hdisk1;
chdev -l vscsi0 -a vscsi_path_to=30 -a vscsi_err_recov=fast_fail -P (requires a restart)
chdev -l vscsi1 -a vscsi_path_to=30 -a vscsi_err_recov=fast_fail -P (requires a restart)
chpath -l hdisk0 -p vscsi1 -a priority=2 (hdisk0, should go from vscsi0)
chpath -l hdisk1 -p vscsi0 -a priority=2 (hdisk1, goes from hdisk1)
b) Physical SCSI (Fiber Channel)
chdev -l fscsi0 -a fc_err_recov=fast_fail -a dyntrk=yes -P
chdev -l fscsi1 -a fc_err_recov=fast_fail -a dyntrk=yes -P
9. Adjust the TimeZone, enable daylisgt saving, restart and set the datetime.
10. If a dns is present, set the ntp
11. Add a PS1 to /etc/profile
vi /etc/profile;
PS1=”$LOGNAME@$(hostname):\$PWD> ”
set -o vi
This is a list of the best practices for the time being.
– Information regarding the RAID levels that SAS cards support is available at the link below. This link applies to P710/730 servers.
For configuration information regarding other machines please check the relevant documentation.
http://publib.boulder.ibm.com/infocenter/powersys/v3r1m5/index.jsp?topic=/p7hcd/fc2053.htm
– NIM (Network Installation Management) has a Linux version called NIMOL (Network Installation Management on Linux).
This is a guide on installing and configuring:
http://www.ibm.com/developerworks/aix/library/au-install-aix.html#instlinim
– To increase bandwidth















