<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>BlueGecko Denmark</title>
	<atom:link href="https://bluegecko.dk/feed/" rel="self" type="application/rss+xml" />
	<link>https://bluegecko.dk</link>
	<description>Your remote dba</description>
	<lastBuildDate>Thu, 21 Apr 2022 11:03:24 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.5.2</generator>
	<item>
		<title>Apex 21 runing on Oracle XE 21c with Tomcat</title>
		<link>https://bluegecko.dk/apex-21-runing-on-oracle-xe-21c-with-tomcat/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=apex-21-runing-on-oracle-xe-21c-with-tomcat</link>
					<comments>https://bluegecko.dk/apex-21-runing-on-oracle-xe-21c-with-tomcat/#respond</comments>
		
		<dc:creator><![CDATA[Theis Riiber]]></dc:creator>
		<pubDate>Fri, 08 Oct 2021 09:30:38 +0000</pubDate>
				<category><![CDATA[News]]></category>
		<category><![CDATA[News & Events]]></category>
		<category><![CDATA[Oracle APEX]]></category>
		<category><![CDATA[Oracle Database]]></category>
		<category><![CDATA[Oracle Linux]]></category>
		<category><![CDATA[Tomcat]]></category>
		<guid isPermaLink="false">https://bluegecko.dk/?p=3873</guid>

					<description><![CDATA[Installing Oracle Linux 8.4 With Apex 21/ Tomcat 9 running in pluggable Oracle XE 21c database(pdb) //Software download URL&#8217;s at the end of this document. //Custom Template for server config and password attached to this document. Network &#160; &#160;Hostname &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; ???????????? [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p><strong>Installing Oracle Linux 8.4 With Apex 21/ Tomcat 9 running in pluggable Oracle XE 21c database(pdb)</strong></p>



<h3 class="has-medium-font-size wp-block-heading" id="software-download-url-s-at-the-end-of-this-document"><strong><em>//Software download URL&#8217;s at the end of this document.</em></strong></h3>



<p>//Custom Template for server config and password attached to this document.</p>



<p><strong><u>Network</u></strong></p>



<p>&nbsp; &nbsp;Hostname &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  ???????????? </p>



<p>&nbsp;<br>&nbsp; &nbsp;Server ip &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ???????????? </p>



<p>&nbsp; &nbsp;Network mask &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  ???????????? </p>



<p>&nbsp; &nbsp;Gateway &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ???????????? </p>



<p>&nbsp; &nbsp;DNS &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ????????????</p>



<p><em><strong><u>Passwords</u></strong></em></p>



<p><strong>General password policies:</strong></p>



<figure class="wp-block-table is-style-stripes"><table><tbody><tr><td>General&nbsp;Administrative password</td><td>[Admin Password]</td><td>????</td></tr><tr><td>PUBLIC accounts password</td><td>[PUBLIC Password]</td><td>????</td></tr><tr><td>Service Password</td><td>[SERVICE Password]</td><td>????</td></tr></tbody></table></figure>



<p><strong>Specific username and passwords:</strong></p>



<figure class="wp-block-table"><table><tbody><tr><td>Root password</td><td>[root Password]</td><td>????????</td></tr></tbody></table></figure>



<figure class="wp-block-table"><table><tbody><tr><td>Tomcat Admin password<br>user: admin</td><td>[Tomcat Password]</td><td>?????</td></tr></tbody></table></figure>



<figure class="wp-block-table"><table><tbody><tr><td>Apex Instance Manager<br>Workspace: internal<br>User: admin</td><td>[Apex Instance Password]</td><td>?????</td></tr></tbody></table></figure>



<figure class="wp-block-table"><table><tbody><tr><td>SYS password</td><td>[SYSDBA password]</td><td>?????</td></tr></tbody></table></figure>



<p><strong>Schema passwords:</strong></p>



<figure class="wp-block-table is-style-stripes"><table><tbody><tr><td>APEX_LISTENER</td><td>[SERVICE password]</td></tr><tr><td>APEX_REST_PUBLIC_USER</td><td>[PUBLIC Password]</td></tr><tr><td>ORDS_PUBLIC_USER</td><td>[PUBLIC Password]</td></tr><tr><td>APEX_PUBLIC_USER</td><td>[PUBLIC Password]</td></tr></tbody></table></figure>



<h2 class="wp-block-heading" id="roadmap"><strong>Roadmap</strong></h2>



<hr class="wp-block-separator"/>



<ol><li>Create Virtual Machine</li><li>Install Oracle Linux 8.4<br>CockPit (optional)</li><li>Install Apache Tomcat 9.0.53</li><li>Install Oracle Database 21C XE<br>Oracle Enterprise Manager Express setup (optional)</li><li>Install Oracle Apex 21.1.0.0</li><li>Install Oracle REST Data Services (ORDS)</li><li>Oracle APEX patch 5.</li></ol>



<hr class="wp-block-separator"/>



<h2 class="wp-block-heading" id="create-virtual-machine"><strong>Create Virtual Machine</strong></h2>



<hr class="wp-block-separator"/>



<p><strong>VirtualBox&nbsp;Installation</strong></p>



<p>Memory: &nbsp; &nbsp; 4Gb</p>



<p>DIsk; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;50GB (min. 20GB)<br><br>Settings:<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Network -&gt; Adapter 1 = “Bridged Adapter”</p>



<hr class="wp-block-separator"/>



<h2 class="wp-block-heading" id="oracle-linux-8-4-installation"><strong>Oracle Linux 8.4 installation</strong></h2>



<hr class="wp-block-separator"/>



<p><strong>PRE</strong></p>



<p>Load install media in cdrom drive and start serverVirtualBox:Settings -&gt; Storage:Controller IDE, highlight CD(empty) and add installation media under Optical Device<br><br><strong>INSTALL Software</strong></p>



<p>Installation starts automatically if the install media was mounted correctly.</p>



<ol><li>Choose&nbsp;<strong>English (Denmark)</strong>&nbsp;as language for the installation and&nbsp;<strong>click Continue</strong></li><li>Next window show all settings that need to be completed before starting the installation.<br>Start in this order:<ol><li>“Network and Host”<ol><li>Enable Ehternet, set hostname and configure IPv4 with a static IP</li></ol></li><li>“Time &amp; Date”<ol><li>Set Europe, Copenhagen as timezone.&nbsp;</li></ol></li><li>&nbsp;“Software Selection”&nbsp;<ol><li>Choose Server &amp; Development Tools</li></ol></li><li>“Installation Destination”<ol><li>Just confirm it by clicking Done.</li></ol></li><li>Root Password<ol><li>Set Root password&nbsp;&nbsp;to [root password]&nbsp;&nbsp;</li></ol></li></ol></li><li>Begin Installation<ol><li>This takes a while.</li></ol></li><li>Reboot Server&nbsp;</li></ol>



<p><strong>INSTALL updates and tools</strong>//Get latest updates.</p>



<p><em>as root</em></p>



<pre class="wp-block-code"><code>dnf update -y</code></pre>



<p>//disable firewall completely&nbsp;</p>



<pre class="wp-block-code"><code>systemctl stop firewalld
systemctl disable firewalld</code></pre>



<p></p>



<p>//Add your servers ip to the hosts file</p>



<pre class="wp-block-code"><code>vi /etc/hosts</code></pre>



<p>Generic</p>



<pre class="wp-block-code"><code>192.168.1.191 apex apex.bluegecko.local</code></pre>



<p>//add server &nbsp;to clients host file. (conditional)&nbsp;<br>Note: If your server name does not resolve on your client you can add it to you local host file, so it at least resolves from your specific client.<br>In windows you need to start notepad as administrator in order to edit the file.<br>You can do that by locating the notepad icon in the windows start menu, right click it <br>and choose &#8220;run as administrator&#8221; from the file menu you can then easily open and edit</p>



<pre class="wp-block-code"><code>C:\Windows\System32\drivers\etc\hosts</code></pre>



<p>//entry to add</p>



<pre class="wp-block-code"><code>192.168.1.191 apex apex.bluegecko.local</code></pre>



<p>//Setup Cockpit (<em>Optional</em>)</p>



<pre class="wp-block-code"><code>systemctl enable --now cockpit.socket</code></pre>



<p>//Update system from Cockpit Interface. <br>Expecting no updates to be found, but done to&nbsp;make initial updates to internal catalogs.<br><a href="https://apex.bluegecko.local:9090/"></a>Username: root/[root password]<a rel="noreferrer noopener" href="https://apex.bluegecko.local:9090/" target="_blank"></a></p>



<pre class="wp-block-code"><code>https:&#47;&#47;apex.lyretech.local:9090/</code></pre>



<p>Navigate to Software updates and wait until interface states</p>



<p>&#8220;System is up to date&#8221;<br></p>



<p><strong>STAGE software(optional)</strong></p>



<p>See the &#8220;Software&#8221; section for a list of software needed and their download instructions.Either mount /software to your external software archive or place the software in a local directory.Note:</p>



<p>Using VirtualBox&#8217;s &#8220;Shared folder&#8221; function to map local download folder with /software works perfectly, but requires installation of VirtualBox Guest Extensions on the server.&nbsp;</p>



<pre class="wp-block-code"><code>mkdir /software
chmod 775 /software</code></pre>



<p>//Stage the software in /software using ftp, wget etc.</p>



<pre class="wp-block-code"><code>ls -Shog</code></pre>



<p></p>



<pre class="wp-block-code"><code>total 2,6G
-rw-r--r--. 1 2,2G Sep 30 09:16 oracle-database-xe-21c-1.0-1.ol8.x86_64.rpm
-rw-r--r--. 1 220M Oct  1 05:59 apex_21.1.zip
-rw-r--r--. 1  99M Oct  2 10:55 OpenJDK8U-jdk_x64_linux_hotspot_8u302b08.tar.gz
-rw-r--r--. 1  70M Oct  3 03:57 ords-21.2.4.243.1032.zip
-rw-r--r--. 1  12M Oct  2 07:44 apache-tomcat-9.0.53.tar.gz
-rw-r--r--. 1 3,0M Oct  3 08:03 p32598392_2110_Generic.zip
-rw-r--r--. 1  31K Oct  3 04:24 oracle-database-preinstall-21c-1.0-1.el8.x86_64.rpm</code></pre>



<p>Null<strong>POST</strong>This is a good time for a backup of the virtual machine.<br>OS is installed, updates applied, network confirmed and software staged on the server.</p>



<hr class="wp-block-separator"/>



<h2 class="wp-block-heading" id="tomcat-9-0-53-installation"><strong>TOMCAT 9.0.53 Installation</strong></h2>



<hr class="wp-block-separator"/>



<p>//Assuming software has been downloaded and placed in public readable directory /software<br><em>as root create tomcat owner.</em></p>



<pre class="wp-block-code"><code>useradd tomcat
mkdir -p /opt/tomcat
chown tomcat:tomcat /opt/tomcat</code></pre>



<p>//Install Java specifically for Tomcat</p>



<pre class="wp-block-code"><code>su - tomcat
mkdir -p /opt/tomcat/java
cd /opt/tomcat/java
tar xvf /software/OpenJDK8U-jdk_x64_linux_hotspot_8u302b08.tar.gz
ln -s jdk8u302-b08 latest</code></pre>



<p>//Install Tomcat</p>



<pre class="wp-block-code"><code>cd /opt/tomcat
tar xvf /software/apache-tomcat-9.0.53.tar.gz
ln -s apache-tomcat-9.0.53 latest</code></pre>



<p>//Update Environment<br>// Add environment settings to login profile</p>



<pre class="wp-block-code"><code>vi /home/tomcat/.bash_profile

#Tomcat Environment
export JAVA_HOME=/opt/tomcat/java/latest
export CATALINA_HOME=/opt/tomcat/latest</code></pre>



<p>//Log out and in again and start/stop Tomcat &nbsp;<br>set environment and create default tomcat configuration.</p>



<pre class="wp-block-code"><code>exit
su - tomcat</code></pre>



<p>Generic</p>



<pre class="wp-block-code"><code>$CATALINA_HOME/bin/startup.sh
$CATALINA_HOME/bin/shutdown.sh</code></pre>



<p>//Enable remote access to html interfaces and define admin user<br><em><u>INSIDE</u></em><strong><em>&nbsp;</em></strong><em>the &#8220;tomcat-users&#8221; tag &nbsp;add the user definition:&nbsp;</em><br><em>Obs! Alter the password&nbsp;</em> [Tomcat Password] </p>



<pre class="wp-block-code"><code>vi $CATALINA_HOME/conf/tomcat-users.xml

&lt;user username="admin" password="&#91;Tomcat Password]" roles="manager-gui, admin-gui"/&gt;</code></pre>



<p>//Create &nbsp;manager.xml with following tag</p>



<pre class="wp-block-code"><code>vi $CATALINA_HOME/conf/Catalina/localhost/manager.xml</code></pre>



<p></p>



<pre class="wp-block-code"><code>&lt;Context privileged="true" antiResourceLocking="false" 
         docBase="${catalina.home}/webapps/manager"&gt;
    &lt;Valve className="org.apache.catalina.valves.RemoteAddrValve" allow="^.*$" /&gt;
&lt;/Context&gt;</code></pre>



<p>Null//Create &nbsp;host-manager.xml with following tag&nbsp;</p>



<pre class="wp-block-code"><code>vi $CATALINA_HOME/conf/Catalina/localhost/host-manager.xml</code></pre>



<p></p>



<pre class="wp-block-code"><code>&lt;Context privileged="true" antiResourceLocking="false" 
         docBase="${catalina.home}/webapps/host-manager"&gt;
    &lt;Valve className="org.apache.catalina.valves.RemoteAddrValve" allow="^.*$" /&gt;
&lt;/Context&gt;</code></pre>



<p><br>//Start Apache Tomcat</p>



<pre class="wp-block-code"><code>$CATALINA_HOME/bin/startup.sh</code></pre>



<p>//Output;</p>



<pre class="wp-block-code"><code>Using CATALINA_BASE:   /opt/tomcat/latest
Using CATALINA_HOME:   /opt/tomcat/latest
Using CATALINA_TMPDIR: /opt/tomcat/latest/temp
Using JRE_HOME:        /opt/tomcat/java/latest
Using CLASSPATH:       /opt/tomcat/latest/bin/bootstrap.jar:/opt/tomcat/latest/bin/tomcat-juli.jar
Using CATALINA_OPTS:
Tomcat started.</code></pre>



<p>//Check access to Tomcat Landing page<br><a rel="noreferrer noopener" href="http://apex:8080/" target="_blank">http://apex.bluegecko.local:8080/</a><br><a href="http://apex.bluegecko.local:8080/manager/status"></a><img decoding="async" src="https://eucattachment.freshdesk.com/inline/attachment?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6ODAwNDE5MDI3MTUsImRvbWFpbiI6ImluZGl2aWR1YWxpc3Rlcm5lLmZyZXNoZGVzay5jb20iLCJhY2NvdW50X2lkIjoyMDQ3NzExfQ.GA9BPimXjO6MqkNff8zF9cbqpsSzbQ4unTE3hXpMGys"></p>



<p><a href="http://apex.bluegecko.local:8080/manager/status"></a>Tomcat Web Application Manager<br><a href="http://apex.bluegecko.local:8080/manager/status"></a><a rel="noreferrer noopener" href="http://apex:8080/manager/status" target="_blank">http://apex.bluegecko.local:8080/manager/html</a><br>username: admin password: [Admin Password]<a href="http://apex.bluegecko.local:8080/manager/status"><br><br></a>Tomcat Server Status<br><a rel="noreferrer noopener" href="http://apex:8080/manager/status" target="_blank">http://apex.bluegecko.local:8080/manager/status</a><br>username: admin password:&nbsp;[Admin Password]&nbsp;<br></p>



<p><strong>Notes</strong><a href="http://192.168.1.191:8080/"></a><a rel="noreferrer noopener" href="https://apex.lyretech.local:8080/" target="_blank"></a></p>



<pre class="wp-block-code"><code>su - tomcat
$CATALINA_HOME/bin/startup.sh
$CATALINA_HOME/bin/shutdown.sh</code></pre>



<p></p>



<hr class="wp-block-separator"/>



<h2 class="wp-block-heading" id="oracle-xe-21c-installation"><strong>Oracle XE 21C Installation</strong></h2>



<hr class="wp-block-separator"/>



<p><strong><em>INSTALL</em></strong><em>//Assuming database software is available in /software</em><br><em>Note:&nbsp;</em><em>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;Oracle Database Preinstall Check&nbsp; is automatically downloaded and execute when running the database install on a Oracle Linux platform, but in the time of writting a bug requires you to run it manually to&nbsp;created home directory correctly.&nbsp;</em><br>//Verify, install and setup user/group requirements before installing database software &nbsp;by running &nbsp;&#8220;Oracle Database Preinstall Check&#8221;<em>as root</em></p>



<pre class="wp-block-code"><code>dnf -y localinstall  /software/oracle-database-preinstall-21c-1.0-1.el8.x86_64.rpm</code></pre>



<p>Null</p>



<p>OUTPUT</p>



<pre class="wp-block-code"><code>Installed:
  compat-openssl10-1:1.0.2o-3.el8.x86_64
  gssproxy-0.8.0-19.el8.x86_64
  keyutils-1.5.10-6.el8.x86_64
  ksh-20120801-254.0.1.el8.x86_64
  libX11-xcb-1.6.8-4.el8.x86_64
  libXtst-1.2.3-7.el8.x86_64
  libXv-1.0.11-7.el8.x86_64
  libXxf86dga-1.1.5-1.el8.x86_64
  libdmx-1.1.4-3.el8.x86_64
  libnsl-2.28-151.0.1.el8.x86_64
  libverto-libevent-0.3.0-5.el8.x86_64
  lm_sensors-libs-3.4.0-22.20180522git70f7e08.el8.x86_64
  nfs-utils-1:2.3.3-41.el8_4.2.x86_64
  oracle-database-preinstall-21c-1.0-1.el8.x86_64
  rpcbind-1.2.5-8.el8.x86_64
  sysstat-11.7.3-5.0.1.el8.x86_64
  xorg-x11-utils-7.5-28.el8.x86_64
  xorg-x11-xauth-1:1.0.9-12.el8.x86_64

Complete!</code></pre>



<p>Generic</p>



<p>//Install Oracle Software in /opt/oracle</p>



<pre class="wp-block-code"><code>dnf -y localinstall /software/oracle-database-xe-21c-1.0-1.ol8.x86_64.rpm</code></pre>



<p>Null</p>



<p>OUTPUT</p>



<pre class="wp-block-code"><code>Installed:
  oracle-database-xe-21c-1.0-1.x86_64</code></pre>



<p>Null//Create and configure database<br>Note: When prompted set SYS, SYSTEM and PDBADMIN password for [Admin Password]</p>



<pre class="wp-block-code"><code>/etc/init.d/oracle-xe-21c configure</code></pre>



<p>NullNow go outside and play.. &nbsp;this take a while..<br>OUTPUT:</p>



<pre class="wp-block-code"><code>100% Completed.
Database Information:
Global Database Name:XE
System Identifier(SID):XE

Connect to Oracle Database using one of the connect strings:
     Pluggable database: apex.lyretech.local/XEPDB1
     Multitenant container database: apex.lyretech.local</code></pre>



<p>Null</p>



<p>//Setup Oracle environment by adding entries to .bash_profile</p>



<pre class="wp-block-code"><code>su - oracle
vi /home/oracle/.bash_profile</code></pre>



<p>Null</p>



<pre class="wp-block-code"><code>export ORACLE_SID=XE
export ORAENV_ASK=NO
. oraenv</code></pre>



<p>Null//Set Oracle environment (CDB)</p>



<pre class="wp-block-code"><code>exit
su - oracle
lsnrctl status</code></pre>



<p>Null</p>



<pre class="wp-block-code"><code>Services Summary...
Service "XE" has 1 instance(s).
  Instance "XE", status READY, has 1 handler(s) for this service...
Service "XEXDB" has 1 instance(s).
  Instance "XE", status READY, has 1 handler(s) for this service...
Service "cdba8e5749a64368e053b901a8c02fef" has 1 instance(s).
  Instance "XE", status READY, has 1 handler(s) for this service...
Service "xepdb1" has 1 instance(s).
  Instance "XE", status READY, has 1 handler(s) for this service...
The command completed successfully</code></pre>



<p>Generic<br>//Enable Autostart of Oracle Listener and Database&nbsp;as root</p>



<pre class="wp-block-code"><code>systemctl daemon-reload
systemctl enable oracle-xe-21c</code></pre>



<p>Generic</p>



<p>Now reboot system and verify that database(s) are up and running.</p>



<pre class="wp-block-code"><code>reboot</code></pre>



<p>Generic</p>



<p>//Verify that the Oracle listener at least services XE and xepdb1</p>



<pre class="wp-block-code"><code>su - oracle
lsnrctl status | grep instance</code></pre>



<p>GenericOUTPUT:</p>



<pre class="wp-block-code"><code>Service "XE" has 1 instance(s).
Service "XEXDB" has 1 instance(s).
Service "cdba8e5749a64368e053b901a8c02fef" has 1 instance(s).
Service "xepdb1" has 1 instance(s).</code></pre>



<p>HTML//Verify that both container database( and the pluggable database(xepdb1) is running</p>



<pre class="wp-block-code"><code>sqlplus / as sysdba
show con_name
select * from dual;

alter session set container = xepdb1;
show con_name
select * from dual;

exit;</code></pre>



<p>Generic</p>



<hr class="wp-block-separator"/>



<h2 class="wp-block-heading" id="oracle-em-express-setup-optional"><strong>Oracle EM Express setup (optional)</strong></h2>



<hr class="wp-block-separator"/>



<p><em>Note: Oracle EM Express will be depreciated in next version of the database.</em>// connect to CDB container</p>



<pre class="wp-block-code"><code>su - oracle
sqlplus / as sysdba

show con_name
exec dbms_xdb_config.sethttpsport(0);
exec dbms_xdb_config.setglobalportenabled(TRUE);

alter session set container=XEPDB1;
show con_name
exec dbms_xdb_config.sethttpsport(5500);</code></pre>



<p>GenericVerify that you can login to Oracle Enterprise Manager Express&nbsp;</p>



<p>//username: system password: [ADMIN password]</p>



<figure class="wp-block-embed"><div class="wp-block-embed__wrapper">
https://apex.lyretech.local:5500/em
</div></figure>



<hr class="wp-block-separator"/>



<h2 class="wp-block-heading" id="backup"><strong>BACKUP</strong></h2>



<hr class="wp-block-separator"/>



<pre class="wp-block-preformatted">This is a good time for a backup of the virtual machine.
<em><br>OS is installed, updates applied, network confirmed and software staged on the server.</em>
<em>Tomcat is installed and setup.
Oracle database and its environment has been setup.</em>
<em>Databae is starting automatically.</em></pre>



<hr class="wp-block-separator"/>



<h2 class="wp-block-heading" id="oracle-apex-installation"><strong>Oracle APEX Installation</strong></h2>



<hr class="wp-block-separator"/>



<p><em><strong>PRE</strong></em><br>//Connect to PDB and create dedicated tablespaces for APEX data</p>



<pre class="wp-block-code"><code>su - oracle
sqlplus / as sysdba

alter session set container = xepdb1;
show con_name</code></pre>



<p>Null</p>



<pre class="wp-block-code"><code>CREATE TABLESPACE APEX_DATA
DATAFILE 
  '/opt/oracle/oradata/XE/XEPDB1/apex_data01.dbf' SIZE 200M AUTOEXTEND ON NEXT 10M MAXSIZE 2G
LOGGING
DEFAULT 
  NO INMEMORY
EXTENT MANAGEMENT LOCAL AUTOALLOCATE
BLOCKSIZE 8K
SEGMENT SPACE MANAGEMENT AUTO
FLASHBACK ON;

</code></pre>



<p>Null</p>



<pre class="wp-block-code"><code>CREATE TABLESPACE APEX_FILES
DATAFILE 
  '/opt/oracle/oradata/XE/XEPDB1/apex_file01.dbf' SIZE 100M AUTOEXTEND ON NEXT 10M MAXSIZE 250M
LOGGING
DEFAULT 
  NO INMEMORY
EXTENT MANAGEMENT LOCAL AUTOALLOCATE
BLOCKSIZE 8K
SEGMENT SPACE MANAGEMENT AUTO
FLASHBACK ON;</code></pre>



<p>Generic</p>



<pre class="wp-block-code"><code>ALTER DATABASE DATAFILE '/opt/oracle/oradata/XE/XEPDB1/users01.dbf'
AUTOEXTEND ON
NEXT 1280K
MAXSIZE 250M;</code></pre>



<p>Null</p>



<pre class="wp-block-code"><code>ALTER DATABASE DATAFILE '/opt/oracle/oradata/XE/XEPDB1/sysaux01.dbf'
AUTOEXTEND ON
NEXT 10M
MAXSIZE 1G;</code></pre>



<p>Null</p>



<pre class="wp-block-code"><code>ALTER DATABASE DATAFILE '/opt/oracle/oradata/XE/XEPDB1/system01.dbf'
AUTOEXTEND ON
NEXT 10M
MAXSIZE 2G;</code></pre>



<p>Null</p>



<p>//exit sql*plus</p>



<pre class="wp-block-code"><code>exit</code></pre>



<p>Generic<em><strong><br></strong></em><em><strong>INSTALL</strong></em><br><em>//Upzip Apex files&nbsp;</em></p>



<pre class="wp-block-code"><code>su - oracle
cd /opt/oracle
unzip /software/apex_21.1.zip
cd apex</code></pre>



<p>Null</p>



<p>//Install APEX into pluggable database XEPDB1 &nbsp;</p>



<pre class="wp-block-code"><code>sqlplus / as sysdba
alter session set container=xepdb1;</code></pre>



<p>Null</p>



<pre class="wp-block-code"><code>@apexins.sql apex_data apex_files temp /i/</code></pre>



<p>Null</p>



<p>OUTPUT:</p>



<pre class="wp-block-preformatted">timing for: Phase 3 (Switch)
Elapsed: 00:00:59.95
timing for: Complete Installation
Elapsed: 00:06:09.81

PL/SQL procedure successfully completed.
1 row selected.

...null1.sql</pre>



<p>//Create APEX instance administratorNote: &nbsp;When prompted:Enter the administrator&#8217;s username [ADMIN]<br>Enter ADMIN&#8217;s email [ADMIN] admin@lyretech.dk<br>Enter ADMIN&#8217;s password [Apex Instance Password]</p>



<pre class="wp-block-code"><code>@apxchpwd.sql</code></pre>



<p>Generic</p>



<pre class="wp-block-code"><code>"Created instance administrator ADMIN."</code></pre>



<p>Null</p>



<p>//unlock the&nbsp;<code>APEX_PUBLIC_USER</code>&nbsp;account and set new password [PUBLIC Password]</p>



<pre class="wp-block-code"><code>sqlplus / as sysdba
alter session set container = xepdb1;
show con_name

alter user APEX_PUBLIC_USER account unlock;
alter user APEX_PUBLIC_USER identified by &#91;PUBLIC Password];</code></pre>



<p>HTML</p>



<p>// Make the account APEX_PUBLIC_USER used for Oracle REST Data Services never expires (default = 180 days)&nbsp;</p>



<pre class="wp-block-code"><code>CREATE PROFILE "APEX_PUBLIC_USER" LIMIT
  SESSIONS_PER_USER UNLIMITED
  CPU_PER_SESSION UNLIMITED
  CPU_PER_CALL UNLIMITED
  CONNECT_TIME UNLIMITED
  IDLE_TIME UNLIMITED
  LOGICAL_READS_PER_SESSION UNLIMITED
  LOGICAL_READS_PER_CALL UNLIMITED
  COMPOSITE_LIMIT UNLIMITED
  PRIVATE_SGA UNLIMITED
  FAILED_LOGIN_ATTEMPTS 10
  INACTIVE_ACCOUNT_TIME 365
  PASSWORD_LIFE_TIME UNLIMITED
  PASSWORD_REUSE_TIME UNLIMITED
  PASSWORD_REUSE_MAX UNLIMITED
  PASSWORD_LOCK_TIME 1
  PASSWORD_GRACE_TIME 7
  PASSWORD_VERIFY_FUNCTION NULL;

  ALTER USER APEX_PUBLIC_USER PROFILE APEX_PUBLIC_USER;

</code></pre>



<p>Generic</p>



<p>//exit sql*plus</p>



<pre class="wp-block-code"><code>exit</code></pre>



<p>Generic</p>



<hr class="wp-block-separator"/>



<h2 class="wp-block-heading" id="oracle-rest-data-services-ords-installation-with-tomcat"><strong><em>Oracle REST Data Services(ords) installation with Tomcat</em></strong></h2>



<hr class="wp-block-separator"/>



<p><strong><em>PRE</em></strong><br>//Create dedicated tablespaces for ORDS</p>



<pre class="wp-block-code"><code>su - oracle
cd /opt/oracle/apex
sqlplus / as sysdba</code></pre>



<p>Null</p>



<pre class="wp-block-code"><code>alter session set container=xepdb1;</code></pre>



<p>Null</p>



<pre class="wp-block-code"><code>CREATE TABLESPACE ORDS_PUBLIC_USER
DATAFILE 
  '/opt/oracle/oradata/XE/XEPDB1/ords_public_user01.dbf' SIZE 100M AUTOEXTEND ON NEXT 10M MAXSIZE 1G
LOGGING
DEFAULT 
  NO INMEMORY
EXTENT MANAGEMENT LOCAL AUTOALLOCATE
BLOCKSIZE 8K
SEGMENT SPACE MANAGEMENT AUTO
FLASHBACK ON;</code></pre>



<p></p>



<pre class="wp-block-code"><code>CREATE TABLESPACE ORDS_METADATA
DATAFILE 
  '/opt/oracle/oradata/XE/XEPDB1/ords_meta01.dbf' SIZE 100M AUTOEXTEND ON NEXT 10M MAXSIZE 1G
LOGGING
DEFAULT 
  NO INMEMORY
EXTENT MANAGEMENT LOCAL AUTOALLOCATE
BLOCKSIZE 8K
SEGMENT SPACE MANAGEMENT AUTO
FLASHBACK ON;</code></pre>



<p>//Setup RESTfull Services</p>



<p>When prompted use &nbsp;[SERVICE Password] &nbsp;for APEX_LISTENER &nbsp;and APEX_REST_PUBLIC_USER&nbsp;</p>



<pre class="wp-block-code"><code>show con_name 
!pwd #/opt/oracle/apex
@apex_rest_config.sql</code></pre>



<p>Generic</p>



<pre class="wp-block-code"><code>exit</code></pre>



<p>Generic//create install directory and unzip ORDS software</p>



<pre class="wp-block-code"><code>su - oracle
mkdir -p /opt/oracle/ords
cd /opt/oracle/ords
unzip /software/ords-21.2.4.243.1032.zip</code></pre>



<p><br>// Move Images to Tomcat.<br><em>as root</em></p>



<pre class="wp-block-code"><code>su - 
cp -r /opt/oracle/apex/images /opt/tomcat/latest/webapps/i
chown -R tomcat:tomcat /opt/tomcat/latest/webapps/i
exit</code></pre>



<p>Generic// Create directory for configuration and install ORDS</p>



<pre class="wp-block-code"><code>su - oracle
mkdir -p /opt/oracle/ords/config  
cd /opt/oracle/ords
java -jar ords.war install advanced</code></pre>



<p></p>



<ul><li>Enter the location to store configuration data:&nbsp;<strong>/opt/oracle/ords/config</strong></li><li>Specify the database connection type to use:<strong>&nbsp;[ENTER]&nbsp;</strong>&nbsp;(BASIC)</li><li>Enter the name of the database server :<strong>[ENTER]</strong>&nbsp;(localhost)</li><li>Enter the database listen port:&nbsp;<strong>[ENTER]</strong>&nbsp; (1521)</li><li>Enter 1 to specify the database service name, or 2 to specify the database SID:&nbsp;<strong>[ENTER]</strong>&nbsp;(1)</li><li>Enter the database service name:&nbsp;<strong>XEPDB1</strong></li><li>Enter 1 if you want to verify/install Oracle REST Data Services schema or 2 to skip this step:&nbsp;<strong>[ENTER]</strong>&nbsp; (1)</li><li>Enter the database password for ORDS_PUBLIC_USER:&nbsp;<strong>[PUBLIC Password]</strong></li><li>Enter the administrator username:&nbsp;<strong>sys</strong></li><li>Enter the database password for SYS AS SYSDBA:&nbsp;<strong>[Admin Password]</strong></li><li>Enter the default tablespace for ORDS_METADATA [SYSAUX]:<strong>ORDS_METADATA</strong></li><li>Enter the temporary tablespace for ORDS_METADATA [TEMP]:&nbsp;<strong>[ENTER]</strong>&nbsp;(temp)</li><li>Enter the default tablespace for ORDS_PUBLIC_USER [SYSAUX]:<strong>ORDS_PUBLIC_USER</strong></li><li>Enter the temporary tablespace for ORDS_PUBLIC_USER [TEMP]:<strong>[ENTER]</strong>&nbsp; (temp)</li><li>If using Oracle Application Express or migrating from mod_plsql then you must enter 1:&nbsp;<strong>[ENTER]</strong>&nbsp; (1)</li><li>Enter the PL/SQL Gateway database user name [APEX_PUBLIC_USER]:&nbsp;<strong>[ENTER]</strong>&nbsp; (APEX_PUBLIC_USER)</li><li>Enter the database password for APEX_PUBLIC_USER:&nbsp;<strong>[PUBLIC Password]</strong></li><li>Enter 1 to specify passwords for Application Express RESTful Services database users (APEX_LISTENER, APEX_REST_PUBLIC_USER) or 2 to skip this step [1]:&nbsp;&nbsp;<strong>[ENTER]</strong>&nbsp; (1)&nbsp;</li><li>Enter the database password for APEX_LISTENER:&nbsp;<strong>[Service Password]</strong></li><li>Enter the database password for APEX_REST_PUBLIC_USER:&nbsp;<strong>[PUBLIC Password]&nbsp;</strong></li><li>Enter a number to select a feature to enable:<strong>[ENTER]</strong>&nbsp; (SQL Developer Web &nbsp;(Enables all features))</li></ul>



<pre class="wp-block-code"><code>Completed installation for Oracle REST Data Services version 21.2.4.r2431032. Elapsed time: 00:00:16.109</code></pre>



<p></p>



<ul><li>Enter 1 if you wish to start in standalone mode or 2 to exit [1]:&nbsp;<strong>2</strong>&nbsp;(EXIT)</li></ul>



<p>//Deploy ORDS to Tomcatas root</p>



<pre class="wp-block-code"><code>su -
cp /opt/oracle/ords/ords.war /opt/tomcat/latest/webapps
chown tomcat:tomcat /opt/tomcat/latest/webapps/ords.war</code></pre>



<p>Generic</p>



<p>//Start Tomcat&nbsp;</p>



<pre class="wp-block-code"><code>su - tomcat
cd /opt/tomcat/latest/bin
./startup.sh</code></pre>



<p>Generic</p>



<p>//Verify apex</p>



<p>Workspace: internal, username: admin &amp; password [APEX Instance Password]</p>



<p><a rel="noreferrer noopener" href="http://apex:8080/ords" target="_blank">http://apex.bluegecko.local:8080/ords</a></p>



<p>When logged in check APEX versin in &nbsp;lower right corner of page</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow"><p>Application Express 21.1.0 &nbsp;</p></blockquote>



<hr class="wp-block-separator"/>



<h2 class="wp-block-heading" id="apex-patch-installation"><strong>APEX Patch Installation</strong></h2>



<hr class="wp-block-separator"/>



<p><em><strong><br></strong></em><strong><em>PRE</em></strong></p>



<p>//Shutdown Tomcat to restrict access to ORDS while patching.</p>



<pre class="wp-block-code"><code>su - tomcat
$CATALINA_HOME/bin/shutdown.sh
exit</code></pre>



<p>Generic<br><strong><em>INSTALL</em></strong>//When prompted for passworh then enter [Admin Password]</p>



<pre class="wp-block-code"><code>su - oracle
mkdir -p /opt/oracle/apex/patches
cd /opt/oracle/apex/patches
unzip /software/p32598392_2110_Generic.zip
cd 32598392
sqlplus sys@//localhost:1521/xepdb1 as sysdba @catpatch.sql</code></pre>



<p>GenericAs Root</p>



<pre class="wp-block-code"><code>su -
\cp -rf /opt/oracle/apex/patches/32598392/images/*.* /opt/tomcat/latest/webapps/i</code></pre>



<p>Null<br><strong><em>POST</em></strong></p>



<p>// Start Tomcat to make ORDS available again.</p>



<pre class="wp-block-code"><code>su - tomcat
$CATALINA_HOME/bin/startup.sh</code></pre>



<p>Generic</p>



<p>//Verify apex version</p>



<p>Workspace: internal, username: admin &amp; password [APEX Instance Password]</p>



<p><a rel="noreferrer noopener" href="http://apex:8080/ords" target="_blank">http://apex.bluegecko.local:8080/ords</a></p>



<p>When logged in check APEX versin in &nbsp;lower right corner of page</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow"><p>Application Express 21.1.5</p></blockquote>



<p>Now go outside and play.</p>



<hr class="wp-block-separator"/>



<h2 class="wp-block-heading" id="urls"><strong>URLs</strong></h2>



<hr class="wp-block-separator"/>



<p><strong><em>Tomcat manager apps</em></strong><br><a rel="noreferrer noopener" href="https://apex.lyretech.local:9090/" target="_blank">https://apex.bluegecko.local:9090/</a><br>admin/[Admin Password]&nbsp;</p>



<p><strong><em>Oracle Enterprise Manager Express&nbsp;</em></strong><br><a rel="noreferrer noopener" href="https://apex.lyretech.local:5500/em" target="_blank">https://apex.bluegecko.local:5500/em</a><br>username: system password:&nbsp;[Admin Password]&nbsp;<br><br><strong><em>Cockpit</em></strong><br><a rel="noreferrer noopener" href="https://apex.lyretech.local:9090/" target="_blank">https://apex.bluegecko.local:9090/</a><br>root/[root Password]&nbsp;&nbsp;</p>



<p><strong>Oracle APEX Instance Manager</strong><br><a rel="noreferrer noopener" href="http://apex:8080/ords" target="_blank">http://apex.bluegecko.local:8080/ords</a></p>



<p>Workspace: internal, username: admin, password [APEX Instance Password]</p>



<hr class="wp-block-separator"/>



<h2 class="wp-block-heading" id="references"><strong>References</strong></h2>



<hr class="wp-block-separator"/>



<p><strong>DATABASE</strong></p>



<p>INSTALL GUIDE:<br><a rel="noreferrer noopener" href="https://docs.oracle.com/en/operating-systems/oracle-linux/8/install/ol8-install-prepare.html" target="_blank">https://docs.oracle.com/en/operating-systems/oracle-linux/8/install/ol8-install-prepare.html</a></p>



<p><a rel="noreferrer noopener" href="https://docs.oracle.com/en/database/oracle/oracle-database/21/ladbi/oracle-database-installation-checklist.html#GUID-E847221C-1406-4B6D-8666-479DB6BDB046" target="_blank">https://docs.oracle.com/en/database/oracle/oracle-database/21/ladbi/oracle-database-installation-checklist.html#GUID-E847221C-1406-4B6D-8666-479DB6BDB046</a><br>GET STARTED:<br><a href="https://docs.oracle.com/en/database/oracle/oracle-database/21/index.html">https://docs.oracle.com/en/database/oracle/oracle-database/21/index.html</a></p>



<p><strong>APEX</strong></p>



<p><a rel="noreferrer noopener" href="https://docs.oracle.com/en/database/oracle/application-express/21.1/htmig/downloading-installing-apex.html#GUID-B5A5B38D-586C-488A-AE27-A168FAA28FEE" target="_blank">https://docs.oracle.com/en/database/oracle/application-express/21.1/htmig/downloading-installing-apex.html#GUID-B5A5B38D-586C-488A-AE27-A168FAA28FEE</a></p>



<p><strong>COCKPIT</strong></p>



<p><a href="https://docs.oracle.com/en/operating-systems/oracle-linux/8/obe-cockpit-system/#before-you-begin">https://docs.oracle.com/en/operating-systems/oracle-linux/8/obe-cockpit-system/#before-you-begin</a></p>



<p><strong>TOMCAT</strong></p>



<p><a href="https://oracle-base.com/articles/linux/apache-tomcat-9-installation-on-linux">https://oracle-base.com/articles/linux/apache-tomcat-9-installation-on-linux</a></p>



<p><a href="https://oracle-base.com/articles/misc/oracle-rest-data-services-ords-installation-on-tomcat">https://oracle-base.com/articles/misc/oracle-rest-data-services-ords-installation-on-tomcat</a></p>



<p><a href="https://www.ateam-oracle.com/post/installing-tomcat-on-oracle-linux-in-oracle-cloud">https://www.ateam-oracle.com/post/installing-tomcat-on-oracle-linux-in-oracle-cloud</a></p>



<hr class="wp-block-separator"/>



<h2 class="wp-block-heading" id="software"><strong>SOFTWARE</strong></h2>



<hr class="wp-block-separator"/>



<p><strong>Oracle Linux 8.4 OS: Full ISO&nbsp;</strong><br><a href="https://yum.oracle.com/ISOS/OracleLinux/OL8/u4/x86_64/OracleLinux-R8-U4-x86_64-dvd.iso"><strong>OracleLinux-R8-U4-x86_64-dvd.iso</strong></a><a href="https://yum.oracle.com/oracle-linux-isos.html">https://yum.oracle.com/oracle-linux-isos.html</a><br><br><strong>Apache TOMCAT: CORE, tar.gz 9.0.53</strong><br><a href="https://tomcat.apache.org/download-90.cgi">https://tomcat.apache.org/download-90.cgi</a><br><br><strong>Open JDK 8: 8u302b08</strong><br><a href="https://adoptium.net/releases.html?variant=openjdk8&amp;jvmVariant=hotspot">https://adoptium.net/releases.html?variant=openjdk8&amp;jvmVariant=hotspot</a><br><br><strong>Preinstall RPMs for RHEL 8&nbsp;</strong>//Includes bugfix needed for correct setting up OS environment<br><a href="https://yum.oracle.com/repo/OracleLinux/OL8/appstream/x86_64/getPackage/oracle-database-preinstall-21c-1.0-1.el8.x86_64.rpm">https://yum.oracle.com/repo/OracleLinux/OL8/appstream/x86_64/getPackage/oracle-database-preinstall-21c-1.0-1.el8.x86_64.rpm</a><br><br><strong>RDBMS: 21c XE OL8&nbsp;</strong><br><strong><a rel="noreferrer noopener" href="https://download.oracle.com/otn-pub/otn_software/db-express/oracle-database-xe-21c-1.0-1.ol8.x86_64.rpm" target="_blank"></a></strong><a rel="noreferrer noopener" href="https://download.oracle.com/otn-pub/otn_software/db-express/oracle-database-xe-21c-1.0-1.ol8.x86_64.rpm" target="_blank"></a><a rel="noreferrer noopener" href="https://download.oracle.com/otn-pub/otn_software/db-express/oracle-database-xe-21c-1.0-1.ol8.x86_64.rpm" target="_blank">https://download.oracle.com/otn-pub/otn_software/db-express/oracle-database-xe-21c-1.0-1.ol8.x86_64.rpm</a><a rel="noreferrer noopener" href="https://download.oracle.com/otn-pub/otn_software/db-express/oracle-database-xe-21c-1.0-1.ol8.x86_64.rpm" target="_blank"></a><strong><a rel="noreferrer noopener" href="https://download.oracle.com/otn-pub/otn_software/db-express/oracle-database-xe-21c-1.0-1.ol8.x86_64.rpm" target="_blank"></a></strong>(&nbsp;<a rel="noreferrer noopener" href="https://www.oracle.com/database/technologies/xe-downloads.html" target="_blank">https://www.oracle.com/database/technologies/xe-downloads.html</a>&nbsp;)</p>



<p><strong>APEX: 21.1 all languages&nbsp;</strong><br><a href="https://www.oracle.com/tools/downloads/apex-downloads.html"><strong>https://www.oracle.com/tools/downloads/apex-downloads.html</strong></a></p>



<p><strong>APEX: Patch Set Bundle for Oracle APEX 21.1 (32598392)</strong><br><strong><a href="https://support.oracle.com/epmos/faces/PatchDetail?patchId=32598392">https://support.oracle.com/epmos/faces/PatchDetail?patchId=32598392</a></strong></p>



<p><strong>ORDS:&nbsp;Version 21.2.4.243.1032 &#8211; September 1, 2021&nbsp;</strong><br><a href="https://www.oracle.com/database/technologies/appdev/rest-data-services-downloads.html">https://www.oracle.com/database/technologies/appdev/rest-data-services-downloads.html</a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://bluegecko.dk/apex-21-runing-on-oracle-xe-21c-with-tomcat/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Tom Kyte, Graham Wood og Andrew Holdsworth kommer til Danmark</title>
		<link>https://bluegecko.dk/tom-kyte-graham-wood-og-andrew-holdsworth-kommer-til-danmark/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=tom-kyte-graham-wood-og-andrew-holdsworth-kommer-til-danmark</link>
					<comments>https://bluegecko.dk/tom-kyte-graham-wood-og-andrew-holdsworth-kommer-til-danmark/#respond</comments>
		
		<dc:creator><![CDATA[Dimitri van de Ven]]></dc:creator>
		<pubDate>Fri, 23 Jan 2015 14:57:53 +0000</pubDate>
				<category><![CDATA[IOUG]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Oracle Database]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[DOUG]]></category>
		<guid isPermaLink="false">http://bluegecko.dk/?p=3856</guid>

					<description><![CDATA[Tre af verdens førende Oracle performance guruer er på verdensturné, og de kommer til Danmark 23. marts! Tom Kyte, Graham Wood og Andrew Holdsworth arbejder alle i Oracle Real-Word Performance Group &#160;&#160; The Real-World Performance (RWP) Group is part of the Oracle Database Development &#160;&#160; organization. Engineers in the RWP group focus on extracting the [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Tre af verdens førende Oracle performance guruer er på verdensturné, og de kommer til Danmark 23. marts! <strong>Tom Kyte</strong>, <strong>Graham Wood</strong> og <strong>Andrew Holdsworth</strong> arbejder alle i Oracle Real-Word Performance Group</p>
<p><em>&nbsp;&nbsp; The Real-World Performance (RWP) Group is part of the Oracle Database Development </em><br />
<em>&nbsp;&nbsp; organization. Engineers in the RWP group focus </em><em>on extracting the maximum </em><br />
<em>&nbsp;&nbsp; performance from the Oracle Database and hardware in the real-world. </em><br />
<em>&nbsp;&nbsp; We do this by identifying inefficiencies </em><em>in current systems and applying modern </em><br />
<em>&nbsp;&nbsp; database design and tuning techniques. The RWP Group has their own channel </em><br />
<em>&nbsp;&nbsp; on the Oracle Learning </em><em>Library where you can get familiar with their </em><br />
<em>&nbsp;&nbsp; work: <a href="http://www.oracle.com/goto/oll/rwp">http://www.oracle.com/goto/oll/rwp</a></em></p>
<p>Det bliver en dag fuld af live demoer og med masser af info og tips om arkitektur, performance og konfigurering.</p>
<p>Dagen henvender sig til:</p>
<ul>
<li><strong>Arkitekter</strong>, der kan lære om godt og dårligt design</li>
<li><strong>Udviklere</strong>, der kan se hvordan deres kode, applikationsserveren og databasen kan arbejde bedre sammen</li>
<li><strong>DBA’er</strong>, der kan lære hvordan man får maksimal performance ud af Oracle</li>
</ul>
<p>RWP gruppen har arbejdet med Oracles største kunder og kæmpet med de mest dramatiske nedbrud af produktionssystemer, så de kan fortælle nogen gode historier fra den virkelige verden. På denne dag kan du høre dem dele ud af deres erfaring, så du kan undgå at begå almindelige og mindre almindelige fejltagelser der får systemer til at gå ned når der bliver travlt.</p>
<p>Det drejer sig ikke om at skrue på parametrene, men om hvordan mangel på viden, dårligt design, manglende test og fejlagtige opfattelser får systemer til at køre dårligt eller helt bryde sammen. Kom og blive klogere!</p>
<p>Vi starter kl. 08.30 med morgenmad, hvorefter eksperterne får ordet kl. 9. Vi regner med at være færdige kl. 17, og derefter er der mulighed for at få en drink og lidt let forplejning.</p>
<p>Arrangementet afholdes den 23. marts 2015 fra kl. 08.30 til 17.00 hos Oracle i Ballerup og koster kun 1.295 kr.</p>
<p>Adresse:<br />
Metalbuen 66<br />
2750 Ballerup</p>
<p>Tilmeldingen skal ske på DOUG&#8217;s hjemmeside (<a title="http://www.doug.dk/" href="http://www.doug.dk/" target="_blank" rel="noopener noreferrer">www.doug.dk</a>):</p>
<p><a href="http://www.doug.dk/events/real-world-performance-tour/">Tilmeld dig her!</a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://bluegecko.dk/tom-kyte-graham-wood-og-andrew-holdsworth-kommer-til-danmark/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Oracle 11.2.0.4 Physical Standby on Windows 2008</title>
		<link>https://bluegecko.dk/oracle-11-2-0-4-physical-standby-on-windows-2008-r2-64-bit-fails-to-sync-with-the-primary-due-to-ora-07445-exception-encountered-core-dump-pc0x2223829-access_violation-addr0x7fffffff8-pc0x/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=oracle-11-2-0-4-physical-standby-on-windows-2008-r2-64-bit-fails-to-sync-with-the-primary-due-to-ora-07445-exception-encountered-core-dump-pc0x2223829-access_violation-addr0x7fffffff8-pc0x</link>
					<comments>https://bluegecko.dk/oracle-11-2-0-4-physical-standby-on-windows-2008-r2-64-bit-fails-to-sync-with-the-primary-due-to-ora-07445-exception-encountered-core-dump-pc0x2223829-access_violation-addr0x7fffffff8-pc0x/#respond</comments>
		
		<dc:creator><![CDATA[lbvanting]]></dc:creator>
		<pubDate>Sun, 31 Aug 2014 05:33:26 +0000</pubDate>
				<category><![CDATA[News]]></category>
		<category><![CDATA[News & Events]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Oracle APEX]]></category>
		<category><![CDATA[Oracle Data Guard]]></category>
		<category><![CDATA[Oracle Database]]></category>
		<category><![CDATA[Oracle Linux]]></category>
		<category><![CDATA[Tomcat]]></category>
		<guid isPermaLink="false">http://www.bluegecko.dk/?p=3755</guid>

					<description><![CDATA[After database migration from Oracle 10gR2 on UNIX to Windows (Windows Server 2008 R2 64-bit), two productive databases were located on dedicated servers; one server running the 11.2.0.4 database and another server running the 12.1.0.1 database (both Enterprise Edition single-instance using non-ASM based storage). Another Windows server was hosting both the development/test environments for the [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>After database migration from Oracle 10gR2 on UNIX to Windows (Windows Server 2008 R2 64-bit), two productive databases were located on dedicated servers; one server running the 11.2.0.4 database and another server running the 12.1.0.1 database (both Enterprise Edition single-instance using non-ASM based storage).</p>
<p>Another Windows server was hosting both the development/test environments for the same RDBMS combination, ie. 11.2.0.4 and 12.1.0.1 running together.<br />
On this server both database versions co-existed without any issues.<br />
Similar to dev/test a fourth Windows server was supposed host both a 11.2.0.4 and a 12.1.0.1 Oracle Data Guard Physical Standby database, one for each productive database.</p>
<p>The 12.1.0.1 Physical Standby database was created and instantiated first, everything running nice and smooth.<br />
Then the 11.2.0.4 Physical Standby database was cloned/instantiated from its primary database.<br />
When starting the cloned 11.2.0.4 standby database instance (in MOUNT state) and starting REDO APPLY the following error occurred:<br />
<code><br />
ORA-07445: exception encountered: core dump [PC:0x2223829] [ACCESS_VIOLATION] [ADDR:0x7FFFFFFF8] [PC:0x2223829] [UNABLE_TO_READ] []<br />
</code></p>
<p>And REDO APPLY is not starting, the standby database is not getting in sync with its primary database.<br />
The suspiscion falls on security issues, e.g. Windows ACLs, Oracle RDBMS Software ownership, Windows Service Logon-account etc.<br />
But in the end this issue turned out to be a BUG!</p>
<p><strong>Bug 17535265: ORA-7445 ERRORS IN DATA GUARD STANDBY DATABASE AFTER 12C INSTALLATION</strong></p>
<p>The problem is that the 12c RDBMS installation creates various local Windows groups, for example ORA_OPER.<br />
And the user account, which owns/controls the 11.2.0.4 software and database instance, is not added automatically and therefore the sysoper connection fails with the ORA-07445 error.</p>
<p>The work-around is simply to add the user account, which owns/controls the 11.2.0.4 standby database, to the ORA_OPER group.<br />
After this the ORA-07445 error disappeared and REDO APPLY worked without any issues.<br />
See MOS article 1591821.1 &#8220;ORA-7445 Errors In Data Guard Standby Database&#8221; as well as bug information for further information.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://bluegecko.dk/oracle-11-2-0-4-physical-standby-on-windows-2008-r2-64-bit-fails-to-sync-with-the-primary-due-to-ora-07445-exception-encountered-core-dump-pc0x2223829-access_violation-addr0x7fffffff8-pc0x/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Oracle Fine Grained Audit &#8211; who have queried confidential data</title>
		<link>https://bluegecko.dk/fga/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=fga</link>
					<comments>https://bluegecko.dk/fga/#respond</comments>
		
		<dc:creator><![CDATA[Dimitri van de Ven]]></dc:creator>
		<pubDate>Mon, 02 Jun 2014 07:04:58 +0000</pubDate>
				<category><![CDATA[Oracle Database]]></category>
		<category><![CDATA[DBMS_FGA]]></category>
		<category><![CDATA[dbms_fga.add_policy]]></category>
		<category><![CDATA[FGA]]></category>
		<category><![CDATA[Fine Grained Audit]]></category>
		<category><![CDATA[NETS]]></category>
		<category><![CDATA[Oracle FGA]]></category>
		<category><![CDATA[SE & HØR]]></category>
		<category><![CDATA[Se og Hør]]></category>
		<guid isPermaLink="false">http://www.bluegecko.dk/?p=3749</guid>

					<description><![CDATA[The need for more sophisticated controls on access to sensitive data is becoming increasingly important as organizations address emerging security requirements around data consolidation, privacy and compliance. There are many examples of data breaches which have been perpetrated using stolen credentials, SQL injection or by insiders who are authorized to access the system and its [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>The need for more sophisticated controls on access to sensitive data is becoming increasingly important as organizations address emerging security requirements around data consolidation, privacy and compliance. There are many examples of data breaches which have been perpetrated using stolen credentials, SQL injection or by insiders who are authorized to access the system and its data. Currently, hot topic news in Denmark is, where a popular week-magazine received sensitive information about famous people, from a highly trusted person, working for the Nordic provider of payment card transactions. Unfortunately this incident is not unique and happens far too often. Securing data requires a defense-in-depth approach. Both technical and administrative employees need to be involved to prevent and monitor unauthorized access to sensitive data.</p>
<p>This blog will discuss Oracle database security feature, Fine Grained Audit (FGA), that may help to discover unauthorized access of confidential data with the right setup.</p>
<p>With FGA, it is possible to create audit policies, that records if a user viewed (selected) data from a specific table or table column. Audit records include information about the operation that was audited, the user performing the operation, and the time of the operation. Audit trail records created by FGA can be captured and analyzed in Oracle Audit Vault and Database Firewall, automatically alerting the security team about possible malicious activity.</p>
<p>In next simple example, I will show how FGA can help to monitor unauthorized access of confidential data:</p>
<table style="width: 656px; height: 1700px;" border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr style="background-color: #779293;">
<td valign="top" width="45"></td>
<td valign="top" width="607"><span style="color: #ffffff;"><b>Fine Grained Audit example<br />
</b></span></td>
</tr>
<tr style="background-color: #bbe5e6;">
<td valign="top" width="45"><b>1</b></td>
<td valign="top" width="607"><strong>Create user schema XXBANK:</strong></p>
<p>sqlplus sys/xxx as sysdba<br />
SQL&gt; CREATE USER XXBANK IDENTIFIED BY xxbank;<br />
SQL&gt; GRANT CONNECT TO XXBANK;<br />
SQL&gt; GRANT DBA to XXBANK;<br />
SQL&gt; exit;</td>
</tr>
<tr style="background-color: #def2f3;">
<td valign="top" width="45"><b>2</b></td>
<td valign="top" width="607"><strong>Create table XXBANK.TRANSAKTIONS and insert some rows:</strong></p>
<p>sqlplus sys/xxx as sysdba<br />
SQL&gt; create table XXBANK.TRANSACTIONS<br />
(<br />
TRANSACTION_ID number,<br />
TRANSACTION_TIME timestamp,<br />
TRANSACTION_PLACE varchar2(40),<br />
CREDIT_CARD_NUMBER varchar2(16),<br />
CREDIT_CARD_HOLDER_NAME varchar2(30) not null,<br />
PAYMENT_AMOUNT number,<br />
primary key (TRANSACTION_ID)<br />
);</p>
<p>SQL&gt; insert into XXBANK.TRANSACTIONS values (1,to_timestamp(&#8217;02-APR-2014 10:45&#8242;,&#8217;DD-MON-YYYY HH24:MI&#8217;), &#8216;MC Donalds, Slagelse, DK&#8217;, &#8216;4599123466991234&#8217;,&#8217;Prins Henrik&#8217;, 55.50);<br />
SQL&gt; insert into XXBANK.TRANSACTIONS values (2,to_timestamp(&#8217;02-APR-2014 15:10&#8242;,&#8217;DD-MON-YYYY HH24:MI&#8217;), &#8216;Seven Eleven, KBH Vesterbro, DK&#8217;, &#8216;4510432145456789&#8217;,&#8217;Henrik Qvortrup&#8217;, 35.00);<br />
SQL&gt; insert into XXBANK.TRANSACTIONS values (3,to_timestamp(&#8217;02-APR-2014 22:30&#8242;,&#8217;DD-MON-YYYY HH24:MI&#8217;), &#8216;Mefisto, Aarhus, DK&#8217;, &#8216;3311345666772468&#8217;,&#8217;Bubber&#8217;, 225.00);<br />
SQL&gt; insert into XXBANK.TRANSACTIONS values (4,to_timestamp(&#8217;03-APR-2014 03:10&#8242;,&#8217;DD-MON-YYYY HH24:MI&#8217;), &#8216;Hanky Panky Bar, KBH Vesterbro, DK&#8217;, &#8216;4510432145456789&#8217;,&#8217;Henrik Qvortrup&#8217;, 1050.00);<br />
SQL&gt; insert into XXBANK.TRANSACTIONS values (5,to_timestamp(&#8217;03-APR-2014 08:30&#8242;,&#8217;DD-MON-YYYY HH24:MI&#8217;), &#8216;Burger King, Strøget KBH, DK&#8217;, &#8216;4599123466991234&#8217;,&#8217;Prins Henrik&#8217;, 70.50);<br />
SQL&gt; insert into XXBANK.TRANSACTIONS values (6,to_timestamp(&#8217;03-APR-2014 12:30&#8242;,&#8217;DD-MON-YYYY HH24:MI&#8217;), &#8216;Psykologcentret, KBH, DK&#8217;, &#8216;3311345666772468&#8217;,&#8217;Bubber&#8217;, 512.75);<br />
SQL&gt; insert into XXBANK.TRANSACTIONS values (7,to_timestamp(&#8217;03-APR-2014 16:39&#8242;,&#8217;DD-MON-YYYY HH24:MI&#8217;), &#8216;Starbucks, Toronto, Canada&#8217;, &#8216;4444362255449385&#8217;,&#8217;Prins Joachim&#8217;, 125.45);<br />
SQL&gt; insert into XXBANK.TRANSACTIONS values (8,to_timestamp(&#8217;04-APR-2014 10:17&#8242;,&#8217;DD-MON-YYYY HH24:MI&#8217;), &#8216;Fona, Valby, DK&#8217;, &#8216;4444123573596612&#8217;,&#8217;Bo Henriksen&#8217;, 10000.00);<br />
SQL&gt; commit;<br />
SQL&gt; exit;</td>
</tr>
<tr style="background-color: #bbe5e6;">
<td valign="top" width="45"><strong>3</strong></td>
<td valign="top" width="607"><strong>Create an FGA policy on table XXBANK.TRANSACTIONS:</strong></p>
<p>sqlplus sys/xxx as sysdba<br />
SQL&gt; begin<br />
dbms_fga.add_policy (<br />
object_schema=&gt;&#8217;XXBANK&#8217;,<br />
object_name=&gt;&#8217;TRANSACTIONS&#8217;,<br />
policy_name=&gt;&#8217;TRANSACTIONS_ACCESS&#8217;<br />
);<br />
end;<br />
/<br />
SQL&gt; exit</td>
</tr>
<tr style="background-color: #def2f3;">
<td valign="top" width="45"><b>4</b></td>
<td valign="top" width="607"><strong>Do some sql-queries on sensitive data:</strong></p>
<p><strong>User APPS is looking at transactions done by members of the royal family:</strong></p>
<p>sqlplus apps/xxx<br />
SQL&gt; select * from XXBANK.TRANSACTIONS where lower(CREDIT_CARD_HOLDER_NAME) like &#8216;%prins%&#8217;;</p>
<p>TRANSACTION_ID TRANSACTION_TIME<br />
&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
TRANSACTION_PLACE CREDIT_CARD_NUMB CREDIT_CARD_HOLDER_NAME PAYMENT_AMOUNT<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8211;<br />
1 02-APR-14 10.45.00.000000 AM<br />
MC Donalds, Slagelse, DK 4599123466991234 Prins Henrik 55.55</p>
<p>5 03-APR-14 08.30.00.000000 AM<br />
Burger King, Strøget KBH, DK 4599123466991234 Prins Henrik 70.50</p>
<p>7 03-APR-14 04.39.00.000000 PM<br />
Starbucks, Toronto, Canada 4444362255449385 Prins Joachim 125.45</p>
<p>SQL&gt; exit</p>
<p><strong>User EMPLOYEE_1 is looking at transactions done by Bubber:</strong></p>
<p>sqlplus employee_1/xxx<br />
SQL&gt; select to_char(TRANSACTION_TIME,&#8217;DD-MON-YYYY HH24:MI&#8217;) &#8220;Time&#8221;, TRANSACTION_PLACE from XXBANK.TRANSACTIONS where lower(CREDIT_CARD_HOLDER_NAME) like &#8216;%bubber%&#8217;;</p>
<p>Time TRANSACTION_PLACE<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
02-APR-2014 22:30 Mefisto, Aarhus, DK<br />
03-APR-2014 12:30 Psykologcentret, KBH, DK</p>
<p>SQL&gt; exit</td>
</tr>
<tr style="background-color: #bbe5e6;">
<td valign="top" width="45"><b>5</b></td>
<td valign="top" width="607"><strong>Check who has viewed sensitive information in the TRANSACTIONS table:</strong></p>
<p>sqlplus sys/xxx as sysdba<br />
SQL&gt; set linesize 200<br />
SQL&gt; set pages 200<br />
SQL&gt; column TS format A20<br />
SQL&gt; column db_user format A10<br />
SQL&gt; column os_user format A10<br />
SQL&gt; column object_schema format A8<br />
SQL&gt; column sql_text format A150<br />
SQL&gt; select to_char(timestamp,&#8217;DD-MON-YYYY HH24:MI&#8217;) &#8220;TS&#8221;, db_user, os_user, object_schema, object_name, sql_text from dba_fga_audit_trail;</p>
<p>TS DB_USER OS_USER OBJECT_S<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;- &#8212;&#8212;&#8211;<br />
OBJECT_NAME<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
SQL_TEXT<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
01-MAY-2014 07:25 APPS oracle XXBANK<br />
TRANSACTIONS<br />
select * from XXBANK.TRANSACTIONS where lower(CREDIT_CARD_HOLDER_NAME) like &#8216;%prins%&#8217;</p>
<p>01-MAY-2014 08:08 EMPLOYEE_1 oracle XXBANK<br />
TRANSACTIONS<br />
select to_char(TRANSACTION_TIME,&#8217;DD-MON-YYYY HH24:MI&#8217;) &#8220;Time&#8221;, TRANSACTION_PLACE from XXBANK.TRANSACTIONS where lower(CREDIT_CARD_HOLDER_NAME) like &#8216;%bubber%&#8217;</td>
</tr>
</tbody>
</table>
]]></content:encoded>
					
					<wfw:commentRss>https://bluegecko.dk/fga/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to secure and audit unauthorized data access</title>
		<link>https://bluegecko.dk/how-to-secure-and-audit-unauthorized-data-access/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-secure-and-audit-unauthorized-data-access</link>
					<comments>https://bluegecko.dk/how-to-secure-and-audit-unauthorized-data-access/#respond</comments>
		
		<dc:creator><![CDATA[Dimitri van de Ven]]></dc:creator>
		<pubDate>Mon, 12 May 2014 07:49:51 +0000</pubDate>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[audit]]></category>
		<category><![CDATA[database auditing]]></category>
		<category><![CDATA[Encrypt]]></category>
		<category><![CDATA[Enterprise User Security]]></category>
		<category><![CDATA[FGA]]></category>
		<category><![CDATA[Fine Grained Audit]]></category>
		<category><![CDATA[NETS]]></category>
		<category><![CDATA[Oracle Advanced Security]]></category>
		<category><![CDATA[Oracle Database Vault]]></category>
		<category><![CDATA[Oracle Label Security]]></category>
		<category><![CDATA[Proxy Authentication]]></category>
		<category><![CDATA[Roles]]></category>
		<category><![CDATA[SE & HØR]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[TDE]]></category>
		<category><![CDATA[Transparent Data Encryption]]></category>
		<category><![CDATA[Virtual Private Database]]></category>
		<guid isPermaLink="false">http://www.bluegecko.dk/?p=3743</guid>

					<description><![CDATA[The need for more sophisticated controls on access to sensitive data is becoming increasingly important as organizations address emerging security requirements around data consolidation, privacy and compliance. There are many examples of data breaches which have been perpetrated using stolen credentials, SQL injection or by insiders who are authorized to access the system and its [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>The need for more sophisticated controls on access to sensitive data is becoming increasingly important as organizations address emerging security requirements around data consolidation, privacy and compliance. There are many examples of data breaches which have been perpetrated using stolen credentials, SQL injection or by insiders who are authorized to access the system and its data. Currently, hot topic news in Denmark is, where a popular week-magazine received sensitive information about famous people, from a highly trusted person, working for the Nordic provider of payment card transactions. Unfortunately this incident is not unique and happens far too often. Securing data requires a defense-in-depth approach. Both technical and administrative employees need to be involved to prevent and monitor unauthorized access to sensitive data. Payment Card Industry (PCI), Sarbanes-Oxley (SOX), EU Privacy Directive and the Healthcare Insurance Portability and Accountability Act (HIPAA) all require strong internal controls on access, disclosure or modification of sensitive information that could lead to fraud, identity theft, financial irregularities and financial penalties.</p>
<p>This blog will list various Oracle database security features that may help to prevent or discover unauthorized access of confidential data with the right setup. In addition, we will discuss some of the Oracle Security options that use combinations of these features and make it easier to secure sensitive information from the database.</p>
<p><strong>Database Auditing (DA)</strong><br />
DA is the monitoring and recording of selected user database actions. Security policies can trigger auditing when specified elements in the database are accessed or altered. Audit records include information about the operation that was audited, the user performing the operation, and the time of the operation. Audit records can be stored in the database audit trail or in files on the operating system. Standard auditing includes operations on privileges, schemas, objects, and statements. To enable DA, the initialization parameter, AUDIT_TRAIL, should be set to &#8220;DB&#8221;, &#8220;DB,EXTENDED&#8221;, &#8220;XML&#8221;, &#8220;XML, EXTENDED&#8221; or &#8220;OS&#8221;.</p>
<p><strong>Fine Grained Audit (FGA)</strong><br />
With FGA, it is possible to create audit policies, that records if a user viewed (selected) data from a specific table or table column. Audit records include information about the operation that was audited, the user performing the operation, and the time of the operation. Audit trail records created by FGA can be captured and analyzed in Oracle Audit Vault and Database Firewall, automatically alerting the security team about possible malicious activity.</p>
<p><strong>Transparent Data Encryption (TDE)</strong><br />
The TDE feature allows confidential data to be encrypted within the data files to prevent access to it from the hard drive or backup media. TDE stores sensitive data in encrypted form and when the data is accessed, it automatically decrypt it. Encrypted data is transparently decrypted for a database user or application that has privileges to access the data. TDE helps protect data stored on media in the event that the storage media or data file gets stolen. Oracle requires the Advanced Security Option to be enabled.</p>
<p><strong>Encrypt Database Backups</strong><br />
Encryption is the only defense when it comes to protecting business data when it is transported on tape or disk to offsite storage for safekeeping. Oracle provides two solutions for encrypting database backups.<br />
1) Oracle RMAN can encrypt an entire database backup using one of these three methods: TDE, Passphrase or Hybrid (both Passphrase and TDE).<br />
2) Oracle Secure Backup (OSB), delivers tape data protection for the Oracle database and file systems in distributed UNIX, Linux, Windows and Network Attached Storage (NAS) environments.</p>
<p><strong>Encrypt Database Export files</strong><br />
Oracle Data Pump can encrypt an export file using one of these three methods: TDE, Passphrase or Hybrid (both Passphrase and TDE).</p>
<p><strong>Virtual Private Database (VPD)</strong><br />
A VPD masks data in a larger database so that only a subset of the data appear to exist, without actually segregating data into different tables, schemas, databases. In other words, VPD allows multiple users to access a single schema whilst preventing them from accessing data that is not relevant to them. Oracle VPD enables you to create security policies to control database access at the row and column level. Essentially, VPD adds a dynamic WHERE clause to a SQL statement that is issued against the table, view, or synonym to which an VPD security policy was applied. A simple VPD example might restrict access to data during business hours and a more complex VPD example might read an application context during a login trigger and enforce row level security against a specific table.</p>
<p><strong>Roles</strong><br />
Roles are a powerful method for managing privileges in the Oracle Database. You can add privileges to a role and then grant the role to a user or to another role. Once granted to a user, roles with the associated privileges are active as soon as the user has successfully authenticated to the database.</p>
<p><strong>Proxy Authentication (PA)</strong><br />
PA is supported over thin and thick JDBC connections and on the command line. Users can authenticate to the database using their own username and then proxy to another user in the database. PA is particularly useful when administrators need to connect to the application schema to perform maintenance. When Audit is enabled, audit records generated during the connection include the proxy user name, providing important information on the actual end user who performed the maintenance task.</p>
<p><strong>Enterprise User Security (EUS)</strong><br />
EUS is an Oracle Database Enterprise Edition feature and enables you to centrally manage database users across the enterprise. Enterprise users are created in Oracle Internet Directory, and can be assigned roles and privileges across various enterprise databases registered with the directory. This gives the ability to centrally manage database users and their authorizations in one central place.</p>
<p><strong>Oracle Database Vault (ODV &#8211; Database Security Option)</strong><br />
ODV is a Database Security option that reduces the risk of insider and outsider threats and addresses common compliance requirements by:<br />
&#8211; Preventing privileged users (DBA) from accessing sensitive application data<br />
&#8211; Preventing compromised privileged users accounts from being used to steal sensitive data or make unauthorized changes to databases and applications<br />
&#8211; Providing strong controls inside the database over who can do what and controls over when and how applications, data and databases can be accessed<br />
&#8211; Providing privilege analysis for all users and applications inside the database to help achieve least privilege model and make the databases and applications more secure<br />
ODV has been certified with numerous enterprise applications including E-Business Suite, PeopleSoft, Siebel, and SAP. The certification includes out-of-the-box security policies specific for each application.</p>
<p><strong>Oracle Advanced Security (OAS &#8211; Database Security Option)</strong><br />
OAS is a database security option that provides two important preventive controls to protect sensitive data at the source including database encryption (Transparent Data Encryption (TDE)) and on-the-fly redaction of display data. TDE stops would-be attackers from bypassing the database and reading sensitive information directly from storage. Data Redaction complements TDE by reducing the risk of unauthorized data exposure in applications, redacting sensitive data before it leaves the database. Together these two controls form the foundation of Oracle’s defense-in-depth, multi-layered database security solution.</p>
<p><strong>Oracle Label Security (OLS &#8211; Database Security Option)</strong><br />
OLS is a database security option and provide multi-level security capabilities within the Oracle Database. OLS provides the ability to tag data with a data label or a data classification. These data labels can be collected in label security policies. This capability allows the database to inherently know what data is sensitive and allows the sensitive data to be combined in the same table as the larger data set without compromising security.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://bluegecko.dk/how-to-secure-and-audit-unauthorized-data-access/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to find EBS technology stack component versions</title>
		<link>https://bluegecko.dk/how-to-find-ebs-technology-stack-component-versions/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-find-ebs-technology-stack-component-versions</link>
					<comments>https://bluegecko.dk/how-to-find-ebs-technology-stack-component-versions/#respond</comments>
		
		<dc:creator><![CDATA[Dimitri van de Ven]]></dc:creator>
		<pubDate>Tue, 25 Mar 2014 03:43:35 +0000</pubDate>
				<category><![CDATA[ebs]]></category>
		<category><![CDATA[Oracle Applications]]></category>
		<category><![CDATA[CONTEXT_FILE]]></category>
		<category><![CDATA[E-Business Suite]]></category>
		<category><![CDATA[EBS]]></category>
		<category><![CDATA[f60run]]></category>
		<category><![CDATA[FMW]]></category>
		<category><![CDATA[fnd_product_groups]]></category>
		<category><![CDATA[Forms]]></category>
		<category><![CDATA[httpd]]></category>
		<category><![CDATA[iAS]]></category>
		<category><![CDATA[Java Plug-in]]></category>
		<category><![CDATA[OA Framework]]></category>
		<category><![CDATA[OA.jsp]]></category>
		<category><![CDATA[R12.2]]></category>
		<category><![CDATA[rwrun]]></category>
		<category><![CDATA[TXKScript]]></category>
		<category><![CDATA[Weblogic]]></category>
		<category><![CDATA[WF_RESOURCES]]></category>
		<category><![CDATA[WF_VERSION]]></category>
		<category><![CDATA[WLS_PRODUCT_VERSION]]></category>
		<guid isPermaLink="false">http://www.bluegecko.dk/?p=3705</guid>

					<description><![CDATA[This blog shows how to find the versions of technology stack components. This include versions of Forms, iAS, Framework, JDK, OJSP, Database, etc. 1 A very good report to collect versions of technology stack components is described in MOS article 601736.1. Below an example of how to run this report on unix/linux &#160; Logon the [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>This blog shows how to find the versions of technology stack components. This include versions of Forms, iAS, Framework, JDK, OJSP, Database, etc.</p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" width="45"><strong> 1</strong></td>
<td valign="top" width="607"><strong>A very good report to collect versions of technology stack components is described in <a title="MOS article 601736.1" href="https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-state=9zm5ggq60_9&amp;amp;_afrLoop=337077133347109">MOS article 601736.1</a>. Below an example of how to run this report on unix/linux</strong><br />
&nbsp;</p>
<p><strong><strong><strong></strong></strong></strong><strong><strong></strong></strong>Logon the Applications Middle-tier as the Application owner, using a terminal emulator (E.g. Putty).<br />
Set the correct environment variables and run next perl command:</p>
<p>perl $FND_TOP/patch/115/bin/TXKScript.pl -script=$FND_TOP/patch/115/bin/txkInventory.pl -txktop=$APPLTMP -contextfile=$CONTEXT_FILE -appspass=&lt;apps password&gt; -outfile=$APPLTMP/Report_App_Inventory.html</td>
</tr>
<tr>
<td valign="top" width="45"><strong>2</strong></td>
<td valign="top" width="607"><strong>How to find E-Business Suite Version:</strong>&nbsp;</p>
<p>Connect to the database with sqlplus as user apps and run next query:</p>
<p>SQL&gt; select release_name from apps.fnd_product_groups;</td>
</tr>
<tr>
<td valign="top" width="45"><strong>3</strong></td>
<td valign="top" width="607"><strong>How to find the Workflow Version:</strong>&nbsp;</p>
<p>Connect to the database with sqlplus as user apps and run next query:</p>
<p>SQL&gt; select distinct TEXT Version from WF_RESOURCES where NAME = &#8216;WF_VERSION&#8217;;</td>
</tr>
<tr>
<td valign="top" width="45"><strong>4</strong></td>
<td valign="top" width="607"><strong>How to find the Web Server or Application Server version:</strong>&nbsp;</p>
<p>Logon the Applications Middle-tier as the Application owner, using a terminal emulator (E.g. Putty).<br />
Set the correct environment variables and run next command:</p>
<p>$IAS_ORACLE_HOME/Apache/Apache/bin/httpd -version</td>
</tr>
<tr>
<td valign="top" width="45"><strong>5</strong></td>
<td valign="top" width="607"><strong>How to find the Forms &amp; Reports version in EBS 11i</strong>&nbsp;</p>
<p><strong> </strong><strong></strong>Logon the Applications Middle-tier as the Application owner, using a terminal emulator (E.g. Putty).<br />
Set the correct environment variables and run next command:</p>
<p>$ORACLE_HOME/bin/f60run | grep Version | grep Forms</td>
</tr>
<tr>
<td valign="top" width="45"><strong>6</strong></td>
<td valign="top" width="607"><strong>How to find the Forms &amp; Reports version in EBS R12</strong>&nbsp;</p>
<p><strong> </strong><strong></strong>Logon the Applications Middle-tier as the Application owner, using a terminal emulator (E.g. Putty).<br />
Set the correct environment variables and run next command:</p>
<p>$ORACLE_HOME/bin/rwrun | grep Release</td>
</tr>
<tr>
<td valign="top" width="45"><strong>7</strong></td>
<td valign="top" width="607"><strong>How to find the Jinitiator version:</strong>&nbsp;</p>
<p><strong> </strong><strong></strong>Logon the Applications Middle-tier as the Application owner, using a terminal emulator (E.g. Putty).<br />
Set the correct environment variables and run next command:</p>
<p>grep jinit_ver_comma $CONTEXT_FILE</td>
</tr>
<tr>
<td valign="top" width="45"><strong>8</strong></td>
<td valign="top" width="607"><strong>How to find the Oracle Java Plug-in version:</strong>&nbsp;</p>
<p><strong> </strong><strong></strong>Logon the Applications Middle-tier as the Application owner, using a terminal emulator (E.g. Putty).<br />
Set the correct environment variables and run next command:</p>
<p>grep plugin $CONTEXT_FILE</td>
</tr>
<tr>
<td valign="top" width="45"><strong>9</strong></td>
<td valign="top" width="607"><strong>How to find the OA Framework Version (11i only):</strong>&nbsp;</p>
<p><strong> </strong><strong></strong>Logon the Applications Middle-tier as the Application owner, using a terminal emulator (E.g. Putty).<br />
Set the correct environment variables and run next command:</p>
<p>adident Header $FND_TOP/html/OA.jsp<br />
adident Header $OA_HTML/OA.jsp</td>
</tr>
<tr>
<td valign="top" width="45"><strong>10</strong></td>
<td valign="top" width="607"><strong>How to find the Database version:</strong>&nbsp;</p>
<p><strong> </strong><strong></strong>Connect to the database with sqlplus as sysdba and run next query:</p>
<p>SQL&gt; select * from v$version;</td>
</tr>
<tr>
<td valign="top" width="45"><strong>11</strong></td>
<td valign="top" width="607"><strong>How to find the Weblogic server version in EBS R12.2:</strong>&nbsp;</p>
<p>Logon the Applications Middle-tier as the Application owner, using a terminal emulator (E.g. Putty).<br />
Set the correct environment variables and run next command:</p>
<p>cat $FMW_HOME/wlserver_10.3/.product.properties | grep WLS_PRODUCT_VERSION</td>
</tr>
<tr>
<td valign="top" width="45"><strong>12</strong></td>
<td valign="top" width="607"><strong>How to find the Fusion Middle Ware (FMW) version in EBS R12.2</strong>&nbsp;</p>
<p>Logon the Applications Middle-tier as the Application owner, using a terminal emulator (E.g. Putty).</p>
<p>Set the correct environment variables.<br />
Set the correct ORACLE_HOME variable:<br />
E.g. export ORACLE_HOME=/u001/oracle/R122/FMW_Home/Oracle_EBS-app1</p>
<p>Run next command:<br />
$ORACLE_HOME/OPatch/opatch lsinventory</td>
</tr>
</tbody>
</table>
]]></content:encoded>
					
					<wfw:commentRss>https://bluegecko.dk/how-to-find-ebs-technology-stack-component-versions/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Indkaldelse til ordinær generalforsamling i Danish Oracle User Group</title>
		<link>https://bluegecko.dk/indkaldelse-til-ordinaer-generalforsamling-i-danish-oracle-user-group/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=indkaldelse-til-ordinaer-generalforsamling-i-danish-oracle-user-group</link>
					<comments>https://bluegecko.dk/indkaldelse-til-ordinaer-generalforsamling-i-danish-oracle-user-group/#respond</comments>
		
		<dc:creator><![CDATA[Dimitri van de Ven]]></dc:creator>
		<pubDate>Mon, 10 Feb 2014 05:57:29 +0000</pubDate>
				<category><![CDATA[News & Events]]></category>
		<category><![CDATA[DOUG]]></category>
		<category><![CDATA[E-Business Suite]]></category>
		<category><![CDATA[EBS]]></category>
		<category><![CDATA[Excel4apps]]></category>
		<category><![CDATA[More4apps]]></category>
		<category><![CDATA[oracle user group]]></category>
		<guid isPermaLink="false">http://www.bluegecko.dk/?p=3669</guid>

					<description><![CDATA[Kære DOUG medlemmer, Indkaldelse til ordinær generalforsamling i Danish Oracle User Group tirsdag 11. marts 2014 kl. 14.30. Generalforsamlingen afholdes hos Oracle, Metalbuen 66, Ballerup. Kom og fortæl bestyrelsen hvilke emner, DOUG skal beskæftige sig med. Efter generalforsamlingen bliver der en præsentation: &#8220;Technology That Fits&#8221;. Man er velkommen til kun at deltage i dele af [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><strong>Kære DOUG medlemmer,</strong></p>
<p>Indkaldelse til ordinær generalforsamling i Danish Oracle User Group tirsdag 11. marts 2014 kl. 14.30.<br />
Generalforsamlingen afholdes hos Oracle, Metalbuen 66, Ballerup.</p>
<p>Kom og fortæl bestyrelsen hvilke emner, DOUG skal beskæftige sig med.</p>
<p>Efter generalforsamlingen bliver der en præsentation: &#8220;Technology That Fits&#8221;. Man er velkommen til kun at deltage i dele af programmet.</p>
<p>Af hensyn til bestilling af forplejning, beder vi dig tilmelde dig på <a href="mailto:tilmeld@doug.dk"><strong>tilmeld@doug.dk</strong></a> senest tirsdag 4. marts.</p>
<p>Dagsorden ifølge vedtægterne:<br />
1. Valg af dirigent<br />
2. Beretning fra formanden<br />
3. Beretning(er) fra evt. udvalg/grupper<br />
4. Fremlæggelse af regnskab<br />
5. Forslag fra bestyrelsen<br />
&#8211; Det kommende års budget<br />
&#8211; Fastlæggelse af kontingent<br />
6. Behandling af indkomne forslag<br />
7. Valg af bestyrelse<br />
8. Valg af revisorer<br />
9. Eventuelt</p>
<p>Ad pkt 5:<br />
Bestyrelsen indstiller til generalforsamlingen at kontingentet fastholdes på nuværende niveau.</p>
<p>Ad pkt 6:<br />
Forslag, der ønskes behandlet på generalforsamlingen, skal være formanden i hænde senest otte dage før generalforsamlingen.<br />
Forslag kan sendes til <strong><a href="mailto:tilmeld@doug.dk">tilmeld@doug.dk</a></strong>. Indkomne forslag vil blive gjort tilgængelige på <a href="http://www.doug.dk" target="_blank">DOUG&#8217;s hjemmeside</a>.</p>
<p>Ad pkt 7:<br />
Efter vedtægterne træder bestyrelsen tilbage.<br />
Følgende er villige til at modtage genvalg:<br />
&#8211; Charlotte Hansen<br />
&#8211; Tove Horn<br />
&#8211; Ken Holmslykke<br />
&#8211; Morten Egan<br />
&#8211; Sten Vesterli<br />
&#8211; Dimitri van de Ven</p>
<p>Med venlig hilsen,<br />
Bestyrelsen</p>
]]></content:encoded>
					
					<wfw:commentRss>https://bluegecko.dk/indkaldelse-til-ordinaer-generalforsamling-i-danish-oracle-user-group/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Oracle12c R1 RDBMS New Features: Upgrading to 12cR1 (pluggable) database</title>
		<link>https://bluegecko.dk/oracle12c-r1-rdbms-new-features-upgrading-to-12cr1-pluggable-database-data-pump-full-transportable-exportimport-method/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=oracle12c-r1-rdbms-new-features-upgrading-to-12cr1-pluggable-database-data-pump-full-transportable-exportimport-method</link>
					<comments>https://bluegecko.dk/oracle12c-r1-rdbms-new-features-upgrading-to-12cr1-pluggable-database-data-pump-full-transportable-exportimport-method/#respond</comments>
		
		<dc:creator><![CDATA[lbvanting]]></dc:creator>
		<pubDate>Tue, 28 Jan 2014 06:40:38 +0000</pubDate>
				<category><![CDATA[Oracle]]></category>
		<guid isPermaLink="false">http://www.bluegecko.dk/?p=3654</guid>

					<description><![CDATA[When upgrading to 12cR1 (pluggable and non-CDB) database we can choose between the following methods: 1) Upgrade the pre-12cR1 database to 12cR1 using DBUA or command-line/upgrade script (catctl.pl); for some releases a Direct Upgrade to 12cR1 is possible (10.2.0.5, 11.1.0.7 and &#62;=11.2.0.2). Notice that in 12cR1 the upgrade can now run in parallel to speed-up [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>When upgrading to 12cR1 (pluggable and non-CDB) database we can choose between the following methods:<br />
1) Upgrade the pre-12cR1 database to 12cR1 using DBUA or command-line/upgrade script (catctl.pl); for some releases a Direct Upgrade to 12cR1 is possible (10.2.0.5, 11.1.0.7 and &gt;=11.2.0.2). Notice that in 12cR1 the upgrade can now run in parallel to speed-up the process. If the target database is a pluggable database, then simply plug-in the upgraded non-CDB database into an existing CDB (if no restrictions/limitations exist).</p>
<p>2) Use export/import, either Data Pump, possibly in combination with Transportable Tablespaces (TTS), or use the classical &#8220;exp/imp&#8221; utilities. If the database to be upgraded is at least 11.2.0.3 (and Enterprise Edition), then one option could be to perform Data Pump Full Transportable Export/Import. For example on the 12cR1 target-database simply perform the import using the parameters NETWORK_LINK=, FULL=Y, TRANSPORTABLE=ALWAYS, TRANSPORT_DATAFILES= and for pre-12cR1 source database specify VERSION=12.</p>
<p>3) Use GoldenGate replication.<br />
Setup Golden Gate on the pre-12c database and the 12cR1 target-database (either non-CDB or CDB) and start the data replication.<br />
When the 12cR1 database has catched-up with the pre-12c database, you can perform fail-over.</p>
<p>The options 1 and 2 will result in some downtime, for option 2 this can be of a longer period of time depending of the size of the database to export/import.<br />
For option 3 the downtime can be eliminated for the database tier.</p>
<p>In the following we&#8217;ll take a look at option 2, where we&#8217;ll upgrade an 11.2.0.3 database (&#8220;orcl&#8221;) to a 12cR1 pluggable database (&#8220;LBV11203&#8221; in the CDB &#8220;CDB121A&#8221;). We&#8217;ll demonstrate the Data Pump Full Transportable Export/Import method and we&#8217;ll simply initiate the &#8220;impdp&#8221; using NETWORK_LINK on the 12cR1 database &#8220;LBV11203&#8221;.</p>
<p>First on the 11.2.0.3 &#8220;orcl&#8221; source-database perform the following steps from SQL*Plus (we&#8217;ll be using the SYSTEM user for the export/import):<br />
sqlplus / as sysdba</p>
<p>SQL*Plus: Release 11.2.0.3.0 Production on Mon Dec 2 17:54:55 2013</p>
<p>Copyright (c) 1982, 2011, Oracle. All rights reserved.</p>
<p>Connected to:<br />
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 &#8211; 64bit Production<br />
With the Partitioning option</p>
<p>SQL&gt; grant DATAPUMP_EXP_FULL_DATABASE to system;</p>
<p>Grant succeeded.</p>
<p>SQL&gt; select file_name from dba_data_files;</p>
<p>FILE_NAME<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
/u02/oradata/orcl/users_01.dbf<br />
/u02/oradata/orcl/undotbs_01.dbf<br />
/u02/oradata/orcl/sysaux_01.dbf<br />
/u02/oradata/orcl/system_01.dbf<br />
/u02/oradata/orcl/users2_01.dbf</p>
<p>We&#8217;re going to transfer the tablespaces USERS and USERS2.</p>
<p>SQL&gt; conn scott/tiger<br />
Connected.</p>
<p>SQL&gt; select * from tab;</p>
<p>TNAME TABTYPE CLUSTERID<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; &#8212;&#8212;- &#8212;&#8212;&#8212;-<br />
BONUS TABLE<br />
DEPT TABLE<br />
EMP TABLE<br />
SALGRADE TABLE</p>
<p>Now place the tablespaces USERS and USERS2 in read-only mode:</p>
<p>SQL&gt; conn / as sysdba</p>
<p>SQL&gt; alter tablespace users read only;</p>
<p>Tablespace altered.</p>
<p>SQL&gt; alter tablespace users2 read only;</p>
<p>Tablespace altered.</p>
<p>NOTICE: If DB instance is started READ ONLY, then the following error occurrs during &#8220;impdp&#8221;:<br />
ORA-02047: cannot join the distributed transaction in progress</p>
<p>Now prepare the pluggable target-database &#8220;LBV11203&#8221; in the &#8220;CDB121A&#8221; database.<br />
Modify Oracle Net (tnsnames.ora) to contain source database &#8220;orcl&#8221; and verify you can pin/connect to it from the 12cR1 environment.</p>
<p>Make new PDB called &#8220;LBV11203&#8221; to hold the 11.2.0.3 database, we&#8217;ll clone it from en existing PDB, namely &#8220;LBV01&#8221;, so we connect to SQL*Plus as SYSDBA:</p>
<p>sqlplus / as sysdba</p>
<p>SQL*Plus: Release 12.1.0.1.0 Production on Mon Dec 2 18:02:07 2013</p>
<p>Copyright (c) 1982, 2013, Oracle. All rights reserved.</p>
<p>Connected to:<br />
Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 &#8211; 64bit Production<br />
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options</p>
<p>SQL&gt; select name, open_mode, con_id from v$pdbs;</p>
<p>NAME OPEN_MODE CON_ID<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; &#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;-<br />
PDB$SEED READ ONLY 2<br />
PDB MOUNTED 3<br />
LBV01 READ WRITE 4<br />
LBV02 MOUNTED 5</p>
<p>SQL&gt; alter pluggable database LBV01 close;</p>
<p>Pluggable database altered.</p>
<p>SQL&gt; alter pluggable database LBV01 open read only;</p>
<p>Pluggable database altered.</p>
<p>SQL&gt; alter system set db_create_file_dest=&#8217;/u02/app/oracle/oradata&#8217; scope=both;</p>
<p>System altered.</p>
<p>SQL&gt; create pluggable database LBV11203 from LBV01;</p>
<p>Pluggable database created.</p>
<p>SQL&gt; alter pluggable database LBV01 close;</p>
<p>Pluggable database altered.</p>
<p>SQL&gt; select name, open_mode, con_id from v$pdbs;</p>
<p>NAME OPEN_MODE CON_ID<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; &#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;-<br />
PDB$SEED READ ONLY 2<br />
PDB MOUNTED 3<br />
LBV01 MOUNTED 4<br />
LBV02 MOUNTED 5<br />
LBV11203 MOUNTED 6</p>
<p>Now let&#8217;s connect to the freshly created PDB &#8220;LBV11203&#8221; and perform startup using SQL*Plus (after the clone the new database is not started/OPEN):<br />
sqlplus sys@LBV11203 as sysdba</p>
<p>SQL*Plus: Release 12.1.0.1.0 Production on Mon Dec 2 18:18:30 2013</p>
<p>Copyright (c) 1982, 2013, Oracle. All rights reserved.</p>
<p>Enter password:</p>
<p>Connected to:<br />
Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 &#8211; 64bit Production<br />
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options</p>
<p>SQL&gt; alter database open;</p>
<p>Database altered.</p>
<p>SQL&gt; select name, open_mode, con_id from v$pdbs;</p>
<p>NAME OPEN_MODE CON_ID<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; &#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;-<br />
LBV11203 READ WRITE 6</p>
<p>SQL&gt; grant DATAPUMP_IMP_FULL_DATABASE to SYSTEM;</p>
<p>Grant succeeded.</p>
<p>SQL&gt; CREATE OR REPLACE DIRECTORY FULL_TRANSPORT_DIR as &#8216;/u02/datapump&#8217;;</p>
<p>Directory created.</p>
<p>SQL&gt; grant read,write on directory FULL_TRANSPORT_DIR to DATAPUMP_IMP_FULL_DATABASE;</p>
<p>Grant succeeded.</p>
<p>SQL&gt; create public database link ORCL connect to system identified by manager using &#8216;(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SID=orcl)))&#8217;;</p>
<p>SQL&gt; select username from dba_users order by 1;</p>
<p>USERNAME<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
ANONYMOUS<br />
APEX_040200<br />
APEX_PUBLIC_USER<br />
APPQOSSYS<br />
AUDSYS<br />
CTXSYS<br />
DBSNMP<br />
DIP<br />
DVF<br />
DVSYS<br />
FLOWS_FILES<br />
GSMADMIN_INTERNAL<br />
GSMCATUSER<br />
GSMUSER<br />
LBACSYS<br />
LBV01DBA<br />
MDDATA<br />
MDSYS<br />
OJVMSYS<br />
OLAPSYS<br />
ORACLE_OCM<br />
ORDDATA<br />
ORDPLUGINS<br />
ORDSYS<br />
OUTLN<br />
SI_INFORMTN_SCHEMA<br />
SPATIAL_CSW_ADMIN_USR<br />
SPATIAL_WFS_ADMIN_USR<br />
SYS<br />
SYSBACKUP<br />
SYSDG<br />
SYSKM<br />
SYSTEM<br />
WMSYS<br />
XDB<br />
XS$NULL</p>
<p>36 rows selected.</p>
<p>As we see there&#8217;s no SCOTT user present in &#8220;LBV11203&#8221;.</p>
<p>Let&#8217;s connect to the PDB and test the database link we&#8217;ve created:<br />
sqlplus system/manager@LBV11203</p>
<p>SQL*Plus: Release 12.1.0.1.0 Production on Thu Nov 28 15:12:39 2013</p>
<p>Copyright (c) 1982, 2013, Oracle. All rights reserved.</p>
<p>Connected to:<br />
Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 &#8211; 64bit Production<br />
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options</p>
<p>SQL&gt; show con_name</p>
<p>CON_NAME<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
LBV11203</p>
<p>SQL&gt; show user<br />
USER is &#8220;SYSTEM&#8221;</p>
<p>SQL&gt; select * from v$instance@orcl;</p>
<p>INSTANCE_NUMBER INSTANCE_NAME<br />
&#8212;&#8212;&#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8212;-<br />
HOST_NAME<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
VERSION STARTUP_T STATUS PAR THREAD# ARCHIVE LOG_SWITCH_WAIT<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8212; &#8212; &#8212;&#8212;&#8212;- &#8212;&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;<br />
LOGINS SHU DATABASE_STATUS INSTANCE_ROLE ACTIVE_ST BLO<br />
&#8212;&#8212;&#8212;- &#8212; &#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212; &#8212;&#8212;&#8212; &#8212;<br />
1 orcl<br />
linux-4<br />
11.2.0.3.0 28-NOV-13 OPEN NO 1 STARTED<br />
ALLOWED NO ACTIVE PRIMARY_INSTANCE NORMAL NO</p>
<p>It works fine &#8211; from the 12cR1 pluggable database &#8220;LBV11203&#8221; we can access the 11.2.0.3 database &#8220;orcl&#8221;.<br />
Now we copy the tablespace datafiles for USERS and USERS2 tablespaces to the 12cR1 database location (/u02/app/oracle/oradata/LBV11203):</p>
<p>cp /u02/oradata/orcl/users_01.dbf /u02/app/oracle/oradata/LBV11203<br />
cp /u02/oradata/orcl/users2_01.dbf /u02/app/oracle/oradata/LBV11203</p>
<p>We&#8217;re now ready to start the &#8220;impdp&#8221; to begin transporting the data accross the NETWORK_LINK.<br />
Notice that the impdp parameter TRANSPORT_DATAFILES contains the datafile-names fully qualified for the new location in the 12cR1 database &#8220;LBV11203&#8221;.</p>
<p>In the 12cR1 environment we start &#8220;impdp&#8221; as follows:<br />
impdp system/manager@LBV11203 FULL=Y VERSION=12 TRANSPORTABLE=ALWAYS DIRECTORY=FULL_TRANSPORT_DIR TRANSPORT_DATAFILES=/u02/app/oracle/oradata/LBV11203/users_01.dbf,/u02/app/oracle/oradata/LBV11203/users2_01.dbf NETWORK_LINK=orcl</p>
<p>Import: Release 12.1.0.1.0 &#8211; Production on Fri Nov 29 15:47:46 2013</p>
<p>Copyright (c) 1982, 2013, Oracle and/or its affiliates. All rights reserved.</p>
<p>Connected to: Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 &#8211; 64bit Production<br />
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options<br />
FLASHBACK automatically enabled to preserve database integrity.<br />
Starting &#8220;SYSTEM&#8221;.&#8221;SYS_IMPORT_FULL_01&#8243;: system/********@LBV11203 FULL=Y VERSION=12 TRANSPORTABLE=ALWAYS DIRECTORY=FULL_TRANSPORT_DIR TRANSPORT_DATAFILES=/u02/app/oracle/oradata/LBV11203/users_01.dbf,/u02/app/oracle/oradata/LBV11203/users2_01.dbf NETWORK_LINK=orcl<br />
Source timezone version is +00:00 and target timezone version is -07:00.<br />
Estimate in progress using BLOCKS method&#8230;<br />
Processing object type DATABASE_EXPORT/PLUGTS_FULL/FULL/PLUGTS_TABLESPACE<br />
Processing object type DATABASE_EXPORT/PLUGTS_FULL/PLUGTS_BLK<br />
Processing object type DATABASE_EXPORT/EARLY_OPTIONS/TABLE_DATA<br />
Processing object type DATABASE_EXPORT/EARLY_OPTIONS/VIEWS_AS_TABLES/TABLE_DATA<br />
Processing object type DATABASE_EXPORT/NORMAL_OPTIONS/TABLE_DATA<br />
&#8230;<br />
ORA-39082: Object type PACKAGE BODY:&#8221;SYSMAN&#8221;.&#8221;MGMT_TIME_SYNC&#8221; created with compilation warnings<br />
ORA-39082: Object type PACKAGE BODY:&#8221;SYSMAN&#8221;.&#8221;MGMT_USER&#8221; created with compilation warnings<br />
ORA-39082: Object type PACKAGE BODY:&#8221;SYSMAN&#8221;.&#8221;MGMT_VIEW_PRIV&#8221; created with compilation warnings<br />
ORA-39082: Object type TRIGGER:&#8221;APEX_030200&#8243;.&#8221;WWV_BIU_FLOW_SESSIONS&#8221; created with compilation warnings<br />
ORA-39082: Object type TRIGGER:&#8221;SYSMAN&#8221;.&#8221;MGMT_CREDS_INS_UPD&#8221; created with compilation warnings<br />
Job &#8220;SYSTEM&#8221;.&#8221;SYS_IMPORT_FULL_01&#8243; completed with 383 error(s) at Fri Nov 29 16:17:14 2013 elapsed 0 00:29:27</p>
<p>Errors due to object existence as well as &#8220;ORA-65040: operation not allowed from within a pluggable database&#8221; can be ignored.<br />
Let&#8217;s check what we&#8217;ve imported into &#8220;LBV11203&#8221;, checking the tablespace-datafiles and the users:<br />
sqlplus sys@LBV11203 as sysdba</p>
<p>SQL&gt; select file_name from dba_data_files;</p>
<p>FILE_NAME<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
/u02/app/oracle/oradata/CDB121A/EC5267F2B34A6543E045000000000001/datafile/o1_mf_system_99k84hd8_.dbf<br />
/u02/app/oracle/oradata/CDB121A/EC5267F2B34A6543E045000000000001/datafile/o1_mf_sysaux_99k84hpy_.dbf<br />
/u02/app/oracle/oradata/LBV11203/users_01.dbf<br />
/u02/app/oracle/oradata/LBV11203/users2_01.dbf</p>
<p>SQL&gt; select username from dba_users order by 1;</p>
<p>USERNAME<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
ANONYMOUS<br />
APEX_030200<br />
APEX_040200<br />
APEX_PUBLIC_USER<br />
APPQOSSYS<br />
AUDSYS<br />
CTXSYS<br />
DBSNMP<br />
DIP<br />
DVF<br />
DVSYS<br />
FLOWS_FILES<br />
GSMADMIN_INTERNAL<br />
GSMCATUSER<br />
GSMUSER<br />
LBACSYS<br />
LBV01DBA<br />
MDDATA<br />
MDSYS<br />
MGMT_VIEW<br />
OJVMSYS<br />
OLAPSYS<br />
ORACLE_OCM<br />
ORDDATA<br />
ORDPLUGINS<br />
ORDSYS<br />
OUTLN<br />
OWBSYS<br />
OWBSYS_AUDIT<br />
SCOTT<br />
SI_INFORMTN_SCHEMA<br />
SPATIAL_CSW_ADMIN_USR<br />
SPATIAL_WFS_ADMIN_USR<br />
SYS<br />
SYSBACKUP<br />
SYSDG<br />
SYSKM<br />
SYSMAN<br />
SYSTEM<br />
WMSYS<br />
XDB<br />
XS$NULL</p>
<p>42 rows selected.</p>
<p>Now we see that the SCOTT user is present and from the below query we see that component status in DBA_REGISTRY is &#8220;VALID&#8221;:</p>
<p>SQL&gt; select comp_name,version,status from dba_registry;</p>
<p>COMP_NAME VERSION STATUS<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
Oracle Database Vault 12.1.0.1.0 VALID<br />
Oracle Application Express 4.2.0.00.27 VALID<br />
Oracle Label Security 12.1.0.1.0 VALID<br />
Spatial 12.1.0.1.0 VALID<br />
Oracle Multimedia 12.1.0.1.0 VALID<br />
Oracle Text 12.1.0.1.0 VALID<br />
Oracle Workspace Manager 12.1.0.1.0 VALID<br />
Oracle XML Database 12.1.0.1.0 VALID<br />
Oracle Database Catalog Views 12.1.0.1.0 VALID<br />
Oracle Database Packages and Types 12.1.0.1.0 VALID<br />
JServer JAVA Virtual Machine 12.1.0.1.0 VALID<br />
Oracle XDK 12.1.0.1.0 VALID<br />
Oracle Database Java Packages 12.1.0.1.0 VALID<br />
OLAP Analytic Workspace 12.1.0.1.0 VALID<br />
Oracle OLAP API 12.1.0.1.0 VALID<br />
Oracle Real Application Clusters 12.1.0.1.0 OPTION OFF</p>
<p>16 rows selected.</p>
<p>Now we can drop the PUBLIC database link &#8220;orcl&#8221; used by &#8220;impdp&#8221; and try to connect as SCOTT to access the transferred tables/data:<br />
SQL&gt; drop public database link ORCL;</p>
<p>Database link dropped.</p>
<p>SQL&gt; conn scott/tiger@LBV11203<br />
Connected.<br />
SQL&gt; col tname format a20<br />
SQL&gt; select * from tab;</p>
<p>TNAME TABTYPE CLUSTERID<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;- &#8212;&#8212;&#8212;-<br />
DEPT TABLE<br />
EMP TABLE<br />
BONUS TABLE<br />
SALGRADE TABLE</p>
<p>SQL&gt; select count(*) from emp;</p>
<p>COUNT(*)<br />
&#8212;&#8212;&#8212;-<br />
14</p>
<p>Now post-steps/sanity checks can be performed to verify that the application data has been transferred correctly.<br />
And you can then switch the application/users to the 12cR1 database.</p>
<p>Conclusion:<br />
We&#8217;ve demonstrated an upgrade from 11.2.0.3 to 12.1.0.1 pluggable database using the the Datapump Full Transportable Export/Import method.<br />
If you can afford the downtime this is a feasable method, for example for cross-platform/endianess migrations.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://bluegecko.dk/oracle12c-r1-rdbms-new-features-upgrading-to-12cr1-pluggable-database-data-pump-full-transportable-exportimport-method/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>EBS R12.1.1 upgrade &#8211; Seen errors when applying upgrade patch driver u6678700.drv</title>
		<link>https://bluegecko.dk/ebs-r12-1-1-upgrade-seen-errors-when-applying-upgrade-patch-driver-u6678700-drv/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=ebs-r12-1-1-upgrade-seen-errors-when-applying-upgrade-patch-driver-u6678700-drv</link>
					<comments>https://bluegecko.dk/ebs-r12-1-1-upgrade-seen-errors-when-applying-upgrade-patch-driver-u6678700-drv/#respond</comments>
		
		<dc:creator><![CDATA[Dimitri van de Ven]]></dc:creator>
		<pubDate>Mon, 06 Jan 2014 06:58:44 +0000</pubDate>
				<category><![CDATA[ebs]]></category>
		<category><![CDATA[Oracle Applications]]></category>
		<category><![CDATA[1054417.1]]></category>
		<category><![CDATA[1061488.1]]></category>
		<category><![CDATA[1083981.1]]></category>
		<category><![CDATA[1179501.1]]></category>
		<category><![CDATA[12.1.1 upgrade]]></category>
		<category><![CDATA[1274012.1]]></category>
		<category><![CDATA[1281478.1]]></category>
		<category><![CDATA[1284055.1]]></category>
		<category><![CDATA[1286033.1]]></category>
		<category><![CDATA[1322144.1]]></category>
		<category><![CDATA[1329530.1]]></category>
		<category><![CDATA[1463373.1]]></category>
		<category><![CDATA[1570669.1]]></category>
		<category><![CDATA[398412.1]]></category>
		<category><![CDATA[437760.1]]></category>
		<category><![CDATA[471851.1]]></category>
		<category><![CDATA[6678700]]></category>
		<category><![CDATA[744973.1]]></category>
		<category><![CDATA[761569.1]]></category>
		<category><![CDATA[841705.1]]></category>
		<category><![CDATA[847687.1]]></category>
		<category><![CDATA[859556.1]]></category>
		<category><![CDATA[ademusr.sql]]></category>
		<category><![CDATA[aiumab]]></category>
		<category><![CDATA[amviccn.sql]]></category>
		<category><![CDATA[APPLSYS.FND_STATTAB]]></category>
		<category><![CDATA[APPLSYS.WF_MESSAGE_ATTRIBUTES_TL_U2]]></category>
		<category><![CDATA[APPS.AD_MV]]></category>
		<category><![CDATA[APPS.FND_GLOBAL]]></category>
		<category><![CDATA[APPS.JTF_PF_CONV_PKG]]></category>
		<category><![CDATA[AR_REV_REC_Q]]></category>
		<category><![CDATA[armquet.sql]]></category>
		<category><![CDATA[biv_b_age_h_sum_mv.xdf]]></category>
		<category><![CDATA[CS_KB_SOLN_CATEGORIES_VL]]></category>
		<category><![CDATA[cskbcat.ldt]]></category>
		<category><![CDATA[CSM_UTIL_PKG]]></category>
		<category><![CDATA[CSM_UTIL_PKG.LOG]]></category>
		<category><![CDATA[csmidxdel.sql]]></category>
		<category><![CDATA[cstfifo.odf]]></category>
		<category><![CDATA[czhist.sql]]></category>
		<category><![CDATA[E-Business Suite]]></category>
		<category><![CDATA[EGOSILDU.sql]]></category>
		<category><![CDATA[fem_bal_nacc_hier_l2_mv.xdf]]></category>
		<category><![CDATA[FEM_DIS_NAT_ACCTS_HIER_B]]></category>
		<category><![CDATA[ibecitem.ldt]]></category>
		<category><![CDATA[IGIGITRA.wft]]></category>
		<category><![CDATA[ircntf.wft]]></category>
		<category><![CDATA[jtfDiagReportMig.sql]]></category>
		<category><![CDATA[jtfpfstart.sql]]></category>
		<category><![CDATA[MSC_ITEM_HIERARCHY_MV]]></category>
		<category><![CDATA[MSC_ITEM_HIERARCHY_MV.xdf]]></category>
		<category><![CDATA[MSC_RESOURCE_HIERARCHY_MV]]></category>
		<category><![CDATA[MSC_RESOURCE_HIERARCHY_MV.xdf]]></category>
		<category><![CDATA[MSDODPCODE.sql]]></category>
		<category><![CDATA[ODCIINDEXCREATE]]></category>
		<category><![CDATA[okladtxm.sql]]></category>
		<category><![CDATA[OKLIAADD.wft]]></category>
		<category><![CDATA[oklresp.ldt]]></category>
		<category><![CDATA[OLAPSYS.CWM2_OLAP_CUBE]]></category>
		<category><![CDATA[OLAPSYS.CWM2_OLAP_METADATA_REFRESH]]></category>
		<category><![CDATA[ORA-00001]]></category>
		<category><![CDATA[ORA-00955]]></category>
		<category><![CDATA[ORA-00979]]></category>
		<category><![CDATA[ORA-01031]]></category>
		<category><![CDATA[ORA-01403]]></category>
		<category><![CDATA[ORA-01422]]></category>
		<category><![CDATA[ORA-02149]]></category>
		<category><![CDATA[ORA-02289]]></category>
		<category><![CDATA[ORA-04065]]></category>
		<category><![CDATA[ORA-04068]]></category>
		<category><![CDATA[ORA-06550]]></category>
		<category><![CDATA[ORA-20000]]></category>
		<category><![CDATA[ORA-20101]]></category>
		<category><![CDATA[ORA-29855]]></category>
		<category><![CDATA[ORA-29861]]></category>
		<category><![CDATA[ORA-33292]]></category>
		<category><![CDATA[ORA-54015]]></category>
		<category><![CDATA[p001ncpls.sql]]></category>
		<category><![CDATA[p002ncpls.sql]]></category>
		<category><![CDATA[PAPWPARN.wft]]></category>
		<category><![CDATA[pechktsk.sql]]></category>
		<category><![CDATA[PLS-00201]]></category>
		<category><![CDATA[PLS-00904]]></category>
		<category><![CDATA[PLS-00905]]></category>
		<category><![CDATA[PO_VENDORS_OBS_F1.xdf]]></category>
		<category><![CDATA[rgcolset.ldt]]></category>
		<category><![CDATA[WF_DEFERRED]]></category>
		<category><![CDATA[wfstartq.sql]]></category>
		<category><![CDATA[WFSTD]]></category>
		<category><![CDATA[XNP.XNP_OUT_MSG_Q]]></category>
		<category><![CDATA[XNPQFIX.sql]]></category>
		<category><![CDATA[zpbremcwm.sql]]></category>
		<guid isPermaLink="false">http://www.bluegecko.dk/?p=3593</guid>

					<description><![CDATA[Upgrading from E-Business Suite 11i to R12 is a major step and some errors are to be expected during applying the English American patch driver, u6678700.drv. Some of the errors, seen during several upgrades on different customer sites, are listed below.   Seen errors during applying of upgrade patch driver, u6678700.drv 1 Unable to allocate [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Upgrading from E-Business Suite 11i to R12 is a major step and some errors are to be expected during applying the English American patch driver, u6678700.drv. Some of the errors, seen during several upgrades on different customer sites, are listed below.</p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr style="background-color: #779293;">
<td valign="top" width="45"><span style="color: #ffffff;"><b> </b></span></td>
<td valign="top" width="607"><span style="color: #ffffff;"><b>Seen errors during applying of upgrade patch driver, u6678700.drv</b></span></td>
</tr>
<tr style="background-color: #bbe5e6;">
<td valign="top" width="45"><b>1</b></td>
<td valign="top" width="607"><strong><strong><strong>Unable to allocate memory in procedure aiumab().</strong></strong></strong>&nbsp;</p>
<p><strong><strong></strong></strong><strong style="line-height: 1.5em;">Error message:<br />
</strong><span style="line-height: 1.5em;">Unable to allocate memory in procedure aiumab().</span></p>
<p><strong style="line-height: 1.5em;">Solution:<br />
</strong><span style="line-height: 1.5em;"><span style="line-height: 1.5em;"># Export next environment variable and start adpatch again.<br />
</span></span><span style="line-height: 1.5em;"><span style="line-height: 1.5em;">export LDR_CNTRL=MAXDATA=0x40000000</span></span></p>
<p><strong style="line-height: 1.5em;">Reference:<br />
</strong><em style="line-height: 1.5em;">Oracle E-Business Suite Installation and Upgrade Notes Release 12 (12.1.1) for IBM AIX on Power Systems (64-bit) (Doc ID 761569.1)</em><span style="line-height: 1.5em;">See under &#8220;KNOWN ISSUES =&gt; Applying large Applications Patches&#8221;.</span></td>
</tr>
<tr style="background-color: #def2f3;">
<td valign="top" width="45"><b>2</b></td>
<td valign="top" width="607"><strong>amviccn.sql fails with: ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine</strong>&nbsp;</p>
<p><strong>Error message:</strong><br />
FAILED: file amviccn.sql on worker  1.<br />
<span style="line-height: 1.5em;"><br />
sqlplus -s APPS/***** @/&lt;middle tier&gt;/apps/apps_st/appl/amv/12.0.0/patch/115/sql/amviccn.sql &amp;un_amv &amp;pw_amv<br />
</span>Connected.<br />
DECLARE<br />
*<br />
ERROR at line 1:<br />
ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine<br />
ORA-20000: Oracle Text error:<br />
DRG-00100: internal error, arguments : [51021],[drwaf.c],[1605],[],[]<br />
ORA-06512: at &#8220;CTXSYS.DRUE&#8221;, line 160<br />
ORA-06512: at &#8220;CTXSYS.TEXTINDEXMETHODS&#8221;, line 366<br />
ORA-06512: at &#8220;SYS.DBMS_SQL&#8221;, line 1053<br />
ORA-06512: at line 49</p>
<p><span style="line-height: 1.5em;"><strong>Solution:</strong><br />
</span>1. Abort the AutoPatch session of applying the u6678700.drv driver. The restore files are in place. Later on you will restart the AutoPatch session and the executable would continue where it left off.<br />
2. Shutdown the database and database listener.<br />
3. Source the RDBMS ORACLE_HOME Environment.<br />
4. Execute the script $ORACLE_HOME/appsutil/install/adlnkoh.sh (or $ORACLE_HOME/appsutil/clone/adlnkoh.sh) to relink the RDBMS executables. Reference is <a href="https://support.oracle.com/epmos/faces/DocumentDisplay?id=356878.1">note 356878.1</a>: &#8220;How to relink an Applications Installation of Release 11i and Release 12&#8221;.<br />
5. Confirm that the relink completed without any errors.<br />
<span style="line-height: 1.5em;">6. Startup the database and database listener.<br />
</span>7. From the applications terminal window, rerun adpatch. AutoPatch will identify that another session was running and will prompt you to continue where it left off. You should proceed as prompted.<br />
8. Launch adctrl and restart the failed workers.</p>
<p><strong>Reference:</strong><br />
Several Scripts Failing With A ORA-29855 Executing ODCIINDEXCREATE Routine During Upgrade To 12.1.1 (u6678700.drv) (Doc ID 1286033.1)</td>
</tr>
<tr style="background-color: #bbe5e6;">
<td valign="top" width="45">3</td>
<td valign="top" width="607"><strong>jtfDiagReportMig.sql fails with: ORA-20101: Exception while trying to migrate data from jtf_diagnostic_log to jtf_diagnostic_download_rp</strong>t&nbsp;</p>
<p><strong>Error message:</strong><br />
FAILED: file jtfDiagReportMig.sql on worker  3.</p>
<p>sqlplus -s APPS/***** @/&lt;middle tier&gt;/apps/apps_st/appl/fnd/12.0.0/patch/115/sql/jtfDiagReportMig.sql &amp;un_jtf &amp;pw_jtf &amp;un_apps &amp;pw_apps<br />
Connected.<br />
DECLARE<br />
*<br />
ERROR at line 1:<br />
ORA-20101: Exception while trying to migrate data from jtf_diagnostic_log to<br />
jtf_diagnostic_download_rpt:ORA-04063: package body &#8220;APPS.FND_GLOBAL&#8221; has errors<br />
ORA-06512: at line 21</p>
<p><strong>Solution:</strong><br />
1. Open a new shell and set the Applications environment using APPS&lt;CONTEXT_NAME&gt;.env<br />
2. adjava -ms128m -mx256m -nojit oracle.apps.fnd.odf2.FndXdfCmp apps &lt;PASS&gt; apps &lt;PASS&gt; THIN &#8220;&lt;machine.domain&gt;:&lt;PORT&gt;:&lt;SID&gt;&#8221; view $FND_TOP/patch/115/xdf/fnd_user_resp_groups.xdf $FND_TOP/patch/115/xdf/xsl<br />
3. adjava -ms128m -mx256m -nojit oracle.apps.fnd.odf2.FndXdfCmp apps &lt;PASS&gt; apps &lt;PASS&gt; THIN &#8220;&lt;machine.domain&gt;:&lt;PORT&gt;:&lt;SID&gt;&#8221; view $FND_TOP/patch/115/xdf/wf_user_role_assignments_v.xdf $FND_TOP/patch/115/xdf/xsl<br />
4. adjava -ms128m -mx256m -nojit oracle.apps.fnd.odf2.FndXdfCmp apps &lt;PASS&gt; apps &lt;PASS&gt; THIN &#8220;&lt;machine.domain&gt;:&lt;PORT&gt;:&lt;SID&gt;&#8221; view $FND_TOP/patch/115/xdf/wf_user_roles.xdf $FND_TOP/patch/115/xdf/xsl<br />
5. sqlplus apps/&lt;PASS&gt;<br />
SQL&gt;alter view fnd_user_resp_groups compile;<br />
6. Launch adctrl and restart the failed worker.</p>
<p><strong>Reference:</strong><br />
12.1.1 Upgrade fails On &#8220;Jtfdiagreportmig.Sql&#8221; [ID 841705.1]<br />
<span style="line-height: 1.5em;"> </span></td>
</tr>
<tr style="background-color: #def2f3;">
<td valign="top" width="45"><b>4</b></td>
<td valign="top" width="607"><strong><strong>p002ncpls.sql fails with: ORA-04068: existing state of packages has been discarded</strong></strong>&nbsp;</p>
<p><strong></strong><strong>Error message:</strong><br />
FAILED: file p002ncpls.sql on worker  2.</p>
<p>sqlplus -s APPS/***** @/&lt;middle tier&gt;/apps/apps_st/appl/admin/&lt;ENV&gt;/out/p002ncpls.sql &amp;un_apps CTXSYS &amp;un_csSession altered.Package body created.<br />
PL/SQL procedure successfully completed.<br />
PL/SQL procedure successfully completed.<br />
BEGIN<br />
*<br />
ERROR at line 1:<br />
ORA-04068: existing state of packages has been discarded<br />
ORA-04065: not executed, altered or dropped stored procedure &#8220;PUBLIC.PLITBLM&#8221;<br />
ORA-06508: PL/SQL: could not find program unit being called: &#8220;PUBLIC.PLITBLM&#8221;<br />
ORA-06512: at &#8220;SYSTEM.AD_DDL&#8221;, line 165<br />
ORA-06512: at line 2</p>
<p><strong>Solution:</strong><br />
1. Run $ORACLE_HOME/rdbms/admin/utlirp.sql<br />
2. Run the following query to check for objects with a timestamp mismatch:<br />
select do.obj# d_obj,do.name d_name, po.obj# p_obj,po.name p_name, to_char(p_timestamp,&#8217;DD-MM-YYYY HH24:MI:SS&#8217;) p_timestamp, to_char(po.stime ,&#8217;DD-MM-YYYY HH24:MI:SS&#8217;) stime, decode(sign(po.stime-p_timestamp),0,&#8217;SAME&#8217;,&#8217;*DIFFER*&#8217;) X,do.type#,po.type#<br />
from sys.obj$ do, sys.dependency$ d, sys.obj$ po<br />
where P_OBJ#=po.obj#(+)<br />
and D_OBJ#=do.obj#<br />
and do.status=1 /*dependent is valid*/<br />
and po.status=1 /*parent is valid*/<br />
and po.stime!=p_timestamp /*parent timestamp not match*/<br />
order by 2,1;<br />
3. Compile any objects that are returned by the above query<br />
SQL&gt; alter package SYS.PLITBLM compile;<br />
SQL&gt; alter package SYS.DBMS_RESUMABLE compile;<br />
SQL&gt; alter package SYS.DBMS_REPCAT_AUTH compile;<br />
SQL&gt; alter package SYSTEM.DBMS_REPCAT_AUTH compile;<br />
Check if the objects are valid now.<br />
4. Launch adctrl and restart the failed worker</p>
<p><strong>Reference:</strong><br />
DBMS_METADATA Fails With ORA-04068 And ORA-04065 [ID 1179501.1]<br />
<span style="line-height: 1.5em;"> </span></td>
</tr>
<tr style="background-color: #bbe5e6;">
<td valign="top" width="45"><b>5</b></td>
<td valign="top" width="607"><strong>p001ncpls.sql fails with: ORA-00955: name is already used by an existing objec</strong>t&nbsp;</p>
<p><strong>Error message:</strong><br />
FAILED: file p001ncpls.sql on worker 16.</p>
<p>sqlplus -s APPS/***** @/&lt;middle tier&gt;/apps/apps_st/appl/admin/&lt;ENV&gt;/out/p001ncpls.sql<br />
Session altered.<br />
DECLARE<br />
*<br />
ERROR at line 1:<br />
ORA-00955: name is already used by an existing object<br />
ORA-06512: at line 21<br />
Time when worker failed: Sat Jun 16 2012 16:18:21</p>
<p><strong>Solution:</strong><br />
1. Drop tables below:<br />
drop table IGI.IGI_UPG_GL_BUDGET_ASSIGNMENT;<br />
drop synonym APPS.IGI_UPG_GL_BUDGET_ASSIGNMENT;<br />
select * from dba_objects where object_name=&#8217;IGI_UPG_GL_BUDGET_ASSIGNMENT&#8217;;</p>
<p>drop table IGI.IGI_UPG_GL_BUDORG_BC_OPTIONS;<br />
drop synonym APPS.IGI_UPG_GL_BUDORG_BC_OPTIONS;<br />
select * from dba_objects where object_name=&#8217;IGI_UPG_GL_BUDORG_BC_OPTIONS&#8217;;</p>
<p>drop table IGI.IGI_EFC_BUDGET_ASSIGNMENT_BCK;<br />
drop synonym APPS.IGI_EFC_BUDGET_ASSIGNMENT_BCK;<br />
select * from dba_objects where object_name=&#8217;IGI_EFC_BUDGET_ASSIGNMENT_BCK&#8217;;</p>
<p>drop table IGI.IGI_BUDORG_BC_OPTIONS_BCK;<br />
drop synonym APPS.IGI_BUDORG_BC_OPTIONS_BCK;<br />
select * from dba_objects where object_name=&#8217;IGI_BUDORG_BC_OPTIONS_BCK&#8217;;</p>
<p>drop table IGI.IGI_EFC_UPG_BACKUP_INFO;<br />
drop synonym APPS.IGI_EFC_UPG_BACKUP_INFO;<br />
select * from dba_objects where object_name=&#8217;IGI_EFC_UPG_BACKUP_INFO&#8217;;</p>
<p>drop table IGI.IGI_GL_BUDGET_ASSIGN_BCK;<br />
drop synonym APPS.IGI_GL_BUDGET_ASSIGN_BCK;<br />
select * from dba_objects where object_name=&#8217;IGI_GL_BUDGET_ASSIGN_BCK&#8217;;</p>
<p>2. Restart failed workers in adctrl.<br />
<span style="line-height: 1.5em;"> </span></td>
</tr>
<tr style="background-color: #def2f3;">
<td valign="top" width="45"><b>6</b></td>
<td valign="top" width="607"><strong>Uploading file ibecitem.ldt fails with: ORA-29861: domain index is marked LOADING/FAILED/UNUSABLE</strong>&nbsp;</p>
<p><strong>Error message:</strong><br />
FAILED: file ibecitem.ldt on worker  1.</p>
<p>Uploading from the data file /&lt;middletier&gt;/apps/apps_st/appl/ibe/12.0.0/patch/115/import/US/ibecitem.ldt<br />
Altering database NLS_LANGUAGE environment to AMERICAN<br />
Dumping from LCT/LDT files (/&lt;middle tier&gt;/apps/apps_st/appl/ibc/12.0.0/patch/115/import/ibccitem.lct, /&lt;middle tier&gt;/apps/apps_st/appl/ibe/12.0.0/patch/115/import/US/ibecitem.ldt) to staging tables<br />
Dumping LCT file /&lt;middle tier&gt;/apps/apps_st/appl/ibc/12.0.0/patch/115/import/ibccitem.lct into FND_SEED_STAGE_CONFIG<br />
Dumping LDT file /&lt;middle tier&gt;/apps/apps_st/appl/ibe/12.0.0/patch/115/import/US/ibecitem.ldt into FND_SEED_STAGE_ENTITY<br />
Dumped the batch (IBC_CONTENT_ITEMS 51 , IBC_CITEM_VERSIONS 52 ) into FND_SEED_STAGE_ENTITY<br />
Uploading from staging tables<br />
Error loading seed data for IBC_CITEM_VERSIONS:  CONTENT_ITEM_ID = 51, CITEM_VERSION_ID = 51,  ORA-29861: domain index is marked LOADING/FAILED/UNUSABLE<br />
Error loading seed data for IBC_CITEM_VERSIONS:  CONTENT_ITEM_ID = 52, CITEM_VERSION_ID = 52,  ORA-29861: domain index is marked LOADING/FAILED/UNUSABLE<br />
Concurrent request completed</p>
<p><strong>Solution:</strong><br />
1. Check status of Domain index:<br />
SQL&gt; select index_name, owner, status, DOMIDX_status, domidx_opstatus from dba_indexes where index_type=&#8217;DOMAIN&#8217; and domidx_opstatus=&#8217;FAILED&#8217;;</p>
<p>INDEX_NAME                            OWNER     STATUS DOMIDX_STATUS DOMIDX<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;               &#8212;&#8212;&#8212;&#8211;  &#8212;&#8212;&#8211;  &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;  &#8212;&#8212;<br />
IGP_US_PORTFOLIOS_CTX1       IGS          VALID    VALID                 FAILED<br />
<span style="line-height: 1.5em;">IGP_US_PORTFOLIOS_CTX2       IGS          VALID    VALID                 FAILED<br />
</span>IBC_ATTRIBUTE_BUNDLES_CTX IBC          VALID    VALID                 FAILED<br />
IGP_US_PORTFOLIOS_CTX3       IGS          VALID    VALID                 FAILED</p>
<p>2. Fix Intermedia Tables:<br />
SQL&gt; exec ctx_ddl.sync_index(&#8216;IBC.IBC_ATTRIBUTE_BUNDLES_CTX&#8217;);<br />
3. Restart failed workers in adctrl.<span style="line-height: 1.5em;"><br />
</span></td>
</tr>
<tr style="background-color: #bbe5e6;">
<td valign="top" width="45"><b>7</b></td>
<td valign="top" width="607"><strong>EGOSILDU.sql fails with: ORA-02149: Specified partition does not exist</strong>&nbsp;</p>
<p><strong>Error message:</strong><br />
FAILED: file EGOSILDU.sql on worker  3.</p>
<p>sqlplus -s APPS/***** @/&lt;middle tier&gt;/apps/apps_st/appl/ego/12.0.0/patch/115/sql/EGOSILDU.sql &amp;un_ego<br />
DECLARE<br />
*<br />
ERROR at line 1:<br />
ORA-02149: Specified partition does not exist<br />
ORA-06512: at line 408</p>
<p><strong>Solution:</strong><br />
1. Check if the EGO product is installed/used.  You can use &#8220;$AD_TOP/sql/adutconf.sql&#8221; to find out if you are using the product.<br />
2. If you have not installed EGO product or if you are not using &#8220;Advanced Product Catalog&#8221; functionality, you can skip the failed job. Use adctrl hidden option #8, to skip the failed job.<br />
3. If you are using this product, Please raise an SR in order to get the detailed procedure to fix the issue listed in <a href="https://support.oracle.com/epmos/faces/BugDisplay?id=8485942">bug 8485942</a></p>
<p><strong>Reference:</strong><br />
Patch 7303030 Fails on Egosildu.sql : ORA-02149 Specified Partition Does Not Exist [ID 847687.1]<br />
<span style="line-height: 1.5em;"> </span></td>
</tr>
<tr style="background-color: #def2f3;">
<td valign="top" width="45"><b>8</b></td>
<td valign="top" width="607"><strong>zpbremcwm.sql fails with: ORA-06550: line 235, column 6: PLS-00904: insufficient privilege to access object OLAPSYS.CWM2_OLAP_CUBE</strong>&nbsp;</p>
<p><strong>Error message:</strong><br />
FAILED: file zpbremcwm.sql on worker  1.</p>
<p>sqlplus -s APPS/***** @/&lt;middle tier&gt;/apps/apps_st/appl/zpb/12.0.0/patch/115/sql/zpbremcwm.sqlcwm2_olap_cube.drop_cube(G_SCHEMA, v_cube.name);<br />
ERROR at line 235:<br />
ORA-06550: line 235, column 6:<br />
PLS-00904: insufficient privilege to access object OLAPSYS.CWM2_OLAP_CUBE<br />
ORA-06550: line 235, column 6:<br />
PL/SQL: Statement ignored<br />
ORA-06550: line 239, column 6:<br />
PLS-00904: insufficient privilege to access object OLAPSYS.CWM2_OLAP_DIMENSION<br />
ORA-06550: line 239, column 6:<br />
PL/SQL: Statement ignored<br />
ORA-06550: line 243, column 6:<br />
PLS-00904: insufficient privilege to access object OLAPSYS.CWM2_OLAP_CATALOG<br />
ORA-06550: line 243, column 6:<br />
PL/SQL: Statement ignored<br />
ORA-06550: line 247, column 4:<br />
PLS-00904: insufficient privilege to access object<br />
OLAPSYS.CWM2_OLAP_METADATA_REFRESH<br />
ORA-06550: line 247, column 4:<br />
PL/SQL: Statement ignored</p>
<p><strong>Solution:</strong><br />
1. Grant privileges:<br />
SQL&gt; grant execute on OLAPSYS.CWM2_OLAP_METADATA_REFRESH to apps;<br />
SQL&gt; grant execute on OLAPSYS.CWM2_OLAP_CATALOG to apps;<br />
SQL&gt; grant execute on OLAPSYS.CWM2_OLAP_DIMENSION to apps;<br />
SQL&gt; grant execute on OLAPSYS.CWM2_OLAP_CUBE to apps;<br />
2. Use adctrl option #2 to restart the failed worker.</p>
<p><strong>Reference:</strong><br />
ZPBREMCWM.SQL Returns Error: PLS-00904: Insufficient Privilege To Access Object (Doc ID 744973.1)<br />
<span style="line-height: 1.5em;"> </span></td>
</tr>
<tr style="background-color: #bbe5e6;">
<td valign="top" width="45"><b>9</b></td>
<td valign="top" width="607"><strong>csmidxdel.sql fails with: ORA-06550: line 15, column 2: PLS-00201: identifier &#8216;CSM_UTIL_PKG.LOG&#8217; must be declared</strong>&nbsp;</p>
<p><strong>Error message:</strong><br />
FAILED: file csmidxdel.sql on worker  11.</p>
<p>sqlplus -s APPS/***** @/opt/ebsr12/apps/apps_st/appl/csm/12.0.0/patch/115/sql/csmidxdel.sql<br />
CSM_UTIL_PKG.LOG(message =&gt;&#8217;Dropping the index CSM_NEW_MESSAGES_ACC_U2&#8242;<br />
*<br />
ERROR at line 15:<br />
ORA-06550: line 15, column 2:<br />
PLS-00201: identifier &#8216;CSM_UTIL_PKG.LOG&#8217; must be declared<br />
&#8230;<br />
PL/SQL: Statement ignored</p>
<p><strong>Cause:</strong><br />
Package CSM_UTIL_PKG doesn&#8217;t exist.</p>
<p><strong>Solution:</strong><br />
1. Check if the CSM product is installed/used.  You can use &#8220;$AD_TOP/sql/adutconf.sql&#8221; to find out if you are using the product.<br />
2. If you have not installed CSM product, you can skip the failed job. Use adctrl hidden option #8, to skip the failed job.<br />
3. If you are using this product, Please raise an SR in order to get the detailed procedure to fix the issue.<br />
<span style="line-height: 1.5em;"> </span></td>
</tr>
<tr style="background-color: #def2f3;">
<td valign="top" width="45"><b>10</b></td>
<td valign="top" width="607"><strong>pechktsk.sql fails with: ORA-00979: not a GROUP BY expression</strong>&nbsp;</p>
<p><strong>Error message:</strong><br />
FAILED: file pechktsk.sql on worker   3.</p>
<p>sqlplus -s APPS/***** @/opt/ebsr12/apps/apps_st/appl/per/12.0.0/patch/115/sql/pechktsk.sql<br />
DECLARE<br />
*<br />
ERROR at line 1:<br />
ORA-00979: not a GROUP BY expression<br />
ORA-06512: at line 38</p>
<p><strong>Solution:</strong><br />
1. Check current version of pechktsk.sql:<br />
strings -a $PER_TOP/patch/115/sql/pechktsk.sql |grep &#8216;$Header&#8217;<br />
Download patch 8855023 if the version is lower than 120.0.12010000.2.<br />
2. Backup current version of pechktsk.sql:<br />
mv $PER_TOP/patch/115/sql/pechktsk.sql $PER_TOP/patch/115/sql/pechktsk.sql.old<br />
3. Copy new version of pechktsk.sql from patch 8855023 to $PER_TOP/patch/115/sql:<br />
cp &#8230;/8855023/per/patch/115/sql/pechktsk.sql $PER_TOP/patch/115/sql/pechktsk.sql<br />
4. Check version of new pechktsk.sql:<br />
strings -a $PER_TOP/patch/115/sql/pechktsk.sql |grep &#8216;$Header&#8217;<br />
rem $Header: pechktsk.sql 120.0.12010000.2 2009/09/15 06:31:36 sidsaxen ship $<br />
5. Launch adctrl and restart the failed worker</p>
<p><strong>Reference:</strong><br />
Applying Patch 6678700 or Patch 3500000 Pechktsk.Sql Errors with: ORA-00979: Not A Group By Expression (Doc ID 1083981.1)<br />
<span style="line-height: 1.5em;"> </span></td>
</tr>
<tr style="background-color: #bbe5e6;">
<td valign="top" width="45"><b>11</b></td>
<td valign="top" width="607"><strong>armquet.sql fails with: ORA-20000: Add subscriber Error ( AR_REV_REC_Q) : -4063 &#8211; ORA-04063: AR.AR_REV_REC_Q has error</strong>s&nbsp;</p>
<p><strong>Error message:</strong><br />
FAILED: file armquet.sql  on worker  1.</p>
<p>sqlplus -s APPS/***** @/opt/ebsr12/apps/apps_st/appl/ar/12.0.0/patch/115/sql/armquet.sql &amp;un_ar &amp;pw_ar &amp;un_ar<br />
Connected.<br />
PL/SQL procedure successfully completed.<br />
DECLARE<br />
*<br />
ERROR at line 1:<br />
ORA-20000: Add subscriber Error ( AR_REV_REC_Q) : -4063 &#8211; ORA-04063: AR.AR_REV_REC_Q has errors<br />
ORA-06512: at line 18</p>
<p><strong>Solution:</strong><br />
1. Check if the status of the queue is invalid:<br />
sqlplus apps<br />
SQL&gt; select owner, object_name, object_type, status from dba_objects where object_name=&#8217;AR_REV_REC_Q&#8217;;</p>
<p>OWNER  OBJECT_NAME     OBJECT_TYPE  STATUS<br />
&#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-   &#8212;&#8212;&#8212;&#8212;&#8212;-  &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
AR         AR_REV_REC_Q   QUEUE            INVALID</p>
<p>2. Drop the queue and the queue table:<br />
SQL&gt; exec dbms_aqadm.drop_queue(queue_name =&gt;&#8217;AR.AR_REV_REC_Q&#8217;,auto_commit=&gt;TRUE);<br />
PL/SQL procedure successfully completed.<br />
SQL&gt; exec dbms_aqadm.drop_queue_table(queue_table=&gt;&#8217;AR.AR_REV_REC_QT&#8217;,force=&gt;TRUE);<br />
PL/SQL procedure successfully completed.<br />
3. Create the queue and queue table again:<br />
SQL&gt; @$AR_TOP/patch/115/sql/arcquet.sql apps &lt;apps pwd&gt; AR APPS_TS_QUEUES<br />
4. Grant privileges and create synonym:<br />
# Reference: $AR_TOP/patch/115/sql/arcques.sql:<br />
sqlplus apps<br />
SQL&gt; execute AD_INST.DO_APPS_DDL(&#8216;AR&#8217;, &#8216;GRANT ALL ON AR_REV_REC_QT TO &#8216;||&#8217;APPS&#8217;||&#8217; WITH GRANT OPTION&#8217;);<br />
SQL&gt; create or replace synonym apps.AR_REV_REC_QT for ar.AR_REV_REC_QT;<br />
5. Start the queue.<br />
sqlplus apps<br />
SQL&gt; @$AR_TOP/patch/115/sql/arstque.sql AR<br />
6. Verify that the queue is valid:<br />
sqlplus apps<br />
SQL&gt; select owner, object_name, object_type, status from dba_objects where object_name=&#8217;AR_REV_REC_Q&#8217;;</p>
<p>OWNER  OBJECT_NAME     OBJECT_TYPE   STATUS<br />
&#8212;&#8212;&#8212;  &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
AR         AR_REV_REC_Q   QUEUE             VALID</p>
<p>7. Launch adctrl and restart the failed worker</td>
</tr>
<tr style="background-color: #def2f3;">
<td valign="top" width="45"><b>12</b></td>
<td valign="top" width="607"><strong>XNPQFIX.sql fails with: ORA-20001: Error While modifying queue XNP.XNP_OUT_MSG_Q, ORA-06512: at line 77</strong>&nbsp;</p>
<p><strong>Error message:</strong><br />
FAILED: file XNPQFIX.sql on worker 1.</p>
<p>sqlplus -s APPS/***** @/opt/ebsr12/apps/apps_st/appl/xnp/12.0.0/patch/115/sql/XNPQFIX.sql &amp;un_xnp &amp;pw_xnp &amp;un_xnp<br />
Connected.<br />
DECLARE<br />
*<br />
ERROR at line 1:<br />
ORA-20001: Error While modifying queue XNP.XNP_OUT_MSG_Q<br />
ORA-06512: at line 77</p>
<p><strong>Solution:</strong><br />
1. Check current queue status:<br />
sqlplus &#8220;/ as sysdba&#8221;<br />
SQL&gt; select owner, object_name, object_type, status from dba_objects where object_type=&#8217;QUEUE&#8217; and object_name=&#8217;XNP_OUT_MSG_Q&#8217;;</p>
<p>OWNER      OBJECT_NAME          OBJECT_TYPE        STATUS<br />
&#8212;&#8212;&#8212;-    &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-    &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
XNP           XNP_OUT_MSG_Q     QUEUE                  INVALID</p>
<p>2. Stop the queues:<br />
SQL&gt; exec dbms_aqadm.stop_queue(queue_name =&gt; &#8216;XNP.XNP_OUT_MSG_Q&#8217;,wait =&gt; FALSE);<br />
SQL&gt; exec dbms_aqadm.stop_queue(queue_name =&gt; &#8216;XNP.XNP_OUT_MSG_EXCEPTION_Q&#8217;, wait =&gt; FALSE);<br />
3. Drop the queue:<br />
SQL&gt; exec dbms_aqadm.drop_queue(queue_name=&gt; &#8216;XNP.XNP_OUT_MSG_Q&#8217;);<br />
4. Create the queue:<br />
SQL&gt; exec dbms_aqadm.create_queue (queue_name  =&gt; &#8216;XNP.XNP_OUT_MSG_Q&#8217;, queue_table =&gt; &#8216;XNP.XNP_OUT_MSG_QTAB&#8217;, max_retries =&gt; 5, retry_delay =&gt; 3600, retention_time =&gt; 0, auto_commit =&gt; FALSE );<br />
5. Start the queues:<br />
SQL&gt; exec dbms_aqadm.start_queue(queue_name =&gt; &#8216;XNP.XNP_OUT_MSG_Q&#8217;);<br />
SQL&gt; exec dbms_aqadm.start_queue(queue_name =&gt; &#8216;XNP.XNP_OUT_MSG_EXCEPTION_Q&#8217;, enqueue =&gt; FALSE, dequeue =&gt; TRUE);<br />
6. Check current queue status:<br />
SQL&gt; select owner, object_name, object_type, status from dba_objects where object_type=&#8217;QUEUE&#8217; and object_name=&#8217;XNP_OUT_MSG_Q&#8217;;</p>
<p>OWNER   OBJECT_NAME                  OBJECT_TYPE   STATUS<br />
&#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8212;&#8211;   &#8212;&#8212;&#8212;&#8212;&#8212;-<br />
XNP        XNP_OUT_MSG_Q             QUEUE              VALID<br />
7. Launch adctrl and restart the failed worker</p>
<p><strong>Reference:</strong><br />
SFM Event Manager Queue Service (SFM) Error ORA-00904: &#8220;TAB&#8221;.&#8221;USER_PROP&#8221;: INVALID IDENTIFIER (Doc ID 1061711.1). The note is specifically written for Install Base users experiencing a specific error with the 2 queue services required for Install Base functionality but the same steps given in the solution can be used to rebuild the XNP queues.<br />
<span style="line-height: 1.5em;"> </span></td>
</tr>
<tr style="background-color: #bbe5e6;">
<td valign="top" width="45"><b>13</b></td>
<td valign="top" width="607"><strong>PO_VENDORS_OBS_F1.xdf fails with: AD Worker error: The utility FndXdfCmp returned error for the above task.</strong>&nbsp;</p>
<p><strong>Error message:</strong><br />
FAILED: file PO_VENDORS_OBS_F1.xdf on worker  3.</p>
<p>AD Worker error:<br />
The utility FndXdfCmp returned error for the above task.</p>
<p><strong>Solution:</strong><br />
1. Drop index:<br />
sqlplus apps/&lt;apps pwd&gt;<br />
SQL&gt; drop index PO.PO_VENDORS_F1;<br />
2. Launch adctrl and restart the failed worker.</p>
<p><strong>Reference:</strong><br />
Creation of Index PO_VENDORS_OBS_F1 Failed When Applying 12.1.1 Upgrade Patch 6678700 (Doc ID 859556.1)<br />
<span style="line-height: 1.5em;"> </span></td>
</tr>
<tr style="background-color: #def2f3;">
<td valign="top" width="45"><b>14</b></td>
<td valign="top" width="607"><strong>cstfifo.odf fails with: ORA-00979: not a GROUP BY expression</strong>&nbsp;</p>
<p><strong>Error Message:</strong><br />
FAILED: file cstfifo.odf  on worker  1.</p>
<p>ORA-00979: not a GROUP BY expression</p>
<p><strong>Solution:</strong><br />
1. Download and unzip patch 9868229.<br />
2. Backup current cstfifo.odf file.<br />
cp $BOM_TOP/patch/115/odf/cstfifo.odf $BOM_TOP/patch/115/odf/cstfifo.odf.org<br />
3. Copy cstfifo.odf file from patch 9868229 to the $BOM_TOP/patch/115/odf directory:<br />
cp &#8230;/9868229/bom/patch/115/odf/cstfifo.odf $BOM_TOP/patch/115/odf/cstfifo.odf<br />
4. Launch adctrl and restart the failed worker.</p>
<p><strong>Reference:</strong><br />
This error can be avoided when applying patch 9868229 before upgrade patch 6678700.<br />
12.1.1 Upgrade &#8211; cstfifo.odf fails with error &#8216;ORA-00979: not a group by expression&#8217; (Doc ID 1274012.1)</td>
</tr>
<tr style="background-color: #bbe5e6;">
<td valign="top" width="45"><b>15</b></td>
<td valign="top" width="607"><strong>ircntf.wft fails with: ITEM_TYPE &#8216;WFSTD&#8217; is protected &#8230;</strong>&nbsp;</p>
<p><strong>Error message:</strong><br />
FAILED: file ircntf.wft   on worker  1.</p>
<p>Access level: 20, Mode: UPGRADE<br />
ITEM_TYPE &#8216;WFSTD&#8217; is protected, no changes were saved.<br />
ITEM_ATTRIBUTE &#8216;WFSTD/EVENTNAME&#8217; is customized, no changes were saved.<br />
ITEM_ATTRIBUTE &#8216;WFSTD/N&#8217; is protected, no changes were saved.<br />
&#8230;</p>
<p><strong>Solution:</strong><br />
1. Run WFLOAD with FORCE option as the applmgr user:<br />
$FND_TOP/bin/WFLOAD apps/&lt;apps pwd&gt; 0 Y FORCE $IRC_TOP/patch/115/import/US/ircntf.wft<br />
2. Use adctrl hidden option #8, to skip the failed job.</p>
<p><strong>Reference:</strong><br />
IRCNTF.WFT Fails During R12.1.1 Upgrade (Doc ID 1329530.1).<br />
Oracle Support advice is to skip this error and complete the upgrade.  This error should not impact any iRecruitment functionality apart from Generic Notifications in iRecruitment which is introduced in 12.1. Furthermore they suggest to apply Patch 9371492: IRCNTF.WFT FAILS DURING R12.1.1 UPGRADE. This isn&#8217;t possible during deployment of patch 6678700, so I run WFLOAD with the FORCE option.<br />
<span style="line-height: 1.5em;"> </span></td>
</tr>
<tr style="background-color: #def2f3;">
<td valign="top" width="45"><b>16</b></td>
<td valign="top" width="607"><strong>OKLIAADD.wft fails with: ITEM_TYPE &#8216;WFSTD&#8217; is protected, no changes were saved&#8230;</strong>&nbsp;</p>
<p><strong>Error message:</strong><br />
FAILED: file OKLIAADD.wft on worker  2.</p>
<p>Access level: 20, Mode: UPGRADE<br />
ITEM_TYPE &#8216;WFSTD&#8217; is protected, no changes were saved.<br />
ITEM_ATTRIBUTE &#8216;WFSTD/N&#8217; is protected, no changes were saved.<br />
ITEM_ATTRIBUTE &#8216;WFSTD/REQUESTOR_USERNAME&#8217; is protected, no changes were saved.<br />
&#8230;</p>
<p><strong>Solution:</strong><br />
1. Run WFLOAD with FORCE option as the applmgr user:<br />
$FND_TOP/bin/WFLOAD apps/&lt;apps pwd&gt; 0 Y FORCE $OKL_TOP/patch/115/import/US/OKLIAADD.wft<br />
2. Use adctrl hidden option #8, to skip the failed job.</p>
<p><strong>Reference:</strong><br />
IRCNTF.WFT Fails During R12.1.1 Upgrade (Doc ID 1329530.1).<br />
Oracle Support advice is to skip this error and complete the upgrade.  This error should not impact any iRecruitment functionality apart from Generic Notifications in iRecruitment which is introduced in 12.1. Furthermore they suggest to apply Patch 9371492: IRCNTF.WFT FAILS DURING R12.1.1 UPGRADE. This isn&#8217;t possible during deployment of patch 6678700, so I run WFLOAD with the FORCE option.</td>
</tr>
<tr style="background-color: #bbe5e6;">
<td valign="top" width="45"><b>17</b></td>
<td valign="top" width="607"><strong>PAPWPARN.wft fails with: ITEM_TYPE &#8216;WFSTD&#8217; is protected, no changes were saved&#8230;</strong>&nbsp;</p>
<p><strong>Error message:</strong><br />
FAILED: file PAPWPARN.wft on worker  3.</p>
<p>Access level: 20, Mode: UPGRADE<br />
ITEM_TYPE &#8216;WFSTD&#8217; is protected, no changes were saved.<br />
ITEM_ATTRIBUTE &#8216;WFSTD/N&#8217; is protected, no changes were saved.<br />
ITEM_ATTRIBUTE &#8216;WFSTD/REQUESTOR_USERNAME&#8217; is protected, no changes were saved.<br />
&#8230;</p>
<p><strong>Solution:</strong><br />
1. Run WFLOAD with FORCE option as the applmgr user:<br />
$FND_TOP/bin/WFLOAD apps/&lt;apps pwd&gt; 0 Y FORCE $PA_TOP/patch/115/import/US/PAPWPARN.wft<br />
2. Use adctrl hidden option #8, to skip the failed job.</p>
<p><strong>Reference:</strong><br />
This error is described in MOS 1061488.1. PAPWPARN.WFT ERRORS ON UPGRADE TO 12.1.1 (Doc ID 1061488.1). Oracle Support suggest to apply patch 12347791: 1OFF:11841086:12.1.1:PATCH 6678700 FAILS 1602 ORACLE WORKFLOW DEFINITION. This isn&#8217;t possible during deployment of patch 6678700, so I run WFLOAD with the FORCE option.<br />
<span style="line-height: 1.5em;"> </span></td>
</tr>
<tr style="background-color: #def2f3;">
<td valign="top" width="45"><b>18</b></td>
<td valign="top" width="607"><strong>IGIGITRA.wft fails with: ORA-00001: unique constraint (APPLSYS.WF_MESSAGE_ATTRIBUTES_TL_U2) violated.</strong>&nbsp;</p>
<p><strong>Error message:</strong><br />
FAILED: file IGIGITRA.wft on worker  8.</p>
<p>wferr:<br />
&#8211; 1602: Could not save.<br />
<span style="line-height: 1.5em;">&#8211; 1400: Could not save to database. MODE=UPGRADE EFFDATE=&lt;null&gt;<br />
</span>&#8211; 1401: Could not upload MESSAGE entity &#8216;ITRAPPRV/NOTIFY_PREPARER_OF_REJECTION&#8217;.<br />
&#8211; 1401: Could not upload ATTRIBUTE entity &#8216;&lt;null&gt;/COMMENT&#8217;.<br />
&#8211; 210: Oracle Error: ORA-00001: unique constraint (APPLSYS.WF_MESSAGE_ATTRIBUTES_TL_U2) violated<br />
ORA-06512: at &#8220;APPS.WF_LOAD&#8221;, line 1067<br />
ORA-06512: at line 1.  SQL text: BEGIN WF_LOAD.UPLOAD_MESSAGE_ATTRIBUTE(:message_type, :message_name, :name, :display_name, :description, :sequence, :type, :subtype, :protect, :custom, :format, :default, :value_type, :attach, :level_error); END;<br />
Oracle Workflow Definition Loader 2.6.4.0.</p>
<p><strong>Solution: </strong><br />
1. Update wf_message_attributes_tl:<br />
sqlplus apps<br />
SQL&gt; UPDATE wf_message_attributes_tl<br />
SET display_name =&#8217;Approver Comment&#8217;<br />
WHERE message_type=&#8217;ITRAPPRV&#8217;<br />
AND message_name in (&#8216;NOTIFY_PREPARER_OF_APPROVAL&#8217;,<br />
&#8216;NOTIFY_PREPARER_OF_REJECTION&#8217;, &#8216;NOTIFY_PREPARER_NOT_SUBMITTED&#8217;)<br />
AND name=&#8217;APPROVER_COMMENT&#8217;<br />
AND display_name=&#8217;Comment&#8217;<br />
AND language = &#8216;DK&#8217;;<br />
2. Run WFLOAD with FORCE option as the applmgr user:<br />
$FND_TOP/bin/WFLOAD apps/&lt;apps pwd&gt; 0 Y FORCE $IGI_TOP/patch/115/import/US/IGIGITRA.wft<br />
3. Use adctrl hidden option #8, to skip the failed job.</p>
<p><strong>Reference:</strong><br />
DOC ID 471851.1 which is visible for Oracle Support only.<br />
<span style="line-height: 1.5em;"> </span></td>
</tr>
<tr style="background-color: #bbe5e6;">
<td valign="top" width="45"><b>19</b></td>
<td valign="top" width="607"><strong>oklresp.ldt fails with: Error calling FNDLOAD function &#8211; ORA-01403: no data found</strong>&nbsp;</p>
<p><strong>Error message:</strong><br />
FAILED: file oklresp.ldt  on worker  5.</p>
<p>Error calling FNDLOAD function.<br />
Error loading seed data for FND_RESP_FUNCTIONS:  APPLICATION_SHORT_NAME = OKL, RESP_KEY = LEASE_TERMINATIONS, RULE_TYPE = M, ACTION = OKL_AM_REMARKET,  ORA-01403: no data found<br />
Error loading seed data for FND_RESP_FUNCTIONS:  APPLICATION_SHORT_NAME = OKL, RESP_KEY = LEASE_CONTRACT_ADMINISTRATOR, RULE_TYPE = M, ACTION = OKL_AM_REMARKET,  ORA-01403: no data found</p>
<p><strong>Solution:</strong><br />
1. Check if the OKL product is installed/used.  You can use &#8220;$AD_TOP/sql/adutconf.sql&#8221; to find out if you are using the product.<br />
2. If you have not installed OKL product, you can skip the failed job. Use adctrl hidden option #8, to skip the failed job.<br />
3. If you are using this product, Please raise an SR in order to get the detailed procedure to fix.</td>
</tr>
<tr style="background-color: #def2f3;">
<td valign="top" width="45"><b>20</b></td>
<td valign="top" width="607"><strong>MSDODPCODE.sql fails with: ORA-33292: Insufficient permissions to access analytic workspace APPS.ODPCODE</strong>&nbsp;</p>
<p><strong>Error message:</strong><br />
FAILED: file MSDODPCODE.sql on worker  1.</p>
<p>sqlplus -s APPS/***** @/opt/ebsr12/apps/apps_st/appl/msd/12.0.0/patch/115/sql/MSDODPCODE.sql<br />
begin<br />
*<br />
ERROR at line 1:<br />
ORA-33292: Insufficient permissions to access analytic workspace APPS.ODPCODE<br />
using the specified access mode.<br />
ORA-06512: at &#8220;SYS.DBMS_AW&#8221;, line 67<br />
ORA-06512: at &#8220;SYS.DBMS_AW&#8221;, line 131<br />
ORA-06512: at &#8220;SYS.DBMS_AW&#8221;, line 977<br />
ORA-06512: at &#8220;SYS.DBMS_AW&#8221;, line 930<br />
ORA-33262: Analytic workspace APPS.ODPCODE does not exist.<br />
ORA-06512: at &#8220;SYS.DBMS_AW&#8221;, line 901<br />
ORA-06512: at &#8220;APPS.MSD_AW_LOADER&#8221;, line 10<br />
ORA-06512: at line 3</p>
<p><strong>Solution:</strong><br />
1. Unlock the OLAPSYS account:<br />
sqlplus &#8220;/ as sysdba&#8221;<br />
SQL&gt; select username ,account_status from dba_users where username like &#8216;%OLAP%&#8217;;</p>
<p>USERNAME                 ACCOUNT_STATUS<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
OLAPSYS                   LOCKED</p>
<p>SQL&gt; ALTER USER OLAPSYS ACCOUNT UNLOCK;<br />
2. Run next OLAP DML command/procedure:<br />
sqlplus apps<br />
SQL&gt; exec dbms_aw.execute(&#8216;aw create odpcode&#8217;);<br />
3. Launch adctrl and restart the failed worker.</p>
<p><strong>Reference:</strong><br />
Patch 6678700 Worker Fails On Applying MSDODPCODE.sql With ORA-33292 Insufficient Permissions To Access Analytic Workspace APPS.ODPCODE; ORA-33262: Analytic workspace ODPCODE does not exist. (Doc ID 1054417.1)</td>
</tr>
<tr style="background-color: #bbe5e6;">
<td valign="top" width="45"><b>21</b></td>
<td valign="top" width="607"><strong>rgcolset.ldt fails with: ORA-01422: exact fetch returns more than requested number of rows</strong>&nbsp;</p>
<p><strong>Error message:</strong><br />
FAILED: file rgcolset.ldt on worker  3.</p>
<p>Error calling FNDLOAD function.<br />
Uploading from staging tables<br />
Error loading seed data for RG_REPORT_CALCULATIONS:  SEEDED_NAME = FSG_COLUMN_SET_1, AXIS_SEQ = 40, CALCULATION_SEQ = 10,  ORA-01422: exact fetch returns more than requested number of rows<br />
Error loading seed data for RG_REPORT_CALCULATIONS:  SEEDED_NAME = FSG_COLUMN_SET_2, AXIS_SEQ = 30, CALCULATION_SEQ = 10,  ORA-01422: exact fetch returns more than requested number of rows<br />
Error loading seed data for RG_REPORT_CALCULATIONS:  SEEDED_NAME = FSG_COLUMN_SET_10, AXIS_SEQ = 130, CALCULATION_SEQ = 10,  ORA-01422: exact fetch returns more than requested number of rows<br />
Error loading seed data for RG_REPORT_CALCULATIONS:  SEEDED_NAME = FSG_COLUMN_SET_11, AXIS_SEQ = 50, CALCULATION_SEQ = 10,  ORA-01422: exact fetch returns more than requested number of rows<br />
Error loading seed data for RG_REPORT_CALCULATIONS:  SEEDED_NAME = FSG_COLUMN_SET_12, AXIS_SEQ = 50, CALCULATION_SEQ = 10,  ORA-01422: exact fetch returns more than requested number of rows<br />
Error loading seed data for RG_REPORT_CALCULATIONS:  SEEDED_NAME = FSG_COLUMN_SET_14, AXIS_SEQ = 130, CALCULATION_SEQ = 10,  ORA-01422: exact fetch returns more than requested number of rows</p>
<p><strong>Solution:</strong><br />
1. Verify that duplicates exist:<br />
sqlplus apps<br />
SQL&gt; SELECT axis_set_id, axis_seq, calculation_seq, application_id, count(*)<br />
FROM RG_REPORT_CALCULATIONS<br />
group by axis_set_id, axis_seq, calculation_seq, application_id<br />
having count(*) &gt; 1;<br />
SQL&gt; SELECT axis_set_id, axis_seq, calculation_seq, count(*)<br />
FROM RG_REPORT_CALCULATIONS<br />
group by axis_set_id, axis_seq, calculation_seq<br />
having count(*) &gt; 1;<br />
2. Create table backups.<br />
SQL&gt; CREATE TABLE xx_rg_calc_dup<br />
AS<br />
SELECT axis_set_id, axis_seq, calculation_seq, application_id<br />
FROM rg_report_calculations<br />
GROUP BY axis_set_id, axis_seq, calculation_seq, application_id<br />
HAVING count(*) &gt; 1;<br />
SQL&gt; create table XX_rg_report_calculations_BCK as select * from rg_report_calculations;<br />
3. Delete duplicate rows.<br />
SQL&gt; delete from rg_report_calculations<br />
where rowid not in (select min(rowid)<br />
from rg_report_calculations<br />
group by axis_set_id, axis_seq, calculation_seq);<br />
SQL&gt; commit;<br />
4. Verify that no duplicates exist anymore:<br />
SQL&gt; SELECT rcd.*<br />
FROM xx_rg_calc_dup rcd<br />
WHERE NOT EXISTS (SELECT 1<br />
FROM rg_report_calculations rrc<br />
WHERE rcd.APPLICATION_ID = rrc.APPLICATION_ID<br />
AND rcd.AXIS_SEQ = rrc.AXIS_SEQ<br />
AND rcd.AXIS_SET_ID = rrc.AXIS_SET_ID<br />
AND rcd.CALCULATION_SEQ = rrc.CALCULATION_SEQ) ;<br />
no rows selected<br />
5. Launch adctrl and restart the failed worker.<br />
6. Cleanup/remove backup tables:<br />
sqlplus apps<br />
SQL&gt; DROP TABLE xx_rg_calc_dup;<br />
SQL&gt; DROP TABLE XX_rg_report_calculations_BCK;</td>
</tr>
<tr style="background-color: #def2f3;">
<td valign="top" width="45"><b>22</b></td>
<td valign="top" width="607"><strong>wfstartq.sql fails with ORA-04063: APPLSYS.WF_DEFERRED_QUEUE_M has errors</strong>&nbsp;</p>
<p><strong>Error message:</strong><br />
FAILED: file wfstartq.sql on worker  3.</p>
<p>sqlplus -s APPS/***** @/opt/ebsr12/apps/apps_st/appl/fnd/12.0.0/patch/115/sql/wfstartq.sql &amp;un_fnd<br />
declare<br />
*<br />
ERROR at line 1:<br />
ORA-04063: APPLSYS.WF_DEFERRED_QUEUE_M has errors<br />
ORA-06512: at &#8220;SYS.DBMS_AQADM_SYS&#8221;, line 5356<br />
ORA-06512: at &#8220;SYS.DBMS_AQADM&#8221;, line 289<br />
ORA-06512: at line 21</p>
<p><strong>Solution:</strong><br />
1. Drop the queue and the queue table:<br />
sqlplus &#8220;/ as sysdba&#8221;<br />
SQL&gt; select owner, object_name, object_type, status from dba_objects where object_name like &#8216;WF_%&#8217; and object_type=&#8217;QUEUE&#8217; and status=&#8217;INVALID&#8217;;</p>
<p>OWNER      OBJECT_NAME                  OBJECT   STATUS<br />
&#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;  &#8212;&#8212;&#8212;-  &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
APPLSYS    WF_DEFERRED_QUEUE_M  QUEUE     INVALID</p>
<p>SQL&gt; exec dbms_aqadm.drop_queue(queue_name=&gt; &#8216;APPLSYS.WF_DEFERRED_QUEUE_M&#8217;);<br />
SQL&gt; exec dbms_aqadm.drop_queue_table(&#8216;APPLSYS.WF_DEFERRED_TABLE_M&#8217;,TRUE);<br />
2. Create the queue and the queue table again (applmgr user):<br />
sqlplus apps/&lt;apps pwd&gt; @$FND_TOP/patch/115/sql/wfquec2.sql APPS APPLSYS &lt;applsys pwd&gt;<br />
3. Launch adctrl and restart the failed worker.</p>
<p><strong>Reference:</strong><br />
Workflow Queues Creation Scripts (Doc ID 398412.1)</td>
</tr>
<tr style="background-color: #bbe5e6;">
<td valign="top" width="45"><b>23</b></td>
<td valign="top" width="607"><strong>cskbcat.ldt fails with: ORA-29861: domain index is marked LOADING/FAILED/UNUSABLE</strong>&nbsp;</p>
<p><strong>Error message:</strong><br />
FAILED: file cskbcat.ldt  on worker  3.</p>
<p>Error calling FNDLOAD function.<br />
Uploading from staging tables<br />
Error loading seed data for CS_KB_SOLN_CATEGORIES_VL:  CATEGORY_ID = 1,  ORA-29861: domain index is marked LOADING/FAILED/UNUSABLE</p>
<p><strong>Solution:</strong><br />
1. Create Packages and Install CS Text index preferences and indexes<br />
sqlplus apps<br />
SQL&gt; @$CS_TOP/patch/115/sql/cskfctxs.pls APPS<br />
SQL&gt; @$CS_TOP/patch/115/sql/cskfctxb.pls APPS<br />
SQL&gt; @$CS_TOP/patch/115/sql/cskbctxp.sql APPS CS CTXSYS<br />
SQL&gt; @$CS_TOP/patch/115/sql/cskbsetx.sql CS<br />
SQL&gt; @$CS_TOP/patch/115/sql/cssrcrix.sql APPS CS<br />
SQL&gt; @$CS_TOP/patch/115/sql/cskbelex.sql CS<br />
SQL&gt; @$CS_TOP/patch/115/sql/cskbcatx.sql CS<br />
SQL&gt; @$CS_TOP/patch/115/sql/cskbforx.sql CS<br />
SQL&gt; @$CS_TOP/patch/115/sql/csksynib.pls CS APPS<br />
2. Launch adctrl and restart the failed worker.<br />
<span style="line-height: 1.5em;"> </span></td>
</tr>
<tr style="background-color: #def2f3;">
<td valign="top" width="45"><b>24</b></td>
<td valign="top" width="607"><strong>jtfpfstart.sql fails with: PLS-00905: object APPS.JTF_PF_CONV_PKG is invalid</strong>&nbsp;</p>
<p><strong>Error message:</strong><br />
FAILED: file jtfpfstart.sql on worker  1.</p>
<p>sqlplus -s APPS/***** @/opt/ebsr12/apps/apps_st/appl/jtf/12.0.0/patch/115/sql/jtfpfstart.sql &amp;un_apps &amp;un_jtf<br />
dbms_aqadm.drop_queue_table(queue_table=&gt;JTF_PF_CONV_PKG.QTABLENAME, force=&gt;true);<br />
*<br />
ERROR at line 23:<br />
ORA-06550: line 23, column 47:<br />
PLS-00905: object APPS.JTF_PF_CONV_PKG is invalid<br />
ORA-06550: line 23, column 6:<br />
PL/SQL: Statement ignored<br />
&#8230;</p>
<p><strong>Solution:</strong><br />
1. Logon as the applmgr user and change directory:<br />
cd $JTF_TOP/patch/115/xdf<br />
2. Run next java command:<br />
adjava -mx512m -nojit oracle.apps.fnd.odf2.FndXdfCmp apps &lt;apps pwd&gt; apps &lt;apps pwd&gt; thin &lt;database tier&gt;:&lt;db port&gt;:&lt;ENV&gt; type jtf_pf_tabletype.xdf $FND_TOP/patch/115/xdf/xsl<br />
3. If there are no errors, recompile the JTF_PF_CONV_PKG package:<br />
sqlplus apps/&lt;apps pwd&gt;<br />
SQL&gt; alter package APPS.JTF_PF_CONV_PKG compile;<br />
SQL&gt; show err<br />
4. Launch adctrl and restart the failed worker.</p>
<p><strong>Reference:</strong><br />
Upgrade 11i to R12.1.3 worker fails on jtfpfstart.sql PLS-00905: object APPS.JTF_PF_CONV_PKG is invalid (Doc ID 1463373.1)<br />
<span style="line-height: 1.5em;"> </span></td>
</tr>
<tr style="background-color: #bbe5e6;">
<td valign="top" width="45"><b>25</b></td>
<td valign="top" width="607"><strong>okladtxm.sql fails with: ORA-02289: sequence does not exist</strong>&nbsp;</p>
<p><strong>Error message:</strong><br />
FAILED: file okladtxm.sql on worker  1.</p>
<p>ERROR at line 110:<br />
ORA-06550: line 110, column 9:<br />
PL/SQL: ORA-02289: sequence does not exist<br />
ORA-06550: line 68, column 5:<br />
PL/SQL: SQL Statement ignored</p>
<p><strong>Solution:</strong><br />
1. Check if the OKL product is installed/used.  You can use &#8220;$AD_TOP/sql/adutconf.sql&#8221; to find out if you are using the product.<br />
2. If you have not installed the OKL product, you can skip the failed job. Use adctrl hidden option #8, to skip the failed job.<br />
3. If you are using this product, see MOS 1570669.1 or raise an SR in order to get the detailed procedure to fix.</p>
<p><strong>Reference:</strong><br />
Patch 9239090 Fails While Running Okladtxm.sql &#8220;PL/SQL: ORA-02289: sequence does not exist&#8221; (Doc ID 1570669.1)<br />
<span style="line-height: 1.5em;"> </span></td>
</tr>
<tr style="background-color: #def2f3;">
<td valign="top" width="45"><b>26</b></td>
<td valign="top" width="607"><strong>zpbremcwm.sql fails with: PLS-00904: insufficient privilege to access object OLAPSYS.CWM2_OLAP_CUBE</strong>&nbsp;</p>
<p><strong>Error message:</strong><br />
FAILED: file zpbremcwm.sql on worker  1.</p>
<p>ERROR at line 235:<br />
ORA-06550: line 235, column 6:<br />
PLS-00904: insufficient privilege to access object OLAPSYS.CWM2_OLAP_CUBE<br />
ORA-06550: line 235, column 6:<br />
PL/SQL: Statement ignored<br />
ORA-06550: line 239, column 6:<br />
PLS-00904: insufficient privilege to access object OLAPSYS.CWM2_OLAP_DIMENSION<br />
ORA-06550: line 239, column 6:<br />
PL/SQL: Statement ignored<br />
ORA-06550: line 243, column 6:<br />
PLS-00904: insufficient privilege to access object OLAPSYS.CWM2_OLAP_CATALOG<br />
ORA-06550: line 243, column 6:<br />
PL/SQL: Statement ignored<br />
ORA-06550: line 247, column 4:<br />
PLS-00904: insufficient privilege to access object<br />
OLAPSYS.CWM2_OLAP_METADATA_REFRESH<br />
ORA-06550: line 247, column 4:<br />
PL/SQL: Statement ignored</p>
<p><strong>Solution:</strong><br />
1. Grant the following privileges to the APPS user:<br />
sqlpus system<br />
grant execute on OLAPSYS.CWM2_OLAP_METADATA_REFRESH to apps;<br />
grant execute on OLAPSYS.CWM2_OLAP_CATALOG to apps;<br />
grant execute on OLAPSYS.CWM2_OLAP_DIMENSION to apps;<br />
grant execute on OLAPSYS.CWM2_OLAP_CUBE to apps;<br />
2. Launch adctrl and restart the failed worker.</p>
<p><strong>Reference:</strong><br />
ZPBREMCWM.SQL Returns Error: PLS-00904: Insufficient Privilege To Access Object (Doc ID 744973.1)<span style="line-height: 1.5em;"> </span></td>
</tr>
<tr style="background-color: #bbe5e6;">
<td valign="top" width="45"><b>27</b></td>
<td valign="top" width="607"><strong>biv_b_age_h_sum_mv.xdf fails with: ORA-54015 duplicate column expression was specified</strong>&nbsp;</p>
<p><strong>Error message:</strong><br />
FAILED: file biv_b_age_h_sum_mv.xdf on worker  5.</p>
<p>Exception occured  ORA-54015: Duplicate column expression was specified<br />
ORA-06512: at &#8220;APPS.AD_MV&#8221;, line 131<br />
ORA-06512: at &#8220;APPS.AD_MV&#8221;, line 289<br />
ORA-06512: at line 1</p>
<p><strong>Solution:</strong><br />
1. Download and unzip patch 10163753.<br />
2. Backup current biv_b_age_h_sum_mv.xdf file:<br />
cp $BIV_TOP/patch/115/xdf/biv_b_age_h_sum_mv.xdf $BIV_TOP/patch/115/xdf/biv_b_age_h_sum_mv.xdf.org<br />
3. Copy the biv_b_age_h_sum_mv.xdf file from patch 10163753 to the $BIV_TOP/patch/115/xdf directory:<br />
cp &#8230;/10163753/biv/patch/115/xdf/biv_b_age_h_sum_mv.xdf $BIV_TOP/patch/115/xdf<br />
4. Launch adctrl and restart the failed worker.</p>
<p><strong>Reference:</strong><br />
This error is described in MOS 1322144.1. This error can be avoided when applying patch 10163753 before upgrade patch 6678700.<br />
Error &#8211; ORA-54015 : biv_b_age_h_sum_mv.xdf Failes with Duplicate Column Expression was Specified (Doc ID 1322144.1)</td>
</tr>
<tr style="background-color: #def2f3;">
<td valign="top" width="45"><b>28</b></td>
<td valign="top" width="607"><strong>MSC_RESOURCE_HIERARCHY_MV.xdf fails with: ORA-00955: name is already used by an existing object</strong>&nbsp;</p>
<p><strong>Error message:</strong><br />
FAILED: file MSC_RESOURCE_HIERARCHY_MV.xdf on worker  3.</p>
<p>Exception occured  ORA-00955: name is already used by an existing object<br />
ORA-06512: at &#8220;APPS.AD_MV&#8221;, line 131<br />
ORA-06512: at &#8220;APPS.AD_MV&#8221;, line 289<br />
ORA-06512: at line 1</p>
<p><strong>Solution:</strong><br />
1. Check if object MSC_RESOURCE_HIERARCHY_MV already exist:<br />
SQL&gt; select owner, object_name, object_type, status, created<br />
from dba_objects where object_name in (&#8216;MSC_RESOURCE_HIERARCHY_MV&#8217;)<br />
order by 2;</p>
<p>OWNER  OBJECT_NAME                             OBJECT_TYPE       STATUS   CREATED<br />
&#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;<br />
MSC      MSC_RESOURCE_HIERARCHY_MV  TABLE                  VALID     03-SEP-11<br />
MSC      MSC_RESOURCE_HIERARCHY_MV  TABLE PARTITION VALID     03-SEP-11<br />
MSC      MSC_RESOURCE_HIERARCHY_MV  TABLE PARTITION VALID     03-SEP-11<br />
MSC      MSC_RESOURCE_HIERARCHY_MV  TABLE PARTITION VALID     03-SEP-11<br />
APPS     MSC_RESOURCE_HIERARCHY_MV  SYNONYM             VALID     03-SEP-11</p>
<p>2. Check if  MSC_RESOURCE_HIERARCHY_MV contain any rows:<br />
SQL&gt; select count(*) from MSC.MSC_RESOURCE_HIERARCHY_MV;</p>
<p>COUNT(*)<br />
&#8212;&#8212;&#8212;-<br />
0</p>
<p>3. Drop the object if it contains no rows:<br />
SQL&gt; Drop synonym MSC_RESOURCE_HIERARCHY_MV;<br />
SQL&gt; drop table MSC.MSC_RESOURCE_HIERARCHY_MV;<br />
4. Verify that no objects with the name MSC_RESOURCE_HIERARCHY_MV exist:<br />
SQL&gt; select owner, object_name, object_type, status, created<br />
from dba_objects where object_name in (&#8216;MSC_RESOURCE_HIERARCHY_MV&#8217;) order by 2;<br />
no rows selected<br />
5. Launch adctrl and restart the failed worker.<br />
<span style="line-height: 1.5em;"> </span></td>
</tr>
<tr style="background-color: #bbe5e6;">
<td valign="top" width="45"><b>29</b></td>
<td valign="top" width="607"><strong>MSC_ITEM_HIERARCHY_MV.xdf fails with: ORA-00955: name is already used by an existing object</strong>&nbsp;</p>
<p><strong>Error message:</strong><br />
FAILED: file MSC_ITEM_HIERARCHY_MV.xdf on worker  4.</p>
<p>Job failed with error below:<br />
Exception occured  ORA-00955: name is already used by an existing object<br />
ORA-06512: at &#8220;APPS.AD_MV&#8221;, line 131<br />
ORA-06512: at &#8220;APPS.AD_MV&#8221;, line 289<br />
ORA-06512: at line 1</p>
<p><strong>Solution:</strong><br />
1. Check if object MSC_ITEM_HIERARCHY_MV already exist:<br />
SQL&gt; select owner, object_name, object_type, status, created<br />
from dba_objects where object_name in (&#8216;MSC_ITEM_HIERARCHY_MV&#8217;)<br />
order by 2;</p>
<p>OWNER OBJECT_NAME                     OBJECT_TYPE       STATUS  CREATED<br />
&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;   &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;  &#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;<br />
MSC     MSC_ITEM_HIERARCHY_MV  TABLE PARTITION  VALID    03-SEP-11<br />
MSC     MSC_ITEM_HIERARCHY_MV  TABLE                   VALID    03-SEP-11<br />
MSC     MSC_ITEM_HIERARCHY_MV  TABLE PARTITION  VALID    03-SEP-11<br />
MSC     MSC_ITEM_HIERARCHY_MV  TABLE PARTITION  VALID    03-SEP-11<br />
APPS    MSC_ITEM_HIERARCHY_MV  SYNONYM              VALID    03-SEP-11</p>
<p>2. Check if MSC_ITEM_HIERARCHY_MV contain any rows:<br />
SQL&gt; select count(*) from MSC.MSC_RESOURCE_HIERARCHY_MV;</p>
<p>COUNT(*)<br />
&#8212;&#8212;&#8212;-<br />
0</p>
<p>3. Drop the object if it contains no rows:<br />
SQL&gt; drop synonym MSC_ITEM_HIERARCHY_MV;<br />
SQL&gt; drop table MSC.MSC_ITEM_HIERARCHY_MV;<br />
4. Verify that no objects with the name MSC_ITEM_HIERARCHY_MV exist:<br />
SQL&gt; select owner, object_name, object_type, status, created<br />
from dba_objects where object_name in (&#8216;MSC_ITEM_HIERARCHY_MV&#8217;) order by 2;<br />
no rows selected<br />
5. Launch adctrl and restart the failed worker.<br />
<span style="line-height: 1.5em;"> </span></td>
</tr>
<tr style="background-color: #def2f3;">
<td valign="top" width="45"><b>30</b></td>
<td valign="top" width="607"><strong>fem_bal_nacc_hier_l2_mv.xdf fails with: ORA-54015: Duplicate column expression was specified</strong>&nbsp;</p>
<p><strong>Error message:</strong><br />
FAILED: file fem_bal_nacc_hier_l2_mv.xdf on worker  1.</p>
<p>Exception occured  ORA-54015: Duplicate column expression was specified<br />
ORA-06512: at &#8220;APPS.AD_MV&#8221;, line 131<br />
ORA-06512: at &#8220;APPS.AD_MV&#8221;, line 289<br />
ORA-06512: at line 1<br />
from FEM_DIS_NAT_ACCTS_HIER_B,<br />
*<br />
ERROR at line 34:<br />
ORA-54015: Duplicate column expression was specified</p>
<p><strong>Solution:</strong><br />
1. Download and unzip patch 10406817<br />
2. Backup the fem_bal_nacc_hier_l2_mv.xdf file:<br />
mv $FEM_TOP/patch/115/xdf/fem_bal_nacc_hier_l2_mv.xdf $FEM_TOP/patch/115/xdf/fem_bal_nacc_hier_l2_mv.xdf.org<br />
3. Copy the fem_bal_nacc_hier_l2_mv.xdf file from the patch to the $FEM_TOP/patch/115/xdf directory:<br />
cp &#8230;/10406817/fem/patch/115/xdf/fem_bal_nacc_hier_l2_mv.xdf $FEM_TOP/patch/115/xdf/fem_bal_nacc_hier_l2_mv.xdf<br />
4. Launch adctrl and restart the failed worker.</p>
<p><strong>Reference:</strong><br />
Patch Fails on Fem_bal_nacc_hier_l2_mv.xdf After Upgrade to Oracle 11.2.0.2 Database (<a title="Doc ID 1284055.1" href="https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-state=1cg2xheak9_9&amp;_afrLoop=17967487204758">Doc ID 1284055.1</a>)<br />
Index Creation Failed on FEM_BAL_NACC_HIER_L2_MV With ORA-54015 During Import Of Oracle Apps (12.1.1) On Oracle DB (11.2.0.2) (<a title="Doc ID 1526255.1" href="https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-state=1cg2xheak9_9&amp;_afrLoop=17925999117281" target="_blank">Doc ID 1526255.1</a>)</td>
</tr>
<tr style="background-color: #bbe5e6;">
<td valign="top" width="45"><b>31</b></td>
<td valign="top" width="607"><strong>czhist.sql fails with: ORA-20002: Version of statistics table APPLSYS.FND_STATTAB is too old</strong>&nbsp;</p>
<p><strong>Error message:</strong><br />
FAILED: file czhist.sql   on worker  1.</p>
<p>BEGIN FND_STATS.GATHER_COLUMN_STATS(&#8216;CZ&#8217;,&#8217;CZ_DEVL_PROJECTS&#8217;,&#8217;DELETED_FLAG&#8217;); END;<br />
ERROR at line 1:<br />
ORA-20002: Version of statistics table APPLSYS.FND_STATTAB is too old.  Please try upgrading it with dbms_stats.upgrade_stat_table<br />
ORA-06512: at &#8220;APPS.FND_STATS&#8221;, line 664<br />
ORA-06512: at &#8220;APPS.FND_STATS&#8221;, line 2497<br />
ORA-06512: at line 1</p>
<p><strong>Solution:</strong><br />
1. Run the upgrade_stat_table procedure on the fnd_stattab table:<br />
sqlplus &#8220;/ as sysdba&#8221;<br />
SQL&gt; EXECUTE DBMS_STATS.UPGRADE_STAT_TABLE(&#8216;APPLSYS&#8217;,&#8217;FND_STATTAB&#8217;);<br />
2. Launch adctrl and restart the failed worker.</p>
<p><strong>Reference:</strong><br />
Script Czhist.Sql Fails During Application Of Patch 6678700 (<a title="Doc ID 1281478.1" href="https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-state=1cg2xheak9_9&amp;_afrLoop=17834786518175" target="_blank">Doc ID 1281478.1</a>)<br />
<span style="line-height: 1.5em;"> </span></td>
</tr>
<tr style="background-color: #def2f3;">
<td valign="top" width="45"><b>32</b></td>
<td valign="top" width="607"><strong>ademusr.sql fails with: ORA-01031: insufficient privileges</strong>&nbsp;</p>
<p><strong>Error message:</strong><br />
FAILED: file ademusr.sql  on worker  2.</p>
<p>GRANT select on WF_DEFERRED to em_oam_monitor_role<br />
AD Worker error:<br />
The following ORACLE error:<br />
ORA-01031: insufficient privileges</p>
<p><strong>Solution:</strong><br />
1. Grant privileges to APPS:<br />
sqlplus &#8220;/ as sysdba&#8221;<br />
SQL&gt; GRANT select on applsys.WF_DEFERRED to APPS with grant option;<br />
SQL&gt; GRANT select on applsys.WF_DEFERRED_TABLE_M to APPS with grant option;<br />
SQL&gt; GRANT select on applsys.WF_ERROR to APPS with grant option;<br />
2. Launch adctrl and restart the failed worker.</p>
<p><strong>Reference:</strong><br />
Get ORA-01031: Insufficient Privileges Running Ademusr.Sql On WF_ERROR Table (<a title="Get ORA-01031: Insufficient Privileges Running Ademusr.Sql On WF_ERROR" href="https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-state=1cg2xheak9_9&amp;_afrLoop=17754065349973" target="_blank">Doc ID 437760.1</a>)</td>
</tr>
</tbody>
</table>
]]></content:encoded>
					
					<wfw:commentRss>https://bluegecko.dk/ebs-r12-1-1-upgrade-seen-errors-when-applying-upgrade-patch-driver-u6678700-drv/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Zabbix &#8211; system monitoring</title>
		<link>https://bluegecko.dk/zabbix-system-monitoring/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=zabbix-system-monitoring</link>
					<comments>https://bluegecko.dk/zabbix-system-monitoring/#respond</comments>
		
		<dc:creator><![CDATA[lbjensen]]></dc:creator>
		<pubDate>Mon, 04 Nov 2013 14:11:47 +0000</pubDate>
				<category><![CDATA[System monitoring]]></category>
		<category><![CDATA[database monitoring]]></category>
		<category><![CDATA[monitoring]]></category>
		<category><![CDATA[system monitoring]]></category>
		<category><![CDATA[zabbix]]></category>
		<guid isPermaLink="false">http://www.bluegecko.dk/?p=3495</guid>

					<description><![CDATA[Recently we come across an open source system monitoring tool called &#8220;Zabbix&#8221; Zabbix has existed since 2001 and the recent stable version today is 2.20 We have chosen Zabbix because of the easy to use interface and the scalability/usability Also to be mentioned: distributed monitoring with centralized web administration support for both polling and trapping [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Recently we come across an open source system monitoring tool called &#8220;Zabbix&#8221;</p>
<p><a title="Zabbix homepage" href="http://www.zabbix.com" target="_blank">Zabbix </a>has existed since 2001 and the recent stable version today is <a title="Zabbix 2.20" href="http://www.zabbix.com/download.php" target="_blank">2.20</a></p>
<p>We have chosen Zabbix because of the easy to use interface and the scalability/usability</p>
<p>Also to be mentioned:</p>
<ul>
<li>distributed monitoring with centralized web administration</li>
<li>support for both polling and trapping mechanisms</li>
<li>server software for Linux, Solaris, HP-UX, AIX, FreeBSD, OpenBSD, OS X</li>
<li>native high performance agents (client software for Linux, Solaris, HP-UX, AIX, FreeBSD, OpenBSD, OS X, Tru64/OSF1, Windows NT4.0, Windows 2000, Windows 2003, Windows XP, Windows Vista)</li>
<li>agent-less monitoring</li>
<li>secure user authentication</li>
<li>flexible user permissions</li>
<li>web-based interface</li>
<li>flexible e-mail notification of predefined events</li>
<li>high-level (business) view of monitored resources</li>
<li>audit log</li>
<li>Many open source plugins: DBforbix, Orabix</li>
</ul>
<div>Further features can be found on <a title="Zabbix features" href="http://www.zabbix.com/features.php" target="_blank">zabbix&#8217;s homepage</a></div>
]]></content:encoded>
					
					<wfw:commentRss>https://bluegecko.dk/zabbix-system-monitoring/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Zabbix &#8211; Oracle monitoring</title>
		<link>https://bluegecko.dk/zabbix-oracle-monitoring/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=zabbix-oracle-monitoring</link>
					<comments>https://bluegecko.dk/zabbix-oracle-monitoring/#respond</comments>
		
		<dc:creator><![CDATA[lbjensen]]></dc:creator>
		<pubDate>Mon, 04 Nov 2013 14:11:35 +0000</pubDate>
				<category><![CDATA[System monitoring]]></category>
		<category><![CDATA[database monitoring]]></category>
		<category><![CDATA[orabbix]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[system monitoring]]></category>
		<category><![CDATA[zabbix]]></category>
		<guid isPermaLink="false">http://www.bluegecko.dk/?p=3509</guid>

					<description><![CDATA[To follow up on post recently blog about the zabbix system monitoing tool we have installed the Orabix for Oracle monitoring. This tool can: DBVersion (and relative validity of package) Archive ( archive log production with relative trend) EventWaits (monitor Files I/O,single block read, multiblock read, direct path read,SQLNet messages,  Controlfile I/O,LogWrite) HitRatio (monitor Hit Ratio [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>To follow up on post recently blog about the zabbix <a title="Zabbix system monitoring tool" href="http://www.bluegecko.dk/system-monitoring-2/zabbix-system-monitoring/" target="_blank">system monitoing tool</a> we have installed the Orabix for Oracle monitoring.</p>
<p>This tool can:</p>
<ol>
<li>DBVersion (and relative validity of package)</li>
<li>Archive ( archive log production with relative trend)</li>
<li>EventWaits (monitor Files I/O,single block read, multiblock read, direct path read,SQLNet messages,  Controlfile I/O,LogWrite)</li>
<li>HitRatio (monitor Hit Ratio on Trigger, Tables/Procedures, SQLArea,Body)</li>
<li>Logical I/O (monitor Logical I/O values of : Current Read, Consistent Read, Block Change)</li>
<li>PGA memory</li>
<li>SGA (in particolar: Fixed Buffer, Java Pool, Large Pool, Log Buffer,Shared Pool,Buffer Cache)</li>
<li>Physical I/O (Redo Writes,Datafiles Writes,Datafiles Read)</li>
<li>SharedPool (Pool Dictionary Cache, Pool Free Memory, Library Cache,Sql Area ,Misc.)</li>
<li>Pin Hit Ratio (monitor Hit Ratio on Trigger, Tables/Procedures, SQLArea,Body)</li>
<li>Session/Processes (monitor Sessions and processes)</li>
<li>Session (Active Session, Inactive Sessions, System Session)</li>
<li>Graphs of the above</li>
<li>Tablespace report (together with <a title="Jasper reports" href="http://www.jaspersoft.com" target="_blank">iReports </a>and self developed MySQL procedures)</li>
<li><strong>Custom checks (just need the sql to be executed)</strong></li>
</ol>
<p>We are using the Orabbix together with zabbix proxy feature. This gives the ability to monitor several hosts/databases and have it all sent to the zabbix-server at one time. This also simplifies changes to the standard monitoring of hosts, because it is only requeired to change the monitor checks 1 place.</p>
<p>We have succesfully installed the zabbix proxy on a <a title="Small linux $25 pc" href="http://www.raspberrypi.org" target="_blank">raspberry pi</a>. This makes it very easy to setup a zabbix monitoring setup at our customer site.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://bluegecko.dk/zabbix-oracle-monitoring/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Identify performance decrease due to enabled trace in an E-Business Suite R12 environment</title>
		<link>https://bluegecko.dk/identify-performance-decrease-due-to-enabled-trace-in-an-e-business-suite-r12-environment/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=identify-performance-decrease-due-to-enabled-trace-in-an-e-business-suite-r12-environment</link>
					<comments>https://bluegecko.dk/identify-performance-decrease-due-to-enabled-trace-in-an-e-business-suite-r12-environment/#respond</comments>
		
		<dc:creator><![CDATA[Dimitri van de Ven]]></dc:creator>
		<pubDate>Fri, 11 Oct 2013 10:16:51 +0000</pubDate>
				<category><![CDATA[ebs]]></category>
		<category><![CDATA[E-Business Suite performance]]></category>
		<category><![CDATA[EBS performance]]></category>
		<category><![CDATA[FND_CONCURRENT_PROGRAMS.ENABLE_TRACE]]></category>
		<category><![CDATA[FND: Debug Log Enabled]]></category>
		<category><![CDATA[R12 performance]]></category>
		<category><![CDATA[SLA: Enable Diagnostics]]></category>
		<category><![CDATA[trace profile options]]></category>
		<category><![CDATA[XLA_DIAG_EVENTS]]></category>
		<category><![CDATA[XLA_DIAG_SOURCES]]></category>
		<guid isPermaLink="false">http://www.bluegecko.dk/?p=3455</guid>

					<description><![CDATA[Subledger Accounting profile option &#8220;SLA: Enable Diagnostics&#8221; Trace data generated during create accounting is stored in SLA diagnostic tables (XLA_DIAG_SOURCES og XLA_DIAG_EVENTS), when profile option &#8220;SLA: Enable Diagnostics&#8221; is set to &#8220;Y&#8221;. It is important to disable this profile option after use, to avoid performance decrease. Sql below shows if profile option &#8220;SLA: Enable Diagnostics&#8221; [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><strong>Subledger Accounting profile option &#8220;SLA: Enable Diagnostics&#8221;</strong></p>
<p>Trace data generated during create accounting is stored in SLA diagnostic tables (XLA_DIAG_SOURCES og XLA_DIAG_EVENTS), when profile option &#8220;SLA: Enable Diagnostics&#8221; is set to &#8220;Y&#8221;. It is important to disable this profile option after use, to avoid performance decrease. Sql below shows if profile option &#8220;SLA: Enable Diagnostics&#8221; is enabled. Trace is enabled when  &#8220;profile_option_value&#8221; is &#8220;Y&#8221;.</p>
<p><code>sqlplus apps</code></p>
<p><code>column profile_option_name format a20<br />
column user_profile_option_name format a25<br />
column profile_option_value format a14</code></p>
<p><code>SELECT tl.profile_option_name, tl.user_profile_option_name<br />
,substr(decode(a.level_id,10001,'SITE',10002,'APPLN',10003,'RESP',10004,'USER'),1,5) "Level"<br />
,substr(decode(a.level_id,10001,'Site',10002,c.application_short_name,10003,b.<br />
responsibility_name,10004,d.user_name),1,30) "Level Value"<br />
,nvl(a.profile_option_value,'Is Null') "Profile Value"<br />
FROM fnd_profile_option_values a, fnd_responsibility_tl b, fnd_application c, fnd_user d, fnd_profile_options e, fnd_profile_options_tl tl<br />
WHERE lower(tl.user_profile_option_name) like lower('SLA: Enable Diagnostics')<br />
AND e.profile_option_id = a.profile_option_id<br />
AND tl.profile_option_name = e.profile_option_name<br />
AND a.level_value = b.responsibility_id (+)<br />
AND a.level_value = c.application_id (+)<br />
AND a.level_value = d.user_id (+)<br />
AND tl.language='US'<br />
ORDER BY 1, 2, 3, 4 DESC;</code></p>
<p>Additionally, SLA diagnostics tables needs to be purged after trace data is analyzed to achieve an acceptable performance during create accounting. This can be done by running concurrent request &#8220;Purge Transaction Objects Diagnostics&#8221; or purge tables XLA_DIAG_SOURCES and XLA_DIAG_EVENTS, as described in MOS 1412173.1.</p>
<p>The correct way to run SLA trace is described in next steps:</p>
<p>1) Change profile option “SLA: Enable Diagnostics” to &#8220;Y&#8221;.<br />
2) Run “Create Accounting”.<br />
3) Change profile option “SLA: Enable Diagnostics” to &#8220;N&#8221;.<br />
4) Run “Transaction Objects Diagnostics” report.<br />
5) Run “Purge Transaction Objects Diagnostics”.</p>
<p><strong>Profile option “FND: Debug Log Enabled”</strong></p>
<p>Trace data is written to a trace file and/or to table FND_LOG_MESSAGES, when profile option &#8220;FND: Debug Log Enabled&#8221; is set to &#8220;Y&#8221;. The result will be an inferior performance. For this reason, it is important to disable corresponding profile option after wanted trace data is collected. Sql below shows if profile option , &#8220;FND: Debug Log Enabled&#8221; is enabled. Trace is enabled when &#8220;profile_option_value&#8221; is &#8220;Y&#8221;. Additionally profile option &#8220;FND: Debug Log Level&#8221; is listed. This profile option shows the level of tracing. The lower the profile option value for corresponding profile option, the more trace data is collected.</p>
<p><code>sqlplus apps</code></p>
<p><code>column user_profile_option_name format a25<br />
column profile_option_value format a14</code></p>
<p><code>SELECT tl.user_profile_option_name<br />
,substr(decode(a.level_id,10001,'SITE',10002,'APPLN',10003,'RESP',10004,'USER'<br />
),1,5) "Level"<br />
,substr(decode(a.level_id,10001,'Site',10002,c.application_short_name,10003,b.<br />
responsibility_name,10004,d.user_name),1,30) "Level Value"<br />
,nvl(a.profile_option_value,'Is Null') "Profile Value"<br />
FROM fnd_profile_option_values a, fnd_responsibility_tl b, fnd_application c, fnd_user d, fnd_profile_options e, fnd_profile_options_tl tl<br />
WHERE tl.profile_option_name in ('AFLOG_ENABLED', 'AFLOG_LEVEL')<br />
AND tl.language='US'<br />
AND e.profile_option_id = a.profile_option_id<br />
AND tl.profile_option_name = e.profile_option_name<br />
AND a.level_value = b.responsibility_id (+)<br />
AND a.level_value = c.application_id (+)<br />
AND a.level_value = d.user_id (+)<br />
ORDER BY 2, 3, 1, 4 DESC;</code></p>
<p>below is what the values for profile option &#8220;FND: Debug Log Level&#8221; means:</p>
<p>1. Unexpected      Lowest log level &#8211; Lowest performance decrease<br />
2. Error<br />
3. Exception<br />
4. Event<br />
5. Procedure<br />
6. Statement        Highest log level &#8211; Highest performance decrease</p>
<p>More about &#8220;FND: Debug Log Enabled&#8221; in MOS 433199.1.<br />
<strong></strong></p>
<p><strong>Identify Concurrent Programs with trace enabled</strong></p>
<p>It happens frequently that someone enables trace on a Concurrent Program and forget to disable it again. There may be a significant decrease in performance when a Concurrent program is trace enabled. Next sql shows Concurrent Programs that have trace enabled:</p>
<p><code>sqlplus apps</code></p>
<p><code>column concurrent_program_name format a25</code><br />
<code>column user_concurrent_program_name format a40</code></p>
<p><code>select a.concurrent_program_id,a.concurrent_program_name, b.User_concurrent_program_name, c.user_name "LAST_UPDATED_BY", a.enable_trace</code><br />
<code>from FND_CONCURRENT_PROGRAMS a, fnd_concurrent_programs_tl b, fnd_user c</code><br />
<code>where a.concurrent_program_id=b.concurrent_program_id</code><br />
<code>and a.last_updated_by=c.user_id</code><br />
<code>and a.enable_trace='Y'</code><br />
<code>and b.language='US';</code></p>
]]></content:encoded>
					
					<wfw:commentRss>https://bluegecko.dk/identify-performance-decrease-due-to-enabled-trace-in-an-e-business-suite-r12-environment/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>DOUG-dag 2013</title>
		<link>https://bluegecko.dk/doug-dag-2013/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=doug-dag-2013</link>
					<comments>https://bluegecko.dk/doug-dag-2013/#respond</comments>
		
		<dc:creator><![CDATA[Dimitri van de Ven]]></dc:creator>
		<pubDate>Fri, 04 Oct 2013 12:39:05 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<guid isPermaLink="false">http://www.bluegecko.dk/?p=3453</guid>

					<description><![CDATA[Årets DOUG-dag bliver 23. oktober 2013 og afholdes hos Oracle i Ballerup, Metalbuen 66, 2750 Ballerup. Du kan tilmelde dig på http://tinyurl.com/dougday2013. Tidsplan, talere og emner nedenfor. Tidsplan: &#160; 0900-0930 Registrering og morgenmad 0930-0945 Velkomst 0945-1030 Mark Anthony 1030-1730 Sessioner i tre spor med fokus på henholdsvis 12c, Fusion Middleware, Applications, inklusive en times frokostpause. [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Årets DOUG-dag bliver 23. oktober 2013 og afholdes hos Oracle i Ballerup, Metalbuen 66, 2750 Ballerup. Du kan tilmelde dig på <a title="http://tinyurl.com/dougday2013" href="http://tinyurl.com/dougday2013" target="_blank">http://tinyurl.com/dougday2013</a>. Tidsplan, talere og emner nedenfor.</p>
<p><strong>Tidsplan:</strong></p>
<p>&nbsp;</p>
<table border="1">
<tbody>
<tr>
<td>0900-0930</td>
<td>Registrering og morgenmad</td>
</tr>
<tr>
<td>0930-0945</td>
<td>Velkomst</td>
</tr>
<tr>
<td>0945-1030</td>
<td>Mark Anthony</td>
</tr>
<tr>
<td>1030-1730</td>
<td>Sessioner i tre spor med fokus på henholdsvis 12c, Fusion Middleware,<br />
Applications, inklusive en times frokostpause.</td>
</tr>
<tr>
<td>1730-1800</td>
<td>Forfriskninger</td>
</tr>
<tr>
<td>1800-2100</td>
<td>Middag</td>
</tr>
</tbody>
</table>
<p><strong>Talere</strong></p>
<p><strong>Lars Bo Vanting</strong></p>
<p>Lars Bo Vanting has been working as an Oracle DBA and consultant in Denmark, Germany and Switzerland since 1992. The past 10 years primary focus has been on Oracle’s database high-availability architecture (MAA) including RAC and Data Guard. And the past couple of years also including Oracle Appliances, in particular Oracle Database Appliance.</p>
<p><em><strong>Oracle Database Appliance – A Real-World Implementation for Database Consolidation</strong></em><br />
The Oracle Database Appliance is useful for database consolidation and rapid deployment and provisioning. This presentation will go through a real-world implementation of ODA v1 at one of Blue Gecko’s customer sites. Both the considerations behind the choice of ODA as well as technical details about the setup will be covered.</p>
<p><strong>Mike Dietrich, Oracle</strong></p>
<p>Mike Dietrich has over twenty years experience in the information technology industry. Mr. Dietrich has spent the last seventeen years at Oracle Corporation where he has held senior and management roles in both the sales and support organizations. Currently, he is a Senior Principal Technologist n the Database Upgrade Development Group. Mike is responsible for evangelizing, influencing and demonstrating Oracle technology solutions related to database upgrades and migrations to Oracle customers and partners. Besides that he works consistently with customers in key reference projects both onsite and remotely. Mike Dietrich holds a graduate engineer degree of Georg-Simon-Ohm University of Appliend Sciences in Telecommunication Technologies and Computer Science. You’ll find more information on Mike’s blog: <a href="http://blogs.oracle.com/UPGRADE">http://blogs.oracle.com/UPGRADE</a>.</p>
<p><em><strong>Different Ways to Upgrade, Migrate and Consolidate with Oracle Database 12c</strong></em><br />
The most widely anticipated feature of Oracle Database 12c is now available, and you may be wondering just how you can move your current databases to pluggable databases in a multitenant architecture. Whether you are just starting to explore the world of pluggable databases or are planning a production upgrade in the near future to Oracle Database 12c, this session by Oracle Database upgrade and migration experts gives you all the details: what methods are available; how they work; and which is the best for your particular upgrade, migration, or consolidation scenario.<br />
This will include not only the pure database upgrade but it will cover also the new migration technology, Full Transportable Export/Import, combining the advantages of Transportable Tablespaces with Data Pump and RMAN incremental backups to reduce downtime during platform changes.</p>
<p><strong>Tim Hall</strong></p>
<p>Tim Hall is an Oracle DBA/Developer and well known Oracle blogger at <a title="http://www.oracle-base.com" href="http://www.oracle-base.com" target="_blank">http://www.oracle-base.com</a>. If that isn’t enough, he’s written two books and over 400 articles, is an Oracle ACE Director, OakTable member and has presented at numerous user groups and conferences worldwide, as well as a series of 2-day presentations as part of the “Oracle University Celebrity Series”</p>
<p><em><strong>An Oracle DBA’s Guide to WebLogic Server</strong></em><br />
WebLogic Server is Oracle’s flagship Java application server and a pivotal piece of the infrastructure supporting many of their applications, including Fusion Apps and Enterprise Manager Cloud Control. This session introduces the basic concepts behind WebLogic Server and discusses the installation, configuration and management of systems to support both ADF and Oracle Forms/Reports applications. The presentation is aimed at those who are new to WebLogic Server, especially DBAs who are increasingly being expected to know about middle-tier administration.</p>
<p><em><strong>A Cure for Virtual Insanity: A vendor-neutral introduction to virtualization without the hype</strong></em><br />
You’ve heard of virtualization and you know it’s at the heart of most enterprise cloud strategies, but then it all gets a little… “cloudy”. This presentation explains the concepts, products, pros and cons of virtualization without the smoke and mirrors and definitely no sales pitch.</p>
<p><strong>Lonneke Dikmans</strong></p>
<p>Lonneke is a consultant and managing partner at Vennster. She is a certified BPMN professional who specializes in integration and SOA/BPM solutions. She has hands-on experience with process modelling, web services, service oriented architecture, and traditional J2EE applications on different platforms in a wide variety of industries. Besides acting as a solution architect and technical lead she advises companies that are setting up Service Oriented Architectures. Lonneke is an Oracle Ace Director and a Fusion User Experience Advocate and speaks regularly at conferences in Europe and the United States and publishes frequently on the internet and in magazines.</p>
<p><em><strong>Overview of Oracle SOA Suite 11g</strong></em><br />
The Oracle SOA Suite consists of a number of components that you can use to create services and composite applications. These components all have specific use cases and can be mixed and matched in your application. In this presentation the following components are explained:<br />
• BPEL to orchestrate services and model processes;<br />
• Spring component to create java components;<br />
• Mediator component as an ‘in application’ bus functionality, including sequencing;<br />
• Business rule component for declarative business rules management<br />
• Human task component for human workflow;<br />
• Notification services to communicate;<br />
• WebService manager for security and policies;<br />
• MDS to store common artefacts.<br />
These components are discussed individually, and compared with each other and alternative solutions like Oracle BPM, business rules in the database etc. Common use cases and best practices are discussed as well. After this session delegates have a thorough understanding of what Oracle SOA Suite offers and when to use what component.</p>
<p><strong>James Morle</strong><br />
James has been an Oracle user since 1990 and has been at the delivery end of many of the largest and most challenging Oracle implementations in the world. In 2000 he started his own consulting company, Scale Abilities, which is focused on ‘full stack’ problem solving, performance, and architecture including the database, operating systems and storage systems. The problem is normally with the application, though, so he does that stuff too. He is a co-founder of BAARF (<a title="www.baarf.com" href="www.baarf.com" target="_blank">www.baarf.com</a>), The OakTable Network (<a title="www.oaktable.net" href="www.oaktable.net" target="_blank">www.oaktable.net</a>) and the author of Scaling Oracle8i, which is now available for free download from <a title="www.scaleabilities.co.uk" href="www.scaleabilities.co.uk" target="_blank">www.scaleabilities.co.uk</a>. He’s also co-author of Oracle Insights – Tales of the OakTable.</p>
<p><strong>Sten Vesterli</strong></p>
<p>Sten Vesterli is a senior principal consultant and partner in Scott/Tiger A/S. He is an Oracle ACE Director, a Fusion UX Advocate for Oracle and sits on the Oracle Usability Advisory Board. He is the recipient of the ODTUG 2009 Best Speaker award and is a frequent speaker at Oracle conferences. He has written “Oracle ADF Enterprise Application Development – Made Simple”, and just finished “Developing Web Applications with Oracle ADF Essentials”. He is an Ironman triathlete and lives in Denmark. Follow Sten on his blog at <a title="http://www.vesterli.com" href="http://www.vesterli.com" target="_blank">http://www.vesterli.com</a> or on twitter @stenvesterli</p>
<p><em><strong>Worst Oracle Application Development Framework Project Ever</strong></em><br />
If it can go wrong, it will. This humorous presentation presents “horror stories” from various projects of misunderstandings, architectural blunders, coding errors and downright bad luck. With the knowledge from this presentation, you will never make the same mistakes and will have only successful Application Development Framework projects, on time and on budget.</p>
<p><strong>Rasmus Knappe, Oracle</strong><br />
Jeg arbejder primært indenfor områderne database og engineered systems, herunder Exadata og SuperCluster og har før min tid i Oracle forsket i forespørgselsoptimering og søgemaskineteknologi. Jeg interesserer mig for de grundlæggende skalerbarhedsudfordringer som er forsøgt addreseret med Oracles Smart Scan og In-Memory teknologi. I tillæg hertil finder jeg Pluggable Databases meget interessant, både fra et management synspunkt, men også fra konsoliderings- og resurcestyringssynspunkt.</p>
<p><em><strong>Hands-on 12c PDC – medbring din egen laptop</strong></em><br />
Vi starter med en kort introduktion til Pluggable Databases herefter fortsætter vi med en række praktiske øvelser, baseret på vejledning til en VirtualBox miljø med en 12c database som bliver udleveret på USB disk. I skal derfor medbringe jeres egen laptop. Øvelserne vil indeholde oprettelse og nedlæggelse af Pluggable databases, kloning af PDB’er, samt indsigt en række andre operationer og nye views.</p>
<p><strong>Jørgen Christian Olsen &amp; <strong>Gordon Flemming</strong></strong><br />
Ypperstepræst Jørgen er en af de største autoriteter på Solaris, og han har været med lige siden DASK (Hvis nogen kan huske denne!). Seminaret er en kær-kommen lejlighed til at stille spørgsmål til denne legende indenfor dansk IT. Jørgen er oprindelig uddannet tømrer, ligesom sin bibelske kollega Jesus.</p>
<p>Kordegnen Gordon er konsulentens svar på svejtser kniven – alsidig og altid ved hånden. Gordons ekspertise område er det som ingen andre tør, vil, eller kan give sig i lag med. Med titlen CTO på visitkortet så har han ansvaret for at se igennem tågen af B&amp;B (Bull Shit &amp; Buzz Words) .</p>
<p><em><strong>Private Cloud Andagt</strong></em><br />
Ypperstepræst Jørgen og kordegn Gordon kommer og forkynder det glade budskab om Private Cloud.<br />
Private Cloud, er et af dette årtis hotte teknologier og det er ikke helt uden grund. Private Cloud muliggøre en effektiv virtualisering, konsolidering og administration, og giver en øjeblikkelig status over virksomhedens teknologi- stak. Private Cloud er skalérbare brug-og-smid-væk virtuelle maskiner I stride strømme, man ringer jo heller ikke til vandværket og bestiller 40 liter varmt vand bare fordi man vil i brusebad, vel?<br />
Under andagten gennemgår vi SmartOS, som er et af de få produktions-modne alternativer til de etablerede spillere på markedet. SmartOS er et Open Source alternativ baseret på den pålidelige Solaris kerne. Vi fortæller om vores egne erfaringer med SmartOS. Vi laver blandt andet en live demonstration, af hvor enkelt det er at installere systemet, og derefter provisionere virtuelle maskiner.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://bluegecko.dk/doug-dag-2013/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Challenges with object invalidation and ORA-04045 in Active Data Guard STANDBY-database</title>
		<link>https://bluegecko.dk/challenges-with-object-invalidation-and-ora-04045-in-active-data-guard-standby-database/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=challenges-with-object-invalidation-and-ora-04045-in-active-data-guard-standby-database</link>
					<comments>https://bluegecko.dk/challenges-with-object-invalidation-and-ora-04045-in-active-data-guard-standby-database/#respond</comments>
		
		<dc:creator><![CDATA[lbvanting]]></dc:creator>
		<pubDate>Mon, 16 Sep 2013 14:14:13 +0000</pubDate>
				<category><![CDATA[Oracle]]></category>
		<guid isPermaLink="false">http://www.bluegecko.dk/?p=3445</guid>

					<description><![CDATA[At one of our customers Oracle Active Data Guard is being utilized for resource intensive BI queries during normal business hours. The setup is based on 11.2.0.3 EE on OEL 6.4 and everything is running just smooth. One issue has been identified &#8211; namely implicit invalidation of database objects, e.g. VIEWS and PL/SQL procedures. The [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>At one of our customers Oracle Active Data Guard is being utilized for resource intensive BI queries during normal business hours.<br />
The setup is based on 11.2.0.3 EE on OEL 6.4 and everything is running just smooth.<br />
One issue has been identified &#8211; namely implicit invalidation of database objects, e.g. VIEWS and PL/SQL procedures.<br />
The invalidation occurrs when underlying objects are being modified, e.g. a table column.<br />
Let&#8217;s illustrate this through the following test case. </p>
<p>On the PRIMARY database we establish a table called TESTTAB1 in the schema BGDBA:<br />
As a DBA on the PRIMARY database create the BGADBA user and grant appropriate privileges:<br />
<code>create user bgdba identified by bgdba default tablespace users temporary tablespace temp;<br />
alter user bgdba quota unlimited on users;<br />
grant create session, create table, create view to bgdba;<br />
</code><br />
Now connect to the PRIMARY database as BGDBA and create the TESTTAB1:<br />
<code>SQL> conn bgdba/bgdba<br />
SQL> create table testtab1 as select * from all_objects;</p>
<p>Table created.</p>
<p>SQL> select count(*) from testtab1;</p>
<p>  COUNT(*)<br />
----------<br />
     63467<br />
</code><br />
Now let&#8217;s create a VIEW on top of the TESTTAB1 table, as BGDBA on the PRIMARY database:<br />
<code>SQL> create view testtab1_v as select * from testtab1;</p>
<p>SQL> select object_name,status from all_objects<br />
  2  where OBJECT_TYPE='VIEW'<br />
  3* and object_name like 'TESTTAB1%';</p>
<p>OBJECT_NAME                    STATUS<br />
------------------------------ -------<br />
TESTTAB1_V                     VALID<br />
</code><br />
Everything is fine on the PRIMARY &#8211; let&#8217;s check on the STANDBY-database as well, first logon as SYSDBA to the STANDBY:<br />
<code>SQL> conn / as sysdba<br />
Connected.<br />
SQL> select log_mode,open_mode , database_role from v$database;</p>
<p>LOG_MODE     OPEN_MODE            DATABASE_ROLE<br />
------------ -------------------- ----------------<br />
ARCHIVELOG   READ ONLY WITH APPLY PHYSICAL STANDBY<br />
</code><br />
We see that OPEN_MODE is &#8220;READ ONLY WITH APPLY&#8221;, so let&#8217;s connect as BGDBA, which now should be possible:<br />
<code>SQL> conn  bgdba/bgdba<br />
Connected.</p>
<p>SQL> select object_name,status from all_objects<br />
  2  where OBJECT_TYPE='VIEW'<br />
  3  and object_name like 'TESTTAB1%';</p>
<p>SQL><br />
OBJECT_NAME                    STATUS<br />
------------------------------ -------<br />
TESTTAB1_V                     VALID<br />
</code><br />
The BGDBA VIEW is now also present on the STANDBY-database.</p>
<p>Now let&#8217;s go back to the PRIMARY &#8211; as BGDBA try to invalidate the view, e.g.<br />
<code>SQL> alter table testtab1 modify(edition_name varchar2(40));</p>
<p>Table altered.</p>
<p>SQL> select object_name,status from all_objects<br />
  2  where OBJECT_TYPE='VIEW'<br />
  3  and object_name like 'TESTTAB1%';</p>
<p>OBJECT_NAME                    STATUS<br />
------------------------------ -------<br />
TESTTAB1_V                     INVALID<br />
</code><br />
As we see from the above the VIEW is now &#8220;invalid&#8221;.<br />
ON STANDBY in ACTIVE DATAGUARD mode as BGDBA:</p>
<p><code>SQL> select count(*) from testtab1_v;<br />
select count(*) from testtab1_v<br />
                     *<br />
ERROR at line 1:<br />
ORA-04045: errors during recompilation/revalidation of BGDBA.TESTTAB1_V<br />
ORA-16000: database open for read-only access</p>
<p>SQL> select object_name,status from all_objects<br />
where OBJECT_TYPE='VIEW'<br />
and object_name like 'TESTTAB1%'; </p>
<p>OBJECT_NAME                    STATUS<br />
------------------------------ -------<br />
TESTTAB1_V                     INVALID<br />
</code><br />
So because the STANDBY-database is open in READ/ONLY mode, then the implicit recompilation of the view cannot complete and we hit the ORA-04045 error.</p>
<p>Solution: Fix/recompile the object on the PRIMARY database and then reissue the SQL query on the STANDBY database.</p>
<p>On the PRIMARY database as BGDBA:<br />
<code>SQL> alter view testtab1_v compile;</p>
<p>View altered.<br />
</code><br />
NOTICE: This could in this case also have been accomplished simply by selecting from the VIEW, thereby force a recompilation.</p>
<p><code>SQL> select object_name,status from all_objects<br />
  2  where OBJECT_TYPE='VIEW'<br />
  3  and object_name like 'TESTTAB1%';</p>
<p>OBJECT_NAME                    STATUS<br />
------------------------------ -------<br />
TESTTAB1_V                     VALID<br />
</code><br />
Now we can issue the query against the VIEW on the STANDBY-database:</p>
<p><code>SQL> select count(*) from testtab1_v;</p>
<p>  COUNT(*)<br />
----------<br />
     63467<br />
</code><br />
Lesson learned:<br />
When querying against an Active Data Guard physical STANDBY-database, you must handle all changes, e.g. object compilation, on the PRIMARY database and let this be propagated to the STANDBY database automatically through REDO APPLY.</p>
<p>Thanks to <a href="http://dspsd.blogspot.com" target="_blank">Kim Berg Hansen</a> for providing input to this blog.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://bluegecko.dk/challenges-with-object-invalidation-and-ora-04045-in-active-data-guard-standby-database/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Oracle Listener crash, TNS-01153: Failed to process string, on Windows</title>
		<link>https://bluegecko.dk/listener-crash-tns-01153-failed-to-process-string-on-windows/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=listener-crash-tns-01153-failed-to-process-string-on-windows</link>
					<comments>https://bluegecko.dk/listener-crash-tns-01153-failed-to-process-string-on-windows/#respond</comments>
		
		<dc:creator><![CDATA[kanthonisen]]></dc:creator>
		<pubDate>Fri, 06 Sep 2013 09:45:11 +0000</pubDate>
				<category><![CDATA[downtime]]></category>
		<category><![CDATA[Infrastructure]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[outage]]></category>
		<guid isPermaLink="false">http://www.bluegecko.dk/?p=3432</guid>

					<description><![CDATA[A few days ago, I was working at a customer and made a few changes to the running listener&#8217;s configuration. After having verified that my changes were working as expected, I asked the listener to save the configuration, but the result was quite unexpected. The listener crashed with TNS-1153. I had hit bug #8612344, which [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>A few days ago, I was working at a customer and made a few changes to the running listener&#8217;s configuration.</p>
<p>After having verified that my changes were working as expected, I asked the listener to save the configuration, but the result was quite unexpected.</p>
<p>The listener crashed with TNS-1153.</p>
<p>I had hit bug #8612344, which is affecting all 10.2 versions running on Windows, including the 10.2.0.5 which my customer is using.</p>
<p>In short, I had to restore a listener.ora configuration file, as the current file was trashed &#8211; it was now 0 bytes in size now.</p>
<p>Luckily, I had taken a backup of the file before starting, so the  fix was easy.</p>
<p>Kim Anthonisen<br />
Senior konsulent@Blue Gecko<br />
kanthonisen@dk.bluegecko.dk</p>
]]></content:encoded>
					
					<wfw:commentRss>https://bluegecko.dk/listener-crash-tns-01153-failed-to-process-string-on-windows/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/

Object Caching 36/543 objects using disk
Page Caching using disk: enhanced 

Served from: bluegecko.dk @ 2026-10-16 22:09:51 by W3 Total Cache
-->