<?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 how to set  a database in archive mode in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-a-database-in-archive-mode/m-p/2867899#M821765</link>
    <description>Hi &lt;BR /&gt;I have a database in no archivelog mode.&lt;BR /&gt;How can I set it in achevelog mode?&lt;BR /&gt;&lt;BR /&gt;I changed the parameter file and I tried to start the instance without opening the datadase. &lt;BR /&gt;&lt;BR /&gt;I got this error:&lt;BR /&gt;&lt;BR /&gt;SVRMGR&amp;gt; startup mount&lt;BR /&gt;ORA-16032: parameter LOG_ARCHIVE_DEST_1 destination string cannot be translated&lt;BR /&gt;ORA-07286: sksagdi: cannot obtain device information.&lt;BR /&gt;HP-UX Error: 2: No such file or directory&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;What is going wrong?</description>
    <pubDate>Thu, 19 Dec 2002 16:39:36 GMT</pubDate>
    <dc:creator>HPADM</dc:creator>
    <dc:date>2002-12-19T16:39:36Z</dc:date>
    <item>
      <title>how to set  a database in archive mode</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-a-database-in-archive-mode/m-p/2867899#M821765</link>
      <description>Hi &lt;BR /&gt;I have a database in no archivelog mode.&lt;BR /&gt;How can I set it in achevelog mode?&lt;BR /&gt;&lt;BR /&gt;I changed the parameter file and I tried to start the instance without opening the datadase. &lt;BR /&gt;&lt;BR /&gt;I got this error:&lt;BR /&gt;&lt;BR /&gt;SVRMGR&amp;gt; startup mount&lt;BR /&gt;ORA-16032: parameter LOG_ARCHIVE_DEST_1 destination string cannot be translated&lt;BR /&gt;ORA-07286: sksagdi: cannot obtain device information.&lt;BR /&gt;HP-UX Error: 2: No such file or directory&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;What is going wrong?</description>
      <pubDate>Thu, 19 Dec 2002 16:39:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-a-database-in-archive-mode/m-p/2867899#M821765</guid>
      <dc:creator>HPADM</dc:creator>
      <dc:date>2002-12-19T16:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: how to set  a database in archive mode</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-a-database-in-archive-mode/m-p/2867900#M821766</link>
      <description>Goes like this in oracle:&lt;BR /&gt;&lt;BR /&gt;shutdown immediate;&lt;BR /&gt;startup mount;&lt;BR /&gt;alter database archive log;&lt;BR /&gt;alter database open;&lt;BR /&gt;&lt;BR /&gt;Archive mode has nothing to do with init.ora parameters. You should set them back to the previous values.&lt;BR /&gt;Make sure, that your archive-destination is valid and the oracle user has write permissions there.&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;Volker</description>
      <pubDate>Thu, 19 Dec 2002 17:41:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-a-database-in-archive-mode/m-p/2867900#M821766</guid>
      <dc:creator>Volker Borowski</dc:creator>
      <dc:date>2002-12-19T17:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to set  a database in archive mode</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-a-database-in-archive-mode/m-p/2867901#M821767</link>
      <description>You need to turn on archive log mode in sqlplus, if thats what you need, reply and I'll look up the syntax.&lt;BR /&gt;&lt;BR /&gt;What you might be trying to do, I'm not sure, is dual logging?  Have the archive logs go to a secondary location, a different disk?&lt;BR /&gt;&lt;BR /&gt;If that it the case, I can provide you an init.ora that does that correctly.  Let me know, though because I have to get them from my dba.&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Thu, 19 Dec 2002 17:53:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-a-database-in-archive-mode/m-p/2867901#M821767</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2002-12-19T17:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: how to set  a database in archive mode</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-a-database-in-archive-mode/m-p/2867902#M821768</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Please make sure that the directory for your archive destination exist.&lt;BR /&gt;</description>
      <pubDate>Fri, 20 Dec 2002 02:41:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-a-database-in-archive-mode/m-p/2867902#M821768</guid>
      <dc:creator>Printaporn_1</dc:creator>
      <dc:date>2002-12-20T02:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to set  a database in archive mode</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-a-database-in-archive-mode/m-p/2867903#M821769</link>
      <description>Yes,to change the noarchivelog database to archivelog which should be helpful in recovery purposes&lt;BR /&gt;you should&lt;BR /&gt;&lt;BR /&gt;1.First shutdown the database cleanly by using&lt;BR /&gt;&lt;BR /&gt;shutdown immediate;&lt;BR /&gt;2.Take a backup of the current setup of the database&lt;BR /&gt;//this is always recommended//&lt;BR /&gt;3.startup and mount the database.&lt;BR /&gt;startup mount&lt;BR /&gt;&lt;BR /&gt;//do not open the database&lt;BR /&gt;&lt;BR /&gt;4.change the database to archivelog mode&lt;BR /&gt;&lt;BR /&gt;alter database archivelog;&lt;BR /&gt;&lt;BR /&gt;5.open the database &lt;BR /&gt;&lt;BR /&gt;alter database open;&lt;BR /&gt;&lt;BR /&gt;YOu have various archivelog parameters.&lt;BR /&gt;&lt;BR /&gt;you parameter should be like&lt;BR /&gt;&lt;BR /&gt;LOG_ARCHIVE_DEST_1= 'LOCATION=&lt;PATH of="" the="" dir=""&gt;' &lt;BR /&gt;&lt;BR /&gt;Make sure that you create the directories and provide permissions to Oracle user and dba group.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;/PATH&gt;</description>
      <pubDate>Fri, 20 Dec 2002 03:22:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-a-database-in-archive-mode/m-p/2867903#M821769</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2002-12-20T03:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: how to set  a database in archive mode</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-a-database-in-archive-mode/m-p/2867904#M821770</link>
      <description>check this link for the same.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.vi.unizh.ch/oracle8i_816/onlinedocu/doc/server.816/a76956/archredo.htm#4553" target="_blank"&gt;http://www.vi.unizh.ch/oracle8i_816/onlinedocu/doc/server.816/a76956/archredo.htm#4553&lt;/A&gt;</description>
      <pubDate>Fri, 20 Dec 2002 03:28:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-a-database-in-archive-mode/m-p/2867904#M821770</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2002-12-20T03:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: how to set  a database in archive mode</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-a-database-in-archive-mode/m-p/2867905#M821771</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;the explanation give by my predecessors are perfectly correct and you should not have any problems enabling ARCHIVE LOG mode.&lt;BR /&gt;&lt;BR /&gt;The missing part is that you should do a few tests to ensure that everything is working fine now.&lt;BR /&gt;&lt;BR /&gt;a. check if your configuration is OK&lt;BR /&gt;   archive log list;&lt;BR /&gt;&lt;BR /&gt;b. Make sure that the size of your redologs have been sized correctly - not too big not too small&lt;BR /&gt;   select * from v$log&lt;BR /&gt;   check the column BYTES&lt;BR /&gt;&lt;BR /&gt;c. Check if the log switches are working fine. (do it three times and after each time run the SQL statement below)&lt;BR /&gt;   alter system switch logfile;&lt;BR /&gt;   Check the STATUS: ACTIVE/CURRENT&lt;BR /&gt;&lt;BR /&gt;d. Make sure that no logs are STALE&lt;BR /&gt;   select * from V$log;&lt;BR /&gt;   Check the STATUS: should in no case be STALE!&lt;BR /&gt;   If STALE, you should switch the logs a few times...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Below an example from my site:&lt;BR /&gt;=======================================================================&lt;BR /&gt;$ sqlplus internal&lt;BR /&gt;&lt;BR /&gt;SQL*Plus: Release 8.1.7.0.0 - Production on Fri Dec 20 08:37:59 2002&lt;BR /&gt;&lt;BR /&gt;(c) Copyright 2000 Oracle Corporation.  All rights reserved.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Connected to:&lt;BR /&gt;Oracle8i Enterprise Edition Release 8.1.7.4.0 - 64bit Production&lt;BR /&gt;With the Partitioning option&lt;BR /&gt;JServer Release 8.1.7.4.0 - 64bit Production&lt;BR /&gt;&lt;BR /&gt;SQL&amp;gt; archive log list&lt;BR /&gt;Database log mode              Archive Mode&lt;BR /&gt;Automatic archival             Enabled&lt;BR /&gt;Archive destination            /u01/app/oracle/admin/pfs/arch&lt;BR /&gt;Oldest online log sequence     125267&lt;BR /&gt;Next log sequence to archive   125269&lt;BR /&gt;Current log sequence           125269&lt;BR /&gt;SQL&amp;gt;&lt;BR /&gt;SQL&amp;gt; select * from v$log;&lt;BR /&gt;&lt;BR /&gt;    GROUP#    THREAD#  SEQUENCE#      BYTES    MEMBERS ARC STATUS&lt;BR /&gt;---------- ---------- ---------- ---------- ---------- --- ----------------&lt;BR /&gt;FIRST_CHANGE# FIRST_TIME&lt;BR /&gt;------------- ----------&lt;BR /&gt;         4          1     125268   26214400          1 YES INACTIVE&lt;BR /&gt;     69071558 20/12/2002&lt;BR /&gt;&lt;BR /&gt;         5          1     125269   26214400          1 NO  CURRENT&lt;BR /&gt;     69090371 20/12/2002&lt;BR /&gt;&lt;BR /&gt;         6          1     125267   26214400          1 YES INACTIVE&lt;BR /&gt;     69035472 19/12/2002&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;SQL&amp;gt; alter system switch logfile;&lt;BR /&gt;&lt;BR /&gt;System altered.&lt;BR /&gt;&lt;BR /&gt;SQL&amp;gt; select * from v$log;&lt;BR /&gt;&lt;BR /&gt;    GROUP#    THREAD#  SEQUENCE#      BYTES    MEMBERS ARC STATUS&lt;BR /&gt;---------- ---------- ---------- ---------- ---------- --- ----------------&lt;BR /&gt;FIRST_CHANGE# FIRST_TIME&lt;BR /&gt;------------- ----------&lt;BR /&gt;         4          1     125268   26214400          1 YES INACTIVE&lt;BR /&gt;     69071558 20/12/2002&lt;BR /&gt;&lt;BR /&gt;         5          1     125269   26214400          1 YES ACTIVE&lt;BR /&gt;     69090371 20/12/2002&lt;BR /&gt;&lt;BR /&gt;         6          1     125270   26214400          1 NO  CURRENT&lt;BR /&gt;     69094772 20/12/2002&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;SQL&amp;gt; !ll -rtl /u01/app/oracle/admin/pfs/arch |tail -1&lt;BR /&gt;-rw-r-----   1 ora817     oinstall   13686784 Dec 20 08:40 arch_1_125269.arc&lt;BR /&gt;&lt;BR /&gt;SQL&amp;gt; archive log list&lt;BR /&gt;Database log mode              Archive Mode&lt;BR /&gt;Automatic archival             Enabled&lt;BR /&gt;Archive destination            /u01/app/oracle/admin/pfs/arch&lt;BR /&gt;Oldest online log sequence     125268&lt;BR /&gt;Next log sequence to archive   125270&lt;BR /&gt;Current log sequence           125270&lt;BR /&gt;SQL&amp;gt;&lt;BR /&gt;&lt;BR /&gt;=======================================================================&lt;BR /&gt;&lt;BR /&gt;Hope this helps!&lt;BR /&gt;&lt;BR /&gt;Best Regards&lt;BR /&gt;Yogeeraj</description>
      <pubDate>Fri, 20 Dec 2002 04:45:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-a-database-in-archive-mode/m-p/2867905#M821771</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2002-12-20T04:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: how to set  a database in archive mode</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-a-database-in-archive-mode/m-p/2867906#M821772</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;dbshut&lt;BR /&gt;startup nomount;&lt;BR /&gt;alter database archivelog;&lt;BR /&gt;alter database open;&lt;BR /&gt;sql&amp;gt; select log_mode from v$database;&lt;BR /&gt;should return "archivelog".&lt;BR /&gt;</description>
      <pubDate>Fri, 20 Dec 2002 05:52:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-a-database-in-archive-mode/m-p/2867906#M821772</guid>
      <dc:creator>Ravi_8</dc:creator>
      <dc:date>2002-12-20T05:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: how to set  a database in archive mode</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-a-database-in-archive-mode/m-p/2867907#M821773</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;in addition to changing the DB to "archivelog" mode (as shown by the others), I *do* recommend checking your "init*ora", as you'll need some parameters in there set to the correct values:&lt;BR /&gt;- you'll need to start the "archiver"&lt;BR /&gt;- you'll need to configure the archive *destination*, i.e. the directory&lt;BR /&gt;- you'll need to configure the the log-format, i.e. the archivelogfile's names&lt;BR /&gt;&lt;BR /&gt;And now for the VERY important steps: BEFORE you change to archivelog mode, create a crontab entry to &lt;BR /&gt;- save the *old* archivelogfiles continuously&lt;BR /&gt;- delete the very old archivelogfiles (say, older than 3 days)&lt;BR /&gt;&lt;BR /&gt;Without that your instance will FREEZE sooner or later (and hence your application)!&lt;BR /&gt;&lt;BR /&gt;FWIW,&lt;BR /&gt;Wodisch&lt;BR /&gt;</description>
      <pubDate>Fri, 20 Dec 2002 09:53:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-a-database-in-archive-mode/m-p/2867907#M821773</guid>
      <dc:creator>Wodisch</dc:creator>
      <dc:date>2002-12-20T09:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: how to set  a database in archive mode</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-a-database-in-archive-mode/m-p/2867908#M821774</link>
      <description>Hi again,&lt;BR /&gt;&lt;BR /&gt;A more structured way of backing up your archived redo logs would be to use Oracle RMAN with a catalog.&lt;BR /&gt;&lt;BR /&gt;This is how i do it (backup to disk and cleanup of archived redologs):&lt;BR /&gt;=====================================================================&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;#Script Name: /prod/global/admin/bckup/rman_al.sh&lt;BR /&gt;#By: YD-20/12/2002&lt;BR /&gt;&lt;BR /&gt;messagelog="/backup/rman/logfiles/rman_al-`date +%d%m%y-%H%M`"&lt;BR /&gt;subject="RMAN-Backup Log (Archive Redologs) on `date` completed"&lt;BR /&gt;emailadd1="youremail@servername.mu"&lt;BR /&gt;catlg="rman_dbslx1/rman_dbslx1@dev"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;rman target internal rcvcat $catlg msglog&lt;BR /&gt;$messagelog &amp;lt;&lt;EOF&gt;/dev/null&lt;BR /&gt;run {&lt;BR /&gt;allocate channel fs1 type disk format='/backup/rman/al/al1_t%t_s%s_p%p';&lt;BR /&gt;set limit channel fs1 kbytes=100000;&lt;BR /&gt;backup filesperset 10 archivelog all delete input;&lt;BR /&gt;release channel fs1;&lt;BR /&gt;}&lt;BR /&gt;exit;&lt;BR /&gt;EOF&lt;BR /&gt;#&lt;BR /&gt;/usr/bin/mailx -s "$subject" $emailadd1 &amp;lt; $messagelog&lt;BR /&gt;#&lt;BR /&gt;===================================================================&lt;BR /&gt;&lt;BR /&gt;Then schedule it using cron (i use root for all my crons, can also be otherwise):&lt;BR /&gt;Also, note that the frequency of backup will depend on the number of archived redologs generated within a determined time interval.&lt;BR /&gt;===================================================================&lt;BR /&gt;#*******************************************************************************&lt;BR /&gt;# min|hour |day  |month|day  |script&lt;BR /&gt;#    |     |of mo|     |of wk|&lt;BR /&gt;#----|-----|-----|-----|-----|--------------------------------------------------&lt;BR /&gt;#*******************************************************************************&lt;BR /&gt;00    22    *     *     *     echo "/prod/global/admin/bckup/rman_al.sh" | su - ora817 1&amp;gt;/backup/rman/logfiles/output-rman_al.crn 2&amp;gt;/backup/rman/logfiles/error-rman_al.crn &lt;BR /&gt;&lt;BR /&gt;===================================================================&lt;BR /&gt;&lt;BR /&gt;Also, schedule periodic cleanup of the rman disk backups and of course you daily backup should be copying them to storage media that can be stored off-site.&lt;BR /&gt;&lt;BR /&gt;On top of all this, don't forget that archived logs work in conjunction with full backups. hence, you also need to do full backups of your database. For this also, it is recommended to user Oracle RMAN. Please read the excellent "Oracle8i Backup and Recovery Guide" to understand the possibilities concerning Backup and Recovery&lt;BR /&gt;&lt;BR /&gt;Hope this helps!&lt;BR /&gt;&lt;BR /&gt;Best Regards&lt;BR /&gt;Yogeeraj&lt;/EOF&gt;</description>
      <pubDate>Fri, 20 Dec 2002 10:50:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-a-database-in-archive-mode/m-p/2867908#M821774</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2002-12-20T10:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: how to set  a database in archive mode</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-a-database-in-archive-mode/m-p/2867909#M821775</link>
      <description>You need exclusive access to the database, even if its in cluster mode to turn on archive log mode.&lt;BR /&gt;&lt;BR /&gt;here is how to do it from either svrmgrl or sqlplus&lt;BR /&gt;&lt;BR /&gt;svrmgrl&lt;BR /&gt;connect internal&lt;BR /&gt;startup mount cc1;&lt;BR /&gt;alter database archivelog;&lt;BR /&gt;archive log start;&lt;BR /&gt;alter database open;&lt;BR /&gt;&lt;BR /&gt;Its the same in sqlplus except your command line is sqlplus internal&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Fri, 20 Dec 2002 14:04:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-a-database-in-archive-mode/m-p/2867909#M821775</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2002-12-20T14:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to set  a database in archive mode</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-a-database-in-archive-mode/m-p/2867910#M821776</link>
      <description>Have you heard of tnsping?&lt;BR /&gt;&lt;BR /&gt;Its an oracle utility that lets you test your tnsnames.ora sqlnet.ora and listener.ora configuration and validate you have proper connectivity and that the daemons(listener, etc) are configured properly.&lt;BR /&gt;&lt;BR /&gt;Steve.</description>
      <pubDate>Fri, 20 Dec 2002 15:31:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-a-database-in-archive-mode/m-p/2867910#M821776</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2002-12-20T15:31:28Z</dc:date>
    </item>
  </channel>
</rss>

