<?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"
>

<channel>
	<title>archivelog</title>
	<atom:link href="http://www.kods.net/feed/tag/archivelog/" rel="self" type="application/rss+xml" />
	<link>http://www.kods.net/</link>
	<description>archivelog</description>
	<pubDate>Fri, 30 Jul 2010 04:03:24+0000</pubDate>
	<generator>http://www.kods.net/</generator>
	<language>en</language>
		<item>
		<title>See whether the archive and modify oracle database archiving mode</title>
		<link>http://www.kods.net/see-whether-the-archive-and-modify-oracle-database-archiving-mode/</link>
		<comments>http://www.kods.net/see-whether-the-archive-and-modify-oracle-database-archiving-mode/#comments</comments>
		<pubDate>Sat, 12 Jun 2010 16:11:18+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle Database]]></category>
		<category><![CDATA[oracle]]></category>
<category><![CDATA[oracle 10g]]></category>
<category><![CDATA[oracle database]]></category>
<category><![CDATA[log archive]]></category>
<category><![CDATA[logs]]></category>
<category><![CDATA[database oracle]]></category>
<category><![CDATA[select name]]></category>
<category><![CDATA[database sql]]></category>
<category><![CDATA[scope]]></category>
<category><![CDATA[production environment]]></category>
<category><![CDATA[database archiving]]></category>
<category><![CDATA[backup data]]></category>
<category><![CDATA[archivelog]]></category>
<category><![CDATA[archive format]]></category>
<category><![CDATA[data warehouse]]></category>
<category><![CDATA[hard disk space]]></category>
<category><![CDATA[backup options]]></category>
<category><![CDATA[models]]></category>
<category><![CDATA[log2]]></category>
		<guid isPermaLink="true">http://www.kods.net/see-whether-the-archive-and-modify-oracle-database-archiving-mode/</guid>
		<description><![CDATA[See whether the archive and modify oracle database archiving mode Oracle is divided into non-archive mode (NOARCHIVELOG) and archive mode (ARCHIVELOG). Non-archive mode archive log not generated, although the save hard disk space, but Select the back ...]]></description>
		<content:encoded><![CDATA[<h1> See whether the archive and modify oracle database archiving mode </h1><br /><br /> <strong><u>Oracle</u></strong> is divided into non-archive mode (NOARCHIVELOG) and archive mode (ARCHIVELOG). Non-archive mode archive log not generated, although the save hard disk space, but <a"javascript:tagshow(event, '%B1%B8%B7%DD');" href="javascript:;" target="_self"> Select <strong><u>the backup</u></strong> options are limited, usually only select the cold backup. Restore can only restore to the backup data that moment, usually only used in the development of (allegedly also used in the data warehouse), Oracle installing the default is non-archive mode. We are in a production environment because of the use of archive mode, it will generate archive logs, you can use a variety of backup and restore program with Oracle administrators should change the mode is an inevitable choice. <br /><br /> First View <a"javascript:tagshow(event, '%CA%FD%BE%DD%BF%E2');" href="javascript:;" target="_self"> <strong><u>Database</u></strong> of existing models can use the following statement <br /><br /> select name, log_mode from v $ database; <br /><br /> Can also use the following statement <br /> archive log list; (the method requires as sysdba) <br /><br /> For non-archive mode to archive mode of the database (Oracle <strong><u>10g</u></strong> as a reference mainly) using the following steps: <br /><br /> 1. SQL&gt; alter system set log_archive_dest_1 = &#39;location = / oracle/oracle10g/log/archive_log&#39;; <br /><br /> The statement means that the archive logs to determine the path, in fact, Oracle 10g can generate as many copies of the log, save multiple locations, in case of emergency such as a log location and then add the following statement can be used <br /><br /> SQL&gt; alter system set log_archive_dest_2 = &#39;location = / oracle/oracle10g/log2/archive_log&#39;; <br /><br /> 2. Close the database <br /> SQL&gt; shutdown immediate <br /><br /> 3. Start data mount status: <br /> SQL&gt; startup mount; <br /><br /> 4, modify the database to archive mode: <br /> SQL&gt; alter database archivelog; <br /><br /> 5, open the database, the query: <br /> SQL&gt; alter database open; <br /><br /> Modify the log file name format: <br /> SQL&gt; alter system set log_archive_max_processes = 5; <br /> SQL&gt; alter system set log_archive_format = &quot;archive_% t_% s_% r.log&quot; scope = spfile; <br /><br /> After editing you can view the log mode is changed successfully! <br /> Particularly noted that in Oracle 9i, you should also modify the parameters alter system set log_archive_start = true take effect, oracle 10g this parameter has been abolished, so do not need to set the parameters. <br /><br /> Automatic archiving is disabled by default, need to modify the parameter log_archive_start = TRUE to enable automatic archiving. <br /> SQL&gt; show parameter log_archive_start <br /><br /> NAME TYPE <i>value</i> <br /><br /> ------------------------------------ ----------- --- --------------------------- <br /><br /> log_archive_start boolean FALSE <br /><br /> SQL&gt; archive log list <br /><br /> Database log mode Archive Mode <br /><br /> Disable Auto Archive <br /><br /> Archive destination / oracle/oracle9i/u01/product/9201/dbs/arch <br /><br /> Summary of the earliest log sequence 18 <br /><br /> The next archive log sequence 19 <br /><br /> Current log sequence 20 <br /><br /> SQL&gt; alter system set log_archive_start = TRUE scope = spfile; <br /><br /> System has been changed. <br /><br /> SQL&gt; startup force <br /><br /> ORACLE instance started. <br /><br /> Total System Global Area 320308312 bytes <br /><br /> Fixed Size 730200 bytes <br /><br /> Variable Size 285212672 bytes <br /><br /> Database Buffers 33554432 bytes <br /><br /> Redo Buffers 811008 bytes <br /><br /> Completion of the loading database. <br /><br /> Database has been opened. <br /><br /> SQL&gt; archive log list <br /><br /> Database log mode Archive Mode <br /><br /> Enable automatic archiving <br /><br /> Archive destination / oracle/oracle9i/u01/product/9201/dbs/arch <br /><br /> Summary of the earliest log sequence 19 <br /><br /> The next archive log sequence 21 <br /><br /> Current log sequence 21 <br /><br /> SQL&gt; show parameter log_archive_start <br /><br /> NAME TYPE <i>value</i> <br /><br /> ------------------------------------ ----------- --- --------------------------- <br /><br /> log_archive_start boolean TRUE <br /><br /> SQL&gt; <br /><br /> Mandatory automatic archive mode archive <br /><br /> SQL&gt; alter system switch logfile; <br /><br /> SQL&gt; select * from v $ log;				<h5>Related Posts</h5>
		<div id="smilar">
		<ul>
					<li><a href="http://www.kods.net/sga-extended-the-principle-of-32bit-oracle/" title="SGA extended the principle of 32bit oracle">SGA extended the principle of 32bit oracle</a> 2009-03-31 09:48:01</li>
					<li><a href="http://www.kods.net/an-example-of-the-use-of-tkprof/" title="An example of the use of TKPROF">An example of the use of TKPROF</a> 2009-02-26 01:38:19</li>
					<li><a href="http://www.kods.net/diagnosis-and-principles-of-order/" title="Diagnosis and principles of order">Diagnosis and principles of order</a> 2009-02-25 20:27:28</li>
					<li><a href="http://www.kods.net/oracle-10g-dataguard-configuration-step-by-step/" title="ORACLE 10G dataguard configuration Step by Step">ORACLE 10G dataguard configuration Step by Step</a> 2009-02-16 01:13:55</li>
				</ul>
		</div>
		        ]]></content:encoded>
		<wfw:commentRss>http://www.kods.net/see-whether-the-archive-and-modify-oracle-database-archiving-mode/</wfw:commentRss>
	</item>
		<item>
		<title>Oracle archive log deletion</title>
		<link>http://www.kods.net/oracle-archive-log-deletion/</link>
		<comments>http://www.kods.net/oracle-archive-log-deletion/#comments</comments>
		<pubDate>Mon, 31 May 2010 06:47:12+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[oracle]]></category>
<category><![CDATA[flashback]]></category>
<category><![CDATA[data recovery]]></category>
<category><![CDATA[oracle user]]></category>
<category><![CDATA[orcl]]></category>
<category><![CDATA[target]]></category>
<category><![CDATA[rman]]></category>
<category><![CDATA[oracle data]]></category>
<category><![CDATA[last resort]]></category>
<category><![CDATA[current system]]></category>
<category><![CDATA[archiving]]></category>
<category><![CDATA[database server]]></category>
<category><![CDATA[archivelog]]></category>
<category><![CDATA[backup tools]]></category>
<category><![CDATA[oracle archive]]></category>
<category><![CDATA[archive directory]]></category>
<category><![CDATA[crosscheck]]></category>
<category><![CDATA[server host]]></category>
<category><![CDATA[maintenance tools]]></category>
<category><![CDATA[chu]]></category>
		<guid isPermaLink="true">http://www.kods.net/oracle-archive-log-deletion/</guid>
		<description><![CDATA[We all know the record in the controlfile archivelog with relevant information for each course are in the OS, delete these files off, after the physical, in our controlfile archivelog still record such information, in the oracle&#39;s OEM manager has a vi]]></description>
		<content:encoded><![CDATA[We all know the record in the controlfile archivelog with relevant information for each course are in the OS, delete these files off, after the physical, in our <br /><br /> controlfile archivelog still record such information, in the oracle&#39;s OEM manager has a visual log show that when we hand-Qing Chu archive directory file, these records have not been removed we are from the controlfile in, but also is the oracle does not know these files does not exist! this time we have to do manual removal, then I passed the following test, you can try this method: <br /><br /> 1. Into rman <br /><br /> 2. Connect target / <br /><br /> 3. Crosscheck archivelog all; <br /><br /> 4. Delete expired archivelog all; <br /><br /> Seen in this time we will definitely go OEM can not see, if you have never done this action, we can compare this action after the action before the controlfile after controlfile size! <br /><br /> ORACLE right to delete archive and recovery space approach <br /><br /> ORACLE right to delete archive and recovery space approach <br /><br /> ORACLE archiving log a regular full, showing / oraarchive this file space occupied by 100% you must complain about the reasons for not filing ORACLE maintenance tools, many people simply delete wrong, wrong, ORACLE there, and very smart, you can delete the file and correct FLASHBACK, but remember, ORACLE ORACLE archive logs for data recovery and backup is important, not a last resort and do not delete the archive log. <br /><br /> Delete archive log process <br /><br /> ORACLE user to log on to the database server host or through a network connection <br /><br /> Into the ORACLE data backup tools <br /><br /> rman target / <br /><br /> Or rman target / @ orcl <br /><br /> In the command window inside the implementation of the <br /><br /> DELETE ARCHIVELOG ALL COMPLETED BEFORE &#39;SYSDATE-7&#39;; <br /><br /> Explain <br /><br /> SYSDATA-7, show that the current system for 7 days, before keyword indicated in the 7 days prior to the log file, if you use the flashback feature, will also delete flashback data. <br /><br /> Similarly, you can delete from 7 days ago to the present all the logs, but this command should think carefully done this remove, the best full-back up the database immediately <br /><br /> DELETE ARCHIVELOG FROM TIME &#39;SYSDATE-7&#39;; <br /><br /> UNIX / LINUX FIND can also be found under the 7 days before the filing of data, use the delete EXEC sub-operation <br /><br /> find / oraarchive-xdev-mtime +7-name &quot;*. dbf&quot;-exec rm-f (); <br /><br /> This still left a not in the RMAN archive management <br /><br /> Still needed in the RMAN command in the implementation of the following two <br /><br /> crosscheck archivelog all; <br /><br /> delete expired archivelog all; <br /><br /> Therefore, the above method is not as easy to use, but with the benefits of FIND is, can conditions, and EXEC children do a lot of action, the more complex functions <br /><br /> 3. A brief overview report obsolete command <br /><br /> Report using the report obsolete command expired backup <br /><br /> RMAN&gt; report obsolete; <br /><br /> RMAN retention policy will be applied to the command <br /><br /> RMAN retention policy is set to redundancy 1 <br /><br /> Report of obsolete backups and copies <br /><br /> Type Key Completion Time Filename / Handle <br /><br /> -------------------- ------ ------------------ ------ -------------- <br /><br /> Backup Set 125 01-NOV-04 <br /><br /> Backup Piece 125 01-NOV-04 / data1/oracle/orabak/full_1_541045804 <br /><br /> Backup Set 131 04-NOV-04 <br /><br /> Backup Piece 131 04-NOV-04 / data1/oracle/orabak/full_AVATAR2_20041104_131 <br /><br /> .... <br /><br /> Backup Set 173 06-DEC-04 <br /><br /> Backup Piece 173 06-DEC-04 / data1/oracle/orabak/full_AVATAR2_20041206_173 <br /><br /> Backup Set 179 11-DEC-04 <br /><br /> Backup Piece 179 11-DEC-04 / data1/oracle/orabak/arch544588206.arc <br /><br /> ..... <br /><br /> Backup Piece 189 17-DEC-04 / data1/oracle/orabak/arch545106606.arc <br /><br /> Backup Set 190 17-DEC-04 <br /><br /> Backup Piece 190 17-DEC-04 / data1/oracle/orabak/arch545106665.arc <br /><br /> Backup Set 191 20-DEC-04 <br /><br /> Backup Piece 191 20-DEC-04 / data1/oracle/orabak/arch_AVATAR2_20041220_194 <br /><br /> Archive Log 2973 20-DEC-04 / opt/oracle/oradata/avatar2/archive/1_2985.dbf <br /><br /> Archive Log 2971 20-DEC-04 / opt/oracle/oradata/avatar2/archive/1_2984.dbf <br /><br /> ..... <br /><br /> Archive Log 2705 17-DEC-04 / opt/oracle/oradata/avatar2/archive/1_2717.dbf <br /><br /> Archive Log 2704 17-DEC-04 / opt/oracle/oradata/avatar2/archive/1_2716.dbf <br /><br /> Archive Log 2703 17-DEC-04 / opt/oracle/oradata/avatar2/archive/1_2715.dbf <br /><br /> Archive Log 2702 17-DEC-04 / opt/oracle/oradata/avatar2/archive/1_2714.dbf <br /><br /> This all-inclusive network transferred from ☆ ★ ★ ☆ - http://www.baoluowanxiang.com reproduced, please indicate the source, tort reserved! <br /> Original link: http://www.baoluowanxiang.com/a/website/database/2010/0522/877.html				<h5>Related Posts</h5>
		<div id="smilar">
		<ul>
					<li><a href="http://www.kods.net/sga-extended-the-principle-of-32bit-oracle/" title="SGA extended the principle of 32bit oracle">SGA extended the principle of 32bit oracle</a> 2009-03-31 09:48:01</li>
					<li><a href="http://www.kods.net/high-availability-oracle-flashback/" title="High Availability Oracle Flashback">High Availability Oracle Flashback</a> 2009-02-26 17:23:02</li>
					<li><a href="http://www.kods.net/an-example-of-the-use-of-tkprof/" title="An example of the use of TKPROF">An example of the use of TKPROF</a> 2009-02-26 01:38:19</li>
					<li><a href="http://www.kods.net/diagnosis-and-principles-of-order/" title="Diagnosis and principles of order">Diagnosis and principles of order</a> 2009-02-25 20:27:28</li>
					<li><a href="http://www.kods.net/oracle-10g-dataguard-configuration-step-by-step/" title="ORACLE 10G dataguard configuration Step by Step">ORACLE 10G dataguard configuration Step by Step</a> 2009-02-16 01:13:55</li>
				</ul>
		</div>
		        ]]></content:encoded>
		<wfw:commentRss>http://www.kods.net/oracle-archive-log-deletion/</wfw:commentRss>
	</item>
		<item>
		<title>oracle data dictionary to learn ------ Application (1)</title>
		<link>http://www.kods.net/oracle-data-dictionary-to-learn-application-1/</link>
		<comments>http://www.kods.net/oracle-data-dictionary-to-learn-application-1/#comments</comments>
		<pubDate>Wed, 19 May 2010 23:12:37+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[oracle]]></category>
<category><![CDATA[oracle database]]></category>
<category><![CDATA[sqlplus]]></category>
<category><![CDATA[select name]]></category>
<category><![CDATA[windows version]]></category>
<category><![CDATA[tns]]></category>
<category><![CDATA[instance name]]></category>
<category><![CDATA[ctl]]></category>
<category><![CDATA[database instance]]></category>
<category><![CDATA[database name]]></category>
<category><![CDATA[oracle data dictionary]]></category>
<category><![CDATA[archivelog]]></category>
<category><![CDATA[database management system]]></category>
<category><![CDATA[host name]]></category>
<category><![CDATA[system administrator]]></category>
<category><![CDATA[open mode]]></category>
<category><![CDATA[connect system]]></category>
<category><![CDATA[transparent network]]></category>
<category><![CDATA[substrate]]></category>
<category><![CDATA[transitions]]></category>
		<guid isPermaLink="true">http://www.kods.net/oracle-data-dictionary-to-learn-application-1/</guid>
		<description><![CDATA[1: First of all, switch to the system administrator sqlplus 2: query the database name, creation date and other information NOARCHIVELOG that the database is running in non archive mode, the status is read-write (normal state). ARCHIVELOG and non-arc ...]]></description>
		<content:encoded><![CDATA[1: First of all, switch to the system administrator sqlplus <br /><br /><table cellspacing="0" cellpadding="0" width="95%" border="1"><tbody><tr><td><br /> <code>SQL&gt; connect system/manager as sysdba<br />
 Connected  .</code> <br /><br /></td></tr></tbody></table><br /> 2: query the database name, creation date and other information <br /><br /><table cellspacing="0" cellpadding="0" width="95%" border="1"><tbody><tr><td><br /> <code>SQL&gt; select name,created,log_mode,open_mode from v$database;</code> <br /><br /> <code><br />
NAME   CREATED    LOG_MODE       OPEN_MODE<br />
--------- ---------- ------------ ----------<br />
ISO  08-4 Month   -10  NOARCHIVELOG    READ WRITE</code> <br /><br /></td></tr></tbody></table><br /> NOARCHIVELOG that the database is running in non archive mode, the status is read-write (normal state). <br /><br /> ARCHIVELOG and non-archive file on the difference between NOARCHIVELOG, and mode transitions, the unity of order in the next one log. <br /><br /> 3: query host name, database instance name, database management system version <br /><br /><table cellspacing="0" cellpadding="0" width="95%" border="1"><tbody><tr><td><br /> <code>SQL&gt; col host_name for a15;<br />
SQL&gt; select host_name,instance_name,version from v$instance;<br /><br />HOST_NAME     INSTANCE_NAME     VERSION<br />
--------------- ---------------- -----------------<br />
XXXXXXXXXX      iso            9.2.0.1.0</code> <br /><br /></td></tr></tbody></table><br /><br /> The host running oracle database name: XXXXXXXXXX, database instance name for iso. <br /><br /> 4: v $ version on view, query the database management system version of the detailed information. <br /><br /><table cellspacing="0" cellpadding="0" width="95%" border="1"><tbody><tr><td><br /> <code>SQL&gt; select * from v$version;<br /><br />BANNER<br />
----------------------------------------------------------------<br />
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production<br />
PL/SQL Release 9.2.0.1.0 - Production<br />
CORE 9.2.0.1.0 Production<br />
TNS for 32-bit Windows: Version 9.2.0.1.0 - Production<br />
NLSRTL Version 9.2.0.1.0 - Production</code> <br /><br /></td></tr></tbody></table><br /> Which, TNS stands for the Transparent Network Substrate <br /><br /> NLSRTL for the Oracle NLS Runtime Library of abbreviations <br /><br /> 5: Get Control of File Name <br /><br /><table cellspacing="0" cellpadding="0" width="95%" border="1"><tbody><tr><td><br /> <code>SQL&gt; col name for a45;<br />
SQL&gt; select * from v$controlfile;<br />
STATUS NAME<br />
------- ---------------------------------------------<br />
        D:\ORACLE\ORADATA\ISO\CONTROL01.CTL<br />
        D:\ORACLE\ORADATA\ISO\CONTROL02.CTL<br />
        D:\ORACLE\ORADATA\ISO\CONTROL03.CTL</code> <br /><br /></td></tr></tbody></table>				<h5>Related Posts</h5>
		<div id="smilar">
		<ul>
					<li><a href="http://www.kods.net/sga-extended-the-principle-of-32bit-oracle/" title="SGA extended the principle of 32bit oracle">SGA extended the principle of 32bit oracle</a> 2009-03-31 09:48:01</li>
					<li><a href="http://www.kods.net/an-example-of-the-use-of-tkprof/" title="An example of the use of TKPROF">An example of the use of TKPROF</a> 2009-02-26 01:38:19</li>
					<li><a href="http://www.kods.net/diagnosis-and-principles-of-order/" title="Diagnosis and principles of order">Diagnosis and principles of order</a> 2009-02-25 20:27:28</li>
					<li><a href="http://www.kods.net/oracle-10g-dataguard-configuration-step-by-step/" title="ORACLE 10G dataguard configuration Step by Step">ORACLE 10G dataguard configuration Step by Step</a> 2009-02-16 01:13:55</li>
				</ul>
		</div>
		        ]]></content:encoded>
		<wfw:commentRss>http://www.kods.net/oracle-data-dictionary-to-learn-application-1/</wfw:commentRss>
	</item>
		<item>
		<title>Flashback log management reference documents</title>
		<link>http://www.kods.net/flashback-log-management-reference-documents/</link>
		<comments>http://www.kods.net/flashback-log-management-reference-documents/#comments</comments>
		<pubDate>Thu, 01 Apr 2010 11:27:51+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[flashback]]></category>
<category><![CDATA[logs]]></category>
<category><![CDATA[disk space]]></category>
<category><![CDATA[backup disk]]></category>
<category><![CDATA[database level]]></category>
<category><![CDATA[quota]]></category>
<category><![CDATA[archivelog]]></category>
<category><![CDATA[recovery file]]></category>
<category><![CDATA[log management]]></category>
<category><![CDATA[flb]]></category>
		<guid isPermaLink="true">http://www.kods.net/flashback-log-management-reference-documents/</guid>
		<description><![CDATA[Solution Flashback logs are handled internally and we have no control over them. This means that we cannot delete flashback logs manually, the ONLY way to delete then is disabling FLASHBACK. The FlashBack Logs can ONLY be deleted by DISABLING FLASHBA ...]]></description>
		<content:encoded><![CDATA[Solution <br /> Flashback logs are handled internally and we have no control over them. This means <br /> that we cannot delete flashback logs manually, the ONLY way to delete then <br /> is disabling FLASHBACK. <br /><br /> The FlashBack Logs can ONLY be deleted by DISABLING FLASHBACK <br /> on database level <br /><br /> SQL&gt; startup mount <br /> alter database flashback off; <br /> alter database open; <br /><br /> During space pressure, the Flashback logs are deleted under two <br /> conditions: <br /><br /> 1) When an archivelog is deleted, it would also delete the flashback logs <br /> that are dependent on the archived log. <br /> 2) When quota is shrunk, then flashback logs is deleted to reclaim disk <br /> space. This is decreasing the DB_RECOVERY_FILE_DEST_SIZE to such a value <br /> that the FLB itself will run into a space pressure and than the old <br /> FLB \ &#39;s will get deleted. <br /><br /> We can hit bellow bug and then the flashback logs are not deleted <br /> even there is space pressure in the Flash backup disk space.				<h5>Related Posts</h5>
		<div id="smilar">
		<ul>
					<li><a href="http://www.kods.net/oracle-rman-backup-of-the-physical-meaning-of-rman-configuration/" title="Oracle RMAN backup of the physical meaning of RMAN configuration">Oracle RMAN backup of the physical meaning of RMAN configuration</a> 2009-04-09 16:20:02</li>
					<li><a href="http://www.kods.net/cloning-oracle-home-10g2/" title="Cloning Oracle Home (10g2)">Cloning Oracle Home (10g2)</a> 2009-04-06 21:46:55</li>
					<li><a href="http://www.kods.net/block-oracle-paragraph-reprint/" title="Block Oracle paragraph (reprint)">Block Oracle paragraph (reprint)</a> 2009-03-26 17:41:14</li>
					<li><a href="http://www.kods.net/troubleshooting-the-physical-set-up-the-backup-database/" title="Troubleshooting: the physical set up the backup database">Troubleshooting: the physical set up the backup database</a> 2009-03-13 00:53:17</li>
					<li><a href="http://www.kods.net/high-availability-oracle-flashback/" title="High Availability Oracle Flashback">High Availability Oracle Flashback</a> 2009-02-26 17:23:02</li>
				</ul>
		</div>
		        ]]></content:encoded>
		<wfw:commentRss>http://www.kods.net/flashback-log-management-reference-documents/</wfw:commentRss>
	</item>
		<item>
		<title>RMAN backup and recovery</title>
		<link>http://www.kods.net/rman-backup-and-recovery/</link>
		<comments>http://www.kods.net/rman-backup-and-recovery/#comments</comments>
		<pubDate>Thu, 25 Mar 2010 12:59:13+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[oracle]]></category>
