Oracle11g安装步骤详解

http://wmdata.com.cn/oracle/11g/index.html

Oracle11g从去年年底发布至今已经有一段时间了,我可以说也算首批体验Oracle11g的客户了吧,也许是对Oracle11g的太期待,所以他还没发布我就了解了好多好多Oracle11g的新特性和很多关于它的新技术,现对Oracle11g的安装作一下介绍,希望能对初学者或了解不深的客户有所帮助<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

使用的OS版本是:OEL4

以下是引用片段:
 [[email protected]]$cat/etc/redhat-release
  
EnterpriseLinuxEnterpriseLinuxASrelease4(OctoberUpdate5)
  
[[email protected]]$cat/etc/enterprise-release
  EnterpriseLinuxEnterpriseLinuxASrelease4(OctoberUpdate5)

  安装程序路径:

  /mnt/Oracle11g_linux_x86_64/database

  创建用户

以下是引用片段:
  groupadd-g1001dba
  
groupadd-g1002oinstall
  
useradd-u10000-gdba-Goinstall,dba-d/home/oracle-s/bin/bashoracle
  
chown-Roracle:dba/home/oracle
  
usermod-gdba-Goinstall,dbaoracle
  使用的
.bash_profile
  
exportORACLE_BASE=/home/oracle
  
exportORACLE_HOME=$ORACLE_BASE/11g
  
exportORA_CRS_HOME=$ORACLE_BASE/crs
  
exportORACLE_PATH=$ORACLE_BASE/common/oracle/sql:.:$ORACLE_HOME/rdbms/admin
  
exportORACLE_SID=orcl1
  
exportPATH=$ORACLE_HOME/bin:$ORA_CRS_HOME/bin:${PATH}:$HOME/bin
  
exportPATH=${PATH}:/usr/bin:/bin:/usr/bin/X11:/usr/local/bin
  
exportPATH=${PATH}:$ORACLE_BASE/common/oracle/bin
  
exportORACLE_TERM=xterm
  
exportTNS_ADMIN=$ORACLE_HOME/network/admin
  
exportORA_NLS10=$ORACLE_HOME/nls/data
  
exportLD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/lib:/usr/lib:/usr/local/lib:$ORACLE_HOME/oracm/lib:$ORACLE_HOME/lib
  
exportLIBPATH=$LIBPATH:$ORA_CRS_HOME/lib:$ORACLE_HOME/lib
  
exportCLASSPATH=${CLASSPATH}:$ORACLE_HOME/rdbms/jlib:$ORACLE_HOME/jlib:$ORACLE_HOME/network/jlib:$ORACLE_HOME/JRE
  
exportTHREADS_FLAG=native
  
exportTEMP=/tmp
  
exportTMPDIR=/tmp
  
exportNLS_LANG=american_america.WE8ISO8859P1
  
exportDISPLAY=10.198.90.55:2
  
aliassysdba="sqlplus'/assysdba'"
  exportEDITOR=vi

  修改的核心参数

以下是引用片段:
  kernel.shmall=2097152
  
kernel.shmmax=2147483648
  
kernel.shmmni=4096
  
kernel.sem=25032000100128
  
fs.file-max=65536
  
net.ipv4.ip_local_port_range=102465000
  
net.core.rmem_default=262144
  
net.core.wmem_default=262144
  
net.core.rmem_max=262144
  net.core.wmem_max=262144

使用xclock检查display正确:

  <?xml:namespace prefix = v ns = "urn:schemas-microsoft-com:vml" /><shapetype id="_x0000_t75" coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="[email protected]@[email protected]@[email protected]@[email protected]@5xe" filled="f" stroked="f"><stroke joinstyle="miter"></stroke><formulas><f eqn="if lineDrawn pixelLineWidth 0"></f><f eqn="sum @0 1 0"></f><f eqn="sum 0 0 @1"></f><f eqn="prod @2 1 2"></f><f eqn="prod @3 21600 pixelWidth"></f><f eqn="prod @3 21600 pixelHeight"></f><f eqn="sum @0 0 1"></f><f eqn="prod @6 1 2"></f><f eqn="prod @7 21600 pixelWidth"></f><f eqn="sum @8 21600 0"></f><f eqn="prod @7 21600 pixelHeight"></f><f eqn="sum @10 21600 0"></f></formulas><path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"></path><lock v:ext="edit" aspectratio="t"></lock></shapetype><shape id="_x0000_i1026" style="WIDTH: 184.5pt; HEIGHT: 185.25pt" type="#_x0000_t75" alt=""><imagedata src="file:///C:%5CDOCUME~1%5CADMINI~1%5CLOCALS~1%5CTemp%5Cmsohtml1%5C01%5Cclip_image001.jpg" o:href="http://dev.yesky.com/imagelist/2007/194/267xr7cy7082.jpg"></imagedata></shape>

以下是引用片段:
[[email protected] ~]$ xclock



[[email protected] ~]$ /mnt/Oracle11g_linux_x86_64/database

[[email protected] ~]$ cd /mnt/Oracle11g_linux_x86_64/database

[[email protected] database]$ ls -l

total 10

drwxr-xr-x4 1003 oinstall96 Mar 23 18:45 doc

drwxr-xr-x5 1003 oinstall 1024 Mar 23 18:45 install

drwxr-xr-x2 1003 oinstall 1024 Mar 23 18:45 response

-rwxr-xr-x1 1003 oinstall 1251 Mar 23 18:45 runInstaller

drwxr-xr-x12 1003 oinstall 1024 Mar 23 18:45 stage

-rw-r--r--1 1003 oinstall 4638 Mar 23 18:45 welcome.html

