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
FARS_OWNER MFGALIASTYPE TABLE
FARS_OWNER MFGALIASTYPE_VALUE_PK INDEX
SQL> select * from MFGALIASTYPE;
VA I ATTRIBUTE PROMPTNAME SORTORDER
-- - ---------- --------------------------------------- ---------
T F SN Temic Accelerometer SN 30
T SN Actual Serial Number 10
A F SN Accelerometer SN 40
C F SN Customer SN 20
D F SN Daughter Board SN 60
S F SN Sensor SN 50
6 rows selected.
SQL> insert into MFGALIASTYPE values ('X', 'F', 'SN', 'Test', 80);
insert into MFGALIASTYPE values ('X', 'F', 'SN', 'Test', 80)
*
ERROR at line 1:
ORA-01732: data manipulation operation not legal on this view
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: [EMAIL PROTECTED]
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: [EMAIL PROTECTED] (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).