Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

DBMS_METADATA.GET_DDL(<paramName>=>'<value>'...) returns ORA-00907

18 views
Skip to first unread message

Spendius

unread,
Feb 18, 2005, 9:21:44 AM2/18/05
to
I always get a "missing right parenthesis" error message as soon
as I try to use this function by specifying parameters:

> select
> DBMS_METADATA.GET_DDL(object_type=>'VIEW', name=>'MQOT_V')
> from dual;
> DBMS_METADATA.GET_DDL(object_type=>'VIEW', name=>'MQOT_V')
> *
> ERROR at line 2:
> ORA-00907: missing right parenthesis

but:
> select
> DBMS_METADATA.GET_DDL('VIEW', 'MQOT_V') from dual;
>
> DBMS_METADATA.GET_DDL('VIEW','MQOT_V')
> --------------------------------------
>
> CREATE OR REPLACE VIEW [...]

Can someone help me please ?
Thks.
Spendius

Anurag Varma

unread,
Feb 18, 2005, 1:20:57 PM2/18/05
to

named notation for calling functions in SQL is not supported (i.e. not
a valid syntax).
This still does not work in the 10g. Maybe in future version.....

So, you have to use the 2nd method of calling functions in SQL.

Anurag

0 new messages