[[email protected] 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 ...[[email protected] database]$ Oracle Universal Installer, Version 11.1.0.2.0 Production

Copyright (C) 1999, 2007, Oracle. All rights reserved.

Oracle Universal Installer, Version 11.1.0.2.0 Production

Copyright (C) 1999, 2007, Oracle. All rights reserved.

启动图形以后选择ba

<shape id="_x0000_i1030" style="WIDTH: 375pt; HEIGHT: 293.25pt" type="#_x0000_t75" alt="点击放大此图片" o:button="t"><imagedata src="file:///C:%5CDOCUME~1%5CADMINI~1%5CLOCALS~1%5CTemp%5Cmsohtml1%5C01%5Cclip_image002.jpg" o:href="http://dev.yesky.com/imagelist/2007/194/19k2742j19rgs.jpg"></imagedata></shape>

选择oracle base的时候,oracle不推荐使用user home作为oracle base,这里我选yes忽略

<shape id="_x0000_i1027" style="WIDTH: 375pt; HEIGHT: 292.5pt" type="#_x0000_t75" alt="点击放大此图片" o:button="t"><imagedata src="file:///C:%5CDOCUME~1%5CADMINI~1%5CLOCALS~1%5CTemp%5Cmsohtml1%5C01%5Cclip_image003.jpg" o:href="http://dev.yesky.com/imagelist/2007/194/mh2l8f7n525js.jpg"></imagedata></shape>

进行prerequirements检查的时候,安装程序认为swap不足,我选择YES忽略

<shape id="_x0000_i1028" style="WIDTH: 375pt; HEIGHT: 295.5pt" type="#_x0000_t75" alt="点击放大此图片" o:button="t"><imagedata src="file:///C:%5CDOCUME~1%5CADMINI~1%5CLOCALS~1%5CTemp%5Cmsohtml1%5C01%5Cclip_image004.jpg" o:href="http://dev.yesky.com/imagelist/2007/194/f9fh39u54v0qs.jpg"></imagedata></shape>

<shape id="_x0000_i1029" style="WIDTH: 375pt; HEIGHT: 296.25pt" type="#_x0000_t75" alt="点击放大此图片" o:button="t"><imagedata src="file:///C:%5CDOCUME~1%5CADMINI~1%5CLOCALS~1%5CTemp%5Cmsohtml1%5C01%5Cclip_image005.jpg" o:href="http://dev.yesky.com/imagelist/2007/194/9b1d2d4081hrs.jpg"></imagedata></shape>

<shape id="_x0000_i1031" style="WIDTH: 375pt; HEIGHT: 296.25pt" type="#_x0000_t75" alt="点击放大此图片"><imagedata src="file:///C:%5CDOCUME~1%5CADMINI~1%5CLOCALS~1%5CTemp%5Cmsohtml1%5C01%5Cclip_image006.jpg" o:href="http://dev.yesky.com/imagelist/2007/194/6hl3q5uv31qgs.jpg"></imagedata></shape>

<shape id="_x0000_i1032" style="WIDTH: 375pt; HEIGHT: 294.75pt" type="#_x0000_t75" alt="点击放大此图片" o:button="t"><imagedata src="file:///C:%5CDOCUME~1%5CADMINI~1%5CLOCALS~1%5CTemp%5Cmsohtml1%5C01%5Cclip_image007.jpg" o:href="http://dev.yesky.com/imagelist/2007/194/q4d98065oqz5s.jpg"></imagedata></shape>

以下是引用片段:
[[email protected] database]$

[[email protected] database]$ su - root

Password:

[[email protected] ~]# /home/oracle/oraInventory/orainstRoot.sh

Changing permissions of /home/oracle/oraInventory to 770.

Changing groupname of /home/oracle/oraInventory to dba.

The execution of the script is complete

[[email protected] ~]# /home/oracle/11g/root.sh

Running Oracle11g root.sh script...

The following environment variables are set as:

ORACLE_OWNER= oracle

ORACLE_HOME=/home/oracle/11g

Enter the full pathname of the local bin directory: [/usr/local/bin]:

Copying dbhome to /usr/local/bin ...

Copying oraenv to /usr/local/bin ...

Copying coraenv to /usr/local/bin ...

Creating /etc/oratab file...

Entries will be added to the /etc/oratab file as needed by

Database Configuration Assistant when a database is created

Finished running generic part of root.sh script.

Now product-specific root actions will be performed.

Finished product-specific root actions.

[[email protected] ~]#

<shape id="_x0000_i1033" style="WIDTH: 375pt; HEIGHT: 295.5pt" type="#_x0000_t75" alt="点击放大此图片" o:button="t"><imagedata src="file:///C:%5CDOCUME~1%5CADMINI~1%5CLOCALS~1%5CTemp%5Cmsohtml1%5C01%5Cclip_image008.jpg" o:href="http://dev.yesky.com/imagelist/2007/194/yuy2767ay884s.jpg"></imagedata></shape>

<shape id="_x0000_i1025" style="WIDTH: 375pt; HEIGHT: 295.5pt" type="#_x0000_t75" alt="点击放大此图片" o:button="t"><imagedata src="file:///C:%5CDOCUME~1%5CADMINI~1%5CLOCALS~1%5CTemp%5Cmsohtml1%5C01%5Cclip_image009.jpg" o:href="http://dev.yesky.com/imagelist/2007/194/1bv547w43al7s.jpg"></imagedata></shape>

通过这个例子你可以十分清楚的了解Oracle11g的安装过程,诸多惊喜尽在Oracle11g,赶快加入我们的Oracle11g应用行列吧。