Oracle 11g的基本安装

2008-11-15 19:47:06  作者:  来源:互联网  文字大小:【+】【-


七彩谷商城
一、准备安装iaELinux联盟
iaELinux联盟
基本都是按部就班。iaELinux联盟
iaELinux联盟
使用的OS版本:OEL4iaELinux联盟
Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ [oracle@ractest orcl]$ cat /etc/redhat-releaseiaELinux联盟
Enterprise Linux Enterprise Linux AS release
4 (October update 5)iaELinux联盟
[oracle@ractest orcl]$ cat
/etc/enterprise-releaseiaELinux联盟
Enterprise Linux Enterprise Linux AS release
4 (October update 5)
iaELinux联盟

安装程序路径:iaELinux联盟
/mnt/Oracle11g_linux_x86_64/databaseiaELinux联盟
iaELinux联盟
创建用户

Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ groupadd -g 1001 dbaiaELinux联盟
groupadd
-g 1002 oinstalliaELinux联盟
useradd
-u 10000 -g dba -G oinstall,dba -d /home/oracle -s /bin/bash oracleiaELinux联盟
chown
-R oracle:dba /home/oracleiaELinux联盟
usermod
-g dba -G oinstall,dba oracle
iaELinux联盟

使用的.bash_profile

Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ export ORACLE_BASE=/home/oracleiaELinux联盟
export ORACLE_HOME
=$ORACLE_BASE/11giaELinux联盟
export ORA_CRS_HOME
=$ORACLE_BASE/crsiaELinux联盟
export ORACLE_PATH
=$ORACLE_BASE/common/oracle/sql:.:$ORACLE_HOME/rdbms/adminiaELinux联盟
export ORACLE_SID
=orcl1iaELinux联盟
export PATH
=$ORACLE_HOME/bin:$ORA_CRS_HOME/bin:${PATH}:$HOME/biniaELinux联盟
export PATH
=${PATH}:/usr/bin:/bin:/usr/bin/X11:/usr/local/biniaELinux联盟
export PATH
=${PATH}:$ORACLE_BASE/common/oracle/biniaELinux联盟
export ORACLE_TERM
=xtermiaELinux联盟
export TNS_ADMIN
=$ORACLE_HOME/network/adminiaELinux联盟
export ORA_NLS10
=$ORACLE_HOME/nls/dataiaELinux联盟
export LD_LIBRARY_PATH
=${LD_LIBRARY_PATH}:/lib:/usr/lib:/usr/local/lib:$ORACLE_HOME/iaELinux联盟
oracm
/lib:$ORACLE_HOME/libiaELinux联盟
export LIBPATH
=$LIBPATH:$ORA_CRS_HOME/lib:$ORACLE_HOME/libiaELinux联盟
export CLASSPATH
=${CLASSPATH}:$ORACLE_HOME/rdbms/jlib:$ORACLE_HOME/jlib:$ORACLE_HOMEiaELinux联盟
/network/jlib:$ORACLE_HOME/JREiaELinux联盟
export THREADS_FLAG
=nativeiaELinux联盟
export
TEMP=/tmpiaELinux联盟
export TMPDIR
=/tmpiaELinux联盟
export NLS_LANG
=american_america.WE8ISO8859P1iaELinux联盟
export DISPLAY
=10.198.90.55:2iaELinux联盟
alias sysdba
="sqlplus '/as sysdba'"iaELinux联盟
export EDITOR
=vi
iaELinux联盟

修改的核心参数:

Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ kernel.shmall = 2097152iaELinux联盟
kernel.shmmax
= 2147483648iaELinux联盟
kernel.shmmni
= 4096iaELinux联盟
kernel.sem
= 250 32000 100 128iaELinux联盟
fs.file
-max = 65536iaELinux联盟
net.ipv4.ip_local_port_range
= 1024 65000iaELinux联盟
net.core.rmem_default
=262144iaELinux联盟
net.core.wmem_default
=262144iaELinux联盟
net.core.rmem_max
=262144iaELinux联盟
net.core.wmem_max
=262144
iaELinux联盟

