Install Oracle

download Install Oracle

If you can't read please download the document

description

install oracle

Transcript of Install Oracle

-------------- step 1 ----------------Download SoftwareDownload the following software.Download the Oracle software from OTN or MOS depending on your support status.OTN: Oracle Database 11g Release 2 (11.2.0.1) Software (64-bit)MOS: Oracle Database 11g Release 2 (11.2.0.2 or 11.2.0.3) Software (64-bit)-------------- step 2 ----------------Unzip the files.# 11.2.0.1unzip linux.x64_11gR2_database_1of2.zipunzip linux.x64_11gR2_database_2of2.zip#11.2.0.2unzip p10098816_112020_Linux-x86-64_1of7.zipunzip p10098816_112020_Linux-x86-64_2of7.zip#11.2.0.3unzip p10404530_112030_Linux-x86-64_1of7.zipunzip p10404530_112030_Linux-x86-64_2of7.zipYou should now have a single directory called "database" containing installation files.-------------- step 3 ----------------Hosts FileThe "/etc/hosts" file must contain a fully qualified name for the server. For example.127.0.0.1 localhost.localdomain localhost192.168.2.181 ol5-11gr2.localdomain ol5-11gr2$uname n -- > to check machine name$dnsdomainname -- > to check the localdomain-------------- step 4 ----------------Manual SetupIf you have not used the "oracle-validated" package to perform all prerequisites, you will need to manually perform the following setup tasks.Oracle recommend the following minimum parameter settings.fs.suid_dumpable = 1fs.aio-max-nr = 1048576fs.file-max = 6815744kernel.shmall = 2097152kernel.shmmax = 536870912kernel.shmmni = 4096kernel.sem = 250 32000 100 128net.ipv4.ip_local_port_range = 9000 65500net.core.rmem_default = 262144net.core.rmem_max = 4194304net.core.wmem_default = 262144net.core.wmem_max = 1048586The current values can be tested using the following command./sbin/sysctl -a | grep Add or amend the following lines in the "/etc/sysctl.conf" file.fs.suid_dumpable = 1fs.aio-max-nr = 1048576fs.file-max = 6815744kernel.shmall = 2097152kernel.shmmax = 536870912kernel.shmmni = 4096# semaphores: semmsl, semmns, semopm, semmnikernel.sem = 250 32000 100 128net.ipv4.ip_local_port_range = 9000 65500net.core.rmem_default=4194304net.core.rmem_max=4194304net.core.wmem_default=262144net.core.wmem_max=1048586Run the following command to change the current kernel parameters./sbin/sysctl -p or sysctl -p -------------- step 5 ----------------Add the following lines to the "/etc/security/limits.conf" file.oracle soft nproc 2047oracle hard nproc 16384oracle soft nofile 4096oracle hard nofile 65536oracle soft stack 10240-------------- step 6 ----------------Install the following packages if they are not already present.binutils-2.*compat-libstdc++-33*compat-libstdc++-33*.i386.rpmelfutils-libelf*gcc-4.*gcc-c++-4.*glibc-2.*glibc-common-2.*glibc-devel-2.*glibc-headers-2.*ksh*libaio-0.*libaio-devel-0.*libgomp-4.*libgcc-4.*libstdc++-4.*libstdc++-devel-4.*make-3.*sysstat-7.*unixODBC-2.*unixODBC-devel-2.*numactl-devel-*to download rpm -ivh packagename.rpm -------------- step 7 ----------------Create the new groups and users.$groupadd oinstall$groupadd dba$groupadd oper$groupadd asmadminAdd oracle user and assign oinstall as primary group and others as secondary$useradd -g oinstall -G dba,oper,asmadmin oracle$passwd oracle-------------- step 8 ----------------AdditionalSetupThe following setup tasks must be performed regardless of which setup method you used previously.Disable secure linux by editing the "/etc/selinux/config" file, making sure the SELINUX flag is set as follows.SELINUX=disabled-------------- step 9 ----------------Alternatively, this alteration can be done using the GUI tool (Applications > System Settings > Security Level). Click on the SELinux tab and disable the feature. If SELinux is disabled after installation, the server will need a reboot for the change to take effect.Create the directories in which the Oracle software will be installed.mkdir -p /oracle/product/11.2.0/db_1chown -R oracle:oinstall oracle/chmod -R 775 oracle/Note:/oracle = ORACLE_BASE/oracle/product/11.2.0/db_1 = ORACLE_HOME-------------- step 10 ----------------Login as root and issue the following command.xhost +$uname n -- > to check the machine name-------------- step 11 ----------------Login as the oracle user and add the following lines at the end of the ".bash_profile" file, remembering to adjust them for your specific installation.# Oracle SettingsTMP=/tmp; export TMPTMPDIR=$TMP; export TMPDIRORACLE_HOSTNAME=ol5-112.localdomain; export ORACLE_HOSTNAMEORACLE_UNQNAME=DB11G; export ORACLE_UNQNAMEORACLE_BASE=/u01/app/oracle; export ORACLE_BASEORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1; export ORACLE_HOMEORACLE_SID=test_db; export ORACLE_SIDPATH=/usr/sbin:$PATH; export PATHPATH=$ORACLE_HOME/bin:$PATH; export PATHLD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATHCLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATHrun . . /.bash_profile to restart bash -------------- step 12 ---------------- InstallationLog into the oracle user. If you are using X emulation then set the DISPLAY environmental variable.DISPLAY=:0.0; export DISPLAYStart the Oracle Universal Installer (OUI) by issuing the following command in the database directory../runInstaller-------------- step 13 ----------------execute the script given in the end of installation as root : sh root.sh-------------- step 14 ----------------create database using DBCA cd /oracle/product/11.2.1/db_1cd bin./dbca-------------- step 15 ----------------post installation edit etc/oratab file setting the restart flag for each instance to Y. e.gDBG11G:/u01/oracle/product/11.2.0/db_1:Y -- to make your db up when system boots