它山之石

route -n

rpm -ivh rdac-LINUX-09.03.0C05.0652-source.tar.gz

rpm -q --qf '%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n' binutils-2.17.50.0.6 compat-libstdc++-33-3.2.3 compat-libstdc++-33-3.2.3 elfutils-libelf elfutils-libelf-devel gcc-4.1.2 gcc-c++-4.1.2 glibc glibc glibc-common-2.5 glibc-devel-2.5 glibc-devel-2.5 glibc-headers-2.5 ksh libaio-0.3.106 libaio-0.3.106 libaio-devel-0.3.106 libaio-devel-0.3.106 libgcc-4.1.2 libgcc-4.1.2 libstdc++-4.1.2 libstdc++-4.1.2 libstdc++-devel make-3.81 sysstat-7.0.2 unixODBC-2.2.11 unixODBC-2.2.11 unixODBC-devel-2.2.11 unixODBC-devel-2.2.11


rpm -q --qf '%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n' binutils compat-libstdc++-33 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






cp /etc/ntp.conf/etc/ntp.conf.bak
vi /etc/ntp.conf
chkconfig --list ntpd
chkconfig ntpd on
service ntpd start
/usr/sbin/ntpdate 10.126.36.16>>/tmp/ntpdate_sync.out
service ntpd stop
/usr/sbin/ntpdate 10.126.36.16>>/tmp/ntpdate_sync.out
vi /boot/grub/menu.lst



vi /etc/sysctl.conf
sysctl -p
vi /etc/security/limits.conf
vi /etc/pam.d/login


groupadd -g 501 oinstall
groupadd -g 502 dba
groupadd -g 504 asmadmin
groupadd -g 506 asmdba
groupadd -g 507 asmoper
useradd -u 501 -g oinstall -G asmadmin,asmdba,asmoper grid
useradd -u 502 -g oinstall -G dba,asmdba oracle
passwd grid






cd /etc/yum.repos.d/
vi server.repo
createrepo /mnt
yum clean all
yum grouplist

vncserver
vncserver -kill :1
vi /root/.vnc/xstartup
vncserver
ifconfig -a
chown -R grid:oinstall /u01/app/oraInventory
mkdir -p /u01/app/oraInventory
hown -R grid:oinstall /u01/app/oraInventory
chmod -R 775 /u01/app/oraInventory
mkdir -p /u01/11.2.0/grid
df -h
chown -R grid:oinstall /u01/11.2.0/grid
chmod -R 775 /u01/11.2.0/grid
mkdir -p /u01/app/oracle
mkdir /u01/app/oracle/cfgtoollogs
chown -R oracle:oinstall /u01/app/oracle
chmod -R 775 /u01/app/oracle

mkdir -p /u01/app/oracle/product/11.2.0/db_1
chown -R oracle:oinstall /u01/app/oracle/product/11.2.0/db_1
chmod -R 775 /u01/app/oracle/product/11.2.0/db_1
mkdir -p /u01/app/oracle
mkdir /u01/app/oracle/cfgtoollogs
chown -R oracle:oinstall /u01/app/oracle
chmod -R 775 /u01/app/oracle

mkdir -p /u01/app/grid
mkdir -p /u01/app/11.2.0/grid
chown -R grid:oinstall /u01
mkdir -p /u01/app/oracle
chown oracle:oinstall /u01/app/oracle
chmod -R 775 /u01

su - oracle
su - grid

mv /usr/bin/nslookup/usr/bin/nslookup.original
df -h
free -m
vi /usr/bin/nslookup
hostname
cat /etc/hosts
chmod 755 /usr/bin/nslookup
nslookup

mv p10404530_112030_Linux-x86-64_1of7\(1\).zip p10404530_112030_Linux-x86-64_1of7.zip
df -h
mv p10404530_112030_Linux-x86-64_1of7.zip /home/grid/
cd /home/
cd grid/
chown grid:oinstall p10404530_112030_Linux-x86-64_1of7.zip

CVUQDISK_GRP=oinstall; export CVUQDISK_GRP
CVUQDISK_GRP=oinstall; export CVUQDISK_GRP
rpm -ivh cvuqdisk-1.0.9-1.rpm 

你可能感兴趣的:(它山之石)