SQL> @?/rdbms/admin/catuppst.sql
Session altered.
Session altered.
Session altered.
PL/SQL procedure successfully completed.
Session altered.
System altered.
PL/SQL procedure successfully completed.
Session altered.
TIMESTAMP
---------------------------------------------------------------------
COMP_TIMESTAMP DBRESTART 2022-02-05 15:38:21
DBUA_TIMESTAMP DBRESTART FINISHED 2022-02-05 15:38:21
DBUA_TIMESTAMP DBRESTART NONE 2022-02-05 15:38:21
TIMESTAMP
---------------------------------------------------------------------
DBUA_TIMESTAMP CATUPPST STARTED 2022-02-05 15:38:21
TIMESTAMP
---------------------------------------------------------------------
COMP_TIMESTAMP POSTUP_BGN 2022-02-05 15:38:21
DBUA_TIMESTAMP POSTUP_BGN FINISHED 2022-02-05 15:38:21
DBUA_TIMESTAMP POSTUP_BGN NONE 2022-02-05 15:38:21
TIMESTAMP
---------------------------------------------------------------------
COMP_TIMESTAMP CATREQ_BGN 2022-02-05 15:38:21
DBUA_TIMESTAMP CATREQ_BGN FINISHED 2022-02-05 15:38:21
DBUA_TIMESTAMP CATREQ_BGN NONE 2022-02-05 15:38:21
PL/SQL procedure successfully completed.
catrequtlmg: b_StatEvt = TRUE
catrequtlmg: b_SelProps = FALSE
catrequtlmg: b_UpgradeMode = FALSE
catrequtlmg: b_InUtlMig = FALSE
PL/SQL procedure successfully completed.
PL/SQL procedure successfully completed.
TIMESTAMP
--------------------------------------------------------------------------------
COMP_TIMESTAMP CATREQ_END 2022-02-05 15:38:21
DBUA_TIMESTAMP CATREQ_END FINISHED 2022-02-05 15:38:21
DBUA_TIMESTAMP CATREQ_END NONE 2022-02-05 15:38:21
catuppst: Dropping library DBMS_DDL_INTERNAL_LIB
PL/SQL procedure successfully completed.
catuppst: Dropping view _CURRENT_EDITION_OBJ_MIG
PL/SQL procedure successfully completed.
catuppst: Dropping view _ACTUAL_EDITION_OBJ_MIG
PL/SQL procedure successfully completed.
catuppst: Dropping view DBA_PART_KEY_COLUMNS_V$_MIG
PL/SQL procedure successfully completed.
catuppst: Dropping view DBA_SUBPART_KEY_COLUMNS_V$_MIG
PL/SQL procedure successfully completed.
catuppst: Dropping table OBJ$MIG
catuppst: Dropping table USER$MIG
catuppst: Dropping table COL$MIG
catuppst: Dropping table CLU$MIG
catuppst: Dropping table CON$MIG
catuppst: Dropping table BOOTSTRAP$MIG
catuppst: Dropping table TAB$MIG
catuppst: Dropping table TS$MIG
catuppst: Dropping table IND$MIG
catuppst: Dropping table ICOL$MIG
catuppst: Dropping table LOB$MIG
catuppst: Dropping table COLTYPE$MIG
catuppst: Dropping table SUBCOLTYPE$MIG
catuppst: Dropping table NTAB$MIG
catuppst: Dropping table REFCON$MIG
catuppst: Dropping table OPQTYPE$MIG
catuppst: Dropping table ICOLDEP$MIG
catuppst: Dropping table VIEWTRCOL$MIG
catuppst: Dropping table ATTRCOL$MIG
catuppst: Dropping table TYPE_MISC$MIG
catuppst: Dropping table LIBRARY$MIG
catuppst: Dropping table ASSEMBLY$MIG
catuppst: Dropping table TSQ$MIG
catuppst: Dropping table FET$MIG
PL/SQL procedure successfully completed.
PL/SQL procedure successfully completed.
PL/SQL procedure successfully completed.
TIMESTAMP
---------------------------------------------------------------------
COMP_TIMESTAMP POSTUP_END 2022-02-05 15:38:21
DBUA_TIMESTAMP POSTUP_END FINISHED 2022-02-05 15:38:21
DBUA_TIMESTAMP POSTUP_END NONE 2022-02-05 15:38:21
TIMESTAMP
---------------------------------------------------------------------
COMP_TIMESTAMP CATUPPST 2022-02-05 15:38:21
DBUA_TIMESTAMP CATUPPST FINISHED 2022-02-05 15:38:21
DBUA_TIMESTAMP CATUPPST NONE 2022-02-05 15:38:21
Session altered.
SQL>
SQL>
SQL> @utltz_countstats.sql
Session altered.
.
Amount of TSTZ data using num_rows stats info in DBA_TABLES.
.
For SYS tables first ...
Note: empty tables are not listed.
Stat date - Owner.TableName.ColumnName - num_rows
05/02/2022 - SYS.AQ$_ALERT_QT_S.CREATION_TIME - 4
05/02/2022 - SYS.AQ$_ALERT_QT_S.DELETION_TIME - 4
05/02/2022 - SYS.AQ$_ALERT_QT_S.MODIFICATION_TIME - 4
05/02/2022 - SYS.AQ$_AQ$_MEM_MC_S.CREATION_TIME - 3
05/02/2022 - SYS.AQ$_AQ$_MEM_MC_S.DELETION_TIME - 3
05/02/2022 - SYS.AQ$_AQ$_MEM_MC_S.MODIFICATION_TIME - 3
05/02/2022 - SYS.AQ$_AQ_PROP_TABLE_S.CREATION_TIME - 1
05/02/2022 - SYS.AQ$_AQ_PROP_TABLE_S.DELETION_TIME - 1
05/02/2022 - SYS.AQ$_AQ_PROP_TABLE_S.MODIFICATION_TIME - 1
05/02/2022 - SYS.AQ$_ORA$PREPLUGIN_BACKUP_QTB_S.CREATION_TIME - 1
05/02/2022 - SYS.AQ$_ORA$PREPLUGIN_BACKUP_QTB_S.DELETION_TIME - 1
05/02/2022 - SYS.AQ$_ORA$PREPLUGIN_BACKUP_QTB_S.MODIFICATION_TIME - 1
05/02/2022 - SYS.AQ$_PDB_MON_EVENT_QTABLE$_S.CREATION_TIME - 1
05/02/2022 - SYS.AQ$_PDB_MON_EVENT_QTABLE$_S.DELETION_TIME - 1
05/02/2022 - SYS.AQ$_PDB_MON_EVENT_QTABLE$_S.MODIFICATION_TIME - 1
05/02/2022 - SYS.AQ$_SCHEDULER$_EVENT_QTAB_S.CREATION_TIME - 3
05/02/2022 - SYS.AQ$_SCHEDULER$_EVENT_QTAB_S.DELETION_TIME - 3
05/02/2022 - SYS.AQ$_SCHEDULER$_EVENT_QTAB_S.MODIFICATION_TIME - 3
05/02/2022 - SYS.AQ$_SCHEDULER$_REMDB_JOBQTAB_S.CREATION_TIME - 1
05/02/2022 - SYS.AQ$_SCHEDULER$_REMDB_JOBQTAB_S.DELETION_TIME - 1
05/02/2022 - SYS.AQ$_SCHEDULER$_REMDB_JOBQTAB_S.MODIFICATION_TIME - 1
05/02/2022 - SYS.AQ$_SCHEDULER_FILEWATCHER_QT_S.CREATION_TIME - 1
05/02/2022 - SYS.AQ$_SCHEDULER_FILEWATCHER_QT_S.DELETION_TIME - 1
05/02/2022 - SYS.AQ$_SCHEDULER_FILEWATCHER_QT_S.MODIFICATION_TIME - 1
05/02/2022 - SYS.AQ$_SUBSCRIBER_TABLE.CREATION_TIME - 1
05/02/2022 - SYS.AQ$_SUBSCRIBER_TABLE.DELETION_TIME - 1
05/02/2022 - SYS.AQ$_SUBSCRIBER_TABLE.MODIFICATION_TIME - 1
05/02/2022 - SYS.AQ$_SYS$SERVICE_METRICS_TAB_S.CREATION_TIME - 4
05/02/2022 - SYS.AQ$_SYS$SERVICE_METRICS_TAB_S.DELETION_TIME - 4
05/02/2022 - SYS.AQ$_SYS$SERVICE_METRICS_TAB_S.MODIFICATION_TIME - 4
05/02/2022 - SYS.KET$_AUTOTASK_STATUS.ABA_START_TIME - 1
05/02/2022 - SYS.KET$_AUTOTASK_STATUS.ABA_STATE_TIME - 1
05/02/2022 - SYS.KET$_AUTOTASK_STATUS.MW_RECORD_TIME - 1
05/02/2022 - SYS.KET$_AUTOTASK_STATUS.MW_START_TIME - 1
05/02/2022 - SYS.KET$_AUTOTASK_STATUS.RECONCILE_TIME - 1
05/02/2022 - SYS.KET$_CLIENT_CONFIG.FIELD_2 - 7
05/02/2022 - SYS.KET$_CLIENT_CONFIG.LAST_CHANGE - 7
05/02/2022 - SYS.OPTSTAT_HIST_CONTROL$.SPARE6 - 45
05/02/2022 - SYS.OPTSTAT_HIST_CONTROL$.SVAL2 - 45
05/02/2022 - SYS.OPTSTAT_SNAPSHOT$.TIMESTAMP - 434
05/02/2022 - SYS.OPTSTAT_USER_PREFS$.CHGTIME - 72
05/02/2022 - SYS.RADM_FPTM$.TSWTZ_COL - 1
05/02/2022 - SYS.REG$.NTFN_GROUPING_START_TIME - 2
05/02/2022 - SYS.REG$.REG_TIME - 2
05/02/2022 - SYS.SCHEDULER$_EVENT_LOG.LOG_DATE - 43
05/02/2022 - SYS.SCHEDULER$_GLOBAL_ATTRIBUTE.ATTR_TSTAMP - 11
05/02/2022 - SYS.SCHEDULER$_JOB.END_DATE - 21
05/02/2022 - SYS.SCHEDULER$_JOB.LAST_ENABLED_TIME - 21
05/02/2022 - SYS.SCHEDULER$_JOB.LAST_END_DATE - 21
05/02/2022 - SYS.SCHEDULER$_JOB.LAST_START_DATE - 21
05/02/2022 - SYS.SCHEDULER$_JOB.NEXT_RUN_DATE - 21
05/02/2022 - SYS.SCHEDULER$_JOB.START_DATE - 21
05/02/2022 - SYS.SCHEDULER$_SCHEDULE.END_DATE - 4
05/02/2022 - SYS.SCHEDULER$_SCHEDULE.REFERENCE_DATE - 4
05/02/2022 - SYS.SCHEDULER$_WINDOW.ACTUAL_START_DATE - 9
05/02/2022 - SYS.SCHEDULER$_WINDOW.END_DATE - 9
05/02/2022 - SYS.SCHEDULER$_WINDOW.LAST_START_DATE - 9
05/02/2022 - SYS.SCHEDULER$_WINDOW.MANUAL_OPEN_TIME - 9
05/02/2022 - SYS.SCHEDULER$_WINDOW.NEXT_START_DATE - 9
05/02/2022 - SYS.SCHEDULER$_WINDOW.START_DATE - 9
05/02/2022 - SYS.TAB_STATS$.SPARE6 - 1025
05/02/2022 - SYS.WRI$_ALERT_HISTORY.CREATION_TIME - 16
05/02/2022 - SYS.WRI$_ALERT_HISTORY.TIME_SUGGESTED - 16
05/02/2022 - SYS.WRI$_OPTSTAT_AUX_HISTORY.SAVTIME - 18
05/02/2022 - SYS.WRI$_OPTSTAT_AUX_HISTORY.SPARE6 - 18
05/02/2022 - SYS.WRI$_OPTSTAT_HISTGRM_HISTORY.SAVTIME - 29613
05/02/2022 - SYS.WRI$_OPTSTAT_HISTGRM_HISTORY.SPARE6 - 29613
05/02/2022 - SYS.WRI$_OPTSTAT_HISTHEAD_HISTORY.SAVTIME - 49191
05/02/2022 - SYS.WRI$_OPTSTAT_HISTHEAD_HISTORY.SPARE6 - 49191
05/02/2022 - SYS.WRI$_OPTSTAT_IND_HISTORY.SAVTIME - 2684
05/02/2022 - SYS.WRI$_OPTSTAT_IND_HISTORY.SPARE6 - 2684
05/02/2022 - SYS.WRI$_OPTSTAT_OPR.END_TIME - 238
05/02/2022 - SYS.WRI$_OPTSTAT_OPR.SPARE6 - 238
05/02/2022 - SYS.WRI$_OPTSTAT_OPR.START_TIME - 238
05/02/2022 - SYS.WRI$_OPTSTAT_OPR_TASKS.END_TIME - 7972
05/02/2022 - SYS.WRI$_OPTSTAT_OPR_TASKS.SPARE6 - 7972
05/02/2022 - SYS.WRI$_OPTSTAT_OPR_TASKS.START_TIME - 7972
05/02/2022 - SYS.WRI$_OPTSTAT_TAB_HISTORY.SAVTIME - 3770
05/02/2022 - SYS.WRI$_OPTSTAT_TAB_HISTORY.SPARE6 - 3770
05/02/2022 - SYS.WRM$_DATABASE_INSTANCE.STARTUP_TIME_TZ - 6
05/02/2022 - SYS.WRM$_PDB_INSTANCE.OPEN_TIME_TZ - 1
05/02/2022 - SYS.WRM$_PDB_INSTANCE.STARTUP_TIME_TZ - 1
05/02/2022 - SYS.WRM$_PDB_IN_SNAP.OPEN_TIME_TZ - 1
05/02/2022 - SYS.WRM$_SNAPSHOT.BEGIN_INTERVAL_TIME_TZ - 2
05/02/2022 - SYS.WRM$_SNAPSHOT.END_INTERVAL_TIME_TZ - 2
05/02/2022 - SYS.XS$PRIN.END_DATE - 14
05/02/2022 - SYS.XS$PRIN.START_DATE - 14
Total numrows of SYS TSTZ columns is : 197202
There are in total 162 SYS TSTZ columns.
.
For non-SYS tables ...
Note: empty tables are not listed.
Stat date - Owner.Tablename.Columnname - num_rows
05/02/2022 - GSMADMIN_INTERNAL.AQ$_CHANGE_LOG_QUEUE_TABLE_S.CREATION_TIME - 1
05/02/2022 - GSMADMIN_INTERNAL.AQ$_CHANGE_LOG_QUEUE_TABLE_S.DELETION_TIME - 1
05/02/2022 - GSMADMIN_INTERNAL.AQ$_CHANGE_LOG_QUEUE_TABLE_S.MODIFICATION_TIME -
1
Total numrows of non-SYS TSTZ columns is : 3
There are in total 5 non-SYS TSTZ columns.
Total Minutes elapsed : 0
Session altered.
SQL>
SQL>
SQL> @utltz_countstar.sql
Session altered.
.
Estimating amount of TSTZ data using COUNT(*).
This might take some time ...
.
For SYS tables first ...
Note: empty tables are not listed.
Owner.TableName.ColumnName - COUNT(*) of that column
SYS.AQ$_ALERT_QT_S.CREATION_TIME - 4
SYS.AQ$_ALERT_QT_S.DELETION_TIME - 4
SYS.AQ$_ALERT_QT_S.MODIFICATION_TIME - 4
SYS.AQ$_AQ$_MEM_MC_S.CREATION_TIME - 3
SYS.AQ$_AQ$_MEM_MC_S.DELETION_TIME - 3
SYS.AQ$_AQ$_MEM_MC_S.MODIFICATION_TIME - 3
SYS.AQ$_AQ_PROP_TABLE_S.CREATION_TIME - 1
SYS.AQ$_AQ_PROP_TABLE_S.DELETION_TIME - 1
SYS.AQ$_AQ_PROP_TABLE_S.MODIFICATION_TIME - 1
SYS.AQ$_ORA$PREPLUGIN_BACKUP_QTB_S.CREATION_TIME - 1
SYS.AQ$_ORA$PREPLUGIN_BACKUP_QTB_S.DELETION_TIME - 1
SYS.AQ$_ORA$PREPLUGIN_BACKUP_QTB_S.MODIFICATION_TIME - 1
SYS.AQ$_PDB_MON_EVENT_QTABLE$_S.CREATION_TIME - 1
SYS.AQ$_PDB_MON_EVENT_QTABLE$_S.DELETION_TIME - 1
SYS.AQ$_PDB_MON_EVENT_QTABLE$_S.MODIFICATION_TIME - 1
SYS.AQ$_SCHEDULER$_EVENT_QTAB_S.CREATION_TIME - 3
SYS.AQ$_SCHEDULER$_EVENT_QTAB_S.DELETION_TIME - 3
SYS.AQ$_SCHEDULER$_EVENT_QTAB_S.MODIFICATION_TIME - 3
SYS.AQ$_SCHEDULER$_REMDB_JOBQTAB_S.CREATION_TIME - 1
SYS.AQ$_SCHEDULER$_REMDB_JOBQTAB_S.DELETION_TIME - 1
SYS.AQ$_SCHEDULER$_REMDB_JOBQTAB_S.MODIFICATION_TIME - 1
SYS.AQ$_SCHEDULER_FILEWATCHER_QT_S.CREATION_TIME - 1
SYS.AQ$_SCHEDULER_FILEWATCHER_QT_S.DELETION_TIME - 1
SYS.AQ$_SCHEDULER_FILEWATCHER_QT_S.MODIFICATION_TIME - 1
SYS.AQ$_SUBSCRIBER_TABLE.CREATION_TIME - 1
SYS.AQ$_SUBSCRIBER_TABLE.DELETION_TIME - 1
SYS.AQ$_SUBSCRIBER_TABLE.MODIFICATION_TIME - 1
SYS.AQ$_SYS$SERVICE_METRICS_TAB_S.CREATION_TIME - 4
SYS.AQ$_SYS$SERVICE_METRICS_TAB_S.DELETION_TIME - 4
SYS.AQ$_SYS$SERVICE_METRICS_TAB_S.MODIFICATION_TIME - 4
SYS.KET$_AUTOTASK_STATUS.ABA_START_TIME - 1
SYS.KET$_AUTOTASK_STATUS.ABA_STATE_TIME - 1
SYS.KET$_AUTOTASK_STATUS.MW_RECORD_TIME - 1
SYS.KET$_AUTOTASK_STATUS.MW_START_TIME - 1
SYS.KET$_AUTOTASK_STATUS.RECONCILE_TIME - 1
SYS.KET$_CLIENT_CONFIG.FIELD_2 - 7
SYS.KET$_CLIENT_CONFIG.LAST_CHANGE - 7
SYS.OPTSTAT_HIST_CONTROL$.SPARE6 - 45
SYS.OPTSTAT_HIST_CONTROL$.SVAL2 - 45
SYS.OPTSTAT_SNAPSHOT$.TIMESTAMP - 824
SYS.OPTSTAT_USER_PREFS$.CHGTIME - 72
SYS.RADM_FPTM$.TSWTZ_COL - 1
SYS.REG$.NTFN_GROUPING_START_TIME - 2
SYS.REG$.REG_TIME - 2
SYS.SCHEDULER$_EVENT_LOG.LOG_DATE - 43
SYS.SCHEDULER$_GLOBAL_ATTRIBUTE.ATTR_TSTAMP - 11
SYS.SCHEDULER$_JOB.END_DATE - 21
SYS.SCHEDULER$_JOB.LAST_ENABLED_TIME - 21
SYS.SCHEDULER$_JOB.LAST_END_DATE - 21
SYS.SCHEDULER$_JOB.LAST_START_DATE - 21
SYS.SCHEDULER$_JOB.NEXT_RUN_DATE - 21
SYS.SCHEDULER$_JOB.START_DATE - 21
SYS.SCHEDULER$_SCHEDULE.END_DATE - 4
SYS.SCHEDULER$_SCHEDULE.REFERENCE_DATE - 4
SYS.SCHEDULER$_WINDOW.ACTUAL_START_DATE - 9
SYS.SCHEDULER$_WINDOW.END_DATE - 9
SYS.SCHEDULER$_WINDOW.LAST_START_DATE - 9
SYS.SCHEDULER$_WINDOW.MANUAL_OPEN_TIME - 9
SYS.SCHEDULER$_WINDOW.NEXT_START_DATE - 9
SYS.SCHEDULER$_WINDOW.START_DATE - 9
SYS.TAB_STATS$.SPARE6 - 1025
SYS.WRI$_ALERT_HISTORY.CREATION_TIME - 16
SYS.WRI$_ALERT_HISTORY.TIME_SUGGESTED - 16
SYS.WRI$_OPTSTAT_AUX_HISTORY.SAVTIME - 18
SYS.WRI$_OPTSTAT_AUX_HISTORY.SPARE6 - 18
SYS.WRI$_OPTSTAT_HISTGRM_HISTORY.SAVTIME - 30502
SYS.WRI$_OPTSTAT_HISTGRM_HISTORY.SPARE6 - 30502
SYS.WRI$_OPTSTAT_HISTHEAD_HISTORY.SAVTIME - 49336
SYS.WRI$_OPTSTAT_HISTHEAD_HISTORY.SPARE6 - 49336
SYS.WRI$_OPTSTAT_IND_HISTORY.SAVTIME - 2695
SYS.WRI$_OPTSTAT_IND_HISTORY.SPARE6 - 2695
SYS.WRI$_OPTSTAT_OPR.END_TIME - 238
SYS.WRI$_OPTSTAT_OPR.SPARE6 - 238
SYS.WRI$_OPTSTAT_OPR.START_TIME - 238
SYS.WRI$_OPTSTAT_OPR_TASKS.END_TIME - 7981
SYS.WRI$_OPTSTAT_OPR_TASKS.SPARE6 - 7981
SYS.WRI$_OPTSTAT_OPR_TASKS.START_TIME - 7981
SYS.WRI$_OPTSTAT_TAB_HISTORY.SAVTIME - 3771
SYS.WRI$_OPTSTAT_TAB_HISTORY.SPARE6 - 3771
SYS.WRM$_DATABASE_INSTANCE.STARTUP_TIME_TZ - 6
SYS.WRM$_PDB_INSTANCE.OPEN_TIME_TZ - 1
SYS.WRM$_PDB_INSTANCE.STARTUP_TIME_TZ - 1
SYS.WRM$_PDB_IN_SNAP.OPEN_TIME_TZ - 1
SYS.WRM$_SNAPSHOT.BEGIN_INTERVAL_TIME_TZ - 2
SYS.WRM$_SNAPSHOT.END_INTERVAL_TIME_TZ - 2
SYS.XS$PRIN.END_DATE - 15
SYS.XS$PRIN.START_DATE - 15
Total count * of SYS TSTZ columns is : 199713
There are in total 162 SYS TSTZ columns.
.
For non-SYS tables ...
Note: empty tables are not listed.
Owner.TableName.ColumnName - COUNT(*) of that column
GSMADMIN_INTERNAL.AQ$_CHANGE_LOG_QUEUE_TABLE_S.CREATION_TIME - 1
GSMADMIN_INTERNAL.AQ$_CHANGE_LOG_QUEUE_TABLE_S.DELETION_TIME - 1
GSMADMIN_INTERNAL.AQ$_CHANGE_LOG_QUEUE_TABLE_S.MODIFICATION_TIME - 1
Total count * of non-SYS TSTZ columns is : 3
There are in total 5 non-SYS TSTZ columns.
Total Minutes elapsed : 0
Session altered.
SQL>
SQL>
SQL> @utltz_upg_check.sql
Session altered.
INFO: Starting with RDBMS DST update preparation.
INFO: NO actual RDBMS DST update will be done by this script.
INFO: If an ERROR occurs the script will EXIT sqlplus.
INFO: Doing checks for known issues ...
INFO: Database version is 19.0.0.0 .
INFO: Database RDBMS DST version is DSTv18 .
INFO: No known issues detected.
INFO: Now detecting new RDBMS DST version.
A prepare window has been successfully started.
INFO: Newest RDBMS DST version detected is DSTv32 .
INFO: Next step is checking all TSTZ data.
INFO: It might take a while before any further output is seen ...
A prepare window has been successfully ended.
INFO: A newer RDBMS DST version than the one currently used is found.
INFO: Note that NO DST update was yet done.
INFO: Now run utltz_upg_apply.sql to do the actual RDBMS DST update.
INFO: Note that the utltz_upg_apply.sql script will
INFO: restart the database 2 times WITHOUT any confirmation or prompt.
Session altered.
SQL>
SQL> @utltz_upg_apply.sql
Session altered.
INFO: If an ERROR occurs, the script will EXIT SQL*Plus.
INFO: The database RDBMS DST version will be updated to DSTv32 .
WARNING: This script will restart the database 2 times
WARNING: WITHOUT asking ANY confirmation.
WARNING: Hit control-c NOW if this is not intended.
INFO: Restarting the database in UPGRADE mode to start the DST upgrade.
Database closed.
Database dismounted.
ORACLE instance shut down.
ORACLE instance started.
Total System Global Area 2147481656 bytes
Fixed Size 8898616 bytes
Variable Size 503316480 bytes
Database Buffers 1627389952 bytes
Redo Buffers 7876608 bytes
Database mounted.
Database opened.
INFO: Starting the RDBMS DST upgrade.
INFO: Upgrading all SYS owned TSTZ data.
INFO: It might take time before any further output is seen ...
An upgrade window has been successfully started.
INFO: Restarting the database in NORMAL mode to upgrade non-SYS TSTZ data.
Database closed.
Database dismounted.
ORACLE instance shut down.
ORACLE instance started.
Total System Global Area 2147481656 bytes
Fixed Size 8898616 bytes
Variable Size 503316480 bytes
Database Buffers 1627389952 bytes
Redo Buffers 7876608 bytes
Database mounted.
Database opened.
INFO: Upgrading all non-SYS TSTZ data.
INFO: It might take time before any further output is seen ...
INFO: Do NOT start any application yet that uses TSTZ data!
INFO: Next is a list of all upgraded tables:
Table list: "GSMADMIN_INTERNAL"."AQ$_CHANGE_LOG_QUEUE_TABLE_L"
Number of failures: 0
Table list: "GSMADMIN_INTERNAL"."AQ$_CHANGE_LOG_QUEUE_TABLE_S"
Number of failures: 0
INFO: Total failures during update of TSTZ data: 0 .
An upgrade window has been successfully ended.
INFO: Your new Server RDBMS DST version is DSTv32 .
INFO: The RDBMS DST update is successfully finished.
INFO: Make sure to exit this SQL*Plus session.
INFO: Do not use it for timezone related selects.
Session altered.
SQL>
SQL>
SQL>
SQL>
SQL> SELECT version FROM v$timezone_file;
VERSION
----------
32
1 row selected.
SQL>
Set compatible parameter to 19.0.0(need a bounce)
SQL> show parameter compatible
NAME TYPE VALUE
------------------------------------ ----------- --------------
compatible string 12.1.0.2.0
noncdb_compatible boolean FALSE
SQL>
SQL>
SQL>
SQL> alter system set compatible='19.0.0' scope=spfile;
System altered.
SQL>
SQL>
SQL> shu immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL>
SQL>
SQL>
SQL> startup;
ORACLE instance started.
Total System Global Area 2147481656 bytes
Fixed Size 8898616 bytes
Variable Size 503316480 bytes
Database Buffers 1627389952 bytes
Redo Buffers 7876608 bytes
Database mounted.
Database opened.
SQL>
SQL>
SQL>
SQL> show parameter compatible
NAME TYPE VALUE
------------------------------------ ----------- ----------------
compatible string 19.0.0
noncdb_compatible boolean FALSE
SQL>
SQL> show parameter LOG_ARCHIVE_DEST_STATE_2
NAME TYPE VALUE
------------------------------------ ----------- --------------------
log_archive_dest_state_2 string defer
log_archive_dest_state_20 string enable
log_archive_dest_state_21 string enable
log_archive_dest_state_22 string enable
log_archive_dest_state_23 string enable
log_archive_dest_state_24 string enable
log_archive_dest_state_25 string enable
log_archive_dest_state_26 string enable
log_archive_dest_state_27 string enable
log_archive_dest_state_28 string enable
log_archive_dest_state_29 string enable
SQL>
SQL>
SQL> ALTER SYSTEM SET LOG_ARCHIVE_DEST_STATE_2=ENABLE SCOPE=BOTH;
System altered.
SQL> show parameter LOG_ARCHIVE_DEST_STATE_2
NAME TYPE VALUE
------------------------------------ ----------- --------------------
log_archive_dest_state_2 string ENABLE
SQL> SET LINES 180
COL DEST_NAME FOR A30
COL ERROR FOR A60
select DEST_ID,DEST_NAME,STATUS,ERROR from v$archive_dest where dest_id < 3;
DEST_ID DEST_NAME STATUS ERROR
---------- ------------------------------ --------- -----------------
1 LOG_ARCHIVE_DEST_1 VALID
2 LOG_ARCHIVE_DEST_2 ERROR ORA-16484: compatibility setting is too low
2 rows selected.
================================
Standby :-
[oracle@rac8 dbs]$
[oracle@rac8 dbs]$ scp orapwSAMIT spfileSAMIT.ora /u01/app/oracle/product/19.3.0.0/dbs
[oracle@rac8 dbs]$
[oracle@rac8 dbs]$
[oracle@rac8 dbs]$ sqlplus '/as sysdba'
SQL*Plus: Release 19.0.0.0.0 - Production on Sat Feb 5 16:00:53 2022
Version 19.3.0.0.0
Copyright (c) 1982, 2019, Oracle. All rights reserved.
Connected to an idle instance.
SQL> exit
Disconnected
[oracle@rac8 dbs]$
[oracle@rac8 dbs]$
[oracle@rac8 dbs]$ echo $ORACLE_HOME
/u01/app/oracle/product/19.3.0.0
[oracle@rac8 dbs]$
[oracle@rac8 dbs]$ echo $ORACLE_SID
SAMIT
[oracle@rac8 dbs]$
[oracle@rac8 dbs]$
[oracle@rac8 dbs]$ sqlplus '/as sysdba'
SQL*Plus: Release 19.0.0.0.0 - Production on Sat Feb 5 16:01:46 2022
Version 19.3.0.0.0
Copyright (c) 1982, 2019, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup nomount;
ORACLE instance started.
Total System Global Area 2147481656 bytes
Fixed Size 8898616 bytes
Variable Size 520093696 bytes
Database Buffers 1610612736 bytes
Redo Buffers 7876608 bytes
SQL>
SQL>
SQL>
SQL> alter database mount standby database;
Database altered.
SQL>
SQL>
Enable MRP on Standby
SQL> select name,open_mode,version from v$database,v$instance;
NAME OPEN_MODE VERSION
--------- -------------------- -----------------
AMIT MOUNTED 19.0.0.0.0
SQL>
SQL> show parameter COMPATIBLE
NAME TYPE VALUE
------------------------------------ ----------- --------------------
compatible string 12.1.0.2.0
noncdb_compatible boolean FALSE
SQL>
SQL>
SQL>
SQL> SELECT ARCH.THREAD# "Thread",
ARCH.SEQUENCE# "Last Sequence Received",
APPL.SEQUENCE# "Last Sequence Applied",
(ARCH.SEQUENCE# - APPL.SEQUENCE#) "Difference"
FROM
(SELECT THREAD# ,SEQUENCE# FROM V$ARCHIVED_LOG WHERE (THREAD#,FIRST_TIME ) IN (SELECT THREAD#,MAX(FIRST_TIME) FROM V$ARCHIVED_LOG GROUP BY THREAD#)) ARCH,
(SELECT THREAD# ,SEQUENCE# FROM V$LOG_HISTORY WHERE (THREAD#,FIRST_TIME ) IN (SELECT THREAD#,MAX(FIRST_TIME) FROM V$LOG_HISTORY GROUP BY THREAD#)) APPL
WHERE ARCH.THREAD# = APPL.THREAD#; 2 3 4 5 6 7 8
Thread Last Sequence Received Last Sequence Applied Difference
---------- ---------------------- --------------------- ----------
1 220 120 100
SQL>
SQL> alter database recover managed standby database disconnect from session;
Database altered.
Thread Last Sequence Received Last Sequence Applied Difference
---------- ---------------------- --------------------- ----------
1 220 128 92
Thread Last Sequence Received Last Sequence Applied Difference
---------- ---------------------- --------------------- ----------
1 220 220 0
SQL> show parameter COMPATIBLE
NAME TYPE VALUE
------------------------------------ ----------- --------------------
compatible string 12.1.0.2.0
noncdb_compatible boolean FALSE
SQL> select process,status,sequence#,thread# from v$managed_standby;
PROCESS STATUS SEQUENCE# THREAD#
--------- ------------ ---------- ----------
ARCH CONNECTED 0 0
DGRD ALLOCATED 0 0
DGRD ALLOCATED 0 0
ARCH CONNECTED 0 0
ARCH CONNECTED 0 0
ARCH CONNECTED 0 0
MRP0 WAIT_FOR_GAP 221 1
RFS IDLE 0 0
RFS IDLE 309 1
SQL>
SQL>
SQL> alter system set compatible='19.0.0' scope=spfile;
System altered.
SQL>
SQL> shut immediate;
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
SQL>
SQL>
SQL>
SQL> startup nomount;
ORACLE instance started.
Total System Global Area 2147481656 bytes
Fixed Size 8898616 bytes
Variable Size 520093696 bytes
Database Buffers 1610612736 bytes
Redo Buffers 7876608 bytes
SQL>
SQL>
SQL>
SQL> alter database mount standby database;
Database altered.
SQL> show parameter compatible
NAME TYPE VALUE
------------------------------------ ----------- --------------------compatible string 19.0.0
noncdb_compatible boolean FALSE
SQL>
SQL>
SQL> alter database recover managed standby database disconnect from session;
Database altered.
SQL>
SQL>
SQL> SELECT ARCH.THREAD# "Thread",
ARCH.SEQUENCE# "Last Sequence Received",
APPL.SEQUENCE# "Last Sequence Applied",
(ARCH.SEQUENCE# - APPL.SEQUENCE#) "Difference"
FROM
(SELECT THREAD# ,SEQUENCE# FROM V$ARCHIVED_LOG WHERE (THREAD#,FIRST_TIME ) IN (SELECT THREAD#,MAX(FIRST_TIME) FROM V$ARCHIVED_LOG GROUP BY THREAD#)) ARCH,
(SELECT THREAD# ,SEQUENCE# FROM V$LOG_HISTORY WHERE (THREAD#,FIRST_TIME ) IN (SELECT THREAD#,MAX(FIRST_TIME) FROM V$LOG_HISTORY GROUP BY THREAD#)) APPL
WHERE ARCH.THREAD# = APPL.THREAD#; 2 3 4 5 6 7 8
Thread Last Sequence Received Last Sequence Applied Difference
---------- ---------------------- --------------------- ----------
1 309 309 0
SQL>
SQL>
No comments:
Post a Comment