<?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>Ronny Egners Blog</title>
	<atom:link href="http://blog.ronnyegner-consulting.de/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.ronnyegner-consulting.de</link>
	<description>Ronny Egners Blog about Oracle, UNIX and EMC / Legato Networker</description>
	<lastBuildDate>Mon, 02 Aug 2010 09:12:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Using variables in RMAN scripts</title>
		<link>http://blog.ronnyegner-consulting.de/2010/08/02/rman-and-variables/</link>
		<comments>http://blog.ronnyegner-consulting.de/2010/08/02/rman-and-variables/#comments</comments>
		<pubDate>Mon, 02 Aug 2010 09:12:41 +0000</pubDate>
		<dc:creator>Ronny Egner</dc:creator>
				<category><![CDATA[Oracle in general]]></category>

		<guid isPermaLink="false">http://blog.ronnyegner-consulting.de/?p=2145</guid>
		<description><![CDATA[Ever wanted to use variables in your RMAN scripts? Until and including 10g R2 this was impossible. Starting with 11g R1 it is possible. Lets me show you a short example how to do it: First we create a simple (and imcomplete) script with the following content: connect target / backup &#38;1; The variable &#8220;&#38;1&#8243; [...]]]></description>
			<content:encoded><![CDATA[<p>Ever wanted to use variables in your RMAN scripts? Until and including 10g R2 this was impossible. Starting with 11g R1 it is possible.</p>
<p>Lets me show you a short example how to do it:</p>
<p>First we create a simple (and imcomplete) script with the following content:</p>
<pre>connect target /
backup &amp;1;</pre>
<p>The variable &#8220;&amp;1&#8243; will be replaced with the first command line argument supplied on the command line. &#8220;&amp;2&#8243; is the second argument and so on.</p>
<p>Suppose we want to backup our database we start RMAN with:</p>
<pre>-bash-3.2$ rman target / @test.scr USING \"database\"</pre>
<p>The resulting output will be:</p>
<pre>Recovery Manager: Release 11.2.0.1.0 - Production on Mon Aug 2 08:16:07 2010
Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
connected to target database: ORA11R2P (DBID=2658288218)
<strong>RMAN&gt; backup database;</strong>
2&gt;
Starting backup at 02-AUG-10
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=148 device type=DISK
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00001 name=/u01/oradata/ORA11R2P/system01.dbf
input datafile file number=00002 name=/u01/oradata/ORA11R2P/sysaux01.dbf
input datafile file number=00003 name=/u01/oradata/ORA11R2P/undotbs01.dbf
input datafile file number=00005 name=/u01/oradata/ORA11R2P/testneu.dbf
input datafile file number=00004 name=/u01/oradata/ORA11R2P/users01.dbf
channel ORA_DISK_1: starting piece 1 at 02-AUG-10</pre>
<p>As you can see in the bold line RMAN replaced the variable with the first argument specified on the command line (&#8220;database&#8221;).</p>
<p>With this method you can create powerful and yet simple scripts for backing up your database.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ronnyegner-consulting.de/2010/08/02/rman-and-variables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tuning Linux for Oracle</title>
		<link>http://blog.ronnyegner-consulting.de/2010/07/22/tuning-linux-for-oracle/</link>
		<comments>http://blog.ronnyegner-consulting.de/2010/07/22/tuning-linux-for-oracle/#comments</comments>
		<pubDate>Thu, 22 Jul 2010 05:10:51 +0000</pubDate>
		<dc:creator>Ronny Egner</dc:creator>
				<category><![CDATA[Oracle in general]]></category>

		<guid isPermaLink="false">http://blog.ronnyegner-consulting.de/?p=2114</guid>
		<description><![CDATA[This is a short post on how to tune Linux for running Oracle. It wont cover the background directly but i am trying to give some links with further informations. I am planning to improve it over the time. Currently this article covers: Partition Alignment Choosing a file system Optimizing ext3 Enable Huge Pages Using [...]]]></description>
			<content:encoded><![CDATA[<p>This is a short post on how to tune Linux for running Oracle.</p>
<p>It wont cover the background directly but i am trying to give some links with further informations.</p>
<p>I am planning to improve it over the time.</p>
<p>Currently this article covers:</p>
<ul>
<li>Partition Alignment</li>
<li>Choosing a file system</li>
<li>Optimizing ext3</li>
<li>Enable Huge Pages</li>
<li>Using Async and Direct IO</li>
<li>Tune Swapping Priority</li>
</ul>
<p><span id="more-2114"></span></p>
<h2>Align Partitions</h2>
<p>What it is? When creating partitions you have to ensure your file system blocks match exactly with your storage block layout. There are some further information <a href="http://www.vmdamentals.com/?p=328" target="_blank">here</a> (esp. for running VMWARE with any operating system) or this great article <a href="http://blogs.sun.com/dlutz/entry/partition_alignment_guidelines_for_unified" target="_blank">here</a>.</p>
<p>On Linux checking for alignment is quite easy when using fdisk. Instead of using &#8220;fdisk -l&#8221; for querying all partitions use &#8220;fdisk -lu&#8221; for querying partitions. This will show partitions start SECTOR (remember every sector equals to 512 bytes and 4 KB on some recent disks) as well:</p>
<pre># fdisk -lu

Disk /dev/sde: 2199.0 GB, 2199023255552 bytes
255 heads, 63 sectors/track, 267349 cylinders, total 4294967296 sectors
Units = sectors of 1 * 512 = 512 bytes

 Device Boot      Start         End      Blocks   Id  System
/dev/sde1              63  4294961684  2147480811   83  Linux

Disk /dev/sdf: 53.6 GB, 53687091200 bytes
64 heads, 32 sectors/track, 51200 cylinders, total 104857600 sectors
Units = sectors of 1 * 512 = 512 bytes

 Device Boot      Start         End      Blocks   Id  System
/dev/sdf1             128   104857599    52428736   83  Linux
</pre>
<p>As you can see the first partitions on disk /dev/sde starts at sector 63 which is no way aligned. Partitions /dev/sdf1 is aligned cause it starts at sector 128 which is fine for all stripe configurations up to 64 KB stripe width.</p>
<p>Generally speaking  i strongly recommend to align your partitions. If you dont have stripe widths larger than 64 KB starting at sector 128 is fine.</p>
<p>When using ASM you need to align at 1 MB, i.e. 2048 sectors.</p>
<p>The following shows how to implement it with fdisk AFTER creating a partitions and BEFORE creating a file system:</p>
<pre>[root@moloch oradata]# fdisk /dev/sde

Command (m for help): p

Disk /dev/sde: 2199.0 GB, 2199023255552 bytes
255 heads, 63 sectors/track, 267349 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

 Device Boot      Start         End      Blocks   Id  System
/dev/sde1               1      267349  2147480811   83  Linux

Command (m for help): x

Expert command (m for help): b
Partition number (1-4): 1
New beginning of data (63-4294961684, default 63): 128</pre>
<pre># fdisk -lu

Disk /dev/sde: 2199.0 GB, 2199023255552 bytes
255 heads, 63 sectors/track, 267349 cylinders, total 4294967296 sectors
Units = sectors of 1 * 512 = 512 bytes

 Device Boot      Start         End      Blocks   Id  System
/dev/sde1             128  4294961684  2147480811   83  Linux
</pre>
<h2>Choose a file system</h2>
<p>There are tremenous discussions which file system is the &#8220;best&#8221; on Linux. For running Oracle on Linux there is only one: ext3. This equals to Oracles recommendations (and my options as well).</p>
<p>Another options is &#8211; of course &#8211; ASM.</p>
<h2>Creating the ext3 file system</h2>
<p>When creating the file system for storing your database files you might want to change the ratio of created inodes per bytes. This is especially useful for shorten the periodic full file system check in ext3 (i outlined it in <a href="http://blog.ronnyegner-consulting.de/2009/10/01/ext3-beware-of-periodic-file-system-checks/" target="_blank">this</a> post).</p>
<p>You can safely create a ext3 file system with only one inode per 1 MB space with:</p>
<pre>mkfs.ext3 -T largefile &lt;device&gt;</pre>
<p>Or even one inode per 4 MB with:</p>
<pre>mkfs.ext3 -T largefile4 &lt;device&gt;</pre>
<p>Remember you will need one inode per created file or directory. So i recommend this options only on file systems intended for usage by data files (this includes redo logs and even archive logs).</p>
<p>Creating a file system with fewer number of inodes will shorten your fsck times extemely. I did some tests with an 8 TB ext3 file system created normally, with &#8220;-T largefile&#8221; and with &#8220;-T largefile4&#8243; options. The standard created file system creates one inode per every 4 KB. <strong>fsck&#8217;ing an 8 TB file system filled to 50% with data files (all of 32 GB size) takes approx 7 hours!</strong> Checking the same file system created with &#8220;-T largefile&#8221; only takes 10 minutes. The &#8220;-T largefile4&#8243; needs approx 5 minutes.</p>
<h2>Disable atime-Updates on ext3</h2>
<p>When accessing a file or directory ext3 file system updates the file or directories last accessed timestamp. It does to for every read to every file. This has a unnecessary performance impact. To avoid this impact you can turn off these updates by adding</p>
<pre>noatime,nodiratime
</pre>
<p>to your /etc/fstab or remounting the file system with:</p>
<pre>mount  -o remount,noatime,nodiratime,rw  &lt;path or device&gt;</pre>
<p>According to oracles recommendations you can safely turn this off in non-RAC environments. In RAC environments you need to check.</p>
<h2>Enable Huge Pages</h2>
<p>For using your memory optimally i recommend to enable and use Huge Pages as outlined in <a href="http://blog.ronnyegner-consulting.de/2010/03/31/memory_target-sga_target-or-hugepages-which-to-choose/" target="_blank">this</a> post.</p>
<p>You can enable Huge Pages by adding the following to your /etc/sysctl.conf</p>
<pre>vm.nr_hugepages = &lt;number&gt;
</pre>
<p>The &lt;number&gt; are the requested Huge Page to allocate. Note that each page is 2 MB in size. So for a 2 GB SGA you need approx 1000 Huge Pages.</p>
<p>More details can be found <a href="http://blog.ronnyegner-consulting.de/2010/03/31/memory_target-sga_target-or-hugepages-which-to-choose/" target="_blank">here</a>.</p>
<h2>Enable DirectIO and Asynchronous IO</h2>
<p>By setting the parameter &#8220;filesystemio_options&#8221; in your init.ora you can enable either DirectIO, Asynchronous IO or both.</p>
<p>For enabling both (which i recommend on Linux) set:</p>
<pre>filesystemio_options=setall</pre>
<p>in your init.ora (or spfile).</p>
<p>Note that not all file systems support DirectIO or even Asynchronous IO. ext3 does support both.</p>
<h2>Tune Swapping Priority</h2>
<p>Linux does swap unused pages even if there is plenty of memory free. It does so by checking if a memory page (which is 4 kb in size) was accessed recently. If they were not accessed for some time the page gets swapped out to disk. The memory freed is used for other purposes &#8211; most often for the file system cache.</p>
<p>You can adjust the time a memory page gets swapped out by adjusting the &#8220;swappiness&#8221; value. The valid range is 0&#8230;100. &#8220;0&#8243; means: no swapping unless neccessaey; 100 means: if a page is not very frequently used/visited swap it out; default is 60.</p>
<p>I recommend to set this value quite low on a database server&#8230; e.g. 5 or even 1 by adding to your &#8220;/etc/sysctl.conf&#8221;:</p>
<pre>vm.swappiness=5</pre>
<p>Note that Huge Pages are not swappable thus remain always in memory.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ronnyegner-consulting.de/2010/07/22/tuning-linux-for-oracle/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Bye bye Oracle 10g Release 2</title>
		<link>http://blog.ronnyegner-consulting.de/2010/07/21/bye-bye-oracle-10g-release-2/</link>
		<comments>http://blog.ronnyegner-consulting.de/2010/07/21/bye-bye-oracle-10g-release-2/#comments</comments>
		<pubDate>Wed, 21 Jul 2010 06:09:36 +0000</pubDate>
		<dc:creator>Ronny Egner</dc:creator>
				<category><![CDATA[Oracle in general]]></category>

		<guid isPermaLink="false">http://blog.ronnyegner-consulting.de/?p=2110</guid>
		<description><![CDATA[With end of July 2010 support for Oracle 10g Release 2 ends. You can order (at additional costs of course) so called extended support to get support until July 2011. After this date there is so called &#8220;Sustaining Support&#8221; which offers support for several more years. Update: I was told the first year of Extended [...]]]></description>
			<content:encoded><![CDATA[<p>With end of July 2010 support for Oracle 10g Release 2 ends. You can order (at additional costs of course) so called extended support to get support until July 2011. After this date there is so called &#8220;Sustaining Support&#8221; which offers support for several more years.</p>
<p><strong>Update: </strong>I was told the first year of Extended Support is free of charge (Thanks Martin!). So customers have a little bit more time to test and upgrade.</p>
<p>See the following picture for the support end dates:</p>
<p><a href="http://blog.ronnyegner-consulting.de/wp-content/uploads/support_oracle.png"><img class="alignnone size-full wp-image-2109" title="support_oracle" src="http://blog.ronnyegner-consulting.de/wp-content/uploads/support_oracle.png" alt="" width="1115" height="830" /></a></p>
<p>So if you start with new projects i´d strongly recommend to use Oracle 11g Release 2 at best or if 11g R2 is not an options 11g R1.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ronnyegner-consulting.de/2010/07/21/bye-bye-oracle-10g-release-2/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Patch News &#8211; Oracle Patchset 10.2.0.5.0 released</title>
		<link>http://blog.ronnyegner-consulting.de/2010/05/19/patch-new-10-2-0-5-0-released/</link>
		<comments>http://blog.ronnyegner-consulting.de/2010/05/19/patch-new-10-2-0-5-0-released/#comments</comments>
		<pubDate>Wed, 19 May 2010 07:30:03 +0000</pubDate>
		<dc:creator>Ronny Egner</dc:creator>
				<category><![CDATA[Oracle in general]]></category>

		<guid isPermaLink="false">http://blog.ronnyegner-consulting.de/?p=2105</guid>
		<description><![CDATA[I just found Oracle released 10.2.0.5.0 patchset for the following platforms: Linux x86_64 Linux x86 See Doc ID 1088172.1 for a list of fixed problems.]]></description>
			<content:encoded><![CDATA[<p>I just found Oracle released 10.2.0.5.0 patchset for the following platforms:</p>
<ul>
<li>Linux x86_64</li>
<li>Linux x86</li>
</ul>
<p>See Doc ID 1088172.1 for a list of fixed problems.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ronnyegner-consulting.de/2010/05/19/patch-new-10-2-0-5-0-released/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Oracle 11g R2: Deferred Segment Creation + imp + table with LOB column = Bug</title>
		<link>http://blog.ronnyegner-consulting.de/2010/05/07/oracle-11g-r2-deferred-segment-creation-imp-lob-bug/</link>
		<comments>http://blog.ronnyegner-consulting.de/2010/05/07/oracle-11g-r2-deferred-segment-creation-imp-lob-bug/#comments</comments>
		<pubDate>Fri, 07 May 2010 13:53:50 +0000</pubDate>
		<dc:creator>Ronny Egner</dc:creator>
				<category><![CDATA[Oracle in general]]></category>

		<guid isPermaLink="false">http://blog.ronnyegner-consulting.de/?p=2080</guid>
		<description><![CDATA[This is a short posting about an error i found today. This errors prevents the import of tables with lob columns when using traditional import, deferred segment creation and an altered tablespace name. For this i created a test case in which we In the source database (10.2.0.4.0 on 64-bit Linux): create a user named [...]]]></description>
			<content:encoded><![CDATA[<p>This is a short posting about an error i found today.</p>
<p>This errors prevents the import of tables with lob columns when using traditional import, deferred segment creation and an altered tablespace name.</p>
<p>For this i created a test case in which we</p>
<ol>
<li>In the source database (10.2.0.4.0 on 64-bit Linux):
<ol>
<li>create a user named TEST1 having a default tablespace named TEST1</li>
<li>create a small table with a CLOB in it</li>
<li>export the schema with traditional import</li>
<li>transfer the dump to the destination database</li>
</ol>
</li>
<li>In the destination database (11.2.0.1.0 on 64-bit Linux)
<ol>
<li>create a user names TESTNEU with a default tablespace TESTNEU<br />
NOTE: There is no tablespace TEST1 in the destination database; this is important</li>
<li>trying to import the table&#8230; hitting a bug documented below in detail</li>
</ol>
</li>
</ol>
<p>Note: While blogging this for a fried i was in hurry; i will rewrite some paragraphs with evening&#8230; but the problem should become clear while reading&#8230;</p>
<p><span id="more-2080"></span></p>
<h2>In the source database (10.2.0.4.0)</h2>
<h3>Create user and tablespace</h3>
<pre>-bash-3.2$ sqlplus / as sysdba

SQL*Plus: Release 10.2.0.4.0 - Production on Fri May 7 15:25:27 2010
Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.

Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL&gt; create tablespace test1 datafile '/u01/oradata/ORA10P/test1.dbf' size 100M;
Tablespace created.

SQL&gt; create user test1 identified by test1 default tablespace test1 quota unlimited on test1;
User created.

SQL&gt; grant create session to test1;
Grant succeeded.

SQL&gt; grant create table to test1;
Grant succeeded.

SQL&gt; exit

Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options</pre>
<h3>Create a table with a clob column and insert one row</h3>
<pre>-bash-3.2$ sqlplus test1/test1
SQL*Plus: Release 10.2.0.4.0 - Production on Fri May 7 15:17:51 2010
Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.

Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL&gt; create table testtab (col1 varchar2(100), col2 clob);
Table created.

SQL&gt; insert into testtab values ('x','clob text');
1 row created.

SQL&gt; commit;
Commit complete.

SQL&gt; exit</pre>
<h3>Export the schema for migration</h3>
<pre>-bash-3.2$ exp system/manager file=test1.dmp log=test1.log owner=test1 consistent=y buffer=100000

Export: Release 10.2.0.4.0 - Production on Fri May 7 15:18:34 2010

Copyright (c) 1982, 2007, Oracle.  All rights reserved.

Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Export done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
server uses WE8ISO8859P1 character set (possible charset conversion)

About to export specified users ...
. exporting pre-schema procedural objects and actions
. exporting foreign function library names for user TEST1
. exporting PUBLIC type synonyms
. exporting private type synonyms
. exporting object type definitions for user TEST1
About to export TEST1's objects ...
. exporting database links
. exporting sequence numbers
. exporting cluster definitions
. about to export TEST1's tables via Conventional Path ...
. . exporting table                        TESTTAB          1 rows exported
. exporting synonyms
. exporting views
. exporting stored procedures
. exporting operators
. exporting referential integrity constraints
. exporting triggers
. exporting indextypes
. exporting bitmap, functional and extensible indexes
. exporting posttables actions
. exporting materialized views
. exporting snapshot logs
. exporting job queues
. exporting refresh groups and children
. exporting dimensions
. exporting post-schema procedural objects and actions
. exporting statistics
Export terminated successfully without warnings.</pre>
<h2>Migrate to 11g R2</h2>
<h3>Create tablespace and user</h3>
<p><strong>NOTE: Instead of creating the same user and same tablespace we ALTER username and tablespace name. If you do not alter username and tablespace name you will not hit this bug.</strong></p>
<pre>-bash-3.2$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Fri May 7 15:20:50 2010

Copyright (c) 1982, 2009, Oracle.  All rights reserved.

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL&gt; create tablespace testneu datafile '/u01/oradata/ORA11R2P/testneu.dbf' size 100M;

Tablespace created.

SQL&gt;create user testneu identified by testneu default tablespace testneu quota unlimited on testneu;
User created.

SQL&gt;grant create session to testneu;
Grant succeeded.

SQL&gt;grant create table to testneu;
Grant succeeded.

SQL&gt; SQL&gt; exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options</pre>
<h3>Import the data</h3>
<pre>bash-3.2$ imp system/manager file=test1.dmp fromuser=test1 touser=testneu

Import: Release 11.2.0.1.0 - Production on Fri May 7 15:27:44 2010

Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

Export file created by EXPORT:V10.02.01 via conventional path
import done in WE8MSWIN1252 character set and UTF8 NCHAR character set
export server uses AL16UTF16 NCHAR character set (possible ncharset conversion)
. importing TEST1's objects into TESTNEU
IMP-00017: following statement failed with ORACLE error 959:
"CREATE TABLE "TESTTAB" ("COL1" VARCHAR2(100), "COL2" CLOB)  PCTFREE 10 PCTU"
"SED 40 INITRANS 1 MAXTRANS 255 STORAGE(INITIAL 65536 FREELISTS 1 FREELIST G"
"ROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "TEST1" LOGGING NOCOMPRESS LOB ("CO"
"L2") STORE AS  (TABLESPACE "TEST1" ENABLE STORAGE IN ROW CHUNK 8192 RETENTI"
"ON NOCACHE LOGGING  STORAGE(INITIAL 65536 FREELISTS 1 FREELIST GROUPS 1 BUF"
"FER_POOL DEFAULT))"
IMP-00003: ORACLE error 959 encountered
ORA-00959: tablespace 'TEST1' does not exist
Import terminated successfully with warnings.</pre>
<p>Well, this error is in import/export utilities since 9i. When importing tables containing lob columns into a database with different tablespace names import still tries to create the table in the same tablespace as in the source database. A workaround for this is to create the table prior doing the import and appending &#8220;ignore=y&#8221; to the import command. So lets do it:</p>
<h3>Importing the data by pre-creating the table and appending &#8220;ignore=y&#8221; to import command</h3>
<pre>-bash-3.2$ sqlplus testneu/testneu

SQL*Plus: Release 11.2.0.1.0 Production on Fri May 7 15:28:07 2010

Copyright (c) 1982, 2009, Oracle.  All rights reserved.

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL&gt; desc testtab;
ERROR:
ORA-04043: object testtab does not exist

SQL&gt; create table testtab (col1 varchar2(100), col2 clob);

Table created.

SQL&gt; exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options</pre>
<p>ssssssssssssssssss</p>
<pre>-bash-3.2$ imp system/manager file=test1.dmp fromuser=test1 touser=testneu ignore=y

Import: Release 11.2.0.1.0 - Production on Fri May 7 15:28:41 2010

Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

Export file created by EXPORT:V10.02.01 via conventional path
import done in WE8MSWIN1252 character set and UTF8 NCHAR character set
export server uses AL16UTF16 NCHAR character set (possible ncharset conversion)
. importing TEST1's objects into TESTNEU
IMP-00017: following statement failed with ORACLE error 959:
"CREATE TABLE "TESTTAB" ("COL1" VARCHAR2(100), "COL2" CLOB)  PCTFREE 10 PCTU"
"SED 40 INITRANS 1 MAXTRANS 255 STORAGE(INITIAL 65536 FREELISTS 1 FREELIST G"
"ROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "TEST1" LOGGING NOCOMPRESS LOB ("CO"
"L2") STORE AS  (TABLESPACE "TEST1" ENABLE STORAGE IN ROW CHUNK 8192 RETENTI"
"ON NOCACHE LOGGING  STORAGE(INITIAL 65536 FREELISTS 1 FREELIST GROUPS 1 BUF"
"FER_POOL DEFAULT))"
IMP-00003: ORACLE error 959 encountered
ORA-00959: tablespace 'TEST1' does not exist
Import terminated successfully with warnings.</pre>
<h3>Importing the data by pre-creating the table and appending &#8220;ignore=y&#8221; to import command and inserting at least ONE row prior the import</h3>
<pre>-bash-3.2$ sqlplus testneu/testneu

SQL*Plus: Release 11.2.0.1.0 Production on Fri May 7 15:29:53 2010

Copyright (c) 1982, 2009, Oracle.  All rights reserved.

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL&gt; select * from testtab;

no rows selected

SQL&gt; insert into testtab values ('x','xx');

1 row created.

SQL&gt; commit;

Commit complete.

SQL&gt; exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options</pre>
<pre>-bash-3.2$ imp system/manager file=test1.dmp fromuser=test1 touser=testneu ignore=y

Import: Release 11.2.0.1.0 - Production on Fri May 7 15:30:19 2010

Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

Export file created by EXPORT:V10.02.01 via conventional path
import done in WE8MSWIN1252 character set and UTF8 NCHAR character set
export server uses AL16UTF16 NCHAR character set (possible ncharset conversion)
. importing TEST1's objects into TESTNEU
. . importing table                      "TESTTAB"          1 rows imported
Import terminated successfully without warnings.</pre>
<h3>CAUSE: DEFERRED SEGMENT CREATION</h3>
<p>So lets turn if off&#8230;.</p>
<pre>-bash-3.2$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Fri May 7 15:30:43 2010

Copyright (c) 1982, 2009, Oracle.  All rights reserved.

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL&gt; drop user test1 cascade;
drop user test1 cascade
*
ERROR at line 1:
ORA-01918: user 'TEST1' does not exist

SQL&gt; drop user testneu cascade;

User dropped.

SQL&gt; show parameter deferred;

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
deferred_segment_creation            boolean     TRUE
SQL&gt; alter system set deferred_segment_creation=false;

System altered.

SQL&gt; create user testneu identified by testneu default tablespace testneu quota unlimited on testneu;
grant create session to testneu;
grant create table to testneu;

User created.

SQL&gt;
Grant succeeded.

SQL&gt;
Grant succeeded.

SQL&gt;
SQL&gt; exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options</pre>
<h3>And do the import once again (without pre-creating the table)</h3>
<pre>-bash-3.2$ imp system/manager file=test1.dmp fromuser=test1 touser=testneu

Import: Release 11.2.0.1.0 - Production on Fri May 7 15:31:41 2010

Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

Export file created by EXPORT:V10.02.01 via conventional path
import done in WE8MSWIN1252 character set and UTF8 NCHAR character set
export server uses AL16UTF16 NCHAR character set (possible ncharset conversion)
. importing TEST1's objects into TESTNEU
IMP-00017: following statement failed with ORACLE error 959:
"CREATE TABLE "TESTTAB" ("COL1" VARCHAR2(100), "COL2" CLOB)  PCTFREE 10 PCTU"
"SED 40 INITRANS 1 MAXTRANS 255 STORAGE(INITIAL 65536 FREELISTS 1 FREELIST G"
"ROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "TEST1" LOGGING NOCOMPRESS LOB ("CO"
"L2") STORE AS  (TABLESPACE "TEST1" ENABLE STORAGE IN ROW CHUNK 8192 RETENTI"
"ON NOCACHE LOGGING  STORAGE(INITIAL 65536 FREELISTS 1 FREELIST GROUPS 1 BUF"
"FER_POOL DEFAULT))"
IMP-00003: ORACLE error 959 encountered
ORA-00959: tablespace 'TEST1' does not exist
Import terminated successfully with warnings.</pre>
<p>&#8211;&gt; not working,ok</p>
<h3>And do the import once again (WITH pre-creating the table)</h3>
<pre>-bash-3.2$ sqlplus testneu/testneu
SQL*Plus: Release 11.2.0.1.0 Production on Fri May 7 15:32:05 2010
Copyright (c) 1982, 2009, Oracle.  All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL&gt; desc testtab;
ERROR:
ORA-04043: object testtab does not exist
SQL&gt; create table testtab (col1 varchar2(100), col2 clob);
Table created.
SQL&gt; exit</pre>
<pre>-bash-3.2$ imp system/manager file=test1.dmp fromuser=test1 touser=testneu ignore=y
Import: Release 11.2.0.1.0 - Production on Fri May 7 15:32:44 2010
Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Export file created by EXPORT:V10.02.01 via conventional path
import done in WE8MSWIN1252 character set and UTF8 NCHAR character set
export server uses AL16UTF16 NCHAR character set (possible ncharset conversion)
. importing TEST1's objects into TESTNEU
. . importing table                      "TESTTAB"          1 rows imported
Import terminated successfully without warnings.</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.ronnyegner-consulting.de/2010/05/07/oracle-11g-r2-deferred-segment-creation-imp-lob-bug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ASM Volumes on thin-provisioned SAN dirtying all blocks?</title>
		<link>http://blog.ronnyegner-consulting.de/2010/05/04/asm-volumes-on-thin-provisioned-san-dirtying-all-blocks/</link>
		<comments>http://blog.ronnyegner-consulting.de/2010/05/04/asm-volumes-on-thin-provisioned-san-dirtying-all-blocks/#comments</comments>
		<pubDate>Tue, 04 May 2010 06:49:23 +0000</pubDate>
		<dc:creator>Ronny Egner</dc:creator>
				<category><![CDATA[Oracle in general]]></category>

		<guid isPermaLink="false">http://blog.ronnyegner-consulting.de/?p=2073</guid>
		<description><![CDATA[Some time ago i´ve seen a discussion on OTN about ASM and thin provisioned volumes. Hi there, sorry for the x-post from database-general but it was suggested that I do so. Anyhow, we've got 11g (11.1.0.7 with the 6851110 ASM patch recently applied) running on OEL 5 x86_64, with ASM connected to a raw, thin-provisioned [...]]]></description>
			<content:encoded><![CDATA[<p>Some time ago i´ve seen a discussion on <a href="http://forums.oracle.com/forums/thread.jspa?messageID=4273358&amp;#4273358" target="_blank">OTN about ASM and thin provisioned volumes.</a></p>
<pre>Hi there, sorry for the x-post from database-general but it was suggested that I do so.
Anyhow, we've got 11g (11.1.0.7 with the 6851110 ASM patch recently applied) running on
OEL 5 x86_64, with ASM connected to a raw, thin-provisioned ISCSI volume partitioned for
+DATA and +FRA, and in every case where we do so, the SAN device reports within a few
weeks that the whole volume has been allocated even though the DB (configured with
autoextend on) is only holding about one tenth of the amount of available space on the
device. What this means in systems terms is that somehow ASM is marking writes to nearly
every block on the drive if only momentarily.</pre>
<pre>In the original thread, there was speculation that a process of indexing AUs has led to
the dirtying of the whole volume, but this would make more sense if the whole disk had been
allocated immediately rather than over the course of a few weeks. My question is: what else
could account for this behavior, and what steps can I take to help ensure that ASM behaves
correctly in a thin-provisioned volume? (by "correctly" I mean writes contiguous blocks of
data and doesn't dirty the whole thing)</pre>
<p>Yesterday i had some spare time available to dig a little bit deeper. I had a Windows-based system at hand and performed some smaller tests.</p>
<p><span id="more-2073"></span>As storage i used an Opensolaris with ZFS thin provisioning. On database and asm site i used a 11g R2 database with 11g R2 ASM running on Windows. I created two LUNs and exported them via iSCSI. On the ASM side i formed a disk group with external redundancy and created one bigfile tablespace and put a tablespace with approx 15 GB total size in it.</p>
<p>After disk group and tablespace creation the storage systems shows the LUNs as follows:</p>
<pre><code>NAME                       PROPERTY       VALUE    SOURCE
pool1/iscsi-racwin-temp05  volsize        15G      local
pool1/iscsi-racwin-temp05  usedbydataset  7.45G    -
pool1/iscsi-racwin-temp06  volsize        15G      local
pool1/iscsi-racwin-temp06  usedbydataset  7.45G    -
</code></pre>
<p>The total reported size (&#8220;volsize&#8221;) is 15 GB while 7.45 GB are currently used (&#8220;usedbydataset&#8221;). Thats the expected result of creating a tablespace with 15 gb size in the disk group.</p>
<p>During the past day and night i ran a simple test script which imported a schema (approx 12 gb total size) and dropped it afterwards intinitely.</p>
<p>After running for more than 24 hours the thin provisioned disks look like this:</p>
<pre><code>NAME                       PROPERTY       VALUE    SOURCE
pool1/iscsi-racwin-temp05  volsize        15G      local
pool1/iscsi-racwin-temp05  usedbydataset  7.47G    -
pool1/iscsi-racwin-temp06  volsize        15G      local
pool1/iscsi-racwin-temp06  usedbydataset  7.47G    -
</code></pre>
<p>As you can see there is a extremely small growth in size (from 7.45 GB to 7.47 GB). I observed this growth shortly after starting the very first import. Subsequent imports did not increased the actual allocated volume size.</p>
<p>At this point of my investigation i cannot conclude the posters claim but i admit i changed several aspects of this test case. If we exclude the storage as a source for this behavior there might be the fact that ASM behaves different in 11g R2 and 11g R1. Even the patch applied by the poster and the different operating systems might change the behavior.</p>
<p>If i have again some amount of time  i will try to reproduce the posters environment en detail&#8230;.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ronnyegner-consulting.de/2010/05/04/asm-volumes-on-thin-provisioned-san-dirtying-all-blocks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>11g Release 2 for Windows – Single Database Installation Guide</title>
		<link>http://blog.ronnyegner-consulting.de/2010/04/21/11g-release-2-for-windows-%e2%80%93-single-database-installation-guide/</link>
		<comments>http://blog.ronnyegner-consulting.de/2010/04/21/11g-release-2-for-windows-%e2%80%93-single-database-installation-guide/#comments</comments>
		<pubDate>Wed, 21 Apr 2010 05:00:30 +0000</pubDate>
		<dc:creator>Ronny Egner</dc:creator>
				<category><![CDATA[Oracle in general]]></category>

		<guid isPermaLink="false">http://blog.ronnyegner-consulting.de/?p=2051</guid>
		<description><![CDATA[The following illustrates the installation of Oracle 11g Release 2 database on Windows. Installation is quite straight forward. Before installing the database you can optionally install grid infrastructure which offers some nice feature &#8211; for instance Oracle Restart and ASM. The install guide for grid infrastructure can be found here. After installation succeeded you can [...]]]></description>
			<content:encoded><![CDATA[<p>The following illustrates the installation of Oracle 11g Release 2 database on Windows. Installation is quite straight forward.</p>
<p>Before installing the database you can optionally install grid infrastructure which offers some nice feature &#8211; for instance Oracle Restart and ASM. The install guide for grid infrastructure can be found <a href="http://blog.ronnyegner-consulting.de/2010/04/20/11g-release-2-for-windows-%e2%80%93-grid-infrastructure-installation-for-single-databases/" target="_blank">here</a>.</p>
<p><span id="more-2051"></span></p>
<p><a href="http://blog.ronnyegner-consulting.de/wp-content/uploads/11gr2_win_single_db01.png"><img class="alignnone size-full wp-image-2025" title="11gr2_win_single_db01" src="http://blog.ronnyegner-consulting.de/wp-content/uploads/11gr2_win_single_db01.png" alt="" width="801" height="598" /></a></p>
<p><a href="http://blog.ronnyegner-consulting.de/wp-content/uploads/11gr2_win_single_db02.png"><img class="alignnone size-full wp-image-2026" title="11gr2_win_single_db02" src="http://blog.ronnyegner-consulting.de/wp-content/uploads/11gr2_win_single_db02.png" alt="" width="798" height="597" /></a></p>
<p><a href="http://blog.ronnyegner-consulting.de/wp-content/uploads/11gr2_win_single_db03.png"><img class="alignnone size-full wp-image-2027" title="11gr2_win_single_db03" src="http://blog.ronnyegner-consulting.de/wp-content/uploads/11gr2_win_single_db03.png" alt="" width="795" height="600" /></a></p>
<p><a href="http://blog.ronnyegner-consulting.de/wp-content/uploads/11gr2_win_single_db04.png"><img class="alignnone size-full wp-image-2028" title="11gr2_win_single_db04" src="http://blog.ronnyegner-consulting.de/wp-content/uploads/11gr2_win_single_db04.png" alt="" width="800" height="599" /></a></p>
<p><a href="http://blog.ronnyegner-consulting.de/wp-content/uploads/11gr2_win_single_db05.png"><img class="alignnone size-full wp-image-2029" title="11gr2_win_single_db05" src="http://blog.ronnyegner-consulting.de/wp-content/uploads/11gr2_win_single_db05.png" alt="" width="797" height="600" /></a></p>
<p><a href="http://blog.ronnyegner-consulting.de/wp-content/uploads/11gr2_win_single_db07.png"><img class="alignnone size-full wp-image-2031" title="11gr2_win_single_db07" src="http://blog.ronnyegner-consulting.de/wp-content/uploads/11gr2_win_single_db07.png" alt="" width="798" height="599" /></a></p>
<p><a href="http://blog.ronnyegner-consulting.de/wp-content/uploads/11gr2_win_single_db08.png"><img class="alignnone size-full wp-image-2032" title="11gr2_win_single_db08" src="http://blog.ronnyegner-consulting.de/wp-content/uploads/11gr2_win_single_db08.png" alt="" width="800" height="596" /></a></p>
<p><a href="http://blog.ronnyegner-consulting.de/wp-content/uploads/11gr2_win_single_db09.png"><img class="alignnone size-full wp-image-2033" title="11gr2_win_single_db09" src="http://blog.ronnyegner-consulting.de/wp-content/uploads/11gr2_win_single_db09.png" alt="" width="795" height="594" /></a></p>
<p><a href="http://blog.ronnyegner-consulting.de/wp-content/uploads/11gr2_win_single_db10.png"><img class="alignnone size-full wp-image-2034" title="11gr2_win_single_db10" src="http://blog.ronnyegner-consulting.de/wp-content/uploads/11gr2_win_single_db10.png" alt="" width="799" height="597" /></a></p>
<p><a href="http://blog.ronnyegner-consulting.de/wp-content/uploads/11gr2_win_single_db11.png"><img class="alignnone size-full wp-image-2035" title="11gr2_win_single_db11" src="http://blog.ronnyegner-consulting.de/wp-content/uploads/11gr2_win_single_db11.png" alt="" width="797" height="596" /></a></p>
<p>After installation succeeded you can continue to configure a Listener and create a database. Database creation steps are outlined <a href="http://blog.ronnyegner-consulting.de/?p=116" target="_blank">here</a> (the guide itself is for Linux but Windows steps do not differ).</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ronnyegner-consulting.de/2010/04/21/11g-release-2-for-windows-%e2%80%93-single-database-installation-guide/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>11g Release 2 for Windows – Grid Infrastructure Installation for Single Databases</title>
		<link>http://blog.ronnyegner-consulting.de/2010/04/20/11g-release-2-for-windows-%e2%80%93-grid-infrastructure-installation-for-single-databases/</link>
		<comments>http://blog.ronnyegner-consulting.de/2010/04/20/11g-release-2-for-windows-%e2%80%93-grid-infrastructure-installation-for-single-databases/#comments</comments>
		<pubDate>Tue, 20 Apr 2010 08:01:44 +0000</pubDate>
		<dc:creator>Ronny Egner</dc:creator>
				<category><![CDATA[Oracle in general]]></category>

		<guid isPermaLink="false">http://blog.ronnyegner-consulting.de/?p=2047</guid>
		<description><![CDATA[The following pictures show the grid infrastructure installation of Oracle 11g Release 2 for Windows. This is a rather short posting without much text because the pictures are quite self-explaining. Requirements Windows Note there is no grid infrastructure or ASM for 32-bit Windows! According to the documentation the following Windows versions are certified for Oracle [...]]]></description>
			<content:encoded><![CDATA[<p>The following pictures show the grid infrastructure installation of Oracle 11g Release 2 for Windows. This is a rather short posting without much text because the pictures are quite self-explaining.</p>
<h2>Requirements</h2>
<h3>Windows</h3>
<p><strong>Note there is no grid infrastructure or ASM for 32-bit Windows! </strong></p>
<p>According to the documentation the following Windows versions are certified for Oracle 11g Release 2:</p>
<ul>
<li>Windows Server 2003 x64 with service pack 1 or higher.</li>
<li>Windows Server 2003 R2 x64</li>
<li>Windows Server 2008 x64 Standard, Enterprise, Datacenter, Web, and Foundation editions.</li>
<li>Windows Server 2008 R2 x64 Standard, Enterprise, Datacenter, Web, and Foundation editions</li>
</ul>
<p>Windows Core Editions are NOT supported!</p>
<h3><strong>Storage</strong></h3>
<p>For storing your database you can use the following storage options:</p>
<ul>
<li>plain file system (NTFS recommended or FAT)</li>
<li>ASM</li>
<li>Oracle NFS for Windows</li>
</ul>
<p>In this guide we are using ASM for storing our data files.</p>
<h2><strong><span id="more-2047"></span></strong><strong>Installation Slides<br />
</strong></h2>
<p><a href="http://blog.ronnyegner-consulting.de/wp-content/uploads/11gr2_win_single_grid01.png"><img class="alignnone size-full wp-image-2036" title="11gr2_win_single_grid01" src="http://blog.ronnyegner-consulting.de/wp-content/uploads/11gr2_win_single_grid01.png" alt="" width="797" height="600" /></a></p>
<p><a href="http://blog.ronnyegner-consulting.de/wp-content/uploads/11gr2_win_single_grid02.png"><img class="alignnone size-full wp-image-2037" title="11gr2_win_single_grid02" src="http://blog.ronnyegner-consulting.de/wp-content/uploads/11gr2_win_single_grid02.png" alt="" width="801" height="596" /></a></p>
<p><a href="http://blog.ronnyegner-consulting.de/wp-content/uploads/11gr2_win_single_grid03.png"><img class="alignnone size-full wp-image-2038" title="11gr2_win_single_grid03" src="http://blog.ronnyegner-consulting.de/wp-content/uploads/11gr2_win_single_grid03.png" alt="" width="800" height="599" /></a></p>
<p>If no ASM disk show up you most probably have to mark disks for ASM usage first as shown in the next two slides:</p>
<p><a href="http://blog.ronnyegner-consulting.de/wp-content/uploads/11gr2_win_single_grid04.png"><img class="alignnone size-full wp-image-2039" title="11gr2_win_single_grid04" src="http://blog.ronnyegner-consulting.de/wp-content/uploads/11gr2_win_single_grid04.png" alt="" width="800" height="598" /></a></p>
<p><a href="http://blog.ronnyegner-consulting.de/wp-content/uploads/11gr2_win_single_grid05.png"><img class="alignnone size-full wp-image-2040" title="11gr2_win_single_grid05" src="http://blog.ronnyegner-consulting.de/wp-content/uploads/11gr2_win_single_grid05.png" alt="" width="798" height="598" /></a></p>
<p><a href="http://blog.ronnyegner-consulting.de/wp-content/uploads/11gr2_win_single_grid06.png"><img class="alignnone size-full wp-image-2041" title="11gr2_win_single_grid06" src="http://blog.ronnyegner-consulting.de/wp-content/uploads/11gr2_win_single_grid06.png" alt="" width="801" height="599" /></a></p>
<p><a href="http://blog.ronnyegner-consulting.de/wp-content/uploads/11gr2_win_single_grid07.png"><img class="alignnone size-full wp-image-2042" title="11gr2_win_single_grid07" src="http://blog.ronnyegner-consulting.de/wp-content/uploads/11gr2_win_single_grid07.png" alt="" width="798" height="599" /></a></p>
<p><a href="http://blog.ronnyegner-consulting.de/wp-content/uploads/11gr2_win_single_grid08.png"><img class="alignnone size-full wp-image-2043" title="11gr2_win_single_grid08" src="http://blog.ronnyegner-consulting.de/wp-content/uploads/11gr2_win_single_grid08.png" alt="" width="799" height="598" /></a></p>
<p><a href="http://blog.ronnyegner-consulting.de/wp-content/uploads/11gr2_win_single_grid09.png"><img class="alignnone size-full wp-image-2044" title="11gr2_win_single_grid09" src="http://blog.ronnyegner-consulting.de/wp-content/uploads/11gr2_win_single_grid09.png" alt="" width="798" height="600" /></a></p>
<p><a href="http://blog.ronnyegner-consulting.de/wp-content/uploads/11gr2_win_single_grid10.png"><img class="alignnone size-full wp-image-2045" title="11gr2_win_single_grid10" src="http://blog.ronnyegner-consulting.de/wp-content/uploads/11gr2_win_single_grid10.png" alt="" width="800" height="599" /></a></p>
<p><a href="http://blog.ronnyegner-consulting.de/wp-content/uploads/11gr2_win_single_grid11.png"><img class="alignnone size-full wp-image-2046" title="11gr2_win_single_grid11" src="http://blog.ronnyegner-consulting.de/wp-content/uploads/11gr2_win_single_grid11.png" alt="" width="803" height="603" /></a></p>
<p><a href="http://blog.ronnyegner-consulting.de/wp-content/uploads/11gr2_win_single_grid12.png"><img class="alignnone size-full wp-image-2024" title="11gr2_win_single_grid12" src="http://blog.ronnyegner-consulting.de/wp-content/uploads/11gr2_win_single_grid12.png" alt="" width="802" height="596" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ronnyegner-consulting.de/2010/04/20/11g-release-2-for-windows-%e2%80%93-grid-infrastructure-installation-for-single-databases/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>11g Release 2 for Windows &#8211; Grid Infrastructure Installation Buggy?</title>
		<link>http://blog.ronnyegner-consulting.de/2010/04/17/11g-release-2-for-windows-buggy/</link>
		<comments>http://blog.ronnyegner-consulting.de/2010/04/17/11g-release-2-for-windows-buggy/#comments</comments>
		<pubDate>Sat, 17 Apr 2010 08:50:32 +0000</pubDate>
		<dc:creator>Ronny Egner</dc:creator>
				<category><![CDATA[Oracle in general]]></category>

		<guid isPermaLink="false">http://blog.ronnyegner-consulting.de/?p=1998</guid>
		<description><![CDATA[I just tried installing Oracle 11g Relese 2 on Windows 2008 R2 64-bit and Windows 2008. The system were installed with Windows 2008 and 2008 R2 standard edition 64-bit on a VMWARE server with 4 core with two core assigned to each virtual machine. Until now i was unable to install it successfully. It always [...]]]></description>
			<content:encoded><![CDATA[<p>I just tried installing Oracle 11g Relese 2 on Windows 2008 R2 64-bit and Windows 2008. The system were installed with Windows 2008 and 2008 R2 standard edition 64-bit on a VMWARE server with 4 core with two core assigned to each virtual machine.</p>
<p>Until now i was unable to install it successfully. It always failed with:</p>
<pre>[INS-20802] Grid Infrastructure Configuration failed</pre>
<p><a href="http://blog.ronnyegner-consulting.de/wp-content/uploads/11gr2win_error08.png"><img class="alignnone size-medium wp-image-2002" title="11gr2win_error08" src="http://blog.ronnyegner-consulting.de/wp-content/uploads/11gr2win_error08.png" alt="" width="802" height="603" /></a></p>
<p>This is a short blog post about my findinds. Maybe someone else experience this issue as well  and leaves a comment.</p>
<p><span id="more-1998"></span></p>
<p>After the installation ran for some time it failed on the second node. Some debugging and re-installation hours later i guess the grid installation is buggy at least on Windows 2008 and Windows 2008 R2. Hows that? Well: Look at the following pictures all taken from the SECOND node. The services on the first (= installation node) are fine and running. All log files look fine. On the second node i am completely unable to find any error messages in the log files. Everything looks fine&#8230; but the windows event log shows some failed services which are most probably causing the error.</p>
<p>During installation on the second node some services are created by the oracle installer. The first service to be created is names OracleOUIVC8Service which seems to install some kind of VC libraries:</p>
<p>Picture #1: Oracle seems to install some VC++ Runtime libraries during cluster installation. For doing so a service is created and then started. Starting this service shall install the VC runtime library.  But unfortunately the service seems to be unable to start within 30 seconds, causing the following error:</p>
<pre>Picture #1: A timeout was reached (30000 milliseconds) while waiting for
the OracleOUIVC8Service service to connect</pre>
<p><a href="http://blog.ronnyegner-consulting.de/wp-content/uploads/11gr2win_error01.png"><img class="alignnone size-medium wp-image-1992" title="11gr2win_error01" src="http://blog.ronnyegner-consulting.de/wp-content/uploads/11gr2win_error01.png" alt="" width="696" height="559" /></a></p>
<p><a href="http://blog.ronnyegner-consulting.de/wp-content/uploads/11gr2win_error02.png"><img class="alignnone size-medium wp-image-1993" title="11gr2win_error02" src="http://blog.ronnyegner-consulting.de/wp-content/uploads/11gr2win_error02.png" alt="" width="659" height="531" /></a></p>
<p>Picture #2: Note that ONE second after the OracleOUIVC8Service failed to start the windows installer entered the running state. What was installed then? The answer is in picture #3.</p>
<p><a href="http://blog.ronnyegner-consulting.de/wp-content/uploads/11gr2win_error03.png"><img class="alignnone size-medium wp-image-1994" title="11gr2win_error03" src="http://blog.ronnyegner-consulting.de/wp-content/uploads/11gr2win_error03.png" alt="" width="655" height="523" /></a></p>
<p>Picture #3: According to the windows installer the Microsoft Visual C++ 2005 Redistributable was installed. It took 3 seconds from the windows installer to enter the running start (= start of the installation at 07:27:24 show in the picture above) to the end of the installation which was successful. This is shown in the following pictures:</p>
<p><a href="http://blog.ronnyegner-consulting.de/wp-content/uploads/11gr2win_error07.png"><img class="alignnone size-medium wp-image-1991" title="11gr2win_error07" src="http://blog.ronnyegner-consulting.de/wp-content/uploads/11gr2win_error07.png" alt="" width="655" height="526" /></a></p>
<p><a href="http://blog.ronnyegner-consulting.de/wp-content/uploads/11gr2win_error06.png"><img class="alignnone size-medium wp-image-1997" title="11gr2win_error06" src="http://blog.ronnyegner-consulting.de/wp-content/uploads/11gr2win_error06.png" alt="" width="658" height="531" /></a></p>
<p>Picture #4 shows the failing installation service for the grid infrastructure home and/or configuration which fails with:</p>
<pre>A timeout was reached (30000 milliseconds) while waiting for the OracleOUIOraCrs11g_home1Service service to connect</pre>
<p>This does not surprise me at all. If there are some libraries missing the installer will most probably fail. But i guess the point is here that the service are created in a incorrect way. I DO see the java.exe from the installer in the process list &#8211; but only AFTER the start of the service failed&#8230;.</p>
<p><a href="http://blog.ronnyegner-consulting.de/wp-content/uploads/11gr2win_error04.png"><img class="alignnone size-medium wp-image-1995" title="11gr2win_error04" src="http://blog.ronnyegner-consulting.de/wp-content/uploads/11gr2win_error04.png" alt="" width="660" height="524" /></a></p>
<p><a href="http://blog.ronnyegner-consulting.de/wp-content/uploads/11gr2win_error05.png"><img class="alignnone size-medium wp-image-1996" title="11gr2win_error05" src="http://blog.ronnyegner-consulting.de/wp-content/uploads/11gr2win_error05.png" alt="" width="661" height="534" /></a></p>
<p>For debugging i tried several thing:</p>
<ul>
<li>Install on Windows 2008 R2 64-bit</li>
<li>Install on Windows 2008 64-bit</li>
<li>Pre-Install the VC Runtime</li>
<li>Increase the allowed time to start for a service to 180 seconds</li>
</ul>
<h2>Increasing the service start timeout value</h2>
<p>Trying to increase the maximum allowed time for a service to start from 30 to 180 seconds didn&#8217;t even help. The node itself was completely idle during the service start. But the VC installation started RIGHT AFTER the service start time out after 180 seconds and was completed within 4 seconds. This makes me believe in some kind of error. And so i decided to blog about this problem because i have not yet found anything on the web.</p>
<p>In the following picture you can see the service OracleOUIVC8Service trying to start.</p>
<p>The command line being used for that was:</p>
<pre>D:\Temp\2\OraInstall2010-04-17_02-20-52AM\ext\bin\vcredist_x64.exe
/q:a /c:"VCREDI~1.EXE /q:a /c:""msiexec /i vcredist.msi  /qn"" "</pre>
<p>As you can see the system was completely idle during service startup with plenty of free memory.</p>
<p><a href="http://blog.ronnyegner-consulting.de/wp-content/uploads/11gr2win_error10.png"><img class="alignnone size-full wp-image-2017" title="11gr2win_error10" src="http://blog.ronnyegner-consulting.de/wp-content/uploads/11gr2win_error10.png" alt="" width="950" height="515" /></a></p>
<p>An except from the windows event log shows the service failed to start after 180 seconds (the value specified in milliseconds was increased by adding ServicesPipeTimeout to HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control; so 180000 means 180 seconds):</p>
<p><a href="http://blog.ronnyegner-consulting.de/wp-content/uploads/11gr2win_error11.png"><img class="alignnone size-full wp-image-2018" title="11gr2win_error11" src="http://blog.ronnyegner-consulting.de/wp-content/uploads/11gr2win_error11.png" alt="" width="697" height="554" /></a></p>
<p>Right after the service failed to start the windows installer entered the running state and installed the VC redistributable:</p>
<p><a href="http://blog.ronnyegner-consulting.de/wp-content/uploads/11gr2win_error12.png"><img class="alignnone size-full wp-image-2019" title="11gr2win_error12" src="http://blog.ronnyegner-consulting.de/wp-content/uploads/11gr2win_error12.png" alt="" width="691" height="553" /></a></p>
<p><a href="http://blog.ronnyegner-consulting.de/wp-content/uploads/11gr2win_error13.png"><img class="alignnone size-full wp-image-2016" title="11gr2win_error13" src="http://blog.ronnyegner-consulting.de/wp-content/uploads/11gr2win_error13.png" alt="" width="700" height="552" /></a></p>
<p>So this also leads me to the assumtion there is some bug in the grid infrastructure installer.</p>
<p>Another possibility is that this error is caused by using VMWARE virtualization. But at the moment i dont have a reason to think so.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ronnyegner-consulting.de/2010/04/17/11g-release-2-for-windows-buggy/feed/</wfw:commentRss>
		<slash:comments>25</slash:comments>
		</item>
		<item>
		<title>Using EMC (formerly Legato) Networker with Opensolaris</title>
		<link>http://blog.ronnyegner-consulting.de/2010/04/16/using-emc-formerly-legato-networker-with-opensolaris/</link>
		<comments>http://blog.ronnyegner-consulting.de/2010/04/16/using-emc-formerly-legato-networker-with-opensolaris/#comments</comments>
		<pubDate>Fri, 16 Apr 2010 06:16:13 +0000</pubDate>
		<dc:creator>Ronny Egner</dc:creator>
				<category><![CDATA[Oracle in general]]></category>

		<guid isPermaLink="false">http://blog.ronnyegner-consulting.de/?p=1932</guid>
		<description><![CDATA[I have written an guest article (direct link) for Preston de Guises fine blog on how to use networker client on opensolaris.]]></description>
			<content:encoded><![CDATA[<p>I have written an guest article (<a href="http://nsrd.info/blog/2010/04/16/using-networker-client-with-opensolaris/" target="_blank">direct link</a>) for Preston de Guises fine <a href="http://nsrd.info/blog/">blog</a> on how to use networker client on opensolaris.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ronnyegner-consulting.de/2010/04/16/using-emc-formerly-legato-networker-with-opensolaris/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	<img style='margin:0;padding:0;border:0;' width='1px' height='1px' src="http://blog.ronnyegner-consulting.de/wp-content/plugins/mystat/mystat.php?act=time_load&id=166067&rnd=1301913053" /></channel>
</rss>
