You are on page 1of 10

[oracle@target ~]$ export ORACLE_HOME=/u01/app/oracle/product/19c

[oracle@target ~]$ export PATH=$ORACLE_HOME/bin:$PATH


[oracle@target ~]$ /u01/app/oracle/product/19c/jdk/bin/java -jar
/u01/app/oracle/product/19c/rdbms/admin/autoupgrade.jar -config
/home/oracle/scripts/UPGR.cfg -clear_recovery_data -jobs 103
The recovery job(s) data was modified, The modified jobs will start from scratch
[oracle@target ~]$ /u01/app/oracle/product/19c/jdk/bin/java -jar
/u01/app/oracle/product/19c/rdbms/admin/autoupgrade.jar -config
/home/oracle/scripts/UPGR.cfg -mode analyze
Previous execution found loading latest data
Total jobs recovered: 1
There is an unfinished execution of a deploy mode. Run the AutoUpgrade in deploy
mode to resume from failure point or to execute a restore
java -jar autoupgrade.jar -config /home/oracle/scripts/UPGR.cfg -mode deploy
If a manual restoration was issued outside of the AutoUpgrade and you want to start
from scratch then execute AutoUpgrade as follow:
java -jar autoupgrade.jar -config /home/oracle/scripts/UPGR.cfg -
clear_recovery_data -jobs #
java -jar autoupgrade.jar -config /home/oracle/scripts/UPGR.cfg -mode deploy
It will clean any existing pending job reference and start over the next time.
If the existing jobs have already been finished or restored and you want to reuse
the existing
configuration file, clean up the recovery data.
[oracle@target ~]$ /u01/app/oracle/product/19c/jdk/bin/java -jar
/u01/app/oracle/product/19c/rdbms/admin/autoupgrade.jar -config
/home/oracle/scripts/UPGR.cfg -mode deploy
Previous execution found loading latest data
Total jobs recovered: 1
+--------------------------------+
| Starting AutoUpgrade execution |
+--------------------------------+
Type 'help' to list console commands
upg> lsj
+----+-------+---------+---------+-------+--------------+--------
+----------------------------+
|Job#|DB_NAME| STAGE|OPERATION| STATUS| START_TIME| UPDATED|
MESSAGE|
+----+-------+---------+---------+-------+--------------+--------
+----------------------------+
| 103| orcl|PRECHECKS|PREPARING|RUNNING|22/01/25 17:50|09:39:42|Loading database
information|
+----+-------+---------+---------+-------+--------------+--------
+----------------------------+
Total jobs 1

upg> status -job 103


Progress
-----------------------------------
Start time: 22/01/25 17:50
Elapsed (min): 949
End time: N/A
Last update: 2022-01-26T09:39:51.280
Stage: PRECHECKS
Operation: PREPARING
Status: RUNNING
Pending stages: 10
Stage summary:
SETUP <1 min
PREUPGRADE <1 min
PRECHECKS <1 min (IN PROGRESS)

Job Logs Locations


-----------------------------------
Logs Base: /home/oracle/logs/orcl
Job logs: /home/oracle/logs/orcl/103
Stage logs: /home/oracle/logs/orcl/103/prechecks
TimeZone: /home/oracle/logs/orcl/temp