使用xclock检查display正确:iaELinux联盟
iaELinux联盟
iaELinux联盟
代码:

Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ [oracle@ractest ~]$ xclockiaELinux联盟
[oracle@ractest
~]$ /mnt/Oracle11g_linux_x86_64/databaseiaELinux联盟
[oracle@ractest
~]$ cd /mnt/Oracle11g_linux_x86_64/databaseiaELinux联盟
[oracle@ractest database]$ ls
-liaELinux联盟
total
10iaELinux联盟
drwxr
-xr-x 4 1003 oinstall 96 Mar 23 18:45 dociaELinux联盟
drwxr
-xr-x 5 1003 oinstall 1024 Mar 23 18:45 installiaELinux联盟
drwxr
-xr-x 2 1003 oinstall 1024 Mar 23 18:45 responseiaELinux联盟
-rwxr-xr-x 1 1003 oinstall 1251 Mar 23 18:45 runInstalleriaELinux联盟
drwxr
-xr-x 12 1003 oinstall 1024 Mar 23 18:45 stageiaELinux联盟
-rw-r--r-- 1 1003 oinstall 4638 Mar 23 18:45 welcome.htmliaELinux联盟
[oracle@ractest database]$ .
/runInstalleriaELinux联盟
Starting Oracle Universal Installer...iaELinux联盟
Checking installer requirements...iaELinux联盟
Checking operating system version: must be redhat
-3, SuSE-9,
iaELinux联盟
redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2iaELinux联盟
PassediaELinux联盟
All installer requirements met.iaELinux联盟
Preparing to launch Oracle Universal Installer from
iaELinux联盟
/tmp/OraInstall2007-06-28_02-26-12AM. Please wait ...
iaELinux联盟
[oracle@ractest database]$ Oracle Universal Installer, Version 11.1.0.2.0 ProductioniaELinux联盟
Copyright (C)
1999, 2007, Oracle. All rights reserved.iaELinux联盟
Oracle Universal Installer, Version
11.1.0.2.0 ProductioniaELinux联盟
Copyright (C)
1999, 2007, Oracle. All rights reserved.
iaELinux联盟

iaELinux联盟
启动图形以后选择basic&n iaELinux联盟
iaELinux联盟
iaELinux联盟
iaELinux联盟
选择oracle base的时候,oracle不推荐使用user home作为oracle base,这里我选yes忽略iaELinux联盟
iaELinux联盟
iaELinux联盟
进行prerequirements检查的时候,安装程序认为swap不足,我选择YES忽略iaELinux联盟
iaELinux联盟
iaELinux联盟
iaELinux联盟
同上iaELinux联盟
iaELinux联盟

两次点击NEXT iaELinux联盟
iaELinux联盟
iaELinux联盟
iaELinux联盟

执行提示脚本,安装完毕iaELinux联盟
代码:

Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ [oracle@ractest database]$iaELinux联盟
[oracle@ractest database]$ su
- rootiaELinux联盟
Password:iaELinux联盟
[root@ractest
~]# /home/oracle/oraInventory/orainstRoot.shiaELinux联盟
Changing permissions of
/home/oracle/oraInventory to 770.iaELinux联盟
Changing groupname of
/home/oracle/oraInventory to dba.iaELinux联盟
The execution of the script
is completeiaELinux联盟
[root@ractest
~]# /home/oracle/11g/root.shiaELinux联盟
Running Oracle 11g root.sh script...iaELinux联盟
The following environment variables are
set as:iaELinux联盟
ORACLE_OWNER
= oracleiaELinux联盟
ORACLE_HOME
= /home/oracle/11giaELinux联盟
Enter the full pathname of the local bin directory: [
/usr/local/bin]:iaELinux联盟
Copying dbhome to
/usr/local/bin ...iaELinux联盟
Copying oraenv to
/usr/local/bin ...iaELinux联盟
Copying coraenv to
/usr/local/bin ...iaELinux联盟
Creating
/etc/oratab file...iaELinux联盟
Entries will be added to the
/etc/oratab file as needed byiaELinux联盟
Database Configuration Assistant when a database
is creatediaELinux联盟
Finished running generic part of root.sh script.iaELinux联盟
Now product
-specific root actions will be performed.iaELinux联盟
Finished product
-specific root actions.iaELinux联盟
[root@ractest
~]#
iaELinux联盟
iaELinux联盟
iaELinux联盟
iaELinux联盟
iaELinux联盟
全文完。请继续关注Oracle 11g Advanced Installation 和 创建Oracle 11g 数据库
七彩谷商城
 

最新文章

更多

推荐文章

更多

热点文章

更多

相关文章

更多