install Oracle 11G on Oracle Enterprise Linux 7 OEL7.docx

上传人:b****5 文档编号:8379396 上传时间:2023-01-30 格式:DOCX 页数:17 大小:467.50KB
下载 相关 举报
install Oracle 11G on Oracle Enterprise Linux 7 OEL7.docx_第1页
第1页 / 共17页
install Oracle 11G on Oracle Enterprise Linux 7 OEL7.docx_第2页
第2页 / 共17页
install Oracle 11G on Oracle Enterprise Linux 7 OEL7.docx_第3页
第3页 / 共17页
install Oracle 11G on Oracle Enterprise Linux 7 OEL7.docx_第4页
第4页 / 共17页
install Oracle 11G on Oracle Enterprise Linux 7 OEL7.docx_第5页
第5页 / 共17页
点击查看更多>>
下载资源
资源描述

install Oracle 11G on Oracle Enterprise Linux 7 OEL7.docx

《install Oracle 11G on Oracle Enterprise Linux 7 OEL7.docx》由会员分享,可在线阅读,更多相关《install Oracle 11G on Oracle Enterprise Linux 7 OEL7.docx(17页珍藏版)》请在冰豆网上搜索。

install Oracle 11G on Oracle Enterprise Linux 7 OEL7.docx

installOracle11GonOracleEnterpriseLinux7OEL7

ThisarticlepresentshowtoinstallOracle11GonOracleEnterpriseLinux7(OEL7).

ReadfollowingarticlehowtoinstallOracleEnterpriseLinux7:

 InstallOracleLinux7(OEL7) (forcomfortset2GmemoryforyourvirtualmachinebeforeproceedingwithOraclesoftwareinstallation).

InstallationsoftwareisavailableonOTNversion11.2.0.1ormetalink11.2.0.4.InthisinstallationI’mpresentinginstallationfor11.2.0.4butforpreviousversion11.2.0.Xitshouldn’tbedifferent.

OraclesoftwarewhichIverified

release11.2.0.4

p13390677_112040_Linux-x86-64_1of7.zip

p13390677_112040_Linux-x86-64_2of7.zip

OSconfigurationandpreparation

OSconfigurationisexecutedasroot.Tologinasrootjustexecutefollowingcommandinterminal.

su-root

Addgroups

--requiredgroups

/usr/sbin/groupadd-g501oinstall

/usr/sbin/groupadd-g502dba

/usr/sbin/groupadd-g503oper

AdduserOracle

/usr/sbin/useradd-u502-goinstall-Gdba,operoracle

Changepasswordforuser

passwdoracle

Addkernelparametersto/etc/sysctl.conf

kernel.shmmni=4096

kernel.shmmax=4398046511104

kernel.shmall=1073741824

kernel.sem=25032000100128

fs.aio-max-nr=1048576

fs.file-max=6815744

net.ipv4.ip_local_port_range=900065500

net.core.rmem_default=262144

net.core.rmem_max=4194304

net.core.wmem_default=262144

net.core.wmem_max=1048586

Applykernelparameters

/sbin/sysctl-p

Addfollowinglinestosetshelllimitsforuseroracleinfile/etc/security/limits.conf

oraclesoftnproc131072

oraclehardnproc131072

oraclesoftnofile131072

oraclehardnofile131072

oraclesoftcoreunlimited

oraclehardcoreunlimited

oraclesoftmemlock50000000

oraclehardmemlock50000000

The“/etc/hosts”filemustcontainafullyqualifiednamefortheserver.

Forexample.

127.0.0.1oel7localhostlocalhost.localdomain

Modify.bash_profileforuseroracleinhishomedirectory

#OracleSettings

exportTMP=/tmp

exportORACLE_HOSTNAME=

exportORACLE_UNQNAME=ORA11G

exportORACLE_BASE=/ora01/app/oracle

exportORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1

exportORACLE_SID=ORA11G

PATH=/usr/sbin:

$PATH:

$ORACLE_HOME/bin

exportLD_LIBRARY_PATH=$ORACLE_HOME/lib:

/lib:

/usr/lib;

exportCLASSPATH=$ORACLE_HOME/jlib:

$ORACLE_HOME/rdbms/jlib;

aliascdob='cd$ORACLE_BASE'

aliascdoh='cd$ORACLE_HOME'

aliastns='cd$ORACLE_HOME/network/admin'

aliasenvo='env|grepORACLE'

umask022

Checkwhichpackagesareinstalledandwhicharemissing

rpm-q--qf'%{NAME}-%{VERSION}-%{RELEASE}(%{ARCH})\n'binutils\

elfutils-libelf\

elfutils-libelf-devel\

gcc\

gcc-c++\

glibc\

glibc-common\

glibc-devel\

glibc-headers\

ksh\

libaio\

libaio-devel\

libgcc\

libstdc++\

libstdc++-devel\

make\

sysstat\

unixODBC\

unixODBC-devel

Inmycaseitreturnsfollowing

binutils-2.23.52.0.1-12.el7(x86_64)

elfutils-libelf-0.157-2.el7(x86_64)

packageelfutils-libelf-develisnotinstalled

gcc-4.8.2-3.el7(x86_64)

gcc-c++-4.8.2-3.el7(x86_64)

glibc-2.17-36.el7(x86_64)

glibc-common-2.17-36.el7(x86_64)

glibc-devel-2.17-36.el7(x86_64)