Additional information
-----------------------------------
Details:
+--------+-------------------------+--------+
|DATABASE| CHECK| STATUS|
+--------+-------------------------+--------+
| orcl|PLUGIN_COMP_COMPATIBILITY|FINISHED|
| orcl| AMD_EXISTS|FINISHED|
| orcl| AWR_EXPIRED_SNAPSHOTS|FINISHED|
| orcl| AUDTAB_ENC_TS|FINISHED|
| orcl| COMPATIBLE_NOT_SET|FINISHED|
| orcl| COMPATIBLE_PARAMETER|FINISHED|
| orcl| CASE_INSENSITIVE_AUTH|FINISHED|
| orcl| CYCLE_NUMBER|FINISHED|
| orcl| CREATE_WINDOWS_SERVICE|FINISHED|
| orcl| DV_ENABLED|FINISHED|
| orcl| CONC_RES_MGR|FINISHED|
| orcl|FLASH_RECOVERY_AREA_SETUP|FINISHED|
| orcl| DATA_MINING_OBJECT|FINISHED|
| orcl| DICTIONARY_STATS|FINISHED|
| orcl| DEPEND_USR_TABLES|FINISHED|
| orcl| FILES_NEED_RECOVERY|FINISHED|
| orcl| EXCLUSIVE_MODE_AUTH|FINISHED|
| orcl| HIDDEN_PARAMS|FINISHED|
| orcl| INVALID_OBJECTS_EXIST|FINISHED|
| orcl| INVALID_SYS_TABLEDATA|FINISHED|
| orcl| INVALID_USR_TABLEDATA|FINISHED|
| orcl| JVM_MITIGATION_PATCH|FINISHED|
| orcl| ORACLE_RESERVED_USERS|FINISHED|
| orcl| TRGOWNER_NO_ADMNDBTRG|FINISHED|
| orcl| JAVAVM_STATUS|FINISHED|
| orcl| PENDING_DST_SESSION|FINISHED|
| orcl| MV_REFRESH|FINISHED|
| orcl| POST_DICTIONARY|FINISHED|
| orcl| POST_FIXED_OBJECTS|FINISHED|
| orcl| RAISE_COMPATIBLE|FINISHED|
| orcl| COMPATIBLE_PFILES|FINISHED|
| orcl| POST_JVM_MITIGAT_PATCH|FINISHED|
| orcl| PURGE_RECYCLEBIN|FINISHED|
| orcl| PRE_FIXED_OBJECTS|FINISHED|
| orcl| SYNC_STANDBY_DB| STARTED|
| orcl| RLP_PARAM|FINISHED|
| orcl| SYS_DEFAULT_TABLESPACE| STARTED|
+--------+-------------------------+--------+

Error Details:
None
upg> status -job 103
Progress
-----------------------------------
Start time: 22/01/25 17:50
Elapsed (min): 950
End time: N/A
Last update: 2022-01-26T09:40:03.315
Stage: DRAIN
Operation: EXECUTING
Status: RUNNING
Pending stages: 8
Stage summary:
SETUP <1 min
PREUPGRADE <1 min
PRECHECKS <1 min
PREFIXUPS <1 min
DRAIN <1 min (IN PROGRESS)

Job Logs Locations


-----------------------------------
Logs Base: /home/oracle/logs/orcl
Job logs: /home/oracle/logs/orcl/103
Stage logs: /home/oracle/logs/orcl/103/drain
TimeZone: /home/oracle/logs/orcl/temp

Additional information
-----------------------------------
Details:
orcl

Error Details:
None

upg>
upg> status -job 103
Progress
-----------------------------------
Start time: 22/01/25 17:50
Elapsed (min): 952
End time: N/A
Last update: 2022-01-26T09:40:48.231
Stage: DBUPGRADE
Operation: EXECUTING
Status: RUNNING
Pending stages: 7
Stage summary:
SETUP <1 min
PREUPGRADE <1 min
PRECHECKS <1 min
PREFIXUPS <1 min
DRAIN <1 min
DBUPGRADE 2 min (IN PROGRESS)

Job Logs Locations


-----------------------------------
Logs Base: /home/oracle/logs/orcl
Job logs: /home/oracle/logs/orcl/103
Stage logs: /home/oracle/logs/orcl/103/dbupgrade
TimeZone: /home/oracle/logs/orcl/temp
Additional information
-----------------------------------
Details:
[Upgrading] is [0%] completed for [orcl]
+---------+------------+
|CONTAINER| PERCENTAGE|
+---------+------------+
| orcl|UPGRADE [0%]|
+---------+------------+

Error Details:
None

upg>
upg> tasks
+---+-------------------+-------------+
| ID| NAME| Job#|
+---+-------------------+-------------+
| 1| main| WAITING|
| 13| event_loop|TIMED_WAITING|
| 14| console| RUNNABLE|
| 15| queue_reader| WAITING|
| 16| cmd-0| WAITING|
| 17| job_manager-0| WAITING|
| 18| bqueue-103| WAITING|
|309| monitor_orcl|TIMED_WAITING|
|311| catctl_orcl| WAITING|
|312| abort_monitor_orcl|TIMED_WAITING|
|313| async_read| RUNNABLE|
|314| exec_loop| WAITING|
+---+-------------------+-------------+
upg> status
---------------- Config -------------------
User configuration file [/home/oracle/scripts/UPGR.cfg]
General logs location [/home/oracle/logs/cfgtoollogs/upgrade/auto]
Mode [DEPLOY]
DB upg fatal errors ORA-00600,ORA-07445
DB Post upgrade abort time [60] minutes
DB upg abort time [1440] minutes
DB restore abort time [120] minutes
DB GRP abort time [3] minutes
------------------------ Jobs ------------------------
Total databases in configuration file [1]
Total Non-CDB being processed [1]
Total CDB being processed [0]
Jobs finished successfully [0]
Jobs finished/aborted [0]
Jobs in progress [1]
Jobs stage summary
Job ID: 103
DB name: orcl
SETUP <1 min
PREUPGRADE <1 min
PRECHECKS <1 min
PREFIXUPS <1 min
DRAIN <1 min
DBUPGRADE 3 min (IN PROGRESS)
------------ Resources ----------------
Threads in use [19]
JVM used memory [46] MB
CPU in use [13%]
Processes in use [17]

