<?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>Gokhan Atil&#039;s Oracle Blog</title>
	<atom:link href="http://www.gokhanatil.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.gokhanatil.com</link>
	<description>Oracle Enterprise Manager Cloud Control, High Avaliability and Performance Tuning</description>
	<lastBuildDate>Wed, 08 May 2013 09:23:49 +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>
		<item>
		<title>Book Review: Managing Multimedia and Unstructured Data in the Oracle Database</title>
		<link>http://www.gokhanatil.com/2013/05/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>
]]></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>
		</item>
		<item>
		<title>Win A Free Copy of Packt&#8217;s Oracle Enterprise Manager 12c Administration Cookbook e-book</title>
		<link>http://www.gokhanatil.com/2013/04/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 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="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="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 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="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>]]></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>31</slash:comments>
		</item>
		<item>
		<title>VirtualBox: Failed to Create Host-only Network Interface on Ubuntu Linux</title>
		<link>http://www.gokhanatil.com/2013/03/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>
]]></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>
		</item>
		<item>
		<title>Book Review: Oracle Enterprise Manager 12c Administration Cookbook</title>
		<link>http://www.gokhanatil.com/2013/03/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="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>
<li class="SPOSTARBUST-Related-Post"><a title="TROUG Day 2012" href="http://www.gokhanatil.com/2012/10/troug-day-2012.html" rel="bookmark">TROUG Day 2012</a></li>
</ul></div>]]></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>
		</item>
		<item>
		<title>Bash Script to Upload RMAN Backups via FTP</title>
		<link>http://www.gokhanatil.com/2013/03/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>
]]></content:encoded>
			<wfw:commentRss>http://www.gokhanatil.com/2013/03/bash-script-to-upload-rman-backups-via-ftp.html/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>How to Manually Remove the Enterprise Manager Grid/Cloud Control Agent</title>
		<link>http://www.gokhanatil.com/2013/02/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>
]]></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>
		</item>
		<item>
		<title>Deploying Management Agent Using agentDeploy Script</title>
		<link>http://www.gokhanatil.com/2013/01/deploying-management-agent-using-agentdeploy-script.html</link>
		<comments>http://www.gokhanatil.com/2013/01/deploying-management-agent-using-agentdeploy-script.html#comments</comments>
		<pubDate>Wed, 16 Jan 2013 11:18:38 +0000</pubDate>
		<dc:creator>Gokhan Atil</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[agent]]></category>
		<category><![CDATA[em12c]]></category>

		<guid isPermaLink="false">http://www.gokhanatil.com/?p=1067</guid>
		<description><![CDATA[In case, your target systems have no support for SSH, you can use agentDeploy script to deploy Management Agents. To be able to use this method, you need to create a user for management agent and create required directories and give permission to the Management agent user. Let&#8217;s say we&#8217;ll create a group named &#8220;oinstall&#8221; [...]]]></description>
				<content:encoded><![CDATA[<p>In case, your target systems have no support for SSH, you can use agentDeploy script to deploy Management Agents. To be able to use this method, you need to create a user for management agent and create required directories and give permission to the Management agent user. </p>
<p>Let&#8217;s say we&#8217;ll create a group named &#8220;oinstall&#8221; and a user named &#8220;oracle&#8221; belongs to this group, and install the agent software to &#8220;/u01/agent&#8221;. Login as root user and issue the following commands: </p>
<p></p><pre class="crayon-plain-tag">[root@targetsystem ~]# groupadd oinstall
[root@targetsystem ~]# useradd -g oinstall oracle
[root@targetsystem ~]# passwd oracle
[root@targetsystem ~]# mkdir -p /u01/agent
[root@targetsystem ~]# chown -R oracle:oinstall /u01/agent</pre><p> </p>
<p>Of course, I assume that you don&#8217;t have oracle user and oinstall group, and there&#8217;s no directory named &#8220;/u01/agent&#8221;. Instead of creating new user, group and directory, you can use an existing user, group and directory (if the directory is empty). Do not forget to check if OMS and target system can resolve each other&#8217;s host name!</p>
<p>Login to the OMS host as oracle user (again I assume you used oracle to install OMS), and log in to OEM using emcli:</p>
<p></p><pre class="crayon-plain-tag">[oracle@cloudcontrol12 ~]$ /u01/app/Middleware/oms/bin/emcli login -username=sysman</pre><p> </p>
<p><span id="more-1067"></span>Oracle documents sugget us to synchronize EMCLI:</p>
<p></p><pre class="crayon-plain-tag">[oracle@cloudcontrol12 ~]$ /u01/app/Middleware/oms/bin/emcli sync</pre><p> </p>
<p>List the platforms for which the Management Agent software is available on the OMS host: </p>
<p></p><pre class="crayon-plain-tag">[oracle@cloudcontrol12 ~]$ /u01/app/Middleware/oms/bin/emcli get_supported_platforms
Getting list of platforms ...
Check the logs at /u01/app/Middleware/gc_inst/em/EMGC_OMS1/.../.emcli/agent.log
About to access self-update code path to retrieve the platforms list..
Getting Platforms list  ...
-----------------------------------------------
Version = 12.1.0.2.0
Platform = Linux x86-64
-----------------------------------------------
Platforms list displayed successfully.</pre><p></p>
<p>Create the installation package for the Management Agent software in a directory on the OMS host:</p><pre class="crayon-plain-tag">[oracle@cloudcontrol12 ~]$ /u01/app/Middleware/oms/bin/emcli get_agentimage \
-destination=/home/oracle -platform="Linux x86-64" -version=12.1.0.2.0</pre><p>You&#8217;ll have a new file in the destination directory. Its name will be something like 12.1.0.2.0_AgentCore_XXX.zip. Transfer this file to the target system. You may use ftp, scp or put that file to a shared directory and copy to target system. Then extract the zip file (<strong>on target system</strong>):</p><pre class="crayon-plain-tag">[oracle@targetsystem ~]$ unzip 12.1.0.2.0_AgentCore_226.zip -d agentsetup
Archive:  12.1.0.2.0_AgentCore_226.zip
  inflating: agentsetup/unzip
  inflating: agentsetup/agentDeploy.sh
  inflating: agentsetup/agentimage.properties
  inflating: agentsetup/agent.rsp
 extracting: agentsetup/agentcoreimage.zip
 extracting: agentsetup/12.1.0.2.0_PluginsOneoffs_226.zip</pre><p></p>
<p>Enter the agentsetup directory and edit the agent response file:</p>
<p></p><pre class="crayon-plain-tag">[oracle@targetsystem ~]$ cd agentsetup
[oracle@targetsystem agentsetup]$ vi agent.rsp</pre><p> </p>
<p>Modify the response file according to your OMS configuration:</p>
<p></p><pre class="crayon-plain-tag">OMS_HOST=cloudcontrol12.gokhanatil.com
EM_UPLOAD_PORT=4900
AGENT_REGISTRATION_PASSWORD=&lt;registration_password&gt;
AGENT_INSTANCE_HOME=/u01/agent
AGENT_PORT=3872
b_startAgent=true
ORACLE_HOSTNAME=targetsystem.gokhanatil.com
s_agentHomeName="agent12gR2"</pre><p> </p>
<p>Run the agentDeploy.sh script to deploy the agent:</p><pre class="crayon-plain-tag">./agentDeploy.sh RESPONSE_FILE=/home/oracle/agentsetup/agent.rsp \
AGENT_BASE_DIR=/u01/agent</pre><p>After the script is completed successfully, open a new terminal window, login as “root” and run the configuration script (the location of the script is written in the output of agentDeploy.sh):</p><pre class="crayon-plain-tag">[root@targetsystem ~]#  /u01/agent/core/12.1.0.2.0/root.sh
Finished product-specific root actions.</pre><p>You can check the agent’s status:</p><pre class="crayon-plain-tag">[oracle@targetsystem agentsetup]$ /u01/agent/core/12.1.0.2.0/bin/emctl status agent
Oracle Enterprise Manager Cloud Control 12c Release 2
Copyright (c) 1996, 2012 Oracle Corporation.  All rights reserved.
---------------------------------------------------------------
Agent Version     : 12.1.0.2.0
OMS Version       : 12.1.0.2.0
Protocol Version  : 12.1.0.1.0
Agent Home        : /u01/agent
Agent Binaries    : /u01/agent/core/12.1.0.2.0
Agent Process ID  : 14620
Parent Process ID : 14578
Agent URL         : https://targetsystem.gokhanatil.com:3872/emd/main/
Repository URL    : https://cloudcontrol12.gokhanatil.com:4900/empbs/upload
Started at        : 2012-10-12 06:10:12
Started by user   : oracle
Last Reload       : (none)
Last successful upload                       : 2012-10-12 06:12:57
Last attempted upload                        : 2012-10-12 06:12:57
Total Megabytes of XML files uploaded so far : 0.01
Number of XML files pending upload           : 0
Size of XML files pending upload(MB)         : 0
Available disk space on upload filesystem    : 89.15%
Collection Status                            : Collections enabled
Heartbeat Status                             : Ok
Last attempted heartbeat to OMS              : 2012-10-12 06:13:26
Last successful heartbeat to OMS             : 2012-10-12 06:13:26
Next scheduled heartbeat to OMS              : 2012-10-12 06:14:26

---------------------------------------------------------------
Agent is Running and Ready</pre><p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.gokhanatil.com/2013/01/deploying-management-agent-using-agentdeploy-script.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Deploy Oracle Management Agent using RPM File</title>
		<link>http://www.gokhanatil.com/2012/12/how-to-deploy-oracle-management-agent-using-rpm-file.html</link>
		<comments>http://www.gokhanatil.com/2012/12/how-to-deploy-oracle-management-agent-using-rpm-file.html#comments</comments>
		<pubDate>Mon, 31 Dec 2012 09:25:31 +0000</pubDate>
		<dc:creator>Gokhan Atil</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[agent]]></category>
		<category><![CDATA[em12c]]></category>

		<guid isPermaLink="false">http://www.gokhanatil.com/?p=1052</guid>
		<description><![CDATA[If you prefer RPM package management system to keep tracks of installed software on your systems, you can deploy Oracle Management Agent using RPM File. First, you need to create &#8220;/usr/lib/oracle&#8221; on OMS server (if there is no such a directory). Login as root user and run the following commands: [crayon-519c3d5d693fe/] Install the rpm-build package [...]]]></description>
				<content:encoded><![CDATA[<p>If you prefer RPM package management system to keep tracks of installed software on your systems, you can deploy Oracle Management Agent using RPM File.</p>
<p>First, you need to create &#8220;/usr/lib/oracle&#8221; on OMS server (if there is no such a directory). Login as root user and run the following commands:</p><pre class="crayon-plain-tag">[root@cloudcontrol12 ~]# mkdir /usr/lib/oracle
[root@cloudcontrol12 ~]# chmod 777 /usr/lib/oracle</pre><p>Install the rpm-build package on the OMS host:</p><pre class="crayon-plain-tag">[root@cloudcontrol12 ~]# yum install rpm-build</pre><p>Switch to oracle user, and login to OEM using emcli as SYSMAN user:</p><pre class="crayon-plain-tag">[oracle@cloudcontrol12 ~]$ /u01/app/Middleware/oms/bin/emcli login -username=sysman</pre><p>List the platforms for which the Management Agent software is available on the OMS host:</p><pre class="crayon-plain-tag">[oracle@cloudcontrol12 ~]$ /u01/app/Middleware/oms/bin/emcli get_supported_platforms
Getting list of platforms ...
Check the logs at /u01/app/Middleware/gc_inst/em/EMGC_OMS1/sysman/.../agent.log
About to access self-update code path to retrieve the platforms list..
Getting Platforms list  ...
-----------------------------------------------
Version = 12.1.0.2.0
Platform = Linux x86-64
-----------------------------------------------
Platforms list displayed successfully.</pre><p><span id="more-1052"></span>As you see, there&#8217;s only Linux x86-64 agent available. Let&#8217;s create and download the RPM file for it:</p><pre class="crayon-plain-tag">[oracle@cloudcontrol12 ~]$ /u01/app/Middleware/oms/bin/emcli get_agentimage_rpm \
-destination=/home/oracle -platform="Linux x86-64" -version=12.1.0.2.0
…
Agent Image copied successfully...
Creation of RPM started...
RPM creation successful.
Agent image to rpm conversion completed successfully</pre><p>Now we can copy the RPM to the target system to deploy the agent. I assume that you have already created a user for agent.</p><pre class="crayon-plain-tag">$ scp oracle-agt-12.1.0.2.0-1.0.x86_64.rpm oracle@targetsystem:.
oracle@targetsystem's password:
oracle-agt-12.1.0.2.0-1.0.x86_64.rpm           55%  124MB  14.2MB/s   00:08 ETA</pre><p>Login as root to the target system and install the RPM:</p><pre class="crayon-plain-tag">[root@targetsystem ~]# cd /home/oracle
[root@targetsystem ~]# rpm –i oracle-agt-12.1.0.2.0-1.0.x86_64.rpm</pre><p>When it&#8217;s done, you need to edit /usr/lib/oracle/agent/agent.properties file, enter the required values:</p>
<p>OMS_HOST=cloudcontrol12.gokhanatil.com<br />
OMS_PORT=7799<br />
AGENT_REGISTRATION_PASSWORD=&lt;registration_password&gt;<br />
AGENT_USERNAME=&lt;user_created_for_agent&gt;<br />
AGENT_GROUP=&lt;group_created_for_agent&gt;<br />
AGENT_PORT=3872<br />
ORACLE_HOSTNAME=targetsystem.gokhanatil.com</p>
<p>Save the file and run /etc/init.d/oracle-agt:</p><pre class="crayon-plain-tag"># /etc/init.d/oracle-agt RESPONSE_FILE=/usr/lib/oracle/agent/agent.properties</pre><p>That&#8217;s all, now you can check if agent is running:</p><pre class="crayon-plain-tag">$ /usr/lib/oracle/agent/core/12.1.0.2.0/bin/emctl status agent
Oracle Enterprise Manager Cloud Control 12c Release 2
Copyright (c) 1996, 2012 Oracle Corporation.  All rights reserved.
---------------------------------------------------------------
Agent Version     : 12.1.0.2.0
OMS Version       : 12.1.0.2.0
Protocol Version  : 12.1.0.1.0
Agent Home        : /usr/lib/oracle/agent/agent_inst
Agent Binaries    : /usr/lib/oracle/agent/core/12.1.0.2.0
Agent Process ID  : 5323
Parent Process ID : 5283</pre><p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.gokhanatil.com/2012/12/how-to-deploy-oracle-management-agent-using-rpm-file.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle SQL Developer and jTDS Incompatibility</title>
		<link>http://www.gokhanatil.com/2012/11/oracle-sql-developer-and-jtds-incompatibility.html</link>
		<comments>http://www.gokhanatil.com/2012/11/oracle-sql-developer-and-jtds-incompatibility.html#comments</comments>
		<pubDate>Thu, 29 Nov 2012 10:21:42 +0000</pubDate>
		<dc:creator>Gokhan Atil</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[microsoft sql server]]></category>
		<category><![CDATA[sql developer]]></category>

		<guid isPermaLink="false">http://www.gokhanatil.com/?p=1039</guid>
		<description><![CDATA[Some readers commented that, after they add JDBC driver for Microsoft SQL Server to their SQL Developer, the &#8220;New Connection&#8221; window (of SQL Developer) doesn&#8217;t open at all. I have downloaded the latest Java (1.6), SQL Developer and added jTDS driver then I have the same problem. I tried to debug the problem with my [...]]]></description>
				<content:encoded><![CDATA[<p>Some readers commented that, after they add <a href="http://jtds.sourceforge.net/" target="_blank">JDBC driver</a> for Microsoft SQL Server to their SQL Developer, the &#8220;New Connection&#8221; window (of SQL Developer) doesn&#8217;t open at all. I have downloaded the latest Java (1.6), SQL Developer and added jTDS driver then I have the same problem. I tried to debug the problem with my limited Java knowledge and I think there&#8217;s an incompatibility between jTDS and Java 1.6.</p>
<p>Oracle recommends to use Java 1.6 for SQL Developer so instead of trying Java 1.7, I tried to find the latest compatible version of jTDS and luckily I found it on my first try. So to fix the problem, all you need is to download and use 1.2.7 version of jTDS: <a href="http://sourceforge.net/projects/jtds/files/jtds/1.2.7/" target="_blank">jtds-1.2.7-dist.zip</a></p>
<p><a href="http://www.gokhanatil.com/wp-content/uploads/2012/11/jtds127.png" rel="lightbox[1039]"><img src="http://www.gokhanatil.com/wp-content/uploads/2012/11/jtds127.png" alt="" title="jtds127" width="600" class="alignnone size-full wp-image-1041" /></a></p>
<p>Then you&#8217;ll be able to connect to Ms SQL Server or Sybase with your Oracle SQL Developer. For more information about using SQL Developer with Ms SQL Server and MySQL, please read <a href="http://www.gokhanatil.com/2011/09/configuring-oracle-sql-developer-for-microsoft-sql-server-and-mysql.html" target="_blank">my related blog post</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gokhanatil.com/2012/11/oracle-sql-developer-and-jtds-incompatibility.html/feed</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>Customizing HTTPS Console and Upload Ports After Installing Enterprise Manager Grid/Cloud Control</title>
		<link>http://www.gokhanatil.com/2012/11/customizing-https-console-and-upload-ports-after-installing-enterprise-manager-gridcloud-control.html</link>
		<comments>http://www.gokhanatil.com/2012/11/customizing-https-console-and-upload-ports-after-installing-enterprise-manager-gridcloud-control.html#comments</comments>
		<pubDate>Sun, 11 Nov 2012 19:57:59 +0000</pubDate>
		<dc:creator>Gokhan Atil</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[cloud control]]></category>
		<category><![CDATA[em12c]]></category>
		<category><![CDATA[grid control]]></category>

		<guid isPermaLink="false">http://www.gokhanatil.com/?p=1027</guid>
		<description><![CDATA[One of my blog readers asked me how we can change the ports of Grid Control after install. Yes it&#8217;s possible to change the ports after installing EM Grid Control and it&#8217;s well documented for Enterprise Manager Cloud control. I tested if these steps are valid for Grid Control and it worked. I think no [...]]]></description>
				<content:encoded><![CDATA[<p>One of my blog readers asked me how we can change the ports of Grid Control after install. Yes it&#8217;s possible to change the ports after installing EM Grid Control and it&#8217;s <a href="http://docs.oracle.com/cd/E24628_01/install.121/e24089/getstrtd_things_to_know.htm" target="_blank"> well documented</a> for Enterprise Manager Cloud control. I tested if these steps are valid for Grid Control and it worked. I think no one uses insecure ports so I&#8217;ll show how I will set Oracle Enterprise Manager (secure) web site port to 8000 and &#8220;secure/https upload port&#8221; to 2000 on Oracle Enterprise Manager Grid Control 11g:</p>
<p>First we need to stop OMS:</p>
<p></p><pre class="crayon-plain-tag">/oracle/Middleware/oms11g/bin/emctl stop oms -all</pre><p></p>
<p>Then modify the port information in repository:</p><pre class="crayon-plain-tag">/oracle/Middleware/oms11g/bin/emctl set property -name \
oracle.sysman.emSDK.svlt.ConsoleServerHTTPSPort -value 2000
/oracle/Middleware/oms11g/bin/emctl set property -name \
oracle.sysman.emSDK.svlt.EMConsoleServerHTTPSPort -value 8000</pre><p><span id="more-1027"></span>Modify the ports in the configuration files (/oracle/gc_inst/em/EMGC_OMS1/emgc.properties):</p>
<p>Change values of EM_CONSOLE_HTTPS_PORT (Oracle Enterprise Manager web console port) and EM_UPLOAD_HTTPS_PORT (upload port used by agents)</p><pre class="crayon-plain-tag">EM_CONSOLE_HTTPS_PORT=8000
EM_UPLOAD_HTTPS_PORT=2000</pre><p>Edit SSL configuration of Apache (/oracle/gc_inst/WebTierIH1/config/OHS/ohs1/ssl.conf ) and find &#8220;Listen 7799&#8243; and &#8220;VirtualHost *:7799&#8243; and enter new port numbers:</p>
<p></p><pre class="crayon-plain-tag"># OHS Listen Port
Listen 8000

&lt;VirtualHost *:8000&gt;</pre><p> </p>
<p>Edit SSL configuration of EM Upload service (/oracle/gc_inst/WebTierIH1/config/OHS/ohs1/httpd_em.conf), find the following lines:</p>
<p></p><pre class="crayon-plain-tag">&lt;IfDefine SSL&gt;
    Listen 1159
    &lt;VirtualHost *:1159&gt;</pre><p> </p>
<p>and enter new port numbers:</p>
<p></p><pre class="crayon-plain-tag">&lt;IfDefine SSL&gt;
    Listen 2000
    &lt;VirtualHost *:2000&gt;</pre><p> </p>
<p>Now you can start OMS. Of course you also need to modify agent configuration if you change upload ports. The agent configuration file can be found at $AGENT_INSTANCE_HOME/sysman/config/emd.properties. Open it and search for REPOSITORY_URL.</p>
<p>Modify its value according to your new OMS upload port:</p>
<p></p><pre class="crayon-plain-tag">REPOSITORY_URL=https://gridcontrol11.gokhanatil.com:2000/em/upload</pre><p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.gokhanatil.com/2012/11/customizing-https-console-and-upload-ports-after-installing-enterprise-manager-gridcloud-control.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
