tag:blogger.com,1999:blog-3994363891804035632024-03-28T12:44:36.263+05:30Blog for oracle RAC Goldengate Dataguard ASM databasewww.sultandba.comSultan Khanhttp://www.blogger.com/profile/12933538356533244884noreply@blogger.comBlogger118125tag:blogger.com,1999:blog-399436389180403563.post-91794437554135949312024-03-24T23:35:00.000+05:302024-03-24T23:35:14.099+05:30OKV installation on VM <p><b>Hello Friend's,</b></p>
<p><b>In This Post we will discuss about how to install Configure OKV on vmware </b></p>
<p><b>So let's get started</b></p>
<p><b>What is OKV (Oracle Key Vault) :</b></p>
<p><b>Oracle Key Vault is a specialized software program from Oracle that handles the storage and management of encryption keys, confidential data called secrets, and digital certificates throughout an organization. Functions of Oracle Key Vault (OKV): * **Key Management:** OKV acts as a central point for managing encryption keys used by different Oracle products and third-party software, such as databases, middleware, and applications. It stores these keys securely, protecting them from unauthorized access. * **Secrets Management:** OKV also manages other sensitive information, including passwords, login credentials, API keys, and system configurations. It helps enforce security policies and ensures that this information remains confidential.</b></p>
<p><b>Step 1 : Create a Vm with below configrations </b></p>
<div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwfRDDUgm7jyON6PkPO0idOc8wp1ynRFwbcQNv6XT3vT1OObo05bnCHzpDEyhDP5W8IKIJVNkDxhOrcd_kwAxCMthtq6UX1qVUBoUXr1S-XNXjKKYBdLjYYkWpvlS_eCCnv2QI-F68QZXmDXEnMNU6L6zbawEW6a5uc4w2lCPuGr0DYZYy4caXOuP2lfQd/s1600/1.png" style="display: block; padding: 1em 0; text-align: center; "><img alt="" border="0" data-original-height="589" data-original-width="1136" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwfRDDUgm7jyON6PkPO0idOc8wp1ynRFwbcQNv6XT3vT1OObo05bnCHzpDEyhDP5W8IKIJVNkDxhOrcd_kwAxCMthtq6UX1qVUBoUXr1S-XNXjKKYBdLjYYkWpvlS_eCCnv2QI-F68QZXmDXEnMNU6L6zbawEW6a5uc4w2lCPuGr0DYZYy4caXOuP2lfQd/s1600/1.png"/></a></div>
<p><b>Step 2 : once the vm isstarted you will get the below screen , select the second option and hit enter</b></p>
<div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGGvKlOHDQH1RpnSQlVjnpA39Aw_-WGTjmL2EmSZ-dFK5LTvPjOJNbSMDlJXE6wNFgh_3lR5DqQFTFTeONPqoXDdm6GrAKUZljY_xFxxuhq-iEFHqQuiw6tKVCcViri2V23Rd3nu18L0-84ypR3eBmdB4oZDgSqbPnuo5Zz5d3iBkD-UU_d-ZvIDPuT_eu/s1600/2.png" style="display: block; padding: 1em 0; text-align: center; "><img alt="" border="0" data-original-height="540" data-original-width="1156" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGGvKlOHDQH1RpnSQlVjnpA39Aw_-WGTjmL2EmSZ-dFK5LTvPjOJNbSMDlJXE6wNFgh_3lR5DqQFTFTeONPqoXDdm6GrAKUZljY_xFxxuhq-iEFHqQuiw6tKVCcViri2V23Rd3nu18L0-84ypR3eBmdB4oZDgSqbPnuo5Zz5d3iBkD-UU_d-ZvIDPuT_eu/s1600/2.png"/></a></div>
<p><b>Step 3 : Installation will get started after this as below</b></p>
<div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSXsLBqMchLn1CZKKwSGC2hU_a_-cRWcTjtNZIShWKHj6Q6SPMWf5DAwf6M5C5liijwJXg8Nv2tneyYLRKEcU9EBNY1D0RWKw8OICxOx0YrC1R11Efu-Yt10EXD4c7F3VfPzEIthdLWEoV_Mxgskf9C9RaJvYKsa9pvRnR2x6lEftFEyeY8dFPoUVWLqTT/s1600/3.png" style="display: block; padding: 1em 0; text-align: center; "><img alt="" border="0" data-original-height="603" data-original-width="852" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSXsLBqMchLn1CZKKwSGC2hU_a_-cRWcTjtNZIShWKHj6Q6SPMWf5DAwf6M5C5liijwJXg8Nv2tneyYLRKEcU9EBNY1D0RWKw8OICxOx0YrC1R11Efu-Yt10EXD4c7F3VfPzEIthdLWEoV_Mxgskf9C9RaJvYKsa9pvRnR2x6lEftFEyeY8dFPoUVWLqTT/s1600/3.png"/></a></div>
<p><b>Step 4 : You will be prompted for the root password , It can be give as you wish , but keep the password safe</b></p>
<div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkb_TQJLiPCohBYyNOLtt26AYySmSqA9gaaR7q6ywj7XosTtI29uI4G8i3zIyOwIkrdmGcjrNMKjfKgM-cYgcw7chm7a2kEmkoCUxVjVerZyog2XdsKqyp1bSHo8jGuToRJP-bN8XOdQZqgRbtLOuvWOYw_Dgj1Ox7Zg_Hdeprl3PBIDK1s_Dex8mdi_y1/s1600/4.png" style="display: block; padding: 1em 0; text-align: center; "><img alt="" border="0" data-original-height="205" data-original-width="549" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkb_TQJLiPCohBYyNOLtt26AYySmSqA9gaaR7q6ywj7XosTtI29uI4G8i3zIyOwIkrdmGcjrNMKjfKgM-cYgcw7chm7a2kEmkoCUxVjVerZyog2XdsKqyp1bSHo8jGuToRJP-bN8XOdQZqgRbtLOuvWOYw_Dgj1Ox7Zg_Hdeprl3PBIDK1s_Dex8mdi_y1/s1600/4.png"/></a></div>
<p><b>Step 5 : on this step you will be prompted for the OKV network mode choose classic mode , I have used classic mode as i am doing on vmware you cam choose depending on your coonfig .</b></p>
<div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-dD2J2tmFhG6z9fymNGimWm1P4MCSGdvfJSwalhMbDgYrqUc69I1_Q7QL6itdsRvoZS5DTKR_1qcVa4l2eFV6NJaRfq0YjKSMTM8BxQq1EgADVoVCNDSwV2iP33qvF1ygzFo0rwsH08_9xnwQtt97zEQjB6vwBpJejLe7UHUf4bsvON5qhEhT-7ioetnp/s1600/5.png" style="display: block; padding: 1em 0; text-align: center; "><img alt="" border="0" data-original-height="468" data-original-width="1001" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-dD2J2tmFhG6z9fymNGimWm1P4MCSGdvfJSwalhMbDgYrqUc69I1_Q7QL6itdsRvoZS5DTKR_1qcVa4l2eFV6NJaRfq0YjKSMTM8BxQq1EgADVoVCNDSwV2iP33qvF1ygzFo0rwsH08_9xnwQtt97zEQjB6vwBpJejLe7UHUf4bsvON5qhEhT-7ioetnp/s1600/5.png"/></a></div>
<p><b>Step 6 : Select the network interface and click ok</b></p>
<div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiUyQL8QrTOAlz_GefRNC1fGgtKhvxWxzLRSLYV_4e5s9btA0Y1RreK34CSYGRyLwqgi_d3QDiFaKoI8DcX8oAU5oDj0lv4sMPxV50C53EWkz3S4FXOdTO_DAeJxEju-xFew0HU79PKoOh8-lJAog3bEdFDlrjIBkwZmIKyah-OH_NzWN6wpYKryNED2t-3/s1600/6.png" style="display: block; padding: 1em 0; text-align: center; "><img alt="" border="0" data-original-height="391" data-original-width="817" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiUyQL8QrTOAlz_GefRNC1fGgtKhvxWxzLRSLYV_4e5s9btA0Y1RreK34CSYGRyLwqgi_d3QDiFaKoI8DcX8oAU5oDj0lv4sMPxV50C53EWkz3S4FXOdTO_DAeJxEju-xFew0HU79PKoOh8-lJAog3bEdFDlrjIBkwZmIKyah-OH_NzWN6wpYKryNED2t-3/s1600/6.png"/></a></div>
<p><b>Step 7 : On this step you have to provide the network IP and gateway , Note that this will be used for further login in GUI portal</b></p>
<div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjordbDnoNONQ5y57S1sIFjrWzmMASkNIdg41K3JktqpkAxe6Dy5a-RkyvNiD0CSfrYtiv9HJfDUEPJQR2Ztt2-gcFB4sT5ezGMQJASODHGsKU3h-Tc6BU80IpUoSNI2dCuGLUXU96Vo-OjiGz3659UhwW7i-6ax8RY3-K_wBYrdvrHFc4v7HuTzEWrWJ64/s1600/7.png" style="display: block; padding: 1em 0; text-align: center; "><img alt="" border="0" data-original-height="246" data-original-width="699" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjordbDnoNONQ5y57S1sIFjrWzmMASkNIdg41K3JktqpkAxe6Dy5a-RkyvNiD0CSfrYtiv9HJfDUEPJQR2Ztt2-gcFB4sT5ezGMQJASODHGsKU3h-Tc6BU80IpUoSNI2dCuGLUXU96Vo-OjiGz3659UhwW7i-6ax8RY3-K_wBYrdvrHFc4v7HuTzEWrWJ64/s1600/7.png"/></a></div>
<p><b>Step 8 : Now the wait begins , Installtion will configure all things create OKV database etc , total time will depend on the configration of machine in my case it took around 4 hours to get complete.</b></p>
<div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWM0GS66zDj1UxDJQYBBldIcxjSEwjjs0wPs-GS3cB5Pcr7JZDyJQxHYYsZ7yEw7rOO_bT06mfUCaap475sbJdTs5-vRbOIZiDR_borpWwaRfpdRvezLreicqFLAiHXG-sT4TPZ0Vuc82bAJ_FDxPR_7QMN6etnQeFPLhobLCSWwE-9ou7f_9P63CCh6b3/s1600/8.png" style="display: block; padding: 1em 0; text-align: center; "><img alt="" border="0" data-original-height="249" data-original-width="694" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWM0GS66zDj1UxDJQYBBldIcxjSEwjjs0wPs-GS3cB5Pcr7JZDyJQxHYYsZ7yEw7rOO_bT06mfUCaap475sbJdTs5-vRbOIZiDR_borpWwaRfpdRvezLreicqFLAiHXG-sT4TPZ0Vuc82bAJ_FDxPR_7QMN6etnQeFPLhobLCSWwE-9ou7f_9P63CCh6b3/s1600/8.png"/></a></div>
<p><b>Step 9 : once the database creation and all installtion is completed you will be prompted to login with root password</b></p>
<div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpJzJFM_cSymFbkWxvBSQwAaiKcxXcSsKTia3W4IAELID6Y7pZPsZ6332j4QjFuXT8MWRekichlFuuG2eEU8KQotqw_nmcv21RgwcdWPmsrsx0lSHcf9Jx6brw3R6PmM45YHnhgtoJKiuBBIxJhu7cacFiOKZwnzozZK3mNcMbFSst-bt-zaYQyORYkHcA/s1600/9.png" style="display: block; padding: 1em 0; text-align: center; "><img alt="" border="0" data-original-height="210" data-original-width="751" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpJzJFM_cSymFbkWxvBSQwAaiKcxXcSsKTia3W4IAELID6Y7pZPsZ6332j4QjFuXT8MWRekichlFuuG2eEU8KQotqw_nmcv21RgwcdWPmsrsx0lSHcf9Jx6brw3R6PmM45YHnhgtoJKiuBBIxJhu7cacFiOKZwnzozZK3mNcMbFSst-bt-zaYQyORYkHcA/s1600/9.png"/></a></div>
<p><b>Step 10 : Now open the chrome browser and use the ip to get the GUI of OKV</b></p>
<div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinzty90mZg_jWujnUi-ejWZvjuvBoLF73IEdXD3rzheQuNnttGaJHXoBi89LV2xmeTZhyipzuH9yQVXtE5JnmXJIHTSOPndea6nEFgM2DeZaevZuFhfJ0WJ8ZU1nhb97ixmUUw0u0eBQYgyY7Rw00w7cCsA9HRq8dkkI908HIrocvEdiqN03wMyA462y-m/s1600/10.png" style="display: block; padding: 1em 0; text-align: center; "><img alt="" border="0" data-original-height="688" data-original-width="1237" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinzty90mZg_jWujnUi-ejWZvjuvBoLF73IEdXD3rzheQuNnttGaJHXoBi89LV2xmeTZhyipzuH9yQVXtE5JnmXJIHTSOPndea6nEFgM2DeZaevZuFhfJ0WJ8ZU1nhb97ixmUUw0u0eBQYgyY7Rw00w7cCsA9HRq8dkkI908HIrocvEdiqN03wMyA462y-m/s1600/10.png"/></a></div>
<p><b>Step 11 : on the login prompt use the root password tto get in , and the you will be promted to create 3 users (1. Key Admin , 2 System Admin , 3 Audit Admin ) and create password fopr the same .
with this step your configration and installtion of OKV server will be completed .</b></p>
<div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisUVxgBnNU2BAMYR_prpyPsWgqDGjxIKV9h5zRfe81C_gMAQ2JyLFDVf_OaMYGCR2IyQo1Til6KcYrXYW-8JAJljX-DHSehgRbuBe86p3Dsbs3iIKSxYHflRF5X5_NVlw9Zd7YZnlJqmAHHy6TXv2Z0i3Gjov7o9Wp8T8K1QQUOvPbGUC67RvyiIWOZXr1/s1600/11.png" style="display: block; padding: 1em 0; text-align: center; "><img alt="" border="0" data-original-height="667" data-original-width="1303" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisUVxgBnNU2BAMYR_prpyPsWgqDGjxIKV9h5zRfe81C_gMAQ2JyLFDVf_OaMYGCR2IyQo1Til6KcYrXYW-8JAJljX-DHSehgRbuBe86p3Dsbs3iIKSxYHflRF5X5_NVlw9Zd7YZnlJqmAHHy6TXv2Z0i3Gjov7o9Wp8T8K1QQUOvPbGUC67RvyiIWOZXr1/s1600/11.png"/></a></div>
<p><b>In our next post we will cover how to manager SSH keys for database server on OKV .</b></p>
<p><b>will see you all back soon .</b></p>
<p><b>Regards</b></p>
<p><b>Sultan Khan</b></p>
Sultan Khanhttp://www.blogger.com/profile/12933538356533244884noreply@blogger.com0tag:blogger.com,1999:blog-399436389180403563.post-12033346104155739762024-03-08T17:54:00.004+05:302024-03-08T22:17:19.878+05:30 How to Configure TDE Auto Login Wallet in Oracle 19c<p><b>Hello Friend's,</b></p>
<p><b>In This Post we will discuss about how to Configure Transparent data encryption on 19c database with oracle restart </b></p>
<p><b>So let's get started</b></p>
<div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFnzp8JockhYQoj9rDrHXgEBznqu_PLO66hkYzrmuQJPYgVavHfntcvh_2wxNcsTpAzTEqkJ0EwijisTqQIYEaHcaJTr2zPGwXwId8vRoWfeEm2sko9HIIYBe-yEl7eOAFtj0qcop-Qddt5VZXIUgEE94I6f4xcdlzd-Lz5M096ZvtA4_R1fsYNxt8F-CE/s1600/TDE.png" style="display: block; padding: 1em 0; text-align: center; "><img alt="" border="0" data-original-height="352" data-original-width="598" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFnzp8JockhYQoj9rDrHXgEBznqu_PLO66hkYzrmuQJPYgVavHfntcvh_2wxNcsTpAzTEqkJ0EwijisTqQIYEaHcaJTr2zPGwXwId8vRoWfeEm2sko9HIIYBe-yEl7eOAFtj0qcop-Qddt5VZXIUgEE94I6f4xcdlzd-Lz5M096ZvtA4_R1fsYNxt8F-CE/s1600/TDE.png"/></a></div>
<p><b>Enviornment Used for Activity Noncdb to PDB :</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><code>
Source :
Hostname : dm01db01.database.com
Database : CDBFLY
Version : 19.22.0
PDB : FLYDB
Oacle_Home : /oracle/app/orawork/product/19.0.0/db_1
OS : OEL 8.9
</code></pre>
<p><b>What is TDE :</b></p>
<p>Transparent Data Encryption (TDE) is an Oracle feature that encrypts data kept in database data files to shield confidential data from unwanted access.
TDE provides transparent encryption and decryption operations to applications and users using the database by operating at the storage level,
encrypting data before it is written to disk and decrypting it when read from disk.</p><ul style="text-align: left;"><li>You can encrypt sensitive data that you save in tables and tablespaces with Transparent Data Encryption (TDE). </li><li>Transparent Data Encryption (TDE) guarantees the encryption of sensitive data, satisfies compliance standards, and offers features that simplify encryption processes. </li><li>You can set up keystores for individual pluggable databases (PDBs) or the complete container database (CDB) in a multitenant environment. </li><li>Tablespaces as a whole or specific columns can be encrypted using transparent data encryption.
Therefore, wallet configuration in SQLNET.ORA is no longer required. </li><li>After configuring the WALLET_ROOT initialization parameter, Oracle advises using the KEYSTORE_CONFIGURATION attribute of the TDE_CONFIGURATION initialization parameter.
New with 19c Close of keystore, even in the case of encrypted SYSTEM, SYSAUX, TEMP, and UNDO</li></ul><div><p><b>Step 1. Create Directory in ASM for wallet</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><code>
[grid@dm01db01 ~]$ . oraenv
ORACLE_SID = [grid] ? +ASM
The Oracle base has been set to /oracle/app/grid_base
[grid@dm01db01 ~]$ asmcmd
ASMCMD> ASMCMD>
ASMCMD>
ASMCMD> cd +DATA
ASMCMD> ls
CDBFLY/
ASMCMD> ls -l
Type Redund Striped Time Sys Name
N CDBFLY/
ASMCMD> cd CDBFLY
ASMCMD> ls
12EFB52A80DDA374E0639188A8C03E28/
12F01259575FB709E0639188A8C091D2/
86B637B62FE07A65E053F706E80A27CA/
CONTROLFILE/
DATAFILE/
ONLINELOG/
PARAMETERFILE/
TEMPFILE/
ASMCMD> mkdir wallet
ASMCMD> cd wallet
ASMCMD> mkdir tde
</code></pre>
<p><b>Step 2. Update parameter Wallet_Root</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><code>
[oracle@dm01db01 ~]$ sqlplus / as sysdba
SQL*Plus: Release 19.0.0.0.0 - Production on Thu Mar 7 22:54:37 2024
Version 19.22.0.0.0
Copyright (c) 1982, 2023, Oracle. All rights reserved.
Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.22.0.0.0
SQL> col DB_UPTIME for a35
col DATABASE_ROLE for a20
col DB_VERSION for a20
set lines 200
col LOG_MODE for a20
set pages 9999 lines 300
col OPEN_MODE for a10
col HOST_NAME for a30
select name DB_NAME,HOST_NAME,DATABASE_ROLE,OPEN_MODE,version DB_VERSION,LOGINS,LOG_MODE,to_char(STARTUP_TIME,'DD-MON-YYYY HH24:MI:SS') "DB_UPTIME" from v$database,gv$instance;
SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL>
DB_NAME HOST_NAME DATABASE_ROLE OPEN_MODE DB_VERSION LOGINS LOG_MODE DB_UPTIME
--------- ------------------------------ -------------------- ---------- -------------------- ---------- -------------------- -----------------------------------
CDBFLY dm01db01.database.com PRIMARY READ WRITE 19.0.0.0.0 ALLOWED ARCHIVELOG 07-MAR-2024 00:26:52
SQL> show parameter tde
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
one_step_plugin_for_pdb_with_tde boolean FALSE
tde_configuration string
SQL>
SQL> alter system set WALLET_ROOT='+DATA/CDBFLY/wallet' scope=spfile;
System altered.
</code></pre>
<p><b>Step 3. Restart Database</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><code>
[oracle@dm01db01 ~]$ srvctl stop database -d CDBFLY
[oracle@dm01db01 ~]$ srvctl start database -d CDBFLY
</code></pre>
<p><b>Step 4. Update parameter TDE_CONFIGURATION</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><code>
[oracle@dm01db01 ~]$ sqlplus / as sysdba
SQL*Plus: Release 19.0.0.0.0 - Production on Thu Mar 7 23:06:16 2024
Version 19.22.0.0.0
Copyright (c) 1982, 2023, Oracle. All rights reserved.
Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.22.0.0.0
SQL> show con_name
CON_NAME
------------------------------
CDB$ROOT
SQL> show parameter WALLET_ROOT
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
wallet_root string +DATA/CDBFLY/wallet
SQL>
SQL> show parameter tde
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
one_step_plugin_for_pdb_with_tde boolean FALSE
tde_configuration string
SQL> alter system set TDE_CONFIGURATION="KEYSTORE_CONFIGURATION=FILE";
System altered.
SQL> show parameter tde_configuration
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
tde_configuration string KEYSTORE_CONFIGURATION=FILE
col wrl_type for a15
col wrl_parameter for a40
set lines 200
select * from v$encryption_wallet;
SQL> col wrl_type for a15
col wrl_parameter for a40
set lines 200
select * from v$encryption_wallet;SQL> SQL> SQL>
WRL_TYPE WRL_PARAMETER STATUS WALLET_TYPE WALLET_OR KEYSTORE FULLY_BAC CON_ID
--------------- ---------------------------------------- ------------------------------ -------------------- --------- -------- --------- ----------
ASM +DATA/CDBFLY/wallet/tde/ NOT_AVAILABLE UNKNOWN SINGLE NONE UNDEFINED 1
ASM NOT_AVAILABLE UNKNOWN SINGLE UNITED UNDEFINED 2
ASM NOT_AVAILABLE UNKNOWN SINGLE UNITED UNDEFINED 3
SQL>
</code></pre>
<p><b>Step 5. Create KEYSTORE for container</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><code>
SQL> col wrl_type for a15
col wrl_parameter for a40
set lines 200
select * from v$encryption_wallet;SQL> SQL> SQL>
WRL_TYPE WRL_PARAMETER STATUS WALLET_TYPE WALLET_OR KEYSTORE FULLY_BAC CON_ID
--------------- ---------------------------------------- ------------------------------ -------------------- --------- -------- --------- ----------
ASM +DATA/CDBFLY/wallet/tde/ NOT_AVAILABLE UNKNOWN SINGLE NONE UNDEFINED 1
ASM NOT_AVAILABLE UNKNOWN SINGLE UNITED UNDEFINED 2
ASM NOT_AVAILABLE UNKNOWN SINGLE UNITED UNDEFINED 3
SQL> administer key management create keystore identified by sultandba;
keystore altered.
SQL> administer key management set keystore open identified by sultandba;
keystore altered.
SQL> administer key management set key identified by sultandba with backup;
keystore altered.
SQL> select * from v$encryption_wallet;
WRL_TYPE WRL_PARAMETER STATUS WALLET_TYPE WALLET_OR KEYSTORE FULLY_BAC CON_ID
--------------- ---------------------------------------- ------------------------------ -------------------- --------- -------- --------- ----------
ASM +DATA/CDBFLY/wallet/tde/ OPEN PASSWORD SINGLE NONE NO 1
ASM CLOSED UNKNOWN SINGLE UNITED UNDEFINED 2
ASM CLOSED UNKNOWN SINGLE UNITED UNDEFINED 3
</code></pre>
<p><b>Step 6. Create KEYSTORE for PDB(FLYDB)</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><code>
SQL> alter session set container=FLYDB;
Session altered.
SQL> administer key management set keystore open identified by sultandba;
keystore altered.
SQL> alter pluggable database FLYDB open read write;
Pluggable database altered.
SQL> administer key management set key identified by sultandba with backup;
keystore altered.
SQL> select * from v$encryption_wallet;
WRL_TYPE WRL_PARAMETER STATUS WALLET_TYPE WALLET_OR KEYSTORE FULLY_BAC CON_ID
--------------- ---------------------------------------- ------------------------------ -------------------- --------- -------- --------- ----------
ASM OPEN PASSWORD SINGLE UNITED NO 3
</code></pre>
<p><b>Step 7. Create an Auto-Login or a Local Auto-Login Software Keystore</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><code>
SQL> conn / as sysdba
Connected.
SQL>
SQL> show con_name
CON_NAME
------------------------------
CDB$ROOT
SQL> administer key management create auto_login keystore from keystore '+DATA/CDBFLY/wallet/tde' identified by sultandba;
keystore altered.
SQL> select * from v$encryption_wallet;
WRL_TYPE WRL_PARAMETER STATUS WALLET_TYPE WALLET_OR KEYSTORE FULLY_BAC CON_ID
--------------- ---------------------------------------- ------------------------------ -------------------- --------- -------- --------- ----------
ASM +DATA/CDBFLY/wallet/tde/ OPEN PASSWORD SINGLE NONE NO 1
ASM CLOSED UNKNOWN SINGLE UNITED UNDEFINED 2
ASM OPEN PASSWORD SINGLE UNITED NO 3
</code></pre>
<p><b>Step 8. Restart Database</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><code>
[oracle@dm01db01 ~]$ srvctl stop database -d CDBFLY
[oracle@dm01db01 ~]$ srvctl start database -d CDBFLY
</code></pre>
<p><b>Step 9. Check database wallet Autologin</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><code>
[oracle@dm01db01 ~]$ sqlplus / as sysdba
SQL*Plus: Release 19.0.0.0.0 - Production on Thu Mar 7 23:54:59 2024
Version 19.22.0.0.0
Copyright (c) 1982, 2023, Oracle. All rights reserved.
Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.22.0.0.0
SQL> col wrl_type for a15
col wrl_parameter for a40
set lines 200
select * from v$encryption_wallet;
SQL> SQL> SQL>
WRL_TYPE WRL_PARAMETER STATUS WALLET_TYPE WALLET_OR KEYSTORE FULLY_BAC CON_ID
--------------- ---------------------------------------- ------------------------------ -------------------- --------- -------- --------- ----------
ASM +DATA/CDBFLY/wallet/tde/ OPEN AUTOLOGIN SINGLE NONE NO 1
ASM OPEN AUTOLOGIN SINGLE UNITED NO 2
ASM OPEN AUTOLOGIN SINGLE UNITED NO 3
SQL> show con_name
CON_NAME
------------------------------
CDB$ROOT
SQL>
SQL> alter session set container=FLYDB;
Session altered.
SQL> alter pluggable database FLYDB open read write;
Pluggable database altered.
SQL> select * from v$encryption_wallet;
WRL_TYPE WRL_PARAMETER STATUS WALLET_TYPE WALLET_OR KEYSTORE FULLY_BAC CON_ID
--------------- ---------------------------------------- ------------------------------ -------------------- --------- -------- --------- ----------
ASM OPEN AUTOLOGIN SINGLE UNITED NO 3
col KEY_ID for a55
col TAG for a20
col CREATION_TIME for a55
set lines 200
select key_id,tag,keystore_type,creation_time from v$encryption_keys;
KEY_ID TAG KEYSTORE_TYPE CREATION_TIME
------------------------------------------------------- -------------------- ----------------- -------------------------------------------------------
AbnJyo9PJE8SvzBl2I39Jk4AAAAAAAAAAAAAAAAAAAAAAAAAAAAA SOFTWARE KEYSTORE 07-MAR-24 06.04.20.241879 PM +00:00
AUH1/BX6e08av2h+OnxKezkAAAAAAAAAAAAAAAAAAAAAAAAAAAAA SOFTWARE KEYSTORE 07-MAR-24 06.01.00.853910 PM +00:00
SQL> column name format a40
select name,guid from v$pdbs;SQL>
NAME GUID
---------------------------------------- --------------------------------
PDB$SEED 12EFB52A80DDA374E0639188A8C03E28
FLYDB 12F01259575FB709E0639188A8C091D2
</code></pre>
<p><b>Step 10.Recreate Temp tablespace CDB$ROOT container</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><code>
SQL> show con_name
CON_NAME
------------------------------
CDB$ROOT
SQL>
SQL> create temporary tablespace temp_new tempfile '+DATA' size 2G encryption encrypt;
Tablespace created.
SQL> alter database default temporary tablespace temp_new;
Database altered.
SQL> drop tablespace temp including contents and datafiles;
Tablespace dropped.
SQL> create temporary tablespace temp tempfile '+DATA' size 2G encryption encrypt;
Tablespace created.
SQL> alter database default temporary tablespace temp;
Database altered.
SQL> drop tablespace temp_new including contents and datafiles;
Tablespace dropped.
SQL> select 'ALTER TABLESPACE '||tablespace_name||' ENCRYPTION ONLINE ENCRYPT;' from dba_tablespaces where tablespace_name not in ('TEMP') and encrypted='NO';
'ALTERTABLESPACE'||TABLESPACE_NAME||'ENCRYPTIONONLINEENCRYPT;'
--------------------------------------------------------------------------
ALTER TABLESPACE SYSTEM ENCRYPTION ONLINE ENCRYPT;
ALTER TABLESPACE SYSAUX ENCRYPTION ONLINE ENCRYPT;
ALTER TABLESPACE UNDOTBS1 ENCRYPTION ONLINE ENCRYPT;
ALTER TABLESPACE USERS ENCRYPTION ONLINE ENCRYPT;
SQL> ALTER TABLESPACE SYSTEM ENCRYPTION ONLINE ENCRYPT;
Tablespace altered.
SQL> ALTER TABLESPACE SYSAUX ENCRYPTION ONLINE ENCRYPT;
Tablespace altered.
SQL> ALTER TABLESPACE UNDOTBS1 ENCRYPTION ONLINE ENCRYPT;
Tablespace altered.
SQL> ALTER TABLESPACE USERS ENCRYPTION ONLINE ENCRYPT;
Tablespace altered.
SQL> select TABLESPACE_NAME,ENCRYPTED from dba_tablespaces;
TABLESPACE_NAME ENC
------------------------------ ---
SYSTEM YES
SYSAUX YES
UNDOTBS1 YES
TEMP YES
USERS YES
SQL> show con_name
CON_NAME
------------------------------
CDB$ROOT
</code></pre>
<p><b>Step 11.Drop and recreate temp tspace for the pdb (FLYDB)</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><code>
SQL> alter session set container=FLYDB;
Session altered.
SQL> show con_name
CON_NAME
------------------------------
FLYDB
SQL>
SQL> show pdbs
CON_ID CON_NAME OPEN MODE RESTRICTED
---------- ------------------------------ ---------- ----------
3 FLYDB READ WRITE NO
SQL>
SQL> select tablespace_name from dba_temp_files;
TABLESPACE_NAME
------------------------------
TEMP
SQL> create temporary tablespace temp_new tempfile '+DATA' size 2G encryption encrypt;
Tablespace created.
SQL> alter database default temporary tablespace temp_new;
Database altered.
SQL> drop tablespace temp including contents and datafiles;
Tablespace dropped.
SQL> create temporary tablespace temp tempfile '+DATA' size 2G encryption encrypt;
Tablespace created.
SQL> alter database default temporary tablespace temp;
Database altered.
SQL> drop tablespace temp_new including contents and datafiles;
Tablespace dropped.
SQL>
SQL> select 'ALTER TABLESPACE '||tablespace_name||' ENCRYPTION ONLINE ENCRYPT;' from dba_tablespaces where tablespace_name not in ('TEMP') and encrypted='NO';
'ALTERTABLESPACE'||TABLESPACE_NAME||'ENCRYPTIONONLINEENCRYPT;'
--------------------------------------------------------------------------
ALTER TABLESPACE SYSTEM ENCRYPTION ONLINE ENCRYPT;
ALTER TABLESPACE SYSAUX ENCRYPTION ONLINE ENCRYPT;
ALTER TABLESPACE UNDOTBS1 ENCRYPTION ONLINE ENCRYPT;
ALTER TABLESPACE USERS ENCRYPTION ONLINE ENCRYPT;
SQL> ALTER TABLESPACE SYSTEM ENCRYPTION ONLINE ENCRYPT;
Tablespace altered.
SQL> ALTER TABLESPACE SYSAUX ENCRYPTION ONLINE ENCRYPT;
Tablespace altered.
SQL> ALTER TABLESPACE UNDOTBS1 ENCRYPTION ONLINE ENCRYPT;
Tablespace altered.
SQL> ALTER TABLESPACE USERS ENCRYPTION ONLINE ENCRYPT;
Tablespace altered.
</code></pre>
</div>
<p><b>Hope This Help's</b></p>
<p><b>See You Next Post</b></p>
<p><b>Regards</b></p>
<p><b>Sultan Khan</b></p>Sultan Khanhttp://www.blogger.com/profile/12933538356533244884noreply@blogger.com0tag:blogger.com,1999:blog-399436389180403563.post-57492328854009387102024-02-01T00:54:00.002+05:302024-02-01T13:49:13.517+05:30Autoupgrade migration from non cdb to pdb oracle 19c<p><b>Hello Friend's,</b></p>
<p><b>In This Post we will discuss about how to migrate database from Noncdb to PDB 19.3 using autoupgrade utility</b></p>
<p><b>So let's get started</b></p>
<p><b>Enviornment Used for Activity Noncdb to PDB :</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><code>
Source :
Hostname : MUMSX0019c.database.com
Database : MIGDB
Version : 19.3.0
CDB/PDB : NON CDB/PDB
Oacle_Home : /oracle/app/orawork/product/19.0.0/db_1
OS : OEL 8.4
Target :
Hostname : MUMSX0019c.database.com
Database : CDBMIG
PDB : MIGDB
Version : 19.3.0
CDB/PDB : Yes
Oacle_Home : /oracle/app/orawork/product/19.0.0/db_1
OS : OEL 8.4
</code></pre>
<p><b>The Oracle AutoUpgrade software can be used to migrate a database from a non-CDB to a CDB (Container Database). The following are the steps for using AutoUpgrade in this Activity.</b></p>
<p><b>Database Status Before Migration : </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><code>
DB_NAME HOST_NAME DATABASE_ROLE OPEN_MODE DB_VERSION LOGINS LOG_MODE DB_UPTIME
--------- ------------------------------ -------------------- ---------- -------------------- ---------- -------------------- -----------------------------------
MIGDB MUMSX0019c.database.com PRIMARY READ WRITE 19.0.0.0.0 ALLOWED ARCHIVELOG 31-JAN-2024 17:41:20
</code></pre>
<p><b>Prepare the Configuration File:</b></p>
<p>Create a configuration file that includes the source (non-CDB) and target (CDB) details, such as Oracle Home directories, database names, versions, and other important factors.
Specify the target_cdb argument to indicate which Container Database you wish to migrate.</p>
<pre data-codetype="auto" title="BOX-TITLE"><code>
global.autoupg_log_dir=/oracle/Autoupgrade/global_logs
upg1.log_dir=/oracle/Autoupgrade/convert_PDB_logs/
upg1.source_home=/oracle/app/orawork/product/19.0.0/db_1
upg1.target_home=/oracle/app/orawork/product/19.0.0/db_1
upg1.sid=MIGDB
upg1.target_cdb=CDBMIG
</code></pre>
<p><b>Prechecks:</b></p>
<p>Run AutoUpgrade in "analyze" mode to run prechecks. This phase ensures that the source database is ready to migrate to the target CDB.</p>
<p>Command : ./java -jar /oracle/Autoupgrade/autoupgrade.jar -config /oracle/Autoupgrade/noncdb_to_pdb.cfg -mode analyze</p>
<pre data-codetype="auto" title="BOX-TITLE"><code>
[oracle@MUMSX0019c bin]$ ./java -jar /oracle/Autoupgrade/autoupgrade.jar -config /oracle/Autoupgrade/noncdb_to_pdb.cfg -mode analyze
AutoUpgrade 23.4.230921 launched with default internal options
Processing config file ...
+--------------------------------+
| Starting AutoUpgrade execution |
+--------------------------------+
1 Non-CDB(s) will be analyzed
Type 'help' to list console commands
upg> Job 100 completed
----- Execute AutoUpgrade in DEPLOY mode directly ----
ANALYZE and FIXUPS modes are not run when converting a Non-CDB database to a PDB
where the source and the target homes are the same version.
Job 100 for MIGDB
------------------- Final Summary --------------------
Number of databases [ 1 ]
Jobs finished [1]
Jobs failed [0]
</code></pre>
<p><b>Perform Migration:</b></p>
<p>Run AutoUpgrade in "deploy" mode to start the migration process.</p>
<p>Command : nohup java -jar /oracle/Autoupgrade/autoupgrade.jar -config /oracle/Autoupgrade/noncdb_to_pdb.cfg -mode deploy -noconsole &</p>
<pre data-codetype="auto" title="BOX-TITLE"><code>
[oracle@MUMSX0019c bin]$ java -jar /oracle/Autoupgrade/autoupgrade.jar -config /oracle/Autoupgrade/noncdb_to_pdb.cfg -mode deploy -noconsole
AutoUpgrade is not fully tested on OpenJDK 64-Bit Server VM, Oracle recommends to use Java HotSpot(TM)
AutoUpgrade 23.4.230921 launched with default internal options
Processing config file ...
+--------------------------------+
| Starting AutoUpgrade execution |
+--------------------------------+
1 Non-CDB(s) will be processed
Job 101 database migdb
+----+-------+-----------+---------+-------+----------+-------+------------------+
|Job#|DB_NAME| STAGE|OPERATION| STATUS|START_TIME|UPDATED| MESSAGE|
+----+-------+-----------+---------+-------+----------+-------+------------------+
| 101| MIGDB|NONCDBTOPDB|EXECUTING|RUNNING| 19:33:04|10s ago|Executing describe|
+----+-------+-----------+---------+-------+----------+-------+------------------+
Total jobs 1
+----+-------+-----------+---------+-------+----------+-------+------------------+
|Job#|DB_NAME| STAGE|OPERATION| STATUS|START_TIME|UPDATED| MESSAGE|
+----+-------+-----------+---------+-------+----------+-------+------------------+
| 101| MIGDB|NONCDBTOPDB|EXECUTING|RUNNING| 19:33:04| 2s ago|Executing describe|
+----+-------+-----------+---------+-------+----------+-------+------------------+
Total jobs 1
+----+-------+-----------+---------+-------+----------+-------+------------------+
|Job#|DB_NAME| STAGE|OPERATION| STATUS|START_TIME|UPDATED| MESSAGE|
+----+-------+-----------+---------+-------+----------+-------+------------------+
| 101| MIGDB|NONCDBTOPDB|EXECUTING|RUNNING| 19:33:04|14s ago|Executing describe|
+----+-------+-----------+---------+-------+----------+-------+------------------+
Total jobs 1
+----+-------+-----------+---------+-------+----------+-------+------------------+
|Job#|DB_NAME| STAGE|OPERATION| STATUS|START_TIME|UPDATED| MESSAGE|
+----+-------+-----------+---------+-------+----------+-------+------------------+
| 101| MIGDB|NONCDBTOPDB|EXECUTING|RUNNING| 19:33:04|44s ago|Executing describe|
+----+-------+-----------+---------+-------+----------+-------+------------------+
Total jobs 1
+----+-------+-----------+---------+-------+----------+-------+------------------+
|Job#|DB_NAME| STAGE|OPERATION| STATUS|START_TIME|UPDATED| MESSAGE|
+----+-------+-----------+---------+-------+----------+-------+------------------+
| 101| MIGDB|NONCDBTOPDB|EXECUTING|RUNNING| 19:33:04| 5s ago|noncdb_to_pdb - 0%|
+----+-------+-----------+---------+-------+----------+-------+------------------+
Total jobs 1
+----+-------+-----------+---------+-------+----------+-------+-------------------+
|Job#|DB_NAME| STAGE|OPERATION| STATUS|START_TIME|UPDATED| MESSAGE|
+----+-------+-----------+---------+-------+----------+-------+-------------------+
| 101| MIGDB|NONCDBTOPDB|EXECUTING|RUNNING| 19:33:04| 5s ago|noncdb_to_pdb - 40%|
+----+-------+-----------+---------+-------+----------+-------+-------------------+
Total jobs 1
+----+-------+-----------+---------+-------+----------+-------+-------------------+
|Job#|DB_NAME| STAGE|OPERATION| STATUS|START_TIME|UPDATED| MESSAGE|
+----+-------+-----------+---------+-------+----------+-------+-------------------+
| 101| MIGDB|NONCDBTOPDB|EXECUTING|RUNNING| 19:33:04| 5s ago|noncdb_to_pdb - 60%|
+----+-------+-----------+---------+-------+----------+-------+-------------------+
Total jobs 1
+----+-------+-----------+---------+-------+----------+-------+-------------------+
|Job#|DB_NAME| STAGE|OPERATION| STATUS|START_TIME|UPDATED| MESSAGE|
+----+-------+-----------+---------+-------+----------+-------+-------------------+
| 101| MIGDB|NONCDBTOPDB|EXECUTING|RUNNING| 19:33:04| 5s ago|noncdb_to_pdb - 70%|
+----+-------+-----------+---------+-------+----------+-------+-------------------+
Total jobs 1
+----+-------+-----------+---------+-------+----------+-------+-------------------+
|Job#|DB_NAME| STAGE|OPERATION| STATUS|START_TIME|UPDATED| MESSAGE|
+----+-------+-----------+---------+-------+----------+-------+-------------------+
| 101| MIGDB|NONCDBTOPDB|EXECUTING|RUNNING| 19:33:04|35s ago|noncdb_to_pdb - 70%|
+----+-------+-----------+---------+-------+----------+-------+-------------------+
Total jobs 1
+----+-------+-----------+---------+-------+----------+-------+----------------+
|Job#|DB_NAME| STAGE|OPERATION| STATUS|START_TIME|UPDATED| MESSAGE|
+----+-------+-----------+---------+-------+----------+-------+----------------+
| 101| MIGDB|NONCDBTOPDB|EXECUTING|RUNNING| 19:33:04| 4s ago|80% utlrp 24,342|
+----+-------+-----------+---------+-------+----------+-------+----------------+
Total jobs 1
+----+-------+-----------+---------+-------+----------+-------+----------------+
|Job#|DB_NAME| STAGE|OPERATION| STATUS|START_TIME|UPDATED| MESSAGE|
+----+-------+-----------+---------+-------+----------+-------+----------------+
| 101| MIGDB|NONCDBTOPDB|EXECUTING|RUNNING| 19:33:04| 2s ago|80% utlrp 22,588|
+----+-------+-----------+---------+-------+----------+-------+----------------+
Total jobs 1
+----+-------+-----------+---------+-------+----------+-------+----------------+
|Job#|DB_NAME| STAGE|OPERATION| STATUS|START_TIME|UPDATED| MESSAGE|
+----+-------+-----------+---------+-------+----------+-------+----------------+
| 101| MIGDB|NONCDBTOPDB|EXECUTING|RUNNING| 19:33:04| 1s ago|80% utlrp 21,748|
+----+-------+-----------+---------+-------+----------+-------+----------------+
Total jobs 1
+----+-------+-----------+---------+-------+----------+-------+----------------+
|Job#|DB_NAME| STAGE|OPERATION| STATUS|START_TIME|UPDATED| MESSAGE|
+----+-------+-----------+---------+-------+----------+-------+----------------+
| 101| MIGDB|NONCDBTOPDB|EXECUTING|RUNNING| 19:33:04| 0s ago|80% utlrp 19,922|
+----+-------+-----------+---------+-------+----------+-------+----------------+
Total jobs 1
+----+-------+-----------+---------+-------+----------+-------+----------------+
|Job#|DB_NAME| STAGE|OPERATION| STATUS|START_TIME|UPDATED| MESSAGE|
+----+-------+-----------+---------+-------+----------+-------+----------------+
| 101| MIGDB|NONCDBTOPDB|EXECUTING|RUNNING| 19:33:04|30s ago|80% utlrp 19,922|
+----+-------+-----------+---------+-------+----------+-------+----------------+
Total jobs 1
+----+-------+-----------+---------+-------+----------+-------+----------------+
|Job#|DB_NAME| STAGE|OPERATION| STATUS|START_TIME|UPDATED| MESSAGE|
+----+-------+-----------+---------+-------+----------+-------+----------------+
| 101| MIGDB|NONCDBTOPDB|EXECUTING|RUNNING| 19:33:04|29s ago|80% utlrp 18,358|
+----+-------+-----------+---------+-------+----------+-------+----------------+
Total jobs 1
+----+-------+-----------+---------+-------+----------+-------+----------------+
|Job#|DB_NAME| STAGE|OPERATION| STATUS|START_TIME|UPDATED| MESSAGE|
+----+-------+-----------+---------+-------+----------+-------+----------------+
| 101| MIGDB|NONCDBTOPDB|EXECUTING|RUNNING| 19:33:04|28s ago|80% utlrp 16,871|
+----+-------+-----------+---------+-------+----------+-------+----------------+
Total jobs 1
+----+-------+-----------+---------+-------+----------+-------+----------------+
|Job#|DB_NAME| STAGE|OPERATION| STATUS|START_TIME|UPDATED| MESSAGE|
+----+-------+-----------+---------+-------+----------+-------+----------------+
| 101| MIGDB|NONCDBTOPDB|EXECUTING|RUNNING| 19:33:04|27s ago|80% utlrp 13,072|
+----+-------+-----------+---------+-------+----------+-------+----------------+
Total jobs 1
+----+-------+-----------+---------+-------+----------+-------+---------------+
|Job#|DB_NAME| STAGE|OPERATION| STATUS|START_TIME|UPDATED| MESSAGE|
+----+-------+-----------+---------+-------+----------+-------+---------------+
| 101| MIGDB|NONCDBTOPDB|EXECUTING|RUNNING| 19:33:04|26s ago|80% utlrp 9,349|
+----+-------+-----------+---------+-------+----------+-------+---------------+
Total jobs 1
+----+-------+-----------+---------+-------+----------+-------+---------------+
|Job#|DB_NAME| STAGE|OPERATION| STATUS|START_TIME|UPDATED| MESSAGE|
+----+-------+-----------+---------+-------+----------+-------+---------------+
| 101| MIGDB|NONCDBTOPDB|EXECUTING|RUNNING| 19:33:04|25s ago|80% utlrp 6,868|
+----+-------+-----------+---------+-------+----------+-------+---------------+
Total jobs 1
+----+-------+-----------+---------+-------+----------+-------+---------------+
|Job#|DB_NAME| STAGE|OPERATION| STATUS|START_TIME|UPDATED| MESSAGE|
+----+-------+-----------+---------+-------+----------+-------+---------------+
| 101| MIGDB|NONCDBTOPDB|EXECUTING|RUNNING| 19:33:04|24s ago|80% utlrp 5,919|
+----+-------+-----------+---------+-------+----------+-------+---------------+
Total jobs 1
+----+-------+-----------+---------+-------+----------+-------+---------------+
|Job#|DB_NAME| STAGE|OPERATION| STATUS|START_TIME|UPDATED| MESSAGE|
+----+-------+-----------+---------+-------+----------+-------+---------------+
| 101| MIGDB|NONCDBTOPDB|EXECUTING|RUNNING| 19:33:04|22s ago|80% utlrp 5,426|
+----+-------+-----------+---------+-------+----------+-------+---------------+
Total jobs 1
+----+-------+-----------+---------+-------+----------+-------+---------------+
|Job#|DB_NAME| STAGE|OPERATION| STATUS|START_TIME|UPDATED| MESSAGE|
+----+-------+-----------+---------+-------+----------+-------+---------------+
| 101| MIGDB|NONCDBTOPDB|EXECUTING|RUNNING| 19:33:04|21s ago|80% utlrp 3,189|
+----+-------+-----------+---------+-------+----------+-------+---------------+
Total jobs 1
+----+-------+-----------+---------+-------+----------+-------+---------------+
|Job#|DB_NAME| STAGE|OPERATION| STATUS|START_TIME|UPDATED| MESSAGE|
+----+-------+-----------+---------+-------+----------+-------+---------------+
| 101| MIGDB|NONCDBTOPDB|EXECUTING|RUNNING| 19:33:04|20s ago|80% utlrp 2,280|
+----+-------+-----------+---------+-------+----------+-------+---------------+
Total jobs 1
+----+-------+-----------+---------+-------+----------+-------+---------------+
|Job#|DB_NAME| STAGE|OPERATION| STATUS|START_TIME|UPDATED| MESSAGE|
+----+-------+-----------+---------+-------+----------+-------+---------------+
| 101| MIGDB|NONCDBTOPDB|EXECUTING|RUNNING| 19:33:04|19s ago|80% utlrp 1,892|
+----+-------+-----------+---------+-------+----------+-------+---------------+
Total jobs 1
+----+-------+-----------+---------+-------+----------+-------+-------------+
|Job#|DB_NAME| STAGE|OPERATION| STATUS|START_TIME|UPDATED| MESSAGE|
+----+-------+-----------+---------+-------+----------+-------+-------------+
| 101| MIGDB|NONCDBTOPDB|EXECUTING|RUNNING| 19:33:04|18s ago|80% utlrp 966|
+----+-------+-----------+---------+-------+----------+-------+-------------+
Total jobs 1
+----+-------+-----------+---------+-------+----------+-------+-------------+
|Job#|DB_NAME| STAGE|OPERATION| STATUS|START_TIME|UPDATED| MESSAGE|
+----+-------+-----------+---------+-------+----------+-------+-------------+
| 101| MIGDB|NONCDBTOPDB|EXECUTING|RUNNING| 19:33:04|17s ago|80% utlrp 603|
+----+-------+-----------+---------+-------+----------+-------+-------------+
Total jobs 1
+----+-------+-----------+---------+-------+----------+-------+-------------+
|Job#|DB_NAME| STAGE|OPERATION| STATUS|START_TIME|UPDATED| MESSAGE|
+----+-------+-----------+---------+-------+----------+-------+-------------+
| 101| MIGDB|NONCDBTOPDB|EXECUTING|RUNNING| 19:33:04|16s ago|80% utlrp 255|
+----+-------+-----------+---------+-------+----------+-------+-------------+
Total jobs 1
+----+-------+-----------+---------+-------+----------+-------+------------+
|Job#|DB_NAME| STAGE|OPERATION| STATUS|START_TIME|UPDATED| MESSAGE|
+----+-------+-----------+---------+-------+----------+-------+------------+
| 101| MIGDB|NONCDBTOPDB|EXECUTING|RUNNING| 19:33:04|14s ago|80% utlrp 29|
+----+-------+-----------+---------+-------+----------+-------+------------+
Total jobs 1
+----+-------+-----------+---------+-------+----------+-------+------------+
|Job#|DB_NAME| STAGE|OPERATION| STATUS|START_TIME|UPDATED| MESSAGE|
+----+-------+-----------+---------+-------+----------+-------+------------+
| 101| MIGDB|NONCDBTOPDB|EXECUTING|RUNNING| 19:33:04|13s ago|80% utlrp 22|
+----+-------+-----------+---------+-------+----------+-------+------------+
Total jobs 1
+----+-------+-----------+---------+-------+----------+-------+------------+
|Job#|DB_NAME| STAGE|OPERATION| STATUS|START_TIME|UPDATED| MESSAGE|
+----+-------+-----------+---------+-------+----------+-------+------------+
| 101| MIGDB|NONCDBTOPDB|EXECUTING|RUNNING| 19:33:04|12s ago|80% utlrp 17|
+----+-------+-----------+---------+-------+----------+-------+------------+
Total jobs 1
+----+-------+-----------+---------+-------+----------+-------+------------+
|Job#|DB_NAME| STAGE|OPERATION| STATUS|START_TIME|UPDATED| MESSAGE|
+----+-------+-----------+---------+-------+----------+-------+------------+
| 101| MIGDB|NONCDBTOPDB|EXECUTING|RUNNING| 19:33:04|11s ago|80% utlrp 12|
+----+-------+-----------+---------+-------+----------+-------+------------+
Total jobs 1
+----+-------+-----------+---------+-------+----------+-------+-----------+
|Job#|DB_NAME| STAGE|OPERATION| STATUS|START_TIME|UPDATED| MESSAGE|
+----+-------+-----------+---------+-------+----------+-------+-----------+
| 101| MIGDB|NONCDBTOPDB|EXECUTING|RUNNING| 19:33:04|10s ago|80% utlrp 8|
+----+-------+-----------+---------+-------+----------+-------+-----------+
Total jobs 1
+----+-------+-----------+---------+-------+----------+-------+-----------+
|Job#|DB_NAME| STAGE|OPERATION| STATUS|START_TIME|UPDATED| MESSAGE|
+----+-------+-----------+---------+-------+----------+-------+-----------+
| 101| MIGDB|NONCDBTOPDB|EXECUTING|RUNNING| 19:33:04| 9s ago|80% utlrp 4|
+----+-------+-----------+---------+-------+----------+-------+-----------+
Total jobs 1
+----+-------+-----------+---------+-------+----------+-------+-----------+
|Job#|DB_NAME| STAGE|OPERATION| STATUS|START_TIME|UPDATED| MESSAGE|
+----+-------+-----------+---------+-------+----------+-------+-----------+
| 101| MIGDB|NONCDBTOPDB|EXECUTING|RUNNING| 19:33:04| 8s ago|80% utlrp 0|
+----+-------+-----------+---------+-------+----------+-------+-----------+
Total jobs 1
+----+-------+---------+---------+-------+----------+-------+-------+
|Job#|DB_NAME| STAGE|OPERATION| STATUS|START_TIME|UPDATED|MESSAGE|
+----+-------+---------+---------+-------+----------+-------+-------+
| 101| MIGDB|DBUPGRADE|EXECUTING|RUNNING| 19:33:04| 6s ago|Running|
+----+-------+---------+---------+-------+----------+-------+-------+
Total jobs 1
+----+-------+---------+---------+-------+----------+-------+-----------------+
|Job#|DB_NAME| STAGE|OPERATION| STATUS|START_TIME|UPDATED| MESSAGE|
+----+-------+---------+---------+-------+----------+-------+-----------------+
| 101| MIGDB|DBUPGRADE|EXECUTING|RUNNING| 19:33:04| 4s ago|90%Patching MIGDB|
+----+-------+---------+---------+-------+----------+-------+-----------------+
Total jobs 1
Job 101 completed
------------------- Final Summary --------------------
Number of databases [ 1 ]
Jobs finished [1]
Jobs failed [0]
Jobs restored [0]
Jobs pending [0]
Please check the summary report at:
/oracle/Autoupgrade/global_logs/cfgtoollogs/upgrade/auto/status/status.html
/oracle/Autoupgrade/global_logs/cfgtoollogs/upgrade/auto/status/status.log
</code></pre>
<p><b>Status HTML :</b></p>
<div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4yXcfkbuGdBtv7MSBSifvTNILaZgxJA6D5UqdmB4dPnEA6pCY45MTv0cBLgnnbhgN8tM4YS413XfLbn9tWxqYwhsWJagZUJI3H5t59T28dFOEjI1BQLJng5A9s7DYCfZHBbxjivG_Y-R0tMyUKOOITpbE02R87WnXB-s3Tl28JeYjj6lNoyK68HtIKct1/s1600/Status_html.png" style="clear: left; display: block; float: left; padding: 1em 0px; text-align: center;"><img alt="" border="0" data-original-height="595" data-original-width="1166" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4yXcfkbuGdBtv7MSBSifvTNILaZgxJA6D5UqdmB4dPnEA6pCY45MTv0cBLgnnbhgN8tM4YS413XfLbn9tWxqYwhsWJagZUJI3H5t59T28dFOEjI1BQLJng5A9s7DYCfZHBbxjivG_Y-R0tMyUKOOITpbE02R87WnXB-s3Tl28JeYjj6lNoyK68HtIKct1/s1600/Status_html.png" /></a></div>
<p><b>Summary report :</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><code>
********************************************************************************
Datapatch Apply Summary Report for MIGDB
Return code = 0 SUCCESS
Failure reason = null
Total time = 21.6930019855499
Install patches = 0
Database Open = SUCCESS
Invocation Log = /oracle/app/orawork/cfgtoollogs/sqlpatch/sqlpatch_31174_2024_01_31_19_50_57/sqlpatch_invocation.log
Bootstrap Required = 0
Bootstrap Status = N/A
Bootstrap Log = N/A
Total patches = 0
</code></pre>
<p><b>Migration complete HTML :</b></p>
<div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjT1mI3VpwIdajtr_sXAfam2UGmSUpaCP7pg1vffjSh9PdLl-7UU0NKrQTEDeTASAi9pkcCO9G1pjZ_niT12n2FbAjX4y-Zmn9ARz0lDkQsjfhcLvuyuOPjq6dgByAzMgmCDRENaYwz3UAo76Vtr4VuTEjSlhvxy88hkeWcjiujlqMYl9_xkl_m0XgpkYyG/s1600/Migration_complete_status.png" style="clear: left; display: block; float: left; padding: 1em 0px; text-align: center;"><img alt="" border="0" data-original-height="276" data-original-width="1042" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjT1mI3VpwIdajtr_sXAfam2UGmSUpaCP7pg1vffjSh9PdLl-7UU0NKrQTEDeTASAi9pkcCO9G1pjZ_niT12n2FbAjX4y-Zmn9ARz0lDkQsjfhcLvuyuOPjq6dgByAzMgmCDRENaYwz3UAo76Vtr4VuTEjSlhvxy88hkeWcjiujlqMYl9_xkl_m0XgpkYyG/s1600/Migration_complete_status.png" /></a></div>
<p><b>Monitor Upgrade Progress:</b></p>
<p>I have used noconsole in the command so all the things are on the cmd you can also user -console in command and check the status using below commands :
1) lsj
2) status
Or
you can monitor the logs created by autoupgrade process</p>
<p><b>Database Status After Migration :</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><code>
[oracle@MUMSX0019c bin]$ . oraenv
ORACLE_SID = [MIGDB] ? CDBMIG
The Oracle base remains unchanged with value /oracle/app/orawork
[oracle@MUMSX0019c bin]$ sqlplus / as sysdba
SQL*Plus: Release 19.0.0.0.0 - Production on Wed Jan 31 20:12:26 2024
Version 19.3.0.0.0
Copyright (c) 1982, 2019, Oracle. All rights reserved.
Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.3.0.0.0
SQL> col DB_UPTIME for a35
col DATABASE_ROLE for a20
col DB_VERSION for a20
set lines 200
col LOG_MODE for a20
set pages 9999 lines 300
col OPEN_MODE for a10
col HOST_NAME for a30
select name DB_NAME,HOST_NAME,DATABASE_ROLE,OPEN_MODE,version DB_VERSION,LOGINS,LOG_MODE,to_char(STARTUP_TIME,'DD-MON-YYYY HH24:MI:SS') "DB_UPTIME" from v$database,gv$instance;
SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL>
DB_NAME HOST_NAME DATABASE_ROLE OPEN_MODE DB_VERSION LOGINS LOG_MODE DB_UPTIME
--------- ------------------------------ -------------------- ---------- -------------------- ---------- -------------------- -----------------------------------
CDBMIG MUMSX0019c.database.com PRIMARY READ WRITE 19.0.0.0.0 ALLOWED ARCHIVELOG 31-JAN-2024 18:39:59
SQL> show pdbs
CON_ID CON_NAME OPEN MODE RESTRICTED
---------- ------------------------------ ---------- ----------
2 PDB$SEED READ ONLY NO
3 MIGDB READ WRITE NO
SQL> exit
Disconnected from Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.3.0.0.0
</code></pre>
<p><b>Testing After Migration :</b></p>
<p>After the migration is complete, perform any necessary post-upgrade steps specific to migrating from non-CDB to CDB. This may include tasks related to pluggable databases, user accounts, and application validations etc.</p>
<p><b>Cleanup :</b></p>
<p>If the non-CDB components are no longer required, you might need to clean them up, depending on your migration plan.</p>
<p><b>This concludes our activity of Migration from Non-CDB to CDB</b></p>
<p><b>Follow the below link for the Steps to Manual Migrate database from Noncdb to PDB</b></p><p><b><a href="https://www.sultandba.com/2020/07/migrate-database-from-non-cdb-to-cdb.html" rel="nofollow" target="_blank">Migrate Database from NON-CDB to CDB (12.2 to 19c)</a><br /></b></p>
<p><b>Hope This Help's</b></p>
<p><b>See You Next Post</b></p>
<p><b>Regards</b></p>
<p><b>Sultan Khan</b></p>
Sultan Khanhttp://www.blogger.com/profile/12933538356533244884noreply@blogger.com0tag:blogger.com,1999:blog-399436389180403563.post-90894564766580399912023-11-12T17:29:00.000+05:302023-11-12T17:29:21.945+05:30Oracle 19c Client Installation on Linux 8 <p><b>Hello Friends,</b></p>
<p><b>In this post we will talk about how we can install oracle clinet 19c on Oracle Linux 8.8</b></p>
<p><b>Work on GGHost : </b></p>
<p><b>Unzip Oracle client : Version used 19c </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[oracle@Goldengate oracle]$ ls -ltr
total 1108316
-rw-r--r--. 1 oracle oinstall 1134912540 Oct 28 14:15 LINUX.X64_193000_client.zip
drwxr-xr-x. 3 oracle oinstall 21 Oct 28 18:05 app
[oracle@Goldengate oracle]$ unzip --q LINUX.X64_193000_client.zip
Archive: LINUX.X64_193000_client.zip
creating: client/
inflating: client/runInstaller
creating: client/install/
inflating: client/install/runInstaller.sh
inflating: client/install/.oui
creating: client/install/images/
creating: client/install/resource/
inflating: client/install/resource/cons.nls
inflating: client/install/resource/cons_ja.nls
inflating: client/install/resource/cons_zh_CN.nls
inflating: client/install/resource/cons_fr.nls
inflating: client/install/resource/cons_es.nls
inflating: client/install/resource/cons_zh_TW.nls
inflating: client/install/resource/cons_it.nls
inflating: client/install/resource/cons_ko.nls
inflating: client/install/resource/cons_de.nls
inflating: client/install/resource/cons_pt_BR.nls
inflating: client/install/lsnodes
extracting: client/install/addLangs.sh
inflating: client/install/attachHome.sh
inflating: client/install/oraparam.ini.deinstall
inflating: client/install/oraparam.ini
inflating: client/install/detachHome.sh
inflating: client/install/clusterparam.ini
creating: client/response/
inflating: client/response/client_install.rsp
inflating: client/response/netca.rsp
creating: client/stage/
creating: client/stage/Components/
creating: client/stage/Components/oracle.has.rsf/
creating: client/stage/Components/oracle.has.rsf/19.0.0.0.0/
</code></b></pre>
<p><b>Extracted Files : </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[oracle@Goldengate client]$ ls -ltr
total 24
-rwxrwxr-x. 1 oracle oinstall 500 Feb 6 2013 welcome.html
-rwxr-xr-x. 1 oracle oinstall 8854 Apr 17 2019 runInstaller
drwxr-xr-x. 4 oracle oinstall 4096 Apr 17 2019 install
drwxrwxr-x. 2 oracle oinstall 49 Apr 17 2019 response
drwxr-xr-x. 15 oracle oinstall 4096 Apr 17 2019 stage
[oracle@Goldengate client]$
</code></b></pre>
<p><b>export _JAVA_OPTIONS="-Djava.io.tmpdir=/tmp"</b></p>
<p><b>export CV_ASSUME_DISTID=OEL7.6</b></p>
<p><b>RPM install for Oracle Client : </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[root@Goldengate Packages]# rpm -ivh ksh-20120801-257.0.1.el8.x86_64.rpm
warning: ksh-20120801-257.0.1.el8.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID ad986da3: NOKEY
Verifying... ################################# [100%]
Preparing... ################################# [100%]
Updating / installing...
1:ksh-20120801-257.0.1.el8 ################################# [100%]
[root@Goldengate Packages]# rpm -ivh java-11-openjdk-headless-11.0.18.0.10-2.el8_7.x86_64.rpm
warning: java-11-openjdk-headless-11.0.18.0.10-2.el8_7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID ad986da3: NOKEY
Verifying... ################################# [100%]
Preparing... ################################# [100%]
Updating / installing...
1:java-11-openjdk-headless-1:11.0.1################################# [100%]
[root@Goldengate Packages]# rpm -ivh ttmkfdir-3.0.9-54.el8.x86_64.rpm
warning: ttmkfdir-3.0.9-54.el8.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID ad986da3: NOKEY
Verifying... ################################# [100%]
Preparing... ################################# [100%]
Updating / installing...
1:ttmkfdir-3.0.9-54.el8 ################################# [100%]
[root@Goldengate Packages]# rpm -ivh xorg-x11-fonts-Type1-7.5-19.el8.noarch.rpm
warning: xorg-x11-fonts-Type1-7.5-19.el8.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID ad986da3: NOKEY
Verifying... ################################# [100%]
Preparing... ################################# [100%]
Updating / installing...
1:xorg-x11-fonts-Type1-7.5-19.el8 ################################# [100%]
[root@Goldengate Packages]# rpm -ivh java-11-openjdk-headless-11.0.18.0.10-2.el8_7.x86_64.rpm
warning: java-11-openjdk-headless-11.0.18.0.10-2.el8_7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID ad986da3: NOKEY
Verifying... ################################# [100%]
Preparing... ################################# [100%]
package java-11-openjdk-headless-1:11.0.18.0.10-2.el8_7.x86_64 is already installed
[root@Goldengate Packages]# rpm -ivh libnsl-2.28-225.0.2.el8.x86_64.rpm
warning: libnsl-2.28-225.0.2.el8.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID ad986da3: NOKEY
Verifying... ################################# [100%]
Preparing... ################################# [100%]
Updating / installing...
1:libnsl-2.28-225.0.2.el8 ################################# [100%]
</code></b></pre>
<p><b>Start the install Of oracle client 19c : </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[oracle@Goldengate client]$ ./runInstaller
Starting Oracle Universal Installer...
Checking Temp space: must be greater than 415 MB. Actual 12328 MB Passed
Checking swap space: must be greater than 150 MB. Actual 8191 MB Passed
Checking monitor: must be configured to display at least 256 colors. Actual 16777216 Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2023-10-29_02-21-17PM. Please wait ...[oracle@Goldengate client]$
</code></b></pre>
<p><b>Step 1 : Choose the type of client you wnat to install </b></p>
<div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGl7PfjO_hZRl9yWeIwQoMAxGZXh7Hg16TRWhEjFzGudTI1E81cuZAX8mq75ZaO9enuNtKxwGkNIwQez_dsEWCdZ-NBLKlTucVOTgqprovUPzYSo1pBSsQ6zfCEDQUAL5VEqThG7ub6PxPYSvy6DtMFBq0m6SblDt2fKUDoWZ7mVh8cfdQ5Jiw5mxV4yCm/s1600/Capture1.PNG" style="display: block; padding: 1em 0; text-align: center; "><img alt="" border="0" data-original-height="632" data-original-width="806" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGl7PfjO_hZRl9yWeIwQoMAxGZXh7Hg16TRWhEjFzGudTI1E81cuZAX8mq75ZaO9enuNtKxwGkNIwQez_dsEWCdZ-NBLKlTucVOTgqprovUPzYSo1pBSsQ6zfCEDQUAL5VEqThG7ub6PxPYSvy6DtMFBq0m6SblDt2fKUDoWZ7mVh8cfdQ5Jiw5mxV4yCm/s1600/Capture1.PNG"/></a></div>
<p><b>Step 2 : Provide the home and Base directory </b></p>
<div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuWZu8_bpcuBAO2CbWURWNwnAqDb7rprqI8Wry6mi6uhzPx0HsYT9rAqgOvAM8l72qR9AJCMe6HplvUxoPOFceKCVyLNWC7FLewq6SiSKzUtO43o4y2QLqAE8vUAL7Y3soyTbo_AnUpGruCCvqiUDvP5k3lYpe43dRrXCiJ1roj1Yt50x5Ho8UqJUrzrlZ/s1600/Capture2.PNG" style="display: block; padding: 1em 0; text-align: center; "><img alt="" border="0" data-original-height="634" data-original-width="808" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuWZu8_bpcuBAO2CbWURWNwnAqDb7rprqI8Wry6mi6uhzPx0HsYT9rAqgOvAM8l72qR9AJCMe6HplvUxoPOFceKCVyLNWC7FLewq6SiSKzUtO43o4y2QLqAE8vUAL7Y3soyTbo_AnUpGruCCvqiUDvP5k3lYpe43dRrXCiJ1roj1Yt50x5Ho8UqJUrzrlZ/s1600/Capture2.PNG"/></a></div>
<p><b>Step 3 : Provide the OraInventory Location and Group Name </b></p>
<div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-8mCf_qcWdoQQKS0n78A_2PxDJXadCB0LnJc19hkqe31OjL8g2WHtzrgX9cCs2F8yBOrI9Qvy_O8aLjmLaSqudCPE-pALPGpmNfC0sVfmcaYlWh-FpqYVl4SwvE_Ifpj8i4-CXODQXzX8mTW2iAxx9P0_oL5SzfHKUFL0uy7t-AX6gxcxgyvopjP1Jsij/s1600/Capture3.PNG" style="display: block; padding: 1em 0; text-align: center; "><img alt="" border="0" data-original-height="633" data-original-width="806" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-8mCf_qcWdoQQKS0n78A_2PxDJXadCB0LnJc19hkqe31OjL8g2WHtzrgX9cCs2F8yBOrI9Qvy_O8aLjmLaSqudCPE-pALPGpmNfC0sVfmcaYlWh-FpqYVl4SwvE_Ifpj8i4-CXODQXzX8mTW2iAxx9P0_oL5SzfHKUFL0uy7t-AX6gxcxgyvopjP1Jsij/s1600/Capture3.PNG"/></a></div>
<p><b>Step 4 : Check the summary </b></p>
<div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgAARln93X_uJha7jggt7mEK57A1nnw0BOVu0-IR5hV7rncRUcYzTKXwEGRjS-F0Yw5q2E0UMSUQxvzqzIwbrPn6u1Gbwlwt-B1mx1GgH_wiXSsKH-6megouN59QtyuRcGTKD4QJBu4Tu2rPrkxVuP6AkpL27rmAo5XomPXeVIurNB7I7VaaMZG5gDmWOHr/s1600/Capture4.PNG" style="display: block; padding: 1em 0; text-align: center; "><img alt="" border="0" data-original-height="637" data-original-width="805" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgAARln93X_uJha7jggt7mEK57A1nnw0BOVu0-IR5hV7rncRUcYzTKXwEGRjS-F0Yw5q2E0UMSUQxvzqzIwbrPn6u1Gbwlwt-B1mx1GgH_wiXSsKH-6megouN59QtyuRcGTKD4QJBu4Tu2rPrkxVuP6AkpL27rmAo5XomPXeVIurNB7I7VaaMZG5gDmWOHr/s1600/Capture4.PNG"/></a></div>
<p><b>Step 5 : Run the script provided as Root User</b></p>
<div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMzocuy-4gHADiOoTSpOkJPE0e00ESzuMLkYhq_eZp44avdmU4hXXK2wJG_PgL9ALZtKiK7lE-uEhFacLQqmefF3Bz7_GRGmpMtq0UwJzG6zjZMcUVQTKZ4_HCUrVtkOEckCkFaGYFu2uG4qYrbQ4yFtge_IbJhBt4m6j7IHieiL-0RCplzSfUPfYD86Gq/s1600/Capture5.PNG" style="display: block; padding: 1em 0; text-align: center; "><img alt="" border="0" data-original-height="737" data-original-width="1171" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMzocuy-4gHADiOoTSpOkJPE0e00ESzuMLkYhq_eZp44avdmU4hXXK2wJG_PgL9ALZtKiK7lE-uEhFacLQqmefF3Bz7_GRGmpMtq0UwJzG6zjZMcUVQTKZ4_HCUrVtkOEckCkFaGYFu2uG4qYrbQ4yFtge_IbJhBt4m6j7IHieiL-0RCplzSfUPfYD86Gq/s1600/Capture5.PNG"/></a></div>
<p><b>Step 6 : This screen Provides Info That Oracle Lient installation is complted Sucessfully</b></p>
<div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiH4s9gXSwqR5D461r3Ytfr0EKvcVtT1xwvOG4q0tIDR8IYClYiRx_XWGA0gz2FItKRjWNsFhvqJZ3Hzo8HSSPOPt8bf_ugR-F9NlZDUG71Kw_MHI9uYxkn0F6n4dFKa1MbvofXi__U3bjvPdVx7p7Lzz1jGZyqwTdMuaMGxWHV9gvKQ8ab2HM6E5-qt3ma/s1600/Capture6.PNG" style="display: block; padding: 1em 0; text-align: center; "><img alt="" border="0" data-original-height="639" data-original-width="807" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiH4s9gXSwqR5D461r3Ytfr0EKvcVtT1xwvOG4q0tIDR8IYClYiRx_XWGA0gz2FItKRjWNsFhvqJZ3Hzo8HSSPOPt8bf_ugR-F9NlZDUG71Kw_MHI9uYxkn0F6n4dFKa1MbvofXi__U3bjvPdVx7p7Lzz1jGZyqwTdMuaMGxWHV9gvKQ8ab2HM6E5-qt3ma/s1600/Capture6.PNG"/></a></div>
<p><b>This completes he installation of Oracle Client .</b></p>
<p><b>Hope This Helps .</b></p>
Sultan Khanhttp://www.blogger.com/profile/12933538356533244884noreply@blogger.com0tag:blogger.com,1999:blog-399436389180403563.post-9917632181493662912023-08-31T23:36:00.000+05:302023-08-31T23:36:39.972+05:30ORA-20001: Latest xml inventory is not loaded into table<p><b>Hello Friends,</b></p>
<p><b>Error with the patch "Unable to obtain current patch information due to error: 20001, ORA-20001: Latest xml inventory is not loaded into table" </b></p>
<p><b>So the scenario is :</b></p>
<p><b>After opening database in resetlogs mode getting error "Unable to obtain current patch information due to error: 20001, ORA-20001: Latest xml inventory is not loaded into table" </b></p>
<p><b>Error In alertlog :</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
******************** END OF WARNING *******************
Completed: alter database open resetlogs
2023-06-30T09:16:33.935407+03:00
Unable to obtain current patch information due to error: 20001, ORA-20001: Latest xml inventory is not loaded into table
ORA-06512: at "SYS.DBMS_QOPATCH", line 2327
ORA-06512: at "SYS.DBMS_QOPATCH", line 854
ORA-06512: at "SYS.DBMS_QOPATCH", line 937
ORA-06510: PL/SQL: unhandled user-defined exception
ORA-06512: at "SYS.DBMS_QOPATCH", line 932
ORA-29913: error in executing ODCIEXTTABLEFETCH callout
ORA-01157: cannot identify/lock data file 203 - see DBWR trace file
ORA-01110: data file 203: '/oracle/DMZ/sapdata4/temp_1/temp.data10'
ORA-06512: at "SYS.DBMS_QOPATCH", line 919
ORA-06512: at "SYS.DBMS_QOPATCH", line 2286
ORA-06512: at "SYS.DBMS_QOPATCH", line 817
ORA-06512: at "SYS.DBMS_QOPATCH", line 2309
===========================================================
Dumping current patch information
===========================================================
Unable to obtain current patch information due to error: 20001
===========================================================.
</code></b></pre>
<p><b>Solution to error :</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> select * from dba_temp_files;
select * from dba_temp_files
*
ERROR at line 1:
ORA-01157: cannot identify/lock data file 202 - see DBWR trace file
ORA-01110: data file 202: '/oracle/DMZ/sapdata4/temp_1/temp.data11'
</code></b></pre>
<p><b>Do a tempfile rollover :</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> CREATE TEMPORARY TABLESPACE TEMP_NEW TEMPFILE '+DATA' size 20G;
Tablespace created.
SQL> ALTER DATABASE DEFAULT TEMPORARY TABLESPACE TEMP_NEW;
Database altered.
SQL> select name from v$tablespace;
NAME
------------------------------
SYSTEM
SYSAUX
PSAPUNDO
PSAPTEMP
PSAPSR3
PSAPSR3700
PSAPSR3USR
PSAPYBMCD
PSAPYBMCI
TEMP_NEW
10 rows selected.
SQL> DROP TABLESPACE PSAPTEMP including contents and datafiles;
Tablespace dropped.
SQL> CREATE TEMPORARY TABLESPACE PSAPTEMP TEMPFILE '+DATA' size 20G autoextend on next 1G maxsize unlimited;
Tablespace created.
SQL> ALTER DATABASE DEFAULT TEMPORARY TABLESPACE PSAPTEMP;
Database altered.
SQL> DROP TABLESPACE TEMP_NEW including contents and datafiles;
Tablespace dropped.
</code></b></pre>Sultan Khanhttp://www.blogger.com/profile/12933538356533244884noreply@blogger.com0tag:blogger.com,1999:blog-399436389180403563.post-50878751192545247432023-08-31T17:46:00.001+05:302023-08-31T17:46:59.107+05:30Move Redologs from NON-ASM to ASM<p><b>Hello Friends,</b></p>
<p><b>In this post we will talk about how we can Drop redologs from filesystem and recreate redo logs on ASM Path </b></p>
<p><b>So the scenario is :</b></p>
<p><b>Database has been migrated from NON ASM to asm and now in this post we will drop and recreate the redologs on ASM </b></p>
<p><b>check for the current path of redologs from view v$logfile and v$log</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> col MEMBER for a55
SQL> set lines 200
SQL> /
GROUP# STATUS TYPE MEMBER IS_ CON_ID
---------- ------- ------- ------------------------------------------------------- --- ----------
1 ONLINE /oracle/DMZ/origlogA/log_g11m1.dbf NO 0
1 ONLINE /oracle/DMZ/mirrlogA/log_g11m2.dbf NO 0
2 ONLINE /oracle/DMZ/origlogB/log_g12m1.dbf NO 0
2 ONLINE /oracle/DMZ/mirrlogB/log_g12m2.dbf NO 0
3 ONLINE /oracle/DMZ/origlogA/log_g13m1.dbf NO 0
3 ONLINE /oracle/DMZ/mirrlogA/log_g13m2.dbf NO 0
4 ONLINE /oracle/DMZ/origlogB/log_g14m1.dbf NO 0
4 ONLINE /oracle/DMZ/mirrlogB/log_g14m2.dbf NO 0
8 rows selected.
SQL> select * from v$log;
GROUP# THREAD# SEQUENCE# BYTES BLOCKSIZE MEMBERS ARC STATUS FIRST_CHANGE# FIRST_TIM NEXT_CHANGE# NEXT_TIME CON_ID
---------- ---------- ---------- ---------- ---------- ---------- --- ---------------- ------------- --------- ------------ --------- ----------
1 1 1 209715200 512 2 YES INACTIVE 1.0697E+13 30-JUN-23 1.0697E+13 30-JUN-23 0
2 1 2 209715200 512 2 YES INACTIVE 1.0697E+13 30-JUN-23 1.0697E+13 30-JUN-23 0
3 1 3 209715200 512 2 NO CURRENT 1.0697E+13 30-JUN-23 9.2954E+18 0
4 1 0 209715200 512 2 YES UNUSED 0 0 0
</code></b></pre>
<p><b>Drop the inactive member of redo logs and add the same using the ASM path as below </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> alter database drop logfile group 2;
Database altered.
SQL> alter database drop logfile group 1;
Database altered.
SQL> alter database add logfile group 1 ('+DATA','+RECO') size 200M;
Database altered.
SQL> alter database add logfile group 2 ('+DATA','+RECO') size 200M;
Database altered.
SQL> alter database drop logfile group 4;
Database altered.
SQL> alter database add logfile group 4 ('+DATA','+RECO') size 200M;
Database altered.
</code></b></pre>
<p><b>As the redolog member 3 is been used as current , Make a log switch and checkpoint to change the status .</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> alter system switch logfile;
System altered.
SQL> /
System altered.
SQL> alter system checkpoint;
System altered.
</code></b></pre>
<p><b>Check the status asthe log 3 is now inactive can be deleted . Add standby logs only if standby is being used or you will create a stanby </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> select * from v$log;
GROUP# THREAD# SEQUENCE# BYTES BLOCKSIZE MEMBERS ARC STATUS FIRST_CHANGE# FIRST_TIM NEXT_CHANGE# NEXT_TIME CON_ID
---------- ---------- ---------- ---------- ---------- ---------- --- ---------------- ------------- --------- ------------ --------- ----------
1 1 4 209715200 512 2 YES INACTIVE 1.0697E+13 30-JUN-23 1.0697E+13 30-JUN-23 0
2 1 5 209715200 512 2 NO CURRENT 1.0697E+13 30-JUN-23 9.2954E+18 0
3 1 3 209715200 512 2 YES INACTIVE 1.0697E+13 30-JUN-23 1.0697E+13 30-JUN-23 0
4 1 0 209715200 512 2 YES UNUSED 0 0 0
SQL> alter database drop logfile group 3;
Database altered.
SQL> alter database add logfile group 3 ('+DATA','+RECO') size 200M;
Database altered.
</code></b></pre>
<p><b>Check the status of redo logs now it should be on asm as shown below .</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> select * from v$logfile;
GROUP# STATUS TYPE MEMBER IS_ CON_ID
---------- ------- ------- ------------------------------------------------------- --- ----------
1 ONLINE +DATA/DMZ/ONLINELOG/group_1.824.1140859727 NO 0
1 ONLINE +RECO/DMZ/ONLINELOG/group_1.2542.1140859727 NO 0
2 ONLINE +DATA/DMZ/ONLINELOG/group_2.826.1140859735 NO 0
2 ONLINE +RECO/DMZ/ONLINELOG/group_2.4274.1140859735 NO 0
3 ONLINE +DATA/DMZ/ONLINELOG/group_3.839.1140859809 NO 0
3 ONLINE +RECO/DMZ/ONLINELOG/group_3.1995.1140859809 NO 0
4 ONLINE +DATA/DMZ/ONLINELOG/group_4.823.1140859753 NO 0
4 ONLINE +RECO/DMZ/ONLINELOG/group_4.5305.1140859753 NO 0
8 rows selected.
</code></b></pre>Sultan Khanhttp://www.blogger.com/profile/12933538356533244884noreply@blogger.com0tag:blogger.com,1999:blog-399436389180403563.post-30294764107218097222023-04-10T03:10:00.012+05:302023-04-18T18:19:51.348+05:30How to Recover DROPPED PDB After Flashback of CDB<p><b>Hello Friends,</b></p>
<p><b>In this post we will talk about how we can recover dropped PDB after we flashback CDB (root container)</b></p>
<p><b>So the scenario is :</b></p>
<p><b>We were attempting database cloning; however, before cloning, we dropped PDB on the target side; moreover, due to some difficulty, it had to rollback the target to its former state, nevertheless, owing to the issue we dropped PDB, the datafiles were in Offline mode after flashback. Today, in this article, I'll explain how to solve the problem and restore the PDB to its original state.</b></p>
<div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8Zvd_b9j5R8waMpaAJTy29WOdiAhkYBBrap7rmnKWPg3edzGlVyZXyBzN58zwVMdVCvSpAfIFBi09cM010xw8TFz5Y2t4J3exhfrTrimp1gVTnqtJ2IkUtD4VaFyhQiHIoIv-3QN3HjYHCeJcGfXek-uSbnzt_geQ3vA3qZxKUZvUdVWnGocjgHd4CQ/s1600/Flashback.png" style="display: block; padding: 1em 0; text-align: center; "><img alt="How to Recover DROPPED PDB After Flashback of CDB" border="0" data-original-height="245" data-original-width="562" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8Zvd_b9j5R8waMpaAJTy29WOdiAhkYBBrap7rmnKWPg3edzGlVyZXyBzN58zwVMdVCvSpAfIFBi09cM010xw8TFz5Y2t4J3exhfrTrimp1gVTnqtJ2IkUtD4VaFyhQiHIoIv-3QN3HjYHCeJcGfXek-uSbnzt_geQ3vA3qZxKUZvUdVWnGocjgHd4CQ/s1600/Flashback.png"/></a></div>
<p><b>So lets get started.</b></p>
<p><b>So we will start with the point of roll back of target CDB.</b></p>
<p><b>Step 1 Roll back target CDB -:
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> flashback database to restore point FB_DROP;
Flashback complete.
</code></b></pre>
<p><b>Step 2 -: check for the SCN on which Restore point was created</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> SELECT NAME, SCN, TIME FROM V$RESTORE_POINT;
NAME SCN TIME
----------------- ---------- ---------------------------------
FB_DROP 540454493 02-APR-23 09.06.58.000000000 PM
</code></b></pre>
<p><b>Step 3 -: Check status of database (PDB) will be unnamed</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> select file#,name from v$datafile;
FILE# NAME
---------- ----------------------------------------------------------------------------------------
1 +DATAC1/CDBFIN_2/datafile/system.1573.1119710777
2 +DATAC1/CDBFIN_2/846C1C4258D9012DE053C00DD10A4631/DATAFILE/system.1559.1119710779
3 +DATAC1/CDBFIN_2/datafile/sysaux.1560.1119710779
4 +DATAC1/CDBFIN_2/datafile/sysaux.1564.1119710777
5 +DATAC1/CDBFIN_2/datafile/undotbs1.1569.1119710777
7 +DATAC1/CDBFIN_2/datafile/undotbs2.1566.1119710779
11 +DATAC1/CDBFIN_2/datafile/users.1567.1119710779
13 /u02/app/oracle/product/12.1.0/dbhome_1/dbs/UNNAMED00013
14 /u02/app/oracle/product/12.1.0/dbhome_1/dbs/UNNAMED00014
15 /u02/app/oracle/product/12.1.0/dbhome_1/dbs/UNNAMED00015
16 /u02/app/oracle/product/12.1.0/dbhome_1/dbs/UNNAMED00016
17 /u02/app/oracle/product/12.1.0/dbhome_1/dbs/UNNAMED00017
</code></b></pre>
<p><b>Step 4 -: Srart with the restore of datafiles of PDB</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[oracle@dm01db01 CDBFIN]$ rman target / catalog vpcrman/*******@dm01zdlra-scan:1521/zdlra1
Recovery Manager: Release 12.1.0.2.0 - Production on Sun Apr 2 23:28:22 2023
Copyright (c) 1982, 2014, Oracle and/or its affiliates. All rights reserved.
connected to target database: CDBFIN (DBID=1994598409, not open)
connected to recovery catalog database
recovery catalog schema release 21.01.00.00. is newer than RMAN release
RMAN> run {
CONFIGURE DEFAULT DEVICE TYPE TO 'SBT_TAPE';
CONFIGURE CHANNEL DEVICE TYPE 'SBT_TAPE' FORMAT '%d_%U' PARMS "SBT_LIBRARY=/u02/app/oracle/product/12.1.0/dbhome_1/lib/libra.so, ENV=(RA_WALLET='location=file:/var/opt/oracle/dbaas_acfs/CDBFIN/db_wallet credential_alias=dm01zdlra-scan:1521/zdlra1')";
set until scn 540454493;
set newname for datafile 13 to '+DATAC1';
set newname for datafile 14 to '+DATAC1';
set newname for datafile 15 to '+DATAC1';
set newname for datafile 16 to '+DATAC1';
set newname for datafile 17 to '+DATAC1';
restore pluggable database FINDB;
}
old RMAN configuration parameters:
CONFIGURE DEFAULT DEVICE TYPE TO 'SBT_TAPE';
new RMAN configuration parameters:
CONFIGURE DEFAULT DEVICE TYPE TO 'SBT_TAPE';
new RMAN configuration parameters are successfully stored
old RMAN configuration parameters:
CONFIGURE CHANNEL DEVICE TYPE 'SBT_TAPE' FORMAT '%d_%U' PARMS "SBT_LIBRARY=/u02/app/oracle/product/12.1.0/dbhome_1/lib/libra.so, ENV=(RA_WALLET='location=file:/var/opt/oracle/dbaas_acfs/CDBFIN/db_wallet credential_alias=dm01zdlra-scan:1521/zdlra1')";
new RMAN configuration parameters:
CONFIGURE CHANNEL DEVICE TYPE 'SBT_TAPE' FORMAT '%d_%U' PARMS "SBT_LIBRARY=/u02/app/oracle/product/12.1.0/dbhome_1/lib/libra.so, ENV=(RA_WALLET='location=file:/var/opt/oracle/dbaas_acfs/CDBFIN/db_wallet credential_alias=dm01zdlra-scan:1521/zdlra1')";
new RMAN configuration parameters are successfully stored
executing command: SET until clause
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
Starting restore at 02-APR-23
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 04/02/2023 23:29:05
RMAN-06004: ORACLE error from recovery catalog database: RMAN-20208: UNTIL CHANGE is before RESETLOGS change
</code></b></pre>
<p><b>Here we got the error of incarnation as we did a resetlogs before. Solution is as below
<p><b>Check the incarnation of database till now from Rman prompt</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
RMAN> list incarnation of database;
List of Database Incarnations
DB Key Inc Key DB Name DB ID STATUS Reset SCN Reset Time
------- ------- -------- ---------------- --- ---------- ----------
55248702 55248703 CDBFIN 1994598409 PARENT 243241977 03-NOV-22
55248702 63791290 CDBFIN 1994598409 ORPHAN 540454495 02-APR-23
55248702 63818222 CDBFIN 1994598409 ORPHAN 540454495 02-APR-23
55248702 63818897 CDBFIN 1994598409 CURRENT 540454495 02-APR-23
</code></b></pre>
<p><b>Reset the incarnation to parent one -:</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
RMAN> reset database to incarnation 55248703;
database reset to incarnation 55248703
</code></b></pre>
<p><b>Step 5 -: Now start with the restore again .
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
RMAN> run {
CONFIGURE DEFAULT DEVICE TYPE TO 'SBT_TAPE';
CONFIGURE CHANNEL DEVICE TYPE 'SBT_TAPE' FORMAT '%d_%U' PARMS "SBT_LIBRARY=/u02/app/oracle/product/12.1.0/dbhome_1/lib/libra.so, ENV=(RA_WALLET='location=file:/var/opt/oracle/dbaas_acfs/CDBFIN/db_wallet credential_alias=dm01zdlra-scan:1521/zdlra1')";
set until scn 540454493;
set newname for datafile 13 to '+DATAC1';
set newname for datafile 14 to '+DATAC1';
set newname for datafile 15 to '+DATAC1';
set newname for datafile 16 to '+DATAC1';
set newname for datafile 17 to '+DATAC1';
restore pluggable database FINDB;
}
old RMAN configuration parameters:
CONFIGURE DEFAULT DEVICE TYPE TO 'SBT_TAPE';
new RMAN configuration parameters:
CONFIGURE DEFAULT DEVICE TYPE TO 'SBT_TAPE';
new RMAN configuration parameters are successfully stored
old RMAN configuration parameters:
CONFIGURE CHANNEL DEVICE TYPE 'SBT_TAPE' FORMAT '%d_%U' PARMS "SBT_LIBRARY=/u02/app/oracle/product/12.1.0/dbhome_1/lib/libra.so, ENV=(RA_WALLET='location=file:/var/opt/oracle/dbaas_acfs/CDBFIN/db_wallet credential_alias=dm01zdlra-scan:1521/zdlra1')";
new RMAN configuration parameters:
CONFIGURE CHANNEL DEVICE TYPE 'SBT_TAPE' FORMAT '%d_%U' PARMS "SBT_LIBRARY=/u02/app/oracle/product/12.1.0/dbhome_1/lib/libra.so, ENV=(RA_WALLET='location=file:/var/opt/oracle/dbaas_acfs/CDBFIN/db_wallet credential_alias=dm01zdlra-scan:1521/zdlra1')";
new RMAN configuration parameters are successfully stored
executing command: SET until clause
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
Starting restore at 02-APR-23
allocated channel: ORA_SBT_TAPE_1
channel ORA_SBT_TAPE_1: SID=202 instance=CDBFIN1 device type=SBT_TAPE
channel ORA_SBT_TAPE_1: RA Library (ZDLRA1) SID=F861563E4A875013E0530259010AB373
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=399 instance=CDBFIN1 device type=DISK
channel ORA_SBT_TAPE_1: starting datafile backup set restore
channel ORA_SBT_TAPE_1: specifying datafile(s) to restore from backup set
channel ORA_SBT_TAPE_1: restoring datafile 00013 to +DATAC1
channel ORA_SBT_TAPE_1: reading from backup piece VB$_3571773944_63759700_13
channel ORA_SBT_TAPE_1: piece handle=VB$_3571773944_63759700_13 tag=RA_VB
channel ORA_SBT_TAPE_1: restored backup piece 1
channel ORA_SBT_TAPE_1: restore complete, elapsed time: 00:00:15
channel ORA_SBT_TAPE_1: starting datafile backup set restore
channel ORA_SBT_TAPE_1: specifying datafile(s) to restore from backup set
channel ORA_SBT_TAPE_1: restoring datafile 00014 to +DATAC1
channel ORA_SBT_TAPE_1: reading from backup piece VB$_3571773944_63759700_14
channel ORA_SBT_TAPE_1: piece handle=VB$_3571773944_63759700_14 tag=RA_VB
channel ORA_SBT_TAPE_1: restored backup piece 1
channel ORA_SBT_TAPE_1: restore complete, elapsed time: 00:00:15
channel ORA_SBT_TAPE_1: starting datafile backup set restore
channel ORA_SBT_TAPE_1: specifying datafile(s) to restore from backup set
channel ORA_SBT_TAPE_1: restoring datafile 00017 to +DATAC1
channel ORA_SBT_TAPE_1: reading from backup piece VB$_3571773944_63759700_17
channel ORA_SBT_TAPE_1: piece handle=VB$_3571773944_63759700_17 tag=RA_VB
channel ORA_SBT_TAPE_1: restored backup piece 1
channel ORA_SBT_TAPE_1: restore complete, elapsed time: 00:00:15
channel ORA_SBT_TAPE_1: starting datafile backup set restore
channel ORA_SBT_TAPE_1: specifying datafile(s) to restore from backup set
channel ORA_SBT_TAPE_1: restoring datafile 00016 to +DATAC1
channel ORA_SBT_TAPE_1: reading from backup piece VB$_3571773944_63759700_16
channel ORA_SBT_TAPE_1: piece handle=VB$_3571773944_63759700_16 tag=RA_VB
channel ORA_SBT_TAPE_1: restored backup piece 1
channel ORA_SBT_TAPE_1: restore complete, elapsed time: 00:00:15
channel ORA_SBT_TAPE_1: starting datafile backup set restore
channel ORA_SBT_TAPE_1: specifying datafile(s) to restore from backup set
channel ORA_SBT_TAPE_1: restoring datafile 00015 to +DATAC1
channel ORA_SBT_TAPE_1: reading from backup piece VB$_3571773944_63759700_15
channel ORA_SBT_TAPE_1: piece handle=VB$_3571773944_63759700_15 tag=RA_VB
channel ORA_SBT_TAPE_1: restored backup piece 1
channel ORA_SBT_TAPE_1: restore complete, elapsed time: 00:00:25
Finished restore at 02-APR-23
RMAN> exit
Recovery Manager complete.
</code></b></pre>
<p><b>Step 6 -: Once restore is completed , Open database in resetlogs mode.</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[oracle@dm01db01 CDBFIN]$ sqlplus / as sysdba
SQL*Plus: Release 12.1.0.2.0 Production on Sun Apr 2 23:36:19 2023
Copyright (c) 1982, 2014, Oracle. All rights reserved.
Connected to:
Oracle Database 12c EE Extreme Perf Release 12.1.0.2.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Advanced Analytics and Real Application Testing options
SQL> show pdbs
CON_ID CON_NAME OPEN MODE RESTRICTED
---------- ------------------------------ ---------- ----------
2 PDB$SEED MOUNTED
4 FINDB MOUNTED
SQL> alter database open resetlogs;
Database altered.
SQL> show pdbs
CON_ID CON_NAME OPEN MODE RESTRICTED
---------- ------------------------------ ---------- ----------
2 PDB$SEED READ ONLY NO
4 FINDB MOUNTED
SQL>
SQL> exit
Disconnected from Oracle Database 12c EE Extreme Perf Release 12.1.0.2.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Advanced Analytics and Real Application Testing options
[oracle@dm01db01 CDBFIN]$
</code></b></pre>
<p><b>Step 7 -: Switch to Rman Prompt and switch the restored datafiles.
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[oracle@dm01db01 CDBFIN]$ rman target / catalog vpcrman/*******@dm01zdlra-scan:1521/zdlra1
Recovery Manager: Release 12.1.0.2.0 - Production on Sun Apr 2 23:37:52 2023
Copyright (c) 1982, 2014, Oracle and/or its affiliates. All rights reserved.
connected to target database: CDBFIN (DBID=1994598409)
connected to recovery catalog database
recovery catalog schema release 21.01.00.00. is newer than RMAN release
RMAN> switch datafile 13 to copy;
new incarnation of database registered in recovery catalog
starting full resync of recovery catalog
full resync complete
datafile 13 switched to datafile copy "+DATAC1/CDBFIN_2/B2E3BCA1E64B4198E0530257010ABD0B/DATAFILE/system.1587.1133134349"
starting full resync of recovery catalog
full resync complete
RMAN> switch datafile 14 to copy;
datafile 14 switched to datafile copy "+DATAC1/CDBFIN_2/B2E3BCA1E64B4198E0530257010ABD0B/DATAFILE/sysaux.1568.1133134363"
starting full resync of recovery catalog
full resync complete
RMAN> switch datafile 15 to copy;
datafile 15 switched to datafile copy "+DATAC1/CDBFIN_2/B2E3BCA1E64B4198E0530257010ABD0B/DATAFILE/users.1588.1133134403"
starting full resync of recovery catalog
full resync complete
RMAN> switch datafile 16 to copy;
datafile 16 switched to datafile copy "+DATAC1/CDBFIN_2/B2E3BCA1E64B4198E0530257010ABD0B/DATAFILE/indx.1561.1133134391"
starting full resync of recovery catalog
full resync complete
RMAN> switch datafile 17 to copy;
datafile 17 switched to datafile copy "+DATAC1/CDBFIN_2/B2E3BCA1E64B4198E0530257010ABD0B/DATAFILE/perfstat.1557.1133134375"
starting full resync of recovery catalog
full resync complete
RMAN> exit
Recovery Manager complete.
</code></b></pre>
<p><b>Step 8 -: Switch to sql prompt and make the datafiles restored online.</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[oracle@dm01db01 CDBFIN]$ sqlplus / as sysdba
SQL*Plus: Release 12.1.0.2.0 Production on Sun Apr 2 23:39:41 2023
Copyright (c) 1982, 2014, Oracle. All rights reserved.
Connected to:
Oracle Database 12c EE Extreme Perf Release 12.1.0.2.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, Oracle Label Security,
OLAP, Advanced Analytics and Real Application Testing options
SQL> show pdbs
CON_ID CON_NAME OPEN MODE RESTRICTED
---------- ------------------------------ ---------- ----------
2 PDB$SEED READ ONLY NO
4 FINDB MOUNTED
SQL> alter session set container=FINDB;
Session altered.
SQL> alter database datafile '+DATAC1/CDBFIN_2/B2E3BCA1E64B4198E0530257010ABD0B/DATAFILE/system.1587.1133134349' online;
Database altered.
SQL> alter database datafile 14 online;
Database altered.
SQL> alter database datafile 15 online;
Database altered.
SQL> alter database datafile 16 online;
Database altered.
SQL> alter database datafile 17 online;
Database altered.
SQL> exit
Disconnected from Oracle Database 12c EE Extreme Perf Release 12.1.0.2.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, Oracle Label Security,
OLAP, Advanced Analytics and Real Application Testing options
</code></b></pre>
<p><b>Step 9 -: Now switch back to rman prompt and recover PDB until SCN.</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[oracle@dm01db01 CDBFIN]$
[oracle@dm01db01 CDBFIN]$ rman target / catalog vpcrman/*******@dm01zdlra-scan:1521/zdlra1
Recovery Manager: Release 12.1.0.2.0 - Production on Sun Apr 2 23:41:43 2023
Copyright (c) 1982, 2014, Oracle and/or its affiliates. All rights reserved.
connected to target database: CDBFIN (DBID=1994598409)
connected to recovery catalog database
recovery catalog schema release 21.01.00.00. is newer than RMAN release
RMAN> run {
2> CONFIGURE DEFAULT DEVICE TYPE TO 'SBT_TAPE';
CONFIGURE CHANNEL DEVICE TYPE 'SBT_TAPE' FORMAT '%d_%U' PARMS "SBT_LIBRARY=/u02/app/oracle/product/12.1.0/dbhome_1/lib/libra.so, ENV=(RA_WALLET='location=file:/var/opt/oracle/dbaas_acfs/CDBFIN/db_wallet credential_alias=dm01zdlra-scan:1521/zdlra1')";
set until scn 540454493;
recover pluggable database FINDB;
}3> 4> 5> 6>
old RMAN configuration parameters:
CONFIGURE DEFAULT DEVICE TYPE TO 'SBT_TAPE';
new RMAN configuration parameters:
CONFIGURE DEFAULT DEVICE TYPE TO 'SBT_TAPE';
new RMAN configuration parameters are successfully stored
starting full resync of recovery catalog
full resync complete
old RMAN configuration parameters:
CONFIGURE CHANNEL DEVICE TYPE 'SBT_TAPE' FORMAT '%d_%U' PARMS "SBT_LIBRARY=/u02/app/oracle/product/12.1.0/dbhome_1/lib/libra.so, ENV=(RA_WALLET='location=file:/var/opt/oracle/dbaas_acfs/CDBFIN/db_wallet credential_alias=dm01zdlra-scan:1521/zdlra1')";
new RMAN configuration parameters:
CONFIGURE CHANNEL DEVICE TYPE 'SBT_TAPE' FORMAT '%d_%U' PARMS "SBT_LIBRARY=/u02/app/oracle/product/12.1.0/dbhome_1/lib/libra.so, ENV=(RA_WALLET='location=file:/var/opt/oracle/dbaas_acfs/CDBFIN/db_wallet credential_alias=dm01zdlra-scan:1521/zdlra1')";
new RMAN configuration parameters are successfully stored
starting full resync of recovery catalog
full resync complete
executing command: SET until clause
Starting recover at 02-APR-23
current log archived
allocated channel: ORA_SBT_TAPE_1
channel ORA_SBT_TAPE_1: SID=595 instance=CDBFIN1 device type=SBT_TAPE
channel ORA_SBT_TAPE_1: RA Library (ZDLRA1) SID=F8617988B49480BDE0530259010A972C
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=789 instance=CDBFIN1 device type=DISK
Creating automatic instance, with SID='eFea'
initialization parameters used for automatic instance:
db_name=CDBFIN
db_unique_name=eFea_pitr_FINDB_CDBFIN
compatible=12.1.0.2.0
db_block_size=8192
db_files=1024
diagnostic_dest=/u02/app/oracle
_system_trig_enabled=FALSE
sga_target=2560M
processes=200
#No auxiliary destination in use
enable_pluggable_database=true
_clone_one_pdb_recovery=true
control_files=+RECOC1/CDBFIN_2/DATAFILE/current.641.1133134925
#No auxiliary parameter file used
starting up automatic instance CDBFIN
Oracle instance started
Total System Global Area 2684354560 bytes
Fixed Size 2928008 bytes
Variable Size 677806712 bytes
Database Buffers 1996488704 bytes
Redo Buffers 7131136 bytes
Automatic instance created
contents of Memory Script:
{
# set requested point in time
set until scn 540454493;
# restore the controlfile
restore clone controlfile;
# mount the controlfile
sql clone 'alter database mount clone database';
# resync catalog
resync catalog;
}
executing Memory Script
executing command: SET until clause
Starting restore at 02-APR-23
allocated channel: ORA_AUX_SBT_TAPE_1
channel ORA_AUX_SBT_TAPE_1: SID=314 device type=SBT_TAPE
channel ORA_AUX_SBT_TAPE_1: RA Library (ZDLRA1) SID=F8617AED04E79AC5E0530259010AE093
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=15 device type=DISK
channel ORA_AUX_SBT_TAPE_1: starting datafile backup set restore
channel ORA_AUX_SBT_TAPE_1: restoring control file
channel ORA_AUX_SBT_TAPE_1: reading from backup piece c-1994598409-20230402-07
channel ORA_AUX_SBT_TAPE_1: piece handle=c-1994598409-20230402-07 tag=TAG20230402T201824
channel ORA_AUX_SBT_TAPE_1: restored backup piece 1
channel ORA_AUX_SBT_TAPE_1: restore complete, elapsed time: 00:00:01
output file name=+RECOC1/CDBFIN_2/DATAFILE/current.641.1133134925
Finished restore at 02-APR-23
sql statement: alter database mount clone database
starting full resync of recovery catalog
full resync complete
contents of Memory Script:
{
# set requested point in time
set until scn 540454493;
# switch to valid datafilecopies
switch clone datafile 13 to datafilecopy
"+DATAC1/CDBFIN_2/B2E3BCA1E64B4198E0530257010ABD0B/DATAFILE/system.1587.1133134349";
switch clone datafile 14 to datafilecopy
"+DATAC1/CDBFIN_2/B2E3BCA1E64B4198E0530257010ABD0B/DATAFILE/sysaux.1568.1133134363";
switch clone datafile 15 to datafilecopy
"+DATAC1/CDBFIN_2/B2E3BCA1E64B4198E0530257010ABD0B/DATAFILE/users.1588.1133134403";
switch clone datafile 16 to datafilecopy
"+DATAC1/CDBFIN_2/B2E3BCA1E64B4198E0530257010ABD0B/DATAFILE/indx.1561.1133134391";
switch clone datafile 17 to datafilecopy
"+DATAC1/CDBFIN_2/B2E3BCA1E64B4198E0530257010ABD0B/DATAFILE/perfstat.1557.1133134375";
# set destinations for recovery set and auxiliary set datafiles
set newname for datafile 1 to
"+RECOC1/CDBFIN_2/DATAFILE/system.1031.1133134945";
set newname for datafile 5 to
"+RECOC1/CDBFIN_2/DATAFILE/undotbs1.3321.1133134945";
set newname for datafile 7 to
"+RECOC1/CDBFIN_2/DATAFILE/undotbs2.851.1133134945";
set newname for datafile 3 to
"+RECOC1/CDBFIN_2/DATAFILE/sysaux.3262.1133134945";
# restore the tablespaces in the recovery set and the auxiliary set
restore clone datafile 1, 5, 7, 3;
switch clone datafile all;
}
executing Memory Script
executing command: SET until clause
datafile 13 switched to datafile copy
input datafile copy RECID=18 STAMP=1133134957 file name=+DATAC1/CDBFIN_2/B2E3BCA1E64B4198E0530257010ABD0B/DATAFILE/system.1587.1133134349
datafile 14 switched to datafile copy
input datafile copy RECID=19 STAMP=1133134957 file name=+DATAC1/CDBFIN_2/B2E3BCA1E64B4198E0530257010ABD0B/DATAFILE/sysaux.1568.1133134363
datafile 15 switched to datafile copy
input datafile copy RECID=20 STAMP=1133134957 file name=+DATAC1/CDBFIN_2/B2E3BCA1E64B4198E0530257010ABD0B/DATAFILE/users.1588.1133134403
datafile 16 switched to datafile copy
input datafile copy RECID=21 STAMP=1133134957 file name=+DATAC1/CDBFIN_2/B2E3BCA1E64B4198E0530257010ABD0B/DATAFILE/indx.1561.1133134391
datafile 17 switched to datafile copy
input datafile copy RECID=22 STAMP=1133134957 file name=+DATAC1/CDBFIN_2/B2E3BCA1E64B4198E0530257010ABD0B/DATAFILE/perfstat.1557.1133134375
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
Starting restore at 02-APR-23
using channel ORA_AUX_SBT_TAPE_1
using channel ORA_AUX_DISK_1
channel ORA_AUX_SBT_TAPE_1: starting datafile backup set restore
channel ORA_AUX_SBT_TAPE_1: specifying datafile(s) to restore from backup set
channel ORA_AUX_SBT_TAPE_1: restoring datafile 00001 to +RECOC1/CDBFIN_2/DATAFILE/system.1031.1133134945
channel ORA_AUX_SBT_TAPE_1: reading from backup piece VB$_3571773944_63759728_1
channel ORA_AUX_SBT_TAPE_1: piece handle=VB$_3571773944_63759728_1 tag=RA_VB
channel ORA_AUX_SBT_TAPE_1: restored backup piece 1
channel ORA_AUX_SBT_TAPE_1: restore complete, elapsed time: 00:00:15
channel ORA_AUX_SBT_TAPE_1: starting datafile backup set restore
channel ORA_AUX_SBT_TAPE_1: specifying datafile(s) to restore from backup set
channel ORA_AUX_SBT_TAPE_1: restoring datafile 00005 to +RECOC1/CDBFIN_2/DATAFILE/undotbs1.3321.1133134945
channel ORA_AUX_SBT_TAPE_1: reading from backup piece VB$_3571773944_63759728_5
channel ORA_AUX_SBT_TAPE_1: piece handle=VB$_3571773944_63759728_5 tag=RA_VB
channel ORA_AUX_SBT_TAPE_1: restored backup piece 1
channel ORA_AUX_SBT_TAPE_1: restore complete, elapsed time: 00:00:15
channel ORA_AUX_SBT_TAPE_1: starting datafile backup set restore
channel ORA_AUX_SBT_TAPE_1: specifying datafile(s) to restore from backup set
channel ORA_AUX_SBT_TAPE_1: restoring datafile 00007 to +RECOC1/CDBFIN_2/DATAFILE/undotbs2.851.1133134945
channel ORA_AUX_SBT_TAPE_1: reading from backup piece VB$_3571773944_63759728_7
channel ORA_AUX_SBT_TAPE_1: piece handle=VB$_3571773944_63759728_7 tag=RA_VB
channel ORA_AUX_SBT_TAPE_1: restored backup piece 1
channel ORA_AUX_SBT_TAPE_1: restore complete, elapsed time: 00:00:15
channel ORA_AUX_SBT_TAPE_1: starting datafile backup set restore
channel ORA_AUX_SBT_TAPE_1: specifying datafile(s) to restore from backup set
channel ORA_AUX_SBT_TAPE_1: restoring datafile 00003 to +RECOC1/CDBFIN_2/DATAFILE/sysaux.3262.1133134945
channel ORA_AUX_SBT_TAPE_1: reading from backup piece VB$_3571773944_63759728_3
channel ORA_AUX_SBT_TAPE_1: piece handle=VB$_3571773944_63759728_3 tag=RA_VB
channel ORA_AUX_SBT_TAPE_1: restored backup piece 1
channel ORA_AUX_SBT_TAPE_1: restore complete, elapsed time: 00:00:15
Finished restore at 02-APR-23
datafile 1 switched to datafile copy
input datafile copy RECID=27 STAMP=1133135020 file name=+RECOC1/CDBFIN_2/DATAFILE/system.1031.1133134945
datafile 5 switched to datafile copy
input datafile copy RECID=28 STAMP=1133135020 file name=+RECOC1/CDBFIN_2/DATAFILE/undotbs1.3321.1133134945
datafile 7 switched to datafile copy
input datafile copy RECID=29 STAMP=1133135020 file name=+RECOC1/CDBFIN_2/DATAFILE/undotbs2.851.1133134945
datafile 3 switched to datafile copy
input datafile copy RECID=30 STAMP=1133135020 file name=+RECOC1/CDBFIN_2/DATAFILE/sysaux.3262.1133134945
contents of Memory Script:
{
# set requested point in time
set until scn 540454493;
# online the datafiles restored or switched
sql clone "alter database datafile 1 online";
sql clone "alter database datafile 5 online";
sql clone "alter database datafile 7 online";
sql clone "alter database datafile 3 online";
sql clone 'FINDB' "alter database datafile
13 online";
sql clone 'FINDB' "alter database datafile
14 online";
sql clone 'FINDB' "alter database datafile
15 online";
sql clone 'FINDB' "alter database datafile
16 online";
sql clone 'FINDB' "alter database datafile
17 online";
# recover pdb
recover clone database tablespace "SYSTEM", "UNDOTBS1", "UNDOTBS2", "SYSAUX" pluggable database
'FINDB' delete archivelog;
sql clone 'alter database open read only';
plsql <<<begin
add_dropped_ts;
end; >>>;
plsql <<<begin
save_pdb_clean_scn;
end; >>>;
# shutdown clone before import
shutdown clone abort
plsql <<<begin
pdbpitr_inspect(pdbname => 'FINDB');
end; >>>;
}
executing Memory Script
executing command: SET until clause
sql statement: alter database datafile 1 online
sql statement: alter database datafile 5 online
sql statement: alter database datafile 7 online
sql statement: alter database datafile 3 online
sql statement: alter database datafile 13 online
sql statement: alter database datafile 14 online
sql statement: alter database datafile 15 online
sql statement: alter database datafile 16 online
sql statement: alter database datafile 17 online
Starting recover at 02-APR-23
using channel ORA_AUX_SBT_TAPE_1
using channel ORA_AUX_DISK_1
starting media recovery
archived log for thread 1 with sequence 1351 is already on disk as file +RECOC1/CDBFIN_2/ARCHIVELOG/2023_04_02/thread_1_seq_1351.1136.1133129305
archived log for thread 2 with sequence 1350 is already on disk as file +RECOC1/CDBFIN_2/ARCHIVELOG/2023_04_02/thread_2_seq_1350.3327.1133129309
channel ORA_SBT_TAPE_1: starting archived log restore to default destination
channel ORA_SBT_TAPE_1: restoring archived log
archived log thread=2 sequence=1341
channel ORA_SBT_TAPE_1: reading from backup piece CDBFIN_t31ohnpf_1_1
channel ORA_SBT_TAPE_1: piece handle=CDBFIN_t31ohnpf_1_1 tag=TAG20230401T221822
channel ORA_SBT_TAPE_1: restored backup piece 1
channel ORA_SBT_TAPE_1: restore complete, elapsed time: 00:00:01
channel ORA_SBT_TAPE_1: starting archived log restore to default destination
channel ORA_SBT_TAPE_1: restoring archived log
archived log thread=1 sequence=1342
channel ORA_SBT_TAPE_1: reading from backup piece CDBFIN_t21ohnpf_1_1
channel ORA_SBT_TAPE_1: piece handle=CDBFIN_t21ohnpf_1_1 tag=TAG20230401T221822
channel ORA_SBT_TAPE_1: restored backup piece 1
channel ORA_SBT_TAPE_1: restore complete, elapsed time: 00:00:01
channel ORA_SBT_TAPE_1: starting archived log restore to default destination
channel ORA_SBT_TAPE_1: restoring archived log
archived log thread=1 sequence=1343
channel ORA_SBT_TAPE_1: reading from backup piece CDBFIN_t51ohuqf_1_1
archived log file name=+RECOC1/CDBFIN_2/ARCHIVELOG/2023_04_02/thread_1_seq_1342.768.1133135027 thread=1 sequence=1342
archived log file name=+RECOC1/CDBFIN_2/ARCHIVELOG/2023_04_02/thread_2_seq_1341.879.1133135025 thread=2 sequence=1341
channel clone_default: deleting archived log(s)
archived log file name=+RECOC1/CDBFIN_2/ARCHIVELOG/2023_04_02/thread_1_seq_1342.768.1133135027 RECID=9044 STAMP=1133135026
channel ORA_SBT_TAPE_1: piece handle=CDBFIN_t51ohuqf_1_1 tag=TAG20230402T001822
channel ORA_SBT_TAPE_1: restored backup piece 1
channel ORA_SBT_TAPE_1: restore complete, elapsed time: 00:00:02
channel ORA_SBT_TAPE_1: starting archived log restore to default destination
channel ORA_SBT_TAPE_1: restoring archived log
archived log thread=2 sequence=1342
channel ORA_SBT_TAPE_1: reading from backup piece CDBFIN_t61ohuqf_1_1
archived log file name=+RECOC1/CDBFIN_2/ARCHIVELOG/2023_04_02/thread_1_seq_1343.820.1133135027 thread=1 sequence=1343
channel clone_default: deleting archived log(s)
archived log file name=+RECOC1/CDBFIN_2/ARCHIVELOG/2023_04_02/thread_2_seq_1341.879.1133135025 RECID=9043 STAMP=1133135025
channel ORA_SBT_TAPE_1: piece handle=CDBFIN_t61ohuqf_1_1 tag=TAG20230402T001822
channel ORA_SBT_TAPE_1: restored backup piece 1
channel ORA_SBT_TAPE_1: restore complete, elapsed time: 00:00:01
channel ORA_SBT_TAPE_1: starting archived log restore to default destination
channel ORA_SBT_TAPE_1: restoring archived log
archived log thread=1 sequence=1344
channel ORA_SBT_TAPE_1: reading from backup piece CDBFIN_t81oijtd_1_1
archived log file name=+RECOC1/CDBFIN_2/ARCHIVELOG/2023_04_02/thread_2_seq_1342.768.1133135029 thread=2 sequence=1342
channel clone_default: deleting archived log(s)
archived log file name=+RECOC1/CDBFIN_2/ARCHIVELOG/2023_04_02/thread_1_seq_1343.820.1133135027 RECID=9045 STAMP=1133135028
channel ORA_SBT_TAPE_1: piece handle=CDBFIN_t81oijtd_1_1 tag=TAG20230402T061821
channel ORA_SBT_TAPE_1: restored backup piece 1
channel ORA_SBT_TAPE_1: restore complete, elapsed time: 00:00:01
channel ORA_SBT_TAPE_1: starting archived log restore to default destination
channel ORA_SBT_TAPE_1: restoring archived log
archived log thread=2 sequence=1343
channel ORA_SBT_TAPE_1: reading from backup piece CDBFIN_t91oijtd_1_1
archived log file name=+RECOC1/CDBFIN_2/ARCHIVELOG/2023_04_02/thread_1_seq_1344.879.1133135031 thread=1 sequence=1344
channel clone_default: deleting archived log(s)
archived log file name=+RECOC1/CDBFIN_2/ARCHIVELOG/2023_04_02/thread_2_seq_1342.768.1133135029 RECID=9046 STAMP=1133135029
channel ORA_SBT_TAPE_1: piece handle=CDBFIN_t91oijtd_1_1 tag=TAG20230402T061821
channel ORA_SBT_TAPE_1: restored backup piece 1
channel ORA_SBT_TAPE_1: restore complete, elapsed time: 00:00:01
channel ORA_SBT_TAPE_1: starting archived log restore to default destination
channel ORA_SBT_TAPE_1: restoring archived log
archived log thread=2 sequence=1344
channel ORA_SBT_TAPE_1: reading from backup piece CDBFIN_tc1oiquf_1_1
archived log file name=+RECOC1/CDBFIN_2/ARCHIVELOG/2023_04_02/thread_2_seq_1343.768.1133135031 thread=2 sequence=1343
channel clone_default: deleting archived log(s)
archived log file name=+RECOC1/CDBFIN_2/ARCHIVELOG/2023_04_02/thread_2_seq_1343.768.1133135031 RECID=9048 STAMP=1133135031
channel ORA_SBT_TAPE_1: piece handle=CDBFIN_tc1oiquf_1_1 tag=TAG20230402T081822
channel ORA_SBT_TAPE_1: restored backup piece 1
channel ORA_SBT_TAPE_1: restore complete, elapsed time: 00:00:02
channel ORA_SBT_TAPE_1: starting archived log restore to default destination
channel ORA_SBT_TAPE_1: restoring archived log
archived log thread=1 sequence=1345
channel ORA_SBT_TAPE_1: reading from backup piece CDBFIN_tb1oique_1_1
archived log file name=+RECOC1/CDBFIN_2/ARCHIVELOG/2023_04_02/thread_2_seq_1344.820.1133135033 thread=2 sequence=1344
channel clone_default: deleting archived log(s)
archived log file name=+RECOC1/CDBFIN_2/ARCHIVELOG/2023_04_02/thread_1_seq_1344.879.1133135031 RECID=9047 STAMP=1133135030
channel ORA_SBT_TAPE_1: piece handle=CDBFIN_tb1oique_1_1 tag=TAG20230402T081822
channel ORA_SBT_TAPE_1: restored backup piece 1
channel ORA_SBT_TAPE_1: restore complete, elapsed time: 00:00:00
channel ORA_SBT_TAPE_1: starting archived log restore to default destination
channel ORA_SBT_TAPE_1: restoring archived log
archived log thread=1 sequence=1346
channel ORA_SBT_TAPE_1: reading from backup piece CDBFIN_te1oj1ve_1_1
archived log file name=+RECOC1/CDBFIN_2/ARCHIVELOG/2023_04_02/thread_1_seq_1345.768.1133135035 thread=1 sequence=1345
channel clone_default: deleting archived log(s)
archived log file name=+RECOC1/CDBFIN_2/ARCHIVELOG/2023_04_02/thread_1_seq_1345.768.1133135035 RECID=9050 STAMP=1133135034
channel ORA_SBT_TAPE_1: piece handle=CDBFIN_te1oj1ve_1_1 tag=TAG20230402T101822
channel ORA_SBT_TAPE_1: restored backup piece 1
channel ORA_SBT_TAPE_1: restore complete, elapsed time: 00:00:02
channel ORA_SBT_TAPE_1: starting archived log restore to default destination
channel ORA_SBT_TAPE_1: restoring archived log
archived log thread=2 sequence=1345
channel ORA_SBT_TAPE_1: reading from backup piece CDBFIN_tf1oj1ve_1_1
archived log file name=+RECOC1/CDBFIN_2/ARCHIVELOG/2023_04_02/thread_1_seq_1346.879.1133135035 thread=1 sequence=1346
channel clone_default: deleting archived log(s)
archived log file name=+RECOC1/CDBFIN_2/ARCHIVELOG/2023_04_02/thread_2_seq_1344.820.1133135033 RECID=9049 STAMP=1133135032
channel ORA_SBT_TAPE_1: piece handle=CDBFIN_tf1oj1ve_1_1 tag=TAG20230402T101822
channel ORA_SBT_TAPE_1: restored backup piece 1
channel ORA_SBT_TAPE_1: restore complete, elapsed time: 00:00:00
channel ORA_SBT_TAPE_1: starting archived log restore to default destination
channel ORA_SBT_TAPE_1: restoring archived log
archived log thread=1 sequence=1347
channel ORA_SBT_TAPE_1: reading from backup piece CDBFIN_th1oj90e_1_1
archived log file name=+RECOC1/CDBFIN_2/ARCHIVELOG/2023_04_02/thread_2_seq_1345.768.1133135037 thread=2 sequence=1345
channel clone_default: deleting archived log(s)
archived log file name=+RECOC1/CDBFIN_2/ARCHIVELOG/2023_04_02/thread_1_seq_1346.879.1133135035 RECID=9051 STAMP=1133135035
channel ORA_SBT_TAPE_1: piece handle=CDBFIN_th1oj90e_1_1 tag=TAG20230402T121822
channel ORA_SBT_TAPE_1: restored backup piece 1
channel ORA_SBT_TAPE_1: restore complete, elapsed time: 00:00:02
channel ORA_SBT_TAPE_1: starting archived log restore to default destination
channel ORA_SBT_TAPE_1: restoring archived log
archived log thread=2 sequence=1346
channel ORA_SBT_TAPE_1: reading from backup piece CDBFIN_ti1oj90e_1_1
archived log file name=+RECOC1/CDBFIN_2/ARCHIVELOG/2023_04_02/thread_1_seq_1347.820.1133135037 thread=1 sequence=1347
channel clone_default: deleting archived log(s)
archived log file name=+RECOC1/CDBFIN_2/ARCHIVELOG/2023_04_02/thread_2_seq_1345.768.1133135037 RECID=9052 STAMP=1133135036
channel ORA_SBT_TAPE_1: piece handle=CDBFIN_ti1oj90e_1_1 tag=TAG20230402T121822
channel ORA_SBT_TAPE_1: restored backup piece 1
channel ORA_SBT_TAPE_1: restore complete, elapsed time: 00:00:01
channel ORA_SBT_TAPE_1: starting archived log restore to default destination
channel ORA_SBT_TAPE_1: restoring archived log
archived log thread=1 sequence=1348
channel ORA_SBT_TAPE_1: reading from backup piece CDBFIN_tk1ojg1h_1_1
archived log file name=+RECOC1/CDBFIN_2/ARCHIVELOG/2023_04_02/thread_2_seq_1346.879.1133135039 thread=2 sequence=1346
channel clone_default: deleting archived log(s)
archived log file name=+RECOC1/CDBFIN_2/ARCHIVELOG/2023_04_02/thread_1_seq_1347.820.1133135037 RECID=9053 STAMP=1133135037
channel ORA_SBT_TAPE_1: piece handle=CDBFIN_tk1ojg1h_1_1 tag=TAG20230402T141825
channel ORA_SBT_TAPE_1: restored backup piece 1
channel ORA_SBT_TAPE_1: restore complete, elapsed time: 00:00:00
channel ORA_SBT_TAPE_1: starting archived log restore to default destination
channel ORA_SBT_TAPE_1: restoring archived log
archived log thread=2 sequence=1347
channel ORA_SBT_TAPE_1: reading from backup piece CDBFIN_tl1ojg1h_1_1
archived log file name=+RECOC1/CDBFIN_2/ARCHIVELOG/2023_04_02/thread_1_seq_1348.768.1133135039 thread=1 sequence=1348
channel clone_default: deleting archived log(s)
archived log file name=+RECOC1/CDBFIN_2/ARCHIVELOG/2023_04_02/thread_2_seq_1346.879.1133135039 RECID=9054 STAMP=1133135038
channel ORA_SBT_TAPE_1: piece handle=CDBFIN_tl1ojg1h_1_1 tag=TAG20230402T141825
channel ORA_SBT_TAPE_1: restored backup piece 1
channel ORA_SBT_TAPE_1: restore complete, elapsed time: 00:00:02
channel ORA_SBT_TAPE_1: starting archived log restore to default destination
channel ORA_SBT_TAPE_1: restoring archived log
archived log thread=2 sequence=1348
channel ORA_SBT_TAPE_1: reading from backup piece CDBFIN_to1ojn2f_1_1
archived log file name=+RECOC1/CDBFIN_2/ARCHIVELOG/2023_04_02/thread_2_seq_1347.820.1133135041 thread=2 sequence=1347
channel clone_default: deleting archived log(s)
archived log file name=+RECOC1/CDBFIN_2/ARCHIVELOG/2023_04_02/thread_2_seq_1347.820.1133135041 RECID=9056 STAMP=1133135040
channel ORA_SBT_TAPE_1: piece handle=CDBFIN_to1ojn2f_1_1 tag=TAG20230402T161823
channel ORA_SBT_TAPE_1: restored backup piece 1
channel ORA_SBT_TAPE_1: restore complete, elapsed time: 00:00:01
channel ORA_SBT_TAPE_1: starting archived log restore to default destination
channel ORA_SBT_TAPE_1: restoring archived log
archived log thread=1 sequence=1349
channel ORA_SBT_TAPE_1: reading from backup piece CDBFIN_tn1ojn2f_1_1
archived log file name=+RECOC1/CDBFIN_2/ARCHIVELOG/2023_04_02/thread_2_seq_1348.879.1133135041 thread=2 sequence=1348
channel clone_default: deleting archived log(s)
archived log file name=+RECOC1/CDBFIN_2/ARCHIVELOG/2023_04_02/thread_1_seq_1348.768.1133135039 RECID=9055 STAMP=1133135039
channel ORA_SBT_TAPE_1: piece handle=CDBFIN_tn1ojn2f_1_1 tag=TAG20230402T161823
channel ORA_SBT_TAPE_1: restored backup piece 1
channel ORA_SBT_TAPE_1: restore complete, elapsed time: 00:00:00
channel ORA_SBT_TAPE_1: starting archived log restore to default destination
channel ORA_SBT_TAPE_1: restoring archived log
archived log thread=1 sequence=1350
channel ORA_SBT_TAPE_1: reading from backup piece CDBFIN_tr1ok54e_1_1
archived log file name=+RECOC1/CDBFIN_2/ARCHIVELOG/2023_04_02/thread_1_seq_1349.820.1133135043 thread=1 sequence=1349
channel clone_default: deleting archived log(s)
archived log file name=+RECOC1/CDBFIN_2/ARCHIVELOG/2023_04_02/thread_1_seq_1349.820.1133135043 RECID=9058 STAMP=1133135042
channel ORA_SBT_TAPE_1: piece handle=CDBFIN_tr1ok54e_1_1 tag=TAG20230402T201822
channel ORA_SBT_TAPE_1: restored backup piece 1
channel ORA_SBT_TAPE_1: restore complete, elapsed time: 00:00:01
channel ORA_SBT_TAPE_1: starting archived log restore to default destination
channel ORA_SBT_TAPE_1: restoring archived log
archived log thread=2 sequence=1349
channel ORA_SBT_TAPE_1: reading from backup piece CDBFIN_tq1ok54e_1_1
archived log file name=+RECOC1/CDBFIN_2/ARCHIVELOG/2023_04_02/thread_1_seq_1350.768.1133135043 thread=1 sequence=1350
channel clone_default: deleting archived log(s)
archived log file name=+RECOC1/CDBFIN_2/ARCHIVELOG/2023_04_02/thread_2_seq_1348.879.1133135041 RECID=9057 STAMP=1133135041
channel ORA_SBT_TAPE_1: piece handle=CDBFIN_tq1ok54e_1_1 tag=TAG20230402T201822
channel ORA_SBT_TAPE_1: restored backup piece 1
channel ORA_SBT_TAPE_1: restore complete, elapsed time: 00:00:01
archived log file name=+RECOC1/CDBFIN_2/ARCHIVELOG/2023_04_02/thread_2_seq_1349.820.1133135045 thread=2 sequence=1349
channel clone_default: deleting archived log(s)
archived log file name=+RECOC1/CDBFIN_2/ARCHIVELOG/2023_04_02/thread_1_seq_1350.768.1133135043 RECID=9059 STAMP=1133135043
archived log file name=+RECOC1/CDBFIN_2/ARCHIVELOG/2023_04_02/thread_1_seq_1351.1136.1133129305 thread=1 sequence=1351
channel clone_default: deleting archived log(s)
archived log file name=+RECOC1/CDBFIN_2/ARCHIVELOG/2023_04_02/thread_2_seq_1349.820.1133135045 RECID=9060 STAMP=1133135043
archived log file name=+RECOC1/CDBFIN_2/ARCHIVELOG/2023_04_02/thread_2_seq_1350.3327.1133129309 thread=2 sequence=1350
media recovery complete, elapsed time: 00:00:02
Finished recover at 02-APR-23
sql statement: alter database open read only
Oracle instance shut down
Removing automatic instance
Automatic instance removed
auxiliary instance file +RECOC1/CDBFIN_2/DATAFILE/sysaux.3262.1133134945 deleted
auxiliary instance file +RECOC1/CDBFIN_2/DATAFILE/current.641.1133134925 deleted
Finished recover at 02-APR-23
</code></b></pre>
<p><b>Step 10 -: Once the recovery is completed Switch to sql prompt and open PDB in resetlogs mode.Nw the PDB should open in non restricted mode.</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> show pdbs
CON_ID CON_NAME OPEN MODE RESTRICTED
---------- ------------------------------ ---------- ----------
2 PDB$SEED READ ONLY NO
4 FINDB MOUNTED
SQL> alter pluggable database FINDB open resetlogs;
Pluggable database altered.
SQL> show pdbs
CON_ID CON_NAME OPEN MODE RESTRICTED
---------- ------------------------------ ---------- ----------
2 PDB$SEED READ ONLY NO
4 FINDB READ WRITE NO
</code></b></pre>
<p><b>Step 11 -: Stop start database and Backup full database once.</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[oracle@dm01db01 CDBFIN]$ srvctl stop database -d CDBFIN_2;
[oracle@dm01db01 CDBFIN]$ srvctl start database -d CDBFIN_2
</code></b></pre>Sultan Khanhttp://www.blogger.com/profile/12933538356533244884noreply@blogger.com0tag:blogger.com,1999:blog-399436389180403563.post-21599822540724561932023-03-28T17:30:00.003+05:302023-04-18T18:19:29.669+05:30Database in failed state OCI Console<p><b>Hello Friends,</b></p>
<p><b>In this post we will discuss about an issue with the migrated database showing in failed state in OCI console .</b></p>
<p><b>So lets get started,</b></p>
<p><b>We had an issue where our migrated database CDBFIN was showing as failed in OCI console as in image below even my pdb in database was shown with wrong name .</b></p>
<div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjR7JLsfesSx5hQjABVhVYZCUZqFrBnQ0rdWDhJqmqV4lxateRbcoFW7AElO9YvNaZ_NzRTE7swFc0yjyLEmDkGDQIsZn3MG3jtUWsw9V2mOour-eqkvqtxvnLDwttBGNKlNKxu8q_TfxLNX9bYXBMNL-hsjgOlGCSLsP2OzAoV_Nv91kbJmeKV25YDGw/s1600/Database_filed_CDB.png" style="display: block; padding: 1em 0; text-align: center; "><img alt="Database in failed state OCI Console" border="0" data-original-height="176" data-original-width="1025" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjR7JLsfesSx5hQjABVhVYZCUZqFrBnQ0rdWDhJqmqV4lxateRbcoFW7AElO9YvNaZ_NzRTE7swFc0yjyLEmDkGDQIsZn3MG3jtUWsw9V2mOour-eqkvqtxvnLDwttBGNKlNKxu8q_TfxLNX9bYXBMNL-hsjgOlGCSLsP2OzAoV_Nv91kbJmeKV25YDGw/s1600/Database_filed_CDB.png"/></a></div>
<p><b>So i will provide the steps what i did to resolve the issue .</b></p>
<p><b>Solution 1 :</b></p>
<p><b>check the creg file on locaton below in the server it should be by the name of the database or there should be a softlink to the unique name ini file with database name</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
cd /var/opt/oracle/creg/
creg]$ ls -l
...
-rw-rw---- 1 oracle oinstall 4893 Jan 27 17:13 CDCDBFIN.ini
lrwxrwxrwx 1 oracle oinstall 32 Jan 6 21:48 CDCDBFIN_CDCDBFIN_2.ini -> /var/opt/oracle/creg/CDCDBFIN.ini
</code></b></pre>
<p><b>Solution 2 :</b></p>
<p><b>Check the config of database using command srvctl config database .</b></p>
<p><b>check for the database name it should be same as shown with the command show parameter db_name if now follow beow steps to change </b></p>
<p><b>check the config of database :</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[oracle@dm01db02 creg]$ srvctl config database -d CDCDBFIN_2
Database unique name: CDCDBFIN_2
Database name: CDCDBFIN_2
Oracle home: /u02/app/oracle/product/19.0.0.0/dbhome_1
</code></b></pre>
<p><b>Modify the database name using below command :</b></p>
[oracle@dm01db02 creg]$ srvctl modify database -d CDCDBFIN_2 -dbname CDBFIN
<p><b>Now recheck the database name using the config command it should be changed :
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[oracle@dm01db02 creg]$ srvctl config database -d CDCDBFIN_2
Database unique name: CDCDBFIN_2
Database name: CDBFIN
Oracle home: /u02/app/oracle/product/19.0.0.0/dbhome_1
</code></b></pre>
<p><b>now there will be a wait for an hour to sync the changes to OCI console , Normally its between 45 mins to 1 hour</b></p>
<p><b>once the CDB state is changed from failed to available</b></p>
<p><b>now we will go for PDB correction.</b></p>
<p><b>We have to terminate the current PDB to get the OCI console to get synced with correct name.</b></p>
<p><b>Clean Image .</b></p>
<p><b>If the PDB is showing failed , then check for info icon bedise failed state in OCI console you will get a CON_UID from there</b></p>
<p><b>check for the CON_UID on the database in not found you can delete the failed PDB and the orignal PDB will get synced in a hour of time OCI console .</b></p>
<p><b>select name from v$database;</b></p>
<p><b>select NAME from V$PDBS where CON_UID=<con_uid obtained from the console message>;</b></p>
<p><b>warning : output of above command should be blank then only you can delete the PDB from console.</b></p>
<p><b>Note : Database will be synced in after 1 hour of time atleast</b></p>
Sultan Khanhttp://www.blogger.com/profile/12933538356533244884noreply@blogger.com0tag:blogger.com,1999:blog-399436389180403563.post-89207572927510218272023-03-28T14:17:00.002+05:302023-03-28T14:20:12.385+05:30OPW-00010: Could not create the password file. This resource has a Password File<p><b>Hello Friends,</b></p>
<p><b>This post we will discuss about error OPW-00010: Could not create the password file. This resource has a Password File. </b></p>
<p><b>In our case file was not present in location and it was present in config of database ,Error OPW-00010 occurred when we attempted to create one. Password file creation failed. While doing so, a Password File for this resource.</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[oracle@dm01db01 ~]$ orapwd dbuniquename=CDBRAT file='+DATAC2/CDBRAT/PASSWORD/pwdcdbrat' entries=10
Enter password for SYS:
OPW-00010: Could not create the password file. This resource has a Password File.
</code></b></pre>
check the config of database
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[oracle@dm01db01 ~]$ srvctl config database -d CDBRAT
Database unique name: CDBRAT
Database name: CDBRAT
Oracle home: /u02/app/oracle/product/19.0.0.0/dbhome_3
Oracle user: oracle
Spfile: +DATAC2/CDBRAT/PARAMETERFILE/spfile.302.1129568937
Password file: +DATAC2/CDBRAT/PASSWORD/pwdcdbrat.262.1129568131 -----Wrong pwd file / non available file
Domain:
Start options: open
Stop options: immediate
Database role: PRIMARY
Management policy: AUTOMATIC
</code></b></pre>
<p><b>Indeed, the password file's location has been set, however the file mentioned is wrong.</b></p>
<p><b>Because of this, we need to make a password file for it.</b></p>
<p><b>The error code OPW-00010 indicates that the RAC database configuration contained a password file with a name that differed from the one you supplied.</b></p>
<p><b>Oracle won't permit you to make a new password file and overwrite the configured one in order to safeguard it.</b></p>
<p><b>Solution : </b></p>
<p><b>In order to fix OPW-00010, we need change the location of the password file to make it appear as though there isn't one at the moment.</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[oracle@dm01db01 ~]$ srvctl config database -d CDBRAT
Database unique name: CDBRAT
Database name: CDBRAT
Oracle home: /u02/app/oracle/product/19.0.0.0/dbhome_3
Oracle user: oracle
Spfile: +DATAC2/CDBRAT/PARAMETERFILE/spfile.302.1129568937
Password file:
Domain:
Start options: open
Stop options: immediate
Database role: PRIMARY
Management policy: AUTOMATIC
</code></b></pre>
<p><b>Create new password file :</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[oracle@dm01db01 ~]$ orapwd dbuniquename=CDBRAT file='+DATAC2' entries=10
Enter password for SYS:
[oracle@dm01db01 ~]$
ASMCMD> ls -l
Type Redund Striped Time Sys Name
PASSWORD HIGH COARSE MAR 21 19:00:00 Y pwdcdbrat.270.1132082551
ASMCMD> pwd
+DATAC2/CDBRAT/PASSWORD
</code></b></pre>
<p><b>New password file updated .</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[oracle@dm01db01 ~]$ srvctl config database -d CDBRAT
Database unique name: CDBRAT
Database name: CDBRAT
Oracle home: /u02/app/oracle/product/19.0.0.0/dbhome_3
Oracle user: oracle
Spfile: +DATAC2/CDBRAT/PARAMETERFILE/spfile.302.1129568937
Password file: +DATAC2/CDBRAT/PASSWORD/pwdcdbrat.270.1132082551
Domain:
Start options: open
Stop options: immediate
Database role: PRIMARY
Management policy: AUTOMATIC
</code></b></pre>Sultan Khanhttp://www.blogger.com/profile/12933538356533244884noreply@blogger.com0tag:blogger.com,1999:blog-399436389180403563.post-35921312366595930962023-03-28T14:15:00.000+05:302023-03-28T14:15:14.400+05:30Steps to apply patch for error ORA-00800<p><b>Hello Friends,</b></p>
<p><b>This post we will discuss How to apply Merge Patch on RAC database </b></p>
<p><b>Note : This steps is only for Patch : p34932268_1918000DBRU</b></p>
<p><b>Bug fixed in patch :</b></p>
<p><b>The following are the bugs fixed by this patch:</b></p>
<p><b>34286265: SAGEASM-E HIT ORA 800 [SET PRIORITY FAILED] WHEN STARTING LMS BACKGROUND PROCESS</b></p>
<p><b>34318125: ORA-00800: SOFT EXTERNAL ERROR, ARGUMENTS: [SET PRIORITY FAILED] ON BG PROCESSES</b></p>
<p><b>Unzip the Patch : </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[root@dm01db01 tmp]# unzip --q p34932268_1918000DBRU_Linux-x86-64.zip
Archive: p34932268_1918000DBRU_Linux-x86-64.zip
creating: 34932268/
creating: 34932268/files/
creating: 34932268/files/lib/
creating: 34932268/files/lib/libgeneric19.a/
inflating: 34932268/files/lib/libgeneric19.a/skgnfs.o
inflating: 34932268/files/lib/libgeneric19.a/sskgm.o
inflating: 34932268/files/lib/libgeneric19.a/skgfr.o
inflating: 34932268/files/lib/libgeneric19.a/kgpcs.o
inflating: 34932268/files/lib/libgeneric19.a/dbnest_ns.o
inflating: 34932268/files/lib/libgeneric19.a/dbnest_res.o
inflating: 34932268/files/lib/libgeneric19.a/kgcs.o
inflating: 34932268/files/lib/libgeneric19.a/skgdism.o
inflating: 34932268/files/lib/libgeneric19.a/kgnfs.o
creating: 34932268/files/lib/libserver19.a/
inflating: 34932268/files/lib/libserver19.a/skofs.o
inflating: 34932268/files/lib/libserver19.a/sp.o
inflating: 34932268/files/lib/libserver19.a/ksns.o
creating: 34932268/files/rdbms/
creating: 34932268/files/rdbms/lib/
inflating: 34932268/files/rdbms/lib/soradism.o
creating: 34932268/files/bin/
inflating: 34932268/files/bin/oradism
creating: 34932268/etc/
creating: 34932268/etc/config/
inflating: 34932268/etc/config/inventory.xml
inflating: 34932268/etc/config/actions.xml
inflating: 34932268/README.txt
inflating: PatchSearch.xml
</code></b></pre>
<p><b>Step 1 : change ownership and permission of oradism </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[root@dm01db01 ~]# ls -ltr /u02/app/oracle/product/19.0.0.0/dbhome_1/bin/oradism
-rwsr-x--- 1 root oinstall 147848 Apr 17 2019 /u02/app/oracle/product/19.0.0.0/dbhome_1/bin/oradism
[root@dm01db01 ~]#
[root@dm01db01 ~]# chown oracle /u02/app/oracle/product/19.0.0.0/dbhome_1/bin/oradism
[root@dm01db01 ~]#
[root@dm01db01 ~]# chmod 0750 /u02/app/oracle/product/19.0.0.0/dbhome_1/bin/oradism
[root@dm01db01 ~]#
[root@dm01db01 ~]#
[root@dm01db01 ~]# ls -ltr /u02/app/oracle/product/19.0.0.0/dbhome_1/bin/oradism
-rwxr-x--- 1 oracle oinstall 147848 Apr 17 2019 /u02/app/oracle/product/19.0.0.0/dbhome_1/bin/oradism
[root@dm01db01 ~]#
</code></b></pre>
<p><b>Step 2 : Stop the Instance on Node 1 </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
srvctl stop instance -d CDBFINDB -n dm01db01
[oracle@dm01db01 admin]$ srvctl status database -d CDBFINDB_2
Instance CDBFINDB1 is not running on node dm01db01
Instance CDBFINDB2 is running on node dm01db02
</code></b></pre>
<p><b>Step 3 : Apply the patch on node 1 </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
/u02/app/oracle/product/19.0.0.0/dbhome_1/OPatch/opatch apply -oh /u02/app/oracle/product/19.0.0.0/dbhome_1 -local /tmp/34932268
[oracle@dm01db01 admin]$ /u02/app/oracle/product/19.0.0.0/dbhome_1/OPatch/opatch apply -oh /u02/app/oracle/product/19.0.0.0/dbhome_1 -local /tmp/34932268
Oracle Interim Patch Installer version 12.2.0.1.36
Copyright (c) 2023, Oracle Corporation. All rights reserved.
Oracle Home : /u02/app/oracle/product/19.0.0.0/dbhome_1
Central Inventory : /u01/app/oraInventory
from : /u02/app/oracle/product/19.0.0.0/dbhome_1/oraInst.loc
OPatch version : 12.2.0.1.36
OUI version : 12.2.0.7.0
Log file location : /u02/app/oracle/product/19.0.0.0/dbhome_1/cfgtoollogs/opatch/opatch2023-03-10_20-18-39PM_1.log
Verifying environment and performing prerequisite checks...
OPatch continues with these patches: 34932268
Do you want to proceed? [y|n]
y
User Responded with: Y
All checks passed.
Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/u02/app/oracle/product/19.0.0.0/dbhome_1')
Is the local system ready for patching? [y|n]
y
User Responded with: Y
Backing up files...
Applying interim patch '34932268' to OH '/u02/app/oracle/product/19.0.0.0/dbhome_1'
Patching component oracle.rdbms.rsf, 19.0.0.0.0...
Patching component oracle.rdbms, 19.0.0.0.0...
Patch 34932268 successfully applied.
Log file location: /u02/app/oracle/product/19.0.0.0/dbhome_1/cfgtoollogs/opatch/opatch2023-03-10_20-18-39PM_1.log
OPatch succeeded.
</code></b></pre>
<p><b>Step 4 : Start the instance on node 1 </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[oracle@dm01db01 34783802]$ srvctl start instance -d CDBFINDB_2 -n dm01db01
[oracle@dm01db01 34783802]$
[oracle@dm01db01 34783802]$ srvctl status database -d CDBFINDB_2
Instance CDBFINDB1 is running on node dm01db01
Instance CDBFINDB2 is running on node dm01db02
</code></b></pre>
<p><b>Step 5 : change ownership and permission of oradism back to root </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[root@dm01db01 tmp]# ls -ltr /u02/app/oracle/product/19.0.0.0/dbhome_1/bin/oradism
-rwxr-x--- 1 oracle oinstall 145848 Dec 29 21:42 /u02/app/oracle/product/19.0.0.0/dbhome_1/bin/oradism
[root@dm01db01 tmp]#
[root@dm01db01 tmp]# chown root /u02/app/oracle/product/19.0.0.0/dbhome_1/bin/oradism
[root@dm01db01 tmp]#
[root@dm01db01 tmp]# chmod 4750 /u02/app/oracle/product/19.0.0.0/dbhome_1/bin/oradism
[root@dm01db01 tmp]#
[root@dm01db01 tmp]# ls -ld /u02/app/oracle/product/19.0.0.0/dbhome_1/bin/oradism
-rwsr-x--- 1 root oinstall 145848 Dec 29 21:42 /u02/app/oracle/product/19.0.0.0/dbhome_1/bin/oradism
</code></b></pre>
<p><b>Step 6 : confirm the apply, no need to datapatch in this </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[oracle@dm01db01 ~]$ export PATH=$ORACLE_HOME/OPatch:$PATH
[oracle@dm01db01 ~]$ opatch lspatches
35122166;MERGE ON DATABASE RU 19.18.0.0.0 OF 32727143 33726590 33899867 34049216 34132182
34783802;PARALLEL QUERY ON PARTITIONED TABLE RETURNS WRONG RESULT
34932268;MERGE ON DATABASE RU 19.18.0.0.0 OF 34649727
34835593;REFERENCE BUG 34792490 - SCHEDULER LAYER CHANGES TO AVOID CYCLIC DEPENDENCY ON DBMS_AQADM_SYS PACKAGE
34792490;FADBRWT STRESS FA ORA-00060 DEADLOCK DETECTED DURING DATAPATCH
34699616;DSTV40 UPDATE - TZDATA2022E - NEED OJVM FIX
34777391;JDK BUNDLE PATCH 19.0.0.0.230117
34786990;OJVM RELEASE UPDATE: 19.18.0.0.230117 (34786990)
34768559;OCW RELEASE UPDATE 19.18.0.0.0 (34768559)
34765931;DATABASE RELEASE UPDATE : 19.18.0.0.230117 (REL-JAN230131) (34765931)
OPatch succeeded.
</code></b></pre>
<p><b>Note Patching completed on node 1 : </b></p>
<p><b>Start Patching on node 2 . Follow the same steps for node 2 and run data patch </b></p>
<p><b>To deinstall patch</b></p>
<p><b>Deinstall the patch from DB home(s) as DB home owner :</b></p>
<p><b>$ /u02/app/oracle/product/19.0.0.0/dbhome_1/OPatch/opatch rollback -local -id 34932268 -oh /u02/app/oracle/product/19.0.0.0/dbhome_1</b></p> Sultan Khanhttp://www.blogger.com/profile/12933538356533244884noreply@blogger.com0tag:blogger.com,1999:blog-399436389180403563.post-44102540250209104862023-03-21T20:17:00.002+05:302023-03-28T14:17:10.314+05:30How to solve ORA-28361: master key not yet set<p><b>Hello Firends,</b></p>
<p><b>In this post we will discuss , How to configure key after adding new PDB in Database using TED .</b></p>
<p><b>So lets get started .</b></p>
<p><b>So in this senario we are adding a new pdb and we are getting an error while creating tablespace</b></p>
<p><b>Error : ORA-28361: master key not yet set</b></p>
<p><b>ORA-28361 is an Oracle error code that typically indicates that the master encryption key for Transparent Data Encryption (TDE) has not been set. TDE is a feature in Oracle that allows encryption of sensitive data in the database.</b></p>
<p><b>Here are some steps you can take to diagnose and potentially resolve this error:</b></p>
<p><b>Create Pluggable database </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> create pluggable database BIGBD ADMIN USER Admin IDENTIFIED BY Password#;
Pluggable database created.
SQL> show pdbs
CON_ID CON_NAME OPEN MODE RESTRICTED
---------- ------------------------------ ---------- ----------
2 PDB$SEED READ ONLY NO
3 TT4P READ WRITE NO
4 BIGBD MOUNTED
SQL>
</code></b></pre>
<p><b>Open PDB in read write : </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> alter pluggable database BIGBD open read write;
Pluggable database altered.
SQL> show pdbs
CON_ID CON_NAME OPEN MODE RESTRICTED
---------- ------------------------------ ---------- ----------
2 PDB$SEED READ ONLY NO
3 TT4P READ WRITE NO
4 BIGBD READ WRITE NO
</code></b></pre>
<p><b>Connect to PDB : </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> alter session set container=BIGBD;
Session altered.
</code></b></pre>
<p><b>Create Tablespace Error : ORA-28361: master key not yet set
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> create tablespace bigtab datafile '+DATAC1' size 2G autoextend on next 500M maxsize 10G;
create tablespace bigtab datafile '+DATAC1' size 2G autoextend on next 500M maxsize 10G
*
ERROR at line 1:
ORA-28361: master key not yet set
</code></b></pre>
<p><b>Check the wallet : issue OPEN_NO_MASTER_KEY </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> select * from v$encryption_wallet;
INST_ID WRL_TYPE WRL_PARAMETER STATUS WALLET_TYPE WALLET_OR KEYSTORE FULLY_BAC CON_ID
---------- -------------------- ---------------------------------------- ------------------------------ -------------------- --------- -------- --------- ----------
1 FILE OPEN_NO_MASTER_KEY AUTOLOGIN SINGLE UNITED NO 4
</code></b></pre>
<p><b>Create a encryption key for PDB : You should be in PDB to create this : </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> administer key management create encryption key using tag 'bigbd_key' force keystore identified by "Welcome1#" with backup using 'bigbd_rekey';
keystore altered.
</code></b></pre>
<p><b>check the key generated : </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> select key_id from v$encryption_keys where tag='bigbd_key';
KEY_ID
------------------------------------------------------------------------------
AYA+KPWPME/6v8PY0PLs/UYAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
</code></b></pre>
<p><b>Use the key for the keystore using password </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> administer key management use encryption key 'AYA+KPWPME/6v8PY0PLs/UYAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' force keystore identified by "Password#" with backup;
keystore altered.
</code></b></pre>
<p><b>Now try to create the tablespace it will work as below : </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> create tablespace bigtab datafile '+DATAC1' size 2G autoextend on next 500M maxsize 10G;
Tablespace created.
</code></b></pre>
<p><b>Check the wallet now :
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> col WRL_PARAMETER for a40
SQL> set lines 200
SQL> select * from gv$encryption_wallet;
INST_ID WRL_TYPE WRL_PARAMETER STATUS WALLET_TYPE WALLET_OR KEYSTORE FULLY_BAC CON_ID
---------- -------------------- ---------------------------------------- ------------------------------ -------------------- --------- -------- --------- ----------
1 FILE OPEN AUTOLOGIN SINGLE UNITED NO 4
2 FILE OPEN AUTOLOGIN SINGLE UNITED NO 4
SQL>
CON_ID CON_NAME OPEN MODE RESTRICTED
---------- ------------------------------ ---------- ----------
4 BIGBD READ WRITE NO
</code></b></pre>
<p><b>Hope this helps ,</b></p>
<p><b>Note This solution is senario based , Check in test before use .</b></p> Sultan Khanhttp://www.blogger.com/profile/12933538356533244884noreply@blogger.com0tag:blogger.com,1999:blog-399436389180403563.post-11981645748459766002023-03-21T20:16:00.003+05:302023-03-21T20:32:54.755+05:30ORA-28014: cannot drop administrative users<p><b>Hello Friends,</b></p>
<p><b>This post we will discuss over error ORA-28014: cannot drop administrative users </b></p>
<p><b>so lets get started </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> alter session set container=TPDB;
Session altered.
</code></b></pre>
<p><b>Error : ORA-28014: cannot drop administrative users</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> drop user APEX_040200 cascade;
drop user APEX_040200 cascade
*
ERROR at line 1:
ORA-28014: cannot drop administrative usersÂ
</code></b></pre>
<p><b>Set "_oracle_script" parameter session level as shown below to TRUE</b></p>
<p><b>The _oracle script parameter, introduced in Oracle Database 19c, allows you to run a SQL script as a "container database" (CDB) or a "pluggable database" (PDB). When you create or clone a PDB, this parameter specifies the location of the SQL script that will be executed.</b></p>
<p><b>When you create or clone a PDB, the _oracle script parameter instructs the database on which SQL script to run during the process. SQL commands that set up PDB-specific objects such as users, roles, tablespaces, and other database objects can be included in the SQL script. You can automate the process of creating or cloning PDBs and ensure consistency across your database environment by using the _oracle script parameter.</b></p>
<p><b>A file system path or a URL can be specified as the _oracle script parameter. When the database starts up, it looks for the SQL script specified by the _oracle script parameter and executes the commands in the script to create or clone the PDB.</b></p>
<p><b>It is important to note that the _oracle script parameter is only used when creating or cloning a PDB and is ignored during normal database operation.</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> alter session set "_oracle_script"=TRUE;Â
Session altered.Â
</code></b></pre>
<p><b>Drop the user </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> drop user APEX_040200 cascade;Â
User dropped.Â
SQL> drop user DBVUSR cascade;Â
User dropped.Â
</code></b></pre>
<p><b>make the "_oracle_script" parameter session level to FALSE </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> alter session set "_oracle_script"=FALSE;Â Session altered.
</code></b></pre>
Regards
Sultan KhanSultan Khanhttp://www.blogger.com/profile/12933538356533244884noreply@blogger.com0tag:blogger.com,1999:blog-399436389180403563.post-64346199450926786062023-03-14T18:26:00.000+05:302023-03-14T18:26:44.535+05:30Oracle Datafile movement for ASM and Non ASM<p><b>Hello Friends,</b></p>
<p><b>This post will go over online datafile movement, which was introduced in 12c and later. </b></p>
<p><b>The following actions can now be performed by Oracle 12C or greater while the datafile is online and being accessed:</b></p>
<p><b>Issue : BR0382E File/Directory name '/oracle/DBL/sapdata1/sysaux_1/sysaux01.dbf ' contains white space / caret character -file cannot be processed</b></p>
<p><b>Check file status : </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
TABLESPACE_NAME Tot size MB Tot Free MB %FREE %USED MAX_FREE CHUNKS_FREE
------------------------- ----------- ----------- ---------- ---------- ---------- -----------
SYSAUX 34815 7887 22.6538489 77.3461511 3968 90
FILE_ID FILE_NAME TABLESPACE_NAME ALLOCATED FREE_SPACE USED_SPACE
---------- ------------------------------------------------------------ ------------------------- ---------- ---------- ----------
3 /oracle/DBL/sapdata1/sysaux_1/sysaux01.dbf SYSAUX 32767 6148 26619
4 /oracle/DBL/sapdata2/sysaux_2/sysaux02.dbf SYSAUX 2048 1739 309
</code></b></pre>
<p><b>Check file name with and without space </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> select file_name from dba_data_files where file_name like '/oracle/DBL/sapdata2/sysaux_2/sysaux02.dbf';
no rows selected
SQL> select file_name from dba_data_files where file_name like '/oracle/DBL/sapdata2/sysaux_2/sysaux02.dbf ';
FILE_NAME
------------------------------------------------------------
/oracle/DBL/sapdata2/sysaux_2/sysaux02.dbf
SQL> select file_name,tablespace_name,online_status from dba_data_files where tablespace_name 'SYSAUX';
FILE_NAME TABLESPACE_NAME ONLINE_
------------------------------------------------------------ ------------------------- -------
/oracle/DBL/sapdata1/sysaux_1/sysaux01.dbf SYSAUX ONLINE
/oracle/DBL/sapdata2/sysaux_2/sysaux02.dbf SYSAUX ONLINE
</code></b></pre>
<p><b>Move datafile using below command from with space to without space.</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> alter database move datafile '/oracle/DBL/sapdata2/sysaux_2/sysaux02.dbf ' to '/oracle/DBL/sapdata2/sysaux_2/sysaux02.dbf';
Database altered.
</code></b></pre>
<p><b>check files with space and without space after datafile movement .</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> select file_name from dba_data_files where file_name like '/oracle/DBL/sapdata2/sysaux_2/sysaux02.dbf';
FILE_NAME
------------------------------------------------------------
/oracle/DBL/sapdata2/sysaux_2/sysaux02.dbf
SQL> select file_name from dba_data_files where file_name like '/oracle/DBL/sapdata2/sysaux_2/sysaux02.dbf ';
no rows selected
SQL> select file_name,tablespace_name,online_status from dba_data_files where tablespace_name 'SYSAUX';
FILE_NAME TABLESPACE_NAME ONLINE_
------------------------------------------------------------ ------------------------- -------
/oracle/DBL/sapdata1/sysaux_1/sysaux01.dbf SYSAUX ONLINE
/oracle/DBL/sapdata2/sysaux_2/sysaux02.dbf SYSAUX ONLINE
</code></b></pre>
<p><b>This resolves the issue .</b></p>
<p><b>If you need to Move datafile on ASM : </b></p>
<p><b>Steps : check the datafile no for below given example file in my case it was 41 and 42 </b></p>
<p><b>Error : Example</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
DATAFILE UNPROT COARSE APR 07 19:00:00 N A2I_UPMCUSTOMER6_Z000.DBF => +DATA/CDBFINDB/DATAFILE/A2I_Findb_Z000.273.1097338569 41
DATAFILE UNPROT COARSE APR 07 19:00:00 N A2I_UPMCUSTOMER6_Z000_Ix.DBF => +DATA/CDBFIND/DATAFILE/A2I_Findb_Z000_IX.280.1097338569 42
</code></b></pre>
<p><b>Set the db_create_file_dest to +DATA</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> alter session set db_create_file_dest='+DATA'
2 ;
Session altered.
</code></b></pre>
<p><b>Move datafile using file number </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> alter database move datafile 41;
Database altered.
</code></b></pre>
<p><b>Move datafile on ASM using absolute path and datafile name .</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
ALTER DATABASE MOVE DATAFILE '+DATA/CDBFINDB/user1.dbf'
TO '+DATA';
</code></b></pre>
<p><b>Hope this helps</b></p> Sultan Khanhttp://www.blogger.com/profile/12933538356533244884noreply@blogger.com0tag:blogger.com,1999:blog-399436389180403563.post-45932640516058036582023-03-11T23:53:00.001+05:302023-03-14T08:55:23.652+05:30How to Solve ORA-20016: Unable to get the lock : get_pending_activity : 1<p><b>Hello Friends,</b></p>
<p><b>In this post we will discuss about the error we got durin applying patch fix on database using datapatch</b></p>
<p><b>error : ORA-20016: Unable to get the lock : get_pending_activity : 1</b></p>
<p><b>ORA-20016 error with "get_pending_activity : 1" usually occurs when attempting to apply a patch using Datapatch, which is a utility used to patch Oracle databases.</b></p>
<p><b>This error message indicates that Datapatch is unable to acquire a necessary lock on a resource, which could be a table or index. This can happen if another session is already holding a lock on that resource.</b></p>
<p><b>To resolve this error, you can try the following steps:</b></p>
<p><b>Check the Oracle alert log for any additional error messages or information about the error.</b></p>
<p><b>Identify the specific resource that is being locked. This information may be provided in the error message, or you can use Oracle's "v$locked_object" view to identify the locked object.</b></p>
<p><b>Identify the session that is holding the lock on the resource. You can use Oracle's "v$session" view to identify the session.</b></p>
<p><b>So lets gets strted</b></p>
<p><b>Error We got</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[oracle@dm01db01:/tmp/34932268]#
#-> datapatch -verbose
SQL Patching tool version 19.18.0.0.0 Production on Tue Mar 7 20:19:38 2023
Copyright (c) 2012, 2023, Oracle. All rights reserved.
Log file for this invocation: /u02/app/oracle/cfgtoollogs/sqlpatch/sqlpatch_22820_2023_03_07_20_19_38/sqlpatch_invocation.log
Connecting to database...OK
Gathering database info...done
Note: Datapatch will only apply or rollback SQL fixes for PDBs
that are in an open state, no patches will be applied to closed PDBs.
Please refer to Note: Datapatch: Database 12c Post Patch SQL Automation
(Doc ID 1585822.1)
Bootstrapping registry and package to current versions...done
Error: prereq checks failed!
verify_queryable_inventory returned ORA-20016: Unable to get the lock : get_pending_activity : 1
Prereq check failed, exiting without installing any patches.
Please refer to MOS Note 1609718.1 and/or the invocation log
/u02/app/oracle/cfgtoollogs/sqlpatch/sqlpatch_22820_2023_03_07_20_19_38/sqlpatch_invocation.log
for information on how to resolve the above errors.
SQL Patching tool complete on Tue Mar 7 20:25:51 2023
</code></b></pre>
<p><b>Solution : Stop and start the database</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[oracle@dm01db01:/tmp/34932268]#
#-> srvctl stop database -d CDBFIN
[oracle@dm01db01:/tmp/34932268]#
#-> srvctl start database -d CDBFIN
</code></b></pre>
<p><b>Now run the datapatch again the error will be gone.</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[oracle@dm01db01:/tmp/34932268]#
#-> datapatch -verbose
SQL Patching tool version 19.18.0.0.0 Production on Tue Mar 7 20:33:22 2023
Copyright (c) 2012, 2023, Oracle. All rights reserved.
Log file for this invocation: /u02/app/oracle/cfgtoollogs/sqlpatch/sqlpatch_186745_2023_03_07_20_33_22/sqlpatch_invocation.log
Connecting to database...OK
Gathering database info...done
Note: Datapatch will only apply or rollback SQL fixes for PDBs
that are in an open state, no patches will be applied to closed PDBs.
Please refer to Note: Datapatch: Database 12c Post Patch SQL Automation
(Doc ID 1585822.1)
Bootstrapping registry and package to current versions...done
Determining current state...done
Current state of interim SQL patches:
Interim patch 33808367 (OJVM RELEASE UPDATE: 19.15.0.0.220419 (33808367)):
Binary registry: Not installed
PDB BIGBD: Rolled back successfully on 07-MAR-23 03.43.22.879928 PM
PDB CDB$ROOT: Rolled back successfully on 07-MAR-23 03.43.06.936604 PM
PDB PDB$SEED: Rolled back successfully on 07-MAR-23 03.43.11.939516 PM
PDB TT4P: Rolled back successfully on 07-MAR-23 03.43.17.458191 PM
Interim patch 34786990 (OJVM RELEASE UPDATE: 19.18.0.0.230117 (34786990)):
Binary registry: Installed
PDB BIGBD: Applied successfully on 07-MAR-23 03.43.28.489298 PM
PDB CDB$ROOT: Applied successfully on 07-MAR-23 03.43.11.671156 PM
PDB PDB$SEED: Applied successfully on 07-MAR-23 03.43.17.237804 PM
PDB TT4P: Applied successfully on 07-MAR-23 03.43.22.671892 PM
Interim patch 34792490 (FADBRWT STRESS FA ORA-00060 DEADLOCK DETECTED DURING DATAPATCH):
Binary registry: Installed
PDB BIGBD: Applied successfully on 07-MAR-23 03.43.28.571792 PM
PDB CDB$ROOT: Applied successfully on 07-MAR-23 03.43.11.796298 PM
PDB PDB$SEED: Applied successfully on 07-MAR-23 03.43.17.327995 PM
PDB TT4P: Applied successfully on 07-MAR-23 03.43.22.751308 PM
Interim patch 34835593 (REFERENCE BUG 34792490 - SCHEDULER LAYER CHANGES TO AVOID CYCLIC DEPENDENCY ON DBMS_AQADM_SYS PACKAG):
Binary registry: Installed
PDB BIGBD: Applied successfully on 07-MAR-23 03.43.28.651007 PM
PDB CDB$ROOT: Applied successfully on 07-MAR-23 03.43.11.885653 PM
PDB PDB$SEED: Applied successfully on 07-MAR-23 03.43.17.401352 PM
PDB TT4P: Applied successfully on 07-MAR-23 03.43.22.823066 PM
Current state of release update SQL patches:
Binary registry:
19.18.0.0.0 Release_Update 230127005551: Installed
PDB BIGBD:
Applied 19.18.0.0.0 Release_Update 230127005551 successfully on 07-MAR-23 03.43.28.482811 PM
PDB CDB$ROOT:
Applied 19.18.0.0.0 Release_Update 230127005551 successfully on 07-MAR-23 03.43.11.664485 PM
PDB PDB$SEED:
Applied 19.18.0.0.0 Release_Update 230127005551 successfully on 07-MAR-23 03.43.17.230043 PM
PDB TT4P:
Applied 19.18.0.0.0 Release_Update 230127005551 successfully on 07-MAR-23 03.43.22.665991 PM
Adding patches to installation queue and performing prereq checks...done
Installation queue:
For the following PDBs: CDB$ROOT PDB$SEED TT4P BIGBD
No interim patches need to be rolled back
No release update patches need to be installed
No interim patches need to be applied
SQL Patching tool complete on Tue Mar 7 20:34:23 2023
</code></b></pre>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> set serveroutput on;
SQL> execute dbms_optim_bundle.getBugsforBundle;
19.18.0.0.230117DBRU:
Bug: 31209735, fix_controls: 31209735
Bug: 30609737, fix_controls: 30609737
Bug: 32498602, fix_controls: 32498602
Bug: 29499077, fix_controls: 29499077
Bug: 32378953, fix_controls: 32527739
Bug: 31821701, fix_controls: 31266779, 31487332
Bug: 25869323, fix_controls: 25869323
Bug: 31925765, fix_controls: 31925765
Bug: 33667505, fix_controls: 33667505
Bug: 32107664, fix_controls: 33369863
Bug: 32933936, fix_controls: 32933936
Bug: 34131435, fix_controls: 34131435
Bug: 34012165, fix_controls: 33745469
Bug: 34774426, fix_controls: 29015273
Bug: 34701323, fix_controls: 34701323
Bug: 34123350, fix_controls: 34123350
Bug: 34958012, fix_controls: 32016340
PL/SQL procedure successfully completed.
</code></b></pre>
<p><b>Hope this helps .</b></p> Sultan Khanhttp://www.blogger.com/profile/12933538356533244884noreply@blogger.com0tag:blogger.com,1999:blog-399436389180403563.post-12090897429753353032023-03-02T20:11:00.000+05:302023-03-10T16:19:15.429+05:30How to Resolve ORA-39189 ORA-28362 ORA-39405<p><b>Hello Friends,</b></p>
<p><b>In this post, we will see the Error and solution to Expdp and Impdp.</b></p>
<p><b>Now when we try to import the schema source 19.18 and target 19.16 </b></p>
<p><b>Import in different databases with diff versions : </b></p>
<p><b>Export Was taken with the command below on version 19.18 :</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> !expdp system@FlyDB directory=FlyEXP dumpfile=Fly_EXP022.dmp logfile=LOG_Fly2700.log schemas='BIGONE' compression=ALL ENCRYPTION_PASSWORD= MyPassword version=19.16
Export: Release 19.0.0.0.0 - Production on Mon Feb 27 16:34:42 2023
Version 19.18.0.0.0
Copyright (c) 1982, 2019, Oracle and/or its affiliates. All rights reserved.
Password:
Connected to: Oracle Database 19c EE Extreme Perf Release 19.0.0.0.0 - Production
Starting "SYSTEM"."SYS_EXPORT_SCHEMA_01": system/********@FlyDB directory=FlyEXP dumpfile=Fly_EXP022.dmp logfile=LOG_Fly2700.log schemas=BIGONE compression=ALL ENCRYPTION_PASSWORD=******** version=19.16
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
Processing object type SCHEMA_EXPORT/STATISTICS/MARKER
Processing object type SCHEMA_EXPORT/USER
Processing object type SCHEMA_EXPORT/ROLE_GRANT
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
Processing object type SCHEMA_EXPORT/TABLESPACE_QUOTA
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Processing object type SCHEMA_EXPORT/TABLE/TABLE
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
. . exported "BIGONE"."BIGTAB" 5.826 MB 2000000 rows
Master table "SYSTEM"."SYS_EXPORT_SCHEMA_01" successfully loaded/unloaded
******************************************************************************
Dump file set for SYSTEM.SYS_EXPORT_SCHEMA_01 is:
/data_mig1/FlyEXP/Fly_EXP022.dmp
Job "SYSTEM"."SYS_EXPORT_SCHEMA_01" successfully completed at Mon Feb 27 16:35:27 2023 elapsed 0 00:00:34
</code></b></pre>
<p><b>First case when we don't provide the password to decrypt the dump file we get the error ORA-39189, ORA-28362</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> !impdp system@PDBFLY directory=FlyEXP dumpfile=Fly_EXP27022.dmp logfile=CDBFly.log schemas=BIGONE
Import: Release 19.0.0.0.0 - Production on Mon Feb 27 16:04:08 2023
Version 19.16.0.0.0
Copyright (c) 1982, 2019, Oracle and/or its affiliates. All rights reserved.
Password:
Connected to: Oracle Database 19c EE Extreme Perf Release 19.0.0.0.0 - Production
ORA-39002: invalid opeFLYion
ORA-39189: unable to decrypt dump file set
ORA-28362: master key not found
</code></b></pre>
<p><b><span style="background-color: #fcff01;">Solution: ENCRYPTION_PASSWORD= MyPassword </span></b></p>
<p><b>The second case even when we provide the password to decrypt we will get an error for the lower timezone on 19.16 ORA-39405</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> !impdp system@PDBFLY directory=FlyEXP dumpfile=Fly_EXP022.dmp logfile=IMP_CDBFly.log schemas=BIGONE ENCRYPTION_PASSWORD= MyPassword
Import: Release 19.0.0.0.0 - Production on Mon Feb 27 16:38:38 2023
Version 19.16.0.0.0
Copyright (c) 1982, 2019, Oracle and/or its affiliates. All rights reserved.
Password:
Connected to: Oracle Database 19c EE Extreme Perf Release 19.0.0.0.0 - Production
ORA-39002: invalid opeFLYion
ORA-39405: Oracle Data Pump does not support importing from a source database with TSTZ version 40 into a target database with TSTZ version 38.
</code></b></pre>
<p><b>Kindly follow the below link to resolve the above error </b></p><p><a href="https://www.sultandba.com/2023/03/how-to-upgrade-db-time-zone-using-patch.html" target="_blank"><b><span style="background-color: white; color: #2b00fe;">HOW TO UPGRADE DB TIME ZONE USING PATCH ORA-39405</span></b></a><br /></p>
<p><b>After the Error is resolved with the workaround in the above link, we can continue with the import, and the import should be working fine.</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[oracle@dm01db01 ~]$ impdp system@PDBFLY directory=FlyEXP dumpfile=Fly_EXP022.dmp logfile=IMP_CDBFly.log schemas=BIGONE ENCRYPTION_PASSWORD= MyPassword
Import: Release 19.0.0.0.0 - Production on Mon Feb 27 20:43:44 2023
Version 19.16.0.0.0
Copyright (c) 1982, 2019, Oracle and/or its affiliates. All rights reserved.
Password:
Connected to: Oracle Database 19c EE Extreme Perf Release 19.0.0.0.0 - Production
Master table "SYSTEM"."SYS_IMPORT_SCHEMA_01" successfully loaded/unloaded
Starting "SYSTEM"."SYS_IMPORT_SCHEMA_01": system/********@PDBFLY directory=FlyEXP dumpfile=Fly_EXP022.dmp logfile=IMP_CDBFly.log schemas=BIGONE ENCRYPTION_PASSWORD=********
Processing object type SCHEMA_EXPORT/USER
Processing object type SCHEMA_EXPORT/ROLE_GRANT
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
Processing object type SCHEMA_EXPORT/TABLESPACE_QUOTA
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Processing object type SCHEMA_EXPORT/TABLE/TABLE
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
. . imported "BIGONE"."BIGTAB" 5.826 MB 2000000 rows
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
Processing object type SCHEMA_EXPORT/STATISTICS/MARKER
Job "SYSTEM"."SYS_IMPORT_SCHEMA_01" successfully completed at Mon Feb 27 20:44:23 2023 elapsed 0 00:00:28
</code></b></pre>Sultan Khanhttp://www.blogger.com/profile/12933538356533244884noreply@blogger.com0tag:blogger.com,1999:blog-399436389180403563.post-66460482391658320502023-03-02T18:04:00.001+05:302023-04-18T18:20:19.167+05:30How to Upgrade DB Time Zone Using Patch ORA-39405<p><b>Hello Friend's</b></p>
<p><b>In this post we will learn to patch Timezone of database </b></p>
<p><b>We will not go for an rolling patch in this case , We will apply the patch one by one on both nodes</b></p>
<p><b>Once The DST Patch is downloaded , Unzip the patch as given below :</b></p>
Link to download Timezone 40 Patch :
<p><b><a href="https://updates.oracle.com/download/34698179.html">https://updates.oracle.com/download/34698179.html</a></b></p>
<div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCmg9jIPZwifN4Fglajy7rLlW6HTxQ4wzqd3maED4UmJbUmWvzFXw0xmVyaiPJhrn7lqXJSkg0ZFCF-DJasomC9h0fafKWmt7lD8q8k2GolaU16c8gyehFj_Kgvm9ktBOnzsfg5HQE9q77GeCpT6AVXjN7bjKzOhKGcGBZvpOht4ublN7TcLRt5kt9lw/s1600/TZ40_Patch.png" style="display: block; padding: 1em 0px; text-align: center;"><img alt="How to Upgrade DB Time Zone Using Patch ORA-39405" border="0" data-original-height="457" data-original-width="840" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCmg9jIPZwifN4Fglajy7rLlW6HTxQ4wzqd3maED4UmJbUmWvzFXw0xmVyaiPJhrn7lqXJSkg0ZFCF-DJasomC9h0fafKWmt7lD8q8k2GolaU16c8gyehFj_Kgvm9ktBOnzsfg5HQE9q77GeCpT6AVXjN7bjKzOhKGcGBZvpOht4ublN7TcLRt5kt9lw/s1600/TZ40_Patch.png" /></a></div>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[oracle@dm01db01 tmp]# unzip --q p34698179_190000_Linux-x86-64.zip
Archive: p34698179_190000_Linux-x86-64.zip
creating: 34698179/
creating: 34698179/etc/
creating: 34698179/etc/config/
inflating: 34698179/etc/config/inventory.xml
inflating: 34698179/etc/config/actions.xml
inflating: 34698179/README.txt
creating: 34698179/files/
creating: 34698179/files/oracore/
creating: 34698179/files/oracore/zoneinfo/
creating: 34698179/files/oracore/zoneinfo/little/
inflating: 34698179/files/oracore/zoneinfo/little/timezlrg_40.dat
inflating: 34698179/files/oracore/zoneinfo/little/timezone_40.dat
creating: 34698179/files/oracore/zoneinfo/big/
inflating: 34698179/files/oracore/zoneinfo/big/timezlrg_40.dat
inflating: 34698179/files/oracore/zoneinfo/big/timezone_40.dat
inflating: 34698179/files/oracore/zoneinfo/timezlrg_40.dat
inflating: 34698179/files/oracore/zoneinfo/timezone_40.dat
inflating: 34698179/files/oracore/zoneinfo/readme_40.txt
</code></b></pre>
<p><b>Stop the database using Srvctl command :</b></p>
<p><b>We got some errors while stopping the database solution for that is mentioned below .</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[oracle@dm01db01 tmp]$ srvctl stop instance -d CDBAIR -i CDBAIR1
PRCD-1131 : Failed to stop database CDBAIR and its services on nodes dm01db01
PRCR-1133 : Failed to stop database CDBAIR and its running services
PRCR-1132 : Failed to stop resources using a filter
CRS-2974: unable to act on resource 'ora.CDBAIR.db' on server 'dm01db01' because that would require stopping or relocating resource 'ora.CDBAIR.CDBAIR_pdbair' but the appropriate force flag was not specified
</code></b></pre>
<p><b>check database services running : </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[oracle@dm01db01 tmp]$ srvctl status service -d CDBAIR
Service CDBAIR_pdbair is running on instance(s) CDBAIR1,CDBAIR2
</code></b></pre>
<p><b>Stop the database using Force option on Node 1 : </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[oracle@dm01db01 tmp]$ srvctl stop instance -d CDBAIR -i CDBAIR1 -f
</code></b></pre>
<p><b>check the status of database , Node 1 instance should be stopped : </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[oracle@dm01db01 tmp]$ srvctl status database -d CDBAIR
Instance CDBAIR1 is not running on node dm01db01
Instance CDBAIR2 is running on node dm01db02
</code></b></pre>
<p><b>Now start with the apply of Patch on Node 1 : </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[oracle@dm01db01 tmp]$ export PATH=$ORACLE_HOME/OPatch:$PATH
[oracle@dm01db01 tmp]$
[oracle@dm01db01 tmp]$ cd 34698179/
[oracle@dm01db01 34698179]$
[oracle@dm01db01 34698179]$
[oracle@dm01db01 34698179]$ echo $ORACLE_SID
CDBAIR1
[oracle@dm01db01 34698179]$
[oracle@dm01db01 34698179]$ opatch apply
Oracle Interim Patch Installer version 12.2.0.1.32
Copyright (c) 2023, Oracle Corporation. All rights reserved.
Oracle Home : /u02/app/oracle/product/19.0.0.0/dbhome_3
Central Inventory : /u01/app/oraInventory
from : /u02/app/oracle/product/19.0.0.0/dbhome_3/oraInst.loc
OPatch version : 12.2.0.1.32
OUI version : 12.2.0.7.0
Log file location : /u02/app/oracle/product/19.0.0.0/dbhome_3/cfgtoollogs/opatch/opatch2023-02-27_18-50-36PM_1.log
Verifying environment and performing prerequisite checks...
OPatch continues with these patches: 34698179
Do you want to proceed? [y|n]
y
User Responded with: Y
All checks passed.
Backing up files...
Applying interim patch '34698179' to OH '/u02/app/oracle/product/19.0.0.0/dbhome_3'
Patching component oracle.oracore.rsf, 19.0.0.0.0...
Patch 34698179 successfully applied.
Log file location: /u02/app/oracle/product/19.0.0.0/dbhome_3/cfgtoollogs/opatch/opatch2023-02-27_18-50-36PM_1.log
OPatch succeeded.
[oracle@dm01db01 34698179]$
</code></b></pre>
<p><b>Patch has been applied on Node 1 sucessfully , Now start the database instance 1 : </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[oracle@dm01db01 34698179]$ srvctl start instance -d CDBAIR -i CDBAIR1
[oracle@dm01db01 34698179]$
[oracle@dm01db01 34698179]$
</code></b></pre>
<p><b>Check the instance status : </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[oracle@dm01db01 34698179]$ srvctl status database -d CDBAIR
Instance CDBAIR1 is running on node dm01db01
Instance CDBAIR2 is running on node dm01db02
</code></b></pre>
<p><b>Check the Opatch lspatches status for the applied patch : </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[oracle@dm01db01 34698179]$
[oracle@dm01db01 34698179]$ opatch lspatches
<span style="color: #04ff00;">34698179;RDBMS - DSTV40 UPDATE - TZDATA2022E</span>
34122773;OCW Interim patch for 34122773
29780459;INCREASE _LM_RES_HASH_BUCKET AND BACK OUT CHANGES FROM THE BUG 29416368 FIX
34006650;DSTV38 UPDATE - TZDATA2022A - NEED OJVM FIX
34006614;RDBMS - DSTV38 UPDATE - TZDATA2022A
33613829;RDBMS - DSTV37 UPDATE - TZDATA2021E
32327201;RDBMS - DSTV36 UPDATE - TZDATA2020E
31335037;RDBMS - DSTV35 UPDATE - TZDATA2020A
30432118;MERGE REQUEST ON TOP OF 19.0.0.0.0 FOR BUGS 28852325 29997937
33912872;DATABASE PERL UPDATE IN 19C TO V5.32-1 (CVE-2022-23990 - LIBEXPAT UPDATE)
34113634;JDK BUNDLE PATCH 19.0.0.0.220719
34086870;OJVM RELEASE UPDATE: 19.16.0.0.220719 (34086870)
34133642;Database Release Update : 19.16.0.0.220719 (34133642)
OPatch succeeded.
</code></b></pre>
<p><b>We have completed the Patch procedure on Node 1 , Now Let's start for the Node 2 Part :</b></p>
<p><b>Node 2 :</b></p>
<p><b>Stop the Instance of database on Node 2 using teh -f Force option :</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[oracle@dm01db02 ~]$ srvctl stop instance -d CDBAIR -i CDBAIR2 -f
[oracle@dm01db02 ~]$
[oracle@dm01db02 ~]$ srvctl status database -d CDBAIR
Instance CDBAIR1 is running on node dm01db01
Instance CDBAIR2 is not running on node dm01db02
</code></b></pre>
<p><b>Export PATH for OPatch </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[oracle@dm01db02 ~]$ export PATH=$ORACLE_HOME/OPatch:$PATH
</code></b></pre>
<p><b>Unzip the patch on node 2 : </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[oracle@dm01db02 tmp]$ unzip --q p34698179_190000_Linux-x86-64.zip
Archive: p34698179_190000_Linux-x86-64.zip
creating: 34698179/
creating: 34698179/etc/
creating: 34698179/etc/config/
inflating: 34698179/etc/config/inventory.xml
inflating: 34698179/etc/config/actions.xml
inflating: 34698179/README.txt
creating: 34698179/files/
creating: 34698179/files/oracore/
creating: 34698179/files/oracore/zoneinfo/
creating: 34698179/files/oracore/zoneinfo/little/
inflating: 34698179/files/oracore/zoneinfo/little/timezlrg_40.dat
inflating: 34698179/files/oracore/zoneinfo/little/timezone_40.dat
creating: 34698179/files/oracore/zoneinfo/big/
inflating: 34698179/files/oracore/zoneinfo/big/timezlrg_40.dat
inflating: 34698179/files/oracore/zoneinfo/big/timezone_40.dat
inflating: 34698179/files/oracore/zoneinfo/timezlrg_40.dat
inflating: 34698179/files/oracore/zoneinfo/timezone_40.dat
inflating: 34698179/files/oracore/zoneinfo/readme_40.txt
</code></b></pre>
<p><b>Now start with the apply of Patch on Node 2 :</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[oracle@dm01db02 34698179]$ opatch apply
Oracle Interim Patch Installer version 12.2.0.1.32
Copyright (c) 2023, Oracle Corporation. All rights reserved.
Oracle Home : /u02/app/oracle/product/19.0.0.0/dbhome_3
Central Inventory : /u01/app/oraInventory
from : /u02/app/oracle/product/19.0.0.0/dbhome_3/oraInst.loc
OPatch version : 12.2.0.1.32
OUI version : 12.2.0.7.0
Log file location : /u02/app/oracle/product/19.0.0.0/dbhome_3/cfgtoollogs/opatch/opatch2023-02-27_19-03-42PM_1.log
Verifying environment and performing prerequisite checks...
OPatch continues with these patches: 34698179
Do you want to proceed? [y|n]
y
User Responded with: Y
All checks passed.
Backing up files...
Applying interim patch '34698179' to OH '/u02/app/oracle/product/19.0.0.0/dbhome_3'
Patching component oracle.oracore.rsf, 19.0.0.0.0...
Patch 34698179 successfully applied.
Log file location: /u02/app/oracle/product/19.0.0.0/dbhome_3/cfgtoollogs/opatch/opatch2023-02-27_19-03-42PM_1.log
OPatch succeeded.
</code></b></pre>
<p><b>Patch has been applied on Node 2 sucessfully , Now start the database instance 2 :</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[oracle@dm01db02 34698179]$ srvctl start instance -d CDBAIR -i CDBAIR2
[oracle@dm01db02 34698179]$
[oracle@dm01db02 34698179]$ srvctl status database -d CDBAIR
Instance CDBAIR1 is running on node dm01db01
Instance CDBAIR2 is running on node dm01db02
[oracle@dm01db02 34698179]$ srvctl start instance -d CDBAIR -i CDBAIR2
[oracle@dm01db02 34698179]$
</code></b></pre>
<p><b>Check the instance status : </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[oracle@dm01db02 34698179]$ srvctl status database -d CDBAIR
Instance CDBAIR1 is running on node dm01db01
Instance CDBAIR2 is running on node dm01db02
</code></b></pre>
<p><b>Check the Opatch lspatches status for the applied patch : </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[oracle@dm01db02 34698179]$ opatch lspatches
<span style="color: #04ff00;">34698179;RDBMS - DSTV40 UPDATE - TZDATA2022E</span>
34122773;OCW Interim patch for 34122773
29780459;INCREASE _LM_RES_HASH_BUCKET AND BACK OUT CHANGES FROM THE BUG 29416368 FIX
34006650;DSTV38 UPDATE - TZDATA2022A - NEED OJVM FIX
34006614;RDBMS - DSTV38 UPDATE - TZDATA2022A
33613829;RDBMS - DSTV37 UPDATE - TZDATA2021E
32327201;RDBMS - DSTV36 UPDATE - TZDATA2020E
31335037;RDBMS - DSTV35 UPDATE - TZDATA2020A
30432118;MERGE REQUEST ON TOP OF 19.0.0.0.0 FOR BUGS 28852325 29997937
33912872;DATABASE PERL UPDATE IN 19C TO V5.32-1 (CVE-2022-23990 - LIBEXPAT UPDATE)
34113634;JDK BUNDLE PATCH 19.0.0.0.220719
34086870;OJVM RELEASE UPDATE: 19.16.0.0.220719 (34086870)
34133642;Database Release Update : 19.16.0.0.220719 (34133642)
OPatch succeeded.
</code></b></pre>
<p><b>Now Login to database and Follow the below steps : </b></p>
<p><b>Step 1 : check the database satus : </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
INST_ID INSTANCE_NAME DB_NAME HOST_NAME DATABASE_ROLE OPEN_MODE DB_VERSION LOGINS DB UP TIME
---------- ---------------- --------- ------------------------------ ---------------- ---------- ----------------- ---------- -----------------------------
2 CDBAIR2 CDBAIR dm01db02 PRIMARY READ WRITE 19.0.0.0.0 ALLOWED 27-FEB-2023 19:05:00
1 CDBAIR1 CDBAIR dm01db01 PRIMARY READ WRITE 19.0.0.0.0 ALLOWED 27-FEB-2023 18:52:47
SQL>
SQL> show pdbs
CON_ID CON_NAME OPEN MODE RESTRICTED
---------- ------------------------------ ---------- ----------
2 PDB$SEED READ ONLY NO
3 PDBRAT READ WRITE NO
</code></b></pre>
<p><b>Step 2 : Check the time zone version current : </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> select * from gv$timezone_file;
FILENAME VERSION CON_ID
-------------------- ---------- ----------
timezlrg_38.dat 38 0
timezlrg_38.dat 38 0
SQL>
SQL> col PROPERTY_NAME for a40
SQL> col VALUE for a25
SQL> SELECT PROPERTY_NAME, SUBSTR(property_value, 1, 30) value
FROM DATABASE_PROPERTIES
WHERE PROPERTY_NAME LIKE 'DST_%'
ORDER BY PROPERTY_NAME;
PROPERTY_NAME VALUE
---------------------------------------- -------------------------
DST_PRIMARY_TT_VERSION 38
DST_SECONDARY_TT_VERSION 0
DST_UPGRADE_STATE NONE
</code></b></pre>
<p><b>Step 3 : Check the latest Timezone version : </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL>
SQL> SELECT DBMS_DST.get_latest_timezone_version FROM dual;
GET_LATEST_TIMEZONE_VERSION
---------------------------
40
</code></b></pre>
<p><b>Step 4 : As we have to start the database in upgrade mode change the status of parameter cluster_database from TRUE to FALSE .</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> alter system set cluster_database=FALSE scope=spfile sid='*';
System altered.
</code></b></pre>
<p><b>Step 5 : Stop the database using srvctl command : </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[oracle@dm01db02 34698179]$ srvctl status database -d CDBAIR
Instance CDBAIR1 is not running on node dm01db01
Instance CDBAIR2 is not running on node dm01db02
[oracle@dm01db02 34698179]$
[oracle@dm01db02 34698179]$
</code></b></pre>
<p><b>Step 6 : Start the database in upgrade mode on single instance and open PDB in upgrade mode .</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[oracle@dm01db02 34698179]$ sqlplus / as sysdba
SQL*Plus: Release 19.0.0.0.0 - Production on Mon Feb 27 19:48:04 2023
Version 19.16.0.0.0
Copyright (c) 1982, 2022, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup upgrade
ORACLE instance started.
Total System Global Area 7953271240 bytes
Fixed Size 9157064 bytes
Variable Size 1728053248 bytes
Database Buffers 5939134464 bytes
Redo Buffers 276926464 bytes
Database mounted.
Database opened.
SQL> select name DB_NAME,HOST_NAME,DATABASE_ROLE,OPEN_MODE,version DB_VERSION,LOGINS,to_char(STARTUP_TIME,'DD-MON-YYYY HH24:MI:SS') "DB UP TIME" from v$database,gv$instance;
DB_NAME HOST_NAME DATABASE_ROLE OPEN_MODE DB_VERSION LOGINS DB UP TIME
--------- ------------------------------ ---------------- ---------- ----------------- ---------- -----------------------------
CDBAIR dm01db02 PRIMARY READ WRITE 19.0.0.0.0 RESTRICTED 27-FEB-2023 19:48:23
SQL> show pdbs
CON_ID CON_NAME OPEN MODE RESTRICTED
---------- ------------------------------ ---------- ----------
2 PDB$SEED MIGRATE YES
3 PDBRAT MOUNTED
SQL>
SQL> alter pluggable database PDBRAT open upgrade;
Pluggable database altered.
SQL> select instance_name,status from v$instance;
INSTANCE_NAME STATUS
---------------- ------------
CDBAIR2 OPEN MIGRATE
</code></b></pre>
<p><b>Step 7 : Prepare Pre-Upgrade Stage Run the below Given Package .</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL>
SQL> DECLARE
l_tz_version PLS_INTEGER;
BEGIN
l_tz_version := DBMS_DST.get_latest_timezone_version;
DBMS_OUTPUT.put_line('l_tz_version=' || l_tz_version);
DBMS_DST.begin_prepare(l_tz_version);
END;
/
PL/SQL procedure successfully completed.
SQL>
SQL> COLUMN property_name FORMAT A30
SQL> COLUMN property_value FORMAT A20
SQL> SELECT property_name, property_value
FROM database_properties
WHERE property_name LIKE 'DST_%'
ORDER BY property_name; 2 3 4
PROPERTY_NAME PROPERTY_VALUE
------------------------------ --------------------
DST_PRIMARY_TT_VERSION 38
<span style="color: #04ff00;">DST_SECONDARY_TT_VERSION 40</span>
DST_UPGRADE_STATE PREPARE
</code></b></pre>
<p><b>Step 8 : Find the affected tables</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> EXEC DBMS_DST.find_affected_tables;
PL/SQL procedure successfully completed.
SQL>
SQL> select count(*) from sys.dst$affected_tables;
COUNT(*)
----------
0
SQL>
SQL> select * from sys.dst$error_table;
no rows selected
</code></b></pre>
<p><b>Step 9: End the Pre-Upgrade stage</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL>
SQL> EXEC DBMS_DST.end_prepare;
PL/SQL procedure successfully completed.
</code></b></pre>
<p><b>Step 10: Start TZ (Timezone) Upgrade</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> SET SERVEROUTPUT ON
DECLARE
l_tz_version PLS_INTEGER;
BEGIN
SELECT DBMS_DST.get_latest_timezone_version
INTO l_tz_version
FROM dual;
DBMS_OUTPUT.put_line('l_tz_version=' || l_tz_version);
DBMS_DST.begin_upgrade(l_tz_version);
END;SQL> 2 3 4 5 6 7 8 9 10
11 /
<span style="color: #04ff00;">l_tz_version=40
An upgrade window has been successfully started.</span>
PL/SQL procedure successfully completed.
</code></b></pre>
<p><b>Step 11 : Shutdown and startup database in Normal mode :</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> shu immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL>
SQL> startup
ORACLE instance started.
Total System Global Area 7953271240 bytes
Fixed Size 9157064 bytes
Variable Size 1728053248 bytes
Database Buffers 5939134464 bytes
Redo Buffers 276926464 bytes
Database mounted.
Database opened.
SQL>
</code></b></pre>
<p><b>Step 12: End TZ Upgrade</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> SET SERVEROUTPUT ON
DECLARE
l_failures PLS_INTEGER;
SQL> 2 3 BEGIN
DBMS_DST.upgrade_database(l_failures);
4 5 DBMS_OUTPUT.put_line('DBMS_DST.upgrade_database : l_failures=' || l_failures);
DBMS_DST.end_upgrade(l_failures);
6 7 DBMS_OUTPUT.put_line('DBMS_DST.end_upgrade : l_failures=' || l_failures);
END;
/ 8 9
Table list: "GSMADMIN_INTERNAL"."AQ$_CHANGE_LOG_QUEUE_TABLE_S"
Number of failures: 0
Table list: "GSMADMIN_INTERNAL"."AQ$_CHANGE_LOG_QUEUE_TABLE_L"
Number of failures: 0
Table list: "MDSYS"."SDO_DIAG_MESSAGES_TABLE"
Number of failures: 0
Table list: "DVSYS"."AUDIT_TRAIL$"
Number of failures: 0
Table list: "DVSYS"."SIMULATION_LOG$"
Number of failures: 0
DBMS_DST.upgrade_database : l_failures=0
<span style="color: #04ff00;">An upgrade window has been successfully ended.</span>
DBMS_DST.end_upgrade : l_failures=0
PL/SQL procedure successfully completed.
</code></b></pre>
<p><b>Step 13: Verify TZ Upgrade</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> SELECT * FROM v$timezone_file;
FILENAME VERSION CON_ID
-------------------- ---------- ----------
<span style="color: #04ff00;">timezlrg_40.dat 40 0</span>
SQL>
SQL> COLUMN property_name FORMAT A30
SQL> COLUMN property_value FORMAT A20
SQL>
SQL> SELECT property_name, property_value
FROM database_properties
WHERE property_name LIKE 'DST_%'
ORDER BY property_name;
PROPERTY_NAME PROPERTY_VALUE
------------------------------ --------------------
DST_PRIMARY_TT_VERSION 40
DST_SECONDARY_TT_VERSION 0
DST_UPGRADE_STATE NONE
</code></b></pre>
<p><b>Step 14 : Change parameter Cluster_database from FALSE to TRUE and shutdown the database.</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> show parameter cluster
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
cdb_cluster boolean FALSE
cdb_cluster_name string
cluster_database boolean FALSE
cluster_database_instances integer 1
cluster_interconnects string 10.10.1.5:10.10.1.2
SQL>
SQL> alter system set cluster_database=TRUE scope=spfile sid='*';
System altered.
SQL> shu immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> exit
Disconnected from Oracle Database 19c EE Extreme Perf Release 19.0.0.0.0 - Production
Version 19.16.0.0.0
</code></b></pre>
<p><b>Step 15 : Start the database using Srctl command and check status of database.</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[oracle@dm01db02 34698179]$ srvctl start database -d CDBAIR
[oracle@dm01db02 34698179]$
[oracle@dm01db02 34698179]$ srvctl status database -d CDBAIR
Instance CDBAIR1 is running on node dm01db01
Instance CDBAIR2 is running on node dm01db02
</code></b></pre>
<p><b>We have completed the procedure for the root container now we have to do the same steps for all PDB as well </b></p>
<p><b>Below are the steps given for PDB level .</b></p>
<p><b>Step 1 PDB : Login to database</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[oracle@dm01db01 ~]$ sqlplus / as sysdba
SQL*Plus: Release 19.0.0.0.0 - Production on Mon Feb 27 20:27:10 2023
Version 19.16.0.0.0
Copyright (c) 1982, 2022, Oracle. All rights reserved.
Connected to:
Oracle Database 19c EE Extreme Perf Release 19.0.0.0.0 - Production
Version 19.16.0.0.0
SQL> show pdbs
CON_ID CON_NAME OPEN MODE RESTRICTED
---------- ------------------------------ ---------- ----------
2 PDB$SEED READ ONLY NO
3 PDBRAT READ WRITE NO
SQL>
SQL>
</code></b></pre>
<p><b>Step 2 PDB : Stop the PDB on all Instance </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> alter pluggable database PDBRAT close instances=all;
Pluggable database altered.
</code></b></pre>
<p><b>Step 3 PDB : Start database PDB in upgrade mode .</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> alter pluggable database PDBRAT open upgrade;
Pluggable database altered.
SQL> show pdbs
CON_ID CON_NAME OPEN MODE RESTRICTED
---------- ------------------------------ ---------- ----------
2 PDB$SEED READ ONLY NO
3 PDBRAT MIGRATE YES
SQL>
SQL>
SQL> show con_name
CON_NAME
------------------------------
CDB$ROOT
SQL>
SQL>
</code></b></pre>
<p><b>Step 4 PDB : Connect to intended PDB .</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> alter session set container=PDBRAT;
Session altered.
SQL>
SQL> show con_name
CON_NAME
------------------------------
PDBRAT
SQL>
SQL>
SQL> select instance_name,status from v$instance;
INSTANCE_NAME STATUS
---------------- ------------
CDBAIR1 OPEN MIGRATE
</code></b></pre>
<p><b>Step 5 PDB : Prepare Pre-Upgrade Stage</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL>
SQL> DECLARE
l_tz_version PLS_INTEGER;
BEGIN
l_tz_version := DBMS_DST.get_latest_timezone_version;
DBMS_OUTPUT.put_line('l_tz_version=' || l_tz_version);
DBMS_DST.begin_prepare(l_tz_version);
END;
/
PL/SQL procedure successfully completed.
SQL>
SQL> COLUMN property_name FORMAT A30
SQL> COLUMN property_value FORMAT A20
SQL> SELECT property_name, property_value
FROM database_properties
WHERE property_name LIKE 'DST_%'
ORDER BY property_name;
PROPERTY_NAME PROPERTY_VALUE
------------------------------ --------------------
DST_PRIMARY_TT_VERSION 38
DST_SECONDARY_TT_VERSION 40
DST_UPGRADE_STATE PREPARE
</code></b></pre>
<p><b>Step 6 PDB : Find the affected tables</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL>
SQL> EXEC DBMS_DST.find_affected_tables;
PL/SQL procedure successfully completed.
</code></b></pre>
<p><b>Step 6 PDB : Find the affected tables</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> select count(*) from sys.dst$affected_tables;
COUNT(*)
----------
0
SQL>
SQL> select * from sys.dst$error_table;
no rows selected
</code></b></pre>
<p><b>Step 7 PDB : End the Pre-Upgrade stage</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL>
SQL> EXEC DBMS_DST.end_prepare;
PL/SQL procedure successfully completed.
</code></b></pre>
<p><b>Step 8 PDB : Start TZ Upgrade</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL>
SQL> SET SERVEROUTPUT ON
DECLARE
l_tz_version PLS_INTEGER;
BEGIN
SELECT DBMS_DST.get_latest_timezone_version
INTO l_tz_version
FROM dual;
DBMS_OUTPUT.put_line('l_tz_version=' || l_tz_version);
DBMS_DST.begin_upgrade(l_tz_version);
END;
/SQL> 2 3 4 5 6 7 8 9 10 11
<span style="color: #04ff00;">l_tz_version=40
An upgrade window has been successfully started.</span>
PL/SQL procedure successfully completed.
</code></b></pre>
<p><b>Step 9 PDB : Shutdown PDB and Startup PDB in Normal mode</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL>
SQL> alter pluggable database PDBRAT close instances=all;
Pluggable database altered.
SQL> alter pluggable database PDBRAT open read write instances=all;
Pluggable database altered.
</code></b></pre>
<p><b>Step 10 PDB : End TZ Upgrade</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> SET SERVEROUTPUT ON
DECLARE
SQL> 2 l_failures PLS_INTEGER;
3 BEGIN
DBMS_DST.upgrade_database(l_failures);
DBMS_OUTPUT.put_line('DBMS_DST.upgrade_database : l_failures=' || l_failures);
4 5 6 DBMS_DST.end_upgrade(l_failures);
DBMS_OUTPUT.put_line('DBMS_DST.end_upgrade : l_failures=' || l_failures);
END;
/ 7 8 9
Table list: "GSMADMIN_INTERNAL"."AQ$_CHANGE_LOG_QUEUE_TABLE_S"
Number of failures: 0
Table list: "GSMADMIN_INTERNAL"."AQ$_CHANGE_LOG_QUEUE_TABLE_L"
Number of failures: 0
Table list: "MDSYS"."SDO_DIAG_MESSAGES_TABLE"
Number of failures: 0
Table list: "DVSYS"."AUDIT_TRAIL$"
Number of failures: 0
Table list: "DVSYS"."SIMULATION_LOG$"
Number of failures: 0
DBMS_DST.upgrade_database : l_failures=0
<span style="color: #04ff00;">An upgrade window has been successfully ended.</span>
DBMS_DST.end_upgrade : l_failures=0
PL/SQL procedure successfully completed.
SQL> SELECT * FROM gv$timezone_file;
FILENAME VERSION CON_ID
-------------------- ---------- ----------
<span style="color: #04ff00;">timezlrg_40.dat 40 0
timezlrg_40.dat 40 0</span>
SQL> SELECT property_name, property_value
FROM database_properties
WHERE property_name LIKE 'DST_%'
ORDER BY property_name;
PROPERTY_NAME PROPERTY_VALUE
------------------------------ --------------------
DST_PRIMARY_TT_VERSION 40
<span style="color: #04ff00;">DST_SECONDARY_TT_VERSION 0</span>
DST_UPGRADE_STATE NONE
SQL>
SQL> show pdbs
CON_ID CON_NAME OPEN MODE RESTRICTED
---------- ------------------------------ ---------- ----------
3 PDBRAT READ WRITE NO
</code></b></pre>
<p><b><span style="background-color: black; color: #fcff01;">Need to do this for all PDB's in perticular container .</span></b></p>
<p><b><span style="background-color: red;"><span style="color: white;">Warning</span></span>: You use this website's information and materials solely at your own risk.</b></p>
<p><b>It is solely made available for educational purposes.</b></p>
<p><b>Although it has undergone internal testing, we cannot guarantee that it will be successful for you.</b></p>
<p><b>Before utilizing, be sure to execute it in your test environment.</b></p> Sultan Khanhttp://www.blogger.com/profile/12933538356533244884noreply@blogger.com0tag:blogger.com,1999:blog-399436389180403563.post-649712592096346922023-03-01T16:23:00.004+05:302023-04-18T18:20:34.608+05:30Solution to CDG-50107 CDG-50605 : Password validation failed for database-<p><b>Hello Friends,</b></p>
<p><b>In this post we will see the Error and solution while creating DR in Exadata Gen2 Cloud.</b></p>
<p><b>So lets get started .</b></p>
<div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1pi37jtrwzFhkmzra4pFZyHXrIZx2xsMkmMNh3fQuCv5jQ2JTFwm9cm-0CJI_r31OqOLZORCTLwgYy_rwqV2B1FbKOr4FXqeDz0Qlk6ttZTtcfd9KZqNlUcBzdNsVmw1tkRvCoO4FDl69-XUYCL9IGOrxSx4areNMp1lbMvowqsuPUMBRKis-5byruA/s1600/Validate.png" style="display: block; padding: 1em 0; text-align: center; "><img alt="Solution to CDG-50107 CDG-50605 : Password validation failed for database" border="0" data-original-height="195" data-original-width="301" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1pi37jtrwzFhkmzra4pFZyHXrIZx2xsMkmMNh3fQuCv5jQ2JTFwm9cm-0CJI_r31OqOLZORCTLwgYy_rwqV2B1FbKOr4FXqeDz0Qlk6ttZTtcfd9KZqNlUcBzdNsVmw1tkRvCoO4FDl69-XUYCL9IGOrxSx4areNMp1lbMvowqsuPUMBRKis-5byruA/s1600/Validate.png"/></a></div>
<p><b>Here we are trying to create Dataguard using the OCI Gen2 Cloud but in prechecks we are getting error with the (Validate Sys Password)</b></p>
<p><b>Error : </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
2023-02-15 23:41:46.915706 -
.-------------------------------------------------.
| RESULTS |
+----------------------------------------+--------+
| CHECK TYPE | STATUS |
+----------------------------------------+--------+
| check_file_creg | PASSED |
| check_file_sqlnet | PASSED |
| check_file_tnsnames | PASSED |
| db_status | PASSED |
| dbaastools_exa_rpm_check | PASSED |
| dbcs-agent-update-exacc_rpm_check | PASSED |
| dbcs-agent-update_rpm_check | PASSED |
| listener_status_listener | PASSED |
| listener_status_scan_listener | PASSED |
| node_status | PASSED |
| oracle_managed_files | PASSED |
| parameter_compatible | PASSED |
| parameter_db_create_file_dest | PASSED |
| parameter_db_recovery_file_dest | PASSED |
| parameter_db_unique_name | PASSED |
| parameter_log_archive_config | PASSED |
| parameter_log_archive_dest_1 | PASSED |
| parameter_log_archive_dest_10 | PASSED |
| parameter_remote_listener | PASSED |
| space_check_/var/opt/oracle/dbaas_acfs | PASSED |
| space_check_RECO | PASSED |
| tnsport_check | PASSED |
| user_equivalence_for_grid | PASSED |
| user_equivalence_for_opc | PASSED |
| user_equivalence_for_oracle | PASSED |
| <span style="color: red;">validate_sys_passwd | FAILED</span> |
| wallet_size_check | PASSED |
'----------------------------------------+--------'
2023-02-15 23:41:46.919438 -
.---------------------------------------------------------------------------------------------------------------------------------------------------------.
| EXCEPTIONS |
+-----------+---------------------------------------------------------------------------------------------------------------------------------------------+
| EXCEPTION | DETAILS |
+-----------+---------------------------------------------------------------------------------------------------------------------------------------------+
| CDG-50605 | Password validation failed for database 'CDBAIRT' |
| | Given password should match password set in db_wallet and database 'CDBAIRT' |
| dg_api | CDG-50107 : DataGuard prechecks failed for stage VERIFY_DG_PRIMARY |
| | Refer the exceptions raised and fix the issues |
| | File: dg_api, Line#: 1655, Log: /var/opt/oracle/log/CDBAIRT/dbaasapi/db/dg/dbaasapi_VERIFY_DG_PRIMARY_2023-02-15_23:41:10.047779_336426.log |
'-----------+---------------------------------------------------------------------------------------------------------------------------------------------'
</code></b></pre>
<p><b>Location of DG logs on ExaCC : /var/opt/oracle/log/<dbname>/dbaasapi/db/dg</dbname></b></p>
<p><b>Modify the database's Oracle user's access rights to the TNS ADMIN folder.</b></p>
<p><b>chmod 755 -R $ORACLE_HOME/network/admin/</b></p>
<p><b>and if they aren't already there, move the tnsnames and sqlnet files from the db name folder to the admin folder. Alternatively, you can build a soft link for both files in the admin folder. </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
vi $ORACLE_HOME/network/admin/tnsnames.ora
CDBAIRT_PR=
(DESCRIPTION=
(ADDRESS=
(PROTOCOL= TCP)
(HOST= DMSCAN)
(PORT= 1521))
(CONNECT_DATA=
(SERVER= DEDICATED)
(SERVICE_NAME= CDBAIRT_PR)))
CDBAIRT_DG=
(DESCRIPTION=
(ADDRESS=
(PROTOCOL=TCP)
(HOST=DM2SCAN)
(PORT=1521))
(CONNECT_DATA=
(SERVER=DEDICATED)
(SERVICE_NAME=CDBAIRT_DG)
(FAILOVER_MODE=
(TYPE=select)
(METHOD=basic))))
</code></b></pre>
<p><b>Modify Password in Wallet : </b></p>
<p><b>Reference : How to change SYS Password On Data guard Associated databases-EXACC Gen 2 (Doc ID 2867554.1)</b></p>
<p><b>mkstore -wrl /var/opt/oracle/dbaas_acfs/CDBAIRT/db_wallet -viewEntry passwd</b></p>
<p><b>mkstore -wrl /var/opt/oracle/dbaas_acfs/CDBAIRT/db_wallet -modifyEntry passwd <yourpassword></yourpassword></b></p>
<p><b>mkstore -wrl /var/opt/oracle/dbaas_acfs/CDBAIRT/db_wallet -viewEntry passwd</b></p>
<p><b>The following is the dbaascli command to update your password. </b></p>
<p><b>dbaascli database changePassword --dbname CDBAIRT --user sys</b></p>
<p><b>DR directory : /var/opt/oracle/log/CDBAIRT/dbaasapi/db/dg</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[root@dm01db01 ~]# dbaascli database changePassword --dbname CDBAIRT --user sys
DBAAS CLI version 22.4.1.0.1
Executing command database changePassword --user sys
Job id: 195b3de3-30b7-40f8-ae5e-54e4c95c78ea
Enter new password:
Enter new password (reconfirmation):
Loading PILOT...
Session ID of the current execution is: 10
Log file location: /var/opt/oracle/log/CDBAIRT/database/changePassword/pilot_2023-02-15_07-18-01-PM_191922
-----------------
Running Plugin_initialization job
Enter username whose password change is required
Enter new password ************
Completed Plugin_initialization job
-----------------
Running DB_change_password_prechecks job
Completed DB_change_password_prechecks job
-----------------
Running Extract_blob_in_standby job
Skipping. Job is detected as not applicable.
-----------------
Running Copy_blob_contents_in_standby job
Skipping. Job is detected as not applicable.
-----------------
Running Change_password job
Completed Change_password job
-----------------
<span style="color: #04ff00;">Running Update_db_wallet job
Completed Update_db_wallet job</span>
-----------------
Running Prepare_blob_for_standby_in_primary job
Skipping. Job is detected as not applicable.
dbaascli execution completed
</code></b></pre>
Note: The command above also updates the wallet's password.
<p><b>show parameter log_archive_dest_1</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
— Using the DB_RECOVERY_FILE_DEST parameter
alter system set LOG_ARCHIVE_DEST_1=’LOCATION=USE_DB_RECOVERY_FILE_DEST VALID_FOR=(ALL_LOGFILES,ALL_ROLES) MAX_FAILURE=1 REOPEN=5 DB_UNIQUE_NAME=CDBAIRT_2 ALTERNATE=LOG_ARCHIVE_DEST_10′ scope=both sid=’*’;
</code></b></pre>
<p><b>Once more, create the Dataguard configuration and verify the location </b></p>
<p><b>cd /var/opt/oracle/log/CDBAIRT/dbaasapi/db/dg</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
2023-02-16 11:18:22.434161 -
.-------------------------------------------------.
| RESULTS |
+----------------------------------------+--------+
| CHECK TYPE | STATUS |
+----------------------------------------+--------+
| check_file_creg | PASSED |
| check_file_sqlnet | PASSED |
| check_file_tnsnames | PASSED |
| db_status | PASSED |
| dbaastools_exa_rpm_check | PASSED |
| dbcs-agent-update-exacc_rpm_check | PASSED |
| dbcs-agent-update_rpm_check | PASSED |
| listener_status_listener | PASSED |
| listener_status_scan_listener | PASSED |
| node_status | PASSED |
| oracle_managed_files | PASSED |
| parameter_compatible | PASSED |
| parameter_db_create_file_dest | PASSED |
| parameter_db_recovery_file_dest | PASSED |
| parameter_db_unique_name | PASSED |
| parameter_log_archive_config | PASSED |
| parameter_log_archive_dest_1 | PASSED |
| parameter_log_archive_dest_10 | PASSED |
| parameter_remote_listener | PASSED |
| space_check_/var/opt/oracle/dbaas_acfs | PASSED |
| space_check_RECO | PASSED |
| tnsport_check | PASSED |
| user_equivalence_for_grid | PASSED |
| user_equivalence_for_opc | PASSED |
| user_equivalence_for_oracle | PASSED |
| <span style="color: #04ff00;">validate_sys_passwd | PASSED</span> |
| wallet_size_check | PASSED |
'----------------------------------------+--------'
</code></b></pre>
<p><b>All checks are now successful, therefore the standby database creation should go smoothly.</b></p>
Sultan Khanhttp://www.blogger.com/profile/12933538356533244884noreply@blogger.com0tag:blogger.com,1999:blog-399436389180403563.post-49649717573685259282023-02-28T15:18:00.000+05:302023-02-28T15:18:30.343+05:30ORA-39173: Encrypted data has been stored unencrypted in dump file set<p><b>Hello Friend's ,</b></p>
<p><b>Welcome to a new post</b></p>
<p><b>Solution to error ORA-39173: Encrypted data has been stored unencrypted in dump file set.</b></p>
<p><b>So lets get started with the senario : </b></p>
<p><b>We got the error while taking an export as below : </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> !expdp system@FlyDB directory=FlyEXP dumpfile=Fly_EXP27022023.dmp logfile=LOG_Fly2702.log schemas='BIGONE' compression=ALL
Export: Release 19.0.0.0.0 - Production on Mon Feb 27 15:39:54 2023
Version 19.18.0.0.0
Copyright (c) 1982, 2019, Oracle and/or its affiliates. All rights reserved.
Password:
Connected to: Oracle Database 19c EE Extreme Perf Release 19.0.0.0.0 - Production
Starting "SYSTEM"."SYS_EXPORT_SCHEMA_01": system/********@FlyDB directory=FlyEXP dumpfile=Fly_EXP27022023.dmp logfile=LOG_Fly2702.log schemas=BIGONE compression=ALL
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
Processing object type SCHEMA_EXPORT/STATISTICS/MARKER
Processing object type SCHEMA_EXPORT/USER
Processing object type SCHEMA_EXPORT/ROLE_GRANT
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
Processing object type SCHEMA_EXPORT/TABLESPACE_QUOTA
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Processing object type SCHEMA_EXPORT/TABLE/TABLE
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
. . exported "BIGONE"."BIGTAB" 5.826 MB 2000000 rows
ORA-39173: Encrypted data has been stored unencrypted in dump file set.
Master table "SYSTEM"."SYS_EXPORT_SCHEMA_01" successfully loaded/unloaded
******************************************************************************
Dump file set for SYSTEM.SYS_EXPORT_SCHEMA_01 is:
/data_mig1/FlyEXP/Fly_EXP27022023.dmp
Job "SYSTEM"."SYS_EXPORT_SCHEMA_01" successfully completed at Mon Feb 27 15:40:34 2023 elapsed 0 00:00:32
</code></b></pre>
<p><b>Cause: The encrypted data was exported without a password for encryption. This is merely a warning that the dumpfile is insecure and that it could potentially jeopardise the encrypted data.</b></p>
<p><b>Solution: ENCRYPTION MODE or ENCRYPTION PASSWORD parameters must be used in order to secure the export dumpfile and protect the encrypted data while exporting the database.</b></p>
<p><b>Afterwards, you'll need this wallet or password to import the data from this export dump.</b></p>
<p><b>To fix the mistake Use the following technique to export the data for ORA-39173.</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> !expdp system@FlyDB directory=FlyEXP dumpfile=Fly_EXP27022.dmp logfile=LOG_Fly27.log schemas='BIGONE' compression=ALL ENCRYPTION_PASSWORD= MyPassword
Export: Release 19.0.0.0.0 - Production on Mon Feb 27 15:42:25 2023
Version 19.18.0.0.0
Copyright (c) 1982, 2019, Oracle and/or its affiliates. All rights reserved.
Password:
Connected to: Oracle Database 19c EE Extreme Perf Release 19.0.0.0.0 - Production
Starting "SYSTEM"."SYS_EXPORT_SCHEMA_01": system/********@FlyDB directory=FlyEXP dumpfile=Fly_EXP27022.dmp logfile=LOG_Fly27.log schemas=BIGONE compression=ALL ENCRYPTION_PASSWORD=********
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
Processing object type SCHEMA_EXPORT/STATISTICS/MARKER
Processing object type SCHEMA_EXPORT/USER
Processing object type SCHEMA_EXPORT/ROLE_GRANT
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
Processing object type SCHEMA_EXPORT/TABLESPACE_QUOTA
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Processing object type SCHEMA_EXPORT/TABLE/TABLE
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
. . exported "BIGONE"."BIGTAB" 5.826 MB 2000000 rows
Master table "SYSTEM"."SYS_EXPORT_SCHEMA_01" successfully loaded/unloaded
******************************************************************************
Dump file set for SYSTEM.SYS_EXPORT_SCHEMA_01 is:
/data_mig1/FlyEXP/Fly_EXP27022.dmp
Job "SYSTEM"."SYS_EXPORT_SCHEMA_01" successfully completed at Mon Feb 27 15:42:58 2023 elapsed 0 00:00:29
</code></b></pre>
<p><b>No need for an encryption password when importing into the same database. </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> !impdp system@FlyDB directory=FlyEXP dumpfile=Fly_EXP27022.dmp logfile=Import.log tables=BIGONE.BIGTAB
Import: Release 19.0.0.0.0 - Production on Mon Feb 27 15:52:01 2023
Version 19.18.0.0.0
Copyright (c) 1982, 2019, Oracle and/or its affiliates. All rights reserved.
Password:
Connected to: Oracle Database 19c EE Extreme Perf Release 19.0.0.0.0 - Production
Master table "SYSTEM"."SYS_IMPORT_TABLE_01" successfully loaded/unloaded
Starting "SYSTEM"."SYS_IMPORT_TABLE_01": system/********@FlyDB directory=FlyEXP dumpfile=Fly_EXP27022.dmp logfile=Import.log tables=BIGONE.BIGTAB
Processing object type SCHEMA_EXPORT/TABLE/TABLE
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
. . imported "BIGONE"."BIGTAB" 5.826 MB 2000000 rows
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
Processing object type SCHEMA_EXPORT/STATISTICS/MARKER
Job "SYSTEM"."SYS_IMPORT_TABLE_01" successfully completed at Mon Feb 27 15:52:31 2023 elapsed 0 00:00:19
</code></b></pre>
<p><b>Hope This Helps</b></p> Sultan Khanhttp://www.blogger.com/profile/12933538356533244884noreply@blogger.com0tag:blogger.com,1999:blog-399436389180403563.post-87809488857821118712022-12-25T22:16:00.000+05:302022-12-25T22:16:18.808+05:30How to resolve CLSRSC-594 CLSRSC-180 CLSRSC-571<p><b>Hello Friend's ,</b></p>
<p><b>Welcome to a new post</b></p>
<p><b>I this post we will discuss About the error faces during a node add on version 19.16 Grid.</b></p>
<p><b>So let's get started</b></p>
<p><b>Error Codes : CLSRSC-594 CLSRSC-180 CLSRSC-571</b></p>
<p><b>Actual Error : </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
2022/10/22 01:42:46 CLSRSC-594: Executing installation step 4 of 19: 'GenSiteGUIDs'.
oracle.ops.mgmt.cluster.ClusterException: /Grid/app/gridwork/gr_19.16/crs/install/crsgenconfig_params: Permission denied
2022/10/22 01:42:47 CLSRSC-180: An error occurred while executing the command '/Grid/app/gridwork/gr_19.16/bin/cluutil -copy -sourcefile /Grid/app/gridwork/gr_19.16/crs/install/crsgenconfig_params -fromnodesfile /tmp/7EXOT3movi -destfile /Grid/app/gridwork/gr_19.16/crs/install/crsgenconfig_params -nodelist dm01db03'
2022/10/22 01:42:47 CLSRSC-571: failed to copy file '/Grid/app/gridwork/gr_19.16/crs/install/crsgenconfig_params' from node 'dm01db01' to file '/Grid/app/gridwork/gr_19.16/crs/install/crsgenconfig_params' on local node
Died at /Grid/app/gridwork/gr_19.16/crs/install/crsutils.pm line 15908.
</code></b></pre>
<p><b>Solution :</b></p>
<p>Create a file : crsgenconfig_params on new node and check for this file on old node as well if not found create one</p>
<p>contents of file will be in crsconfig_params</p>
<p>chown -R grid:oinstall /Grid/app/gridwork/gr_19.16/crs/install/crsgenconfig_params</p>
<p><b>entries to be checked in crsconfig_params :</b></p>
<p>EXTENDED_CLUSTER_SITES=dm01clust
<p>EXTENDED_CLUSTER_SITE_GUIDS=6215febd22346f99bfa10932432a8344
<p><b>entries to be added in crsgenconfig_params :</b></p>
<p>EXTENDED_CLUSTER_SITE_GUIDS=dm01clust:6215febd22346f99bfa10932432a8344
<p><b>same on new node :</b></p>
<p><b>entries to be checked in crsconfig_params : </b></p>
<p>EXTENDED_CLUSTER_SITES=dm01clust
<p>EXTENDED_CLUSTER_SITE_GUIDS=6215febd22346f99bfa10932432a8344
<p><b>entries to be added in crsgenconfig_params :</b></p>
<p>EXTENDED_CLUSTER_SITE_GUIDS=dm01clust:6215febd22346f99bfa10932432a8344
<p>Hope this Helps .</p> Sultan Khanhttp://www.blogger.com/profile/12933538356533244884noreply@blogger.com0tag:blogger.com,1999:blog-399436389180403563.post-7839125356288131532022-12-02T15:35:00.004+05:302023-04-18T18:20:48.878+05:30Oracle Cross Platform Dataguard<p><b>Hello Friend's ,</b></p>
<p><b>Welcome to a new post</b></p>
<p><b>I this post we will discuss and provide steps to configure database setup for hetrogenous.</b></p>
<div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg86dXpzzp2a4SmqZq8rkxuNdjttxzfppVLryR6CDiZPl6rbToEIy98ndAztb51gNrIxSPVZnoxAL3T-_euxmOemQ4QPsXH4-Wkx-Ye4OF-aOcMGlVLEtObt4ttEjNMmzTx72x36sBRDwsiIhWEbzN1z6BiMzbtLrsQv00Mi8NfRZJcAn2oXtAkD1-tMA/s1600/Hetrogenous_Oracle_dataguard.png" style="display: block; padding: 1em 0; text-align: center; clear: right; float: right;"><img alt="Oracle Cross Platform Dataguard" border="0" data-original-height="362" data-original-width="700" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg86dXpzzp2a4SmqZq8rkxuNdjttxzfppVLryR6CDiZPl6rbToEIy98ndAztb51gNrIxSPVZnoxAL3T-_euxmOemQ4QPsXH4-Wkx-Ye4OF-aOcMGlVLEtObt4ttEjNMmzTx72x36sBRDwsiIhWEbzN1z6BiMzbtLrsQv00Mi8NfRZJcAn2oXtAkD1-tMA/s1600/Hetrogenous_Oracle_dataguard.png"/></a></div>
<p><b>Step 1 : Primary Pfile :</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
cdbfly.__data_transfer_cache_size=0
cdbfly.__db_cache_size=729808896
cdbfly.__inmemory_ext_roarea=0
cdbfly.__inmemory_ext_rwarea=0
cdbfly.__java_pool_size=0
cdbfly.__large_pool_size=4194304
cdbfly.__oracle_base='D:\app\Administrator'#ORACLE_BASE set from environment
cdbfly.__pga_aggregate_target=209715200
cdbfly.__sga_target=1073741824
cdbfly.__shared_io_pool_size=50331648
cdbfly.__shared_pool_size=272629760
cdbfly.__streams_pool_size=0
cdbfly.__unified_pga_pool_size=0
*.audit_file_dest='D:\app\Administrator\admin\CDBFLY\adump'
*.audit_trail='db'
*.compatible='19.0.0'
*.control_files='D:\app\Administrator\oradata\CDBFLY\control01.ctl','D:\app\Administrator\fast_recovery_area\CDBFLY\control02.ctl'
*.db_block_size=8192
*.db_name='CDBFLY'
*.db_recovery_file_dest='D:\app\Administrator\fast_recovery_area'
*.db_recovery_file_dest_size=12732m
*.diagnostic_dest='D:\app\Administrator'
*.dispatchers='(PROTOCOL=TCP) (SERVICE=CDBFLYXDB)'
*.enable_pluggable_database=true
*.fal_client='CDBFLY'
*.fal_server='CDBFDR'
*.local_listener='LISTENER_CDBFLY'
*.log_archive_format='arch_%t_%s_%r.arc'
*.log_archive_max_processes=5
*.nls_language='AMERICAN'
*.nls_territory='AMERICA'
*.open_cursors=300
*.pga_aggregate_target=200m
*.processes=300
*.remote_login_passwordfile='EXCLUSIVE'
*.sga_target=1024m
*.standby_file_management='AUTO'
*.undo_tablespace='UNDOTBS1'
################ Primary DB Init Parameters #################
*.log_archive_config='DG_CONFIG=(CDBFLY,CDBFDR)'
*.log_archive_dest_1='LOCATION=D:\Archive VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=CDBFLY'
*.log_archive_dest_2='service=CDBFDR LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) db_unique_name=CDBFDR'
*.db_file_name_convert='+DATA/CDBFDR/DATAFILES','D:\APP\ADMINISTRATOR\ORADATA\CDBFLY','+DATA/CDBFDR/DATAFILES/PDBSEED','D:\APP\ADMINISTRATOR\ORADATA\CDBFLY\PDBSEED','+DATA/CDBFDR/DATAFILES/FLYDB','D:\APP\ADMINISTRATOR\ORADATA\CDBFLY\FLYDB'
*.log_file_name_convert='+DATA/CDBFDR/LOGFILES','D:\APP\ADMINISTRATOR\ORADATA\CDBFLY'
*.fal_client='CDBFLY'
*.fal_server='CDBFDR'
*.standby_file_management='AUTO'
</code></b></pre>
<p><b>Step 2 : Standby Pfile : </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
cdbfly.__data_transfer_cache_size=0
cdbfly.__db_cache_size=729808896
cdbfly.__inmemory_ext_roarea=0
cdbfly.__inmemory_ext_rwarea=0
cdbfly.__java_pool_size=0
cdbfly.__large_pool_size=4194304
cdbfly.__oracle_base='D:\app\Administrator'#ORACLE_BASE set from environment
cdbfly.__pga_aggregate_target=209715200
cdbfly.__sga_target=1073741824
cdbfly.__shared_io_pool_size=50331648
cdbfly.__shared_pool_size=272629760
cdbfly.__streams_pool_size=0
cdbfly.__unified_pga_pool_size=0
*.audit_file_dest='/oracle/app/audit'
*.audit_trail='db'
*.compatible='19.0.0'
*.control_files='+DATA/CDBFDR/control01.ctl','+RECO/CDBFDR/control02.ctl'
*.db_block_size=8192
*.db_name='CDBFLY'
*.db_unique_name='CDBFDR'
*.db_recovery_file_dest='+RECO'
*.db_recovery_file_dest_size=12732m
*.diagnostic_dest='D:\app\Administrator'
*.dispatchers='(PROTOCOL=TCP) (SERVICE=CDBFDRXDB)'
*.enable_pluggable_database=true
*.local_listener='LISTENER_CDBFDR'
*.log_archive_dest_1='LOCATION=+RECO'
*.log_archive_format='%t_%s_%r.arc'
*.nls_language='AMERICAN'
*.nls_territory='AMERICA'
*.open_cursors=300
*.pga_aggregate_target=200m
*.processes=300
*.remote_login_passwordfile='EXCLUSIVE'
*.sga_target=1024m
*.undo_tablespace='UNDOTBS1'
################ Standby DB Init Parameters #################
*.log_archive_config='DG_CONFIG=(CDBFDR,CDBFLY)'
*.log_archive_dest_1='LOCATION=+RECO VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=CDBFDR'
*.log_archive_dest_2='SERVICE=CDBFLY LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=CDBFLY'
*.log_archive_format='arch_%t_%s_%r.arc'
*.log_archive_max_processes=5
*.db_file_name_convert='D:\APP\ADMINISTRATOR\ORADATA\CDBFLY','+DATA/CDBFDR/DATAFILES','D:\APP\ADMINISTRATOR\ORADATA\CDBFLY\PDBSEED','+DATA/CDBFDR/DATAFILES/PDBSEED','D:\APP\ADMINISTRATOR\ORADATA\CDBFLY\FLYDB','+DATA/CDBFDR/DATAFILES/FLYDB'
*.log_file_name_convert='D:\APP\ADMINISTRATOR\ORADATA\CDBFLY','+DATA/CDBFDR/LOGFILES'
*.fal_client='CDBFDR'
*.fal_server='CDBFLY'
*.standby_file_management='AUTO'
</code></b></pre>
<p><b>If standby is made on windows add instance as below .</b></p>
<p><b>set ORACLE_HOME=<Correct Directory></b></p>
<p><b>set PATH=%PATH%:%ORACLE_HOME%/bin</b></p>
<p><b>oradim -new -SID BOSTON -INTPWD primarySysPassword -STARTMODE auto -PFILE "%ORACLE_HOME%\database\initBOSTON.ora"</b></p>
<p><b>Now getting on with the steps .</b></p>
<p><b>Step 3 : Add standby logfiles on primary (Windows)</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
alter database add standby logfile group 4 'D:\APP\ADMINISTRATOR\ORADATA\CDBFLY\REDO04.LOG' size 200M;
alter database add standby logfile group 5 'D:\APP\ADMINISTRATOR\ORADATA\CDBFLY\REDO05.LOG' size 200M;
alter database add standby logfile group 6 'D:\APP\ADMINISTRATOR\ORADATA\CDBFLY\REDO06.LOG' size 200M;
</code></b></pre>
<p><b>Tns file example Primary (Windows) : </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
# tnsnames.ora Network Configuration File: D:\WINDOWS.X64_193000_db_home\NETWORK\ADMIN\tnsnames.ora
# Generated by Oracle configuration tools.
CDBFLY =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.10.4.14)(PORT = 1525))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = CDBFLY)
)
)
CDBFDR =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.10.4.61)(PORT = 1525))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = CDBFDR)
)
)
LISTENER_CDBFLY =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.10.4.14)(PORT = 1521))
</code></b></pre>
<p><b>Step 4 : listener file example (Windows): </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SID_LIST_LSNR_FLY =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = CDBFDR)
(ORACLE_HOME = D:\WINDOWS.X64_193000_db_home)
(SID_NAME = CDBFDR)
)
(SID_DESC =
(GLOBAL_DBNAME = CDBFLY)
(ORACLE_HOME = D:\WINDOWS.X64_193000_db_home)
(SID_NAME = CDBFLY)
)
)
LSNR_FLY =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.10.4.14)(PORT = 1525))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
)
</code></b></pre>
<p><b>Step 5 : Tns file example Standby (Linux): </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
CDBFLY =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.10.4.14)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = CDBFLY)
)
)
CDBFDR =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.10.4.61)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = CDBFDR)
)
)
</code></b></pre>
<p><b>Step 6 : Listener file example Standby (Linux): </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SID_LIST_LSNR_FDR =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = /oracle/app/orawork/product/19.0.0.0/db_1)
(PROGRAM = extproc)
)
)
LSNR_FDR =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.10.4.61)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
)
SID_LIST_LSNR_FLY =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = CDBFDR)
(ORACLE_HOME = D:\WINDOWS.X64_193000_db_home)
(SID_NAME = CDBFDR)
)
(SID_DESC =
(GLOBAL_DBNAME = CDBFLY)
(ORACLE_HOME = D:\WINDOWS.X64_193000_db_home)
(SID_NAME = CDBFLY)
)
)
</code></b></pre>
<p><b>Step 7 : Start with the standby startup (Nomount Linux) : </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[oracle@dm01db01 dbs]$ sqlplus / as sysdba
SQL*Plus: Release 19.0.0.0.0 - Production on Thu Oct 27 23:25:35 2022
Version 19.16.0.0.0
Copyright (c) 1982, 2022, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup nomount
ORACLE instance started.
Total System Global Area 1073738488 bytes
Fixed Size 9143032 bytes
Variable Size 276824064 bytes
Database Buffers 784334848 bytes
Redo Buffers 3436544 bytes
SQL> exit
Disconnected from Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.16.0.0.0
</code></b></pre>
<p><b>Step 8 : Start with the restore (connect with auxillary) :</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[oracle@dm01db01 dbs]$ rman target sys/Welcome1#@CDBFLY auxiliary sys/Welcome1#@CDBFDR
Recovery Manager: Release 19.0.0.0.0 - Production on Thu Oct 27 23:25:47 2022
Version 19.16.0.0.0
Copyright (c) 1982, 2019, Oracle and/or its affiliates. All rights reserved.
PL/SQL package SYS.DBMS_BACKUP_RESTORE version 19.03.00.00 in TARGET database is not current
PL/SQL package SYS.DBMS_RCVMAN version 19.03.00.00 in TARGET database is not current
connected to target database: CDBFLY (DBID=832005645)
connected to auxiliary database: CDBFLY (not mounted)
RMAN> run {
allocate channel prmy1 type disk;
allocate channel prmy2 type disk;
allocate channel prmy3 type disk;
allocate auxiliary channel stby1 type disk;
duplicate target database for standby from active database nofilenamecheck;
}2> 3> 4> 5> 6> 7>
using target database control file instead of recovery catalog
allocated channel: prmy1
channel prmy1: SID=278 device type=DISK
allocated channel: prmy2
channel prmy2: SID=31 device type=DISK
allocated channel: prmy3
channel prmy3: SID=265 device type=DISK
allocated channel: stby1
channel stby1: SID=432 device type=DISK
Starting Duplicate Db at 27-OCT-22
contents of Memory Script:
{
backup as copy reuse
passwordfile auxiliary format '/oracle/app/orawork/product/19.0.0.0/db_1/dbs/orapwCDBFDR' ;
}
executing Memory Script
Starting backup at 27-OCT-22
Finished backup at 27-OCT-22
contents of Memory Script:
{
backup as copy current controlfile for standby auxiliary format '+DATA/CDBFDR/control01.ctl';
restore clone primary controlfile to '+RECO/CDBFDR/control02.ctl' from
'+DATA/CDBFDR/control01.ctl';
}
executing Memory Script
Starting backup at 27-OCT-22
channel prmy1: starting datafile copy
copying standby control file
output file name=D:\WINDOWS.X64_193000_DB_HOME\DATABASE\SNCFCDBFLY.ORA tag=TAG20221027T105607
channel prmy1: datafile copy complete, elapsed time: 00:00:01
Finished backup at 27-OCT-22
Starting restore at 27-OCT-22
channel stby1: copied control file copy
Finished restore at 27-OCT-22
contents of Memory Script:
{
sql clone 'alter database mount standby database';
}
executing Memory Script
sql statement: alter database mount standby database
contents of Memory Script:
{
set newname for tempfile 1 to
"+DATA/CDBFDR/DATAFILES/temp01.dbf";
set newname for tempfile 2 to
"+DATA/CDBFDR/DATAFILES/PDBSEED/temp012022-10-27_04-07-49-520-am.dbf";
set newname for tempfile 3 to
"+DATA/CDBFDR/DATAFILES/FLYDB/temp01.dbf";
switch clone tempfile all;
set newname for datafile 1 to
"+DATA/CDBFDR/DATAFILES/system01.dbf";
set newname for datafile 3 to
"+DATA/CDBFDR/DATAFILES/sysaux01.dbf";
set newname for datafile 4 to
"+DATA/CDBFDR/DATAFILES/undotbs01.dbf";
set newname for datafile 5 to
"+DATA/CDBFDR/DATAFILES/PDBSEED/system01.dbf";
set newname for datafile 6 to
"+DATA/CDBFDR/DATAFILES/PDBSEED/sysaux01.dbf";
set newname for datafile 7 to
"+DATA/CDBFDR/DATAFILES/users01.dbf";
set newname for datafile 8 to
"+DATA/CDBFDR/DATAFILES/PDBSEED/undotbs01.dbf";
set newname for datafile 9 to
"+DATA/CDBFDR/DATAFILES/FLYDB/system01.dbf";
set newname for datafile 10 to
"+DATA/CDBFDR/DATAFILES/FLYDB/sysaux01.dbf";
set newname for datafile 11 to
"+DATA/CDBFDR/DATAFILES/FLYDB/undotbs01.dbf";
set newname for datafile 12 to
"+DATA/CDBFDR/DATAFILES/FLYDB/users01.dbf";
backup as copy reuse
datafile 1 auxiliary format
"+DATA/CDBFDR/DATAFILES/system01.dbf" datafile
3 auxiliary format
"+DATA/CDBFDR/DATAFILES/sysaux01.dbf" datafile
4 auxiliary format
"+DATA/CDBFDR/DATAFILES/undotbs01.dbf" datafile
5 auxiliary format
"+DATA/CDBFDR/DATAFILES/PDBSEED/system01.dbf" datafile
6 auxiliary format
"+DATA/CDBFDR/DATAFILES/PDBSEED/sysaux01.dbf" datafile
7 auxiliary format
"+DATA/CDBFDR/DATAFILES/users01.dbf" datafile
8 auxiliary format
"+DATA/CDBFDR/DATAFILES/PDBSEED/undotbs01.dbf" datafile
9 auxiliary format
"+DATA/CDBFDR/DATAFILES/FLYDB/system01.dbf" datafile
10 auxiliary format
"+DATA/CDBFDR/DATAFILES/FLYDB/sysaux01.dbf" datafile
11 auxiliary format
"+DATA/CDBFDR/DATAFILES/FLYDB/undotbs01.dbf" datafile
12 auxiliary format
"+DATA/CDBFDR/DATAFILES/FLYDB/users01.dbf" ;
sql 'alter system archive log current';
}
executing Memory Script
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
renamed tempfile 1 to +DATA/CDBFDR/DATAFILES/temp01.dbf in control file
renamed tempfile 2 to +DATA/CDBFDR/DATAFILES/PDBSEED/temp012022-10-27_04-07-49-520-am.dbf in control file
renamed tempfile 3 to +DATA/CDBFDR/DATAFILES/FLYDB/temp01.dbf in control file
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
Starting backup at 27-OCT-22
channel prmy1: starting datafile copy
input datafile file number=00001 name=D:\APP\ADMINISTRATOR\ORADATA\CDBFLY\SYSTEM01.DBF
channel prmy2: starting datafile copy
input datafile file number=00003 name=D:\APP\ADMINISTRATOR\ORADATA\CDBFLY\SYSAUX01.DBF
channel prmy3: starting datafile copy
input datafile file number=00010 name=D:\APP\ADMINISTRATOR\ORADATA\CDBFLY\FLYDB\SYSAUX01.DBF
output file name=+DATA/CDBFDR/DATAFILES/FLYDB/sysaux01.dbf tag=TAG20221027T105615
channel prmy3: datafile copy complete, elapsed time: 00:00:15
channel prmy3: starting datafile copy
input datafile file number=00006 name=D:\APP\ADMINISTRATOR\ORADATA\CDBFLY\PDBSEED\SYSAUX01.DBF
output file name=+DATA/CDBFDR/DATAFILES/system01.dbf tag=TAG20221027T105615
channel prmy1: datafile copy complete, elapsed time: 00:00:31
channel prmy1: starting datafile copy
input datafile file number=00005 name=D:\APP\ADMINISTRATOR\ORADATA\CDBFLY\PDBSEED\SYSTEM01.DBF
output file name=+DATA/CDBFDR/DATAFILES/sysaux01.dbf tag=TAG20221027T105615
channel prmy2: datafile copy complete, elapsed time: 00:00:31
channel prmy2: starting datafile copy
input datafile file number=00009 name=D:\APP\ADMINISTRATOR\ORADATA\CDBFLY\FLYDB\SYSTEM01.DBF
output file name=+DATA/CDBFDR/DATAFILES/PDBSEED/sysaux01.dbf tag=TAG20221027T105615
channel prmy3: datafile copy complete, elapsed time: 00:00:15
channel prmy3: starting datafile copy
input datafile file number=00008 name=D:\APP\ADMINISTRATOR\ORADATA\CDBFLY\PDBSEED\UNDOTBS01.DBF
output file name=+DATA/CDBFDR/DATAFILES/PDBSEED/undotbs01.dbf tag=TAG20221027T105615
channel prmy3: datafile copy complete, elapsed time: 00:00:07
channel prmy3: starting datafile copy
input datafile file number=00011 name=D:\APP\ADMINISTRATOR\ORADATA\CDBFLY\FLYDB\UNDOTBS01.DBF
output file name=+DATA/CDBFDR/DATAFILES/PDBSEED/system01.dbf tag=TAG20221027T105615
channel prmy1: datafile copy complete, elapsed time: 00:00:09
channel prmy1: starting datafile copy
input datafile file number=00004 name=D:\APP\ADMINISTRATOR\ORADATA\CDBFLY\UNDOTBS01.DBF
output file name=+DATA/CDBFDR/DATAFILES/FLYDB/system01.dbf tag=TAG20221027T105615
channel prmy2: datafile copy complete, elapsed time: 00:00:10
channel prmy2: starting datafile copy
input datafile file number=00007 name=D:\APP\ADMINISTRATOR\ORADATA\CDBFLY\USERS01.DBF
output file name=+DATA/CDBFDR/DATAFILES/users01.dbf tag=TAG20221027T105615
channel prmy2: datafile copy complete, elapsed time: 00:00:01
channel prmy2: starting datafile copy
input datafile file number=00012 name=D:\APP\ADMINISTRATOR\ORADATA\CDBFLY\FLYDB\USERS01.DBF
output file name=+DATA/CDBFDR/DATAFILES/undotbs01.dbf tag=TAG20221027T105615
channel prmy1: datafile copy complete, elapsed time: 00:00:04
output file name=+DATA/CDBFDR/DATAFILES/FLYDB/users01.dbf tag=TAG20221027T105615
channel prmy2: datafile copy complete, elapsed time: 00:00:01
output file name=+DATA/CDBFDR/DATAFILES/FLYDB/undotbs01.dbf tag=TAG20221027T105615
channel prmy3: datafile copy complete, elapsed time: 00:00:05
Finished backup at 27-OCT-22
sql statement: alter system archive log current
contents of Memory Script:
{
switch clone datafile all;
}
executing Memory Script
datafile 1 switched to datafile copy
input datafile copy RECID=4 STAMP=1119223617 file name=+DATA/CDBFDR/DATAFILES/system01.dbf
datafile 3 switched to datafile copy
input datafile copy RECID=5 STAMP=1119223617 file name=+DATA/CDBFDR/DATAFILES/sysaux01.dbf
datafile 4 switched to datafile copy
input datafile copy RECID=6 STAMP=1119223617 file name=+DATA/CDBFDR/DATAFILES/undotbs01.dbf
datafile 5 switched to datafile copy
input datafile copy RECID=7 STAMP=1119223618 file name=+DATA/CDBFDR/DATAFILES/PDBSEED/system01.dbf
datafile 6 switched to datafile copy
input datafile copy RECID=8 STAMP=1119223618 file name=+DATA/CDBFDR/DATAFILES/PDBSEED/sysaux01.dbf
datafile 7 switched to datafile copy
input datafile copy RECID=9 STAMP=1119223618 file name=+DATA/CDBFDR/DATAFILES/users01.dbf
datafile 8 switched to datafile copy
input datafile copy RECID=10 STAMP=1119223618 file name=+DATA/CDBFDR/DATAFILES/PDBSEED/undotbs01.dbf
datafile 9 switched to datafile copy
input datafile copy RECID=11 STAMP=1119223618 file name=+DATA/CDBFDR/DATAFILES/FLYDB/system01.dbf
datafile 10 switched to datafile copy
input datafile copy RECID=12 STAMP=1119223618 file name=+DATA/CDBFDR/DATAFILES/FLYDB/sysaux01.dbf
datafile 11 switched to datafile copy
input datafile copy RECID=13 STAMP=1119223618 file name=+DATA/CDBFDR/DATAFILES/FLYDB/undotbs01.dbf
datafile 12 switched to datafile copy
input datafile copy RECID=14 STAMP=1119223618 file name=+DATA/CDBFDR/DATAFILES/FLYDB/users01.dbf
Finished Duplicate Db at 27-OCT-22
released channel: prmy1
released channel: prmy2
released channel: prmy3
released channel: stby1
Restore completed :
</code></b></pre>
<p><b>Step 9 : connect Primary and do some log switches : </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
D:\WINDOWS.X64_193000_db_home\database>sqlplus / as sysdba
SQL*Plus: Release 19.0.0.0.0 - Production on Thu Oct 27 11:02:06 2022
Version 19.3.0.0.0
Copyright (c) 1982, 2019, Oracle. All rights reserved.
Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.3.0.0.0
SQL> set pages 9999 lines 300
SQL> col OPEN_MODE for a10
SQL> col HOST_NAME for a30
SQL> select name DB_NAME,HOST_NAME,DATABASE_ROLE,OPEN_MODE,log_mode,version DB_VERSION,LOGINS,to_char(STARTUP_TIME,'DD-MON-YYYY HH24:MI:SS') "DB UP TIME" from v$database,v$instance;
DB_NAME HOST_NAME DATABASE_ROLE OPEN_MODE LOG_MODE DB_VERSION LOGINS DB UP TIME
--------- ------------------------------ ---------------- ---------- ------------ ----------------- ---------- -----------------------------
CDBFLY DM01WIN01 PRIMARY READ WRITE ARCHIVELOG 19.0.0.0.0 ALLOWED 27-OCT-2022 09:55:29
SQL> alter system switch logfile;
System altered.
SQL> /
System altered.
SQL> /
System altered.
SQL> /
System altered.
SQL> /
System altered.
SQL> /
System altered.
SQL> /
System altered.
SQL> archive log liist
SP2-0718: illegal ARCHIVE LOG option
SQL> archive log list
Database log mode Archive Mode
Automatic archival Enabled
Archive destination D:\Archive
Oldest online log sequence 10
Next log sequence to archive 12
Current log sequence 12
</code></b></pre>
<p><b>Step 10 : Connect Standby start the MRP and check the sync : </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[oracle@dm01db01 dbs]$ sqlplus / as sysdba
SQL*Plus: Release 19.0.0.0.0 - Production on Thu Oct 27 23:29:27 2022
Version 19.16.0.0.0
Copyright (c) 1982, 2022, Oracle. All rights reserved.
Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.16.0.0.0
SQL> select status,instance_name,database_role from v$database,v$instance;
STATUS INSTANCE_NAME DATABASE_ROLE
------------ ---------------- ----------------
MOUNTED CDBFDR PHYSICAL STANDBY
SQL> SELECT ARCH.THREAD# "Thread", ARCH.SEQUENCE# "Last Sequence Received", APPL.SEQUENCE# "Last Sequence Applied", (ARCH.SEQUENCE# - APPL.SEQUENCE#) "Difference" FROM (SELECT THREAD# ,SEQUENCE# FROM V$ARCHIVED_LOG WHERE (THREAD#,FIRST_TIME ) IN (SELECT THREAD#,MAX(FIRST_TIME) FROM V$ARCHIVED_LOG GROUP BY THREAD#)) ARCH,(SELECT THREAD# ,SEQUENCE# FROM V$LOG_HISTORY WHERE (THREAD#,FIRST_TIME ) IN (SELECT THREAD#,MAX(FIRST_TIME) FROM V$LOG_HISTORY GROUP BY THREAD#)) APPL WHERE ARCH.THREAD# = APPL.THREAD# ORDER BY 1;
no rows selected
SQL> set pages 9999 lines 300
col OPEN_MODE for a10
col HOST_NAME for a30
select name DB_NAME,HOST_NAME,DATABASE_ROLE,OPEN_MODE,log_mode,version DB_VERSION,LOGINS,to_char(STARTUP_TIME,'DD-MON-YYYY HH24:MI:SS') "DB UP TIME" from v$database,v$instance;SQL> SQL> SQL>
DB_NAME HOST_NAME DATABASE_ROLE OPEN_MODE LOG_MODE DB_VERSION LOGINS DB UP TIME
--------- ------------------------------ ---------------- ---------- ------------ ----------------- ---------- -----------------------------
CDBFLY dm01db01.database.com PHYSICAL STANDBY MOUNTED ARCHIVELOG 19.0.0.0.0 ALLOWED 27-OCT-2022 23:25:40
SQL> SELECT ARCH.THREAD# "Thread", ARCH.SEQUENCE# "Last Sequence Received", APPL.SEQUENCE# "Last Sequence Applied", (ARCH.SEQUENCE# - APPL.SEQUENCE#) "Difference" FROM (SELECT THREAD# ,SEQUENCE# FROM V$ARCHIVED_LOG WHERE (THREAD#,FIRST_TIME ) IN (SELECT THREAD#,MAX(FIRST_TIME) FROM V$ARCHIVED_LOG GROUP BY THREAD#)) ARCH,(SELECT THREAD# ,SEQUENCE# FROM V$LOG_HISTORY WHERE (THREAD#,FIRST_TIME ) IN (SELECT THREAD#,MAX(FIRST_TIME) FROM V$LOG_HISTORY GROUP BY THREAD#)) APPL WHERE ARCH.THREAD# = APPL.THREAD# ORDER BY 1;
Thread Last Sequence Received Last Sequence Applied Difference
---------- ---------------------- --------------------- ----------
1 11 3 8
SQL> alter database recover managed standby database disconnect from session;
Database altered.
SQL>
SQL>
SQL> select process,status,sequence# from v$managed_standby;
PROCESS STATUS SEQUENCE#
--------- ------------ ----------
ARCH CLOSING 8
DGRD ALLOCATED 0
DGRD ALLOCATED 0
ARCH CLOSING 9
ARCH CLOSING 10
ARCH CLOSING 11
ARCH CLOSING 7
RFS IDLE 0
RFS IDLE 12
RFS IDLE 0
MRP0 APPLYING_LOG 12
11 rows selected.
SQL> SELECT ARCH.THREAD# "Thread", ARCH.SEQUENCE# "Last Sequence Received", APPL.SEQUENCE# "Last Sequence Applied", (ARCH.SEQUENCE# - APPL.SEQUENCE#) "Difference" FROM (SELECT THREAD# ,SEQUENCE# FROM V$ARCHIVED_LOG WHERE (THREAD#,FIRST_TIME ) IN (SELECT THREAD#,MAX(FIRST_TIME) FROM V$ARCHIVED_LOG GROUP BY THREAD#)) ARCH,(SELECT THREAD# ,SEQUENCE# FROM V$LOG_HISTORY WHERE (THREAD#,FIRST_TIME ) IN (SELECT THREAD#,MAX(FIRST_TIME) FROM V$LOG_HISTORY GROUP BY THREAD#)) APPL WHERE ARCH.THREAD# = APPL.THREAD# ORDER BY 1;
Thread Last Sequence Received Last Sequence Applied Difference
---------- ---------------------- --------------------- ----------
1 11 11 0
</code></b></pre>
<p><b>Step 11 : Datafiles and log files location created on restore : </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> col member for a40
SQL> set lines 200
SQL> select * from v$logfile;
GROUP# STATUS TYPE MEMBER IS_ CON_ID
---------- ------- ------- ---------------------------------------- --- ----------
3 ONLINE +DATA/CDBFDR/LOGFILES/redo03.log NO 0
2 ONLINE +DATA/CDBFDR/LOGFILES/redo02.log NO 0
1 ONLINE +DATA/CDBFDR/LOGFILES/redo01.log NO 0
4 STANDBY +DATA/CDBFDR/LOGFILES/redo04.log NO 0
5 STANDBY +DATA/CDBFDR/LOGFILES/redo05.log NO 0
6 STANDBY +DATA/CDBFDR/LOGFILES/redo06.log NO 0
6 rows selected.
SQL> select * from v$log;
GROUP# THREAD# SEQUENCE# BYTES BLOCKSIZE MEMBERS ARC STATUS FIRST_CHANGE# FIRST_TIM NEXT_CHANGE# NEXT_TIME CON_ID
---------- ---------- ---------- ---------- ---------- ---------- --- ---------------- ------------- --------- ------------ --------- ----------
1 1 0 209715200 512 1 YES UNUSED 2006928 27-OCT-22 9.2954E+18 0
3 1 0 209715200 512 1 YES UNUSED 2001714 27-OCT-22 2006928 27-OCT-22 0
2 1 0 209715200 512 1 YES UNUSED 1956904 27-OCT-22 2001714 27-OCT-22 0
SQL> select name from v$datafile;
NAME
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
+DATA/CDBFDR/DATAFILES/system01.dbf
+DATA/CDBFDR/DATAFILES/sysaux01.dbf
+DATA/CDBFDR/DATAFILES/undotbs01.dbf
+DATA/CDBFDR/DATAFILES/PDBSEED/system01.dbf
+DATA/CDBFDR/DATAFILES/PDBSEED/sysaux01.dbf
+DATA/CDBFDR/DATAFILES/users01.dbf
+DATA/CDBFDR/DATAFILES/PDBSEED/undotbs01.dbf
+DATA/CDBFDR/DATAFILES/FLYDB/system01.dbf
+DATA/CDBFDR/DATAFILES/FLYDB/sysaux01.dbf
+DATA/CDBFDR/DATAFILES/FLYDB/undotbs01.dbf
+DATA/CDBFDR/DATAFILES/FLYDB/users01.dbf
11 rows selected.
SQL> show pdbs
CON_ID CON_NAME OPEN MODE RESTRICTED
---------- ------------------------------ ---------- ----------
2 PDB$SEED MOUNTED
3 FLYDB MOUNTED
</code></b></pre>
<p><b>Step 12 : check new tablespace creation and movement on standby .</b></p>
<p>Primary (Windows)</p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> select name from v$datafile;
NAME
-----------------------------------------------------------------
D:\APP\ADMINISTRATOR\ORADATA\CDBFLY\FLYDB\SYSTEM01.DBF
D:\APP\ADMINISTRATOR\ORADATA\CDBFLY\FLYDB\SYSAUX01.DBF
D:\APP\ADMINISTRATOR\ORADATA\CDBFLY\FLYDB\UNDOTBS01.DBF
D:\APP\ADMINISTRATOR\ORADATA\CDBFLY\FLYDB\USERS01.DBF
SQL> create tablespace Newtest datafile 'D:\APP\ADMINISTRATOR\ORADATA\CDBFLY\FLYDB\Newtest01.DBF' size 1G;
Tablespace created.
SQL> select name from v$datafile;
NAME
------------------------------------------------------------------
D:\APP\ADMINISTRATOR\ORADATA\CDBFLY\FLYDB\SYSTEM01.DBF
D:\APP\ADMINISTRATOR\ORADATA\CDBFLY\FLYDB\SYSAUX01.DBF
D:\APP\ADMINISTRATOR\ORADATA\CDBFLY\FLYDB\UNDOTBS01.DBF
D:\APP\ADMINISTRATOR\ORADATA\CDBFLY\FLYDB\USERS01.DBF
D:\APP\ADMINISTRATOR\ORADATA\CDBFLY\FLYDB\NEWTEST01.DBF
</code></b></pre>
<p>Standby (Linux)</p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> select name from v$datafile;
NAME
--------------------------------------------------------------------------------
+DATA/CDBFDR/DATAFILES/FLYDB/system01.dbf
+DATA/CDBFDR/DATAFILES/FLYDB/sysaux01.dbf
+DATA/CDBFDR/DATAFILES/FLYDB/undotbs01.dbf
+DATA/CDBFDR/DATAFILES/FLYDB/users01.dbf
+DATA/CDBFDR/DATAFILES/FLYDB/newtest01.dbf
</code></b></pre>
<p>Alert log Standby :</p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
MRP0 (PID:65984): Media Recovery Log +RECO/CDBFDR/ARCHIVELOG/2022_10_27/thread_1_seq_19.273.1119224533
MRP0 (PID:65984): Media Recovery Waiting for T-1.S-20 (in transit)
2022-10-27T23:42:13.384993+05:30
Recovery of Online Redo Log: Thread 1 Group 5 Seq 20 Reading mem 0
Mem# 0: +DATA/CDBFDR/LOGFILES/redo05.log
2022-10-30T20:10:15.408399+05:30
FLYDB(3):Recovery created file +DATA/CDBFDR/DATAFILES/FLYDB/newtest01.dbf
FLYDB(3):Successfully added datafile 13 to media recovery
FLYDB(3):Datafile #13: '+DATA/CDBFDR/DATAFILES/FLYDB/newtest01.dbf'
2022-10-30T20:10:41.126778+05:30
Resize operation completed for file# 3, fname +DATA/CDBFDR/DATAFILES/sysaux01.dbf, old size 522240K, new size 532480K
</code></b></pre>
<p>Configration completed , Hope This Helps .</p>
<p>Regards</p>
<p>Sultan Khan</p>
Sultan Khanhttp://www.blogger.com/profile/12933538356533244884noreply@blogger.com0tag:blogger.com,1999:blog-399436389180403563.post-68885996932338706852022-11-07T20:31:00.002+05:302023-04-18T18:21:06.690+05:30Upgrade RAC 12c to 19c using manual method<p><b>Hello Friend's,</b></p>
<p><b>In this post we will discuss about the steps to upgrade Oracle RAC database (2 instance dm01db01 & dmdb1db02) from 12.2.0.1 to 19.16</b></p>
<p><b>So let's get started .</b></p>
<div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvNpwE1fn-Q_qz90NGiRqjYUuW9C1AkCxVqFwxx6VVYtJ9b-FK6rYYCfIOUXzrLBzSa6cs-eFgLf0C_Bqf3hA8yrwZTjRKsZPI_9HoWKEBStvnlXv7hGqIxPVtzq-tnKpDR4ruhbeoV-VKf0FHW4lbpyNS6sQpxOWwSNoXf7pmBMRVfO67PCjEOeQP4A/s1600/Rac_2_node_upgrade.png" style="display: block; padding: 1em 0; text-align: center; clear: right; float: right;"><img alt="Upgrade RAC 12c to 19c using manual method" border="0" data-original-height="380" data-original-width="722" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvNpwE1fn-Q_qz90NGiRqjYUuW9C1AkCxVqFwxx6VVYtJ9b-FK6rYYCfIOUXzrLBzSa6cs-eFgLf0C_Bqf3hA8yrwZTjRKsZPI_9HoWKEBStvnlXv7hGqIxPVtzq-tnKpDR4ruhbeoV-VKf0FHW4lbpyNS6sQpxOWwSNoXf7pmBMRVfO67PCjEOeQP4A/s1600/Rac_2_node_upgrade.png"/></a></div>
<p><b>Below is the enviornment details we will be using in this activity.</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
RAC nodes : dm01db01, dm01db02
DB Name : CDBTRAIN
DB Instances : CDBTRAIN1, CDBTRAIN2
PDB : TRAINDB
Current DB version : 12.2.0.1
DB to be upgraded to version : 19.16
Cluster Storage used : ASM (AFD)
Platform : OEL 7.8
Current DB HOME : /oracle/app/orawork/product/12.2.0.1/db_1
New 12c DB HOME : /oracle/app/orawork/product/19.0.0.0/db_home1
Upgrade Method : Manual
</code></b></pre>
<p><b>1.Install 19c Software with Patch of 19.16 34130714</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[oracle@dm01db01 db_home1]$ ./runInstaller -applyPSU /oracle/34130714 -applyOneOffs /oracle/34130714 -silent -responseFile /home/oracle/db19.rsp -ignorePrereqFailure
Preparing the home to patch...
Applying the patch /oracle/34130714...
Successfully applied the patch.
Applying the patch /oracle/34130714...
Successfully applied the patch.
The log can be found at: /grid/app/gridwork/oraInventory/logs/InstallActions2022-10-27_02-04-08AM/installerPatchActions_2022-10-27_02-04-08AM.log
Launching Oracle Database Setup Wizard...
[WARNING] [INS-13013] Target environment does not meet some mandatory requirements.
CAUSE: Some of the mandatory prerequisites are not met. See logs for details. /grid/app/gridwork/oraInventory/logs/InstallActions2022-10-27_02-04-08AM/installActions2022-10-27_02-04-08AM.log
ACTION: Identify the list of failed prerequisite checks from the log: /grid/app/gridwork/oraInventory/logs/InstallActions2022-10-27_02-04-08AM/installActions2022-10-27_02-04-08AM.log. Then either from the log file or from installation manual find the appropriate configuration to meet the prerequisites and fix it manually.
The response file for this session can be found at:
/oracle/app/orawork/product/19.0.0.0/db_home1/install/response/db_2022-10-27_02-04-08AM.rsp
You can find the log of this install session at:
/grid/app/gridwork/oraInventory/logs/InstallActions2022-10-27_02-04-08AM/installActions2022-10-27_02-04-08AM.log
As a root user, execute the following script(s):
1. /oracle/app/orawork/product/19.0.0.0/db_home1/root.sh
Execute /oracle/app/orawork/product/19.0.0.0/db_home1/root.sh on the following nodes:
[dm01db01, dm01db02]
Successfully Setup Software with warning(s).
</code></b></pre>
<p><b>2.Run root.sh scripts : </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[root@dm01db02 ~]# /oracle/app/orawork/product/19.0.0.0/db_home1/root.sh
Check /oracle/app/orawork/product/19.0.0.0/db_home1/install/root_dm01db02.database.com_2022-10-27_02-45-32-491748899.log for the output of root script
[root@dm01db01 product]# /oracle/app/orawork/product/19.0.0.0/db_home1/root.sh
Check /oracle/app/orawork/product/19.0.0.0/db_home1/install/root_dm01db01.database.com_2022-10-27_02-44-47-854192382.log for the output of root script
</code></b></pre>
<p><b>3.Prechecks of database 12c : </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> set pages 9999 lines 300
col OPEN_MODE for a10
col HOST_NAME for a30
select INST_ID,INSTANCE_NAME, name DB_NAME,HOST_NAME,DATABASE_ROLE,LOG_MODE,OPEN_MODE,version DB_VERSION,LOGINS,to_char(STARTUP_TIME,'DD-MON-YYYY HH24:MI:SS') "DB UP TIME" from v$database,gv$instance;SQL> SQL> SQL>
INST_ID INSTANCE_NAME DB_NAME HOST_NAME DATABASE_ROLE LOG_MODE OPEN_MODE DB_VERSION LOGINS DB UP TIME
---------- ---------------- --------- ------------------------------ ---------------- ------------ ---------- ----------------- ---------- -----------------------------
1 CDBTRAIN1 CDBTRAIN dm01db01.database.com PRIMARY ARCHIVELOG READ WRITE 12.2.0.1.0 ALLOWED 27-OCT-2022 01:32:18
2 CDBTRAIN2 CDBTRAIN dm01db02.database.com PRIMARY ARCHIVELOG READ WRITE 12.2.0.1.0 ALLOWED 27-OCT-2022 01:32:18
SQL> show pdbs
CON_ID CON_NAME OPEN MODE RESTRICTED
---------- ------------------------------ ---------- ----------
2 PDB$SEED READ ONLY NO
3 TRAINDB READ WRITE NO
SQL> select comp_id,status from dba_registry;
COMP_ID STATUS
------------------------------ --------------------------------------------
CATALOG VALID
CATPROC VALID
JAVAVM VALID
XML VALID
CATJAVA VALID
APS VALID
RAC VALID
XDB VALID
OWM VALID
CONTEXT VALID
ORDIM VALID
SDO VALID
XOQ VALID
OLS VALID
DV VALID
15 rows selected.
SQL> select object_name, object_type
from dba_objects
where object_name||object_type in
(select object_name||object_type
from dba_objects
where owner = 'SYS')
and owner = 'SYSTEM'; 2 3 4 5 6 7
OBJECT_NAME OBJECT_TYPE
-------------------------------------------------------------------------------------------------------------------------------- -----------------------
AQ$_SCHEDULES TABLE
AQ$_SCHEDULES_PRIMARY INDEX
SQL> select count(*) from dba_objects where status='INVALID';
COUNT(*)
----------
0
</code></b></pre>
<p><b>4. Time to run the preupgrade tool :</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[oracle@dm01db01 db_1]$ pwd
/oracle/app/orawork/product/12.2.0.1/db_1
[oracle@dm01db01 db_1]$ cd /oracle/app/orawork/product/12.2.0.1/db_1/jdk/bin
[oracle@dm01db01 bin]$ java -jar /oracle/app/orawork/product/19.0.0.0/db_home1/rdbms/admin/preupgrade.jar TERMINAL TEXT
Report generated by Oracle Database Pre-Upgrade Information Tool Version
19.0.0.0.0 Build: 13 on 2022-10-27T02:55:39
Upgrade-To version: 19.0.0.0.0
=======================================
Status of the database prior to upgrade
=======================================
Database Name: CDBTRAIN
Container Name: CDB$ROOT
Container ID: 1
Version: 12.2.0.1.0
DB Patch Level: No Patch Bundle applied
Compatible: 12.2.0
Blocksize: 8192
Platform: Linux x86 64-bit
Timezone File: 26
Database log mode: ARCHIVELOG
Readonly: FALSE
Edition: EE
Oracle Component Upgrade Action Current Status
---------------- -------------- --------------
Oracle Server [to be upgraded] VALID
JServer JAVA Virtual Machine [to be upgraded] VALID
Oracle XDK for Java [to be upgraded] VALID
Real Application Clusters [to be upgraded] VALID
Oracle Workspace Manager [to be upgraded] VALID
OLAP Analytic Workspace [to be upgraded] VALID
Oracle Label Security [to be upgraded] VALID
Oracle Database Vault [to be upgraded] VALID
Oracle Text [to be upgraded] VALID
Oracle XML Database [to be upgraded] VALID
Oracle Java Packages [to be upgraded] VALID
Oracle Multimedia [to be upgraded] VALID
Oracle Spatial [to be upgraded] VALID
Oracle OLAP API [to be upgraded] VALID
==============
BEFORE UPGRADE
==============
REQUIRED ACTIONS
================
None
RECOMMENDED ACTIONS
===================
1. Review and remove any unnecessary HIDDEN/UNDERSCORE parameters.
The database contains the following initialization parameters whose name
begins with an underscore:
_ipddb_enable
Remove hidden parameters before database upgrade unless your application
vendors and/or Oracle Support state differently. Changes will need to be
made in the pfile/spfile.
2. (AUTOFIXUP) Gather statistics on fixed objects prior to the upgrade using
the command:
EXECUTE DBMS_STATS.GATHER_FIXED_OBJECTS_STATS;
None of the fixed object tables have had stats collected.
Gathering statistics on fixed objects, if none have been gathered yet, is
recommended prior to upgrading.
For information on managing optimizer statistics, refer to the 12.2.0.1
Oracle Database SQL Tuning Guide.
INFORMATION ONLY
================
3. Here are ALL the components in this database registry:
Component Current Current Original Previous Component
CID Version Status Version Version Schema
--------- ----------- ----------- ----------- ----------- -----------
APS 12.2.0.1.0 VALID SYS
CATALOG 12.2.0.1.0 VALID SYS
CATJAVA 12.2.0.1.0 VALID SYS
CATPROC 12.2.0.1.0 VALID SYS
CONTEXT 12.2.0.1.0 VALID CTXSYS
DV 12.2.0.1.0 VALID DVSYS
JAVAVM 12.2.0.1.0 VALID SYS
OLS 12.2.0.1.0 VALID LBACSYS
ORDIM 12.2.0.1.0 VALID ORDSYS
OWM 12.2.0.1.0 VALID WMSYS
RAC 12.2.0.1.0 VALID SYS
SDO 12.2.0.1.0 VALID MDSYS
XDB 12.2.0.1.0 VALID XDB
XML 12.2.0.1.0 VALID SYS
XOQ 12.2.0.1.0 VALID OLAPSYS
Review the information before upgrading.
4. To help you keep track of your tablespace allocations, the following
AUTOEXTEND tablespaces are expected to successfully EXTEND during the
upgrade process.
Min Size
Tablespace Size For Upgrade
---------- ---------- -----------
SYSAUX 480 MB 502 MB
SYSTEM 800 MB 912 MB
TEMP 39 MB 150 MB
UNDOTBS1 70 MB 439 MB
Minimum tablespace sizes for upgrade are estimates.
5. No action needed.
Using default parallel upgrade options, this CDB with 2 PDBs will first
upgrade the CDB$ROOT, and then upgrade at most 1 PDBs at a time using 2
parallel processes per PDB.
The number of PDBs upgraded in parallel and the number of parallel
processes per PDB can be adjusted as described in Database Upgrade Guide.
6. Check the Oracle Backup and Recovery User's Guide for information on how
to manage an RMAN recovery catalog schema.
If you are using a version of the recovery catalog schema that is older
than that required by the RMAN client version, then you must upgrade the
catalog schema.
It is good practice to have the catalog schema the same or higher version
than the RMAN client version you are using.
7. Here is a count of invalid objects by Oracle-maintained users:
Oracle-Maintained User Name Number of INVALID Objects
--------------------------- -------------------------
None None
Review the information before upgrading.
8. Here is a count of invalid objects by Application users:
Application User Name Number of INVALID Objects
--------------------------- -------------------------
None None
Review the information before upgrading.
ORACLE GENERATED FIXUP SCRIPT
=============================
All of the issues in database CDBTRAIN container CDB$ROOT
which are identified above as BEFORE UPGRADE "(AUTOFIXUP)" can be resolved by
executing the following from within the container
SQL>@/oracle/app/orawork/cfgtoollogs/CDBTRAIN/preupgrade/preupgrade_fixups.s
ql
=============
AFTER UPGRADE
=============
REQUIRED ACTIONS
================
None
RECOMMENDED ACTIONS
===================
9. Upgrade the database time zone file using the DBMS_DST package.
The database is using time zone file version 26 and the target 19 release
ships with time zone file version 32.
Oracle recommends upgrading to the desired (latest) version of the time
zone file. For more information, refer to "Upgrading the Time Zone File
and Timestamp with Time Zone Data" in the 19 Oracle Database
Globalization Support Guide.
10. (AUTOFIXUP) Gather dictionary statistics after the upgrade using the
command:
EXECUTE DBMS_STATS.GATHER_DICTIONARY_STATS;
Oracle recommends gathering dictionary statistics after upgrade.
Dictionary statistics provide essential information to the Oracle
optimizer to help it find efficient SQL execution plans. After a database
upgrade, statistics need to be re-gathered as there can now be tables
that have significantly changed during the upgrade or new tables that do
not have statistics gathered yet.
11. Gather statistics on fixed objects after the upgrade and when there is a
representative workload on the system using the command:
EXECUTE DBMS_STATS.GATHER_FIXED_OBJECTS_STATS;
This recommendation is given for all preupgrade runs.
Fixed object statistics provide essential information to the Oracle
optimizer to help it find efficient SQL execution plans. Those
statistics are specific to the Oracle Database release that generates
them, and can be stale upon database upgrade.
For information on managing optimizer statistics, refer to the 12.2.0.1
Oracle Database SQL Tuning Guide.
ORACLE GENERATED FIXUP SCRIPT
=============================
All of the issues in database CDBTRAIN container CDB$ROOT
which are identified above as AFTER UPGRADE "(AUTOFIXUP)" can be resolved by
executing the following from within the container
SQL>@/oracle/app/orawork/cfgtoollogs/CDBTRAIN/preupgrade/postupgrade_fixups.
sql
Report generated by Oracle Database Pre-Upgrade Information Tool Version
19.0.0.0.0 Build: 13 on 2022-10-27T03:01:23
Upgrade-To version: 19.0.0.0.0
=======================================
Status of the database prior to upgrade
=======================================
Database Name: CDBTRAIN
Container Name: PDB$SEED
Container ID: 2
Version: 12.2.0.1.0
DB Patch Level: No Patch Bundle applied
Compatible: 12.2.0
Blocksize: 8192
Platform: Linux x86 64-bit
Timezone File: 26
Database log mode: ARCHIVELOG
Readonly: TRUE
Edition: EE
Oracle Component Upgrade Action Current Status
---------------- -------------- --------------
Oracle Server [to be upgraded] VALID
JServer JAVA Virtual Machine [to be upgraded] VALID
Oracle XDK for Java [to be upgraded] VALID
Real Application Clusters [to be upgraded] VALID
Oracle Workspace Manager [to be upgraded] VALID
OLAP Analytic Workspace [to be upgraded] VALID
Oracle Label Security [to be upgraded] VALID
Oracle Database Vault [to be upgraded] VALID
Oracle Text [to be upgraded] VALID
Oracle XML Database [to be upgraded] VALID
Oracle Java Packages [to be upgraded] VALID
Oracle Multimedia [to be upgraded] VALID
Oracle Spatial [to be upgraded] VALID
Oracle OLAP API [to be upgraded] VALID
==============
BEFORE UPGRADE
==============
REQUIRED ACTIONS
================
None
RECOMMENDED ACTIONS
===================
1. Review and remove any unnecessary HIDDEN/UNDERSCORE parameters.
The database contains the following initialization parameters whose name
begins with an underscore:
_ipddb_enable
Remove hidden parameters before database upgrade unless your application
vendors and/or Oracle Support state differently. Changes will need to be
made in the pfile/spfile.
2. (AUTOFIXUP) Gather statistics on fixed objects prior to the upgrade using
the command:
EXECUTE DBMS_STATS.GATHER_FIXED_OBJECTS_STATS;
None of the fixed object tables have had stats collected.
Gathering statistics on fixed objects, if none have been gathered yet, is
recommended prior to upgrading.
For information on managing optimizer statistics, refer to the 12.2.0.1
Oracle Database SQL Tuning Guide.
INFORMATION ONLY
================
3. Here are ALL the components in this database registry:
Component Current Current Original Previous Component
CID Version Status Version Version Schema
--------- ----------- ----------- ----------- ----------- -----------
APS 12.2.0.1.0 VALID SYS
CATALOG 12.2.0.1.0 VALID SYS
CATJAVA 12.2.0.1.0 VALID SYS
CATPROC 12.2.0.1.0 VALID SYS
CONTEXT 12.2.0.1.0 VALID CTXSYS
DV 12.2.0.1.0 VALID DVSYS
JAVAVM 12.2.0.1.0 VALID SYS
OLS 12.2.0.1.0 VALID LBACSYS
ORDIM 12.2.0.1.0 VALID ORDSYS
OWM 12.2.0.1.0 VALID WMSYS
RAC 12.2.0.1.0 VALID SYS
SDO 12.2.0.1.0 VALID MDSYS
XDB 12.2.0.1.0 VALID XDB
XML 12.2.0.1.0 VALID SYS
XOQ 12.2.0.1.0 VALID OLAPSYS
Review the information before upgrading.
4. To help you keep track of your tablespace allocations, the following
AUTOEXTEND tablespaces are expected to successfully EXTEND during the
upgrade process.
Min Size
Tablespace Size For Upgrade
---------- ---------- -----------
SYSAUX 350 MB 500 MB
SYSTEM 250 MB 360 MB
TEMP 64 MB 150 MB
UNDOTBS1 100 MB 439 MB
Minimum tablespace sizes for upgrade are estimates.
5. Here is a count of invalid objects by Oracle-maintained users:
Oracle-Maintained User Name Number of INVALID Objects
--------------------------- -------------------------
None None
Review the information before upgrading.
6. Here is a count of invalid objects by Application users:
Application User Name Number of INVALID Objects
--------------------------- -------------------------
None None
Review the information before upgrading.
ORACLE GENERATED FIXUP SCRIPT
=============================
All of the issues in database CDBTRAIN container PDB$SEED
which are identified above as BEFORE UPGRADE "(AUTOFIXUP)" can be resolved by
executing the following from within the container
SQL>@/oracle/app/orawork/cfgtoollogs/CDBTRAIN/preupgrade/preupgrade_fixups.s
ql
=============
AFTER UPGRADE
=============
REQUIRED ACTIONS
================
None
RECOMMENDED ACTIONS
===================
7. Upgrade the database time zone file using the DBMS_DST package.
The database is using time zone file version 26 and the target 19 release
ships with time zone file version 32.
Oracle recommends upgrading to the desired (latest) version of the time
zone file. For more information, refer to "Upgrading the Time Zone File
and Timestamp with Time Zone Data" in the 19 Oracle Database
Globalization Support Guide.
8. (AUTOFIXUP) Gather dictionary statistics after the upgrade using the
command:
EXECUTE DBMS_STATS.GATHER_DICTIONARY_STATS;
Oracle recommends gathering dictionary statistics after upgrade.
Dictionary statistics provide essential information to the Oracle
optimizer to help it find efficient SQL execution plans. After a database
upgrade, statistics need to be re-gathered as there can now be tables
that have significantly changed during the upgrade or new tables that do
not have statistics gathered yet.
9. Gather statistics on fixed objects after the upgrade and when there is a
representative workload on the system using the command:
EXECUTE DBMS_STATS.GATHER_FIXED_OBJECTS_STATS;
This recommendation is given for all preupgrade runs.
Fixed object statistics provide essential information to the Oracle
optimizer to help it find efficient SQL execution plans. Those
statistics are specific to the Oracle Database release that generates
them, and can be stale upon database upgrade.
For information on managing optimizer statistics, refer to the 12.2.0.1
Oracle Database SQL Tuning Guide.
ORACLE GENERATED FIXUP SCRIPT
=============================
All of the issues in database CDBTRAIN container PDB$SEED
which are identified above as AFTER UPGRADE "(AUTOFIXUP)" can be resolved by
executing the following from within the container
SQL>@/oracle/app/orawork/cfgtoollogs/CDBTRAIN/preupgrade/postupgrade_fixups.
sql
Report generated by Oracle Database Pre-Upgrade Information Tool Version
19.0.0.0.0 Build: 13 on 2022-10-27T03:01:26
Upgrade-To version: 19.0.0.0.0
=======================================
Status of the database prior to upgrade
=======================================
Database Name: CDBTRAIN
Container Name: TRAINDB
Container ID: 3
Version: 12.2.0.1.0
DB Patch Level: No Patch Bundle applied
Compatible: 12.2.0
Blocksize: 8192
Platform: Linux x86 64-bit
Timezone File: 26
Database log mode: ARCHIVELOG
Readonly: FALSE
Edition: EE
Oracle Component Upgrade Action Current Status
---------------- -------------- --------------
Oracle Server [to be upgraded] VALID
JServer JAVA Virtual Machine [to be upgraded] VALID
Oracle XDK for Java [to be upgraded] VALID
Real Application Clusters [to be upgraded] VALID
Oracle Workspace Manager [to be upgraded] VALID
OLAP Analytic Workspace [to be upgraded] VALID
Oracle Label Security [to be upgraded] VALID
Oracle Database Vault [to be upgraded] VALID
Oracle Text [to be upgraded] VALID
Oracle XML Database [to be upgraded] VALID
Oracle Java Packages [to be upgraded] VALID
Oracle Multimedia [to be upgraded] VALID
Oracle Spatial [to be upgraded] VALID
Oracle OLAP API [to be upgraded] VALID
==============
BEFORE UPGRADE
==============
REQUIRED ACTIONS
================
None
RECOMMENDED ACTIONS
===================
1. Review and remove any unnecessary HIDDEN/UNDERSCORE parameters.
The database contains the following initialization parameters whose name
begins with an underscore:
_ipddb_enable
Remove hidden parameters before database upgrade unless your application
vendors and/or Oracle Support state differently. Changes will need to be
made in the pfile/spfile.
2. (AUTOFIXUP) Gather statistics on fixed objects prior to the upgrade using
the command:
EXECUTE DBMS_STATS.GATHER_FIXED_OBJECTS_STATS;
None of the fixed object tables have had stats collected.
Gathering statistics on fixed objects, if none have been gathered yet, is
recommended prior to upgrading.
For information on managing optimizer statistics, refer to the 12.2.0.1
Oracle Database SQL Tuning Guide.
INFORMATION ONLY
================
3. Here are ALL the components in this database registry:
Component Current Current Original Previous Component
CID Version Status Version Version Schema
--------- ----------- ----------- ----------- ----------- -----------
APS 12.2.0.1.0 VALID SYS
CATALOG 12.2.0.1.0 VALID SYS
CATJAVA 12.2.0.1.0 VALID SYS
CATPROC 12.2.0.1.0 VALID SYS
CONTEXT 12.2.0.1.0 VALID CTXSYS
DV 12.2.0.1.0 VALID DVSYS
JAVAVM 12.2.0.1.0 VALID SYS
OLS 12.2.0.1.0 VALID LBACSYS
ORDIM 12.2.0.1.0 VALID ORDSYS
OWM 12.2.0.1.0 VALID WMSYS
RAC 12.2.0.1.0 VALID SYS
SDO 12.2.0.1.0 VALID MDSYS
XDB 12.2.0.1.0 VALID XDB
XML 12.2.0.1.0 VALID SYS
XOQ 12.2.0.1.0 VALID OLAPSYS
Review the information before upgrading.
4. To help you keep track of your tablespace allocations, the following
AUTOEXTEND tablespaces are expected to successfully EXTEND during the
upgrade process.
Min Size
Tablespace Size For Upgrade
---------- ---------- -----------
SYSAUX 350 MB 500 MB
SYSTEM 250 MB 361 MB
TEMP 64 MB 150 MB
UNDO_2 100 MB 439 MB
Minimum tablespace sizes for upgrade are estimates.
5. Here is a count of invalid objects by Oracle-maintained users:
Oracle-Maintained User Name Number of INVALID Objects
--------------------------- -------------------------
None None
Review the information before upgrading.
6. Here is a count of invalid objects by Application users:
Application User Name Number of INVALID Objects
--------------------------- -------------------------
None None
Review the information before upgrading.
ORACLE GENERATED FIXUP SCRIPT
=============================
All of the issues in database CDBTRAIN container TRAINDB
which are identified above as BEFORE UPGRADE "(AUTOFIXUP)" can be resolved by
executing the following from within the container
SQL>@/oracle/app/orawork/cfgtoollogs/CDBTRAIN/preupgrade/preupgrade_fixups.s
ql
=============
AFTER UPGRADE
=============
REQUIRED ACTIONS
================
None
RECOMMENDED ACTIONS
===================
7. Upgrade the database time zone file using the DBMS_DST package.
The database is using time zone file version 26 and the target 19 release
ships with time zone file version 32.
Oracle recommends upgrading to the desired (latest) version of the time
zone file. For more information, refer to "Upgrading the Time Zone File
and Timestamp with Time Zone Data" in the 19 Oracle Database
Globalization Support Guide.
8. (AUTOFIXUP) Gather dictionary statistics after the upgrade using the
command:
EXECUTE DBMS_STATS.GATHER_DICTIONARY_STATS;
Oracle recommends gathering dictionary statistics after upgrade.
Dictionary statistics provide essential information to the Oracle
optimizer to help it find efficient SQL execution plans. After a database
upgrade, statistics need to be re-gathered as there can now be tables
that have significantly changed during the upgrade or new tables that do
not have statistics gathered yet.
9. Gather statistics on fixed objects after the upgrade and when there is a
representative workload on the system using the command:
EXECUTE DBMS_STATS.GATHER_FIXED_OBJECTS_STATS;
This recommendation is given for all preupgrade runs.
Fixed object statistics provide essential information to the Oracle
optimizer to help it find efficient SQL execution plans. Those
statistics are specific to the Oracle Database release that generates
them, and can be stale upon database upgrade.
For information on managing optimizer statistics, refer to the 12.2.0.1
Oracle Database SQL Tuning Guide.
ORACLE GENERATED FIXUP SCRIPT
=============================
All of the issues in database CDBTRAIN container TRAINDB
which are identified above as AFTER UPGRADE "(AUTOFIXUP)" can be resolved by
executing the following from within the container
SQL>@/oracle/app/orawork/cfgtoollogs/CDBTRAIN/preupgrade/postupgrade_fixups.
sql
==================
PREUPGRADE SUMMARY
==================
/oracle/app/orawork/cfgtoollogs/CDBTRAIN/preupgrade/preupgrade.log
/oracle/app/orawork/cfgtoollogs/CDBTRAIN/preupgrade/preupgrade_fixups.sql
/oracle/app/orawork/cfgtoollogs/CDBTRAIN/preupgrade/postupgrade_fixups.sql
Execute fixup scripts across the entire CDB:
Before upgrade:
1. Execute preupgrade fixups with the below command
$ORACLE_HOME/perl/bin/perl -I$ORACLE_HOME/perl/lib -I$ORACLE_HOME/rdbms/admin $ORACLE_HOME/rdbms/admin/catcon.pl -l /oracle/app/orawork/cfgtoollogs/CDBTRAIN/preupgrade/ -b preup_CDBTRAIN /oracle/app/orawork/cfgtoollogs/CDBTRAIN/preupgrade/preupgrade_fixups.sql
2. Review logs under /oracle/app/orawork/cfgtoollogs/CDBTRAIN/preupgrade/
After the upgrade:
1. Execute postupgrade fixups with the below command
$ORACLE_HOME/perl/bin/perl -I$ORACLE_HOME/perl/lib -I$ORACLE_HOME/rdbms/admin $ORACLE_HOME/rdbms/admin/catcon.pl -l /oracle/app/orawork/cfgtoollogs/CDBTRAIN/preupgrade/ -b postup_CDBTRAIN /oracle/app/orawork/cfgtoollogs/CDBTRAIN/preupgrade/postupgrade_fixups.sql
2. Review logs under /oracle/app/orawork/cfgtoollogs/CDBTRAIN/preupgrade/
Preupgrade complete: 2022-10-27T03:01:41
</code></b></pre>
<p><b>5.Run preupgrade fixup.sql
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[oracle@dm01db01 bin]$ $ORACLE_HOME/perl/bin/perl -I$ORACLE_HOME/perl/lib -I$ORACLE_HOME/rdbms/admin $ORACLE_HOME/rdbms/admin/catcon.pl -l /oracle/app/orawork/cfgtoollogs/CDBTRAIN/preupgrade/ -b preup_CDBTRAIN /oracle/app/orawork/cfgtoollogs/CDBTRAIN/preupgrade/preupgrade_fixups.sql
catcon: ALL catcon-related output will be written to [/oracle/app/orawork/cfgtoollogs/CDBTRAIN/preupgrade//preup_CDBTRAIN_catcon_75212.lst]
catcon: See [/oracle/app/orawork/cfgtoollogs/CDBTRAIN/preupgrade//preup_CDBTRAIN*.log] files for output generated by scripts
catcon: See [/oracle/app/orawork/cfgtoollogs/CDBTRAIN/preupgrade//preup_CDBTRAIN_*.lst] files for spool files, if any
catcon.pl: completed successfully
</code></b></pre>
<p><b>6. Before upgrading Oracle Database, you must wait until all materialized views have completed refreshing.
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> SELECT o.name FROM sys.obj$ o, sys.user$ u, sys.sum$ s WHERE o.type# = 42 AND bitand(s.mflags, 8) =8;
no rows selected
SQL>
SQL> declare
list_failures integer(3) :=0;
begin
DBMS_MVIEW.REFRESH_ALL_MVIEWS(list_failures,'C','', TRUE, FALSE);
end;
/ 2 3 4 5 6
PL/SQL procedure successfully completed.
</code></b></pre>
<p><b>Prechecks continues 12c database : </b></p>
<p><b>7.Create Restore_point for flashback the incase upgrade fails :</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> select flashback_on from v$database;
FLASHBACK_ON
------------------
NO
SQL> show parameter compatible
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
compatible string 12.2.0
noncdb_compatible boolean FALSE
SQL>
SQL>
SQL> show parameter recovery
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
db_recovery_file_dest string +RECOC1
db_recovery_file_dest_size big integer 13380M
recovery_parallelism integer 0
remote_recovery_file_dest string
SQL>
SQL>
SQL> select * from V$restore_point;
no rows selected
SQL>
SQL> create restore point FB_UPGRADE guarantee flashback database;
Restore point created.
SQL> col name for a20
col GUARANTEE_FLASHBACK_DATABASE for a10
col TIME for a60
set lines 190
select NAME,GUARANTEE_FLASHBACK_DATABASE,TIME from V$restore_point;SQL> SQL> SQL> SQL>
NAME GUARANTEE_ TIME
-------------------- ---------- ------------------------------------------------------------
FB_UPGRADE YES 26-OCT-22 09.16.11.000000000 PM
</code></b></pre>
<p><b>8. Check the timezone version:</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> SELECT version FROM v$timezone_file;
VERSION
----------
26
</code></b></pre>
<p><b>9.Disable dbms_schduler jobs:</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> set pagesize 2000
set lines 2000
set long 99999
select owner,JOB_NAME,ENABLED,state from dba_scheduler_jobs;SQL> SQL> SQL>
OWNER JOB_NAME ENABL STATE
------------------------- ---------------------------------------- ----- ---------------
SYS PURGE_LOG TRUE SCHEDULED
SYS ORA$AUTOTASK_CLEAN TRUE SCHEDULED
SYS HM_CREATE_OFFLINE_DICTIONARY FALSE DISABLED
SYS DRA_REEVALUATE_OPEN_FAILURES TRUE SCHEDULED
SYS ORA$PREPLUGIN_BACKUP_JOB FALSE DISABLED
SYS BSLN_MAINTAIN_STATS_JOB TRUE SCHEDULED
SYS FGR$AUTOPURGE_JOB FALSE DISABLED
SYS RSE$CLEAN_RECOVERABLE_SCRIPT TRUE SCHEDULED
SYS SM$CLEAN_AUTO_SPLIT_MERGE TRUE SCHEDULED
SYS LOAD_OPATCH_INVENTORY FALSE DISABLED
SYS LOAD_OPATCH_INVENTORY_2 FALSE DISABLED
SYS LOAD_OPATCH_INVENTORY_1 FALSE DISABLED
ORACLE_OCM MGMT_CONFIG_JOB TRUE SCHEDULED
ORACLE_OCM MGMT_STATS_CONFIG_JOB TRUE SCHEDULED
SYS FILE_WATCHER FALSE DISABLED
SYS PMO_DEFERRED_GIDX_MAINT_JOB TRUE SCHEDULED
SYS CLEANUP_NON_EXIST_OBJ TRUE SCHEDULED
SYS CLEANUP_ONLINE_IND_BUILD TRUE SCHEDULED
SYS CLEANUP_TAB_IOT_PMO TRUE SCHEDULED
SYS CLEANUP_TRANSIENT_TYPE TRUE SCHEDULED
SYS CLEANUP_TRANSIENT_PKG TRUE SCHEDULED
SYS CLEANUP_ONLINE_PMO TRUE SCHEDULED
SYS FILE_SIZE_UPD TRUE SCHEDULED
SYS XMLDB_NFS_CLEANUP_JOB FALSE DISABLED
24 rows selected.
--- Disable the scheduled jobs by using below command
SQL> execute dbms_scheduler.disable('DRA_REEVALUATE_OPEN_FAILURES);
</code></b></pre>
<p><b>10.Verify system and sys default tablespace.(Both should be system tablespace)</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> col username for a30
SQL> SELECT username, default_tablespace
FROM dba_users
WHERE username in ('SYS','SYSTEM'); 2 3
USERNAME DEFAULT_TABLESPACE
------------------------------ ------------------------------
SYS SYSTEM
SYSTEM SYSTEM
</code></b></pre>
<p><b>11.Check whether database has any externally authenticated SSL users</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> SELECT name FROM sys.user$
WHERE ext_username IS NOT NULL
AND password = 'GLOBAL'; 2 3
no rows selected
</code></b></pre>
<p><b>12.Review and Remove any unnecessary hidden/underscore parameters</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> SELECT name, value from SYS.V$PARAMETER WHERE name LIKE '\_%' ESCAPE '\' order by name;
NAME
--------------------
VALUE
-------------------------
_ipddb_enable
TRUE
</code></b></pre>
<p><b>13.Stop database from 12.2 Home and remove database from 12.2 oracle restart</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[oracle@dm01db01 bin]$ srvctl status database -d CDBTRAIN
Instance CDBTRAIN1 is running on node dm01db01
Instance CDBTRAIN2 is running on node dm01db02
[oracle@dm01db01 bin]$
[oracle@dm01db01 bin]$ srvctl stop database -d CDBTRAIN
[oracle@dm01db01 bin]$
[oracle@dm01db01 bin]$ srvctl remove database -d CDBTRAIN -f
</code></b></pre>
-----------------------------------------19c Steps ENV Steps------------------------------------------
<p><b>14.Set 19c Env As below</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
export ORACLE_BASE=/oracle/app/orawork
export ORALCE_HOME=/oracle/app/orawork/product/19.0.0/dbhome_1
export PATH=/oracle/app/orawork/product/19.0.0/dbhome_1/bin:$PATH
spfile : +DATAC1/CDBTRAIN/PARAMETERFILE/spfile.270.1119144227
password file : +DATAC1/CDBTRAIN/PASSWORD/pwdcdbtrain.258.1119142913
srvctl add database -d CDBTRAIN -oh /oracle/app/orawork/product/19.0.0/dbhome_1 -spfile +DATAC1/CDBTRAIN/PARAMETERFILE/spfile.270.1119144227 -pwfile +DATAC1/CDBTRAIN/PASSWORD/pwdcdbtrain.258.1119142913
</code></b></pre>
<p><b>15. Create pfile and edit parameters given below :</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
1. instance_number
2. thread
3. 2nd instance's undo tablespace.
4. cluster_database
Do as given below :
[oracle@dm01db01 bin]$ cat /oracle/CDBTRAIN.ora | grep ^#
#*.cluster_database=true
#CDBTRAIN2.instance_number=2
#CDBTRAIN1.instance_number=1
#CDBTRAIN2.thread=2
#CDBTRAIN1.thread=1
#CDBTRAIN2.undo_tablespace='UNDOTBS2'
</code></b></pre>
<p><b>16. Start the database from 1 instance with the pfile created in above step : </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[oracle@dm01db01 db_home1]$ . oraenv
ORACLE_SID = [CDBTRAIN1] ?
The Oracle base remains unchanged with value /oracle/app/orawork
[oracle@dm01db01 db_home1]$
[oracle@dm01db01 db_home1]$
[oracle@dm01db01 db_home1]$ echo $ORACLE_HOME
/oracle/app/orawork/product/19.0.0.0/db_home1
[oracle@dm01db01 db_home1]$
[oracle@dm01db01 db_home1]$
[oracle@dm01db01 db_home1]$ sqlplus / as sysdba
SQL*Plus: Release 19.0.0.0.0 - Production on Thu Oct 27 03:30:20 2022
Version 19.16.0.0.0
Copyright (c) 1982, 2022, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup upgrade pfile='/oracle/CDBTRAIN.ora';
ORACLE instance started.
Total System Global Area 1073738488 bytes
Fixed Size 9143032 bytes
Variable Size 557842432 bytes
Database Buffers 503316480 bytes
Redo Buffers 3436544 bytes
Database mounted.
Database opened.
SQL> set pages 9999 lines 300
col OPEN_MODE for a10
SQL> SQL> col HOST_NAME for a30
select INST_ID,INSTANCE_NAME, name DB_NAME,HOST_NAME,DATABASE_ROLE,LOG_MODE,OPEN_MODE,version DB_VERSION,LOGINS,to_char(STARTUP_TIME,'DD-MON-YYYY HH24:MI:SS') "DB UP TIME" from v$database,gv$instance;SQL>
INST_ID INSTANCE_NAME DB_NAME HOST_NAME DATABASE_ROLE LOG_MODE OPEN_MODE DB_VERSION LOGINS DB UP TIME
---------- ---------------- --------- ------------------------------ ---------------- ------------ ---------- ----------------- ---------- -----------------------------
1 CDBTRAIN1 CDBTRAIN dm01db01.database.com PRIMARY ARCHIVELOG READ WRITE 19.0.0.0.0 RESTRICTED 27-OCT-2022 03:30:38
</code></b></pre>
<p><b>17. Start PDB in migrate / Upgrade options :</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> show pdbs
CON_ID CON_NAME OPEN MODE RESTRICTED
---------- ------------------------------ ---------- ----------
2 PDB$SEED MIGRATE YES
3 TRAINDB MOUNTED
SQL>
SQL>
SQL> select name,open_mode,cdb,version,status from v$database,v$instance;
NAME OPEN_MODE CDB VERSION STATUS
--------- ---------- --- ----------------- ------------
CDBTRAIN READ WRITE YES 19.0.0.0.0 OPEN MIGRATE
SQL>
SQL> ALTER PLUGGABLE DATABASE TRAINDB OPEN UPGRADE;
Pluggable database altered.
SQL> show pdbs
CON_ID CON_NAME OPEN MODE RESTRICTED
---------- ------------------------------ ---------- ----------
2 PDB$SEED MIGRATE YES
3 TRAINDB MIGRATE YES
</code></b></pre>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
old methold with long command :)
nohup /oracle/app/orawork/product/19.0.0/dbhome_1/perl/bin/perl catctl.pl -l /oracle/app/orawork/upgradelogs -n 4 catupgrd.sql &
--Or--
New Short method
./dbupgrade
</code></b></pre>
<p><b>18.Actual Upgrade to 19c Start Here (Start database in upgrade mode)</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[oracle@dm01db01 db_1]$ cd /oracle/app/orawork/product/19.0.0/dbhome_1/bin/
[oracle@dm01db01 bin]$
[oracle@dm01db01 bin]$ pwd
/oracle/app/orawork/product/19.0.0/dbhome_1/bin
[oracle@dm01db01 bin]$ ls -ltr dbupgrade
-rwxr-x--- 1 oracle oinstall 3136 Apr 17 2019 dbupgrade
[oracle@dm01db01 ~]$ sqlplus / as sysdba
SQL*Plus: Release 19.0.0.0.0 - Production on Thu Oct 27 00:28:00 2022
Version 19.16.0.0.0
Copyright (c) 1982, 2022, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup upgrade pfile='/oracle/initCDBATM.ora'
ORACLE instance started.
Total System Global Area 1073738488 bytes
Fixed Size 9143032 bytes
Variable Size 520093696 bytes
Database Buffers 541065216 bytes
Redo Buffers 3436544 bytes
Database mounted.
Database opened.
SQL>
SQL> set pages 9999 lines 300
col OPEN_MODE for a10
col HOST_NAME for a30
select name DB_NAME,HOST_NAME,DATABASE_ROLE,OPEN_MODE,log_mode,version DB_VERSION,LOGINS,to_char(STARTUP_TIME,'DD-MON-YYYY HH24:MI:SS') "DB UP TIME" from v$database,v$instance;SQL> SQL> SQL>
DB_NAME HOST_NAME DATABASE_ROLE OPEN_MODE LOG_MODE DB_VERSION LOGINS DB UP TIME
--------- ------------------------------ ---------------- ---------- ------------ ----------------- ---------- -----------------------------
CDBATM dm01db01.database.com PRIMARY READ WRITE ARCHIVELOG 19.0.0.0.0 RESTRICTED 27-OCT-2022 00:28:09
</code></b></pre>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
In NONCDB script runs only once but IN CDB env it depends on No or pdbs including Seed pdb, In my case 1 has 1 PDB so the total executions are 3
1.CDB$ROOT
2.PDB$SEED
3.TRAINDB
All things will be done automatically no manual intervention needed after running ./dbupgrade
</code></b></pre>
<p><b>19. Start with the upgrade </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[oracle@dm01db01 bin]$ ./dbupgrade
Argument list for [/oracle/app/orawork/product/19.0.0.0/db_home1/rdbms/admin/catctl.pl]
For Oracle internal use only A = 0
Run in c = 0
Do not run in C = 0
Input Directory d = 0
Echo OFF e = 1
Simulate E = 0
Forced cleanup F = 0
Log Id i = 0
Child Process I = 0
Log Dir l = 0
Priority List Name L = 0
Upgrade Mode active M = 0
SQL Process Count n = 0
SQL PDB Process Count N = 0
Open Mode Normal o = 0
Start Phase p = 0
End Phase P = 0
Reverse Order r = 0
AutoUpgrade Resume R = 0
Script s = 0
Serial Run S = 0
RO User Tablespaces T = 0
Display Phases y = 0
Debug catcon.pm z = 0
Debug catctl.pl Z = 0
catctl.pl VERSION: [19.0.0.0.0]
STATUS: [Production]
BUILD: [RDBMS_19.16.0.0.0DBRU_LINUX.X64_220701]
/oracle/app/orawork/product/19.0.0.0/db_home1/rdbms/admin/orahome = [/oracle/app/orawork/product/19.0.0.0/db_home1]
/oracle/app/orawork/product/19.0.0.0/db_home1/bin/orabasehome = [/oracle/app/orawork/product/19.0.0.0/db_home1]
catctlGetOraBaseLogDir = [/oracle/app/orawork/product/19.0.0.0/db_home1]
Analyzing file /oracle/app/orawork/product/19.0.0.0/db_home1/rdbms/admin/catupgrd.sql
Log file directory = [/tmp/cfgtoollogs/upgrade20221027033305]
catcon::set_log_file_base_path: ALL catcon-related output will be written to [/tmp/cfgtoollogs/upgrade20221027033305/catupgrd_catcon_93650.lst]
catcon::set_log_file_base_path: catcon: See [/tmp/cfgtoollogs/upgrade20221027033305/catupgrd*.log] files for output generated by scripts
catcon::set_log_file_base_path: catcon: See [/tmp/cfgtoollogs/upgrade20221027033305/catupgrd_*.lst] files for spool files, if any
Number of Cpus = 1
Database Name = CDBTRAIN
DataBase Version = 12.2.0.1.0
catcon::set_log_file_base_path: ALL catcon-related output will be written to [/oracle/app/orawork/product/19.0.0.0/db_home1/cfgtoollogs/CDBTRAIN/upgrade20221027033307/catupgrdcdbroot_catcon_93650.lst]
catcon::set_log_file_base_path: catcon: See [/oracle/app/orawork/product/19.0.0.0/db_home1/cfgtoollogs/CDBTRAIN/upgrade20221027033307/catupgrdcdbroot*.log] files for output generated by scripts
catcon::set_log_file_base_path: catcon: See [/oracle/app/orawork/product/19.0.0.0/db_home1/cfgtoollogs/CDBTRAIN/upgrade20221027033307/catupgrdcdbroot_*.lst] files for spool files, if any
Log file directory = [/oracle/app/orawork/product/19.0.0.0/db_home1/cfgtoollogs/CDBTRAIN/upgrade20221027033307]
PDB Parallel SQL Process Count = [2] is higher or equal to CPU Count = [1]
Concurrent PDB Upgrades defaulting to CPU Count [1]
Parallel SQL Process Count (PDB) = 2
Parallel SQL Process Count (CDB$ROOT) = 4
Concurrent PDB Upgrades = 1
Generated PDB Inclusion:[PDB$SEED TRAINDB]
Components in [CDB$ROOT]
Installed [APS CATALOG CATJAVA CATPROC CONTEXT DV JAVAVM OLS ORDIM OWM RAC SDO XDB XML XOQ]
Not Installed [APEX EM MGW ODM WK]
DataBase Version = 12.2.0.1.0
------------------------------------------------------
Phases [0-107] Start Time:[2022_10_27 03:33:10]
Container Lists Inclusion:[CDB$ROOT] Exclusion:[NONE]
------------------------------------------------------
*********** Executing Change Scripts ***********
Serial Phase #:0 [CDB$ROOT] Files:1 Time: 41s
*************** Catalog Core SQL ***************
Serial Phase #:1 [CDB$ROOT] Files:5 Time: 94s
Restart Phase #:2 [CDB$ROOT] Files:1 Time: 1s
*********** Catalog Tables and Views ***********
Parallel Phase #:3 [CDB$ROOT] Files:19 Time: 89s
Restart Phase #:4 [CDB$ROOT] Files:1 Time: 1s
************* Catalog Final Scripts ************
Serial Phase #:5 [CDB$ROOT] Files:7 Time: 31s
***************** Catproc Start ****************
Serial Phase #:6 [CDB$ROOT] Files:1 Time: 16s
***************** Catproc Types ****************
Serial Phase #:7 [CDB$ROOT] Files:2 Time: 16s
Restart Phase #:8 [CDB$ROOT] Files:1 Time: 1s
**************** Catproc Tables ****************
Parallel Phase #:9 [CDB$ROOT] Files:70 Time: 77s
Restart Phase #:10 [CDB$ROOT] Files:1 Time: 0s
************* Catproc Package Specs ************
Serial Phase #:11 [CDB$ROOT] Files:1 Time: 90s
Restart Phase #:12 [CDB$ROOT] Files:1 Time: 1s
************** Catproc Procedures **************
Parallel Phase #:13 [CDB$ROOT] Files:95 Time: 28s
Restart Phase #:14 [CDB$ROOT] Files:1 Time: 1s
Parallel Phase #:15 [CDB$ROOT] Files:122 Time: 55s
Restart Phase #:16 [CDB$ROOT] Files:1 Time: 0s
Serial Phase #:17 [CDB$ROOT] Files:25 Time: 5s
Restart Phase #:18 [CDB$ROOT] Files:1 Time: 0s
***************** Catproc Views ****************
Parallel Phase #:19 [CDB$ROOT] Files:32 Time: 43s
Restart Phase #:20 [CDB$ROOT] Files:1 Time: 1s
Serial Phase #:21 [CDB$ROOT] Files:3 Time: 15s
Restart Phase #:22 [CDB$ROOT] Files:1 Time: 0s
Parallel Phase #:23 [CDB$ROOT] Files:25 Time: 375s
Restart Phase #:24 [CDB$ROOT] Files:1 Time: 0s
Parallel Phase #:25 [CDB$ROOT] Files:12 Time: 213s
Restart Phase #:26 [CDB$ROOT] Files:1 Time: 1s
Serial Phase #:27 [CDB$ROOT] Files:1 Time: 0s
Serial Phase #:28 [CDB$ROOT] Files:4 Time: 4s
Serial Phase #:29 [CDB$ROOT] Files:1 Time: 0s
Restart Phase #:30 [CDB$ROOT] Files:1 Time: 0s
*************** Catproc CDB Views **************
Serial Phase #:31 [CDB$ROOT] Files:1 Time: 1s
Restart Phase #:32 [CDB$ROOT] Files:1 Time: 0s
Serial Phase #:34 [CDB$ROOT] Files:1 Time: 0s
***************** Catproc PLBs *****************
Serial Phase #:35 [CDB$ROOT] Files:297 Time: 29s
Serial Phase #:36 [CDB$ROOT] Files:1 Time: 0s
Restart Phase #:37 [CDB$ROOT] Files:1 Time: 1s
Serial Phase #:38 [CDB$ROOT] Files:10 Time: 3s
Restart Phase #:39 [CDB$ROOT] Files:1 Time: 1s
*************** Catproc DataPump ***************
Serial Phase #:40 [CDB$ROOT] Files:3 Time: 67s
Restart Phase #:41 [CDB$ROOT] Files:1 Time: 1s
****************** Catproc SQL *****************
Parallel Phase #:42 [CDB$ROOT] Files:13 Time: 228s
Restart Phase #:43 [CDB$ROOT] Files:1 Time: 0s
Parallel Phase #:44 [CDB$ROOT] Files:11 Time: 15s
Restart Phase #:45 [CDB$ROOT] Files:1 Time: 0s
Parallel Phase #:46 [CDB$ROOT] Files:3 Time: 2s
Restart Phase #:47 [CDB$ROOT] Files:1 Time: 1s
************* Final Catproc scripts ************
Serial Phase #:48 [CDB$ROOT] Files:1 Time: 10s
Restart Phase #:49 [CDB$ROOT] Files:1 Time: 1s
************** Final RDBMS scripts *************
Serial Phase #:50 [CDB$ROOT] Files:1 Time: 8s
************ Upgrade Component Start ***********
Serial Phase #:51 [CDB$ROOT] Files:1 Time: 1s
Restart Phase #:52 [CDB$ROOT] Files:1 Time: 0s
********** Upgrading Java and non-Java *********
Serial Phase #:53 [CDB$ROOT] Files:2 Time: 397s
***************** Upgrading XDB ****************
Restart Phase #:54 [CDB$ROOT] Files:1 Time: 1s
Serial Phase #:56 [CDB$ROOT] Files:3 Time: 6s
Serial Phase #:57 [CDB$ROOT] Files:3 Time: 3s
Parallel Phase #:58 [CDB$ROOT] Files:10 Time: 3s
Parallel Phase #:59 [CDB$ROOT] Files:25 Time: 9s
Serial Phase #:60 [CDB$ROOT] Files:4 Time: 10s
Serial Phase #:61 [CDB$ROOT] Files:1 Time: 0s
Serial Phase #:62 [CDB$ROOT] Files:32 Time: 4s
Serial Phase #:63 [CDB$ROOT] Files:1 Time: 0s
Parallel Phase #:64 [CDB$ROOT] Files:6 Time: 6s
Serial Phase #:65 [CDB$ROOT] Files:2 Time: 21s
Serial Phase #:66 [CDB$ROOT] Files:3 Time: 36s
**************** Upgrading ORDIM ***************
Restart Phase #:67 [CDB$ROOT] Files:1 Time: 1s
Serial Phase #:69 [CDB$ROOT] Files:1 Time: 2s
Parallel Phase #:70 [CDB$ROOT] Files:2 Time: 63s
Restart Phase #:71 [CDB$ROOT] Files:1 Time: 1s
Parallel Phase #:72 [CDB$ROOT] Files:2 Time: 1s
Serial Phase #:73 [CDB$ROOT] Files:2 Time: 0s
***************** Upgrading SDO ****************
Restart Phase #:74 [CDB$ROOT] Files:1 Time: 1s
Serial Phase #:76 [CDB$ROOT] Files:1 Time: 74s
Serial Phase #:77 [CDB$ROOT] Files:2 Time: 2s
Restart Phase #:78 [CDB$ROOT] Files:1 Time: 1s
Serial Phase #:79 [CDB$ROOT] Files:1 Time: 50s
Restart Phase #:80 [CDB$ROOT] Files:1 Time: 1s
Parallel Phase #:81 [CDB$ROOT] Files:3 Time: 130s
Restart Phase #:82 [CDB$ROOT] Files:1 Time: 1s
Serial Phase #:83 [CDB$ROOT] Files:1 Time: 5s
Restart Phase #:84 [CDB$ROOT] Files:1 Time: 0s
Serial Phase #:85 [CDB$ROOT] Files:1 Time: 9s
Restart Phase #:86 [CDB$ROOT] Files:1 Time: 1s
Parallel Phase #:87 [CDB$ROOT] Files:4 Time: 213s
Restart Phase #:88 [CDB$ROOT] Files:1 Time: 0s
Serial Phase #:89 [CDB$ROOT] Files:1 Time: 1s
Restart Phase #:90 [CDB$ROOT] Files:1 Time: 0s
Serial Phase #:91 [CDB$ROOT] Files:2 Time: 14s
Restart Phase #:92 [CDB$ROOT] Files:1 Time: 1s
Serial Phase #:93 [CDB$ROOT] Files:1 Time: 1s
Restart Phase #:94 [CDB$ROOT] Files:1 Time: 0s
******* Upgrading ODM, WK, EXF, RUL, XOQ *******
Serial Phase #:95 [CDB$ROOT] Files:1 Time: 15s
Restart Phase #:96 [CDB$ROOT] Files:1 Time: 1s
*********** Final Component scripts ***********
Serial Phase #:97 [CDB$ROOT] Files:1 Time: 3s
************* Final Upgrade scripts ************
Serial Phase #:98 [CDB$ROOT] Files:1 Oracle Interim Patch Installer version 12.2.0.1.33
Copyright (c) 2022, Oracle Corporation. All rights reserved.
Oracle Home : /oracle/app/orawork/product/19.0.0.0/db_home1
Central Inventory : /grid/app/gridwork/oraInventory
from : /oracle/app/orawork/product/19.0.0.0/db_home1/oraInst.loc
OPatch version : 12.2.0.1.33
OUI version : 12.2.0.7.0
Log file location : /oracle/app/orawork/product/19.0.0.0/db_home1/cfgtoollogs/opatch/opatch2022-10-27_04-17-27AM_1.log
Lsinventory Output file location : /oracle/app/orawork/product/19.0.0.0/db_home1/cfgtoollogs/opatch/lsinv/lsinventory2022-10-27_04-17-27AM.txt
--------------------------------------------------------------------------------
Generated xml file /oracle/app/orawork/product/19.0.0.0/db_home1/cfgtoollogs/CDBTRAIN/upgrade20221027033307/target_home_inventory.xml from Oracle Home inventory shown above.
OPatch succeeded.
Time: 67s
******************* Migration ******************
Serial Phase #:99 [CDB$ROOT] Files:1 Time: 1s
*** End PDB Application Upgrade Pre-Shutdown ***
Serial Phase #:100 [CDB$ROOT] Files:1 Time: 2s
Serial Phase #:101 [CDB$ROOT] Files:1 Time: 0s
Serial Phase #:102 [CDB$ROOT] Files:1 Time: 58s
***************** Post Upgrade *****************
Serial Phase #:103 [CDB$ROOT] Files:1 Time: 2s
**************** Summary report ****************
Serial Phase #:104 [CDB$ROOT] Files:1 Time: 2s
*** End PDB Application Upgrade Post-Shutdown **
Serial Phase #:105 [CDB$ROOT] Files:1 Time: 0s
Serial Phase #:106 [CDB$ROOT] Files:1 Time: 1s
Serial Phase #:107 [CDB$ROOT] Files:1 Time: 94s
------------------------------------------------------
Phases [0-107] End Time:[2022_10_27 04:21:13]
Container Lists Inclusion:[CDB$ROOT] Exclusion:[NONE]
------------------------------------------------------
Start processing of PDBs (PDB$SEED)
[/oracle/app/orawork/product/19.0.0.0/db_home1/perl/bin/perl /oracle/app/orawork/product/19.0.0.0/db_home1/rdbms/admin/catctl.pl -I -i pdb_seed -n 2 -c 'PDB$SEED' -l /oracle/app/orawork/product/19.0.0.0/db_home1/cfgtoollogs/CDBTRAIN/upgrade20221027033307 /oracle/app/orawork/product/19.0.0.0/db_home1/rdbms/admin/catupgrd.sql]
Argument list for [/oracle/app/orawork/product/19.0.0.0/db_home1/rdbms/admin/catctl.pl]
For Oracle internal use only A = 0
Run in c = PDB$SEED
Do not run in C = 0
Input Directory d = 0
Echo OFF e = 1
Simulate E = 0
Forced cleanup F = 0
Log Id i = pdb_seed
Child Process I = 1
Log Dir l = /oracle/app/orawork/product/19.0.0.0/db_home1/cfgtoollogs/CDBTRAIN/upgrade20221027033307
Priority List Name L = 0
Upgrade Mode active M = 0
SQL Process Count n = 2
SQL PDB Process Count N = 0
Open Mode Normal o = 0
Start Phase p = 0
End Phase P = 0
Reverse Order r = 0
AutoUpgrade Resume R = 0
Script s = 0
Serial Run S = 0
RO User Tablespaces T = 0
Display Phases y = 0
Debug catcon.pm z = 0
Debug catctl.pl Z = 0
catctl.pl VERSION: [19.0.0.0.0]
STATUS: [Production]
BUILD: [RDBMS_19.16.0.0.0DBRU_LINUX.X64_220701]
/oracle/app/orawork/product/19.0.0.0/db_home1/rdbms/admin/orahome = [/oracle/app/orawork/product/19.0.0.0/db_home1]
/oracle/app/orawork/product/19.0.0.0/db_home1/bin/orabasehome = [/oracle/app/orawork/product/19.0.0.0/db_home1]
catctlGetOraBaseLogDir = [/oracle/app/orawork/product/19.0.0.0/db_home1]
Analyzing file /oracle/app/orawork/product/19.0.0.0/db_home1/rdbms/admin/catupgrd.sql
Log file directory = [/oracle/app/orawork/product/19.0.0.0/db_home1/cfgtoollogs/CDBTRAIN/upgrade20221027033307]
catcon::set_log_file_base_path: ALL catcon-related output will be written to [/oracle/app/orawork/product/19.0.0.0/db_home1/cfgtoollogs/CDBTRAIN/upgrade20221027033307/catupgrdpdb_seed_catcon_126915.lst]
catcon::set_log_file_base_path: catcon: See [/oracle/app/orawork/product/19.0.0.0/db_home1/cfgtoollogs/CDBTRAIN/upgrade20221027033307/catupgrdpdb_seed*.log] files for output generated by scripts
catcon::set_log_file_base_path: catcon: See [/oracle/app/orawork/product/19.0.0.0/db_home1/cfgtoollogs/CDBTRAIN/upgrade20221027033307/catupgrdpdb_seed_*.lst] files for spool files, if any
Number of Cpus = 1
Database Name = CDBTRAIN
DataBase Version = 19.0.0.0.0
PDB$SEED Open Mode = [MIGRATE]
Generated PDB Inclusion:[PDB$SEED]
CDB$ROOT Open Mode = [OPEN]
Components in [PDB$SEED]
Installed [APS CATALOG CATJAVA CATPROC CONTEXT DV JAVAVM OLS ORDIM OWM RAC SDO XDB XML XOQ]
Not Installed [APEX EM MGW ODM WK]
DataBase Version = 19.0.0.0.0
------------------------------------------------------
Phases [0-107] Start Time:[2022_10_27 04:21:46]
Container Lists Inclusion:[PDB$SEED] Exclusion:[NONE]
------------------------------------------------------
*********** Executing Change Scripts ***********
Serial Phase #:0 [PDB$SEED] Files:1 Time: 58s
*************** Catalog Core SQL ***************
Serial Phase #:1 [PDB$SEED] Files:5 Time: 70s
Restart Phase #:2 [PDB$SEED] Files:1 Time: 0s
*********** Catalog Tables and Views ***********
Parallel Phase #:3 [PDB$SEED] Files:19 Time: 64s
Restart Phase #:4 [PDB$SEED] Files:1 Time: 0s
************* Catalog Final Scripts ************
Serial Phase #:5 [PDB$SEED] Files:7 Time: 27s
***************** Catproc Start ****************
Serial Phase #:6 [PDB$SEED] Files:1 Time: 14s
***************** Catproc Types ****************
Serial Phase #:7 [PDB$SEED] Files:2 Time: 16s
Restart Phase #:8 [PDB$SEED] Files:1 Time: 0s
**************** Catproc Tables ****************
Parallel Phase #:9 [PDB$SEED] Files:70 Time: 87s
Restart Phase #:10 [PDB$SEED] Files:1 Time: 0s
************* Catproc Package Specs ************
Serial Phase #:11 [PDB$SEED] Files:1 Time: 95s
Restart Phase #:12 [PDB$SEED] Files:1 Time: 0s
************** Catproc Procedures **************
Parallel Phase #:13 [PDB$SEED] Files:95 Time: 20s
Restart Phase #:14 [PDB$SEED] Files:1 Time: 0s
Parallel Phase #:15 [PDB$SEED] Files:122 Time: 24s
Restart Phase #:16 [PDB$SEED] Files:1 Time: 1s
Serial Phase #:17 [PDB$SEED] Files:25 Time: 3s
Restart Phase #:18 [PDB$SEED] Files:1 Time: 0s
***************** Catproc Views ****************
Parallel Phase #:19 [PDB$SEED] Files:32 Time: 50s
Restart Phase #:20 [PDB$SEED] Files:1 Time: 0s
Serial Phase #:21 [PDB$SEED] Files:3 Time: 19s
Restart Phase #:22 [PDB$SEED] Files:1 Time: 0s
Parallel Phase #:23 [PDB$SEED] Files:25 Time: 811s
Restart Phase #:24 [PDB$SEED] Files:1 Time: 0s
Parallel Phase #:25 [PDB$SEED] Files:12 Time: 220s
Restart Phase #:26 [PDB$SEED] Files:1 Time: 0s
Serial Phase #:27 [PDB$SEED] Files:1 Time: 0s
Serial Phase #:28 [PDB$SEED] Files:4 Time: 16s
Serial Phase #:29 [PDB$SEED] Files:1 Time: 0s
Restart Phase #:30 [PDB$SEED] Files:1 Time: 0s
*************** Catproc CDB Views **************
Serial Phase #:31 [PDB$SEED] Files:1 Time: 1s
Restart Phase #:32 [PDB$SEED] Files:1 Time: 0s
Serial Phase #:34 [PDB$SEED] Files:1 Time: 0s
***************** Catproc PLBs *****************
Serial Phase #:35 [PDB$SEED] Files:297 Time: 111s
Serial Phase #:36 [PDB$SEED] Files:1 Time: 0s
Restart Phase #:37 [PDB$SEED] Files:1 Time: 0s
Serial Phase #:38 [PDB$SEED] Files:10 Time: 5s
Restart Phase #:39 [PDB$SEED] Files:1 Time: 0s
*************** Catproc DataPump ***************
Serial Phase #:40 [PDB$SEED] Files:3 Time: 57s
Restart Phase #:41 [PDB$SEED] Files:1 Time: 0s
****************** Catproc SQL *****************
Parallel Phase #:42 [PDB$SEED] Files:13 Time: 244s
Restart Phase #:43 [PDB$SEED] Files:1 Time: 1s
Parallel Phase #:44 [PDB$SEED] Files:11 Time: 6s
Restart Phase #:45 [PDB$SEED] Files:1 Time: 0s
Parallel Phase #:46 [PDB$SEED] Files:3 Time: 3s
Restart Phase #:47 [PDB$SEED] Files:1 Time: 0s
************* Final Catproc scripts ************
Serial Phase #:48 [PDB$SEED] Files:1 Time: 11s
Restart Phase #:49 [PDB$SEED] Files:1 Time: 0s
************** Final RDBMS scripts *************
Serial Phase #:50 [PDB$SEED] Files:1 Time: 8s
************ Upgrade Component Start ***********
Serial Phase #:51 [PDB$SEED] Files:1 Time: 0s
Restart Phase #:52 [PDB$SEED] Files:1 Time: 1s
********** Upgrading Java and non-Java *********
Serial Phase #:53 [PDB$SEED] Files:2 Time: 269s
***************** Upgrading XDB ****************
Restart Phase #:54 [PDB$SEED] Files:1 Time: 0s
Serial Phase #:56 [PDB$SEED] Files:3 Time: 7s
Serial Phase #:57 [PDB$SEED] Files:3 Time: 2s
Parallel Phase #:58 [PDB$SEED] Files:10 Time: 3s
Parallel Phase #:59 [PDB$SEED] Files:25 Time: 5s
Serial Phase #:60 [PDB$SEED] Files:4 Time: 9s
Serial Phase #:61 [PDB$SEED] Files:1 Time: 0s
Serial Phase #:62 [PDB$SEED] Files:32 Time: 9s
Serial Phase #:63 [PDB$SEED] Files:1 Time: 0s
Parallel Phase #:64 [PDB$SEED] Files:6 Time: 8s
Serial Phase #:65 [PDB$SEED] Files:2 Time: 24s
Serial Phase #:66 [PDB$SEED] Files:3 Time: 31s
**************** Upgrading ORDIM ***************
Restart Phase #:67 [PDB$SEED] Files:1 Time: 0s
Serial Phase #:69 [PDB$SEED] Files:1 Time: 1s
Parallel Phase #:70 [PDB$SEED] Files:2 Time: 13s
Restart Phase #:71 [PDB$SEED] Files:1 Time: 0s
Parallel Phase #:72 [PDB$SEED] Files:2 Time: 1s
Serial Phase #:73 [PDB$SEED] Files:2 Time: 1s
***************** Upgrading SDO ****************
Restart Phase #:74 [PDB$SEED] Files:1 Time: 0s
Serial Phase #:76 [PDB$SEED] Files:1 Time: 54s
Serial Phase #:77 [PDB$SEED] Files:2 Time: 2s
Restart Phase #:78 [PDB$SEED] Files:1 Time: 1s
Serial Phase #:79 [PDB$SEED] Files:1 Time: 6s
Restart Phase #:80 [PDB$SEED] Files:1 Time: 0s
Parallel Phase #:81 [PDB$SEED] Files:3 Time: 77s
Restart Phase #:82 [PDB$SEED] Files:1 Time: 0s
Serial Phase #:83 [PDB$SEED] Files:1 Time: 5s
Restart Phase #:84 [PDB$SEED] Files:1 Time: 0s
Serial Phase #:85 [PDB$SEED] Files:1 Time: 7s
Restart Phase #:86 [PDB$SEED] Files:1 Time: 0s
Parallel Phase #:87 [PDB$SEED] Files:4 Time: 142s
Restart Phase #:88 [PDB$SEED] Files:1 Time: 1s
Serial Phase #:89 [PDB$SEED] Files:1 Time: 0s
Restart Phase #:90 [PDB$SEED] Files:1 Time: 1s
Serial Phase #:91 [PDB$SEED] Files:2 Time: 28s
Restart Phase #:92 [PDB$SEED] Files:1 Time: 0s
Serial Phase #:93 [PDB$SEED] Files:1 Time: 1s
Restart Phase #:94 [PDB$SEED] Files:1 Time: 0s
******* Upgrading ODM, WK, EXF, RUL, XOQ *******
Serial Phase #:95 [PDB$SEED] Files:1 Time: 18s
Restart Phase #:96 [PDB$SEED] Files:1 Time: 0s
*********** Final Component scripts ***********
Serial Phase #:97 [PDB$SEED] Files:1 Time: 2s
************* Final Upgrade scripts ************
Serial Phase #:98 [PDB$SEED] Files:1 Time: 33s
******************* Migration ******************
Serial Phase #:99 [PDB$SEED] Files:1 Time: 1s
*** End PDB Application Upgrade Pre-Shutdown ***
Serial Phase #:100 [PDB$SEED] Files:1 Time: 0s
Serial Phase #:101 [PDB$SEED] Files:1 Time: 3s
Serial Phase #:102 [PDB$SEED] Files:1 Time: 3s
***************** Post Upgrade *****************
Serial Phase #:103 [PDB$SEED] Files:1 Time: 641s
**************** Summary report ****************
Serial Phase #:104 [PDB$SEED] Files:1 Time: 0s
*** End PDB Application Upgrade Post-Shutdown **
Serial Phase #:105 [PDB$SEED] Files:1 Time: 1s
Serial Phase #:106 [PDB$SEED] Files:1 Time: 2s
Serial Phase #:107 [PDB$SEED] Files:1 Time: 0s
------------------------------------------------------
Phases [0-107] End Time:[2022_10_27 05:19:21]
Container Lists Inclusion:[PDB$SEED] Exclusion:[NONE]
------------------------------------------------------
Grand Total Time: 3459s [PDB$SEED]
LOG FILES: (/oracle/app/orawork/product/19.0.0.0/db_home1/cfgtoollogs/CDBTRAIN/upgrade20221027033307/catupgrdpdb_seed*.log)
Upgrade Summary Report Located in:
/oracle/app/orawork/product/19.0.0.0/db_home1/cfgtoollogs/CDBTRAIN/upgrade20221027033307/upg_summary.log
Start processing of PDBs (TRAINDB)
[/oracle/app/orawork/product/19.0.0.0/db_home1/perl/bin/perl /oracle/app/orawork/product/19.0.0.0/db_home1/rdbms/admin/catctl.pl -I -i traindb -n 2 -c 'TRAINDB' -l /oracle/app/orawork/product/19.0.0.0/db_home1/cfgtoollogs/CDBTRAIN/upgrade20221027033307 /oracle/app/orawork/product/19.0.0.0/db_home1/rdbms/admin/catupgrd.sql]
Argument list for [/oracle/app/orawork/product/19.0.0.0/db_home1/rdbms/admin/catctl.pl]
For Oracle internal use only A = 0
Run in c = TRAINDB
Do not run in C = 0
Input Directory d = 0
Echo OFF e = 1
Simulate E = 0
Forced cleanup F = 0
Log Id i = traindb
Child Process I = 1
Log Dir l = /oracle/app/orawork/product/19.0.0.0/db_home1/cfgtoollogs/CDBTRAIN/upgrade20221027033307
Priority List Name L = 0
Upgrade Mode active M = 0
SQL Process Count n = 2
SQL PDB Process Count N = 0
Open Mode Normal o = 0
Start Phase p = 0
End Phase P = 0
Reverse Order r = 0
AutoUpgrade Resume R = 0
Script s = 0
Serial Run S = 0
RO User Tablespaces T = 0
Display Phases y = 0
Debug catcon.pm z = 0
Debug catctl.pl Z = 0
catctl.pl VERSION: [19.0.0.0.0]
STATUS: [Production]
BUILD: [RDBMS_19.16.0.0.0DBRU_LINUX.X64_220701]
/oracle/app/orawork/product/19.0.0.0/db_home1/rdbms/admin/orahome = [/oracle/app/orawork/product/19.0.0.0/db_home1]
/oracle/app/orawork/product/19.0.0.0/db_home1/bin/orabasehome = [/oracle/app/orawork/product/19.0.0.0/db_home1]
catctlGetOraBaseLogDir = [/oracle/app/orawork/product/19.0.0.0/db_home1]
Analyzing file /oracle/app/orawork/product/19.0.0.0/db_home1/rdbms/admin/catupgrd.sql
Log file directory = [/oracle/app/orawork/product/19.0.0.0/db_home1/cfgtoollogs/CDBTRAIN/upgrade20221027033307]
catcon::set_log_file_base_path: ALL catcon-related output will be written to [/oracle/app/orawork/product/19.0.0.0/db_home1/cfgtoollogs/CDBTRAIN/upgrade20221027033307/catupgrdtraindb_catcon_34275.lst]
catcon::set_log_file_base_path: catcon: See [/oracle/app/orawork/product/19.0.0.0/db_home1/cfgtoollogs/CDBTRAIN/upgrade20221027033307/catupgrdtraindb*.log] files for output generated by scripts
catcon::set_log_file_base_path: catcon: See [/oracle/app/orawork/product/19.0.0.0/db_home1/cfgtoollogs/CDBTRAIN/upgrade20221027033307/catupgrdtraindb_*.lst] files for spool files, if any
Number of Cpus = 1
Database Name = CDBTRAIN
DataBase Version = 19.0.0.0.0
TRAINDB Open Mode = [MIGRATE]
Generated PDB Inclusion:[TRAINDB]
CDB$ROOT Open Mode = [OPEN]
Components in [TRAINDB]
Installed [APS CATALOG CATJAVA CATPROC CONTEXT DV JAVAVM OLS ORDIM OWM RAC SDO XDB XML XOQ]
Not Installed [APEX EM MGW ODM WK]
DataBase Version = 19.0.0.0.0
------------------------------------------------------
Phases [0-107] Start Time:[2022_10_27 05:19:31]
Container Lists Inclusion:[TRAINDB] Exclusion:[NONE]
------------------------------------------------------
*********** Executing Change Scripts ***********
Serial Phase #:0 [TRAINDB] Files:1 Time: 33s
*************** Catalog Core SQL ***************
Serial Phase #:1 [TRAINDB] Files:5 Time: 53s
Restart Phase #:2 [TRAINDB] Files:1 Time: 0s
*********** Catalog Tables and Views ***********
Parallel Phase #:3 [TRAINDB] Files:19 Time: 50s
Restart Phase #:4 [TRAINDB] Files:1 Time: 0s
************* Catalog Final Scripts ************
Serial Phase #:5 [TRAINDB] Files:7 Time: 21s
***************** Catproc Start ****************
Serial Phase #:6 [TRAINDB] Files:1 Time: 13s
***************** Catproc Types ****************
Serial Phase #:7 [TRAINDB] Files:2 Time: 13s
Restart Phase #:8 [TRAINDB] Files:1 Time: 0s
**************** Catproc Tables ****************
Parallel Phase #:9 [TRAINDB] Files:70 Time: 65s
Restart Phase #:10 [TRAINDB] Files:1 Time: 1s
************* Catproc Package Specs ************
Serial Phase #:11 [TRAINDB] Files:1 Time: 79s
Restart Phase #:12 [TRAINDB] Files:1 Time: 1s
************** Catproc Procedures **************
Parallel Phase #:13 [TRAINDB] Files:95 Time: 12s
Restart Phase #:14 [TRAINDB] Files:1 Time: 0s
Parallel Phase #:15 [TRAINDB] Files:122 Time: 17s
Restart Phase #:16 [TRAINDB] Files:1 Time: 0s
Serial Phase #:17 [TRAINDB] Files:25 Time: 2s
Restart Phase #:18 [TRAINDB] Files:1 Time: 1s
***************** Catproc Views ****************
Parallel Phase #:19 [TRAINDB] Files:32 Time: 37s
Restart Phase #:20 [TRAINDB] Files:1 Time: 0s
Serial Phase #:21 [TRAINDB] Files:3 Time: 14s
Restart Phase #:22 [TRAINDB] Files:1 Time: 0s
Parallel Phase #:23 [TRAINDB] Files:25 Time: 423s
Restart Phase #:24 [TRAINDB] Files:1 Time: 1s
Parallel Phase #:25 [TRAINDB] Files:12 Time: 237s
Restart Phase #:26 [TRAINDB] Files:1 Time: 0s
Serial Phase #:27 [TRAINDB] Files:1 Time: 0s
Serial Phase #:28 [TRAINDB] Files:4 Time: 3s
Serial Phase #:29 [TRAINDB] Files:1 Time: 0s
Restart Phase #:30 [TRAINDB] Files:1 Time: 0s
*************** Catproc CDB Views **************
Serial Phase #:31 [TRAINDB] Files:1 Time: 1s
Restart Phase #:32 [TRAINDB] Files:1 Time: 0s
Serial Phase #:34 [TRAINDB] Files:1 Time: 0s
***************** Catproc PLBs *****************
Serial Phase #:35 [TRAINDB] Files:297 Time: 23s
Serial Phase #:36 [TRAINDB] Files:1 Time: 0s
Restart Phase #:37 [TRAINDB] Files:1 Time: 0s
Serial Phase #:38 [TRAINDB] Files:10 Time: 2s
Restart Phase #:39 [TRAINDB] Files:1 Time: 0s
*************** Catproc DataPump ***************
Serial Phase #:40 [TRAINDB] Files:3 Time: 61s
Restart Phase #:41 [TRAINDB] Files:1 Time: 0s
****************** Catproc SQL *****************
Parallel Phase #:42 [TRAINDB] Files:13 Time: 290s
Restart Phase #:43 [TRAINDB] Files:1 Time: 0s
Parallel Phase #:44 [TRAINDB] Files:11 Time: 6s
Restart Phase #:45 [TRAINDB] Files:1 Time: 0s
Parallel Phase #:46 [TRAINDB] Files:3 Time: 3s
Restart Phase #:47 [TRAINDB] Files:1 Time: 0s
************* Final Catproc scripts ************
Serial Phase #:48 [TRAINDB] Files:1 Time: 11s
Restart Phase #:49 [TRAINDB] Files:1 Time: 0s
************** Final RDBMS scripts *************
Serial Phase #:50 [TRAINDB] Files:1 Time: 9s
************ Upgrade Component Start ***********
Serial Phase #:51 [TRAINDB] Files:1 Time: 0s
Restart Phase #:52 [TRAINDB] Files:1 Time: 0s
********** Upgrading Java and non-Java *********
Serial Phase #:53 [TRAINDB] Files:2 Time: 263s
***************** Upgrading XDB ****************
Restart Phase #:54 [TRAINDB] Files:1 Time: 0s
Serial Phase #:56 [TRAINDB] Files:3 Time: 8s
Serial Phase #:57 [TRAINDB] Files:3 Time: 2s
Parallel Phase #:58 [TRAINDB] Files:10 Time: 3s
Parallel Phase #:59 [TRAINDB] Files:25 Time: 5s
Serial Phase #:60 [TRAINDB] Files:4 Time: 8s
Serial Phase #:61 [TRAINDB] Files:1 Time: 0s
Serial Phase #:62 [TRAINDB] Files:32 Time: 3s
Serial Phase #:63 [TRAINDB] Files:1 Time: 0s
Parallel Phase #:64 [TRAINDB] Files:6 Time: 6s
Serial Phase #:65 [TRAINDB] Files:2 Time: 20s
Serial Phase #:66 [TRAINDB] Files:3 Time: 34s
**************** Upgrading ORDIM ***************
Restart Phase #:67 [TRAINDB] Files:1 Time: 1s
Serial Phase #:69 [TRAINDB] Files:1 Time: 1s
Parallel Phase #:70 [TRAINDB] Files:2 Time: 9s
Restart Phase #:71 [TRAINDB] Files:1 Time: 0s
Parallel Phase #:72 [TRAINDB] Files:2 Time: 1s
Serial Phase #:73 [TRAINDB] Files:2 Time: 1s
***************** Upgrading SDO ****************
Restart Phase #:74 [TRAINDB] Files:1 Time: 0s
Serial Phase #:76 [TRAINDB] Files:1 Time: 59s
Serial Phase #:77 [TRAINDB] Files:2 Time: 1s
Restart Phase #:78 [TRAINDB] Files:1 Time: 1s
Serial Phase #:79 [TRAINDB] Files:1 Time: 5s
Restart Phase #:80 [TRAINDB] Files:1 Time: 0s
Parallel Phase #:81 [TRAINDB] Files:3 Time: 74s
Restart Phase #:82 [TRAINDB] Files:1 Time: 0s
Serial Phase #:83 [TRAINDB] Files:1 Time: 5s
Restart Phase #:84 [TRAINDB] Files:1 Time: 0s
Serial Phase #:85 [TRAINDB] Files:1 Time: 8s
Restart Phase #:86 [TRAINDB] Files:1 Time: 1s
Parallel Phase #:87 [TRAINDB] Files:4 Time: 143s
Restart Phase #:88 [TRAINDB] Files:1 Time: 1s
Serial Phase #:89 [TRAINDB] Files:1 Time: 0s
Restart Phase #:90 [TRAINDB] Files:1 Time: 0s
Serial Phase #:91 [TRAINDB] Files:2 Time: 25s
Restart Phase #:92 [TRAINDB] Files:1 Time: 0s
Serial Phase #:93 [TRAINDB] Files:1 Time: 1s
Restart Phase #:94 [TRAINDB] Files:1 Time: 0s
******* Upgrading ODM, WK, EXF, RUL, XOQ *******
Serial Phase #:95 [TRAINDB] Files:1 Time: 14s
Restart Phase #:96 [TRAINDB] Files:1 Time: 0s
*********** Final Component scripts ***********
Serial Phase #:97 [TRAINDB] Files:1 Time: 4s
************* Final Upgrade scripts ************
Serial Phase #:98 [TRAINDB] Files:1 Time: 26s
******************* Migration ******************
Serial Phase #:99 [TRAINDB] Files:1 Time: 1s
*** End PDB Application Upgrade Pre-Shutdown ***
Serial Phase #:100 [TRAINDB] Files:1 Time: 1s
Serial Phase #:101 [TRAINDB] Files:1 Time: 2s
Serial Phase #:102 [TRAINDB] Files:1 Time: 3s
***************** Post Upgrade *****************
Serial Phase #:103 [TRAINDB] Files:1 Time: 1s
**************** Summary report ****************
Serial Phase #:104 [TRAINDB] Files:1 Time: 1s
*** End PDB Application Upgrade Post-Shutdown **
Serial Phase #:105 [TRAINDB] Files:1 Time: 1s
Serial Phase #:106 [TRAINDB] Files:1 Time: 1s
Serial Phase #:107 [TRAINDB] Files:1 Time: 0s
------------------------------------------------------
Phases [0-107] End Time:[2022_10_27 05:56:37]
Container Lists Inclusion:[TRAINDB] Exclusion:[NONE]
------------------------------------------------------
Grand Total Time: 2227s [TRAINDB]
LOG FILES: (/oracle/app/orawork/product/19.0.0.0/db_home1/cfgtoollogs/CDBTRAIN/upgrade20221027033307/catupgrdtraindb*.log)
Upgrade Summary Report Located in:
/oracle/app/orawork/product/19.0.0.0/db_home1/cfgtoollogs/CDBTRAIN/upgrade20221027033307/upg_summary.log
Time: 2883s For CDB$ROOT
Time: 5728s For PDB(s)
Grand Total Time: 8611s
LOG FILES: (/oracle/app/orawork/product/19.0.0.0/db_home1/cfgtoollogs/CDBTRAIN/upgrade20221027033307/catupgrdcdbroot*.log)
Upgrade Summary Report Located in:
/oracle/app/orawork/product/19.0.0.0/db_home1/cfgtoollogs/CDBTRAIN/upgrade20221027033307/upg_summary.log
Grand Total Upgrade Time: [0d:2h:23m:31s]
[oracle@dm01db01 bin]$
</code></b></pre>
<p><b>20. Node1 copy all file dbs and network/admin to new home </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[oracle@dm01db01 dbs]$ cp * /oracle/app/orawork/product/19.0.0.0/db_home1/network/admin/
[oracle@dm01db01 dbs]$
[oracle@dm01db01 dbs]$
[oracle@dm01db01 dbs]$ cd ..
[oracle@dm01db01 db_1]$
[oracle@dm01db01 admin]$ cp * /oracle/app/orawork/product/19.0.0.0/db_home1/dbs
[oracle@dm01db01 dbs]$ cat initCDBTRAIN1.ora
spfile='+DATAC1/CDBTRAIN/PARAMETERFILE/spfile.270.1119144227'
</code></b></pre>
<p><b>21. Node2 copy all file dbs and network/admin to new home </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[oracle@dm01db02 ~]$ cd /oracle/app/orawork/product/12.2.0.1/db_1/network/admin
[oracle@dm01db02 admin]$
[oracle@dm01db02 admin]$ cp -R * /oracle/app/orawork/product/19.0.0.0/db_home1/network/admin/
[oracle@dm01db02 admin]$ cd ../../dbs
[oracle@dm01db02 dbs]$
[oracle@dm01db02 dbs]$ cp * /oracle/app/orawork/product/19.0.0.0/db_home1/dbs
[oracle@dm01db02 dbs]$ cat initCDBTRAIN2.ora
spfile='+DATAC1/CDBTRAIN/PARAMETERFILE/spfile.270.1119144227'
</code></b></pre>
<p><b>22. check database status and invalid objects after upgrade .</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[oracle@dm01db01 dbs]$ sqlplus / as sysdba
SQL*Plus: Release 19.0.0.0.0 - Production on Thu Oct 27 06:16:51 2022
Version 19.16.0.0.0
Copyright (c) 1982, 2022, Oracle. All rights reserved.
Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.16.0.0.0
SQL> set pages 9999 lines 300
col OPEN_MODE for a10
col HOST_NAME for a30
select INST_ID,INSTANCE_NAME, name DB_NAME,HOST_NAME,DATABASE_ROLE,LOG_MODE,OPEN_MODE,version DB_VERSION,LOGINS,to_char(STARTUP_TIME,'DD-MON-YYYY HH24:MI:SS') "DB UP TIME" from v$database,gv$instance;
SQL> SQL> SQL>
INST_ID INSTANCE_NAME DB_NAME HOST_NAME DATABASE_ROLE LOG_MODE OPEN_MODE DB_VERSION LOGINS DB UP TIME
---------- ---------------- --------- ------------------------------ ---------------- ------------ ---------- ----------------- ---------- -----------------------------
1 CDBTRAIN1 CDBTRAIN dm01db01.database.com PRIMARY ARCHIVELOG READ WRITE 19.0.0.0.0 ALLOWED 27-OCT-2022 04:20:39
SQL> show pdbs
CON_ID CON_NAME OPEN MODE RESTRICTED
---------- ------------------------------ ---------- ----------
2 PDB$SEED READ ONLY NO
3 TRAINDB READ WRITE NO
SQL> select count(*) from dba_objects where status = 'INVALID';
COUNT(*)
----------
47
</code></b></pre>
<p><b>23. Run Post upgrade fixup script </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[oracle@dm01db01 dbs]$ $ORACLE_HOME/perl/bin/perl -I$ORACLE_HOME/perl/lib -I$ORACLE_HOME/rdbms/admin $ORACLE_HOME/rdbms/admin/catcon.pl -l /oracle/app/orawork/cfgtoollogs/CDBTRAIN/preupgrade/ -b postup_CDBTRAIN /oracle/app/orawork/cfgtoollogs/CDBTRAIN/preupgrade/postupgrade_fixups.sql
catcon::set_log_file_base_path: ALL catcon-related output will be written to [/oracle/app/orawork/cfgtoollogs/CDBTRAIN/preupgrade/postup_CDBTRAIN_catcon_89079.lst]
catcon::set_log_file_base_path: catcon: See [/oracle/app/orawork/cfgtoollogs/CDBTRAIN/preupgrade/postup_CDBTRAIN*.log] files for output generated by scripts
catcon::set_log_file_base_path: catcon: See [/oracle/app/orawork/cfgtoollogs/CDBTRAIN/preupgrade/postup_CDBTRAIN_*.lst] files for spool files, if any
catcon.pl: completed successfully
</code></b></pre>
<p><b>24. Run utlrp.sql to recompile invalid objects </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[oracle@dm01db01 admin]$ $ORACLE_HOME/perl/bin/perl $ORACLE_HOME/rdbms/admin/catcon.pl -n 1 -e -b utlrp -d '''.''' utlrp.sql
catcon::set_log_file_base_path: ALL catcon-related output will be written to [/oracle/app/orawork/product/19.0.0.0/db_home1/rdbms/admin/utlrp_catcon_94744.lst]
catcon::set_log_file_base_path: catcon: See [/oracle/app/orawork/product/19.0.0.0/db_home1/rdbms/admin/utlrp*.log] files for output generated by scripts
catcon::set_log_file_base_path: catcon: See [/oracle/app/orawork/product/19.0.0.0/db_home1/rdbms/admin/utlrp_*.lst] files for spool files, if any
catcon.pl: completed successfully
</code></b></pre>
<p><b>25. Recheck database for invalid objects</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> select count(*) from dba_objects where status = 'INVALID';
COUNT(*)
----------
0
SQL> show pdbs
CON_ID CON_NAME OPEN MODE RESTRICTED
---------- ------------------------------ ---------- ----------
2 PDB$SEED READ ONLY NO
3 TRAINDB READ WRITE NO
</code></b></pre>
<p><b>26 .Start with the Timezone DST upgrade for 12.2 its 26 and will be upgrade to 32 for 19c</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[oracle@dm01db01 oracle]$ cd DBMS_DST_scriptsV1.9
[oracle@dm01db01 DBMS_DST_scriptsV1.9]$ ls -ltr
total 68
-rw-r--r-- 1 oracle oinstall 31010 Aug 22 2014 upg_tzv_check.sql
-rw-r--r-- 1 oracle oinstall 19502 Aug 22 2014 upg_tzv_apply.sql
-rw-r--r-- 1 oracle oinstall 6294 Jan 8 2015 countstarTSTZ.sql
-rw-r--r-- 1 oracle oinstall 7213 Mar 17 2018 countstatsTSTZ.sql
[oracle@dm01db01 DBMS_DST_scriptsV1.9]$ sqlplus / as sysdba
SQL*Plus: Release 19.0.0.0.0 - Production on Thu Oct 27 07:08:42 2022
Version 19.16.0.0.0
Copyright (c) 1982, 2022, Oracle. All rights reserved.
Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.16.0.0.0
SQL> @countstatsTSTZ.sql
.
Amount of TSTZ data using num_rows stats info in DBA_TABLES.
.
For SYS tables first...
Note: empty tables are not listed.
Stat date - Owner.Tablename.Columnname - num_rows
26/01/2017 - SYS.AQ$_ALERT_QT_S.CREATION_TIME - 3
26/01/2017 - SYS.AQ$_ALERT_QT_S.DELETION_TIME - 3
26/01/2017 - SYS.AQ$_ALERT_QT_S.MODIFICATION_TIME - 3
26/01/2017 - SYS.AQ$_AQ$_MEM_MC_S.CREATION_TIME - 3
26/01/2017 - SYS.AQ$_AQ$_MEM_MC_S.DELETION_TIME - 3
26/01/2017 - SYS.AQ$_AQ$_MEM_MC_S.MODIFICATION_TIME - 3
26/01/2017 - SYS.AQ$_AQ_PROP_TABLE_S.CREATION_TIME - 1
26/01/2017 - SYS.AQ$_AQ_PROP_TABLE_S.DELETION_TIME - 1
26/01/2017 - SYS.AQ$_AQ_PROP_TABLE_S.MODIFICATION_TIME - 1
26/01/2017 - SYS.AQ$_ORA$PREPLUGIN_BACKUP_QTB_S.CREATION_TIME - 1
26/01/2017 - SYS.AQ$_ORA$PREPLUGIN_BACKUP_QTB_S.DELETION_TIME - 1
26/01/2017 - SYS.AQ$_ORA$PREPLUGIN_BACKUP_QTB_S.MODIFICATION_TIME - 1
27/10/2022 - SYS.AQ$_PDB_MON_EVENT_QTABLE$_S.CREATION_TIME - 1
27/10/2022 - SYS.AQ$_PDB_MON_EVENT_QTABLE$_S.DELETION_TIME - 1
27/10/2022 - SYS.AQ$_PDB_MON_EVENT_QTABLE$_S.MODIFICATION_TIME - 1
26/01/2017 - SYS.AQ$_SCHEDULER$_EVENT_QTAB_S.CREATION_TIME - 3
26/01/2017 - SYS.AQ$_SCHEDULER$_EVENT_QTAB_S.DELETION_TIME - 3
26/01/2017 - SYS.AQ$_SCHEDULER$_EVENT_QTAB_S.MODIFICATION_TIME - 3
26/01/2017 - SYS.AQ$_SCHEDULER$_REMDB_JOBQTAB_S.CREATION_TIME - 1
26/01/2017 - SYS.AQ$_SCHEDULER$_REMDB_JOBQTAB_S.DELETION_TIME - 1
26/01/2017 - SYS.AQ$_SCHEDULER$_REMDB_JOBQTAB_S.MODIFICATION_TIME - 1
26/01/2017 - SYS.AQ$_SCHEDULER_FILEWATCHER_QT_S.CREATION_TIME - 1
26/01/2017 - SYS.AQ$_SCHEDULER_FILEWATCHER_QT_S.DELETION_TIME - 1
26/01/2017 - SYS.AQ$_SCHEDULER_FILEWATCHER_QT_S.MODIFICATION_TIME - 1
27/10/2022 - SYS.AQ$_SUBSCRIBER_TABLE.CREATION_TIME - 1
27/10/2022 - SYS.AQ$_SUBSCRIBER_TABLE.DELETION_TIME - 1
27/10/2022 - SYS.AQ$_SUBSCRIBER_TABLE.MODIFICATION_TIME - 1
26/01/2017 - SYS.AQ$_SYS$SERVICE_METRICS_TAB_S.CREATION_TIME - 4
26/01/2017 - SYS.AQ$_SYS$SERVICE_METRICS_TAB_S.DELETION_TIME - 4
26/01/2017 - SYS.AQ$_SYS$SERVICE_METRICS_TAB_S.MODIFICATION_TIME - 4
26/01/2017 - SYS.KET$_AUTOTASK_STATUS.ABA_START_TIME - 1
26/01/2017 - SYS.KET$_AUTOTASK_STATUS.ABA_STATE_TIME - 1
26/01/2017 - SYS.KET$_AUTOTASK_STATUS.MW_RECORD_TIME - 1
26/01/2017 - SYS.KET$_AUTOTASK_STATUS.MW_START_TIME - 1
26/01/2017 - SYS.KET$_AUTOTASK_STATUS.RECONCILE_TIME - 1
27/10/2022 - SYS.KET$_CLIENT_CONFIG.FIELD_2 - 7
27/10/2022 - SYS.KET$_CLIENT_CONFIG.LAST_CHANGE - 7
27/10/2022 - SYS.OPTSTAT_HIST_CONTROL$.SPARE6 - 45
27/10/2022 - SYS.OPTSTAT_HIST_CONTROL$.SVAL2 - 45
27/10/2022 - SYS.OPTSTAT_SNAPSHOT$.TIMESTAMP - 1740
27/10/2022 - SYS.OPTSTAT_USER_PREFS$.CHGTIME - 72
26/01/2017 - SYS.RADM_FPTM$.TSWTZ_COL - 1
26/01/2017 - SYS.REG$.NTFN_GROUPING_START_TIME - 2
26/01/2017 - SYS.REG$.REG_TIME - 2
27/10/2022 - SYS.SCHEDULER$_EVENT_LOG.LOG_DATE - 22
27/10/2022 - SYS.SCHEDULER$_GLOBAL_ATTRIBUTE.ATTR_TSTAMP - 11
27/10/2022 - SYS.SCHEDULER$_JOB.END_DATE - 24
27/10/2022 - SYS.SCHEDULER$_JOB.LAST_ENABLED_TIME - 24
27/10/2022 - SYS.SCHEDULER$_JOB.LAST_END_DATE - 24
27/10/2022 - SYS.SCHEDULER$_JOB.LAST_START_DATE - 24
27/10/2022 - SYS.SCHEDULER$_JOB.NEXT_RUN_DATE - 24
27/10/2022 - SYS.SCHEDULER$_JOB.START_DATE - 24
27/10/2022 - SYS.SCHEDULER$_JOB_RUN_DETAILS.LOG_DATE - 8
27/10/2022 - SYS.SCHEDULER$_JOB_RUN_DETAILS.REQ_START_DATE - 8
27/10/2022 - SYS.SCHEDULER$_JOB_RUN_DETAILS.START_DATE - 8
26/01/2017 - SYS.SCHEDULER$_SCHEDULE.END_DATE - 4
26/01/2017 - SYS.SCHEDULER$_SCHEDULE.REFERENCE_DATE - 4
27/10/2022 - SYS.SCHEDULER$_WINDOW.ACTUAL_START_DATE - 9
27/10/2022 - SYS.SCHEDULER$_WINDOW.END_DATE - 9
27/10/2022 - SYS.SCHEDULER$_WINDOW.LAST_START_DATE - 9
27/10/2022 - SYS.SCHEDULER$_WINDOW.MANUAL_OPEN_TIME - 9
27/10/2022 - SYS.SCHEDULER$_WINDOW.NEXT_START_DATE - 9
27/10/2022 - SYS.SCHEDULER$_WINDOW.START_DATE - 9
27/10/2022 - SYS.TAB_STATS$.SPARE6 - 1132
27/10/2022 - SYS.WRI$_ALERT_HISTORY.CREATION_TIME - 48
27/10/2022 - SYS.WRI$_ALERT_HISTORY.TIME_SUGGESTED - 48
27/10/2022 - SYS.WRI$_OPTSTAT_HISTHEAD_HISTORY.SAVTIME - 31659
27/10/2022 - SYS.WRI$_OPTSTAT_HISTHEAD_HISTORY.SPARE6 - 31659
27/10/2022 - SYS.WRI$_OPTSTAT_IND_HISTORY.SAVTIME - 997
27/10/2022 - SYS.WRI$_OPTSTAT_IND_HISTORY.SPARE6 - 997
27/10/2022 - SYS.WRI$_OPTSTAT_OPR.END_TIME - 108
27/10/2022 - SYS.WRI$_OPTSTAT_OPR.SPARE6 - 108
27/10/2022 - SYS.WRI$_OPTSTAT_OPR.START_TIME - 108
27/10/2022 - SYS.WRI$_OPTSTAT_OPR_TASKS.END_TIME - 3530
27/10/2022 - SYS.WRI$_OPTSTAT_OPR_TASKS.SPARE6 - 3530
27/10/2022 - SYS.WRI$_OPTSTAT_OPR_TASKS.START_TIME - 3530
27/10/2022 - SYS.WRI$_OPTSTAT_TAB_HISTORY.SAVTIME - 2159
27/10/2022 - SYS.WRI$_OPTSTAT_TAB_HISTORY.SPARE6 - 2159
27/10/2022 - SYS.WRM$_DATABASE_INSTANCE.STARTUP_TIME_TZ - 5
27/10/2022 - SYS.WRM$_PDB_INSTANCE.OPEN_TIME_TZ - 6
27/10/2022 - SYS.WRM$_PDB_INSTANCE.STARTUP_TIME_TZ - 6
27/10/2022 - SYS.WRM$_PDB_IN_SNAP.OPEN_TIME_TZ - 5
27/10/2022 - SYS.WRM$_SNAPSHOT.BEGIN_INTERVAL_TIME_TZ - 4
27/10/2022 - SYS.WRM$_SNAPSHOT.END_INTERVAL_TIME_TZ - 4
26/01/2017 - SYS.XS$PRIN.END_DATE - 15
26/01/2017 - SYS.XS$PRIN.START_DATE - 15
Total numrow of SYS TSTZ columns is : 84078
There are in total 165 non-SYS TSTZ columns.
.
For non-SYS tables ...
Note: empty tables are not listed.
Stat date - Owner.Tablename.Columnname - num_rows
26/01/2017 - GSMADMIN_INTERNAL.AQ$_CHANGE_LOG_QUEUE_TABLE_S.CREATION_TIME - 1
26/01/2017 - GSMADMIN_INTERNAL.AQ$_CHANGE_LOG_QUEUE_TABLE_S.DELETION_TIME - 1
26/01/2017 - GSMADMIN_INTERNAL.AQ$_CHANGE_LOG_QUEUE_TABLE_S.MODIFICATION_TIME -
1
26/01/2017 - WMSYS.AQ$_WM$EVENT_QUEUE_TABLE_S.CREATION_TIME - 1
26/01/2017 - WMSYS.AQ$_WM$EVENT_QUEUE_TABLE_S.DELETION_TIME - 1
26/01/2017 - WMSYS.AQ$_WM$EVENT_QUEUE_TABLE_S.MODIFICATION_TIME - 1
26/01/2017 - WMSYS.WM$WORKSPACES_TABLE$.CREATETIME - 1
26/01/2017 - WMSYS.WM$WORKSPACES_TABLE$.LAST_CHANGE - 1
Total numrow of non-SYS TSTZ columns is : 8
There are in total 20 non-SYS TSTZ columns.
Total Minutes elapsed : 0
SQL>
SQL>
SQL> @upg_tzv_check.sql
INFO: Starting with RDBMS DST update preparation.
INFO: NO actual RDBMS DST update will be done by this script.
INFO: If an ERROR occurs the script will EXIT sqlplus.
INFO: Doing checks for known issues ...
INFO: Database version is 19.0.0.0 .
INFO: Database RDBMS DST version is DSTv26 .
INFO: No known issues detected.
INFO: Now detecting new RDBMS DST version.
A prepare window has been successfully started.
INFO: Newest RDBMS DST version detected is DSTv32 .
INFO: Next step is checking all TSTZ data.
INFO: It might take a while before any further output is seen ...
A prepare window has been successfully ended.
INFO: A newer RDBMS DST version than the one currently used is found.
INFO: Note that NO DST update was yet done.
INFO: Now run upg_tzv_apply.sql to do the actual RDBMS DST update.
INFO: Note that the upg_tzv_apply.sql script will
INFO: restart the database 2 times WITHOUT any confirmation or prompt.
SQL>
SQL>
SQL>
SQL> @upg_tzv_apply.sql
INFO: If an ERROR occurs the script will EXIT sqlplus.
INFO: The database RDBMS DST version will be updated to DSTv32 .
WARNING: This script will restart the database 2 times
WARNING: WITHOUT asking ANY confirmation.
WARNING: Hit control-c NOW if this is not intended.
INFO: Restarting the database in UPGRADE mode to start the DST upgrade.
Database closed.
Database dismounted.
ORACLE instance shut down.
ORACLE instance started.
Total System Global Area 1073738488 bytes
Fixed Size 9143032 bytes
Variable Size 557842432 bytes
Database Buffers 503316480 bytes
Redo Buffers 3436544 bytes
Database mounted.
Database opened.
INFO: Starting the RDBMS DST upgrade.
INFO: Upgrading all SYS owned TSTZ data.
INFO: It might take time before any further output is seen ...
An upgrade window has been successfully started.
INFO: Restarting the database in NORMAL mode to upgrade non-SYS TSTZ data.
Database closed.
Database dismounted.
ORACLE instance shut down.
ORACLE instance started.
Total System Global Area 1073738488 bytes
Fixed Size 9143032 bytes
Variable Size 557842432 bytes
Database Buffers 503316480 bytes
Redo Buffers 3436544 bytes
Database mounted.
Database opened.
INFO: Upgrading all non-SYS TSTZ data.
INFO: It might take time before any further output is seen ...
INFO: Do NOT start any application yet that uses TSTZ data!
INFO: Next is a list of all upgraded tables:
Table list: "GSMADMIN_INTERNAL"."AQ$_CHANGE_LOG_QUEUE_TABLE_S"
Number of failures: 0
Table list: "GSMADMIN_INTERNAL"."AQ$_CHANGE_LOG_QUEUE_TABLE_L"
Number of failures: 0
Table list: "MDSYS"."SDO_DIAG_MESSAGES_TABLE"
Number of failures: 0
Table list: "DVSYS"."SIMULATION_LOG$"
Number of failures: 0
Table list: "DVSYS"."AUDIT_TRAIL$"
Number of failures: 0
INFO: Total failures during update of TSTZ data: 0 .
An upgrade window has been successfully ended.
INFO: Your new Server RDBMS DST version is DSTv32 .
INFO: The RDBMS DST update is successfully finished.
INFO: Make sure to exit this sqlplus session.
INFO: Do not use it for timezone related selects.
SQL>
SQL>
SQL> SELECT version FROM v$timezone_file;
VERSION
----------
32
1 row selected.
SQL>
</code></b></pre>
<p><b>27. Run script catuppst.sql</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> @?/rdbms/admin/catuppst.sql
Session altered.
Session altered.
Session altered.
PL/SQL procedure successfully completed.
Session altered.
System altered.
PL/SQL procedure successfully completed.
Session altered.
TIMESTAMP
--------------------------------------------------------------------------------
COMP_TIMESTAMP DBRESTART 2022-10-27 07:19:27
DBUA_TIMESTAMP DBRESTART FINISHED 2022-10-27 07:19:27 Container=CDB$ROOT Id
=1
DBUA_TIMESTAMP DBRESTART NONE 2022-10-27 07:19:27
1 row selected.
TIMESTAMP
--------------------------------------------------------------------------------
DBUA_TIMESTAMP CATUPPST STARTED 2022-10-27 07:19:27 Container=CDB$ROOT Id=
1
1 row selected.
TIMESTAMP
--------------------------------------------------------------------------------
COMP_TIMESTAMP POSTUP_BGN 2022-10-27 07:19:27
DBUA_TIMESTAMP POSTUP_BGN FINISHED 2022-10-27 07:19:27 Container=CDB$ROOT Id
=1
DBUA_TIMESTAMP POSTUP_BGN NONE 2022-10-27 07:19:27
1 row selected.
TIMESTAMP
--------------------------------------------------------------------------------
COMP_TIMESTAMP CATREQ_BGN 2022-10-27 07:19:27
DBUA_TIMESTAMP CATREQ_BGN FINISHED 2022-10-27 07:19:27 Container=CDB$ROOT Id
=1
DBUA_TIMESTAMP CATREQ_BGN NONE 2022-10-27 07:19:27
1 row selected.
PL/SQL procedure successfully completed.
sPrvVersion = 12.2.0.1.0 nPrevMajorVer = 12
sRetFunc = ?/rdbms/admin/catupshd.sql
catrequtlmg: utlmmig.sql (bootstrap objects migration) not called
catrequtlmg: Gathering statistics not required returning
PL/SQL procedure successfully completed.
PL/SQL procedure successfully completed.
TIMESTAMP
--------------------------------------------------------------------------------
COMP_TIMESTAMP CATREQ_END 2022-10-27 07:19:27
DBUA_TIMESTAMP CATREQ_END FINISHED 2022-10-27 07:19:27 Container=CDB$ROOT Id
=1
DBUA_TIMESTAMP CATREQ_END NONE 2022-10-27 07:19:27
1 row selected.
catuppst: Dropping library DBMS_DDL_INTERNAL_LIB
PL/SQL procedure successfully completed.
catuppst: Dropping view _CURRENT_EDITION_OBJ_MIG
PL/SQL procedure successfully completed.
catuppst: Dropping view _CURRENT_EDITION_STUB_MIG
PL/SQL procedure successfully completed.
catuppst: Dropping view _ACTUAL_EDITION_OBJ_MIG
PL/SQL procedure successfully completed.
catuppst: Dropping view DBA_PART_KEY_COLUMNS_V$_MIG
PL/SQL procedure successfully completed.
catuppst: Dropping view DBA_SUBPART_KEY_COLUMNS_V$_MIG
PL/SQL procedure successfully completed.
catuppst: Dropping table OBJ$MIG
catuppst: Dropping table USER$MIG
catuppst: Dropping table COL$MIG
catuppst: Dropping table CLU$MIG
catuppst: Dropping table CON$MIG
catuppst: Dropping table BOOTSTRAP$MIG
catuppst: Dropping table TAB$MIG
catuppst: Dropping table TS$MIG
catuppst: Dropping table IND$MIG
catuppst: Dropping table ICOL$MIG
catuppst: Dropping table LOB$MIG
catuppst: Dropping table COLTYPE$MIG
catuppst: Dropping table SUBCOLTYPE$MIG
catuppst: Dropping table NTAB$MIG
catuppst: Dropping table REFCON$MIG
catuppst: Dropping table OPQTYPE$MIG
catuppst: Dropping table ICOLDEP$MIG
catuppst: Dropping table VIEWTRCOL$MIG
catuppst: Dropping table ATTRCOL$MIG
catuppst: Dropping table TYPE_MISC$MIG
catuppst: Dropping table LIBRARY$MIG
catuppst: Dropping table ASSEMBLY$MIG
catuppst: Dropping table TSQ$MIG
catuppst: Dropping table FET$MIG
PL/SQL procedure successfully completed.
PL/SQL procedure successfully completed.
PL/SQL procedure successfully completed.
TIMESTAMP
--------------------------------------------------------------------------------
COMP_TIMESTAMP POSTUP_END 2022-10-27 07:19:27
DBUA_TIMESTAMP POSTUP_END FINISHED 2022-10-27 07:19:27 Container=CDB$ROOT Id
=1
DBUA_TIMESTAMP POSTUP_END NONE 2022-10-27 07:19:27
1 row selected.
TIMESTAMP
--------------------------------------------------------------------------------
COMP_TIMESTAMP CATUPPST 2022-10-27 07:19:27
DBUA_TIMESTAMP CATUPPST FINISHED 2022-10-27 07:19:27 Container=CDB$ROOT Id
=1
DBUA_TIMESTAMP CATUPPST NONE 2022-10-27 07:19:27
1 row selected.
Session altered.
</code></b></pre>
<p><b>28. Run utlusts.sql TEXT</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> @?/rdbms/admin/utlusts.sql TEXT
Oracle Database Release 19 Post-Upgrade Status Tool 10-27-2022 07:22:0
Container Database: CDBTRAIN
[CON_ID: 1 => CDB$ROOT]
Component Current Full Elapsed Time
Name Status Version HH:MM:SS
Oracle Server VALID 19.16.0.0.0 00:26:05
JServer JAVA Virtual Machine VALID 19.16.0.0.0 00:02:40
Oracle XDK VALID 19.16.0.0.0 00:01:24
Oracle Database Java Packages VALID 19.16.0.0.0 00:00:16
OLAP Analytic Workspace VALID 19.16.0.0.0 00:00:20
Oracle Label Security VALID 19.16.0.0.0 00:00:09
Oracle Database Vault VALID 19.16.0.0.0 00:00:25
Oracle Text VALID 19.16.0.0.0 00:00:43
Oracle Workspace Manager VALID 19.16.0.0.0 00:00:35
Oracle Real Application Clusters VALID 19.16.0.0.0 00:00:00
Oracle XML Database VALID 19.16.0.0.0 00:01:36
Oracle Multimedia VALID 19.16.0.0.0 00:01:06
Spatial VALID 19.16.0.0.0 00:08:21
Oracle OLAP API VALID 19.16.0.0.0 00:00:14
Datapatch 00:01:01
Final Actions 00:01:07
Post Upgrade 00:00:00
Post Compile 00:00:06
Total Upgrade Time: 00:45:28 [CON_ID: 1 => CDB$ROOT]
Database time zone version is 32. It meets current release needs.
</code></b></pre>
<p><b>29. Add Database using old spfile will all the cluster parameter intact .
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[oracle@dm01db01 bin]$ srvctl add database -d CDBTRAIN -o /oracle/app/orawork/product/19.0.0.0/db_home1 -spfile +DATAC1/CDBTRAIN/PARAMETERFILE/spfile.270.1119144227 -pwfile +DATAC1/CDBTRAIN/PASSWORD/pwdcdbtrain.258.1119142913
[oracle@dm01db01 bin]$
</code></b></pre>
<p><b>30. Add instance after the upgrade :</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
./srvctl add instance -i CDBTRAIN1 -d CDBTRAIN -n dm01db01
./srvctl add instance -i CDBTRAIN2 -d CDBTRAIN -n dm01db02
</code></b></pre>
<p><b>31. Shutdown database and start database in cluster mode with srvctl command </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[oracle@dm01db01 bin]$ sqlplus / as sysdba
SQL*Plus: Release 19.0.0.0.0 - Production on Thu Oct 27 07:34:55 2022
Version 19.16.0.0.0
Copyright (c) 1982, 2022, Oracle. All rights reserved.
Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.16.0.0.0
SQL> shu iimmediate
SP2-0717: illegal SHUTDOWN option
SQL> shu immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
[oracle@dm01db02 dbs]$ srvctl start database -d CDBTRAIN
[oracle@dm01db02 dbs]$
[oracle@dm01db02 dbs]$
</code></b></pre>
<p><b>32. Check database status :</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[oracle@dm01db02 dbs]$ srvctl status database -d CDBTRAIN
Instance CDBTRAIN1 is running on node dm01db01
Instance CDBTRAIN2 is running on node dm01db02
srvctl status database -d CDBTRAIN -v -f
[oracle@dm01db02 dbs]$ srvctl status database -d CDBTRAIN -v -f
Instance CDBTRAIN1 is running on node dm01db01. Instance status: Open.
Instance CDBTRAIN2 is running on node dm01db02. Instance status: Open.
SQL> set pages 9999 lines 300
SQL> col OPEN_MODE for a10
col HOST_NAME for a30
select INST_ID,INSTANCE_NAME, name DB_NAME,HOST_NAME,DATABASE_ROLE,LOG_MODE,OPEN_MODE,version DB_VERSION,LOGINS,to_char(STARTUP_TIME,'DD-MON-YYYY HH24:MI:SS') "DB UP TIME" from v$database,gv$instance;
SQL> SQL>
INST_ID INSTANCE_NAME DB_NAME HOST_NAME DATABASE_ROLE LOG_MODE OPEN_MODE DB_VERSION LOGINS DB UP TIME
---------- ---------------- --------- ------------------------------ ---------------- ------------ ---------- ----------------- ---------- -----------------------------
1 CDBTRAIN1 CDBTRAIN dm01db01.database.com PRIMARY ARCHIVELOG READ WRITE 19.0.0.0.0 ALLOWED 27-OCT-2022 07:36:44
2 CDBTRAIN2 CDBTRAIN dm01db02.database.com PRIMARY ARCHIVELOG READ WRITE 19.0.0.0.0 ALLOWED 27-OCT-2022 07:46:19
</code></b></pre>
<p><b>33. check version after upgrade .</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> select banner_full from gv$version;
BANNER_FULL
--------------------------------------------------------------------------------
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.16.0.0.0
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.16.0.0.0
SQL> show pdbs
CON_ID CON_NAME OPEN MODE RESTRICTED
---------- ------------------------------ ---------- ----------
2 PDB$SEED READ ONLY NO
3 TRAINDB READ WRITE NO
</code></b></pre>
<p><b>34. check with the crsctl command db </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[grid@dm01db01 ~]$ crsctl status res ora.cdbtrain.db -t
--------------------------------------------------------------------------------
Name Target State Server State details
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.cdbtrain.db
1 ONLINE ONLINE dm01db01 Open,HOME=/oracle/ap
p/orawork/product/19
.0.0.0/db_home1,STAB
LE
2 ONLINE ONLINE dm01db02 Open,HOME=/oracle/ap
p/orawork/product/19
.0.0.0/db_home1,STAB
LE
--------------------------------------------------------------------------------
[grid@dm01db01 ~]$
</code></b></pre>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[grid@dm01db01 ~]$ crsctl status res -t
--------------------------------------------------------------------------------
Name Target State Server State details
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.LISTENER.lsnr
ONLINE ONLINE dm01db01 STABLE
ONLINE ONLINE dm01db02 STABLE
ora.chad
ONLINE ONLINE dm01db01 STABLE
OFFLINE OFFLINE dm01db02 STABLE
ora.net1.network
ONLINE ONLINE dm01db01 STABLE
ONLINE ONLINE dm01db02 STABLE
ora.ons
ONLINE ONLINE dm01db01 STABLE
ONLINE ONLINE dm01db02 STABLE
ora.proxy_advm
OFFLINE OFFLINE dm01db01 STABLE
OFFLINE OFFLINE dm01db02 STABLE
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.ASMNET1LSNR_ASM.lsnr(ora.asmgroup)
1 ONLINE ONLINE dm01db01 STABLE
2 ONLINE ONLINE dm01db02 STABLE
ora.DATAC1.dg(ora.asmgroup)
1 ONLINE ONLINE dm01db01 STABLE
2 ONLINE ONLINE dm01db02 STABLE
ora.LISTENER_SCAN1.lsnr
1 ONLINE ONLINE dm01db01 STABLE
ora.LISTENER_SCAN2.lsnr
1 ONLINE ONLINE dm01db02 STABLE
ora.RECOC1.dg(ora.asmgroup)
1 ONLINE ONLINE dm01db01 STABLE
2 ONLINE ONLINE dm01db02 STABLE
ora.asm(ora.asmgroup)
1 ONLINE ONLINE dm01db01 Started,STABLE
2 ONLINE ONLINE dm01db02 Started,STABLE
ora.asmnet1.asmnetwork(ora.asmgroup)
1 ONLINE ONLINE dm01db01 STABLE
2 ONLINE ONLINE dm01db02 STABLE
ora.cdbtrain.db
1 ONLINE ONLINE dm01db01 Open,HOME=/oracle/ap
p/orawork/product/19
.0.0.0/db_home1,STAB
LE
2 ONLINE ONLINE dm01db02 Open,HOME=/oracle/ap
p/orawork/product/19
.0.0.0/db_home1,STAB
LE
ora.cvu
1 ONLINE ONLINE dm01db02 STABLE
ora.dm01db01.vip
1 ONLINE ONLINE dm01db01 STABLE
ora.dm01db02.vip
1 ONLINE ONLINE dm01db02 STABLE
ora.qosmserver
1 ONLINE ONLINE dm01db02 STABLE
ora.scan1.vip
1 ONLINE ONLINE dm01db01 STABLE
ora.scan2.vip
1 ONLINE ONLINE dm01db02 STABLE
--------------------------------------------------------------------------------
</code></b></pre>
<p><b>Fall back plan :</b></p>
<p><b>1. Shutdown immediate;</b></p>
<p><b>2. set ORACLE_HOME to 12.2</b></p>
<p><b>3. Start up mount ( with the 12c spfile)</b></p>
<p><b>4. select * from v$restore_point;</b></p>
<p><b>5. flashback database to restore point FB_UPGRADE. ( this restore point was created before upgrade)</b></p>
<p><b>6. alter database open resetlogs;</b></p>
<p><b>7. Start database from both Instance.</b></p>
<p><b>Hope this will help , Any suggestions , put diwn in comment box.
<p><b>Regards
<p><b>Sultan KhanSultan Khanhttp://www.blogger.com/profile/12933538356533244884noreply@blogger.com0tag:blogger.com,1999:blog-399436389180403563.post-82237292434548258552022-11-02T03:01:00.002+05:302023-04-18T18:21:26.366+05:30How to Upgrade RAC Grid from 12.2 to 19.16 <p><b>Hello Friend's,</b></p>
<p><b>In this post we will discuss about the upgrade of RAC Grid from version 12.2 (33583921) to patch 19.16 </b></p>
<p><b>So Lets get started .</b></p>
<div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7X5g7yfdVNgLUj8sMKtXNw8GctR-dZIxUkH0e2QCb6Fw8Bgo8UWTbVwJXAXWWoXxRWTuwtf_quUWD67IUE_moQyyneQL7vGffW-fddzARgRWekNXwqswhKLsckfbUG8_cAyiRC5uB7CdoKQzDvr-EO3W9sh1XyMBs1Ou5qcWewDpQUm1OK2RZN4tRiA/s1600/upgrade2.png" style="display: block; padding: 1em 0; text-align: center; "><img alt="How to Upgrade RAC Grid from 12.2 to 19.16 " border="0" data-original-height="229" data-original-width="360" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7X5g7yfdVNgLUj8sMKtXNw8GctR-dZIxUkH0e2QCb6Fw8Bgo8UWTbVwJXAXWWoXxRWTuwtf_quUWD67IUE_moQyyneQL7vGffW-fddzARgRWekNXwqswhKLsckfbUG8_cAyiRC5uB7CdoKQzDvr-EO3W9sh1XyMBs1Ou5qcWewDpQUm1OK2RZN4tRiA/s1600/upgrade2.png"/></a></div>
<p><b>Summary Steps to upgrade Grid.</b></p>
<p>1)Review the pre-upgrade checklist.</p><p>2)Download 19c Grid software.</p><p>3)Apply mandatory 19c patches.</p><p>4)Dry-run upgrade.</p><p>5)Upgrade Grid.</p><p>6)Verify Grid upgrade.</p>
<p><b>Enviornment </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
RAC nodes : dm01db01, dm01db02
DB Name : CDBFINDB
DB Instances : CDBFINDB1, CDBFINDB2
Current DB version : 12.2.0.1 (33583921)
Grid upgraded to version: 19.16 patch (34130714)
Cluster Storage used : ASM
Platform : OEL 7.8
Current Grid HOME : /Grid/app/gridwork/gr_12.2
New 19c Grid HOME : /Grid/app/gridwork/gr_19.16
</code></b></pre>
<p><b>Download AHF that include both Orachk and EXAchk Doc ID 2550798.1</b></p>
<p><b>Apply Path on new 19c home before install</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[grid@dm01db01 gr_19.16]$ ./gridSetup.sh -applyPSU /oracle/GR_Patch/34130714 -applyOneOffs /oracle/GR_Patch/34130714
Preparing the home to patch...
Applying the patch /oracle/GR_Patch/34130714...
Successfully applied the patch.
Applying the patch /oracle/GR_Patch/34130714...
Successfully applied the patch.
The log can be found at: /Grid/app/gridwork/oraInventory/logs/GridSetupActions2022-10-20_06-02-48PM/installerPatchActions_2022-10-20_06-02-48PM.log
Launching Oracle Grid Infrastructure Setup Wizard...
</code></b></pre>
<p><b>Start Dry run for upgrade.</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[grid@dm01db01 gr_19.16]$ ./gridSetup.sh -dryRunForUpgrade
Launching Oracle Grid Infrastructure Setup Wizard...
</code></b></pre>
<div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicSJ60Jo9tWqAYYB3CAcGbyDVhNTyQLkDyJiCrFAFkv4R_VQ0-0iuF9nhbuWGM_KbJC3OfHPLpHHlU3ltXohGGZZ7v4JNow9A4uA1amksBx1-dDCCa9NbrZbGQjcINtLxTHFPZsUopGy9PXIRHrtaPZnvlIZZocXSLreUMgqkz3fz3BEnOY-arw5OUbg/s1600/Dry1.png" style="clear: right; display: block; float: right; padding: 1em 0px; text-align: center;"><img alt="" border="0" data-original-height="636" data-original-width="799" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicSJ60Jo9tWqAYYB3CAcGbyDVhNTyQLkDyJiCrFAFkv4R_VQ0-0iuF9nhbuWGM_KbJC3OfHPLpHHlU3ltXohGGZZ7v4JNow9A4uA1amksBx1-dDCCa9NbrZbGQjcINtLxTHFPZsUopGy9PXIRHrtaPZnvlIZZocXSLreUMgqkz3fz3BEnOY-arw5OUbg/s1600/Dry1.png" /></a></div>
<div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZ0cYteNOttIr0xp4vkR8_OBJQ9EMTfsLCG9dP3Y8-vV2dzYOvSzpak-rbZFPeYBQFea-3YkDip_xLLkvMXRR5Yo4L4mCmE32zqF2MiHDWGBz9P78PP6TwL3mFKesJifhJjEuYn9Offr-c7LNJ4oYa0wml_JKve56ONjvUWXBRqpB3KsdEls3gyx9GrQ/s1600/Dry2.png" style="clear: right; display: block; float: right; padding: 1em 0px; text-align: center;"><img alt="" border="0" data-original-height="633" data-original-width="799" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZ0cYteNOttIr0xp4vkR8_OBJQ9EMTfsLCG9dP3Y8-vV2dzYOvSzpak-rbZFPeYBQFea-3YkDip_xLLkvMXRR5Yo4L4mCmE32zqF2MiHDWGBz9P78PP6TwL3mFKesJifhJjEuYn9Offr-c7LNJ4oYa0wml_JKve56ONjvUWXBRqpB3KsdEls3gyx9GrQ/s1600/Dry2.png" /></a></div>
<div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0RIUHi5RwvjIxU8-CqS71GbV7SmipqvnsRE6tPHliBdEAb1wnbHfTcOqd33D6I6TC2Fjc4aU0pmFCw7bpQnm6ghharsp3RQc1sIpJfpm010JnCkPhdftXOSdMQpx1the5w8R7GvAVJsbrTuM5u_Jpdb6oLi13C98gLlx9u1fj45A_4fGMZKdnxpTLvg/s1600/Dry3.png" style="clear: right; display: block; float: right; padding: 1em 0px; text-align: center;"><img alt="" border="0" data-original-height="633" data-original-width="800" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0RIUHi5RwvjIxU8-CqS71GbV7SmipqvnsRE6tPHliBdEAb1wnbHfTcOqd33D6I6TC2Fjc4aU0pmFCw7bpQnm6ghharsp3RQc1sIpJfpm010JnCkPhdftXOSdMQpx1the5w8R7GvAVJsbrTuM5u_Jpdb6oLi13C98gLlx9u1fj45A_4fGMZKdnxpTLvg/s1600/Dry3.png" /></a></div>
<div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTZMMlMfNnR-3vG4CnfPRLtlm-3wQ5NQNp3BmtVDz-Sgknn1hqfUvMR7QKTJ4_6qKBsz2Z652sVksEMe7EwtxFbjJfd04Y1C-YZN3bcN9n4GHQgPgsPHjTQsNf4RETbJJ27FJo7V2DaRF5fEZBYAstN2Mm2zgz3BDtpMx_I3SDPdHBwZ1rV_KmjP6xog/s1600/Dry4.png" style="clear: right; display: block; float: right; padding: 1em 0px; text-align: center;"><img alt="" border="0" data-original-height="631" data-original-width="797" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTZMMlMfNnR-3vG4CnfPRLtlm-3wQ5NQNp3BmtVDz-Sgknn1hqfUvMR7QKTJ4_6qKBsz2Z652sVksEMe7EwtxFbjJfd04Y1C-YZN3bcN9n4GHQgPgsPHjTQsNf4RETbJJ27FJo7V2DaRF5fEZBYAstN2Mm2zgz3BDtpMx_I3SDPdHBwZ1rV_KmjP6xog/s1600/Dry4.png" /></a></div>
<div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEichT4DaRI_xy40tBW4fAIpqU4pQ_0twGzPoOCj4Qp3m7oErglIaFv11B430V6LZi_CZFaLnhJ8LRB6hndufYDIcPbaFCKcCxtriH-zi-1AE3Yl_rgfK4NzvnNwJg6WHVsgpWlqGJ2PM52C05q4BgM46DQ-CjSo5JNrIb23lgyNkRx-ZKfzUVozS-26Tg/s1600/Dry5.png" style="clear: right; display: block; float: right; padding: 1em 0px; text-align: center;"><img alt="" border="0" data-original-height="628" data-original-width="798" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEichT4DaRI_xy40tBW4fAIpqU4pQ_0twGzPoOCj4Qp3m7oErglIaFv11B430V6LZi_CZFaLnhJ8LRB6hndufYDIcPbaFCKcCxtriH-zi-1AE3Yl_rgfK4NzvnNwJg6WHVsgpWlqGJ2PM52C05q4BgM46DQ-CjSo5JNrIb23lgyNkRx-ZKfzUVozS-26Tg/s1600/Dry5.png" /></a></div>
<div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGPcWnYHqCJsBfRW2kuqPffvvvWhFoSB2hYLb67ax3yuCkguyWek4gDqix5lW7r3no7JzsWG_eaBAr5i_ZDXxwY2kRPHXxiT11lyRdJEGvh6A6emoP3if4nrSJzNQIoAJ8FtV2WCs8sfPd04pXUeE78xtMMmlVe7hEb_-STRCpY92a8qsxh_2AHXMM9Q/s1600/Dry6.png" style="clear: right; display: block; float: right; padding: 1em 0px; text-align: center;"><img alt="" border="0" data-original-height="630" data-original-width="797" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGPcWnYHqCJsBfRW2kuqPffvvvWhFoSB2hYLb67ax3yuCkguyWek4gDqix5lW7r3no7JzsWG_eaBAr5i_ZDXxwY2kRPHXxiT11lyRdJEGvh6A6emoP3if4nrSJzNQIoAJ8FtV2WCs8sfPd04pXUeE78xtMMmlVe7hEb_-STRCpY92a8qsxh_2AHXMM9Q/s1600/Dry6.png" /></a></div>
<div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtxTTE_-Qxo_A1_sBG9T5UPx2M-M2xZ-6vutY9YWxBtDrHncIYOJKc_v7ibNVTJt-ZSaKBBIuD7vcGNLw9RXs1oSDS5aIbq58_sRmWV2oNII4F5RZwrlaU8H8jA0P2iaUGN4eUOrrzebOQFN87wbf-oVX5DpKAgjZFKEG_u4YSwRJufNCrBe_M7PY_Nw/s1600/Dry7.png" style="clear: right; display: block; float: right; padding: 1em 0px; text-align: center;"><img alt="" border="0" data-original-height="630" data-original-width="801" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtxTTE_-Qxo_A1_sBG9T5UPx2M-M2xZ-6vutY9YWxBtDrHncIYOJKc_v7ibNVTJt-ZSaKBBIuD7vcGNLw9RXs1oSDS5aIbq58_sRmWV2oNII4F5RZwrlaU8H8jA0P2iaUGN4eUOrrzebOQFN87wbf-oVX5DpKAgjZFKEG_u4YSwRJufNCrBe_M7PY_Nw/s1600/Dry7.png" /></a></div>
<div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOOgEg7SqUZUhHVYVW1yzQj4KVxv8BZErMRqcaB3kT6Q4DVhWZWJIxkLyzfAXMq-H9GQDSseysrBx3waTOb7Cn7CF6rt2Yxz8g39QfXABkrB87HgauFB-0K4YWRtsPLPohCwhSc9SeYqqjDmrBVaEHgkPq71IrFiB1n-zTuTbb3buI2pmj82kQBoS3_A/s1600/Dry8.png" style="clear: right; display: block; float: right; padding: 1em 0px; text-align: center;"><img alt="" border="0" data-original-height="630" data-original-width="832" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOOgEg7SqUZUhHVYVW1yzQj4KVxv8BZErMRqcaB3kT6Q4DVhWZWJIxkLyzfAXMq-H9GQDSseysrBx3waTOb7Cn7CF6rt2Yxz8g39QfXABkrB87HgauFB-0K4YWRtsPLPohCwhSc9SeYqqjDmrBVaEHgkPq71IrFiB1n-zTuTbb3buI2pmj82kQBoS3_A/s1600/Dry8.png" /></a></div>
<div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEir9BduiT08Abb0jZunkqgMubMS27EYJ7PhsdE-6xRfDjbNY2IG415LI-vEcXWJgDbsVmKUa7x-2qwTWqRbei2kGyrrhPtQPUOpQrM3zldb2ZD02n22QANEg9twzh8Ob6nDlF98-0jybWOlMQAELglgEoNnmv23wHA6-gLAoeIzLoHquBrS2m-GDE0yDg/s1600/Dry9.png" style="clear: right; display: block; float: right; padding: 1em 0px; text-align: center;"><img alt="" border="0" data-original-height="632" data-original-width="802" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEir9BduiT08Abb0jZunkqgMubMS27EYJ7PhsdE-6xRfDjbNY2IG415LI-vEcXWJgDbsVmKUa7x-2qwTWqRbei2kGyrrhPtQPUOpQrM3zldb2ZD02n22QANEg9twzh8Ob6nDlF98-0jybWOlMQAELglgEoNnmv23wHA6-gLAoeIzLoHquBrS2m-GDE0yDg/s1600/Dry9.png" /></a></div>
<p><b>File Copy Already completed in DRY run, So a task will be lesser in actual one
</b></p><div class="separator" style="clear: both;"><b><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4fN4Ba_zZB_mV4FaCz4kp9wZX_hmhCs6hBnZ7X7eNLjEBDTxDh9wIYOcnb0M5jCd9YTrEiSUs-ya0j5qU4RUHf5GwWEsbS7FyUGYS1EhYSDD67SUVJuA9Q9roy4_cMKJ65PK0Ic39s23hpNitBZGdfAxQUiDImbAZHuFx1o9asYmYgZOWUAxmRbW2Aw/s1600/Filecopy_already_done_in%20Dryrun.png" style="clear: right; display: block; float: right; padding: 1em 0px; text-align: center;"><img alt="" border="0" data-original-height="185" data-original-width="1053" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4fN4Ba_zZB_mV4FaCz4kp9wZX_hmhCs6hBnZ7X7eNLjEBDTxDh9wIYOcnb0M5jCd9YTrEiSUs-ya0j5qU4RUHf5GwWEsbS7FyUGYS1EhYSDD67SUVJuA9Q9roy4_cMKJ65PK0Ic39s23hpNitBZGdfAxQUiDImbAZHuFx1o9asYmYgZOWUAxmRbW2Aw/s1600/Filecopy_already_done_in%20Dryrun.png" /></a></b></div><b>
<p><b>root.sh To be only run on local node after dry run : </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[root@dm01db01 oracle]# /Grid/app/gridwork/gr_19.16/rootupgrade.sh
Performing root user operation.
The following environment variables are set as:
ORACLE_OWNER= grid
ORACLE_HOME= /Grid/app/gridwork/gr_19.16
Enter the full pathname of the local bin directory: [/usr/local/bin]:
The contents of "dbhome" have not changed. No need to overwrite.
The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]: y
Copying oraenv to /usr/local/bin ...
The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]: y
Copying coraenv to /usr/local/bin ...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Relinking oracle with rac_on option
Performing Dry run of the Grid Infrastructure upgrade.
Using configuration parameter file: /Grid/app/gridwork/gr_19.16/crs/install/crsconfig_params
The log of current session can be found at:
/Grid/app/gridwork/gr_base/crsdata/dm01db01/crsconfig/crsupgrade_dryrun_dm01db01_2022-10-20_06-57-22PM.log
2022/10/20 18:57:48 CLSRSC-729: Checking whether CRS entities are ready for upgrade, cluster upgrade will not be attempted now. This operation may take a few minutes.
2022/10/20 18:59:55 CLSRSC-693: CRS entities validation completed successfully.
</code></b></pre>
<p><b>Now Starting with the actual upgrade</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[grid@dm01db01 bin]$ ./crsctl query crs activeversion -f
Oracle Clusterware active version on the cluster is [12.2.0.1.0]. The cluster upgrade state is [NORMAL]. The cluster active patch level is [3975995681].
</code></b></pre>
<div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTHUcH6zEOJ_dsnHN0yL5r-hMkbDsvOC2E9pEjCym6hiOu7qMi4lTvYMkukM_Gd8zYAb8KcY0zAxdj1DjEgZ3y-zKQo3xUOjTcABmDENizZZc6wmhcsm56yGVw4XmMoW0LyO8rinOGNGs2408OuFY-OiM5JKqwmyVgiswTQ8z-7-rE9hYtqBen0WOkyg/s1600/upg2.png" style="clear: right; display: block; float: right; padding: 1em 0px; text-align: center;"><img alt="" border="0" data-original-height="631" data-original-width="799" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTHUcH6zEOJ_dsnHN0yL5r-hMkbDsvOC2E9pEjCym6hiOu7qMi4lTvYMkukM_Gd8zYAb8KcY0zAxdj1DjEgZ3y-zKQo3xUOjTcABmDENizZZc6wmhcsm56yGVw4XmMoW0LyO8rinOGNGs2408OuFY-OiM5JKqwmyVgiswTQ8z-7-rE9hYtqBen0WOkyg/s1600/upg2.png" /></a></div>
<div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbcgWRrsNopkkTUCR9M0di-RF0PI8adZfbPCURHEg72lTct7H04-uogQOPmJXmb7mozeseEOj2QFtqEKxTtYXA9kMmIEPD4-OXuzYDpvxBprv6fNh8szjs1CjbOU8YaQLYyoVueE5qRhTKGrNAkR4LfHJrD7WVWSyMItpumoE8W7dl5sq_2nTAQBmiLQ/s1600/upg3.png" style="clear: right; display: block; float: right; padding: 1em 0px; text-align: center;"><img alt="" border="0" data-original-height="633" data-original-width="795" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbcgWRrsNopkkTUCR9M0di-RF0PI8adZfbPCURHEg72lTct7H04-uogQOPmJXmb7mozeseEOj2QFtqEKxTtYXA9kMmIEPD4-OXuzYDpvxBprv6fNh8szjs1CjbOU8YaQLYyoVueE5qRhTKGrNAkR4LfHJrD7WVWSyMItpumoE8W7dl5sq_2nTAQBmiLQ/s1600/upg3.png" /></a></div>
<div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidMfEnA57oJr_amREu7FvAmN4uujzUKqvM_r2oMoRvnCb6wTPsTFTdMwDR4mlxTq-qo21Y1HVMrs6UNXxKebZc1__6wCnsJLNlRK6vo76Pp9SVSIhI62PmMXtSGaHNAQeh-Bzs9afjx7DaWzEcdCiGmaG-46sk7DLZYL822YILAl6r35fdJ0KgyJiwhA/s1600/upg4.png" style="clear: right; display: block; float: right; padding: 1em 0px; text-align: center;"><img alt="" border="0" data-original-height="632" data-original-width="800" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidMfEnA57oJr_amREu7FvAmN4uujzUKqvM_r2oMoRvnCb6wTPsTFTdMwDR4mlxTq-qo21Y1HVMrs6UNXxKebZc1__6wCnsJLNlRK6vo76Pp9SVSIhI62PmMXtSGaHNAQeh-Bzs9afjx7DaWzEcdCiGmaG-46sk7DLZYL822YILAl6r35fdJ0KgyJiwhA/s1600/upg4.png" /></a></div>
<div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmQPYDrpEL0rVaZveAjoRrDjFW-pNzJCaK_Uujz0ORNih2V03jstdjv8AdBSpXEcP9ZCtqI0ErCVYJPng0JGvpzCibbIFdGJ76y7FCK1JWosUyKHMEM0JhjyvIkPS-MZgWPLqUEuLS2OrsWOQ1GCyicntGq7-jEZ9TyvT0RxMsNeb149DpVMfEZMcumQ/s1600/upg5.png" style="clear: right; display: block; float: right; padding: 1em 0px; text-align: center;"><img alt="" border="0" data-original-height="630" data-original-width="801" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmQPYDrpEL0rVaZveAjoRrDjFW-pNzJCaK_Uujz0ORNih2V03jstdjv8AdBSpXEcP9ZCtqI0ErCVYJPng0JGvpzCibbIFdGJ76y7FCK1JWosUyKHMEM0JhjyvIkPS-MZgWPLqUEuLS2OrsWOQ1GCyicntGq7-jEZ9TyvT0RxMsNeb149DpVMfEZMcumQ/s1600/upg5.png" /></a></div>
<div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQippCB634Zxbb1XPxlfzvAFN3fcDl7EsVJlucSVtlqtvgFdFDV-uA_X300wgCkXHmP9X-Bk1r6Lto8LQPy5HPo40SviwucRun41NkyshWjTeUxUP_t4URAhOyOR5PA8QzQwbpk10w-zTLLMWQiPBlX9_DV63bf6YAi-lBn4YRXiRksqgNR9dmtAWkPA/s1600/upg6.png" style="clear: right; display: block; float: right; padding: 1em 0px; text-align: center;"><img alt="" border="0" data-original-height="626" data-original-width="798" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQippCB634Zxbb1XPxlfzvAFN3fcDl7EsVJlucSVtlqtvgFdFDV-uA_X300wgCkXHmP9X-Bk1r6Lto8LQPy5HPo40SviwucRun41NkyshWjTeUxUP_t4URAhOyOR5PA8QzQwbpk10w-zTLLMWQiPBlX9_DV63bf6YAi-lBn4YRXiRksqgNR9dmtAWkPA/s1600/upg6.png" /></a></div>
<div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_w8qH1AKWeCRsbCQc4xEDUnD2k-riUy4vEVPOxlJ6_lehamVrrBLAMdqBT3MIRaUW4I8xDwR7xAB_wIttJ1IO4N0GmubbQpY7HpfVJ5PAjuC3klBH7Hi9CgNKemXcwOMClOG9MfZanDBQdUP-H8ZpW462gUD7HR4h0-Vp0w0pSKm_hr_evWGHTsoqRQ/s1600/upg7.png" style="clear: right; display: block; float: right; padding: 1em 0px; text-align: center;"><img alt="" border="0" data-original-height="629" data-original-width="801" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_w8qH1AKWeCRsbCQc4xEDUnD2k-riUy4vEVPOxlJ6_lehamVrrBLAMdqBT3MIRaUW4I8xDwR7xAB_wIttJ1IO4N0GmubbQpY7HpfVJ5PAjuC3klBH7Hi9CgNKemXcwOMClOG9MfZanDBQdUP-H8ZpW462gUD7HR4h0-Vp0w0pSKm_hr_evWGHTsoqRQ/s1600/upg7.png" /></a></div>
<div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgf0H3_eAdxQHupij8VUc6cSOtaY9GxKQUalHSM3o4O6V5nhQ4uiaaFR-S3RRPVLLin9GDD905nDgX1nCLK1cq2NT5CC4ySTytXsM84t7FJjzNEGLJXNkf3xhFEVnmwee87rBmRqV6Tbi2xtt6GaTWZE-WfUSuqhOE7ZJgTdng8tFACSjVxBVo5Bh3WBg/s1600/upg8.png" style="clear: right; display: block; float: right; padding: 1em 0px; text-align: center;"><img alt="" border="0" data-original-height="630" data-original-width="803" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgf0H3_eAdxQHupij8VUc6cSOtaY9GxKQUalHSM3o4O6V5nhQ4uiaaFR-S3RRPVLLin9GDD905nDgX1nCLK1cq2NT5CC4ySTytXsM84t7FJjzNEGLJXNkf3xhFEVnmwee87rBmRqV6Tbi2xtt6GaTWZE-WfUSuqhOE7ZJgTdng8tFACSjVxBVo5Bh3WBg/s1600/upg8.png" /></a></div>
<p><b>rootupgrade node1 : </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[root@dm01db01 ~]# /Grid/app/gridwork/gr_19.16/rootupgrade.sh
Performing root user operation.
The following environment variables are set as:
ORACLE_OWNER= grid
ORACLE_HOME= /Grid/app/gridwork/gr_19.16
Enter the full pathname of the local bin directory: [/usr/local/bin]:
The contents of "dbhome" have not changed. No need to overwrite.
The contents of "oraenv" have not changed. No need to overwrite.
The contents of "coraenv" have not changed. No need to overwrite.
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Relinking oracle with rac_on option
Using configuration parameter file: /Grid/app/gridwork/gr_19.16/crs/install/crsconfig_params
The log of current session can be found at:
/Grid/app/gridwork/gr_base/crsdata/dm01db01/crsconfig/crsupgrade_dm01db01_2022-10-20_07-23-22PM.log
2022/10/20 19:23:34 CLSRSC-595: Executing upgrade step 1 of 18: 'UpgradeTFA'.
2022/10/20 19:23:34 CLSRSC-4015: Performing install or upgrade action for Oracle Trace File Analyzer (TFA) Collector.
2022/10/20 19:23:34 CLSRSC-595: Executing upgrade step 2 of 18: 'ValidateEnv'.
2022/10/20 19:23:36 CLSRSC-595: Executing upgrade step 3 of 18: 'GetOldConfig'.
2022/10/20 19:23:36 CLSRSC-692: Checking whether CRS entities are ready for upgrade. This operation may take a few minutes.
2022/10/20 19:24:47 CLSRSC-4003: Successfully patched Oracle Trace File Analyzer (TFA) Collector.
2022/10/20 19:27:33 CLSRSC-693: CRS entities validation completed successfully.
2022/10/20 19:27:37 CLSRSC-464: Starting retrieval of the cluster configuration data
PRCT-1470 : failed to reset the Rapid Home Provisioning (RHP) repository
PRCR-1172 : Failed to execute "srvmhelper" for -getmgmtdbnodename
CRS-4672: Successfully backed up the Voting File for Cluster Synchronization Service.
2022/10/20 19:27:59 CLSRSC-515: Starting OCR manual backup.
2022/10/20 19:28:08 CLSRSC-516: OCR manual backup successful.
2022/10/20 19:28:15 CLSRSC-486:
At this stage of upgrade, the OCR has changed.
Any attempt to downgrade the cluster after this point will require a complete cluster outage to restore the OCR.
2022/10/20 19:28:15 CLSRSC-541:
To downgrade the cluster:
1. All nodes that have been upgraded must be downgraded.
2022/10/20 19:28:15 CLSRSC-542:
2. Before downgrading the last node, the Grid Infrastructure stack on all other cluster nodes must be down.
2022/10/20 19:28:24 CLSRSC-465: Retrieval of the cluster configuration data has successfully completed.
2022/10/20 19:28:24 CLSRSC-595: Executing upgrade step 4 of 18: 'GenSiteGUIDs'.
2022/10/20 19:28:24 CLSRSC-595: Executing upgrade step 5 of 18: 'UpgPrechecks'.
2022/10/20 19:28:43 CLSRSC-595: Executing upgrade step 6 of 18: 'SetupOSD'.
Redirecting to /bin/systemctl restart rsyslog.service
2022/10/20 19:28:43 CLSRSC-595: Executing upgrade step 7 of 18: 'PreUpgrade'.
2022/10/20 19:29:34 CLSRSC-468: Setting Oracle Clusterware and ASM to rolling migration mode
2022/10/20 19:29:34 CLSRSC-482: Running command: '/Grid/app/gridwork/gr_12.2/bin/crsctl start rollingupgrade 19.0.0.0.0'
CRS-1131: The cluster was successfully set to rolling upgrade mode.
2022/10/20 19:29:38 CLSRSC-482: Running command: '/Grid/app/gridwork/gr_19.16/bin/asmca -silent -upgradeNodeASM -nonRolling false -oldCRSHome /Grid/app/gridwork/gr_12.2 -oldCRSVersion 12.2.0.1.0 -firstNode true -startRolling false '
ASM configuration upgraded in local node successfully.
2022/10/20 19:29:44 CLSRSC-469: Successfully set Oracle Clusterware and ASM to rolling migration mode
2022/10/20 19:29:51 CLSRSC-466: Starting shutdown of the current Oracle Grid Infrastructure stack
2022/10/20 19:30:30 CLSRSC-467: Shutdown of the current Oracle Grid Infrastructure stack has successfully completed.
2022/10/20 19:30:36 CLSRSC-595: Executing upgrade step 8 of 18: 'CheckCRSConfig'.
2022/10/20 19:30:37 CLSRSC-595: Executing upgrade step 9 of 18: 'UpgradeOLR'.
2022/10/20 19:30:52 CLSRSC-595: Executing upgrade step 10 of 18: 'ConfigCHMOS'.
2022/10/20 19:31:23 CLSRSC-595: Executing upgrade step 11 of 18: 'UpgradeAFD'.
2022/10/20 19:31:32 CLSRSC-595: Executing upgrade step 12 of 18: 'createOHASD'.
2022/10/20 19:31:43 CLSRSC-595: Executing upgrade step 13 of 18: 'ConfigOHASD'.
2022/10/20 19:31:43 CLSRSC-329: Replacing Clusterware entries in file 'oracle-ohasd.service'
2022/10/20 19:32:20 CLSRSC-595: Executing upgrade step 14 of 18: 'InstallACFS'.
2022/10/20 19:33:22 CLSRSC-595: Executing upgrade step 15 of 18: 'InstallKA'.
2022/10/20 19:33:32 CLSRSC-595: Executing upgrade step 16 of 18: 'UpgradeCluster'.
2022/10/20 19:36:33 CLSRSC-343: Successfully started Oracle Clusterware stack
clscfg: EXISTING configuration version 5 detected.
Successfully taken the backup of node specific configuration in OCR.
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
2022/10/20 19:37:55 CLSRSC-595: Executing upgrade step 17 of 18: 'UpgradeNode'.
2022/10/20 19:38:10 CLSRSC-474: Initiating upgrade of resource types
2022/10/20 19:41:13 CLSRSC-475: Upgrade of resource types successfully initiated.
2022/10/20 19:41:53 CLSRSC-595: Executing upgrade step 18 of 18: 'PostUpgrade'.
2022/10/20 19:42:23 CLSRSC-325: Configure Oracle Grid Infrastructure for a Cluster ... succeeded
</code></b></pre>
<p><b>alert log node 1 : </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
ALTER SYSTEM START ROLLING MIGRATION TO 19.0.0.0.0
Starting background process RMON
2022-10-20T19:29:35.051252+05:30
RMON started with pid=47, OS id=84999
2022-10-20T19:29:37.520247+05:30
NOTE: Cluster is in Rolling Migration from 12.2.0.1.0 to 19.0.0.0.0
2022-10-20T19:29:40.485134+05:30
Restarting dead background process PING
Starting background process PING
2022-10-20T19:29:40.660171+05:30
PING started with pid=11, OS id=85082
2022-10-20T19:29:57.772870+05:30
NOTE: ASM client CDBFINDB1:CDBFINDB:dm01clust disconnected unexpectedly.
---
SUCCESS: ALTER DISKGROUP ALL DISMOUNT /* asm agent *//* {0:0:2591} */
Shutting down archive processes
Archiving is disabled
2022-10-20T19:30:19.241666+05:30
Shutting down archive processes
2022-10-20T19:30:19.244806+05:30
Stopping background process VKTM
Archiving is disabled
2022-10-20T19:30:22.642494+05:30
freeing rdom 3
freeing rdom 2
freeing rdom 1
freeing rdom 0
2022-10-20T19:30:24.535501+05:30
Instance shutdown complete (OS id: 85819)
</code></b></pre>
<p><b>Node 1 got down as root upgrade was running on node1 , but database was running on node 2 as this is a Rolling enviornment </b></p>
<div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEja8M7qCovGIcngkdzeTx3fv2dAaxE1HYiy0RT-JDkGZpJINQXImSUUB5pWsT2Ixof8UwAnmZKLiyeG1X2j-Rhsgy0RKR8TEhXDGKwR3zwHmdvHKi9IJUFX4qdW69uvyFK47Iqs8418lcHH_HJ9rt300-GkV7021G2-fxU5v4LtRxXgDFHNANp_GyG04Q/s1600/Node1_down.png" style="clear: left; display: block; float: left; padding: 1em 0px; text-align: center;"><img alt="" border="0" data-original-height="81" data-original-width="602" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEja8M7qCovGIcngkdzeTx3fv2dAaxE1HYiy0RT-JDkGZpJINQXImSUUB5pWsT2Ixof8UwAnmZKLiyeG1X2j-Rhsgy0RKR8TEhXDGKwR3zwHmdvHKi9IJUFX4qdW69uvyFK47Iqs8418lcHH_HJ9rt300-GkV7021G2-fxU5v4LtRxXgDFHNANp_GyG04Q/s1600/Node1_down.png" /></a></div>
<div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUvs3tlKtReUBasjXOmDAFE76i5Vo6RTynmf4MZVklZ4YFBWrUYp6H9FsH828IsDzwyMbUfzl3avKCP7iCT6tlXg7L6mVhVEy_p1HXZjlUccIT68S4PM0gcR9-1BCEdJ8wjtKZQqtBWlnNdnl08SBTZHUSYCsyGBy8R8itcY92YEUbFyd1T64gtxVxSA/s1600/Node2_still-up_rolling.png" style="clear: left; display: block; float: left; padding: 1em 0px; text-align: center;"><img alt="" border="0" data-original-height="126" data-original-width="594" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUvs3tlKtReUBasjXOmDAFE76i5Vo6RTynmf4MZVklZ4YFBWrUYp6H9FsH828IsDzwyMbUfzl3avKCP7iCT6tlXg7L6mVhVEy_p1HXZjlUccIT68S4PM0gcR9-1BCEdJ8wjtKZQqtBWlnNdnl08SBTZHUSYCsyGBy8R8itcY92YEUbFyd1T64gtxVxSA/s1600/Node2_still-up_rolling.png" /></a></div>
</b><p><b><br /></b></p><p><b><br /></b></p><p><b><br /></b></p><p><b>After Node1 rootupgrade.sh alert log node 1</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
NOTE: Flex client CDBFINDB1:CDBFINDB:dm01clust registered, osid 98095, mbr 0x0, asmb 98012 (reg:107951299)
2022-10-20T19:34:53.440707+05:30
NOTE: found stale ownerid 0x10001 for client CDBFINDB1:CDBFINDB:dm01clust
WARNING: giving up on client id 0x10001 [CDBFINDB1:CDBFINDB:dm01clust] which has not reconnected for 0 seconds (originally from ASM inst +ASM1, reg:3424240868) [stale]
NOTE: removing stale ownerid 0x10001 for client CDBFINDB1:CDBFINDB:dm01clust (reg:3424240868)
NOTE: removing stale cgid 0x10001 for client CDBFINDB1:CDBFINDB:dm01clust (clientid:0x10001 gn:0 startid:0)
NOTE: released resources held for CGID 0x10001 (gn: 0)
NOTE: released resources held for client id 0x10001 (reg:3424240868)
2022-10-20T19:34:54.360450+05:30
NOTE: client CDBFINDB1:CDBFINDB:dm01clust mounted group 1 (DATA)
NOTE: client CDBFINDB1:CDBFINDB:dm01clust mounted group 3 (RECO)
2022-10-20T19:35:45.408688+05:30
ALTER SYSTEM SET local_listener=' (ADDRESS=(PROTOCOL=TCP)(HOST=10.10.4.51)(PORT=1521))' SCOPE=MEMORY SID='+ASM1';
2022-10-20T19:37:17.597671+05:30
NOTE: [clscfg.bin@dm01db01.database.com (TNS V1-V3) 99853] opening OCR file +OCR_VOTE.255.4294967295, osid 99936
NOTE: [clscfg.bin@dm01db01.database.com (TNS V1-V3) 99853] opened OCR file +OCR_VOTE.255.4294967295, osid 99936
2022-10-20T19:41:00.914879+05:30
</code></b></pre>
<p><b>Node2 : rootupgrade.sh</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[root@dm01db02 ~]# /Grid/app/gridwork/gr_19.16/rootupgrade.sh
Performing root user operation.
The following environment variables are set as:
ORACLE_OWNER= grid
ORACLE_HOME= /Grid/app/gridwork/gr_19.16
Enter the full pathname of the local bin directory: [/usr/local/bin]:
The contents of "dbhome" have not changed. No need to overwrite.
The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]:
The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]:
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Relinking oracle with rac_on option
Using configuration parameter file: /Grid/app/gridwork/gr_19.16/crs/install/crsconfig_params
The log of current session can be found at:
/Grid/app/gridwork/gr_base/crsdata/dm01db02/crsconfig/crsupgrade_dm01db02_2022-10-20_07-46-54PM.log
2022/10/20 19:47:04 CLSRSC-595: Executing upgrade step 1 of 18: 'UpgradeTFA'.
2022/10/20 19:47:04 CLSRSC-4015: Performing install or upgrade action for Oracle Trace File Analyzer (TFA) Collector.
2022/10/20 19:47:05 CLSRSC-595: Executing upgrade step 2 of 18: 'ValidateEnv'.
2022/10/20 19:47:07 CLSRSC-595: Executing upgrade step 3 of 18: 'GetOldConfig'.
2022/10/20 19:48:20 CLSRSC-4003: Successfully patched Oracle Trace File Analyzer (TFA) Collector.
2022/10/20 19:48:53 CLSRSC-464: Starting retrieval of the cluster configuration data
2022/10/20 19:49:12 CLSRSC-465: Retrieval of the cluster configuration data has successfully completed.
2022/10/20 19:49:13 CLSRSC-595: Executing upgrade step 4 of 18: 'GenSiteGUIDs'.
2022/10/20 19:49:13 CLSRSC-595: Executing upgrade step 5 of 18: 'UpgPrechecks'.
2022/10/20 19:49:17 CLSRSC-595: Executing upgrade step 6 of 18: 'SetupOSD'.
Redirecting to /bin/systemctl restart rsyslog.service
2022/10/20 19:49:18 CLSRSC-595: Executing upgrade step 7 of 18: 'PreUpgrade'.
ASM configuration upgraded in local node successfully.
2022/10/20 19:49:31 CLSRSC-466: Starting shutdown of the current Oracle Grid Infrastructure stack
2022/10/20 19:50:02 CLSRSC-467: Shutdown of the current Oracle Grid Infrastructure stack has successfully completed.
2022/10/20 19:50:54 CLSRSC-595: Executing upgrade step 8 of 18: 'CheckCRSConfig'.
2022/10/20 19:50:54 CLSRSC-595: Executing upgrade step 9 of 18: 'UpgradeOLR'.
2022/10/20 19:51:04 CLSRSC-595: Executing upgrade step 10 of 18: 'ConfigCHMOS'.
2022/10/20 19:51:35 CLSRSC-595: Executing upgrade step 11 of 18: 'UpgradeAFD'.
2022/10/20 19:51:38 CLSRSC-595: Executing upgrade step 12 of 18: 'createOHASD'.
2022/10/20 19:51:39 CLSRSC-595: Executing upgrade step 13 of 18: 'ConfigOHASD'.
2022/10/20 19:51:40 CLSRSC-329: Replacing Clusterware entries in file 'oracle-ohasd.service'
2022/10/20 19:52:01 CLSRSC-595: Executing upgrade step 14 of 18: 'InstallACFS'.
2022/10/20 19:52:36 CLSRSC-595: Executing upgrade step 15 of 18: 'InstallKA'.
2022/10/20 19:52:38 CLSRSC-595: Executing upgrade step 16 of 18: 'UpgradeCluster'.
2022/10/20 19:55:04 CLSRSC-343: Successfully started Oracle Clusterware stack
clscfg: EXISTING configuration version 19 detected.
Successfully taken the backup of node specific configuration in OCR.
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
2022/10/20 19:56:01 CLSRSC-595: Executing upgrade step 17 of 18: 'UpgradeNode'.
Start upgrade invoked..
2022/10/20 19:56:11 CLSRSC-478: Setting Oracle Clusterware active version on the last node to be upgraded
2022/10/20 19:56:11 CLSRSC-482: Running command: '/Grid/app/gridwork/gr_19.16/bin/crsctl set crs activeversion'
Started to upgrade the active version of Oracle Clusterware. This operation may take a few minutes.
Started to upgrade CSS.
CSS was successfully upgraded.
Started to upgrade Oracle ASM.
Started to upgrade CRS.
CRS was successfully upgraded.
Started to upgrade Oracle ACFS.
Oracle ACFS was successfully upgraded.
Successfully upgraded the active version of Oracle Clusterware.
Oracle Clusterware active version was successfully set to 19.0.0.0.0.
2022/10/20 19:57:21 CLSRSC-479: Successfully set Oracle Clusterware active version
2022/10/20 19:57:21 CLSRSC-476: Finishing upgrade of resource types
2022/10/20 19:57:37 CLSRSC-477: Successfully completed upgrade of resource types
2022/10/20 19:58:42 CLSRSC-595: Executing upgrade step 18 of 18: 'PostUpgrade'.
Successfully updated XAG resources.
2022/10/20 20:00:54 CLSRSC-325: Configure Oracle Grid Infrastructure for a Cluster ... succeeded
</code></b></pre>
<p><b>alert log node 2 :</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
Starting background process RMON
2022-10-20T19:29:35.255629+05:30
RMON started with pid=41, OS id=71631
2022-10-20T19:29:37.738194+05:30
NOTE: Cluster is in Rolling Migration from 12.2.0.1.0 to 19.0.0.0.0
2022-10-20T19:29:41.572453+05:30
Restarting dead background process PING
Starting background process PING
2022-10-20T19:29:41.597769+05:30
PING started with pid=11, OS id=71702
</code></b></pre>
<p><b>Starting rootupgrade on node 2 Alert log</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
2022-10-20T19:49:34.993340+05:30
NOTE: ASM client CDBFINDB2:CDBFINDB:dm01clust disconnected unexpectedly.
NOTE: check client alert log.
2022-10-20T19:49:36.226842+05:30
NOTE: cleaned up ASM client CDBFINDB2:CDBFINDB:dm01clust connection state (reg:2243621334)
2022-10-20T19:49:36.521693+05:30
Dumping diagnostic data in directory=[cdmp_20221020194936], requested by (instance=0, osid=6049), summary=[trace bucket dump request (kfnclDelete0)].
2022-10-20T19:49:37.922173+05:30
NOTE: detected orphaned client id 0x10000.
2022-10-20T19:49:43.938339+05:30
NOTE: client CDBFINDB2:CDBFINDB:dm01clust id 0x10000 has reconnected to ASM inst +ASM2 (reg:2243621334), or has been fenced
2022-10-20T19:49:45.515463+05:30
NOTE: client exited [4773]
-----
SUCCESS: ALTER DISKGROUP ALL DISMOUNT /* asm agent *//* {0:0:1607} */
Shutting down archive processes
Archiving is disabled
2022-10-20T19:49:53.614360+05:30
Shutting down archive processes
Archiving is disabled
2022-10-20T19:49:53.633293+05:30
Stopping background process VKTM
2022-10-20T19:49:55.549489+05:30
freeing rdom 3
freeing rdom 2
freeing rdom 1
freeing rdom 0
2022-10-20T19:49:56.954726+05:30
Instance shutdown complete (OS id: 93778)
</code></b></pre>
<div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOzqvJaWceWk3nitYUI0abgGeoYD6CkONYyS_kXYm1FoUimMXk1_mTYrNEHTmzKM2TUd9RJfFk6mQmLmtrXxvfahbvpFs--zIcti96Rke4t4ziMbYtnvD6sNaBLHX7dXvV-KYHWgalKehtKAFihVp3f_gjhKLaSK8FgPcfyxd_tg974clxp8vQphKjDA/s1600/upg9.png" style="clear: right; display: block; float: right; padding: 1em 0px; text-align: center;"><img alt="" border="0" data-original-height="630" data-original-width="798" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOzqvJaWceWk3nitYUI0abgGeoYD6CkONYyS_kXYm1FoUimMXk1_mTYrNEHTmzKM2TUd9RJfFk6mQmLmtrXxvfahbvpFs--zIcti96Rke4t4ziMbYtnvD6sNaBLHX7dXvV-KYHWgalKehtKAFihVp3f_gjhKLaSK8FgPcfyxd_tg974clxp8vQphKjDA/s1600/upg9.png" /></a></div>
<div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjb-QuWZ_DA6y9syfuJrxWoo4RCbGZYQz38KFbryhu7VFYURSTyM7xkrT6H9cKEjJ-Q5nw-sIjMmeOD18J9MpGz8ahUY4N1cL6Q8nAizVPspR2P1yUT0ImLNQeK35jJx92ca-_NCeysYkawVTGT1zIwG8iKRK0v1qIBaOg16lvHWpqrdlQTglLdzmXYxg/s1600/upg10.png" style="clear: right; display: block; float: right; padding: 1em 0px; text-align: center;"><img alt="" border="0" data-original-height="626" data-original-width="799" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjb-QuWZ_DA6y9syfuJrxWoo4RCbGZYQz38KFbryhu7VFYURSTyM7xkrT6H9cKEjJ-Q5nw-sIjMmeOD18J9MpGz8ahUY4N1cL6Q8nAizVPspR2P1yUT0ImLNQeK35jJx92ca-_NCeysYkawVTGT1zIwG8iKRK0v1qIBaOg16lvHWpqrdlQTglLdzmXYxg/s1600/upg10.png" /></a></div>
<p><b>Check the Active version through the upgrade </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[root@dm01db01 ~]# crsctl query crs activeversion -f
Oracle Clusterware active version on the cluster is [12.2.0.1.0]. The cluster upgrade state is [ROLLING UPGRADE]. The cluster active patch level is [3975995681].
[root@dm01db01 ~]# crsctl query crs activeversion -f
Oracle Clusterware active version on the cluster is [19.0.0.0.0]. The cluster upgrade state is [UPGRADE AV UPDATED]. The cluster active patch level is [896235792].
[root@dm01db01 ~]# crsctl query crs activeversion -f
Oracle Clusterware active version on the cluster is [19.0.0.0.0]. The cluster upgrade state is [UPGRADE FINAL]. The cluster active patch level is [896235792].
[root@dm01db01 ~]# crsctl query crs activeversion -f
Oracle Clusterware active version on the cluster is [19.0.0.0.0]. The cluster upgrade state is [NORMAL]. The cluster active patch level is [896235792].
[root@dm01db01 ~]#
</code></b></pre>
<p><b>check the software version </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[root@dm01db01 ~]# crsctl query crs softwareversion -all
Oracle Clusterware version on node [dm01db01] is [19.0.0.0.0]
Oracle Clusterware version on node [dm01db02] is [19.0.0.0.0]
</code></b></pre>
<p><b>Version after the upgrade : </b></p>
<div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFbPbyEMuFLeXXYH4AFNE0YuRuxb7blvhJI_oWnsy1oK-ARK8AAUiYpZV05iC8lgTWZ40fZ-I0VsM894Ny3h_G7IY3tz1mTfaAGi8yS7TxN1yFrxq-7qV3gDdzlcJl6-K_rxCOuIivzXcrq5CmN0NmB7XhPnPdnG5ueCDUCgrpg0OkD0KTrxMNxciLFA/s1600/Direct_verion_after_grid_upgrade.png" style="clear: right; display: block; float: right; padding: 1em 0px; text-align: center;"><img alt="" border="0" data-original-height="379" data-original-width="666" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFbPbyEMuFLeXXYH4AFNE0YuRuxb7blvhJI_oWnsy1oK-ARK8AAUiYpZV05iC8lgTWZ40fZ-I0VsM894Ny3h_G7IY3tz1mTfaAGi8yS7TxN1yFrxq-7qV3gDdzlcJl6-K_rxCOuIivzXcrq5CmN0NmB7XhPnPdnG5ueCDUCgrpg0OkD0KTrxMNxciLFA/s1600/Direct_verion_after_grid_upgrade.png" /></a></div>
<p><b><br /></b></p><p><b><br /></b></p><p><b><br /></b></p><p><b><br /></b></p><p><b><br /></b></p><p><b><br /></b></p><p><b><br /></b></p><p><b><br /></b></p><p><b><br /></b></p><p><b>Hope This Helps </b></p>
<p>Regards</p><p>Sultan Khan</p> <p></p>Sultan Khanhttp://www.blogger.com/profile/12933538356533244884noreply@blogger.com0tag:blogger.com,1999:blog-399436389180403563.post-5093459173967098972022-10-17T19:23:00.004+05:302023-04-18T18:21:38.614+05:30Steps to Patch 2 Node Oracle RAC 12.2<p><b>Hello Friend's,</b></p>
<p><b>In this post we will discuss about the patching of RAC database of version 12.2 from no patches to patch 12.2.0.1.220118 (33678030)</b></p>
<div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2uocFjMt613mfKLTPjlLI5hD4AkmHC808NBTMR1dhYMLNlipR2oG3XquaXIaEjHnicf9u885l2cJvBKWDqVREJn3dh7i6ckdyyed20XBs3EAq7XbMFyBEP4bb3lDntcJtfpu8Brcv8O_qCthSKjd-lTeRNIXWvfQXw5RmmOHbWFBnywSGtDhTUbpdpQ/s1600/programming-gd72d89548_1920-overlay%20%281%29-overlay.jpg" style="display: block; padding: 1em 0; text-align: center; "><img alt="Steps to Patch 2 Node Oracle RAC 12.2" border="0" data-original-height="1280" data-original-width="1920" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2uocFjMt613mfKLTPjlLI5hD4AkmHC808NBTMR1dhYMLNlipR2oG3XquaXIaEjHnicf9u885l2cJvBKWDqVREJn3dh7i6ckdyyed20XBs3EAq7XbMFyBEP4bb3lDntcJtfpu8Brcv8O_qCthSKjd-lTeRNIXWvfQXw5RmmOHbWFBnywSGtDhTUbpdpQ/s1600/programming-gd72d89548_1920-overlay%20%281%29-overlay.jpg"/></a></div>
<p><b>So lets get started .</b></p>
<p><b>Summary of Steps to be done.</b></p>
<p>1)Check current version of Opatch Tool.</p>
<p>2)Upgrade the Opatch utility.</p>
<p>3)Take the backup of ORACLE_HOME.</p>
<p>4)Check Conflict for Patch downloaded.</p>
<p>5)Check space on Grid and oracle Home.</p>
<p>6)Apply the Patch on Node 1 and 2 one by one.</p>
<p><b>Patch level to be downloaded :</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
33583921 Grid + database
</code></pre>
<p><b>Database Details : </b></p>
<div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtMdUs6hrDigAM5pF-iuSCjh--eeSaJ3cxn5bfJo1Pf79L7xXmAx1DSMO37_BMSMw9BVAJ5D6rqMxBTzvzGBW9yOAtGt8I1x2_42ROFuDZnWYCYMth2EasN-mW1Qcb4IKcJSRBHZKam0LqtV8cScLTN11f8pYKg03W4ap3oUA_koTgWFTN9NwmEtEthg/s1600/Database_details.PNG" style="display: block; padding: 1em 0; text-align: center; "><img alt="" border="0" data-original-height="72" data-original-width="553" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtMdUs6hrDigAM5pF-iuSCjh--eeSaJ3cxn5bfJo1Pf79L7xXmAx1DSMO37_BMSMw9BVAJ5D6rqMxBTzvzGBW9yOAtGt8I1x2_42ROFuDZnWYCYMth2EasN-mW1Qcb4IKcJSRBHZKam0LqtV8cScLTN11f8pYKg03W4ap3oUA_koTgWFTN9NwmEtEthg/s1600/Database_details.PNG"/></a></div>
<p><b>Initial Patches Installed :</b></p>
<p>Database Patch Installed :</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[oracle@dm01db01 oracle]$ $ORACLE_HOME/OPatch/opatch lspatches
There are no Interim patches installed in this Oracle Home "/oracle/app/orawork/product/12.2.0.1/db_1".
OPatch succeeded.
[oracle@dm01db01 oracle]$
</code></pre>
<p>Grid Patch Installed :</p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[grid@dm01db01 trace]$ $ORACLE_HOME/OPatch/opatch lspatches
There are no Interim patches installed in this Oracle Home "/Grid/app/gridwork/gr_12.2".
OPatch succeeded.
</code></pre>
<p><b>Initial Opatch version :</b></p>
<p>Opatch version : to be done on Both Nodes </p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[grid@dm01db01 OPatch]$ ./opatch version
OPatch Version: 12.2.0.1.6
OPatch succeeded.
[grid@dm01db01 OPatch]$
[oracle@dm01db01 OPatch]$ ./opatch version
OPatch Version: 12.2.0.1.6
OPatch succeeded.
[oracle@dm01db01 OPatch]$
</code></pre>
<p><b>update Opatch on both nodes oracle and grid.</b></p>
<p><b>===========After Opatch Update===========</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[grid@dm01db01 OPatch]$ ./opatch version
OPatch Version: 12.2.0.1.32
OPatch succeeded.
[oracle@dm01db01 OPatch]$ ./opatch version
OPatch Version: 12.2.0.1.32
OPatch succeeded.
</code></pre>
<p><b>Check the conflict of patch on grid and database as below :</b></p>
<p><b>===============Grid Conflict========================</b></p>
<p>% $ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /oracle/33583921/33587128</p>
<p>% $ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /oracle/33583921/33678030</p>
<p>% $ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /oracle/33583921/33116894</p>
<p>% $ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /oracle/33583921/26839277</p>
<p>% $ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /oracle/33583921/33610989</p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[grid@dm01db01 oracle]$ $ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /oracle/33583921/33587128
Oracle Interim Patch Installer version 12.2.0.1.32
Copyright (c) 2022, Oracle Corporation. All rights reserved.
PREREQ session
Oracle Home : /Grid/app/gridwork/gr_12.2
Central Inventory : /Grid/app/gridwork/oraInventory
from : /Grid/app/gridwork/gr_12.2/oraInst.loc
OPatch version : 12.2.0.1.32
OUI version : 12.2.0.1.4
Log file location : /Grid/app/gridwork/gr_12.2/cfgtoollogs/opatch/opatch2022-10-17_17-42-21PM_1.log
Invoking prereq "checkconflictagainstohwithdetail"
Prereq "checkConflictAgainstOHWithDetail" passed.
OPatch succeeded.
[grid@dm01db01 oracle]$ $ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /oracle/33583921/33678030
Oracle Interim Patch Installer version 12.2.0.1.32
Copyright (c) 2022, Oracle Corporation. All rights reserved.
PREREQ session
Oracle Home : /Grid/app/gridwork/gr_12.2
Central Inventory : /Grid/app/gridwork/oraInventory
from : /Grid/app/gridwork/gr_12.2/oraInst.loc
OPatch version : 12.2.0.1.32
OUI version : 12.2.0.1.4
Log file location : /Grid/app/gridwork/gr_12.2/cfgtoollogs/opatch/opatch2022-10-17_17-42-36PM_1.log
Invoking prereq "checkconflictagainstohwithdetail"
Prereq "checkConflictAgainstOHWithDetail" passed.
OPatch succeeded.
[grid@dm01db01 oracle]$
[grid@dm01db01 oracle]$ $ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /oracle/33583921/33116894
Oracle Interim Patch Installer version 12.2.0.1.32
Copyright (c) 2022, Oracle Corporation. All rights reserved.
PREREQ session
Oracle Home : /Grid/app/gridwork/gr_12.2
Central Inventory : /Grid/app/gridwork/oraInventory
from : /Grid/app/gridwork/gr_12.2/oraInst.loc
OPatch version : 12.2.0.1.32
OUI version : 12.2.0.1.4
Log file location : /Grid/app/gridwork/gr_12.2/cfgtoollogs/opatch/opatch2022-10-17_17-42-50PM_1.log
Invoking prereq "checkconflictagainstohwithdetail"
Prereq "checkConflictAgainstOHWithDetail" passed.
OPatch succeeded.
[grid@dm01db01 oracle]$ $ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /oracle/33583921/26839277
Oracle Interim Patch Installer version 12.2.0.1.32
Copyright (c) 2022, Oracle Corporation. All rights reserved.
PREREQ session
Oracle Home : /Grid/app/gridwork/gr_12.2
Central Inventory : /Grid/app/gridwork/oraInventory
from : /Grid/app/gridwork/gr_12.2/oraInst.loc
OPatch version : 12.2.0.1.32
OUI version : 12.2.0.1.4
Log file location : /Grid/app/gridwork/gr_12.2/cfgtoollogs/opatch/opatch2022-10-17_17-43-03PM_1.log
Invoking prereq "checkconflictagainstohwithdetail"
Prereq "checkConflictAgainstOHWithDetail" passed.
OPatch succeeded.
[grid@dm01db01 oracle]$ $ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /oracle/33583921/33610989
Oracle Interim Patch Installer version 12.2.0.1.32
Copyright (c) 2022, Oracle Corporation. All rights reserved.
PREREQ session
Oracle Home : /Grid/app/gridwork/gr_12.2
Central Inventory : /Grid/app/gridwork/oraInventory
from : /Grid/app/gridwork/gr_12.2/oraInst.loc
OPatch version : 12.2.0.1.32
OUI version : 12.2.0.1.4
Log file location : /Grid/app/gridwork/gr_12.2/cfgtoollogs/opatch/opatch2022-10-17_17-43-23PM_1.log
Invoking prereq "checkconflictagainstohwithdetail"
Prereq "checkConflictAgainstOHWithDetail" passed.
OPatch succeeded.
[grid@dm01db01 oracle]$
</code></pre>
<p><b>====================DB_Home Conflict=====================================</b></p>
For database home, as home user:
<p>% $ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /oracle/33583921/33587128</p>
<p>% $ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /oracle/33583921/33678030</p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[oracle@dm01db01 oracle]$ $ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /oracle/33583921/33587128
Oracle Interim Patch Installer version 12.2.0.1.32
Copyright (c) 2022, Oracle Corporation. All rights reserved.
PREREQ session
Oracle Home : /oracle/app/orawork/product/12.2.0.1/db_1
Central Inventory : /Grid/app/gridwork/oraInventory
from : /oracle/app/orawork/product/12.2.0.1/db_1/oraInst.loc
OPatch version : 12.2.0.1.32
OUI version : 12.2.0.1.4
Log file location : /oracle/app/orawork/product/12.2.0.1/db_1/cfgtoollogs/opatch/opatch2022-10-17_17-44-47PM_1.log
Invoking prereq "checkconflictagainstohwithdetail"
Prereq "checkConflictAgainstOHWithDetail" passed.
OPatch succeeded.
[oracle@dm01db01 oracle]$
[oracle@dm01db01 oracle]$ $ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /oracle/33583921/33678030
Oracle Interim Patch Installer version 12.2.0.1.32
Copyright (c) 2022, Oracle Corporation. All rights reserved.
PREREQ session
Oracle Home : /oracle/app/orawork/product/12.2.0.1/db_1
Central Inventory : /Grid/app/gridwork/oraInventory
from : /oracle/app/orawork/product/12.2.0.1/db_1/oraInst.loc
OPatch version : 12.2.0.1.32
OUI version : 12.2.0.1.4
Log file location : /oracle/app/orawork/product/12.2.0.1/db_1/cfgtoollogs/opatch/opatch2022-10-17_17-45-03PM_1.log
Invoking prereq "checkconflictagainstohwithdetail"
Prereq "checkConflictAgainstOHWithDetail" passed.
OPatch succeeded.
</code></pre>
<p><b>Oracle and Grid home space check : </b></p>
<p><b>=======================Space Check GRID=====================================</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[grid@dm01db01 oracle]$ $ORACLE_HOME/OPatch/opatch prereq CheckSystemSpace -phBaseFile /oracle/patchlist_gihome.txt
Oracle Interim Patch Installer version 12.2.0.1.32
Copyright (c) 2022, Oracle Corporation. All rights reserved.
PREREQ session
Oracle Home : /Grid/app/gridwork/gr_12.2
Central Inventory : /Grid/app/gridwork/oraInventory
from : /Grid/app/gridwork/gr_12.2/oraInst.loc
OPatch version : 12.2.0.1.32
OUI version : 12.2.0.1.4
Log file location : /Grid/app/gridwork/gr_12.2/cfgtoollogs/opatch/opatch2022-10-17_17-49-32PM_1.log
Invoking prereq "checksystemspace"
Prereq "checkSystemSpace" passed.
OPatch succeeded.
</code></pre>
<p><b>Oracle and Grid home space check : </b></p>
<p><b>=======================Space Check Database=====================================</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[oracle@dm01db01 oracle]$ vi patch_list_dbhome.txt
[oracle@dm01db01 oracle]$ $ORACLE_HOME/OPatch/opatch prereq CheckSystemSpace -phBaseFile /oracle/patch_list_dbhome.txt
Oracle Interim Patch Installer version 12.2.0.1.32
Copyright (c) 2022, Oracle Corporation. All rights reserved.
PREREQ session
Oracle Home : /oracle/app/orawork/product/12.2.0.1/db_1
Central Inventory : /Grid/app/gridwork/oraInventory
from : /oracle/app/orawork/product/12.2.0.1/db_1/oraInst.loc
OPatch version : 12.2.0.1.32
OUI version : 12.2.0.1.4
Log file location : /oracle/app/orawork/product/12.2.0.1/db_1/cfgtoollogs/opatch/opatch2022-10-17_17-48-26PM_1.log
Invoking prereq "checksystemspace"
Prereq "checkSystemSpace" passed.
OPatch succeeded.
</code></pre>
<p><b>Analyze the patch to be installed :</b></p>
<p><b>======================================Analyze_Patch=================================</b></p>
<p><b>$ORACLE_HOME/OPatch/opatchauto apply /oracle/33583921 -analyze
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[root@dm01db01 oracle]# $ORACLE_HOME/OPatch/opatchauto apply /oracle/33583921 -analyze
OPatchauto session is initiated at Mon Oct 17 17:51:14 2022
System initialization log file is /Grid/app/gridwork/gr_12.2/cfgtoollogs/opatchautodb/systemconfig2022-10-17_05-51-19PM.log.
Session log file is /Grid/app/gridwork/gr_12.2/cfgtoollogs/opatchauto/opatchauto2022-10-17_05-52-49PM.log
The id for this session is QATL
Executing OPatch prereq operations to verify patch applicability on home /Grid/app/gridwork/gr_12.2
Executing OPatch prereq operations to verify patch applicability on home /oracle/app/orawork/product/12.2.0.1/db_1
Patch applicability verified successfully on home /Grid/app/gridwork/gr_12.2
Patch applicability verified successfully on home /oracle/app/orawork/product/12.2.0.1/db_1
Executing patch validation checks on home /Grid/app/gridwork/gr_12.2
Patch validation checks successfully completed on home /Grid/app/gridwork/gr_12.2
Executing patch validation checks on home /oracle/app/orawork/product/12.2.0.1/db_1
Patch validation checks successfully completed on home /oracle/app/orawork/product/12.2.0.1/db_1
Verifying SQL patch applicability on home /oracle/app/orawork/product/12.2.0.1/db_1
SQL patch applicability verified successfully on home /oracle/app/orawork/product/12.2.0.1/db_1
OPatchAuto successful.
--------------------------------Summary--------------------------------
Analysis for applying patches has completed successfully:
Host:dm01db01
CRS Home:/Grid/app/gridwork/gr_12.2
Version:12.2.0.1.0
==Following patches were SUCCESSFULLY analyzed to be applied:
Patch: /oracle/33583921/33678030
Log: /Grid/app/gridwork/gr_12.2/cfgtoollogs/opatchauto/core/opatch/opatch2022-10-17_17-53-36PM_1.log
Patch: /oracle/33583921/33116894
Log: /Grid/app/gridwork/gr_12.2/cfgtoollogs/opatchauto/core/opatch/opatch2022-10-17_17-53-36PM_1.log
Patch: /oracle/33583921/26839277
Log: /Grid/app/gridwork/gr_12.2/cfgtoollogs/opatchauto/core/opatch/opatch2022-10-17_17-53-36PM_1.log
Patch: /oracle/33583921/33610989
Log: /Grid/app/gridwork/gr_12.2/cfgtoollogs/opatchauto/core/opatch/opatch2022-10-17_17-53-36PM_1.log
Patch: /oracle/33583921/33587128
Log: /Grid/app/gridwork/gr_12.2/cfgtoollogs/opatchauto/core/opatch/opatch2022-10-17_17-53-36PM_1.log
Host:dm01db01
RAC Home:/oracle/app/orawork/product/12.2.0.1/db_1
Version:12.2.0.1.0
==Following patches were SKIPPED:
Patch: /oracle/33583921/33116894
Reason: This patch is not applicable to this specified target type - "rac_database"
Patch: /oracle/33583921/26839277
Reason: This patch is not applicable to this specified target type - "rac_database"
Patch: /oracle/33583921/33610989
Reason: This patch is not applicable to this specified target type - "rac_database"
==Following patches were SUCCESSFULLY analyzed to be applied:
Patch: /oracle/33583921/33678030
Log: /oracle/app/orawork/product/12.2.0.1/db_1/cfgtoollogs/opatchauto/core/opatch/opatch2022-10-17_17-53-34PM_1.log
Patch: /oracle/33583921/33587128
Log: /oracle/app/orawork/product/12.2.0.1/db_1/cfgtoollogs/opatchauto/core/opatch/opatch2022-10-17_17-53-34PM_1.log
OPatchauto session completed at Mon Oct 17 17:54:45 2022
Time taken to complete the session 3 minutes, 31 seconds
</code></pre>
<p><b>Summary commands to apply patch : </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
To patch the GI home and all Oracle RAC database homes of the same version:
# opatchauto apply /oracle/33583921 : $ORACLE_HOME/OPatch/opatchauto apply /oracle/33583921
To patch only the GI home:
# opatchauto apply <UNZIPPED_PATCH_LOCATION>/33583921 -oh <GI_HOME> : $ORACLE_HOME/OPatch/opatchauto apply /oracle/33583921 -oh /Grid/app/gridwork/gr_12.2
To patch one or more Oracle RAC database homes:
# opatchauto apply <UNZIPPED_PATCH_LOCATION>/33583921 -oh <oracle_home1_path>,<oracle_home2_path>
</code></pre>
<p><b>Start with the patch Apply : Node 1</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[root@dm01db01 oracle]# $ORACLE_HOME/OPatch/opatchauto apply /oracle/33583921
OPatchauto session is initiated at Mon Oct 17 18:09:53 2022
System initialization log file is /Grid/app/gridwork/gr_12.2/cfgtoollogs/opatchautodb/systemconfig2022-10-17_06-09-59PM.log.
Session log file is /Grid/app/gridwork/gr_12.2/cfgtoollogs/opatchauto/opatchauto2022-10-17_06-10-39PM.log
The id for this session is 3GUL
Executing OPatch prereq operations to verify patch applicability on home /Grid/app/gridwork/gr_12.2
Executing OPatch prereq operations to verify patch applicability on home /oracle/app/orawork/product/12.2.0.1/db_1
Patch applicability verified successfully on home /oracle/app/orawork/product/12.2.0.1/db_1
Patch applicability verified successfully on home /Grid/app/gridwork/gr_12.2
Executing patch validation checks on home /Grid/app/gridwork/gr_12.2
Patch validation checks successfully completed on home /Grid/app/gridwork/gr_12.2
Executing patch validation checks on home /oracle/app/orawork/product/12.2.0.1/db_1
Patch validation checks successfully completed on home /oracle/app/orawork/product/12.2.0.1/db_1
Verifying SQL patch applicability on home /oracle/app/orawork/product/12.2.0.1/db_1
SQL patch applicability verified successfully on home /oracle/app/orawork/product/12.2.0.1/db_1
Preparing to bring down database service on home /oracle/app/orawork/product/12.2.0.1/db_1
Successfully prepared home /oracle/app/orawork/product/12.2.0.1/db_1 to bring down database service
Performing prepatch operations on CRS - bringing down CRS service on home /Grid/app/gridwork/gr_12.2
Prepatch operation log file location: /Grid/app/gridwork/gr_base/crsdata/dm01db01/crsconfig/crspatch_dm01db01_2022-10-17_06-13-44PM.log
CRS service brought down successfully on home /Grid/app/gridwork/gr_12.2
Performing prepatch operation on home /oracle/app/orawork/product/12.2.0.1/db_1
Prepatch operation completed successfully on home /oracle/app/orawork/product/12.2.0.1/db_1
Start applying binary patch on home /oracle/app/orawork/product/12.2.0.1/db_1
Binary patch applied successfully on home /oracle/app/orawork/product/12.2.0.1/db_1
Performing postpatch operation on home /oracle/app/orawork/product/12.2.0.1/db_1
Postpatch operation completed successfully on home /oracle/app/orawork/product/12.2.0.1/db_1
Start applying binary patch on home /Grid/app/gridwork/gr_12.2
Binary patch applied successfully on home /Grid/app/gridwork/gr_12.2
Performing postpatch operations on CRS - starting CRS service on home /Grid/app/gridwork/gr_12.2
Postpatch operation log file location: /Grid/app/gridwork/gr_base/crsdata/dm01db01/crsconfig/crspatch_dm01db01_2022-10-17_06-29-39PM.log
CRS service started successfully on home /Grid/app/gridwork/gr_12.2
Preparing home /oracle/app/orawork/product/12.2.0.1/db_1 after database service restarted
No step execution required.........
Trying to apply SQL patch on home /oracle/app/orawork/product/12.2.0.1/db_1
SQL patch applied successfully on home /oracle/app/orawork/product/12.2.0.1/db_1
OPatchAuto successful.
--------------------------------Summary--------------------------------
Patching is completed successfully. Please find the summary as follows:
Host:dm01db01
RAC Home:/oracle/app/orawork/product/12.2.0.1/db_1
Version:12.2.0.1.0
Summary:
==Following patches were SKIPPED:
Patch: /oracle/33583921/33116894
Reason: This patch is not applicable to this specified target type - "rac_database"
Patch: /oracle/33583921/26839277
Reason: This patch is not applicable to this specified target type - "rac_database"
Patch: /oracle/33583921/33610989
Reason: This patch is not applicable to this specified target type - "rac_database"
==Following patches were SUCCESSFULLY applied:
Patch: /oracle/33583921/33587128
Log: /oracle/app/orawork/product/12.2.0.1/db_1/cfgtoollogs/opatchauto/core/opatch/opatch2022-10-17_18-15-47PM_1.log
Patch: /oracle/33583921/33678030
Log: /oracle/app/orawork/product/12.2.0.1/db_1/cfgtoollogs/opatchauto/core/opatch/opatch2022-10-17_18-15-47PM_1.log
Host:dm01db01
CRS Home:/Grid/app/gridwork/gr_12.2
Version:12.2.0.1.0
Summary:
==Following patches were SUCCESSFULLY applied:
Patch: /oracle/33583921/26839277
Log: /Grid/app/gridwork/gr_12.2/cfgtoollogs/opatchauto/core/opatch/opatch2022-10-17_18-22-06PM_1.log
Patch: /oracle/33583921/33116894
Log: /Grid/app/gridwork/gr_12.2/cfgtoollogs/opatchauto/core/opatch/opatch2022-10-17_18-22-06PM_1.log
Patch: /oracle/33583921/33587128
Log: /Grid/app/gridwork/gr_12.2/cfgtoollogs/opatchauto/core/opatch/opatch2022-10-17_18-22-06PM_1.log
Patch: /oracle/33583921/33610989
Log: /Grid/app/gridwork/gr_12.2/cfgtoollogs/opatchauto/core/opatch/opatch2022-10-17_18-22-06PM_1.log
Patch: /oracle/33583921/33678030
Log: /Grid/app/gridwork/gr_12.2/cfgtoollogs/opatchauto/core/opatch/opatch2022-10-17_18-22-06PM_1.log
OPatchauto session completed at Mon Oct 17 18:42:51 2022
Time taken to complete the session 32 minutes, 58 seconds
</code></pre>
<p><b>Status Grid After Patch on node 1 : </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[grid@dm01db01 OPatch]$ ./opatch lspatches
33678030;OCW JAN 2022 RELEASE UPDATE 12.2.0.1.220118 (33678030)
33610989;TOMCAT RELEASE UPDATE 12.2.0.1.0(ID:RELEASE) (33610989)
33587128;Database Jan 2022 Release Update : 12.2.0.1.220118 (33587128)
33116894;ACFS JUL 2021 RELEASE UPDATE 12.2.0.1.210720 (33116894)
26839277;DBWLM RELEASE UPDATE 12.2.0.1.0(ID:170913) (26839277)
OPatch succeeded.
[grid@dm01db01 OPatch]$
</code></pre>
<p><b>Status database After Patch on node 1 :</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[oracle@dm01db01 oracle]$ cd $ORACLE_HOME/OPatch
[oracle@dm01db01 OPatch]$ ./opatch lspatches
33678030;OCW JAN 2022 RELEASE UPDATE 12.2.0.1.220118 (33678030)
33587128;Database Jan 2022 Release Update : 12.2.0.1.220118 (33587128)
OPatch succeeded.
</code></pre>
<p><b>Alert Log of Grid : for check apply start ASM stop : </b></p>
<p><b>Grid : Alert </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
2022-10-17T15:48:28.003232+05:30
Reconfiguration complete (total time 0.4 secs)
2022-10-17T15:48:50.545709+05:30
NOTE: client CDBFINDB2:CDBFINDB:dm01clust id 0x10000 has reconnected to ASM inst +ASM2 (reg:3022375326), or has been fenced
2022-10-17T15:49:01.012814+05:30
NOTE: [ocrcheck.bin@dm01db01.database.com (TNS V1-V3) 97297] opening OCR file +OCR_VOTE.255.4294967295, osid 97306
NOTE: [ocrcheck.bin@dm01db01.database.com (TNS V1-V3) 97297] opened OCR file +OCR_VOTE.255.4294967295, osid 97306
2022-10-17T17:02:01.929675+05:30
Warning: VKTM detected a forward time drift.
Please see the VKTM trace file for more details:
/Grid/app/gridwork/gr_base/diag/asm/+asm/+ASM1/trace/+ASM1_vktm_51529.trc
2022-10-17T18:13:59.841529+05:30
ALTER SYSTEM START ROLLING PATCH
Starting background process RMON
2022-10-17T18:13:59.888666+05:30
RMON started with pid=40, OS id=19590
2022-10-17T18:14:02.614568+05:30
NOTE: Cluster is in Rolling Patch
2022-10-17T18:14:07.399227+05:30
Restarting dead background process PING
Starting background process PING
2022-10-17T18:14:08.025579+05:30
PING started with pid=11, OS id=19656
2022-10-17T18:14:09.344130+05:30
NOTE: ASM client CDBFINDB1:CDBFINDB:dm01clust disconnected unexpectedly.
NOTE: check client alert log.
NOTE: Trace records dumped in trace file /Grid/app/gridwork/gr_base/diag/asm/+asm/+ASM1/trace/+ASM1_ufg_89630_CDBFINDB1_CDBFINDB.trc
NOTE: cleaned up ASM client CDBFINDB1:CDBFINDB:dm01clust connection state (reg:2409783877)
2022-10-17T18:14:10.353230+05:30
NOTE: detected orphaned client id 0x10005.
-----
SUCCESS: ALTER DISKGROUP ALL DISMOUNT /* asm agent *//* {0:0:2833} */
Shutting down archive processes
Archiving is disabled
2022-10-17T18:14:38.855621+05:30
Shutting down archive processes
Archiving is disabled
2022-10-17T18:14:38.866143+05:30
Stopping background process VKTM
2022-10-17T18:14:42.057100+05:30
freeing rdom 3
freeing rdom 2
freeing rdom 1
freeing rdom 0
2022-10-17T18:14:44.085281+05:30
Instance shutdown complete (OS id: 19985)
</code></pre>
<p><b>Database alert log Node 1 :</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
2022-10-17T18:14:05.119961+05:30
License high water mark = 14
2022-10-17T18:14:05.120728+05:30
USER (ospid: 19615): terminating the instance
2022-10-17T18:14:06.451968+05:30
Instance terminated by USER, pid = 19615
</code></pre>
<p><b>once completed on node 1 , Start with apply on node 2 : </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[root@dm01db02 oracle]# $ORACLE_HOME/OPatch/opatchauto apply /oracle/33583921
OPatchauto session is initiated at Mon Oct 17 18:52:40 2022
System initialization log file is /Grid/app/gridwork/gr_12.2/cfgtoollogs/opatchautodb/systemconfig2022-10-17_06-52-45PM.log.
Session log file is /Grid/app/gridwork/gr_12.2/cfgtoollogs/opatchauto/opatchauto2022-10-17_06-53-38PM.log
The id for this session is 7M8K
Executing OPatch prereq operations to verify patch applicability on home /Grid/app/gridwork/gr_12.2
Executing OPatch prereq operations to verify patch applicability on home /oracle/app/orawork/product/12.2.0.1/db_1
Patch applicability verified successfully on home /Grid/app/gridwork/gr_12.2
Patch applicability verified successfully on home /oracle/app/orawork/product/12.2.0.1/db_1
Executing patch validation checks on home /Grid/app/gridwork/gr_12.2
Patch validation checks successfully completed on home /Grid/app/gridwork/gr_12.2
Executing patch validation checks on home /oracle/app/orawork/product/12.2.0.1/db_1
Patch validation checks successfully completed on home /oracle/app/orawork/product/12.2.0.1/db_1
Verifying SQL patch applicability on home /oracle/app/orawork/product/12.2.0.1/db_1
SQL patch applicability verified successfully on home /oracle/app/orawork/product/12.2.0.1/db_1
Preparing to bring down database service on home /oracle/app/orawork/product/12.2.0.1/db_1
Successfully prepared home /oracle/app/orawork/product/12.2.0.1/db_1 to bring down database service
Performing prepatch operations on CRS - bringing down CRS service on home /Grid/app/gridwork/gr_12.2
Prepatch operation log file location: /Grid/app/gridwork/gr_base/crsdata/dm01db02/crsconfig/crspatch_dm01db02_2022-10-17_06-56-46PM.log
CRS service brought down successfully on home /Grid/app/gridwork/gr_12.2
Performing prepatch operation on home /oracle/app/orawork/product/12.2.0.1/db_1
Prepatch operation completed successfully on home /oracle/app/orawork/product/12.2.0.1/db_1
Start applying binary patch on home /oracle/app/orawork/product/12.2.0.1/db_1
Binary patch applied successfully on home /oracle/app/orawork/product/12.2.0.1/db_1
Performing postpatch operation on home /oracle/app/orawork/product/12.2.0.1/db_1
Postpatch operation completed successfully on home /oracle/app/orawork/product/12.2.0.1/db_1
Start applying binary patch on home /Grid/app/gridwork/gr_12.2
Binary patch applied successfully on home /Grid/app/gridwork/gr_12.2
Performing postpatch operations on CRS - starting CRS service on home /Grid/app/gridwork/gr_12.2
Postpatch operation log file location: /Grid/app/gridwork/gr_base/crsdata/dm01db02/crsconfig/crspatch_dm01db02_2022-10-17_07-11-49PM.log
CRS service started successfully on home /Grid/app/gridwork/gr_12.2
Preparing home /oracle/app/orawork/product/12.2.0.1/db_1 after database service restarted
No step execution required.........
Trying to apply SQL patch on home /oracle/app/orawork/product/12.2.0.1/db_1
SQL patch applied successfully on home /oracle/app/orawork/product/12.2.0.1/db_1
OPatchAuto successful.
--------------------------------Summary--------------------------------
Patching is completed successfully. Please find the summary as follows:
Host:dm01db02
RAC Home:/oracle/app/orawork/product/12.2.0.1/db_1
Version:12.2.0.1.0
Summary:
==Following patches were SKIPPED:
Patch: /oracle/33583921/33116894
Reason: This patch is not applicable to this specified target type - "rac_database"
Patch: /oracle/33583921/26839277
Reason: This patch is not applicable to this specified target type - "rac_database"
Patch: /oracle/33583921/33610989
Reason: This patch is not applicable to this specified target type - "rac_database"
==Following patches were SUCCESSFULLY applied:
Patch: /oracle/33583921/33587128
Log: /oracle/app/orawork/product/12.2.0.1/db_1/cfgtoollogs/opatchauto/core/opatch/opatch2022-10-17_18-58-18PM_1.log
Patch: /oracle/33583921/33678030
Log: /oracle/app/orawork/product/12.2.0.1/db_1/cfgtoollogs/opatchauto/core/opatch/opatch2022-10-17_18-58-18PM_1.log
Host:dm01db02
CRS Home:/Grid/app/gridwork/gr_12.2
Version:12.2.0.1.0
Summary:
==Following patches were SUCCESSFULLY applied:
Patch: /oracle/33583921/26839277
Log: /Grid/app/gridwork/gr_12.2/cfgtoollogs/opatchauto/core/opatch/opatch2022-10-17_19-04-11PM_1.log
Patch: /oracle/33583921/33116894
Log: /Grid/app/gridwork/gr_12.2/cfgtoollogs/opatchauto/core/opatch/opatch2022-10-17_19-04-11PM_1.log
Patch: /oracle/33583921/33587128
Log: /Grid/app/gridwork/gr_12.2/cfgtoollogs/opatchauto/core/opatch/opatch2022-10-17_19-04-11PM_1.log
Patch: /oracle/33583921/33610989
Log: /Grid/app/gridwork/gr_12.2/cfgtoollogs/opatchauto/core/opatch/opatch2022-10-17_19-04-11PM_1.log
Patch: /oracle/33583921/33678030
Log: /Grid/app/gridwork/gr_12.2/cfgtoollogs/opatchauto/core/opatch/opatch2022-10-17_19-04-11PM_1.log
OPatchauto session completed at Mon Oct 17 19:46:11 2022
Time taken to complete the session 53 minutes, 31 seconds
</code></pre>
<p><b>Status Grid After Patch on node 2 : </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[grid@dm01db02 OPatch]$ ./opatch lspatches
33678030;OCW JAN 2022 RELEASE UPDATE 12.2.0.1.220118 (33678030)
33610989;TOMCAT RELEASE UPDATE 12.2.0.1.0(ID:RELEASE) (33610989)
33587128;Database Jan 2022 Release Update : 12.2.0.1.220118 (33587128)
33116894;ACFS JUL 2021 RELEASE UPDATE 12.2.0.1.210720 (33116894)
26839277;DBWLM RELEASE UPDATE 12.2.0.1.0(ID:170913) (26839277)
OPatch succeeded.
[grid@dm01db02 OPatch]$
</code></pre>
<p><b>Status Database After Patch on node 2 : </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[oracle@dm01db02 OPatch]$ ./opatch lspatches
33678030;OCW JAN 2022 RELEASE UPDATE 12.2.0.1.220118 (33678030)
33587128;Database Jan 2022 Release Update : 12.2.0.1.220118 (33587128)
OPatch succeeded.
[oracle@dm01db02 OPatch]$
</code></pre>
<p><b>Cluster level after Patch : </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
[root@dm01db01 ~]# crsctl query crs activeversion -f
Oracle Clusterware active version on the cluster is [12.2.0.1.0]. The cluster upgrade state is [NORMAL]. The cluster active patch level is [3975995681].
[root@dm01db01 ~]# crsctl query crs releaseversion
Oracle High Availability Services release version on the local node is [12.2.0.1.0]
[root@dm01db01 ~]# crsctl query crs softwareversion
Oracle Clusterware version on node [dm01db01] is [12.2.0.1.0]
[root@dm01db01 ~]#
</code></pre>
<p><b>Note : Database will be taken care bu Opatch Auto no need to run Datapatch seprately after Patch .</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> col action_time for a28
col action for a8
col version for a8
col comments for a30
col status for a10
set line 999 pages 999
select patch_id, version, status, Action,Action_time from dba_registry_sqlpatch order by action_time;SQL> SQL> SQL> SQL> SQL> SQL>
PATCH_ID VERSION STATUS ACTION ACTION_TIME
---------- -------- ---------- -------- ----------------------------
33587128 12.2.0.1 SUCCESS APPLY 17-OCT-22 07.45.50.762538 PM
SQL> show con_name
CON_NAME
------------------------------
CDB$ROOT
</code></pre>
<pre data-codetype="auto" title="BOX-TITLE"><b><code>
SQL> col action_time for a28
col action for a8
col version for a8
col comments for a30
col status for a10
set line 999 pages 999
select patch_id, version, status, Action,Action_time from dba_registry_sqlpatch order by action_time;SQL> SQL> SQL> SQL> SQL> SQL>
PATCH_ID VERSION STATUS ACTION ACTION_TIME
---------- -------- ---------- -------- ----------------------------
33587128 12.2.0.1 SUCCESS APPLY 17-OCT-22 07.45.56.261950 PM
SQL> show con_name
CON_NAME
------------------------------
FINDB
</code></pre>
<p><b>Patch Apply completed :</b></p>
<p><b>Hope This Helps </b></p>
Contact Me :
<p><b>Telegram : <a href="https://t.me/sultandba" target="_blank">https://t.me/sultandba</a>
<p><b>Facebook : <a href="https://www.facebook.com/sultandba/" target="_blank">https://www.facebook.com/sultandba/</a>
<p><b>Twitter : <a href="https://twitter.com/sultandba" target="_blank">https://twitter.com/sultandba</a>
<p>Regards</p>
<p>Sultan Khan</p> Sultan Khanhttp://www.blogger.com/profile/12933538356533244884noreply@blogger.com0tag:blogger.com,1999:blog-399436389180403563.post-35002483121468042862022-09-19T19:06:00.003+05:302023-03-01T22:33:52.857+05:30Oracle ACFS Configuration for Oracle Restart<p><b>Hello Friend's,</b></p>
<p><b>In this post we will discuss about how to add ACFS filesystem in oracle restart .</b></p>
<p><b>So lets get started,</b></p>
<p><b>Step 1 : Format the disk using fdisk
</b></p><pre data-codetype="auto" title="BOX-TITLE"><b><code>
dm01db01:~ # fdisk /dev/sdh
Welcome to fdisk (util-linux 2.33.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Device does not contain a recognized partition table.
Created a new DOS disklabel with disk identifier 0x7ebab29d.
Command (m for help): u
Changing display/entry units to cylinders (DEPRECATED!).
Command (m for help): n
Partition type
p primary (0 primary, 0 extended, 4 free)
e extended (container for logical partitions)
Select (default p): p
Partition number (1-4, default 1):
First cylinder (1-3263, default 1):
Last cylinder, +/-cylinders or +/-size{K,M,G,T,P} (1-3263, default 3263):
Created a new partition 1 of type 'Linux' and of size 25 GiB.
Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
</code></b></pre><b>
<p><b>Step 2 : Export the env variable in root user </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><code>
dm01db01:~ # export ORACLE_BASE=/oracle/app/grid
dm01db01:~ # export PATH=/oracle/app/grid/gr_home/bin:$PATH
dm01db01:~ # export LD_LIBRARY_PATH=/oracle/app/grid/gr_home/lib:$LD_LIBRARY_PATH
dm01db01:~ # export ORACLE_HOME=/oracle/app/grid/gr_home
dm01db01:~ #
</code></pre>
<p><b>Step 3 : Lable Disk for ORacle AFD or ASM Lib as per your configration </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><code>
dm01db01:~ #
dm01db01:~ # $ORACLE_HOME/bin/asmcmd afd_label BACKUP /dev/sdh1
dm01db01:~ #
dm01db01:~ # asmcmd afd_lsdsk
--------------------------------------------------------------------------------
Label Filtering Path
================================================================================
BACKUP ENABLED /dev/sdh1
DATAC1 ENABLED /dev/sde1
DATAC2 ENABLED /dev/sdd1
DATAC3 ENABLED /dev/sdf1
DATAC4 ENABLED /dev/sdb1
RECO1 ENABLED /dev/sdc1
RECO2 ENABLED /dev/sdg1
dm01db01:~ #
</code></pre>
<p><b>Step 4 : Create ASM Diskgroup </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><code>
SQL> CREATE DISKGROUP BACKUP EXTERNAL REDUNDANCY
DISK 'AFD:BACKUP' SIZE 25594M
ATTRIBUTE 'compatible.asm' = '19.0.0.0.0',
'compatible.rdbms'='19.0.0.0.0' ,
'compatible.advm' = '19.0.0.0.0'; 2 3 4 5
Diskgroup created.
</code></pre>
<p><b>Step 5 : Check status of diskgroup : </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><code>
SQL> col COMPATIBILITY for a25
SQL> col DATABASE_COMPATIBILITY for a25
SQL> col name for a25
SQL> set lines 200
SQL> set pages 200
SQL> select GROUP_NUMBER,NAME,COMPATIBILITY,DATABASE_COMPATIBILITY from gv$asm_diskgroup;
GROUP_NUMBER NAME COMPATIBILITY DATABASE_COMPATIBILITY
------------ ------------------------- ------------------------- -------------------------
1 DATA 19.0.0.0.0 10.1.0.0.0
2 RECO 19.0.0.0.0 10.1.0.0.0
3 BACKUP 19.0.0.0.0 19.0.0.0.0
crsctl stat res ora.BACKUP.dg -t
dm01db01:~ # crsctl stat res ora.BACKUP.dg -t
--------------------------------------------------------------------------------
Name Target State Server State details
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.BACKUP.dg
ONLINE ONLINE dm01db01 STABLE
--------------------------------------------------------------------------------
dm01db01:~ #
</code></pre>
<p><b>Step 7 : Create volume for ACFS abd get volinfo </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><code>
volcreate -G BACKUP -s 25000M ACFSVOL01
ASMCMD> volcreate -G BACKUP -s 25000M ACFSVOL01
ASMCMD>
ASMCMD> volinfo --all
Diskgroup Name: BACKUP
Volume Name: ACFSVOL01
Volume Device: /dev/asm/acfsvol01-49
State: ENABLED
Size (MB): 25024
Resize Unit (MB): 64
Redundancy: UNPROT
Stripe Columns: 8
Stripe Width (K): 1024
Usage:
Mountpath:
ASMCMD>
</code></pre>
dm01db01:~ # chown oracle:oinstall /backup
<p><b>Step 8 : Format volume with ACFS MKFS </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><code>
/sbin/mkfs.acfs -F /dev/asm/acfsvol01-49
grid@dm01db01:/sbin> /sbin/mkfs.acfs -f /dev/asm/acfsvol01-49
mkfs.acfs: version = 19.0.0.0.0
mkfs.acfs: on-disk version = 46.0
mkfs.acfs: volume = /dev/asm/acfsvol01-49
mkfs.acfs: volume size = 26239565824 ( 24.44 GB )
mkfs.acfs: Format complete.
</code></pre>
<p><b>Step 9 : Mount Filesystem to OS </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><code>
For RAC :
$ORACLE_HOME/bin/srvctl add filesystem -d /dev/asm/acfsvol01-49 -m /backup -u oracle -fstype ACFS -autostart ALWAYS
crsctl stat res ora.BACKUP.acfsvol01-49.acfs -t
For Oracle Restart :
/bin/mount -t acfs /dev/asm/acfsvol01-49 /backup
</code></pre>
<p><b>Step 10 : Output After Mount :</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><code>
dm01db01:~ # df -kh
Filesystem Size Used Avail Use% Mounted on
devtmpfs 3.8G 28K 3.8G 1% /dev
tmpfs 3.8G 641M 3.2G 17% /dev/shm
tmpfs 3.8G 11M 3.8G 1% /run
tmpfs 3.8G 0 3.8G 0% /sys/fs/cgroup
/dev/mapper/systemvg-rootlv 30G 3.9G 27G 13% /
/dev/sda1 2.0G 96M 1.9G 5% /boot
/dev/mapper/systemvg-optlv 10G 37M 10G 1% /opt
/dev/mapper/systemvg-varlv 20G 204M 20G 1% /var
/dev/mapper/systemvg-oraclelv 40G 37G 3.2G 93% /oracle
tmpfs 769M 20K 769M 1% /run/user/0
/dev/sr0 3.9G 3.9G 0 100% /run/media/root/SLE-12-SP5-Server-DVD-x86_640009
<span style="background-color: black; color: #04ff00;">/dev/asm/acfsvol01-49 25G 359M 25G 2% /backup</span>
</code></pre>
<p><b>Hope This Helps</b></p>
<p><b>Regards</b></p>
<p><b>Sultan Khan</b></p> </b><p></p>Sultan Khanhttp://www.blogger.com/profile/12933538356533244884noreply@blogger.com0tag:blogger.com,1999:blog-399436389180403563.post-54529135861564269082022-09-05T17:30:00.000+05:302022-11-24T21:00:58.159+05:30ORA-15032 ORA-15032 ORA-15040 diskgroup is incomplete (Oracle AFD)<p><b>Hello Friend's </b></p>
<p>In this post we will discuss about the issue of oracle AFD</p>
<p>Here we got an issue that AFD disks were missing after the server reboot .</p>
<p>We checked and found out underlying disks are present and are in good condition only the label disk in /dev/oracleafd/disks folder are missing</p>
<p>So let's get Started .</p>
Error in this discusion : ORA-15032 ORA-15032 ORA-15040 diskgroup is incomplete AFD , There are no labelled devices.
<p><b>Main Error for diskgroups : </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><code>
ERROR: diskgroup RECO was not mounted
ORA-15032: not all alterations performed
ORA-15017: diskgroup "RECO" cannot be mounted
ORA-15040: diskgroup is incomplete
ORA-15017: diskgroup "RECOC" cannot be mounted
ORA-15040: diskgroup is incomplete
ORA-15017: diskgroup "DATA" cannot be mounted
ORA-15040: diskgroup is incomplete
</code></pre>
<p><b>Steps 1 : Set the Grid enviornment on root.</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><code>
dm01db01:/dev/oracleafd/disks # export ORACLE_BASE=/oracle/app
dm01db01:/dev/oracleafd/disks # export PATH=/oracle/app/grid/gr_home/bin:$PATH
dm01db01:/dev/oracleafd/disks # export LD_LIBRARY_PATH=/oracle/app/grid/gr_home/lib:$LD_LIBRARY_PATH
dm01db01:/dev/oracleafd/disks # export ORACLE_HOME=/oracle/app/grid/gr_home
dm01db01:/dev/oracleafd/disks #
</code></pre>
<p><b>Steps 2 :check the labeled disks </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><code>
dm01db01:/dev/oracleafd/disks # asmcmd afd_lsdsk
There are no labelled devices.
</code></pre>
<p><b>Steps 3 : Try to Lable the disk : Got Error</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><code>
dm01db01:/dev/oracleafd/disks # asmcmd afd_label DATA_0001 /dev/mapper/mpathaa-part1
disk /dev/mapper/mpathaa-part1 is already provisioned for ASM
ASMCMD-9513: ASM disk label set operation failed.
</code></pre>
<p><b>Steps 4 : Try to Unlable the disk : Got Error</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><code>
dm01db01:/dev/oracleafd/disks # asmcmd afd_unlabel DATA_0001
No devices to be unlabeled.
ASMCMD-9514: ASM disk label clear operation failed.
</code></pre>
<p><b>Step 5 : Check AFD state</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><code>
dm01db01:/dev/oracleafd/disks # asmcmd afd_state
ASMCMD-9526: The AFD state is 'LOADED' and filtering is 'ENABLED' on host 'dm01db01'
dm01db01:/dev/oracleafd/disks # asmcmd afd_scan AFD:*
dm01db01:/dev/oracleafd/disks # asmcmd afd_lsdsk
There are no labelled devices.
</code></pre>
<p><b>Step 6 : Stop HAS as this is a standalone server in case of cluster stop crs </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><code>
dm01db01:/dev/oracleafd/disks # crsctl stop has
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'dm01db01'
CRS-2673: Attempting to stop 'ora.evmd' on 'dm01db01'
CRS-2673: Attempting to stop 'ora.LISTENER.lsnr' on 'dm01db01'
CRS-2677: Stop of 'ora.LISTENER.lsnr' on 'dm01db01' succeeded
CRS-2677: Stop of 'ora.evmd' on 'dm01db01' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'dm01db01'
CRS-2677: Stop of 'ora.cssd' on 'dm01db01' succeeded
CRS-2673: Attempting to stop 'ora.driver.afd' on 'dm01db01'
CRS-2677: Stop of 'ora.driver.afd' on 'dm01db01' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'dm01db01' has completed
CRS-4133: Oracle High Availability Services has been stopped.
</code></pre>
================================Solution No lable disk available=========================
<p><b>Step 7 : Start lable disks with --migrate option </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><code>
dm01db01:/dev/oracleafd/disks # asmcmd afd_label DATA_0001 /dev/mapper/mpathaa-part1 --migrate
dm01db01:/dev/oracleafd/disks # asmcmd afd_label DATA_0002 /dev/mapper/mpathab-part1 --migrate
dm01db01:/dev/oracleafd/disks # ls
DATA_0001 DATA_0002
dm01db01:/dev/oracleafd/disks # asmcmd afd_label DATA_0003 /dev/mapper/mpathac-part1 --migrate
dm01db01:/dev/oracleafd/disks # asmcmd afd_label DATA_0017 /dev/mapper/mpathv-part1 --migrate
dm01db01:/dev/oracleafd/disks # asmcmd afd_label DATA_0018 /dev/mapper/mpathw-part1 --migrate
dm01db01:/dev/oracleafd/disks # asmcmd afd_label DATA_0019 /dev/mapper/mpathx-part1 --migrate
dm01db01:/dev/oracleafd/disks # asmcmd afd_label DATA_0020 /dev/mapper/mpathy-part1 --migrate
dm01db01:/dev/oracleafd/disks # asmcmd afd_label DATA_0021 /dev/mapper/mpathz-part1 --migrate
dm01db01:/dev/oracleafd/disks # asmcmd afd_label RECOC1 /dev/mapper/mpathae-part1 --migrate
dm01db01:/dev/oracleafd/disks # asmcmd afd_label RECOC2 /dev/mapper/mpathaf-part1 --migrate
dm01db01:/dev/oracleafd/disks # asmcmd afd_label RECO_0001 /dev/mapper/mpathd-part1 --migrate
dm01db01:/dev/oracleafd/disks # asmcmd afd_label RECO_0002 /dev/mapper/mpathe-part1 --migrate
dm01db01:/dev/oracleafd/disks # asmcmd afd_label DATA_0004 /dev/mapper/mpathi-part1 --migrate
dm01db01:/dev/oracleafd/disks # asmcmd afd_label DATA_0005 /dev/mapper/mpathj-part1 --migrate
dm01db01:/dev/oracleafd/disks # asmcmd afd_label DATA_0006 /dev/mapper/mpathk-part1 --migrate
dm01db01:/dev/oracleafd/disks # asmcmd afd_label DATA_0007 /dev/mapper/mpathl-part1 --migrate
dm01db01:/dev/oracleafd/disks # asmcmd afd_label DATA_0008 /dev/mapper/mpathm-part1 --migrate
dm01db01:/dev/oracleafd/disks # asmcmd afd_label DATA_0009 /dev/mapper/mpathn-part1 --migrate
dm01db01:/dev/oracleafd/disks # asmcmd afd_label DATA_0010 /dev/mapper/mpatho-part1 --migrate
dm01db01:/dev/oracleafd/disks # asmcmd afd_label DATA_0011 /dev/mapper/mpathp-part1 --migrate
dm01db01:/dev/oracleafd/disks # asmcmd afd_label DATA_0012 /dev/mapper/mpathq-part1 --migrate
dm01db01:/dev/oracleafd/disks # asmcmd afd_label DATA_0013 /dev/mapper/mpathr-part1 --migrate
dm01db01:/dev/oracleafd/disks # asmcmd afd_label DATA_0014 /dev/mapper/mpaths-part1 --migrate
dm01db01:/dev/oracleafd/disks # asmcmd afd_label DATA_0015 /dev/mapper/mpatht-part1 --migrate
dm01db01:/dev/oracleafd/disks # asmcmd afd_label DATA_0016 /dev/mapper/mpathu-part1 --migrate
dm01db01:/dev/oracleafd/disks # asmcmd afd_label DATA_0017 /dev/mapper/mpathv-part1 --migrate
dm01db01:/dev/oracleafd/disks # asmcmd afd_label DATA_0018 /dev/mapper/mpathw-part1 --migrate
dm01db01:/dev/oracleafd/disks # asmcmd afd_label DATA_0019 /dev/mapper/mpathx-part1 --migrate
dm01db01:/dev/oracleafd/disks # asmcmd afd_label DATA_0020 /dev/mapper/mpathy-part1 --migrate
dm01db01:/dev/oracleafd/disks # asmcmd afd_label DATA_0021 /dev/mapper/mpathz-part1 --migrate
dm01db01:/dev/oracleafd/disks # asmcmd afd_label RECOC1 /dev/mapper/mpathae-part1 --migrate
dm01db01:/dev/oracleafd/disks # asmcmd afd_label RECOC2 /dev/mapper/mpathaf-part1 --migrate
dm01db01:/dev/oracleafd/disks # asmcmd afd_label RECO_0001 /dev/mapper/mpathd-part1 --migrate
dm01db01:/dev/oracleafd/disks # asmcmd afd_label RECO_0002 /dev/mapper/mpathe-part1 --migrate
dm01db01:/dev/oracleafd/disks #
dm01db01:/dev/oracleafd/disks #
</code></pre>
<p><b>Step 8 : Once step 7 is completed you should get the disk back in location and available</b></p>
<pre data-codetype="auto" title="BOX-TITLE"><code>
dm01db01:/dev/oracleafd/disks # ls -ltr
total 100
-rw-rw-r-- 1 oracle oinstall 26 Aug 26 22:08 DATA_0001
-rw-rw-r-- 1 oracle oinstall 26 Aug 26 22:09 DATA_0002
-rw-rw-r-- 1 oracle oinstall 26 Aug 26 22:09 DATA_0003
-rw-rw-r-- 1 oracle oinstall 25 Aug 26 22:09 DATA_0004
-rw-rw-r-- 1 oracle oinstall 25 Aug 26 22:09 DATA_0005
-rw-rw-r-- 1 oracle oinstall 25 Aug 26 22:09 DATA_0006
-rw-rw-r-- 1 oracle oinstall 25 Aug 26 22:09 DATA_0007
-rw-rw-r-- 1 oracle oinstall 25 Aug 26 22:09 DATA_0008
-rw-rw-r-- 1 oracle oinstall 25 Aug 26 22:09 DATA_0009
-rw-rw-r-- 1 oracle oinstall 25 Aug 26 22:09 DATA_0010
-rw-rw-r-- 1 oracle oinstall 25 Aug 26 22:09 DATA_0011
-rw-rw-r-- 1 oracle oinstall 25 Aug 26 22:09 DATA_0012
-rw-rw-r-- 1 oracle oinstall 25 Aug 26 22:09 DATA_0013
-rw-rw-r-- 1 oracle oinstall 25 Aug 26 22:09 DATA_0014
-rw-rw-r-- 1 oracle oinstall 25 Aug 26 22:09 DATA_0015
-rw-rw-r-- 1 oracle oinstall 25 Aug 26 22:09 DATA_0016
-rw-rw-r-- 1 oracle oinstall 25 Aug 26 22:09 DATA_0017
-rw-rw-r-- 1 oracle oinstall 25 Aug 26 22:09 DATA_0018
-rw-rw-r-- 1 oracle oinstall 25 Aug 26 22:09 DATA_0019
-rw-rw-r-- 1 oracle oinstall 25 Aug 26 22:09 DATA_0020
-rw-rw-r-- 1 oracle oinstall 25 Aug 26 22:09 DATA_0021
-rw-rw-r-- 1 oracle oinstall 26 Aug 26 22:09 RECOC1
-rw-rw-r-- 1 oracle oinstall 26 Aug 26 22:09 RECOC2
-rw-rw-r-- 1 oracle oinstall 25 Aug 26 22:09 RECO_0001
-rw-rw-r-- 1 oracle oinstall 25 Aug 26 22:09 RECO_0002
dm01db01:/dev/oracleafd/disks #
dm01db01:/dev/oracleafd/disks #
</code></pre>
<p><b>Step 9 : Check HAS service </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><code>
dm01db01:/dev/oracleafd/disks # crsctl start has
CRS-4123: Oracle High Availability Services has been started.
dm01db01:/dev/oracleafd/disks #
dm01db01:/dev/oracleafd/disks #
</code></pre>
<p><b>Step 10 : Check the Disks from asmcmd AFD </b></p>
<pre data-codetype="auto" title="BOX-TITLE"><code>
dm01db01:/dev/oracleafd/disks # asmcmd afd_lsdsk
--------------------------------------------------------------------------------
Label Filtering Path
================================================================================
DATA_0001 ENABLED /dev/mapper/mpathaa-part1
DATA_0002 ENABLED /dev/mapper/mpathab-part1
DATA_0003 ENABLED /dev/mapper/mpathac-part1
DATA_0004 ENABLED /dev/mapper/mpathi-part1
DATA_0005 ENABLED /dev/mapper/mpathj-part1
DATA_0006 ENABLED /dev/mapper/mpathk-part1
DATA_0007 ENABLED /dev/mapper/mpathl-part1
DATA_0008 ENABLED /dev/mapper/mpathm-part1
DATA_0009 ENABLED /dev/mapper/mpathn-part1
DATA_0010 ENABLED /dev/mapper/mpatho-part1
DATA_0011 ENABLED /dev/mapper/mpathp-part1
DATA_0012 ENABLED /dev/mapper/mpathq-part1
DATA_0013 ENABLED /dev/mapper/mpathr-part1
DATA_0014 ENABLED /dev/mapper/mpaths-part1
DATA_0015 ENABLED /dev/mapper/mpatht-part1
DATA_0016 ENABLED /dev/mapper/mpathu-part1
DATA_0017 ENABLED /dev/mapper/mpathv-part1
DATA_0018 ENABLED /dev/mapper/mpathw-part1
DATA_0019 ENABLED /dev/mapper/mpathx-part1
DATA_0020 ENABLED /dev/mapper/mpathy-part1
DATA_0021 ENABLED /dev/mapper/mpathz-part1
RECOC1 ENABLED /dev/mapper/mpathae-part1
RECOC2 ENABLED /dev/mapper/mpathaf-part1
RECO_0001 ENABLED /dev/mapper/mpathd-part1
RECO_0002 ENABLED /dev/mapper/mpathe-part1
</code></pre>
<p><b>Issue resolved now the diskgroups can be mounted</b></p>
<p><b>Hope this helps .</b></p>
<p><b>Regards</b></p>
<p><b>Sultan Khan</b></p> Sultan Khanhttp://www.blogger.com/profile/12933538356533244884noreply@blogger.com0