<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Database Bulletin</title>
	<atom:link href="http://dbbulletin.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://dbbulletin.wordpress.com</link>
	<description>All matters database tacked up here.</description>
	<lastBuildDate>Wed, 14 Dec 2011 17:11:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='dbbulletin.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Database Bulletin</title>
		<link>http://dbbulletin.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://dbbulletin.wordpress.com/osd.xml" title="Database Bulletin" />
	<atom:link rel='hub' href='http://dbbulletin.wordpress.com/?pushpress=hub'/>
		<item>
		<title>new gig, 10.2.0.5 installation snafu</title>
		<link>http://dbbulletin.wordpress.com/2011/12/14/new-gig-10-2-0-5-installation-snafu/</link>
		<comments>http://dbbulletin.wordpress.com/2011/12/14/new-gig-10-2-0-5-installation-snafu/#comments</comments>
		<pubDate>Wed, 14 Dec 2011 17:11:35 +0000</pubDate>
		<dc:creator>dbbulletin</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[oracle universal installer]]></category>

		<guid isPermaLink="false">http://dbbulletin.wordpress.com/?p=427</guid>
		<description><![CDATA[Wanted to do a brief post to get myself to resume writing. I haven&#8217;t blogged for over one year. I started a new job in Oct 2010 and that&#8217;s kept me occupied. I&#8217;m now longer a full time DBA but still heavily involved in databases. I&#8217;m doing pre-sales at EMC focused on database backup with <a href="http://dbbulletin.wordpress.com/2011/12/14/new-gig-10-2-0-5-installation-snafu/" class="excerpt-more-link">[&#8230;]</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dbbulletin.wordpress.com&amp;blog=3169068&amp;post=427&amp;subd=dbbulletin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Wanted to do a brief post to get myself to resume writing.</p>
<p>I haven&#8217;t blogged for over one year. I started a new job in Oct 2010 and that&#8217;s kept me occupied. I&#8217;m now longer a full time DBA but still heavily involved in databases. I&#8217;m doing pre-sales at EMC focused on database backup with EMC&#8217;s backup and recovery product line. I help customers understand how they can use EMC&#8217;s Data Domain, Networker and Avamar products to backup Oracle, SQL Server, DB2, Sybase, Greenplum and more. Great job, great company to work for, great customers!</p>
<p>For some internal testing, I was installing Oracle 10g on Oracle Enterprise Linux 5.5 and 5.7. Had to do the following:</p>
<ol>
<li>Needed to install several missing rpms, the usual stuff.</li>
<li>Ran the 10.2.0.1 installer with the ignoreSysPreReqs flag since the Linux releases were far newer than the installer.
</li>
<li>
When launching the 10.2.0.5 Oracle patch, the runInstaller command bombed without displaying the GUI and complained about a libXp.so.6 error. Google searches revealed a well blazed trail to the work around, which follows.</p>
<ul>
<li>
Obtain the xorg-xll-deprecated library.<br />
<a href="ftp://rpmfind.net/linux/fedora/core/4/x86_64/os/Fedora/RPMS/xorg-x11-deprecated-libs-6.8.2-31.i386.rpm" title="xorg-x11-deprecated-libs-6.8.2-31.i386.rpm">ftp://rpmfind.net/linux/fedora/core/4/x86_64/os/Fedora/RPMS/xorg-x11-deprecated-libs-6.8.2-31.i386.rpm</a>. Install the rpm.</li>
<li>
Prior to launching runInstaller, update the LD_LIBRARY_PATH environment variable to contain /usr/X11R6/lib, e.g.<br />
<code>$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/X11R6/lib</code> </li>
</ul>
</ol>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dbbulletin.wordpress.com/427/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dbbulletin.wordpress.com/427/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dbbulletin.wordpress.com/427/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dbbulletin.wordpress.com/427/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dbbulletin.wordpress.com/427/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dbbulletin.wordpress.com/427/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dbbulletin.wordpress.com/427/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dbbulletin.wordpress.com/427/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dbbulletin.wordpress.com/427/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dbbulletin.wordpress.com/427/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dbbulletin.wordpress.com/427/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dbbulletin.wordpress.com/427/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dbbulletin.wordpress.com/427/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dbbulletin.wordpress.com/427/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dbbulletin.wordpress.com&amp;blog=3169068&amp;post=427&amp;subd=dbbulletin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dbbulletin.wordpress.com/2011/12/14/new-gig-10-2-0-5-installation-snafu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9ee5c1f004dfa2ce997c3c08339e3d9e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dbbulletin</media:title>
		</media:content>
	</item>
		<item>
		<title>Explaining it better: dbms_xplan</title>
		<link>http://dbbulletin.wordpress.com/2010/08/18/explaining-it-better-dbms_xplan/</link>
		<comments>http://dbbulletin.wordpress.com/2010/08/18/explaining-it-better-dbms_xplan/#comments</comments>
		<pubDate>Wed, 18 Aug 2010 11:03:55 +0000</pubDate>
		<dc:creator>dbbulletin</dc:creator>
				<category><![CDATA[11g]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[dbms_xplan]]></category>
		<category><![CDATA[explain plans]]></category>

		<guid isPermaLink="false">http://dbbulletin.wordpress.com/?p=406</guid>
		<description><![CDATA[The dbms_xplan PL/SQL package arrived with Oracle 9i. It had just one function, display(). Provided you have a plan table (created with $OH/rdbms/admin/utlxplan.sql) in your schema, you can use it like this in a sqlplus session: Why use it? It provides explain plans formatted much better than the older pre 9i methods of displaying query <a href="http://dbbulletin.wordpress.com/2010/08/18/explaining-it-better-dbms_xplan/" class="excerpt-more-link">[&#8230;]</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dbbulletin.wordpress.com&amp;blog=3169068&amp;post=406&amp;subd=dbbulletin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The dbms_xplan PL/SQL package arrived with Oracle 9i. It had just one function, display(). Provided you have a plan table (created with $OH/rdbms/admin/utlxplan.sql) in your schema, you can use it like this in a sqlplus session:<br />
<pre class="brush: sql;">
EXPLAIN PLAN FOR
SELECT e.*, d.dept_name
FROM emp e, dept d
WHERE e.deptno = d.deptno
  AND e.ename='benoit';

Rem
Rem Display the plan using the DBMS_XPLAN.DISPLAY() table function
Rem
SET LINESIZE 130
SET PAGESIZE 0
SELECT * FROM table(DBMS_XPLAN.DISPLAY);
</pre></p>
<p>Why use it? It provides explain plans formatted much better than the older pre 9i methods of displaying query explain plans. DBMS_XPLAN also provides more information needed for performance tuning. I thought I was pretty slick having this at my finger tips since 9i came out.</p>
<p>What I didn&#8217;t realize is that DBMS_XPLAN has been <a href="http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_xplan.htm#i996786">enhanced in 10G</a> and <a href="http://download.oracle.com/docs/cd/E11882_01/appdev.112/e16760/d_xplan.htm#CACFJGHG">further in 11G</a>.</p>
<p><a href="http://jonathanlewis.wordpress.com/2010/08/17/fbi-bug/#comments">The comments for this Jonathan Lewis blog post</a> tipped me off to the new functions. They led to <a href="http://rwijk.blogspot.com/2008/03/dbmsxplandisplaycursor.html">Rob van Wijk&#8217;s detailed post on the new display_cursor function</a>, as well as another <a href="http://jonathanlewis.wordpress.com/2006/11/09/dbms_xplan-in-10g/">Jonathan Lewis post on the function</a>.</p>
<p>Needless to say, these enhancements have been around for 5 plus years and I&#8217;m just getting to them. Humbling!</p>
<p>By the way, the plan table supports keeping data for multiple statements at the same time. Handy if multiple developers need to run explain simultaneously. Here&#8217;s how: provide arguments to the dbms_xplan.display function.</p>
<p><pre class="brush: sql;">

-- Begin spooling to file.
spool my_file_name.txt

-- Capture database name and current user.
select * from global_name;
select user from dual;

-- Run query.
explain plan 
SET STATEMENT_ID = 'developer_01_sql_01' 
INTO plan_table for
SELECT e.*, d.dept_name
FROM emp e, dept d
WHERE e.deptno = d.deptno
  AND e.ename='benoit';

SET LINESIZE 130
SET PAGESIZE 0
SELECT * FROM TABLE(DBMS_XPLAN.DISPLAY('PLAN_TABLE', 'developer_01_sql_01','TYPICAL'));

spool off
exit

</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dbbulletin.wordpress.com/406/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dbbulletin.wordpress.com/406/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dbbulletin.wordpress.com/406/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dbbulletin.wordpress.com/406/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dbbulletin.wordpress.com/406/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dbbulletin.wordpress.com/406/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dbbulletin.wordpress.com/406/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dbbulletin.wordpress.com/406/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dbbulletin.wordpress.com/406/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dbbulletin.wordpress.com/406/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dbbulletin.wordpress.com/406/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dbbulletin.wordpress.com/406/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dbbulletin.wordpress.com/406/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dbbulletin.wordpress.com/406/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dbbulletin.wordpress.com&amp;blog=3169068&amp;post=406&amp;subd=dbbulletin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dbbulletin.wordpress.com/2010/08/18/explaining-it-better-dbms_xplan/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9ee5c1f004dfa2ce997c3c08339e3d9e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dbbulletin</media:title>
		</media:content>
	</item>
		<item>
		<title>11g OCP</title>
		<link>http://dbbulletin.wordpress.com/2010/07/15/11g-ocp/</link>
		<comments>http://dbbulletin.wordpress.com/2010/07/15/11g-ocp/#comments</comments>
		<pubDate>Thu, 15 Jul 2010 17:46:59 +0000</pubDate>
		<dc:creator>dbbulletin</dc:creator>
				<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://dbbulletin.wordpress.com/?p=353</guid>
		<description><![CDATA[Passed the 11g New Features exam today! Nice sense of relief after putting in a fair amount of time studying. Interesting to see the increased security at test centers today. They take your picture and electronic signature each time you arrive and compare it to the last time you were there. You need to surrender <a href="http://dbbulletin.wordpress.com/2010/07/15/11g-ocp/" class="excerpt-more-link">[&#8230;]</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dbbulletin.wordpress.com&amp;blog=3169068&amp;post=353&amp;subd=dbbulletin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Passed the 11g New Features exam today! Nice sense of relief after putting in a fair amount of time studying. Interesting to see the increased security at test centers today. They take your picture and electronic signature each time you arrive and compare it to the last time you were there. You need to surrender all electronics, pens and paper to prevent capturing exam questions.</p>
<p>I logged into the new oracle certification site which gets data from Pearson. I need to contact Oracle to get my prometric tests listed in the same profile. Will do so tomorrow when I get my paper copies of scores and dates in front of me.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dbbulletin.wordpress.com/353/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dbbulletin.wordpress.com/353/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dbbulletin.wordpress.com/353/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dbbulletin.wordpress.com/353/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dbbulletin.wordpress.com/353/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dbbulletin.wordpress.com/353/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dbbulletin.wordpress.com/353/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dbbulletin.wordpress.com/353/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dbbulletin.wordpress.com/353/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dbbulletin.wordpress.com/353/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dbbulletin.wordpress.com/353/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dbbulletin.wordpress.com/353/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dbbulletin.wordpress.com/353/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dbbulletin.wordpress.com/353/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dbbulletin.wordpress.com&amp;blog=3169068&amp;post=353&amp;subd=dbbulletin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dbbulletin.wordpress.com/2010/07/15/11g-ocp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9ee5c1f004dfa2ce997c3c08339e3d9e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dbbulletin</media:title>
		</media:content>
	</item>
		<item>
		<title>Get Oracle Client Information with Powershell</title>
		<link>http://dbbulletin.wordpress.com/2010/07/09/get-oracle-client-information-with-powershell/</link>
		<comments>http://dbbulletin.wordpress.com/2010/07/09/get-oracle-client-information-with-powershell/#comments</comments>
		<pubDate>Fri, 09 Jul 2010 18:53:15 +0000</pubDate>
		<dc:creator>dbbulletin</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Oracle Client]]></category>
		<category><![CDATA[powershell]]></category>

		<guid isPermaLink="false">http://dbbulletin.wordpress.com/?p=344</guid>
		<description><![CDATA[I spent a couple of hours this morning coming up with a way to see which of a large number of windows hosts have Oracle client installed. In particular, I wanted the path to the Oracle home for each machine. We have some 3rd party agent-based tools that gather data about windows machines, but licensing <a href="http://dbbulletin.wordpress.com/2010/07/09/get-oracle-client-information-with-powershell/" class="excerpt-more-link">[&#8230;]</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dbbulletin.wordpress.com&amp;blog=3169068&amp;post=344&amp;subd=dbbulletin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I spent a couple of hours this morning coming up with a way to see which of a large number of windows hosts have Oracle client installed. In particular, I wanted the path to the Oracle home for each machine. We have some 3rd party agent-based tools that gather data about windows machines, but licensing prohibits installing them everywhere.</p>
<p>Eventually I decided to create a powershell script that iterates through a list of windows hosts and outputs the value of all ORACLE_HOME entries in the registry plus the main PATH variable. A number of machines are likely to have more than one Oracle client. Or they may have multiple values for ORACLE_HOME even though some have been uninstalled. Getting the PATH value will allow me to see which one was installed most recently, since the most recently installed client should be foremost in the PATH.</p>
<p>I&#8217;ve posted the powershell script below. It requires an input file and creates an output file that can be opened in Excel. It illustrates using FOREACH loops, invoking the REG QUERY command against remote machines, using IF logic, and reading and writing to a file and some grep style filtering.</p>
<p><pre class="brush: powershell;">
# Written with powershell 2.0. Not sure if it works with 1.0.

# File containing list of hosts.
$host_inputfile = &quot;host_list.txt&quot;

# Name of output data file and of log file.
$ofile = &quot;ohome_values.txt&quot;
$olog = &quot;ohome_run.log&quot;

# Initialize counters for hosts and Oracle Homes.
$total_hosts = 0
# Total homes found
$total_homes = 0

# Update log file to say that processing is starting.
echo &quot;Starting new run of get_oracle_client.&quot; | out-file $olog -append
$start_time = get-date
echo $start_time | out-file $olog -append

# Start output data file by putting a header row in.
echo &quot;HOSTNAME, KEY_NAME, KEY_TYPE, KEY_VALUE&quot; | out-file $ofile

# Read into a variable the file containing the list of hosts.
$host_list = get-content $host_inputfile

# Iterate through each host in the list.
foreach ($HOST_NAME in $host_list) {

	# Update the user on progress.
	echo &quot;Working on $HOST_NAME...&quot;
	
	# Run a a command to get a list of all values from the registry for
	# ORACLE_HOME. Several strings need to be excluded, such as 
	# ORACLE_HOME_NAME and agent10g.
	
	$OH_RAW = reg query \\$HOST_NAME\HKLM\Software\Oracle /s | select-string &quot;ORACLE_HOME&quot; 
	
	$OH = echo $OH_RAW | sort | get-unique | select-string -notmatch &quot;ORACLE_HOME_KEY&quot;, &quot;ORACLE_HOME_NAME&quot;, &quot;agent10g&quot;
	
	# Write Oracle Home values to file. Include a column for the host name.
	# Iterate through each line returned from the remote machine.
	foreach ($line in $OH) {
		
		# Initialize output var
	  $out_var = &quot;$HOST_NAME&quot;
		
		$split_line = -split $line
		
		foreach ($word in $split_line) {
			$out_var=&quot;$out_var,$word&quot;
		}
		
		# If there was nothing to be processed, then don't write to file.
		if ($out_var -eq &quot;$HOST_NAME,&quot;) {
			break
		}
		
		# Increment Oracle Homes counter variable and write values to file.
		$total_homes = $total_homes + 1
		echo $out_var | out-file $ofile -append
		
	}
	
	# Key for getting PATH:
	# HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
	
	$path_var = reg query &quot;\\$HOST_NAME\HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment&quot;
	$path_var = echo $path_var | select-string &quot;Path&quot; 
	$path_var = echo $path_var | select-string -notmatch &quot;PATHEXT&quot;, &quot;TRACE_FORMAT_SEARCH_PATH&quot;, &quot;PSModulePath&quot;, &quot;Os2LibPath&quot;
	
	# Write path value to file. Include a column for the host name.
	foreach ($line in $path_var) {
		
		# Initialize output var
	  $out_var = &quot;$HOST_NAME&quot;
		
		$split_line = -split $line
		
		foreach ($word in $split_line) {
			$out_var=&quot;$out_var,$word&quot;
		}
		
		# If there was nothing to be processed, then don't write to file.
		if ($out_var -eq &quot;$HOST_NAME,&quot;) {
			break
		}		
		
		# Write values to file.
		echo $out_var | out-file $ofile -append
	}
	
	# Increment hosts counter variable.
	$total_hosts = $total_hosts + 1

}

$end_time = get-date

# Update screen.
echo &quot;Start time was: $start_time.&quot;
echo &quot;End time was: $end_time.&quot;
echo &quot;$total_hosts hosts processed.&quot; 
echo &quot;$total_homes Oracle Homes found.&quot; 

# Append to log file.
echo &quot;Ending run of get_oracle_client.&quot; | out-file $olog -append
echo &quot;$total_hosts hosts processed.&quot; | out-file $olog -append
echo &quot;$total_homes Oracle Homes found.&quot; | out-file $olog -append
echo $end_time | out-file $olog -append
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dbbulletin.wordpress.com/344/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dbbulletin.wordpress.com/344/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dbbulletin.wordpress.com/344/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dbbulletin.wordpress.com/344/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dbbulletin.wordpress.com/344/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dbbulletin.wordpress.com/344/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dbbulletin.wordpress.com/344/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dbbulletin.wordpress.com/344/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dbbulletin.wordpress.com/344/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dbbulletin.wordpress.com/344/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dbbulletin.wordpress.com/344/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dbbulletin.wordpress.com/344/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dbbulletin.wordpress.com/344/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dbbulletin.wordpress.com/344/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dbbulletin.wordpress.com&amp;blog=3169068&amp;post=344&amp;subd=dbbulletin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dbbulletin.wordpress.com/2010/07/09/get-oracle-client-information-with-powershell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9ee5c1f004dfa2ce997c3c08339e3d9e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dbbulletin</media:title>
		</media:content>
	</item>
		<item>
		<title>Upgrading to Apex 4.0</title>
		<link>http://dbbulletin.wordpress.com/2010/07/07/upgrading-to-apex-4-0/</link>
		<comments>http://dbbulletin.wordpress.com/2010/07/07/upgrading-to-apex-4-0/#comments</comments>
		<pubDate>Wed, 07 Jul 2010 21:14:52 +0000</pubDate>
		<dc:creator>dbbulletin</dc:creator>
				<category><![CDATA[APEX]]></category>
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://dbbulletin.wordpress.com/?p=339</guid>
		<description><![CDATA[Apex 4.0 is now available for download at oracle.com. I downloaded and installed it today. Upgrade steps were simple, the same as previous Apex upgrades. In my environment, I encountered no problems. I&#8217;m running database 11.2.0 on Windows 2008 on VMWare with Oracle HTTP server 11.1.0. The upgrade steps were essentially: &#62; Verify backups &#62; <a href="http://dbbulletin.wordpress.com/2010/07/07/upgrading-to-apex-4-0/" class="excerpt-more-link">[&#8230;]</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dbbulletin.wordpress.com&amp;blog=3169068&amp;post=339&amp;subd=dbbulletin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Apex 4.0 is now available for download at oracle.com. I downloaded and installed it today. </p>
<p>Upgrade steps were simple, the same as previous Apex upgrades. In my environment, I encountered no problems. I&#8217;m running database 11.2.0 on Windows 2008 on VMWare with Oracle HTTP server 11.1.0.</p>
<p>The upgrade steps were essentially:<br />
&gt; Verify backups<br />
&gt; unzip apex_4.0.zip file<br />
&gt; stop Oracle HTTP server and Listener<br />
&gt; As SYSDBA, run apexins.sql file. I ran utlrp.sql after that as there were some invalid objects.<br />
&gt; Copy new set of images from apex_4.0 zip file to Oracle HTTP server images directory<br />
&gt; If desired, as SYSDBA, run PL/SQL code to give appropriate privileges to the new Apex 4.0 user<br />
&gt; Restart Oracle HTTP server and listener.</p>
<p>Everything in my main application worked fine, with the exception of the field list drop down on the find button on interactive reports. I&#8217;m using IE 7, and the drop down list does not display correctly. The same drop down list displays correctly in Firefox 3.6.3, so I&#8217;m guessing it&#8217;s a IE 7 issue. I don&#8217;t have IE 8 handy to try. The other parts of interactive reports are working as advertised.</p>
<p>Interestingly, interactive reports views that are saved by users no longer are referenced by tabs but from a drop-down list. And reports saved by developers for public use are now called &#8220;Default&#8221; reports in the drop-down list. Report views created by users appear under the same drop down list as &#8220;Private&#8221; reports.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dbbulletin.wordpress.com/339/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dbbulletin.wordpress.com/339/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dbbulletin.wordpress.com/339/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dbbulletin.wordpress.com/339/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dbbulletin.wordpress.com/339/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dbbulletin.wordpress.com/339/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dbbulletin.wordpress.com/339/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dbbulletin.wordpress.com/339/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dbbulletin.wordpress.com/339/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dbbulletin.wordpress.com/339/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dbbulletin.wordpress.com/339/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dbbulletin.wordpress.com/339/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dbbulletin.wordpress.com/339/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dbbulletin.wordpress.com/339/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dbbulletin.wordpress.com&amp;blog=3169068&amp;post=339&amp;subd=dbbulletin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dbbulletin.wordpress.com/2010/07/07/upgrading-to-apex-4-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9ee5c1f004dfa2ce997c3c08339e3d9e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dbbulletin</media:title>
		</media:content>
	</item>
		<item>
		<title>Using Powershell for Oracle DBA scripts</title>
		<link>http://dbbulletin.wordpress.com/2010/06/30/using-powershell-for-oracle-dba-scripts/</link>
		<comments>http://dbbulletin.wordpress.com/2010/06/30/using-powershell-for-oracle-dba-scripts/#comments</comments>
		<pubDate>Wed, 30 Jun 2010 00:42:30 +0000</pubDate>
		<dc:creator>dbbulletin</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[Scripting Languages]]></category>

		<guid isPermaLink="false">http://dbbulletin.wordpress.com/?p=324</guid>
		<description><![CDATA[I needed to deploy an RMAN backup script on a Windows OS machine and couldn&#8217;t to use OEM in the target environment. So I decided to try out powershell rather than use BAT and VBScript. Powershell proved to be a handy, easy to use scripting environment. While powershell is object based and is tightly plugged <a href="http://dbbulletin.wordpress.com/2010/06/30/using-powershell-for-oracle-dba-scripts/" class="excerpt-more-link">[&#8230;]</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dbbulletin.wordpress.com&amp;blog=3169068&amp;post=324&amp;subd=dbbulletin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I needed to deploy an RMAN backup script on a Windows OS machine and couldn&#8217;t to use OEM in the target environment. So I decided to try out powershell rather than use BAT and VBScript. Powershell proved to be a handy, easy to use scripting environment. </p>
<p>While powershell is object based and is tightly plugged into both the Windows OS and .NET, I took the approach of writing a straight-forward script similar to a unix shell script.</p>
<p>To execute a powershell script, you create a text file that ends with the extension PS1, e.g. backup_script.ps1. Here&#8217;s how to run the script from the windows command line.<br />
<pre class="brush: powershell;">
C:\&gt; powershell -file backup_script.ps1
</pre></p>
<p>I learned that powershell scripts can have signed security certificates to prevent rogue scripts from causing damage. Powershell can run in different security modes, ranging from restricted (interactive use only, no scripts) to unrestricted, where you get a prompt in order to run a script from the internet. I settled for &#8220;RemoteSigned&#8221; mode, where scripts downloaded from the internet must be signed, but not ones that you create. Default mode is restricted, so you&#8217;ll need to run the following from the powershell prompt to get local scripts to run:<br />
<pre class="brush: powershell;">
PS C:\&gt; set-executionpolicy remotesigned
</pre></p>
<p>Powershell supports two things that help out the unix shell scripter: aliases and pipelines. There are built-in aliases so that you can use familiar commands like ls and echo for the equivalent powershell commands that have much longer names. The powershell commands behave differently with a different set of command switches, but it&#8217;s still helpful to have the aliases. The pipeline support allows one to pipe virtually all powershell commands, unlike the meager pipeline support for windows bat commands.</p>
<p>In powershell 2.0 there&#8217;s an email command, send-mailmessage, which DBAs will find handy for monitoring and reporting. </p>
<p>The help system is built in to the powershell command line. Typing<br />
<pre class="brush: powershell;">
PS C:\&gt; help
</pre><br />
gets you a complete list of commands and aliases.<br />
And typing<br />
<pre class="brush: powershell;">
PS C:\&gt; help specific-command
</pre><br />
gets you help on that command. There are also switches on the help command for examples, details and full help, e.g. help specific-command -examples.</p>
<p>What&#8217;s radically different about powershell from unix style shell languages is that it&#8217;s object based. When you pipe a command to another command, you are piping an object, not text. The receiving command can then reference properties of the object that is passed.</p>
<p>One item not supported in powershell: input redirection. This is a mainstay in unix shell scripting. It&#8217;s a handy way to keep your sql statements embedded in your shell script and to use variables derived from the shell script directly in the sql without passing them as positional arguments. By input redirection, I mean the following bit of unix scripting:<br />
<pre class="brush: bash;">
#!/bin/sh
sqlplus /nolog &lt;&lt; EOF
connect $user/$pass@$sid 
select * from table
where f1 = $another_var;
exit
EOF
</pre></p>
<p>Here&#8217;s a pared down sample of the powershell script I created. This sample does not do anything with the .NET or object based attributes of powershell, with the exception of the line that deletes old files.</p>
<p>It illustrates the following:<br />
&gt; Getting command line arguments<br />
&gt; Formating a date<br />
&gt; String concatenation, done a la unix shell without a concatenation operator<br />
&gt; Assigning variables<br />
&gt; Launching an external command (nothing special, just run it)<br />
&gt; Sending email<br />
&gt; Deleting files older than a certain date</p>
<p><pre class="brush: powershell;">
# Get script input params
$ORACLE_SID=$args[0]
$LOG_DIR=$args[1]
$BIN_DIR=$args[2]

# Assemble other variables
$datetime = get-date -format &quot;MMM.dd.yyyy-HH.m.ss&quot;
$RMAN_TYPE=”disk_backup”
$RMAN_LOG = &quot;$LOG_DIR\$ORACLE_SID.$RMAN_TYPE.$datetime.rman.log&quot;

# Start logging to file and then run RMAN command. Echo is an alias for Write-Output.
$newline = &quot;Start Execution of $RMAN_TYPE backup on $ORACLE_SID&quot;
echo $newline | out-file $RMAN_LOG
get-date | out-file $RMAN_LOG -append
rman cmdfile=$BIN_DIR\rman_backup_disk_compressed.rman using $ORACLE_SID | out-file $RMAN_LOG –append

# Send email. Note that cat is an alias for Get-Content.
$body = cat $RMAN_LOG | out-string 
send-mailmessage -to &quot;dba1@firm.com&quot; -from &quot;dba2@firm.com&quot; -body $body -subject &quot;RMAN log output&quot; -smtpserver mailserver

# Remove files older than 8 days.
# Note that ls is an alias for Get-ChildItem and del is an alias for Remove-Item.
# Also, ? is an alias for Where-Object and $_ is a built-in variable 
# to refer to the collection of objects passed from the previous pipeline.
ls $LOG_DIR\$ORACLE_SID.$RMAN_TYPE.* |? {$_.LastWriteTime -lt (get-date).AddDays(-8)} | del
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dbbulletin.wordpress.com/324/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dbbulletin.wordpress.com/324/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dbbulletin.wordpress.com/324/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dbbulletin.wordpress.com/324/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dbbulletin.wordpress.com/324/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dbbulletin.wordpress.com/324/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dbbulletin.wordpress.com/324/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dbbulletin.wordpress.com/324/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dbbulletin.wordpress.com/324/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dbbulletin.wordpress.com/324/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dbbulletin.wordpress.com/324/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dbbulletin.wordpress.com/324/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dbbulletin.wordpress.com/324/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dbbulletin.wordpress.com/324/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dbbulletin.wordpress.com&amp;blog=3169068&amp;post=324&amp;subd=dbbulletin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dbbulletin.wordpress.com/2010/06/30/using-powershell-for-oracle-dba-scripts/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9ee5c1f004dfa2ce997c3c08339e3d9e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dbbulletin</media:title>
		</media:content>
	</item>
		<item>
		<title>Excel Pace Maker for Races</title>
		<link>http://dbbulletin.wordpress.com/2010/06/10/excel-pace-maker-for-races/</link>
		<comments>http://dbbulletin.wordpress.com/2010/06/10/excel-pace-maker-for-races/#comments</comments>
		<pubDate>Thu, 10 Jun 2010 16:59:02 +0000</pubDate>
		<dc:creator>dbbulletin</dc:creator>
				<category><![CDATA[Excel]]></category>

		<guid isPermaLink="false">http://dbbulletin.wordpress.com/?p=318</guid>
		<description><![CDATA[A bit off topic, but does involve Microsoft Excel&#8230;You runners, swimmers and bikers out there may occasionally do interval training in order to increase your speed. I&#8217;m always trying to answer the following question: how fast do I need run to get time X in a race of distance Y? And how fast do I <a href="http://dbbulletin.wordpress.com/2010/06/10/excel-pace-maker-for-races/" class="excerpt-more-link">[&#8230;]</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dbbulletin.wordpress.com&amp;blog=3169068&amp;post=318&amp;subd=dbbulletin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A bit off topic, but does involve Microsoft Excel&#8230;You runners, swimmers and bikers out there may occasionally do interval training in order to increase your speed. I&#8217;m always trying to answer the following question: how fast do I need run to get time X in a race of distance Y? And how fast do I have to run shorter interval Z to see what that pace feels like? I made <A href="http://www.panix.com/~bweiss/downloads/race_paces.xls">an Excel file that makes such extrapolations easy</A>. You can time yourself running a short interval and see what time you would get if you kept up that pace for a whole race. Download it with the link earlier in this post or using the Downloads page on this blog.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dbbulletin.wordpress.com/318/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dbbulletin.wordpress.com/318/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dbbulletin.wordpress.com/318/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dbbulletin.wordpress.com/318/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dbbulletin.wordpress.com/318/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dbbulletin.wordpress.com/318/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dbbulletin.wordpress.com/318/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dbbulletin.wordpress.com/318/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dbbulletin.wordpress.com/318/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dbbulletin.wordpress.com/318/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dbbulletin.wordpress.com/318/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dbbulletin.wordpress.com/318/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dbbulletin.wordpress.com/318/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dbbulletin.wordpress.com/318/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dbbulletin.wordpress.com&amp;blog=3169068&amp;post=318&amp;subd=dbbulletin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dbbulletin.wordpress.com/2010/06/10/excel-pace-maker-for-races/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9ee5c1f004dfa2ce997c3c08339e3d9e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dbbulletin</media:title>
		</media:content>
	</item>
		<item>
		<title>New deinstall tool</title>
		<link>http://dbbulletin.wordpress.com/2010/06/03/new-deinstall-tool/</link>
		<comments>http://dbbulletin.wordpress.com/2010/06/03/new-deinstall-tool/#comments</comments>
		<pubDate>Thu, 03 Jun 2010 19:23:15 +0000</pubDate>
		<dc:creator>dbbulletin</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[oracle universal installer]]></category>

		<guid isPermaLink="false">http://dbbulletin.wordpress.com/?p=314</guid>
		<description><![CDATA[I needed to uninstall Oracle database 11.2.0.1.0 from a windows host and came across something new to 11G R2. I ran the Oracle Universal Installer (oui) and chose the &#8220;Deinstall&#8221; button, which is located where it&#8217;s always been. But instead of beginning the deinstallation set of screens, it just popped up a message box reading, <a href="http://dbbulletin.wordpress.com/2010/06/03/new-deinstall-tool/" class="excerpt-more-link">[&#8230;]</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dbbulletin.wordpress.com&amp;blog=3169068&amp;post=314&amp;subd=dbbulletin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I needed to uninstall Oracle database 11.2.0.1.0 from a windows host and came across something new to 11G R2. </p>
<p>I ran the Oracle Universal Installer (oui) and chose the &#8220;Deinstall&#8221; button, which is located where it&#8217;s always been. But instead of beginning the deinstallation set of screens, it just popped up a message box reading, &#8220;Please run the deinstall command $ORACLE_HOME/deinstall/deinstall.&#8221;</p>
<p>It turns out there is a new utility just for deinstallation. It is uniform across all Oracle platforms. <a href="http://download.oracle.com/docs/cd/E11882_01/install.112/e10848/remove_oracle_sw.htm#BABEBHAA">The documentation details can be found here</a>.</p>
<p>I was sufficiently surprised that I checked some 10.2.0 and 11.1.0 installations. They did not have the $ORACLE_HOME/deinstall directory, so it definitely is new for 11.2.0.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dbbulletin.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dbbulletin.wordpress.com/314/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dbbulletin.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dbbulletin.wordpress.com/314/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dbbulletin.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dbbulletin.wordpress.com/314/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dbbulletin.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dbbulletin.wordpress.com/314/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dbbulletin.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dbbulletin.wordpress.com/314/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dbbulletin.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dbbulletin.wordpress.com/314/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dbbulletin.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dbbulletin.wordpress.com/314/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dbbulletin.wordpress.com&amp;blog=3169068&amp;post=314&amp;subd=dbbulletin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dbbulletin.wordpress.com/2010/06/03/new-deinstall-tool/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9ee5c1f004dfa2ce997c3c08339e3d9e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dbbulletin</media:title>
		</media:content>
	</item>
		<item>
		<title>Apex 3.2, Flash Charts, HTTPS and Proxy</title>
		<link>http://dbbulletin.wordpress.com/2010/05/27/apex-3-2-flash-charts-https-and-proxy/</link>
		<comments>http://dbbulletin.wordpress.com/2010/05/27/apex-3-2-flash-charts-https-and-proxy/#comments</comments>
		<pubDate>Thu, 27 May 2010 15:46:27 +0000</pubDate>
		<dc:creator>dbbulletin</dc:creator>
				<category><![CDATA[APEX]]></category>
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://dbbulletin.wordpress.com/?p=300</guid>
		<description><![CDATA[Another wrinkle on deploying Apex with a proxy server and https, this time concerning flash charts. I wrote in my last post that I needed to make a few adjustments to work successfully with a proxy server in my environment. My environment: Apex 3.2.1.00.12, OHS 11.1.0, DB 11.2.0, Win 2008. All seemed well until I <a href="http://dbbulletin.wordpress.com/2010/05/27/apex-3-2-flash-charts-https-and-proxy/" class="excerpt-more-link">[&#8230;]</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dbbulletin.wordpress.com&amp;blog=3169068&amp;post=300&amp;subd=dbbulletin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Another wrinkle on deploying Apex with a proxy server and https, this time concerning flash charts.</p>
<p>I wrote in my last post that I needed to make a few adjustments to work successfully with a proxy server in my environment. My environment: Apex 3.2.1.00.12, OHS 11.1.0, DB 11.2.0, Win 2008.</p>
<p>All seemed well until I tested pages with flash charts. First off, the IE browser would throw up the message box &#8220;This page contains both secure and nonsecure items. Do you want to display the nonsecure items?&#8221; After dismissing the message box, the page loaded but the charts would not display. Instead they hung while outputting the message &#8220;Loading data. Please wait.&#8221;</p>
<p>The first issue that needed sorting out was the https protocol, which was behind the &#8220;nonsecure items&#8221; message box. In Apex 3.2 there are hard coded references to the protocol at Region Definition &#8211; Source. One is<br />
<pre class="brush: sql;">
codebase=&quot;http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0&quot;
</pre><br />
, the other is<br />
<pre class="brush: sql;">
pluginspage=&quot;https://www.macromedia.com/go/getflashplayer&quot;</pre><br />
I needed to change each http to https. Interestingly, <a href="http://tryapexnow.com">at the Apex 4.0 website</a>, I learned that this has been fixed. The protocol now has a variable, like this:<br />
<pre class="brush: sql;">
codebase=&quot;#HOST_PROTOCOL#://download...etc.
</pre></p>
<p>The next issue had to do with the proxy server. </p>
<p>The Region &#8211; Source screen also uses #HOST# variable, twice in fact. With the proxy server in place, #HOST# came back with the wrong value. Some surfing on the Apex forum at OTN revealed a dads.conf adjustment, which worked.</p>
<p><pre class="brush: sql;">
PlsqlCGIEnvironmentList        HTTP_HOST=proxyhosturl:port/dir
PlsqlCGIEnvironmentList        REQUEST_PROTOCOL=https
</pre></p>
<p><strong>NOTE:</strong> don&#8217;t include the https:// prefix in the HTTP_HOST value.</p>
<p>Prior to that I had tried a more laborious work around. I created an Application Item called MY_HOST. I set this in an Application Process that runs On New Session &#8211; After Authentication. Then in every Region &#8211; Source for flash charts, I made the following change:<br />
<pre class="brush: sql;">
XMLFile=#HOST#apex_util.flash?
</pre><br />
became<br />
<pre class="brush: sql;">
XMLFile=&amp;MY_HOST.apex_util.flash?
</pre></p>
<p>That also worked, but involved updating the Source yet again for each chart.</p>
<p>A final point. The charts available in Interactive Charts are also affected by https and proxies. Fortunately, making the above dads.conf adjustment is all that&#8217;s needed.</p>
<p>In summary, getting flash charts to work with https and a proxy requires updating the code for each chart so that https doesn&#8217;t generate a prompt, plus updating the dads.conf file.</p>
<p>I&#8217;ll be interested to try out 4.0 in my shop to see how that works with proxy and https.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dbbulletin.wordpress.com/300/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dbbulletin.wordpress.com/300/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dbbulletin.wordpress.com/300/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dbbulletin.wordpress.com/300/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dbbulletin.wordpress.com/300/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dbbulletin.wordpress.com/300/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dbbulletin.wordpress.com/300/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dbbulletin.wordpress.com/300/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dbbulletin.wordpress.com/300/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dbbulletin.wordpress.com/300/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dbbulletin.wordpress.com/300/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dbbulletin.wordpress.com/300/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dbbulletin.wordpress.com/300/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dbbulletin.wordpress.com/300/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dbbulletin.wordpress.com&amp;blog=3169068&amp;post=300&amp;subd=dbbulletin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dbbulletin.wordpress.com/2010/05/27/apex-3-2-flash-charts-https-and-proxy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9ee5c1f004dfa2ce997c3c08339e3d9e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dbbulletin</media:title>
		</media:content>
	</item>
		<item>
		<title>Oracle Apex With HTTPS and Proxy Server</title>
		<link>http://dbbulletin.wordpress.com/2010/05/26/oracle-apex-with-https-and-proxy-server/</link>
		<comments>http://dbbulletin.wordpress.com/2010/05/26/oracle-apex-with-https-and-proxy-server/#comments</comments>
		<pubDate>Wed, 26 May 2010 14:17:31 +0000</pubDate>
		<dc:creator>dbbulletin</dc:creator>
				<category><![CDATA[APEX]]></category>
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://dbbulletin.wordpress.com/?p=296</guid>
		<description><![CDATA[Some Oracle Apex proxy server and https wrinkles affecting authentication. In a deployment of Oracle Apex I&#8217;m working on, I needed to work with a proxy server. The proxy server has an https url. I&#8217;ve also deployed https on my Oracle HTTP server on the Oracle Apex machine. I&#8217;m using the default https certificate that <a href="http://dbbulletin.wordpress.com/2010/05/26/oracle-apex-with-https-and-proxy-server/" class="excerpt-more-link">[&#8230;]</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dbbulletin.wordpress.com&amp;blog=3169068&amp;post=296&amp;subd=dbbulletin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Some Oracle Apex proxy server and https wrinkles affecting authentication.</p>
<p>In a deployment of Oracle Apex I&#8217;m working on, I needed to work with a proxy server. The proxy server has an https url. I&#8217;ve also deployed https on my Oracle HTTP server on the Oracle Apex machine. </p>
<p>I&#8217;m using the default https certificate that ships with Oracle HTTP Server 11.1.0. While this is not a signed certificate, end users never see a prompt from their browser because this is handled at the proxy server just once by the server administrator.</p>
<p>I&#8217;m using the standalone installation of OHS which is now part of the larger Weblogic suite. OHS and Oracle database are on the same Windows 2008 machine. Database version: 11.2.0. Apex Version: 3.2.1.00.12.</p>
<p>Issues:<br />
1. I needed to get a value passed in from the proxy server so that users did not have to login. <a href="http://dbbulletin.wordpress.com/2010/05/12/parse-http-header-in-apex/">Here&#8217;s how</a>.</p>
<p>2. I wanted to base my security on the username passed in from the proxy. To do that, I created an application item which is in the Shared Components &#8211; Logic &#8211; Application Items section. Then I created an Application Process (also in the Shared components &#8211; Logic) section. This process sets the application item during authentication time.</p>
<p>3. My authentication scheme is database.</p>
<p>4. I updated the authorization scheme to use Application Item mentioned above rather than default built in variable APP_USER.</p>
<p>5. I put in some conditional display of items which detects whether or not a user accessed the application via the proxy server. If they did not, then the Application Item is not set and they will not have sufficient authorization to use the application.</p>
<p>6. Finally, I updated the authorization values accordingly as needed on tabs, lists and pages.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dbbulletin.wordpress.com/296/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dbbulletin.wordpress.com/296/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dbbulletin.wordpress.com/296/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dbbulletin.wordpress.com/296/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dbbulletin.wordpress.com/296/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dbbulletin.wordpress.com/296/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dbbulletin.wordpress.com/296/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dbbulletin.wordpress.com/296/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dbbulletin.wordpress.com/296/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dbbulletin.wordpress.com/296/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dbbulletin.wordpress.com/296/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dbbulletin.wordpress.com/296/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dbbulletin.wordpress.com/296/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dbbulletin.wordpress.com/296/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dbbulletin.wordpress.com&amp;blog=3169068&amp;post=296&amp;subd=dbbulletin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dbbulletin.wordpress.com/2010/05/26/oracle-apex-with-https-and-proxy-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9ee5c1f004dfa2ce997c3c08339e3d9e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dbbulletin</media:title>
		</media:content>
	</item>
	</channel>
</rss>