<category><![CDATA[storage]]></category>
<category><![CDATA[backup database]]></category>
<category><![CDATA[recovery catalog]]></category>
<category><![CDATA[datafile]]></category>
<category><![CDATA[table space]]></category>
<category><![CDATA[oracle test]]></category>
<category><![CDATA[target database]]></category>
<category><![CDATA[database command]]></category>
<category><![CDATA[directory c]]></category>
<category><![CDATA[schema]]></category>
<category><![CDATA[archivelog]]></category>
<category><![CDATA[scripts]]></category>
<category><![CDATA[gt 2]]></category>
<category><![CDATA[resource recovery]]></category>
<category><![CDATA[catalog table]]></category>
<category><![CDATA[catalog metadata]]></category>
<category><![CDATA[catalog management]]></category>
		<guid isPermaLink="true">http://www.kods.net/rman-backup-and-recovery/</guid>
		<description><![CDATA[Recovery catalog management First, establish the steps to restore directory 1, the establishment of recovery catalog table space SQL&gt; CREATE TABLESPACE RMAN_TS 2&gt; DATAFILE &#39;D: \ ORACLE \ TEST \ RMAN.DBF&#39; SIZE 100M 2, create a restore directo]]></description>
		<content:encoded><![CDATA[Recovery catalog management <br /><br /> First, establish the steps to restore directory <br /> 1, the establishment of recovery catalog table space <br /> SQL&gt; CREATE TABLESPACE RMAN_TS <br /> 2&gt; DATAFILE &#39;D: \ ORACLE \ TEST \ RMAN.DBF&#39; SIZE 100M <br /><br /> 2, create a restore directory owner <br /> SQL&gt; CREATE USER RMAN IDENTIFIED BY RMAN <br /> 2&gt; DEFAULT TABLESPACE RMAN_TS <br /><br /> 3, given the role of recovery catalog owner. Recovery catalog owner must have RECOVERY_CATALOG_OWNER role. In addition, when creating recovery catalog, the need to connect to the database, and in restoration of Mulu tablespace to create tables, so the owner should also be for the restoration of Mulu CONNECT and RESOURCE Jiaose Shouyu <br /> SQL&gt; GRANT CONNECT, RESOURCE, RECOVERY_CATALOG_OWNER TO RMAN <br /><br /> 4, create a restore directory. <br /> C: \&gt; RMAN CATALOG RMAN / RMAN @ CATADB. <br /> RMAN&gt; CREATE CATALOG; <br /><br /> 5, register the target database. After the establishment of a recovery catalog, RMAN to the target database to recovery catalog metadata store, you must connect to the target database, and use the REGISTER DATABASE command register the target database, <br /> Can use the REPORT SCHEMA command to check whether the registration was successful. <br /><br /> C: \&gt; RMAN CATALOG RMAN / RMAN @ CATADB <br /><br /> RMAN&gt; CONNECT TARGET SYS / ORACLE @ MYDB <br /><br /> RMAN&gt; REGISTER DATABASE <br /><br /> RMAN&gt; REPORT SCHEMA; <br /><br /> Second, use stored scripts <br /> 1, the establishment of storage script <br /> RMAN&gt; CREATE SCRIPT BACKUP_DATABASE ( <br /> 2&gt; BACKUP FORMAT = &#39;D: \ BACKUP \% d_% s.bak&#39; database <br /> 3&gt; include current controlfile <br /> 4&gt; plus archivelog; <br /> 5&gt; sql &#39;alter system archive log current&#39;; <br /> 6&gt;) <br /><br /> 2, run the stored script <br /> (1) in the RMAN prompt, run the stored script <br /> RMAN&gt; RUN (EXECUTE SCRIPT BACKUP_DATABASE;) <br /><br /> (2) stored in the command line to run the script. <br /> C: \&gt; RMAN CATALOG RMAN / RMAN @ MYORCL TARGET SYS / WENZI @ MYDB SCRIPT BACKUP_DATABASE <br /><br /> 3, showing script content <br /> RMAN&gt; PRINT SCRIPT BACKUP_DATABASE <br /><br /> 4, replace the stored script <br /> RMAN&gt; REPLACE SCRIPT BACKUP_DATABASE ( <br /> 2&gt; BACKUP DATABASE; <br /> 3) <br /><br /> 5, delete the stored script <br /> RMAN&gt; DELETE SCRIPT BACKUP_DATABASE; <br /><br /> 7, list all stored scripts <br /> RMAN&gt; LIST SCRIPT NAMES; <br /><br /> Third, to maintain recovery catalog <br /><br /> 1, re-synchronization recovery catalog resynchronization recovery catalog is intended to enable recovery catalog and target database control file sync, when the target changes the physical structure of the database (add and remove table space, more data files), you should re-sync recovery catalog . <br /> RMAN&gt; RESYNC CATALOG; <br /><br /> 2, off the target database <br /> RMAN&gt; UNREGISTER DATABASE; <br /><br /> 3, the upgrade to restore catalog if the RMAN recovery catalog client version than the version number, you should upgrade to restore directory. Note that when upgrading to restore directory, need to perform two UPGRADE CATALOG command. <br /> RMAN&gt; UPGRADE CATALOG; <br /> ... <br /> ... <br /> RMAN&gt; UPGRADE CATALOG; <br /><br /> 4, delete the recovery catalog to delete recovery catalog, it will delete the directory of all information. Note that when removed to restore directory, the need to perform two DROP CATALOG command. <br /><br /> 5, restore the database to an earlier copy of the database is not fully recovered when implemented, the need to open the database using the RESETLOGS option, when using this option to open the database, creates a copy of the database, if you want to copy the database to restore to an earlier state <br /> You must use the RESET DATABASE TO INCARNATION command to set the early copy of a copy of the current database, and then perform the appropriate action. Steps are as follows: <br /> (1) copy of a copy of the database to determine key <br /> RMAN&gt; LIST INCARNATION OF DATABASE; <br /><br /> (2) set the database to an earlier version <br /> RMAN&gt; STARTUP FORCE MOUNT <br /> RMAN&gt; RESET DATABASE TO INCARNATION 2; <br /><br /> (3) dump an earlier version of the control file. When the dump control file, the required target database must be in NOMOUNT state. Note that when an earlier version of the control of the dump file, to ensure control of copies exist. <br /> RMAN&gt; RUN ( <br /> 2&gt; STARTUP FORCE NOMOUNT; <br /> 3&gt; SET UNTIL SCN = 656740; <br /> 4&gt; RESTORE CONTROLFILE; <br /> 5&gt;) <br /><br /> (4) to restore the database to an earlier copy. <br /> RMAN&gt; RUN ( <br /> 2&gt; ALTER DATABASE MOUNT; <br /> 3&gt; RESTORE DATABASE; <br /> 4&gt; RECOVER DATABASE; <br /> 5&gt; ALTER DATABASE OPEN RESETLOGS; <br /> 6&gt;) <br /><br /> 4, the query restore directory <br /><br /> 1, RC_DATABASE <br /> The data dictionary view used to display the directory has been registered in the recovery of all target database information. <br /> SQL&gt; SELECT DBID, NAME, RESETLOGS_CHANGE # FROM RC_DATABASE <br /><br /> 2, RC_TABLESPACE <br /> The data dictionary view used to display records in the recovery catalog in the target database table space information. <br /> SQL&gt; SELECT TS #, NAME, CREATION_CHANGE # FROM RC_TABLESPACE WHERE DB_NAME = &#39;MYDB&#39; <br /><br /> 3, RC_DATAFILE<br /> The data dictionary view used to display records in the recovery catalog in the target database data file information. <br /> SQL&gt; SELECT FILE #, NAME, BYTES FROM RC_DATAFILE WHERE DB_NAME = &#39;MYDB&#39; <br /><br /> 4, RC_STORED_SCRIPT <br /> The data dictionary view used to display the directory in the restoration of all the recorded information stored in the script. <br /> SQL&gt; SELECT SCRIPT_NAME FROM RC_STORED_SCRIPT WHERE DB_NAME = &#39;MYDB&#39; <br /><br /> 5, RC_STORED_SCRIPT_LINE <br /> The data dictionary view used to store the contents of the script. <br /> SQL&gt; SELECT LINE, TEXT FROM RC_STORED_SCRIPT_LINE WHERE SCRIPT_NAME = &#39;BACKUP_DATABASE&#39; <br /><br /><h3> RMAN configuration and maintenance of command </h3><br /> 1, REPORT <br /> 1, report the physical structure of the target database <br /> RMAN&gt; REPORT SCHEMA <br /><br /> 2, the report need to back up data files <br /><br /> Before the implementation of backup and often need to obtain the information needed to back up data files, through the implementation of the REPORT NEED BACKUP command, you can list needs to back up data files. When using the REPORT NEED BACKUP command, you can with the INCREMENTAL, DAYS, REDUNDANCY, RECOVERY WINDOW four options. <br /><br /> (1) The need to dump a specific number of incremental backups of data files beyond recovery data files when the need to dump the data file backup, and then apply the implementation of recovery archive log. If the backup data files and cumulative incremental backup using backup strategy, then dump the data files in the order of the dump <br /> 0,1,2 .. level incremental backup, file backup dump of the data the more the longer the recovery time, to report the following data files need to restore the incremental backup dump more than 3 times the number of data files as an example : <br /> RMAN&gt; REPORT NEED BACKUP INCREMENTAL 3 <br /><br /> One file is used to identify the data file number, Incrementals used to identify the need to dump the backup file number, Name used to identify the data file name, if a file appears more than three times the number of dump, <br /> Should be performed on the data file level 0 full backup or incremental backup. <br /><br /> (2) reported a specific number of days did not restore the backup of data files when the data file, the required data in the dump file backup, the backup point from the start will be applied to all archived logs. Need to apply more archive logs, the longer the recovery time, in order to reduce the recovery time, backup data files should be established period of time. <br /><br /> 3 days on USERS tablespace data files are not backed up <br /> RMAN&gt; REPORT NEED BACKUP DAYS 3 TABLESPACE USERS; <br /><br /> More than 10 days within the database data files are not backed up <br /> REPORT NEED BACKUP DAYS 10 <br /><br /> (3) report less than a specific number of data file backup to restore data files, you need to dump the data file backup. Media failure occurs when the data file and data file backup is also a problem, it will lead to the data file can not be recovered. When making backup copies off, <br /> Data file backup to prevent problems, should keep multiple backup data files, but some file backup times too low, the need to increase the number of backups. <br /> RMAN&gt; REPORT NEED BACKUP REDUNDANCY 2 DATABASE; <br /><br /> (4) report the recovery time window when data files are not backed up to recover data file, the required data in the dump file backup, the backup point from the start will be applied to all archived logs. Need to apply more archive logs, and recovery time is longer. Window by using the recovery time, recovery operations can be applied archive logs need to control within a specific time. Below to report more than 6 days did not restore the window back up data files to illustrate the method using DAYS options: <br /> RMAN&gt; REPORT NEED BACKUP RECOVERY WINDOW OF 6 DAYS <br /><br /> DAYS used to identify a few days to restore data files need to apply archive logs. <br /><br /> 3, report the implementation of the old backups when using RMAN restore operation, RMAN will automatically dump the most recent backup file, and then apply the archive logs after the backup file. If the specific data files on a number of backups, you can delete the earlier backups, by using REPORT OBSOLETE command, you can report the old backup. The following example report back more than 2 times the number of old backups: <br /> RMAN&gt; REPORT OBSOLETE REDUNDANCY 2; <br /><br /> 4, the report can not restore the data file when loading the database using the NOLOGGING option after the change has not been recorded because the data to the archive log, it will lead to past data file backup can not restore the current data file. To prevent data files can not be restored, the data files should be backed up by the following statement, you can view the database can not restore all data files: <br /> RMAN&gt; REPORT UNRECOVERABLE; <br /><br /> 2, LIST <br /><br /> A, listed in the data file backup set <br /> RMAN&gt; LIST BACKUP OF TABLESPACE USER01; <br /><br /> 2, lists the control file backup set <br /> RMAN&gt; LIST BACKUP OF CONTROLFILE; <br /><br /> 3, lists the archive log backup set <br /> RMAN&gt; LIST BACKUP OF ARCHIVELOG ALL; <br /><br /> 4, lists the SPFILE backup set <br /> RMAN&gt; LIST BACKUP OF SPFILE; <br /><br /> 5, lists the data file image copies<br /> LIST COPY OF DATABASE can list all of the data file image copies; with LIST COPY OF TABLESPACE tablespace data files are listed in a specific image copy; listed with LIST COPY OF DATAFILE specific image copy data files. <br /><br /> RMAN&gt; LIST COPY OF DATAFILE 5 <br /><br /> 6, lists the control file image copies <br /> RMAN&gt; LIST COPY OF CONTROLFILE <br /><br /> 7, archive log image copy of the list. <br /> RMAN&gt; LIST COPY OF ARCHIVELOG ALL; <br /><br /> 8, lists each copy of the database using the RESETLOGS option to open the database after the database will generate a new copy. <br /> RMAN&gt; LIST INCARNATION OF DATABASE; <br /><br /> 3, CROSSCHECK <br /> This command is used to check the disk and tape backup files to ensure that the RMAN database backup files in sync. RMAN will check the order recorded in the database backup file. When the implementation of the CROSSCHECK command, if the database record does not match the physical state of the backup file, then the command will update the database record of status information. When using CROSSCHECK check the backup file after the command, the status of the backup file will include AVALIABLE, UNAVALIABLE and EXPIRED three, <br /> If the backup file is in EXPIRED status, it indicates the physical file has been manually deleted or damaged. Note that if the backup file is in EXPIRED status, should use the DELETE command to delete the backup files. <br /><br /> 1, check all backup sets <br /> RMAN&gt; CROSSCHECK BACKUP; <br /><br /> 2, check all the data files of the backup set <br /> RMAN&gt; CROSSCHECK BACKUP OF DATABASE; <br /><br /> 3, check a specific table space backup set <br /> RMAN&gt; CROSSCHECK BACKUP OF TABLESPACE SYSTEM; <br /><br /> 4, check a specific backup set data file <br /> RMAN&gt; CROSSCHECK BACKUP OF DATAFILE 4; <br /><br /> 5, check the control file backup set <br /> RMAN&gt; CROSSCHECK BACKUP OF CONTROLFILE; <br /><br /> 6, check the SPFILE in backup set <br /> RMAN&gt; CROSSCHECK BACKUP OF SPFILE; <br /><br /> 7, check the archive log backup set <br /> RMAN&gt; CROSSCHECK BACKUP OF ARCHIVELOG SEQUENCE 3; <br /><br /> 8, check a copy of all images <br /> RMAN&gt; CROSSCHECK COPY; <br /><br /> 9, check all of the data file image copies <br /> RMAN&gt; CROSSCHECK COPY OF DATABASE; <br /><br /> 10, check a specific image copy of table space <br /> RMAN&gt; CROSSCHECK COPY OF TABLESPACE USERS; <br /><br /> 11, matching a particular data file image copies <br /> RMAN&gt; CROSSCHECK COPY OF DATAFILE 4; <br /><br /> 12, check the control file copy of the image <br /> RMAN&gt; CROSSCHECK COPY OF CONTROLFILE; <br /><br /> 13, check the archived log image copy <br /> RMAN&gt; CROSSCHECK COPY OF ARCHIVELOG SEQUENCE 4; <br /><br /> 4, DELETE <br /><br /> This command is used to delete RMAN backup records and the corresponding physical file <br /><br /> 1, delete the old backup <br /> RMAN&gt; DELETE OBSOLETE; <br /><br /> 2, delete EXPIRED backup set when using the OS command to delete the backup set that corresponds to the backup piece file, check if command execution CROSSCHECK backup set, then the backup set will be marked as EXPIRED state. <br /> RMAN&gt; DELETE NOPROMPT EXPIRED BACKUP; <br /><br /> 3, delete the copy EXPIRED <br /> RMAN&gt; DELETE NOPROMPT EXPIRED COPY; <br /><br /> 4, delete a specific backup set <br /> RMAN&gt; DELETE NOPROMPT BACKUPSET 19; <br /><br /> 5, to delete a specific backup pieces <br /> RMAN&gt; DELETE NOPROMPT BACKUPPIECE &#39;D: \ BACKUP \ DEMO_18.BAK&#39;; <br /><br /> 6, delete all backup sets <br /> RMAN&gt; DELETE NOPROMPT BACKUP; <br /><br /> 7, to delete specific image copy <br /> RMAN&gt; DELETE NOPROMPT DATAFILECOPY &#39;D: \ BACKUP \ DEM0_19.BAK&#39;; <br /><br /> 8, delete all image copies <br /> RMAN&gt; DELETE NOPROMPT COPY; <br /><br /> 9, after the backup to delete the object when using the BACKUP command input archive log backup or backup set, the backup is complete you can delete the original input object, an example is as follows: <br /> RMAN&gt; BACKUP ARCHIVELOG ALL DELETE INPUT; <br /> RMAN&gt; BACKUP BACKUPSET 22 FORMAT = &#39;D: \ BACKUP \% u.BAK&#39; DELETE INPUT; <br /><br /> 5, CHANGE <br /><br /> 1, to change the status of the backup set available CHANGE BACKUPSET .. UNAVAILABLE / AVAILABLE to change the status of a backup set. <br /><br /> RMAN&gt; CHANGE BACKUPSET 22 UNAVAILABL E <br /><br /> 2, change the image copy of the state data files: CHANGE DATAFILECOPY .. AVAILABLE / UNAVAILABLE <br /> Control file: CHANGE CONTROLFILECOPY .. AVAILABLE / UNAVAILABLE <br /> Archive Log: CHANGE ARCHIVELOG .. AVAILABLE / UNAVAILABLE <br /><br /> For example: <br /> RMAN&gt; CHANGE DATAFILECOPY &#39;D: \ BACKUP \ DEMO_37.BAK&#39; UNAVAILABLE; <br /><br /> 3, long-term backup long-term backup is to be a long-term retention of backup files, using the long-term objective is to backup the database can be restored to a specific point in time past. When the agency after the top of a long-term backup, RMAN will remove from the device redundancy in the backup file, that is, long-term backup file backup will not be marked as obsolete. <br /> Command: CHANGE .. KEEP / NOKEEP <br /><br /> (1) to permanently keep the backup set 156 <br /> RMAN&gt; CHANGE BACKUPSET 156 KEEP FOREVER LOGS; <br /> (2) to make reservations 60 days in the backup set 198 <br /> RMAN&gt; CHANGE BACKUPSET 198 KEEP UNTIL TIME &#39;SYSDATE +60&#39; LOGS; <br /> (3) to remove the backup set retention period 156 <br /> RMAN&gt; CHANGE BACKUPSET 156 NOKEEP <br /><br /><h3> RMAN backup and recovery management </h3><br /> First, configure the RMAN environment <br /> 1. Configure Automatic channel before 9i, when you use RMAN backup, dump and restore operation, you must manually allocate channels, and specify the corresponding parameter configuration, starting from 9i, DBA can be stored RMAN RMAN channel configuration database, which make <br /> RMAN can automatically allocated channel. However, when the implementation of special operations when RMAN, DBA can still use the ALLOCATE CHANNEL override the default channel configuration. <br /> (1) configure channel parallelism. <br /> RMAN&gt; CONFIGURE DEVICE TYPE DISK PARALLELISM 3 <br /> RMAN&gt; CONFIGURE DEVICE TYPE sbt PARALLELISM 3 <br /><br /> (2) configuration backup file format for all channels. By default, RMAN will automatically allocate a DISK channel, and there is no option. By configuring automatic channels, you can specify backup file format for all channels. Examples are as follows: <br /> RMAN&gt; CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT &#39;D: \ BACKUP \% d_% s_% p.bak&#39;; <br /><br /> (3) a specific channel configuration backup file format. When the auto-channel configuration, if you do not specify channel number, will be configured for all channels. If you want to cultivate a particular channel, you can specify the channel number. Examples are as follows: <br /> RMAN&gt; CONFIGURE CHANNEL 1 DEVICE TYPE DISK FORMAT &#39;D: \ BACKUP \% d_% s_% p.bak&#39;; <br /><br /> RMAN&gt; CONFIGURE CHANNEL 2 DEVICE TYPE DISK FORMAT &#39;D: \ BACKUP \% u.bak&#39;; <br /><br /> (4) configure the default storage device. By default, RMAN storage devices for the DISK. By configuring the default storage devices, storage devices can be configured as the default disk or tape. Examples are as follows: <br /> RMAN&gt; CONFIGURE DEFAULT DEVICE TYPE TO DISK; <br /><br /> RMAN&gt; CONFIGURE DEFAULT DEVICE TYPE TO SBT; <br /><br /> 2. Configure backup sets and backup pieces maximum size maximum size by configuring the backup set, you can back up the distribution of Togo files to multiple backup sets. Note that when configure backup sets the maximum size, must ensure that its size can accommodate maximum data file backup group. Examples are as follows: <br /> RMAN&gt; CONFIGURE MAXSETSIZE TO 1G; <br /><br /> By default, each backup set contains only one backup piece file, by cultivating the maximum size of the backup piece can be a large backup set into a relatively small number of backup piece file, and the distribution of backup files to multiple-chip a device. Examples are as follows: <br /> RMAN&gt; CONFIGURE CHANNEL DEVICE TYPE DISK MAXPIECESIZE 500M; <br /><br /> 3. Configure backup optimization backup optimization skips in some cases for a specific file backup. If you feel exactly the same backup files exist, then when activated when backup optimization skips the file. Note that backup optimization applies only to BACKUP DATABASE, <br /> BACKUP ARCHIVELOG ALL / LIKE and BACKUP BACKUPSET ALL command. By default, RMAN backup optimization prohibited. Activate the backup optimization example is as follows: <br /> RMAN&gt; CONFIGURE BACKUP OPTIMIZATION ON <br /> 4. Configure multiple backup default, when you use RMAN to perform backup operations, will generate a backup copy of the film, in order to generate multiple copies of backup pieces, you can configure multiple backup. Examples are as follows: <br /> RMAN&gt; CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE TO 3; <br /><br /> 5. Configuration to remove the table space by default, when the implementation of the BACKUP DATABASE command, will be back up in addition to all the temporary table space, table space. If some table space is used for storage of test data, or table space change very little, you can remove the backup database, the table space. <br /> RMAN&gt; CONFIGURE EXCLUDE FOR TABLESPACE USER03; <br /><br /> 6. Configuration backup redundancy <br /> RMAN&gt; CONFIGURE RETENTION POLICY TO REDUNDANCY 2; <br /><br /> 7. Configuration supporting routine data file name. <br /> When using RMAN tablespace point in time the implementation of recovery (TSPITR) or copy the database, you may need to set the auxiliary routine data file name. <br /> RMAN&gt; CONFIGURE AUXNAME FOR DATAFILE 2 TO &#39;D: \ AUXI \ DF_2.DBF&#39; <br /><br /> 8. Configuration snapshot control file name <br /> RMAN&gt; CONFIGURE SNAPSHOT CONTROLFILE NAME TO &#39;D: \ ORACLE \ ORA10 \ snfcDEMO.ORA&#39;; <br /><br /> 9. Showing RMAN Configuration <br /><br /> (1) show all RMAN configuration <br /> RMAN&gt; SHOW ALL; <br /><br /> (2) shows the default device type <br /> RMAN&gt; SHOW DEFAULT DEVICE TYPE; <br /><br /> (3) shows the auto-channel configuration <br /> RMAN&gt; SHOW CHANNEL FOR DEVICE TYPE DISK / sbt; <br /><br /> (4) shows the backup redundancy <br /> RMAN&gt; SHOW RETENTION POLICY; <br /><br /> (5) shows that backup optimization <br /> RMAN&gt; SHOW BACKUP OPTIMIZATION <br /><br /> (6) shows a snapshot control file <br /> RMAN&gt; SHOW SNAPSHOT CONTROLFILE NAME; <br /><br /> (7) shows the maximum size of backup sets <br /> RMAN&gt; SHOW MAXSETSIZE; <br /><br /> (8) showed that multiple backup<br /> RMAN&gt; SHOW DATAFILE BACKUP COPIES <br /><br /> RMAN&gt; SHOW ARCHIVELOG BACKUP COPIES; <br /><br /> (9) Clear RMAN configuration (restore default). Examples are as follows: <br /> RMAN&gt; CONFIGURE RETENTION POLICY CLEAR <br /><br /> Second, RMAN backup <br /><br /> 1, name format, match operator <br /><br /> % C: when generating multiple backup, is used to specify a backup copy of film <br /> % D: is used to specify the database name <br /> % E: log sequence number for the specified archive <br /> % P: is used to specify the backup piece within the backup set number <br /> % S: used to specify the backup set number <br /> % N: is used to specify the name of the table space <br /> % F: language specifies the absolute file number <br /><br /> 2, full database backup set <br /> (1) consistency of the backup. Consistency is the backup after the database is closed back up all data files and control of documents, both for the archive mode and non-archive mode. <br /> RMAN&gt; SHUTDOWN IMMEDIATE <br /> RMAN&gt; STARTUP MOUNT <br /> RMAN&gt; BACKUP DATABASE FORMAT = &#39;D: \ BACKUP \% d_% s.dbf&#39;; <br /> RMAN&gt; SQL &#39;ALTER SYSTEM ARCHIVE LOG CURRENT&#39; <br /><br /> (2) non-conformance backup <br /> RMAN&gt; BACKUP DATABASE FORMAT = &#39;D: \ BACKUP \% d_% s.dbf&#39;; <br /> RMAN&gt; SQL &#39;ALTER SYSTEM ARCHIVE LOG CURRENT&#39; <br /><br /> (3) to remove the table space <br /> RMAN&gt; CONFIGURE EXCLUDE FOR TABLESPACE USER03; <br /> RMAN&gt; BACKUP DATABASE FORMAT = &#39;D: \ BACKUP \% d_% s.dbf&#39;; <br /> RMAN&gt; SQL &#39;ALTER SYSTEM ARCHIVE LOG CURRENT&#39; <br /><br /> 3, table space backup set backup table space is only applicable to archive mode, and requires the database must be in OPEN state. <br /> RMAN&gt; BACKUP TABLESPACE USER03 FORMAT = &#39;D: \ BACKUP \% N_% f_% s.dbf&#39;; <br /><br /> 4, data file backup set of backup data files both in OPEN state, can also MOUNT state. <br /> RMAN&gt; BACKUP DATAFILE 5 FORMAT = &#39;D: \ BACKUP \% N_% f_% s.dbf&#39;; <br /><br /> 5, control file backup set <br /> RMAN&gt; BACKUP CURRENT CONTROLFILE FORMAT = &#39;D: \ BACKUP \% d_% s.dbf&#39; <br /> Note: When the backup data file 1, will automatically back up the control file. When the back up other data files, by specifying the INCLUDE CURRENT CONTROLFILE option to also back up the control file, such as: <br /> RMAN&gt; BACKUP DATAFILE 5 FORMAT = &#39;D: \ BACKUP \% d_% s.dbf&#39; include current controlfile; <br /><br /> 6, SPFILE backup set <br /> RMAN&gt; BACKUP SPFILE FORMAT = &#39;D: \ BACKUP \% d_% s.par&#39;; <br /><br /> 7, archive log backup set <br /> RMAN&gt; BACKUP FORMAT = &#39;D: \ BACKUP \% d_% s.arc&#39; ARCHIVELOG FROM TIME = &#39;SYSDATE-1&#39; UNTIL TIME = &#39;SYSDATE&#39;; <br /><br /> 8, parallel backup set <br /> RMAN&gt; CONFIGURE DEVICE TYPE DISK PARALLELISM 3; <br /> RMAN&gt; BACKUP DATABASE FORMAT = &#39;D: \ BACKUP \% d_% s.dbf&#39;; <br /> RMAN&gt; CONFIGURE DEVICE TYPE DISK CLEAR; <br /><br /> 9, the establishment of multiple backup <br /> RMAN&gt; BACKUP COPIES 3 TABLESPACE USERS FORMAT = &#39;D: \ BACKUP \% N_% s.dbf&#39;, &#39;E: \ BACKUP \% N_% s.DBF&#39;, &#39;F: \ BACKUP \% N_% s.DBF&#39; <br /><br /> 10, backup backup set <br /> RMAN&gt; BACKUP BACKUPSET 32 FORMAT = &#39;D: \ BACKUP \% d_% s.bak&#39;; <br /><br /> 11, create multiple backup discs when creating a backup set, by default, each backup set contains only one backup piece. If the tape storage space is not set to hold a single backup piece backup set files, you need to backup sets divided into several smaller backup piece file, and the maximum size of the backup piece size should be smaller than the tape. Note that when creating multiple backup piece, specify the% p must match the character. <br /> RMAN&gt; CONFIGURE CHANNEL DEVICE TYPE sbt MAXPIECESIZE 4G; <br /> RMAN&gt; BACKUP DEVICE TYPE sbt FORMAT &#39;% d_% s_% p.dbf&#39; database; <br /><br /> 12, the establishment of compressed backup sets <br /> RMAN&gt; BACKUP AS COMPRESSED BACKUPSET TABLESPACE USERS FORMAT = &#39;D: \ BACKUP \% d_% s.dbf&#39;; <br /><br /> 13, backup data files and archive logs <br /> RMAN&gt; BACKUP FORMAT &#39;D: \ BACKUP \% d_% s.bak&#39; tablespace user01 plus archivelog; <br /><br /> 14, the designated backup sets mark <br /> RMAN&gt; BACKUP FORMAT &#39;D: \ BACKUP \% d_% s.bak&#39; tablespace users tag = &#39;users&#39;; <br /><br /> 15, the establishment of image copies <br /> (1) establishing a data file image copies <br /> RMAN&gt; BACKUP AS COPY FORMAT = &#39;D: \ BACKUP \ DF_5.DBF&#39; DATAFILE 5; <br /> RMAN&gt; COPY DATAFILE 5 TO &#39;D: \ BACKUP \ DF_5.DBF&#39; <br /><br /> (2) to establish control file image copies <br /> RMAN&gt; BACKUP AS COPY FORMAT = &#39;D: \ BACKUP \ DEMO.CTL&#39; CURRENT CONTROLFILE; <br /> RMAN&gt; COPY CURRENT CONTROLFILE TO &#39;D: \ BACKUP \ DEMO.CTL&#39;; <br /><br /> (3) the establishment of archived log image copies <br /> RMAN&gt; BACKUP AS COPY FORMAT = &#39;D: \ BACKUP \ ARCHIVE \ ARC20.LOG&#39; ARCHIVELOG SEQUENCE 20; <br /> RMAN&gt; COPY ARCHIVELOG &#39;D: \ DEMO \ ARCHIVE \ ARC00020_0538067512.001&#39; TO &#39;D: \ BACKUP \ ARCHIVE \ ARC20.LOG&#39; <br /><br /> (4) the establishment of parallel image copy <br /> RMAN&gt; CONFIGURE DEVICE TYPE DISK PARALLELISM 3; <br /> RMAN&gt; BACKUP AS COPY FORMAT = &#39;D: \ BACKUP \ DF_% f.DBF&#39; DATAFILE 5,5,7; <br /> RMAN&gt; CONFIGURE DEVICE TYPE DISK CLEAR; <br /><br /> (5) a copy of the specified image tag<br /> RMAN&gt; BACKUP AS COPY FORMAT = &#39;D: \ BACKUP \ DF_% f.DBF&#39; DATAFILE 5 TAG = DF_5; <br /> RMAN&gt; COPY DATAFILE 5 TO &#39;D: \ BACKUP \ DF_% f.DBF&#39; TAG = DF_5; <br /><br /> 16, to establish the cumulative incremental backups and backup <br /> (1) the establishment of an incremental backup <br /> RMAN&gt; BACKUP INCREMENTAL LEVEL 0 FORMAT = &#39;D: \ BACKUP \% d_% s.dbf&#39; tablespace users; <br /><br /> RMAN&gt; BACKUP INCREMENTAL LEVEL 1 FORMAT = &#39;D: \ BACKUP \% d_% s.dbf&#39; tablespace users; <br /><br /> RMAN&gt; BACKUP INCREMENTAL LEVEL 2 FORMAT = &#39;D: \ BACKUP \% d_% s.dbf&#39; tablespace users; <br /><br /> (2) to establish the cumulative backup <br /> RMAN&gt; BACKUP INCREMENTAL LEVEL 0 FORMAT = &#39;D: \ BACKUP \% d_% s.dbf&#39; tablespace users; <br /><br /> RMAN&gt; BACKUP INCREMENTAL LEVEL 2 FORMAT = &#39;D: \ BACKUP \% d_% s.dbf&#39; tablespace users; <br /><br /> RMAN&gt; BACKUP INCREMENTAL LEVEL 2 cumulative FORMAT = &#39;D: \ BACKUP \% d_% s.dbf&#39; tablespace users; <br /><br /> RMAN&gt; BACKUP INCREMENTAL LEVEL 1 FORMAT = &#39;D: \ BACKUP \% d_% s.dbf&#39; tablespace users; <br /><br /> 17, shows backup information <br /> (1) V $ ARCHIVED_LOG. The dynamic performance view to display all archived log image copy of the information. <br /> SQL&gt; select sequence #, name, first_change # from v $ archived_log where status = &#39;A&#39; <br /><br /> (2) V $ BACKUP_DATAFILE dynamic view of the display control file for backup information and data files. Through the dynamic performance view V $ BACKUP_DATAFILE, V $ BACKUP_PIECE connection between the query <br /> Can display a specific data file backup piece file information. <br /> SQL&gt; SELECT A. FILE #, B. HANDLE, A. BLOCKS * A. BLOCK_SIZE BYTE FROM V $ BACKUP_DATAFILE A, V $ BACKUP_PIECE B WHERE A. SET_STAMP = B. SET_STAMP AND B. STATUS = &#39;A&#39;; <br /><br /> (3) V $ BACKUP_REDOLOG dynamic performance view of the archive log backup set is used to display information, for each archive log backup set can contain one or more archived logs. Through the V $ BACKUP_PIECE and V $ BACKUP_REDOLOG <br /> The connection between the query, you can display the backup piece file contains archive log backup information. <br /> SQL&gt; SELECT DISTINCT A. HANDLE, B. SEQUENCE #, B. FIRST_CHANGE #, B. BLOCKS FROM V $ BACKUP_PIECE A, V $ BACKUP_REDOLOG B WHERE A. SET_STAMP = B. SET_STAMP AND A. STATUS = &#39;A&#39; <br /><br /> (4) V $ BACKUP_SET, V $ BACKUP_PIECE, the former is used to display the details of the backup set, which is used to display the details of the backup piece, by the connection between the two queries, you can display the corresponding backup set backup piece of information. <br /> SQL&gt; SELECT B. HANDLE, A. BACKUP_TYPE, A. PIECES, A. ELAPSED_SECONDS FROM V $ BACKUP_SET A, V $ BACKUP_PIECE B WHERE A. SET_STAMP = B. SET_STAMP AND B. STATUS = &#39;A&#39; <br /><br /> Note: handle for that backup piece file name, backup_type backup for that film type (D: data file backup completed, I: data file incremental backup, L: archive log backup), pieces for that backup piece number, <br /> elapsed_seconds used to indicate the total cost of backup time. <br /><br /> (5) V $ BACKUP_CORRUPTION BACKUP command is used to display in the implementation of the damage was detected when the data block information. <br /> SQL&gt; SELECT FILE #, BLOCK #, BLOCKS, MARKED_CORRUPT FROM V $ BACKUP_CORRUPTION; <br /><br /> (6) V $ COPY_CORRUPTION used to display the COPY command in the implementation of the damage was detected when the data block information. <br /> SQL&gt; SELECT FILE #, BLOCK #, BLOCKS, MARKED_CORRUPT FROM V $ COPY_CORRUPTION; <br /><br /> 3, RMAN restore <br /> 1, RMAN dump command <br /><br /> (1) RESTORE DATABASE database used to dump all the files, all data files when the database is all the media failure occurred, or perform incomplete recovery, you should use this command. <br /> Note that this command can only be used in the MOUNT state. <br /><br /> (2) RESTORE TABLESPACE used to dump a specific table space data file. If a table space, all the data files all the media failure occurred, and the database is in OPEN state, you should use this command to dump all their data files. Note that this command can only be used in OPEN state. <br /><br /> (3) RESTORE DATAFILE. Specific data for the dump file, the command can use the MOUNT and OPEN state <br /><br /> (4) RESTORE CONTROLFILE control file for the dump, when implementation of the control file based on the incomplete recovery or restore the database to a previous copy of the state, must dump the control file. <br /> Note that this command can only be used in NOMOUNT state. <br /><br /> (5) RESTORE ARCHIVELOG to archive the log dump. When the implementation of full recovery and incomplete recovery, will need to apply archive log. If the archive log media failure occurs, or archived log image copy does not exist, <br /> You need to use the command to dump the archive log, the command can use the MOUNT and OPEN state. <br /><br /> (6) RESTORE SPFILE server parameter file dump term can only be used in NOMOUNT state. <br /><br /> 2, RMAN restore command <br /><br /> (1) RECOVER DATABASE to restore a database for all the files can only be used in the MOUNT state. <br /><br /> (2) RECOVER TABLESPACE to restore a specific table space for all the data files can only be used in OPEN state. <br /><br /> (3) RECOVER DATAFILE for the restoration of specific data files, can be used OPEN AND MOUNT state. <br /><br /> 3, RMAN full recovery <br /> (1) restore database <br /> a) loss of all data files <br /><br /> RMAN&gt; STARTUP FORCE MOUNT <br /> RMAN&gt; RUN ( <br /> 2&gt; RESTORE DATABASE; <br /> 3&gt; RECOVER DATABASE; <br /> 4&gt; SQL &#39;ALTER DATABASE OPEN&#39;; <br /> 5&gt;) <br /><br /> b) where the disk data file hardware failure <br /> If the data file where the disk hardware failure, data files can not dump to the original location, in order to restore the database, to dump the data files to another location. Before the implementation of the RESTORE DATABASE, by <br /> Implementation of the SET NEWNAME command to specify the data file for the new location; the implementation of the RESTORE DATABASE command, through the implementation of the SWITCH DATAFILE command to change the control file data files recorded in <br /> Location and name, through the implementation of the RECOVER DATABASE command can be applied to archived logs. <br /> RMAN&gt; RUN ( <br /> 2&gt; STARTUP FORCE MOUNT; <br /> 3&gt; SET NEWNAME FOR DATAFILE 1 TO &#39;E: \ DEMO \ SYSTEM01.DBF&#39;; <br /> 4&gt; SET NEWNAME FOR DATAFILE 2 TO &#39;E: \ DEMO \ UNDOTBS01.DBF&#39;; <br /> 5&gt; SET NEWNAME FOR DATAFILE 3 TO &#39;E: \ DEMO \ SYSAUX01.DBF&#39;; <br /> 6&gt; SET NEWNAME FOR DATAFILE 4 TO &#39;E: \ DEMO \ USERS01.DBF&#39;; <br /> 7&gt; RESTORE DATABASE; <br /> 8&gt; SWITCH DATAFILE ALL; <br /> 9&gt; RECOVER DATABASE; <br /> 10&gt; SQL &#39;ALTER DATABASE OPEN&#39;; <br /> 11&gt;) <br /><br /> In the restoration and open the database, you can view the database through the REPORT SCHEMA new physics program <br /> RMAN&gt; REPORT SCHEMA <br /><br /> (2) restoration of SYSTEM tablespace data file <br /><br /> a) SYSTEM tablespace data files are accidentally deleted <br /> RMAN&gt; RUN ( <br /> 2&gt; STARTUP FORCE MOUNT; <br /> 3&gt; RESTORE DATAFILE 1; <br /> 4&gt; RECOVER DATAFILE 1; <br /> 5&gt; SQL &#39;ALTER DATABASE OPEN&#39;; <br /> 6&gt;) <br /><br /> b) SYSTEM tablespace data file where the disk fails <br /> RMAN&gt; RUN ( <br /> 2&gt; STARTUP FORCE MOUNT; <br /> 3&gt; SET NEWNAME FOR DATAFILE 1 TO &#39;D: \ DEMO \ SYSTEM01.DBF&#39;; <br /> 4&gt; RESTORE DATAFILE 1; <br /> 5&gt; SWITCH DATAFILE 1; <br /> 6&gt; RECOVER DATAFILE 1; <br /> 7&gt; SQL &#39;ALTER DATABASE OPEN&#39;; <br /> 8&gt;) <br /><br /> (3) in the OPEN state after the closure of accident to restore lost data files <br /><br /> a) data files were accidentally deleted <br /> RMAN&gt; RUN ( <br /> 2&gt; STARTUP FORCE MOUNT; <br /> 3&gt; SQL &#39;ALTER DATABASE DATAFILE 4 OFFLINE&#39;; <br /> 4&gt; SQL &#39;ALTER DATABASE OPEN&#39;; <br /> 5&gt; RESTORE DATAFILE 4; <br /> 6&gt; RECOVER DATAFILE 4; <br /> 7&gt; SQL &#39;ALTER DATABASE DATAFILE 4 ONLINE&#39;; <br /> 8&gt;) <br /><br /> b) where the data files damaged disk <br /> RMAN&gt; RUN ( <br /> 2&gt; STARTUP FORCE MOUNT; <br /> 3&gt; SQL &#39;ALTER DATABASE DATAFILE 4 OFFLINE&#39;; <br /> 4&gt; SQL &#39;ALTER DATABASE OPEN&#39;; <br /> 5&gt; SET NEWNAME FOR DATAFILE 4 TO &#39;D: \ DEMO \ USERS01.DBF&#39;; <br /> 6&gt; RESTORE DATAFILE 4; <br /> 7&gt; SWITCH DATAFILE 4; <br /> 8&gt; RECOVER DATAFILE 4; <br /> 9&gt; SQL &#39;ALTER DATABASE DATAFILE 4 ONLINE&#39;; <br /> 10&gt;) <br /><br /> (4) OPEN state to restore accidentally lost when opening the data files <br /> When the database is in OPEN state, if the SYSTEM tablespace data file media failure occurs, it will immediately terminate the routine, this time in the MOUNT state needs to restore its data file, if the OPEN state <br /> Other data files under the media failure occurs, only the media failure data file can not be related to access, without affecting the other data files. <br /><br /> a) data files were accidentally deleted <br /> RMAN&gt; RUN ( <br /> 2&gt; SQL &#39;ALTER DATABASE DATAFILE 4 OFFLINE&#39;; <br /> 3&gt; RESTORE DATAFILE 4; <br /> 4&gt; RECOVER DATAFILE 4; <br /> 5&gt; SQL &#39;ALTER DATABASE DATAFILE 4 ONLINE&#39;; <br /> 6&gt;) <br /><br /> b) where the disk fails, data files <br /> RMAN&gt; RUN ( <br /> 2&gt; SQL &#39;ALTER DATABASE DATAFILE 4 OFFLINE&#39;; <br /> 3&gt; set newname for datafile 4 to &#39;d: \ demo \ users01.dbf&#39;; <br /> 4&gt; RESTORE DATAFILE 4; <br /> 5&gt; SWITCH DATAFILE 4 <br /> 6&gt; RECOVER DATAFILE 4; <br /> 7&gt; SQL &#39;ALTER DATABASE DATAFILE 4 ONLINE&#39;; <br /> 8&gt;) <br /><br /> (5) in the OPEN state to restore the backup data files are not <br /> Premise: the establishment of data from all archived log file date must be present. <br /><br /> a) data files were accidentally deleted <br /> Starting from the 10G, if the data file backup does not exist, dump data file will automatically create a data file. <br /> RMAN&gt; RUN (<br /> 2&gt; STARTUP FORCE MOUNT; <br /> 3&gt; SQL &#39;ALTER DATABASE DATAFILE 7 OFFLINE&#39;; <br /> 4&gt; SQL &#39;ALTER DATABASE OPEN&#39;; <br /> 5&gt; RESTORE DATAFILE 7; <br /> 6&gt; RECOVER DATAFILE 7; <br /> 7&gt; SQL &#39;ALTER DATABASE DATAFILE 7 ONLINE&#39;; <br /> 8&gt;) <br /><br /> b) where the disk fails, data files <br /> RMAN&gt; RUN ( <br /> 2&gt; STARTUP FORCE MOUNT; <br /> 3&gt; SQL &#39;ALTER DATABASE DATAFILE 7 OFFLINE&#39;; <br /> 4&gt; SQL &#39;ALTER DATABASE OPEN&#39;; <br /> 5&gt; SET NEWNAME FOR DATAFILE 7 TO &#39;D: \ DEMO \ USERS04.DBF&#39;; <br /> 6&gt; RESTORE DATAFILE 7; <br /> 7&gt; SWITCH DATAFILE 7; <br /> 8&gt; RECOVER DATAFILE 7; <br /> 9&gt; SQL &#39;ALTER DATABASE DATAFILE 7 ONLINE&#39;; <br /> 10&gt;) <br /><br /> (6) to restore the table space <br /><br /> a) Table space is accidentally deleted all data files <br /> RMAN&gt; RUN ( <br /> 2&gt; SQL &#39;ALTER TABLESPACE USERS OFFLINE FOR RECOVER&#39;; <br /> 3&gt; RESTORE TABLESPACE USERS; <br /> 4&gt; RECOVER TABLESPACE USERS; <br /> 5&gt; SQL &#39;ALTER TABLESPACE USERS ONLINE&#39;; <br /> 6&gt;) <br /><br /> b) table space where the disk fails, data files <br /> RMAN&gt; RUN ( <br /> 2&gt; SQL &#39;ALTER TABLESPACE USERS OFFLINE FOR RECOVER&#39;; <br /> 3&gt; SET NEWNAME FOR DATAFILE 4 TO &#39;D: \ DEMO \ USERS01.DBF&#39;; <br /> 4&gt; RESTORE TABLESPACE USERS; <br /> 5&gt; SWITCH DATAFILE 4; <br /> 6&gt; RECOVER TABLESPACE USERS; <br /> 7&gt; SQL &#39;ALTER TABLESPACE USERS ONLINE&#39;; <br /> 8&gt;) <br /><br /> (7) Data block media recovery <br /> Starting from 9i, use BLOCKRECOVER command to restore the damaged data block, the sample is as follows: <br /> RMAN&gt; BLOCKRECOVER DEVICE TYPE DISK <br /> 2&gt; DATAFILE 5 BLOCK 21,48,128; <br /><br /> 4, RMAN incomplete recovery <br /> RMAN incomplete recovery mode applies only to archive, and can only be completed in the MOUNT state. <br /><br /> (1) time-based recovery <br /> RMAN&gt; RUN ( <br /> 2&gt; STARTUP FORCE MOUNT; <br /> 3&gt; SET UNTIL TIME = &#39;2007-08-24 17:23:22 &#39;; <br /> 4&gt; RESTORE DATABASE; <br /> 5&gt; RECOVER DATABASE; <br /> 6&gt; SQL &#39;ALTER DATABASE OPEN RESETLOGS&#39;; <br /> 7&gt;) <br /><br /> Open the database with the RESETLOGS option, it will reset the log sequence number, proposed to delete the earlier backup, and re-backup the database, the sample is as follows: <br /> RMAN&gt; RUN ( <br /> 2&gt; DELETE NOPROMPT BACKUP; <br /> 3&gt; DELETE NOPROMPT COPY; <br /> 4&gt; BACKUP DATABASE FORMAT = &#39;D: \ BACKUP \% d_% s.bak&#39;; <br /> 5&gt; sql &#39;alter system archive log current&#39;; <br /> 6&gt;) <br /><br /> (2) recovery based on SCN <br /> RMAN&gt; RUN ( <br /> 2&gt; STARTUP FORCE MOUNT; <br /> 3&gt; SET UNTIL SCN = 511402; <br /> 4&gt; RESTORE DATABASE; <br /> 5&gt; RECOVER DATABASE; <br /> 6&gt; SQL &#39;ALTER DATABASE OPEN RESETLOGS&#39;; <br /> 7&gt;) <br /><br /> (3) recovery based on the log sequence number <br /> RMAN&gt; RUN ( <br /> 2&gt; STARTUP FORCE MOUNT; <br /> 3&gt; SET UNTIL SEQUENCE = 21; <br /> 4&gt; RESTORE DATABASE; <br /> 5&gt; RECOVER DATABASE; <br /> 6&gt; SQL &#39;ALTER DATABASE OPEN RESETLOGS&#39;; <br /> 7&gt;) <br /><br /> (4) Based on the backup control file recovery <br /> c: \&gt; set nls_date_format = yyyy-mm-dd hh24: mi: ss <br /> c: \&gt; rman target sys / oracle @ demo nocatalog <br /> RMAN&gt; STARTUP FORCE NOMOUNT <br /> RMAN&gt; SET DBID = 3282656886; <br /> RMAN&gt; RESTORE CONTROLFILE FROM AUTOBACKUP MAXSEQ 6; <br /> RMAN&gt; ALTER DATABASE MOUNT; <br /> RMAN&gt; RUN ( <br /> 2&gt; SET UNTIL TIME = &#39;2007-08-25 14:25:02 &#39;; <br /> 3&gt; RESTORE DATABASE; <br /> 4&gt; RECOVER DATABASE; <br /> 5&gt; SQL &#39;ALTER DATABASE OPEN RESETLOGS&#39;; <br /> 6&gt;) <br /><br /><h3> User Management Backup and Recovery </h3><br /> The first part of the backup <br /> 1.1 The consistency of the backup <br /> 1.1.1 check to back up data files and control files <br /> select name from v $ datafile <br /> union <br /> select name from v $ contrilfile <br /><br /> 1.2.2, close the database <br /> 1.2.3 copy the files to backup to the backup directory <br /><br /> 1.2 Non-conformance backup (for archive mode) <br /> 2.2.1 check data files to back up <br /> select name from v $ datafile; <br /><br /> 2.2.2 Set the database backup status <br /> alter database begin backup <br /> 2.2.3 copy the data files to the backup directory <br /><br /> 2.2.4 Backup control file <br /> alter database backup controlfile to &#39;d: \ controlfile.ctl&#39;; <br /> 2.2.5 the end of database backup, file backup to ensure the synchronization of the data should also archive the current log group<br /> alter database end backup <br /> alter system archive log current <br /><br /> 1.3 backup tablespace <br /> 1.3.1 Offline backup <br /> a) determine the table space contains data files <br /> select file_name from dba_data_files where tablespace_name = &#39;USERS&#39;; <br /><br /> b) set the table space is offline <br /> alter tablespace users offline; <br /><br /> c) copy the data files to the backup directory <br /><br /> d) set the table space online <br /> alter tablespace users online; <br /><br /> 1.3.2 Online Backup <br /><br /> a) determine the table space contains data files <br /> select file_name from dba_data_files where tablespace_name = &#39;USERS&#39;; <br /><br /> b) set the table space backup mode <br /> alter tablespace users begin backup; <br /><br /> c) Copy the corresponding data files to a backup directory <br /><br /> d) set the table space for normal mode <br /> alter tablespace users end backup <br /><br /> 1.4 deal with failure when the implementation of the online backup online backup, if routine fails, then the implementation of the STARTUP starts the database, will show <br /> ORA-01113: file 4 needs media recovery <br /> ORA-01110: data file 4: &#39;d: \ demo \ users01.dbf&#39; <br /><br /> As shown above, if the data file is still in state of online backup, then open the database will display an error message, in order to open the database, the data must come to an end <br /> Online file backup, concrete steps are as follows: <br /><br /> a) loading the database data files to the end of the online backup status, first need to load the database. <br /> startup force mount <br /><br /> b) determine the status is online backup all data files <br /> select file # from v $ backup where status = &#39;ACTIVE&#39;; <br /><br /> c) end of the online backup status <br /> If there are multiple data files in online backup status, use the following command-line backup of the end of the state <br /> ALTER DATABASE END BACKUP <br /><br /> If only a data file backup status is online, you can use the following command-line backup of the end <br /> ALTER DATABASE DATAFILE 4 END BACKUP <br /><br /> Also use the RECOVER command can also be the end of data file backup status online <br /> RECOVER DATAFILE 4 <br /><br /> 1.5 read-only table space backup <br /> a) determine the state in a READ ONLY tablespace <br /> SELECT TABLESPACE_NAME FROM DBA_TABLESPACES WHERE STATUS = &#39;READ ONLY&#39;; <br /><br /> b) determine the read-only table space that contains the data files <br /> SELECT FILE_NAME FROM DBA_DATA_FILES WHERE TABLESPACE_NAME = &#39;QUERY&#39; <br /><br /> c) copy the data files read-only tablespace to the backup directory. Because the data files read-only table space will not be any change, so can the backup. <br /><br /> 1.6 backup control file <br /> a) a copy of the establishment of control <br /> alter database backup controlfile to &#39;d: \ backup \ ctlfile.ctl&#39; <br /><br /> alter database backup controlfile to &#39;d: \ backup \ ctlfile.ctl&#39; REUSE <br /><br /> b) back up to trace file <br /> alter database backup controlfile to trace; <br /><br /> Determine the trace file name: name of trace file format: &lt;SID&gt; _ora_ &lt;SPID&gt;. Trc <br /> Determine the location of trace file <br /><br /> show parameter user_dump_dest <br /><br /> 1.7 backup other files <br /> a) backup archive logs in the archive mode to archive logs to use physical restoration, to ensure the smooth progress of recovery can also be backed up archive log archive log backup, first determine the need for backup <br /> Archive logs, and then copied to the backup directory, example as follows: <br /><br /> select name from v $ archived_log where dest_id = 1 and first_time&gt; = sysdate-1 - one day before the backup log <br /><br /> The corresponding files can be copied to the backup directory. <br /><br /> b) the backup parameter file <br /> create pfile = &#39;d: \ backup \ pfilemydb.ora&#39; from spfile = &#39;% ORACLE_HOME% \ DATABASE \ SPFILEMYDB.ORA&#39; <br /><br /> c) the backup password file <br /> Password files can be directly to the backup directory on the line COPY <br /> SQL&gt; host copy% ORACLE_HOME% \ DATABASE \ PWDMYDB.ORA D: \ BACKUP <br /><br /> The second part of the user management of the fully restored <br /><br /> 2.1 dump data files to other disk media failure occurs when the data file after the restore command in the implementation of SQL, you must use the OS command to copy the data file. If the data file is accidentally deleted, you can copy the backup file to the original directory; but if the disk where data files are damaged, then the backup data files must be copied to other disks. <br /><br /> a) in the MOUNT state change data file locations <br /> ALTER DATABASE RENAME FILE &#39;D: \ DEMO \ USERS01.DBF&#39; TO &#39;E: \ DEMO \ USERS01.DBF&#39; <br /> In this command before, you must ensure that the target file already exists <br /><br /> b) changes in the OPEN state the location of data files in the state, both can use the ALTER TABLESPACE RENAME DATAFILE command can also use the ALTER DATABASE RENAME FILE command to change the data file location.<br /> * The state can not SYSTEM tablespace of the table data file location <br /> * Modify the data file location, you must ensure that the target file exists. <br /> * Modify the data file location, you must first make the table space or data files offline <br /><br /> SQL&gt; ALTER DATABASE DATAFILE &#39;D: \ DEMO \ USERS01.DBF&#39; OFFLINE <br /> SQL&gt; HOST COPY d: \ backup \ users01.dbf e: \ demo <br /> SQL&gt; ALTER TABLESPACE USERS rename DATAFILE &#39;D: \ DEMO \ USERS01.DBF&#39; TO &#39;E: \ DEMO \ USERS01.DBF&#39; <br /><br /> 2.2 fully restored order when using the user management completely restored, in the data file to the target path and then still need to use the RECOVER DATABASE, RECOVER TABLESPACE or RECOVER DATAFILE <br /> Application of three command archived logs and redo logs. <br /> a) RECOVER DATABASE <br /> The MOUNT command can only state run MOUNT state if you want to recover data files and multiple data file is corrupted, you can use this command to recover. Examples are as follows: <br /> SQL&gt; RECOVER DATABASE <br /><br /> b) RECOVER TABLESPACE <br /> This command can only run in the OPEN state, the command used to restore one or more table space, all the data files, such as: <br /> SQL&gt; RECOVER TABLESPACE USERS, USERS2 <br /><br /> c) RECOVER DATAFILE <br /> This command can be run MOUNT and OPEN state, when the execution of the command, can specify the data file name, also specify the data file number, for example: <br /> SQL&gt; RECOVER DATAFILE &#39;D: \ DEMO \ USERS01.DBF&#39; <br /> OR <br /> SQL&gt; RECOVER DATAFILE 4,5 <br /><br /> 2.3 Applications archive log <br /> a) the proposed use of ORACLE archive log location when the implementation of the full restoration of order, if you do not specify the archive location, ORACLE applications will provide advice archive logs, and displays the message. As follows: <br /> SQL&gt; RECOVER DATAFILE 5 <br /><br /> b) If the specified archive log location does not exist in the default location under the archive logs, then when the implementation of the full restoration of order, you can specify the log file location, the sample is as follows: <br /> SQL&gt; RECOVER FROM &#39;C: \ ARCHIVELOG&#39; DATAFILE 5 <br /> c) should automatically archive log required for complete recovery if the archived logs are stored in a specific archive directory, you can make the server process automatically apply archived logs. <br /> SQL&gt; RECOVER AUTOMATIC DATAFILE 5 <br /><br /> 2.4 View recovery files <br /> a) lists the need to restore data files <br /> select file #, error, change # from v $ recover_file; <br /><br /> b) set out to restore archive logs to be used <br /> select sequence #, archive_name from v $ recovery_log; <br /><br /> 2.5 restore the backup data files are not <br /> a) view the need to restore the file <br /> select file #, error from v $ recover_file; <br /><br /> b) to make files offline <br /> alter database datafile 6 offline <br /><br /> c) Open the database <br /> alter database open <br /><br /> d) re-establish the data file because there is no backup, so they need to re-create a data file if the original file where the disk is not damaged, you can set up a data file copy of the original position, as follows: <br /> SQL&gt; ALTER DATABASE CREATE DATAFILE &#39;D: \ ORACLE \ PRODUCT \ 10.1.0 \ ORADATA \ MYDB \ TEST_TBS.DBF&#39; <br /><br /> If the original file where the disk is damaged, you need to build a copy in another location, as follows: <br /> SQL&gt; ALTER DATABASE CREATE DATAFILE &#39;D: \ ORACLE \ PRODUCT \ 10.1.0 \ ORADATA \ MYDB \ TEST_TBS.DBF&#39; AS &#39;E: \ ORADATA \ MYDB \ TEST_TBS.DBF&#39; <br /><br /> e) restoration of data files <br /> SQL&gt; RECOVER DATAFILE 6 <br /><br /> f) the data file online <br /> SQL&gt; ALTER DATABASE DATAFILE 6 ONLINE <br /><br /> The third part of the user management is not fully restored <br /><br /> 3.1 does not fully restore order <br /> a) RECOVER DATABASE UNTIL TIME <br /> The command used to perform time-based incomplete recovery, and when the specified time must be consistent with the date format YYYY-MM-DD HH24: MI: SS. When the execution is not entirely based on the time point of recovery, to ensure that a particular point in time before all the archive logs and redo logs all there. <br /><br /> b) RECOVER DATABASE UNTIL CHANGE <br /> The command used to execute based on the incomplete recovery SCN. When the implementation of the order, to ensure that all before in a particular SCN archived logs and redo logs all there. <br /><br /> c) RECOVER DATABASE UNTIL CANCEL <br /> Cancel the order for execution based on the incomplete recovery, when the execution of the order, if found necessary archive log or redo log does not exist, then specify the CANCEL option to cancel recovery. <br /><br /> d) RECOVER DATABASE ... USING BACKUP CONTROLFILE <br /> The command used to perform a backup control file based on the incomplete recovery. Before the implementation of the command, by looking at the ALERT file to go top of misuse of time and SCN value, then according to time or SCN value recovery. <br /><br /> 3.2 Time-based recovery <br /> a) confirm to the point in time recovery <br /> b) Close the database Note: To prevent the failure is not fully restored, before the proposal to close the database to do a full backup of the database<br /><br /> c) loading the database <br /> SQL&gt; start mount <br /><br /> d) Copy all data files backed up. In order to restore the database to the last time, you must copy all the data file backup, and backup files to restore point of time must be before. With the following statement to view the backup time <br /> SQL&gt; select file #, to_char (time, &#39;yyyy-mm-dd hh24: mi: ss&#39;) from v $ recover_file; <br /><br /> e) implementation of the RECOVER DATABASE UNTIL TIME command <br /> SQL&gt; RECOVER DATABASE UNTIL TIME &#39;2007-08-24 17:25:10 &#39; <br /><br /> f) to open the database RESETLOGS <br /> SQL&gt; alter database open resetlogs; <br /><br /> g) back up all data files and the database control file. When to open the database after the RESETLOGS would re-establish the redo log, redo log empty all the contents of Reasons, <br /> And reset the log sequence number 1, you can view the current log ARCHIVE LOG LIST serial number. <br /> SQL&gt; ALTER DATABASE BEGIN BACKUP; <br /> SQL&gt; HOST COPY D: \ ORADATE \ SYSTEM01.DBF E: \ BACKUP <br /> ... <br /> ... <br /> SQL&gt; ALTER DATABASE END BACKUP; <br /><br /> SQL&gt; ALTER DATABASE BACKUP CONTROLFILE TO &#39;E: \ BACKUP \ CTLFILE.CTL&#39; REUSE; <br /> SQL&gt; ALTER SYSTEM ARCHIVE LOG CURRENT; - archiving the current log group <br /><br /> 3.3 Based on SCN SCN recovery recovery need to know the number to return to the SCN, and if restored to the SCN number is 99999 <br /> a) Close the database <br /><br /> b) loading the database <br /><br /> c) copy the backup files, backup files of the SCN value must be less than the value to be returned to the SCN, copy data back-up files can be backed up by the following statement to view the SCN No. <br /> SQL&gt; SELECT FILE #, CHANGE # FROM V $ RECOVER_FILE; <br /><br /> d) implementation of the RECOVER DATABASE UNTIL CHANGE command to perform a full recovery. <br /> SQL&gt; RECOVER DATABASE UNTIL CHANGE 9999 <br /><br /> e) to open the database RESETLOGS. <br /> SQL&gt; ALTER DATABASE OPEN RESETLOGS; <br /><br /> f) back up all data files and the database control file. When to open the database after the RESETLOGS would re-establish the redo log, redo log empty all the contents of Reasons, <br /> And reset the log sequence number 1, you can view the current log ARCHIVE LOG LIST serial number. <br /> SQL&gt; ALTER DATABASE BEGIN BACKUP; <br /> SQL&gt; HOST COPY D: \ ORADATE \ SYSTEM01.DBF E: \ BACKUP <br /> ... <br /> ... <br /> SQL&gt; ALTER DATABASE END BACKUP; <br /><br /> SQL&gt; ALTER DATABASE BACKUP CONTROLFILE TO &#39;E: \ BACKUP \ CTLFILE.CTL&#39; REUSE; <br /> SQL&gt; ALTER SYSTEM ARCHIVE LOG CURRENT; - archiving the current log group <br /><br /> 3.4 Based on cancellation of recovery is based on the cancellation of recovery to restore the database to a specific state before the log sequence number, when the result of lost log or redo log file full recovery fails, you can use the implementation of this recovery method is not fully recovered. Assume that the log sequence number 10 bits data file USERS01.DBF media failure occurred, and complete recovery shown in the implementation of the following error message: <br /> SQL&gt; RECOVER DATAFILE 4 <br /> ORA-00308: cannot open archived log &#39;d: \ demo \ archive \ 8_1_537902587.log&#39; <br /> ORA-27041: unable to open file <br /> ODS-04002: unable to open file <br /> O / S-Error: (OS 2) System can not find the file specified <br /><br /> As shown above, because the error can not locate archive logs 8_1_537902587.log. But the data file contains a very important De USERS01.DBF data, and that the file must be restored, in this situation, you can use the incomplete recovery Qu Xiao-based method, as far as possible, loss reduction, following these steps: <br /> a) Close the database <br /><br /> b) loading the database <br /><br /> c) a backup copy of all data files, when copying the data file backup, you must ensure that the backup files to be restored to the SCN value is less than the log sequence number starting SCN value, copy files, <br /> By the following statement queries the backup file of SCN value. <br /> SQL&gt; select file #, change # from v $ recover_file; <br /><br /> By the following statement, determine the log sequence number corresponding to a specific starting SCN value: <br /> SELECT MAX (FIRST_CHANGE #) FROM V $ LOG_HISTORY WHERE SEQUENCE # = 8; <br /><br /> d) implementation of the RECOVER DATABASE UNTIL CANCEL command to restore the database. <br /> SQL&gt; RECOVER DATABASE UNTIL CANCEL <br /> ..... <br /> ..... <br /><br /> If the archive logs exist in the default location, then the direct application of archive log carriage return encountered no archive log 8_1_537902587.log, enter CANCEL cancel recovery. <br /><br /> e) to open the database RESETLOGS <br /><br /> f) back up all data files and the database control file. When to open the database after the RESETLOGS would re-establish the redo log, redo log empty all the contents of Reasons, <br /> And reset the log sequence number 1, you can view the current log ARCHIVE LOG LIST serial number. <br /> SQL&gt; ALTER DATABASE BEGIN BACKUP; <br /> SQL&gt; HOST COPY D: \ ORADATE \ SYSTEM01.DBF E: \ BACKUP <br /> ... <br /> ... <br /> SQL&gt; ALTER DATABASE END BACKUP; <br /><br /> SQL&gt; ALTER DATABASE BACKUP CONTROLFILE TO &#39;E: \ BACKUP \ CTLFILE.CTL&#39; REUSE; <br /> SQL&gt; ALTER SYSTEM ARCHIVE LOG CURRENT; - archiving the current log group <br /><br /> 3.5 Based on the backup control file to restore a backup control file recovery is the use of the database backup control file recovery process. When the mistake delete a table space or database of all the damaged all control files, you can use this recovery method. The following user mistakenly deleted the simulated DBA USERS tablespace example. <br /><br /> a) because the current control file does not contain the table space information, so you must use backup control file recovery has been accidentally deleted a table space, by looking at the ALERT file to determine the time from deletion. <br /><br /> b) Close the database <br /><br /> c) Copy all data files and control file backup <br /><br /> d) loading the database when the implementation is not fully restored, to ensure that the data file backup point in time prior to the resumption point in time, to adopt the following statement can determine the backup time: <br /> SQL&gt; select file #, to_char (time, &#39;yyyy-mm-dd hh24: mi: ss&#39;) from v $ recover_file; <br /><br /> e) implementation of the RECOVER DATABASE ... USING BACKUP CONTROLFILE command. <br /> SQL&gt; RECOVER DATABASE UNTIL TIME &#39;2007-08-24 19:56:33 &#39;USING BACKUP CONTROLFILE <br /><br /> f) to open the database RESETLOGS. <br /><br /> g) back up all data files and the database control file. When to open the database after the RESETLOGS would re-establish the redo log, redo log empty all the contents of Reasons, <br /> And reset the log sequence number 1, you can view the current log ARCHIVE LOG LIST serial number. <br /> SQL&gt; ALTER DATABASE BEGIN BACKUP; <br /> SQL&gt; HOST COPY D: \ ORADATE \ SYSTEM01.DBF E: \ BACKUP <br /> ... <br /> ... <br /> SQL&gt; ALTER DATABASE END BACKUP; <br /><br /> SQL&gt; ALTER DATABASE BACKUP CONTROLFILE TO &#39;E: \ BACKUP \ CTLFILE.CTL&#39; REUSE; <br /> SQL&gt; ALTER SYSTEM ARCHIVE LOG CURRENT; - archiving the current log group <br /><br /> Part IV other recovery issues <br /><br /> 4.1 control file to restore control file using the principles are the following: 1, multi control file. 2, when the physical structure of the database backup control file changes <br /><br /> a) a single control file of media failure. <br /> Diversified control file, the number of control files are mirror images, the content exactly the same failure occurs in one file, only need to modify the initialization parameters control_files, <br /> Remove the damaged control file, add a new control file, and then restart the database. <br /> Eg: OLD control_files = d: \ demo \ control01.ctl, e: \ demo \ control02.ctl <br /><br /> NEW control_files = d: \ demo \ control01.ctl, f: \ demo \ control02.ctl <br /><br /> b) failure of all control files in the media all the documents of all damage control, in order to make the database can re-use, must rebuild the control file, although you can use manual methods to establish control file, but because this method more Fuza and error-prone, it is proposed to use establish control file trace file <br /> (1) copy the control file backup. If the initialization parameter control_files contains only one control file, then only need to copy the control file backup to a location, if the file contains more than control, <br /> Then the need to control file backup copy to each relevant location. <br /><br /> (2) generate the text trace file. <br /> SQL&gt; STARTUP FORCE MOUNT <br /> SQL&gt; ALTER DATABASE BACKUP CONTROLFILE TO TRACE NORESETLOGS; <br /><br /> (3) edit the text trace file. After the establishment of the text trace file, the trace file contains not only related with the restoration of SQL * PLUS commands and SQL commands, but also contains a large number of text annotation information, and recovery related to the implementation of SQL * PLUS commands and SQL commands, should be removed Note the information, and save its contents to the SQL script (for example: D: \ BACKUP \ CREATE.SQL) edited the following example. <br /> STARTUP NOMOUNT <br /> CREATE CONTROLFILE REUSE DATABASE &quot;MYDB&quot; NORESETLOGS ARCHIVELOG <br /> MAXLOGFILES 16 <br /> MAXLOGMEMBERS 3 <br /> MAXDATAFILES 100 <br /> MAXINSTANCES 8 <br /> MAXLOGHISTORY 454 <br /> LOGFILE <br /> GROUP 1 &#39;D: \ ORACLE \ PRODUCT \ 10.1.0 \ ORADATA \ MYDB \ REDO01.LOG&#39; SIZE 10M, <br /> GROUP 2 &#39;D: \ ORACLE \ PRODUCT \ 10.1.0 \ ORADATA \ MYDB \ REDO02.LOG&#39; SIZE 10M, <br /> GROUP 3 &#39;D: \ ORACLE \ PRODUCT \ 10.1.0 \ ORADATA \ MYDB \ REDO03.LOG&#39; SIZE 10M <br /> - STANDBY LOGFILE <br /> DATAFILE <br /> &#39;D: \ ORACLE \ PRODUCT \ 10.1.0 \ ORADATA \ MYDB \ SYSTEM01.DBF&#39;, <br /> &#39;D: \ ORACLE \ PRODUCT \ 10.1.0 \ ORADATA \ MYDB \ UNDOTBS01.DBF&#39;, <br /> &#39;D: \ ORACLE \ PRODUCT \ 10.1.0 \ ORADATA \ MYDB \ SYSAUX01.DBF&#39;, <br /> &#39;D: \ ORACLE \ PRODUCT \ 10.1.0 \ ORADATA \ MYDB \ USERS01.DBF&#39;, <br /> &#39;D: \ ORACLE \ PRODUCT \ 10.1.0 \ ORADATA \ MYDB \ USERSTBLSPACE.DBF&#39;, <br /> &#39;D: \ ORACLE \ PRODUCT \ 10.1.0 \ ORADATA \ MYDB \ USER_A.DBF&#39;, <br /> &#39;D: \ ORACLE \ PRODUCT \ 10.1.0 \ ORADATA \ MYDB \ USER_B.DBF&#39;, <br /> &#39;D: \ ORACLE \ PRODUCT \ 10.1.0 \ ORADATA \ MYDB \ USER_C.DBF&#39;, <br /> &#39;D: \ ORACLE \ PRODUCT \ 10.1.0 \ ORADATA \ MYDB \ USER_D.DBF&#39;, <br /> &#39;D: \ ORACLE \ PRODUCT \ 10.1.0 \ ORADATA \ MYDB \ TEST.DBF&#39; <br /> CHARACTER SET ZHS16GBK <br /> ; <br /> RECOVER DATABASE<br /> ALTER SYSTEM ARCHIVE LOG ALL; <br /> ALTER DATABASE OPEN; <br /><br /> (4) Close the database <br /> SQL&gt; SHUTDOWN IMMEDIATE <br /> (5) to restore control file <br /> SQL&gt; @ D: \ BACKUP \ CREATE.SQL <br /><br /> c) to restore redo logs <br /> (1) a log log group members damage <br /> The purpose of diversification is the redo log members of the media in order to prevent failure of the log, assuming that the database consists of three log groups, each group contains two days of member log and a log group with members of different log <br /> Located in different disk, in this case, if a member of a log log group media failure occurs, then the database can still work. <br /> If the log group 1 contains LOG1A, LOG1B two members of the media failure occurs if the LOG1A, LGWR can still change the transaction is written to the members of the LOG1B, which makes the database can still be running when the log group <br /> Members of one of the log media failure occurs, DBA can remove the damaged log members in the database is running, the following statement through media failure occurs can determine the log members: <br /> SQL&gt; SELECT MEMBER FROM V $ LOGFILE WHERE STATUS = &#39;INVALID&#39; <br /><br /> (2) Delete the failure of members of the media if the members of media failure is the current log log log group members, then members of the logs will not be deleted, in order to delete the current log log group member must manually switch the log, the following example: <br /> SQL&gt; ALTER SYSTEM SWITCH LOGFILE; <br /> SQL&gt; ALTER DATABASE DROP LOGFILE MEMBER &#39;C: \ DEMO \ REDO01_2.LOG&#39;; <br /><br /> (3) members to increase the log <br /> SQL&gt; ALTER DATABASE ADD LOGFILE MEMBER &#39;C: \ DEMO \ REDO01_3.LOG&#39; TO GROUP 1; <br /> Note: additional members of the state of the log is INVALID <br /><br /> d) non-active log group for all members of all the damaged log group is inactive log log group in INACTIVE state, when the non-active log group for all members of all the log media failure occurs, if the database is in OPEN state, then when the switch to The log group, the database will be in a wait state, the state below to OPEN and CLOSE in the state to solve the log group applauded, for example, shows non-active treatment of damaged log group. <br /><br /> (1) in the OPEN state, groups of non-activity log of all the members of all the log when the database is in OPEN state of damage, if the non-active log group for all members of all the log media failure occurs, then the database can still work. Stage when the switch to the log, when these, because its contents can not be archived, Suo Yi LGWR will be in Dengdaizhuangtai, in the interest LGWR Ke Yi continue to work, should Qingchu the logset Shiliruxia: <br /> SQL&gt; ALTER DATABASE CLEAR UNARCHIVED LOGFILE GROUP 1; - if the media failure occurred log group 1 <br /><br /> * When, after the implementation of the above command, ORACLE back to re-establish all the members of log group 1, then LGWR can continue to work properly. But because the contents of the log group has not been filed, it will lead to the data file backup over the past <br /> Not be used. <br /><br /> e) non-activities in the closed state, all log log group members all the damage <br /><br /> In the off state when inactive log group members in all log media failure occurs, you can add a new log group, delete the original log group, then open the database, the sample is as follows: <br /> SQL&gt; ALTER DATABASE ADD LOGFILE <br /> 2 (&#39;D: \ DEMO \ REDO04.LOG&#39;, &#39;D: \ DEMO \ REDO04_2.LOG&#39;) <br /> 3 SIZE 10M; <br /> SQL&gt; ALTER DATABASE DROP LOGFILE GROUP 1; - Remove the damaged log group <br /> SQL&gt; ALTER DATABASE OPEN; <br /><br /> f) the current log group for all members of all the damage the current log log group is talking about change by LGWR write to the transaction log group. If the OPEN state the current log group, all members of the media failure all occur, then ORACLE will terminate the routine; closed state if the current log group, all members of all the log media failure occurs, then the database will not open. <br /><br /> (1) off of the current log group, all members are all damaged when in the off state of the current log group members all appeared all Rizhi media failed, because the data files, control files are always Wanquan the same state, we only need to use the RECOVER DATABASE UNTIL CANCEL command canceled is not based on full recovery, and then open the database with the RESETLOGS option can be. Examples are as follows: <br /> SQL&gt; RECOVER DATABASE UNTIL CANCEL <br /> SQL&gt; ALTER DATABASE OPEN RESETLOGS; <br /><br /> (2) in the OPEN state the current log group members of all the logs all the damage when in OPEN state the current log group all members of the media have emerged failures, things change when the LGWR will write to the log set, the routine will automatically shut down, and display an error message, when there is the case, landing Zhihou In a privileged user must use the Shu Ju file backup, archive logs incomplete implementation of recovery based on cancellation. Examples are as follows: <br /> SQL&gt; STARTUP MOUNT <br /> SQL&gt; HOST COPY D: \ BACKUP \ SYSTEM01.DBF D: \ DEMO<br /> SQL&gt; HOST COPY D: \ BACKUP \ SYSAUX01.DBF D: \ DEMO <br /> .... <br /> .... <br /> .... <br /><br /> SQL&gt; RECOVER DATABASE UNTIL CANCEL <br /><br /> SQL&gt; ALTER DATABASE OPEN RESETLOGS; <br /><br /> g) restoration of temporary files when the implementation of the incomplete recovery or open the database with the RESETLOGS option after the result in the temporary file can not be used in the past. In addition, when a temporary file media failure occurs, the same result in the temporary file can not be used. <br /> When the temporary file can not be used, the sorting operation may fail and display the following error message <br /> ORA-25153: Temporary Tablespace is Empty <br /><br /> At this point as long as the corresponding temporary table space for the addition of a new temporary file, then re-run the corresponding operation can be, example as follows: <br /> SQL&gt; ALTER TABLESPACE TEMP ADD TEMPFILE &#39;D: \ DEMO \ TEMP.DBF&#39; SIZE 10M REUSE;				<h5>Related Posts</h5>
		<div id="smilar">
		<ul>
					<li><a href="http://www.kods.net/sga-extended-the-principle-of-32bit-oracle/" title="SGA extended the principle of 32bit oracle">SGA extended the principle of 32bit oracle</a> 2009-03-31 09:48:01</li>
					<li><a href="http://www.kods.net/an-example-of-the-use-of-tkprof/" title="An example of the use of TKPROF">An example of the use of TKPROF</a> 2009-02-26 01:38:19</li>
					<li><a href="http://www.kods.net/diagnosis-and-principles-of-order/" title="Diagnosis and principles of order">Diagnosis and principles of order</a> 2009-02-25 20:27:28</li>
					<li><a href="http://www.kods.net/oracle-10g-dataguard-configuration-step-by-step/" title="ORACLE 10G dataguard configuration Step by Step">ORACLE 10G dataguard configuration Step by Step</a> 2009-02-16 01:13:55</li>
				</ul>
		</div>
		        ]]></content:encoded>
		<wfw:commentRss>http://www.kods.net/rman-backup-and-recovery/</wfw:commentRss>
	</item>
		<item>
		<title>Single-instance and RAC to create the ORACLE STREAM (2)</title>
		<link>http://www.kods.net/single-instance-and-rac-to-create-the-oracle-stream-2/</link>
		<comments>http://www.kods.net/single-instance-and-rac-to-create-the-oracle-stream-2/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 16:50:10+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[oracle]]></category>
<category><![CDATA[log archive]]></category>
<category><![CDATA[backup database]]></category>
<category><![CDATA[amendments]]></category>
<category><![CDATA[node]]></category>
<category><![CDATA[database log]]></category>
<category><![CDATA[log sequence]]></category>
<category><![CDATA[database archiving]]></category>
<category><![CDATA[oracle rac]]></category>
<category><![CDATA[system default]]></category>
<category><![CDATA[archivelog]]></category>
<category><![CDATA[vi editor]]></category>
<category><![CDATA[parameter settings]]></category>
<category><![CDATA[sequence 1]]></category>
<category><![CDATA[storm2]]></category>
<category><![CDATA[sequence 2]]></category>
<category><![CDATA[stream 2]]></category>
<category><![CDATA[four steps]]></category>
<category><![CDATA[single file]]></category>
<category><![CDATA[full length]]></category>
		<guid isPermaLink="true">http://www.kods.net/single-instance-and-rac-to-create-the-oracle-stream-2/</guid>
		<description><![CDATA[After completion of parameter settings, the following to start the master and backup database is set to archive mode. The reason why this part of the single opening is due to single-instance database is set to archive mode and ORACLE RAC is set to ar ...]]></description>
		<content:encoded><![CDATA[After completion of parameter settings, the following to start the master and backup database is set to archive mode. The reason why this part of the single opening is due to single-instance database is set to archive mode and ORACLE RAC is set to archive mode is slightly different, the following were described as follows: <br /><br /> Single-instance, the revised database archiving mode only requires the following four steps: <br /><br /> 1, shutdown immediate <br /><br /> 2, startup mount <br /><br /> 3, alter database archivelog <br /><br /> 4, alter database open <br /><br /> You can also set the archive man-made path, do not use the system default archive path, mainly to avoid year after year in archive log files generated by the database where the file system Chengbao, where a separate log will be archived into a single file system &quot;/ arch&quot; the following: <br /><br /> SQL&gt; alter system set LOG_ARCHIVE_DEST_1 = &#39;LOCATION = / arch&#39;; <br /><br /> Amendments adopted after the completion of the command &quot;archive log list&quot; to confirm: <br /><br /> SQL&gt; archive log list; <br /> Database log mode Archive Mode <br /> Automatic archival Enabled <br /> Archive destination / arch <br /> Oldest online log sequence 1 <br /> Next log sequence to archive 2 <br /> Current log sequence 2 <br /><br /> ORACLE RAC, modify the database archiving mode is slightly more complicated, the steps are as follows: <br /><br /> 1, create pfile = &#39;/ arch / pfilestorm.ora&#39; from spfile; <br /><br /> 2, shutdown immediate (storm1 and storm2 examples should close) <br /><br /> 3, using the vi editor generated pfile (pfilestorm.ora), and modify the following parameters: <br /><br /> cluster_database = false <br /><br /> 4, to modify the parameter file for the full-length after a separate database in a node starts to nomount Status: <br /><br /> startup nomount pfile = &#39;/ arch / pfilestorm.ora&#39;; <br /><br /> 5, so that the database to exclusive (exclusive) mode starts to mount status: <br /><br /> alter database mount exclusive <br /><br /> 6, to change the archive mode and archive path: <br /><br /> alter database archivelog <br /> alter system set LOG_ARCHIVE_DEST_1 = &#39;LOCATION = / arch&#39;; (this step can also write directly Parameter File) <br /><br /> 7, shutdown immediate (storm1) <br /><br /> 8, using the vi editor generated pfile (pfilestorm.ora), and modify the following parameters: <br /> cluster_database = true <br /><br /> 9, startup pfile = &#39;/ arch / pfilestorm.ora&#39;; (At this point the database has been out of archive mode) <br /><br /> 10, create spfile from pfile; <br /><br /> 11, shutdown immediate (storm1) <br /><br /> 12, startup (At this point the database to a server parameter file starts) <br /><br /> 13, startup (in the storm2 start) <br /><br /> RAC corresponding two nodes are started, through the command test to see whether the entry into force set up: <br /><br /> storm1: <br /><br /> SQL&gt; archive log list; <br /> Database log mode Archive Mode <br /> Automatic archival Enabled <br /> Archive destination / arch <br /> Oldest online log sequence 1 <br /> Next log sequence to archive 2 <br /> Current log sequence 2 <br /><br /> storm2: <br /><br /> SQL&gt; archive log list; <br /> Database log mode Archive Mode <br /> Automatic archival Enabled <br /> Archive destination / arch <br /> Oldest online log sequence 1 <br /> Next log sequence to archive 2 <br /> Current log sequence 2 <br /><br /> To this, the main library and prepared by the library archive mode is completed, the following into the other steps.				<h5>Related Posts</h5>
		<div id="smilar">
		<ul>
					<li><a href="http://www.kods.net/sga-extended-the-principle-of-32bit-oracle/" title="SGA extended the principle of 32bit oracle">SGA extended the principle of 32bit oracle</a> 2009-03-31 09:48:01</li>
					<li><a href="http://www.kods.net/high-availability-oracle-flashback/" title="High Availability Oracle Flashback">High Availability Oracle Flashback</a> 2009-02-26 17:23:02</li>
					<li><a href="http://www.kods.net/an-example-of-the-use-of-tkprof/" title="An example of the use of TKPROF">An example of the use of TKPROF</a> 2009-02-26 01:38:19</li>
					<li><a href="http://www.kods.net/diagnosis-and-principles-of-order/" title="Diagnosis and principles of order">Diagnosis and principles of order</a> 2009-02-25 20:27:28</li>
					<li><a href="http://www.kods.net/oracle-10g-dataguard-configuration-step-by-step/" title="ORACLE 10G dataguard configuration Step by Step">ORACLE 10G dataguard configuration Step by Step</a> 2009-02-16 01:13:55</li>
				</ul>
		</div>
		        ]]></content:encoded>
		<wfw:commentRss>http://www.kods.net/single-instance-and-rac-to-create-the-oracle-stream-2/</wfw:commentRss>
	</item>
		<item>
		<title>rman notes</title>
		<link>http://www.kods.net/rman-notes/</link>
		<comments>http://www.kods.net/rman-notes/#comments</comments>
		<pubDate>Mon, 18 Jan 2010 00:08:30+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[oracle]]></category>
<category><![CDATA[log archive]]></category>
<category><![CDATA[open database]]></category>
<category><![CDATA[disk 1]]></category>
<category><![CDATA[recovery catalog]]></category>
<category><![CDATA[database control]]></category>
<category><![CDATA[table space]]></category>
<category><![CDATA[oracle instance]]></category>
<category><![CDATA[target database]]></category>
<category><![CDATA[home directory]]></category>
<category><![CDATA[backup file]]></category>
<category><![CDATA[sqlplus nolog]]></category>
<category><![CDATA[global area]]></category>
<category><![CDATA[variable size]]></category>
<category><![CDATA[sys]]></category>
<category><![CDATA[d1]]></category>
<category><![CDATA[archivelog]]></category>
<category><![CDATA[d2]]></category>
<category><![CDATA[backup users]]></category>
<category><![CDATA[active directory]]></category>
		<guid isPermaLink="true">http://www.kods.net/rman-notes/</guid>
		<description><![CDATA[First, connect to the database $ rman target sys @ db; Then you are prompted for a password Then back up the table space $ backup tablespace users format &quot;/ home /% U&quot; Backup users to the / home directory. Baocuo, suggesting that the non-lo ...]]></description>
		<content:encoded><![CDATA[First, connect to the database <br /><br /> $ rman target sys @ db; <br /><br /> Then you are prompted for a password <br /><br /> Then back up the table space <br /><br /> $ backup tablespace users format &quot;/ home /% U&quot; <br /><br /> Backup users to the / home directory. <br /><br /> Baocuo, suggesting that the non-log archive mode, can not back up the active directory <br /><br /> Had to turn to non-activated <br /><br /> $ sqlplus / nolog; <br /><br /> SQL&gt; connect / as sysdba <br /> Connected. <br /> SQL&gt; shutdown immediate; <br /> Database closed. <br /> Database dismounted. <br /> ORACLE instance shut down. <br /> SQL&gt; startup mount; <br /> ORACLE instance started. <br /><br /> Total System Global Area 2550136832 bytes <br /> Fixed Size 2023024 bytes <br /> Variable Size 251658640 bytes <br /> Database Buffers 2281701376 bytes <br /> Redo Buffers 14753792 bytes <br /> Database mounted. <br /> SQL&gt; quit <br /><br /> And then re-backup <br /><br /> $ Rman target sys @ db; <br /><br /> Recovery Manager: Release 10.2.0.1.0 - Production on Mon Jan 18 21:55:57 2010 <br /><br /> Copyright (c) 1982, 2005, Oracle. All rights reserved. <br /><br /> target database Password: <br /> connected to target database: DB (DBID = 1539873842, not open) <br /><br /> RMAN&gt; backup tablespace users format &quot;/ home /% U&quot;; <br /><br /> Starting backup at 18-JAN-10 <br /> using target database control file instead of recovery catalog <br /> allocated channel: ORA_DISK_1 <br /> channel ORA_DISK_1: sid = 157 devtype = DISK <br /><br /> . . . . . . . . . . . . . . . . . . . . . . . <br /><br /> After the backup, the database back to normal <br /><br /> $ Sqlplus / nolog; <br /><br /> SQL * Plus: Release 10.2.0.1.0 - Production on Mon Jan 18 23:05:45 2010 <br /><br /> Copyright (c) 1982, 2005, Oracle. All rights reserved. <br /><br /> SQL&gt; connect / as sysdba; <br /> Connected. <br /> SQL&gt; alter database open; <br /><br /> Database altered. <br /><br /> Can restrict the size of the backup file <br /><br /> run ( <br /> allocate channel d1 type disk maxpiecesize = 10G; <br /> allocate channel d2 type disk maxpiecesize = 10G; <br /> backup full database filesperset 10 include current controlfile format &#39;/ home / oracle / fullbak_% d_% T_% s_% p&#39; plus archivelog format &#39;/ home / oracle / archbak_% d_% T_% s&#39; delete all input; <br /><br /> release channel d1; <br /> release channel d2; <br /> ) <br /><br /> Hand to establish two channels, the backup file limited to 10g. <br /><br /> oracle10g increase in compressed backup <br /><br /> You can choose where in the backup command displays the specified compression options: <br /> <strong>BACKUP AS COMPRESSED BACKUPSET DATABASE PLUS ARCHIVELOG;</strong> <br /> - Only 1,5 Backup file compression <br /> <strong>BACKUP AS COMPRESSED BACKUPSET DATAFILE 1,5;</strong> <br /><br /> Can also be configured RMAN specify the compression options: <br /> <strong>CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO COMPRESSED BACKUPSET;</strong> <br /><br /> But the compressed backup will consume more resources and time. <br /><br /> run ( <br /> allocate channel d1 type disk maxpiecesize = 10G; <br /> allocate channel d2 type disk maxpiecesize = 10G; <br /> backup AS COMPRESSED BACKUPSET full database filesperset 10 include current controlfile format &#39;/ home/oracle/3090100/fullbak_% d_% T_% s_% p&#39; plus archivelog format &#39;/ home/oracle/3090100/archbak_% d_% T_% s&#39; delete all input; <br /><br /> release channel d1; <br /> release channel d2; <br /> )				<h5>Related Posts</h5>
		<div id="smilar">
		<ul>
					<li><a href="http://www.kods.net/sga-extended-the-principle-of-32bit-oracle/" title="SGA extended the principle of 32bit oracle">SGA extended the principle of 32bit oracle</a> 2009-03-31 09:48:01</li>
					<li><a href="http://www.kods.net/high-availability-oracle-flashback/" title="High Availability Oracle Flashback">High Availability Oracle Flashback</a> 2009-02-26 17:23:02</li>
					<li><a href="http://www.kods.net/an-example-of-the-use-of-tkprof/" title="An example of the use of TKPROF">An example of the use of TKPROF</a> 2009-02-26 01:38:19</li>
					<li><a href="http://www.kods.net/diagnosis-and-principles-of-order/" title="Diagnosis and principles of order">Diagnosis and principles of order</a> 2009-02-25 20:27:28</li>
					<li><a href="http://www.kods.net/oracle-10g-dataguard-configuration-step-by-step/" title="ORACLE 10G dataguard configuration Step by Step">ORACLE 10G dataguard configuration Step by Step</a> 2009-02-16 01:13:55</li>
				</ul>
		</div>
		        ]]></content:encoded>
		<wfw:commentRss>http://www.kods.net/rman-notes/</wfw:commentRss>
	</item>
		<item>
		<title>RMAN backup and recovery - RAC environment, the database backup (2)</title>
		<link>http://www.kods.net/rman-backup-and-recovery-rac-environment-the-database-backup-2/</link>
		<comments>http://www.kods.net/rman-backup-and-recovery-rac-environment-the-database-backup-2/#comments</comments>
		<pubDate>Tue, 15 Dec 2009 20:30:20+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[quot]]></category>
<category><![CDATA[oracle]]></category>
<category><![CDATA[sid]]></category>
<category><![CDATA[sql]]></category>
<category><![CDATA[log archive]]></category>
<category><![CDATA[backup database]]></category>
<category><![CDATA[logs]]></category>
<category><![CDATA[recovery catalog]]></category>
<category><![CDATA[database control]]></category>
<category><![CDATA[target]]></category>
<category><![CDATA[database backup]]></category>
<category><![CDATA[error message]]></category>
<category><![CDATA[hard disk]]></category>
<category><![CDATA[fri]]></category>
<category><![CDATA[c1]]></category>
<category><![CDATA[stack]]></category>
<category><![CDATA[backup recovery]]></category>
<category><![CDATA[archivelog]]></category>
<category><![CDATA[data1]]></category>
<category><![CDATA[raw device backup]]></category>
		<guid isPermaLink="true">http://www.kods.net/rman-backup-and-recovery-rac-environment-the-database-backup-2/</guid>
		<description><![CDATA[RAC environment, backup, recovery and general database backup, restore, there are some differences. RMAN backup and recovery - RAC environment, the database backup (1): http://yangtingkun.itpub.net/post/468/285260 This description is based on the raw ...]]></description>
		<content:encoded><![CDATA[RAC environment, backup, recovery and general database backup, restore, there are some differences. <br /><br /> RMAN backup and recovery - RAC environment, the database backup (1): http://yangtingkun.itpub.net/post/468/285260 <br /><br /> This description is based on the raw device backup RAC environment. <br /><br /><p><p> For the establishment of the bare device RAC environment, due to archive can not be stored to the raw device, so that all of the archive must be stored in the local disk. RMAN backups directly through the cause errors. <br /><br /> First, the bare equipment to imitate the situation, to modify the original LOG_ARCHIVE_DEST_1 configuration, each instance of change in the local hard disk archiving: <br /><br /> <font face= Tahoma  >SQL&gt; ALTER SYSTEM SET LOG_ARCHIVE_DEST_1 = &#39;LOCATION = / data1/archivelog&#39; SID = &#39;testrac1&#39;;</font> <br /><br /> <font face= Tahoma  >The system has changed.</font> <br /><br /> <font face= Tahoma  >SQL&gt; ALTER SYSTEM SET LOG_ARCHIVE_DEST_1 = &#39;LOCATION = / data1/archivelog&#39; SID = &#39;testrac2&#39;;</font> <br /><br /> <font face= Tahoma  >The system has changed.</font> <br /><br /> And then try to back up the database directly: <br /><br /> <font face= Tahoma  >$ Rman target /</font> <br /><br /> <font face= Tahoma  >Recovery Manager: Release 10.2.0.3.0 - Production on Fri May 11 16:06:48 2007</font> <br /><br /> <font face= Tahoma  >Copyright (c) 1982, 2005, Oracle. All rights reserved.</font> <br /><br /> <font face= Tahoma  >Connected to target database: TESTRAC (DBID = 4291216984)</font> <br /><br /> <font face= Tahoma  >RMAN&gt; run <br /> 2 &quot;( <br /> 3&gt; allocate channel c1 device type disk format &#39;/ data1/backup /% U&#39;; <br /> 4&gt; backup database plus archivelog delete all input; <br /> 5 &quot;)</font> <br /><br /> <font face= Tahoma  >Using target database control file instead of recovery catalog allocated channel: c1 channel c1: sid = 301 instance = testrac1 devtype = DISK</font> <br /><br /> <font face= Tahoma  >Start backup on from November to May -07 current log archived release channel: c1 <br /> MAN-00571: ============================================== ============= <br /> RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== <br /> RMAN-00571: ============================================== ============= <br /> RMAN-03002: backup plus archivelog command (on 05/11/2007 16:08:09 I) failed</font> <br /> <font face= Tahoma  >RMAN-06059: expected archived log not found, archive logs will affect the recoverability of the loss of</font> <br /> <font face= Tahoma  >ORA-19625: recognize the file / data1/archivelog/2_89_618591128.dbf Error</font> <br /> <font face= Tahoma  >ORA-27037: unable to obtain file status</font> <br /> <font face= Tahoma  >SVR4 Error: 2: No such file or directory <br /> Additional information: 3</font> <br /><br /> <font face= Tahoma  >RMAN&gt;</font> <br /><br /> Since node 1 to node 2 can not be accessed on the archive, thus giving rise to the above error. In this case, you can use the CONNECT statement with the ALLOCATE to allocate CHANNEL: <br /><br /> <font face= Tahoma  >RMAN&gt; run <br /> 2 &quot;( <br /> 3&gt; allocate channel c1 device type disk format &#39;/ data1/backup /% U&#39; connect sys / test @ testrac1; <br /> 4&gt; allocate channel c2 device type disk format &#39;/ data1/backup /% U&#39; connect sys / test @ testrac2; <br /> 5&gt; backup database plus archivelog delete all input; <br /> 6 &quot;)</font> <br /><br /> <font face= Tahoma  >Using target database control file instead of recovery catalog allocated channel: c1 channel c1: sid = 288 instance = testrac1 devtype = DISK</font> <br /><br /> <font face= Tahoma  >The distribution channel: c2-channel c2: sid = 307 instance = testrac2 devtype = DISK</font> <br /><br /> <font face= Tahoma  >Start backup on from November to May -07 current log archived channel c1: Starting archive log backup set channel c1: is specified archive log backup set input archive log thread = 1 sequence = 164 Record timestamp input archive log thread = 622,309,643 = 1 sequence = 165 timestamp = 622,309,764 records input archive log thread = 1 sequence = 166 Record timestamp = 622,310,875 channel c1: Starting in paragraph 1 in the November-May -07 channel c2: Starting archive log backup set channel c2: are specified archive log backup set input archive log thread = 2 sequence = 89 Record timestamp = 622,309,924 input archive log thread = 2 sequence = 90 Record timestamp = 622,310,884 input archive log thread = 2 sequence = 91 channel recording timestamp = 622,312,599 c2: Starting in paragraph 1 in the November-May -07 channel c1: paragraph 1 has been completed in the November-May -07 Duan handle = / data1/backup/26ihff55_1_1 tag = TAG20070511T163652 Comment = NONE channel c1: backup set has been completed , after time: 00:00:56 channel c1: Deleting archive log archive log filename = / data1/archivelog/1_164_618591128.dbf record timestamp = 622,309,643 archive log filename = / data1/archivelog/1_165_618591128.dbf record time stamp = 622,309,764 archive log filename = / data1/archivelog/1_166_618591128.dbf record timestamp = 622,310,875 channel c2: paragraph 1 has been completed in November-May -07 Duan handle = / data1/backup/27ihff51_1_1 tag = TAG20070511T163652 Notes = NONE channel c2: backup set has been completed, after a time: 00:00:58 channel c2: Deleting archive log archive log filename = / data1/archivelog/2_89_618591128.dbf record timestamp = 622,309,924 archive log filename = / data1/archivelog / 2_90_618591128.dbf record timestamp = 622,310,884 archive log filename = / data1/archivelog/2_91_618591128.dbf record timestamp = 622,312,599 channel c1: Starting archive log backup set channel c1: is specified archive log backup set input archive log thread = 1 sequence = 167 Record timestamp = 622,312,603 channel c1: Starting in paragraph 1 in the November-May -07 channel c1: paragraph 1 has been completed in the November-May -07 Duan handle = / data1/backup/28ihff6v_1_1 tag = TAG20070511T163652 Note = NONE channel c1: backup set has been completed, after a time: 00:00:01 channel c1: Deleting archive log archive log filename = / data1/archivelog/1_167_618591128.dbf record timestamp = 622,312,603 to complete backup on the 11 -- May -07</font> <br /><br /> <font face= Tahoma  >Start backup on from November to May -07 channel c1: Start all the data file backup set channel c1: backup set is being specified input data file data files fno = 00006 name = + DISK/testrac/datafile/zhejiang01.dbf input data file fno = 00009 name = + DISK/testrac/datafile/zhejiang03.dbf input data file fno = 00012 name = + DISK/testrac/datafile/zhejiang05.dbf input data file fno = 00008 name = + DISK/testrac/datafile/ndmain01.dbf input data file fno = 00010 name = + DISK/testrac/datafile/ndindex01.dbf input data file fno = 00001 name = + DISK/testrac/datafile/system.262.618591167 input data file fno = 00005 name = + DISK / testrac / datafile / users.267.618591279 channel c1: Starting in paragraph 1 in the November-May -07 channel c2: Start all the data file backup sets channel c2: backup set is being specified input data file data files fno = 00007 name = + DISK / testrac / datafile/zhejiang02.dbf input data file fno = 00011 name = + DISK/testrac/datafile/zhejiang04.dbf input data file fno = 00014 name = + DISK/testrac/datafile/zhejiang06.dbf input data file fno = 00002 name = + DISK/testrac/datafile/undotbs1.263.618591197 input data file fno = 00004 name = + DISK/testrac/datafile/undotbs2.266.618591249 input data file fno = 00013 name = + DISK/testrac/datafile/lt_index_ts01.dbf input data file fno = 00003 name = + DISK/testrac/datafile/sysaux.264.618591225 channel c2: Starting in paragraph 1 in the November-May -07 channel c2: paragraph 1 has been completed in the November-May -07 Duan handle = / data1/backup / 2aihff6v_1_1 tag = TAG20070511T163754 Comment = NONE channel c2: backup set has been completed, after a time: 00:13:16 channel c2: Start all the data file backup sets channel c2: backup set is being specified data file backup set including current control file channel c2 : Starting from November to May in paragraph 1 in the -07 channel c2: paragraph 1 has been completed in November-May -07 Duan handle = / data1/backup/2bihffvr_1_1 tag = TAG20070511T163754 Comment = NONE channel c2: backup set has been completed, elapsed time: 00:00:03 channel c2: Start all the data file backup sets channel c2: backup set is being specified data files in the backup set that contains the current SPFILE channel c2: Starting in paragraph 1 in the November-May -07 channel c2 : Section 1 has been completed in November-May -07 Duan handle = / data1/backup/2cihffvv_1_1 tag = TAG20070511T163754 Comment = NONE channel c2: backup set has been completed, after a time: 00:00:02 channel c1: Completed section one was from November to May -07 Duan handle = / data1/backup/29ihff73_1_1 tag = TAG20070511T163754 Comment = NONE channel c1: backup set has been completed, after a Time: 00:15:07 to complete backup was from November to May -07</font> <br /><br /> <font face= Tahoma  >Start backup on from November to May -07 current log archived channel c1: Starting archive log backup set channel c1: is specified archive log backup set input archive log thread = 1 sequence = 168 Record timestamp = 622,313,584 channel c1: is Start segment 1 was from November to May -07 channel c2: Starting archive log backup set channel c2: is specified archive log backup set input archive log thread = 2 sequence = 92 Record timestamp = 622.31358 million channel c2: Starting in paragraph 1 in November-May -07 channel c1: paragraph 1 has been completed in November-May -07 Duan handle = / data1/backup/2dihfg3m_1_1 tag = TAG20070511T165309 Comment = NONE channel c1: backup set has been completed, after a time: 00: 00:01-channel c1: Deleting archive log archive log filename = / data1/archivelog/1_168_618591128.dbf record timestamp = 622,313,584 channel c2: paragraph 1 has been completed in November-May -07 Duan handle = / data1/backup / 2eihfg3h_1_1 tag = TAG20070511T165309 Comment = NONE channel c2: backup set has been completed, after a time: 00:00:02 channel c2: Deleting archive log archive log filename = / data1/archivelog/2_92_618591128.dbf record timestamp = 622.31358 million to complete backup was from November to May -07 release channel: c1 channel release: c2</font> <br /><br /> <font face= Tahoma  >RMAN&gt;</font> <br /><br /> Using this method can be successfully backup.				<h5>Related Posts</h5>
		<div id="smilar">
		<ul>
					<li><a href="http://www.kods.net/sga-extended-the-principle-of-32bit-oracle/" title="SGA extended the principle of 32bit oracle">SGA extended the principle of 32bit oracle</a> 2009-03-31 09:48:01</li>
					<li><a href="http://www.kods.net/an-example-of-the-use-of-tkprof/" title="An example of the use of TKPROF">An example of the use of TKPROF</a> 2009-02-26 01:38:19</li>
					<li><a href="http://www.kods.net/diagnosis-and-principles-of-order/" title="Diagnosis and principles of order">Diagnosis and principles of order</a> 2009-02-25 20:27:28</li>
					<li><a href="http://www.kods.net/oracle-10g-dataguard-configuration-step-by-step/" title="ORACLE 10G dataguard configuration Step by Step">ORACLE 10G dataguard configuration Step by Step</a> 2009-02-16 01:13:55</li>
				</ul>
		</div>
		        ]]></content:encoded>
		<wfw:commentRss>http://www.kods.net/rman-backup-and-recovery-rac-environment-the-database-backup-2/</wfw:commentRss>
	</item>
		<item>
		<title>rac rman backup Note</title>
		<link>http://www.kods.net/rac-rman-backup-note/</link>
		<comments>http://www.kods.net/rac-rman-backup-note/#comments</comments>
		<pubDate>Wed, 02 Dec 2009 02:05:02+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[oracle]]></category>
<category><![CDATA[parameters]]></category>
<category><![CDATA[df]]></category>
<category><![CDATA[sys]]></category>
<category><![CDATA[instances]]></category>
<category><![CDATA[tape library]]></category>
<category><![CDATA[archivelog]]></category>
<category><![CDATA[amp]]></category>
<category><![CDATA[usr]]></category>
<category><![CDATA[database release]]></category>
<category><![CDATA[t1]]></category>
<category><![CDATA[rac]]></category>
<category><![CDATA[t2]]></category>
<category><![CDATA[tsm client]]></category>
<category><![CDATA[sbt]]></category>
<category><![CDATA[tivoli]]></category>
<category><![CDATA[parms]]></category>
<category><![CDATA[backup software]]></category>
		<guid isPermaLink="true">http://www.kods.net/rac-rman-backup-note/</guid>
		<description><![CDATA[rman backup, maintenance of database can be connected to an instance can be backed up, but the backup archivelog, must be connected to the rac all instances. rn Please refer to the following script (note that the following script uses the tape librar ...]]></description>
		<content:encoded><![CDATA[rman backup, maintenance of database can be connected to an instance can be backed up, but the backup archivelog, must be connected to the <BR> rac all instances. <br /> rn <br /> Please refer to the following script (note that the following script uses the tape library, and if it is prepared to a disk file system, type is <BR> disk in, env parameters depending on the backup software, modify the backup to disk, they no longer needed) <BR> db backup <BR> run <BR> ( <BR> allocate channel t1 type &#39;sbt_tape&#39; parms <BR> &#39;ENV = (TDPO_OPTFILE = / usr/tivoli/tsm/client/oracle/bin64/tdpo.opt)&#39;; <BR> backup <BR> filesperset 5 <BR> format &#39;df_% t_% s_% p&#39; <BR> (database); <BR> release channel t1; <BR> ) <BR> Archive Backup <BR> run <BR> ( <BR> allocate channel t1 type &#39;sbt_tape&#39; connect sys / oracle @ ORCL1 parms <BR> &#39;ENV = (TDPO_OPTFILE = / usr/tivoli/tsm/client/oracle/bin64/tdpo.opt)&#39;; <BR> allocate channel t2 type &#39;sbt_tape&#39; connect sys / oracle @ ORCL2 parms <BR> &#39;ENV = (TDPO_OPTFILE = / usr/tivoli/tsm/client/oracle/bin64/tdpo.opt)&#39;; <BR> backup archivelog all delete input; <BR> sql &#39;alter system archive log current&#39;; <BR> release channel t1; <BR> release channel t2; <BR> )				<h5>Related Posts</h5>
		<div id="smilar">
		<ul>
					<li><a href="http://www.kods.net/sga-extended-the-principle-of-32bit-oracle/" title="SGA extended the principle of 32bit oracle">SGA extended the principle of 32bit oracle</a> 2009-03-31 09:48:01</li>
					<li><a href="http://www.kods.net/an-example-of-the-use-of-tkprof/" title="An example of the use of TKPROF">An example of the use of TKPROF</a> 2009-02-26 01:38:19</li>
					<li><a href="http://www.kods.net/diagnosis-and-principles-of-order/" title="Diagnosis and principles of order">Diagnosis and principles of order</a> 2009-02-25 20:27:28</li>
					<li><a href="http://www.kods.net/oracle-10g-dataguard-configuration-step-by-step/" title="ORACLE 10G dataguard configuration Step by Step">ORACLE 10G dataguard configuration Step by Step</a> 2009-02-16 01:13:55</li>
				</ul>
		</div>
		        ]]></content:encoded>
		<wfw:commentRss>http://www.kods.net/rac-rman-backup-note/</wfw:commentRss>
	</item>
		<item>
		<title>Oracle Classic Q & A</title>
		<link>http://www.kods.net/oracle-classic-q-a/</link>
		<comments>http://www.kods.net/oracle-classic-q-a/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 07:25:52+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[oracle 9i]]></category>
<category><![CDATA[index table]]></category>
<category><![CDATA[table space]]></category>
<category><![CDATA[oracle table]]></category>
<category><![CDATA[oracle installation]]></category>
<category><![CDATA[oracle server]]></category>
<category><![CDATA[oracle 8]]></category>
<category><![CDATA[default user]]></category>
<category><![CDATA[archivelog]]></category>
<category><![CDATA[space information]]></category>
<category><![CDATA[query table]]></category>
<category><![CDATA[raw device]]></category>
<category><![CDATA[transaction time]]></category>
<category><![CDATA[initial default]]></category>
<category><![CDATA[dba studio]]></category>
<category><![CDATA[space 28]]></category>
<category><![CDATA[java exe]]></category>
<category><![CDATA[interal]]></category>
<category><![CDATA[random function]]></category>
<category><![CDATA[query server]]></category>
		<guid isPermaLink="true">http://www.kods.net/oracle-classic-q-a/</guid>
		<description><![CDATA[01. Oracle installation is complete the initial password? 02. ORACLE9IAS WEB CACHE initial default user and password? 03. Oracle 8.0.5 how to create database? 04. Oracle 8.1.7 how to create database? 05. Oracle 9i how to create database? 06. Oracle r ...]]></description>
		<content:encoded><![CDATA[<table"WIDTH: 100%; TABLE-LAYOUT: fixed"><tbody><tr><td><br /><br /> 01. Oracle installation is complete the initial password? <br /><br /> 02. ORACLE9IAS WEB CACHE initial default user and password? <br /><br /> 03. Oracle 8.0.5 how to create database? <br /><br /> 04. Oracle 8.1.7 how to create database? <br /><br /> 05. Oracle 9i how to create database? <br /><br /> 06. Oracle raw device in what is meant? <br /><br /> 07. Oracle how to distinguish 64-bit/32bit version? ? ? <br /><br /> 08. SVRMGR What does it mean? <br /><br /> 09. I ask how to tell the machine where a user is a landing ORACLE it? <br /><br /> 10. What statement to query a field in it? <br /><br /> 11. How to get triggers, processes, functions to create a script? <br /><br /> 12. How to calculate a table the size of the space? <br /><br /> 13. How do I see the largest number of sessions? <br /><br /> 14. How do I view the system locked up the transaction time? <br /><br /> 15. Archivelog way how to run the oracle. <br /><br /> 16. How to obtain what the user using the database <br /><br /> 17. Data in the table what is the maximum number of fields? <br /><br /> 18. How Richard database SID? <br /><br /> 19. How Oracle server through SQLPLUS see local IP address? <br /><br /> 20. Unix how to adjust the database the next time? <br /><br /> 21. ORACLE TABLE how to crawl MEMO type field is empty data record? <br /><br /> 22. How to use the information to update the BBB table AAA table information (associated field) <br /><br /> 23. P4 Computer Installation Method <br /><br /> 24. He query SERVER is OPS? <br /><br /> 25. He check the permissions for each user? <br /><br /> 26. How to move tablespace the table? <br /><br /> 27. How to move the index table space? <br /><br /> 28. Under LINUX, UNIX how to activate the DBA STUDIO? <br /><br /> 29. Check the status of the lock object has? <br /><br /> 30. How do I unlock? <br /><br /> 31. SQLPLUS how to modify the editor? <br /><br /> 32. ORACLE generates a random function? <br /><br /> 33. LINUX competition in the next check disk command? <br /><br /> 33. LINUX check CPU under the state of competition in order? <br /><br /> 34. Query the current user object? <br /><br /> 35. How do I get the error message? <br /><br /> 36. How to obtain the link status? <br /><br /> 37. View the database character situation? <br /><br /> 38. Query table space information? <br /><br /> 39. ORACLE&#39;s INTERAL users to password? <br /><br /> 40. JAVA.EXE there a solution? <br /><br /> 41. How to tables, columns, add a comment? <br /><br /> 42. How do I view all the table space occupied by the disk situation? <br /><br /> 43. If the ORACLE set to MTS or dedicated mode? <br /><br /> 44. How can I know the system&#39;s current SCN number? <br /><br /> 45. I ask how to get milliseconds in ORACLE? <br /><br /> 46. How to Enter the string Riga? <br /><br /> 47. Chinese is how to sort it? <br /><br /> 48. Oracle8i object name can be in Chinese? <br /><br /> 49. How do I change the WIN in the SQL * Plus startup options? <br /><br /> 50. Oracel How to modify the database&#39;s default date? <br /><br /> 51. How to keep a small table into the pool? <br /><br /> 52. How to check whether you have a patch? <br /><br /> 53. How to make the select statement to query results automatically generated serial number? <br /><br /> 54. How do you know the data to a table where the pants in the tablespace? <br /><br /> 55. How you can quickly make a backup of the same as the original table and the table? <br /><br /> 55. Sqlplus, how to modify the procedure? <br /><br /> 56. How to lift PROCEDURE was accidentally locked? <br /><br /> 57. SQL Reference is what? <br /><br /> 58. How do I view the status of the database? <br /><br /> 59. I ask how to modify a table&#39;s primary key? <br /><br /> 60. To change the data file size? <br /><br /> 61. How to view the ORACLE What are the procedures for running into? <br /><br /> 62. How you can see the number of database tablespace? <br /><br /> 63. How to modify the oracle database, the number of user connections? <br /><br /> 64. How do I find out a record last updated? <br /><br /> 65. How PL / SQL to read and write files? <br /><br /> 66. How to &quot;&amp;&quot; into a record? <br /><br /> 67. EXP how that can be QUERY parameter? <br /><br /> 68. With regard to oracle8i for Simplified and Traditional character set problem? <br /><br /> 69. Data Guard What is software? <br /><br /> 70. How do I create a SPFILE? <br /><br /> 71. Application of the kernel parameters? <br /><br /> 72. How to see which users have SYSDBA, SYSOPER privileges? <br /><br /> 73. How do I back up one or more separate tables? <br /><br /> 74. How do I back up a single or multiple users? <br /><br /> 75. How to CLOB fields full-text search? <br /><br /> 76. How to display the currently connected users? <br /><br /> 77. How do I view the data files placed in the path? <br /><br /> 78. How do I view the current rollback its state? <br /><br /> 79. How do I change a field, Check the definition of the scope of the original? <br /><br /> 80. Oracle system files used what? <br /><br /> 81. In connection INNER JOIN? <br /><br /> 82. How to outer join? <br /><br /> 83. How to implement the script SQL files? <br /><br /> 84. How to quickly empty a large table? <br /><br /> 85. How do I check the number of database instances? <br /><br /> 86. How do I query the database the number of tables? <br /><br /> 87. How to test SQL statements used in the implementation of the time? <br /><br /> 88. CHR () function is the anti-? <br /><br /> 89. String connection <br /><br /> 90. How to select, the results lead to a text file?<br /><br /> 91. How to estimate SQL execution I / O number? <br /><br /> 92. How to change the field size of sqlplus? <br /><br /> 93. How to query data in one day? <br /><br /> 94. Sql statement, how to insert a whole date? <br /><br /> 95. If you modify the table name? <br /><br /> 96. How do I get command returns the status value? <br /><br /> 97. How do you know the user has permissions? <br /><br /> 98. ORACLE9I downloaded from the Internet on the market sell the standard version of What&#39;s the difference? <br /><br /> 99. How do we judge the database is running in archive mode or to run in non archive mode? <br /><br /> 100. Sql&gt; startup pfile and ifile, spfiled What is the difference? <br /><br /> ================================================== ================================================== ============ <br /><br /> 1. Oracle installation is complete the initial password? <br /><br /> internal / oracle <br /><br /> sys / change_on_install <br /><br /> system / manager <br /><br /> scott / tiger <br /><br /> sysman / oem_temp <br /><br /> 2. ORACLE9IAS WEB CACHE initial default user and password? <br /><br /> administrator / administrator <br /><br /> 3. Oracle 8.0.5 how to create database? <br /><br /> With orainst. If you have motif interface, you can use orainst / m <br /><br /> 4. Oracle 8.1.7 how to create database? <br /><br /> dbassist <br /><br /> 5. Oracle 9i how to create database? <br /><br /> dbca <br /><br /> 6. Oracle raw device in what is meant? <br /><br /> Raw device to bypass the file system is a direct access storage space <br /><br /> 7. Oracle how to distinguish 64-bit/32bit version? ? ? <br /><br /> $ Sqlplus &#39;/ AS SYSDBA&#39; <br /><br /> SQL * Plus: Release 9.0.1.0.0 - Production on Mon Jul 14 17:01:09 2003 <br /><br /> (c) Copyright 2001 Oracle Corporation. All rights reserved. <br /><br /> Connected to: <br /><br /> Oracle9i Enterprise Edition Release 9.0.1.0.0 - Production <br /><br /> With the Partitioning option <br /><br /> JServer Release 9.0.1.0.0 - Production <br /><br /> SQL&gt; select * from v $ version; <br /><br /> BANNER <br /><br /> -------------------------------------------------- -------------- <br /><br /> Oracle9i Enterprise Edition Release 9.0.1.0.0 - Production <br /><br /> PL / SQL Release 9.0.1.0.0 - Production <br /><br /> CORE 9.0.1.0.0 Production <br /><br /> TNS for Solaris: Version 9.0.1.0.0 - Production <br /><br /> NLSRTL Version 9.0.1.0.0 - Production <br /><br /> SQL&gt; <br /><br /> 8. SVRMGR What does it mean? <br /><br /> svrmgrl, Server Manager. <br /><br /> Under 9i not, had been replaced with a SQLPLUS <br /><br /> sqlplus / nolog <br /><br /> Into a type of archive log <br /><br /> 9. I ask how to tell the machine where a user is a landing ORACLE it? <br /><br /> SELECT machine, terminal FROM V $ SESSION; <br /><br /> 10. What statement to query a field in it? <br /><br /> desc table_name can query the structure of the table <br /><br /> select field_name, ... from ... you can query the value of the field <br /><br /> select * from all_tables where table_name like &#39;%&#39; <br /><br /> select * from all_tab_columns where table_name =&#39;??&#39; <br /><br /> 11. How to get triggers, processes, functions to create a script? <br /><br /> desc user_source <br /><br /> user_triggers <br /><br /> 12. How to calculate a table the size of the space? <br /><br /> select owner, table_name, <br /><br /> NUM_ROWS, <br /><br /> BLOCKS * AAA/1024/1024 &quot;Size M&quot;, <br /><br /> EMPTY_BLOCKS, <br /><br /> LAST_ANALYZED <br /><br /> from dba_tables <br /><br /> where table_name = &#39;XXX&#39;; <br /><br /> Here: AAA is the value of db_block_size; <br /><br /> XXX is the table name you want to check <br /><br /> 13. How do I see the largest number of sessions? <br /><br /> SELECT * FROM V $ PARAMETER WHERE NAME LIKE &#39;proc%&#39;; <br /><br /> SQL&gt; <br /><br /> SQL&gt; show parameter processes <br /><br /> NAME TYPE VALUE <br /><br /> ------------------------------------ ------- ------- ----------------------- <br /><br /> aq_tm_processes integer 1 <br /><br /> db_writer_processes integer 1 <br /><br /> job_queue_processes integer 4 <br /><br /> log_archive_max_processes integer 1 <br /><br /> processes integer 200 <br /><br /> Here for 200 users. <br /><br /> select * from v $ license; <br /><br /> Sessions_highwater which records the maximum number of sessions has been reached <br /><br /> 14. How do I view the system locked up the transaction time? <br /><br /> select * from v $ locked_object; <br /><br /> 15. Archivelog way how to run the oracle. <br /><br /> init.ora <br /><br /> log_archive_start = true <br /><br /> RESTART DATABASE <br /><br /> 16. How to obtain what the user using the database <br /><br /> select username from v $ session; <br /><br /> 17. Data in the table what is the maximum number of fields? <br /><br /> Table or view, the maximum number of columns in 1000 <br /><br /> 18. How Richard database SID? <br /><br /> select name from v $ database; <br /><br /> Can also directly view the file init.ora <br /><br /> 19. How Oracle server through SQLPLUS see local IP address? <br /><br /> select sys_context ( &#39;userenv&#39;, &#39;ip_address&#39;) from dual; <br /><br /> If it is landing the aircraft database, only to return 127.0.0.1, He He <br /><br /> 20. Unix how to adjust the database the next time? <br /><br /> su-root <br /><br /> date-u 08010000 <br /><br /> 21. ORACLE TABLE how to crawl MEMO type field is empty data record? <br /><br /> select remark from oms_flowrec where trim ( &#39;&#39; from remark) is not null; <br /><br /> 22. How to use the information to update the BBB table AAA table information (associated field) <br /><br /> UPDATE AAA SET BNS_SNM = (SELECT BNS_SNM FROM BBB WHERE AAA.DPT_NO = BBB.DPT_NO) WHERE BBB.DPT_NO IS NOT NULL; <br /><br /> 23. P4 Computer Installation Method <br /><br /> SYMCJIT.DLL into the SYSMCJIT.OLD <br /><br /> 24. He query SERVER is OPS? <br /><br /> SELECT * FROM V $ OPTION; <br /><br /> If the PARALLEL SERVER = TRUE, there OPS can be <br /><br /> 25. He check the permissions for each user? <br /><br /> SELECT * FROM DBA_SYS_PRIVS; <br /><br /> 26. How to move tablespace the table? <br /><br /> ALTER TABLE TABLE_NAME MOVE TABLESPACE_NAME; <br /><br /> 27. How to move the index table space? <br /><br /> ALTER INDEX INDEX_NAME REBUILD TABLESPACE TABLESPACE_NAME; <br /><br /> 28. Under LINUX, UNIX how to activate the DBA STUDIO? <br /><br /> OEMAPP DBASTUDIO <br /><br /> 29. Check the status of the lock object has? <br /><br /> V $ LOCK, V $ LOCKED_OBJECT, V $ SESSION, V $ SQLAREA, V $ PROCESS; <br /><br /> Query lock table approach: <br /><br /> SELECT S. SID SESSION_ID, S. USERNAME, DECODE (LMODE, 0, &#39;None&#39;, 1, &#39;Null&#39;, 2, &#39;Row-S (SS)&#39;, 3, &#39;Row-X (SX)&#39;, 4, &#39;Share&#39;, 5, &#39;S / Row-X (SSX)&#39;, 6, <br /><br /> &#39;Exclusive&#39;, TO_CHAR (LMODE)) MODE_HELD, DECODE (REQUEST, 0, &#39;None&#39;, 1, &#39;Null&#39;, 2, &#39;Row-S (SS)&#39;, 3, &#39;Row-X (SX)&#39;, 4 , &#39;Share&#39;, 5, &#39;S / Row-X (SSX)&#39;, <br /><br /> 6, &#39;Exclusive&#39;, TO_CHAR (REQUEST)) MODE_REQUESTED, O. OWNER ||&#39;.&#39;|| O. OBJECT_NAME | | &#39;(&#39; | | O. OBJECT_TYPE ||&#39;)&#39;, S. TYPE LOCK_TYPE, L.ID1 LOCK_ID1, <br /><br /> L.ID2 LOCK_ID2 FROM V $ LOCK L, SYS.DBA_OBJECTS O, V $ SESSION S WHERE L. SID = S. SID AND L.ID1 = O. OBJECT_ID; <br /><br /> 30. How do I unlock? <br /><br /> ALTER SYSTEM KILL SESSION &#39;SID, SERIR #&#39;; <br /><br /> 31. SQLPLUS how to modify the editor? <br /><br /> DEFINE _EDITOR = &quot;&lt;editor complete pass&quot; &quot;- must be added the double quotes <br /><br /> To define a new editor, this can also be written in the $ ORACLE_HOME / sqlplus / admin / glogin.sql inside to make it permanent. <br /><br /> 32. ORACLE generates a random function? <br /><br /> DBMS_RANDOM.RANDOM <br /><br /> 33. LINUX competition in the next check disk command? <br /><br /> Sar-d <br /><br /> 33. LINUX check CPU under the state of competition in order? <br /><br /> sar-r <br /><br /> 34. Query the current user object? <br /><br /> SELECT * FROM USER_OBJECTS; <br /><br /> SELECT * FROM DBA_SEGMENTS; <br /><br /> 35. How do I get the error message? <br /><br /> SELECT * FROM USER_ERRORS; <br /><br /> 36. How to obtain the link status? <br /><br /> SELECT * FROM DBA_DB_LINKS; <br /><br /> 37. View the database character situation? <br /><br /> SELECT * FROM NLS_DATABASE_PARAMETERS; <br /><br /> SELECT * FROM V $ NLS_PARAMETERS; <br /><br /> 38. Query table space information? <br /><br /> SELECT * FROM DBA_DATA_FILES; <br /><br /> 39. ORACLE&#39;s INTERAL users to password? <br /><br /> Changes SQLNET.ORA <br /><br /> SQLNET.AUTHENTICATION_SERVICES = (NTS) <br /><br /> 40. JAVA.EXE there a solution? <br /><br /> Generally is ORACLEORAHOMEXIHTTPSERVER manual activation can change the <br /><br /> X is 8 or 9 <br /><br /> 41. How to tables, columns, add a comment? <br /><br /> SQL&gt; comment on table the table is &#39;table comment&#39;; <br /><br /> Note has been created. <br /><br /> SQL&gt; comment on column table. Column is &#39;column comment&#39;; <br /><br /> Note has been created. <br /><br /> SQL&gt; select * from user_tab_comments where comments is not null; <br /><br /> 42. How do I view all the table space occupied by the disk situation? <br /><br /> SQL&gt; col tablespace format a20 <br /><br /> SQL&gt; select <br /><br /> b.file_id document ID number, <br /><br /> b.tablespace_name the table space name, <br /><br /> b.bytes bytes <br /><br /> (b.bytes-sum (nvl (a.bytes, 0))) has been used <br /><br /> sum (nvl (a.bytes, 0)) the remaining space, <br /><br /> sum (nvl (a.bytes, 0)) / (b.bytes) * 100 percentage of the remaining <br /><br /> from dba_free_space a, dba_data_files b <br /><br /> where a.file_id = b.file_id <br /><br /> group by b.tablespace_name, b.file_id, b.bytes <br /><br /> order by b.file_id <br /><br /> 43. If the ORACLE set to MTS or dedicated mode? <br /><br /> # dispatchers = &quot;(PROTOCOL = TCP) (SERVICE = SIDXDB)&quot; <br /><br /> Plus is the MTS, note that is, exclusive model, SID is your instance name. <br /><br /> 44. How can I know the system&#39;s current SCN number? <br /><br /> select max (ktuxescnw * power (2, 32) + ktuxescnb) from x $ ktuxe; <br /><br /> 45. I ask how to get milliseconds in ORACLE? <br /><br /> Prior to 9i do not support, 9i began to timestamp. <br /><br /> 9i can select systimestamp from dual; <br /><br /> ORACLE in the application when you may encounter a lot of problems seem difficult, especially for novice, and today I simply put it to sum up, release to you, hope all of us help! And everyone to explore, a total of <br /><br /> With the progress! <br /><br /> ORACLE is not on the master to read. <br /><br /> 46. How to Enter the string Riga? <br /><br /> select &#39;Welcome to visit&#39; | | chr (10) | | &#39;www.CSDN.NET&#39; from dual; <br /><br /> 47. Chinese is how to sort it? <br /><br /> Prior to Oracle9i, the Chinese is based on binary coding to sort. <br /><br /> Example: Set shmsys: shminfo_shmseg = 20: <br /><br /> semmni <br /><br /> Meaning: the system the maximum number of semaphore identifierer. <br /><br /> Set Methods: The value of this variable is set for this system, all Oracle instances in the init.ora of the largest that processes that increase the value of 10. <br /><br /> Example: Set semsys: seminfo_semmni = 100 <br /><br /> semmns <br /><br /> Meaning: the maximum number of emaphores system. <br /><br /> Setting Method: This value can be calculated by the following ways: inside each Oracle instance initSID.ora the sum of the value of the processes (except the largest Processes parameters) + the largest that <br /><br /> Processes × 2 +10 × Oracle instance number. <br /><br /> Example: Set semsys: seminfo_semmns = 200 <br /><br /> semmsl: <br /><br /> Meanings: one set in the maximum number of semaphore. <br /><br /> Set Method: Set a 10 + for all Oracle instances InitSID.ora largest Processes value. <br /><br /> Example: Set semsys: seminfo_semmsl =- 200 <br /><br /> 72. How to see which users have SYSDBA, SYSOPER privileges? <br /><br /> SQL&gt; conn sys / change_on_install <br /><br /> SQL&gt; select * from V_ $ PWFILE_USERS; <br /><br /> 73. How do I back up one or more separate tables? <br /><br /> exp user / password tables = (table 1, ..., table 2) <br /><br /> 74. How do I back up a single or multiple users? <br /><br /> exp system / manager owner = (User 1, user 2, ..., user n) file = Export File <br /><br /> 75. How to CLOB fields full-text search? <br /><br /> SELECT * FROM A WHERE dbms_lob.instr (aa, &#39;K&#39;, 1,1)&gt; 0; <br /><br /> 76. How to display the currently connected users? <br /><br /> SHOW USER <br /><br /> 77. How do I view the data files placed in the path? <br /><br /> col file_name format a50 <br /><br /> SQL&gt; select tablespace_name, file_id, bytes/1024/1024, file_name from dba_data_files order by file_id; <br /><br /> 78. How do I view the current rollback its state? <br /><br /> SQL&gt; col segment format a30 <br /><br /> SQL&gt; SELECT SEGMENT_NAME, OWNER, TABLESPACE_NAME, SEGMENT_ID, FILE_ID, STATUS FROM DBA_ROLLBACK_SEGS <br /><br /> 79. How do I change a field, Check the definition of the scope of the original? <br /><br /> SQL&gt; alter table xxx drop constraint constraint_name; <br /><br /> After creating a new constraint: <br /><br /> SQL&gt; alter table xxx add constraint constraint_name check (); <br /><br /> 80. Oracle system files used what? <br /><br /> Through the following view shows the file information: v $ database, v $ datafile, v $ logfile v $ controlfile v $ parameter; <br /><br /> 81. In connection INNER JOIN? <br /><br /> Select a. * from bsempms a, bsdptms b where a.dpt_no = b.dpt_no; <br /><br /> 82. How to outer join? <br /><br /> Select a. * from bsempms a, bsdptms b where a.dpt_no = b.dpt_no (+); <br /><br /> Select a. * from bsempms a, bsdptms b wherea.dpt_no (+) = b.dpt_no; <br /><br /> 83. How to implement the script SQL files? <br /><br /> SQL&gt; @ $ PATH / filename.sql; <br /><br /> 84. How to quickly empty a large table? <br /><br /> SQL&gt; truncate table table_name; <br /><br /> 85. How do I check the number of database instances? <br /><br /> SQL&gt; SELECT * FROM V $ INSTANCE; <br /><br /> 86. How do I query the database the number of tables? <br /><br /> SQL&gt; select * from all_tables; <br /><br /> 87. How to test SQL statements used in the implementation of the time? <br /><br /> SQL&gt; set timing on; <br /><br /> SQL&gt; select * from tablename; <br /><br /> ORACLE in the application when you may encounter a lot of problems seem difficult, especially for novice, and today I simply put it to sum up, release to you, hope all of us help! And everyone to explore, a total of <br /><br /> With the progress! <br /><br /> ORACLE is not on the master to read. <br /><br /> 88. CHR () function is the anti-? <br /><br /> ASCII () <br /><br /> SELECT CHAR (65) FROM DUAL; <br /><br /> SELECT ASCII ( &#39;A&#39;) FROM DUAL; <br /><br /> 89. String connection <br /><br /> SELECT CONCAT (COL1, COL2) FROM TABLE; <br /><br /> SELECT COL1 | | COL2 FROM TABLE; <br /><br /> 90. How to select, the results lead to a text file? <br /><br /> SQL&gt; SPOOL C: \ ABCD.TXT; <br /><br /> SQL&gt; select * from table; <br /><br /> SQL&gt; spool off; <br /><br /> 91. How to estimate SQL execution I / O number? <br /><br /> SQL&gt; SET AUTOTRACE ON; <br /><br /> SQL&gt; SELECT * FROM TABLE; <br /><br /> OR <br /><br /> SQL&gt; SELECT * FROM v $ filestat; <br /><br /> You can view the number of IO <br /><br /> 92. How to change the field size of sqlplus? <br /><br /> alter table table_name modify (field_name varchar2 (100)); <br /><br /> Change lines, Gaixiao not work (unless is empty) <br /><br /> 93. How to query data in one day? <br /><br /> select * from table_name where trunc (date field) = to_date (&#39;2003-05-02 &#39;,&#39; yyyy-mm-dd &#39;); <br /><br /> 94. Sql statement, how to insert a whole date? <br /><br /> create table BSYEAR (d date); <br /><br /> insert into BSYEAR <br /><br /> select to_date (&#39;20030101 &#39;,&#39; yyyymmdd &#39;) + rownum-1 <br /><br /> from all_objects <br /><br /> where rownum &lt;= to_char (to_date (&#39;20031231 &#39;,&#39; yyyymmdd &#39;),&#39; ddd &#39;); <br /><br /> 95. If you modify the table name? <br /><br /> alter table old_table_name rename to new_table_name; <br /><br /> 96. How do I get command returns the status value? <br /><br /> sqlcode = 0 <br /><br /> 97. How do you know the user has permissions? <br /><br /> SELECT * FROM dba_sys_privs; <br /><br /> 98. ORACLE9I downloaded from the Internet on the market sell the standard version of What&#39;s the difference? <br /><br /> From the function that there is no difference, but the company has expressly provided oracle; from the oracle site to download product not be used for commercial purposes, or infringement. <br /><br /> 99. How do we judge the database is running in archive mode or to run in non archive mode? <br /><br /> Into dbastudio, history - &quot;Database ---&quot; archive view. <br /><br /> 100. Sql&gt; startup pfile and ifile, spfiled What is the difference? <br /><br /> pfile is a traditional Oracle initialization parameter file, the text format. <br /><br /> ifile is similar to c language inside include, for the introduction of another file <br /><br /> spfile is where the new 9i and is the default parameter files, binary format <br /><br /> startup should only be received after the pfile <br /><br /></td></tr></tbody></table>				<h5>Related Posts</h5>
		<div id="smilar">
		<ul>
					<li><a href="http://www.kods.net/modify-sys-password-oracle-9i/" title="modify sys password oracle 9i">modify sys password oracle 9i</a> 2009-04-06 08:09:07</li>
					<li><a href="http://www.kods.net/oracle10g-asm-database-table-space-maintenance/" title="Oracle10g ASM database table space maintenance">Oracle10g ASM database table space maintenance</a> 2009-03-31 17:51:25</li>
					<li><a href="http://www.kods.net/sql-optimization-5-commonly-used-test-hints/" title="SQL optimization (5) - commonly used test hints">SQL optimization (5) - commonly used test hints</a> 2009-03-29 08:39:54</li>
					<li><a href="http://www.kods.net/block-oracle-paragraph-reprint/" title="Block Oracle paragraph (reprint)">Block Oracle paragraph (reprint)</a> 2009-03-26 17:41:14</li>
					<li><a href="http://www.kods.net/oracle-xdb-relax-resolve-port-conflict-of-8080/" title="Oracle XDB relax resolve port conflict of 8080">Oracle XDB relax resolve port conflict of 8080</a> 2009-03-13 16:47:42</li>
				</ul>
		</div>
		        ]]></content:encoded>
		<wfw:commentRss>http://www.kods.net/oracle-classic-q-a/</wfw:commentRss>
	</item>
		<item>
		<title>RAC environment, the database backup (2)</title>
		<link>http://www.kods.net/rac-environment-the-database-backup-2/</link>
		<comments>http://www.kods.net/rac-environment-the-database-backup-2/#comments</comments>
		<pubDate>Mon, 15 Dec 2008 14:55:53+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[oracle]]></category>
<category><![CDATA[sid]]></category>
<category><![CDATA[sql]]></category>
<category><![CDATA[log archive]]></category>
<category><![CDATA[backup database]]></category>
<category><![CDATA[configuration file]]></category>
<category><![CDATA[recovery catalog]]></category>
<category><![CDATA[database control]]></category>
<category><![CDATA[target]]></category>
<category><![CDATA[database backup]]></category>
<category><![CDATA[error message]]></category>
<category><![CDATA[hard disk]]></category>
<category><![CDATA[fri]]></category>
<category><![CDATA[environment database]]></category>
<category><![CDATA[c1]]></category>
<category><![CDATA[stack]]></category>
<category><![CDATA[backup recovery]]></category>
<category><![CDATA[archivelog]]></category>
<category><![CDATA[data1]]></category>
<category><![CDATA[raw device]]></category>
		<guid isPermaLink="true">http://www.kods.net/rac-environment-the-database-backup-2/</guid>
		<description><![CDATA[rn RAC environment, backup, recovery and general database backup, recovery is some difference. rn RMAN Backup and Recovery - RAC environment database backup (1): http://yangtingkun.itpub.net/post/468/285260 rn This description is based on the bare de ...]]></description>
		<content:encoded><![CDATA[rn <br /> RAC environment, backup, recovery and general database backup, recovery is some difference. <br /><br /> rn <br /> RMAN Backup and Recovery - RAC environment database backup (1): http://yangtingkun.itpub.net/post/468/285260 <br /><br /> rn <br /> This description is based on the bare device backup RAC environment. <br /><br /> rn <br /><br /> rn <br /><br /> rn <br /> For the establishment of the bare device RAC environment can not be stored due to the raw device file, so that all of the archive must be stored in local disk. RMAN backups directly lead to errors. <br /><br /> rn <br /> First of all, the bare equipment mimic the situation, modify the original LOG_ARCHIVE_DEST_1 configuration file for each instance of change in the local hard disk: <br /><br /> rn <br /> SQL&gt; ALTER SYSTEM SET LOG_ARCHIVE_DEST_1 = &#39;LOCATION = / data1/archivelog&#39; SID = &#39;testrac1&#39;; <br /><br /> rn <br /> System has been changed. <br /><br /> rn <br /> SQL&gt; ALTER SYSTEM SET LOG_ARCHIVE_DEST_1 = &#39;LOCATION = / data1/archivelog&#39; SID = &#39;testrac2&#39;; <br /><br /> rn <br /> System has been changed. <br /><br /> rn <br /> And then try to back up the database directly: <br /><br /> rn <br /> $ Rman target / <br /><br /> rn <br /> Recovery Manager: Release 10.2.0.3.0 - Production on Fri May 11 16:06:48 2007 <br /><br /> rn <br /> Copyright (c) 1982, 2005, Oracle. All rights reserved. <br /><br /> rn <br /> Connected to target database: TESTRAC (DBID = 4291216984) <br /><br /> rn <br /> RMAN&gt; run <br /> 2&gt; ( <br /> 3&gt; allocate channel c1 device type disk format &#39;/ data1/backup /% U&#39;; <br /> 4&gt; backup database plus archivelog delete all input; <br /> 5&gt;) <br /><br /> rn <br /> Using target database control file instead of recovery catalog allocated channel: c1 channel c1: sid = 301 instance = testrac1 devtype = DISK <br /><br /> rn <br /> Start the backup in the November-May -07 current log archived release channel: c1 <br /> MAN-00571: ============================================== ============= <br /> RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== <br /> RMAN-00571: ============================================== ============= <br /> RMAN-03002: backup plus archivelog command (on the 05/11/2007 16:08:09) failed <br /> RMAN-06059: expected archived log not found, the log file will affect the recoverability of the loss <br /> ORA-19625: Identification documents / data1/archivelog/2_89_618591128.dbf Error <br /> ORA-27037: unable to obtain file status <br /> SVR4 Error: 2: No such file or directory <br /> Additional information: 3 <br /><br /> rn <br /> RMAN&gt; <br /><br /> rn <br /> Since node 1 to node 2 can not access the archive, so there&#39;s an error above. In this case, you can use the CONNECT statement with the ALLOCATE to allocate CHANNEL: <br /><br /> rn <br /> RMAN&gt; run <br /> 2&gt; ( <br /> 3&gt; allocate channel c1 device type disk format &#39;/ data1/backup /% U&#39; connect sys / test @ testrac1; <br /> 4&gt; allocate channel c2 device type disk format &#39;/ data1/backup /% U&#39; connect sys / test @ testrac2; <br /> 5&gt; backup database plus archivelog delete all input; <br /> 6&gt;) <br /><br /> rn <br /> Using target database control file instead of recovery catalog allocated channel: c1 channel c1: sid = 288 instance = testrac1 devtype = DISK <br /><br /> rn <br /> Distribution channel: c2 channel c2: sid = 307 instance = testrac2 devtype = DISK <br /><br /> rn<br /> Start the backup in the November-May -07 current log archived channel c1: Starting archive log backup set channel c1: backup set is being specified input archive log archive log thread = 1 sequence = 164 stamp = 622309643 input archive records log thread = 1 sequence = 165 records the time stamp = 622309764 input archive log thread = 1 sequence = 166 records the time stamp = 622310875 channel c1: Starting in paragraph 1 in the November-May -07 channel c2: Starting archive log backup set channel c2: is specified archive log backup set input archive log thread = 2 sequence = 89 stamp = 622309924 input archive records log thread = 2 sequence = 90 stamp = 622310884 input archive records log thread = 2 sequence = 91 stamp = 622312599 channel recording c2: Starting in paragraph 1 in the November-May -07 channel c1: paragraph 1 has been completed paragraph in the November-May -07 handle = / data1/backup/26ihff55_1_1 tag = TAG20070511T163652 comment = NONE channel c1: backup set has been completed through time: 00:00:56 channel c1: Deleting archive log archive log filename = / data1/archivelog/1_164_618591128.dbf record time stamp = 622309643 archive log filename = / data1/archivelog/1_165_618591128.dbf record time stamp = 622309764 archive log filename = / data1/archivelog/1_166_618591128.dbf record time stamp = 622310875 channel c2: paragraph 1 has been completed paragraph in the November-May -07 handle = / data1/backup/27ihff51_1_1 tag = TAG20070511T163652 comment = NONE channel c2: backup set has been completed, elapsed time: 00:00:58 channel c2: Deleting archive log archive log filename = / data1/archivelog/2_89_618591128.dbf record time stamp = 622309924 archive log filename = / data1/archivelog / 2_90_618591128.dbf record time stamp = 622310884 archive log filename = / data1/archivelog/2_91_618591128.dbf record time stamp = 622312599 channel c1: Starting archive log backup set channel c1: is specified archive log backup set input archive log thread = 1 sequence = 167 records the time stamp = 622312603 channel c1: Starting in paragraph 1 in the November-May -07 channel c1: paragraph 1 has been completed paragraph in the November-May -07 handle = / data1/backup/28ihff6v_1_1 tag = TAG20070511T163652 comment = NONE channel c1: backup set has been completed, elapsed time: 00:00:01 channel c1: Deleting archive log archive log filename = / data1/archivelog/1_167_618591128.dbf record timestamp = 622 312 603 complete backup in the 11 - May -07 <br /><br /> rn <br /> Start the backup in the November-May -07 channel c1: backup set data file start the All Channel c1: backup set is the data file specified input data file fno = 00006 name = + DISK/testrac/datafile/zhejiang01.dbf input data file fno = 00009 name = + DISK/testrac/datafile/zhejiang03.dbf input data file fno = 00012 name = + DISK/testrac/datafile/zhejiang05.dbf input data file fno = 00008 name = + DISK/testrac/datafile/ndmain01.dbf input data file fno = 00010 name = + DISK/testrac/datafile/ndindex01.dbf input the data file fno = 00001 name = + DISK/testrac/datafile/system.262.618591167 enter the data file fno = 00005 name = + DISK / testrac / datafile / users.267.618591279 channel c1: Starting in paragraph 1 in the November-May -07 channel c2: backup set data file start the All channel c2: backup set is being specified input data file data file fno = 00007 name = + DISK / testrac / datafile/zhejiang02.dbf input data file fno = 00011 name = + DISK/testrac/datafile/zhejiang04.dbf input data file fno = 00014 name = + DISK/testrac/datafile/zhejiang06.dbf input data file fno = 00002 name = + DISK/testrac/datafile/undotbs1.263.618591197 input data file fno = 00004 name = + DISK/testrac/datafile/undotbs2.266.618591249 input data file fno = 00013 name = + DISK/testrac/datafile/lt_index_ts01.dbf input data file fno = 00003 name = + DISK/testrac/datafile/sysaux.264.618591225 channel c2: Starting in paragraph 1 in the November-May -07 channel c2: paragraph 1 has been completed paragraph in the November-May -07 handle = / data1/backup / 2aihff6v_1_1 tag = TAG20070511T163754 comment = NONE channel c2: backup set has been completed, elapsed time: 00:13:16 channel c2: backup set data file start the All channel c2: backup set is being specified data file backup set including current control file channel c2 : Starting in paragraph 1 in the November-May -07 channel c2: paragraph 1 has been completed paragraph in the November-May -07 handle = / data1/backup/2bihffvr_1_1 tag = TAG20070511T163754 comment = NONE channel c2: backup set has been completed, elapsed time: 00:00:03 channel c2: backup set data file start the All channel c2: backup set is being specified data file in the backup set that contains the current SPFILE channel c2: Starting in paragraph 1 in the November-May -07 channel c2 : paragraph 1 has been completed in November-May -07 segment handle = / data1/backup/2cihffvv_1_1 tag = TAG20070511T163754 comment = NONE channel c2: backup set has been completed, elapsed time: 00:00:02 channel c1: Completed section paragraph 1 in November-May -07 handle = / data1/backup/29ihff73_1_1 tag = TAG20070511T163754 comment = NONE channel c1: backup set has been completed, elapsed time: 00:15:07 to complete backup in November-May -07 <br /><br /> rn<br /> Start the backup in the November-May -07 current log archived channel c1: Starting archive log backup set channel c1: backup set is being specified input archive log archive log thread = 1 sequence = 168 stamp = 622313584 channel recording c1: is Start segment 1 in November-May -07 channel c2: Starting archive log backup set channel c2: is specified archive log backup set input archive log thread = 2 sequence = 92 stamp = 622313580 channel recording c2: Starting in paragraph 1 in November to May -07 channel c1: paragraph 1 has been completed paragraph in the November-May -07 handle = / data1/backup/2dihfg3m_1_1 tag = TAG20070511T165309 comment = NONE channel c1: backup set has been completed, elapsed time: 00: 00:01 channel c1: Deleting archive log archive log filename = / data1/archivelog/1_168_618591128.dbf record time stamp = 622313584 channel c2: paragraph 1 has been completed paragraph in the November-May -07 handle = / data1/backup / 2eihfg3h_1_1 tag = TAG20070511T165309 comment = NONE channel c2: backup set has been completed, elapsed time: 00:00:02 channel c2: Deleting archive log archive log filename = / data1/archivelog/2_92_618591128.dbf complete record time stamp = 622313580 released in November to May -07 backup channel: c1 channel release: c2 <br /><br /> rn <br /> RMAN&gt; <br /><br /> rn <br /> After using this method can successfully backup.				<h5>Related Posts</h5>
		<div id="smilar">
		<ul>
					<li><a href="http://www.kods.net/sga-extended-the-principle-of-32bit-oracle/" title="SGA extended the principle of 32bit oracle">SGA extended the principle of 32bit oracle</a> 2009-03-31 09:48:01</li>
					<li><a href="http://www.kods.net/an-example-of-the-use-of-tkprof/" title="An example of the use of TKPROF">An example of the use of TKPROF</a> 2009-02-26 01:38:19</li>
					<li><a href="http://www.kods.net/diagnosis-and-principles-of-order/" title="Diagnosis and principles of order">Diagnosis and principles of order</a> 2009-02-25 20:27:28</li>
					<li><a href="http://www.kods.net/oracle-10g-dataguard-configuration-step-by-step/" title="ORACLE 10G dataguard configuration Step by Step">ORACLE 10G dataguard configuration Step by Step</a> 2009-02-16 01:13:55</li>
				</ul>
		</div>
		        ]]></content:encoded>
		<wfw:commentRss>http://www.kods.net/rac-environment-the-database-backup-2/</wfw:commentRss>
	</item>
		<item>
		<title>Manually DB Creation with 11G</title>
		<link>http://www.kods.net/manually-db-creation-with-11g/</link>
		<comments>http://www.kods.net/manually-db-creation-with-11g/#comments</comments>
		<pubDate>Thu, 17 Jul 2008 11:01:29+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[oracle home]]></category>
<category><![CDATA[database creation]]></category>
<category><![CDATA[authentication method]]></category>
<category><![CDATA[os user]]></category>
<category><![CDATA[database 2]]></category>
<category><![CDATA[authentication services]]></category>
<category><![CDATA[archivelog]]></category>
<category><![CDATA[trace files]]></category>
<category><![CDATA[automatic storage]]></category>
<category><![CDATA[volume manager]]></category>
<category><![CDATA[sqlnet]]></category>
<category><![CDATA[professional dba]]></category>
<category><![CDATA[new sid]]></category>
<category><![CDATA[password authentication]]></category>
<category><![CDATA[oradim]]></category>
<category><![CDATA[file db]]></category>
<category><![CDATA[omf]]></category>
<category><![CDATA[open notepad]]></category>
<category><![CDATA[notepad file]]></category>
<category><![CDATA[storage mgmt]]></category>
		<guid isPermaLink="true">http://www.kods.net/manually-db-creation-with-11g/</guid>
		<description><![CDATA[Manually database creation is one of the more frequently performed actions of a professional DBA. And, with Oracle 11g it only takes a few minutes to do:) The procedure is same as previous which we are used for 9i and 10g. In this database creation I ...]]></description>
		<content:encoded><![CDATA[Manually database creation is one of the more frequently performed actions of a professional DBA. And, with Oracle 11g it only takes a few minutes to do:) <br /><br /> The procedure is same as previous which we are used for 9i and 10g. <br /><br /> In this database creation I used below features: <br /><br /> 1. OMF (Oracle Managed File) for datafiles, redolog files &amp; controlfiles <br /> 2. FRA (Flash Recovery Area) for Archivelog or backup files <br /> 3. ASM (Automatic Storage Mgmt) for Volume manager <br /><br /> 1. Create Required Directories <br /><br /> <pre>
E:\&gt;mkdir e:\oracle\ORA11G
</pre> <br /> NOTE: above directory is for TRACE FOLDER. <br /><br /> And for ASM I already created DGRP2 group for database. <br /><br /> 2. Set Enviourment Variable (ORACLE_HOME, ORACLE_SID, PATH) <br /><br /> <pre>
E:\&gt;set ORACLE_HOME=c:\app\m.taj\product\11.1.0\db_1
E:\&gt;set PATH=c:\app\m.taj\product\11.1.0\db_1\bin
E:\&gt;set ORACLE_SID=ora11g
</pre> <br /> 3. Choose a Database Administrator Authentication Method <br /><br /> Two authentication method we can use. <br /> 1. Password Authentication method <br /> For Password Authentication method we need to create PASSWORD file through ORAPWD utility. <br /><br /> 2. OS Authentication method <br /> For OS Authentication method OS user must be member of OS DBA Group. <br /> And SQLNET.AUTHENTICATION_SERVICES = (NTS) is set in SQLNET.ORA file <br /><br /> NOTE: Here I used OS authentication Method. <br /><br /> 3. Creating INIT.ORA parameter file <br /> Set minimum required parameter in INIT.ora file. <br /><br /> Open NOTEPAD file and set below parameters <br /><br /> <pre>
db_name = 'ORA11G'
#Database name.

db_create_file_dest='+DGRP2'
#OMF configuration for Datafile,controlfile
db_create_online_log_dest_1='+DGRP2'
#OMF configuration for redolog file 

db_recovery_file_dest='+DGRP2'
db_recovery_file_dest_size=10G
#FRA (FLASH RECOVERY AREA configuration)

diagnostic_dest='E:\ORACLE\ORA11G'
#It is new feature with 11g for trace files (bdump,udump,cdump or many others
#folder created in "DIAG" folder inside "e:\oracle\ora11g" folder.
</pre> <br /> Save it in Temporary folder. <br /> 4. Create an Instance <br /><br /> <pre>
E:\&gt;oradim -NEW -SID ora11g -STARTMODE auto
Instance created.
</pre> <br /> 5. Connect to an Instance <br /><br /> <pre>
E:\&gt;sqlplus /nolog
SQL*Plus: Release 11.1.0.6.0 - Production on Thu May 1 18:04:30 2008
Copyright (c) 1982, 2007, Oracle. All rights reserved.

SQL&gt; conn / as sysdba
Connected to an idle instance.
</pre> <br /> 6. Create Server Parameter file (SPFILE) <br /><br /> <pre>
SQL&gt; create SPFILE from PFILE='c:\temp\init.TXT';
File created.
</pre> <br /> 7. Start the Instance <br /><br /> <pre>
SQL&gt; startup nomount

ORACLE instance started.
Total System Global Area 150667264 bytes
Fixed Size 1331740 bytes
Variable Size 92278244 bytes
Database Buffers 50331648 bytes
Redo Buffers 6725632 bytes
</pre> <br /> 8. Create Database <br /><br /> <pre>
SQL&gt; create database ORA11G;
Database created.
</pre> <br /> 9. Create Temporary and Additional Tablespace <br /><br /> <pre>
SQL&gt; create temporary tablespace TEMP TEMPFILE '+DGRP2' size 5m;
Tablespace created.
SQL&gt; create tablespace USERDATA DATAFILE '+DGRP2' size 5m;
Tablespace created.
SQL&gt; alter database default temporary tablespace TEMP;
Database altered.
SQL&gt; alter database default tablespace USERDATA;
Database altered.
</pre> <br /> 10. Run Scripts to build data dictionary views <br /><br /> <pre>
SQL&gt; @%ORACLE_HOME%/rdbms/admin/catalog.sql
SQL&gt; @%ORACLE_HOME%/rdbms/admin/catproc.sql
SQL&gt; @%ORACLE_HOME%/sqlplus/admin/pupbld.sql
</pre> <br /> 11. Change Database Mode from NO-ARCHIVELOG to ARCHIVELOG. <br /><br /> <pre>
SQL&gt; shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.

SQL&gt; startup mount
ORACLE instance started.
Total System Global Area 150667264 bytes
Fixed Size 1331740 bytes
Variable Size 92278244 bytes
Database Buffers 50331648 bytes
Redo Buffers 6725632 bytes
Database mounted.
SQL&gt; alter database ARCHIVELOG;
Database altered.
SQL&gt; alter database OPEN;
Database altered.
</pre> <br /> NOTE: It is recommended to run database in ARCHIVELOG MODE <br /><br /> 12. Check all database files how is look in ASM:) <br /><br /> <pre>
SQL&gt; select NAME from v$datafile 
2 union all 
3 select NAME from v$controlfile 
4 union all 
5 select MEMBER from v$logfile;
NAME
--------------------------------------------------
+DGRP2/ora11g/datafile/system.281.653595347
+DGRP2/ora11g/datafile/sysaux.280.653595371
+DGRP2/ora11g/datafile/sys_undots.279.653595393
+DGRP2/ora11g/datafile/userdata.273.653595537
+DGRP2/ora11g/controlfile/current.285.653595303
+DGRP2/ora11g/onlinelog/group_1.283.653595305
+DGRP2/ora11g/onlinelog/group_2.282.653595325
7 rows selected.
</pre>				<h5>Related Posts</h5>
		<div id="smilar">
		<ul>
					<li><a href="http://www.kods.net/oracle10g-full-version-centos5-installed-the-installation-has-passed/" title="ORACLE10G full version centos5 installed (the installation has passed)">ORACLE10G full version centos5 installed (the installation has passed)</a> 2009-03-31 09:49:10</li>
					<li><a href="http://www.kods.net/sga-extended-the-principle-of-32bit-oracle/" title="SGA extended the principle of 32bit oracle">SGA extended the principle of 32bit oracle</a> 2009-03-31 09:48:01</li>
					<li><a href="http://www.kods.net/rman-created-physical-standby/" title="RMAN created physical standby">RMAN created physical standby</a> 2009-03-30 22:49:29</li>
					<li><a href="http://www.kods.net/oracle-10-client-under-linux-installation-instructions-at/" title="Oracle 10 client under linux installation instructions at">Oracle 10 client under linux installation instructions at</a> 2009-03-14 11:43:46</li>
					<li><a href="http://www.kods.net/ax3-0-oracle-10g-rac-installation/" title="AX3.0 + Oracle 10G RAC installation">AX3.0 + Oracle 10G RAC installation</a> 2009-03-12 19:19:31</li>
				</ul>
		</div>
		        ]]></content:encoded>
		<wfw:commentRss>http://www.kods.net/manually-db-creation-with-11g/</wfw:commentRss>
	</item>
		<item>
		<title>ORA-00265 archivelog can not set the error analysis</title>
		<link>http://www.kods.net/ora-00265-archivelog-can-not-set-the-error-analysis/</link>
		<comments>http://www.kods.net/ora-00265-archivelog-can-not-set-the-error-analysis/#comments</comments>
		<pubDate>Fri, 06 Jun 2008 07:43:01+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[oracle]]></category>
