DBA Hub

📋Steps in this guide1/1

DST

change time zone in oracle database 19C

oracle 19cconfigurationintermediate
by fathy
48 views
1 H

Prerequisites

set lines 1000 set pages 1000 show con_name; col SCHEMA_NAME for a12 col TABLE_NAME for a28 col COLUMN_NAME for a27 col DATA_TYPE for a34 SELECT col.owner AS schema_name, col.table_name, column_id, column_name, data_type, data_scale AS second_scale FROM dba_tab_cols col JOIN sys.dba_tables tab ON col.owner = tab.owner AND col.table_name = tab.table_name WHERE col.data_type LIKE 'TIMESTAMP%TIME ZONE' AND col.owner NOT IN (select USERNAME from dba_users where ORACLE_MAINTAINED='Y') ORDER BY col.owner, col.table_name, column_id;

1

check the time zone-aware timestamps

set lines 1000 set pages 1000 show con_name; col SCHEMA_NAME for a12 col TABLE_NAME for a28 col COLUMN_NAME for a27 col DATA_TYPE for a34 SELECT col.owner AS schema_name, col.table_name, column_id, column_name, data_type, data_scale AS second_scale FROM dba_tab_cols col JOIN sys.dba_tables tab ON col.owner = tab.owner AND col.table_name = tab.table_name WHERE col.data_type LIKE 'TIMESTAMP%TIME ZONE' AND col.owner NOT IN (select USERNAME from dba_users where ORACLE_MAINTAINED='Y') ORDER BY col.owner, col.table_name, column_id; srvctl setenv database -d DMSCDB -t "TZ=Asia/Riyadh" restart cluster grep TZ /u01/app/19.0.0.0/grid/crs/install/s_crsconfig_hq-blkdbuat-v01_env.txt /* enter this path */ @$ORACLE_HOME/rdbms/admin/utltz_upg_check.sql @$ORACLE_HOME/rdbms/admin/utltz_upg_apply.sql sqlplus / as sysdba select version from v$timezone_file; /* if you have PDBS , you should do these on Container & PDBS */ @utltz_upg_check.sql @utltz_upg_apply.sql select version from v$timezone_file; ============================================================================ ============================================================================ [oracle@hq-scndbu-v01 admin]$ sqlplus / as sysdba SQL*Plus: Release 19.0.0.0.0 - Production on Tue May 28 12:38:25 2024 Version 19.20.0.0.0 Copyright (c) 1982, 2022, Oracle. All rights reserved. Connected to an idle instance. SQL> startup nomount; ORACLE instance started. Total System Global Area 1.6106E+10 bytes Fixed Size 13906448 bytes Variable Size 4127195136 bytes Database Buffers 1.1945E+10 bytes Redo Buffers 19644416 bytes SQL> show parameter clustrer SQL> SQL> show parameter cluster NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ cdb_cluster boolean FALSE cdb_cluster_name string cluster_database boolean TRUE cluster_database_instances integer 2 cluster_interconnects string SQL> SQL> alter system set cluster_database=FALSE scope=spfile sid='*'; System altered. SQL> shu immediate startup; ORA-01507: database not mounted ORACLE instance shut down. SQL> ORACLE instance started. Database opened. SQL> SQL> SQL> select version from v$timezone_file; VERSION ---------- 32 SQL> show pdbs; CON_ID CON_NAME OPEN MODE RESTRICTED ---------- ------------------------------ ---------- ---------- 2 PDB$SEED READ ONLY NO 3 DMSUAT READ WRITE NO 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: This database is a Multitenant database. INFO: Current container is CDB$ROOT . INFO: Updating the RDBMS DST version of the CDB / CDB$ROOT database INFO: will NOT update the RDBMS DST version of PDB databases in this CDB. WARNING: There are 1 open PDBs . WARNING: They will be closed when running utltz_upg_apply.sql . INFO: Database RDBMS DST version is DSTv32 . 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 DSTv42 . 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> 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 DSTv42 . INFO: This database is a Multitenant database. INFO: Current container is CDB$ROOT . INFO: Updating the RDBMS DST version of the CDB / CDB$ROOT database INFO: will NOT update the RDBMS DST version of PDB databases in this CDB. WARNING: There are 1 open PDBs . WARNING: They will be closed when CDB$ROOT is restarted 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 1.6106E+10 bytes Fixed Size 13906448 bytes Variable Size 4127195136 bytes Database Buffers 1.1945E+10 bytes Redo Buffers 19644416 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 1.6106E+10 bytes Fixed Size 13906448 bytes Variable Size 4127195136 bytes Database Buffers 1.1945E+10 bytes Redo Buffers 19644416 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_S" Number of failures: 0 Table list: "GSMADMIN_INTERNAL"."AQ$_CHANGE_LOG_QUEUE_TABLE_L" Number of failures: 0 Table list: "MDSYS"."SDO_DIAG_MESSAGES_TABLE" Number of failures: 0 Table list: "DVSYS"."AUDIT_TRAIL$" Number of failures: 0 Table list: "DVSYS"."SIMULATION_LOG$" 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 DSTv42 . 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> show pdbs; CON_ID CON_NAME OPEN MODE RESTRICTED ---------- ------------------------------ ---------- ---------- 2 PDB$SEED READ ONLY NO 3 DMSUAT READ WRITE NO SQL> alter session set container=DMSUAT; Session altered. 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: This database is a Multitenant database. INFO: This database is a PDB. INFO: Current PDB is DMSUAT . INFO: Database RDBMS DST version is DSTv32 . 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 DSTv42 . 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 DSTv42 . INFO: This database is a Multitenant database. INFO: This database is a PDB. INFO: Current PDB is DMSUAT . 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. Pluggable Database closed. Pluggable 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. Pluggable Database closed. Pluggable 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_S" Number of failures: 0 Table list: "GSMADMIN_INTERNAL"."AQ$_CHANGE_LOG_QUEUE_TABLE_L" Number of failures: 0 Table list: "MDSYS"."SDO_DIAG_MESSAGES_TABLE" Number of failures: 0 Table list: "DVSYS"."AUDIT_TRAIL$" Number of failures: 0 Table list: "DVSYS"."SIMULATION_LOG$" Number of failures: 0 Table list: "APEX_220200"."WWV_FLOW_WEB_SRC_MODULES" Number of failures: 0 Table list: "APEX_220200"."WWV_FLOW_AUTOMATIONS" Number of failures: 0 Table list: "APEX_220200"."WWV_FLOW_WORKSHEET_NOTIFY" Number of failures: 0 Table list: "APEX_220200"."WWV_FLOW_FEEDBACK" Number of failures: 0 Table list: "APEX_220200"."WWV_FLOW_FEEDBACK_FOLLOWUP" Number of failures: 0 Table list: "APEX_220200"."WWV_FLOW_ACTIVITY_LOG1$" DECLARE * ERROR at line 1: ORA-08102: index key not found, obj# 75125, file 11, block 126198 (2) ORA-06512: at "SYS.DBMS_DST", line 1131 ORA-06512: at "SYS.DBMS_DST", line 611 ORA-06512: at "SYS.DBMS_DST", line 209 ORA-06512: at "SYS.DBMS_DST", line 858 ORA-06512: at "SYS.DBMS_DST", line 596 ORA-06512: at "SYS.DBMS_DST", line 1123 ORA-06512: at line 11 [oracle@hq-scndbu-v01 admin]$ sqlplus / as sysdba SQL> select version from v$timezone_file; VERSION ---------- 42 SQL> show pdbs; CON_ID CON_NAME OPEN MODE RESTRICTED ---------- ------------------------------ ---------- ---------- 2 PDB$SEED READ ONLY NO 3 DMSUAT READ WRITE NO SQL> alter session set container=DMSUAT; Session altered. SQL> select version from v$timezone_file; VERSION ---------- 42 Version 19.20.0.0.0 [oracle@hq-scndbu-v01 admin]$ sqlplus / as sysdba Version 19.20.0.0.0 SQL> shu immediate Database closed. Database dismounted. ORACLE instance shut down. SQL> SQL> startup nomount; ORACLE instance started. Redo Buffers 19644416 bytes SQL> show pdbs; SQL> show parameter cluster NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ cdb_cluster boolean FALSE cdb_cluster_name string cluster_database boolean FALSE cluster_database_instances integer 1 cluster_interconnects string SQL> SQL> alter system set cluster_database=TRUE scope=spfile sid='*'; System altered. SQL> shu immediate ORA-01507: database not mounted [oracle@hq-scndbu-v01 admin]$ srvctl start database -d dmsuatc [oracle@hq-scndbu-v01 admin]$

