<?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: ALTER DATABASE OPEN requires RESETLOGS in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/alter-database-open-requires-resetlogs/m-p/3091730#M806580</link>
    <description>You have to use the RESETLOGS because you created the controlfiles with the RESETLOG option.&lt;BR /&gt;&lt;BR /&gt;CREATE CONTROLFILE REUSE SET DATABASE "DBSNML1" RESETLOGS&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;with this sintax you resetted the information, and you have to re-open the DB.&lt;BR /&gt;&lt;BR /&gt;BTW, why did you re-created the control-file&lt;BR /&gt;&lt;BR /&gt;So,&lt;BR /&gt;ALTER DATABASE OPEN NORESETLOGS;&lt;BR /&gt;&lt;BR /&gt;Finally: probably you messed up something, the re-creation being not needed.&lt;BR /&gt;&lt;BR /&gt;If you only closed/opened the instance, you have to start an online recovery, applying the online redo log. Try:&lt;BR /&gt;&lt;BR /&gt;svrmgrl&amp;gt; alter database recover automatic until cancel using backup controlfile;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;this should read the online and apply them.&lt;BR /&gt;If it fails, &lt;BR /&gt;svrmgrl&amp;gt; alter database recover using backup controlfile until cancel;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;this will prompt you with the location of files, give it the location on the online.&lt;BR /&gt;&lt;BR /&gt;Have you a good recent backup ?&lt;BR /&gt;&lt;BR /&gt;  Massimo</description>
    <pubDate>Mon, 13 Oct 2003 08:06:05 GMT</pubDate>
    <dc:creator>Massimo Bianchi</dc:creator>
    <dc:date>2003-10-13T08:06:05Z</dc:date>
    <item>
      <title>ALTER DATABASE OPEN requires RESETLOGS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/alter-database-open-requires-resetlogs/m-p/3091729#M806579</link>
      <description>Hello colleagues,&lt;BR /&gt;I perform an export online of a database, then I perform the corresponding import; see the procedures enclosed.&lt;BR /&gt;I startup the database then I try to create a new controlfile by the command:&lt;BR /&gt;CREATE CONTROLFILE REUSE SET DATABASE "DBSNML1" RESETLOGS ARCHIVELOG&lt;BR /&gt;MAXLOGFILES 16&lt;BR /&gt;MAXLOGMEMBERS 2&lt;BR /&gt;MAXDATAFILES 30&lt;BR /&gt;MAXINSTANCES 1&lt;BR /&gt;MAXLOGHISTORY 899&lt;BR /&gt;LOGFILE&lt;BR /&gt;GROUP 1 (&lt;BR /&gt;'/usr/Systems/1354RM_1/databases/dbsnml/data/redo01.log',&lt;BR /&gt;'/alcatel/MirrorArea/1354RM_1/snml/mirror/redo01.log'&lt;BR /&gt;) SIZE 500K,&lt;BR /&gt;GROUP 2 (&lt;BR /&gt;'/usr/Systems/1354RM_1/databases/dbsnml/data/redo02.log',&lt;BR /&gt;'/alcatel/MirrorArea/1354RM_1/snml/mirror/redo02.log'&lt;BR /&gt;) SIZE 500K,&lt;BR /&gt;GROUP 3 (&lt;BR /&gt;'/usr/Systems/1354RM_1/databases/dbsnml/data/redo03.log',&lt;BR /&gt;'/alcatel/MirrorArea/1354RM_1/snml/mirror/redo03.log'&lt;BR /&gt;) SIZE 500K&lt;BR /&gt;DATAFILE&lt;BR /&gt;'/usr/Systems/1354RM_1/databases/dbsnml/data/system01.dbf',&lt;BR /&gt;'/usr/Systems/1354RM_1/databases/dbsnml/data/rbs01.dbf',&lt;BR /&gt;'/usr/Systems/1354RM_1/databases/dbsnml/data/temp01.dbf',&lt;BR /&gt;'/usr/Systems/1354RM_1/databases/dbsnml/data/data01.dbf',&lt;BR /&gt;'/usr/Systems/1354RM_1/databases/dbsnml/data/index_t01.dbf',&lt;BR /&gt;'/usr/Systems/1354RM_1/databases/dbsnml/data/pm_hist_data01.dbf',&lt;BR /&gt;'/usr/Systems/1354RM_1/databases/dbsnml/data/pm_hist_index01.dbf'&lt;BR /&gt;CHARACTER SET WE8ISO8859P1&lt;BR /&gt;;&lt;BR /&gt;When I executethe next command:&lt;BR /&gt;ALTER DATABASE OPEN;&lt;BR /&gt;&lt;BR /&gt;the errorcode is:&lt;BR /&gt;SVRMGR&amp;gt; ALTER DATABASE OPEN;&lt;BR /&gt;ALTER DATABASE OPEN&lt;BR /&gt;*&lt;BR /&gt;ORA-01589: must use RESETLOGS or NORESETLOGS option for database open&lt;BR /&gt;&lt;BR /&gt;If I enter the command with "RESETLOGS" option:&lt;BR /&gt;SVRMGR&amp;gt; ALTER DATABASE OPEN RESETLOGS;&lt;BR /&gt;ALTER DATABASE OPEN RESETLOGS&lt;BR /&gt;*&lt;BR /&gt;ORA-01195: online backup of file 1 needs more recovery to be consistent&lt;BR /&gt;ORA-01110: data file 1: '/usr/Systems/1354RM_1/databases/dbsnml/data/system01.dbf'&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;otherwise:&lt;BR /&gt;SVRMGR&amp;gt; ALTER DATABASE OPEN NORESETLOGS;&lt;BR /&gt;ALTER DATABASE OPEN NORESETLOGS&lt;BR /&gt;*&lt;BR /&gt;ORA-01588: must use RESETLOGS option for database open&lt;BR /&gt;&lt;BR /&gt;Can anyone help me?&lt;BR /&gt;&lt;BR /&gt;thanks a lot&lt;BR /&gt;Enrico</description>
      <pubDate>Mon, 13 Oct 2003 07:56:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/alter-database-open-requires-resetlogs/m-p/3091729#M806579</guid>
      <dc:creator>Enrico Venturi</dc:creator>
      <dc:date>2003-10-13T07:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: ALTER DATABASE OPEN requires RESETLOGS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/alter-database-open-requires-resetlogs/m-p/3091730#M806580</link>
      <description>You have to use the RESETLOGS because you created the controlfiles with the RESETLOG option.&lt;BR /&gt;&lt;BR /&gt;CREATE CONTROLFILE REUSE SET DATABASE "DBSNML1" RESETLOGS&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;with this sintax you resetted the information, and you have to re-open the DB.&lt;BR /&gt;&lt;BR /&gt;BTW, why did you re-created the control-file&lt;BR /&gt;&lt;BR /&gt;So,&lt;BR /&gt;ALTER DATABASE OPEN NORESETLOGS;&lt;BR /&gt;&lt;BR /&gt;Finally: probably you messed up something, the re-creation being not needed.&lt;BR /&gt;&lt;BR /&gt;If you only closed/opened the instance, you have to start an online recovery, applying the online redo log. Try:&lt;BR /&gt;&lt;BR /&gt;svrmgrl&amp;gt; alter database recover automatic until cancel using backup controlfile;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;this should read the online and apply them.&lt;BR /&gt;If it fails, &lt;BR /&gt;svrmgrl&amp;gt; alter database recover using backup controlfile until cancel;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;this will prompt you with the location of files, give it the location on the online.&lt;BR /&gt;&lt;BR /&gt;Have you a good recent backup ?&lt;BR /&gt;&lt;BR /&gt;  Massimo</description>
      <pubDate>Mon, 13 Oct 2003 08:06:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/alter-database-open-requires-resetlogs/m-p/3091730#M806580</guid>
      <dc:creator>Massimo Bianchi</dc:creator>
      <dc:date>2003-10-13T08:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: ALTER DATABASE OPEN requires RESETLOGS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/alter-database-open-requires-resetlogs/m-p/3091731#M806581</link>
      <description>Caro compatriota,&lt;BR /&gt;ho fatto il giochino di ricreare il controlfile perchÃ© i datafiles che ho portato sulla macchina appartengono ad un'istanza che ha un ORACLE_SID differente ...&lt;BR /&gt;in pratica: sto tentando di cambiare nome al DB&lt;BR /&gt;&lt;BR /&gt;ciao&lt;BR /&gt;graz</description>
      <pubDate>Mon, 13 Oct 2003 08:15:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/alter-database-open-requires-resetlogs/m-p/3091731#M806581</guid>
      <dc:creator>Enrico Venturi</dc:creator>
      <dc:date>2003-10-13T08:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: ALTER DATABASE OPEN requires RESETLOGS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/alter-database-open-requires-resetlogs/m-p/3091732#M806582</link>
      <description>Ciao,&lt;BR /&gt;what is making me think is (in english so other people can follow):&lt;BR /&gt;&lt;BR /&gt;ORA-01195: online backup of file 1 needs more recovery to be consistent&lt;BR /&gt;&lt;BR /&gt;looks like the file was taken when in backup mode, but no logs were applied, to change the state.&lt;BR /&gt;&lt;BR /&gt;You cannot do both recovery from online and changing the SID at the same time.&lt;BR /&gt;&lt;BR /&gt;First the recovery&lt;BR /&gt;Then the change of the SID.&lt;BR /&gt;&lt;BR /&gt;Did you applied the last online logs ?&lt;BR /&gt;&lt;BR /&gt;  Massimo&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 13 Oct 2003 08:21:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/alter-database-open-requires-resetlogs/m-p/3091732#M806582</guid>
      <dc:creator>Massimo Bianchi</dc:creator>
      <dc:date>2003-10-13T08:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: ALTER DATABASE OPEN requires RESETLOGS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/alter-database-open-requires-resetlogs/m-p/3091733#M806583</link>
      <description>I didn't apply the redo logs&lt;BR /&gt;because I cannot start the DB instance after the restore: actually I import tha datafiles on an environment having a different ORACLE_SID ...&lt;BR /&gt;&lt;BR /&gt;Is there any way to backup the datafiles without requiring recovery during the import phase? (I don't want to use the exp/imp utilities!)&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;Enrico</description>
      <pubDate>Mon, 13 Oct 2003 08:31:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/alter-database-open-requires-resetlogs/m-p/3091733#M806583</guid>
      <dc:creator>Enrico Venturi</dc:creator>
      <dc:date>2003-10-13T08:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: ALTER DATABASE OPEN requires RESETLOGS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/alter-database-open-requires-resetlogs/m-p/3091734#M806584</link>
      <description>Normally online logs are applied automatically, but in this case they looks invalid, because you chaged the SID.&lt;BR /&gt;&lt;BR /&gt;Now, what can we do ?&lt;BR /&gt;&lt;BR /&gt;First: aplly manually the logs, like if they were archived log. I did it a couple of time.&lt;BR /&gt;&lt;BR /&gt;Check this:&lt;BR /&gt;&lt;BR /&gt;    * goal: How to roll forward the database using a old controlfile, with archivfiles?&lt;BR /&gt;    * fact: Oracle Server - Enterprise Edition 8.1&lt;BR /&gt;    * fact: Oracle Server - Enterprise Edition 8 &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;fix:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This test scenario demonstrates how to apply archivelog files to a clean but &lt;BR /&gt;old backup.&lt;BR /&gt;&lt;BR /&gt;Let's first shut the database down in it's current situation:&lt;BR /&gt;&lt;BR /&gt;SVRMGR&amp;gt; shutdown&lt;BR /&gt;Database closed.&lt;BR /&gt;Database dismounted.&lt;BR /&gt;ORACLE instance shut down.&lt;BR /&gt;&lt;BR /&gt;We make a clean cold backup of the database; namely, all files, &lt;BR /&gt;controlfiles, datafiles, etc. Then, start the database up again.&lt;BR /&gt;&lt;BR /&gt;Checking the Archive_Dest directory, we see that the last archivelog file for &lt;BR /&gt;this test is 'arc84.1'. We'll come back to that later.&lt;BR /&gt;&lt;BR /&gt;SVRMGR&amp;gt; connect internal/password&lt;BR /&gt;Connected.&lt;BR /&gt;SVRMGR&amp;gt; startup&lt;BR /&gt;ORACLE instance started.&lt;BR /&gt;Total System Global Area                         11907072 bytes&lt;BR /&gt;Fixed Size                                          49152 bytes&lt;BR /&gt;Variable Size                                    10657792 bytes&lt;BR /&gt;Database Buffers                                  1126400 bytes&lt;BR /&gt;Redo Buffers                                        73728 bytes&lt;BR /&gt;Database mounted.&lt;BR /&gt;Database opened.&lt;BR /&gt;&lt;BR /&gt;As a test we create a new table, insert some rows, and then make some &lt;BR /&gt;logswitches:&lt;BR /&gt;&lt;BR /&gt;SVRMGR&amp;gt; create table testtable(a number(2));&lt;BR /&gt;Statement processed.&lt;BR /&gt;SVRMGR&amp;gt; insert into testtable values(2);&lt;BR /&gt;1 row processed.&lt;BR /&gt;SVRMGR&amp;gt; insert into testtable values(2);&lt;BR /&gt;1 row processed.&lt;BR /&gt;SVRMGR&amp;gt; insert into testtable values(2);&lt;BR /&gt;1 row processed.&lt;BR /&gt;SVRMGR&amp;gt; insert into testtable values(2);&lt;BR /&gt;1 row processed.&lt;BR /&gt;SVRMGR&amp;gt; insert into testtable values(2);&lt;BR /&gt;1 row processed.&lt;BR /&gt;SVRMGR&amp;gt; commit;&lt;BR /&gt;Statement processed.&lt;BR /&gt;SVRMGR&amp;gt; alter system switch logfile;&lt;BR /&gt;Statement processed.&lt;BR /&gt;SVRMGR&amp;gt; alter system switch logfile;&lt;BR /&gt;Statement processed.&lt;BR /&gt;SVRMGR&amp;gt; alter system switch logfile;&lt;BR /&gt;Statement processed.&lt;BR /&gt;SVRMGR&amp;gt; shutdown&lt;BR /&gt;Database closed.&lt;BR /&gt;Database dismounted.&lt;BR /&gt;ORACLE instance shut down.&lt;BR /&gt;&lt;BR /&gt;Again checking the Archive_Dest directory, we now see the last archivelog file &lt;BR /&gt;is arc87.1.  (Three onwards from the arc84.1 we had previously).&lt;BR /&gt;&lt;BR /&gt;We now intend to restore the backup we made earlier.&lt;BR /&gt;&lt;BR /&gt;The plan is to apply the three new archivelog files, so first we start the &lt;BR /&gt;database up again:&lt;BR /&gt;&lt;BR /&gt;SVRMGR&amp;gt; connect internal/password&lt;BR /&gt;Connected.&lt;BR /&gt;SVRMGR&amp;gt; startup mount&lt;BR /&gt;ORACLE instance started.&lt;BR /&gt;Total System Global Area                         11907072 bytes&lt;BR /&gt;Fixed Size                                          49152 bytes&lt;BR /&gt;Variable Size                                    10657792 bytes&lt;BR /&gt;Database Buffers                                  1126400 bytes&lt;BR /&gt;Redo Buffers                                        73728 bytes&lt;BR /&gt;Database mounted.&lt;BR /&gt;&lt;BR /&gt;And now we issue the command to start the recovery and we apply all the &lt;BR /&gt;archivelog files that are newer than any of the control or datafiles that we &lt;BR /&gt;restored.&lt;BR /&gt;&lt;BR /&gt;SVRMGR&amp;gt; alter database recover until cancel using backup controlfile;&lt;BR /&gt;alter database recover until cancel using backup controlfile&lt;BR /&gt;*&lt;BR /&gt;ORA-00279: change 216252 generated at 04/09/99 16:39:56 needed for thread 1&lt;BR /&gt;ORA-00289: suggestion : D:\ORA80\DATABASE\ARCHIVE\ARC85.1&lt;BR /&gt;ORA-00280: change 216252 for thread 1 is in sequence #85&lt;BR /&gt;SVRMGR&amp;gt; alter database recover continue default;&lt;BR /&gt;alter database recover continue default&lt;BR /&gt;*&lt;BR /&gt;ORA-00279: change 216265 generated at 04/09/99 16:45:34 needed for thread 1&lt;BR /&gt;ORA-00289: suggestion : D:\ORA80\DATABASE\ARCHIVE\ARC86.1&lt;BR /&gt;ORA-00280: change 216265 for thread 1 is in sequence #86&lt;BR /&gt;ORA-00278: log file 'D:\ORA80\DATABASE\ARCHIVE\ARC85.1' no longer needed for &lt;BR /&gt;this recovery&lt;BR /&gt;SVRMGR&amp;gt; alter database recover continue default;&lt;BR /&gt;alter database recover continue default&lt;BR /&gt;*&lt;BR /&gt;ORA-00279: change 216266 generated at 04/09/99 16:45:40 needed for thread 1&lt;BR /&gt;ORA-00289: suggestion : D:\ORA80\DATABASE\ARCHIVE\ARC87.1&lt;BR /&gt;ORA-00280: change 216266 for thread 1 is in sequence #87&lt;BR /&gt;ORA-00278: log file 'D:\ORA80\DATABASE\ARCHIVE\ARC86.1' no longer needed for &lt;BR /&gt;this recovery&lt;BR /&gt;SVRMGR&amp;gt; alter database recover continue default;&lt;BR /&gt;alter database recover continue default&lt;BR /&gt;*&lt;BR /&gt;ORA-00279: change 216267 generated at 04/09/99 16:46:00 needed for thread 1&lt;BR /&gt;ORA-00289: suggestion : D:\ORA80\DATABASE\ARCHIVE\ARC88.1&lt;BR /&gt;ORA-0028.&lt;BR /&gt;0: change 216267 for thread 1 is in sequence #88&lt;BR /&gt;ORA-00278: log file 'D:\ORA80\DATABASE\ARCHIVE\ARC87.1' no longer needed for &lt;BR /&gt;this recovery&lt;BR /&gt;SVRMGR&amp;gt; alter database recover continue default;&lt;BR /&gt;alter database recover continue default&lt;BR /&gt;*&lt;BR /&gt;ORA-00308: cannot open archived log 'D:\ORA80\DATABASE\ARCHIVE\ARC88.1'&lt;BR /&gt;ORA-27041: unable to open file&lt;BR /&gt;OSD-04002: unable to open file&lt;BR /&gt;O/S-Error: (OS 2) The system cannot find the file specified.&lt;BR /&gt;&lt;BR /&gt;We could have stopped after 87 but there is no harm in continuing until the &lt;BR /&gt;system cannot find the required file.&lt;BR /&gt;&lt;BR /&gt;Now we stop the recovery and open the database:&lt;BR /&gt;&lt;BR /&gt;SVRMGR&amp;gt; alter database recover cancel;&lt;BR /&gt;alter database recover cancel&lt;BR /&gt;Statement processed.&lt;BR /&gt;SVRMGR&amp;gt; alter database open resetlogs;&lt;BR /&gt;Statement processed.&lt;BR /&gt;&lt;BR /&gt;And, finally, we prove that the new information that was not in the backup &lt;BR /&gt;and was only stored in the archivelog files is now recovered:&lt;BR /&gt;&lt;BR /&gt;SVRMGR&amp;gt; select * from testtable;&lt;BR /&gt;A&lt;BR /&gt;----------&lt;BR /&gt;         2&lt;BR /&gt;         2&lt;BR /&gt;         2&lt;BR /&gt;         2&lt;BR /&gt;         2&lt;BR /&gt;5 rows selected.&lt;BR /&gt;SVRMGR&amp;gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 13 Oct 2003 08:38:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/alter-database-open-requires-resetlogs/m-p/3091734#M806584</guid>
      <dc:creator>Massimo Bianchi</dc:creator>
      <dc:date>2003-10-13T08:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: ALTER DATABASE OPEN requires RESETLOGS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/alter-database-open-requires-resetlogs/m-p/3091735#M806585</link>
      <description>Massimo,&lt;BR /&gt;my question is:&lt;BR /&gt;can I set the source DB in some state so that no recovery is needed during the restore?&lt;BR /&gt;I have no problems to shutdown the source DB before starting the on line export ....</description>
      <pubDate>Mon, 13 Oct 2003 08:45:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/alter-database-open-requires-resetlogs/m-p/3091735#M806585</guid>
      <dc:creator>Enrico Venturi</dc:creator>
      <dc:date>2003-10-13T08:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: ALTER DATABASE OPEN requires RESETLOGS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/alter-database-open-requires-resetlogs/m-p/3091736#M806586</link>
      <description>I think that i am missing something...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Your spurce DB looks like to be in a "begin backup state".&lt;BR /&gt;&lt;BR /&gt;You should issue the command&lt;BR /&gt;&lt;BR /&gt;alter tablespace &lt;EACHTBSNAME&gt; end backup;&lt;BR /&gt;&lt;BR /&gt;for each tablespace, to stop the backup process.&lt;BR /&gt;&lt;BR /&gt;The question is, why tablespace are in begin backup mode, may be a running backup or a crashed backup.&lt;BR /&gt;&lt;BR /&gt;With that set of files, you can open the db without the resetlog option, import your data and after change the SID.&lt;BR /&gt;&lt;BR /&gt;Or, change the SID and after import the data.&lt;BR /&gt;&lt;BR /&gt;Are yuo copying the source files with oracle open ? In these second case, you have to do the folowing:&lt;BR /&gt;&lt;BR /&gt;- db MUST be in archivelog mode. necessary&lt;BR /&gt;- take a note of the current online line log number&lt;BR /&gt;&lt;BR /&gt;- set each tablespace in begin backup mode&lt;BR /&gt;alter tablespace  begin backup&lt;BR /&gt;&lt;BR /&gt;- copy the datafiles&lt;BR /&gt;for in in $(cat lista_data_files.txt)&lt;BR /&gt;do&lt;BR /&gt;rcp $i dest_host:/dest_dir/$i&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;- end the backup mode&lt;BR /&gt;alter tablespace end backup;&lt;BR /&gt;- take note of the current online log.&lt;BR /&gt;- copy all the archive log between, and included, the one i made you note down.&lt;BR /&gt;&lt;BR /&gt;- issue a recover with that logs, you will be able to open the destination DB with the RESETLOGS options (needed because we are arriving from a partial recover)&lt;BR /&gt;&lt;BR /&gt;- create a new controfile script&lt;BR /&gt;- run the crea_controfile script to change the SID&lt;BR /&gt;- do the import&lt;BR /&gt;&lt;BR /&gt;####################### OR #################Ã&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;if you can close the source db, take an offline copy of it, and then issue the create controlfile script.&lt;BR /&gt;&lt;BR /&gt;#######################################&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;if in doubt, check&lt;BR /&gt;&lt;BR /&gt;select FILE#, status from v$backup;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If any file is in the "ACTIVE" state, then those files are in begin backup. but why ??&lt;BR /&gt;&lt;BR /&gt;  Massim&lt;/EACHTBSNAME&gt;</description>
      <pubDate>Mon, 13 Oct 2003 09:10:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/alter-database-open-requires-resetlogs/m-p/3091736#M806586</guid>
      <dc:creator>Massimo Bianchi</dc:creator>
      <dc:date>2003-10-13T09:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: ALTER DATABASE OPEN requires RESETLOGS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/alter-database-open-requires-resetlogs/m-p/3091737#M806587</link>
      <description>Ok Massimo,&lt;BR /&gt;If I just mount the database (no OPEN!) and I copy the datafiles on the new machine, do I still need to recover them?&lt;BR /&gt;&lt;BR /&gt;I understood you suggestions but I'd like to understand if there's a simpler way to achieve the same result&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;enrico</description>
      <pubDate>Mon, 13 Oct 2003 09:43:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/alter-database-open-requires-resetlogs/m-p/3091737#M806587</guid>
      <dc:creator>Enrico Venturi</dc:creator>
      <dc:date>2003-10-13T09:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: ALTER DATABASE OPEN requires RESETLOGS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/alter-database-open-requires-resetlogs/m-p/3091738#M806588</link>
      <description>"If I just mount the database (no OPEN!) and I copy the datafiles on the new machine, do I still need to recover them?&lt;BR /&gt;"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I think yes, because when the db is in mount state the control file are accessed, and the datafile are accessed, only in read-only mode.&lt;BR /&gt;&lt;BR /&gt;If you can keep the db in state mount, why don't you keep it closed and copy them offline ?&lt;BR /&gt;&lt;BR /&gt;   Massimo&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 13 Oct 2003 09:56:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/alter-database-open-requires-resetlogs/m-p/3091738#M806588</guid>
      <dc:creator>Massimo Bianchi</dc:creator>
      <dc:date>2003-10-13T09:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: ALTER DATABASE OPEN requires RESETLOGS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/alter-database-open-requires-resetlogs/m-p/3091739#M806589</link>
      <description>Hi Enrico,&lt;BR /&gt;&lt;BR /&gt;Massimo has covered pretty much everything. If you planned to mount the database and copy datafiles is almost equivalent of taking a offline (provided you had done a clean shutdown before mounting the database) or cold backup. so you could do it either way. In fact, rman does mount the database for taking offline backups.&lt;BR /&gt;&lt;BR /&gt;-&lt;BR /&gt;Stan</description>
      <pubDate>Mon, 13 Oct 2003 13:47:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/alter-database-open-requires-resetlogs/m-p/3091739#M806589</guid>
      <dc:creator>Stan_17</dc:creator>
      <dc:date>2003-10-13T13:47:18Z</dc:date>
    </item>
  </channel>
</rss>

