powered by simpleCommunicator - 2.0.61     © 2026 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / Oracle [игнор отключен] [закрыт для гостей] / Row-device
17 сообщений из 17, страница 1 из 1
Row-device
    #32166219
Maksim Chak
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Привет.
Нет ли у кого ссылочки на документ, описывающий особенности установки Oracle 9i на сабж? Или можно сразу в мыло, если есть что..

А то мне тут ставить его предстоит, а я не в теме :-((
...
Рейтинг: 0 / 0
Row-device
    #32166266
Фотография killed
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
если речь про сырые устройства, а не строчные ;-) , то man rawdevices или как там в твоей ОС.
...
Рейтинг: 0 / 0
Row-device
    #32166270
Фотография killed
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
В качестве файлов при создании базы просто указываешь имена разделов.
...
Рейтинг: 0 / 0
Row-device
    #32166281
Фотография softy
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Типа
create database orcl
datafile '/dev/sda1' size 500M autoextend on next 10 maxsize 800M
...........

?
...
Рейтинг: 0 / 0
Row-device
    #32166283
Maksim Chak
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
> >В качестве файлов при создании базы просто указываешь имена разделов
И все? И никаких допнастроек? Спецпараметров?
Это вся разница?
...
Рейтинг: 0 / 0
Row-device
    #32166391
Maksim Chak
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Так.. Похоже опять никто из "крутых" спецов нихрена не знает...:-((
...
Рейтинг: 0 / 0
Row-device
    #32166406
AI
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Все, что надо спецы сказали. Зачем еще что-то требовать.

Кстати, "ни хрена" пишется раздельно.
...
Рейтинг: 0 / 0
Row-device
    #32166409
Фотография Scott Tiger
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Вот не надо грязи. Никаких других настроек. Зачем, по-твоему, они могут понадобиться?
...
Рейтинг: 0 / 0
Row-device
    #32166413
Фотография Scott Tiger
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
softbuilder@inbox.ru, поясни по поводу autoextend on next 10 в применении к raw devices
...
Рейтинг: 0 / 0
Row-device
    #32166425
Maksim Chak
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Хорошо, тогда такой вопрос:

правильно ли я понял, что под каждое табличное пространство мне надо делать отдельный row?

Если нет, то как тогда?
...
Рейтинг: 0 / 0
Row-device
    #32166442
Фотография softy
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Люди в raw - я не спец. Я пока только собираю статистику неспешно.

Моё сообщение выше - это был вопрос.
...
Рейтинг: 0 / 0
Row-device
    #32166443
Alex586
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
А еще

row - это стока или ряд

а

raw - это сырой, коим может быть device!
...
Рейтинг: 0 / 0
Row-device
    #32166447
Delerium
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Nu pochti da. Tochnjeeje - otdeljnij raw (a nje row) device uzhno delatj dlja kazhdovo FAILA.
...
Рейтинг: 0 / 0
Row-device
    #32166452
Фотография softy
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Ну вот для примера:
Код: plaintext
1.
2.
3.
4.
5.
create tablespace t_raw
*
ERROR at line  1 :
ORA- 01119 : error in creating database file '/dev/sda9'
ORA- 27038 : skgfrcre: file exists
...
Рейтинг: 0 / 0
Row-device
    #32166457
Delerium
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
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).
...
Рейтинг: 0 / 0
Row-device
    #32166459
AI
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Ну, какой настырный... Если еще будут вопросы, обращайтесь в документацию.

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
.
...
Рейтинг: 0 / 0
Row-device
    #32166463
Фотография SY
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
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.
...
Рейтинг: 0 / 0
17 сообщений из 17, страница 1 из 1
Форумы / Oracle [игнор отключен] [закрыт для гостей] / Row-device
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]