Vous êtes sur la page 1sur 34

[oracle@em12cexa02mlz em13c]$ history

1 vi .bash_profile
2 exit
3 cd /u0
4 cd /u01
5 cd SW
6 unzip -oq LINUX.X64_180000_db_home.zip
7 yum install xclock
8 exit
9 xclock
10 rmdir /u02
11 exit
12 cd /u01/SW/
13 ls -ltr
14 ./runInstaller
15 netca
16 cd ~
17 . .bash_profile
18 vncserver
19 exit
20 netca
21 vi .bash_profile
22 cd $ORACLE_HOME/bin
23 cd /u01/app/oracle/product/18.0.0/dbhome_1/
24 ls
25 cat /etc/oratab
26 cd /u01/app/oraInventory/
27 ls
28 cd logs/
29 ls -ltr
30 cat oraInstall2019-08-28_04-41-41AM.out
31 cat oraInstall2019-08-28_04-41-41AM.err
32 cat InstallActions2019-08-28_04-41-41AM/oraInstall2019-08-28_04-41-41AM.out
33 cd /u01/SW/
34 ./runInstaller
35 mkdir -p /u01/app/oracle/product/18.0.0/dbhome_1
36 ./runInstaller -ignorePrereq -waitforcompletion -silent
-responseFile /u01/software/database/response/db_install.rsp
oracle.install.option=INSTALL_DB_SWONLY
ORACLE_HOSTNAME=${HOSTNAME}
UNIX_GROUP_NAME=oinstall
INVENTORY_LOCATION=/u01/app/oraInventory
SELECTED_LANGUAGES=en,en_GB
ORACLE_HOME=${ORACLE_HOME}
ORACLE_BASE=${ORACLE_BASE}
oracle.install.db.InstallEdition=EE
oracle.install.db.OSDBA_GROUP=dba
oracle.install.db.OSBACKUPDBA_GROUP=dba
oracle.install.db.OSDGDBA_GROUP=dba
oracle.install.db.OSKMDBA_GROUP=dba
oracle.install.db.OSRACDBA_GROUP=dba
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false \
37 ./runInstaller -ignorePrereq -waitforcompletion -silent
-responseFile /u01/software/database/response/db_install.rsp
oracle.install.option=INSTALL_DB_SWONLY
ORACLE_HOSTNAME=${HOSTNAME}
UNIX_GROUP_NAME=oinstall
INVENTORY_LOCATION=/u01/app/oraInventory
SELECTED_LANGUAGES=en,en_GB
ORACLE_HOME=${ORACLE_HOME}
ORACLE_BASE=${ORACLE_BASE}
oracle.install.db.InstallEdition=EE
oracle.install.db.OSDBA_GROUP=dba
oracle.install.db.OSBACKUPDBA_GROUP=dba
oracle.install.db.OSDGDBA_GROUP=dba
oracle.install.db.OSKMDBA_GROUP=dba
oracle.install.db.OSRACDBA_GROUP=dba
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
38 cd /u01/sw/
39 cd DB/
40 ./runInstaller -ignorePrereq -waitforcompletion -silent
-responseFile /u01/software/database/response/db_install.rsp
oracle.install.option=INSTALL_DB_SWONLY
ORACLE_HOSTNAME=${HOSTNAME}
UNIX_GROUP_NAME=oinstall
INVENTORY_LOCATION=/u01/app/oraInventory
SELECTED_LANGUAGES=en,en_GB
ORACLE_HOME=${ORACLE_HOME}
ORACLE_BASE=${ORACLE_BASE}
oracle.install.db.InstallEdition=EE
oracle.install.db.OSDBA_GROUP=dba
oracle.install.db.OSBACKUPDBA_GROUP=dba
oracle.install.db.OSDGDBA_GROUP=dba
oracle.install.db.OSKMDBA_GROUP=dba
oracle.install.db.OSRACDBA_GROUP=dba
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
41 ./runInstaller -ignorePrereq -waitforcompletion -silent -responseFile
/u01/sw/DB/database/response/db_install.rsp oracle.install.option=INSTALL_DB_SWONLY
ORACLE_HOSTNAME=${HOSTNAME} UNIX_GROUP_NAME=oinstall
INVENTORY_LOCATION=/u01/app/oraInventory SELECTED_LANGUAGES=en,en_GB
ORACLE_HOME=$ORACLE_HOME ORACLE_BASE=$ORACLE_BASE
oracle.install.db.InstallEdition=EE oracle.install.db.OSDBA_GROUP=dba
oracle.install.db.OSBACKUPDBA_GROUP=dba oracle.install.db.OSDGDBA_GROUP=dba
oracle.install.db.OSKMDBA_GROUP=dba oracle.install.db.OSRACDBA_GROUP=dba
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
42 echo $ORACLE_HOME
43 ./runInstaller -ignorePrereq -waitforcompletion -silent -responseFile
/u01/sw/DB/database/response/db_install.rsp oracle.install.option=INSTALL_DB_SWONLY
ORACLE_HOSTNAME=${HOSTNAME} UNIX_GROUP_NAME=oinstall
INVENTORY_LOCATION=/u01/app/oraInventory SELECTED_LANGUAGES=en,en_GB
ORACLE_HOME=/u01/app/oracle/product/18.0.0/dbhome_1 ORACLE_BASE=/u01/app/
oracle.install.db.InstallEdition=EE oracle.install.db.OSDBA_GROUP=dba
oracle.install.db.OSBACKUPDBA_GROUP=dba oracle.install.db.OSDGDBA_GROUP=dba
oracle.install.db.OSKMDBA_GROUP=dba oracle.install.db.OSRACDBA_GROUP=dba
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
44 ls -ltr
45 cd ../
46 ls -ltr
47 cd cd $ORACLE_HOME
48 cd $ORACLE_HOME
49 unzip -oq /u01/sw/DB/LINUX.X64_180000_db_home.zip
50 exit
51 cd /u01/sw/
52 unzip 18.1.0.0.0_Database_Template_for_EM13_3_0_0_0_Linux_x64.zip
53 cd /u01/app/oracle/
54 ls
55 pwd
56 cd ~
57 ls -ltr
58 cat dbca.rsp
59 vi dbca.rsp
60 dbca -silent -createDatabase -responseFile dbca.rsp
61 vi dbca.rsp
62 vi
/u01/sw/18_1_0_0_0_Database_Template_for_EM13_3_0_0_0_Medium_deployment.dbc
63 dbca -silent -createDatabase -responseFile dbca.rsp
64 cat /u01/app/oracle/cfgtoollogs/dbca/emrepo/emrepo.log
65 vi
/u01/sw/18_1_0_0_0_Database_Template_for_EM13_3_0_0_0_Small_deployment.dbc
66 vi .bash_profile
67 cd /u01/sw/
68 chmod u+x em13300_linux64.bin
69 cd $ORACLE_HOME/assistants/dbca/templates
70 unzip /u01/sw/18.1.0.0.0_Database_Template_for_EM13_3_0_0_0_Linux_x64.zip
71 cd ~
72 vi .bash_profile
73 tail -10f /u01/app/oracle/cfgtoollogs/dbca/orcl/trace.log_2019-08-28_07-40-
56AM
74 tail -10f /u01/app/oracle/cfgtoollogs/dbca/orcl/trace.log_2019-08-28_07-40-
56AM
75 tail -10f /u01/app/oracle/diag/rdbms/emdb/emdb/trace/alert_emdb.log
76 . oraenv
77 export ORACLE_SID=emdb
78 sqlplus / as sysdba
79 ssh 172.24.171.84
80 ssh 172.24.171.84 -l root
81 hostname
82 alias
83 sqlplus / as sysdba
84 cat .bash_profile
85 $ORACLE_OMS_AGENT/agent_13.3.0.0.0/bin/emctl status agent
86 cd $ORACLE_OMS_AGENT/agent_13.3.0.0.0/bin
87 pwd
88 cd !
89 emstart
90 $ORACLE_OMS_AGENT/agent_13.3.0.0.0/bin/emctl status agent
91 emctl config oms -disable_bip
92 emcli sync
93 emcli get targets
94 which emcli
95 emcli sync
96 emcli login
97 emcli login username=sysman password=Welcome1
98 emcli login -username=sysman -password=Welcome1
99 emcli get targets
100 emcli sync
101 emcli get targets
102 emcli get_targets
103 emcli
104 emcli get targets
105 emcli ge_ targets
106 emcli ge_targets
107 emcli get_targets
108 emctl stop oms
109 emctl stop oms -all
110 env
111 alias
112 $ORACLE_OMS_AGENT/agent_13.3.0.0.0/bin/emctl stop agent
113 emstart
114 $ORACLE_OMS_AGENT/agent_13.3.0.0.0/bin/emctl start agent
115 dbca
116 sqlplus / as ssydba
117 sqlplus / as sysdba
118 . oraenv
119 export ORACLE_SID=emdb
120 sqlplus / as sysdba
121 cat .bash_profile
122 vi .bash_profile
123 su - oracle
124 cd /u01/SW/bin/
125 ./oui
126 ls
127 cd ../
128 cd oui/
129 /u01/SW/deinstall/deinstall
130 cd /u01/SW
131 pwd
132 cd ../
133 cd /u01/app/
134 ls
135 cd /u01/sw/DB/
136 unzip -0q LINUX.X64_180000_db_home.zip
137 unzip -oq LINUX.X64_180000_db_home.zip
138 ./runInstaller
139 export ORACLE_HOME=$ORACLE_BASE/product/18.0.0/dbhome_1
140 which $ORACLE_HOME
141 ./runInstaller
142 cd $ORACLE_HOME
143 ./runInstaller
144 netca
145 dbca
146 cd ~
147 dbca
148 ps -ef | grep pmon
149 cd /u01/sw/
150 ./em13300_linux64.bin
151 cd /u01/SW/bin/
152 ./oui
153 ls
154 cd ../
155 cd oui/
156 /u01/SW/deinstall/deinstall
157 cd /u01/SW
158 pwd
159 cd ../
160 cd /u01/app/
161 ls
162 cd /u01/sw/DB/
163 unzip -0q LINUX.X64_180000_db_home.zip
164 unzip -oq LINUX.X64_180000_db_home.zip
165 ./runInstaller
166 export ORACLE_HOME=$ORACLE_BASE/product/18.0.0/dbhome_1
167 which $ORACLE_HOME
168 ./runInstaller
169 cd $ORACLE_HOME
170 ./runInstaller
171 netca
172 dbca
173 cd ~
174 dbca
175 ps -ef | grep pmon
176 cd /u01/sw/
177 ./em13300_linux64.bin
178 su -
179 alais
180 alias
181 emstop
182 emstart
183 emstop
184 sqlplus / as sysdba
185 cd /u01/SW/bin/
186 ./oui
187 ls
188 cd ../
189 cd oui/
190 /u01/SW/deinstall/deinstall
191 cd /u01/SW
192 pwd
193 cd ../
194 cd /u01/app/
195 ls
196 cd /u01/sw/DB/
197 unzip -0q LINUX.X64_180000_db_home.zip
198 unzip -oq LINUX.X64_180000_db_home.zip
199 ./runInstaller
200 export ORACLE_HOME=$ORACLE_BASE/product/18.0.0/dbhome_1
201 which $ORACLE_HOME
202 ./runInstaller
203 cd $ORACLE_HOME
204 ./runInstaller
205 netca
206 dbca
207 cd ~
208 dbca
209 ps -ef | grep pmon
210 cd /u01/sw/
211 ./em13300_linux64.bin
212 /u01/app/oracle/em13c/omspatcher version
213 /u01/app/oracle/em13c/OMSPatcher/omspatcher version
214 cd /u01/sw/
215 ls
216 ls -ltr
217 su -
218 pwd
219 cd -
220 cd /u01/app/oracle/em13c/
221 mv OMSPatcher OMSPatcher_bck
222 unzip /u01/sw/p19999993_133000_Generic.zip
223 /u01/app/oracle/em13c/OMSPatcher/omspatcher version
224 cd /u01/sw/
225 ls -ltr
226 export ORACLE_HOME=$ORACLE_OMS
227 cd $ORACLE_HOME/oracle_common
228 ls -ltr
229 pwd
230 cd ../
231 cp em13c em13c_bck
232 cp -r em13c em13c_bck
233 pwd
234 cd ../
235 cd /u01/app/oracle/em13c
236 export ORACLE_HOME=/u01/app/oracle/em13c
237 cd ../
238 mkdir Opatch
239 rm Opatch/
240 rm -r Opatch/
241 mkdir OPatch
242 wlskeys/createkeys.sh –oh $ORACLE_HOME -location /u01/app/oracle/OPatch/
243 cd /u01/app/oracle/em13c/OMSPatcher/
244 wlskeys/createkeys.sh –oh $ORACLE_HOME -location /u01/app/oracle/OPatch/
245 $ORACLE_HOME/bin/emctl status oms -details
246 export omspatcher=$OMS_HOME/OMSPATCHER/omspatcher
247 cd /u01/sw/
248 ls
249 ls -ltr
250 cp p29835547_133000_Generic.zip p6880880_139000_Generic.zip
/u01/app/oracle/OPatch/
251 cd /u01/app/oracle/em13c/mkdir OPatch_src
252 cd /u01/app/oracle/em13c/
253 mkdir OPatch_src
254 cd OPatch_src/
255 unzip /u01/sw/p6880880_139000_Generic.zip
256 ls -ltr
257 cd 6880880/
258 ls -ltr
259 $ORACLE_HOME/bin/emctl stop oms
260 $ORACLE_HOME/oracle_common/jdk/bin/java -jar
/u01/app/oracle/emc13c/OPatch_src/6880880/opatch_generic.jar -silent
oracle_home=$ORACLE_HOME
261 $ORACLE_HOME/oracle_common/jdk/bin/java -jar
/u01/app/oracle/em13c/OPatch_src/6880880/opatch_generic.jar -silent
oracle_home=$ORACLE_HOME
262 $ORACLE_HOME/bin/emctl start oms
263 omspatcher apply /u01/app/oracle/OPatch/29835547 -analyze
264 $ORACLE_HOME/bin/emctl stop oms
265 cd /u01/app/oracle/OPatch/29835547
266 omspatcher apply
267 $ORACLE_HOME/bin/emctl start oms
268 opatch lsinventory -jre $ORACLE_HOME/jdk/jre
269 /u01/app/oracle/em13c/OPatch/opatch lsinventory -jre $ORACLE_HOME/jdk/jre
270 /u01/app/oracle/em13c/OPatch/opatch version
271 free
272 emctl get property -name OMS_HEAP_MAX
273 emctl set property -name OMS_HEAP_MAX -value 16384M
274 emctl stop oms
275 emctl start oms
276 /u01/app/oracle/em13c/OPatch/opatch lsinventory
277 cd /u01/sw/
278 ls -ltr
279 cd scripts/
280 ls -ltr
281 ls
282 ls -ltr
283 cd ../
284 ls -ltr
285 cd /u01/app/oracle/swlib/
286 find - name p29633448_121300_Generic.zip
287 find . - name p29633448_121300_Generic.zip
288 cd../
289 vi wget.sh
290 chmod 777 wget.sh
291 ./wget.sh
292 vi wget.sh
293 ./wget.sh
294 ls -ltr
295 cp p29633448_121300_Generic.zip /u01/app/oracle/OPatch/
296 cd /u01/app/oracle/OPatch/
297 which opatch
298 echo $ORACLE_HOME
299 $ORACLE_HOME/bin/emctl stop oms -all
300 cd -
301 ls -ltr
302 cat wgetlog-09-02-19-18:13.log
303 du -sh *
304 lsd -ltr
305 ls -ltr
306 ./wget.sh
307 ls -lar
308 ls -ltrh
309 cd -
310 ls -ltr
311 rm p29633448_121300_Generic.zip
312 ls -ltr
313 unzip p29633448_121300_Generic.zip
314 cd 29633448/
315 $ORACLE_HOME/OPatch/opatch apply
316 $ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail
317 cd ../
318 $ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail
-phBaseDir 29633448
319 $ORACLE_HOME/OPatch/opatch rollback -id 25832897
320 $ORACLE_HOME/OPatch/opatch rollback -id 29633448
321 cd 29633448/
322 $ORACLE_HOME/OPatch/opatch apply
323 $ORACLE_HOME/OPatch/opatch rollback -id 29633448
324 $ORACLE_HOME/bin/emctl stop oms -all
325 $ORACLE_HOME/OPatch/opatch apply
326 $ORACLE_HOME/OPatch/opatch rollback -id 29633448
327 export PATH=$PATH:$ORACLE_HOME
328 which $JAVA_HOME
329 echo $JAVA_HOME
330 export JAVA_HOME=$ORACLE_HOME/oracle_common/jdk
331 $ORACLE_HOME/OPatch/opatch apply
332 cat
/u01/app/oracle/em13c/inventory/Components/oracle.wls.libraries/12.1.3.0.0/compDef.
xml
333 $ORACLE_HOME/OPatch/opatch rollback -id 29633448
334 opatch lsinv -inactive
335 $ORACLE_HOME/OPatch/opatch lsinv -inactive
336 $ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail
337 $ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail
-phBaseDir 29633448
338 cd ../
339 $ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail
-phBaseDir 29633448
340 cd 29633448
341 cd $ORACLE_HOME/
342 ls -ltr
343 ps -ef | grep jave
344 ps -ef | grep java
345 ps -ef | grep java
346 ps -ef | grep oms
347 $ORACLE_HOME/OPatch/opatch lsinventory -jre $ORACLE_HOME/jdk/jre
348 pwd
349 $ORACLE_HOME/OPatch/opatch lsinventory -jre \
$ORACLE_HOME/oracle_common/jdk/jre
350 cd $ORACLE_HOME/oracle_common/jdk/
351 ls -ltr
352 $ORACLE_HOME/OPatch/opatch lsinventory -jre
$ORACLE_HOME/oracle_common/jdk/jre
353 export JAVA_HOME=$ORACLE_HOME/oracle_common/jdk
354 export PATH=$PATH:$ORACLE_HOME/OPatch
355 opatch version
356 opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir 29633448
357 cd /u01/app/oracle/OPatch/
358 cd 29633448/
359 cd ../
360 opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir 29633448
361 cd 29633448/
362 opatch apply
363 $ORACLE_HOME/OPatch/opatch rollback -id 29633448
364 pwd
365 cd /u01/app/oracle/em13c/
366 mv OPatch OPatch_new
367 ls -ltr
368 mv OPatch_new OPatch
369 opatch lspatches
370 $ORACLE_HOME/oracle_common/jdk/bin/java -version
371 emstart
372 alias
373 cd ~
374 . .bash_profile
375 cd /u01/app/oracle/OPatch/
376 unzip /home/oracle/Downloads/p27419391_121300_Generic.zip
377 unzip /home/oracle/Downloads/p29204657_121300_Generic.zip
378 exit
379 cd /u01/app/oracle/OPatch/
380 unzip p29835547_133000_Generic.zip
381 cd /u01/app/oracle/OPatch/
382 ls -ltr
383 cd /u01/sw/
384 ls -ltr
385 su -
386 cp p29633448_121300_Generic.zip /u01/app/oracle/OPatch/
387 df -h
388 cd /home/Downloads/
389 ls -ltr
390 ls
391 cat /u01/app/oracle/em13c/cfgtoollogs/opatch/opatch2019-09-02_18-37-
47PM_1.log
392 cd
/u01/app/oracle/em13c/inventory/Components/oracle.wls.libraries/12.1.3.0.0/patches/
393 ls -ltr
394 sqlplus / as sysdba
395 emstop
396 cd /u01/sw/
397 ls -ltr
398 cd /u01/app/oracle/product/18.0.0/dbhome_1/
399 mv OPatch OPatch_bck
400 unzip /u01/p6880880_180000_LINUX.zip
401 unzip /u01/sw/p6880880_180000_LINUX.zip
402 echo $ORACLE_HOME
403 cd /u01/sw/
404 ls -ltr
405 cp p29757256_180000_Linux-x86-64.zip /u01/app/oracle/OPatch/
406 cd /u01/app/oracle/OPatch/
407 ls -ltr
408 unzip p29757256_180000_Linux-x86-64.zip
409 ls -ltr
410 pwd
411 cd 29757256/
412 /u01/app/oracle/product/18.0.0/dbhome_1/OPatch/opatch prereq
CheckConflictAgainstOHWithDetail -ph ./
413 /u01/app/oracle/product/18.0.0/dbhome_1/OPatch/opatch prereq
CheckConflictAgainstOHWithDetail -ph /u01/app/oracle/OPatch/29757256/
414 cd /u01/app/oracle/product/18.0.0/dbhome_1/OPatch
415 ./opatch version
416 export PATH=$PATH:/usr/ccs/bin
417 /u01/app/oracle/product/18.0.0/dbhome_1/OPatch/opatch prereq
CheckConflictAgainstOHWithDetail -ph /u01/app/oracle/OPatch/29757256/
418 ./opatch version
419 cd ../
420 mv OPatch OPatch_wrong
421 unzip /home/oracle/Downloads/p6880880_180000_Linux-x86-64.zip
422 cd OPatch
423 /u01/app/oracle/product/18.0.0/dbhome_1/OPatch/opatch prereq
CheckConflictAgainstOHWithDetail -ph /u01/app/oracle/OPatch/29757256/
424 pwd
425 cd /u01/app/oracle/OPatch/29757256
426 $ORACLE_HOME/OPatch/opatch apply
427 sqlplus / a ssydba
428 sqlplus / a sysdba
429 sqlplus / as sysdba
430 pwd
431 $ORACLE_HOME/OPatch/opatch lspatches
432 tail -100f /u01/app/oracle/em13c/cfgtoollogs/opatch/opatch2019-09-02_19-50-
23PM_1.log
433 sqlplus / as sysdba
434 history
435 pwd
436 cd ../
437 unzip /home/oracle/Downloads/p29774410_180000_Linux-x86-64.zip
438 /u01/app/oracle/product/18.0.0/dbhome_1/OPatch/opatch prereq
CheckConflictAgainstOHWithDetail -ph /u01/app/oracle/OPatch/29774410
439 cd 29774410
440 /u01/app/oracle/product/18.0.0/dbhome_1/OPatch/opatch apply
441 /u01/app/oracle/product/18.0.0/dbhome_1/OPatch/opatch lspatches
442 sqlplus / as sysdba
443 $ORACLE_HOME/OPatch/opatch lspatches
444 $ORACLE_OMS_AGENT/agent_13.3.0.0.0/bin/emctl start agent
445 cd ../
446 unzip /home/oracle/Downloads/p29016089_122130_Generic.zip
447 export ORACLE_HOME=$ORACLE_OMS
448 alias
449 export ORACLE_HOME=$ORACLE_OMS
450 export PATH=$PATH:$ORACLE_HOME/OPatch
451 opatch lspatches
452 opatch prereq CheckConflictAgainstOHWithDetail -ph
/u01/app/oracle/OPatch/29016089/
453 cd 29016089
454 opatch apply
455 cd ../
456 ls -ltr
457 export JAVA_HOME=/u01/app/oracle/em13c/oracle_common/jdk
458 cd 29633448
459 opatch apply
460 opatch lspatchs
461 opatch lspatches
462 emstart
463 cd ../
464 unzip /home/oracle/Downloads/p29663844_121300_Generic.zip
465 cd 29663844/
466 cd ../
467 opatch prereq CheckConflictAgainstOHWithDetail -ph
/u01/app/oracle/OPatch/29663844
468 unzip /home/oracle/Downloads/p29633448_121300_Generic.zip
469 opatch rollback id 29633448
470 opatch rollback -id 29633448
471 opatch lspatchs
472 opatch lspatches
473 cd 29663844/
474 opatch apply
475 pwd
476 cd /home/oracle/Downloads/
477 ls
478 ls -ltr
479 cd -
480 cd ../
481 unzip /home/oracle/Downloads/p25832897_12130180417_Generic.zip
482 opatch prereq CheckConflictAgainstOHWithDetail -ph
/u01/app/oracle/OPatch/25832897
483 cd 25832897
484 opatch apply
485 cd ../
486 opatch prereq CheckConflictAgainstOHWithDetail -ph
/u01/app/oracle/OPatch/29633448
487 cd 29633448
488 opatch apply
489 cd ../
490 cd 25832897/
491 opatch rollback -id 25832897
492 cd ../
493 cd 29633448
494 opatch apply
495 opatch rollback -id 29633448
496 cd ../29016089
497 opatch apply
498 opatch
499 cd ../
500 cd 29633448
501 opatch apply
502 cd ../
503 cd ../29016089
504 cd 29016089
505 opatch apply
506 cd ../
507 cd 29633448
508 opatch apply
509 opatch lspatches
510 ps -ef | grep pmon
511 emstart
512 alias
513 emstat
514 exit
515 emstart
516 emstop
517 emstart
518 emstop
519 ps -ef | grep java
520 /u01/app/oracle/em13c/bin/emctl stop oms -all
521 ps -ef | grep java
522 kill -9 25896
523 ps -ef | grep java
524 kill -9 25558
525 ps -ef | grep java
526 lsnrctl stop
527 sqlplus / as sysdba
528 ps -ef | grep java
529 lsnrctl start
530 sqlplus / as sysdba
531 tail -f -n 50
$ORACLE_BASE/gc_inst/user_projects/domains/GCDomain/servers/EMGC_ADMINSERVER/logs/E
MGC_ADMINSERVER.log
532 tail -f50
$ORACLE_BASE/gc_inst/user_projects/domains/GCDomain/servers/EMGC_ADMINSERVER/logs/E
MGC_ADMINSERVER.log
533 tail -50f
$ORACLE_BASE/gc_inst/user_projects/domains/GCDomain/servers/EMGC_ADMINSERVER/logs/E
MGC_ADMINSERVER.log
534 tail -50f \
$ORACLE_BASE/gc_inst/user_projects/domains/GCDomain/servers/EMGC_ADMINSERVER/logs/G
CDomain.log
535 /u01/app/oracle/em13c/bin/emctl stop oms -all
536 ps -ef | grep java
537 sqlplus / as sysdba
538 lsnrctl status
539 $ORACLE_OMS_AGENT/agent_13.3.0.0.0/bin/emctl start agent
540 /u01/app/oracle/product/18.0.0/dbhome_1/OPatch/opatch lspatches
541 history
542 /u01/app/oracle/em13c/OMSPatcher/omspatcher version
543 cd /u01/sw/
544 ls -ltr
545 su -
546 ls -ltr
547 bash
548 df -kh
549 opatch lspatches
550 ps -ef|grep pmpon
551 ps -ef|grep pmon
552 cd /u01
553 ls
554 cd sw
555 ls
556 du -sh *
557 ps -ef|grep em
558 . oraenv
559 cd $ORACLE_HOME
560 cd OPatch
561 ./opatch lspatches
562 ./opatch lspatches|grep 29774410
563 ps -ef|grep em
564 cd /u01/app/oracle/em13c
565 ls
566 cd OPatch
567 ls
568 ./opatch lspatches
569 pwd
570 cd ../omspatcher
571 cd ../OMSPatcher
572 ls
573 cd ..
574 ls -lrt
575 ps -ef|grep middleware
576 ps -ef|grep emctl
577 history
[oracle@em12cexa02mlz em13c]$

