<?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 directory</title>
	<atom:link href="http://www.kods.net/feed/tag/archive-directory/" rel="self" type="application/rss+xml" />
	<link>http://www.kods.net/</link>
	<description>archive directory</description>
	<pubDate>Fri, 30 Jul 2010 03:57:18+0000</pubDate>
	<generator>http://www.kods.net/</generator>
	<language>en</language>
		<item>
		<title>Oracle archive log deletion</title>
		<link>http://www.kods.net/oracle-archive-log-deletion/</link>
		<comments>http://www.kods.net/oracle-archive-log-deletion/#comments</comments>
		<pubDate>Mon, 31 May 2010 06:47:12+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[oracle]]></category>
<category><![CDATA[flashback]]></category>
<category><![CDATA[data recovery]]></category>
<category><![CDATA[oracle user]]></category>
<category><![CDATA[orcl]]></category>
<category><![CDATA[target]]></category>
<category><![CDATA[rman]]></category>
<category><![CDATA[oracle data]]></category>
<category><![CDATA[last resort]]></category>
<category><![CDATA[current system]]></category>
<category><![CDATA[archiving]]></category>
<category><![CDATA[database server]]></category>
<category><![CDATA[archivelog]]></category>
<category><![CDATA[backup tools]]></category>
<category><![CDATA[oracle archive]]></category>
<category><![CDATA[archive directory]]></category>
<category><![CDATA[crosscheck]]></category>
<category><![CDATA[server host]]></category>
<category><![CDATA[maintenance tools]]></category>
<category><![CDATA[chu]]></category>
		<guid isPermaLink="true">http://www.kods.net/oracle-archive-log-deletion/</guid>
		<description><![CDATA[We all know the record in the controlfile archivelog with relevant information for each course are in the OS, delete these files off, after the physical, in our controlfile archivelog still record such information, in the oracle&#39;s OEM manager has a vi]]></description>
		<content:encoded><![CDATA[We all know the record in the controlfile archivelog with relevant information for each course are in the OS, delete these files off, after the physical, in our <br /><br /> controlfile archivelog still record such information, in the oracle&#39;s OEM manager has a visual log show that when we hand-Qing Chu archive directory file, these records have not been removed we are from the controlfile in, but also is the oracle does not know these files does not exist! this time we have to do manual removal, then I passed the following test, you can try this method: <br /><br /> 1. Into rman <br /><br /> 2. Connect target / <br /><br /> 3. Crosscheck archivelog all; <br /><br /> 4. Delete expired archivelog all; <br /><br /> Seen in this time we will definitely go OEM can not see, if you have never done this action, we can compare this action after the action before the controlfile after controlfile size! <br /><br /> ORACLE right to delete archive and recovery space approach <br /><br /> ORACLE right to delete archive and recovery space approach <br /><br /> ORACLE archiving log a regular full, showing / oraarchive this file space occupied by 100% you must complain about the reasons for not filing ORACLE maintenance tools, many people simply delete wrong, wrong, ORACLE there, and very smart, you can delete the file and correct FLASHBACK, but remember, ORACLE ORACLE archive logs for data recovery and backup is important, not a last resort and do not delete the archive log. <br /><br /> Delete archive log process <br /><br /> ORACLE user to log on to the database server host or through a network connection <br /><br /> Into the ORACLE data backup tools <br /><br /> rman target / <br /><br /> Or rman target / @ orcl <br /><br /> In the command window inside the implementation of the <br /><br /> DELETE ARCHIVELOG ALL COMPLETED BEFORE &#39;SYSDATE-7&#39;; <br /><br /> Explain <br /><br /> SYSDATA-7, show that the current system for 7 days, before keyword indicated in the 7 days prior to the log file, if you use the flashback feature, will also delete flashback data. <br /><br /> Similarly, you can delete from 7 days ago to the present all the logs, but this command should think carefully done this remove, the best full-back up the database immediately <br /><br /> DELETE ARCHIVELOG FROM TIME &#39;SYSDATE-7&#39;; <br /><br /> UNIX / LINUX FIND can also be found under the 7 days before the filing of data, use the delete EXEC sub-operation <br /><br /> find / oraarchive-xdev-mtime +7-name &quot;*. dbf&quot;-exec rm-f (); <br /><br /> This still left a not in the RMAN archive management <br /><br /> Still needed in the RMAN command in the implementation of the following two <br /><br /> crosscheck archivelog all; <br /><br /> delete expired archivelog all; <br /><br /> Therefore, the above method is not as easy to use, but with the benefits of FIND is, can conditions, and EXEC children do a lot of action, the more complex functions <br /><br /> 3. A brief overview report obsolete command <br /><br /> Report using the report obsolete command expired backup <br /><br /> RMAN&gt; report obsolete; <br /><br /> RMAN retention policy will be applied to the command <br /><br /> RMAN retention policy is set to redundancy 1 <br /><br /> Report of obsolete backups and copies <br /><br /> Type Key Completion Time Filename / Handle <br /><br /> -------------------- ------ ------------------ ------ -------------- <br /><br /> Backup Set 125 01-NOV-04 <br /><br /> Backup Piece 125 01-NOV-04 / data1/oracle/orabak/full_1_541045804 <br /><br /> Backup Set 131 04-NOV-04 <br /><br /> Backup Piece 131 04-NOV-04 / data1/oracle/orabak/full_AVATAR2_20041104_131 <br /><br /> .... <br /><br /> Backup Set 173 06-DEC-04 <br /><br /> Backup Piece 173 06-DEC-04 / data1/oracle/orabak/full_AVATAR2_20041206_173 <br /><br /> Backup Set 179 11-DEC-04 <br /><br /> Backup Piece 179 11-DEC-04 / data1/oracle/orabak/arch544588206.arc <br /><br /> ..... <br /><br /> Backup Piece 189 17-DEC-04 / data1/oracle/orabak/arch545106606.arc <br /><br /> Backup Set 190 17-DEC-04 <br /><br /> Backup Piece 190 17-DEC-04 / data1/oracle/orabak/arch545106665.arc <br /><br /> Backup Set 191 20-DEC-04 <br /><br /> Backup Piece 191 20-DEC-04 / data1/oracle/orabak/arch_AVATAR2_20041220_194 <br /><br /> Archive Log 2973 20-DEC-04 / opt/oracle/oradata/avatar2/archive/1_2985.dbf <br /><br /> Archive Log 2971 20-DEC-04 / opt/oracle/oradata/avatar2/archive/1_2984.dbf <br /><br /> ..... <br /><br /> Archive Log 2705 17-DEC-04 / opt/oracle/oradata/avatar2/archive/1_2717.dbf <br /><br /> Archive Log 2704 17-DEC-04 / opt/oracle/oradata/avatar2/archive/1_2716.dbf <br /><br /> Archive Log 2703 17-DEC-04 / opt/oracle/oradata/avatar2/archive/1_2715.dbf <br /><br /> Archive Log 2702 17-DEC-04 / opt/oracle/oradata/avatar2/archive/1_2714.dbf <br /><br /> This all-inclusive network transferred from ☆ ★ ★ ☆ - http://www.baoluowanxiang.com reproduced, please indicate the source, tort reserved! <br /> Original link: http://www.baoluowanxiang.com/a/website/database/2010/0522/877.html				<h5>Related Posts</h5>
		<div id="smilar">
		<ul>
					<li><a href="http://www.kods.net/sga-extended-the-principle-of-32bit-oracle/" title="SGA extended the principle of 32bit oracle">SGA extended the principle of 32bit oracle</a> 2009-03-31 09:48:01</li>
					<li><a href="http://www.kods.net/high-availability-oracle-flashback/" title="High Availability Oracle Flashback">High Availability Oracle Flashback</a> 2009-02-26 17:23:02</li>
					<li><a href="http://www.kods.net/an-example-of-the-use-of-tkprof/" title="An example of the use of TKPROF">An example of the use of TKPROF</a> 2009-02-26 01:38:19</li>
					<li><a href="http://www.kods.net/diagnosis-and-principles-of-order/" title="Diagnosis and principles of order">Diagnosis and principles of order</a> 2009-02-25 20:27:28</li>
					<li><a href="http://www.kods.net/oracle-10g-dataguard-configuration-step-by-step/" title="ORACLE 10G dataguard configuration Step by Step">ORACLE 10G dataguard configuration Step by Step</a> 2009-02-16 01:13:55</li>
				</ul>
		</div>
		        ]]></content:encoded>
		<wfw:commentRss>http://www.kods.net/oracle-archive-log-deletion/</wfw:commentRss>
	</item>
		<item>
		<title>Oracle database monitoring shell script used</title>
		<link>http://www.kods.net/oracle-database-monitoring-shell-script-used/</link>
		<comments>http://www.kods.net/oracle-database-monitoring-shell-script-used/#comments</comments>
		<pubDate>Thu, 01 Apr 2010 22:35:22+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle Database]]></category>
		<category><![CDATA[oracle database]]></category>
