Multiple DB DBLOCK SIZE for warehouse database?Suggest

Hi All,a faculty from Oracle University told me the idea behind having the multple DB DBlock sizes in Oracle is not the performance but just for the Transporting tablespaces ....Just confirm is that true??????
Database architects here are using larger Block sizes for tablespaces for Warehouse database....which I guess is of not any use...what you say?
Thanx in Advance
Gagan

gaganahuja wrote:
Hi All,a faculty from Oracle University told me the idea behind having the multple DB DBlock sizes in Oracle is not the performance but just for the Transporting tablespaces ....Just confirm is that true??????
Database architects here are using larger Block sizes for tablespaces for Warehouse database....which I guess is of not any use...what you say?Gagan,
one important point that is often overlooked in this discussion is that the cost based optimizer does a questionable job when dealing with objects in non-standard block size tablespaces when it comes to costing full segment scans (full table scans / index fast full scans).
The Oracle runtime engine adjusts the multi-block read size in non-standard block size tablespaces accordingly, which means that e.g. given a multi-block read count (MBRC) of 8 and a default block size of 8K it will attempt to request 64K (whenever possible, there are cases where this is not possible, reaching extent boundaries or blocks already in the buffer cache).
So in a 16K non-standard block size tablespace the MBRC will be adjusted to 4 at runtime (4*16K = 64K), and the same happens e.g. in a 2K non-standard tablespace where it will be adjusted to 32 (32*2K = 64K).
So apart from effects outlined above that might lead to a reduction of the actually requested multi-block read size there is no difference at runtime with regards to performing a full segment scan.
But unfortunately the cost based optimizer doesn't reflect this runtime behaviour properly, especially if CPU costing is enabled, which is the default in 10g and later.
I've recently run some test cases regarding this particular issue which were provided by Jonathan Lewis as part of the "Cost Based Oracle - Fundamentals" book against the 10.2.0.4 and 11.1.0.6/7 release and they show that the cost estimates are at least questionable. By the way, although I've run the tests against 10.2.0.4 and 11.1.0.6/7, they correspond to the results of previous releases, so the same applies to 10.1 and 9i as well.
For more information, see here: http://oracle-randolf.blogspot.com/2009/02/cost-based-oracle-fundamentals-test.html
Regarding thoughts about putting indexes in larger block sizes, Richard Foote has some interesting notes that try to explain why it probably won't matter in most cases: http://en.wordpress.com/tag/index-block-size/
Regards,
Randolf
Oracle related stuff blog:
http://oracle-randolf.blogspot.com/
SQLTools++ for Oracle (Open source Oracle GUI for Windows):
http://www.sqltools-plusplus.org:7676/
http://sourceforge.net/projects/sqlt-pp/

