ORA-00955: name is already used by an existing object

박영준·2024년 4월 23일
0

Troubleshooting

목록 보기
23/29

1. 발생한 문제

QDB 설치 과정 中 DB 스크립트를 생성할 때,
테이블 생성 시에 ORA-00955: name is already used by an existing object 가 발생

2. 발생 원인

동일한 sql 파일(테이블을 생성해주는)을 반복해서 돌렸더니 다음 에러가 발생했다.

즉, 이미 존재하는 테이블이기 때문에 해당 테이블을 중복 생성할 수 없다는 것이다.

3. 해결법

방법 1. 기존 테이블 삭제

방법 2. 생성하려는 테이블명 변경

SQL> @/home/oracle/installSQL/3220_QDB.sql

Table created.

Index created.

Table created.

Index created.

중략...

CREATE TABLE HAI_QDBINFO (
             *
ERROR at line 1:
ORA-00955: name is already used by an existing object

CREATE UNIQUE INDEX XPKHAI_QDBINFO ON HAI_QDBINFO
                    *
ERROR at line 1:
ORA-00955: name is already used by an existing object

Comment created.

중략...

CREATE TABLE HAI_QDBLOG (
             *
ERROR at line 1:
ORA-00955: name is already used by an existing object

Comment created.

중략...

CREATE UNIQUE INDEX XPKQDBLOG ON HAI_QDBLOG
                    *
ERROR at line 1:
ORA-00955: name is already used by an existing object

Sequence created.

Sequence created.

Procedure created.

Procedure created.

중략...

Function created.

Function created.

Function created.

Error!! Insert data rollbacked!!

PL/SQL procedure successfully completed.
profile
개발자로 거듭나기!

0개의 댓글