powered by simpleCommunicator - 2.0.60     © 2026 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / Sybase ASA, ASE, IQ [игнор отключен] [закрыт для гостей] / at isolation read uncommitted
4 сообщений из 4, страница 1 из 1
at isolation read uncommitted
    #34821361
Evgeniy Rasyuk
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Подскажите пж. новичку

можно ли в код view поставить данное выражение (at isolation read uncommitted )
или

можно ли
указать в свойствах клиентского подключения на сервере ( без доп настроек клиента), что бы все запросы select от данного пользователя выполнялись в режиме uncommitted

Основная моя проблема заключается в том, что я не могу править код, сгенеренный клиентом.

Спасибо :)
...
Рейтинг: 0 / 0
at isolation read uncommitted
    #34821364
Evgeniy Rasyuk
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
sorry %)
ASE 12.5.3
...
Рейтинг: 0 / 0
at isolation read uncommitted
    #34821535
Evgeniy Rasyuk
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
все оказалось гораздо проще, чем я себе представлял спасибо Google

http://download.oracle.com/docs/html/B10530_01/apd.htm#634203

HS_FDS_TRANSACTION_MODEL

Default value: COMMIT_CONFIRM

Range of values: COMMIT_CONFIRM, READ_ONLY or SINGLE_SITE

Specifies the type of transaction model that is used when the Sybase database is updated by a transaction.

The following values are possible:

* COMMIT_CONFIRM provides read and write access to the Sybase database and allows the gateway to be part of a distributed update. To use the commit-confirm model, the following items must be created in the Sybase database:

o Transaction log table. The default table name is HS_TRANSACTION_LOG. A different name can be set using the HS_FDS_TRANSACTION_LOG parameter. The transaction log table must be granted SELECT, DELETE, and INSERT privileges set to public.

o Recovery account. The account name is assigned with the HS_FDS_RECOVERY_ACCOUNT parameter.

o Recovery account password. The password is assigned with the HS_FDS_RECOVERY_PWD parameter.

* READ_ONLY provides read access to the Sybase database.

* SINGLE_SITE provides read and write access to the Sybase database. However, the gateway cannot participate in distributed updates.
...
Рейтинг: 0 / 0
at isolation read uncommitted
    #34826887
Фотография MasterZiv
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Evgeniy Rasyuk пишет:
> можно ли в код view поставить данное выражение (at isolation read
> uncommitted )
> или

Мне смутно кажется что нельзя.
Но могу ошибаться.
Вот что абстрактный план нельзя задать - это точно
(он будет игнорирован). Скорей всего что и это нельзя,
поскольку изоляция должна определяться внешним запросом
по идее.

Даже если так можно делать, я бы этого делать не советовал.

> можно ли
> указать в свойствах клиентского подключения на сервере ( без доп
> настроек клиента),

Это где ты такие свойства видел ?

что бы все запросы select от данного пользователя
> выполнялись в режиме uncommitted

Можно, но это указывается коммандой из клиентского соединения.

set transaction isolation level

sets the transaction isolation level for your session. After you set this
option, any current or future transactions operate at that isolation level.

read uncommitted | 0

Scans at isolation level 0 do not acquire any locks. Therefore, the result set
of a level 0 scan may change while the scan is in progress. If the scan position
is lost due to changes in the underlying table, a unique index is required to
restart the scan. In the absence of a unique index, the scan may be aborted.
By default, a unique index is required for a level 0 scan on a table that does
not reside in a read-only database. You can override this requirement by forcing
the Adaptive Server to choose a nonunique index or a table scan, as follows:
select * from table_name (index table_name)
Activity on the underlying table may cause the scan to be aborted before completion.

Т.е. "впихнуть" ее в соединение на сервере скорее всего не удастся.

> Основная моя проблема заключается в том, что я не могу править код,
> сгенеренный клиентом.

Зачем вам read uncommited ? Он вредный и ненужный в современном ASE.
Прочитайте что написано в процитированной мной документации, вторая часть.
Если у вас проблемы с concurrency , лучше их решать другими методами, они
сейчас в ASE есть.
Posted via ActualForum NNTP Server 1.4
...
Рейтинг: 0 / 0
4 сообщений из 4, страница 1 из 1
Форумы / Sybase ASA, ASE, IQ [игнор отключен] [закрыт для гостей] / at isolation read uncommitted
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


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