ORA-01144: File size (string blocks) exceeds maxi

來源:互聯網
上載者:User

ORA-01144: File size (string blocks) exceeds maximum of string blocks

 

今天公司的Oracle伺服器突然停止工作

在一個裸裝置上擴充一個資料表空間的時候遭遇了這個錯誤,想知道具體原因是什麼。

SQL> alter database datafile 5 resize 33G;
alter database datafile 5 resize 33G
*
ERROR at line 1:
ORA-01144: File size (4325376 blocks) exceeds maximum of 4194303 blocks

AIX 64位的平台

下面是oracle err messages:

ORA-01144: File size (string blocks) exceeds maximum of string blocks

-----------------------------------------


在Oracle 10G及以上中,資料表空間有bigfile tablespace和smallfile tablespace的區別:    bigfile tablespace是Oracle10g的新特性。Bigfile tablespaces包含1個最大4G個blocks 的datafile。因此,使用8KBdata blocks 的bigfile tablespace 最大可以達到32TB。Bigfile tablespaces 常用於非常大的DB。 如果很大的DB有成千的 read/write datafiles, 那麼checkpoints之類的操作將非常費時。如果用一個很大的datafile,減少datafiles的數量,將會提高效率。建立時使用BIGFILE關鍵字如下:CREATE BIGFILE TABLESPACE BIG_DEMO
DATAFILE '/ORADATA/PROD/BIG_DEMO.DBF' SIZE 25G;    Smallfile tablespace是原Oracle tablespace datafile 選項的新名字。 smallfile tablespace中,你可以包含多個datafiles。每個datafile 有最多4M個data blocks。因此,使用8KB data blocks的smallfile tablespace 中的datafiles 最大32GB。smallfile tablespace最多有1,023 個datafiles。SYSTEM和SYSAUX tablespaces總是smallfile tablespaces。
ORA-01144即表示你的單個資料檔案超出了oracle的限制:如:ORA-01144: File size (4194304 blocks) exceeds maximum of 4194303 blocks表示你的資料表空間是Smallfile tablespace,單個資料檔案最大隻可以有2^22=4194303個blocks,換成KBytes時即乘上你資料庫的block_size即可,解決方案是用多個資料檔案,不是把單個資料檔案設得很大.

-----------------------------------------

今天在solaris sparc10上安裝單節點oracle10g,dbca報ora-01144,說資料檔案大於限制,其實之前也奇怪為什麼一個資料檔案要150g。 後來發現原來是自己的理解錯誤,要求中並沒有說只能用一個資料檔案,但是metalink查到相關資訊如下,以備參考:

fix:

FIX 1:

   Specify a smaller file size.

   The maximum file size is
       db_block_size * 4194303

   For example, if db_block_size is 2kB then maximum file size is limited
   to 2k*4194303, 8Gb-2k.

FIX 2:

   Change db_block_size. This can only be done by recreating of
   database.
 
       db_block_size    Maximum data file size
       -------------    ---------------------- 
            2kb                 8Gb-2kb
            4kb                16Gb-4kb
            8kb                32Gb-8kb
           16kb                64Gb-16kb
           32kb               128Gb-32kb

可見db_block_size對 maximum data file size還是起決定作用的

還有就是不能輕易的勾bigfile tablespace 這東西只允許資料表空間中存在一個資料檔案~差點兒犯錯誤~ 呵呵~

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.