[oracle@em12cexa02mlz em13c]$ /u01/app/oracle/em13c/bin/emctl status oms -details


Oracle Enterprise Manager Cloud Control 13c Release 3
Copyright (c) 1996, 2018 Oracle Corporation. All rights reserved.
Enter Enterprise Manager Root (SYSMAN) Password :
Console Server Host : em12cexa02mlz.esdp.stc.sa
HTTP Console Port : 7788
HTTPS Console Port : 7803
HTTP Upload Port : 4889
HTTPS Upload Port : 4903
EM Instance Home : /u01/app/oracle/gc_inst/em/EMGC_OMS1
OMS Log Directory Location : /u01/app/oracle/gc_inst/em/EMGC_OMS1/sysman/log
OMS is not configured with SLB or virtual hostname
Agent Upload is locked.
OMS Console is locked.
Active CA ID: 1
Console URL: https://em12cexa02mlz.esdp.stc.sa:7803/em
Upload URL: https://em12cexa02mlz.esdp.stc.sa:4903/empbs/upload

WLS Domain Information


Domain Name : GCDomain
Admin Server Host : em12cexa02mlz.esdp.stc.sa
Admin Server HTTPS Port: 7102
Admin Server is RUNNING

Oracle Management Server Information


Managed Server Instance Name: EMGC_OMS1
Oracle Management Server Instance Host: em12cexa02mlz.esdp.stc.sa
WebTier is Up
Oracle Management Server is Up
JVMD Engine is Up

