⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 1754.html

📁 著名的linux英雄站点的文档打包
💻 HTML
📖 第 1 页 / 共 3 页
字号:
          border=0></TD>
          <TD><IMG height=1 src="images/spacer.gif" tppabs="http://www.linuxhero.com/docs/images/spacer.gif" width=26 
border=0></TD>
          <TD><IMG height=1 src="images/spacer.gif" tppabs="http://www.linuxhero.com/docs/images/spacer.gif" width=1 
        border=0></TD></TR>
        <TR>
          <TD colSpan=3><A title=linux知识宝库 
            href="index.html" tppabs="http://www.linuxhero.com/docs/index.html"><IMG height=83 
            src="images/header_r1_c1.gif" tppabs="http://www.linuxhero.com/docs/images/header_r1_c1.gif" width=472 border=0 
            name=header_r1_c1></A></TD>
            <TD colSpan=3>
              <form action="http://www.linuxhero.com/docs/search.html" method=get>
                <table 
                        style="BORDER-RIGHT: #c4c4c4 1px solid; BORDER-TOP: #c4c4c4 1px solid; BORDER-LEFT: #c4c4c4 1px solid; BORDER-BOTTOM: #c4c4c4 1px solid" 
                        cellspacing=0 cellpadding=3 width="95%" border=0 align="center">
                  <tbody> 
                  <tr> 
                    <td noWrap background="images/bgline.gif" tppabs="http://www.linuxhero.com/docs/images/bgline.gif"> 
                      <div align=center><font class=normalfont>搜索文章: 
                        <input type=hidden value=result name=action2>
                          <input type=radio checked value=title name=type>标题 
                          <input type=radio value=content name=type>内容 
                          <input type=image src="images/button_go.gif" tppabs="http://www.linuxhero.com/docs/images/button_go.gif" border=0 name=image2>
                        </font></div>
                    </td>
                  </tr>
                  <tr> 
                    <td noWrap> 
                      <div align="center"> 
                        <input maxlength=100 size=30 name=keyword2>
                      </div>
                    </td>
                  </tr></tbody> 
                </table>
              </form>
            </TD>
            <TD rowSpan=2><IMG src="images/header_r1_c7.gif" tppabs="http://www.linuxhero.com/docs/images/header_r1_c7.gif" width=26 border=0 name=header_r1_c7></TD>
          <TD><IMG height=83 src="images/spacer.gif" tppabs="http://www.linuxhero.com/docs/images/spacer.gif" width=1 border=0></TD></TR>
        <TR>
          <TD background="images/bgline.gif" tppabs="http://www.linuxhero.com/docs/images/bgline.gif"><IMG height=22 
            src="images/header_r2_c1.gif" tppabs="http://www.linuxhero.com/docs/images/header_r2_c1.gif" width=296 border=0 
            name=header_r2_c1></TD>
          <TD background="images/bgline.gif" tppabs="http://www.linuxhero.com/docs/images/bgline.gif" colSpan=5>
              <DIV align=right><FONT class=normalfont>当前位置: 
              <A href="index.html" tppabs="http://www.linuxhero.com/docs/index.html">本站首页</A>
              <font color="#FF6699">&gt;&gt;</font>
<A href="type28.html" tppabs="http://www.linuxhero.com/docs/type28.html">oracle</A>                 | <A href="copyright.html" tppabs="http://www.linuxhero.com/docs/copyright.html">版权说明</A></font></DIV>
            </TD>
          <TD><IMG height=22 src="images/spacer.gif" tppabs="http://www.linuxhero.com/docs/images/spacer.gif" width=1 
        border=0></TD></TR></TBODY></TABLE>
      <TABLE cellSpacing=10 cellPadding=0 width="100%" bgColor=#ffffff 
        border=0>
         <TR>
          <TD>
            <TABLE cellSpacing=0 cellPadding=3 width="100%" border=0>
              
              <TR>
                <TD vAlign=top align=middle width="60%">
                  <TABLE cellSpacing=0 cellPadding=0 width="100%" 
                  background="images/back.gif" tppabs="http://www.linuxhero.com/docs/images/back.gif" border=0>
                    <TBODY>
                    <TR>
                        <TD vAlign=top width="80%"> 
                          <DIV align=center>
                        <FORM action="search.html" tppabs="http://www.linuxhero.com/docs/search.html" method=get>
                            </FORM>
                        <TABLE cellSpacing=0 cellPadding=0 width="95%" 
                          border=0><TBODY>
                          <TR>
                            <TD background="images/bgi.gif" tppabs="http://www.linuxhero.com/docs/images/bgi.gif" 
                          height=30></TD></TR></TBODY></TABLE>
                        <TABLE cellSpacing=0 cellPadding=3 width="95%" 
                        align=center border=0>
                          <TBODY>
                          <TR>
                            <TD>
                              <TABLE cellSpacing=0 cellPadding=3 width="100%" 
                              border=0>
                                <TBODY>
                                <TR>
                                      <TD vAlign=top> 