<category><![CDATA[listener]]></category>
<category><![CDATA[internal error]]></category>
<category><![CDATA[smon]]></category>
<category><![CDATA[oracle error]]></category>
<category><![CDATA[mail]]></category>
<category><![CDATA[shell script]]></category>
<category><![CDATA[basic unix commands]]></category>
<category><![CDATA[database check]]></category>
<category><![CDATA[basic knowledge]]></category>
<category><![CDATA[text mode]]></category>
<category><![CDATA[file error]]></category>
<category><![CDATA[oracle archive]]></category>
<category><![CDATA[archive directory]]></category>
<category><![CDATA[server instance]]></category>
<category><![CDATA[message log]]></category>
<category><![CDATA[cat link]]></category>
<category><![CDATA[performance check]]></category>
<category><![CDATA[search file]]></category>
<category><![CDATA[dsk]]></category>
		<guid isPermaLink="true">http://www.kods.net/oracle-database-monitoring-shell-script-used/</guid>
		<description><![CDATA[8 important script to monitor Oracle database: Check the availability of examples Check the availability of the listener Check the alert log file error message Log file in the store empty place full of old log files before Analysis of table and index for ]]></description>
		<content:encoded><![CDATA[8 important script to monitor Oracle database: <br /> Check the availability of examples <br /><br /> Check the availability of the listener <br /><br /> Check the alert log file error message <br /><br /> Log file in the store empty place full of old log files before <br /><br /> Analysis of table and index for better performance <br /><br /> Check tablespace usage <br /><br /> Identify invalid objects <br /><br /> Monitoring Users and Services <br /><br /> Basic knowledge of Unix DBA required <br /><br /> Basic UNIX commands <br /><br /> Here are some commonly used Unix commands: <br /><br /> ps - display process grep - Search file in a text mode mailx - read or send mail cat - link files or display them cut - choose to display the column awk - pattern matching language df - display remaining Disk Space <br /><br /> The following is a DBA how to use these commands some examples: <br /><br /> Show the available server instance: <br /><br /> $ Ps-ef | grep smonoracle 21832 1 0 Feb 24? 19:05 ora_smon_oradb1oracle 898 1 0 Feb 15? 0:00 ora_smon_oradb2dliu 25199 19038 0 10:48:57 pts / 6 0:00 grep smonoracle 27798 1 0 05:43: 54? 0:00 ora_smon_oradb3oracle 28781 1 0 Mar 03? 0:01 ora_smon_oradb4, <br /><br /> Display monitor is available on the server: <br /><br /> $ Ps-ef | grep listener | grep-v grep (Translator note: grep command should be added-i parameter, which grep-i listener, the role of the parameter is case insensitive, because the listener is sometimes capitalized, which Time will not see results) oracle 23879 1 0 Feb 24? 33:36 / 8.1.7/bin/tnslsnr listener_db1-inheritoracle 27939 1 0 05:44:02? 0:00 / 8.1.7/bin/tnslsnr listener_db2 -inheritoracle 23536 1 0 Feb 12? 4:19 / 8.1.7/bin/tnslsnr listener_db3-inheritoracle 28891 1 0 Mar 03? 0:01 / 8.1.7/bin/tnslsnr listener_db4-inherit <br /><br /> See Oracle archive directory file system usage <br /><br /> $ Df-k | grep oraarch / dev / vx / dsk / proddg / oraarch 71123968 4754872 65850768 7% / u09/oraarch <br /><br /> Statistics alter.log file lines: <br /><br /> $ Cat alert.log | wc-l2984 <br /><br /> Alert.log file lists all the Oracle error message: <br /><br /> $ Grep ORA-alert.logORA-00600: internal error code, arguments: [kcrrrfswda.1], [], [], [], [], [] ORA-00600: internal error code, arguments: [1881], [25,860,496], [25857716], [] <br /><br /> CRONTAB basic <br /><br /> A crontab file contains six fields: <br /><br /> 0-59 minutes <br /><br /> Hours 0-23 <br /><br /> The first few days, 1-31 months <br /><br /> Month 1 - 12 <br /><br /> Week 0 - 6, with 0 = Sunday <br /><br /> Unix Shell command or script <br /><br /> To edit a crontab file, type: Crontab-e <br /><br /> To view a crontab file, enter: <br /><br /> Crontab-l0 4 * * 5 / dba/admin/analyze_table.ksh30 3 * * 3,6 / dba / admin / hotbackup.ksh / dev / null 2&gt; &amp; 1 <br /><br /> In the example above, the first line of the table shows a script at 4:00 am each week, running 5. The second line shows an implementation of the hot backup script every Wednesday and Saturdays 3:00 a.m. to run. <br /><br /> Shell script to monitor a database of commonly used <br /><br /> Here are the eight shell script DBA coverage for 90% of the daily monitoring of work, you may also need to modify the UNIX environment variables. <br /><br /> Check the availability of Oracle instances <br /><br /> oratab file lists all the databases on the server <br /><br /> $ Cat / var / opt / oracle / oratab <br /><br /> # # / Var / opt / oracle / oratab # # <br /><br /> oradb1: / u01/app/oracle/product/8.1.7: Yoradb2: / u01/app/oracle/product/8.1.7: Yoradb3: / u01/app/oracle/product/8.1.7: Noradb4: / u01 / app/oracle/product/8.1.7: Y <br /><br /> The following script checks oratab file lists all of the database, and find out the status of the database (start or turn off) <br /><br /> # # Ckinstance.ksh ORATAB = / var / opt / oracle / oratabecho `date` echo Oracle Database (s) Status `hostname`: db = `egrep-i: Y |: N $ ORATAB | cut-d:-f1 | grep-v # | grep-v * `pslist =` ps-ef | grep pmon `for i in $ db; doecho $ pslist | grep ora_pmon_ $ i&gt; / dev / null 2&gt; $ 1if (($?)); thenecho Oracle Instance - $ i: Downelseecho Oracle Instance - $ i: Upfidone <br /><br /> Use the following command to verify that the script is executed: <br /><br /> $ Chmod 744 ckinstance.ksh $ ls-l ckinstance.ksh-rwxr--r - 1 oracle dba 657 Mar 5 22:59 ckinstance.ksh * <br /><br /> The following are examples of usability report: <br /><br /> $ Ckinstance.kshMon Mar 4 10:44:12 PST 2002 Oracle Database (s) Status for DBHOST server: Oracle Instance - oradb1: UpOracle Instance - oradb2: UpOracle Instance - oradb3: DownOracle Instance - oradb4: Up <br /><br /> Check the availability of Oracle listener <br /><br /> Following a similar script to check the Oracle listener. If the listener is stopped, the script will restart the listener: <br /><br /> cklsnr.sh bin / kshDBALIST = primary.dba @ company.com, another.dba @ company.com; export DBALISTcd / var / opt / oraclerm-f lsnr.exist ps-ef | grep mylsnr | grep-v grep&gt; lsnr. existif [-s lsnr.exist] thenecho elseecho Alert | mailx-s Listener &#39;mylsnr&#39; on `hostname` is down $ DBALIST TNS_ADMIN = / var / opt / oracle; export TNS_ADMINORACLE_SID = db1; export ORACLE_SID ORAENV_ASK = NO; export ORAENV_ASKPATH = $ PATH: / bin: / usr / local / bin; export PATH. oraenvLD_LIBRARY_PATH = $ (ORACLE_HOME) / lib; export LD_LIBRARY_PATHlsnrctl start mylsnrfi <br /><br /> Check Alert Logs (ORA-XXXXX) <br /><br /> Each script uses a number of environmental variables can be put in a profile: <br /><br /> oracle.profile EDITOR = vi; export EDITOR ORACLE_BASE = / u01/app/oracle; export ORACLE_BASE ORACLE_HOME = $ ORACLE_BASE/product/8.1.7; export ORACLE_HOME LD_LIBRARY_PATH = $ ORACLE_HOME / lib; export LD_LIBRARY_PATH TNS_ADMIN = / var / opt / oracle ; export TNS_ADMIN NLS_LANG = american; export NLS_LANG NLS_DATE_FORMAT = &#39;Mon DD YYYY HH24: MI: SS&#39;; export NLS_DATE_FORMAT ORATAB = / var / opt / oracle / oratab; export ORATAB PATH = $ PATH: $ ORACLE_HOME: $ ORACLE_HOME / bin: / usr / ccs / bin: / bin: / usr / bin: / usr / sbin: / sbin: / usr / openwin / bin: / opt / bin:.; export PATH DBALIST = primary.dba @ company.com, another . dba@company.com; export DBALIST <br /><br /> The following script first calls oracle.profile to set all the environment variables. If any of the Oracle error, the script will send a warning to the DBA&#39;s email. <br /><br /> # Ckalertlog.sh ###!/ bin / ksh .. / etc / oracle.profilefor SID in `cat $ ORACLE_HOME / sidlist` docd $ ORACLE_BASE / admin / $ SID / bdumpif [-f alert_ $ (SID). Log] thenmv alert_ $ (SID). log alert_work.logtouch alert_ $ (SID). logcat alert_work.log&gt;&gt; alert_ $ (SID). histgrep ORA-alert_work.log&gt; alert.errfiif [`cat alert.err | wc-l` -gt 0] thenmailx-s $ (SID) ORACLE ALERT ERRORS $ DBALIST &lt;alert.errfirm-f alert.errrm-f alert_work.logdone <br /><br /> Remove the old archive <br /><br /> The following script will be 90% in the log file when the empty capacity of the old archive files: <br /><br /> $ Df-k | grep archFilesystem kbytes used avail capacity Mounted on / dev / vx / dsk / proddg / archive 71123968 30210248 40594232 43% / u08/archive <br /><br /> # Clean_arch.ksh! / Bin / kshdf-k | grep arch&gt; dfk.resultarchive_filesystem = `awk-F &#39;(print $ 6)&#39; dfk.result` archive_capacity = `awk-F &#39;(print $ 5)&#39; dfk.result` if [[$ archive_capacity&gt; 90%]] thenecho Filesystem $ (archive_filesystem) is $ (archive_capacity) filled # try one of the following option depend on your needfind $ archive_filesystem-type f-mtime +2-exec rm-r (); tar rmanfi <br /><br /> Analysis of tables and indexes (to get better performance) <br /><br /> Below I will show if the transmission parameters to a script: <br /><br /> analyze_table.sh # # <br /><br /> bin / ksh # input parameter: 1: password # 2: SID if (($#&lt; 1)) then echo &quot;Please enter oracle user password as the first parameter!&quot; exit 0 fi if (($#&lt; 2)) then echo &quot;Please enter instance name as the second parameter!&quot; exit 0 fi <br /><br /> To pass parameters to execute the script, enter: <br /><br /> $ Analyze_table.sh manager oradb1 <br /><br /> The first part of the script had a analyze.sql file, which contains analysis of the table with the statement. The second part of the script all the tables: <br /><br /> analyze_table.sh <br /><br /> sqlplus-s &lt;oracle / $ 1 @ $ 2set heading offset feed offset pagesize 200set linesize 100spool analyze_table.sqlselect ANALYZE TABLE | | owner | |. | | segment_name | | ESTIMATE STATISTICS SAMPLE 10 PERCENT; from dba_segmentswhere segment_type = TABLEand owner not in (SYS , SYSTEM); spool offexit! sqlplus-s &lt;oracle / $ 1 @ $ 2 @. / analyze_table.sqlexit! <br /><br /> The following is an example of analyze.sql: <br /><br /> $ Cat analyze.sqlANALYZE TABLE HIRWIN.JANUSAGE_SUMMARY ESTIMATE STATISTICS SAMPLE 10 PERCENT; ANALYZE TABLE HIRWIN.JANUSER_PROFILE ESTIMATE STATISTICS SAMPLE 10 PERCENT; ANALYZE TABLE APPSSYS.HIST_SYSTEM_ACTIVITY ESTIMATE STATISTICS SAMPLE 10 PERCENT; ANALYZE TABLE HTOMEH.QUEST_IM_VERSION ESTIMATE STATISTICS SAMPLE 10 PERCENT; ANALYZE TABLE JSTENZEL.HIST_SYS_ACT_0615 ESTIMATE STATISTICS SAMPLE 10 PERCENT; ANALYZE TABLE JSTENZEL.HISTORY_SYSTEM_0614 ESTIMATE STATISTICS SAMPLE 10 PERCENT; ANALYZE TABLE JSTENZEL.CALC_SUMMARY3 ESTIMATE STATISTICS SAMPLE 10 PERCENT; ANALYZE TABLE IMON.QUEST_IM_LOCK_TREE ESTIMATE STATISTICS SAMPLE 10 PERCENT; ANALYZE TABLE APPSSYS.HIST_USAGE_SUMMARY ESTIMATE STATISTICS SAMPLE 10 PERCENT; ANALYZE TABLE PATROL.P $ LOCKCONFLICTTX ESTIMATE STATISTICS SAMPLE 10 PERCENT; <br /><br /> Check the table space to use <br /><br /> The following script detects the use of table space. If the table space only 10%, it will send a warning email. <br /><br /> ck_tbsp.sh <br /><br /> ! / Bin / kshsqlplus-s &lt;oracle / $ 1 @ $ 2set feed offset linesize 100set pagesize 200spool tablespace.alertSELECT F. TABLESPACE_NAME, TO_CHAR ((T. TOTAL_SPACE - F. FREE_SPACE), 999,999) &quot;USED (MB)&quot;, TO_CHAR ( F. FREE_SPACE, 999,999) &quot;FREE (MB)&quot;, TO_CHAR (T. TOTAL_SPACE, 999,999) &quot;TOTAL (MB)&quot;, TO_CHAR ((ROUND ((F.FREE_SPACE / T.TOTAL_SPACE) * 100)), 999) | |% PER_FREEFROM (SELECT TABLESPACE_NAME, ROUND (SUM (BLOCKS * (SELECT VALUE/1024FROM V \ $ PARAMETER WHERE NAME = db_block_size) / 1024)) FREE_SPACEFROM DBA_FREE_SPACEGROUP BY TABLESPACE_NAME) F, (SELECT TABLESPACE_NAME, ROUND (SUM (BYTES/1048576) ) TOTAL_SPACEFROM DBA_DATA_FILESGROUP BY TABLESPACE_NAME) TWHERE F. TABLESPACE_NAME = T. TABLESPACE_NAMEAND (ROUND ((F.FREE_SPACE / T.TOTAL_SPACE) * 100)) &lt;10; spool offexit! if [`cat tablespace.alert | wc-l`-gt 0] thencat tablespace.alert-l tablespace.alert&gt; tablespace.tmpmailx-s &quot;TABLESPACE ALERT for $ (2)&quot; $ DBALIST &lt;tablespace.tmpfi <br /><br /> Examples of output warning email as follows: <br /><br /> TABLESPACE_NAME USED (MB) FREE (MB) TOTAL (MB) PER_FREE SYSTEM 2,047 203 2,250 9% STBS01 302 25 327 8% STBS02 241 11 252 4% STBS03 233 19 252 8% <br /><br /> Find out invalid database objects <br /><br /> Find out the following invalid database objects: <br /><br /> # # Invalid_object_alert.sh # # <br /><br /> #! / Bin / ksh. / Etc / oracle.profile sqlplus-s &lt;oracle / $ 1 @ $ 2 set feed off set heading off column object_name format a30 spool invalid_object.alert SELECT OWNER, OBJECT_NAME, OBJECT_TYPE, <br /><br /> STATUS FROM DBA_OBJECTS WHERE STATUS = <br /><br /> INVALID ORDER BY OWNER, OBJECT_TYPE, OBJECT_NAME; spool off exit! If [`cat invalid_object.alert | wc-l`-gt 0] then mailx-s &quot;INVALID OBJECTS for $ (2)&quot; $ DBALIST &lt;invalid_object.alert fi $ cat invalid_object.alertOWNER OBJECT_NAME OBJECT_TYPE STATUS ------------------------------------------- - <br /><br /> HTOMEH DBMS_SHARED_POOL PACKAGE BODY INVALIDHTOMEH X_ $ KCBFWAIT VIEW INVALIDIMON IW_MON PACKAGE INVALIDIMON IW_MON PACKAGE BODY INVALIDIMON IW_ARCHIVED_LOG VIEW INVALIDIMON IW_FILESTAT VIEW INVALIDIMON IW_SQL_FULL_TEXT VIEW INVALIDIMON IW_SYSTEM_EVENT1 VIEW INVALIDIMON IW_SYSTEM_EVENT_CAT VIEW INVALIDLBAILEY CHECK_TABLESPACE_USAGE PROCEDURE INVALIDPATROL P $ AUTO_EXTEND_TBSP VIEW INVALIDSYS DBMS_CRYPTO_TOOLKIT PACKAGE INVALIDSYS DBMS_CRYPTO_TOOLKIT PACKAGE BODY INVALIDSYS UPGRADE_SYSTEM_TYPES_TO_816 PROCEDURE INVALIDSYS AQ $ _DEQUEUE_HISTORY_T TYPE INVALIDSYS HS_CLASS_CAPS VIEW INVALID SYS HS_CLASS_DD VIEW INVALID <br /><br /> Monitor users and services (deadlocks, etc.) <br /><br /> The following script in a deadlock occurs when sending a warning e-mail: <br /><br /> deadlock_alert.sh <br /><br /> # #! / Bin / ksh .. / etc / oracle.profilesqlplus-s &lt;oracle / $ 1 @ $ 2set feed offset heading offspool deadlock.alertSELECT SID, DECODE (BLOCK, 0, NO, YES) BLOCKER, DECODE (REQUEST, 0 , NO, YES) WAITERFROM V $ LOCK WHERE REQUEST&gt; 0 OR BLOCK&gt; 0 ORDER BY block DESC; spool offexit! if [`cat deadlock.alert | wc-l`-gt 0] thenmailx-s &quot;DEADLOCK ALERT for $ ( 2) &quot;$ DBALIST &lt;deadlock.alertfi <br /><br /> Conclusion <br /><br /> 0,20,40 7-17 * * 1-5 / dba / scripts / ckinstance.sh&gt; / dev / null 2&gt; &amp; 10,20,40 7-17 * * 1-5 / dba / scripts / cklsnr.sh&gt; / dev / null 2&gt; &amp; 10,20,40 7-17 * * 1-5 / dba / scripts / ckalertlog.sh&gt; / dev / null 2&gt; &amp; 130 * * * 0-6 / dba / scripts / clean_arch.sh&gt; / dev / null 2&gt; &amp; 1 * 5 * * 1,3 / dba / scripts / analyze_table.sh&gt; / dev / null 2&gt; &amp; 1 * 5 * * 0-6 / dba / scripts / ck_tbsp.sh&gt; / dev / null 2&gt; &amp; 1 * 5 * * 0-6 / dba / scripts / invalid_object_alert.sh&gt; / dev / null 2&gt; &amp; 10,20,40 7-17 * * 1-5 / dba / scripts / deadlock_alert.sh&gt; / dev / null 2&gt; &amp; 1 <br /><br /> Through the above script, can greatly reduce your work. You can use these is to do more important tasks such as performance tuning.				<h5>Related Posts</h5>
		<div id="smilar">
		<ul>
					<li><a href="http://www.kods.net/sql-optimization-1-full-table-scan-and-index-the-test/" title="SQL optimization (1) - full table scan and index the test">SQL optimization (1) - full table scan and index the test</a> 2009-03-28 09:02:39</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/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/oracle-xdb-relax-resolve-port-conflict-of-8080/" title="Oracle XDB relax resolve port conflict of 8080">Oracle XDB relax resolve port conflict of 8080</a> 2009-03-13 16:47:42</li>
					<li><a href="http://www.kods.net/an-example-of-the-use-of-tkprof/" title="An example of the use of TKPROF">An example of the use of TKPROF</a> 2009-02-26 01:38:19</li>
				</ul>
		</div>
		        ]]></content:encoded>
		<wfw:commentRss>http://www.kods.net/oracle-database-monitoring-shell-script-used/</wfw:commentRss>
	</item>
		<item>
		<title>Will be set to archive mode oracle method</title>
		<link>http://www.kods.net/will-be-set-to-archive-mode-oracle-method/</link>
		<comments>http://www.kods.net/will-be-set-to-archive-mode-oracle-method/#comments</comments>
		<pubDate>Wed, 31 Mar 2010 16:42:50+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<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[base directory]]></category>