<category><![CDATA[open database]]></category>
<category><![CDATA[line 1]]></category>
<category><![CDATA[oracle instance]]></category>
<category><![CDATA[database database]]></category>
<category><![CDATA[global area]]></category>
<category><![CDATA[variable size]]></category>
<category><![CDATA[loading database]]></category>
<category><![CDATA[archivelog]]></category>
<category><![CDATA[mode command]]></category>
<category><![CDATA[command switch]]></category>
		<guid isPermaLink="true">http://www.kods.net/ora-00265-archivelog-can-not-set-the-error-analysis/</guid>
		<description><![CDATA[ORA-00265 archivelog can not set the error analysis 2007-09-25 12:31 Required routine recovery, can not set ARCHIVELOG mode! SQL&gt; alter database archivelog; alter database archivelog * ERROR at line 1: ORA-00265: requested routine recovery, can no ...]]></description>
		<content:encoded><![CDATA[ORA-00265 archivelog can not set the error analysis <br /><br /> 2007-09-25 12:31 <br /><table><tbody><tr><td><br /><br /> Required routine recovery, can not set ARCHIVELOG mode! <br /><br /> SQL&gt; alter database archivelog; <br /><br /> alter database archivelog <br /><br /> * <br /><br /> ERROR at line 1: <br /><br /> ORA-00265: requested routine recovery, can not set ARCHIVELOG mode <br /><br /> Solution: <br /><br /> SQL&gt; shutdown immediate <br /><br /> ORA-01109: database not open <br /><br /> Database has been uninstalled. <br /><br /> ORACLE routines have been shut down. <br /><br /> SQL&gt; startup restrict ---- Note that this step is necessary. <br /><br /> ORACLE instance started. <br /><br /> Total System Global Area 135338868 bytes <br /><br /> Fixed Size 453492 bytes <br /><br /> Variable Size 109051904 bytes <br /><br /> Database Buffers 25165824 bytes <br /><br /> Redo Buffers 667648 bytes <br /><br /> Completion of the loading database. <br /><br /> Database has been opened. <br /><br /> SQL&gt; shutdown <br /><br /> Database closed. <br /><br /> Database has been uninstalled. <br /><br /> ORACLE routines have been shut down. <br /><br /> SQL&gt; startup mount <br /><br /> ORACLE instance started. <br /><br /> Total System Global Area 135338868 bytes <br /><br /> Fixed Size 453492 bytes <br /><br /> Variable Size 109051904 bytes <br /><br /> Database Buffers 25165824 bytes <br /><br /> Redo Buffers 667648 bytes <br /><br /> Completion of the loading database. <br /><br /> SQL&gt; alter database archivelog; <br /><br /> Database changed <br /><br /> Switching archiving mode command <br /><br /> alter database noarchivelog; <br /><br /> alter database archivelog; <br /><br /> Automatic archiving mode command switch <br /><br /> alter system archive log stop; <br /><br /> alter system archive log start; <br /><br /></td></tr></tbody></table>				<h5>Related Posts</h5>
		<div id="smilar">
		<ul>
					<li><a href="http://www.kods.net/sga-extended-the-principle-of-32bit-oracle/" title="SGA extended the principle of 32bit oracle">SGA extended the principle of 32bit oracle</a> 2009-03-31 09:48:01</li>
					<li><a href="http://www.kods.net/high-availability-oracle-flashback/" title="High Availability Oracle Flashback">High Availability Oracle Flashback</a> 2009-02-26 17:23:02</li>
					<li><a href="http://www.kods.net/an-example-of-the-use-of-tkprof/" title="An example of the use of TKPROF">An example of the use of TKPROF</a> 2009-02-26 01:38:19</li>
					<li><a href="http://www.kods.net/diagnosis-and-principles-of-order/" title="Diagnosis and principles of order">Diagnosis and principles of order</a> 2009-02-25 20:27:28</li>
					<li><a href="http://www.kods.net/oracle-10g-dataguard-configuration-step-by-step/" title="ORACLE 10G dataguard configuration Step by Step">ORACLE 10G dataguard configuration Step by Step</a> 2009-02-16 01:13:55</li>
				</ul>
		</div>
		        ]]></content:encoded>
		<wfw:commentRss>http://www.kods.net/ora-00265-archivelog-can-not-set-the-error-analysis/</wfw:commentRss>
	</item>
		<item>
		<title>Archive mode changes. Query</title>
		<link>http://www.kods.net/archive-mode-changes-query/</link>
		<comments>http://www.kods.net/archive-mode-changes-query/#comments</comments>
		<pubDate>Sat, 20 May 2006 11:56:21+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[oracle]]></category>
