Hi all,
I'm getting the following trying to compile a package:
PLS-00417: unable to resolve "USE_LOCK_YN" as a column
The statement is doing an update setting this value to N, The table belongs to the schema I am logged in as, as does the package I am trying to create.
I've checked the table and the column appears OK when describing the table.
Furthermore, I can do the following
UPDATE my_table
set use_lock_yn = 'N'
/
and this updates all the rows on the table.
I've even created a test procedure which falls foul of the same problem...
SQL> create procedure test_mike_TEST IS
2 CURSOR C_GET_LOCK_VAL IS
3 SELECT USE_lock_yn
4 from my_table;
5 begin
6 null;
7 end;
8 /
Warning: Procedure created with compilation errors.
real: 150
SQL> sho errors
Errors for PROCEDURE TEST_MIKE_TEST:
LINE/COL ERROR
-------- ---------------------------------------------------
3/1 PL/SQL: SQL Statement ignored
3/8 PLS-00201: identifier 'USE_LOCK_YN' must be declared
real: 160
SQL>
I figure it must be something to do with the fact that it's in a package, but I have no idea what, can anyone help?
Mike.
I'm getting the following trying to compile a package:
PLS-00417: unable to resolve "USE_LOCK_YN" as a column
The statement is doing an update setting this value to N, The table belongs to the schema I am logged in as, as does the package I am trying to create.
I've checked the table and the column appears OK when describing the table.
Furthermore, I can do the following
UPDATE my_table
set use_lock_yn = 'N'
/
and this updates all the rows on the table.
I've even created a test procedure which falls foul of the same problem...
SQL> create procedure test_mike_TEST IS
2 CURSOR C_GET_LOCK_VAL IS
3 SELECT USE_lock_yn
4 from my_table;
5 begin
6 null;
7 end;
8 /
Warning: Procedure created with compilation errors.
real: 150
SQL> sho errors
Errors for PROCEDURE TEST_MIKE_TEST:
LINE/COL ERROR
-------- ---------------------------------------------------
3/1 PL/SQL: SQL Statement ignored
3/8 PLS-00201: identifier 'USE_LOCK_YN' must be declared
real: 160
SQL>
I figure it must be something to do with the fact that it's in a package, but I have no idea what, can anyone help?
Mike.