My Oracle Support Banner

PLS-00103 symbol ";" When Executing DBMS package (Doc ID 443991.1)

Last updated on MARCH 10, 2020

Applies to:

Oracle Database - Enterprise Edition - Version 9.2.0.1 to 10.2.0.2 [Release 9.2 to 10.2]
Information in this document applies to any platform.
Information in this document applies to any platform.

Purpose

When Exectuing this -

SQL> EXECUTE DBMS_REFRESH.ADD(name => '<schema_name>.<refresh_group_name.', list => '<materialized_view_name>');

Get this - BEGIN DBMS_REFRESH.ADD(; END;

*
ERROR at line 1:
ORA-06550: line 1, column 24:
PLS-00103: Encountered the symbol ";" when expecting one of the following:
( ) - + case mod new not null others <an identifier>
<a double-quoted delimited-identifier> <a bind variable>
table avg count current exists max min prior sql stddev sum
variance execute multiset the both leading trailing forall
merge year month DAY_ hour minute second timezone_hour
timezone_minute timezone_region timezone_abbr time timestamp
interval date
<a string literal with character set specification>

Scope

NOTE: In the images and/or the document content below, the user information and data used represents fictitious data from the Oracle sample schema(s) or Public Documentation delivered with an Oracle database product.  Any similarity to actual persons, living or dead, is purely coincidental and not intended in any manner.

SQL> select rowner,rname,refgroup from dba_refresh;

ROWNER             RNAME                REFGROUP
------------------    ------------                ----------
<schema_name>      <Mview_name>       102
<schema_name>     <Mview_name>        281

Tried the below two ways , But still fails,

SQL> EXEC DBMS_REFRESH.ADD(<schema_name>.<refresh_group_name>', list => '<materialized_view_name>);
BEGIN DBMS_REFRESH.ADD('<schema_name>.<refresh_group_name>', list => '<materialized_view_name>'); END;

*
ERROR at line 1:
ORA-06550: line 1, column 34:
PLS-00103: Encountered the symbol "<schema_name>" when expecting one of the
following:
) , * & = - + < / > at in is mod remainder not rem
<an exponent (**)> <> or != or ~= >= <= <> and or like LIKE2_
LIKE4_ LIKEC_ between || multiset member SUBMULTISET_


SQL> EXEC DBMS_REFRESH.ADD(name => '<schema_name>.<refresh_group_name>', list => '<materialized_view_name>');
BEGIN DBMS_REFRESH.ADD(name => '<schema_name>.<refresh_group_name>', list => '<materialized_view_name>'); END;

*
ERROR at line 1:
ORA-06550: line 1, column 32:
PLS-00201: identifier '<schema_name>.<refresh_group_name>' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored

Details

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Purpose
Scope
Details

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.