Code/Command (click line numbers to comment):

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
set lines 1000
set pages 1000
show con_name;
col SCHEMA_NAME for a12
col TABLE_NAME             for a28
col COLUMN_NAME for a27
col DATA_TYPE for a34
SELECT col.owner AS schema_name, col.table_name, column_id, column_name, data_type, data_scale AS second_scale
FROM dba_tab_cols col 
JOIN sys.dba_tables tab 
  ON col.owner = tab.owner AND col.table_name = tab.table_name 
WHERE col.data_type LIKE 'TIMESTAMP%TIME ZONE' 
AND col.owner NOT IN (select USERNAME from dba_users where ORACLE_MAINTAINED='Y')
ORDER BY col.owner, col.table_name, column_id;


srvctl setenv database -d DMSCDB -t "TZ=Asia/Riyadh"

restart cluster

grep TZ /u01/app/19.0.0.0/grid/crs/install/s_crsconfig_hq-blkdbuat-v01_env.txt


/* enter this path */ 
@$ORACLE_HOME/rdbms/admin/utltz_upg_check.sql
@$ORACLE_HOME/rdbms/admin/utltz_upg_apply.sql

sqlplus / as sysdba

select version from v$timezone_file;

/* if you have PDBS , you should do these on Container & PDBS */

@utltz_upg_check.sql

