<?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 control files: How to recreate them? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-control-files-how-to-recreate-them/m-p/2912957#M933595</link>
    <description>Hi Marty,&lt;BR /&gt;&lt;BR /&gt;the easiest way would be, if you have another Oracle DB of the same release running.&lt;BR /&gt;&lt;BR /&gt;On this DB you do a&lt;BR /&gt;ALTER DATABASE BACKUP CONTROLFILE TO TRACE;&lt;BR /&gt;You will find a *.trc file in the userdump destination which contains a quite good template of your statement.&lt;BR /&gt;&lt;BR /&gt;You will need the archive logs as well, if the backup was taken online. Since you have no binary copy of you controlfile, you might need to recover like this:&lt;BR /&gt;&lt;BR /&gt;startup nomount&lt;BR /&gt;create controlfile ...&lt;BR /&gt;recover database using backup controlfile until cancel;&lt;BR /&gt;... provide archive logs as needed.&lt;BR /&gt;alter database open resetlogs;&lt;BR /&gt;&lt;BR /&gt;Good luck&lt;BR /&gt;Volker</description>
    <pubDate>Tue, 25 Feb 2003 18:22:20 GMT</pubDate>
    <dc:creator>Volker Borowski</dc:creator>
    <dc:date>2003-02-25T18:22:20Z</dc:date>
    <item>
      <title>Oracle control files: How to recreate them?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-control-files-how-to-recreate-them/m-p/2912956#M933594</link>
      <description>The oracle control files:&lt;BR /&gt;&lt;BR /&gt;/var/opt/OV/oracle/openview/control0?.ctl&lt;BR /&gt;&lt;BR /&gt;were open when the backup of the system was done and they were not included in the backup. How do I recreate them?&lt;BR /&gt;&lt;BR /&gt;Thanks for your help,&lt;BR /&gt;Marty</description>
      <pubDate>Tue, 25 Feb 2003 18:11:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-control-files-how-to-recreate-them/m-p/2912956#M933594</guid>
      <dc:creator>Martin Johnson</dc:creator>
      <dc:date>2003-02-25T18:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle control files: How to recreate them?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-control-files-how-to-recreate-them/m-p/2912957#M933595</link>
      <description>Hi Marty,&lt;BR /&gt;&lt;BR /&gt;the easiest way would be, if you have another Oracle DB of the same release running.&lt;BR /&gt;&lt;BR /&gt;On this DB you do a&lt;BR /&gt;ALTER DATABASE BACKUP CONTROLFILE TO TRACE;&lt;BR /&gt;You will find a *.trc file in the userdump destination which contains a quite good template of your statement.&lt;BR /&gt;&lt;BR /&gt;You will need the archive logs as well, if the backup was taken online. Since you have no binary copy of you controlfile, you might need to recover like this:&lt;BR /&gt;&lt;BR /&gt;startup nomount&lt;BR /&gt;create controlfile ...&lt;BR /&gt;recover database using backup controlfile until cancel;&lt;BR /&gt;... provide archive logs as needed.&lt;BR /&gt;alter database open resetlogs;&lt;BR /&gt;&lt;BR /&gt;Good luck&lt;BR /&gt;Volker</description>
      <pubDate>Tue, 25 Feb 2003 18:22:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-control-files-how-to-recreate-them/m-p/2912957#M933595</guid>
      <dc:creator>Volker Borowski</dc:creator>
      <dc:date>2003-02-25T18:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle control files: How to recreate them?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-control-files-how-to-recreate-them/m-p/2912958#M933596</link>
      <description>Here is a template:&lt;BR /&gt;&lt;BR /&gt;May be "CHARACTER SET" applies to 8.1.x only (not really sure if it was already needed with 8.0.6).&lt;BR /&gt;&lt;BR /&gt;Volker&lt;BR /&gt;&lt;BR /&gt;-- Watch it&lt;BR /&gt;-- REUSE only, if old controlfiles exists&lt;BR /&gt;-- [NO]RESETLOGS  ?&lt;BR /&gt;-- [NO]ARCHIVELOG ?&lt;BR /&gt;&lt;BR /&gt;CREATE CONTROLFILE REUSE DATABASE "SID" NORESETLOGS ARCHIVELOG&lt;BR /&gt;    MAXLOGFILES 255&lt;BR /&gt;    MAXLOGMEMBERS 3&lt;BR /&gt;    MAXDATAFILES 254&lt;BR /&gt;    MAXINSTANCES 50&lt;BR /&gt;    MAXLOGHISTORY 1134&lt;BR /&gt;LOGFILE&lt;BR /&gt;  GROUP 11 (&lt;BR /&gt;    'filename_of_group11_first_member',&lt;BR /&gt;    'filename_of_group11_second_member'&lt;BR /&gt;  ) SIZE 10M,&lt;BR /&gt;  GROUP 12 (&lt;BR /&gt;    'filename_of_group12_first_member',&lt;BR /&gt;    'filename_of_group12_second_member'&lt;BR /&gt;  ) SIZE 10M&lt;BR /&gt;DATAFILE&lt;BR /&gt;  'filename_of_first_datafile',&lt;BR /&gt;  'filename_of_second_datafile',&lt;BR /&gt;..... repeat as needed ......&lt;BR /&gt;  'filename_of_last_datafile'&lt;BR /&gt;CHARACTER SET WE8DEC&lt;BR /&gt;;</description>
      <pubDate>Tue, 25 Feb 2003 18:45:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-control-files-how-to-recreate-them/m-p/2912958#M933596</guid>
      <dc:creator>Volker Borowski</dc:creator>
      <dc:date>2003-02-25T18:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle control files: How to recreate them?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-control-files-how-to-recreate-them/m-p/2912959#M933597</link>
      <description>Hi marty,&lt;BR /&gt;&lt;BR /&gt;Is the database down ? if not then you could use 'alter database backup controlfile to trace' -- ascii version of controlfile which has the entire structure of the database. if not follow the instruction given by other poster.&lt;BR /&gt;&lt;BR /&gt;also, add 'alter database backup controlfile to 'location_to_backup_controlfile';' to you hotbackup script -- this makes a backup of binary version of the controlfile.&lt;BR /&gt;&lt;BR /&gt;Stan&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 25 Feb 2003 20:04:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-control-files-how-to-recreate-them/m-p/2912959#M933597</guid>
      <dc:creator>Stan_17</dc:creator>
      <dc:date>2003-02-25T20:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle control files: How to recreate them?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-control-files-how-to-recreate-them/m-p/2912960#M933598</link>
      <description>As part of the backup procedure the script ovbackup.ovpl was run prior to doing the system backup.&lt;BR /&gt;&lt;BR /&gt;I was able to do a ovrestore.ovpl to recover the control files.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Marty</description>
      <pubDate>Tue, 25 Feb 2003 21:14:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-control-files-how-to-recreate-them/m-p/2912960#M933598</guid>
      <dc:creator>Martin Johnson</dc:creator>
      <dc:date>2003-02-25T21:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle control files: How to recreate them?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-control-files-how-to-recreate-them/m-p/2912961#M933599</link>
      <description>Hi Martin,&lt;BR /&gt;&lt;BR /&gt;If you have recovered all the datafiles and redologs from a COLD backup and do not have the control files, then you can create them the following script. &lt;BR /&gt;&lt;BR /&gt;Eg: the script is called cr_ctrl_file.sql&lt;BR /&gt;Then do this &lt;BR /&gt;set your oracle sid.&lt;BR /&gt;$&amp;gt;svrmgrl&lt;BR /&gt;svrmgrl&amp;gt;connect internal&lt;BR /&gt;svrmgrl&amp;gt;startup nomount&lt;BR /&gt;SVRMGRL&amp;gt;@cr_ctrl_file.sql&lt;BR /&gt;&lt;BR /&gt;The cr_ctrl_file.sql will contain the following statements.&lt;BR /&gt;&lt;BR /&gt;CREATE CONTROLFILE REUSE DATABASE "dbname" NORESETLOGS NOARCHIVELOG&lt;BR /&gt;    MAXLOGFILES 16&lt;BR /&gt;    MAXLOGMEMBERS 2&lt;BR /&gt;    MAXDATAFILES 1022&lt;BR /&gt;    MAXINSTANCES 1&lt;BR /&gt;    MAXLOGHISTORY 100&lt;BR /&gt;LOGFILE&lt;BR /&gt;  GROUP 1 (&lt;BR /&gt;    'path &amp;amp; name of the on-line redo logs' ) SIZE 25M,&lt;BR /&gt;  GROUP 2 (&lt;BR /&gt;    'path &amp;amp; name of the on-line redo logs' ) SIZE 25M,&lt;BR /&gt;DATAFILE&lt;BR /&gt;  'path and name of the data file???,&lt;BR /&gt;  'path and name of the data file???;&lt;BR /&gt; &lt;BR /&gt;RECOVER DATABASE&lt;BR /&gt;ALTER DATABASE OPEN;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;In the above script the dbname will be your database name. You have to make sure all the datafiles with extension .dbf are included in the DATAFILE listing in the above script. All the redo logs are also included in the LOGFILE listing in the above script. You can list the files in the directory for the correct name and path of the file locations.&lt;BR /&gt;&lt;BR /&gt;When the database is opened, then the database is as on the date the COLD backup was taken. Now shutdown normal and take a full backup immediately. &lt;BR /&gt;&lt;BR /&gt;On the other hand if you have restored from a on-line (HOT) backup,  then you will need the archive logs to recover to a particular point in time. &lt;BR /&gt;&lt;BR /&gt;Check you backup script to see if the backup is a COLD or a HOT backup. For COLD backup the database whill be shutdown for backup, for backup the database will not be shutdown as it is on-line backup. And also for HOT backup you should find the statements "Alter tablespace &lt;NAME&gt; BEGIN backup /END backup".&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/NAME&gt;</description>
      <pubDate>Wed, 26 Feb 2003 06:49:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-control-files-how-to-recreate-them/m-p/2912961#M933599</guid>
      <dc:creator>Indira Aramandla</dc:creator>
      <dc:date>2003-02-26T06:49:23Z</dc:date>
    </item>
  </channel>
</rss>

