Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3118121
  • 博文数量: 144
  • 博客积分: 10056
  • 博客等级: 上将
  • 技术积分: 2603
  • 用 户 组: 普通用户
  • 注册时间: 2006-12-13 14:20
个人简介

互通有无,共同提高。

文章分类

全部博文(144)

分类: 系统运维

2008-03-14 12:00:57

Landmark工区管理---自动扩展表空间(山定子 译)     

Configuring AUTOEXTEND for Project Data Files
为工区数据文件配置AUTOEXTEND(自动扩展表空间大小)
  

When properly configured, Project Create and Project Administration can create and restore project data files that grow in size as they fill with data. The data files increase in specified increments up to a specified maximum. If an OpenWorks tablespace contains multiple data files, the capability applies to each data file therein. 
  当合理配置时,Project Create Project Administration可以创建和恢复工区数据文件,工区数据文件随数据的写入而不断增大。数据文件按指定增量增大,直至某一指定的最大值。若某个OpenWorks表空间包含多个数据文件,那么该特性适用于其中每个数据文件

This means that, given enough disk space, OpenWorks users no longer must closely estimate the storage requirements of a project beforehand. Rather, users can create a small project and it will grow as needed, eliminating worries of running out of disk space, as well as wasting unnecessary space on projects. OpenWorks facilitates this by taking advantage of ORACLE’s AUTOEXTEND capability. 
     
就是说,当提供足够磁盘空间时,OpenWorks用户不必预先精确计算工区存储器要求。反之,用户可以创建一个小工区,工区将随需要而增大,从而避免用尽磁盘空间之忧,并且可以防止不必要的工区空间浪费。利用Oracle的AUTOEXTEND特性,OpenWorks可以方便地实现这一要求。

Monitor diskspace usage frequently with AUTOEXTEND.
AUTOEXTEND监控磁盘空间使用情况    

If AUTOEXTEND is set, you are advised to monitor disk space usage regularly. If a data file attempts to grow beyond  the available remaining size of a filesystem, a fatal error will occur and the project tablespace probably will be corrupted beyond repair.

如果设置了AUTOEXTEND,就要经常监控磁盘空间使用情况。如果数据文件试图超过可用磁盘空间,将会发生严重错误,工区表空间可能崩溃而无法修复。
          

Running AUTOEXTEND Scripts for Existing Projects
为现有工区运行AUTOEXTEND角本

By default, the AUTOEXTEND capability is not enabled under a standard OpenWorks installation. However, two scripts are available to make AUTOEXTEND easy to implement if you choose to do so at your site. The scripts are located in $ORACLE_HOME/install and must be run as the Oracle DBA user (typically oracle). 
  对于标准安装的OpenWorks,由缺省设置,AUTOEXTEND 处于未起用状态。然而,如果想在你的站点(服务器)开启AUTOEXTEND,运行两个角本即可容易完成操作。角本位于 $ORACLE_HOME/install,并且需用Oracle DBA用户(通常为oracle)运行。

Turning on AUTOEXTEND 开启AUTOEXTEND

The AUTOEXTEND capability requires the following line to be in the initSID.ora file (e.g., “initownova.ora”) of the Oracle instance:
  
AUTOEXTEND需在Oracle实例的initSID.ora文件(例如:“initownova.ora”)中有下面一行:

compatible = 8.1.6

This parameter is set correctly during a standard Landmark Oracle installation or upgrade. However, if you have to define this value, you then must issue dbshut and dbstart to shut down and restart the database so the change will take effect.
  在Landmark Oracle标准安装或升级时,该参数被正确设置。然而,如果你必须定义此值,你就得执行dbshutdbstart来关闭和重起数据库以使操作生效

Follow these steps to turn on AUTOEXTEND
请按以下步骤开启AUTOEXTEND: 

1. Login (not su) to the database server as the Oracle DBA user.
          
oracle DBA用户登录(不是su)到数据库服务器。

2. cd $ORACLE_HOME/lgcowdb

3. Execute the following command:
         
执行下列命令:

sqlplus sys/change_on_install @turn_on_autoextend.sql

Note: change_on_install is the default dba password; if this has been changed, you should use your site password. 
   注:
change_on_install缺省dba密码;若该密码被修改,你应使用你的站点密码。

