Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Getting ORA-01732 trying to insert into table (NOT view)
Why would 0racle even consider the public synonym? I thought this might be a materialized view, but I would expect to see an undefined object type.
Ian MacGregor
-----Original Message-----
Sent: Friday, May 04, 2001 8:21 AM
To: Multiple recipients of list ORACLE-L
Are you sure the public synonym isn't pointing to an object in some other database thru a link?
>>> Michael.Ray_at_trw.com 05/03/01 04:55PM >>>
Why do I keep getting this error even though this object is not a view??? I am in as
the owner of the table, which has the DBA role to boot.
SQL> show user
USER is "FARS_OWNER"
SQL> select owner, object_name, object_type from dba_objects where object_name like
'%ALIASTYPE%';
OWNER OBJECT_NAME OBJECT_TYPE
------- -------------- ------------------PUBLIC MFGALIASTYPE SYNONYM
VA I ATTRIBUTE PROMPTNAME SORTORDER
-- - ---------- --------------------------------------- ---------T F SN Temic Accelerometer SN 30
6 rows selected.
SQL> insert into MFGALIASTYPE values ('X', 'F', 'SN', 'Test', 80); insert into MFGALIASTYPE values ('X', 'F', 'SN', 'Test', 80)
*
BTW, the synonym is for the table so other users can access it without adding the owner's name. I had already tried "insert into FARS_OWNER.MFGALIASTYPE ..." as well, but didn't include that here.
Here's the table definition:
CREATE TABLE "FARS_OWNER"."MFGALIASTYPE" ("VALUE" VARCHAR2(2),
"ISDEFAULT" VARCHAR2(1), "ATTRIBUTE" VARCHAR2(45), "PROMPTNAME"
VARCHAR2(45) NOT NULL ENABLE, "SORTORDER" NUMBER(2, 0)) PCTFREE 10
PCTUSED 40 INITRANS 1 MAXTRANS 255 LOGGING TABLESPACE "TBL_TINY" ;
ALTER TABLE "FARS_OWNER"."MFGALIASTYPE" ADD CONSTRAINT
"MFGALIASTYPE_VALUE_PK" PRIMARY KEY ("PROMPTNAME") USING INDEX
PCTFREE 10 INITRANS 2 MAXTRANS 255 TABLESPACE "USER_DATA" ENABLE
NOVALIDATE ;
This is using 8.1.5 EE on NT 4 SP6a.
Michael Ray
Oracle DBA
TRW, Marshall, IL
217-826-3011 x2438
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Michael Ray INET: Michael.Ray_at_trw.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Tim Sawmiller INET: sawmillert_at_state.mi.us Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: MacGregor, Ian A. INET: ian_at_SLAC.Stanford.EDU Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Fri May 04 2001 - 14:04:13 CDT