<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Gokhan Atil's Oracle Blog</title>
	
	<link>http://www.gokhanatil.com</link>
	<description>Oracle Enterprise Manager Cloud Control, High Avaliability and Performance Tuning</description>
	<lastBuildDate>Fri, 14 Jun 2013 12:58:03 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/gokhanatil" /><feedburner:info uri="gokhanatil" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId>gokhanatil</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>Segmentation Fault When Running Sqlplus and Tnsping From R12 10gR2 ORACLE_HOME</title>
		<link>http://feedproxy.google.com/~r/gokhanatil/~3/fh14xIAzpQI/segmentation-fault-when-running-sqlplus-and-tnsping-from-r12-10gr2-oracle_home.html</link>
		<comments>http://www.gokhanatil.com/2013/06/segmentation-fault-when-running-sqlplus-and-tnsping-from-r12-10gr2-oracle_home.html#comments</comments>
		<pubDate>Fri, 14 Jun 2013 12:58:03 +0000</pubDate>
		<dc:creator>Gokhan Atil</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[segmentation]]></category>
		<category><![CDATA[sqlplus]]></category>

		<guid isPermaLink="false">http://www.gokhanatil.com/?p=1191</guid>
		<description><![CDATA[My co-worker has encountered a &#8220;Segmentation Fault&#8221; error while he tried to run sqlplus on a newly installed server which will host E-Business Suite R12 database. After a short search on My Oracle Support, he found MOS Document ID 1480089.1. Although this document explains the reason of the error, it seems there&#8217;s a missing step [...]]]></description>
				<content:encoded><![CDATA[<p>My co-worker has encountered a &#8220;Segmentation Fault&#8221; error while he tried to run sqlplus on a newly installed server which will host E-Business Suite R12 database. After a short search on My Oracle Support, he found MOS Document ID 1480089.1. Although this document explains the reason of the error, it seems there&#8217;s a missing step about the solution.</p>
<p>The MOS document says, compat-oracle-el5-1.0-5 RPM is installed but it shouldn&#8217;t be. This RPM causes, 10.1 executables (it seems it would affect any Oracle DB software version) are not being relinked correctly (they are not relinked with the -m32 parameter). So MOS asks to uninstall compat-oracle-el5-1.0-5, and my co-worker uninstalled the RPM but he still got the error.</p>
<p>It&#8217;s obvious that uninstall is not enough to fix the problem because the Oracle binaries are not linked correctly. So we need to relink the all Oracle binaries:</p>
<p></p><pre class="crayon-plain-tag">[oraprod@renamed ~]$ $ORACLE_HOME/bin/relink all</pre><p> </p>
<p>Another option would be re-install Oracle database software but relinking is a much faster. </p>
<img src="http://feeds.feedburner.com/~r/gokhanatil/~4/fh14xIAzpQI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.gokhanatil.com/2013/06/segmentation-fault-when-running-sqlplus-and-tnsping-from-r12-10gr2-oracle_home.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.gokhanatil.com/2013/06/segmentation-fault-when-running-sqlplus-and-tnsping-from-r12-10gr2-oracle_home.html</feedburner:origLink></item>
		<item>
		<title>How to Read Web Pages Using utl_http.request_pieces</title>
		<link>http://feedproxy.google.com/~r/gokhanatil/~3/m33QFnKfOFM/how-to-read-web-pages-using-utl_http-request_pieces.html</link>
		<comments>http://www.gokhanatil.com/2013/06/how-to-read-web-pages-using-utl_http-request_pieces.html#comments</comments>
		<pubDate>Mon, 10 Jun 2013 14:43:51 +0000</pubDate>
		<dc:creator>Gokhan Atil</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[plsql]]></category>

		<guid isPermaLink="false">http://www.gokhanatil.com/?p=1183</guid>
		<description><![CDATA[UTL_HTTP package provides easy to use methods to fetch data from web using http protocol. Today, one of my co-workers complained that &#8220;utl_http.request&#8221; method returns only a small part of the web page instead of full html. She says she already uses it to fetch from other web pages without any problem. The utl_http.request method [...]]]></description>
				<content:encoded><![CDATA[<p>UTL_HTTP package provides easy to use methods to fetch data from web using http protocol. Today, one of my co-workers complained that &#8220;utl_http.request&#8221; method returns only a small part of the web page instead of full html. She says she already uses it to fetch from other web pages without any problem. The utl_http.request method returns the requested page as a single string. When I check the documents, I see that it intentionally returns only first 2000 characters, and we should use &#8220;utl_http.request_pieces&#8221; method if we need to fetch more than 2000 characters. The UTL_HTTP.REQUEST_PIECES returns &#8220;utl_http.html_pieces&#8221; which is defined as a PLSQL table of 2000 character strings:</p>
<p></p><pre class="crayon-plain-tag">TYPE html_pieces IS TABLE OF VARCHAR2(2000) INDEX BY BINARY_INTEGER;</pre><p> </p>
<p>So I created a small function to demonstrate how we can fetch a web page using utl_http.request_pieces:</p><pre class="crayon-plain-tag">CREATE OR REPLACE FUNCTION readfromweb (url VARCHAR2)
   RETURN CLOB
IS
   pcs    UTL_HTTP.html_pieces;
   retv   CLOB;
BEGIN
   pcs := UTL_HTTP.request_pieces (url, 50);
   FOR i IN 1 .. pcs.COUNT
   LOOP
      retv := retv || pcs (i);
   END LOOP;
   RETURN retv;
END;</pre><p>And tested it:</p><pre class="crayon-plain-tag">SELECT readfromweb ('http://..../awebpage.aspx') FROM DUAL;</pre><p></p>
<img src="http://feeds.feedburner.com/~r/gokhanatil/~4/m33QFnKfOFM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.gokhanatil.com/2013/06/how-to-read-web-pages-using-utl_http-request_pieces.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.gokhanatil.com/2013/06/how-to-read-web-pages-using-utl_http-request_pieces.html</feedburner:origLink></item>
		<item>
		<title>Oracle Patch Application Assistant and DISPLAY Variable</title>
		<link>http://feedproxy.google.com/~r/gokhanatil/~3/w0jluiTcsZ4/oracle-patch-application-assistant-and-display-variable.html</link>
		<comments>http://www.gokhanatil.com/2013/05/oracle-patch-application-assistant-and-display-variable.html#comments</comments>
		<pubDate>Sat, 25 May 2013 19:59:09 +0000</pubDate>
		<dc:creator>Gokhan Atil</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[ebs]]></category>
		<category><![CDATA[patch]]></category>

		<guid isPermaLink="false">http://www.gokhanatil.com/?p=1174</guid>
		<description><![CDATA[I installed EBS 12.1.3 to my laptop for testing purposes, and applied some patches. Although I carefully check the readme files of the patches, I wanted to be sure that I have followed post-installation tasks, so I tried to run Oracle Patch Application Assistant (admsi.pl). I got the following error: [crayon-51c099a3a087a/] Yes I know that [...]]]></description>
				<content:encoded><![CDATA[<p>I installed EBS 12.1.3 to my laptop for testing purposes, and applied some patches. Although I carefully check the readme files of the patches, I wanted to be sure that I have followed post-installation tasks, so I tried to run Oracle Patch Application Assistant (admsi.pl). I got the following error:</p>
<p></p><pre class="crayon-plain-tag">[appldemo@appldemo ~]$ admsi.pl 
Invoking Oracle Patch Application Assistant.... 
Please set the DISPLAY variable and re-run this script</pre><p> </p>
<p>Yes I know that it seems a very familiar problem for XWindow applications, but because I&#8217;ve logged in directly to XWindow, I shouldn&#8217;t get this error&#8230; Anyway, I checked if the DISPLAY variable is set, and see that it&#8217;s set to &#8220;:0.0&#8243; (as expected). All applications including Oracle Database Tools was working without error.</p>
<p><span id="more-1174"></span>First I searched the My Oracle Support but couldn&#8217;t find a solution (maybe I missed), so I checked the source code of the script. admsi.pl simply sets same environment variables and calls &#8220;admsi_main.pl&#8221;. When I checked the admsi_main.pl, I see that it intentionally gives an error when the DISPLAY variable is set to &#8220;:0.0&#8243;. So to fix the problem, I opened the <strong>$AD_TOP/bin/admsi_main.pl</strong> file with a text editor, found the following line: </p>
<p></p><pre class="crayon-plain-tag">if(($DISPLAY eq "") || ($DISPLAY eq ":0.0")){</pre><p> </p>
<p>&#8230;and modified it:</p>
<p></p><pre class="crayon-plain-tag">if($DISPLAY eq "") {</pre><p> </p>
<p>Saved the file and then tried to run admsi.pl again, and it worked:</p>
<p><a href="http://www.gokhanatil.com/wp-content/uploads/2013/05/oraclepatchassistant.png" rel="lightbox[1174]"><img src="http://www.gokhanatil.com/wp-content/uploads/2013/05/oraclepatchassistant-300x211.png" alt="oraclepatchassistant" width="300" height="211" class="alignnone size-medium wp-image-1176" /></a></p>
<img src="http://feeds.feedburner.com/~r/gokhanatil/~4/w0jluiTcsZ4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.gokhanatil.com/2013/05/oracle-patch-application-assistant-and-display-variable.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.gokhanatil.com/2013/05/oracle-patch-application-assistant-and-display-variable.html</feedburner:origLink></item>
		<item>
		<title>mth_pre_upgrade.sql Failed While Applying EBS Patch 9239090</title>
		<link>http://feedproxy.google.com/~r/gokhanatil/~3/0Uj4VpTELro/mth_pre_upgrade-sql-failed-while-applying-ebs-patch-9239090.html</link>
		<comments>http://www.gokhanatil.com/2013/05/mth_pre_upgrade-sql-failed-while-applying-ebs-patch-9239090.html#comments</comments>
		<pubDate>Wed, 22 May 2013 20:59:42 +0000</pubDate>
		<dc:creator>Gokhan Atil</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[ebs]]></category>
		<category><![CDATA[patch]]></category>

		<guid isPermaLink="false">http://www.gokhanatil.com/?p=1170</guid>
		<description><![CDATA[This error may occur when you try to re-apply the patch 9239090 (EBS 12.1.3), because the mth_pre_upgrade.sql tries to create a table named &#8220;MTH.MTH_RESOURCES_D_TEMP&#8221; without checking if it exists. All you need is to drop that table and restart the worker. Connect your database as sys/system, and issue the command: [crayon-51c099a3a2071/] Then run adctrl, enter [...]]]></description>
				<content:encoded><![CDATA[<p>This error may occur when you try to re-apply the patch 9239090 (EBS 12.1.3), because the mth_pre_upgrade.sql tries to create a table named &#8220;MTH.MTH_RESOURCES_D_TEMP&#8221; without checking if it exists. All you need is to drop that table and restart the worker. Connect your database as sys/system, and issue the command:</p>
<p></p><pre class="crayon-plain-tag">drop table MTH.MTH_RESOURCES_D_TEMP;</pre><p> </p>
<p>Then run adctrl, enter 2 (<em>Tell worker to restart a failed job</em>), and then enter the number of the failed worked. ADPatch will continue to apply the patch.</p>
<img src="http://feeds.feedburner.com/~r/gokhanatil/~4/0Uj4VpTELro" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.gokhanatil.com/2013/05/mth_pre_upgrade-sql-failed-while-applying-ebs-patch-9239090.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.gokhanatil.com/2013/05/mth_pre_upgrade-sql-failed-while-applying-ebs-patch-9239090.html</feedburner:origLink></item>
		<item>
		<title>Book Review: Managing Multimedia and Unstructured Data in the Oracle Database</title>
		<link>http://feedproxy.google.com/~r/gokhanatil/~3/ARycMyXeSuc/book-review-managing-multimedia-and-unstructured-data-in-the-oracle-database.html</link>
		<comments>http://www.gokhanatil.com/2013/05/book-review-managing-multimedia-and-unstructured-data-in-the-oracle-database.html#comments</comments>
		<pubDate>Wed, 08 May 2013 09:23:49 +0000</pubDate>
		<dc:creator>Gokhan Atil</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[multimedia]]></category>
		<category><![CDATA[unstructured]]></category>

		<guid isPermaLink="false">http://www.gokhanatil.com/?p=1152</guid>
		<description><![CDATA[Managing unstructured data in a relational database system is one of the least know subjects. There is a large amount of unstructured data in the real world and a relational database designed to store data in a structured format but most database administrators and architectures do not have enough knowledge to handle unstructured Data. Marcelle [...]]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.packtpub.com/managing-multimedia-and-unstructured-data-in-oracle-database/book"><img class="alignright  wp-image-1155" alt="Managing Multimedia and Unstructured Data in the Oracle" src="http://www.gokhanatil.com/wp-content/uploads/2013/05/6921EN.jpg" width="216" height="267" /></a> Managing unstructured data in a relational database system is one of the least know subjects. There is a large amount of unstructured data in the real world and a relational database designed to store data in a structured format but most database administrators and architectures do not have enough knowledge to handle unstructured Data. Marcelle Kratochvil’s book, “Managing Multimedia and Unstructured Data in the Oracle Database” aims to give a solid understanding of basic concepts involving unstructured data (specially multimedia).</p>
<p>The book is designed for technology architects and database administrators. Kratochvil plans to write another book which will will focus on developers and storage architects.</p>
<p>First chapter covers key concepts, later chapters cover technical details for database administrators.<br />
<span id="more-1152"></span><br />
Here is the list of the chapters:</p>
<ol>
<li><strong>What is Unstructured Data? </strong>First chapter defines unstructured data and explains why you need to store unstructured data in a relational database.</li>
<li><strong>Understanding Digital Objects:</strong> Second chapter focuses on the definitions and terminologies widely used when working with digital objects.</li>
<li><strong>The Multimedia Warehouse:</strong> This chapter focuses on data warehouse concepts when storing multimedia. multimedia warehouse structures, metadata standards, data types are explained.</li>
<li><strong>Searching the Multimedia Warehouse:</strong> This chapter includes the different ways a multimedia database can be searched for multilingual data and how to represent the results.</li>
<li><strong>Loading Techniques:</strong> This chapter covers loading methods and strategies for attaching metadata to digital objects.</li>
<li><strong>Delivery Techniques:</strong> This chapter focues on managing digital rights on e-commerce while deliver digital objects (specially images) to customers.</li>
<li><strong>Techniques for Creating a Multimedia Database:</strong> This chapter covers technical aspects such as multi-tier architecture, database configuration concepts, Oracle securefile, storage system (ASM, Raid, SSD, SANs, and NAS).</li>
<li><strong>Tuning:</strong> This chapter covers tuning methodologies for an Oracle Database containing unstructured data.</li>
<li><strong>Understanding the Limitations of Oracle Products:</strong> This chapter covers Oracle Database features, options, and add-ons which can be used to work with unstructured data.</li>
<li><strong>Working with the Operating System:</strong> When the Oracle Database cannot handle a multimedia object, you need to handle it using external processing. This chapter describes the methods and techniques for working with the Unix and Windows operating systems.</li>
</ol>
<p>The book contains very detailed information about unstructured data to help Database Administrator to understand fundamental concepts, challenges and methods of building a multimedia datawarehouse. It’s not for people who look for quick and step by step instructions to build a multimedia warehouse. If you want to go deeper on this subject, this is probably the best book in the market.</p>
<img src="http://feeds.feedburner.com/~r/gokhanatil/~4/ARycMyXeSuc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.gokhanatil.com/2013/05/book-review-managing-multimedia-and-unstructured-data-in-the-oracle-database.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.gokhanatil.com/2013/05/book-review-managing-multimedia-and-unstructured-data-in-the-oracle-database.html</feedburner:origLink></item>
		<item>
		<title>Win A Free Copy of Packt’s Oracle Enterprise Manager 12c Administration Cookbook e-book</title>
		<link>http://feedproxy.google.com/~r/gokhanatil/~3/WoDjeCxMhOY/win-a-free-copy-of-packts-oracle-enterprise-manager-12c-administration-cookbook-e-book.html</link>
		<comments>http://www.gokhanatil.com/2013/04/win-a-free-copy-of-packts-oracle-enterprise-manager-12c-administration-cookbook-e-book.html#comments</comments>
		<pubDate>Mon, 08 Apr 2013 20:45:19 +0000</pubDate>
		<dc:creator>Gokhan Atil</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[em12c]]></category>

		<guid isPermaLink="false">http://www.gokhanatil.com/?p=1138</guid>
		<description><![CDATA[I&#8217;m pleased to announce that we have teamed up with Packt Publishing and are organizing a give away especially for you. All you need to do is just comment below this post and win a free copy of Oracle Enterprise Manager 12c Administration Cookbook (which I have already reviewed). Three lucky winners stand a chance [...]]]></description>
				<content:encoded><![CDATA[<p>I&#8217;m pleased to announce that we have teamed up with Packt Publishing and are organizing a give away especially for you. All you need to do is just comment below this post and win a free copy of <a href="http://www.packtpub.com/oracle-enterprise-manager-12c-administration-cookbook/book" target="_blank">Oracle Enterprise Manager 12c Administration Cookbook</a> (which I have already <a href="http://www.gokhanatil.com/2013/03/book-review-oracle-enterprise-manager-12c-administration-cookbook.html" target="_blank">reviewed</a>). <strong>Three</strong> lucky winners stand a chance to win an e-copy of the book.</p>
<p><a href="http://www.packtpub.com/oracle-enterprise-manager-12c-administration-cookbook/book"><img class="alignright  wp-image-1120" style="border: 1px solid black;" alt="Oracle Enterprise Manager 12c Administration Cookbook" src="http://www.gokhanatil.com/wp-content/uploads/2013/03/7409EN-239x300.jpg" width="143" height="180" /></a></p>
<p>Overview of Oracle Enterprise Manager 12c Administration Cookbook eBook:</p>
<ul>
<li>Recipes for installing, configuring, and getting up and running with Oracle Enterprise Manager</li>
<li>Set up automatic discovery, create and clone databases, and perform provisioning</li>
<li>Monitor Oracle Fusion Middleware, and remotely use incident and problem management using iPad/iPhone</li>
</ul>
<p><strong>How to Enter?</strong><br />
Simply post your expectations from this book in comments section. You could be one of the 3 lucky participants to win the e-copy.</p>
<p><span id="more-1138"></span><strong>DeadLine:</strong><br />
The contest will close on April 12th, 2013. Winners will be contacted by email, so be sure to use your real email address when you comment!</p>
<div class="SPOSTARBUST-Related-Posts" style="padding-top:10px"  ><H3>Related Posts</H3><ul class="entry-meta"><li class="SPOSTARBUST-Related-Post"><a title="Enterprise Manager Cloud Control 12c released for Windows" href="http://www.gokhanatil.com/2012/05/enterprise-manager-cloud-control-12c-released-for-windows.html" rel="bookmark">Enterprise Manager Cloud Control 12c released for Windows</a></li>
<li class="SPOSTARBUST-Related-Post"><a title="Enterprise Manager Cloud Control 12c Release 2" href="http://www.gokhanatil.com/2012/09/enterprise-manager-cloud-control-12c-release-2.html" rel="bookmark">Enterprise Manager Cloud Control 12c Release 2</a></li>
<li class="SPOSTARBUST-Related-Post"><a title="How to Install Oracle Enterprise Manager Cloud Control 12c" href="http://www.gokhanatil.com/2011/10/how-to-install-oracle-enterprise-manager-cloud-control-12c.html" rel="bookmark">How to Install Oracle Enterprise Manager Cloud Control 12c</a></li>
<li class="SPOSTARBUST-Related-Post"><a title="Applying Enterprise Manager Cloud Control 12c Bundle Patch 1 (Solaris) Part I" href="http://www.gokhanatil.com/2012/07/applying-enterprise-manager-cloud-control-12c-bundle-patch-1-solaris-part-i.html" rel="bookmark">Applying Enterprise Manager Cloud Control 12c Bundle Patch 1 (Solaris) Part I</a></li>
<li class="SPOSTARBUST-Related-Post"><a title="How to Uninstall the Agent Oracle Home that Registered with Inventory" href="http://www.gokhanatil.com/2012/01/how-to-uninstall-the-agent-oracle-home-that-registered-with-inventory.html" rel="bookmark">How to Uninstall the Agent Oracle Home that Registered with Inventory</a></li>
</ul></div><img src="http://feeds.feedburner.com/~r/gokhanatil/~4/WoDjeCxMhOY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.gokhanatil.com/2013/04/win-a-free-copy-of-packts-oracle-enterprise-manager-12c-administration-cookbook-e-book.html/feed</wfw:commentRss>
		<slash:comments>32</slash:comments>
		<feedburner:origLink>http://www.gokhanatil.com/2013/04/win-a-free-copy-of-packts-oracle-enterprise-manager-12c-administration-cookbook-e-book.html</feedburner:origLink></item>
		<item>
		<title>VirtualBox: Failed to Create Host-only Network Interface on Ubuntu Linux</title>
		<link>http://feedproxy.google.com/~r/gokhanatil/~3/vF1QKc78sBI/virtualbox-failed-to-create-host-only-network-interface-on-ubuntu-linux.html</link>
		<comments>http://www.gokhanatil.com/2013/03/virtualbox-failed-to-create-host-only-network-interface-on-ubuntu-linux.html#comments</comments>
		<pubDate>Sun, 24 Mar 2013 15:36:24 +0000</pubDate>
		<dc:creator>Gokhan Atil</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[virtualbox]]></category>

		<guid isPermaLink="false">http://www.gokhanatil.com/?p=1129</guid>
		<description><![CDATA[After I installed Ubuntu to my Laptop, I began to install my favorite applications. Everything went smooth. One of my favorite application is VirtualBox. I&#8217;m big fan of it, and I use it on both Windows and Linux systems. All of my virtual machines are created on VirtualBox. So I installed VirtualBox, copied a virtual [...]]]></description>
				<content:encoded><![CDATA[<p>After I installed Ubuntu to my Laptop, I began to install my favorite applications. Everything went smooth. One of my favorite application is VirtualBox. I&#8217;m big fan of it, and I use it on both Windows and Linux systems. All of my virtual machines are created on VirtualBox. So I installed VirtualBox, copied a virtual machine from my backup storage and just before run the virtual machine, I remembered that I need to set up IP address of the host-only network. I opened the network tab in VirtualBox settings and I couldn&#8217;t see any Host-Only networks (there should be one in default). So I clicked to &#8220;Add Host-Only Network&#8221; button and got a strange error:</p>
<p></p><pre class="crayon-plain-tag">Failed to create the host-only network interface.

VBoxNetAdpCtl: Error while adding new interface: 
failed to open /dev/vboxnetctl: No such file or directory.

Result Code: NS_ERROR_FAILURE (0x80004005)
Component: HostNetworkInterface
Interface: IHostNetworkInterface {87a4153d-6889-4dd6-9654-2e9ff0ae8dec}</pre><p> </p>
<p>I haven&#8217;t seen this error before. I have checked if &#8220;/dev/vboxnetctl&#8221; exists, and unfortunately it doesn&#8217;t. It&#8217;s obvious that the &#8220;vboxnetctl&#8221; file should be a part of VirtualBox software but it wasn&#8217;t there. One of the good thing of VirtualBox is, you can do everything using command line. So I tried to add host-only network using command line, and this time I see &#8220;a warning message&#8221; before the error:</p>
<p></p><pre class="crayon-plain-tag">gokhan@genesis:~/Desktop$ sudo VBoxManage hostonlyif create

WARNING: The vboxdrv kernel module is not loaded. Either there is no module
         available for the current kernel (3.5.0-26-generic) or it failed to
         load. Please recompile the kernel module and install it by

           sudo /etc/init.d/vboxdrv setup

         You will not be able to start VMs until this problem is fixed.
0%...
Progress state: NS_ERROR_FAILURE
VBoxManage: error: Failed to create the host-only adapter
VBoxManage: error: VBoxNetAdpCtl: Error while adding new interface: 
failed to open /dev/vboxnetctl: No such file or directory</pre><p> </p>
<p><span id="more-1129"></span>As you see, vboxdrv kernel module is not loaded because it doesn&#8217;t work with the current kernel of my system. So I need to recompile vboxdrv kernel modules. When I run the &#8220;/etc/init.d/vboxdrv setup&#8221;, I get another error because the kernel headers for my current kernel are not installed:</p>
<p></p><pre class="crayon-plain-tag">* Stopping VirtualBox kernel modules                                    [ OK ] 
 * Uninstalling old VirtualBox DKMS kernel modules                       [ OK ] 
 * Trying to register the VirtualBox kernel modules using DKMS                  
Error! Your kernel headers for kernel 3.5.0-26-generic cannot be found.
Please install the linux-headers-3.5.0-26-generic package,
or use the --kernelsourcedir option to tell DKMS where it's located

 * Failed, trying without DKMS
 * Recompiling VirtualBox kernel modules                                        
 * Look at /var/log/vbox-install.log to find out what went wrong</pre><p> </p>
<p>So I installed the kernel headers and re-compile VirtualBox kernel modules:</p>
<p></p><pre class="crayon-plain-tag">gokhan@genesis:~/Desktop$ sudo apt-get install linux-headers-3.5.0-26-generic
...
gokhan@genesis:~/Desktop$ sudo /etc/init.d/vboxdrv setup
 * Stopping VirtualBox kernel modules                                    [ OK ] 
 * Uninstalling old VirtualBox DKMS kernel modules                       [ OK ] 
 * Trying to register the VirtualBox kernel modules using DKMS           [ OK ] 
 * Starting VirtualBox kernel modules                                    [ OK ]</pre><p> </p>
<p>After the kernel modules started, I re-tried to add &#8220;Add Host-Only Network&#8221; and it worked successfully.</p>
<img src="http://feeds.feedburner.com/~r/gokhanatil/~4/vF1QKc78sBI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.gokhanatil.com/2013/03/virtualbox-failed-to-create-host-only-network-interface-on-ubuntu-linux.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		<feedburner:origLink>http://www.gokhanatil.com/2013/03/virtualbox-failed-to-create-host-only-network-interface-on-ubuntu-linux.html</feedburner:origLink></item>
		<item>
		<title>Book Review: Oracle Enterprise Manager 12c Administration Cookbook</title>
		<link>http://feedproxy.google.com/~r/gokhanatil/~3/zrxxEAEWhWY/book-review-oracle-enterprise-manager-12c-administration-cookbook.html</link>
		<comments>http://www.gokhanatil.com/2013/03/book-review-oracle-enterprise-manager-12c-administration-cookbook.html#comments</comments>
		<pubDate>Sat, 23 Mar 2013 11:05:07 +0000</pubDate>
		<dc:creator>Gokhan Atil</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[em12c]]></category>

		<guid isPermaLink="false">http://www.gokhanatil.com/?p=1119</guid>
		<description><![CDATA[Oracle Enterprise Manager is getting highly popular so we see more and more books about it. Recently, Packt published a new book titled &#8220;Oracle Enterprise Manager 12c Administration Cookbook&#8220;. It is a well-written book which provides over 50 practical recipes to install, configure, upgrade Oracle Enterprise Manager Cloud Control and monitor your Oracle setup using Oracle Enterprise Manager. [...]]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.gokhanatil.com/wp-content/uploads/2013/03/7409EN.jpg" rel="lightbox[1119]"><img src="http://www.gokhanatil.com/wp-content/uploads/2013/03/7409EN-239x300.jpg" alt="Oracle Enterprise Manager 12c Administration Cookbook" width="239" height="300" class="alignright size-medium wp-image-1120" /></a> Oracle Enterprise Manager is getting highly popular so we see more and more books about it. Recently, <a href="http://www.packtpub.com/" target="_blank">Packt</a> published a new book titled &#8220;<a href="http://www.packtpub.com/oracle-enterprise-manager-12c-administration-cookbook/book" target="_blank">Oracle Enterprise Manager 12c Administration Cookbook</a>&#8220;. It is a well-written book which provides over 50 practical recipes to install, configure, upgrade Oracle Enterprise Manager Cloud Control and monitor your Oracle setup using Oracle Enterprise Manager. </p>
<p>The authors of the book (Dhananjay Papde, Tushar Nath and Vipul Patel) are experienced on Oracle Fusion Middleware, so you&#8217;ll also be able to find the integration of Oracle Fusion Middleware products such as Oracle Business Intelligence, Oracle GoldenGate, Oracle Business Intelligence Publisher and Oracle WebLogic. The book also covers recipes on Incident and Problem Management using iPhone or iPad, and there are recipes for creating and cloning databases and creating templates.</p>
<p><span id="more-1119"></span>List of the chapters:</p>
<ol>
<li><strong>Prerequisites of OEM 12c Installation: </strong>This chapter covers hardware and OS requirements (user and groups, packages, kernel parameters), installing the Oracle 11gR2 RDBMS software and creating OEM repository database.</li>
<li><strong>Installation of OEM 12c:</strong> You will see how to install Enterprise Manager System with Simple and Advanced configuration options. This chapter also covers various Agent deployment methods.</li>
<li><strong>Upgrade to OEM 12c:</strong> If you want to upgrade your OEM 10g/11g to OEM 12c, this chapter shows how to upgrade using the 1-system and the 2-system upgrade approach.</li>
<li><strong>Configuring OEM 12c:</strong> Automatic discovery, promoting discovered targets, adding host (and non-hosts) targets manually, configuring a software Library are shown in this chapter.</li>
<li><strong>Managing Oracle Database Using OEM 12c:</strong> This chapter explains how to configure a database target, create database templates and creating Oracle Database clones and provisioning Oracle Database software.</li>
<li><strong>Managing Database Performance Using OEM 12c:</strong> This chapter shows how to use Active Session History Analytics, the Real-Time ADDM and compare period reports.</li>
<li><strong>Middleware Management Using OEM 12c:</strong> You can find the required information to manage Oracle Business Intelligence, Oracle GoldenGate and Weblogic Server targets using Oracle Enterprise Manager 12c.</li>
<li><strong>Incident and Problem Management Using an iDevice:</strong> This chapter explains how to set up OEM12c and use incident management on an iDevice (iPhone, iPod Touch, or iPad).</li>
</ol>
<p>In ebook PDF version, the screen images are blur. I think Packt can fix this if you contact them. I prefer to read the books on ipad, and the screen images are readable in epub (ipad) version. On the other hand, all steps are detailed so it&#8217;s easy to follow the instructions and complete the tasks. </p>
<p>I recommend all Enterprise Manager users to buy &#8220;<a href="http://www.packtpub.com/oracle-enterprise-manager-12c-administration-cookbook/book" target="_blank">Oracle Enterprise Manager 12c Administration Cookbook</a>&#8220;.</p>
<div class="SPOSTARBUST-Related-Posts" style="padding-top:10px"  ><H3>Related Posts</H3><ul class="entry-meta"><li class="SPOSTARBUST-Related-Post"><a title="Oracle Unveils Enterprise Manager Cloud Control 12c" href="http://www.gokhanatil.com/2011/10/oracle-unveils-enterprise-manager-cloud-control-12c.html" rel="bookmark">Oracle Unveils Enterprise Manager Cloud Control 12c</a></li>
<li class="SPOSTARBUST-Related-Post"><a title="Oracle EMEA Exadata &#038; Manageability Partner Communities Event, Istanbul" href="http://www.gokhanatil.com/2012/03/oracle-emea-exadata-manageability.html" rel="bookmark">Oracle EMEA Exadata &#038; Manageability Partner Communities Event, Istanbul</a></li>
<li class="SPOSTARBUST-Related-Post"><a title="Oracle Unveils Oracle Enterprise Manager Ops Center 12c and It&#8217;s Ready to Download" href="http://www.gokhanatil.com/2012/04/oracle-unveils-oracle-enterprise-manager-ops-center-12c-and-its-ready-to-download.html" rel="bookmark">Oracle Unveils Oracle Enterprise Manager Ops Center 12c and It&#8217;s Ready to Download</a></li>
<li class="SPOSTARBUST-Related-Post"><a title="My First Impressions of Enterprise Manager Ops Center 12c" href="http://www.gokhanatil.com/2012/04/my-first-impressions-of-enterprise.html" rel="bookmark">My First Impressions of Enterprise Manager Ops Center 12c</a></li>
<li class="SPOSTARBUST-Related-Post"><a title="Oracle Enterprise Manager 12c Bundle Patch 1 available for Solaris and AIX" href="http://www.gokhanatil.com/2012/07/oracle-enterprise-manager-12c-bundle-patch-1-available-for-solaris-and-aix.html" rel="bookmark">Oracle Enterprise Manager 12c Bundle Patch 1 available for Solaris and AIX</a></li>
</ul></div><img src="http://feeds.feedburner.com/~r/gokhanatil/~4/zrxxEAEWhWY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.gokhanatil.com/2013/03/book-review-oracle-enterprise-manager-12c-administration-cookbook.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.gokhanatil.com/2013/03/book-review-oracle-enterprise-manager-12c-administration-cookbook.html</feedburner:origLink></item>
		<item>
		<title>Bash Script to Upload RMAN Backups via FTP</title>
		<link>http://feedproxy.google.com/~r/gokhanatil/~3/yWtewDbRlkA/bash-script-to-upload-rman-backups-via-ftp.html</link>
		<comments>http://www.gokhanatil.com/2013/03/bash-script-to-upload-rman-backups-via-ftp.html#comments</comments>
		<pubDate>Mon, 18 Mar 2013 08:42:13 +0000</pubDate>
		<dc:creator>Gokhan Atil</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[rman]]></category>

		<guid isPermaLink="false">http://www.gokhanatil.com/?p=1110</guid>
		<description><![CDATA[Our customer asked if they can automatically upload latest RMAN backups via FTP to another server. Because they keep latest 3 backups in same directory, I wrote a small bash script which calls an SQL script to queries RMAN backups and then uploads only the backup pieces belong to the latest backup job. I wanted [...]]]></description>
				<content:encoded><![CDATA[<p>Our customer asked if they can automatically upload latest RMAN backups via FTP to another server. Because they keep latest 3 backups in same directory, I wrote a small bash script which calls an SQL script to queries RMAN backups and then uploads only the backup pieces belong to the latest backup job. I wanted to share this script because it demonstrates some interesting methods such as handling arrays returned from SQLPLus.</p>
<p>Here&#8217;s the SQL script (rmanfind.sql) to query RMAN backups. Our customer takes archive log backups during the day, so I needed to state full backup jobs while querying.</p><pre class="crayon-plain-tag">SET HEA OFF
SET FEED OFF
SET LINES 500
SET PAGES 500
SET TRIM ON

SELECT handle
from V$BACKUP_PIECE
where rman_Status_stamp IN (
select  stamp from V$RMAN_STATUS where parent_stamp =
 (SELECT session_stamp
from V$RMAN_BACKUP_JOB_DETAILS
where start_time =
(select max(start_time) from 
V$RMAN_BACKUP_JOB_DETAILS where input_type = 'DB FULL')));</pre><p><span id="more-1110"></span>The bash script (rmanftp.sh) can divided to 3 parts. In first part, the required credentials and environment variables are defined. On second part, rmanfind.sql is called. On last part, the resultset is processed and files are uploaded via FTP:</p><pre class="crayon-plain-tag">#!/bin/bash

#---------------------------------------------------------------------
# rmanftp (C) 2013 Gokhan Atil http://www.gokhanatil.com
#---------------------------------------------------------------------

# Required Info to Connect Oracle
. oraenv &lt;&lt;EOF
ORCL
EOF
ORACLE_CREDENTIALS=gokhan/atil

# Required Info to Connect FTP Server
TARGETSERVER=192.168.0.10
FTPUSER=oracle
FTPPASS=oracle
TARGETDIR=DAILY_BACKUP

# Query Latest Backup
SENDFILES=(`$ORACLE_HOME/bin/sqlplus -s $ORACLE_CREDENTIALS @rmanfind.sql`)

COUNT=${#SENDFILES[*]}
IDX=0
SENDTHEMALL=''

while (( $IDX &lt; $COUNT ))
do
LOCALPATH=`echo ${SENDFILES[$IDX]} | sed 's|\(.*\)/.*|\1|'`
FILENAME=`echo ${SENDFILES[$IDX]} | sed 's|.*/\(.*\)|\1|'`
SENDTHEMALL="${SENDTHEMALL}lcd $LOCALPATH\n"
SENDTHEMALL="${SENDTHEMALL}put $FILENAME\n"
IDX=$(($IDX+1))
done

# Convert Newlines to Enters?
FTPCMD=`echo -e $SENDTHEMALL`

# Upload Files
ftp -d -n $TARGETSERVER &lt;&lt;EOF
user $FTPUSER $FTPPASS
cd $TARGETDIR
bin
$FTPCMD
bye
EOF</pre><p>Here are the important parts of the script:</p>
<p>Line 20: The resultset returned from SQL Plus is put into an array variable. Be careful about the brackets.<br />
Line 22: How many rows we have?<br />
Line 26: A while loop starts here to processes all rows in the result set.<br />
Line 30-31: I extract the path and file name because ftp client does not support full path names. So I create &#8220;cd&#8221; and &#8220;put&#8221; commands for each backup piece.<br />
Line 36: SENDTHEMALL variable has newline (\n) characters but when I put it directly to EOF block, these newline characters are not honored, so I call &#8220;echo -e&#8221; and assign the result to FTPCMD variable.<br />
Line 43: FTPCMD contains ftp commands such as &#8220;lcd XXXXX put YYYYY&#8221;.</p>
<img src="http://feeds.feedburner.com/~r/gokhanatil/~4/yWtewDbRlkA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.gokhanatil.com/2013/03/bash-script-to-upload-rman-backups-via-ftp.html/feed</wfw:commentRss>
		<slash:comments>11</slash:comments>
		<feedburner:origLink>http://www.gokhanatil.com/2013/03/bash-script-to-upload-rman-backups-via-ftp.html</feedburner:origLink></item>
		<item>
		<title>How to Manually Remove the Enterprise Manager Grid/Cloud Control Agent</title>
		<link>http://feedproxy.google.com/~r/gokhanatil/~3/0S3CwoQymHk/how-to-manually-remove-the-enterprise-manager-gridcloud-control-agent.html</link>
		<comments>http://www.gokhanatil.com/2013/02/how-to-manually-remove-the-enterprise-manager-gridcloud-control-agent.html#comments</comments>
		<pubDate>Thu, 28 Feb 2013 20:53:23 +0000</pubDate>
		<dc:creator>Gokhan Atil</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[em12c]]></category>

		<guid isPermaLink="false">http://www.gokhanatil.com/?p=1086</guid>
		<description><![CDATA[One of my friend told me that they used to have Oracle Enterprise Manager Grid Control 10g and deployed its agents to some database servers but now they removed Grid Control and want to use Oracle Enterprise Manager Database Console. Usually people ask the opposite question Anyway, in this blog post, I&#8217;ll describe how to [...]]]></description>
				<content:encoded><![CDATA[<p>One of my friend told me that they used to have Oracle Enterprise Manager Grid Control 10g and deployed its agents to some database servers but now they removed Grid Control and want to use Oracle Enterprise Manager Database Console. Usually people ask the opposite question <img src='http://www.gokhanatil.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  </p>
<p>Anyway, in this blog post, I&#8217;ll describe how to manually remove Enterprise Manager Grid/Cloud Control Agent and then enable Enterprise Manager Database Control on the target system. First we need to stop the agent:</p>
<p></p><pre class="crayon-plain-tag">$AGENT_HOME/bin/emctl stop agent</pre><p> </p>
<p>If your Cloud Control is up, we need to remove agent. Login as oracle user and run the following commands: </p>
<p></p><pre class="crayon-plain-tag">emcli login -username=SYSMAN
emcli sync
emcli delete_target -name="targetsystem.testdomain.com:1836" \
-type="oracle_emd" -delete_monitored_targets</pre><p> </p>
<p>If you have Grid Control 10g/11g, then login to the repository database as SYSMAN and execute the following:</p>
<p></p><pre class="crayon-plain-tag">exec mgmt_admin.cleanup_agent('targetsystem.testdomain.com:3872');</pre><p> </p>
<p><span id="more-1086"></span>Now we&#8217;re ready to uninstall the agent software. Run the installer:</p>
<p></p><pre class="crayon-plain-tag">export ORACLE_HOME=export ORACLE_HOME=/u01/app/agent/core/12.1.0.2.0
$ORACLE_HOME/oui/bin/runInstaller -deinstall -removeallfiles</pre><p> </p>
<p>Click &#8220;deinstall products..&#8221; button to see Inventory (installed Oracle products on the server). For Grid Control Agents, all you need is to select agent home and click &#8220;Remove&#8221;. For Cloud Control Agents, you need to first select and remove plug-in homes (OraHome1..5), then select and remove sbin12cX home, and lastly select and remove agent home.</p>
<p><a href="http://www.gokhanatil.com/wp-content/uploads/2013/02/uninstall01.png" rel="lightbox[1086]"><img src="http://www.gokhanatil.com/wp-content/uploads/2013/02/uninstall01-300x235.png" alt="uninstall01" width="300" height="235" class="alignnone size-medium wp-image-1087" /></a></p>
<p>After we uninstall the agent, we&#8217;re ready to reconfigure Enterprise Manager Database Control. All you need is to run the following command. It will ask us to enter some information such as the Database SID, listener port number, passwords of SYS, DBSNMP  and SYSMAN users:</p>
<p></p><pre class="crayon-plain-tag">emca -config dbcontrol db -repos recreate</pre><p> </p>
<p>After a few minutes, you&#8217;ll see that Database Control is up.</p>
<img src="http://feeds.feedburner.com/~r/gokhanatil/~4/0S3CwoQymHk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.gokhanatil.com/2013/02/how-to-manually-remove-the-enterprise-manager-gridcloud-control-agent.html/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		<feedburner:origLink>http://www.gokhanatil.com/2013/02/how-to-manually-remove-the-enterprise-manager-gridcloud-control-agent.html</feedburner:origLink></item>
	</channel>
</rss>