upg> status
---------------- Config -------------------
User configuration file [/home/oracle/scripts/UPGR.cfg]
General logs location [/home/oracle/logs/cfgtoollogs/upgrade/auto]
Mode [DEPLOY]
DB upg fatal errors ORA-00600,ORA-07445
DB Post upgrade abort time [60] minutes
DB upg abort time [1440] minutes
DB restore abort time [120] minutes
DB GRP abort time [3] minutes
------------------------ Jobs ------------------------
Total databases in configuration file [1]
Total Non-CDB being processed [1]
Total CDB being processed [0]
Jobs finished successfully [0]
Jobs finished/aborted [0]
Jobs in progress [1]
Jobs stage summary
Job ID: 103
DB name: orcl
SETUP <1 min
PREUPGRADE <1 min
PRECHECKS <1 min
PREFIXUPS <1 min
DRAIN <1 min
DBUPGRADE 4 min (IN PROGRESS)
------------ Resources ----------------
Threads in use [19]
JVM used memory [48] MB
CPU in use [13%]
Processes in use [17]

upg> lsj
+----+-------+---------+---------+-------+--------------+--------+------------+
|Job#|DB_NAME| STAGE|OPERATION| STATUS| START_TIME| UPDATED| MESSAGE|
+----+-------+---------+---------+-------+--------------+--------+------------+
| 103| orcl|DBUPGRADE|EXECUTING|RUNNING|22/01/25 17:50|09:43:50|10%Upgraded |
+----+-------+---------+---------+-------+--------------+--------+------------+
Total jobs 1

upg> status -job 103


Progress
-----------------------------------
Start time: 22/01/25 17:50
Elapsed (min): 956
End time: N/A
Last update: 2022-01-26T09:43:50.522
Stage: DBUPGRADE
Operation: EXECUTING
Status: RUNNING
Pending stages: 7
Stage summary:
SETUP <1 min
PREUPGRADE <1 min
PRECHECKS <1 min
PREFIXUPS <1 min
DRAIN <1 min
DBUPGRADE 6 min (IN PROGRESS)

Job Logs Locations


-----------------------------------
Logs Base: /home/oracle/logs/orcl
Job logs: /home/oracle/logs/orcl/103
Stage logs: /home/oracle/logs/orcl/103/dbupgrade
TimeZone: /home/oracle/logs/orcl/temp

Additional information
-----------------------------------
Details:
[Upgrading] is [10%] completed for [orcl]
+---------+-------------+
|CONTAINER| PERCENTAGE|
+---------+-------------+
| orcl|UPGRADE [10%]|
+---------+-------------+

Error Details:
None

upg> status
---------------- Config -------------------
User configuration file [/home/oracle/scripts/UPGR.cfg]
General logs location [/home/oracle/logs/cfgtoollogs/upgrade/auto]
Mode [DEPLOY]
DB upg fatal errors ORA-00600,ORA-07445
DB Post upgrade abort time [60] minutes
DB upg abort time [1440] minutes
DB restore abort time [120] minutes
DB GRP abort time [3] minutes
------------------------ Jobs ------------------------
Total databases in configuration file [1]
Total Non-CDB being processed [1]
Total CDB being processed [0]
Jobs finished successfully [0]
Jobs finished/aborted [0]
Jobs in progress [1]
Jobs stage summary
Job ID: 103
DB name: orcl
SETUP <1 min
PREUPGRADE <1 min
PRECHECKS <1 min
PREFIXUPS <1 min
DRAIN <1 min
DBUPGRADE 6 min (IN PROGRESS)
------------ Resources ----------------
Threads in use [19]
JVM used memory [51] MB
CPU in use [13%]
Processes in use [17]

