<?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>2009/03</title>
	<atom:link href="http://www.kods.net/feed/archive/2009/03/" rel="self" type="application/rss+xml" />
	<link>http://www.kods.netwww.kods.net/</link>
	<description>Oracle Jobs, Oracle Database, Oracle 9i, Oracle SQL, Oracle at Delphi, Oracle Greek, Learn Oracle, Oracle ERP</description>
	<pubDate>Fri, 12 Mar 2010 10:49:57+0000</pubDate>
	<generator>http://www.kods.netwww.kods.net/</generator>
	<language>en</language>
		<item>
		<title>Copy the database using RMAN</title>
		<link>http://www.kods.netwww.kods.net/copy-the-database-using-rman/</link>
		<comments>http://www.kods.netwww.kods.net/copy-the-database-using-rman/#comments</comments>
		<pubDate>Tue, 31 Mar 2009 20:18:52+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		
		<guid isPermaLink="true">http://www.kods.netwww.kods.net/copy-the-database-using-rman/</guid>
		<description><![CDATA[Create a new instance Better prepare the directory structure E: oracleproduct 10.1.0 admintestbdump E: oracleproduct 10.1.0 admintestcdump E: oracleproduct 10.1.0 admintestcreate E: oracleproduct 10.1 ...]]></description>
		<content:encoded><![CDATA[<strong>Create a new <font size=2>instance</font></strong> <br /><font size=2></font><br /><br /><font size=2></font><br /><br /><font size=2></font><br /><br /> <font size=2>Better prepare the directory structure</font> <font size=2> </font><p><font size=2></font><br /><br /> <font size=2>E:</font> oracleproduct <chsdate isrocdate="False" islunardate="False" day="30" month="12" year="1899" /> <font size=2>10.1.0</font> </CHSDATE> <font size=2>admintestbdump</font> <p><font size=2></font><br /><br /> <font size=2>E:</font> oracleproduct <chsdate isrocdate="False" islunardate="False" day="30" month="12" year="1899" /> <font size=2>10.1.0</font> </CHSDATE> <font size=2>admintestcdump</font> <p><font size=2></font><br /><br /> <font size=2>E:</font> oracleproduct <chsdate isrocdate="False" islunardate="False" day="30" month="12" year="1899" /> <font size=2>10.1.0</font> </CHSDATE> <font size=2>admintestcreate</font> <p><font size=2></font><br /><br /> <font size=2>E:</font> oracleproduct <chsdate isrocdate="False" islunardate="False" day="30" month="12" year="1899" /> <font size=2>10.1.0</font> </CHSDATE> <font size=2>admintestpfile</font> <p><font size=2></font><br /><br /> <font size=2>E:</font> oracleproduct <chsdate isrocdate="False" islunardate="False" day="30" month="12" year="1899" /> <font size=2>10.1.0</font> </CHSDATE> <font size=2>admintestscripts</font> <p><font size=2></font><br /><br /> <font size=2>E:</font> oracleproduct <chsdate isrocdate="False" islunardate="False" day="30" month="12" year="1899" /> <font size=2>10.1.0</font> </CHSDATE> <font size=2>admintestudmp</font> <p><font size=2></font><br /><br /><font size=2></font><br /><br /><font size=2></font><br /><br /> <font size=2>Create parameter files inittest.ini (the original library can be used to modify pfile), the main parameters are as follows:</font> <font size=2> </font><p><font size=2></font><br /><br /> <font size=2>db_name = test</font> <p><font size=2></font><br /><br /> <font size=2>background_dump_dest = E:</font> oracleproduct <chsdate isrocdate="False" islunardate="False" day="30" month="12" year="1899" /> <font size=2>10.1.0</font> </CHSDATE> <font size=2>admintestbdump</font> <p><font size=2></font><br /><br /> <font size=2>core_dump_dest = E:</font> oracleproduct <chsdate isrocdate="False" islunardate="False" day="30" month="12" year="1899" /> <font size=2>10.1.0</font> </CHSDATE> <font size=2>admintestcdump</font> <p><font size=2></font><br /><br /> <font size=2>user_dump_dest = E:</font> oracleproduct <chsdate isrocdate="False" islunardate="False" day="30" month="12" year="1899" /> <font size=2>10.1.0</font> </CHSDATE> <font size=2>admintestudump</font> <p><font size=2></font><br /><br /> <font size=2>control_files = &#39;E: oracleoradatatestcontrol01.ctl&#39;, &#39;E:</font> oracleoradatatest <font size=2>control02.ctl&#39;, &#39;E:</font> oracleoradatatest <font size=2>control03.ctl&#39;</font> <p><font size=2></font><br /><br /> <font size=2>DB_FILE_NAME_CONVERT = ( &#39;E: oracleoradataning&#39;, &#39;E: oracleoradatatest&#39;)</font> <p><font size=2></font><br /><br /> <font size=2>LOG_FILE_NAME_CONVERT = ( &#39;E: oracleoradataning&#39;, &#39;E: oracleoradatatest&#39;)</font> <p><font size=2></font><br /><br /> <font size=2>At E:</font> oracleproduct <chsdate isrocdate="False" islunardate="False" day="30" month="12" year="1899" /> <font size=2>10.1.0</font> </CHSDATE> <font size=2>admintestpfile or E: oracleproduct10.1.0db_1database can.</font> <font size=2> </font><p><font size=2></font><br /><br /><font size=2></font><br /><br /><font size=2></font><br /><br /> <font size=2>Oradim use to create a new instance</font> <p><font size=2></font><br /><br /> <font size=2>c:&gt; oradim-new-sid test</font> <p><font size=2></font><br /><br /> <font size=2>Routines have been created.</font> <font size=2> </font><p><font size=2></font><br /><br /><font size=2></font><br /><br /><font size=2></font><br /><br /> <font size=2>Create a password file using orapwd</font> <font size=2> </font><p><font size=2></font><br /><br /> <font size=2>c:&gt;</font> orapwd <font size=2>file = E:</font> oracleproduct <chsdate isrocdate="False" islunardate="False" day="30" month="12" year="1899" /> <font size=2>10.1.0</font> </CHSDATE> <font size=2>db_1databasePWDtest.ora password = test entries = 10</font> <p><font size=2></font><br /><br /><font size=2></font><br /><br /><font size=2></font><br /><br /> <font size=2>Better monitoring and configuration tnsnames, then test the connection using sqlplus</font> <font size=2> </font><p><font size=2></font><br /><br /><font size=2></font><br /><br /><font size=2></font><br /><br /> <font size=2>c:&gt; sqlplus /</font> nolog <p><font size=2></font><br /><br /><font size=2></font><br /><br /><font size=2></font><br /><br /> <font size=2>SQL * Plus: Release</font> <chsdate isrocdate="False" islunardate="False" day="30" month="12" year="1899" /> <font size=2>10.1.0</font> </CHSDATE> <font size=2>.2.0 - Production on Sunday, March 27 21:01:13 2005</font> <p><font size=2></font><br /><br /><font size=2></font><br /><br /><font size=2></font><br /><br /> <font size=2>Copyright (c) 1982, 2004, Oracle. All rights reserved.</font> <p><font size=2></font><br /><br /><font size=2></font><br /><br /><font size=2></font><br /><br /> <font size=2>SQL&gt; conn sys @ test as sysdba</font> <p><font size=2></font><br /><br /> <font size=2>Please enter password:</font> <p><font size=2></font><br /><br /> <font size=2>Is connected to the free routine.</font> <font size=2> </font><p><font size=2></font><br /><br /><font size=2></font><br /><br /><font size=2></font><br /><br /><font size=2></font><br /><br /><font size=2></font><br /><br /> <strong><font size=2>2. Rman backup using the original database</font> <font size=2> </font></strong> <p><font size=2></font><br /><br /><font size=2></font><br /><br /><font size=2></font><br /><br /> <font size=2>RMAN&gt; connect target sys / ning @ ning</font> <p><font size=2></font><br /><br /><font size=2></font><br /><br /><font size=2></font><br /><br /> <font size=2>RMAN&gt; backup full database tag &#39;fullbk&#39; format &#39;e: oracleorabackfull% u_% s_% p&#39;;</font> <p><font size=2></font><br /><br /> <strong><font size=2>3. The use of copy database rman</font> <font size=2> </font></strong> <p><font size=2></font><br /><br /><font size=2></font><br /><br /><font size=2></font><br /><br /> <font size=2>c:&gt; rman target sys / ning @ ning AUXILIARY sys / test @ test</font> <p><font size=2></font><br /><br /><font size=2></font><br /><br /><font size=2></font><br /><br /><font size=2></font><br /><br /><font size=2></font><br /><br /><font size=2></font><br /><br /><font size=2></font><br /><br /> <font size=2>RMAN&gt; DUPLICATE TARGET DATABASE TO &#39;test&#39;;</font> <br /><br /> <font color=#000000 size=2><strong>4. Check replication status library</strong></font> <p><font size=2></font><br /><br /><font size=2></font><br /><br /><font size=2></font><br /><br /> <font size=2>C:&gt; sqlplus /</font> nolog <p><font size=2></font><br /><br /><font size=2></font><br /><br /><font size=2></font><br /><br /> <font size=2>SQL&gt; conn sys @ test as sysdba</font> <p><font size=2></font><br /><br /> <font size=2>SQL&gt; select instance_name, status from v $ instance;</font> <p><font size=2></font><br /><br /><font size=2></font><br /><br /><font size=2></font><br /><br /> <font size=2>INSTANCE_NAME STATUS</font> <p><font size=2></font><br /><br /> <font size=2>---------------- ------------</font> <p><font size=2></font><br /><br /> <font size=2>test OPEN</font> <p><font size=2></font><br /><br /><font size=2></font><br /><br /><font size=2></font><br /><br /><font size=2></font><br /><br /><font size=2></font><br /><br /> <font size=2>Inittest.ora then remove the DB_FILE_NAME_CONVERT and LOG_FILE_NAME_CONVERT parameters, re-use the document to generate spfile</font> <p><font size=2></font><br /><br /><font size=2></font><br /><br /><font size=2></font><br /><br /> <font size=2>SQL&gt; create spfile from pfile = &#39;E:</font> oracleproduct <chsdate isrocdate="False" islunardate="False" day="30" month="12" year="1899" /> <font size=2>10.1.0</font> </CHSDATE> <font size=2>db_1databaseinittest.ora &#39;;</font> <p><font size=2></font><br /><br /><font size=2></font><br /><br /><font size=2></font><br /><br /> <font size=2>Document has been created.</font> <br /><br /><font size=2></font><br /><br /><font size=2></font><br /><br /><font size=2></font><br /><br /><font size=2></font><br /><br /><font size=2></font><br /><br /><font size=2></font><br /><br /><font size=2></font><br /><br /><font size=2></font>				<h5>Related Posts</h5>
		<div id="smilar">
		<ul>
					<li><a href="http://www.kods.netwww.kods.net/advanced-application-of-duplicate-copy-rman-database-3-replication-process/" title="Advanced Application of Duplicate copy RMAN database (3) replication process">Advanced Application of Duplicate copy RMAN database (3) replication process</a> 2009-12-12 08:56:44</li>
					<li><a href="http://www.kods.netwww.kods.net/rman-advanced-application-of-duplicate-copy-database-4-real/" title="RMAN Advanced Application of Duplicate Copy Database (4) real">RMAN Advanced Application of Duplicate Copy Database (4) real</a> 2009-12-12 09:27:19</li>
					<li><a href="http://www.kods.netwww.kods.net/rman-advanced-application-of-duplicate-copy-database-5-added/" title="RMAN Advanced Application of Duplicate Copy Database (5) added">RMAN Advanced Application of Duplicate Copy Database (5) added</a> 2009-12-12 02:45:57</li>
					<li><a href="http://www.kods.netwww.kods.net/advanced-application-of-duplicate-copy-rman-database-2-auxiliary-instance/" title="Advanced Application of Duplicate copy RMAN database (2) auxiliary instance">Advanced Application of Duplicate copy RMAN database (2) auxiliary instance</a> 2009-12-12 04:16:01</li>
					<li><a href="http://www.kods.netwww.kods.net/advanced-application-of-duplicate-copy-rman-database-1-overview/" title="Advanced Application of Duplicate copy RMAN database (1) Overview">Advanced Application of Duplicate copy RMAN database (1) Overview</a> 2009-12-12 09:42:35</li>
				</ul>
		</div>
		        ]]></content:encoded>
		<wfw:commentRss>http://www.kods.netwww.kods.net/copy-the-database-using-rman/</wfw:commentRss>
	</item>
		<item>
		<title>oracle10g ASM transport_tablespace</title>
		<link>http://www.kods.netwww.kods.net/oracle10g-asm-transport-tablespace/</link>
		<comments>http://www.kods.netwww.kods.net/oracle10g-asm-transport-tablespace/#comments</comments>
		<pubDate>Tue, 31 Mar 2009 19:15:20+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		
		<guid isPermaLink="true">http://www.kods.netwww.kods.net/oracle10g-asm-transport-tablespace/</guid>
		<description><![CDATA[Solution1: source: windows2003 32bit, oracle10g 10.2.0.2 target: IBM aix 64bit, oracle10g 10.2.0.3, RAC, ASM Solution2: source: HP UX 64bit, oracle10g 10.2.0.3, RAC, ASM target: IBM aix 64bit, oracle1 ...]]></description>
		<content:encoded><![CDATA[<font size=2>Solution1: <br /> source:</font> windows2003 <font size=2>32bit,</font> oracle10g <font size=2>10.2.0.2 <br /> target: IBM aix 64bit,</font> oracle10g <font size=2>10.2.0.3, RAC, ASM</font> <br /><br /> <font size=2>Solution2: <br /> source: HP UX 64bit,</font> oracle10g <font size=2>10.2.0.3, RAC, ASM <br /> target: IBM aix 64bit,</font> oracle10g <font size=2>10.2.0.3, RAC, ASM</font> <br /><br /><p> <font size=2>Solution1: <br /> source:</font> windows2003 <font size=2>32bit,</font> oracle10g <font size=2>10.2.0.2 <br /> GRANT DBA TO xsb IDENTIFIED BY xsb;</font> <br /> <font size=2>CREATE TABLESPACE</font> xsbtest_ts <font size=2>DATAFILE &#39;D: ORACLEPRODUCT10.2.0ORADATACSLSCxsbtest_ts01.DBF&#39; SIZE 5m; <br /> SELECT * FROM v $ datafile; <br /> CREATE TABLE</font> xsb.t1 <font size=2>TABLESPACE</font> xsbtest_ts <font size=2>AS SELECT * FROM dba_users; <br /> SELECT * FROM xsb.t1; <br /> ALTER TABLESPACE</font> xsbtest_ts <font size=2>READ ONLY; <br /> SELECT * FROM v $ transportable_platform ORDER BY platform_id; <br /> - conn sys AS SYSDBA <br /> - BEGIN</font> dbms_tts.transport_set_check <font size=2>( &#39;xsbtest_ts&#39;, TRUE, TRUE); END; <br /> - SELECT * FROM TRANSPORT_SET_VIOLATIONS;</font> <br /><br /> <font size=2>exp &#39;sys AS SYSDBA&#39; FILE = 1.dmp tablespaces = xsbtest_ts transport_tablespace = y</font> <br /><br /> <font size=2>ftp target <br /> bin <br /> put D: ORACLEPRODUCT10.2.0ORADATACSLSCxsbtest_ts01.DBF <br /> bye</font> <br /><br /> <font size=2>ALTER TABLESPACE</font> xsbtest_ts <font size=2>READ WRITE;</font> <br /><br /> <font size=2>target: IBM aix 64bit,</font> oracle10g <font size=2>10.2.0.3, RAC, ASM <br /> GRANT DBA TO xsb IDENTIFIED BY xsb; <br /> - DROP TABLESPACE</font> xsbtest_ts <font size=2>INCLUDING CONTENTS and datafiles;</font> <br /><br /> <font size=2>rman target / <br /> CONVERT DATAFILE &#39;/ home/oracle/XSBTEST_TS01.DBF&#39; FROM PLATFORM &#39;Microsoft Windows IA (32-bit)&#39; <br /> format &#39;+ DATA/aeg2t/datafile/xsbtest_ts.dbf&#39;; <br /> EXIT</font> <br /><br /> <font size=2>imp &#39;sys as sysdba&#39; file = 1.dmp tablespaces = xsbtest_ts transport_tablespace = y datafiles = &#39;+ DATA/aeg2t/datafile/xsbtest_ts.dbf&#39;</font> <br /><br /> <font size=2>SELECT * FROM xsb.t1;</font> <br /><br /> <font size=2>Solution2: <br /> source: HP UX 64bit,</font> oracle10g <font size=2>10.2.0.3, RAC, ASM <br /> GRANT DBA TO xsb IDENTIFIED BY xsb; CREATE TABLESPACE</font> xsbtest_ts2 <font size=2>DATAFILE SIZE 5m; <br /> SELECT * FROM dba_data_files; <br /> CREATE TABLE</font> xsb.t1 <font size=2>TABLESPACE</font> xsbtest_ts2 <font size=2>AS SELECT * FROM dba_users; <br /> SELECT * FROM xsb.t1; <br /> ALTER TABLESPACE</font> xsbtest_ts2 <font size=2>READ ONLY; <br /> SELECT * FROM dba_tablespaces; <br /> SELECT * FROM v $ transportable_platform ORDER BY platform_id; <br /> - conn sys AS SYSDBA <br /> - BEGIN</font> dbms_tts.transport_set_check <font size=2>( &#39;xsbtest_ts2&#39;, TRUE, TRUE); END; <br /> - SELECT * FROM TRANSPORT_SET_VIOLATIONS; <br /> show parameter comp</font> <br /><br /> <font size=2>exp &#39;SYS AS SYSDBA&#39; FILE = 1.dmp tablespaces = xsbtest_ts2 transport_tablespace = y</font> <br /><br /> <font size=2>rman target / <br /> copy DATAFILE # # TO &#39;/ home/oracle/xsbtest_ts2.dbf&#39;; <br /> or <br /> CONVERT TABLESPACE</font> xsbtest_ts2 <font size=2>TO platform &#39;AIX-Based Systems (64-bit)&#39; format &#39;/ home/oracle/xsbtest_ts2.dbf&#39;; <br /> EXIT</font> <br /><br /> <font size=2>ALTER TABLESPACE</font> xsbtest_ts2 <font size=2>READ WRITE;</font> <br /><br /> <font size=2>- DROP TABLESPACE</font> xsbtest_ts2 <font size=2>INCLUDING CONTENTS and datafiles; <br /> - drop user xsb cascade;</font> <br /><br /> <font size=2>ls-lt | more</font> <br /><br /> <font size=2>ftp target <br /> bin <br /> put / home/oracle/xsbtest_ts2.dbf <br /> put / home/oracle/1.dmp <br /> bye <br /><br /> target: IBM aix 64bit,</font> oracle10g <font size=2>10.2.0.3, RAC, ASM <br /> GRANT DBA TO xsb IDENTIFIED BY xsb; <br /> - DROP TABLESPACE</font> xsbtest_ts2 <font size=2>INCLUDING CONTENTS and datafiles;</font> <br /><br /> <font size=2>rman target / <br /> CONVERT DATAFILE &#39;/ home/oracle/xsbtest_ts2.dbf&#39; format &#39;+ DATA/aeg2t/datafile/xsbtest_ts2.dbf&#39;; <br /> EXIT</font> <br /><br /> <font size=2>show parameter comp</font> <br /><br /> <font size=2>imp &#39;sys as sysdba&#39; file = 1.dmp tablespaces = xsbtest_ts2 transport_tablespace = y datafiles = &#39;+ DATA/aeg2t/datafile/xsbtest_ts2.dbf&#39;</font> <br /><br /> <font size=2>SELECT * FROM xsb.t1;</font>				<h5>Related Posts</h5>
		<div id="smilar">
		<ul>
					<li><a href="http://www.kods.netwww.kods.net/how-to-shut-down-and-start-oracle10g-rac/" title="How to shut down and start Oracle10g RAC">How to shut down and start Oracle10g RAC</a> 2009-08-27 13:52:15</li>
					<li><a href="http://www.kods.netwww.kods.net/solaris-10-oracle10g-install/" title="solaris 10 oracle10g install">solaris 10 oracle10g install</a> 2009-05-24 02:02:42</li>
					<li><a href="http://www.kods.netwww.kods.net/adjustment-oracle10g-em-encountered-several-problems/" title="Adjustment oracle10G EM encountered several problems">Adjustment oracle10G EM encountered several problems</a> 2009-08-13 05:52:52</li>
					<li><a href="http://www.kods.netwww.kods.net/installed-on-the-windows2008-problems-oracle10g/" title="Installed on the Windows2008 problems oracle10g">Installed on the Windows2008 problems oracle10g</a> 2009-08-28 20:34:21</li>
					<li><a href="http://www.kods.netwww.kods.net/archive-oracle10g-example-reprint/" title="Archive oracle10g example (reprint)">Archive oracle10g example (reprint)</a> 2009-07-29 18:12:52</li>
				</ul>
		</div>
		        ]]></content:encoded>
		<wfw:commentRss>http://www.kods.netwww.kods.net/oracle10g-asm-transport-tablespace/</wfw:commentRss>
	</item>
		<item>
		<title>Oracle10g ASM database table space maintenance</title>
		<link>http://www.kods.netwww.kods.net/oracle10g-asm-database-table-space-maintenance/</link>
		<comments>http://www.kods.netwww.kods.net/oracle10g-asm-database-table-space-maintenance/#comments</comments>
		<pubDate>Tue, 31 Mar 2009 17:51:25+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[oracle]]></category>
