惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Simon Willison's Weblog
Simon Willison's Weblog
Google DeepMind News
Google DeepMind News
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
P
Proofpoint News Feed
Recent Announcements
Recent Announcements
MongoDB | Blog
MongoDB | Blog
U
Unit 42
云风的 BLOG
云风的 BLOG
Recorded Future
Recorded Future
G
Google Developers Blog
I
InfoQ
Blog — PlanetScale
Blog — PlanetScale
A
About on SuperTechFans
Jina AI
Jina AI
量子位
宝玉的分享
宝玉的分享
The Cloudflare Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园 - 聂微东
Last Week in AI
Last Week in AI
WordPress大学
WordPress大学
美团技术团队
The Hacker News
The Hacker News
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
D
Darknet – Hacking Tools, Hacker News & Cyber Security
T
Tailwind CSS Blog
博客园 - 司徒正美
博客园 - 叶小钗
Hugging Face - Blog
Hugging Face - Blog
P
Palo Alto Networks Blog
博客园_首页
阮一峰的网络日志
阮一峰的网络日志
博客园 - 【当耐特】
Spread Privacy
Spread Privacy
The GitHub Blog
The GitHub Blog
Y
Y Combinator Blog
Vercel News
Vercel News
Martin Fowler
Martin Fowler
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Forbes - Security
Forbes - Security
Attack and Defense Labs
Attack and Defense Labs
Google DeepMind News
Google DeepMind News
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Microsoft Azure Blog
Microsoft Azure Blog
P
Privacy International News Feed
G
GRAHAM CLULEY
The Last Watchdog
The Last Watchdog
C
Cyber Attacks, Cyber Crime and Cyber Security
AI
AI
V2EX - 技术
V2EX - 技术

博客园 - 海沙

[转贴]制作ubuntu的安装u盘 Android之旅-Emulator WinXP下的编译 ubuntu7.04 安装ELDK4.1交叉编译环境 光圈和快门 烧友必读《音响二十要》转台湾音响大师刘汉盛毕生精华 [参考]查看ORACLE DB信息的一些SQL [参考]利用iptables防火墙保护Oracle数据库 [参考]RedHat AS3下自动启动和关闭oracle的脚本 [参考] 在单机上创建物理的 Oracle9i standby 数据库笔记 [参考]Oracle10G Physical Standby Database笔记 [转载]Install Oracle 9.2.0.6 On RedHat AS 3.0 [参考]FreeBSD5.4+GNOME2.10.0安装过程 资料连接记录 Linux Add SMB(windows) Printer Notes On RHAS2.1 DiabloII 1.10 教育文章-合成与符文之语(不断补充中....) [參考]Oracle9i (9.2.0.4.0) Installation on RedHat Advanced Server 2.1 Linux [參考]Oracle Application Release 11i (11.5.9) on RedHat Advance Server 2.1 [参考]RedHat高级服务器版2.1的安装、Oracle9iR2的安装 [参考]用Oracle导入导出工具实现Oracle数据库移植
[参考]Oracle9i (9.2.0.4.0) Installation on RedHat Advanced Server 4.1 And Centos 4.1
海沙 · 2006-02-23 · via 博客园 - 海沙

Oracle9i (9.2.0.4.0) Installation on RedHat Advanced Server 4.1 And Centos 4.1
This article is intended as a brief guide to installing Oracle9i (9.2.0.4.0) on RedHat Advanced Server 4.1 And Centos 4.1. The article is based on a server installation with a minimum of 2G swap, secure Linux disabled and the following package groups installed:

X Window System
GNOME Desktop Environment
Editors
Graphical Internet
Server Configuration Tools
Development Tools
Administration Tools
System Tools
Alternative base installations may require additional packages to be loaded.

Download Software
Unpack Files
Hosts File
Set Kernel Parameters
Setup
Installation
Post Installation
Download Software
Download the Oracle installation files from otn.oracle.com.

