1、 8:openmotif21 # 100%rootdemo rpm45# lltotal 4016-rw-r-r- 1 root root 117242 Jul 18 15:18 glib-devel-1.2.10-15.i386.rpm-rw-r-r- 1 root root 1167196 Jul 18 15:18 gnome-libs-devel-1.4.1.2.90-44.1.i386.rpm-rw-r-r- 1 root root 1133114 Jul 18 15:18 gtk+-devel-1.2.10-36.i386.rpm-rw-r-r- 1 root root 240960
2、 Jul 18 15:18 imlib-devel-1.9.13-23.i386.rpmdrwxr-xr-x 2 root root 4096 Jul 18 15:33 installed-rw-r-r- 1 root root 18712 Jul 18 15:19 libaio-0.3.105-2.i386.rpm-rw-r-r- 1 root root 10181 Jul 18 15:19 libaio-devel-0.3.105-2.i386.rpm-rw-r-r- 1 root root 1014952 Jul 18 15:19 openmotif21-2.1.30-11.RHEL4.
3、6.i386.rpm-rw-r-r- 1 root root 372037 Jul 18 15:19 ORBit-devel-0.5.17-14.i386.rpmrootdemo rpm45# cd .rootdemo # rootdemo # lltotal 2965500-rw-r-r- 1 root root 1204 Jul 16 22:17 anaconda-ks.cfg-rw-r-r- 1 root root 4058 Jul 18 15:26 compat-libcwait-2.1-1.i386.rpm-rw-r-r- 1 root root 3692 Jul 18 15:26
4、compat-oracle-rhel4-1.0-5.i386.rpmdrwxr-xr-x 2 root root 4096 Jul 17 07:50 Desktop-rw-r-r- 1 root root 58711 Jul 16 22:17 install.log-rw-r-r- 1 root root 32424 Jul 16 22:17 install.log.syslogdrwxr-xr-x 3 root root 4096 Jul 18 15:33 rpm45-rw-r-r- 1 root root 538906295 Jul 17 12:18 ship_9204_linux_dis
5、k1.cpio.gz-rw-r-r- 1 root root 632756922 Jul 17 13:04 ship_9204_linux_disk2.cpio.gz-rw-r-r- 1 root root 296127243 Jul 17 14:39 ship_9204_linux_disk3.cpio.gz-rw-r-r- 1 root root 1565759107 Jul 18 02:24 T7333-15006_3.ziprootdemo # rpm -ivh *.rpm *安装oracle所需的两个rpm包compat-oracle-rhel4 # 50%compat-libcwa
6、it # 100%rootdemo # groupadd oinstall *创建oinstall组rootdemo # groupadd dba *创建dba组rootdemo # cd /rootdemo /# rootdemo /# mkdir u01 *创建u01目录 rootdemo /# cd u01/ rootdemo u01# rootdemo u01# mkdir oracle *创建oracle目录rootdemo u01# lltotal 438 oraclerootdemo u01# useradd -g oinstall -G dba -d /u01/oracle o
7、racle *创建oracle用户39 oraclerootdemo u01# cd oracle/rootdemo oracle# lltotal 0rootdemo oracle# rootdemo oracle# passwd oracle *设置oracle用户密码Changing password for user oracle.New UNIX password: BAD PASSWORD: it is based on a dictionary wordRetype new UNIX password:passwd: all authentication tokens updat
8、ed successfully.rootdemo oracle# cd /rootoracle9i /# chown -R oracle:oinstall u01 *修改u01用户组rootoracle9i /# rootoracle9i /# lltotal 172drwxr-xr-x 2 root root 4096 Jul 19 12:27 bindrwxr-xr-x 3 root root 4096 Jul 19 12:17 bootdrwxr-xr-x 9 root root 6640 Jul 19 17:04 devdrwxr-xr-x 89 root root 12288 Jul
9、 19 17:04 etcdrwxr-xr-x 2 root root 4096 Feb 22 2005 homedrwxr-xr-x 2 root root 4096 Feb 22 2005 initrddrwxr-xr-x 12 root root 4096 Jul 19 16:34 libdrwx- 2 root root 16384 Jul 19 2010 lost+founddrwxr-xr-x 4 root root 4096 Jul 19 17:04 mediadrwxr-xr-x 2 root root 4096 Jul 26 2008 miscdrwxr-xr-x 2 roo
10、t root 4096 Feb 22 2005 mntdrwxr-xr-x 2 root root 4096 Feb 22 2005 optdr-xr-xr-x 75 root root 0 Jul 20 2010 procdrwxr-x- 15 root root 4096 Jul 19 16:53 rootdrwxr-xr-x 2 root root 12288 Jul 19 12:27 sbin15 selinuxdrwxr-xr-x 2 root root 4096 Feb 22 2005 srvdrwxr-xr-x 9 root root 0 Jul 20 2010 sysdrwxr
11、wxrwt 8 root root 4096 Jul 19 17:07 tmpdrwxr-xr-x 3 oracle oinstall 4096 Jul 19 16:35 u01drwxr-xr-x 14 root root 4096 Jul 19 12:16 usrdrwxr-xr-x 20 root root 4096 Jul 19 12:27 var rootdemo /# rootdemo /# su - oracle oracledemo $ oracledemo $ ls -altotal 36drwxr-xr-x 3 oracle oinstall 4096 Jul 18 15:
12、39 .38 .-rw-r-r- 1 oracle oinstall 24 Jul 18 15:39 .bash_logout-rw-r-r- 1 oracle oinstall 191 Jul 18 15:39 .bash_profile-rw-r-r- 1 oracle oinstall 124 Jul 18 15:39 .bashrc-rw-r-r- 1 oracle oinstall 383 Jul 18 15:39 .emacs-rw-r-r- 1 oracle oinstall 120 Jul 18 15:39 .gtkrc39 .kde-rw-r-r- 1 oracle oins
13、tall 658 Jul 18 15:39 .zshrcoracledemo $ oracledemo $ vi .bash_profile *设置环境变量# .bash_profile# Get the aliases and functionsif -f /.bashrc ; then . /.bashrcfi# User specific environment and startup programsPATH=$PATH:$HOME/binexport PATHunset USERNAMEORACLE_SID=StevenORACLE_BASE=/u01ORACLE_HOME=/u01
14、/oraclePATH=$ORACLE_HOME/bin:$PATHLD_ASSUME_KERNEL=2.4.19LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATHexport ORACLE_SID ORACLE_BASE ORACLE_HOME PATH LD_ASSUME_KERNEL LD_LIBRARY_PATHstty erase hDISPLAY=192.168.10.37:0; export DISPLAY.bash_profile 26L, 490C written oracledemo $ exitlogoutoracledem
15、o $ env |grep ora *查看环境变量是否设置成功USER=oracleLD_LIBRARY_PATH=/u01/oracle/lib:MAIL=/var/spool/mail/oraclePATH=/u01/oracle/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/u01/oracle/binPWD=/u01/oracleHOME=/u01/oracleLOGNAME=oracleoracledemo $rootdemo # vi /etc/sysctl.conf *设置Kernel参数#
16、Kernel sysctl configuration file for Red Hat Linux# For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and# sysctl.conf(5) for more details.# Controls IP packet forwardingnet.ipv4.ip_forward = 0# Controls source route verificationnet.ipv4.conf.default.rp_filter = 1# Do not accept source r
17、outingnet.ipv4.conf.default.accept_source_route = 0# Controls the System Request debugging functionality of the kernelkernel.sysrq = 0# Controls whether core dumps will append the PID to the core filename.# Useful for debugging multi-threaded applications.kernel.core_uses_pid = 1kernel.shmall = 2097
18、152kernel.shmmax = 2147483648kernel.shmmni = 4096kernel.sem = 250 32000 100 128fs.file-max = 65536net.ipv4.ip_local_port_range = 1024 65000/etc/sysctl.conf 28L, 771C written rootdemo # sysctl p *使参数生效rootdemo #rootdemo # gzip -d ship_9204_linux_disk1.cpio.gz *解压oracle安装文件rootdemo # gzip -d ship_9204
19、_linux_disk2.cpio.gz rootdemo # gzip -d ship_9204_linux_disk3.cpio.gz total 3100816-rw-r-r- 1 root root 659577856 Jul 17 12:18 ship_9204_linux_disk1.cpio-rw-r-r- 1 root root 646914048 Jul 17 13:04 ship_9204_linux_disk2.cpio-rw-r-r- 1 root root 299722752 Jul 17 14:39 ship_9204_linux_disk3.cpiorootdemo
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1