BI Publisher Server Information


BI Publisher Managed Server Name: BIP
BI Publisher Server is Up

BI Publisher HTTP Managed Server Port : 9701


BI Publisher HTTPS Managed Server Port : 9803
BI Publisher HTTP OHS Port : 9788
BI Publisher HTTPS OHS Port : 9851
BI Publisher is locked.
BI Publisher Server named 'BIP' running at URL:
https://em12cexa02mlz.esdp.stc.sa:9851/xmlpserver/servlet/home
BI Publisher Server Logs:
/u01/app/oracle/gc_inst/user_projects/domains/GCDomain/servers/BIP/logs/
BI Publisher Log :
/u01/app/oracle/gc_inst/user_projects/domains/GCDomain/servers/BIP/logs/bipublisher
/bipublisher.log

[oracle@em12cexa02mlz bin]$ export


ORACLE_HOME=/u01/app/oracle/product/18.0.0/dbhome_1
[oracle@em12cexa02mlz bin]$ ./repvfy refresh -tns 'EMDB' -pwd Welcome1
repvfy 19.08.01 - EMDIAG - 12c Repository verification

EMDIAG_HOME does not exist. Aborting.


ORACLE_HOME=/u01/app/oracle/product/18.0.0/dbhome_1
[oracle@em12cexa02mlz bin]$ pwd
/u01/app/oracle/em13c/emdiag/bin
[oracle@em12cexa02mlz bin]$ export EMDIAG_HOME=/u01/app/oracle/em13c/emdiag
[oracle@em12cexa02mlz bin]$ ./repvfy refresh -tns 'EMDB' -pwd Welcome1
**ERR ** Unable to locate unzip utility
[oracle@em12cexa02mlz bin]$ unzip repvfy12c.zip -d $ORACLE_HOME/emdiag^C
[oracle@em12cexa02mlz bin]$ ./repvfy install -tns 'EMDB' -pwd Welcome1

