I'm using plsdev 9.0.6.1665 and have been working on this file for the past couple of days. This morning I started to get a most curious error when I try to build the package in a programme window, but the package builds OK when I run it as a Command Window ... taking the same code, right click - "Change Windows to" and switching between "Program Window" and "Command Window".
I've got the problem code down to a very simple:
CREATE OR REPLACE PACKAGE demo IS
TYPE mytype IS TABLE OF schema2.table1%ROWTYPE INDEX BY BINARY_INTEGER;
END;
If I change this to reference 'schema2.anothertable' then it works OK. I can query schema2.table1 from my login just fine.
I can build the exact problem code in schema2 without any problems.
I can carry on with the development, but can only build the package etc if I compile it using a Command Window or sqlplus. Whilst that gives me the line numbers for errors etc - I've then got to find the error lines myself. A tad annoying : reminds me of when we used to develop using Notepad (!).
This type line referencing schema2.table1 has been in the package since I started work on it first thing yesterday.
Any ideas/suggestions would be gratefully received.
From the Oracle documentation:
ORA-21700: object does not exist or is marked for delete
Cause: User attempted to perform an inappropriate operation to an object that is non-existent or marked for delete. Operations such as pinning, deleting and updating cannot be applied to an object that is non-existent or marked for delete.
Action: User needs to re-initialize the reference to reference an existent object or the user needs to unmark the object.
The database I'm connected to is a PDB within an Oracle 12.1.0.1.0 database on Linux x86-64.
I've got the problem code down to a very simple:
CREATE OR REPLACE PACKAGE demo IS
TYPE mytype IS TABLE OF schema2.table1%ROWTYPE INDEX BY BINARY_INTEGER;
END;
If I change this to reference 'schema2.anothertable' then it works OK. I can query schema2.table1 from my login just fine.
I can build the exact problem code in schema2 without any problems.
I can carry on with the development, but can only build the package etc if I compile it using a Command Window or sqlplus. Whilst that gives me the line numbers for errors etc - I've then got to find the error lines myself. A tad annoying : reminds me of when we used to develop using Notepad (!).
This type line referencing schema2.table1 has been in the package since I started work on it first thing yesterday.
Any ideas/suggestions would be gratefully received.
From the Oracle documentation:
ORA-21700: object does not exist or is marked for delete
Cause: User attempted to perform an inappropriate operation to an object that is non-existent or marked for delete. Operations such as pinning, deleting and updating cannot be applied to an object that is non-existent or marked for delete.
Action: User needs to re-initialize the reference to reference an existent object or the user needs to unmark the object.
The database I'm connected to is a PDB within an Oracle 12.1.0.1.0 database on Linux x86-64.