<category><![CDATA[oracle database]]></category>
<category><![CDATA[log archive]]></category>
<category><![CDATA[database archiving]]></category>
<category><![CDATA[true scope]]></category>
<category><![CDATA[archivelog]]></category>
<category><![CDATA[mode changes]]></category>
<category><![CDATA[modes]]></category>
<category><![CDATA[information archive]]></category>
		<guid isPermaLink="true">http://www.kods.net/archive-mode-changes-query/</guid>
		<description><![CDATA[Change oracle database archiving modes: rn 1.shutdown immediate 2.startup mount 3.alter database archivelog 4.alter database open rn Replaced by automatic archiving: rn alter system set log_archive_start = true scope = spfile; rn Search archived info ...]]></description>
		<content:encoded><![CDATA[Change oracle database archiving modes: <br /> rn <br /> 1.shutdown immediate <br /> 2.startup mount <br /> 3.alter database archivelog <br /> 4.alter database open <br /> rn <br /> Replaced by automatic archiving: <br /> rn <br /> alter system set log_archive_start = true scope = spfile; <br /> rn <br /> Search archived information: archive log list <br /><br /> rn <br /><br /> rn				<h5>Related Posts</h5>
		<div id="smilar">
		<ul>
					<li><a href="http://www.kods.net/sga-extended-the-principle-of-32bit-oracle/" title="SGA extended the principle of 32bit oracle">SGA extended the principle of 32bit oracle</a> 2009-03-31 09:48:01</li>
					<li><a href="http://www.kods.net/an-example-of-the-use-of-tkprof/" title="An example of the use of TKPROF">An example of the use of TKPROF</a> 2009-02-26 01:38:19</li>
					<li><a href="http://www.kods.net/diagnosis-and-principles-of-order/" title="Diagnosis and principles of order">Diagnosis and principles of order</a> 2009-02-25 20:27:28</li>
					<li><a href="http://www.kods.net/oracle-10g-dataguard-configuration-step-by-step/" title="ORACLE 10G dataguard configuration Step by Step">ORACLE 10G dataguard configuration Step by Step</a> 2009-02-16 01:13:55</li>
				</ul>
		</div>
		        ]]></content:encoded>
		<wfw:commentRss>http://www.kods.net/archive-mode-changes-query/</wfw:commentRss>
	</item>
		<item>
		<title>RAC database archiving mode change</title>
		<link>http://www.kods.net/rac-database-archiving-mode-change/</link>
		<comments>http://www.kods.net/rac-database-archiving-mode-change/#comments</comments>
		<pubDate>Fri, 21 Apr 2006 16:23:58+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[log archive]]></category>