This script turns on AUTOEXTEND for all database files in the current Oracle instance. Before a data file runs out of space, it grows by an additional 16 megabytes by default, with no predefined maximum limit. That is, it can grow up to the remaining space available on the filesystem. To change the AUTOEXTEND parameters, see the subsequent topic, “Setting AUTOEXTEND in lgcenv.cf for Subsequent Projects” on page 72.
  该角本为当前Oracle实例中所有数据库文件开启AUTOEXTEND。在某一数据文件用尽空间之前,由缺省设置,它将以每追加16兆增量来增大而不预先定义最大限制值。就是说,它可以使用文件系统上全部可用剩余空间。如果想更改AUTOEXTEND参数,请见后续主题,第72页上的“在lgcenv.cf里,为后续工区设置AUTOEXTEND”。

turn_on_autoextend.sql applies for current data files only.
开启autoextend.sql仅适用于当前数据文件        

The turn_on_autoextend.sql script only turns on AUTOEXTEND for the current set of database files. That is, it has no effect on new OpenWorks   projects created after the script is run. To set AUTOEXTEND for data files created in the future, see “Setting AUTOEXTEND in lgcenv.cf for Subsequent Projects” on page 72.
开启autoextend.sql角本仅为当前数据库文件开启AUTOEXTEND。就是说,在该角本运行后对所创建的新OpenWorks工区而言,该角本是无效的。欲为将来创建的数据文件设置AUTOEXTEND,请见第42页:“在lgcenv.cf中为后续工区设置AUTOEXTEND”。

Turning off AUTOEXTEND 关闭AUTOEXTEND

This script turns off AUTOEXTEND for all data files in the Oracle instance. If you wish to back out of the AUTOEXTEND capability for any reason, follow these steps:
  
该角本为Oracle实例所有数据文件关闭AUTOEXTEND。如果想关闭AUTOEXTEND,请按下列步骤操作:

1. Login (not su) to the database server as the Oracle DBA user. 
         
Oracle DBA用户登录(不是su)数据库服务器。

2. cd $ORACLE_HOME/lgcowdb

3. Execute the following command:
         
执行下列命令:

sqlplus sys/change_on_install @turn_off_autoextend.sql
     

Setting AUTOEXTEND in lgcenv.cf for Subsequent Projects
lgcenbv.cf里为后续工区设置AUTOEXTEND

The AUTOEXTEND capability can be controlled by three environment variables contained in $OW_PMPATH/lgcenv.cf, as follows:
  
如下所述,可用$OW_PMPATH/lgcenv.cf中的三个环境变量来控制AUTOEXTEND  

• OW_AUTOEXTEND_FLAG turns the capability on (or off, when commented out). 
        OW_AUTOEXTEND_FLAG
开启(YES)(或关闭,当此行被注释掉时)

• OW_AUTOEXTEND_NEXT determines the amount by which a data file grows with each increment.
        OW_AUTOEXTEND_NEXT 决定数据文件的增量值。

• OW_AUTOEXTEND_MAX sets a limit beyond which data files will not grow. 
        OW_AUTOEXTEND_MAX
设置一个限制值,当超出此值时,数据文件将不增大。  

These lines are commented out by default. When set with these environment variables, AUTOEXTEND affects all project data files created thereafter.
  
这些行默认时是注释掉的。当用这些环境变量设置时,AUTOEXTEND将对其后创建的所有工区数据生效。

Follow these steps to turn on AUTOEXTEND and/or modify the parameters: 
     
按如下步骤开启AUTOEXTEND/或修改参数:

1. Make sure the following line is in the initSID.ora file (e.g., “initownova.ora”) of the Oracle instance:
  
确保在Oracle实例的initSID.ora文件(例如:“initownova.ora”)中有下面一行:

compatible = 8.1.6

This parameter is set correctly during a standard Landmark Oracle installation or upgrade. However, if you have to define this value, you then must issue dbshut and dbstart to shut down and restart the database so the change will take effect.
  
该参数在Landmark Oracle标准安装或升级时被正确设置。然而,如果你必须定义此值,就得执行dbshutdbstart来关闭和重起数据库以使操作生效     

