OS 환경 : Oracle Linux 8.7 (64bit)
DB 환경 : Oracle Database 19.27.0.0
방법 : 오라클 19c 수동 shutdown
오라클에서 startup은 nomount, mount, open 이렇게 3단계가 존재함
하지만 shutdown은 shutdown immediate나 abort, normal 등 한번에 이 3단계를 다 내리는 명령만 존재함
db를 종료할때 alert log를 보다보니 한단계씩 내려가는 모습이 보여서 이 명령들을 수동으로 실행해봄
테스트
먼저 내 세션에 trace 걸기
|
1
2
3
|
SQL> alter session set events '10046 trace name context forever, level 12';
Session altered.
|
shutdown 수행
|
1
|
SQL> shutdown immediate
|
shutdown 시 alert log 확인
|
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
|
$ tail -300f /app/oracle/diag/rdbms/ora19dbfs/ORA19DBFS/trace/alert_ORA19DBFS.log
2025-10-08T13:03:34.936452+09:00
Shutting down ORACLE instance (immediate) (OS id: 45388)
2025-10-08T13:03:34.946484+09:00
Shutdown is initiated by sqlplus@ora19fs (TNS V1-V3).
2025-10-08T13:03:36.292457+09:00
Stopping background process SMCO
Shutting down instance: further logons disabled
2025-10-08T13:03:36.403302+09:00
Stopping background process CJQ0
Stopping background process MMNL
2025-10-08T13:03:37.627229+09:00
Stopping background process MMON
License high water mark = 1
2025-10-08T13:03:37.754208+09:00
Dispatchers and shared servers shutdown
Data Pump shutdown on PDB: 0 in progress
ALTER DATABASE CLOSE NORMAL
Stopping Emon pool
2025-10-08T13:03:38.954888+09:00
IM on ADG: Start of Empty Journal
IM on ADG: End of Empty Journal
Stopping Emon pool
Closing sequence subsystem (5933068813).
Stopping change tracking
2025-10-08T13:03:38.982633+09:00
Shutting down archive processes
2025-10-08T13:03:38.983069+09:00
TT00 (PID:45390): Gap Manager exiting
Archiving is disabled
2025-10-08T13:03:39.085601+09:00
ARC2 (PID:45398): ARCH shutting down
ARC2 (PID:45398): Archival stopped
2025-10-08T13:03:39.086009+09:00
ARC3 (PID:45400): ARCH shutting down
2025-10-08T13:03:39.086114+09:00
ARC1 (PID:45396): ARCH shutting down
2025-10-08T13:03:39.086126+09:00
ARC3 (PID:45400): Archival stopped
2025-10-08T13:03:39.086235+09:00
ARC1 (PID:45396): Archival stopped
2025-10-08T13:03:39.086499+09:00
ARC0 (PID:45392): ARCH shutting down
ARC0 (PID:45392): Archival stopped
2025-10-08T13:03:40.099178+09:00
Thread 1 closed at log sequence 174
Successful close of redo thread 1
2025-10-08T13:03:40.123183+09:00
Completed: ALTER DATABASE CLOSE NORMAL
ALTER DATABASE DISMOUNT
Shutting down archive processes
Archiving is disabled
Completed: ALTER DATABASE DISMOUNT
2025-10-08T13:03:41.212141+09:00
.... (PID:45388): Archival disabled due to shutdown: 1089
Shutting down archive processes
Archiving is disabled
2025-10-08T13:03:42.213571+09:00
JIT: pid 45388 requesting stop
2025-10-08T13:03:42.214312+09:00
Stopping background process VKTM
2025-10-08T13:03:42.247511+09:00
.... (PID:45388): Archival disabled due to shutdown: 1089
Shutting down archive processes
Archiving is disabled
JIT: pid 45388 requesting stop
2025-10-08T13:03:51.006971+09:00
Instance shutdown complete (OS id: 45388)
|
shutdown시 명령어는 ALTER DATABASE CLOSE NORMAL이 먼저 나오고 ALTER DATABASE DISMOUNT가 수행됨
다시 기동후 순서대로 수동 실행
기동
|
1
2
3
4
5
6
7
8
9
10
|
SQL> startup
ORACLE instance started.
Total System Global Area 1543503872 bytes
Fixed Size 8621040 bytes
Variable Size 503317520 bytes
Database Buffers 1023410176 bytes
Redo Buffers 8155136 bytes
Database mounted.
Database opened.
|
수동 shutdown 수행
먼저 close normal 수행
|
1
2
3
|
SQL> alter database close normal;
Database altered.
|
1분 정도 소요됨
close normal시 alert log 확인
|
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
|
$ tail -300f /app/oracle/diag/rdbms/ora19dbfs/ORA19DBFS/trace/alert_ORA19DBFS.log
2025-10-08T13:16:57.824110+09:00
alter database close normal
2025-10-08T13:16:57.865153+09:00
Warning: ALTER DATABASE CLOSE is not a publicly supported command.
2025-10-08T13:16:57.866363+09:00
Stopping background process CJQ0
2025-10-08T13:16:58.907161+09:00
Stopping Emon pool
2025-10-08T13:16:59.001559+09:00
Process termination requested for pid 48198 [source = rdbms], [info = 2] [request issued by pid: 48194, uid: 54321]
Stopping background process AQPC
Dispatchers and shared servers shutdown
CLOSE: killing server sessions.
2025-10-08T13:16:59.134847+09:00
Process termination requested for pid 48172 [source = rdbms], [info = 2] [request issued by pid: 48170, uid: 54321]
2025-10-08T13:16:59.135048+09:00
Process termination requested for pid 48204 [source = rdbms], [info = 2] [request issued by pid: 48170, uid: 54321]
2025-10-08T13:16:59.135553+09:00
Process termination requested for pid 48206 [source = rdbms], [info = 2] [request issued by pid: 48170, uid: 54321]
2025-10-08T13:16:59.137135+09:00
Process termination requested for pid 48174 [source = rdbms], [info = 2] [request issued by pid: 48170, uid: 54321]
2025-10-08T13:16:59.144012+09:00
CLOSE: all sessions shutdown successfully.
<<-- 여기서 꽤 오래 대기함(약 1분)
2025-10-08T13:18:00.637426+09:00
IM on ADG: Start of Empty Journal
IM on ADG: End of Empty Journal
Stopping Emon pool
Closing sequence subsystem (6794753453).
Stopping change tracking
2025-10-08T13:18:00.679426+09:00
Shutting down archive processes
2025-10-08T13:18:00.679737+09:00
TT00 (PID:48178): Gap Manager exiting
Archiving is disabled
2025-10-08T13:18:00.780600+09:00
ARC1 (PID:48182): ARCH shutting down
ARC1 (PID:48182): Archival stopped
2025-10-08T13:18:00.781020+09:00
ARC2 (PID:48184): ARCH shutting down
ARC2 (PID:48184): Archival stopped
2025-10-08T13:18:00.781710+09:00
ARC3 (PID:48186): ARCH shutting down
ARC3 (PID:48186): Archival stopped
2025-10-08T13:18:00.782389+09:00
ARC0 (PID:48176): ARCH shutting down
ARC0 (PID:48176): Archival stopped
2025-10-08T13:18:01.798445+09:00
Thread 1 closed at log sequence 175
Successful close of redo thread 1
2025-10-08T13:18:01.799574+09:00
Entire Buffer Cache invalidation started
Entire Buffer Cache invalidation completed
Completed: alter database close normal
|
정상적으로 종료됨
Warning: ALTER DATABASE CLOSE is not a publicly supported command. 라는 메세지가 발생함
공식적으로 지원하지 않는 명령이라고 나옴
dismount 수행
|
1
2
3
|
SQL> alter database dismount;
Database altered.
|
바로 수행됨
dismount시 alert log 확인
|
1
2
3
4
5
6
|
$ tail -300f /app/oracle/diag/rdbms/ora19dbfs/ORA19DBFS/trace/alert_ORA19DBFS.log
2025-10-08T13:19:52.571587+09:00
alter database dismount
Shutting down archive processes
Archiving is disabled
Completed: alter database dismount
|
db 상태 확인
|
1
2
3
4
5
|
SQL> select status from v$instance;
STATUS
------------
STARTED
|
아직 nomount 상태임
shutdown immediate 시 dismount 이후 명령은 없었음
혹시 모르니 수집해둔 trace 확인
trace 확인
|
1
|
$ tkprof ORA19DBFS_ora_45388.trc ORA19DBFS_ora_45388.trc.tkprof
|
열기
|
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
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
|
$ vi ORA19DBFS_ora_45388.trc.tkprof
TKPROF: Release 19.0.0.0.0 - Development on Wed Oct 8 13:05:29 2025
Copyright (c) 1982, 2019, Oracle and/or its affiliates. All rights reserved.
Trace file: ORA19DBFS_ora_45388.trc
Sort options: default
********************************************************************************
count = number of times OCI procedure was executed
cpu = cpu time in seconds executing
elapsed = elapsed time in seconds executing
disk = number of physical reads of buffers from disk
query = number of buffers gotten for consistent read
current = number of buffers gotten in current mode (usually for update)
rows = number of rows processed by the fetch or execute call
********************************************************************************
SQL ID: cju1pzt0pawyh Plan Hash: 1388734953
SELECT SYS_CONTEXT('USERENV','CDB_NAME'), SYS_CONTEXT('USERENV','CON_NAME')
, SYS_CONTEXT('USERENV','IS_APPLICATION_ROOT')
FROM
SYS.DUAL
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 2 0.00 0.00 0 0 0 1
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 4 0.00 0.00 0 0 0 1
Misses in library cache during parse: 1
Optimizer mode: ALL_ROWS
Parsing user id: SYS
Number of plan statistics captured: 1
Rows (1st) Rows (avg) Rows (max) Row Source Operation
---------- ---------- ---------- ---------------------------------------------------
1 1 1 FAST DUAL (cr=0 pr=0 pw=0 time=0 us starts=1 cost=2 size=0 card=1)
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
SQL*Net message to client 2 0.00 0.00
SQL*Net message from client 2 0.00 0.00
********************************************************************************
SQL ID: f55uy49kwq6hk Plan Hash: 0
ALTER DATABASE CLOSE NORMAL
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.07 2.20 0 0 142 0
Fetch 0 0.00 0.00 0 0 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 2 0.07 2.20 0 0 142 0
Misses in library cache during parse: 1
Optimizer mode: ALL_ROWS
Parsing user id: SYS
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
instance state change 2 0.00 0.00
control file sequential read 13 0.00 0.00
db file sequential read 4 0.00 0.00
wait active processes 1 0.00 0.00
rdbms ipc reply 8 1.12 1.12
checkpoint completed 1 0.00 0.00
Disk file operations I/O 7 0.00 0.00
PGA memory operation 1 0.00 0.00
SQL*Net message to client 1 0.00 0.00
SQL*Net message from client 1 0.00 0.00
********************************************************************************
SQL ID: 2p9fv35c7zxtg Plan Hash: 2367040129
select /* KSXM:LOAD_DML_INF *//*+ leading(o) index(m) use_nl(m) */
nvl(m.inserts, 0) ins, nvl(m.updates, 0) upd, nvl(m.deletes, 0) del,
nvl(m.drop_segments, 0) dropseg, nvl(m.flags, 0) flags,
nvl(rowcnt, 0) rowcnt, o.pobjn pobjn
from
(select :objn objn, 0 pobjn, rowcnt
from tab$ t
where t.obj# = :objn
union all
select :objn objn, tp.bo# pobjn, rowcnt
from tabpart$ tp
where tp.obj# = :objn
union all
select :objn objn, tcp.bo# pobjn, rowcnt
from tabcompart$ tcp
where tcp.obj# = :objn
union all
select :objn objn, tsp.pobj# pobjn, rowcnt
from tabsubpart$ tsp
where tsp.obj# = :objn) o, sys.mon_mods_all$ m
where o.objn = m.obj#(+) and rownum < 2
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 39 0.00 0.00 0 0 0 0
Execute 39 0.00 0.00 0 0 0 0
Fetch 39 0.00 0.00 0 193 0 39
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 117 0.01 0.01 0 193 0 39
Misses in library cache during parse: 1
Misses in library cache during execute: 1
Optimizer mode: CHOOSE
Parsing user id: SYS (recursive depth: 1)
Number of plan statistics captured: 3
Rows (1st) Rows (avg) Rows (max) Row Source Operation
---------- ---------- ---------- ---------------------------------------------------
1 1 1 COUNT STOPKEY (cr=4 pr=0 pw=0 time=56 us starts=1)
1 1 1 NESTED LOOPS OUTER (cr=4 pr=0 pw=0 time=53 us starts=1 cost=10 size=240 card=4)
1 1 1 VIEW (cr=3 pr=0 pw=0 time=29 us starts=1 cost=6 size=156 card=4)
1 1 1 UNION-ALL (cr=3 pr=0 pw=0 time=27 us starts=1)
1 1 1 TABLE ACCESS CLUSTER TAB$ (cr=3 pr=0 pw=0 time=25 us starts=1 cost=2 size=8 card=1)
1 1 1 INDEX UNIQUE SCAN I_OBJ# (cr=2 pr=0 pw=0 time=12 us starts=1 cost=1 size=0 card=1)(object id 3)
0 0 0 TABLE ACCESS BY INDEX ROWID TABPART$ (cr=0 pr=0 pw=0 time=0 us starts=0 cost=2 size=13 card=1)
0 0 0 INDEX UNIQUE SCAN I_TABPART_OBJ$ (cr=0 pr=0 pw=0 time=0 us starts=0 cost=1 size=0 card=1)(object id 831)
0 0 0 TABLE ACCESS BY INDEX ROWID TABCOMPART$ (cr=0 pr=0 pw=0 time=0 us starts=0 cost=1 size=12 card=1)
0 0 0 INDEX UNIQUE SCAN I_TABCOMPART$ (cr=0 pr=0 pw=0 time=0 us starts=0 cost=0 size=0 card=1)(object id 853)
0 0 0 TABLE ACCESS BY INDEX ROWID TABSUBPART$ (cr=0 pr=0 pw=0 time=0 us starts=0 cost=1 size=23 card=1)
0 0 0 INDEX UNIQUE SCAN I_TABSUBPART$_OBJ$ (cr=0 pr=0 pw=0 time=0 us starts=0 cost=0 size=0 card=1)(object id 843)
0 0 1 TABLE ACCESS BY INDEX ROWID MON_MODS_ALL$ (cr=1 pr=0 pw=0 time=21 us starts=1 cost=1 size=21 card=1)
0 0 1 INDEX UNIQUE SCAN I_MON_MODS_ALL$_OBJ (cr=1 pr=0 pw=0 time=10 us starts=1 cost=0 size=0 card=1)(object id 690)
********************************************************************************
SQL ID: f3ww8rgva3hrs Plan Hash: 477378112
update /* KSXM:FLUSH COL */ sys.col_usage$ set
equality_preds = equality_preds + decode(bitand(:flag,1),0,0,1),
equijoin_preds = equijoin_preds + decode(bitand(:flag,2),0,0,1),
nonequijoin_preds = nonequijoin_preds + decode(bitand(:flag,4),0,0,1),
range_preds = range_preds + decode(bitand(:flag,8),0,0,1),
like_preds = like_preds + decode(bitand(:flag,16),0,0,1),
null_preds = null_preds + decode(bitand(:flag,32),0,0,1),
flags = flags + :flag - bitand(flags,:flag), timestamp =
:time
where
obj# = :objn and intcol# = :coln
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 103 0.00 0.00 0 0 0 0
Execute 206 0.04 0.04 1 412 315 206
Fetch 0 0.00 0.00 0 0 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 309 0.04 0.04 1 412 315 206
Misses in library cache during parse: 1
Misses in library cache during execute: 1
Optimizer mode: CHOOSE
Parsing user id: SYS (recursive depth: 1)
Number of plan statistics captured: 3
Rows (1st) Rows (avg) Rows (max) Row Source Operation
---------- ---------- ---------- ---------------------------------------------------
0 0 0 UPDATE COL_USAGE$ (cr=2 pr=0 pw=0 time=116 us starts=1)
1 1 1 INDEX UNIQUE SCAN I_COL_USAGE$ (cr=2 pr=0 pw=0 time=9 us starts=1 cost=1 size=33 card=1)(object id 684)
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
db file sequential read 1 0.00 0.00
********************************************************************************
SQL ID: 3ms7w0c6ph91t Plan Hash: 0
insert /* KSXM:FLUSH COL */ into sys.col_usage$ (obj#, intcol#,
equality_preds, equijoin_preds, nonequijoin_preds, range_preds, like_preds,
null_preds, flags, timestamp)
values
( :objn, :coln, decode(bitand(:flag,1),0,0,1), decode(bitand(:flag,2),
0,0,1), decode(bitand(:flag,4),0,0,1), decode(bitand(:flag,8),0,0,1),
decode(bitand(:flag,16),0,0,1), decode(bitand(:flag,32),0,0,1), :flag,
:time)
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 103 0.00 0.00 0 0 0 0
Execute 0 0.00 0.00 0 0 0 0
Fetch 0 0.00 0.00 0 0 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 103 0.00 0.00 0 0 0 0
Misses in library cache during parse: 1
Optimizer mode: CHOOSE
Parsing user id: SYS (recursive depth: 1)
********************************************************************************
SQL ID: 3dbzmtf9ahvzt Plan Hash: 3238164414
merge /* KSXM:OPTIM_DML_INF */ into sys.mon_mods_all$ m
using dual
on (m.obj# = :objn and
(:pobjn = 0 or
m.obj# = :pobjn or
m.obj# in (select obj#
from tabpart$
where bo# = :pobjn and obj# = :objn
union all
select obj#
from tabcompart$
where bo# = :pobjn and obj# = :objn
union all
select tsp.obj#
from tabsubpart$ tsp, tabcompart$ tcp
where tsp.pobj# = tcp.obj#
and (tcp.bo# = :pobjn or tcp.obj# = :pobjn)
and tsp.obj# = :objn))) when matched
then update
set inserts =
decode(:reset, 1, 0, inserts) + :ins, updates =
decode(:reset, 1, 0, updates) + :upd, deletes =
decode(:reset, 1, 0, deletes) + :del, flags =
decode(:reset, 1, 0, flags - bitand(flags, :flag)) + :flag,
drop_segments = decode(:reset, 1, 0, drop_segments) + :dropseg,
timestamp = :time when
NOT matched then
insert (obj#, inserts, updates, deletes,
timestamp, flags, drop_segments)
values (:objn, :ins, :upd, :del, :time, :flag, :dropseg)
where :ins != 0 or :upd != 0 or :del != 0 or :flag != 0 or :dropseg !=0
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 26 0.00 0.00 0 0 0 0
Execute 26 0.01 0.01 0 104 52 26
Fetch 0 0.00 0.00 0 0 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 52 0.01 0.01 0 104 52 26
Misses in library cache during parse: 1
Misses in library cache during execute: 1
Optimizer mode: CHOOSE
Parsing user id: SYS (recursive depth: 1)
Number of plan statistics captured: 3
Rows (1st) Rows (avg) Rows (max) Row Source Operation
---------- ---------- ---------- ---------------------------------------------------
0 0 0 MERGE MON_MODS_ALL$ (cr=4 pr=0 pw=0 time=127 us starts=1)
1 1 1 VIEW (cr=4 pr=0 pw=0 time=39 us starts=1)
1 1 1 NESTED LOOPS OUTER (cr=4 pr=0 pw=0 time=38 us starts=1 cost=3 size=101 card=1)
1 1 1 TABLE ACCESS FULL DUAL (cr=2 pr=0 pw=0 time=27 us starts=1 cost=2 size=2 card=1)
1 1 1 VIEW VW_LAT_A18161FF (cr=2 pr=0 pw=0 time=9 us starts=1 cost=1 size=99 card=1)
1 1 1 FILTER (cr=2 pr=0 pw=0 time=8 us starts=1)
1 1 1 TABLE ACCESS BY INDEX ROWID MON_MODS_ALL$ (cr=2 pr=0 pw=0 time=7 us starts=1 cost=1 size=25 card=1)
1 1 1 INDEX UNIQUE SCAN I_MON_MODS_ALL$_OBJ (cr=1 pr=0 pw=0 time=3 us starts=1 cost=0 size=0 card=1)(object id 690)
0 0 0 UNION-ALL (cr=0 pr=0 pw=0 time=0 us starts=0)
0 0 0 FILTER (cr=0 pr=0 pw=0 time=0 us starts=0)
0 0 0 TABLE ACCESS BY INDEX ROWID TABPART$ (cr=0 pr=0 pw=0 time=0 us starts=0 cost=2 size=10 card=1)
0 0 0 INDEX UNIQUE SCAN I_TABPART_OBJ$ (cr=0 pr=0 pw=0 time=0 us starts=0 cost=1 size=0 card=1)(object id 831)
0 0 0 FILTER (cr=0 pr=0 pw=0 time=0 us starts=0)
0 0 0 TABLE ACCESS BY INDEX ROWID TABCOMPART$ (cr=0 pr=0 pw=0 time=0 us starts=0 cost=1 size=10 card=1)
0 0 0 INDEX UNIQUE SCAN I_TABCOMPART$ (cr=0 pr=0 pw=0 time=0 us starts=0 cost=0 size=0 card=1)(object id 853)
0 0 0 FILTER (cr=0 pr=0 pw=0 time=0 us starts=0)
0 0 0 NESTED LOOPS (cr=0 pr=0 pw=0 time=0 us starts=0 cost=2 size=20 card=1)
0 0 0 TABLE ACCESS BY INDEX ROWID TABSUBPART$ (cr=0 pr=0 pw=0 time=0 us starts=0 cost=1 size=10 card=1)
0 0 0 INDEX UNIQUE SCAN I_TABSUBPART$_OBJ$ (cr=0 pr=0 pw=0 time=0 us starts=0 cost=0 size=0 card=1)(object id 843)
0 0 0 TABLE ACCESS BY INDEX ROWID TABCOMPART$ (cr=0 pr=0 pw=0 time=0 us starts=0 cost=1 size=10 card=1)
0 0 0 INDEX UNIQUE SCAN I_TABCOMPART$ (cr=0 pr=0 pw=0 time=0 us starts=0 cost=0 size=0 card=1)(object id 853)
********************************************************************************
SQL ID: acmvv4fhdc9zh Plan Hash: 813480514
select obj#,type#,ctime,mtime,stime, status, dataobj#, flags, oid$, spare1,
spare2, spare3, signature, spare7, spare8, spare9, nvl(dflcollid, 16382),
creappid, creverid, modappid, modverid, crepatchid, modpatchid
from
obj$ where owner#=:1 and name=:2 and namespace=:3 and remoteowner is null
and linkname is null and subname is null
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 0 0.00 0.00 0 0 0 0
Execute 8 0.00 0.00 0 0 0 0
Fetch 8 0.00 0.00 0 32 0 8
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 16 0.00 0.00 0 32 0 8
Misses in library cache during parse: 0
Optimizer mode: CHOOSE
Parsing user id: SYS (recursive depth: 2)
********************************************************************************
SQL ID: 7hz6qkr2687bv Plan Hash: 1274438249
select t.ts#,t.file#,t.block#,nvl(t.bobj#,0),nvl(t.tab#,0),t.intcols,
nvl(t.clucols,0),t.flags,t.pctfree$,t.pctused$,t.initrans,t.maxtrans,
t.rowcnt,t.blkcnt,t.empcnt,t.avgspc,t.chncnt,t.avgrln,t.analyzetime,
t.samplesize,t.cols,t.property,nvl(t.degree,1),nvl(t.instances,1),
t.avgspc_flb,t.flbcnt,t.kernelcols,nvl(t.trigflag, 0),nvl(t.spare1,0),
nvl(t.spare2,0),t.spare4,t.spare6,ts.cachedblk,ts.cachehit,ts.logicalread,
ts.im_imcu_count,ts.im_block_count,ts.im_sys_incarnation,
ts.im_stat_update_time,ts.scanrate,nvl(t.acdrflags, 0),nvl(t.acdrtsobj#, 0),
t.acdrdefaulttime, nvl(t.acdrrowtsintcol#, 0),nvl(t.spare7,0)
from
tab$ t, tab_stats$ ts where t.obj#= :1 and t.obj# = ts.obj# (+)
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 0 0.00 0.00 0 0 0 0
Execute 3 0.00 0.00 0 0 0 0
Fetch 3 0.00 0.00 0 15 0 3
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 6 0.00 0.00 0 15 0 3
Misses in library cache during parse: 0
Optimizer mode: CHOOSE
Parsing user id: SYS (recursive depth: 2)
********************************************************************************
SQL ID: gd28w82ct6rva Plan Hash: 2970138452
select audit$
from
tab$ where obj# = :1
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 0 0.00 0.00 0 0 0 0
Execute 3 0.00 0.00 0 0 0 0
Fetch 3 0.00 0.00 0 9 0 3
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 6 0.00 0.00 0 9 0 3
Misses in library cache during parse: 0
Optimizer mode: CHOOSE
Parsing user id: SYS (recursive depth: 2)
********************************************************************************
SQL ID: 121ffmrc95v7g Plan Hash: 2542797530
select i.obj#,i.ts#,i.file#,i.block#,i.intcols,i.type#,i.flags,i.property,
i.pctfree$,i.initrans,i.maxtrans,i.blevel,i.leafcnt,i.distkey,i.lblkkey,
i.dblkkey,i.clufac,i.cols,i.analyzetime,i.samplesize,i.dataobj#,
nvl(i.degree,1),nvl(i.instances,1),i.rowcnt,mod(i.pctthres$,256),
i.indmethod#,i.trunccnt,nvl(c.unicols,0),nvl(c.deferrable#+c.valid#,0),
nvl(i.spare1,i.intcols),i.spare4,i.spare2,i.spare6,decode(i.pctthres$,null,
null,mod(trunc(i.pctthres$/256),256)),nvl(i.evaledition#,1),
nvl(i.unusablebefore#,0),nvl(i.unusablebeginning#,0), ist.cachedblk,
ist.cachehit,ist.logicalread
from
ind$ i, ind_stats$ ist, (select enabled, min(intcols) unicols,
min(to_number(bitand(defer,1))) deferrable#,min(to_number(bitand(defer,4)))
valid# from cdef$ where obj#=:1 and enabled > 1 group by enabled) c where
i.obj#=c.enabled(+) and i.obj# = ist.obj#(+) and i.bo#=:1 order by i.obj#
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 0 0.00 0.00 0 0 0 0
Execute 4 0.00 0.00 0 0 0 0
Fetch 8 0.00 0.00 0 22 0 4
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 12 0.00 0.00 0 22 0 4
Misses in library cache during parse: 0
Optimizer mode: CHOOSE
Parsing user id: SYS (recursive depth: 2)
********************************************************************************
SQL ID: 5n1fs4m2n2y0r Plan Hash: 452367486
select pos#,intcol#,col#,spare1,bo#,spare2,spare3
from
icol$ where obj#=:1
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 0 0.00 0.00 0 0 0 0
Execute 4 0.00 0.00 0 0 0 0
Fetch 9 0.00 0.00 0 18 0 5
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 13 0.00 0.00 0 18 0 5
Misses in library cache during parse: 0
Optimizer mode: CHOOSE
Parsing user id: SYS (recursive depth: 2)
********************************************************************************
SQL ID: g0t052az3rx44 Plan Hash: 3765558045
select name,intcol#,segcol#,type#,length,nvl(precision#,0),decode(type#,2,
nvl(scale,-127/*MAXSB1MINAL*/),178,scale,179,scale,180,scale,181,scale,182,
scale,183,scale,231,scale,0),null$,fixedstorage,nvl(deflength,0),default$,
rowid,col#,property, nvl(charsetid,0),nvl(charsetform,0),spare1,spare2,
nvl(spare3,0), nvl(evaledition#,1),nvl(unusablebefore#,0),
nvl(unusablebeginning#,0), case when (type# in (1,8,9,96,112)) then
nvl(collid, 16382) else 0 end case, nvl(collintcol#,0), nvl(acdrrescol#, 0),
nvl(spare7, 0), nvl(spare9, 0), nvl(spare10, 0)
from
col$ where obj#=:1 order by intcol#
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 0 0.00 0.00 0 0 0 0
Execute 4 0.00 0.00 0 0 0 0
Fetch 20 0.00 0.00 0 14 0 16
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 24 0.00 0.00 0 14 0 16
Misses in library cache during parse: 0
Optimizer mode: CHOOSE
Parsing user id: SYS (recursive depth: 2)
********************************************************************************
SQL ID: 9tgj4g8y4rwy8 Plan Hash: 3755742892
select type#,blocks,extents,minexts,maxexts,extsize,extpct,user#,iniexts,
NVL(lists,65535),NVL(groups,65535),cachehint,hwmincr, NVL(spare1,0),
NVL(scanhint,0),NVL(bitmapranges,0)
from
seg$ where ts#=:1 and file#=:2 and block#=:3
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 0 0.00 0.00 0 0 0 0
Execute 6 0.00 0.00 0 0 0 0
Fetch 6 0.00 0.00 0 18 0 6
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 12 0.00 0.00 0 18 0 6
Misses in library cache during parse: 0
Optimizer mode: CHOOSE
Parsing user id: SYS (recursive depth: 2)
********************************************************************************
SQL ID: 87gaftwrm2h68 Plan Hash: 1072382624
select o.owner#,o.name,o.namespace,o.remoteowner,o.linkname,o.subname
from
obj$ o where o.obj#=:1
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 0 0.00 0.00 0 0 0 0
Execute 5 0.00 0.00 0 0 0 0
Fetch 5 0.00 0.00 0 15 0 5
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 10 0.00 0.00 0 15 0 5
Misses in library cache during parse: 0
Optimizer mode: CHOOSE
Parsing user id: SYS (recursive depth: 2)
********************************************************************************
SQL ID: 13sjt151vxu5v Plan Hash: 1552849460
select /* QOSD */ /*+ index(eo) */ exp_cnt
from
exp_obj$ eo where objn = :1 and snapshot_id = :2
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 3 0.00 0.00 0 0 0 0
Fetch 3 0.00 0.00 3 5 0 2
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 7 0.00 0.00 3 5 0 2
Misses in library cache during parse: 1
Misses in library cache during execute: 1
Optimizer mode: CHOOSE
Parsing user id: SYS (recursive depth: 1)
Number of plan statistics captured: 1
Rows (1st) Rows (avg) Rows (max) Row Source Operation
---------- ---------- ---------- ---------------------------------------------------
1 1 1 TABLE ACCESS BY INDEX ROWID EXP_OBJ$ (cr=2 pr=2 pw=0 time=84 us starts=1 cost=1 size=11 card=1)
1 1 1 INDEX UNIQUE SCAN I_EXP_OBJ$ (cr=1 pr=1 pw=0 time=51 us starts=1 cost=0 size=0 card=1)(object id 737)
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
db file sequential read 3 0.00 0.00
********************************************************************************
SQL ID: 0sbbcuruzd66f Plan Hash: 2239883476
select /*+ rule */ bucket_cnt, row_cnt, cache_cnt, null_cnt, timestamp#,
sample_size, minimum, maximum, distcnt, lowval, hival, density, col#,
spare1, spare2, avgcln, minimum_enc, maximum_enc
from
hist_head$ where obj#=:1 and intcol#=:2
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 0 0.00 0.00 0 0 0 0
Execute 16 0.00 0.00 0 0 0 0
Fetch 16 0.00 0.00 0 48 0 16
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 32 0.00 0.00 0 48 0 16
Misses in library cache during parse: 0
Optimizer mode: RULE
Parsing user id: SYS (recursive depth: 2)
********************************************************************************
SQL ID: 2sxqgx5hx76qr Plan Hash: 3312420081
select /*+ rule */ bucket, endpoint, col#, epvalue, epvalue_raw,
ep_repeat_count, endpoint_enc
from
histgrm$ where obj#=:1 and intcol#=:2 and row#=:3 order by bucket
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 0 0.00 0.00 0 0 0 0
Execute 4 0.00 0.00 0 0 0 0
Fetch 4 0.00 0.00 3 12 0 30
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 8 0.00 0.00 3 12 0 30
Misses in library cache during parse: 0
Optimizer mode: RULE
Parsing user id: SYS (recursive depth: 2)
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
db file sequential read 3 0.00 0.00
********************************************************************************
SQL ID: bay3va0dzsc0m Plan Hash: 829889662
select /* QOSD */ /*+ index(es) */ exp_id, dynamic_cost, eval_count, ctime,
last_modified
from
exp_stat$ es where objn = :1 and snapshot_id = :2
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 2 0.00 0.00 0 0 0 0
Fetch 18 0.00 0.00 0 34 0 16
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 21 0.00 0.00 0 34 0 16
Misses in library cache during parse: 1
Misses in library cache during execute: 1
Optimizer mode: CHOOSE
Parsing user id: SYS (recursive depth: 1)
Number of plan statistics captured: 1
Rows (1st) Rows (avg) Rows (max) Row Source Operation
---------- ---------- ---------- ---------------------------------------------------
8 8 8 TABLE ACCESS BY INDEX ROWID BATCHED EXP_STAT$ (cr=17 pr=0 pw=0 time=19 us starts=1 cost=2 size=240 card=6)
8 8 8 INDEX RANGE SCAN I_EXP_STAT$ (cr=9 pr=0 pw=0 time=28 us starts=1 cost=1 size=0 card=6)(object id 739)
********************************************************************************
SQL ID: 76qzp97pk87x0 Plan Hash: 769771016
select action_state
from
sys.im_ime$ where action_name = 'CAPTURE WINDOW' for update
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 2 2 2 0
Fetch 1 0.00 0.00 0 0 0 1
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 3 0.00 0.00 2 2 2 1
Misses in library cache during parse: 1
Optimizer mode: CHOOSE
Parsing user id: SYS (recursive depth: 1)
Number of plan statistics captured: 1
Rows (1st) Rows (avg) Rows (max) Row Source Operation
---------- ---------- ---------- ---------------------------------------------------
1 1 1 FOR UPDATE (cr=2 pr=2 pw=0 time=158 us starts=1)
2 2 2 BUFFER SORT (cr=2 pr=2 pw=0 time=109 us starts=2)
1 1 1 TABLE ACCESS FULL IM_IME$ (cr=2 pr=2 pw=0 time=100 us starts=1 cost=2 size=23 card=1)
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
db file sequential read 2 0.00 0.00
********************************************************************************
SQL ID: cw1mnps0mfazc Plan Hash: 1224215794
select /*+ rule */ con#,obj#,rcon#,enabled,nvl(defer,0),spare2,spare3,refact
from
cdef$ where robj#=:1
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 0 0.00 0.00 0 0 0 0
Execute 3 0.00 0.00 0 0 0 0
Fetch 3 0.00 0.00 0 3 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 6 0.00 0.00 0 3 0 0
Misses in library cache during parse: 0
Optimizer mode: RULE
Parsing user id: SYS (recursive depth: 2)
********************************************************************************
SQL ID: gx4mv66pvj3xz Plan Hash: 2570921597
select con#,type#,condlength,intcols,robj#,rcon#,match#,refact,nvl(enabled,0),
rowid,cols,nvl(defer,0),mtime,nvl(spare1,0),spare2,spare3
from
cdef$ where obj#=:1
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 0 0.00 0.00 0 0 0 0
Execute 3 0.00 0.00 0 0 0 0
Fetch 10 0.00 0.00 0 15 0 7
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 13 0.00 0.00 0 15 0 7
Misses in library cache during parse: 0
Optimizer mode: CHOOSE
Parsing user id: SYS (recursive depth: 2)
********************************************************************************
SQL ID: 53saa2zkr6wc3 Plan Hash: 3038981986
select intcol#,nvl(pos#,0),col#,nvl(spare1,0)
from
ccol$ where con#=:1
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 0 0.00 0.00 0 0 0 0
Execute 7 0.00 0.00 0 0 0 0
Fetch 14 0.00 0.00 0 28 0 7
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 21 0.00 0.00 0 28 0 7
Misses in library cache during parse: 0
Optimizer mode: CHOOSE
Parsing user id: SYS (recursive depth: 2)
********************************************************************************
SQL ID: 6h3cwmunz5z8q Plan Hash: 2968095032
select col#, grantee#, privilege#,max(mod(nvl(option$,0),2)),
max(bitand(nvl(option$,0), 8) /8), max(bitand(nvl(option$,0), 16) /16),
max(bitand(nvl(option$,0),64) /64), max(bitand(nvl(option$,0), 128) /128)
from
objauth$ where obj#=:1 and col# is not null group by privilege#, col#,
grantee# order by col#, grantee#
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 0 0.00 0.00 0 0 0 0
Execute 3 0.00 0.00 0 0 0 0
Fetch 3 0.00 0.00 0 6 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 6 0.00 0.00 0 6 0 0
Misses in library cache during parse: 0
Optimizer mode: CHOOSE
Parsing user id: SYS (recursive depth: 2)
********************************************************************************
SQL ID: a4n4ayr88dbhy Plan Hash: 2968095032
select grantee#,privilege#,nvl(col#,0),max(mod(nvl(option$,0),2)),
max(bitand(nvl(option$,0), 8) /8), max(bitand(nvl(option$,0), 16) /16),
max(bitand(nvl(option$,0),64) /64), max(bitand(nvl(option$,0), 128) /128)
from
objauth$ where obj#=:1 group by grantee#,privilege#,nvl(col#,0) order by
grantee#
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 0 0.00 0.00 0 0 0 0
Execute 3 0.00 0.00 0 0 0 0
Fetch 4 0.00 0.00 0 7 0 1
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 7 0.00 0.00 0 7 0 1
Misses in library cache during parse: 0
Optimizer mode: CHOOSE
Parsing user id: SYS (recursive depth: 2)
********************************************************************************
SQL ID: 0dfxfyy5r32qq Plan Hash: 3140476835
update /* QOSD */ /*+ index(eo) */ exp_obj$ eo set exp_cnt = :3
where
objn = :1 and snapshot_id = :2
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 8 0.00 0.00 0 8 16 8
Fetch 0 0.00 0.00 0 0 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 9 0.00 0.00 0 8 16 8
Misses in library cache during parse: 1
Misses in library cache during execute: 1
Optimizer mode: CHOOSE
Parsing user id: SYS (recursive depth: 1)
Number of plan statistics captured: 1
Rows (1st) Rows (avg) Rows (max) Row Source Operation
---------- ---------- ---------- ---------------------------------------------------
0 0 0 UPDATE EXP_OBJ$ (cr=1 pr=0 pw=0 time=35 us starts=1)
1 1 1 INDEX UNIQUE SCAN I_EXP_OBJ$ (cr=1 pr=0 pw=0 time=5 us starts=1 cost=0 size=11 card=1)(object id 737)
********************************************************************************
SQL ID: 2vb9hsvpw0gtg Plan Hash: 4202266662
update /* QOSD */ /*+ index(es) */ exp_stat$ es set dynamic_cost = :3,
eval_count = :4, ctime = :6, last_modified = :7
where
exp_id = :1 and objn = :2 and snapshot_id = :5
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 8 0.00 0.00 0 16 8 8
Fetch 0 0.00 0.00 0 0 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 9 0.00 0.00 0 16 8 8
Misses in library cache during parse: 1
Misses in library cache during execute: 1
Optimizer mode: CHOOSE
Parsing user id: SYS (recursive depth: 1)
Number of plan statistics captured: 1
Rows (1st) Rows (avg) Rows (max) Row Source Operation
---------- ---------- ---------- ---------------------------------------------------
0 0 0 UPDATE EXP_STAT$ (cr=2 pr=0 pw=0 time=85 us starts=1)
1 1 1 TABLE ACCESS BY INDEX ROWID BATCHED EXP_STAT$ (cr=2 pr=0 pw=0 time=38 us starts=1 cost=2 size=40 card=1)
8 8 8 INDEX RANGE SCAN I_EXP_STAT$ (cr=1 pr=0 pw=0 time=17 us starts=1 cost=1 size=0 card=6)(object id 739)
********************************************************************************
SQL ID: fr31mzzknv0wh Plan Hash: 4217156775
select max(RETENTION)
from
SYS_FBA_FA
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 2 0.00 0.00 0 0 0 0
Execute 2 0.00 0.00 0 0 0 0
Fetch 2 0.00 0.00 1 2 0 2
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 6 0.00 0.00 1 2 0 2
Misses in library cache during parse: 1
Optimizer mode: CHOOSE
Parsing user id: SYS (recursive depth: 1)
Number of plan statistics captured: 2
Rows (1st) Rows (avg) Rows (max) Row Source Operation
---------- ---------- ---------- ---------------------------------------------------
1 1 1 SORT AGGREGATE (cr=1 pr=0 pw=0 time=50 us starts=1)
0 0 0 TABLE ACCESS FULL SYS_FBA_FA (cr=1 pr=0 pw=0 time=44 us starts=1 cost=2 size=13 card=1)
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
db file sequential read 1 0.00 0.00
********************************************************************************
SQL ID: 7hj57uz99sm9k Plan Hash: 4141019660
select ts#,file#,block#,cols,nvl(size$,-1),pctfree$,pctused$,initrans,
maxtrans,hashkeys,func,extind,avgchn,nvl(degree,1),nvl(instances,1),
nvl(flags,0),nvl(spare1,0), nvl(spare2,0)
from
clu$ where obj#=:1
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 3 0 1
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 3 0.00 0.00 0 3 0 1
Misses in library cache during parse: 1
Misses in library cache during execute: 1
Optimizer mode: CHOOSE
Parsing user id: SYS (recursive depth: 2)
Number of plan statistics captured: 1
Rows (1st) Rows (avg) Rows (max) Row Source Operation
---------- ---------- ---------- ---------------------------------------------------
1 1 1 TABLE ACCESS CLUSTER CLU$ (cr=3 pr=0 pw=0 time=10 us starts=1 cost=2 size=45 card=1)
1 1 1 INDEX UNIQUE SCAN I_OBJ# (cr=2 pr=0 pw=0 time=7 us starts=1 cost=1 size=0 card=1)(object id 3)
********************************************************************************
SQL ID: 679x4qggryd2v Plan Hash: 220652418
select smontabv.cnt, smontabv.time_mp, smontab.scn, smontab.num_mappings,
smontab.tim_scn_map
from
smon_scn_time smontab, (select max(scn) scnmax,
count(*)+sum(NVL2(TIM_SCN_MAP,NUM_MAPPINGS,0)) cnt,
max(time_mp) time_mp from smon_scn_time) smontabv where
smontab.scn = smontabv.scnmax
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.04 373 376 0 1
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 3 0.01 0.04 373 376 0 1
Misses in library cache during parse: 1
Optimizer mode: CHOOSE
Parsing user id: SYS (recursive depth: 1)
Number of plan statistics captured: 1
Rows (1st) Rows (avg) Rows (max) Row Source Operation
---------- ---------- ---------- ---------------------------------------------------
1 1 1 NESTED LOOPS (cr=376 pr=373 pw=0 time=43219 us starts=1 cost=103 size=1157 card=1)
1 1 1 VIEW (cr=373 pr=371 pw=0 time=43002 us starts=1 cost=102 size=39 card=1)
1 1 1 SORT AGGREGATE (cr=373 pr=371 pw=0 time=42999 us starts=1)
1845 1845 1845 TABLE ACCESS FULL SMON_SCN_TIME (cr=373 pr=371 pw=0 time=1865 us starts=1 cost=102 size=2084625 card=1853)
1 1 1 TABLE ACCESS BY INDEX ROWID SMON_SCN_TIME (cr=3 pr=2 pw=0 time=211 us starts=1 cost=1 size=1118 card=1)
1 1 1 INDEX UNIQUE SCAN SMON_SCN_TIME_SCN_IDX (cr=2 pr=2 pw=0 time=201 us starts=1 cost=0 size=0 card=1)(object id 439)
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
db file sequential read 3 0.00 0.00
db file scattered read 18 0.02 0.03
********************************************************************************
SQL ID: dma0vxbwh325p Plan Hash: 1798824286
update smon_scn_time set time_mp=:1, time_dp=:2, scn=:3, scn_wrp=:4, scn_bas=
:5, num_mappings=:6, tim_scn_map=:7
where
scn = (select min(scn) from smon_scn_time)
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 8 8 10 1
Fetch 0 0.00 0.00 0 0 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 2 0.00 0.00 8 8 10 1
Misses in library cache during parse: 1
Misses in library cache during execute: 1
Optimizer mode: CHOOSE
Parsing user id: SYS (recursive depth: 1)
Number of plan statistics captured: 1
Rows (1st) Rows (avg) Rows (max) Row Source Operation
---------- ---------- ---------- ---------------------------------------------------
0 0 0 UPDATE SMON_SCN_TIME (cr=8 pr=8 pw=0 time=495 us starts=1)
1 1 1 INDEX UNIQUE SCAN SMON_SCN_TIME_SCN_IDX (cr=8 pr=5 pw=0 time=156 us starts=1 cost=1 size=1141 card=1)(object id 439)
1 1 1 SORT AGGREGATE (cr=6 pr=5 pw=0 time=151 us starts=1)
1 1 1 INDEX FULL SCAN (MIN/MAX) SMON_SCN_TIME_SCN_IDX (cr=6 pr=5 pw=0 time=145 us starts=1 cost=2 size=6 card=1)(object id 439)
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
db file sequential read 8 0.00 0.00
********************************************************************************
SQL ID: gm9t6ycmb1yu6 Plan Hash: 499127063
delete from smon_scn_time
where
scn = (select min(scn) from smon_scn_time)
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 8 7 1
Fetch 0 0.00 0.00 0 0 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 2 0.00 0.00 0 8 7 1
Misses in library cache during parse: 1
Optimizer mode: CHOOSE
Parsing user id: SYS (recursive depth: 1)
Number of plan statistics captured: 1
Rows (1st) Rows (avg) Rows (max) Row Source Operation
---------- ---------- ---------- ---------------------------------------------------
0 0 0 DELETE SMON_SCN_TIME (cr=8 pr=0 pw=0 time=94 us starts=1)
1 1 1 INDEX UNIQUE SCAN SMON_SCN_TIME_SCN_IDX (cr=8 pr=0 pw=0 time=23 us starts=1 cost=1 size=13 card=1)(object id 439)
1 1 1 SORT AGGREGATE (cr=6 pr=0 pw=0 time=16 us starts=1)
1 1 1 INDEX FULL SCAN (MIN/MAX) SMON_SCN_TIME_SCN_IDX (cr=6 pr=0 pw=0 time=10 us starts=1 cost=2 size=6 card=1)(object id 439)
********************************************************************************
SQL ID: 7f2p5r411nrcz Plan Hash: 3023127171
(SELECT sequence#, src_sid, src_serial#,
src_state, src_userid, src_schemaid FROM
tsm_src$ WHERE
src_inst_name = nvl(:1, src_inst_name) AND
src_inst_id = nvl(:2, src_inst_id) AND
src_start_time < :3 AND
src_state NOT IN (6, 7)) UNION ALL
(SELECT sequence#,
dst_sid, dst_serial#, dst_state,
dst_userid, dst_schemaid FROM tsm_dst$
WHERE dst_inst_name =
nvl(:1, dst_inst_name) AND dst_inst_id =
nvl(:2, dst_inst_id) AND dst_start_time < :3
AND dst_state NOT IN (6, 7))
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 2 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 3 0.00 0.00 0 2 0 0
Misses in library cache during parse: 1
Optimizer mode: CHOOSE
Parsing user id: SYS (recursive depth: 1)
Number of plan statistics captured: 1
Rows (1st) Rows (avg) Rows (max) Row Source Operation
---------- ---------- ---------- ---------------------------------------------------
0 0 0 UNION-ALL (cr=2 pr=0 pw=0 time=64 us starts=1)
0 0 0 TABLE ACCESS FULL TSM_SRC$ (cr=1 pr=0 pw=0 time=43 us starts=1 cost=2 size=4097 card=1)
0 0 0 TABLE ACCESS FULL TSM_DST$ (cr=1 pr=0 pw=0 time=7 us starts=1 cost=2 size=4097 card=1)
********************************************************************************
SQL ID: 4m7m0t6fjcs5x Plan Hash: 1935744642
update seq$ set increment$=:2,minvalue=:3,maxvalue=:4,cycle#=:5,order$=:6,
cache=:7,highwater=:8,audit$=:9,flags=:10
where
obj#=:1
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 3 0.00 0.00 0 3 6 3
Fetch 0 0.00 0.00 0 0 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 4 0.00 0.00 0 3 6 3
Misses in library cache during parse: 1
Misses in library cache during execute: 1
Optimizer mode: CHOOSE
Parsing user id: SYS (recursive depth: 1)
Number of plan statistics captured: 1
Rows (1st) Rows (avg) Rows (max) Row Source Operation
---------- ---------- ---------- ---------------------------------------------------
0 0 0 UPDATE SEQ$ (cr=1 pr=0 pw=0 time=140 us starts=1)
1 1 1 INDEX UNIQUE SCAN I_SEQ1 (cr=1 pr=0 pw=0 time=8 us starts=1 cost=0 size=70 card=1)(object id 109)
********************************************************************************
SQL ID: 3m6ngb91n9rjb Plan Hash: 0
ALTER DATABASE DISMOUNT
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.01 0 0 0 0
Fetch 0 0.00 0.00 0 0 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 2 0.00 0.01 0 0 0 0
Misses in library cache during parse: 1
Optimizer mode: ALL_ROWS
Parsing user id: SYS
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
rdbms ipc reply 5 0.01 0.01
Disk file operations I/O 2 0.00 0.00
control file sequential read 5 0.00 0.00
control file parallel write 4 0.00 0.00
reliable message 1 0.00 0.00
SQL*Net message to client 1 0.00 0.00
SQL*Net message from client 1 0.00 0.00
********************************************************************************
OVERALL TOTALS FOR ALL NON-RECURSIVE STATEMENTS
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 3 0.00 0.00 0 0 0 0
Execute 3 0.07 2.21 0 0 142 0
Fetch 2 0.00 0.00 0 0 0 1
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 8 0.07 2.22 0 0 142 1
Misses in library cache during parse: 3
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
SQL*Net message to client 6 0.00 0.00
SQL*Net message from client 6 7.30 7.30
CRS call completion 1 0.00 0.00
control file sequential read 26 0.00 0.00
OFS operation completion 1 1.34 1.34
process shutdown 3 0.06 0.16
checkpoint completed 2 0.04 0.05
db file sequential read 8 0.00 0.00
rdbms ipc reply 15 1.12 2.13
class slave wait 9 0.00 0.00
AQ master shutdown 1 0.17 0.17
dispatcher shutdown 1 0.07 0.07
PX server shutdown 1 0.00 0.00
Kupp process shutdown 1 0.00 0.00
connection pool wait 1 0.00 0.00
pmon shutdown 1 0.01 0.01
instance state change 2 0.00 0.00
wait active processes 1 0.00 0.00
Disk file operations I/O 10 0.01 0.01
PGA memory operation 1 0.00 0.00
control file parallel write 4 0.00 0.00
reliable message 1 0.00 0.00
OVERALL TOTALS FOR ALL RECURSIVE STATEMENTS
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 284 0.02 0.01 0 0 0 0
Execute 379 0.08 0.08 11 561 416 253
Fetch 182 0.01 0.04 380 877 0 173
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 845 0.11 0.15 391 1438 416 426
Misses in library cache during parse: 16
Misses in library cache during execute: 10
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
db file sequential read 21 0.00 0.00
db file scattered read 18 0.02 0.03
3 user SQL statements in session.
140 internal SQL statements in session.
143 SQL statements in session.
********************************************************************************
Trace file: ORA19DBFS_ora_45388.trc
Trace file compatibility: 12.2.0.0
Sort options: default
1 session in tracefile.
3 user SQL statements in trace file.
140 internal SQL statements in trace file.
143 SQL statements in trace file.
34 unique SQL statements in trace file.
14490 lines in trace file.
5 elapsed seconds in trace file.
|
trace에서도 dismount 구문까지만 존재함
shutdown immediate 명령 수행
|
1
2
3
4
5
|
SQL> shutdown immediate
ORA-01507: database not mounted
ORACLE instance shut down.
|
alert log 확인
|
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
|
$ tail -300f /app/oracle/diag/rdbms/ora19dbfs/ORA19DBFS/trace/alert_ORA19DBFS.log
2025-10-08T13:21:33.476936+09:00
Shutting down ORACLE instance (immediate) (OS id: 48170)
2025-10-08T13:21:33.489715+09:00
Shutdown is initiated by sqlplus@ora19fs (TNS V1-V3).
2025-10-08T13:21:35.454473+09:00
Shutting down instance: further logons disabled
Stopping background process MMNL
Stopping background process MMON
License high water mark = 3
2025-10-08T13:21:35.560473+09:00
Dispatchers and shared servers shutdown
Data Pump shutdown on PDB: 0 in progress
ALTER DATABASE CLOSE NORMAL
ORA-1507 signalled during: ALTER DATABASE CLOSE NORMAL...
.... (PID:48170): Archival disabled due to shutdown: 1089
Shutting down archive processes
Archiving is disabled
2025-10-08T13:21:36.585990+09:00
JIT: pid 48170 requesting stop
.... (PID:48170): Archival disabled due to shutdown: 1089
2025-10-08T13:21:36.587223+09:00
Stopping background process VKTM
Shutting down archive processes
Archiving is disabled
2025-10-08T13:21:36.658023+09:00
JIT: pid 48170 requesting stop
2025-10-08T13:21:44.293876+09:00
Instance shutdown complete (OS id: 48170)
|
shutdown immediate 이기때문에 close normal 명령어도 수행됨함, 이때 이미 dismount(nomount) 상태이기 때문에 해당 명령에서 ORA-1507 에러가 발생함
이후 db가 성공적으로 종료됨
결론 : shutdown을 수동으로 단계별로 수행하는건 공식적으로 지원하지 않음
하지만 실제 수동으로 수행하는 명령은 각각 close normal, dismount 등 존재하긴함
db를 안전하게 종료하고 싶을때는 shutdown immediate 명령을 사용해야함
참조 :
https://docs.oracle.com/en/database/oracle/oracle-database/19/sqpug/SHUTDOWN.html
'ORACLE > Admin' 카테고리의 다른 글
| 오라클 26ai 공개 (0) | 2025.10.14 |
|---|---|
| 오라클 19c 업그레이드 시 job의 nls_env 유의사항 (0) | 2025.10.12 |
| 오라클 19c autotask, 자동통계수집 잡 확인 및 비활성화 (0) | 2025.09.19 |
| 오라클 19c 통계정보 lock 방법 (0) | 2025.08.03 |
| 오라클 19c 대량 파티션 테이블에 로컬 인덱스 생성시 ORA-04031 발생 및 조치 시나리오 (0) | 2025.08.02 |