<category><![CDATA[archive format]]></category>
<category><![CDATA[archive directory]]></category>
<category><![CDATA[set archive]]></category>
<category><![CDATA[archive operation]]></category>
<category><![CDATA[directory points]]></category>
<category><![CDATA[master server]]></category>
<category><![CDATA[variable settings]]></category>
		<guid isPermaLink="true">http://www.kods.net/will-be-set-to-archive-mode-oracle-method/</guid>
		<description><![CDATA[First manually create archive directory, start the way in adjusting the oracle set archive log mode oracle Manually create the archive directory on the primary server, $ cd $ ORACLE_BASE # $ ORACLE_BASE directory points to / opt / oracle /, can be fo ...]]></description>
		<content:encoded><![CDATA[First manually create archive directory, start the way in adjusting the oracle set archive log mode oracle <br /><br /> Manually create the archive directory on the primary server, <br /><br /> $ cd $ ORACLE_BASE # $ ORACLE_BASE directory points to / opt / oracle /, can be found in the specific ORACLE user environment variable settings <br /><br /> $ mkdir-p oradata / szdb / archive # szdb the directory name according to the database SID for the specified number, in fact, this directory can be any specified <br /><br /> $ mkdir-p oradata / szdb / standbyarchive # If the master server may be used as backup server, then the establishment of 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 operation to establish the path to exactly the same <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, so changes take effect the results of <br /><br /> SQL&gt; shutdown immediate; <br /><br /> View archive log 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 the above operation will be in the database spfile@sid.ora and init@sid.ora file to 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 actually exist, and the oracle user has write permission is <br /><br /> Notes: @ sid on behalf of the actual database, sid number, for example, in the practical operation of these two file names are spfileszdb.ora, initszdb.ora				<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/redhat-as-3-at-oracle10-2-1-install-document/" title="RedHat AS 3 at oracle10.2.1 install document">RedHat AS 3 at oracle10.2.1 install document</a> 2009-03-13 16:56:34</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/will-be-set-to-archive-mode-oracle-method/</wfw:commentRss>
	</item>
		<item>
		<title>oracle-archive mode</title>
		<link>http://www.kods.net/oracle-archive-mode/</link>
		<comments>http://www.kods.net/oracle-archive-mode/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 01:10:44+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[oracle]]></category>
<category><![CDATA[configuration database]]></category>
<category><![CDATA[oracle database]]></category>
<category><![CDATA[oracle product]]></category>
<category><![CDATA[select name]]></category>
<category><![CDATA[incremental backups]]></category>
<category><![CDATA[database log]]></category>
<category><![CDATA[database name]]></category>
<category><![CDATA[log sequence]]></category>
<category><![CDATA[disaster recovery]]></category>
<category><![CDATA[oracle databases]]></category>
<category><![CDATA[oracle archive]]></category>
<category><![CDATA[archive directory]]></category>
<category><![CDATA[destination data]]></category>
<category><![CDATA[command database]]></category>
<category><![CDATA[directory copy]]></category>
<category><![CDATA[system error]]></category>
<category><![CDATA[database archive]]></category>
<category><![CDATA[mode changes]]></category>
<category><![CDATA[error data]]></category>
		<guid isPermaLink="true">http://www.kods.net/oracle-archive-mode/</guid>
		<description><![CDATA[oracle model of an archive. See whether the oracle database archive mode: 1.select name, log_mode from v $ database; NAME LOG_MODE ------------------ ------------------------ QUERY NOARCHIVELOG 2. Using the ARCHIVE LOG LIST command Database log mode  ...]]></description>
		<content:encoded><![CDATA[oracle model of an archive. See whether the oracle database archive mode: <br /> 1.select name, log_mode from v $ database; <br /> NAME LOG_MODE <br /> ------------------ ------------------------ <br /> QUERY NOARCHIVELOG <br /> 2. Using the ARCHIVE LOG LIST command <br /> Database log mode No Archive Mode <br /> Automatic archival Disabled <br /> Archive destination / data/oracle/product/10.2.0/db_1 / / dbs / arch <br /> Oldest online log sequence 739 <br /> Current log sequence 741 <br /> 2.  . What is the Oracle archive mode? <br /> Oracle databases online redo logs, this log is to record the changes made to the database, such as insert, delete, update data on these operations are recorded in online redo log inside. General database at least two online redo log group. When an online redo log group is filled, when log switch occurs, when the online redo log group 2 as the current use of the log, when the filled online redo log group 2 when the log switch will happen , to write the online redo log group 1, it is so repeatedly. <br /> If the database is in non archive mode, on-line will be discarded when you log in the switch. While in archive mode, when the log switch occurs when the logs will be switched archiving. For example, the current use of online redo log 1, when a filled at a time when the log switch, start writing online redo log 2, when the contents of an online redo log will be copied to another specified directory. This directory is called the archive directory, copy the file called archived redo log. <br /> When it is running a database using the archive can be disaster recovery. <br /> 1. Archive log mode and non-archive log mode of the difference between the non-archive log mode can only do cold backup, and recovery can only do a full backup. The latest full backup to the system error data for the period can not be restored. <br /> Archiving can be done hot backup mode, and can do incremental backups can be done partially. <br /> With the ARCHIVE LOG LIST can see a view mode state, or non-archive mode archive log mode. <br /><br /> Three  . Configuration database archiving mode <br /><br /> Changes in the non-archive mode to archive mode: <br /> 1) SQL&gt; SHUTDOWN NORMAL / IMMEDIATE; <br /> 2) SQL&gt; START MOUNT; <br /> 3) SQL&gt; ALTER DATABASE ARCHIVELOG; <br /> 4) SQL&gt; ALTER DATABASE OPEN; <br /><br /> 5) SQL&gt; do a full backup, as non-archive log mode for the resulting backup archive log mode no longer be used. This step is very important to the non-! <br /><br /> To change the archive mode to non-archive mode: <br /> 1) SQL&gt; SHUTDOWN NORMAL / IMMEDIATE; <br /> 2) SQL&gt; START MOUNT; <br /> 3) SQL&gt; ALTER DATABASE NOARCHIVELOG; <br /> 4) SQL&gt; ALTER DATABASE OPEN; <br /><br /> 3. Enable automatic archiving: LOG_ARCHIVE_START = TRUE <br /> Archiving mode, the log file group not allowed to be overwritten (rewritten), when filled, after the log file, without manual archiving, then the system will hang, know that archiving is completed. <br /> At this time can only be read but not write. <br /> During operation shut down and restart the process of archiving logs <br /> SQL&gt; ARCHIVE LOG STOP <br /> SQL&gt; ARCHIVE LOG START <br /><br /> 4. Manual archiving: LOG_ARCHIVE_START = FALSE <br /> Archive the current log file <br /> SQL&gt; ALTER SYSTEM ARCHIVE LOG CURRENT; <br /> Archive log files serial number 052 <br /> SQL&gt; ALTER SYSTEM ARCHIVE LOG SEQUENCE 052; <br /> Archiving of all log files <br /> SQL&gt; ALTER SYSTEM ARCHIVE LOG ALL; <br /> To change the archive log target <br /> SQL&gt; ALTER SYSTEM ARCHIVE LOG CURRENT TO &#39;&amp; PATH&#39;; <br /><br /> 5. Archive mode and non-archive mode conversion <br /><br /> The reverse process of Step 4. <br /><br /> 6. Configure multiple archive processes <br /> Q: When do you need to use multiple archiving process? <br /> A: If the archive process will consume a large amount of time, you can start multiple archiving process, which is a dynamic parameter, you can use ALTER SYSTEM dynamic modification. <br /> SQL&gt; ALTER SYSTEM SET LOG_ARCHIVE_MAX_PROCESSES = 10; <br /> Oracle9i can specify up to 10 archiving process and the archiving process-related dynamic performance views <br /> v $ bgprocess, v $ archive_processes <br /><br /> 7. Configuration archiving target, multi-archiving target, remote archiving goals, objectives LOG_ARCHIVE_DEST_n archive log format archive <br /> Local archiving objectives: <br /> SQL&gt; LOG_ARCHIVE_DEST_1 = &quot;LOCATION = D: ORACLEARCHIVEDLOG&quot;; <br /> Remote archive target: <br /> SQL&gt; LOG_ARCHIVE_DEST_2 = &quot;SERVICE = STANDBY_DB1&quot;; <br /> Mandatory archiving objectives, and if an error, 600 seconds and try again: <br /> SQL&gt; ALTER SYSTEM SET LOG_ARCHIVE_DEST_4 = &quot;LOCATION = E: ORACLEARCHIVEDLOG MANDATORY REOPEN = 600&quot;; <br /> Optional archiving objectives, and if wrong, abandon the archive: <br /> SQL&gt; ALTER SYSTEM SET LOG_ARCHIVE_DEST_3 = &quot;LOCATION = E: ORACLEARCHIVEDLOG OPTIONAL&quot;; <br /><br /> Filed target state: the goals and turn off archiving archiving archiving goals off target 1 <br /> SQL&gt; ALTER SYSTEM SET LOG_ARCHIVE_DEST_STATE_1 = DEFER <br /> Open the archive target 2 <br /> SQL&gt; ALTER SYSTEM SET LOG_ARCHIVE_DEST_STATE_2 = ENABLE <br /><br /> Archive log format <br /> LOG_ARCHIVE_FORMAT <br /><br /> 8. Access to archived log information <br /> V $ ARCHVIED_LOG <br /> V $ ARCHVIE_DEST <br /> V $ LOG_HISTORY <br /> V $ DATABASE <br /> V $ ARCHIVE_PROCESSES <br /><br /> ARCHIVE LOG LIST;				<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/data-gurad-use-dbms-file-transfer-and-cloning-configuration-database/" title="DATA GURAD use DBMS_FILE_TRANSFER and cloning configuration database">DATA GURAD use DBMS_FILE_TRANSFER and cloning configuration database</a> 2009-02-23 19:07:40</li>
					<li><a href="http://www.kods.net/oracle-10g-dataguard-configuration-step-by-step/" title="ORACLE 10G dataguard configuration Step by Step">ORACLE 10G dataguard configuration Step by Step</a> 2009-02-16 01:13:55</li>
				</ul>
		</div>
		        ]]></content:encoded>
		<wfw:commentRss>http://www.kods.net/oracle-archive-mode/</wfw:commentRss>
	</item>
		<item>
		<title>oracle10g reproduced archive log mode</title>
		<link>http://www.kods.net/oracle10g-reproduced-archive-log-mode/</link>
		<comments>http://www.kods.net/oracle10g-reproduced-archive-log-mode/#comments</comments>
		<pubDate>Sun, 17 Jan 2010 06:12:56+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[oracle]]></category>
