Oracle+10g+for+linux+X86的SILENT安装

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

Oracle10gforlinuxX86的SILENT安装RedHatEnterpriseLinuxServerrelease5.1(Tikanga)1、首先是检查系统硬件情况:代码:[root@enterprice64~]#grepMemTotal/proc/meminfoMemTotal:8178836kB[root@enterprice64~]#grepSwapTotal/proc/meminfoSwapTotal:8385888kB[root@enterprice64~]#freetotalusedfreesharedbufferscachedMem:81788365297744288109201225124773424-/+buffers/cache:4018087777028Swap:838588808385888[root@enterprice64~]#df-k/dev/shmFilesystem1K-blocksUsedAvailableUse%Mountedontmpfs4089416040894160%/dev/shm[root@enterprice64~]#df-k/tmpFilesystem1K-blocksUsedAvailableUse%Mountedon/dev/sda71015398842813292017405%/[root@enterprice64~]#df-k/dataFilesystem1K-blocksUsedAvailableUse%Mountedon/dev/sda920727506439332281926429523%/data要求内存不小于1G,在内存小于2G,SWAP应该是内存的1.5倍,内存2到8G,SWAP和内存相同大小即可,内存超过8G,SWAP是内存的0.75倍。由于10g对于共享内存要求变大,因此系统共享内存应该大于512*进程数,如果共享内存不足的话,会造成ORA-845或ORA-1078错误。要求临时表空间不少于200M,安装目录应大于4G。2、下面检查系统软件情况:代码:[root@enterprice64~]#cat/proc/versionLinuxversion2.6.18-8.el5(mockbuild@ca-build14)(gccversion4.1.120070105(RedHat4.1.1-52))#1SMPTueJun523:25:19EDT2007[root@enterprice64~]#uname-aLinuxenterprice642.6.18-8.el5#1SMPTueJun523:25:19EDT2007x86_64x86_64x86_64GNU/Linux[root@enterprice64~]#more/etc/issueEnterpriseLinuxEnterpriseLinuxServerrelease5(Carthage)Kernelronanm对操作系统要求:Asianux2.0Asianux3.0OracleEnterpriseLinux4.0OracleEnterpriseLinux5.0RedHatEnterpriseLinux4.0RedHatEnterpriseLinux5.0SUSEEnterpriseLinux10.0系统内核为2.6.9(Asianux2.0、OracleEnterpriseLinux4.0、RedHatEnterpriseLinux4.0),2.6.18(Asianux3.0、OracleEnterpriseLinux5.0、RedHatEnterpriseLinux5.0),或2.6.16.21(SUSEEnterpriseLinux10.0)。对于ES4,oracle需要一下包:binutils-2.17.50.0.6compat-libstdc++-33-3.2.3compat-libstdc++-33-3.2.3(32bit)elfutils-libelf-0.125elfutils-libelf-devel-0.125gcc-4.1.1gcc-c++-4.1.1glibc-2.5-12glibc-2.5-12(32bit)glibc-common-2.5glibc-devel-2.5glibc-devel-2.5-12(32bit)libaio-0.3.106libaio-0.3.106(32bit)libaio-devel-0.3.106libgcc-4.1.1libgcc-4.1.1(32bit)libstdc++-4.1.1libstdc++-4.1.1(32bit)libstdc++-devel4.1.1make-3.81sysstat-7.0.0通过rpm–qa查询是否所有需要的包都以及安装,如果没有安装的通过rpm–ivh命令进行安装。3、检查网络情况:代码:[root@enterprice64~]#cat/etc/nsswitch.conf|grephosts#hosts:dbfilesnisplusnisdnshosts:filesdns[root@enterprice64~]#hostnameenterprice64[root@enterprice64~]#domainname(none)[root@enterprice64~]#more/etc/hosts#Donotremovethefollowingline,orvariousprograms#thatrequirenetworkfunctionalitywillfail.127.0.0.1enterprice64localhost.localdomainlocalhost172.25.13.195enterprice644、建立Oracle用户和dba组:代码:[root@enterprice64~]#groupaddoinstall[root@enterprice64~]#groupadddba[root@enterprice64~]#groupaddasadmin[root@enterprice64~]#useradd-goinstall-Gdba,asadminoracle[root@enterprice64~]#passwdoracleChangingpasswordforuseroracle.NewUNIXpassword:BADPASSWORD:itisbasedonadictionarywordRetypenewUNIXpassword:passwd:allauthenticationtokensupdatedsuccessfully.[root@enterprice64~]#idnobodyuid=99(nobody)gid=99(nobody)groups=99(nobody)context=root:system_r:unconfined_t:SystemLow-SystemHigh建立oinstall、dba和asadmin组。创建好用户后,检查nobody用户是否存在。不存在的话,建立该用户。5、检测并修改系统的核心参数,编辑/etc/sysctl.conf文件,添加下面的配置,保存后重启系统。注意,如果系统默认的配置比这里给出的值大,不要修改原有配置。fs.file-max=512*PROCESSES(128):65536kernel.shmall=2097152kernel.shmmax=2147483648kernel.shmmni=4096kernel.sem=25032000100128net.ipv4.ip_local_port_range=102465000net.core.rmem_default=4194304net.core.rmem_max=4194304net.core.wmem_default=262144net.core.wmem_max=2621446、配置oracle用户环境变量和shell限制,编辑/etc/security/limits.conf,添加下面的内容:oraclesoftnproc2047oraclehardnproc16384oraclesoftnofile1024oraclehardnofile65536编辑/etc/pam.d/login文件,添加下面的内容:sessionrequired/lib/security/pam_limits.sosessionrequiredpam_limits.so7、编辑oracle用户目录下的.bashrc文件,添加下列环境变量:umask022if[$USER=oracle];thenif[$SHELL=/bin/ksh];thenulimit-p16384ulimit-n65536elseulimit-u16384-n65536fifiexportTMP=/tmpexportTMPDIR=/tmpexportORACLE_BASE=/data/oracleexportORACLE_SID=ora10gexportORACLE_HOME=/data/oracle/product/10.2.0/db_18、置Oracle10g支持RHEL5的参数因为在官方的Oracle10g是不支持RHEL5的,所以需要改变相关的参数,不然在Oracle10g安装前不能通过检测!网上有两种更改的方法:(本人按照第一种方法安装成功,第二种安装不能成功)第一种:所以要修改版本说明,编辑文件/etc/redhat-release把RedHatEnterpriseLinuxServerrelease5(Tikanga)改成版本4:redhat-4第二种:更改10201_database_linux32.zip解压后的/database/install/oraparam.ini文件。本人比较倾向于第一种,因为这种修改,在Oracle安装时第一次检测可以通过,但安装到一般时,再次检测无法通过,导致安装不成功!(个人观点)####[CertifiedVersions]Linux=redhat-3,SuSE-9,redhat-4,redhat-5,UnitedLinux-1.0,asianux-1,asianux-2]再添加[Linux-redhat-5.0-optional]TEMP_SPACE=80SWAP_SPACE=150MIN_DISPLAY_COLORS=2569、建立安装Oracle所需的目录结构。代码:[root@enterprice64~]#mkdir-p/data/oracle/product/10.2.0/db_1[root@enterprice64~]#chown-Roracle.oinstall/data10、准备工作做完了下面开始进行Silent方式的安装。10.1、设置oraInst.loc文件:[root@enterprice64~]#ls-l/etc/oraInst.loc-rw-rw-r--1oracledba61Oct1917:25/etc/oraInst.loc[root@enterprice64~]#more/etc/oraInst.locinventory_loc=/data/oracle/oraInventory(注意这个目录Oracle用户要有读写权限,否则检查不能通过)inst_group=oinstall确保/etc/oraInst.loc中包含上面的信息,且Oracle包含访问权限。10.2、根据希望安装的数据库类型选择Silent的response_file文件的类似,比如:enterprise.rsp、standard.rsp还是custom.rsp。这里选择enterpise.rsp类型,安装盘中的database/response目录下对应的response文件拷贝出来,根据文件里面的提示对输入值进行修改。比如这个例子中对如下的参数进行设置:U

1 / 20
下载文档,编辑使用

©2015-2020 m.111doc.com 三一刀客.

备案号:赣ICP备18015867号-1 客服联系 QQ:2149211541

×
保存成功