<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>My confrontations with oracle</title>
	<atom:link href="http://boomslaang.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://boomslaang.wordpress.com</link>
	<description>Might come in handy... plz do comment, for they inspires me!!</description>
	<lastBuildDate>Fri, 06 Nov 2009 06:31:15 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='boomslaang.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/1d1c8dd4fe7f3888f80177d56dada1a0?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>My confrontations with oracle</title>
		<link>http://boomslaang.wordpress.com</link>
	</image>
			<item>
		<title>CRS-0223: Resource has placement error while using SRVCTL</title>
		<link>http://boomslaang.wordpress.com/2009/11/06/crs-0223-resource-has-placement-error-while-using-srvctl/</link>
		<comments>http://boomslaang.wordpress.com/2009/11/06/crs-0223-resource-has-placement-error-while-using-srvctl/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 06:31:15 +0000</pubDate>
		<dc:creator>John Jacob</dc:creator>
				<category><![CDATA[rac]]></category>
		<category><![CDATA[CRS-0223]]></category>
		<category><![CDATA[CRS-0223: Resource has placement error.]]></category>
		<category><![CDATA[CRS-1028]]></category>
		<category><![CDATA[PRKP-1001]]></category>
		<category><![CDATA[srvctl cannot start db instance]]></category>

		<guid isPermaLink="false">http://boomslaang.wordpress.com/?p=217</guid>
		<description><![CDATA[Few days back in the early wee hours, one of my RAC node db instance crashed.
Env: 10.2.0.4 RAC on Solaris 5.10 SPARC
alert.log said:
:
Errors in file /u01/app/oracle/admin/SHCL1/bdump/shcl1n02_j004_27414.trc:
ORA-07445: exception encountered: core dump [kglobcl()+412] [SIGSEGV] [Address not mapped to object] [0x49415C002] [] []
Tue Nov  3 00:00:27 2009
Trace dumping is performing id=[cdmp_20091103000027]
Tue Nov  3 00:00:37 2009
Errors in file /u01/app/oracle/admin/SHCL1/bdump/shcl1n02_pmon_3278.trc:
ORA-07445: [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=boomslaang.wordpress.com&blog=2073764&post=217&subd=boomslaang&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Few days back in the early wee hours, one of my RAC node db instance crashed.<br />
Env: 10.2.0.4 RAC on Solaris 5.10 SPARC<br />
alert.log said:</p>
<pre><span style="color:#003366;">:
Errors in file /u01/app/oracle/admin/SHCL1/bdump/shcl1n02_j004_27414.trc:
ORA-07445: exception encountered: core dump [kglobcl()+412] [SIGSEGV] [Address not mapped to object] [0x49415C002] [] []
Tue Nov  3 00:00:27 2009
Trace dumping is performing id=[cdmp_20091103000027]
Tue Nov  3 00:00:37 2009
Errors in file /u01/app/oracle/admin/SHCL1/bdump/shcl1n02_pmon_3278.trc:
ORA-07445: [kglobcl()+412] [SIGSEGV] [Address not mapped to object] [0x49415C002] [] []
Tue Nov  3 00:00:51 2009
:
:
Tue Nov  3 00:00:54 2009
MMAN: terminating instance due to error 472
Instance terminated by MMAN, pid = 3368
Wed Nov  4 10:44:47 2009
:</span></pre>
<p>I checked</p>
<p><strong>$ crsctl check crs</strong><br />
<span style="color:#003366;">OK (running successfully)</span><br />
<strong>$ srvctl status nodeapps -n myjpsuolicdbd02</strong><br />
<span style="color:#003366;">OK (all resources running successfully)</span><br />
<strong>$ srvctl status database -d SHCL1_PRMY</strong><br />
<span style="color:#ff0000;">Instance SHCL1N01 is running on node myjpsuolicdbd01<br />
PRKO-2015 : Error in checking condition of instance on node: myjpsuolicdbd02</span><br />
$</p>
<p>Since only instance 2 was down, i tried to start it and i got the below error.</p>
<p>$<strong> srvctl start instance -d SHCL1_PRMY -i SHCL1N02</strong><br />
<span style="color:#ff0000;">PRKP-1001 : Error starting instance SHCL1N02 on node myjpsuolicdbd02<br />
CRS-1028: Dependency analysis failed because of:<br />
CRS-0223: Resource &#8216;ora.SHCL1_prmy.SHCL1N02.inst&#8217; has placement error.</span><br />
$</p>
<p>The crsd.log file too didn&#8217;t have much(to the point) information.</p>
<pre><span style="color:#003366;">2009-11-04 10:18:30.627: [  CRSRES][2970821] CRS-1028: Dependency analysis failed because of:'Resource in UNKNOWN state: ora.SHCL1_prmy.SHCL1N02.inst'

2009-11-04 10:21:23.269: [  CRSRES][2970843] StopResource: setting CLI values
2009-11-04 10:21:23.340: [  CRSRES][2970843] Attempting to stop `ora.SHCL1_prmy.SHCL1N02.inst` on member `myjpsuolicdbd02`
2009-11-04 10:21:30.478: [  CRSAPP][2970843] StopResource error for ora.SHCL1_prmy.SHCL1N02.inst error code = 1
2009-11-04 10:21:30.502: [  CRSRES][2970843] Stop of `ora.SHCL1_prmy.SHCL1N02.inst` on member `myjpsuolicdbd02` succeeded.
2009-11-04 10:21:49.867: [  CRSRES][2970861] startRunnable: setting CLI values
2009-11-04 10:21:49.895: [  CRSRES][2970861] Attempting to start `ora.SHCL1_prmy.SHCL1N02.inst` on member `myjpsuolicdbd02`
2009-11-04 10:21:55.019: [  CRSAPP][2970861] StartResource error for ora.SHCL1_prmy.SHCL1N02.inst error code = 1
2009-11-04 10:22:00.583: [  CRSAPP][2970861] StopResource error for ora.SHCL1_prmy.SHCL1N02.inst error code = 1
2009-11-04 10:22:00.592: [  CRSRES][2970861] X_OP_StopResourceFailed : Stop Resource failed
(File: rti.cpp, line: 1803

2009-11-04 10:22:00.593: [  CRSRES][2970861][ALERT] `ora.SHCL1_prmy.SHCL1N02.inst` on member `myjpsuolicdbd02` has experienced an unrecoverable failure.
2009-11-04 10:22:00.593: [  CRSRES][2970861] Human intervention required to resume its availability.</span></pre>
<p>Clusterware and nodeapps were up and running but db instance on node 2.</p>
<p>I could startup the instance from sqlplus, but this would not start the db services etc ora.SHCL1_prmy.SHCL1N02.inst was not ONLINE and would be of no use in a RAC.<br />
Didn&#8217;t have any clue, until I came across the logs under <strong><span style="color:#003366;">/u01/app/oracle/product/10.2.0/db_1/log/&lt;hostname&gt;/racg/imonSHCL1_prmy.log </span></strong>and <span style="color:#003366;"><strong>imon_SHCL1_prmy.log</strong></span>.</p>
<p>The files imonSHCL1_prmy.log and imon_SHCL1_prmy.log contains details of the starting up of the DB using SRVCTL command.</p>
<pre><span style="color:#003366;">SQL*Plus: Release 10.2.0.4.0 - Production on Wed Nov 4 18:59:48 2009
Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.

Enter user-name: ERROR:
ORA-01031: insufficient privileges

Enter user-name: SP2-0306: Invalid option.

2009-11-04 18:59:48.968: [    RACG][176] [28813][176][ora.SHCL1_prmy.SHCL1N02.inst]: Usage: CONN[ECT] [logon] [AS {SYSDBA|SYSOPER}]
where &lt;logon&gt;  ::= &lt;username&gt;[/&lt;password&gt;][@&lt;connect_identifier&gt;] | /
Enter user-name: Enter password:
ERROR:
ORA-01005: null password given; logon denied

2009-11-04 18:59:48.968: [    RACG][176] [28813][176][ora.SHCL1_prmy.SHCL1N02.inst]: SP2-0157: unable to CONNECT to ORACLE after 3 attempts, exiting SQL*Plus
2009-11-04 18:59:48.968: [    RACG][176] [28813][176][ora.SHCL1_prmy.SHCL1N02.inst]: clsrcexecut: env _USR_ORA_PFILE=
2009-11-04 18:59:48.968: [    RACG][176] [28813][176][ora.SHCL1_prmy.SHCL1N02.inst]: clsrcexecut: cmd = /u01/app/oracle/product/10.2.0/db_1/bin/racgeut -e _USR_ORA_DEBUG=0 -e ORACLE_SID=SHCL1N02 520 /u01/app/oracle/product/10.2.0/db_1/bin/racgmdb -d abort</span></pre>
<p>Due to security concern, recently i added &#8220;<strong><span style="color:#003366;"> SQLNET.AUTHENTICATION_SERVICES=(NONE) </span></strong>&#8221; to <span style="color:#003366;"><strong>sqlnet.ora</strong> </span>and this line would insist on providing the password explicitly. It doesn&#8217;t allow to login using &#8220;sqlplus / as sysdba&#8221;. Hence the SRVCTL failed.</p>
<p>So,</p>
<p>After removing this line from sqlnet.ora, i could start the instance.</p>
<p>1)Commented the entry in sqlnet.ora<br />
2)crs_stop -f ora.SHCL1_prmy.SHCL1N02.inst<br />
3)crs_stat -u =&gt; to confirm that the TARGET and STATE are OFFLINE for ora.SHCL1_prmy.SHCL1N02.inst<br />
4)srvctl start instance -d SHCL1_PRMY -i SHCL1N02<br />
Raised an SR for the ORA 7445 error and let me see what they have in stock for me.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/boomslaang.wordpress.com/217/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/boomslaang.wordpress.com/217/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/boomslaang.wordpress.com/217/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/boomslaang.wordpress.com/217/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/boomslaang.wordpress.com/217/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/boomslaang.wordpress.com/217/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/boomslaang.wordpress.com/217/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/boomslaang.wordpress.com/217/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/boomslaang.wordpress.com/217/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/boomslaang.wordpress.com/217/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=boomslaang.wordpress.com&blog=2073764&post=217&subd=boomslaang&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://boomslaang.wordpress.com/2009/11/06/crs-0223-resource-has-placement-error-while-using-srvctl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/07bdd99e922bd683bf6508a0f9ad08dc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">J..J</media:title>
		</media:content>
	</item>
		<item>
		<title>Configure heterogeneous connection from Oracle DB to PostgreSQL DB</title>
		<link>http://boomslaang.wordpress.com/2009/10/06/configure_heterogeneous_connection_from_oracle_db_to_postgresql_db/</link>
		<comments>http://boomslaang.wordpress.com/2009/10/06/configure_heterogeneous_connection_from_oracle_db_to_postgresql_db/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 10:51:25 +0000</pubDate>
		<dc:creator>John Jacob</dc:creator>
				<category><![CDATA[oracle]]></category>
		<category><![CDATA[HSODBC]]></category>
		<category><![CDATA[Oracle heterogeneous connection]]></category>
		<category><![CDATA[Oracle to PostgreSQL]]></category>
		<category><![CDATA[psqlODBC]]></category>

		<guid isPermaLink="false">http://boomslaang.wordpress.com/?p=210</guid>
		<description><![CDATA[An organisation have lot of choices to choose from the RDBMS world.Oracle Database, Microsoft SQL Server, IBM DB2,PostgreSQL, MySQL are few of them. Most of the organisations out there do have a mix of all these which are used to store their data and in course of time it is inevitable that they would want [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=boomslaang.wordpress.com&blog=2073764&post=210&subd=boomslaang&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>An organisation have lot of choices to choose from the RDBMS world.Oracle Database, Microsoft SQL Server, IBM DB2,PostgreSQL, MySQL are few of them. Most of the organisations out there do have a mix of all these which are used to store their data and in course of time it is inevitable that they would want to transfer data from &#8216;this database&#8217; to &#8216;that database&#8217;. Oracle, the uncrowned king of this RDBMS world call this &#8220;Heterogeneous Connectivity&#8221; and have incorporated this facility into their database and this is installed by default.</p>
<p>Oracle documentation says:<br />
http://download.oracle.com/docs/cd/B19306_01/server.102/b14232/tgvsgc.htm#sthref36</p>
<p>The Heterogeneous Services component in the Oracle database server talks to a Heterogeneous Services agent process which, in turn, talks to the non-Oracle system. We can conceptually divide the code into three parts:</p>
<p>1)The Heterogeneous Services component in the Oracle database server.<br />
<em> Most of the processing related to heterogeneous connectivity is done in this module.</em><br />
2)Agent generic code.<br />
<em> This is code in the agent that is generic to all Heterogeneous Services products. This consists, for the most part, of code to communicate with the database and multithreading support.<br />
</em>3)The driver.<br />
<em>This is the module that communicates with the non-Oracle system. It is used to map calls from the Heterogeneous Services onto the native API of the non-Oracle system and it is non-Oracle system specific.</em></p>
<p><span style="text-decoration:underline;"><strong>Connecting to PostgreSQL from Oracle using an ODBC data source</strong></span></p>
<p>To connect to a PostgreSQL from Oracle, we will have to use the Oracle Generic Connectivity Agent(hsodbc).<br />
A simple call would be like: <em>Oracle DB<span style="color:#800000;"> -&gt;</span> Oracle Heterogeneous Service <span style="color:#800000;">-&gt;</span> Oracle Generic Connectivity Agent <span style="color:#800000;">-&gt;</span> ODBC Driver for PostgreSQL <span style="color:#800000;">-&gt;</span> PostgreSQL DB</em><br />
http://download.oracle.com/docs/cd/B19306_01/server.102/b14232/gencon.htm#i1005976</p>
<p>Oracle does not provide the ODBC driver for PostgreSQL, it should be acquired from third party. I downloaded the psqlOBDC driver from http://www.postgresql.org/download/products/2 .</p>
<p><span style="text-decoration:underline;">1.PostgreSQL Server [PostgreSQL 8.3.5 on Windows]</span><br />
1.1)Create the DB and user, which would be used by oracle to make connection.</p>
<p><span style="text-decoration:underline;">2.Oracle Server [Oracle 10.2.0.1 on Windows]</span><br />
2.1)Install Oracle(standard edition also will do)<br />
2.2)Create a database<br />
2.3)Go to $ORACLE_HOME/hs/admin/ and confirm the files<br />
2.4)Download and install the psqlOBDC driver from postgresql.org<br />
2.5)Create the ODBC data source<br />
2.6)Configure initHSODBC.ora ($ORACLE_HOME/hs/admin/) and listener.ora and tnsnames.ora ($ORACLE_HOME/network/admin/)<br />
2.7)Create the database link</p>
<p><em>This post will cover only the details to be done at the Oracle side.</em></p>
<p><span style="text-decoration:underline;"><strong>2.1 &#8211; 2.3:</strong></span><br />
I installed oracle 10.2.0.1 standard edition and created a generic database.<br />
The $ORACLE_HOME/hs/admin/ would contain the files inithsodbc.ora,inithsoledb.ora,listener.ora.sample and tnsnames.ora.sample.<br />
The inithsodbc.ora is the one of our interest. We will configure it later.</p>
<p><strong><span style="text-decoration:underline;">2.4:</span></strong><br />
I downloaded the &#8220;psqlodbc_08_04_0100.zip&#8221;(the latest when i installed) from http://www.postgresql.org/ftp/odbc/versions/msi/ .<br />
(I could not access this site using IE and hence used Firefox.)<br />
The installation is nothing big the typical &#8220;click next button&#8221;</p>
<p>Click Next -&gt; Accept the terms -&gt; Next -&gt; Install -&gt; Finish</p>
<p><strong><span style="text-decoration:underline;">2.5:</span></strong><br />
Go to Control Panel -&gt; Administrative Tools -&gt; Data Sources -&gt; System DSN -&gt; Add</p>
<p>Select the &#8220;PostgreSQL ANSI&#8221; driver -&gt; Finish.</p>
<p>Enter the <em>ODBC Datasource name</em> ( i gave PG), <em>Server Name</em> (put the IP address of PostgreSQL DB server), <em>Database Name</em> (PostgreSQL DB name) and <em>User Name</em> (PostgreSQL userid) and <em>password</em>.<br />
Click &#8220;<strong>Test</strong>&#8221; to test the connection to PostgreSQL DB and it would show &#8220;<span style="color:#800000;">Connection Succesful</span>&#8221; and <em>Save</em>. Now we have an ODBC Data Source called &#8220;PG&#8221;.</p>
<p><strong><span style="text-decoration:underline;">2.6:</span></strong><br />
Now we have the datasource PG which would use the ODBC driver psqlODBC.<br />
We need to configure 3 files to complete the connectivity<br />
<span style="color:#800000;"> a)initHSODBC.ora<br />
b)listener.ora<br />
c)tnsnames.ora<br />
</span></p>
<p style="padding-left:30px;"><span style="text-decoration:underline;"><strong>a.1)</strong></span><br />
Go to $ORACLE_HOME/hs/admin/ and make a copy of the initHSODBC.ora and name it init&lt;SID&gt;.ora, where sid is the system identifier you want to use for the instance of the non-Oracle system to which the agent connects and i renamed the file to &#8220;<strong>initPG.ora</strong>&#8220;. Edit the file and provide the ODBC Data Source Name which we created in <em>step 2.5.</em></p>
<pre style="padding-left:30px;"><span style="color:#000080;"># This is a sample agent init file that contains the HS parameters that are
# needed for an ODBC Agent.
#
# HS init parameters
#
HS_FDS_CONNECT_INFO = PG                        <span style="color:#ff0000;">&lt;&lt;- ODBC Data Source Name</span>
HS_FDS_TRACE_LEVEL = ON
#
# Environment variables required for the non-Oracle system
#
#set &lt;envvar&gt;=&lt;value&gt;

