Показать сообщение отдельно
Старый 10.12.2008, 14:43   #10  
ZVV is offline
ZVV
MCITP
MCP
Oracle
MCBMSS
 
1,006 / 246 (11) ++++++
Регистрация: 13.02.2004
Адрес: Минск
->
Мне кажется что-то тут не о том речь идёт...

Цитата:
ORA-00955 name is already used by an existing object
Cause: An attempt was made to create a database object (such as a table, view,
cluster, index, or synonym) that already exists. A user’s database objects must
have distinct names.
Action: Enter a unique name for the database object or modify or drop the
existing object so it can be reused.
Т.е. проблемв в том, что аксапта почему-то не понимает, что индекс уже в оракле есть.

А если бы проблема была в дублировании уникального значения в поле таблице, то при создании уникального индексы вы бы получили совсем другую ошибку:
Цитата:
ORA-01452 cannot CREATE UNIQUE INDEX; duplicate keys found
Cause: A CREATE UNIQUE INDEX statement specified one or more columns
that currently contain duplicate values. All values in the indexed columns must
be unique by row to create a UNIQUE INDEX.
Action: If the entries need not be unique, remove the keyword UNIQUE from
the CREATE INDEX statement, then re-execute the statement. If the entries
must be unique, as in a primary key, then remove duplicate values before
creating the UNIQUE index.
__________________
Zhirenkov Vitaly