Oracle 11g 单实例安装文档
2016-08-12 15:52
507 查看
这里介绍在RedHatEnterpriseLinuxServerrelease5.7(Tikanga)下安装ORACLE11.2.0.1.0的过程,本文仅仅是为了写这样安装指导文档而整理在此。仅供参考!1:下载对应平台的ORACLE11g安装介质安装ORACLE,首先要获取安装介质,大部分情况手头都有相关版本的安装介质。如果你手头没有安装介质,那么可以从下面链接获取对应平台的ORACLE安装介质。http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html 强烈建议在安装ORACLE之前,先看一遍LinuxInstallationGuides文档,毕竟这是最权威、最全面的资料。这样可以避免你在安装过程中遇到各类奇奇怪怪的问题,下载链接如下所示:http://docs.oracle.com/cd/E11882_01/nav/portal_11.htm
2:检查硬件配置是否满足要求2.1:内存大小要求官方文档中,要求物理内存至少需要1G,推荐2G或以上配置,如果是服务器的话,配置肯定比这个高。查看系统内存配置,可以使用下面命令:检查物理内存
Note:OnLinux,theHugePagesfeatureallocatesnon-swappablememoryforlargepagetablesusingmemory-mappedfiles.IfyouenableHugePages,thenyoushoulddeductthememoryallocatedtoHugePagesfromtheavailableRAMbeforecalculatingswapspace
LinuxSwap大小要求(这是一个指导值,最好根据Linux版本供应商的文档设置。如果不太清楚这些,尽量按照下面要求设置)
检查交换空间(Swap)大小(free命令亦可)
AutomaticMemoryManagement
从OracleDatabase11g开始,自动内存管理(AutomaticMemoryManagement)要求更多的共享内存(/dev/shm)和文件描述符(filedescriptors),共享内存的大小应该只是比MEMROY_MAX_TARGET和MEMROY_TARGET大。
查看共享内存大小
StartingwithOracleDatabase11g,theAutomaticMemoryManagementfeaturerequiresmoresharedmemory(/dev/shm)andfiledescriptors.ThesizeofthesharedmemorymustbeatleastthegreateroftheMEMORY_MAX_TARGETandMEMORY_TARGETparametersforeachOracleinstanceonthecomputer.IftheMEMORY_MAX_TARGETparameterortheMEMORY_TARGETparameterissettoanonzerovalue,andanincorrectsizeisassignedtothesharedmemory,itresultsinanORA-00845erroratstartup.OnLinuxsystems,iftheoperatingsystem/dev/shmmountsizeistoosmallfortheOraclesystemglobalarea(SGA)andprogramglobalarea(PGA),itresultsinanORA-00845error.
ThenumberoffiledescriptorsforeachOracleinstancemustbeatleast512*PROCESSES.Thelimitofdescriptorsforeachprocessmustbeatleast512.Iffiledescriptorsarenotsizedcorrectly,youseeanORA-27123errorfromvariousOracleprocessesandpotentiallyLinuxErrorEMFILE(Toomanyopenfiles)innon-Oracleprocesses.
注意:MEMORY_MAX_TARGETandMEMORY_TARGETcannotbeusedwhenLOCK_SGAisenabledorwithHugePagesonLinux.
2.2:系统架构要求
检查系统架构是否符合软件安装要求。如果是x86的架构,肯定不能运行64位的ORACLE软件。检查系统架构使用下面命令:
2.3:磁盘空间要求
Atleast1GBofdiskspaceinthe/tmpdirectory
检查/tmp目录大小
#df-h/tmp
检查磁盘空间:
#df–h
3:CheckingtheSoftwareRequirements
RedHatEnterpriseLinux5andOracleLinux5onLinuxx86andLinuxx86-64requireUpdate2.
3.1:操作系统要求
OracleDatabase11gRelease1(11.1)要求安装在下面版本的操作系统或后续版本中。安装Oracle数据库是必须检查目前操作系统版本是否支持。
■AsianuxServer3SP2
■AsianuxServer4SP3
■OracleLinux4Update7
■OracleLinux5Update2(withRedHatCompatibleKernel)
■OracleLinux5Update5
■OracleLinux6
■OracleLinux6(withRedHatCompatibleKernel)
■OracleLinux7
■OracleLinux7(withtheRedHatCompatibleKernel)
■RedHatEnterpriseLinux4Update7
■RedHatEnterpriseLinux5Update2
■RedHatEnterpriseLinux6
■RedHatEnterpriseLinux7
■SUSELinuxEnterpriseServer10SP2
■SUSELinuxEnterpriseServer11
■SUSELinuxEnterpriseServer12SP1
■NeoKylinLinuxAdvancedServer6
3.2操作系统内核要求
下面仅仅列举了部分内容,更多请见官方文档
■OnOracleLinux4andRedHatEnterpriseLinux4
2.6.9orlater
■OnOracleLinux5Update2withRedHatCompatibleKernel
2.6.18orlater
■OnOracleLinux5Update5withRedHatCompatibleKernel
2.6.18orlater
■OnOracleLinux5Update5withUnbreakableEnterpriseKernel
2.6.32-100.0.19orlater
■OnOracleLinux6
2.6.32-100.28.5.el6.x86_64orlater
■OnOracleLinux6withRedHatCompatibleKernel
2.6.32-71.el6.x86_64orlater
■OnOracleLinux7
3.8.13-33.el7uek.x86_64orlater
■OnOracleLinux7withRedHatCompatibleKernel
3.10.0-54.0.1.el7.x86_64orlater
■OnRedHatEnterpriseLinux5Update2
2.6.18orlater
■OnRedHatEnterpriseLinux5Update5
2.6.18orlater
■OnRedHatEnterpriseLinux6
2.6.32-71.el6.x86_64orlater
■OnRedHatEnterpriseLinux7
3.10.0-54.0.1.el7.x86_64orlater
■OnAsianuxServer3
2.6.18orlater
■OnAsianuxServer4
2.6.32-71.el6.x86_64orlater
查看操作系统内部版本,可以使用下面命令,如下所示,内部版本满足要求。
3.3:ORACLE软件所要求或依赖的一些包
如上检测所示,我们需要安装这些缺少的包:
3.4CompilerRequirements
IntelC++Compiler10.1orlaterandtheversionofGNUCandC++compilerslistedunder"PackageRequirements"aresupportedwiththeseproducts
3.5其它软件要求(AdditionalSoftwareRequirements)
这部分建立参考安装文档(里面内容较详细,有些是特殊要求),这里仅仅涉及OracleODBC相关驱动。
在OracleLinux5,RedHatEnterpriseLinux5,andAsianuxServer3中,需要下面3个包的版本
-unixODBC-2.2.11(32-bit)orlater
-unixODBC-devel-2.2.11(64-bit)orlater
-unixODBC-2.2.11(64-bit)orlater
4ConfiguringKernelParametersandResourceLimits
在修改内核参数前,我们先检查、查看这些内核参数的配置值
官方文档关于内核参数的推荐值如下截图所示,如果系统里面的配置大于这个值,那么就使用默认的值,不需要修改该参数值。
注意:Ifthecurrentvalueofanyparameterishigherthanthevaluelistedinthistable,thendonotchangethevalueofthatparameter.
在/etc/sysctl.conf中添加如下参数的设置值,如果这一步设置有误,也没有关系,后面安装过程会检测系统参数,提示参数设置有误,不能通过。需要你重新配置。
设置完成后执行/sbin/sysctl-p使之理解生效,从而不用重启系统。Oracle11g新增了fixup脚本,在安装过程中,安装程序将会检查推荐的操作系统内核参数设置以及必须的软件包,对于不符合要求的部分将会自动生成runfixup.sh,只需要手动以root用户执行该脚本即可,不需要手动调整配置了。所以这一块即使一些内核参数配置不正确,也可以在后面环境快速处理、验证。
5:创建系统账号和用户组
一般要检查是否存在oracle以及dba、oinstall用户组,如果是新环境,可以直接跳过,如果以前安装过Oracle数据库,那么就必须检查一下。
创建用户组dba、oinstall
#/usr/sbin/groupaddoinstall
#/usr/sbin/groupadddba
创建用户oracle
设置账号密码:
6:修改用户资源限制
在配置文件/etc/security/limits.conf里面设置
oraclesoftnproc2047
oraclehardnproc16384
oraclesoftnofile1024
oraclehardnofile65536
修改用户验证选项
在/etc/pam.d/login配置文件里面加上下面配置,如果已经存在的,就忽略这些。
sessionrequiredpam_selinux.so
sessionrequired/lib/security/pam_limits.so
7:修改用户配置文件
root用户下:修改/etc/profile文件加入如下参数
或是在oracle用户下,修改.bash_profile
8:安装目录配置
9:修改用户bashshell
以oracle账号登录,修改.bash_profile参数文件
10:配置VNC
在root用户下,设置iptables,添加
ORACLE11g图形化安装步骤
将安装介质解压到/tmp/database下,然后按照下面步骤安装
$./runInstaller
如果没有OracleSupport账号或不想设置,取消勾选选项。
勾选ServerClass
我们勾选“Advancedinstall”
此处设置字符集,SGATarget等。
Qwe123456
至此安装完成,然后测试验证,必要的话,关闭VNC服务,修改iptables设置。
2:检查硬件配置是否满足要求2.1:内存大小要求官方文档中,要求物理内存至少需要1G,推荐2G或以上配置,如果是服务器的话,配置肯定比这个高。查看系统内存配置,可以使用下面命令:检查物理内存
[root@DB-Server~]#grepMemTotal/proc/meminfo
MemTotal:3968144kB
[root@DB-Server~]#free-m
totalusedfreesharedbufferscached
Mem:38757103164085317
-/+buffers/cache:3073567
Swap:588705887
[root@DB-Server~]#
Note:OnLinux,theHugePagesfeatureallocatesnon-swappablememoryforlargepagetablesusingmemory-mappedfiles.IfyouenableHugePages,thenyoushoulddeductthememoryallocatedtoHugePagesfromtheavailableRAMbeforecalculatingswapspace
LinuxSwap大小要求(这是一个指导值,最好根据Linux版本供应商的文档设置。如果不太清楚这些,尽量按照下面要求设置)
检查交换空间(Swap)大小(free命令亦可)
[root@DB-Server~]#grepSwapTotal/proc/meminfo
SwapTotal:6029304kB
AutomaticMemoryManagement
从OracleDatabase11g开始,自动内存管理(AutomaticMemoryManagement)要求更多的共享内存(/dev/shm)和文件描述符(filedescriptors),共享内存的大小应该只是比MEMROY_MAX_TARGET和MEMROY_TARGET大。
查看共享内存大小
[root@DB-Server~]#df-h/dev/shm
FilesystemSizeUsedAvailUse%Mountedon
tmpfs1.9G927M1012M48%/dev/shm
[root@DB-Server~]#
StartingwithOracleDatabase11g,theAutomaticMemoryManagementfeaturerequiresmoresharedmemory(/dev/shm)andfiledescriptors.ThesizeofthesharedmemorymustbeatleastthegreateroftheMEMORY_MAX_TARGETandMEMORY_TARGETparametersforeachOracleinstanceonthecomputer.IftheMEMORY_MAX_TARGETparameterortheMEMORY_TARGETparameterissettoanonzerovalue,andanincorrectsizeisassignedtothesharedmemory,itresultsinanORA-00845erroratstartup.OnLinuxsystems,iftheoperatingsystem/dev/shmmountsizeistoosmallfortheOraclesystemglobalarea(SGA)andprogramglobalarea(PGA),itresultsinanORA-00845error.
ThenumberoffiledescriptorsforeachOracleinstancemustbeatleast512*PROCESSES.Thelimitofdescriptorsforeachprocessmustbeatleast512.Iffiledescriptorsarenotsizedcorrectly,youseeanORA-27123errorfromvariousOracleprocessesandpotentiallyLinuxErrorEMFILE(Toomanyopenfiles)innon-Oracleprocesses.
注意:MEMORY_MAX_TARGETandMEMORY_TARGETcannotbeusedwhenLOCK_SGAisenabledorwithHugePagesonLinux.
2.2:系统架构要求
检查系统架构是否符合软件安装要求。如果是x86的架构,肯定不能运行64位的ORACLE软件。检查系统架构使用下面命令:
[root@DB-Server~]#uname-m
x86_64
2.3:磁盘空间要求
Atleast1GBofdiskspaceinthe/tmpdirectory
检查/tmp目录大小
#df-h/tmp
检查磁盘空间:
#df–h
3:CheckingtheSoftwareRequirements
RedHatEnterpriseLinux5andOracleLinux5onLinuxx86andLinuxx86-64requireUpdate2.
3.1:操作系统要求
OracleDatabase11gRelease1(11.1)要求安装在下面版本的操作系统或后续版本中。安装Oracle数据库是必须检查目前操作系统版本是否支持。
■AsianuxServer3SP2
■AsianuxServer4SP3
■OracleLinux4Update7
■OracleLinux5Update2(withRedHatCompatibleKernel)
■OracleLinux5Update5
■OracleLinux6
■OracleLinux6(withRedHatCompatibleKernel)
■OracleLinux7
■OracleLinux7(withtheRedHatCompatibleKernel)
■RedHatEnterpriseLinux4Update7
■RedHatEnterpriseLinux5Update2
■RedHatEnterpriseLinux6
■RedHatEnterpriseLinux7
■SUSELinuxEnterpriseServer10SP2
■SUSELinuxEnterpriseServer11
■SUSELinuxEnterpriseServer12SP1
■NeoKylinLinuxAdvancedServer6
3.2操作系统内核要求
下面仅仅列举了部分内容,更多请见官方文档
■OnOracleLinux4andRedHatEnterpriseLinux4
2.6.9orlater
■OnOracleLinux5Update2withRedHatCompatibleKernel
2.6.18orlater
■OnOracleLinux5Update5withRedHatCompatibleKernel
2.6.18orlater
■OnOracleLinux5Update5withUnbreakableEnterpriseKernel
2.6.32-100.0.19orlater
■OnOracleLinux6
2.6.32-100.28.5.el6.x86_64orlater
■OnOracleLinux6withRedHatCompatibleKernel
2.6.32-71.el6.x86_64orlater
■OnOracleLinux7
3.8.13-33.el7uek.x86_64orlater
■OnOracleLinux7withRedHatCompatibleKernel
3.10.0-54.0.1.el7.x86_64orlater
■OnRedHatEnterpriseLinux5Update2
2.6.18orlater
■OnRedHatEnterpriseLinux5Update5
2.6.18orlater
■OnRedHatEnterpriseLinux6
2.6.32-71.el6.x86_64orlater
■OnRedHatEnterpriseLinux7
3.10.0-54.0.1.el7.x86_64orlater
■OnAsianuxServer3
2.6.18orlater
■OnAsianuxServer4
2.6.32-71.el6.x86_64orlater
查看操作系统内部版本,可以使用下面命令,如下所示,内部版本满足要求。
[root@DB-Server~]#cat/proc/version
Linuxversion2.6.18-274.el5(mockbuild@x86-002.build.bos.redhat.com)(gccversion4.1.220080704(RedHat4.1.2-51))#1SMPFriJul817:36:59EDT2011
[root@DB-Server~]#uname-r
2.6.18-274.el5
3.3:ORACLE软件所要求或依赖的一些包
rpm-q--qf'%{NAME}-%{VERSION}-%{RELEASE}(%{ARCH})\n'binutils\
compat-libstdc++-33\
elfutils-libelf\
elfutils-libelf-devel\
gcc\
gcc-c++\
glibc\
glibc-common\
glibc-devel\
glibc-headers\
ksh\
libaio\
libaio\
libaio-devel\
libgcc\
libstdc++\
libstdc++-devel\
make\
sysstat
[root@DB-Server~]#rpm-q--qf'%{NAME}-%{VERSION}-%{RELEASE}(%{ARCH})\n'binutils\
>compat-libstdc++-33\
>elfutils-libelf\
>elfutils-libelf-devel\
>gcc\
>gcc-c++\
>glibc\
>glibc-common\
>glibc-devel\
>glibc-headers\
>ksh\
>libaio\
>libaio\
>libaio-devel\
>libgcc\
>libstdc++\
>libstdc++-devel\
>make\
>sysstat
binutils-2.17.50.0.6-14.el5(x86_64)
compat-libstdc++-33-3.2.3-61(x86_64)
compat-libstdc++-33-3.2.3-61(i386)
elfutils-libelf-0.137-3.el5(x86_64)
elfutils-libelf-0.137-3.el5(i386)
elfutils-libelf-devel-0.137-3.el5(x86_64)
gcc-4.1.2-51.el5(x86_64)
gcc-c++-4.1.2-51.el5(x86_64)
glibc-2.5-65(x86_64)
glibc-2.5-65(i686)
glibc-common-2.5-65(x86_64)
glibc-devel-2.5-65(x86_64)
glibc-devel-2.5-65(i386)
glibc-headers-2.5-65(x86_64)
ksh-20100202-1.el5_6.6(x86_64)
libaio-0.3.106-5(x86_64)
libaio-0.3.106-5(i386)
libaio-0.3.106-5(x86_64)
libaio-0.3.106-5(i386)
packagelibaio-develisnotinstalled
libgcc-4.1.2-51.el5(x86_64)
libgcc-4.1.2-51.el5(i386)
libstdc++-4.1.2-51.el5(x86_64)
libstdc++-4.1.2-51.el5(i386)
libstdc++-devel-4.1.2-51.el5(x86_64)
make-3.81-3.el5(x86_64)
packagesysstatisnotinstalled
如上检测所示,我们需要安装这些缺少的包:
[root@DB-ServerServer]#rpm-ivhlibaio-devel*
warning:libaio-devel-0.3.106-5.i386.rpm:HeaderV3DSAsignature:NOKEY,keyID37017186
Preparing...###########################################[100%]
1:libaio-devel###########################################[50%]
2:libaio-devel###########################################[100%]
[root@DB-ServerServer]#rpm-ivhsysstat*
warning:sysstat-7.0.2-11.el5.x86_64.rpm:HeaderV3DSAsignature:NOKEY,keyID37017186
Preparing...###########################################[100%]
1:sysstat###########################################[100%]
[root@DB-ServerServer]#
3.4CompilerRequirements
IntelC++Compiler10.1orlaterandtheversionofGNUCandC++compilerslistedunder"PackageRequirements"aresupportedwiththeseproducts
3.5其它软件要求(AdditionalSoftwareRequirements)
这部分建立参考安装文档(里面内容较详细,有些是特殊要求),这里仅仅涉及OracleODBC相关驱动。
在OracleLinux5,RedHatEnterpriseLinux5,andAsianuxServer3中,需要下面3个包的版本
-unixODBC-2.2.11(32-bit)orlater
-unixODBC-devel-2.2.11(64-bit)orlater
-unixODBC-2.2.11(64-bit)orlater
[root@DB-ServerServer]#rpm-ivhunixODBC-2.2.11-7.1.i386.rpm
warning:unixODBC-2.2.11-7.1.i386.rpm:HeaderV3DSAsignature:NOKEY,keyID37017186
Preparing...###########################################[100%]
1:unixODBC###########################################[100%]
[root@DB-ServerServer]#rpm-ivhunixODBC-2.2.11-7.1.x86_64.rpm
warning:unixODBC-2.2.11-7.1.x86_64.rpm:HeaderV3DSAsignature:NOKEY,keyID37017186
Preparing...###########################################[100%]
1:unixODBC###########################################[100%]
[root@DB-ServerServer]#rpm-ivhunixODBC-devel-2.2.11-7.1.i386.rpm
warning:unixODBC-devel-2.2.11-7.1.i386.rpm:HeaderV3DSAsignature:NOKEY,keyID37017186
Preparing...###########################################[100%]
1:unixODBC-devel###########################################[100%]
[root@DB-ServerServer]#rpm-ivhunixODBC-devel-2.2.11-7.1.x86_64.rpm
warning:unixODBC-devel-2.2.11-7.1.x86_64.rpm:HeaderV3DSAsignature:NOKEY,keyID37017186
Preparing...###########################################[100%]
1:unixODBC-devel###########################################[100%]
[root@DB-ServerServer]#
4ConfiguringKernelParametersandResourceLimits
在修改内核参数前,我们先检查、查看这些内核参数的配置值
[root@DB-Server~]#/sbin/sysctl-a|grepsem
kernel.sem=2503200032128
[root@DB-Server~]#/sbin/sysctl-a|grepshm
vm.hugetlb_shm_group=0
kernel.shmmni=4096
kernel.shmall=4294967296
kernel.shmmax=68719476736
[root@DB-Server~]#/sbin/sysctl-a|grepfile-max
fs.file-max=358778
[root@DB-Server~]#/sbin/sysctl-a|grepip_local_port_range
net.ipv4.ip_local_port_range=3276861000
[root@DB-Server~]#/sbin/sysctl-a|greprmem_default
net.core.rmem_default=129024
[root@DB-Server~]#/sbin/sysctl-a|greprmem_max
net.core.rmem_max=131071
[root@DB-Server~]#/sbin/sysctl-a|grepwmem_default
net.core.wmem_default=129024
[root@DB-Server~]#/sbin/sysctl-a|grepwmem_max
net.core.wmem_max=131071
[root@DB-Server~]#
官方文档关于内核参数的推荐值如下截图所示,如果系统里面的配置大于这个值,那么就使用默认的值,不需要修改该参数值。
注意:Ifthecurrentvalueofanyparameterishigherthanthevaluelistedinthistable,thendonotchangethevalueofthatparameter.
在/etc/sysctl.conf中添加如下参数的设置值,如果这一步设置有误,也没有关系,后面安装过程会检测系统参数,提示参数设置有误,不能通过。需要你重新配置。
fs.file-max=6815744
net.core.rmem_default=262144
net.core.rmem_max=4194304
net.core.wmem_default=262144
net.core.wmem_max=1048576
fs.aio-max-nr=1048576
net.ipv4.ip_local_port_range=900065500
kernel.sem=25032000100128
设置完成后执行/sbin/sysctl-p使之理解生效,从而不用重启系统。Oracle11g新增了fixup脚本,在安装过程中,安装程序将会检查推荐的操作系统内核参数设置以及必须的软件包,对于不符合要求的部分将会自动生成runfixup.sh,只需要手动以root用户执行该脚本即可,不需要手动调整配置了。所以这一块即使一些内核参数配置不正确,也可以在后面环境快速处理、验证。
5:创建系统账号和用户组
一般要检查是否存在oracle以及dba、oinstall用户组,如果是新环境,可以直接跳过,如果以前安装过Oracle数据库,那么就必须检查一下。
[root@DB-Server~]#more/etc/oraInst.loc
/etc/oraInst.loc:Nosuchfileordirectory
[root@DB-Server~]#grepoinstall/etc/group
[root@DB-Server~]#grepdba/etc/group
[root@DB-Server~]#
创建用户组dba、oinstall
#/usr/sbin/groupaddoinstall
#/usr/sbin/groupadddba
创建用户oracle
[root@DB-Server~]#idoracle
id:oracle:Nosuchuser
[root@DB-Server~]#/usr/sbin/useradd-goinstall-Gdbaoracle
[root@DB-Server~]#idoracle
uid=500(oracle)gid=500(oinstall)groups=500(oinstall),501(dba)context=root:system_r:unconfined_t:SystemLow-SystemHigh
[root@DB-Server~]#
设置账号密码:
[root@DB-Server~]#passwdoracle
Changingpasswordforuseroracle.
NewUNIXpassword:
BADPASSWORD:itistoosimplistic/systematic
RetypenewUNIXpassword:
passwd:allauthenticationtokensupdatedsuccessfully.
[root@DB-Server~]#
6:修改用户资源限制
[root@DB-Server~]#ulimit-Sn
1024
[root@DB-Server~]#ulimit-Hn
1024
[root@DB-Server~]#ulimit-Su
36848
[root@DB-Server~]#ulimit-Hu
36848
[root@DB-Server~]#ulimit-Ss
10240
[root@DB-Server~]#ulimit-Hs
unlimited
[root@DB-Server~]#
在配置文件/etc/security/limits.conf里面设置
oraclesoftnproc2047
oraclehardnproc16384
oraclesoftnofile1024
oraclehardnofile65536
修改用户验证选项
在/etc/pam.d/login配置文件里面加上下面配置,如果已经存在的,就忽略这些。
sessionrequiredpam_selinux.so
sessionrequired/lib/security/pam_limits.so
7:修改用户配置文件
root用户下:修改/etc/profile文件加入如下参数
if[$USER="oracle"];then
if[$SHELL="/bin/ksh"];then
ulimit-p16384
ulimit-n65536
else
ulimit-u16384-n65536
fi
fi
或是在oracle用户下,修改.bash_profile
if[$USER="oracle"];then
if[$SHELL="/bin/ksh"];then
ulimit-p16384
ulimit-n65536
else
ulimit-u16384-n65536
fi
fi
8:安装目录配置
[root@DB-Server~]#mkdir-p/u01/app/oracle
[root@DB-Server~]#chown-Roracle:oinstall/u01/app/oracle
[root@DB-Server~]#chmod-R775/u01/app/oracle
[root@DB-Server~]#mkdir-p/u01/app/oraInventory
[root@DB-Server~]#chown-Roracle:oinstall/u01/app/oraInventory/
[root@DB-Server~]#chmod-R775/u01/app/oraInventory/
[root@DB-Server~]#
9:修改用户bashshell
以oracle账号登录,修改.bash_profile参数文件
[oracle@DB-Server~]$vi.bash_profile
exportORACLE_BASE=/u01/app/oracle
exportORACLE_HOME=$ORACLE_BASE/product/11.1.0/dbhome_1
exportORACLE_SID=gsp
exportPATH=$ORACLE_HOME/bin:$PATH:$HOME/bin
10:配置VNC
[root@DB-Server~]#rpm-qa|grepvnc
vnc-server-4.1.2-14.el5_6.6
[root@DB-Server~]#vi/etc/sysconfig/vncservers
VNCSERVERS="1:root"
VNCSERVERARGS[1]="-geometry800x600-nolistentcp-nohttpd-localhost"
VNCSERVERS="2:oracle"
VNCSERVERARGS[2]="-geometry800x600-nolistentcp-nohttpd-localhost"
[root@DB-Server~]#su-oracle
[oracle@DB-Server~]$vncserver:2
Youwillrequireapasswordtoaccessyourdesktops.
Password:
Verify:
xauth:creatingnewauthorityfile/home/oracle/.Xauthority
xauth:(stdin):1:baddisplayname"DB-Server.localdomain:2"in"add"command
New'DB-Server.localdomain:2(oracle)'desktopisDB-Server.localdomain:2
Creatingdefaultstartupscript/home/oracle/.vnc/xstartup
Startingapplicationsspecifiedin/home/oracle/.vnc/xstartup
Logfileis/home/oracle/.vnc/DB-Server.localdomain:2.log
在root用户下,设置iptables,添加
-ARH-Firewall-1-INPUT-ptcp-mtcp--dport5901-jACCEPT
-ARH-Firewall-1-INPUT-ptcp-mtcp--dport5902-jACCEPT
-ARH-Firewall-1-INPUT-mstate--stateNEW-mtcp-ptcp--dport1521-jACCEPT
ORACLE11g图形化安装步骤
将安装介质解压到/tmp/database下,然后按照下面步骤安装
$./runInstaller
如果没有OracleSupport账号或不想设置,取消勾选选项。
勾选ServerClass
我们勾选“Advancedinstall”
此处设置字符集,SGATarget等。
Qwe123456
[root@DB-ServerServer]#/u01/oraInventory/orainstRoot.sh
Changingpermissionsof/u01/oraInventory.
Addingread,writepermissionsforgroup.
Removingread,write,executepermissionsforworld.
Changinggroupnameof/u01/oraInventorytooinstall.
Theexecutionofthescriptiscomplete.
[root@DB-ServerServer]#/u01/app/root.sh
RunningOracle11groot.shscript...
Thefollowingenvironmentvariablesaresetas:
ORACLE_OWNER=oracle
ORACLE_HOME=/u01/app
Enterthefullpathnameofthelocalbindirectory:[/usr/local/bin]:
Copyingdbhometo/usr/local/bin...
Copyingoraenvto/usr/local/bin...
Copyingcoraenvto/usr/local/bin...
Creating/etc/oratabfile...
Entrieswillbeaddedtothe/etc/oratabfileasneededby
DatabaseConfigurationAssistantwhenadatabaseiscreated
Finishedrunninggenericpartofroot.shscript.
Nowproduct-specificrootactionswillbeperformed.
Finishedproduct-specificrootactions.
[root@DB-ServerServer]#
至此安装完成,然后测试验证,必要的话,关闭VNC服务,修改iptables设置。
相关文章推荐
- CentOS 6.x 下安装oracle11g R2
- oracle单表选择率(selectivity)——计算执行计划的基数
- MySQL和ORACLE的虚拟表DUAL
- Oracle只读权限(12c新特性)
- CentOS Oracle11gR2 设置开机自动启动
- [转]ORACLE 动态执行SQL语句
- oracle 学习笔记(2)创建表空间及用户授权
- 关于oracle的sql语句中 for update 的使用,以及存在的问题
- 解决Oracle客户端和服务端字符集匹配问题
- oracle数据库表中,某个字段是varchar2类型的但其实存的是数字,这样安装该字段排序,排出来的顺序是不对的,sql语句怎么写就可以排序了?
- oracle cast multiset table 语法演示
- oracle 的sql,查询时间为某年某月某日某时某分某秒等的记录,data或者TIMESTAMP(6)类型的字段
- 关于ruby连接oracle报错
- CENTOS6.6上搭建单实例ORACLE12C
- oracle12c各个版本对其需要的依赖包及系统参数的修改
- Oracle round函数是什么意思?怎么运用?
- Oracled的OCA、OCP、OCM详细介绍
- CentOS6安装 Oracle11gr2
- Oracle 作业设置完不执行解决
- oracle中的tablespace的概念及创建