Welcome to the Oracle community forum and interact with 2 million technical staff to enter this article? ? Jia? Below? Rong:
Welcome to the Oracle community forum and interact with the 2 million technical support> enter this article? ? Jia? Below? Rong:-Oracle 10g (10.1.0) on Red Hat Enterprise Linux Advanced Server 3 (RHELAS3)-Oracle 10g (10.1.0) on Red Hat Enterprise Linux Advanced Server 2.1 (RHELAS2.1)
Welcome to the Oracle community forum and interact with 2 million technical staff> enter
This article? ? Jia? Below? Rong:
-Oracle 10g (10.1.0) on Red Hat Enterprise Linux Advanced Server 3 (RHELAS3)
-Oracle 10g (10.1.0) on Red Hat Enterprise Linux Advanced Server 2.1 (RHELAS2.1)
-Oracle 10g (10.1.0) on Red Hat 9 (RH9)
-Oracle 10g (10.1.0) on Red Hat Fedora Core 1 (FC1)
? OTN upper and lower? Oracle10g for Linux
Http://otn.oracle.com/software/products/database/oracle10g/index.html
Lower? Is the file ship.db.cpio.gz as follows? Reason:
If you are in windows OS? ? How Can I copy samba functions in linux directly? Ship.db.cpio.gz to your linux project? Bottom.
Do CRC (cyclic redundancy check )? Query:
$ Cksum ship.db.cpio.gz
? Ship.db.cpio.gz is placed under/tmp. How can this problem be solved? Ship.db.cpio.gz
$ Gunzip ship.db.cpio.gz
Get Disk1 ?? ?,? Is the security of oracle10g For Linux? File
==============
Do the following? Query:
$ Grep MemTotal/proc/meminfo
? Is swap empty? ,
$ Grep SwapTotal/proc/meminfo
?? What is the size of your swap ?? About 2 times of storage ,??? Oracle Security? And use well ?, No? When creating? Material ??? Outbound ??, My? Save? 1.5g, my swap ?? 2.9 GB
If you are? Linux ?? First? Yes? Set swap to adequate? Big? As shown below? OK? Line
$ Su-root
# Dd if =/dev/zero of = tmpswap bs = 1 k count = 900000
# Chmod 600 tmpswap
# Mkswap tmpswap
# Swapon tmpswap
========
Ann? Oracle Universal Installer must be at least 400 MB free of space under/tmp ?.
? Check/tmp:
$ Df/tmp
If you are under/tmp? ? Null ?, You can? Points? Medium ?? ? Tmp object ?? Follow these steps:
$ Su-root
# Mkdir/tmp
# Chown root. root // tmp
# Chmod 1777 // tmp
# Export TEMP =/# used by oracle
# Export TMPDIR =/# Used in linux? Application
? Are you safe? Oracle10g ,?? Oracle? Remove ?? Tmp object ?, Follow these steps:
$ Su-root
# Rmdir/tmp
# Unset TEMP
# Unset TMPDIR
=====
? Check the linux server? Package (RPMS), Major? Check? Compat-gcc, compat-libstdc ++, and so on. Why? Under X-WINDOWS? Does ORACLE10g need a window api function? Interface.
? Query linux kernel RPMS
$ Uname? A
? Result ?? The version is 2.4.9 or later.
? Check glibc RPMs
? What are the following requirements for RedHat ELAS 2.1? More
$ Su? Root
# Rpm-Uvh glibc-2.2.4-32.11.i686.rpm glibc-common-2.2.4-32.11.i386.rpm
? Check gcc, make, and binutils RPMs
# Rpm-q gcc make binutils
Check whether the following RPMs are installed? :
-? For RHELAS3 and RHELAS2.1: make-3.79 or later versions
-? For RHELAS3 and RHELAS2.1: binutils-2.11.90.0.8-12 or later
-? For RHELAS3: gcc-3.2.3-2 or later
-? For RHELAS2.1: gcc-2.96-108.1 or later
RHELAS3 series? In, make and binutils RPMs already? Installed ?. However ,? Which of the following RPMs require security ?, Can you log on to RHELAS3? 3rd in the disk? Find? RPMs ,? You can also go down? New Version ??.
$ Su-root
# Rpm-Uvh gcc-3.2.3-20.i386.rpm
Glibc-devel-2.3.2-95.3.i386.rpm
Glibc-headers-2.3.2-95.3.i386.rpm
Glibc-kernheaders-2.4-8.34.i386.rpm
RHELAS2.1 system? In "RedHat 2.1 Advanced Server? If you? Yes? "Software Development ",? No? Ann? RPMs of binutils and gcc ,? ? Oracle Security ?? Does x-windows Require dependency? Run the following command:
$ Su-root
# Rpm-ivh gcc-2.96-108.1.i386.rpm
Binutils-2.11.90.0.8-12.i386.rpm
Cpp-2.96-108.1.i386.rpm
Glibc-devel-2.2.4-32.11.i386.rpm
Kernel-headers-2.4.9-e.3.i386.rpm
RH9 series? , Make RPM already? Installed ?. ? Which of the following packages is required ?,? Note that oracle does not support installing on RH9 ?, You ?? Try to find some combination? The RPM of. Which of the following files must be installed? ? First look for it in your RH9 CD, for example? You can search for it in google.com.
$ Su-root
# Rpm-Uvh gcc-3.2.2-5.i386.rpm
Glibc-devel-2.3.2-5.i386.rpm
Cpp-3.2.2-5.i386.rpm
Glibc-kernheaders-2.4-8.10.i386.rpm
Binutils-2.13.90.0.18-9.i386.rpm
FC1 series? , Make RPM already? Installed ?. ? Are there any of the following packages required ?. What about FC1 ?? RH9? It seems that they are not supported by ORACLE. Are you ?? Try to find some combination? The RPM of. Which of the following files must be installed? ? First look for it in your RH9 CD, for example? You can search for it in google.com.
$ Su-root
# Rpm-Uvh gcc-3.3.2-1.i386.rpm
Glibc-devel-2.3.2-101.i386.rpm
Cpp-3.3.2-1.i386.rpm
Glibc-headers-2.3.2-101.i386.rpm
Glibc-kernheaders-2.4-8.36.i386.rpm
Binutils-2.14.90.0.6-3.i386.rpm
? Check openmotif RPM
$ Rpm-q openmotif (? Put ?? Fund? ? Interface, phase? For linux Directx)
(Which of the following? File? In RH? Search in CD or go to google.com, me ?? Can be found)
RHELAS3, if? Have security? Openmotif ,?? Line
$ Su-root
# Rpm-ivh openmotif-2.2.2-16.i386.rpm (or updated version)
RHELAS2.1, if? Have security? Openmotif ,?? Line
$ Su-root
# Rpm-ivh openmotif-2.1.30-11.i386.rpm
RH9 ,?? Line
$ Su-root
# Rpm-Uvh openmotif-2.2.2-14.i386.rpm
FC1 ,?? Line
$ Su-root
# Rpm-Uvh openmotif-2.2.2-16.1.i386.rpm
? Query setarch RPM
RHELAS3 ,? Run the following command to check whether it is correct? Setarch-1.3-1 RPM or newer version:
# Rpm-q setarch
Is setarch one of RHEL3? New function. It is used to simulate a 3 GB virtual address space to allow such an application to operate normally? There is ??? Row:
$ Su-root
# Rpm-Uvh setarch-1.3-1.i386.rpm
RHELAS2.1 and RH9, without setarch RPM.
? For FC1 ,? However, it cannot be used, too ?? Row:
$ Su-root
# Rpm-Uvh setarch-1.0-1.i386.rpm
? Check redhat-release RPM
Check whether redhat-release RPM is installed? :
$ Rpm-q redhat-release
?? RPM? LINUX in the RHEL series is very important, because? It? For ORACLE Security ???. ? Yes ?? Package, Oracle10g ??? OK? OS is not supported.
-? RHELAS3 ,?? Row (this RPM can be found in RHELAS3 disk 1 ):
$ Su-root
# Rpm-ivh redhat-release-3AS-1.i386.rpm
-? RHELAS2.1 ,?? Row (this RPM can be found in RHELAS3 disk 1 ):
$ Su-root
# Rpm-ivh redhat-release-as-2.1AS-4.noarch.rpm
But? What do you need for RH9 and FC1 ?? /Etc/redhat-release ?? File,
$ Su-root
# Cp/etc/redhat-release/etc/redhat-release.backup
# Cat>/etc/redhat-release <EOF
# Red Hat Enterprise Linux AS release 3 (Taroon)
# EOF
? De'an? What should I do after Oracle10g? Original? File? Rong:
$ Su-root
# Cp/etc/redhat-release.backup/etc/redhat-release
Okay. What are the above ?? Work, me ??? Why? ?! Ann? Before me ?? Yes? Decide? Oracle phase? ? Core ??
First look at all? Core ?? :
$ Su-root
# Sysctl-
Ann ?? The line command is in/tmp/Disk1, me? Do not create? Direct? Line
RunInstaller-ignoreSysPrereqs
? Oracle 10 Gb, required? OK? Below ?? Value, OK? To be bigger? Value:
Check? If yes? Right? ? Medium? Capacity
Shmmax = 2147483648 (cat/proc/sys/kernel/shmmax)
This means that the system's shared memory reaches 4 GB, which is not suitable. Generally, the SHMMAX setting can be slightly greater than the local memory configuration.
As a matter of fact, the default RedHat 6.0 core running Oracle 8.0.5 is no problem. Generally, these parameters cannot be adjusted.
If adjustments are required, rebuild the core as required by the document and use the lilo command to specify the new core for guidance.
Shmmni = 4096 (cat/proc/sys/kernel/shmmni)
Shmall = 2097152 (cat/proc/sys/kernel/shmall)
Shmmin = 1 (ipcs-lm | grep "min seg size ")
Shmseg = 10 (hardened ?? In kernel, the default value is higher)
Semmsl = 250 (cat/proc/sys/kernel/sem | awk '{print $1 }')
Semmns = 32000 (cat/proc/sys/kernel/sem | awk '{print $2 }')
Semopm = 100 (cat/proc/sys/kernel/sem | awk '{print $3 }')
Semmni = 128 (cat/proc/sys/kernel/sem | awk '{print $4 }')
File-max = 65536 (cat/proc/sys/fs/file-max)
Ip_local_port_range = 1024 65000
(Cat/proc/sys/net/ipv4/ip_local_port_range)
NOTE: Do not change the value of any kernel parameter on a system where it is already higher than listed as minimum requirement.
On RHELAS3, RHELAS2.1, RH9, and on FC1 I had to increase the kernel parameters shmmax, semopm, and filemax to meet the minimum requirement.
Oracle also recommends to set the local port range ip_local_port_range for outgoing messages to "1024 65000" which is needed for high-usage systems. this kernel parameter defines the local port range for TCP and UDP traffic to choose from.
I added the following lines to the/etc/sysctl. conf file which is used during the boot process:
Kernel. shmmax = 2147483648
Kernel. sem = 250 32000 100 128
Fs. file-max = 65536
Net. ipv4.ip _ local_port_range = 1024 65000
Adding these lines to the/etc/sysctl. conf file will cause the system to change these kernel parameters after each boot using the/etc/rc. d/rc. sysinit script which is invoked by/etc/inittab. but in order that these new added lines or settings in/etc/sysctl. conf become valid tive immediately, execute the following command:
Su-root
Sysctl-p
For more information on shmmax, shmmni, shmmin, shmseg, and shmall, see Setting Shared Memory.
For more information on semmsl, semmni, semmns, and semopm, see Setting Semaphores.
For more information on filemax, see Setting File Handles.
-------------------
<在 oracle 10.1.0 bin dbshut 加入>
# Self-generated ??? Listner
If [-f $ ORACLE_HOME/bin/lsnrctl]; then
$ ORACLE_HOME/bin/lsnrctl stop
Fi
# Self-generated ??? Oracle Apache Jserv
If [-f $ ORACLE_HOME/Apache/bin/httpdsctl]; then
$ ORACLE_HOME/Apache/bin/httpdsctl stop
Fi
36. After completion ???
$/Oracle/10.1.0/bin/dbstart
$/Oracle/10.1.0/bin/dbshut
37 .?? From ??? Oracle
?? Oracle10g ?? Script cp to/etc/rc. d/init. d
$ Cp oracle10g/etc/rc. d/init. d
Join again ?? Server? Program
# Chkconfig -- add oracle10g
# Linuxconf
Can I use linuxconf to control ?? ? Times.
************
* ** Oracle10g? OK?
#! /Bin/sh
#
# Chkconfig: 345 51 49
# Description: starts the oracle dabase de
#
Echo "Oracle 10g auto start/stop"
ORA_OWNER = oracle
ORA_HOME =/oracle/10.1.0/db
Case "$1" in
'Start ')
Echo-n "Starting Oracle10g :"
Su-$ ORA_OWNER-c $ ORA_HOME/bin/dbstart
Touch/var/lock/subsys/oracle10g
Echo
;;
'Stop ')
Echo-n "Shutting Oracle10g :"
Su-$ ORA_OWNER-c $ ORA_HOME/bin/dbshut
Rm-f/var/lock/subsys/oracle10g
Echo
;;
'Restart ')
Echo-n "Restarting Oracle10g :"
$0 stop
$0 start
Echo
;;
*)
Echo "Usage: oracle10g {start | stop | restart }"
Exit 1
Esac
Exit 0