您好,欢迎访问三七文档
当前位置:首页 > IT计算机/网络 > 数据库 > linux_oracle10g安装
Unique检查系统的硬件需求是否满足物理内存:Atleast1024MBofphysicalRAM察看物理内存:grepMemTotal/proc/meminfo交换空间:1GBofswapspace(ortwicethesizeofRAM)RAMSwapSpaceBetween1024MBand2048MB1.5timesthesizeofRAMBetween2049MBand8192MBEqualtothesizeofRAMMorethan8192MB0.75timesthesizeofRAM察看交换空间:grepSwapTotal/proc/meminfo临时空间:400MBofdiskspaceinthe/tmpdirectory察看临时空间:df-k/tmp安装硬盘空间:3-4G察看CPU:grepmodelname/proc/cpuinfo配置系统内核参数以ROOT用户登录UniqueORACLE数据库安装需要两个用户组:oinstallanddbaORACLE数据库用户:oracle/usr/sbin/groupaddoinstall/usr/sbin/groupadddba创建操作系统用户:oracle:/usr/sbin/useradd-goinstall-Gdbaoracle设置ORACLE用户密码:/usr/bin/passwdoracle编辑用户配置文件,设置环境变量Vi/home/oracle/.bash_profileumask022PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/binUniqueLD_LIBRARY_PATH=/usr/lib:/usr/X11R6/libORACLE_BASE=/u01/app/oracleORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1ORACLE_SID=orclPATH=$ORACLE_HOME/bin:$PATHexportPATHLD_LIBRARY_PATHexportORACLE_BASEORACLE_HOMEORACLE_SIDUniqueUnique以ROOT账号创建ORACLE软件的安装目录,分配权限让ORACLE用户访问mkdir-p/u01/app/oraclechown-Roracle:oinstall/u01/appchmod-R775/u01/app检查相关的操作系统补丁包是否完整安装:RedHatEnterpriseLinux4.0andAsianux2.0:binutils-2.15.92.0.2-13.EL4compat-db-4.1.25-9compat-libstdc++-296-2.96-132.7.2control-center-2.8.0-12gcc-3.4.3-22.1.EL4gcc-c++-3.4.3-22.1.EL44glibc-2.3.4-2.9glibc-common-2.3.4-2.9Uniquegnome-libs-1.4.1.2.90-44.1libstdc++-3.4.3-22.1libstdc++-devel-3.4.3-22.1make-3.80-5pdksh-5.2.14-30sysstat-5.0.5-1xscreensaver-4.18-5.rhel4.2setarch-1.6-1察看:rpm–qa|greppkgName安装:rpm–ivhpkgname设置固定机器名和IPSettingtheORACLE_HOSTNAMEEnvironmentVariablecat/etc/hosts修改系统内核参数:Unique/etc/sysctl.confkernel.shmall=2097152kernel.shmmax=2147483648kernel.shmmni=4096kernel.sem=25032000100128fs.file-max=65536net.ipv4.ip_local_port_range=102465000net.core.rmem_default=1048576net.core.rmem_max=1048576net.core.wmem_default=262144net.core.wmem_max=262144UniqueUnique/sbin/sysctl-p增加ORACLESHELL限制值:1.Addthefollowinglinestothe/etc/security/limits.conffile:oraclesoftnproc2047oraclehardnproc16384oraclesoftnofile1024oraclehardnofile65536Unique2.Addoreditthefollowinglineinthe/etc/pam.d/loginfile,ifitdoesnotalreadyexist:sessionrequired/lib/security/pam_limits.sosessionrequiredpam_limits.soLoginasoperatingsystemuseroracle.YoumustinstallthesoftwarefromanXWindowSystemworkstation,anXterminal,oraPCorothersystemwithXserversoftwareinstalled.UniqueInstallingOracleDatabase10gonLinuxToinstalltheOraclesoftware,youmustusetheGUIinstaller.1.LogintotheLinuxboxasuseroracleandmounttheOracleDatabase10gCD.ChangedirectorytotheCDandexecutethescript/mnt/cdrom/runInstallerfromyourhomedirectory:/mnt/cdrom/runInstallerUniqueUnique2.AttheWelcomewindow,clickNext.UniqueUnique3.YouneedtospecifyyourInventorydirectory.Thelocationshouldbesetto/u01/app/oracle/oraInventory.AcceptthedefaultOperatingSystemgroupname,oinstall.ThenclickNext.UniqueUnique4.Thefollowingwindowappears.Leavethiswindowopen.5.YouneedtoexecuteorainstRoot.shastherootuser.OpenaterminalwindowUniqueandenterthefollowingcommands:surootpasswordcd/u01/app/oracle/oraInventory./orainstRoot.shexitexit6.SwitchbacktotheUniversalInstallerwindowandclickContinue.Unique7.AttheSpecifyFileLocationswindow,changethepathto/u01/app/oracle/product/10.1.0/db_1.ThenclickNext.UniqueUnique8.MakesuretheInstallationTypeEnterpriseEditionisselectedandclickNext.Unique9.Theinstallernowverifiesthatthesystemmeetsalltheminimumrequirementsforinstallingandconfiguringthechosenproduct.Pleasecorrectanyreportedissuesbeforecontinuing.Whenthechecksuccessfullycompletes,clickNext.UniqueUnique10.Youwanttocreateastarterdatabase.MakesurethatCreateastarterdatabaseandGeneralPurposearebothselected.ThenclickNext.UniqueUnique11.Enterorcl.oracle.comintheGlobalDatabaseNamefield,andselecttheCreatedatabasewithexampleschemascheckbox.ThenclickNext.Ifyouplantoperformanyofthemultilinguallessons,youshouldselectUnicodestandardUTF-8AL32UTF8asthedatabasecharacterset.UniqueUnique12.TheSelectDatabaseManagementOptionwindowenablesyoutochoosebetweenDatabaseControlorGridControlofyourdatabase.Inthisexample,youacceptthedefault,whichisDatabaseControl.ClickNext.UniqueUnique13.Specifythedatabasefilelocationas/u01/app/oracle/oradataandclickNext.UniqueUnique14.IntheSpecifyBackupandRecoveryOptionswindow,youdonotwanttoenableautomatedbackupsatthistime.AcceptthedefaultandclickNext.UniqueUnique15.Enterandconfirmapasswordforallaccounts,andthenclickNext.Unique16.ReviewtheSummarywindowtoverifywhatistobeinstalled.ThenclickInstall.UniqueUnique17.Theprogresswindowappears.Unique18.TheConfigurationAssistantswindowappears.UniqueUnique19.Yourdatabaseisnowbeingcreated.20.Whenthedatabaseiscreated,clickOK.Unique21.WhentheSetupPrivilegeswindowappears,openanewterminalwindow.Unique22.Youneedtoexecuteroot.shastherootuser.Fromyourterminalwindow,enterthefollowingcommands:cd$ORACLE_BASE/product/10.1.0/db_1surootpassword./root.shexitexitUniqueUnique23.TheEndofInstallationsummaryappears.Theportsshowninthesummarycanbefoundin$ORACLE_BASE/product/10.1.0/db_1/portlist.ini.ClickOK.UniqueUnique24.ClickYestoexit.
本文标题:linux_oracle10g安装
链接地址:https://www.777doc.com/doc-6105172 .html