.ora-code.com

Links
Home
Oracle DBA Forum
Frequent Oracle Errors
TNS:could not resolve the connect identifier specified
Backtrace message unwound by exceptions
invalid identifier
PL/SQL compilation error
internal error
missing expression
table or view does not exist
end-of-file on communication channel
TNS:listener unknown in connect descriptor
insufficient privileges
PL/SQL: numeric or value error string
TNS:protocol adapter error
ORACLE not available
target host or object does not exist
invalid number
unable to allocate string bytes of shared memory
resource busy and acquire with NOWAIT specified
error occurred at recursive SQL level string
ORACLE initialization or shutdown in progress
archiver error. Connect internal only, until freed
snapshot too old
unable to extend temp segment by string in tablespace
Credential retrieval failed
missing or invalid option
invalid username/password; logon denied
unable to create INITIAL extent for segment
out of process memory when trying to allocate string bytes
shared memory realm does not exist
cannot insert NULL
TNS:unable to connect to destination
remote database not found'>ora-02019
exception encountered: core dump
inconsistent datatypes
no data found
TNS:operation timed out
PL/SQL: could not find program
existing state of packages has been discarded
maximum number of processes exceeded
error signaled in parallel query server
ORACLE instance terminated. Disconnection forced
TNS:packet writer failure
see ORA-12699
missing right parenthesis
name is already used by an existing object
cannot identify/lock data file
invalid file operation
quoted string not properly terminated
ORA-00955: name is already used by an existing object

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

2005-12-02       - By Ian Cary (C)
Reply:     1     2     3  

"Surely if using CREATE OR REPLACE
it should not matter if the object already exists?"

Only if a package of that name exists. Your error indicates that you have
another object with that name e.g.

TRYSTAG> create or replace procedure test as
 2  begin
 3  null;
 4  end;
 5  /

Procedure created.

Elapsed: 00:00:00.05
TRYSTAG> create or replace package test as
 2  begin
 3  null;
 4  end;
 5  /
create or replace package test as
*
ERROR at line 1:
ORA-00955 (See ORA-00955.ora-code.com): name is already used by an existing object

take a look in USER_OBJECTS and USER_SYNONYMS to see if anything called PACKAGE
_PRINTERTYPE_SCITEX exists.

Cheers,

Ian

-- --Original Message-- --
From: oracle-l-bounce@(protected)
[mailto:oracle-l-bounce@(protected)]On Behalf Of John Dunn
Sent: 02 December 2005 13:55
To: oracle-l@(protected)
Subject: ORA-00955 (See ORA-00955.ora-code.com): name is already used by an existing object


Can any one tell me why I get this error? Surely if using CREATE OR REPLACE
it should not matter if the object already exists?

CREATE OR REPLACE PACKAGE package_printertype_scitex AS
*
ERROR at line 1:
ORA-00955 (See ORA-00955.ora-code.com): name is already used by an existing object



Package body created.



John Dunn
Product Consultant
Direct Dial +44 (0) 117 373 6122
Sefas Innovation Ltd, CityPoint, Temple Gate, Bristol BS1 6PL, UK.
Tel: +44(0) 117 373 6114
Fax: +44 (0) 117 373 6115

www.sefas.com



--
http://www.freelists.org/webpage/oracle-l




This email is only intended for the person to whom it is addressed and may
contain confidential information. If you have received this email in error,
please notify the sender and delete this email which must not be copied,
distributed or disclosed to any other person.
Unless stated otherwise, the contents of this email are personal to the writer
and do not represent the official view of Ordnance Survey. Nor can any contract
be formed on Ordnance Survey's behalf via email. We reserve the right to
monitor emails and attachments without prior notice.

Thank you for your cooperation.

Ordnance Survey
Romsey Road
Southampton SO16 4GU
Tel: 023 8079 2000
http://www.ordnancesurvey.co.uk

--
http://www.freelists.org/webpage/oracle-l