SQL*Plus: Release 18.0.0.0.0 - Production on Sun Sep 8 12:42:00 2019


Version 18.7.0.0.0

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

SQL> Connected.

Session altered.

Session altered.

VIEW EM$DIAG_RESULTS_EXT: already gone


VIEW EM$DIAG_LATEST_RESULTS_EXT: already gone
VIEW EM$DIAG_LATEST_SCORE_EXT: already gone
VIEW EM$DIAG_INFO_EXT: already gone
VIEW EM$DIAG_INFO_FULL_EXT: already gone
VIEW EM$DIAG_OBJ_EXT: already gone
VIEW EM$DIAG_OBJ_LOG_EXT: already gone
VIEW EM$DIAG_REP_EXT: already gone
VIEW EM$DIAG_REP_LOG_EXT: already gone
VIEW EM$DIAG_REP_RUN_EXT: already gone
VIEW EM$DIAG_LOGS_EXT: already gone
VIEW EM$DIAG_OBJ_ERROR_EXT: already gone
VIEW EM$DIAG_REP_ERROR_EXT: already gone
VIEW EM$DIAG_ERRORS_EXT: already gone
PACKAGE GC_DIAG_EXT: already gone
PACKAGE GC_DIAG2_EXT: already gone
PACKAGE GC_DIAG3_EXT: already gone
TABLE EM_DIAG_CONFIG_EXT: already gone
TABLE EM_DIAG_OPTIONS_EXT: already gone
TABLE EM_DIAG_OBJ_LOG_EXT: already gone
TABLE EM_DIAG_REP_LOG_EXT: already gone
TABLE EM_DIAG_REP_RESULTS_EXT: already gone
TABLE EM_DIAG_DMP_EXT: already gone
TABLE EM_DIAG_OBJ_EXT: already gone
TABLE EM_DIAG_REP_EXT: already gone
TABLE EM_DIAG_MODULES_EXT: already gone
TABLE EM_DIAG_SCHEMA_OBJECTS_EXT: already gone

