<?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>archive format</title>
	<atom:link href="http://www.kods.net/feed/tag/archive-format/" rel="self" type="application/rss+xml" />
	<link>http://www.kods.net/</link>
	<description>archive format</description>
	<pubDate>Fri, 30 Jul 2010 03:55:30+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>scripts of create database</title>
		<link>http://www.kods.net/scripts-of-create-database/</link>
		<comments>http://www.kods.net/scripts-of-create-database/#comments</comments>
		<pubDate>Sun, 30 May 2010 18:00:12+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[oracle]]></category>
<category><![CDATA[log archive]]></category>
<category><![CDATA[target]]></category>
<category><![CDATA[ctl]]></category>
<category><![CDATA[job]]></category>
<category><![CDATA[national character]]></category>
<category><![CDATA[temporary tablespace]]></category>
<category><![CDATA[extent]]></category>
<category><![CDATA[quot quot]]></category>
<category><![CDATA[dbf]]></category>
<category><![CDATA[db name]]></category>
<category><![CDATA[remote login]]></category>
<category><![CDATA[sga]]></category>
<category><![CDATA[pfile]]></category>
<category><![CDATA[scripts]]></category>
<category><![CDATA[archive format]]></category>
<category><![CDATA[temp01]]></category>
<category><![CDATA[open cursors]]></category>
		<guid isPermaLink="true">http://www.kods.net/scripts-of-create-database/</guid>
		<description><![CDATA[1.create init.ora log_archive_dest_1 = &#39;LOCATION = / arch /&#39; log_archive_format =% t_% s_% r.dbf db_block_size = 8192 db_file_multiblock_read_count = 16 open_cursors = 300 db_domain = &quot;&quot; db_name = gc background_dump_dest = / oracle  ...]]></description>
		<content:encoded><![CDATA[1.create init.ora <br /><br /> log_archive_dest_1 = &#39;LOCATION = / arch /&#39; <br /> log_archive_format =% t_% s_% r.dbf <br /><br /> db_block_size = 8192 <br /> db_file_multiblock_read_count = 16 <br /><br /> open_cursors = 300 <br /><br /> db_domain = &quot;&quot; <br /> db_name = gc <br /><br /> background_dump_dest = / oracle / admin / gc / bdump <br /> core_dump_dest = / oracle / admin / gc / cdump <br /> user_dump_dest = / oracle / admin / gc / udump <br /><br /> control_files = (&quot;/ oracle/oradata/gc/control01.ctl&quot;, &quot;/ oracle/oradata/gc/control02.ctl&quot;, &quot;/ oracle/oradata/gc/control03.ctl&quot;) <br /><br /> job_queue_processes = 10 <br /><br /> compatible = 10.2.0.3.0 <br /><br /> processes = 150 <br /><br /> sga_target = 205520896 <br /><br /> audit_file_dest = / oracle / admin / gc / adump <br /> remote_login_passwordfile = EXCLUSIVE <br /><br /> pga_aggregate_target = 68157440 <br /><br /> undo_management = AUTO <br /> undo_tablespace = UNDOTBS1 <br /><br /> create spfile = &#39;/ oracle / programs / dbs / spfilegc.ora&#39; from pfile = &#39;/ oracle / programs / dbs / init.ora&#39; <br /><br /> SQL&gt; startup nomount; <br /><br /> 2.createdb.sql <br /><br /> CREATE DATABASE gc <br /> MAXINSTANCES 8 <br /> MAXLOGHISTORY 1 <br /> MAXLOGFILES 16 <br /> MAXLOGMEMBERS 3 <br /> MAXDATAFILES 100 <br /> DATAFILE &#39;/ oracle/oradata/gc/system01.dbf&#39; SIZE 300M REUSE AUTOEXTEND ON NEXT 10240K MAXSIZE UNLIMITED <br /> EXTENT MANAGEMENT LOCAL <br /> SYSAUX DATAFILE &#39;/ oracle/oradata/gc/sysaux01.dbf&#39; SIZE 120M REUSE AUTOEXTEND ON NEXT 10240K MAXSIZE UNLIMITED <br /> SMALLFILE DEFAULT TEMPORARY TABLESPACE TEMP TEMPFILE &#39;/ oracle/oradata/gc/temp01.dbf&#39; SIZE 20M REUSE AUTOEXTEND ON NEXT 640K MAXSIZE UNLIMITED <br /> SMALLFILE UNDO TABLESPACE &quot;UNDOTBS1&quot; DATAFILE &#39;/ oracle/oradata/gc/undotbs01.dbf&#39; SIZE 200M REUSE AUTOEXTEND ON NEXT 5120K MAXSIZE UNLIMITED <br /> CHARACTER SET ZHS16GBK <br /> NATIONAL CHARACTER SET AL16UTF16 <br /> LOGFILE GROUP 1 (&#39;/ oracle/oradata/gc/redo01.log&#39;) SIZE 51200K, <br /> GROUP 2 (&#39;/ oracle/oradata/gc/redo02.log&#39;) SIZE 51200K, <br /> GROUP 3 (&#39;/ oracle/oradata/gc/redo03.log&#39;) SIZE 51200K <br /> USER SYS IDENTIFIED BY ABCabc123 USER SYSTEM IDENTIFIED BY ABCabc123; <br /><br /> 3.postcreate <br /><br /> orapwd file = / oracle / programs / dbs / orapwgc password = ABCabc123 force = y <br /><br /> @ / Oracle / programs / rdbms / admin / catalog.sql; <br /> @ / Oracle / programs / rdbms / admin / catblock.sql; <br /> @ / Oracle / programs / rdbms / admin / catproc.sql; <br /> @ / Oracle / programs / rdbms / admin / catoctk.sql; <br /> @ / Oracle / programs / rdbms / admin / owminst.plb; <br /><br /> @ / Oracle / programs / sqlplus / admin / pupbld.sql; <br /><br /> @ / Oracle / programs / sqlplus / admin / help / hlpbld.sql helpus.sql; <br /><br /> alter database archivelog; <br /><br /> alter database default tablespace users;				<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/scripts-of-create-database/</wfw:commentRss>
	</item>
		<item>
		<title>Dataguard create a physical standby steps [RMAN copy]</title>
		<link>http://www.kods.net/dataguard-create-a-physical-standby-steps-rman-copy/</link>
		<comments>http://www.kods.net/dataguard-create-a-physical-standby-steps-rman-copy/#comments</comments>
		<pubDate>Fri, 28 May 2010 14:03:10+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[oracle home]]></category>
<category><![CDATA[log archive]]></category>
<category><![CDATA[orcl]]></category>
<category><![CDATA[database instance]]></category>
<category><![CDATA[init]]></category>
<category><![CDATA[production database]]></category>
<category><![CDATA[pfile]]></category>
<category><![CDATA[logfiles]]></category>
<category><![CDATA[file management]]></category>
<category><![CDATA[hostname]]></category>
<category><![CDATA[host configuration]]></category>
<category><![CDATA[archive format]]></category>
<category><![CDATA[dbs]]></category>
<category><![CDATA[centos 5]]></category>
<category><![CDATA[machine configuration]]></category>
<category><![CDATA[tar cvf]]></category>
<category><![CDATA[convenience copy]]></category>
<category><![CDATA[standby equipment]]></category>
<category><![CDATA[italics]]></category>
<category><![CDATA[auto export]]></category>
		<guid isPermaLink="true">http://www.kods.net/dataguard-create-a-physical-standby-steps-rman-copy/</guid>
		<description><![CDATA[Platform: Oracle 10.2.0.1 on CentOS 5.1 Primary Host Configuration: 1, the installation of production database instance named orcl 2, hostname for the primary 3, the host has to open archive Standby equipment machine configuration: 1, only install so ...]]></description>
		<content:encoded><![CDATA[Platform: Oracle 10.2.0.1 on CentOS 5.1 <br /> Primary Host Configuration: <br /><br /> 1, the installation of production database instance named orcl <br /><br /> 2, hostname for the primary <br /><br /> 3, the host has to open archive <br /><br /> Standby equipment machine configuration: <br /><br /> 1, only install software <br /><br /> 2, hostname for the standby <br /><br /> <i><br /></i> <br /><br /> Primary Host Configuration: <br /><br /> Open the logging: <br /><br /> alter database force logging; <br /><br /> Edit primary parameters: <br /><br /> Use alter system set changes [italics according to the actual situation, the static parameter specifies the scope = spfile]: <br /><br /> DB_UNIQUE_NAME = primary <br /><br /> LOG_ARCHIVE_CONFIG = &#39;DG_CONFIG = (primary, standby)&#39; <br /><br /> LOG_ARCHIVE_DEST_1 = <br /><br /> &#39;LOCATION = <i>/ arch</i> <br /><br /> VALID_FOR = (ALL_LOGFILES, ALL_ROLES) <br /><br /> DB_UNIQUE_NAME = primary &#39; <br /><br /> LOG_ARCHIVE_DEST_2 = <br /><br /> &#39;SERVICE = standby_net LGWR ASYNC <br /><br /> VALID_FOR = (ONLINE_LOGFILES, PRIMARY_ROLE) <br /><br /> DB_UNIQUE_NAME = standby &#39; <br /><br /> LOG_ARCHIVE_DEST_STATE_1 = ENABLE <br /><br /> LOG_ARCHIVE_DEST_STATE_2 = ENABLE <br /><br /> LOG_ARCHIVE_FORMAT =% t_% s_% r.arc <br /><br /> LOG_ARCHIVE_MAX_PROCESSES = 30 <br /><br /> LOG_FILE_NAME_CONVERT = &#39;/ arch&#39;, &#39;/ archlog&#39; <br /><br /> FAL_SERVER = standby_net <br /><br /> FAL_CLIENT = primary_net <br /><br /> STANDBY_FILE_MANAGEMENT = AUTO <br /><br /> Export primary parameter file: <br /><br /> create pfile = &#39;/ tmp / init <i>orcl.</i> ora&#39; from spfile; <br /><br /> Create standby control file: <br /><br /> alter database create standby controlfile as &#39;/ tmp / standby.ctl&#39;; <br /><br /> RMAN copy data files out, and its packaging: <br /><br /> mkdir-p / tmp / oradata / orcl <br /><br /> Copy data files using RMAN: <br /><br /> select &#39;copy datafile&#39; | | file_id | | &#39;to&#39; | |&#39;&#39;&#39;/ tmp / oradata / orcl&#39; | | substr (file_name, instr (file_name ,&#39;/&#39;,- 1 ))||&#39;&#39;&#39;&#39; | | &#39;;&#39; from dba_data_files order by 1; <br /><br /> RMAN in the implementation of the above statement in the results of the implementation of <br /><br /> tar-cvf oradata.tar oradata / <br /><br /> For convenience, copy files to the same directory: <br /><br /> cp $ ORACLE_HOME / dbs / orapworcl $ ORACLE_BASE <br /><br /> cp $ ORACLE_HOME / dbs / init <i>orcl.</i> ora $ ORACLE_BASE <br /><br /> cp / tmp / oradata.tar $ ORACLE_BASE <br /><br /> cp / tmp / standby.ctl $ ORACLE_BASE <br /><br /> cp / tmp / initorcl.ctl $ ORACLE_BASE <br /><br /> Standby equipment machine configuration: <br /><br /> ftp to the primary, to download all the files: <br /><br /> ftp&gt; bin <br /><br /> 200 Switching to Binary mode. <br /><br /> ftp&gt; cd <i>/ u01/app/oracle</i> <br /><br /> ftp&gt; mget oradata.tar <br /><br /> ftp&gt; mget orapw <i>orcl</i> <br /><br /> ftp&gt; mget init <i>orcl.</i> ora <br /><br /> ftp&gt; mget standby.ctl <br /><br /> Decompression oradata.tar: <br /><br /> cp oradata.tar $ ORACLE_BASE <br /><br /> cd $ ORACLE_BASE <br /><br /> tar-xvf $ ORACLE_BASE <br /><br /> Use standby.ctl cover oradata three of the control file: <br /><br /> [Oracle @ standby ~] $ cp standby.ctl / u01/app/oracle/oradata/orcl/control01.ctl <br /><br /> [Oracle @ standby ~] $ cp standby.ctl / u01/app/oracle/oradata/orcl/control02.ctl <br /><br /> [Oracle @ standby ~] $ cp standby.ctl / u01/app/oracle/oradata/orcl/control03.ctl <br /><br /> Copy the password file, pfile to the dbs directory: <br /><br /> cd <br /><br /> cp orapworcl $ ORACLE_HOME / dbs <br /><br /> cp initorcl.ora $ ORACLE_HOME / dbs <br /><br /> Edit copied from the primary on initorcl.ora file [bold as the need to modify the place]: <br /><br /> DB_NAME = <i>orcl</i> <br /><br /> DB_UNIQUE_NAME = standby <br /><br /> LOG_ARCHIVE_CONFIG = &#39;DG_CONFIG = (primary, standby)&#39; <br /><br /> LOG_ARCHIVE_DEST_1 = <br /><br /> &#39;LOCATION = <i>/ archlog</i> <br /><br /> VALID_FOR = (ALL_LOGFILES, ALL_ROLES) <br /><br /> <b>DB_UNIQUE_NAME = standby &#39;</b> <br /><br /> LOG_ARCHIVE_DEST_2 = <br /><br /> &#39;SERVICE = primary_net LGWR ASYNC <br /><br /> VALID_FOR = (ONLINE_LOGFILES, PRIMARY_ROLE) <br /><br /> DB_UNIQUE_NAME = primary &#39; <br /><br /> LOG_ARCHIVE_DEST_STATE_1 = ENABLE <br /><br /> LOG_ARCHIVE_DEST_STATE_2 = ENABLE <br /><br /> REMOTE_LOGIN_PASSWORDFILE = EXCLUSIVE <br /><br /> LOG_ARCHIVE_FORMAT =% t_% s_% r.arc <br /><br /> LOG_ARCHIVE_MAX_PROCESSES = 30 <br /><br /> LOG_FILE_NAME_CONVERT = &#39;/ arch&#39;, &#39;/ archlog&#39; <br /><br /> FAL_SERVER = primary_net <br /><br /> FAL_CLIENT = standby_net <br /><br /> STANDBY_FILE_MANAGEMENT = AUTO <br /><br /> Parameter file to take effect: <br /><br /> create spfile from pfile; <br /><br /> Create the necessary directories: <br /><br /> mkdir-p / u01/app/oracle/admin/orcl/adump <br /><br /> mkdir-p / u01/app/oracle/admin/orcl/bdump <br /><br /> mkdir-p / u01/app/oracle/admin/orcl/cdump <br /><br /> mkdir-p / u01/app/oracle/admin/orcl/udump <br /><br /> mkdir-p / u01/app/oracle/admin/orcl/dpdump <br /><br /> mkdir-p / archlog <br /><br /> -------------------------------------------------- --------------------------------- <br /><br /> Standby machine each modified listener.ora, and restart the monitor, use netca configuration tnsname, and each machine in the standby testing using sqlplus. <br /><br /> tnsname (Oracle Net Service Name) configuration: <br /><br /> the same primary and standby: <br /><br /> primary_net / standby_net [Note: Net Service Name and db_unique_name not be the same, otherwise they will package DGID mismatch error] <br /><br /> -------------------------------------------------- --------------------------------- <br /><br /> Prepared to switch to the standby machine database role: <br /><br /> shutdown abort <br /><br /> startup mount; <br /><br /> Check whether the normal archiving transmission <br /><br /> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION; <br /><br /> Test: <br /><br /> In the standby machine test results were used as the command is the same: <br /><br /> select max (sequence #) from v $ archived_log; <br /><br /> In preparation machine with the following command tests whether the log is applied: <br /><br /> SELECT SEQUENCE #, APPLIED FROM V $ ARCHIVED_LOG ORDER BY SEQUENCE #;				<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/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/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/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/dataguard-create-a-physical-standby-steps-rman-copy/</wfw:commentRss>
	</item>
		<item>
		<title>Dataguard steps to create the physical standby [direct copy files / RMAN]</title>
		<link>http://www.kods.net/dataguard-steps-to-create-the-physical-standby-direct-copy-files-rman/</link>
		<comments>http://www.kods.net/dataguard-steps-to-create-the-physical-standby-direct-copy-files-rman/#comments</comments>
		<pubDate>Thu, 27 May 2010 13:30:54+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[oracle]]></category>
<category><![CDATA[log archive]]></category>
<category><![CDATA[dg]]></category>
<category><![CDATA[database instance]]></category>
<category><![CDATA[arc]]></category>
<category><![CDATA[config]]></category>
<category><![CDATA[production database]]></category>
<category><![CDATA[logfiles]]></category>
<category><![CDATA[file management]]></category>
<category><![CDATA[hostname]]></category>
<category><![CDATA[host configuration]]></category>
<category><![CDATA[archive format]]></category>
<category><![CDATA[centos 5]]></category>
<category><![CDATA[machine configuration]]></category>
<category><![CDATA[tar cvf]]></category>
<category><![CDATA[create pfile from spfile]]></category>
<category><![CDATA[convenience copy]]></category>
<category><![CDATA[standby equipment]]></category>
<category><![CDATA[base application]]></category>
<category><![CDATA[italics]]></category>
		<guid isPermaLink="true">http://www.kods.net/dataguard-steps-to-create-the-physical-standby-direct-copy-files-rman/</guid>
		<description><![CDATA[Platform: Oracle 10.2.0.1 on CentOS 5.1 primary host configuration: 1, the installation of production database instance named orcl 2, hostname for the primary standby equipment machine configuration: 1, only install software 2, hostname for the stand ...]]></description>
		<content:encoded><![CDATA[Platform: Oracle 10.2.0.1 on CentOS 5.1 <br /> primary host configuration: <br /><br /> 1, the installation of production database instance named orcl <br /><br /> 2, hostname for the primary <br /><br /> standby equipment machine configuration: <br /><br /> 1, only install software <br /><br /> 2, hostname for the standby <br /><br /> Method 1: <br /><br /> Primary Host Configuration: <br /><br /> 1, open the logging: <br /><br /> alter database force logging; <br /><br /> 2, open the archive: <br /><br /> If not open, use the following command to open: <br /><br /> shutdown immediate <br /><br /> startup mount <br /><br /> alter database archivelog; <br /><br /> Edit primary parameter file: <br /><br /> 1, create pfile from spfile; <br /><br /> 2, edited pfile: <br /><br /> Add the following content [italics according to the actual circumstances of the case]: <br /><br /> DB_NAME = orcl <br /><br /> DB_UNIQUE_NAME = primary <br /><br /> LOG_ARCHIVE_CONFIG = &#39;DG_CONFIG = (primary, standby)&#39; <br /><br /> LOG_ARCHIVE_DEST_1 = <br /><br /> &#39;LOCATION = <i>/ arch</i> <br /><br /> VALID_FOR = (ALL_LOGFILES, ALL_ROLES) <br /><br /> DB_UNIQUE_NAME = primary &#39; <br /><br /> LOG_ARCHIVE_DEST_2 = <br /><br /> &#39;SERVICE = standby_net LGWR ASYNC <br /><br /> VALID_FOR = (ONLINE_LOGFILES, PRIMARY_ROLE) <br /><br /> DB_UNIQUE_NAME = standby &#39; <br /><br /> LOG_ARCHIVE_DEST_STATE_1 = ENABLE <br /><br /> LOG_ARCHIVE_DEST_STATE_2 = ENABLE <br /><br /> REMOTE_LOGIN_PASSWORDFILE = EXCLUSIVE <br /><br /> LOG_ARCHIVE_FORMAT =% t_% s_% r.arc <br /><br /> LOG_ARCHIVE_MAX_PROCESSES = 30 <br /><br /> LOG_FILE_NAME_CONVERT = &#39;/ arch&#39;, &#39;/ archlog&#39; <br /><br /> FAL_SERVER = standby_net <br /><br /> FAL_CLIENT = primary_net <br /><br /> STANDBY_FILE_MANAGEMENT = AUTO <br /><br /> Create standby control file: <br /><br /> alter database create standby controlfile as &#39;/ tmp / standby.ctl&#39;; <br /><br /> Close the main database and data files, control files and online log files Package: <br /><br /> shutdown immediate <br /><br /> tar-cvf oradata.tar oradata / <br /><br /> For convenience, copy dbs password file and pfile under the same directory: <br /><br /> cp orapworcl $ ORACLE_BASE <br /><br /> cp initorcl.ora $ ORACLE_BASE <br /><br /> cp / tmp / standby.ctl $ ORACLE_BASE <br /><br /> Application parameter file: <br /><br /> create spfile from pfile; <br /><br /> Start the database: <br /><br /> startup / alter database open; <br /><br /> Standby equipment machine configuration: <br /><br /> ftp to the primary, to download all the files: <br /><br /> ftp&gt; bin <br /><br /> 200 Switching to Binary mode. <br /><br /> ftp&gt; cd / u01/app/oracle <br /><br /> ftp&gt; mget oradata.tar <br /><br /> ftp&gt; mget orapworcl <br /><br /> ftp&gt; mget initorcl.ora <br /><br /> ftp&gt; mget standby.ctl <br /><br /> Decompression oradata.tar: <br /><br /> cp oradata.tar $ ORACLE_BASE <br /><br /> cd $ ORACLE_BASE <br /><br /> tar-xvf $ ORACLE_BASE <br /><br /> Use standby.ctl cover oradata three of the control file: <br /><br /> [Oracle @ standby ~] $ cp standby.ctl / u01/app/oracle/oradata/orcl/control01.ctl <br /><br /> [Oracle @ standby ~] $ cp standby.ctl / u01/app/oracle/oradata/orcl/control02.ctl <br /><br /> [Oracle @ standby ~] $ cp standby.ctl / u01/app/oracle/oradata/orcl/control03.ctl <br /><br /> Copy the password file, pfile to the dbs directory: <br /><br /> cd <br /><br /> cp orapworcl $ ORACLE_HOME / dbs <br /><br /> cp initorcl.ora $ ORACLE_HOME / dbs <br /><br /> Edit copied from the primary on initorcl.ora file [bold as the need to modify the place]: <br /><br /> DB_NAME = orcl <br /><br /> DB_UNIQUE_NAME = standby <br /><br /> LOG_ARCHIVE_CONFIG = &#39;DG_CONFIG = (primary, standby)&#39; <br /><br /> LOG_ARCHIVE_DEST_1 = <br /><br /> &#39;LOCATION = <i>/ archlog</i> <br /><br /> VALID_FOR = (ALL_LOGFILES, ALL_ROLES) <br /><br /> <strong>DB_UNIQUE_NAME = standby &#39;</strong> <br /><br /> LOG_ARCHIVE_DEST_2 = <br /><br /> &#39;SERVICE = primary_net LGWR ASYNC <br /><br /> VALID_FOR = (ONLINE_LOGFILES, PRIMARY_ROLE) <br /><br /> DB_UNIQUE_NAME = primary &#39; <br /><br /> LOG_ARCHIVE_DEST_STATE_1 = ENABLE <br /><br /> LOG_ARCHIVE_DEST_STATE_2 = ENABLE <br /><br /> REMOTE_LOGIN_PASSWORDFILE = EXCLUSIVE <br /><br /> LOG_ARCHIVE_FORMAT =% t_% s_% r.arc <br /><br /> LOG_ARCHIVE_MAX_PROCESSES = 30 <br /><br /> LOG_FILE_NAME_CONVERT = &#39;/ arch&#39;, &#39;/ archlog&#39; <br /><br /> FAL_SERVER = primary_net <br /><br /> FAL_CLIENT = standby_net <br /><br /> STANDBY_FILE_MANAGEMENT = AUTO <br /><br /> Parameter file to take effect: <br /><br /> create spfile from pfile; <br /><br /> Create the necessary directories: <br /><br /> mkdir-p / u01/app/oracle/admin/orcl/adump <br /><br /> mkdir-p / u01/app/oracle/admin/orcl/bdump <br /><br /> mkdir-p / u01/app/oracle/admin/orcl/cdump <br /><br /> mkdir-p / u01/app/oracle/admin/orcl/udump <br /><br /> mkdir-p / u01/app/oracle/admin/orcl/dpdump <br /><br /> mkdir-p / archlog <br /><br /> Start the instance: <br /><br /> startup <br /><br /> -------------------------------------------------- --------------------------------- <br /><br /> Standby machine each modified listener.ora, and restart the monitor, use netca configuration tnsname, and each machine in the standby testing using sqlplus. <br /><br /> tnsname (Oracle Net Service Name) configuration: <br /><br /> the same primary and standby: <br /><br /> primary_net / standby_net [Note: Net Service Name and db_unique_name not be the same, otherwise they will package DGID mismatch error] <br /><br /> -------------------------------------------------- --------------------------------- <br /><br /> Prepared to switch to the standby machine database role: <br /><br /> shutdown abort <br /><br /> startup mount; <br /><br /> Check whether the normal archiving transmission <br /><br /> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION; <br /><br /> Test: <br /><br /> In the standby machine test results were used as the command is the same: <br /><br /> select max (sequence #) from v $ archived_log; <br /><br /> In preparation machine with the following command tests whether the log is applied: <br /><br /> SELECT SEQUENCE #, APPLIED FROM V $ ARCHIVED_LOG ORDER BY SEQUENCE #; <br /><br /> Method 2: <br /><br /> mkdir-p / tmp / oradata / orcl <br /><br /> Copy data files using RMAN: <br /><br /> select &#39;copy datafile&#39; | | file_id | | &#39;to&#39; | |&#39;&#39;&#39;/ tmp / oradata / orcl&#39; | | substr (file_name, instr (file_name ,&#39;/&#39;,- 1 ))||&#39;&#39;&#39;&#39; | | &#39;;&#39; from dba_data_files order by 1; <br /><br /> RMAN in the implementation of the above statement in the implementation of the results, then ftp the resulting file to the standby database, and other documents and copy the same manner as non-RMAN.				<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/dataguard-steps-to-create-the-physical-standby-direct-copy-files-rman/</wfw:commentRss>
	</item>
		<item>
		<title>Dataguard create a physical standby steps [direct copy files / RMAN]</title>
		<link>http://www.kods.net/dataguard-create-a-physical-standby-steps-direct-copy-files-rman/</link>
		<comments>http://www.kods.net/dataguard-create-a-physical-standby-steps-direct-copy-files-rman/#comments</comments>
		<pubDate>Thu, 27 May 2010 08:07:12+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[oracle]]></category>
<category><![CDATA[log archive]]></category>
<category><![CDATA[dg]]></category>
<category><![CDATA[database instance]]></category>
<category><![CDATA[arc]]></category>
<category><![CDATA[config]]></category>
<category><![CDATA[production database]]></category>
<category><![CDATA[logfiles]]></category>
<category><![CDATA[file management]]></category>
<category><![CDATA[hostname]]></category>
<category><![CDATA[host configuration]]></category>
<category><![CDATA[archive format]]></category>
<category><![CDATA[centos 5]]></category>
<category><![CDATA[machine configuration]]></category>
<category><![CDATA[tar cvf]]></category>
<category><![CDATA[create pfile from spfile]]></category>
<category><![CDATA[convenience copy]]></category>
<category><![CDATA[standby equipment]]></category>
<category><![CDATA[base application]]></category>
<category><![CDATA[italics]]></category>
		<guid isPermaLink="true">http://www.kods.net/dataguard-create-a-physical-standby-steps-direct-copy-files-rman/</guid>
		<description><![CDATA[Platform: Oracle 10.2.0.1 on CentOS 5.1 primary host configuration: 1, the installation of production database instance named orcl 2, hostname for the primary standby equipment machine configuration: 1, only install software 2, hostname for the stand ...]]></description>
		<content:encoded><![CDATA[Platform: Oracle 10.2.0.1 on CentOS 5.1 <br /> primary host configuration: <br /><br /> 1, the installation of production database instance named orcl <br /><br /> 2, hostname for the primary <br /><br /> standby equipment machine configuration: <br /><br /> 1, only install software <br /><br /> 2, hostname for the standby <br /><br /> Method 1: <br /><br /> Primary Host Configuration: <br /><br /> 1, open the logging: <br /><br /> alter database force logging; <br /><br /> 2, open the archive: <br /><br /> If not open, use the following command to open: <br /><br /> shutdown immediate <br /><br /> startup mount <br /><br /> alter database archivelog; <br /><br /> Edit primary parameter file: <br /><br /> 1, create pfile from spfile; <br /><br /> 2, edited pfile: <br /><br /> Add the following content [italics according to the actual circumstances of the case]: <br /><br /> DB_NAME = orcl <br /><br /> DB_UNIQUE_NAME = primary <br /><br /> LOG_ARCHIVE_CONFIG = &#39;DG_CONFIG = (primary, standby)&#39; <br /><br /> LOG_ARCHIVE_DEST_1 = <br /><br /> &#39;LOCATION = <i>/ arch</i> <br /><br /> VALID_FOR = (ALL_LOGFILES, ALL_ROLES) <br /><br /> DB_UNIQUE_NAME = primary &#39; <br /><br /> LOG_ARCHIVE_DEST_2 = <br /><br /> &#39;SERVICE = standby_net LGWR ASYNC <br /><br /> VALID_FOR = (ONLINE_LOGFILES, PRIMARY_ROLE) <br /><br /> DB_UNIQUE_NAME = standby &#39; <br /><br /> LOG_ARCHIVE_DEST_STATE_1 = ENABLE <br /><br /> LOG_ARCHIVE_DEST_STATE_2 = ENABLE <br /><br /> REMOTE_LOGIN_PASSWORDFILE = EXCLUSIVE <br /><br /> LOG_ARCHIVE_FORMAT =% t_% s_% r.arc <br /><br /> LOG_ARCHIVE_MAX_PROCESSES = 30 <br /><br /> LOG_FILE_NAME_CONVERT = &#39;/ arch&#39;, &#39;/ archlog&#39; <br /><br /> FAL_SERVER = standby_net <br /><br /> FAL_CLIENT = primary_net <br /><br /> STANDBY_FILE_MANAGEMENT = AUTO <br /><br /> Create standby control file: <br /><br /> alter database create standby controlfile as &#39;/ tmp / standby.ctl&#39;; <br /><br /> Close the main database and data files, control files and online log files Package: <br /><br /> shutdown immediate <br /><br /> tar-cvf oradata.tar oradata / <br /><br /> For convenience, copy dbs password file and pfile under the same directory: <br /><br /> cp orapworcl $ ORACLE_BASE <br /><br /> cp initorcl.ora $ ORACLE_BASE <br /><br /> cp / tmp / standby.ctl $ ORACLE_BASE <br /><br /> Application parameter file: <br /><br /> create spfile from pfile; <br /><br /> Start the database: <br /><br /> startup / alter database open; <br /><br /> Standby equipment machine configuration: <br /><br /> ftp to the primary, to download all the files: <br /><br /> ftp&gt; bin <br /><br /> 200 Switching to Binary mode. <br /><br /> ftp&gt; cd / u01/app/oracle <br /><br /> ftp&gt; mget oradata.tar <br /><br /> ftp&gt; mget orapworcl <br /><br /> ftp&gt; mget initorcl.ora <br /><br /> ftp&gt; mget standby.ctl <br /><br /> Decompression oradata.tar: <br /><br /> cp oradata.tar $ ORACLE_BASE <br /><br /> cd $ ORACLE_BASE <br /><br /> tar-xvf $ ORACLE_BASE <br /><br /> Use standby.ctl cover oradata three of the control file: <br /><br /> [Oracle @ standby ~] $ cp standby.ctl / u01/app/oracle/oradata/orcl/control01.ctl <br /><br /> [Oracle @ standby ~] $ cp standby.ctl / u01/app/oracle/oradata/orcl/control02.ctl <br /><br /> [Oracle @ standby ~] $ cp standby.ctl / u01/app/oracle/oradata/orcl/control03.ctl <br /><br /> Copy the password file, pfile to the dbs directory: <br /><br /> cd <br /><br /> cp orapworcl $ ORACLE_HOME / dbs <br /><br /> cp initorcl.ora $ ORACLE_HOME / dbs <br /><br /> Edit copied from the primary on initorcl.ora file [bold as the need to modify the place]: <br /><br /> DB_NAME = orcl <br /><br /> DB_UNIQUE_NAME = standby <br /><br /> LOG_ARCHIVE_CONFIG = &#39;DG_CONFIG = (primary, standby)&#39; <br /><br /> LOG_ARCHIVE_DEST_1 = <br /><br /> &#39;LOCATION = <i>/ archlog</i> <br /><br /> VALID_FOR = (ALL_LOGFILES, ALL_ROLES) <br /><br /> <strong>DB_UNIQUE_NAME = standby &#39;</strong> <br /><br /> LOG_ARCHIVE_DEST_2 = <br /><br /> &#39;SERVICE = primary_net LGWR ASYNC <br /><br /> VALID_FOR = (ONLINE_LOGFILES, PRIMARY_ROLE) <br /><br /> DB_UNIQUE_NAME = primary &#39; <br /><br /> LOG_ARCHIVE_DEST_STATE_1 = ENABLE <br /><br /> LOG_ARCHIVE_DEST_STATE_2 = ENABLE <br /><br /> REMOTE_LOGIN_PASSWORDFILE = EXCLUSIVE <br /><br /> LOG_ARCHIVE_FORMAT =% t_% s_% r.arc <br /><br /> LOG_ARCHIVE_MAX_PROCESSES = 30 <br /><br /> LOG_FILE_NAME_CONVERT = &#39;/ arch&#39;, &#39;/ archlog&#39; <br /><br /> FAL_SERVER = primary_net <br /><br /> FAL_CLIENT = standby_net <br /><br /> STANDBY_FILE_MANAGEMENT = AUTO <br /><br /> Parameter file to take effect: <br /><br /> create spfile from pfile; <br /><br /> Create the necessary directories: <br /><br /> mkdir-p / u01/app/oracle/admin/orcl/adump <br /><br /> mkdir-p / u01/app/oracle/admin/orcl/bdump <br /><br /> mkdir-p / u01/app/oracle/admin/orcl/cdump <br /><br /> mkdir-p / u01/app/oracle/admin/orcl/udump <br /><br /> mkdir-p / u01/app/oracle/admin/orcl/dpdump <br /><br /> mkdir-p / archlog <br /><br /> Start the instance: <br /><br /> startup <br /><br /> -------------------------------------------------- --------------------------------- <br /><br /> Standby machine each modified listener.ora, and restart the monitor, use netca configuration tnsname, and each machine in the standby testing using sqlplus. <br /><br /> tnsname (Oracle Net Service Name) configuration: <br /><br /> the same primary and standby: <br /><br /> primary_net / standby_net [Note: Net Service Name and db_unique_name not be the same, otherwise they will package DGID mismatch error] <br /><br /> -------------------------------------------------- --------------------------------- <br /><br /> Prepared to switch to the standby machine database role: <br /><br /> shutdown abort <br /><br /> startup mount; <br /><br /> Check whether the normal archiving transmission <br /><br /> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION; <br /><br /> Test: <br /><br /> In the standby machine test results were used as the command is the same: <br /><br /> select max (sequence #) from v $ archived_log; <br /><br /> In preparation machine with the following command tests whether the log is applied: <br /><br /> SELECT SEQUENCE #, APPLIED FROM V $ ARCHIVED_LOG ORDER BY SEQUENCE #; <br /><br /> Method 2: <br /><br /> mkdir-p / tmp / oradata / orcl <br /><br /> Copy data files using RMAN: <br /><br /> select &#39;copy datafile&#39; | | file_id | | &#39;to&#39; | |&#39;&#39;&#39;/ tmp / oradata / orcl&#39; | | substr (file_name, instr (file_name ,&#39;/&#39;,- 1 ))||&#39;&#39;&#39;&#39; | | &#39;;&#39; from dba_data_files order by 1; <br /><br /> RMAN in the implementation of the above statement in the implementation of the results, then ftp the resulting file to the standby database, and other documents and copy the same manner as non-RMAN.				<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/dataguard-create-a-physical-standby-steps-direct-copy-files-rman/</wfw:commentRss>
	</item>
		<item>
		<title>rman backup summary of knowledge (transfer)</title>
		<link>http://www.kods.net/rman-backup-summary-of-knowledge-transfer/</link>
		<comments>http://www.kods.net/rman-backup-summary-of-knowledge-transfer/#comments</comments>
		<pubDate>Fri, 16 Apr 2010 12:00:46+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[parameters]]></category>
<category><![CDATA[log archive]]></category>
<category><![CDATA[backup database]]></category>
<category><![CDATA[target]]></category>
<category><![CDATA[incremental backup]]></category>
<category><![CDATA[oracle rman]]></category>
<category><![CDATA[database log]]></category>
<category><![CDATA[database name]]></category>
<category><![CDATA[catalog database]]></category>
<category><![CDATA[open sql]]></category>
<category><![CDATA[log sequence]]></category>
<category><![CDATA[file format]]></category>
<category><![CDATA[asm]]></category>
<category><![CDATA[archive format]]></category>
<category><![CDATA[binary file]]></category>
<category><![CDATA[incremental level]]></category>
<category><![CDATA[backup directory]]></category>
<category><![CDATA[catalog mode]]></category>
<category><![CDATA[backup storage]]></category>
<category><![CDATA[knowledge transfer]]></category>
		<guid isPermaLink="true">http://www.kods.net/rman-backup-summary-of-knowledge-transfer/</guid>
		<description><![CDATA[rman backup of knowledge: First, enable the rman backup, to enable archive log mode. See if in archive log mode SQL&gt; archive log list Modifications to the archive log mode: SQL&gt; startup mount / / Modify the archivelog file format SQL&gt; alter  ...]]></description>
		<content:encoded><![CDATA[<strong>rman backup of knowledge: <br /></strong> <br /> <strong>First, enable the rman backup, to enable archive log mode.</strong> <br /> See if in archive log mode <br /> SQL&gt; archive log list <br /> Modifications to the archive log mode: <br /><br /> SQL&gt; startup mount <br /><br /> / / Modify the archivelog file format <br /> SQL&gt; alter system set log_archive_format = &#39;% t_% s_% r.dbf&#39; scope = both; <br /><br /> / / Change archivelog storage path, following the path for the archive in the diskgroup in ASM in <br /> SQL&gt; alter system set log_archive_dest = &#39;+ DGDATA / jw / arch /&#39; scope = both; <br /><br /> SQL&gt; alter database archivelog; <br /> SQL&gt; archive log list; <br /> SQL&gt; alter system archive log current; / / immediately filed <br /><br /> SQL&gt; alter database open; <br /><br /> SQL&gt; archive log list; <br /> Database log mode Archive Mode <br /> Automatic archival Enabled <br /> Archive destination + DGDATA / jw / arch / <br /> Oldest online log sequence 137 <br /> Next log sequence to archive 139 <br /> Current log sequence 139 <br /><br /> <strong>Second, landing rman</strong> <br /><br /> # Su - oracle <br /><br /> $ Rman nocatalog directly into rman, non-catalog way back up <br /> rman&gt; connect target / connected to target database <br /> rman&gt; backup database; on the database, all prepared <br /> rman&gt; list backupset; view the situation in the default backup storage of the backup directory: @ ORACLE_BASE / flash_recovery_area / database name / backupset / time / <br /> The parameters of the <br /> rman&gt; show all; view the backup parameters <br /><br /> <strong>3, catalog, and the difference between nocatalog</strong> <br /><br /> rman&#39;s nocatalog manner of information on the control file backup control file which is as a binary file, in linux with the strings command to see the ground inside the control file information. <br /><br /> # String control03.ctl can see the backup of the information appeared. <br /><br /> rman in catalog mode, back up the inside information on the catalog database. <br /><br /> <strong>4, incremental backup</strong> &lt;br /&gt; incremental backup (level 0 incremental backup is all prepared, but can be used as the basis for post-level incremental backup, full equipment can not) <br /> rman&gt; backup incremental level = 0 database; <br /><br /> Incremental backup (level 1 incremental backup) <br /> rman&gt; backup incremental level = 1 database; <br /> Out of much smaller backup files. <br /><br /> rman&gt; backupset list; <br /><br /> <strong>5, rman backup files and information consistent processing</strong> <br /><br /> Use rman archivelog on the previous processing equipment to go ahead, then switch to the new archivelog modify the new directory. If the direct switch to the new archive, but did not use before the archivelog rman prepared to go, you should use the following: <br /> # Rman target / <br /> rman&gt; crosscheck archivelog all; / / general in the archive log backup failed, need to re-check. <br /> rman&gt; delete expired archivelog all; <br /><br /> Recorded in the controlfile archivelog with each relevant information, when we put in the OS, delete these files off or unusual physical changes, still recorded in the controlfile of these archivelog information, when we manually clear the archive directory file, These records have not been removed we are from the controlfile in, that is, oracle does not know these files does not exist! this time we have to do manual removal. <br /> rman&gt; crosscheck archivelog all;&#39;s role is to check the control file and the difference between the actual physical file. <br /> rman&gt; delete expired archivelog all; is the synchronization information file and the actual physical file. <br /> If the separate implementation of the crosscheck and delete it failed to implement a backup or fail, because those who control information and the actual file information or different <br /><br /> rman&gt; crosscheck backupset; is to check the backup set and the actual document <br /><br /> rman&gt; delete expired backupset; delete expired backup sets invalid <br /><br /> 1, the backup set has two states A (Available, RMAN that the backup media exists) X (Expired, present in the control file backup or restore the directory, but does not physically exist in the backup media) <br /><br /> 2, crosscheck the purpose is to check the RMAN catalog and the physical file, if the physical file does not exist in the media, will be marked as Expired. If the physical file exists, will remain Available. If you previously marked as Expired in the backup set again exist in the backup media (such as the restoration of a damaged disk drive is), crosscheck the state will re-mark back from Expired Available. <br /><br /> 3, crosscheck the output in two parts. The first part of the list on the backup media to determine the existence of all the backup set piece, the second part of the list does not exist on the backup media backup set piece, and mark it as Expired. <br /> When setting the backup save strategy, a backup date, crosscheck backup discarded after the labeled state still is availabel, you want to remove discarded backup <br /><br /> rman&gt; delete obsolete <br /><br /> <strong>5, rman backup operations</strong> <br /><br /> # Rman nocatalog to nocatalog log rman<br /> rman&gt; connect target sys / password @ tnsname to connect to the target database, if the database and the listener does not start, it is impossible to be <br /> rman&gt; connect target / prompted to connect to an idle instance <br /> rman&gt; startup sqlplus start the database inside the root of the operation of the same. <br /><br /> <strong>Database of all equipment</strong> <br /> rman&gt; backup database plus archivelog delete input; <br /> This is a full equipment (including a datafile, controlfile, spfile, archivelog), can not delete input, that the backup is complete, the archive log be removed to save space. <br /><br /> <strong>Preparation of the database by</strong> <br /><br /> rman&gt; backup incremetal level = 0 database plus archivelog; <br /><br /> rman&gt; backup incremetal level = 1 database plus archivelog; <br /><br /> <strong>Table space backup</strong> <br /> rman&gt; report schema; show the planning of the entire database table that contains the tablespace, datafile, etc.. <br /><br /> rman&gt; backup tablespace users; full backup of tablespace users <br /><br /> <strong>Backup control file</strong> <br /> rman&gt; backup current controlfile; separate backup controlfile <br /> Or <br /> rman&gt; backup database include current controlfile; <br /><br /> Full back up the database, the default has been included, may not specify. (To increase the controlfile by this mirror) <br /><br /> <strong>Image backup, the equivalent of copy:</strong> <br /><br /> rman&gt; copy datafile 5 to &#39;/ u01/rmanbak/tbs01bak.dbf&#39;; <br /> 5 for the corresponding rman&gt; report schema; file number <br /><br /> rman&gt; list copy; show backup copy of the image <br /><br /> <strong>rman backup batch command:</strong> <br /> rman&gt; run ( <br /> allocate channel cha1 type disk; <br /> backup format &quot;/ u01/rmanbak/full_% t&quot; <br /> tag full-backup <br /> database; <br /> release channel cha1; <br /> ) <br /><br /> <strong>6, automatic backup plan prepared by a week</strong> <br /><br /> <strong>1, write a backup script</strong> <br /><br /> # Vi bakl0 <br /> run ( <br /> allocate channel cha1 type disk; <br /> backup <br /> incremetal level 0 <br /> format &quot;/ u01/rmanbak/inc0_% u_% T&quot; <br /> tag monday_inc0 <br /> database; <br /> release channel cha1; <br /> ) <br /><br /> # Vi bakl1 <br /> run ( <br /> allocate channel cha1 type disk; <br /> backup <br /> incremetal level 1 <br /> format &quot;/ u01/rmanbak/inc1_% u_% T&quot; <br /> tag monday_inc1 <br /> database; <br /> release channel cha1; <br /> ) <br /><br /> # Vi bakl2 <br /> run ( <br /> allocate channel cha1 type disk; <br /> backup <br /> incremetal level 2 <br /> format &quot;/ u01/rmanbak/inc2_% u_% T&quot; <br /> tag monday_inc2 <br /> database; <br /> release channel cha1; <br /> ) <br /><br /> # Crontab-e-u oracle <br /> 45 23 * * 0 rman target / msglog = bakl0.log cmdfile = bakl0 <br /> 45 23 * * 1 rman target / msglog = bakl0.log cmdfile = bakl2 <br /> 45 23 * * 2 rman target / msglog = bakl0.log cmdfile = bakl2 <br /> 45 23 * * 3 rman target / msglog = bakl0.log cmdfile = bakl1 <br /> 45 23 * * 4 rman target / msglog = bakl0.log cmdfile = bakl2 <br /> 45 23 * * 5 rman target / msglog = bakl0.log cmdfile = bakl2 <br /> 45 23 * * 6 rman target / msglog = bakl0.log cmdfile = bakl2 <br /><br /> # Service crond restart <br /><br /> <strong>7, rman restore</strong> <br /><br /> <strong>Restore control file control file, first close the database</strong> <br /> sql&gt; shutdown abort; <br /> # Rman target / <br /> rman&gt; startup nomount; <br /> rman&gt; restore controlfile from autobackup; <br /> rman&gt; quit <br /><br /> # Rman tartget / <br /> rman&gt; alter database mount; / / control has been restored, you can mount up <br /> rman&gt; alter database resetlogs; / / will get an error, it should recover database, will report a problem controlfile. <br /> rman&gt; recover database; <br /> rman&gt; alter database open resetlogs; <br /><br /> spfile is lost, restoration <br /> startup nomount; <br /> set dbid 9815108; <br /> restore spfile from autobackup; <br /> shutdown immediate; <br /> set dbid 9815108; <br /> startup; <br /><br /> redolog file restoration of lost <br /> # Sqlplus / as sysdba <br /> SQL&gt; shutdown immediate; <br /> SQL&gt; startup mount; <br /> SQL&gt; recover database until cancel; <br /> SQL&gt; alter database open resetlogs; <br /> SQL&gt; select * from dual; <br /><br /> datafile missing <br /> rman&gt; sql &quot;alter database datafile 3 offline&quot;; 3 to datafile number <br /> rman&gt; report schema; <br /> rman&gt; restore datafile 3 <br /> rman&gt; recover datafile 3 <br /> rman&gt; sql &quot;alter database datafile 3 online&quot;; <br /><br /> Table space recovery: <br /> rman&gt; sql &quot;alter tablespace users offline&quot;; <br /> Or <br /> rman&gt; sql &quot;alter tablespace users offline immediate&quot;; <br /> rman&gt; restore tablespace users; <br /> rman&gt; recover tablespace users; <br /> rman&gt; sql &quot;alter tablespace users online&quot;; <br /><br /> There is a problem in the database, complete recovery of non-catalog form <br /> startup nomount; <br /> restore controlfile from autobackup; <br /> alter database mount; <br /> restore database; <br /> recover database; <br /> alter database open resetlogs; <br /><br /> <strong>8, catalog Database</strong> <br /> 1, used to create catalog tablespace<br /> SQL&gt; create tablespace rman_ts datafile &#39;/ u01/oracle/rmants.dbf&#39; size 20M; <br /><br /> 2, and authorized users to create RMAN <br /> SQL&gt; create user rman identified by rman default <br /> tablespace rman_ts quota unlimited on rman_ts; <br /><br /> SQL&gt; grant recovery_catalog_owner to rman; <br /> SQL&gt; grant connect to rman; <br /><br /> SQL&gt; desc dba_users; / / view the user information <br /> SQL&gt; select username, account_status from dba_users; <br /> SQL&gt; desc dba_sys_privs <br /> SQL&gt; select * from dba_sys_privs where grantee = &#39;resource&#39;; <br /> See authorized resources, the access permissions <br /> SQL&gt; select * from dba_sys_privs where grantee = &#39;recovery_catalog_owner&#39;; <br /><br /> Or: <br /> SQL&gt; create user rman identified by rman; <br /> SQL&gt; alter user rman default tablespace rman_ts temporary tablespace temp; <br /> SQL&gt; alter user rman quota unlimited on rman_ts; <br /> SQL&gt; grant connect, resource, recovery_catalog_owner to rman; <br /> SQL&gt; exit; <br /><br /> 3, create a recovery catalog <br /> # Rman catalog rman / rman <br /> rman&gt; create catalog tablespace rman_ts; <br /> rman&gt; exit <br /><br /> 4, the use of the media server side, the registered catalog database configuration media server side tnsname connected to the catalog rman Library <br /> # Rman target / catalog rman / rman @ tnsname <br /> rman&gt; register database; <br /><br /> Transfer from: http://blog.chinaunix.net/u3/105031/showart_2083922.html				<h5>Related Posts</h5>
		<div id="smilar">
		<ul>
					<li><a href="http://www.kods.net/listener-and-ezconnect/" title="LISTENER and EZCONNECT">LISTENER and EZCONNECT</a> 2009-04-01 21:42:20</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/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/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/rman-backup-summary-of-knowledge-transfer/</wfw:commentRss>
	</item>
		<item>
		<title>Oracle database backup methods -2</title>
		<link>http://www.kods.net/oracle-database-backup-methods-2/</link>
		<comments>http://www.kods.net/oracle-database-backup-methods-2/#comments</comments>
		<pubDate>Thu, 10 Jul 2008 06:10:35+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle Database]]></category>
		<category><![CDATA[quot]]></category>
<category><![CDATA[oracle]]></category>
<category><![CDATA[oracle database]]></category>
<category><![CDATA[sid]]></category>
<category><![CDATA[parameters]]></category>
<category><![CDATA[log archive]]></category>
<category><![CDATA[logs]]></category>
<category><![CDATA[thread number]]></category>
<category><![CDATA[database backup]]></category>
<category><![CDATA[backup methods]]></category>
<category><![CDATA[sequence number]]></category>
<category><![CDATA[space log]]></category>
<category><![CDATA[arc]]></category>
<category><![CDATA[backup program]]></category>
<category><![CDATA[prerequisite]]></category>
<category><![CDATA[available space]]></category>
<category><![CDATA[archive format]]></category>
<category><![CDATA[program implementation]]></category>
<category><![CDATA[database activity]]></category>
<category><![CDATA[log space]]></category>
		<guid isPermaLink="true">http://www.kods.net/oracle-database-backup-methods-2/</guid>
		<description><![CDATA[4, hot backup program implementation 4.1 prerequisite for hot backup the database: the database is running in archive mode Oracle database redo log records in the database on all activities. LGWR background process in a cyclic way of writing these lo ...]]></description>
		<content:encoded><![CDATA[4, hot backup program implementation <br /> 4.1 prerequisite for hot backup the database: the database is running in archive mode <br /> Oracle database redo log records in the database on all activities. LGWR background process in a cyclic way of writing these log files, from the first redo log to the next, until the group&#39;s last one, then starting from the first to write a log. <br /> In the non-archive mode, when the write cycle after the last log file, it overrides the first log. Therefore, the non-archive mode, the only way is to use the database to restore the cold backup. <br /> In archive mode, when the redo log is full, a background process to read all of ARCH redo logs, and then writes the log file. Therefore, you can use the hot backup and point of recovery. In the archive log mode, if the purpose of archiving the log space is full, the database activity will be suspended only after the release of some space, the database can continue to run. Usually, background_dump_destination will produce a trace file to display the archive problem. <br /> Oracle database installed by default to run in non archive mode, the following steps can be non-archive mode to archive mode: <br /> (1) Edit the parameter file init.ora, set the following parameters <br /> # Set the database auto-archiving <br /> log_archive_start = true <br /> # Set the archive log file directory, the directory has been established in advance and have a lot of available space <br /> log_archive_dest_1 = &quot;location =% oracle_base% \ oradata \% oracle_sid% \ archive&quot; <br /> # Set the archive log file name format. % S that sequence number,% t thread number, said. <br /> log_archive_format = &quot;% oracle_sid%% T% S. ARC&quot; <br /> (2) run the following command in svrmgrl <br /> svrmgrl&gt; connect internal / YOUR_PASSWORD <br /> svrmgrl&gt; shutdown immediate; <br /> svrmgrl&gt; startup mount exclusive; <br /> svrmgrl&gt; alter database archivelog; <br /> svrmgrl&gt; alter database open; <br /> svrmgrl&gt; shutdown immediate; <br /> (3) implementation of the database cold backup when the database is running in archive mode, the database recovery process requires the use of cold backup, archive logs are required. <br /> (4) start the database normally and make sure the database is running in archive mode <br /> svrmgrl&gt; startup; <br /> svrmgrl&gt; select * from v $ database; its log_mode will show whether the database archiving mode <br /> svrmgrl&gt; archive log list; will also show whether the database archiving mode if the Oracle database running in archive mode, when the database maintenance, you may need to suspend the database archiving, after completion of maintenance, and then restart the archive mode. Through the following steps to archive mode conversion from non-archive mode: <br /> svrmgrl&gt; connect internal / YOUR_PASSWORD <br /> svrmgrl&gt; shutdown immediate; <br /> svrmgrl&gt; startup mount exclusive; <br /> svrmgrl&gt; alter database noarchivelog; <br /> svrmgrl&gt; alter database open; <br /> svrmgrl&gt; select * from v $ database; its log_mode will show whether the archive mode of the database <br /> svrmgrl&gt; archive log list; will also show whether the database archiving mode <br /> 4.2 database hot backup steps (1) copy init.ora file to the backup directory (Data File in the database is turned off after start). <br /> (2) will need to place the backup of a tablespace begin backup mode. <br /> (3) the use of ocopy.exe copy of the table space and then put the end of the table space backup mode (ocopy.exe not be used to directly copy the database file online). <br /> (4) of the database for each table space steps 2 and 3 (you can view dba_tablespaces and v $ datafile view the database in which table spaces and data files). <br /> (5) by svrmgrl perform archive log list command to get the current log sequence number, starting from the oldest online log sequence to the current log sequence for the online redo logs should be part of hot backup. <br /> (6) svrmgrl run alter system switch logfile; command to force log switch to log all are archived. <br /> (7) using the alter database backup controlfile to trace; command was a backup control file, go to% oracle_base% \ admin \% oracle_sid% \ udump directory to find the latest trace file, including all the command control file rebuild. <br /> (8) command using the windows nt in the Copy from% log_archive_dest% archived log files to the backup directory. <br /> 4.3 hot backup database script file hotbak.cmd <br /> rem Oracle database hot backup script file name hotbak.cmd <br /> rem for the Windows NT/2000 platform, has been rigorous testing, we can test! ! ! <br /> rem This script is executed, in c: \ temp directory created minlog.sql, minlog.cmd, <br /> rem tblspc01.sql, tblspc02.sql, control01.sql, control02.sql, <br /> rem maxlog.sql, maxlog.cmd, archive.sql, archive.cmd in 10 script file. <br /> rem set the SID <br /> set oracle_sid = tmq <br /> rem set the initialization parameter file <br /> set my_pfile = e: \ oracle \ ora81 \ database \ inittmq.ora <br /> set my_ifile = E: \ Oracle \ ADMIN \ tmq \ pfile \ init.ora <br /> rem set the archive log directory <br /> set my_archive_dir = E: \ Oracle \ ORADATA \ tmq \ archive <br /> rem set the password for internal account <br /> set my_password = oracle <br /> the establishment of temporary directory rem <br /> mkdir c: \ temp<br /> set my_temp = c: \ temp <br /> rem create a backup directory, the directory must have enough space for storing the database backup file <br /> mkdir e: \ backup <br /> set my_bakdir = e: \ backup <br /> rem ===== (1) start the backup parameter file ======= <br /> echo Backing up the init.ora file <br /> copy% my_pfile%% my_bakdir% <br /> copy% my_ifile%% my_bakdir% <br /> rem ===== (2) create minlog.sql script for the smallest online redo log sequence number ===== <br /> echo set heading off;&gt;% my_temp% \ minlog.sql <br /> echo set feedback off;&gt;&gt;% my_temp% \ minlog.sql <br /> echo spool% my_temp% \ minlog.cmd;&gt;&gt;% my_temp% \ minlog.sql <br /> echo select &#39;set minlog_value =&#39; ^ | ^ | min (sequence #) from v $ log where upper (status) = upper (&#39;INACTIVE&#39;);&gt;&gt;% my_temp% \ minlog.sql <br /> echo spool off;&gt;&gt;% my_temp% \ minlog.sql <br /> echo select &#39;exit;&#39; from dual;&gt;&gt;% my_temp% \ minlog.sql <br /> echo exit;&gt;&gt;% my_temp% \ minlog.sql <br /> rem ===== (3) run minlog.sql to genrate minlog.cmd ======== <br /> sqlplus internal /% my_password% @% my_temp% \ minlog.sql <br /> rem ===== (4) run minlog.cmd to set minlog_value ======== <br /> call% my_temp% \ minlog.cmd <br /> rem === (5) create tblspc01.sql script used to generate the data file backup script file tblspc02.sql === <br /> echo set heading off;&gt;% my_temp% \ tblspc01.sql <br /> echo set feedback off;&gt;&gt;% my_temp% \ tblspc01.sql <br /> echo spool% my_temp% \ tblspc02.sql;&gt;&gt;% my_temp% \ tblspc01.sql <br /> echo select &#39;connect internal /% my_password%;&#39; from dual;&gt;&gt;% my_temp% \ tblspc01.sql <br /> echo select &#39;alter tablespace&#39; ^ | ^ | tablespace_name ^ | ^ | &#39;begin backup;&#39; from dba_tablespaces;&gt;&gt;% my_temp% \ tblspc01.sql <br /> echo select &#39;host start / wait ocopy&#39; ^ | ^ | file_name ^ | ^ | &#39;% my_bakdir%;&#39; from dba_data_files;&gt;&gt;% my_temp% \ tblspc01.sql <br /> echo select &#39;alter tablespace&#39; ^ | ^ | tablespace_name ^ | ^ | &#39;end backup;&#39; from dba_tablespaces;&gt;&gt;% my_temp% \ tblspc01.sql <br /> echo spool off;&gt;&gt;% my_temp% \ tblspc01.sql <br /> echo select &#39;exit;&#39; from dual;&gt;&gt;% my_temp% \ tblspc01.sql <br /> echo exit;&gt;&gt;% my_temp% \ tblspc01.sql <br /> rem ===== (6) run tblspc01.sql to genrate tblspc02.sql ======== <br /> sqlplus internal /% my_password% @% my_temp% \ tblspc01.sql <br /> rem ===== (7) on svrmgrl run tblspc02.sql to backup the datafiles ======== <br /> svrmgrl @% my_temp% \ tblspc02.sql <br /> rem ===== (8) script to create maxlog.sql maximize the online redo log sequence number ===== <br /> echo set heading off;&gt;% my_temp% \ maxlog.sql <br /> echo set feedback off;&gt;&gt;% my_temp% \ maxlog.sql <br /> echo spool% my_temp% \ maxlog.cmd;&gt;&gt;% my_temp% \ maxlog.sql <br /> echo select &#39;set maxlog_value =&#39; ^ | ^ | max (sequence #) from v $ log where upper (status) = upper (&#39;CURRENT&#39;);&gt;&gt;% my_temp% \ maxlog.sql <br /> echo spool off;&gt;&gt;% my_temp% \ maxlog.sql <br /> echo select &#39;alter system switch logfile;&#39; from dual;&gt;&gt;% my_temp% \ maxlog.sql <br /> echo select &#39;exit;&#39; from dual;&gt;&gt;% my_temp% \ maxlog.sql <br /> echo exit;&gt;&gt;% my_temp% \ maxlog.sql <br /> rem ===== (9) run maxlog.sql to genrate maxlog.cmd ======== <br /> sqlplus internal /% my_password% @% my_temp% \ maxlog.sql <br /> rem ===== (10) run maxlog.cmd to set maxlog_value ======== <br /> call% my_temp% \ maxlog.cmd <br /> rem == (11) to create control01.sql script used to generate a backup control file script file control02.sql === <br /> echo set heading off;&gt;% my_temp% \ control01.sql <br /> echo set feedback off;&gt;&gt;% my_temp% \ control01.sql <br /> echo spool% my_temp% \ control02.sql;&gt;&gt;% my_temp% \ control01.sql <br /> echo select &#39;connect internal /% my_password%;&#39; from dual;&gt;&gt;% my_temp% \ control01.sql <br /> echo select &#39;alter database backup controlfile to trace;&#39; from dual;&gt;&gt;% my_temp% \ control01.sql <br /> echo spool off;&gt;&gt;% my_temp% \ control01.sql <br /> echo select &#39;exit;&#39; from dual;&gt;&gt;% my_temp% \ control01.sql <br /> echo exit;&gt;&gt;% my_temp% \ control01.sql <br /> rem ===== (12) run control01.sql to genrate control02.sql ======== <br /> sqlplus internal /% my_password% @% my_temp% \ control01.sql <br /> rem ===== (13) on svrmgrl run control02.sql to backup the datafiles ======== <br /> svrmgrl @% my_temp% \ control02.sql <br /> rem ===== (14) to create archive.sql script used to generate the archive log files backup script file archive.cmd ===== <br /> echo set heading off;&gt;% my_temp% \ archive.sql <br /> echo set feedback off;&gt;&gt;% my_temp% \ archive.sql <br /> echo spool% my_temp% \ archive.cmd;&gt;&gt;% my_temp% \ archive.sql <br /> rem only backup and hot backup of this log file related to <br /> echo select &#39;copy&#39; ^ | ^ | name ^ | ^ | &#39;% my_bakdir%&#39; from V_ $ ARCHIVED_LOG where sequence # between% minlog_value% and% maxlog_value% +1;&gt;&gt;% my_temp% \ archive.sql <br /> echo spool off;&gt;&gt;% my_temp% \ archive.sql <br /> echo select &#39;exit;&#39; from dual;&gt;&gt;% my_temp% \ archive.sql <br /> echo exit;&gt;&gt;% my_temp% \ archive.sql <br /> rem ===== (15) run archive.sql to genrate archive.cmd ======== <br /> sqlplus internal /% my_password% @% my_temp% \ archive.sql<br /> rem ===== (16) run archive.cmd to backup the archive log files ======== <br /> call% my_temp% \ archive.cmd <br /> rem ===== the end ====== <br /> echo ===== the hot backup is completed!!! ====== <br /><br /> 4, hot backup program implementation <br /> 4.1 prerequisite for hot backup the database: the database is running in archive mode <br /> Oracle database redo log records in the database on all activities. LGWR background process in a cyclic way of writing these log files, from the first redo log to the next, until the group&#39;s last one, then starting from the first to write a log. <br /> In the non-archive mode, when the write cycle after the last log file, it overrides the first log. Therefore, the non-archive mode, the only way is to use the database to restore the cold backup. <br /> In archive mode, when the redo log is full, a background process to read all of ARCH redo logs, and then writes the log file. Therefore, you can use the hot backup and point of recovery. In the archive log mode, if the purpose of archiving the log space is full, the database activity will be suspended only after the release of some space, the database can continue to run. Usually, background_dump_destination will produce a trace file to display the archive problem. <br /> Oracle database installed by default to run in non archive mode, the following steps can be non-archive mode to archive mode: <br /> (1) Edit the parameter file init.ora, set the following parameters <br /> # Set the database auto-archiving <br /> log_archive_start = true <br /> # Set the archive log file directory, the directory has been established in advance and have a lot of available space <br /> log_archive_dest_1 = &quot;location =% oracle_base% \ oradata \% oracle_sid% \ archive&quot; <br /> # Set the archive log file name format. % S that sequence number,% t thread number, said. <br /> log_archive_format = &quot;% oracle_sid%% T% S. ARC&quot; <br /> (2) run the following command in svrmgrl <br /> svrmgrl&gt; connect internal / YOUR_PASSWORD <br /> svrmgrl&gt; shutdown immediate; <br /> svrmgrl&gt; startup mount exclusive; <br /> svrmgrl&gt; alter database archivelog; <br /> svrmgrl&gt; alter database open; <br /> svrmgrl&gt; shutdown immediate; <br /> (3) implementation of the database cold backup when the database is running in archive mode, the database recovery process requires the use of cold backup, archive logs are required. <br /> (4) start the database normally and make sure the database is running in archive mode <br /> svrmgrl&gt; startup; <br /> svrmgrl&gt; select * from v $ database; its log_mode will show whether the archive mode of the database <br /> svrmgrl&gt; archive log list; will also show whether the database archiving mode if the Oracle database running in archive mode, when the database maintenance, you may need to suspend the database archiving, after completion of maintenance, and then restart the archive mode. Through the following steps to archive mode conversion from non-archive mode: <br /> svrmgrl&gt; connect internal / YOUR_PASSWORD <br /> svrmgrl&gt; shutdown immediate; <br /> svrmgrl&gt; startup mount exclusive; <br /> svrmgrl&gt; alter database noarchivelog; <br /> svrmgrl&gt; alter database open; <br /> svrmgrl&gt; select * from v $ database; its log_mode will show whether the archive mode of the database <br /> svrmgrl&gt; archive log list; will also show whether the database archiving mode <br /> 4.2 database hot backup steps (1) copy init.ora file to the backup directory (Data File in the database is turned off after start). <br /> (2) will need to place the backup of a tablespace begin backup mode. <br /> (3) the use of ocopy.exe copy of the table space and then put the end of the table space backup mode (ocopy.exe not be used to directly copy the database file online). <br /> (4) of the database for each table space steps 2 and 3 (you can view dba_tablespaces and v $ datafile view the database in which table spaces and data files). <br /> (5) by svrmgrl perform archive log list command to get the current log sequence number, starting from the oldest online log sequence to the current log sequence for the online redo logs should be part of hot backup. <br /> (6) svrmgrl run alter system switch logfile; command to force log switch to log all are archived. <br /> (7) using the alter database backup controlfile to trace; command was a backup control file, go to% oracle_base% \ admin \% oracle_sid% \ udump directory to find the latest trace file, including all the command control file rebuild. <br /> (8) command using the windows nt in the Copy from% log_archive_dest% archived log files to the backup directory. <br /> 4.3 hot backup database script file hotbak.cmd <br /> rem Oracle database hot backup script file name hotbak.cmd <br /> rem for the Windows NT/2000 platform, has been rigorous testing, we can test! ! ! <br /> rem This script is executed, in c: \ temp directory created minlog.sql, minlog.cmd, <br /> rem tblspc01.sql, tblspc02.sql, control01.sql, control02.sql, <br /> rem maxlog.sql, maxlog.cmd, archive.sql, archive.cmd in 10 script file. <br /> rem set the SID <br /> set oracle_sid = tmq <br /> rem set the initialization parameter file <br /> set my_pfile = e: \ oracle \ ora81 \ database \ inittmq.ora <br /> set my_ifile = E: \ Oracle \ ADMIN \ tmq \ pfile \ init.ora<br /> rem set the archive log directory <br /> set my_archive_dir = E: \ Oracle \ ORADATA \ tmq \ archive <br /> rem set the password for internal account <br /> set my_password = oracle <br /> the establishment of temporary directory rem <br /> mkdir c: \ temp <br /> set my_temp = c: \ temp <br /> rem create a backup directory, the directory must have enough space for storing the database backup file <br /> mkdir e: \ backup <br /> set my_bakdir = e: \ backup <br /> rem ===== (1) start the backup parameter file ======= <br /> echo Backing up the init.ora file <br /> copy% my_pfile%% my_bakdir% <br /> copy% my_ifile%% my_bakdir% <br /> rem ===== (2) create minlog.sql script for the smallest online redo log sequence number ===== <br /> echo set heading off;&gt;% my_temp% \ minlog.sql <br /> echo set feedback off;&gt;&gt;% my_temp% \ minlog.sql <br /> echo spool% my_temp% \ minlog.cmd;&gt;&gt;% my_temp% \ minlog.sql <br /> echo select &#39;set minlog_value =&#39; ^ | ^ | min (sequence #) from v $ log where upper (status) = upper (&#39;INACTIVE&#39;);&gt;&gt;% my_temp% \ minlog.sql <br /> echo spool off;&gt;&gt;% my_temp% \ minlog.sql <br /> echo select &#39;exit;&#39; from dual;&gt;&gt;% my_temp% \ minlog.sql <br /> echo exit;&gt;&gt;% my_temp% \ minlog.sql <br /> rem ===== (3) run minlog.sql to genrate minlog.cmd ======== <br /> sqlplus internal /% my_password% @% my_temp% \ minlog.sql <br /> rem ===== (4) run minlog.cmd to set minlog_value ======== <br /> call% my_temp% \ minlog.cmd <br /> rem === (5) create tblspc01.sql script used to generate the data file backup script file tblspc02.sql === <br /> echo set heading off;&gt;% my_temp% \ tblspc01.sql <br /> echo set feedback off;&gt;&gt;% my_temp% \ tblspc01.sql <br /> echo spool% my_temp% \ tblspc02.sql;&gt;&gt;% my_temp% \ tblspc01.sql <br /> echo select &#39;connect internal /% my_password%;&#39; from dual;&gt;&gt;% my_temp% \ tblspc01.sql <br /> echo select &#39;alter tablespace&#39; ^ | ^ | tablespace_name ^ | ^ | &#39;begin backup;&#39; from dba_tablespaces;&gt;&gt;% my_temp% \ tblspc01.sql <br /> echo select &#39;host start / wait ocopy&#39; ^ | ^ | file_name ^ | ^ | &#39;% my_bakdir%;&#39; from dba_data_files;&gt;&gt;% my_temp% \ tblspc01.sql <br /> echo select &#39;alter tablespace&#39; ^ | ^ | tablespace_name ^ | ^ | &#39;end backup;&#39; from dba_tablespaces;&gt;&gt;% my_temp% \ tblspc01.sql <br /> echo spool off;&gt;&gt;% my_temp% \ tblspc01.sql <br /> echo select &#39;exit;&#39; from dual;&gt;&gt;% my_temp% \ tblspc01.sql <br /> echo exit;&gt;&gt;% my_temp% \ tblspc01.sql <br /> rem ===== (6) run tblspc01.sql to genrate tblspc02.sql ======== <br /> sqlplus internal /% my_password% @% my_temp% \ tblspc01.sql <br /> rem ===== (7) on svrmgrl run tblspc02.sql to backup the datafiles ======== <br /> svrmgrl @% my_temp% \ tblspc02.sql <br /> rem ===== (8) script to create maxlog.sql maximize the online redo log sequence number ===== <br /> echo set heading off;&gt;% my_temp% \ maxlog.sql <br /> echo set feedback off;&gt;&gt;% my_temp% \ maxlog.sql <br /> echo spool% my_temp% \ maxlog.cmd;&gt;&gt;% my_temp% \ maxlog.sql <br /> echo select &#39;set maxlog_value =&#39; ^ | ^ | max (sequence #) from v $ log where upper (status) = upper (&#39;CURRENT&#39;);&gt;&gt;% my_temp% \ maxlog.sql <br /> echo spool off;&gt;&gt;% my_temp% \ maxlog.sql <br /> echo select &#39;alter system switch logfile;&#39; from dual;&gt;&gt;% my_temp% \ maxlog.sql <br /> echo select &#39;exit;&#39; from dual;&gt;&gt;% my_temp% \ maxlog.sql <br /> echo exit;&gt;&gt;% my_temp% \ maxlog.sql <br /> rem ===== (9) run maxlog.sql to genrate maxlog.cmd ======== <br /> sqlplus internal /% my_password% @% my_temp% \ maxlog.sql <br /> rem ===== (10) run maxlog.cmd to set maxlog_value ======== <br /> call% my_temp% \ maxlog.cmd <br /> rem == (11) to create control01.sql script used to generate a backup control file script file control02.sql === <br /> echo set heading off;&gt;% my_temp% \ control01.sql <br /> echo set feedback off;&gt;&gt;% my_temp% \ control01.sql <br /> echo spool% my_temp% \ control02.sql;&gt;&gt;% my_temp% \ control01.sql <br /> echo select &#39;connect internal /% my_password%;&#39; from dual;&gt;&gt;% my_temp% \ control01.sql <br /> echo select &#39;alter database backup controlfile to trace;&#39; from dual;&gt;&gt;% my_temp% \ control01.sql <br /> echo spool off;&gt;&gt;% my_temp% \ control01.sql <br /> echo select &#39;exit;&#39; from dual;&gt;&gt;% my_temp% \ control01.sql <br /> echo exit;&gt;&gt;% my_temp% \ control01.sql <br /> rem ===== (12) run control01.sql to genrate control02.sql ======== <br /> sqlplus internal /% my_password% @% my_temp% \ control01.sql <br /> rem ===== (13) on svrmgrl run control02.sql to backup the datafiles ======== <br /> svrmgrl @% my_temp% \ control02.sql <br /> rem ===== (14) to create archive.sql script used to generate the archive log files backup script file archive.cmd ===== <br /> echo set heading off;&gt;% my_temp% \ archive.sql <br /> echo set feedback off;&gt;&gt;% my_temp% \ archive.sql <br /> echo spool% my_temp% \ archive.cmd;&gt;&gt;% my_temp% \ archive.sql <br /> rem only backup and hot backup of this log file related to <br /> echo select &#39;copy&#39; ^ | ^ | name ^ | ^ | &#39;% my_bakdir%&#39; from V_ $ ARCHIVED_LOG where sequence # between% minlog_value% and% maxlog_value% +1;&gt;&gt;% my_temp% \ archive.sql <br /> echo spool off;&gt;&gt;% my_temp% \ archive.sql <br /> echo select &#39;exit;&#39; from dual;&gt;&gt;% my_temp% \ archive.sql<br /> echo exit;&gt;&gt;% my_temp% \ archive.sql <br /> rem ===== (15) run archive.sql to genrate archive.cmd ======== <br /> sqlplus internal /% my_password% @% my_temp% \ archive.sql <br /> rem ===== (16) run archive.cmd to backup the archive log files ======== <br /> call% my_temp% \ archive.cmd <br /> rem ===== the end ====== <br /> echo ===== the hot backup is completed!!! ======				<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-database-backup-methods-2/</wfw:commentRss>
	</item>
		<item>
		<title>The oracle set to archive mode is the method</title>
		<link>http://www.kods.net/the-oracle-set-to-archive-mode-is-the-method/</link>
		<comments>http://www.kods.net/the-oracle-set-to-archive-mode-is-the-method/#comments</comments>
		<pubDate>Wed, 25 Jun 2008 15:53:40+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[oracle]]></category>
<category><![CDATA[base oracle]]></category>
<category><![CDATA[oracle user]]></category>
<category><![CDATA[log archive]]></category>
<category><![CDATA[init]]></category>
<category><![CDATA[database log]]></category>
<category><![CDATA[sqlplus nolog]]></category>
<category><![CDATA[directory name]]></category>
<category><![CDATA[conn]]></category>
<category><![CDATA[open sql]]></category>
<category><![CDATA[log sequence]]></category>
<category><![CDATA[true scope]]></category>
<category><![CDATA[backup server]]></category>
<category><![CDATA[sid number]]></category>
<category><![CDATA[archive format]]></category>
<category><![CDATA[archive directory]]></category>
<category><![CDATA[folders]]></category>
<category><![CDATA[master server]]></category>
<category><![CDATA[variable settings]]></category>
<category><![CDATA[permission note]]></category>
		<guid isPermaLink="true">http://www.kods.net/the-oracle-set-to-archive-mode-is-the-method/</guid>
		<description><![CDATA[The oracle set to archive mode is the method First manually create archive directory, start adjusting the way oracle oracle set to archive mode Manually create the archive directory on the main server $ Cd $ ORACLE_BASE # $ ORACLE_BASE points to the  ...]]></description>
		<content:encoded><![CDATA[<table cellspacing="0" cellpadding="0" width="760" border="0"><tbody><tr><td align="middle" height="25"> <strong>The oracle set to archive mode is the method</strong> <br /></td></tr><tr><td align="middle" height="9"></td></tr><tr><td align="middle"><table cellspacing="0" cellpadding="0" width="740" border="0"><tbody><tr><td width="740"><br /> First manually create archive directory, start adjusting the way oracle oracle set to archive mode <br /><br /> Manually create the archive directory on the main server <br /><br /> $ Cd $ ORACLE_BASE # $ ORACLE_BASE points to the directory is / opt / oracle /, can be found in the specific ORACLE user environment variable settings <br /><br /> $ Mkdir-p oradata / szdb / archive # szdb the directory name under the SID number for the specified database, in fact, this directory can be arbitrary <br /><br /> $ Mkdir-p oradata / szdb / standbyarchive # if the master server may be used as backup server, then set up the directory <br /><br /> [Oracle @ cqcncdb szdb] $ sqlplus / nolog <br /><br /> SQL&gt; conn / as sysdba; <br /><br /> Connected. <br /><br /> SQL&gt; startup mount; <br /><br /> SQL&gt; alter database archivelog; <br /><br /> SQL&gt; archive log start; <br /><br /> SQL&gt; archive log list; <br /><br /> SQL&gt; alter database open; <br /><br /> SQL&gt; alter system set LOG_ARCHIVE_DEST_1 = &#39;LOCATION = / oracle / oradata / szdb / archive&#39;; # / oracle / oradata / szdb / archive must be in front of mkdir-p oradata / szdb / archive path set up exactly the same operation <br /><br /> SQL&gt; alter system set log_archive_format = &#39;% t_% s.dbf&#39; scope = spfile; <br /><br /> SQL&gt; alter system set log_archive_start = true scope = spfile; <br /><br /> Restart the database, the changes to take effect the results <br /><br /> SQL&gt; shutdown immediate; <br /><br /> This archive mode <br /><br /> SQL&gt; startup <br /><br /> SQL&gt; archive log list; <br /><br /> Database log mode Archive Mode <br /><br /> Automatic archival Enabled <br /><br /> Archive destination / oracle / oradata / szdb / archive <br /><br /> Oldest online log sequence 565 <br /><br /> Next log sequence to archive 567 <br /><br /> Current log sequence 567 <br /><br /> Alter system set above operation will be in the database spfile@sid.ora and init@sid.ora file Add the following parameters <br /><br /> *. Log_archive_dest_1 = &#39;LOCATION = / oracle / oradata / szdb / archive&#39; <br /><br /> *. Log_archive_format = &#39;% t_% s.dbf&#39; <br /><br /> *. Log_archive_start = TRUE <br /><br /> Note: *. log_archive_dest_1 defined folders must be real, and oracle user has write permission <br /><br /> Note: @ sid sid number representative of the actual database, such as in the actual operation both the file name is spfileszdb.ora, initszdb.ora <br /><br /></td></tr></tbody></table></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/the-oracle-set-to-archive-mode-is-the-method/</wfw:commentRss>
	</item>
		<item>
		<title>7.4.2 ORACLE database system</title>
		<link>http://www.kods.net/7-4-2-oracle-database-system/</link>
		<comments>http://www.kods.net/7-4-2-oracle-database-system/#comments</comments>
		<pubDate>Tue, 17 Jun 2008 14:27:11+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle Database]]></category>
		<category><![CDATA[table space]]></category>
<category><![CDATA[database log]]></category>
<category><![CDATA[file group]]></category>
<category><![CDATA[configuration parameters]]></category>
<category><![CDATA[database systems]]></category>
<category><![CDATA[oracle database system]]></category>
<category><![CDATA[maximum number]]></category>
<category><![CDATA[transaction processing]]></category>
<category><![CDATA[oracle system]]></category>
<category><![CDATA[storage space]]></category>
<category><![CDATA[storage location]]></category>
<category><![CDATA[dest]]></category>
<category><![CDATA[archive format]]></category>
<category><![CDATA[attribute]]></category>
<category><![CDATA[exceptional circumstances]]></category>
<category><![CDATA[information processing]]></category>
<category><![CDATA[group format]]></category>
<category><![CDATA[document destruction]]></category>
<category><![CDATA[spatial dimensions]]></category>
<category><![CDATA[database updates]]></category>
		<guid isPermaLink="true">http://www.kods.net/7-4-2-oracle-database-system/</guid>
		<description><![CDATA[7.4.2 ORACLE database system ORACLE system uses the log file group stored database log. Is known as group, because each log file group can contain multiple log files, these log files are called members of the group. A log file of all the members of t ...]]></description>
		<content:encoded><![CDATA[<h3> <a name="_Toc197099836">7.4.2 ORACLE</a> database system </h3><br /> ORACLE system uses the log file group stored database log. Is known as group, because each log file group can contain multiple log files, these log files are called members of the group. A log file of all the members of the group have the same spatial dimensions, contain the same log information. As a group contains multiple members, so even if a member of the document destruction, the log file group can still be used. The following configuration parameters and database logs related to: <br /><br /> LOGFILE: Set the log file group and its members, the location and storage space. <br /><br /> MAXLOGFILES: setting systems can be set using the maximum number of log files. <br /><br /> MAXLOGMEMBERS: Set the log file for each group contained the largest number of members. <br /><br /> LOG_ARCHIVE_START: Set whether the group automatically archive log files. <br /><br /> LOG_ARCHIVE_MAX_PROCESSES: Set archive log file group is used to process the largest number. <br /><br /> LOG_ARCHIVE_DEST: Set the log file group was archived storage location. <br /><br /> LOG_ARCHIVE_FORMAT: Set archive log files are named group format. <br /><br /><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /?><br /><br /> <strong>1. Does not generate a database log</strong> <br /><br /> In exceptional circumstances, to improve the processing speed of database systems, can make the update transaction processing does not produce log information. In the ORACLE system, can not set the database to make all the tables for the database updates do not generate log information processing. We can change the tables, indexes, materialized views of the property, so that they do not mind in the log mode to update the operation of these objects, will not generate log information. If a table space attribute is changed to not remember the log mode, the table space in the newly created object, have not Ji log properties. <br /><br /> In addition to the table, insert data, use SQL * LOADER tools direct path load, can reduce generation of log information. To delete all records in a table of data, you can first remove the entire table, and then re-create the table. Better approach is to use the truncate table command, the command to delete all records in the table, will not generate log information, Zai Hui Shou same table structure to retain possession of Cipan table space. <br /><br /> <strong>2. Log file archive</strong> <br /><br /> ORACLE database system to support non-archive log archive log and two models, indeed provincial case, the database is in non archive log mode. To make the database is in archive log mode, you can use the command: alter database archivelog change. <br /><br /> In the archive log mode, the system loop to use all of the log file group. Archive the log file group, automatic and manual can be used two ways. <br /><br /> (1) automatic archiving. Set database parameters LOG_ARCHIVE_START = TRUE. <br /><br /> (2) manual archiving. Set database parameters LOG_ARCHIVE_START = FALSE, periodic manual archive log files group. <br /><br /> On the log files automatically or manually archive groups of specific implementation methods can be found in Chapter 9. <br /><br /> <strong>3. Long transaction processing</strong> <br /><br /> ORACLE system, the number of log file groups and members of the group of space dimensions, are not automatically expanded. Can not guarantee that the system always has enough log space, so long transaction completed successfully. Administrators can set up more log file groups, so that group members have more disk space. <br /><br /> Rollback table space in the update transaction processing, storing data to be updated before the image. The greater the amount of data transactions, the more space needed. Therefore, the administrator in dealing with long transaction, the rollback tablespace should ensure there is sufficient space available.				<h5>Related Posts</h5>
		<div id="smilar">
		<ul>
					<li><a href="http://www.kods.net/oracle-database-used-to-maintain-day-to-day-command/" title="Oracle database used to maintain day-to-day command">Oracle database used to maintain day-to-day command</a> 2009-04-06 16:46:33</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/block-oracle-paragraph-reprint/" title="Block Oracle paragraph (reprint)">Block Oracle paragraph (reprint)</a> 2009-03-26 17:41:14</li>
				</ul>
		</div>
		        ]]></content:encoded>
		<wfw:commentRss>http://www.kods.net/7-4-2-oracle-database-system/</wfw:commentRss>
	</item>
		<item>
		<title>oracle9i began studying the problems in, winxp system</title>
		<link>http://www.kods.net/oracle9i-began-studying-the-problems-in-winxp-system/</link>
		<comments>http://www.kods.net/oracle9i-began-studying-the-problems-in-winxp-system/#comments</comments>
		<pubDate>Wed, 28 May 2008 07:05:18+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[oracle]]></category>
<category><![CDATA[oracle home]]></category>
<category><![CDATA[oracle database]]></category>
<category><![CDATA[sid]]></category>
<category><![CDATA[log archive]]></category>
<category><![CDATA[conn]]></category>
<category><![CDATA[default database]]></category>
<category><![CDATA[pfile]]></category>
<category><![CDATA[windows command]]></category>
<category><![CDATA[location data]]></category>
<category><![CDATA[default location]]></category>
<category><![CDATA[archive format]]></category>
<category><![CDATA[cmd]]></category>
<category><![CDATA[oracle service]]></category>
<category><![CDATA[environmental variables]]></category>
<category><![CDATA[database reference]]></category>
<category><![CDATA[oracle 9i documentation]]></category>
<category><![CDATA[homoe]]></category>
<category><![CDATA[theory and practice]]></category>
<category><![CDATA[buses]]></category>
		<guid isPermaLink="true">http://www.kods.net/oracle9i-began-studying-the-problems-in-winxp-system/</guid>
		<description><![CDATA[1, oracle92 installation if a clean machine, generally have their way, and finally through the dbca configuration. If you have previously installed oracle10client and so on, leading to environmental variables affect on oracle92 after, dbca tools such ...]]></description>
		<content:encoded><![CDATA[1, oracle92 installation if a clean machine, generally have their way, and finally through the dbca configuration. <br /> If you have previously installed oracle10client and so on, leading to environmental variables affect on oracle92 after, dbca tools such as configuration will fail. In this case the default sid did not create success, connect / as sysdba when it will pop up: ORA-12560 <br /> Modified methods are: (1) modify the environment variable to start dbca to create the default database, start the service corresponding to sid (I did not do experiments) <br /> (2) the use of oradim Tools: <br /> oradim I did not use it because every time no problem to install oracle, in fact, she was really good, the main features are: <br /> Create, delete, edit, sid, initialization ORACLE_HOMOE \ database \ PWDsid.ORA, modify startmode, specify the pfile <br /> In the cmd in the knock oradim, you can see his parameters, but said two buses, only to create sid, but not initialized pwdsid.ora file, you can conn / as sysdba, but create database, the wrong. startmode in the manual, the manual service in the window start sid services, database does not start, auto, then start the database at the same time. <br /> Here I use the pfile is the default location ORACLE_HOMOE \ database \ initxxx.ora, do not know where the other location designated startup pfile location data is to change the default Note: before the sid that the oracle service is to use windows command sc directly create, start , stop, delete it <br /> 2, create a database reference documentation is the administrator reference.pdf oracle 9i documentation on this step I fee old strength, and fully feel the important theory and practice is more important ah. . . <br /> Reference document Manually Creating an Oracle Database <br /> Parameter file I use the ORACLE_HOME \ admin \ sample \ pfile template under initsmpl.ora do note the following points: <br /> Where all the% xxx% are replaced with the actual path, log_archive_format = ARCH% s.LOG a% is correct. <br /> text_enable = TRUE do not know what mean comment out the <br /> compatible = 8.1.5.0.0 be amended to compatible = 9.2.0.0.0 <br /> Create database again when the above will result in ora-01092 error. <br /> Of course also be other causes, there is an error to see background_dump_dest = F: \ oracle \ product \ 9.2 \ rdbms \ trace <br /> user_dump_dest = F: \ oracle \ product \ 9.2 \ rdbms \ trace log under the general issue can be found. <br /><br /> Examples of the document create database statement, I also posted: <br /><br /><table cellspacing="1" cellpadding="1" summary="" border="1"><tbody><tr><td> CREATE DATABASE mynewdb <br /> USER SYS IDENTIFIED BY pz6r58 <br /> USER SYSTEM IDENTIFIED BY y1tz5p <br /> LOGFILE GROUP 1 (&#39;/ vobs/oracle/oradata/mynewdb/redo01.log&#39;) SIZE 100M, <br /> GROUP 2 (&#39;/ vobs/oracle/oradata/mynewdb/redo02.log&#39;) SIZE 100M, <br /> GROUP 3 (&#39;/ vobs/oracle/oradata/mynewdb/redo03.log&#39;) SIZE 100M <br /> MAXLOGFILES 5 <br /> MAXLOGMEMBERS 5 <br /> MAXLOGHISTORY 1 <br /> MAXDATAFILES 100 <br /> MAXINSTANCES 1 <br /> CHARACTER SET US7ASCII <br /> NATIONAL CHARACTER SET AL16UTF16 <br /> DATAFILE &#39;/ vobs/oracle/oradata/mynewdb/system01.dbf&#39; SIZE 325M REUSE <br /> EXTENT MANAGEMENT LOCAL <br /> DEFAULT TEMPORARY TABLESPACE tempts1 <br /> DATAFILE &#39;/ vobs/oracle/oradata/mynewdb/temp01.dbf&#39; <br /> SIZE 20M REUSE <br /> UNDO TABLESPACE undotbs <br /> DATAFILE &#39;/ vobs/oracle/oradata/mynewdb/undotbs01.dbf&#39; <br /> SIZE 200M REUSE AUTOEXTEND ON NEXT 5120K MAXSIZE UNLIMITED; </td></tr></tbody></table> DEFAULT TEMPORARY TABLESPACE tempts1 below the DATAFILE to change TEMPFILE, for the time being related to undo tablespace comment, then say, create the database successfully. . . plsql to try to connect. <br /><br /> Pfile experiment below to make a change: <br /> oradim-shutdown-sid demo <br /> oradim-delete-sid demo <br /> Delete all files created oradata create database under there control file. . . <br /> C: \&gt; oradim-new-sid demo-intpwd trout80-startmode manual-pfile F: \ oracle \ pro <br /> duct \ 9.2 \ admin \ demo \ pfile \ initdemo.ora <br /> sqlplus / nolog <br /> conn / as sysdba <br /> startup nomount <br /> Implementation of the create database, error, and, hey, the parameter file or use the default, it seems oradim specified pfile and startup pfile location has nothing to do with the Arab-Israeli <br /> shutdown immediate <br /> Delete the relevant file just created <br /> startup nomount pfile = F: \ oracle \ product \ 9.2 \ admin \ demo \ pfile \ initdemo.ora <br /> The construction of library success. . . <br /><br /> About undo tablespace <br /> To create database undo tablespace comment below modify the parameters open the file add <br /> undo_management = auto <br /> undo_tablespace = undotbs <br /> Note undo_tablespace = undotbs necessarily have to create database in the name of the same ah. . . <br /> Create success. . . . . . <br /><br /> Postscript: oracle official documents because I do not metalnk account, only to open the document from the Internet, choose pdf open, you can save into a book. Another test procedure is not very well, when finally in sight, we must look at log files subconscious. create database statement is saved in a file in the @ path in the sqlplus call, so save the changes after the create database statement, and convenient. However, note that the last modification time &quot;;&quot;, I often forget<br /> Out several mistakes were really feeling it. . . However, DBA is also not a man of God, I hope you a hard. <br /> mail: yixia800924@163.com				<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/oracle9i-began-studying-the-problems-in-winxp-system/</wfw:commentRss>
	</item>
		<item>
		<title>Oracle Diagnostic Case-Spfile case of a (turn)</title>
		<link>http://www.kods.net/oracle-diagnostic-case-spfile-case-of-a-turn/</link>
		<comments>http://www.kods.net/oracle-diagnostic-case-spfile-case-of-a-turn/#comments</comments>
		<pubDate>Tue, 19 Sep 2006 18:05:32+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[log archive]]></category>
<category><![CDATA[oracle rdbms]]></category>
<category><![CDATA[instance name]]></category>
<category><![CDATA[target]]></category>
<category><![CDATA[pool size]]></category>
<category><![CDATA[oracle instance]]></category>
<category><![CDATA[system parameters]]></category>
<category><![CDATA[job queue]]></category>
<category><![CDATA[remote login]]></category>
<category><![CDATA[db domain]]></category>
<category><![CDATA[database version]]></category>
<category><![CDATA[sun microsystems inc]]></category>
<category><![CDATA[sun microsystems]]></category>
<category><![CDATA[archive format]]></category>
<category><![CDATA[true background]]></category>
<category><![CDATA[max users]]></category>
<category><![CDATA[problem database]]></category>
<category><![CDATA[problem diagnosis]]></category>
<category><![CDATA[new mail]]></category>
<category><![CDATA[system checks]]></category>
		<guid isPermaLink="true">http://www.kods.net/oracle-diagnostic-case-spfile-case-of-a-turn/</guid>
		<description><![CDATA[Oracle Diagnostic Case-Spfile Case 1 rn Information Note: System: SUN Solaris8 Database Version: 9203 Problem Description: Engineering staff reports, database restart does not start normally. Examination revealed UNDO tablespace is lost. Problem diag ...]]></description>
		<content:encoded><![CDATA[Oracle Diagnostic Case-Spfile Case 1 <br /> rn <br /> Information Note: <br /> System: SUN Solaris8 <br /> Database Version: 9203 <br /> Problem Description: Engineering staff reports, database restart does not start normally. Examination revealed UNDO tablespace is lost. <br /> Problem diagnosis and resolution process is as follows: <br /> rn <br /> 1. Alert.log landing system checks the file <br /> rn <br /> Check alert.log file is usually the first step in diagnosing the problem database <br /> rn <br /> SunOS 5.8 <br /> rn <br /> login: root <br /> Password: <br /> Last login: Thu Apr 1 11:39:16 from 10.123.7.162 <br /> Sun Microsystems Inc. SunOS 5.8 Generic Patch October 2001 <br /> You have new mail. <br /> # Su - oracle <br /> bash-2.03 $ cd $ ORACLE_BASE / admin / * / bdump <br /> bash-2.03 $ vi *. log <br /> rn <br /> &quot;alert_gzhs.log&quot; 7438 lines, 283262 characters <br /> Sat Feb 7 20:30:06 2004 <br /> Starting ORACLE instance (normal) <br /> LICENSE_MAX_SESSION = 0 <br /> LICENSE_SESSIONS_WARNING = 0 <br /> SCN scheme 3 <br /> Using log_archive_dest parameter default value <br /> LICENSE_MAX_USERS = 0 <br /> SYS auditing is disabled <br /> Starting up ORACLE RDBMS Version: 9.2.0.3.0. <br /> System parameters with non-default values: <br /> processes = 150 <br /> timed_statistics = TRUE <br /> shared_pool_size = 1157627904 <br /> large_pool_size = 16777216 <br /> java_pool_size = 637534208 <br /> control_files = / u01/oradata/gzhs/control01.ctl, <br /> / u02/oradata/gzhs/control02.ctl, <br /> / u03/oradata/gzhs/control03.ctl <br /> db_block_size = 8192 <br /> db_cache_size = 2516582400 <br /> compatible = 9.2.0.0.0 <br /> log_archive_start = TRUE <br /> log_archive_dest_1 = LOCATION = / u06/oradata/gzhs/arch <br /> log_archive_format =% t_% s.dbf <br /> db_file_multiblock_read_count = 16 <br /> fast_start_mttr_target = 300 <br /> undo_management = AUTO <br /> undo_tablespace = UNDOTBS1 <br /> undo_retention = 10800 <br /> remote_login_passwordfile = EXCLUSIVE <br /> db_domain = <br /> instance_name = gzhs <br /> dispatchers = (PROTOCOL = TCP) (SERVICE = gzhsXDB) <br /> job_queue_processes = 10 <br /> hash_join_enabled = TRUE <br /> background_dump_dest = / oracle / admin / gzhs / bdump <br /> user_dump_dest = / oracle / admin / gzhs / udump <br /> core_dump_dest = / oracle / admin / gzhs / cdump <br /> sort_area_size = 524288 <br /> db_name = gzhs <br /> open_cursors = 300 <br /> star_transformation_enabled = FALSE <br /> query_rewrite_enabled = FALSE <br /> pga_aggregate_target = 838860800 <br /> aq_tm_processes = 1 <br /> PMON started with pid = 2 <br /> DBW0 started with pid = 3 <br /> LGWR started with pid = 4 <br /> CKPT started with pid = 5 <br /> SMON started with pid = 6 <br /> &quot;alert_gzhs.log&quot; 7438 lines, 283262 characters <br /> USER: terminating instance due to error 30012 <br /> Instance terminated by USER, pid = 26433 <br /> ORA-1092 signalled during: ALTER DATABASE OPEN ... <br /> Thu Apr 1 11:11:08 2004 <br /> Starting ORACLE instance (normal) <br /> LICENSE_MAX_SESSION = 0 <br /> LICENSE_SESSIONS_WARNING = 0 <br /> SCN scheme 3 <br /> Using log_archive_dest parameter default value <br /> LICENSE_MAX_USERS = 0 <br /> SYS auditing is disabled <br /> Starting up ORACLE RDBMS Version: 9.2.0.3.0. <br /> System parameters with non-default values: <br /> processes = 150 <br /> timed_statistics = TRUE <br /> shared_pool_size = 1157627904 <br /> large_pool_size = 16777216 <br /> java_pool_size = 637534208 <br /> control_files = / u01/oradata/gzhs/control01.ctl, / u02/oradata/gzhs/control02.ctl, / u03/oradata/gzhs/control03.ctl <br /> db_block_size = 8192 <br /> db_cache_size = 2516582400 <br /> compatible = 9.2.0.0.0 <br /> log_archive_start = TRUE <br /> log_archive_dest_1 = LOCATION = / u06/oradata/gzhs/arch <br /> log_archive_format =% t_% s.dbf <br /> db_file_multiblock_read_count = 16 <br /> fast_start_mttr_target = 300 <br /> undo_management = AUTO <br /> undo_tablespace = UNDOTBS1 <br /> undo_retention = 10800 <br /> remote_login_passwordfile = EXCLUSIVE <br /> db_domain = <br /> instance_name = gzhs <br /> dispatchers = (PROTOCOL = TCP) (SERVICE = gzhsXDB) <br /> job_queue_processes = 10 <br /> hash_join_enabled = TRUE <br /> background_dump_dest = / oracle / admin / gzhs / bdump <br /> user_dump_dest = / oracle / admin / gzhs / udump <br /> core_dump_dest = / oracle / admin / gzhs / cdump <br /> sort_area_size = 524288 <br /> db_name = gzhs <br /> open_cursors = 300 <br /> star_transformation_enabled = FALSE <br /> query_rewrite_enabled = FALSE <br /> pga_aggregate_target = 838860800 <br /> aq_tm_processes = 1 <br /> PMON started with pid = 2 <br /> DBW0 started with pid = 3 <br /> LGWR started with pid = 4 <br /> CKPT started with pid = 5 <br /> SMON started with pid = 6 <br /> RECO started with pid = 7 <br /> CJQ0 started with pid = 8 <br /> Thu Apr 1 11:11:13 2004 <br /> starting up 1 shared server (s) ... <br /> QMN0 started with pid = 9 <br /> Thu Apr 1 11:11:13 2004 <br /> starting up 1 dispatcher (s) for network address&#39; (ADDRESS = (PARTIAL = YES) (PROTOCOL = TCP ))&#39;... <br /> ARCH: STARTING ARCH PROCESSES <br /> ARC0 started with pid = 12 <br /> ARC0: Archival started <br /> ARC1 started with pid = 13 <br /> Thu Apr 1 11:11:13 2004 <br /> ARCH: STARTING ARCH PROCESSES COMPLETE<br /> Thu Apr 1 11:11:13 2004 <br /> ARC0: Thread not mounted <br /> Thu Apr 1 11:11:13 2004 <br /> ARC1: Archival started <br /> ARC1: Thread not mounted <br /> Thu Apr 1 11:11:14 2004 <br /> ALTER DATABASE MOUNT <br /> Thu Apr 1 11:11:18 2004 <br /> Successful mount of redo thread 1, with mount id 1088380178. <br /> Thu Apr 1 11:11:18 2004 <br /> Database mounted in Exclusive Mode. <br /> Completed: ALTER DATABASE MOUNT <br /> Thu Apr 1 11:11:27 2004 <br /> alter database open <br /> Thu Apr 1 11:11:27 2004 <br /> Beginning crash recovery of 1 threads <br /> Thu Apr 1 11:11:27 2004 <br /> Started first pass scan <br /> Thu Apr 1 11:11:28 2004 <br /> Completed first pass scan <br /> 1 redo blocks read, 0 data blocks need recovery <br /> Thu Apr 1 11:11:28 2004 <br /> Started recovery at <br /> Thread 1: logseq 177, block 2, scn 0.33104793 <br /> Recovery of Online Redo Log: Thread 1 Group 3 Seq 177 Reading mem 0 <br /> Mem # 0 errs 0: / u01/oradata/gzhs/redo03.log <br /> Thu Apr 1 11:11:28 2004 <br /> Completed redo application <br /> Thu Apr 1 11:11:28 2004 <br /> Ended recovery at <br /> Thread 1: logseq 177, block 3, scn 0.33124794 <br /> 0 data blocks read, 0 data blocks written, 1 redo blocks read <br /> Crash recovery completed successfully <br /> Thu Apr 1 11:11:28 2004 <br /> LGWR: Primary database is in CLUSTER CONSISTENT mode <br /> Thread 1 advanced to log sequence 178 <br /> Thread 1 opened at log sequence 178 <br /> Current log # 1 seq # 178 mem # 0: / u01/oradata/gzhs/redo01.log <br /> Successful open of redo thread 1. <br /> Thu Apr 1 11:11:28 2004 <br /> ARC0: Evaluating archive log 3 thread 1 sequence 177 <br /> Thu Apr 1 11:11:28 2004 <br /> ARC0: Beginning to archive log 3 thread 1 sequence 177 <br /> Creating archive destination LOG_ARCHIVE_DEST_1: &#39;/ u06/oradata/gzhs/arch/1_177.dbf&#39; <br /> Thu Apr 1 11:11:28 2004 <br /> SMON: enabling cache recovery <br /> ARC0: Completed archiving log 3 thread 1 sequence 177 <br /> Thu Apr 1 11:11:28 2004 <br /> Errors in file / oracle/admin/gzhs/udump/gzhs_ora_27781.trc: <br /> ORA-30012: \ 263 \ 267 \ 317 \ 373 \ 261 \ 355 \ 277 \ 325 \ 274 \ 344 &#39;UNDOTBS1&#39; \ 262 \ 273 \ 264 \ 346 \ 324 \ 332 \ 273 \ 362 \ 300 \ 340 \ 320 \ 315 \ 262 \ 273 \ 325 \ 375 \ 310 \ <br /> 267 <br /> Thu Apr 1 11:11:28 2004 <br /> Error 30012 happened during db open, shutting down database <br /> USER: terminating instance due to error 30012 <br /> Instance terminated by USER, pid = 27781 <br /> ORA-1092 signalled during: alter database open ... <br /> : q <br /> rn <br /><br /> rn <br /> ............. <br /> rn <br /><br /> rn <br /><br /> In the alert log shows the database in the Open at the end of the state because of an error abort. <br /> rn <br /> 2. Attempt to restart the database <br /> rn <br /><br /> rn <br /> bash-2.03 $ sqlplus &quot;/ as sysdba&quot; SQL * Plus: Release 9.2.0.3.0 - Production on Thursday, April 1 11:43:52 2004 <br /> rn <br /> Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved. <br /> rn <br /> Been connected to the idle routine. <br /> rn <br /> SQL&gt; startup <br /> ORACLE instance started. <br /> rn <br /> Total System Global Area 4364148184 bytes <br /> Fixed Size 736728 bytes <br /> Variable Size 1845493760 bytes <br /> Database Buffers 2516582400 bytes <br /> Redo Buffers 1335296 bytes <br /> The database load is completed. <br /> ORA-01092: ORACLE routine to terminate. Forced disconnect <br /> rn <br /> ............. <br /> rn <br /> Engineering staff reports reproduce the problem. <br /> rn <br /> 3. Check the data file <br /> bash-2.03 $ cd / u01 / oradata/gzhsbash-2.03 $ ls-ltotal 55702458-rw-r ----- 1 oracle dba 1073750016 Apr 1 11:44 UNDOTBS2.dbf-rw-r----- 1 oracle dba 1073750016 Apr 1 11:44 WAP12_BILLINGDETAIL.dbf-rw-r----- 1 oracle dba 1073750016 Apr 1 11:44 WAP12_MAIN.dbf-rw-r----- 1 oracle dba 2097160192 Apr 1 11:44 WAP12_MAIN10 . dbf-rw-r ----- 1 oracle dba 2097160192 Apr 1 11:44 WAP12_MAIN11.dbf-rw-r----- 1 oracle dba 2097160192 Apr 1 11:44 WAP12_MAIN2.dbf-rw-r--- --- 1 oracle dba 2097160192 Apr 1 11:44 WAP12_MAIN3.dbf-rw-r----- 1 oracle dba 2097160192 Apr 1 11:44 WAP12_MAIN4.dbf-rw-r----- 1 oracle dba 2097160192 Apr 1 11:44 WAP12_MAIN5.dbf-rw-r----- 1 oracle dba 2097160192 Apr 1 11:44 WAP12_MAIN6.dbf-rw-r----- 1 oracle dba 2097160192 Apr 1 11:44 WAP12_MAIN7.dbf - rw-r ----- 1 oracle dba 2097160192 Apr 1 11:44 WAP12_MAIN8.dbf-rw-r----- 1 oracle dba 2097160192 Apr 1 11:44 WAP12_MAIN9.dbf-rw-r----- 1 oracle dba 1073750016 Apr 1 11:44 WAP12_MVIEW.dbf-rw-r----- 1 oracle dba 1073750016 Mar 24 17:15 WAP12_TEMP1.dbf ................. ..................... <br /> rn <br /> Is found documents UNDOTBS2.dbf <br /> rn <br /> 4. Mount the database, check the system parameters <br /> rn <br /> bash-2.03 $ sqlplus &quot;/ as sysdba&quot; <br /> SQL&gt; startup mount; <br /> ORACLE instance started. <br /> Total System Global Area 4364148184 bytes <br /> Fixed Size 736728 bytes <br /> Variable Size 1845493760 bytes <br /> Database Buffers 2516582400 bytes <br /> Redo Buffers 1335296 bytes <br /> The database load is completed. <br /> SQL&gt; select name from v $ datafile; <br /> NAME <br /> -------------------------------------------------- ------------------------------<br /> / u01/oradata/gzhs/system01.dbf <br /> / u01/oradata/gzhs/cwmlite01.dbf <br /> / u01/oradata/gzhs/drsys01.dbf <br /> / u01/oradata/gzhs/example01.dbf <br /> / u01/oradata/gzhs/indx01.dbf <br /> / u01/oradata/gzhs/odm01.dbf <br /> / u01/oradata/gzhs/tools01.dbf <br /> / u01/oradata/gzhs/users01.dbf <br /> / u01/oradata/gzhs/xdb01.dbf <br /> ......................... <br /> / u01/oradata/gzhs/UNDOTBS2.dbf <br /><br /> Has selected 23 rows. <br /> SQL&gt; <br /> SQL&gt; show parameter undo <br /> NAME TYPE VALUE <br /> ------------------------------------ ----------- --- --------------------------- <br /> undo_management string AUTO <br /> undo_retention integer 10800 <br /> undo_suppress_errors boolean FALSE undo_tablespace string UNDOTBS1 <br /> SQL&gt; show parameter spfile <br /> NAME TYPE VALUE <br /> ------------------------------------ ----------- --- --------------------------- spfile string <br /> ...................................... <br /> rn <br /><br /> rn <br /> Found that the system does not use spfile, and the initialization parameter setting of the undo tablespace for UNDOTBS1 <br /> rn <br /> 5. Check Parameter File <br /> rn <br /><br /> rn <br /><br /> bash-2.03 $ cd $ ORACLE_HOME / dbs <br /> bash-2.03 $ ls <br /> init.ora initgzhs.ora initgzhs.ora.old orapwgzhs <br /> initdw.ora initgzhs.ora.hurray lkGZHS snapcf_gzhs.f <br /> bash-2.03 $ vi initgzhs.ora <br /> &quot;initgzhs.ora&quot; [Incomplete last line] 105 lines, 3087 characters <br /> ################################################## # # # Copyright (c) 1991, 2001, 2002 by Oracle Corporation ################################### ################# <br /> ########################################### # Archive ##### ###################################### log_archive_dest_1 = &#39;LOCATION = / u06/oradata/gzhs / arch &#39;log_archive_format =% t_% s.dbf <br /> log_archive_start = true <br /> ########################################### # Cache and I / O # ########################################## db_block_size = 8192 db_cache_size = 2516582400 db_file_multiblock_read_count = 16 ########################################### # Cursors and Library Cache # ########################################## open_cursors = 300 ..... ................. <br /> ########################################### # System Managed Undo and Rollback Segments ########################################### undo_management = AUTO undo_retention = 10800 undo_tablespace = UNDOTBS1 <br /> : q !............. <br /> rn <br /><br /> rn <br /><br /> This setting is extremely suspicious. <br /> Suspect that the actual database parameter file, and set the discrepancies. <br /> rn <br /> 6. Again, check the alert file search operation for the UNDO tablespace <br /> rn <br /> The first part, create a database of information: <br /> rn <br /><br /> rn <br /><br /> Sat Feb 7 20:30:12 2004 <br /> CREATE DATABASE gzhs <br /> MAXINSTANCES 1 <br /> MAXLOGHISTORY 1 <br /> MAXLOGFILES 5 <br /> MAXLOGMEMBERS 3 <br /> MAXDATAFILES 100 <br /> DATAFILE &#39;/ u01/oradata/gzhs/system01.dbf&#39; SIZE 500M REUSE AUTOEXTEND ON NEXT 10240K MAXSIZE UNLIMITED <br /> EXTENT MANAGEMENT LOCAL <br /> DEFAULT TEMPORARY TABLESPACE TEMP TEMPFILE &#39;/ u01/oradata/gzhs/temp01.dbf&#39; SIZE 1000M REUSE AUTOEXTEND <br /> ON NEXT 250M MAXSIZE UNLIMITED <br /> UNDO TABLESPACE &quot;UNDOTBS1&quot; DATAFILE &#39;/ u01/oradata/gzhs/undotbs01.dbf&#39; SIZE 1000M REUSE AUTOEXTEND ON <br /> NEXT 100M MAXSIZE UNLIMITED CHARACTER SET ZHS16GBK NATIONAL CHARACTER SET AL16UTF16 LOGFILE GROUP 1 ( &#39;/ u01/oradata/gzhs/redo01.log&#39;) SIZE 256M, GROUP 2 ( &#39;/ u01/oradata/gzhs/redo02.log&#39;) SIZE 256M, GROUP 3 ( &#39;/ u01/oradata/gzhs/redo03.log&#39;) SIZE 256M ............. <br /> rn <br /><br /> rn <br /> Note that this is also referred to two kinds of materials on the OCP to create one of the ways UNDO tablespace <br /> rn <br /> The second part, found in the records to create UNDOTBS2 information: <br /> rn <br /><br /> rn <br /><br /> Wed Mar 24 20:20:58 2004 <br /> / * OracleOEM * / CREATE UNDO TABLESPACE &quot;UNDOTBS2&quot; <br /> DATAFILE &#39;/ u01/oradata/gzhs/UNDOTBS2.dbf&#39; SIZE 1024M AUTOEXTEND ON NEXT 100M MAXSIZE UNLIMITED <br /> Wed Mar 24 20:22:37 2004 <br /> Created Undo Segment _SYSSMU11 $ <br /> Created Undo Segment _SYSSMU12 $ <br /> Created Undo Segment _SYSSMU13 $ <br /> Created Undo Segment _SYSSMU14 $ <br /> Created Undo Segment _SYSSMU15 $ <br /> Created Undo Segment _SYSSMU16 $ <br /> Created Undo Segment _SYSSMU17 $ <br /> Created Undo Segment _SYSSMU18 $ <br /> Created Undo Segment _SYSSMU19 $ <br /> Created Undo Segment _SYSSMU20 $<br /> Completed: / * OracleOEM * / CREATE UNDO TABLESPACE &quot;UNDOTBS2&quot; Wed Mar 24 20:24:25 2004 Undo Segment 11 Onlined Undo Segment 12 Onlined Undo Segment 13 Onlined Undo Segment 14 Onlined Undo Segment 15 Onlined Undo Segment 16 Onlined Undo Segment 17 Onlined Undo Segment 18 Onlined Undo Segment 19 Onlined Undo Segment 20 Onlined Successfully onlined Undo Tablespace 15. Undo Segment 1 Offlined Undo Segment 2 Offlined Undo Segment 3 Offlined Undo Segment 4 Offlined Undo Segment 5 Offlined Undo Segment 6 Offlined Undo Segment 7 Offlined Undo Segment 8 Offlined Undo Segment 9 Offlined Undo Segment 10 Offlined Undo Tablespace 1 successfully switched out .............. <br /> rn <br /><br /> rn <br /> Part III, the new UNDO tablespace be applied <br /> rn <br /> Wed Mar 24 20:24:25 2004 <br /> ALTER SYSTEM SET undo_tablespace = &#39;UNDOTBS2&#39; SCOPE = MEMORY; <br /> rn <br /> We found that the problem here, created a new UNDO tablespace later, since the use of the pfile file, modify the entry into force only on the current instance, the operation has forgotten to modify the pfile file. <br /> rn <br /> If you are using spfile, change the default range is both, will also modify the spfile file, you can avoid the above problems. <br /> rn <br /> The fourth section, delete the information UNDOTBS1 <br /> rn <br /> Wed Mar 24 20:25:01 2004 <br /> / * OracleOEM * / DROP TABLESPACE &quot;UNDOTBS1&quot; INCLUDING CONTENTS AND DATAFILES CASCADE CONSTRAINTS <br /> Wed Mar 24 20:25:03 2004 <br /> Deleted file / u01/oradata/gzhs/undotbs01.dbf <br /> Completed: / * OracleOEM * / DROP TABLESPACE &quot;UNDOTBS1&quot; INCLUDI ............. <br /> This again re-start the database when the question arises, pfile can not find defined UNDOTBS1 and operation is a long time ago, no one can recall, or even not know what people&#39;s operations. <br /> 7. Change pfile, start the database <br /> rn <br /> Modify the undo tablespace <br /> ########################################### <br /> # System Managed Undo and Rollback Segments <br /> ########################################### <br /> undo_management = AUTO <br /> undo_retention = 10800 <br /> undo_tablespace = UNDOTBS2 <br /> rn <br /> .... <br /> rn <br /> bash-2.03 $ sqlplus &quot;/ as sysdba&quot; <br /> SQL&gt; select * from v $ version; <br /> rn <br /> BANNER <br /> -------------------------------------------------- -------------- <br /> Oracle9i Enterprise Edition Release 9.2.0.3.0 - 64bit Production <br /> PL / SQL Release 9.2.0.3.0 - Production <br /> CORE 9.2.0.3.0 Production <br /> TNS for Solaris: Version 9.2.0.3.0 - Production <br /> NLSRTL Version 9.2.0.3.0 - Production <br /> rn <br /> SQL&gt; exit <br /> Here we can see that using the spfile can avoid the trouble of manually modify the pfile file, reducing the possibility of making mistakes. <br /> rn <br /> Since Oracle9i provides us with this new feature, we should learn to use it.				<h5>Related Posts</h5>
		<div id="smilar">
		<ul>
					<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-deadlock-related/" title="Oracle deadlock related">Oracle deadlock related</a> 2009-03-30 16:46:54</li>
					<li><a href="http://www.kods.net/oracle-locking-mechanism-reprint/" title="Oracle locking mechanism (reprint)">Oracle locking mechanism (reprint)</a> 2009-03-28 05:20:43</li>
					<li><a href="http://www.kods.net/turning-optimization-oracle-article/" title="Turning optimization oracle article">Turning optimization oracle article</a> 2009-03-26 21:39:35</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/oracle-diagnostic-case-spfile-case-of-a-turn/</wfw:commentRss>
	</item>
		<item>
		<title>Oracle9i initialization parameter Chinese note (1)</title>
		<link>http://www.kods.net/oracle9i-initialization-parameter-chinese-note-1/</link>
		<comments>http://www.kods.net/oracle9i-initialization-parameter-chinese-note-1/#comments</comments>
		<pubDate>Mon, 14 Aug 2006 22:33:51+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[quot]]></category>
<category><![CDATA[log archive]]></category>
<category><![CDATA[format description]]></category>
<category><![CDATA[sequence number]]></category>
<category><![CDATA[initialization parameter]]></category>
<category><![CDATA[text string]]></category>
<category><![CDATA[log sequence]]></category>
<category><![CDATA[alter system]]></category>
<category><![CDATA[archiving]]></category>
<category><![CDATA[sql syntax]]></category>
<category><![CDATA[dest]]></category>
<category><![CDATA[archive format]]></category>
<category><![CDATA[file names]]></category>
<category><![CDATA[max processes]]></category>
<category><![CDATA[manual intervention]]></category>
<category><![CDATA[null string]]></category>
<category><![CDATA[thread id]]></category>
<category><![CDATA[log target]]></category>
<category><![CDATA[archive user]]></category>
<category><![CDATA[valid path]]></category>
		<guid isPermaLink="true">http://www.kods.net/oracle9i-initialization-parameter-chinese-note-1/</guid>
		<description><![CDATA[To automatically enable this goal (on the assumption that the properties of alternate targets must be valid). log_archive_dest_state_9: Note: identify a specific target of the most recent log archive user-defined state. Value range: ENABLE - If the t ...]]></description>
		<content:encoded><![CDATA[To automatically enable this goal (on the assumption that the properties of alternate targets must be valid). <br /> log_archive_dest_state_9: <br /> Note: identify a specific target of the most recent log archive user-defined state. <br /> Value range: ENABLE - If the target attribute is valid, to enable archive log target; DEFER - even if the target attribute and effective, but also delay in processing archive log target; or ALTERNATE - Delay in processing an archive log target, until the failure of another goal lead to an automatic enable this goal (on the assumption that the properties of alternate targets must be valid). <br /> Log_archive_start: <br /> Note: n is only in the database in a &quot;archive log&quot; mode, where applicable. It is specified redo log is automatically or manually copy the. The recommended value is TRUE, that the implementation of automatic archiving; otherwise would require manual intervention, use the ALTER SYSTEM ARCHIVE LOG ... command to stop the routine hangs. <br /> Value range: TRUE | FALSE <br /> Default Value: FALSE <br /> log_archive_duplex_dest: <br /> Description: Specifies LOG_ARCHIVE_DEST another outside the archive target. In Oracle8i Enterprise Edition, this parameter is LOG_ARCHIVE_DEST_n replaced. <br /> Value range: a NULL string or any valid path or device name, except for the original partition. <br /> Default: NULL <br /> log_archive_format: <br /> Description: LOG_ARCHIVE_FORMAT only in the database is in &quot;Archive Log&quot; mode situations. Text string with the variable% s (log sequence number), and% t (thread ID), in combination, is used to specify the archive redo log files the only file names. The string is attached to the LOG_ARCHIVE_DEST parameters. <br /> Value range: any valid file name. <br /> Default value: According to the operating system may be <br /> log_archive_max_processes: <br /> Description: Specifies the required number of ARCH processes. If LOG_ARCHIVE_START = TRUE, the value can be assessed in the routine starts; <br /> You can also via SQL * Plus or SQL syntax when calling ARCH process evaluation. <br /> Value range: 1 - 10 (including endpoints) of any integer. <br /> Default value: 1 <br /> log_archive_dest_2: <br /> Description: The five local (designated LOCATION) or remote (Designated SERVICE) target location in the second, <br /> Archived redo log files can be copied on the location of these goals. This parameter is only in the Enterprise Edition oracle8i database or later version of the database effectively. <br /> Value range: The syntax is (null_string | SERVICE = tnsnames-service | LOCATION = directory-spec) [MANDATORY | OPTIONAL] [REOPEN = integer] <br /> Default: NULL <br /> log_archive_min_succeed_dest: <br /> Note: defined in the log file can be overwritten before it must be copied into the minimum number of goals. The value should be greater than or equal to the number of targets LOG_ARCHIVE_DEST_n in MANDATORY. <br /> Value range: 1 - 5 (if LOG_ARCHIVE_DEST and LOG_ARCHIVE_DUPLEX_DEST common use would be limited to 1-2). <br /> Default value: 1 <br /> log_archive_trace: <br /> Description: Control the output generated by the process of archiving logs. This process can be activated by the following <br /> ARCn background process (designated in the output log ARCn) <br /> A clear conversation called foreground process (in the output log is designated as ARCH) or &quot;managed standby database&quot; in the remote file server (RFS) process. <br /> Value range: <br /> 0: Disable archive log tracking (which is the default setting) <br /> 1: The redo log files to track archive <br /> 2: Each archive log archive status of the tracking target <br /> 4: Tracking archiving operational phase <br /> 8: archive logs to track target activities <br /> 16: Tracking a detailed archive log target activities <br /> 32: follow-up archive log target parameter changes <br /> 64: Tracking ARCn process state activities, the default value: 0 <br /> log_archive_dest_10: <br /> log_archive_dest_3: <br /> Description: The five local (designated LOCATION) or remote (Designated SERVICE) target location in the third, <br /> Archived redo log files can be copied on the location of these goals. This parameter is only in the Enterprise Edition oracle8i database or later version of the database effectively. <br /> Value range: The syntax is (null_string | SERVICE = tnsnames-service | LOCATION = directory-spec) [MANDATORY | OPTIONAL] [REOPEN = integer] <br /> Default: NULL <br /> log_archive_dest: <br /> Description: The five local (designated LOCATION) or remote (Designated SERVICE) target location in the third, <br /> Archived redo log files can be copied on the location of these goals. This parameter is only in the Enterprise Edition oracle8i database or later version of the database effectively. <br /> Value range: The syntax is (null_string | SERVICE = tnsnames-service | LOCATION = directory-spec) [MANDATORY | OPTIONAL] [REOPEN = integer] <br /> Default: NULL <br /> log_archive_dest_state_2: <br /> Description: Specifies the appropriate archive log target parameters (only LOG_ARCHIVE_DEST_2) the availability of the state. If enabled, the log target will be archived. If you delay, the target will be excluded from archiving operations until re-enable the outside. <br /> Value range: ENABLE | DEFER <br /> Default: ENABLE <br /> log_archive_dest_5: <br /> Description: The five local (designated LOCATION) or remote (Designated SERVICE) target location in the fifth, archived redo log files can be copied on the location of these goals. This parameter is only in the Enterprise Edition oracle8i database or later version of the database effectively. <br /> Value range: The syntax is (null_string | SERVICE = tn				<h5>Related Posts</h5>
		<div id="smilar">
		<ul>
					<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/use-sqlldr-1-introduction/" title="use sqlldr 1 Introduction">use sqlldr 1 Introduction</a> 2009-03-27 19:39:01</li>
					<li><a href="http://www.kods.net/oracle10g-with-cross-platform-endian-transfer/" title="Oracle10g with cross-platform endian transfer">Oracle10g with cross-platform endian transfer</a> 2009-03-14 22:09:48</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/diagnosis-and-principles-of-order/" title="Diagnosis and principles of order">Diagnosis and principles of order</a> 2009-02-25 20:27:28</li>
				</ul>
		</div>
		        ]]></content:encoded>
		<wfw:commentRss>http://www.kods.net/oracle9i-initialization-parameter-chinese-note-1/</wfw:commentRss>
	</item>
		<item>
		<title>The LUNUX created on the server ORACLE DATAGUARD</title>
		<link>http://www.kods.net/the-lunux-created-on-the-server-oracle-dataguard/</link>
		<comments>http://www.kods.net/the-lunux-created-on-the-server-oracle-dataguard/#comments</comments>
		<pubDate>Wed, 19 Jul 2006 00:17:26+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[oracle]]></category>
<category><![CDATA[oracle dataguard]]></category>
<category><![CDATA[parameters]]></category>
<category><![CDATA[log archive]]></category>
<category><![CDATA[main library]]></category>
<category><![CDATA[oracle instance]]></category>
<category><![CDATA[database log]]></category>
<category><![CDATA[global area]]></category>
<category><![CDATA[variable size]]></category>
<category><![CDATA[dbf]]></category>
<category><![CDATA[log sequence]]></category>
<category><![CDATA[file management]]></category>
<category><![CDATA[archive format]]></category>
<category><![CDATA[database load]]></category>
<category><![CDATA[standby machine]]></category>
<category><![CDATA[library log]]></category>
<category><![CDATA[cold test]]></category>
<category><![CDATA[lunux]]></category>
<category><![CDATA[ncfc]]></category>
<category><![CDATA[library system]]></category>
		<guid isPermaLink="true">http://www.kods.net/the-lunux-created-on-the-server-oracle-dataguard/</guid>
		<description><![CDATA[1. Check the primary database is running in archive mode: SQL&gt; archive log list Database log mode Archive Mode Enable automatic archiving Archive destination / arch / ncfc / ncfcarchlog A summary of the earliest log sequence 21 The next archived l ...]]></description>
		<content:encoded><![CDATA[<strong>1. Check the primary database is running in archive mode: <br /></strong> <strong>   </strong> <strong>SQL&gt; archive log list</strong> <br /><br /> <strong>Database log mode Archive Mode</strong> <br /><br /> <strong>Enable automatic archiving</strong> <br /><br /> <strong>Archive destination / arch / ncfc / ncfcarchlog</strong> <br /><br /> <strong>A summary of the earliest log sequence 21</strong> <br /><br /> <strong>The next archived log sequence 23</strong> <br /><br /> <strong>Current log sequence 23</strong> <br /><br /> <strong>SQL&gt; <br /> If you are running in non-archive mode to archive mode to change it because the standby machine used to send archive log data synchronization.</strong> <br /><br /> SQL&gt; shutdown immediat <br /><br /> Database has been closed. <br /><br /> The database has been uninstalled. <br /><br /> <strong>ORACLE instance shut down.</strong> <br /><br /> At this point in the parameter file, add the following parameters: <br /><br /> Log_archive_start = true <br /><br /> Log_archive_dest_1 = &#39;LOCATION = / arch / ncfc / ncfcarchlog&#39; <br /><br /> Log_archive_dest_state_1 = enable <br /><br /> SQL&gt; startup mount <br /><br /> <strong>ORACLE instance started.</strong> <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 /> The database load is completed. <br /><br /> SQL&gt; alter database archivelog; <br /><br /> SQL&gt; alter database open; <br /><br /> 2.  . Preparation of libraries to create control file: <br /><br /> <strong>1, the main library is set to force logging mode <br /> SQL&gt; alter database force logging;</strong> <br /><br /><strong>  </strong> <strong>2, close the main library, do a cold backup</strong> <br /><br /> <strong>3, in the main library to create documents prepared by the library system:</strong> <br /><br /> SQL&gt; alter database create standby controlfile as &#39;path&#39;; <br /><br /> Will create a good backup control file with the cold test prepared to prepare machine <br /><br /> 3, modify the parameters of the main machine, according to documents prepared by <br /><br /> Main Library: <br /><br /> Add the following parameters: <br /><br /> log_archive_start = true <br /><br /> log_archive_format = archive% t_% s.dbf <br /><br /> log_archive_dest = / arch / ncfcarchlog <br /><br /> log_archive_dest_1 = &#39;SERVICE = STANDBY <br /><br /> log_archive_dest_state_1 = enable <br /><br /> Preparation of Library: <br /><br /> log_archive_start = true <br /><br /> log_archive_format = archive% t_% s.dbf <br /><br /> log_archive_dest = / arch / ncfcarchlog <br /><br /> log_archive_dest_state_2 = enable <br /><br /> standby_file_management = AUTO <br /><br /> remote_archive_enable = TRUE <br /><br /> standby_archive_dest = / oradata / ncfc / arch <br /><br /> fal_server = &#39;PRIMARY&#39; <br /><br /> fal_client = &#39;STANDBY&#39; <br /><br /> Which PRIMAYR STANDBY-based connection service names prepared by the library <br /><br /> <strong> Four  . In the prepared base to create the same directory as the main library to be used to store data files and parameter file, if the master database and prepared the path to a different database, you need to set two parameters db_file_name_convert and log_file_name_convert</strong> <br /><br /><strong> </strong><strong> </strong> <strong>Note: If the primary database and standby database data files or online log files are not in the same directory, you need to set the file corresponds to the relationship between the use of db_file_name_convert and log_file_name_convert two parameters. db_file_name_convert instructions:</strong> <br /><br /> <code><strong> Syntax  :</strong></code> <code><strong>DB_FILE_NAME_CONVERT = [()'string1' , 'string2' , 'string3' , 'string4' , ...[]]</strong></code> <br /><br /> <code><strong> For example  :</strong></code> <strong>DB_FILE_NAME_CONVERT = ( &#39;/ dbs/t1 /&#39;,&#39;/ dbs/t1/s_&#39;, &#39;dbs/t2 /&#39;, &#39;dbs/t2/s_&#39;)</strong> <br /><br /> For example: the first 1,3 months for the primary database file name string, the first 2,4 months for the standby database file name string, and so on, the length limitation. <br /><br /> <strong>log_file_name_convert instructions:</strong> <br /><br /> <strong>Syntax: <code><strong>LOG_FILE_NAME_CONVERT = [()'string1' , 'string2' , 'string3' , 'string4' , ...[]]</strong></code></strong> <br /><br /> <code><strong> For example  :</strong></code> <strong>LOG_FILE_NAME_CONVERT = ( &#39;/ dbs/t1 /&#39;,&#39;/ dbs/t1/s_&#39;, &#39;dbs/t2 /&#39;, &#39;dbs/t2/s_&#39;)</strong> <br /><br /> 5, configuration, standby machine TNSNAMES. ORA file <br /><br /> 6 to start a database prepared by machine <br /><br /> $ sqlplus / nolog <br /><br /> <strong>SQL * Plus: Release 9.2.0.1.0 - Production on Tuesday November 15 10:24:51 2005</strong> <br /><br /> Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved <br /><br /> slq&gt; conn / as sysdba <br /><br /> sql&gt; startup nomount pfile = &#39;/ u01/app/../primary.ora&#39; <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 /> sql&gt; alter database mount standby database; <br /><br /> Database has been changed <br /><br /> sql&gt; alter database recover managed standby database disconnect from session; <br /><br /> Database has been changed <br /><br /> 7, check the master database is synchronized <br /><br /> In the main library: <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /?><br /><br /> SQL&gt; alter system switch logfile; <br /><br /> In the prepared libraries see whether the transmitted archive logs prepared by library <br /><br /> See Preparation Library aler log: <br /><br /> In case of application of the following that success: <br /><br /> Media Recovery Log / oradata / ncfc / arch / ARC00020.001 <br /><br /> Media Recovery Log / oradata / ncfc / arch / ARC00021.001 <br /><br /> Media Recovery Waiting for thread 1 seq # 22 <br /><br /> Media Recovery Log / oradata / ncfc / arch / ARC00022.001 <br /><br /> Media Recovery Waiting for thread 1 seq # 23 <br /><br /> Media Recovery Log / oradata / ncfc / arch / ARC00023.001 <br /><br /> Tue Nov 15 12:02:00 2005 <br /><br /> Media Recovery Waiting for thread 1 seq # 24 <br /><br /> At this point, DATAGUARD the successful completion of the database to do gymnastics! ! !				<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/the-lunux-created-on-the-server-oracle-dataguard/</wfw:commentRss>
	</item>
		<item>
		<title>How To Enable / Disable Archive Log Mode on Oracle9i</title>
		<link>http://www.kods.net/how-to-enable-disable-archive-log-mode-on-oracle9i/</link>
		<comments>http://www.kods.net/how-to-enable-disable-archive-log-mode-on-oracle9i/#comments</comments>
		<pubDate>Fri, 23 Jun 2006 22:48:56+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[oracle]]></category>
<category><![CDATA[sid]]></category>
<category><![CDATA[log archive]]></category>
<category><![CDATA[logs]]></category>
<category><![CDATA[lt]]></category>
<category><![CDATA[thread number]]></category>
<category><![CDATA[oracle server]]></category>
<category><![CDATA[db name]]></category>
<category><![CDATA[instances]]></category>
<category><![CDATA[cluster database]]></category>
<category><![CDATA[document id]]></category>
<category><![CDATA[amp]]></category>
<category><![CDATA[oracle 9]]></category>
<category><![CDATA[platforms]]></category>
<category><![CDATA[archive format]]></category>
<category><![CDATA[cluster file system]]></category>
<category><![CDATA[server enterprise]]></category>
<category><![CDATA[raw devices]]></category>
<category><![CDATA[filesystems]]></category>
<category><![CDATA[cfs]]></category>
		<guid isPermaLink="true">http://www.kods.net/how-to-enable-disable-archive-log-mode-on-oracle9i/</guid>
		<description><![CDATA[Theme: How To Enable / Disable Archive Log Mode on Oracle9i Real Application Cluster Document ID: Note: 235,158.1 Type: HOWTO Last revision date: 03-APR-2006 Status: PUBLISHED goal: How to Enable / Disable Archive Log In Real Application Cluster fact ...]]></description>
		<content:encoded><![CDATA[<table border="0" cellpadding="0" cellspacing="6" width="80%"><tbody><tr><td align="right" valign="top"> Theme: </td><td colspan="4" align="left"> <strong>How To Enable / Disable Archive Log Mode on Oracle9i Real Application Cluster</strong> </td></tr><tr><td></td><td align="right" valign="top"> Document ID: </td><td align="left"> <strong>Note: 235,158.1</strong> </td><td align="right" valign="top"> Type: </td><td align="left"> <strong>HOWTO</strong> </td></tr><tr><td></td><td align="right" valign="top"> Last revision date: </td><td align="left"> <strong>03-APR-2006</strong> </td><td align="right" valign="top"> Status: </td><td align="left"> <strong>PUBLISHED</strong> </td></tr></tbody></table><ul><li></li><li> goal: How to Enable / Disable Archive Log In Real Application Cluster </li><li> fact: Oracle Server - Enterprise Edition Oracle 9 </li><li> fact: Oracle9i Real Application Cluster (RAC) </li></ul> <pre>fix:<br /><br />1. Shut down all instances. <br /><br />2. Set the CLUSTER_DATABASE parameter to false on one instance in the parameter <br />file. If you are using the server parameter file, make an SID-specific entry <br />for this, like:<br /><br />&lt;sid1&gt;.CLUSTER_DATABASE= False<br />     &lt;sid2&gt;.CLUSTER_DATABASE= False<br /><br />For Modifying server parameter file (SPFILE) you can refer to :<br />Note:137483.1 How to Modify the Content of an SPFILE Parameter <br />File <br /><br />3. Set the LOG_ARCHIVE_START parameter to true. <br /><br />4. Set the LOG_ARCHIVE_FORMAT and make sure the parameter containing the %t <br />parameter includes the thread number in the archived logfile name. <br /><br />5. Set the cluster database wide LOG_ARCHIVE_DEST_1 parameter in the parameter <br />file as follows: <br /><br />LOG_ARCHIVE_DEST_1='LOCATION=$ORACLE_BASE/oradata/&lt;db_name&gt;/archive'<br /><br />Note : You can multiplex the destination to up to ten locations, refer to:<br />Note:66433.1 Oracle8i - Multiple Archive Destinations and <br />Remote Archival <br /><br />To specify the archive log destinations on a per instance basis for a two-<br />instance cluster database, for example, set the parameter as follows:<br /><br />&lt;sid1&gt;.LOG_ARCHIVE_DEST_1='LOCATION=$ORACLE_BASE/oradata/&lt;db_name&amp;<br />gt;/archive' <br />   &lt;sid2&gt;.LOG_ARCHIVE_DEST_1='LOCATION=$ORACLE_BASE/oradata/&lt;db_name&amp;<br />gt;/archive' <br /><br />Archive logs can be on the shared disk on platforms that support CFS <br />(Cluster File System).  For more information on this see the following note:<br /><br />Note 183408.1<br />  Raw Devices and Cluster Filesystems With Real Application Clusters<br /><br />6. Mount the database in exclusive mode for the instance on which you have set <br />CLUSTER_DATABASE to false. <br /><br />7. Set the database in ARCHIVELOG mode :<br /><br />SQL&gt; ALTER DATABASE ARCHIVELOG;<br /><br />8. Shutdown the instance.<br /><br />9. Change the value of the CLUSTER_DATABASE parameter to true.<br /><br />10. Startup all your instances. <br /><br />To disable archive logging, follow the same steps but use the NOARCHIVELOG <br />clause of the ALTER DATABASE statement.<br /><br /> I wrote an article  <br />http://blog.chinaunix.net/u/7667/showart.php?id=103063<br /> This can be and metalink  notes Together reading  . <br />
</pre>				<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/how-to-enable-disable-archive-log-mode-on-oracle9i/</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 to modify the oracle archive log mode</title>
		<link>http://www.kods.net/rac-to-modify-the-oracle-archive-log-mode/</link>
		<comments>http://www.kods.net/rac-to-modify-the-oracle-archive-log-mode/#comments</comments>
		<pubDate>Thu, 13 Apr 2006 01:06:33+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[oracle]]></category>
<category><![CDATA[implementation]]></category>
<category><![CDATA[parameters]]></category>
<category><![CDATA[sql]]></category>
<category><![CDATA[oracle user]]></category>
<category><![CDATA[log archive]]></category>
<category><![CDATA[open database]]></category>
<category><![CDATA[database instance]]></category>
<category><![CDATA[instances]]></category>
<category><![CDATA[little bit]]></category>
<category><![CDATA[vi editor]]></category>
<category><![CDATA[money]]></category>
<category><![CDATA[archive format]]></category>
<category><![CDATA[oracle archive]]></category>
<category><![CDATA[db2]]></category>
<category><![CDATA[default configuration]]></category>
<category><![CDATA[true change]]></category>
<category><![CDATA[database modifications]]></category>
<category><![CDATA[nfs]]></category>
		<guid isPermaLink="true">http://www.kods.net/rac-to-modify-the-oracle-archive-log-mode/</guid>
		<description><![CDATA[The more distant, and rely on the notes at that time, a simple summary of what, after all, not good to save paper ... ... oracle of all the default configuration is not good, or else the service is unable to sell the money After the database is insta ...]]></description>
		<content:encoded><![CDATA[The more distant, and rely on the notes at that time, a simple summary of what, after all, not good to save paper ... ... <br /><br /> oracle of all the default configuration is not good, or else the service is unable to sell the money <br /><br /> After the database is installed by default, all are non-archive mode so that the security of the database, it is a very good, so the database must be amended to archive mode, single-instance database modifications are relatively simple, and rac if there little bit complicated, the following is a specific process: <br /><br /> Environment: AIX5.2 Oracle9204 <br /><br /> Before implementation, if necessary, make a backup of the database is best <br /><br /> 1, sql&gt; create pfile = &#39;/ home / oracle / t.ora&#39; from spfile; <br /><br /> 2, close all instances of <br /><br /> 3, select one of the examples instance1, modify the newly generated pfile &#39;/ home / oracle / t.ora&#39;, using the vi editor generated pfile, and modify the following parameters: <br /> cluster_database = false <br /><br /> *. log_archive_format = &#39;log% t_% s.rac&#39; <br /><br /> *. log_archive_start = true <br /><br /> db1.log_archive_dest = &#39;LOCATION = / archive1&#39; <br /><br /> db2.log_archive_dest = &#39;LOCATION = / archive2&#39; <br /><br /> / archive1 / archive2 must be two nodes oracle user can read and write, can be achieved through the NFS <br /><br /> 4, modify the parameters after the end to just modify the parameter file to start the database instance instance1 <br /><br /> sql&gt; startup nomount pfile = &#39;/ home / oracle / t.ora&#39; <br /><br /> 5, so that the database to exclusive mode <br /><br /> sql&gt; alter database mount exclusive <br /><br /> 7, to change the archive mode <br /><br /> sql&gt; alter database archivelog <br /><br /> Open Database <br /><br /> sql&gt; alter database open <br /><br /> Now the database is in archive mode, and you can use the archive log list command to see the <br /><br /> 8, shutdown the database <br /><br /> 9, the pfile / home / oracle / t.ora parameter file cluster_database = true change it back <br /><br /> 9, in the instance1 on startup pfile = &#39;/ home / oracle / t.ora&#39; <br /><br /> Update spfile parameters <br /><br /> sql&gt; create spfile = / dev / rlv_spfile from pfile = &#39;/ home / oracle / t.ora&#39; <br /><br /> 10, close the database instance <br /><br /> sql&gt; shutdown immediate <br /><br /> Note that the default directory init $ SID.ora revised to spfile = &#39;/ dev / rlv_spfile&#39; <br /><br /> 11, start two instances of <br /><br /> sql&gt; startup <br /><br /> sql&gt; startup <br /><br /> At this point the database is in archive mode of the <br /><br /> <strong>For the archive formats, automatic archiving, archive paths and other parameters you can alter system set changes, but note that log_archive_format parameter value must be with the% t thread number in order to distinguish between different instances of the generated archive log</strong> <br /><br /> In addition the database is a spfile to start, pay attention to the * / dbs directory init $ sid.ora File Recovery for <br /><br /> spfile = &#39;/ dev / rlv_spfile&#39; <br /><br /> Under the single-instance, modify the database archiving mode: <br /><br /> 1, shutdown immediate <br /><br /> 2, startup mount <br /><br /> 3, alter database archivelog <br /><br /> 4, alter database open				<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-to-modify-the-oracle-archive-log-mode/</wfw:commentRss>
	</item>
		<item>
		<title>Modify the oracle database archiving properties</title>
		<link>http://www.kods.net/modify-the-oracle-database-archiving-properties/</link>
		<comments>http://www.kods.net/modify-the-oracle-database-archiving-properties/#comments</comments>
		<pubDate>Tue, 28 Mar 2006 10:49:11+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle Database]]></category>
		<category><![CDATA[oracle]]></category>
<category><![CDATA[oracle home]]></category>
<category><![CDATA[oracle database]]></category>
<category><![CDATA[sid]]></category>
<category><![CDATA[log archive]]></category>
<category><![CDATA[database oracle]]></category>
<category><![CDATA[database archiving]]></category>
<category><![CDATA[arc]]></category>
<category><![CDATA[dest]]></category>
<category><![CDATA[archive format]]></category>
<category><![CDATA[home database]]></category>
		<guid isPermaLink="true">http://www.kods.net/modify-the-oracle-database-archiving-properties/</guid>
		<description><![CDATA[Modify the properties of the database archiving svrmgrl&gt; shutdown immediate svrmgrl&gt; startup mount svrmgrl&gt; alter database noarchivelog; svrmgrl&gt; alter database open; svrmgrl&gt; shutdown immediate Modify the init file # Log_archive_start ...]]></description>
		<content:encoded><![CDATA[Modify the properties of the database archiving <br /><br /> svrmgrl&gt; shutdown immediate <br /> svrmgrl&gt; startup mount <br /> svrmgrl&gt; alter database noarchivelog; <br /> svrmgrl&gt; alter database open; <br /> svrmgrl&gt; shutdown immediate <br /> Modify the init file <br /> # Log_archive_start = true <br /> # Log_archive_dest =% ORACLE_HOME% \ database \%% ORACLE_SID%% \ archive <br /> # Log_archive_format = &quot;%%% ORACLE_SID%%% T% TS% S. ARC&quot; <br /><br /> svrmgrl&gt; startup				<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/modify-the-oracle-database-archiving-properties/</wfw:commentRss>
	</item>
		<item>
		<title>Hot backup program implementation</title>
		<link>http://www.kods.net/hot-backup-program-implementation/</link>
		<comments>http://www.kods.net/hot-backup-program-implementation/#comments</comments>
		<pubDate>Mon, 27 Mar 2006 13:09:14+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[quot]]></category>
<category><![CDATA[oracle]]></category>
<category><![CDATA[oracle database]]></category>
<category><![CDATA[parameters]]></category>
<category><![CDATA[database recovery]]></category>
<category><![CDATA[log archive]]></category>
<category><![CDATA[logs]]></category>
<category><![CDATA[thread number]]></category>
<category><![CDATA[sequence number]]></category>
<category><![CDATA[arc]]></category>
<category><![CDATA[backup program]]></category>
<category><![CDATA[prerequisite]]></category>
<category><![CDATA[archive format]]></category>
<category><![CDATA[rewrite]]></category>
<category><![CDATA[program implementation]]></category>
<category><![CDATA[database activity]]></category>
<category><![CDATA[log space]]></category>
<category><![CDATA[recovery mode]]></category>
<category><![CDATA[archival database]]></category>
<category><![CDATA[archived issues]]></category>
		<guid isPermaLink="true">http://www.kods.net/hot-backup-program-implementation/</guid>
		<description><![CDATA[A prerequisite for hot backup the database: the database is running in archive mode Oracle database redo log records in the database on all its activities. LGWR background process in a circular way to write these log files, redo logs from the first o ...]]></description>
		<content:encoded><![CDATA[A prerequisite for hot backup the database: the database is running in archive mode <br /> Oracle database redo log records in the database on all its activities. LGWR background process in a circular way to write these log files, redo logs from the first one to the next one, until the group&#39;s last one, then starting from the first to write a log. <br /> In non-archive mode, when the loop writes a log file the last, after the first one on the rewrite log. Therefore, non-archival database recovery mode, the only way is to use cold backup. <br /> In the archive mode, when the redo log is full, an ARCH background process to read all of the redo logs, and then writes archive logs. Therefore, you can use the hot backup and point of recovery. In the archive log mode, if the purpose of archiving the log space is full, the database activity will be suspended, only to release some space, the database can continue to run. Usually, background_dump_destination will produce a trace file to display the archived issues. <br /> Oracle database is installed by default to run in non-archive mode, through the following steps can be converted from non-archive mode archive mode: <br /> (1) Edit parameter file init.ora, set the following parameters <br /> # Set the database auto-archiving <br /> log_archive_start = true <br /> # Set the archive log file directory, the directory must first be established and there are a lot of space available <br /> log_archive_dest_1 = &quot;location =% oracle_base% \ oradata \% oracle_sid% \ archive&quot; <br /> # Set the archive log file name format. % s indicated that sequence number,% t thread number indicated. <br /> log_archive_format = &quot;% oracle_sid%% T% S. ARC&quot; <br /> (2) Run the following command svrmgrl <br /> svrmgrl&gt; connect internal / YOUR_PASSWORD <br /> svrmgrl&gt; shutdown immediate; <br /> svrmgrl&gt; startup mount exclusive; <br /> svrmgrl&gt; alter database archivelog; <br /> svrmgrl&gt; alter database open; <br /> svrmgrl&gt; shutdown immediate; <br /> (3) The implementation of the database cold backup when the database is running in archive mode, the database recovery process requires the use of cold backup, archive logs are required. <br /> (4) normal to start the database and confirm that the database is running in archive mode <br /> svrmgrl&gt; startup; <br /> svrmgrl&gt; select * from v $ database; its log_mode will show whether the database archiving mode <br /> svrmgrl&gt; archive log list; will also show whether the archive mode of the database if the Oracle database is running in archive mode, when the database maintenance, you may need to suspend the database archiving, after the completion of the maintenance and re-start the archive mode. Through the following steps can be converted from a non-archive mode archive mode: <br /> svrmgrl&gt; connect internal / YOUR_PASSWORD <br /> svrmgrl&gt; shutdown immediate; <br /> svrmgrl&gt; startup mount exclusive; <br /> svrmgrl&gt; alter database noarchivelog; <br /> svrmgrl&gt; alter database open; <br /> svrmgrl&gt; select * from v $ database; its log_mode will show whether the database archiving mode <br /> svrmgrl&gt; archive log list; will also show whether the database archiving mode <br /> 4.2 hot backup database, steps (1) copy init.ora file to a backup directory (parameter file starts the database is shut down state). <br /> (2) will need to be placed back up a tablespace begin backup mode. <br /> (3) the use ocopy.exe copy of the table space, and then place the end of the table space backup mode (ocopy.exe can not be used directly on-line copy of the database files). <br /> (4) in the database for each table space steps 2 and 3 (you can view and v $ datafile view dba_tablespaces database which table space and data files). <br /> (5) by svrmgrl perform archive log list command to obtain the current log sequence number, from the oldest online log sequence beginning to the current log sequence for the online redo log should be a hot backup part of it. <br /> (6) svrmgrl perform alter system switch logfile; command to force log switch so that all of the logs have been archived. <br /> (7) use alter database backup controlfile to trace; order to obtain a control file backup, can go to% oracle_base% \ admin \% oracle_sid% \ udump directory to find the latest trace file, including reconstruction of all the command control file. <br /> (8) using windows nt command from the% log_archive_dest% copy archived log files to the backup directory. <br /> 4.3 hot backup database script files hotbak.cmd <br /> rem Oracle database hot backup script file name hotbak.cmd <br /> rem for the Windows NT/2000 platform, has been rigorous testing, we can test! ! ! <br /> rem after the execution of the script in the c: \ temp directory created minlog.sql, minlog.cmd, <br /> rem tblspc01.sql, tblspc02.sql, control01.sql, control02.sql, <br /> rem maxlog.sql, maxlog.cmd, archive.sql, archive.cmd such as 10 script file. <br /> rem set the SID <br /> set oracle_sid = tmq <br /> rem set the initialization parameter file <br /> set my_pfile = e: \ oracle \ ora81 \ database \ inittmq.ora <br /> set my_ifile = E: \ Oracle \ ADMIN \ tmq \ pfile \ init.ora <br /> rem set the archive log directory <br /> set my_archive_dir = E: \ Oracle \ ORADATA \ tmq \ archive <br /> rem set the internal account&#39;s password <br /> set my_password = oracle <br /> the establishment of temporary directory rem <br /> mkdir c: \ temp <br /> set my_temp = c: \ temp<br /> rem create a backup directory, the directory must have a large enough space for the storage of the database backup file <br /> mkdir e: \ backup <br /> set my_bakdir = e: \ backup <br /> rem ===== (1) to start the backup parameter file ======= <br /> echo Backing up the init.ora file <br /> copy% my_pfile%% my_bakdir% <br /> copy% my_ifile%% my_bakdir% <br /> rem ===== (2) to create a script to obtain minlog.sql smallest online redo log sequence number ===== <br /> echo set heading off;&gt;% my_temp% \ minlog.sql <br /> echo set feedback off;&gt;&gt;% my_temp% \ minlog.sql <br /> echo spool% my_temp% \ minlog.cmd;&gt;&gt;% my_temp% \ minlog.sql <br /> echo select &#39;set minlog_value =&#39; ^ | ^ | min (sequence #) from v $ log where upper (status) = upper ( &#39;INACTIVE&#39;);&gt;&gt;% my_temp% \ minlog.sql <br /> echo spool off;&gt;&gt;% my_temp% \ minlog.sql <br /> echo select &#39;exit;&#39; from dual;&gt;&gt;% my_temp% \ minlog.sql <br /> echo exit;&gt;&gt;% my_temp% \ minlog.sql <br /> rem ===== (3) run minlog.sql to genrate minlog.cmd ======== <br /> sqlplus internal /% my_password% @% my_temp% \ minlog.sql <br /> rem ===== (4) run minlog.cmd to set minlog_value ======== <br /> call% my_temp% \ minlog.cmd <br /> rem === (5) to create a script tblspc01.sql backup data files used to generate script file tblspc02.sql === <br /> echo set heading off;&gt;% my_temp% \ tblspc01.sql <br /> echo set feedback off;&gt;&gt;% my_temp% \ tblspc01.sql <br /> echo spool% my_temp% \ tblspc02.sql;&gt;&gt;% my_temp% \ tblspc01.sql <br /> echo select &#39;connect internal /% my_password%;&#39; from dual;&gt;&gt;% my_temp% \ tblspc01.sql <br /> echo select &#39;alter tablespace&#39; ^ | ^ | tablespace_name ^ | ^ | &#39;begin backup;&#39; from dba_tablespaces;&gt;&gt;% my_temp% \ tblspc01.sql <br /> echo select &#39;host start / wait ocopy&#39; ^ | ^ | file_name ^ | ^ | &#39;% my_bakdir%;&#39; from dba_data_files;&gt;&gt;% my_temp% \ tblspc01.sql <br /> echo select &#39;alter tablespace&#39; ^ | ^ | tablespace_name ^ | ^ | &#39;end backup;&#39; from dba_tablespaces;&gt;&gt;% my_temp% \ tblspc01.sql <br /> echo spool off;&gt;&gt;% my_temp% \ tblspc01.sql <br /> echo select &#39;exit;&#39; from dual;&gt;&gt;% my_temp% \ tblspc01.sql <br /> echo exit;&gt;&gt;% my_temp% \ tblspc01.sql <br /> rem ===== (6) run tblspc01.sql to genrate tblspc02.sql ======== <br /> sqlplus internal /% my_password% @% my_temp% \ tblspc01.sql <br /> rem ===== (7) on svrmgrl run tblspc02.sql to backup the datafiles ======== <br /> svrmgrl @% my_temp% \ tblspc02.sql <br /> rem ===== (8) to create a script maxlog.sql maximize online redo log sequence number ===== <br /> echo set heading off;&gt;% my_temp% \ maxlog.sql <br /> echo set feedback off;&gt;&gt;% my_temp% \ maxlog.sql <br /> echo spool% my_temp% \ maxlog.cmd;&gt;&gt;% my_temp% \ maxlog.sql <br /> echo select &#39;set maxlog_value =&#39; ^ | ^ | max (sequence #) from v $ log where upper (status) = upper ( &#39;CURRENT&#39;);&gt;&gt;% my_temp% \ maxlog.sql <br /> echo spool off;&gt;&gt;% my_temp% \ maxlog.sql <br /> echo select &#39;alter system switch logfile;&#39; from dual;&gt;&gt;% my_temp% \ maxlog.sql <br /> echo select &#39;exit;&#39; from dual;&gt;&gt;% my_temp% \ maxlog.sql <br /> echo exit;&gt;&gt;% my_temp% \ maxlog.sql <br /> rem ===== (9) run maxlog.sql to genrate maxlog.cmd ======== <br /> sqlplus internal /% my_password% @% my_temp% \ maxlog.sql <br /> rem ===== (10) run maxlog.cmd to set maxlog_value ======== <br /> call% my_temp% \ maxlog.cmd <br /> rem == (11) to create control01.sql scripts used to generate a backup control file script file control02.sql === <br /> echo set heading off;&gt;% my_temp% \ control01.sql <br /> echo set feedback off;&gt;&gt;% my_temp% \ control01.sql <br /> echo spool% my_temp% \ control02.sql;&gt;&gt;% my_temp% \ control01.sql <br /> echo select &#39;connect internal /% my_password%;&#39; from dual;&gt;&gt;% my_temp% \ control01.sql <br /> echo select &#39;alter database backup controlfile to trace;&#39; from dual;&gt;&gt;% my_temp% \ control01.sql <br /> echo spool off;&gt;&gt;% my_temp% \ control01.sql <br /> echo select &#39;exit;&#39; from dual;&gt;&gt;% my_temp% \ control01.sql <br /> echo exit;&gt;&gt;% my_temp% \ control01.sql <br /> rem ===== (12) run control01.sql to genrate control02.sql ======== <br /> sqlplus internal /% my_password% @% my_temp% \ control01.sql <br /> rem ===== (13) on svrmgrl run control02.sql to backup the datafiles ======== <br /> svrmgrl @% my_temp% \ control02.sql <br /> rem ===== (14) to create archive.sql scripts used to generate the backup archive log files script file archive.cmd ===== <br /> echo set heading off;&gt;% my_temp% \ archive.sql <br /> echo set feedback off;&gt;&gt;% my_temp% \ archive.sql <br /> echo spool% my_temp% \ archive.cmd;&gt;&gt;% my_temp% \ archive.sql <br /> rem only backup and hot backup of this log files related to <br /> echo select &#39;copy&#39; ^ | ^ | name ^ | ^ | &#39;% my_bakdir%&#39; from V_ $ ARCHIVED_LOG where sequence # between% minlog_value% and% maxlog_value% +1;&gt;&gt;% my_temp% \ archive.sql <br /> echo spool off;&gt;&gt;% my_temp% \ archive.sql <br /> echo select &#39;exit;&#39; from dual;&gt;&gt;% my_temp% \ archive.sql <br /> echo exit;&gt;&gt;% my_temp% \ archive.sql <br /> rem ===== (15) run archive.sql to genrate archive.cmd ======== <br /> sqlplus internal /% my_password% @% my_temp% \ archive.sql<br /> rem ===== (16) run archive.cmd to backup the archive log files ======== <br /> call% my_temp% \ archive.cmd <br /> rem ===== the end ====== <br /> echo ===== the hot backup is completed!!! ====== 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/hot-backup-program-implementation/</wfw:commentRss>
	</item>
		<item>
		<title>9i for windows startup to automatic archive log mode</title>
		<link>http://www.kods.net/9i-for-windows-startup-to-automatic-archive-log-mode/</link>
		<comments>http://www.kods.net/9i-for-windows-startup-to-automatic-archive-log-mode/#comments</comments>
		<pubDate>Mon, 09 May 2005 12:28:07+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[oracle]]></category>
<category><![CDATA[test2]]></category>
<category><![CDATA[log archive]]></category>
<category><![CDATA[bd]]></category>
<category><![CDATA[buffers]]></category>
<category><![CDATA[global area]]></category>
<category><![CDATA[dbf]]></category>
<category><![CDATA[true scope]]></category>
<category><![CDATA[ae]]></category>
<category><![CDATA[aa]]></category>
<category><![CDATA[rdbms]]></category>
<category><![CDATA[archive format]]></category>
<category><![CDATA[automatic archive]]></category>
<category><![CDATA[b8]]></category>
<category><![CDATA[b0]]></category>
<category><![CDATA[b2]]></category>
<category><![CDATA[ba]]></category>
		<guid isPermaLink="true">http://www.kods.net/9i-for-windows-startup-to-automatic-archive-log-mode/</guid>
		<description><![CDATA[rn rn rn]]></description>
		<content:encoded><![CDATA[<pre>
SQL&gt; connect sys/test as sysdba;<br /> Connected  .<br />SQL&gt; archive log list;<br /> Database log mode non-archive mode  <br /> Disable the auto-archive  <br /> Archive destination              D:\oracle\ora92\RDBMS<br /> The earliest summary log sequence       5<br /> The current log sequence             7<br />SQL&gt; shutdown<br /> The database is closed  .<br /> The database has been unloaded  .<br />ORACLE  Routine has been turned off  .<br />SQL&gt; startup mount;<br />ORACLE  Routine has been started  .<br /><br />Total System Global Area  135338868 bytes<br />Fixed Size                   453492 bytes<br />Variable Size             109051904 bytes<br />Database Buffers           25165824 bytes<br />Redo Buffers                 667648 bytes<br /> After the database mount  .<br />SQL&gt; alter database archivelog;<br /><br /> The database has changed  .<br /><br />SQL&gt; archive log start;<br /> The statement processed  <br />SQL&gt; archive log list;<br /> Database log mode archive mode  <br /> AutoArchive is enabled  <br /> Archive destination              D:\oracle\ora92\RDBMS<br /> The earliest summary log sequence       5<br /> The next archive log sequence     7<br /> The current log sequence             7<br />SQL&gt; alter system set LOG_ARCHIVE_DEST_1='LOCATION=D:\oracle\oradata\test2\arc<br />ve';<br /><br /> The system has been changed  .<br /><br />SQL&gt; alter system set log_archive_format='%t_%s.dbf' scope=spfile;<br /><br /> The system has been changed  .<br /><br />SQL&gt; shutdown immediate;<br />ORA-01109:  The database is not open  <br /><br /> The database has been unloaded  .<br />ORACLE  Routine has been turned off  .<br />SQL&gt; startup<br />ORACLE  Routine has been started  .<br /><br />Total System Global Area  135338868 bytes<br />Fixed Size                   453492 bytes<br />Variable Size             109051904 bytes<br />Database Buffers           25165824 bytes<br />Redo Buffers                 667648 bytes<br /> After the database mount  .<br /> The database is already open  .<br />SQL&gt; archive log list;<br /> Database log mode archive mode  <br /> Disable the auto-archive  <br /> Archive destination              D:\oracle\oradata\test2\archive<br /> The earliest summary log sequence       5<br /> The next archive log sequence     7<br /> The current log sequence             7<br />SQL&gt; Alter system set log_archive_start=true scope=spfile;<br /><br /> The system has been changed  .<br /><br />SQL&gt;  shutdown immediate;<br /> The database is closed  .<br /> The database has been unloaded  .<br />ORACLE  Routine has been turned off  .<br />SQL&gt;  startup;<br />ORACLE  Routine has been started  .<br /><br />Total System Global Area  135338868 bytes<br />Fixed Size                   453492 bytes<br />Variable Size             109051904 bytes<br />Database Buffers           25165824 bytes<br />Redo Buffers                 667648 bytes<br /> After the database mount  .<br /> The database is already open  .<br />SQL&gt;  archive log list;<br /> Database log mode archive mode  <br /> AutoArchive is enabled  <br /> Archive destination              D:\oracle\oradata\test2\archive<br /> The earliest summary log sequence       5<br /> The next archive log sequence     7<br /> The current log sequence             7<br />SQL&gt;
</pre> rn rn 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/9i-for-windows-startup-to-automatic-archive-log-mode/</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>
