Linux安装-OA环境部署资料_第1页
Linux安装-OA环境部署资料_第2页
Linux安装-OA环境部署资料_第3页
Linux安装-OA环境部署资料_第4页
Linux安装-OA环境部署资料_第5页
已阅读5页,还剩21页未读, 继续免费阅读

付费下载

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

一、LINUX基础安装

1、运行虚拟机,在下列图界面按“回车〃

REDHAT

ENTERPRISELINUX5

-Toinxtal1orupgradeingraphicalRodu.pressthe<ENTER>kc/.

-Toinstallorupgradeintextnode,type:linuxtext<£MTER>.

-lh:cthefunctionkeyslistedbelowfornoneinforwation.

boot:_

2、到此界面后,为检测设备,可选择跳过“Skip”

UeICOMCtoRedHatEnterpriseLinuxServer

1CDFound|

TobegintextingtheCDacdiabefore

installationpressOK.

ChooseSkiptoskiptheMndiatest

andxtarttheinxtd1laiion.

<Tab>/<A1t-Tab>beturrenRIrarntxI<Space>xelectxI<F1Z>nextscreen

3、到下列图界面后,点击“Next"

4、选择"English(English)”

5、选择“U.S.English"

6、提示wInstallationNumber*,选择跳过

7、默认设置点击“Next"

8、在比图,点击“Edit”

9、把"EnableIPv6support*的勾选去掉,然后点击"Next"

10、选择上海时区

11,设置ROOT密码

12、选择wCustomizenow",点击"Next"

13、前五项全部勾选,最后一项“Languages"选择"ChineseSupportz/

14、在此界面,点击“Next”

15、然后就等待正在安装

16、安装好后,点击“Reboot”重启

17、重启后,会在主界面弹出设置,在“Firewall”栏选择"Disabled"

Welcome

License器

AgreementFirewall

,Firewall>bucanuseafirewalltodllowaccesstospecificservicesonyoufcomputer

SELinuxfromothercomputersandpreventunauthorizedaccessfromgoutsxle

worldWhichservices,ifany.doyouwishtoA*OWaccessto?

Kdump

DateandTime

RrewalDisMMed

SetUpSoftware

UpstateS

CreateUser

SoundCard

AdditionalCDs

18、在"SELinux"栏选择"Disabled"

Welcome

License即

AgreementSELinux

FirewallSocunt>EnhancedLmux(SELinux)providesfmr-graineds«cunt/controls

»SELinuxthantheseavailableinatraditx)nalLinuxsystemitcanbesetupina

disdbl&dstAto.ast,t。whichonlywarnsaboutthngswhichwouMbodamod.

Kdump

orafu»/activestateMostpeopleshouldkeepthedefault

DateandTime

SetUpSoftwareSELinuxSettingDisatMed

Updates

CreateUser

SoundCard

AdditionalCDs

19、点击“Finish”完成设置

FirewallAaas<insertanyAdditionalsoftwareinstallcds就thistimo

SELinux

Kdump

DateandTimeAdditionalCDsInstai

S«tUpSoftware

Updates

CreateUser

SoundCard

>AddRIonalCDs

I•RackJBnish

二、ORACLE安装部署

2.1、创立用户和用户组

groupaddoinstall〃创立组oinstal1

groupadddba〃创立纽dba

useradd-goinstall-Gdbaoracle〃创立用户oracle,并且主组群为oinstall,附属组群为dba

passwdoracle〃修改oracle用户登录密码

[rootQlocalhost-]#groupaddoinstall

[root@localhost〜]#groupadddba

(root@localhcst〜]#useradd-gcinstall-Gdbacracle

[root@localhost〜]#passwdcracle

Changingpasswordforuseroracle.

NewUNIXpassword:

BADPASSWORD:itisbasedonadictionaryword

RetypenewUNIXpassword:

passwd:allauthenticationtokensupdatedsuccessfully.

[rouL@luGalhu3L-]#|

2.2、建立安装目录并设置权限

mkdir-p/opt/app/oracle/product/10.2.O/db_l〃建立安装目录

chown-Roracle:oinstal1/opt〃将opt目录的使用权限赋给oracle及组

oinstall

chmod-Rfug+rwx/opt〃将opt的操作权限给文件所有者及同组用户