PL/SQL procedure successfully completed.

not spooling currently


Disconnected from Oracle Database 18c Enterprise Edition Release 18.0.0.0.0 -
Production
Version 18.7.0.0.0

SQL*Plus: Release 18.0.0.0.0 - Production on Sun Sep 8 12:42:01 2019


Version 18.7.0.0.0

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

SQL> Connected.

Session altered.

Session altered.

PL/SQL procedure successfully completed.

Table created.

Trigger created.

Trigger created.

No errors.

Table created.

Table created.

Table created.
Table altered.

Table created.

Table altered.

Table created.

Table altered.

Table created.

Index created.

Table created.

Index created.

Table created.

Table created.

Index created.

PL/SQL procedure successfully completed.

PL/SQL procedure successfully completed.

Package created.

No errors.

Package created.

No errors.

Package created.

No errors.

Package body created.

No errors.

Package body created.


No errors.

Package body created.

No errors.

PL/SQL procedure successfully completed.

View created.

View created.

View created.

View created.

View created.

View created.

View created.

View created.

View created.

View created.

View created.

View created.

View created.

View created.

View created.

View created.

View created.
View created.

View created.

View created.

PL/SQL procedure successfully completed.

PL/SQL procedure successfully completed.

Table truncated.

1 - ADP

PL/SQL procedure successfully completed.

Commit complete.

1 - AGENTS

PL/SQL procedure successfully completed.

Commit complete.

1 - ASLM

PL/SQL procedure successfully completed.

Commit complete.

1 - AVAILABILITY

PL/SQL procedure successfully completed.

Commit complete.

1 - BACKLOG

PL/SQL procedure successfully completed.

Commit complete.

1 - BLACKOUTS

PL/SQL procedure successfully completed.


Commit complete.

1 - CA

PL/SQL procedure successfully completed.

Commit complete.

1 - CAT

PL/SQL procedure successfully completed.

Commit complete.

1 - CORE

PL/SQL procedure successfully completed.

Commit complete.

1 - CREDENTIALS

PL/SQL procedure successfully completed.

Commit complete.

1 - ECM

PL/SQL procedure successfully completed.

Commit complete.

1 - EMDIAG

PL/SQL procedure successfully completed.

Commit complete.

1 - EVENTS

PL/SQL procedure successfully completed.

Commit complete.

1 - EXADATA

PL/SQL procedure successfully completed.

Commit complete.

1 - JOBS
PL/SQL procedure successfully completed.

Commit complete.

1 - JVMD

PL/SQL procedure successfully completed.

Commit complete.

1 - LOADERS

PL/SQL procedure successfully completed.

Commit complete.

1 - METRICS

PL/SQL procedure successfully completed.

Commit complete.

1 - NOTIFICATIONS

PL/SQL procedure successfully completed.

Commit complete.

1 - OMS

PL/SQL procedure successfully completed.

Commit complete.

1 - PATCHING

PL/SQL procedure successfully completed.

Commit complete.

1 - PLUGINS

PL/SQL procedure successfully completed.

Commit complete.

1 - PROVISIONING

PL/SQL procedure successfully completed.


Commit complete.

1 - RCA

PL/SQL procedure successfully completed.

Commit complete.

1 - REPORTS

PL/SQL procedure successfully completed.

Commit complete.

1 - REPOSITORY

PL/SQL procedure successfully completed.

Commit complete.

1 - ROLES

PL/SQL procedure successfully completed.

Commit complete.

1 - TARGETS

PL/SQL procedure successfully completed.

Commit complete.

1 - TEMPLATES

PL/SQL procedure successfully completed.

Commit complete.

1 - TRACE

PL/SQL procedure successfully completed.

Commit complete.

1 - UPGRADE

PL/SQL procedure successfully completed.

Commit complete.
1 - USERS

PL/SQL procedure successfully completed.

Commit complete.

Table truncated.

2 - AGENT

PL/SQL procedure successfully completed.

Commit complete.

2 - AQ

PL/SQL procedure successfully completed.

2 - BLACKOUT

PL/SQL procedure successfully completed.

Commit complete.

2 - CA

PL/SQL procedure successfully completed.

Commit complete.

2 - EXADATA

PL/SQL procedure successfully completed.

Commit complete.

2 - HOME

PL/SQL procedure successfully completed.

Commit complete.

2 - JOB

PL/SQL procedure successfully completed.

Commit complete.

2 - METRIC

PL/SQL procedure successfully completed.


Commit complete.

2 - PLUGIN

PL/SQL procedure successfully completed.

Commit complete.

2 - REPORT

PL/SQL procedure successfully completed.

Commit complete.

2 - ROLE

PL/SQL procedure successfully completed.

Commit complete.

2 - TABLE

PL/SQL procedure successfully completed.

2 - TARGET

PL/SQL procedure successfully completed.

Commit complete.

2 - USER

PL/SQL procedure successfully completed.

Commit complete.

PL/SQL procedure successfully completed.

PL/SQL procedure successfully completed.

not spooling currently

COMPONENT INFO
-------------------- --------------------
EMDIAG Version 19.08.01
EMDIAG Edition 2
Repository Version 13.3.0.0.0
Database Version 18.0.0.0.0
Test Version 19.09.08
Repository Type CENTRAL
Verify Tests 593
Object Tests 239
Deployment SMALL

9 rows selected.

not spooling currently


Disconnected from Oracle Database 18c Enterprise Edition Release 18.0.0.0.0 -
Production
Version 18.7.0.0.0
[oracle@em12cexa02mlz bin]$

[oracle@em12cexa02mlz bin]$ ./repvfy execute optimize

Please enter the SYSMAN password:

SQL*Plus: Release 18.0.0.0.0 - Production on Sun Sep 8 12:43:53 2019


Version 18.7.0.0.0

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

SQL> Connected.

Session altered.

Session altered.

========== ========== ========== ========== ========== ========== ==========


== Internal task system tuning ==
========== ========== ========== ========== ========== ========== ==========
========== ========== ========== ========== ========== ========== ==========

========== ========== ========== ========== ========== ========== ==========


== Job system tuning ==
========== ========== ========== ========== ========== ========== ==========
========== ========== ========== ========== ========== ========== ==========

========== ========== ========== ========== ========== ========== ==========