<category><![CDATA[thread number]]></category>
<category><![CDATA[instances]]></category>
<category><![CDATA[scope]]></category>
<category><![CDATA[database archiving]]></category>
<category><![CDATA[cluster database]]></category>
<category><![CDATA[archivelog]]></category>
<category><![CDATA[dest]]></category>
<category><![CDATA[archive format]]></category>
<category><![CDATA[database change]]></category>
<category><![CDATA[format parameters]]></category>
<category><![CDATA[verification status]]></category>
<category><![CDATA[mode 9]]></category>
<category><![CDATA[mode change]]></category>
		<guid isPermaLink="true">http://www.kods.net/rac-database-archiving-mode-change/</guid>
		<description><![CDATA[1 Use alter system set CLUSTER_DATABASE = FALSE SCOPE = SPFILE will cluster_database initialization parameter is set to false 2 If it is converted by non-archive mode archive mode, need to pay attention LOG_ARCHIVE_DEST_n, LOG_ARCHIVE_FORMAT paramete ...]]></description>
		<content:encoded><![CDATA[1 Use alter system set CLUSTER_DATABASE = FALSE SCOPE = SPFILE will cluster_database initialization parameter is set to false <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /?><br /><br /> 2 If it is converted by non-archive mode archive mode, need to pay attention LOG_ARCHIVE_DEST_n, LOG_ARCHIVE_FORMAT parameters set up correctly, LOG_ARCHIVE_START is set to true. LOG_ARCHIVE_FORMAT should be included in% t parameter to verify that the generated archive file contains archived log thread number. <br /><br /> 3 Close all instances, <br /><br /> 4 start to mount an instance of the state <br /><br /> 5 change the archive mode for archivelog or noarchivelog Mode <br /><br /> SQL&gt; ALTER DATABASE ARCHIVELOG <br /><br /> Either <br /><br /> SQL&gt; ALTER DATABASE NOARCHIVELOG <br /><br /> 6 will be CLUSTER_DATABASE change the true <br /><br /> 7 Close all instances of <br /><br /> 8 to start all instances, then the database is in archive mode and non-archive mode. <br /><br /> 9 using the archive log list archive verification status, to confirm the change successfully				<h5>Related Posts</h5>
		<div id="smilar">
		<ul>
					<li><a href="http://www.kods.net/release-undo-tablespace-space/" title="Release undo tablespace space">Release undo tablespace space</a> 2009-04-08 17:50:03</li>
					<li><a href="http://www.kods.net/oracle-s-db-name-and-instance-name/" title="Oracle's db_name and instance_name">Oracle's db_name and instance_name</a> 2009-04-08 17:29:21</li>
					<li><a href="http://www.kods.net/setting-to-discuss-filing-oracle10g/" title="setting to discuss filing oracle10g">setting to discuss filing oracle10g</a> 2009-04-02 05:19:08</li>
					<li><a href="http://www.kods.net/oracle-deadlock-related/" title="Oracle deadlock related">Oracle deadlock related</a> 2009-03-30 16:46:54</li>
					<li><a href="http://www.kods.net/troubleshooting-the-physical-set-up-the-backup-database/" title="Troubleshooting: the physical set up the backup database">Troubleshooting: the physical set up the backup database</a> 2009-03-13 00:53:17</li>
				</ul>
		</div>
		        ]]></content:encoded>
		<wfw:commentRss>http://www.kods.net/rac-database-archiving-mode-change/</wfw:commentRss>
	</item>
		<item>
		<title>RAC environment, modify the way oracle archive</title>
		<link>http://www.kods.net/rac-environment-modify-the-way-oracle-archive/</link>
		<comments>http://www.kods.net/rac-environment-modify-the-way-oracle-archive/#comments</comments>
		<pubDate>Mon, 13 Mar 2006 16:31:10+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[oracle]]></category>