</span></pre>
<p style="padding-left:30px;"><span style="text-decoration:underline;"><strong>b.1)</strong></span></p>
<p style="padding-left:30px;">Listener.ora ($ORACLE_HOME/network/admin/)</p>
<pre style="padding-left:30px;"><span style="color:#000080;"> SID_LIST_LISTENER =
 (SID_LIST =
 (SID_DESC =
 (SID_NAME = PG)          <span style="color:#ff0000;">&lt;&lt;- Should be same as the SID in $ORACLE_HOME/hs/admin/initSID.ora </span>
 (ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
 (PROGRAM = hsodbc)       <span style="color:#ff0000;">&lt;&lt;- Set the program as "hsodbc"</span>
 )
 (SID_DESC =
 (SID_NAME = PLSExtProc)
 (ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
 (PROGRAM = extproc)
 )
 )

LISTENER =
 (DESCRIPTION_LIST =
 (DESCRIPTION =
 (ADDRESS = (PROTOCOL = IPC)(KEY = PNPKEY))        <span style="color:#ff0000;">&lt;&lt;- Set key as PNPKEY</span>
 (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.20.20)(PORT = 1521))
 )
)</span></pre>
<p style="padding-left:30px;"><em><strong> Restart the listener.</strong></em></p>
<p style="padding-left:30px;">The sid that you add to the listener.ora file must match the sid in an initsid.ora file, because the agent spawned by the listener searches for a matching initsid.ora file. When you copy and rename the initsid.ora file, ensure that it remains in the $ORACLE_HOME/hs/admin directory</p>
<p style="padding-left:30px;"><strong><span style="text-decoration:underline;"> c.1)</span></strong></p>
<p style="padding-left:30px;">Add an entry for the PostgreSQL DB into the tnsnames.ora for the DB link to work.</p>
<pre style="padding-left:30px;"> <span style="color:#000080;">PG =
 (DESCRIPTION=
 (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.20.20)(PORT=1521))
 (CONNECT_DATA=(SID=PG))
 (HS=OK)
 )</span></pre>
<p style="padding-left:30px;">Confirm the &#8220;tnsping PG&#8221; works.</p>
<p><span style="text-decoration:underline;"><strong>2.7:</strong></span><br />
Create the database link in oracle</p>
<pre><span style="color:#000080;"> create public database link topg connect to "postgreuser" identified by "password" using 'PG';</span></pre>
<p>Confirm the DBlink to PostgreSQL using this query.</p>
<pre> <span style="color:#000080;">select * from all_tables@topg</span></pre>
<p>Unlike Oracle, PostgreSQL <strong><em>is case sensitive</em></strong>. So for user tables(other than all_tables) <strong><em>use the double quotes</em></strong> like</p>
<pre> <span style="color:#000080;">select * from "tbl_user_data"@topg;</span></pre>
<pre style="padding-left:30px;"><span style="color:#000080;"> </span></pre>
<p><span style="color:#000080;"> References:</span></p>
<p>http://www.databasejournal.com/features/oracle/article.php/10893_3442661_2/Making-a-Connection-from-Oracle-to-SQL-Server.htm</p>
<p>http://birijan.com.np/?q=Oracle+Heterogeneous+Services+(Accessing+ODBC+datasource)</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/boomslaang.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/boomslaang.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/boomslaang.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/boomslaang.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/boomslaang.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/boomslaang.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/boomslaang.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/boomslaang.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/boomslaang.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/boomslaang.wordpress.com/210/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=boomslaang.wordpress.com&blog=2073764&post=210&subd=boomslaang&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://boomslaang.wordpress.com/2009/10/06/configure_heterogeneous_connection_from_oracle_db_to_postgresql_db/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/07bdd99e922bd683bf6508a0f9ad08dc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">J..J</media:title>
		</media:content>
	</item>
		<item>
		<title>Make &#8220;n&#8221; number of connections to your DB using script in windows/unix</title>
		<link>http://boomslaang.wordpress.com/2009/08/20/make-n-number-of-connections-to-your-db/</link>
		<comments>http://boomslaang.wordpress.com/2009/08/20/make-n-number-of-connections-to-your-db/#comments</comments>
		<pubDate>Thu, 20 Aug 2009 06:09:27 +0000</pubDate>
		<dc:creator>John Jacob</dc:creator>
				<category><![CDATA[Shell Scripts]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[FOR loop in windows or dos]]></category>
		<category><![CDATA[shell script for oracle]]></category>
		<category><![CDATA[Shell Script for sqlplus]]></category>
		<category><![CDATA[sqlplus -s]]></category>
		<category><![CDATA[windows script for oracle]]></category>

		<guid isPermaLink="false">http://boomslaang.wordpress.com/?p=205</guid>
		<description><![CDATA[Recently i had to set up a db for an App and wanted to test the how better the server scaled when there are &#8220;n&#8221; number of connections at a time. I did it on a Windows 2003 server. Below is the script which i wrote for this.
On Windows

make_conn.bat
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;
FOR %%A in (1 2 3) DO [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=boomslaang.wordpress.com&blog=2073764&post=205&subd=boomslaang&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Recently i had to set up a db for an App and wanted to test the how better the server scaled when there are &#8220;n&#8221; number of connections at a time. I did it on a Windows 2003 server. Below is the script which i wrote for this.</p>
<p><strong><span style="color:#003300;">On Windows</span><br />
</strong></p>
<p>make_conn.bat<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<pre><span style="color:#000080;">FOR %%A in (1 2 3) DO start sqlplus userid/passwd@tns_entry @conn.sql</span></pre>
<p>conn.sql<br />
&#8212;&#8212;&#8212;&#8211;</p>
<pre><span style="color:#000080;">select sysdate from dual;</span><span style="color:#000080;">
exec dbms_lock.sleep(10);
exit;

</span></pre>
<p><span style="color:#000080;"> </span>Save both the files in the same folder with respective names.<br />
Now double click the make_conn.bat and this would create 3 connections to the db and will exceute the conn.sql in each. The contents of the conn.sql are self explanatory. To make more connections all you need to do is to add more numerics to the FOR statement. Changing the make_conn.bat to (1 2 3 1 2 3 1 2 3 4 5 6) would create 12 connections and the more numbers you add, more threads(connections) are created.</p>
<p>If you want to trigger the connections from cmd.exe then you will need to modify the FOR statement like :</p>
<pre><span style="color:#000080;">FOR <span style="color:#800000;">%</span>A in (1 2 3) DO start sqlplus userid/passwd@burp @conn.sql</span></pre>
<p>Note that there is only one<span style="color:#800000;"> % symbol.</span></p>
<p><span style="color:#000080;"> </span></p>
<p><span style="color:#003300;"><strong>On Unix/Linux</strong></span></p>
<p>make_conn.sh<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<pre><span style="color:#000080;">#!/bin/ksh
#
#Make n number of connections to db
#
#
echo "Enter the number of connections to make :\c"
read NOF;
i=0
while [[ $i -lt $NOF ]];
do
 sqlplus -s userid/passwd @conn.sql &gt;/dev/null &amp;
 i=$i+1
done
exit;
</span></pre>
<p>conn.sql<br />
&#8212;&#8212;&#8211;</p>
<pre><span style="color:#000080;">select sysdate from dual;
exec dbms_lock.sleep(10);
exit;</span>

$<span style="color:#000080;">chmod 755 make_conn.sh</span>
$<span style="color:#000080;">make_conn.sh

</span></pre>
<p>The &#8220;&amp;&#8221; in the while loop will run the process in background and will direct the o/p to /dev/null, so you will not see any message in your terminal unless there is an error.</p>
<p>In both cases, you can test your number of connections by</p>
<p>select count(8) from v$session where username=&#8217;USERID&#8217;;</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/boomslaang.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/boomslaang.wordpress.com/205/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/boomslaang.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/boomslaang.wordpress.com/205/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/boomslaang.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/boomslaang.wordpress.com/205/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/boomslaang.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/boomslaang.wordpress.com/205/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/boomslaang.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/boomslaang.wordpress.com/205/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=boomslaang.wordpress.com&blog=2073764&post=205&subd=boomslaang&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://boomslaang.wordpress.com/2009/08/20/make-n-number-of-connections-to-your-db/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/07bdd99e922bd683bf6508a0f9ad08dc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">J..J</media:title>
		</media:content>
	</item>
		<item>
		<title>Restore the RMAN backup of a RAC to a Single Instance</title>
		<link>http://boomslaang.wordpress.com/2009/07/28/restore-the-rman-backup-of-a-rac-to-a-single-instance/</link>
		<comments>http://boomslaang.wordpress.com/2009/07/28/restore-the-rman-backup-of-a-rac-to-a-single-instance/#comments</comments>
		<pubDate>Tue, 28 Jul 2009 06:29:08 +0000</pubDate>
		<dc:creator>John Jacob</dc:creator>
				<category><![CDATA[Oracle Backup and Recovery]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[rac]]></category>
		<category><![CDATA[Oracle RAC Recovery]]></category>
		<category><![CDATA[RAC RMAN Recovery]]></category>
		<category><![CDATA[RMAN recovery]]></category>

		<guid isPermaLink="false">http://boomslaang.wordpress.com/?p=187</guid>
		<description><![CDATA[The source database is a 2 Node RAC Database(10.2.0.4)
Source :
Unique Name    : SHCL1DR
Db_Name           : SHCL1
SID                        : SHCL1DR2
The destination will be a single instnace.
Destination :
Unique Name    : SHCL1REC
Db_Name           : SHCL1
SID                        : SHCL1REC
1] Prepare SHCL1DR for [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=boomslaang.wordpress.com&blog=2073764&post=187&subd=boomslaang&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>The source database is a 2 Node RAC Database(10.2.0.4)<br />
Source :<br />
Unique Name    : SHCL1DR<br />
Db_Name           : SHCL1<br />
SID                        : SHCL1DR2</p>
<p>The destination will be a single instnace.<br />
Destination :<br />
Unique Name    : SHCL1REC<br />
Db_Name           : SHCL1<br />
SID                        : SHCL1REC</p>
<p>1] Prepare SHCL1DR for taking RMAN backup</p>
<ul>
<li> 1.a] Create directories to store the RMAN backup</li>
</ul>
<pre style="padding-left:60px;"> <span style="color:#333399;">mkdir /u04/RMAN_BACKUPS</span></pre>
<ul>
<li> 1.b] Configure the RMAN persistant parameters to point to the backup directory and enable controlfile autobackup.</li>
</ul>
<pre style="padding-left:60px;"><span style="color:#333399;">export ORACLE_SID=SHCL1DR2</span></pre>
<pre style="padding-left:60px;"><span style="color:#333399;"> rman target /</span></pre>
<pre style="padding-left:60px;"><span style="color:#333399;"> CONFIGURE CONTROLFILE AUTOBACKUP ON;
 CONFIGURE CHANNEL 1 DEVICE TYPE DISK FORMAT '/u04/RMAN_BACKUPS/%d_%I_%U' connect 'sys/pasd@SHCL1';
 CONFIGURE CHANNEL 2 DEVICE TYPE DISK FORMAT '/u04/RMAN_BACKUPS/%d_%I_%U' connect 'sys/pasd@SHCL1';
 CONFIGURE CHANNEL 3 DEVICE TYPE DISK FORMAT '/u04/RMAN_BACKUPS/%d_%I_%U' connect 'sys/pasd@SHCL1';
 CONFIGURE CHANNEL 4 DEVICE TYPE DISK FORMAT '/u04/RMAN_BACKUPS/%d_%I_%U' connect 'sys/pasd@SHCL1';
 CONFIGURE CHANNEL 5 DEVICE TYPE DISK FORMAT '/u04/RMAN_BACKUPS/%d_%I_%U' connect 'sys/pasd@SHCL1';
 CONFIGURE CHANNEL 6 DEVICE TYPE DISK FORMAT '/u04/RMAN_BACKUPS/%d_%I_%U' connect 'sys/pasd@SHCL1';</span></pre>
<p style="padding-left:60px;">The backupsets will be created under /u04/RMAN_BACKUPS/ and the controlfile would be backed up at the default location.</p>
<pre style="padding-left:60px;"> <span style="color:#333399;">RMAN&gt; show all;</span><span style="color:#333399;">
 using target database control file instead of recovery catalog
 RMAN configuration parameters are:</span></pre>
<pre style="padding-left:60px;"><span style="color:#333399;"> CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 90 DAYS;
 CONFIGURE BACKUP OPTIMIZATION ON;
 CONFIGURE DEFAULT DEVICE TYPE TO DISK;
 CONFIGURE CONTROLFILE AUTOBACKUP ON;
 CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
 CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO COMPRESSED BACKUPSET PARALLELISM 6;
 CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1;
 CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1;
 CONFIGURE CHANNEL 1 DEVICE TYPE DISK FORMAT   '/u04/RMAN_BACKUPS/%d_%I_%U' CONNECT '*';
 CONFIGURE CHANNEL 2 DEVICE TYPE DISK FORMAT   '/u04/RMAN_BACKUPS/%d_%I_%U' CONNECT '*';
 CONFIGURE CHANNEL 3 DEVICE TYPE DISK FORMAT   '/u04/RMAN_BACKUPS/%d_%I_%U' CONNECT '*';
 CONFIGURE CHANNEL 4 DEVICE TYPE DISK FORMAT   '/u04/RMAN_BACKUPS/%d_%I_%U' CONNECT '*';
 CONFIGURE CHANNEL 5 DEVICE TYPE DISK FORMAT   '/u04/RMAN_BACKUPS/%d_%I_%U' CONNECT '*';
 CONFIGURE CHANNEL 6 DEVICE TYPE DISK FORMAT   '/u04/RMAN_BACKUPS/%d_%I_%U' CONNECT '*';
 CONFIGURE MAXSETSIZE TO UNLIMITED;
 CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
 CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
 CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON STANDBY;
 CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/oracle/product/10.2.0/db_1/dbs/snapcf_SHCL1DR2.f'; # default
RMAN&gt;</span></pre>
<ul>
<li> 1.c] Take the backup from on of the node</li>
</ul>
<pre style="padding-left:60px;"><span style="color:#333399;">rman target /
 crosscheck archivelog all;
 backup database plus archivelog;</span></pre>
<p style="padding-left:60px;">I used the below script to run RMAN in background mode.</p>
<pre style="padding-left:60px;"> <span style="color:#333399;">T02[SHCL1DR2]$ cat /export/home/oraprd/bkp.sh
 #!/bin/sh
 rman target / &lt;&lt;EOF
 backup database plus archivelog;
 exit;
 EOF
 exit
 T02[SHCL1DR2]$</span></pre>
<pre style="padding-left:60px;"><span style="color:#333399;"> T02[SHCL1DR2]$ nohup /export/home/orapd/bkp.sh &gt; /export/home/orapd/bkp. 2&gt;&amp;1 &amp;    </span></pre>
<p>2] Prepare environmet for SHCL1REC</p>
<ul>
<li> 2.a] Create the directories to hold the controlfile,redo logs,datafiles and archivelogs</li>
</ul>
<p style="padding-left:60px;">(I used the same machine, hence restored to a different location)<br />
<span style="color:#333399;">mkdir /u02/oracle/shcl1rec/ </span></p>
<p style="padding-left:60px;">This directory would hold all files pertaining to this new instance.<br />
(If you are going to use this restored instance for Prod or Dev activities, use separate directories.<br />
All i wanted was to test the backups, hence restoring them to same dir for simplicity)</p>
<pre style="padding-left:60px;"> <span style="color:#333399;">mkdir /u01/app/oracle/admin/SHCL1REC/adump        
 mkdir /u01/app/oracle/admin/SHCL1REC/bdump
 mkdir /u01/app/oracle/admin/SHCL1REC/cdump
 mkdir /u01/app/oracle/admin/SHCL1REC/udump
 mkdir /u02/oracle/shcl1rec/archivelogs</span></pre>