<category><![CDATA[configuration database]]></category>
<category><![CDATA[oracle database]]></category>
<category><![CDATA[oracle product]]></category>
<category><![CDATA[select name]]></category>
<category><![CDATA[incremental backups]]></category>
<category><![CDATA[database log]]></category>
<category><![CDATA[database name]]></category>
<category><![CDATA[log sequence]]></category>
<category><![CDATA[database archiving]]></category>
<category><![CDATA[disaster recovery]]></category>
<category><![CDATA[oracle databases]]></category>
<category><![CDATA[oracle archive]]></category>
<category><![CDATA[archive directory]]></category>
<category><![CDATA[destination data]]></category>
<category><![CDATA[command database]]></category>
<category><![CDATA[directory copy]]></category>
<category><![CDATA[system error]]></category>
<category><![CDATA[database archive]]></category>
<category><![CDATA[error data]]></category>
		<guid isPermaLink="true">http://www.kods.net/oracle10g-reproduced-archive-log-mode/</guid>
		<description><![CDATA[1. See whether the oracle database archive mode: 1.select name, log_mode from v $ database; NAME LOG_MODE ------------------ ------------------------ QUERY NOARCHIVELOG 2. Using the ARCHIVE LOG LIST command Database log mode No Archive Mode Automatic ...]]></description>
		<content:encoded><![CDATA[<font color=#295200 size=5><strong><font color=#ff0000><font size=4>1. See whether the oracle database archive mode: <br /> 1.select name, log_mode from v $ database;</font></font> <br /></strong> <font color=#000000>NAME LOG_MODE <br /> ------------------ ------------------------ <br /> QUERY NOARCHIVELOG <br /></font> <font face= The regular script  ><strong><font color=#ff0000 size=4>2. Using the ARCHIVE LOG LIST command</font> <br /></strong> <font color=#000000>Database log mode No Archive Mode <br /> Automatic archival Disabled <br /> Archive destination / data/oracle/product/10.2.0/db_1 / / dbs / arch <br /> Oldest online log sequence 739 <br /> Current log sequence 741</font></font> <br /> <font face= The regular script  ><strong> 2.  . What is the Oracle archive mode? <br /> Oracle databases online redo logs, this log is to record the changes made to the database, such as insert, delete, update data on these operations are recorded in online redo log inside. General database at least two online redo log group. When an online redo log group is filled, when log switch occurs, when the online redo log group 2 as the current use of the log, when the filled online redo log group 2 when the log switch will happen , to write the online redo log group 1, it is so repeatedly. <br /> If the database is in non archive mode, on-line will be discarded when you log in the switch. While in archive mode, when the log switch occurs when the logs will be switched archiving. For example, the current use of online redo log 1, when a filled at a time when the log switch, start writing online redo log 2, when the contents of an online redo log will be copied to another specified directory. This directory is called the archive directory, copy the file called archived redo log. <br /> When it is running a database using the archive can be disaster recovery. <br /> 1. Archive log mode and non-archive log mode of the difference between the non-archive log mode can only do cold backup, and recovery can only do a full backup. The latest full backup to the system error data for the period can not be restored. <br /> Archiving can be done hot backup mode, and can do incremental backups can be done partially. <br /> With the ARCHIVE LOG LIST can see a view mode state, or non-archive mode archive log mode.</strong></font> <br /><br /> <font face= The regular script  ><strong><font color=#ff0000 size=4> Three  . Configuration database archiving mode</font> &lt;br /&gt; change the non-archive mode to archive mode: <br /> <font color=#ff0000 size=4>1) SQL&gt; SHUTDOWN NORMAL / IMMEDIATE; <br /> 2) SQL&gt; START MOUNT; <br /> 3) SQL&gt; ALTER DATABASE ARCHIVELOG; <br /> 4) SQL&gt; ALTER DATABASE OPEN;</font> <br /> 5) SQL&gt; do a full backup, as non-archive log mode for the resulting backup archive log mode no longer be used. This step is very important to the non-! <br /> To change the archive mode to non-archive mode: <br /> 1) SQL&gt; SHUTDOWN NORMAL / IMMEDIATE; <br /> 2) SQL&gt; START MOUNT; <br /> 3) SQL&gt; ALTER DATABASE NOARCHIVELOG; <br /> 4) SQL&gt; ALTER DATABASE OPEN;</strong></font> <br /><br /> <font face= The regular script  ><br /> <strong>3. Enable automatic archiving: LOG_ARCHIVE_START = TRUE, in sqlplus in: (Note that this point in doubt, do not necessarily need this step) <br /> <font color=#ff0000 size=4>alter system set log_archive_start = true scop = spfile;</font></strong></font> <br /><br /> <font face= The regular script  ><strong>Archiving mode, the log file group not allowed to be overwritten (rewritten), when filled, after the log file, without manual archiving, then the system will hang until the filing is completed. <br /> At this time can only be read but not write. <br /> During operation shut down and restart the process of archiving logs <br /> <font color=#ff0000 size=4>SQL&gt; ARCHIVE LOG STOP <br /> SQL&gt; ARCHIVE LOG START</font></strong></font> <br /><br /> <font color=#ff0000 size=4><strong>Need to modify the configuration file:</strong></font> <br /><br /> <font color=#ff0000><strong>In the init.ora added:</strong></font> <br /><br /> <font color=#ff0000><strong>log_archive_start = true <br /> log_archive_dest =% ORACLE_HOME% / admin / clustdb / arch <br /> log_archive_format = &quot;%% ORACLE_SID%% T% TS% S. ARC&quot; <br /> log_archive_max_processes = 3 <br /> log_archive_dest_1 = \ &#39;location = / oradata/orcl01/archive / \&#39;</strong></font> <br /><br /> <font color=#ff0000><strong>Information:</strong></font> <br /><br /> <strong>archive log list; <br /> shutdown immediate; <br /> startup mount; <br /> alter database archivelog; <br /> alter database open <br /> alter system set LOG_ARCHIVE_DEST_1 = &#39;LOCATION = / oracle / oradata / express / archive&#39;; <br /> shutdown immediate; <br /> startup</strong> <br /><br /> <strong>If it is oracle9i, also need to change the following parameters:</strong> <br /><br /> <strong>alter system set log_archive_start = true scope = spfile; <br /> However, if the 10g also change these parameters, restart the database when the following prompt: <br /> ORA-32004: obsolete and / or deprecated parameter (s) specified</strong> <br /><br /> <strong>alter system set log_archive_format = &#39;% t_% s.dbf&#39; scope = spfile; <br /> But if 10g also change these parameters, the database will not start, the following prompt: <br /> ORA-32004: obsolete and / or deprecated parameter (s) specified</strong></font><br /> ORA-19905: log_archive_format must contain% s,% t and% r <br /><br /> <font color=#ff0000><br /></font> <br /><br /> <strong><font face= The regular script  >4. Manual archiving: LOG_ARCHIVE_START = FALSE <br /> Archive the current log file <br /> SQL&gt; ALTER SYSTEM ARCHIVE LOG CURRENT; <br /> Archive log files serial number 052 <br /> SQL&gt; ALTER SYSTEM ARCHIVE LOG SEQUENCE 052; <br /> Archiving of all log files <br /> SQL&gt; ALTER SYSTEM ARCHIVE LOG ALL; <br /> To change the archive log target <br /> SQL&gt; ALTER SYSTEM ARCHIVE LOG CURRENT TO &#39;&amp; PATH&#39;;</font></strong> <br /><br /> <strong><font face= The regular script  >5. Archive mode and non-archive mode conversion</font></strong> <br /><br /> <strong><font face= The regular script  >The reverse process of Step 4.</font></strong> <br /><br /> <strong><font face= The regular script  >6. Configure multiple archive processes <br /> Q: When do you need to use multiple archiving process? <br /> A: If the archive process will consume a large amount of time, you can start multiple archiving process, which is a dynamic parameter, you can use ALTER SYSTEM dynamic modification. <br /> SQL&gt; ALTER SYSTEM SET LOG_ARCHIVE_MAX_PROCESSES = 10; <br /> Oracle9i can specify up to 10 archiving process and the archiving process-related dynamic performance views <br /> v $ bgprocess, v $ archive_processes</font></strong> <br /><br /> <strong><font face= The regular script  >7. Configuration archiving target, multi-archiving target, remote archiving goals, objectives LOG_ARCHIVE_DEST_n archive log format archive <br /> Local archiving objectives: <br /> SQL&gt; LOG_ARCHIVE_DEST_1 = &quot;LOCATION = D: ORACLEARCHIVEDLOG&quot;; <br /> Remote archive target: <br /> SQL&gt; LOG_ARCHIVE_DEST_2 = &quot;SERVICE = STANDBY_DB1&quot;; <br /> Mandatory archiving objectives, and if an error, 600 seconds and try again: <br /> SQL&gt; ALTER SYSTEM SET LOG_ARCHIVE_DEST_4 = &quot;LOCATION = E: ORACLEARCHIVEDLOG MANDATORY REOPEN = 600&quot;; <br /> Optional archiving objectives, and if wrong, abandon the archive: <br /> SQL&gt; ALTER SYSTEM SET LOG_ARCHIVE_DEST_3 = &quot;LOCATION = E: ORACLEARCHIVEDLOG OPTIONAL&quot;;</font></strong> <br /><br /> <strong><font face= The regular script  >Filed target state: the goals and turn off archiving archiving archiving goals off target 1 <br /> SQL&gt; ALTER SYSTEM SET LOG_ARCHIVE_DEST_STATE_1 = DEFER <br /> Open the archive target 2 <br /> SQL&gt; ALTER SYSTEM SET LOG_ARCHIVE_DEST_STATE_2 = ENABLE</font></strong> <br /><br /> <strong><font face= The regular script  >Archive log format <br /> LOG_ARCHIVE_FORMAT</font></strong> <br /><br /> <strong><font face= The regular script  >8. Access to archived log information <br /> V $ ARCHVIED_LOG <br /> V $ ARCHVIE_DEST <br /> V $ LOG_HISTORY <br /> V $ DATABASE <br /> V $ ARCHIVE_PROCESSES</font></strong> <br /><br /> <strong><font face= The regular script  >ARCHIVE LOG LIST;</font></strong> <br /><br />				<h5>Related Posts</h5>
		<div id="smilar">
		<ul>
					<li><a href="http://www.kods.net/sga-extended-the-principle-of-32bit-oracle/" title="SGA extended the principle of 32bit oracle">SGA extended the principle of 32bit oracle</a> 2009-03-31 09:48:01</li>
					<li><a href="http://www.kods.net/an-example-of-the-use-of-tkprof/" title="An example of the use of TKPROF">An example of the use of TKPROF</a> 2009-02-26 01:38:19</li>
					<li><a href="http://www.kods.net/diagnosis-and-principles-of-order/" title="Diagnosis and principles of order">Diagnosis and principles of order</a> 2009-02-25 20:27:28</li>
					<li><a href="http://www.kods.net/data-gurad-use-dbms-file-transfer-and-cloning-configuration-database/" title="DATA GURAD use DBMS_FILE_TRANSFER and cloning configuration database">DATA GURAD use DBMS_FILE_TRANSFER and cloning configuration database</a> 2009-02-23 19:07:40</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/oracle10g-reproduced-archive-log-mode/</wfw:commentRss>
	</item>
		<item>
		<title>oracle archive log mode</title>
		<link>http://www.kods.net/oracle-archive-log-mode/</link>
		<comments>http://www.kods.net/oracle-archive-log-mode/#comments</comments>
		<pubDate>Sat, 02 Jan 2010 21:43:25+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[oracle]]></category>
<category><![CDATA[configuration database]]></category>
<category><![CDATA[oracle database]]></category>
<category><![CDATA[oracle product]]></category>
<category><![CDATA[select name]]></category>
<category><![CDATA[incremental backups]]></category>
<category><![CDATA[database log]]></category>
<category><![CDATA[database name]]></category>
<category><![CDATA[log sequence]]></category>
<category><![CDATA[disaster recovery]]></category>
<category><![CDATA[oracle databases]]></category>
<category><![CDATA[oracle archive]]></category>
<category><![CDATA[archive directory]]></category>
<category><![CDATA[destination data]]></category>
<category><![CDATA[command database]]></category>
<category><![CDATA[directory copy]]></category>
<category><![CDATA[system error]]></category>
<category><![CDATA[database archive]]></category>
<category><![CDATA[mode changes]]></category>
<category><![CDATA[error data]]></category>
		<guid isPermaLink="true">http://www.kods.net/oracle-archive-log-mode/</guid>
		<description><![CDATA[1. See whether the oracle database archive mode: 1.select name, log_mode from v $ database; NAME LOG_MODE ------------------ ------------------------ QUERY NOARCHIVELOG 2. Using the ARCHIVE LOG LIST command Database log mode No Archive Mode Automatic ...]]></description>
		<content:encoded><![CDATA[1. See whether the oracle database archive mode: <br /> 1.select name, log_mode from v $ database; <br /> NAME LOG_MODE <br /> ------------------ ------------------------ <br /> QUERY NOARCHIVELOG <br /> 2. Using the <font color=#ff0000>ARCHIVE LOG LIST command</font> <br /> <font color=#ff0000>Database log mode No Archive Mode <br /> Automatic archival Disabled <br /> Archive destination / data/oracle/product/10.2.0/db_1 / / dbs / arch <br /> Oldest online log sequence 739 <br /> Current log sequence 741</font> <br /> 2.  . What is the Oracle archive mode? <br /> Oracle databases online redo logs, this log is to record the changes made to the database, such as insert, delete, update data on these operations are recorded in online redo log inside. General database at least two online redo log group. When an online redo log group is filled, when log switch occurs, when the online redo log group 2 as the current use of the log, when the filled online redo log group 2 when the log switch will happen , to write the online redo log group 1, it is so repeatedly. <br /> If the database is in non archive mode, on-line will be discarded when you log in the switch. While in archive mode, when the log switch occurs when the logs will be switched archiving. For example, the current use of online redo log 1, when a filled at a time when the log switch, start writing online redo log 2, when the contents of an online redo log will be copied to another specified directory. This directory is called the archive directory, copy the file called archived redo log. <br /> When it is running a database using the archive can be disaster recovery. <br /> 1. Archive log mode and non-archive log mode of the difference between the non-archive log mode can only do cold backup, and recovery can only do a full backup. The latest full backup to the system error data for the period can not be restored. <br /> Archiving can be done hot backup mode, and can do incremental backups can be done partially. <br /> With the ARCHIVE LOG LIST can see a view mode state, or non-archive mode archive log mode. <br /><br /> Three  . Configuration database archiving mode <br /><br /> Changes in the non-archive mode to archive mode: <br /> 1) SQL&gt; SHUTDOWN NORMAL / IMMEDIATE; <br /> 2) SQL&gt; START MOUNT; <br /> 3) SQL&gt; ALTER DATABASE ARCHIVELOG; <br /> 4) SQL&gt; ALTER DATABASE OPEN; <br /><br /> 5) SQL&gt; do a full backup, as non-archive log mode for the resulting backup archive log mode no longer be used. This step is very important to the non-! <br /><br /> To change the archive mode to non-archive mode: <br /> 1) SQL&gt; SHUTDOWN NORMAL / IMMEDIATE; <br /> 2) SQL&gt; START MOUNT; <br /> 3) SQL&gt; ALTER DATABASE NOARCHIVELOG; <br /> 4) SQL&gt; ALTER DATABASE OPEN; <br /><br /> 3. Enable automatic archiving: LOG_ARCHIVE_START = TRUE <br /> Archiving mode, the log file group not allowed to be overwritten (rewritten), when filled, after the log file, without manual archiving, then the system will hang, know that archiving is completed. <br /> At this time can only be read but not write. <br /> During operation shut down and restart the process of archiving logs <br /> SQL&gt; ARCHIVE LOG STOP <br /> SQL&gt; ARCHIVE LOG START <br /><br /> 4. Manual archiving: LOG_ARCHIVE_START = FALSE <br /> Archive the current log file <br /> SQL&gt; ALTER SYSTEM ARCHIVE LOG CURRENT; <br /> Archive log files serial number 052 <br /> SQL&gt; ALTER SYSTEM ARCHIVE LOG SEQUENCE 052; <br /> Archiving of all log files <br /> SQL&gt; ALTER SYSTEM ARCHIVE LOG ALL; <br /> To change the archive log target <br /> SQL&gt; ALTER SYSTEM ARCHIVE LOG CURRENT TO &#39;&amp; PATH&#39;; <br /><br /> 5. Archive mode and non-archive mode conversion <br /><br /> The reverse process of Step 4. <br /><br /> 6. Configure multiple archive processes <br /> Q: When do you need to use multiple archiving process? <br /> A: If the archive process will consume a large amount of time, you can start multiple archiving process, which is a dynamic parameter, you can use ALTER SYSTEM dynamic modification. <br /> SQL&gt; ALTER SYSTEM SET LOG_ARCHIVE_MAX_PROCESSES = 10; <br /> Oracle9i can specify up to 10 archiving process and the archiving process-related dynamic performance views <br /> v $ bgprocess, v $ archive_processes <br /><br /> 7. Configuration archiving target, multi-archiving target, remote archiving goals, objectives LOG_ARCHIVE_DEST_n archive log format archive <br /> Local archiving objectives: <br /> SQL&gt; LOG_ARCHIVE_DEST_1 = &quot;LOCATION = D: ORACLEARCHIVEDLOG&quot;; <br /> Remote archive target: <br /> SQL&gt; LOG_ARCHIVE_DEST_2 = &quot;SERVICE = STANDBY_DB1&quot;; <br /> Mandatory archiving objectives, and if an error, 600 seconds and try again: <br /> SQL&gt; ALTER SYSTEM SET LOG_ARCHIVE_DEST_4 = &quot;LOCATION = E: ORACLEARCHIVEDLOG MANDATORY REOPEN = 600&quot;; <br /> Optional archiving objectives, and if wrong, abandon the archive: <br /> SQL&gt; ALTER SYSTEM SET LOG_ARCHIVE_DEST_3 = &quot;LOCATION = E: ORACLEARCHIVEDLOG OPTIONAL&quot;; <br /><br /> Filed target state: the goals and turn off archiving archiving archiving goals off target 1 <br /> SQL&gt; ALTER SYSTEM SET LOG_ARCHIVE_DEST_STATE_1 = DEFER <br /> Open the archive target 2 <br /> SQL&gt; ALTER SYSTEM SET LOG_ARCHIVE_DEST_STATE_2 = ENABLE <br /><br /> Archive log format <br /> LOG_ARCHIVE_FORMAT <br /><br /> 8. Access to archived log information <br /> V $ ARCHVIED_LOG <br /> V $ ARCHVIE_DEST <br /> V $ LOG_HISTORY <br /> V $ DATABASE <br /> V $ ARCHIVE_PROCESSES <br /><br /> ARCHIVE LOG LIST;				<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/data-gurad-use-dbms-file-transfer-and-cloning-configuration-database/" title="DATA GURAD use DBMS_FILE_TRANSFER and cloning configuration database">DATA GURAD use DBMS_FILE_TRANSFER and cloning configuration database</a> 2009-02-23 19:07:40</li>
					<li><a href="http://www.kods.net/oracle-10g-dataguard-configuration-step-by-step/" title="ORACLE 10G dataguard configuration Step by Step">ORACLE 10G dataguard configuration Step by Step</a> 2009-02-16 01:13:55</li>
				</ul>
		</div>
		        ]]></content:encoded>
		<wfw:commentRss>http://www.kods.net/oracle-archive-log-mode/</wfw:commentRss>
	</item>
		<item>
		<title>Modify the archive mode (turn)</title>
		<link>http://www.kods.net/modify-the-archive-mode-turn/</link>
		<comments>http://www.kods.net/modify-the-archive-mode-turn/#comments</comments>
		<pubDate>Wed, 16 Dec 2009 16:51:30+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[base oracle]]></category>