upg> lsj
+----+-------+---------+---------+-------+--------------+--------+------------+
|Job#|DB_NAME| STAGE|OPERATION| STATUS| START_TIME| UPDATED| MESSAGE|
+----+-------+---------+---------+-------+--------------+--------+------------+
| 103| orcl|DBUPGRADE|EXECUTING|RUNNING|22/01/25 17:50|09:46:52|21%Upgraded |
+----+-------+---------+---------+-------+--------------+--------+------------+
Total jobs 1

upg> status
---------------- Config -------------------
User configuration file [/home/oracle/scripts/UPGR.cfg]
General logs location [/home/oracle/logs/cfgtoollogs/upgrade/auto]
Mode [DEPLOY]
DB upg fatal errors ORA-00600,ORA-07445
DB Post upgrade abort time [60] minutes
DB upg abort time [1440] minutes
DB restore abort time [120] minutes
DB GRP abort time [3] minutes
------------------------ Jobs ------------------------
Total databases in configuration file [1]
Total Non-CDB being processed [1]
Total CDB being processed [0]
Jobs finished successfully [0]
Jobs finished/aborted [0]
Jobs in progress [1]
Jobs stage summary
Job ID: 103
DB name: orcl
SETUP <1 min
PREUPGRADE <1 min
PRECHECKS <1 min
PREFIXUPS <1 min
DRAIN <1 min
DBUPGRADE 8 min (IN PROGRESS)
------------ Resources ----------------
Threads in use [19]
JVM used memory [39] MB
CPU in use [13%]
Processes in use [17]

upg> lsj
+----+-------+---------+---------+-------+--------------+--------+------------+
|Job#|DB_NAME| STAGE|OPERATION| STATUS| START_TIME| UPDATED| MESSAGE|
+----+-------+---------+---------+-------+--------------+--------+------------+
| 103| orcl|DBUPGRADE|EXECUTING|RUNNING|22/01/25 17:50|09:46:52|21%Upgraded |
+----+-------+---------+---------+-------+--------------+--------+------------+
Total jobs 1

upg> /
+----+-------+---------+---------+-------+--------------+--------+------------+
|Job#|DB_NAME| STAGE|OPERATION| STATUS| START_TIME| UPDATED| MESSAGE|
+----+-------+---------+---------+-------+--------------+--------+------------+
| 103| orcl|DBUPGRADE|EXECUTING|RUNNING|22/01/25 17:50|09:46:52|21%Upgraded |
+----+-------+---------+---------+-------+--------------+--------+------------+
Total jobs 1

upg> /
+----+-------+---------+---------+-------+--------------+--------+------------+
|Job#|DB_NAME| STAGE|OPERATION| STATUS| START_TIME| UPDATED| MESSAGE|
+----+-------+---------+---------+-------+--------------+--------+------------+
| 103| orcl|DBUPGRADE|EXECUTING|RUNNING|22/01/25 17:50|09:49:55|23%Upgraded |
+----+-------+---------+---------+-------+--------------+--------+------------+
Total jobs 1

upg> status
---------------- Config -------------------
User configuration file [/home/oracle/scripts/UPGR.cfg]
General logs location [/home/oracle/logs/cfgtoollogs/upgrade/auto]
Mode [DEPLOY]
DB upg fatal errors ORA-00600,ORA-07445
DB Post upgrade abort time [60] minutes
DB upg abort time [1440] minutes
DB restore abort time [120] minutes
DB GRP abort time [3] minutes
------------------------ Jobs ------------------------
Total databases in configuration file [1]
Total Non-CDB being processed [1]
Total CDB being processed [0]
Jobs finished successfully [0]
Jobs finished/aborted [0]
Jobs in progress [1]
Jobs stage summary
Job ID: 103
DB name: orcl
SETUP <1 min
PREUPGRADE <1 min
PRECHECKS <1 min
PREFIXUPS <1 min
DRAIN <1 min
DBUPGRADE 13 min (IN PROGRESS)
------------ Resources ----------------
Threads in use [20]
JVM used memory [39] MB
CPU in use [13%]
Processes in use [18]

upg> status
---------------- Config -------------------
User configuration file [/home/oracle/scripts/UPGR.cfg]
General logs location [/home/oracle/logs/cfgtoollogs/upgrade/auto]
Mode [DEPLOY]
DB upg fatal errors ORA-00600,ORA-07445
DB Post upgrade abort time [60] minutes
DB upg abort time [1440] minutes
DB restore abort time [120] minutes
DB GRP abort time [3] minutes
------------------------ Jobs ------------------------
Total databases in configuration file [1]
Total Non-CDB being processed [1]
Total CDB being processed [0]
Jobs finished successfully [0]
Jobs finished/aborted [0]
Jobs in progress [1]
Jobs stage summary
Job ID: 103
DB name: orcl
SETUP <1 min
PREUPGRADE <1 min
PRECHECKS <1 min
PREFIXUPS <1 min
DRAIN <1 min
DBUPGRADE 17 min (IN PROGRESS)
------------ Resources ----------------
Threads in use [20]
JVM used memory [33] MB
CPU in use [13%]
Processes in use [17]

