Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Package Compilation Problem

Re: Package Compilation Problem

From: Christian Antognini <christian.antognini_at_trivadis.com>
Date: Wed, 30 Jun 2004 11:05:21 +0200
Message-ID: <40e28250$1@post.usenet.com>

Hi Rod

> Hi, i'm using oracle 9.2.0.1.0, and am trying to create a package,
> here's a snippet...
>
> open mycur for
> select *
> from "OPS_HD_MAIL";
>
> when i try to compile the package i get the following errors...
>
> Line # = 14 Column # = 2 Error Text = PL/SQL: SQL Statement ignored
> Line # = 15 Column # = 7 Error Text = PL/SQL: ORA-06552: Compilation
> unit analysis terminated ORA-06553: PLS-320: the declaration of the type
> of this expression is incomplete or malformed

OPEN ... FOR takes as parameter a string. Therefore you should write:

open mycur for 'select * from OPS_HD_M';

Then it should work.

Chris

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Received on Wed Jun 30 2004 - 04:05:21 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US