<category><![CDATA[oracle user]]></category>
<category><![CDATA[log archive]]></category>
<category><![CDATA[environment variables]]></category>
<category><![CDATA[orcl]]></category>
<category><![CDATA[database log]]></category>
<category><![CDATA[sqlplus nolog]]></category>
<category><![CDATA[open sql]]></category>
<category><![CDATA[log sequence]]></category>
<category><![CDATA[true scope]]></category>
<category><![CDATA[backup server]]></category>
<category><![CDATA[base directory]]></category>
<category><![CDATA[archive format]]></category>
<category><![CDATA[oracle archive]]></category>
<category><![CDATA[archive directory]]></category>
<category><![CDATA[archive operation]]></category>
<category><![CDATA[directory points]]></category>
<category><![CDATA[directory cd]]></category>
<category><![CDATA[server directory]]></category>
<category><![CDATA[master server]]></category>
		<guid isPermaLink="true">http://www.kods.net/modify-the-archive-mode-turn/</guid>
		<description><![CDATA[First manually create archive directory, start the way in adjusting the oracle archive log mode oracle set manually create the archive in the main server directory $ cd $ ORACLE_BASE # $ ORACLE_BASE directory points to / opt / oracle /, can be found  ...]]></description>
		<content:encoded><![CDATA[First manually create archive directory, start the way in adjusting the oracle archive log mode oracle set manually create the archive in the main server directory $ cd $ ORACLE_BASE # $ ORACLE_BASE directory points to / opt / oracle /, can be found in the specific ORACLE user environment variables Set $ mkdir-p oradata / orcl / archive # orcl directory name according to the database SID for the specified number, in fact, this directory can be any specified $ mkdir-p oradata / orcl / standbyarchive # if the master server may be used as backup server, then the establishment of The directory [oracle @ testorcl] $ 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 / orcl / archive&#39;; # / oracle / oradata / orcl / archive must be in front of mkdir-p oradata / szdb / archive operation to establish the path to exactly the same 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, so changes take effect the results of SQL&gt; shutdown immediate; <br /><br /> View archive log mode 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 / orcl / 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 the above operation will be in the database spfile@sid.ora and init@sid.ora file to add the following parameters *. log_archive_dest_1 = &#39;LOCATION = / oracle / oradata / orcl / 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 actually exist, and the oracle user has write permission is				<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/redhat-as-3-at-oracle10-2-1-install-document/" title="RedHat AS 3 at oracle10.2.1 install document">RedHat AS 3 at oracle10.2.1 install document</a> 2009-03-13 16:56:34</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/modify-the-archive-mode-turn/</wfw:commentRss>
	</item>
		<item>
		<title>LOG_ARCHIVE_DEST_n Parameter Properties - DATA GUARD concepts and management of</title>
		<link>http://www.kods.net/log-archive-dest-n-parameter-properties-data-guard-concepts-and-management-of/</link>
		<comments>http://www.kods.net/log-archive-dest-n-parameter-properties-data-guard-concepts-and-management-of/#comments</comments>
		<pubDate>Fri, 13 Nov 2009 00:53:14+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[parameters]]></category>
<category><![CDATA[log archive]]></category>
<category><![CDATA[standby database]]></category>
<category><![CDATA[target]]></category>
<category><![CDATA[failure]]></category>
<category><![CDATA[archived logs]]></category>
<category><![CDATA[quota]]></category>
<category><![CDATA[database access]]></category>
<category><![CDATA[maximum number]]></category>
<category><![CDATA[parameter settings]]></category>
<category><![CDATA[dest]]></category>
<category><![CDATA[sync]]></category>
<category><![CDATA[timeout]]></category>
<category><![CDATA[archive directory]]></category>
<category><![CDATA[database archive]]></category>
<category><![CDATA[space size]]></category>
<category><![CDATA[set archive]]></category>
		<guid isPermaLink="true">http://www.kods.net/log-archive-dest-n-parameter-properties-data-guard-concepts-and-management-of/</guid>
		<description><![CDATA[AFFIRM and NOAFFIRM settings are confirmed archived information is written to disk; ALTERNATE and NOALTERNATE settings are in the archive directory can not write, it will be archived to write to another place; ARCH and LGWR archive settings are ARCn  ...]]></description>
		<content:encoded><![CDATA[AFFIRM and NOAFFIRM settings are confirmed archived information is written to disk; <br /><br /> ALTERNATE and NOALTERNATE settings are in the archive directory can not write, it will be archived to write to another place; <br /><br /> ARCH and LGWR archive settings are ARCn process, or the LGWR process to write to write documents; <br /><br /> DELAY, and NODELAY set STANDBY whether the delay in application of the database archive log; <br /><br /> DEPENDENCY and archive NODEPENDENCY parameters can be directly by other STANDBY database access, the other of the STANDBY is available in the archive also need to transfer documents; <br /><br /> LOCATION and SERVICE set up a local archive or archive to a STANDBY database; <br /><br /> MANDATORY and OPTIONAL set archive path is mandatory or optional; <br /><br /> MAX_FAILURE and after the failure of NOMAX_FAILURE archiving parameter settings, connect the maximum number of retries; <br /><br /> NET_TIMEOUT and NONET_TIMEOUT set LGWR process to write the number of seconds to wait for archiving information; <br /><br /> QUOTA_SIZE and NOQUOTA_SIZE archive directory can be used to set the space size; <br /><br /> Show QUOTA_USED and NOQUOTA_USED archive directory and the use of the space size; <br /><br /> REGISTER and NOREGISTER settings are recorded in the target site, the location of archived logs; <br /><br /> REOPEN and archiving NOREOPEN set whether to retry after the failure; <br /><br /> SYNC and ASYNC set LGWR process to write IO operation is carried out simultaneously; <br /><br /> TEMPLATE and NOTEMPLATE set the path and format of the template archive information.				<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/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/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/log-archive-dest-n-parameter-properties-data-guard-concepts-and-management-of/</wfw:commentRss>
	</item>
		<item>
		<title>Oracle error backup solution</title>
		<link>http://www.kods.net/oracle-error-backup-solution/</link>
		<comments>http://www.kods.net/oracle-error-backup-solution/#comments</comments>
		<pubDate>Wed, 29 Jul 2009 18:50:13+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[log archive]]></category>
<category><![CDATA[open database]]></category>
<category><![CDATA[table space]]></category>
<category><![CDATA[second oracle]]></category>
<category><![CDATA[database backup]]></category>
<category><![CDATA[database log]]></category>
<category><![CDATA[sqlplus nolog]]></category>
<category><![CDATA[conn]]></category>
<category><![CDATA[archived logs]]></category>
<category><![CDATA[log sequence]]></category>
<category><![CDATA[oracle error]]></category>
<category><![CDATA[mkdir]]></category>
<category><![CDATA[archivelog]]></category>
<category><![CDATA[database state]]></category>
<category><![CDATA[collapse]]></category>
<category><![CDATA[oracle archive]]></category>
<category><![CDATA[database methods]]></category>
<category><![CDATA[special circumstances]]></category>
<category><![CDATA[archive directory]]></category>
<category><![CDATA[backup solution]]></category>
		<guid isPermaLink="true">http://www.kods.net/oracle-error-backup-solution/</guid>
		<description><![CDATA[rn rn rn ORACLE backup solution error rn rn First, backup overview rn 1, the use of thermal backup, need to run in archive mode, the database can be fully restored, that is, from a backup to the database after the collapse of the data will not be los ...]]></description>
		<content:encoded><![CDATA[rn <br /> rn <br /><br /> rn <br /> ORACLE backup solution error <br /><br /> rn <br /><br /> rn <br /> First, backup overview <br /><br /> rn <br /> 1, the use of thermal backup, need to run in archive mode, the database can be fully restored, that is, from a backup to the database after the collapse of the data will not be lost; <br /><br /> rn <br /> 2, can be used to back up the whole database backup, for special circumstances, you can back up only specific data files, such as backup only the user table space (generally written especially for some of the data files frequently, you can increase the backup frequency alone ); <br /><br /> rn <br /> 3, if during the recovery process and found that damage to a number of data files that can be used one method to restore data files, can also be used to restore the entire database methods; <br /><br /> rn <br /> 4, to run in archive mode will have a lot of archive logs, the log of the restoration of the database is very important, as long as the existence of backup and archiving, the database will be able to achieve full recovery (no loss of data); <br /><br /> rn <br /> 5, the recovery process carried out under the mount, if the restoration of the success, and then open the database <br /><br /> rn <br /> Second, Oracle to back up the reasons for the failure <br /><br /> rn <br /> 1, did not find the existence of archived logs (Oracle is not running in archive mode) <br /><br /> rn <br /> Third, change the operating mode Oracle <br /><br /> rn <br /> 1, $ mkdir / ora_arch1 # create a oracle archive log archive directory <br /><br /> rn <br /> 2, $ sqlplus / nolog <br /><br /> rn <br /> SQL&gt; conn / as sysdba; <br /><br /> rn <br /> Connected. <br /><br /> rn <br /> SQL&gt; startup mount; # start to mount the database state <br /><br /> rn <br /> SQL&gt; alter database archivelog; # to oracle model for archiving <br /><br /> rn <br /> SQL&gt; archive log start; # start archiving mode <br /><br /> rn <br /> SQL&gt; archive log list; # See oracle archive case <br /><br /> rn <br /> <I>Database log mode Archive Mode</i> <br /><br /> rn <br /> <I>Automatic archival Enabled</i> <br /><br /> rn <br /> <I>Archive destination / ora_arch1</i> <br /><br /> rn <br /> <I>Oldest online log sequence</i> <I>　　</I> <I>565</i> <br /><br /> rn <br /> <I>Next log sequence to archive</i> <I>　</I> <I>567</i> <br /><br /> rn <br /> <I>Current log sequence</i> <I>　</I> <I>567</i> <br /><br /> rn <br /> SQL&gt; alter database open; # open database <br /><br /> rn <br /> SQL&gt; alter system set LOG_ARCHIVE_DEST_1 = &#39;LOCATION = / ora_arch1&#39; # / ora_arhc1 must be in front of mkdir / ora_arch1 operation of the establishment of the same path (the path set oracle archive) SQL&gt; alter system set log_archive_format = &#39;% t_% s.dbf&#39; scope = spfile; # set archive types <br /><br /> rn <br /> SQL&gt; alter system set log_archive_start = true scope = spfile; # set up automatic archiving mode <br /><br /> rn <br /> Restart the database, the settings take effect <br /><br /> rn <br /> SQL&gt; shutdown immediate; <br /><br /> rn <br /> SQL&gt; startup <br /><br /> rn <br /> SQL&gt; archive log list; # See archived case <br /><br /> rn <br /> <I>Database log mode Archive Mode</i> <br /><br /> rn <br /> <I>Automatic archival Enabled</i> <br /><br /> rn <br /> <I>Archive destination / ora_arch1</i> <br /><br /> rn <br /> <I>Oldest online log sequence</i> <I>　　</I> <I>565</i> <br /><br /> rn <br /> <I>Next log sequence to archive</i> <I>　</I> <I>567</i> <br /><br /> rn <br /> <I>Current log sequence</i> <I>　</I> <I>567</i> <br /><br /> rn				<h5>Related Posts</h5>
		<div id="smilar">
		<ul>
					<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>
					<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>
				</ul>
		</div>
		        ]]></content:encoded>
		<wfw:commentRss>http://www.kods.net/oracle-error-backup-solution/</wfw:commentRss>
	</item>
		<item>
		<title>archiving mode oracle10g reprint</title>
		<link>http://www.kods.net/archiving-mode-oracle10g-reprint/</link>
		<comments>http://www.kods.net/archiving-mode-oracle10g-reprint/#comments</comments>
		<pubDate>Wed, 29 Jul 2009 11:36:40+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[oracle]]></category>
<category><![CDATA[configuration database]]></category>
<category><![CDATA[oracle database]]></category>
<category><![CDATA[oracle product]]></category>
<category><![CDATA[select name]]></category>
<category><![CDATA[lt]]></category>
<category><![CDATA[database log]]></category>
<category><![CDATA[database name]]></category>
<category><![CDATA[log sequence]]></category>
<category><![CDATA[database archiving]]></category>
<category><![CDATA[oracle archive]]></category>
<category><![CDATA[archive directory]]></category>
<category><![CDATA[log contents]]></category>
<category><![CDATA[destination data]]></category>
<category><![CDATA[command database]]></category>
<category><![CDATA[database changes]]></category>
<category><![CDATA[time log]]></category>
<category><![CDATA[directory copy]]></category>
<category><![CDATA[system error]]></category>
<category><![CDATA[full time]]></category>
		<guid isPermaLink="true">http://www.kods.net/archiving-mode-oracle10g-reprint/</guid>
		<description><![CDATA[1. See oracle database to archive mode: 1.select name, log_mode from v $ database; NAME LOG_MODE ------------------ ------------------------ QUERY NOARCHIVELOG 2. Use ARCHIVE LOG LIST command Database log mode No Archive Mode Automatic archival Disab ...]]></description>
		<content:encoded><![CDATA[<font face= The regular script  ><font color=#ff0000 size=4><strong>1. See oracle database to archive mode:</strong></font> <br /> <font color=#ff0000 size=4><strong>1.select name, log_mode from v $ database;</strong></font> <br /> NAME</font> LOG_MODE <font face= The regular script  ><br /> ------------------ ------------------------ <br /> QUERY NOARCHIVELOG <br /> <font color=#ff0000 size=4><strong>2. Use ARCHIVE LOG LIST command</strong></font> <br /> Database log mode No Archive Mode <br /> Automatic archival Disabled <br /> Archive destination / data/oracle/product/10.2.0/db_1 / / dbs / arch <br /> Oldest online log sequence 739 <br /> Current log sequence 741</font> <br /><br /> <font face= The regular script  > 2.  . What is Oracle archive mode? <br /> Oracle database online redo log, the log is recorded on the database changes, such as insert, delete, update data for these operations will be recorded in online redo log ri. General database with at least two online redo log group. When an online redo log group was written when the log switch occurs when the online redo log group 2 has become the use of the log, when the online redo log group 2, when full, will log switch occurs, write to online redo log group 1, it is so repeatedly. <br /> If the database is in non archive mode, on-line log will be discarded at the switch. In archive mode, to switch the event log when the log switch will be archived. For example, the current online redo log in the use of 1, when a full time log switch occurred, began to write online redo log 2, when an online redo log contents will be copied to another designated directory. This directory is called the archive directory, copy the redo log files is called archiving. <br /> Database archiving run can be disastrous when the restoration. <br /> 1. Archive log mode and non-archive log mode the difference between non-archive mode can only do cold backup, and recovery can only do a full backup. The most recent full backup to the system error during the data can not be restored. <br /> Archiving can be done hot backup mode, and can do incremental backups,</font> you <font face= The regular script  >can do so partially. <br /> ARCHIVE LOG LIST can be used view mode view mode when the filing or non-archive mode.</font> <br /><br /> <font face= The regular script  ><font color=#ff0000 size=4><strong> Three  . Configuration database archiving mode</strong></font> &lt;br /&gt; change the non-archive mode to archive mode: <br /> <font color=#ff0000 size=4><strong>1) SQL&gt; SHUTDOWN NORMAL / IMMEDIATE; <br /> 2) SQL&gt; START MOUNT; <br /> 3) SQL&gt; ALTER DATABASE ARCHIVELOG; <br /> 4) SQL&gt; ALTER DATABASE OPEN;</strong></font> <br /> 5) SQL&gt; do a full backup, because non-archive log mode for the resulting backup archive log mode has not spent. This very important step in the non-! <br /> To change the archiving mode to non-archive mode: <br /> 1) SQL&gt; SHUTDOWN NORMAL / IMMEDIATE; <br /> 2) SQL&gt; START MOUNT; <br /> 3) SQL&gt; ALTER DATABASE NOARCHIVELOG; <br /> 4) SQL&gt; ALTER DATABASE OPEN;</font> <br /><br /> <font face= The regular script  ><br /> 3. Enable automatic archiving: LOG_ARCHIVE_START = TRUE, in sqlplus in: (pay attention to this point in doubt, do not necessarily need this step) <br /> <font color=#ff0000 size=4><strong>alter system set</strong></font></font> log_archive_start <font color=#ff0000 size=4><strong><font face= The regular script  >= true scop = spfile;</font></strong></font> <br /><br /> <font face= The regular script  >Archiving mode,</font> the <font face= The regular script  >log file group is not allowed to be covered by (rewrite), written when the log file after the archive if there is no manual, then the system will hang until the archiving is completed. <br /> At this time can only be read but not write. <br /> Operation of closing and restarting the process of archiving logs <br /> <font color=#ff0000 size=4><strong>SQL&gt; ARCHIVE LOG STOP <br /> SQL&gt; ARCHIVE LOG START</strong></font></font> <br /><br /> <font color=#ff0000 size=4><strong>Need to modify configuration files:</strong></font> <br /><br /> <font color=#ff0000>Increase in the init.ora:</font> <br /><br /> <font color=#ff0000>log_archive_start = true <br /> log_archive_dest =% ORACLE_HOME% / admin /</font> clustdb <font color=#ff0000>/ arch <br /> log_archive_format = &quot;%% ORACLE_SID%% T% TS% S. ARC&quot; <br /> log_archive_max_processes = 3 <br /> log_archive_dest_1 = \ &#39;location = / oradata/orcl01/archive / \&#39;</font> <br /><br /> <font color=#ff0000>Information:</font> <br /><br /> archive log list; <br /> shutdown immediate; <br /> startup mount; <br /> alter database archivelog; <br /> alter database open <br /> alter system set LOG_ARCHIVE_DEST_1 = &#39;LOCATION = / oracle / oradata / express / archive&#39;; <br /> shutdown immediate; <br /> startup <br /><br /> If it is oracle9i, also need to change the following parameters: <br /><br /> alter system set log_archive_start = true scope = spfile; <br /> However, if in 10g also change these parameters, the database will have to restart the following tips: <br /> ORA-32004: obsolete and / or deprecated parameter (s) specified <br /><br /> alter system set log_archive_format = &#39;% t_% s.dbf&#39; scope = spfile; <br /> However, if in 10g also change these parameters, the database will not be activated, the following tips: <br /> ORA-32004: obsolete and / or deprecated parameter (s) specified <br /> ORA-19905: log_archive_format must contain% s,% t and% r <br /><br /> <font color=#ff0000><br /></font> <br /><br /> <font face= The regular script  >4. Manually archive: LOG_ARCHIVE_START = FALSE <br /> Archive the current log file <br /> SQL&gt; ALTER SYSTEM ARCHIVE LOG CURRENT; <br /> Serial number for the archive log files 052 <br /> SQL&gt; ALTER SYSTEM ARCHIVE LOG SEQUENCE 052; <br /> Archiving of all log files <br /> SQL&gt; ALTER SYSTEM ARCHIVE LOG ALL; <br /> To change the archive log target <br /> SQL&gt; ALTER SYSTEM ARCHIVE LOG CURRENT TO &#39;&amp; PATH&#39;;</font> <br /><br /> <font face= The regular script  >5. Archive mode and non-archive mode conversion</font> <br /><br /> <font face= The regular script  >Step 4 of the inverse process.</font> <br /><br /> <font face= The regular script  >6. Configure multiple archive processes <br /> Q: When the need for multiple archive process? <br /> A: If the archive process will consume a large amount of time,</font> you <font face= The regular script  >can start the process of a number of archiving, this is a dynamic parameter,</font> you <font face= The regular script  >can use ALTER SYSTEM dynamic modification. <br /> SQL&gt; ALTER SYSTEM SET</font> LOG_ARCHIVE_MAX_PROCESSES <font face= The regular script  >= 10; <br /> Oracle9i can specify up to 10 archiving process and the archiving process on the dynamic performance view <br /> v $ bgprocess, v $ archive_processes</font> <br /><br /> <font face= The regular script  >7. Configuration archiving target, the target number of archiving, remote archiving target, the target archive log archive format LOG_ARCHIVE_DEST_n <br /> Local archiving objectives: <br /> SQL&gt; LOG_ARCHIVE_DEST_1 = &quot;LOCATION = D: ORACLEARCHIVEDLOG&quot;; <br /> Remote archiving objectives: <br /> SQL&gt; LOG_ARCHIVE_DEST_2 = &quot;SERVICE = STANDBY_DB1&quot;; <br /> The goal of the mandatory filing, if the error, try again after 600 seconds: <br /> SQL&gt; ALTER SYSTEM SET</font> LOG_ARCHIVE_DEST_4 <font face= The regular script  >= &quot;LOCATION = E:</font> ORACLEARCHIVEDLOG <font face= The regular script  >MANDATORY REOPEN = 600&quot;; <br /> Optional archiving target, if wrong, abandon the archive: <br /> SQL&gt; ALTER SYSTEM SET</font> LOG_ARCHIVE_DEST_3 <font face= The regular script  >= &quot;LOCATION = E:</font> ORACLEARCHIVEDLOG <font face= The regular script  >OPTIONAL&quot;;</font> <br /><br /> <font face= The regular script  >Archiving target state: closed archiving goals and objectives of the closure of open archiving archiving Goal 1 <br /> SQL&gt; ALTER SYSTEM SET</font> LOG_ARCHIVE_DEST_STATE_1 <font face= The regular script  >=</font> DEFER <font face= The regular script  ><br /> Goal 2 open archiving <br /> SQL&gt; ALTER SYSTEM SET</font> LOG_ARCHIVE_DEST_STATE_2 <font face= The regular script  >= ENABLE</font> <br /><br /> <font face= The regular script  >Archive log format <br /> LOG_ARCHIVE_FORMAT</font> <br /><br /> <font face= The regular script  >8. Access to archive log information <br /> V $ ARCHVIED_LOG <br /> V $ ARCHVIE_DEST <br /> V $ LOG_HISTORY <br /> V $ DATABASE <br /> V $ ARCHIVE_PROCESSES</font> <br /><br /> <font face= The regular script  >ARCHIVE LOG LIST;</font> <br /><br /> <font face= The regular script  >Source: http://www.cnblogs.com/jacktu/archive/2008/02/27/1083214.html</font>				<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/data-gurad-use-dbms-file-transfer-and-cloning-configuration-database/" title="DATA GURAD use DBMS_FILE_TRANSFER and cloning configuration database">DATA GURAD use DBMS_FILE_TRANSFER and cloning configuration database</a> 2009-02-23 19:07:40</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/archiving-mode-oracle10g-reprint/</wfw:commentRss>
	</item>
		<item>
		<title>Configured in RHEL5 Oracle 10g Data Guard</title>
		<link>http://www.kods.net/configured-in-rhel5-oracle-10g-data-guard/</link>
		<comments>http://www.kods.net/configured-in-rhel5-oracle-10g-data-guard/#comments</comments>
		<pubDate>Mon, 21 Jul 2008 12:20:30+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[oracle 10g]]></category>
<category><![CDATA[oracle home]]></category>
<category><![CDATA[oracle database]]></category>
<category><![CDATA[base oracle]]></category>
<category><![CDATA[oracle export]]></category>
<category><![CDATA[oracle user]]></category>
<category><![CDATA[oracle product]]></category>
<category><![CDATA[environment variables]]></category>
<category><![CDATA[standby database]]></category>
<category><![CDATA[pool size]]></category>
<category><![CDATA[database name]]></category>
<category><![CDATA[global database]]></category>
<category><![CDATA[oracle environment]]></category>
<category><![CDATA[oracle software]]></category>
<category><![CDATA[production database]]></category>
<category><![CDATA[master database]]></category>
<category><![CDATA[ddd]]></category>
<category><![CDATA[export path]]></category>
<category><![CDATA[archive directory]]></category>
<category><![CDATA[db oracle]]></category>
		<guid isPermaLink="true">http://www.kods.net/configured-in-rhel5-oracle-10g-data-guard/</guid>
		<description><![CDATA[Configured in RHEL5 Oracle 10g Data Guard In rhel5 configure Oracle 10g Data Guard Environment configuration master database SID (ddd) Global Database Name (ddd) Service Name (ddd) Net Server Name (ddd) IP: 192.168.0.102 DB: Oracle Database 10g Enter ...]]></description>
		<content:encoded><![CDATA[<h2> Configured in RHEL5 Oracle 10g Data Guard </h2><br /> In rhel5 configure Oracle 10g Data Guard <br /><br /> Environment configuration master database SID (ddd) <br /> Global Database Name (ddd) <br /> Service Name (ddd) <br /> Net Server Name (ddd) <br /> IP: 192.168.0.102 <br /><br /> DB: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 <br /> OS: rhel5 <br /><br /> Preparation Library SID (ddd) <br /> Global Database Name (ddd) <br /> Service Name (ddd) <br /> Net Service Name (dddsby) <br /> IP: 192.168.0.109 <br /><br /> DB: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 <br /> OS: rhel5 <br /><br /> Primary is used for the production database, standby oracle software installed, but does not establish a database. <br /><br /> Second, a physical standby database <br /> 1. Oracle environment to prepare the primary database: <br /> Edit oracle user&#39;s ~ oracle / .bash_profile file, oracle related environment variables as follows: <br /> export ORACLE_BASE = / oracle <br /> export ORACLE_HOME = / oracle/product/10g <br /> export ORACLE_SID = ddd <br /> export PATH = $ ORACLE_HOME / binPATH <br /> export TNS_ADMIN = $ ORACLE_HOME / network / admin <br /> export LANG = zh_CN <br /> # Export NLS_LANG = AMERICAN_AMERICA.ZHS16GBK <br /> export NLS_LANG = &quot;SIMPLIFIED Chinese_CHINA.ZHS16GBK&quot; <br /><br /> 2. Modify the main library for the archive mode of the establishment of archive directory: <br /> mkdir-p / oracle / oradata / arch <br /> Modify the archive mode: <br /> alter database force logging; <br /> archive log list; <br /> create pfile from spfile; <br /> Edit $ ORACLE_HOME / dbs / initddd.ora <br /> The main library file configure the following red part is to modify the parameters) <br /> ddd.__db_cache_size = 167772160 <br /> ddd.__java_pool_size = 4194304 <br /> ddd.__large_pool_size = 4194304 <br /> ddd.__shared_pool_size = 83886080 <br /> ddd.__streams_pool_size = 0 <br /> *. Audit_file_dest = &#39;/ oracle / / admin / ddd / adump&#39; <br /> *. Background_dump_dest = &#39;/ oracle / / admin / ddd / bdump&#39; <br /> *. Compatible = &#39;10 .2.0.1.0 &#39; <br /> *. Control_files = &#39;/ oracle / / oradata/ddd/control01.ctl&#39;, &#39;/ oracle / / oradata/ddd/control02.ctl&#39;, &#39;/ oracle / / oradata/ddd/control03.ctl&#39; <br /> *. Core_dump_dest = &#39;/ oracle / / admin / ddd / cdump&#39; <br /> *. Db_block_size = 8192 <br /> *. Db_domain =&#39;&#39; <br /> *. Db_file_multiblock_read_count = 16 <br /> *. Db_name = &#39;ddd&#39; <br /> *. Db_recovery_file_dest = &#39;/ oracle / / flash_recovery_area&#39; <br /> *. Db_recovery_file_dest_size = 2147483648 <br /> *. Dg_broker_start = TRUE <br /> *. Dispatchers = &#39;(PROTOCOL = TCP) (SERVICE = dddXDB)&#39; <br /> *. Fal_client = &#39;ddd&#39; # here fal_client refers to the net service name <br /> *. Fal_server = &#39;dddsby1&#39; # here fal_server refers to the net service name <br /> *. Job_queue_processes = 10 <br /> *. Log_archive_dest_1 = &#39;location = / oracle / oradata / arch&#39; <br /> *. Log_archive_dest_2 = &#39;SERVICE = dddsby1 LGWR&#39; # where SERVICE is the net service name that <br /> *. Open_cursors = 300 <br /> *. Pga_aggregate_target = 88080384 <br /> *. Processes = 150 <br /> *. Remote_login_passwordfile = &#39;EXCLUSIVE&#39; <br /> *. Sga_target = 264241152 <br /> *. Standby_archive_dest = &#39;/ oracle / oradata / arch&#39; <br /> *. Standby_file_management = &#39;AUTO&#39; <br /> *. Undo_management = &#39;AUTO&#39; <br /> *. Undo_tablespace = &#39;UNDOTBS1&#39; <br /> *. User_dump_dest = &#39;/ oracle / / admin / ddd / udump&#39; <br /><br /> sqlplus / as sysdba; <br /> shutdown immediate; <br /> create spfile from pfile; <br /> startup mount; <br /> alter database archivelog; <br /> alter database open; <br /><br /> 3. On the primary database to do a full hot backup, backup database data access <br /> RMAN&gt; connect target <br /> RMAN&gt; backup database format = &#39;/ home / oracle /% U_% s.bak&#39;; <br /> RMAN&gt; sql &quot;Alter System Archive Log Current&quot;; <br /> RMAN&gt; Backup filesperset 10 ArchiveLog all format = &#39;/ home / oracle /% U_% s.bak&#39;; <br /><br /> cd / home / oracle <br /> scp *. bak 192.168.200.109: / home / oracle / <br /> Or directly packaged database directory oradata, using ftp reached in the solution package prepared by the library <br /> 4. In the standby server ready to edit the same oracle environment and primary users of the ~ oracle / .bash_profile file, oracle related environment variables as follows: <br /> export ORACLE_BASE = / oracle <br /> export ORACLE_HOME = / oracle/product/10g <br /> export ORACLE_SID = ddd <br /> export PATH = $ ORACLE_HOME / binPATH <br /> export TNS_ADMIN = $ ORACLE_HOME / network / admin <br /> export LANG = zh_CN <br /> # Export NLS_LANG = AMERICAN_AMERICA.ZHS16GBK <br /> export NLS_LANG = &quot;SIMPLIFIED Chinese_CHINA.ZHS16GBK&quot; <br /><br /> 5. Prepare the appropriate directory, such as log file path, file path, the path parameter file, ready to store the data file path, etc. <br /> mkdir-p / oracle / oradata / ddd <br /> mkdir-p / oracle / oradata / arch <br /> mkdir-p $ ORACLE_BASE / admin / ddd / adump <br /> mkdir-p $ ORACLE_BASE / admin / ddd / bdump <br /> mkdir-p $ ORACLE_BASE / admin / ddd / cdump <br /> mkdir-p $ ORACLE_BASE / admin / ddd / udump <br /><br /> 6. The establishment of standby database parameter file <br /><br /> ddd.__db_cache_size = 167772160 <br /> ddd.__java_pool_size = 4194304 <br /> ddd.__large_pool_size = 4194304 <br /> ddd.__shared_pool_size = 83886080 <br /> ddd.__streams_pool_size = 0 <br /> *. Audit_file_dest = &#39;/ oracle / / admin / ddd / adump&#39; <br /> *. Background_dump_dest = &#39;/ oracle / / admin / ddd / bdump&#39; <br /> *. Compatible = &#39;10 .2.0.1.0 &#39;<br /> *. Control_files = &#39;/ oracle / / oradata/ddd/control01.ctl&#39;, &#39;/ oracle / / oradata/ddd/control02.ctl&#39;, &#39;/ oracle / / oradata/ddd/control03.ctl&#39; <br /> *. Core_dump_dest = &#39;/ oracle / / admin / ddd / cdump&#39; <br /> *. Db_block_size = 8192 <br /> *. Db_domain =&#39;&#39; <br /> *. Db_file_multiblock_read_count = 16 <br /> *. Db_name = &#39;ddd&#39; <br /> *. Db_recovery_file_dest = &#39;/ oracle / / flash_recovery_area&#39; <br /> *. Db_recovery_file_dest_size = 2147483648 <br /> *. Dg_broker_start = TRUE <br /> *. Dispatchers = &#39;(PROTOCOL = TCP) (SERVICE = dddXDB)&#39; <br /> *. Fal_client = &#39;dddsby1&#39; # here fal_client refers to the net service name <br /> *. Fal_server = &#39;ddd&#39; # here fal_server refers to the net service name <br /> *. Job_queue_processes = 10 <br /> *. Log_archive_dest_1 = &#39;location = / oracle / oradata / arch&#39; <br /> *. Log_archive_dest_2 = &#39;SERVICE = ddd LGWR&#39; # where SERVICE is the net service name that <br /> *. Open_cursors = 300 <br /> *. Pga_aggregate_target = 88080384 <br /> *. Processes = 150 <br /> *. Remote_login_passwordfile = &#39;EXCLUSIVE&#39; <br /> *. Sga_target = 264241152 <br /> *. Standby_archive_dest = &#39;/ oracle / oradata / arch&#39; <br /> *. Standby_file_management = &#39;AUTO&#39; <br /> *. Undo_management = &#39;AUTO&#39; <br /> *. Undo_tablespace = &#39;UNDOTBS1&#39; <br /> *. User_dump_dest = &#39;/ oracle / / admin / ddd / udump&#39; <br /><br /> 7. From the main server, copy the password file to the standby server <br /><br /> cd $ ORACLE_HOME / dbs / <br /> scp orapwddd 192.168.200.109: / oracle/product/10g/dbs <br /><br /> 8. Configure the primary server network connection changes <br /> / Oracle/product/10g/network/admin/listener.ora file as follows: <br /><br /> SID_LIST_LISTENER = <br /> (SID_LIST = <br /> (SID_DESC = <br /> (SID_NAME = ddd) <br /> (ORACLE_HOME = / oracle/product/10g) <br /> (PROGRAM = extproc) <br /> ) <br /> ) <br /><br /> LISTENER = <br /> (DESCRIPTION = <br /> (ADDRESS = (PROTOCOL = TCP) (HOST = gull) (PORT = 1521)) <br /> ) <br /><br /> Modify the master server <br /> / Oracle/product/10g/network/admin/tnsnames.ora file as follows: <br /><br /> DDDSBY1 = <br /> (DESCRIPTION = <br /> (ADDRESS_LIST = <br /> (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.200.109) (PORT = 1521)) <br /> ) <br /> (CONNECT_DATA = <br /> (SERVICE_NAME = ddd) <br /> ) <br /> ) <br /><br /> DDD = <br /> (DESCRIPTION = <br /> (ADDRESS_LIST = <br /> (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.200.102) (PORT = 1521)) <br /> ) <br /> (CONNECT_DATA = <br /> (SERVICE_NAME = ddd) <br /> ) <br /> ) <br /><br /> EXTPROC_CONNECTION_DATA = <br /> (DESCRIPTION = <br /> (ADDRESS_LIST = <br /> (ADDRESS = (PROTOCOL = IPC) (Key = EXTPROC1)) <br /> ) <br /> (CONNECT_DATA = <br /> (SID = ddd) <br /> (PRESENTATION = RO) <br /> ) <br /> ) <br /><br /> Modify the backup server <br /> / Oracle/product/10g/network/admin/listener.ora file as follows: <br /><br /> SID_LIST_LISTENER = <br /> (SID_LIST = <br /> (SID_DESC = <br /> (SID_NAME = PLSExtProc) <br /> (ORACLE_HOME = / oracle/product/10g) <br /> (PROGRAM = extproc) <br /> ) <br /> ) <br /><br /> LISTENER = <br /> (DESCRIPTION_LIST = <br /> (DESCRIPTION = <br /> (ADDRESS = (PROTOCOL = TCP) (HOST = localhost.localdomain) (PORT = 1521)) <br /> (ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC0)) <br /> ) <br /> ) <br /><br /> Modify the backup server <br /> / Oracle/product/10g/network/admin/tnsnames.ora file as follows: <br /><br /> DDDSBY1 = <br /> (DESCRIPTION = <br /> (ADDRESS_LIST = <br /> (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.200.109) (PORT = 1521)) <br /> ) <br /> (CONNECT_DATA = <br /> (SERVICE_NAME = ddd) <br /> ) <br /> ) <br /><br /> DDD = <br /> (DESCRIPTION = <br /> (ADDRESS_LIST = <br /> (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.200.102) (PORT = 1521)) <br /> ) <br /> (CONNECT_DATA = <br /> (SERVICE_NAME = ddd) <br /> ) <br /> ) <br /><br /> EXTPROC_CONNECTION_DATA = <br /> (DESCRIPTION = <br /> (ADDRESS_LIST = <br /> (ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC1)) <br /> ) <br /> (CONNECT_DATA = <br /> (SID = ddd) <br /> (PRESENTATION = RO) <br /> ) <br /> ) <br /><br /> Test: <br /> Start listening: <br /> lsnrctl start <br /> lsnrctl status view monitoring status. <br /> The owners and the respective implementation of the standby machine <br /> tnsping ddd <br /> tnsping dddsby1 <br /><br /> 9. In the main database server to create standby control file <br /> alter database create standby controlfile as &#39;/ home / oracle / standby.ctl&#39;; <br /> Control file created after cp (rcp or scp) to the standby database control file directory where the. <br /> scp standby.ctl 192.168.200.109: / oracle / oradata / ddd / <br /> cp / oracle / oradata / ddd / standby.ctl / oracle/oradata/ddd/control02.ctl <br /> cp / oracle / oradata / ddd / standby.ctl / oracle/oradata/ddd/control02.ctl <br /> cp / oracle / oradata / ddd / standby.ctl / oracle/oradata/ddd/control03.ctl <br /><br /> 10. Start standby database <br /> sqlplus / as sysdba <br /> create spfile from pfile; <br /> startup mount; <br /><br /> Restore the database: <br /> RMAN&gt; connect target; <br /> RMAN&gt; restore database; <br /> RMAN&gt; restore archivelog all;<br /> RMAN&gt; recover database; <br /><br /> Into Admin recovery status <br /> SQL&gt; alter database recover managed standby database disconnect from session; <br /><br /> Third, the process of transmission associated with Lgwr log machine maximum performance mode <br /> 1. To create the standby database back-log <br /> alter database recover managed standby database cancel; <br /> alter database add standby LOGFILE GROUP 5 (&#39;/ oracle/oradata/ddd/stdy_redo05.log&#39;) size 10m; <br /> alter database add standby LOGFILE GROUP 6 (&#39;/ oracle/oradata/ddd/stdy_redo06.log&#39;) size 10m; <br /> alter database add standby LOGFILE GROUP 7 (&#39;/ oracle/oradata/ddd/stdy_redo07.log&#39;) size 10m; <br /> alter database add standby LOGFILE GROUP 8 (&#39;/ oracle/oradata/ddd/stdy_redo08.log&#39;) size 10m; <br /> alter database recover managed standby database disconnect from session; <br /><br /> 2. Modify the path of the main library&#39;s archive <br /> alter system set LOG_ARCHIVE_DEST_2 = &#39;SERVICE = dddsby1 LGWR&#39; scope = both; <br /> Also, if taking into account the future of the library may be switched to the standby database, you can create the same standby log group: <br /> alter database add standby LOGFILE GROUP 5 (&#39;/ oracle/oradata/ddd/stdy_redo05.log&#39;) size 10m; <br /> alter database add standby LOGFILE GROUP 6 (&#39;/ oracle/oradata/ddd/stdy_redo06.log&#39;) size 10m; <br /> alter database add standby LOGFILE GROUP 7 (&#39;/ oracle/oradata/ddd/stdy_redo07.log&#39;) size 10m; <br /> alter database add standby LOGFILE GROUP 8 (&#39;/ oracle/oradata/ddd/stdy_redo08.log&#39;) size 10m; <br /><br /> Fourth, verify backup server is working in the main library in the implementation of the <br /> alter system switch logfile; <br /> Preparation of the library in the view log is being transmitted over <br /> SELECT SEQUENCE #, FIRST_TIME, NEXT_TIME, APPLIED FROM V $ ARCHIVED_LOG ORDER BY SEQUENCE #; <br /><br /> In the main library: <br /> sqlplus / as sysdba <br /> create user test identified by test; <br /> grant connect, resource to test; <br /> conn test / test @ primary; <br /> create table test (name varchar2 (20)); <br /> insert into test values (&#39;Data Guard&#39;); <br /> commit; <br /> conn / as sysdba; <br /> alter system switch logfile; <br /><br /> View the log from the library read-only open from the library view insert into test values (Data Guard &#39;); already in effect. <br /> sqlplus / as sysdba; <br /> alter database recover managed standby database cancel; <br /> alter database open read only; <br /> conn test / test <br /> select * from test; <br /><br /> Set once again in recovery mode from the library: <br /> alter database recover managed standby database disconnect from session; <br /><br /> 5, daily management <br /> 1. Standby server management mode and read-only mode (1) start to management <br /> SQL&gt; shutdown immediate; <br /> SQL&gt; startup nomount; <br /> SQL&gt; alter database mount standby database; <br /> SQL&gt; alter database recover managed standby database disconnect from session; <br /> (2) start to read-only <br /> SQL&gt; shutdown immediate; <br /> SQL&gt; startup nomount; <br /> SQL&gt; alter database mount standby database; <br /> SQL&gt; alter database open read only; <br /> (3) If in the management of recovery mode to read-only mode <br /> SQL&gt; recover managed standby database cancel; <br /> SQL&gt; alter database open read only; <br /> This time, you can increase the temporary data files to the database (this time in the hot backup is no backup over the) <br /> As <br /> alter tablespace temp add tempfile &#39;/ oracle/oradata/ddd/temp01.dbf&#39; size 100M; <br /> (4) to manage recovery from the read-only mode <br /> SQL&gt; recover managed standby database disconnect from session;				<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/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/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/configured-in-rhel5-oracle-10g-data-guard/</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>Oracle's archivelog question</title>
		<link>http://www.kods.net/oracle-s-archivelog-question/</link>
		<comments>http://www.kods.net/oracle-s-archivelog-question/#comments</comments>
		<pubDate>Wed, 01 Mar 2006 13:14:17+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[oracle]]></category>
<category><![CDATA[oracle home]]></category>
<category><![CDATA[log archive]]></category>
<category><![CDATA[disk space]]></category>
<category><![CDATA[database log]]></category>
<category><![CDATA[open sql]]></category>
<category><![CDATA[few days]]></category>
<category><![CDATA[log sequence]]></category>
<category><![CDATA[archivelog]]></category>
<category><![CDATA[period of time]]></category>
<category><![CDATA[oracle archive]]></category>
<category><![CDATA[archive directory]]></category>
<category><![CDATA[automatic archive]]></category>
<category><![CDATA[directory space]]></category>
<category><![CDATA[40g]]></category>
<category><![CDATA[6g]]></category>
<category><![CDATA[free resources]]></category>
		<guid isPermaLink="true">http://www.kods.net/oracle-s-archivelog-question/</guid>
		<description><![CDATA[A few days ago found that one of the DB to use Oracle9i period of time, disk space is now being depleted, 6G of free resources, just two days exhausted, and began to drive has always been thought too small, this morning in the other Two DB on an inve ...]]></description>
		<content:encoded><![CDATA[A few days ago found that one of the DB to use Oracle9i period of time, disk space is now being depleted, 6G of free resources, just two days exhausted, and began to drive has always been thought too small, this morning in the other Two DB on an investigation had discovered each DB has been consume at least 40G of space over the long run, before long, this two are not working. <br /><br /> Use du-sh * search a bit directory space, was originally in the archive directory, checking a bit of information, the original is the archive log function, I do not need this feature that sets DB, so it can be removed, but how to stop &quot;archive model &quot;it, to the net after searching through all the information has not only tells how to&quot; non-archive log mode &quot;to&quot; archive mode &quot;, by: <br /><br /> SQL&gt; shutdown; <br /> SQL&gt; startup mount; <br /> SQL&gt; alter database archivelog; <br /> SQL&gt; alter database open; <br /> SQL&gt; archive log list; <br /> Database log mode Archive Mode <br /> Automatic archival Enabled <br /> Archive destination / home / oracle / archive / webdb <br /> Oldest online log sequence 193 <br /> Next log sequence to archive 195 <br /> Current log sequence 195 <br /><br /> Since we have changed the non-archive mode, is not put into archivelog else does, to try several terms, was originally noarchivelog, finished after which they changed the automatic archive mode disable, methods are: <br /><br /> SQL&gt; alter system archive log stop; <br /><br /> But also changed a bit $ ORACLE_HOME / dbs / initv $ instance.ora, the log_archive_start = true into a no, this is like the next, and finally check bar. <br /><br /> SQL&gt; archive log list; <br /> Database log mode No Archive Mode <br /> Automatic archival Disabled <br /> Archive destination / home / oracle / archive / webdb <br /> Oldest online log sequence 193 <br /> Current log sequence 195				<h5>Related Posts</h5>
		<div id="smilar">
		<ul>
					<li><a href="http://www.kods.net/sga-extended-the-principle-of-32bit-oracle/" title="SGA extended the principle of 32bit oracle">SGA extended the principle of 32bit oracle</a> 2009-03-31 09:48:01</li>
					<li><a href="http://www.kods.net/an-example-of-the-use-of-tkprof/" title="An example of the use of TKPROF">An example of the use of TKPROF</a> 2009-02-26 01:38:19</li>
					<li><a href="http://www.kods.net/diagnosis-and-principles-of-order/" title="Diagnosis and principles of order">Diagnosis and principles of order</a> 2009-02-25 20:27:28</li>
					<li><a href="http://www.kods.net/oracle-10g-dataguard-configuration-step-by-step/" title="ORACLE 10G dataguard configuration Step by Step">ORACLE 10G dataguard configuration Step by Step</a> 2009-02-16 01:13:55</li>
				</ul>
		</div>
		        ]]></content:encoded>
		<wfw:commentRss>http://www.kods.net/oracle-s-archivelog-question/</wfw:commentRss>
	</item>
		<item>
		<title>Archive logs and online logs</title>
		<link>http://www.kods.net/archive-logs-and-online-logs/</link>
		<comments>http://www.kods.net/archive-logs-and-online-logs/#comments</comments>
		<pubDate>Thu, 23 Feb 2006 09:16:21+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[logs]]></category>
<category><![CDATA[archive database]]></category>
<category><![CDATA[archive directory]]></category>
<category><![CDATA[directory copy]]></category>
		<guid isPermaLink="true">http://www.kods.net/archive-logs-and-online-logs/</guid>
		<description><![CDATA[For small notes: 1, NO ARCHIVELOG Database has online redo log, the log is to record changes made to the database, such as insert, delete, update data on these operations are recorded in online redo logs. General database at least two online redo log ...]]></description>
		<content:encoded><![CDATA[For small notes: <br /><br /> 1, NO ARCHIVELOG <br /> Database has online redo log, the log is to record changes made to the database, such as insert, delete, update data on these operations are recorded in online redo logs. General database at least two online redo log group. When a redo log is filled when the log switch occurs, then the online redo log group 2 as the current use of the log, when the filled online redo log group 2, when the log switch will occur , to write the online redo log group 1, and thus repeated. <br /> Second, ARCHIVELOG <br /> Basic conditions and is consistent with the above, the only difference is that, when the log switch occurred when the log will be switched archiving. For example, the current online redo log in use 1, when a written, a time when the log switch, start writing online redo log 2, then 1, the contents of the online redo logs will be copied to another specified directory. This directory is called the archive directory, copy the archived redo log file is called. <br /> Their difference is an archive, an archive. Database using the archive can be disastrous when it is running to restore.				<h5>Related Posts</h5>
		<div id="smilar">
		<ul>
					<li><a href="http://www.kods.net/cancel-based-recovery/" title="Cancel-Based recovery">Cancel-Based recovery</a> 2009-07-16 19:32:10</li>
					<li><a href="http://www.kods.net/online-table-redefinition-table-restrictions/" title="Online table redefinition table restrictions">Online table redefinition table restrictions</a> 2009-06-19 09:45:23</li>
					<li><a href="http://www.kods.net/logfile-damage-caused-by-oracle-solution-could-not-be-activated/" title="Logfile damage caused by oracle solution could not be activated">Logfile damage caused by oracle solution could not be activated</a> 2009-04-13 03:19:31</li>
					<li><a href="http://www.kods.net/the-third-part-19-advanced-configuration-of-the-single-source-one-way-replication-environment/" title="The third part (19) Advanced Configuration of the single-source one-way replication environment">The third part (19) Advanced Configuration of the single-source one-way replication environment</a> 2009-04-09 08:37:03</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/archive-logs-and-online-logs/</wfw:commentRss>
	</item>
		<item>
		<title>oracle archiving method</title>
		<link>http://www.kods.net/oracle-archiving-method/</link>
		<comments>http://www.kods.net/oracle-archiving-method/#comments</comments>
		<pubDate>Tue, 06 Dec 2005 21:29:57+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[base oracle]]></category>
<category><![CDATA[oracle user]]></category>
<category><![CDATA[log archive]]></category>
<category><![CDATA[orcl]]></category>
<category><![CDATA[database log]]></category>
<category><![CDATA[sqlplus nolog]]></category>
<category><![CDATA[directory name]]></category>
<category><![CDATA[open sql]]></category>
<category><![CDATA[log sequence]]></category>
<category><![CDATA[true scope]]></category>
<category><![CDATA[archiving]]></category>
<category><![CDATA[backup server]]></category>
<category><![CDATA[base directory]]></category>
<category><![CDATA[archive format]]></category>
<category><![CDATA[oracle archive]]></category>
<category><![CDATA[archive directory]]></category>
<category><![CDATA[archive operation]]></category>
<category><![CDATA[directory points]]></category>
<category><![CDATA[directory cd]]></category>
<category><![CDATA[server directory]]></category>
		<guid isPermaLink="true">http://www.kods.net/oracle-archiving-method/</guid>
		<description><![CDATA[The experience is recorded to help others is to help yourself first manually archive directory, start the way in adjusting the oracle archive log mode oracle set manually create the archive in the main server directory $ cd $ ORACLE_BASE # $ ORACLE_B ...]]></description>
		<content:encoded><![CDATA[The experience is recorded to help others is to help yourself first manually archive directory, start the way in adjusting the oracle archive log mode oracle set manually create the archive in the main server directory $ cd $ ORACLE_BASE # $ ORACLE_BASE directory points to / opt / oracle /, can be found in the specific ORACLE user environment variable is set $ mkdir-p oradata / orcl / archive # orcl directory name according to the database SID for the specified number, in fact, this directory can be any specified $ mkdir-p oradata / orcl / standbyarchive # If the primary server may be used as backup server, then create the directory [oracle @ testorcl] $ 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 / orcl / archive&#39;; # / oracle / oradata / orcl / archive must be in front of mkdir-p oradata / szdb / archive operation to establish the path to exactly the same 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, so changes take effect the results of SQL&gt; shutdown immediate; <br /><br /> View archive log mode 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 / orcl / 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 the above operation will be in the database spfile@sid.ora and init@sid.ora file to add the following parameters *. log_archive_dest_1 = &#39;LOCATION = / oracle / oradata / orcl / 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 actually exist, and the oracle user is written permission NOTE: @ sid on behalf of the actual database, sid number, for example, in the practical operation of these two file names are spfileorcl.ora , initorcl.ora				<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/redhat-as-3-at-oracle10-2-1-install-document/" title="RedHat AS 3 at oracle10.2.1 install document">RedHat AS 3 at oracle10.2.1 install document</a> 2009-03-13 16:56:34</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/oracle-archiving-method/</wfw:commentRss>
	</item>
	</channel>
</rss>
