<?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>Oracle Database</title>
	<atom:link href="http://www.kods.net/feed/category/oracle-database/" rel="self" type="application/rss+xml" />
	<link>http://www.kods.net/</link>
	<description>Oracle Database</description>
	<pubDate>Wed, 10 Mar 2010 15:25:12+0000</pubDate>
	<generator>http://www.kods.net/</generator>
	<language>en</language>
		<item>
		<title>Oracle database fragmentation step by step explaining how to sort out</title>
		<link>http://www.kods.netwww.kods.net/oracle-database-fragmentation-step-by-step-explaining-how-to-sort-out/</link>
		<comments>http://www.kods.netwww.kods.net/oracle-database-fragmentation-step-by-step-explaining-how-to-sort-out/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 18:54:46+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle Database]]></category>
		<category><![CDATA[oracle database]]></category>
<category><![CDATA[space segment]]></category>
<category><![CDATA[table space]]></category>
<category><![CDATA[free space]]></category>
<category><![CDATA[database performance]]></category>
<category><![CDATA[system administrator]]></category>
<category><![CDATA[initial data]]></category>
<category><![CDATA[pointers]]></category>
<category><![CDATA[segment segment]]></category>
<category><![CDATA[initial scope]]></category>
<category><![CDATA[aviation data]]></category>
<category><![CDATA[data throughput]]></category>
<category><![CDATA[full scope]]></category>
<category><![CDATA[stable operation]]></category>
<category><![CDATA[maximum range]]></category>
<category><![CDATA[civil aviation]]></category>
<category><![CDATA[search data]]></category>
<category><![CDATA[computer networks]]></category>
<category><![CDATA[fragments]]></category>
<category><![CDATA[fragmentation]]></category>
		<guid isPermaLink="true">http://www.kods.netwww.kods.net/oracle-database-fragmentation-step-by-step-explaining-how-to-sort-out/</guid>
		<description><![CDATA[Oracle as a large database, widely used in finance, telecommunications, electric power, civil aviation data throughput of large, widespread adoption of computer networks, an important sector. For the  ...]]></description>
		<content:encoded><![CDATA[<table cellspacing=0 cellpadding=0 width="100%" align=center border=0><tbody><tr><td align=middle bgcolor=#bbf0ff></td><tr><td><table bordercolor=#bbf0ff cellspacing=1 cellpadding=0 width="100%" border=1><tbody><tr><td align=middle><table cellspacing=0 cellpadding=0 width=650 border=0><tbody><tr><td align=middle><table cellspacing=0 cellpadding=0 width="100%" border=0><tbody><tr><td width=650><br /><br /> Oracle as a large database, widely used in finance, telecommunications, electric power, civil aviation data throughput of large, widespread adoption of computer networks, an important sector. For the system administrator is concerned, how to ensure stable operation of the network, how to improve database performance, to make it more safe and effective, it is very important. Affect database performance, as one of the major factors - the database fragments, DBA should arouse enough attention to discover and organize the fragments Naishi DBA a fundamental maintain the content. <br /><br /> <strong>1, debris is how to generate the</strong> <br /><br /> When a database is generated, it will be divided into as table space (Tablespace) multiple logical segment (Segment), such as the system (System) table space, the Provisional (Temporary) table space. A table space can contain multiple data range (Extent) and one or more free range blocks, namely, free-space (Free Space). <br /><br /> Table space, segment, range, the logic of the relationship between free-space is as follows: <br /><br /> When the table space to generate a paragraph, the effective free space from the table space for this segment in the initial scope of allocated space. In the full scope of these initial data, the section would be a request to add another range. This expansion process will continue indefinitely, until it reaches the maximum range of values, or the space in the table has no free space for the next range. Ideal state is a segment of the data can be stored in a single range. In this way, all data is stored near the paragraph when the other data, and search data can be a bit less pointers. However, a number of areas which segment contains a large number exist, no measures can guarantee that these areas are adjacent to storage, when a space to meet requirements, the database is no longer adjacent to the freedom of the scope of consolidation (unless no choice) , but look for the table space, the largest free range to use. This will gradually form a more and more discrete, separate, smaller free space, or debris. For example: <br /><br /> <strong>2, the impact of debris on the system</strong> <br /><br /> Over time, database-based application system widely used, the resulting fragments will be more and more of the database will have the following two main effects: <br /><br /> 1) result in reduced system performance. <br /><br /> As mentioned above, when a space to meet the requirements, the database will be the first to find the current largest free range, while the &quot;maximum&quot; free range became smaller and smaller, to find a large enough scope of freedom has become increasingly difficult, leading to the table space, the speed of obstacles, so that the database space allocation increasingly away from the ideal state; <br /><br /> 2) wasting a lot of table space. <br /><br /> Although some of the scope of freedom (such as table space pctincrease non-0) will be SMON (system monitor) background process periodically merge, but there is always a part of the scope of freedom can not be automatically merged, wasting a lot of table space. <br /><br /> <strong>3, calculation of the scope of freedom of debris</strong> <br /><br /> As the free space debris is composed of several parts, such as the range of volume, the largest range of sizes and so on, we can FSFI - Free Space Fragmentation Index (free space debris index) values to visual expression: <br /><br /> FSFI = 100 * SQRT (max (extent) / sum (extents)) * 1/SQRT (SQRT (count (extents))) <br /><br /> As can be seen, FSFI the maximum possible value is 100 (an ideal single-file table space). With the increase in the scope, FSFI value decreased slowly and, with the greatest range of size reduction, FSFI values will decline rapidly. <br /><br /> The following script can be used to calculate the FSFI value: <br /><br /><center><ccid_nobr></ccid_nobr><table cellspacing=0 bordercolordark=#ffffff cellpadding=2 width=400 align=center bordercolorlight=black border=1><tbody><tr><td"FONT-SIZE: 9pt" bgcolor=#e6e6e6> <pre><CCID_CODE>rem FSFI Value Compute <BR>rem fsfi.sql <BR>column FSFI format 999,99 <BR>select tablespace_name,sqrt(max(blocks)/sum(blocks))* <BR>(100/sqrt(sqrt(count(blocks)))) FSFI <BR>from dba_free_space <BR>group by tablespace_name order by 1; <BR>spool fsfi.rep; <BR>/ <BR>spool off;</CCID_CODE></pre> </td></tr></tbody></table></center><br /><br /> For example, in a database, run the script fsfi.sql, get the following FSFI values: <br /><br /><center><ccid_nobr></ccid_nobr><table cellspacing=0 bordercolordark=#ffffff cellpadding=2 width=400 align=center bordercolorlight=black border=1><tbody><tr><td"FONT-SIZE: 9pt" bgcolor=#e6e6e6> <pre><CCID_CODE>TABLESPACE_NAME FSFI <BR><BR>------------------------------------- <BR><BR>RBS 74.06 <BR><BR>SYSTEM 100.00 <BR><BR>TEMP 22.82 <BR><BR>TOOLS 75.79 <BR><BR>USERS 100.00 <BR><BR>USER_TOOLS 100.00 <BR><BR>YDCX_DATA 47.34 <BR><BR>YDCX_IDX 57.19 <BR><BR>YDJF_DATA 33.80 <BR><BR>YDJF_IDX 75.55</CCID_CODE></pre> </td></tr></tbody></table></center><br /> The statistics of the database FSFI values, you can use it as a comparable argument. In a country with effective enough free space, and the FSFI value of more than 30 of the table space, rarely meet the effective free space. When a space will be near the comparable parameters, we need to do a defragmentation. <br /><br /> <strong>4, free range defrag</strong> <br /><br /> 1) Table space pctincrease the value of non-0. <br /><br /> Can be the default tablespace storage parameters pctincrease to non-0. Normally be set to 1, such as: <br /><br /><center><ccid_nobr></ccid_nobr><table cellspacing=0 bordercolordark=#ffffff cellpadding=2 width=400 align=center bordercolorlight=black border=1><tbody><tr><td"FONT-SIZE: 9pt" bgcolor=#e6e6e6> <pre><CCID_CODE>alter tablespace temp <BR><BR>default storage(pctincrease 1);</CCID_CODE></pre> </td></tr></tbody></table></center><br /> This will be free range SMON automatically merged. The scope of freedom can also be merged manually: alter tablespace temp coalesce. <br /><br /> <strong>5, paragraph defragmentation</strong> <br /><br /> We know that the segment formed by the range. In some cases, it is necessary to sort out the debris section. To view the segment information, you can view the data dictionary dba_segments, the scope of information can view the data dictionary dba_extents. If the segment fragments too much of its data compression to a range of the most simple way is to use the correct storage parameters for the reconstruction of this segment, and then the old data in the table inserted into a new table, and delete the old table. This process can use Import / Export (input / output) tool to complete. <br /><br /> Export () command has a (compressed) flag, this flag will be raised at the reading table Export table to determine the amount of physical space allocated, it will dump file is written to the output of the initialization of a new storage parameters - equal to all the the allocated space. If this table is off, then use the Import () tools to regenerate. In this way, its data will be placed in a new, larger initial segment. For example: <br /><br /><center><ccid_nobr></ccid_nobr><table cellspacing=0 bordercolordark=#ffffff cellpadding=2 width=400 align=center bordercolorlight=black border=1><tbody><tr><td"FONT-SIZE: 9pt" bgcolor=#e6e6e6> <pre><CCID_CODE>exp user/password file=exp.dmp compress=Y grants=Y indexes=Y <BR><BR>tables=(table1,table2);</CCID_CODE></pre> </td></tr></tbody></table></center><br /> If the output of success, from the database to delete the output table, and then enter the dump file from the output table: <br /><br /> imp user / password file = exp.dmp commit = Y buffer = 64000 full = Y <br /><br /> This method can be used for the entire database. <br /><br /> Oracle database, for more than a simple analysis of debris, calculation method and collate for reference only. Database performance optimization is a high technological content, while the need for adequate patient, careful and meticulous work. A bit of debris on the database, <br /><br /> Here is how the automatic processing of a table space debris code, want to be useful at all to see above <br /><br /><ccid_nobr></ccid_nobr> <pre><CCID_CODE>Coalesce Tablespace Automatically <BR>This technique comes from Sandeep<BR> Naik, a database administrator <BR>for GSXXI, Inc. in New York City, New York <BR>Here is a handy script which can be <BR>scheduled to automatically run <BR>and coalesces the tablespaces. <BR>This script is designed to run in NT <BR>but can be run in any operating system <BR>by slight modifications in the path where the file spools <BR>from the SQLPLUS environment. <BR>It assumes that the user who runs the script <BR>has priviledges to view the data dictionary. <BR>Start of code <BR>-------------------------------------- <BR>sqlplus / <BR>prompt this script will coalesce the <BR>tablespace automatically <BR>set verify off; <BR>set termout off; <BR>set head off; <BR>spool c: empcoalesce.log <BR>select alter tablespace <BR>||TABLESPACE_NAME|| coalesce ; <BR>from DBA_FREE_SPACE_COALESCED where <BR>PERCENT_EXTENTS_COALESCED &lt;100 <BR>or PERCENT_BLOCKS_COALESCED&lt;100 ; <BR>spool off; <BR>@ c: empcoalesce.log <BR>set head on; <BR>set termout on; <BR>set verify on; <BR>prompt Tablespaces are coalesced successfully</CCID_CODE></pre> <br /></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table>				<h5>Related Posts</h5>
		<div id="smilar">
		<ul>
					<li><a href="http://www.kods.netwww.kods.net/sql-optimization-3-four-index/" title="SQL optimization (3) - four index">SQL optimization (3) - four index</a> 2009-03-28 13:10:06</li>
					<li><a href="http://www.kods.netwww.kods.net/sql-optimization-1-full-table-scan-and-index-the-test/" title="SQL optimization (1) - full table scan and index the test">SQL optimization (1) - full table scan and index the test</a> 2009-03-28 09:02:39</li>
					<li><a href="http://www.kods.netwww.kods.net/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>
				</ul>
		</div>
		        ]]></content:encoded>
		<wfw:commentRss>http://www.kods.netwww.kods.net/oracle-database-fragmentation-step-by-step-explaining-how-to-sort-out/</wfw:commentRss>
	</item>
		<item>
		<title>How to quickly identify lock waiting for Oracle Database</title>
		<link>http://www.kods.netwww.kods.net/how-to-quickly-identify-lock-waiting-for-oracle-database/</link>
		<comments>http://www.kods.netwww.kods.net/how-to-quickly-identify-lock-waiting-for-oracle-database/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 13:30:49+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle Database]]></category>
		<category><![CDATA[quot]]></category>
<category><![CDATA[oracle]]></category>
<category><![CDATA[oracle database]]></category>
<category><![CDATA[dba]]></category>
<category><![CDATA[database systems]]></category>
<category><![CDATA[rollback]]></category>
<category><![CDATA[consistency]]></category>
<category><![CDATA[database administrator]]></category>
<category><![CDATA[submission]]></category>
<category><![CDATA[crash]]></category>
<category><![CDATA[client server]]></category>
<category><![CDATA[database application system]]></category>
<category><![CDATA[server client]]></category>
<category><![CDATA[timely manner]]></category>
<category><![CDATA[many other types]]></category>
<category><![CDATA[allocation unit]]></category>
<category><![CDATA[timely release]]></category>
<category><![CDATA[prob]]></category>
		<guid isPermaLink="true">http://www.kods.netwww.kods.net/how-to-quickly-identify-lock-waiting-for-oracle-database/</guid>
		<description><![CDATA[In a large database systems, in order to ensure data consistency, in the right data in the database to operate, the system will be conducted on the data corresponding lock. ---- These lock in the &quo ...]]></description>
		<content:encoded><![CDATA[<table cellspacing=0 cellpadding=0 width="100%" align=center border=0>
<tbody>
<tr>
<td align=middle bgcolor=#bbf0ff></td>
<tr>
<td>
<table bordercolor=#bbf0ff cellspacing=1 cellpadding=0 width="100%" border=1>
<tbody>
<tr>
<td align=middle>
<table cellspacing=0 cellpadding=0 width=650 border=0>
<tbody>
<tr>
<td align=middle>
<table cellspacing=0 cellpadding=0 width="100%" border=0>
<tbody>
<tr>
<td width=650><br /> In a large database systems, in order to ensure data consistency, in the right data in the database to operate, the system will be conducted on the data corresponding lock. <p> <font color=#ffffff>----</font> These lock in the &quot;read lock&quot;, &quot;exclusive lock&quot;, &quot;shared exclusive lock&quot; and many other types, and each type has &quot;row-level locking&quot; (one lock a record), &quot;page-level lock&quot; (a locked one, that is stored in the database can be recorded in the smallest allocation unit), &quot;table-level lock&quot; (lock the entire table). <p> <font color=#ffffff>----</font> If it is &quot;row-level exclusive lock&quot;, then, subject to being locked in the bank, the other rows in the table may be modified by other users (Update) or remove (delete) operations, if it is &quot; table-level exclusive lock &quot;, then all other users can only query the table (select) operation, which can not be right to modify or delete any record. When the program modifications made to submit (commit), or after the rollback (rollback), the locked resources would be released, allowing other users to operate. <p> <font color=#ffffff>----</font> But, sometimes, because of the reasons for locking resources, not long after the submission of their work; or because of the user&#39;s reasons, such as a need to modify the transfer of data, not timely revised and submitted, but is placed on one side; or because of the way client-server client a &quot;crash&quot; while the server is not detected, resulting in the release of locked resources in a timely manner not affecting the operation of other users. <p> <font color=#ffffff>----</font> So, how to quickly diagnose and resolve user locking of resources is the database administrator to lock a challenge. <p> <font color=#ffffff>----</font> As the database application system more complex, once the resources are not due to the timely release of the lock case, it would create the same table to operate on a large number of users can not operate, thus affecting the use of the system. At this point, DBA should try to quickly solve the problem. However, due to the implementation of the Oracle 8.0.x &quot;Get the user is waiting for the lock resource name&quot; query <pre>select a.username, a.sid, a.serial#, b.id1
  from v$session a, v$lock b
  where a.lockwait = b.kaddr
</pre> <font color=#ffffff>----</font> very slow (in Oracle 7.3.4 in the implementation of the fast), and the implementation of the &quot;Find blocking other user&#39;s process &quot;query <pre>    select a.username, a.sid, a.serial#, b.id1
      from v$session a, v$lock b
     where b.id1 in
           (select distinct e.id1
              from v$session d, v$lock e
             where d.lockwait = e.kaddr)
       and a.sid = b.sid
       and b.request = 0
</pre> <font color=#ffffff>----</font> implementation was also very slow. Therefore, often forced by v $ session in the status of &quot;inactive&quot; (inactive) and the last for hours of operation to the current more than 20 minutes (last_call_et&gt; 20 * 60 seconds) of the user process clear, then that makes the problem is solution. <p> <font color=#ffffff>----</font> However, this method is actually &quot;throwing the baby out with the dirty water, together.&quot; Because some users of the process, although also &quot;inactive&quot;, and also has been a long time without activity, but it is because they are in lock wait state. <p> <font color=#ffffff>----</font> So, I have come up with a solution. The problem occurs through the v $ lock, v $ session view the related record-keeping in their own table set up, and then query the table, then the higher speed, you can quickly find the problem. The actual use, the effect was very good. After receiving the user to reflect a few seconds to lock up resources to identify the impact due to the process of other users, and make the appropriate treatment. <p> <font color=#ffffff>----</font> First, dba capacity (not necessarily for the system) log into the database, create three basic tables: my_session, my_lock, my_sqltext, and the column will be carried out inquiries to establish the corresponding index. Statement is as follows: rem from v $ session view, out of concern to the field, creating my_session table and fields in the query to use to create indexes to speed up the query speed <pre>drop table my_session;
create table my_session
as
select a.username, a.sid, a.serial#,
a.lockwait, a.machine,a.status,
a.last_call_et,a.sql_hash_value,a.program
  from v$session a
 where 1=2 ;

create unique index my_session_u1 on my_session(sid);
create index my_session_n2 on my_session(lockwait);
create index my_session_n3 on my_session(sql_hash_value);
</pre> <font color=#ffffff>----</font> rem from v $ lock view out the field, create my_lock table and fields in the query to use to create indexes to speed up the query speed <pre>drop table my_lock;
create table my_lock
as
select id1, kaddr, sid, request,type
  from v$lock
 where 1=2;

create index my_lock_n1 on my_lock(sid);
create index my_lock_n2 on my_lock(kaddr);
</pre> <font color=#ffffff>----</font> rem from v $ sqltext view, remove the field, create my_sqltext table, and in the query to use to field to create an index to speed up the query speed <pre>drop table my_sqltext;
create table my_sqltext
as
select hash_value , sql_text
  from v$sqltext
 where 1=2;

create index my_sqltext_n1 on my_sqltext ( hash_value);
</pre> <font color=#ffffff>----</font> Then, create a SQL script file, so that the need arises directly from the SQL * Plus calls. Among them, first using truncate table table command will remove records in the table. The reason to use truncate command, rather than using delete command, because the delete command, it will produce a repeat record, slow, and the amount of space the index has not really released, if done repeatedly insert and delete, then the index of the accounting for the space will continue to increase query speed will be slow. The truncate command does not produce a repeat records, delete faster than the speed of implementation, and the index space is accordingly released. Remove the record, and then three view records into their own to create the three tables. Finally, its query, because the index, and because the conditions in the insertion After filtration, the number of records there are relatively few, so check very quickly as soon as you can see the results. <p> <font color=#ffffff>----</font>At this point, if it found that the process of blocking the process of other users is a normal operation, you can notify the user to submit them to achieve the purpose of releasing the lock of resources; if it is not normal operation, that is, its status is &quot;inactive&quot;, and its last_call_et have more time, you can execute the following statement to clear the process, the system will automatically roll back them to release the locked resources. <pre>   alter system kill session 'sid, serial#';  </pre> <font color=#ffffff>----</font> SQL script is as follows: <pre>set echo off
set feedback off
prompt '删除旧记录.....'
truncate table my_session;
truncate table my_lock;
truncate table my_sqltext;

prompt '获取数据.....'
insert into my_session
select a.username, a.sid, a.serial#,
       a.lockwait, a.machine,a.status,
       a.last_call_et,a.sql_hash_value,a.program
  from v$session a
 where nvl(a.username,'NULL')&lt; &gt;'NULL;

insert into my_lock
select id1, kaddr, sid, request,type
  from v$lock;

insert into my_sqltext
select hash_value , sql_text
  from v$sqltext s, my_session m
 where s.hash_value=m.sql_hash_value;

column username format a10
column machine format a15
column last_call_et format 99999 heading "Seconds"
column sid format 9999

prompt "正在等待别人的用户"
select a.sid, a.serial#, 
a.machine,a.last_call_et, a.username, b.id1
  from my_session a, my_lock b
 where a.lockwait = b.kaddr;

prompt "被等待的用户"
select a.sid, a.serial#, 
a.	machine,  a.last_call_et,a.username,
b.	 b.type,a.status,b.id1
  from my_session a, my_lock b
 where b.id1 in
      (select distinct e.id1
         from my_session d, my_lock e
        where d.lockwait = e.kaddr)
   and a.sid = b.sid
   and b.request=0;

prompt "查出其  sql "
select a.username, a.sid, a.serial#,
 b.id1, b.type, c.sql_text
  from my_session a, my_lock b, my_sqltext c
 where b.id1 in
       (select distinct e.id1
          from my_session d, my_lock e
         where d.lockwait = e.kaddr)
   and a.sid = b.sid
   and b.request=0
   and c.hash_value =a.sql_hash_value;
  </pre> <font color=#ffffff>----</font> the above ideas can also be used in other large database systems such as Informix, Sybase, DB2 in. By using this script, you can greatly improve the acquisition system that is currently waiting for the lock, and hence timely resolution of database application system in the lock waiting for problems. Moreover, since the program has actually removed his name and the corresponding sql statement, it can later be recorded and handed over to the developers for analysis and fundamentally solved. <br /><br /></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table>				<h5>Related Posts</h5>
		<div id="smilar">
		<ul>
					<li><a href="http://www.kods.netwww.kods.net/sga-extended-the-principle-of-32bit-oracle/" title="SGA extended the principle of 32bit oracle">SGA extended the principle of 32bit oracle</a> 2009-03-31 09:48:01</li>
					<li><a href="http://www.kods.netwww.kods.net/an-example-of-the-use-of-tkprof/" title="An example of the use of TKPROF">An example of the use of TKPROF</a> 2009-02-26 01:38:19</li>
					<li><a href="http://www.kods.netwww.kods.net/diagnosis-and-principles-of-order/" title="Diagnosis and principles of order">Diagnosis and principles of order</a> 2009-02-25 20:27:28</li>
					<li><a href="http://www.kods.netwww.kods.net/oracle-10g-dataguard-configuration-step-by-step/" title="ORACLE 10G dataguard configuration Step by Step">ORACLE 10G dataguard configuration Step by Step</a> 2009-02-16 01:13:55</li>
				</ul>
		</div>
		        ]]></content:encoded>
		<wfw:commentRss>http://www.kods.netwww.kods.net/how-to-quickly-identify-lock-waiting-for-oracle-database/</wfw:commentRss>
	</item>
		<item>
		<title>Oracle database, the operation method of the partition table</title>
		<link>http://www.kods.netwww.kods.net/oracle-database-the-operation-method-of-the-partition-table/</link>
		<comments>http://www.kods.netwww.kods.net/oracle-database-the-operation-method-of-the-partition-table/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 08:36:07+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle Database]]></category>
		<category><![CDATA[oracle]]></category>