[root@localhostopt]#mkdir-p/opt/app/oracle/product/10.2.0/db_l

[root@localhostopt]#chcwn-Rcracle:cinstall/ept

[root@localhostopt]#chircd-Pfug+rux/opt

[root@localhostopt]#|

2.3、配置系统内核参数

2.3.1、vi/etc/sysctl.conf编辑文件。将原文件中kernel,shmal和kernel,shmmax两个参数

注释掉。并在文件最后添加以下参数设置,如下列图所示

#1G内存参数值

kernel,shmmax=1073741824

kernel,shmmni=4096

kernel.shmall=257144

#8G内存参数值

kernel,shmmax=8589934592

kernel,shmmni=4096

kernel,shmall=2097152

#16G内存参数值

kernel,shmmax/p>

kernel,shmmni=4096

kernel,shmal1=4194304

kernel,sem=25032000100128

net.ipv4.iplocalportrange=102465000

net.core.rmem_defau11=4194304

net.core.rmem_max=4194304

net.core,wmemdefault=262144

net.core.wmem_max=262144

#Controlsthemaximumsharedsegmentsize,inbyres

me1.shmmax=42949672951

产Controlsthemaximumnuirberofsharedmemorysegments,inpages

I#kernel.shmall-2684354561

kernel.shmmax=1073741824

kernel.shmmni=4096

kernel.shmall=257144

kernel.sem=25032000100128

let.ipv4.ip_local_port_range=102465000

let.core.rmem_default=4194304

let.core.rmem_max=4194304

let.core.wmem_default»262144

let.core.wmemmax=262144

说明:内存参数选择相应的内存数据,以下直接复制黏贴过去

2.3.2、vi/etc/security/1imits.conf修改文件。在文件最后添加以下内容

oraclesoftmemlockuniimited

oraclehardmemlockuniimited

oraclesoftnproc2047

oraclehardnproc16384

oraclesoftno

oraclehard

#Endoffile

oraclesoftireirlcckunlimited

oraclehardtnemlockunliirited

oraclesoftnproc2047

oraclehardnproc16384

oraclesoftnofile1024

oraclehardncfile65536

注:中间只有一个空格

2.4、修改环境变量

vi/home/oracle/.bash_profile,然后参加以下代码

exportORACLEBASE=/opt/app/orac1e

exportORACLE_HOME=/opt/app/oi'ac1e/pi'oduct/10.2.O/db_l

exportPATH=$ORACLE_HOME/bin:$ORACLE_HOME/Apache/Apache/bin:SPATH

exportORACLEOWNER=oracle

exportORACLE_SID=orac1e

exportORACLE_TERM=xterm

exportLDLIBRARYP?\TH=/opt/app/oracle/product/10.2.O/db1:$LDLIBRARYP.ATH

exportPATH=/opt/app/oracle/product/10.2.0/db_l/bin:SPATH

exportNLS_LANG=AMERICAN

umask022

expertORACLE_BASE»/opt/app/oracle

expertCPACLE_HCME=/cpt/app/oracle/prc<lucr/10.2.0/db_l

expertPATH=$CRACLE_3OME/bin:$ORACLE_HOME/Apache/Apache/bin:$PATH

exportORACLE_OWNEP=crac1e

exportORACLE_SIZ)=cracle

exportORACLE_TERM=xtenr

exportLD_LIBRARY_EATH=/opt/app/oracle/product/10.2.0/db_l:$LD_LIBRARY_PATH

exportPATH=/opt/app/oracle/prcduct/10.2.0/db_l/bin:$PATH

expertNLS_LANG-AMERICAN

umask022

执行reboot命令重启操作系统

2.5、安装ORACLEDATABASE

2.5.1准备安装介质

编辑vi/etc/redhat-release文件

注释RedHatEnterpriseLinuxServerrelease5.4(Tikanga)

在文档最后添加redhat-4o如下列图所示:

#RedHatEnterpriseLinuxServerrelease5.5(Tikanga)

redhat-4|

将安装介质上传至效劳器/home/oracle目录下,并解压

zip10201_database_linux32.zip

[root@localho3toracle]#cd/hcme/oracle/

[root@localhostoracle]#unzip10201_database_linux32.zip|

