0% found this document useful (0 votes)
473 views27 pages

Oracle RAC Database Upgrade 12c To 19c PDF

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
473 views27 pages

Oracle RAC Database Upgrade 12c To 19c PDF

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 27
Upgrade Oracle Database from 12.2.0.1 to 19¢ and convert RAC Notebook: 18 rented ‘25/2020 328 PM pasted: 672572020324 PM Author: sppsdos1961@gmalcom Upgrade Oracle Database from 1220.1 to 196 0. Check Compatibility Before Upgrading Oracle Database 1. Environment PRE-UPGRADE TASKS 2.Rackup 3. Run preupgrade script 4 View Prevograde log 5: Minimum tablespace sizes for upgrade 6 Update INTIALZATION PARAMETERS, 1 Gather DICTIONARY STATS 8 Purge Recycebin 9. Refresh Ms 10. Run preupgrade fips sal 11. Vani atchive lg dest size 12 Stop USTENER 1 Crest Flashback Guaranteed Restore Point UPGRADE TASK 14 Shutdown Database 15. Copy init and password fs fom 12c to 19 dbs home. 16 Starp DB in Upgrade mode 17-Run abuperade 12. Star D8 fom 18ehome POST-UPGRADE TASKS WHEN D3UA USING 18 Run eatconpl a star utp sql 20. Run postupgrade,fxvps.sl 21. Upgrade Timezone 22. Rum whats 91 23. Run catupastsal 24 Re-Run postupgrade fap 25. Reveiy INVALID OBJECTS 26. Drop Restore point 27 Set COMPATIBALE parameter value to 19.0 28. Vent DBA.REGISTRY 29, Add TNS Emre in 19¢ TNS home 30, Password Fle ~orapuCID BI. Edit ota 32. 8ack Up the Database srossuneenotacnonsesenyerserenserstrersesersesersereerotresetsennenesnenesrenssrennerasnenaenetsenetaenetnenets 0. Check Compstiility Before Upgrading Oracle Database Use oracle support compatibility matt 1.Envronment stovsetavsetavsotaesetsonatrersesanscrassoraesedsorecsotavsetscsatnessenesrenesrasessaseetaseevaveatactavsetaes Hostname RACLORACLE COM Database Name: PRODDE DBVERSION 12201 wa NON-CDB, Single Instance DB Home ath: /u0t/appyorade/preducy 12 20/abhome1 Datafile Location: /u01/app/orace/evadata/PRODDS. Target DB VERSION: 18¢(183.000) Taiget DB Path -/uOI/app/oredle/preduc/19.0.0/abhome1 PRE-UPGRADE TASKS shavivtavhotavsotsvsentenatrerserenneraenorasnevactavsotavsatactattesatnesianesnasastosestaseetastavactavbeties 2. Bacup shevietovhoteusotevinttotaetornersenersenersenersetetotneretioteanotienettanesrosnetorneradnetachovaetevietees Use RMAN Backup script and take evel O backup TINS Files [ovacle@ract ~18 ca wot/app/orace/oreduct/122.0/dbhome_\nework/aéminy [oracle@racl adminiS ep -p stener ora sqhetora tnsnamesars /u0T/app/backwpy PFLE/SPFILE/PASSIWORD (orapwsiD) FILES [oraclearact dbsis pwd /01/apo/orace/preduct/1220/dbhome. dbs [oracletract dbs cp-pspilPROODR.or arspwPRODDS /u0T/app/bsckup/ Invau oBsecrs SQL> select count from dba, objects where status» INVALID couNTe oe sa ‘shasaonauaonavsonsenennenasvennsvennevennevestevesteureuecreusesaunensavensavestanesneneesouredanrenaenedsenees 3. Run preupgrade script shounohosaotavsotavsatsenassenasvennsvannevantevectauseuavsevacsausesausessesessasestoueszoueszastozactauactes [oraclearact ~1$ mkdir-p shome/oracle/PRODDB/preupgrade [oraclearact -1$-oraenv ‘ORACLE. SID = oracle}? PRODDB ‘The Oral bate has been set ta /<01/app/orace [oraclearact ~1$ o01/app/orace/product/122O/dbhome./jkbinjava jr ‘0 app/oracleproduct/'9.0./dohome._/rdbms/acmin/orevpgrade ar FILE DIR /home/orace/PRODDB/preupgrade PREUPGRADE SUMMARY ‘nome/oracle/PRODDS/preupgrade/oreupgrade log ‘homeyoracle/P20003/prevpgrade/oreupgrade_fxups al ‘nome/oacle/PRODD8/prevpgrade/postupgradefeups sql Execute fu scripts s indicated below Before upgrade: Lag into the database and execute the preupgradefxups ‘@/homeferacle/PRODDS/orevpgrade/preungrade fuyps sal ‘er the uparade: Log into the databace an execute the postupgrade fips ‘@yhome/oracle/PRODD3/orevpgrade/postupgrade. ups sq) stoectavsotavsonsesetsenatierssrenserassoraezezsoravsotacsetsennanessanesrenesresestaveetaveetavtavactaveetaes 4. View Preupgrade log seossetasretacreseenenrenssronseresgerensersesersereeretretersetetretierstisnssrataerasterseesraeterseneenneet [ovacle@ract ~1$ cat fhomeforacle/>RODDB/preupgrade/preuparade log Report ganerated by Oracle Database Pre-Upgrade Information Tool Version| 190000 Bula 1 Upgrade-To version: 190000 Status ofthe database prior to upgrade Database Name: PRODDS Container Name: PRODDB Container 1 0 Version: 122010 DB Patch Level: No Patch Bundle applied Compatible: 1220 Blocksize: 8192 Platform: Unuxx06 64-6 Timezone Fle: 25 Database leg mode: ARCHIVELOG Readonly. FALSE ‘ion EE rade Component parade Acion Curent Sts race Server {be upgrades} VAUD ‘Server AVA Vitul Machine be upgraded VALID Oracle YOK for va [robe upgrades} VAUD Real Aplestion Chstes [tobe upgraded) OPTION OFF race Workspace Manager [tebe upgraded) VALID OLAP AsivieWorspace” abe upgraded) VALID race Label Sect tobe parade] VALID race Database Vt [be upgraded) VALID Oracle Tox tobe wpgradea VALID race XML Database {tobe upgraded) VALID Oral va Packages {tobe upgraded VALID Oracle Mutsmeda [tobe upgraded) VALE rade Spat (tobe epgraded) VALID race OLAP AP ‘ro be upgraded) VAUD BEFORE UPGRADE REQUIRED ACTIONS. None RECOMMENDED ACTIONS 1. (AUTOFDUP) Gather stale data dictionary sais rir to database upgrade in ofpesk time using [EXECUTE DBMS_STATS.GATHER_DICTIONARY. STATS Dictionary statistics do not exist or are stale (nt up-to-date) Dictionary sates hep the Oracle optimizer find ecient SQL ‘execution plans and are essential for proper upgrade timing, Oracle recommends gateting dictionary statis in the lst 24 hous before database upgrade, For information on managing optimizer statistics refer tothe 1220. ‘Grace Database SOL Tuning Guide {AUTOFKUP) Gather statis on fied objects prior the upgrade, None ofthe fed objec ables have had stats collected, “Gathering satistcs on fxed objects if none have been gathered yt recommended prior to uparading. Forinformation on managing optimizer statistics, refer tothe 1220. ‘Oracle Database SOL Tuning Guide INFORMATION ONLY 3. To help you keep tack of your tablespace allocations, the fellowing [AUTOEXTEND tablespaces are expected to successfully EXTEND curing the upgrade process. Min Size ‘ablespace Sze For Upgrade SySAUX 4608 S00 MB ‘syste S00M8 912 MB TexP 32M8 150MB UNDorBs1 TOMB 43M Minimum tablespace sizes for upgrade are estimates 4. Ensure ther is ational ésk space in LOG_ARCHIVE_DEST_1 fr atleast 4518 M8 of atchive logs. Check let og during the upgrade that there is no write err tothe destination duet lack of ik space. Archiving cannot proceed ifthe achive ag destination i full during uprade ‘Archive Log Destination: Parameter LOGARCHIVE DEST.) Destination : /u01/app/archive/PRODDS ‘The databace has archiving enabled. The upgrade process wil need free ik space in the atchive lg destinations to geneate archived logs to, 5. Check the Orace Backup and Recovery Use's Gude fr information an how to manage.an RMAN recovery catalog schema, Ifyou ate using » version ofthe recovery catalog schema that i older ‘than that required by he RMAN cent version, then you must upgrade the ‘atalog schema eis good practice ta have the catalog schema the same ar higher version than the RMAN cent version you ae using. (ORACLE GENERATED FIXUP SCRIPT {ilo the isues in database PRODDB \ahich are idensfed above as BEFORE UPGRADE "YAUTOFIKUP) can be resolved by executing the folowing SQL> @ fromeforacle/PRODDB preupgrade/preuparade, fuups 4 AFTER UPGRADE REQUIRED ACTIONS. None RECOMMENDED ACTIONS. 6. Upgrade the database time zone file using the DBMS, DST package ‘The database i using time zone fle version 26 and the target 19 release ships wth time zane fe version 22, ‘orace recommends upgrading tothe desired dates version of the time zone fle. For more information, refer to "Upgrading the Time Zone Fle ‘and Timestamp with Time Zone Data" in the 19 Ore Database ‘Globalization Suppor Guide 7. (AUTOFIKUP) Gather dictionary statistics after the upgrade using the ‘command! [EXECUTE DBMS _STATS GATHER DICTIONARY. STATS; ‘oracle recommends gathering dictionary statistics after upgrade. Dictionary statistics provide essential information tothe Oracle ‘optimizer to help it find ecient SAL execution plas. Alter 3 database upgrade, statistics nee tobe regathered as there can now be tables ‘that have significantly changed during the upgrade oF new tables that do not have statistics gothere yet. 8. Gather statistics on five objects after the upgrade and when there is represencatve wordoad on the system using the command: [EXECUTE DBMS _STATS GATHER FIXED. OBJECTS STATS This recommendation i given forall preupgrade runs. Foeed object statstis provide essential information tothe Oracle ‘optimizer to help it Fi ficient SQL execution plan. Those statisti ate speci tothe Oracle Database release that generates ‘them, and canbe stale upon dtabase upgrade, Forinformation on managing optimizer statistics, reer tothe 1220.1 ‘Oracle Database SOL Tuning Guide (ORACLE GENERATED FIKUP SCRIPT Ailofthe issues in databace PRODDB \ahich are identified above as AFTER UPGRADE “(AUTOFIKUP) can be resolved by executing the folowing ‘SQL> @ ome/oracle/PRODDB/preupgrade/pastupgrade_faups sal 5. Very tablespace sizes for upgrade *Tablessace Auto extend ON and mas size need tobe set, hence no action taken. TABLESPACENAME AUTFILE.NAME TOTAL SPACE FREE SPACE reat MAX.SPACE SYSAUK YES /UOt/appyorack/oradata/PRODDB/sysauOT def 460_—«28—=«S 8 37.9900847 SYSTEM YES /\O'/appyoracl/oradata/®RODDB/sysemOTdb 800448 3. 9980847 UNDOTAS! YES /uO1/app/erade/oradata/PRODDB/undotbsOidbt —-70_—=«3——«42 319909847, USERS YES OT/apploraceforadst/PRODDB/usersUl dbf «S831 9999847 1335 34127899939, 6. Update INTIALZATION PARAMETERS. ‘ShaHaenesnonasnonsessnsenstvensh¥enHe¥enHe¥esHewesHeWAOHOCROHOOROH¥eNSUVONEOVRAEOMER4ONESHONEOHOMROLAOROHAOROS In this test scenatia, noting o update as per preupgradelog, Hence no action taken. But need to check f there isan action recommended stovsetavsoravsotsenatsenserenseransoreezorsesorsosacrosscnatscsnanessenesrenesravesraveeraveavactatatatsetaes 7. Gather DICTIONARY STATS stausotavaotassotscsatsesatsesassesnevennevasovsctausctavsetsctausctiuscssenessasesiaseesaueedaceauactasctaes SQL> SET ECHO ON: SQL> SET SERVEROUTPUT ON; SQL> EXECUTE DBMS_STATS GATHER DICTIONARY, STATS PUSQL procedure successtuly completed saw shadsotausotausotsssansesansenassesnevannevanovactavsctavseuscsaysesausosuenessesesiasesnaseesastauactausctass 8 Purge Recycebin srotsorevhorecsotaesonvorsereenerentersezersenersereeretnesetsennenetrenesrenssresnerasnensenetaenetsenetnenets SQL> PURGE DBA RECYCLEBIN DRA Recycebin purged, saws stosectesnenaesersenenyerssrenserensereesersererrereeresretersetetnetiertistatiatasrasterseesraetorseneeneneet 9 Refresh vs srovsereenotecnotaesotyorserennersenerenseraeaersererretresetsenneresnennarenssrennerasnenaenetaenetsenetnenees ** Before upgrading Oracle Database you must wai uniall mstvialzed views have completed relreshing un the flowing SOL query: SQL> SELECT oname FROM sy obj 0, ssuser$ u, sys sums 5 WHERE otypee = 42 AND btandlsmflags. 8) na rows selected sav» SOL> declare Ist fares integers) =0; begin DBMS. MVIEW.REFRESH_ ALL MVIEWSIist fares", TRUE, FALSE end 1 PUSQL procedure successuly complete. sal» 10. Run preupgrade_fhupssql stoveotavactavransennsionnsrennereesorasnerseredsoenereenenetsonnanessanesrenesravestaseeraseavastaveetateteet SQL> @/homeforacl/PRODDS/preungrade/preuparade,fxypssql SQL> Rew SQL> REM Oracle PRE-Upgrade Foup Sent SQL> REM SQL> REM Auto-Gonerated by: Oracle Preupgrade Script Sal> REM Version: 190000 Bult SQL> REM Generated on: 2020-06-20 204502 SQL> REM SQL> REM Source Database: PROD SQL> REM Source Database Version: 122010 SQL> REM For Upgradeta Version’ 19.0000 SQL> REM sas SQt> Rew SQL> REM Setup Environment SQL> REM SQL> SET ECHO OFF SERVEROUTPUT ON FORMAT WRAPPED TAB OFF LINESIZE 200, Executing Oracle PRE-Upgrade Fup Sci Auto-Generated by. Oracle reupgrade Script ‘Version: 190.000 Bui: 1 Generated on: 2020-06-20 20:45:02 For Source Database: PRODDS Source Database Version: 122010 For Upgrade o Version: 190000 Proup Preuparade ation lesve [Number Preupgrade Check Name Remedied Further DBA Action 1 dievonary-sats YES None 2 prefoad objects YES None 5. tablespaces info NO Informations only Further action optional 4. min_archive.dest size NO Informsional only, Further action optional 5 manrecovery version NO Informational onl Further action optional The faup sctpts have been run and resolved hat they can. However, ‘there ae stlssus originally identified by the preuparade that have not been remedied and ae sil present inthe database Depending on the severity af the spect isue, andthe nature of the issue sf that could mean that your database isnot ready for upgrade. To rescive the outstanding sues, start by reviewing the preupgrade fuyps sal and searching it for the name of the fled CHECK NAME of Preuparade Action Number listed above Tare you wil find the orginal conesponcing diagnostic message ‘rom the preupgrade which explains in mote deta what stl needs tobe done PL/SQL procedure successtly completes sal» ‘hasaonaunonasnonssnensenatvonss¥enne¥enHevasHowesHeWAOHOWAeHOUROH¥ORSHVONEOVON4OMARHONEOHONROHONROHADROHAOHOHS 1V.Weny archive log dest size stovectersonaerorsenetvenserensereeneraenerasnerseuerrouaseusenntresnanessanesravesnavestasrerestevactateateee Please very fee space on AL LOG_ARCHIVE DEST. locations including ALL standby destinations SQL> steve log st Database log mode _Archve Mode Automatic aehial Enabled Archive destination /u01/app/archive/PRODDB Oldest online log sequence 1 Netlog sequence to archive 2 Ccurentlog sequence 2 sal» SQL> tf -h u01/app/archive/PRODDS Flesystem Size Used AvailUse% Mounted on Meufsda5 BIG 386. 336 52% (wT < sau 12. Stop LSTENER [oracle@ract ~)8 ps ef grep ins foot 15 2.020017 066090 netns) oracle 3943 1 020087 00:00:00 /ubl/app/orace/product/1220/dbnome,/bin/rslsn LISTENER PRODDBB inherit oracle 16771 3083 02703 ps1 000000 grep ~color=auto ts [oracle@ract ~I6 nr stop LISTENER, PRODDS LSNRCTL for Linc Version 1220.10 Prodetion on 26-JAN-2020 210814 Copyright () 1981, 2016, Oracle, Alright reserved, Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=ICP)HOST=RACL ORACLE COMPORT=1528)) “The command completed successfully (oraceanact =) ps ef grep ins root 15. 2.020017 060000 etn) oracle 16812 3083 02103 pts 000000 grep ~co [oraclearact “18, ‘shasaonaunonssnonsanensensnvenss¥enne¥enHevesHowtsHeWAOHOUROHOOhOH¥NSUVONEOUAAHOMARHONRSHONEOHORROAOROHAOEOHS 113. Crane Flehback Guaranteed Restore Point shasaokosaonausonsusensenaavennsvennevennevesteuesteurenauseusesauvensavensanennavesneneesouredantousenedseners 'NO need to enable Flashback Database from 17.20.1 onward ‘* Database MUST be in chive Log mode MUST NT change the compatible parameter to higher version SOL» select fashback_on from vSdatabase FLASHBACK.ON noc SQL> select name open, mode log. mode from vate NAME OPEN.MODE LO, MODE PRODDE READ WRITE ARCHIVELOG SQL> show parameter compatible Name TYPE VALUE compatible siting 1220 < anc, compatile boolean FALSE sav SQL> show parameter recovery NAME Tre VALUE db secover- fie dest sting ab recovery. fle dest size big integer 0 recover_paalelsm integer 0 remote recover fledest sting sal> SOL>imkeir- /e01/app/oracetas oven tea SQL> ater system std, recovery. fle dest siza=106; Sytem aered SQL> ater system st db, ecovery. fle dest=/u0/app/oraclafast recovery ses! System altered SQL> show parameter recovery NAME TPE VALUE Gb recovery. fle dest String /uOI/appyoracle/tast recovery area sb recovery. Hle_destsize big integer 106 recover parallelism Integer 0 remote recovery fle-dest sting sal> SOL> sleet from VSrestore point no rows selected sa SQL> create restore point pre. upgrade guarantee Nashback database; Restore point created, sa» SQL> col ame for 220 ‘ol GUARANTEE FLASHBACK DATABASE fr a10 col TIME for 960 set lnes 190 Select NAME GUARANTEE FLASHBACK DATABASE.TIME rom VSrestore pont Name GGUARANTEE_ TIME PRE_UPGRADE YES 20-1UN-20090550.000000000 PM saw shassvtavsotavsonsesansesatsesassenevesnevasovactausctavseuscsausctiuscssesessasesiaueesaveedaceavactaactaes UPGRADE TASK stovavtassotavsotaesatsenatreratsenssraesoraeseesosscsotacsatscentnesnenessenesresesiavesrasestavtavactataetaes 14 Shutdown Database shoviorevhotacsotaenatvonnensenensenereeneraeneneteurotiretsotetnotnanetreneerasnenasnenasresenetactettotees SQL> SELECT NAMEOPEN, MODE FROM VSDATABASE: NaMe PEN MODE Roop EAD WRITE SQL> SHUT IMMEDIATE Database closed Databae dismounted. (ORACLE instance shutdown, sal» 15. Copy init and password files rom 12cto 19e bs home [oracle@ract ~1$ ca /401/app/orale/product220/abhome_1/dbs [oracleaact dbs Ist *PRODDS srwer-1 oaee snstall 26 Jan 28 2008 kPRODDS 1 oracle oinstall 3584 J39 28 20:71 orapwwPRODDS « 1 oraceointall 3584 Jan 28 2-05 spilePRODDA ora <-- Srwcrw-=- orale cnstall 1544 Jan 28 21°97 he, PRODDR dat [oracle@ract dbsis [oracle@ract dbs) cp rapwPRODDB spflePRODDS or /u0T/app/orale/producty’19.0.0/sbhome_1/cbs/ [oraclearact dbs$ [st /u01/app/oraele/product/19.00/dbhome./dbs/"PRODDB™ 17 oracle ointall 354 Jun 20 2110 /u0/app/araclproduct/19.0.0/dahome_1/dbs/spflePRODDR ora rute-- 1 ace onstall 3584 Jun 2021.10 /s01/apo/orace/product/19.0.0/dahome_1/ds/orapwPRODOB [oracle@ract dosis 16. Starup 08 in Upgrade mode from 13 home ‘shadaonounonassonssnenbenatvenwe¥enne¥enHoVasHouAsHeWAOHOUROHOURGHVORSUVOREONRHEONAREONRSHONROHONROAOROHAOROHS [oracle@ract ~1$ exper ORACLE HOME=/u01/app/orale/product/19.00/ébhome_t [ovacle@ract ~)$ export ORACLE_SID=PRODDB [oraclearact ~1$ PATH=/u01/appyoradle/produc/19.00/dbhome./oinSPATH; export PATH loracle@ract ~)$ which alas /401/apporcle/product/19..0/dohome_/bin/salplus [oracle@ract -18 spl / as sysdba SOU’Plus:Release 190.000 - Production on Tue Jun 20 21:13:24 2020, Version 194000 Copyright () 1982, 2018, Oracle, Al sights reserved, Connected to an il instance SQL> startup upgrade; (ORACLE instance started, Total Sytem Global Are 1860277408 bytes Fixed Size 8896528 bytes Variable Size 939524098 bytes Database Bulfers 603979776 bytes Redo utters 7876508 bytes Dstabase mounted. Database opened. sav SOL> select name.open_mode.cdb versionstatus from database Sinstance NAME OPEN.MODE —CDBVERSION STATUS PRODDB READWAITE NO 190000 OPEN MIGRATE « sa ‘shasaonauaonaunonssnessennsvennsvennevennevestevesneureuarseusesauvensavensenensavesneueesoutedanrouaenedsenes 17-Run dbupgrade stovsetsvsoravsorsvsansenatienserensoraezersesorsesacrosncnetsantnessenesrenesrasesraveetaveatactataetateataes You can rum the upgrade using ether of the fllowing commands. The second is actually just a shorthand forthe former: [oracle@ract ~18 mktir-p /home/oracle/whileupgrade [oracle@ract ~1$ ca /u0'/app/orale/product9.00/abhome_1/rdoms/admin [ovacle@ract ~1$ nohup /AO1/app/oracle/product/1800/dbhome.1/perVin/pel cate pl | /home/oralefwhleupgrade -n catupgrdsal Oke [oracle@ract ~18 6 01/app/orele/product19.00/ébhome_1/biry [oracle@ract bins str dbupgrade rwarxo 1 orate install 3136 Apr 17 2018 abupgrade [ovaclewract bins [ovacle@ract binl$ nohup /ebupgrade & [oracle@ract bin ots [11+ 22584 Running ‘nohup fdbupgrade & <-— [oracle@ract bin disown [oracle@ract bin) ps-ef| grep + catctlpt oracle 2258922564 02133 pts 000003 /<01/app/oracle/product/9..0/dbhome_1/perin/per |W01/app/oracle/produc/19.00/dbhome./perVib/u0\/app/oracle/preduc/19.0.0/dbhome_/ebms/scmin/atll pl /O1/spp/orsce/produt/19.00/dbshome.Vrdbms/adminvestupgrasa) race 24991 3093 02140 pts/1 000800 grep -color=aute~ cate pl [ovaclerct bins Monitor upgrade lag under below location [oracle@ract upgrade20200128213845)$ cd ‘0 app/oracte/product'90fdohome._1/ctgtoologs/PRODDB/paradeZ0200128213345, [ovacle@ract uparade20200728213345)$i5 “log ctupgrlog| cawpgre2og cpg log catupgre og [ovaceeact upgrade20200128218845)$ tal fcatupgrddleog tal fetupgrt log tall-featungra2og tail festupgr log [ovacle@ract -1$ cd (0 /appyorele/product/9.0/dbhome_1/bry [oraclewract binl$ more nohup out ‘Argument Ist for /w0/app/orace/product/18.00/dbhome.1/rdbms/adeninicatet pl) For Oracle intemal use only & = unin 20 Do net in ce Input Diectory d= Echo OFF Simulate Forced cleanup Log i Chie Process Log dir Pro ist Name Upsrade Mode active 51 Process Count SQL PDA Process Count N= 0 (Open Mode Normal Sars Phase End Phase Reverse Order ‘AutoUpgrade Resume Sept $20 Seral Run s RO User Talespaces Display Phases y= 0 Debug eatcon pm Debug eatetipl =z ° ° ° «tel pl VERSION: (1900001 STATUS: [Production] BUILD: [ROBMS,19.40.00D82U,{.NUXX64 190626) 0 1/appforace/product/18..0/dehome./tabms/admir/orahome = /u0/app/oracle/product/19.0.0/dbhome_}) {u01/apoforacle/product/'9.00/dohome1/binjorabasehome = /s0/app/orace/product/19.0./dbhome.1) «atellGetOraBaselogDir = /u0I/app/orade/preduc/19.00/ebhome. 1] Analyzing fle /:01/appforacl/product/190./abhome./tdoms/adminfatupgrdsal Log fle directory = /tmp/efgtoollogs/upgrsde20200820213384) catecon:st log le, base_path: ALL catcon-elated output willbe written to Utmpetgtoologs/upgradie20200620213334/catupgrécatcon 2258815 «atcon:set log le, base. path: eatcon: Se U/Imp/etgtoologsupgrade?0200620213334/eatupgr log] files for output generated by srots «atcon:set Jog fle ase. path: eatcon: See (Amp/ctgtoologs/ungrade20200620213324/catupgr. st les for spool les if any Number of Cpus Dstabase Name Datatiace Version cateonset Jog fle bse. path: ALL cateon-elated output willbe written to (Vu01/apo/oraclefprosuc/190.0/dahome,1/ctstollogs/PRODDS /uparade20200620213845/eatupgrd cat con 2258915) catcon:set Jog le, base. path: eatcon: See (Vu01/app/oracle/produc/190.0/4ohome. V/etstollogs/PRODDB /upgrade20200620213845/eatupgrd log] files for output generated by septs ‘atconset Jog base.patheatcon: See [/u01/app/araleprocucl"2.0.0/dahome, 1/tgtollogs/PRODDE /upgrase20200620213345/estupgrd “It fils for spool fle, if sry Log fle directory = Yo /approracle/product/198.0 0/ébhome1/ctgtoologs/PRODDB/upgrade20200620213345) Pale SQL Process Count ‘Components in [PROD] Installed [APS CATALOG CATJAVA CATPROC CONTEXT DV JAVAVM OLS ORDIM OWM SOO X08 XML XCQ) Not Instales [APEX EM MGW ODM RAC WK] Prases 0-107] Start Time’ 213856) sovereer_Exzcuting Change Scripts TT Serial Phase #0 [PRODDA] Files Time: 325 sents eatteg Core SOL reese Serial Phase #1 [PRODDS)FlesS Time: 56s Restart Phase #2 [PRODDB] Files! Time: Is ‘sveeern” Catalog Tables and Views "emer Parle Phase #3. [PRODDS) Files 19 Time: 325 Restart Phase #4 [PRODDB] Fles:1_ Time: 1s reset Catalog Final Seipts“** Seral Phase #'S [PRODDS)Fles7 Time: 24s overerarees Catproe Sart * Serial Phase #6 [PRODDA) Flee Time: 218 settaceetetCatproc Types tient Serial Phase #7 PRODDS} Files? Time: 14s Restart Phase #8 [PRODDB] Fles:1_ Time: 1s sisson Catproc Tables eats Parle Phase #9. (PRODDS)Fles67 Time: 475 Restart Phase #10. [PRODDB] Files Time. 1s rmvern_Catproc Package Specs “este Serial Phase #11 [PRODDB] Files Time: 945 Restart Phase :12_[PRODDB] Fils Time: 1s MhsuetveeCaiptoc Procedures, stsuostre Parallel Phase #13. [PRODDB)Fles94 Time: 195 Restart Phase 14. (PRODDB] Files. Time: ts Parle Phase #15. [PRODDB] Files 121 Time: 29s Restart Phase 16 [PRODDB] Files. Time: 1s Serial Phase 4.17. [PRODDB]Fles22 Time: 7s #218 [PRODDB] Files Time: ts Calpe Views svete Paralel Phase #19. PRODDS]Fles32 Time: 375 Restart Phase #20 [PRODDB] Files Time: 1s, Seral Phase #21 [PRODDB] Fes’ Time: 19s Restart Phase #22 [PRODDB] Files1_ Time: 1s Parle Phase #23 [PRODDA]File:25. Time 2175 Restart Phase #24 [PRODDB] Files! Time: 25 Patalel Phase #25. [PRODDB] Fils 12 Time 120s Restart Phase #26 [PRODDB] Fis] Time: 15 Seral Phase #27 [PRODDB] Fes Time: os Serial Phase #28 [PRODDB] Fess Time: 6+ Seral Phase #29 [PRODDB] Fles'1 Time: 0s Restart Phase 8:30. [PRODDA| Files] Time: Os feusetisewrtCatproe COR Views terre Serial Phase #31 [PRODDB]Fles'1 Time: 35 Restart Phase #32 [PRODDB] Files1_ Tine: 1s Serial Phase #34 [PRODDB] Files Time: 0s newt City Plba sent Serial Phase #35 [PRODDB]Fles294 Time: 485 Serial Phase #36 [PRODOB] Fles'| Time: 0s Restart Phase #37 (PRODDB] Files Time: ts Sera Phase #38. [PRODDB] Fes! Time: 8s Restart Phase #39 (PRODDB] Files Time: ts sesetereens Catproe DataPump “stuosee Serial Phase #40 PRODDB] Fes Time: 595 Restart Phase #41 [PRODDB] Files Time: Os mcerete Capac si, sso Parle Phase #42 [PRODDS]Fles13. Time: 1315 Restart Phase #43, [PRODDB] Fils Time: ts Parle Phase #44 (PRODDB) Fes 1 Time: 20s Restart Phase 645. [PRODDA] Files Time: ts Parle Phase #46 [PRODDB) Fles3. Time: 4s Restat Phase #47 (PRODDB] Files 1 Time: 25 mnvereeFinalCatproc scripts Serial Phase £48 [PRODOB] Fest Time: 10s Restart Phase #49. (PRODDB] Files Time Cs fewest” Final RDBMS ectpts terre Serial Phase #80. [PRODDB] Fles'1 Time: Ss ‘evereree Upgrade Component Start ‘rere Serial Phase #81" [PRODDB] Fes" Time: 35 Restart Phase #52 [PRODDB] Fils Time: ts SS Upppadng Joa ond omrdova oar" Serial Phase #53. [PRODDB] Fes2 Time: 3825 Stietecrenees” Upgrading XOB.sereereee Restart Phase #54. (PRODDB] Files Tine 25 Soral_ Phase #55 [PRODDB] Fs’ Time: 10s Seral Phase #87 [PRODDB] Fess Time: 7s Parle Phase #58 [PRODOB)Fles10. Time: 6s Patel Phase #59. [PRODDB)Fles25. Time 10s Seral Phase #60 [PRODOA] Fes Time: 128 Seral Phase #61 [PRODDB] Fs! Time: 0s Seral Phase #62 [PRODDB] Fles82 Time: 7s Seral Phase #63 PRODDB] Fle Time: 0s Parle Phase £64 [PRODDE Fls6 Time: 95 Sera Phase #65 [PRODDB] Fles2 Time: 225 Seral Phase #65 [PRODDB]Fles3 Time: 325 Smseures tegruding OFDM treet Restat Phase #67 [PRODDB] Files Time: 0s Serial Phase #69. [PRODDB] Fls'1 Time: 5s Parle Phase #70 [PRODDB)Fles2 Time: 4s Restart Phase :71 [PRODDB] Files Time: 1s Paral Phase #72 [PRODDS) Fles2 Time: 45 Serial Phase #73 [PRODDB] les2 Time: 5s evererers_ Upgrading SDO. ‘etree Restat Phase #74 [PRODDB] Files Time: 1s Serial Phase 76 [PRODDA] Fles!! Time: 63s Seral Phase #77 [PRODDB] Fles2_ Time: 6s Restart Phase #78 (PRODDB] Files) Tine: 1s Seral Phase #79 [PRODDB] Fles1 Time: 85s Restart Phase #60. [PRODDB] Files Time: Os Paralel Phase #81 [PRODDS]Fles3 Time: 115s Restart Phase #82 [PRODDB] Files Time: 35 Seral Phase #83 [PRODDA] Fes! Time: 135 Resta Phase #84 [PRODDB] Files Time: 15 Seral Phase #85 [PRODOB| Fles!| Time: 135 Restart Phase #86 [PRODDB] Fils Time: ts Parle Phase #87 [PRODDB) Fes’ Time: 155s Restart Phase #8. (PRODDB] Fils Time: 1s, Serial Phase #89. [PRODDB] Files Time: 4s Restart Phase #30 [PRODDB] Files] Time: 1s Serial Phase #91 [PRODOB] Files Time: 125 Restart Phase #82 [PRODDB] Fils Time: 1s Seral Phase #93 [PRODDB] Files Time: 26 Restart Phase #34 [PRODDB] Fis Time: ts ‘set Upgrading ODM, Wk, EXE, RUL, XQ." Serial Phase #95 [PRODOB] Fs Time: 17s Restart Phase #36 (PRODDB] Files Time: Cs ‘sesenete Final Component srpts Serial Phase #97 [PRODDB] Fls'| Time: Ss ‘stances Final Upgrade seins” Serial Phase #98 [PRODDA] Fes! Time: S20s SMnaterenseses Migration, Serial Phase #99 [PRODDB] Fls'1 Time: 3s ‘9 End POB Appleton Upgrade Pre-Shutdown *** Serial Phase #100 [PRODDB, Files) Time: 25 Seral Phase #101 [PRODDS)Files1 Time: Os Serial Phase #102 [PRODDB, Files Time: 1085 Duce. Post Uppare seneoronrter Serial Phase #103 [PRODDS) Files Time: 15s evens Summary report. tneeerevenee Serial Phase #104 [PRODDB) Files? Time: 3s [End PB Application Upgrade Post'Shutdown “* Soral Phase #105 [PRODDS) Files 1 Time: 25 Serial Phase # 106 [PRODDB! Files 1 Time: Os Seral Phase #107 [PRODDS) Files! Time: 305 Phases (0-107) End Time2020,06 20 222035) Grand Total Time: 28008 LOG FILES: /u01/spp/oracle/produc/190.0/abhome./etgtoollogs/PRODDB/uparade20200620213845/eatuperdt log) Upgrade Summary Report Located in {\01/app/orcle/product/18.0.0/dohome__1/fgtoologs/PRODDB/upgrade20200620213345/upg summary log Grand Total Upgrade Time: [00h 405) [oracearact bins [oracle@ract uparade20200620213345)$ pwd /01/app/orsde/product/18.00/dbhome./efgtaliogs/PRODDS uparde20200520218345 [oracle@ract upgrade20200620213845]§ eat upg.summaryog Oracle Database Release 19 Post-Upgrade Status Tool Database Name: PRODOB Component coment Full Elapsed Time Name Status Version HHIMIMSS oracle Server PcRADED 194000 oo801 Jerr JAVA Virtual Machine UPGRADED 194000 009229 Oracle XOk UrcRADED 194000 oo0r:12 Oracle Database Java Packages UPGRADED 184000 000013, (LAP Analyte Workspace pcRabeD 194000 ooo Oracle Label Securty ‘uPGRADED 194000 0090.1 Oracle Database Vault UPGRADED 194000 00032 Oracle Tex UPGRADED 19.4000 oo04s Oracle Workspace Manager UPGRADED 194000 on0037 Oracle Real Application Cisters UPGRADED 194000 oo.0001 Oracle XML Database UPGRADED 194000 000149 Oracle Multimedia UPGRADED 194000 oo00s Spatal LOADING 19.4000 ao0r19 Oracle OLAP API UPGRADED 194000 00014 Datapatch oa Final Actions 083 Post Upgrade coat Total Upg'ade Time: 00408 Databace time zone version ie 26. Ris alder than current laa time | zone version 82, Time zone upgrade is needed using the DBMS. OST package Grand Total Upgrade Time: [0d.0hém 405 [oracle@ract upgrade2020062021324515 18. Starup DB trom 19e home [oracle@ract ~1$ export ORACLE HOME=/u01/app/orale/product/19.0.0/dbhome.1 [ovacle@rsct ~I$ export ORACLE_SID=PRODDB [oraclearact ~1$ PATH /u01app/oracle/produc/19.0.0/dbhome./bin PATH: export PATH [oracle@ract ~)$ which sallus 0 app /orile/product/9.00/dabome_\/bin/salpis [oraclettract -18 septs / as sysdba SQUPlus: Release 190.000 - Production Version 19.4000 Copyright fe) 1982, 2019, Oracle, Al sights reserved Connected to an idl instance. SQL> startup (ORACLE instance str Total System Global Are 1860277408 bytes Fixed Size 8996528 tes Varble Sze 1174408120 bytes Database Suffers 369098752 bytes Redo uffers 7376608 bytes Database mounted. Database opened SQL> select name.open. made. version stats from vEdatabase Sinstance NAME OPEN.MODE —CDBVERSION STATUS PRODDE READWRITE NO 190000 OPEN <-—— sas SQL> col COMP.1D for 310 col COMP.NAME for a0 Cal VERSION for 15 setlines 180 set pages 999 Select COMP_ID,COMP,NAME.VERSIONSTATUS from doaregisy, COMP.ID. COMP_NAME VERSION STATUS CATALOG Oracle Database Catalog Views_190000 UPGRADED CCATPROC Oracle Database Paciages and Types 190000 UPGRADED JAVAUNA Server JAVA Vitual Machine 190000 UPGRADED XML Oracle OK 190000 UPGRADED CCATIAVA Oracle Database Java Packages 190000 UPGRADED APS OLAP Analytic Workspace 130000 UPGRADED RAC Oracle Real Appliation Clusters 19.0000 UPGRADED XD3__ Oracle XML Database 190000 UPGRADED (WM Oracle Workspace Manager 190000 UPGRADED CONTEXT” Oracle Tet 190000 UeGrADED ORDIM. Oracle Mutimedia 190000 UPGRADED 500° Spatal 190000 LOADING xOQ Oracle OLAP APL 190000 UPGRADED OLS Oral Label Security 180000 UPGRADED DY Oracle Database Vault 190000 UPGRADED 15 rows selected sa POST-UPGRADE TASKS WHEN D3UA USING 49, Run utpsal shasaonadaotassonsennsvenatvennsvennsvennevestevestauteavteusenatvensavensanersavesneueenaseedastenaenedaenes Run extconpl to star utieql and to recompile any remaining invalid objects. SORACLE HOME/per/bin/pel catconpl nt -e-b utp -d"." utes OR 4 (<0V/app/oracleforoduct/19.0./dbhome_t/rdoms/odin ahup sqlplus / 35 sysdoa" @utlpsal > /home/oracle/trp.cut 2-81 & SQL> select count fom dbs, jects where status= INVALID’ counre ang SQL> select count) from dba, bjects where status= INVALID’ and owner in (SYSSYSTEM?; count 655, sal» SQL> /u01/appforsce/produt/1900/dbhome.Vtebms/adminll.sel Session are, TIMESTAMP CCOMP_TIMESTAMP UTLRP_BGN 2020-06-20 0031.06 [BOCs The fllowing PLYSQL block invokes UTL_RECOMP to recompile invalid [DOC> objects inthe database. Recomyiltion time is proportional tothe 'DOC> number of invale objects inthe database, so this command may take DOCS 2 ong time ta execute on 2 databace with large numberof inal OC objects oc BOC> Use the following queries to wack recompilation progres: oc DOC> 1. Query retuming the number of invalid ebjecs remaining. This BOCs umber shovla decrease with te. DOC> "SELECT COUNT(" FROM abjs WHERE status IN (8, 5,6) oc DOC: 2. Query rtuming the number of ebjcts compile sofa. This umber BOC> "shoul inrease with tine. DOC> "SELECT COUNT(") FROM UTL_RECOMP_ COMPILED: boc DOC? Ths script automatically chooses serial or parallel recompilation DOC> based on the number of CPUs avaiable (aarameter cpu. count multiplied 1DOC> by the numberof treads per CPU (parameter parallel treads perp) DOC> On RAC this numbers added across all RAC nodes. oc DOC> UTLRECONP uses DBMS SCHEDULER to create jobs for paral DOC recompilation, Jobs ae created without instance aint so that they DOCS can migrate across RAC nodes Use the following queries to verify [DOC> whether UTL_RECOMP obs ae being created and run cowed oc DOC> 1. Quer showing jobs crested by UTL_RECOMP OC> SELECTjob-name FROM aba. scheduler jobs DOC "WHERE job, name lke 'UTL_RECOMP SLAVE % oc DOC> 2. Quer showing UTLRECOMP jobs that are running DOC> “SELECTjob-name /ROM dbs. scheduler tuning jobs DOC> WHERE job name lke 'UTL_RECOMP SLAVE. boc PL/SQL procedure successtuly completed TIMESTAMP. CCOMP-TIMESTAMP UTLRPEND 2020-06-20 003603 DOC> The following query reports the numberof invalid object oc [BOC I the numbers higher than expected, please examine the error DOC» messages reported with each object (using SHOW ERRORS) to see they 1BOC> paint to system misconfigurtion or resource constraints that must be DOC® fixed before attempting to recompile these objects. Docs (OBJECTS WITH ERRORS ° DOC» The following quary reports the numberof exceptions caught during [DOC> recompilation I this number is non-zero, please quey the error [DOCS messages in the table UTLRECOMP_ERRORS to ste any ofthese errors, DOC> ate due to misconfiguration or resoe constraints that must be [DOC fice before objects can compile successful. [DOCS Note: Typical compilation errors (veto coding error ate not DOC> logged inte ths abe: they go into OBA ERRORS insted, boc ERRORS DURING RECOMPILATION ° Function crested PLSQL procedure successuly completed Fonction dropped, PL/SQL procedure suecesstuly completed. sau» SQL> sect count from dba, cbjeets where status=INVALID COUNTE ° sa svesuanensasensaveesavestastevactavsctassatassatacsasscsastesastassstensaseetacsatactntactatetassataenatiasate 20, Run postupgrade. fos sl ‘stessetazsenaenoteerenveresrenseseeneyensersesesteredretereteenetpettapettanesyatteiasteraetsraetorseneeneneee SQL> @/homeroracl/PRODDA/prevpgrade/postupgradefwups sal Session akered PL/SQL procedure successful completes PUSQL procedure sucessuly completed PL/SQL procedire successful completes. Package crested Noerrors Package body created PL/SQL procedure successtly completed No errors, Package cested Noerors Package body created No-erors, Executing Oracle POST Upgrade Finup Script [Auto-Generated by. Oracle Preupgrade Script Version: 190000 Build 1 Generated on: 2020-06-20 20:45:05, For Source Database: PRODDB Source Database Version: 122010 For Upgrade to Version: 190000 Proup Preupgrade Acton tesve [Number Preuporade Check Name Remedied Further DBA Aetion 6. old. time.zones.eWst NO Manual fxup recommended. 7. postcictionary YES None. & postned bjects NO Informational only Further action optional ‘he up scripts have been run and resolved what they can, However, ‘there ae stlssuscriginallyidantied by the preuparade tat have not been remedied and ae sil present inthe database Depending on the severity of the spect isue, andthe nature of the issu self, that could mean that your database upgrade isnot fully complet. To resolve the outstanding sues, stat by reviewing the pastuparade. haps sq and searching forthe name of the fled CHECK NAME of Preuparade Action Number listed above Tare you wil find the orginal coresponeing diagnostic message from the preupgrade whieh expins in mee deta what st needs tobe done PL/SQL procedure successtuly completed Seston akered sau 21. Upgrade Timezone For releases (Tae 190), the timezone ungrade scripts ae included in the target ORACLE HOME undarrdbm/admin directory “The following scripts get delivered with Oracle Database 18c onward SORACLE HOME/rdoms/adminfuthe counstats sq Script to gles how much TIMESTAMP WT TIME ZONE dota thee isin a database using stats inf, No restart required, SORACLE HOME):doms/adminfute.counstrsl Script to approximate how mich TIMESTAMP WITH TIME ZONE data ther isin database using 3 COUNTC} foreach table that has TSTZ column. Ths scripts useful when using DBMS.DST package or the script of ulz_upg.checks_ and utl_vpg_ apply sa) septs ORACLE HOMIE/doms/sdminfute upg checks ‘Time zone upgrade check script SORACLE HOMEYrdoma/adminfutpg_apply 9 Time zone apply script Warming: This sept wl restart the database and adjust timezone data [oracle@ract ~}8 ca /u0'/app/orateproduct19.00/dbhome_/dbms/adminy [ovscleact admin Isr ult counttats salute countstar sql ula upg-eheck sql wy_upg. apply sa rer orale eineall €217 Feb 25 2017 ut countsttsal turret 1 etude einstall 7428 Feb 25. 2077 ult_countstar sal rw-r-- 1 ere einstal 3684 Sep 3 2017 uttz_upg. checks! tut 1 oracle oinstall 21525 Sep 9 2017 ut upeapelysal [oracle@ract semis SQL> SELECT version FROM vStimezone- fe VERSION 26 < sas SQL> €/u01/app/orace/produt/19..0/dbhome_1/rebms/admin/utz upg, check sal Session akered, INFO: Starting wth ROAMS DST updste preparation, INFO NO actual ROBMS DST update will be done by this script. INFO-1I an ERROR occurs the scrip wll EXT saps, INFO: Doing checks for known issues. INFO: Database versions 190.00 INFO: Databate RDBMS DST version is DST26 INFO: No known issues detected INFO: Now detecting new RDBMS DST version, ‘Aprepare window has been succesfully stared INFO: Newest RDBMS DST version detected is OSTA2 INFO: Next step is checking all TSTZ data INFO-It might take whl before any further output is seen [prepare window hae been succesfully ened INFO" A newer RDBMS DST version than the ane curently used i found, INFO: Note that NO DST update was yet dane INFO Now run ult. vpg_spalysqlto do the actual RDBMS DST update INFO: Note that the utha_vpg_apaly sal cris wll INFO: restart the database? tes WITHOUT any confirmation or prom, Session akere, sas SOL> €/u01/appforace/procuct/18.0/dbhome_/rcbms/admin/ltzupg_apply sal Session ahered, INFO:If an ERROR occurs the script wil EXT SQL*Pls INFO: The eatabaze ROBMS DST version wil be updated to OSTA2 WARNING: This script il restart the database 2 Umes WARNING: WITHOUT asking ANY confirmation. WARNING. Hit conteol-e NOW i this i nt intended, INFO: Restarting the database in UPGRADE made to str the DST upgrade. Database closed Database amounted. (ORACLE instance shut down ORACLE instance started, Total System Global Are 1560277408 bytes Fixed Size 8896528 bytes Vansble Size 1191182336 bytes Database Butfers 352821536 tes Redo Buffers 7876608 tes Database mounted. Database opened. INFO: Starting the ROBMS OST upgrade INFO- Upgracing al SYS owned TSTZ data INFO might take me before any further outputs seen ‘An ungrade window has been successful arte, INFO: Restarting the database in NORMAL made to upgrade nom-SVS TSTZ data, Database cored Database diemounte. (ORACLE instance shut down, (ORACLE instance arta, “Total System Global Ares 1560277408 bytes Fixed Se 8396928 bytes Varable Sie 1191182336 bytes Database Buffers 352321536 bytes Redo Butfers 7876608 bytes Database mounted. Database opened INFO: Upgraging all non-SYSTSTZ daa, INFO. might ake time before any farther outputs seen INFO:Do NOT start any application yet that uses TSTZ data INFO: Next is ist of al upgraded tables Table ist: "GSMADNIN_INTERNAL”“AQS.CHANGE_LOG_QUEUE.TABLE.S* Number of failures 0 Table is: “GSMADNA Number of fates 0 Table ist: "MOSYS""SDO_OIAG MESSAGES. TABLE [Number of fates: 0 Table ist: “DVSYS" SIMULATION. LOGS" Number of stres:0 Table ist: DVSYS'“AUOIT_TRALS* Number of sites: 0 INFO: Total fares during update of TSTZ data: Aan upgrade window has been successflly ence INFO: Your new Servar RDBMS DST version i DSTW22 INFO: The RDBMS OST update is sucessuly finshed INFO: Make sure to ext this SQL"Plus session, INFO: De not use it for timezone related selects INTERNAL‘"AQS.CHANGE_LOG QUEUE TABLE, Session aera, sas SQL> SELECT version FROM vEtimezone-f VERSION Re 1 row slated sas shovautevhotavhotevtottotaeiornersnnersenersenersenesotsretioteanotienetiennerasnstasnetadnetastovacnethetees 22. Run ust 59 ‘Note uIlNNNSslis replaced by ulus. in 19 vetsion Note: n 19 Ever version utlyNNNs as replaced by lst so ‘9 Run utlst sa as many times as you want, at anytime after the upgrade i completed ‘4 lusts sal reads the vew cll dbo registry. log and elsplys the upgrade resus fo the database components SQL> «/u01/appforsce/product/1900/dbhome.Hrdbes/adminflluss sql TEXT Oracle Database Release 19Post-Upgrade Status Teal 01-28-2020 018133 Dtabase Name: PRODDB Component Current Full Elapsed Time Name Statue Version HHMMSS Oracle Server VAUD 124000 ops801 JServer JAVA Vitual Machine VAUID 19.4000 000229 Oracle xOK aud 194000 0001-12 Oracle Database java Packages VALID. 194000 onc0-3 LAP Analytic Workspace va 194000 000019 Oracle Label Securty VaLiD 194000 0000-11 Oracle Database Vault ‘yall 19.4000 000032 Oracle Text VAUD 19.4000 000043, Oracle Workspace Manager vauo 194000 000037 Oracle Real Application Cisters OPTION OFF 194000 00-0001 Oracle XML Database VALID 794000 an0149 Oracle Muted vaUD 194000 oo0nss pata Vaub 194000 09719 Oracle OLAP Apt VAUD 194000 a0004 Datapatch 00834 Final Actions co088 Post Upgrade oo00:12 Post Compile anos, Total Upgrade Time: 004907 Databace time zone version ie 32, meats curent eleace needs sau» shovaonausotavsotaetotvonnerennersenersenersenertonertotserevioneenetnanetteneerennetasnenasnenastovactettotens 23. Run catupostsal - In 2c pe1/docsorcle com/en/dstabsee/oracl/oracle-datbae/12 frac AD Bd. 8015 FSC 20508 You must run this scrip ether through DBUA or manually if you perform a manual upgrade stabace-uparade- tlie hmI4GUID-408F22C3 _DBUA automaticaly runs ctuppstsal. You only must run this seit separately for manual upgrades. not un this in UPGRADE mode. Run eatuppst sq ocated in the ORACLE HOME/rdbms/admin directory, to perform remaining Uungrade actions that do nat requie the database to bein UPGRADE mode. fan Oracle Bundle patch a patch set update PSU or 1P) installed in the Oracle home, then this Script sutomatclly apples that patch set update tothe dtabase Caution you perform a manus upgrade, snd you donot run eatuppstsal then your database suffers performance degradation " ‘* actualy itll unas part of upgrade. We have reviewed eatupgrdlog and below isthe ouput. found catuppst sq an and dont se errs - Rem eatuppst sa Rem Rem Copyright () 2006, 2018, Oracle ane/or its affites Rem Al ight reserved em Rem NAME Rem catuppstsq - CAlog UPgrade PoST-upgrade ations em Rem DESCRIPTION Rem This pest-upgrade script performs remaining upgrade actions that Rem do not requir thal the database be open in UPGRADE mode Rem Actomatially apply the lates PSU. Rem NOTES: Rem You must be connected AS SYSDBA to run thie srpt 221959 sal> -- DBUA TIMESTAMP: catuppstsal fished 22:18:59 SQL> SELECT dom registry sy:bme_stamp(CATUPAST) as timestamp from duat TIMESTAMP COMP_TIMESTAMP CATUPPST 2020-06-20 221958 DBUA.TIMESTAMP CATUPPST FINISHED 2020-06-20 22:19:59 DDBUACTIMESTAMP CATUPPST. NONE 2020-06-20 221958 ” we had no error, the “eatuppst sq script would have bean run as pat ofthe upgrade. we need to run it manually if ded have However can ran one mare me make sure no errors dating execution SQL> /u01/app/orace/produc/19.0.0/dbhome_1/rcbms/adminvestuppst sa TIMESTAMP CCOMP_TIMESTAMP DBRESTART 2020-06-20 022403, [DBUALTIMESTAMP OBRESTART FINISHED 2020-06-20 022423 DBUACTIMESTAMP OBRESTART NONE 2020-06-20 022423, siesta DDBUA.TIMESTAMP CATUPPST STARTED 2020-06-20 022423 TIMESTAMP. CCOMP_TIMESTAMP POSTUP_8GN 2020-06-20 02.2423, DDBUALTIMESTAMP POSTUPIBGN FINISHED 2020-05-20 022428, DBUACTIMESTAMP POSTUPLAGN NONE 2020-06-20 0224223 TMESTAM® CCOMP_TIMESTAMP CATREQ_BGN 2020-06-20 022423 DDBUALTIMESTAMP CATREQ_BGN FINISHED 2020-06-20 022423 DBUA-TIMESTAMP CATREG_8GN NONE 2020-06-20 022423 catrequtimg:b Sttévt = TRUE Cattequllng: bSelProps = FALSE catrequting:b_UpgradeMode = FALSE fattequting; BInUtIMg = FALSE TIMESTAMP CCOMP_TIMESTAMP CATREQEND 2020-06-20 022423 [DBUACTIMESTAMP CATREGQEND FINISHED 2020-06-20 02 24:28 DBUATIMESTAMP CATREGLEND NONE 2020-06-20 022423 catuppst Dropping brary DBMS_DDL.INTERNAL LB catuppst: Dropping vew . CURRENT EDITION, 08) MIG ‘xtuppst Dropping view “ACTUAL EDITION. OBI, MIG ‘atuppst: Dropping view DBA, PART KEY, COLUMNS. V§. MIS ‘atuppst Dropping vew DBA. SUBPART, XEY_COLUNINS.VS.MIS catuppst Dropping table OB/SMIG ‘atuppst Dropping table USERSMIG catuppst Dropping table COLSMIS ‘atuppst: Dropping table CLUSMIG catuppst Dropping table CONSMIG catuppst Dropping table BOOTSTRAPSMIG ‘atuppst Dropping table TABSMIS catuppst Dropping table TSSMIC ‘atuppst Dropping table INDSNAG catuppst Dropping table ICOLSMIG ‘atuppst Dropping table LOBSHIG catuppst Dropping table COLTYPESMIS ‘atuppst Dropping table SUBCOLIVPESMIG catuppst Dropping table NTABSMAIG catupps: Dropping table REFCONSMIG ‘atuppst Dropping table OPQTYPESMIG catuppst Dropping table ICOLDEPSMIG ‘atuppst Dropping table VEWTRCOLSMIG ‘atuppst Dropping table ATTRCOLSMIS ‘atuppst Dropping table TYPE_MISCSMIG catuppst: Dropping table LIBRARYSMIS catuppst Dropping table ASSEMBLYEMIG ‘atuppst: Dropping table TSQSMIS catupps: Dropping table FETSMIG “TIMESTAMP CCOMP_TIMESTAMP POSTUP_END _2020.06.200224:24 DBUALTIMESTAMP POSTUPEND FINISHED 2020-06-20 02:24:24 DBUACTIMESTAMP POSTUPLEND NONE 2020-06-20 022628 “TIMESTAMP CCOMP_TIMESTAMP CATUPPST 2020-06-20 022426 DDBUA-TIMESTAMP CATUPPST FINISHED 2020-06-20 022424 DDBUACTIMESTAMP CATUPPST NONE 2020-06-20 02.2424, sa 24. Re-Run postupgrade fhups.sal Dtasaotasaonsvsotsssansonatsenasvesnsvannevanovastauseuavseuscsausessusessenessavestouesnoutszastouastassotes SQL> @/home/oracle/PRODDS/preupgrade/postupgrade, ups} Noerrors, Noerrors No-errors Executing Oracle POST-Uparade Finup Seri Auto-Generated by. Oracle reupgrade Script Version: 180000 Built 1 Generated on: 2020-06-20 20:45:05, For Source Database: PRODDS Source Database Version: 122010 For Upgrade to Version: 190000 Proup Preupgrade ation teeve [Number Preupgrade Chack Name Remedied Further DRA Action © old.time tones_eust YES None .postcictionay YES None. 8 postined, objects NO Informational only Further action optional “The fiup septs have been rn and resolved hat they can. However, there ae sil issues orginally dented by the preuporade that have not been remedied and se stil present inthe database Depending on the severity of the spec isue, andthe nature of the issue self, that could mean tat your database upgrade isnot fully complete. To resoke the outstanding sues start by reviewing the postupgrade, haps sq and searching forthe name of the fled CHECK NAME of Preuparade Action Number listed above “hare you wil find the orginal conesponeing diagnostic mezeage from the preupgrade which explains in more detal what stl needs rove done, sal> ‘shasaonavacnausossssesuenassennssesnevennevantevecteuseuacseysesausensusessavessavenseueeyoutedantedaenedsonens 25. Reveriy INVALID OBJECTS stevseteesorserorsenssrerserseserseseraesersenersereerenreneiresnanesnanmerennsresnsrasnersenerseretsenetsenees SQL> select count from dba.cbjects where status= INVALID coUNTE 0 sau» 25. Drop Restore paint SQL> col name for 220, ‘ol GUARANTEE FLASHBACK DATABASE fr 310 col TIME for 960 setlines 180 Select NAME GUARANTEE FLASHBACK DATABASE.TIME om VSresore_poin Name GUARANTEE TIME PRE_UPGRADE YES 28-JAN-20:09.05 50000000000 P¥4 sa SQL> ltr /u0T/apevoraclefastecovery.srea/PRODDB/Mshback total 1433680 oracle install 209728392 Jan 28 2:39 om NBOatgSq_ A> “11 oracle oneal 209723382 Jan 20 21:52 of mv ns0ctkos 1 oracle oistall 209728392 Jan 28 2:56 07m h30gdpem fb 1 oracle ointall 209723392 Jan 28 22:12 of-miLhs087 fb “oracle ointall 209723392 Jan 28 22:15 o7_mh30hdte £2 “1 oracle sist 209723392 Jn 28 22:15 01_mEABO;ROn Mo 1 oraceointall 209723392 Jan 29 0235 o1_mh30jcet, flo sal» ‘SQL> drop restore point PRE,LPGRADE; Restore point dropped SOL> select NAME GUARANTEE FLASHBACK DATABASE.TIME rom VSresore points no rows selected sau» SQL> lst /u0T/app/oractefast covery, rea/PRODDB/lashback totalo < sa» stavectavsotsvratsenaeyenasrenneraenerasnersenersoenercenenetsosnanessanesronesravesnaveetasrevastaveetateataet 27. Set COMPATIBALE parameter value to 130.0 stovscnovsorsesarsennesssneresaereessrassersenorsosadrosscnetsessanesnenesrenesrasesraveeraveezastavactateetaes Warning f te value of COMPATIBLE parameter is changed to 190.0 then if for same reasons database needs to be downgraded to 12.2011 the DBA would not have any option other than exporVimport ta downgrade the database. But this parameters eft unchanged for sometime to see how the database performs aftr upgrade then iis vey esy an fst to downgrade the database i ‘or some reason its required to be downgraded It you change COMPATIBLE you can relly drop your restore points as they are useless. You cant use Flashback Database to restore point back across a compatibility change of your database SQL> show parameter COMPATIBLE NAME TPE VALUE compatible sting 1220 onc, compatible boolean FALSE sal> SQL> ALTER SYSTEM SET COMPATIBLE ="19.00" SCOPE=SPFILE System altered SQL> shut immeste; Database closed Database dismounted. (ORACLE instance shutdown sal» SQL> startup: (ORACLE instance str Total System Global Ares 1860277408 bytes Fixed Size 8996528 tes Vane Sze 1191182336 bytes Database Buffers 352321536 bytes Redo auffere 776608 bytes Database mounte. Database opened. sal> SOL> show parameter COMPATIBLE NAME TYPE VALUE compaticle sting 1900 < rancd, compatible Boolean FALSE sal 28. Verity DBA REGISTRY ‘stosackavsotausansvsassonassenassennevannovastovssteuscuavsatscsausesuusessesessasessoueszostouastotactessetes SQL> col COMP ID for 310 ‘col COMP.NAME for 90 col VERSION for 315 set lines 180 set pages 299 select COMP_1D,COMP,NAMEVERSION STATUS from dba regis: COMP.ID COMP_NAME VERSION STATUS CATALOG Oracle Database Catalog Views 180000 VALID CCATPROC Oracle Database Packages and Types 190000 VAUD JAVAUMI Server JAVA Vial Machine 190000 VAUD XML Once XOK 190000 VALID CCATIAVA Oracle Database Jova Packages 190000 VALID APS OLAP Analytic Workspace 190000 VAUD RAC Grace Real Application Clusters 19.0000 OPTION OFF XD8_—_ Oracle XML Ostabaee 190000 VAUD (WM Oracle Workspace Manager 190000 vAuD CONTEXT. Oracle Tet 10000 vauD ORDIM Oracle Muhimedia 390000 VAUD 500 Spatal 130000 vauD OQ Oracle QLAPAPL 390000 VAUD OLS Oradle Label Security 10000 vaup DV Oracle Database Vault 190000 VALID 15 rows selected. sal» 29, Add TNS Eni in 19 TNS home ‘skasackassonasnatsusansonausenassennevennovastovsctausetavseuscsausessusessesessavessaseszaueouastozacteusetees [oracle@ract admin at tstenerora # listener ora Network Configuration File: /uO1/app/orace/preduct/190.0/dbhome_1network/adminlstene ora 1# Generated by Oracle configuration tals LUSTENER_pRODDB DESCRIPTION LIST = {OESCRPTION (ADDRESS = PROTOCOL = TCP)HOST = RACLORACLECOMMPORT = 1524) ) SID_UIST LISTENER PRODDB ‘sID.LST {S1D_DESC = (GLOBAL_DBNAME = P20DD3.oraclacom) (ORACLE_HOME = L01/spp/orade/produc/1900/abhome. 1) (SID_NAME = PROD) ) ) [oraceract admins [oracle@ract admin cat tnsnames ora * tanames.ora Network Configuration lle: 40 /app/eracle/preduc/19..0/dbhome,network/admintnsnames ors # Generated by Orde configuration tals LUSTENER PROD = {ADDRESS = PROTOCOL = TCPYEHOS! 524) VAC ORACLE COMNPORT pRooD: (DESCRIPTION. {ADDRESS = PROTOCOL » TCPYHOST » RACLORACLE COMMPORT » 1524) (CONNECT. DATA = (SERVER 5 DEDICATED) (SERVICE NAME = PRODDB oracle com) ) , [ocacle@ract adminis [oracle@ract admins at sqlnetora # salnet ors Network Configuation Fl: /.01/app/oracle/oroduct/19.0.0/dbhome.1/netwerk/adminvsalne ord *# Generated by Oracle configuration tals [NAMES DIRECTORY. PATH= (TNSNAMES, ONAMES, HOSTNAME) [oracle@ract adminis [oracle admin el start UISTENER_PRODDS. LSNRCTL fo Linwe Version 19.0000 - Production on 20-JUN-2020 031628 Copyright () 1991, 2019, Oracle. Al rights reserved, Starting /u01/app/orace/product/18..0/abhome,/bin/nssn: please wat. -TNSLSNR for Linuc Version 19.40.00 - Production System parameter les /u01/app/oracla/produc/19.00/dbhome.network/adminvlstenerora Log messages written te /u0/apo/orace/dag/tslsr/rac\/istener_prodd/slerviogxml Listening on: (DESCRIPTION=(ADDRESS= (PROTOCOL te) HOST -HACT ORACLE COMMPORT-=1524)) CConnactng to (DESCRIPTION (ADDRESS=(PROTOCOL STATUS of the LISTENER Alas LUSTENER_pRODDB remyeost RAC ORACLE COMPORT=1524)) Version TNSLSNR fr Line Version 1900.00 - Production Stare Date 20-10-2020 081628. Uptime (0daye Ot. 0 min, 10 s0¢ Trace level off Security (ON: Local 05 Authentication SNMP FF Listener Parameter File. /001/app/oracle/proiet/1900/abhome./network/acminvlistene or Listener Log File _/u01/app/orace/dag/tnstsm/act/istener prodab/aler/logxml Lstening Endpoints Summary {DESCRIPTION »(ADDRESS» PROTOCOL step)]HOST=BACLORACLECOMIPORT= 1525) Services Summaty Service "PRODDR.ORACLAE com has 1 stances. Instance ‘PRODDB’, status UNKNOWN, hae? handles for thie sevice, The command completed succesfully [ocacle@ract admins [oracle@ract sdmin'S tnsping PRODDS TNS Ping Utlity for Linu Version 19.0000 - Production on 20-KUN-2020 031650 Copyright fe) 1997, 2019, Oracle, Al rights reserved, sed parameter les {140 /app/orcle/product/9.00/dohome_1/network/admin/sqhet ora Used TNSNAMES adapter to reso the alias ‘tempting to contact (DESCRIPTION = (ADORESS = (PROTOCOL = TCP)HOST = RACT ORACLE COMPORT = 1524), (CONNECT. DATA = (SERVER = DEDICATED) (SERVICE_NAME = PRODDSoraclecom) 0K mse) [oracle@raet admins ‘shasaenadnonannonssnensenat¥ensh¥enne¥enHevasHowAsHeWAOHOVAOHOOROH¥ORSUVOAEONHHONASEONESNONEOHONROAOROHAOEOHS 30, Password File ~orapuP RODE stoveeretonavronsesnevennerennereenereeneraenersesndrotarsetsnntnesnnnesrensranesnaveenasrerestevestateateet ‘REMOTE LOGIN, PASSWOROFILE- EXCLUSIVE ‘Password fie arapwPRODDS copied automatically during upgrade process No eton taken, [oracliract dbs pd {u01/app/orala/product/18.0.0/dehome_1/dbs [oracetirst dbs sr orspwPRODDB tue race install 3584 Jun 20 2226 orapwPRODDB « [oraclewract dbsis SOL» show parameter password TYPE VALUE remote login passwordile sting EXCLUSIVE sal sav _svensanensanensavessavessastesactavsctassotavsatscsatscsastasactassstensasentacsatactatectatentadsataasatiasate 31. Et ota sressetasnetacneteesenyensnrensesenrerenserserestered teria feteeneapetiapestaneeyataeiasneraets recto rseneeneneet [oracleiract 18 cat eteforatab | grep ~| PRODDB #PRODDB /u01/app/eracle/preduct/122 O/dbhome. IN PRODDB,/\01/app/orale/product/19.00/dbhome.1N [oracearact -18 32, Bick Up the Databate using rman level 0 [oracle@ract AFTER UPGRADE. cls SSSSSSSSSSS5SSS8555545S5S555555555455S55S85555SSSS5955SS5555555S55555555855555555515555. Steps to be done post Database instalation on all nodes nd Grid with ll setups. § SSSSSSSSSSSSSSSSSSSSS5SSSS555SS5SSS55SSS85555S5555555SS5555SS5S5S5SSSSS55SSS5SSS95555, Reference: hitoe/doc oracle con/er/dstabac/orace/oracl.database/12 2/racad converting single-instance-orale-dstabases- You can use rconfig, non-interactive command ine ity, to convert single-instance database to 3 RAC database, ‘The uly reas the values provided under the Conver TORAC xn fe ‘The SORACLE HOME/assstants/tconfig/sampleXOs directory has two templates, CConvertToRAG.AdminMsnaged sm anc ConvertToRAC_PolicyManaged.e “which you can use to convert single-instance database to RAC admin or poliy-managed datauate respectively Prerequisites for using rcontig Before you use reonfig, consider the folowing prerequites: Use Oracle Database version 10g R2 o ater. * Configure Clusterware and have running on all the nodes “Install Oracle RAC ROBMS onal the nodes. Make sure that shared storage either Oracle Custer File System or Automatic Storage Management /ASM is avaiable and accesible fram all the nodes, = Very thatthe standalone database and RAC ae the same database version You nee an active ASM instance across the nodes andthe database running on one ofthe local nodes. Steps for conversion to RAC STEP 1 SET THE PARAMETERS, You need to set the flowing parameters in ConverTORAC_AdminManaged.xmt Convert very wes “First keep the value to ONLY for chek source 08, ‘ORACLE. HOME PATH Target 08 ‘ORACLE_HOME PATH Source D8 name, SYS Password SID, PASSWORD RAC Node List Nodet Node? RAC Node Pref so Shared storage type ASM Tauget DB ares Dara “Target D8 Recovery FRA Please nate that The conver very option in ConvertToRACxm ha three options INLY: config performs only the prerequisite checks andl takes no other action. stovhenveboteuhottenntvonntranserasneraenorseneThennehetyeneeheteehe rene Hers eet STEP 2: PERFORM THE PREREQUISITE CHECKS Run the flowing command to run the convert veriy="OMLY" option to fi any ertors before executing nal un S.cd SORACLE HOME/assstants/rconig/sampl&XMLs S SORACLE HOME/bintcontig ConvertToRAC race stavevtovsetausotsenentenatresssresserassoravsorseracsetavsatacnataceataeeenessey STEP 3 EXECUTE RCONFIG FOR RAC CONVERSION shovavnoubatavaonsvasunonuayexna¥en4oWs$eweHostoHoutedsetesotousotesnonsenDsyod When you run the following commands to execute rconfig to convert the database, make sure you update the parameter to conver veriy="YES". cont performs the conversion and he verification. Sd SORACLE HOME/assstant/rconfig/samplexXMLs S SORACLE HOME/bintconfig ConvertToRAC race Run the flowing command te monitor alert the config log en the standalone database and the new RAC database Stil for/spp/oradefelgtoollogsncontg/ong" log sample [oraclearacnodet samplekXMLs|$rcofig Conver oRAC.racalbxml Converting Database "PRODDBY to Chster Database. Target Oracle Home: /u0/app/oracle/prodct/1120/dbhome.}. Database Role: PRIMARY, Setting Data Files and Conte Files Adaing Database Instances Adding Redo Logs Enabling theeads forall Database Instances Setting TEMP tablespace [Adding UNDO tablespaces Adding Wace files Sting Fast Recovery Area Updating Oratab Creating Password f(s) Configuring Listeners Configuring elated CRS resources Starting Clister Database ‘Pam version ="1.0"7> Rong version="1.1" > -eConvertToRAC> ‘ - Result code" » Operation Succeeded /a0 /app/ersle/product/11.20/dshome 1 Database typ elnsanceList> “stance sl finstance> “instance Sl “finstance> - STEP 4; VERIFY THE CONVERSION “ADMIN. MANAGED" > racnodet” > Run the flowing command to vary the lag, chack the RAC database status, and check the datafile satus Note: the standalone database was non-ASM, iti now ASM, Sswvel satus database -dracdb Check by login to saps SOLPLUS» select from gySinstance: SQLPLUS> Selec le-name rom doa dat les stavoctavsorsvsonsenatianasravseressorastoraczavactaesensenstaceenesnenesaeyaeey STEP 5: MODIFY TNSENTRY sressereesereenatsonnerorseranseraeneraeneraenrrsenaenernenetyenneneeaeneeTeeeTet Maaify trent onthe local node with sean-name and copy ito all other nodes.

You might also like