- Source:
http://www.oracle.com/webfolder/technetwork/tutorials/obe/em/emgc1110/installemgc11101linux/emgc11101install.htm?print=preview&imgs=visible
http://www.gokhanatil.com/2011/07/how-to-install-oracle-grid-control-11g-step-by-step-guide.html
http://www.oracle-base.com/articles/11g/grid-control-11gr1-installation-on-oracle-linux-5.php#db_installation
- Software
### Red Hat Enterprise Linux 5 and CentOS 5 Installationhttp://www.oracle.com/webfolder/technetwork/tutorials/obe/em/emgc1110/installemgc11101linux/emgc11101install.htm?print=preview&imgs=visible
http://www.gokhanatil.com/2011/07/how-to-install-oracle-grid-control-11g-step-by-step-guide.html
http://www.oracle-base.com/articles/11g/grid-control-11gr1-installation-on-oracle-linux-5.php#db_installation
- Software
Enterprise-R5-U5-Server-i386-dvd.iso jdk-6u18-linux-i586-rpm.bin linux_11gR2_database_1of2.zip linux_11gR2_database_2of2.zip wls1032_linux32.bin GridControl_11.1.0.1.0_Linux_1of3.zip GridControl_11.1.0.1.0_Linux_2of3.zip GridControl_11.1.0.1.0_Linux_3of3.zip
http://www.oracle-base.com/articles/linux/rhel-5-installation.php
### Database Installation
Oracle Database 11g Release 2 (11.2) Installation On Oracle Linux 5
http://www.oracle-base.com/articles/11g/grid-control-11gr1-installation-on-oracle-linux-5.php#db_installation
- Set Hostname & IP Address for Virtual Machine
[root@em111srv7 ~]# vim /etc/hosts 10.0.5.7 em111srv7.localdomain em111srv7 :wq [root@em111srv7 ~]# vim /etc/sysconfig/network HOSTNAME=em111srv7.localdomain :wq
[root@em111srv7 ~]# vim /etc/redhat-release redhat-4 :wq
[root@em111srv7 ~]# hostname em111srv7.localdomain
[root@em111srv7 ~]# /etc/init.d/network restart
- Creating Required Operating System Groups and Users
# /usr/sbin/groupadd -g 501 oinstall # /usr/sbin/groupadd -g 502 dba # /usr/sbin/groupadd -g 503 oper # /usr/sbin/useradd -u 502 -g oinstall -G dba,oper oracle # passwd oracle
- Creating Required Directories
# mkdir -p /u01/app/oracle/product/11.2.0/db_1 # mkdir -p /u01/app/oracle/Middleware/oms11g # mkdir -p /u01/app/oracle/Middleware/agent11g # chown -R oracle:oinstall /u01 # chmod -R 775 /u01
- Create .bash_profile for user oracle
[root@em111srv7 ~]# vim /home/oracle/.bash_profile # Oracle Settings
export ORACLE_UNQNAME=em11db
export ORACLE_SID=em11db
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1
export OMS_HOME=/u01/app/oracle/Middleware/oms11g
export AGENT_HOME=/u01/app/oracle/Middleware/agent11g
export PATH=/usr/sbin:$PATH:$ORACLE_HOME/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib;
export CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib;
[root@em111srv7 ~]# source /home/oracle/.bash_profile
- Change kernel parameters to /etc/sysctl.conf
[root@em111srv7 ~]# vim /etc/sysctl.conf # kernel parameters for 11g installation fs.suid_dumpable = 1 fs.aio-max-nr = 1048576 fs.file-max = 6815744 kernel.shmall = 2097152 kernel.shmmax = 536870912 kernel.shmmni = 4096 # semaphores: semmsl, semmns, semopm, semmni kernel.sem = 250 32000 100 128 net.ipv4.ip_local_port_range = 9000 65500 net.core.rmem_default=262144 net.core.rmem_max=4194304 net.core.wmem_default=262144 net.core.wmem_max=1048586 [root@em111srv7 ~]# /sbin/sysctl -p
- Set shell limits in file /etc/security/limits.conf
[root@em111srv7 ~]# vim /etc/security/limits.conf oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 4096 oracle hard nofile 65536 oracle soft stack 10240
- Packages Enterprise Linux 5 from DVD
# From Oracle Linux 5 DVD cd /media/cdrom/Server rpm -Uvh binutils-2.* rpm -Uvh compat-libstdc++-33* rpm -Uvh compat-libstdc++-33*.i386.rpm rpm -Uvh elfutils-libelf* rpm -Uvh gcc-4.* rpm -Uvh gcc-c++-4.* rpm -Uvh glibc-2.* rpm -Uvh glibc-common-2.* rpm -Uvh glibc-devel-2.* rpm -Uvh glibc-headers-2.* rpm -Uvh ksh* rpm -Uvh libaio-0.* rpm -Uvh libaio-devel-0.* rpm -Uvh libgomp-4.* rpm -Uvh libgcc-4.* rpm -Uvh libstdc++-4.* rpm -Uvh libstdc++-devel-4.* rpm -Uvh make-3.* rpm -Uvh sysstat-7.* rpm -Uvh unixODBC-2.* rpm -Uvh unixODBC-devel-2.* rpm -Uvh numactl-devel-* rpm -Uvh compat-db-4* rpm -Uvh compat-libstdc++-296* rpm -Uvh rng-utils-2* rpm -Uvh setarch-2* cd / eject
- Disable SELinux & Firewall and reboot server
[root@em111srv7 ~]# vim /etc/selinux/config SELINUX=disabled [root@em111srv7 ~]# setup
- Copy all Software files to Virtual Machine
[oracle@rhel7 GridControl_11]$ # Physical Machine
[oracle@rhel7 GridControl_11]$ ll total 10000120 -rw-------. 1 oracle oracle 1346829079 Oct 3 01:50 GridControl_11.1.0.1.0_Linux_1of3.zip -rw-------. 1 oracle oracle 1504566656 Oct 3 04:08 GridControl_11.1.0.1.0_Linux_2of3.zip -rw-------. 1 oracle oracle 1336577721 Oct 3 02:59 GridControl_11.1.0.1.0_Linux_3of3.zip -rw-------. 1 oracle oracle 80314190 Oct 8 21:13 jdk-6u18-linux-i586-rpm.bin -rw-------. 1 oracle oracle 1285396902 Aug 19 2009 linux_11gR2_database_1of2.zip -rw-------. 1 oracle oracle 995359177 Aug 19 2009 linux_11gR2_database_2of2.zip -rwxr-xr-x. 1 oracle oracle 633454825 Oct 21 2009 wls1032_linux32.bin [oracle@rhel7 GridControl_11]$ # copy all software at once to Virtual Machine [oracle@rhel7 GridControl_11]$ du -chs 9.6G . 9.6G total [oracle@rhel7 GridControl_11]$ scp -v -r ./* oracle@10.0.5.7:/tmp/
oracle@10.0.5.7's password:
- Start Database Software & Instance installation
[oracle@em111srv7 ~]$ cd /tmp/ [oracle@em111srv7 tmp]$ unzip linux_11gR2_database_1of2.zip [oracle@em111srv7 tmp]$ unzip linux_11gR2_database_2of2.zip [oracle@em111srv7 ~]$ cd /tmp/database/ [oracle@em111srv7 database]$ ./runInstaller
[root@em111srv7 ~]# /u01/app/oraInventory/orainstRoot.sh [root@em111srv7 ~]# /u01/app/oracle/product/11.2.0/db_1/root.sh
- Drop Enterprise Manager Database Control repository
[oracle@em111srv7 ~]$ emctl stop dbconsole [oracle@em111srv7 ~]$ emca -deconfig dbcontrol db -repos drop -SYS_PWD oracle -SYSMAN_PWD oracle Enter the following information: Database SID: em11db Listener port number: 1521 Password for SYS user: Password for SYSMAN user: Do you wish to continue? [yes(Y)/no(N)]: yes
- Change database initialization parameter:
[oracle@em111srv7 ~]$ sqlplus / as sysdba SQL> ALTER SYSTEM SET log_buffer=10485760 SCOPE=SPFILE; System altered. SQL> ALTER SYSTEM SET processes=500 SCOPE=SPFILE; System altered. SQL> ALTER SYSTEM SET session_cached_cursors=200 SCOPE=SPFILE; System altered. SQL> SELECT name FROM v$datafile; NAME -------------------------------------------------------------------------------- /u01/app/oracle/oradata/em11db/system01.dbf /u01/app/oracle/oradata/em11db/sysaux01.dbf /u01/app/oracle/oradata/em11db/undotbs01.dbf /u01/app/oracle/oradata/em11db/users01.dbf /u01/app/oracle/oradata/em11db/example01.dbf SQL> ALTER DATABASE DATAFILE '/u01/app/oracle/oradata/em11db/undotbs01.dbf' RESIZE 200M; Database altered.
SQL> shutdown immediateSQL> startup
[root@em111srv7 ~]# cd /tmp/ [root@em111srv7 tmp]# chmod +x jdk-6u18-linux-i586-rpm.bin [root@em111srv7 tmp]# ./jdk-6u18-linux-i586-rpm.bin q yes
### Install Oracle WebLogic Server
[oracle@em111srv7 ~]$ cd /tmp/ [oracle@em111srv7 tmp]$ chmod +x wls1032_linux32.bin [oracle@em111srv7 tmp]$ ./wls1032_linux32.bin
### Grid Control Installation
[oracle@em111srv7 ~]$ cd /tmp/
[oracle@em111srv7 ~]$ mkdir em111[oracle@em111srv7 tmp]$ unzip -d em111 GridControl_11.1.0.1.0_Linux_1of3.zip [oracle@em111srv7 tmp]$ unzip -d em111 GridControl_11.1.0.1.0_Linux_2of3.zip [oracle@em111srv7 tmp]$ unzip -d em111 GridControl_11.1.0.1.0_Linux_3of3.zip [oracle@em111srv7 tmp]$ cd /tmp/em111/ [oracle@em111srv7 em111]$ ./runInstaller
No comments:
Post a Comment