Download two additional packages from Metalink Patch 4198954.

Unpack Files
First unzip the files:

gunzip ship_9204_linux_disk1.cpio.gz
gunzip ship_9204_linux_disk2.cpio.gz
gunzip ship_9204_linux_disk3.cpio.gz
Next unpack the contents of the files:

cpio -idmv < ship_9204_linux_disk1.cpio
cpio -idmv < ship_9204_linux_disk2.cpio
cpio -idmv < ship_9204_linux_disk3.cpio
unzip p4198954_21_LINUX.zip
You should now have three directories (Disk1, Disk2 and Disk3) containing installation files and a patch directory (4198954).

Hosts File
The /etc/hosts file must contain a fully qualified name for the server:

<IP-address>  <fully-qualified-machine-name>  <machine-name>
Set Kernel Parameters
Add the following lines to the /etc/sysctl.conf file:

kernel.shmmax = 2147483648
kernel.shmmni = 100
kernel.shmall = 2097152
# semaphores: semmsl, semmns, semopm, semmni
kernel.sem = 100 256 100 100
fs.file-max = 327679
kernel.hostname   = Centos42.localdomain  #<--- full qualified hostname !!
kernel.domainname = localdomain           #<--- correct domain name !!
Run the following command to change the current kernel parameters:
/sbin/sysctl -p
Add the following lines to the /etc/security/limits.conf file:

oracle soft nofile 65536
oracle hard nofile 65536
oracle soft nproc 16384
oracle hard nproc 16384
Setup
Metalink Note: 303859.1 states that the following packages are required by Red Hat Enterprise Linux AS 4.1:

compat-db-4.1.25-9
compat-gcc-32-3.2.3-47.3
compat-gcc-32-c++-3.2.3-47.3
compat-oracle-rhel4-1.0-3
compat-libcwait-2.0-1
compat-libgcc-296-2.96-132.7.2
compat-libstdc++-296-2.96-132.7.2
compat-libstdc++-33-3.2.3-47.3
gcc-3.4.3-9.EL4
gcc-c++-3.4.3-9.EL4
gnome-libs-1.4.1.2.90-44
gnome-libs-devel-1.4.1.2.90-44
libaio-devel-0.3.102-1
libaio-0.3.102-1
make-3.80-5
openmotif21-2.1.30-11
xorg-x11-deprecated-libs-devel-6.8.1-23.EL
xorg-x11-deprecated-libs-6.8.1-23.EL
Depending on the update/respin version of Red Hat or CentOS, the exact package versions and locations may vary. The installation of the required packages is shown below, with the locations relevant for CentOS 4.1.

# Centos 4.1 Disk 1
cd /media/cdrom/CentOS/RPMS
rpm -Uvh compat-libstdc++-33-3*
rpm -Uvh xorg-x11-deprecated-libs-6*
rpm -Uvh make-3*

# Centos 4.1 Disk 2
cd /media/cdrom/CentOS/RPMS
rpm -Uvh compat-db*
rpm -Uvh gcc-3*
rpm -Uvh gcc-c++-3*
rpm -Uvh gnome-libs-1*
rpm -Uvh freetype-devel*
rpm -Uvh fontconfig-devel*
rpm -Uvh xorg-x11-devel*
rpm -Uvh xorg-x11-deprecated-libs-devel-6*

# Centos 4.1 Disk 3
cd /media/cdrom/CentOS/RPMS
rpm -Uvh compat-gcc-32-3*
rpm -Uvh compat-gcc-32-c++-3*
rpm -Uvh compat-libgcc-296-2*
rpm -Uvh compat-libstdc++-296-2*
rpm -Uvh gnome-libs-devel-1*
rpm -Uvh libaio-0*
rpm -Uvh libaio-devel-0*
rpm -Uvh openmotif21-2*
Install the packages associated with Patch 4198954:

