<?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 Vishnu Vinnakota on Medium]]></title>
        <description><![CDATA[Stories by Vishnu Vinnakota on Medium]]></description>
        <link>https://medium.com/@vishnu.vinnakota?source=rss-dfb3c44c6bf1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Stories by Vishnu Vinnakota on Medium</title>
            <link>https://medium.com/@vishnu.vinnakota?source=rss-dfb3c44c6bf1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 00:05:28 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vishnu.vinnakota/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[Launching Oracle EBS 12.2.9 Vision Instance on Oracle Cloud in 30 minutes]]></title>
            <link>https://medium.com/@vishnu.vinnakota/launching-oracle-ebs-12-2-9-vision-instance-on-oracle-cloud-in-30-minutes-d955b9013d77?source=rss-dfb3c44c6bf1------2</link>
            <guid isPermaLink="false">https://medium.com/p/d955b9013d77</guid>
            <category><![CDATA[oracle-cloud]]></category>
            <category><![CDATA[oracle-r12]]></category>
            <category><![CDATA[oci]]></category>
            <category><![CDATA[oracle-ebs]]></category>
            <dc:creator><![CDATA[Vishnu Vinnakota]]></dc:creator>
            <pubDate>Sat, 30 May 2020 19:12:08 GMT</pubDate>
            <atom:updated>2020-05-31T07:08:56.045Z</atom:updated>
            <content:encoded><![CDATA[<p>If any customer or DBA wants to run Oracle EBS 12.2 Vision Instance, they download EBS 12.2.9 VM Appliance from Oracle E-Delivery. It takes a lot of time to Download Media, Extract, Configure VM and run EBS Instance. Ideally it takes around 1–1.5 Days to run the instance.</p><p>But with Oracle Cloud you can run it in 30 minutes!!! 🙂</p><p>I am surprised as well. Oracle has done an amazing job in not only making the EBS 12.2 image available online, but making it very easy to run it so quickly.</p><p>This post will help you run the EBS 12.2.9 instance in 30 mins even if you have ZERO knowledge on Oracle Cloud.</p><p>So what do you need first:</p><ul><li>Register for free cloud account (Takes 10–15 mins)</li><li>Download MobaXterm or Putty Software</li><li>Generate SSH keys</li></ul><h3>Generating SSH Keys:</h3><p>First generate the SSH keys needed to connect to the VM you are about to create. I used MobaXterm as it is free and easy to use. You can also use Putty. Simply run “ssh keygen” command as below and keep the SSH Key ready to be used while creating the VM.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t5G7J1rjT9dZVT6dLyIVtA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6CYJsckwKWBYYpvBdKB7hQ.png" /></figure><h3>Create VM Instance:</h3><p>First click on Create VM Instance and Provide a name for the VM Instance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H6G5bM90HJ5xykq7sz8kzg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CyEBcMrDBiyPhYYbpC9IWA.png" /></figure><p>Click on “Change Image Source” and select “Oracle EBS 12.2.9”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uR5NcJj955aWXr8S4B7E-g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WJ9zPSeYEMFtw6MX4bqlcA.png" /></figure><p>Click on “Show Shape, Network” and Choose “VM.Standard E2.2”. This shape will provide 2 OCPU and 16 GB Memory which is very much needed for EBS 12.2.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9GJMrZSpjVjTefHekH1zWA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HRkBHPTlHRV_gsdgkRaEnw.png" /></figure><p>If this is a newly created account and you have not created a VCN before, a new VNC is created automatically. Select the option “Assign a public IP Address” so that a Public IP is allocated to the EBS VM Instance and we can access the VM through internet. Then Paste the SSH keys we have generated previously.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*97KSxvD2Mvhq1BvVjmdSoQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C_x3A_MkUuy3K_MJKqp4Hw.png" /></figure><p>Click on “Create” at the bottom. Once you click on it, initially it will show the VM instance status as “Provisioning” and then you can see it as “Running” within 2–3 minutes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YSpMMcKmwB4ff1nhxAGgyQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RQKkocTTg8eCzD3ceNMHRw.png" /></figure><p>Now copy the Public IP (131.61.XXX.XXX) from the VM instance page and connect through MobaXterm — Session. Locate the id_rsa (Private Key) file which we generated before. Save the session name as “EBS-Vision-1229” or any name of your choice. Once you connect, sudo to root and run below commands to configure the Host Names to run EBS.</p><pre>[opc@ebs-vision-1229 ~]$ hostname<br>ebs-vision-1229<br>[opc@ebs-vision-1229 ~]$ sudo su -<br>[root@ebs-vision-1229 ~]# cd /u01/install/scripts/<br>[root@ebs-vision-1229 scripts]# ls<br>cleanup.sh  configdhcp.sh  configstatic.sh  configwebentry.sh  configyum.sh  disableRoot.sh  updatehosts.sh  zeroout.sh<br>[root@ebs-vision-1229 scripts]# sh updatehosts.sh<br>Updating hosts file with the current IPFully Qualified Hostname for this server is : apps.example.com<br>IP Address Configured for this server is    : 10.0.0.2<br>Updating /etc/hosts file Information<br>removing the /etc/hosts.org file<br>Hosts  file update completed[root@ebs-vision-1229 scripts]#<br>[root@ebs-vision-1229 scripts]# cat /etc/hosts<br>127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4<br>::1         localhost localhost.localdomain localhost6 localhost6.localdomain6<br>10.0.0.2        apps.example.com        apps<br>[root@ebs-vision-1229 scripts]# hostname apps.example.com<br>[root@ebs-vision-1229 scripts]# hostname<br>apps.example.com</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RREwGj1P6JJHuZLn5v2N5A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2E55tloIksiFLaA7xbWSGA.png" /></figure><p>Before you start the services, we need to create a Security Rule in the VCN to ensure we can access the port 8000 for EBS.</p><p>Navigate to Networking — Virtual Cloud Networks — Click on VCN — Security Lists — Add Ingress Rules — Provide CIDR, Port 8000</p><p>After this, you should be able to see the new Ingress Rule to access the 8000 port from Internet. If you are new to OCI then you can think of Ingress Rule as a Firewall Rule to access a specific port.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*67bsnxnanjjXQbNOGWOEhw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KRT2YzbkqnEJpOnZLCqeBA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3BMjmxlzj_8OXuqeUy60Wg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IiC2Rrkpqa9aBrBYID2Zbg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aw0R8htj4m-GT8Z0EHZmVA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Oy6kSvLPy2yf9TdcNHuaZg.png" /></figure><p>Start the Services now using Oracle Provided scripts, startdb.sh and startapps.sh. I have also run enableSYSADMIN.sh script to enable and reset SYSADMIN user.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hYtfKL_1AxxTdR0lzEipjQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o8Z6ZHo1jg_H8onHc4TQRw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A9qJ6Vgp_IN5-AquwxuKkA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9ceppILl-0AEppzFfunnnQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QhlDxNPL09NxAOthC-SGIQ.png" /></figure><p>Now add the Host Entry in your Windows Laptop/Desktop with the EBS VM Instance IP. Access the Oracle EBS URL 🙂</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/710/1*MX2ITW-Mra1AB4Bq_-sFAQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fpaL6gNcbhcKhps1CC62nA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H0n6iYIdC7JZCsngC9ayfg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*roWOP-5hykEBFa455QLtRQ.png" /></figure><p>If you want to connect to the database using SQL Developer, then refer to this:</p><p><a href="https://vishnu.ae/oracle/oracle-cloud/connecting-to-ebs-database-in-oracle-cloud-using-sql-developer/">https://vishnu.ae/oracle/oracle-cloud/connecting-to-ebs-database-in-oracle-cloud-using-sql-developer/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d955b9013d77" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Upgrading Oracle EBS Database to 19c]]></title>
            <link>https://medium.com/@vishnu.vinnakota/upgrading-oracle-ebs-database-to-19c-3b6198c8d5bd?source=rss-dfb3c44c6bf1------2</link>
            <guid isPermaLink="false">https://medium.com/p/3b6198c8d5bd</guid>
            <category><![CDATA[oracle-database]]></category>
            <category><![CDATA[19c]]></category>
            <category><![CDATA[database-upgrade]]></category>
            <category><![CDATA[oracle-ebs]]></category>
            <category><![CDATA[oracle-apps-dba]]></category>
            <dc:creator><![CDATA[Vishnu Vinnakota]]></dc:creator>
            <pubDate>Mon, 25 Nov 2019 11:03:35 GMT</pubDate>
            <atom:updated>2019-11-25T11:03:35.944Z</atom:updated>
            <content:encoded><![CDATA[<h3>1. Introduction</h3><p>Oracle officially Certified Oracle E-Business Suite 12.2 with Database 19c to run as a PDB on September 12th, 2019. This is the first time Oracle Certified EBS to run as a PDB. As of now, the EBS CDB can contain only one PDB. Other PDBs cannot exist in the EBS CDB. We will be seeing how to upgrade your EBS 12c Database to 19c (19.3) and run it as a PDB on Oracle Linux 7.5 in this article.</p><h3><strong>2. Environment:</strong></h3><p>I used an Oracle EBS 12.2.8 Vision Instance as an example here so that we have several EBS modules configured. This is to ensure that the upgrade is close to real-time upgrade scenarios. I used an Oracle EBS 12.2.8 Vision Instance as an example here so that we have several EBS modules configured and the data is close to the real-time cases.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NIkENFW4-eAd1Kke6QgKrA.png" /><figcaption>Environment Details</figcaption></figure><blockquote>[oratest@ebn1 ~]$ cat /etc/redhat-release<br>Red Hat Enterprise Linux Server release 7.5 (Maipo)<br>SQL&gt; select release_name from apps.fnd_product_groups;<br>RELEASE_NAME<br> — — — — — — — — — — — — — — — — — — — — — — — — — <br>12.2.8</blockquote><blockquote>SQL&gt; select banner from v$version where banner like ‘Oracle%’;<br>BANNER <br> — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — <br>Oracle Database 12c Enterprise Edition Release 12.1.0.2.0–64bit Production</blockquote><blockquote>SQL&gt; select patch_level from apps.fnd_product_installations where patch_level like ‘%AD%’;<br>PATCH_LEVEL<br> — — — — — — — — — — — — — — — <br>R12.AD.C.11</blockquote><h3>3. Upgrade Prerequisites:</h3><p>Operating System can be : Oracle Linux 7 (64-bit) / RHEL 7 (64-bit) / Oracle Solaris on Sparc 11 (64-bit) /Oracle SLES 12 (64-bit)<br>Oracle EBS 12.2.3 +</p><p>· Apply the latest EBS &amp; Database CPU Patches, ETCC Patches before you start the upgrade process.</p><p>· As part of the upgrade process, we apply several mandatory patches for EBS 19c Database</p><h3>4. Documentation:</h3><p>a) Interoperability Notes: Oracle E-Business Suite Release 12.2 with Oracle Database 19c (Doc ID 2552181.1)</p><p>b) Using Oracle 19c RAC Multitenant (Single PDB) with Oracle E-Business Suite Release 12.2 (Doc ID 2530665.1)</p><p>c) Oracle E-Business Suite Release 12.2: Consolidated List of Patches and Technology Bug Fixes (Doc ID 1594274.1)</p><p><a href="https://docs.oracle.com/en/database/oracle/oracle-database/19/upgrd/index.html">Database Upgrade Guide</a></p><h3>5. Upgrade Process Overview:</h3><p>The upgrade process is a long process but below are the high-level steps of the upgrade process:<br>• Apply Oracle EBS mandatory patches<br>• Install 19c Software and Apply patches from “Doc ID 1594274.1”<br>• Migrate appsutil to 19c Database Home<br>• Install JRE<br>• Create CDB<br>• Upgrade Database to 19c<br>• Covert Database to PDB<br>• Run Autoconfig on Application Tier</p><h3>6. Upgrade:</h3><p>This section covers the actual upgrade process of the database.</p><p><strong>6.1 Apply mandatory Oracle EBS Patches:<br></strong>Based on the current environment i.e. AD/TXK 11 and EBS 12.2.8, I need to apply the patches below:<br>25452805 : Consolidated Patches for CP<br>28371446 : Autoconfig Changes for 19c<br>29965377 : Critical Patch on top of TXK 11<br>26521736 : EBS 12.2 19c Interoperability Patch<br>29618853 : BUG TO IMPLEMENT UTL_FILE_DIR RELATED CHANGES IN REPORT MANAGER</p><p>Out of these patches, 28371446 and 29965377 need autoconfig to be run on Application Tier and it need to be migrated to DB Tier.</p><p>Apply the patches as below:</p><blockquote>[appltest@ebn1 ~]$ adop phase=prepare,apply,finalize,cutover,cleanup mtrestart=no patches=25452805,26521736,28371446,29618853,29965377</blockquote><blockquote>Enter the APPS password:<br>Enter the SYSTEM password:<br>Enter the WLSADMIN password:</blockquote><blockquote>Validating credentials.</blockquote><blockquote>— — — — — — — — — — — — -<br> — — — — — — — — — — — — -<br> — — — — — — — — — — — — -<br>Applying patch 25452805.<br> Log: /u02/appltest/apps/fs_ne/EBSapps/log/adop/38/20190930_074628/apply/ebn1/25452805/log/u25452805.log<br>Applying patch 26521736.<br> Log: /u02/appltest/apps/fs_ne/EBSapps/log/adop/38/20190930_074628/apply/ebn1/26521736/log/u26521736.log<br>Applying patch 28371446.<br> Log: /u02/appltest/apps/fs_ne/EBSapps/log/adop/38/20190930_074628/apply/ebn1/28371446/log/u28371446.log<br>Applying patch 29618853.<br> Log: /u02/appltest/apps/fs_ne/EBSapps/log/adop/38/20190930_074628/apply/ebn1/29618853/log/u29618853.log<br>Applying patch 29965377.<br> Log: /u02/appltest/apps/fs_ne/EBSapps/log/adop/38/20190930_074628/apply/ebn1/29965377/log/u29965377.log<br> — — — — — — — — — — — — -<br> — — — — — — — — — — — — -<br> — — — — — — — — — — — — -<br>The prepare phase completed successfully.<br>The apply phase completed successfully.<br>The finalize phase completed successfully.<br>The cutover phase completed successfully.<br>The cleanup phase completed successfully.<br>adop exiting with status = 0 (Success)</blockquote><p><strong>6.2 Run Autoconfig on DB Tier:</strong></p><p>Run Autoconfig, admkappsutil.pl on the new file system where the patches have been i.e. fs2 in this case.</p><blockquote>[appltest@ebn1 apps]$ adautocfg.sh<br>[appltest@ebn1 apps]$ perl $AD_TOP/bin/admkappsutil.pl</blockquote><p>Now copy the appsutil.zip to the DB Home, extract appsutil.zip and run Autoconfig on DB Tier</p><blockquote>[oratest@ebn1 12.1.0]$ cd $ORACLE_HOME/appsutil/scripts/TEST_ebn1/<br>[oratest@ebn1 TEST_ebn1]$ ./adautocfg.sh</blockquote><blockquote>AutoConfig completed successfully.</blockquote><p>This completes applying the patches that are mandatory for EBS DB upgrade.</p><p><strong>6.3 Create the initialization parameter setup files</strong></p><p>Run the following commands to create the $ORACLE_HOME/dbs/[ORACLE_SID]_initparam.sql and $ORACLE_HOME/dbs/[ORACLE_SID]_datatop.txt files. These files will be later used after the 19c Database Upgrade to configure the PDB.</p><blockquote>[oratest@ebn1 TEST_ebn1]$ cd $ORACLE_HOME/appsutil<br>[oratest@ebn1 appsutil]$ . ./txkSetCfgCDB.env dboraclehome=/u02/oratest/db/12.1.0<br>Oracle Home being passed: /u02/oratest/db/12.1.0<br>[oratest@ebn1 appsutil]$ export ORACLE_SID=TEST<br>[oratest@ebn1 appsutil]$ cd $ORACLE_HOME/appsutil/bin<br>[oratest@ebn1 bin]$ perl txkOnPremPrePDBCreationTasks.pl -dboraclehome=/u02/oratest/db/12.1.0 -outdir=/u02/oratest/db/12.1.0//appsutil/log -appsuser=apps -dbsid=TEST -skipdbshutdown=yes<br>Enter the APPS Password:<br>Script Name : txkOnPremPrePDBCreationTasks.pl<br>Script Version : 120.0.12020000.7<br>Started : Mon Sep 30 09:20:11 EDT 2019<br>Log File : /u02/oratest/db/12.1.0//appsutil/log/TXK_PRE_PDB_Mon_Sep_30_09_20_09_2019/txkOnPremPrePDBCreationTasks.log<br> — — — — — -<br>Values used<br> — — — — — -<br>DB Oracle Home : /u02/oratest/db/12.1.0<br>OUT Directory : /u02/oratest/db/12.1.0//appsutil/log<br>Skip DB shutdown : yes<br>EBS SID : TEST<br>APPS Schema Username : apps<br>Is RAC? : No<br>Logical Hostname :</blockquote><blockquote>===========<br>Truncated Text<br>===========</blockquote><blockquote>EXIT STATUS: 0<br>PDB Descriptor XML /u02/oratest/db/12.1.0/dbs/TEST_PDBDesc.xml created successfully.<br>LOG FILE: /u02/oratest/db/12.1.0//appsutil/log/TXK_PRE_PDB_Mon_Sep_30_09_20_09_2019/create_pdb_desc_xml.out.</blockquote><blockquote>Exiting from the script.<br>Ended: Mon Sep 30 09:20:37 EDT 2019</blockquote><p><strong>6.4 Install Oracle Database 19c Binaries<br></strong>It is time now to Install the Oracle 19c Binaries. It is straight forward installation. Unlike 12c, you need to extract the binaries first in the Oracle_Home location and then run the runInstaller from the Oracle Home itself.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1003/1*cZb1gCMEBuaKGHmuto9IZg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/997/1*A3DaJD12xS-QRdfLrFhvvg.png" /></figure><p><strong>6.5 Create the 19c Environment File</strong></p><p>Once you have the 19c Oracle Home installed, create a simple environment to set the environment easily with parameter as below. Remember “testcdb” is the CDB which we are going to create now.</p><blockquote>[oratest@ebn1 ~]$ cat cdb.env<br>export ORACLE_HOME=/u02/oratest/app/oracle/19.3<br>export ORACLE_SID=testcdb<br>export PATH=$PATH:$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$ORACLE_HOME/perl/bin<br>export ORACLE_BASE=/u02/oratest/app<br>export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib<br>#export PERL5LIB=$ORACLE_HOME/perl/lib/5.28.1:$ORACLE_HOME/perl/lib/site_perl/5.28.1<br>export ORA_NLS10=/u02/oratest/app/oracle/19.3/nls/data/9idata</blockquote><p><strong>6.6 Apply the latest 19c Database Patches</strong></p><p>Now since you have the 19c Binaries, you need to apply the latest 19c Database patches using:</p><p>Document 1594274.1, Oracle E-Business Suite Release 12.2: Consolidated List of Patches and Technology Bug Fixes</p><p>I haven’t applied this, but you need to apply this is going to be done for your organization.</p><p><strong>6.7 Run cr9idata.pl</strong></p><p>This has been a step which every DBA will remember during an upgrade since 10g. It remains the same even with a 19c Upgrade.</p><blockquote>perl $ORACLE_HOME/nls/data/old/cr9idata.pl</blockquote><blockquote>Ensure you set the ORA_NLS10</blockquote><blockquote>export ORA_NLS10=/u02/oratest/app/oracle/19.3/nls/data/9idata</blockquote><p><strong>6.8 Copy appsutil.zip from Application Tier to Database and Install JRE</strong></p><p>We need to now copy the appsutil.zip from Application Tier to Database Tier</p><blockquote>[appltest@ebn1 bin]$ cd $AD_TOP/bin<br>[appltest@ebn1 bin]$ perl admkappsutil.pl<br>Starting the generation of appsutil.zip<br>Log file located at /u02/appltest/apps/fs1/inst/apps/TEST_ebn1/admin/log/MakeAppsUtil_10231131.log<br>output located at /u02/appltest/apps/fs1/inst/apps/TEST_ebn1/admin/out/appsutil.zip</blockquote><blockquote>Copy the appsutil.zip to DB ORACLE_HOME. Don’t run Autoconfig now.</blockquote><blockquote>cd $ORACLE_HOME<br>unzip appsutil.zip<br>$ cd $ORACLE_HOME/appsutil<br>$ cp -r $ORACLE_HOME/jdk/jre .</blockquote><p><strong>6.9 Create CDB</strong></p><p>Now that we have setup everything needed in the 19c Oracle Home, let us create the CDB. Follow the screenshots:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1001/1*bo7HIe97cu24dU4OL8WndQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/998/1*0fuP8fk2Ik4ots8qmhlfKQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*aOdgpatL1wFTZGjS9xsNGA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/997/1*LxqCOONLPgutJ_q3zehAxQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1002/1*Cn37zI_HNytzl7OvaOgLOg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/997/1*YnsiAkFsITCLVI-chpAuUw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1001/1*NP8U-ij6FvsWisP3_GVJdw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/926/1*dYW6kV7eZ_tUtiyZRHlCpQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/999/1*hrujWAFGnbDvrYtnAUY70g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/999/1*wcV6Hn3VJAoB2zpEahwAFA.png" /><figcaption>Note: Provide the correct Database Name, Character Set</figcaption></figure><p><strong>6.10 Run datapatch</strong></p><p>In case you have applied the 19c Database Patches, run the datapatch now to apply the changes.</p><blockquote>$ export ORACLE_SID=testcdb<br>$ $ORACLE_HOME/OPatch/datapatch</blockquote><p>In case you have applied the 19c Database Patches, run the datapatch now to apply the changes.</p><p><strong>6.11 Create MGDSYS Schema</strong></p><blockquote>[oratest@ebn1 19.3]$ sqlplus “/ as sysdba” @?/rdbms/admin/catmgd.sql</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/859/1*54_Ykkoxkok5QnBB_hHiLg.png" /></figure><p><strong>6.12 Create CDB TNS Files</strong></p><p>Oracle EBS Network Configuration has always been different to the standard database network configuration as you know that the TNS_ADMIN in database of EBS points to $ORACLE_HOME/network/admin/&lt;CONTEXT_NAME&gt;. So we need to create the TNS files for EBS specifically using txkGenCDBTnsAdmin.pl.</p><blockquote>cd $ORACLE_HOME/appsutil<br>. ./txkSetCfgCDB.env dboraclehome=/u02/oratest/app/oracle/19.3<br>cd $ORACLE_HOME/appsutil/bin<br>perl txkGenCDBTnsAdmin.pl -dboraclehome=/u02/oratest/app/oracle/19.3 -cdbname=testcdb \<br>-cdbsid=testcdb -dbport=1521 -outdir=/u02/oratest/app/oracle/19.3/appsutil/log</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NV3EedBF3cG2d1mcDiknow.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q8dM1Tlq0DS5PNf3yVMfJA.png" /></figure><p><strong>6.13 Shutdown CDB</strong></p><p>You need to shutdown the CDB now. We will Open the CDB only after the upgrade and when we are going to migrate the Non-CDB to PDB.</p><p><strong>6.14 Configure UTL_FILE_DIR</strong></p><p>Oracle EBS stores the PLSQL IO files in Database Node /usr/tmp usually in all versions of EBS starting from 11i till R12.2. For this, EBS uses UTL_FILE_DIR initialization parameter. However, from 18c, UTL_FILE_DIR initialization parameter has been desupported. Hence for 19c, Oracle for EBS have introduced new apps.v$parameter and apps.v$parameter2 views in the APPS schema that provide a supplemental UTL_FILE_DIR parameter. You need to follow the instructions given in Section 3.1.1 of : <br>Using UTL_FILE_DIR or Database Directories for PL/SQL File I/O in Oracle E-Business Suite Releases 12.1 and 12.2 (Doc ID 2525754.1)<br>To Store the UTL_FILE_DIR parameter values:</p><p>Connect to 12c Database:</p><blockquote>[oratest@ebn1 12.1.0]$ perl $ORACLE_HOME/appsutil/bin/txkCfgUtlfileDir.pl -contextfile=/u02/oratest/db/12.1.0/appsutil/TEST_ebn1.xml -oraclehome=/u02/oratest/db/12.1.0 -outdir=/tmp/txkCfgUtlfileDir -upgradedhome=/u02/oratest/app/oracle/19.3 -mode=getUtlFileDir<br>Enter the APPS Password:</blockquote><blockquote>Script Name : txkCfgUtlfileDir.pl<br>Script Version : 120.0.12020000.7<br>Started : Sun Oct 20 04:51:22 EDT 2019<br>Log File : /tmp/txkCfgUtlfileDir/TXK_UTIL_DIR_Sun_Oct_20_04_51_20_2019/txkCfgUtlfileDir.log<br>Context file: /u02/oratest/db/12.1.0/appsutil/TEST_ebn1.xml exists.<br>==============================================================================<br>Successfully generated the below file with UTL_FILE_DIR content:<br>/u02/oratest/db/12.1.0/dbs/TEST_utlfiledir.txt<br>==============================================================================<br>Completed : Sun Oct 20 04:51:25 EDT 2019<br>Successfully Completed the script<br>ERRORCODE = 0 ERRORCODE_END</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jf5HlN1cQ-IrsiekTzhSiA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pwXrrd0pP3BX6ySk2RqJTg.png" /></figure><p><strong>6.15 Shutdown Application and Database Listener</strong></p><p>Before proceeding to the Database Upgrade, Shutdown the Application Services now. Then the Database Listener of 12c Database.</p><p><strong>6.16 Database Pre-Upgrade Steps</strong></p><p>Its time for the database upgrade now. If you are familiar with 18c or 19c Database Upgrade it’s the same process. DBUA is what I am going to use for the Database Upgrade. First run the Pre-Upgrade Tool for any recommendations.</p><p>Run the Pre-upgrade Tool:</p><p>Connect to the 12c Database and run the command as below:</p><blockquote>$ORACLE_HOME/jdk/bin/java -jar /u02/oratest/app/oracle/19.3/rdbms/admin/preupgrade.jar TERMINAL TEXT</blockquote><p>Execute the /u02/oratest/db/12.1.0/cfgtoollogs/TEST/preupgrade/preupgrade_fixups.sql which is generated. Follow any other manual steps provided such changing Initialization Parameters or Increasing SGA etc.<br>Most of them are warning which can be ignored. However, be careful of any show stoppers and ensure you fix them before running the DBUA.<br>Needless to say, Ensure you take the Database Backup before you start the DBUA.</p><p>Now lets run the DBUA !!!!</p><p><strong>6.17 Database Upgrade using DBUA and Post-Upgrade Script</strong></p><p>Upgrade the database now using DBUA. It’s a very simple and straight forward method using DBUA so follow the screens as below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*Wk7VWICCN8_QgrFTsM00Vw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*jM_NUE4GgSD4sYuN_wf5zg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/994/1*w4Jl82zJcOoL7dNoTX_n4A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/999/1*GyeuF9OscVjKiwFoVCb-OA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/997/1*1R0V7iTtE0bvLLMvrMIE0Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/991/1*HCXMqgVQHrvLVUgS5S9TDw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/998/1*GhUnnFok-aHDQpwpdVdPag.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/993/1*T8WjIZh2CQlSgN68FGoW6A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/998/1*UfRegOLnWvXZDWzHOtyEbw.png" /></figure><p>Run the Post Upgrade Script generated during the Pre-Upgrade Steps.</p><p>SQL&gt; <a href="http://twitter.com/postupgrade_fixups">@postupgrade_fixups</a>.sql</p><p>Session altered.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/682/1*D1CAlTxvLf8Rgv_H-w7YPg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gcluP06EyRhTky2ZzJu2oA.png" /></figure><p><strong>6.18 Post-Upgrade Tasks</strong></p><p>There are few important post upgrade miscellaneous tasks that need to be performed.</p><blockquote>SQL&gt; alter trigger SYSTEM.EBS_LOGON compile;<br>Trigger altered.<br>SQL&gt; alter system set compatible=’19.0.0&#39; scope=spfile;<br>System altered.</blockquote><blockquote>SQL&gt;@?/rdbms/admin/dbmsxdbschmig.sql<br>SQL&gt;@?/rdbms/admin/prvtxdbschmig.plb</blockquote><p>Gather Statistics:<br>Copy adgrants.sql from $APPL_TOP/admin to DB tier and run it</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1011/1*tuqiz9fdkm8YE-eSp58aWw.png" /></figure><blockquote>SQL&gt; <a href="http://twitter.com/adctxprv">@adctxprv</a>.sql Welcome1 CTXSYS<br>Connecting to SYSTEM<br>Connected.<br>PL/SQL procedure successfully completed.<br>Commit complete.<br>SQL&gt; grant text datastore access to public;<br>Grant succeeded.</blockquote><blockquote>Compile invalids:<br> <br>sqlplus “/ as sysdba” @$ORACLE_HOME/rdbms/admin/utlrp.sql<br>or <br>sqlplus “/ as sysdba” @$ORACLE_HOME/rdbms/admin/utlprp.sql 8</blockquote><p>There were around 130k+ objects on Vision Instance I used for this Upgrade. Might be around the same for every customer. The most thing is to ensure you compile all the invalids before you proceed to the next step. You can below for utilizing parallel execution using the CPU threads. I have shown “8” as an example below and you can change it based on the number CPUs you have. Check CPU_COUNT Initialization Parameter.</p><blockquote>SQL&gt; select count(*) from dba_objects where status=’INVALID’;<br>138588<br>SQL&gt; select count(*) from dba_objects where status=’INVALID’;<br>45<br>SQL&gt; grant text datastore access to public;<br>Grant succeeded.</blockquote><p>Gather statistics for the SYS schema <br>Copy the adstats.sql from $APPL_TOP/admin/adstats.sql to Database Tier and run as below:</p><blockquote>$ sqlplus “/ as sysdba”<br>SQL&gt;alter system enable restricted session;<br>SQL&gt;<a href="http://twitter.com/adstats">@adstats</a>.sql <br>$ sqlplus “/ as sysdba”<br>SQL&gt;alter system disable restricted session;<br>SQL&gt;exit;</blockquote><h3>7. Convert Database to PDB:</h3><p>Now that we have successfully upgraded our EBS Database from 12.1.0.2 to 19.3, we need to convert our current Non-CDB Database to PDB.<br><strong>7.1 Create PDB Descriptor<br></strong>We need to create the necessary PDB XML descriptor files needed using “txkOnPremPrePDBCreationTasks.pl”. This will also shutdown the database i.e. 19c Non-CDB Database which we have upgraded. You should not open the database again till the entire PDB migration process is complete.</p><blockquote>[oratest@ebn1 dbs]$ cd $ORACLE_HOME/appsutil<br>[oratest@ebn1 appsutil]$ pwd<br>/u02/oratest/app/oracle/19.3/appsutil<br>[oratest@ebn1 appsutil]$ . ./txkSetCfgCDB.env dboraclehome=/u02/oratest/app/oracle/19.3<br>Oracle Home being passed: /u02/oratest/app/oracle/19.3<br>[oratest@ebn1 appsutil]$ export ORACLE_SID=TEST<br>[oratest@ebn1 appsutil]$ cd $ORACLE_HOME/appsutil/bin<br>[oratest@ebn1 bin]$ perl txkOnPremPrePDBCreationTasks.pl -dboraclehome=$ORACLE_HOME \<br>&gt; -outdir=$ORACLE_HOME/appsutil/log -appsuser=apps -dbsid=TEST</blockquote><p><strong>7.2 Update CDB Initialization Parameters</strong></p><p>In Section 6.2 we have generated initparam files needed for the CDB and we are going to use them now.</p><blockquote>[oratest@ebn1 bin]$ cd $ORACLE_HOME/appsutil<br>[oratest@ebn1 appsutil]$ . ./txkSetCfgCDB.env dboraclehome=/u02/oratest/app/oracle/19.3<br>Oracle Home being passed: /u02/oratest/app/oracle/19.3<br>[oratest@ebn1 appsutil]$ export ORACLE_SID=testcdb<br>[oratest@ebn1 appsutil]$ sqlplus ‘/as sysdba’<br>SQL&gt; @$ORACLE_HOME/dbs/TEST_initparam.sql<br>SQL&gt; alter system set LOCAL_LISTENER=”ebn1:1521&quot; scope=both;<br>System altered.</blockquote><p><strong>7.3 Check for PDB Violations</strong></p><p>Before we migrate to PDB, we need to check for any violations that will impact the Non-CDB to PDB conversion.</p><blockquote>[oratest@ebn1 appsutil]$ cd $ORACLE_HOME/appsutil<br>[oratest@ebn1 appsutil]$ . ./txkSetCfgCDB.env dboraclehome=/u02/oratest/app/oracle/19.3<br>Oracle Home being passed: /u02/oratest/app/oracle/19.3<br>[oratest@ebn1 appsutil]$ export ORACLE_SID=testcdb<br>[oratest@ebn1 appsutil]$ cd $ORACLE_HOME/appsutil/bin<br>[oratest@ebn1 bin]$ perl txkChkPDBCompatability.pl -dboraclehome=$ORACLE_HOME -outdir=$ORACLE_HOME/appsutil/log -cdbsid=testcdb -pdbsid=TEST -servicetype=onpremise</blockquote><p>I have seen only violation and that can be ignored.</p><p>PDB$SEED SQL Patch ERROR RESOLVED<br>‘19.3.0.0.0 Release_Update 1904101227’ is installed in the CDB but no release updates are installed in the PDB</p><p><strong>7.4 Create PDB</strong></p><p>Finally, we have reached the important step of converting the Non-CDB database to PDB.<br>Before running the PDB creation script “txkCreatePDB.pl” ensure that you have<br>• Compiled all Invalid Objects<br>• There is enough Disk Space<br>• Check SGA sizing</p><blockquote>[oratest@ebn1 bin]$ cd $ORACLE_HOME/appsutil<br>[oratest@ebn1 appsutil]$ . ./txkSetCfgCDB.env dboraclehome=/u02/oratest/app/oracle/19.3<br>Oracle Home being passed: /u02/oratest/app/oracle/19.3<br>[oratest@ebn1 appsutil]$ cd $ORACLE_HOME/appsutil/bin<br>[oratest@ebn1 bin]$ perl txkCreatePDB.pl -dboraclehome=/u02/oratest/app/oracle/19.3 \<br>&gt; -outdir=/u02/oratest/app/oracle/19.3/appsutil/log -cdbsid=testcdb -pdbsid=TEST \<br>&gt; -dbuniquename=testcdb -servicetype=onpremise</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rErHzXvELg9kODl_hFZ--w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RjPxp3hXbAnGQbD3tXBARA.png" /></figure><p>I have used the same location of Data Files as current to be used for PDB and alternatively you can a different location as well. Ensure you have enough space needed in case you want to have a different location.</p><p><strong>7.5 Post PDB Creation Script</strong></p><p>Now that PDB conversion is complete, you can verify that the PDB has been successfully created.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/869/1*xFw1LKFAAOHYUlvyL7LKiQ.png" /></figure><p>We now have to run a very important script to configure the EBS Database for PDB. This also runs the Autoconfig automatically.</p><blockquote>[oratest@ebn1 bin]$ cd $ORACLE_HOME/appsutil<br>[oratest@ebn1 appsutil]$ . ./txkSetCfgCDB.env dboraclehome=/u02/oratest/app/oracle/19.3<br>Oracle Home being passed: /u02/oratest/app/oracle/19.3<br> [oratest@ebn1 appsutil]$ perl $ORACLE_HOME/appsutil/bin/txkPostPDBCreationTasks.pl \<br>&gt; -dboraclehome=/u02/oratest/app/oracle/19.3 -outdir=/u02/oratest/app/oracle/19.3/appsutil/log \ &gt; -cdbsid=testcdb -pdbsid=TEST -appsuser=apps -dbport=1521 -servicetype=onpremise</blockquote><p><strong>7.6 Change Initialization Parameters</strong></p><p>Follow Document 396009.1: Database Initialization Parameter Settings for Oracle E-Business Suite Release 12 to change the necessary parameters. I have changed below:</p><blockquote>SQL&gt; alter system set event=’10946 trace name context forever, level 8454144&#39; scope=spfile;<br>System altered.<br>SQL&gt; alter system set sec_case_sensitive_logon=FALSE scope=spfile;<br>System altered.</blockquote><p>This marks the completion of all the steps in Database Tier.</p><p><strong>7.7 Pre-Autoconfig Steps in Application Tier<br></strong>Running Autoconfig on the Application Tier is the final step we need to perform in the Upgrade proceed but before that we need to make couple of minor changes in Application Tier.<br>Add the CDB entry in tnsnames.ora of Application as below:<br>Add a entry as below in the Application tnsnames.ora to ensure it connects to the CDB and the Service Name “TEST” which is nothing but our EBS PDB.</p><blockquote>testcdb=<br> (DESCRIPTION=<br> (ADDRESS=(PROTOCOL=tcp)(HOST=ebn1.vishnu.ae)(PORT=1521))<br> (CONNECT_DATA=<br> (SERVICE_NAME= TEST)<br> (INSTANCE_NAME=testcdb)<br> )<br> )</blockquote><p>Add new value for APPLPTMP in Context File instead of /usr/tmp<br>As you know we cannot use /usr/tmp any more from 18c, we need to use of the locations present in database “utl_file_dir” to update in the Context File.</p><blockquote>[oratest@ebn1 TEST_ebn1]$ sqlplus apps/apps@TEST<br>SQL&gt; select value from v$parameter where name=’utl_file_dir’;<br>/u02/oratest/app/oracle/temp/TEST,/u02/oratest/app/oracle/temp/TEST,/u02/oratest<br>/app/oracle/19.3/appsutil/outbound/TEST_ebn1,/u02/oratest/app/oracle/temp/TEST</blockquote><p>So I updated as below:</p><blockquote>[appltest@ebn1 appsutil]$ grep APPLPTMP $CONTEXT_FILE<br> &lt;APPLPTMP oa_var=”s_applptmp” osd=”UNIX”&gt;/u02/oratest/app/oracle/temp/TEST&lt;/APPLPTMP&gt;<br>[appltest@ebn1 appsutil]$</blockquote><p><strong>7.8 Run Autoconfig on Application tier</strong></p><p>The final step of the upgrade is to run the Autoconfig on the Application Tier.</p><p>[appltest@ebn1 admin]$ $INST_TOP/admin/scripts/adautocfg.sh</p><p><strong>7.9 Start Application Services and Check the Database Version</strong></p><p>Now you are ready to start the Application Services.</p><p>[appltest@ebn1 admin]$ adstrtal.sh apps/apps</p><p>You are running adstrtal.sh version 120.24.12020000.11<br>****************************************************<br>All enabled services for this node are started.<br>adstrtal.sh: Exiting with status 0</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t1NRnrQe2zMz3-z9u6zZBQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3b6198c8d5bd" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>