<p><FONT class=normalfont><B><font color=blue>ORACLE8的分区管理</font></B></FONT><BR><FONT class=smallfont color=#ff9900>2004-04-23 15:18 pm</FONT><BR><FONT class=normalfont>作者:作者<br>来自:http://oracle.cgol.net<br>联系方式:无名<br><br>一、 分区概述: <br>
<br>
---- 为了简化数据库大表的管理,ORACLE8推出了分区选项。分区将表分离在若干不同的表空间上,用分而治之的方法来支撑无限膨胀的大表,给大表在物理一级的可管理性。将大表分割成较小的分区可以改善表的维护、备份、恢复、事务及查询性能。针对当前社保及电信行业的大量日常业务数据,可以推荐使用ORACLE8的该选项。 <br>
<br>
---- 二、分区的优点: <br>
<br>
---- 1 、增强可用性:如果表的一个分区由于系统故障而不能使用,表的其余好的分区仍然可以使用; <br>
<br>
---- 2 、减少关闭时间:如果系统故障只影响表的一部分分区,那么只有这部分分区需要修复,故能比整个大表修复花的时间更少; <br>
<br>
---- 3 、维护轻松:如果需要重建表,独立管理每个分区比管理单个大表要轻松得多; <br>
<br>
---- 4 、均衡I/O:可以把表的不同分区分配到不同的磁盘来平衡I/O改善性能; <br>
<br>
---- 5 、改善性能:对大表的查询、增加、修改等操作可以分解到表的不同分区来并行执行,可使运行速度更快; <br>
<br>
---- 6 、分区对用户透明,最终用户感觉不到分区的存在。 <br>
<br>
---- 三、分区的管理: <br>
<br>
---- 1 、分区表的建立: <br>
<br>
---- 某公司的每年产生巨大的销售记录,DBA向公司建议每季度的数据放在一个分区内,以下示范的是该公司1999年的数据(假设每月产生30M的数据),操作如下: <br>
<br>
STEP1、建立表的各个分区的表空间:<br>
CREATE TABLESPACE ts_sale1999q1 <br>
  DATAFILE ‘/u1/oradata/sales/sales1999_q1.dat’ <br>
  SIZE 100M<br>
  DEFAULT STORAGE (INITIAL 30m NEXT 30m <br>
MINEXTENTS 3 PCTINCREASE 0)<br>
CREATE TABLESPACE ts_sale1999q2 <br>
  DATAFILE ‘/u1/oradata/sales/sales1999_q2.dat’ <br>
  SIZE 100M<br>
  DEFAULT STORAGE (INITIAL 30m NEXT 30m <br>
MINEXTENTS 3 PCTINCREASE 0)<br>
CREATE TABLESPACE ts_sale1999q3 <br>
  DATAFILE ‘/u1/oradata/sales/sales1999_q3.dat’ <br>
  SIZE 100M<br>
  DEFAULT STORAGE (INITIAL 30m NEXT 30m <br>
MINEXTENTS 3 PCTINCREASE 0)<br>
CREATE TABLESPACE ts_sale1999q4 <br>
  DATAFILE ‘/u1/oradata/sales/sales1999_q4.dat’ <br>
  SIZE 100M<br>
  DEFAULT STORAGE (INITIAL 30m NEXT 30m <br>
MINEXTENTS 3 PCTINCREASE 0)<br>
<br>
STEP2、建立基于分区的表:<br>
CREATE TABLE sales<br>
  (invoice_no NUMBER,<br>
  ... <br>
  sale_date DATE NOT NULL )<br>
  PARTITION BY RANGE (sale_date)<br>
  (PARTITION sales1999_q1<br>
VALUES LESS THAN (TO_DATE<br>
(‘1999-04-01’,’YYYY-MM-DD’)<br>
    TABLESPACE ts_sale1999q1,<br>
  PARTITION sales1999_q2<br>
VALUES LESS THAN (TO_DATE<br>
(‘1999-07-01’,’YYYY-MM-DD’)<br>
    TABLESPACE ts_sale1999q2,<br>
  PARTITION sales1999_q3<br>
VALUES LESS THAN (TO_DATE<br>
(‘1999-10-01’,’YYYY-MM-DD’)<br>
    TABLESPACE ts_sale1999q3,<br>
  PARTITION sales1999_q4<br>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -