difing the /etc/security/limits.conf has been succeed."
#Usage:Log on as the superuser('root'),and then execute the command:#./4presysctl.sh
#Author:ding liqing
echo "Now modify the /etc/sysctl.conf,but with a backup named /etc/sysctl.bak"
cp /etc/sysctl.conf /etc/sysctl.conf.bak
?
echo "fs.aio-max-nr = 1048576" >> /etc/sysctl.conf
echo "fs.file-max = 6815744" >> /etc/sysctl.conf
echo "kernel.shmall = 2097152" >> /etc/sysctl.conf
echo "kernel.shmmax = 1054472192" >> /etc/sysctl.conf
echo "kernel.shmmni = 4096" >> /etc/sysctl.conf
echo "kernel.sem = 250 32000 100 128" >> /etc/sysctl.conf
echo "net.ipv4.ip_local_port_range = 9000 65500" >> /etc/sysctl.conf
echo "net.core.rmem_default = 262144" >> /etc/sysctl.conf
echo "net.core.rmem_max = 4194304" >> /etc/sysctl.conf
echo "net.core.wmem_default = 262144" >> /etc/sysctl.conf
echo "net.core.wmem_max = 1048586" >> /etc/sysctl.conf
echo "net.ipv4.tcp_wmem = 262144 262144 262144" >> /etc/sysctl.conf
echo "net.ipv4.tcp_rmem = 4194304 4194304 4194304" >> /etc/sysctl.conf
?
echo "Modifing the /etc/sysctl.conf has been succeed."
echo "Now make the changes take effect....."
sysctl -p
3. 将A机器上的zip包copy到B机器上
[root@localhost inst_env_scripts]# scp 192.168.199.163:/home/oracle/db_1.zip /home/oracle/
The authenticity of host '192.168.199.163 (192.168.199.163)' can't be established.
RSA key fingerprint is cc:d0:c3:de:37:33:a7:cb:91:40:c5:5f:18:07:06:9f.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.199.163' (RSA) to the list of known hosts.
root@192.168.199.163's password:
db_1.zip? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 100% 2366MB? 30.0MB/s? 01:19
4. 解压zip文件
[root@localhost oracle]# unzip -d / db_1.zip
[root@localhost oracle]# chown -R oracle.oinstall /u01/
5.执行Clone命令
[oracle@localhost ~]$ cd /u01/app/oracle/product/11.2.0/db_1/clone/bin/
[oracle@localhost bin]$ $ORACLE_HOME/perl/bin/perl clone.pl ORACLE_BASE="/u01/app/oracle/" ORACLE_HOME="/u01/app/oracle/product/11.2.0/db_1" OSDBA_GROUP=dba OSOPER_GROUP=oper -defaultHomeName
执行结果如下
./runInstaller -clone -waitForCompletion? "ORACLE_BASE=/u01/app/oracle/" "ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1" "oracle_install_OSDBA=dba" "oracle_install_OSOPER=oper" -defaultHomeName? -defaultHomeName -silent -noConfig -nowait
Starting Oracle Universal Installer...
?
Checking swap space: must be greater than 500 MB.? Actual 1999 MB? ? Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2015-08-22_05-13-13AM. Please wait ...Oracle Universal Installer, Version 11.2.0.4.0 Production
Copyright (C) 1999, 2013, Oracle. All rights reserved.
?
You can find the log of this install session at:
?/u01/app/oraInventory/logs/cloneActions2015-08-22_05-13-13AM.log
.................................................................................................... 100% Done.
?
?
?
Installation in progress (Saturday, August 22, 2015 5:13:31 AM CST)
..............................................................................? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 78% Done.
Install successful
?
Linking in progress (Saturday, August 22, 2015 5:13:38 AM CST)
Link successful
?
Setup in progress (Saturday, August 22, 2015 5:13:41 AM CST)
Setup successful
?
End of install phases.(Saturday, August 22, 2015 5:14:06 AM CST)
WARNI