cd 4198954
rpm -Uvh compat-oracle-rhel4-1*
rpm -Uvh compat-libcwait-2*
Create the new groups and users:

groupadd oinstall
groupadd dba
groupadd oper
groupadd apache

useradd -g oinstall -G dba oracle
passwd oracle

useradd -g oinstall -G apache apache
passwd apache
Create the directories in which the Oracle software will be installed:

mkdir -p /u01/app/oracle/product/9.2.0
chown -R oracle.oinstall /u01
Login as the oracle user and add the following lines at the end of the .bash_profile file:

# Oracle 9i
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/9.2.0; export ORACLE_HOME
ORACLE_TERM=xterm; export ORACLE_TERM
PATH=$ORACLE_HOME/bin:$PATH; export PATH
ORACLE_OWNER=oracle; export ORACLE_OWNER
ORACLE_SID=TSH1; export ORACLE_SID

LD_LIBRARY_PATH=$ORACLE_HOME/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
CLASSPATH=$CLASSPATH:$ORACLE_HOME/network/jlib; export CLASSPATH

LD_ASSUME_KERNEL=2.4.19; export LD_ASSUME_KERNEL
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
Save the .bash_profile file and re-login as the oracle user. Make sure the .bash_profile ran correctly by issuing the following command:

set | more
Installation
Log into the oracle user. If you are using X emulation then set the DISPLAY environmental variable:

DISPLAY=<machine-name>:0.0; export DISPLAY
Start the Oracle Universal Installer (OUI) by issuing the following command in the Disk1 directory:

./runInstaller
During the installation enter the appropriate ORACLE_HOME and name then continue as normal. For a more detailed look at the installation process, click on the links below to see screen shots of each stage.

Welcome
Inventory Location
UNIX Group Name
UNIX Group Name Privileges Dialog
File Locations
Available Products
Installation Types
Database Configuration
Database Identification
Database File Location
Database Character Set
Summary
Install
Setup Privileges
Configuration Tools
Database Configuration Assistant
Database Configuration Assistant Passwords
End Of Installation
Post Installation
Once the instance is created edit the /etc/oratab file setting the restart flag for each instance to 'Y':

TSH1:/u01/app/oracle/product/9.2.0:Y
Create a file called /etc/init.d/dbora containing the following:

#!/bin/sh
# description: Oracle auto start-stop script.
# chkconfig: - 20 80
#
# Set ORA_HOME to be equivalent to the $ORACLE_HOME
# from which you wish to execute dbstart and dbshut;
#
# Set ORA_OWNER to the user id of the owner of the
# Oracle database in ORA_HOME.
ORA_HOME=/u01/app/oracle/product/9.2.0
ORA_OWNER=oracle
if [ ! -f $ORA_HOME/bin/dbstart ]
then
    echo "Oracle startup: cannot start"
    exit
fi
case "$1" in
    'start')
        # Start the Oracle databases:
        # The following command assumes that the oracle login
        # will not prompt the user for any values
        su - $ORA_OWNER -c "$ORA_HOME/bin/lsnrctl start"
        su - $ORA_OWNER -c $ORA_HOME/bin/dbstart
        ;;
    'stop')
        # Stop the Oracle databases:
        # The following command assumes that the oracle login
        # will not prompt the user for any values
        su - $ORA_OWNER -c $ORA_HOME/bin/dbshut
        su - $ORA_OWNER -c "$ORA_HOME/bin/lsnrctl stop"
        ;;
esac
Use chmod to set the privileges to 750:

chmod 750 /etc/init.d/dbora
Link the file into the appropriate run-level script directories:

ln -s /etc/init.d/dbora /etc/rc0.d/K10dbora
ln -s /etc/init.d/dbora /etc/rc3.d/S99dbora
Associate the dbora service with the appropriate run levels:

chkconfig --level 345 dbora on
The relevant instances should now startup/shutdown automatically at system startup/shutdown