== Repository tuning ==
========== ========== ========== ========== ========== ========== ==========
- Setting retention for MGMT_SYSTEM_ERROR_LOG table to 7 days (31->7)
- Disabling PL/SQL tracing for module (JVMD_LOG_MODULE)
- Disabling PL/SQL tracing for module (EM_HEALTH_CALC)
- Disabling PL/SQL tracing for module (COMP_SVC_SYS_CLEANUP)
- Disabling PL/SQL tracing for module (EMD_RAC)
- Disabling PL/SQL tracing for module (CRS_EVENT)
- Disabling PL/SQL tracing for module (DB_SYSTEM)
- Disabling PL/SQL tracing for module (EM.GDS)
- Disabling PL/SQL tracing for module (EMD_DBSERVICE)
- Disabling PL/SQL tracing for module (EM_DBM)
- Disabling PL/SQL tracing for module (SI_COMMON)
- Disabling PL/SQL tracing for module (SI_EVENT)
- Disabling PL/SQL tracing for module (EM_EVENT_RECEIVER)
- Disabling PL/SQL tracing for module (EM_EVENT_MANAGER)
- Disabling PL/SQL tracing for module (USAGE_SUMMARY)
- Disabling PL/SQL tracing for module (BLK_TRACE)
- Disabling PL/SQL tracing for module (EM.DERIV)
- Disabling PL/SQL tracing for module (EM_EVENT_BUS)
- Disabling PL/SQL tracing for module (EM_EVENT_RCA)
- Disabling PL/SQL tracing for module (EM_NOTIFY)
- Disabling PL/SQL tracing for module (EM_PPC)
- Disabling PL/SQL tracing for module (PAAS_MONITOR)
- Disabling PL/SQL tracing for module (MET_BASELINE)
- Disabling PL/SQL tracing for module (METRIC_LOAD)
- Disabling PL/SQL tracing for module (DEFAULT)
- Disabling PL/SQL tracing for module (TRACER)
- Disabling PL/SQL tracing for module (LOADER)
- Disabling PL/SQL tracing for module (NOTIFICATION)
- Disabling PL/SQL tracing for module (REPOCOLLECTION)
- Disabling PL/SQL tracing for module (EMCLI)
- Disabling PL/SQL tracing for module (EM.JOBS)
- Disabling PL/SQL tracing for module (EM.BLACKOUT)
- Disabling PL/SQL tracing for module (SVCTESTAVAIL)
- Disabling PL/SQL tracing for module (COMPLIANCE_EVALUATION)
- Disabling PL/SQL tracing for module (EM.ECM)
- Disabling PL/SQL tracing for module (MGMT_COLLECTION.COLLECTION_SUBSYSTEM)
- Disabling PL/SQL tracing for module (TRACE_MODULE)
- Disabling PL/SQL tracing for module (SEVERITY_TRIGGER)
- Disabling PL/SQL tracing for module (SEVERITY_EVALUATION)
- Disabling PL/SQL tracing for module (EM_COMPLIANCE_AGENT_RULE_UTIL)
- Disabling PL/SQL tracing for module (EM_COMPLIANCE_ASSOC)
- Disabling PL/SQL tracing for module (EM_COMPLIANCE_ASYNC)
- Disabling PL/SQL tracing for module (EM_COMPLIANCE_CUR)
- Disabling PL/SQL tracing for module (EM_COMPLIANCE_EVAL)
- Disabling PL/SQL tracing for module (EM_COMPLIANCE_EVALUATION)
- Disabling PL/SQL tracing for module (EM_COMPLIANCE_EVENT)
- Disabling PL/SQL tracing for module (EM_COMPLIANCE_GROUP_EVAL)
- Disabling PL/SQL tracing for module (EM_COMPLIANCE_GRP_TGT_CALLBACK)
- Disabling PL/SQL tracing for module (EM_COMPLIANCE_LOADER)
- Disabling PL/SQL tracing for module (EM_COMPLIANCE_LOCK)
- Disabling PL/SQL tracing for module (EM_COMPLIANCE_MANUAL)
- Disabling PL/SQL tracing for module (EM_COMPLIANCE_RULE_OP)
- Disabling PL/SQL tracing for module (EM_COMPLIANCE_DEF)
- Disabling PL/SQL tracing for module (EM_COMPLIANCE_STANDARD_OP)
- Disabling PL/SQL tracing for module (EM_COMPLIANCE_TARGET)
- Disabling PL/SQL tracing for module (EM_COMPLIANCE_UTIL)
- Disabling PL/SQL tracing for module (EM_COMPLIANCE_CMP)
- Disabling PL/SQL tracing for module (EM.ECM.CMP)
- Disabling PL/SQL tracing for module (EM.CREDENTIAL)
- Disabling PL/SQL tracing for module (EM_CNTR_QUEUE)
========== ========== ========== ========== ========== ========== ==========

========== ========== ========== ========== ========== ========== ==========


== Target system tuning ==
========== ========== ========== ========== ========== ========== ==========
========== ========== ========== ========== ========== ========== ==========

Disconnected from Oracle Database 18c Enterprise Edition Release 18.0.0.0.0 -


Production
Version 18.7.0.0.0
[oracle@em12cexa02mlz bin]$ ./repvfy verify repository -test 1001

Please enter the SYSMAN password:

-- --------------------------------------------------------------------- --
-- REPVFY: 19.08.01 Repository: 13.3.0.0.0 08-Sep-2019 12:45:22 --
---------------------------------------------------------------------------
-- Module: REPOSITORY Test: 1001, Level: 9 --
-- --------------------------------------------------------------------- --

verifyREPOSITORY
[oracle@em12cexa02mlz bin]$

[oracle@em12cexa02mlz bin]$ ./repvfy dump ping_health

Please enter the SYSMAN password:

SQL*Plus: Release 18.0.0.0.0 - Production on Sun Sep 8 12:46:17 2019


Version 18.7.0.0.0

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

SQL> Connected.

Session altered.

Session altered.

[----- REPVFY Version details -----------------------------------------------]

COMPONENT INFO
------------------ ----------------------------------------
EMDIAG Version 19.08.01
Repository Version 13.3.0.0.0
Database Version 18.0.0.0.0
Test Version 19.09.08
Repository Type CENTRAL

5 rows selected.

[----------------------------------------------------------------------------]
[--- 1. Configuration and setup ---]
[----------------------------------------------------------------------------]
[----- PING job schedule ----------------------------------------------------]

JOB_NAME JOB_ACTION
ENABL STATE RUN_COUNT FAILURE_COUNT NEXT_RUN_DATE
----------------------------------------
--------------------------------------------------------------------------------
----- -------------------- ---------- -------------
---------------------------------------------------------------------------
EM_PING_MARK_NODE_STATUS EM_PING.MARK_NODE_STATUS();
TRUE SCHEDULED 16696 0 08-SEP-19 12.46.33.000000 PM
ASIA/RIYADH

1 row selected.
[----- Global PING parameter ------------------------------------------------]
-- System parameters

NAME VALUE
--------------------------------------------------
--------------------------------------------------------------------------------
EST_PING OFF
hostping_command hostPinger -h 4 -t 120 -s 10 -p
2 -m TCP_FULL

2 rows selected.

-- OMS parameters

no rows selected

-- OMS properties

NAME
DEFAULT_VALUE VALUE
---------------------------------------------------------------------------
--------------------------------------------------
--------------------------------------------------
NoHostPingSysten
em.ping.hostping.extendedSQLTraceON
em.ping.hostping.extendedSQLTraceTime
emdrep.ping.hostping.threadcount
emdrep.ping.pingHostTimeout
oracle.sysman.core.jobs.pingPastSeverityClear 30
oracle.sysman.core.jobs.pingPastSeverityCritical 80
oracle.sysman.core.jobs.pingPastSeverityWarning 60
oracle.sysman.core.omsAgentComm.ping.connectionService.connectDescriptor
oracle.sysman.core.omsAgentComm.ping.extendedSQLTraceON false
oracle.sysman.core.omsAgentComm.ping.extendedSQLTraceTime 60
oracle.sysman.core.omsAgentComm.ping.extendedTraceON false
oracle.sysman.core.omsAgentComm.ping.heartbeatPingEnabled true
oracle.sysman.core.omsAgentComm.ping.heartbeatPingRecorderThreads 2
oracle.sysman.core.omsAgentComm.ping.heartbeatRecordInterval 10
oracle.sysman.core.omsAgentComm.ping.pingAgentTimeout 40
oracle.sysman.core.omsAgentComm.ping.pingCommand
oracle.sysman.core.ping.heartBeatInterval 60
oracle.sysman.core.ping.markAgentDownImmediate false
oracle.sysman.core.ping.reversePingInterval 120
oracle.sysman.core.security.auth.enable_username_mapping
oracle.sysman.core.security.auth.ldapuserattributes_emuserattributes_mappin

22 rows selected.

[----- Local Agent PING parameters ------------------------------------------]

HEARTBEAT_SEC CNT
------------- ----------
1

1 row selected.

[----------------------------------------------------------------------------]
[--- 2. Operational data ---]
[----------------------------------------------------------------------------]
[----- Agent statistics -----------------------------------------------------]

TOTAL UP DOWN POTENTIAL


---------- ---------- ---------- ----------
1 1 0 0

1 row selected.

[----- Agent down statistics ------------------------------------------------]

no rows selected

[----------------------------------------------------------------------------]
[--- 3. Performance and throughput ---]
[----------------------------------------------------------------------------]
[----- Agent marking (Last day) ---------------------------------------------]

SLOT SECONDS NR_AGENTS


