Написал простейшую функцию:
create or replace function test_func(test_in in number) return number is
test_out number ;
BEGIN
test_out:=test_in;
RETURN test_out;
END;
Она компилируется. Но если пытаюсь её запустить:
BEGIN test_func(5); END;
то получаю следующую ошибку:
PLS-00221: 'TEST_FUNC' is not a procedure or is undefined
Что не так с моей функцией?
Свободный перевод вопроса Oracle function compiles successfully but throws error while executing PLS-00221: is not a procedure or is undefined от участника David