• 052-223(新增70题2018)


    You are creating a locally managed tablespace to meet the following requirements:

    All the extents should be of the same size.

    The data should be spread across two data files.

    A bitmap should be used to record the free space within the allocated extents.

    Which three options would you choose? (Choose three.)

    A. set PCTFREE and PCTUSED to 50

    B. specify extent allocation as Uniform

    C. specify extent allocation as Automatic

    D. create the tablespace as bigfile tablespace

    E. create the tablespace as smallfile tablespace

    F. set segment space management to Automatic

    G. use the RESIZE clause while creating the tablespace

    Answer: BEF

    Create a locally managed tablespace by specifying LOCAL in the EXTENT MANAGEMENT clause of the CREATE TABLESPACEstatement. This is the default for new permanent tablespaces, but you must specify the EXTENT MANAGEMENT LOCAL clause to specify either the AUTOALLOCATE clause or the UNIFORM clause. You can have the database manage extents for you automatically with the AUTOALLOCATE clause (the default), or you can specify that the tablespace is managed with uniform extents of a specific size (UNIFORM).

    If you expect the tablespace to contain objects of varying sizes requiring many extents with different extent sizes, then AUTOALLOCATE is the best choice. AUTOALLOCATE is also a good choice if it is not important for you to have a lot of control over space allocation and deallocation, because it simplifies tablespace management. Some space may be wasted with this setting, but the benefit of having Oracle Database manage your space most likely outweighs this drawback.

    If you want exact control over unused space, and you can predict exactly the space to be allocated for an object or objects and the number and size of extents, then UNIFORM is a good choice. This setting ensures that you will never have unusable space in your tablespace.

    Bigfile Tablespaces

    bigfile tablespace is a tablespace with a single, but potentially very large (up to 4G blocks) data file. Traditional smallfile tablespaces, in contrast, can contain multiple data files, but the files cannot be as large. 

    Locally Managed Tablespaces

    Locally managed tablespaces track all extent information in the tablespace itself by using bitmaps, resulting in the following benefits:

    • Fast, concurrent space operations. Space allocations and deallocations modify locally managed resources (bitmaps stored in header files).

    • Enhanced performance

    • Readable standby databases are allowed, because locally managed temporary tablespaces do not generate any undo or redo.

    • Space allocation is simplified, because when the AUTOALLOCATE clause is specified, the database automatically selects the appropriate extent size.

    • User reliance on the data dictionary is reduced, because the necessary information is stored in file headers and bitmap blocks.

    • Coalescing free extents is unnecessary for locally managed tablespaces.

    All tablespaces, including the SYSTEM tablespace, can be locally managed.

    The DBMS_SPACE_ADMIN package provides maintenance procedures for locally managed tablespaces.

    CREATE TABLESPACE lmtbsb DATAFILE '/u02/oracle/data/lmtbsb01.dbf' SIZE 50M
        EXTENT MANAGEMENT LOCAL AUTOALLOCATE;
    --
    CREATE TABLESPACE lmtbsb DATAFILE '/u02/oracle/data/lmtbsb01.dbf' SIZE 50M
        EXTENT MANAGEMENT LOCAL UNIFORM SIZE 128K;
    --
    CREATE SMALLFILE TABLESPACE...
    --
    CREATE BIGFILE TABLESPACE...
    --
    CREATE TABLESPACE lmtbsb DATAFILE '/u02/oracle/data/lmtbsb01.dbf' SIZE 50M
        EXTENT MANAGEMENT LOCAL 
        SEGMENT SPACE MANAGEMENT AUTO;
  • 相关阅读:
    高手详解:sscanf函数的高级用法
    堆排序——BuildHeap和Heapify函数的实现
    递归与动态规划求解最长公共子序列
    分享:crpcut 1.8.4 发布,C++ 的单元测试框架
    团队展示 京拍档 电商运营服务、电子商务服务外包 首家京东代运营电子商务服务平台
    Linux中link,unlink,close,fclose详解
    常用排序算法的c++实现(冒泡,选择,插入,堆,shell,快速,归并 )与sort()对比 coder_xia的专栏 博客频道 CSDN.NET
    CAJ文件转PDF文件方法
    递归与动态规划求解最长公共子序列
    NLP Job 专注自然语言处理&机器学习等领域的求职招聘 | 关注自然语言处理|机器学习|数据挖掘|搜索引擎|计算广告|推荐算法等相关领域的工作机会
  • 原文地址:https://www.cnblogs.com/Babylon/p/8615917.html
Copyright © 2020-2023  润新知