<p style="padding-left:60px;">
<ul>
<li> 2.b] Restore the spfile from the controlfile backup</li>
</ul>
<pre style="padding-left:60px;"><span style="color:#333399;"> export ORACLE_SID=SHCL1REC
 rman target /
 startup nomount
 restore spfile from '/u02/oracle/shcl1/flashbacklog/SHCL1DR/autobackup/2009_07_23/o1_mf_s_692991347_56j874gd_.bkp';</span></pre>
<p style="padding-left:60px;">[Make sure that you have enough memory for the SGA as that of the Source DB, else you cannot mount using this<br />
spfile as its a clone of the source spfile. If not enough memory, then copy the initSHCL1DR2.ora to initSHCL1REC.ora]</p>
<ul>
<li> 2.c] Modify the initSHCL1REC.ora file</li>
</ul>
<p style="padding-left:60px;">Change the path for controlfiles,*dumps,archive_logs.<br />
Comment the cluster parameters<br />
Change the db_unique_name,service_names and domain<br />
Change the SGA and PGA<br />
Comment/change those parameters that refer the RAC instances.</p>
<ul>
<li> 2.d] Using this new init.ora file, start the instance in nomount mode.</li>
</ul>
<ul>
<li> 2.e] Restore the controlfile from the backup</li>
</ul>
<p style="padding-left:60px;">
<pre style="padding-left:60px;"><span style="color:#333399;">export ORACLE_SID=SHCL1REC</span></pre>
<pre style="padding-left:60px;"><span style="color:#333399;"> rman target /    
 restore controlfile from '/u02/oracle/shcl1/flashbacklog/SHCL1DR/autobackup/2009_07_23/o1_mf_s_692991347_56j874gd_.bkp';
 alter database mount;</span></pre>
<pre style="padding-left:60px;"><span style="color:#008000;">RMAN&gt; restore controlfile from '/u02/oracle/shcl1/flashbacklog/SHCL1DR/autobackup/2009_07_22/o1_mf_s_692897986_56ff1mk7_.bkp';
Starting restore at 22-JUL-09
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=647 devtype=DISK
channel ORA_DISK_1: restoring control file
channel ORA_DISK_1: restore complete, elapsed time: 00:00:04
output filename=/u02/oracle/shcl1rec/control1
output filename=/u02/oracle/shcl1rec/control2
output filename=/u02/oracle/shcl1rec/control3
Finished restore at 22-JUL-09
RMAN&gt;
RMAN&gt; alter database mount;
database mounted
released channel: ORA_DISK_1
RMAN&gt;</span>
<span style="color:#333399;"> </span></pre>
<p style="padding-left:60px;">Confirm that the control files are created under /u02/oracle/shcl1rec/.</p>
<ul>
<li> 2.f] Create the password file for the new instance.</li>
</ul>
<p style="padding-left:60px;">RMAN need to connect to the new instance as sysdba, so create the password file.<br />
For simplicity copy the password file of the source.</p>
<pre style="padding-left:60px;"> <span style="color:#333399;">cp $ORACLE_HOME/dbs/orapwSHCL1DR2 $ORACLE_HOME/dbs/orapwSHCL1REC</span></pre>
<ul>
<li> 2.g] Create the tns entry</li>
</ul>
<p style="padding-left:60px;">RMAN would need dedicated connection, so if dispatchers are configured, then make sure you have SERVER=DEDICATED<br />
embedded in the tnsenrty.</p>
<pre style="padding-left:60px;"><span style="color:#333399;">SHCL1REC =
 (DESCRIPTION =
 (ADDRESS = (PROTOCOL = TCP)(HOST=10.28.19.6)(PORT= 1521))
 (CONNECT_DATA = (SERVICE_NAME = SHCLREC.s.com) (SERVER = DEDICATED))
)   </span></pre>
<ul>
<li> 2.h] Configure the persistant parameters for the new instance</li>
</ul>
<p style="padding-left:60px;">Configure the rman persistant parameter (to change the connection string)</p>
<pre style="padding-left:60px;"><span style="color:#333399;"> CONFIGURE CHANNEL 1 DEVICE TYPE DISK FORMAT '/u04/RMAN_BACKUPS/%d_%I_%U' connect 'sys/pasd@SHCL1REC';
 CONFIGURE CHANNEL 2 DEVICE TYPE DISK FORMAT '/u04/RMAN_BACKUPS/%d_%I_%U' connect 'sys/pasd@SHCL1REC';
 CONFIGURE CHANNEL 3 DEVICE TYPE DISK FORMAT '/u04/RMAN_BACKUPS/%d_%I_%U' connect 'sys/pasd@SHCL1REC';
 CONFIGURE CHANNEL 4 DEVICE TYPE DISK FORMAT '/u04/RMAN_BACKUPS/%d_%I_%U' connect 'sys/pasd@SHCL1REC';
 CONFIGURE CHANNEL 5 DEVICE TYPE DISK FORMAT '/u04/RMAN_BACKUPS/%d_%I_%U' connect 'sys/pasd@SHCL1REC';
 CONFIGURE CHANNEL 6 DEVICE TYPE DISK FORMAT '/u04/RMAN_BACKUPS/%d_%I_%U' connect 'sys/pasd@SHCL1REC';    </span></pre>
<ul>
<li> 2.i] Prepare the RMAN restore script and restore it.</li>
</ul>
<p style="padding-left:60px;">Since we are using a different path for datafiles, we need to specify it using the &#8216;SET NEWNAME&#8217; and rename the<br />
redo log files.</p>
<pre style="padding-left:60px;"><span style="color:#333399;"> select 'set newname for datafile '|| file# ||' to '''||name||'''' from v$datafile;
 select member from v$logfile;</span></pre>
<p style="padding-left:60px;">Below is the script that i used</p>
<pre style="padding-left:60px;"><span style="color:#333399;">T02[SHCL1DR2]$ cat /export/home/oraprd/restore.sh        </span>
<span style="color:#333399;">#!/bin/ksh</span>
<span style="color:#333399;">rman target / &lt;&lt;EOF    </span>
<span style="color:#333399;">set newname for datafile 1 to '/u02/oracle/shcl1rec/system01.dbf';</span>
<span style="color:#333399;">set newname for datafile 2 to '/u02/oracle/shcl1rec/undo01.dbf';</span>
<span style="color:#333399;">set newname for datafile 3 to '/u02/oracle/shcl1rec/sysaux01.dbf';</span>
<span style="color:#333399;">set newname for datafile 4 to '/u02/oracle/shcl1rec/undo02.dbf';</span>
<span style="color:#333399;">sql "alter database rename file ''/u04/oracle/shcl1/onlinelog/redo1_1.log'' to ''/u02/oracle/shcl1rec/redo1_1.log'' ";</span>
<span style="color:#333399;">sql "alter database rename file ''/u03/oracle/shcl1/onlinelog/redo1_2.log'' to ''/u02/oracle/shcl1rec/redo1_2.log'' ";</span>
<span style="color:#333399;">sql "alter database rename file ''/u04/oracle/shcl1/onlinelog/redo2_1.log'' to ''/u02/oracle/shcl1rec/redo2_1.log'' ";</span>
<span style="color:#333399;">sql "alter database rename file ''/u03/oracle/shcl1/onlinelog/redo2_2.log'' to ''/u02/oracle/shcl1rec/redo2_2.log'' ";</span>
<span style="color:#333399;">sql "alter database rename file ''/u04/oracle/shcl1/onlinelog/redo3_1.log'' to ''/u02/oracle/shcl1rec/redo3_1.log'' ";</span>
<span style="color:#333399;">sql "alter database rename file ''/u03/oracle/shcl1/onlinelog/redo3_2.log'' to ''/u02/oracle/shcl1rec/redo3_2.log'' ";</span>
<span style="color:#333399;">sql "alter database rename file ''/u04/oracle/shcl1/onlinelog/redo4_1.log'' to ''/u02/oracle/shcl1rec/redo4_1.log'' ";</span>
<span style="color:#333399;">sql "alter database rename file ''/u03/oracle/shcl1/onlinelog/redo4_2.log'' to ''/u02/oracle/shcl1rec/redo4_2.log'' ";</span>
<span style="color:#333399;">sql "alter database rename file ''/u04/oracle/shcl1/onlinelog/redo5_1.log'' to ''/u02/oracle/shcl1rec/redo5_1.log'' ";</span>
<span style="color:#333399;">sql "alter database rename file ''/u03/oracle/shcl1/onlinelog/redo5_2.log'' to ''/u02/oracle/shcl1rec/redo5_2.log'' ";</span>
<span style="color:#333399;">sql "alter database rename file ''/u04/oracle/shcl1/onlinelog/redo6_1.log'' to ''/u02/oracle/shcl1rec/redo6_1.log'' ";</span>
<span style="color:#333399;">sql "alter database rename file ''/u03/oracle/shcl1/onlinelog/redo6_2.log'' to ''/u02/oracle/shcl1rec/redo6_2.log'' ";</span>
<span style="color:#333399;">sql "alter database rename file ''/u04/oracle/shcl1/onlinelog/redo7_1.log'' to ''/u02/oracle/shcl1rec/redo7_1.log'' ";</span>
<span style="color:#333399;">sql "alter database rename file ''/u03/oracle/shcl1/onlinelog/redo7_2.log'' to ''/u02/oracle/shcl1rec/redo7_2.log'' ";</span>
<span style="color:#333399;">sql "alter database rename file ''/u04/oracle/shcl1/onlinelog/redo8_1.log'' to ''/u02/oracle/shcl1rec/redo8_1.log'' ";</span>
<span style="color:#333399;">sql "alter database rename file ''/u03/oracle/shcl1/onlinelog/redo8_2.log'' to ''/u02/oracle/shcl1rec/redo8_2.log'' ";</span>
<span style="color:#333399;">sql "alter database rename file ''/u04/oracle/shcl1/dataguard/standby_redo01.log'' to ''/u02/oracle/shcl1rec/standby_redo01.log'' ";</span>
<span style="color:#333399;">sql "alter database rename file ''/u04/oracle/shcl1/dataguard/standby_redo02.log'' to ''/u02/oracle/shcl1rec/standby_redo02.log'' ";
sql "alter database rename file ''/u04/oracle/shcl1/dataguard/standby_redo03.log'' to ''/u02/oracle/shcl1rec/standby_redo03.log'' ";
sql "alter database rename file ''/u04/oracle/shcl1/dataguard/standby_redo04.log'' to ''/u02/oracle/shcl1rec/standby_redo04.log'' ";
sql "alter database rename file ''/u04/oracle/shcl1/dataguard/standby_redo05.log'' to ''/u02/oracle/shcl1rec/standby_redo05.log'' ";
sql "alter database rename file ''/u04/oracle/shcl1/dataguard/standby_redo06.log'' to ''/u02/oracle/shcl1rec/standby_redo06.log'' ";
sql "alter database rename file ''/u04/oracle/shcl1/dataguard/standby_redo07.log'' to ''/u02/oracle/shcl1rec/standby_redo07.log'' ";
sql "alter database rename file ''/u04/oracle/shcl1/dataguard/standby_redo08.log'' to ''/u02/oracle/shcl1rec/standby_redo08.log'' ";
sql "alter database rename file ''/u04/oracle/shcl1/dataguard/standby_redo09.log'' to ''/u02/oracle/shcl1rec/standby_redo09.log'' ";
sql "alter database rename file ''/u04/oracle/shcl1/dataguard/standby_redo10.log'' to ''/u02/oracle/shcl1rec/standby_redo10.log'' ";
sql "alter database rename file ''/u04/oracle/shcl1/dataguard/SHCL1_2srl0.f'' to ''/u02/oracle/shcl1rec/SHCL1_2srl0.f'' ";
sql "alter database rename file ''/u04/oracle/shcl1/dataguard/SHCL1_2srl1.f'' to ''/u02/oracle/shcl1rec/SHCL1_2srl1.f'' ";
sql "alter database rename file ''/u04/oracle/shcl1/dataguard/SHCL1_2srl2.f'' to ''/u02/oracle/shcl1rec/SHCL1_2srl2.f'' ";
sql "alter database rename file ''/u04/oracle/shcl1/dataguard/SHCL1_2srl3.f'' to ''/u02/oracle/shcl1rec/SHCL1_2srl3.f'' ";
sql "alter database rename file ''/u04/oracle/shcl1/dataguard/SHCL1_2srl4.f'' to ''/u02/oracle/shcl1rec/SHCL1_2srl4.f'' ";
sql "alter database rename file ''/u04/oracle/shcl1/dataguard/SHCL1_1srl0.f'' to ''/u02/oracle/shcl1rec/SHCL1_1srl0.f'' ";
sql "alter database rename file ''/u04/oracle/shcl1/dataguard/SHCL1_1srl1.f'' to ''/u02/oracle/shcl1rec/SHCL1_1srl1.f'' ";
sql "alter database rename file ''/u04/oracle/shcl1/dataguard/SHCL1_1srl2.f'' to ''/u02/oracle/shcl1rec/SHCL1_1srl2.f'' ";
restore database;switch datafile all;
recover database;
exit;
EOF
exit    
T02[SHCL1DR2]$                
T02[SHCL1DR2]$ nohup /export/home/oraprd/restore.sh &gt; /export/home/oraprd/restore.log 2&gt;&amp;1 &amp;</span></pre>
<p style="padding-left:60px;">
<ul>
<li> 2.j] Open the database using RESETLOGS</li>
</ul>
<pre style="padding-left:60px;"><span style="color:#333399;"> rman target /
 alter database open resetlogs;
 Opening the database would create the redologs, but not the standby logs.</span></pre>
<p style="padding-left:30px;">
<ul>
<li> 2.k] Remove the standby redologs</li>
</ul>
<p style="padding-left:30px;">Since the source db contained standby redo logs, either we should create it or should drop them, else we would<br />
get ORA-00313 errors as the files are not created along with the redologs.</p>
<pre style="padding-left:60px;"><span style="color:#333399;"> Errors in file /u01/app/oracle/admin/SHCL1REC/bdump/shcl1rec_arc2_12529.trc:
 ORA-00313:

 *** SERVICE NAME:(SYS$BACKGROUND) 2009-07-24 17:59:53.687
 *** SESSION ID:(631.5) 2009-07-24 17:59:53.687
 *** 2009-07-24 17:59:53.687 2561 kcrf.c
 tkcrf_clear_srl: Started clearing Standby Redo Logs   
 ORA-00312: /u02/oracle/shcl1rec/standby_redo01.log'
 SVR4 Error: 2: No such file or directory
 Additional information: 3                              
 ORA-00312: /u02/oracle/shcl1rec/standby_redo02.log'
 SVR4 Error: 2: No such file or directory</span></pre>
<pre style="padding-left:60px;"><span style="color:#333399;"> SQL&gt; select group#,status,type from v$logfile;

 GROUP# STATUS                TYPE
