Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: HELP: dbms_pipe
This is a multi-part message in MIME format.
--------------54F28A6F425C771EBE8283E3
Content-Type: multipart/alternative; boundary="------------490A5594C4E6E51C3E0441B5"
--------------490A5594C4E6E51C3E0441B5 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit
I was able to get this to compile after logging in as sys and explicitly granting execute on the dbms_pipe package to the user who was attempting to compile the package.
The steps:
Leonid Lamburt wrote:
> I am trying to write a package that uses DBMS_PIPE Package:
> .......
> ......
> CREATE OR REPLACE PACKAGE BODY my_package AS
> PROCEDURE use_pipes IS
> i INTEGER;
> BEGIN
> i := dbms_pipe.create_pipe('tst_pipe');
> END use_pipes;
> END my_package;
> /
>
>
>
--------------490A5594C4E6E51C3E0441B5 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit
<HTML>
I was able to get this to compile after logging in as sys and explicitly
granting execute on the dbms_pipe package to the user who was attempting
to compile the package.
<P>The steps: <OL> <LI> <TT>connect sys/password</TT></LI>
<LI>
<TT>grant execute on dbms_pipe to username;</TT></LI>
<LI>
<TT>connect username/userpassword</TT></LI>
<LI>
Then attempt to compile the package.</LI>
</OL>
<P>Leonid Lamburt wrote:
<BLOCKQUOTE TYPE=CITE>I am trying to write a package that uses DBMS_PIPE
Package:
<BR>....... <BR>...... <BR>CREATE OR REPLACE PACKAGE BODY my_package AS <BR> PROCEDURE use_pipes IS <BR> i INTEGER; <BR> BEGIN <BR> i := dbms_pipe.create_pipe('tst_pipe'); <BR> END use_pipes; <BR> END my_package; <BR>/
<P>It fails to compile with PLS-00201: identifier 'SYS.DBMS_PIPE' must
be
<BR>declared
<BR>error.
<P>I have no trouble using DBMS_OUTPUT Package <BR>Also <BR> declare <BR> i integer; <BR> begin <BR> i := dbms_pipe.create_pipe('tst_pipe'); <BR> end;
<P>executes fine
<P>What can be wrong? Any help will be appreciated...</BLOCKQUOTE> </HTML>
--------------490A5594C4E6E51C3E0441B5--
--------------54F28A6F425C771EBE8283E3 Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Frank Hubeny Content-Disposition: attachment; filename="vcard.vcf" begin: vcard fn: Frank Hubeny n: Hubeny;Frank adr: 427 East Liberty Drive;;;Wheaton;IL;60187-5510;USAemail;internet: fhubeny_at_ntsource.com
version: 2.1 end: vcard
--------------54F28A6F425C771EBE8283E3-- Received on Fri Nov 28 1997 - 00:00:00 CST