<category><![CDATA[log archive]]></category>
<category><![CDATA[true scope]]></category>
<category><![CDATA[cluster database]]></category>
<category><![CDATA[archivelog]]></category>
<category><![CDATA[rac]]></category>
<category><![CDATA[oracle archive]]></category>
<category><![CDATA[archive library]]></category>
		<guid isPermaLink="true">http://www.kods.net/rac-environment-modify-the-way-oracle-archive/</guid>
		<description><![CDATA[RAC environment, modify the way the backup process archive 1. Backup init file. &gt; Create pfile = &#39;/ oracle/init0728.ora&#39; from spfile 2. Modify the archive mode, the location of log files are stored: &gt; Alter system set log_archive_dest_1 ...]]></description>
		<content:encoded><![CDATA[RAC environment, modify the way the backup process archive <br /><br /> 1. Backup init file. <br /> &gt; Create pfile = &#39;/ oracle/init0728.ora&#39; from spfile <br /> 2. Modify the archive mode, the location of log files are stored: <br /> &gt; Alter system set log_archive_dest_1 = &#39;LOCATION = / oracle / archive&#39; scope = spfile; <br /> &gt; Alter system log_archive_start = true scope = spfile; <br /> &gt; alter system log_archive_max_processes = 2 scope = spfile; <br /> &gt; alter system set cluster_datbase = false scope = spfile; <br /> 3. Restart the database to open archive library <br /> &gt; shutdown immediate; <br /> &gt; startup mount;&gt; alter database archivelog; <br /> &gt; alter database open; <br /> &gt; archive log list; <br /> &gt; Alter system set cluster_database = true scope = spfile; <br /> 4. Restart the database <br /> &gt; shutdown immediate; <br /> &gt; startup; <br /> &gt; archive log list look at the archive situation. <br /> &gt; alter system switch logfile; manually cut once archive				<h5>Related Posts</h5>
		<div id="smilar">
		<ul>
					<li><a href="http://www.kods.net/sga-extended-the-principle-of-32bit-oracle/" title="SGA extended the principle of 32bit oracle">SGA extended the principle of 32bit oracle</a> 2009-03-31 09:48:01</li>
					<li><a href="http://www.kods.net/high-availability-oracle-flashback/" title="High Availability Oracle Flashback">High Availability Oracle Flashback</a> 2009-02-26 17:23:02</li>
					<li><a href="http://www.kods.net/an-example-of-the-use-of-tkprof/" title="An example of the use of TKPROF">An example of the use of TKPROF</a> 2009-02-26 01:38:19</li>
					<li><a href="http://www.kods.net/diagnosis-and-principles-of-order/" title="Diagnosis and principles of order">Diagnosis and principles of order</a> 2009-02-25 20:27:28</li>
					<li><a href="http://www.kods.net/oracle-10g-dataguard-configuration-step-by-step/" title="ORACLE 10G dataguard configuration Step by Step">ORACLE 10G dataguard configuration Step by Step</a> 2009-02-16 01:13:55</li>
				</ul>
		</div>
		        ]]></content:encoded>
		<wfw:commentRss>http://www.kods.net/rac-environment-modify-the-way-oracle-archive/</wfw:commentRss>
	</item>
		<item>
		<title>Oracle's archivelog question</title>
		<link>http://www.kods.net/oracle-s-archivelog-question/</link>
		<comments>http://www.kods.net/oracle-s-archivelog-question/#comments</comments>
		<pubDate>Wed, 01 Mar 2006 13:14:17+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[oracle]]></category>
<category><![CDATA[oracle home]]></category>
<category><![CDATA[log archive]]></category>
<category><![CDATA[disk space]]></category>
<category><![CDATA[database log]]></category>
<category><![CDATA[open sql]]></category>
<category><![CDATA[few days]]></category>
<category><![CDATA[log sequence]]></category>
<category><![CDATA[archivelog]]></category>
<category><![CDATA[period of time]]></category>
<category><![CDATA[oracle archive]]></category>
<category><![CDATA[archive directory]]></category>
<category><![CDATA[automatic archive]]></category>
<category><![CDATA[directory space]]></category>
<category><![CDATA[40g]]></category>
<category><![CDATA[6g]]></category>
<category><![CDATA[free resources]]></category>
		<guid isPermaLink="true">http://www.kods.net/oracle-s-archivelog-question/</guid>
		<description><![CDATA[A few days ago found that one of the DB to use Oracle9i period of time, disk space is now being depleted, 6G of free resources, just two days exhausted, and began to drive has always been thought too small, this morning in the other Two DB on an inve ...]]></description>
		<content:encoded><![CDATA[A few days ago found that one of the DB to use Oracle9i period of time, disk space is now being depleted, 6G of free resources, just two days exhausted, and began to drive has always been thought too small, this morning in the other Two DB on an investigation had discovered each DB has been consume at least 40G of space over the long run, before long, this two are not working. <br /><br /> Use du-sh * search a bit directory space, was originally in the archive directory, checking a bit of information, the original is the archive log function, I do not need this feature that sets DB, so it can be removed, but how to stop &quot;archive model &quot;it, to the net after searching through all the information has not only tells how to&quot; non-archive log mode &quot;to&quot; archive mode &quot;, by: <br /><br /> SQL&gt; shutdown; <br /> SQL&gt; startup mount; <br /> SQL&gt; alter database archivelog; <br /> SQL&gt; alter database open; <br /> SQL&gt; archive log list; <br /> Database log mode Archive Mode <br /> Automatic archival Enabled <br /> Archive destination / home / oracle / archive / webdb <br /> Oldest online log sequence 193 <br /> Next log sequence to archive 195 <br /> Current log sequence 195 <br /><br /> Since we have changed the non-archive mode, is not put into archivelog else does, to try several terms, was originally noarchivelog, finished after which they changed the automatic archive mode disable, methods are: <br /><br /> SQL&gt; alter system archive log stop; <br /><br /> But also changed a bit $ ORACLE_HOME / dbs / initv $ instance.ora, the log_archive_start = true into a no, this is like the next, and finally check bar. <br /><br /> SQL&gt; archive log list; <br /> Database log mode No Archive Mode <br /> Automatic archival Disabled <br /> Archive destination / home / oracle / archive / webdb <br /> Oldest online log sequence 193 <br /> Current log sequence 195				<h5>Related Posts</h5>
		<div id="smilar">
		<ul>
					<li><a href="http://www.kods.net/sga-extended-the-principle-of-32bit-oracle/" title="SGA extended the principle of 32bit oracle">SGA extended the principle of 32bit oracle</a> 2009-03-31 09:48:01</li>
					<li><a href="http://www.kods.net/an-example-of-the-use-of-tkprof/" title="An example of the use of TKPROF">An example of the use of TKPROF</a> 2009-02-26 01:38:19</li>
					<li><a href="http://www.kods.net/diagnosis-and-principles-of-order/" title="Diagnosis and principles of order">Diagnosis and principles of order</a> 2009-02-25 20:27:28</li>
					<li><a href="http://www.kods.net/oracle-10g-dataguard-configuration-step-by-step/" title="ORACLE 10G dataguard configuration Step by Step">ORACLE 10G dataguard configuration Step by Step</a> 2009-02-16 01:13:55</li>
				</ul>
		</div>
		        ]]></content:encoded>
		<wfw:commentRss>http://www.kods.net/oracle-s-archivelog-question/</wfw:commentRss>
	</item>
		<item>
		<title>Oracle 8.1.6 in a resume!</title>
		<link>http://www.kods.net/oracle-8-1-6-in-a-resume/</link>
		<comments>http://www.kods.net/oracle-8-1-6-in-a-resume/#comments</comments>
		<pubDate>Wed, 12 Oct 2005 20:00:20+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[oracle]]></category>
