<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Oracle standby database in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-standby-database/m-p/2989396#M923604</link>
    <description>hi,&lt;BR /&gt;&lt;BR /&gt;It is possible to move from raw volumes to filesystems by using "dd" command.&lt;BR /&gt;&lt;BR /&gt;You can do this by just copying the number of oracle blocks(oracle block used by raw device datafile).&lt;BR /&gt;The count parameter will take care of actual size of datafile. &lt;BR /&gt;&lt;BR /&gt;These are the following steps to move from raw volumes to filesystems : &lt;BR /&gt;&lt;BR /&gt;STEP-1 : &lt;BR /&gt;What is the value of "db_block_size". &lt;BR /&gt;===================================================&lt;BR /&gt;show parameter db_block_size &lt;BR /&gt;output like: &lt;BR /&gt;NAME TYPE VALUE &lt;BR /&gt;------------------------------------ ------- ------------------ &lt;BR /&gt;db_block_size integer 8192 &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;STEP-2 : &lt;BR /&gt;Find out how many oracle block used by raw device datafile. &lt;BR /&gt;====================================================================&lt;BR /&gt;select name,blocks from v$datafile; &lt;BR /&gt;&lt;BR /&gt;Output like: &lt;BR /&gt;NAME BLOCKS &lt;BR /&gt;---------------------------------------------------- ---------- &lt;BR /&gt;/dev/rVc1.jv.816sys1 30592 &lt;BR /&gt;&lt;BR /&gt;Note: The oracle datafilesize always = Number of oracle blocks + 1 File Header Block &lt;BR /&gt;The size of file header block is same as oracle block size. &lt;BR /&gt;&lt;BR /&gt;So, Your new filesystem datafile size should be like below: &lt;BR /&gt;/dev/rVc1.jv.816sys1 = 30592 +1 = 30593 Blocks =30593*8K in KB as the block size is 8K. &lt;BR /&gt;&lt;BR /&gt;STEP-3:&lt;BR /&gt;Now you are in a position to configure your dd command to copy the exact portion of the raw device to filesystem datafile. &lt;BR /&gt;==========================================================================================================================&lt;BR /&gt;So you know how many bytes you have to copy. Lets build the dd command. &lt;BR /&gt;&lt;BR /&gt;"bs"=BlockSize - Specifies both the input and output block size, superceding the ibs and obs flags. The block size values specified with &lt;BR /&gt;the bs flag must always be a multiple of the physical block size for the media being used. We have to choose the value of "bs" &lt;BR /&gt;like 1K or 2K or 4K . &lt;BR /&gt;&lt;BR /&gt;"skip"=SkipInputBlocks - Skips the specified SkipInputBlocks value of input blocks before starting to copy. &lt;BR /&gt;So if we choose "bs"=4k, we have to choose "skip"=1 or for "bs"=2k, we have to choose "skip"=2. &lt;BR /&gt;&lt;BR /&gt;"count" is for how many blocks ("bs") we should copy. Our case total number of oracle block need to be copied is 30593, which is of 8K. &lt;BR /&gt;So as the value of "bs" is 4k , count should be =30593*2=61186 or if the value of "bs" is 2k , count should be =30593*4=122372. &lt;BR /&gt;&lt;BR /&gt;So the command should be like below: &lt;BR /&gt;--------------------------------------- &lt;BR /&gt;dd if=&amp;lt; input raw device &amp;gt; bs=&lt;BLOCK size=""&gt; skip=&lt;NO of="" bs="" to="" skip=""&gt; count=&lt;NO of="" bs="" to="" copy=""&gt; of=&lt;OUT put="" filesystem="" file=""&gt; &lt;BR /&gt;dd if=/dev/rVc1.jv.816sys1 bs=4096 skip=1 count=61186 of=/oracle/datafile/system.dbf &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps!&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;Yogeeraj&lt;/OUT&gt;&lt;/NO&gt;&lt;/NO&gt;&lt;/BLOCK&gt;</description>
    <pubDate>Thu, 05 Jun 2003 08:34:02 GMT</pubDate>
    <dc:creator>Yogeeraj_1</dc:creator>
    <dc:date>2003-06-05T08:34:02Z</dc:date>
    <item>
      <title>Oracle standby database</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-standby-database/m-p/2989393#M923601</link>
      <description>I want to create a standby database of the primary database. My problem is that the primary database uses raw volumes. (uncooked). I want the standby database to be on UFS. Have someone done this? Please help.</description>
      <pubDate>Thu, 05 Jun 2003 05:37:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-standby-database/m-p/2989393#M923601</guid>
      <dc:creator>Tilak Gamalath</dc:creator>
      <dc:date>2003-06-05T05:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle standby database</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-standby-database/m-p/2989394#M923602</link>
      <description>Tilak,&lt;BR /&gt;&lt;BR /&gt;The more differences between a production and standby system, the more chance there is for problems.&lt;BR /&gt;&lt;BR /&gt;Unless raw volumes is unsupported or unworkable on the standby server, I would stick to the same standard as the production server.&lt;BR /&gt;&lt;BR /&gt;Share and Enjoy! Ian</description>
      <pubDate>Thu, 05 Jun 2003 07:08:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-standby-database/m-p/2989394#M923602</guid>
      <dc:creator>Ian Dennison_1</dc:creator>
      <dc:date>2003-06-05T07:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle standby database</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-standby-database/m-p/2989395#M923603</link>
      <description>Thanks Ian,&lt;BR /&gt;&lt;BR /&gt;is it still a possibility? If so, how do you do that? How do you convert datafiles from raw to ufs for the standby database.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 05 Jun 2003 07:39:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-standby-database/m-p/2989395#M923603</guid>
      <dc:creator>Tilak Gamalath</dc:creator>
      <dc:date>2003-06-05T07:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle standby database</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-standby-database/m-p/2989396#M923604</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;It is possible to move from raw volumes to filesystems by using "dd" command.&lt;BR /&gt;&lt;BR /&gt;You can do this by just copying the number of oracle blocks(oracle block used by raw device datafile).&lt;BR /&gt;The count parameter will take care of actual size of datafile. &lt;BR /&gt;&lt;BR /&gt;These are the following steps to move from raw volumes to filesystems : &lt;BR /&gt;&lt;BR /&gt;STEP-1 : &lt;BR /&gt;What is the value of "db_block_size". &lt;BR /&gt;===================================================&lt;BR /&gt;show parameter db_block_size &lt;BR /&gt;output like: &lt;BR /&gt;NAME TYPE VALUE &lt;BR /&gt;------------------------------------ ------- ------------------ &lt;BR /&gt;db_block_size integer 8192 &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;STEP-2 : &lt;BR /&gt;Find out how many oracle block used by raw device datafile. &lt;BR /&gt;====================================================================&lt;BR /&gt;select name,blocks from v$datafile; &lt;BR /&gt;&lt;BR /&gt;Output like: &lt;BR /&gt;NAME BLOCKS &lt;BR /&gt;---------------------------------------------------- ---------- &lt;BR /&gt;/dev/rVc1.jv.816sys1 30592 &lt;BR /&gt;&lt;BR /&gt;Note: The oracle datafilesize always = Number of oracle blocks + 1 File Header Block &lt;BR /&gt;The size of file header block is same as oracle block size. &lt;BR /&gt;&lt;BR /&gt;So, Your new filesystem datafile size should be like below: &lt;BR /&gt;/dev/rVc1.jv.816sys1 = 30592 +1 = 30593 Blocks =30593*8K in KB as the block size is 8K. &lt;BR /&gt;&lt;BR /&gt;STEP-3:&lt;BR /&gt;Now you are in a position to configure your dd command to copy the exact portion of the raw device to filesystem datafile. &lt;BR /&gt;==========================================================================================================================&lt;BR /&gt;So you know how many bytes you have to copy. Lets build the dd command. &lt;BR /&gt;&lt;BR /&gt;"bs"=BlockSize - Specifies both the input and output block size, superceding the ibs and obs flags. The block size values specified with &lt;BR /&gt;the bs flag must always be a multiple of the physical block size for the media being used. We have to choose the value of "bs" &lt;BR /&gt;like 1K or 2K or 4K . &lt;BR /&gt;&lt;BR /&gt;"skip"=SkipInputBlocks - Skips the specified SkipInputBlocks value of input blocks before starting to copy. &lt;BR /&gt;So if we choose "bs"=4k, we have to choose "skip"=1 or for "bs"=2k, we have to choose "skip"=2. &lt;BR /&gt;&lt;BR /&gt;"count" is for how many blocks ("bs") we should copy. Our case total number of oracle block need to be copied is 30593, which is of 8K. &lt;BR /&gt;So as the value of "bs" is 4k , count should be =30593*2=61186 or if the value of "bs" is 2k , count should be =30593*4=122372. &lt;BR /&gt;&lt;BR /&gt;So the command should be like below: &lt;BR /&gt;--------------------------------------- &lt;BR /&gt;dd if=&amp;lt; input raw device &amp;gt; bs=&lt;BLOCK size=""&gt; skip=&lt;NO of="" bs="" to="" skip=""&gt; count=&lt;NO of="" bs="" to="" copy=""&gt; of=&lt;OUT put="" filesystem="" file=""&gt; &lt;BR /&gt;dd if=/dev/rVc1.jv.816sys1 bs=4096 skip=1 count=61186 of=/oracle/datafile/system.dbf &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps!&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;Yogeeraj&lt;/OUT&gt;&lt;/NO&gt;&lt;/NO&gt;&lt;/BLOCK&gt;</description>
      <pubDate>Thu, 05 Jun 2003 08:34:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-standby-database/m-p/2989396#M923604</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2003-06-05T08:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle standby database</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-standby-database/m-p/2989397#M923605</link>
      <description>Hi,&lt;BR /&gt;as stated, it's best if you adere to your production layout.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If you want to change from raw to fs, you can use rman.&lt;BR /&gt;&lt;BR /&gt;When doing the restore, you specify different name for the datafiles, and rman takes care of skipping the right number of bytes.&lt;BR /&gt;You can check on Metalink or in rman manuals.&lt;BR /&gt;&lt;BR /&gt;  HTH,&lt;BR /&gt;   Massimo&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 05 Jun 2003 09:05:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-standby-database/m-p/2989397#M923605</guid>
      <dc:creator>Massimo Bianchi</dc:creator>
      <dc:date>2003-06-05T09:05:07Z</dc:date>
    </item>
  </channel>
</rss>

