|
|
|
Row-device
|
|||
|---|---|---|---|
|
#18+
Привет. Нет ли у кого ссылочки на документ, описывающий особенности установки Oracle 9i на сабж? Или можно сразу в мыло, если есть что.. А то мне тут ставить его предстоит, а я не в теме :-(( ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 22.05.2003, 14:48:48 |
|
||
|
Row-device
|
|||
|---|---|---|---|
|
#18+
если речь про сырые устройства, а не строчные ;-) , то man rawdevices или как там в твоей ОС. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 22.05.2003, 15:15:55 |
|
||
|
Row-device
|
|||
|---|---|---|---|
|
#18+
В качестве файлов при создании базы просто указываешь имена разделов. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 22.05.2003, 15:17:08 |
|
||
|
Row-device
|
|||
|---|---|---|---|
|
#18+
Типа create database orcl datafile '/dev/sda1' size 500M autoextend on next 10 maxsize 800M ........... ? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 22.05.2003, 15:20:23 |
|
||
|
Row-device
|
|||
|---|---|---|---|
|
#18+
> >В качестве файлов при создании базы просто указываешь имена разделов И все? И никаких допнастроек? Спецпараметров? Это вся разница? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 22.05.2003, 15:20:31 |
|
||
|
Row-device
|
|||
|---|---|---|---|
|
#18+
Так.. Похоже опять никто из "крутых" спецов нихрена не знает...:-(( ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 22.05.2003, 16:37:40 |
|
||
|
Row-device
|
|||
|---|---|---|---|
|
#18+
Все, что надо спецы сказали. Зачем еще что-то требовать. Кстати, "ни хрена" пишется раздельно. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 22.05.2003, 16:45:56 |
|
||
|
Row-device
|
|||
|---|---|---|---|
|
#18+
Вот не надо грязи. Никаких других настроек. Зачем, по-твоему, они могут понадобиться? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 22.05.2003, 16:46:41 |
|
||
|
Row-device
|
|||
|---|---|---|---|
|
#18+
softbuilder@inbox.ru, поясни по поводу autoextend on next 10 в применении к raw devices ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 22.05.2003, 16:49:04 |
|
||
|
Row-device
|
|||
|---|---|---|---|
|
#18+
Хорошо, тогда такой вопрос: правильно ли я понял, что под каждое табличное пространство мне надо делать отдельный row? Если нет, то как тогда? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 22.05.2003, 16:55:11 |
|
||
|
Row-device
|
|||
|---|---|---|---|
|
#18+
Люди в raw - я не спец. Я пока только собираю статистику неспешно. Моё сообщение выше - это был вопрос. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 22.05.2003, 17:02:08 |
|
||
|
Row-device
|
|||
|---|---|---|---|
|
#18+
А еще row - это стока или ряд а raw - это сырой, коим может быть device! ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 22.05.2003, 17:02:08 |
|
||
|
Row-device
|
|||
|---|---|---|---|
|
#18+
Nu pochti da. Tochnjeeje - otdeljnij raw (a nje row) device uzhno delatj dlja kazhdovo FAILA. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 22.05.2003, 17:03:25 |
|
||
|
Row-device
|
|||
|---|---|---|---|
|
#18+
Ну вот для примера: Код: plaintext 1. 2. 3. 4. 5. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 22.05.2003, 17:04:46 |
|
||
|
Row-device
|
|||
|---|---|---|---|
|
#18+
softbuilder: autoextend mozhno izpoljzovatj, no eto mozhet prinjestji boljshe vreda chem poljzu tak kak na 1 raw device mozhet bitj tolko 1 fail i on mozhet rostji tolko do razmera raw device (chutj menjshe). ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 22.05.2003, 17:07:35 |
|
||
|
Row-device
|
|||
|---|---|---|---|
|
#18+
Ну, какой настырный... Если еще будут вопросы, обращайтесь в документацию. Raw Devices and Oracle - 20 Common Questions and Answers -------------------------------------------------------- 1. What is a raw device? A raw device, also known as a raw partition, is a disk partition that is not mounted and written to via the UNIX filesystem, but is accessed via a character-special device driver. It is up to the application how the data is written since there is no filesystem to do this on the application's behalf. 2. How can a raw device be recognised? In the '/dev' directory, there are essentially two type of files: block special and character special. Block special files are used when data is transferred to or from a device in fixed size amounts (blocks), whereas character special files are used when data is transferred in varying size amounts. Raw devices use character special files; a long listing of the '/dev' directory shows them with a 'c' at the leftmost position of the permissions field, e.g. crw-rw-rw- 1 root system 15, 0 Mar 12 09:45 rfd0 In addition, character special files usually have names beginning with an 'r', as shown in the above example. Some devices, principally disks, have both a block special device and a character special device associated with them; for the floppy diskette shown above, there is also a device brw-rw-rw- 1 root system 15, 0 Apr 16 15:42 /dev/fd0 So the presence of a 'c' in a device does NOT necessarily mean this is a raw device suitable for use by Oracle (or another application). Generally, a raw device needs to be created and set aside for Oracle (or whatever application is going to use it) when the UNIX system is set up - therefore, this needs to be done with close cooperation between the DBA and UNIX system administrator. Once a raw device is in use by Oracle, it must be owned by the oracle account, and may be identified in this way. 3. What are the benefits of raw devices? There can be a performance benefit from using raw devices, since a write to a raw device bypasses the UNIX buffer cache, the data is transferred directly from the Oracle buffer cache to the disk. This is not guaranteed, though. If there is no I/O bottleneck, raw devices will not help. The performance benefit if there is a bottleneck can vary between a few percent to something like 40%. Note that the overall amount of I/O is not reduced; it is just done more efficiently. Another lesser benefit of raw devices is that no filesystem overhead is incurred in terms of inode allocation and maintenance or free block allocation and maintenance. 4. How can I tell if I will benefit from using raw devices? There are two distinct parts to this: first, the Oracle database and application should be examined and tuned as necessary, using one or both of the following: -UTLBstat and UTLestat utilities (in $ORACLE_HOME/rdbms/admin) There are several strategies for improving performance with an existing disk arrangement, i.e. purely within Oracle. See [NOTE:16347.1] for details. After checking your Oracle database and application, the next stage is to identify UNIX-level I/O bottlenecks. This can be done using a UNIX utility such as 'sar' or 'vmstat'. See the relevant manual pages for details. If you identify that there is a UNIX-level problem with I/O, now is the time to start using raw devices. This may well require reorganisation of the entire UNIX system (assuming there are no spare partitions available). 5. Are there circumstances when raw devices have to be used? Yes. If you are using the Oracle Parallel Server, all data files, control files, and redo log files must be placed on raw partitions so they can be shared between nodes. This is a limitation with the UNIX operating system. Also, if you wish to use List I/O or Asynchronous I/O, some versions of UNIX require the data files and control files to be on raw devices for this to work. Consult your platform-specific documentation for details. 6. Can I use the entire raw partition for Oracle? No. You should specify a tablespace slightly smaller in size than the raw partition size, specifically at least two Oracle block sizes smaller. 7. Can I use the first partition of a disk for a raw device? This is not recommended. On older versions of UNIX, the first partition contained such information as the disk partition table or logical volume control information, which if overwritten could render the disk useless. More recent UNIX versions do not have this problem as disk management is done in a more sophisticated manner. Consult your operating system vendor for more details, but if in any doubt do not use the first partition. 8. Who should own the raw device? You will need to create the raw devices as root, but the ownership should be changed to the 'oracle' account afterwards. The group must also be changed to the 'dba' group (usually called dba). 9. How do I specify a raw device in Oracle commands? When using a raw device you need to specify the full pathname in single quotes, and use the REUSE parameter. e.g. if there are two raw devices, each 30Mb in size, and the database has a 4K block size, the relevant command would look like this: create tablespace raw_tabspace datafile '/dev/raw1' size 30712K REUSE, datafile '/dev/raw2' size 30712K REUSE 10. Does the Oracle block size have any relevance on a raw device? It is of less importance than for a UNIX file; the size of the Oracle block can be changed, but it must be a multiple of the physical block size as it is only possible to seek to physical block boundaries and hence write only in multiples of the physical block size. 11. How can I back up my database files if they are on raw devices? You cannot use utilities such as 'tar' or 'cpio', which expect a filesystem to be present. You must use the 'dd' command, as follows: dd if=/dev/raw1 of=/dev/rmt0 bs=16k See the UNIX man page on dd for further details. It is also possible to copy the raw device file (using dd) to a normal UNIX file, and then use a utility such as 'tar' or 'cpio', but this requires more disk space and has a greater administrative overhead. 12. Providing I am not using Parallel Server, can I use a mixture of raw partitions and filesystem files for my tablespace locations? Yes. The drawback is that this makes your backup strategy more complicated. 13. Should I store my redo log files on raw partitions? Redo logs are particularly suitable candidates for being located on raw partitions, as they are write-intensive and in addition are written to sequentially. If Parallel Server is being used, redo logs must be stored on raw partitions. 14. Can I use raw partitions for archive logs? No. Archive logs must be stored on a partition with a UNIX filesystem. 15. Can I have more than one data file on a raw partition? No. This means you should be careful when setting up the raw partition. Too small a size will necessitate reorganisation when you run out of space, whereas too large a size will waste any space the file does not use. 16. Should my raw partitions be on the same disk device? This is inadvisable, as there is likely to be contention. You should place raw devices on different disks, which should also be on different controllers. 17. Do I need to make my raw partitions all the same size? This is not essential, but it provides flexibility in the event of having to change the database configuration. 18. Do I need to change any UNIX kernel parameters if I decide to use raw devices? No, but you may wish to reduce the size of the UNIX buffer cache if no other applications are using the machine. 19. What other UNIX-level changes could help to improve I/O performance? RAID and disk mirroring can be beneficial, depending on the application characteristics, especially whether it is read or write-intensive, or a mixture. 20. How can I gain further performance benefits, after considering all of the above? You will need to buy more disk drives and controllers for your system, to spread the I/O load between devices. --------------------------------------------------------------------------- Oracle Worldwide Customer Support . ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 22.05.2003, 17:08:33 |
|
||
|
Row-device
|
|||
|---|---|---|---|
|
#18+
Raw devices are disk partitions that are not mounted and written to as a Unix file system but are accessed via a character device driver. It is the responsibility of the application to organize how the data is written to the disk partition. As with a mounted disk partition there are devices in the /dev directory that are used to access the disk partition and these character devices usually have a prefix of "r". For example, on a Sun workstation running Sunos they are defined in the following format: crw-r----- 1 root 17, 6 Sep. 28 10:05 rsd0g The main difference between accessing a disk partition via its raw device driver as opposed to as a mounted file system is that the database writer bypasses the Unix buffer cache and eliminates the file system overheads such as inodes or free lists. The performance benefit of using raw devices can be between 5 and 40 % for the same number of disks. Raw devices are used in circumstances where an application is seen to be I/O bound. Some implementations of Oracle Parallel Server require that all Data files and control files are placed onto raw devices so that the different nodes of the parallel environment are all able to see and access the files. List I/O and Async I/O allow a program to issue multiple write operations without having to wait for the return of the previous write. This can give up to a 15% improvement in performance. However on some operating systems to take advantage of this data files will need to be on raw devices. Each raw partition can only be used for ONE database datafile, so any space that is not allocated to the data file is wasted and cannot be used for anything else. It is convenient to partition up the disk into a number of evenly-sized partitions with a number of small medium and large partitions. If the operating system allows you to name these partitions, then choose a logical name. After creating a raw partition the devices are usually still owned by root. To allow Oracle to use the partition, the owner and group must be changed so that the oracle account owns the device and its group is the DBA group. Once the raw device has been created, its group and owner set correctly, and the required size of the tablespace calculated, it may be referenced in a create tablespace command as follows: Three raw partitions each 50M in size and called /dev/rpart1 ..2 ..3 The database has a 4K block size create tablespace tab_on_raw data file '/dev/rpart1' size 51196K, data file '/dev/rpart2' size 51196K, data file '/dev/rpart3' size 51196K The Oracle Block size can be changed on raw devices, but make sure that the logical block size is a multiple of the physical block size on the raw disk. On raw disks, you can do seek only to physical block boundaries and read or write in multiples of the physical block size. To backup raw partitions you will need to use the Unix dd command. Utilities like tar, cpio and dump CANNOT be used for backing up raw partitions. If you are performing a full database import to a database on the same machine as the exported database, and the original datafiles were on a raw device, the files will be reused even if you specify DESTROY=N. This will crash the original database from which the export was taken. Questions and Answers 1. Can a database use both raw partitions and file system files as Data files in the same database ? Yes, a Unix database can simultaneously use Data files stored on both raw devices and file systems. Exeptions to this are when using Oracle Parallel Server or List I/O which may require all Data files to be on raw devices. 2. Can redo log files be stored on raw partitions ? Yes. 3. Can I have multiple Data files on a single raw partition ? No, you may only configure only one data file per raw partition. You can, of course, have multiple raw devices per disk. 4. Will splitting my datafiles onto different disk partitions guarantee faster file I/O ? No. Simply splitting datafiles between different disk partitions is not sufficient. You need to ensure that the datafiles are split across different partitions that are on disks or spindles. SY. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 22.05.2003, 17:11:35 |
|
||
|
|

start [/forum/topic.php?fid=52&msg=32166281&tid=1990400]: |
0ms |
get settings: |
5ms |
get forum list: |
16ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
203ms |
get topic data: |
11ms |
get forum data: |
2ms |
get page messages: |
57ms |
get tp. blocked users: |
2ms |
| others: | 231ms |
| total: | 535ms |

| 0 / 0 |