Similar Messages

  • Sysresv returns multiple shared memory IDs for one database

    Shared Memory:
    ID KEY
    8 0x00000000
    9 0x00000000
    10 0x00000000
    13 0x00000000
    14 0xae2ae9d0
    Please see this 'sysresv' output. It returns multiple shared memory IDs for one database (althouth all are 0s except one). Why is this? Does it matter? It seems not eating up memory. Stop and start database didn't help.

    * System Configuration
    swap files
    swapfile dev swaplo blocks free
    /dev/md/dsk/d101 85,101 16 201342320 201342320
    * Tunable Parameters
    2055864320 maximum memory allowed in buffer cache (bufhwm)
    30000 maximum number of processes (v.v_proc)
    99 maximum global priority in sys class (MAXCLSYSPRI)
    29995 maximum processes per user id (v.v_maxup)
    30 auto update time limit in seconds (NAUTOUP)
    25 page stealing low water mark (GPGSLO)
    1 fsflush run rate (FSFLUSHR)
    25 minimum resident memory for avoiding deadlock (MINARMEM)
    25 minimum swapable memory for avoiding deadlock (MINASMEM)
    CO4P:/opt/oracle:>ipcs -ma
    IPC status from <running system> as of Monday, April 21, 2008 2:50:10 PM PDT
    T ID KEY MODE OWNER GROUP CREATOR CGROUP NATTCH SEGSZ CPID LPID ATIME DTIME CTIME
    Shared Memory:
    m 14 0xae2ae9d0 rw-r--- oracle dba oracle dba 481 24576 20322 25104 14:50:10 14:50:10 11:24:46
    m 13 0 rw-r--- oracle dba oracle dba 481 2030043136 20322 25104 14:50:10 14:50:08 11:24:43
    m 10 0 rw-r--- oracle dba oracle dba 481 2030043136 20322 25104 14:50:10 14:50:08 11:24:40
    m 9 0 rw-r--- oracle dba oracle dba 481 2013265920 20322 25104 14:50:10 14:50:08 11:24:37
    m 8 0 rw-r--- oracle dba oracle dba 481 2063597568 20322 25104 14:50:10 14:50:08 11:24:34
    m 0 0xcace --rw-rw-rw-     root     root     root     root      0          2  2344  2344 14:49:57 14:49:57  9:35:43                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How should be set Index block size in Warehouse databases?

    Hi,
    We have Warehouse database.
    I cannot find out index block size.
    1. Where can I get know our index block sizes?
    2. How can I enlarge index block sizes? Is it related with tablespace?
    After your suggestion do I need increase or set buffer cache keep pool according to block sizes? 2K, 4K, 8K, 16K and 32K can be specified?
    could you help me please?
    thanks and regards,

    See the BLOCK_SIZE column in DBA_TABLESPACES.
    You can't "increase" the block size. You'd have
    a) to allocate DB_xK_cache_size for the new "x"K block size
    b) create a new tablespace explicitly specifying the block size in the CREATE TABLESPACE command
    c) rebuild your indexes into the new tablespace.
    Indexes created in a tablespace with a larger block size have more entries in each block.
    You may get better performance.
    You may get worse performance.
    You may see no difference in performance.
    You may encounter bugs.
    "increasing block size" is an option to be evaluated and tested thoroughly. It is not, per se, a solution.
    Hemant K Chitale
    http://hemantoracledba.blogspot.com

  • Estimating the backup size for full database backup?

    How to estimate the backup file size for the following backup command?
    Oracle 10g R2 on HPUX
    BACKUP INCREMENTAL LEVEL 0 DATABASE;
    Thank you,
    Smith

    Depends on the number of used blocks, block size etc. You could probably get a rough formula for backup size based on the contents of dba_tab_statistics (subtract empty_blocks), dba_ind_statistics etc.

  • Spooling of a query generates different file sizes for different databases

    Please help me regarding a problem with spooling. I spooled a query output to a file from two different database. In both the databases the table structure is the same and the output produced only one row. But the file size is different for the databases. How can this problem occur? Is there any database parameter need to be checked? Both the databases are in same version 10.2.0.1.0.
    before running the spool i did a
    sql> set head off feedback off echo off verify off linesize 10000 pages 0 trims on colsep ' '
    on both the sessions.
    In one database the filesize is *1463 bytes* and on the other the filesize is *4205 bytes*.
    Please help me to find out these discrepancies.

    hi Mario,
    I think you are not getting my point. Both the files contain the same output but their sizes are different. This is due to the no of blank spaces between columns. I wanted to clarify why there is a difference between two filesize when the query output is the same.

  • How to recommand sga & pga size for existing database?

    Hi All,
    In my environment there are 100s of databases running , in few servers we frequently getting the "Unable to allocate the shared memory" during job process. But the server have enough memory to allocate to the databases where ever the memory required.
    Now the quesition is how to predict or estimate the required memory of that database?
    Thanks

    903787 wrote:
    Hi All,
    In my environment there are 100s of databases running , in few servers we frequently getting the "Unable to allocate the shared memory" during job process. But the server have enough memory to allocate to the databases where ever the memory required.
    Now the quesition is how to predict or estimate the required memory of that database?
    Thanksquery V_$SGA_TARGET_ADVICE

  • CPU and RAM size for database

    How can we see what is the CPU and RAM size for the database?
    <div class="jive-quote">select * from v$version</div>
    BANNER                                                          
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
    PL/SQL Release 10.2.0.5.0 - Production                          
    CORE     10.2.0.5.0     Production                                        
    TNS for HPUX: Version 10.2.0.5.0 - Production                   
    NLSRTL Version 10.2.0.5.0 - Production

    cat /proc/meminfo
    root:     total:      used:      free:           shared:     buffers:     cached:
    Mem:      1055760384     1041887232     13873152     0     100417536      711233536
    Swap:      1077501952      8540160      1068961792
    MemTotal:          1031016 kB     
    MemFree:          13548 kB
    MemShared:          0 kB
    Buffers:          98064 kB
    Cached:               692320 kB
    SwapCached:          2244 kB
    Active:               563112 kB
    Inact_dirty:          309584 kB
    Inact_clean:          79508 kB
    Inact_target:          190440 kB
    HighTotal:          130992 kB
    HighFree:          1876 kB
    LowTotal:          900024 kB
    LowFree:          11672 kB
    SwapTotal:          1052248 kB
    SwapFree:          1043908 kB
    Committed_AS:          332340 kB
    cat /proc/cpuinfo
    processor : 0
    vendor_id : AuthenticAMD
    cpu family : 15
    model : 31
    model name : AMD Athlon(tm) 64 Processor 3000+
    stepping : 0
    cpu MHz : 994.927
    cache size : 512 KB
    fpu : yes
    fpu_exception : yes
    cpuid level : 1
    wp : yes
    flags : fpu vme de pse tsc msr pae mce (snipped)
    bogomips : 1956.97
    TLB size : 1024 4K pages
    clflush size : 64
    cache_alignment : 64
    address sizes : 40 bits physical, 48 bits virtual
    power management: ts fid vid ttp

  • DiskGroup Size for a Databas

    Hi Team,
    Am looking for a SQL query to get the DiskGroup Size for each Database Size.
    Ex: DB11A is a database with instance DB11A1, DB11A2
    ASM is ASM instance with ASM1, ASM2
    My ASM/DB Version 11.2.0.2
    OS - RHEL 5.8
    So i need a query to get DG size that is took/occupied by that Database
    The output should say - DiskGroup DATA01 is occupying 50GB for Database DB11A
    So i request you all to provide me the Query to get DiskGroup (Size in MB/GB) taken by Each DB
    Sample Output
    Database_Name DiskGroup Size(MB)
    DB11A DATA01 20,648
    DB11A FLASH 16,024
    Thanks in Advance
    Edited by: user8930326 on May 20, 2013 8:21 PM
    Edited by: user8930326 on May 20, 2013 8:22 PM
    Edited by: user8930326 on May 20, 2013 8:24 PM
    Edited by: user8930326 on May 20, 2013 8:25 PM

    Hi,
    Can you check following tests.
    SQL> select c.db_name,d.name, SUM(BYTES/1024/1024) AS MBSIZE
    from  v$asm_client c, v$asm_diskgroup d, v$asm_file f
    where c.group_number=d.group_number
       and f.group_number= d.group_number
    group by c.db_name,d.name;  2    3    4    5 
    DB_NAME  NAME                        MBSIZE
    racdb      DATA                    2445.57178
    racdb      FRA                    217.642578
    SQL> exit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, Real Application Clusters, Automatic Storage Management, Oracle Label Security,
    OLAP, Data Mining, Oracle Database Vault and Real Application Testing options
    [oracle@oel62-rac1 Desktop]$ su - grid
    Password:
    [grid@oel62-rac1 ~]$ asmcmd -p
    ASMCMD [+] > cd +DATA
    ASMCMD [+DATA] > du
    Used_MB      Mirror_used_MB
       2469                2469
    ASMCMD [+DATA] > cd +FRA
    ASMCMD [+FRA] > du
    Used_MB      Mirror_used_MB
        228                 228Regards
    Mahir M. Quluzade

  • Rman backup size for Dr db is very much higher than that of primary db

    Hi All,
    My production database on Oracle 10.2.0.4 had a physical size of 897 Gb and logical size of around 800 Gb.
    Old tables were truncated from the database and its logical size got reduced to 230 Gb.
    Backup size is now 55Gb which used to be of 130 Gb before truncation.
    Now this database has a DR configured. Backup of this DR database is daily taken which is used to refresh test environments.
    But the backup size for DR database has not decreased. The restoration time while refreshing test environments is also same as before.
    We had predicted that the backup size for DR database will also decrease and hence reducing the restoration time.
    We take compressed RMAN backup.
    What is the concept behind this?

    When you duplicate a database it will restore all the datafiles from the RMAN backup. You will find the physical space of your source database. Remove the fragmented space using object movement. Then shrink the tablespaces and take fresh RMAN backup and restore.
    Regards
    Asif Kabir

  • Suggested data file size for Oracle 11

    Hi all,
    Creating a new system (SolMan 7.1) on AIX 6.1 running Oracle 11. 
    I have 4 logical volumes for data sized at 100gb each.  During the installation I'm being asked to input the size for the data files. The default is "2000mb/2gb" is this acceptable for a system sized like mine, or should I double them to 4gb each? I know the max is 32gb per data file but that seems a bit large to me.  Just wanted to know if there was a standard best practice for this, or a formula to use based on system sizing.
    I was not able to find any quick suggestions in the Best Practices guide on this unfortunately...
    Any help would be greatly appreciated.
    Thanks!

    Ben Daniels wrote:
    Hi all,
    >
    > Creating a new system (SolMan 7.1) on AIX 6.1 running Oracle 11. 
    >
    > I have 4 logical volumes for data sized at 100gb each.  During the installation I'm being asked to input the size for the data files. The default is "2000mb/2gb" is this acceptable for a system sized like mine, or should I double them to 4gb each? I know the max is 32gb per data file but that seems a bit large to me.  Just wanted to know if there was a standard best practice for this, or a formula to use based on system sizing.
    >
    > I was not able to find any quick suggestions in the Best Practices guide on this unfortunately...
    >
    > Any help would be greatly appreciated.
    >
    > Thanks!
    Hi Ben,
    Check the note 129439 - Maximum file sizes with Oracle
    Best regards,
    Orkun Gedik

  • Do I need to export multiple sizes for all standard print sizes? i.e.Say I crop the image in LR to 6'5" x 9' to fit within an 11" x 14" (overall) mat of a framed print.. Now let's say I want to reprint that same image in a 12" x 16" size ... to fit within

    Do I need to export multiple sizes for all standard print sizes? i.e.Say I crop the image in LR to 6'5" x 9' to fit within an 11" x 14" (overall) mat of a framed print.. Now let's say I want to reprint that same image in a 12" x 16" size ... to fit within a mat of with overall size of 20" x 24"? Or will the 1st export be "locked" at 6.5" X 9" (proportionately)?

    So, for the first one Export it cropped to 6.5 x 9 - and in the Export Dialog box there is a capability to rename the file for exported output - which would allow you to add something like the crop or intention to the base name of the file.  e.g. for _IMG0846.nef - setup the output filename to _IMG0846-65x9 for 11x14.jpg and output it at, say 300 or 360 dpi.  So, it has a unique name and purpose in your output folder.
    For best results, now, re-crop the picture in LR - just open the crop [R] dialog again, reframe the image to the new ratio, 12x16 and Export again - with an adjustment to the filename. e.g. _IMG0846-12x16 for 20x24.jpg
    So, now you have two clearly identified image files in your output area and you can provide those to whomever is printing for you, etc.  Discard them when you're done since you always have the original to return to to re-frame again as necessary.
    This way you get output sharpening and resolution (in pixels) optimized for your output print size.  Maybe not super important for smallish prints-but more important for larger ones.   Output at 100 quality.

  • Is their a maximum database size for DB2?

    Hello,
    we got a request from our business to install a new bw system on DB2 V8.2/V9 with an estimated end size of 100 Terabyte. I know, we have to ask our hardware partner, for sizing and this will include, partitioning,... But the first question from my side is "Is their a maximum size for a db2 database installed on aix?" Has anybody experience with such a huge database. At the moment our biggest database is about 1,4 Terabyte.
    Regards,
    Alexander

    Hi Alexander,
    A 100TB size sounds ambitious ... any thoughts to when the system will have that size ? It will also be interesting to understand if it's a OLTP or OLAP system.
    There is a "theoritical" technical limit on the total size of a database, but that's really beyond reason. Here is how it goes:
    A regular tablespace can be no larger than 512GB per DPF partition. A large tablespace can be no larger than 16TB per DPF partition. You can have 32767 tablespaces in a database. You can have up to 999 DPF partitions in a partitioned database server.
    Coming from that the current technical limit is:
    Non-partitioned database server: 16TB x 32767 tablespaces
    Partitioned database server: 16TB x 32767 tablespaces x 999 partitions.
    Regards,
    Torsten

  • To list only user databases with the size for a instance in sql server 2005

    Hi,
    I looking for T-SQl to  list only user databases with their size for a instance in sql server 2005

    Try this:
    use [databasename]
    go
    if convert(varchar(20),SERVERPROPERTY('productversion')) like '8%'
    SELECT [name], fileid, filename, [size]/128.0 AS 'Total Size in MB',
    [size]/128.0 - CAST(FILEPROPERTY(name, 'SpaceUsed') AS int)/128.0 AS 'Available Space In MB',
    CAST(FILEPROPERTY(name, 'SpaceUsed') AS int)/128.0 AS 'Used Space In MB',
    (100-((([size]/128.0 - CAST(FILEPROPERTY(name, 'SpaceUsed') AS int)/128.0)/([size]/128.0))*100)) AS 'percentage Used'
    ,((CAST(FILEPROPERTY(name, 'SpaceUsed') AS int)/128.0)/([size]/128.0))*100 as 'percentage used'
    FROM sysfiles
    else
    SELECT [name], file_id, physical_name, [size]/128.0 AS 'Total Size in MB',
    [size]/128.0 - CAST(FILEPROPERTY(name, 'SpaceUsed') AS int)/128.0 AS 'Available Space In MB',
    CAST(FILEPROPERTY(name, 'SpaceUsed') AS int)/128.0 AS 'Used Space In MB',
    (100-((([size]/128.0 - CAST(FILEPROPERTY(name, 'SpaceUsed') AS int)/128.0)/([size]/128.0))*100)) AS 'percentage Used'
    --,((CAST(FILEPROPERTY(name, 'SpaceUsed') AS int)/128.0)/([size]/128.0))*100 as 'percentage used'
    FROM sys.database_files
    go
    Or can refer below link:
    http://gallery.technet.microsoft.com/scriptcenter/All-Databases-Data-log-a36da95d
    Please click the Mark as answer button and vote as helpful if this reply solves your problem

  • What is size limit for a database view?

    hi all..
    can anybody pls tell me about the size category for a database view?

    hi
    check out this document
    http://help.sap.com/saphelp_nw04/helpdata/en/36/74c0358373003ee10000009b38f839/frameset.htm
    this would answer all ur queries
    regards
    Aakash Banga

  • Calculate database size for a particular company code

    Hi Experts,
    We have 30 company codes in our FI production system. So to plan another new company code to be deployed into the system, we need to know exact capacity (database) of the previous company code that we already deployed. Kindly let me know whether it possible to calculate the database size for a particular company code in a ERP system.

    >
    Kalyan Kumar Bandlamudi wrote:
    > Hi Experts,
    >
    > We have 30 company codes in our FI production system. So to plan another new company code to be deployed into the system, we need to know exact data capacity (database) of the previous company code that we already deployed. Kindly let me know whether it possible to calculate the database size occupied for a particular company code in a SAP system.
    Its not possible to calculate data size based on company code.
    By creating company code It will not occupy much space. Depends on your posting documents for particular company codes.
    Thanks
    Siva

