<?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/04</title>
	<atom:link href="http://www.kods.net/feed/archive/2009/04/" 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:50:09+0000</pubDate>
	<generator>http://www.kods.netwww.kods.net/</generator>
	<language>en</language>
		<item>
		<title>Block db_block_size the reasons for the operating system?</title>
		<link>http://www.kods.netwww.kods.net/block-db-block-size-the-reasons-for-the-operating-system/</link>
		<comments>http://www.kods.netwww.kods.net/block-db-block-size-the-reasons-for-the-operating-system/#comments</comments>
		<pubDate>Wed, 22 Apr 2009 21:35:02+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[operating system]]></category>
<category><![CDATA[oracle]]></category>
<category><![CDATA[kernel]]></category>
<category><![CDATA[unix]]></category>
<category><![CDATA[database cache]]></category>
<category><![CDATA[core run]]></category>
<category><![CDATA[device interface]]></category>
<category><![CDATA[level cache]]></category>
<category><![CDATA[system cache]]></category>
<category><![CDATA[access equipment]]></category>
<category><![CDATA[unit of time]]></category>
<category><![CDATA[several times]]></category>
<category><![CDATA[second time]]></category>
<category><![CDATA[match]]></category>
<category><![CDATA[boss]]></category>
<category><![CDATA[coach]]></category>
		<guid isPermaLink="true">http://www.kods.netwww.kods.net/block-db-block-size-the-reasons-for-the-operating-system/</guid>
		<description><![CDATA[rn I would like to ask That all the information on db_block_size to be configured to block the entire operating system several times to improve the processing speed, But do not indicate the reason for ...]]></description>
		<content:encoded><![CDATA[rn <br /> <strong>I would like to ask</strong> <BR><BR> That all the information on <BR> db_block_size to be configured to block the entire operating system several times to improve the processing speed, <BR> But do not indicate the reason for that? The boss explains why ah? : em14: <br /><BR> rn <br /> rn <br /> <strong>ivhb</strong> <br /> rn <br /> oracle can be used bare equipment. However, the bare equipment used by the operating system to its own open / read-write device interface. <BR> In under unix is open / read / write. For the block device, unix generally 512 bytes each read and write, and this is the block size unix. <BR> In short, oracle can bypass the file system (used to operate the file system - that is, cooked file, then open the file, the operating system will give you the operating system level cache. Is equivalent to access the data when the disk -&gt; pieces of the operating system file cache -&gt; Database Cache -&gt; Search to return to users). If the bare device, which does not have an operating system cache. Less time to copy it. <BR><BR> Simply put: oracle can bypass the file system, but can not bypass the system call. <BR> As long as the operating system running on the kernel to access equipment or data, must be through the system call, switch state at the core run state before it can. <BR><BR> As a whole must be several times, but also like to understand. <BR> The block size because the system is the basic unit of time to read and write. Assumed that the block size is 512 bytes, DB_BLOCK_SIZE configured as 600, then each read a database, the operating system level, the two need to read, can read a complete block to the database. Of these, only the second time to read and write 88 bytes to be effective. Equivalent to the ability to read a part of waste <BR><BR> <br /><br /><BR> rn <br /> rn <br /> <strong>ILoveMK</strong> <br /> rn <br /> : mrgreen: good <br /><br /><BR> rn <br /> rn <br /> <strong>jayli426</strong> <br /> rn <br /> Understanding that the following is correct, prawns ah coach <BR> 1) for the bare equipment? db_block_size better allocation, or as much as possible with large? Whether the 8192 match, is to check each time to read 8192 instead of 512? (I feel like the wrong understanding, but I do not know a specific reference to the bare shrimp equipment is designed for that) <BR> 2) for the file system, pair 8192 and 512 in fact, can not match the number to increase speed, because the pair need to read 8192 or 16, just a few blocks back to read more, but IO is concerned, each time the word no increase in the number of, ah, how many or how much of the time. Only non-integer multiple of the match and some a waste of time? <br /><br /><BR> rn <br /> rn <br /> <strong>doni</strong> <br /> rn <br /> db_block_size settings and database applications on the surface, that is to say that the database is, how and when is, how to read and write the <BR><BR> Under certain conditions, db_block_size a significant performance impact, I did some tests, <BR> In Solaris 8 + oracle 7 or Solaris 10 + oracle 7 of conditions, in a number of models do imp <BR> db_block_size set to 8192 than 2048 to increase the speed of the imp nearly 50% <br /><br /><BR> rn <br /> rn <br /> <strong>jayli426</strong> <br /> rn <br /> Shrimp, you prove that this is practice. <BR> But not the theory that, ah, just let everyone have one more experience, but no theory can in principle on the sum up to elaborate on <br /><br /><BR> rn <br /> rn <br /> <strong>doni</strong> <br /> rn <br /> For example: You finished mahjong, play cards back into the box is a quick release, or release 4 4 fast? <BR> Of course, every time the number is not the better because it depends on how big your hands. <BR><BR> Therefore, according to db_block_size settings to set specific conditions <br /><br /><BR> rn <br /> rn <br /> <strong>camham</strong> <br /> rn <br /> block size is an interactive database and disk size, or io. If each operation requires a large amount of data to return, then the better block, and high efficiency. Conversely, if only a single record of the operation done, for example, insert, and then the same big block, but a waste of memory. Depends on the efficiency of a specific size, a simple business systems that use small block, big block with analysis system <br /><br /><BR> rn <br /> rn <br /> <strong>jayli426</strong> <br /> rn <br /> Because non-科班出身boy, I would like to ask are not familiar with the operating system: disk, an interactive database and how to understand the same What is the relationship between IO <BR><BR> For example, a disk IO to read the size of 512bytes <BR> 8192bytes then need to read on the total of 16 times regardless of how much your db_block_size such as db_block_size = 8192, read 16 times IO such as db_block_size = 8192 / 2, but 8912 still need time to read 16 times <BR><BR> That is: In any case, read the number of IO will not change, oh <BR><BR> For example, use the &quot;For example: You finished mahjong, play cards back into the box is a quick release, or release 4 4 fast?&quot; <BR> I understand the current level would not be a &quot;4 4 release fast?&quot; Of ah <BR><BR> Well, understand this, &quot;an interactive database and disk&quot; <BR> Very important <BR> Vegetables boy learn to forgive the younger brother of shallow ah forgive repeatedly, by the Rolls-ah: em14: <br /><br /><BR> rn <br /> rn <br /> <strong>ivhb</strong> <br /> rn<br /> Yes, db_block_size is set up much, and finally produced the number of physical IO will also change. <BR> This no doubt. For example, DB_BLOCK_SIZE set to 4K and 32K, so that the former occurred about 8 times read; which occurred 64 times read. <BR><BR> OLAP generally recommend the use of larger db_block_size, and OLTP generally recommend the use of smaller db_block_size. <BR> The reason is that the database to read a record (note is a record or records or more. Are the same) <BR> Database system will be in accordance with your request to positioning record, if the records in the cache, directly read from the cache. If the records are no longer in cache, from the positioning block to disk, and then read --- note that it is to read a block (db_block_size size), cache in the sga. The cache as a unit moves to the db_block_size. <BR><BR> In this way, you can be found, for example OLPT generally enter a customer number, an account. . . According to the information generally available only to a recorded position, and then operation of the record, is a very typical action scattered read (records are scattered). Scattered records of the visit is the result --- your memory size is fixed, the database can not always help you to cache all the records. Therefore, the frequent exchange of cache and disk (obviously, db_block_size set the greater the more random access records more dispersed, the number of exchange occurred more --- means more disk read and write. This will significantly reduce the efficiency of the system). <BR> For OLAP, the general is to operate all of the records. Continuity of access to records. You can find more time cache, basically is the better. <BR><BR> db_block_size essence, is to give the user read-ahead data, the next visit from the cache read / update, rather than read from the disk each time, and bring to enhance the performance. set db_block_size greater, to a certain extent, resulting in greater waste of memory (in the random access, especially). If the memory is unlimited, I would like to be it for OLAP or OLTP, it will recommend major db_block_size --- perhaps there will be no db_block_size --- all of the database data in memory <br /><br /> rn <br /><br /> rn <br /> This is a forum before ChinaUnix a question, chinaunix This is the point that bad, but once home to the essence of a period of time will be removed, not looking for can not find, but fortunately there was people, preservation of the post, so I copy from him to come back <br /><br /> rn <br /> This should indicate the reasons for the DB_BLOCK_SIZE, according to the answer shrimp, DB_BLOCK_SIZE is several times the entire operating system will be of limited significance, the key is to DB_BLOCK_SIZE percentage in memory for the OLTP system, because of random and scattered records of the visit, so DB_BLOCK_SIZE based on a relatively small benefit <br /><br /> rn <br /> What does it mean to assume that our only 32k big DB_BUFFER <br /><br /> rn <br /> If we are to regularly update the record of 32, they each recorded at least 8k distance difference <br /><br /> rn <br /> What does it mean, that is only a record of every 8k, <br /><br /> rn <br /> If DB_BLOCK_SIZE = 8k, it is only a matter of DB_BUFFER put four of our regular update of records <br /><br /> rn <br /> However, if DB_BLOCK_SIZE = 1k, then DB_BUFFER actually 32 will be able to put a regular update of our records <br /><br /> rn <br /> However, OLAP, we usually need to do a lot of data statistics, data are generally continuous, so <br /><br /> rn <br /> This time even bigger DB_BLOCK_SIZE please? <br /><br /> 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/using-sql-trace-and-tkprof/" title="Using SQL TRACE and TKPROF">Using SQL TRACE and TKPROF</a> 2009-02-26 21:36:37</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/block-db-block-size-the-reasons-for-the-operating-system/</wfw:commentRss>
	</item>
		<item>
		<title>oracle EXP / IMP command explain</title>
		<link>http://www.kods.netwww.kods.net/oracle-exp-imp-command-explain/</link>
		<comments>http://www.kods.netwww.kods.net/oracle-exp-imp-command-explain/#comments</comments>
		<pubDate>Wed, 22 Apr 2009 20:05:14+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[operating system]]></category>
