I tried the example at http://www.oracle-base.com/articles/8i/object-types.php. I got an error when I tried to do:
SELECT p.id,
p.person.first_name,
p.person.getAge() age
FROM people p;
The error message is:
ORA-06571: Function GETAGE does not guarantee not to update database
How to avoid this error message?