Error

ORA-00001

Plugin buscador de errores Nuevo!
Instala gratis el plugin para buscar errores de Oracle directamente desde la barra de tu navegador.

Descripción:

ORA-00001: restricción única (.) violada (unique constraint (string.string) violated)

Causa:

Un UPDATE o INSERT intento de insertar una clave duplicada. Traducción automática de: An UPDATE or INSERT statement attempted to insert a duplicate key.

Acción:

Cualquiera de eliminar la única restricción o no insertar la clave. Traducción automática de: Either remove the unique restriction or do not insert the key.


FORO: ¿Cómo solucionar el error?

Autor:

COMENTARIOS:

por Anónimo | 1/11/2007 4:18:18 PM

RE: ORA-00001

Cause:

This error means that an attempt has been made to insert a record with a duplicate (unique) key. This error will also be generated if an existing record is updated to generate a duplicate (unique) key. Typically this is a duplicate primary key, but it need not be the primary key.

Remedy:

Only one of the following will be appropriate:

*

Remove the unique restriction.
*

Change the restriction to allow duplicate keys. An index could be changed to be a non-unique index, but remember that the primary key must always be unique.
*

Do not insert the duplicate key.

Usually this error indicates an application error or error on the part of the user.

The error gives the name of the constraint that has been violated, but not the name of the table. To identify the table and find out all the relevant information about the index it is normally easiest to use Oracle Schema Manager - the name of the constraint given in the error will match with the name of the corresponding index. Alternately, to identify the name of the table use:

select table_name from all_indexes where index_name='<index-name>';

this view ('all_indexes') also contains some other information about the index, such as its uniqueness.

and to identify the files that together constitute the index:

select * from all_ind_columns where index_name='<index-name>';


Hernan Torres
Sistemas :D

por oscar uriel | 4/24/2007 8:25:28 PM

RE: ORA-00001

Buenas tardes!
porque cuando deseo borrar una tabla que previamente indique indexes unique key, y primary key.
me dice que tengo que forzar para borrar no entiendo como forzar.
por la ayuda que me puedan prestar gracias.



Buscar errores de Oracle


Buscar en la web

 
Web orasite.com
· Tutoriales
- Export / Import Oracle 9i
- Instalación Oracle 10g
- Archivos de configuración de red para Oracle
- Administración de usuarios
- Export Oracle 10g
- init.ora spfile.ora fichero de parámetros oracle
- Configurar modo archivelog
- Introducción Oracle 10g
- Arrancar o parar base de datos Oracle
- Tunning Oracle
- Seguridad listener Oracle 10g
- Instalación statspack
- Parámetros memoria SGA
- Activar auditoria de la base de datos
- Oracle Jobs (9i)
- Controlar espacio tablespaces
- Hotbackup de una base de datos Oracle
- Búsquedas en Oracle 10g case-insensitive
- Recover database until time
- Privilegios sysoper y sysdba
- Consultas sobre V$
- Bloquear acceso a base de datos por IP
- Problemas Oracle Jobs
- Cambiar ubicación base de datos
- Reconstrucción de índices
- Encriptación e integridad de datos en Oracle
- Configuración de memoria
- Instalación de la máquina virtual Java
- Loadjava y Dropjava en Oracle
- Cambiar a modo restricted session
- Recuperación modo noarchivelog
 
· Oracle FAQ
- Oracle database
 
· Noticias
- Oracle OpenWorld 2009
- Oracle compra Sun
- Oracle 11g presentada
- Oracle vulnerable a inyección SQL en cursores
- Procesos de negocio con Oracle
- OracleXE para Debian
 
· Descargas
- Free Toad
 
· Errores Oracle
- Errores ORA
- Errores SQL
- Errores AMD
- Errores AUD
- Errores DBV
- Errores DRG
- Errores EPC
- Errores EXP
- Errores IMG
- Errores IMP
- Errores KUP
- Errores LCD
- Errores LFI
- Errores LFI0
- Errores LPX
- Errores LRM
- Errores LSX
- Errores MOD
- Errores NCR
- Errores NID
- Errores NMP
- Errores NNC
- Errores NNF
- Errores NNL
- Errores NNO
- Errores NPL
- Errores NZE
- Errores O2F
- Errores O2I
- Errores O2U
- Errores PCB
- Errores PCC
- Errores PCF
- Errores PLS
- Errores QSM
- Errores RMAN
- Errores TNS
- Errores VID
· Libros sobre Oracle
· Sitios relacionados
- Trabajos de Oracle
- ZonaOracle.com
- AjpdSoft
- La Web del Programador
· Sitios recomendados
- Cronica24.com
- TPV
- Buscar trabajo
Los contenidos de esta web son producto de la colaboración de sus usuarios, por lo que puede haber erratas. Si encuentras una información incorrecta agradeceremos que nos lo comuniques en nuestra dirección:
Cualquier información aquí publicada es de libre distribución, siempre y cuando se haga referencia mediante un link al documento original.
Orasite.com