<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Mike Desouza on Medium]]></title>
        <description><![CDATA[Stories by Mike Desouza on Medium]]></description>
        <link>https://medium.com/@mike_desouza?source=rss-2230a3359e99------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*zZggoFEKSNXcuPbnscho1w@2x.jpeg</url>
            <title>Stories by Mike Desouza on Medium</title>
            <link>https://medium.com/@mike_desouza?source=rss-2230a3359e99------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 03:41:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mike_desouza/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Patch Oracle Grid Infrastructure 19c Using Out-Of-Place SwitchGridHome]]></title>
            <link>https://medium.com/@mike_desouza/patch-oracle-grid-infrastructure-19c-using-out-of-place-switchgridhome-9fec55675b4c?source=rss-2230a3359e99------2</link>
            <guid isPermaLink="false">https://medium.com/p/9fec55675b4c</guid>
            <category><![CDATA[oracle-database]]></category>
            <dc:creator><![CDATA[Mike Desouza]]></dc:creator>
            <pubDate>Wed, 20 Nov 2024 14:31:54 GMT</pubDate>
            <atom:updated>2024-11-20T14:33:44.932Z</atom:updated>
            <content:encoded><![CDATA[<p>2 node Rac cluster running 19.20 on oracle Linux and going to patch it to 19.25 user grid is running clusterware</p><p>download LINUX.X64_193000_grid_home.zip , the latest version of OPatch which at the time of writing was 12.2.0.1.44 and 19.25.0 Release Update for Oracle Grid Infrastructure I will use patch p36866740</p><p>I will also download the latest version of cluvfy from oracle support</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F_tlnjtPIiOex1_l5bK1QA.png" /></figure><p>as grid user install it on node 1 it does not need to be installed on the other nodes</p><pre>export CVUHOME=/u01/app/grid/cvu<br>mkdir $CVUHOME<br>cd $CVUHOME<br>unzip /tmp/cvupack_linux_ol7_x86_64.zip <br>export PATH=$CVUHOME/bin:$PATH<br>cluvfy -version<br>Version 19.0.0.0.0 Build 100824x8664<br>Full version 19.25.0.0.0</pre><p>check before patching</p><pre>cluvfy stage -pre patch<br><br>Performing following verification checks ...<br><br>  cluster upgrade state ...PASSED<br>  OLR Integrity ...PASSED<br>  Hosts File ...PASSED<br>  Path existence, ownership, permissions and attributes ...<br>    Path &quot;/u01/app/19.20.0/grid/gpnp/wallets/peer/cwallet.sso&quot; ...PASSED<br>    Path &quot;/u01/app/19.20.0/grid/gpnp/wallets/root/ewallet.p12&quot; ...PASSED<br>    Path &quot;/u01/app/19.20.0/grid/gpnp/profiles/peer/profile.xml&quot; ...PASSED<br>  Path existence, ownership, permissions and attributes ...PASSED<br>  Free Space: aa03573:/ ...PASSED<br>  Free Space: aa03572:/ ...PASSED<br>  OPatch utility version consistency ...PASSED<br>  Software home: /u01/app/19.20.0/grid ...PASSED<br>  ORAchk checks ...<br>    Software maintenance best practices ...PASSED<br>    Hostname formatting ...PASSED<br>    NIC Bonding Mode interconnect ...PASSED<br>    NIC Bonding Mode Public ...PASSED<br>    GI/CRS - Private interconnect interface name check ...PASSED<br>    VIP NIC bonding config. ...PASSED<br>    Clusterware resource status ...PASSED<br>    Oracle database software owner soft stack shell limits ...PASSED<br>    Interconnect NIC bonding config. ...PASSED<br>    Verify operating system hugepages count satisfies total SGA requirements ...PASSED<br>    Non-routable network for interconnect ...PASSED<br>    Clusterware software version comparison ...PASSED<br>    ORA_CRS_HOME env variable for Grid infrastructure owner ...PASSED<br>    Disks without Disk Group ...PASSED<br>    NTP with correct setting ...PASSED<br>  ORAchk checks ...PASSED<br><br>Pre-check for Patch Application was successful.<br><br>CVU operation performed:      stage -pre patch<br>Date:                         20-Nov-2024 11:31:55<br>CVU version:                  19.25.0.0.0 (100824x8664)<br>Clusterware version:          19.0.0.0.0<br>CVU home:                     /u01/app/19.20.0/grid<br>Grid home:                    /u01/app/19.20.0/grid<br>User:                         grid<br>Operating system:             Linux5.4.17-2136.305.5.3.el7uek.x86_64</pre><p>setup the grid home as root</p><pre>mkdir -p /u01/app/19.25.0/grid<br>chown -R grid:oinstall /u01/app/19.25.0<br>chmod -R 775 /u01/app/19.25.0<br><br>mkdir -p /u01/app/19.25.0/grid<br>chown -R grid:oinstall /u01/app/19.25.0<br>chmod -R 775 /u01/app/19.25.0</pre><p>ensure passwordless SSH access between all the cluster nodes.</p><pre>[grid@aa03572]$ ssh aa03573 date<br><br>[grid@aa03573]$ ssh aa03572 date</pre><p>extract the base release of grid on node 1</p><pre>export NEWGRIDHOME=/u01/app/19.25.0/grid<br>cd $NEWGRIDHOME<br>unzip -oq /oraclesw/oracle_software/grid/LINUX.X64_193000_grid_home.zip</pre><p>Update Opatch to the latest version</p><pre>cd $NEWGRIDHOME<br>rm -rf OPatch<br>unzip -oq /oraclesw/oracle_patches/OPatch/p6880880_190000_Linux-x86-64_12.2.0.1.44_oct2024.zip</pre><p>check the Oracle Grid Infrastructure prerequisites</p><pre>export ORACLE_HOME=$NEWGRIDHOME<br>$ORACLE_HOME/gridSetup.sh -executePrereqs -silent<br>Launching Oracle Grid Infrastructure Setup Wizard...<br><br>Prerequisite checks executed successfully.</pre><p>unzip 19.25.0 Release Update</p><pre>cd /u01/app/grid/software<br>unzip -oq p36866740_190000_Linux-x86-64.zip</pre><p>OCW Release Update 19.25.0.0.241015 (36917416)</p><p>Database Release Update 19.25.0.0.241015 (36912597)</p><p>ACFS RELEASE UPDATE 19.25.0.0.0 (36917397)</p><p>Tomcat Release Update 19.0.0.0.0 (36940756)</p><p>DBWLM Release Update 19.0.0.0.0 (36758186)</p><p>all the above patches will be applied</p><p>Install the Grid home using the silent method</p><pre>export ORACLE_BASE=/u01/app/grid<br>export ORA_INVENTORY=/u01/app/oraInventory<br>export CLUSTER_NAME=$(olsnodes -c)<br>export CLUSTER_NODES=$(olsnodes | tr &#39;\n&#39; &#39;,&#39;| sed &#39;s/,\s*$//&#39;)<br>cd $ORACLE_HOME<br><br><br>./gridSetup.sh -ignorePrereq -waitforcompletion -silent -applyRU /u01/app/grid/software/36866740/36916690/36917416 -applyOneOffs /u01/app/grid/software/36866740/36916690/36758186,/u01/app/grid/software/36866740/36916690/36912597,/u01/app/grid/software/36866740/36916690/36940756,/u01/app/grid/software/36866740/36916690/36917397 -responseFile $ORACLE_HOME/install/response/gridsetup.rsp INVENTORY_LOCATION=$ORA_INVENTORY ORACLE_BASE=$ORACLE_BASE SELECTED_LANGUAGES=en oracle.install.option=CRS_SWONLY oracle.install.asm.OSDBA=oinstall oracle.install.asm.OSOPER=oinstall oracle.install.asm.OSASM=oinstall oracle.install.crs.config.ClusterConfiguration=STANDALONE oracle.install.crs.config.configureAsExtendedCluster=false oracle.install.crs.config.clusterName=$CLUSTER_NAME oracle.install.crs.config.gpnp.configureGNS=false oracle.install.crs.config.autoConfigureClusterNodeVIP=false oracle.install.crs.config.clusterNodes=$CLUSTER_NODES<br>Preparing the home to patch...<br>Applying the patch /u01/app/grid/software/36866740/36916690/36917416...<br>Successfully applied the patch.<br>Applying the patch /u01/app/grid/software/36866740/36916690/36758186...<br>Successfully applied the patch.<br>Applying the patch /u01/app/grid/software/36866740/36916690/36912597...<br>Successfully applied the patch.<br>Applying the patch /u01/app/grid/software/36866740/36916690/36940756...<br>Successfully applied the patch.<br>Applying the patch /u01/app/grid/software/36866740/36916690/36917397...<br>Successfully applied the patch.<br>The log can be found at: /u01/app/oraInventory/logs/GridSetupActions2024-11-19_04-10-11PM/installerPatchActions_2024-11-19_04-10-11PM.log<br>Launching Oracle Grid Infrastructure Setup Wizard...<br><br>[WARNING] [INS-41813] OSDBA for ASM, OSOPER for ASM, and OSASM are the same OS group.<br>   CAUSE: The group you selected for granting the OSDBA for ASM group for database access, and the OSOPER for ASM group for startup and shutdown of Oracle ASM, is the same group as the OSASM group, whose members have SYSASM privileges on Oracle ASM.<br>   ACTION: Choose different groups as the OSASM, OSDBA for ASM, and OSOPER for ASM groups.<br>[WARNING] [INS-41874] Oracle ASM Administrator (OSASM) Group specified is same as the inventory group.<br>   CAUSE: Operating system group oinstall specified for OSASM Group is same as the inventory group.<br>   ACTION: It is not recommended to have OSASM group same as inventory group. Select any of the group other than the inventory group to avoid incorrect configuration.<br>The response file for this session can be found at:<br> /u01/app/19.25.0/grid/install/response/grid_2024-11-19_04-10-11PM.rsp<br><br>You can find the log of this install session at:<br> /u01/app/oraInventory/logs/GridSetupActions2024-11-19_04-10-11PM/gridSetupActions2024-11-19_04-10-11PM.log<br><br>As a root user, execute the following script(s):<br>        1. /u01/app/19.25.0/grid/root.sh<br><br><br>Execute /u01/app/19.25.0/grid/root.sh on the following nodes:<br>[aa03572, aa03573]<br><br><br>Successfully Setup Software.</pre><p>Do not run the root.sh script and if you need to apply one off patches you can do that with -applyOneOffs</p><p>The main part switch to the new Grid Home do this one one node at a time</p><p>on node aa03572</p><pre>export ORACLE_HOME=/u01/app/19.25.0/grid<br>export CURRENT_NODE=$(hostname)<br>$ORACLE_HOME/gridSetup.sh \<br>   -silent -switchGridHome \<br>   oracle.install.option=CRS_SWONLY \<br>   ORACLE_HOME=$ORACLE_HOME \<br>   oracle.install.crs.config.clusterNodes=$CURRENT_NODE \<br>   oracle.install.crs.rootconfig.executeRootScript=false<br><br>Launching Oracle Grid Infrastructure Setup Wizard…<br>As a root user, execute the following script(s):<br> 1. /u01/app/19.25.0/grid/root.sh<br>Execute /u01/app/19.25.0/grid/root.sh on the following nodes:<br>[aa03572]<br><br>You can find the log of this install session at:<br> /u01/app/oraInventory/logs/UpdateNodeList2024-11-19_04-56-23PM.log<br>You can find the log of this install session at:<br> /u01/app/oraInventory/logs/UpdateNodeList2024-11-19_04-56-23PM.log<br>Successfully Setup Software.</pre><p>in the past i have had Perl issues I still cant figure of why that is it as it has worked on other RAC servers the error appears when we run the root.sh script</p><pre>Can&#39;t locate strict.pm:   /root/perl5/lib/perl5/strict.pm: Permission denied at /u01/app/19.25.0/grid/sqlpatch/sqlpatch.pl line 135.<br>BEGIN failed--compilation aborted at /u01/app/19.25.0/grid/sqlpatch/sqlpatch.pl line 135.<br>2024/11/19 17:28:44 CLSRSC-488: Patching the Grid Infrastructure Management Repository database failed.<br>Died at /u01/app/19.25.0/grid/crs/install/crspatch.pm line 2057.<br>The command &#39;/u01/app/19.25.0/grid/perl/bin/perl -I/u01/app/19.25.0/grid/perl/lib -I/u01/app/19.25.0/grid/crs/install /u01/app/19.25.0/grid/crs/install/rootcrs.pl  -dstcrshome /u01/app/19.25.0/grid -postpatch&#39; execution failed</pre><p>to resolve the issue I set the following variables before running root.sh</p><pre><br>export PERL5LIB=/u01/app/19.25.0/grid/perl/lib/:/usr/share/perl5/<br>export PATH=$PATH:/u01/app/19.25.0/grid/perl/lib/:/usr/share/perl5/</pre><p>Run /u01/app/19.25.0/grid/root.sh on aa03572 as root user</p><pre>/u01/app/19.25.0/grid/root.sh</pre><p>This step involves restarting the complete GI stack along with the resources it manages, such as databases and listeners. The process causes downtime on the specific node being restarted, while the other nodes remain operational. During this time, GI sets the services to OFFLINE, allowing users to connect through the other nodes.</p><p>If the database listener is running from the Grid Home, GI will migrate it to the new Grid Home, including copying the listener.ora configuration file. For a smoother transition, you can choose to manually stop the services and drain connections before proceeding. Finally, GI brings the resources, including databases, back online after the restart.</p><p>Perform on node 2 aa03573</p><pre>export ORACLE_HOME=/u01/app/19.25.0/grid<br>export CURRENT_NODE=$(hostname)<br>$ORACLE_HOME/gridSetup.sh \<br>   -silent -switchGridHome \<br>   oracle.install.option=CRS_SWONLY \<br>   ORACLE_HOME=$ORACLE_HOME \<br>   oracle.install.crs.config.clusterNodes=$CURRENT_NODE \<br>   oracle.install.crs.rootconfig.executeRootScript=false<br><br>Launching Oracle Grid Infrastructure Setup Wizard…<br>As a root user, execute the following script(s):<br> 1. /u01/app/19.25.0/grid/root.sh<br>Execute /u01/app/19.25.0/grid/root.sh on the following nodes:<br>[aa03573]<br><br>You can find the log of this install session at:<br> /u01/app/oraInventory/logs/UpdateNodeList2024-11-19_04-56-23PM.log<br>You can find the log of this install session at:<br> /u01/app/oraInventory/logs/UpdateNodeList2024-11-19_04-56-23PM.log<br>Successfully Setup Software.</pre><p>run the root.sh on node aa03573 , if you forget to set the PERL5LIB and PATH before running root.sh and it fails with</p><pre>Can&#39;t locate strict.pm:   /root/perl5/lib/perl5/strict.pm: Permission denied at /u01/app/19.25.0/grid/sqlpatch/sqlpatch.pl line 135.<br>BEGIN failed--compilation aborted at /u01/app/19.25.0/grid/sqlpatch/sqlpatch.pl line 135.<br>2024/11/19 17:28:44 CLSRSC-488: Patching the Grid Infrastructure Management Repository database failed.<br>Died at /u01/app/19.25.0/grid/crs/install/crspatch.pm line 2057.<br>The command &#39;/u01/app/19.25.0/grid/perl/bin/perl -I/u01/app/19.25.0/grid/perl/lib -I/u01/app/19.25.0/grid/crs/install /u01/app/19.25.0/grid/crs/install/rootcrs.pl  -dstcrshome /u01/app/19.25.0/grid -postpatch&#39; execution failed</pre><p>set the variables and rerun root.sh on aa03573 as root user</p><pre>export PERL5LIB=/u01/app/19.25.0/grid/perl/lib/:/usr/share/perl5/<br>export PATH=$PATH:/u01/app/19.25.0/grid/perl/lib/:/usr/share/perl5/<br>/u01/app/19.25.0/grid/root.sh</pre><pre>Validating logfiles...done<br>Patch 36912597 apply (pdb CDB$ROOT): SUCCESS<br>  logfile: /u01/app/grid/cfgtoollogs/sqlpatch/36912597/25871884/36912597_apply__MGMTDB_CDBROOT_2024Nov19_17_56_57.log (no errors)<br>Patch 36912597 apply (pdb PDB$SEED): SUCCESS<br>  logfile: /u01/app/grid/cfgtoollogs/sqlpatch/36912597/25871884/36912597_apply__MGMTDB_PDBSEED_2024Nov19_17_58_43.log (no errors)<br>Patch 36912597 apply (pdb GIMR_DSCREP_10): SUCCESS<br>  logfile: /u01/app/grid/cfgtoollogs/sqlpatch/36912597/25871884/36912597_apply__MGMTDB_GIMR_DSCREP_10_2024Nov19_17_58_43.log (no errors)<br>SQL Patching tool complete on Tue Nov 19 18:00:20 2024<br>2024/11/19 18:02:05 CLSRSC-4015: Performing install or upgrade action for Oracle Trace File Analyzer (TFA) Collector.<br>2024/11/19 18:02:08 CLSRSC-672: Post-patch steps for patching GI home successfully completed.</pre><p>This completes the patching if root.sh is successfull</p><p>for an extra check you can run cluvfy on node aa03572</p><p>cluvfy stage -post patch</p><pre> cluvfy stage -post patch<br><br>Performing following verification checks ...<br><br>  cluster upgrade state ...PASSED<br>  Software home: /u01/app/19.25.0/grid ...PASSED<br><br>Post-check for Patch Application was successful.<br><br>CVU operation performed:      stage -post patch<br>Date:                         20-Nov-2024 14:26:49<br>CVU version:                  19.25.0.0.0 (100824x8664)<br>Clusterware version:          19.0.0.0.0<br>CVU home:                     /u01/app/19.25.0/grid<br>Grid home:                    /u01/app/19.25.0/grid<br>User:                         grid<br>Operating system:             Linux5.4.17-2136.305.5.3.el7uek.x86_64</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9fec55675b4c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Patching failing Can’t locate strict.pm:]]></title>
            <link>https://medium.com/@mike_desouza/patching-failing-cant-locate-strict-pm-c7f4ba3fa45e?source=rss-2230a3359e99------2</link>
            <guid isPermaLink="false">https://medium.com/p/c7f4ba3fa45e</guid>
            <category><![CDATA[oracle-database]]></category>
            <dc:creator><![CDATA[Mike Desouza]]></dc:creator>
            <pubDate>Tue, 19 Nov 2024 09:07:13 GMT</pubDate>
            <atom:updated>2024-11-19T12:05:19.804Z</atom:updated>
            <content:encoded><![CDATA[<h3>Patching failing Can’t locate strict.pm: /root/perl5/lib/perl5/strict.pm: Permission denied at /u01/app/19.20.0/grid/sqlpatch/sqlpatch.pl line 135.</h3><p>not sure why this is failing when patching one of our RAC servers , I thought it was due to the env variable PERL5LIB=/home/grid/perl5/lib/perl5: but we have set this on all our other RAC servers and we have never had a issue patching , so for now in order to fix this I did the following on the node that had the issue</p><pre>Locate the strict.pm file location  <br>[root@a6465] $ ls -lrt /$GRID_HOME/perl/lib/5.38.2/strict.pm<br>-rwxr-xr-x 1 root oinstall 4783 Apr  7  2024 /u01/app/19.20.0/grid/perl/lib/5.38.2/strict.pm<br>[root@a6465] $ ls -l /usr/share/perl5/strict.pm<br>-rw-r--r-- 1 root root 3933 Feb  2  2021 /usr/share/perl5/strict.pm</pre><p>Set the Perl variable as below</p><pre>[root@a6465]# export PERL5LIB=/u01/app/19.20.0/grid/perl/lib/:/usr/share/perl5/<br>[root@a6465]# export PATH=$PATH:/u01/app/19.20.0/grid/perl/lib/:/usr/share/perl5/</pre><p>Rerun the rootcrs.sh -postpatch</p><pre><br>[root@a6465]# /u01/app/19.20.0/grid/crs/install/rootcrs.sh -postpatch</pre><p>resume the patching with</p><pre> [grid@a6465(LMT:+ASM1) 36866578 ] $ sudo opatchauto resume</pre><p>Check with cluvfy after patching</p><p><a href="https://dohdatabase.com/2023/02/28/use-cluster-verification-utility-cluvfy-and-avoid-surprises/">Use Cluster Verification Utility (cluvfy) and Avoid Surprises</a></p><p><a href="https://www.pythian.com/blog/technical-track/the-cluster-upgrade-state-is-rolling-patch-with-correct-patch-level-in-all-nodes">https://www.pythian.com/blog/technical-track/the-cluster-upgrade-state-is-rolling-patch-with-correct-patch-level-in-all-nodes</a></p><pre>[grid@a6465(LMT:+ASM1) 36866578 ] $ export CVUHOME=/u01/app/grid/cvu<br>[grid@a6465(LMT:+ASM1) 36866578 ] $ export PATH=$CVUHOME/bin:$PATH<br>[grid@a6465(LMT:+ASM1) 36866578 ] $ cluvfy stage -post patch<br><br>Performing following verification checks ...<br><br>  cluster upgrade state ...PASSED<br><br>Post-check for Patch Application was successful.<br><br>CVU operation performed:      stage -post patch<br>Date:                         19-Nov-2024 09:04:25<br>CVU version:                  Standalone 21.16.0.0.0 (110524x8664)<br>Clusterware version:          19.0.0.0.0<br>CVU home:                     /u01/app/grid/cvu<br>Grid home:                    /u01/app/19.20.0/grid<br>User:                         grid<br>Operating system:             Linux5.4.17-2136.305.5.3.el7uek.x86_64</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c7f4ba3fa45e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Import data in ATP using data pump files using oracle cloud shell]]></title>
            <link>https://medium.com/@mike_desouza/import-data-in-atp-using-data-pump-files-using-oracle-cloud-shell-79f63b11478f?source=rss-2230a3359e99------2</link>
            <guid isPermaLink="false">https://medium.com/p/79f63b11478f</guid>
            <category><![CDATA[data-pump]]></category>
            <dc:creator><![CDATA[Mike Desouza]]></dc:creator>
            <pubDate>Thu, 09 Nov 2023 15:36:28 GMT</pubDate>
            <atom:updated>2023-11-09T15:36:28.586Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Import data in ATP using data pump files using oracle cloud shell</strong></p><p>create Bucket in Object storage</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QqiNhTvlWwvB_wNULafq1w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T2kppHj1ZFWKlI06lXHStA.png" /></figure><p>upload dmp file into bucket datapump</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0q3iyfQw0C4IaM3a50hjCA.png" /></figure><p>once uploaded get the details of the Object</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*axsqTZ-dPLuwOFBeLl-Tbw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ESYeXACvVX_X63jq7iqu-w.png" /></figure><p>connect to your Autonomous database</p><p>once connected get the OCID of the database</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RoGIQdN2QiNVoCm9zfVi7Q.png" /></figure><p>Launch Cloud shell from the OCI Console</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/525/1*fgrd5UU-R4NPvYwyjl1f2w.png" /></figure><p>Download the Autonomous database client Credentials</p><pre>ATP_OCID=ocid1.autonomousdatabase.oc1.uk-london-1.anwgiljsx5ztr2ia5km3dtoxt4t5ane2fasrvzc5vdlmci5qzyf5elzkrg6q<br>FILE_NAME=wallet.zip<br>WALLET_PASS=Sandp1t2022<br>oci db autonomous-database generate-wallet --autonomous-database-id $ATP_OCID --file $FILE_NAME --password $WALLET_PASS<br><br></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Pc12wSozQgSqvDA1BP3ucw.png" /></figure><p>unzip the wallet and change the directory to the location of the wallet</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/991/1*OxyD4qGWSpJb3-pACDj6Pg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/749/1*DaN56Y3AmLsbfyTY5dIniQ.png" /></figure><p>check the connection to the Autonomous database</p><pre><br>export TNS_ADMIN=/home/mikey_deso<br>cat tnsnames.ora<br>sqlplus ADMIN@sandboxatp_medium</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/883/1*OPm10MkEHM0ZxJSuGwZoJw.png" /></figure><p>allow ATP database access to object storage</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/1*-dLKYM72xq1q4aoQ8AMBZg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/887/1*zKjbjPMygYOe5_UksJ6yeA.png" /></figure><p>copy the token</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oE4zNsMnoIKWMT_yeTZB8A.png" /></figure><p>create a credential in the ATP database using your username and token saved earlier</p><p>if the credential exist drop it first</p><pre>BEGIN<br>  DBMS_CLOUD.drop_credential(credential_name =&gt; &#39;OBJECT_STORE_CRED&#39;);<br>END;<br>/</pre><pre>SQL&gt; SET DEFINE OFF <br>SQL&gt; BEGIN<br>  DBMS_CLOUD.CREATE_CREDENTIAL(<br>    credential_name =&gt; &#39;OBJECT_STORE_CRED&#39;,<br>    username =&gt; &#39;mike_revoult@gmail.com&#39;,<br>    password =&gt; &#39;)(:CxXyfvHs4+kRZonU&#39;<br>  );<br>END;<br>/  2    3    4    5    6    7    8  <br><br>PL/SQL procedure successfully completed.<br><br>SQL&gt; </pre><p>Import the data pump dump files into your database</p><pre>directory=DATA_PUMP_DIR<br>credential=OBJECT_STORE_CRED<br>schemas=TOPFRM_WLS<br>dumpfile=https://objectstorage.uk-london-1.oraclecloud.com/n/lrszzmjknwlq/b/datapump/o/TOPFRM.dmp<br>~                                                                                                                                                                                                                                                                                                                                                                                                                                <br>~                                                                                                                   </pre><pre>mikey_deso@cloudshell:~ (uk-london-1)$ impdp userid=admin@sandboxatp_medium parfile=imp.par<br><br>Import: Release 21.0.0.0.0 - Production on Thu Dec 22 16:10:21 2022<br>Version 21.8.0.0.0<br><br>Copyright (c) 1982, 2022, Oracle and/or its affiliates.  All rights reserved.<br>Password: <br><br>Connected to: Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production<br>Master table &quot;ADMIN&quot;.&quot;SYS_IMPORT_SCHEMA_01&quot; successfully loaded/unloaded<br>Starting &quot;ADMIN&quot;.&quot;SYS_IMPORT_SCHEMA_01&quot;:  userid=admin/********@sandboxatp_medium parfile=imp.par <br>Processing object type SCHEMA_EXPORT/USER<br>Processing object type SCHEMA_EXPORT/SYSTEM_GRANT<br>Processing object type SCHEMA_EXPORT/ROLE_GRANT<br>Processing object type SCHEMA_EXPORT/DEFAULT_ROLE<br>Processing object type SCHEMA_EXPORT/TABLESPACE_QUOTA<br>Processing object type SCHEMA_EXPORT/PASSWORD_HISTORY<br>Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA<br>Processing object type SCHEMA_EXPORT/SEQUENCE/SEQUENCE<br>Processing object type SCHEMA_EXPORT/TABLE/TABLE<br>Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA<br>. . imported &quot;TOPFRM_WLS&quot;.&quot;BEACSS_SCHEMA_VERSION&quot;        5.085 KB       1 rows<br>. . imported &quot;TOPFRM_WLS&quot;.&quot;BEAPC&quot;                            0 KB       0 rows<br>. . imported &quot;TOPFRM_WLS&quot;.&quot;BEAPCM&quot;                           0 KB       0 rows<br>. . imported &quot;TOPFRM_WLS&quot;.&quot;BEAPRMP&quot;                          0 KB       0 rows<br>. . imported &quot;TOPFRM_WLS&quot;.&quot;BEARM&quot;                            0 KB       0 rows<br>. . imported &quot;TOPFRM_WLS&quot;.&quot;BEASAML2_CACHE&quot;                   0 KB       0 rows<br>. . imported &quot;TOPFRM_WLS&quot;.&quot;BEASAML2_ENDPOINT&quot;                0 KB       0 rows<br>. . imported &quot;TOPFRM_WLS&quot;.&quot;BEASAML2_IDPPARTNER&quot;              0 KB       0 rows<br>. . imported &quot;TOPFRM_WLS&quot;.&quot;BEASAML2_IDP_AUDIENCEURI&quot;         0 KB       0 rows<br>. . imported &quot;TOPFRM_WLS&quot;.&quot;BEASAML2_IDP_PT_EP&quot;               0 KB       0 rows<br>. . imported &quot;TOPFRM_WLS&quot;.&quot;BEASAML2_IDP_REDIRECTURI&quot;         0 KB       0 rows<br>. . imported &quot;TOPFRM_WLS&quot;.&quot;BEASAML2_SPPARTNER&quot;               0 KB       0 rows<br>. . imported &quot;TOPFRM_WLS&quot;.&quot;BEASAML2_SP_AUDIENCEURI&quot;          0 KB       0 rows<br>. . imported &quot;TOPFRM_WLS&quot;.&quot;BEASAML2_SP_PT_EP&quot;                0 KB       0 rows<br>. . imported &quot;TOPFRM_WLS&quot;.&quot;BEASAMLAP&quot;                        0 KB       0 rows<br>. . imported &quot;TOPFRM_WLS&quot;.&quot;BEASAMLAP_AURI&quot;                   0 KB       0 rows<br>. . imported &quot;TOPFRM_WLS&quot;.&quot;BEASAMLAP_ITP&quot;                    0 KB       0 rows<br>. . imported &quot;TOPFRM_WLS&quot;.&quot;BEASAMLAP_RURI&quot;                   0 KB       0 rows<br>. . imported &quot;TOPFRM_WLS&quot;.&quot;BEASAMLRP&quot;                        0 KB       0 rows<br>. . imported &quot;TOPFRM_WLS&quot;.&quot;BEASAMLRP_ACP&quot;                    0 KB       0 rows<br>. . imported &quot;TOPFRM_WLS&quot;.&quot;BEASAMLRP_AU&quot;                     0 KB       0 rows<br>. . imported &quot;TOPFRM_WLS&quot;.&quot;BEAUPC&quot;                           0 KB       0 rows<br>. . imported &quot;TOPFRM_WLS&quot;.&quot;BEAWCMCI&quot;                         0 KB       0 rows<br>. . imported &quot;TOPFRM_WLS&quot;.&quot;BEAWCRE&quot;                          0 KB       0 rows<br>. . imported &quot;TOPFRM_WLS&quot;.&quot;BEAWPCI&quot;                          0 KB       0 rows<br>. . imported &quot;TOPFRM_WLS&quot;.&quot;BEAWRCI&quot;                          0 KB       0 rows<br>. . imported &quot;TOPFRM_WLS&quot;.&quot;BEAXACMLAP&quot;                       0 KB       0 rows<br>. . imported &quot;TOPFRM_WLS&quot;.&quot;BEAXACMLAP_RS&quot;                    0 KB       0 rows<br>. . imported &quot;TOPFRM_WLS&quot;.&quot;BEAXACMLRAP&quot;                      0 KB       0 rows<br>. . imported &quot;TOPFRM_WLS&quot;.&quot;BEAXACMLRAP_R&quot;                    0 KB       0 rows<br>. . imported &quot;TOPFRM_WLS&quot;.&quot;BEAXACMLRAP_RS&quot;                   0 KB       0 rows<br>. . imported &quot;TOPFRM_WLS&quot;.&quot;CHECKPOINTDATA&quot;                   0 KB       0 rows<br>. . imported &quot;TOPFRM_WLS&quot;.&quot;EXECUTIONINSTANCEDATA&quot;            0 KB       0 rows<br>. . imported &quot;TOPFRM_WLS&quot;.&quot;JOBINSTANCEDATA&quot;                  0 KB       0 rows<br>. . imported &quot;TOPFRM_WLS&quot;.&quot;JOBSTATUS&quot;                        0 KB       0 rows<br>. . imported &quot;TOPFRM_WLS&quot;.&quot;STEPEXECUTIONINSTANCEDATA&quot;        0 KB       0 rows<br>. . imported &quot;TOPFRM_WLS&quot;.&quot;STEPSTATUS&quot;                       0 KB       0 rows<br>. . imported &quot;TOPFRM_WLS&quot;.&quot;WEBLOGIC_TIMERS&quot;                  0 KB       0 rows<br>. . imported &quot;TOPFRM_WLS&quot;.&quot;WLS_EVENTS&quot;                       0 KB       0 rows<br>. . imported &quot;TOPFRM_WLS&quot;.&quot;WLS_HVST&quot;                         0 KB       0 rows<br>Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX<br>Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT<br>Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS<br>Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT<br>Processing object type SCHEMA_EXPORT/TABLE/TRIGGER<br>Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS<br>Processing object type SCHEMA_EXPORT/STATISTICS/MARKER<br>Job &quot;ADMIN&quot;.&quot;SYS_IMPORT_SCHEMA_01&quot; successfully completed at Thu Dec 22 16:10:43 2022 elapsed 0 00:00:16                                                                                        </pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=79f63b11478f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DG standby: account-status OPEN but login fails with “ORA-28000: the account is locked]]></title>
            <link>https://medium.com/@mike_desouza/dg-standby-account-status-open-but-login-fails-with-ora-28000-the-account-is-locked-c69ab14f71b0?source=rss-2230a3359e99------2</link>
            <guid isPermaLink="false">https://medium.com/p/c69ab14f71b0</guid>
            <category><![CDATA[oracle-database]]></category>
            <dc:creator><![CDATA[Mike Desouza]]></dc:creator>
            <pubDate>Tue, 13 Jun 2023 09:06:28 GMT</pubDate>
            <atom:updated>2023-06-13T09:06:28.414Z</atom:updated>
            <content:encoded><![CDATA[<p>we recently done a DR test and when we did a switchover and switchback a user was complaining about not able to login to active data guard using their credentials</p><p>SQL*Plus: Release 19.0.0.0.0 — Production on Tue Jun 13 09:45:30 2023<br>Version 19.17.0.0.0</p><p>Copyright © 1982, 2022, Oracle. All rights reserved.</p><p>Enter password:<br>ERROR:<br>ORA-28000: the account is locked</p><p>But the user is not showing as locked, the account_status in dba_users show ‘OPEN’ in both primary and standby:</p><p>Primary database:</p><p>SQL&gt; select account_status from dba_users where username=’DBSNMP’;</p><p>ACCOUNT_STATUS<br> — — — — — — — — — — — — — — — — <br>OPEN</p><p>Standby database:</p><p>SQL&gt; select account_status from dba_users where username=’DBSNMP’;</p><p>ACCOUNT_STATUS<br> — — — — — — — — — — — — — — — — <br>OPEN</p><pre>on the standby <br><br>SQL&gt; select rua.con_id, du.username username, rua.userid, rua.PASSW_LOCKED, rua.PASSW_LOCK_UNLIM, to_char(rua.PASSW_LOCK_TIME,&#39;DD-MON-YYYY HH24:MI:SS&#39;) locked_date<br> from V$RO_USER_ACCOUNT rua, dba_users du<br> where rua.userid=du.user_id and (rua.PASSW_LOCKED = 1 OR rua.PASSW_LOCK_UNLIM = 1);</pre><p>the above will show you when the account was locked</p><p>To resolve the issue and you are running on 12.1.0.2 onwards you can unlock the user from the read only, Active Data Guard database</p><pre>alter user &lt;username&gt; account unlock;</pre><p>run the below command on the standby database</p><pre>     SQL&gt;select * from v_$RO_USER_ACCOUNT where username=&#39;DBSNMP&#39;;</pre><p>You will not see an entry means your account is unlocked in STANDBY Database.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c69ab14f71b0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[User, group, or role ‘mikey’ already exists in the current database.]]></title>
            <link>https://medium.com/@mike_desouza/user-group-or-role-mikey-already-exists-in-the-current-database-998381a13ab3?source=rss-2230a3359e99------2</link>
            <guid isPermaLink="false">https://medium.com/p/998381a13ab3</guid>
            <category><![CDATA[sql-server]]></category>
            <dc:creator><![CDATA[Mike Desouza]]></dc:creator>
            <pubDate>Wed, 01 Mar 2023 10:01:56 GMT</pubDate>
            <atom:updated>2023-03-01T10:04:14.647Z</atom:updated>
            <content:encoded><![CDATA[<h3>User, group, or role ‘mikey’ already exists in the current database. (Microsoft SQL Server, Error: 15023)</h3><p>created a user on a 3 node sql Server Availability group , during a failover the user could not login to the database. the database user is not mapped to the corresponding login at the instance level</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/607/1*MNNA58bQ0oGLy1H_DS6OsA.png" /></figure><p>get a list of orphaned users</p><pre>SELECT dp.name  As Orphan_Users<br>FROM sys.database_principals dp<br>left join sys.server_principals sp<br>ON dp.sid=sp.sid <br>WHERE sp.name IS NULL <br>AND dp.type=&#39;S&#39; AND <br>dp.name NOT IN (&#39;guest&#39;,&#39;INFORMATION_SCHEMA&#39;,&#39;sys&#39;)<br></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/563/1*G_rWMrG22qLY3fjG1lEqiQ.png" /></figure><p>To fix the mikey user run the following</p><pre>ALTER USER mikey WITH LOGIN = mikey</pre><p>that should fix it</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=998381a13ab3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[zero downtime grid patching fails during switchover on 2 node RAC cluster]]></title>
            <link>https://medium.com/@mike_desouza/zero-downtime-grid-patching-fails-during-switchover-on-2-node-rac-cluster-3a95707c590?source=rss-2230a3359e99------2</link>
            <guid isPermaLink="false">https://medium.com/p/3a95707c590</guid>
            <dc:creator><![CDATA[Mike Desouza]]></dc:creator>
            <pubDate>Wed, 08 Feb 2023 16:04:11 GMT</pubDate>
            <atom:updated>2023-02-08T16:04:11.640Z</atom:updated>
            <content:encoded><![CDATA[<p>new grid home created with 19.3 and patched to 19.17</p><pre>./gridSetup.sh -applyRU /u01/app/grid/tmp_patch_staging/34449117/34416665 </pre><p>No issue with the above software insallation and patching</p><pre>Node 1 <br>[grid@helix01(LMT:+ASM1) rac ] $  kfod op=patches<br>---------------<br>List of Patches<br>===============<br>33575402<br>34419443<br>34428761<br>34444834<br>34580338<br>[grid@helix01(LMT:+ASM1) rac ] $ opatch lspatches<br>34580338;TOMCAT RELEASE UPDATE 19.0.0.0.0 (34580338)<br>34444834;OCW RELEASE UPDATE 19.17.0.0.0 (34444834)<br>34428761;ACFS RELEASE UPDATE 19.17.0.0.0 (34428761)<br>34419443;Database Release Update : 19.17.0.0.221018 (34419443)<br>33575402;DBWLM RELEASE UPDATE 19.0.0.0.0 (33575402)<br><br>[grid@helix01(LMT:+ASM1) rac ] $  kfod op=patchlvl<br>-------------------<br>Current Patch level<br>===================<br>3007461856</pre><pre>Node2 <br>[grid@helix02(LMT:+ASM2) rac ] $ kfod op=patches<br>---------------<br>List of Patches<br>===============<br>33575402<br>34419443<br>34428761<br>34444834<br>34580338<br>[grid@helix02(LMT:+ASM2) rac ] $ opatch lspatches<br>34580338;TOMCAT RELEASE UPDATE 19.0.0.0.0 (34580338)<br>34444834;OCW RELEASE UPDATE 19.17.0.0.0 (34444834)<br>34428761;ACFS RELEASE UPDATE 19.17.0.0.0 (34428761)<br>34419443;Database Release Update : 19.17.0.0.221018 (34419443)<br>33575402;DBWLM RELEASE UPDATE 19.0.0.0.0 (33575402)<br><br>OPatch succeeded.<br>[grid@helix02(LMT:+ASM2) rac ] $ kfod op=patchlvl<br>-------------------<br>Current Patch level<br>===================<br>3007461856</pre><p>The problem</p><p>during the switchover</p><pre>Node1 <br>[root@helix01~]# /u01/app/19.17.0/grid/root.sh -transparent -nodriverupdate<br>Performing root user operation. The following environment variables are set as:<br>    ORACLE_OWNER= grid<br>    ORACLE_HOME=  /u01/app/19.17.0/grid Enter the full pathname of the local bin directory: [/usr/local/bin]:<br>The contents of &quot;dbhome&quot; have not changed. No need to overwrite.<br>The contents of &quot;oraenv&quot; have not changed. No need to overwrite.<br>The contents of &quot;coraenv&quot; have not changed. No need to overwrite. Entries will be added to the /etc/oratab file as needed by<br>Database Configuration Assistant when a database is created<br>Finished running generic part of root script.<br>Now product-specific root actions will be performed.<br>Relinking oracle with rac_on option<br>LD_LIBRARY_PATH=&#39;/u01/app/19.0.0/grid/lib:/u01/app/19.17.0/grid/lib:&#39;<br>Using configuration parameter file: /u01/app/19.17.0/grid/crs/install/crsconfig_params<br>The log of current session can be found at:<br>  /u01/app/grid/crsdata/helix01/crsconfig/rootcrs_helix01_2023-02-08_12-16-41AM.log<br>Using configuration parameter file: /u01/app/19.17.0/grid/crs/install/crsconfig_params<br>The log of current session can be found at:<br>  /u01/app/grid/crsdata/helix01/crsconfig/crs_prepatch_apply_oop_helix01_2023-02-08_12-16-42AM.log<br>2023/02/08 12:16:49 CLSRSC-347: Successfully unlock /u01/app/19.17.0/grid<br>2023/02/08 12:16:50 CLSRSC-671: Pre-patch steps for patching GI home successfully completed.<br>Using configuration parameter file: /u01/app/19.17.0/grid/crs/install/crsconfig_params<br>The log of current session can be found at:<br>  /u01/app/grid/crsdata/helix01/crsconfig/crs_postpatch_apply_oop_helix01_2023-02-08_12-16-50AM.log<br>PRCG-1325 : CRS home version 19.13.0.0.0 is less than the minimum version of 19.6<br><br>Node 2<br>root@helix02~]# /u01/app/19.17.0/grid/root.sh -transparent -nodriverupdate<br>Performing root user operation. The following environment variables are set as:<br>    ORACLE_OWNER= grid<br>    ORACLE_HOME=  /u01/app/19.17.0/grid Enter the full pathname of the local bin directory: [/usr/local/bin]:<br>The contents of &quot;dbhome&quot; have not changed. No need to overwrite.<br>The contents of &quot;oraenv&quot; have not changed. No need to overwrite.<br>The contents of &quot;coraenv&quot; have not changed. No need to overwrite. Entries will be added to the /etc/oratab file as needed by<br>Database Configuration Assistant when a database is created<br>Finished running generic part of root script.<br>Now product-specific root actions will be performed.<br>Relinking oracle with rac_on option<br>LD_LIBRARY_PATH=&#39;/u01/app/19.0.0/grid/lib:/u01/app/19.17.0/grid/lib:&#39;<br>Using configuration parameter file: /u01/app/19.17.0/grid/crs/install/crsconfig_params<br>The log of current session can be found at:<br>  /u01/app/grid/crsdata/helix02/crsconfig/rootcrs_helix02_2023-02-08_12-17-25AM.log<br>Using configuration parameter file: /u01/app/19.17.0/grid/crs/install/crsconfig_params<br>The log of current session can be found at:<br>  /u01/app/grid/crsdata/helix02/crsconfig/crs_prepatch_apply_oop_helix02_2023-02-08_12-17-25AM.log<br>2023/02/08 12:17:32 CLSRSC-347: Successfully unlock /u01/app/19.17.0/grid<br>2023/02/08 12:17:32 CLSRSC-671: Pre-patch steps for patching GI home successfully completed.<br>Using configuration parameter file: /u01/app/19.17.0/grid/crs/install/crsconfig_params<br>The log of current session can be found at:<br>  /u01/app/grid/crsdata/helix02/crsconfig/crs_postpatch_apply_oop_helix02_2023-02-08_12-17-33AM.log<br>PRCG-1325 : CRS home version 19.13.0.0.0 is less than the minimum version of 19.6</pre><p>not sure what the issue is when we tried to start clusterware up we encountered the following issue</p><pre>CRS-6706: Oracle Clusterware Release patch level (&#39;3007461856&#39;) does not match Software patch level (&#39;2966572961&#39;). Oracle Clusterware cannot be started.<br>CRS-4000: Command Start failed, or completed with errors.</pre><p>Solution</p><p>ran the following scripts on node 1</p><pre>#&lt;GRID_HOME&gt;/crs/install:&gt;./rootcrs.sh -unlock<br>#&lt;GRID_HOME&gt;/bin:&gt;clscfg -localpatch (Corrects patch level at OLR)<br>#&lt;GRID_HOME&gt;/bin:&gt;clscfg -patch (corrects patch level at OCR)<br>#&lt;GRID_HOME&gt;/crs/install:&gt; ./rootcrs.sh -lock</pre><pre>Node 1<br>[root@helix01~]# cd /u01/app/19.17.0/grid/crs/install<br>[root@helix01 install]# ./rootcrs.sh -unlock<br>Using configuration parameter file: /u01/app/19.17.0/grid/crs/install/crsconfig_params<br>The log of current session can be found at:<br>  /u01/app/grid/crsdata/helix01/crsconfig/crsunlock_helix01_2023-02-08_03-23-29PM.log<br>2023/02/08 15:23:32 CLSRSC-4012: Shutting down Oracle Trace File Analyzer (TFA) Collector.<br>2023/02/08 15:25:18 CLSRSC-4013: Successfully shut down Oracle Trace File Analyzer (TFA) Collector.<br>2023/02/08 15:25:19 CLSRSC-347: Successfully unlock /u01/app/19.0.0/grid<br>[root@helix01install]#<br><br>[root@helix01 install]# cd /u01/app/19.17.0/grid/bin/<br>[root@helix01 bin]# ./clscfg -localpatch<br>clscfg: EXISTING configuration version 0 detected.<br>Creating OCR keys for user &#39;root&#39;, privgrp &#39;root&#39;..<br>Operation successful.<br>[root@helix01 bin]#<br><br>[root@helix01 bin]# ./clscfg -patch<br>clscfg: -patch mode specified<br>Unable to open cssctx for node information 3.<br>[root@helix01 bin]#<br><br>[root@helix01 bin]# cd /u01/app/19.17.0/grid/crs/install<br>[root@helix01 install]# ./rootcrs.sh -lock<br>Using configuration parameter file: /u01/app/19.17.0/grid/crs/install/crsconfig_params<br>The log of current session can be found at:<br>  /u01/app/grid/crsdata/helix01/crsconfig/crslock_helix01_2023-02-08_03-28-25PM.log<br>2023/02/08 15:28:27 CLSRSC-329: Replacing Clusterware entries in file &#39;oracle-ohasd.service&#39;<br>[root@helix01 install]#<br><br>Node 2 <br>[root@helix02~]# cd /u01/app/19.17.0/grid/crs/install<br>[root@helix02 install]# ./rootcrs.sh -unlock<br>Using configuration parameter file: /u01/app/19.17.0/grid/crs/install/crsconfig_params<br>The log of current session can be found at:<br>  /u01/app/grid/crsdata/helix02/crsconfig/crsunlock_helix01_2023-02-08_03-23-29PM.log<br>2023/02/08 15:23:32 CLSRSC-4012: Shutting down Oracle Trace File Analyzer (TFA) Collector.<br>2023/02/08 15:25:18 CLSRSC-4013: Successfully shut down Oracle Trace File Analyzer (TFA) Collector.<br>2023/02/08 15:25:19 CLSRSC-347: Successfully unlock /u01/app/19.0.0/grid<br>[root@helix02install]#<br><br>[root@helix02 install]# cd /u01/app/19.17.0/grid/bin/<br>[root@helix02 bin]# ./clscfg -localpatch<br>clscfg: EXISTING configuration version 0 detected.<br>Creating OCR keys for user &#39;root&#39;, privgrp &#39;root&#39;..<br>Operation successful.<br>[root@helix02 bin]#<br><br>[root@helix02 bin]# ./clscfg -patch<br>clscfg: -patch mode specified<br>Unable to open cssctx for node information 3.<br>[root@helix02 bin]#<br><br>[root@helix02 bin]# cd /u01/app/19.17.0/grid/crs/install<br>[root@helix02 install]# ./rootcrs.sh -lock<br>Using configuration parameter file: /u01/app/19.17.0/grid/crs/install/crsconfig_params<br>The log of current session can be found at:<br>  /u01/app/grid/crsdata/helix01/crsconfig/crslock_helix02_2023-02-08_03-28-25PM.log<br>2023/02/08 15:28:27 CLSRSC-329: Replacing Clusterware entries in file &#39;oracle-ohasd.service&#39;<br>[root@helix02 install]#</pre><p>Cluster started after running those scripts not sure what caused the issue guess I will have to raise it with oracle</p><pre>[grid@helix01 (LMT:+ASM2) ~ ] $ crsctl check cluster -all<br>**************************************************************<br>helix01:<br>CRS-4537: Cluster Ready Services is online<br>CRS-4529: Cluster Synchronization Services is online<br>CRS-4533: Event Manager is online<br>**************************************************************<br>helix02:<br>CRS-4537: Cluster Ready Services is online<br>CRS-4529: Cluster Synchronization Services is online<br>CRS-4533: Event Manager is online<br>**************************************************************<br>[grid@helix01 (LMT:+ASM2) ~ ] $</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3a95707c590" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using rclone with OCI’s S3 Compatible API]]></title>
            <link>https://medium.com/@mike_desouza/using-rclone-with-ocis-s3-compatible-api-f02b70022b96?source=rss-2230a3359e99------2</link>
            <guid isPermaLink="false">https://medium.com/p/f02b70022b96</guid>
            <dc:creator><![CDATA[Mike Desouza]]></dc:creator>
            <pubDate>Fri, 27 Jan 2023 15:10:36 GMT</pubDate>
            <atom:updated>2023-01-27T15:10:36.088Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>create a bucket in OCI</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l7ZexJwg4EgoxraDp13zag.png" /></figure><p>make a note of the Namespace</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/775/1*1FfZW7Dl8pVgUPlBz5DDpQ.png" /></figure><p>OCI’s object storage is able to work with many clients that are built to work with Amazon’s AWS S3 API. When objects are created in OCI object storage, the URL for the objects will be in this format: <a href="https://{object-storage-namespace}.compat.objectstorage.{region}.oraclecloud.com/%7Bbucket%7D/%7Bfilename%7D.">https://{object-storage-namespace}.compat.objectstorage.{region}.oraclecloud.com/{bucket}/{filename}.</a></p><p>generate customer secret key under user settings in the OCI console</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4SNM2dlN2tQATo1Eq8xloQ.png" /></figure><p>save the secret key and you will need it , you can always regenerate it if you have forgotten to save it</p><p><strong>configure rclone</strong></p><p>there are a few ways to configure rclone but i prefer two of the ways</p><p>running <strong>rclone config</strong> and answering the prompts or manually creating the config file .config/rclone/rclone.conf in the home directory of the user</p><p>I am going to use the option to manually create the config file</p><pre>[oci]<br>type = s3<br>env_auth = false<br>access_key_id = {access_key_id}<br>secret_access_key = {secret_access_key}<br>region = {region-identifier}<br>endpoint = https://{bucket-namespace}.compat.objectstorage.{region-identifier}.oraclecloud.com</pre><p>fill in the details between the curly brackets</p><p>Once done you are ready to test and run the clone</p><p>Test</p><pre>#Test the available buckets <br>rclone lsd oci:<br> -1 2023-01-20 13:11:36        -1 PythonTestUploadBucket<br> -1 2023-01-27 13:48:17        -1 rcloneS3</pre><p>copy the contents of the current direct to your rcloneS3 bucket</p><pre>#clone contents of the current directory<br>rclone -v copy . oci:rcloneS3<br></pre><p>To delete the bucket and all its contents</p><pre>#delete contents of the bucket and delete bucket<br>rclone -v purge oci:rcloneS3</pre><h3>Using rclone with OCI’s Swift Storage API</h3><p>The OCI Swift API uses Auth Tokens and can be create in the user settings of the OCI console</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pGGYszX0M6pz9jzTylrhhQ.png" /></figure><p>save the generated token as you will need it later</p><p><strong>configure rclone</strong></p><p>there are a few ways to configure rclone but i prefer two of the ways</p><p>running <strong>rclone config</strong> and answering the prompts or manually creating the config file .config/rclone/rclone.conf in the home directory of the user</p><p>I am going to use the option to manually create the config file</p><pre>[oci-api]<br>type = swift<br>env_auth = false<br>auth_token = na<br>storage_url = https://{encoded-user-name}:{encoded-token}@swiftobjectstorage.{region-identifier}.oraclecloud.com/v1/{bucket-namespace}</pre><p>eg oracleidentitycloudservice/tamara_jones@gmail.com encoded will be oracleidentitycloudservice%2Ftamara_jones%40gmail.com</p><p>encoded-token is the token that was generated earlier in the post and the bucket namespace is the same namespace highlighted earlier in the post</p><p>you will need to encode the token too I used <a href="https://www.urlencoder.org/">https://www.urlencoder.org/</a> to encode the username and token</p><p>now to test</p><p>copy the contents of the current direct to your rcloneS3 bucket</p><pre>#clone contents of the current directory<br>rclone -v copy . oci_api:rcloneS3</pre><p>To delete the bucket and all its contents</p><pre>#delete contents of the bucket and delete bucket<br>rclone -v purge oci_api:rcloneS3</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f02b70022b96" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[mount an Oracle Object Storage Bucket as File System on Oracle Linux 7]]></title>
            <link>https://medium.com/@mike_desouza/mount-an-oracle-object-storage-bucket-as-file-system-on-oracle-linux-7-e95a8139dda?source=rss-2230a3359e99------2</link>
            <guid isPermaLink="false">https://medium.com/p/e95a8139dda</guid>
            <dc:creator><![CDATA[Mike Desouza]]></dc:creator>
            <pubDate>Fri, 16 Dec 2022 15:49:19 GMT</pubDate>
            <atom:updated>2022-12-16T15:49:19.833Z</atom:updated>
            <content:encoded><![CDATA[<p>install s3fs-fuse from GitHub:</p><pre>sudo yum install automake fuse fuse-devel gcc-c++ git libcurl-devel libxml2-devel make openssl-devel<br>git clone https://github.com/s3fs-fuse/s3fs-fuse.git<br>cd s3fs-fuse<br>./autogen.sh<br>./configure<br>make<br>sudo make install<br>    </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Nb-ZM6WuUUiW9jj2Rc_q3A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/790/0*UPp3-2YabjowRsoh" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/911/1*3imjJunvt7D9iD0tdVJoRw.png" /></figure><p>copy the key</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/908/1*hELcOUiJmo3g4kWT6c66Ew.png" /></figure><p>copy the access key</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aO33IP68RXgjIuGComfhtg.png" /></figure><p>Create a password file</p><p>[opc@sandpit ~]$ vi .s3fs_password<br>251070d79d2c12d9b2205245f91fc04734db1a0e:N8G9jv06+EobLiHmiiG2WqW8tbSE3I779L5NZFbHfdI=<br>[opc@sandpit ~]$ chmod 600 .s3fs_password</p><p>format is accesskey:Secretkey</p><p>mount the bucket as a local file system</p><pre>[opc@sandpit ~]$ s3fs patching /home/opc/patching/ -o endpoint=uk-london-1 -o passwd_file=.s3fs_password -o url=https://lrszemjkwlq.compat.objectstorage.uk-london-1.oraclecloud.com/ -onomultipart -o use_path_request_style -o allow_other<br>fusermount: option allow_other only allowed if &#39;user_allow_other&#39; is set in /etc/fuse.conf</pre><p>edit the /etc/fuse.conf and uncomment the allow_other line</p><pre>[opc@sandpit ~]$ s3fs patching /home/opc/patching/ -o endpoint=uk-london-1 -o passwd_file=.s3fs_password -o url=https://lrszemjkwlq.compat.objectstorage.uk-london-1.oraclecloud.com/ -onomultipart -o use_path_request_style -o allow_other<br>[opc@sandpit ~]$ mount | grep s3fs<br>s3fs on /home/opc/patching type fuse.s3fs (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000,allow_other)</pre><p>Create a file in the directory</p><pre>touch /home/opc/patching/temp.txt</pre><p>Remove the mount point</p><pre>[opc@sandpit~]$ sudo fusermount -u /home/opc/patching/</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e95a8139dda" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>