Upgrade database using dbuaWord格式文档下载.docx
- 文档编号:21325760
- 上传时间:2023-01-29
- 格式:DOCX
- 页数:20
- 大小:156.72KB
Upgrade database using dbuaWord格式文档下载.docx
《Upgrade database using dbuaWord格式文档下载.docx》由会员分享,可在线阅读,更多相关《Upgrade database using dbuaWord格式文档下载.docx(20页珍藏版)》请在冰豆网上搜索。
RAT
xlsnd101
Requirementsandrecommendationsfortargetdatabase
•BACKUPbinaries(option)
--tarcvfTarget.tar$OH
•Downloadandinstallthe11gR2binariestoanew$OH,makesuretherearenorelinkerrors(fullrelease,out-of-placeupgrade,softwareonlyinstall)
•InstallthelatestavailablePatchsetfromMetalink.(Ifavailable).
•Installthelatestopatchavailableforyourplatformanddatabaseversion(Ifavailable)
•InstallthelatestavailableCriticalPatchUpdate.(Ifavailable).
•EithertakeaColdorHotbackupofyoursourcedatabase(advisabletohavecoldbackup).
DatabaseUpgradeProcessUsingDBUA
Pre-UpgradeSteps
Step1
Checkthatalldatabasecomponentsonthe10gdatabasearevalidandcheckdatabaseobjectsusingbelowSQL:
set
pagesize500
set
linesize
100
select
substr(comp_name,1,40)
comp_name,
status,
substr(version,1,10)
version
from
dba_registry
order
by
comp_name;
substr(object_name,1,40)
object_name,substr(owner,1,15)
owner,object_type
dba_objects
where
status='
INVALID'
owner,object_type;
select
owner,object_type,count(*)
group
by
Iftherearesomeinvalidobjects,execute@?
/rdbms/admin/utlrp.sqltovalidthem.
Step2
EnsurethatyoudonothavetheduplicateobjectsintheSYSandSYSTEMschemabyrunningbelowSQL:
object_name,
object_type
object_name||object_type
in
(select
owner
=
'
SYS'
)
and
SYSTEM'
;
Exceptiontothisrulethefollowingobjectsarepermissibleduplicatesobjects
OBJECT_NAMEOBJECT_TYPE
-------------------------------------------------
AQ$_SCHEDULESTABLE
AQ$_SCHEDULES_PRIMARYINDEX
DBMS_REPCAT_AUTHPACKAGE
DBMS_REPCAT_AUTHPACKAGEBODY
Pleasereferthefollowingarticleforcompleteinstructionstoremoveanyotherduplicates.
NOTE.1030426.6HOWTOCLEANUPDUPLICATEOBJECTSOWNEDBYSYSANDSYSTEM
Step3
RunthePre-UpgradeInformationToolforCollectingPre-UpgradeInformation
TodownloadthelatestPre-UpgradeInformationToolcheckscript:
SeeNote884522.1
ORafterinstall11.2.0.2:
$11202_HOME/rdbms/admin/utlu112i.sql
$
sqlplus
/
as
sysdba'
SQL>
spool
upgrade_info.log
@utlu112i.sql
off
Checkthespoolfileandexaminetheoutputoftheupgradeinformationtool.Pleaselookupmetalinkdocument[ID837570.1]tolearnthemeaningofthespoolfile.
Note:
Ifsysauxwascreatedin9ithenitmustbedroppedandre-createdafterstartinginthenewrelease.Ifcreatedin10Gorlaterthenitcanbeleftthereandused.
Step4
Checkfortheintegrityofthesourcedatabasepriortostartingtheupgradebydownloadingandrunningdbupgdiag.sqlscriptfrombelowMyOracleSupportarticle
Note556610.1
ScripttoCollectDBUpgrade/MigrateDiagnosticInformation(dbupgdiag.sql)
Sqlplus/assysdba
@dbupgdiag.sql
PROMPTEnterlocationforSpooledoutput:
Whenitcompleted,pleasecheckthespoolfile.
Ifthedbupgdiag.sqlscriptreportsanyinvalidobjects,run$ORACLE_HOME/rdbms/admin/utlrp.sql(multipletimes)tovalidatetheinvalidobjectsinthedatabase,untilthereisnochangeinthenumberofinvalidobjects.
Aftervalidatingtheinvalidobjects,re-rundbupgdiag.sqlinthedatabaseonceagainandmakesurethateverythingisfine.
Step5
ChecksforTIMESTAMPWITHTIMEZONEDatatype
--Applying11.2.0.2on11.2.0.1,usingOut-of-placeupgrade-installthe11.2.0.2patchsetintoanew,separateOraclehomelocation.
Note:
TheTIMESTAMPWITHTIMEZONEdatastoredinthedatabasecanbecomecorruptedduringtheupgradeifthereisatimezonefileversionmismatch.
Checkthecurrentversionofthe11.2.0.1OracleRDBMStimezonedefinitions-thisneedstobedoneforALLdatabasesinthe11.2.0.1home:
conn/assysdba
Connected.
SELECTversionFROMv$timezone_file;
----------
14
TZ_VERSION
ACTION
11
5a)
5a)theresultis14orlower
Everydatabasein11.2.0.1homeneedstobechecked,ifoneormorehasaresulthigherthan14youneedtofollowstep5b)
IfyourcurrentRDBMStimetimezoneversionisDSTv14orlower,
install11.2.0.2inanewhomeandupdatethe11.2.0.1databaseto11.2.0.2.
YoucanskipanyDSTrelatedsectionsinthepatchsetdocumentation,thereisnoneedtoapplyDSTpatchesorcheckforDSTissuesfortheupdateto11.2.0.2
The11.2.0.2RDBMSDSTversionaftertheupdateto11.2.0.2willbethesameasyou11.2.0.1system.
Aftertheupgradeto11.2.0.2youcan
*(recommended)updatetoDSTv14byfollowingNote977512.1UpdatingtheRDBMSDSTversionin11gR2(11.2.0.1andup)usingDBMS_DST
*(optional)updatetoahigherDSTthanDSTv14versionifthisisneeded.
ThelatestavailableDSTpatchisfoundinNote412160.1UpdatedDSTtransitionsandnewTimeZonesinOracleTimeZoneFilepatches
5b)theresultishigherthan14
IfyourcurrentRDBMStimetimezoneversionishigherthen14,youneedtore-applythesameRDBMSDSTversionasfoundinqueryafterinstallingthe11.2.0.2softwareinthenewOracle_home.Orinotherwords,youneedtoapplythe11.2.0.2RDBMSDSTpatchforthesameDSTversionbeforeopeningthedatabaseinthenew11.2.0.2softwarehome.
Wesuggesttoapplythe11.2.0.2RDBMSDSTpatchafterinstallingthe11.2.0.2softwarewiththeOracleUniversalinstaller.
IfyoualsoneedtopatchtheOJVMthenwesuggesttoapplythelatestDSTOJVMfixfor11.2.0.2,evenifyourcurrentRDBMSDSTpatchislower.ThisisbestdonerightafterinstallingtheRDBMSDSTpatch,noneedtofollowtheOJVMDSTpatchreadmeinstructionsasthereisnodatabaseyet.
FortheactualOJVMandRDBMSDSTpatchesforyour11.2.0.2releasepleaseseeNote412160.1UpdatedTimeZonesinOracleTimeZoneFilepatches
AfterinstallingthesameRDBMS(andtheOJVM-whichmaybethelastest/higherthantheRDBMSDSTversion)DSTpatchinthe11.2.0.2ORACLE_HOMEupgradeto11.2.0.2withoutanyactiononTSLTZorTSTZdata.Followtheupgradeorpatchsetapplyinstructions,youcanskipanyDSTrelatedsections.
The11.2.0.2RDBMSDSTversionaftertheupgradeto11.2.0.2willbethesameDSTversionasusedinthe11.2.0.1OracleRDBMS.
Aftertheupgradeto11.2.0.2youcancheckifthereisanewerDSTversionoutand,ifneeded,updatetothisDSTversion.
ThelatestavailableDSTversionisfoundinNote412160.1UpdatedDSTtransitionsandnewTimeZonesinOracleTimeZoneFilepatches
Step6
CheckthatNationalCharacterset(NLS_NCHAR_CHARACTERSET)isUTF8andAL16UTF16:
selectvaluefromNLS_DATABASE_PARAMETERSwhereparameter='
NLS_NCHAR_CHARACTERSET'
IfthisisUTF8orAL16UTF16thennoactionisneeded.
IfisnotUTF8orAL16UTF16thenreferthefollowingarticle
Note276914.1TheNationalCharacterSetinOracle9iand10g.
Step7
OptimizerStatistics
WhenupgradingtoOracleDatabase11gRelease2(11.2),optimizerstatisticsarecollectedfordictionarytablesthatlackstatistics.Thisstatisticscollectioncanbetimeconsumingfordatabaseswithalargenumberofdictionarytables,butstatisticsgatheringonlyoccursforthosetablesthatlackstatisticsoraresignificantlychangedduringtheupgrade.
Todeterminetheschemaswhichlackstatistics-reviewtheoutputoftheutlu112i.sqlscript.
Todecreasetheamountofdowntimeincurredwhencollectingstatistics,youcancollectstatisticspriortoperformingtheactualdatabaseupgrade.AsofOracleDatabase10gRelease1(10.1),OraclerecommendsthatyouusetheDBMS_STATS.GATHER_DICTIONARY_STATSproceduretogatherthesestatistics.Forexample,youcanenterthefollowing:
"
/as
sysdba"
EXEC
DBMS_STATS.GATHER_DICTIONARY_STATS;
Step8
DisableOracleDatabaseVault
OracleDatabaseVault
NOTE:
Nofoundinstalled.
Noactionrequired
Step9
BackingupEnterpriseManagerDatabaseControlData
AfterupgradingtoOracleDatabase11grelease2(11.2),ifyouwanttodowngradeOracleEnterpriseManagerDatabaseControlyoumustsaveyourDatabaseControlfilesanddatabeforeupgradingyourdatabase.Theemdwgrdutilitycanbeusedtokeepacopyofyourdatabasecontrolfilesanddatabeforeupgradingyourdatabase.TheemdwgrdutilityresidesintheORACLE_HOME/bindirectoryintheOracleDatabase11grelease2(11.2)home.
EnterpriseManagerDatabaseControlorNot
Note
YES-OracleEnterpriseManager
Step5b,6
NO
YES-OracleEnterpriseManager
1.SetORACLE_HOMEtoyouroldOraclehome
2.SetORACLE_SIDtotheSIDofthedatabasebeingupgraded.
3.SetPATH,LD_LIBRARY_PATHandSHLIB_PATHtopointtotheSource/oldOraclehome.
4.GotothetargetOracleDatabaseReleasehome
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- Upgrade database using dbua