给安装文件赋权限

chown-Roracle:oinstall/home/orac1e/database

[root@localhostoracle]#chcwn-Rcracle:cinstall/home/oracle/database/

[root@localhostoracle]#|

执行查询脚本,可以查看当前系统环境的数据包是否齐全

rpm-qgccmakebinutilsopenmotifsetarchcompat-dbcompat-gcccompat-gcc-c++

compat-1ibstdc++compat-1ibstdc++-devel

弹不出窗口主要是因为openmotif的3个包未安装成功,其依赖的包为1ibXp开头的4个包

[root@localhostoracle]#rpm-qgccmakebinutilsopenmctifsetarchcompat-dbc

ompat-gcccon^at-gcc-c++compat-libstdc++compat-libstdc++-devel

gcc-4.1.2-48.el5

make-3.81-3.el5

binutils-.6-14.el5

packageopemnotifisnotinstalled

setarch-2.0-1.1

packagecompat-dbisnotinstalled

packagecompat-gccisnotinstalled

packagecompat-gcc-c++isnotinstalled

packagecompat-1ibstdc++isnotinstalled

packagecompat-libstdc++-develisnotinstalled

[root@localhcstoracle]#|

如果有局部包未安装,可在/media/xxx/Server中用rpm-Uvhxxxxxxx来安装包。

-Uvh升级包-ivh安装包-e移走包

2.5.2安装OracleDatabase

1)翻开终端窗口执行xhost十命令

#xhost+

2)执行su-oracle切换到oracle用户模式

#su-orac1e

3)运行oracle安装程序

#cd/home/orac1e/database

#./runlnstaller

4)出现下列图后取消“CreateStarterDatabase*勾选项,并点击"Next"按钮

OracleDatabase10gInstallation-InstallationMethod

SelectInstallationMethod

*BasicInstallation

PerformfullOracleDatabase10ginstallatiorwithstandardconfigurationoptionsrequiringminimal

inpjt.Thisoptionusesfilesystemforstorage,andasinglepasswordforalldatabaseaccounts

OracleHomeLocation:[/opt/app/oraae/produn"O2O/db-lBrowse…

InstallationType:[EnterpriseEdition(13GB)]

UNIXDBAGroup:(oinstall

rCreateStarterDatabase(additional720MB)

GlobalDatabaseName:[crcl

DatabasePassword:ConfirmPassword:|

ThispasswordisusedfcrtheSYS,SYSTEM,SYSMAN,andDBSNMPaccounts

「AdvancedInstallation

AllcwsadvancedselectionssuchasdifferentpasswordsfortheSYS,SYSTEM,SYSMAN.andDBSNMP

accounts,databasecharaaerset,productlanguages,automatedbackups,custominstallation,and

aliernativestorageoptionssuchasAutomaticStorageManagement.

HelpCancelj

ORACLE

5)出现下列图后,继续点击“Next"按钮

|KOracleUniversalInstaller:SpecifyInventorydirectoryandcredentialsX

SpecifyInventorydirectoryandcredentials

YouarestaningyourfirstInstallationonthishost.Aspanofthisinstall,youneedtospecifya

directoryforInstallerfiles.Thisiscalledthe"Inventorydirectory.WithintheInventorydirectorythe

Installerautomaticairysetsupsubdirectoriesforeachproducttocontaininventorydaiaandwill

consumetopically150Kilobytesperproduct.

Enterthefullpathoftheinventoydirectory

|/opt/app/orade/oralnventoryBrowse...)

YoucanspecifyanOperatingSystemgroupthathaswritepermissiontotheaboveinventorydirectory

Youcanleavethefieldblankif\ouwanttoperformtheaboveoperationsasaSuperuser.

SpecifyOperatingSystemgroupname

|olnstall

HelpInstalledproducts,iInstallCancel\

ORACL€

6)在下列图中检查系统环境配置。如检查通过,则点击“Nexl〃。

OracleUniversalInstaller:Product-SpecificPrerequisiteChecksX

Product-SpecificPrerequisiteChecks

Theinstallerverifiesthatyourenvironmentmeetsallortheminimumrequirementsforinstallingand

configuringtheproductsthatyouhavechosentoinstall.Youmustmanuallyverifyandconfirmthe

