<?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/category/oracle-database/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>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/

Object Caching 1/189 objects using disk
Page Caching using disk: enhanced 

Served from: bluegecko.dk @ 2026-10-17 05:05:47 by W3 Total Cache
-->