---------- --------------------- ---------------------
 1                       ONLINE
 1                       ONLINE
 2                       ONLINE
 2                       ONLINE
 3                       ONLINE
 3                       ONLINE
 4                       ONLINE
 4                       ONLINE
 5                       ONLINE
 5                       ONLINE
 6                       ONLINE
 6                       ONLINE
 7                       ONLINE
 7                       ONLINE
 8                       ONLINE
 8                       ONLINE
 9                       STANDBY
 10                       STANDBY
 11                       STANDBY
 12                       STANDBY
 13                       STANDBY
 14                       STANDBY
 15                       STANDBY
 16                       STANDBY
 17                       STANDBY
 18                       STANDBY
 19                       STANDBY
 20                       STANDBY
 21                       STANDBY
 22                       STANDBY
 23                       STANDBY
 24                       STANDBY
 25                       STANDBY
 26                       STANDBY

34 rows selected.

 alter database drop standby logfile group 9
 alter database drop standby logfile group 10
 alter database drop standby logfile group 11
 alter database drop standby logfile group 12
 alter database drop standby logfile group 13
 alter database drop standby logfile group 14;
 alter database drop standby logfile group 15;
 alter database drop standby logfile group 16;
 alter database drop standby logfile group 17;
 alter database drop standby logfile group 18;
 alter database drop standby logfile group 19;
 alter database drop standby logfile group 20;
 alter database drop standby logfile group 21;
 alter database drop standby logfile group 22;
 alter database drop standby logfile group 23;
 alter database drop standby logfile group 24;
 alter database drop standby logfile group 25;
 alter database drop standby logfile group 26;</span></pre>
<p style="padding-left:30px;">
<ul>
<li> 2.l] Disable the redo thread(unused)</li>
</ul>
<p style="padding-left:60px;">Typically, an oracle instance would have only 1 redo thread. An n node RAC would have n redo threads.<br />
Since we restored the backup of a 2 node RAC database to a single instance, whilst startup of the single instnace<br />
Oracle would consider one of the thread as Private to the instance and the other as Public.<br />
A peep into the alert.log says, this instance has mounted redo thread 1.</p>
<pre style="padding-left:60px;"><span style="color:#333399;"> :
 Mon Jul 27 13:45:56 2009
 Successful mount of redo thread 1, with mount id 1863696975
 Mon Jul 27 13:45:56 2009
 Database mounted in Exclusive Mode
 Completed: ALTER DATABASE   MOUNT
 :

 SQL&gt; select group#,thread#,sequence#,status from v$log;

 GROUP#    THREAD#  SEQUENCE# STATUS
 ---------- ---------- ---------- ------------------------------------------------
 1          1          5 INACTIVE
 2          1          6 ACTIVE
 3          1          7 CURRENT
 4          1          4 INACTIVE
 5          2          1 INACTIVE
 6          2          2 INACTIVE
 7          2          3 INACTIVE
 8          2          4 CURRENT

 8 rows selected.</span></pre>
<p style="padding-left:60px;">Groups 1-4 belong to the Thread 1, which is private to this instance and 5-8 belong to Thread 2, which is public.<br />
Means, this instance would write the commit/rollback changes only to thread 1, but in case of recovery it would use<br />
thread 2 also.</p>
<p>A look into the archivelog destination says,</p>
<pre style="padding-left:60px;"><span style="color:#333399;"> -rw-r-----   1 oraprd   oinstall    1024 Jul 27 14:03 SHCL1REC_2_2_693078959.arch
 -rw-r-----   1 oraprd   oinstall 4768768 Jul 27 14:03 SHCL1REC_1_5_693078959.arch
 -rw-r-----   1 oraprd   oinstall    1024 Jul 27  2009 SHCL1REC_2_3_693078959.arch
 -rw-r-----   1 oraprd   oinstall 1798144 Jul 27  2009 SHCL1REC_1_6_693078959.arch</span></pre>
<p style="padding-left:60px;">The size of the archive logs created by Thread 2 are much small when compared to those created by Thread 1.<br />
I used the logminer utility to confirm that the Thread 2 does not contain any Undo/Rollback data.</p>
<p>&#8211;Mining archvielog from Thread 1</p>
<pre style="padding-left:60px;"><span style="color:#333399;"> EXECUTE DBMS_LOGMNR.ADD_LOGFILE( LOGFILENAME =&gt; '/u02/oracle/shcl1rec/archivelogs/SHCL1REC_1_6_693078959.arch', OPTIONS =&gt; DBMS_LOGMNR.NEW);
 EXECUTE DBMS_LOGMNR.START_LOGMNR( OPTIONS =&gt; DBMS_LOGMNR.DICT_FROM_ONLINE_CATALOG);
 SQL&gt; select count(8) from V$LOGMNR_CONTENTS;
 COUNT(8)
 ----------
 5449
 EXECUTE DBMS_LOGMNR.END_LOGMNR();</span></pre>
<p style="padding-left:60px;">&#8211;Mining archvielog from Thread 2</p>
<pre style="padding-left:60px;"> <span style="color:#333399;">EXECUTE DBMS_LOGMNR.ADD_LOGFILE( LOGFILENAME =&gt; '/u02/oracle/shcl1rec/archivelogs/SHCL1REC_2_3_693078959.arch', OPTIONS =&gt; DBMS_LOGMNR.NEW);
 EXECUTE DBMS_LOGMNR.START_LOGMNR( OPTIONS =&gt; DBMS_LOGMNR.DICT_FROM_ONLINE_CATALOG);
 SQL&gt;  select count(8) from V$LOGMNR_CONTENTS;
 COUNT(8)
 ----------
 0
 EXECUTE DBMS_LOGMNR.END_LOGMN</span>R();</pre>