glibc-headers-2.17-36.el7(x86_64)

packagekshisnotinstalled

libaio-0.3.109-9.el7(x86_64)

packagelibaio-develisnotinstalled

libgcc-4.8.2-3.el7(x86_64)

libstdc++-4.8.2-3.el7(x86_64)

libstdc++-devel-4.8.2-3.el7(x86_64)

make-3.82-19.el7(x86_64)

sysstat-10.1.5-1.el7(x86_64)

packageunixODBCisnotinstalled

packageunixODBC-develisnotinstalled

Therearetwooptionstoinstallmissingpackages

▪Youneedtoinstallmissingfromdvd.Justmountitandinstallmissingpackagesusingrpm-Uvhcommandfromdirectory/Packages.

NOTE–I’musingx86_64versionofpackages

rpm-Uvhelfutils-libelf-devel*.x86_64.rpm

rpm-Uvhlibaio-devel*.x86_64.rpm

rpm-UvhunixODBC*.x86_64.rpm

rpm-Uvhksh*.x86_64.rpm

▪Runyuminstallcommandformissingpackages

--examplehowtoinstallmanypackages

yuminstallelfutils-libelf-devel\

ksh\

libaio-devel\

unixODBC*

Createdirectorystructurefordatabasesoftware

▪ORACLE_BASE–/ora01/app/oracle

▪ORACLE_HOME–/ora01/app/oracle/product/11.2.0/db_1

mkdir-p/ora01/app/oracle/product/11.2.0/db_1

chownoracle:

oinstall-R/ora01

Disablesecurelinuxbyeditingthe“/etc/selinux/config”file,makingsuretheSELINUXflagissetasfollows.ItrequiresREBOOTtobeeffective!

!

!

SELINUX=permissive

InOracleEnterpriseLinux7/tmpdataisstoredontmpfswhichconsumesmemoryandistoosmall.TorevertitbacktostoragejustrunfollowingcommandandREBOOTmachinetobeeffective.

systemctlmasktmp.mount

Installdatabasesoftware

Let’sstartwithdatabasesoftwareinstallationasoracleuser.

su-oracle

--unzipsoftware11.2.0.4

unzipp13390677_112040_Linux-x86-64_1of7.zip

unzipp13390677_112040_Linux-x86-64_2of7.zip

--Idefined4aliasesin.bash_profileofuseroracletomake

--administrationheaven:

[oracle@oel7~]$aliasenvocdobcdohtns

aliasenvo='env|grepORACLE'

aliascdob='cd$ORACLE_BASE'

aliascdoh='cd$ORACLE_HOME'

aliastns='cd$ORACLE_HOME/network/admin'

--runaliascommandenvotodisplayenvironmentsettings

envo

ORACLE_UNQNAME=ORA11G

ORACLE_SID=ORA11G

ORACLE_BASE=/ora01/app/oracle

ORACLE_HOSTNAME=

ORACLE_HOME=/ora01/app/oracle/product/11.2.0/db_1

--runaliascommandcdobandcdohtocheckORACLE_BASE,ORACLE_HOME

[oracle@oel7~]$cdob

[oracle@oel7oracle]$pwd

/ora01/app/oracle

[oracle@oel7db_1]$cdoh

[oracle@oel7db_1]$pwd

/ora01/app/oracle/product/11.2.0/db_1

--runinstallation

./runInstall

1.Uncheckcheckbox“IwishtoreceivesecurityupdatesviaMyOracleSupport”andthenclick“Next”button.

2.Ignorefollowingmessageandclick“Yes”button.

3.Select“Skipsoftwareupdates”andclick“Next”button.

4.Select“Createandconfigureadatabase”thenclick“Next”button.

5.Select“ServerClass”thenclick“Next”button.

6.Select“Singleinstancedatabaseinstallation”andclick“Next”button.

7.Select“TypicalInstall”andclick“Next”button.

8.Enterdatabasename,administrationpasswordforuserandclick“Next”button.

9.Justclick“Next”button.

10.Checkcheckbox“IgnoreAll”toignorethiserror.Thenclick“Next”button.

11.Justclick“Yes”buttontocontinuewithinstallation.

12.Summaryscreenjustbeforeinstallation.Click“Install”button.

13.Boringinstallation…

14.Ireceivedfollowingerrorduringlinkingbinaries

Tofixthiserroredit$ORACLE_HOME/sysman/lib/ins_emagent.mk,searchfortheline

$(MK_EMAGENT_NMECTL)

andreplacethelinewith

$(MK_EMAGENT_NMECTL)-lnnz11

thenclick“Retry”button

15.DatabaseConfigurationwillstartandcreatedatabaseforyou.

16.Youshouldseesummaryscreenforyournewdatabase.Click“OK”buttontocontinuewithinstallation.

17.Inthe“middle”ofinstallationyouwillbeaskedtorun2scriptsasuserroot.whenscriptsareexecutedjustclick“OK”button.Installationwillproceed.

--executescripts

/ora01/app/oraInventory/orainstRoot.sh

/ora01/app/oracle/product/11.2.0/db_1/root.sh

18.Installationcompleted.Justclick“Close”button.

Postinstallationsteps

Editthe“/etc/oratab”filetosetrestartflagforORA11Gto‘Y’.

ORA11G:

/u01/app/oracle/product/11.2.0/db_1:

Y

Haveafun 

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 表格模板 > 合同协议

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1