redhat 4 +oracle11g

Redhat4.4 安装oracle 11g

一、准备安装

使用的OS版本:OEL4
[oracle@ractest orcl]$ cat /etc/redhat-release
Enterprise Linux Enterprise Linux AS release 4 (October Update 5)
[oracle@ractest orcl]$ cat /etc/enterprise-release
Enterprise Linux Enterprise Linux AS release 4 (October Update 5)

下载zip格式包,mv移动到要安装的位置,执行

Unzip *zip


安装程序路径随意,此处为:
/opt
创建用户,安装oracle会自动执行以下操作,可以省略。
groupadd -g 1001 dba
groupadd -g 1002 oinstall
useradd -u 10000 -g dba -G oinstall,dba -d /home/oracle -s /bin/bash oracle
chown -R oracle:dba /home/oracle
usermod -g dba -G oinstall,dba oracle

oracle创建密码

Passwd oracle

Passwd
切换到Oracle用户,使用的.bash_profile

# su - oracle
$ vi ~/.bash_profile

export ORACLE_BASE=/home/oracle
export ORACLE_HOME=$ORACLE_BASE/11g
export ORA_CRS_HOME=$ORACLE_BASE/crs
export ORACLE_PATH=$ORACLE_BASE/common/oracle/sql:.:$ORACLE_HOME/rdbms/admin
export ORACLE_SID=orcl1
export PATH=$ORACLE_HOME/bin:$ORA_CRS_HOME/bin:${PATH}:$HOME/bin
export PATH=${PATH}:/usr/bin:/bin:/usr/bin/X11:/usr/local/bin
export PATH=${PATH}:$ORACLE_BASE/common/oracle/bin
export ORACLE_TERM=xterm
export TNS_ADMIN=$ORACLE_HOME/network/admin
export ORA_NLS10=$ORACLE_HOME/nls/data
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/lib:/usr/lib:/usr/local/lib:$ORACLE_HOME/
oracm/lib:$ORACLE_HOME/lib
export LIBPATH=$LIBPATH:$ORA_CRS_HOME/lib:$ORACLE_HOME/lib
export CLASSPATH=${CLASSPATH}:$ORACLE_HOME/rdbms/jlib:$ORACLE_HOME/jlib:$ORACLE_HOME
/network/jlib:$ORACLE_HOME/JRE
export THREADS_FLAG=native
export TEMP=/tmp
export TMPDIR=/tmp
export NLS_LANG=american_america.WE8ISO8859P1
export DISPLAY=10.198.90.55:2
alias sysdba="sqlplus '/as sysdba'"
export EDITOR=vi
修改的核心参数:/etc/sysctl.cf
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default=262144
net.core.wmem_default=262144
net.core.rmem_max=262144
net.core.wmem_max=262144

.以下命令加载sysctl.conf文件中的内容,检查参数值是否正确设定。
# /sbin/sysctl -p

图形界面下,连接终端,切换到Oracle用户,使用xclock检查display正确:

代码:
[oracle@ractest ~]$ xclock
[oracle@ractest ~]$ /mnt/Oracle11g_linux_x86_64/database
[oracle@ractest ~]$ cd /mnt/Oracle11g_linux_x86_64/database
[oracle@ractest database]$ ls -l
total 10
drwxr-xr-x   4 1003 oinstall   96 Mar 23 18:45 doc
drwxr-xr-x   5 1003 oinstall 1024 Mar 23 18:45 install
drwxr-xr-x   2 1003 oinstall 1024 Mar 23 18:45 response
-rwxr-xr-x   1 1003 oinstall 1251 Mar 23 18:45 runInstaller
drwxr-xr-x  12 1003 oinstall 1024 Mar 23 18:45 stage
-rw-r--r--   1 1003 oinstall 4638 Mar 23 18:45 welcome.html
[oracle@ractest database]$ ./runInstaller
Starting Oracle Universal Installer...
Checking installer requirements...
Checking operating system version: must be redhat-3, SuSE-9,
redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2
Passed
All installer requirements met.
Preparing to launch Oracle Universal Installer from
/tmp/OraInstall2007-06-28_02-26-12AM. Please wait ...

选择高级安装Advanced Installation
选择Custom安装

选定perform. type configuration
Custom Database

执行两个脚本
# cd /oracle/u01/app/oraInventory/
# ./orainstRoot.sh
# cd /oracle/u01/app/oracle/product/1101/db/
# ./root.sh

 

 

你可能感兴趣的:(oracle,linux,.net,redhat,bash)