2. In file $OW_PMPATH/lgcenv.cf, uncomment the following lines; that is, delete the # sign at the beginning of each line. You can optionally modify the parameter values at the same time, to set a different increment or maximum file size (in megabytes; for example: 10M or 50M):  
  在文件$OW_PMPATH/lgcenv.cf中,解除注释下面的行;即,删除每行开始的#号。同时也可随意修改参数值,以设置不同增量值或最大文件大小(用兆字节表示;例如:10M50M):

OW_AUTOEXTEND_FLAG YES

OW_AUTOEXTEND_NEXT 10

OW_AUTOEXTEND_MAX UNLIMITED
     

If a data file ever exceeds the maximum limit you specify, then an error will occur and intervention by the database administrator will be required.
  
如果数据文件超过你所指定的最大值,将会出错,需要数据库管理员来处理。

Setting AUTOEXTEND for Individual Data Files
为个别数据文件设置AUTOEXTEND

You can also turn on AUTOEXTEND selectively for individual Oracle data files. This feature can be particularly useful when you backup, restore, or create a project and the default sizes of the TEMP, RBS, or SYS tablespaces are insufficient.
  
可以选择性地为个别Oracle数据文件开启AUTOEXTEND。当你备份、恢复或创建工区,并且默认的TEMPRBSSYS表空间不足时,这一特性特别有用。

The following SQL statement turns on AUTOEXTEND for an existing Oracle data file. It must be executed by the database administrator from within Server Manager:
   
下列SQL语句为现有Oracle数据文件开启AUTOEXTEND。这种操作必须由数据库管理员在服务器管理器上执行:

svrmgrl

connect internal

ALTER DATABASE DATA**** data_file_path

AUTOEXTEND ON NEXT nM MAXSIZE UNLIMITED;

Here, data_file_path is the path to the data file in the OpenWorks tablespace; for example, /pa/OpenWorks/oracle/rbsownova.dbs. Also, n is a number representing the size of the increment (for example, 20 for 20 megabytes). In addition, UNLIMITED can be replaced by mM, meaning the file cannot grow beyond m megabytes. If it does, then an error will occur and intervention by the database administrator will be required.
  此处,data_file_path OpenWorks表空间数据文件路径;例如,/pa/OpenWorks/oracle/rbsownova.dbs。同样,n 代表增量大小(如:20代表20M)。此外,UNLIMITED可由mM代替,表示文件增大不会超过m兆字节。如果超过m兆字节,就会出错,需要数据库管理员来处理。


=================================
Landmark工区管理---自动扩展工区表空间(山定子 译)
     

为工区数据文件配置AUTOEXTEND(自动扩展表空间大小)


  当合理配置时,Project Create Project Administration可以创建和恢复工区数据文件,工区数据文件随数据的写入而不断增大。数据文件按指定增量增大,直至某一指定的最大值。若某个OpenWorks表空间包含多个数据文件,那么该特性适用于其中每个数据文件


  这就是说,当提供足够磁盘空间时,OpenWorks用户不必预先精确计算工区存储器要求。反之,用户可以创建一个小工区,工区将随需要而增大,从而避免用尽磁盘空间之忧,并且可以防止不必要的工区空间浪费。  利用Oracle的AUTOEXEND特性,OpenWorks可以方便地实现这一要求。

AUTOEXTEND来监控磁盘空间使用情况        

如果设置了AUTOEXTEND,就要经常监控磁盘空间使用情况。如果数据文件试图超过可用磁盘空间,将会发生严重错误,工区表空间可能崩溃而无法修复。
          

为现有工区运行AUTOEXTEND角本     

对于标准安装的OpenWorks,由缺省设置,AUTOEXTEND 处于未起用状态。然而,如果想在你的站点(服务器)开启AUTOEXTEND,运行两个角本即可容易完成操作。角本位于 $ORACLE_HOME/install,并且需用Oracle DBA用户(通常为oracle)运行。 

开启AUTOEXTEND     
   AUTOEXTEND需在Oracle实例的initSID.ora文件(例如:“initownova.ora”)中有下面一行:

compatible = 8.1.6

Landmark Oracle标准安装或升级时,该参数被正确设置。然而,如果你必须定义此值,你就得执行dbshutdbstart来关闭和重起数据库以使操作生效

请按以下步骤开启AUTOEXTEND:   

1. oracle DBA用户登录(不是su)到数据库服务器。