Maybe you are looking for

  • NT realm works, but appears slow and unconfigurable

    Using WLS 6.1sp1 I successfully have authentication working using the NT realm. The most simplistic cases work but I'm having trouble with the more complex cases. BEA does not provide examples on these: #1. Listing Users/Groups from the console is ex

  • SQL Developer not launching / W error Screenshots

    Okay I'm a student in belgium. and i'm studying ICT. We are learning pl SQL with Oracle. Last week we had to use SQL Devloper, Now here comes my problem. I am pretty new at all this. But SQL developer doesn't launch at all!. I tried versions with and

  • Button execution issue

    I've been having issues with buttons that are tied to my emerson drive talking modbus ethernet. The issue being that when I press a momentary pushbutton, I get a double bump like I hit the pushbutton twice. It'll hold true every once in a while too.

  • Pricing tables A0**

    hi, Can any body tell me how the pricing condition tables are maitained, because all the pricing conditions are defined as per the customer requirement, for ex: We create a new condition type ZSTO for definig some S.T.O value  it is stored in A055 ta

  • How to register UDT into UDO through DI API?

    Hi All I am creating User Data tables and fields by using an Add on through DI API. Now i want to register these tables and fields into User Defined object in SAP B1 using add on through DI API. What are the possible ways for this? And can you provid