<category><![CDATA[seq]]></category>
<category><![CDATA[oracle 8]]></category>
<category><![CDATA[open error]]></category>
<category><![CDATA[media recovery]]></category>
<category><![CDATA[archivelog]]></category>
<category><![CDATA[august 15]]></category>
<category><![CDATA[customer environment]]></category>
<category><![CDATA[cell phone]]></category>
<category><![CDATA[resume]]></category>
		<guid isPermaLink="true">http://www.kods.net/oracle-8-1-6-in-a-resume/</guid>
		<description><![CDATA[August 15, 2006 received a customer&#39;s cell phone the afternoon, saying that a data file to a 4GB in the resize the data after the file is not available! Reported that the Executive recover datafile failed ora-283&#39;s fault! We need to immediate ...]]></description>
		<content:encoded><![CDATA[August 15, 2006 received a customer&#39;s cell phone the afternoon, saying that a data file to a 4GB in the resize the data after the file is not available! Reported that the Executive recover datafile failed ora-283&#39;s fault! We need to immediately to the scene to help restore! In fact, this customer a year ago we talked about the root Oracle to maintain / upgrade the case, dragged on for nearly half of the then quit altogether! <br /> rn <br /><br /> rn <br /> To see how the customer environment as: oracle8.1.6.0.0, windows2000 <br /> rn <br /> View alert log records are as follows: <br /> rn <br /><br /> rn <br /> Media Recovery Datafile: &#39;F: \ oradata \ WIPMLCC \ MLCC02.DBF&#39; <br /> Media Recovery Start <br /> Media Recovery Log <br /> Recovery of Online Redo Log: Thread 1 Group 2 Seq 3128 Reading mem 0 <br /> Mem # 0 errs 0: F: \ ORADATA \ WIPMLCC \ REDO02.LOG <br /> Tue Aug 15 17:04:47 2006 <br /> KCF: write / open error block = 0x38683 online = 0 <br /> file = 11 F: \ ORADATA \ WIPMLCC \ MLCC02.DBF <br /> error = 27069 txt: &#39;OSD-04026: ???????. (OS 231043)&#39; <br /> KCF: write / open error block = 0x37f3a online = 0 <br /> file = 11 F: \ ORADATA \ WIPMLCC \ MLCC02.DBF <br /> error = 27069 txt: &#39;OSD-04026: ???????. (OS 229178)&#39; <br /> KCF: write / open error block = 0x387e6 online = 0 <br /> file = 11 F: \ ORADATA \ WIPMLCC \ MLCC02.DBF <br /> error = 27069 txt: &#39;OSD-04026: ???????. (OS 231398)&#39; <br /> KCF: write / open error block = 0x385db online = 0 <br /> rn <br /> .................................................. ....... <br /> rn <br /> .................................................. ....... <br /> rn <br /><br /> rn <br /> KCF: write / open error block = 0x3824d online = 0 <br /> file = 11 F: \ ORADATA \ WIPMLCC \ MLCC02.DBF <br /> error = 27069 txt: &#39;OSD-04026: ???????. (OS 229965)&#39; <br /> Tue Aug 15 17:04:53 2006 <br /> Media Recovery failed with error 1579 <br /> ORA-283 signalled during: ALTER DATABASE RECOVER <br /> rn <br /> datafile &#39;F: \ oradata \ ... <br /><br /> rn <br /> According to metalink interpretation of Oracle816 the bug! The only way is to restore a database to resize the moment before! But the client only in October 2005 in a cold backup! archivelog has in recent months back! No hot full backup, archivelog not have access to! Finally with the customer that can only lose the data files! <br /> rn <br /><br /> rn <br /> 8 / 16, again early in the morning customer calls to say that Taiwan&#39;s side of the person who asked the Oracle database can be upgraded to 8.1.6.3.8 may be able to recover datafile! <br /> rn <br /><br /> rn <br /> Also to the client site, started to metalink download Patch! Metalink download the patch rate remained very stable in the 14-15K / s! 65MB of Patch DownLoad more than an hour! <br /> rn <br /><br /> rn <br /> Creating a test to restore the environment, playing patch, first hit 8.1.6.3.0 patch through the universal install successfully the installation is complete, open db implementation catalog.sql catproc.sql two scripts! 8.1.6.3.8 of the Patch and then hit copy some files under the Readme file to the specified directory can be! <br /> rn <br /><br /> rn <br /> Re-open the db, recover datafile on their success! <br /> rn <br /><br /> rn <br /><br /> rn <br /><br /> rn <br /><br /> rn <br /><br /> rn				<h5>Related Posts</h5>
		<div id="smilar">
		<ul>
					<li><a href="http://www.kods.net/sga-extended-the-principle-of-32bit-oracle/" title="SGA extended the principle of 32bit oracle">SGA extended the principle of 32bit oracle</a> 2009-03-31 09:48:01</li>
					<li><a href="http://www.kods.net/high-availability-oracle-flashback/" title="High Availability Oracle Flashback">High Availability Oracle Flashback</a> 2009-02-26 17:23:02</li>
					<li><a href="http://www.kods.net/an-example-of-the-use-of-tkprof/" title="An example of the use of TKPROF">An example of the use of TKPROF</a> 2009-02-26 01:38:19</li>
					<li><a href="http://www.kods.net/diagnosis-and-principles-of-order/" title="Diagnosis and principles of order">Diagnosis and principles of order</a> 2009-02-25 20:27:28</li>
					<li><a href="http://www.kods.net/oracle-10g-dataguard-configuration-step-by-step/" title="ORACLE 10G dataguard configuration Step by Step">ORACLE 10G dataguard configuration Step by Step</a> 2009-02-16 01:13:55</li>
				</ul>
		</div>
		        ]]></content:encoded>
		<wfw:commentRss>http://www.kods.net/oracle-8-1-6-in-a-resume/</wfw:commentRss>
	</item>
		<item>
		<title>oracle database backup and restore a piece of cake (3)</title>
		<link>http://www.kods.net/oracle-database-backup-and-restore-a-piece-of-cake-3/</link>
		<comments>http://www.kods.net/oracle-database-backup-and-restore-a-piece-of-cake-3/#comments</comments>
		<pubDate>Tue, 26 Aug 2003 14:00:02+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle Database]]></category>
		<category><![CDATA[oracle home]]></category>
