powered by simpleCommunicator - 2.0.60     © 2026 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / PostgreSQL [игнор отключен] [закрыт для гостей] / Как заменить cache с Oracle на PostgreSQL?
3 сообщений из 3, страница 1 из 1
Как заменить cache с Oracle на PostgreSQL?
    #34351635
alosha
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Это написано на Оракле.
Меня интересует, как cache переписать на PostgreSQL.

Код: plaintext
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
CREATE SEQUENCE ACC_BALANCE_SEQ;

CREATE SEQUENCE STORED_TRANS_SEQ;

CREATE TABLE ACCOUNT_BALANCE  (
   ID                   numeric( 38 )                      NOT NULL,
   D_AMOUNT             numeric( 16 , 4 )                    NOT NULL,
   C_AMOUNT             numeric( 16 , 4 )                    NOT NULL,
   BAL_DATE             numeric( 19 )                      NOT NULL,
   ACCOUNT              numeric( 5 )                       NOT NULL,
   SUBACCOUNT           numeric( 5 ),
   SUBCONTO1            CHAR( 32 ),
   SUBCONTO2            CHAR( 32 ),
   SUBCONTO3            CHAR( 32 ),
   CONSTRAINT ACCOUNT_BALANCE_PK PRIMARY KEY (ID)
)
CACHE;
...
Рейтинг: 0 / 0
Как заменить cache с Oracle на PostgreSQL?
    #34351793
Andrey Daeron
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
aloshaЭто написано на Оракле.
Меня интересует, как cache переписать на PostgreSQL.
[/src]
Никак. Забить на него и дело с концом.

И на будующее - лучше давать сразу ссылку на оракловскую Доку, что бы другим не искать. Или писать по русски что тот или иной оператор/модификатор и т.д. делает в оракле.
Код: plaintext
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
45.
46.
CACHE | NOCACHE | CACHE READS

Use the CACHE clauses to indicate how Oracle Database should store blocks in the 
buffer cache. If you specify neither CACHE nor NOCACHE, then:

In a CREATE TABLE statement, NOCACHE is the default

In an ALTER TABLE statement, the existing value is not changed.

CACHE

For data that is accessed frequently, this clause indicates that the 
blocks retrieved for this table are placed at the most recently used 
end of the least recently used (LRU) list in the buffer cache when a
 full table scan is performed. This attribute is useful for small lookup tables.

As a parameter in the LOB_storage_clause, CACHE specifies that the
 database places LOB data values in the buffer cache for faster access.

Restriction on CACHE

You cannot specify CACHE for an index-organized table. However,
 index-organized tables implicitly provide CACHE behavior.

NOCACHE

For data that is not accessed frequently, this clause indicates that
 the blocks retrieved for this table are placed at the least recently
 used end of the LRU list in the buffer cache when a full table scan 
is performed. NOCACHE is the default for LOB storage.

As a parameter in the LOB_storage_clause, NOCACHE specifies 
that the LOB value either is not brought into the buffer cache or
 is brought into the buffer cache and placed at the least recently 
used end of the LRU list. The latter is the default behavior.

Restriction on NOCACHE

You cannot specify NOCACHE for an index-organized table.

CACHE READS

CACHE READS applies only to LOB storage. It specifies that LOB 
values are brought into the buffer cache only during read operations
 but not during write operations.
(С) OracleDoc
...
Рейтинг: 0 / 0
Как заменить cache с Oracle на PostgreSQL?
    #34351799
alosha
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
спасибо большое.
Вы не ответите еще на один вопрос, который я задал в форуме про курсоры и record?
...
Рейтинг: 0 / 0
3 сообщений из 3, страница 1 из 1
Форумы / PostgreSQL [игнор отключен] [закрыт для гостей] / Как заменить cache с Oracle на PostgreSQL?
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


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