I have to create a PL/SQL package and have been delivered a sample package but trying to follow it I couldn't create an object
CREATE OR REPLACE TYPE OBJ_PERSONA_SIGNANT AS OBJECT (
db_id NUMBER(6),
usuaricreacio VARCHAR2(20),
datacreacio VARCHAR2(25),
nom VARCHAR2(25),
signatura VARCHAR2(55),
disponible BOOLEAN,);
CREATE OR REPLACE TBL_PERSONA_SIGNANT IS TABLE OF OBJ_PERSONA_SIGNANT;
But I'm still getting:
Error: PLS-00201: identifier 'OBJ_PERSONA_SIGNANT' must be declared
Shouldn't this be enough? I honestly don't get why would I use an object while all this info is already in a table but new job, new rules.
I'm guessing I should initialize it or something but have spent the last hour trying to find out what/how should I do and my google-fu is not as it was :/
Any idea will be greatly appreciated.
CREATE OR REPLACE TYPE OBJ_PERSONA_SIGNANT AS OBJECTsuccessfully. Firstly, there is an extra comma, secondly the datatypeBOOLEANin PLSQL