<category><![CDATA[oracle database]]></category>
<category><![CDATA[sid oracle]]></category>
<category><![CDATA[environment variables]]></category>
<category><![CDATA[oracle data]]></category>
<category><![CDATA[database backup]]></category>
<category><![CDATA[sql script]]></category>
<category><![CDATA[c oracle]]></category>
<category><![CDATA[database name]]></category>
<category><![CDATA[backup script]]></category>
<category><![CDATA[archivelog]]></category>
<category><![CDATA[query sql]]></category>
<category><![CDATA[backup sql]]></category>
<category><![CDATA[root path]]></category>
<category><![CDATA[textbook management]]></category>
<category><![CDATA[script batch]]></category>
<category><![CDATA[platform 1]]></category>
<category><![CDATA[backup windows]]></category>
<category><![CDATA[management directory]]></category>
<category><![CDATA[document archive]]></category>
		<guid isPermaLink="true">http://www.kods.net/oracle-database-backup-and-restore-a-piece-of-cake-3/</guid>
		<description><![CDATA[oracle database backup and restore a piece of cake (3) oracle database backup and restore a piece of cake (3) http://www.chinaunix.net Author: Ganku on :2003-08-26 10:49:53 oracle database online backup: (windows platform) 1. Check your database is r ...]]></description>
		<content:encoded><![CDATA[<strong>oracle database backup and restore a piece of cake (3)</strong> <table cellspacing="0" cellpadding="0" width="75%" border="0"><tbody><tr><td valign="middle" align="center" height="40"> <strong>oracle database backup and restore a piece of cake (3)</strong> </td></tr><tr><td align="center" height="20"> <small>http://www.chinaunix.net Author: Ganku on :2003-08-26 10:49:53</small> </td></tr><tr><td align="center"><table cellspacing="0" cellpadding="0" width="90%" align="center" border="0"><tbody><tr><td valign="top"><br /> oracle database online backup: (windows platform) <br /><br /> 1. Check your database is running in Archive mode. <br /> In order to connect to the database system to run the following query. <br /> SQL&gt; select name, log_mode from v $ database; <br /> NAME LOG_MODE <br /> --------- ------------ <br /> DEMO ARCHIVELOG <br /> If your log_mode displayed archivelog, OK you can make online backup of the database. Otherwise, modify the data refer to the document archive mode. <br /><br /> 2. The establishment of textbook management directory C: oracleadminadmin script <br /> 3. To establish a database backup script in the above directory set up to establish the following two scripts. <br /> 3.1 The establishment of the implementation of a backup task script (batch file) <br /> Content of the document is as follows: <br /><br /> @ echo OFF <br /> Rem ================================================= ========================== <br /> Rem NAME - Open_Backup_Run.bat <br /> Rem FUNCTION - Creates a backup script for a User Managed backup <br /> Rem NOTES - This script will create a script and run OS copy commands <br /> Rem on closed (cold) database <br /> Rem MODIFIED - Tianliang Guo 02/08/12 <br /> Rem ================================================= ========================== <br /><br /> Rem For Windows, set environment variables for the root path. <br /> set ORACLE_SID = TSTDB <br /> set ORACLE_CONNECTSTRING = tstdb <br /> set ORACLE_BASE = c: oracle <br /> set ORACLE_HOME =% ORACLE_BASE% ora81 <br /> set ORACLE_DATA =% ORACLE_BASE% oradata \% ORACLE_SID% <br /> set ORACLE_ADMIN =% ORACLE_BASE% admin \% ORACLE_SID% <br /><br /> % ORACLE_HOME% insqlplus / nolog@Open_Backup.sql&gt; Open_Backup.sql.log <br /><br /> 3.2 The establishment of the completion of the backup that the command file (sqlplus be implemented within the sql script) <br /> Content of the document is as follows: <br /><br /> Rem ================================================= ==================================== <br /> Rem NAME - Open_Backup.sql <br /> Rem FUNCTION - Creates a backup command file for a User Managed Open database backup <br /> Rem NOTES - This script will create a script and run OS copy commands <br /> Rem on an open (hot) database. The datafile backups will be inconsistent. <br /> Rem MODIFIED - Mr. Tianliang Guo 2002/08/11 <br /> Rem ================================================= ==================================== <br /><br /> Rem <br /> Rem Set SQL * Plus variables to manipulate output <br /> Rem <br /><br /> set heading off <br /> set pagesize 0 <br /> set linesize 600 <br /> set verify off <br /> set trimspool on <br /> set feedback off <br /><br /> Rem Set SQL * Plus user variables used in script <br /><br /> define adm = &#39;sys&#39; <br /> define pwd = &#39;oracle8i&#39; <br /><br /> Rem Windows User variables <br /> define dir = &#39;C: oracleadminTSTDBackup&#39; <br /> define fil = &#39;open_backup_commands.sql&#39; <br /> define spo = &#39;open_backup_output.lst&#39; <br /> define ctl = &#39;&amp; dircontrol.ctl&#39; <br /> define cpy = &#39;ocopy&#39; <br /><br /> Rem login database <br /> connect &amp; adm / &amp; pwd as sysdba; <br /><br /> Rem Create a file containing all the file copy commands needed for open user managed backup <br /><br /> set serveroutput on <br /> spool &amp; fil <br /> prompt spool &amp; spo <br /> prompt archive log list;; <br /> prompt alter system switch logfile;; <br /> prompt alter system archive log all;; <br /><br /> DECLARE <br /> CURSOR cur_tablespace IS <br /> SELECT tablespace_name <br /> FROM dba_tablespaces; <br /><br /> CURSOR cur_datafile (tn VARCHAR) IS <br /> SELECT file_name <br /> FROM dba_data_files <br /> WHERE tablespace_name = tn; <br /> BEGIN <br /> FOR ct IN cur_tablespace LOOP <br /> dbms_output.put_line ( &#39;alter tablespace&#39; | | ct.tablespace_name | | &#39;begin backup;&#39;); <br /> FOR cd IN cur_datafile (ct.tablespace_name) LOOP <br /> dbms_output.put_line ( &#39;host &amp; cpy&#39; | | cd.file_name | | &#39;&amp; dir&#39;); <br /> END LOOP; <br /> dbms_output.put_line ( &#39;alter tablespace&#39; | | ct.tablespace_name | | &#39;end backup;&#39;); <br /> END LOOP; <br /><br /> END; <br /> / <br /><br /> prompt alter system switch logfile;; <br /> prompt alter database backup controlfile to &#39;&amp; ctl&#39; REUSE;; <br /> prompt alter database backup controlfile to trace;; <br /><br /> prompt archive log list;; <br /> prompt spool off <br /> spool off; <br /><br /> Rem Run the copy file commands from the operating system <br /> @ &amp; <br /><br /> exit; <br /><br /> 4. Modify the textbook definition of a variable defined in the textbook is running a number of variables, to change it to a local database installation environment variables.<br /> Need to modify the variables, <br /> The close_Backup_run.bat script: <br /> set ORACLE_SID = TSTDB <br /> set ORACLE_CONNECTSTRING = tstdb <br /> set ORACLE_BASE = c: oracle <br /> set ORACLE_HOME =% ORACLE_BASE% ora81 <br /> The close_backup.sql script: <br /> define adm = &#39;sys&#39; <br /> define pwd = &#39;oracle8i&#39; <br /> define dir = &#39;C: oracleadminTSTDBackup&#39; <br /> define ctl = &#39;&amp; dircontrol.ctl&#39; <br /><br /> 5. The implementation of the database backup tasks to run in the $ ORACLE_BASEadminadmin_script directory open_Backup_run.bat <br /><br /> 6. Implementation of the automatic backup in the windows system, add a scheduled task on a regular basis to run open_Backup_run.bat <br /><br /> If you have questions can contact: <br /> Stations SMS: ganku <br /> mail: peter_guo@pub.szedi.com.cn <br /> guo_tianliang@yahoo.com <br /></td></tr></tbody></table></td></tr></tbody></table>				<h5>Related Posts</h5>
		<div id="smilar">
		<ul>
					<li><a href="http://www.kods.net/oracle10g-full-version-centos5-installed-the-installation-has-passed/" title="ORACLE10G full version centos5 installed (the installation has passed)">ORACLE10G full version centos5 installed (the installation has passed)</a> 2009-03-31 09:49:10</li>
					<li><a href="http://www.kods.net/sga-extended-the-principle-of-32bit-oracle/" title="SGA extended the principle of 32bit oracle">SGA extended the principle of 32bit oracle</a> 2009-03-31 09:48:01</li>
					<li><a href="http://www.kods.net/ax3-0-oracle-10g-rac-installation/" title="AX3.0 + Oracle 10G RAC installation">AX3.0 + Oracle 10G RAC installation</a> 2009-03-12 19:19:31</li>
					<li><a href="http://www.kods.net/an-example-of-the-use-of-tkprof/" title="An example of the use of TKPROF">An example of the use of TKPROF</a> 2009-02-26 01:38:19</li>
				</ul>
		</div>
		        ]]></content:encoded>
		<wfw:commentRss>http://www.kods.net/oracle-database-backup-and-restore-a-piece-of-cake-3/</wfw:commentRss>
	</item>
		<item>
		<title>[Database] Archivelog in Oracle 8i.9.01.9.2 environment setting method</title>
		<link>http://www.kods.net/database-archivelog-in-oracle-8i-9-01-9-2-environment-setting-method/</link>
		<comments>http://www.kods.net/database-archivelog-in-oracle-8i-9-01-9-2-environment-setting-method/#comments</comments>
		<pubDate>Mon, 16 Jun 2003 07:39:28+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[oracle]]></category>
<category><![CDATA[oracle home]]></category>
<category><![CDATA[sid]]></category>
<category><![CDATA[oracle 9i]]></category>
<category><![CDATA[open database]]></category>
<category><![CDATA[thread number]]></category>
<category><![CDATA[init]]></category>
<category><![CDATA[oracle sqlplus]]></category>
<category><![CDATA[arc]]></category>
<category><![CDATA[archivelog]]></category>
<category><![CDATA[pfile]]></category>
<category><![CDATA[oracle 9]]></category>
<category><![CDATA[svrmgrl]]></category>
<category><![CDATA[oracle 8i]]></category>
<category><![CDATA[archive format]]></category>
<category><![CDATA[oracle8i]]></category>
<category><![CDATA[dbs]]></category>
<category><![CDATA[first steps]]></category>
<category><![CDATA[format parameters]]></category>
<category><![CDATA[time settings]]></category>
		<guid isPermaLink="true">http://www.kods.net/database-archivelog-in-oracle-8i-9-01-9-2-environment-setting-method/</guid>
		<description><![CDATA[Archivelog in Oracle 8i, 9.01,9.2 environment setting method of Li Shouliang 2003-06-16 First, steps of 2, the log parameters and the meaning of the three, filing orders and the meaning of four specific examples To realize these steps: 1, Manager 1)  ...]]></description>
		<content:encoded><![CDATA[Archivelog in Oracle 8i, 9.01,9.2 environment setting method of Li Shouliang 2003-06-16 <br /><br /> First, steps of 2, the log parameters and the meaning of the three, filing orders and the meaning of four specific examples <br /><br /> To realize these steps: <br /> 1, Manager <br /> 1) When the environment is oracle 8i: <br /> # Su - oracle <br /> $ Svrmgrl <br /> SVRMGR&gt; connect internal <br /> SVRMGR&gt; shutdown immediate <br /> SVRMGR&gt; startup mount [dbname] <br /> SVRMGR&gt; alter database [dbname] archivelog; - only use archive mode <br /> SVRMGR&gt; archive log start - start the automatic archiving mode, restart the database, press the init.ora configuration <br /> SVRMGR&gt; alter database [dbname] open; - Open database <br /> SVRMGR&gt; exit <br /><br /> 2) oracle8i or oracle 9i environment when: <br /> # Su - oracle <br /> $ Sqlplus / nolog <br /> &gt; Connect / as sysdba <br /> &gt; Alter database [dbname] archivelog; - only use archive mode <br /> &gt; Archive log start - start the automatic archiving mode, restart the database, press the init.ora configuration <br /> &gt; Alter database [dbname] open; - Open database <br /> &gt; Exit <br /><br /> Note: Switch archiving and non-filing mode, mount the database did not open on time settings, once set archivelog property, and only at the next set alter database noarchivelog can change the properties of non-filing; and vice versa. <br /> The default file path is $ ORACLE_HOME / dbs / arch, if temporarily modify the file path, use the command: alter system archive log start to &#39;/ u02/archive&#39; <br /><br /> 2, modify the database initialization parameter file, define archive mode (auto), archive the log file path to archive log file naming method <br /><br /> 1) The environment for oracle 8i or oracle 9.01 pm: <br /> Modify the database parameter file $ ORACLE_HOME / admin / [oradb] / pfile / init [ORACLE_SID]. Ora, <br /> Cancel the following statement # comments <br /> log_archive_start = true <br /> log_archive_dest_1 = &quot;location = / u02/archive&quot; <br /> log_archive_format =%% ORACLE_SID%% T% TS% S. ARC <br /><br /> Note: format parameters <br /> % T: thread number, the left filled with 0, as arch0000000001 <br /> % T: thread number, do not fill 0, such as arch1 <br /> % S: log serial number on the left filled with 0, as arch0000000189 <br /> % S: log serial number, do not fill 0, such as arch189 <br /><br /> 2) the environment for oracle 9.2 when: <br /> Init.ora file archiving log parameter is not set, and in the $ ORACLE_HOME / dbs / spfile [ORACLE_SID]. Ora file settings, set the method is also different. <br /> To ensure that the changes to take effect, it is recommended to use sys as sysdba user login dbastudio, change the &quot;node&quot; -&gt; Example -&gt; Database -&gt; all the database parameters -&gt; spfile in the archive log parameters <br /><br /> 3, restart the database to restart the database, read init [oracle_sid]. Ora or spfile [oracle_sid]. Ora settings, archive log permanent. <br /><br /> Second, the meaning of the log parameters: <br /><br /> Archive mode is automatic or manual, true to automatically, false for manual <br /> log_archive_start = true <br /><br /> Archive log files are saved in the path <br /> log_archive_dest_1 = &quot;location = / u02/archive&quot; <br /><br /> Archive log file naming <br /> log_archive_format =%% ORACLE_SID%% T% TS% S. ARC <br /><br /> 3, archiving command: <br /> Start automatic archiving mode, the system restarted after the init.ora parameters in log_archive_start will set the value of archiving methods <br /> SVRMGR&gt; archive log start <br /><br /> Start manual archiving mode <br /> SVRMGR&gt; archive log stop <br /><br /> View archived information: whether the redo log archive mode is automatic or manual archiving archive, archive path, the oldest online log sequential number ... <br /> SVRMGR&gt; archive log list <br /><br /> Filed a full, but not archived online redo logs <br /> SVRMGR&gt; archive log next <br /><br /> Archiving of all full, but not archived online redo logs <br /> SVRMGR&gt; archive log all <br /><br /> SVRMGR&gt; alter system switch logfile; <br /> Mandatory system log switch can be immediately observed that the log file generation <br /><br /> SVRMGR&gt; alter system archive log start to &#39;/ u02/archive&#39;; <br /> The archive log path to / u02/archive, but if you need a permanent effect, make changes according to different versions of the init *. ora or spfile *. ora files <br /><br /> Fourth, specific examples: <br /><br /> 1) oracle8i and 9.01 environment: <br /> # Su - oralce <br /> $ Svrmgrl <br /><br /> Oracle Server Manager Release 3.1.7.0.0 - Production <br /><br /> Copyright (c) 2000, Oracle Corporation. All Rights Reserved. <br /><br /> Oracle8i Enterprise Edition Release 8.1.7.3.0 - 64bit Production <br /> With the Partitioning option <br /> JServer Release 8.1.7.3.0 - 64bit Production <br /><br /> SVRMGR&gt; connect internal <br /> Successful connection. <br /> SVRMGR&gt; shutdown <br /> Closed the database. <br /> Database has been removed. <br /> ORACLE instance has been closed. <br /> SVRMGR&gt; startup mount <br /> ORACLE instance started. <br /> System global area together with 57,124,108 bytes <br /> Fixed Size 70924 bytes <br /> Variable Size 40198144 bytes <br /> Database Buffers 16777216 bytes<br /> Redo Buffers 77824 bytes Database mounted. <br /> SVRMGR&gt; alter database archivelog; <br /> Statements have been processed. <br /> SVRMGR&gt; archive log start <br /> Statements have been processed. <br /> SVRMGR&gt; alter database open; <br /> Statements have been processed. <br /> SVRMGR&gt; alter system switch logfile; - mandatory system log switch to archive the log can be immediately observed the production statement has been processed. <br /> SVRMGR&gt; exit <br /> Server management program ends. <br /><br /> Modify the database parameter file $ ORACLE_HOME / admin / oradb / pfile / init [oracle_sid]. Ora, <br /> Cancel the following statement # comments <br /> log_archive_start = true <br /> log_archive_dest_1 = &quot;location = / u07/archive&quot; <br /> log_archive_format =%% ORACLE_SID%% T% TS% S. ARC <br /> Close the database, restart <br /><br /> View / u07/archive directory, you can see similar ORADBT001S01201.ARC the paper on archiving success <br /><br /> 2) oracle 9.2 environment: <br /> $ Sqlplus / nolog <br /><br /> SQL * Plus: Release 9.2.0.1.0 - Production on Monday June 16 10:30:23 2003 <br /><br /> Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved. <br /><br /> SQL&gt; connect / as sysdba <br /> Connected. <br /><br /> SQL&gt; startup mount <br /> ORACLE instance started. <br /><br /> Total System Global Area 320308312 bytes <br /> Fixed Size 730200 bytes <br /> Variable Size 285212672 bytes <br /> Database Buffers 33554432 bytes <br /> Redo Buffers 811008 bytes <br /> Completion of the loading database. <br /> SQL&gt; alter database archivelog; <br /><br /> Database has changed. <br /> SQL&gt; archive log start <br /> Statements have been processed <br /> SQL&gt; alter database open; <br /><br /> Database has changed. <br /> SQL&gt; alter system switch logfile; <br /><br /> System has been changed. <br /> SQL&gt; archive log list; <br /> Database archive log mode Archive Mode Automatic to enable archiving destination / opt/oracle/OraHome1/dbs/arch <br /> Summary of the earliest log sequence 3 <br /> The next archive log sequence 5 <br /> Current log sequence 5 <br /> SQL&gt; exit <br /><br /> Using sys as sysdba user login dbastudio, change the &quot;node&quot; -&gt; Example -&gt; Database -&gt; all the database parameters -&gt; spfile in the archive log parameters <br /> log_archive_start = true <br /> log_archive_dest_1 = &quot;location = / u02/archive&quot; <br /> log_archive_format =%% ORACLE_SID%% T% TS% S. ARC <br /> log_archive_stat_1 = enable <br /><br /> Restart the database				<h5>Related Posts</h5>
		<div id="smilar">
		<ul>
					<li><a href="http://www.kods.net/sga-extended-the-principle-of-32bit-oracle/" title="SGA extended the principle of 32bit oracle">SGA extended the principle of 32bit oracle</a> 2009-03-31 09:48:01</li>
					<li><a href="http://www.kods.net/an-example-of-the-use-of-tkprof/" title="An example of the use of TKPROF">An example of the use of TKPROF</a> 2009-02-26 01:38:19</li>
					<li><a href="http://www.kods.net/diagnosis-and-principles-of-order/" title="Diagnosis and principles of order">Diagnosis and principles of order</a> 2009-02-25 20:27:28</li>
					<li><a href="http://www.kods.net/oracle-10g-dataguard-configuration-step-by-step/" title="ORACLE 10G dataguard configuration Step by Step">ORACLE 10G dataguard configuration Step by Step</a> 2009-02-16 01:13:55</li>
				</ul>
		</div>
		        ]]></content:encoded>
		<wfw:commentRss>http://www.kods.net/database-archivelog-in-oracle-8i-9-01-9-2-environment-setting-method/</wfw:commentRss>
	</item>
	</channel>
</rss>