<category><![CDATA[database applications]]></category>
<category><![CDATA[three ways]]></category>
<category><![CDATA[system performance]]></category>
<category><![CDATA[query performance]]></category>
<category><![CDATA[partition table]]></category>
<category><![CDATA[oracle database table]]></category>
<category><![CDATA[retrieval speed]]></category>
<category><![CDATA[hash]]></category>
<category><![CDATA[scale application]]></category>
<category><![CDATA[partitions]]></category>
<category><![CDATA[table spaces]]></category>
<category><![CDATA[data management]]></category>
<category><![CDATA[application systems]]></category>
<category><![CDATA[business data processing]]></category>
<category><![CDATA[object queries]]></category>
<category><![CDATA[test demo]]></category>
<category><![CDATA[storage media]]></category>
<category><![CDATA[processing technology]]></category>
<category><![CDATA[enterprise application]]></category>
		<guid isPermaLink="true">http://www.kods.netwww.kods.net/oracle-database-the-operation-method-of-the-partition-table/</guid>
		<description><![CDATA[Abstract: In a large number of business data processing projects, consider using the partition table to improve the performance of application systems and to facilitate data management, This paper des ...]]></description>
		<content:encoded><![CDATA[<table cellspacing=0 cellpadding=0 width="100%" align=center border=0><tbody><tr><td align=middle bgcolor=#bbf0ff></td><tr><td><table bordercolor=#bbf0ff cellspacing=1 cellpadding=0 width="100%" border=1><tbody><tr><td align=middle><table cellspacing=0 cellpadding=0 width=650 border=0><tbody><tr><td align=middle><table cellspacing=0 cellpadding=0 width="100%" border=0><tbody><tr><td width=650><br /><br /> <font size=3><strong>Abstract:</strong> In a large number of business data processing projects, consider using the partition table to improve the performance of application systems and to facilitate data management, This paper describes the use of the partition table. <br /><br /> In the large enterprise application or enterprise-level database applications, to handle the amount of data can often be the order of tens to hundreds of GB, and some even go to TB level. While the storage media and data processing technology is also fast, but still can not meet the needs of users, in order to enable users of the large amount of data in the read and write operations and queries faster, Oracle provides a table and index partitioning technology, in order to improve the performance of large-scale application systems. <br /><br /> Advantages of using the partition: <br /><br /> * Enhanced usability: If the table a partition fails, the table in other divisions of the data is still available; <br /><br /> * Easy to maintain: If the table a partition fails, the data need to be repaired, only you can repair the partition; <br /><br /> * Balanced I / O: can be mapped to different partitions in order to balance the disk I / O, improving the overall system performance; <br /><br /> * To improve the query performance: The partition object queries can only search your area of concern to improve the retrieval speed. <br /><br /> Oracle database table or index partition in three ways: <br /><br /> * Range partitioning <br /><br /> · Hash partition (hash partition) <br /><br /> * Composite Partitioning <br /><br /> The following examples will be these three kinds of partitioning methods, respectively, to illustrate the use of the partition table. To test convenience, let us build three table spaces. <br /><br /></font> <table bordercolor=#ffcc66 width="90%" align=center bgcolor=#dadacf border=1><tbody><tr><td> <font size=3>create tablespace dinya_space01 <br /> datafile &#39;/ test/demo/oracle/demodata/dinya01.dnf&#39; size 50M <br /> create tablespace dinya_space01 <br /> datafile &#39;/ test/demo/oracle/demodata/dinya02.dnf&#39; size 50M <br /> create tablespace dinya_space01 <br /> datafile &#39;/ test/demo/oracle/demodata/dinya03.dnf&#39; size 50M</font> </td></tr></tbody></table><br /> <font size=3><strong>1.1. Partition table to create</strong> <br /><br /> 1.1.1. Range partitioning <br /><br /> Range partitioning is a data table, the value of the scope of a district, according to a certain range of values, decided that the data is stored in which partition. If under the serial number area, according to business records such as the creation date of partition. <br /><br /> Requirements Description: There is a material transaction table, the table name: material_transactions. The table in the future there may be 10 million data records. Required to build the table when the use of the partition table. At this time we can use the serial number partition three zones, each zone is expected to store 30 million of data, you can also use the date of partition, such as every five years, the data is stored in a partition. <br /><br /> According to the serial number of transactions to build partition table: <br /><br /></font> <table bordercolor=#ffcc66 width="90%" align=center bgcolor=#dadacf border=1><tbody><tr><td> <font size=3>SQL&gt; create table dinya_test <br /> 2 ( <br /> 3 transaction_id number primary key, <br /> 4 item_id number (8) not null, <br /> 5 item_description varchar2 (300), <br /> 6 transaction_date date not null <br /> 7) <br /> 8 partition by range (transaction_id) <br /> 9 ( <br /> 10 partition part_01 values less than (30000000) tablespace dinya_space01, <br /> 11 partition part_02 values less than (60000000) tablespace dinya_space02, <br /> 12 partition part_03 values less than (maxvalue) tablespace dinya_space03 <br /> 13); <br /> Table created.</font> </td></tr></tbody></table><br /> <font size=3>The successful construction of the table, according to the transaction number, transaction ID in the 30 million below the record will be stored in a table space dinya_space01, the district is named: par_01, in between 30000000-60000000 record is stored in the second table Space: <br /><br /> dinya_space02, the district is named: par_02, the transaction ID in more than 60 million records stored in a third tablespace dinya_space03, the district is named par_03. <br /><br /> According to date of the transaction to build partition table: <br /><br /></font> <table bordercolor=#ffcc66 width="90%" align=center bgcolor=#dadacf border=1><tbody><tr><td> <font size=3>SQL&gt; create table dinya_test <br /> 2 ( <br /> 3 transaction_id number primary key, <br /> 4 item_id number (8) not null, <br /><br /> 5 item_description varchar2 (300), <br /> 6 transaction_date date not null <br /> 7) <br /> 8 partition by range (transaction_date) <br /> 9 ( <br /> 10 partition part_01 values less than (to_date (&#39;2006-01-01 &#39;,&#39; yyyy-mm-dd &#39;)) <br /> tablespace dinya_space01, <br /> 11 partition part_02 values less than (to_date (&#39;2010-01-01 &#39;,&#39; yyyy-mm-dd &#39;))</font><br /> tablespace dinya_space02, <br /> 12 partition part_03 values less than (maxvalue) tablespace dinya_space03 <br /> 13); <br /> Table created. </td></tr></tbody></table><br /> <font size=3>So that we were built, transaction number and transaction date to partition the partition table. Insert the data for each time, the system will be based on the value of the specified field to automatically record store to the development of a partition (table space). <br /><br /> Of course, we can also demand the use of two fields in the scope of the distribution to partition, such as the partition by range (transaction_id, transaction_date), regional conditions, the value also changes accordingly, the reader is self-testing. <br /><br /> 1.1.2. Hash partition (hash partition) <br /><br /> Hash partition by specifying a uniform distribution of the data partition numbers to a partition type, because through the I / O devices on a hash partition, so that these partitions the same size. If the material transaction data in the table to the hash of the transaction ID stored in the designated space of three tables: <br /><br /></font> <table bordercolor=#ffcc66 width="90%" align=center bgcolor=#dadacf border=1><tbody><tr><td> <font size=3>SQL&gt; create table dinya_test <br /> 2 ( <br /> 3 transaction_id number primary key, <br /> 4 item_id number (8) not null, <br /> 5 item_description varchar2 (300), <br /> 6 transaction_date date <br /> 7) <br /> 8 partition by hash (transaction_id) <br /> 9 ( <br /> 10 partition part_01 tablespace dinya_space01, <br /> 11 partition part_02 tablespace dinya_space02, <br /> 12 partition part_03 tablespace dinya_space03 <br /> 13); <br /> Table created.</font> </td></tr></tbody></table><br /> <font size=3>The successful construction of the table, this time inserting the data, the system will record the hash will be inserted transaction_id three partitions, here is three different table space. <br /><br /> 1.1.3. Composite Partitioning <br /><br /> Sometimes we need to range partitioning, each sub-region re-hash of data distributed among several tables space, so we will use the composite partition. Composite partition is the first use of partitions, and then re-use in each sub-region of a hash partition partition methods, such as the material record of the transaction by the time partition, and then the data in each partition is divided into three sub-partitions, using the data, scattered listed in the table is stored in the three designated space: <br /><br /></font> <table bordercolor=#ffcc66 width="90%" align=center bgcolor=#dadacf border=1><tbody><tr><td> <font size=3>SQL&gt; create table dinya_test <br /> 2 ( <br /> 3 transaction_id number primary key, <br /> 4 item_id number (8) not null, <br /> 5 item_description varchar2 (300), <br /> 6 transaction_date date <br /> 7) <br /> 8 partition by range (transaction_date) subpartition by hash (transaction_id) <br /> 9 subpartitions 3 store in (dinya_space01, dinya_space02, dinya_space03) <br /> 10 ( <br /> 11 partition part_01 values less than (to_date (&#39;2006-01-01 &#39;,&#39; yyyy-mm-dd &#39;)), <br /> 12 partition part_02 values less than (to_date (&#39;2010-01-01 &#39;,&#39; yyyy-mm-dd &#39;)), <br /> 13 partition part_03 values less than (maxvalue) <br /> 14); <br /> Table created.</font> </td></tr></tbody></table><br /> <font size=3>This example, the first trading date range under the partition, and then record the transaction ID will be stored in three hash table space. <br /></font> <br /><br /></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table>				<h5>Related Posts</h5>
		<div id="smilar">
		<ul>
					<li><a href="http://www.kods.netwww.kods.net/sga-extended-the-principle-of-32bit-oracle/" title="SGA extended the principle of 32bit oracle">SGA extended the principle of 32bit oracle</a> 2009-03-31 09:48:01</li>
					<li><a href="http://www.kods.netwww.kods.net/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-database-the-operation-method-of-the-partition-table/</wfw:commentRss>
	</item>
		<item>
		<title>Oracle database character set conversion law of a comprehensive analysis of</title>
		<link>http://www.kods.netwww.kods.net/oracle-database-character-set-conversion-law-of-a-comprehensive-analysis-of/</link>
		<comments>http://www.kods.netwww.kods.net/oracle-database-character-set-conversion-law-of-a-comprehensive-analysis-of/#comments</comments>
		<pubDate>Fri, 29 Jan 2010 10:35:02+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle Database]]></category>
		<category><![CDATA[oracle]]></category>
<category><![CDATA[export import]]></category>
<category><![CDATA[data backup]]></category>
<category><![CDATA[target database]]></category>
<category><![CDATA[character sets]]></category>
<category><![CDATA[source database]]></category>
<category><![CDATA[character set issues]]></category>
<category><![CDATA[chinese characters]]></category>
<category><![CDATA[oracle users]]></category>
<category><![CDATA[inconsistency]]></category>
<category><![CDATA[export user]]></category>
<category><![CDATA[binary format]]></category>
<category><![CDATA[oracle database users]]></category>
<category><![CDATA[conversion law]]></category>
<category><![CDATA[unnecessary data]]></category>
<category><![CDATA[set id]]></category>
<category><![CDATA[recovery tool]]></category>
		<guid isPermaLink="true">http://www.kods.netwww.kods.net/oracle-database-character-set-conversion-law-of-a-comprehensive-analysis-of/</guid>
		<description><![CDATA[Oracle database character set conversion law of a comprehensive analysis of rn rn rn A good article in this chapter, specific and comprehensive. rn rn rn As an Oracle database users, for the Export an ...]]></description>
		<content:encoded><![CDATA[Oracle database character set conversion law of a comprehensive analysis of <br /> rn <br /><br /> rn <br /><br /> rn <br /> A good article in this chapter, specific and comprehensive. <br /> rn <br /><br /> rn <br /> rn <br /> As an Oracle <FONT color=#0000ff>database</font> users, for the Export and Import two commands will not feel strange, because this is exactly what we both frequently used for data backup and recovery tool. However, in using these two commands have taken place during the Oracle character set issues, often to a number of Oracle users to unnecessary trouble and unnecessary data loss. This will Export and Import process Oracle character set conversion laws and the use of these two commands will make a summary note. rn <P> <strong>The reasons for character set conversion</strong> <br /><br /> rn<br /> Export, Import process, as shown above can be seen from this diagram there are four related to the character set, which is four character sets is precisely the cause of the inconsistency Oracle character set conversion for reasons. rn <P> * Source <FONT color=#0000ff>database</font> character set; rn <P> * Export the course of a user session character set; rn <P> * Import the course of a user session character set; rn <P> * Target <FONT color=#0000ff>database</font> character set. rn <P> In the Export and Import process, if there is character set conversion affect the four factors that are inconsistent, then the Oracle character set conversion can occur, namely: rn <P> In the Export process, if the source <FONT color=#0000ff>database</font> character sets and Export user session character set inconsistent, character set conversion will occur, and in the exported binary format Dmp files stored in the head a few bytes of Export user session character set ID. In this conversion process may occur in data loss. rn <P> Example 1: If the source <FONT color=#0000ff>database</font> to use ZHS16GBK, while the Export user session character set to use US7ASCII, because ZHS16GBK are 8-bit character set, while the US7ASCII is 7-bit character set, this conversion process, the Chinese characters in the US7ASCII not be able to find, etc. characters, so all Chinese characters will be lost and turned into &quot;??&quot; form, that is generated after such a conversion Dmp file data loss has occurred. rn <P> Example 2: If the source <FONT color=#0000ff>database</font> to use ZHS16GBK, while the Export user session character set to use ZHS16CGB231280, but ZHS16GBK character set is a superset of character set ZHS16CGB231280, this process can correct the majority of character transformation, only a few character sets beyond ZHS16CGB231280 characters become &quot;??&quot; form. If the source <FONT color=#0000ff>database</font> using ZHS16CGB231280 character set, while the Export the user&#39;s session using ZHS16GBK character set, then the conversion process can be completely successful conversion. rn <P> In the Import to the target <FONT color=#0000ff>database</font> during the conversion process, its character set conversion is exactly the opposite happened during Export contrary, there shall not repeat. rn <P> Dmp exported in the Export file, containing the Export user session character set. In the Import process, the first place is the Dmp document character set (ie, Export user session character set) to the Import user session character set conversion. If this conversion process can not be completed properly, Import to the target <FONT color=#0000ff>database,</font> the import process also can not be completed. rn <P> <strong>Carried out the correct character set conversion</strong> rn <P> Under normal circumstances, we use Oracle&#39;s Export and Import process, do not want to place characters in the conversion, but sometimes such a conversion is necessary. If we install the Oracle <FONT color=#0000ff>database,</font> select ZHS16CGB231280 character set, because of this character set is a small Chinese character set, for some characters can not be correctly said that this needs to be resolved using the ZHS16GBK character set, this time will be carried out character set conversion. rn <P> In order to ensure that the Export, Import process, Oracle character set conversion or incorrect conversion does not occur, we recommend the best course of this process before, check the source <FONT color=#0000ff>database</font> character sets and Export user session character set is consistent, the source <FONT color=#0000ff>database</font> and target <FONT color=#0000ff>database</font> character set characters sets are the same target <FONT color=#0000ff>database</font> character with the Import user session character sets are the same. If you can guarantee that this four character sets are identical, then Export, Import process, Oracle character set conversion would not have happened. rn <P> Using the following way to check <FONT color=#0000ff>the database</font> character set: rn <P> By InitXXXX.ora file view; rn <P> With SQL statements see: SELECT NAME, VALUE $ FROM SYS.PROPS $ WHERE NAME = &#39;NLS_CHARACTERSET&#39;. rn <P> For Export, Import user session character set, in the Windows system registry can also be in the NLS_LANG to view or modify, for Unix System provides the user&#39;s environment variable by setting the NLS_LANG to view or modify. rn <P> In particular, note that, Oracle <FONT color=#0000ff>database</font> character set is usually determined at the time created, once the stored user data should not be modified after, because its data is stored using the character set, and change the other character sets, the original data not be able to correctly expressed. But if it does want to change the character set, you can be achieved through the following steps: rn <P> Backup <FONT color=#0000ff>the database</font> to delete the original data (can be physical backup, such as the use of Export, please note that to ensure the character set conversion or data does not occur without loss); rn <P> Use Internal user updates sys.props $ table character set: rn <P> rn <CENTER><CCID_NOBR> rn <TABLE cellSpacing=0 borderColorDark=#ffffff cellPadding=2 width=400 align=center borderColorLight=black border=1> rn <TBODY> rn <TR> rn <TD"FONT-SIZE: 9pt" bgColor=#e6e6e6> <PRE><CCID_CODE>Update sys.props$ set name=‘Dest.CharSet’ rnWhere name=‘NLS_CHARACTERSET’; COMMIT;</CCID_CODE></PRE> </TD></TR></TBODY></TABLE></CCID_NOBR></CENTER> rn <P> Restart <FONT color=#0000ff>the database;</font> rn <P> Restore the data. rn <P> The following conversion between character sets is feasible: rn <P> Character set collections sets the parent to the character set conversion is feasible, such as ZHS16CGB231280 to ZHS16GBK conversion; and character set the parent class to the character set conversion collected works, it will lose some of the data. rn <P> Contains only English characters of the double-byte character set data can also be converted to single-byte character sets, such as ZHS16GBK (English Only) can US7ASCII converted properly. rn <P> The scope of the same single-byte coded character set conversion between each other can often be. rn <P> Please note that the data loss is not mentioned here, refers to a character set A character set into another, after B, B can be further from the character set into the correct character set A or B character set A character set that can correctly converted over data. <br /><br /> rn <br /> <strong>Character set of the program</strong> rn <P> According to how many bytes a character need to be expressed in the character set can be divided into single-byte character sets and multi-byte character sets. Among them, single-byte character set is divided into 7-bit character set and the 8-bit character sets. Single-byte 7-bit coded character set are US7ASC Ⅱ, single-byte 8-bit coded character set are in line with ISO 8859-1 standard specifies the WE8ISO8859P1 so. Multi-byte code is divided into fixed-length (length greater than or equal to 2) encoding mode and non-fixed length encoding mode. Multi-byte coded character set of the ZHS16GBK, ZHS16CGB231280, JA16SJIS such as is used to represent a character two-byte character set, also known as double-byte character sets. rn <P> An alphabet is a character, a Chinese characters are a few characters do? We know that a Chinese character is a double-byte characters, but it has several characters related to its <FONT color=#0000ff>database</font> character set. If the <FONT color=#0000ff>database</font> character set to use single-byte US7ASCII, then a Chinese characters are the two characters; If the <FONT color=#0000ff>database</font> character set to use double-byte character set ZHS16GBK, is a Chinese character is a character. On this point you can use the Oracle function Substr been proven. rn <P> When using the US7ASC Ⅱ character sets: rn <P> Select substr ( &#39;Northeastern University&#39;, 1,2) from dual; rn <P> Statement to the implementation of the results returned &#39;the East&#39;. rn <P> ZHS16GBK character set to use when: rn <P> Select substr ( &#39;Northeastern University&#39;, 1,2) from dual; rn <P> Statement to the implementation of the results returned &#39;the Northeast&#39;. rn <P> Select the appropriate <FONT color=#0000ff>database</font> character set rn <P> Select <FONT color=#0000ff>the database</font> character set should consider the following items: rn <P> <strong>1. <FONT color=#0000ff>Database</font> need to support what language</strong> rn <P> Choice for <FONT color=#0000ff>the database</font> character set, often they will find several character sets are suitable for your current language requirements, such as Simplified Chinese, there ZHS16GBK and ZHSCGB231280 other character sets to choose from, which should be selected? In selecting character set should be considered when the future system requirements to the <FONT color=#0000ff>database.</font> If you know the future, <FONT color=#0000ff>the database</font> should be extended to support different languages, choose a wider range of characters that assembly is a better idea. rn <P> <strong>2. System resources and application of the interaction between the nature of</strong> rn <P> Select the <FONT color=#0000ff>database</font> character set should ensure that the operating system and applications seamless connection between. If you select the operating system character set is not a valid character set, the system will need to do between these two character conversion. In such a character during the conversion process, there may occur the phenomenon of a number of characters is lost. From one to another character set A character set B during the conversion process, A the characters must be equivalent in B can be found in the character, otherwise the &quot;?&quot; Instead. In this sense, if the scope of two kinds of character set encoding is the same, you can convert each other. rn <P> Character set conversion process can affect system performance, therefore, should ensure that the client and server-side have the same character set in order to avoid character set conversion, but also can improve a certain degree of system performance. rn <P> <strong>3. The system performance requirements</strong> rn <P> Different <FONT color=#0000ff>database</font> character set for the performance of <FONT color=#0000ff>the database</font> have a certain effect. To get the best <FONT color=#0000ff>database</font> performance, choose the <FONT color=#0000ff>database</font> character set should avoid character conversion, and to select the desired language for the most efficient coding efficiency. Typically, single-byte character set than the multi-byte character sets have better performance in smaller space requirements are also more. rn <P> <strong>4. Other limitations</strong> rn <P> In a suitable choice for the <FONT color=#0000ff>database</font> character set should refer to the corresponding versions of Oracle documentation, check the Oracle character set for a number of limitations. Such as the Oracle 8.1.5 version, the following character sets can not be used: JA16EUCFIXED, ZHS16GBKFIXED, JA16DBCSFIXED, KO16DBCSFIXED, ZHS16DBCSFIXED, JA16SJISFIXED, ZHT32TRISFIXED. rn <P> In summary, the correct understanding of Oracle character set conversion process will enable us to avoid unnecessary trouble and data loss. The rational use of Oracle character set conversion process can also help us to correctly convert from one character set to another character set to meet our demand for a variety of applications.				<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-database-character-set-conversion-law-of-a-comprehensive-analysis-of/</wfw:commentRss>
	</item>
		<item>
		<title>Oracle Database Backup and Recovery Summary -exp/imp</title>
		<link>http://www.kods.netwww.kods.net/oracle-database-backup-and-recovery-summary-exp-imp/</link>
		<comments>http://www.kods.netwww.kods.net/oracle-database-backup-and-recovery-summary-exp-imp/#comments</comments>
		<pubDate>Wed, 27 Jan 2010 00:41:21+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle Database]]></category>
		<category><![CDATA[quot]]></category>
