Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

User defined function in materialized view over db link

618096Jan 16 2008 — edited Jan 17 2008
I am working in Oracle 10g. Trying to create a materialized view to populate a reporting warehouse from a transactaional database (also oracle 10g).

In SQL plus I can access a function in a package on the remote database but when I try to use the "working" sql statement in a materialized view I get an invalid identifier error.

Basically my select statement is ...

select
ColA,
ColB,
PackageName.Function@db_link(parameters)
from
SourceTable@db_link .....

The select statement works but when I use it within a create materialized view statement I get ora-00904: PackageName.Function: invalid identifier.

Any help is appreciated.
Tx,
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 14 2008
Added on Jan 16 2008
3 comments
1,211 views