2. cd $ORACLE_HOME/lgcowdb

3. 执行下列命令:

sqlplus sys/change_on_install @turn_on_autoextend.sql

注:change_on_install缺省dba密码;若该密码被修改,你应使用你的站点密码。

该角本为当前Oracle实例中所有数据库文件开启AUTOEXTEND。在某一数据文件用尽空间之前,由缺省设置,它将以每追加16兆增量来增大而不预先定义最大限制值。就是说,它可以使用文件系统上全部可用剩余空间。如果想更改AUTOEXTEND参数,请见后续主题,第72页上的“在lgcenv.cf里,为后续工区设置AUTOEXTEND”。

开启autoextend.sql仅适用于当前数据文件           

开启autoextend.sql角本仅为当前数据库文件开启AUTOEXTEND。就是说,在该角本运行后对所创建的新OpenWorks工区而言,该角本是无效的。欲为将来创建的数据文件设置AUTOEXTEND,请见第42页:“在lgcenv.cf中为后续工区设置AUTOEXTEND”。

关闭AUTOEXTEND
   该角本为Oracle实例所有数据文件关闭AUTOEXTEND。如果想关闭AUTOEXTEND,请按下列步骤操作:

1. Oracle DBA用户登录(不是su)数据库服务器。

2. cd $ORACLE_HOME/lgcowdb 

3. 执行下列命令:

sqlplus sys/change_on_install @turn_off_autoextend.sql
     

lgcenbv.cf里为后续工区设置AUTOEXTEND

 如下所述,可用$OW_PMPATH/lgcenv.cf中的三个环境变量来控制AUTOEXTEND

OW_AUTOEXTEND_FLAG 开启(YES)(或关闭(OFF),当此行被注释掉时)

OW_AUTOEXTEND_NEXT 决定数据文件的增量值。

OW_AUTOEXTEND_MAX 设置一个限制值,当超出此值时,数据文件将不增大。
     
  
这些行默认时是注释掉的。当用这些环境变量设置时,AUTOEXTEND将对其后创建的所有工区数据生效。


  
按如下步骤开启AUTOEXTEND/或修改参数:

1. 确保在Oracle实例的initSID.ora文件(例如:“initownova.ora”)中有下面一行:

compatible = 8.1.6

 该参数在Landmark Oracle标准安装或升级时被正确设置。然而,如果你必须定义此值,就得执行dbshutdbstart来关闭和重起数据库以使操作生效    

2. 在文件$OW_PMPATH/lgcenv.cf中,解除注释下面的行;即,删除每行开始的#号。同时也可随意修改参数值,以设置不同增量值或最大文件大小(用兆字节表示;例如:10M50M):

OW_AUTOEXTEND_FLAG YES

OW_AUTOEXTEND_NEXT 10

OW_AUTOEXTEND_MAX UNLIMITED
    

  
如果数据文件超过你所指定的最大值,将会出错,需要数据库管理员来处理。


 为个别数据文件设置AUTOEXTEND
  
可以选择性地为个别Oracle数据文件开启AUTOEXTEND。当你备份、恢复或创建工区,并且默认的TEMPRBSSYS表空间不足时,这一特性特别有用。

 下列SQL语句为现有Oracle数据文件开启AUTOEXTEND。这种操作必须由数据库管理员在服务器管理器上执行:

svrmgrl

connect internal

ALTER DATABASE DATA**** data_file_path

AUTOEXTEND ON NEXT nM MAXSIZE UNLIMITED;

此处,data_file_path OpenWorks表空间数据文件路径;例如,/pa/OpenWorks/oracle/rbsownova.dbs。同样,n 代表增量大小(如:20代表20M)。此外,UNLIMITED可由mM代替,表示文件增大不会超过mM。表示文件增大不会超过m兆字节。如果超过m兆字节,就会出错,需要数据库管理员来处理。

阅读(9261) | 评论(2) | 转发(0) |
给主人留下些什么吧!~~

山定子2012-09-17 09:04:22

如果别人用过此爱国版没问题,那应该是你安装设置方面的问题。

bullyer2012-09-14 09:37:26

请问:我的爱国者LandMark只能建立一个工区,建立第二个工区就出错,是LandMark问题还是软件安装的问题?