@utltz_upg_apply.sql

select version from v$timezone_file;
============================================================================
============================================================================
[oracle@hq-scndbu-v01 admin]$ sqlplus / as sysdba

SQL*Plus: Release 19.0.0.0.0 - Production on Tue May 28 12:38:25 2024
Version 19.20.0.0.0

Copyright (c) 1982, 2022, Oracle.  All rights reserved.

Connected to an idle instance.

SQL> startup nomount;
ORACLE instance started.

Total System Global Area 1.6106E+10 bytes
Fixed Size                 13906448 bytes
Variable Size            4127195136 bytes
Database Buffers         1.1945E+10 bytes
Redo Buffers               19644416 bytes
SQL> show parameter clustrer
SQL>
SQL> show parameter cluster

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
cdb_cluster                          boolean     FALSE
cdb_cluster_name                     string
cluster_database                     boolean     TRUE
cluster_database_instances           integer     2
cluster_interconnects                string
SQL>
SQL> alter system set cluster_database=FALSE scope=spfile sid='*';

System altered.

SQL> shu immediate
startup;
ORA-01507: database not mounted





ORACLE instance shut down.
SQL> ORACLE instance started.
Database opened.
SQL>
SQL>
SQL> select version from v$timezone_file;

   VERSION
----------
        32




SQL> show pdbs;

    CON_ID CON_NAME                       OPEN MODE  RESTRICTED
---------- ------------------------------ ---------- ----------
         2 PDB$SEED                       READ ONLY  NO
         3 DMSUAT                         READ WRITE NO
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: This database is a Multitenant database.
INFO: Current container is CDB$ROOT .
INFO: Updating the RDBMS DST version of the CDB / CDB$ROOT database
INFO: will NOT update the RDBMS DST version of PDB databases in this CDB.
WARNING: There are 1 open PDBs .
WARNING: They will be closed when running utltz_upg_apply.sql .
INFO: Database RDBMS DST version is DSTv32 .
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 DSTv42 .
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>
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 DSTv42 .
INFO: This database is a Multitenant database.
INFO: Current container is CDB$ROOT .
INFO: Updating the RDBMS DST version of the CDB / CDB$ROOT database
INFO: will NOT update the RDBMS DST version of PDB databases in this CDB.
WARNING: There are 1 open PDBs .
WARNING: They will be closed when CDB$ROOT is restarted
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 1.6106E+10 bytes
Fixed Size                 13906448 bytes
Variable Size            4127195136 bytes
Database Buffers         1.1945E+10 bytes
Redo Buffers               19644416 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 1.6106E+10 bytes
Fixed Size                 13906448 bytes
Variable Size            4127195136 bytes
Database Buffers         1.1945E+10 bytes
Redo Buffers               19644416 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_S"
Number of failures: 0
Table list: "GSMADMIN_INTERNAL"."AQ$_CHANGE_LOG_QUEUE_TABLE_L"
Number of failures: 0
Table list: "MDSYS"."SDO_DIAG_MESSAGES_TABLE"
Number of failures: 0
Table list: "DVSYS"."AUDIT_TRAIL$"
Number of failures: 0
Table list: "DVSYS"."SIMULATION_LOG$"
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 DSTv42 .
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> show pdbs;

    CON_ID CON_NAME                       OPEN MODE  RESTRICTED
---------- ------------------------------ ---------- ----------
         2 PDB$SEED                       READ ONLY  NO
         3 DMSUAT                         READ WRITE NO
SQL> alter session set container=DMSUAT;

Session altered.

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: This database is a Multitenant database.
INFO: This database is a PDB.
INFO: Current PDB is DMSUAT .
INFO: Database RDBMS DST version is DSTv32 .
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 DSTv42 .
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 DSTv42 .
INFO: This database is a Multitenant database.
INFO: This database is a PDB.
INFO: Current PDB is DMSUAT .
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.
Pluggable Database closed.
Pluggable 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.
Pluggable Database closed.
Pluggable 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_S"
Number of failures: 0
Table list: "GSMADMIN_INTERNAL"."AQ$_CHANGE_LOG_QUEUE_TABLE_L"
Number of failures: 0
Table list: "MDSYS"."SDO_DIAG_MESSAGES_TABLE"
Number of failures: 0
Table list: "DVSYS"."AUDIT_TRAIL$"
Number of failures: 0
Table list: "DVSYS"."SIMULATION_LOG$"
Number of failures: 0
Table list: "APEX_220200"."WWV_FLOW_WEB_SRC_MODULES"
Number of failures: 0
Table list: "APEX_220200"."WWV_FLOW_AUTOMATIONS"
Number of failures: 0
Table list: "APEX_220200"."WWV_FLOW_WORKSHEET_NOTIFY"
Number of failures: 0
Table list: "APEX_220200"."WWV_FLOW_FEEDBACK"
Number of failures: 0
Table list: "APEX_220200"."WWV_FLOW_FEEDBACK_FOLLOWUP"
Number of failures: 0
Table list: "APEX_220200"."WWV_FLOW_ACTIVITY_LOG1$"
DECLARE
*
ERROR at line 1:
ORA-08102: index key not found, obj# 75125, file 11, block 126198 (2)
ORA-06512: at "SYS.DBMS_DST", line 1131
ORA-06512: at "SYS.DBMS_DST", line 611
ORA-06512: at "SYS.DBMS_DST", line 209
ORA-06512: at "SYS.DBMS_DST", line 858
ORA-06512: at "SYS.DBMS_DST", line 596
ORA-06512: at "SYS.DBMS_DST", line 1123
ORA-06512: at line 11

[oracle@hq-scndbu-v01 admin]$ sqlplus / as sysdba


SQL> select version from v$timezone_file;

   VERSION
----------
        42


SQL> show pdbs;

    CON_ID CON_NAME                       OPEN MODE  RESTRICTED
---------- ------------------------------ ---------- ----------
         2 PDB$SEED                       READ ONLY  NO
         3 DMSUAT                         READ WRITE NO
SQL> alter session set container=DMSUAT;

Session altered.

SQL> select version from v$timezone_file;

   VERSION
----------
        42
Version 19.20.0.0.0
[oracle@hq-scndbu-v01 admin]$ sqlplus / as sysdba
Version 19.20.0.0.0

SQL> shu immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL>
SQL> startup nomount;
ORACLE instance started.

Redo Buffers               19644416 bytes
SQL> show pdbs;
SQL> show parameter cluster

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
cdb_cluster                          boolean     FALSE
cdb_cluster_name                     string
cluster_database                     boolean     FALSE
cluster_database_instances           integer     1
cluster_interconnects                string
SQL>
SQL> alter system set cluster_database=TRUE scope=spfile sid='*';

System altered.

SQL> shu immediate
ORA-01507: database not mounted

[oracle@hq-scndbu-v01 admin]$ srvctl start database -d dmsuatc
[oracle@hq-scndbu-v01 admin]$

Warning

make sure your tested on the UAT environment first

Comments (1)

Please to add comments

ahmedalhedewy

ddddd