The Oracle Database: Introduction 1-3
The Oracle Database: Introduction 1-3
The Oracle Database: Introduction 1-3
Thefollowingaresomeoftheproducts,tools,andutilitiesyoucanuseinachievingyourgoalsas adatabaseadministrator: Oracle Universal Installer (OUI) TheOracleUniversalInstallerinstallsyourOraclesoftwareandoptions.Itcanautomatically launchtheDatabaseConfigurationAssistanttoinstalladatabase. Database Configuration Assistant (DBCA) TheDatabaseConfigurationAssistantcreatesadatabasefromtemplatesthataresuppliedby Oracle,oryoucancreateyourown.Itenablesyoutocopyapreconfiguredseeddatabase,thus savingthetimeandeffortofgeneratingandcustomizingadatabasefromscratch. Database Upgrade Assistant ThisDatabaseUpgradeAssistantguidesyouthroughtheupgradeofyourexistingdatabasetoa newOraclerelease. Oracle Net Manager NetManagerguidesyouthroughyourOracleNetnetworkconfiguration. Oracle Enterprise Manager TheprimarytoolformanagingyourdatabaseisOracleEnterpriseManager,awebbased interface.AfteryouhaveinstalledtheOraclesoftware,createdorupgradedadatabase,and configuredthenetwork,youcanuseOracleEnterpriseManagerformanagingyourdatabase.In addition,OracleEnterpriseManageralsoprovidesaninterfaceforperformanceadvisorsandfor OracleutilitiessuchasSQL*LoaderandRecoveryManager.
Checking Prerequisites
Beforeinstallingthesoftware,theinstallerperformsanumberofautomatedprerequisitechecks toensurethatyourmachinefulfillsthebasichardwareandsoftwarerequirementsforanOracle Databaseinstallation.Ifyourmachinedoesnotmeetarequirement,anerrormessageis displayed.Therequirementsmayvarysomewhatdependinguponthetypeofcomputerand operationsystemyouarerunning,butsomeexamplesofprerequisitesinclude: Aminimumof512MBofmemoryisavailable. Sufficientpagingspaceisavailable. Appropriateoperatingsystemservicepacksorpatchesareinstalled. Anappropriatefilesystemformatisbeingused. TheinstallerautomaticallysetsanyoperatingsystemenvironmentvariablesthattheOracle databaseserverrequiresforitsoperation.
WhenyouinstallOracleDatabaseduringbasicandadvancedinstallations,youmakethe followingchoices. Whatdatabaseproductdoyouwanttoinstall? Youcaninstalloneofthefollowing: Enterprise EditionOracle'sfullfeatureddatabaseproductprovidingdatamanagement forenterpriselevelapplications.Itisengineeredformissioncritical,highsecurityonline transactionprocessing(OLTP)anddatawarehousingenvironments. Standard EditionThisinstallationtypeissuitableforworkgroupordepartmentlevel applications,andforsmalltomediumsizedenterprises.Itisengineeredtoprovidecore relationaldatabasemanagementservicesandoptions.
Best Practice:
TheGlobalDatabaseNameisthefullnameofthedatabasethatuniquelydistinguishesitfrom anyotherdatabase.Theglobaldatabasenameisoftheform database_name.database_domain,asinsales.us.acme.com.Thedatabasenameportion sales isasimplenameyoucallyourdatabase.Thedatabasedomainportionus.acme.com specifiesthedatabasedomaininwhichthedatabaseislocated.Togetherdatabasenameand domainmakeuptheGlobalDatabaseName. Duringbasicinstallation,Oracleautomaticallyinstallsthesampleschemas.Manyofthe examplesinthedatabasedocumentationarebasedonthesampleschemas.. YouwillalsobepromptedtoenteryourdatabaseschemapasswordfortheSYS andSYSTEM accounts,whichenableyoutomanageandadministerthedatabase.
Whatkindofstoragemechanismdoyouwantyourdatabasetouse? Adatabaseincludesseveralfilesthatstoretheuserdata,databasemetadata,aswellas informationrequiredtorecoverfromfailures.Asanadministrator,youdecidewhatkindof storagesubsystemtouseforthesefiles.Youcanselectfromthefollowingoptions: File SystemThisdefaultoptioncreatesdatabasefilesthataremanagedbyyouroperating system'sfilesystem.Youcanspecifythedirectorypathwheredatabasefilesaretobestored. OracleDatabasecancreateandmanagetheactualfiles. Ifyouarenotcertainofwhichoptiontouse,choosethedefaultselectionofFileSystem. Automatic Storage ManagementThisfunctionalityenablesyoutodefineapoolof storage(calledadiskgroup)inwhichOracleautomaticallymanagesdatabasefileplacementand naming.Forenvironmentswithalargenumberofdisks,thisoptionsimplifiesdatabase administrationandmaximizesperformance.Diskmirroringandstripingareperformed automatically.
WhatareyourDatabaseManagementOptions? Hereyouspecifywhethertomanageyourdatabasecentrallyorlocally.Thecentraldeployment modeenablesyoutomanagemultipletargets,suchasdatabasesandapplicationservers,froma singleconsole.Thelocaldeploymentmodeontheotherhandcanmanageonlyasingledatabase instance. Thecentraldeploymentmoderequiresaspecialagenttobeinstalledonthedatabasehost.Ifno suchagentisfound,thenthisoptionisdisabled. Ifyouaresettingupasingledatabaseforthefirsttime,itisrecommendedthatyoudeploy EnterpriseManagerlocally,whichisthedefault.Youcanlaterinstalladditionaldatabasesand migrateyourdeploymentmodetocentralmanagement. Attheendoftheinterview,asummarywindowdisplaystheoptionsthatyouhavechosen,the requirementsforspacebasedonthoseoptions,andthecomponentsthatwillbeinstalled.Ifyou havechosentoinstalladatabase,thenthisstepisperformedimmediatelyafterthesoftware installationiscomplete.
Basic InstallationSelectthisoptiontoquicklyinstallOracleDatabase10g.Thismethod requiresminimaluserinput.Itinstallsthesoftwareandoptionallycreatesageneralpurpose databasebasedontheinformationyouprovide. ForBasicinstallation,youspecifythefollowing: Oracle Home LocationEnterthedirectoryinwhichtoinstalltheOracleDatabase10g software.YoumustspecifyanewOraclehomedirectoryforeachnewinstallationofOracle Database10g. Installation TypeSelecteitherEnterprise Edition,Standard Edition,or Personal Edition (Windows Only).Referto"BasicInstallationChoices"onpage22. UNIX DBA Group (LinuxandUnixonly)SpecifytheDBAgroupforyouroperating system. Create Starter Database Checkthisboxtocreateadatabaseduringinstallation.Oracle recommendsthatyoucreateastarterdatabaseforfirsttimeinstallations.Youmustentera Global Database Name andDatabase Password fortheSYS,SYSTEM,SYSMAN,and DBSNMP administratoraccounts.TheGlobalDatabaseNameisdescribedin"BasicInstallation Choices". TostarttheBasicInstallation,clickNext.ThePreparingtoInstallprogressbarappears. Advanced InstallationSelectthisoptiontocustomizeyourinstallation.Forexample,use thismethodtoinstallOracleRealApplicationClusters,toupgradeadatabase,toconfigure AutomaticStorageManagement,ortoconfigureautomatedbackups.Selectingthisoptionsteps youthroughinstallationstepsnotdocumentedhere.FormoreinformationabouttheUsing
DBCA to Create and Configure a Database 2-6 Oracle Database 2 Day DBA
advancedchoices,see"AdvancedInstallationChoices"inthischapter.AlsoseetheOracle Database Installation Guide foryourplatform. 5.TheProductSpecificPrerequisiteCheckswindowappears.Referto"CheckingPrerequisites" onpage21.TheInstallerperformsanumberofenvironmentchecksandindicatessuccess, warning,orfailure.Detailsofthechecksareprovided.Theinstallationcanonlyproceedwith checkstatusofSucceededorWarning.Ifyouhavefailedchecks,youmustresolvethem manually. Afterverifyingthatyoursystemmeetstheminimumrequirementsforinstallingandconfiguring thechosenproducts,clickNext. 6.Linux and Unix Only.IfthisisthefirsttimeyouareinstallinganyOraclesoftwareonthis machine,thenthefollowingoccurs: TheSpecifyInventoryDirectorywindowappears.Youmustspecifyadirectoryforinstallation filesandthenameofanoperatingsystemgroupthathaswritepermissiontothedirectory.OUI usesthislocationtokeeptrackofallOraclesoftware.Thisinformationisusedwhileapplying patchestoorupgradinganexistinginstallation,andwhiledeinstallingOraclesoftware.Notethat thisareaisdifferentfromtheOraclehome,whichyouspecifylater.ClickNext tocontinue. 7.Asummaryscreenappearsshowinginformationsuchasyourglobalsettings,space requirementsandthenewproductstobeinstalled.ClickInstall tostarttheinstallation.The Installwindowappearsshowinginstallationprogress. 8.Attheendoftheinstallationphase,theConfiguration Assistants windowappears.This windowliststheconfigurationassistantsthatarestartedautomatically.Ifyouarecreatinga database,thentheDatabaseConfigurationAssistantstartsautomaticallyinaseparatewindow. Attheendofdatabasecreation,youarepromptedtounlockuseraccountstomaketheaccounts accessible.BecausetheSYS andSYSTEM accountsarealreadyunlocked,clickOK tobypass passwordmanagement. 9.Linux and Unix Only.TheExecute Configuration scripts windowappears.Youare promptedtoopenanewterminalwindow,andtorunscriptsastherootuser.Afteryourunthe scripts,returntothiswindowandclickOk. 10.Yourinstallationanddatabasecreationisnowcomplete.TheEndofInstallationwindow displaysseveralimportantURLs,oneofwhichisforEnterpriseManager.Youcannavigateto thisURLinyourbrowserandloginastheSYS userwiththeassociatedpassword,andconnect asSYSDBA.YouuseEnterpriseManagertoperformcommondatabaseadministrationtasks. SeeChapter3,"GettingStartedwithOracleEnterpriseManager". 11.AfternotingtheinformationintheEndofInstallationscreen,youcanexittheInstaller.
Starting DBCA
TolaunchDBCA: 1.Logontoyourcomputerasamemberoftheadministrativegroupthatisauthorizedtoinstall Oraclesoftwareandcreateandrunthedatabase. 2.TolaunchDBCAonaWindowsoperatingsystem,clicktheStart buttonandthenselect Programs,Oracle - home_name,Configuration and Migration Tools,andthen Database Configuration Assistant. TolaunchtheDBCAonUNIX,orasanothermethodonaWindowsoperatingsystem,enterthe followingcommandatasystemprompt:
dbca
OntheDBCAOperationswindow,selectCreate a Database tobeginawizardthatenables youtoconfigureandcreateadatabase.Duringtheinterview,youareaskedforyourinputonthe following: DatabaseTemplates DatabaseIdentification ManagementOptions DatabaseCredentials StorageOptions DatabaseFileLocations RecoveryConfiguration DatabaseContent InitializationParameters DatabaseStorage CreationOptions Notethatmostwindowsofthewizardprovideadefaultsettingthatyoucanaccept.Toacceptall thedefaultparameters,youcanclickFinish atanystep.DBCAdisplaysafinalConfirmation windowinwhichyoumustclickOK toinitiatethedatabasecreation.Using DBCA to Create
and Configure a Database 2-8 Oracle Database 2 Day DBA
Database Templates
Thiswindowenablesyoutoselectthetypeofdatabaseyouwanttocreate.Bydefault,Oracle shipspredefinedtemplates.TherearetemplatesforData Warehouse,General Purpose, andTransaction Processing databases. Thetemplatescontainsettingsoptimizedforworkload.ClickShow Details toseethe configurationforeachtypeofdatabase.Choosethetemplatesuitedtothetypeofworkloadyour databasewillsupport.Ifyouarenotsurewhichtochoose,selectthedefaultGeneral Purpose template. Formorecomplexenvironments,youcanselecttheCustom Database option.Thisoption resultsinamoreextensiveinterview,whichmeansthatitwilltakelongertocreateyourdatabase becauseadatabasecreationscriptmustberun. Formoreinformationaboutusingdatabasetemplates,see"ManagingTemplateswithDBCA"on page212.
Database Identification
Management Options
UsethiswindowtosetupyourdatabasesoitcanbemanagedwithOracleEnterpriseManager, whichprovidesWebbasedmanagementtoolsforindividualdatabases,aswellascentral managementtoolsformanagingyourentireOracleenvironment. CheckConfigure the Database with Enterprise Manager to use Enterprise Manager. Selectoneofthefollowingoptions: IftheOracleManagementAgenthasbeeninstalledonyourhostcomputer,thenyouhavethe optionofselectingcentralmanagementbyselectingUse Grid Control for Database Management.Ifyouselectthistypeofmanagement,youmustalsoindicatewhich managementservicetouseinthedropdownmenu. SelectUse Database Control for Database Management tomanageyourdatabase locally.Ifyouchoosethisoption,youcanadditionallycheckEnable Email Notifications forOracletoemailyoualertsregardingpotentialproblems,andcheckEnable Daily Backup. ClickHelp formoreinformationabouttheseoptions.
Database Credentials
Inthiswindow,youspecifythepasswordsfortheadministrativeaccountssuchasSYS and SYSTEM.Selectoneofthefollowingoptions: SelectUse the Same Password for All Accounts andenterthepasswordtousethe samepasswordforallaccounts. SelectUse Different Passwords andspecifypasswordsindividually.
Storage Options
Recovery Configuration
Whenyoucreateanewdatabase,itisimportanttoconfigurethedatabasesoyoucanrecover yourdataintheeventofasystemfailure.Youcanselectthefollowingoptions: ChooseSpecify Flash Recovery Area tospecifyabackupandrecoveryareaandspecify itsdirectorylocationandsize.Youcanusevariablestoidentifysomestandardlocations.To revieworaddadditionallocations,clickFile Location Variables atthebottomofthe window. CheckEnable Archiving toenablearchivingofdatabaseredologs,whichcanbeusedto recoveradatabase.SelectingthisoptionisthesameasenablingArchiveLogModeinOracle EnterpriseManagerorrunningthedatabaseinARCHIVELOG mode.Youcanacceptthedefault archivemodesettingsorchangethembyselectingEdit Archive Mode Parameters. OraclerecommendsyouselectEnable Archiving.Selectingthisoptionprovidesbetter protectionforyourdatabaseinthecaseofsoftwareorhardwarefailure.Ifyoudonotselectthis optionnow,youcansetuparchivelogmodelater.See"ConfiguringYourDatabaseforBasic BackupandRecovery"onpage94.
Database Content
IntheSample Schemas tab,checkSample Schemas toincludetheSampleSchemas (EXAMPLE)tablespaceinyourdatabase.TheSampleSchemasprovideacommonplatformfor examples.OraclebooksandeducationalmaterialscontainexamplesbasedupontheSample Schemas.Oraclerecommendstheybeincludedinyourdatabase. IntheCustom Scripts tab,youcanspecifyoneormoreSQLscriptstorunafteryourdatabase iscreated.Scriptsareusefulforperformingpostinstallationtasks,suchasloadingcustom schemas.Tospecifyscripts,checkRun the following scripts;otherwiseacceptthedefault No scripts to run.NotethatifyouchoosetorunscriptsUsing DBCA to Create and
Configure a Database 2-10 Oracle Database 2 Day DBA
Initialization Parameters
Thelinksonthiswindowprovideaccesstowindowsthatenableyouchangedefaultinitialization parametersettings.Theseparametersfallintothefollowingcategories: Memory Sizing CharacterSets ConnectionMode Memory Usethiswindowtosettheinitializationparametersthatcontrolhowthedatabasemanagesits memoryusage.Youcanchoosefromoneofthefollowingapproachestomemorymanagement: Typicalrequireslittleconfiguration,andallocatesmemoryasapercentageoftotaloverall physicalsystemmemory.Tousethismethod,selectTypical andenterapercentagevalue.Click Show Memory Distribution toseehowmuchmemorytheAssistantassignstotheSystem GlobalArea(SGA)andtheProgramGlobalArea(PGA).TolearnmoreaboutPGAandSGA, referto"ManagingMemoryParameters"inChapter5,"ManagingtheOracleInstance". Customrequiresmoreconfiguration,butgivesyoumorecontroloverhowthedatabaseuses systemmemory.Thisoptionismeantformoreexperienceddatabaseadministrators.Youcan directlyspecifymemorysizesfortheSGAandPGAandtheirsubstructures,suchastheshared poolandbuffercache. Selectoneofthefollowingoptions: SelectAutomatic toallocatespecificamountsofmemorytoSGAandPGA. SelectManual andenterspecificvaluesforeachSGAcomponenttocustomizehowtheSGA memoryisdistributedamongtheSGAmemorysubstructures. TocustomizehowtheSGAmemoryisdistributedamongtheSGAmemorysubstructures,select Manual andenterspecificvaluesforeachSGAcomponent.Foracompletedescriptionofthese memoryareas,clickHelp. Sizing Inthistab,youspecifythesmallestblocksizeandthemaximumnumberofoperatingsystem userprocessesthatcansimultaneouslyconnecttothedatabase. IntheBlock Size list,enterthesizeinbytesoracceptthedefault.Oracledatabasedatais storedintheseblocks.Onedatablockcorrespondstoaspecificnumberofbytesofphysicalspace ondisk.Whileusingpredefinedtemplates,thisfieldisnotenabledsincethedatabasewillbe createdwiththedefaultblocksizeof8KB.Butwhileusingthecustomoption,youcanchange blocksize.Selectingablocksizeotherthanthedefault8KBvaluerequiresadvancedknowledge andshouldonlybedonewhenabsolutelyrequired. IntheProcesses field,specifythemaximumnumberofprocessesthatcansimultaneously connecttothedatabase.Enterthenumberoracceptthedefaultof150.Thedefaultvalueforthis parameterisgoodenoughformanyenvironments.Thevalueshouldbe6orgreater.Thisvalue shouldallowforallbackgroundprocesses,suchaslocksandparallelexecutionprocesses. CharacterSets Usethiswindowtodefinethecharactersetsusedbyyourdatabase.Charactersetsarethe encodingschemesusedtodisplaycharactersonyourcomputerUsing DBCA to Create and
Configure a Database Installing Oracle and Building the Database 2-11
screen.Choosingacharactersetdetermineswhatlanguagescanberepresentedinthedatabase. ForDatabase Character Set,selectfromoneofthefollowingoptions: Use the DefaultSelectthisoptionifyouneedtosupportonlythelanguagecurrentlyused bytheoperatingsystemforallyourdatabaseusersandyourdatabaseapplications. Use Unicode (AL32UTF8)Selectthisoptionifyouneedtosupportmultiplelanguagesfor yourdatabaseusersandyourdatabaseapplications. Choose from the list of character setsSelectthisoptionifyouwanttheOracle Databasetouseacharactersetotherthanthedefaultcharactersetusedbytheoperatingsystem. IntheNational Character Set list,selectacharactersetoracceptthedefault.Thenational charactersetisanalternativecharactersetthatenablesyoutostoreUnicodecharactersina databasethatdoesnothaveaUnicodedatabasecharacterset.Anotherreasonforchoosinga nationalcharactersetisthatprogramminginthenationalcharactersetmightbeeasier. IntheDefault Language list,selectadefaultdatabaselanguageoracceptthedefault.The defaultlanguagedetermineshowthedatabasesupportslocalesensitiveinformationsuchasday andmonthabbreviations,defaultsortingsequenceforcharacterdata,andwritingdirection(left orright). IntheDefault Date Format list,selectadateformatoracceptthedefault.Thedefaultdate formatdeterminestheconventionfordisplayingthehour,day,month,andyear.Forexamplein theUnitedKingdom,thedateformatisDDMMYYYY. ConnectionMode Usethiswindowtoselectthedatabasemode.Youcanrunthedatabaseineitherofthefollowing modes: SelectDedicated Server Mode toallowadedicatedserverprocessforeachuserprocess. Selectthisoptionwhenthenumberoftotalclientsisexpectedtobesmall,orwhendatabase clientswillmakepersistent,longrunningrequeststothedatabase. SelectShared Server Mode toallowseveralclientconnectionstoshareadatabaseallocated poolofresources.Usethismodewhenalargenumberofusersneedtoconnecttothedatabase.It isalsousefulwhendatabasememoryislimitedandforbetterperformancebecauseyoucanhave moreclientconnectionstothedatabasethanindedicatedservermodewiththesamememory.If youchoosesharedservermode,thenyoumustalsoindicatethenumberofserverprocessesyou wanttocreatewhenaninstanceisstartedup.Formoreinformationaboutsettingthisparameter, clickHelp.
Database Storage
Creation Options
Create DatabaseChecktocreateyourdatabaseatthistime. Save as a Database TemplateChecktosavethedatabasedefinitionasatemplateto useatanothertime. Generate Database Creation ScriptsChecktogenerateaSQLdatabasecreation scriptthatyoucanrunatalatertime.
Types of Templates
Table 21 DBCA Template Types Type File Include Database Structure Extensi Datafile on s? .dbc Seed Yes Thistypeoftemplatecontainsboththestructureandthephysical datafilesofanexisting(seed)database.Whenyouselectaseed template,databasecreationisfasterbecausethephysicalfilesand schemaofthedatabasehavealreadybeencreated.Yourdatabasestarts asacopyoftheseeddatabase,ratherthanhavingtobebuilt. Youcanchangeonlythefollowing: Nameofthedatabase Destinationofthedatafiles Numberofcontrolfiles Numberofredologgroups Initializationparameters Otherchangescanbemadeafterdatabasecreationusingcustomscripts thatcanbeinvokedbyDBCA,commandlineSQLstatements,orthe OracleEnterpriseManager. Thedatafilesandonlineredologsfortheseeddatabasearestoredina compressedformatinanotherfilewitha.dfj extension.The corresponding.dfj fileslocationisstoredinthe.dbc file. Nonseed .dbt No Thistypeoftemplateisusedtocreateanewdatabasefromscratch.It containsthecharacteristicsofthedatabasetobecreated.Nonseed templatesaremoreflexiblethantheirseedcounterpartsbecauseall datafilesandonlineredologsarecreatedtoyourspecification(not copied),andnames,sizes,andotherattributescanbechangedas required.
Table 21 DBCA Template Types Type File Include Database Structure Extensi Datafile on s?
Seed
.dbc
Yes
Nonseed
.dbt
No
This type of template contains both the structure and the physical datafiles of an existing (seed) database. When you select a seed template, database creation is faster because the physical files and schema of the database have already been created. Your database starts as a copy of the seed database, rather than having to be built. You can change only the following: Name of the database Destination of the datafiles Number of control files Number of redo log groups Initialization parameters Other changes can be made after database creation using custom scripts that can be invoked by DBCA, commandline SQL statements, or the Oracle Enterprise Manager. The datafiles and online redo logs for the seed database are stored in a compressed format in another file with a .dfj extension. The corresponding .dfj files location is stored in the .dbc file. This type of template is used to create a new database from scratch. It contains the characteristics of the database to be created. Non-seed templates are more flexible than their seed counterparts because all datafiles and online redo logs are created to your specification (not copied), and names, sizes, and other attributes can be changed as required.
TheDatabaseUpgradeAssistantautomaticallyperformsthefollowingtasks: Modifiesorcreatesnewrequiredtablespaces Invokestheappropriateupgradescripts Archivesredologs Disablesarchivingduringtheupgradephase Whiletheupgradeisrunning,theDBUAshowstheupgradeprogressforeachcomponent.The DBUAwritesdetailedtraceandlogfilesandproducesacompleteHTMLreportforlater reference.Toenhancesecurity,theDBUAautomaticallylocksnewuseraccountsintheupgraded database.TheDBUAthenproceedstocreatenewconfigurationfiles(initializationparameterand listenerfiles)inthenewOraclehome.
TheDatabaseUpgradeAssistantsupportsthefollowingversionsoftheOracleDatabasefor upgradingtoOracleDatabase10g: Oracledatabaseversion8.0.6(singleinstancedatabasesonly) Oracle8i Release8.1.7(singleinstanceandRealApplicationClustersdatabases) Oracle9i Release1(9.0.1)(singleinstanceandRealApplicationClustersdatabases) Oracle9i Release9.2.0(singleinstanceandRealApplicationClusterdatabases) Ifyourdatabaseversionisnotinthislist,youneedtoupgradefirsttotheclosestreleaseaslisted. Youcanthenupgradethedatabasetothecurrentrelease.
Note:
Ifyoustoptheupgrade,butdonotrestorethedatabase,thenyou shouldnotrestarttheDBUAuntilyoustartuptheexisting databaseinUPGRADE modeusingthe10.2server.Youcannotgo backtotheoriginalserverunlessyourestoreyourdatabase. Ifyourestoreyourdatabasemanually(notusingtheDBUA),then removethefollowingfilebeforestartingtheDBUA: $10.2OracleHome/cfgtoollogs/dbua/logs/Welcome_<SID>.t xt.ThepresenceofthisfileindicatestotheDBUAthatthisisare runoperation.
TolaunchtheDBUAontheWindowsoperatingsystemchoosethefollowingmenuoption:
Start > Programs > Oracle - HOME_NAME > Configuration and Migration Tools > Database Upgrade Assistant
TolaunchtheDBUAonaUNIXorLinuxoperatingsystem,enterthefollowingatacommand prompt:
dbua
Thiscommandistypicallyfoundinyour$ORACLE_HOME/bin directory.
Toviewthestatusofthedbconsole process:
./emctl status dbconsole
InWindows,inadditiontousingthecommandline,youcanstartthedbconsole processasa service. Tostartdbconsole asaservice: 1.ClickStart,ControlPanel,AdministrativeTools,Services.TheServicespageappears. 2.OracleservicesbeginwithOracle.Thedbconsole serviceislistedas OracleDBConsoleORACLE_SID,whereORACLE_SID isyourSID.Thestatusofthisprocessis listedintheStatuscolumn,eitherStartedorStopped.Doubleclicktheservice.Thepropertypage appears. 3.Inthepropertiespage,ensurethattheStartupTypeiseitherManualorAutomaticandnot Disabled.ClickStart,iftheprocessisnotalreadystarted.ClickOK. YoucanalsousetheServicespagetostoptheprocess.
2.LogintothedatabaseusingausernamethatisauthorizedtoaccesstheDatabaseControl.This
initiallycouldbeSYS orSYSTEM.Usethepasswordyouspecifiedfortheaccountduringthe databaseinstallation. EnterpriseManagerdisplaystheDatabaseHomepage(Figure34). Thepropertypagesacrossthetopofthepageenableyoutoaccessperformance,administration, andmaintenancepagesformanagingyourdatabase.Thefunctionalityprovidedbythesepages isdiscussedinotherchaptersofthisbook. ThevarioussectionsoftheDatabaseHomepageandrelatedlinksprovideinformationaboutthe databasesenvironmentandhealth.Forexample,theAlerts,Related Alerts,and Diagnostic Summary sectionswarnyouoferrorsandperformanceproblemsthatare impactingtheoperationofyourdatabase.Youcanclicktheprovidedlinkstoseemoredetail abouttheproblemarea,andeventoobtainrecommendationsforresolvingtheproblem.Thisis discussedinChapter10,"MonitoringandTuningtheDatabase".
Figure 34 Database Home Page
user. 2.ClickSetup atthetopoftheDatabaseHomepage. 3.ClickAdministrators intheleftnavigationbar. Ifyouneedtocreateanewadministrator,youmustfirstcreatetheuserandthenassign administrativeprivilegesasdescribedinthissection.Tocreateanewuser,see"Administering DatabaseUsers"onpage78 4.ClickCreate tocreateanewEnterpriseManageruserbyassigningthemanagement privilegestoanexistingdatabaseuser. 5.ClicktheflashlighticonnexttotheNamefieldandselectanexistingdatabaseuserfromthe popupwindow. 6.EnterthepasswordfortheselecteduserandclickFinish. EnterpriseManagerassignsthemanagementprivilegestotheselecteduser.Theselected databaseuserisnowincludedinthelistofmanagementusersontheSetupAdministratorspage. AlltheusersshownonthispagecanlogintotheDatabaseControlandperformdatabase managementtasks.
AclientisanyapplicationthatneedstoconnecttotheOracledatabasetosendorretrievedata. AnOracleclientapplicationcanresideonanymachineprovidedithasOracleclientsoftware installed. OracleNetisasoftwarecomponentthatresidesontheclientandtheOracledatabaseserver.Itis responsibleforestablishingandmaintainingtheconnectionbetweentheclientapplicationand theserver,aswellasexchangingmessagesbetweenthem,usingindustrystandardprotocols. For the client application and a database to communicate, the client application must specify location details for the database it wants to connect to and the database must provide some sort of identification, or address.
Connection Requests
Local Naming
Thelocalnamingmethodstoresconnectdescriptors,identifiedbytheirnetservicename,ina local(ontheclient)configurationfilenamedtnsnames.ora locatedinthe ORACLE_HOME/network/admin directory.
Directory Naming
ThedirectorynamingmethodstoresconnectidentifiersinacentralizedLDAPcompliant directoryservertoaccessadatabaseservice.
TheeasyconnectnamingmethodenablesclientstoconnecttoanOracledatabaseserverbyusing aTCP/IPconnectstringconsistingofahostnameandoptionalportandservicename:
CONNECT username/password@host[:port][/service_name]
Forexample:
CONNECT hr/hr@my-server:1521/mydb
Theeasyconnectnamingmethodrequiresnoconfiguration.
External Naming
Instancemanagementinvolvesconfiguringparametersthataffectthebasicoperationofthe databaseinstance.Theseparametersarecalledinitializationparameters.TheOracledatabase serverreadstheseparametersatdatabasestartupandmonitorsthemwhilethedatabaseis running.Theyarestoredinmemory,wheremanyofthemcanbechangeddynamically.There aretwotypesofparameterfiles,andwhetherthesedynamicchangesarepersistentacross databaseshutdownandstartupdependsuponthetypeofparameterfileyouareusing. Serverparameterfile This,thepreferredformofinitializationparameterfile,iscontainedinabinaryfilethatcanbe writtentoandreadbythedatabaseserver.Itmust not beeditedmanually.Itresidesonthe machinethatOracleisrunningon,andispersistentacrossshutdownandstartup. Textinitializationparameterfile Thistypeofinitializationparameterfilecanbereadbythedatabaseserver,butitisnotwrittento bytheserver.Inthisfile,youcansetinitializationparameterswithatexteditorforthemtobe persistentacrossshutdownandstartup.
Description Thedatabasewriterwritesmodifiedblocksfromthedatabase buffercachetothefilesondisk.Oracleallowsamaximumof20 databasewriterprocesses. Thelogwriterprocesswritesredologentriestodisk.Redolog entriesaregeneratedintheredologbufferoftheSGAandthelog writerprocesswritestheredologentriessequentiallyintoan onlineredologfile. Atspecifictimes,allmodifieddatabasebuffersintheSGAare writtentothedatafilesbyadatabasewriterprocess(DBWn).This eventiscalledacheckpoint.Thecheckpointprocessisresponsible forsignallingDBWn atcheckpointsandupdatingallofthe datafilesandcontrolfilesofthedatabasetoindicatethemost recentcheckpoint. Thesystemmonitorperformscrashrecoverywhenafailed instancestartsupagain. Theprocessmonitorperformsprocessrecoverywhenauser processfails.Itisresponsibleforcleaningupthecacheandfreeing resourcesthatthefailedprocesswasusing. Whenthedatabaseisrunninginarchivelogmode,oneormore archiverprocessescopytheredologfilestoarchivalstoragewhen thelogfilesarefulloralogswitchoccurs.Formoreinformation, seeChapter9,"PerformingBackupandRecovery".
Checkpoint
Checkpoint
Atspecifictimes,allmodifieddatabasebuffersintheSGAare writtentothedatafilesbyadatabasewriterprocess(DBWn).This eventiscalledacheckpoint.Thecheckpointprocessisresponsible forsignallingDBWn atcheckpointsandupdatingallofthe datafilesandcontrolfilesofthedatabasetoindicatethemost recentcheckpoint. Thesystemmonitorperformscrashrecoverywhenafailed instancestartsupagain. Theprocessmonitorperformsprocessrecoverywhenauser processfails.Itisresponsibleforcleaningupthecacheandfreeing resourcesthatthefailedprocesswasusing. Whenthedatabaseisrunninginarchivelogmode,oneormore archiverprocessescopytheredologfilestoarchivalstoragewhen thelogfilesarefulloralogswitchoccurs.Formoreinformation, seeChapter9,"PerformingBackupandRecovery".
Control Files
Acontrolfiletracksthephysicalcomponentsofthedatabaseandothercontrolinformation.Itis essentialtothefunctioningofthedatabase.Becauseoftheimportanceofthecontrolfile,Oracle recommendsthatthecontrolfilebemultiplexed.Inotherwords,thecontrolfileshouldhave multipleidenticalcopies.FordatabasescreatedwithDBCA,threecopiesofthecontrolfileare automaticallycreated. Ifanycontrolfilefails,thenyourdatabasebecomesunavailable.Aslongasyoustillhavea controlfilecopyintact,however,youcanshutdownyourdatabaseandrecreatethefailed controlfilefromoneoftheothercontrolfiles,thenrestartyourdatabase.Anotheroptionisto deletethefailedcontrolfilefromtheCONTROL_FILES initializationparameterandrestartyour databasewiththeremainingcontrolfiles.Thereareotheroptions,dependingupon circumstances.
EveryOracledatabasehasasetoftwoormoreonlineredologfiles.Thesetofredologfilesis collectivelyknownastheredologforthedatabase.Aredologismadeupofredoentries,which arealsocalledredorecords. Theprimaryfunctionoftheredologistorecordallchangesmadetodata.Ifafailureprevents modifieddatafrombeingpermanentlywrittentothedatafiles,thenthechangescanbeobtained fromtheredolog,soworkisneverlost.Toprotectagainstafailureinvolvingtheredologitself, Oracleallowsamultiplexedredologsothattwoormoreidenticalcopiesoftheonlineredolog canbemaintainedondifferentdisks. Yourdatabase'sredologconsistsofgroupsofredologfiles.Agroupconsistsofaredologfile anditsmultiplexedcopies.Eachidenticalcopyissaidtobeamemberofthatgroup.Eachgroup isdefinedbyanumber,suchasgroup1. Thedatabaselogwriterprocesswritesredorecordsfromthememorybuffertoaredologgroup untilthegroupfillsuporalogswitchoperationisrequested.Itthenwritestothenextgroup.
Thelogwriterperformsthisactioninacircularfashionsothattheoldestgroupisoverwrittenby themostrecentredorecords.
Tablespaces
Adatabaseconsistsofoneormoretablespaces.Atablespaceisalogicalstructurecreatedbyand knownonlytotheOracledatabaseserver.Atablespaceconsistsofoneormoredatafilesor tempfiles. Therearevarioustypesoftablespaces,includingthefollowing: Undotablespace Adatabaserunninginautomaticundomanagementmodetransparentlycreatesandmanages undosegments.Youcancreateanundotablespaceanddeterminethemaximumretentiontime forundodatakeptinthattablespace. Permanenttablespaces Thesetablespacesareusedtostorepermanentobjectsanddata. Temporarytablespaces Temporarytablespacesimprovetheconcurrenceofmultiplesortoperations,reducetheir overhead,oravoidOraclespacemanagementoperationsaltogether.Temporarytablespacesare themostefficienttablespacesfordisksorts.Spacemanagement(extentallocationand deallocation)islocallymanaged.
Datafiles
Datafilesaretheoperatingsystemfilesthatholdthedatawithinthedatabase.Thedataiswritten tothesefilesinanOracleproprietaryformatthatcannotbereadbyprogramsotherthanthe databaseserver.Tempfilesareaspecialclassofdatafilesthatareassociatedonlywithtemporary tablespaces. Datafilescanbebrokendownintothefollowingcomponents: Segmentsandextents Asegmentcontainsaspecifictypeofdatabaseobject.Forexample,tablesarestoredindata segments,whereasindexesarestoredinindexsegments. Anextentisacontiguoussetofdatablockswithinasegment.Oracleinitiallyallocatesanextent ofaspecifiedsizeforasegment,butifthatextentfills,thenmoreextentscanbeallocated. Datablock Datablocks,alsocalleddatabaseblocks,arethesmallestunitofI/Otodatabasestorage.An extentconsistsofseveralcontiguousdatablocks.Thedefaultdatabaseblocksizeisspecifiedbya DBAatdatabasecreationordefaultedbyOracle. Afterthedatabasehasbeencreated,itisnotpossibletochangethedefaultblocksizewithoutre creatingthedatabase.Nevertheless,itispossibletocreatetablespacewithablocksizedifferent thanthedefaultblocksize.Fordetailsonhowtocreatetablespaceswithanondefaultor nonstandardblocksize,seeOracle Database Administrator's Guide.
Creating Indexes
Oracleautomaticallycreatestheindexesnecessarytosupportdataintegritydefinedwith constraintswhenyouaddorenablethoseconstraints.Forperformancepurposes,youmight wanttoaddanindextothecolumnsyoudefineinachildtablewhenaddingaforeignkey constraint.Beforeyouaddadditionalindexes,youshouldexaminetheperformanceofyour database.Youcanthencompareperformanceafterthenewindexesareadded. Afterindexcreation,Oracleautomaticallysynchronizestheindexwithanysubsequentinserts, updates,ordeletestothebasetable. IndexesaregenerallyofvaluetoqueriesandtoSQLstatementsthatneedtooperateonasingle, existingroworasmallnumberofexistingrows.Toomanyindexescancauseseriousproblems byincreasingtheprocessingoverheadforstatementsthatadd,modify,ordeleterows.Insome cases,astatementcouldusetwoormoreindexesandtheoptimizerpicksjustoneofthem. Unlessotherstatementscantakeadvantageoftheunusedindexes,theyarenotprovidingany benefit.Therefore,youmightfindyourselfdeletingindexesifyoucreatetoomany.
Index Types
Astandard,Btreeindexcontainsanentryforeachvalueintheindexkeyalongwithanaddress totherowwherethevalueisstored.ABtreeindexisthedefaultandmostcommontypeof indexinanOracledatabase. Abitmapindexusesstringsofbitstoencapsulatevaluesandpotentialrowaddresses.Itismore compactthanaBtreeandcanperformsometypesofretrievalmoreefficiently.Forgeneraluse, however,abitmapindexrequiresmoreoverheadduringrowoperationsonthetableandshould beusedprimarilyfordatawarehouseenvironmentsasdescribedintheOracle Database Data Warehousing Guide. AscendingandDescending Thedefaultsearchthroughanindexisfromlowesttohighestvalue,wherecharacterdatais sortedbyASCIIvalues,numericdatafromsmallesttolargestnumber,anddatefromtheearliest tothelatestvalue.Thisdefaultbehaviorisperformedinindexescreatedasascendingindexes. Youcancauseindexsearchestoreversethesearchorderbycreatingtherelatedindexwiththe descendingoption. ColumnandFunctional Typically,anindexentryisbasedonthevalueorvaluesfoundinthetable'scolumnorcolumns. Thisisacolumnindex.Alternatively,youcancreateafunctionbasedindexinwhichtheindexed valueisderivedfromthetabledata.Forexample,tofindcharacterdatathatcanbeinmixedcase, youcoulduseafunctionbasedindextolookforthevaluesasiftheywereallinuppercase characters. SingleColumnandConcatenated Youcancreateanindexonjustonecolumn,whichiscalledasinglecolumnindex,oronmultiple columns,whichiscalledaconcatenatedindex.Concatenatedindexesareusefulwhenallofthe columnsarelikelytobeincludedintheWHERE clauseoffrequentlyexecutedSQLstatements. Forconcatenatedindexes,youshoulddefinethecolumnsusedintheindexcarefullysothatthe columnwiththefewestduplicatevaluesisnamedfirst,thecolumnwithnextfewestduplicate valuesissecond,andsoon.ColumnswithmanyduplicateManaging Indexes 8-16 Oracle
Database 2 Day DBA
Managing Views
Viewsarecustomizedpresentationsofdatainoneormoretablesorotherviews.Youcanthink ofthemasstoredqueries.Viewsdonotactuallycontaindata,butinsteadderivetheirdatafrom thetablesuponwhichtheyarebased.Thesetablesarereferredtoasthebasetablesoftheview. Liketables,viewscanbequeried,updated,insertedinto,anddeletedfrom,withsome restrictions.Alloperationsperformedonaviewactuallyaffectthebasetablesoftheview.Views provideanadditionallevelofsecuritybyrestrictingaccesstoapredeterminedsetofrowsand columnsofatable.Theyalsohidedatacomplexityandstorecomplexqueries. ManyimportantviewsareintheSYS schema.Thedatadictionaryviewsarecalledstaticbecause theychangeonlywhenachangeismadetothedatadictionary,forexample,whenanewtableis createdorauserisgrantednewprivileges. Manydatadictionarytableshavethreecorrespondingviews: ADBA_ viewdisplaysallrelevantinformationintheentiredatabase.DBA_ viewsareintended onlyforadministrators. AnALL_ viewdisplaysalltheinformationaccessibletothecurrentuser,includinginformation fromthecurrentuser'sschemaaswellasinformationfromobjectsinotherschemas,ifthe currentuserhasaccesstothoseobjectsthroughprivilegesorroles. AUSER_ viewdisplaysalltheinformationfromtheschemaofthecurrentuser.Nospecial privilegesarerequiredtoquerytheseviews. ThecolumnsoftheALL_,DBA_,andUSER_ viewscorrespondingtoasingledatadictionary tableareusuallynearlyidentical. Theviewsthatmonitorongoingdatabaseactivityarecalleddynamicperformanceviews.The namesofdynamicperformanceviews,availableonlytoadministrators,startwiththecharacters V$ andareoftenreferredtoastheV$ views. CompletedescriptionsoftheviewsintheSYS schemaarecontainedintheOracle Database Reference.
Abackupisconsistentorinconsistent.Abackupisconsistentwhentherearenochangesinthe redologthathavenotalreadybeenappliedtothedatafilesatthetimeofthebackup. Tomakeaconsistentbackup,yourdatabasemusthavebeenshutdownnormallyandcannotbe reopenedforthedurationofthebackup.Inshuttingdownthedatabase,allcommittedchanges intheredologarewrittentothedatafiles,sothedatafilesareinatransactionconsistentstate. Thisprocessisknownasanofflinebackupbecausetheentiredatabaseisofflinefortheduration ofthebackup. Incontrasttoaconsistentbackup,aninconsistentbackupismadewhilethedatabaseisopen.In aninconsistentbackup,theonlineredologscontainchangesthathavenotyetbeenappliedtothe datafiles.Thedatafilesarenotinatransactionconsistentstate.Thedatabasemustberunin ARCHIVELOG modetopreservetheredolog.Theonlineredologatthemomentofthebackup mustbearchivedandbackedupalongwiththedatafilestopreservethesechanges.
themtoatransactionconsistentstate.Theprocessofapplyingchangesfromtheredologtothe datafilesrestoredfromaninconsistentbackupiscalledmediarecovery.
Media Recovery
Ifyourestorethearchivedredologsandthedatafilesfrombackups,thenyoumustperform mediarecoverybeforeyoucanopenthedatabase.Anydatabasetransactionsinthearchivedredo logsnotalreadyreflectedinthedatafilesareappliedtothedatafiles,bringingthemtoa transactionconsistentstatebeforethedatabaseisopened. Mediarecoveryrequiresacontrolfile,datafiles(typicallyrestoredfrombackup),andonlineand archivedredologscontainingchangessincethetimethedatafileswerebackedup.Media recoveryismostoftenusedtorecoverfromamediafailure,suchasthelossofafileordisk,ora usererror,suchasthedeletionofthecontentsofatable. Therearetwoformsofmediarecovery:completerecoveryandpointintimerecovery.In completerecovery,datafilesarerestoredfrombackup;allchangesfromthearchivedandonline redologsareappliedtothedatafiles.Thedatabaseisreturnedtoitsstateatthetimeoffailure andcanbeopenedwithnolossofcommittedchanges. Inpointintimerecovery,youreturnyourdatabasetoitscontentsatatargettimeofyour choosinginthepast.Youstartwithabackupofdatafilescreatedpriortothetargettimeanda completesetofarchivedredologfilesfromthetimeofthatbackupthroughthetargettime. Duringrecovery,eachchangebetweenthebackuptimeandthetargettimeisappliedtothe datafiles. Pointintimerecoverycanreturnyourwholedatabasetoitsstateatanytimebetweenthetimeof yourbackupandthemostrecentchangeinthearchivedredologs.Allchangesafterthetarget timearediscarded.Pointintimerecoveryisalsosometimescalledincompleterecoverybecause youdonotrecoverthecompletesetofchangestoyourdatabase. EnterpriseManagerprovidesaconvenientinterfacetobothcompleteandpointintimerecovery intheformofaRecoveryWizard.However,thisbookfocusesoncompleterecovery.Pointin timerecoveryisdiscussedatmorelengthinOracle Database Backup and Recovery Basics.
Planning Space Usage and Location for the Flash Recovery Area
Retention Policy and the Flash Recovery Area Space management in the flash recovery area is governed by a backup retention policy. A retention policy determines when files are obsolete, meaning that they are no longer neededtomeetyourdatarecoveryobjectives.
Retentionpoliciescanbebasedonredundancyofbackupsoronarecoverywindow. Underaredundancybasedpolicy,theflashrecoveryareaconsidersabackupofafileobsolete onlywhentheRMANrepositoryhasrecordsofaspecifiednumberofmorerecentbackupsof thatfile.Forexample,assumeyourpolicyrequiresthattwobackupsofeachfilebekept.You makebackupsnightlystartingonaMondaynight.AftertheWednesdaynightbackupsucceeds, theMondaynightbackupbecomesredundantbecausetheTuesdayandWednesdaybackupsare available. Underarecoverywindowbasedpolicy,youspecifyatimeintervalmeasuredindays.Files becomeobsoleteonlywhentheyarenolongerneededforsuccessfulcompleterecoveryorpoint intimerecoverytoanypointwithinthatnumberofdaysintothepast.Forexample,assumethat youspecifyarecoverywindowofthreedays.Abackupofalldatafilesfromatleastthreedays agomustberetained,alongwithafullsetofarchivedredologsgeneratedsincethatbackup.
Youmusthavethepropercredentialstoperformsomeoftheconfigurationtasksforbackupand recovery,andtoschedulebackupjobsandperformrecovery.Thefollowingcredentialsmaybe required: TheOracleuseryouusewhenyoulogintoEnterpriseManager Thehostoperatingsystemuserwhosecredentialsyouprovidewhenperformingbackupand recoverytasks ToperformorscheduleRMANtasks,youmusteitherlogintoEnterpriseManagerasauserwith SYSDBA privileges,orprovidehostoperatingsystemcredentialsforauserwhoisamemberof theDBA group.Thehostoperatingsystemusermustalsohaveexecutepermissionforthe RMANcommandlineclient. Fortasksrequiringhostoperatingsystemcredentials,aHostCredentialsformappearsatthe bottomofthepageusedtoperformthetask(seeFigure91).EnterpriseManagerusesthe credentialswhenitinvokesRMANtoperformjobsyourequestedorscheduled.
Youcanconfigureaflashrecoveryareawhenfirstcreatingthedatabase.Ifyoudidnotperform thistaskatdatabasecreationtime,however,thenyoucancreateaflashrecoveryareaforyour databasenow. Toconfigureaflashrecoveryarea: 1.Onthehostoperatingsystem,createadirectorytoholdtheflashrecoveryarea.Makesurethat thepermissionsforthisdirectoryallowOracletocreatefileshere. 2.FromtheDatabaseHomepage,clickMaintenance. TheMaintenancepropertypageappears. 3.IntheBackup/Recoverysection,selectRecovery Settings. TheRecoverySettingspageappears. 4.IntheFlashRecoverysection,enterthepathtotheflashrecoveryarealocation(thepathtothe directoryondiskyoucreatedinstep1),andyourdesiredflashrecoveryareasize.Makesurethe Apply changes to SPFILE only boxisnotchecked,thenclickApply tosaveyoursettings. Itisimportanttomonitorspaceusageintheflashrecoveryareatoensurethatitislargeenough tocontainbackupsandotherrecoveryrelatedfiles.TheHighAvailabilitysectionofthehome pageliststhepercentageofflashrecoveryareaspaceavailable.ClickUsable Flash Recovery Area tonavigatetotheRecoverySettingspage,whichcontainsaFlashRecovery AreaUsagegraphshowinghowmuchspaceisallocatedtoeachtypeoffileandhowmuchspace isfree.
Performing Offline Database Backups Whenperforminganofflinebackup,thedatabaseinstanceshutsdown,thenrestartsandentersa MOUNTED stateforthedurationoftheofflinebackup.Theofflinebackuprunsinthe background,generatingnouservisibleoutputinthebrowser.Thefactthatthedatabaseisnot openaffectsthepagesyouseefromEnterpriseManagerwhiletheofflinebackupruns. Afteryousubmitthebackupjob,astatuspageshouldappearindicatingthatthejobhasbeen successfullysubmitted.Theoutputalsoincludesanotificationthatthedatabasewillbeshut downandmountedaspartoftheofflinebackup,andthatyoumustwaitforthebackupto complete. Whenthedatabaseisshutdownandrestarted,theEnterpriseManagerapplicationmustalso shutdownforabrieftime.DuringtheperiodwhenEnterpriseManagerisshutdown,itcannot respondtoattemptstorefreshthepage. AfterEnterpriseManagerrestartsbutthedatabaseisnotopen,EnterpriseManagerreportsthatit cannotconnecttotheinstance.TheDatabaseInstancesectionofthepagereportsthecurrentstate ofthedatabaselistenerandtheinstance(unmountedormounted)asthedatabaseperformsthe offlinebackup.ItalsoofferstheoptionsofStartup orPerform Recovery.