IMP, EXP утилиты

Oleana
Дата: 02.03.2007 09:04:21
При снятии дампа со схемы (база 9-ка), в режиме tables mode экспортируются определенные таблицы. Далее при импорте импортятся не только таблицы, но и роли, и импорт падает с ошибкой -
IMP-00003: ORACLE error 1925 encountered
ORA-01925: maximum of 30 enabled roles exceeded
IMP-00000: Import terminated unsuccessfully.

строки импорта и экспорта:

C:\share>exp itc_filial/qwer@itc file=exp.dmp tables=(tablea, tableb) grants=y indexes=y rows=y l
og=temp.log

C:\share>imp 'sys/qwer@itc as sysdba' fromuser=itc_filial touser=itc_temp file
=exp.dmp rows=y grants=y log=imp.log ignore=y tables=(tablea, tableb).

Как обойти импорт ролей?
яп пошел
Дата: 02.03.2007 09:09:00
Oleana
C:\share>imp 'sys/qwer@itc as sysdba' fromuser=itc_filial touser=itc_temp file
=exp.dmp rows=y grants=y log=imp.log ignore=y tables=(tablea, tableb).

Как обойти импорт ролей?


???
Elic
Дата: 02.03.2007 09:16:55
Oleana
Далее при импорте импортятся не только таблицы, но и роли,
и импорт падает с ошибкой - ORA-01925: maximum of 30 enabled roles exceeded
Как обойти импорт ролей?
Совершенно неверный вывод Импорт тут ни при чём.
STFF ORA-01925
spas2001
Дата: 02.03.2007 09:24:37
Вывод конечно неверен, но исправляется установкой параметра max_enabled_roles=100 или 50 или <сколько ролей хотите>
Вообще, конечно, временное решение
Oleana
Дата: 02.03.2007 10:17:51
подскажите - как выставить данный параметр
Viewer
Дата: 02.03.2007 10:26:29
You can use the MAX_ENABLED_ROLES parameter in the database initialization file to set the number of roles that you will allow any user to have enabled at one time.

MAX_ENABLED_ROLES
MAX_ENABLED_ROLES specifies the maximum number of database roles that users can enable, including roles contained within other roles. The actual number of roles that users can enable is 2 plus the value of MAX_ENABLED_ROLES, because each user has two additional roles, PUBLIC and the user's own role.

For example, if MAX_ENABLED_ROLES is set to 5, then user HR can have seven roles enabled (the five enabled by MAX_ENABLED_ROLES, plus PUBLIC and HR).

Parameter Type:
Integer
Default Value:
30
Range of Values:
0 to 148