itemsthatareflaggedwrthwarringsanditemsthatrequiremanualchecks.Fordetailsabout

performingthesechecks,clicktieitemandreviewthedetailsintheboxatthebottomofthewindow.

CheckTypeStatus

CheckingNetworkConfiguratioirequirements..AutomaticK]UserVerified

ValidatingORACLE.BASElocation(ifset)..AutomaticPSucceeded

々丁广匕如门CracldHcmaqahJtGr半;

Retry|Stop

0requirementstobeverified

CheckingNetworkConfigurationrequirements...I

Checkcomplete.Theoverallresultofthischeckis:Notexecuted<<<<

HelpJInstalledproducts..Back|Next?iInstallCancelj

ORACI_e

图3-4

7)在下列图中点击“Install”按钮,开始进行Oracle安装。

yOracleUniversalInstaller:Summary

Summary

OracleDatabase10g.0

O-GlobalSettings

Source:/home/oracle/database/install/../stage/products.xml

-OracleHome:/opt/app/orade/product/10.2.0/db_l(OraDblOg.homel)

-InstallationTvpe:EnterpriseEdition

E>-ProductLanguages

-English

6SpaceRequirements

Required1.74GB(includes130MBtemporary):Available29.5GB

^-NewInstallations(109products)

-AgentRequiredSupportFiles.0

-AssistantCommonFiles.0

BaliShare1118.00

-BuildtoolsCommonFiles.0

CharacterSetMigrationUtility.0

HelpInstalledProducts...jBackINextf而&II)Cancel

8)开始安装OracleDatabase

9)在出现下列图后,根据提示翻开终端切换到root用户模式。进行到相应的路径,执行

“orainstRoot.sh"、"root,sh”脚本。

root(3)localhost:/opt/app/oracle/product/10.2.0/db_l□x

EilpEditYipw云rminalTah,HHp

[root@local.host]#cd/opt/app/oracle/oralnventory/

ContentslogsorainstRoot.sh

ContentsXMLoralnstal'.er.propertiesoui

install.platformoralnst.l?csessionConfext.ser

frootOlocalhostorainventorb1#/orainstRootsh-N

Changingpermissionsof/op./app/oracie/orainvenToryto770.

Changinggroupnameof/opt/app/oracle/oralnventorytoolnstall.3

Theexecutionofthescriptiscomplete^*****

[root@local.hostoralnventorv]#cd}opt/app/oracle/product/lO.2.0/db1/

[root@localhostdb1]#|./root.sh|

RunningOraclelOroot.snscript..-

4b

Thefollowingenvironmentvariablesaresetas:直接接回车键

ORACLE_OWNER-oracle

ORACLE_HOME=/opt/app/oracle/product/10.2.0/db1

Enterthefullpathnameofrhelocalbindirectorl:[/usr/local./bin]:

Copyingdbhometo/usr/local/bln…

Copyingoraenvto/usr/local/bln...

Copyingcoraenvto/usr/'.ocal/bin…

Creating/etc/oratabfile…二

10)在出现图3-9后,点击“Exit"按钮。

2.6、DBCA创立Oracle数据库实例

1)进入oracle用户,执行DBCA命令,翻开OracleDatabaseConfigurationAssistant如下

列图,点击Next

[root@localhost〜]Hxhost+

accesscontroldisabled,clientscanconnectfromanyhost

[root@localhost*]#su-oracle

[oracle@localhost-]$dbca

DatabaseConfigurationAssistant:Welcome

WelcometoDatabaseConfigurationAssistantforOracledatabase.

TheDatabaseConfigurationAssistantenablesyoutocreateadatabase,configuredatabase

optionsinanexistingdatabase,deleteadatabase,andmanagedatabasetemplates.

M

g

Cancel\Helpi_CBack潴l一"

2)在下列图中选择wCreateDatabasev中点击"Next"

3)在下列图中选择uGeneralPurpose"中点击"Next

4)在下列图中输入OracleSID为"oracle",点击"Next"

5)在下列图中点击“Next”

DatabaseConfigurationAssistant,Step4of12:ManagementOptions-□x

EachOracledatabasemaybemanagedcentrallyusingtheOradaEnterpriseManagerGrid

Controlorlocalh/ushgtheOracleEnterpnseManagerDatabaseControlChoosethe