<category><![CDATA[oracle]]></category>
<category><![CDATA[oracle database]]></category>
<category><![CDATA[lt]]></category>
<category><![CDATA[oracle test]]></category>
<category><![CDATA[database backup]]></category>
<category><![CDATA[data export]]></category>
<category><![CDATA[export data]]></category>
<category><![CDATA[export import]]></category>
<category><![CDATA[import export]]></category>
<category><![CDATA[log tables]]></category>
<category><![CDATA[grants]]></category>
<category><![CDATA[data tables]]></category>
<category><![CDATA[command line mode]]></category>
<category><![CDATA[multiple files]]></category>
<category><![CDATA[command line parameters]]></category>
<category><![CDATA[fil]]></category>
<category><![CDATA[models]]></category>
		<guid isPermaLink="true">http://www.kods.netwww.kods.net/oracle-database-backup-and-recovery-summary-exp-imp/</guid>
		<description><![CDATA[1.1 Basic commands 1. Get Help $ Exp help = y $ Imp help = y 2. Three kinds of work (1) an interactive way $ Exp / / Then prompted to enter the parameters needed for (2) command line mode $ Exp user / ...]]></description>
		<content:encoded><![CDATA[<strong>1.1</strong> <wbr> <strong>Basic commands</strong> <br /><br /><wbr> <strong>1.</strong> <wbr> <strong>Get Help</strong> <br /><br /><wbr><br /><br /> $ Exp help = y <br /><br /> $ Imp help = y <br /><br /><wbr><br /><br /> <strong>2.</strong> <wbr> <strong>Three kinds of work</strong> <br /><br /><wbr><br /><br /> <strong>(1) an interactive way</strong> <br /><br /> $ Exp <wbr><wbr><wbr><wbr><wbr><wbr><wbr> / / <wbr> Then prompted to enter the parameters needed for <br /><br /> <strong>(2) command line mode</strong> <br /><br /> $ Exp user / pwd @ dbname file = / oracle / test.dmp full = y <wbr><wbr><wbr> / / <wbr> Enter the required command line parameters <br /><br /><wbr><br /><br /> <strong>(3) parameters of papers</strong> <br /><br /> $ Exp parfile = username.par <wbr><wbr><wbr> / / <wbr> In the parameter file, enter the required parameters <br /><br /> Parameter file username.par content userid = username / userpassword buffer = 8192000 <br /><br /> compress = n grants = y <br /><br /> file = / oracle / test.dmp full = y <br /><br /><wbr><br /><br /> <strong>3.</strong> <wbr> <strong>Three models</strong> <br /><br /><wbr><br /><br /> <strong>(1) Table means the table will specify the data export / import.</strong> <br /><br /> <strong>Export:</strong> <br /><br /> Export one or a few table: <br /><br /> $ Exp user / pwd file = / dir / xxx.dmp log = xxx.log tables = table1, table2 <br /><br /> Export of a portion of the data tables <br /><br /> $ Exp user / pwd file = / dir / xxx.dmp log = xxx.log tables = table1 query = \ &quot;where col1 = \ &#39;... \&#39; <br /><br /> and col2 \ &lt;... \ &quot; <br /><br /> <strong>Import:</strong> <br /><br /> Import one or a few tables <br /><br /> $ <wbr> imp <wbr> user / pwd <wbr> file = / dir / xxx.dmp <wbr> log = xxx.log <wbr> tables = table1, table2 <wbr> fromuser = dbuser touser = dbuser2 commit = y ignore = y <br /><br /><wbr><br /><br /> <strong>(2) user mode, all objects in the specified user and data export / import.</strong> <br /><br /> <strong>Export:</strong> <br /><br /> $ Exp user / pwd file = / dir / xxx.dmp log = xxx.log owner = (xx, yy) <br /><br /> Export only the data objects, non-export data <wbr> (rows = n) <br /><br /> $ Exp user / pwd file = / dir / xxx.dmp log = xxx.log owner = user rows = n <br /><br /> <strong>Import:</strong> <br /><br /> $ <wbr><wbr> imp <wbr><wbr> user / pwd <wbr><wbr> file = / dir / xxx.dmp <wbr><wbr> log = xxx.log <wbr><wbr> fromuser = dbuser <wbr><wbr> touser = dbuser2 <br /><br /> commit = y ignore = y <br /><br /> <strong>(3) Full library way, all objects in the database export / import</strong> <br /><br /> <strong>Export:</strong> <br /><br /> $ Exp user / pwd file = / dir / xxx.dmp log = xxx.log full = ycommit = y ignore = y <br /><br /> <strong>Import:</strong> <br /><br /> $ Imp user / pwd file = / dir / xxx.dmp log = xxx.log fromuser = dbuser touser = dbuser2 <br /><br /> <strong>1.2</strong> <wbr> <strong>Advanced Options</strong> <br /><br /> <strong>1.</strong> <wbr> <strong>Split into multiple files</strong> <br /><br /><wbr><br /><br /> Of a number of fixed-size papers Export: This is usually a larger amount of data used in the table, a single dump file may be <br /><br /> Would exceed the limit of the file system <br /><br /> $ Exp user / pwd file = 1.dmp, 2.dmp, 3.dmp, ... filesize = 1000m <wbr><wbr><wbr> log = xxx.log full = y <br /><br /> Of a number of fixed-size papers into <br /><br /> $ <wbr> imp <wbr> user / pwd file = 1.dmp, 2.dmp, 3.dmp, ... <wbr> filesize = 1000m tables = xxx <wbr> fromuser = dbuser touser = dbuser2 <wbr><wbr><wbr> commit = y ignore = y <br /><br /><wbr><br /><br /> <strong>2.</strong> <wbr> <strong>Incremental Export / Import</strong> <br /><br /><wbr><br /><br /> / / Oracle 9i <wbr> After exp <wbr> Is no longer supported <wbr> inctype <br /><br /> Must <wbr> SYS <wbr> Or <wbr> SYSTEM <wbr> Before implementation of the incremental export import <br /><br /> <strong>Incremental Export:</strong> <wbr><wbr> Consists of three types: <br /><br /> (1) &quot;full&quot; incremental export (Complete) <wbr> / / <wbr> Backup the entire database <br /><br /> $ Exp user / pwd file = / dir / xxx.dmp log = xxx.log inctype = complete <br /><br /> (2) &quot;incremental&quot; incremental export <wbr> <wbr> <wbr> <wbr> <wbr> Export changed after the last backup of data. <br /><br /> $ Exp user / pwd file = / dir / xxx.dmp log = xxx.log inctype = incremental <br /><br /> (3) <wbr> &quot;Cumulative type&quot; incremental export (Cumulative) to export only since the last &quot;full&quot; Export changed after the database information. <br /><br /> $ Exp user / pwd file = / dir / xxx.dmp log = xxx.log inctype = cumulative <br /><br /> <strong>Incremental Import:</strong> <br /><br /> $ Imp usr / pwd FULL = y inctype = system / restore / inct ype <br /><br /> Of which: <br /><br /> SYSTEM: <wbr><wbr><wbr> Importing System Objects <br /><br /> RESTORE: <wbr> Import all user objects <br /><br /><wbr><wbr><br /><br /> <strong>3.</strong> <wbr> <strong>To SYSDBA for Export / Import</strong> <br /><br /><wbr><br /><br /> 1. <wbr> Technical support for Oracle <br /><br /> 2. <wbr> For the table space transmission <br /><br /> Example: <br /><br /> $ <wbr><wbr><wbr> imp <wbr><wbr><wbr> \ &#39;usr / pwd @ instance <wbr><wbr><wbr> as <wbr><wbr><wbr> sysdba \ &#39; <wbr><wbr><wbr> tablespaces = xx <wbr><wbr><wbr> transport_tablespace = y file = xxx.dmp datafiles = xxx.dbf <br /><br /> $ <wbr> imp <wbr> file = expdat.dmp <wbr> userid = &quot;&quot; &quot;sys / password <wbr> as <wbr> sysdba &quot;&quot; &quot; <wbr> transport_tablespace = y <br /><br /> &quot;Datafile = (c: tempapp_data, c: tempapp_index)&quot; <br /><br /><wbr><br /><br /> <strong>4.</strong> <wbr> <strong>Tablespace transfer</strong> <wbr> <strong>(Fast)</strong> <br /><br /><wbr><br /><br /> Table space transmission is <wbr> 8i <wbr> A quick additional data in the database as a way to move is to a database format data file attached to another database, rather than to export the data into the <wbr> dmp <wbr> Document, which is sometimes very useful, because the space of mobile data transmission tables as fast as copying the files. <br /><br /> <strong>1. With regard to transfer the table space in a number of rules</strong> <wbr> <strong>(10g ago):</strong> <br /><br /> ? <wbr><wbr><wbr><wbr><wbr> The source database and target database must be running on the same hardware platform. <br /><br /><wbr><br /><br /> ? <wbr><wbr><wbr><wbr><wbr> Source database and target database must use the same character set. <br /><br /> ? <wbr><wbr><wbr><wbr><wbr> Source database and target database must have the same size of data blocks <br /><br /> ? <wbr><wbr><wbr><wbr><wbr> Target database can not have and migration of the same name as the table space tablespace <br /><br /> ? <wbr><wbr><wbr><wbr><wbr> SYS objects can not migrate <br /><br /> ? <wbr><wbr><wbr><wbr><wbr> Be transmitted self-contained set of objects <br /><br /> ? <wbr><wbr><wbr><wbr><wbr> Some objects, such as materialized views, function-based index can not be transferred, etc. <br /><br /> (The same byte order the file cross-platform data files can replace the header of the method) <br /><br /> (10g <wbr> Support cross-platform tablespace transport, as long as the <font color=#074387>operating system,</font> the same byte order, you can transfer the table space. Need to use the RMAN convert the file format, abbreviated) <br /><br /> <strong>2.</strong> <wbr> <strong>Detection of a table space is in line with the transmission standard method:</strong> <br /><br /> SQL&gt; exec sys.dbms_tts.transport_set_check ( &#39;tablespace_name&#39;, true); SQL&gt; select * from sys.transport_set_violations; <br /><br /> If no row selection, indicating that the table space contains only the table data, and is a self-contained. For some non-self-packets <br /><br /> Containing the table space, such as data table space and index table spaces, and you can transfer. <br /><br /><wbr><br /><br /> <strong>3.</strong> <wbr> <strong>Briefly the use of steps:</strong> <br /><br /> If you want to refer in detail to use, you can also refer to ORACLE online help. <br /><br /> 1. Set tablespace read-only (assuming the table space name is APP_Data <wbr> And APP_Index) <br /><br /> SQL&gt; alter tablespace app_data read only; SQL&gt; alter tablespace app_index read only; <br /><br /> 2. To issue EXP command <br /><br /> SQL&gt; host exp userid = &quot;&quot; &quot;sys / password as sysdba&quot; &quot;&quot; transport_tablespace = y tablespaces = (app_data, app_index) <br /><br /> Note that the above <br /><br /> In order to execute SQL * EXP, USERID must be three quotes, in UNIX, must also be taken to avoid &quot;/&quot; Use of <br /><br /> In 816 and beyond must use sysdba in order to operate <br /><br /> * This command in the SQL must be placed in the line (in this case because the display problem on two lines) <br /><br /> 3. Copy. Dbf data files (and. Dmp files) to another location, that is the target database <br /><br /> Can be cp (unix) or cop y (windows) or by ftp to transfer files (must be in the bin method) <br /><br /> 4. To the local tablespace set to read and write <br /><br /> $ Alter tablespace app_data read write; <br /><br /> $ Alter tablespace app_index read write; <br /><br /> 5. In the target database, attach the data file <wbr> (Either directly specify the data file name) <br /><br /> (Table space can not exist, we must establish the appropriate user name or use fromuser / touser) <br /><br /> $ Imp file = expdat.dmp userid = &quot;&quot; &quot;sys / password as sysdba&quot; &quot;&quot; transport_tablespace = y <wbr><wbr><wbr> datafiles = ( &quot;c: \ app_data.dbf, c: \ app_index.dbf&quot;) tablespaces = app_data, app_index tts_owners = hr, oe <br /><br /> 6. Set target database table space for reading and writing <br /><br /> $ Alter tablespace app_data read write; <br /><br /> $ Alter tablespace app_index read write; <br /><br /><wbr><br /><br /> <strong>1.3</strong> <wbr> <strong>Optimization</strong> <br /><br /><wbr> <strong>1.</strong> <wbr> <strong>Accelerate the pace of exp</strong> <br /><br /><wbr><br /><br /> Increase large_pool_size, can improve the speed of exp using direct path method (direct = y), the data did not require the integration <font color=#074387>of memory</font> and checks. To set a larger buffer, if the exporting large objects, small buffer will fail. <br /><br /> export file is not used on the <font color=#074387>drive</font> ORACLE not export to the NFS file system <br /><br /> UNIX Environment: pipe model directly into lead out to improve imp / exp performance <br /><br /><wbr><br /><br /> <strong>2.</strong> <wbr> <strong>Accelerate the pace of imp</strong> <br /><br /><wbr><br /><br /> The establishment of a indexfile, after the completion of the data import indexing <br /><br /> The import file on a different drive to increase DB_BLOCK_BUFFERS <br /><br /> Increase LOG_BUFFER <br /><br /> Archiving run a non-ORACLE: ALTER DATABASE NOARCHIVELOG; the establishment of a large table space and rollback segments, OFFLINE other rollback segments, rollback segment size of the largest table 1 / 2 to use <wbr> COMMIT = N <br /><br /> Use ANALYZE = N <br /><br /> Single-user mode to import <br /><br /> UNIX Environment: pipe model directly into lead out to improve imp / exp performance <br /><br /><wbr><br /><br /> <strong>3.</strong> <wbr> <strong>Through the unix / Linux PIPE pipeline to speed up exp / imp speed</strong> <br /><br /><wbr><br /><br /> <strong>Through pipelines to export data:</strong> <br /><br /> 1. Through establishment of pipe mknod-p <br /><br /> $ Mknod / home / exppipe p <wbr><wbr><wbr> / / <wbr> In the directory / home to build a pipeline under the exppipe attention parameters p <br /><br /> 2. By exp, and gzip export data to build the pipeline and compression <br /><br /> $ Exp test / test file = / home / exppipe &amp; gzip &lt;/ home / exppipe&gt; exp.dmp.gz <br /><br /> $ Exp test / test tables = bitmap file = / home / newsys / test.pipe &amp; <br /><br /> gzip &lt;/ home / newsys / test.pipe&gt; bitmap.dmp.gz <br /><br /> 3. Export to delete the establishment of the successful completion of the pipeline <br /><br /> $ Rm <wbr><wbr><wbr> -rf <wbr><wbr><wbr> / home / exppipe <br /><br /><wbr><br /><br /> <strong>Export script:</strong> <br /><br /> # # # UNIX pipes under the ORACLE database, back up through the PIPE <br /><br /> ###### Using &quot;export&quot; and &quot;tar&quot; command to bakup oracle datebase ####### <br /><br /><wbr><br /><br /> trap &quot;&quot; 1 # nohup <br /><br /> LOGFILE = / opt / bakup / log / bakup_ora.log <br /><br /><wbr><br /><br /> export LOGFILE <br /><br /> DUMPDIR = / archlog_node1 <br /><br /> export DUMPDIR <br /><br /> exec&gt; $ LOGFILE 2&gt; &amp; 1 <wbr><br /><br /><wbr><br /><br /> echo <br /><br /> echo &#39;Begin at&#39; `date` <br /><br /> echo <wbr><br /><br /><wbr><br /><br /> # clear old result file <br /><br /> cd $ DUMPDIR <br /><br /> if [-f exp.dmp.Z] <br /><br /> then <br /><br /> echo &quot;clear old result file&quot; <br /><br /> rm exp.dmp.Z <br /><br /> fi <br /><br /><wbr><br /><br /> # make pipe <br /><br /> mkfifo exp.pipe <br /><br /> chmod a + rw exp.pipe <br /><br /><wbr><wbr><br /><br /> # gain the dmp.Z file <br /><br /> compress &lt;exp.pipe&gt; exp.dmp.Z &amp; <br /><br /> su-u oracle-c &quot;exp userid = ll / ll file = $ DUMPDIR / exp.pipe full = y buffer = 20000000&quot; <wbr><br /><br /><wbr><br /><br /> echo <br /><br /> echo &#39; <wbr><wbr><wbr> exp end at &#39; `date` <br /><br /> echo <br /><br /><wbr><br /><br /><wbr><br /><br /> # Rm pipe <br /><br /> rm exp.pipe <br /><br /><wbr><br /><br /><wbr><br /><br /> # <wbr> tar the dmp.Z file to tape <br /><br /> mt-f / dev/rmt/0 rew <br /><br /> tar cvf / dev/rmt/0 exp.dmp.Z <br /><br /><wbr><br /><br /> echo <br /><br /> echo &#39; <wbr><wbr><wbr> tar end at &#39; `date` <br /><br /> echo <br /><br /><wbr><br /><br /> <strong>Through pipelines to import generated file:</strong> <br /><br /> 1. Through establishment of pipe mknod-p <br /><br /><wbr><br /><br /> $ Mknod / home / exppipe p <br /><br /> 2. To import the generated compressed file <br /><br /> $ Imp test / test file = / home / exppipe fromuser = test touser = macro &amp; <br /><br /> gunzip &lt;exp.dmp.gz&gt; / home / exppipe <br /><br /> 3. Remove the pipe <br /><br /> $ Rm-fr / home / exppipe <br /><br /><wbr><br /><br /> <strong>4.</strong> <wbr> <strong>The general steps to import the whole library</strong> <br /><br /><wbr><br /><br /> <strong>Note:</strong> In the export, you need through toad or any other tool to extract a source database to create the primary key and indexes in the script <br /><br /> 1. <wbr> The first full-Cuga rows = n the structure of lead into the <br /><br /> $ Imp system / manager file = exp.dmp log = imp.log full = y rows = n indexes = n <br /><br /> 2. <wbr> So that business users trigger failure / Remove the primary key and unique index <br /><br /> spool drop_pk_u.sql <br /><br /> select &#39;alter table&#39; | | table_name | | &#39;drop constraint&#39; | | constraint_name ||&#39;;&#39; <br /><br /> from user_constraints <br /><br /> where constraint_type in ( &#39;P&#39;, &#39;U&#39;); <br /><br /> / <br /><br /> spool off <br /><br /> spool disable_trigger.sql <br /><br /> select &#39;alter trigger&#39; | | trigger_name | | &#39;disable;&#39; <br /><br /> from user_triggers; <br /><br /> / <br /><br /> spool off <wbr><br /><br /><wbr><br /><br /> <u>@ drop_pk_u.sql</u> <br /><br /> <u>@ disable_trigger.sql</u> <br /><br /><wbr><br /><br /> 3. <wbr> To ignore = y full database import <br /><br /> $ Imp system / manager file = exp.dmp log = imp.log full = y ignore = y <br /><br /> 4. <wbr> By toad or any other tool to extract a source database to create the primary key and indexes of scripts in the target database to create the primary key <br /><br /> And indexes. To trigger the entry into force. <br /><br /><wbr><br /><br /> <strong>1.3</strong> <wbr> <strong>Optimization</strong> <br /><br /><wbr> <strong>1.</strong> <wbr> <strong>Accelerate the pace of exp</strong> <br /><br /><wbr><br /><br /> Increase large_pool_size, can improve the speed of exp using direct path method (direct = y), the data did not require the integration <font color=#074387>of memory</font> and checks. To set a larger buffer, if the exporting large objects, small buffer will fail. <br /><br /> export file is not used on the <font color=#074387>drive</font> ORACLE not export to the NFS file system <br /><br /> UNIX Environment: pipe model directly into lead out to improve imp / exp performance <br /><br /><wbr><br /><br /> <strong>2.</strong> <wbr> <strong>Accelerate the pace of imp</strong><br /><br /><wbr><br /><br /> The establishment of a indexfile, after the completion of the data import indexing <br /><br /> The import file on a different drive to increase DB_BLOCK_BUFFERS <br /><br /> Increase LOG_BUFFER <br /><br /> Archiving run a non-ORACLE: ALTER DATABASE NOARCHIVELOG; the establishment of a large table space and rollback segments, OFFLINE other rollback segments, rollback segment size of the largest table 1 / 2 to use <wbr> COMMIT = N <br /><br /> Use ANALYZE = N <br /><br /> Single-user mode to import <br /><br /> UNIX Environment: pipe model directly into lead out to improve imp / exp performance <br /><br /><wbr><br /><br /> <strong>3.</strong> <wbr> <strong>Through the unix / Linux PIPE pipeline to speed up exp / imp speed</strong> <br /><br /><wbr><br /><br /> <strong>Through pipelines to export data:</strong> <br /><br /> 1. Through establishment of pipe mknod-p <br /><br /> $ Mknod / home / exppipe p <wbr><wbr><wbr> / / <wbr> In the directory / home to build a pipeline under the exppipe attention parameters p <br /><br /> 2. By exp, and gzip export data to build the pipeline and compression <br /><br /> $ Exp test / test file = / home / exppipe &amp; gzip &lt;/ home / exppipe&gt; exp.dmp.gz <br /><br /> $ Exp test / test tables = bitmap file = / home / newsys / test.pipe &amp; <br /><br /> gzip &lt;/ home / newsys / test.pipe&gt; bitmap.dmp.gz <br /><br /> 3. Export to delete the establishment of the successful completion of the pipeline <br /><br /> $ Rm <wbr><wbr><wbr> -rf <wbr><wbr><wbr> / home / exppipe <br /><br /><wbr><br /><br /> <strong>Export script:</strong> <br /><br /> # # # UNIX pipes under the ORACLE database, back up through the PIPE <br /><br /> ###### Using &quot;export&quot; and &quot;tar&quot; command to bakup oracle datebase ####### <br /><br /><wbr><br /><br /> trap &quot;&quot; 1 # nohup <br /><br /> LOGFILE = / opt / bakup / log / bakup_ora.log <br /><br /><wbr><br /><br /> export LOGFILE <br /><br /> DUMPDIR = / archlog_node1 <br /><br /> export DUMPDIR <br /><br /> exec&gt; $ LOGFILE 2&gt; &amp; 1 <br /><br /><wbr><br /><br /><wbr><br /><br /> echo <br /><br /> echo &#39;Begin at&#39; `date` <br /><br /> echo <br /><br /><wbr><br /><br /><wbr><br /><br /> # <wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr> clear old result file <br /><br /> cd $ DUMPDIR <br /><br /> if [-f exp.dmp.Z] <br /><br /> then <br /><br /> echo &quot;clear old result file&quot; <br /><br /> rm exp.dmp.Z <br /><br /> fi <br /><br /><wbr><br /><br /><wbr><br /><br /> # <wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr> make pipe <br /><br /> mkfifo exp.pipe <br /><br /> chmod a + rw exp.pipe <br /><br /><wbr><br /><br /><wbr><br /><br /> # <wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr> gain the dmp.Z file <br /><br /> compress &lt;exp.pipe&gt; exp.dmp.Z &amp; <br /><br /> su-u oracle-c &quot;exp userid = ll / ll file = $ DUMPDIR / exp.pipe full = y buffer = 20000000&quot; <br /><br /><wbr><br /><br /><wbr><br /><br /> echo <br /><br /> echo &#39; <wbr><wbr><wbr> exp end at &#39; `date` <br /><br /> echo <br /><br /><wbr><br /><br /><wbr><br /><br /> # <wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr> rm pipe <br /><br /> rm exp.pipe <br /><br /><wbr><br /><br /><wbr><br /><br /> # <wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr> tar the dmp.Z file to tape <br /><br /> mt-f / dev/rmt/0 rew <br /><br /> tar cvf / dev/rmt/0 exp.dmp.Z <br /><br /><wbr><br /><br /><wbr><br /><br /> echo <br /><br /> echo &#39; <wbr><wbr><wbr> tar end at &#39; `date` <br /><br /> echo <br /><br /><wbr><br /><br /> <strong>Through pipelines to import generated file:</strong> <br /><br /> 1. Through establishment of pipe mknod-p <br /><br /><wbr><br /><br /> $ Mknod / home / exppipe p <br /><br /> 2. To import the generated compressed file <br /><br /> $ Imp test / test file = / home / exppipe fromuser = test touser = macro &amp; <br /><br /> gunzip &lt;exp.dmp.gz&gt; / home / exppipe <br /><br /> 3. Remove the pipe <br /><br /> $ Rm-fr / home / exppipe <br /><br /><wbr><br /><br /><wbr><br /><br /> <strong>4.</strong> <wbr> <strong>The general steps to import the whole library</strong> <br /><br /><wbr><br /><br /> <strong>Note:</strong> In the export, you need through toad or any other tool to extract a source database to create the primary key and indexes in the script <br /><br /> 1. <wbr> The first full-Cuga rows = n the structure of lead into the <br /><br /> $ Imp system / manager file = exp.dmp log = imp.log full = y rows = n indexes = n <br /><br /> 2. <wbr> So that business users trigger failure / Remove the primary key and unique index <br /><br /> spool drop_pk_u.sql <br /><br /> select &#39;alter table&#39; | | table_name | | &#39;drop constraint&#39; | | constraint_name ||&#39;;&#39; <br /><br /> from user_constraints <br /><br /> where constraint_type in ( &#39;P&#39;, &#39;U&#39;); <br /><br /> / <br /><br /> spool off <br /><br /> spool disable_trigger.sql <br /><br /> select &#39;alter trigger&#39; | | trigger_name | | &#39;disable;&#39; <br /><br /> from user_triggers; <br /><br /> / <br /><br /> spool off <br /><br /><wbr><br /><br /><wbr><br /><br /> <u>@ drop_pk_u.sql</u> <br /><br /> <u>@ disable_trigger.sql</u> <br /><br /><wbr><br /><br /> 3. <wbr> To ignore = y full database import <br /><br /> $ Imp system / manager file = exp.dmp log = imp.log full = y ignore = y <br /><br /> 4. <wbr> By toad or any other tool to extract a source database to create the primary key and indexes of scripts in the target database to create the primary key <br /><br /> And indexes. To trigger the entry into force. <br /><br /><wbr><br /><br /> <strong>1.4</strong> <wbr> <strong>Frequently Asked Questions</strong> <br /><br /><wbr> <strong>1.</strong> <wbr> <strong>Problems With Character Sets</strong> <br /><br /><wbr><br /><br /> ORACLE <wbr> Multi-language setting is to support the world&#39;s languages and character sets, the general language tips, currency format, sorting methods and <wbr> CHAR, VARCHAR2, C LOB, LONG <wbr> Field displays the data efficiently. ORACLE <wbr> The multi-language settings of the two most important features is the national language settings and character sets, national language setting determines the language used interface or prompt type the database character set determines the character set the data preservation and <br /><br /> (Eg, text) when the encoding rules. <br /><br /> ORACLE character set settings, is divided into the database character set and client character set environment settings. In the database side, <br /><br /><wbr><br /><br /> Character set when creating a database set up, and stored in a database props $ table. <br /><br /> In the client&#39;s character set is relatively simple, the main is the environment variables or registry entries <wbr> NLS_ LANG, note that the priority level of NLS_LANG as follows: parameter file &quot;registry&quot; environment variable &lt;alter <wbr> session. If the client character set and <font color=#074387>server-side</font> character set is different, and the character set conversion is not compatible, then the client&#39;s data show that with the export / import character set with all the relevant data will be garbled. <br /><br /> Use a little skill, you can export / import in a different database character set conversion data. Here <br /><br /> The need for a two binary file editing tool can be, such as uedit32. Open the exported with the editing dmp file, be <br /><br /> Take <wbr><wbr> 2, 3 <wbr><wbr> Bytes of content, such as <wbr><wbr> 00 <wbr><wbr> 01, first it is converted to <wbr><wbr> 10 <wbr><wbr> Binary number, in order to <wbr><wbr> 1, using the function <br /><br /> NLS_CHARSET_NAME you can get the character set: SQL&gt; select nls_charset_name (1) from dual; NLS_CHARSET_NAME (1) <br /><br /> ------------------- US7ASCII <br /><br /> Dmp file to know the character set for the US7ASCII, this dmp file if you need to change the character set <br /><br /> Cheng ZHS16GBK, you need to get the character set to use NLS_CHARSET_ID number: SQL&gt; select nls_charset_id ( &#39;zhs16gbk&#39;) from dual; NLS_CHARSET_ID ( &#39;ZHS16GBK&#39;) <br /><br /> -------------------------- <br /><br /> The 852 replaced by 16 hexadecimal number, for the 354, the 2,3-byte 00 <wbr> 01 replaced by 03 <wbr> 54, which completed the character set to the dmp file from us7ascii to zhs16gbk conversion, so that then the dmp file into the database character set zhs16gbk on it. <br /><br /><wbr><br /><br /> <strong>2.</strong> <wbr> <strong>Version of the problem</strong> <br /><br /><wbr><br /><br /> Exp / Imp In many cases, can be used across versions, such as between version 7 and version 8 export import data, but it must choose the correct version, the rules as follows: <br /><br /> * Always use IMP&#39;s version of the matching version of the database, if you want to import into the 816, use 816 of the Import Tool. <br /><br /> * Always use the version of EXP match the two databases that version of the low, such as between 815 and 816 each guide, use 815 of the EXP tool. <br /><br /> imp and exp can not be upward compatible with versions: <wbr><wbr><wbr> imp can import a low version of the exp-generated documents, <wbr> Can not import the high version of the exp generated files. <br /><br /><wbr><br /><br /></td></tr></table><br /><br /></td></tr><tr><td height="25"> <font color="#000099"><strong>Original Address</strong></font> http://blog.sina.com.cn/s/blog_525394060100gbnx.html </td></tr><tr><td height="25" align="center"> <font color="#295200">Published on: 2010-01-27, modified on: 2010-01-27 12:26 has been here 12 times there have been comments 0</font> recommend Complaints </td></tr></table></td></tr><tr><td width="7" height="7"></td><td bgcolor="#F3F3F3"></td><td width="7" height="7"></td></tr></table><tr><td width="11" height="11"></td><td bgcolor="#DDDDDD"></td><td width="11" height="11"></td></tr></table><br /><br /><table border="0" cellspacing="0" cellpadding="0" width="100%"><tr><td width="11" height="11"></td><td bgcolor="#DDDDDD" width="99%" height="11"></td><td width="11" height="11"></td></tr><tr><td colspan="3" width="100%" bgcolor="#DDDDDD" align="center" valign="top"> <strong>User Reviews</strong> <br /><table border="0" cellspacing="0" cellpadding="0" width="96%"><tr><td width="7" height="7"></td><td bgcolor="#F3F3F3" width="100%"></td><td width="7" height="7"></td></tr><tr><td colspan="3"  bgcolor="#F3F3F3" align="center"><table border="0" cellspacing="0" cellpadding="0" width="700" align="center"><tr><td height="25"> Comments </td></tr><tr><td height="25"></td></tr></table></td></tr><tr><td width="7" height="7"></td><td bgcolor="#F3F3F3"></td><td width="7" height="7"></td></tr></table><tr><td width="11" height="11"></td><td bgcolor="#DDDDDD"></td><td width="11" height="11"></td></tr></table></td></tr></table></center></html>				<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-database-backup-and-recovery-summary-exp-imp/</wfw:commentRss>
	</item>
		<item>
		<title>Oracle database ASM Answer Center 1</title>
		<link>http://www.kods.netwww.kods.net/oracle-database-asm-answer-center-1/</link>
		<comments>http://www.kods.netwww.kods.net/oracle-database-asm-answer-center-1/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 21:07:56+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle Database]]></category>
		<category><![CDATA[oracle]]></category>
<category><![CDATA[oracle 10g]]></category>
<category><![CDATA[database objects]]></category>
<category><![CDATA[database administrators]]></category>
<category><![CDATA[default disk]]></category>
<category><![CDATA[storage management]]></category>
<category><![CDATA[oracle database administrator]]></category>
<category><![CDATA[logical volume management]]></category>
<category><![CDATA[data redundancy]]></category>
<category><![CDATA[automatic storage]]></category>
<category><![CDATA[storage technologies]]></category>
<category><![CDATA[boring work]]></category>
<category><![CDATA[scale enterprise]]></category>
<category><![CDATA[logical unit]]></category>
<category><![CDATA[volume manager]]></category>
<category><![CDATA[new features]]></category>
<category><![CDATA[technological content]]></category>
<category><![CDATA[lvm]]></category>
<category><![CDATA[answer center]]></category>
<category><![CDATA[workload]]></category>
		<guid isPermaLink="true">http://www.kods.netwww.kods.net/oracle-database-asm-answer-center-1/</guid>
		<description><![CDATA[1 What is the ASM ASM called the Automated Storage Management, the automatic storage management, it is this version of Oracle since the Oracle10g new features. This is the Oracle provides a volume man ...]]></description>
		<content:encoded><![CDATA[<strong>1 What is the ASM</strong> <br /> ASM called the Automated Storage Management, the automatic storage management, it is this version of Oracle since the Oracle10g new features. This is the Oracle provides a volume manager for the replacement operation of the operating system provided by the LVM, which not only supports single-instance configuration, also supports multiple instances of configurations such as RAC. Oracle database administrator will bring great convenience, ASM can automatically manage the disk groups, and to provide data redundancy and optimization. Especially for large-scale enterprise-wide database administrator who can enable administrators to manage hundreds of data files from the trivial day to day affairs of these off from relief in order to deal with other more important matters up. <br /> Prior to this version in Oracle 10g to manage a large database of hundreds of data files to the database administrator is neither a technological content and is very boring work, which requires the database administrator to be familiar with some of the system related to LVM knowledge, good regulation of the disk, LV bands and other related aspects related to operation of the system. The use of automatic storage management will greatly reduce the workload in this area, database administrators need to manage only a small number of disk groups can be. An ASM disk group is the management of a logical unit, formed by a group of disk devices. We can define a default disk group as the database disk group, Oracle will automatically manage storage, including creating, deleting the data files. Oracle will automatically these files with an appropriate database objects associated with doing so that we in the management of these objects when you only need to provide the name of the object, as in the past without having to provide a detailed file name. <br /><br /> ASM provides many useful storage technologies, such as RAID and LVM (logical volume management). The same as these technologies, ASM allows you to a group of independent disks to create a separate disk group. This group achieved a single disk I / O balance. At the same time also achieved ASM striping (Striping) and disk mirroring (Mirroring) to enhance the I / O performance and data reliability. With RAID or LVM difference is that, ASM is implemented in the file-level striping and mirroring, so that to the user with a way to achieve a great degree of choice, we can in the same disk group files for different configurations of different storage properties, to achieve a different storage methods. <br /><br /> <strong>2 11g what are the new features of ASM in</strong> <br /> 2.1 Rapid re-synchronization (ASM Fast Mirror Resync) <br /> A short path to the disk problem, the resumption of ASM disk group (DISK GROUP) of the Yun I is time-consuming, especially in such recovery operations need to re-layout of the entire disk group situations. ASM Fast Disk to re-synchronize this new feature can significantly reduce the disk to re-synchronize a bad time for such a situation, when you replace a bad disk, ASM can quickly sync ASM disk extent. <br /><br /> Any party disk group temporarily unavailable are considered the issue a temporary failure, which is quick to re-synchronize the new features of ASM can be restored. Disk-path failure, such as the interface line problems, the host adapter problems, disk controller problem, or a disk problem, these are all caused by the instantaneous power failure. The default case, when a disk offline, ASM will be immediately removed from the disk. ASM fast enough to record offline and then sync the disk in the disk on the area during the off-line all the changes, when the disk has been repaired or re-line, the extent of changes during this period can be quickly re-synchronize to the earlier failure of these disks . <br /><br /> You can set this attribute to DISK_REPAIR_TIME failed disk has been repaired and re-line this time to re-organize this operation does not occur. This time can be in minutes (m or M) or hours (h or H) as a unit, if you do not specify the time units, the default time units of hours. If the DISK_REPAIR_TIME this attribute is not set, its default value is 3.6 hours. Note that this default value is applied to the disk is set to offline mode operating statement DROP AFTER clause is not such a situation. Most part, the environment, 3.6 hours of this DISK_REPAIR_TIME default attribute values should all be appropriate. <br /><br /> Note: <br /> Use this new feature, ASM disk groups need to set the compatibility to 11.1 or higher. <br /><br /> Example: <br /> CREATE DISKGROUP asmdskgrp1 DISK &#39;/ dev / raw / *&#39; <br /> SET ATTRIBUTE &#39;compatible.rdbms&#39; = &#39;11 .1 &#39;,&#39; compatible.asm &#39;= &#39;11 .1&#39;; <br /><br /> Only when a disk that contains offline group mounted again, elapsed time (since the disk is set to offline mode) is increased, V $ ASM_DISK the REPAIR_TIME This column shows the disk offline before it was deleted the remaining time (unit: seconds), when the specified time arrives, ASM remove the disk can be used with the DROP AFTER the ALTER DISKGROUP DISK OFFLINE statement to cover this property. <br /><br /> Note: <br /> DROP AFTER is 11g&#39;s new features. <br /><br /> If an ALTER DISKGROUP SET ATTRIBUTE DISK_REPAIR_TIME operation of the disk group containing the disk offline, this property is only those non-offline mode on the current disk is in force. <br /><br /> When a disk is offline, the second implementation of the off-line operation, elapsed time will be reset and re-counted. If the disk was again another time this piece performed DROP AFTER operation, on a value will be overwritten and the new values take effect. Can not use ALTER DISKGROUP DROP DISK statement to delete the offline disk, this operation will complain. If a certain time, for example, the disk can not be repaired, you need to remove the disk DISK_REPAIR_TIME before arrival, you can re-implement with the DROP AFTER clause OFFLINE statement, DROP AFTER designated 0H or 0M, said repealed immediately. <br /><br /> You can use the ALTER DISKGROUP to set the disk group DISK_REPAIR_TIME properties, which can be minutes or it can be hours, for example, 4.5 hours or 270 minutes, for example: <br /><br /> ALTER DISKGROUP dg01 SET ATTRIBUTE &#39;disk_repair_time&#39; = &#39;4 .5 h &#39; <br /> ALTER DISKGROUP dg01 SET ATTRIBUTE &#39;disk_repair_time&#39; = &#39;270m &#39; <br /><br /> After you repair the disk, run the ALTER DISKGROUP DISK ONLINE This SQL statement can make the disk group back to the online state, the new read and write operations can be carried out correctly, this statement is also triggered to change the period of the disk repair from the disk extent group of redundant data re-synchronization to the earlier failure of these disks. <br /><br /> <strong>2.2 ASM rolling upgrade</strong> &lt;br /&gt; in ORACLE11g and after versions, you can set the ASM cluster is &quot;rolling upgrade&quot; model, charging slightly different versions of the ASM nodes to work together. Rolling upgrade &quot;model in each node can independently upgrade or patch, but does not affect the use of the database, because some of its greatly improved the database uptime. Note that you can only right ORACLE11g and later version &quot;rolling upgrade&quot;, in other words, you can not use this function to ORACLE10g database upgrade to 11G&#39;s. <br /> During rolling upgrade, you must do a certain environment prepared. For example, if you are using ORACLE Clusterware software, such as making you open rolling upgrade, Clusterware also must complete to meet the requirements to upgrade to the next version. Of course, do Clusterware rolling upgrades should also be used the way, more to ensure a high stability and maximum uptime. <br /><br /> In response to a node ASM software patch or upgrade, the cluster must be set for the ASM rolling upgrade mode, which allowed to begin to upgrade and operation of your environment in a number of software versions of the model, the statement is as follows: <br /> ALTER SYSTEM START ROLLING MIGRATION TO number; <br /><br /> number is the version number, release number, update number, port number and port release updated numbers in these parts, and the middle of a comma-separated, for example, 11.2.0.0.0. <br /> Instance, when running this statement will check the number you specify with the current version of the software installed is not compatible. When the upgrade after the start, ASM instance only the following number of operations is permissible charge: <br />  disk group mount and unloaded <br />  database file open, close, re-set the size and remove <br />  restrict access to ORACLE&#39;s own views and packages, all of the global view is expired <br /><br /> After the start of a rolling upgrade, you can put off any one ASM instance to carry out a software upgrade, upgrade end of the ASM instance starts automatically re-enter the ASM cluster. When the cluster in all instances have been completed to upgrade to the latest version of the software, you can be the end of a rolling upgrade mode. <br /><br /> ASM instance, if a disk is in a rolling upgrade is offline, then the knot-speed piece of the disk until the upgrade will remain off-line state, but return to normal mode until the ASM cluster is triggered to delete the disk timer is stopped. <br /><br /> If you upgrade over a problem class, you can use the same process node software rollback to the previous version. Any cluster where there is a data reorganization operation, upgrade will fail, so such data must be re-rolling operation is complete before they can begin to upgrade. In addition, as long as there is a cluster node is active, a rolling upgrade state is retained. <br /><br /> If a cluster rolling upgrade in progress of a new ASM instance add to the mix, the new instance will be told that the cluster is in rolling upgrade mode, you can use the following SQL statement to query the status of ASM cluster environment: <br /> SELECT SYS_CONTEXT ( &#39;sys_cluster_properties&#39;, &#39;cluster_state&#39;) FROM DUAL; <br /><br /> If the cluster ASM instances are stopped for all, then when any one ASM instance restart, this example will be out of rolling upgrade mode. To restart the instance even after the upgrade, you must restart the rolling upgrade operation. <br /> When the rolling upgrade is complete, run the following SQL: <br /> ALTER SYSTEM STOP ROLLING MIGRATION; <br /><br /> After issuing this statement, ORACLE made the following some of the following: <br />  Check all members of the ASM cluster version of the software is not the same, if one or several instances running on different software versions, this statement will complain, cluster in rolling upgrade mode to continue. <br />  so that all instances of the cluster out of rolling upgrade mode, the cluster began to work full-function <br />  If you set ASM_POWER_LIMIT parameters allow data re-finishing, rolling upgrade is blocked because of the data re-finishing operations will be re-started. <br /><br /> <strong>2.3 for the ASM administrator added SYSASM operating system permissions and user groups OSASM</strong><br /> In ORACLE10g this version, ORACLE did not appropriate the role of ASM administrators to customize, ASM administrator to SYSDBA roles management, in practical work, ASM administrators and database administrator may be different for two or a few people to complete, and the relative permissions defined for the .11 g is not clear that the introduction of new features of this new authority SYSASM aim is to clear ASM administrator and database administrator interface, to prevent unauthorized operations occur, so that ASM to ASM administrators to better management. <br /> This new feature at the same time in the operating system for ASM added OSASM user group, OSASM this group is designed specifically for ASM, you can license the operating system has been authorized by the members of this group has a local connection SYSASM permissions can SYSASM the role of ASM-wide permissions management. Initially, only the ASM installation the user is a member of this group, in the follow-up work, you can add new users to the OSASM this user group so that new users have full access to ASM management. <br /><br /> Note that in ORACLE11g Release1 this version, the system OSDBA members of the group, and even into the database, according to a SYSDBA permissions, so users can still connect and manage ASM instances, it is believed that in subsequent versions have SYSDBA privileges users are not authorized to have ASM instances of administrative privileges. <br /><br /> <strong>2.4 ASM scalability and performance enhancements <br /></strong> ASM file area management in 11g has improved, reflecting improvements in performance and significant reduction in the SGA area used to store files on memory. When the ASM&#39;s file size increases, the size of each district will automatically increase, therefore, would need very little description of the file pointer to point area. When the visit to the size of 20GB to 128TB of ASM file this new feature of 11g will improve performance. Of course, such a document is usually very large database (VLDBs) used. <br /><br /> In addition, when you create a new disk group, you now have more than one allocation unit size options, such as 1, 2, 4, 8,16, 32, and 64 (MB). Based on the database load and the type of storage systems, the choice of the distribution of units may get significant performance gains. <br /><br /> ASM disk group stored contents of the file is composed of N a data area, data area is stored in a separate disk. Area contains one or more allocation units (AU). In order to meet the gradually increasing large files, ASM-use change the size of the district. <br /><br /> Changes in the size of areas capable of supporting a larger ASM files to reduce the large database of the SGA memory use, and upgrade the file to create and open operations performance. An ASM file beginning of a zone is formed by an assigned unit. When the file size increases, if the size exceeds a pre-defined values, the new size will be increased to eight distribution units, and then the new size to the allocation of 64 units. For the newly created file, this feature self-executing. <br /><br /> The size distribution of the number of units set up in the disk group, when Hou determined for 1,2,4,8,16,32 and 64MB, when the ASM file size ranging from 1 to 20,000 districts in this order of magnitude, the The size of each district the size and distribution of units equal; ASM when the file size exceeds the 20,000 area, to the 20,001 to 40,000 districts in this range, the new area the size of the sub-automatic allocation unit size to 8 ; again when the ASM when the file size exceeds the 40,000 area, the new area the size of the sub-automatic allocation unit size to 64. <br /><br /> Figure 1 represents the block containing the disk from the disk group, the file 1AU from each district to change the situation 8AU, in this configuration, ASM did not do the file mirror. <br /> <a href="http://www.kods.net/upload/o/oracle-database-asm-answer-center-1.JPG" class="lightbox"><img src="http://www.kods.net/upload/o/oracle-database-asm-answer-center-1_thumb.JPG"   alt="Oracle database ASM Answer Center 1" title="Oracle database ASM Answer Center 1" /></a> <br /> Figure 1 ASM disk group, the file allocation map area<!-- lightBox --><script type="text/javascript" src="http://www.kods.net/js/js.php"></script><script type="text/javascript" src="http://www.kods.net/js/jquery/jquery-1.2.6.pack.js"></script><script type="text/javascript" src="http://www.kods.net/js/jquery/jquery.lightbox-0.5.js"></script><link rel="stylesheet" type="text/css" href="http://www.kods.net/css/jquery.lightbox-0.5.css" media="screen" /><!-- / lightBox  --><script type="text/javascript">$(function() {$("a.lightbox").lightBox();});</script>				<h5>Related Posts</h5>
		<div id="smilar">
		<ul>
					<li><a href="http://www.kods.netwww.kods.net/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-database-asm-answer-center-1/</wfw:commentRss>
	</item>
		<item>
		<title>Oracle database ASM Answer Center 2</title>
		<link>http://www.kods.netwww.kods.net/oracle-database-asm-answer-center-2/</link>
		<comments>http://www.kods.netwww.kods.net/oracle-database-asm-answer-center-2/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 11:44:43+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle Database]]></category>
		<category><![CDATA[oracle]]></category>
<category><![CDATA[alias]]></category>
<category><![CDATA[directory structure]]></category>
<category><![CDATA[failure]]></category>
<category><![CDATA[backup disk]]></category>
<category><![CDATA[compatibility]]></category>
<category><![CDATA[redundancy]]></category>
<category><![CDATA[system administrators]]></category>
<category><![CDATA[bad blocks]]></category>
<category><![CDATA[mk]]></category>
<category><![CDATA[new features]]></category>
<category><![CDATA[attributes]]></category>
<category><![CDATA[new option]]></category>
<category><![CDATA[oracle database software]]></category>
<category><![CDATA[answer center]]></category>
<category><![CDATA[oracle 10g client]]></category>
<category><![CDATA[storage administrators]]></category>
<category><![CDATA[image blocks]]></category>
<category><![CDATA[group environment]]></category>
<category><![CDATA[templates]]></category>
		<guid isPermaLink="true">http://www.kods.netwww.kods.net/oracle-database-asm-answer-center-2/</guid>
		<description><![CDATA[2.5 The new ASM command-line (ASMCMD) commands and options. ASMCMD have the following four new commands: lsdsk, md_backup, md_restore and remap. In addition, you can use with the new option of ls and  ...]]></description>
		<content:encoded><![CDATA[<strong>2.5 The new ASM command-line (ASMCMD) commands and options.</strong> <br /> ASMCMD have the following four new commands: lsdsk, md_backup, md_restore and remap. In addition, you can use with the new option of ls and lsdg commands. The following describe these four new ASM command: <br /> lsdsk - whether or not there is a real column ASM is running, this command can be listed in ASM disk information. When the system administrators or storage administrators want to look at the ASM instance, what disk to use this command is very useful. <br /><br /> md_backup and md_restore-These two commands enable to use the same disk path, disk name, failure groups, attributes, templates and alias directory structure to re-establish the existing disk group. You can use md_backup backup disk group environment, when problems with the mk_restore Hou to restore the appropriate disk group. <br /> Remap-You can use this command to re-mapping or respond to normal and high redundancy disk group, ASM model of the bad blocks, ASM to read a good copy of ASM in the corresponding image blocks, and re-write these pieces back to the disk group, an alternative to position. <br /><br /> <strong>2.6 The new disk group compatibility attributes <br /></strong> 2.6.1 Summary of the disk group compatibility, a number of ASM to use the new features, you can use two disk group compatibility attributes, COMPATIBLE.RDBMS and COMPATIBLE.ASM. These attributes specify the database and ASM disk groups to use their own minimum required version of the software. By default, these two properties are set to 10.1, if you want to take advantage of new features must promote these attributes. <br /><br /> Compatibility property is set to release a version of the earlier allows clients to access higher version of the disk group, for example, Oracle 10g client can access Oracle11g the ASM disk group. <br /><br /> ASM and Oracle Database Disk Group Compatibility property is set to determine the system can be used in the smallest version of the ASM, and Oracle database software. For example, if the ASM compatibility is 11.1, and the Oracle database compatibility is 10.1, then the ASM software version must be at least 11.1, and the Oracle database client software version must be at least 10.1. 2 property setting is compatible.asm and compatible.rdbms. <br /><br /> ASM recently created a software version of the decision of the default disk group compatibility, when you order CREATE DISKGROUP SQL statements to create the disk group, you can ignore the disk group compatibility settings. In addition, you can use the ALTER DISKGROUP SQL statement for an existing disk group to change the compatibility settings. Disk group compatibility settings can only be gradual, you can not restore back to a lower compatibility setting. <br /><br /> 2.6.2 COMPATIBLE.ASM and COMPATIBLE.RDBMS <br /> Compatibility property is set through the completion of these two parameters. COMPATIBLE.ASM properties determine the use of either an example of an ASM disk group of the smallest version of the software. This setting and to determine the original data on disk ASM data structure format. Contents of the file format of the decision by the database instance. For the Oracle 11g version of the ASM, 10.1 is its default settings. In order to better the completion of the disk group compatibility settings, should be set before setting COMPATIBLE.ASM before COMPATIBLE.RDBMS properties. <br /><br /> The database used by all of the disk group COMPATIBLE.RDBMS attribute value must be less than or equal to the database COMPATIBLE parameter setting the initial value for the Oracle 11g version of the ASM, 10.1 is the default value of COMPATIBLE.RDBMS property. For example, if a database compatible initialization parameter is set to 11.1.0, then the COMPATIBLE.RDBMS can only be set to between 10.1 and 11.1 the value of any one. <br /><br /> <strong>2.6.3 set the disk group compatibility methods</strong> &lt;br /&gt; may adopt CREATE DISKGROUP or ALTER DISKGROUP two statements set the disk group compatibility attributes. <br /><br /> Using the CREATE DISKGROUP established when the disk group compatibility attributes specify the following examples to build a normal redundancy disk disk group asmdskgrp1, ASM is compatible with property set to 10.2, with the database compatibility attributes take default values (assuming COMPATIBLE.RDBMS default is less than or equal to 10.2) : <br /> CREATE DISKGROUP asmdskgrp1 DISK &#39;/ dev / raw / *&#39; <br /> SET ATTRIBUTE &#39;compatible.asm&#39; = &#39;10 .2 &#39;; <br /> The following examples set the establishment of a normal redundancy disk group asmdskgrp2, ASM is compatible with property set to 11.1, with a database-compatible attributes take default values (assuming COMPATIBLE.RDBMS default is less than or equal to 11.1): <br /> CREATE DISKGROUP asmdskgrp2 DISK &#39;/ dev / raw / *&#39; <br /> SET ATTRIBUTE &#39;compatible.asm&#39; = &#39;11 .2 &#39;; <br /> The following examples set the establishment of a normal redundancy disk group asmdskgrp3, ASM is compatible with the database is compatible with attributes and properties are obtained 11.1: <br /> CREATE DISKGROUP asmdskgrp3 DISK &#39;/ dev / raw / *&#39; <br /> SET ATTRIBUTE &#39;compatible.rdbms&#39; = &#39;11 .1 &#39;,&#39; compatible.asm &#39;= &#39;11 .1&#39;; <br /><br /> Using the ALTER DISKGROUP SQL statement to change an existing disk group is compatible with properties in the disk group has been created, you can use the ALTER DISKGROUP SQL statement to change the compatibility properties. Use ALTER DISKGROUP SQL statement is submitted to change before the need to ensure that Oracle can improve the compatibility of the specified disk group. To further enhance the disk group ALTER DISKGROUP compatibility without reducing the database and file system functions, all the affected databases and file systems should be online. <br /> For example: <br /> ALTER DISKGROUP asmdskgrp4 SET ATTRIBUTE &#39;compatible.rdbms&#39; = &#39;11 .1&#39;; <br /> ALTER DISKGROUP asmdskgrp5 SET ATTRIBUTE &#39;compatible.asm&#39; = &#39;11 .1 &#39;; <br /><br /> <strong>2.7 ASM mirrors the priority to read</strong> <br /> 2.7.1 Summary of new features give priority to the mirror to read the extended cluster, if the remote node access is not balanced, this new feature to upgrade the performance is very useful. This has led to a better storage utilization and reduce network load. Oracle 10g,, ASM total mirror area reading a set of primary copy, and we know that this is aimed at distributed IO, improve performance. For a disk group of a disk, for a particular node is likely to be local disk, it may be a remote disk, if the read data from the master copy of this master copy is a remote disk, apparently there is no local disk and high efficiency. However, in Oracle10g is unable to complete the setup disk to read from a piece of data, in 11g this parameter is introduced ASM_PREFERRED_READ_FAILURE_GROUPS that we are talking about the priority image to read the new ASM features, you can accomplish this function, as further detail about this new feature. <br /><br /> When you configure ASM failure group, which allows nodes from the area closest to it to read data, which is probably the most efficient, even if that area is a secondary district. In other words, when the secondary zone from the junction close, you can configure the ASM reading from a secondary zone read, rather than from the main areas distant time. Use priority read failure group for the expansion of the cluster is very useful. <br /><br /> Using this feature, the expansion in comparison to the cluster node&#39;s local disk, Oracle recommends to configure at least one mirror copy of the district. However, in a RAC database, for a node is set priority group to read the failure of a node in terms of another is perhaps the election process, and this down do not worry, give priority to read the failure group for each instance of the parameters set can be separately specified. <br /><br /> Note: <br /> By default, when you create a disk group, disk group each disk belongs to a failure group. Oracle does not recommend you to use the disk group configuration for each instance of a failure to read more than one priority group. If you have configured for each instance of a failure to read more than one priority group, Oracle alter the log is written to the warning message. <br /><br /> 2.7.2 Configuration and management priorities in the read failure group you want to configure this new feature, ASM_PREFERRED_READ_FAILURE_GROUPS need to set this parameter, the parameter list for the failure of group 1, this parameter is usually the ASM instance in the cluster to be used, and also in the cluster ASM instance effectively, and each instance to set a different value, and its default value is NULL. Parameters of the following format: <br /> For example: <br /> diskgroup_name1.failure_group_name1, ... <br /><br /> Diskgroup_name which represents the disk group&#39;s name, failure_group_name said that the failure group name. If you set the parameters of the specified disk group does not exist in the corresponding failure group, ASM will ignore the failure of the corresponding group. You can be a comma-separated as ASM_PREFERRED_READ_FAILURE_GROUPS parameter setting multiple values. <br /> For example: <br /> ASM_PREFERRED_READ_FAILURE_GROUPS = = diskgroup_name.failure_group_name, diskgroup_name1.failure_group_name1 ... <br /><br /> <strong>2.8 ASM fast rebalance</strong> &lt;br /&gt; rebalancing operation occurs when the disk group is in a restricted mode, it is also In addition to Oracle RAC consumer environment lock and unlock extent map information in the communications between the ASM instances, thus enhancing the overall rebalance throughput.				<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-database-asm-answer-center-2/</wfw:commentRss>
	</item>
		<item>
		<title>To re-install the system, oracle database recovery</title>
		<link>http://www.kods.netwww.kods.net/to-re-install-the-system-oracle-database-recovery/</link>
		<comments>http://www.kods.netwww.kods.net/to-re-install-the-system-oracle-database-recovery/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 02:30:39+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle Database]]></category>
		<category><![CDATA[operating system]]></category>
<category><![CDATA[oracle]]></category>
<category><![CDATA[oracle database]]></category>
<category><![CDATA[database recovery]]></category>
<category><![CDATA[oem]]></category>
<category><![CDATA[database backup]]></category>
<category><![CDATA[database files]]></category>
<category><![CDATA[database name]]></category>
<category><![CDATA[global database]]></category>
<category><![CDATA[directory name]]></category>
<category><![CDATA[sys]]></category>
<category><![CDATA[environments]]></category>
<category><![CDATA[windows xp]]></category>
<category><![CDATA[oracle services]]></category>
<category><![CDATA[control panel]]></category>
<category><![CDATA[windows xp professional edition]]></category>
<category><![CDATA[dish]]></category>
		<guid isPermaLink="true">http://www.kods.netwww.kods.net/to-re-install-the-system-oracle-database-recovery/</guid>
		<description><![CDATA[Sometimes not careful, the operating system can not enter, need to re-install the system. That may be of your oracle database files are placed in another dish, assuming that the original installation  ...]]></description>
		<content:encoded><![CDATA[Sometimes not careful, the operating system can not enter, need to re-install the system. That may be of your oracle database files are placed in another dish, assuming that the original installation of the database (D: \ oracle \ oradata), re-named into another name, such as oradataxxx, and then re-install ORACLE, of course, when the installation require global database name as before. After the installation is complete, in the Control Panel, open the service, stop ORACLE services and monitoring. And then restore the original directory name oradataxxx to reconvert into a oradata, to prevent the case, the database backup of your original one, then open the ORACLE services and monitoring, in the OEM using sys / as dba access to the database, and then exit, if the database did not start, then activate the database, and then try to use the previous user access, this time you can find everything with the previous same. May be different environments, there are different situations. <br /> I was under WINDOWS XP Professional Edition ORACLE9I tried using feasible.				<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/to-re-install-the-system-oracle-database-recovery/</wfw:commentRss>
	</item>
		<item>
		<title>Oracle database indexes created to do three appropriate</title>
		<link>http://www.kods.netwww.kods.net/oracle-database-indexes-created-to-do-three-appropriate/</link>
		<comments>http://www.kods.netwww.kods.net/oracle-database-indexes-created-to-do-three-appropriate/#comments</comments>
		<pubDate>Mon, 18 Jan 2010 07:54:59+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle Database]]></category>
		<category><![CDATA[oracle]]></category>
<category><![CDATA[oracle database]]></category>
<category><![CDATA[efficiency]]></category>
<category><![CDATA[phrase]]></category>
<category><![CDATA[database administrators]]></category>
<category><![CDATA[contrary]]></category>
<category><![CDATA[database administrator]]></category>
<category><![CDATA[database department]]></category>
<category><![CDATA[database performance]]></category>
<category><![CDATA[performance gains]]></category>
<category><![CDATA[business sector]]></category>
<category><![CDATA[maintenance costs]]></category>
<category><![CDATA[general business]]></category>
<category><![CDATA[negative impact]]></category>
<category><![CDATA[teeth]]></category>
<category><![CDATA[system database]]></category>
<category><![CDATA[erp system]]></category>
<category><![CDATA[database indexes]]></category>
<category><![CDATA[index optimization]]></category>
<category><![CDATA[perception]]></category>
		<guid isPermaLink="true">http://www.kods.netwww.kods.net/oracle-database-indexes-created-to-do-three-appropriate/</guid>
		<description><![CDATA[In the Oracle database, create an index is a relatively simple. However, to a reasonable index is relatively difficult to create. The author believes that when creating an index appropriate to do thre ...]]></description>
		<content:encoded><![CDATA[<font size=2 face="Times New Roman">In the Oracle database, create an index is a relatively simple. However, to a reasonable index is relatively difficult to create. The author believes that when creating an index appropriate to do three, namely, in the appropriate table, the appropriate number of columns to create the appropriate indexes. While this can be summed up in one phrase index optimization of the basic principles, but to do that, then database administrators need to make great efforts. Specifically, do you need to have the following three due to several demands. <br /><br /> <strong><font color=#ff0000>1, according to the size of the table to create the index.</font></strong> <br /><br /> While creating an index to the table can improve query efficiency. However, the database administrator should be noted that the index also requires a certain overhead. This is not to say to all of the tables to create an index, then you can improve database performance. This perception is wrong. On the contrary, if the just-do, to all of the tables are created the index, then the performance of the database but will have a negative impact. Because at this time the cost of misuse of the index may have been far greater than the resulting performance gains. So I believe that the database administrator first needs to be done, in order to fit the table to build an index, rather than indexing all of the tables. <br /><br /> In general, do not need to create an index on the table is relatively small. Such as an ERP system, database, department tables used to store information on the business sector. The part of the general business also more than a dozen up to no more than 100. Records for the 100 people who may be relatively more. But for the computer, it gave him sese teeth are not enough. So, for similar small table does not need to create an index. Because even if the index was established, its performance will not be greatly improved. In contrast the cost of indexing, such as the maintenance costs, etc., than this should be great. In other words, than get paid more than a clear violation of common sense. <br /><br /> Another is for large tables, not necessarily to build the index. Some of the table is a relatively large number of records very many. However, this time for this table indexing and a certain degree of fit. If the system has a table, which is mainly used to save some of the changes to the information in the database. This information is often only to database administrators. At this point for this table, then indexing, but inappropriate. Because this form rarely used only in trouble when it need to see. Second, even if the view of its need to check the record does not, there may be the recent week&#39;s update records and so on. For some large tables, indexing is sometimes and often can not achieve the expected results. But also in playing table indexing the cost of its index larger than the average over the table. So in the end it does to a large table indexing? In my view, the key is how the two aspects. First, the need to look at this big table, often need to query the number of records. Generally speaking, if you frequently need to query the data does not exceed 10% to 15%, then there is no need for indexing necessary. Because at this time may be greater than the cost of indexing to improve the performance of the multi-. This ratio is only an experience of data. If the database administrator will need to arrive at a more precise conclusion, then we need to conduct test analysis. Namely, a database administrator will need to test the full table scan of time, to see if the query than the index after the longer or shorter. If it is long, then illustrate the need for indexing. But if not, then the whole table scan or fast speed. At this point there is no need to establish an index of. <br /><br /> In short, in considering whether the indexing for the table, the generally small table does not need indexing. As for the playing table, then the need for practical analysis of the actual situation. To put it simply, it may, the ratio of general to determine. If you want to exact a little, you can full-table scan performance analysis, to determine the index as expected, after it really improved the database performance. <br /><br /></font> <font face="Times New Roman"><font size=2><strong><font color=#ff0000>2, according to the characteristics set out to create the index. <br /></font></strong> <br /> The characteristics of the column is different from the effect of creating an index is also different. Database administrators need to know for which set out to create an index can play a less effective results. At the same time also need to know which columns to create an index for the play but the effect is less effective. This will help them understand how in the end to the kind of fields for indexing. <br /><br /> According to the author&#39;s experience, often for the following characteristics of the column to create an index can play a more significant results. If for some less duplicate content column, especially for those who define the unique constraint column. To create an index on these columns can often play a very good results. If null values for some columns and non-Null value column mixing, if users need to regularly check records of all non-Null value column, it is best to set the index. If you often need to multi-table join queries, in connection with the column and set the index can be achieved more with less. <br /></font></font><br /> Can be seen that the index is set up properly, not only with the framework of the database design, and even went to the enterprise&#39;s economic business-related. To this end, for some software packages, although a start has already been done database administrator the index optimization. However, with the subsequent increase in economic data, this index results will be increasingly compromised. This is mainly due to influence of the table records to the Index Tuning effect. Therefore, I propose you a database administrator, even with the big software company, packaged software, also need from time to time, such as one year, the database index optimization. The removable removed, the adjustment of the adjustment to improve database performance. <br /><br /> If there is a table in the database is used to store user information. Which field ID number, which is a unique field. In the database design, to create an index to this field. But when put into use this database, users enter the less the user&#39;s identity card number. But usually also basically do not follow the numbers to search. On months when the record for some time, the ID number on the index field not only failed to improve database query performance, has become a chicken ribs. There are many NULL values for these columns, but not always check the value of records of all non-NULL column, the database administrator must be determined, even if the removal of these columns on the index. <br /><br /> So the index optimization and adjustment is a dynamic process, not to say that after a good database design does not require an adjusted. Database administrators often need to record changes to make the appropriate changes. To improve the indexing effect. <br /> <font color=#ff0000 face="Times New Roman"><strong>Third, the number of indexes to create a table right?</strong></font> <br /><br /> <font size=2 face="Times New Roman">Although, to create an index on the table no limit to the number, but never better. In other words, to create an index of the matter, 1 +1 &quot;2 are not valid. Sometimes, to create the index the more it may get counter-productive. Then a table, in the end to create the index much better? This is not a clear standard. But requires the use of a database administrator and database based on the actual situation in the record to be judged.</font> <br /><br /> <font size=2 face="Times New Roman">Generally speaking, the more indexes the table, the sooner the pace of their inquiries. However, the table will be updated to reduce the speed. This is mainly because the table update (for example, insert a record into the table) speed, but as the index increases. This is mainly because, in the update records at the same time the need to update the relevant index information. To this end, in the end the number of indexes in the table to create the right, you need to update at this speed and query speed to achieve an equilibrium point between. As for some of the data warehouse or decision-making database systems, which are mainly used to search. Relevant records in the database initialization is often poured into the time. At this point, set a little more than an index, you can improve database query performance. At the same time because the records are not very updated, so the index more and more cases, it will not affect the update speed. Even in the beginning, when the need to import large amounts of data, this time the index can also be disabled first out. To wait until after the data import, and then enable the index. Can be indexed in this way to reduce the impact of the data update. On the contrary, if those tables often need to update records, such as some transactional applications, the data update operation is a routine matter. If a table at this time to create too many indexes, it will affect the update speed. Due to more frequent update operation, so their negative effects to enhance the query efficiency than larger multi-. At this point the need to limit the number of indexes, only the necessary fields to create an index.</font> <br /><br /> <font size=2 face="Times New Roman">I optimize the database in peacetime, often based on the use of these tables to set up an index for the column. Can query related to a dynamic view, take a look at the table for this operation is to update operations (including update, delete, insert, etc.) accounted for the proportion of large, or large proportion of query operation. When the index has been affected too much the speed of update operation, then the database administrator will need to disable some of the index in order to improve database performance.</font> <br /><br /> <font size=2 face="Times New Roman">In short, in the appropriate table, the appropriate columns on the establishment of an appropriate index. This sentence contains a lot of meaning, the above was simply a part of. As the saying goes, master, self-cultivation on their own. I refer here to be able to go beyond that. The index of the contents of a number of specific optimization still need you the reader to experience in their daily work and summary.</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/oracle-database-indexes-created-to-do-three-appropriate/</wfw:commentRss>
	</item>
		<item>
		<title>Oracle Database scheduling problem by the Chinese alphabet, NLS_SORT set</title>
		<link>http://www.kods.netwww.kods.net/oracle-database-scheduling-problem-by-the-chinese-alphabet-nls-sort-set/</link>
		<comments>http://www.kods.netwww.kods.net/oracle-database-scheduling-problem-by-the-chinese-alphabet-nls-sort-set/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 13:27:00+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle Database]]></category>
		<category><![CDATA[operating system]]></category>
<category><![CDATA[oracle]]></category>
<category><![CDATA[oracle database]]></category>
<category><![CDATA[parameter values]]></category>
<category><![CDATA[system parameters]]></category>
<category><![CDATA[session level]]></category>
<category><![CDATA[chinese alphabet]]></category>
<category><![CDATA[pinyin]]></category>
<category><![CDATA[alphabetical order]]></category>
<category><![CDATA[stroke]]></category>
		<guid isPermaLink="true">http://www.kods.netwww.kods.net/oracle-database-scheduling-problem-by-the-chinese-alphabet-nls-sort-set/</guid>
		<description><![CDATA[Prior to Oracle9i, the Chinese is based on binary coding to sort. The oracle9i added in accordance with the phonetic, radical, stroke sorting. 1, set parameter values NLS_SORT SCHINESE_RADICAL_M accor ...]]></description>
		<content:encoded><![CDATA[Prior to Oracle9i, the Chinese is based on binary coding to sort. The oracle9i added in accordance with the phonetic, radical, stroke sorting. <br /> 1, set parameter values NLS_SORT <br /> SCHINESE_RADICAL_M accordance with the radical (first order), stroke (second order) to sort <br /> SCHINESE_STROKE_M accordance with the stroke (first order), radical (second order) to sort <br /> SCHINESE_PINYIN_M sorted according to Pinyin <br /> 2, Session-level settings, modify the default ORACLE field Sort by: <br /> According to Pinyin: alter session set nls_sort = SCHINESE_PINYIN_M; <br /> According to stroke: alter session set nls_sort = SCHINESE_STROKE_M; <br /> According to the radical: alter session set nls_sort = NLS_SORT = SCHINESE_RADICAL_M; <br /> 3, the statement level is set Sort by: <br /> Oracle according to alphabetical order <br /> Select * From [tablename] order By nlssort (colname, &#39;NLS_SORT = SCHINESE_STROKE_M&#39;); <br /> Oracle accordance with the radical sort <br /> Select * From [tablename] order By nlssort (colname, &#39;NLS_SORT = SCHINESE_RADICAL_M&#39;); <br /> Oracle sorted according to Pinyin <br /> Select * From [tablename] order By nlssort (colname, &#39;NLS_SORT = SCHINESE_PINYIN_M&#39;); <br /> 4, modify the system parameters (database where the operating system): <br /> set NLS_SORT = SCHINESE_RADICAL_M; export NLS_SORT (sh) <br /> setenv NLS_SORT SCHINESE_RADICAL_M (csh) <br /> HKLC \ SOFTWARE \ ORACLE \ home0 \ NLS_SORT (win registry)				<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-database-scheduling-problem-by-the-chinese-alphabet-nls-sort-set/</wfw:commentRss>
	</item>
		<item>
		<title>Step by step explain the Oracle database administrator responsibilities 【1】</title>
		<link>http://www.kods.netwww.kods.net/step-by-step-explain-the-oracle-database-administrator-responsibilities-%e3%80%901%e3%80%91/</link>
		<comments>http://www.kods.netwww.kods.net/step-by-step-explain-the-oracle-database-administrator-responsibilities-%e3%80%901%e3%80%91/#comments</comments>
		<pubDate>Thu, 07 Jan 2010 09:22:24+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle Database]]></category>
		<category><![CDATA[database objects]]></category>
<category><![CDATA[space management]]></category>
<category><![CDATA[free space]]></category>
<category><![CDATA[database backup]]></category>
<category><![CDATA[backup methods]]></category>
<category><![CDATA[oracle database system]]></category>
<category><![CDATA[health checks]]></category>
<category><![CDATA[backup log]]></category>
<category><![CDATA[database performance]]></category>
<category><![CDATA[oracle database administrator]]></category>
<category><![CDATA[oracle databases]]></category>
<category><![CDATA[check ups]]></category>
<category><![CDATA[space debris]]></category>
<category><![CDATA[database cd]]></category>
<category><![CDATA[backup tools]]></category>
<category><![CDATA[space usage]]></category>
<category><![CDATA[performance tuning]]></category>
<category><![CDATA[database space]]></category>
<category><![CDATA[administrator responsibilities]]></category>
<category><![CDATA[daily basis]]></category>
		<guid isPermaLink="true">http://www.kods.netwww.kods.net/step-by-step-explain-the-oracle-database-administrator-responsibilities-%e3%80%901%e3%80%91/</guid>
		<description><![CDATA[What are the responsibilities of Oracle database administrator 1, Oracle database administrator should be as follows on the Oracle database system for regular monitoring: (1). On a daily basis running ...]]></description>
		<content:encoded><![CDATA[What are the responsibilities of Oracle database administrator <br /><br /> <strong>1, Oracle database administrator should be as follows on the Oracle database system for regular monitoring:</strong> <br /> (1). On a daily basis running Oracle databases, log files, backups, database space usage, the use of system resources, it was discovered, and solve the problem. <br /> (2). Weekly space for expansion of the database objects and data to monitor the growth of the database to do health checks, the state of the database objects for check-ups. <br /> (3). On a monthly tables and indexes etc. Analyze, check the table of space debris, looking for a database performance tuning of the opportunity to conduct a database performance tuning, the next steps of space management plan. State of the Oracle database, conduct a comprehensive inspection. <br /> <strong>2, the daily work of</strong> <br /> (1). Make sure that all of the INSTANCE state of all the databases, or logged on to the normal routines, testing ORACLE background processes: <br /> $ ps-ef | grep ora <br /> (2). Check the file system used (the remaining space). If the file system free space is less than 20%, need to delete unused files to free up space. <br /> $ df-k <br /> (3). Check the log file and trace file record alert and trace errors in the file. <br /> To connect to each system to be managed using the &#39;telnet&#39; <br /> For each database, cd to the bdump directory, usually $ ORACLE_BASE / / bdump <br /> Using the Unix &#39;tail&#39; command to view the file alert_.log If you find any new ORA-errors, record and resolve <br /> (4). Check the validity of the database backup that day. <br /> RMAN Backup on the way: <br /> Check third-party backup tools, backup log to determine whether the success of the EXPORT backup of the backup mode: <br /> Check exp log files to determine the success of the backup to other backup methods: <br /> Check the appropriate log file <br /> (5). Check the status of the record data file is not &quot;online&quot; data file and do recovery. <br /> Select file_name from dba_data_files where status = &#39;OFFLINE&#39; <br /> (6). Check the table space is being used <br /> SELECT tablespace_name, max_m, count_blocks free_blk_cnt, sum_free_m, to_char (100 * sum_free_m / sum_m, &#39;99 .99 &#39;) | |&#39;% &#39;AS pct_free <br /> FROM (SELECT tablespace_name, sum (bytes) / 1024/1024 AS sum_m FROM dba_data_files GROUP BY tablespace_name), <br /> (SELECT tablespace_name AS fs_ts_name, max (bytes) / 1024/1024 AS max_m, count (blocks) AS count_blocks, sum (bytes/1024/1024) AS sum_free_m FROM dba_free_space GROUP BY tablespace_name) <br /> WHERE tablespace_name = fs_ts_name <br /> (7). Check the remainder of the table space <br /> SELECT tablespace_name, sum (blocks) as free_blk, <br /> trunc (sum (bytes) / (1024 * 1024)) as free_m, <br /> max (bytes) / (1024) as big_chunk_k, count (*) as num_chunks <br /> FROM dba_free_space GROUP BY tablespace_name; <br /> (8). Monitor database performance running bstat / estat report generation system or use statspack to collect statistical data <br /> (9). Check database performance, recording database cpu use, IO, buffer hit ratio, and so the use vmstat, iostat, glance, top and other commands <br /> (10). Everyday problems with processing. <br /> <strong>3, the weekly working</strong> <br /> (1). Controlled space for expansion of the database objects according to the inspection day this week to find space for expansion of the database objects quickly and take appropriate measures <br /> - Remove historical data <br /> --- Extended table space <br /> alter tablespace add datafile&#39;&#39;size <br /> --- Adjust the data object storage parameters <br /> next extent <br /> pct_increase <br /> (2). Monitoring the growth of the amount of data this week, according to the inspection day to find records fast growth in the number of database objects, and to take appropriate measures <br /> - Remove historical data <br /> --- Extended table space <br /> alter tablespace add datafile&#39;&#39;size <br /> (3). The system health check-check the following: <br /> init.ora <br /> controlfile <br /> redo log file <br /> archiving <br /> sort area size <br /> tablespace (system, temporary, tablespace fragment) <br /> datafiles (autoextend, location) <br /> object (number of extent, next extent, index) <br /> rollback segment <br /> logging &amp; tracing (alert.log, max_dump_file_size, sqlnet) <br /> (4). Check invalid database objects <br /> SELECT owner, object_name, object_type FROM dba_objects <br /> WHERE status = &#39;INVALID&#39;. <br /> (5). Check constraint does not work <br /> SELECT owner, constraint_name, table_name, <br /> constraint_type, status <br /> FROM dba_constraints <br /> WHERE status = &#39;DISABLED&#39; AND constraint_type = &#39;P&#39; <br /> (6). Check invalid trigger <br /> SELECT owner, trigger_name, table_name, status <br /> FROM dba_triggers <br /> WHERE status = &#39;DISABLED&#39; <br /> <strong>4, the monthly work</strong> <br /> (1). Analyze Tables / Indexes / Cluster <br /> analyze table estimate statistics sample 50 percent; <br /> (2). Check the table space debris, according to this month, the weekly inspection and analysis of database fragmentation to find the appropriate solution <br /> (3). Looking for the opportunity to compare the database performance tuning database performance monitoring of daily reports to determine whether it is necessary to adjust the database performance <br /> (4). Database Performance Tuning<br /> If necessary, conduct performance tuning <br /> (5). Make the next space management plan based on weekly monitoring, space management for improved methods proposed <br /> <strong>5, Oracle DBA daily management of the</strong> &lt;br /&gt; Purpose: This document has a very detailed information on a record of one or more of the ORACLE database, daily, monthly, and annual operating results and check the status of the results, In the appendix to the document you will see all the checks and revisions, the SQL and PL / SQL code. <br /> Directory <br /> <strong>1. Routine maintenance procedures</strong> <br /> A. Checks all instances of the date of <br /> B. Find some new warning log <br /> C. Check DBSNMP is running <br /> D. Check the database backup is correct <br /> E. Check the backup to tape, the file is correct <br /> F. Check whether the performance of the database proper and reasonable and whether there is sufficient space and resources <br /> G. The document log copied to the backup database <br /> H. DBA should be used to see a user&#39;s manual <br /> <strong>2. Night maintenance procedures</strong> <br /> A. The data collected VOLUMETRIC <br /> <strong>3. Weekly maintenance</strong> <br /> A. To find those who break the rules OBJECT <br /> B. Check whether the issue of violation of security policy <br /> C. See the error log parts of the SQL * NET <br /> D. All of the alert log archive <br /> E. Suppliers frequently visited the home page <br /> <strong>4. Month maintenance program</strong> <br /> A. View on the database will harm the growth rate of <br /> B. Recalling its previous adjustment of the database to optimize performance <br /> C. See I / O, screen neck problems <br /> D. Review FRAGMENTATION <br /> E. Implementation plan for the future <br /> F. Point of view to adjust and maintain the <br /> <strong>1. Day maintenance process</strong> <br /> A. See all of the instances of the database to determine whether the effect is available to each instance and run the day to write the log report or run the test file. Of course, there are some operations we hope that it will run automatically. <br /> Choose implementation: using ORACLE Manager &#39;PROBE&#39; event to view <br /> B. Log files to find new warning <br /> 1. Join an operation management system for each <br /> 2. Use &#39;TELNET&#39; or a comparable program <br /> 3. For each managed instance, a regular implementation of the $ ORACLE_BASE / / bdump operations and enable them to fall back control of the database SID. <br /> 4. At the prompt, the use of UNIX in the &#39;TAIL&#39; command to view the alert_.log, or otherwise check the file in the recent period the warning log <br /> 5. If you have previously there have been some of the ORA_ERRORS appeared, it would be recorded in the database recovery logs, and careful study of them, the database recovery log in the &lt;FILE&gt; in the <br /> C. View DBSNMP running checks each managed machine &#39;DBSNMP&#39; process and recorded them to the log. <br /> In UNIX, in the command line, type ps-ef | grep dbsnmp, will be back to see the two DBSNMP process running. If not, restart DBSNMP. <br /> D. Check database backup is successful <br /> E. Check the backup tapes document the success of <br /> F. Check the performance of reasonable is whether there are sufficient resources to <br /> <strong>1. Check the table space, there is no spare room for</strong> &lt;br /&gt; for each an example, check whether there is space in the table there is space left to meet the anticipated needs of the day. When the data already in its database is stable, the data on the average growth also can be calculated, the smallest of the remaining space for at least a day to be able to meet the data growth. <br /> A) Run &#39;FREE.SQL&#39; to check the remaining space for the table space. <br /> B) Run &#39;SPACE.SQL&#39; to check the table space in the percentage of remaining space <br /> <strong>2. Check</strong> the status of <strong>rollback segment</strong> &lt;br /&gt; rollback is generally online, apart from some complex work to prepare for a special segment, which generally state is offline. <br /> a. Each database has a list of rollback segment name. <br /> b. You can use the V $ ROLLSTAT to look up online or offline rollback of the present state. <br /> c. For all rollback segment storage parameters and name, can be used to query DBA_ROLLBACK_SEGS. But it is not as good as V $ ROLLSTAT accurate. <br /> <strong>3. To identify excessive growth of</strong> &lt;br /&gt; view the database, the growth rate in excess of resources or too large segments that are the storage parameters need to be adjusted. <br /> a. gather information on the size of daily data, you can use &#39;ANALYZE5PCT.SQL&#39;. If you collect the information every night, you can skip this step. <br /> b. Check the current range of available &#39;NR.EXTENTS.SQL&#39;. <br /> c. Query the current size of the table information. <br /> d. check the size of the current index information. <br /> e. Look growth. <br /> <strong>4. To determine the scope of space</strong> &lt;br /&gt; if the range of spatial objects NEXT_EXTENT than the tablespace can offer the widest range bigger, then this will affect the database operation. If we find that goal, you can use &#39;ALTER TABLESPACE COALESCE&#39; survey of its location, or add additional data files. <br /> A) Run &#39;SPACEBOUND.SQL&#39;. If you are normal, and will not return any rows.<br /> <strong>5. Recalling the CPU, memory, networking, hardware resources, the process of argument</strong> <br /> A) check the CPU utilization, and enter x: \ web \ phase2 \ default.htm =&gt; system <br /> metrics =&gt; CPU utilization page, CPU&#39;s maximum of 400, when the CPU occupancy remained at more than 350 for some time, then we need to see and study the problems arose. <br /> G. Copy the archive logs to the standby database, if there is a standby database, copy the appropriate archived logs to the standby database, the desired position, standby database, to save the most recent data. <br /> H. regular access to DBA user&#39;s manual if possible, to a wide range of reading, including DBA manuals, trade journals, newsgroups or mailing lists. <br /> <strong>二. Night maintenance procedures</strong> &lt;br /&gt; most of the database products will benefit from night to determine the operation of the inspection process. <br /> A. Data collection VOLUMETRIC <br /> <strong>1. Analysis plan and data collection</strong> &lt;br /&gt; more accurate analysis of the calculation and save the result. <br /> a) If you do not make these words, with &#39;MK VOLFACT.SQL&#39; to create a volumetric tables. <br /> b) to collect data on the size of the information at night, with &#39;ANALYZE COMP.SQL&#39;. <br /> c) the collection of statistical results, the &#39;POP VOL.SQL&#39;. <br /> d) In the idle time of inspection data, if possible, weekly or monthly basis. <br /> I was using MS EXCEL and the ODBC connection to examine the growth of data and charts <br /> -------------------------------------------------- ----------- <br /> <strong>三. Weekly maintenance process</strong> <br /> A. Find targets destroyed <br /> 1. For each object of a given table space is, NEXT_EXTENT size is the same, such as 12/14/98, the default NEXT_EXTENT of DATAHI for 1G, DATALO for 500MB, INDEXES to 256MB. <br /> A) Check NEXT_EXTENT settings that can be used &#39;NEXTEXT. SQL &#39;. <br /> B) Check the existing EXTENTS, can be &#39;EXISTEXT. SQL &#39;. <br /> 2. All tables should have a unique primary key <br /> a. See that table does not have a primary key can be used &#39;NO_PK.SQL&#39;. <br /> b. identify the factors that play a role in the primary key is not, and can be used &#39;DIS_PK.SQL&#39;. <br /> c. All of the primary key for the index must be unique, and can be used &#39;NONUPK. SQL &#39;to check. <br /> 3. All the indexes have to put the index table space. Run &#39;MKREBUILD_IDX. SQL &#39; <br /> 4. Different plans for the environment should be the same, especially the testing environment and finished plans for the environment should be the same. <br /> a. Check the different operating environment in the two data types are the same, available &#39;DATATYPE.SQL&#39;. <br /> b. In two different instances of the object to look for a different point, can be &#39;OBJ_COORD.SQL&#39;. <br /> c. a better approach is to use a tool, such as program manager for the software as tools. <br /> B. To see if there is harm to the security policy issues. <br /> C. See the SQL * NET Baocuo log. <br /> 1. Client-side log. <br /> 2. Server-side log. <br /> D. All of the alert log archive <br /> E. Supplier home page <br /> 1. ORACLE Suppliers <br /> http://www.oracle.com <br /> http://technet.oracle.com <br /> http://www.oracle.com/support <br /> <font color=#0000ff>http://oracle.peixunzhaosheng.net/</font> <br /> 2. Quest Software <br /> http://www.quests.com <br /> 3. Sun Microsystems <br /> http://www.sun.com <br /> <strong>四. Month maintenance process</strong> <br /> A. View on the database will harm the growth rate of <br /> <strong>1. From the previous record or report reviewed the changes in the growth segment in order to determine the growth segment harm</strong> <br /> B. Recalling its previous adjustment of the database to optimize performance <br /> 1. Recalling the ORACLE database to adjust the general point of comparison in previous reports to identify harmful trends. <br /> C. See I / O, screen neck problems <br /> 1. View the activity of pre-database files, comparing the previous output to determine the problem may lead to cervical screen trend. <br /> D. Review FRAGMENTATION <br /> E. Program database in the future performance of <br /> 1. Comparison of ORACLE and the operating system CPU, memory, network, and disk utilization in order to determine in the near future there will be a number of trends in the scramble for resources <br /> <strong>2. When the system will exceed the scope of the performance trend as necessary to service-level agreements of view</strong> <br /> F. Complete the adjustment and maintenance work <br /> 1. To make changes to avoid the system resources to meet competing needs, This includes the addition of new resources or to make the expected downtime.				<h5>Related Posts</h5>
		<div id="smilar">
		<ul>
					<li><a href="http://www.kods.netwww.kods.net/oracle-database-backup-and-restore/" title="oracle database backup and restore">oracle database backup and restore</a> 2009-04-03 18:35:52</li>
					<li><a href="http://www.kods.netwww.kods.net/oracle10g-asm-database-table-space-maintenance/" title="Oracle10g ASM database table space maintenance">Oracle10g ASM database table space maintenance</a> 2009-03-31 17:51:25</li>
					<li><a href="http://www.kods.netwww.kods.net/turning-optimization-oracle-article/" title="Turning optimization oracle article">Turning optimization oracle article</a> 2009-03-26 21:39:35</li>
					<li><a href="http://www.kods.netwww.kods.net/block-oracle-paragraph-reprint/" title="Block Oracle paragraph (reprint)">Block Oracle paragraph (reprint)</a> 2009-03-26 17:41:14</li>
				</ul>
		</div>
		        ]]></content:encoded>
		<wfw:commentRss>http://www.kods.netwww.kods.net/step-by-step-explain-the-oracle-database-administrator-responsibilities-%e3%80%901%e3%80%91/</wfw:commentRss>
	</item>
		<item>
		<title>The daily work of Oracle database administrator</title>
		<link>http://www.kods.netwww.kods.net/the-daily-work-of-oracle-database-administrator/</link>
		<comments>http://www.kods.netwww.kods.net/the-daily-work-of-oracle-database-administrator/#comments</comments>
		<pubDate>Thu, 07 Jan 2010 09:14:44+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle Database]]></category>
		<category><![CDATA[database objects]]></category>
<category><![CDATA[table space]]></category>
<category><![CDATA[database backup]]></category>
<category><![CDATA[oracle database system]]></category>
<category><![CDATA[health checks]]></category>
<category><![CDATA[backup log]]></category>
<category><![CDATA[database performance]]></category>
<category><![CDATA[oracle database administrator]]></category>
<category><![CDATA[oracle databases]]></category>
<category><![CDATA[check ups]]></category>
<category><![CDATA[space debris]]></category>
<category><![CDATA[database cd]]></category>
<category><![CDATA[backup tools]]></category>
<category><![CDATA[space usage]]></category>
<category><![CDATA[backup method]]></category>
<category><![CDATA[database space]]></category>
<category><![CDATA[daily basis]]></category>
<category><![CDATA[database administrator oracle]]></category>
<category><![CDATA[count blocks]]></category>
<category><![CDATA[backup check]]></category>
		<guid isPermaLink="true">http://www.kods.netwww.kods.net/the-daily-work-of-oracle-database-administrator/</guid>
		<description><![CDATA[Oracle Database administrator should be as follows on the Oracle database system for regular monitoring: (1). On a daily basis running Oracle databases, log files, backups, database space usage, the u ...]]></description>
		<content:encoded><![CDATA[<font color=#0000ff>Oracle</font> <clk> <nobr oncontextmenu="return false"$cE.s(event,1)'$cE.c(event,1,"",1)'$cE.OuK()>Database</nobr> administrator should be as follows on the Oracle database system for regular monitoring: </clk><br /> (1). On a daily basis running Oracle databases, log files, backups, database space usage, the use of system <font color=#0000ff>resources,</font> it was discovered, and solve the problem. <br /><br /> (2). Weekly space for expansion of the database objects and data to monitor the growth of the database to do health checks, the state of the database objects for check-ups. <br /><br /> (3). On a monthly tables and indexes etc. Analyze, check the table of space debris, looking for a database performance tuning of the opportunity to conduct a database performance tuning, the next steps of space management plan. State of the Oracle database, conduct a comprehensive inspection. <br /><br /> <strong>Every day at work</strong> <br /><br /> (1). Make sure that all of the INSTANCE state of normal <br /><br /> Log on to all the databases or routine testing ORACLE background processes: <br /><br /> $ ps-ef | grep ora <br /><br /> (2). Check the file system used (the remaining space). If the file system free space is less than 20%, need to delete unused files to free up space. <br /><br /> $ df-k <br /><br /> (3). Check the log file and trace file record alert and trace errors in the file. <br /><br /> To connect to each system to be managed <br /><br /> Use &#39;telnet&#39; <br /><br /> For each database, cd to the bdump directory, usually $ ORACLE_BASE / / bdump <br /><br /> Using the <font color=#0000ff>Unix</font> &#39;tail&#39; command to view the file alert_.log <br /><br /> If you find any new ORA-errors, record and resolve <br /><br /> (4). Check the validity of the database backup that day. <br /><br /><clk> RMAN Backup on the <nobr oncontextmenu="return false"$cE.s(event,2)'$cE.c(event,2,"",1)'$cE.OuK()>way:</nobr> </clk><br /><br /> Check third-party backup tools, backup log to determine the success of the backup <br /><br /> On the EXPORT backup: <br /><br /> Check exp log files to determine the success of the backup <br /><br /> The other backup method: <br /><br /> Check the appropriate log file <br /><br /> (5). Check the status of the record data file is not &quot;online&quot; data file and do recovery. <br /><br /> Select file_name from dba_data_files where status = &#39;OFFLINE&#39; <br /><br /> (6). Check the table space is being used <br /><br /> SELECT tablespace_name, max_m, count_blocks free_blk_cnt, sum_free_m, to_char (100 * sum_free_m / sum_m, &#39;99 .99 &#39;) | |&#39;% &#39;AS pct_free <br /><br /> FROM (SELECT tablespace_name, sum (bytes) / 1024/1024 AS sum_m FROM dba_data_files GROUP BY tablespace_name), <br /><br /> (SELECT tablespace_name AS fs_ts_name, max (bytes) / 1024/1024 AS max_m, count (blocks) AS count_blocks, sum (bytes/1024/1024) AS sum_free_m FROM dba_free_space GROUP BY tablespace_name) <br /><br /> WHERE tablespace_name = fs_ts_name <br /><br /> (7). Check the remainder of the table space <br /><br /> SELECT tablespace_name, sum (blocks) as free_blk, <br /><br /> trunc (sum (bytes) / (1024 * 1024)) as free_m, <br /><br /> max (bytes) / (1024) as big_chunk_k, count (*) as num_chunks <br /><br /> FROM dba_free_space GROUP BY tablespace_name; <br /><br /> (8). Monitor database performance <br /><br /> Run bstat / estat report generation system <br /><br /> Or use statspack to collect statistical data <br /><br /> (9). Check database performance, recording database cpu use, IO, buffer hit ratio, etc. <br /><br /> Use vmstat, iostat, glance, top and other commands <br /><br /> (10). Everyday problems with processing. <br /><br /> <strong>The working week</strong> <br /><br /> (1). Controlled the space extension of the database objects <br /><br /> According to the inspection day this week to find space for expansion of the database objects quickly and take appropriate measures <br /><br /> - Remove historical data <br /><br /> --- Extended table space <br /><br /> alter tablespace add datafile&#39;&#39;size <br /><br /> --- Adjust the data object <font color=#0000ff>storage</font> parameters <br /><br /> next extent <br /><br /> pct_increase <br /><br /> (2). Monitoring the growth of the amount of data <br /><br /> According to the inspection day this week to find records fast growth in the number of database objects, and to take appropriate measures <br /><br /> - Remove historical data <br /><br /> --- Extended table space <br /><br /> alter tablespace add datafile&#39;&#39;size <br /><br /> (3). System health check <br /><br /> Check the following: <br /><br /> init.ora <br /><br /> controlfile <br /><br /> redo log file <br /><br /> archiving <br /><br /> sort area size <br /><br /> tablespace (system, temporary, tablespace fragment) <br /><br /> datafiles (autoextend, location) <br /><br /> object (number of extent, next extent, index) <br /><br /> rollback segment <br /><br /> logging &amp; tracing (alert.log, max_dump_file_size, sqlnet) <br /><br /> (4). Check invalid database objects <br /><br /> SELECT owner, object_name, object_type FROM dba_objects <br /><br /> WHERE status = &#39;INVALID&#39;. <br /><br /> (5). Check constraint does not work <br /><br /> SELECT owner, constraint_name, table_name, <br /><br /> constraint_type, status <br /><br /> FROM dba_constraints <br /><br /> WHERE status = &#39;DISABLED&#39; AND constraint_type = &#39;P&#39; <br /><br /> (6). Check invalid trigger <br /><br /> SELECT owner, trigger_name, table_name, status <br /><br /> FROM dba_triggers <br /><br /> WHERE status = &#39;DISABLED&#39; <br /><br /> <strong>Monthly work</strong> <br /><br /> (1). Analyze Tables / Indexes / Cluster <br /><br /> analyze table estimate statistics sample 50 percent; <br /><br /> (2). Check the table space debris <br /><br /> According to this month, the weekly inspection and analysis of database fragmentation to find the appropriate solution <br /><br /> (3). Looking for a database performance tuning opportunities <br /><br /> Comparison of daily database performance monitoring and reporting, to determine whether it is necessary to adjust the database performance <br /><br /> (4). Database Performance Tuning <br /><br /> If necessary, conduct performance tuning <br /><br /><clk> (5). Proposed <nobr oncontextmenu="return false"$cE.s(event,0)'$cE.c(event,0,"",1)'$cE.OuK()>management</nobr> plan for the next space </clk><br /><br /> Based on weekly monitoring, space management for improved methods proposed <br /><br /> <strong>The daily management of <font color=#0000ff>Oracle</font> DBA</strong> <br /><br /> Purpose: This document has a very detailed information on a record of one or more of the ORACLE database, daily, monthly, and annual operating results and check the status of the results of the appendix in the document you will see All inspections, modify the SQL and PL / SQL code. <br /><br /> Directory <br /><br /> 1. Routine maintenance procedures <br /><br /> A. Checks all instances of the date of <br /><br /> B. To find some new alert log <br /><br /> C. Check DBSNMP is running <br /><br /> D. Check the database backup is correct <br /><br /> E. Check the backup to tape, the files are correct <br /><br /> F. Check whether the performance of the database proper and reasonable and whether there is sufficient space and <font color=#0000ff>resources</font> <br /><br /> G. The document copied to the backup log database <br /><br /> H. Should be used to see a DBA user&#39;s manual <br /><br /> 2. Night maintenance procedures <br /><br /> A. To collect the data VOLUMETRIC <br /><br /> 3. Weekly maintenance <br /><br /> A. To find those breaking the rules of the OBJECT <br /><br /> B. To find whether there are violations of <font color=#0000ff>security</font> policy issues <br /><br /> C. See the error log where the SQL * NET <br /><br /> D. All the alert log archive <br /><br /> E. Frequently visited provider&#39;s home page <br /><br /> 4. Month maintenance program <br /><br /> A. View of the database will harm the growth rate of <br /><br /> B. Recalling its previous adjustment of the database to optimize performance <br /><br /> C. See I / O, screen neck problems <br /><br /> D. Review FRAGMENTATION <br /><br /> E. The future implementation plan <br /><br /> F. See set point and maintain the <br /><br /> <strong>1. Day maintenance process</strong> <br /><br /> A. See whether it has played all of the instances of <br /><br /> Determine the database is available to each instance and run the day to write the log report or run the test file. Of course, there are some operations we hope that it will run automatically. <br /><br /> Choose implementation: using ORACLE Manager &#39;PROBE&#39; event to view <br /><br /> B. To find new warning log file <br /><br /> 1. Join an operation management system for each <br /><br /> 2. Use &#39;TELNET&#39; or a comparable program <br /><br /> 3. For each managed instance, a regular implementation of the $ ORACLE_BASE / / bdump operations and enable them to fall back control of the database SID. <br /><br /> 4. At the prompt, the use of UNIX in the &#39;TAIL&#39; command to view the alert_.log, or otherwise check the file in the recent period the warning log <br /><br /> 5. If you have previously there have been some of the ORA_ERRORS appeared, it would be recorded in the database recovery logs, and careful study of them, the database recovery log in the &lt;FILE&gt; in the <br /><br /> C. See DBSNMP of operation <br /><br /> Check each managed machine &#39;DBSNMP&#39; process and recorded them to the log. <br /><br /> In UNIX, in the command line, type ps-ef | grep dbsnmp, will be back to see the two DBSNMP process running. If not, restart DBSNMP. <br /><br /> D. Check database backup is successful <br /><br /> E. Check whether the backup tapes document the success of <br /><br /> F. Check for reasonable performance for the adequacy of resources for <br /><br /> 1. Check the table space, there is no residual room for <br /><br /> For each instance, the check whether there is space in the table there is space left to meet the anticipated needs of the day. When the data already in its database is stable, the data on the average growth also can be calculated, the smallest of the remaining space for at least a day to be able to meet the data growth. <br /><br /> A) Run &#39;FREE.SQL&#39; to check the remaining space for the table space. <br /><br /> B) Run &#39;SPACE.SQL&#39; to check the table space in the percentage of remaining space <br /><br /> 2. Check rollback <br /><br /> Rollback of the state is generally online, apart from some complex work to prepare for a special segment, which generally state is offline. <br /><br /> a. Each database has a list of rollback segment name. <br /><br /> b. You can use the V $ ROLLSTAT to look up online or offline rollback of the present state. <br /><br /> c. For all rollback segment <font color=#0000ff>storage</font> parameters and name, can be used to query DBA_ROLLBACK_SEGS. But it is not as good as V $ ROLLSTAT accurate. <br /><br /> 3. To identify excessive growth of <br /><br /> View the database in excess of the <font color=#0000ff>resources</font> or growing too large segments that are the storage parameters need to be adjusted. <br /><br /> a. gather information on the size of daily data can be used <br /><br /> &#39;ANALYZE5PCT.SQL&#39;. If you collect the information every night, you can skip this step. <br /><br /> b. Check the current range of available &#39;NR.EXTENTS.SQL&#39;. <br /><br /> c. Query the current size of the table information. <br /><br /> d. check the size of the current index information. <br /><br /> e. Look growth. <br /><br /> 4. To determine the scope of space <br /><br /> If the range of spatial objects NEXT_EXTENT than the tablespace can offer the widest range bigger, then this will affect the database operation. If we find that goal, you can use &#39;ALTER TABLESPACE COALESCE&#39; survey of its location, or add additional data files. <br /><br /> A) Run &#39;SPACEBOUND.SQL&#39;. If you are normal, and will not return any rows. <br /><br /> 5. Recalling the CPU, memory, networking, hardware resources, the process of argument <br /><br /> A) check the CPU utilization, and enter x: \ <font color=#0000ff>web</font> \ phase2 \ default.htm =&gt; system <br /><br /> metrics =&gt; CPU utilization page, CPU&#39;s maximum of 400, when the CPU occupancy remained at more than 350 for some time, then we need to see and study the problems arose. <br /><br /> G. Will be archived logs copied to the standby database <br /><br /> If there is a standby database, copy the appropriate archived logs to the standby database, the desired position, standby database, to save the most recent data. <br /><br /> H. regular access to DBA User&#39;s Manual <br /><br /> If possible, to a wide range of reading, including DBA manuals, trade journals, newsgroups or mailing lists. <br /><br /> <strong>2. Night maintenance process</strong> <br /><br /> Most of the database products will benefit from night to determine the operation of the inspection process. <br /><br /> A. Data collection VOLUMETRIC <br /><br /> 1. Analysis plan and data collection <br /><br /> A more accurate analysis of the calculation and save the result. <br /><br /> a) If you do not make these words, with &#39;MK VOLFACT.SQL&#39; to create a volumetric tables. <br /><br /> b) to collect data on the size of the information at night, with &#39;ANALYZE COMP.SQL&#39;. <br /><br /> c) the collection of statistical results, the &#39;POP VOL.SQL&#39;. <br /><br /> d) In the idle time of inspection data, if possible, weekly or monthly basis. <br /><br /> I was using MS EXCEL and the ODBC connection to examine the growth of data and charts <br /><br /> -------------------------------------------------- ----------- <br /><br /> <strong>3. A weekly maintenance procedures</strong> <br /><br /> A. To find the goal the destruction <br /><br /> 1. For each object of a given table space is, NEXT_EXTENT size is the same, such as 12/14/98, the default NEXT_EXTENT of DATAHI for 1G, DATALO for 500MB, INDEXES to 256MB. <br /><br /> A) Check NEXT_EXTENT settings that can be used &#39;NEXTEXT. SQL &#39;. <br /><br /> B) Check the existing EXTENTS, can be &#39;EXISTEXT. SQL &#39;. <br /><br /> 2. All tables should have a unique primary key <br /><br /> a. See that table does not have a primary key can be used &#39;NO_PK.SQL&#39;. <br /><br /> b. identify the factors that play a role in the primary key is not, and can be used &#39;DIS_PK.SQL&#39;. <br /><br /> c. All of the primary key for the index must be unique, and can be used &#39;NONUPK. SQL &#39;to check. <br /><br /> 3. All the indexes have to put the index table space. Run &#39;MKREBUILD_IDX. SQL &#39; <br /><br /> 4. Different plans for the environment should be the same, especially the testing environment and finished plans for the environment should be the same. <br /><br /> a. Check the different operating environment in the two data types are the same, available &#39;DATATYPE.SQL&#39;. <br /><br /> b. In two different instances of the object to look for a different point, can be &#39;OBJ_COORD.SQL&#39;. <br /><br /> c. a better approach is to use a tool, such as program manager for the software as tools. <br /><br /> B. see if there is harm to the <font color=#0000ff>security</font> policy issues. <br /><br /> C. See the SQL * NET Baocuo log. <br /><br /> 1. Client-side log. <br /><br /> 2. <font color=#0000ff>Server-side</font> log. <br /><br /> D. All the alert log archive <br /><br /> E. Provider&#39;s home page <br /><br /> 1. ORACLE Suppliers <br /><br /> http://www.oracle.com <br /><br /> http://technet.oracle.com <br /><br /> http://www.oracle.com/support <br /><br /> http://www.oramag.com <br /><br /> 2. Quest Software <br /><br /> http://www.quests.com <br /><br /> 3. Sun Microsystems <br /><br /> http://www. <font color=#0000ff>sun.</font> com <br /><br /> <strong>4. Month maintenance process</strong> <br /><br /> A. View of the database will harm the growth rate of <br /><br /> 1. From the previous record or report reviewed the changes in the growth segment in order to determine the growth segment harm <br /><br /> B. Recalling its previous adjustment of the database to optimize performance <br /><br /> 1. Recalling the ORACLE database to adjust the general point of comparison in previous reports to identify harmful trends. <br /><br /> C. See I / O, screen neck problems <br /><br /> 1. View the activity of pre-database files, comparing the previous output to determine the problem may lead to cervical screen trend. <br /><br /> D. Review FRAGMENTATION <br /><br /> E. Program database in the future performance of <br /><br /> 1. Comparison of ORACLE and the <font color=#0000ff>operating system</font> CPU, memory, network, and disk utilization in order to determine in the near future there will be a number of trends in the scramble for resources <br /><br /> 2. When the system will exceed the scope of the performance trend as necessary to service-level agreements of view <br /><br /> F. The completion of the adjustment and maintenance work <br /><br /> 1. To make changes to avoid the system resources to meet competing needs, This includes the addition of new resources or to make the expected downtime.				<h5>Related Posts</h5>
		<div id="smilar">
		<ul>
					<li><a href="http://www.kods.netwww.kods.net/oracle-database-used-to-maintain-day-to-day-command/" title="Oracle database used to maintain day-to-day command">Oracle database used to maintain day-to-day command</a> 2009-04-06 16:46:33</li>
					<li><a href="http://www.kods.netwww.kods.net/oracle-database-backup-and-restore/" title="oracle database backup and restore">oracle database backup and restore</a> 2009-04-03 18:35:52</li>
					<li><a href="http://www.kods.netwww.kods.net/oracle10g-asm-database-table-space-maintenance/" title="Oracle10g ASM database table space maintenance">Oracle10g ASM database table space maintenance</a> 2009-03-31 17:51:25</li>
					<li><a href="http://www.kods.netwww.kods.net/turning-optimization-oracle-article/" title="Turning optimization oracle article">Turning optimization oracle article</a> 2009-03-26 21:39:35</li>
					<li><a href="http://www.kods.netwww.kods.net/block-oracle-paragraph-reprint/" title="Block Oracle paragraph (reprint)">Block Oracle paragraph (reprint)</a> 2009-03-26 17:41:14</li>
				</ul>
		</div>
		        ]]></content:encoded>
		<wfw:commentRss>http://www.kods.netwww.kods.net/the-daily-work-of-oracle-database-administrator/</wfw:commentRss>
	</item>
		<item>
		<title>Manually create the ORACLE database (10g) - Record only</title>
		<link>http://www.kods.netwww.kods.net/manually-create-the-oracle-database-10g-record-only/</link>
		<comments>http://www.kods.netwww.kods.net/manually-create-the-oracle-database-10g-record-only/#comments</comments>
		<pubDate>Wed, 06 Jan 2010 08:20:02+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle Database]]></category>
		<category><![CDATA[operating system]]></category>
<category><![CDATA[oracle]]></category>
<category><![CDATA[database oracle]]></category>
<category><![CDATA[temporary tablespace]]></category>
<category><![CDATA[u1]]></category>
<category><![CDATA[conn]]></category>
<category><![CDATA[rdbms]]></category>
<category><![CDATA[oracle database 10g]]></category>
<category><![CDATA[oracle database administrator]]></category>
<category><![CDATA[doc oracle]]></category>
<category><![CDATA[database statement]]></category>
<category><![CDATA[user profile]]></category>
<category><![CDATA[new sid]]></category>
<category><![CDATA[oracle doc]]></category>
<category><![CDATA[microsoft windows]]></category>
<category><![CDATA[oradim]]></category>
<category><![CDATA[experiment 1]]></category>
<category><![CDATA[magic 2]]></category>
<category><![CDATA[magic 3]]></category>
<category><![CDATA[access product]]></category>
		<guid isPermaLink="true">http://www.kods.netwww.kods.net/manually-create-the-oracle-database-10g-record-only/</guid>
		<description><![CDATA[rn Question: Creating a database manually Environment: Operating System: Microsoft Windows XP [Version 5.1.2600] Database: ORACLE 10.2 Source: 1 ORACLE DOC Oracle? Database Administrator&#39;s Guide 2 ...]]></description>
		<content:encoded><![CDATA[rn <h2> <font size="3">Question:</font> </h2><br /> Creating a database manually <br /><h2> <font size="3">Environment:</font> </h2><br /> Operating System: Microsoft Windows XP [Version 5.1.2600] <br /><br /> Database: ORACLE 10.2 <br /><h2> <font size="3">Source:</font> </h2><br /> 1 ORACLE DOC <br /><br /> Oracle? Database Administrator&#39;s Guide <br /><br /> 2 Creating and Configuring an Oracle Database <br /><br /> Creating a Database with the CREATE DATABASE Statement <br /><br /> 2 own blog in an introduction <br /><br /> http://blog.chinaunix.net/u1/53979/showart.php?id=428920 <br /><h2> <font size="3">Experiment:</font> </h2><br /> 1 mkdir <br /><br /> mkdir D: \ WORK_SOFT \ app \ product \ 10.2.0 \ admin \ magic \ adump <br /><br /> mkdir D: \ WORK_SOFT \ app \ product \ 10.2.0 \ admin \ magic \ bdump <br /><br /> mkdir D: \ WORK_SOFT \ app \ product \ 10.2.0 \ admin \ magic \ cdump <br /><br /> mkdir D: \ WORK_SOFT \ app \ product \ 10.2.0 \ admin \ magic \ dpdump <br /><br /> mkdir D: \ WORK_SOFT \ app \ product \ 10.2.0 \ admin \ magic \ pfile <br /><br /> mkdir D: \ WORK_SOFT \ app \ product \ 10.2.0 \ admin \ magic \ udump <br /><br /> mkdir D: \ WORK_SOFT \ app \ product \ 10.2.0 \ db_1 \ cfgtoollogs \ dbca \ magic <br /><br /> mkdir D: \ WORK_SOFT \ app \ product \ 10.2.0 \ db_1 \ database <br /><br /> mkdir D: \ WORK_SOFT \ app \ product \ 10.2.0 \ flash_recovery_area <br /><br /> mkdir D: \ WORK_SOFT \ app \ product \ 10.2.0 \ oradata \ magic <br /><br /> 2 ORACLE_SID <br /><br /> ORADIM-NEW-SID MAGIC <br /><br /> 3 PASSWORD FILE <br /><br /> ORAPWD FILE = D: \ WORK_SOFT \ app \ PRODUCT \ 10.2.0 \ DB_1 \ DATABASE \ PWDMAGIC.ORA PASSWORD = MAGIC <br /><br /> 4 init file <br /><br /> 5 startup nomount <br /><br /> create database <br /><br /> ALTER USER SYS TEMPORARY TABLESPACE TEMP <br /><br /> 6 some scripts <br /><br /> @ D: \ WORK_SOFT \ app \ product \ 10.2.0 \ db_1 \ RDBMS \ ADMIN \ catalog.sql <br /><br /> @ D: \ WORK_SOFT \ app \ product \ 10.2.0 \ db_1 \ RDBMS \ ADMIN \ catproc.sql <br /><br /> @ D: \ WORK_SOFT \ app \ product \ 10.2.0 \ db_1 \ RDBMS \ ADMIN \ utlrp.sql <br /><br /> @ D: \ WORK_SOFT \ app \ product \ 10.2.0 \ db_1 \ RDBMS \ ADMIN \ scott.sql <br /><h2> <font size="3">Conclusion:</font> </h2><br /> A simple experiment to create a database, did not include monitoring of the class, their experiments only. <br /><br /> <font size="3"><br /></font> <br /><h2> <font size="3">Added:</font> </h2><br /> <font size="3">Problems:</font> <br /><br /> <font size="3">SQL&gt; conn thinkaw / thinkaw</font> <br /><br /> Access PRODUCT_USER_PROFILE Error <br /><br /> Warning: Product user profile does not load the file information! <br /><br /> You will need to PUPBLD.SQL running as SYSTEM <br /><br /> Is connected. <br /><br /> <font size="3">If you are prompted to perform the corresponding SQL, success.</font> <br /><br /> <font size="3"><br /></font> <br /><br /> - End <br /><br /> <font size="3"><br /></font> <br /> rn rn rn rn rn rn rn				<h5>Related Posts</h5>
		<div id="smilar">
		<ul>
					<li><a href="http://www.kods.netwww.kods.net/sga-extended-the-principle-of-32bit-oracle/" title="SGA extended the principle of 32bit oracle">SGA extended the principle of 32bit oracle</a> 2009-03-31 09:48:01</li>
					<li><a href="http://www.kods.netwww.kods.net/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/manually-create-the-oracle-database-10g-record-only/</wfw:commentRss>
	</item>
		<item>
		<title>Oracle database in the Recycle Bin</title>
		<link>http://www.kods.netwww.kods.net/oracle-database-in-the-recycle-bin/</link>
		<comments>http://www.kods.netwww.kods.net/oracle-database-in-the-recycle-bin/#comments</comments>
		<pubDate>Sat, 02 Jan 2010 17:20:02+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle Database]]></category>
		<category><![CDATA[oracle]]></category>
<category><![CDATA[oracle database]]></category>
<category><![CDATA[flashback]]></category>
<category><![CDATA[few days]]></category>
<category><![CDATA[current user]]></category>
<category><![CDATA[purge]]></category>
		<guid isPermaLink="true">http://www.kods.netwww.kods.net/oracle-database-in-the-recycle-bin/</guid>
		<description><![CDATA[A few days ago the database gave a number of useless delete a few tables, and later see what the current user, there are some table, actually featured a lot of garbled, and later checked the Internet  ...]]></description>
		<content:encoded><![CDATA[A few days ago the database gave a number of useless delete a few tables, and later see what the current user, there are some table, actually featured a lot of garbled, and later checked the Internet know, these are I deleted The tables were put to the Recycle Bin in the database, which means you use the drop table XXX statement to delete obsolete table, there is no completely clear. It is just being put into the database of the Recycle Bin. As long as time is not very long also find them again. As long as you remember the table name, and then use the statement flashback table XXX to before drop can be seen. To completely remove the table when the drop in use was coupled with purge keywords, such as drop table XXX purge can be completely deleted.				<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-database-in-the-recycle-bin/</wfw:commentRss>
	</item>
		<item>
		<title>Configure the Oracle database and monitoring systems with Linux since the launch of</title>
		<link>http://www.kods.netwww.kods.net/configure-the-oracle-database-and-monitoring-systems-with-linux-since-the-launch-of/</link>
		<comments>http://www.kods.netwww.kods.net/configure-the-oracle-database-and-monitoring-systems-with-linux-since-the-launch-of/#comments</comments>
		<pubDate>Sat, 26 Dec 2009 19:22:44+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle Database]]></category>
		<category><![CDATA[oracle]]></category>
<category><![CDATA[oracle home]]></category>
<category><![CDATA[oracle database]]></category>
<category><![CDATA[oracle product]]></category>
<category><![CDATA[listener]]></category>
<category><![CDATA[oracle instance]]></category>
<category><![CDATA[system startup]]></category>
<category><![CDATA[auto start]]></category>
<category><![CDATA[launch]]></category>
<category><![CDATA[bin directory]]></category>
<category><![CDATA[correctness]]></category>
<category><![CDATA[oracle c]]></category>
<category><![CDATA[script name]]></category>
<category><![CDATA[linux operating system]]></category>
<category><![CDATA[linux system]]></category>
<category><![CDATA[y quot]]></category>
<category><![CDATA[oracle functions]]></category>
<category><![CDATA[bash script]]></category>
<category><![CDATA[script function]]></category>
<category><![CDATA[monitoring systems]]></category>
		<guid isPermaLink="true">http://www.kods.netwww.kods.net/configure-the-oracle-database-and-monitoring-systems-with-linux-since-the-launch-of/</guid>
		<description><![CDATA[In some cases, the need to provide a Linux operating system unattended on a random start Oracle functions, to perhaps just to help those who are not concerned about the details of Oracle&#39;s friends ...]]></description>
		<content:encoded><![CDATA[In some cases, the need to provide a Linux operating system unattended on a random start Oracle functions, to perhaps just to help those who are not concerned about the details of Oracle&#39;s friends. <br /> Of course, if possible, must not use this automated method, because there are too many uncertainties exist. The right path or the side of the hand to start the database, while monitoring alert log to identify problems the first time to solve the problem. <br /><br /> Anyway, with the Linux System Startup database still has its value, following children through this small text display for everyone to look into the automation process. <br /><br /> 1. To ensure that &quot;/ etc / oratab&quot; the correctness of the document have then modify, if at creating &quot;/ etc / oratab&quot; file. The document function is to control the Oracle startup (dbstart) and close the script (dbshut) is available. <br /> # Vi / etc / oratab <br /> <font color=#0000ff><strong><u>secooler:</u></strong></font> / oracle/app/oracle/product/10.2.0/db_1: Y <br /><br /> Only when the tail logo is a &quot;Y&quot;, when, dbstart and dbshut scripts can use. <br /> dbstart and a location for dbshut script is ORACLE_HOME&#39;s bin directory, you can use the following command to view the content of the script. <br /> $ Cat $ ORACLE_HOME / bin / dbstart <br /> $ Cat $ ORACLE_HOME / bin / dbshut <br /><br /> 2. Modify access to oratab <br /> # Chmod 755 / etc / oratab <br /> # Chown oracle: root / etc / oratab <br /><br /> 3. Preparation of automatic start and stop the script, the script called &quot;oracle&quot;, the file needs to be saved in / etc / rc.d / init.d directory. <br /> vi / etc / rc.d / init.d / oracle <br /> #! / bin / bash <br /> ################################################## ############ <br /> # Script. Function: Auto start oracle instance and listener. # <br /> # Script. Name: oracle # <br /> # Author: Secooler Hou # <br /> # Date: 2009-11-13 19:58:49 # <br /> ################################################## ############ <br /> case &quot;$ 1&quot; in <br /> start) <br /> echo &quot;Starting Oracle Database ...&quot; <br /> su - oracle-c &quot;dbstart&quot; <br /> echo &quot;Done.&quot; <br /> echo &quot;Starting Oracle Listener ...&quot; <br /> su - oracle-c &quot;lsnrctl start&quot; <br /> echo &quot;Done.&quot; <br /> touch / var / lock / subsys / oracle <br /> ;; <br /> stop) <br /> echo &quot;Shutting down Oracle Listener ...&quot; <br /> su - oracle-c &quot;lsnrctl stop&quot;&gt;&gt; / var / log / oracle <br /> echo &quot;Done.&quot; <br /> rm-f / var / lock / subsys / oracle <br /> echo &quot;Shutting down Oracle Database ...&quot; <br /> su - oracle-c &quot;dbshut&quot; <br /> echo &quot;Done.&quot; <br /> echo &quot;&quot; <br /> ;; <br /> restart) <br /> $ 0 stop <br /> $ 0 start <br /> ;; <br /> *) <br /> exit 1 <br /> esac <br /><br /> 4. Script need to explain the details of the two <br /> 1) / var / lock / subsys / oracle This file is used to identify oracle instance is already running. A simple lock to achieve a similar function; <br /> 2) To achieve the root user where the user sends to the oracle database startup and shutdown commands, need to use the &quot;su&quot; command &quot;-c&quot; option, more details, please use the man command to search. <br /><br /> 5. Permissions to modify the oracle script <br /> # Chmod 755 oracle <br /><br /> 6. To ensure that the script in the Linux system startup process can be automatically called, so the need to establish the following connection file. <br /> Of particular note one detail: to determine the script to start after the implementation of the card, otherwise <a"javascript:tagshow(event, '%BC%E0%CC%FD');" href="javascript:;" target=_self> <font color=#0000ff><strong><u>Listener</u></strong></font> may not start (if the Listener configuration file using the IP address). <br /> # Ln-s .. / init.d / oracle / etc/rc.d/rc2.d/S87oracle <br /> # Ln-s .. / init.d / oracle / etc/rc.d/rc3.d/S87oracle <br /> # Ln-s .. / init.d / oracle / etc/rc.d/rc5.d/S87oracle <br /><br /> 7. At this point, after re-start the Linux system, Oracle instance and listener starts automatically. <br /><br /> 8. Based on this configuration, you can also use the following easy way to stop, Kai, and restart the database to stop: <br /> # Service oracle stop <br /> Start: <br /> # Service oracle start <br /> Restart: <br /> # Service oracle restart <br /><br /> 9. Summary I admired automation, but here presented automated startup and shutdown the database approach also invited friends with caution. <br /> Deep into the database the details of the startup and shutdown is the right way. <br /><br /> Good luck. <br /><br /> - The End --				<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/configure-the-oracle-database-and-monitoring-systems-with-linux-since-the-launch-of/</wfw:commentRss>
	</item>
		<item>
		<title>Oracle database password file to use and maintenance of</title>
		<link>http://www.kods.netwww.kods.net/oracle-database-password-file-to-use-and-maintenance-of/</link>
		<comments>http://www.kods.netwww.kods.net/oracle-database-password-file-to-use-and-maintenance-of/#comments</comments>
		<pubDate>Mon, 21 Dec 2009 06:54:13+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle Database]]></category>
		<category><![CDATA[oracle]]></category>
<category><![CDATA[oracle home]]></category>
<category><![CDATA[initialization parameters]]></category>
<category><![CDATA[lt]]></category>
<category><![CDATA[oracle instance]]></category>
<category><![CDATA[database instance]]></category>
<category><![CDATA[oracle database system]]></category>
<category><![CDATA[authentication methods]]></category>
<category><![CDATA[maximum number]]></category>
<category><![CDATA[database management]]></category>
<category><![CDATA[database directory]]></category>
<category><![CDATA[using oracle]]></category>
<category><![CDATA[orapwd]]></category>
<category><![CDATA[initial database]]></category>
<category><![CDATA[privileged user]]></category>
<category><![CDATA[command parameters]]></category>
<category><![CDATA[home database]]></category>
<category><![CDATA[max users]]></category>
<category><![CDATA[account password]]></category>
<category><![CDATA[hou]]></category>
		<guid isPermaLink="true">http://www.kods.netwww.kods.net/oracle-database-password-file-to-use-and-maintenance-of/</guid>
		<description><![CDATA[Oracle database password file to use and maintenance of By shijun »2009-11-03 11:01 Oracle, if the user wants to privileged user (INTERNAL / SYSDBA / SYSOPER) log Oracle, specifically, there are two a ...]]></description>
		<content:encoded><![CDATA[<h3> Oracle database password file to use and maintenance of </h3><br /> By <strong>shijun</strong> »2009-11-03 11:01 <br /><br /> Oracle, if the user wants to privileged user (INTERNAL / SYSDBA / SYSOPER) log Oracle, specifically, there are two authentication methods: (Source: linuxol.cn) <br /><br /> (1) The use of integrated authentication with the operating system <br /><br /> (2) using Oracle database password file authentication. <br /><br /> Therefore, to manage the password file for the control of authorized users to log on from a remote or local Oracle database system, the implementation of database management, are of particular importance. <br /><br /> Oracle database password file stored with super-user INTERNAL / SYS password and other privileges of the user&#39;s username / password, generally stored in the ORACLE_HOME \ DATABASE directory. <br /><br /> 1, the password file creation: <br /><br /> Using the Oracle Instance Manager to create a database instance, when Hou, in the ORACLE_HOME \ DATABASE directory is also automatically creates a corresponding password file, the file name PWDSID.ORA, where SID represents the corresponding Oracle database system identifier. This password file is the initial database management basis for the work. After this, the administrator can also if necessary, use a tool ORAPWD.EXE manually create a password file, the command format is as follows: C: \&gt; ORAPWD FILE = &lt;FILENAME&gt; PASSWORD <br /><br /> = &lt;PASSWORD&gt; ENTRIES = &lt;max_users&gt; <br /><br /> The meaning of the command parameters as follows: <br /><br /> FILENAME: password file name; <br /><br /> PASSWORD: Set INTERNAL / SYS account password; <br /><br /> MAX_USERS: password file can be stored in the largest number of users, corresponding to allow SYSDBA / SYSOPER permissions to log on the database the maximum number of users. Because of maintenance in the future, if the number of users exceeded this limit, you need to rebuild the password file, so this parameter can be set up too large a number as needed. <br /><br /> With the password file, the need to set initialization parameters to control the password file REMOTE_LOGIN_PASSWORDFILE the use of the state. <br /><br /> 2, set the initialization parameters REMOTE_LOGIN_PASSWORDFILE: <br /><br /> In the Oracle database instance initialization parameter file, this parameter controls the use of the password file and its state. It has the following options: <br /><br /> NONE: direct Oracle system does not use a password file, the user&#39;s login privileges through operating system authentication; <br /><br /> EXCLUSIVE: indicates that only one database instance can use this password file. Only in this setting the password file can contain, inter INTERNAL / SYS other than the user information, which allows the system privileges SYSOPER / SYSDBA granted except INTERNAL / SYS other than the user. <br /><br /> SHARED: instruction may have multiple database instances can use this password file. In this setting only INTERNAL / SYS account password file can be identified, even if the file there are other users of information, but also allow them to SYSOPER / SYSDBA permissions to log on. This is set to default values. <br /><br /> The REMOTE_LOGIN_PASSWORDFILE parameter is set to EXCLUSIVE, SHARED case, Oracle system password file search order as follows: in the system registry to find ORA_SID_PWFILE parameter values (which for the password file full path name); If you do not find, then search for ORA_PWFILE parameter value; If not found, use the default value is ORACLE_HOME \ DATABASE \ PWDSID.ORA; where SID represents the corresponding Oracle database system identifier. <br /><br /> Third, the password file to add, delete users: <br /><br /> REMOTE_LOGIN_PASSWORDFILE when the initialization parameter is set to EXCLUSIVE, the system allows addition INTERNAL / SYS other than the user as an administrator from a remote or local log on to the Oracle database system, the implementation of database management; these user names must exist in the password file in the , the system can identify them. Because whether you create the database instance is created automatically when the password file, or created manually using a tool ORAPWD.EXE password file only contains INTERNAL / SYS user information; To this end, in practice, you may need to add a password file or delete other user accounts. <br /> Because only been granted SYSOPER / SYSDBA system privileges of the user only exists in the password file, so when a user to grant or withdraw SYSOPER / SYSDBA system privileges, their account will accordingly be added to the password file or from the password file removed. <!-- m --> http://www.linuxol.cn <!-- m --> As a result, the password file to add or delete a user, in fact it is right to grant or withdraw a user SYSOPER / SYSDBA system privileges. (Source: linuxol.cn) <br /><br /> To complete the authorization operation, need to use SYSDBA privileges (or INTERNAL account number) connected to the database, and the initialization parameters set REMOTE_LOGIN_PASSWORDFILE must be EXCLUSIVE. Concrete steps are as follows: <br /><br /> Create the appropriate password file; <br /><br /> Setting initialization parameters REMOTE_LOGIN_PASSWORDFILE = EXCLUSIVE; <br /><br /> Log in using the SYSDBA privileges: <br /><br /> CONNECT SYS / internal_user_passsword AS SYSDBA; <br /><br /> Start the database instance and open the database; <br /><br /> Create a corresponding user account, his mandate (including the SYSOPER and SYSDBA): <br /><br /> Grant permissions: GRANT SYSDBA TO user_name; <br /><br /> Withdraw permission: REVOKE SYSDBA FROM user_name;<br /><br /> Now these users can log on as an administrator of the database system; <br /><br /> Fourth, using the password file login: <br /><br /> With the password file, users can use the password file to SYSOPER / SYSDBA privileges log on Oracle database instance, and pay attention REMOTE_LOGIN_PASSWORDFILE initialization parameter should be set to EXCLUSIVE or SHARED. Any user with SYSOPER / SYSDBA permissions to log in, will be located in SYS Schema of users under the following two registry examples: <br /><br /> 1. Log on to: <br /><br /> Suppose user scott has been granted SYSDBA privileges, he can use the following command log: <br /><br /> CONNECT scott / tiger AS SYSDBA <br /><br /> 2. To INTERNAL log: <br /><br /> CONNECT INTERNAL / INTERNAL_PASSWORD <br /><br /> 5, the password file maintenance: <br /><br /> 1. View the password file members: <br /><br /> Can query the view V $ PWFILE_USERS to obtain ownership SYSOPER / SYSDBA system privileges of the user&#39;s information, the table SYSOPER / SYSDBA column values TRUE / FALSE means that the user has the appropriate permissions. These users is accordingly present in the password file members. <br /><br /> 2. Expanding the number of users password file: <br /><br /> When the password file to add the account with more than create a password file, set limit (ie ORAPWD.EXE tools MAX_USERS parameters), the password file for the extension limits the number of users required to rebuild the password file, concrete steps are as follows: <br /><br /> (A) query the view V $ PWFILE_USERS, a record has SYSOPER / SYSDBA system privileges of the user information; <br /><br /> (B) close the database; <br /><br /> (C) delete the password file; <br /><br /> (D) a new one with the ORAPWD.EXE password file; <br /><br /> (E) obtained in step a user is added to the password file. <br /><br /> 3. Modify the password file states: <br /><br /> Password file status information stored in the document, when it is created, its default state of SHARED. You can change the initialization parameter settings to change the password file REMOTE_LOGIN_PASSWORDFILE state. When you start the database instances when, Oracle systems from the initialization parameter file to read REMOTE_LOGIN_PASSWORDFILE parameter settings; when loading the database, the system password file this parameter and to compare the state, if different, then update the password file status. If the plan allows more than one client from the start the database instance, as each client machine must have the initialization parameter file, it should be to ensure that the client consistency of the initialization parameter file to avoid accidentally changed the password file status , resulting in a database login failure. <br /><br /> 4. Modify the password file storage location: <br /><br /> The password file storage location can be moved as needed, but to make this modification, it should be amended accordingly the system registry pointing to the password file stored on the location parameter or environment variable settings. <br /><br /> 5. Remove the password file: <br /><br /> Deleting the password file, should ensure that the currently running instance of the database initialization parameters REMOTE_LOGIN_PASSWORDFILE are set to NONE. After deleting the password file, if you want to enter the database administrator with the words, you must use operating system authentication way to log on.				<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-database-password-file-to-use-and-maintenance-of/</wfw:commentRss>
	</item>
		<item>
		<title>Completely remove Oracle Database</title>
		<link>http://www.kods.net/completely-remove-oracle-database/</link>
		<comments>http://www.kods.net/completely-remove-oracle-database/#comments</comments>
		<pubDate>Sun, 20 Dec 2009 04:07:55+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle Database]]></category>
		<category><![CDATA[oracle]]></category>
<category><![CDATA[oracle database]]></category>
<category><![CDATA[environment variables]]></category>
<category><![CDATA[oracle installation]]></category>
<category><![CDATA[oracle 9]]></category>
<category><![CDATA[oracle products]]></category>
<category><![CDATA[oracle group]]></category>
<category><![CDATA[oracle services]]></category>
<category><![CDATA[oracle directory]]></category>
<category><![CDATA[oracle portal]]></category>
<category><![CDATA[universal installer]]></category>
<category><![CDATA[startup group]]></category>
<category><![CDATA[del key]]></category>
<category><![CDATA[program menu]]></category>
<category><![CDATA[classpath]]></category>
<category><![CDATA[administrative tools]]></category>
<category><![CDATA[path settings]]></category>
<category><![CDATA[control panel]]></category>
		<guid isPermaLink="true">http://www.kods.net/completely-remove-oracle-database/</guid>
		<description><![CDATA[: A start - &quot;Set -&quot; Control Panel - &quot;Administrative Tools -&quot; Service Stop all Oracle services. 2 to start - &quot;process -&gt; Oracle - OraHome81-&gt; Oracle Installation Products ...]]></description>
		<content:encoded><![CDATA[: <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p><br /><br /> A start - &quot;Set -&quot; Control Panel - &quot;Administrative Tools -&quot; Service <br /><br /><o:p></o:p><br /><br /> Stop all Oracle services. <br /><br /><o:p></o:p><br /><br /> 2 to start - &quot;process -&gt; Oracle - OraHome81-&gt; Oracle Installation Products-&gt; <br /><br /><o:p></o:p><br /><br /> Universal Installer <br /><br /><o:p></o:p><br /><br /> Uninstall all Oracle products, but the Universal Installer itself can not be removed <br /><br /><o:p></o:p><br /><br /> 5, run regedit, select HKEY_LOCAL_MACHINESOFTWAREORACLE, press del key to delete this entry. <br /><br /><o:p></o:p><br /><br /> 6, run regedit, select HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServices, rolling <br /><br /><o:p></o:p><br /><br /> This list, remove all the Oracle portal. <br /><br /><o:p></o:p><br /><br /> 7, run refedit, <br /><br /><o:p></o:p><br /><br /> HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesEventlogApplication, <br /><br /><o:p></o:p><br /><br /> Delete all Oracle portal. <br /><br /><o:p></o:p><br /><br /> 8, beginning - &quot;Set -&quot; Control Panel - &quot;System -&quot; High - &quot;Environment Variables <br /><br /><o:p></o:p><br /><br /> Remove the environment variable CLASSPATH and PATH settings relating to Oracle <br /><br /><o:p></o:p><br /><br /> 9, from the desktop, STARTUP (startup) group, the program menu, delete all the Oracle group and icons <br /><br /><o:p></o:p><br /><br /> 10, delete the Program Files \ Oracle directory <br /><br /><o:p></o:p><br /><br /> 11, restart the computer, re-post to be completely removed from the directory where Oracle <br /><br /><o:p></o:p><br /><br /> 2009-12-20				<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.net/completely-remove-oracle-database/</wfw:commentRss>
	</item>
		<item>
		<title>Silent installation of Oracle Database Practice</title>
		<link>http://www.kods.netwww.kods.net/silent-installation-of-oracle-database-practice/</link>
		<comments>http://www.kods.netwww.kods.net/silent-installation-of-oracle-database-practice/#comments</comments>
		<pubDate>Sat, 19 Dec 2009 13:00:25+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle Database]]></category>
		<category><![CDATA[operating system]]></category>
<category><![CDATA[oracle]]></category>
<category><![CDATA[parameters]]></category>
<category><![CDATA[two steps]]></category>
<category><![CDATA[database version]]></category>
<category><![CDATA[oracle database 10g]]></category>
<category><![CDATA[oracle databases]]></category>
<category><![CDATA[linux system]]></category>
<category><![CDATA[windows xp]]></category>
<category><![CDATA[step 1]]></category>
<category><![CDATA[preface]]></category>
<category><![CDATA[installation interface]]></category>
<category><![CDATA[oracle database software]]></category>
<category><![CDATA[rom oracle]]></category>
<category><![CDATA[windows xp professional sp2]]></category>
<category><![CDATA[chapter references]]></category>
<category><![CDATA[kit documentation]]></category>
<category><![CDATA[concise guide]]></category>
<category><![CDATA[rom version]]></category>
<category><![CDATA[playback]]></category>
		<guid isPermaLink="true">http://www.kods.netwww.kods.net/silent-installation-of-oracle-database-practice/</guid>
		<description><![CDATA[Silent installation of Oracle Database Practice Author: Qu Zhuo April 21, 2006 Directory Preface Silent install Oracle Database 10g chapter Oracle Database 9i silent installation chapter References Pr ...]]></description>
		<content:encoded><![CDATA[<h3> Silent installation of Oracle Database Practice </h3><br /> Author: Qu Zhuo <br /><br /> April 21, 2006 <br /><br /><h4> Directory </h4><table cellspacing=0 cellpadding=1 border=0><tbody><tr valign=top><td></td><td> <font color=#800080>Preface</font> </td></tr><tr valign=top><td><font color=#800080></font></td><td><a"http://www.oracle.com/technology/global/cn/pub/articles/10gdba/wininst_otn.html#i"> <font color=#800080>Silent install Oracle Database 10g chapter</font> </td></tr><tr valign=top><td><font color=#800080></font></td><td><a"http://www.oracle.com/technology/global/cn/pub/articles/10gdba/wininst_otn.html#a"> <font color=#800080>Oracle Database 9i silent installation chapter</font> </td></tr><tr valign=top><td><font color=#800080></font></td><td><a"http://www.oracle.com/technology/global/cn/pub/articles/10gdba/wininst_otn.html#t1"> <font color=#800080>References</font> </td></tr></tbody></table><h4><font color=#800080></font></h4><h3> Preface </h3><br /> This article is the author of Oracle database, the practice of silent installation process of recording and lessons learned. One of the silent installation of 10g on RHEL AS3U4 practice is carried out, 9i silent installation of the practice is in the Windows XP Professional (SP2) is conducted. 9i installed in three common CD-ROM, Oracle installing customized specifically for the embedded installation of 9i of a CD-ROM version of the 9204e, can download the version of the OPN site of the installation file. This article 9i install the version used in the practice shall be 9204e. <br /><br /> This understanding of Oracle databases through the silent installation of the main steps and processes may also be a silent installation of this as a concise guide for reference. If you need detailed instructions and parameters for silent installation process, please according to the actual operating system and database version of the reference to the corresponding OEIKit Kit documentation. <br /><br /> <font color=#800080>Back to Topic List</font> <br /><br /><h3> Silent install Oracle Database 10g chapter </h3><br /> The following is a silent installation on a Linux system, Oracle Database 10g course of practice, mainly divided into the following two steps: <br /><br /> Step 1. Silent install Oracle Database 10g Software <br /><br /><table cellspacing=0 cellpadding=1 width=650 border=0><tbody><tr valign=top><td> <strong>1.</strong> </td><td width=600><br /> Use OUI recorded response file, records the installation process <br /><br /> Execute the following command, and then OUI prompts to install the database, in accordance with the operation of the software <br /> $. / runInstaller-record-destinationFile / tmp / install_database.rsp <br /><br /> Note: <br /><br /><blockquote> The recording, select only the installation of the database software does not create a database <br /><br /> When the installation interface reached the final step in the selection of cancel </blockquote></td></tr><tr valign=top><td> <strong>2.</strong> </td><td width=600><br /> Playback response file silent install Oracle database software <br /><br /><blockquote> Execute the following command to install Oracle database software silently <br /><br /> $. / runInstaller-silent-responseFile / tmp / install_database.rsp <br /><br /> After the installation is complete, execute the following script <br /><br /> #. $ ORACLE_BASE / oraInventory / orainstRoot.sh <br /> #. $ ORACLE_HOME / root.sh <br /><br /> Optional parameters: <br /><br /> Can use $. / RunInstaller-help see all the optional parameters OUI For example: $. / RunInstaller-silent-force-ignoreSysprereqs ORACLE_HOME = / oracle ORACLE_HOME_NAME = OHOME_1-responseFile / tmp / install_database.rsp </blockquote></td></tr><tr valign=top><td> <strong>3.</strong> </td><td width=600><br /> Silent uninstall the Oracle Database Software <br /><br /><blockquote> Execute the following command to uninstall silently Oracle database software <br /> $. / runInstaller-silent-deinstall-removeallfiles-removeAllPatches &quot;REMOVE_HOMES = ($ ORACLE_HOME)&quot;-responseFile / tmp / install_database.rsp </blockquote></td></tr></tbody></table><br /> Step 2. Silent installation of Oracle Database <br /><br /><table cellspacing=0 cellpadding=1 width=650 border=0><tbody><tr valign=top><td> <strong>1.</strong> </td><td width=600><br /> Use DBCA to create a seed database - ISV actually need to use the database <br /><br /> (1) to create an initial database came time to select Custom Database template <br /> (2) recommend the use of File System Storage Mechanism <br /> (3) The data file location of the proposed options <blockquote><p> Use Oracle-Managed Files <br /> Database Area: (ORACLE_BASE) / oradata </blockquote><br /><br /> (4) memory recommend choosing Custom, specify the size of the SGA and PGA <br /> (5) character set based on the actual need to set up <br /> (6) database creation option inside the option Create Database <br /> (7) to create applications that require the table space and user, import the initial data <br /><br /></td></tr><tr valign=top><td> <strong>2.</strong> </td><td width=600><br /> According to seed the database with the DBCA to create a template <br /><br /><blockquote> (1) Start DBCA, select Manage Templates <br /> (2) Follow the prompts to create a template </blockquote></td></tr><tr valign=top><td> <strong>3.</strong> </td><td width=600><br /> Oracle DB installation disc inside the response directory dbca.rsp copy to this machine <br /><br /></td></tr><tr valign=top><td> <strong>4.</strong> </td><td width=600><br /> Modify dbca.rsp file to the template name and the DB name to be added <br /><br /><blockquote> GDBNAME = <br /> SID = <br /> TEMPLATENAME =<br /> If you need to use Oracle Enterprise Manager, you also need to modify the following parameters are as follows: <br /> EMCONFIGURATION = &quot;LOCAL&quot; <br /> SYSMANPASSWORD = &quot;password&quot; <br /> DBSNMPPASSWORD = &quot;password&quot; </blockquote></td></tr><tr valign=top><td> <strong>5.</strong> </td><td width=600><br /> Execute the following command to use DBCA to create a new database according to the template <br /><br /> $. / dbca-silent-createdatabase-responseFile / home / oracle / embed / dbca.rsp <br /><br /></td></tr><tr valign=top><td> <strong>6.</strong> </td><td width=600><br /> Would have a direct write. Ora file configuration listener <br /><br /></td></tr><tr valign=top><td> <strong>7.</strong> </td><td width=600><br /> Configure listener using the method is as follows Netca <br /><br /><blockquote> (1) Oracle DB installation disc inside the response directory netca.rsp copy to this machine (2) modify the file netca.rsp <br /><br /><blockquote> INSTALL_TYPE = &quot;&quot; custom &quot;&quot; <br /> LISTENER_NAMES = ( &quot;LISTENER_EMBED&quot;) <br /> LISTENER_PROTOCOLS = ( &quot;TCP; 1521&quot;) <br /> LISTENER_START = &quot;&quot; LISTENER_EMBED &quot;&quot; </blockquote><br /><br /> (3) execute the following commands to configure silent Listener <br /> $. / dbca / silent / responseFile / home / oracle / embed / netca.rsp </blockquote></td></tr></tbody></table><br /><br /> <font color=#800080>Back to Topic List</font> <br /><br /><h3> Oracle Database 9i silent installation chapter </h3><br /> The following is a silent installation on a Windows system, Oracle database, 9204e course of practice, mainly divided into the following three steps: <br /><br /> Step 1. Oracle Database 9i silent installation software <br /> Step 2. Silent installation of Oracle Database <br /> Step 3. Silent Upgrade ODBC Driver (optional) <br /><br /> Step 1. Oracle Database 9i silent installation software <br /><br /><table cellspacing=0 cellpadding=1 width=650 border=0><tbody><tr valign=top><td> <strong>1.</strong> </td><td width=600><br /> Obtain the response file <br /><br /> (1) <strong>Method 1: In the $ MountPoint / install directory, execute the following command to record a response file: setup.exe-record-destinationFile destinationFile.rsp</strong> <br /><br /> For <strong>example: D: \</strong> Soft \ Oracle_product \ rdbms_9204e_win \ install&gt; <strong>setup.exe-record-destinationFile</strong> D: \ <strong>Tmp</strong> \ install_oracle.rsp <br /><br /> Note: <br /><br /><blockquote> (1) The need to add the recorded response file INSTALL_TYPE = &quot;EE&quot; to specify the installation of oracle Database Enterprise Edition (2) The need to respond to the recorded file, change the following parameters: ACCEPT_LICENSE_AGREEMENT = true </blockquote><br /> (2) <strong>Method 2: based on actual need to modify the $ MountPoint / stage / Response / oracle.server.EE.rsp:</strong> <br /><br /> Of which the following parameters are set according to the actual situation: <br /><br /><blockquote> FROM_LOCATION = &quot;.. \ stage \ products.xml&quot; <br /><br /> FROM_LOCATION_CD_LABEL = &quot;LABEL1&quot; <br /><br /> ORACLE_HOME = <value required> ORACLE_HOME_NAME = &quot;OHOME1&quot; </blockquote></td></tr><tr valign=top><td> <strong>2.</strong> </td><td width=600><br /> Playback response file to install Oracle database software <br /><br /> Execute the following command to install Oracle database software silent setup.exe-silent-responseFile responseFile Name <br /><br /></td></tr><tr valign=top><td> <strong>3.</strong> </td><td width=600><br /> Silent uninstall the Oracle Database Software <br /><br /> (1) perform the following SQLPlus script to close the database: <br /> shutdown immediate <br /> exit; <br /> (2) Stop Oracle Services <br /> (3) in the $ ORACLE_HOME / bin directory, execute the following command to remove the Oracle Database <br /> oradim-delete-sid% MY_ORACLE_SID% <br /> (4) OEIKit Toolkit removeService.exe where the directory execute the following command to remove the Oracle network services <br /> removeService Oracle% ORACLE_HOME_NAME% TNSListener <br /> (5) to perform the following command to uninstall silently Oracle database software <br /> setup.exe-noconsole-silent-deinstall-waitforcompletion-monitorFile% monitorFile% ORACLE_HOME =% MY_ORACLE_HOME% ORACLE_HOME_NAME =% ORACLE_HOME_NAME% REMOVE_HOMES =&quot;{&quot;% MY_ORACLE_HOME% &quot;)&quot;-responseFile% responseFileDir% \ oracle9iserver_singlecd.rsp <br /> For example: <br /> D: \ Soft \ Oracle_product \ rdbms_9204e_win \ install&gt; setup.exe-noconsole-silent-deinstall-waitforcompletion ORACLE_HOME = d: \ OraHome_2 ORACLE_HOME_NAME = OUIHome2 REMOVE_HOMES = &quot;D: \ OraHome_2&quot;-responseFile d: \ tmp \ install_test.rsp <br /><br /></td></tr></tbody></table><br /> Step 2. Silent installation of Oracle Database <br /><br /><table cellspacing=0 cellpadding=1 width=650 border=0><tbody><tr valign=top><td> <strong>1.</strong> </td><td width=600><br /> Use DBCA to create a seed database - ISV actually need to use the database <br /><br /> (1) to create an initial database came time to select Custom Database template <br /> (2) character set based on the actual need to set up <br /> (3) database creation option inside the option Create Database <br /> (4) to create applications that require the table space and user, import the initial data <br /><br /></td></tr><tr valign=top><td> <strong>2.</strong> </td><td width=600><br /> 2.2.2 DBCA to create a template according to seed the database <br /><br /> (1) Start DBCA, select Manage Templates <br /> (2) Follow the prompts to create a template (3) will create a good template file (. Dbc and. Dfj) copied to the% ORACLE_HOME% \ assistants \ dbca \ templates \ <br /><br /></td></tr><tr valign=top><td> <strong>3.</strong> </td><td width=600><br /> Execute the following command to use DBCA to create a new database according to the template <br /><br /> dbca-silent-createDatabase-templateName templateName-gdbname gdbname-sid sidName-sysPassword sysPassword-systemPassword systemPassword <br /><br /> For example: <br /> D: \ OraHome_2 \ BIN&gt; dbca-silent-createDatabase-templateName test.dbc-gdbname &quot;zesl.cn.oracle.com&quot;-sid &quot;zesl&quot;-sysPassword &quot;oracle&quot;-systemPassword &quot;oracle&quot; <br /><br /></td></tr><tr valign=top><td> <strong>4.</strong> </td><td width=600><br /> Would have a direct write. Ora file configuration listener <br /><br /></td></tr><tr valign=top><td> <strong>5.</strong> </td><td width=600><br /> Configure listener using the method of Netca with 1.2.7 <br /><br /></td></tr></tbody></table><br /> Step 3. Silent Upgrade ODBC Driver (optional) <br /><br /> Oracle DB 9204e Windows version of the installation is complete, ODBC Driver version is 9.02.00.00, in view of 9.02.00.02 version of some of the optimization, some users ODBC Driver needs to be upgraded to 9.02.00.02, the following is a silent upgrade process: <br /><br /><blockquote> (1) Reference odbc.rsp to create a response file, which the following parameters set according to the actual situation: FROM_LOCATION, ORACLE_HOME, ORACLE_HOME_NAME; <br /><br /> (2) using the following commands to start OUI, specify the use of the response file to complete the silent update: setup.exe-silent-responseFile responseFile Name For example: D: \ Soft \ Oracle_product \ rdbms_9204e_win \ install&gt; setup.exe-silent-responseFile D: \ Soft \ Oracle_product \ ODBC \ ora9202 \ odbc.rsp <br /><br /> (3) 9202ODBC driver download address http://www.oracle.com/technology/software/tech/windows/odbc/htdocs/utilsoft.html </blockquote>				<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/silent-installation-of-oracle-database-practice/</wfw:commentRss>
	</item>
		<item>
		<title>ORACLE database structure diagram</title>
		<link>http://www.kods.net/oracle-database-structure-diagram/</link>
		<comments>http://www.kods.net/oracle-database-structure-diagram/#comments</comments>
		<pubDate>Fri, 27 Nov 2009 07:19:12+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle Database]]></category>
		<category><![CDATA[quot]]></category>
<category><![CDATA[oracle]]></category>
<category><![CDATA[oracle database]]></category>
<category><![CDATA[amp]]></category>
<category><![CDATA[database structure diagram]]></category>
		<guid isPermaLink="true">http://www.kods.net/oracle-database-structure-diagram/</guid>
		<description><![CDATA[ORACLE database structure diagram: 500) this.width = 500; &quot;border =&quot; 0 &quot;&quot;]]></description>
		<content:encoded><![CDATA[ORACLE database structure diagram: <br /><br /> <a href="http://www.kods.net/upload/o/oracle-database-structure-diagram.png" class="lightbox"><img src="http://www.kods.net/upload/o/oracle-database-structure-diagram_thumb.png"   alt="ORACLE database structure diagram" title="ORACLE database structure diagram" /></a> 500) this.width = 500; &quot;border =&quot; 0 &quot;&quot;				<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.net/oracle-database-structure-diagram/</wfw:commentRss>
	</item>
		<item>
		<title>Oracle Database Optimization of the basic ideas</title>
		<link>http://www.kods.netwww.kods.net/oracle-database-optimization-of-the-basic-ideas/</link>
		<comments>http://www.kods.netwww.kods.net/oracle-database-optimization-of-the-basic-ideas/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 17:17:48+0000</pubDate>
		<dc:creator>kods.net</dc:creator>
		<category><![CDATA[Oracle Database]]></category>
		<category><![CDATA[oracle database]]></category>
<category><![CDATA[oracle support]]></category>
<category><![CDATA[data query]]></category>
<category><![CDATA[database performance]]></category>
<category><![CDATA[oracle account]]></category>
<category><![CDATA[software patches]]></category>
<category><![CDATA[database optimization]]></category>
<category><![CDATA[technical personnel]]></category>
<category><![CDATA[project life cycle]]></category>
<category><![CDATA[work efficiency]]></category>
<category><![CDATA[engineer support]]></category>
<category><![CDATA[plan formulation]]></category>
<category><![CDATA[query software]]></category>
<category><![CDATA[customer service number]]></category>
<category><![CDATA[quality plan]]></category>
<category><![CDATA[high ratio]]></category>
<category><![CDATA[database project]]></category>
<category><![CDATA[poor performance]]></category>
<category><![CDATA[management activities]]></category>
<category><![CDATA[current project]]></category>
		<guid isPermaLink="true">http://www.kods.netwww.kods.net/oracle-database-optimization-of-the-basic-ideas/</guid>
		<description><![CDATA[The purpose of a document The company&#39;s current project, a database project using the oracle account for a very high ratio in various stages of the project life cycle, there is a demand for optimi ...]]></description>
		<content:encoded><![CDATA[<h1> <font face=宋体 size=3><a name=_Toc245815909 class="lightbox">The purpose of a document</a></font> </h1><br /> <font face=宋体 size=3>The company&#39;s current project, a database project using the oracle account for a very high ratio in various stages of the project life cycle, there is a demand for optimizing the database, this document used to guide the engineering and technical personnel quickly locate problems and seize database performance the main bottlenecks to standardize tuning work, improve work efficiency.</font> <br /><br /><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p><font face=宋体 size=3> </font></o:p><br /><br /><h1> <a name=_Toc245815910><font face=宋体 size=3>2 Scope</font></a> </h1><br /> <font face=宋体 size=3>A certain database management and R</font> &amp; <font face=宋体 size=3>D-based technical staff, at the same time, this document describes only the principles and methods do not provide specific orders, nor can not replace the operating manual.</font> <br /><br /><o:p><font face=宋体 size=3> </font></o:p><br /><br /><h1> <a name=_Toc245815911><font face=宋体 size=3>3 Terminology</font></a> </h1><br /> <font face=宋体><font size=3>PDCA: PDCA cycle is also called the Deming Wheel is the nation&#39;s experts in Deming quality management first proposed, it is a total quality management of scientific procedures to be followed. Total quality management activities of the whole process is the quality plan formulation and implementation process of the organization, this process is in accordance with PDCA cycle, without interruption to operation of the cycle.</font></font> <br /><br /> <font face=宋体><font size=3>Metalink: Oracle&#39;s official support site, the site need to use the customer service number to register (CSI), website provides a variety of Oracle&#39;s full range of products and technical data query, software patches and updates download, as well as a 24-hour engineer support services. At present, the site officially changed its name to My Oracle support.</font></font> <br /><br /><o:p><font face=宋体 size=3> </font></o:p><br /><br /><h1> <a name=_Toc245815912><font face=宋体 size=3>4 points Description</font></a> </h1><h2> <a name=_Toc245815913><font face=宋体 size=3>4.1 &quot;good performance&quot; and &quot;poor performance&quot;</font></a> </h2><br /> <font face=宋体><font size=3>&quot;Good performance&quot; is defined in the absence of the time, rather than the definition in the event of the time. Can easily identify the performance of a business trip, while the &quot;good performance&quot; is usually defined as not simply a &quot;poor performance.&quot; For the database, the engineering understanding, the &quot;poor performance&quot; can be reflected in the following areas:</font></font> <br /><br /><font face=宋体 size=3></font> <font face=宋体 size=3>The machine and the client remote access to the database, the connection response is not timely, or there is a long connection times out after trying to connect or not connect;</font> <br /><br /><font face=宋体 size=3></font> <font face=宋体 size=3>After the table in the database operations, including: implementation of the general increase, delete, change, check SQL, the results returned a long time delay, especially in some smaller operations, the waiting time is over; stored procedures and slow implementation of the package can also be considered to be &quot;poor performance&quot;;</font> <br /><br /><font face=宋体 size=3></font> <font face=宋体 size=3>Application interface on the front-end operations, such as generate and view reports, add and modify a particular data, the system response is slow, poor user experience, resulting in disappointment and complained increase in the number and so on.</font> <br /><br /> <font face=宋体 size=3>In contrast, if the situation does not exist, we believe that the database has a &quot;good performance.&quot; As shown in Figure 4-1, we strive to maintain customer satisfaction performance, range, consume a lot of manpower and material resources to achieve the ultimate performance has not significantly improved user experience, the loss of their poor performance, customer satisfaction will quickly decrease.</font> <br /><br /> <a href="http://www.kods.net/upload/o/oracle-database-optimization-of-the-basic-ideas.jpg"><font face=宋体 size=3><a name=_Toc245815909><img src="http://www.kods.net/upload/o/oracle-database-optimization-of-the-basic-ideas_thumb.jpg"   alt="Oracle Database Optimization of the basic ideas" title="Oracle Database Optimization of the basic ideas" /></a></font></a> <br /><br /><?xml:namespace prefix = v ns = "urn:schemas-microsoft-com:vml" /><v:shapetype"f" filled="f" path="m@4@5l@4@11@9@11@9@5xe" o:preferrelative="t" o:spt="75" coordsize="21600,21600"><v:stroke joinstyle="miter"></v:stroke><v:formulas><v:f eqn="if lineDrawn pixelLineWidth 0"></v:f><v:f eqn="sum @0 1 0"></v:f><v:f eqn="sum 0 0 @1"></v:f><v:f eqn="prod @2 1 2"></v:f><v:f eqn="prod @3 21600 pixelWidth"></v:f><v:f eqn="prod @3 21600 pixelHeight"></v:f><v:f eqn="sum @0 0 1"></v:f><v:f eqn="prod @6 1 2"></v:f><v:f eqn="prod @7 21600 pixelWidth"></v:f><v:f eqn="sum @8 21600 0"></v:f><v:f eqn="prod @7 21600 pixelHeight"></v:f><v:f eqn="sum @10 21600 0"></v:f></v:formulas><v:path o:connecttype="rect" gradientshapeok="t" o:extrusionok="f"></v:path><o:lock aspectratio="t" v:ext="edit"></o:lock></v:shapetype><br /><br /> <font face=宋体><font size=3>Figure 4-1 the relationship between customer satisfaction and performance plans</font></font> <br /><br /><o:p><font face=宋体 size=3> </font></o:p><br /><br /><h2> <font face=宋体 size=3><a name=_Toc245815914 title="Oracle Database Optimization of the basic ideas" class="lightbox">4.2 Optimization goals</a></font> </h2><br /> <font face=宋体 size=3>The ultimate goal is to optimize the database, database, user satisfaction, rather than the pursuit of the ultimate performance, more specific data are not reflected in the indicators. Moreover, with the adjustment of business to carry out the project life cycle, database optimization is an ongoing and long-term process, and any adjustment and optimization, as long as the performance, optimization is effective. Therefore, we advocate that the database should be optimized step by step in accordance with the laws of PDCA (see Figure 4-2), rather than aggressive behavior should be bold. Specifically, the performance problems, locate a good reason for the targeted optimization, the other with non-relevant factors, no adjustment.</font> <br /><br /> <a href="http://www.kods.net/upload/o/oracle-database-optimization-of-the-basic-ideas_1.jpg"><a name=_Toc245815909><font face=宋体 size=3><img src="http://www.kods.net/upload/o/oracle-database-optimization-of-the-basic-ideas_1_thumb.jpg"  /></font></a></a> <br /><br /><font face=宋体 size=3>       </font> <font face=宋体 size=3>Figure 4-2 Database Optimization of PDCA rules</font> <br /><br /><o:p><font face=宋体 size=3> </font></o:p><br /><br /><h2> <a name=_Toc245815915 title="Oracle Database Optimization of the basic ideas" class="lightbox"><font face=宋体 size=3>4.3 optimized links and personnel</font></a> </h2><br /> <font face=宋体 size=3>Good performance is that apart from security, stability, the database of the most should pay attention to one aspect. In the database design, application design stage, the implementation of the construction phase, as well as post-maintenance stage, the performance should be given adequate attention, particularly in the design, there is one saying goes: &quot;Good performance is designed, not to adjust out of. &quot; Meanwhile, in the optimization of database maintenance work, a SQL statement to write good or bad, to demonstrate the efficiency of the database can vary more than a thousand times. Therefore, database optimization, need to program developers (R &amp; D department), database management personnel (engineering), and the project maintenance personnel (project group) protracted and unremitting efforts to achieve.</font> <br /><br /><o:p><font face=宋体 size=3> </font></o:p><br /><br /><h2> <a name=_Toc245815916><font face=宋体 size=3>4.4 How to ask questions</font></a> </h2><br /> <font face=宋体 size=3>Engineering Department responsible for all third-party hardware and software products to support the work of every day to face a variety of technical support needs. If the database performance problems, we hope that the question raised by colleagues, can provide the following information, or help desk to guide them to answer these questions:</font> <br /><br /><font face=宋体 size=3></font> <font face=宋体 size=3>Database server and storage equipment, hardware configuration (mainly the CPU, memory and SWAP space, storage devices and RAID-level models, etc.);</font> <br /><br /><font face=宋体 size=3></font> <font face=宋体 size=3>The version of the operating system platform (for UNIX, preferably with the results of uname-a);</font> <br /><br /><font face=宋体 size=3></font> <font face=宋体 size=3>The version of database software, specifically to the small version, such as the</font> <?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" /><st1:chsdate w:st="on" isrocdate="False" islunardate="False" day="30" month="12" year="1899"> <font face=宋体 size=3>10.2.0</font> </st1:chsdate> <font face=宋体 size=3>.1 Or 9.2.0.8;</font> <br /><br /><font face=宋体 size=3></font> <font face=宋体 size=3>System is currently the performance of statistical results (top, vmstat, prstat, iostat, etc.);</font> <br /><br /><font face=宋体 size=3></font> <font face=宋体 size=3>The database parameter configuration, pfile / spfile file, or show parameter results;</font> <br /><br /><font face=宋体 size=3></font> <font face=宋体 size=3>Data file and table space distribution;</font> <br /><br /><font face=宋体 size=3></font> <font face=宋体 size=3>Online redo logs of the distribution;</font> <br /><br /><font face=宋体 size=3></font> <font face=宋体><font size=3>alert logs (if the log large, you can intercept the recent 10000 records);</font></font> <br /><br /><font face=宋体 size=3></font> <font face=宋体 size=3>Baocuo and alarm screenshots, detailed information (including foreground and background), the problem has led to what effect, affecting the extent of the;</font> <br /><br /><font face=宋体 size=3></font> <font face=宋体 size=3>A concrete manifestation of poor performance, such as the speed of execution on a particular SQL statement, or the application of an operation to reduce wait too long;</font> <br /><br /><font face=宋体 size=3></font> <font face=宋体 size=3>Systems and applications is the recent change, if so, what changes and adjustments made;</font> <br /><br /><font face=宋体 size=3></font> <font face=宋体><font size=3>Dynamic performance views (V $ SYSTEM_EVENT, V $ SESSION_EVENT, V $ SESSION_WAIT and V $ SESSION)</font></font> <o:p></o:p><br /><br /><font face=宋体 size=3></font> <font face=宋体><font size=3>AWR and ADDM results</font></font> <o:p></o:p><br /><br /><font face=宋体 size=3></font> <font face=宋体><font size=3>statspack report</font></font> <o:p></o:p><br /><br /><font face=宋体 size=3></font> <font face=宋体><font size=3>Memory hit rate in all regions</font></font> <o:p></o:p><br /><br /> <font face=宋体 size=3>More non-yellow background for the need to provide the information, yellow background part is optional information, when the problem requires in-depth analysis, often need to use that information.</font> <br /><br /><o:p><font face=宋体 size=3> </font></o:p><br /><br /><h1> <a name=_Toc245815917><font face=宋体 size=3>5 How to Optimize</font></a> </h1><h2> <a name=_Toc245815918><font face=宋体 size=3>5.1 Optimization of ideas and principles of the</font></a> </h2><br /> <font face=宋体 size=3>Potential impact on business performance, real-world applications. When trying to solve performance problems, the need to ensure that we have to carefully monitor the areas for improvement, with particular attention to the changes in the system before and after modification. We must adopt a systematic approach to discover the source of performance problems and implement appropriate solutions. This approach requires that before doing any change must be the use of resources and response time to establish a baseline, and required to re-examine the performance of the system until after the environmental change can only do a small amount of changes.</font> <br /><br /> <font face=宋体 size=3>The database server may be encountered due to competition over resources, leading to bottlenecks. In fact, the computer system when taking into account in the design of a lack of resources when the resources are available to try another compensation, this sometimes lead to compensate for the resource deficit. If the physical memory is exhausted, the operating system memory area will be replaced-to-disk (SWAP partition) and going, this will lead to I / O bottlenecks. Science, a general principle: time and space constraints between the expense of time can be for space, or space can be sacrificed in exchange for time. Therefore, we need to find a balance between a variety of resources, avoiding short-board effects.</font> <br /><br /><o:p><font face=宋体 size=3> </font></o:p><br /><br /><h2> <a name=_Toc245815919><font face=宋体 size=3>5.2 Optimization Process</font></a> </h2><br /> <a href="http://www.kods.net/upload/o/oracle-database-optimization-of-the-basic-ideas_2.jpg"><a name=_Toc245815909><font face=宋体 size=3><img src="http://www.kods.net/upload/o/oracle-database-optimization-of-the-basic-ideas_2_thumb.jpg"  /></font></a></a> <br /><br /> <font face=宋体 size=3>Figure 5-1 Database Basic Optimization Process</font> <br /><br /> <font face=宋体 size=3>Based on the diagram, the proposed optimization of the basic process:</font> <br /><br /> <font face=宋体><font size=3>1, receives performance problems, according to the information collection listed in 3.4 a list of information collection, collation Well, this is also the baseline data.</font></font> <br /><br /> <font face=宋体><font size=3>2, first check the hardware problems, hardware, operating system, databases and applications running on the physical basis, if the hardware fails, the system is difficult to normal operation, such as: disk array battery failure, its write IO performance will be a decrease of 60% or more immediately .</font></font> <br /><br /> <font face=宋体><font size=3>3, the hardware no problem, for some of the more obvious performance problems, or problems can be directly analyzed Baocuo phenomenon, then the appropriate treatment, such as: database does not insert any data, according to prompts that can navigate to the file system directory or a table full of space has been filled; or an application module is running normally, but the upgrade of the sharp decline in performance of procedures may be required to R</font></font> &amp; <font face=宋体><font size=3>D personnel inspection procedures. Typically, intuitive problem is rare.</font></font> <br /><br /> <font face=宋体><font size=3>4, parallel to consider parameters, the physical hardware (CPU, memory, network and IO), bug (including the operating system and the database itself), and SQL impact. Some of the more typical database parameters, such as 9i the data cache size,</font></font> <st1:chmetcnv w:st="on" unitname="g" sourcevalue="10" hasspace="False" negative="False" numbertype="1" tcsc="0"> <font face=宋体><font size=3>10g</font></font> </st1:chmetcnv> <font face=宋体><font size=3>The sga_target, for different application business, combined with the physical memory size, can be more obvious to set a reasonable level; the physical hardware, CPU, memory, and network to focus on whether the performance of its configuration to meet application needs, if applied correctly, CPU and memory a long time to maintain a high utilization rate, usually the processing performance can not keep up due to their application needs, this time to consider expansion will be a quick run their own access to a database server</font></font> <st1:chmetcnv w:st="on" unitname="m" sourcevalue="100" hasspace="False" negative="False" numbertype="1" tcsc="0"> <font face=宋体><font size=3>100M</font></font> </st1:chmetcnv> <font face=宋体><font size=3>Either</font></font> <st1:chmetcnv w:st="on" unitname="m" sourcevalue="10" hasspace="False" negative="False" numbertype="1" tcsc="0"> <font face=宋体><font size=3>10M</font></font> </st1:chmetcnv> <font face=宋体><font size=3>When the switch from the client initiated the visit, performance will be greatly affected. IO is very easy to become a performance bottleneck of a factor, which is due to the physical structure of the disk device caused, usually, for the data file contention easy to form hot disk, once found such a situation, if you can not upgrade storage, can be considered hot files will be scattered to different disks and devices, or from the application point of view in space and time may have originally spread onto IO-intensive to read and write operations; while some performance problems are caused by the operating system and the bug database, created, and these can be manufacturer&#39;s Web site found the information, download patches, by way of repairing systems and databases to obtain performance improvements; According to statistics, the impact of database performance factors, adjustment of the application database performance improvements, can account for 60% of the effect ( see Figure 5-2). So, can awr, statspack information resource consumption, removal of some large SQL submitted to the R</font></font> &amp; <font face=宋体><font size=3>D analysis and optimization, giving priority to the principal contradiction. This part of the optimization of the R</font></font> &amp; <font face=宋体><font size=3>D recommended books are Oracle&#39;s vice president of technology, edited by Tomas Kyte&#39;s &quot;Effective Oracle by Design&quot; and &quot;Expert Oracle Database Architecture: 9i and 10g Programming Techniques and Solutions&quot;.</font></font> <br /><br /><v:shape"MARGIN-TOP: 5.4pt; Z-INDEX: 1; LEFT: 0px; MARGIN-LEFT: 15.75pt; WIDTH: 415.5pt; POSITION: absolute; HEIGHT: 261.75pt; TEXT-ALIGN: left" filled="t" type="#_x0000_t75" strokeweight="1pt" fillcolor="#099" o:bwnormal="blackTextAndLines" o:bwpure="blackTextAndLines"></v:shape><o:p><o:p> <a href="http://www.kods.net/upload/o/oracle-database-optimization-of-the-basic-ideas_3.jpg" title="Oracle Database Optimization of the basic ideas" class="lightbox"><a name=_Toc245815909><font face=宋体 size=3><img src="http://www.kods.net/upload/o/oracle-database-optimization-of-the-basic-ideas_3_thumb.jpg"  /></font></a></a> </o:p></o:p><br /><br /> <font face=宋体><font size=3>Figure 5-2 Database Performance Factors</font></font> <br /><br /> <font face=宋体><font size=3>5, when the above conventional methods are ineffective, the need to consider in-depth observation of the internal operation of the database to find clues leading to poor performance: the view from the properties of the focus view to wait for events;</font></font> <st1:chmetcnv w:st="on" unitname="g" sourcevalue="10" hasspace="False" negative="False" numbertype="1" tcsc="0"> <font face=宋体><font size=3>10g</font></font> </st1:chmetcnv> <font face=宋体><font size=3>Start, ADDM can automatically identify and report a variety of resource bottlenecks, such as: CPU competition, lock-related issues, or some very bad performance, such as SQL statements. Oracle Enterprise Manager server can provide high-level view of the use of resources and detailed view, to help administrators to quickly find performance issues of reason; in</font></font> <st1:chmetcnv w:st="on" unitname="g" sourcevalue="11" hasspace="False" negative="False" numbertype="1" tcsc="0"> <font face=宋体><font size=3>11g</font></font> </st1:chmetcnv> <font face=宋体><font size=3>China, ADDM can be performed in the cluster analysis tasks. ADDM able to Enterprise Manager, the panel issued a warning to managers that the current competition for resources occurred in the situation. SQL Tuning Advisor component can even find performance problems are given for the proposed solution; In the meantime, you can design and application of personnel to discuss, from the business process to consider the possibility of optimization, My Oracle support Web site (raw Metalink) has also launched a server by querying the knowledge base and requests (SR) way to get technical support.</font></font> <br /><br /> <font face=宋体><font size=3>6, optimization is complete, customer testing to confirm, record the latest performance data, optimize the results compared against baseline data to observe the period of time, sum up experience and accumulate experience for the next optimization.</font></font> <br /><br /><o:p><font face=宋体 size=3> </font></o:p><br /><br /><h1> <a name=_Toc245815920><font face=宋体 size=3>6 common causes of database performance</font></a> </h1><br /> <font face=宋体><font size=3>1. Hardware failure</font></font> <br /><br /> <font face=宋体><font size=3>2. Initialization parameters properly</font></font> <br /><br /> <font face=宋体><font size=3>3. Network Connection Management</font></font> <br /><br /> <font face=宋体><font size=3>4. Cursor improper use of</font></font> <br /><br /> <font face=宋体><font size=3>5.IO mismanagement</font></font> <br /><br /> <font face=宋体><font size=3>6. Online redo logs too little (small), switching frequency is too fast</font></font> <br /><br /> <font face=宋体><font size=3>7. Db_writer process, little multi-CPU servers</font></font> <br /><br /> <font face=宋体><font size=3>8. Cache problem</font></font> <br /><br /> <font face=宋体><font size=3>9. Rollback segment too small, pct_free and pct_used not set properly</font></font> <br /><br /> <font face=宋体><font size=3>10. Large table full table scans</font></font> <br /><br /> <font face=宋体><font size=3>11. Indexes, statistical information such as the failure, SQL queries do not take the index</font></font> <br /><br /> <font face=宋体><font size=3>11. Disk Sort</font></font> <br /><br /> <font face=宋体><font size=3>12.SQL writing there is no bind variables</font></font> <br /><br /> <font face=宋体><font size=3>13. Recursive sql</font></font> <br /><br /> <font face=宋体><font size=3>14.SQL optimized model inappropriate (CBO and RBO)</font></font>				<h5>Related Posts</h5>
		<div id="smilar">
		<ul>
					<li><a href="http://www.kods.netwww.kods.net/sql-optimization-3-four-index/" title="SQL optimization (3) - four index">SQL optimization (3) - four index</a> 2009-03-28 13:10:06</li>
					<li><a href="http://www.kods.netwww.kods.net/sql-optimization-1-full-table-scan-and-index-the-test/" title="SQL optimization (1) - full table scan and index the test">SQL optimization (1) - full table scan and index the test</a> 2009-03-28 09:02:39</li>
					<li><a href="http://www.kods.netwww.kods.net/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>
				</ul>
		</div>
		        ]]></content:encoded>
		<wfw:commentRss>http://www.kods.netwww.kods.net/oracle-database-optimization-of-the-basic-ideas/</wfw:commentRss>
	</item>
	</channel>
</rss>
