DMS table space from file containers or raw device containers, and their size is when the container is assigned to a table space settings. When all space in the container is used, then the table space is considered full. However, with different SMS table space, you can use the ALTER TABLESPACE statement to add or extend a container, thus allowing more storage space available to the table space. DMS table spaces as well as a feature called auto-resize feature: When can automatically resize DMS table space is consumed space, library system may be extended to one or more files to the table space containers. SMS table spaces have similar capabilities for growing automatically, but the term "auto-resize" dedicated to the DMS.
Enable the automatic resizing of table spaces have version 8.2.1 or earlier releases do not recognize the related metadata. Try using these versions enable the automatic resizing of table space database will generate a fault (likely return SQL0980C or SQL0902C error). If you try to connect to a database or try to recover the database, uacu you may send an error. If you have enabled auto-resize table space, then these table spaces disable the auto-resize feature will remove metadata, allowing the use of the library to version 8.2.1 or earlier releases. If you disable the auto-resize feature, and later enable this feature, then the value associated INCREASESIZE and MAXSIZE are lost. You can not use the original equipment container table space to use this feature, nor can be added to the raw device containers can automatically adjust the size of the table space. Try to perform these operations will generate an error (SQL0109N). If you need to add raw device containers, you must first disable this feature. Redirected restore uacu operation uacu can not change the container definitions to include a raw device container. Try to perform this operation will generate an error (SQL0109N). Since the maximum size limit of the database manager automatically increases a table space, the maximum size also limits your way to increase uacu table space. That is, when the add operation space to the table space, the resulting size must be less than or equal to the maximum size. You can use the ALTER TABLESPACE statement ADD, EXTEND, RESIZE, or BEGIN NEW STRIPE SET clause to add space. Enable and disable the auto-resize feature
CREATE TABLESPACE uacu DMS1 MANAGED BY DATABASE USING (FILE '/ db2files / DMS1' 10 M) AUTORESIZE YES MAXSIZE 100 MMAXSIZE NONE clause specifies uacu the table space is no maximum limit. Table space will gradually increase until it reaches the file system limit or table space limit (see SQL and XML limits). If you do not specify the MAXSIZE clause, there is no maximum limit on the auto-resize uacu feature is enabled by the next.
CREATE TABLESPACE DMS1 MANAGED BY DATABASE USING (FILE '/ db2files / DMS1' 10 M) AUTORESIZE YES INCREASESIZE 5 M CREATE TABLESPACE DMS1 MANAGED BY DATABASE USING (FILE '/ db2files / DMS1' 10 M) AUTORESIZE YES INCREASESIZE 50 PERCENT A percentage value means Whenever the need to increase the size of the table space must calculate the increase (designated by INCREASESIZE value), and the percentages uacu are based on the amount of increase when increasing the size of the table space occupied. For example, if the table space size is 20 MB and INCREASESIZE value is 50%, then the table space for the first time increased 10 MB (increased to 30 MB), the next time will increase 15 MB.
CREATE TABLESPACE TS1 MANAGED BY DATABASE USING (FILE 'C: \ TS1CONT' 1000, FILE 'D: \ TS1CONT' 1000, FILE 'E: \ TS1CONT' 2000, FILE 'F: \ TS1CONT' 2000) EXTENTSIZE 4 AUTORESIZE YES, please note live, database manager uses a small portion of each container (an extended data block) for relaying information, uacu the following is the table space map is created based on the CREATE TABLESPACE statement for the table space. (Table space map is part of a table space snapshot output.)
Table space map: Maximum Maximum range segmentation starting partition offset adjustment is finished expand data collection container number Page Stripe Stripe [0] [0] 09953983024804 (0,1,2,3) uacu [ 1] [0] 0 1,495,598,324,949,802 (2,3) The table space map shows the identification uacu of the vessel 2 or 3 (E: \ TS1CONT and F: \ TS1CONT) is only in the last range of container. Therefore, when the database manager uacu automatically extend this table space containers, it only extended the two containers.
Note: If you create a table space for the size of all containers are the same, so the figure is only one range. In this case, the database manager extends each container. To prevent the expansion is limited to only a small part of the container, so that each time you create a table space containers of equal size. As previously discussed, you can specify a limit on the maximum size of the table space, you can also specify the value to increase uacu NONE Any tabulation space. If you specify NONE or unlimited, so the upper limit by the file system uacu limit or table space definitions; database manager does not try to make the table space size to exceed the upper limit. However, before the limit is reached, try to increase the container may fail because the file system is full. In this case, the database manager will not increase the size of the table space, but it will return the case to the application, "the lack of space." There are two ways to resolve this situation: Increase the amount of space available on the file system is full. Perform container operations on the table space, so that these vessels are no longer in the final table space map. The easiest way to accomplish this is to add a new stripe set to have a new set of table space container, the best practice is to ensure that all containers of the same size. You can use the ALTER TABLESPACE statement with the BEGIN NEW STRIPE SET clause to add a new stripe set. By adding a new stripe set, it will add a new dimension to the table space map. With the new range of database manager automatically attempts to extend the containers in this new division will focus, and the old container remains unchanged. Note: When users start container operations pending or being executed subsequent rebalance, auto-resize feature is disabled until the implementation of the operation or the rebalance is complete.
For example, for DMS table spaces, suppose a table space with the same three sizes of containers, and each container is on its own file system. When performing some operations on the table space, the database manager uacu automatically extends these three containers. Finally, one of the file system becomes full, and the corresponding container can no longer grow. If you can not provide more free space on the file system, you must perform container operations uacu on the table space, making the vessel is no longer a problem in the last range of the table space map. In this case, you can add a new stripe set specifying two containers (still on a per file system space), or you can specify more or fewer containers (again, make sure to add each the same size as the window and there is enough space on each file system to be used). uacu When the database manager attempts to increase the size of table space, it will now try to expand this new division focused on the container and not try to extend the old container.
Related to the DMS table space information is automatically resized as part of the table space monitor uacu snapshot output display. Increasing the size and maximum size values are included in the output, as shown in the following sample: Enable auto-resize = Yes or No current table space size (bytes) = ### maximum table space size (bytes) NONE = ### or increase the size (bytes) = ### to increase the size (percentage) = ### on a successful time resize = YYYY MM DD HH:?? MM:. SS on SSSSSS once resize attempt failed = Yes or No
2014 Today in History: Naruto 692 words: Revolution 2014: One Piece 760 words: total charge either 2013: C ++ on dangling pointer 2013: c ++ in the list simply remove deposited 2013: XL, an extensible programming language, implements uacu concept programming 2013 : lockfree uacu algorithm uacu 2013: PCI devices to find the details of 2013: Linux Device Drivers uacu Hello World program introduced 2013: The latest Chrome Beta support in the browser to perform C / C ++ code 2013 direct: RPC for C / C ++ 2013: use / Zm to specify a higher limit 2013: fread, fwrite, fscanf, fprintf uacu use 2013: The difference between java method parameters and C method parameter 2013: VS2010 run faster method 2013: VTK installation 2013: [C / C ++] returns struct or class object 2013: C / C ++ float in memory is stored in 2013: "turn" in VS2005 compiler was declared deprecated warning 2013: remove the C / C ++ source program comments in 2013: inline functions - to improve the C / C ++ program execution efficiency 2013 : commonly used in a real random number generator (sub category probability) 2013: linux directory uacu 2013: linux directory 2013: static keyword _void and void function pointer pointer _ 2013: Open source C / C ++ network uacu libraries compare 2013: a key resolve installation Eclipse Android uacu / SDK under Ubuntu / NDK / CDT development and debugging environment 2013: Detailed C / C ++ function pointer declared 2013: _cdecl, _stdcall, _fastcall and _thiscall finishing 2013: Hadoop via C API access HDFS 2013: gcc compiler parameters Detailed 2013: Ryūrōden 232 words: Assault 2012: DB2 type conversion functions 2012: DB2 error information (sorted by sqlcode) 2012: DB2 command uacu Daquan 2012: ORACLE shared memory to solve the lack of a method 2012: completely uninstall the Oracle 2012: Sybase The maximum number of connections 2012: Under linux oracle database service and listening start stop 2012: Sybase uacu Date Functions 2012: Db2 commonly used commands and how to use 2012: oracle instance creation steps summarize 2012: SQLServer pagination (primary key) 2012: java get sql, oracle more information field (the field type, length, uacu precision) 2012: java obtain primary information from the table 2012: [JAVA] byte array merge 2012: linux modified file owner 2012: oracle character set, pl / sql client character set to modify 2012: ORA-12528 problem solving uacu 2012: mysql innodb physical composition and configuration files using 2012: java operating oracle blob 2012: Installing uacu WordPress 3.0 on Ubuntu 10.04 (Lucid Lynx) 2012: Java Chinese Sort 2012: C language fopen to read files in another directory 2012: Jsp connect mysql database 2012: SQL Query 10 before recording (SqlServer / mysql / oracle) [Parsing] (turn) 2012: mysql automatic (registration starts) servo is 2012: mysql stored procedures (turn) 2012: mysql stored procedures written - dynamic parameters using 2012: simple ajax application examples: ajax + jsp achieve user name verification uacu 2012: [MYSQL] Can not convert value '0000-00-00 00: 00:00 'from column 6 to TIMESTAMP / Value' [B @ XXXXXXX 'can not be represented as java.sql.Timestamp Solution Method 2012: Ajax detects the user name exists function 2012: Get JSP online users information 2012 : ajax's post is too long to pass parameters to resolve the issue 2012: Jsp online demographics - achieving a user exit backstage forced foreground 2012: Js
No comments:
Post a Comment