Install Oracle 11gr2 in Linux 7 x Step by step by Le Anh


Install Oracle 11g in Linux 7.x Step by step by Le Anh Step 1: download oracle 11g in oracle website p10404530_112030_Linux-x86-64_1of7.zip p10404530_112030_Linux-x86-64_2of7.zip Step 2: configuring hostname hostnamectl set-hostname cdrraw Step 3: add in hosts file vi etchosts add the following lines 192.168.40.197 cdrraw cdrraw is hostname and 192.168.40.197 is ip address Verify your network settings ping -c 1 cdrraw Step 4: disable secure linux by editing the etcselinuxconfig file vi etcselinuxconfig SELINUXpermissive Note: Reboot Step 5: create group and user install oracle usrsbingroupadd -g 501 oinstall usrsbingroupadd -g 502 dba usrsbingroupadd -g 503 oper usrsbinuseradd -u 502 -g oinstall -G dbaoper oracle passwd oracle Step 6: create folder install oracle mkdir -p u01apporacleproduct11.2.0db_1 mkdir -p u01setup chown -R oracle:oinstall u01 chmod -R 775 u01 Step 7: Set parameter vi etcsysctl.conf add the following lines kernel.shmmni 4096 kernel.shmmax 4398046511104 kernel.shmall 1073741824 kernel.sem 250 32000 100 128 fs.aio-max-nr 1048576 fs.file-max 6815744 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 sbinsysctl -p vi etcsecuritylimits.conf add the following lines oracle soft nofile 1024 oracle hard nofile 65536 oracle soft nproc 16384 oracle hard nproc 16384 oracle soft stack 10240 oracle hard stack 32768 vi etcpam.dlogin session required pam_limits.so Step 8: Install the following packages if they are not already present. Check which packages are installed and which are missing rpm -q --qf NAME-VERSION-RELEASEARCHn binutils elfutils-libelf elfutils-libelf-devel gcc gcc-c glibc glibc-common glibc-devel glibc-headers ksh libaio libaio-devel libgcc libstdc libstdc-devel make sysstat unixODBC unixODBC-devel yum install binutils -y yum install compat-libcap1 -y yum install compat-libstdc-33 -y yum install compat-libstdc-33.i686 -y yum install gcc -y yum install gcc-c -y yum install glibc -y yum install glibc.i686 -y yum install glibc-devel -y yum install glibc-devel.i686 -y yum install ksh -y yum install libgcc -y yum install libgcc.i686 -y yum install libstdc -y yum install libstdc.i686 -y yum install libstdc-devel -y yum install libstdc-devel.i686 -y yum install libaio -y yum install libaio.i686 -y yum install libaio-devel -y yum install libaio-devel.i686 -y yum install libXext -y yum install libXext.i686 -y yum install libXtst -y yum install libXtst.i686 -y yum install libX11 -y yum install libX11.i686 -y yum install libXau -y yum install libXau.i686 -y yum install libxcb -y yum install libxcb.i686 -y yum install libXi -y yum install libXi.i686 -y yum install make -y yum install sysstat -y yum install unixODBC -y yum install unixODBC-devel -y now i installed all packages Step 9: Set environmental variable for user ORACLE su - oracle cd vi .bash_profile add the following lines Oracle Settings TMPtmp export TMP TMPDIRTMP export TMPDIR export ORACLE_HOSTNAMEcdrraw export ORACLE_UNQNAMEcdrraw ORACLE_BASEu01apporacle export ORACLE_BASE ORACLE_HOMEORACLE_BASEproduct11.2.0db_1 export ORACLE_HOME ORACLE_SIDcdrraw export ORACLE_SID PATHusrsbin:PATH export PATH PATHORACLE_HOMEbin:PATH export PATH LD_LIBRARY_PATHORACLE_HOMElib:lib:usrlib export LD_LIBRARY_PATH CLASSPATHORACLE_HOMEJRE:ORACLE_HOMEjlib:ORACLE_HOMErdbmsjlib export CLASSPATH if USER oracle then if SHELL binksh then ulimit -p 16384 ulimit -n 65536 else ulimit -u 16384 -n 65536 fi fi Step 10: Upload files to server using user Oracle u01setup Step 11: Unzip files unzip p10404530_112030_Linux-x86-64_1of7.zip unzip p10404530_112030_Linux-x86-64_2of7.zip Step 12: Install oracle DB xhost cd u01setupdatabase .runInstaller To fix this error edit ORACLE_HOMEsysmanlibins_emagent.mk search for the line MK_EMAGENT_NMECTL and replace the line with MK_EMAGENT_NMECTL -lnnz11 then click Retry button Execute Configurtation Scripts u01apporaInventoryorainstRoot.sh u01apporacleproduct11.2.0db_1root.sh Create listener and file tnsname netca vi u01apporacleproduct11.2.0db_1networkadmintnsnames.ora CDRRAW DESCRIPTION ADDRESS PROTOCOL TCPHOST cdrrawPORT 1521 CONNECT_DATA SERVER SHARED DEDICATED SERVICE_NAME cdrraw now install ORACLE DATABSE using DBCA dbca Thanks

Источник: rutube.ru

Сообщение от Commenton: Необходимо стартовать сессию