<?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>Oramoss Blog</title>
	<atom:link href="http://www.oramoss.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.oramoss.com/blog</link>
	<description>Oracle ramblings, rants and revelations by Jeff Moss</description>
	<lastBuildDate>Sat, 18 May 2013 07:29:03 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>nmon for linux (Fedora 12, x86_64)</title>
		<link>http://www.oramoss.com/blog/nmon-for-linux-fedora-12-x86_64/</link>
		<comments>http://www.oramoss.com/blog/nmon-for-linux-fedora-12-x86_64/#comments</comments>
		<pubDate>Fri, 16 Apr 2010 09:38:20 +0000</pubDate>
		<dc:creator>jeff</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[benchmarking]]></category>
		<category><![CDATA[instrumentation]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[tuning]]></category>

		<guid isPermaLink="false">http://www.oramoss.com/blog/?p=167</guid>
		<description><![CDATA[At my current client site, I use AIX on IBM PowerPC kit. There is a neat little systems monitoring tool called &#8220;nmon&#8221; on AIX, which I quite like. I noticed recently that it&#8217;s available on Linux now, so I installed it on my machine, which runs Fedora 12. There are a number of binaries prebuilt, [...]]]></description>
				<content:encoded><![CDATA[<p>At my current client site, I use AIX on IBM PowerPC kit. There is a neat little systems monitoring tool called &#8220;<a href="http://www.ibm.com/developerworks/wikis/display/WikiPtype/nmon">nmon</a>&#8221; on AIX, which I quite like. I noticed recently that it&#8217;s <a href="http://nmon.sourceforge.net/pmwiki.php">available on Linux</a> now, so I installed it on my machine, which runs Fedora 12. There are a number of binaries prebuilt, but not for Fedora 12 on x86_64, so I downloaded the code, <a href="http://nmon.sourceforge.net/pmwiki.php?n=Site.CompilingNmon">followed the instructions and compiled</a> a binary which works fine.</p>
<p>It shows a number of useful metrics for CPU, memory, disk, network etc&#8230;if you use nmon, but didn&#8217;t know it was available for linux, well, now you do.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.oramoss.com/blog/nmon-for-linux-fedora-12-x86_64/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>KEEP DENSE_RANK versus ROW_NUMBER &#8211; further details</title>
		<link>http://www.oramoss.com/blog/keep-dense_rank-versus-row_number-further-details/</link>
		<comments>http://www.oramoss.com/blog/keep-dense_rank-versus-row_number-further-details/#comments</comments>
		<pubDate>Fri, 12 Mar 2010 19:03:52 +0000</pubDate>
		<dc:creator>jeff</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[analytics]]></category>
		<category><![CDATA[code]]></category>

		<guid isPermaLink="false">http://www.oramoss.com/blog/?p=157</guid>
		<description><![CDATA[I found this nice post from Laurent Schneider the other day and wanted  to comment, but my comments were a bit more of a digression and discussion, so I&#8217;ve blogged it and put a link on the comments of the post by Laurent. I&#8217;d always used the ROW_NUMBER method myself until I read this and [...]]]></description>
				<content:encoded><![CDATA[<p>I found <a href="http://laurentschneider.com/wordpress/2006/09/keep-dense_rank-versus-row_number.html">this nice post</a> from <a href="http://laurentschneider.com/">Laurent Schneider </a>the other day and wanted  to comment, but my comments were a bit more of a digression and discussion, so I&#8217;ve blogged it and put a link on the comments of the post by Laurent.</p>
<p>I&#8217;d always used the ROW_NUMBER method myself until I read this and then figured I&#8217;d try the KEEP DENSE_RANK method, which works, as Laurent describes. One thing that didn&#8217;t sit well with me in the post from Laurent was that he said &#8220;the second one should be more performant&#8221; &#8211; I prefer hard facts, so I decided to test it a bit and my results are below.</p>
<p>In the simple example that Laurent gave, it&#8217;s difficult to tell which is quickest, since the table in question only has a handful of rows and therefore any benchmarking is more susceptible to other influences, clouding the results. I figured I&#8217;d build a larger table and try it on that.</p>
<p>Before I did that though, I did get the plans from the two statements Laurent ran on the EMP table and both show the same resource costings:</p>
<p>Firstly, for the ROW_NUMBER method:</p>
<pre>select ename
,      deptno
,      sal
from   (select ename
 ,      deptno
 ,      sal
 ,      row_number() over (partition by deptno order by sal desc,empno) r
 from   emp
 )
where  r=1;

Plan hash value: 3291446077                                                                                                             

---------------------------------------------------------------------------------
| Id  | Operation                | Name | Rows  | Bytes | Cost (%CPU)| Time     |
---------------------------------------------------------------------------------
|   0 | SELECT STATEMENT         |      |    14 |   644 |     4  (25)| 00:00:01 |
|*  1 |  VIEW                    |      |    14 |   644 |     4  (25)| 00:00:01 |
|*  2 |   WINDOW SORT PUSHED RANK|      |    14 |   644 |     4  (25)| 00:00:01 |
|   3 |    TABLE ACCESS FULL     | EMP  |    14 |   644 |     3   (0)| 00:00:01 |
---------------------------------------------------------------------------------

Predicate Information (identified by operation id):
---------------------------------------------------

 1 - filter("R"=1)
 2 - filter(ROW_NUMBER() OVER ( PARTITION BY "DEPTNO" ORDER BY
 INTERNAL_FUNCTION("SAL") DESC ,"EMPNO")&lt;=1)

Note
-----
 - dynamic sampling used for this statement
</pre>
<p>Now, the KEEP DENSE_RANK method:</p>
<pre>
select max(ename) keep (dense_rank first order by sal desc,empno) ename
,      deptno
,      max(sal) sal
from   emp 
group by deptno;

Plan hash value: 15469362

---------------------------------------------------------------------------
| Id  | Operation          | Name | Rows  | Bytes | Cost (%CPU)| Time     |
---------------------------------------------------------------------------
|   0 | SELECT STATEMENT   |      |    14 |   644 |     4  (25)| 00:00:01 |
|   1 |  SORT GROUP BY     |      |    14 |   644 |     4  (25)| 00:00:01 |
|   2 |   TABLE ACCESS FULL| EMP  |    14 |   644 |     3   (0)| 00:00:01 |
---------------------------------------------------------------------------

Note
-----
   - dynamic sampling used for this statement

</pre>
<p>So, the plans are very similar, especially in terms of having the same resource usage&#8230;which means they should be similar in terms of performance&#8230;running them, as Laurent did, shows around 1s response times, which, as I say, doesn&#8217;t conclusively prove which method is quickest.</p>
<p>OK, on to a bigger example then&#8230;</p>
<p>I basically created a similar table to EMP, called JEFF_EMP and added a few more columns (for later) and then put ten million rows in it, taking around 1.3GB on my system&#8230;plenty to churn through.</p>
<pre>
DROP TABLE jeff_emp PURGE
/
CREATE TABLE jeff_emp(deptno     NUMBER
                     ,ename      VARCHAR2(100)
                     ,first_name VARCHAR2(50)
                     ,initials   VARCHAR2(30)
                     ,surname    VARCHAR2(50)
                     ,sal        NUMBER
                     ,empno      NUMBER
                     )
/
INSERT INTO jeff_emp(deptno,ename,first_name,initials,surname,sal,empno)
SELECT (MOD(ROWNUM,3) + 1) * 10
,      'FIRSTNAME_'||TO_CHAR(ROWNUM)||'_INITIALS_'||TO_CHAR(ROWNUM)||'_SURNAME_'||TO_CHAR(ROWNUM)
,      'FIRSTNAME_'||TO_CHAR(ROWNUM)
,      'INITIALS_'||TO_CHAR(ROWNUM)
,      'SURNAME_'||TO_CHAR(ROWNUM)
,      ROWNUM * 100
,      ROWNUM
FROM   (SELECT LEVEL l FROM dual CONNECT BY LEVEL < 10000001)
ORDER BY l
/
COMMIT
/
EXEC dbms_stats.gather_table_stats(ownname => USER, tabname => 'JEFF_EMP',estimate_percent=>10);
</pre>
<p>Now, here is the plan for the ROW_NUMBER method:</p>
<pre>
---------------------------------------------------------------------------------------------
| Id  | Operation                | Name     | Rows  | Bytes |TempSpc| Cost (%CPU)| Time     |
---------------------------------------------------------------------------------------------
|   0 | SELECT STATEMENT         |          |    10M|   868M|       |   204K  (1)| 00:40:49 |
|*  1 |  VIEW                    |          |    10M|   868M|       |   204K  (1)| 00:40:49 |
|*  2 |   WINDOW SORT PUSHED RANK|          |    10M|   629M|  1533M|   204K  (1)| 00:40:49 |
|   3 |    TABLE ACCESS FULL     | JEFF_EMP |    10M|   629M|       | 46605   (1)| 00:09:20 |
---------------------------------------------------------------------------------------------
</pre>
<p>&#8230;and the results:</p>
<pre>
ENAME                                                                                                    DEPTNO        SAL
---------------------------------------------------------------------------------------------------- ---------- ----------
FIRSTNAME_9999999_INITIALS_9999999_SURNAME_9999999                                                           10  999999900
FIRSTNAME_10000000_INITIALS_10000000_SURNAME_10000000                                                        20 1000000000
FIRSTNAME_9999998_INITIALS_9999998_SURNAME_9999998                                                           30  999999800

Elapsed: 00:00:24.47
</pre>
<p>&#8230;and the KEEP DENSE_RANK method plan:</p>
<pre>
-------------------------------------------------------------------------------
| Id  | Operation          | Name     | Rows  | Bytes | Cost (%CPU)| Time     |
-------------------------------------------------------------------------------
|   0 | SELECT STATEMENT   |          |     3 |   198 | 47109   (2)| 00:09:26 |
|   1 |  SORT GROUP BY     |          |     3 |   198 | 47109   (2)| 00:09:26 |
|   2 |   TABLE ACCESS FULL| JEFF_EMP |    10M|   629M| 46605   (1)| 00:09:20 |
-------------------------------------------------------------------------------
</pre>
<p>&#8230;and it&#8217;s results:</p>
<pre>
ENAME                                                                                                    DEPTNO        SAL
---------------------------------------------------------------------------------------------------- ---------- ----------
FIRSTNAME_9999999_INITIALS_9999999_SURNAME_9999999                                                           10  999999900
FIRSTNAME_10000000_INITIALS_10000000_SURNAME_10000000                                                        20 1000000000
FIRSTNAME_9999998_INITIALS_9999998_SURNAME_9999998                                                           30  999999800

Elapsed: 00:00:07.76
</pre>
<p>So, reasonably clear results, indicating that the KEEP DENSE_RANK is about a third of the time to run, compared to the ROW_NUMBER method. You can also see from the plans that the ROW_NUMBER method involves use of TEMP, whereas the KEEP DENSE_RANK doesn&#8217;t, hence the slowdown.</p>
<p>So, Laurent was correct in his assertion that it should be more performant&#8230;but it&#8217;s nice to see the results based on a more meaningful set of data.</p>
<p>Now, there was one other thing that concerned me, and that was whether if you added more columns into the SQL, would it change the performance fo either method to any significant degree, so I started using the extra name columns like this:</p>
<pre>
SELECT ename
,      first_name
,      initials
,      surname
,      deptno
,      sal
FROM   (SELECT ename
        ,      first_name
        ,      initials
        ,      surname
        ,      deptno
        ,      sal
        ,      ROW_NUMBER() OVER (PARTITION BY deptno ORDER BY sal DESC,empno) r 
        FROM   jeff_emp
       )
WHERE  r = 1
/
</pre>
<p>&#8230;which has a plan of:</p>
<pre>
---------------------------------------------------------------------------------------------
| Id  | Operation                | Name     | Rows  | Bytes |TempSpc| Cost (%CPU)| Time     |
---------------------------------------------------------------------------------------------
|   0 | SELECT STATEMENT         |          |    10M|  1546M|       |   307K  (1)| 01:01:36 |
|*  1 |  VIEW                    |          |    10M|  1546M|       |   307K  (1)| 01:01:36 |
|*  2 |   WINDOW SORT PUSHED RANK|          |    10M|  1107M|  2606M|   307K  (1)| 01:01:36 |
|   3 |    TABLE ACCESS FULL     | JEFF_EMP |    10M|  1107M|       | 46605   (1)| 00:09:20 |
---------------------------------------------------------------------------------------------
</pre>
<p>&#8230;and results:</p>
<pre>
ENAME                                                                                                FIRST_NAME                                         INITIALS                       SURNAME                      DEPTNO         SAL
---------------------------------------------------------------------------------------------------- -------------------------------------------------- ------------------------------ -------------------------------------------------- ---------- ----------
FIRSTNAME_9999999_INITIALS_9999999_SURNAME_9999999                                                   FIRSTNAME_9999999                                  INITIALS_9999999               SURNAME_9999999          10  999999900
FIRSTNAME_10000000_INITIALS_10000000_SURNAME_10000000                                                FIRSTNAME_10000000                                 INITIALS_10000000              SURNAME_10000000         20 1000000000
FIRSTNAME_9999998_INITIALS_9999998_SURNAME_9999998                                                   FIRSTNAME_9999998                                  INITIALS_9999998               SURNAME_9999998          30  999999800

Elapsed: 00:00:25.76
</pre>
<p>For the KEEP DENSE_RANK I get:</p>
<pre>
SELECT MAX(ename) KEEP (DENSE_RANK FIRST ORDER BY sal DESC,empno) ename
,      MAX(first_name) KEEP (DENSE_RANK FIRST ORDER BY sal DESC,empno) first_name
,      MAX(initials) KEEP (DENSE_RANK FIRST ORDER BY sal DESC,empno) initials
,      MAX(surname) KEEP (DENSE_RANK FIRST ORDER BY sal DESC,empno) surname
,      deptno
,      MAX(sal) sal
FROM   jeff_emp 
GROUP BY deptno
/
</pre>
<p>Which has the following plan:</p>
<pre>
-------------------------------------------------------------------------------
| Id  | Operation          | Name     | Rows  | Bytes | Cost (%CPU)| Time     |
-------------------------------------------------------------------------------
|   0 | SELECT STATEMENT   |          |     3 |   348 | 47109   (2)| 00:09:26 |
|   1 |  SORT GROUP BY     |          |     3 |   348 | 47109   (2)| 00:09:26 |
|   2 |   TABLE ACCESS FULL| JEFF_EMP |    10M|  1107M| 46605   (1)| 00:09:20 |
-------------------------------------------------------------------------------
</pre>
<p>&#8230;and results:</p>
<pre>
ENAME                                                                                                FIRST_NAME                                         INITIALS                       SURNAME                      DEPTNO         SAL
---------------------------------------------------------------------------------------------------- -------------------------------------------------- ------------------------------ -------------------------------------------------- ---------- ----------
FIRSTNAME_9999999_INITIALS_9999999_SURNAME_9999999                                                   FIRSTNAME_9999999                                  INITIALS_9999999               SURNAME_9999999          10  999999900
FIRSTNAME_10000000_INITIALS_10000000_SURNAME_10000000                                                FIRSTNAME_10000000                                 INITIALS_10000000              SURNAME_10000000         20 1000000000
FIRSTNAME_9999998_INITIALS_9999998_SURNAME_9999998                                                   FIRSTNAME_9999998                                  INITIALS_9999998               SURNAME_9999998          30  999999800

Elapsed: 00:00:14.56
</pre>
<p>So, the differential in performance has reduced significantly, with the KEEP DENSE_RANK around double it&#8217;s original time, whilst the ROW_NUMBER method has only increased marginally. I&#8217;ve not tested with adding additional columns, but I&#8217;m guessing (I know&#8230;I could and should test it!) it will get worse, to the extent that, eventually, the KEEP DENSE_RANK will become the worse performer. If that&#8217;s the case, then essentially, these two methods have different scalability dynamics and one should bear this in mind when considering which to choose, depending on how many DENSE_RANK&#8217;d columns you&#8217;d need to deliver your results.</p>
<p>Hope this helps.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.oramoss.com/blog/keep-dense_rank-versus-row_number-further-details/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>RANK v DENSE_RANK v ROW_NUMBER</title>
		<link>http://www.oramoss.com/blog/rank-v-dense_rank-v-row_number/</link>
		<comments>http://www.oramoss.com/blog/rank-v-dense_rank-v-row_number/#comments</comments>
		<pubDate>Fri, 05 Mar 2010 09:39:33 +0000</pubDate>
		<dc:creator>jeff</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[analytics]]></category>
		<category><![CDATA[code]]></category>

		<guid isPermaLink="false">http://www.oramoss.com/blog/?p=140</guid>
		<description><![CDATA[I was asked a question by one of my users about the difference between the RANK and ROW_NUMBER analytics yesterday, so here is a post on it&#8230; RANK, ROW_NUMBER and also DENSE_RANK are very useful for taking a set of rows and ordering them in a defined manner, whilst giving each row a &#8220;position value&#8221;. [...]]]></description>
				<content:encoded><![CDATA[<p>I was asked a question by one of my users about the difference between the <a href="http://download.oracle.com/docs/cd/E11882_01/server.112/e10592/functions139.htm#SQLRF00690">RANK</a> and <a href="http://download.oracle.com/docs/cd/E11882_01/server.112/e10592/functions154.htm#SQLRF06100">ROW_NUMBER</a> analytics yesterday, so here is a post on it&#8230;</p>
<p><a href="http://download.oracle.com/docs/cd/E11882_01/server.112/e10592/functions139.htm#SQLRF00690">RANK</a>, <a href="http://download.oracle.com/docs/cd/E11882_01/server.112/e10592/functions154.htm#SQLRF06100">ROW_NUMBER</a> and also <a href="http://download.oracle.com/docs/cd/E11882_01/server.112/e10592/functions050.htm#SQLRF00633">DENSE_RANK</a> are very useful for taking a set of rows and ordering them in a defined manner, whilst giving each row a &#8220;position value&#8221;. They differ based on the approach taken to define the value of their position in the set of output rows. In some circumstances, they may all give the same value however, dependent on the data, they may differ.</p>
<p>An example based on the SCOTT.EMP table, helps to illustrate&#8230;</p>
<pre>SELECT empno
,      sal
,      RANK() OVER(ORDER BY sal) rank_position
,      DENSE_RANK() OVER(ORDER BY sal) dense_rank_position
,      ROW_NUMBER() OVER(ORDER BY sal) row_number_position
FROM   emp
/</pre>
<p>which returns, on my 11gR1 database&#8230;</p>
<pre>EMPNO        SAL RANK_POSITION DENSE_RANK_POSITION ROW_NUMBER_POSITION
---------- ---------- ------------- ------------------- -------------------
7369        800             1                   1                   1
7900        950             2                   2                   2
7876       1100             3                   3                   3
7521       1250             4                   4                   4
7654       1250             4                   4                   5
7934       1300             6                   5                   6
7844       1500             7                   6                   7
7499       1600             8                   7                   8
7782       2450             9                   8                   9
7698       2850            10                   9                  10
7566       2975            11                  10                  11
7788       3000            12                  11                  12
7902       3000            12                  11                  13
7839       5000            14                  12                  14
14 rows selected.</pre>
<p>Notice that RANK has given the two employees with SAL = 1250, the same position value of 4 and the two employees with SAL=3000, the same position value of 12. Notice also that RANK skips position values 5 and 13 as it has two entries for 4 and 12 respectively. RANK uses all numbers between 1 and 14, except 5 and 13. RANK has both repeats and gaps in it&#8217;s ordering.</p>
<p>DENSE_RANK is similar to RANK, in that it gives the two employees with SAL=1250, the same position value of 4, but then it does not skip over position value 5 &#8211; it simply carries on at position 5 for the next values. DENSE_RANK uses, for the position values, all numbers between 1 and 12, without leaving any out, and using 4 and 11 twice. DENSE_RANK has no gaps in it&#8217;s ordering, only repeats.</p>
<p>ROW_NUMBER gives each row a unique position value and consequently uses all the numbers between 1 and 14. ROW_NUMBER has no gaps or repeats in it&#8217;s ordering. Note that the position value on ROW_NUMBER is not deterministic, since the ORDER BY clause only has SAL in it. If you want to ensure the order is the same each time, you need to add further columns to the ORDER BY clause.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.oramoss.com/blog/rank-v-dense_rank-v-row_number/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Running OBIEE Oracle By Example Tutorials against a database not called ORCL</title>
		<link>http://www.oramoss.com/blog/running-obiee-oracle-by-example-tutorials-against-a-database-not-called-orcl/</link>
		<comments>http://www.oramoss.com/blog/running-obiee-oracle-by-example-tutorials-against-a-database-not-called-orcl/#comments</comments>
		<pubDate>Mon, 23 Nov 2009 19:56:00 +0000</pubDate>
		<dc:creator>jeff</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[DW]]></category>
		<category><![CDATA[OBIEE]]></category>

		<guid isPermaLink="false">http://www.oramoss.com/blog/?p=7</guid>
		<description><![CDATA[I&#8217;ve been working with OBIEE for a while now, but I&#8217;ve not actually gone through the Oracle By Example tutorials, so I figured it would be a good idea to do that. I started looking at the first Oracle By Example OBIEE tutorial yesterday and came across an issue with a simple solution to share [...]]]></description>
				<content:encoded><![CDATA[<p>I&#8217;ve been working with OBIEE for a while now, but I&#8217;ve not actually gone through the Oracle By Example tutorials, so I figured it would be a good idea to do that.</p>
<p>I started looking at the <a href="http://www.oracle.com/technology/obe/obe_bi/bi_ee_1013/saw/saw.html">first</a> <a href="http://www.oracle.com/technology/obe/obe_bi/bi_ee_1013/index.html">Oracle By Example OBIEE</a> tutorial yesterday and came across an issue with a simple solution to share with you.</p>
<p>The tutorials have a few caveats about what they expect from your environment, when you&#8217;re going to run through them &#8211; one of them being that you have access to a 10g database. What the prerequisites don&#8217;t specifically say is that unless your database is called ORCL, you&#8217;ll need to jump through a few more hoops &#8211; as I did, with my database called TEST.</p>
<p>I followed the instructions from the tutorial such that I had:</p>
<ol>
<li>An SH schema in the 10g database, with the standard tables and data Oracle supply.</li>
<li>Created an ODBC Data Source pointing to a database called TEST, checking it functioned correctly.</li>
<li>Restored the presentation catalog and updated the configuration files accordingly.</li>
</ol>
<p>I then proceeded to login to the BI Dashboards which brought up half the display, but it was full of TNS errors indicating that the connection could not be made between the BI Server and the database where the SH schema resides:</p>
<p><img alt="BI Server TNS Errors" src="http://www.oramoss.com/images/blogposts/ODBC_TNS_Errors_SH_logon.jpg" /></p>
<p>After some investigation in the Administration tool, I discovered that the Connection Pool setting was using a Data Source Name called &#8220;ORCL&#8221; which doesn&#8217;t match my TNS/Database called TEST, hence it couldn&#8217;t make the connection to the database:</p>
<p><img alt="ORCL Connection Pool" src="http://www.oramoss.com/images/blogposts/ORCL_ConnectionPool.jpg" /></p>
<p>Now, the RPD was read only at the time, so I first shut down the services so it could be opened read/write:</p>
<p><img alt="BI services down" src="http://www.oramoss.com/images/blogposts/BIServicesDown.jpg" /></p>
<p>&#8230;logged into the Administration tool using Administrator user (Password Administrator), opened the SH.RPD file read/write and modified the Data Source Name in the Connection Pool from ORCL to TEST, whilst ensuring the password for the SH user matched that of my TEST database:</p>
<p><img alt="Change ORCL to TEST" src="http://www.oramoss.com/images/blogposts/Administration_Change_ORCL_To_TEST.jpg" /></p>
<p>&#8230;next I restarted the services:</p>
<p><img alt="BI services up" src="http://www.oramoss.com/images/blogposts/BIServicesUp.jpg" /></p>
<p>&#8230;and then logged on again, to find it all now worked:</p>
<p><img alt="TEST all working" src="http://www.oramoss.com/images/blogposts/ORCL_to_TEST_AllWorking.jpg" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.oramoss.com/blog/running-obiee-oracle-by-example-tutorials-against-a-database-not-called-orcl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Congratulations to my mate Paul!</title>
		<link>http://www.oramoss.com/blog/congratulations-to-my-mate-paul/</link>
		<comments>http://www.oramoss.com/blog/congratulations-to-my-mate-paul/#comments</comments>
		<pubDate>Sat, 11 Jul 2009 09:46:00 +0000</pubDate>
		<dc:creator>jeff</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[certification]]></category>
		<category><![CDATA[dba]]></category>
		<category><![CDATA[social]]></category>

		<guid isPermaLink="false">http://www.oramoss.com/blog/?p=8</guid>
		<description><![CDATA[Just a quick note to say congratulations to Paul Till, a mate of mine, at my current client, who has recently passed his OCM certification. I knew Paul was good, from having worked with him, on a DR implementation / upgrade for a large DW, but I hadn&#8217;t realised how good. As certifications go, it&#8217;s [...]]]></description>
				<content:encoded><![CDATA[<p>Just a quick note to say congratulations to <a href="http://www.linkedin.com/in/pauldtill">Paul Till</a>, a mate of mine, at my current client, who has recently passed his OCM certification. I knew Paul was good, from having worked with him, on a DR implementation / upgrade for a large DW, but I hadn&#8217;t realised how good. As certifications go, it&#8217;s the daddy and the Oracle one to have.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.oramoss.com/blog/congratulations-to-my-mate-paul/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>$deleted$ tablespace names bug</title>
		<link>http://www.oramoss.com/blog/deleted-tablespace-names-bug/</link>
		<comments>http://www.oramoss.com/blog/deleted-tablespace-names-bug/#comments</comments>
		<pubDate>Sat, 11 Jul 2009 08:30:00 +0000</pubDate>
		<dc:creator>jeff</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bugs]]></category>
		<category><![CDATA[dba]]></category>
		<category><![CDATA[partitioning]]></category>

		<guid isPermaLink="false">http://www.oramoss.com/blog/?p=9</guid>
		<description><![CDATA[This one turned out to be a an interesting bug the other day&#8230; I did a simple select from DBA_TAB_PARTITIONS and noticed that some tablespace_names were of the form &#8220;_$deleted$n$m&#8221; where n and m are numbers. Slightly worrying, but at least the data was all present and correct, when I checked. I knew the DBA [...]]]></description>
				<content:encoded><![CDATA[<p>This one turned out to be a an interesting bug the other day&#8230;</p>
<p>I did a simple select from DBA_TAB_PARTITIONS and noticed that some tablespace_names were of the form &#8220;_$deleted$n$m&#8221; where n and m are numbers. Slightly worrying, but at least the data was all present and correct, when I checked. I knew the DBA team had been doing some reorganisations the previous weekend, to recover some space, so I wondered if that was connected&#8230;.it was, and after opening an SR, the DBA, <a href="http://www.linkedin.com/pub/phil-bridges/1/340/b4a">Phil</a>, found an explanation (from Oracle Note: 604648.1) and a resolution.</p>
<p>Reproducing the issue and the way to fix it, is simple, using this script&#8230;</p>
<pre><br />DROP TABLESPACE old_tbs INCLUDING CONTENTS AND DATAFILES;<br /><br />CREATE TABLESPACE new_tbs <br />DATAFILE 'C:APPORACLEORADATAT111NEW_TBS.DBF'<br />SIZE 100M<br />ONLINE;<br /><br />CREATE TABLESPACE old_tbs <br />DATAFILE 'C:APPORACLEORADATAT111OLD_TBS.DBF'<br />SIZE 100M<br />ONLINE;<br /><br />SELECT ts#,name FROM sys.ts$ WHERE name LIKE '%TBS';<br /><br />CREATE TABLE jeff_test(col1 DATE NOT NULL<br />                      ,col2 NUMBER NOT NULL<br />                      ,col3 VARCHAR2(200) NOT NULL<br />                      )<br />TABLESPACE old_tbs<br />PARTITION BY RANGE(col1)<br />SUBPARTITION BY LIST(col2)<br />SUBPARTITION TEMPLATE(<br /> SUBPARTITION "S1" VALUES(1)<br />,SUBPARTITION "S2" VALUES(2)<br />)<br />(PARTITION p1 VALUES LESS THAN(TO_DATE('31-DEC-2009','DD-MON-YYYY'))<br />,PARTITION p2 VALUES LESS THAN(TO_DATE('31-DEC-2010','DD-MON-YYYY'))<br />)<br />/<br /><br />SELECT partition_name,tablespace_name FROM dba_tab_partitions WHERE table_name='JEFF_TEST';<br />SELECT subpartition_name,tablespace_name FROM dba_tab_subpartitions WHERE table_name='JEFF_TEST';<br /><br />ALTER TABLE jeff_test MOVE SUBPARTITION p1_s1 TABLESPACE NEW_TBS;<br />ALTER TABLE jeff_test MOVE SUBPARTITION p1_s2 TABLESPACE NEW_TBS;<br />ALTER TABLE jeff_test MOVE SUBPARTITION p2_s1 TABLESPACE NEW_TBS;<br />ALTER TABLE jeff_test MOVE SUBPARTITION p2_s2 TABLESPACE NEW_TBS;<br /><br />DROP TABLESPACE old_tbs INCLUDING CONTENTS AND DATAFILES;<br />ALTER TABLESPACE new_tbs RENAME TO old_tbs;<br /><br />SELECT partition_name,tablespace_name FROM dba_tab_partitions WHERE table_name='JEFF_TEST';<br />SELECT subpartition_name,tablespace_name FROM dba_tab_subpartitions WHERE table_name='JEFF_TEST';<br /><br />ALTER TABLE jeff_test MODIFY DEFAULT ATTRIBUTES FOR PARTITION p1 TABLESPACE old_tbs;<br />ALTER TABLE jeff_test MODIFY DEFAULT ATTRIBUTES FOR PARTITION p2 TABLESPACE old_tbs;<br /><br />SELECT partition_name,tablespace_name FROM dba_tab_partitions WHERE table_name='JEFF_TEST';<br />SELECT subpartition_name,tablespace_name FROM dba_tab_subpartitions WHERE table_name='JEFF_TEST';<br /></pre>
<p>Which, when run in 11.1.0.6 on Windows 2003 Server 64 bit, gives:</p>
<pre><br />DROP TABLESPACE old_tbs succeeded.<br />CREATE TABLESPACE succeeded.<br />CREATE TABLESPACE succeeded.<br />TS#                    NAME                           <br />---------------------- ------------------------------ <br />9                      NEW_TBS                        <br />10                     OLD_TBS                        <br /><br />2 rows selected<br /><br />CREATE TABLE succeeded.<br />PARTITION_NAME                 TABLESPACE_NAME                <br />------------------------------ ------------------------------ <br />P1                             OLD_TBS                        <br />P2                             OLD_TBS                        <br /><br />2 rows selected<br /><br />SUBPARTITION_NAME              TABLESPACE_NAME                <br />------------------------------ ------------------------------ <br />P1_S2                          OLD_TBS                        <br />P1_S1                          OLD_TBS                        <br />P2_S2                          OLD_TBS                        <br />P2_S1                          OLD_TBS                        <br /><br />4 rows selected<br /><br />ALTER TABLE jeff_test succeeded.<br />ALTER TABLE jeff_test succeeded.<br />ALTER TABLE jeff_test succeeded.<br />ALTER TABLE jeff_test succeeded.<br />DROP TABLESPACE old_tbs succeeded.<br />ALTER TABLESPACE new_tbs succeeded.<br />PARTITION_NAME                 TABLESPACE_NAME                <br />------------------------------ ------------------------------ <br />P1                             _$deleted$10$0                 <br />P2                             _$deleted$10$0                 <br /><br />2 rows selected<br /><br />SUBPARTITION_NAME              TABLESPACE_NAME                <br />------------------------------ ------------------------------ <br />P1_S2                          OLD_TBS                        <br />P1_S1                          OLD_TBS                        <br />P2_S2                          OLD_TBS                        <br />P2_S1                          OLD_TBS                        <br /><br />4 rows selected<br /><br />ALTER TABLE jeff_test succeeded.<br />ALTER TABLE jeff_test succeeded.<br />PARTITION_NAME                 TABLESPACE_NAME                <br />------------------------------ ------------------------------ <br />P1                             OLD_TBS                        <br />P2                             OLD_TBS                        <br /><br />2 rows selected<br /><br />SUBPARTITION_NAME              TABLESPACE_NAME                <br />------------------------------ ------------------------------ <br />P1_S2                          OLD_TBS                        <br />P1_S1                          OLD_TBS                        <br />P2_S2                          OLD_TBS                        <br />P2_S1                          OLD_TBS                        <br /><br />4 rows selected<br /><br /></pre>
<p>Notice that the $n in &#8220;_$deleted$n$m&#8221; is 10, which is the ts# of the OLD_TBS before the rename. The problem revolves around entries in TS$, when you rename tablespaces to names that have previously been used and then dropped, basically because the old entries are not removed from TS$.</p>
<p>Related references:<br />Bug Numbers:8291493, itself a duplicate of 5769963<br />Note: 604648.1</p>
<p>According to the SR and bug, it was noticed in 10.2.0.4 and is fixed in 10.2.0.5. We&#8217;ve reproduced it in 11.1.0.6 on various ports, (results above) and updated our SR, so I guess the fix might also find it&#8217;s way into 11.1.0.7, perhaps.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.oramoss.com/blog/deleted-tablespace-names-bug/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>No pruning for MIN/MAX of partition key column</title>
		<link>http://www.oramoss.com/blog/no-pruning-for-minmax-of-partition-key-column/</link>
		<comments>http://www.oramoss.com/blog/no-pruning-for-minmax-of-partition-key-column/#comments</comments>
		<pubDate>Thu, 25 Jun 2009 20:43:00 +0000</pubDate>
		<dc:creator>jeff</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bugs]]></category>
		<category><![CDATA[cbo]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[dba]]></category>
		<category><![CDATA[DW]]></category>
		<category><![CDATA[partitioning]]></category>
		<category><![CDATA[tuning]]></category>

		<guid isPermaLink="false">http://www.oramoss.com/blog/?p=10</guid>
		<description><![CDATA[Recently, I wanted to work out the maximum value of a column on a partitioned table. The column I wanted the maximum value for, happened to be the (single and only) partition key column. The table in question was range partitioned on this single key column, into monthly partitions for 2009, with data in all [...]]]></description>
				<content:encoded><![CDATA[<p>Recently, I wanted to work out the maximum value of a column on a partitioned table. The column I wanted the maximum value for, happened to be the (single and only) partition key column. The table in question was range partitioned on this single key column, into monthly partitions for 2009, with data in all the partitions behind the current date, i.e. January through mid June were populated. There were no indexes on the table.</p>
<p>NOTE &#8211; I tried this on 10.2.04 (AIX) and 11.1.0 (Fedora 11) &#8211; the example below is from 11.1.0.</p>
<p>I&#8217;ll recreate the scenario here:</p>
<pre><br />CREATE TABLESPACE tsp1<br />datafile '/u01/app/oracle/oradata/T111/tsp1.dbf' size 100M <br />autoextend off extent management local  uniform size 1m segment space management auto online<br />/<br />CREATE TABLESPACE tsp2<br />datafile '/u01/app/oracle/oradata/T111/tsp2.dbf' size 100M <br />autoextend off extent management local  uniform size 1m segment space management auto online<br />/<br /><br />DROP TABLE test PURGE<br />/<br />CREATE TABLE test(col_date_part_key DATE            NOT NULL<br />                 ,col2              VARCHAR2(2000)  NOT NULL<br />                 )<br />PARTITION BY RANGE(col_date_part_key)<br />(PARTITION month_01 VALUES LESS THAN (TO_DATE('01-FEB-2009','DD-MON-YYYY')) TABLESPACE tsp1<br />,PARTITION month_02 VALUES LESS THAN (TO_DATE('01-MAR-2009','DD-MON-YYYY')) TABLESPACE tsp2<br />,PARTITION month_03 VALUES LESS THAN (TO_DATE('01-APR-2009','DD-MON-YYYY')) TABLESPACE tsp2<br />,PARTITION month_04 VALUES LESS THAN (TO_DATE('01-MAY-2009','DD-MON-YYYY')) TABLESPACE tsp2<br />,PARTITION month_05 VALUES LESS THAN (TO_DATE('01-JUN-2009','DD-MON-YYYY')) TABLESPACE tsp2<br />,PARTITION month_06 VALUES LESS THAN (TO_DATE('01-JUL-2009','DD-MON-YYYY')) TABLESPACE tsp2<br />,PARTITION month_07 VALUES LESS THAN (TO_DATE('01-AUG-2009','DD-MON-YYYY')) TABLESPACE tsp2<br />,PARTITION month_08 VALUES LESS THAN (TO_DATE('01-SEP-2009','DD-MON-YYYY')) TABLESPACE tsp2<br />,PARTITION month_09 VALUES LESS THAN (TO_DATE('01-OCT-2009','DD-MON-YYYY')) TABLESPACE tsp2<br />,PARTITION month_10 VALUES LESS THAN (TO_DATE('01-NOV-2009','DD-MON-YYYY')) TABLESPACE tsp2<br />,PARTITION month_11 VALUES LESS THAN (TO_DATE('01-DEC-2009','DD-MON-YYYY')) TABLESPACE tsp2<br />,PARTITION month_12 VALUES LESS THAN (TO_DATE('01-JAN-2010','DD-MON-YYYY')) TABLESPACE tsp2<br />)<br />/<br />REM Insert rows, but only up to 14-JUN-2009<br />INSERT INTO test(col_date_part_key,col2)<br />SELECT TO_DATE('31-DEC-2008','DD-MON-YYYY') + l<br />,      LPAD('X',2000,'X')<br />FROM   (SELECT level l FROM dual CONNECT BY level < 166)<br />/<br />COMMIT<br />/<br />SELECT COUNT(*)<br />FROM   test<br />/<br />SELECT MIN(col_date_part_key) min_date<br />,      MAX(col_date_part_key) max_date<br />FROM   test<br />/<br /></pre>
<p>This runs and gives the following output:
<pre><br />DROP TABLE test PURGE                                               <br />           *                                                        <br />ERROR at line 1:                                                    <br />ORA-00942: table or view does not exist                             <br /><br /><br />DROP TABLESPACE tsp1 INCLUDING CONTENTS<br />*                                      <br />ERROR at line 1:                       <br />ORA-00959: tablespace 'TSP1' does not exist<br /><br /><br />DROP TABLESPACE tsp2 INCLUDING CONTENTS<br />*                                      <br />ERROR at line 1:<br />ORA-00959: tablespace 'TSP2' does not exist<br /><br /><br /><br />Tablespace created.<br /><br /><br />Tablespace created.<br /><br /><br />Table created.<br /><br /><br />165 rows created.<br /><br /><br />Commit complete.<br /><br /><br />  COUNT(*)<br />----------<br />       165<br /><br /><br />MIN_DATE  MAX_DATE<br />--------- ---------<br />01-JAN-09 14-JUN-09<br /></pre>
<p>Now, lets see what the plan looks like from AUTOTRACE when we run the following query to get the maximum value of COL_DATE_PART_KEY:</p>
<pre><br />SQL> SET AUTOTRACE ON<br />SQL> SELECT MAX(col_date_part_key) min_date<br />  2  FROM   test                           <br />  3  /                                     <br /><br />MIN_DATE<br />---------<br />14-JUN-09<br /><br /><br />Execution Plan<br />----------------------------------------------------------<br />Plan hash value: 784602781                                <br /><br />---------------------------------------------------------------------------------------------<br />| Id  | Operation            | Name | Rows  | Bytes | Cost (%CPU)| Time     | Pstart| Pstop |<br />---------------------------------------------------------------------------------------------<br />|   0 | SELECT STATEMENT     |      |     1 |     9 |    99   (0)| 00:00:02 |       |       |<br />|   1 |  SORT AGGREGATE      |      |     1 |     9 |            |          |       |       |<br />|   2 |   PARTITION RANGE ALL|      |   132 |  1188 |    99   (0)| 00:00:02 |     1 |    12 |<br />|   3 |    TABLE ACCESS FULL | TEST |   132 |  1188 |    99   (0)| 00:00:02 |     1 |    12 |<br />---------------------------------------------------------------------------------------------<br /><br />Note<br />-----<br />   - dynamic sampling used for this statement<br /><br /><br />Statistics<br />----------------------------------------------------------<br />          0  recursive calls<br />          0  db block gets<br />        320  consistent gets<br />         51  physical reads<br />          0  redo size<br />        527  bytes sent via SQL*Net to client<br />        524  bytes received via SQL*Net from client<br />          2  SQL*Net roundtrips to/from client<br />          0  sorts (memory)<br />          0  sorts (disk)<br />          1  rows processed<br /><br />SQL> SET AUTOTRACE OFF<br /></pre>
<p>It shows a full scan of all twelve partitions. I figured that the the plan for such a query would show a full table scan, of all partitions for that table &#8211; because, in theory, if all but the first partition were empty, then the whole table would have to be scanned to answer the query &#8211; and Oracle wouldn&#8217;t know at plan creation time, whether the data met this case, so it would have to do the full table scan to ensure the correct result. </p>
<p>What I thought might happen though, is that in executing the query, it would be able to short circuit things, by working through the partitions in order, from latest to earliest, and finding the first, non null, value. Once it found the first, non null, value, it would know not to continue looking in the earlier partitions, since the value of COL_DATE_PART_KEY couldn&#8217;t possibly be greater than the non null value already identified. </p>
<p>It doesn&#8217;t appear to have this capability, which we can check by taking one of the partitions offline and then rerunning the query, whereupon it complains that not all the data is present&#8230;</p>
<pre><br />SQL> ALTER TABLESPACE tsp1 OFFLINE;<br /><br />Tablespace altered.<br /><br />SQL> SET AUTOTRACE ON<br />SQL> SELECT MAX(col_date_part_key) min_date<br />  2  FROM   test<br />  3  /<br />SELECT MAX(col_date_part_key) min_date<br />*<br />ERROR at line 1:<br />ORA-00376: file 6 cannot be read at this time<br />ORA-01110: data file 6: '/u01/app/oracle/oradata/T111/tsp1.dbf'<br /><br /><br />SQL> SET AUTOTRACE OFF<br /></pre>
<p>So, even though we know we could actually answer this question accurately, Oracle can&#8217;t do it as it wants to scan, unnecessarily, the whole table.</p>
<p>I did find <a href="http://kr.forums.oracle.com/forums/thread.jspa?messageID=3207394">a thread</a> which somebody had asked about this on OTN, but all the responses were about workarounds, rather than explaining why this happens (bug/feature) or how it can be made to work in the way I, or the poster of that thread, think it, perhaps, should.</p>
<p>Can anyone else shed any light on this? If it&#8217;s a feature, then it seems like something that could be easily coded more efficiently by Oracle. The same issue would affect both MIN and MAX since both could be<br />
 approached in the same manner.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.oramoss.com/blog/no-pruning-for-minmax-of-partition-key-column/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Installing Oracle 11gR1 on a Fedora Core 10 64 bit VM</title>
		<link>http://www.oramoss.com/blog/installing-oracle-11gr1-on-a-fedora-core-10-64-bit-vm/</link>
		<comments>http://www.oramoss.com/blog/installing-oracle-11gr1-on-a-fedora-core-10-64-bit-vm/#comments</comments>
		<pubDate>Tue, 02 Jun 2009 22:26:00 +0000</pubDate>
		<dc:creator>jeff</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[dba]]></category>
		<category><![CDATA[errors]]></category>
		<category><![CDATA[guides]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://www.oramoss.com/blog/?p=11</guid>
		<description><![CDATA[Just a note, to myself more than anything, about what extra packages are required by a 64 bit installation of Fedora Core 10, when trying to install Oracle 11gR1. The installation I undertook was on a FC10 64 bit VM running under VMWare Server 2.0 running on top of FC10 64 bit OS. Tim, as [...]]]></description>
				<content:encoded><![CDATA[<p>Just a note, to myself more than anything, about what extra packages are required by a 64 bit installation of Fedora Core 10, when trying to install Oracle 11gR1.</p>
<p>The installation I undertook was on a FC10 64 bit VM running under VMWare Server 2.0 running on top of FC10 64 bit OS.</p>
<p><a href="http://www.oracle-base.com/">Tim</a>, as usual, has a <a href="http://www.oracle-base.com/articles/11g/OracleDB11gR1InstallationOnFedora10.php">lovely guide</a> which told me almost everything I needed to know, however the guide says &#8220;If you are performing the 64-bit installation, make sure both the 32-bit and 64-bit libraries are installed.&#8221; rather than explicitly stating the packages for a 64 bit install. Until I tried to install Oracle 11gR1, I didn&#8217;t know what these were. The Oracle installer for 11g soon told me in the pre install checks it does, so I went about installing the following packages, in order:</p>
<p>glibc-2.9-3.i686.rpm<br />libaio-0.3.107-4.fc10.i386.rpm<br />libgcc-4.3.2-7.i386.rpm<br />glibc-devel-2.9-3.i386.rpm<br />compat-libstdc++-33-3.2.3-64.x86_64.rpm<br />compat-libstdc++-33-3.2.3-64.i386.rpm<br />libstdc++-4.3.2-7.i386.rpm</p>
<p>That got me past the pre install checks of the Oracle installer and on to a successful install.</p>
<p>I&#8217;ve added the list to the comments on the guide Tim produced as well.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.oramoss.com/blog/installing-oracle-11gr1-on-a-fedora-core-10-64-bit-vm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cursor keys not working in Virtual Server 2 VM</title>
		<link>http://www.oramoss.com/blog/cursor-keys-not-working-in-virtual-server-2-vm/</link>
		<comments>http://www.oramoss.com/blog/cursor-keys-not-working-in-virtual-server-2-vm/#comments</comments>
		<pubDate>Fri, 22 May 2009 12:57:00 +0000</pubDate>
		<dc:creator>jeff</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bugs]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[virtualisation]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://www.oramoss.com/blog/?p=12</guid>
		<description><![CDATA[Posted as a reminder to myself about how to fix this issue&#8230; I couldn&#8217;t get some of the cursor keys to work properly on my virtual machines running under VMWare Virtual Server 2 on Fedora 10 x86_64. Kept giving funny behaviour like bringing up the screen capture applet! A bit of searching the net came [...]]]></description>
				<content:encoded><![CDATA[<p>Posted as a reminder to myself about how to fix this issue&#8230;</p>
<p>I couldn&#8217;t get some of the cursor keys to work properly on my virtual machines running under VMWare Virtual Server 2 on Fedora 10 x86_64. Kept giving funny behaviour like bringing up the screen capture applet!</p>
<p>A bit of searching the net came up with <a href="http://bias9.blogspot.com/2008/10/keys-not-working-in-vmware.html">this one</a>, which although not referring to Virtual Server 2 specifically, seems to work all the same&#8230;</p>
<p>Essentially, adding the line below to the following file fixes the problem</p>
<p>File (create it, if not already present):
<pre>~/.vmware/config</pre>
<p>Line:
<pre>xkeymap.nokeycodeMap = true</pre>
<p>My thanks to &#8220;The Monkey Jungle&#8221;!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.oramoss.com/blog/cursor-keys-not-working-in-virtual-server-2-vm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disable password ageing on Windows 2008 Server Standard</title>
		<link>http://www.oramoss.com/blog/disable-password-ageing-on-windows-2008-server-standard/</link>
		<comments>http://www.oramoss.com/blog/disable-password-ageing-on-windows-2008-server-standard/#comments</comments>
		<pubDate>Sat, 10 Jan 2009 11:53:00 +0000</pubDate>
		<dc:creator>jeff</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[guides]]></category>
		<category><![CDATA[os]]></category>
		<category><![CDATA[virtualisation]]></category>

		<guid isPermaLink="false">http://www.oramoss.com/blog/?p=13</guid>
		<description><![CDATA[Password ageing in Windows 2008 Server Standard edition (the one I generally use) is set to automatically requre passwords to be changed after 42 days&#8230;obviously a Douglas Adams fan responsible for that bit of the codebase! NOTE &#8211; I don&#8217;t have access to other version of Windows Server (2003 or 2008) so I can&#8217;t speak [...]]]></description>
				<content:encoded><![CDATA[<p>Password ageing in Windows 2008 Server Standard edition (the one I generally use) is set to automatically requre passwords to be changed after 42 days&#8230;obviously a Douglas Adams fan responsible for that bit of the codebase!</p>
<p>NOTE &#8211; I don&#8217;t have access to other version of Windows Server (2003 or 2008) so I can&#8217;t speak for them, but I imagine it&#8217;s the same on them too.</p>
<p>That&#8217;s annoying for home use, where I have tons of VMs for research that I use periodically, so I asked my brother <a href="http://www.mosschops.org.uk/">Steve</a> how to stop this happening and he gave me some simple instructions&#8230;</p>
<p>First start the Local Security Policy editor by typing secpol.msc in the start/run box..</p>
<p><img alt="secpol.msc" src="http://www.oramoss.com/wiki/uploads/Secpol_msc.jpg" /></p>
<p>and then select Account Policies / Password Policy on the nagivation tree on the left. On the right hand side select Maximum Password Age and set this from the default of &#8220;42&#8243; to &#8220;0&#8243;. You&#8217;ll notice it now says &#8220;Password will not expire&#8221; above the value &#8220;0&#8243;.</p>
<p><img alt="Set Password Ageing off.msc" src="http://www.oramoss.com/wiki/uploads/SetMaximumPasswordAgeZero.jpg" /></p>
<p>Seems to have done the trick.</p>
<p>Kinda handy having a brother who&#8217;s an MCSE and a VCP too. Useful when I get stuck with OS or VM stuff for my Oracle research!</p>
<p>By the way, if anyone happens to be looking for some skilled contract resource in the Virtualisation field (VMWare, ESX Server etc&#8230;)  then Steve has just become available&#8230;please feel free to contact me, or Steve, via his <a href="http://www.mosschops.org.uk/">website</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.oramoss.com/blog/disable-password-ageing-on-windows-2008-server-standard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