--------------------- ---------- ----------
08-SEP-2019 12:00:00 1.69 0
08-SEP-2019 11:00:00 1.91 0
08-SEP-2019 10:00:00 1.72 0
08-SEP-2019 09:00:00 1.71 0
08-SEP-2019 08:00:00 1.75 0
08-SEP-2019 07:00:00 1.67 0
08-SEP-2019 06:00:00 1.73 0
08-SEP-2019 05:00:00 1.66 0
08-SEP-2019 04:00:00 1.74 0
08-SEP-2019 03:00:00 1.67 0
08-SEP-2019 02:00:00 1.71 0
08-SEP-2019 01:00:00 1.7 0
08-SEP-2019 00:00:00 1.73 0
07-SEP-2019 23:00:00 1.66 0
07-SEP-2019 22:00:00 1.77 0
07-SEP-2019 21:00:00 1.7 0
07-SEP-2019 20:00:00 1.71 0
07-SEP-2019 19:00:00 1.63 0
07-SEP-2019 18:00:00 1.76 0
07-SEP-2019 17:00:00 1.69 0
07-SEP-2019 16:00:00 1.74 0
07-SEP-2019 15:00:00 1.68 0
07-SEP-2019 14:00:00 1.73 0
07-SEP-2019 13:00:00 1.65 0
07-SEP-2019 12:00:00 1.74 0

25 rows selected.

[----- Reverse ping (Last day) ----------------------------------------------]

no rows selected

[----- Ping response time --------------------------------------------------]

BUCKET_MSEC CNT
----------- ----------
50 1

1 row selected.
[----------------------------------------------------------------------------]
[--- 4. Logging and tracing ---]
[----------------------------------------------------------------------------]
[----- Heartbeat recorder failures (last 7 days) ----------------------------]

no rows selected

[----- Old Partner down messages (last 7 days) ------------------------------]

no rows selected

[----------------------------------------------------------------------------]
[--- 5. Agent Heartbeat diagnostic workflow ---]
[----------------------------------------------------------------------------]

DBMS_SCHEDULER status : OK
Job queue processes : OK
Job queue consistency : OK
Scheduler slave processes : OK
Job queue processes : OK
Broken jobs : OK
Failed jobs : OK
Disabled jobs : OK
Jobs behind schedule : OK

Agent status : OK
Agent Heartbeat Batches : OK
Startup Agent Ping Grace Period : OK
Agent down marking : OK
Agent ping jobs : OK
Extended SQL Trace : OK

[----------------------------------------------------------------------------]
[--- 6. verification ---]
[----------------------------------------------------------------------------]
verifyAgents
----. done...
verifyRepository
6039. Newer version available for deployed OMS plugin: 4
6041. AWR retention less than 2 weeks: 1
7001. Recyclebin not empty: 2
7004. Obsolete worker trace parameters: 2
7007. Obsolete worker thread status: 2
Disconnected from Oracle Database 18c Enterprise Edition Release 18.0.0.0.0 -
Production
Version 18.7.0.0.0
[oracle@em12cexa02mlz bin]$

[oracle@em12cexa02mlz bin]$ ./repvfy -tns EMDB verify -level 9 -detail

Please enter the SYSMAN password:

-- --------------------------------------------------------------------- --
-- REPVFY: 19.08.01 Repository: 13.3.0.0.0 08-Sep-2019 12:51:07 --
---------------------------------------------------------------------------
-- Module: Test: 0, Level: 9 --
-- --------------------------------------------------------------------- --
verifyAGENTS
verifyASLM
verifyAVAILABILITY
verifyBLACKOUTS
verifyCA
verifyCAT
verifyCORE
verifyECM
1002. Unregistered ECM metadata tables: 1
7004. Current snapshots for deleted targets (17012180): 2
verifyEMDIAG
verifyEVENTS
verifyEXADATA
verifyJOBS
7007. Obsolete job metric staging data: 3
verifyJVMD
verifyLOADERS
verifyMETRICS
verifyNOTIFICATIONS
verifyOMS
verifyPATCHING
verifyPLUGINS
verifyRCA
verifyREPOSITORY
6039. Newer version available for deployed OMS plugin: 4
6041. AWR retention less than 2 weeks: 1
7001. Recyclebin not empty: 2
7004. Obsolete worker trace parameters: 2
7007. Obsolete worker thread status: 2
verifyTARGETS
verifyTEMPLATES
verifyUPGRADE
verifyUSERS
6001. Non-standard EM system administrators accounts: 1

SQL*Plus: Release 18.0.0.0.0 - Production on Sun Sep 8 12:51:38 2019


Version 18.7.0.0.0

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

SQL> Connected.

Session altered.

Session altered.

verifyECM
======================================================================
1002. Unregistered ECM metadata tables
--------------------------------------

NAME VIEW_NAME
COLUMN_NAME
-------------------------------------------------- --------------------------------
--------------------------------
ESM_VOPTION_E ESM_VOPTION
ECM_SNAPSHOT_ID
1 row selected.

7004. Current snapshots for deleted targets (17012180)


=--------- ---------- ---------- ---------- ---------- ---------- ---------=
= Action:
= - Run the fix routine:
= $ repvfy verify ecm -test 7004 -fix
=--------- ---------- ---------- ---------- ---------- ---------- ---------=

TARGET_GUID TARGET_NAME
TARGET_TYPE START_TIMESTAMP SNAPSHOT_TYPE
--------------------------------
------------------------------------------------------------
---------------------------------------- --------------------
--------------------------------
E443D4AD2E6880932B87F4161ECD897A /EMGC_GCDomain/GCDomain/BIP_cluster/ESSAPP
j2ee_application_cluster 28-AUG-2019 10:31:08 orcl_tp_config
407195868C2E7F0BE0EF0BFF9BFF2356
/EMGC_GCDomain/GCDomain/BIP_cluster/bipublisher(11.1.1)
j2ee_application_cluster 28-AUG-2019 10:31:08 orcl_tp_config

2 rows selected.

verifyJOBS
======================================================================
7007. Obsolete job metric staging data
=--------- ---------- ---------- ---------- ---------- ---------- ---------=
= Action:
= - Run the fix routine:
= $ repvfy verify jobs -test 7007 -fix
=--------- ---------- ---------- ---------- ---------- ---------- ---------=

SOURCE SLOT CNT


-------------------------------------------------- --------------------- ----------
EM_jobs_bookkeeping_cycle 28-AUG-2019 00:00:00 43464
EM_jobs_bookkeeping_cycle 29-AUG-2019 00:00:00 63168
EM_jobs_bookkeeping_cycle 30-AUG-2019 00:00:00 63168
EM_jobs_bookkeeping_cycle 31-AUG-2019 00:00:00 63312
EM_jobs_bookkeeping_cycle 01-SEP-2019 00:00:00 61896
EM_jobs_bookkeeping_cycle 02-SEP-2019 00:00:00 51720
EM_jobs_bookkeeping_cycle 03-SEP-2019 00:00:00 63240
EM_jobs_bookkeeping_cycle 04-SEP-2019 00:00:00 62952
EM_jobs_bookkeeping_cycle 05-SEP-2019 00:00:00 63024
EM_jobs_bookkeeping_cycle 06-SEP-2019 00:00:00 63264
Oemrep_Database 28-AUG-2019 00:00:00 172
Oemrep_Database 29-AUG-2019 00:00:00 105
Oemrep_Database 30-AUG-2019 00:00:00 96
Oemrep_Database 31-AUG-2019 00:00:00 96
Oemrep_Database 01-SEP-2019 00:00:00 197
Oemrep_Database 02-SEP-2019 00:00:00 114
Oemrep_Database 03-SEP-2019 00:00:00 104
Oemrep_Database 04-SEP-2019 00:00:00 98
Oemrep_Database 05-SEP-2019 00:00:00 104
Oemrep_Database 06-SEP-2019 00:00:00 97
em12cexa02mlz.esdp.stc.sa:4889_Management_Service 28-AUG-2019 00:00:00 4168
em12cexa02mlz.esdp.stc.sa:4889_Management_Service 29-AUG-2019 00:00:00 5915
em12cexa02mlz.esdp.stc.sa:4889_Management_Service 30-AUG-2019 00:00:00 5912
em12cexa02mlz.esdp.stc.sa:4889_Management_Service 31-AUG-2019 00:00:00 5913
em12cexa02mlz.esdp.stc.sa:4889_Management_Service 01-SEP-2019 00:00:00 5888
em12cexa02mlz.esdp.stc.sa:4889_Management_Service 02-SEP-2019 00:00:00 4835
em12cexa02mlz.esdp.stc.sa:4889_Management_Service 03-SEP-2019 00:00:00 5920
em12cexa02mlz.esdp.stc.sa:4889_Management_Service 04-SEP-2019 00:00:00 5866
em12cexa02mlz.esdp.stc.sa:4889_Management_Service 05-SEP-2019 00:00:00 5911
em12cexa02mlz.esdp.stc.sa:4889_Management_Service 06-SEP-2019 00:00:00 5909