<p style="padding-left:60px;">No data is being written to the thread 2 ( log groups# 5,6,7 and 8 ), so we can disable it using:</p>
<pre style="padding-left:60px;"> <span style="color:#333399;">ALTER DATABASE DISABLE THREAD 2;</span></pre>
<p style="padding-left:60px;">
<pre style="padding-left:60px;"><span style="color:#333399;"> SQL&gt;  select group#,thread#,sequence#,status from v$log;

 GROUP#    THREAD#  SEQUENCE# STATUS
 ---------- ---------- ---------- ------------------------------------------------
 1          1          5 INACTIVE
 2          1          6 INACTIVE
 3          1          7 CURRENT
 4          1          4 INACTIVE
 5          2          1 INACTIVE
 6          2          2 INACTIVE
 7          2          3 INACTIVE
 8          2          4 INACTIVE

 8 rows selected.</span></pre>
<p style="padding-left:60px;">Since Group# 8 was the CURRENT(of Thread 2) before disabling, archive it.</p>
<pre style="padding-left:60px;"> <span style="color:#333399;">SQL&gt; alter system archive log group 8;</span></pre>
<pre style="padding-left:60px;"><span style="color:#333399;"> System altered.</span></pre>
<p style="padding-left:60px;">Now we can drop the groups that belonged to Thread 2.</p>
<pre style="padding-left:60px;"><span style="color:#333399;"> ALTER DATABASE DROP LOGFILE GROUP 5;
 ALTER DATABASE DROP LOGFILE GROUP 6;
 ALTER DATABASE DROP LOGFILE GROUP 7;
 ALTER DATABASE DROP LOGFILE GROUP 8;</span></pre>
<pre style="padding-left:60px;"><span style="color:#333399;">SQL&gt;  select group#,thread#,sequence#,status from v$log;</span>
<span style="color:#333399;"> </span>
<span style="color:#333399;"> GROUP#    THREAD#  SEQUENCE# STATUS</span>
<span style="color:#333399;"> ---------- ---------- ---------- ------------------------------------------------</span>
<span style="color:#333399;"> 1          1          5 INACTIVE</span>
<span style="color:#333399;"> 2          1          6 INACTIVE</span>
<span style="color:#333399;"> 3          1          7 CURRENT</span>
<span style="color:#333399;"> 4          1          4 INACTIVE</span></pre>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/boomslaang.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/boomslaang.wordpress.com/187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/boomslaang.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/boomslaang.wordpress.com/187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/boomslaang.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/boomslaang.wordpress.com/187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/boomslaang.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/boomslaang.wordpress.com/187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/boomslaang.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/boomslaang.wordpress.com/187/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=boomslaang.wordpress.com&blog=2073764&post=187&subd=boomslaang&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://boomslaang.wordpress.com/2009/07/28/restore-the-rman-backup-of-a-rac-to-a-single-instance/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/07bdd99e922bd683bf6508a0f9ad08dc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">J..J</media:title>
		</media:content>
	</item>
		<item>
		<title>Get Metadata of an Object in Oracle</title>
		<link>http://boomslaang.wordpress.com/2009/06/29/get-metadata-of-an-object-in-oracle/</link>
		<comments>http://boomslaang.wordpress.com/2009/06/29/get-metadata-of-an-object-in-oracle/#comments</comments>
		<pubDate>Mon, 29 Jun 2009 02:58:18 +0000</pubDate>
		<dc:creator>John Jacob</dc:creator>
				<category><![CDATA[oracle]]></category>
		<category><![CDATA[metadata of an object]]></category>
		<category><![CDATA[oracle metadata]]></category>
		<category><![CDATA[table structure in oracle]]></category>

		<guid isPermaLink="false">http://boomslaang.wordpress.com/?p=183</guid>
		<description><![CDATA[There are different methods to get the metadata of an object in Oracle, below are the few which i use.
1)Using exp and imp utilities
.Export the table/schema with rows=n (This will not export the data but only the table structure)
.Import it with indexfile=table_metadata.log (indexfile will make imp to write the contens of .dmp file to the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=boomslaang.wordpress.com&blog=2073764&post=183&subd=boomslaang&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>There are different methods to get the metadata of an object in Oracle, below are the few which i use.</p>
<p><span style="text-decoration:underline;"><strong>1)Using exp and imp utilities</strong></span><br />
.Export the table/schema with rows=n (This will not export the data but only the table structure)<br />
.Import it with indexfile=table_metadata.log (indexfile will make imp to write the contens of .dmp file to the mentioned log file. Nothing will be done inside the schema)</p>
<p>To get the metdata of the table emp in schema john:</p>
<pre><span style="color:#333399;"> $ exp tables=john.emp file=john_emp.dmp rows=n
 $ imp full=y file=john_emp.dmp indexfile=john_emp_metadata.log</span>
<span style="color:#333399;"> $ cat john_emp_metadata.log
REM  CREATE TABLE "JOHN"."EMP" ("EMPNO" NUMBER, "ENAME" VARCHAR2(20),
REM  "SAL" NUMBER, "DEPTNO" NUMBER) PCTFREE 10 PCTUSED 40 INITRANS 1
REM  MAXTRANS 255 STORAGE(INITIAL 131072 FREELISTS 1 FREELIST GROUPS 1
REM  BUFFER_POOL DEFAULT) TABLESPACE "USERS" LOGGING NOCOMPRESS ;
</span></pre>
<p><span style="text-decoration:underline;"><strong>2)Using DBMS_METADATA.GET_DDL()</strong></span></p>
<p>To get the metadata of individual objects:</p>
<p>select dbms_metadata.get_ddl(&#8216;&lt;OBJ_TYPE&gt;&#8217;,'&lt;OBJ_NAME&gt;&#8217;,'&lt;SCHEMA&gt;&#8217;) from dual;</p>
<pre><span style="color:#333399;">SQL&gt; SET PAGES 1000
SQL&gt; SET LONG 1000
SQL&gt; select dbms_metadata.get_ddl('TABLE','EMP','JOHN') from dual;
DBMS_METADATA.GET_DDL('TABLE',
--------------------------------------------------------------------------------
 CREATE TABLE "JOHN"."EMP"
 ("EMPNO" NUMBER,
 "ENAME" VARCHAR2(20),
 "SAL" NUMBER,
 "DEPTNO" NUMBER )
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
 STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
TABLESPACE "USERS"

</span></pre>
<p><span style="color:#333399;"></span>To get the metadata of the tables or indexes or materialized views with a &#8221; ; &#8221; at the end of each script use</p>
<pre>
<pre><span style="color:#333399;">SET LINE 240
SET ECHO OFF
SET PAGES 0
SET LONG 90000
SET HEADING OFF
SET TRIMSPOOL OFF
SET FEEDBACK OFF
SET LONGCHUNKSIZE 600</span>
<span style="color:#333399;">SPOOL USER_METADATA.LOG</span>
<span style="color:#333399;">EXEC DBMS_METADATA.SET_TRANSFORM_PARAM(DBMS_METADATA.SESSION_TRANSFORM,'SQLTERMINATOR',TRUE);  </span>
<span style="color:#333399;">SELECT DBMS_METADATA.GET_DDL('TABLE',UT.TABLE_NAME) FROM USER_TABLES UT;</span>
<span style="color:#333399;">SELECT DBMS_METADATA.GET_DDL('INDEX',IDX.INDEX_NAME) FROM USER_INDEXES IDX;</span>
<span style="color:#333399;">SELECT DBMS_METADATA.GET_DDL(REPLACE(OBJECT_TYPE,' ','_'),OBJECT_NAME)
FROM USER_OBJECTS
WHERE OBJECT_TYPE IN ('MATERIALIZED VIEW');

SPOOL OFF</span></pre>
</pre>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/boomslaang.wordpress.com/183/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/boomslaang.wordpress.com/183/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/boomslaang.wordpress.com/183/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/boomslaang.wordpress.com/183/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/boomslaang.wordpress.com/183/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/boomslaang.wordpress.com/183/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/boomslaang.wordpress.com/183/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/boomslaang.wordpress.com/183/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/boomslaang.wordpress.com/183/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/boomslaang.wordpress.com/183/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=boomslaang.wordpress.com&blog=2073764&post=183&subd=boomslaang&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://boomslaang.wordpress.com/2009/06/29/get-metadata-of-an-object-in-oracle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/07bdd99e922bd683bf6508a0f9ad08dc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">J..J</media:title>
		</media:content>
	</item>
		<item>
		<title>Recovery of UNDO tablespace in a Non Archive Log mode Database</title>
		<link>http://boomslaang.wordpress.com/2009/04/06/recovery-of-undo-tablespace-in-a-non-archive-log-mode-database/</link>
		<comments>http://boomslaang.wordpress.com/2009/04/06/recovery-of-undo-tablespace-in-a-non-archive-log-mode-database/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 05:47:28 +0000</pubDate>
		<dc:creator>John Jacob</dc:creator>
				<category><![CDATA[Oracle Backup and Recovery]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[database recovery]]></category>
		<category><![CDATA[recover non archive log mode database]]></category>
		<category><![CDATA[recover undo tablespace]]></category>

		<guid isPermaLink="false">http://boomslaang.wordpress.com/?p=175</guid>
		<description><![CDATA[Every transaction stores the post modification data in the undo tablespace for a rollback or read consistency or flash back query or for recovery in case of abort. All system transactions will use the rollback segments created in the system tablespace. It cannot be used by other schema operations, they should use the undo tablespace. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=boomslaang.wordpress.com&blog=2073764&post=175&subd=boomslaang&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Every transaction stores the post modification data in the undo tablespace for a rollback or read consistency or flash back query or for recovery in case of abort. All system transactions will use the rollback segments created in the system tablespace. It cannot be used by other schema operations, they should use the undo tablespace. So an Undo tablespace is a must for any transaction to occur. If the database is in Archivelog mode, the recovery of an Undo tablespace is same as that of any <a href="http://boomslaang.wordpress.com/2008/10/10/recovery-of-non-system-datafile-while-the-database-is-closed/" target="_blank">Non-System tablespace</a>,but how to recover if the database is in Non Archivelog Mode ?</p>
<p><strong>While shutdown</strong><br />
++++++++++++++<br />
This will work only if the database is shutdown properly(shutdown immediate).<br />
If the database was aborted, oracle would do the &#8216;instance recovery&#8217; whilst next startup and would terminate if the undo tablespace isn&#8217;t present.</p>
<pre><span style="color:#333399;">SQL&gt; startup;
ORACLE instance started.

Total System Global Area  167772160 bytes
Fixed Size                  1218316 bytes
Variable Size              67111156 bytes
Database Buffers           96468992 bytes
Redo Buffers                2973696 bytes
Database mounted.
ORA-01157: cannot identify/lock data file 2 - see DBWR trace file
ORA-01110: data file 2: '/u01/oradata/burp/undotbs01.dbf'</span></pre>
<p>Since the database in Non Archive Log mode, we cannot open the database by taking the datafile offline using &#8216;alter database datafile 2 offline&#8217;,but we need to use  &#8216;<strong>&#8230;OFFLINE FOR DROP</strong>&#8216;. This will mark the datafile for subsequent dropping.A datafile once marked &#8216;OFFLINE FOR DROP&#8217; can never be brought online.</p>
<pre><span style="color:#333399;">SQL&gt;alter database datafile 2 offline for drop;
SQL&gt;alter database open;</span></pre>
<p>Now we need to create another undo tablespace for the transactions to use. Once the new undo tablespace is created,shutdown the database and edit the init.ora file and change the parameter undo_tablepace=&lt;new_undo_tablespace&gt;</p>
<pre><span style="color:#333399;">SQL&gt;create undo tablespace UNDOTBS2 datafile '/path/undotbs02.dbf' size 20M;
SQL&gt;shutdown immediate;</span></pre>
<p>edit the init.ora file and set paramter undo_tablespace=UNDOTBS2</p>
<pre><span style="color:#333399;">SQL&gt;startup;</span></pre>
<p>Now we will drop UNDOTBS1 as it is nolonger used.</p>
<pre><span style="color:#333399;">SQL&gt;drop tablespace UNDOTBS1 including contents and datafiles;</span></pre>
<p><strong>While database is OPEN</strong><br />
+++++++++++++++++++</p>
<pre><span style="color:#333399;">SQL&gt;create undo tablespace UNDOTBS2 datafile '/path/undotbs02.dbf' size 20M;</span>
<span style="color:#333399;">SQL&gt;shutdown immediate;</span></pre>
<p>edit the init.ora file and set paramter undo_tablespace=UNDOTBS2</p>
<pre><span style="color:#333399;">SQL&gt;startup;</span></pre>
<p>Now we will drop UNDOTBS1 as it is nolonger used.</p>
<pre><span style="color:#333399;">SQL&gt;drop tablespace UNDOTBS1 including contents and datafiles;</span></pre>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/boomslaang.wordpress.com/175/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/boomslaang.wordpress.com/175/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/boomslaang.wordpress.com/175/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/boomslaang.wordpress.com/175/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/boomslaang.wordpress.com/175/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/boomslaang.wordpress.com/175/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/boomslaang.wordpress.com/175/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/boomslaang.wordpress.com/175/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/boomslaang.wordpress.com/175/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/boomslaang.wordpress.com/175/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=boomslaang.wordpress.com&blog=2073764&post=175&subd=boomslaang&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://boomslaang.wordpress.com/2009/04/06/recovery-of-undo-tablespace-in-a-non-archive-log-mode-database/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/07bdd99e922bd683bf6508a0f9ad08dc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">J..J</media:title>
		</media:content>
	</item>
		<item>
		<title>No quota on USERS tablespace? Then no EXPDP.</title>
		<link>http://boomslaang.wordpress.com/2009/01/28/no-quota-on-users-tablespace-then-no-expdp/</link>
		<comments>http://boomslaang.wordpress.com/2009/01/28/no-quota-on-users-tablespace-then-no-expdp/#comments</comments>
		<pubDate>Wed, 28 Jan 2009 06:23:27 +0000</pubDate>
		<dc:creator>John Jacob</dc:creator>
				<category><![CDATA[oracle]]></category>
		<category><![CDATA[troubleshooting]]></category>

		<guid isPermaLink="false">http://boomslaang.wordpress.com/?p=170</guid>
		<description><![CDATA[When i tried to export objects from a schema using EXPDP using the userid and passwd as that of the schema name, it failed.
my [DR1]$ expdp SCHEMAS=dprd PARFILE=exp_include.par
Export: Release 10.2.0.3.0 - 64bit Production on Wednesday, 28 January, 2009 14:47:15
Copyright (c) 2003, 2005, Oracle.  All rights reserved.

Username: DPRD
Password:

Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=boomslaang.wordpress.com&blog=2073764&post=170&subd=boomslaang&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>When i tried to export objects from a schema using EXPDP using the userid and passwd as that of the schema name, it failed.</p>
<pre><span style="color:#000080;">my [DR1]$ expdp SCHEMAS=dprd PARFILE=exp_include.par
Export: Release 10.2.0.3.0 - 64bit Production on Wednesday, 28 January, 2009 14:47:15
Copyright (c) 2003, 2005, Oracle.  All rights reserved.

Username: <span style="color:#800000;">DPRD</span>
Password:

Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
With the Partitioning, Real Application Clusters, OLAP and Data Mining options
<span style="color:#800000;">ORA-31626</span>: job does not exist
<span style="color:#800000;">ORA-31633</span>: unable to create master table "DPRD.SYS_EXPORT_SCHEMA_05"
<span style="color:#800000;">ORA-06512</span>: at "SYS.DBMS_SYS_ERROR", line 95
<span style="color:#800000;">ORA-06512</span>: at "SYS.KUPV$FT", line 863
<span style="color:#800000;">ORA-01950</span>: no privileges on tablespace 'USERS'</span></pre>
<p>Well, the error message clearly says &#8220;<strong>no privileges on tablespace &#8216;USERS&#8217;</strong>&#8220;.</p>
<p>Yes, oracle will create some temporary tables whilst the expdp.So, no quota on users? then no expdp. Then i granted some quota on tablespace USERS to user DPRD.</p>
<pre><span style="color:#000080;">SQL&gt;alter user DPRD quota 10M on USERS;

User altered.</span></pre>
<p>While the expdp was in process, i found the below objects created on tablespace USERS</p>
<pre><span style="color:#000080;">SQL&gt;select segment_name,segment_type,bytes from dba_segments where owner='DBKPRD' and tablespace_name='USERS';
SEGMENT_NAME                   SEGMENT_TYPE                        BYTES
------------------------------ ------------------------------ ----------
SYS_LOB0000154588C00039$$      LOBSEGMENT                          65536
SYS_MTABLE_000025BDC_IND_1     INDEX                              131072
SYS_C00119124                  INDEX                               65536
SYS_IL0000154588C00039$$       LOBINDEX                            65536
SYS_EXPORT_SCHEMA_01           TABLE                              131072
SQL&gt;</span></pre>
<p><strong>Do we have any control on the tablespace name ?<br />
</strong>yet to find it out <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> <strong><br />
</strong></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/boomslaang.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/boomslaang.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/boomslaang.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/boomslaang.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/boomslaang.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/boomslaang.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/boomslaang.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/boomslaang.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/boomslaang.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/boomslaang.wordpress.com/170/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=boomslaang.wordpress.com&blog=2073764&post=170&subd=boomslaang&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://boomslaang.wordpress.com/2009/01/28/no-quota-on-users-tablespace-then-no-expdp/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/07bdd99e922bd683bf6508a0f9ad08dc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">J..J</media:title>
		</media:content>
	</item>
		<item>
		<title>Setting up Oracle VM using iSCSI storage</title>
		<link>http://boomslaang.wordpress.com/2008/12/25/setup-oracle-vm-using-iscsi-storage/</link>
		<comments>http://boomslaang.wordpress.com/2008/12/25/setup-oracle-vm-using-iscsi-storage/#comments</comments>
		<pubDate>Thu, 25 Dec 2008 02:46:04 +0000</pubDate>
		<dc:creator>John Jacob</dc:creator>
				<category><![CDATA[Oracle VM]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[Oracle VM Installation Screenshots]]></category>
		<category><![CDATA[Oracle VM Server and Manager]]></category>
		<category><![CDATA[Setup Oracle VM with iSCSI]]></category>

		<guid isPermaLink="false">http://boomslaang.wordpress.com/?p=149</guid>
		<description><![CDATA[Virtualization Technology isn&#8217;t new to the technical magazines, but the frevour at which companies bring out their virtualization products shows how HOT it has become at the data centers at this point when the companies vie each other to go GREEN.
Oracle has brought out the Oracle Virtualization Product using the Xen hypervisor,  an Open Source [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=boomslaang.wordpress.com&blog=2073764&post=149&subd=boomslaang&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Virtualization Technology isn&#8217;t new to the technical magazines, but the frevour at which companies bring out their virtualization products shows how HOT it has become at the data centers at this point when the companies vie each other to go GREEN.</p>
<p>Oracle has brought out the Oracle Virtualization Product using the Xen hypervisor,  an Open Source s/w and widely used in all Linux Distributions for virtualization. This product of Oracle comes with an Oracle VM Server and an Oracle VM Manager, a Java based interface to manage the Virtualization.</p>
<p>I have created my <strong>TEST </strong>environment using 4 desktops and below is how i went about.</p>
<p><img class="alignnone size-full wp-image-151" title="ora_vm_arch" src="http://boomslaang.files.wordpress.com/2008/12/ora_vm_arch.jpg?w=848&#038;h=595" alt="ora_vm_arch" width="848" height="595" /></p>
<p>As shown in the above picture i used 4 machines.<br />
<strong>Machine Details</strong><br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
Manager<br />
&#8212;&#8212;-<br />
CPU        -Intel P4 3Ghz [1 core]<br />
RAM      -500 MB<br />
HDD       -40 GB [SCSI]<br />
OS           -Oracle Enterprise Linux 5.2</p>
<p>Storage<br />
&#8212;&#8212;-<br />
CPU        -Intel P4 3Ghz [1 core]<br />
RAM      -1 GB<br />
HDD       -80 GB [SCSI]<br />
OS           -Openfiler 2.1</p>
<p>VMS1<br />
&#8212;&#8212;-<br />
CPU        -Intel P4 3Ghz [2 core]<br />
RAM      -2 GB<br />
HDD       -80 GB [SCSI]<br />
OS[Dom]-Oracle VM Server 2.1.2</p>
<p>VMS2<br />
&#8212;&#8212;-<br />
CPU        -Intel P4 3Ghz [1 core]<br />
RAM        -2 GB<br />
HDD        -80 GB [SCSI]<br />
OS[Dom0]-Oracle VM Server 2.1.2</p>
<p>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++<br />
<strong>Files to download<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</strong>&#8212;&#8212;&#8211;<br />
Oracle Enterprise Linux 5.2(32bit)         &#8211; http://edelivery.oracle.com/linux<br />
Oracle VM Server 2.1.2(32bit)                  &#8211; http://edelivery.oracle.com/linux<br />
Oracle VM Manger 2.1.2(32bit)                &#8211; http://edelivery.oracle.com/linux<br />
Oracle EL 5.2 Template(32bit)                  &#8211; http://edelivery.oracle.com/linux<br />
Oracle RDBMS 10g(Linux 32bit)              &#8211; http://www.oracle.com/technology/software/products/database/oracle10g/htdocs/10201linuxsoft.html<br />
VNC Viewer Plugin for VM Manager(32bit)    &#8211; http://oss.oracle.com/oraclevm/manager/RPMS/</p>
<p>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++</p>
<p><strong>Setting up Manager<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</strong>&#8212;&#8212;&#8212;-<br />
<strong><span style="color:#003366;">Install OEL 5.2</span></strong></p>
<p style="padding-left:30px;">-Firewall    =No<br />
-Selinux    =Disabled<br />
-IP Address    =192.168.20.99/255.255.255.0<br />
-Hostname    =Manger<br />
-Root Pswd    =redhat</p>
<p><strong><span style="color:#003366;">Install Oracle VM Manager 2.1.2</span></strong><br />
http://download.oracle.com/docs/cd/E11081_01/doc/doc.21/e10902/ovmig.htm#BHCDACIH</p>
<p><span style="color:#003366;"><strong>Install the downloaded VNC viewer plugin</strong></span>. This plugin is required if we want to get the console of guests&#8217; from VM Manager.<br />
[Manager:root]$rpm -ivh ovm-console-1.0.0-2.i386.rpm</p>
<p>Stop the <span style="color:#003366;">iptables </span>and <span style="color:#003366;">ip6tables</span> services</p>
<p><span style="color:#800000;">[Manager:root]$service iptables stop<br />
[Manager:root]$service ip6tables stop</span></p>
<p>Make sure that it doesn&#8217;t start in the next reboot</p>
<p><span style="color:#800000;">[Manager:root]$chkconfig &#8211;levels 345 iptables off<br />
[Manager:root]$chkconfig &#8211;levels 345 ip6tables off</span></p>
<p>Add the below to the <span style="color:#003366;">/etc/hosts</span><br />
192.168.20.98    storage<br />
192.168.20.99    manager<br />
192.168.20.100    vms1<br />
192.168.20.101  vms2<br />
192.168.20.102  guest1</p>
<p><strong>Setting up Storage</strong><br />
<strong>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</strong>&#8212;&#8212;-</p>
<p><strong><span style="color:#003366;">Install Openfiler 2.1</span></strong></p>
<p style="padding-left:30px;">-Select manual partition<br />
-Delete all existing partitions(if they do exist)<br />
- /                =20 GB*<br />
SWAP        =2 GB<br />
Keep the rest as Free Space, this free space can be used as the shared iSCSI Storage.<br />
-Firewall    =No<br />
-Selinux     =No<br />
-IP address    =192.68.20.98/255.255.255.0<br />
-Hostname    =Storage</p>
<p>* Even 1 Gb would do for &#8220;/&#8221; [it used only 500 MB for my installation] and less for SWAP</p>
<p><strong><span style="color:#000000;">Setting up VMS1<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</span></strong>&#8212;&#8212;<br />
<strong><span style="color:#003366;">Install Oracle VM Server 2.1.2</span></strong></p>
<p style="padding-left:30px;">[Follow the documentation http://download.oracle.com/docs/cd/E11081_01/doc/doc.21/e10899.pdf]<br />
-Go for the default options<br />
-IP Address        =192.168.20.100/255.255.255.0<br />
-Hostname          =VMS1<br />
-Agent Password    =vmagent<br />
-Root Password      =redhat</p>
<p>Stop the <span style="color:#003366;">iptables </span>and <span style="color:#003366;">ip6tables<br />
</span></p>
<p><span style="color:#800000;">[VMS1:root]$service iptables stop<br />
[VMS1:root]$service ip6tables stop</span></p>
<p>Make sure that it doesn&#8217;t start in the next reboot</p>
<p><span style="color:#800000;">[VMS1:root]$chkconfig &#8211;levels 345 iptables off<br />
[VMS1:root]$chkconfig &#8211;levels 345 ip6tables off</span></p>
<p><strong>Setting up VMS2<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</strong>&#8212;&#8212;-<br />
<strong><span style="color:#003366;">Install Oracle VM Server 2.1.2</span></strong></p>
<p style="padding-left:30px;">[Follow the documentation http://download.oracle.com/docs/cd/E11081_01/doc/doc.21/e10899.pdf]<br />
-Go for the default options<br />
-IP Address        =192.168.20.101/255.255.255.0<br />
-Hostname         =VMS2<br />
-Agent Password    =vmagent<br />
-Root Password      =redhat</p>
<p>Stop the iptables and ip6tables</p>
<p><span style="color:#800000;">[VMS2:root]$service iptables stop<br />
[VMS2:root]$service ip6tables stop</span></p>
<p>Make sure that it doesn&#8217;t start in the next reboot</p>
<p><span style="color:#800000;">[VMS2:root]$chkconfig &#8211;levels 345 iptables off<br />
[VMS2:root]$chkconfig &#8211;levels 345 ip6tables off</span></p>
<p>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++</p>
<p><strong>Configure iSCSI Storage<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</strong>&#8212;&#8212;&#8212;&#8211;<br />
[Check <a href="http://www.oracle.com/technology/pub/articles/hunter_rac10gr2_iscsi.html#9" target="_blank">Jeffery Hunter's RAC with iSCSI</a> for more detailed explanation on setting up shared iSCSI storage and FAQ's and debugging]</p>
<p>From the browser in Manager:<br />
https://192.168.20.98:446/<br />
Userid          =openfiler<br />
Password    =password</p>
<p>Go to <span style="color:#003366;"><strong>SERVICES/ENABLE-DISABLE</strong> </span>tab</p>
<p><img class="alignnone size-full wp-image-127" title="op2" src="http://boomslaang.files.wordpress.com/2008/12/op2.png?w=819&#038;h=614" alt="op2" width="819" height="614" /></p>
<p>Click &#8220;<span style="color:#003366;">Enable</span>&#8221; for iSCSI target and the status would change from Disabled to Enabled.</p>
<p><strong><span style="color:#003366;">On Storage</span></strong><br />
<span style="color:#800000;">[STORAGE]$service iscsi-target status</span><br />
=&gt;it should be running</p>
<p>Go to<strong><span style="color:#003366;"> GENERAL/LOCAL NETWORKS</span></strong> tab<br />
<img class="alignnone size-full wp-image-129" title="op4" src="http://boomslaang.files.wordpress.com/2008/12/op4.png?w=819&#038;h=614" alt="op4" width="819" height="614" /></p>
<p>Add the network, whose machines would mount the storage<br />
<span style="color:#800000;">Name                  = Network 20<br />
Network/Host= 192.168.20.0    =&gt; All our machines are in this network<br />
Netmask            = 255.255.255.0<br />
Type                    = Share<br />
</span>[UPDATE]</p>
<p>Go to <strong><span style="color:#003366;">VOLUMES/PHYSICAL STORAGE MGMT</span></strong> tab<br />
<img class="alignnone size-full wp-image-131" title="op6" src="http://boomslaang.files.wordpress.com/2008/12/op6.png?w=819&#038;h=614" alt="op6" width="819" height="614" /></p>
<p>Here we can see the disk /dev/sda of 74.50 Gb with 2 partitions<br />
[click <span style="color:#003366;">VIEW</span>]    <span style="color:#800000;">/dev/sda1</span> for &#8220;<strong><span style="color:#800000;">/</span></strong>&#8221; and<span style="color:#800000;"> /dev/sda2 </span>for &#8220;<span style="color:#800000;">SWAP</span>&#8220;</p>
<p>Click <span style="color:#800000;">/dev/sda</span> under &#8220;<span style="color:#003366;">Edit Disk</span>&#8221; and Scroll Down to &#8220;<span style="color:#003366;">Create a partition in /dev/sda</span>&#8221; with the FREE SPACE in the disk<br />
Cylinders 1 to 2107 of /dev/sda are used by / and SWAP of STORAGE</p>
<p><span style="color:#800000;">Mode                       =Primary<br />
Partition Type     =Physical Volume<br />
Startig Cylinder  =&lt;let it be the default&gt;<br />
Ending Cylinder  =&lt;let it be the default&gt;</span><br />
[<span style="color:#003366;">CREATE</span>]</p>
<p><img class="alignnone size-full wp-image-132" title="op7" src="http://boomslaang.files.wordpress.com/2008/12/op7.png?w=819&#038;h=614" alt="op7" width="819" height="614" /></p>
<p><img class="alignnone size-full wp-image-133" title="op8" src="http://boomslaang.files.wordpress.com/2008/12/op8.png?w=819&#038;h=614" alt="op8" width="819" height="614" /></p>
<p>:</p>
<p>Go to <strong><span style="color:#003366;">GENERAL </span></strong>tab</p>
<p>:</p>
<p>Go to<strong><span style="color:#003366;"> VOLUMES/VOLUME GROUP MGMT</span></strong> tab<br />
<img class="alignnone size-full wp-image-134" title="op9" src="http://boomslaang.files.wordpress.com/2008/12/op9.png?w=819&#038;h=614" alt="op9" width="819" height="614" /></p>
<p><span style="color:#800000;">Enter the Volume Group Name            =data<br />
Select the physical volumes to add     =/dev/sda3</span><br />
[<span style="color:#003366;">ADD VOLUME GROUP</span>]</p>
<p>:</p>
<p>Go to<strong><span style="color:#003366;"> VOLUMES/CREATE NEW VOLUME</span></strong><br />
<img class="alignnone size-full wp-image-135" title="op10" src="http://boomslaang.files.wordpress.com/2008/12/op10.png?w=819&#038;h=614" alt="op10" width="819" height="614" /></p>
<p><span style="color:#800000;">Select the volume group    =data<br />
Create Volume in data<br />
Volume name        =data<br />
Volume Desc         =data<br />
Reqd Space            =&lt;drag the slider to end&gt;<br />
Filesystem Type  =iSCSI</span><br />
[<span style="color:#003366;">CREATE</span>]</p>
<p>Go to <strong><span style="color:#003366;">VOLUMES/LIST EXISTING VOLUMES</span></strong></p>
<p><img class="alignnone size-full wp-image-136" title="op11" src="http://boomslaang.files.wordpress.com/2008/12/op11.png?w=819&#038;h=614" alt="op11" width="819" height="614" /></p>
<p>Click &#8220;<span style="color:#003366;">EDIT</span>&#8221; for the volume &#8220;<span style="color:#003366;">data</span>&#8221; and<br />
Scroll down to &#8216;<span style="color:#003366;"><strong>i</strong><strong>SCSI host access configuration for volume &#8220;data&#8221;</strong></span>&#8216;<br />
and select &#8220;<span style="color:#003366;">Allow</span>&#8221; for Access<br />
[<span style="color:#003366;">UPDATE</span>]</p>
<p><img class="alignnone size-full wp-image-137" title="op12" src="http://boomslaang.files.wordpress.com/2008/12/op12.png?w=819&#038;h=614" alt="op12" width="819" height="614" /></p>
<p>Make iSCSI clients available to clients<br />
<span style="color:#800000;"> [STORAGE:root]$service iscsi-target restart</span></p>
<p>Make sure that the service &#8216;iscsi-target&#8217; is started after restart<br />
<span style="color:#800000;"> [STORAGE:root]$chkconfig &#8211;levels 345 iscsi-target on<br />
[STORAGE:root]$chkconfig &#8211;list iscsi-target</span></p>
<p><strong><span style="color:#000000;">Discovering Shared iSCSI on VMS1 and VMS2<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</span></strong>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
[<strong><span style="color:#888888;">do it<span style="color:#000000;"> from both</span> VMS1 and VMS2</span></strong>]<br />
Discover the shared iSCSI using the &#8216;<strong><span style="color:#003366;">iscsiadm</span></strong>&#8216; utility that comes along with VM Server.<br />
[http://download.oracle.com/docs/cd/E11081_01/doc/doc.21/e10898.pdf]</p>
<p><span style="color:#800000;">$iscsiadm -m discovery -t sendtargets -p &lt;iscsi server&gt;</span></p>
<pre><span style="color:#3366ff;">[VMS1:root]$<span style="color:#ff6600;"><strong>iscsiadm -m discovery -t sendtargets -p 192.168.20.98</strong></span>
192.168.20.98:3260,1 iqn.2006-01.com.openfiler:data.data</span></pre>
<p>The discovered partitions will appear only after restarting the iscsi service<br />
<span style="color:#800000;">$cat /proc/partitions<br />
$service iscsi restart<br />
$cat /proc/partitions</span></p>
<pre><span style="color:#3366ff;">[root@vms1 ~]# <span style="color:#ff6600;"><strong>cat /proc/partitions</strong></span>
major minor  #blocks  name
8     0   78125000 sda
8     1     104391 sda1
8     2   23663745 sda2
8     3   50154930 sda3
8     4          1 sda4
8     5    3148708 sda5
8     6    1052226 sda6
</span></pre>
<pre><span style="color:#3366ff;">[root@vms1 ~]#<strong> <span style="color:#ff6600;">service iscsi restart</span></strong>
Stopping iSCSI daemon: /etc/init.d/iscsi: line 33:  3006 Killed         /etc/init.d/iscsid stop
iscsid dead but pid file exists                            [  OK  ]
Turning off network shutdown. Starting iSCSI daemon:       [  OK  ]
[  OK  ]
Setting up iSCSI targets: Login session [192.168.20.98:3260 iqn.2006-01.com.openfiler:data.data]
[  OK  ]
[root@vms1 ~]#
</span></pre>
<pre><span style="color:#3366ff;">[root@vms1 ~]# <span style="color:#ff6600;"><strong>cat /proc/partitions</strong></span>
major minor  #blocks  name
8     0   78125000 sda
8     1     104391 sda1
8     2   23663745 sda2
8     3   50154930 sda3
8     4          1 sda4
8     5    3148708 sda5
8     6    1052226 sda6
<span style="color:#ff6600;">8    16   61177856 sdb               <span style="color:#000000;">===&gt; the shared disk is discovere</span><span style="color:#000000;">d  </span>  </span>
[root@vms1 ~]#</span></pre>
<p><strong>Create and Format the discoverd iSCSI device using OCFS2 file system<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</strong>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
[<strong><span style="color:#808080;">do it only <span style="color:#000000;">from either</span> VMS1 or VMS2</span></strong>]</p>
<p>Create partition on the shared iSCSI disk<br />
<span style="color:#800000;">[VMS1:root]$fdisk /dev/sdb<br />
n -new partition<br />
p -primary partition<br />
w -write and quit</span></p>
<pre><span style="color:#3366ff;">[root@vms1 ~]# <span style="color:#ff6600;"><strong>fdisk /dev/sdb</strong></span></span></pre>
<pre><span style="color:#3366ff;">Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous</span><span style="color:#3366ff;">
content won't be recoverable.The number of cylinders for this disk is set to 59744.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)</span></pre>
<pre><span style="color:#3366ff;">Command (m for help):<span style="color:#000080;"> <span style="color:#ff6600;"><strong>p</strong></span></span>
Disk /dev/sdb: 62.6 GB, 62646124544 bytes
64 heads, 32 sectors/track, 59744 cylinders</span><span style="color:#3366ff;">
Units = cylinders of 2048 * 512 = 1048576 bytes
Device Boot      Start         End      Blocks   Id  System</span></pre>
<pre><span style="color:#3366ff;">Command (m for help): <span style="color:#ff6600;"><strong>n</strong></span>
Command action
e   extended
p   primary partition (1-4)
<span style="color:#ff6600;"><strong>p</strong></span>
Partition number (1-4): 1
First cylinder (1-59744, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-59744, default 59744):</span><span style="color:#3366ff;">
Using default value 59744

Command (m for help): <span style="color:#ff6600;"><strong>p</strong></span>
Disk /dev/sdb: 62.6 GB, 62646124544 bytes
64 heads, 32 sectors/track, 59744 cylinders</span><span style="color:#3366ff;">
Units = cylinders of 2048 * 512 = 1048576 bytes
Device Boot      Start         End      Blocks   Id  System</span><span style="color:#3366ff;">
/dev/sdb1               1       59744    61177840   83  Linux

Command (m for help): <span style="color:#ff6600;"><strong>w</strong></span></span><span style="color:#3366ff;">
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
[root@vms1 ~]#</span><span style="color:#3366ff;">
</span></pre>
<pre><span style="color:#3366ff;">[root@vms1 ~]#<span style="color:#ff6600;"> <strong>fdisk -l</strong></span>
Disk /dev/sda: 80.0 GB, 80000000000 bytes
255 heads, 63 sectors/track, 9726 cylinders</span><span style="color:#3366ff;">
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      104391   83  Linux
/dev/sda2            6781        9726    23663745   83  Linux
/dev/sda3              14        6257    50154930   83  Linux
/dev/sda4            6258        6780     4200997+   5  Extended
/dev/sda5            6258        6649     3148708+  83  Linux</span><span style="color:#3366ff;">
/dev/sda6            6650        6780     1052226   82  Linux swap / Solaris
Partition table entries are not in disk order

Disk /dev/sdb: 62.6 GB, 62646124544 bytes
64 heads, 32 sectors/track, 59744 cylinders</span><span style="color:#3366ff;">
Units = cylinders of 2048 * 512 = 1048576 bytes

Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1       59744    61177840   83  Linux
[root@vms1 ~]#</span></pre>
<p>Create the OCFS2 file system on the partition using mkfs utility<br />
<span style="color:#800000;">[VMS1:root]$mkfs.ocfs2 -b 4K -C 32K -N 4 -L data /dev/sdb1<br />
[VMS1:root]$partprobe</span></p>
<pre><span style="color:#3366ff;">[root@vms1 ocfs2]#<span style="color:#ff6600;"><strong> mkfs.ocfs2 -b 4K -C 32K -N 4 -L data /dev/sdb1</strong></span>
mkfs.ocfs2 1.2.7
Overwriting existing ocfs2 partition.
Proceed (y/N): <span style="color:#ff6600;"><strong>y</strong></span>
Filesystem label=data
Block size=4096 (bits=12)
Cluster size=32768 (bits=15)
Volume size=62646091776 (1911807 clusters) (15294456 blocks)
60 cluster groups (tail covers 8703 clusters, rest cover 32256 clusters)
Journal size=268435456
Initial number of node slots: 4
Creating bitmaps: done
Initializing superblock: done
Writing system files: done
Writing superblock: done
Writing backup superblock: 3 block(s)
Formatting Journals: done
Writing lost+found: done</span><span style="color:#3366ff;">
mkfs.ocfs2 successful
<span style="color:#3366ff;">[root@vms1 ~]#</span></span></pre>
<p><strong>Configure the shared partition on VMS1 and VMS2<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
</strong>[<strong><span style="color:#808080;">do it on VMS1 and copy the file to VMS2</span></strong>]</p>
<p>Create the<strong><span style="color:#003366;"> cluster.conf</span></strong> file under <span style="color:#800000;">/etc/ocfs2</span><br />
This cluster.conf file will have the details of the nodes that will be participating in a Cluster.<br />
So in our case, the cluster name will be OCFS2 and the number of nodes will be 2 (VMS1 and VMS2). Later, should a new VM Server be added to this cluster, the details of it should be added to this cluster.conf.<br />
All the machines(nodes) participating in a cluster should have the same cluster.conf entries.</p>
<p><span style="color:#800000;">[VMS1:root]$mkdir /etc/ocfs2<br />
[VMS1:root]$cd /etc/ocfs2<br />
[VMS1:root]$touch cluster.conf<br />
</span>&lt;I had the below in my cluster.conf&gt;</p>
<pre><span style="color:#3366ff;">[root@vms1 ocfs2]# <span style="color:#ff6600;"><strong>cat cluster.conf</strong></span>
node:
     ip_port         =7777
     ip_address      =192.168.20.100
     number          =1
     name            =vms1
     cluster         =ocfs2
node:
     ip_port         =7777
     ip_address      =192.168.20.101
     number          =2
     name            =vms2
     cluster         =ocfs2
cluster:
     node_count      =2
     name            =ocfs2
[root@vms1 ocfs2]#</span></pre>
<p>Create <span style="color:#800000;">/etc/ocfs2</span> dir on VMS2 and copy the cluster.conf from VMS1 to VMS2 .</p>
<p><strong>Mounting the shared disk<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</strong>&#8212;&#8212;&#8212;<br />
[<strong><span style="color:#808080;">do below on both VMS1 and VMS2</span></strong>]</p>
<p><span style="color:#800000;">[VMS1:root]$service o2cb status<br />
[VMS1:root]$service o2cb load<br />
[VMS1:root]$service o2cb online<br />
[VMS1:root]$service o2cb configure =&gt;go for the defaults&gt;<br />
[VMS1:root]$service o2cb start</span><br />
&lt;if any typo err in the cluster.conf it will throw error, in that case correct the typo error and offline and unload o2cb &gt;<br />
<span style="color:#800000;">[VMS1:root]$sevice o2cb offline<br />
[VMS1:root]$sevice o2cb unload<br />
:<br />
:</span></p>
<p>Make sure the service O2CB is started after reboot<br />
<span style="color:#800000;">[VMS1:root]$chkconfig &#8211;levels 345 o2cb on<br />
[VMS1:root]$chkconfig &#8211;list o2cb</span></p>
<p>Try to mount the shared iSCSI disk manually to check:<br />
<span style="color:#800000;">$mount /dev/sdb1 /OVS -t ocfs2<br />
Unmount it<br />
$umount /dev/sdb1</span></p>
<p>For the <span style="color:#003366;"><strong>High Availability</strong></span> to work,<br />
The <span style="color:#003366;">shared disk must be mounted under <span style="color:#800000;">/OVS</span></span> and should be in<span style="color:#800000;"> /etc/ovs/repositories</span> instead of mounting by adding details in fstab.<br />
Make entries in the <span style="color:#800000;">/etc/ovs/repositories</span> using the<span style="color:#003366;"> /usr/lib/ovs-makerepo</span> command<br />
[http://download.oracle.com/docs/cd/E11081_01/doc/doc.21/e10898/ha.htm#CHDEFABI]</p>
<p><span style="color:#800000;">$/usr/lib/ovs/ovs-makerepo /dev/sdb1 C &#8220;cluster root&#8221;<br />
$/usr/lib/ovs/ovs-cluster-check &#8211;alter-fstab</span><br />
&lt;this should be done on all the vm servers(vms1 and vms2)&gt;</p>
<pre><span style="color:#3366ff;">[root@vms1 OVS]#<strong> <span style="color:#ff6600;">/usr/lib/ovs/ovs-makerepo /dev/sdb1 C "cluster root"</span></strong>
Initializing NEW repository /dev/sdb1
Updating local repository list.
ovs-makerepo complete
[root@vms1 OVS]#
[root@vms1 OVS]# <span style="color:#ff6600;"><strong>cat /etc/ovs/repositories</strong></span>
# This configuration file was generated by ovs-makerepo
# DO NOT EDIT
@211419C38BD34CE4A0B9083A47F7AEBF /dev/sdb1
[root@vms1 OVS]#
[root@vms1 OVS]# <span style="color:#ff6600;"><strong>/usr/lib/ovs/ovs-cluster-check</strong></span>
Need to remove /OVS mount from /etc/fstab, but --alter-fstab not specified.
[root@vms1 OVS]#<span style="color:#ff6600;"> <strong>/usr/lib/ovs/ovs-cluster-check --master --alter-fstab</strong></span>
Backing up original /etc/fstab to /tmp/fstab.BJZxu20292
Removing /OVS mounts in /etc/fstab
O2CB cluster ocfs2 already online
Cluster setup complete.
[root@vms1 OVS]#</span></pre>
<p>REBOOT both vms1 and vms2 and confirm that the shared disk is mounted under /OVS on both using df -h command.</p>
<p>Now we have,<br />
Storage ready with iSCSI<br />
Manager with VM Manager<br />
VMS1 with VM Server and shared iSCSI storage mounted under /OVS<br />
VMS2 with VM Server and shared iSCSI storage mounted under /OVS</p>
<p>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++</p>
<p><strong>Create/Add Server pool and Servers from Oracle VM Manager</strong><br />
<strong>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</strong>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
<strong><span style="color:#003366;">On MANAGER:</span></strong></p>
<p><span style="color:#003366;">Server Pools -&gt; Create Pool -&gt;</span><br />
Create the pool <span style="color:#003366;"><strong>Pool1</strong> </span>with VMS1 as Server Master, Utility Server (provide root/&lt;root_passwd&gt;) and VM Server<br />
Enable HA</p>
<p><span style="color:#003366;">Servers -&gt; Add Server</span><br />
Select pool &#8216;Pool1&#8242; and add the server VMS2 as VM Server.</p>
<p><img class="alignnone size-full wp-image-139" title="create_server_pool_2" src="http://boomslaang.files.wordpress.com/2008/12/create_server_pool_2.png?w=819&#038;h=614" alt="create_server_pool_2" width="819" height="614" /></p>
<p>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++</p>
<p><strong>Creating the Guest OS<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</strong></p>
<p>Create VM Guest is divided into 4 sections:<br />
<span style="color:#003366;">1]Download and register the template<br />
2]Create the VM guest OS<br />
3]Access VM guest OS<br />
4]Configure Hostname and IP address for Guest OS<br />
</span></p>
<p><span style="color:#003366;"><br />
</span></p>
<p><span style="color:#003366;">1] <strong>Download and register the template</strong></span></p>
<p>Download &#8220;Oracle Enterprise Linux 5 Update 2 template -PV Small x86(32 bit).zip&#8221; from http://edelivery.oracle.com/linux<br />
Two templates are available for download.<br />
Small &#8211; 4Gb<br />
Large &#8211; 10gb<br />
The default <span style="color:#003366;"><strong>r</strong><strong>oot </strong></span>password is <strong><span style="color:#003366;">ovsroot</span></strong>.</p>
<p>Oracle VM Manger can download/register the template from <span style="color:#003366;">HTTP/FTP source</span> or from a <span style="color:#003366;">Machine in the Server Pool</span> or <span style="color:#003366;">Linux P2V Import</span>.</p>
<p>We will download the file and copy it to either VMS1 or VMS2, which are members of the pool &#8216;<span style="color:#003366;">Pool1</span>&#8216;.</p>
<p>Create the <span style="color:#003366;">seed_poo</span>l directory to hold the templates so that the VM Manger can detect and register the template. The seed_pool directory should be directly under <span style="color:#003366;">/OVS</span>. Unzip and untar the file in seed_pool and then import and register the template from VM Manager.</p>
<p><span style="color:#800000;">[VMS1:root]mkdir /OVS/seed_pool<br />
[VMS1:root]mv &#8220;Oracle Enterprise Linux 5 Update 2 template -PV Small x86(32 bit).zip&#8221; /OVS/seed_pool/<br />
[VMS1:root]unzip &#8220;Oracle Enterprise Linux 5 Update 2 template -PV Small x86(32 bit).zip&#8221;<br />
[VMS1:root]tar -xzvf OVM_EL5U2_X86_PVM_10GB.tgz<br />
[VMS1:root]</span></p>
<p>Once the <span style="color:#003366;">OVM_EL5U2_X86_PVM_4GB<strong>.tgz</strong></span> is untarred, the template will be available in <span style="color:#003366;">OVM_EL5U2_X86_PVM_4GB</span> directory. After extracting the tar file the size of the OVM_EL5U2_X86_PVM_4GB.tgz will be around 6.5GB, so make sure that you have enough space in seed_pool before extracting the tar file.</p>
<p><span style="color:#003366;">To Discover and Register the template:</span></p>
<p><span style="color:#003366;">VM Manager -&gt; Resources -&gt; Virtual Machine Templates -&gt; Select from Server Pool -&gt; [Next]</span></p>
<p><img class="alignnone size-full wp-image-148" title="template_registration_1" src="http://boomslaang.files.wordpress.com/2008/12/template_registration_1.jpg?w=803&#038;h=494" alt="template_registration_1" width="803" height="494" /></p>
<p>[APPROVE]</p>
<p><span style="color:#003366;">2]<strong>Create the VM</strong></span></p>
<p><span style="color:#003366;">VM Manger -&gt; Virtual Machines -&gt; [Create Virtual Machine]</span></p>
<p><img class="alignnone size-full wp-image-140" title="create_vm_1_1" src="http://boomslaang.files.wordpress.com/2008/12/create_vm_1_1.jpg?w=808&#038;h=333" alt="create_vm_1_1" width="808" height="333" /></p>
<p>[NEXT]</p>
<p>The<span style="color:#003366;"> Preferred Server = Auto/Manual </span>. I chose MANUAL and selected VMS1 as the preferred server</p>
<p><img class="alignnone size-full wp-image-141" title="create_vm_2_2" src="http://boomslaang.files.wordpress.com/2008/12/create_vm_2_2.jpg?w=803&#038;h=454" alt="create_vm_2_2" width="803" height="454" /></p>
<p>[NEXT]</p>
<p>Select the OEL 5.2 template. Select the one we have registered now (4Gb).</p>
<p><img class="alignnone size-full wp-image-142" title="create_vm_3_3" src="http://boomslaang.files.wordpress.com/2008/12/create_vm_3_3.jpg?w=803&#038;h=354" alt="create_vm_3_3" width="803" height="354" /></p>
<p>[NEXT]</p>
<p>Enter the Virtual Machine Name and the Console password and enable HA too. The console password is needed to access the guest OS through vncviewer or VM Manger Console option. This password will be in vm.cfg. (Console Password= <span style="color:#003366;">oracle</span>)</p>
<p><img class="alignnone size-full wp-image-143" title="create_vm_4_4" src="http://boomslaang.files.wordpress.com/2008/12/create_vm_4_4.jpg?w=803&#038;h=462" alt="create_vm_4_4" width="803" height="462" /></p>
<p>[NEXT]</p>
<p><img class="alignnone size-full wp-image-144" title="create_vm_5_5" src="http://boomslaang.files.wordpress.com/2008/12/create_vm_5_5.jpg?w=805&#038;h=523" alt="create_vm_5_5" width="805" height="523" /></p>
<p>[CONFIRM]</p>
<p><img class="alignnone size-full wp-image-145" title="create_vm_6_6" src="http://boomslaang.files.wordpress.com/2008/12/create_vm_6_6.jpg?w=803&#038;h=530" alt="create_vm_6_6" width="803" height="530" /></p>
<p>[<span style="color:#003366;">CREATE VIRTUAL MACHINE</span>]</p>
<p>After the creation the GUEST2 will be in &#8216;<strong><span style="color:#ff0000;">Powered OFF&#8217;</span></strong> state.<br />
There will be a direcotry created under<span style="color:#800000;"> /OVS/running_pool/</span> for this Paravitualized Guest.<br />
cd /OVS/running_pool/52_guest2/</p>
<p>Actually what happens is that the manager will make a copy of the template in the<span style="color:#003366;"> seed_pool</span> to <span style="color:#003366;">running_pool</span>. So the drive should have a minimum of around 6.5 GB of space, since we use the &#8217;small&#8217; template. So you can monitor this activity from the <span style="color:#003366;">ovs_operation.log</span> of the<span style="color:#003366;"> <strong>utility server</strong></span>, in our case its VMS1.</p>
<p><span style="color:#800000;">[VMS1:root]$tail -f /var/log/ovs_agent/ovs_operation.log</span></p>
<p>Also to monitor the &#8216;cp&#8217; status.<br />
<span style="color:#800000;"> [VMS1:root]$ cd /OVS/running_pool<br />
[VMS1:root]$du -sh */ </span>and monitor the disk space used</p>
<p><img class="alignnone size-full wp-image-146" title="create_vm_7_7" src="http://boomslaang.files.wordpress.com/2008/12/create_vm_7_7.jpg?w=803&#038;h=467" alt="create_vm_7_7" width="803" height="467" /></p>
<p>As mentioned after the creation the Virtual Machine will be in &#8220;<strong><span style="color:#ff0000;">Powered OFF</span></strong>&#8221; state.<br />
The directory /OVS/running_pool/&lt;vm name&gt;/, will contain the system.img file and the vm.cfg for this Guest2. The vm.cfg should be modified for the guest2.</p>
<p>I modified my vm.cfg to</p>
<pre><span style="color:#3366ff;">[VMS1:root]<span style="color:#ff6600;"><strong>$cd /OVS/running_pool/52_guest2/</strong></span>
[VMS1:root]<span style="color:#ff6600;"><strong>$cat vm.cfg</strong></span>
bootloader = '/usr/bin/pygrub'
disk = ['file:/OVS/running_pool/52_guest2/system.img,hda,w']
maxmem = 600
memory = 500
name = '52_guest2'
on_crash = 'restart'
on_reboot = 'restart'
uuid = 'cfd16fd1-1c7f-691a-51b9-2c5cbcc714a9'
vcpus = 1
vfb = ['type=vnc,vncunused=1,vnclisten=0.0.0.0,vncpasswd=oracle']
vif = ['bridge=xenbr0,mac=00:16:3E:5C:1C:F6,type=netfront']
vif_other_config = []</span></pre>
<p><span style="color:#003366;">VM Manager-&gt; Select Guest2 and &#8220;Power On&#8221;</span></p>
<p><img class="alignnone size-full wp-image-147" title="create_vm_8_8" src="http://boomslaang.files.wordpress.com/2008/12/create_vm_8_8.jpg?w=803&#038;h=467" alt="create_vm_8_8" width="803" height="467" /></p>
<p>The status of the guest os &#8217;start&#8217; operation can be checked from the log file (check /var/log/ovs-agent/ovs_operation.log for success in starting or not ) on the VM server where the guest is started.</p>
<pre><span style="color:#3366ff;">"2008-12-18 10:59:18" INFO=&gt; xen_start_vm: success. vm('/OVS/running_pool/12_guest1')
"2008-12-18 10:59:18" INFO=&gt; start_vm: vm('/OVS/running_pool/12_guest1') on srv('192.168.20.100') =&gt; success
"2008-12-18 10:59:18" INFO=&gt; start_vm: success. vm('/OVS/running_pool/12_guest1') ip=''
</span></pre>
<p><span style="color:#003366;">3]<strong>Access VM Guest OS<br />
</strong></span></p>
<p>Once the Guest2 is running, we can connect to it using the</p>
<p><span style="color:#003366;"><strong>(i)</strong>The &#8216;console&#8217; option from VM Manager</span> provided ovm-console-1.0.0-2.i386.rpm is installed on the Manager server.<br />
Select the <span style="color:#003366;">Guest2 -&gt; Console -&gt;</span> &#8216;provide the vncpassword&#8217;<br />
If you have forgot the vncpassword, its mentioned in <span style="color:#003366;">/OVS/running_pool/&lt;guest_name&gt;/vm.cfg</span></p>
<p><span style="color:#003366;"><strong>(ii)</strong>vncviewer utility</span><br />
<span style="color:#800000;">[Manager:root]$vncviewer &lt;vnc_server&gt;:&lt;port&gt;</span></p>
<pre><span style="color:#3366ff;">[Manager:root]$vncviewer 192.168.20.100:5900</span></pre>
<p>The vncserver is the virtual server(VMS1 or VMS2) hosting the guestOS.<br />
The first guest will use port 5900, the second will use 5901 and so on. Provide the VNC_Password when asked.</p>
<p><span style="color:#003366;"><strong>(iii)</strong>xm console &lt;domain_name&gt;</span><br />
<span style="color:#800000;">[VMS1:root]$xm console 52_guest2<br />
Login: root<br />
Passwd: ovsroot </span>=&gt; the default root password for <strong><span style="color:#003366;">root </span></strong>in OEL Template is <strong><span style="color:#003366;">ovsroot</span></strong></p>
<p><span style="color:#003366;">4]<strong> </strong></span><strong><span style="color:#003366;">Configure Hostname and IP address for Guest OS</span></strong></p>
<p>By deault the guestOS from template doesn&#8217;t have any IP address or hostname. We need to edit 3 files to set it.</p>
<p><span style="color:#003366;"><strong>(i)</strong>/etc/sysconfig/network</span><br />
HOSTNAME=guest2<br />
NETWORKING=yes<br />
..</p>
<p><span style="color:#003366;"><strong>(ii)</strong>/etc/hosts</span><br />
&lt;add hostname and ip address&gt;<br />
192.168.20.101        guest2</p>
<p><span style="color:#003366;"><strong>(iii)</strong>/etc/sysconfig/network-scripts/ifcfg-eth0</span><br />
HWADDR should be the same as the MAC in vm.cfg of VMSERVER(in <span style="color:#003366;">/OVS/running_pool/&lt;vmserver_name&gt;/vm.cfg</span>)<br />
IPADDR should be the same as in the /etc/hosts file</p>
<pre><span style="color:#3366ff;">[GUEST2:root]$<span style="color:#ff6600;">cat /etc/sysconfig/network-scripts/ifcfg-eth0</span>
# Intel Corporation 82540EM Gigabit Ethernet Controller
DEVICE=eth0
BOOTPROTO=none
BROADCAST=192.168.20.255
HWADDR=00:08:74:FC:6F:06
IPADDR=192.168.20.99
NETMASK=255.255.255.0
NETWORK=192.168.20.0
ONBOOT=yes
TYPE=Ethernet
USERCTL=no
IPV6INIT=no
PEERDNS=yes</span></pre>
<p>Finally restart the network service</p>
<p><span style="color:#800000;">$service network restart</span></p>
<p><strong>Log files</strong><br />
&#8212;&#8212;&#8212;&#8212;-<br />
<span style="color:#003366;"><span style="text-decoration:underline;">VM Agent</span></span><br />
/opt/ovs-agent-2.2/logs/ovs_trace.log<br />
service ovs-agent status/start/stop/restart<br />
<span style="color:#003366;"><span style="text-decoration:underline;">VM Server</span></span><br />
/var/log/xen/<br />
var/log/ovs-agent/ovs_operation.log (on utility server)</p>
<p><strong>Troubleshooting<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</strong><br />
<strong>(i) </strong>If for some reason the shared disk is not mounted:</p>
<p>1]check for o2cb status (unload,load and online)<br />
2]cat /etc/partitions        =&gt; check whether the partition is discovered ?<br />
3]service iscsi restart<br />
4]cat /etc/partitions        =&gt; check whether the partition is discovered ?<br />
5]/usr/lib/ovs-cluster-check =&gt; OK ?<br />
6]/etc/init.d/ovsrepositories start</p>
<p><strong>(ii) </strong>Installing Oracle</p>
<p>The most of the kernel values are already configured in the template. The template OS doesn&#8217;t have X server for the GUI installation of Oracle RDBMS.</p>
<p>To install oracle using GUI connect using ssh with X flag</p>
<p>[MANAGER:root]ssh -X oracle@guest1<br />
./runInstaller.sh</p>
<p><strong>(iii)</strong>Mounting CD ROM in Guest OS</p>
<p>Check this site http://www.option-c.com/xwiki/Xen_CDROM_Support</p>
<p><strong>(iv)</strong>Uninstall VM Manager</p>
<p>/opt/ovs-manager-2.1/bin/runInstaller<br />
&lt;all files pertaining to ovm manager will be removed including the XE database&gt;</p>
<p><strong>(v)</strong>Registering existing VM guests in VM manager</p>
<p><span style="color:#003366;">Resources-&gt; Virtual Machine Images-&gt; Import -&gt; Select from server pool(discover and register)</span><br />
The system.img and vm.cfg file are supposed to be under /OVS/running_pool/&lt;guest_name&gt;/</p>
<p><span style="text-decoration:underline;"><strong>References</strong></span><br />
http://download.oracle.com/docs/cd/E11081_01/welcome.html<br />
http://forums.oracle.com<br />
http://www.oracle.com/technology/pub/articles/hunter_rac10gr2_iscsi.html</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/boomslaang.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/boomslaang.wordpress.com/149/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/boomslaang.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/boomslaang.wordpress.com/149/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/boomslaang.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/boomslaang.wordpress.com/149/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/boomslaang.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/boomslaang.wordpress.com/149/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/boomslaang.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/boomslaang.wordpress.com/149/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=boomslaang.wordpress.com&blog=2073764&post=149&subd=boomslaang&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://boomslaang.wordpress.com/2008/12/25/setup-oracle-vm-using-iscsi-storage/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/07bdd99e922bd683bf6508a0f9ad08dc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">J..J</media:title>
		</media:content>

		<media:content url="http://boomslaang.files.wordpress.com/2008/12/ora_vm_arch.jpg" medium="image">
			<media:title type="html">ora_vm_arch</media:title>
		</media:content>

		<media:content url="http://boomslaang.files.wordpress.com/2008/12/op2.png" medium="image">
			<media:title type="html">op2</media:title>
		</media:content>

		<media:content url="http://boomslaang.files.wordpress.com/2008/12/op4.png" medium="image">
			<media:title type="html">op4</media:title>
		</media:content>

		<media:content url="http://boomslaang.files.wordpress.com/2008/12/op6.png" medium="image">
			<media:title type="html">op6</media:title>
		</media:content>

		<media:content url="http://boomslaang.files.wordpress.com/2008/12/op7.png" medium="image">
			<media:title type="html">op7</media:title>
		</media:content>

		<media:content url="http://boomslaang.files.wordpress.com/2008/12/op8.png" medium="image">
			<media:title type="html">op8</media:title>
		</media:content>

		<media:content url="http://boomslaang.files.wordpress.com/2008/12/op9.png" medium="image">
			<media:title type="html">op9</media:title>
		</media:content>

		<media:content url="http://boomslaang.files.wordpress.com/2008/12/op10.png" medium="image">
			<media:title type="html">op10</media:title>
		</media:content>

		<media:content url="http://boomslaang.files.wordpress.com/2008/12/op11.png" medium="image">
			<media:title type="html">op11</media:title>
		</media:content>

		<media:content url="http://boomslaang.files.wordpress.com/2008/12/op12.png" medium="image">
			<media:title type="html">op12</media:title>
		</media:content>

		<media:content url="http://boomslaang.files.wordpress.com/2008/12/create_server_pool_2.png" medium="image">
			<media:title type="html">create_server_pool_2</media:title>
		</media:content>

		<media:content url="http://boomslaang.files.wordpress.com/2008/12/template_registration_1.jpg" medium="image">
			<media:title type="html">template_registration_1</media:title>
		</media:content>

		<media:content url="http://boomslaang.files.wordpress.com/2008/12/create_vm_1_1.jpg" medium="image">
			<media:title type="html">create_vm_1_1</media:title>
		</media:content>

		<media:content url="http://boomslaang.files.wordpress.com/2008/12/create_vm_2_2.jpg" medium="image">
			<media:title type="html">create_vm_2_2</media:title>
		</media:content>

		<media:content url="http://boomslaang.files.wordpress.com/2008/12/create_vm_3_3.jpg" medium="image">
			<media:title type="html">create_vm_3_3</media:title>
		</media:content>

		<media:content url="http://boomslaang.files.wordpress.com/2008/12/create_vm_4_4.jpg" medium="image">
			<media:title type="html">create_vm_4_4</media:title>
		</media:content>

		<media:content url="http://boomslaang.files.wordpress.com/2008/12/create_vm_5_5.jpg" medium="image">
			<media:title type="html">create_vm_5_5</media:title>
		</media:content>

		<media:content url="http://boomslaang.files.wordpress.com/2008/12/create_vm_6_6.jpg" medium="image">
			<media:title type="html">create_vm_6_6</media:title>
		</media:content>

		<media:content url="http://boomslaang.files.wordpress.com/2008/12/create_vm_7_7.jpg" medium="image">
			<media:title type="html">create_vm_7_7</media:title>
		</media:content>

		<media:content url="http://boomslaang.files.wordpress.com/2008/12/create_vm_8_8.jpg" medium="image">
			<media:title type="html">create_vm_8_8</media:title>
		</media:content>
	</item>
		<item>
		<title>How to identify the type(32 or 64bit) of software installed ?</title>
		<link>http://boomslaang.wordpress.com/2008/12/04/how-to-identify-the-type32-or-64bit-of-software-installed/</link>
		<comments>http://boomslaang.wordpress.com/2008/12/04/how-to-identify-the-type32-or-64bit-of-software-installed/#comments</comments>
		<pubDate>Thu, 04 Dec 2008 02:25:46 +0000</pubDate>
		<dc:creator>John Jacob</dc:creator>
				<category><![CDATA[oracle]]></category>
		<category><![CDATA[oracle software what byte]]></category>
		<category><![CDATA[type of oracle installation]]></category>

		<guid isPermaLink="false">http://boomslaang.wordpress.com/?p=119</guid>
		<description><![CDATA[One of the first thing that we should consider before any patching is to identify the type of software installed.Upgrading a 32bit intallation using a patch for 64bit would make your day hell.
Well, for Oracle RDBMS one could identify it from the messages while executing sqlplus uid/passwd from the oracle db home.
[]$ sqlplus / as [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=boomslaang.wordpress.com&blog=2073764&post=119&subd=boomslaang&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>One of the first thing that we should consider before any patching is to identify the type of software installed.Upgrading a 32bit intallation using a patch for 64bit would make your day hell.</p>
<p>Well, for Oracle RDBMS one could identify it from the messages while executing sqlplus uid/passwd from the oracle db home.</p>
<pre><span style="color:#000080;">[]$ sqlplus / as sysdba</span>
<span style="color:#000080;">SQL*Plus: Release 10.2.0.3.0 - Production on Thu Dec 4 11:02:28 2008
Copyright (c) 1982, 2006, Oracle.  All Rights Reserved.</span>
<span style="color:#000080;">Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - <span style="color:#800000;">64bit Production</span>
With the Partitioning, Real Application Clusters, OLAP and Data Mining options
SQL&gt;</span></pre>
<p>But how about Oracle Agent, Oracle HTTP Server, Oracle Cluster etc.<br />
The software type is mentioned in every <span style="color:#800000;"><strong>ORACLE_HOME/inventory/ContentsXML/oraclehomeproperties.xml</strong></span>. I believe this file is available in almost all oracle products(i have checked for rdbms,cluster,agent,client,http server,Grid Control(oms)).</p>
<p>For 64 bit software installations on Solaris SPARC 64bit OS it will be</p>
<pre><span style="color:#000080;"> &lt;ARU_PLATFORM_INFO&gt;
      &lt;ARU_ID&gt;<span style="color:#800000;"><strong>23</strong></span>&lt;/ARU_ID&gt;
      &lt;ARU_ID_DESCRIPTION&gt;<span style="color:#800000;"><strong>Solaris Operating System (SPARC 64-bit)</strong></span>
                &lt;/ARU_ID_DESCRIPTION&gt;
   &lt;/ARU_PLATFORM_INFO&gt;</span></pre>
<p>For 32 bit software installations on Solaris SPARC 64bit OS it will be</p>
<pre>   <span style="color:#000080;">&lt;ARU_PLATFORM_INFO&gt;
                &lt;ARU_ID&gt;<strong><span style="color:#800000;">453</span></strong>&lt;/ARU_ID&gt;
                &lt;ARU_ID_DESCRIPTION&gt;<span style="color:#800000;"><strong>Solaris Operating System (SPARC 32-bit)</strong>
                <span style="color:#000080;">&lt;/ARU_ID_DESCRIPTION&gt;</span>
</span>    &lt;/ARU_PLATFORM_INFO&gt;</span></pre>
<p>For 32 bit installations on Win2k 32bit OS it will be</p>
<pre> <span style="color:#000080;">&lt;ARU_PLATFORM_INFO&gt;
               &lt;ARU_ID&gt;<strong><span style="color:#800000;">912</span></strong>&lt;/ARU_ID&gt;
               &lt;ARU_ID_DESCRIPTION&gt;<span style="color:#800000;"><strong>Microsoft Windows (32-bit)</strong></span>
               &lt;/ARU_ID_DESCRIPTION&gt;
  &lt;/ARU_PLATFORM_INFO&gt;</span></pre>
<p>For 32 bit installations on CentOS 32bit OS it will be</p>
<pre> <span style="color:#000080;">&lt;ARU_PLATFORM_INFO&gt;
              &lt;ARU_ID&gt;<span style="color:#800000;"><strong>46</strong></span>&lt;/ARU_ID&gt;
              &lt;ARU_ID_DESCRIPTION&gt;<span style="color:#800000;"><strong>Linux x86
</strong></span>              &lt;/ARU_ID_DESCRIPTION&gt;
  &lt;/ARU_PLATFORM_INFO&gt;</span></pre>
<p><span style="color:#000000;">On Solaris SPARC environments ARU_ID =23 is for 64bit and 453 is for 32bit software installations.<br />
I &#8216;am not sure of other environments, may be some one can update me <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> .</span></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/boomslaang.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/boomslaang.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/boomslaang.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/boomslaang.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/boomslaang.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/boomslaang.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/boomslaang.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/boomslaang.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/boomslaang.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/boomslaang.wordpress.com/119/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=boomslaang.wordpress.com&blog=2073764&post=119&subd=boomslaang&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://boomslaang.wordpress.com/2008/12/04/how-to-identify-the-type32-or-64bit-of-software-installed/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/07bdd99e922bd683bf6508a0f9ad08dc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">J..J</media:title>
		</media:content>
	</item>
		<item>
		<title>Recover from loss of Active redo log file</title>
		<link>http://boomslaang.wordpress.com/2008/12/04/rec/</link>
		<comments>http://boomslaang.wordpress.com/2008/12/04/rec/#comments</comments>
		<pubDate>Thu, 04 Dec 2008 02:15:40 +0000</pubDate>
		<dc:creator>John Jacob</dc:creator>
				<category><![CDATA[Oracle Backup and Recovery]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[ORA-00312]]></category>
		<category><![CDATA[ORA-00313]]></category>
		<category><![CDATA[ORA-27037]]></category>
		<category><![CDATA[redo log recover]]></category>

		<guid isPermaLink="false">http://boomslaang.wordpress.com/?p=117</guid>
		<description><![CDATA[LGWR,logwriter writes the redo data from the log buffer cache to the redo log files when,
1] A transaction is commited
2] Every 3 Seconds
3] When redo log buffer is 1/3 full
The LGWR process writes to the redo log file in a circluar fashion. After log group 1 is written, the LGWR will move to log group [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=boomslaang.wordpress.com&blog=2073764&post=117&subd=boomslaang&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>LGWR,logwriter writes the redo data from the log buffer cache to the redo log files when,<br />
1] A transaction is commited<br />
2] Every 3 Seconds<br />
3] When redo log buffer is 1/3 full</p>
<p>The LGWR process writes to the redo log file in a circluar fashion. After log group 1 is written, the LGWR will move to log group 2 and meanwhile ARC(archiver) will archive log group 1. The LGWR will complain if one or all of the members of a log group are missing. The database will be  unable to serve any requests if all members of group are missing.</p>
<p>If all the members of a redo log group goes missing before the ARC process could archive it.<br />
Oracle complains with error ORA-00313,ORA-00312,ORA-27037 once all members of the log file group goes missing.<br />
The database halts unable to switch the log file.</p>
<p>1] Shutdown the database<br />
2] Restore the datafiles and proceed for an incomplete recovery until the missing log sequence.<br />
2] Mount the database<br />
startup mount;<br />
3] Check the status of the missing log file group from v$log view.<br />
select group#,sequence#,bytes,first_change#,to_char(first_time,&#8217;DD-MM-YY hh24:mi:ss&#8217;) tim,status from v$log;<br />
5] If STATUS = ACTIVE and ARCHIVED = NO<br />
recover database until time &#8216;yyyy-mm-dd:hh24:mi:ss&#8217;;<br />
* &#8217;ss&#8217; in the seconds should be 1 second less than the first_time of the missing redo log file.<br />
6] Open the database with resetlogs option<br />
7] Take a solid backup</p>
<p>===ARENA===</p>
<pre><span style="color:#000080;">Mon Oct 27 15:04:18 2008</span>
<span style="color:#000080;">Errors in file /u01/app/oracle/admin/burp/bdump/burp_arc0_5826.trc:</span>
<span style="color:#000080;">ORA-00313: open failed for members of log group 1 of thread 1</span>
<span style="color:#000080;">ORA-00312: online log 1 thread 1: '/u01/burp/oradata/redo01.log'</span>
<span style="color:#000080;">ORA-27037: unable to obtain file status</span>
<span style="color:#000080;">Linux Error: 2: No such file or directory</span>
<span style="color:#000080;">Additional information: 3</span></pre>
<p>I did shutdown the DB and restored the *.dbf files.</p>
<p>cp -rp /u01/burp/backup u01/burp/oradata/</p>
<p>Startup mount;</p>
<pre>SQL&gt; select group#,sequence#,bytes,first_change#,to_char(first_time,'DD-MM-YY hh24:mi:ss') tim,status from v$log;
    GROUP#  SEQUENCE#      BYTES FIRST_CHANGE# TIM               STATUS
