How to Choose Size of Datafile on Raw Device
How to Choose Size of Datafile on Raw Device
一、目標
goal: How to choose size of datafile on raw device
二、NOTE
When a datafile on raw device is created, its size (e.i. the number you use in the CREATE TABLESPACE statement) has to be less than the size of the raw device.
三、描述
Let us assume this:
- size of the raw device is N bytes
- size of the database block is D bytes
- size of the Logical Volume Control Block (LVCB) is L bytes
Note: Provided the raw device is a standard UNIX partition, then consider L=0.
Otherwise (e.i. you use Logical Volume Manager and the raw device is a Logical
volume), the size of L will be platform. dependent.
For example:
On AIX : size of LVCB is 4k ... choose L=4096
On Tru64: size of LVCB is 64k ... choose L=65536
Check the OS vendor for details regarding the configuration.
To compute size of the datafile, distract both L (size of the LVCB, that may be
stored at the head of the Logical volume) and D (one database block, that is
used as an OS file header) from N (size of the raw device).
Then round the result down to the size of a database block.
Use this query to get the result:
SQL> select trunc((N-L-D)/D)*D "SIZE" from dual;
Example:
I would like to create a raw datafile on a Logical volume /dev/vg00/rkamtest of
size 1000000 bytes, on AIX. Size of the database block is 8k.
SQL> select trunc((1000000-4096-8192)/8192)*8192 "SIZE" from dual&
#059;
SIZE
----------
983040
Then the size I will use is 983040:
SQL> CREATE TABLESPACE test DATAFILE '/dev/vg00/rkamtest' size 983040;
參考文獻:
1. How to Choose Size of Datafile on Raw Device [ID 153897.1]
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/9252210/viewspace-630899/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- raw devicedev
- raw device, first blockdevBloC
- about raw device[zt]dev
- how to remove datafile pathREM
- Raw Device vs File Systemdev
- oracle 10.2.0.3 dbca建庫報Failed to retrieve size of raw device 問題解決方法OracleAIdev
- redhat linux上不用dd清空raw device可以重複使用raw device嗎RedhatLinuxdev
- [Oracle] Raw device上Create TablespaceOracledev
- 【轉】配置RAW Device磁碟組dev
- How to mount usb device in CentOS?devCentOS
- 如何遷移裸裝置raw device資料檔案到另一個raw devicedev
- 【SQLSERVER】How to check current pool sizeSQLServer
- 配置rhel4的raw device servicedev
- 在Linux上使用raw device方式Linuxdev
- 表空間監控(二)datafile size detailAI
- Redhat 下raw device建庫介紹(ZT)Redhatdev
- ASM學習筆記_配置RAW Device磁碟組ASM筆記dev
- solaris 10_raw device_建立資料庫dev資料庫
- How to copy a datafile from ASM to a file system not using RMANASM
- How to release space from database( in other words: resize datafile ) (zt)Database
- How to release space from database( in other words: resize datafile ) 【zt】Database
- 建立raw device tablespace報Linux Error: 13: Permission denieddevLinuxError
- 【Raw Device】OEL4.8裸裝置對映方法dev
- linux下如何使用raw device來建立管理asm diskLinuxdevASM
- How To Size the Database Smart Flash Cache (Doc ID 1317950.1)Database
- 【Linux】bad geometry: block count 11796480 exceeds size of deviceLinuxBloCdev
- How to Set Device Name Using UDEV on Oracle Linux 7.1devOracleLinux
- How to map device name to ASMLIB disk [ID 1098682.1]devASM
- How can I prevent users from connecting to a USB storage device?dev
- Red Hat Enterprise Linux AS 5.3 下配置裸裝置(raw device)Linuxdev
- How To Move Datafiles On AIX Using Raw Logical Volumes To A New Location?AI
- Oracle9i RAC (raw device) 自動開啟(rc.local) 設定Oracledev
- rman copy asm datafile(rename asm datafile)ASM
- Why Startups Should Not Choose NoSQLSQL
- In Data Guard,choose switchover or failover?AI
- 網友整理的一份Oracle10g RAC for all-version Linux -- raw deviceOracleLinuxdev
- 【Datafile】Oracle單個datafile大小的限制Oracle
- Oracle datafileOracle