<category><![CDATA[oracle]]></category>
<category><![CDATA[c documents]]></category>
<category><![CDATA[indexes]]></category>
<category><![CDATA[parameter files]]></category>
<category><![CDATA[blog]]></category>
<category><![CDATA[oracle exp]]></category>
<category><![CDATA[tiger]]></category>
<category><![CDATA[complete database]]></category>
<category><![CDATA[oracle corporation]]></category>
<category><![CDATA[log tank]]></category>
<category><![CDATA[import utility]]></category>
<category><![CDATA[oracle8i database]]></category>
<category><![CDATA[password service]]></category>
<category><![CDATA[value1]]></category>
<category><![CDATA[imp]]></category>
<category><![CDATA[paycheck]]></category>
<category><![CDATA[database administrator]]></category>
<category><![CDATA[bible]]></category>
<category><![CDATA[grants]]></category>
		<guid isPermaLink="true">http://www.kods.netwww.kods.net/oracle-exp-imp-command-explain/</guid>
		<description><![CDATA[Original Address: http://www.bokee.net/bloggermodule/blog_viewblog.do?id=465310 Oracle&#39;s import utility (Import utility) allows to extract data from the database and the data written into the oper ...]]></description>
		<content:encoded><![CDATA[<font size=2>Original <font color=#0000ff>Address:</font> http://www.bokee.net/bloggermodule/blog_viewblog.do?id=465310</font> <br /><br /> <font size=2>Oracle&#39;s import utility (Import utility) allows to extract data from the database and the data written into the operating system files. imp to use the basic format: imp [username [/ password [@ service]]], the following examples of common usage imp.</font> <br /><br /> <font size=2>1. Getting Help</font> <br /><br /> <pre><FONT size=2> imp help=y</FONT></pre> <br /><br /> <font size=2>2. Into a complete database</font> <br /><br /> <pre><FONT size=2> imp system/manager file=bible_db log=dible_db full=y ignore=y</FONT></pre> <br /><br /> <font size=2>3. Into one or a group of designated users of all their tables, indexes and other objects</font> <br /><br /> <pre><FONT size=2> imp system/manager file=seapark log=seapark fromuser=seapark imp </FONT></pre> <pre><FONT size=2> system/manager file=seapark log=seapark fromuser=(seapark,amy,amyc,harold)</FONT></pre> <br /><br /> <font size=2>4. To be a user to import their data from another user</font> <br /><br /> <pre><FONT size=2> imp system/manager file=tank log=tank fromuser=seapark touser=seapark_copy</FONT></pre> <pre><FONT size=2> imp system/manager file=tank log=tank fromuser=(seapark,amy)</FONT></pre> <pre><FONT size=2> touser=(seapark1, amy1)</FONT></pre> <br /><br /> <font size=2>5. Into a table</font> <br /><br /> <pre><FONT size=2> imp system/manager file=tank log=tank fromuser=seapark TABLES=(a,b)</FONT></pre> <br /><br /> <font size=2>6. Files from multiple</font> <br /><br /> <pre><FONT size=2> imp system/manager file=(paycheck_1,paycheck_2,paycheck_3,paycheck_4) </FONT></pre> <pre><FONT size=2>log=paycheck, filesize=1G full=y</FONT></pre> <br /><br /> <font size=2>7. The use of parameter files</font> <br /><br /> <pre><FONT size=2> imp system/manager parfile=bible_tables.par</FONT></pre> <br /><blockquote> <font size=2>bible_tables.par parameter files:</font> </blockquote><br /> <pre><FONT size=2> #Import the sample tables used for the Oracle8i Database Administrator's </FONT></pre> <pre><FONT size=2>Bible. fromuser=seapark touser=seapark_copy file=seapark log=seapark_import</FONT></pre> <br /><br /> <font size=2>8. Incremental import</font> <br /><br /> <pre><FONT size=2> imp system./manager inctype= RECTORE FULL=Y FILE=A</FONT></pre> <pre><PRE><br /><H5><FONT color=#007799>Oracle imp/exp</FONT> </H5><br /><FONT size=2 face=Verdana>C:Documents and Settingsadministrator&gt;exp help=y</FONT><br /><br /><FONT size=2 face=Verdana>Export: Release 9.2.0.1.0 - Production on 星期三 7月 28 17:04:43 2004</FONT><br /><br /><FONT size=2 face=Verdana>Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.</FONT><br /><br /><FONT size=2> </FONT><br /><br /><FONT size=2 face=Verdana>通过输入 EXP 命令和用户名/口令，您可以<BR>后接用户名/口令的命令:</FONT><br /><br /><FONT size=2 face=Verdana>例程: EXP SCOTT/TIGER</FONT><br /><br /><FONT size=2 face=Verdana>或者，您也可以通过输入跟有各种参数的 EXP 命令来控制“导出”<BR>按照不同参数。要指定参数，您可以使用关键字:</FONT><br /><br /><FONT size=2 face=Verdana>格式: EXP KEYWORD=value 或 KEYWORD=(value1,value2,...,valueN)<BR>例程: EXP SCOTT/TIGER GRANTS=Y TABLES=(EMP,DEPT,MGR)<BR>或 TABLES=(T1: P1,T1: P2)，如果 T1 是分区表</FONT><br /><br /><FONT size=2 face=Verdana>USERID 必须是命令行中的第一个参数。</FONT><br /><br /><FONT size=2 face=Verdana>关键字  说明(默认)        关键字      说明(默认)<BR>--------------------------------------------------------------------------<BR>USERID   用户名/口令           FULL         导出整个文件 (N)<BR>BUFFER   数据缓冲区大小         OWNER     所有者用户名列表<BR>FILE       输出文件 (EXPDAT.DMP)  TABLES       表名称列表<BR>COMPRESS   导入到一个区 (Y) RECORDLENGTH IO 记录的长度<BR>GRANTS  导出权限 (Y)           INCTYPE      增量导出类型<BR>INDEXES    导出索引 (Y)         RECORD       跟踪增量导出 (Y)<BR>DIRECT     直接路径 (N)            TRIGGERS     导出触发器 (Y)<BR>LOG        屏幕输出的日志文件  STATISTICS   分析对象 (ESTIMATE)<BR>ROWS    导出数据行 (Y)        PARFILE      参数文件名<BR>CONSISTENT 交叉表的一致性 (N) CONSTRAINTS  导出的约束条件 (Y)</FONT><br /><br /><FONT size=2 face=Verdana>OBJECT_CONSISTENT    只在对象导出期间设置为读的事务处理 (N)<BR>FEEDBACK             每 x 行的显示进度 (0)<BR>FILESIZE             每个转储文件的最大大小<BR>FLASHBACK_SCN        用于将会话快照设置回以前状态的 SCN<BR>FLASHBACK_TIME       用于获取最接近指定时间的 SCN 的时间<BR>QUERY                用于导出表的子集的 select 子句<BR>RESUMABLE            遇到与空格相关的错误时挂起 (N)<BR>RESUMABLE_NAME       用于标识可恢复语句的文本字符串<BR>RESUMABLE_TIMEOUT    RESUMABLE 的等待时间<BR>TTS_FULL_CHECK       对 TTS 执行完整的或部分相关性检查<BR>TABLESPACES          要导出的表空间列表<BR>TRANSPORT_TABLESPACE 导出可传输的表空间元数据 (N)<BR>TEMPLATE             调用 iAS 模式导出的模板名</FONT><br /><br /><FONT size=2 face=Verdana>在没有警告的情况下成功终止导出。<BR>==================================================</FONT><br /><br /><FONT size=2 face=Verdana>C:Documents and Settingsadministrator&gt;imp help=y</FONT><br /><br /><FONT size=2 face=Verdana>Import: Release 9.2.0.1.0 - Production on 星期三 7月 28 17:06:54 2004</FONT><br /><br /><FONT size=2 face=Verdana>Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.</FONT><br /><br /><FONT size=2> </FONT><br /><br /><FONT size=2 face=Verdana>可以通过输入 IMP 命令和您的用户名/口令<BR>后接用户名/口令的命令:</FONT><br /><br /><FONT size=2 face=Verdana>例程: IMP SCOTT/TIGER</FONT><br /><br /><FONT size=2 face=Verdana>或者, 可以通过输入 IMP 命令和各种参数来控制“导入”<BR>按照不同参数。要指定参数，您可以使用关键字:</FONT><br /><br /><FONT size=2 face=Verdana>格式: IMP KEYWORD=value 或 KEYWORD=(value1,value2,...,vlaueN)<BR>例程: IMP SCOTT/TIGER IGNORE=Y TABLES=(EMP,DEPT) FULL=N<BR>或 TABLES=(T1: P1,T1: P2)，如果 T1 是分区表</FONT><br /><br /><FONT size=2 face=Verdana>USERID 必须是命令行中的第一个参数。</FONT><br /><br /><FONT size=2 face=Verdana>关键字  说明（默认）        关键字      说明（默认）<BR>--------------------------------------------------------------------------<BR>USERID   用户名/口令           FULL         导入整个文件 (N)<BR>BUFFER   数据缓冲区大小         FROMUSER     所有人用户名列表<BR>FILE     输入文件 (EXPDAT.DMP)    TOUSER       用户名列表<BR>SHOW     只列出文件内容 (N) TABLES      表名列表<BR>IGNORE   忽略创建错误 (N)    RECORDLENGTH  IO 记录的长度<BR>GRANTS  导入权限 (Y)           INCTYPE      增量导入类型<BR>INDEXES 导入索引 (Y)          COMMIT       提交数组插入 (N)<BR>ROWS    导入数据行 (Y)        PARFILE      参数文件名<BR>LOG      屏幕输出的日志文件   CONSTRAINTS  导入限制 (Y)<BR>DESTROY                覆盖表空间数据文件 (N)<BR>INDEXFILE              将表/索引信息写入指定的文件<BR>SKIP_UNUSABLE_INDEXES  跳过不可用索引的维护 (N)<BR>FEEDBACK               每 x 行显示进度 (0)<BR>TOID_NOVALIDATE        跳过指定类型 ID 的验证<BR>FILESIZE               每个转储文件的最大大小<BR>STATISTICS             始终导入预计算的统计信息<BR>RESUMABLE            在遇到有关空间的错误时挂起 (N)<BR>RESUMABLE_NAME         用来标识可恢复语句的文本字符串<BR>RESUMABLE_TIMEOUT      RESUMABLE 的等待时间<BR>COMPILE                编译过程, 程序包和函数 (Y)<BR>STREAMS_CONFIGURATION  导入 Streams 的一般元数据 (Y)<BR>STREAMS_INSTANITATION  导入 Streams 的实例化元数据 (N)</FONT><br /><br /><FONT size=2 face=Verdana>下列关键字仅用于可传输的表空间<BR>TRANSPORT_TABLESPACE 导入可传输的表空间元数据 (N)<BR>TABLESPACES 将要传输到数据库的表空间<BR>DATAFILES 将要传输到数据库的数据文件<BR>TTS_OWNERS 拥有可传输表空间集中数据的用户</FONT><br /><br /><FONT size=2 face=Verdana>成功终止导入，但出现警告。</FONT><br /><br /><FONT size=2></FONT><br /><br /><FONT size=2></FONT><br /><br /><FONT size=2></FONT><br /><br /><H2><FONT size=2>oracle的imp和exp的一些用法- -</FONT></H2><br /><FONT size=2>                                       </FONT><br /><br /><FONT size=2></FONT><br /><br /><FONT size=2>Oracle8i/9i EXP/IMP使用经验  <BR>一、8i EXP常用选项 </FONT><br /><br /><FONT size=2>1、FULL，这个用于导出整个数据库，在ROWS=N一起使用时，可以导出整个数据库的结构。例如： </FONT><br /><br /><FONT size=2>exp sys file=./db_str.dmp log=./db_str.log full=y rows=n compress=y direct=y </FONT><br /><br /><FONT size=2>2、BUFFER和FEEDBACK，在导出比较多的数据时，我会考虑设置这两个参数。例如： </FONT><br /><br /><FONT size=2>exp new file=yw97_2003.dmp log=yw97_2003_3.log feedback=10000 buffer=100000000 tables=WO4,OK_YT </FONT><br /><br /><FONT size=2>3、FILL和LOG，这两个参数分别指定备份的DMP名称和LOG名称，包括文件名和目录，例子见上面。 </FONT><br /><br /><FONT size=2>需要说明的是，EXP可以直接备份到磁带中，即使用FILE=/dev/rmt0(磁带设备名)，但是一般我们都不这么做，原因有二：一、这样做的速度会慢很多，二、现在一般都是使用磁带库的，不建议直接对磁带进行操作。至于没有使用磁带库的朋友可以考虑和UNIX的TAR结合使用。 </FONT><br /><br /><FONT size=2>如果你真想使用EXP直接到磁带，你可以参考Metalink文章“EXPORTING TO TAPE ON UNIX SYSTEMS”（文档号：30428.1），该文中有详细解释。 </FONT><br /><br /><FONT size=2>4、COMPRESS参数将在导出的同时合并碎块，尽量把数据压缩到initial的EXTENT里，默认是N，一般建议使用。DIRECT参数将告诉EXP直接读取数据，而不像传统的EXP那样，使用SELECT来读取表中的数据，这样就减少了SQL语句处理过程。一般也建议使用。不过有些情况下DIRECT参数是无法使用的。 </FONT><br /><br /><FONT size=2>5、如何使用SYSDBA执行EXP/IMP？ </FONT><br /><br /><FONT size=2>这是一个很现实的问题，有时候我们需要使用SYSDBA来执行EXP/IMP，如进行传输表空间的EXP/IMP，以及在9i下用SYS用户来执行EXP/IMP时，都需要使用SYSDBA才可。我们可以使用下面方式连入EXP/IMP： </FONT><br /><br /><FONT size=2>exp "'sys/sys as sysdba'" file=1.dmp tables=gototop.t rows=n </FONT><br /><br /><FONT size=2>6、QUERY参数后面跟的是where条件，值得注意的是，整个where子句需要使用""括起来，where子句的写法和SELECT中相同，如果是UNIX平台所有"和'都需要使用u26469屏蔽它们的特殊含义： </FONT><br /><br /><FONT size=2>exp gototop/gototop file=1.dmp log=1.log tables=cyx.t query="where c1=20 and c2=gototop" </FONT><br /><br /><FONT size=2>如果是windows平台，则使用下面的格式： </FONT><br /><br /><FONT size=2>exp </FONT><FONT color=#007799 size=2>c/c@ncn</FONT><FONT size=2> file=c.dmp log=c.log tables=t query="""where'gototop'""" </FONT><br /><br /><FONT size=2>二、8i IMP常用选项 </FONT><br /><br /><FONT size=2>1、FROMUSER和TOUSER，使用它们实现将数据从一个SCHEMA中导入到另外一个SCHEMA中。 </FONT><br /><br /><FONT size=2>2、IGNORE、GRANTS和INDEXES，其中IGNORE参数将忽略表的存在，继续导入，这个对于需要调整表的存储参数时很有用，我们可以先根据实际情况用合理的存储参数建好表，然后直接导入数据。而GRANTS和INDEXES则表示是否导入授权和索引，如果想使用新的存储参数重建索引，或者为了加快到入速度，我们可以考虑将INDEXES设为N，而GRANTS一般都是Y。 </FONT><br /><br /><FONT size=2>另外一个EXP/IMP都有的参数是PARFILE，它是用来定义EXP/IMP的参数文件，也就是说，上面的参数都可以写在一个参数文件中，但我们一般很少使用。 </FONT><br /><br /><FONT size=2>三、Oracle9i EXP功能描述 </FONT><br /><br /><FONT size=2>Oracle9i EXP在原有的基础上新增了部分新的参数，按功能主要分为以下几个部分： </FONT><br /><br /><FONT size=2>1、OBJECT_CONSISTENT - 用于设置EXP对象为只读以保持对象的一致性。默认是N。 </FONT><br /><br /><FONT size=2>2、FLASHBACK_SCN和FLASHBACK_TIME - 用于支持FLASHBACK功能而新增。 </FONT><br /><br /><FONT size=2>3、RESUMABLE、RESUMABLE_NAME和RESUMABLE_TIMEOUT - 用于支持RESUMABLE空间分配而新增。 </FONT><br /><br /><FONT size=2>4、TTS_FULL_CHECK - 用于在传输表空间时使用依赖性检查。 </FONT><br /><br /><FONT size=2>5、TEMPLATE - 用于支持iAS。 </FONT><br /><br /><FONT size=2>6、TABLESPACES - 设置表空间导出模式。个人觉得对于一般用户而言，这个才是新增参数中最实用的一个，可以让用户在原来的FULL、OWNER、TABLES的基础上多了一种选择，使得EXP更加灵活。 </FONT><br /><br /><FONT size=2>四、不同版本的EXP/IMP问题？ </FONT><br /><br /><FONT size=2>一般来说，从低版本导入到高版本问题不大，麻烦的是将高版本的数据导入到低版本中，在Oracle9i之前，不同版本Oracle之间的EXP/IMP可以通过下面的方法来解决： </FONT><br /><br /><FONT size=2>1、在高版本数据库上运行底版本的catexp.sql； </FONT><br /><br /><FONT size=2>2、使用低版本的EXP来导出高版本的数据； </FONT><br /><br /><FONT size=2>3、使用低版本的IMP将数据库导入到底版本数据库中； </FONT><br /><br /><FONT size=2>4、在高版本数据库上重新运行高版本的catexp.sql脚本。 </FONT><br /><br /><FONT size=2>但在9i中，上面的方法并不能解决问题。如果直接使用底版本EXP/IMP会出现如下错误： </FONT><br /><br /><FONT size=2>EXP-00008: ORACLE error %lu encountered </FONT><br /><br /><FONT size=2>ORA-00904: invalid column name </FONT><br /><br /><FONT size=2>这已经是一个公布的BUG，需要等到Oracle10.0才能解决，BUG号为2261，你可以到METALINK上去查看有关此BUG的详细信息。 </FONT><br /><br /><FONT size=2>BUG归BUG，我们的工作还是要做，在没有Oracle的支持之前，我们就自己解决。在Oracle9i中执行下面的SQL重建exu81rls视图即可。 </FONT><br /><br /><FONT size=2>CREATE OR REPLACE view exu81rls  </FONT><br /><br /><FONT size=2>(objown,objnam,policy,polown,polsch,polfun,stmts,chkopt,enabled,spolicy)  </FONT><br /><br /><FONT size=2>AS select u.name, o.name, r.pname, r.pfschma, r.ppname, r.pfname,  </FONT><br /><br /><FONT size=2>decode(bitand(r.stmt_type,1), 0,'', 'SELECT,')  </FONT><br /><br /><FONT size=2>|| decode(bitand(r.stmt_type,2), 0,'', 'INSERT,')  </FONT><br /><br /><FONT size=2>|| decode(bitand(r.stmt_type,4), 0,'', 'UPDATE,')  </FONT><br /><br /><FONT size=2>|| decode(bitand(r.stmt_type,8), 0,'', 'DELETE,'),  </FONT><br /><br /><FONT size=2>r.check_opt, r.enable_flag,  </FONT><br /><br /><FONT size=2>DECODE(BITAND(r.stmt_type, 16), 0, 0, 1)  </FONT><br /><br /><FONT size=2>from user$ u, obj$ o, rls$ r  </FONT><br /><br /><FONT size=2>where u.user# = o.owner#  </FONT><br /><br /><FONT size=2>and r.obj# = o.obj#  </FONT><br /><br /><FONT size=2>and (uid = 0 or  </FONT><br /><br /><FONT size=2>uid = o.owner# or  </FONT><br /><br /><FONT size=2>exists ( select * from session_roles where role='SELECT_CATALOG_ROLE')  </FONT><br /><br /><FONT size=2>)  </FONT><br /><br /><FONT size=2>/  </FONT><br /><br /><FONT size=2>grant select on sys.exu81rls to public;  </FONT><br /><br /><FONT size=2>/  </FONT><br /><br /><FONT size=2>五、其他问题 </FONT><br /><br /><FONT size=2>本文只讨论了Oracle8i和9i中的EXP/IMP的一些情况，对于之前的版本，在8.0.X中，除了QUERY参数不能用外，其它差别不大。针对没有QUERY的情况，我们可以先在数据库中使用查询条件建立临时中间表，然后使用EXP导出这个中间表即可。至于Oracle7因为目前使用的人较少，gototop不打算在此做详细解释了，如果读者朋友有需求，你可以参考Metalink文档：“Overview of Export and Import in Oracle7”（文档号：61949.1）。关于EXP/IMP的详细参数信息你可以通过EXP/IMP HELP=Y来获得。 </FONT><br /><br /><FONT size=2>另外关于传输表空间的更多信息可以参考下面的Metelink文档，本文不再详述。 </FONT><br /><br /><FONT size=2>[NOTE:77523.1] Transportable Tablespaces -- An Example to setup and use.  </FONT><br /><br /><FONT size=2>[NOTE:100698.1] Perform tablespace point-in-time recovery using Transportable Tablespace.  </FONT><br /><br /><FONT size=2>在进行并行EXP/IMP的时候，如果IMP过程建索引的话不建议同时运行5个以上的IMP，如果你想加快速度</FONT><br /><br /></pre></PRE>				<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/using-sql-trace-and-tkprof/" title="Using SQL TRACE and TKPROF">Using SQL TRACE and TKPROF</a> 2009-02-26 21:36:37</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-exp-imp-command-explain/</wfw:commentRss>
	</item>
		<item>
		<title>index_stats</title>
		<link>http://www.kods.netwww.kods.net/index-stats/</link>
		<comments>http://www.kods.netwww.kods.net/index-stats/#comments</comments>
		<pubDate>Wed, 22 Apr 2009 15:39:59+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[oracle]]></category>
<category><![CDATA[index data]]></category>
<category><![CDATA[indexes]]></category>
<category><![CDATA[segment]]></category>
<category><![CDATA[b tree]]></category>
<category><![CDATA[tree index]]></category>
<category><![CDATA[leaf blocks]]></category>
<category><![CDATA[index hr]]></category>
<category><![CDATA[structure index]]></category>
<category><![CDATA[leaf nodes]]></category>
<category><![CDATA[digit number]]></category>
<category><![CDATA[blk]]></category>
<category><![CDATA[lf]]></category>
<category><![CDATA[deletions]]></category>
<category><![CDATA[tendency]]></category>
		<guid isPermaLink="true">http://www.kods.netwww.kods.net/index-stats/</guid>
		<description><![CDATA[I often get asked when the index need to rebuild, read a article today, recording a bit. The INDEX_STATS view is useful for seeing how efficiently an index is using its space. Large indexes have a ten ...]]></description>
		<content:encoded><![CDATA[I often get asked when the index need to rebuild, read a article today, recording a bit. <br /><br /> The INDEX_STATS view is useful for seeing how efficiently an index is using its space. Large indexes <br /> have a tendency to become unbalanced over time if many deletions are in the table (and therefore <br /> index) data. Your goal is to keep an eye on those large indexes with a view to keeping them balanced. <br /> Note that the INDEX_STATS view is populated only if the table has been analyzed by using the <br /> ANALYZE command, as follows: <br /> SQL&gt; ANALYZE index hr.emp_name_ix VALIDATE STRUCTURE; <br /> Index analyzed. <br /> The query in Listing 7-26 using the INDEX_STATS view helps determine whether you need to <br /> rebuild the index. In the query, you should focus on the following columns in the INDEX_STATS view <br /><br /> to determine if your index is a candidate for a rebuild: <br /> • HEIGHT: This column refers to the height of the B-tree index, and it&#39;s usually at the 1, 2, or 3 <br /> level. If large inserts push the index height beyond a level of 4, it&#39;s time to rebuild, which flattens <br /> the B-tree. <br /> • DEL_LF_ROWS: This is the number of leaf nodes deleted due to the deletion of rows. Oracle <br /> doesn&#39;t rebuild indexes automatically and, consequently, too many deleted leaf rows can lead <br /> to an unbalanced B-tree. <br /> • BLK_GETS_PER_ACCESS: You can look at the BLK_GETS_PER_ACCESS column to see how <br /> much logical I / O it takes to retrieve data from the index. If this row shows a double-digit <br /> number, you should probably start rebuilding the index. <br /><br /> Using the INDEX_STATS View to Determine Whether to Rebuild an Index <br /> SQL&gt; SELECT height, / * Height of the B-Tree * / <br /> 2 blocks, / * Blocks in the index segment * / <br /> 3 name, / * index name * / <br /> 4 lf_rows, / * number of leaf rows in the index * / <br /> 5 lf_blks, / * number of leaf blocks in the index * / <br /> 6 del_lf_rows, / * number of deleted leaf rows <br /> in the index * / <br /> 7 rows_per_key / * average number of rows <br /> per distinct key * / <br /> 8 blk_gets_per_access / * consistent mode block reads (gets) * / <br /> 8 FROM INDEX_STATS <br /> 9 * WHERE name = &#39;EMP_NAME_IX&#39;; <br /> HEIGHT BLOCK LF_ROWS LF_BLKS DEL_LF_ROWS ROWS_PER_KEY BLK_GETS <br /> ------ ----------- ------- -------- ----------- ------- ----- --------- <br /> 16 EMP_NAME_IX 107 1 0 1				<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/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/index-stats/</wfw:commentRss>
	</item>
		<item>
		<title>Summary of the partition table</title>
		<link>http://www.kods.netwww.kods.net/summary-of-the-partition-table/</link>
		<comments>http://www.kods.netwww.kods.net/summary-of-the-partition-table/#comments</comments>
		<pubDate>Tue, 21 Apr 2009 18:21:19+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[sql statement]]></category>
<category><![CDATA[database objects]]></category>
<category><![CDATA[table index]]></category>
<category><![CDATA[failure]]></category>
<category><![CDATA[inquiries]]></category>
<category><![CDATA[system performance]]></category>
<category><![CDATA[query performance]]></category>
<category><![CDATA[partition table]]></category>
<category><![CDATA[disk partition]]></category>
<category><![CDATA[retrieval speed]]></category>
<category><![CDATA[query object]]></category>
<category><![CDATA[hash]]></category>
<category><![CDATA[partition function]]></category>
<category><![CDATA[geographical features]]></category>
<category><![CDATA[operational requirements]]></category>
<category><![CDATA[paragraphs]]></category>
<category><![CDATA[executive summary]]></category>
		<guid isPermaLink="true">http://www.kods.netwww.kods.net/summary-of-the-partition-table/</guid>
		<description><![CDATA[Partition table Learning through this section, you can learn the following questions 1, to understand the concept of partition table 2, clearly the use of the partition table 3, to understand the clas ...]]></description>
		<content:encoded><![CDATA[<font size=3>Partition table</font> <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p><br /><br /> <font size=3>Learning through this section, you can learn the following questions</font> <o:p></o:p><br /><br /> <font face=Arial size=3>1,</font> <font size=3>to understand the concept of partition table</font> <o:p></o:p><br /><br /> <font face=Arial size=3>2,</font> <font size=3>clearly the use of the partition table</font> <o:p></o:p><br /><br /> <font face=Arial size=3>3,</font> <font size=3>to understand the classification of the partition table</font> <o:p></o:p><br /><br /> <font face=Arial size=3>4,</font> <font size=3>to understand the operation of the partition table</font> <o:p></o:p><br /><br /><o:p><font face=Arial size=3> </font></o:p><br /><br /> <font size=3>We use an ordinary table in the process will be particularly large amount of data the table, when a data table for more than 20 million have been or occupier</font> <?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" /><st1:chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="2" unitname="g"> <font size=3>2G</font> </st1:chmetcnv> <font size=3>Space,</font> it is <font size=3>recommended to establish the partition table</font> <o:p></o:p><br /><br /><o:p><font face=Arial size=3> </font></o:p><br /><br /> <font size=3>The classification of the partition table:</font> <o:p></o:p><br /><br /> <font size=3><font face=Arial>Range (range)</font> Zoning</font> <o:p></o:p><br /><br /> <font size=3><font face=Arial>Hash (hash)</font> partitions</font> <o:p></o:p><br /><br /> <font size=3><font face=Arial>List (list)</font> Zoning</font> <o:p></o:p><br /><br /> <font size=3>As well as the combination of district: <font face=Arial>Range-Hash, Range-List</font></font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Division of advantages:</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Enhanced availability: If a partition table failure, table of data in other divisions are still available;</font> <o:p></o:p><br /><br /> <font size=3>Easy maintenance: If a partition table failure, the need to repair the data, only to repair the partition;</font> <o:p></o:p><br /><br /> <font size=3>Balanced I / O: can be mapped to a different disk partition to balance the I / O, improve the overall system performance;</font> <o:p></o:p><br /><br /> <font size=3>Improve the query performance:</font> The <font size=3>partition of the query object can be of concern to only search their own district</font> to <font size=3>improve the retrieval speed.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Executive Summary</font> <o:p></o:p><br /><br /> <font size=3>Partition function of many applications can improve the manageability, performance and availability. Through the partition function can be table, index and index-organized table is further broken down into paragraphs, which can more accurately manage and access these database objects. Orac # provides a wide variety of district programs to meet the operational requirements of each. Moreover, because the sql statement in the district is completely transparent, so the function can be applied to almost any application.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>The advantages of geographical features</font> <o:p></o:p><br /><br /> <font size=3>Partition function by improving the manageability, performance and availability of applications so as to bring all kinds of great benefits. Typically,</font> the <font size=3>district can make some inquiries as well as the performance of maintenance operations greatly enhanced. In addition,</font> the <font size=3>district can also greatly simplify common administrative tasks. Through the District, database designers and administrators to address the cutting-edge applications brought about by a number of challenges. District is building a gigabyte of data systems or ultra-high availability systems a key tool.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Basic knowledge of geographical features</font> <o:p></o:p><br /><br /> <font size=3>Partition function can be table, index or index-organized table is further broken down into paragraphs. These database objects called the partition of the paragraph. Each district has its own name,</font> you <font size=3>can choose its own storage characteristics.</font> <o:p></o:p><br /><br /> <font size=3>From the database administrator&#39;s point of view, after a sub-object with multiple paragraphs, the paragraphs of collective management can also be managed separately. This allows database administrators in the management of the object after the district there is considerable flexibility. However, from the application point of view, after the partition table partition table with non-identical, so that # S # D # command to visit the table after partition, without any changes to the partition table is through the &quot;partition key &quot;to be achieved, area refers to the number of keys out, which included the decision of the district where a line. Orac # data # 1 # 6 technologies provided for the partition table:</font> <o:p></o:p><br /><br /> <font size=3># The scope of Division</font> <o:p></o:p><br /><br /> <font size=3>Each district by the scope of a sub-key value specified (for a date as a partition key column of the Table, &quot;January 2005&quot; zoning district that contains keys for the &quot;</font> <st1:chsdate w:st="on" isrocdate="False" islunardate="False" day="1" month="1" year="2005"> <font size=3>1</font> January, <font size=3>2005</font> </st1:chsdate> <font size=3>&quot;To&quot;</font> <st1:chsdate w:st="on" isrocdate="False" islunardate="False" day="31" month="1" year="2005"> <font size=3>January</font> 31, <font size=3>2005</font> </st1:chsdate> <font size=3>&quot;Line).</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>That the scope of zoning cases:</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Assuming that there is an enterprise sales data,</font> and <font size=3>can be used for a range partition table</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Four tables to create space for use by the partition table should be placed on a different partition on the physical device, better performance can be my test environment is a physical device with</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; create tablespace</font> ts_xiaos2009q1 <font size=3>datafile</font> <o:p></o:p><br /><br /> <font size=3>&#39;/ oradata/dbnms/ts_xiaos2009q1.dbf&#39; size</font> <st1:chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="50" unitname="m"> <font size=3>50M</font> </st1:chmetcnv> <font size=3>;</font> <o:p></o:p><br /><br /> <font size=3>Tablespace created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; create tablespace</font> ts_xiaos2009q2 <o:p></o:p><br /><br /> <font size=3>datafile &#39;/ oradata/dbnms/ts_xiaos2009q2.dbf&#39; size</font> <st1:chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="50" unitname="m"> <font size=3>50M</font> </st1:chmetcnv> <font size=3>;</font> <o:p></o:p><br /><br /> <font size=3>Tablespace created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; create tablespace</font> ts_xiaos2009q3 <font size=3>datafile</font> <o:p></o:p><br /><br /> <font size=3>&#39;/ oradata/dbnms/ts_xiaos2009q3.dbf&#39; size</font> <st1:chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="50" unitname="m"> <font size=3>50M</font> </st1:chmetcnv> <font size=3>;</font> <o:p></o:p><br /><br /> <font size=3>Tablespace created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; create tablespace</font> ts_xiaos2009q4 <font size=3>datafile</font> <o:p></o:p><br /><br /> <font size=3>&#39;/ oradata/dbnms/ts_xiaos2009q4.dbf&#39; size</font> <st1:chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="50" unitname="m"> <font size=3>50M</font> </st1:chmetcnv> <font size=3>;</font> <o:p></o:p><br /><br /> <font size=3>Tablespace created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Create table</font> <o:p></o:p><br /><br /> <font size=3>SQL&gt; CREATE TABLE</font> dyx_part_test1 <o:p></o:p><br /><br /> <font size=3>2 (id NUMBER,</font> <o:p></o:p><br /><br /> <font size=3>3 name varchar2 (20),</font> <o:p></o:p><br /><br /> <font size=3>4 shuliang number,</font> <o:p></o:p><br /><br /> <font size=3>5 danjia number,</font> <o:p></o:p><br /><br /> <font size=3>6</font> xiaos_date <font size=3>DATE NOT NULL)</font> <o:p></o:p><br /><br /> <font size=3>7 PARTITION BY RANGE (xiaos_date)</font> <o:p></o:p><br /><br /> <font size=3>8 (PARTITION</font> xiaoss2009_q1 <o:p></o:p><br /><br /> <font size=3>9 VALUES LESS THAN (TO_DATE ( &#39;</font> <st1:chsdate w:st="on" isrocdate="False" islunardate="False" day="1" month="4" year="2009"> <font size=3>2009-04-01</font> </st1:chsdate> <font size=3>&#39;,&#39; YYYY-MM-DD &#39;))</font> <o:p></o:p><br /><br /> <font size=3>10 TABLESPACE ts_xiaos2009q1,</font> <o:p></o:p><br /><br /> <font size=3>11 PARTITION</font> xiaoss2009_q2 <o:p></o:p><br /><br /> <font size=3>12 VALUES LESS THAN (TO_DATE ( &#39;</font> <st1:chsdate w:st="on" isrocdate="False" islunardate="False" day="1" month="7" year="2009"> <font size=3>2009-07-01</font> </st1:chsdate> <font size=3>&#39;,&#39; YYYY-MM-DD &#39;))</font> <o:p></o:p><br /><br /> <font size=3>13 TABLESPACE ts_xiaos2009q2,</font> <o:p></o:p><br /><br /> <font size=3>14 PARTITION</font> xiaoss2009_q3 <o:p></o:p><br /><br /> <font size=3>15 VALUES LESS THAN (TO_DATE ( &#39;</font> <st1:chsdate w:st="on" isrocdate="False" islunardate="False" day="1" month="10" year="2009"> <font size=3>2009-10-01</font> </st1:chsdate> <font size=3>&#39;,&#39; YYYY-MM-DD &#39;))</font> <o:p></o:p><br /><br /> <font size=3>16 TABLESPACE ts_xiaos2009q3,</font> <o:p></o:p><br /><br /> <font size=3>17 PARTITION</font> xiaoss2009_q4 <o:p></o:p><br /><br /> <font size=3>18 VALUES LESS THAN (TO_DATE ( &#39;</font> <st1:chsdate w:st="on" isrocdate="False" islunardate="False" day="1" month="1" year="2010"> <font size=3>2010-01-01</font> </st1:chsdate> <font size=3>&#39;,&#39; YYYY-MM-DD &#39;))</font> <o:p></o:p><br /><br /> <font size=3>19 TABLESPACE ts_xiaos2009q4);</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Table created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Insert data</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; insert into</font> dyx_part_test1 <font size=3>values</font> <o:p></o:p><br /><br /> <font size=3>(1, &#39;Coca-Cola&#39;, 100,3.5, to_date ( &#39;</font> <st1:chsdate w:st="on" isrocdate="False" islunardate="False" day="5" month="3" year="2009"> <font size=3>2009-03-05</font> </st1:chsdate> <font size=3>&#39;,&#39; yyyy-mm-dd &#39;));</font> <o:p></o:p><br /><br /> <font size=3>1 row created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; insert into</font> dyx_part_test1 <font size=3>values</font> <o:p></o:p><br /><br /> <font size=3>(2, &#39;Kentucky&#39;, 100,10.5, to_date ( &#39;</font> <st1:chsdate w:st="on" isrocdate="False" islunardate="False" day="5" month="6" year="2009"> <font size=3>2009-06-05</font> </st1:chsdate> <font size=3>&#39;,&#39; yyyy-mm-dd &#39;));</font> <o:p></o:p><br /><br /> <font size=3>1 row created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt;</font> <o:p></o:p><br /><br /> <font size=3>SQL&gt; insert into</font> dyx_part_test1 <font size=3>values</font> <o:p></o:p><br /><br /> <font size=3>(3, &#39;Zhenglin</font> <st1:chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="3" unitname="a"> <font size=3>3A</font> </st1:chmetcnv><st1:chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="500" unitname="g"> <font size=3>500g</font> </st1:chmetcnv> <font size=3>&#39;, 100,15, to_date (&#39;</font> <st1:chsdate w:st="on" isrocdate="False" islunardate="False" day="5" month="9" year="2009"> <font size=3>2009-09-05</font> </st1:chsdate> <font size=3>&#39;,&#39; yyyy-mm-dd &#39;));</font> <o:p></o:p><br /><br /> <font size=3>1 row created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt;</font> <o:p></o:p><br /><br /> <font size=3>SQL&gt; insert into</font> dyx_part_test1 <font size=3>values</font> <o:p></o:p><br /><br /> <font size=3>(4, &#39;Ice Tea&#39;, 100,3, to_date ( &#39;</font> <st1:chsdate w:st="on" isrocdate="False" islunardate="False" day="5" month="11" year="2009"> <font size=3>2009-11-05</font> </st1:chsdate> <font size=3>&#39;,&#39; yyyy-mm-dd &#39;));</font> <o:p></o:p><br /><br /> <font size=3>1 row created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt;</font> <o:p></o:p><br /><br /> <font size=3>SQL&gt; insert into</font> dyx_part_test1 <font size=3>values</font> <o:p></o:p><br /><br /> <font size=3>(5, &#39;orange&#39;, 100,3.5, to_date ( &#39;</font> <st1:chsdate w:st="on" isrocdate="False" islunardate="False" day="5" month="4" year="2010"> <font size=3>2010-04-05</font> </st1:chsdate> <font size=3>&#39;,&#39; yyyy-mm-dd &#39;));</font> <o:p></o:p><br /><br /> <font size=3>insert into</font> dyx_part_test1 <font size=3>values</font> <o:p></o:p><br /><br /> <font size=3>(5, &#39;orange&#39;, 100,3.5, to_date ( &#39;</font> <st1:chsdate w:st="on" isrocdate="False" islunardate="False" day="5" month="4" year="2010"> <font size=3>2010-04-05</font> </st1:chsdate> <font size=3>&#39;,&#39; yyyy-mm-dd &#39;))</font> <o:p></o:p><br /><br /> <font size=3>*</font> <o:p></o:p><br /><br /> <font size=3>ERROR at line 1:</font> <o:p></o:p><br /><br /> <font size=3>ORA-14400: inserted partition key does not map to any partition</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Note: If you can not address district-wide data is not inserted, will report ORA-14400 error</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Show:</font> <o:p></o:p><br /><br /> <font size=3>SQL&gt; select * from</font> DYX_PART_Test1 <font size=3>partition (XIAOSS2009_Q3);</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>ID NAME SHULIANG DANJIA</font> XIAOS_DATE <o:p></o:p><br /><br /> <font size=3>---------- -------------------- ---------- ---------- ------------</font> <o:p></o:p><br /><br /> <font size=3>3 Zhenglin</font> <st1:chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="3" unitname="a"> <font size=3>3A</font> </st1:chmetcnv><st1:chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="500" unitname="g"> <font size=3>500g</font> </st1:chmetcnv> <font size=3>100 15 05-SEP-09</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3># A list of district</font> <o:p></o:p><br /><br /> <font size=3>Each district by a district designated key list (for an area out of the table as a partition key, &quot;North America&quot; partition may contain values of &quot;Canada&quot; &quot;United States&quot; and &quot;Mexico&quot;).</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Examples are as follows:</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; create table</font> dyx_part_test2 <font size=3>(</font> <o:p></o:p><br /><br /> <font size=3>2 id number (4),</font> <o:p></o:p><br /><br /> <font size=3>3 name varchar2 (30),</font> <o:p></o:p><br /><br /> <font size=3>4 loca varchar2 (30))</font> <o:p></o:p><br /><br /> <font size=3>5 partition by list (loca)</font> <o:p></o:p><br /><br /> <font size=3>6 (partition p1 values ( &#39;Beijing&#39;) tablespace ts_xiaos2009q1,</font> <o:p></o:p><br /><br /> <font size=3>7 partition p2 values ( &#39;Shanghai&#39;, &#39;Tianjin&#39;, &#39;Chongqing&#39;) tablespace ts_xiaos2009q2,</font> <o:p></o:p><br /><br /> <font size=3>8 partition p3 values ( &#39;Guangdong&#39;, &#39;Fujian&#39;) tablespace ts_xiaos2009q3,</font> <o:p></o:p><br /><br /> <font size=3>9 partition p0 values (default) tablespace users</font> <o:p></o:p><br /><br /> <font size=3>10);</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Table created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; insert into</font> dyx_part_test2 <font size=3>values (1, &#39;DAI new&#39;, &#39;Gansu&#39;);</font> <o:p></o:p><br /><br /> <font size=3>1 row created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; insert into</font> dyx_part_test2 <font size=3>values (2, &#39;Cloud neutron&#39;, &#39;Beijing&#39;);</font> <o:p></o:p><br /><br /> <font size=3>1 row created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; insert into</font> dyx_part_test2 <font size=3>values (3, &#39;Guangcheng son&#39;, &#39;Tianjin&#39;);</font> <o:p></o:p><br /><br /> <font size=3>1 row created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; insert into</font> dyx_part_test2 <font size=3>values (4, &#39;南极仙翁&#39;, &#39;Hebei&#39;);</font> <o:p></o:p><br /><br /> <font size=3>1 row created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; insert into</font> dyx_part_test2 <font size=3>values (5, &#39;too has been a real person&#39;, &#39;Shanghai&#39;);</font> <o:p></o:p><br /><br /> <font size=3>1 row created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; insert into</font> dyx_part_test2 <font size=3>values (6, &#39;fear Mr Sun&#39;, &#39;Canton&#39;);</font> <o:p></o:p><br /><br /> <font size=3>1 row created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; insert into</font> dyx_part_test2 <font size=3>values (7, &#39;元始s&#39;,&#39; Chongqing &#39;);</font> <o:p></o:p><br /><br /> <font size=3>1 row created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; insert into</font> dyx_part_test2 <font size=3>values (8, &#39;God of War South-class&#39;,&#39; Beijing &#39;);</font> <o:p></o:p><br /><br /> <font size=3>1 row created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; insert into</font> dyx_part_test2 <font size=3>values (9, &#39;the five God of War&#39;, &#39;Fujian&#39;);</font> <o:p></o:p><br /><br /> <font size=3>1 row created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; select * from dyx_part_test2;</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>ID NAME LOCA</font> <o:p></o:p><br /><br /> <font size=3>---------- ------------------------------ ---------- --------------------</font> <o:p></o:p><br /><br /> <font size=3>Beijing 2 the neutron cloud</font> <o:p></o:p><br /><br /> <font size=3>8 God of War South-class Beijing</font> <o:p></o:p><br /><br /> <font size=3>3 sub-Tianjin Guangcheng</font> <o:p></o:p><br /><br /> <font size=3>5 live in Shanghai have been too</font> <o:p></o:p><br /><br /> <font size=3>7元始s Chongqing</font> <o:p></o:p><br /><br /> <font size=3>6 Liu孙广东fear</font> <o:p></o:p><br /><br /> <font size=3>9 God of War five Fujian</font> <o:p></o:p><br /><br /> <font size=3>1 DAI new Gansu</font> <o:p></o:p><br /><br /> <font size=3>4南极仙翁Hebei</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>9 rows selected.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; select * from</font> DYX_PART_Test2 <font size=3>partition (p2);</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>ID NAME LOCA</font> <o:p></o:p><br /><br /> <font size=3>---------- ------------------------------ ---------- --------------------</font> <o:p></o:p><br /><br /> <font size=3>3 sub-Tianjin Guangcheng</font> <o:p></o:p><br /><br /> <font size=3>5 live in Shanghai have been too</font> <o:p></o:p><br /><br /> <font size=3>7元始s Chongqing</font> <o:p></o:p><br /><br /><o:p></o:p><br /><br /> <font size=3>SQL&gt; select * from</font> DYX_PART_Test2 <font size=3>partition (p0);</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>ID NAME LOCA</font> <o:p></o:p><br /><br /> <font size=3>---------- ------------------------------ ---------- --------------------</font> <o:p></o:p><br /><br /> <font size=3>1 DAI new Gansu</font> <o:p></o:p><br /><br /> <font size=3>4南极仙翁Hebei</font> <o:p></o:p><br /><br /> <font size=3>3 sub-Tianjin Guangcheng</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3># Hash partition</font> <o:p></o:p><br /><br /> <font size=3>Hash algorithm will be used to partition the specified key to determine where the district line, by specifying the partition number for a uniform geographical distribution of data types, as in I / O device hash partition,</font> <o:p></o:p><br /><br /> <font size=3>The same size so that these zoning.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Example:</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>create table</font> dyx_part_test3 <o:p></o:p><br /><br /> <font size=3>(id number primary key,</font> <o:p></o:p><br /><br /> <font size=3>class_id number (8) not null,</font> <o:p></o:p><br /><br /> <font size=3>name varchar2 (300),</font> <o:p></o:p><br /><br /> <font size=3>finished_date date</font> <o:p></o:p><br /><br /> <font size=3>)</font> <o:p></o:p><br /><br /> <font size=3>partition by hash (id)</font> <o:p></o:p><br /><br /> <font size=3>(</font> <o:p></o:p><br /><br /> <font size=3>partition p01 tablespace ts_xiaos2009q1,</font> <o:p></o:p><br /><br /> <font size=3>partition p02 tablespace ts_xiaos2009q2,</font> <o:p></o:p><br /><br /> <font size=3>partition p03 tablespace</font> ts_xiaos2009q3 <o:p></o:p><br /><br /> <font size=3>);</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>insert into</font> dyx_part_test3 <font size=3>values</font> <o:p></o:p><br /><br /> <font size=3>(3,12, &#39;quality of the skin&#39;, to_date ( &#39;</font> <st1:chsdate w:st="on" isrocdate="False" islunardate="False" day="30" month="5" year="2009"> <font size=3>2009-05-30</font> </st1:chsdate> <font size=3>&#39;,&#39; yyyy-mm-dd &#39;));</font> <o:p></o:p><br /><br /> <font size=3>insert into</font> dyx_part_test3 <font size=3>values</font> <o:p></o:p><br /><br /> <font size=3>(1,13, &#39;tiger&#39;, to_date ( &#39;</font> <st1:chsdate w:st="on" isrocdate="False" islunardate="False" day="30" month="5" year="2009"> <font size=3>2009-05-30</font> </st1:chsdate> <font size=3>&#39;,&#39; yyyy-mm-dd &#39;));</font> <o:p></o:p><br /><br /> <font size=3>insert into</font> dyx_part_test3 <font size=3>values</font> <o:p></o:p><br /><br /> <font size=3>(200,15, &#39;the middle of the tiger&#39;, to_date ( &#39;</font> <st1:chsdate w:st="on" isrocdate="False" islunardate="False" day="30" month="5" year="2009"> <font size=3>2009-05-30</font> </st1:chsdate> <font size=3>&#39;,&#39; yyyy-mm-dd &#39;));</font> <o:p></o:p><br /><br /> <font size=3>insert into</font> dyx_part_test3 <font size=3>values</font> <o:p></o:p><br /><br /> <font size=3>(230,19, &#39;tiger cat&#39;, to_date ( &#39;</font> <st1:chsdate w:st="on" isrocdate="False" islunardate="False" day="30" month="5" year="2009"> <font size=3>2009-05-30</font> </st1:chsdate> <font size=3>&#39;,&#39; yyyy-mm-dd &#39;));</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; select * from dyx_part_test3;</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>ID</font> CLASS_ID <font size=3>NAME</font> FINISHED_DAT <o:p></o:p><br /><br /> <font size=3>---------- ---------- -------------------- ---------- --</font> <o:p></o:p><br /><br /> <font size=3>Skin of</font> 20,015 <font size=3>middle 30-MAY-09</font> <o:p></o:p><br /><br /> <font size=3>3 12 upper skin of 30-MAY-09</font> <o:p></o:p><br /><br /> <font size=3>1 13 tiger 30-MAY-09</font> <o:p></o:p><br /><br /> 23,019 <font size=3>cat skins 30-MAY-09</font> <o:p></o:p><br /><br /><o:p></o:p><br /><br /><o:p></o:p><br /><br /> <font size=3>SQL&gt; select * from dyx_part_test3;</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>ID</font> CLASS_ID <font size=3>NAME</font> FINISHED_DAT <o:p></o:p><br /><br /> <font size=3>---------- ---------- -------------------- ---------- --</font> <o:p></o:p><br /><br /> <font size=3>Skin of</font> 20,015 <font size=3>middle 30-MAY-09</font> <o:p></o:p><br /><br /> <font size=3>3 12 upper skin of 30-MAY-09</font> <o:p></o:p><br /><br /> <font size=3>1 13 tiger 30-MAY-09</font> <o:p></o:p><br /><br /> 23,019 <font size=3>cat skins 30-MAY-09</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; select * from</font> DYX_PART_Test3 <font size=3>partition (p02);</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>ID</font> CLASS_ID <font size=3>NAME</font> FINISHED_DAT <o:p></o:p><br /><br /> <font size=3>---------- ---------- -------------------- ---------- --</font> <o:p></o:p><br /><br /> <font size=3>3 12 upper skin of 30-MAY-09</font> <o:p></o:p><br /><br /> <font size=3>1 13 tiger 30-MAY-09</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; select * from</font> DYX_PART_Test3 <font size=3>partition (p01);</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>ID</font> CLASS_ID <font size=3>NAME</font> FINISHED_DAT <o:p></o:p><br /><br /> <font size=3>---------- ---------- -------------------- ---------- --</font> <o:p></o:p><br /><br /> <font size=3>Skin of</font> 20,015 <font size=3>middle 30-MAY-09</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; select * from</font> DYX_PART_Test3 <font size=3>partition (p03);</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>ID</font> CLASS_ID <font size=3>NAME</font> FINISHED_DAT <o:p></o:p><br /><br /> <font size=3>---------- ---------- -------------------- ---------- --</font> <o:p></o:p><br /><br /> 23,019 <font size=3>cat skins 30-MAY-09</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3># Portfolio Zoning</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>1, the scope of hash (hash) partitions</font> <o:p></o:p><br /><br /> <font size=3>Range and hash partition technology portfolio through the combination of the scope of the first partition on the table, and then the scope for each individual district to use technology to further breakdown of the hash partition.</font> <o:p></o:p><br /><br /> <font size=3>Index range of organizations can only partition table.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Example:</font> <o:p></o:p><br /><br /> <font size=3>SQL&gt; create table</font> dyx_part_test4 <font size=3>(</font> <o:p></o:p><br /><br /> <font size=3>2 id number,</font> <o:p></o:p><br /><br /> <font size=3>3 name varchar2 (30),</font> <o:p></o:p><br /><br /> <font size=3>4</font> finished_date <font size=3>date)</font> <o:p></o:p><br /><br /> <font size=3>5 partition by range (finished_date)</font> <o:p></o:p><br /><br /> <font size=3>6 subpartition by hash (id)</font> <o:p></o:p><br /><br /> <font size=3>7 subpartitions 2</font> <o:p></o:p><br /><br /> <font size=3>8 (partition p1 values less than (to_date (&#39;20090501 &#39;,&#39; YYYYMMDD &#39;)) tablespace ts_xiaos2009q1,</font> <o:p></o:p><br /><br /> <font size=3>9 partition p2 values less than (to_date (&#39;20091001 &#39;,&#39; YYYYMMDD &#39;)) tablespace ts_xiaos2009q2,</font> <o:p></o:p><br /><br /> <font size=3>10 partition e3 values less than (maxvalue) tablespace ts_xiaos2009q3);</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Table created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; insert into</font> dyx_part_test4 <font size=3>values</font> <o:p></o:p><br /><br /> <font size=3>(100, &#39;red black&#39;, to_date (&#39;20090603 &#39;,&#39; yyyymmdd &#39;));</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>1 row created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; insert into</font> dyx_part_test4 <font size=3>values</font> <o:p></o:p><br /><br /> <font size=3>(101, &#39;the partition table test&#39;, to_date (&#39;20090403 &#39;,&#39; yyyymmdd &#39;));</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>1 row created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; insert into</font> dyx_part_test4 <font size=3>values</font> <o:p></o:p><br /><br /> <font size=3>(105, &#39;the partition table planning&#39;, to_date (&#39;20090703 &#39;,&#39; yyyymmdd &#39;));</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>1 row created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; insert into</font> dyx_part_test4 <font size=3>values</font> <o:p></o:p><br /><br /> <font size=3>(1044, &#39;stream implementation&#39;, to_date (&#39;20091103 &#39;,&#39; yyyymmdd &#39;));</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>1 row created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; insert into</font> dyx_part_test4 <font size=3>values</font> <o:p></o:p><br /><br /> <font size=3>(1400, &#39;oracle design&#39;, to_date (&#39;20090603 &#39;,&#39; yyyymmdd &#39;));</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>1 row created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; insert into</font> dyx_part_test4 <font size=3>values</font> <o:p></o:p><br /><br /> <font size=3>(1070, &#39;database planning&#39;, to_date (&#39;20090303 &#39;,&#39; yyyymmdd &#39;));</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>1 row created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt;</font> <o:p></o:p><br /><br /> <font size=3>SQL&gt; commit;</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Commit complete.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; select * from dyx_part_test4;</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>ID NAME</font> FINISHED_DAT <o:p></o:p><br /><br /> <font size=3>---------- -------------------- ------------</font> <o:p></o:p><br /><br /> <font size=3>101 partition table testing 03-APR-09</font> <o:p></o:p><br /><br /> <font size=3>1070 database planning 03-MAR-09</font> <o:p></o:p><br /><br /> <font size=3>100 black red 03-JUN-09</font> <o:p></o:p><br /><br /> <font size=3>105 partition table planning 03-JUL-09</font> <o:p></o:p><br /><br /> <font size=3>1400 oracle design 03-JUN-09</font> <o:p></o:p><br /><br /> <font size=3>1044 stream implementation of 03-NOV-09</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>6 rows selected.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; select * from</font> DYX_PART_Test4 <font size=3>partition (p2);</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>ID NAME</font> FINISHED_DAT <o:p></o:p><br /><br /> <font size=3>---------- -------------------- ------------</font> <o:p></o:p><br /><br /> <font size=3>100 black red 03-JUN-09</font> <o:p></o:p><br /><br /> <font size=3>105 partition table planning 03-JUL-09</font> <o:p></o:p><br /><br /> <font size=3>1400 oracle design 03-JUN-09</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; select * from</font> DYX_PART_Test4 <font size=3>partition (p1);</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>ID NAME</font> FINISHED_DAT <o:p></o:p><br /><br /> <font size=3>---------- -------------------- ------------</font> <o:p></o:p><br /><br /> <font size=3>101 partition table testing 03-APR-09</font> <o:p></o:p><br /><br /> <font size=3>1070 database planning 03-MAR-09</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; select * from</font> DYX_PART_Test4 <font size=3>partition (e3);</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>ID NAME</font> FINISHED_DAT <o:p></o:p><br /><br /> <font size=3>---------- -------------------- ------------</font> <o:p></o:p><br /><br /> <font size=3>1044 stream implementation of 03-NOV-09</font> <o:p></o:p><br /><br /><o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>2, the scope of the list of district</font> <o:p></o:p><br /><br /> <font size=3>List of geographical scope and the combination of technology, through the combination of the scope of the first partition on the table, and then the scope for each individual zoning district to use technology to further breakdown of the list.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Example:</font> <o:p></o:p><br /><br /> <font size=3>CREATE TABLE</font> dyx_part_test5 <font size=3>(</font> <o:p></o:p><br /><br /> <font size=3>id NUMBER (6),</font> <o:p></o:p><br /><br /> <font size=3>name VARCHAR2 (20),</font> <o:p></o:p><br /><br /> <font size=3>quyu VARCHAR2 (30),</font> <o:p></o:p><br /><br /> <font size=3>cretetime NUMBER (9,2))</font> <o:p></o:p><br /><br /> <font size=3>PARTITION BY RANGE (cretetime)</font> <o:p></o:p><br /><br /> <font size=3>SUBPARTITION BY LIST (quyu)</font> <o:p></o:p><br /><br /> <font size=3>SUBPARTITION TEMPLATE</font> <o:p></o:p><br /><br /> <font size=3>(SUBPARTITION east VALUES ( &#39;</font> <st1:country-region w:st="on"> <font size=3>CHINA</font> </st1:country-region> <font size=3>&#39;,&#39;</font> <st1:country-region w:st="on"> <font size=3>JAPAN</font> </st1:country-region> <font size=3>&#39;,&#39;</font> <st1:country-region w:st="on"> <font size=3>INDIA</font> </st1:country-region> <font size=3>&#39;,&#39;</font> <st1:country-region w:st="on"><st1:place w:st="on"> <font size=3>THAILAND</font> </st1:place></st1:country-region> <font size=3>&#39;),</font> <o:p></o:p><br /><br /> <font size=3>SUBPARTITION west VALUES ( &#39;</font> <st1:country-region w:st="on"> <font size=3>AMERICA</font> </st1:country-region> <font size=3>&#39;,&#39;</font> <st1:country-region w:st="on"> <font size=3>GERMANY</font> </st1:country-region> <font size=3>&#39;,&#39;</font> <st1:country-region w:st="on"> <font size=3>ITALY</font> </st1:country-region> <font size=3>&#39;,&#39;</font> <st1:country-region w:st="on"><st1:place w:st="on"> <font size=3>SWITZERLAND</font> </st1:place></st1:country-region> <font size=3>&#39;),</font> <o:p></o:p><br /><br /> <font size=3>SUBPARTITION other VALUES (DEFAULT))</font> <o:p></o:p><br /><br /> <font size=3>(PARTITION p1 VALUES LESS THAN (1000),</font> <o:p></o:p><br /><br /> <font size=3>PARTITION p2 VALUES LESS THAN (2500),</font> <o:p></o:p><br /><br /> <font size=3>PARTITION p3 VALUES LESS THAN (MAXVALUE));</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>insert into</font> dyx_part_test5 <font size=3>values (1, &#39;DAI new&#39;, &#39;china&#39;, 300);</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>insert into</font> dyx_part_test5 <font size=3>values (2, &#39;I am me&#39;, &#39;GERMANY&#39;, 2650);</font> <o:p></o:p><br /><br /> <font size=3>insert into</font> dyx_part_test5 <font size=3>values (75, &#39;oracle&#39;, &#39;</font> <st1:country-region w:st="on"><st1:place w:st="on"> <font size=3>JAPAN</font> </st1:place></st1:country-region> <font size=3>&#39;, 6952);</font> <o:p></o:p><br /><br /> <font size=3>insert into</font> dyx_part_test5 <font size=3>values (34, &#39;IBM&#39;, &#39;</font> <st1:country-region w:st="on"><st1:place w:st="on"> <font size=3>SWITZERLAND</font> </st1:place></st1:country-region> <font size=3>&#39;, 2100);</font> <o:p></o:p><br /><br /> <font size=3>insert into</font> dyx_part_test5 <font size=3>values (43, &#39;SUN&#39;, &#39;</font> <st1:country-region w:st="on"><st1:place w:st="on"> <font size=3>CHINA</font> </st1:place></st1:country-region> <font size=3>&#39;, 320);</font> <o:p></o:p><br /><br /> <font size=3>insert into</font> dyx_part_test5 <font size=3>values (876, &#39;DELL&#39;, &#39;</font> <st1:country-region w:st="on"><st1:place w:st="on"> <font size=3>AMERICA</font> </st1:place></st1:country-region> <font size=3>&#39;, 986);</font> <o:p></o:p><br /><br /> <font size=3>insert into</font> dyx_part_test5 <font size=3>values (866, &#39;SYSBASE&#39;, &#39;</font> <st1:country-region w:st="on"><st1:place w:st="on"> <font size=3>INDIA</font> </st1:place></st1:country-region> <font size=3>&#39;, 6352);</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; insert into</font> dyx_part_test4 <font size=3>values</font> <o:p></o:p><br /><br /> <font size=3>(100, &#39;red black&#39;, to_date (&#39;20090603 &#39;,&#39; yyyymmdd &#39;));</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>1 row created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; insert into</font> dyx_part_test4 <font size=3>values</font> <o:p></o:p><br /><br /> <font size=3>(101, &#39;the partition table test&#39;, to_date (&#39;20090403 &#39;,&#39; yyyymmdd &#39;));</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>1 row created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; insert into</font> dyx_part_test4 <font size=3>values</font> <o:p></o:p><br /><br /> <font size=3>(105, &#39;the partition table planning&#39;, to_date (&#39;20090703 &#39;,&#39; yyyymmdd &#39;));</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>1 row created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; insert into</font> dyx_part_test4 <font size=3>values</font> <o:p></o:p><br /><br /> <font size=3>(1044, &#39;stream implementation&#39;, to_date (&#39;20091103 &#39;,&#39; yyyymmdd &#39;));</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>1 row created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; insert into</font> dyx_part_test4 <font size=3>values</font> <o:p></o:p><br /><br /> <font size=3>(1400, &#39;oracle design&#39;, to_date (&#39;20090603 &#39;,&#39; yyyymmdd &#39;));</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>1 row created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; insert into</font> dyx_part_test4 <font size=3>values</font> <o:p></o:p><br /><br /> <font size=3>(1070, &#39;database planning&#39;, to_date (&#39;20090303 &#39;,&#39; yyyymmdd &#39;));</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>1 row created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt;</font> <o:p></o:p><br /><br /> <font size=3>SQL&gt; commit;</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Commit complete.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; select * from dyx_part_test4;</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>ID NAME</font> FINISHED_DAT <o:p></o:p><br /><br /> <font size=3>---------- -------------------- ------------</font> <o:p></o:p><br /><br /> <font size=3>101 partition table testing 03-APR-09</font> <o:p></o:p><br /><br /> <font size=3>1070 database planning 03-MAR-09</font> <o:p></o:p><br /><br /> <font size=3>100 black red 03-JUN-09</font> <o:p></o:p><br /><br /> <font size=3>105 partition table planning 03-JUL-09</font> <o:p></o:p><br /><br /> <font size=3>1400 oracle design 03-JUN-09</font> <o:p></o:p><br /><br /> <font size=3>1044 stream implementation of 03-NOV-09</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>6 rows selected.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; select * from</font> DYX_PART_Test5 <font size=3>partition (p1);</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>ID NAME</font> FINISHED_DAT <o:p></o:p><br /><br /> <font size=3>---------- -------------------- ------------</font> <o:p></o:p><br /><br /> <font size=3>100 black red 03-JUN-09</font> <o:p></o:p><br /><br /> <font size=3>105 partition table planning 03-JUL-09</font> <o:p></o:p><br /><br /> <font size=3>1400 oracle design 03-JUN-09</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; select * from</font> DYX_PART_Test4 <font size=3>partition (p1);</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>ID NAME</font> FINISHED_DAT <o:p></o:p><br /><br /> <font size=3>---------- -------------------- ------------</font> <o:p></o:p><br /><br /> <font size=3>101 partition table testing 03-APR-09</font> <o:p></o:p><br /><br /> <font size=3>1070 database planning 03-MAR-09</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; select * from</font> DYX_PART_Test4 <font size=3>partition (e3);</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>ID NAME</font> FINISHED_DAT <o:p></o:p><br /><br /> <font size=3>---------- -------------------- ------------</font> <o:p></o:p><br /><br /> <font size=3>1044 stream implementation of 03-NOV-09</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p>				<h5>Related Posts</h5>
		<div id="smilar">
		<ul>
					<li><a href="http://www.kods.netwww.kods.net/rman-created-physical-standby/" title="RMAN created physical standby">RMAN created physical standby</a> 2009-03-30 22:49:29</li>
					<li><a href="http://www.kods.netwww.kods.net/proc-will-select-the-data-on-the-two-dimensional-array/" title="ProC will select the data on the two-dimensional array">ProC will select the data on the two-dimensional array</a> 2009-03-30 11:50:27</li>
					<li><a href="http://www.kods.netwww.kods.net/oracle-locking-mechanism-reprint/" title="Oracle locking mechanism (reprint)">Oracle locking mechanism (reprint)</a> 2009-03-28 05:20:43</li>
					<li><a href="http://www.kods.netwww.kods.net/turning-optimization-oracle-article/" title="Turning optimization oracle article">Turning optimization oracle article</a> 2009-03-26 21:39:35</li>
				</ul>
		</div>
		        ]]></content:encoded>
		<wfw:commentRss>http://www.kods.netwww.kods.net/summary-of-the-partition-table/</wfw:commentRss>
	</item>
		<item>
		<title>Oracle backup functions</title>
		<link>http://www.kods.netwww.kods.net/oracle-backup-functions/</link>
		<comments>http://www.kods.netwww.kods.net/oracle-backup-functions/#comments</comments>
		<pubDate>Tue, 21 Apr 2009 15:40:02+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[oracle]]></category>
<category><![CDATA[high availability]]></category>
<category><![CDATA[ddl]]></category>
<category><![CDATA[dba]]></category>
<category><![CDATA[standby database]]></category>
<category><![CDATA[dataguard]]></category>
<category><![CDATA[streams]]></category>
<category><![CDATA[replication]]></category>
<category><![CDATA[network disaster recovery]]></category>
<category><![CDATA[system downtime]]></category>
<category><![CDATA[partial reproduction]]></category>
<category><![CDATA[overwhelming advantage]]></category>
<category><![CDATA[backup functions]]></category>
<category><![CDATA[heterogeneous environment]]></category>
<category><![CDATA[management costs]]></category>
<category><![CDATA[existing equipment]]></category>
<category><![CDATA[data security]]></category>
<category><![CDATA[24x7]]></category>
<category><![CDATA[empathy]]></category>
<category><![CDATA[intensity]]></category>
		<guid isPermaLink="true">http://www.kods.netwww.kods.net/oracle-backup-functions/</guid>
		<description><![CDATA[rn Oracle backup rn Include: rn Advanced Replication (Advanced Replication) rn Stream replication (Streams Replication) rn Preparation of the Treasury (Dataguard) rn A dataguard: rn dataguard in high  ...]]></description>
		<content:encoded><![CDATA[rn <br /> <FONT face=宋体><FONT size=3>Oracle backup</font></font> <br /><br /> rn <br /> <FONT face=宋体 size=3>Include:</font> <br /><br /> rn <br /> <FONT face=宋体 size=3>Advanced Replication (Advanced Replication)</font> <br /><br /> rn <br /> <FONT face=宋体><FONT size=3>Stream replication (Streams Replication)</font></font> <br /><br /> rn <br /> <FONT face=宋体 size=3>Preparation of the Treasury (Dataguard)</font> <br /><br /> rn <br /> <B><FONT face=宋体><FONT size=3>A dataguard:</font></font></b> <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p><br /><br /> rn <br /> <FONT face=宋体><FONT size=3>dataguard in high availability and disaster recovery in general is a dba of choice, after all, exist in this regard dataguard overwhelming advantage, regardless of the physical standby database (physical standby database) or a logical standby database (logical standby database), they all have some common to be imposed.</font></font> <br /><br /> rn <br /> <FONT face=宋体 size=3>Configuration and management costs:</font> dataguard <FONT face=宋体 size=3>than simple stream replication; security and stability in the cost of:</font> dataguard <FONT face=宋体 size=3>than a stable and reliable stream replication.</font> <br /><br /> rn <br /> <FONT face=宋体 size=3>For a 24x7 on the system, which is very important to increase system downtime not only affects the image of the company,</font> but <FONT face=宋体 size=3>will also affect the effectiveness of the company; used dataguard, data security very secure, the physical standby database can be completed in the shortest possible time failover, logical standby database in the protection of data security,</font> but <FONT face=宋体 size=3>also can take a lot of statements and other business; dataguard as a result of the relatively simple configuration and management, empathy has also reduced the intensity of the work of dba;</font> <br /><br /> rn <br /> <B><FONT face=宋体><FONT size=3>Second copy:</font></font></b> <o:p></o:p><br /><br /> rn <br /> <FONT face=宋体><FONT size=3>Apply to the following:</font></font> <br /><br /> rn <br /> <FONT face=宋体><FONT size=3>1, partial reproduction can stream or copy only certain models of certain</font></font> <br /><br /> rn <br /> <FONT face=宋体><FONT size=3>2, heterogeneous environment full use of the existing equipment and technology</font></font> <br /><br /> rn <br /> <FONT face=宋体><FONT size=3>3, long-range stream of network disaster recovery requirements are more stringent than the low dataguard</font></font> <br /><br /> rn <br /> <FONT face=宋体><FONT size=3>be flexible enough to stream replication to copy the strategy, not only can be configured to copy only certain tables,</font></font> but <FONT face=宋体><FONT size=3>also can be configured to copy only some form of ddl or dml, compared dataguard must copy the entire database,</font></font> the <FONT face=宋体><FONT size=3>storage can save a considerable investment, after all, for some huge amount of data, there are a number of replication is unnecessary.</font></font> <br /><br /> rn <br /> <FONT face=宋体 size=3>If in a heterogeneous environment, that is, different operating systems, it dataguard will be at a loss, other than non-stream replication, this can make full use of the existing environment, high allocation to the program, in a heterogeneous environment, stream replication will be advanced replication of the strong opponents.</font> <br /><br /> rn <br /> <FONT face=宋体><FONT size=3>stream replication is the spread of mining and packaging logmnr the logic of change records (LCRs), compared to dataguard send archived redo log, advanced replication and mview log of mview refresh the way, stream replication to reduce the demand on the network a lot in different places in the remote disaster recovery process, the rental network bandwidth is a higher cost, stream replication can reduce the cost of properly.</font></font> <br /><br /> rn <br /> <B><FONT face=宋体><FONT size=3>High copy c:</font></font></b> <o:p></o:p><br /><br /> rn <br /> <FONT face=宋体><FONT size=3>advanced replication in relation to dataguard, shortcomings are as follows: the more complex configuration and management, security and stability is not enough; advantages: partial replication, heterogeneous environment. advanced replication is a relatively mature technologies, in many critical systems has been successfully use in relation to 9iR2 introduced stream replication,</font></font> the <FONT face=宋体><FONT size=3>two parties apply to the environment may indeed be a,</font></font> for <FONT face=宋体><FONT size=3>example, can be partial replication, heterogeneous replication, long-range capacity disaster, such as, advanced replication and security in the stability of more tests.</font></font> <br /><br /> rn <br /> <FONT face=宋体 size=3>Stream replication compared with the bottom of advanced replication technology, stream replication in real-time performance, stability, high efficiency, low consumption (less cpu / network resources),</font> etc. <FONT face=宋体 size=3>are more advantages, whenever some new features, both or or less, there are some uncertain factors.</font> <br /><br /> rn <br /> <FONT face=宋体 size=3>In 10gR1 in, oracle for the current stream replication weaknesses have been strengthened, not only to provide advanced replication from the stream replication to move to the script,</font> but <FONT face=宋体 size=3>also provides a stream replication configuration and monitoring tools, stream replication in the configuration and management will be smart and simplistic take on competition for businesses and shareplex the important task of data replication market.</font> <br /><br /> rn <br /> <B><FONT face=宋体><FONT size=3>Four high-level replication and copy the difference between flow</font></font></b> <o:p></o:p><br /><br /> rn<br /> <FONT face=宋体 size=3>Advanced Replication and Streams Replication principle is completely different, Streams Replication can go to Table,</font> the <FONT face=宋体 size=3>user,</font> the <FONT face=宋体 size=3>database level, but it seems that high-level copy to the table level only.</font> <br /><br /> rn <br /> <FONT face=宋体><FONT size=3>Streams Replication Advanced Replication is not an upgraded version.</font></font> <br /><br /> rn <br /> <FONT face=宋体 size=3>Heterogeneous environment, oracle of the high availability and disaster recovery with high-level replication and copy the stream are the similarities and differences between the two points are as follows:</font> <br /><br /> rn <br /> <FONT face=宋体><FONT size=3>1. Advanced Replication is based on the trigger (trigger) the principle of the stream is based on the principle of log mining,</font></font> the <FONT face=宋体><FONT size=3>stream of the source database to copy the performance of smaller, but not as good as real-time high-level replication.</font></font> <br /><br /> rn <br /> <FONT face=宋体><FONT size=3>2. High copy replication database is based on the target object (object), such as tables, indexes and stored procedures, and the stream can copy table program (schema) and the entire database, so if the entire database for disaster recovery considerations, stream replication relatively simple configuration.</font></font> <br /><br /> rn <br /> <FONT face=宋体><FONT size=3>3. Advanced Replication is a relatively mature technologies, in many critical systems has been successfully use in relation to the introduction of the stream copy 9iR2, senior copy the current stability and security in more tests.</font></font> <br /><br /> rn <br /> <FONT face=宋体><FONT size=3>4. From a development point of view, the application of flow will be more and more, from oracle</font></font> <?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" /><st1:chmetcnv w:st="on" TCSC="0" NumberType="1" Negative="False" HasSpace="False" SourceValue="10" UnitName="g"> <FONT face=宋体><FONT size=3>10g</font></font> </st1:chmetcnv> <FONT face=宋体><FONT size=3>, Oracle provided to the flow from the high-level copy tool to copy transplants,</font></font> we <FONT face=宋体><FONT size=3>can see, oracle will be more on the side of the new technologies based on the flow.</font></font> <br /><br /> rn <br /> <FONT face=宋体><FONT size=3>5. As the Advanced Replication is based on the trigger,</font></font> and <FONT face=宋体><FONT size=3>therefore the structure of all of the copy object (ddl) changes must be adopted to provide a copy of oracle package to implement, and application of the relatively tight binding,</font></font> it is <FONT face=宋体><FONT size=3>more suitable to use in the development, and the stream is copied more suitable to the implementation of dba.</font></font> <br /><br /> rn <br /> <FONT face=宋体><FONT size=3>6. Stream copy to support two-way data replication, and conflict will be high-level replication;</font></font> <br /><br /> rn <br /> <FONT face=宋体><FONT size=3>7. Stream copy to support heterogeneous database replication, and the lack of information on the same high-level replication function;</font></font> <br /><br /> rn <br /> <FONT face=宋体 size=3>Two terms of the actual use of, streams require less bandwidth to copy,</font> <st1:chmetcnv w:st="on" TCSC="0" NumberType="1" Negative="False" HasSpace="False" SourceValue="2" UnitName="m"> <FONT face=宋体 size=3>2m</font> </st1:chmetcnv> <FONT face=宋体 size=3>Bandwidth, if not copy streams, advanced copy probably more gone, but the best use of other network streams too long break,</font> I do <FONT face=宋体 size=3>not know is bug or not to consider this case oracle, if the replication halt for some time,</font> and <FONT face=宋体 size=3>then returned to normal, probably Team list too much information, the team into the team very slow, non-linear increase in ah, it required a long period of time to synchronize data, the situation there is no high-level replication.</font> <br /><br /> rn <br /> <FONT face=宋体><FONT size=3>bug, anyway, there are some 10,2,0,1, to see you touch the碰不到a serious team allows you to delete the list of reconstruction do imply that the essential is to rebuild the entire copy, but would like to repeat again not appeared; negative rule if there is the use of multi-site update has been encountered in large affairs becomes very slow speed, multi-site design of the first structure; will continue to apply the process in udump directory site trc file generated , although not very mature, but really good things to copy streams, will inevitably be replaced by high-level copy,</font></font> it is <FONT face=宋体><FONT size=3>recommended to fight</font></font> <st1:chsdate w:st="on" IsROCDate="False" IsLunarDate="False" Day="30" Month="12" Year="1899"> <FONT face=宋体><FONT size=3>10.2.0</font></font> </st1:chsdate> <FONT face=宋体><FONT size=3>.3 Patch,</font></font> it <FONT face=宋体><FONT size=3>was said a number of amendments to the bug.</font></font> <br /><br /> rn <br /> <FONT face=宋体><FONT size=3>stream of the system design and maintenance side of the stream have a considerable technical ability to control, and most of the department and the DBA did not experience this thing, so it is difficult to promote;</font></font> dataguard <FONT face=宋体><FONT size=3>wins in the maintenance of simple and reliable, can be the maintenance of general dba . stream will be very bright prospects! in particular is a two-way replication</font></font> to <FONT face=宋体><FONT size=3>solve a lot of practical problems.</font></font> <br /><br /> rn <br /><o:p><FONT face="Times New Roman" size=3> </FONT></o:p>				<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/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/oracle-backup-functions/</wfw:commentRss>
	</item>
		<item>
		<title>Summary of the partition table (continued)</title>
		<link>http://www.kods.netwww.kods.net/summary-of-the-partition-table-continued/</link>
		<comments>http://www.kods.netwww.kods.net/summary-of-the-partition-table-continued/#comments</comments>
		<pubDate>Tue, 21 Apr 2009 14:25:09+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[oracle]]></category>
<category><![CDATA[test1]]></category>
<category><![CDATA[table index]]></category>
<category><![CDATA[query performance]]></category>
<category><![CDATA[scope]]></category>
<category><![CDATA[index structure]]></category>
<category><![CDATA[partition table]]></category>
<category><![CDATA[zoning district]]></category>
<category><![CDATA[hash]]></category>
<category><![CDATA[oracle database 10g]]></category>
<category><![CDATA[partition example]]></category>
<category><![CDATA[global index]]></category>
<category><![CDATA[sql commands]]></category>
<category><![CDATA[regional approach]]></category>
<category><![CDATA[geographical location]]></category>
<category><![CDATA[business environment]]></category>
<category><![CDATA[primers]]></category>
		<guid isPermaLink="true">http://www.kods.netwww.kods.net/summary-of-the-partition-table-continued/</guid>
		<description><![CDATA[# Index-organized tables can be range or hash partition list. Oracle Database 10g Also provides three types of zoning Index: # Local index Local index is the way of its geographical location and its r ...]]></description>
		<content:encoded><![CDATA[<p"MARGIN: 0cm 0cm 0pt"><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p><br /><br /><o:p><font size=3> </font></o:p></P><br /> <font size=3># Index-organized tables can be range or hash partition list.</font> <o:p></o:p><br /><br /> <font size=3>Oracle Database</font> <?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" /><st1:chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="10" unitname="g"> <font size=3>10g</font> </st1:chmetcnv> <font size=3>Also provides three types of zoning Index:</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3># Local index</font> <o:p></o:p><br /><br /> <font size=3>Local index is the way of its geographical location and its regional approach based on the same table index. Local index of each district where the only basis of its form corresponds to a partition.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Example:</font> <o:p></o:p><br /><br /> <font size=3>SQL&gt; CREATE INDEX</font> idx_dyx_part_test1 <font size=3>ON</font> dyx_part_test1 <font size=3>(xiaos_date) LOCAL</font> <o:p></o:p><br /><br /> <font size=3>2 (PARTITION</font> idx_dyx_part_test1_01 <font size=3>TABLESPACE ts_xiaos2009q1,</font> <o:p></o:p><br /><br /> <font size=3>3 PARTITION</font> idx_dyx_part_test1_02 <font size=3>TABLESPACE ts_xiaos2009q2,</font> <o:p></o:p><br /><br /> <font size=3>4 PARTITION</font> idx_dyx_part_test1_03 <font size=3>TABLESPACE ts_xiaos2009q3,</font> <o:p></o:p><br /><br /> <font size=3>5 PARTITION</font> idx_dyx_part_test1_04 <font size=3>TABLESPACE</font> ts_xiaos2009q4 <o:p></o:p><br /><br /> <font size=3>6) TABLESPACE users;</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Index created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3># Global index partition</font> <o:p></o:p><br /><br /> <font size=3>Index is different from the district to use their keys in the table of the zoning district of the index, it can be in the table or partition table partition table. Global index partition can use</font> <o:p></o:p><br /><br /> <font size=3>Range or hash partition to partition. For example, a table can be carried out by month the scope of zoning, it has a 12 zone, but the index on the table you can use a different partition key</font> <o:p></o:p><br /><br /> <font size=3>To carry out the scope of zoning, which has a number of different zoning.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Zoning is the index of all the separate each district to create the index, it can automatically maintain, in the drop or truncate a partition does not affect the index of the other divisions of the use of the index,</font> which <font size=3>is cable</font> <o:p></o:p><br /><br /> <font size=3>Primers will not fail to maintain more convenient, but somewhat the impact of query performance</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3># Global non-partitioned index</font> <o:p></o:p><br /><br /> <font size=3>Basically, the overall index of non-geographical and non-partition table as the index. Index structure is not partition.</font> <o:p></o:p><br /><br /> <font size=3>Oracle provides a rich set of technologies</font> that <font size=3>can be used for table, index and index-organized table partition, so can any business environment for any application to the best of the district.</font> <o:p></o:p><br /><br /> <font size=3>Oracle also provides a complete set of SQL commands for managing the partition table. Including adding a new partition, delete partition, split partition merge partition, as well as an order.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Partition function can be used to improve the management of</font> <o:p></o:p><br /><br /> <font size=3>Partition function through the Oracle, table and index can be divided into more manageable smaller units, so that database administrators can be &quot;dismembered, all broken up&quot; approach in the management of data.</font> <o:p></o:p><br /><br /> <font size=3>The use of geographical features, the maintenance operation can be made at any particular part of the table.</font> <o:p></o:p><br /><br /> <font size=3>For example, a database administrator can only do so on the table as part of the backup, without having to do a backup of the entire table. Database objects to the entire maintenance operation, in each district can be conducted on the basis of</font> <o:p></o:p><br /><br /> <font size=3>Maintenance work which will be broken down into more manageable pieces.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>The use of geographical features enhance the manageability of a typical data warehouse usage is to support the &#39;rolling window&#39; load process. The assumption that a database administrator to the table a week to load new data. Can</font> <o:p></o:p><br /><br /> <font size=3>The scope of the partition table so that each partition contains one week of data. This load process simply add a new partition. Add a partition to operate than the modified form of the much higher efficiency due to</font> <o:p></o:p><br /><br /> <font size=3>DBA does not need to modify any other partition.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Improve performance by partition function</font> <o:p></o:p><br /><br /> <font size=3>Due to restrictions on the operation of the inspection or the number of data, while supporting the implementation of parallel tasks, Oracle partition function of the realization of a performance gain. These features include:</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3># Division Dressing</font> <o:p></o:p><br /><br /> <font size=3>Partition function of trimming is to improve the performance of district the simplest means of the most valuable. Zoning often repaired to improve query performance can be several orders of magnitude. For example,</font> suppose <font size=3>an application includes a deposit</font> <o:p></o:p><br /><br /> <font size=3>Reserve Orders Orders history table, and this week has been partition table. For inquiries, orders a week just to visit the orders of a sub-table. If the order contains a two-year history, the</font> <o:p></o:p><br /><br /> <font size=3>Query only needs to visit a district rather than 104. The implementation of the speed of the query because the district may be repaired and a hundred times faster. Zoning dressing with all the other Oracle Collaboration performance characteristics.</font> <o:p></o:p><br /><br /> <font size=3>Oracle trimming function to partition the index with any technology, connection technology or a combination of parallel access method.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>The maintenance of the partition table:</font> <o:p></o:p><br /><br /> <font size=3>Increase in district:</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; ALTER TABLE</font> dyx_part_test1 <font size=3>ADD PARTITION</font> xiaoss2009_q5 <o:p></o:p><br /><br /> <font size=3>2 VALUES LESS THAN (TO_DATE ( &#39;</font> <st1:chsdate w:st="on" isrocdate="False" islunardate="False" day="1" month="6" year="2010"> <font size=3>2010-06-01</font> </st1:chsdate> <font size=3>&#39;,&#39; YYYY-MM-DD &#39;))</font> <o:p></o:p><br /><br /> <font size=3>3 TABLESPACE users;</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Table altered.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>If you already have maxvalue partition, can not increase the partition, can be taken to split the partition to increase partition!</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Delete partition:</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; ALTER TABLE</font> dyx_part_test1 <font size=3>DROP partition xiaoss2009_q5;</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Table altered.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Truncated Zoning:</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; alter table</font> dyx_part_test1 <font size=3>truncate partition xiaoss2009_q4;</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Table truncated.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Merged district:</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; alter table</font> dyx_part_test1 <font size=3>merge partitions xiaoss2009_q3, xiaoss2009_q4 into partition xiaoss2009_q4;</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Table altered.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; alter index</font> idx_dyx_part_test1 <font size=3>rebuild partition</font> idx_dyx_part_test1_01 <font size=3>parallel 4;</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Index altered.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>To split the district:</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Range of examples:</font> <o:p></o:p><br /><br /> <font size=3>SQL&gt; ALTER TABLE</font> dyx_part_test1 <o:p></o:p><br /><br /> <font size=3>2 SPLIT PARTITION</font> xiaoss2009_q4 <o:p></o:p><br /><br /> <font size=3>3 AT (TO_DATE ( &#39;</font> <st1:chsdate w:st="on" isrocdate="False" islunardate="False" day="1" month="10" year="2009"> <font size=3>2009-10-01</font> </st1:chsdate> <font size=3>&#39;,&#39; YYYY-MM-DD &#39;))</font> <o:p></o:p><br /><br /> <font size=3>4 INTO (partition xiaoss2009_q3, partition xiaoss2009_q4);</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Table altered.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>List of examples:</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; select * from</font> dyx_part_test2 <font size=3>partition (p2);</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>ID NAME LOCA</font> <o:p></o:p><br /><br /> <font size=3>---------- ------------------------------ ---------- --------------------</font> <o:p></o:p><br /><br /> <font size=3>3 sub-Tianjin Guangcheng</font> <o:p></o:p><br /><br /> <font size=3>5 live in Shanghai have been too</font> <o:p></o:p><br /><br /> <font size=3>7元始s Chongqing</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; alter table</font> dyx_part_test2 <font size=3>split partition p2 values ( &#39;Tianjin&#39;, &#39;Chongqing&#39;) into (partition p5, partition p6);</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Table altered.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; select * from</font> dyx_part_test2 <font size=3>partition (p2);</font> <o:p></o:p><br /><br /> <font size=3>select * from</font> dyx_part_test2 <font size=3>partition (p2)</font> <o:p></o:p><br /><br /> <font size=3>*</font> <o:p></o:p><br /><br /> <font size=3>ERROR at line 1:</font> <o:p></o:p><br /><br /> <font size=3>ORA-02149: Specified partition does not exist</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; select * from</font> dyx_part_test2 <font size=3>partition (p5);</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>ID NAME LOCA</font> <o:p></o:p><br /><br /> <font size=3>---------- ------------------------------ ---------- --------------------</font> <o:p></o:p><br /><br /> <font size=3>3 sub-Tianjin Guangcheng</font> <o:p></o:p><br /><br /> <font size=3>7元始s Chongqing</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; select * from</font> dyx_part_test2 <font size=3>partition (p6);</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>ID NAME LOCA</font> <o:p></o:p><br /><br /> <font size=3>---------- ------------------------------ ---------- --------------------</font> <o:p></o:p><br /><br /> <font size=3>5 live in Shanghai have been too</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Note: a separate partition (on the example of the p5 and p6) can not be in the original partition table was already different from the zoning district</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Exchange Zoning:</font> <o:p></o:p><br /><br /> <font size=3>Exchange district (Exchange partition) provides a way for you in the table with the table or partition with the partition between the migration of data, instead of converting the attention of constituents or non-district basis, the relocation table is only data</font> <o:p></o:p><br /><br /><o:p><font size=3></font></o:p><br /><br /> <font size=3>(Co-migration), because of its claims is a way to change the data dictionary, so the most efficient (almost does not involve the operation io). Exchange partition format is applicable to all zoning, you can migrate data from the partition table</font> <o:p></o:p><br /><br /><o:p><font size=3></font></o:p><br /><br /> <font size=3>To non-partition table,</font> but <font size=3>also from non-partition table can be moved to the partition table, or hash partition from the bar such as range partition</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; create table</font> dyx_part_test7 <font size=3>(id number, name varchar2 (50))</font> <o:p></o:p><br /><br /> <font size=3>2 partition by range (id)</font> <o:p></o:p><br /><br /> <font size=3>3 (partition</font> t_range_p1 <font size=3>values less than (10) tablespace ts_xiaos2009q1,</font> <o:p></o:p><br /><br /> <font size=3>4 partition</font> t_range_p2 <font size=3>values less than (20) tablespace ts_xiaos2009q2,</font> <o:p></o:p><br /><br /> <font size=3>5 partition</font> t_range_p3 <font size=3>values less than (30) tablespace ts_xiaos2009q3,</font> <o:p></o:p><br /><br /> <font size=3>6 partition</font> t_range_pmax <font size=3>values less than (maxvalue) tablespace</font> ts_xiaos2009q4 <o:p></o:p><br /><br /> <font size=3>7);</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Table created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; insert into</font> dyx_part_test7 <font size=3>values (11, &#39;a&#39;);</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>1 row created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; insert into</font> dyx_part_test7 <font size=3>values (12, &#39;b&#39;);</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>1 row created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; insert into</font> dyx_part_test7 <font size=3>values (13, &#39;c&#39;);</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>1 row created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; commit;</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Commit complete.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; create table</font> dyx_part_test7_tmp <font size=3>(id number, name varchar2 (50));</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Table created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; alter table</font> dyx_part_test7 <font size=3>exchange partition</font> t_range_p2 <o:p></o:p><br /><br /> <font size=3>2 with table dyx_part_test7_tmp;</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Table altered.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; select * from</font> dyx_part_test7 <font size=3>partition (t_range_p2);</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>no rows selected</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; select * from dyx_part_test7_tmp;</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>ID NAME</font> <o:p></o:p><br /><br /> <font size=3>---------- ---------------------------------------- ----------</font> <o:p></o:p><br /><br /><st1:chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="True" sourcevalue="11" unitname="a"> <font size=3>11 a</font> </st1:chmetcnv><o:p></o:p><br /><br /> <font size=3>12 b</font> <o:p></o:p><br /><br /><st1:chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="True" sourcevalue="13" unitname="C"> <font size=3>13 c</font> </st1:chmetcnv><o:p></o:p><br /><br /> <font size=3>Record of successful exchange to non-partition table</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Then the implementation of an exchange</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; alter table</font> dyx_part_test7 <font size=3>exchange partition</font> t_range_p2 <o:p></o:p><br /><br /> <font size=3>2 with table dyx_part_test7_tmp;</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Table altered.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; select * from dyx_part_test7_tmp;</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>no rows selected</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; select * from</font> dyx_part_test7 <font size=3>partition (t_range_p2);</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>ID NAME</font> <o:p></o:p><br /><br /> <font size=3>---------- ---------------------------------------- ----------</font> <o:p></o:p><br /><br /><st1:chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="True" sourcevalue="11" unitname="a"> <font size=3>11 a</font> </st1:chmetcnv><o:p></o:p><br /><br /> <font size=3>12 b</font> <o:p></o:p><br /><br /><st1:chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="True" sourcevalue="13" unitname="C"> <font size=3>13 c</font> </st1:chmetcnv><o:p></o:p><br /><br /> <font size=3>As can be seen from the above exchange back and</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; insert into</font> dyx_part_test7_tmp <font size=3>values (15, &#39;d&#39;);</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>1 row created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; insert into</font> dyx_part_test7_tmp <font size=3>values (16, &#39;e&#39;);</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>1 row created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; insert into</font> dyx_part_test7_tmp <font size=3>values (17, &#39;d&#39;);</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>1 row created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt;</font> <o:p></o:p><br /><br /> <font size=3>SQL&gt; commit;</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Commit complete.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; alter table</font> dyx_part_test7 <font size=3>exchange partition</font> t_range_p2 <o:p></o:p><br /><br /> <font size=3>2 with table dyx_part_test7_tmp;</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Table altered.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt;</font> <o:p></o:p><br /><br /> <font size=3>SQL&gt; select * from</font> dyx_part_test7 <font size=3>partition (t_range_p2);</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>ID NAME</font> <o:p></o:p><br /><br /> <font size=3>---------- ---------------------------------------- ----------</font> <o:p></o:p><br /><br /> <font size=3>15 d</font> <o:p></o:p><br /><br /> <font size=3>16 e</font> <o:p></o:p><br /><br /> <font size=3>17 d</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; select * from dyx_part_test7_tmp;</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>ID NAME</font> <o:p></o:p><br /><br /> <font size=3>---------- ---------------------------------------- ----------</font> <o:p></o:p><br /><br /><st1:chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="True" sourcevalue="11" unitname="a"> <font size=3>11 a</font> </st1:chmetcnv><o:p></o:p><br /><br /> <font size=3>12 b</font> <o:p></o:p><br /><br /><st1:chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="True" sourcevalue="13" unitname="C"> <font size=3>13 c</font> </st1:chmetcnv><o:p></o:p><br /><br /> <font size=3>From the above test can be seen that the partition table or two tables in the exchange of data!</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Note:</font> <o:p></o:p><br /><br /> <font size=3>Participation in the exchange of the two tables must be consistent between the table structure, unless an additional clause with validation;</font> <o:p></o:p><br /><br /> <font size=3>If it is from a non-partition table partition table to the exchange, non-partition table data in the partition table must be consistent with the rules specified in district, unless an additional clause without validation;</font> <o:p></o:p><br /><br /> <font size=3>If the partition table from the partition table to the exchange,</font> the <font size=3>exchange of data must comply with zoning district regulations, unless an additional clause without validation;</font> <o:p></o:p><br /><br /> <font size=3>Global index or data related to changes in the global index for the home district will be unusable, unless an additional clause update indexes.</font> <o:p></o:p><br /><br /> <font size=3>Tip:</font> <o:p></o:p><br /><br /> <font size=3>Once the additional clause without validation, the data indicated that he did not verify the validity of, so be sure to specify when the clause carefully.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Access to designated districts:</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; select * from</font> dyx_part_test2 <font size=3>partition (p1);</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>ID NAME LOCA</font> <o:p></o:p><br /><br /> <font size=3>---------- ------------------------------ ---------- --------------------</font> <o:p></o:p><br /><br /> <font size=3>Beijing 2 the neutron cloud</font> <o:p></o:p><br /><br /> <font size=3>8 God of War South-class Beijing</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Import Export:</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>EXPORT designated districts:</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>[oracle @ ora ~] $ exp dyx /</font> dyx <font size=3>tables = dyx_part_test2: p1 file = dyx_part_test2_p1.dmp</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Export: Release</font> <st1:chsdate w:st="on" isrocdate="False" islunardate="False" day="30" month="12" year="1899"> <font size=3>10.2.0</font> </st1:chsdate> <font size=3>.1.0 - Production on Sat Apr 25</font> 09:42:47 <font size=3>2009</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Copyright (c) 1982, 2005, Oracle. All rights reserved.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Connected to: Oracle Database</font> <st1:chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="10" unitname="g"> <font size=3>10g</font> </st1:chmetcnv> <font size=3>Enterprise Edition Release</font> <st1:chsdate w:st="on" isrocdate="False" islunardate="False" day="30" month="12" year="1899"> <font size=3>10.2.0</font> </st1:chsdate> <font size=3>.1.0 - 64bit Production</font> <o:p></o:p><br /><br /> <font size=3>With the Partitioning, OLAP and Data Mining options</font> <o:p></o:p><br /><br /> <font size=3>Export done in ZHS16GBK character set and AL16UTF16 NCHAR character set</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>About to export specified tables via Conventional Path ...</font> <o:p></o:p><br /><br /> <font size=3>.. Exporting table</font> DYX_PART_TEST2 <o:p></o:p><br /><br /> <font size=3>.. Exporting partition P1 2 rows exported</font> <o:p></o:p><br /><br /> <font size=3>EXP-00091: Exporting questionable statistics.</font> <o:p></o:p><br /><br /> <font size=3>Export terminated successfully with warnings.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>IMPORT designated districts:</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>[oracle @ ora ~] $ imp dyx /</font> dyx <font size=3>file = dyx_part_test2_p1.dmp TABLES = (dyx_part_test2: p1) IGNORE = y</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Import: Release</font> <st1:chsdate w:st="on" isrocdate="False" islunardate="False" day="30" month="12" year="1899"> <font size=3>10.2.0</font> </st1:chsdate> <font size=3>.1.0 - Production on Sat Apr 25</font> 09:44:15 <font size=3>2009</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Copyright (c) 1982, 2005, Oracle. All rights reserved.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Connected to: Oracle Database</font> <st1:chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="10" unitname="g"> <font size=3>10g</font> </st1:chmetcnv> <font size=3>Enterprise Edition Release</font> <st1:chsdate w:st="on" isrocdate="False" islunardate="False" day="30" month="12" year="1899"> <font size=3>10.2.0</font> </st1:chsdate> <font size=3>.1.0 - 64bit Production</font> <o:p></o:p><br /><br /> <font size=3>With the Partitioning, OLAP and Data Mining options</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Export file created by EXPORT: V</font> <st1:chsdate w:st="on" isrocdate="False" islunardate="False" day="30" month="12" year="1899"> <font size=3>10.02.01</font> </st1:chsdate> <font size=3>via conventional path</font> <o:p></o:p><br /><br /> <font size=3>import done in ZHS16GBK character set and AL16UTF16 NCHAR character set</font> <o:p></o:p><br /><br /> <font size=3>. Importing DYX&#39;s objects into DYX</font> <o:p></o:p><br /><br /> <font size=3>. Importing DYX&#39;s objects into DYX</font> <o:p></o:p><br /><br /> <font size=3>.. Importing partition &quot;DYX_PART_TEST2&quot;: &quot;P1&quot; 2 rows imported</font> <o:p></o:p><br /><br /> <font size=3>Import terminated successfully without warnings.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Ordinary table into a partition table</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Will have the general form of the existence of data into the partition table, not by modifying the properties directly into the partition table,</font> it is <font size=3>necessary to change the way the reconstruction, generally there are three ways:</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Method I: surface reconstruction using the original partition table.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; CREATE TABLE T (ID NUMBER PRIMARY KEY, TIME DATE);</font> <o:p></o:p><br /><br /> <font size=3>Table created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; INSERT INTO T</font> <o:p></o:p><br /><br /> <font size=3>2 SELECT ROWNUM,</font> SYSDATE <font size=3>-</font> ROWNUM <font size=3>FROM</font> user_OBJECTS <font size=3>WHERE ROWNUM &lt;= 5000;</font> <o:p></o:p><br /><br /> <font size=3>57 rows created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; commit;</font> <o:p></o:p><br /><br /> <font size=3>Commit complete.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; CREATE TABLE</font> T_NEW <font size=3>(ID, TIME) PARTITION BY RANGE (TIME)</font> <o:p></o:p><br /><br /> <font size=3>2 (PARTITION P1 VALUES LESS THAN (TO_DATE ( &#39;</font> <st1:chsdate w:st="on" isrocdate="False" islunardate="False" day="1" month="1" year="2009"> <font size=3>2009-01-01</font> </st1:chsdate> <font size=3>&#39;,&#39; YYYY-MM-DD &#39;)),</font> <o:p></o:p><br /><br /> <font size=3>3 PARTITION P2 VALUES LESS THAN (TO_DATE ( &#39;</font> <st1:chsdate w:st="on" isrocdate="False" islunardate="False" day="1" month="4" year="2009"> <font size=3>2009-04-01</font> </st1:chsdate> <font size=3>&#39;,&#39; YYYY-MM-DD &#39;)),</font> <o:p></o:p><br /><br /> <font size=3>4 PARTITION P3 VALUES LESS THAN (TO_DATE ( &#39;</font> <st1:chsdate w:st="on" isrocdate="False" islunardate="False" day="1" month="10" year="2009"> <font size=3>2009-10-01</font> </st1:chsdate> <font size=3>&#39;,&#39; YYYY-MM-DD &#39;)),</font> <o:p></o:p><br /><br /> <font size=3>5 PARTITION P4 VALUES LESS THAN (MAXVALUE))</font> <o:p></o:p><br /><br /> <font size=3>6 AS SELECT ID, TIME FROM T;</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Table created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Replacement table</font> <o:p></o:p><br /><br /> <font size=3>SQL&gt; RENAME T TO T_OLD;</font> <o:p></o:p><br /><br /> <font size=3>Table renamed.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; SQL&gt; RENAME</font> T_NEW <font size=3>TO T;</font> <o:p></o:p><br /><br /> <font size=3>Table renamed.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; SELECT COUNT (*) FROM T PARTITION (P2);</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>COUNT (*)</font> <o:p></o:p><br /><br /> <font size=3>----------</font> <o:p></o:p><br /><br /> <font size=3>33</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; SELECT COUNT (*) FROM T PARTITION (P3);</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>COUNT (*)</font> <o:p></o:p><br /><br /> <font size=3>----------</font> <o:p></o:p><br /><br /> <font size=3>24</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Display the current user can access all the partitions out the partition table information: ALL_PART_KEY_COLUMNS</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Displays the current partition table to all users out of the partition information: USER_PART_KEY_COLUMNS</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Shows that sub-district column shows the database of all the partition table information out of the sub-district: DBA_SUBPART_KEY_COLUMNS</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Display the current user can access all the partition table information out of the sub-district: ALL_SUBPART_KEY_COLUMNS</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Displays the current partition table to all users of the sub-partitions out information: USER_SUBPART_KEY_COLUMNS</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p>				<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/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/summary-of-the-partition-table-continued/</wfw:commentRss>
	</item>
		<item>
		<title>Oracle is willing to buy 7.4 billion US dollars from Sun</title>
		<link>http://www.kods.netwww.kods.net/oracle-is-willing-to-buy-7-4-billion-us-dollars-from-sun/</link>
		<comments>http://www.kods.netwww.kods.net/oracle-is-willing-to-buy-7-4-billion-us-dollars-from-sun/#comments</comments>
		<pubDate>Tue, 21 Apr 2009 10:20:46+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[system performance]]></category>
<category><![CDATA[ceo larry ellison]]></category>
<category><![CDATA[sun microsystems inc]]></category>
<category><![CDATA[debt acquisition]]></category>
<category><![CDATA[oracle ceo]]></category>
<category><![CDATA[larry ellison]]></category>
<category><![CDATA[sun oracle]]></category>
<category><![CDATA[sun microsystems]]></category>
<category><![CDATA[mission critical computing]]></category>
<category><![CDATA[performance reliability]]></category>
<category><![CDATA[transaction price]]></category>
<category><![CDATA[class software]]></category>
<category><![CDATA[java software]]></category>
<category><![CDATA[computing systems]]></category>
<category><![CDATA[stock price]]></category>
<category><![CDATA[operating profit]]></category>
<category><![CDATA[enterprise class]]></category>
<category><![CDATA[gaap]]></category>
<category><![CDATA[share price]]></category>
<category><![CDATA[siebel]]></category>
		<guid isPermaLink="true">http://www.kods.netwww.kods.net/oracle-is-willing-to-buy-7-4-billion-us-dollars-from-sun/</guid>
		<description><![CDATA[Oracle is willing to buy 7.4 billion U.S. dollars from Sun Oracle has announced that would be willing to 74 million in cash and debt acquisition of Sun Microsystems, Inc., or the stock price of 9.5 U. ...]]></description>
		<content:encoded><![CDATA[<strong>Oracle is willing to buy</strong> 7.4 <strong>billion</strong> U.S. <strong>dollars from Sun</strong> <p><p> Oracle has announced that would be willing to 74 million in cash and debt acquisition of Sun Microsystems, Inc., or the stock price of 9.5 U.S. dollars per share. <p><p> According to foreign media reports, the transaction price is higher than that IBM earlier this month out of 9.4 U.S. dollars per share price of the deal. <p><p> Oracle said it is estimated that the profit created by this acquisition will more than before the acquisition of BEA, PeopleSoft and Siebel to create higher profits, at the same time the acquisition is expected to be its non-GAAP operating profit more than 1.5 billion U.S. dollars brought about by the contribution, and in the sub - continue to bring in the contribution of two billion U.S. dollars. <p><p> Oracle CEO Larry Ellison (Larry Ellison), said Sun&#39;s acquisition of the purpose of integration of IT industry, and enterprise-class software and mission-critical computing systems combine to play a role. <p><p> Ellison also pointed out that as a result of the decline in the cost of system integration, and system performance, reliability and security increase, which will ultimately benefit customers. <p><p> In addition, Oracle also said, Sun&#39;s Java software, the company acquired the most important software, Oracle is set up with the software of its Fusion middleware.				<h5>Related Posts</h5>
		<div id="smilar">
		<ul>
					<li><a href="http://www.kods.netwww.kods.net/dba-should-have-the-character/" title="DBA should have the character">DBA should have the character</a> 2009-05-23 07:14:17</li>
					<li><a href="http://www.kods.netwww.kods.net/summary-of-the-partition-table/" title="Summary of the partition table">Summary of the partition table</a> 2009-04-21 18:21:19</li>
					<li><a href="http://www.kods.netwww.kods.net/partition-table-summary/" title="Partition table summary">Partition table summary</a> 2009-04-21 03:07:11</li>
					<li><a href="http://www.kods.netwww.kods.net/zoning-on-the-oracle/" title="Zoning on the Oracle">Zoning on the Oracle</a> 2009-04-15 00:52:26</li>
					<li><a href="http://www.kods.netwww.kods.net/oracle-basic-concepts-and-terminology/" title="oracle basic concepts and terminology">oracle basic concepts and terminology</a> 2009-04-06 22:17:39</li>
				</ul>
		</div>
		        ]]></content:encoded>
		<wfw:commentRss>http://www.kods.netwww.kods.net/oracle-is-willing-to-buy-7-4-billion-us-dollars-from-sun/</wfw:commentRss>
	</item>
		<item>
		<title>oracle technology</title>
		<link>http://www.kods.netwww.kods.net/oracle-technology/</link>
		<comments>http://www.kods.netwww.kods.net/oracle-technology/#comments</comments>
		<pubDate>Tue, 21 Apr 2009 10:00:07+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[oracle]]></category>
<category><![CDATA[logic]]></category>
<category><![CDATA[oracle database]]></category>
<category><![CDATA[flashback]]></category>
<category><![CDATA[rman backup]]></category>
<category><![CDATA[crs]]></category>
<category><![CDATA[network segment]]></category>
<category><![CDATA[oracle technology]]></category>
<category><![CDATA[backup technology]]></category>
<category><![CDATA[ocr technology]]></category>
<category><![CDATA[dual card]]></category>
<category><![CDATA[master and slave]]></category>
<category><![CDATA[host data]]></category>
<category><![CDATA[library guide]]></category>
<category><![CDATA[slave master]]></category>
<category><![CDATA[backup tool]]></category>
<category><![CDATA[connectivity options]]></category>
<category><![CDATA[backup data]]></category>
<category><![CDATA[regress]]></category>
<category><![CDATA[physics]]></category>
		<guid isPermaLink="true">http://www.kods.netwww.kods.net/oracle-technology/</guid>
		<description><![CDATA[Oracle database today to study the Cluster, DataGuard, the logic of the physical backup, flash back, as well as technical Rman. On learning experiences: rn Cluster: 10g or later to use cluster operati ...]]></description>
		<content:encoded><![CDATA[Oracle database today to study the Cluster, DataGuard, the logic of the physical backup, flash back, as well as technical Rman. On learning experiences: <br /> rn <br /> Cluster: 10g or later to use cluster operating crs; the use of VIP, ASM, OCR technology; <br /> rn <br /> Backup Technology: <br /> rn <br /> DataGuard: there are main points from the machine, the host data can be automatically synchronized to the slave, master and slave can automatically switch, trigger, the observer, sql statements may switch the status of master and slave; its way synchronization can be synchronized physics can also be is a logical synchronization; <br /> rn <br /> Physical backup and logical backup: Data Pump technology enables the implementation of the logic of physics to back up statements faster; <br /> rn <br /> Flashback: Automatic data kept for some time, if necessary, to achieve instantaneous recovery, a bit like goast <br /> rn <br /> RMAN: backup tool, mainly used for backup, from a library to another library guide. <br /> rn <br /><br /> rn <br /><br /> rn <br /> Question: <br /> rn <br /> 1. Cluster using the vip, can not support dual-card dual-network segment running? ? Progress or regress? ? <br /> rn <br /> 2. RMAN backup and DataGuard What is the difference between the backup? <br /> rn <br /> 3. Application is to continue to use OCI to connect local or remote connectivity options, is located in the machine, or even on other machines?				<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/using-sql-trace-and-tkprof/" title="Using SQL TRACE and TKPROF">Using SQL TRACE and TKPROF</a> 2009-02-26 21:36:37</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-technology/</wfw:commentRss>
	</item>
		<item>
		<title>Partition table summary</title>
		<link>http://www.kods.netwww.kods.net/partition-table-summary/</link>
		<comments>http://www.kods.netwww.kods.net/partition-table-summary/#comments</comments>
		<pubDate>Tue, 21 Apr 2009 03:07:11+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[sql statement]]></category>
<category><![CDATA[database objects]]></category>
<category><![CDATA[table index]]></category>
<category><![CDATA[failure]]></category>
<category><![CDATA[inquiries]]></category>
<category><![CDATA[system performance]]></category>
<category><![CDATA[query performance]]></category>
<category><![CDATA[partition table]]></category>
<category><![CDATA[disk partition]]></category>
<category><![CDATA[retrieval speed]]></category>
<category><![CDATA[query object]]></category>
<category><![CDATA[hash]]></category>
<category><![CDATA[partition function]]></category>
<category><![CDATA[geographical features]]></category>
<category><![CDATA[operational requirements]]></category>
<category><![CDATA[paragraphs]]></category>
<category><![CDATA[executive summary]]></category>
		<guid isPermaLink="true">http://www.kods.netwww.kods.net/partition-table-summary/</guid>
		<description><![CDATA[Partition table Learning through this section, you can learn the following questions 1, to understand the concept of partition table 2, clearly the use of the partition table 3, to understand the clas ...]]></description>
		<content:encoded><![CDATA[<font size=3>Partition table</font> <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p><br /><br /> <font size=3>Learning through this section, you can learn the following questions</font> <o:p></o:p><br /><br /> <font face=Arial size=3>1,</font> <font size=3>to understand the concept of partition table</font> <o:p></o:p><br /><br /> <font face=Arial size=3>2,</font> <font size=3>clearly the use of the partition table</font> <o:p></o:p><br /><br /> <font face=Arial size=3>3,</font> <font size=3>to understand the classification of the partition table</font> <o:p></o:p><br /><br /> <font face=Arial size=3>4,</font> <font size=3>to understand the operation of the partition table</font> <o:p></o:p><br /><br /><o:p><font face=Arial size=3> </font></o:p><br /><br /> <font size=3>We use an ordinary table in the process will be particularly large amount of data the table, when a data table for more than 20 million have been or occupier</font> <?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" /><st1:chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="2" unitname="g"> <font size=3>2G</font> </st1:chmetcnv> <font size=3>Space,</font> it is <font size=3>recommended to establish the partition table</font> <o:p></o:p><br /><br /><o:p><font face=Arial size=3> </font></o:p><br /><br /> <font size=3>The classification of the partition table:</font> <o:p></o:p><br /><br /> <font size=3><font face=Arial>Range (range)</font> Zoning</font> <o:p></o:p><br /><br /> <font size=3><font face=Arial>Hash (hash)</font> partitions</font> <o:p></o:p><br /><br /> <font size=3><font face=Arial>List (list)</font> Zoning</font> <o:p></o:p><br /><br /> <font size=3>As well as the combination of district: <font face=Arial>Range-Hash, Range-List</font></font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Division of advantages:</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Enhanced availability: If a partition table failure, table of data in other divisions are still available;</font> <o:p></o:p><br /><br /> <font size=3>Easy maintenance: If a partition table failure, the need to repair the data, only to repair the partition;</font> <o:p></o:p><br /><br /> <font size=3>Balanced I / O: can be mapped to a different disk partition to balance the I / O, improve the overall system performance;</font> <o:p></o:p><br /><br /> <font size=3>Improve the query performance:</font> The <font size=3>partition of the query object can be of concern to only search their own district</font> to <font size=3>improve the retrieval speed.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Executive Summary</font> <o:p></o:p><br /><br /> <font size=3>Partition function of many applications can improve the manageability, performance and availability. Through the partition function can be table, index and index-organized table is further broken down into paragraphs, which can more accurately manage and access these database objects. Orac # provides a wide variety of district programs to meet the operational requirements of each. Moreover, because the sql statement in the district is completely transparent, so the function can be applied to almost any application.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>The advantages of geographical features</font> <o:p></o:p><br /><br /> <font size=3>Partition function by improving the manageability, performance and availability of applications so as to bring all kinds of great benefits. Typically,</font> the <font size=3>district can make some inquiries as well as the performance of maintenance operations greatly enhanced. In addition,</font> the <font size=3>district can also greatly simplify common administrative tasks. Through the District, database designers and administrators to address the cutting-edge applications brought about by a number of challenges. District is building a gigabyte of data systems or ultra-high availability systems a key tool.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Basic knowledge of geographical features</font> <o:p></o:p><br /><br /> <font size=3>Partition function can be table, index or index-organized table is further broken down into paragraphs. These database objects called the partition of the paragraph. Each district has its own name,</font> you <font size=3>can choose its own storage characteristics.</font> <o:p></o:p><br /><br /> <font size=3>From the database administrator&#39;s point of view, after a sub-object with multiple paragraphs, the paragraphs of collective management can also be managed separately. This allows database administrators in the management of the object after the district there is considerable flexibility. However, from the application point of view, after the partition table partition table with non-identical, so that # S # D # command to visit the table after partition, without any changes to the partition table is through the &quot;partition key &quot;to be achieved, area refers to the number of keys out, which included the decision of the district where a line. Orac # data # 1 # 6 technologies provided for the partition table:</font> <o:p></o:p><br /><br /> <font size=3># The scope of Division</font> <o:p></o:p><br /><br /> <font size=3>Each district by the scope of a sub-key value specified (for a date as a partition key column of the Table, &quot;January 2005&quot; zoning district that contains keys for the &quot;</font> <st1:chsdate w:st="on" isrocdate="False" islunardate="False" day="1" month="1" year="2005"> <font size=3>1</font> January, <font size=3>2005</font> </st1:chsdate> <font size=3>&quot;To&quot;</font> <st1:chsdate w:st="on" isrocdate="False" islunardate="False" day="31" month="1" year="2005"> <font size=3>January</font> 31, <font size=3>2005</font> </st1:chsdate> <font size=3>&quot;Line).</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>That the scope of zoning cases:</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Assuming that there is an enterprise sales data,</font> and <font size=3>can be used for a range partition table</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Four tables to create space for use by the partition table should be placed on a different partition on the physical device, better performance can be my test environment is a physical device with</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; create tablespace</font> ts_xiaos2009q1 <font size=3>datafile</font> <o:p></o:p><br /><br /> <font size=3>&#39;/ oradata/dbnms/ts_xiaos2009q1.dbf&#39; size</font> <st1:chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="50" unitname="m"> <font size=3>50M</font> </st1:chmetcnv> <font size=3>;</font> <o:p></o:p><br /><br /> <font size=3>Tablespace created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; create tablespace</font> ts_xiaos2009q2 <o:p></o:p><br /><br /> <font size=3>datafile &#39;/ oradata/dbnms/ts_xiaos2009q2.dbf&#39; size</font> <st1:chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="50" unitname="m"> <font size=3>50M</font> </st1:chmetcnv> <font size=3>;</font> <o:p></o:p><br /><br /> <font size=3>Tablespace created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; create tablespace</font> ts_xiaos2009q3 <font size=3>datafile</font> <o:p></o:p><br /><br /> <font size=3>&#39;/ oradata/dbnms/ts_xiaos2009q3.dbf&#39; size</font> <st1:chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="50" unitname="m"> <font size=3>50M</font> </st1:chmetcnv> <font size=3>;</font> <o:p></o:p><br /><br /> <font size=3>Tablespace created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; create tablespace</font> ts_xiaos2009q4 <font size=3>datafile</font> <o:p></o:p><br /><br /> <font size=3>&#39;/ oradata/dbnms/ts_xiaos2009q4.dbf&#39; size</font> <st1:chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="50" unitname="m"> <font size=3>50M</font> </st1:chmetcnv> <font size=3>;</font> <o:p></o:p><br /><br /> <font size=3>Tablespace created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Create table</font> <o:p></o:p><br /><br /> <font size=3>SQL&gt; CREATE TABLE</font> dyx_part_test1 <o:p></o:p><br /><br /> <font size=3>2 (id NUMBER,</font> <o:p></o:p><br /><br /> <font size=3>3 name varchar2 (20),</font> <o:p></o:p><br /><br /> <font size=3>4 shuliang number,</font> <o:p></o:p><br /><br /> <font size=3>5 danjia number,</font> <o:p></o:p><br /><br /> <font size=3>6</font> xiaos_date <font size=3>DATE NOT NULL)</font> <o:p></o:p><br /><br /> <font size=3>7 PARTITION BY RANGE (xiaos_date)</font> <o:p></o:p><br /><br /> <font size=3>8 (PARTITION</font> xiaoss2009_q1 <o:p></o:p><br /><br /> <font size=3>9 VALUES LESS THAN (TO_DATE ( &#39;</font> <st1:chsdate w:st="on" isrocdate="False" islunardate="False" day="1" month="4" year="2009"> <font size=3>2009-04-01</font> </st1:chsdate> <font size=3>&#39;,&#39; YYYY-MM-DD &#39;))</font> <o:p></o:p><br /><br /> <font size=3>10 TABLESPACE ts_xiaos2009q1,</font> <o:p></o:p><br /><br /> <font size=3>11 PARTITION</font> xiaoss2009_q2 <o:p></o:p><br /><br /> <font size=3>12 VALUES LESS THAN (TO_DATE ( &#39;</font> <st1:chsdate w:st="on" isrocdate="False" islunardate="False" day="1" month="7" year="2009"> <font size=3>2009-07-01</font> </st1:chsdate> <font size=3>&#39;,&#39; YYYY-MM-DD &#39;))</font> <o:p></o:p><br /><br /> <font size=3>13 TABLESPACE ts_xiaos2009q2,</font> <o:p></o:p><br /><br /> <font size=3>14 PARTITION</font> xiaoss2009_q3 <o:p></o:p><br /><br /> <font size=3>15 VALUES LESS THAN (TO_DATE ( &#39;</font> <st1:chsdate w:st="on" isrocdate="False" islunardate="False" day="1" month="10" year="2009"> <font size=3>2009-10-01</font> </st1:chsdate> <font size=3>&#39;,&#39; YYYY-MM-DD &#39;))</font> <o:p></o:p><br /><br /> <font size=3>16 TABLESPACE ts_xiaos2009q3,</font> <o:p></o:p><br /><br /> <font size=3>17 PARTITION</font> xiaoss2009_q4 <o:p></o:p><br /><br /> <font size=3>18 VALUES LESS THAN (TO_DATE ( &#39;</font> <st1:chsdate w:st="on" isrocdate="False" islunardate="False" day="1" month="1" year="2010"> <font size=3>2010-01-01</font> </st1:chsdate> <font size=3>&#39;,&#39; YYYY-MM-DD &#39;))</font> <o:p></o:p><br /><br /> <font size=3>19 TABLESPACE ts_xiaos2009q4);</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Table created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Insert data</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; insert into</font> dyx_part_test1 <font size=3>values</font> <o:p></o:p><br /><br /> <font size=3>(1, &#39;Coca-Cola&#39;, 100,3.5, to_date ( &#39;</font> <st1:chsdate w:st="on" isrocdate="False" islunardate="False" day="5" month="3" year="2009"> <font size=3>2009-03-05</font> </st1:chsdate> <font size=3>&#39;,&#39; yyyy-mm-dd &#39;));</font> <o:p></o:p><br /><br /> <font size=3>1 row created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; insert into</font> dyx_part_test1 <font size=3>values</font> <o:p></o:p><br /><br /> <font size=3>(2, &#39;Kentucky&#39;, 100,10.5, to_date ( &#39;</font> <st1:chsdate w:st="on" isrocdate="False" islunardate="False" day="5" month="6" year="2009"> <font size=3>2009-06-05</font> </st1:chsdate> <font size=3>&#39;,&#39; yyyy-mm-dd &#39;));</font> <o:p></o:p><br /><br /> <font size=3>1 row created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt;</font> <o:p></o:p><br /><br /> <font size=3>SQL&gt; insert into</font> dyx_part_test1 <font size=3>values</font> <o:p></o:p><br /><br /> <font size=3>(3, &#39;Zhenglin</font> <st1:chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="3" unitname="a"> <font size=3>3A</font> </st1:chmetcnv><st1:chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="500" unitname="g"> <font size=3>500g</font> </st1:chmetcnv> <font size=3>&#39;, 100,15, to_date (&#39;</font> <st1:chsdate w:st="on" isrocdate="False" islunardate="False" day="5" month="9" year="2009"> <font size=3>2009-09-05</font> </st1:chsdate> <font size=3>&#39;,&#39; yyyy-mm-dd &#39;));</font> <o:p></o:p><br /><br /> <font size=3>1 row created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt;</font> <o:p></o:p><br /><br /> <font size=3>SQL&gt; insert into</font> dyx_part_test1 <font size=3>values</font> <o:p></o:p><br /><br /> <font size=3>(4, &#39;Ice Tea&#39;, 100,3, to_date ( &#39;</font> <st1:chsdate w:st="on" isrocdate="False" islunardate="False" day="5" month="11" year="2009"> <font size=3>2009-11-05</font> </st1:chsdate> <font size=3>&#39;,&#39; yyyy-mm-dd &#39;));</font> <o:p></o:p><br /><br /> <font size=3>1 row created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt;</font> <o:p></o:p><br /><br /> <font size=3>SQL&gt; insert into</font> dyx_part_test1 <font size=3>values</font> <o:p></o:p><br /><br /> <font size=3>(5, &#39;orange&#39;, 100,3.5, to_date ( &#39;</font> <st1:chsdate w:st="on" isrocdate="False" islunardate="False" day="5" month="4" year="2010"> <font size=3>2010-04-05</font> </st1:chsdate> <font size=3>&#39;,&#39; yyyy-mm-dd &#39;));</font> <o:p></o:p><br /><br /> <font size=3>insert into</font> dyx_part_test1 <font size=3>values</font> <o:p></o:p><br /><br /> <font size=3>(5, &#39;orange&#39;, 100,3.5, to_date ( &#39;</font> <st1:chsdate w:st="on" isrocdate="False" islunardate="False" day="5" month="4" year="2010"> <font size=3>2010-04-05</font> </st1:chsdate> <font size=3>&#39;,&#39; yyyy-mm-dd &#39;))</font> <o:p></o:p><br /><br /> <font size=3>*</font> <o:p></o:p><br /><br /> <font size=3>ERROR at line 1:</font> <o:p></o:p><br /><br /> <font size=3>ORA-14400: inserted partition key does not map to any partition</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Note: If you can not address district-wide data is not inserted, will report ORA-14400 error</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Show:</font> <o:p></o:p><br /><br /> <font size=3>SQL&gt; select * from</font> DYX_PART_Test1 <font size=3>partition (XIAOSS2009_Q3);</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>ID NAME SHULIANG DANJIA</font> XIAOS_DATE <o:p></o:p><br /><br /> <font size=3>---------- -------------------- ---------- ---------- ------------</font> <o:p></o:p><br /><br /> <font size=3>3 Zhenglin</font> <st1:chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="3" unitname="a"> <font size=3>3A</font> </st1:chmetcnv><st1:chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="500" unitname="g"> <font size=3>500g</font> </st1:chmetcnv> <font size=3>100 15 05-SEP-09</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3># A list of district</font> <o:p></o:p><br /><br /> <font size=3>Each district by a district designated key list (for an area out of the table as a partition key, &quot;North America&quot; partition may contain values of &quot;Canada&quot; &quot;United States&quot; and &quot;Mexico&quot;).</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Examples are as follows:</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; create table</font> dyx_part_test2 <font size=3>(</font> <o:p></o:p><br /><br /> <font size=3>2 id number (4),</font> <o:p></o:p><br /><br /> <font size=3>3 name varchar2 (30),</font> <o:p></o:p><br /><br /> <font size=3>4 loca varchar2 (30))</font> <o:p></o:p><br /><br /> <font size=3>5 partition by list (loca)</font> <o:p></o:p><br /><br /> <font size=3>6 (partition p1 values ( &#39;Beijing&#39;) tablespace ts_xiaos2009q1,</font> <o:p></o:p><br /><br /> <font size=3>7 partition p2 values ( &#39;Shanghai&#39;, &#39;Tianjin&#39;, &#39;Chongqing&#39;) tablespace ts_xiaos2009q2,</font> <o:p></o:p><br /><br /> <font size=3>8 partition p3 values ( &#39;Guangdong&#39;, &#39;Fujian&#39;) tablespace ts_xiaos2009q3,</font> <o:p></o:p><br /><br /> <font size=3>9 partition p0 values (default) tablespace users</font> <o:p></o:p><br /><br /> <font size=3>10);</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Table created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; insert into</font> dyx_part_test2 <font size=3>values (1, &#39;DAI new&#39;, &#39;Gansu&#39;);</font> <o:p></o:p><br /><br /> <font size=3>1 row created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; insert into</font> dyx_part_test2 <font size=3>values (2, &#39;Cloud neutron&#39;, &#39;Beijing&#39;);</font> <o:p></o:p><br /><br /> <font size=3>1 row created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; insert into</font> dyx_part_test2 <font size=3>values (3, &#39;Guangcheng son&#39;, &#39;Tianjin&#39;);</font> <o:p></o:p><br /><br /> <font size=3>1 row created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; insert into</font> dyx_part_test2 <font size=3>values (4, &#39;南极仙翁&#39;, &#39;Hebei&#39;);</font> <o:p></o:p><br /><br /> <font size=3>1 row created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; insert into</font> dyx_part_test2 <font size=3>values (5, &#39;too has been a real person&#39;, &#39;Shanghai&#39;);</font> <o:p></o:p><br /><br /> <font size=3>1 row created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; insert into</font> dyx_part_test2 <font size=3>values (6, &#39;fear Mr Sun&#39;, &#39;Canton&#39;);</font> <o:p></o:p><br /><br /> <font size=3>1 row created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; insert into</font> dyx_part_test2 <font size=3>values (7, &#39;元始s&#39;,&#39; Chongqing &#39;);</font> <o:p></o:p><br /><br /> <font size=3>1 row created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; insert into</font> dyx_part_test2 <font size=3>values (8, &#39;God of War South-class&#39;,&#39; Beijing &#39;);</font> <o:p></o:p><br /><br /> <font size=3>1 row created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; insert into</font> dyx_part_test2 <font size=3>values (9, &#39;the five God of War&#39;, &#39;Fujian&#39;);</font> <o:p></o:p><br /><br /> <font size=3>1 row created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; select * from dyx_part_test2;</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>ID NAME LOCA</font> <o:p></o:p><br /><br /> <font size=3>---------- ------------------------------ ---------- --------------------</font> <o:p></o:p><br /><br /> <font size=3>Beijing 2 the neutron cloud</font> <o:p></o:p><br /><br /> <font size=3>8 God of War South-class Beijing</font> <o:p></o:p><br /><br /> <font size=3>3 sub-Tianjin Guangcheng</font> <o:p></o:p><br /><br /> <font size=3>5 has been a real person too Shanghai</font> <o:p></o:p><br /><br /> <font size=3>7元始s Chongqing</font> <o:p></o:p><br /><br /> <font size=3>6 Liu孙广东fear</font> <o:p></o:p><br /><br /> <font size=3>9 God of War five Fujian</font> <o:p></o:p><br /><br /> <font size=3>1 DAI new Gansu</font> <o:p></o:p><br /><br /> <font size=3>4南极仙翁Hebei</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>9 rows selected.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; select * from</font> DYX_PART_Test2 <font size=3>partition (p2);</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>ID NAME LOCA</font> <o:p></o:p><br /><br /> <font size=3>---------- ------------------------------ ---------- --------------------</font> <o:p></o:p><br /><br /> <font size=3>3 sub-Tianjin Guangcheng</font> <o:p></o:p><br /><br /> <font size=3>5 has been a real person too Shanghai</font> <o:p></o:p><br /><br /> <font size=3>7元始s Chongqing</font> <o:p></o:p><br /><br /><o:p></o:p><br /><br /> <font size=3>SQL&gt; select * from</font> DYX_PART_Test2 <font size=3>partition (p0);</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>ID NAME LOCA</font> <o:p></o:p><br /><br /> <font size=3>---------- ------------------------------ ---------- --------------------</font> <o:p></o:p><br /><br /> <font size=3>1 DAI new Gansu</font> <o:p></o:p><br /><br /> <font size=3>4南极仙翁Hebei</font> <o:p></o:p><br /><br /> <font size=3>3 sub-Tianjin Guangcheng</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3># Hash partition</font> <o:p></o:p><br /><br /> <font size=3>Hash algorithm will be used to partition the specified key to determine where the district line, by specifying the partition number for a uniform geographical distribution of data types, as in I / O devices to hash partition,</font> <o:p></o:p><br /><br /> <font size=3>The same size so that these zoning.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Example:</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>create table</font> dyx_part_test3 <o:p></o:p><br /><br /> <font size=3>(id number primary key,</font> <o:p></o:p><br /><br /> <font size=3>class_id number (8) not null,</font> <o:p></o:p><br /><br /> <font size=3>name varchar2 (300),</font> <o:p></o:p><br /><br /> <font size=3>finished_date date</font> <o:p></o:p><br /><br /> <font size=3>)</font> <o:p></o:p><br /><br /> <font size=3>partition by hash (id)</font> <o:p></o:p><br /><br /> <font size=3>(</font> <o:p></o:p><br /><br /> <font size=3>partition p01 tablespace ts_xiaos2009q1,</font> <o:p></o:p><br /><br /> <font size=3>partition p02 tablespace ts_xiaos2009q2,</font> <o:p></o:p><br /><br /> <font size=3>partition p03 tablespace</font> ts_xiaos2009q3 <o:p></o:p><br /><br /> <font size=3>);</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>insert into</font> dyx_part_test3 <font size=3>values</font> <o:p></o:p><br /><br /> <font size=3>(3,12, &#39;quality of the skin&#39;, to_date ( &#39;</font> <st1:chsdate w:st="on" isrocdate="False" islunardate="False" day="30" month="5" year="2009"> <font size=3>2009-05-30</font> </st1:chsdate> <font size=3>&#39;,&#39; yyyy-mm-dd &#39;));</font> <o:p></o:p><br /><br /> <font size=3>insert into</font> dyx_part_test3 <font size=3>values</font> <o:p></o:p><br /><br /> <font size=3>(1,13, &#39;tiger&#39;, to_date ( &#39;</font> <st1:chsdate w:st="on" isrocdate="False" islunardate="False" day="30" month="5" year="2009"> <font size=3>2009-05-30</font> </st1:chsdate> <font size=3>&#39;,&#39; yyyy-mm-dd &#39;));</font> <o:p></o:p><br /><br /> <font size=3>insert into</font> dyx_part_test3 <font size=3>values</font> <o:p></o:p><br /><br /> <font size=3>(200,15, &#39;the middle of the tiger&#39;, to_date ( &#39;</font> <st1:chsdate w:st="on" isrocdate="False" islunardate="False" day="30" month="5" year="2009"> <font size=3>2009-05-30</font> </st1:chsdate> <font size=3>&#39;,&#39; yyyy-mm-dd &#39;));</font> <o:p></o:p><br /><br /> <font size=3>insert into</font> dyx_part_test3 <font size=3>values</font> <o:p></o:p><br /><br /> <font size=3>(230,19, &#39;tiger cat&#39;, to_date ( &#39;</font> <st1:chsdate w:st="on" isrocdate="False" islunardate="False" day="30" month="5" year="2009"> <font size=3>2009-05-30</font> </st1:chsdate> <font size=3>&#39;,&#39; yyyy-mm-dd &#39;));</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; select * from dyx_part_test3;</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>ID</font> CLASS_ID <font size=3>NAME</font> FINISHED_DAT <o:p></o:p><br /><br /> <font size=3>---------- ---------- -------------------- ---------- --</font> <o:p></o:p><br /><br /> <font size=3>Skin of</font> 20,015 <font size=3>middle 30-MAY-09</font> <o:p></o:p><br /><br /> <font size=3>3 12 upper skin of 30-MAY-09</font> <o:p></o:p><br /><br /> <font size=3>1 13 tiger 30-MAY-09</font> <o:p></o:p><br /><br /> 23,019 <font size=3>cat skins 30-MAY-09</font> <o:p></o:p><br /><br /><o:p></o:p><br /><br /><o:p></o:p><br /><br /> <font size=3>SQL&gt; select * from dyx_part_test3;</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>ID</font> CLASS_ID <font size=3>NAME</font> FINISHED_DAT <o:p></o:p><br /><br /> <font size=3>---------- ---------- -------------------- ---------- --</font> <o:p></o:p><br /><br /> <font size=3>Skin of</font> 20,015 <font size=3>middle 30-MAY-09</font> <o:p></o:p><br /><br /> <font size=3>3 12 upper skin of 30-MAY-09</font> <o:p></o:p><br /><br /> <font size=3>1 13 tiger 30-MAY-09</font> <o:p></o:p><br /><br /> 23,019 <font size=3>cat skins 30-MAY-09</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; select * from</font> DYX_PART_Test3 <font size=3>partition (p02);</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>ID</font> CLASS_ID <font size=3>NAME</font> FINISHED_DAT <o:p></o:p><br /><br /> <font size=3>---------- ---------- -------------------- ---------- --</font> <o:p></o:p><br /><br /> <font size=3>3 12 upper skin of 30-MAY-09</font> <o:p></o:p><br /><br /> <font size=3>1 13 tiger 30-MAY-09</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; select * from</font> DYX_PART_Test3 <font size=3>partition (p01);</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>ID</font> CLASS_ID <font size=3>NAME</font> FINISHED_DAT <o:p></o:p><br /><br /> <font size=3>---------- ---------- -------------------- ---------- --</font> <o:p></o:p><br /><br /> <font size=3>Skin of</font> 20,015 <font size=3>middle 30-MAY-09</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; select * from</font> DYX_PART_Test3 <font size=3>partition (p03);</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>ID</font> CLASS_ID <font size=3>NAME</font> FINISHED_DAT <o:p></o:p><br /><br /> <font size=3>---------- ---------- -------------------- ---------- --</font> <o:p></o:p><br /><br /> 23,019 <font size=3>cat skins 30-MAY-09</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3># Portfolio Zoning</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>1, the scope of hash (hash) partitions</font> <o:p></o:p><br /><br /> <font size=3>Range and hash partition technology portfolio through the combination of the scope of the first partition on the table, and then the scope for each individual district to use technology to further breakdown of the hash partition.</font> <o:p></o:p><br /><br /> <font size=3>Index range of organizations can only partition table.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Example:</font> <o:p></o:p><br /><br /> <font size=3>SQL&gt; create table</font> dyx_part_test4 <font size=3>(</font> <o:p></o:p><br /><br /> <font size=3>2 id number,</font> <o:p></o:p><br /><br /> <font size=3>3 name varchar2 (30),</font> <o:p></o:p><br /><br /> <font size=3>4</font> finished_date <font size=3>date)</font> <o:p></o:p><br /><br /> <font size=3>5 partition by range (finished_date)</font> <o:p></o:p><br /><br /> <font size=3>6 subpartition by hash (id)</font> <o:p></o:p><br /><br /> <font size=3>7 subpartitions 2</font> <o:p></o:p><br /><br /> <font size=3>8 (partition p1 values less than (to_date (&#39;20090501 &#39;,&#39; YYYYMMDD &#39;)) tablespace ts_xiaos2009q1,</font> <o:p></o:p><br /><br /> <font size=3>9 partition p2 values less than (to_date (&#39;20091001 &#39;,&#39; YYYYMMDD &#39;)) tablespace ts_xiaos2009q2,</font> <o:p></o:p><br /><br /> <font size=3>10 partition e3 values less than (maxvalue) tablespace ts_xiaos2009q3);</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Table created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; insert into</font> dyx_part_test4 <font size=3>values</font> <o:p></o:p><br /><br /> <font size=3>(100, &#39;red black&#39;, to_date (&#39;20090603 &#39;,&#39; yyyymmdd &#39;));</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>1 row created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; insert into</font> dyx_part_test4 <font size=3>values</font> <o:p></o:p><br /><br /> <font size=3>(101, &#39;the partition table test&#39;, to_date (&#39;20090403 &#39;,&#39; yyyymmdd &#39;));</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>1 row created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; insert into</font> dyx_part_test4 <font size=3>values</font> <o:p></o:p><br /><br /> <font size=3>(105, &#39;the partition table planning&#39;, to_date (&#39;20090703 &#39;,&#39; yyyymmdd &#39;));</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>1 row created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; insert into</font> dyx_part_test4 <font size=3>values</font> <o:p></o:p><br /><br /> <font size=3>(1044, &#39;stream implementation&#39;, to_date (&#39;20091103 &#39;,&#39; yyyymmdd &#39;));</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>1 row created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; insert into</font> dyx_part_test4 <font size=3>values</font> <o:p></o:p><br /><br /> <font size=3>(1400, &#39;oracle design&#39;, to_date (&#39;20090603 &#39;,&#39; yyyymmdd &#39;));</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>1 row created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; insert into</font> dyx_part_test4 <font size=3>values</font> <o:p></o:p><br /><br /> <font size=3>(1070, &#39;database planning&#39;, to_date (&#39;20090303 &#39;,&#39; yyyymmdd &#39;));</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>1 row created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt;</font> <o:p></o:p><br /><br /> <font size=3>SQL&gt; commit;</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Commit complete.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; select * from dyx_part_test4;</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>ID NAME</font> FINISHED_DAT <o:p></o:p><br /><br /> <font size=3>---------- -------------------- ------------</font> <o:p></o:p><br /><br /> <font size=3>101 partition table testing 03-APR-09</font> <o:p></o:p><br /><br /> <font size=3>1070 database planning 03-MAR-09</font> <o:p></o:p><br /><br /> <font size=3>100 black red 03-JUN-09</font> <o:p></o:p><br /><br /> <font size=3>105 partition table planning 03-JUL-09</font> <o:p></o:p><br /><br /> <font size=3>1400 oracle design 03-JUN-09</font> <o:p></o:p><br /><br /> <font size=3>1044 stream implementation of 03-NOV-09</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>6 rows selected.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; select * from</font> DYX_PART_Test4 <font size=3>partition (p2);</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>ID NAME</font> FINISHED_DAT <o:p></o:p><br /><br /> <font size=3>---------- -------------------- ------------</font> <o:p></o:p><br /><br /> <font size=3>100 black red 03-JUN-09</font> <o:p></o:p><br /><br /> <font size=3>105 partition table planning 03-JUL-09</font> <o:p></o:p><br /><br /> <font size=3>1400 oracle design 03-JUN-09</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; select * from</font> DYX_PART_Test4 <font size=3>partition (p1);</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>ID NAME</font> FINISHED_DAT <o:p></o:p><br /><br /> <font size=3>---------- -------------------- ------------</font> <o:p></o:p><br /><br /> <font size=3>101 partition table testing 03-APR-09</font> <o:p></o:p><br /><br /> <font size=3>1070 database planning 03-MAR-09</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; select * from</font> DYX_PART_Test4 <font size=3>partition (e3);</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>ID NAME</font> FINISHED_DAT <o:p></o:p><br /><br /> <font size=3>---------- -------------------- ------------</font> <o:p></o:p><br /><br /> <font size=3>1044 stream implementation of 03-NOV-09</font> <o:p></o:p><br /><br /><o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>2, the scope of the list of district</font> <o:p></o:p><br /><br /> <font size=3>List of geographical scope and the combination of technology, through the combination of the scope of the first partition on the table, and then the scope for each individual zoning district to use technology to further breakdown of the list.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Example:</font> <o:p></o:p><br /><br /> <font size=3>CREATE TABLE</font> dyx_part_test5 <font size=3>(</font> <o:p></o:p><br /><br /> <font size=3>id NUMBER (6),</font> <o:p></o:p><br /><br /> <font size=3>name VARCHAR2 (20),</font> <o:p></o:p><br /><br /> <font size=3>quyu VARCHAR2 (30),</font> <o:p></o:p><br /><br /> <font size=3>cretetime NUMBER (9,2))</font> <o:p></o:p><br /><br /> <font size=3>PARTITION BY RANGE (cretetime)</font> <o:p></o:p><br /><br /> <font size=3>SUBPARTITION BY LIST (quyu)</font> <o:p></o:p><br /><br /> <font size=3>SUBPARTITION TEMPLATE</font> <o:p></o:p><br /><br /> <font size=3>(SUBPARTITION east VALUES ( &#39;</font> <st1:country-region w:st="on"> <font size=3>CHINA</font> </st1:country-region> <font size=3>&#39;,&#39;</font> <st1:country-region w:st="on"> <font size=3>JAPAN</font> </st1:country-region> <font size=3>&#39;,&#39;</font> <st1:country-region w:st="on"> <font size=3>INDIA</font> </st1:country-region> <font size=3>&#39;,&#39;</font> <st1:country-region w:st="on"><st1:place w:st="on"> <font size=3>THAILAND</font> </st1:place></st1:country-region> <font size=3>&#39;),</font> <o:p></o:p><br /><br /> <font size=3>SUBPARTITION west VALUES ( &#39;</font> <st1:country-region w:st="on"> <font size=3>AMERICA</font> </st1:country-region> <font size=3>&#39;,&#39;</font> <st1:country-region w:st="on"> <font size=3>GERMANY</font> </st1:country-region> <font size=3>&#39;,&#39;</font> <st1:country-region w:st="on"> <font size=3>ITALY</font> </st1:country-region> <font size=3>&#39;,&#39;</font> <st1:country-region w:st="on"><st1:place w:st="on"> <font size=3>SWITZERLAND</font> </st1:place></st1:country-region> <font size=3>&#39;),</font> <o:p></o:p><br /><br /> <font size=3>SUBPARTITION other VALUES (DEFAULT))</font> <o:p></o:p><br /><br /> <font size=3>(PARTITION p1 VALUES LESS THAN (1000),</font> <o:p></o:p><br /><br /> <font size=3>PARTITION p2 VALUES LESS THAN (2500),</font> <o:p></o:p><br /><br /> <font size=3>PARTITION p3 VALUES LESS THAN (MAXVALUE));</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>insert into</font> dyx_part_test5 <font size=3>values (1, &#39;DAI new&#39;, &#39;china&#39;, 300);</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>insert into</font> dyx_part_test5 <font size=3>values (2, &#39;I am me&#39;, &#39;GERMANY&#39;, 2650);</font> <o:p></o:p><br /><br /> <font size=3>insert into</font> dyx_part_test5 <font size=3>values (75, &#39;oracle&#39;, &#39;</font> <st1:country-region w:st="on"><st1:place w:st="on"> <font size=3>JAPAN</font> </st1:place></st1:country-region> <font size=3>&#39;, 6952);</font> <o:p></o:p><br /><br /> <font size=3>insert into</font> dyx_part_test5 <font size=3>values (34, &#39;IBM&#39;, &#39;</font> <st1:country-region w:st="on"><st1:place w:st="on"> <font size=3>SWITZERLAND</font> </st1:place></st1:country-region> <font size=3>&#39;, 2100);</font> <o:p></o:p><br /><br /> <font size=3>insert into</font> dyx_part_test5 <font size=3>values (43, &#39;SUN&#39;, &#39;</font> <st1:country-region w:st="on"><st1:place w:st="on"> <font size=3>CHINA</font> </st1:place></st1:country-region> <font size=3>&#39;, 320);</font> <o:p></o:p><br /><br /> <font size=3>insert into</font> dyx_part_test5 <font size=3>values (876, &#39;DELL&#39;, &#39;</font> <st1:country-region w:st="on"><st1:place w:st="on"> <font size=3>AMERICA</font> </st1:place></st1:country-region> <font size=3>&#39;, 986);</font> <o:p></o:p><br /><br /> <font size=3>insert into</font> dyx_part_test5 <font size=3>values (866, &#39;SYSBASE&#39;, &#39;</font> <st1:country-region w:st="on"><st1:place w:st="on"> <font size=3>INDIA</font> </st1:place></st1:country-region> <font size=3>&#39;, 6352);</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; insert into</font> dyx_part_test4 <font size=3>values</font> <o:p></o:p><br /><br /> <font size=3>(100, &#39;red black&#39;, to_date (&#39;20090603 &#39;,&#39; yyyymmdd &#39;));</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>1 row created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; insert into</font> dyx_part_test4 <font size=3>values</font> <o:p></o:p><br /><br /> <font size=3>(101, &#39;the partition table test&#39;, to_date (&#39;20090403 &#39;,&#39; yyyymmdd &#39;));</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>1 row created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; insert into</font> dyx_part_test4 <font size=3>values</font> <o:p></o:p><br /><br /> <font size=3>(105, &#39;the partition table planning&#39;, to_date (&#39;20090703 &#39;,&#39; yyyymmdd &#39;));</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>1 row created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; insert into</font> dyx_part_test4 <font size=3>values</font> <o:p></o:p><br /><br /> <font size=3>(1044, &#39;stream implementation&#39;, to_date (&#39;20091103 &#39;,&#39; yyyymmdd &#39;));</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>1 row created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; insert into</font> dyx_part_test4 <font size=3>values</font> <o:p></o:p><br /><br /> <font size=3>(1400, &#39;oracle design&#39;, to_date (&#39;20090603 &#39;,&#39; yyyymmdd &#39;));</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>1 row created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; insert into</font> dyx_part_test4 <font size=3>values</font> <o:p></o:p><br /><br /> <font size=3>(1070, &#39;database planning&#39;, to_date (&#39;20090303 &#39;,&#39; yyyymmdd &#39;));</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>1 row created.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt;</font> <o:p></o:p><br /><br /> <font size=3>SQL&gt; commit;</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>Commit complete.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; select * from dyx_part_test4;</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>ID NAME</font> FINISHED_DAT <o:p></o:p><br /><br /> <font size=3>---------- -------------------- ------------</font> <o:p></o:p><br /><br /> <font size=3>101 partition table testing 03-APR-09</font> <o:p></o:p><br /><br /> <font size=3>1070 database planning 03-MAR-09</font> <o:p></o:p><br /><br /> <font size=3>100 black red 03-JUN-09</font> <o:p></o:p><br /><br /> <font size=3>105 partition table planning 03-JUL-09</font> <o:p></o:p><br /><br /> <font size=3>1400 oracle design 03-JUN-09</font> <o:p></o:p><br /><br /> <font size=3>1044 stream implementation of 03-NOV-09</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>6 rows selected.</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; select * from</font> DYX_PART_Test5 <font size=3>partition (p1);</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>ID NAME</font> FINISHED_DAT <o:p></o:p><br /><br /> <font size=3>---------- -------------------- ------------</font> <o:p></o:p><br /><br /> <font size=3>100 black red 03-JUN-09</font> <o:p></o:p><br /><br /> <font size=3>105 partition table planning 03-JUL-09</font> <o:p></o:p><br /><br /> <font size=3>1400 oracle design 03-JUN-09</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; select * from</font> DYX_PART_Test4 <font size=3>partition (p1);</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>ID NAME</font> FINISHED_DAT <o:p></o:p><br /><br /> <font size=3>---------- -------------------- ------------</font> <o:p></o:p><br /><br /> <font size=3>101 partition table testing 03-APR-09</font> <o:p></o:p><br /><br /> <font size=3>1070 database planning 03-MAR-09</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>SQL&gt; select * from</font> DYX_PART_Test4 <font size=3>partition (e3);</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p><br /><br /> <font size=3>ID NAME</font> FINISHED_DAT <o:p></o:p><br /><br /> <font size=3>---------- -------------------- ------------</font> <o:p></o:p><br /><br /> <font size=3>1044 stream implementation of 03-NOV-09</font> <o:p></o:p><br /><br /><o:p><font size=3> </font></o:p>				<h5>Related Posts</h5>
		<div id="smilar">
		<ul>
					<li><a href="http://www.kods.netwww.kods.net/rman-created-physical-standby/" title="RMAN created physical standby">RMAN created physical standby</a> 2009-03-30 22:49:29</li>
					<li><a href="http://www.kods.netwww.kods.net/proc-will-select-the-data-on-the-two-dimensional-array/" title="ProC will select the data on the two-dimensional array">ProC will select the data on the two-dimensional array</a> 2009-03-30 11:50:27</li>
					<li><a href="http://www.kods.netwww.kods.net/oracle-locking-mechanism-reprint/" title="Oracle locking mechanism (reprint)">Oracle locking mechanism (reprint)</a> 2009-03-28 05:20:43</li>
					<li><a href="http://www.kods.netwww.kods.net/turning-optimization-oracle-article/" title="Turning optimization oracle article">Turning optimization oracle article</a> 2009-03-26 21:39:35</li>
				</ul>
		</div>
		        ]]></content:encoded>
		<wfw:commentRss>http://www.kods.netwww.kods.net/partition-table-summary/</wfw:commentRss>
	</item>
		<item>
		<title>Create table PCTUSED parameters PCTFREE and what does this mean?</title>
		<link>http://www.kods.netwww.kods.net/create-table-pctused-parameters-pctfree-and-what-does-this-mean/</link>
		<comments>http://www.kods.netwww.kods.net/create-table-pctused-parameters-pctfree-and-what-does-this-mean/#comments</comments>
		<pubDate>Tue, 21 Apr 2009 01:05:19+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[paragraph]]></category>
<category><![CDATA[oracle]]></category>
<category><![CDATA[parameters]]></category>
<category><![CDATA[table index]]></category>
<category><![CDATA[oracle data]]></category>
<category><![CDATA[segment]]></category>
<category><![CDATA[clusters]]></category>
<category><![CDATA[oracle update]]></category>
<category><![CDATA[maximum threshold]]></category>
<category><![CDATA[pctfree]]></category>
<category><![CDATA[parameter control]]></category>
<category><![CDATA[space reservation]]></category>
<category><![CDATA[control structure]]></category>
<category><![CDATA[storage management]]></category>
<category><![CDATA[proportion]]></category>
		<guid isPermaLink="true">http://www.kods.netwww.kods.net/create-table-pctused-parameters-pctfree-and-what-does-this-mean/</guid>
		<description><![CDATA[Create table PCTUSED parameters PCTFREE and what does this mean? pctfree: Used to specify the necessary reservations BLOCK in the smallest proportion of space. pctused: as a percentage of value, when  ...]]></description>
		<content:encoded><![CDATA[<h2><a"http://www.cnblogs.com/luyubin/archive/2009/03/18/1415249.html"> <font color=#223355><font size=2>Create table PCTUSED parameters PCTFREE and what does this mean?</font></font> </h2><br /><br /> pctfree: Used to specify the necessary reservations BLOCK in the smallest proportion of space. <br /> pctused: as a percentage of value, when BLOCK space has been reduced to the following value, the BLOCK is available to reach or exceed this value can not be used BLOCK. <br /> The general segment in the control structure of an independent object, the use of these two parameters to control the storage management BLOCK. <br /> initrans: the specified operation can be complicated by the affairs of the table number. <br /><br /> <font size=2>CREATE command with PCTUSED, PCTFREE, INITTRANS, MAXTRANS,</font> FREELIST <font size=2>GROUPS and FREELISTS parameters to control the table, index or cluster of data blocks in the space. <br /><br /> Can be used and PCTFREE parameter control data block PCTUSED when entering or leaving the table, index or list of available clusters. <font color=#ff0000>PCTFREE parameters used to set the maximum threshold,</font> in order to control the line of the future update of the number of data blocks of space reservation. When a data block so that when PCTFREE filled, ORACLE available from the corresponding paragraph in the deletion of the block list. <font color=#ff0000>If you are expected to update only a few lines will increase the size, PCTFREE can be set to a lower value (such as 5 or 10),</font> making each block ORACLE fill more space. However, <font color=#ff0000>if you will be expected to update the regular increase in the size of line will be set to a higher PCTFREE value (such as 20 or 30),</font> have been made for the trip ORACLE update block retain more space; otherwise, will be that existing chain. <br /><br /> Parameter setting can be used most PCTUSED small threshold to control a data block should be returned when the corresponding list of available paragraph. For example, all paragraph PCTUSED default set to 40%, Therefore, when the transaction processing to delete the data block when, if it is filled with only 39% of, ORACLE data blocks back to the corresponding list of available paragraph <font color=#ff0000>. If you rarely have to delete the operation is expected to be set up for the higher value PCTUSED (eg, 60), when the accidental deletion occurs, so that the available data blocks pop-up list. However, if you PCTUSED is expected to be set to a lower value (eg 40),</font> so do not have a ORACLE blocks of available space in the table moved into or out of the overhead. <br /><br /> INITRANS and MAXTRANS can be used to optimize ORACLE how parameters in the table, data, cluster or index data block of the distribution of transaction processing. INITRANS parameter for the transaction to determine the distribution of the number of data blocks in advance of the head space. When you are expected to be many complicated transaction involving a block may be related to the transaction processing for pre-allocation of more space,</font> so as <font size=2>to avoid dynamic allocation of the overhead space. Parameter restrictions MAXTRANS data blocks in parallel using a number of transaction processing. When you are expected to have many affairs to deal with parallel access to a small table, then create a table, the table should be set up to deal with the affairs of the block pre-allocation of more space, higher parameter values MAXTRANS allow parallel access to a number of transaction processing The table INITRANS parameters and settings may MAXTRANS corresponding lower (eg 2 and 5, respectively). The use of such a set up, very few transaction processing for scenting reservation, so that the table data blocks of more space for data. <br /><br /> Can use the STORAGE clause FREELIST GROUPS section of the parameters can be used to control the amount of data a list of groups. FREELISTS parameters used in each group the number of available list.</font> <br /><br /><font size=2></font><br /><br /> <font size=2>From the Internet, thanks to the author!</font>				<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/create-table-pctused-parameters-pctfree-and-what-does-this-mean/</wfw:commentRss>
	</item>
		<item>
		<title>Detailed DBMS_STATS.GATHER_TABLE_STATS</title>
		<link>http://www.kods.netwww.kods.net/detailed-dbms-stats-gather-table-stats/</link>
		<comments>http://www.kods.netwww.kods.net/detailed-dbms-stats-gather-table-stats/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 22:56:43+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[quot]]></category>
<category><![CDATA[parameters]]></category>
<category><![CDATA[data dictionary]]></category>
<category><![CDATA[statistical information]]></category>
<category><![CDATA[indexes]]></category>
<category><![CDATA[distinction]]></category>
<category><![CDATA[cascade]]></category>
<category><![CDATA[partition table]]></category>
<category><![CDATA[information table]]></category>
<category><![CDATA[dbms]]></category>
<category><![CDATA[sampling lines]]></category>
<category><![CDATA[degree of parallelism]]></category>
<category><![CDATA[storage owners]]></category>
<category><![CDATA[hidden columns]]></category>
<category><![CDATA[parameter description]]></category>
<category><![CDATA[skew]]></category>
<category><![CDATA[boolean method]]></category>
<category><![CDATA[constants]]></category>
<category><![CDATA[cursors]]></category>
<category><![CDATA[histograms]]></category>
		<guid isPermaLink="true">http://www.kods.netwww.kods.net/detailed-dbms-stats-gather-table-stats/</guid>
		<description><![CDATA[Role: DBMS_STATS.GATHER_TABLE_STATS tables, columns, indexes of statistical information. DBMS_STATS.GATHER_TABLE_STATS syntax is as follows: DBMS_STATS.GATHER_TABLE_STATS (ownname VARCHAR2, tabname VA ...]]></description>
		<content:encoded><![CDATA[<font size="3"><br /></font> <br /><br /> Role: DBMS_STATS.GATHER_TABLE_STATS tables, columns, indexes of statistical information. <br /><br /> DBMS_STATS.GATHER_TABLE_STATS syntax is as follows: <br /><br /> DBMS_STATS.GATHER_TABLE_STATS (ownname VARCHAR2, tabname VARCHAR2, partname VARCHAR2, estimate_percent NUMBER, block_sample BOOLEAN, method_opt VARCHAR2, degree NUMBER, granularity VARCHAR2, cascade BOOLEAN, stattab VARCHAR2, statid VARCHAR2, statown VARCHAR2, no_invalidate BOOLEAN, force BOOLEAN); <br /> Parameter Description: <br /><br /> ownname: To analyze the table owner <br /><br /> tabname: To analyze the table. <br /><br /> partname: district name, only the partition table or regional index useful. <br /><br /> estimate_percent: the percentage of sampling lines, range [0.000001,100], null for the entire analysis, not sampling. constants: DBMS_STATS.AUTO_SAMPLE_SIZE is the default value, the best decision taken by the <strong><u>oracle</u></strong> sample values. <br /><br /> block_sapmple: whether to use block sampling instead of sampling lines. <br /><br /> method_opt: decide what information is being histograms statistics. method_opt value as follows: <br /><br /> for all columns: column statistics for all histograms. <br /><br /> for all indexed columns: Statistics indexed list of all the histograms. <br /><br /> for all hidden columns: statistics you can not see out of the histograms <br /><br /> -points with the same value which is what we define by &quot;there is skew in the <strong><u>data</u></strong> <br /><br /> degree: degree of parallelism decision. The default value is null. <br /><br /> granularity: Granularity of statistics to collect, only pertinent if the table is partitioned. <br /><br /> cascace: the index is to collect information. default falase. <br /><br /> stattab designated to store the table of statistical information, statid If multiple tables of statistical information is stored in the same distinction between stattab used. statown statistical information table storage owners. does not specify the above three parameters, statistical information will be directly updated to the data dictionary. <br /><br /> no_invalidate: Does not invalidate the dependent cursors if set to TRUE. The procedure invalidates the dependent cursors immediately if set to FALSE. <br /><br /> force: even if the table is locked, it will be the collection of statistical information. <br /><br /> Examples: <br /><br /> execute dbms_stats.gather_table_stats (ownname =&gt; &#39;owner&#39;, tabname =&gt; &#39;table_name&#39;, estimate_percent =&gt; null, method_opt =&gt; &#39;for all indexed columns&#39;, cascade =&gt; true);				<h5>Related Posts</h5>
		<div id="smilar">
		<ul>
					<li><a href="http://www.kods.netwww.kods.net/sql-optimization-5-commonly-used-test-hints/" title="SQL optimization (5) - commonly used test hints">SQL optimization (5) - commonly used test hints</a> 2009-03-29 08:39:54</li>
					<li><a href="http://www.kods.netwww.kods.net/oracle-locking-mechanism-reprint/" title="Oracle locking mechanism (reprint)">Oracle locking mechanism (reprint)</a> 2009-03-28 05:20:43</li>
					<li><a href="http://www.kods.netwww.kods.net/oracle10g-with-cross-platform-endian-transfer/" title="Oracle10g with cross-platform endian transfer">Oracle10g with cross-platform endian transfer</a> 2009-03-14 22:09:48</li>
					<li><a href="http://www.kods.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>
				</ul>
		</div>
		        ]]></content:encoded>
		<wfw:commentRss>http://www.kods.netwww.kods.net/detailed-dbms-stats-gather-table-stats/</wfw:commentRss>
	</item>
		<item>
		<title>Modify the ordinary user's default tablespace specified</title>
		<link>http://www.kods.netwww.kods.net/modify-the-ordinary-user-s-default-tablespace-specified/</link>
		<comments>http://www.kods.netwww.kods.net/modify-the-ordinary-user-s-default-tablespace-specified/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 22:18:05+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[oracle]]></category>
<category><![CDATA[implementation]]></category>
<category><![CDATA[test1]]></category>
<category><![CDATA[oracle user]]></category>
<category><![CDATA[table space]]></category>
<category><![CDATA[conn]]></category>
<category><![CDATA[default table]]></category>
<category><![CDATA[ring database]]></category>
<category><![CDATA[system tablespace]]></category>
<category><![CDATA[test ring]]></category>
<category><![CDATA[data space]]></category>
<category><![CDATA[space system]]></category>
<category><![CDATA[default system]]></category>
<category><![CDATA[system tables]]></category>
<category><![CDATA[system default]]></category>
<category><![CDATA[downtime]]></category>
<category><![CDATA[headache]]></category>
		<guid isPermaLink="true">http://www.kods.netwww.kods.net/modify-the-ordinary-user-s-default-tablespace-specified/</guid>
		<description><![CDATA[DBA experience often is such a headache: I do not know who created an Oracle user, to create did not give the user-specified default tablespace, so the user will be using the default table space - sys ...]]></description>
		<content:encoded><![CDATA[DBA experience often is such a headache: I do not know who created an Oracle user, to create did not give the user-specified default tablespace, so the user will be using the default table space - system table space. Lead to system tables user data space quickly filled up downtime. <br /> <strong>In 10G in, DBA there are ways to avoid this problem - the online system default tablespace specified:</strong> <br /><br /> ALTER DATABASE DEFAULT TABLESPACE <tsname></tsname> ; <br /><br /> Through the implementation of the above command, you can set the default system tablespace. In that case, create a new user, If you do not specify the default table space he will be using the system specified above, the default table space used as the default table space. <br /><br /> SQL&gt; conn / as sysdba <br /><br /> SQL&gt; create user test1 identified by test1 default tablespace ringidx; <br /><br /> The user has been created. <br /><br /> SQL&gt; alter database default tablespace ring; <br /><br /> Database has been changed. <br /><br /> SQL&gt; create user test identified by test; <br /><br /> The user has been created. <br /><br /> SQL&gt; select username, default_tablespace defspace from dba_users where <br /><br /> usernae = &#39;TEST&#39;; <br /><br /> USERNAME DEFSPACE <br /><br /> ----- ------ <br /><br /> TEST RING <br /><br /> However, it should be noted that, once the system modify the default table space, the original of all the ordinary user&#39;s default table space will be designated as this table space, as the example test1, created when he designated as the default tablespace ringidx the implementation of the &#39;alter database default tablespace ring&#39;, he&#39;s the default table space has been replaced by a ring. <br /><br /> SQL&gt; select username, default_tablespace defspace from dba_users where <br /><br /> username = &#39;TEST1&#39;; <br /><br /> USERNAME DEFSPACE <br /><br /> ----- ------ <br /><br /> TEST1 RING <br /><br /> From the Internet, I would like to thank the author!				<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/modify-the-ordinary-user-s-default-tablespace-specified/</wfw:commentRss>
	</item>
		<item>
		<title>10g tips</title>
		<link>http://www.kods.netwww.kods.net/10g-tips/</link>
		<comments>http://www.kods.netwww.kods.net/10g-tips/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 06:14:53+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[sql procedure]]></category>
<category><![CDATA[pl sql]]></category>
<category><![CDATA[exec]]></category>
<category><![CDATA[job]]></category>
		<guid isPermaLink="true">http://www.kods.netwww.kods.net/10g-tips/</guid>
		<description><![CDATA[SQL&gt; exec dbms_scheduler.disable ( &#39;SYS.GATHER_STATS_JOB&#39;); PL / SQL procedure successfully completed. # exec dbms_scheduler.enable ( &#39;SYS.GATHER_STATS_JOB&#39;);]]></description>
		<content:encoded><![CDATA[SQL&gt; exec dbms_scheduler.disable ( &#39;SYS.GATHER_STATS_JOB&#39;); <br /> PL / SQL procedure successfully completed. <br /><br /> # exec dbms_scheduler.enable ( &#39;SYS.GATHER_STATS_JOB&#39;);				<h5>Related Posts</h5>
		<div id="smilar">
		<ul>
					<li><a href="http://www.kods.netwww.kods.net/oracle-pl-sql-examples-of-practice/" title="oracle pl / sql examples of practice">oracle pl / sql examples of practice</a> 2009-04-06 04:35:08</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/proc-will-select-the-data-on-the-two-dimensional-array/" title="ProC will select the data on the two-dimensional array">ProC will select the data on the two-dimensional array</a> 2009-03-30 11:50:27</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>
				</ul>
		</div>
		        ]]></content:encoded>
		<wfw:commentRss>http://www.kods.netwww.kods.net/10g-tips/</wfw:commentRss>
	</item>
		<item>
		<title>Modify the specified user default tablespace</title>
		<link>http://www.kods.netwww.kods.net/modify-the-specified-user-default-tablespace/</link>
		<comments>http://www.kods.netwww.kods.net/modify-the-specified-user-default-tablespace/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 02:32:32+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[oracle]]></category>
<category><![CDATA[implementation]]></category>
<category><![CDATA[test1]]></category>
<category><![CDATA[oracle user]]></category>
<category><![CDATA[table space]]></category>
<category><![CDATA[conn]]></category>
<category><![CDATA[default table]]></category>
<category><![CDATA[ring database]]></category>
<category><![CDATA[system tablespace]]></category>
<category><![CDATA[test ring]]></category>
<category><![CDATA[data space]]></category>
<category><![CDATA[space system]]></category>
<category><![CDATA[default system]]></category>
<category><![CDATA[system tables]]></category>
<category><![CDATA[system default]]></category>
<category><![CDATA[downtime]]></category>
<category><![CDATA[headache]]></category>
		<guid isPermaLink="true">http://www.kods.netwww.kods.net/modify-the-specified-user-default-tablespace/</guid>
		<description><![CDATA[DBA experience often is such a headache: I do not know who created an Oracle user, to create did not give the user-specified default tablespace, so the user will be using the default table space - sys ...]]></description>
		<content:encoded><![CDATA[DBA experience often is such a headache: I do not know who created an Oracle user, to create did not give the user-specified default tablespace, so the user will be using the default table space - system table space. Lead to system tables user data space quickly filled up downtime. <br /> <strong>In 10G in, DBA there are ways to avoid this problem - the online system default tablespace specified:</strong> <br /><br /> ALTER DATABASE DEFAULT TABLESPACE <tsname></tsname> ; <br /><br /> Through the implementation of the above command, you can set the default system tablespace. In that case, create a new user, If you do not specify the default table space he will be using the system specified above, the default table space used as the default table space. <br /><br /> SQL&gt; conn / as sysdba <br /><br /> SQL&gt; create user test1 identified by test1 default tablespace ringidx; <br /><br /> The user has been created. <br /><br /> SQL&gt; alter database default tablespace ring; <br /><br /> Database has been changed. <br /><br /> SQL&gt; create user test identified by test; <br /><br /> The user has been created. <br /><br /> SQL&gt; select username, default_tablespace defspace from dba_users where <br /><br /> usernae = &#39;TEST&#39;; <br /><br /> USERNAME DEFSPACE <br /><br /> ----- ------ <br /><br /> TEST RING <br /><br /> However, it should be noted that, once the system modify the default table space, the original of all the ordinary user&#39;s default table space will be designated as this table space, as the example test1, created when he designated as the default tablespace ringidx the implementation of the &#39;alter database default tablespace ring&#39;, he&#39;s the default table space has been replaced by a ring. <br /><br /> SQL&gt; select username, default_tablespace defspace from dba_users where <br /><br /> username = &#39;TEST1&#39;; <br /><br /> USERNAME DEFSPACE <br /><br /> ----- ------ <br /><br /> TEST1 RING <br /><br /> From the Internet, I would like to thank the author!				<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/modify-the-specified-user-default-tablespace/</wfw:commentRss>
	</item>
		<item>
		<title>apex3.2 steps to install oracle10</title>
		<link>http://www.kods.netwww.kods.net/apex3-2-steps-to-install-oracle10/</link>
		<comments>http://www.kods.netwww.kods.net/apex3-2-steps-to-install-oracle10/#comments</comments>
		<pubDate>Sun, 19 Apr 2009 10:33:11+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[oracle home]]></category>
<category><![CDATA[oracle database]]></category>
<category><![CDATA[ld library]]></category>
<category><![CDATA[library path]]></category>
<category><![CDATA[environment variables]]></category>
<category><![CDATA[plsql]]></category>
<category><![CDATA[typical preparation]]></category>
<category><![CDATA[companion products]]></category>
<category><![CDATA[companion cd]]></category>
<category><![CDATA[httpserver]]></category>
<category><![CDATA[path parameter]]></category>
<category><![CDATA[installation database]]></category>
<category><![CDATA[database 2]]></category>
<category><![CDATA[images directory]]></category>
<category><![CDATA[three tables]]></category>
<category><![CDATA[set path]]></category>
<category><![CDATA[virtual path]]></category>
<category><![CDATA[2 steps]]></category>
<category><![CDATA[previous version]]></category>
<category><![CDATA[jdk]]></category>
		<guid isPermaLink="true">http://www.kods.netwww.kods.net/apex3-2-steps-to-install-oracle10/</guid>
		<description><![CDATA[1. Installation oracle10, I installed the Release 10.1.0.2.0, in the installation database, it can be installed through dbca to create a simple database 2. Companion CD-ROM to install the third, oracl ...]]></description>
		<content:encoded><![CDATA[1. Installation oracle10, I installed the Release 10.1.0.2.0, in the installation database, it can be installed through dbca to create a simple database <br /> 2. Companion CD-ROM to install the third, oracle database 10g companion products 10.2.0.1.0, and databases installed in different directory <br /> 3. Download apex 3.2, extract <br /> 4. To install database httpserver after installation, the environment variable may be a problem, you can buy some environment variables <br /> set ORACLE_HOME = D: \ oracle <br /> set J2EE_HOME =% ORACLE_HOME% \ j2ee \ home <br /> set ORACLE_SID = bill <br /> set PATH =% ORACLE_HOME% \ jdk \ bin;% ORACLE_HOME% \ bin;% PATH% <br /> set LD_LIBRARY_PATH =% ORACLE_HOME% \ lib;% ORACLE_HOME% \ ctx \ lib <br /> Path to be installed in accordance with the practical situation <br /> 4. To enter the apex directory to sys log in sqlplus, the implementation of @ apexins SYSAUX SYSAUX TEMP / i / <br /> SYSAUX SYSAUX TEMP is a designated space for three tables, / i / is specified by the virtual picture of the order of a previous version of the path parameter is @ apexins PASSWD SYSAUX SYSAUX TEMP / i /, 3.2 version was revised, passwd use a separate @ apxchpwd.sql amend. <br /> 5. After the installation is complete under the apex of the images directory are copied to the httpserv under the \ Apache \ Apache directory <br /> 6. Httpserv prepared under the Apache \ modplsql \ conf \ dads.conf, a typical preparation is as follows <br /> # ================================================= =========================== <br /><br /> # Mod_plsql DAD Configuration File <br /> # ================================================= =========================== <br /><br /> # 1. Please refer to dads.README for a description of this file <br /><br /> # ================================================= =========================== <br /> Alias / i / &quot;D: / oraclehttp / Apache / Apache / images /&quot; # # picture of virtual path and the actual path <br /> AddType text / xml xbl <br /> AddType text / x-component htc <br /><br /> &lt;Location /pls/apex&gt; <br /> Order deny, allow <br /> PlsqlDocumentPath docs <br /> AllowOverride None <br /> PlsqlDocumentProcedure wwv_flow_file_manager.process_download <br /><br /> PlsqlDatabaseConnectString localhost: 1521: bill ServiceNameFormat # # database sid <br /><br /> PlsqlNLSLanguage &quot;SIMPLIFIED CHINESE_CHINA.AL32UTF8&quot; <br /> PlsqlAuthenticationMode Basic <br /> SetHandler pls_handler <br /> PlsqlDocumentTablename wwv_flow_file_objects $ <br /><br /> PlsqlDatabaseUsername APEX_PUBLIC_USER <br /> PlsqlDefaultPage apex <br /> PlsqlDatabasePassword oracle # # database user password APEX_PUBLIC_USER <br /> Allow from all <br /> &lt;/ Location&gt; <br /> 7. Can visit to do some (1) lstrctl start listening (2) to unlock the database user APEX_PUBLIC_USER (3) amend the APEX_PUBLIC_USER user&#39;s password and the preparation of documents in line <br /> 8. Start httpserv, can be visited <br /> http://localhost:7777/pls/apex				<h5>Related Posts</h5>
		<div id="smilar">
		<ul>
					<li><a href="http://www.kods.netwww.kods.net/oracle10g-full-version-centos5-installed-the-installation-has-passed/" title="ORACLE10G full version centos5 installed (the installation has passed)">ORACLE10G full version centos5 installed (the installation has passed)</a> 2009-03-31 09:49:10</li>
					<li><a href="http://www.kods.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/ax3-0-oracle-10g-rac-installation/" title="AX3.0 + Oracle 10G RAC installation">AX3.0 + Oracle 10G RAC installation</a> 2009-03-12 19:19:31</li>
					<li><a href="http://www.kods.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>
				</ul>
		</div>
		        ]]></content:encoded>
		<wfw:commentRss>http://www.kods.netwww.kods.net/apex3-2-steps-to-install-oracle10/</wfw:commentRss>
	</item>
		<item>
		<title>Oracle installation difficulties</title>
		<link>http://www.kods.netwww.kods.net/oracle-installation-difficulties/</link>
		<comments>http://www.kods.netwww.kods.net/oracle-installation-difficulties/#comments</comments>
		<pubDate>Sun, 19 Apr 2009 04:08:56+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[oracle]]></category>
<category><![CDATA[oracle home]]></category>
<category><![CDATA[glibc]]></category>
<category><![CDATA[lt]]></category>
<category><![CDATA[init]]></category>
<category><![CDATA[error message]]></category>
<category><![CDATA[oracle installation]]></category>
<category><![CDATA[sysman]]></category>
<category><![CDATA[native library]]></category>
<category><![CDATA[oracle software]]></category>
<category><![CDATA[config config]]></category>
<category><![CDATA[database response]]></category>
<category><![CDATA[installation difficulties]]></category>
<category><![CDATA[gethost]]></category>
<category><![CDATA[unknown source]]></category>
<category><![CDATA[system 32]]></category>
<category><![CDATA[virtual machine]]></category>
<category><![CDATA[computer industry]]></category>
<category><![CDATA[devel]]></category>
<category><![CDATA[java lang]]></category>
		<guid isPermaLink="true">http://www.kods.netwww.kods.net/oracle-installation-difficulties/</guid>
		<description><![CDATA[Recently changed computers, used to be installed directly suse11 system 32. The entertainment in order to install a virtual machine, installed in the virtual machine suse10 system, but is 64-bit. Afte ...]]></description>
		<content:encoded><![CDATA[Recently changed computers, used to be installed directly suse11 system 32. The entertainment in order to install a virtual machine, installed in the virtual machine suse10 system, but is 64-bit. <br /><br /> After installation, it still felt pretty good by comparison to upgrade the computer industry under the virtual machine can also run. However, when installed oracle10g encountered a lot of trouble. Oracle software is installed when it is full of smooth, but to start dbca, netca error when, the error message is as follows: <br /><br /> dbca-silent-responseFile / home / billy / ftphome / up / database / response / dbca.rsp <br /> UnsatisfiedLinkError exception loading native library: njni10 <br /> Exception in thread &quot;main&quot; java.lang.UnsatisfiedLinkError: get <br /> at oracle.net.common.NetGetEnv.get (Native Method) <br /> at oracle.net.config.Config.getNetDir (Unknown Source) <br /> at oracle.net.config.Config.initConfig (Unknown Source) <br /> at oracle.net.config.Config. &lt;init&gt; (Unknown Source) <br /> at oracle.sysman.assistants.util.NetworkUtils. &lt;init&gt; (NetworkUtils.java: 222) <br /> at oracle.sysman.assistants.util.step.StepContext. &lt;init&gt; (StepContext.java: 255) <br /> at oracle.sysman.assistants.dbca.backend.Host. &lt;init&gt; (Host.java: 682) <br /> at oracle.sysman.assistants.dbca.backend.SilentHost. &lt;init&gt; (SilentHost.java: 125) <br /> at oracle.sysman.assistants.dbca.Dbca.getHost (Dbca.java: 150) <br /> at oracle.sysman.assistants.dbca.Dbca.execute (Dbca.java: 94) <br /> at oracle.sysman.assistants.dbca.Dbca.main (Dbca.java: 180) <br /><br /> Looking online for a long time is that the lack of <br /><br /> glibc-32bit-8.1-9 <br /> glibc-devel-32bit-8.1-9 <br /><br /> But still not installed. <br /><br /> $ ORACLE_HOME / bin / relink all the time also reported that a package can not be found. <br /><br /> The previous 32-bit install suse11 do not have any problems, and toss about for several days after the first and put into database manually. <br /><br /> To be a mark in this, to be resolved by re-recording solutions and causes. <br /><br /> Friends to know may also wish to point.				<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-installation-difficulties/</wfw:commentRss>
	</item>
		<item>
		<title>Oracle Character Set</title>
		<link>http://www.kods.netwww.kods.net/oracle-character-set/</link>
		<comments>http://www.kods.netwww.kods.net/oracle-character-set/#comments</comments>
		<pubDate>Sat, 18 Apr 2009 22:50:37+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[oracle]]></category>
<category><![CDATA[oracle product]]></category>
<category><![CDATA[sysman]]></category>
<category><![CDATA[nls lang]]></category>
<category><![CDATA[server character]]></category>
<category><![CDATA[china]]></category>
		<guid isPermaLink="true">http://www.kods.netwww.kods.net/oracle-character-set/</guid>
		<description><![CDATA[We have to discuss four areas: 1: the server character set 2: character set client can find the registry miscellaneous NS_LANG 3: sqlplus Character Set D: \ oracle \ product \ 10.2.0 \ client_1 \ sysm ...]]></description>
		<content:encoded><![CDATA[We have to discuss four areas: <br /><br /> 1: the server character set <br /><br /><table bordercolor=#999999 cellspacing=0 cellpadding=0 width="95%" bgcolor=#f1f1f1 border=1><tbody><tr><td><br /> <code>SQL&gt; select userenv('language') from dual;<BR>USERENV('LANGUAGE')<BR>SIMPLIFIED CHINESE_CHINA.ZHS16GBK</code> <br /><br /></td></tr></tbody></table><br /><br /> 2: character set client can find the registry miscellaneous NS_LANG <br /><br /> 3: sqlplus Character Set <br /><br /> D: \ oracle \ product \ 10.2.0 \ client_1 \ sysman \ config \ dbappscfg.properties <br /><br /> Inside SQLPLUS_NLS_LANG = AMERICAN_AMERICA.WE8ISO8859P1 can be modified into <br /><br /> SQLPLUS_NLS_LANG = AMERICAN_AMERICA.ZHS16GBK </CCID_CODE>				<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/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/oracle-character-set/</wfw:commentRss>
	</item>
		<item>
		<title>ORACLE very difficult to learn</title>
		<link>http://www.kods.netwww.kods.net/oracle-very-difficult-to-learn/</link>
		<comments>http://www.kods.netwww.kods.net/oracle-very-difficult-to-learn/#comments</comments>
		<pubDate>Sat, 18 Apr 2009 08:03:43+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[oracle]]></category>
		<guid isPermaLink="true">http://www.kods.netwww.kods.net/oracle-very-difficult-to-learn/</guid>
		<description><![CDATA[ORACLE more points the more knowledge, a look at the forgotten front of the back, not enough of a head, ah, ah]]></description>
		<content:encoded><![CDATA[ORACLE more points the more knowledge, a look at the forgotten front of the back, not enough of a head, ah, ah				<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/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/oracle-very-difficult-to-learn/</wfw:commentRss>
	</item>
		<item>
		<title>ora-01756</title>
		<link>http://www.kods.netwww.kods.net/ora-01756/</link>
		<comments>http://www.kods.netwww.kods.net/ora-01756/#comments</comments>
		<pubDate>Fri, 17 Apr 2009 23:42:30+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[implementation]]></category>
		<guid isPermaLink="true">http://www.kods.netwww.kods.net/ora-01756/</guid>
		<description><![CDATA[The use of character set AL32UTF8 problems Client character set is also set to AL32UTF8, when the implementation of the problem statement: SQL&gt; update t_port_permission set permission_name = &#39;d ...]]></description>
		<content:encoded><![CDATA[The use of character set AL32UTF8 problems <br /><br /> Client character set is also set to AL32UTF8, when the implementation of the problem statement: <br /><br /> SQL&gt; update t_port_permission set permission_name = &#39;delete inbound&#39; where permission_name =&#39;123 &#39;; <br /> ERROR: <br /> ORA-01756: quoted string not properly terminated <br /><br /> SQL&gt; update t_port_permission set permission_name = &#39;delete administrator&#39; where permission_name =&#39;123 &#39;; <br /><br /> 1 row updated. <br /><br /> SQL&gt; commit; <br /><br /> Commit complete. <br /><br /> SQL&gt; update t_port_permission set permission_name = &#39;administrator management&#39; where permission_name =&#39;234 &#39;; <br /> ERROR: <br /> ORA-01756: quoted string not properly terminated <br /> SQL&gt; update t_port_permission set permission_name = &#39;Operator&#39; where permission_name =&#39;234 &#39;; <br /><br /> 1 row updated. <br /><br /> SQL&gt; commit;				<h5>Related Posts</h5>
		<div id="smilar">
		<ul>
					<li><a href="http://www.kods.netwww.kods.net/sqlplus-skills/" title="SQLPlus skills">SQLPlus skills</a> 2009-04-01 09:37:29</li>
					<li><a href="http://www.kods.netwww.kods.net/oracle-deadlock-related/" title="Oracle deadlock related">Oracle deadlock related</a> 2009-03-30 16:46:54</li>
					<li><a href="http://www.kods.netwww.kods.net/sql-optimization-5-commonly-used-test-hints/" title="SQL optimization (5) - commonly used test hints">SQL optimization (5) - commonly used test hints</a> 2009-03-29 08:39:54</li>
					<li><a href="http://www.kods.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>
				</ul>
		</div>
		        ]]></content:encoded>
		<wfw:commentRss>http://www.kods.netwww.kods.net/ora-01756/</wfw:commentRss>
	</item>
		<item>
		<title>ORACLE Data Recovery</title>
		<link>http://www.kods.netwww.kods.net/oracle-data-recovery/</link>
		<comments>http://www.kods.netwww.kods.net/oracle-data-recovery/#comments</comments>
		<pubDate>Fri, 17 Apr 2009 22:07:11+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[oracle database]]></category>
<category><![CDATA[incomplete recovery]]></category>
<category><![CDATA[database recovery]]></category>
<category><![CDATA[point in time]]></category>
<category><![CDATA[log archive]]></category>
<category><![CDATA[backup database]]></category>
<category><![CDATA[open database]]></category>
<category><![CDATA[three ways]]></category>
<category><![CDATA[database table]]></category>
<category><![CDATA[oracle data]]></category>
<category><![CDATA[database backup]]></category>
<category><![CDATA[backup methods]]></category>
<category><![CDATA[backup files]]></category>
<category><![CDATA[rollback]]></category>
<category><![CDATA[physical structure]]></category>
<category><![CDATA[introduction oracle]]></category>
<category><![CDATA[error recovery]]></category>
<category><![CDATA[ini files]]></category>
<category><![CDATA[failure point]]></category>
<category><![CDATA[complete recovery]]></category>
		<guid isPermaLink="true">http://www.kods.netwww.kods.net/oracle-data-recovery/</guid>
		<description><![CDATA[To the Oracle database backup and restore a clear understanding of, first of all, it is necessary to run several databases have a full understanding of the state. Running Oracle database is divided in ...]]></description>
		<content:encoded><![CDATA[To the Oracle database backup and restore a clear understanding of, first of all, it is necessary to run several databases have a full understanding of the state. Running Oracle database is divided into three kinds, they were as follows: <br /><br /> l Nomount (non-installed) Oracle only ini file to read configuration information and initialization SGA area. <br /><br /> l Mount (installed) Oracle in addition to the ini file to read but also read the control file and the database to obtain information such as physical structure. <br /><br /> l Open (open) database to check all the files at the same time, the error recovery rollback of unfinished matters, and ultimately allow users to access. <br /><br /> Backup database is divided into three categories: cold backup; hot backup; logical backup; <br /><br /> Database backup is not the focus of this paper, here only a brief introduction, Oracle database backup are: <br /><br /> l Cold Backup (cold backup) means the closure of the main database for the state of the database full backup, backup includes all data files, control files, online log files, ini files. <br /><br /> l Hot Backup (backup) means the database is running under the control of the data files and backup files, it is necessary to use the hot backup database must be running on (Archive Log) archive mode. <br /><br /> l Export (logical backup) This is the simplest backup methods, may be a database table or a user to export the entire database, and supports all of the cumulative, incremental in three ways. Using this method, the database must be open, and if the database is not in the state will not be able to restrict export of data to ensure consistency. <br /><br /> Database recovery can be divided into two categories: complete recovery; not fully recovered; <br /><br /> Fully restored back to the database refers to the failure point in time, do not lose any data. Incomplete recovery refers to the database back to before the failure of a certain point in time, this time after all the changes will be lost. If there are no special needs, we propose to make full use of fully restored. <br /><br /> Oracle database recovery process conducted in two steps, first of all, will be stored in the redo log files using all redo to data files, and then redo all of the matters not submitted rollback, so all data on the occurrence of return to that moment of disaster. Database only in the event of failure to repair the data files before using again, back to the failure of its time, data files can not be reverse-roll back to a time before. For example, we have a database backup 2001/1/1, 2001/5/1 When the database so that the data we found that confusion, I hope to return to the database state at the time of 2001/4/30, we can only be the restoration of 2001/1/1 database backup and then used in its redo records to at the time of pre-rolled state 2001/4/30, 2001/5/1 the database can not be rolled back to back 2001/4/30 . <br /><br /> In order to design a database system to resume the program, we have encountered an error that may be classified, Oracle Database error is divided into 5 broad categories: <br /><br /> l SQL statement failed <br /><br /> l thread failure <br /><br /> examples of the failure of l <br /><br /> l user operation failed <br /><br /> l storage device failure <br /><br /> If the failure of the first three, do not require human intervention, Oracle system will automatically recover. The failure of user-based (such as误删除data), the remedial measures we have taken into the main logic of the latest backup or to a certain point in time is not fully restored. Oracle 8 from a new version after the introduction of table-based restoration of space time points (TSPITR), will contain the error can be a separate operation to return to the table space for a specified period of time, rather than the entire database is not fully restored. Operator error was found when comparing the amount of data is not timely and the case can also consider the use of reverse logminer generated SQL. <br /><br /> Storage devices for the failure of the complexity of the situation is the focus of this paper, the failure of storage devices placed in their bound to make the document becomes unavailable, we first Oracle database of documents involved in a division can be mainly divided into as follows: <br /><br /> l Oracle system files, refer to the operation of Oracle documents, various applications <br /><br /> l databases control file <br /><br /> l database online redo log file <br /><br /> l data files <br /><br /> l log file archiving <br /><br /> To avoid the failure of the first document to rely largely on the system administrator to backup the operating system level, when the accident occurred can only rely on the operating system will restore the backup. <br /><br /> Control file records the entire database structure, the status of each data file, the system SCN, checkpoints and other important information counter in the database will create a user-specified control of the three locations to store files, they mirror each other, When the failure of any one of them, simply comment out from the ini file data files Fault data can be re-activated. When all control of all the failure, you can Nomount mode to re-create controlfile control file generated, but must provide a redo log, data file, the file name and address, as well as MAXLOGFILES, MAXDATAFILES, MAXINSTANCES information. If it fails to run off before the alter database backup controlfile to trace or alter database backup controlfile to &#39;xxx&#39; to the control file for backup, recovery can be used to generate the script to rebuild or cover the backup file, if you use the old control file To use the recovery recover xxx using backup controlfile option for recovery, and use the option to open the database resetlogs. <br /> If the loss is the online log files, to deal with both cases at 1, the loss of a non-event log file; 2, the loss is the activation of the log file. <br /><br /> If this is the first case, and the failure of the log file with multiple members of another group, you can first database shutdown, and then use the operating system to damage the command log file members of the group a good log file to document damage to a member of the coverage (in the with a log of all the members of the group the log file for the mirror), if its physical location is not available can be copied to a new drive, use the alter database rename file &#39;xxxx&#39; to &#39;xxxx&#39; change file location, After the restart the database, if a normal cold backup immediately. If the damaged log group members that there is only one log, to mount the database, convert it to noarchivelog model, the implementation of alter database add logfile member &#39;xxx&#39; to group &#39;x&#39; to the relevant group to add a member, then the implementation of alter database drop logfile member &#39;bad_file&#39; damage to the log file will be deleted, as a result of changes in the structure of the database needs a backup control file, and then back to the database archivelog mode, do a cold backup. <br /><br /> If the loss is the current log file is activated, the database does not mirror the current log and all the members of the group becomes unavailable. First of all, the database shutdown abort, from the most recent full backup to recover all the data files, restart the database to the mount state. If the original physical location of the log file is not available, use alter database rename file &#39;xxx&#39; to &#39;xxx&#39; to change the file storage location. Then, use the command recover database until cancel to restore the database until the prompt use of the last log after archiving, enter cancel. After the alter database open resetlogs used to open the database, if it is a cold backup immediately. Attention! All included in the damage to the information in the redo log will be lost, that is to say the database has been submitted before the collapse of the data may be lost. This is the application of certain requirements will be very high losses and should therefore be as much as possible so that each log group members with multiple logs and placed in a different drive to prevent the occurrence of a media failure. <br /><br /> Failure data file is also divided into a number of situations, 1, lost in the SYSTEM tablespace contains the data files; 2, there is no loss of the non-SYSTEM rollback segment data file; 3, have lost the non-SYSTEM rollback segment data file . <br /><br /> If the damage is the system table space data file. The only way is from the last backup to recover damaged data files (if the original location is not available to use alter database rename command to change the location of a new document), and then mount the database under the state recover database / datafile to the database back to open the database. Note: When SYSTEM tablespace or data file offline, the database can not be opened, so the state must mount all of the restoration work is completed. <br /><br /> When the missing data files do not belong to system tablespace rollback segment and is not included, it is a choice of two states in the database under the --- in the database to restore the status of open or mount the database state. Eager to access the database if the user is not damaged part of the data or damaged data files on the recovery takes a long time, can damage the data file to make offline, open the database to user access, to restore damaged data files Finally, its online. Steps are as follows: first mount in the database, it will be related to the data file or table space for off-line alter database datafile xxx offline, and then the database open, so the database can not be damaged for some users, and then to recover datafile / tablespace, after the completion of use alter database datafile / tablespace &#39;xxx&#39; online you can put it back in line to be visited. Of course, users can also choose to mount the database state, and recover database / datafile will return to work after all, with all data files will be open for user access. <br /><br /> If you have lost your data file is the last one, that contains the non-system rollback segment tablespace data files. Can also choose to open in the state database or in the mount state of the restoration. But the situation with a different rollback segment when the data files contain the damage, if the database offline so that it first opened, then all the database did not submit before the collapse of the Service relate to the table will not be able to visit, that is to say in rollback segment before the restoration of the objects involved are not allowed to visit. And when all of the data file that contains rollback segment in the offline state, the database can not be any DML operation, so in the open state of the database contains the rollback segment to restore the data file, you can create a few temporary rollback segment for the use of data create rollback segment temp1 tablespace system; alter rollback segment temp1 online;, when the data files to restore them and then delete the alter rollback segment temp1 offline; drop rollback segment temp1;. Note: When using this method to restore the data files online, all of the original offline rollback segment will be in a state, we must hand the use of alter rollback segment RBSxx online; so that they line the status of the restoration in order to be the normal use of the database. If you mount the database to restore a state of completion of all, you do not need these steps. <br /> If you have lost your data files, users found that there was no failure of the backup data files and lost data files since the establishment of the first has not been used after the options opened resetlogs database. This means that the user&#39;s control file is damaged before the establishment of the data files created archive log data files include all the damage to redo records. Users there is a recovery method, the user can first damaged data files or offline tablespace alter database datafile / tablespace xxx offline, after the implementation of alter database create datafile &#39;new / xxx.dbf&#39; as&#39; old / xxx.dbf &#39; , the database will be stored in the control file based on the information in the reconstruction of an empty data file, and then the implementation recover tablespace / datafile redo record of all data files used in its fully restored to the current state, after will be able to put their the restoration of line. <br /><br /> If the loss is the last of a document --- archive files or archives where the physical location is not available, first shutdown the database and immediately make a cold backup. Ini file and then modify the path to the purpose of archiving log files, restart the database. Just after the disaster will be from the latest backup to restore the relevant documents, databases, when there would be no need for recover lost before the backup archive file. Oracle 8 in the new version after log_archive_duplex_dest provided and log_archive_dest_1 ... 5 and other parameters were allowed to keep the documents in the archives to a different location, even to the remote server in order to ensure the reliability of the documents in the archives. <br /><br /> Some say the resumption of the final database Notes: <br /><br /> 1. This article discusses the premise of all the circumstances of the default is to run in the archive database (ARCHIVELOG) mode, and only to the common and the most basic recovery methods. Provided by the use of Oracle Recovery Manager RMAN can also accomplish the above tasks, if more complex operating environment do recommend the use of RMAN backup and recovery. <br /><br /> 2. Once the database of a disaster, before the resumption of the best in the cold for a full backup, in order to generate errors during the recovery can also be used for remedies. A significant portion of data loss due to incorrect operation caused by the resumption. <br /><br /> 3. When the database after the completion of the restoration, in particular the use of open database resetlogs option, it is necessary to immediately shut down the database to conduct a complete cold backup. Because, in order to prevent giving up the redo log to be restored again next time use, resetlogs option will re-create the redo log file and cleared the count, which will be done before all the backup will become unavailable (for general under). <br /><br /> 4. To pay special attention to the database when fully recovered from the failure of the backup point in time to recover before the damaged document, must not make a backup of the redo log files covering the current redo log file, or can only incomplete and it must be part of the restoration of lost data.				<h5>Related Posts</h5>
		<div id="smilar">
		<ul>
					<li><a href="http://www.kods.netwww.kods.net/troubleshooting-the-physical-set-up-the-backup-database/" title="Troubleshooting: the physical set up the backup database">Troubleshooting: the physical set up the backup database</a> 2009-03-13 00:53:17</li>
					<li><a href="http://www.kods.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>
				</ul>
		</div>
		        ]]></content:encoded>
		<wfw:commentRss>http://www.kods.netwww.kods.net/oracle-data-recovery/</wfw:commentRss>
	</item>
	</channel>
</rss>