---------- ---------- ---------- ------------- ----------------- ----------------
         1        148    5242880        206241 27-10-08 15:02:14 INACTIVE
         3        147    5242880        206196 27-10-08 15:02:13 INACTIVE
         2        149    5242880        206336 27-10-08 15:04:18 CURRENT</pre>
<pre>SQL&gt; recover database until time '2008-10-27:15:02:13';
:
:
Log applied.
Media recovery complete.
SQL&gt;</pre>
<pre>SQL&gt; alter database open resetlogs;
Database altered.
SQL&gt;</pre>
<p>All data after 27-10-08 15:02:13 will be lost.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/boomslaang.wordpress.com/117/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/boomslaang.wordpress.com/117/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/boomslaang.wordpress.com/117/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/boomslaang.wordpress.com/117/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/boomslaang.wordpress.com/117/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/boomslaang.wordpress.com/117/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/boomslaang.wordpress.com/117/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/boomslaang.wordpress.com/117/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/boomslaang.wordpress.com/117/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/boomslaang.wordpress.com/117/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=boomslaang.wordpress.com&blog=2073764&post=117&subd=boomslaang&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://boomslaang.wordpress.com/2008/12/04/rec/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/07bdd99e922bd683bf6508a0f9ad08dc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">J..J</media:title>
		</media:content>
	</item>
	</channel>
</rss>