深入oracle數(shù)據(jù)庫-安裝圖文教程中文_第1頁
深入oracle數(shù)據(jù)庫-安裝圖文教程中文_第2頁
深入oracle數(shù)據(jù)庫-安裝圖文教程中文_第3頁
深入oracle數(shù)據(jù)庫-安裝圖文教程中文_第4頁
深入oracle數(shù)據(jù)庫-安裝圖文教程中文_第5頁
已閱讀5頁,還剩43頁未讀, 繼續(xù)免費(fèi)閱讀

付費(fèi)下載

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡介

OracleEnterpriseManagerCloudControl12candAgent(RAC)安裝ByLuocs.Xu20120901DeployingaHighlyAvailableEnterpriseManager12cCloud CloudControl ImplementationofaLevel3MAA PreparationofMediumand Preparationof Uploading MeetingHardware CPU,RAM,HeapSize,andHardDiskSpaceRequirementsfor CPU,RAM,andHardDiskSpaceRequirementsforManagement CPU,RAM,andHardDiskSpaceRequirementsforManagement MeetingPackage,KernelParameter,andLibrary PackageRequirementsforOracleManagement PackageRequirementsforOracleManagement PackageRequirementsforManagement CreatingOperatingSystemGroupsand GroupsandUsersforOracleManagement GroupsandUsersforOracleManagement GroupsandUsersforManagement InstallingSingle-InstanceDatabaseand DroptheDatabaseControl ModifyingInitialization Installing Other PrerequisitesforInstallingEnterpriseManagerCloud UniqueHostNameandStaticIPAddress UMASKValue FileDescriptor HostFile Port PrerequisitesforInstallingOracleManagement DestinationHost InstallingOracleManagement AddHost AddDatabase defaultagentbase Related DeployingaHighlyAvailableEnterpriseManager12cCloudCloudControlCloudControlprovidesacentralpointformonitoringandadministrationinthed Toachievethis,itcollectsinformationfromavarietyofdistributedcomponentsandconsolidatesitinacentralizedrepository.ThesecomponentsmustallworkinharmonyfortheCloudControlsystemtooperatecorrectly.Thecomponentsandinformationflowsinvolvedincollecting,processingandpresentingthisinformationareasOracleManagementAgents(Agents)–TheOracleManagementAgentisasoftwarecomponentthatisinstalledoneverymonitoredhostintheenterprise.AgentscollectinformationfromthesrunningonthehostandsendthisinformationtotheOracleManagementService(OMS).AgentsalsoperformoperationsagainstthesonbehalfofCloudControlusers.TherearemanydifferenttypesofsthatCloudControlcanmanage.ExamplesincludeHost,Database,Listener,ASM,WebLogicServer,ServiceBusandFusionApplicationscomponentsOracleManagementService(OMS)–TheOracleManagementServiceisthecentralcomponentinCloudControl.Itisthecomponentwithwhichallothercomponentsinteract(seeFigure1).TheOMSisdeployedonWebLogicServerandmustbeavailableinorderforntstouploaddataandforadministratorstoaccesstheCloudControlcoOracleManagementRepository(Repository)–TheOracleManagementRepositoryisusedasapersistentdatastore.Examplesoftheinformationstoredintherepositoryincludeuserinformation,jobdefinitions,monitoringandalertingsettingsandallconfigurationandmonitoringdatarelatedtos.TheOMSdependsontherepositorybeingavailable,andassuchCloudControlcannotruniftherepositoryisunavailable.OracleSoftwareLibrary–TheSoftwareLibraryisafilesystemrepositorythatstoressoftwareentitiessuchassoftwarepatches,virtualapplianceimages,referencegoldimages,applicationsoftware,andtheirassociateddirectivescripts.ThesoftwarelibraryisaccessedbytheOMSandisusedextensivelybytheCloudControlframeworkforfeaturessuchasself-updateandagent-push.Console–TheConsoleisabrowser-basedwebapplicationthatisthemainuserinterfaceforCloudControl.Thisconsoleallowstheadministratortomonitor,manageandreportontheCloudControlsthathavebeensetup.EnterpriseManagerCommandLineInterface(EMCLI)–EMCLIallowsuserstoaccessCloudControlfunctionalityeitherinteractivelyfromacommandline,oraspartofascript.ThisallowsCloudControloperationstobeintegratedwithcomplexbusinessprocesseswithoutuserinteraction.ImplementationofaLevel3MAALoadBalancer1SingleOMSandRepositoryhostsconfiguredonasinglee.Eachresidesontheirownhostwithno2SinglePairofOMSsinstalledinactive/passivemodeonaredstoragewithVIPbasedRepositoryhostsconfiguredwithLocalPhysicalStandbyDatabase.3SingleMultipleOMSsdeployedinActive/ActiveconfigurationwithaServerLoadBalancer(SLB)RACprimarydatabaseRACPhysicalStandbyDatabaseonsamesiteasmaryLocalLoadMultiActivecomponentsdeployedatprimaryPrimaryOMSinActive/ActiveconfigurationwithaServerLoadBalancer(SLB)RACPrimaryRequired:LocalLoadBalancerfor4Allstandbycomponentsaredeployedonstandbysiteinpassivemode.Componentsonstandbysiteareonlyactivatedafterswitchover/failover.MultiplestandbyOMSsconfiguredwithaServerLoadBalancer(SLB)RACPhysicalStandbyOptional:GlobalLoadBal下面這是采用Level3的架構(gòu)圖,生產(chǎn)環(huán)境可參考AgentServer是兩個(gè)節(jié)點(diǎn)的OracleRACPreparationofMediumandPreparationof--OracleManagementService12cRelease1--OracleManagementAgent12cRelease1--JavaDevelopmentKit(JDK)1.6--OracleWebLogicServer11gRelease1(10.3.5)--CloudControl UploadingMeetingHardwareCPU,RAM,HeapSize,andHardDiskSpaceRequirementsfor以下是給出的安裝OracleEnterpriseManagerCloudControl12c所需硬件需求(1OMS,<1000ts,<100Agents,<10ConcurrentUserSess(2OMSes,>=1000ut<10,000>=100but<1000gents,>=10but<25ConcurrentUserSessi(>2OMSes,00s,Agents,>=25but50ConcurrentUserSCPU248RAMwithP,OraclegicServerJVMHeapSizeHardDiskHardDiskcewithADP,CPU,RAM,andHardDiskSpaceRequirementsforManagementensurethatyouhave2CPUcoresperhost,512MBofRAM,and1GBoffreeharddisk如果是測試學(xué)習(xí),AgentServer512MCPU,RAM,andHardDiskSpaceRequirementsforManagementRepositoryDatabase(1OMS,<1000ts,<100Agents,<10ConcurrentUserSess(2OMSes,>=1000ut<10,000>=100but<1000gents,>=10but<25ConcurrentUserSessions)(>2OMSes,00s,Agents,>=25but50ConcurrentUserSCPU248HardDiskMeetingPackage,KernelParameter,andLibraryPackageRequirementsforOracleManagement我這里只看RedHat類Linux,包括OEL,CentOS32-BitPackagesfor32-Bit64-BitPackagesfor64-BitOracleLinux(RedHat6KernelandUnbreakableEnterpriseKernel(UEK))libstdc++compat-dbxorg-x11-utils(ThispackageisrequiredonlyforGUI-basedinteractiveinstallation,andnotforsilentinstallation)glibc-devel-2.5-49-i686(Thisisa32-bitpackage)glibc-devel-2.5-49-x86_64(Thisisa64-bitpackage)Oraclelibstdc++compat-dbxorg-x11-utils(ThispackageisrequiredonlyforGUI-basedinteractiveinstallation,andnotforsilentinstallation)gcc-libstdc++-xorg-x11-utils(ThispackageisrequiredonlyforGUI-basedinteractiveinstallation,andnotforsilentinstallation)Inaddition,installthe32-bitversionaswellasthe64-bitversionofglibc-devel-2.5-49toavoidanylinkingerrorswhileinstallingtheOMS.Theinstallerchecksforthispackage,soifthispackageisnotinstalled,theinstallerdisplaysanerror.RedHatEnterpriseLinuxOSOracleEnterpriseLinux5.5(64bit),檢測需要如下方式:rpmq\make\binutils\gcc\libaio\mon\libstdc++\setarch\sysstat\mg-utils|grep"notPackageRequirementsforOracleManagementAgentServerOS也只看RedHatLinuxOEL,CentOS32-BitPackagesfor32-64-BitPackagesfor64-Oraclex(RedHatlibstdc++KernelKernel(UEOracleOracleLinux5.xandRedHatEnterpriseLinux5.x,where<=5[forexample,OracleLinux5.3]gcc-libstdc++-OracleLinux5.xandRedHatEnterpriseLinux5.x,where>5[forexample,OracleLinux5.6]gcc-libstdc++-xRedHatterpriseux我這里依然是OracleEnterpriseLinux5.5(64bit),檢測需要如下方式:rpmq\make\binutils\gcc\libaio\mon\libstdc++\setarch\sysstat\mg-utils|grep"notPackageRequirementsforManagementCreatingOperatingSystemGroupsandGroupsandUsersforOracleManagement使用oms賬號來管理OracleManagementService s~]#/usr/sbin/groupadnstall s~]#/usr/sbin/useradd-goinstall s~]#passwdGroupsandUsersforOracleManagementAgent[root@rac1~]#idoracleuid=1101(oracle)gid=1000(oinstall)groups=1000(oinstall),1300(dba),1301(oper),1201(asmdb[root@rac1~]#iduid=1100(grid)gid=1000(oinstall)groups=1000(oinstall),1201(asmdba),1200(asmadmin),120GroupsandUsersforManagement[root@b~]#/usr/sbin/groupadnstall[root@b~]#/usr/sbin/useradd-goinstalloracle[root@b~]#passwdoracleInstallingSingle-InstanceDatabaseand安裝完后,為滿足Repository需求,需要進(jìn)行如下配置:DroptheDatabaseControl如果不刪的話,在CloudControl12cOUI[oracle@gc~]$emca-deconfigdbcontroldb-reposdrop-SYS_PWDoracle-SYSMAN_PWD備注:這個(gè)過程在報(bào)錯(cuò)之后在RepositoryDatabaseModifyingInitialization作為RepositoryDatabaseChecktheprocessesinstanceparameterTheprocessesinstanceparameterneedstobesettoatleastCheckthesession_cached_cursorsinstanceparameterThesession_cached_cursorsinstanceparametershouldbesetto300.Anyvaluebetween200and500,inclusive,willbeaccepted.Checkthejob_queue_processesinstanceparameterThejob_queue_processesinstanceparametershouldbesettoChecktheshared_pool_sizeinstanceparameterTheshared_pool_sizeinstanceparametershouldbesetatleast600megabytesorroughlyonethirdofthe ChecktheredologThesizeoftheEMdatabaseinstanceshouldbe300megabytesorgreater.Generally,thereshouldbe3ormoreredologsavailableofthissize.EnsurethattheEMtablespacehasatleastonedatafilesettoautoextensibleAddatleastonedatafilewiththeautoextendattributetotheEMtablespaceChecktheopen_cursorsinstanceparameterTheopen_cursorsinstanceparametershouldbesetbetween300and400,inclusivCheckthe instanceparameterThesga_ instanceparametershouldbesettoatleast2gigabytes,androughlytwicethesizeofthepga_aggregate_ CheckforinvalidobjectsintheEMrepositoryCompileallinvalidobjectsintheEMrepository如果不滿足這些參數(shù)要求,在CloudControl12cOUISQL>SQL>altersystemsetprocesses=300SQL>altersystemsetsession_cached_cursors=300scope=spfile;SQL>altersystemsetshared_pool_size=600Mscope=spfile;SQL>altersystemsetopen_cursors=350scope=spfile;SQL>altersystemsetjob_queue_processes=22scope=spfile;SQL>altersystemsetsga_=2gscope=spfile;SQL>altersystemsetpga_aggregate_=1GSQL>alterdatabaseaddlogfile'/u01/app/oracle/oradata/b/redo04.log'size300M;SQL>alterdatabaseaddlogfile'/u01/app/oracle/oradata/b/redo05.log'size300M;SQL>alterdatabaseaddlogfile'/u01/app/oracle/oradata/b/redo06.log'size300M;SQL>altersystemsetprocesses=SQL>altersystemsetprocesses=300SQL>altersystemsetsession_cached_cursors=300scope=spfile;SQL>altersystemsetshared_pool_size=600Mscope=spfile;SQL>altersystemsetopen_cursors=350scope=spfile;SQL>altersystemsetjob_queue_processes=22SQL>alterdatabaseaddlogfile'/u01/app/oracle/oradata/b/redo04.log'size300M;SQL>alterdatabaseaddlogfile'/u01/app/oracle/oradata/b/redo05.log'size300M;SQL>alterdatabaseaddlogfile'/u01/app/oracle/oradata/b/redo06.log'size300M;SQL>alterdatabasedroplogfile'/u01/app/oracle/oradata/b/redo01.log';SQL>alterdatabasedroplogfile'/u01/app/oracle/oradata/b/redo02.log';SQL>alterdatabasedroplogfile'/u01/app/oracle/oradata/b/redo03.log';altersystemswitchlogfilealtersystemcheckpoint命令手動切換日志并成為Inactive狀態(tài),略。確認(rèn)UNDO表空間大小,執(zhí)行下面,確保UNDO表空間大小大于SQL>SELECTSUM(DECODE(autoextensible,'YES',200*1024*1024+1,bytes))totalFROMdba_data_filesSQL>SELECTSUM(DECODE(autoextensible,'YES',200*1024*1024+1,bytes))totalFROMdba_data_filesf,dba_tablespacessWHEREs.contents='UNDO'ANDs.tablespace_name=Installing s~]#yum-yremove安裝JavaDevelopmentKit(JDK)1.6: s~]#od+xjdk-6u30-linux-x64-rpm.bin s~]#./jdk-6u30-linux-x64-rpm.binjavaversionJava(TM)SERuntimejavaversionJava(TM)SERuntimeEnvironment(build1.6.0_30-JavaHotSpot(TM)64-BitServerVM(build20.5-b03,mixedInstallingWebLogicServer/u01/app/oracle作為基 s~]#mkdir-p/u01/app/oracle s~]#chown-Roms.oinstall/ s~]#xhost s~]#chownoms.oinstallwls1035_generic.jar sinstall]$java-d64-jarwls1035_generic.jarWeblogicServer安裝圖形界面,直接輸入MiddlewareHome這里識別到了jdk安裝路徑,默認(rèn)安裝完畢,去掉RunQuickstart,DoneOther s~]#chownoms.oinstall/install/em12_linux64_disk* sinstall]$unzipem12_linux64_disk1.zip sinstall]$unzip sinstall]$unzipPrerequisitesforInstallingEnterpriseManagerCloudUniqueHostNameandStaticIPAddressEnsurethatyoucheckthenetworkconfigurationtoverifythatthehostonwhichyouareinstallingresolvestoauniquehostnameandastaticIPaddressthatarevisibletootherhostsinthenetwork.UMASKValueEnsurethatyousetthedefaultfilemodecreationmask(umask)to022inthesstartupfile. s~]$cat>>~/.bash_profile<<EOFumask022FileDescriptorEnsurethatyousetthefiledescriptortoaminimumof4096. s~]#cat>>/etc/security/limits.conf<<EOFsoftnofilehardnofile4096HostFileEnsurethatthehostnamespecifiedinthe/etc/hostsfileisunique,andensurethatitmapstothecorrectIPaddressofthathost.Otherwise,theinstallationcanfailontheproduct-specificprerequisitecheckpage.#Donotremovethe#Donotremovethefollowingline,orvarious#thatrequirenetworkfunctionalitywill6localhost6#Donotremovethefollowingline,orvarious#thatrequirenetworkfunctionalitywill6localhost6備注:最好把RepositoryDatabase的/etc/hosts: b~]#catifDNSserverisconfiguredinyourenvironment,thenyoushouldbeabletouseDNStoresolvethenameofthehostonwhichyouwanttoinstalltheOMS.#nslookuphost1#nslookup#nslookuphost1#nslookup#nslookup當(dāng)然,我這里因?yàn)闆]有配DNSPortEnsurethattheportsyouassign(withinthegivenrange)tothefollowingcomponentsarefreeandavailable:AdminAdminServerHTTPSSLPort=7101-7200EnterpriseManagerUploadHTTPPort=4889-4898EnterpriseManagerUploadHTTPSSLPort=1159,4899-4908EnterpriseManagerCentralConsoleHTTPPort=7788-7798EnterpriseManagerCentralConsoleHTTPSSLPort=7799-7809OracleManagementAgentPort=3872,1830-1849OnOnnetstat-anp|grep<portno> netstat-an|findstr<port_no>Installation正式打開OUI圖形界面配置安裝OracleEnterpriseManagerCloudControl12c: sinstall]$./runInstallerOR部為Succeeded后,Next選擇createanewEnterpriseManagerSystem->Advanced,MiddlewareHomelocation選擇/配置WeblogicServer,填入Weblogic和NodeManager及OMSinstanceBaseLocation(默備注:這里注意的強(qiáng)度,不管是測試還是生產(chǎn)投入,都需要分配稍復(fù)雜的,建議方式–大小寫英文字母+數(shù)字組合,如Asdf1234。DatabaseHostName:TheHostnameofRepositoryDatabase(需/etc/hosts里指定)Port:ListenerPort(默認(rèn)1521)Service/SID:TheSIDofRepositoryDatabase(數(shù)據(jù)庫安裝時(shí)候規(guī)劃好的,我這里 SYSPassword:Passwordfor這是在配置RepositoryDatabase的時(shí)候因?yàn)槲锢韮?nèi)存分配不足而沒能修改的地方,知體原因之后可判斷并不影響后續(xù)操作,點(diǎn)OK略過備注:SYSMAN和Agent請牢記,SYSMAN需登錄EM12c,Agent在使用<Agent_Home>/bin/emctlsecureagent時(shí)候需要使用。交互配置完畢,點(diǎn)擊InstallIftheinstallationfailsforsomereason,reviewthelogfilesavailableinthefollowinglocationsoftheOMShome: ConfigurationAssistant-RelatedLogTheOMSConfigurationAssistant-relatedlogfilesareavailableTheRepositoryConfigurationAssistant-relatedlogfilesareavailableChangingpermissionsofChangingpermissionsofAddingread,writepermissionsforgroup,Removingread,write,executepermissionsforworChanginggroupnameof/u01/app/oraInventorytooinstall.Theexecutionofthescriptiscomplete s~]#StartingStartingtoexecuteallroot.shStartingtoexecute/u01/app/oracle/Middleware/oms/root.shRunningOracle11groot.shscript...Thefollowingenvironmentvariablesaresetas:ORACLE_OWNER=oms Enterthefullpathnameofthelocalbindirectory:[/usr/local/bin]:--Copyingdbhometo/usr/local/bin...Copyingoraenvto/usr/local/bin...Copyingcoraenvto/usr/local/binCreating/etc/oratabEntrieswillbeaddedtothe/etc/oratabfileasneededbyDatabaseConfigurationAssistantwhenadatabaseiscreatedFinishedrunninggenericpartofroot.shscript.Nowproduct-specificrootactionswillbe/etcCreating/etc/oragchomelistFinishedexecution /u01/app/oracle/Middleware/oms/root.shStartingtoexecute/u01/app/oracle/Middleware/agent/core/.0/root.shFinishedproduct-specificrootactions./etcFinishedexecution ThisinformationisalsoavailableThisinformationisalsoavailableSeebelowforinformationpertainingtoyourEnterpriseManagerUsethefollowingURLtoEnterpriseManagerCloudControlAdminServerThefollowingdetailsneedtobeprovidedduringtheadditionalOMSAdminServerAdminServerPort:AnencryptionkeyhasbeengeneratedtoencryptsensitivedataintheManagementRepository.Ifthiskeyislost,allencrypteddataintheRepository esunusable.PleaserunfollowingcommandtobackuptheManagementServiceconfigurationincludingtheemkeyandkeepthebackuponanothersystem:emctlexportconfigoms-dir<backup s~]$$OMS_HOME/bin/emctlstatus s~]$$AGENT_HOME/bin/emctlstatusOracleEnterpriseManagerCloudControl12c登錄口:EnterpriseManagerCloudControl AdminServer EnterpriseManagerCloudControlURL:AdminServerURL:輸入SYSMAN和其,登錄,首次登錄需要接受License,點(diǎn)I自動跳轉(zhuǎn)到SelectEnterpriseManagerHomePrerequisitesforInstallingOracleManagementDestinationHostEnsurethatthedestinationhostsareaccessiblefromthehostwheretheOMSisrunninOMSServer s~]#cat>>/etc/hosts<<EOF AgentServerForOracleRAC[root@rac1~]#cat>>/etc/hosts<<EOF#ForCloudControlServer ForOracleRAC[root@rac2~]#cat>>/etc/hosts<<EOF#ForCloudControlServer PermissionEnsurethatntbasedirectoryyouspecifyisemptyandhaswritepermission.Ensurethattheinstancedirectoryisemptyandhaswritepermission. ForOracleRAC[root@rac1~]#mkdir/u02/app/oracle-p[root@rac1~]#chown-Roracle.oinstall/u02ForOracleRAC[root@rac2~]#mkdir/u02/app/oracle-p[root@rac2~]#chown-Roracle.oinstall/u02SUDO/PBRUNEnsurethattheinstallinguserhasSUDO/PBRUNprivilegestoinvoke/bin/shasEnsurethatyouhavethefollowinglineinthe/etc/sudoersfile.Thisisrequiredtoallowremotecommandexecutionusingsudo.DefaultsEnsurethatyoucommentoutthefollowinglineinthe/etc/sudoersfile:DefaultsrequirettyYoudonotrequirethefollowingentryinthe/etc/sudoersfileforinstallingaManagementAgent.However,theentryisrequiredforperformingprovisioningandpatchingoperationsinEnterpriseManager.Therefore,ifyouareremovingthisentrybeforeinstallingaManagementAgent,thenensurethatyoubringbacktheentryafterinstallingtheManagementAgent.ForOracleRAC[root@rac1~]#lsls:/usr/local/bin/sudo:Nosuchfileor[root@rac1~]#ln-s/usr/bin/sudo[root@rac1~]#cp-p/etc/sudoers/etc/sudoers.bak[root@rac1~]#vi/etc/sudoers565656Defaults:oracle7677 96Defaults測試oracle能否正常sudo[root@rac1~]#su-oracle[oracle@rac1~]$lsrootls:/root:Permissiondenied[oracle@rac1~]$sudols/rootWeWetrustyouhavereceivedtheusuallecturefromthelocalSystemAdministrator.Itusuallyboilsdowntothesethreethings:#1)Respecttheprivacyofothers.#2)Thinkbeforeyoutype.#3)Withgreatpowercomesgreat[sudo]passwordfororacle:--輸入oracle ForOracleRAC方法同Node1InstallingOracleManagement還需要添加AgentServerEM12cDeployandConfigureOracleManagementAgent12c與之前的10g/11g版本大不一樣。我以兩節(jié)點(diǎn)的OracleRAC作為AgentServer做測試。BeforeyoubegininstallinganOracleManagementAgent,keepthesepointsinmind,給出OracleManagementAgent12ccommunicatesonlywithOracleManagementService12candnotwithanyearlierreleaseofEnterpriseManager.IfyouhaveanOracleRACClusterwithmultiplenodes,thenyoumustinstallaManagementAgentoneachofthenodesseparay.Inotherwords,intheAddHostsWizard,youmustaddeachnodeexplicitlyasadestinationhost.TheAddHostsWizardusesSSHtoestablishconnectivitybetweenOracleManagementService(OMS)andtheremotehostswhereyouwanttoinstalltheManagementAgent su01]$cd/u01/app/oracle/Middleware/oms/oui/prov/resources/scripts/ sscripts]$./sshUserSetup.sh-setup-useroracle-hostsTheoutputofthisscriptisalsologgedinto/tmp/sshUserSetup_2012-08-30-14-19-53.logHostsareuserisoracleCheckingiftheremotehostsare(91)56(84)bytesof64bytesfrom (91):icmp_seq=1ttl=64time=3.55ms64bytesfrom (91):icmp_seq=2ttl=64time=0.661ms64bytesfrom (91):icmp_seq=3ttl=64time=0.712ms64bytesfrom (91):icmp_seq=4ttl=64time=1.06ms64bytesfrom (91):icmp_seq=5ttl=64time=0.465ms-- statistics--5packetstransmitted,5received,0%packetloss,time4002msrttmin/avg/max/mdev=0.465/1.291/3.559/1.150msRemotehostreachabilitycheckThefollowinghostsarereachable: Thefollowinghostsarenotreachable:.Allhostsarereachable.ProceedingThescriptwillsetupSSHconnectivityfromthehost toalltheremotehosts.Afterthescriptisexecuted,theusercanuseSSHtoruncommandsontheremotehostsorcopyfilesbetweenthishostandtheremotehostswithoutbeingpromptedforpasswordsorNOTEAspartofthesetupprocedure,thisscriptwillusesshandscptofilesbetweenthelocalhostandtheremotehosts.Sincethescriptdoesstorepasswords,youmaybepromptedforthepasswordsduringtheexecutionofthescriptwheneversshorscpisinvoked.NOTEASPERSSHREQUIREMENTS,THISSCRIPTWILLSECURETHEUSERHOMEDIRECTORYANDTHE.sshDIRECTORYBYREVOKINGGROUPANDWORLDWRITEPRIVILEDGESTODoyouwanttocontinueandletthescriptmaketheabovementionedchangesyes/no)?yes–按照提示輸入yesTheuserchosePleasespecifyifyouwanttospecifysphrasefortheprivatekeythisscriptwillcreateforthelocalhost.PassphraseisusedtoencrypttheprivatekeyandmakesSSHmuchmoresecure.Type'yes'or'no'andthenpressenter.Incaseyoupress'yes',youwouldneedtoenterthepassphrasewheneverthescriptexecutessshorscp.Theestimatednumberoftimestheuserwouldbepromptedforsphraseis2.Inaddition,iftheprivate-publicfilesarealsonewlycreated,theuserwouldhavetospecifythepassphraseononeadditionaloccasion.Enter'yes'oryesTheuserchoseThefilescontainingtheclientpublicandprivatekeysalreadyexistonthelocalhost.Thecurrentprivatekeymayormaynothaveapassphraseassociatedwithit.Incaseyourememberthepassphraseanddonotwanttore-runssh-keygen,press'no'andenter.Ifyoupress'no',thescriptwillnotattempttocreateanynewpublic/privatekeypairs.Ifyoupress'yes',thescriptwillremovetheoldprivate/publickeyfilesexistingandcreatenewonespromptingtheusertoenterthepassphrase.Ifyouenter'yes',anypreviousSSHusersetupswouldbereset.Ifyoupress'change',thescriptwillassociateanessphrasewiththeoldPressyes'no'orchange'yes–按照提示輸入yesTheuserchoseyesCreating.sshdirectoryonlocalhost,ifnotpresentalreadyCreatingauthorized_keysfileonlocalhostChangingpermissionsonauthorized_keysto644onlocalhostCreatingknown_hostsfileonlocalhostChangingpermissionsonknown_hoststo644onlocalhostCreatingconfigfileonlocalhostIfaconfigfileexistsalreadyat/home/oms/.ssh/config,itwouldbebackedupRemovingoldprivate/publickeysonlocalhostRunningSSHkeygenonlocalhostEnterpassphraseemptyforno --Entersamepassphrase --Generatingpublic/privatersakeyYouridentificationhasbeensavedin/home/oms/.ssh/id_rsa.Yourpublickeyhasbeensavedin/home/oms/.ssh/id_rsa.pub.Thekeyfingerprintis:Creating.sshdirectoryandsettingpermissionsonremoteTHESCRIPTWOULDALSOBEREVOKINGWRITEPERMISSIONSFORgroupANDothersONTHEHOMEDIRECTORYFORoracle.THISISANSSHREQUIREMENT.Thescriptwouldcreate~oracle/.ssh/configfileonremotehost .Ifaconfigfileexistsalreadyat~oracle/.ssh/config,itwouldbebackedupto~oracle/.ssh/config.backup.Theusermaybeprompted swordheresincethescriptwouldberunningSSHon.Warning:Permanentlyadded' ,91RSA)tothelistofknownhosts. 'spassword:--輸入rac1oracle的Donewithcreating.sshdirectoryandsettingpermissionsonremotehost CopyinglocalhostpublickeytotheremotehostTheusermaybepromptedfor swordorpassphraseheresincethescriptwouldbeusingSCPforhost 'spasswordrac1oracleDonecopyinglocalhostpublickeytotheremoteThescriptwillrunSSHontheremotemachine .Theusermaybepromptedforapassphrasehereincasetheprivatekeyhasbeenencryptedwith SSHsetupisThescriptwillnowrunthedatecommandontheremotenodesusingsshtoverifyifsshissetupcorrectly.IFTHESETUPISCORRECTLYSETUP,THERESHOULDBENOOUTPUTOTHERTHANTHEDATEANDSSHSHOULDNOTASKPASSWORDS.Ifyouseeanyoutputotherthandateorarepromptedforthepassword,sshisnotsetupcor

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

最新文檔

評論

0/150

提交評論