<category><![CDATA[oracle database]]></category>
<category><![CDATA[data mining]]></category>
<category><![CDATA[sql]]></category>
<category><![CDATA[datafile name]]></category>
<category><![CDATA[select name]]></category>
<category><![CDATA[partitioning]]></category>
<category><![CDATA[oracle distribution]]></category>
<category><![CDATA[cumail]]></category>
<category><![CDATA[space segment]]></category>
<category><![CDATA[drop tablespace]]></category>
<category><![CDATA[space maintenance]]></category>
<category><![CDATA[table space]]></category>
<category><![CDATA[assm]]></category>
<category><![CDATA[space management]]></category>
<category><![CDATA[database table]]></category>
<category><![CDATA[mms]]></category>
<category><![CDATA[job]]></category>
		<guid isPermaLink="true">http://www.kods.netwww.kods.net/oracle10g-asm-database-table-space-maintenance/</guid>
		<description><![CDATA[1. Default naming Oracle when using ASM + OMF management, Oracle distribution file name will automatically create the appropriate file. Our job to create table space can be simplified as follows: A co ...]]></description>
		<content:encoded><![CDATA[1. Default naming Oracle when using ASM + OMF management, Oracle distribution file name will automatically create the appropriate file. <br /> Our job to create table space can be simplified as follows: <br /><table><tbody><tr><td width=500 bgcolor=#999999> <pre>create tablespace <EM>tablespace_name</EM>;
</pre> </td></tr></tbody></table><br /> A command. <br /> The following are the default Oracle naming examples: <br /><table><tbody><tr><td width=500 bgcolor=#999999> <pre>$ sqlplus "/ as sysdba"

SQL*Plus: Release 10.1.0.3.0 - Production on Thu Jun 16 09:26:22 2005

Copyright (c) 1982, 2004, Oracle.  All rights reserved.


Connected to:
Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - 64bit Production
With the Partitioning and Data Mining options

SQL&gt; select name from v$datafile;

NAME
--------------------------------------------------------------------------------
+DATADG/mmsdb/datafile/system.259.3
+DATADG/mmsdb/datafile/undotbs1.258.3
+DATADG/mmsdb/datafile/sysaux.257.3
+DATADG/mmsdb/datafile/users.256.3
+DATADG/mmsdb/datafile/platform.278.1
+DATADG/mmsdb/datafile/gateway.279.1

6 rows selected.
</pre> </td></tr></tbody></table><br /> 2. Since the definition of the name and file size if we want to create a custom file size and name, you can use the following method to create: <br /><table><tbody><tr><td width=500 bgcolor=#999999> <pre>SQL&gt; create tablespace cumail datafile '+DATADG/mmsdb/datafile/cumail'size 100m;

Tablespace created.

SQL&gt; select name from v$datafile;

NAME
--------------------------------------------------------------------------------
+DATADG/mmsdb/datafile/system.259.3
+DATADG/mmsdb/datafile/undotbs1.258.3
+DATADG/mmsdb/datafile/sysaux.257.3
+DATADG/mmsdb/datafile/users.256.3
+DATADG/mmsdb/datafile/platform.278.1
+DATADG/mmsdb/datafile/gateway.279.1
+DATADG/mmsdb/datafile/cumail

7 rows selected.

SQL&gt; drop tablespace cumail including contents and datafiles;

Tablespace dropped.
</pre> </td></tr></tbody></table><br /><br /> 3. ASSM managed to create the specified table space segment space required clause: <br /><table><tbody><tr><td width=500 bgcolor=#999999> <pre>SQL&gt; create tablespace cumail
  2  segment space management auto;

Tablespace created.

SQL&gt; select name from v$datafile;

NAME
------------------------------------------------------
+DATADG/mmsdb/datafile/system.259.3
+DATADG/mmsdb/datafile/undotbs1.258.3
+DATADG/mmsdb/datafile/sysaux.257.3
+DATADG/mmsdb/datafile/users.256.3
+DATADG/mmsdb/datafile/platform.278.1
+DATADG/mmsdb/datafile/gateway.279.1
+DATADG/mmsdb/datafile/cumail.280.3

7 rows selected.

SQL&gt; select tablespace_name,extent_management,segment_space_management from dba_tablespaces;

TABLESPACE_NAME                EXTENT_MAN SEGMEN
------------------------------ ---------- ------
SYSTEM                         LOCAL      MANUAL
UNDOTBS1                       LOCAL      MANUAL
SYSAUX                         LOCAL      AUTO
TEMP                           LOCAL      MANUAL
USERS                          LOCAL      AUTO
PLATFORM                       LOCAL      MANUAL
GATEWAY                        LOCAL      MANUAL
CUMAIL                         LOCAL      AUTO

8 rows selected.
</pre> </td></tr></tbody></table><br /> 3. To change the file size <br /><table><tbody><tr><td width=500 bgcolor=#999999> <pre>SQL&gt; alter database datafile '+DATADG/mmsdb/datafile/cumail.280.3' resize 300m;

Database altered.

SQL&gt; 
</pre> </td></tr></tbody></table><br /> 4. If the property set the UNIFORM SIZE to some extent the need for property, it must show the designation. <br /><table><tbody><tr><td width=500 bgcolor=#999999> <pre>SQL&gt; create tablespace ticket extent management local uniform size 128k segment space management auto;

Tablespace created.


SQL&gt; select name ,bytes/1024/1024 from v$datafile;

NAME                                     BYTES/1024/1024
---------------------------------------- ---------------
+DATADG/mmsdb/datafile/system.259.3                  450
+DATADG/mmsdb/datafile/undotbs1.258.3                 25
+DATADG/mmsdb/datafile/sysaux.257.3                  330
+DATADG/mmsdb/datafile/users.256.3                     5
+DATADG/mmsdb/datafile/platform.278.1               1000
+DATADG/mmsdb/datafile/gateway.279.1                1000
+DATADG/mmsdb/datafile/cumail.280.3                  300
+DATADG/mmsdb/datafile/ticket.281.1                  100

8 rows selected.

SQL&gt; alter database datafile '+DATADG/mmsdb/datafile/ticket.281.1' resize 300m;

Database altered.
</pre> </td></tr></tbody></table>				<h5>Related Posts</h5>
		<div id="smilar">
		<ul>
					<li><a href="http://www.kods.netwww.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.netwww.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.netwww.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.netwww.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.netwww.kods.net/oracle10g-asm-database-table-space-maintenance/</wfw:commentRss>
	</item>
		<item>
		<title>Checkpoint trigger conditions</title>
		<link>http://www.kods.netwww.kods.net/checkpoint-trigger-conditions/</link>
		<comments>http://www.kods.netwww.kods.net/checkpoint-trigger-conditions/#comments</comments>
		<pubDate>Tue, 31 Mar 2009 09:50:46+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		
		<guid isPermaLink="true">http://www.kods.netwww.kods.net/checkpoint-trigger-conditions/</guid>
		<description><![CDATA[checkpoint is a database of case, it would have modified the data from the disk cache to refresh and update the control files and data files. rn We know that the checkpoint will be set dirty data, but ...]]></description>
		<content:encoded><![CDATA[checkpoint is a database of case, it would have modified the data from the disk cache to refresh and update the control files and data files. rn <br /> We know that the checkpoint will be set dirty data, but when will it happen checkpoint? The following situations will trigger checkpoint. rn <br /> 1. When the switch happened when the log group rn <br /> 2. When in line with the LOG_CHECKPOINT_TIMEOUT, LOG_CHECKPOINT_INTERVAL, fast_start_io_target, fast_start_mttr_target parameters when rn <br /> 3. When run the ALTER SYSTEM SWITCH LOGFILE when rn <br /> 4. When run the ALTER SYSTEM CHECKPOINT when rn <br /> 5. When I run alter tablespace XXX begin backup, end backup when rn <br /> 6. When I run alter tablespace, datafile offline time; rnrn rn rn				<h5>Related Posts</h5>
		<div id="smilar">
		<ul>
					<li><a href="http://www.kods.netwww.kods.net/checkpoint-introduced/" title="checkpoint introduced">checkpoint introduced</a> 2009-07-05 15:17:45</li>
					<li><a href="http://www.kods.netwww.kods.net/oracle-trigger-syntax-xiangjie/" title="oracle trigger syntax Xiangjie">oracle trigger syntax Xiangjie</a> 2010-01-19 04:38:03</li>
					<li><a href="http://www.kods.netwww.kods.net/oracle10g-training-log-%e2%98%86-7/" title="oracle10g Training Log ☆ 7">oracle10g Training Log ☆ 7</a> 2009-08-22 12:10:04</li>
					<li><a href="http://www.kods.netwww.kods.net/log-oracle10g-training-%e2%98%86-7/" title="Log oracle10g training ☆ 7">Log oracle10g training ☆ 7</a> 2009-08-17 23:35:01</li>
					<li><a href="http://www.kods.netwww.kods.net/oracle-trigger-details/" title="Oracle Trigger Details">Oracle Trigger Details</a> 2010-01-10 01:55:05</li>
				</ul>
		</div>
		        ]]></content:encoded>
		<wfw:commentRss>http://www.kods.netwww.kods.net/checkpoint-trigger-conditions/</wfw:commentRss>
	</item>
		<item>
		<title>oracle configuration</title>
		<link>http://www.kods.netwww.kods.net/oracle-configuration/</link>
		<comments>http://www.kods.netwww.kods.net/oracle-configuration/#comments</comments>
		<pubDate>Tue, 31 Mar 2009 09:50:36+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		
		<guid isPermaLink="true">http://www.kods.netwww.kods.net/oracle-configuration/</guid>
		<description><![CDATA[bash_profile ORACLE_BASE = / opt / oracle; export ORACLE_BASE ORACLE_HOME = $ ORACLE_BASE/product/10.2.0/db_1; export ORACLE_HOME ORACLE_SID = oracle; export ORACLE_SID NLS_LANG = AMERICAN_AMERICA.ZHS ...]]></description>
		<content:encoded><![CDATA[bash_profile <br /> ORACLE_BASE = / opt / oracle; export ORACLE_BASE <br /> ORACLE_HOME = $ ORACLE_BASE/product/10.2.0/db_1; export ORACLE_HOME <br /> ORACLE_SID = oracle; export ORACLE_SID <br /> NLS_LANG = AMERICAN_AMERICA.ZHS16GBK; export NLS_LANG <br /> PATH = / usr / sbin: $ PATH; export PATH <br /> PATH = $ ORACLE_HOME / bin: $ PATH; export PATH <br /> LD_LIBRARY_PATH = $ ORACLE_HOME / lib: / lib: / usr / lib; export LD_LIBRARY_PATH <br /> / etc / sysctl.conf <br /> kernel.shmall = 2097152 <br /> kernel.shmmax = 2147483648 <br /> kernel.shmmni = 4096 <br /> kernel.sem = 250 32000 100 128 <br /> fs.file-max = 65536 <br /> net.ipv4.ip_local_port_range = 1024 65000 <br /> net.core.rmem_default = 262144 <br /> net.core.rmem_max = 262144 <br /> net.core.wmem_default = 262144 <br /> net.core.wmem_max = 262144 <br /> rn rn rn				<h5>Related Posts</h5>
		<div id="smilar">
		<ul>
					<li><a href="http://www.kods.netwww.kods.net/oracle-rac-client-ha-configuration-change/" title="oracle RAC client HA configuration (change)">oracle RAC client HA configuration (change)</a> 2009-10-17 19:30:02</li>
					<li><a href="http://www.kods.netwww.kods.net/oracle10g-network-configuration/" title="Oracle10g Network Configuration">Oracle10g Network Configuration</a> 2009-04-05 05:19:49</li>
					<li><a href="http://www.kods.netwww.kods.net/the-third-part-21-advanced-configuration-of-the-single-source-multi-directional-replication-environment-3/" title="The third part (21) Advanced Configuration of the single-source multi-directional replication environment (3)">The third part (21) Advanced Configuration of the single-source multi-directional replication environment (3)</a> 2009-04-09 02:30:45</li>
					<li><a href="http://www.kods.netwww.kods.net/checking-network-configuration-requirements/" title="checking network configuration requirements">checking network configuration requirements</a> 2009-03-30 17:55:14</li>
					<li><a href="http://www.kods.netwww.kods.net/three-listener-configuration-file/" title="three listener configuration file">three listener configuration file</a> 2009-04-01 18:18:15</li>
				</ul>
		</div>
		        ]]></content:encoded>
		<wfw:commentRss>http://www.kods.netwww.kods.net/oracle-configuration/</wfw:commentRss>
	</item>
		<item>
		<title>(To) oracle job application</title>
		<link>http://www.kods.netwww.kods.net/to-oracle-job-application/</link>
		<comments>http://www.kods.netwww.kods.net/to-oracle-job-application/#comments</comments>
		<pubDate>Tue, 31 Mar 2009 09:50:05+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		
		<guid isPermaLink="true">http://www.kods.netwww.kods.net/to-oracle-job-application/</guid>
		<description><![CDATA[1. Rn rn begin rn sys.dbms_job.submit (job =&gt;: job, rn what =&gt; &#39;job_stat_cooperate;&#39;, rn next_date =&gt; to_date (&#39;01-07-2008 05:00:00 &#39;,&#39; dd-mm-yyyy hh24: mi: ss&#39;), rn i ...]]></description>
		<content:encoded><![CDATA[1. Rn <OL> rn <LI> <FONT color=#7f0055><STRONG>begin</strong></font> rn <LI> sys.dbms_job.submit (job =&gt;: job, rn <LI> what =&gt; <FONT color=#0000ff>&#39;job_stat_cooperate;&#39;,</font> rn <LI> next_date =&gt; to_date <FONT color=#0000ff>(&#39;01-07-2008 05:00:00 &#39;,&#39; dd-mm-yyyy hh24: mi: ss&#39;),</font> rn <LI> interval =&gt; <FONT color=#0000ff>&#39;TRUNC (SYSDATE +30) +5 / 24&#39;);</font> rn <LI> <FONT color=#7f0055><STRONG>commit;</strong></font> rn <LI> <FONT color=#7f0055><STRONG>end;</strong></font> rn <LI> / B283e95da1736c5bfb2ecf4b4266705e </LI></OL> rn <br /> Of each month at 5:00 on the 1st implementation of the JOB, wrote last week to try and come this week, also saw the implementation of the effect of OK. Record. <br /><br /> rn <br /> TRUNC (SYSDATE +30) +5 / 24 that the cycle time, the time now with the date 30 days, together with a specific time. <br /><br /> rn <br /> 2. <br /><br /> rn <br /><A"http://www.cnblogs.com/liunx/archive/2008/04/09/1145173.html"> <FONT color=#0000ff>Oracle timer (Job) written summary of the time period</font> <br /> rn <br /> Original author: <FONT color=#0000ff>a blog-hui Park</font> Original: <FONT color=#0000ff>link</font> rn <br /> For DBA, the database Job familiar, and usually want the database from time to time because of the automatic implementation of a number of scripts, or to do a database backup, or to do data extraction, or to do database performance optimization, including the work of rebuilding the index and so on. However, Oracle Timer Job on treatment time, the ever-changing, I put the wording commonly used are summarized as follows: <br /><br /> rn <br /> In concluding, Job first explain the parameters one by one: <br /><br /> rn <br /> job parameters are from the Submit () the process of the return binary_ineger. This value is used to uniquely identify a job; <br /><br /> rn <br /> what parameters are to be implemented by PL / SQL code block; <br /><br /> rn <br /> parameters next_date means knowing when to run the job. Writing Job could not specify when the value; <br /><br /> rn <br /> interval parameter when the job will be re-implementation. <br /><br /> rn <br /> Interval This value is one of Job decide when it was re-run the key. <br /><br /> rn <br /> For example: there is stored procedure p_dosomethings, required by the implementation of different time intervals. <br /><br /> rn <br /> 1declare <BR> 2 jobno number; <BR> 3begin <BR> 4 dbms_job.submit ( <BR> 5 jobno, <BR> 6 &#39;p_dosomething;&#39;, - what <BR> 7 to_date (&#39;20090101020000 &#39;,&#39; yyyy-mm-dd hh24: mi: ss&#39;),-- next_date, can not fill <BR> 8 &#39;Interval time string&#39; - interval, the key set <BR> 9); <BR> 10 commit; <BR> 11end; <BR> 12 <br /> rn <br /><BR><br /><br /> rn <br /> 1, the implementation of per minute <br /><br /> rn <br /> Interval =&gt; TRUNC <STRONG>(sysdate,</strong> &#39;mi&#39;) + 1 / (24 * 60) <br /><br /> rn <br /> 2, every day from time to time the implementation of <br /><br /> rn <br /> For example: every day 2:00 of the implementation of <br /><br /> rn <br /> Interval =&gt; TRUNC <STRONG>(sysdate)</strong> + 1 +2 / (24) <br /><br /> rn <br /> 3, a week from time to time the implementation of <br /><br /> rn <br /> For example: every Monday 2:00 Executive <br /><br /> rn <br /> Interval =&gt; TRUNC (next_day <STRONG>(sysdate,</strong> 2)) +2 / 24 - On Monday, the second day of the week <br /><br /> rn <br /> 4, a month from time to time the implementation of <br /><br /> rn <br /> For example: monthly at 2:00 on the 1st Executive <br /><br /> rn <br /> Interval =&gt; TRUNC (LAST_DAY (SYSDATE)) +1 +2 / 24 <br /><br /> rn <br /> 5, from time to time the implementation of quarterly <br /><br /> rn <br /> For example the first day of each quarter, 2:00 implementation <br /><br /> rn <br /> Interval =&gt; TRUNC (ADD_MONTHS (SYSDATE, 3), &#39;Q&#39;) + 2 / 24 <br /><br /> rn <br /> 6 per annum from time to time the implementation of <br /><br /> rn <br /> For example: July 1 each year and at 2 o&#39;clock on January 1 <br /><br /> rn <br /> Interval =&gt; ADD_MONTHS (trunc <STRONG>(sysdate,</strong> &#39;yyyy&#39;), 6) +2 / 24 <br /><br /> rn <br /> 7, from time to time the implementation of the annual <br /><br /> rn <br /> For example: Every year at 2:00 on the January 1 implementation <br /><br /> rn <br /> Interval =&gt; ADD_MONTHS (trunc <STRONG>(sysdate,</strong> &#39;yyyy&#39;), 12) +2 / 24 <br /><br /> rn <br /> Listed above can not of course to take care of all aspects, but look a little change can be derived from numerous examples, you must be smart of you, I do not here many a wordy. <br /><br /> rn <br /><BR> 3. Often to oracle database from time to time some of the script to run automatically, or to do a database backup, or to do data extraction, or to do database performance optimization, including the work of rebuilding the index and so on, when used in a function required dbms_job.submit to achieve Oracle Timer Job on treatment time. Dbms_job.submit use this function, we only need to consider two things: a mission organization, and customized implementation of the mandate of a point in time. But the most important and most difficult thing, in my opinion is the implementation of the mandate to identify a point in time. Defined point in time, other things was true. Dbms_job.submit the following functions are used: <BR> rn <br /> rn <br /> rn <br /> Java code <br /><br /> rn <OL> rn <LI> dbms_job.submit (job out binary_integer, rn <LI> what in archar2, rn <LI> next_date in date, rn <LI> interval in varchar2, rn <LI> no_parse in <FONT color=#7f0055><STRONG>boolean)</strong></font> </LI></OL><br /> <PRE"DISPLAY: none" name="code">dbms_job.submit( job out binary_integer,rnwhat　　　　　　　in　　　archar2,rnnext_date　　　 　in　　　date，rninterval　　　　　in　　　varchar2,rnno_parse　　　　　in　　　boolean)rn</PRE> <BR> One of: <BR> ● job: output variables, is the mission at the mission queue number; <BR> ● what: the name of the implementation of the mission and its input parameters; <BR> ● next_date: the implementation of the mission time; <BR> ● interval: time interval between the implementation of mission. <BR> Interval This value is one of Job decide when it was re-implementation of the key; when the interval is set to null, the implementation of the end of job, they are deleted from the queue. If we are required periodically the implementation of the job, then use &#39;sysdate + m&#39; express. How to better determine the interval between the execution time we have a necessary function TRUNC. <BR><BR> 1.TRUNC (for dates) <BR> TRUNC function for a specific element and the date value truncated. <BR> The specific format of the grammar are as follows: <BR> TRUNC (date [, fmt]) <BR> One of: <BR> a date value of date <BR> fmt date format, the date format will be specified by the amputation of the elements. Ignore it amputated from below the most recent date are the use of this function: <BR> 1) The year-on-year Censored <BR> select TRUNC (TO_DATE (&#39;2008-03-01 08:23 &#39;,&#39; yyyy-mm-dd hh: mi &#39;),&#39; yyyy &#39;) from dual <BR> -------------------------------------------------- --------- <BR> 2008-1-1 <BR> 2) monthly Censored <BR> select TRUNC (TO_DATE (&#39;2008-03-01 08:23 &#39;,&#39; yyyy-mm-dd hh: mi &#39;),&#39; mm &#39;) from dual <BR> -------------------------------------------------- ------ <BR> 2008-3-1 <BR> 3) daily Censored <BR> select TRUNC (TO_DATE (&#39;2008-03-01 08:23 &#39;,&#39; yyyy-mm-dd hh: mi &#39;),&#39; dd &#39;) from dual <BR> -------------------------------------------------- -------------------- <BR> 2008-3-1 <BR> 4) time Censored <BR> select TRUNC (TO_DATE (&#39;2008-03-01 08:23 &#39;,&#39; yyyy-mm-dd hh: mi &#39;),&#39; hh &#39;) from dual <BR> -------------------------------------------------- -------------------- <BR> 2008-3-1 8:00:00 <BR> 5) by sub-Censored <BR> select TRUNC (TO_DATE (&#39;2008-03-01 08:23 &#39;,&#39; yyyy-mm-dd hh: mi &#39;),&#39; mi &#39;) from dual <BR> -------------------------------------------------- -------------------- <BR> 2008-3-1 8:23:00 <BR><BR><BR><BR> 2. To determine the execution time interval <BR> 1), the implementation of per minute <BR> Interval =&gt; TRUNC (sysdate, &#39;mi&#39;) + 1 / (24 * 60) <BR> 2), every day from time to time the implementation of such as: 2:00 every day of the implementation of <BR> Interval =&gt; TRUNC (sysdate) + 1 +2 / (24) <BR> 3), such as a week from time to time the implementation: every Monday 2:00 Executive <BR> Interval =&gt; TRUNC (next_day (sysdate, 2)) +2 / 24 - On Monday, the second day of the week <BR> 4) a month from time to time the implementation of such as: monthly at 2:00 on the 1st Executive <BR> Interval =&gt; TRUNC (LAST_DAY (SYSDATE)) +1 +2 / 24 <BR> 5), such as a quarterly from time to time the implementation of the first day of each quarter, 2:00 implementation <BR> Interval =&gt; TRUNC (ADD_MONTHS (SYSDATE, 3), &#39;Q&#39;) + 2 / 24 <BR> 6), such as every six months to implement from time to time: July 1 each year and at 2 o&#39;clock on January 1 <BR> Interval =&gt; ADD_MONTHS (trunc (sysdate, &#39;yyyy&#39;), 6) +2 / 24 <BR> 7), such as the implementation of the annual timing: Every year at 2:00 on the January 1 implementation <BR> Interval =&gt; ADD_MONTHS (trunc (sysdate, &#39;yyyy&#39;), 12) +2 / 24 <BR><BR><BR><BR> 3. Examples here provide a simple example, is completed at each time interval to insert a table within a Record <BR> 1) create a test table rn <br /> rn <OL> rn <LI> rn <LI> SQL&gt; create table test (id number, cur_time date); rn <LI> Table has been created. rn <LI> Construction sequence rn ---- <LI> CREATE SEQUENCE test_sequence rn <LI> INCREMENT BY <FONT color=#c00000>1</font> - each add some rn <LI> START WITH <FONT color=#c00000>1</font> - start counting rn from <FONT color=#c00000>one</font> <LI> NOMAXVALUE - do not set the Maximum rn <LI> NOCYCLE - has been cumulative, non-circulating rn <LI> CACHE <FONT color=#c00000>10;</font> </LI></OL><br /> <PRE"DISPLAY: none" name="code"> rn SQL&gt;   create   table   test(id number,cur_time   date);  rn  表已创建。rn----建sequencernCREATE  SEQUENCE test_sequencernINCREMENT  BY   1 　  --  每次加几个 rn START  WITH   1 　　  --  从1开始计数 rn NOMAXVALUE　　　  --  不设置最大值 rn NOCYCLE　　　　　 --  一直累加，不循环 rn CACHE  10 ;rn</PRE> <BR><BR> - Build trigger code: rn <br /> rn <OL> rn <LI> create or replace trigger tri_test_id rn <LI> before insert on test - test table are rn <LI> <FONT color=#7f0055><STRONG>for</strong></font> each row rn <LI> declare rn <LI> nextid number; rn <LI> begin rn <LI> IF: <FONT color=#7f0055><STRONG>new.</strong></font> Id IS NULLor: <FONT color=#7f0055><STRONG>new.</strong></font> Id = <FONT color=#c00000>0</font> THEN - id are listed rn <LI> select test_sequence.nextval - SEQ_ID is created just rn <LI> into nextid rn <LI> from sys.dual; rn <LI> : <FONT color=#7f0055><STRONG>New.</strong></font> Id: = nextid; rn <LI> end <FONT color=#7f0055><STRONG>if;</strong></font> rn <LI> end tri_test_id; rn <LI></LI></OL><br /> <PRE"DISPLAY: none" name="code">create or replace trigger tri_test_idrn  before insert on test   --test 是表名rn  for each rowrndeclarern  nextid number;rnbeginrn  IF :new.id IS NULLor :new.id=0 THEN --id是列名rn    select test_sequence.nextval --SEQ_ID正是刚才创建的rn    into nextidrn    from sys.dual;rn    :new.id:=nextid;rn  end if;rnend tri_test_id; rn </PRE> <BR><BR> 2) create a custom process rn <br /> rn <OL> rn <LI> rn <LI> SQL&gt; create or replace procedure proc_test as rn <LI> <FONT color=#c00000>2</font> begin rn <LI> <FONT color=#c00000>3</font> insert into test (cur_time) values (sysdate); rn <LI> <FONT color=#c00000>4</font> end; rn <LI> <FONT color=#c00000>5</font> / rn <LI></LI></OL><br /> <PRE"DISPLAY: none" name="code"> rn SQL&gt;   create   or   replace   procedure   proc_test   as  rn      2     begin  rn      3     insert   into   test(cur_time)   values(sysdate);  rn      4     end;  rn      5     /rn  </PRE> <BR><BR> Process has been created. <BR><BR> 3) create a JOB rn<br /> rn <OL> rn <LI> SQL&gt; declare job1 number; rn <LI> begin rn <LI> dbms_job.submit (job1, <FONT color=#0000ff>&#39;proc_test;&#39;, sysdate, &#39;sysdate +1 / 1440&#39;);</font> - every day <FONT color=#c00000>1440</font> minutes, that is, the process of one-minute test run first rn <LI> end; </LI></OL><br /> <PRE"DISPLAY: none" name="code">  SQL&gt; declare job1 number;rn       beginrn          dbms_job.submit(job1,'proc_test;',sysdate,'sysdate+1/1440');--每天1440分钟，即一分钟运行test过程一次rn      end;rn</PRE> <BR><BR> PL / SQL JOB has been completed successfully. <br /> rn <br /><br /> rn				<h5>Related Posts</h5>
		<div id="smilar">
		<ul>
					<li><a href="http://www.kods.netwww.kods.net/dataguard-logs-application-service/" title="DATAGUARD logs Application Service">DATAGUARD logs Application Service</a> 2010-01-22 13:21:36</li>
					<li><a href="http://www.kods.netwww.kods.net/biee-application-server-control-to-reset-your-password/" title="biee Application Server Control to reset your password">biee Application Server Control to reset your password</a> 2009-08-11 08:20:03</li>
					<li><a href="http://www.kods.netwww.kods.net/the-first-part-of-6-based-application-process-i/" title="The first part of (6)-based application process (I)">The first part of (6)-based application process (I)</a> 2009-04-09 05:12:14</li>
					<li><a href="http://www.kods.netwww.kods.net/how-to-design-a-good-database/" title="How to design a good database">How to design a good database</a> 2009-06-30 04:14:26</li>
					<li><a href="http://www.kods.netwww.kods.net/the-first-part-5-based-on-the-communication-process-below/" title="The first part (5) based on the communication process (below)">The first part (5) based on the communication process (below)</a> 2009-04-09 12:20:13</li>
				</ul>
		</div>
		        ]]></content:encoded>
		<wfw:commentRss>http://www.kods.netwww.kods.net/to-oracle-job-application/</wfw:commentRss>
	</item>
		<item>
		<title>ORACLE10G full version centos5 installed (the installation has passed)</title>
		<link>http://www.kods.netwww.kods.net/oracle10g-full-version-centos5-installed-the-installation-has-passed/</link>
		<comments>http://www.kods.netwww.kods.net/oracle10g-full-version-centos5-installed-the-installation-has-passed/#comments</comments>
		<pubDate>Tue, 31 Mar 2009 09:49:10+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[sysstat]]></category>
<category><![CDATA[oracle]]></category>
<category><![CDATA[oracle 10g]]></category>
<category><![CDATA[oracle home]]></category>
<category><![CDATA[base oracle]]></category>
<category><![CDATA[libstdc]]></category>
<category><![CDATA[cd home]]></category>
<category><![CDATA[glibc]]></category>
<category><![CDATA[installation cd]]></category>
<category><![CDATA[chown]]></category>
<category><![CDATA[passwd]]></category>
<category><![CDATA[gcc]]></category>
<category><![CDATA[kernel]]></category>
<category><![CDATA[pam]]></category>
<category><![CDATA[variables]]></category>
<category><![CDATA[lib]]></category>
<category><![CDATA[shell]]></category>
<category><![CDATA[cd rom]]></category>
<category><![CDATA[fi]]></category>
		<guid isPermaLink="true">http://www.kods.netwww.kods.net/oracle10g-full-version-centos5-installed-the-installation-has-passed/</guid>
		<description><![CDATA[ORACLE10G full version centos5 installed (the installation has passed) 1. Centos 5.0 install rn GUI must be installed, it is best not to start selinux rn rn rn 二. Ready to install the software: (this  ...]]></description>
		<content:encoded><![CDATA[<h1> <b><strong>ORACLE10G full version centos5 installed (the installation has passed)</strong></b> </h1><br /><br /> <font size="3">1. Centos 5.0 install</font> <o:p></o:p><br /> rn <br /> <font size="3">GUI must be installed,</font> it is <font size="3">best not to start selinux</font> <br /> rn <br /><o:p><font size="3"> </font></o:p><br /> rn <br /><o:p><font size="3"> </font></o:p><br /> rn <br /> <font size="3">二. Ready to install the software: (this is very important, is the first installation failed because the package did not play the whole)</font> <o:p></o:p><br /> rn <br /> <font size="3">binutils</font> <o:p></o:p><br /> rn <br /> <font size="3">compat-libstdc + +</font> <o:p></o:p><br /> rn <br /> <font size="3">elfutils-libelf</font> <o:p></o:p><br /> rn <br /> <font size="3">elfutils-libelf-devel</font> <o:p></o:p><br /> rn <br /> <font size="3">glibc</font> <o:p></o:p><br /> rn <br /> <font size="3">glibc-common</font> <o:p></o:p><br /> rn <br /> <font size="3">glibc-devel</font> <o:p></o:p><br /> rn <br /> <font size="3">gcc</font> <o:p></o:p><br /> rn <br /> <font size="3">gcc-c + +</font> <br /> rn <br /> <font size="3">libaio</font> <o:p></o:p><o:p></o:p><br /> rn <br /> <font size="3">libaio-devel</font> <o:p></o:p><br /> rn <br /> <font size="3">libgcc</font> <o:p></o:p><br /> rn <br /> <font size="3">libstdc + +</font> <o:p></o:p><br /> rn <br /> <font size="3">libstdc + +-devel</font> <o:p></o:p><br /> rn <br /> <font size="3">make</font> <o:p></o:p><br /> rn <br /> <font size="3">sysstat</font> <o:p></o:p><br /> rn <br /> <font size="3">unixODBC</font> <o:p></o:p><br /> rn <br /> <font size="3">unixODBC-devel</font> <br /> rn <br /> <font size="3">Directly from the software on the installation CD-ROM will be able to find (behind the first name did not write the whole version, with CD-ROM can CENTOS5 normal installation)</font> <o:p></o:p><br /> rn <br /><o:p><font size="3"> </font></o:p><br /> rn <br /> <font size="3">三. Set up users and groups</font> <br /> rn <br /> <font size="3">/ usr / sbin / groupadd oinstall <br /> / usr / sbin / groupadd dba <br /> / usr / sbin / useradd-g oinstall-G dba oracle <br /> passwd oracle</font> <o:p></o:p><br /> rn <br /><o:p><font size="3"> </font></o:p><br /> rn <br /> <font size="3">四. Set up directories and permissions</font> <o:p></o:p><br /> rn <br /> <font size="3">mkdir / oracle <br /> mkdir / oracle/10g <br /> chown-R oracle:</font> oinstall <font size="3">/ oracle</font> <o:p></o:p><br /> rn <br /><o:p><font size="3"> </font></o:p><br /> rn <br /> <font size="3">五. Edit Variables</font> <o:p></o:p><br /> rn <br /> <font size="3">1.</font> <o:p></o:p><br /> rn <br /> <font size="3">vi / etc / sysctl.conf</font> <o:p></o:p><br /> rn <br /> <font size="3">kernel.shmall =</font> 2097152 <o:p></o:p><br /> rn <br /> <font size="3">kernel.shmmax = 2147483648</font> <o:p></o:p><br /> rn <br /> <font size="3">kernel.shmmni = 4096</font> <o:p></o:p><br /> rn <br /> <font size="3">kernel.sem = 250 32000 100 128</font> <o:p></o:p><br /> rn <br /> <font size="3">net.ipv4.ip_local_port_range = 1024 65000</font> <o:p></o:p><br /> rn <br /> <font size="3">net.core.rmem_default =</font> 4194304 <o:p></o:p><br /> rn <br /> <font size="3">net.core.rmem_max =</font> 4194304 <o:p></o:p><br /> rn <br /> <font size="3">net.core.wmem_default = 262144</font> <o:p></o:p><br /> rn <br /> <font size="3">net.core.wmem_max = 262144</font> <o:p></o:p><br /> rn <br /><o:p><font size="3"> </font></o:p><br /> rn <br /> <font size="3">2.</font> <o:p></o:p><br /> rn <br /> <font size="3">vi / etc / security / limits.conf</font> <o:p></o:p><br /> rn <br /> <font size="3">oracle soft nproc 2047</font> <o:p></o:p><br /> rn <br /> <font size="3">oracle hard nproc 16384</font> <o:p></o:p><br /> rn <br /> <font size="3">oracle soft nofile 1024</font> <o:p></o:p><br /> rn <br /> <font size="3">oracle hard nofile 65536</font> <o:p></o:p><br /> rn <br /><o:p><font size="3"> </font></o:p><br /> rn <br /> <font size="3">3.</font> <o:p></o:p><br /> rn <br /> <font size="3">vi / etc / pam.d / login</font> <o:p></o:p><br /> rn <br /> <font size="3">session required / lib / security / pam_limits.so</font> <o:p></o:p><br /> rn <br /> <font size="3">session required</font> pam_limits.so <o:p></o:p><br /> rn <br /><o:p><font size="3"> </font></o:p><br /> rn <br /> <font size="3">4.</font> <o:p></o:p><br /> rn <br /> <font size="3">vi / etc / profile</font> <o:p></o:p><br /> rn <br /> <font size="3">if [$ USER = &quot;oracle&quot;]; then</font> <o:p></o:p><br /> rn <br /> <font size="3">if [$ SHELL = &quot;/ bin / ksh&quot;]; then</font> <o:p></o:p><br /> rn <br /> <font size="3">ulimit-p 16384</font> <o:p></o:p><br /> rn <br /> <font size="3">ulimit-n 65536</font> <o:p></o:p><br /> rn <br /> <font size="3">else</font> <o:p></o:p><br /> rn <br /> <font size="3">ulimit-u 16384-n 65536</font> <o:p></o:p><br /> rn <br /> <font size="3">fi</font> <o:p></o:p><br /> rn <br /> <font size="3">fi</font> <o:p></o:p><br /> rn <br /> <font size="3">5.</font> <br /> rn <br /> <font size="3">cd / home / oracle</font> <o:p></o:p><br /> rn <br /> rn <br /><o:p></o:p><br /> <font size="3">vi. bash_profile</font> <o:p></o:p><br /> rn <br /> <font size="3">ORACLE_BASE = / oracle</font> <o:p></o:p><br /> rn <br /> <font size="3">ORACLE_HOME = $ ORACLE_BASE/10g</font> <o:p></o:p><br /> rn<br /> <font size="3">ORACLE_SID = wilson</font> <o:p></o:p><br /> rn <br /> <font size="3">PATH = $ ORACLE_HOME / bin: $ PATH</font> <o:p></o:p><br /> rn <br /><o:p><font size="3"> </font></o:p><br /> rn <br /> <font size="3">export</font> ORACLE_BASE <font size="3">ORACLE_HOME ORACLE_SID PATH</font> <br /> rn <br /><br /> rn <br /> <font color="#000000"><font size="2"><font face="SimSun">6. LibXp installation</font></font></font> <br /> rn <br /> <font color="#000000" size="2" face="SimSun">yum-y install libXp</font> <br /> rn <br /><font color="#000000" size="2" face="SimSun"></font><br /> rn <br /> <font color="#000000" size="4" face="SimSun"><font color="#000000" size="2" face="SimSun">7.</font> Rn <br /> <strong><font color="#000000"><font size="2"><font face="SimSun">vi / etc / redhat-release</font></font></font></strong> <br /> rn <br /> <strong><font color="#000000"><font size="2"><font face="SimSun">To CentOS release 5 (Final) modified redhat 4</font></font></font></strong> <br /></font> <br /> rn <br /><o:p><font size="3"> </font></o:p><br /> rn <br /> <font size="3">六. Oracle user to use linux</font> <o:p></o:p><br /> rn <br /> <font size="3">Into the terminal</font> <o:p></o:p><br /> rn <br /> <font size="3">sh / ORACLE directory / runInstaller</font> <o:p></o:p><br /> rn <br /> <font size="3">Can be a normal installation, an error about permissions can be ignored</font> <o:p></o:p><br /> rn <br /><o:p><font size="3"> </font></o:p><br /> rn <br /> <font size="3">Seven. Running after installation</font> <br /> rn <br /> <font size="3">ORACLE can not be installed because of auto-start, need to manually start the ORACLE, has two kinds of methods.</font> <br /> rn <br /><br /> rn <br /> <font size="3">1. Manually activated</font> <br /> rn <br /> <font size="3">su - oracle</font> <br /> rn <br /> <font size="3">export ORACLE_HOME = / oracle installation directory</font> <br /> rn <br /> <font size="3">export</font> ORACLE_SID <font size="3">= sid Name</font> <br /> rn <br /> <font size="3">sqlpuls /</font> nolog <br /> rn <br /> <font size="3">Appear</font> <br /> rn <br /> <font size="3">sql&gt; conn sys / password as sysdba</font> <br /> rn <br /> <font size="3">sql&gt; startup</font> <br /> rn <br /> <font size="3">sql&gt; exit</font> <br /> rn <br /><br /> rn <br /> <font size="3">cd / oracle directory / bin</font> <br /> rn <br /> <font size="3">. /</font> lsnrctl <font size="3">start</font> <br /> rn <br /><o:p> <font size="3">Should not be error, it should be entirely under the ORACLE start up.</font> </o:p><br /> rn <br /><font size="3"></font><br /> rn <br /> <font size="3">2. Auto-start, a problem sometimes, do not know how else</font> <br /> rn <br /> <font size="3">First need to add two kinds of scripts (you can modify the red part of the)</font> <o:p></o:p><br /> rn <br /> <font size="3">cd / etc / init.d /</font> <o:p></o:p><br /> rn <br /> <font size="3">touch oracle</font> <o:p></o:p><br /> rn <br /> <font size="3">vi oracle</font> <o:p></o:p><br /> rn <br /> <font size="3">Write:</font> <o:p></o:p><br /> rn <br /> <font size="3">#! / bin / bash</font> <o:p></o:p><br /> rn <br /> <font size="3">#</font> <o:p></o:p><br /> rn <br /> <font size="3"># Chkconfig: 2345 80 05</font> <o:p></o:p><br /> rn <br /> <font size="3"># Description: Oracle 10g Server</font> <o:p></o:p><br /> rn <br /> <font size="3"># / Etc / init.d /</font> dbora <o:p></o:p><br /> rn <br /> <font size="3">#</font> <o:p></o:p><br /> rn <br /> <font size="3"># Run-level Startup script for the Oracle Instance, Listener, and</font> <o:p></o:p><br /> rn <br /> <font size="3"># Web Interface</font> <o:p></o:p><br /> rn <br /><o:p><font size="3"> </font></o:p><br /> rn <br /> <font size="3">export</font> ORACLE_BASE <font size="3">= / oracle</font> <o:p></o:p><br /> rn <br /> <font size="3">export ORACLE_HOME = $ ORACLE_BASE/10g</font> <o:p></o:p><br /> rn <br /> <font size="3">export</font> ORACLE_SID <font size="3">= resume</font> <o:p></o:p><br /> rn <br /> <font size="3">export PATH = $ PATHORACLE_HOME / bin</font> <o:p></o:p><br /> rn <br /><o:p><font size="3"> </font></o:p><br /> rn <br /> <font size="3">ORA_OWNR = &quot;oracle&quot;</font> <o:p></o:p><br /> rn <br /><o:p><font size="3"> </font></o:p><br /> rn <br /> <font size="3"># If the executables do not exist - display error</font> <o:p></o:p><br /> rn <br /><o:p><font size="3"> </font></o:p><br /> rn <br /> <font size="3">if [!-f $ ORACLE_HOME / bin / dbstart-o!-d $ ORACLE_HOME]</font> <o:p></o:p><br /> rn <br /> <font size="3">then</font> <o:p></o:p><br /> rn <br /> <font size="3">echo &quot;Oracle startup:</font> cannot <font size="3">start&quot;</font> <o:p></o:p><br /> rn <br /> <font size="3">exit 1</font> <o:p></o:p><br /> rn <br /> <font size="3">fi</font> <o:p></o:p><br /> rn <br /> <font size="3"># Depending on parameter - startup, shutdown, restart</font> <o:p></o:p><br /> rn <br /> <font size="3"># Of the instance and listener or usage display</font> <o:p></o:p><br /> rn <br /><o:p><font size="3"> </font></o:p><br /> rn <br /> <font size="3">case &quot;$ 1&quot; in</font> <o:p></o:p><br /> rn <br /> <font size="3">start)</font> <o:p></o:p><br /> rn <br /> <font size="3"># Oracle listener and instance startup</font> <o:p></o:p><br /> rn <br /> <font size="3">echo-n &quot;Starting Oracle:&quot;</font> <o:p></o:p><br /> rn <br /> <font size="3"># Su $ ORA_OWNR-c &quot;$ ORACLE_HOME / bin /</font> lsnrctl <font size="3">start&quot;</font> <o:p></o:p><br /> rn<br /> <font size="3">su $ ORA_OWNR-c $ ORACLE_HOME / bin /</font> dbstart <o:p></o:p><br /> rn <br /> <font size="3">touch / var / lock / oracle</font> <o:p></o:p><br /> rn <br /><o:p><font size="3"> </font></o:p><br /> rn <br /> <font size="3">su $ ORA_OWNR-c &quot;$ ORACLE_HOME / bin /</font> emctl <font size="3">start dbconsole&quot;</font> <o:p></o:p><br /> rn <br /> <font size="3">echo &quot;OK&quot;</font> <o:p></o:p><br /> rn <br /> <font size="3">;;</font> <o:p></o:p><br /> rn <br /> <font size="3">stop)</font> <o:p></o:p><br /> rn <br /> <font size="3"># Oracle listener and instance shutdown</font> <o:p></o:p><br /> rn <br /> <font size="3">echo-n &quot;Shutdown Oracle:&quot;</font> <o:p></o:p><br /> rn <br /> <font size="3"># Su $ ORA_OWNR-c &quot;$ ORACLE_HOME / bin /</font> lsnrctl <font size="3">stop&quot;</font> <o:p></o:p><br /> rn <br /> <font size="3">su $ ORA_OWNR-c $ ORACLE_HOME / bin /</font> dbshut <o:p></o:p><br /> rn <br /> <font size="3">rm-f / var / lock / oracle</font> <o:p></o:p><br /> rn <br /><o:p><font size="3"> </font></o:p><br /> rn <br /> <font size="3">su $ ORA_OWNR-c &quot;$ ORACLE_HOME / bin /</font> emctl <font size="3">stop dbconsole&quot;</font> <o:p></o:p><br /> rn <br /> <font size="3">echo &quot;OK&quot;</font> <o:p></o:p><br /> rn <br /> <font size="3">;;</font> <o:p></o:p><br /> rn <br /> <font size="3">reload | restart)</font> <o:p></o:p><br /> rn <br /> <font size="3">$ 0 stop</font> <o:p></o:p><br /> rn <br /> <font size="3">$ 0 start</font> <o:p></o:p><br /> rn <br /> <font size="3">;;</font> <o:p></o:p><br /> rn <br /> <font size="3">*)</font> <o:p></o:p><br /> rn <br /> <font size="3">echo &quot;Usage:` basename $ 0 `start | stop | restart | reload&quot;</font> <o:p></o:p><br /> rn <br /> <font size="3">exit 1</font> <o:p></o:p><br /> rn <br /> <font size="3">esac</font> <o:p></o:p><br /> rn <br /> <font size="3">exit 0</font> <o:p></o:p><br /> rn <br /><o:p><font size="3"> </font></o:p><br /> rn <br /> <font size="3">Save Exit</font> <o:p></o:p><br /> rn <br /><o:p><font size="3"> </font></o:p><br /> rn <br /> <font size="3">Direct service oracle start running can be a</font> <o:p></o:p><br /> rn <br /><o:p><font size="3"> </font></o:p><br /> rn <br /><o:p> <font size="3">Say at what many in LINUX and the tomcat in the whole and apche</font> </o:p><br /> rn <br /><o:p> <font size="3">vi / etc / httpd / conf / httpd.conf</font> </o:p><br /> rn <br /><o:p> <font size="3">Add at the bottom</font> </o:p><br /> rn <br /><o:p> ProxyPass / ajp: / / 127.0.0.1:8009 / <br /> ProxyPassReverse / ajp: / / 127.0.0.1:8009 / </o:p><br /> rn <br /><o:p></o:p><br /> rn <br /><o:p> This allows the </o:p><br /><br /> rn rn rn				<h5>Related Posts</h5>
		<div id="smilar">
		<ul>
					<li><a href="http://www.kods.netwww.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.netwww.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.netwww.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.netwww.kods.net/oracle10g-full-version-centos5-installed-the-installation-has-passed/</wfw:commentRss>
	</item>
		<item>
		<title>Merge the use of (1)</title>
		<link>http://www.kods.netwww.kods.net/merge-the-use-of-1/</link>
		<comments>http://www.kods.netwww.kods.net/merge-the-use-of-1/#comments</comments>
		<pubDate>Tue, 31 Mar 2009 09:48:55+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[mb nb]]></category>
<category><![CDATA[sql]]></category>
<category><![CDATA[pay attention]]></category>
<category><![CDATA[test2]]></category>
<category><![CDATA[test1]]></category>
		<guid isPermaLink="true">http://www.kods.netwww.kods.net/merge-the-use-of-1/</guid>
		<description><![CDATA[Merge to select from a table update or insert some data to another table. And finally is used to update or insert depends on the conditions of the statement. rn Here&#39;s our easy to cite an example: ...]]></description>
		<content:encoded><![CDATA[Merge to select from a table update or insert some data to another table. And finally is used to update or insert depends on the conditions of the statement. <br /> rn <br /> Here&#39;s our easy to cite an example: <br /> rn <br /><br /> rn <br /> SQL&gt; create table merge_test1 (a number, b varchar2 (20)) <br /> rn <br /> Table has been created. <br /> rn <br /> SQL&gt; create table merge_test2 (a number, b varchar2 (20)) <br /> rn <br /> Table has been created. <br /> rn <br /> SQL&gt; insert into merge_test1 values (1, &#39;A&#39;); <br /> rn <br /> One line has been created. <br /> rn <br /> SQL&gt; insert into merge_test1 values (2, &#39;B&#39;); <br /> rn <br /> One line has been created. <br /> rn <br /> SQL&gt; insert into merge_test1 values (3, &#39;C&#39;); <br /> rn <br /> One line has been created. <br /> rn <br /> SQL&gt; insert into merge_test2 values (3, &#39;C&#39;); <br /> rn <br /> One line has been created. <br /> rn <br /> SQL&gt; insert into merge_test2 values (2, &#39;C&#39;); <br /> rn <br /> One line has been created. <br /> rn <br /> SQL&gt; commit; <br /> rn <br /> Submitted finish. <br /> rn <br /><br /> rn <br /> SQL&gt; select * from merge_test1; <br /> rn <br /> AB <BR> ---------- -------------------- <BR> 1 A <BR> 2 B <BR> 3 C <br /> rn <br /> SQL&gt; select * from merge_test2; <br /> rn <br /> AB <BR> ---------- -------------------- <BR> 3 C <BR> 2 C <BR><br /> rn <br /> Ready in front of work, with Merge update of Merge_test2 <br /> rn <br /><br /> rn <br /> MERGE INTO MERGE_TEST2 M <BR> USING MERGE_TEST1 N <BR> ON (MA = NA) <BR> WHEN MATCHED THEN <BR> UPDATE SET MB = NB <BR> WHEN NOT MATCHED THEN <BR> INSERT (MA, MB) VALUES (NA, NB); <br /> rn <br /><br /> rn <br /> The updated results: <br /> rn <br /> SQL&gt; select * from merge_test2; <br /> rn <br /> AB <BR> ---------- -------------------- <BR> 1 A <BR> 3 C <br /> rn <br /> 2 B <br /> rn <br /><br /> rn <br /> Summary: <br /> rn <br /> First, Merge usage generally have three types: <br /> rn <br /> 1, only the update does not insert <br /> rn <br /> Merge into Merge_test2 M <br /> rn <br /> Using Merge_test1 N <br /> rn <br /> ON (MA = NA) <br /> rn <br /> WHEN MATCHED THEN <br /> rn <br /> UPDATE SET MB = NB; <br /> rn <br /> 2, only the insert does not update <br /> rn <br /> MERGE INTO merge_test2 M <br /> rn <br /> USING merge_test1 N <br /> rn <br /> ON (MA = NA) <br /> rn <br /> WHEN NOT MATCHED THEN <br /> rn <br /> INSERT (MA, MB) VALUES (NA, NB); <br /> rn <br /> 3, we insert also update <br /> rn <br /> MERGE INTO merge_test2 M <br /> rn <br /> USING merge_test1 N <br /> rn <br /> ON (MA = NA) <br /> rn <br /> WHEN MATCHED THEN <br /> rn <br /> UPDATE SET MB = NB <br /> rn <br /> WHEN NOT MATCHED THEN <br /> rn <br /> INSERT (MA, MB) VALUES (NA, NB) <br /> rn <br /><br /> rn <br /> Second, pay attention to matters <br /> rn <br /> 1, merge statement, update can not be used to update the linked list (that is, ON (MA = NA)) <br /> rn <br /> For example: <br /> rn <br /> MERGE INTO merge_test2 M <br /> rn <br /> rn <br /> USING merge_test1 N <br /> rn <br /> ON (MA = NA) <br /> rn <br /> WHEN MATCHED THEN <br /> rn <br /> UPDATE SET <FONT color=#ff0000>MA = NB,</font> MB <FONT color=#ff0000>= NB</font> <br /> rn <br /> WHEN NOT MATCHED THEN <br /> rn <br /> INSERT (MA, MB) VALUES (NA, NB) <br /> rn <br /><br /> rn <br /> Our implementation of the above statement (note the red part) will have the following tips: <br /> rn <br /><BR> Error Line 3: <BR> ORA-38104: unable to update the ON clause quoted out: &quot;M&quot;. &quot;A&quot; <br /> rn <br /><br /> rn <br /> 2, Using the back may not necessarily be as follows: <br /> rn <br /> Grammar document is written on: table, view, subquery <br /> rn <br /> In other words it can be a query result set. <br /> rn <br /><br /> rn <br /> 3, is also a mistake because of the associated value does not only caused by <br /> rn <br /> For instance: <br /> rn <br /> Inserted at a further merge_test1 data. Duplicate of the previous! <BR> SQL&gt; insert into merge_test1 values (3, &#39;d&#39;); <br /> rn <br /><br /> rn <br /> At this point the implementation of our <br /> rn <br /> rn <br /> MERGE INTO merge_test2 M <br /> rn <br /> rn <br /> USING merge_test1 N <br /> rn <br /> ON (MA = NA) <br /> rn <br /> WHEN MATCHED THEN <br /> rn <br /> UPDATE SET MB = NB <br /> rn <br /> WHEN NOT MATCHED THEN <br /> rn <br /> INSERT (MA, MB) VALUES (NA, NB) <br /><br /> rn <br /><BR> Error Line 1: <BR> ORA-30926: unable to access the table at the source of a group of stable lines <br /><br /> rn <br /><br /> rn <br /><BR><br /> rn <br /><br /> rn				<h5>Related Posts</h5>
		<div id="smilar">
		<ul>
					<li><a href="http://www.kods.netwww.kods.net/oracle-database-exp-imp-import-export-by-user-examples/" title="Oracle Database exp imp Import Export by user examples">Oracle Database exp imp Import Export by user examples</a> 2009-04-06 18:58:52</li>
					<li><a href="http://www.kods.netwww.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.netwww.kods.net/sql-optimization-4-table-of-the-three-connections/" title="SQL optimization (4) - Table of the three connections">SQL optimization (4) - Table of the three connections</a> 2009-03-29 23:13:41</li>
					<li><a href="http://www.kods.netwww.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.netwww.kods.net/sql-optimization-2-there-is-the-order-of-the-index-data/" title="SQL optimization (2) - there is the order of the index data">SQL optimization (2) - there is the order of the index data</a> 2009-03-28 08:01:36</li>
				</ul>
		</div>
		        ]]></content:encoded>
		<wfw:commentRss>http://www.kods.netwww.kods.net/merge-the-use-of-1/</wfw:commentRss>
	</item>
		<item>
		<title>SGA extended the principle of 32bit oracle</title>
		<link>http://www.kods.netwww.kods.net/sga-extended-the-principle-of-32bit-oracle/</link>
		<comments>http://www.kods.netwww.kods.net/sga-extended-the-principle-of-32bit-oracle/#comments</comments>
		<pubDate>Tue, 31 Mar 2009 09:48:01+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[principle]]></category>
<category><![CDATA[oracle]]></category>
<category><![CDATA[oracle home]]></category>
<category><![CDATA[intel 80386]]></category>
<category><![CDATA[support conversion]]></category>
<category><![CDATA[memory address]]></category>
<category><![CDATA[troublesome problem]]></category>
<category><![CDATA[maximum memory]]></category>
<category><![CDATA[memory access]]></category>
<category><![CDATA[th power]]></category>
<category><![CDATA[virtual memory]]></category>
<category><![CDATA[as3]]></category>
<category><![CDATA[vlm]]></category>
<category><![CDATA[oracle sga]]></category>
<category><![CDATA[bin file]]></category>
<category><![CDATA[setuid]]></category>
<category><![CDATA[7g]]></category>
<category><![CDATA[query results]]></category>
<category><![CDATA[ocn]]></category>
<category><![CDATA[elf]]></category>
		<guid isPermaLink="true">http://www.kods.netwww.kods.net/sga-extended-the-principle-of-32bit-oracle/</guid>
		<description><![CDATA[SGA extended the principle of 32bit oracle From: http://www.itpub.net/247048.html Because the median 32bitrnoracle restrictions can only visit the oracle process 4g (2 of 32 power) following virtual m ...]]></description>
		<content:encoded><![CDATA[SGA extended the principle of 32bit oracle <br /><br /> From: http://www.itpub.net/247048.html <br /><br /> Because the median 32bitrnoracle restrictions can only visit the oracle process 4g (2 of 32 power) following virtual memory address, the time at a lot of people this is a very troublesome problem, because a lot of space inside and can not be used rn deposit, By default, the SGA can not exceed 1.7g. Under the U.S. such as linux have 8g memory, there are some empty do not worry. This time we have to consider how to expand rnoracle the SGA. Well, first of all, the oracle how to identify it 32bit? We can adopt the following query to be <br /> rn <br /> rnsys @ OCN&gt; select * from v $ version; <br /> rn <br /> rnBANNER <br /> rn ------------------------------------------------- --------------- <br /> rnOracle9i Enterprise Edition Release 9.2.0.4.0 - Production <br /> rnPL / SQL Release 9.2.0.4.0 - Production <br /> rnCORE 9.2.0.3.0 Production <br /> rnTNS for Linux: Version 9.2.0.4.0 - Production <br /> rnNLSRTL Version 9.2.0.4.0 - Production <br /> rn <br /> rn <br /> rn the case of 64bit oracle, in the query results will be displayed in 64bit words, does not appear, it must be 32bit oracle. Of course, on the adoption of os can see the file oracle <br /> rn <br /> rn [oracle @ ocn2 bin] $ cd $ ORACLE_HOME / bin <br /> rn [oracle @ ocn2 bin] $ file oracle <br /> rnoracle: setuid setgid ELF 32-bit LSB executable, Intel 80386, version 1, dynamically linked (uses shared libs), not stripped <br /> rn [oracle @ ocn2 bin] $ <br /> rn <br /> rn up in some os, on AIX such as, 64bit oracle will display information, 32bit will not display properly. <br /> rn <br /> rn confirmed at 32bit oracle, we need to understand that usually we can only access the OS process 4g space below, redhat linux AS 2.1rn or AS3.0 version of the exception, they can provide the VLM (Very largernmemory) function support, conversion can be made through the use of 36bit memory address to sign, then 2 of the 36 th power is a theoretical maximum memory access support 64g. In oracle, you are rn by the memory as a document to visit a virtual / dev / shmrn file system, the file system is composed entirely by memory, so that the restriction will exceed 4g. Then come back and see us, now that the process can access the following memory 4g why SGA is 1.7g usually does. <br /> rn <br /> rn rn in the OS, provides for a process in the application can access the virtual memory space for the 0 - 3g, and 3g - 4g this virtual address space are reserved for the kernel used. Should pay attention to where our emphasis is rn virtual address space, and did not say that the physical address space, that is, assuming there is 8g of memory, the 0 - 3g virtual address space that may arise at 8g memory 3g - 8g part memory segment, rn is not to say that physical memory are 0 - 3g paragraph. In this 0 - 3g virtual address, oracle and how to use it, Well This is a fixed address. <br /> rn <br /> rn <br /> rn <br /> rn +++++++++++++++ 4g <br /> rn + -------------------------+ <br /> rn +------------------------- + <br /> rn +------------------------- + <br /> rn +++++++++++++++ 3g: kernel <br /> rn + ------------------------- + <br /> rn + ------------------------- + <br /> rn +------------------------- + <br /> rn +++++++++++++++ 2g: process stack <br /> rn + -------------------------+ <br /> rn +------------------------- + <br /> rn +++++++++++++++ 1.25g: SGA starting point <br /> rn +++++++++++++++ 1g: oracle shared libraries loaded with the starting point <br /> rn + -------------------------+ <br /> rn + -------------------------+ <br /> rn + -------------------------+ <br /> rn +++++++++++++++ 0g: oracle program (executable code) loaded with the starting point <br /> rn <br /> rn at this distribution of virtual addresses, 1.25g of sga are the starting point, and the process of distribution of the private space (stack part) is from near the beginning 3g Department. That is, in fact the process of SGA and private space are shared between rn the 1.25g-- 3g this part, because of the process private space especially in small, often habitually think our SGA can achieve 1.7g. The process of private space has 0.05g enough. Rnoracle start from the beginning one, or any one user process from start landing, all virtual addresses have a fixed distribution Well, only the user can also expand the private space. Look at our database after rnpmon process (in fact any process is the same) distribution of the virtual address. One because of my machines running on two databases, so one of us a look, take a look at the SGA-related information database <br /> rn <br /> rn [root @ ocnsb1 root] # su - oracle <br /> rn [oracle @ ocnsb1 oracle] $ sqlplus &quot;/ as sysdba&quot; <br /> rn <br /> rnSQL * Plus: Release 9.2.0.4.0 - Production on Mon Jul 26 11:37:23 2004 <br /> rn <br /> rnCopyright (c) 1982, 2002, Oracle Corporation. All rights reserved. <br /> rn <br /> rn <br /> rnConnected to: <br /> rnOracle9i Enterprise Edition Release 9.2.0.4.0 - Production <br /> rnWith the Partitioning, Real Application Clusters, OLAP and Oracle Data Mining options <br /> rnJServer Release 9.2.0.4.0 - Production <br /> rn <br /> rn <br /> rnselect &quot;&gt; sys @ OCN&gt; select INSTANCE_NAME from v $ instance; <br /> rn <br /> rnINSTANCE_NAME <br /> rn ---------------- <br /> rnroocn1 <br /> rn <br /> rnshow &quot;&gt; sys @ OCN&gt; show sga <br /> rn <br /> rnTotal System Global Area 437327188 bytes <br /> rnFixed Size 451924 bytes<br /> rnVariable Size 301989888 bytes <br /> rnDatabase Buffers 134217728 bytes <br /> rnRedo Buffers 667648 bytes <br /> rnsys @ OCN&gt; <br /> rn <br /> rnexit &quot;&gt; sys @ OCN&gt; exit <br /> rnDisconnected from Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production <br /> rnWith the Partitioning, Real Application Clusters, OLAP and Oracle Data Mining options <br /> rnJServer Release 9.2.0.4.0 - Production <br /> rn [oracle @ ocnsb1 oracle] $ ipcs <br /> rn <br /> rn ------ Shared Memory Segments -------- <br /> rnkey shmid owner perms bytes nattch status <br /> rn0x73a32bdc 131072 oracle 640 457179136 50 <br /> rn0x84cc76ac 163841 oracle 640 1379926016 90 <br /> rn <br /> rn ------ Semaphore Arrays -------- <br /> rnkey semid owner perms nsems status <br /> rn0x8df96364 622592 oracle 640 64 <br /> rn0x53609d64 753665 oracle 640 504 <br /> rn <br /> rn ------ Message Queues -------- <br /> rnkey msqid owner perms used-bytes messages <br /> rn <br /> rn [oracle @ ocnsb1 oracle] $ <br /> rn <br /> rn me here there is only one shared memory segment, and is the SGA size (shmid to 131072). This is because much of the reason set shnmax <br /> rn <br /> rn [oracle @ ocn2 kernel] $ more / proc / sys / kernel / shmmax <br /> rn3221225472 <br /> rn [oracle @ ocn2 kernel] $ <br /> rn <br /> rn Next we look at the information PMON, first of all to find pmon process, and then go to / proc / pid / maps do not address the process of distribution of the virtual information <br /> rn <br /> rn [oracle @ ocnsb1 oracle] $ ps-ef | grep pmon <br /> rnoracle 13655 1 0 Jul24? 00:00:00 ora_pmon_roocn1 <br /> rnoracle 13926 1 0 Jul24? 00:00:00 ora_pmon_ocn1 <br /> rnoracle 31435 31092 0 11:51 pts / 3 00:00:00 grep pmon <br /> rn [oracle @ ocnsb1 oracle] $ <br /> rn <br /> rn [oracle @ ocnsb1 oracle] $ more / proc/13655/maps <br /> rn08048000-0a4ba000 r-xp 00000000 08:05 681621 / opt/oracle/products/9.2.0/bin/oracle <br /> rn0a4ba000-0ad54000 rw-p 02471000 08:05 681621 / opt/oracle/products/9.2.0/bin/oracle <br /> rn0ad54000-0ae07000 rwxp 00000000 00:00 0 <br /> rn <br /> rn this oracle program are loaded with information, we can see that space used 0 - 0ae07000, this part of the size of less than 256MB <br /> rn <br /> rn40000000-40016000 r-xp 00000000 08:02 448102 / lib/ld-2.2.4.so <br /> rn <br /> rn This is the oracle shared libraries loaded with a starting point, 0x40000000 exactly 1g <br /> rn <br /> rn <br /> rn40016000-40017000 rw-p 00015000 08:02 448102 / lib/ld-2.2.4.so <br /> rn40017000-40018000 rw-p 00000000 00:00 0 <br /> rn40018000-40019000 r-xp 00000000 08:05 308464 / opt/oracle/products/9.2.0/lib/libodmd9.so <br /> rn40019000-4001a000 rw-p 00000000 08:05 308464 / opt/oracle/products/9.2.0/lib/libodmd9.so <br /> rn4001a000-40026000 r-xp 00000000 08:05 308345 / opt/oracle/products/9.2.0/lib/libskgxp9.so <br /> rn40026000-4002a000 rw-p 0000b000 08:05 308345 / opt/oracle/products/9.2.0/lib/libskgxp9.so <br /> rn4002a000-40038000 r-xp 00000000 08:05 308461 / opt/oracle/products/9.2.0/lib/libskgxn9.so <br /> rn40038000-40039000 rw-p 0000d000 08:05 308461 / opt/oracle/products/9.2.0/lib/libskgxn9.so <br /> rn40039000-4004d000 rw-p 00000000 00:00 0 <br /> rn4004d000-4032c000 r-xp 00000000 08:05 308455 / opt/oracle/products/9.2.0/lib/libjox9.so <br /> rn4032c000-4043c000 rw-p 002de000 08:05 308455 / opt/oracle/products/9.2.0/lib/libjox9.so <br /> rn4043c000-4043e000 rw-p 00000000 00:00 0 <br /> rn4043e000-40441000 r-xp 00000000 08:02 448115 / lib/libdl-2.2.4.so <br /> rn40441000-40442000 rw-p 00002000 08:02 448115 / lib/libdl-2.2.4.so <br /> rn40442000-40443000 rw-p 00000000 00:00 0 <br /> rn40443000-40465000 r-xp 00000000 08:02 448117 / lib/libm-2.2.4.so <br /> rn40465000-40466000 rw-p 00021000 08:02 448117 / lib/libm-2.2.4.so <br /> rn40466000-40475000 r-xp 00000000 08:02 448147 / lib/libpthread-0.9.so <br /> rn40475000-4047d000 rw-p 0000e000 08:02 448147 / lib/libpthread-0.9.so <br /> rn4047d000-40490000 r-xp 00000000 08:02 448120 / lib/libnsl-2.2.4.so <br /> rn40490000-40491000 rw-p 00012000 08:02 448120 / lib/libnsl-2.2.4.so <br /> rn40491000-40493000 rw-p 00000000 00:00 0 <br /> rn40493000-40494000 r-xp 00000000 08:02 352330 / usr/lib/libaio.so.1 <br /> rn40494000-40495000 rw-p 00000000 08:02 352330 / usr/lib/libaio.so.1 <br /> rn40495000-405ca000 r-xp 00000000 08:02 448111 / lib/libc-2.2.4.so <br /> rn405ca000-405cf000 rw-p 00134000 08:02 448111 / lib/libc-2.2.4.so <br /> rn405cf000-405d3000 rw-p 00000000 00:00 0 <br /> rn405d3000-405d4000 r-xp 00000000 08:02 146106 / lib/libredhat-kernel.so.1.0.1 <br /> rn405d4000-405d5000 rw-p 00000000 08:02 146106 / lib/libredhat-kernel.so.1.0.1 <br /> rn405d5000-405f9000 rw-p 00000000 00:00 0 <br /> rn405fa000-40604000 r-xp 00000000 08:02 448136 / lib/libnss_files-2.2.4.so <br /> rn40604000-40605000 rw-p 00009000 08:02 448136 / lib/libnss_files-2.2.4.so<br /> rn40605000-40685000 rw-p 00000000 08:02 69445 / dev / zero <br /> rn40685000-406c6000 rw-p 00000000 00:00 0 <br /> rn <br /> rn shared libraries consume less than 20MB of space <br /> rn <br /> rn <br /> rn50000000-6b000000 rw-s 00000000 00:04 131072 / SYSV73a32bdc (deleted) <br /> rn <br /> rn This is SGA&#39;s starting point, 0x50000000 express 1.25g <br /> rn <br /> rn <br /> rn6b000000-6b001000 r - s 1b000000 00:04 131072 / SYSV73a32bdc (deleted) <br /> rn6b001000-6b0a2000 rw-s 1b001000 00:04 131072 / SYSV73a32bdc (deleted) <br /> rn6b0a2000-6b0a3000 r - s 1b0a2000 00:04 131072 / SYSV73a32bdc (deleted) <br /> rn6b0a3000-6b400000 rw-s 1b0a3000 00:04 131072 / SYSV73a32bdc (deleted) <br /> rn <br /> virtual space assigned to rnsga Here, by calculating the hexadecimal number 16, is with us with the size of the SGA, 131072 is ipcs to see us at the time of the shmid <br /> rn <br /> rn <br /> rnbffe5000-bffee000 rwxp ffff8000 00:00 0 <br /> rnbfff0000-bfff1000 r-xs 00000000 08:02 69304 / dev / vsys <br /> rn <br /> rn exactly 0xc0000000 because 3g (16 hexadecimal number c = 12,4 * 3 = 12,0 x40000000 express 1g), while private space here to express the process of distribution of the starting point. Show rnoracle any landing process a user will find such a distribution of virtual addresses. Here we can easily look up, oracle programrn and database shared memory space is very small, there is no need to give so much, in fact, oracle programrn safe enough to 256M, and 50M shared libraries also give safe enough, but also from the theory, we can put the oracle program at 0x10000000 compression necessary to rn, the shared libraries required by the compression of memory at 0x12000000 the following, this can be the starting point for SGA to 0x12000000 (0.3g). Are from the original rn0x5000000 (1.25g) of the beginning, only around 1.7g distribution to SGA, now SGA from 0.3g distribution can begin near 2.7g, such as memory give 2.65g distribution rnSGA. To achieve this function, we need to recompile oraclernprogram, shared libraries to reduce the allocation of virtual memory address and the starting point for the location of the distribution of SGA. 0x4000000 the starting point for shared libraries loaded by the process of decision mapped_base to set rn <br /> rn <br /> rn [oracle @ ocnsb1 oracle] $ more / proc/13655/mapped_base <br /> rn1073741824 <br /> rn <br /> rn this size is 1G, it means that the loading shared libraries from the location of the virtual address 1g start, if this address to reduce the need to start before the oracle, that is to be put to use root user to start the process of oracle of mapped_base down to 256M , so that after oracle restart the process will have to inherit this value. <br /> rn <br /> rnsu - root echo 268435456&gt; / proc / / mapped_base <br /> rn course, we can also achieve some oracle user shell to automatically lower after landing mapped_base functions, this can be found on google, or refer to <br /> rnhttp: / / www.puschitz.com / TuningLi ... ngSpaceForLargerSGA in the article reads as follows <br /> rn <br /> rnGiving Oracle Users the Privilege to Change the Base Address for Oracle&#39;s Shared Libraries Without Giving them root Access <br /> rn <br /> rnAs shown above, only root can change the base address &quot;mapped base&quot; forrnshared libraries. Using sudo we can give Oracle users the privilege tornchange &quot;mapped base&quot; for their own shells without giving them full rootrnaccess. Here is the procedure: <br /> rn <br /> rnsu - root <br /> rn <br /> rn # Eg create a script called &quot;/ usr / local / bin / ChangeMappedBase&quot; <br /> rn <br /> rn # which changes the &quot;mapped base&quot; for the parent process, <br /> rn <br /> rn # the shell used by the Oracle user where the &quot;sudo&quot; program # is executed (forked). Here is an example: <br /> rn <br /> rn # / bin / sh <br /> rn <br /> rn # Lowering &quot;mapped base&quot; to 0x10000000 echo 268435456&gt; / proc / $ PPID / mapped_base <br /> rn <br /> rn # Make sure that owernship and permissions are correct chown root.root / usr / local / bin / ChangeMappedBase <br /> rn <br /> rnchmod 755 / usr / local / bin / ChangeMappedBase <br /> rn <br /> # Allow the Oracle user to execute / usr / local / bin / ChangeMappedBasernvia sudo echo &quot;oracle ALL = / usr / local / bin / ChangeMappedBase&quot;&gt;&gt; rn / etc / sudoers <br /> rnNow the Oracle user can run / usr / local / bin / ChangeMappedBase to change &quot;mapped base&quot; for it&#39;s own shell: <br /> rn <br /> rn $ su - oracle <br /> rn <br /> rn $ cat / proc / $ $ / mapped_base; echo 1073741824 <br /> rn <br /> rn $ sudo / usr / local / bin / ChangeMappedBase Password: <br /> rn <br /> rn # type in the password for the Oracle user account <br /> rn <br /> rn $ cat / proc / $ $ / mapped_base; echo 268435456 $ <br /> rnWhen / usr / local / bin / ChangeMappedBase is executed the first time afterrnan Oracle login, sudo will ask for a password. The password that needsrnto be entered is the password of the Oracle user account. <br /> rn <br /> rn <br /> rnChanging the Base Address for Oracle&#39;s Shared Libraries Automatically During an Oracle Login <br /> rn <br /> rnThe procedure in the previous section asks for a password each timern / usr / local / bin / ChangeMappedBase is executed the first time after anrnOracle login. To have &quot;mapped base&quot; changed automatically during anrnOracle login without a password, the following can be done: <br /> rn <br /> rnEdit the / etc / sudoers file with visudo: <br /> rn <br /> rnsu - root visudo <br /> rnChange the entry in / etc / sudoers from: <br /> rn<br /> rnoracle ALL = / usr / local / bin / ChangeMappedBase <br /> rnto read: <br /> rn <br /> rnoracle ALL = NOPASSWD: / usr / local / bin / ChangeMappedBase <br /> rnMake sure bash executes / usr / local / bin / ChangeMappedBase during the login process. You can use eg ~ oracle / .bash_profile: <br /> rn <br /> rnsu - oracle echo &quot;sudo / usr / local / bin / ChangeMappedBase&quot;&gt;&gt; ~ /. bash_profile <br /> rnThe next time you login to Oracle, the base address for shared libraries will bet set automatically. <br /> rn <br /> rn $ ssh oracle @ localhost <br /> rn <br /> rnoracle @ localhost&#39;s password: Last login: Sun Apr 6 13:59:22 2003 from localhost <br /> rn <br /> rn $ cat / proc / $ $ / mapped_base; echo 268435456 $ <br /> rn <br /> rn <br /> rn <br /> rn SGA starting from 1.25g to 0.3g is required to reduce recompilation oraclernprogram. Must be emphasized that, SGA and the starting point is the starting point for shared libraries mapped_ase related, SGA&#39;s starting point is greater than at least a starting point for shared libraries is more than 0.05g safety rn, otherwise the database will not be able to start or collapse. <br /> rn <br /> rn <br /> oracle turn off rn <br /> rn su - oracle <br /> rn cd $ ORACLE_HOME / rdbms / lib <br /> rn <br /> rn modify the shared library file containing the definition of Address <br /> rn <br /> rn genksms-s 0x12000000&gt; ksms.s <br /> rn <br /> rn well compiled object file <br /> rn <br /> rn make-f ins_rdbms.mk ksms.o <br /> rn <br /> rn recompile oracle executable file <br /> rn make-f ins_rdbms.mk ioracle <br /> rn <br /> rn <br /> rn As above redhat linux AS 2.1 version of oracle the use of the VLM is also relatively simple, and reference <br /> rnhttp: / / www1.ap.dell.com/content / ... &amp; l = zh &amp; s = bsd <br /> rnhttp: / / otn.oracle.com/global/cn/pub/notes/technote_rhel3.html <br /> rn course, internet article on can have more for reference. <br /> rn <br /> rn I want to point out a problem which we encountered in practice a problem, that is, if the distribution of a large SGA, but did not use the VLM, almost near when 3g, leaving only around 20m left right rn . So that when a process hashrnjoin, because of U.S. pga_aggregate_target set to 1g, oracle default PGA single process can be achieved using rnpga_aggregate_target * 5% = 50M, then make the hash join in when the error <br /> rn ORA-04030: out of process memory when trying to allocate 254476 bytes (hash-join subh, kllcqas: kllsltba) <br /> rn our pga_aggregate_target reduced to adjust 400M Successful implementation of the query. VLM is not used because of the circumstances of a single process memory space must be at 3g distribution following, rn and the distribution of PGA belong to this category. If you are using the VLM has been assigned to the PGA above 4g virtual address, no longer have this problem. At this no longer too much of VLM, because rn is also relatively simple to use, up from the principle of expansion in terms of 32bitrn through the os to 36bit, oracle memory used to manage documents and to support the process of access to more than 4g part of the virtual memory. linux on the promotion of such usage has been the root cause of 64bitrnoracle are rarely because of its use, such as other sunOS / hp unix / AIX are widely used in the 64bit oracle, these methods also lose their value. <br /> rn <br /> rn the original reference <br /> rnhttp: / / blog.csdn.net / biti_rainy / ... cle_20040726_1.aspx				<h5>Related Posts</h5>
		<div id="smilar">
		<ul>
					<li><a href="http://www.kods.netwww.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.netwww.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.netwww.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.netwww.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.netwww.kods.net/sga-extended-the-principle-of-32bit-oracle/</wfw:commentRss>
	</item>
		<item>
		<title>ORA-19815: WARNING: db_recovery_file_dest_size</title>
		<link>http://www.kods.netwww.kods.net/ora-19815-warning-db-recovery-file-dest-size/</link>
		<comments>http://www.kods.netwww.kods.net/ora-19815-warning-db-recovery-file-dest-size/#comments</comments>
		<pubDate>Tue, 31 Mar 2009 09:47:09+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		
		<guid isPermaLink="true">http://www.kods.netwww.kods.net/ora-19815-warning-db-recovery-file-dest-size/</guid>
		<description><![CDATA[Point encountered an error today, marking what: ************************************************** ********************** ARC0: Failed to archive thread 1 sequence 1 (19809) Wed Feb 25 13:53:32 2009 E ...]]></description>
		<content:encoded><![CDATA[Point encountered an error today, marking what: <br /> ************************************************** ********************** <br /> ARC0: Failed to archive thread 1 sequence 1 (19809) <br /> Wed Feb 25 13:53:32 2009 <br /> Errors in file / oradata/oracle/admin/ebaby/bdump/ebaby_arc0_4576.trc: <br /> ORA-19815: WARNING: db_recovery_file_dest_size of 2147483648 bytes is 100.00% used, and has 0 remaining bytes available. <br /> ************************************************** ********************** <br /> You have following choices to free up space from flash recovery area: <br /> 1. Consider changing RMAN RETENTION POLICY. If you are using Data Guard, <br /> then consider changing RMAN ARCHIVELOG DELETION POLICY. <br /> 2. Back up files to tertiary device such as tape using RMAN <br /> BACKUP RECOVERY AREA command. <br /> 3. Add disk space and increase db_recovery_file_dest_size parameter to <br /> reflect the new space. <br /> 4. Delete unnecessary files using RMAN DELETE command. If an operating <br /> system command was used to delete files, then use RMAN CROSSCHECK and <br /> DELETE EXPIRED commands. <br /> ************************************************** ********************** <br /><br /> db_recovery_file_dest_size defaults to 1G, I have to change to the 2G, but the day of a large amount of data is more obvious or a bit small, can be increased a little, the size can be formed in accordance with the day or week to determine the redo (no matter what time, to know their increase or reduce the are doing this) <br /><br /> Encounter this error when my only way to manually delete the corresponding LOG, but still can not work. <br /><br /> Error message and then look, follow the above tips to use rman to delete (Oracle is smart to do, the stakes ah) <br /><br /> At Oracle in the first confirmation: <br /><br /><table bgcolor="#f1f1f1" border="1" bordercolor="#999999" cellpadding="0" cellspacing="0"><tbody><tr><td><br /> <code>sys@EBABY&gt; SELECT substr(name, 1, 30) name, space_limit AS quota,<br />rn          space_used        AS used,<br />rn  2            space_reclaimable AS reclaimable,<br />rn  3        number_of_files   AS files<br />rn  4    FROM  v$recovery_file_dest ;<br />rn  5 <br />rnNAME<br />rn------------------------------------------------------------------------------------------------------------------------<br />rn<br />rn     QUOTA       USED RECLAIMABLE      FILES<br />rn---------- ---------- ----------- ----------<br />rn<br />rn/oradata/oracle/flash_recovery<br />rn2147483648 2098868224           0         43</code> <br /><br /></td></tr></tbody></table><br /><br /> 43 documents have. USED space: <code>2098868224　可见差不多用完了。<br /><br />按Ｏｒａｃｌｅ提示的：<br /> 用rman 去干掉他们：<br /><br /></code> <table bgcolor="#f1f1f1" border="1" bordercolor="#999999" cellpadding="0" cellspacing="0" width="95%"><tbody><tr><td> rman target / <br /> [uniread] Loaded history (6 lines) <br /><br /> Recovery Manager: Release 10.2.0.1.0 - Production on Wednesday, February 25 13:50:25 2009 <br /><br /> Copyright (c) 1982, 2005, Oracle. All rights reserved. <br /> ~~~~~~~~~~~~~~~ <br /><br /> <code>RMAN&gt; crosscheck archivelog all;<br />rn<br />rn使用目标数据库控制文件替代恢复目录<br />rn分配的通道: ORA_DISK_1<br />rn通道 ORA_DISK_1: sid=137 devtype=DISK<br />rn对归档日志的验证成功<br />rn存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_05/o1_mf_1_7_4rnxq1wc_.arc 记录时间戳 =678028770<br />rn对归档日志的验证成功<br />rn存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_05/o1_mf_1_8_4ro2r62q_.arc 记录时间戳 =678033926<br />rn对归档日志的验证成功<br />rn存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_05/o1_mf_1_9_4row81gd_.arc 记录时间戳 =678060035<br />rn对归档日志的验证成功<br />rn存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_06/o1_mf_1_10_4rq6fglm_.arc 记录时间戳 =678103215<br />rn对归档日志的验证成功<br />rn存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_06/o1_mf_1_11_4rrf3dvl_.arc 记录时间戳 =678142830<br />rn对归档日志的验证成功<br />rn存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_07/o1_mf_1_12_4rs5q9sc_.arc 记录时间戳 =678168042<br />rn对归档日志的验证成功<br />rn存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_07/o1_mf_1_13_4rt2h0bd_.arc 记录时间戳 =678197473<br />rn对归档日志的验证成功<br />rn存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_07/o1_mf_1_14_4rvbhrpm_.arc 记录时间戳 =678238457<br />rn对归档日志的验证成功<br />rn存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_08/o1_mf_1_15_4rwro9mq_.arc 记录时间戳 =678285738<br />rn对归档日志的验证成功<br />rn存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_09/o1_mf_1_16_4ry3xxq1_.arc 记录时间戳 =678330046<br />rn对归档日志的验证成功<br />rn存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_09/o1_mf_1_17_4rzl40xq_.arc 记录时间戳 =678377345<br />rn对归档日志的验证成功<br />rn存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_09/o1_mf_1_18_4s0fr0tg_.arc 记录时间戳 =678405633<br />rn对归档日志的验证成功<br />rn存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_10/o1_mf_1_19_4s1fdk9k_.arc 记录时间戳 =678438034<br />rn对归档日志的验证成功<br />rn存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_10/o1_mf_1_20_4s2pxcgw_.arc 记录时间戳 =678480556<br />rn对归档日志的验证成功<br />rn存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_10/o1_mf_1_21_4s388kmz_.arc 记录时间戳 =678498322<br />rn对归档日志的验证成功<br />rn存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_11/o1_mf_1_22_4s4mk1ny_.arc 记录时间戳 =678542626<br />rn对归档日志的验证成功<br />rn存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_11/o1_mf_1_23_4s5phykd_.arc 记录时间戳 =678578431<br />rn对归档日志的验证成功<br />rn存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_12/o1_mf_1_24_4s6f4g5d_.arc 记录时间戳 =678601615<br />rn对归档日志的验证成功<br />rn存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_12/o1_mf_1_25_4s7s9mgy_.arc 记录时间戳 =678646836<br />rn对归档日志的验证成功<br />rn存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_12/o1_mf_1_26_4s8f474v_.arc 记录时间戳 =678667144<br />rn对归档日志的验证成功<br />rn存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_13/o1_mf_1_27_4s9jwfog_.arc 记录时间戳 =678703759<br />rn对归档日志的验证成功<br />rn存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_13/o1_mf_1_28_4sbwtkvy_.arc 记录时间戳 =678748755<br />rn对归档日志的验证成功<br />rn存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_14/o1_mf_1_29_4sc8zt8v_.arc 记录时间戳 =678761211<br />rn对归档日志的验证成功<br />rn存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_14/o1_mf_1_30_4sczzjz4_.arc 记录时间戳 =678784754<br />rn对归档日志的验证成功<br />rn存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_14/o1_mf_1_31_4sfdlj9m_.arc 记录时间戳 =678830417<br />rn对归档日志的验证成功<br />rn存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_15/o1_mf_1_32_4sgnz01x_.arc 记录时间戳 =678871777<br />rn对归档日志的验证成功<br />rn存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_15/o1_mf_1_33_4shqhx0x_.arc 记录时间戳 =678907134<br />rn对归档日志的验证成功<br />rn存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_16/o1_mf_1_34_4sk44frh_.arc 记录时间戳 =678952847<br />rn对归档日志的验证成功<br />rn存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_16/o1_mf_1_35_4sl79rxh_.arc 记录时间戳 =678988857<br />rn对归档日志的验证成功<br />rn存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_16/o1_mf_1_36_4slwdpxn_.arc 记录时间戳 =679010455<br />rn对归档日志的验证成功<br />rn存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_17/o1_mf_1_37_4smwdtdz_.arc 记录时间戳 =679043227<br />rn对归档日志的验证成功<br />rn存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_17/o1_mf_1_38_4so8h1yz_.arc 记录时间戳 =679088355<br />rn对归档日志的验证成功<br />rn存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_18/o1_mf_1_39_4soysqdt_.arc 记录时间戳 =679111224<br />rn对归档日志的验证成功<br />rn存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_18/o1_mf_1_40_4sq2bdyh_.arc 记录时间戳 =679147598<br />rn对归档日志的验证成功<br />rn存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_18/o1_mf_1_41_4sr53q5q_.arc 记录时间戳 =679183224<br />rn对归档日志的验证成功<br />rn存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_19/o1_mf_1_42_4ss1778k_.arc 记录时间戳 =679212008<br />rn对归档日志的验证成功<br />rn存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_19/o1_mf_1_43_4st4dql5_.arc 记录时间戳 =679248024<br />rn对归档日志的验证成功<br />rn存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_19/o1_mf_1_44_4stsjowy_.arc 记录时间戳 =679269656<br />rn对归档日志的验证失败<br />rn存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_20/o1_mf_1_45_4svwytt6_.arc 记录时间戳 =679305947<br />rn对归档日志的验证失败<br />rn存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_20/o1_mf_1_46_4sx9vf2f_.arc 记录时间戳 =679351918<br />rn对归档日志的验证失败<br />rn存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_21/o1_mf_1_47_4sxy0wtz_.arc 记录时间戳 =679372573<br />rn对归档日志的验证失败<br />rn存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_21/o1_mf_1_48_4syvlf89_.arc 记录时间戳 =679402831<br />rn对归档日志的验证失败<br />rn存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_21/o1_mf_1_49_4t07o2n4_.arc 记录时间戳 =679447971<br />rn已交叉检验的 43 对象</code> <br /><br /> <code><br /></code> <br /><br /> <code><br /></code> <br /><br /> <code>RMAN&gt;  delete expired archivelog all;<br /><br />释放的通道: ORA_DISK_1<br />分配的通道: ORA_DISK_1<br />通道 ORA_DISK_1: sid=137 devtype=DISK<br /><br />已存档的日志副本列表<br />关键字     Thrd Seq     S 短时间              名称<br />------- ---- ------- - ------------------- ----<br />1       1    7       X 2009/02/05 03:13:08 /oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_05/o1_mf_1_7_4rnxq1wc_.arc<br />2       1    8       X 2009/02/05 13:19:29 /oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_05/o1_mf_1_8_4ro2r62q_.arc<br />3       1    9       X 2009/02/05 14:45:26 /oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_05/o1_mf_1_9_4row81gd_.arc<br />4       1    10      X 2009/02/05 22:00:33 /oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_06/o1_mf_1_10_4rq6fglm_.arc<br />5       1    11      X 2009/02/06 10:00:14 /oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_06/o1_mf_1_11_4rrf3dvl_.arc<br />6       1    12      X 2009/02/06 21:00:28 /oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_07/o1_mf_1_12_4rs5q9sc_.arc<br />7       1    13      X 2009/02/07 04:00:41 /oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_07/o1_mf_1_13_4rt2h0bd_.arc<br />8       1    14      X 2009/02/07 12:11:12 /oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_07/o1_mf_1_14_4rvbhrpm_.arc<br />9       1    15      X 2009/02/07 23:34:16 /oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_08/o1_mf_1_15_4rwro9mq_.arc<br />10      1    16      X 2009/02/08 12:42:17 /oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_09/o1_mf_1_16_4ry3xxq1_.arc<br />11      1    17      X 2009/02/09 01:00:45 /oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_09/o1_mf_1_17_4rzl40xq_.arc<br />12      1    18      X 2009/02/09 14:09:04 /oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_09/o1_mf_1_18_4s0fr0tg_.arc<br />13      1    19      X 2009/02/09 22:00:32 /oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_10/o1_mf_1_19_4s1fdk9k_.arc<br />14      1    20      X 2009/02/10 07:00:33 /oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_10/o1_mf_1_20_4s2pxcgw_.arc<br />15      1    21      X 2009/02/10 18:49:15 /oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_10/o1_mf_1_21_4s388kmz_.arc<br />16      1    22      X 2009/02/10 23:45:21 /oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_11/o1_mf_1_22_4s4mk1ny_.arc<br />17      1    23      X 2009/02/11 12:03:45 /oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_11/o1_mf_1_23_4s5phykd_.arc<br />18      1    24      X 2009/02/11 22:00:30 /oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_12/o1_mf_1_24_4s6f4g5d_.arc<br />19      1    25      X 2009/02/12 04:26:54 /oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_12/o1_mf_1_25_4s7s9mgy_.arc<br />20      1    26      X 2009/02/12 17:00:35 /oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_12/o1_mf_1_26_4s8f474v_.arc<br />21      1    27      X 2009/02/12 22:39:03 /oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_13/o1_mf_1_27_4s9jwfog_.arc<br />22      1    28      X 2009/02/13 08:49:17 /oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_13/o1_mf_1_28_4sbwtkvy_.arc<br />23      1    29      X 2009/02/13 21:19:13 /oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_14/o1_mf_1_29_4sc8zt8v_.arc<br />24      1    30      X 2009/02/14 00:46:50 /oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_14/o1_mf_1_30_4sczzjz4_.arc<br />25      1    31      X 2009/02/14 07:19:12 /oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_14/o1_mf_1_31_4sfdlj9m_.arc<br />26      1    32      X 2009/02/14 20:00:16 /oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_15/o1_mf_1_32_4sgnz01x_.arc<br />27      1    33      X 2009/02/15 07:29:36 /oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_15/o1_mf_1_33_4shqhx0x_.arc<br />28      1    34      X 2009/02/15 17:18:53 /oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_16/o1_mf_1_34_4sk44frh_.arc<br />29      1    35      X 2009/02/16 06:00:45 /oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_16/o1_mf_1_35_4sl79rxh_.arc<br />30      1    36      X 2009/02/16 16:00:56 /oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_16/o1_mf_1_36_4slwdpxn_.arc<br />31      1    37      X 2009/02/16 22:00:54 /oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_17/o1_mf_1_37_4smwdtdz_.arc<br />32      1    38      X 2009/02/17 07:07:06 /oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_17/o1_mf_1_38_4so8h1yz_.arc<br />33      1    39      X 2009/02/17 19:39:13 /oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_18/o1_mf_1_39_4soysqdt_.arc<br />34      1    40      X 2009/02/18 02:00:23 /oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_18/o1_mf_1_40_4sq2bdyh_.arc<br />35      1    41      X 2009/02/18 12:06:36 /oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_18/o1_mf_1_41_4sr53q5q_.arc<br />36      1    42      X 2009/02/18 22:00:23 /oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_19/o1_mf_1_42_4ss1778k_.arc<br />37      1    43      X 2009/02/19 06:00:07 /oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_19/o1_mf_1_43_4st4dql5_.arc<br />38      1    44      X 2009/02/19 16:00:23 /oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_19/o1_mf_1_44_4stsjowy_.arc<br /><br />是否确定要删除以上对象 (输入 YES 或 NO)? yes<br />已删除的存档日志<br />存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_05/o1_mf_1_7_4rnxq1wc_.arc 记录时间戳 =678028770<br />已删除的存档日志<br />存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_05/o1_mf_1_8_4ro2r62q_.arc 记录时间戳 =678033926<br />已删除的存档日志<br />存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_05/o1_mf_1_9_4row81gd_.arc 记录时间戳 =678060035<br />已删除的存档日志<br />存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_06/o1_mf_1_10_4rq6fglm_.arc 记录时间戳 =678103215<br />已删除的存档日志<br />存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_06/o1_mf_1_11_4rrf3dvl_.arc 记录时间戳 =678142830<br />已删除的存档日志<br />存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_07/o1_mf_1_12_4rs5q9sc_.arc 记录时间戳 =678168042<br />已删除的存档日志<br />存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_07/o1_mf_1_13_4rt2h0bd_.arc 记录时间戳 =678197473<br />已删除的存档日志<br />存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_07/o1_mf_1_14_4rvbhrpm_.arc 记录时间戳 =678238457<br />已删除的存档日志<br />存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_08/o1_mf_1_15_4rwro9mq_.arc 记录时间戳 =678285738<br />已删除的存档日志<br />存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_09/o1_mf_1_16_4ry3xxq1_.arc 记录时间戳 =678330046<br />已删除的存档日志<br />存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_09/o1_mf_1_17_4rzl40xq_.arc 记录时间戳 =678377345<br />已删除的存档日志<br />存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_09/o1_mf_1_18_4s0fr0tg_.arc 记录时间戳 =678405633<br />已删除的存档日志<br />存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_10/o1_mf_1_19_4s1fdk9k_.arc 记录时间戳 =678438034<br />已删除的存档日志<br />存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_10/o1_mf_1_20_4s2pxcgw_.arc 记录时间戳 =678480556<br />已删除的存档日志<br />存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_10/o1_mf_1_21_4s388kmz_.arc 记录时间戳 =678498322<br />已删除的存档日志<br />存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_11/o1_mf_1_22_4s4mk1ny_.arc 记录时间戳 =678542626<br />已删除的存档日志<br />存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_11/o1_mf_1_23_4s5phykd_.arc 记录时间戳 =678578431<br />已删除的存档日志<br />存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_12/o1_mf_1_24_4s6f4g5d_.arc 记录时间戳 =678601615<br />已删除的存档日志<br />存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_12/o1_mf_1_25_4s7s9mgy_.arc 记录时间戳 =678646836<br />已删除的存档日志<br />存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_12/o1_mf_1_26_4s8f474v_.arc 记录时间戳 =678667144<br />已删除的存档日志<br />存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_13/o1_mf_1_27_4s9jwfog_.arc 记录时间戳 =678703759<br />已删除的存档日志<br />存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_13/o1_mf_1_28_4sbwtkvy_.arc 记录时间戳 =678748755<br />已删除的存档日志<br />存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_14/o1_mf_1_29_4sc8zt8v_.arc 记录时间戳 =678761211<br />已删除的存档日志<br />存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_14/o1_mf_1_30_4sczzjz4_.arc 记录时间戳 =678784754<br />已删除的存档日志<br />存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_14/o1_mf_1_31_4sfdlj9m_.arc 记录时间戳 =678830417<br />已删除的存档日志<br />存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_15/o1_mf_1_32_4sgnz01x_.arc 记录时间戳 =678871777<br />已删除的存档日志<br />存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_15/o1_mf_1_33_4shqhx0x_.arc 记录时间戳 =678907134<br />已删除的存档日志<br />存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_16/o1_mf_1_34_4sk44frh_.arc 记录时间戳 =678952847<br />已删除的存档日志<br />存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_16/o1_mf_1_35_4sl79rxh_.arc 记录时间戳 =678988857<br />已删除的存档日志<br />存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_16/o1_mf_1_36_4slwdpxn_.arc 记录时间戳 =679010455<br />已删除的存档日志<br />存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_17/o1_mf_1_37_4smwdtdz_.arc 记录时间戳 =679043227<br />已删除的存档日志<br />存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_17/o1_mf_1_38_4so8h1yz_.arc 记录时间戳 =679088355<br />已删除的存档日志<br />存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_18/o1_mf_1_39_4soysqdt_.arc 记录时间戳 =679111224<br />已删除的存档日志<br />存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_18/o1_mf_1_40_4sq2bdyh_.arc 记录时间戳 =679147598<br />已删除的存档日志<br />存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_18/o1_mf_1_41_4sr53q5q_.arc 记录时间戳 =679183224<br />已删除的存档日志<br />存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_19/o1_mf_1_42_4ss1778k_.arc 记录时间戳 =679212008<br />已删除的存档日志<br />存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_19/o1_mf_1_43_4st4dql5_.arc 记录时间戳 =679248024<br />已删除的存档日志<br />存档日志文件名 =/oradata/oracle/flash_recovery_area/EBABY/archivelog/2009_02_19/o1_mf_1_44_4stsjowy_.arc 记录时间戳 =679269656<br />38 EXPIRED 对象已删除<br /></code> <br /><br />这下可to work. <br /><br /> Conclusion of the regular filing date the transfer value <br /> <code></code> <br /><br /></td></tr></tbody></table>				<h5>Related Posts</h5>
		<div id="smilar">
		<ul>
					<li><a href="http://www.kods.netwww.kods.net/redhat5-3-install-oracle10g/" title="redhat5.3 install oracle10g">redhat5.3 install oracle10g</a> 2009-11-06 13:35:03</li>
					<li><a href="http://www.kods.netwww.kods.net/recorded-warning-dba-dba-needs-to-develop-some-habits/" title="Recorded warning DBA: DBA needs to develop some habits">Recorded warning DBA: DBA needs to develop some habits</a> 2009-06-18 20:27:33</li>
					<li><a href="http://www.kods.netwww.kods.net/redo-log-files-related-to-operation/" title="Redo log files related to operation">Redo log files related to operation</a> 2009-11-19 16:40:28</li>
				</ul>
		</div>
		        ]]></content:encoded>
		<wfw:commentRss>http://www.kods.netwww.kods.net/ora-19815-warning-db-recovery-file-dest-size/</wfw:commentRss>
	</item>
		<item>
		<title>How to quickly kill a disproportionate amount of resources (CPU, memory) database process</title>
		<link>http://www.kods.netwww.kods.net/how-to-quickly-kill-a-disproportionate-amount-of-resources-cpu-memory-database-process/</link>
		<comments>http://www.kods.netwww.kods.net/how-to-quickly-kill-a-disproportionate-amount-of-resources-cpu-memory-database-process/#comments</comments>
		<pubDate>Tue, 31 Mar 2009 05:30:10+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		
		<guid isPermaLink="true">http://www.kods.netwww.kods.net/how-to-quickly-kill-a-disproportionate-amount-of-resources-cpu-memory-database-process/</guid>
		<description><![CDATA[A lot of time because of unusual or procedural errors leading to a particular process will use up a lot of system resources, the need to end these processes can usually be Kill the process using the f ...]]></description>
		<content:encoded><![CDATA[A lot of time because of unusual or procedural errors leading to a particular process will use up a lot of system resources, the need to end these processes can usually be Kill the process using the following command: <br /><table><tbody><tr><td width=500 bgcolor=#999999> <pre>alter system kill session 'sid,serial#';
</pre> </td></tr></tbody></table><br /> However, this command is extremely slow release of resources, specifically can refer to: <font color=#0082ff>Oracle Research in Kill session.</font> <br /> More quickly in order to release resources, often we use the following steps to Kill the process: <br /> 1. First of all, kill the process at operating system level <br /> 2. Kill session in the database within <br /> This process is usually quick to suspend the release of resources. <br /><br /> Today to face such a case, other friends in the database kill session, but no Long time effects: <br /><table><tbody><tr><td width=500 bgcolor=#999999> <pre>[oracle@danaly ~]$ sqlplus "/ as sysdba"

SQL*Plus: Release 10.2.0.1.0 - Production on Thu Oct 27 11:09:50 2005

Copyright (c) 1982, 2005, Oracle.  All rights reserved.


Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, Oracle Label Security, OLAP and Data Mining Scoring Engine options

SQL&gt; select sid,username,status from v$session;

       SID USERNAME                       STATUS
---------- ------------------------------ --------
....
       154 SCOTT                          KILLED
...

30 rows selected.
</pre> </td></tr></tbody></table><br /> That in accordance with the steps I mentioned earlier, first of all inquiries by the OS the process of the corresponding session number: <br /><table><tbody><tr><td width=500 bgcolor=#999999> <pre>SQL&gt; select 'kill -9 '||spid from v$process where addr = (select paddr from v$session where sid=&amp;sid);
Enter value for sid: 154
old   1: select 'kill -9 '||spid from v$process where addr = (select paddr from v$session where sid=&amp;sid)
new   1: select 'kill -9 '||spid from v$process where addr = (select paddr from v$session where sid=154)

'KILL-9'||SPID
--------------------
kill -9 22702

SQL&gt; !
</pre> </td></tr></tbody></table><br /> Class at the operating system kill the process: <br /><table><tbody><tr><td width=500 bgcolor=#999999> <pre>[oracle@danaly ~]$ ps -ef|grep 22702
oracle   22702     1  0 Oct25 ?        00:00:02 oracledanaly (LOCAL=NO)
oracle   12082 12063  0 11:12 pts/1    00:00:00 grep 22702
[oracle@danaly ~]$ kill -9 22702
[oracle@danaly ~]$ ps -ef|grep 22702
oracle   12088 12063  0 11:12 pts/1    00:00:00 grep 22702
[oracle@danaly ~]$ exit
exit

SQL&gt; select sid,username,status from v$session;

       SID USERNAME                       STATUS
---------- ------------------------------ --------
...
       154 SCOTT                          KILLED
...

30 rows selected.

SQL&gt; select sid,serial#,username from v$session where sid=154;

       SID    SERIAL# USERNAME
---------- ---------- ------------------------------
       154      56090 SCOTT
</pre> </td></tr></tbody></table><br /> In the database once again kill the session, and specify the immediate options: <br /><table><tbody><tr><td width=500 bgcolor=#999999> <pre>SQL&gt; alter system kill session '154,56090' immediate;

System altered.

SQL&gt; select sid,serial#,username from v$session where sid=154;

no rows selected
</pre> </td></tr></tbody></table><br /><br /> At this point the process was quickly cleared.				<h5>Related Posts</h5>
		<div id="smilar">
		<ul>
					<li><a href="http://www.kods.netwww.kods.net/oracle-howto-how-to-quickly-kill-using-too-many-resources-cpu-memory-database-process/" title="Oracle HowTo: How to quickly kill using too many resources (CPU, memory) database process">Oracle HowTo: How to quickly kill using too many resources (CPU, memory) database process</a> 2009-11-05 21:02:56</li>
					<li><a href="http://www.kods.netwww.kods.net/latch-wait-events/" title="Latch wait events">Latch wait events</a> 2009-07-07 14:46:04</li>
					<li><a href="http://www.kods.netwww.kods.net/kill-session-in-oracle-research/" title="Kill session in Oracle Research">Kill session in Oracle Research</a> 2009-04-15 19:03:06</li>
					<li><a href="http://www.kods.netwww.kods.net/os-level-kill-oracle-session/" title="OS-level kill oracle session">OS-level kill oracle session</a> 2009-08-04 15:14:54</li>
					<li><a href="http://www.kods.netwww.kods.net/on-the-v-resource-limit-resources-gcs-resources/" title="On the v $ resource_limit resources gcs_resources">On the v $ resource_limit resources gcs_resources</a> 2009-07-07 20:41:03</li>
				</ul>
		</div>
		        ]]></content:encoded>
		<wfw:commentRss>http://www.kods.netwww.kods.net/how-to-quickly-kill-a-disproportionate-amount-of-resources-cpu-memory-database-process/</wfw:commentRss>
	</item>
		<item>
		<title>Oracle10g ASM maintenance of the database table space</title>
		<link>http://www.kods.netwww.kods.net/oracle10g-asm-maintenance-of-the-database-table-space/</link>
		<comments>http://www.kods.netwww.kods.net/oracle10g-asm-maintenance-of-the-database-table-space/#comments</comments>
		<pubDate>Tue, 31 Mar 2009 00:06:06+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		
		<guid isPermaLink="true">http://www.kods.netwww.kods.net/oracle10g-asm-maintenance-of-the-database-table-space/</guid>
		<description><![CDATA[1. Default naming Oracle when using ASM + OMF management, Oracle distribution file name will automatically create the appropriate file. Our job to create table space can be simplified as follows: A co ...]]></description>
		<content:encoded><![CDATA[1. Default naming Oracle when using ASM + OMF management, Oracle distribution file name will automatically create the appropriate file. <br /> Our job to create table space can be simplified as follows: <br /><table><tbody><tr><td width=500 bgcolor=#999999> <pre>create tablespace <EM>tablespace_name</EM>;
</pre> </td></tr></tbody></table><br /> A command. <br /> The following are the default Oracle naming examples: <br /><table><tbody><tr><td width=500 bgcolor=#999999> <pre>$ sqlplus "/ as sysdba"

SQL*Plus: Release 10.1.0.3.0 - Production on Thu Jun 16 09:26:22 2005

Copyright (c) 1982, 2004, Oracle.  All rights reserved.


Connected to:
Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - 64bit Production
With the Partitioning and Data Mining options

SQL&gt; select name from v$datafile;

NAME
--------------------------------------------------------------------------------
+DATADG/mmsdb/datafile/system.259.3
+DATADG/mmsdb/datafile/undotbs1.258.3
+DATADG/mmsdb/datafile/sysaux.257.3
+DATADG/mmsdb/datafile/users.256.3
+DATADG/mmsdb/datafile/platform.278.1
+DATADG/mmsdb/datafile/gateway.279.1

6 rows selected.
</pre> </td></tr></tbody></table><br /> 2. Since the definition of the name and file size if we want to create a custom file size and name, you can use the following method to create: <br /><table><tbody><tr><td width=500 bgcolor=#999999> <pre>SQL&gt; create tablespace cumail datafile '+DATADG/mmsdb/datafile/cumail'size 100m;

Tablespace created.

SQL&gt; select name from v$datafile;

NAME
--------------------------------------------------------------------------------
+DATADG/mmsdb/datafile/system.259.3
+DATADG/mmsdb/datafile/undotbs1.258.3
+DATADG/mmsdb/datafile/sysaux.257.3
+DATADG/mmsdb/datafile/users.256.3
+DATADG/mmsdb/datafile/platform.278.1
+DATADG/mmsdb/datafile/gateway.279.1
+DATADG/mmsdb/datafile/cumail

7 rows selected.

SQL&gt; drop tablespace cumail including contents and datafiles;

Tablespace dropped.
</pre> </td></tr></tbody></table><br /><br /> 3. ASSM managed to create the specified table space segment space required clause: <br /><table><tbody><tr><td width=500 bgcolor=#999999> <pre>SQL&gt; create tablespace cumail
  2  segment space management auto;

Tablespace created.

SQL&gt; select name from v$datafile;

NAME
------------------------------------------------------
+DATADG/mmsdb/datafile/system.259.3
+DATADG/mmsdb/datafile/undotbs1.258.3
+DATADG/mmsdb/datafile/sysaux.257.3
+DATADG/mmsdb/datafile/users.256.3
+DATADG/mmsdb/datafile/platform.278.1
+DATADG/mmsdb/datafile/gateway.279.1
+DATADG/mmsdb/datafile/cumail.280.3

7 rows selected.

SQL&gt; select tablespace_name,extent_management,segment_space_management from dba_tablespaces;

TABLESPACE_NAME                EXTENT_MAN SEGMEN
------------------------------ ---------- ------
SYSTEM                         LOCAL      MANUAL
UNDOTBS1                       LOCAL      MANUAL
SYSAUX                         LOCAL      AUTO
TEMP                           LOCAL      MANUAL
USERS                          LOCAL      AUTO
PLATFORM                       LOCAL      MANUAL
GATEWAY                        LOCAL      MANUAL
CUMAIL                         LOCAL      AUTO

8 rows selected.
</pre> </td></tr></tbody></table><br /> 3. To change the file size <br /><table><tbody><tr><td width=500 bgcolor=#999999> <pre>SQL&gt; alter database datafile '+DATADG/mmsdb/datafile/cumail.280.3' resize 300m;

Database altered.

SQL&gt; 
</pre> </td></tr></tbody></table><br /> 4. If the property set the UNIFORM SIZE to some extent the need for property, it must show the designation. <br /><table><tbody><tr><td width=500 bgcolor=#999999> <pre>SQL&gt; create tablespace ticket extent management local uniform size 128k segment space management auto;

Tablespace created.


SQL&gt; select name ,bytes/1024/1024 from v$datafile;

NAME                                     BYTES/1024/1024
---------------------------------------- ---------------
+DATADG/mmsdb/datafile/system.259.3                  450
+DATADG/mmsdb/datafile/undotbs1.258.3                 25
+DATADG/mmsdb/datafile/sysaux.257.3                  330
+DATADG/mmsdb/datafile/users.256.3                     5
+DATADG/mmsdb/datafile/platform.278.1               1000
+DATADG/mmsdb/datafile/gateway.279.1                1000
+DATADG/mmsdb/datafile/cumail.280.3                  300
+DATADG/mmsdb/datafile/ticket.281.1                  100

8 rows selected.

SQL&gt; alter database datafile '+DATADG/mmsdb/datafile/ticket.281.1' resize 300m;

Database altered.
</pre> </td></tr></tbody></table>				<h5>Related Posts</h5>
		<div id="smilar">
		<ul>
					<li><a href="http://www.kods.netwww.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.netwww.kods.net/oracle-dba-database-entirely-routine-maintenance-manuals/" title="Oracle DBA database entirely routine maintenance manuals">Oracle DBA database entirely routine maintenance manuals</a> 2009-06-18 17:29:18</li>
					<li><a href="http://www.kods.netwww.kods.net/oracle-maintenance-of-commonly-used-sql-statement/" title="Oracle maintenance of commonly used SQL statement">Oracle maintenance of commonly used SQL statement</a> 2009-03-18 02:38:55</li>
					<li><a href="http://www.kods.netwww.kods.net/how-to-shut-down-and-start-oracle10g-rac/" title="How to shut down and start Oracle10g RAC">How to shut down and start Oracle10g RAC</a> 2009-08-27 13:52:15</li>
					<li><a href="http://www.kods.netwww.kods.net/dba-scripts-used/" title="DBA scripts used">DBA scripts used</a> 2009-06-18 09:52:14</li>
				</ul>
		</div>
		        ]]></content:encoded>
		<wfw:commentRss>http://www.kods.netwww.kods.net/oracle10g-asm-maintenance-of-the-database-table-space/</wfw:commentRss>
	</item>
		<item>
		<title>Record two small test</title>
		<link>http://www.kods.netwww.kods.net/record-two-small-test/</link>
		<comments>http://www.kods.netwww.kods.net/record-two-small-test/#comments</comments>
		<pubDate>Mon, 30 Mar 2009 22:58:00+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		
		<guid isPermaLink="true">http://www.kods.netwww.kods.net/record-two-small-test/</guid>
		<description><![CDATA[1. SQL predicate in between ... and ... yes, including the border, the following is a small test: SQL&gt; select * 2 from (select rownum rn from dba_objects where rownum &lt;6) 3 where rn between 2 an ...]]></description>
		<content:encoded><![CDATA[1. SQL predicate in between ... and ... yes, including the border, the following is a small test: <br /><br /><table bordercolor=#000000 cellspacing=0 cellpadding=2 width="100%" bgcolor=#c0c0c0 border=0><tbody><tr><td width="100%"><br /><br /> SQL&gt; select * <br /><br /> 2 from (select rownum rn from dba_objects where rownum &lt;6) <br /><br /> 3 where rn between 2 and 4; <br /><br /> RN <br /><br /> ---------- <br /><br /> 2 <br /><br /> 3 <br /><br /> 4 <font face=Verdana size=2><br /><br /></font> </td></tr></tbody></table><br /><br /> 2. Unix search under the Oracle error: <br /><br /><table bordercolor=#000000 cellspacing=0 cellpadding=2 width="100%" bgcolor=#c0c0c0 border=0><tbody><tr><td width="100%"><br /><br /> <font face=Verdana size=2><br /><br /> [dwapp @</font> dbrac1 <font face=Verdana size=2>~] $</font> oerr <font face=Verdana size=2>ora 30004 <br /><br /> 30004, 00000, &quot;when using</font> SYS_CONNECT_BY_PATH <font face=Verdana size=2>function,</font> cannot <font face=Verdana size=2>have seperator as part of column value&quot; <br /><br /> / / * Cause: <br /><br /> / / * Action: Use another seperator which does not occur in any column value, <br /><br /> / / Then retry. <br /><br /></font> </td></tr></tbody></table>				<h5>Related Posts</h5>
		<div id="smilar">
		<ul>
					<li><a href="http://www.kods.netwww.kods.net/on-small-test-rownum/" title="On small test rownum">On small test rownum</a> 2009-04-02 16:34:21</li>
					<li><a href="http://www.kods.netwww.kods.net/rownum-about-a-small-test/" title="Rownum about a small test">Rownum about a small test</a> 2009-04-02 14:00:46</li>
					<li><a href="http://www.kods.netwww.kods.net/oracle-10g-rman-learning-record/" title="Oracle 10g RMAN Learning Record">Oracle 10g RMAN Learning Record</a> 2010-01-17 08:23:18</li>
					<li><a href="http://www.kods.netwww.kods.net/append-the-test-increases-nologging/" title="append the test increases nologging">append the test increases nologging</a> 2009-07-02 02:50:01</li>
					<li><a href="http://www.kods.netwww.kods.net/record-of-work-outside-the-connection-and-session-blocking-queries/" title="Record of work - outside the connection and session blocking queries">Record of work - outside the connection and session blocking queries</a> 2010-01-08 11:06:46</li>
				</ul>
		</div>
		        ]]></content:encoded>
		<wfw:commentRss>http://www.kods.netwww.kods.net/record-two-small-test/</wfw:commentRss>
	</item>
		<item>
		<title>RMAN created physical standby</title>
		<link>http://www.kods.netwww.kods.net/rman-created-physical-standby/</link>
		<comments>http://www.kods.netwww.kods.net/rman-created-physical-standby/#comments</comments>
		<pubDate>Mon, 30 Mar 2009 22:49:29+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[oracle]]></category>
<category><![CDATA[oracle home]]></category>
<category><![CDATA[sql statement]]></category>
<category><![CDATA[necessary directory]]></category>
<category><![CDATA[standby database]]></category>
<category><![CDATA[disk 1]]></category>
<category><![CDATA[hot copy]]></category>
<category><![CDATA[recovery catalog]]></category>
<category><![CDATA[output filename]]></category>
<category><![CDATA[database control]]></category>
<category><![CDATA[lgx]]></category>
<category><![CDATA[datafile]]></category>
<category><![CDATA[parameter files]]></category>
<category><![CDATA[backup set]]></category>
<category><![CDATA[target]]></category>
<category><![CDATA[piece 1]]></category>
<category><![CDATA[ctl]]></category>
<category><![CDATA[directory structure]]></category>
<category><![CDATA[main library]]></category>
<category><![CDATA[00003]]></category>
		<guid isPermaLink="true">http://www.kods.netwww.kods.net/rman-created-physical-standby/</guid>
		<description><![CDATA[Monitor in the standby host to create the necessary directory structure and parameter files. Hot COPY after the main library to the standby, and on standby to restore. +++++++++++++++++++++++++++++ St ...]]></description>
		<content:encoded><![CDATA[Monitor in the standby host to create the necessary directory structure and parameter files. Hot COPY after the main library to the standby, and on standby to restore. <br /><br /> +++++++++++++++++++++++++++++ Standby ++++++++++++++++++++++++++++++++++++++++++++++ <br /><br /> C: \&gt;% oracle_home% \ bin \ rman <br /><br /> Recovery Manager: Release 10.2.0.3.0 - Production on Mon Mar 30 17:06:49 2009 <br /><br /> Copyright (c) 1982, 2005, Oracle. All rights reserved. <br /><br /> RMAN&gt; connect target / <br /><br /> connected to target database: lgx (not mounted) <br /><br /> RMAN&gt; restore standby controlfile from &#39;P: \ backup02 \ CTL_0MKB7QQM_1_1&#39;; <br /><br /> Starting restore at 30-MAR-09 <br /> using target database control file instead of recovery catalog <br /> allocated channel: ORA_DISK_1 <br /> channel ORA_DISK_1: sid = 156 devtype = DISK <br /><br /> channel ORA_DISK_1: restoring control file <br /> channel ORA_DISK_1: restore complete, elapsed time: 00:00:01 <br /> output filename = P: \ LGXDB \ CONTROL01.CTL <br /> output filename = P: \ LGXDB \ CONTROL02.CTL <br /> output filename = P: \ LGXDB \ CONTROL03.CTL <br /> Finished restore at 30-MAR-09 <br /><br /> RMAN&gt; sql &#39;alter database mount standby database&#39;; <br /><br /> sql statement: alter database mount standby database <br /> released channel: ORA_DISK_1 <br /><br /> RMAN&gt; restore database; <br /><br /> Starting restore at 30-MAR-09 <br /> allocated channel: ORA_DISK_1 <br /> channel ORA_DISK_1: sid = 156 devtype = DISK <br /><br /> channel ORA_DISK_1: starting datafile backupset restore <br /> channel ORA_DISK_1: specifying datafile (s) to restore from backup set <br /> restoring datafile 00001 to P: \ LGXDB \ SYSTEM01.DBF <br /> restoring datafile 00002 to P: \ LGXDB \ UNDOTBS01.DBF <br /> restoring datafile 00003 to P: \ LGXDB \ SYSAUX01.DBF <br /> restoring datafile 00004 to P: \ LGXDB \ USERS01.DBF <br /> channel ORA_DISK_1: reading from backup piece P: \ BACKUP02 \ 0KKB7QP7_1_1 <br /> channel ORA_DISK_1: restored backup piece 1 <br /> piece handle = P: \ BACKUP02 \ 0KKB7QP7_1_1 tag = TAG20090330T164943 <br /> channel ORA_DISK_1: reading from backup piece P: \ BACKUP02 \ 0KKB7QP7_2_1 <br /> channel ORA_DISK_1: restored backup piece 2 <br /> piece handle = P: \ BACKUP02 \ 0KKB7QP7_2_1 tag = TAG20090330T164943 <br /> channel ORA_DISK_1: reading from backup piece P: \ BACKUP02 \ 0KKB7QP7_3_1 <br /> channel ORA_DISK_1: restored backup piece 3 <br /> piece handle = P: \ BACKUP02 \ 0KKB7QP7_3_1 tag = TAG20090330T164943 <br /> channel ORA_DISK_1: reading from backup piece P: \ BACKUP02 \ 0KKB7QP7_4_1 <br /> channel ORA_DISK_1: restored backup piece 4 <br /> piece handle = P: \ BACKUP02 \ 0KKB7QP7_4_1 tag = TAG20090330T164943 <br /> channel ORA_DISK_1: reading from backup piece P: \ BACKUP02 \ 0KKB7QP7_5_1 <br /> channel ORA_DISK_1: restored backup piece 5 <br /> piece handle = P: \ BACKUP02 \ 0KKB7QP7_5_1 tag = TAG20090330T164943 <br /> channel ORA_DISK_1: reading from backup piece P: \ BACKUP02 \ 0KKB7QP7_6_1 <br /> channel ORA_DISK_1: restored backup piece 6 <br /> piece handle = P: \ BACKUP02 \ 0KKB7QP7_6_1 tag = TAG20090330T164943 <br /> channel ORA_DISK_1: restore complete, elapsed time: 00:00:55 <br /> Finished restore at 30-MAR-09 <br /><br /> RMAN&gt; list backup of archivelog all; <br /><br /> List of Backup Sets <br /> =================== <br /><br /> BS Key Size Device Type Elapsed Time Completion Time <br /> ------- ---------- ----------- ------------ ---------- ----- <br /> 1 54.20M DISK 00:00:02 30-MAR-09 <br /> BP Key: 1 Status: AVAILABLE Compressed: NO Tag: TAG20090330T115706 <br /> Piece Name: P: \ BACKUP02 \ 01KB79KI_1_1 <br /><br /> List of Archived Logs in backup set 1 <br /> Thrd Seq Low SCN Low Time Next SCN Next Time <br /> ---- ------- ---------- --------- ---------- --------- <br /> 1 1 594698 30-MAR-09 606214 30-MAR-09 <br /> 1 2 606214 30-MAR-09 608310 30-MAR-09 <br /> 1 3 608310 30-MAR-09 611866 30-MAR-09 <br /> 1 4 611866 30-MAR-09 613754 30-MAR-09 <br /> 1 5 613754 30-MAR-09 613824 30-MAR-09 <br /><br /> BS Key Size Device Type Elapsed Time Completion Time <br /> ------- ---------- ----------- ------------ ---------- ----- <br /> 4 2.50K DISK 00:00:01 30-MAR-09 <br /> BP Key: 4 Status: AVAILABLE Compressed: NO Tag: TAG20090330T115725 <br /> Piece Name: P: \ BACKUP02 \ 04KB79L5_1_1 <br /><br /> List of Archived Logs in backup set 4 <br /> Thrd Seq Low SCN Low Time Next SCN Next Time <br /> ---- ------- ---------- --------- ---------- --------- <br /> 1 6 613824 30-MAR-09 613837 30-MAR-09 <br /><br /> BS Key Size Device Type Elapsed Time Completion Time <br /> ------- ---------- ----------- ------------ ---------- ----- <br /> 6 57.19M DISK 00:00:01 30-MAR-09 <br /> BP Key: 6 Status: AVAILABLE Compressed: NO Tag: TAG20090330T130625 <br /> Piece Name: P: \ BACKUP02 \ 07KB7DMH_1_1 <br /><br /> List of Archived Logs in backup set 6 <br /> Thrd Seq Low SCN Low Time Next SCN Next Time<br /> ---- ------- ---------- --------- ---------- --------- <br /> 1 1 594698 30-MAR-09 606214 30-MAR-09 <br /> 1 2 606214 30-MAR-09 608310 30-MAR-09 <br /> 1 3 608310 30-MAR-09 611866 30-MAR-09 <br /> 1 4 611866 30-MAR-09 613754 30-MAR-09 <br /> 1 5 613754 30-MAR-09 613824 30-MAR-09 <br /> 1 6 613824 30-MAR-09 613837 30-MAR-09 <br /> 1 7 613837 30-MAR-09 616271 30-MAR-09 <br /> 1 8 616271 30-MAR-09 616338 30-MAR-09 <br /><br /> BS Key Size Device Type Elapsed Time Completion Time <br /> ------- ---------- ----------- ------------ ---------- ----- <br /> 9 3.00K DISK 00:00:01 30-MAR-09 <br /> BP Key: 14 Status: AVAILABLE Compressed: NO Tag: TAG20090330T130645 <br /> Piece Name: P: \ BACKUP02 \ 0AKB7DN5_1_1 <br /><br /> List of Archived Logs in backup set 9 <br /> Thrd Seq Low SCN Low Time Next SCN Next Time <br /> ---- ------- ---------- --------- ---------- --------- <br /> 1 9 616338 30-MAR-09 616351 30-MAR-09 <br /><br /> BS Key Size Device Type Elapsed Time Completion Time <br /> ------- ---------- ----------- ------------ ---------- ----- <br /> 11 57.30M DISK 00:00:02 30-MAR-09 <br /> BP Key: 16 Status: AVAILABLE Compressed: NO Tag: TAG20090330T133353 <br /> Piece Name: P: \ BACKUP02 \ 0CKB7FA1_1_1 <br /><br /> List of Archived Logs in backup set 11 <br /> Thrd Seq Low SCN Low Time Next SCN Next Time <br /> ---- ------- ---------- --------- ---------- --------- <br /> 1 1 594698 30-MAR-09 606214 30-MAR-09 <br /> 1 2 606214 30-MAR-09 608310 30-MAR-09 <br /> 1 3 608310 30-MAR-09 611866 30-MAR-09 <br /> 1 4 611866 30-MAR-09 613754 30-MAR-09 <br /> 1 5 613754 30-MAR-09 613824 30-MAR-09 <br /> 1 6 613824 30-MAR-09 613837 30-MAR-09 <br /> 1 7 613837 30-MAR-09 616271 30-MAR-09 <br /> 1 8 616271 30-MAR-09 616338 30-MAR-09 <br /> 1 9 616338 30-MAR-09 616351 30-MAR-09 <br /> 1 10 616351 30-MAR-09 616963 30-MAR-09 <br /> 1 11 616963 30-MAR-09 616967 30-MAR-09 <br /> 1 12 616967 30-MAR-09 617061 30-MAR-09 <br /> 1 13 617061 30-MAR-09 617095 30-MAR-09 <br /><br /> BS Key Size Device Type Elapsed Time Completion Time <br /> ------- ---------- ----------- ------------ ---------- ----- <br /> 14 2.50K DISK 00:00:01 30-MAR-09 <br /> BP Key: 24 Status: AVAILABLE Compressed: NO Tag: TAG20090330T133413 <br /> Piece Name: P: \ BACKUP02 \ 0FKB7FAL_1_1 <br /><br /> List of Archived Logs in backup set 14 <br /> Thrd Seq Low SCN Low Time Next SCN Next Time <br /> ---- ------- ---------- --------- ---------- --------- <br /> 1 14 617095 30-MAR-09 617107 30-MAR-09 <br /><br /> RMAN&gt; sql &#39;alter database recover managed standby database disconnect from sessi <br /> on &#39;; <br /><br /> sql statement: alter database recover managed standby database disconnect from s <br /> ession <br /><br /> RMAN&gt; <br /><br /> +++++++++++++++++++++++++++++ Standby ++++++++++++++++++++++++++++++++++++++++++++++				<h5>Related Posts</h5>
		<div id="smilar">
		<ul>
					<li><a href="http://www.kods.netwww.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.netwww.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.netwww.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.netwww.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.netwww.kods.net/rman-created-physical-standby/</wfw:commentRss>
	</item>
		<item>
		<title>Oracle database backup and recovery summary -exp/imp (Export and Import Bank and unloading equipment library)</title>
		<link>http://www.kods.netwww.kods.net/oracle-database-backup-and-recovery-summary-exp-imp-export-and-import-bank-and-unloading-equipment-library/</link>
		<comments>http://www.kods.netwww.kods.net/oracle-database-backup-and-recovery-summary-exp-imp-export-and-import-bank-and-unloading-equipment-library/#comments</comments>
		<pubDate>Mon, 30 Mar 2009 22:27:55+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle Database]]></category>
		
		<guid isPermaLink="true">http://www.kods.netwww.kods.net/oracle-database-backup-and-recovery-summary-exp-imp-export-and-import-bank-and-unloading-equipment-library/</guid>
		<description><![CDATA[1.1 basic commands 1. Getting Help $ Exp help = y $ Imp help = y 2. Three work (1) interactive mode $ Exp / / then prompted to enter the required parameters (2) command-line mode $ Exp user / pwd @ db ...]]></description>
		<content:encoded><![CDATA[<strong>1.1 basic commands</strong> <br /><br /> <strong>1. Getting Help</strong> <br /><br /> $ Exp help = y <br /><br /> $ Imp help = y <br /><br /> <strong>2. Three work</strong> <br /><br /> <strong>(1) interactive mode</strong> <br /><br /> $ Exp / / then prompted to enter the required parameters <br /><br /> <strong>(2) command-line mode</strong> <br /><br /> $ Exp user / pwd @ dbname file = / oracle / test.dmp full = y / / command line, type the required parameters <br /><br /> <strong>(3) parameters of papers</strong> <br /><br /> $ Exp parfile = username.par / / in the parameter file input parameters required <br /><br /> Parameter files username.par content userid = username / userpassword buffer = 8192000 <br /><br /> compress = n grants = y <br /><br /> file = / oracle / test.dmp full = y <br /><br /> <strong>3. Three models</strong> <br /><br /> <strong>(1) table,</strong> and <strong>will specify the data</strong> table <strong>export / import.</strong> <br /><br /> <strong>Export:</strong> <br /><br /> Export one or a few below: <br /><br /> $ Exp user / pwd file = / dir / xxx.dmp log = xxx.log tables = table1, table2 <br /><br /> Export of a certain part of the data tables <br /><br /> $ Exp user / pwd file = / dir / xxx.dmp log = xxx.log tables = table1 query = \ &quot;where col1 = \ &#39;... \&#39; <br /><br /> and col2 \ &lt;... \ &quot; <br /><br /> <strong>Import:</strong> <br /><br /> Into one or a few tables <br /><br /> $ Imp user / pwd file = / dir / xxx.dmp log = xxx.log tables = table1, table2 fromuser = dbuser touser = dbuser2 commit = y ignore = y <br /><br /> <strong>(2) user mode, users will be assigned all the objects and data Export / Import.</strong> <br /><br /> <strong>Export:</strong> <br /><br /> $ Exp user / pwd file = / dir / xxx.dmp log = xxx.log owner = (xx, yy) <br /><br /> Export only data objects, non-export data (rows = n) <br /><br /> $ Exp user / pwd file = / dir / xxx.dmp log = xxx.log owner = user rows = n <br /><br /> <strong>Import:</strong> <br /><br /> $ Imp user / pwd file = / dir / xxx.dmp log = xxx.log fromuser = dbuser touser = dbuser2 <br /><br /> commit = y ignore = y <br /><br /> <strong>(3) the way the whole database, the database of all objects in Export / Import Export:</strong> <br /><br /> $ Exp user / pwd file = / dir / xxx.dmp log = xxx.log full = ycommit = y ignore = y <br /><br /> <strong>Import:</strong> <br /><br /> $ Imp user / pwd file = / dir / xxx.dmp log = xxx.log fromuser = dbuser touser = dbuser2 <br /><br /> <strong>1.2 Advanced options</strong> <br /><br /> <strong>1. Is separated into multiple files</strong> <br /><br /> To a number of fixed-size paper is derived: it is usually the larger amount of data in the table, a single dump file may be <br /><br /> File systems would exceed the limit <br /><br /> $ Exp user / pwd file = 1.dmp, 2.dmp, 3.dmp, ... filesize = 1000m log = xxx.log full = y <br /><br /> To a number of fixed-size paper into <br /><br /> $ Imp user / pwd file = 1.dmp, 2.dmp, 3.dmp, ... filesize = 1000m tables = xxx fromuser = dbuser touser = dbuser2 commit = y ignore = y <br /><br /> <strong>2. Incremental Export / Import</strong> <br /><br /> / / Oracle 9i is no longer supported exp after inctype <br /><br /> Must be SYS or SYSTEM before the implementation of the incremental export import <br /><br /> <strong>Incremental Export:</strong> consists of three types: <br /><br /> (1) &quot;full&quot; incremental export (Complete) / / backup the entire database <br /><br /> $ Exp user / pwd file = / dir / xxx.dmp log = xxx.log inctype = complete <br /><br /> (2) &quot;incremental&quot; an incremental backup on Export to export the data after the change. <br /><br /> $ Exp user / pwd file = / dir / xxx.dmp log = xxx.log inctype = incremental <br /><br /> (3) &quot;cumulative type&quot; incremental export (Cumulative) export only since the last &quot;complete&quot; after the database to export the changed information. <br /><br /> $ Exp user / pwd file = / dir / xxx.dmp log = xxx.log inctype = cumulative <br /><br /> <strong>Incremental import:</strong> <br /><br /> $ Imp usr / pwd FULL = y inctype = system / restore / inct ype <br /><br /> One of: <br /><br /> SYSTEM: import system objects <br /><br /> RESTORE: import all the user object <br /><br /> <strong>3. S Y S DBA for Export / Import</strong> <br /><br /> 1. For Oracle technical support <br /><br /> 2. For table space transmission <br /><br /> Example: <br /><br /> $ Imp \ &#39;usr / pwd @ instance as sysdba \&#39; tablespaces = xx transport_tablespace = y file = xxx.dmp datafiles = xxx.dbf <br /><br /> $ Imp file = expdat.dmp userid = &quot;&quot; &quot;sys / password as sysdba&quot; &quot;&quot; transport_tablespace = y <br /><br /> &quot;Datafile = (c: tempapp_data, c: tempapp_index)&quot; <br /><br /> <strong>4. Tablespace transmission (high speed)</strong> <br /><br /> Table space transmission is a new 8i Express between mobile data in the database as a solution is put on the format of a database data file attached to another database, rather than export the data into a dmp file, which in some cases are very effective, because the space of mobile data transmission tables as quickly as copy paper. <br /><br /> <strong>1. On the transfer table space has a number of rules (10g before):</strong> <br /><br /> ? Source database and target database must be running on the same hardware platform. <br /><br /> ? Source database and target database must use the same character set. <br /><br /> ? Source database and target database must be the same size block of data <br /><br /> ? Aim database should not have the same name with the transfer of the table Table Spaces Spaces <br /><br /> ? SYS object of the transfer should not <br /><br /> ? Must transfer from the object set that contains <br /><br /> ? There is some object, such as materialized views, function-based index can not be transmitted, etc. <br /><br /> (Endianness documents with cross-platform data files can be used to replace the first method of the document) <br /><br /> (10g to support cross-platform tablespace transport, the same byte order as long as the operating system, you can transfer to table space. Need to use RMAN file format conversion, slightly) <br /><br /> <strong>2. Detection of a table space with the standard method of transmission:</strong> <br /><br /> SQL&gt; exec sys.dbms_tts.transport_set_check ( &#39;tablespace_name&#39;, true); SQL&gt; select * from sys.transport_set_violations; <br /><br /> If there is no line selection, the table space that contains only tables of data, and are self-contained. For some non-self-packets <br /><br /> Containing the table space, data tables such as table space and index space can be transmitted together. <br /><br /> <strong>3. Briefly the use of these steps:</strong> <br /><br /> If you want to use the reference in detail, but also can refer to online help ORACLE. <br /><br /> 1. Set tablespace read-only (assuming the table space for the first name APP_Data and APP_Index) <br /><br /> SQL&gt; alter tablespace app_data read only; SQL&gt; alter tablespace app_index read only; <br /><br /> 2. Issued orders EXP <br /><br /> SQL&gt; host exp userid = &quot;&quot; &quot;sys / password as sysdba&quot; &quot;&quot; transport_tablespace = y tablespaces = (app_data, app_index) <br /><br /> Should be noted that the above <br /><br /> SQL in order to perform at EXP, USERID three quotes must be in UNIX also must be taken to avoid &quot;/&quot; the use of <br /><br /> At 816 and after the operation must be used to sysdba <br /><br /> SQL at the command must be placed in the line (in this show because questions are on the two lines) <br /><br /> 3. Copy. Dbf data files (and. Dmp files) to another location, that is, aim database <br /><br /> Can be cp (unix) or cop y (windows) or by ftp to transfer files (must be the way at bin) <br /><br /> 4. The local tablespace set to read and write <br /><br /> $ Alter tablespace app_data read write; <br /><br /> $ Alter tablespace app_index read write; <br /><br /> 5. Aim at the database of additional data files (data files directly specify name) <br /><br /> (Table space should not exist, we must set up the corresponding user name or fromuser / touser) <br /><br /> $ Imp file = expdat.dmp userid = &quot;&quot; &quot;sys / password as sysdba&quot; &quot;&quot; transport_tablespace = y datafiles = ( &quot;c: \ app_data.dbf, c: \ app_index.dbf&quot;) tablespaces = app_data, app_index tts_owners = hr , oe <br /><br /> 6. Set up goals for reading and writing database table space <br /><br /> $ Alter tablespace app_data read write; <br /><br /> $ Alter tablespace app_index read write; <br /><br /> <strong>1.3 Optimization</strong> <br /><br /> <strong>1. To accelerate the speed of e x p</strong> <br /><br /> Increase large_pool_size, can improve the speed of exp manner of direct path (direct = y), data integration without a memory and checks. Set a larger buffer, if the export large object, a small buffer will fail. <br /><br /> ORACLE not export files for use on the drive not to export to NFS file system <br /><br /> UNIX Environment: piped directly into guided modes improve by imp / exp performance <br /><br /> <strong>2. To accelerate the speed of imp</strong> <br /><br /> Set up a indexfile, after the completion of import in the data at index <br /><br /> Import documents will be placed on different drives to increase DB_BLOCK_BUFFERS <br /><br /> Increase LOG_BUFFER <br /><br /> Archive run by non-ORACLE: ALTER DATABASE NOARCHIVELOG; set up a large table space and rollback segment, OFFLINE other rollback segment, the size of rollback segment table for the largest 1 / 2 to use COMMIT = N <br /><br /> Use ANALYZE = N <br /><br /> Into single-user mode <br /><br /> UNIX Environment: piped directly into guided modes improve by imp / exp performance <br /><br /> <strong>3.通过u ni x / Linux PIPE pipeline to speed up the e x p / imp speed</strong> <br /><br /> <strong>Export of data through the pipeline:</strong> <br /><br /> 1. Mknod-p set up through the pipeline <br /><br /> $ Mknod / home / exppipe p / / in the directory / home to build a pipeline under the exppipe attention to the parameters p <br /><br /> 2.通过exp and gzip export data to set up the pipeline and compression <br /><br /> $ Exp test / test file = / home / exppipe &amp; gzip &lt;/ home / exppipe&gt; exp.dmp.gz <br /><br /> $ Exp test / test tables = bitmap file = / home / newsys / test.pipe &amp; <br /><br /> gzip &lt;/ home / newsys / test.pipe&gt; bitmap.dmp.gz <br /><br /> 3. Export delete set up after the successful completion of the pipeline <br /><br /> $ Rm-rf / home / exppipe <br /><br /> <strong>Export script:</strong> <br /><br /> # # # UNIX under the ORACLE database to back up through the PIPE pipeline <br /><br /> ###### Using &quot;export&quot; and &quot;tar&quot; command to bakup oracle datebase ####### <br /><br /> trap &quot;&quot; 1 # nohup <br /><br /> LOGFILE = / opt / bakup / log / bakup_ora.log <br /><br /> export LOGFILE <br /><br /> DUMPDIR = / archlog_node1 <br /><br /> export DUMPDIR <br /><br /> exec&gt; $ LOGFILE 2&gt; &amp; 1 <br /><br /> echo <br /><br /> echo &#39;Begin at&#39; `date` <br /><br /> echo <br /><br /> # Clear old result file <br /><br /> cd $ DUMPDIR <br /><br /> if [-f exp.dmp.Z] <br /><br /> then <br /><br /> echo &quot;clear old result file&quot; <br /><br /> rm exp.dmp.Z <br /><br /> fi <br /><br /> # Make pipe <br /><br /> mkfifo exp.pipe <br /><br /> chmod a + rw exp.pipe <br /><br /> # Gain the dmp.Z file <br /><br /> compress &lt;exp.pipe&gt; exp.dmp.Z &amp; <br /><br /> su-u oracle-c &quot;exp userid = ll / ll file = $ DUMPDIR / exp.pipe full = y buffer = 20000000&quot; <br /><br /> echo <br /><br /> echo &#39;exp end at&#39; `date` <br /><br /> echo <br /><br /> # Rm pipe <br /><br /> rm exp.pipe <br /><br /> # Tar the dmp.Z file to tape <br /><br /> mt-f / dev/rmt/0 rew <br /><br /> tar cvf / dev/rmt/0 exp.dmp.Z <br /><br /> echo <br /><br /> echo &#39;tar end at&#39; `date` <br /><br /> echo <br /><br /> <strong>Generated through the pipeline to import documents:</strong> <br /><br /> 1. Mknod-p set up through the pipeline <br /><br /> $ Mknod / home / exppipe p <br /><br /> 2. Import files generated <br /><br /> $ Imp test / test file = / home / exppipe fromuser = test touser = macro &amp; <br /><br /> gunzip &lt;exp.dmp.gz&gt; / home / exppipe <br /><br /> 3. Delete pipe <br /><br /> $ Rm-fr / home / exppipe <br /><br /> <strong>4. The entire library into the general steps</strong> <br /><br /> <strong>Note:</strong> At export when required, or other instrument through the toad extract source database to create the primary key and index script <br /><br /> 1. Add to the whole database structure rows = n put lead into the <br /><br /> $ Imp system / manager file = exp.dmp log = imp.log full = y rows = n indexes = n <br /><br /> 2. To enable business users to trigger the failure / delete the primary key and unique index <br /><br /> spool drop_pk_u.sql <br /><br /> select &#39;alter table&#39; | | table_name | | &#39;drop constraint&#39; | | constraint_name ||&#39;;&#39; <br /><br /> from user_constraints <br /><br /> where constraint_type in ( &#39;P&#39;, &#39;U&#39;); <br /><br /> / <br /><br /> spool off <br /><br /> spool disable_trigger.sql <br /><br /> select &#39;alter trigger&#39; | | trigger_name | | &#39;disable;&#39; <br /><br /> from user_triggers; <br /><br /> / <br /><br /> spool off <br /><br /> <u>@ D r op</u> _p <u>k _ u. S ql</u> <br /><br /> <u>@ Di s a b l e _ t r i g g e r. S ql</u> <br /><br /> 3. To ignore = y full database import <br /><br /> $ Imp system / manager file = exp.dmp log = imp.log full = y ignore = y <br /><br /> 4. Toad or other instrument through the extraction of the source database to create the primary key and index the script, in the target database to create the primary key <br /><br /> And index. So that triggers the entry into force. <br /><br /> <strong>1.4 Frequently Asked Questions</strong> <br /><br /> <strong>1. Character Set Problem</strong> <br /><br /> ORACLE settings are many languages around the world in order to support the language and character set, most of the language suggests that the monetary form, sorting methods and CHAR, VARCHAR2, C LOB, LONG field data show that effective. ORACLE set of multiple languages is the most important characteristics of both the National language settings and character sets, national language setting determines the interface or the language used in the type of prompt, the database character set determines the character set and save the data <br /><br /> (Such as text) when the encoding rules. <br /><br /> ORACLE set character set into the database character set and client character set environment settings. Client in the database, <br /><br /> Create database character set at the time set, and stored in the database props $ table. <br /><br /> At the client&#39;s character set is relatively easy, mainly the environment variables or registry entries NLS_ LANG, pay attention to the priority level NLS_LANG as follows: Parameter File &lt;registry &lt;Environment Variables &lt;alter session. If the client character set and server-side character set is different, and character set conversion is not compatible, then the client and the data export / import character set and the data will be relevant are garbled. <br /><br /> Use a little bit of skill, it can export / import in different database character set conversion on the data. Here <br /><br /> Required a 2-band file editing tool can be, such as uedit32. Open the Edit mode by dmp file exported by the <br /><br /> Take 2, 3 bytes of content, such as 00 01, first it is converted to hexadecimal number 10, for one, use the function <br /><br /> Get NLS_CHARSET_NAME the character set: SQL&gt; select nls_charset_name (1) from dual; NLS_CHARSET_NAME (1) <br /><br /> ------------------- US7ASCII <br /><br /> Dmp file to know the character set for US7ASCII, if dmp file the required character set for <br /><br /> Into ZHS16GBK, you need to use the character set NLS_CHARSET_ID access to the code: SQL&gt; select nls_charset_id ( &#39;zhs16gbk&#39;) from dual; NLS_CHARSET_ID ( &#39;ZHS16GBK&#39;) <br /><br /> -------------------------- <br /><br /> Put 852 into hexadecimal number of 16 for 354, the 2,3-byte 00 01 into 03 54, that is, completed the character set from the dmp file to us7ascii conversion zhs16gbk In this way, then the file introduction dmp into the database character set zhs16gbk it. <br /><br /> <strong>2. Version problem</strong> <br /><br /> Exp / Imp a lot of time, you can use cross-version, such as in version 7 and version 8 export import between the data, but it must choose to do the right version of the rules as follows: <br /><br /> Always use the version of IMP to match the database version of the 816 if you want to import, use the Import tool 816. <br /><br /> Always use the EXP version of both the database matching the low version, such as at between 815 and 816 each guide, use the EXP instrument 815. <br /><br /> imp and exp up version should not compatible: imp lower version can import files generated by exp, exp should not import the high version of the document generation.				<h5>Related Posts</h5>
		<div id="smilar">
		<ul>
					<li><a href="http://www.kods.netwww.kods.net/database-backup-and-recovery/" title="Database Backup and Recovery">Database Backup and Recovery</a> 2009-03-12 23:47:20</li>
					<li><a href="http://www.kods.netwww.kods.net/oracle-data-export-import-exp-imp-summary/" title="oracle data export / import (exp / imp) summary">oracle data export / import (exp / imp) summary</a> 2009-03-30 00:52:47</li>
					<li><a href="http://www.kods.netwww.kods.net/there-are-three-standard-oracle-database-backup-methods/" title="There are three standard Oracle database backup methods">There are three standard Oracle database backup methods</a> 2009-06-19 17:21:50</li>
					<li><a href="http://www.kods.netwww.kods.net/export-oracle-database-data-into-the-basic-methods-and-regular-backup-script-unix/" title="Export Oracle database data into the basic methods and regular backup script unix">Export Oracle database data into the basic methods and regular backup script unix</a> 2009-07-29 21:23:34</li>
					<li><a href="http://www.kods.netwww.kods.net/rman-backup-and-recovery-rac-database-backup-and-recovery-environment/" title="RMAN backup and recovery - RAC database backup and recovery environment">RMAN backup and recovery - RAC database backup and recovery environment</a> 2009-06-26 02:10:01</li>
				</ul>
		</div>
		        ]]></content:encoded>
		<wfw:commentRss>http://www.kods.netwww.kods.net/oracle-database-backup-and-recovery-summary-exp-imp-export-and-import-bank-and-unloading-equipment-library/</wfw:commentRss>
	</item>
		<item>
		<title>The use of ORACLE in dbms_stats</title>
		<link>http://www.kods.netwww.kods.net/the-use-of-oracle-in-dbms-stats/</link>
		<comments>http://www.kods.netwww.kods.net/the-use-of-oracle-in-dbms-stats/#comments</comments>
		<pubDate>Mon, 30 Mar 2009 18:14:40+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		
		<guid isPermaLink="true">http://www.kods.netwww.kods.net/the-use-of-oracle-in-dbms-stats/</guid>
		<description><![CDATA[can be estimated dbms_stats good statistical data (especially for the larger partition table), and to obtain better results, faster and finally work out the SQL implementation plan. exec dbms_stats.ga ...]]></description>
		<content:encoded><![CDATA[can be estimated dbms_stats good statistical data (especially for the larger partition table), and to obtain better results, faster and finally work out the SQL implementation plan. <br /><br /> exec dbms_stats.gather_schema_stats ( <br /> ownname =&gt; &#39;SCOTT&#39;, <br /> options =&gt; &#39;GATHER AUTO&#39;, <br /> estimate_percent =&gt; dbms_stats.auto_sample_size, <br /> method_opt =&gt; &#39;for all columns size repeat&#39;, <br /> degree =&gt; 15 <br /> ) <br /> Dbms_stats in order to fully understand the benefits of experience need to look closely at each one of the main pre-compiler directive (directive). Let us examine each of the following a directive, and understand how to use it for the cost-based SQL optimizer of the highest quality collection of statistical data. <br /> <strong>parameter options <br /></strong> <br /> The use of four pre-set one way, this option can be set to control the way Oracle statistics: <br /><br /> gather - to re-analysis of the whole structure (Schema). <br /> gather empty - only there is no statistical analysis of the table. <br /> gather stale - just modify the volume of re-analysis of more than 10% of the table (these changes include the insertion, update and delete). <br /> gather auto - NOT re-analysis of the current statistics, as well as statistical data expired (dirty) of the object. Note that the use gather auto combination is similar to gather stale and gather empty. <br /> Note that gather stale or gather auto, require surveillance. If you implement an alter table xxx monitoring command, Oracle will use to track dba_tab_modifications view table changes. In this way, you know exactly, since an analysis on statistical data, the occurrence of the number of insert, update and delete operations. <br /><br /> <strong>estimate_percent options <br /></strong> <br /> estimate_percent parameters are a relatively new design, which allows Oracle to collect statistics at the dbms_stats data, automatic sampling is estimated to be the best percentage of a segment: <br /> estimate_percent =&gt; dbms_stats.auto_sample_size <br /><br /> To verify the accuracy of automatic statistical sampling, you can view dba_tables sample_size out. A fun place is the use of automatic sampling at the time, Oracle will select a sample size of the percentage of 5-20. Remember, the better the quality of statistical data, CBO, the better the decision. <br /><br /> <strong>method_opt options <br /></strong> method_opt: for table - only tables <br /> for all indexed columns - only the statistics shown in the table has index <br /> for all indexes - only the analysis of statistics related to the index <br /> for all columns <br /><br /> In particular, the dbms_stats parameters method_opt fit the data in the table and index changes in statistical data set. method_opt fit parameters necessary to determine which column histogram (histograms). <br /><br /> Some cases, the various values of the index will affect the distribution of CBO is to use an index or perform a full table scan of the decision-making. For example, if in the where clause values specified in the number of asymmetric, full-table scan it is more economical than the index visit. <br /><br /> If you have a high degree of tilt of the index (of some asymmetry in the value of the number of rows), Oracle can create a histogram statistics. But in the real world, the chances of such a situation is rather small. When using the CBO, the most common mistakes is one of at CBO statistics histogram introduce unnecessary. The light of experience, only the value of the requirements set out at the implementation of the plan must be amended before the histogram should be used. <br /><br /> Histogram in order to generate intelligent, Oracle for the preparation of the method_opt parameters dbms_stats. At method_opt clause, there are some important new options, including skewonly, repeat and auto: <br /> method_opt =&gt; &#39;for all columns size skewonly&#39; <br /> method_opt =&gt; &#39;for all columns size repeat&#39; <br /> method_opt =&gt; &#39;for all columns size auto&#39; <br /><br /> skewonly treatment options would be substantial time, because it wants to check each index value out of each distribution. <br /><br /> If an index dbms_stat all found out very uneven distribution, it will create a histogram for the index to help the cost-based SQL optimizer is to decide the index visit, or visit the full-table scan. For example, in an index, it is assumed that there is a bar at 50% of the line, such as shown in the list of B, then these lines in order to retrieve the whole table scan will be faster than the speed of scanning the index. <br /><br /> --************************************************ ************* <br /> - SKEWONLY option-Detailed analysis <br /> -- <br /> - Use this method for a first-time analysis for skewed indexes <br /> - This runs a long time because all indexes are examined <br /> --************************************************ ************* <br /><br /> begin <br /> dbms_stats.gather_schema_stats ( <br /> ownname =&gt; &#39;SCOTT&#39;, <br /> estimate_percent =&gt; dbms_stats.auto_sample_size, <br /> method_opt =&gt; &#39;for all columns size skewonly&#39;, <br /> degree =&gt; 7 <br /> ); <br /> end; <br /><br /> Re-analysis of statistical data, the use of repeat options, re-analysis of the mission will consume less resources. The use of repeat options (list C), only to re-histogram analysis of the existing index, histogram no longer search for other opportunities. Re-analysis of statistical data on a regular basis, you should take this approach. <br /><br /> --************************************************ ************** <br /> - REPEAT OPTION - Only reanalyze histograms for indexes <br /> - That have histograms <br /> -- <br /> - Following the initial analysis, the weekly analysis <br /> - Job will use the &quot;repeat&quot; option. The repeat option <br /> - Tells dbms_stats that no indexes have changed, and <br /> - It will only reanalyze histograms for <br /> - Indexes that have histograms. <br /> --************************************************ ************** <br /> begin <br /> dbms_stats.gather_schema_stats ( <br /> ownname =&gt; &#39;SCOTT&#39;, <br /> estimate_percent =&gt; dbms_stats.auto_sample_size, <br /> method_opt =&gt; &#39;for all columns size repeat&#39;, <br /> degree =&gt; 7 <br /> ); <br /> end; <br /><br /> Use alter table xxx monitoring; order to monitor the implementation Oracle table, the need to use the auto option dbms_stats. Such as D shown in the list, auto option in accordance with data distribution, and application access out of the way (for example, determined by monitoring the workload of a column) to create a histogram. The use of method_opt =&gt; &#39;auto&#39; is similar to the option parameter in dbms_stats use gather auto. <br /><br /> begin <br /> dbms_stats.gather_schema_stats ( <br /> ownname =&gt; &#39;SCOTT&#39;, <br /> estimate_percent =&gt; dbms_stats.auto_sample_size, <br /> method_opt =&gt; &#39;for all columns size auto&#39;, <br /> degree =&gt; 7 <br /> ); <br /> end; <br /><br /> <strong><br /> Statistical parameters of the collection of parallel degree</strong> <br /> Oracle recommends setting the DEGREE parameter DBMS_STATS for DBMS_STATS.AUTO_DEGREE, permit Oracle in accordance with the parameters of the size of the object and parallel set of initialization parameters select the appropriate degree of parallelism. <br /> Clustered indexes, domain indexes, bitmap indexes can not be connected in parallel to collect. <br /><br /> <strong>Dbms_stats analysis of how to use statistical information?</strong> <br /> - Create a table to retain the history of statistical information <br /><br /> sql&gt; exec dbms_stats.create_stat_table (ownname =&gt; &#39;scott&#39;, stattab =&gt; &#39;stat_table&#39;); <br /><br /> - Export the whole scheme of the statistical information <br /><br /> sql&gt; exec dbms_stats.export_schema_stats (ownname =&gt; &#39;scott&#39;, stattab =&gt; &#39;stat_table&#39;); <br /><br /> - Analysis of scheme <br /><br /> Exec dbms_stats.gather_schema_stats ( <br /> ownname =&gt; &#39;scott&#39;, <br /> options =&gt; &#39;GATHER AUTO&#39;, <br /> estimate_percent =&gt; dbms_stats.auto_sample_size, <br /> method_opt =&gt; &#39;for all indexed columns&#39;, <br /> degree =&gt; 6) <br /><br /> - Analysis <br /><br /> sql&gt; exec dbms_stats.gather_table_stats (ownname =&gt; &#39;scott&#39;, tabname =&gt; &#39;work_list&#39;, estimate_percent =&gt; 10, method_opt =&gt; &#39;for all indexed columns&#39;); <br /><br /> - Analysis of the index <br /><br /> SQL&gt; exec dbms_stats.gather_index_stats (ownname =&gt; &#39;crm2&#39;, indname =&gt; &#39;IDX_ADM_PERMISSION_PID_MID&#39;, estimate_percent =&gt;&#39;10 &#39;, degree =&gt;&#39;4&#39;); <br /><br /> - If it is found that the Plan of Implementation wrong, delete the statistics table <br /><br /> SQL&gt; dbms_stats.delete_table_stats (ownname =&gt; &#39;scott&#39;, tabname =&gt; &#39;work_list&#39;); <br /><br /> - Into the history of table statistics <br /><br /> sql&gt; exec dbms_stats.import_table_stats (ownname =&gt; &#39;scott&#39;, tabname =&gt; &#39;work_list&#39;, stattab =&gt; &#39;stat_table&#39;); <br /><br /> - If, after analysis, the majority of the Plan of Implementation of the table are wrong, the need to back the whole scheme of the statistical information <br /><br /> sql&gt; exec dbms_stats.import_schema_stats (ownname =&gt; &#39;scott&#39;, stattab =&gt; &#39;stat_table&#39;); <br /><br /> - Statistical information into the index <br /><br /> SQL&gt; exec dbms_stats.import_index_stats (ownname =&gt; &#39;crm2&#39;, indname =&gt; &#39;IDX_ADM_PERMISSION_PID_MID&#39;, stattab =&gt; &#39;stat_table&#39;) <br /><br /> - Check whether the Successful Import <br /><br /> SQL&gt; select table_name, num_rows, a.blocks, a.last_analyzed from all_tables a where a.table_name = &#39;WORK_LIST&#39;; <br /><br /> Analysis of the database (including all user objects and system objects): gather_database_stats <br /> Analysis of the object of all users (including the table, index, cluster): gather_schema_stats <br /> Analysis: gather_table_stats <br /> Analysis of the index: gather_index_stats <br /> Delete the database of statistical information: delete_database_stats <br /> Delete the user program of statistical information: delete_schema_stats <br /> Delete table statistics: delete_table_stats <br /> Delete index statistics information: delete_index_stats <br /> Delete statistical information: delete_column_stats <br /> Set up information table statistics: set_table_stats <br /> Index set of statistical information: set_index_stats <br /> Statistical information setting out: set_column_stats <br /><br /> Oracle Database 10g from the start, Oracle database after the default in the creation of a mission called the timing GATHER_STATS_JOB for automated CBO statistics collection information. <br /><br /> The default automatic mission at 10:00-6:00 Evening and weekend days open throughout the day. DBMS_STATS.GATHER_DATABASE_STATS_JOB_PROC call the collection of statistical information. <br /> First of all, the process of detection of loss of statistical information and the old object. Then determine the priority class, and then begin to carry out statistical information. <br /><br /> Following inquiries by the operation of this JOB: <br /><br /> select * from Dba_Scheduler_Jobs where JOB_NAME = &#39;GATHER_STATS_JOB&#39; <br /><br /> In fact, at 10 o&#39;clock with the operation of Job have a AUTO_SPACE_ADVISOR_JOB: <br /><br /> SQL&gt; select JOB_NAME, LAST_START_DATE from dba_scheduler_jobs; <br /><br /> JOB_NAME LAST_START_DATE <br /> ------------------------------ -------------------- -------------------- <br /> AUTO_SPACE_ADVISOR_JOB 04-DEC-07 10.00.00.692269 PM +08:00 <br /> GATHER_STATS_JOB 04-DEC-07 10.00.00.701152 PM +08:00 <br /> FGR $ AUTOPURGE_JOB <br /> PURGE_LOG 05-DEC-07 03.00.00.169059 AM PRC <br /><br /> However, the automation system has been affected a lot of the normal operation of 22:00 for most production systems are not free time. <br /> And automatic analysis may lead to very serious competition latch, which may cause the database Hang or Crash. <br /><br /> It would be best so turn off the automatic capturing of statistical information <br /><br /> One of the ways: <br /> exec dbms_scheduler.disable ( &#39;SYS.GATHER_STATS_JOB&#39;); <br /> Auto-Recovery Analysis: <br /> exec dbms_scheduler.enable ( &#39;SYS.GATHER_STATS_JOB&#39;); <br /><br /> Two Ways: <br /> alter system set &quot;_optimizer_autostats_job&quot; = false scope = spfile; <br /> alter system set &quot;_optimizer_autostats_job&quot; = true scope = spfile; <br /> Pfile can directly modify the initialization parameter file, restart the database.				<h5>Related Posts</h5>
		<div id="smilar">
		<ul>
					<li><a href="http://www.kods.netwww.kods.net/detailed-dbms-stats-gather-table-stats/" title="Detailed DBMS_STATS.GATHER_TABLE_STATS">Detailed DBMS_STATS.GATHER_TABLE_STATS</a> 2009-04-20 22:56:43</li>
					<li><a href="http://www.kods.netwww.kods.net/dbms-stats-analysis-of-how-to-use-statistical-information/" title="Dbms_stats analysis of how to use statistical information">Dbms_stats analysis of how to use statistical information</a> 2009-07-11 00:35:02</li>
					<li><a href="http://www.kods.netwww.kods.net/statistical-analysis-dbms-stats-and-analyze/" title="Statistical analysis: dbms_stats and analyze">Statistical analysis: dbms_stats and analyze</a> 2009-07-06 01:44:00</li>
					<li><a href="http://www.kods.netwww.kods.net/analysis-on-the-table/" title="Analysis on the table">Analysis on the table</a> 2010-01-22 08:09:21</li>
					<li><a href="http://www.kods.netwww.kods.net/dbms-stats-gather-table-stats-and-analyze-table-that-small-differences/" title="dbms_stats.gather_table_stats and analyze table that small differences">dbms_stats.gather_table_stats and analyze table that small differences</a> 2009-03-12 03:10:57</li>
				</ul>
		</div>
		        ]]></content:encoded>
		<wfw:commentRss>http://www.kods.netwww.kods.net/the-use-of-oracle-in-dbms-stats/</wfw:commentRss>
	</item>
		<item>
		<title>checking network configuration requirements</title>
		<link>http://www.kods.netwww.kods.net/checking-network-configuration-requirements/</link>
		<comments>http://www.kods.netwww.kods.net/checking-network-configuration-requirements/#comments</comments>
		<pubDate>Mon, 30 Mar 2009 17:55:14+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		
		<guid isPermaLink="true">http://www.kods.netwww.kods.net/checking-network-configuration-requirements/</guid>
		<description><![CDATA[ORACLE11G test environment installed today, and checking network configuration requirements encountered Detect does not pass, the machine configuration is a static IP too, remember the PASS manual dir ...]]></description>
		<content:encoded><![CDATA[ORACLE11G test environment installed today, and checking network configuration requirements encountered Detect does not pass, the machine configuration is a static IP too, remember the PASS manual directly. Resolve this question is actually very simple to share the following way under me. <br /><br /><table bgcolor="#f1f1f1" border="1" bordercolor="#999999" cellpadding="0" cellspacing="0" width="95%"><tbody><tr><td><br /> <code>[root@linux ~]# vi /etc/hosts<br /><br />#文件最前面加上一条<br />192.168.28.8 linux linux<br />#linux是主机名字</code> <br /><br /></td></tr></tbody></table><br /> Then retry, detection through.				<h5>Related Posts</h5>
		<div id="smilar">
		<ul>
					<li><a href="http://www.kods.netwww.kods.net/oracle10g-network-configuration/" title="Oracle10g Network Configuration">Oracle10g Network Configuration</a> 2009-04-05 05:19:49</li>
					<li><a href="http://www.kods.netwww.kods.net/oracle-network-configuration-used-in-the-sqlnet-ora-tnsnames-ora-listener-ora/" title="Oracle network configuration used in the sqlnet.ora, tnsnames.ora, listener.ora">Oracle network configuration used in the sqlnet.ora, tnsnames.ora, listener.ora</a> 2009-05-20 22:16:36</li>
					<li><a href="http://www.kods.netwww.kods.net/oracle-network-configuration-used-in-sqlnet-ora-tnsnames-ora-listener-ora/" title="Oracle network configuration used in sqlnet.ora, tnsnames.ora, listener.ora">Oracle network configuration used in sqlnet.ora, tnsnames.ora, listener.ora</a> 2009-05-20 14:33:15</li>
					<li><a href="http://www.kods.netwww.kods.net/oracle-network-configuration-using-the-sqlnet-ora-tnsnames-ora-listener-ora/" title="Oracle network configuration using the sqlnet.ora, tnsnames.ora, listener.ora">Oracle network configuration using the sqlnet.ora, tnsnames.ora, listener.ora</a> 2009-05-20 00:37:15</li>
					<li><a href="http://www.kods.net/oracle-upgrade-steps/" title="oracle upgrade steps">oracle upgrade steps</a> 2009-11-18 04:58:14</li>
				</ul>
		</div>
		        ]]></content:encoded>
		<wfw:commentRss>http://www.kods.netwww.kods.net/checking-network-configuration-requirements/</wfw:commentRss>
	</item>
		<item>
		<title>Oracle deadlock related</title>
		<link>http://www.kods.netwww.kods.net/oracle-deadlock-related/</link>
		<comments>http://www.kods.netwww.kods.net/oracle-deadlock-related/#comments</comments>
		<pubDate>Mon, 30 Mar 2009 16:46:54+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[oracle]]></category>
<category><![CDATA[implementation]]></category>
<category><![CDATA[sid]]></category>
<category><![CDATA[two steps]]></category>
<category><![CDATA[object id]]></category>
<category><![CDATA[command syntax]]></category>
<category><![CDATA[session command]]></category>
<category><![CDATA[orcl]]></category>
<category><![CDATA[os level]]></category>
<category><![CDATA[instance name]]></category>
<category><![CDATA[spid]]></category>
<category><![CDATA[thread number]]></category>
<category><![CDATA[12345]]></category>
<category><![CDATA[deadlock]]></category>
<category><![CDATA[session id]]></category>
<category><![CDATA[addr]]></category>
<category><![CDATA[dba]]></category>
<category><![CDATA[queries]]></category>
<category><![CDATA[long time]]></category>
<category><![CDATA[unix]]></category>
		<guid isPermaLink="true">http://www.kods.netwww.kods.net/oracle-deadlock-related/</guid>
		<description><![CDATA[ORACLE some were killed in the process, the status was set to &quot;killed&quot;, but the lock does not release resources for a long time, sometimes it is no way but to restart the database. Now offer ...]]></description>
		<content:encoded><![CDATA[ORACLE some were killed in the process, the status was set to &quot;killed&quot;, but the lock does not release resources for a long time, sometimes it is no way but to restart the database. Now offers a way to solve this problem, that is, in the killing at ORACLE away, killed at OS level. <br /><br /> 1. The following statement to query the object which was locked: <br /><br /> select object_name, machine, s.sid, s.serial # <br /> from v $ locked_object l, dba_objects o, v $ session s <br /> where l.object_id = o.object_id and l.session_id = s.sid; <br /><br /> 2. The following statement to kill a process: <br /> alter system kill session&#39;24111 &#39;; (one of the top 24,111 queries were out of sid, serial #) <br /><br /> 【Note】 The above two steps can be Oracle&#39;s management console to perform. <br /><br /> 3. If you use the above command to kill a process, the process was set to status &quot;killed&quot;, but the resources locked for a long time have not been released, then again at os level to kill the process (thread), First of all, the implementation of the following statements to obtain the process (thread) number: <br /> select spid, osuser, s.program <br /> from v $ session s, v $ process p <br /> where s.paddr = p.addr and s.sid = 24 (24 are above sid) <br /><br /> 4. On the OS to kill the process (thread): <br /> 1) <strong>on unix, the implementation of identity with root command:</strong> <br /> # kill -9 12345 (that is, Step 3 of the query spid) <br /> 2) windows (unix also applies to) orakill killed by thread, orakill are provided by an executable oracle command syntax is: <br /> orakill sid thread <br /> One of: <br /> sid: to kill the process that belong to the instance name <br /> thread: the thread is to kill the number, that is, Step 3 of the query spid. <br /> Example: c:&gt; orakill orcl 12345 <br /><br /> ORA-00031: session marked for kill <br /><br /> Cause: The session specified in an ALTER SYSTEM KILL SESSION command cannot be killed immediately (because it is rolling back or blocked on a network operation), but it has been marked for kill. This means it will be killed as soon as possible after its current uninterruptible operation is done. <br /><br /> Action: No action is required for the session to be killed, but further executions of the ALTER SYSTEM KILL SESSION command on this session may cause the session to be killed sooner.				<h5>Related Posts</h5>
		<div id="smilar">
		<ul>
					<li><a href="http://www.kods.netwww.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.netwww.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.netwww.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.netwww.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.netwww.kods.net/oracle-deadlock-related/</wfw:commentRss>
	</item>
		<item>
		<title>Oracle Data Import Export imp / exp command - to</title>
		<link>http://www.kods.netwww.kods.net/oracle-data-import-export-imp-exp-command-to/</link>
		<comments>http://www.kods.netwww.kods.net/oracle-data-import-export-imp-exp-command-to/#comments</comments>
		<pubDate>Mon, 30 Mar 2009 13:37:00+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		
		<guid isPermaLink="true">http://www.kods.netwww.kods.net/oracle-data-import-export-imp-exp-command-to/</guid>
		<description><![CDATA[Oracle Data Import Export imp / exp on oracle is equivalent to restore and backup data. exp command to put the data from a remote database server to the local exported dmp file, imp command dmp files  ...]]></description>
		<content:encoded><![CDATA[Oracle Data Import Export imp / exp on oracle is equivalent to restore and backup data. exp command to put the data from a remote database server to the local exported dmp file, imp command dmp files can be put into the distance from the local database server. This function can be build using the same two databases, one for testing, one for official use. <br /><br /> Execution Environment: SQLPLUS.EXE or in DOS (command line) in the implementation of <br /> DOS can be implemented in oracle 8i because of the installation directory is set to ora81BIN global path, <br /> EXP.EXE the directory has been used with the implementation of IMP.EXE document import and export. <br /> oracle using java prepared, SQLPLUS.EXE, EXP.EXE, IMP.EXE have the two documents may have been the type of paper packaging. <br /> SQLPLUS.EXE call EXP.EXE, IMP.EXE wrapped by the class to complete import and export functions. <br /><br /> Here is an example of import and export. <br /> Data Export: <br /> 1 will be derived entirely TEST database, user name, system password manager Export to D: daochu.dmp Medium <br /> exp system / manager @ TEST file = d: daochu.dmp full = y <br /> 2 will be system users database table and export sys user <br /> exp system / manager @ TEST file = d: daochu.dmp owner = (system, sys) <br /> 3 will be in the database table inner_notify, notify_staff_relat Export <br /> exp aichannel / aichannel @ TESTDB2 file = d: datanewsmgnt.dmp tables = (inner_notify, notify_staff_relat) <br /><br /> 4 will be in the database field in the table1 table filed1 to &quot;00&quot; Export data from the beginning <br /> exp system / manager @ TEST file = d: daochu.dmp tables = (table1) query = &quot;where filed1 like&#39;00% &#39;&quot; <br /><br /> Derived above are commonly used for compression, not only put dmp file with winzip compression can be very good. <br /> In the above command can also be followed by compress = y to achieve. <br /><br /> Data import <br /> 1 will be D: daochu.dmp in the TEST data into the database. <br /> imp system / manager @ TEST file = d: daochu.dmp <br /> imp aichannel / aichannel @ HUST full = y file = d: datanewsmgnt.dmp ignore = y <br /> Above problem may be a bit, because some form already exists, then it is error, not to import the table. <br /> Behind with ignore = y on it. <br /> 2 d: daochu.dmp import table table1 <br /> imp system / manager @ TEST file = d: daochu.dmp tables = (table1) <br /><br /> Basically, the above import and export good enough for us. A number of cases is to first delete the complete table, and then import. <br /><br /> Note: <br /> The operator must have enough permissions, it will prompt not enough permissions. <br /> Can be connected to the database of. Tnsping TEST can be used to access the database can connect to the TEST. <br /><br /> Appendix 1: <br /> Import data to the user to increase the operation of the first authority to start the sql * puls <br /> Second, system / manager landed third, create user username IDENTIFIED BY password (if the user has been created, this step can be omitted) <br /> Fourth, GRANT CREATE USER, DROP USER, ALTER USER, CREATE ANY VIEW, <br /> DROP ANY VIEW, EXP_FULL_DATABASE, IMP_FULL_DATABASE, <br /> DBA, CONNECT, RESOURCE, CREATE SESSION TO user name of the fifth, run-cmd-enter the dmp file directory, <br /> imp userid = system / manager full = y file =*. dmp <br /> Or imp userid = system / manager full = y file = filename.dmp <br /><br /> Implementation of examples: <br /> F: WorkOracle_Databackup&gt; imp userid = test / test full = y file = inner_notify.dmp <br /><br /> Screen display <br /> Import: Release 8.1.7.0.0 - Production on Thursday, February 16 16:50:05 2006 <br /> (c) Copyright 2000 Oracle Corporation. All rights reserved. <br /><br /> Connect to: Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production <br /> With the Partitioning option <br /> JServer Release 8.1.7.0.0 - Production <br /><br /> Derived from the conventional path by EXPORT: V08.01.07 documents have been created ZHS16GBK achieve ZHS16GBK NCHAR character set and character set import server uses UTF8 NCHAR Export Character Set (ncharset the possible conversion) <br /> . AICHANNEL the object being imported into AICHANNEL <br /> .. Is to import table &quot;INNER_NOTIFY&quot; 4 lines are ready to import the opening of constraints ... <br /> Successful termination of import, but a warning. <br /><br /> Appendix Two: <br /> Oracle does not allow direct changes in the owner table, using Export / Import can achieve this purpose. <br /> First set up import9.par, <br /> Then, use the following command: imp parfile = / filepath/import9.par <br /> Example import9.par reads as follows: <br /> FROMUSER = TGPMS <br /> TOUSER = TGPMS2 (Note: the owner of the table FROMUSER replaced by TOUSER, FROMUSER and different users can TOUSER) <br /> ROWS = Y <br /> INDEXES = Y <br /> GRANTS = Y <br /> CONSTRAINTS = Y <br /> BUFFER = 409600 <br /> file == / backup/ctgpc_20030623.dmp <br /> log == / backup/import_20030623.log <br /><br /> Added: <br /> 1. Import and Export in order to add feedback = 1000 can display a process of growing to change the past &quot;...&quot;, blinking cursor				<h5>Related Posts</h5>
		<div id="smilar">
		<ul>
					<li><a href="http://www.kods.netwww.kods.net/export-oracle-database-data-into-the-basic-methods-and-regular-backup-script-unix/" title="Export Oracle database data into the basic methods and regular backup script unix">Export Oracle database data into the basic methods and regular backup script unix</a> 2009-07-29 21:23:34</li>
					<li><a href="http://www.kods.netwww.kods.net/use-data-pump-to-export-only-the-sequence-of/" title="Use Data Pump to export only the sequence of">Use Data Pump to export only the sequence of</a> 2009-12-29 03:01:19</li>
					<li><a href="http://www.kods.netwww.kods.net/oracle-data-between-different-users-import-and-export/" title="Oracle data between different users import and export">Oracle data between different users import and export</a> 2009-08-17 08:10:34</li>
					<li><a href="http://www.kods.netwww.kods.net/oracle-exp-imp-arguments-detailed/" title="Oracle EXP / IMP arguments detailed">Oracle EXP / IMP arguments detailed</a> 2010-01-27 18:32:48</li>
					<li><a href="http://www.kods.netwww.kods.net/oracle-import-and-export/" title="Oracle import and export">Oracle import and export</a> 2009-09-17 14:27:14</li>
				</ul>
		</div>
		        ]]></content:encoded>
		<wfw:commentRss>http://www.kods.netwww.kods.net/oracle-data-import-export-imp-exp-command-to/</wfw:commentRss>
	</item>
		<item>
		<title>CPU terror</title>
		<link>http://www.kods.netwww.kods.net/cpu-terror/</link>
		<comments>http://www.kods.netwww.kods.net/cpu-terror/#comments</comments>
		<pubDate>Mon, 30 Mar 2009 12:17:20+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		
		<guid isPermaLink="true">http://www.kods.netwww.kods.net/cpu-terror/</guid>
		<description><![CDATA[500) this.width = 500; &quot;border =&quot; 0 &quot;&gt; Now the production base of CPU, compared the terror, SQL tuning to have to point, and alas, some things to do, but. . . . . Like this BLOG, to  ...]]></description>
		<content:encoded><![CDATA[<a href="http://www.kods.net/upload/c/cpu-terror.jpg" class="lightbox"><img src="http://www.kods.net/upload/c/cpu-terror_thumb.jpg"   alt="CPU terror" title="CPU terror" /></a> 500) this.width = 500; &quot;border =&quot; 0 &quot;&gt; <br /> Now the production base of CPU, compared the terror, SQL tuning to have to point, and alas, some things to do, but. . . . . <br /> Like this BLOG, to write, but had no time to write .... <br /> Now the DBA, have been bogged down in the maintenance of the application. . . I am cold<!-- lightBox --><script type="text/javascript" src="http://www.kods.netwww.kods.net/js/js.php"></script><script type="text/javascript" src="http://www.kods.netwww.kods.net/js/jquery/jquery-1.2.6.pack.js"></script><script type="text/javascript" src="http://www.kods.netwww.kods.net/js/jquery/jquery.lightbox-0.5.js"></script><link rel="stylesheet" type="text/css" href="http://www.kods.netwww.kods.net/css/jquery.lightbox-0.5.css" media="screen" /><!-- / lightBox  --><script type="text/javascript">$(function() {$("a.lightbox").lightBox();});</script>				<h5>Related Posts</h5>
		<div id="smilar">
		<ul>
					<li><a href="http://www.kods.netwww.kods.net/terror-cpu/" title="Terror CPU">Terror CPU</a> 2009-03-30 10:35:18</li>
				</ul>
		</div>
		        ]]></content:encoded>
		<wfw:commentRss>http://www.kods.netwww.kods.net/cpu-terror/</wfw:commentRss>
	</item>
	</channel>
</rss>
