Reputation: 627
i revice my friend's script,
i got this line in oracle query :
select name, contact.utils.occupation_abbr(occupation)
from contact.staff
and i got :
*"CONTACT"."UTILS"."OCCUPATION_ABBR": invalid identifier*
this machine is not the original machine,
i think i miss copy something from the original machine.
I see in trigger or function list on the original machine and i don't find this there.
Any suggestion what i left?
== A BIT TRICKY ==
i get the function from packages body,
then i run the query and make it as function and it now become function :D
Upvotes: 0
Views: 59
Reputation:
It's a PL/SQL package.
The package name is UTILS
and the function that is called is named OCCUPATION_ABBR
You need to copy the whole package from the other system, only the function is not enough.
The package can be found in the schema (user) CONTACTS
Upvotes: 1
Reputation: 882806
That looks like a user defined function. You'll need to source it from the original machine.
Upvotes: 0