managementoptionthatyouwouldliketousetomanage»hlsdaiabase.

(^ConfiguretheDatabasewithEnterpriseManager

「UseGriefControlforDatabaseManagemera

ManagementService[NoAgemsFound|

*UseDatabaseControlforDatabaseManagement

「EnableEmailNotifications

OuronlnoMail(SMTP)Sprvpr|

EmailAddress:

rEnableDailyBackup

BackupStartTime:

OSUsername:

Password:

Cancel,iHelpi8Rack|二应鱼二S:)

6)在下列图中配置数据库管理员密码,点击“Next”

DatabaseConfigurationAssistant,Step5of12:DatabaseCredentials

ForsecuniyreasonsyoumusxspecifypasswordsformeTollowinguseraccountsinmenew

database.

名UsetheSamePasswordfor/MlAccounts

Password:卜…….一

ConfirmPassword:卜…|

rUseDifferentPasswords

CancelHelpI

7)在下列图中勾选“",点击"Next”

8)在下列图中按默认设置,点击“Next"

9)出现下列图8配置"FlashRecoveryAreaSize"值,通常按默认值,点击"Next"

10)出现下列图点击“Next"

II)在下列图中点击“Memory"标签,配置Oracle系统内存,点击“AllInitialization

Parameters”按钮配置系统初始化参数。

12)点击wCharacterSets”配置Oracle字符集。点击“Next”。

注:不同的工程所配置内存参数和有不同,该步骤中关于“Oracle内存配置"及"系统初始化

参数值〃的详细设置值。

13)出现下列图点击“Next”

DatabaseConfigurationAssistant,Step11of12:DatabaseStorage-□X

-t]ControlfileDatabaseStorage

-jDatafiles

FromtheDatabaseStoragepage,youcanspecifystorageparameursforthe

&2JRedoLogGroups

databasecreaiion.Tilspagedisplaysatreelistingandsummaryview(mulii-column

lists)toallowyoutochangeandviewthefollowingobjects:

«Controlfiles

・Tablespaces

•Datafiles

・RollbackSegments

・RedoLogGroups

Fromanyobjecitvpefolder,dickCreatetocreaieanewobjectTodeleteanobject

selectthespecificobjectfromwithintheobjecttypefolderandclickDelete.

ImportantIfyouselectadatabasetemplateincludingdatafiles,youwillnotbeableto

addorremovedataIles,tablespaces,orrollbacksegments.Selectingthistypeof

templateallowsyouwchangethefollowing:

«Destinationofthedatafiles

・Controlfilesorloggroups.

CreateDeleteiFileLocationVariables...

Can:el]HelpBack|-extfinishj

14)出现下列图,勾选wCreateDatabase",点击"Finish"

DatabaseConfigurationAssistant,Step12of12:CreationOptions

Selectthedatabasecreationoptions:

|CCreaieDatabase

「Savea$aDatabaseTemplate

Name:[oracle

Desertption:-

「GenerateDatabaseCreationScripts

D^ector/0「opt/app/oracle/admin/orade/scnpi$|Browse..

CanceliHelpBack(""Finish")

15)出现下列图后,勾选wCreateDatabase",点击"Next”

16)出现下列图后,点击“0K〃

17)开始创立数据库实例

DatabaseConfigurationAssistantx

/Copyingdatabasefiles

CreatingandstartingOracleinstance

CompletingDatabaseCreation

Clonedatabasecreationinprogress

11%

Logfilesforthecurrentoperationarelocatedat:

/opt/app/orade/product/10.2.0

/db_1/cfgtoollogs/dbca/orade

(stop)

2.7、启动ORACLE效劳和监听

2.7.1、启动数据库

su-oracle

sql>sqlplus/"assysdba”

sql>startup

2.7.2、启动监听效劳

su-oracle

Isnrctlstart

三、JDK及TOMCAT安装配置

3.1、安装JDK

把jdk-l_5_O_22-linux-i586.bin文件移到/home目录下然后执行如下列图命令

[root@localhostdb_l]#cd/hcce

[rootQlocalhosthoine]#chmod+xjdk-l_5_0_22-linux-i586.bin

[root@localho3theme]#|

[rootQlocalhost

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论