Search notes:

ORA-22905: cannot access rows from a non-nested table item

create type tq84_t as object (dummy char(1));
/

create or replace function tq84_ora_22905 return tq84_t is begin return tq84_t('x'); end;
/
This statement runs without problem:
select tq84_ora_22905 from dual;
The following statement throws ORA-22905: cannot access rows from a non-nested table item:
select * from tq84_ora_22905();
Change the function so that is returns a nested table:
create type tq84_nt as table of tq84_t;
/

create or replace function tq84_ora_22905 return tq84_nt is begin return tq84_nt(tq84_t('x')); end;
/
Now, the statement runs ok:
select * from tq84_ora_22905();
Cleaning up:
drop type tq84_nt;
drop type tq84_t;
drop function tq84_ora_22905;
sa; Other Oracle error messages

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:51 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(51): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(66): id_of(Object(PDO), 'uri', '/notes/developm...') #2 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1759612541, '216.73.216.149', 'Mozilla/5.0 App...', NULL) #3 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/databases/Oracle/errors/ORA-22905_cannot-access-rows-from-a-non-nested-table-item(63): insert_webrequest() #4 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 51