30 rows selected.

verifyREPOSITORY
======================================================================
6039. Newer version available for deployed OMS plugin
=--------- ---------- ---------- ---------- ---------- ---------- ---------=
= Action:
= - As a general recommended rule of thumb:
= * New plugin version should be deployed on all the OMSs
=--------- ---------- ---------- ---------- ---------- ---------- ---------=

PLUGIN_VERSION_ID PLUGIN_ID VERSION


DISPLAY_NAME
----------------- ---------------------------------------- --------------------
----------------------------------------
33 oracle.sysman.cfw 13.3.1.0.0
Oracle Cloud Framework
34 oracle.sysman.db 13.3.1.0.0
Oracle Database
35 oracle.sysman.xa 13.3.1.0.0
Oracle Exadata
37 oracle.sysman.si 13.3.1.0.0
Systems Infrastructure

4 rows selected.

6041. AWR retention less than 2 weeks


=--------- ---------- ---------- ---------- ---------- ---------- ---------=
= Action:
= - As a general recommended rule of thumb, a minimum of 2 weeks of AWR
= data should be available for diagnosing and debugging repository
= database problems
= - To change the AWR retention period in the database, run this command:
= SQL> CONNECT / AS SYSDBA
= SQL> EXEC dbms_workload_repository.modify_snapshot_settings
= (interval => 60, retention => 20160)
=--------- ---------- ---------- ---------- ---------- ---------- ---------=

RETENTION_DAYS
--------------
8

1 row selected.

7001. Recylebin not empty


=--------- ---------- ---------- ---------- ---------- ---------- ---------=
= Action:
= - Verify and validate the content of the recycle bin for the SYSMAN schema
= - To cleanup the objects, run these commands:
= SQL> CONNECT sysman
= SQL> PURGE recyclebin
=--------- ---------- ---------- ---------- ---------- ---------- ---------=
TYPE OPERATION CNT KB
-------------------- --------- ---------- ----------
TABLE DROP 11 8
INDEX DROP 6 0

2 rows selected.

7004. Obsolete worker trace parameters


=--------- ---------- ---------- ---------- ---------- ---------- ---------=
= Action:
= - Run the fix routine:
= $ repvfy verify repository -test 7004 -fix
=--------- ---------- ---------- ---------- ---------- ---------- ---------=

PARAMETER_NAME
--------------------------------
EST_WORKER1
EST_WORKER2

2 rows selected.

7007. Obsolete worker thread status


=--------- ---------- ---------- ---------- ---------- ---------- ---------=
= Action:
= - Run the fix routine:
= $ repvfy verify repository -test 7007 -fix
=--------- ---------- ---------- ---------- ---------- ---------- ---------=

CLASS WORKER_ID WORKER_START_TIME


------------------------- ---------- --------------------
Short (0) 1 21-JUN-2018 07:14:48
Long (1) 2 21-JUN-2018 07:14:48

2 rows selected.

verifyUSERS
======================================================================
6001. Non-standard EM system administrators accounts
=--------- ---------- ---------- ---------- ---------- ---------- ---------=
= Action:
= - The flagged database accounts should not be used for regular day-to-day work
= - Change the database account status to 'EXPIRED and LOCKED'
=--------- ---------- ---------- ---------- ---------- ---------- ---------=

USER_ID USER_NAME SYSTEM_USER ACCOUNT_STATUS


---------- -------------------------------- ----------- -------------------------
104 SYSMAN_RO 4 OPEN

1 row selected.

Disconnected from Oracle Database 18c Enterprise Edition Release 18.0.0.0.0 -


Production
Version 18.7.0.0.0
[oracle@em12cexa02mlz bin]$

[oracle@em12cexa02mlz bin]$ ./repvfy verify ecm -test 7004 -fix


Please enter the SYSMAN password:

-- --------------------------------------------------------------------- --
-- REPVFY: 19.08.01 Repository: 13.3.0.0.0 08-Sep-2019 13:12:04 --
---------------------------------------------------------------------------
-- Module: ECM Test: 7004, Level: 9 --
-- --------------------------------------------------------------------- --
-- -- -- - Running in FIX mode: Data updated for all fixed tests - -- -- --
-- --------------------------------------------------------------------- --

verifyECM
7004. Current snapshots for deleted targets (17012180): 2
Fix: 2
[oracle@em12cexa02mlz bin]$ ^C
[oracle@em12cexa02mlz bin]$ ./repvfy verify jobs -test 7007 -fix

Please enter the SYSMAN password:

-- --------------------------------------------------------------------- --
-- REPVFY: 19.08.01 Repository: 13.3.0.0.0 08-Sep-2019 13:12:35 --
---------------------------------------------------------------------------
-- Module: JOBS Test: 7007, Level: 9 --
-- --------------------------------------------------------------------- --
-- -- -- - Running in FIX mode: Data updated for all fixed tests - -- -- --
-- --------------------------------------------------------------------- --

verifyJOBS
7007. Obsolete job metric staging data: 3
[oracle@em12cexa02mlz bin]$ ^C
[oracle@em12cexa02mlz bin]$ ./repvfy verify repository -test 7004 -fix

Please enter the SYSMAN password:

-- --------------------------------------------------------------------- --
-- REPVFY: 19.08.01 Repository: 13.3.0.0.0 08-Sep-2019 13:14:17 --
---------------------------------------------------------------------------
-- Module: REPOSITORY Test: 7004, Level: 9 --
-- --------------------------------------------------------------------- --
-- -- -- - Running in FIX mode: Data updated for all fixed tests - -- -- --
-- --------------------------------------------------------------------- --

verifyREPOSITORY
7004. Obsolete worker trace parameters: 2
Fix: 2
[oracle@em12cexa02mlz bin]$ ./repvfy verify repository -test 7007 -fix

Please enter the SYSMAN password:

-- --------------------------------------------------------------------- --
-- REPVFY: 19.08.01 Repository: 13.3.0.0.0 08-Sep-2019 13:14:32 --
---------------------------------------------------------------------------
-- Module: REPOSITORY Test: 7007, Level: 9 --
-- --------------------------------------------------------------------- --
-- -- -- - Running in FIX mode: Data updated for all fixed tests - -- -- --
-- --------------------------------------------------------------------- --

verifyREPOSITORY
7007. Obsolete worker thread status: 2
Fix: 2
[oracle@em12cexa02mlz bin]$

[oracle@em12cexa02mlz admin]$ sqlplus / as sysdba

SQL*Plus: Release 18.0.0.0.0 - Production on Sun Sep 8 12:46:46 2019


Version 18.7.0.0.0

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

Connected to:
Oracle Database 18c Enterprise Edition Release 18.0.0.0.0 - Production
Version 18.7.0.0.0

SQL> begin

dbms_audit_mgmt.init_cleanup(

AUDIT_TRAIL_TYPE => DBMS_AUDIT_MGMT.AUDIT_TRAIL_ALL,

DEFAULT_CLEANUP_INTERVAL => 12);

end;

/ 2 3 4 5 6 7 8 9 10 11

PL/SQL procedure successfully completed.

SQL> BEGIN

DBMS_AUDIT_MGMT.CREATE_PURGE_JOB(

AUDIT_TRAIL_TYPE => DBMS_AUDIT_MGMT.AUDIT_TRAIL_ALL,

AUDIT_TRAIL_PURGE_INTERVAL => 12,

AUDIT_TRAIL_PURGE_NAME => 'Standard_Audit_Trail_Cleanup',

USE_LAST_ARCH_TIMESTAMP => TRUE);

END;

/ 2 3 4 5 6 7 8 9 10 11 12 13 14 15

PL/SQL procedure successfully completed.

SQL>

Vous aimerez peut-être aussi