upg> tasks
+---+-------------------+-------------+
| ID| NAME| Job#|
+---+-------------------+-------------+
| 1| main| WAITING|
| 13| event_loop|TIMED_WAITING|
| 14| console| RUNNABLE|
| 15| queue_reader| WAITING|
| 16| cmd-0| WAITING|
| 17| job_manager-0| WAITING|
| 18| bqueue-103| WAITING|
|309| monitor_orcl|TIMED_WAITING|
|311| catctl_orcl| WAITING|
|312| abort_monitor_orcl|TIMED_WAITING|
|313| async_read| RUNNABLE|
|314| exec_loop| WAITING|
+---+-------------------+-------------+
upg> Job 103 completed
------------------- Final Summary --------------------
Number of databases [ 1 ]

Jobs finished [1]


Jobs failed [0]
Jobs pending [0]

Please check the summary report at:


/home/oracle/logs/cfgtoollogs/upgrade/auto/status/status.html
/home/oracle/logs/cfgtoollogs/upgrade/auto/status/status.log
[oracle@target ~]$ tail -100f
/home/oracle/logs/cfgtoollogs/upgrade/auto/status/status.log
==========================================
Autoupgrade Summary Report
==========================================
[Date] Wed Jan 26 10:15:42 PKT 2022
[Number of Jobs] 1
==========================================
[Job ID] 103
==========================================
[DB Name] orcl
[Version Before Upgrade] 12.1.0.2.0
[Version After Upgrade] 19.3.0.0.0
------------------------------------------
[Stage Name] PREUPGRADE
[Status] SUCCESS
[Start Time] 2022-01-26 09:39:42
[Duration] 0:00:00
[Log Directory] /home/oracle/logs/orcl/103/preupgrade
------------------------------------------
[Stage Name] PRECHECKS
[Status] SUCCESS
[Start Time] 2022-01-26 09:39:42
[Duration] 0:00:12
[Log Directory] /home/oracle/logs/orcl/103/prechecks
[Detail] /home/oracle/logs/orcl/103/prechecks/orcl_preupgrade.log
Precheck passed and no manual intervention needed
------------------------------------------
[Stage Name] PREFIXUPS
[Status] FAILURE
[Start Time] 2022-01-26 09:39:54
[Duration] 0:00:08
[Log Directory] /home/oracle/logs/orcl/103/prefixups
------------------------------------------
[Stage Name] DRAIN
[Status] SUCCESS
[Start Time] 2022-01-26 09:40:03
[Duration] 0:00:19
[Log Directory] /home/oracle/logs/orcl/103/drain
------------------------------------------
[Stage Name] DBUPGRADE
[Status] FAILURE
[Start Time] 2022-01-26 09:40:22
[Duration] 0:32:54
[Log Directory] /home/oracle/logs/orcl/103/dbupgrade
------------------------------------------
[Stage Name] POSTCHECKS
[Status] SUCCESS
[Start Time] 2022-01-26 10:13:16
[Duration] 0:00:54
[Log Directory] /home/oracle/logs/orcl/103/postchecks
[Detail] /home/oracle/logs/orcl/103/postchecks/orcl_postupgrade.log
------------------------------------------
[Stage Name] POSTFIXUPS
[Status] SUCCESS
[Start Time] 2022-01-26 10:14:11
[Duration] 0:00:47
[Log Directory] /home/oracle/logs/orcl/103/postfixups
------------------------------------------
[Stage Name] POSTUPGRADE
[Status] SUCCESS
[Start Time] 2022-01-26 10:14:58
[Duration] 0:00:43
[Log Directory] /home/oracle/logs/orcl/103/postupgrade
------------------------------------------
[Stage Name] SYSUPDATES
[Status] SUCCESS
[Start Time] 2022-01-26 10:15:42
[Duration] 0:00:00
[Log Directory] /home/oracle/logs/orcl/103/sysupdates
------------------------------------------
Upgrade Summary: /home/oracle/logs/orcl/103/dbupgrade/upg_summary.log

You might also like