Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to declare a package/procedure from pl/sql block

Posted on 2001-07-01
4
Medium Priority
?
2,095 Views
Last Modified: 2007-11-27
hello experts,

how to declare a package/procedure from pl/sql block program? FYI, i am receiving this error when we tried to compile the file to generate executable.

Pro*C/C++: Release 8.0.5.0.0 - Production on Fri Jun 29 15:45:7 2001
 
c) Copyright 1998 Oracle Corporation.  All rights reserved.
 
Error at line 77, column 5 in file hcs.pc

     DBMS_COMMAND_SERVER.get_command(:command,:returnpipe);
 ....1
 PLS-S-00201, identifier 'DBMS_COMMAND_SERVER.GET_COMMAND' must be
 declared
 Error at line 77, column 5 in file hcs.pc
     DBMS_COMMAND_SERVER.get_command(:command,:returnpipe);
 ....1
 PLS-S-00000, Statement ignored
 Semantic error at line 76, column 3, file hcs.pc:
   BEGIN
 ..1
PCC-S-02346, PL/SQL found semantic errors
 *** Error exit code 1
 *** Error exit code 1

thanks in advance
0
Comment
Question by:zuraimij
  • 2
4 Comments
 
LVL 1

Accepted Solution

by:
marek_wiechula earned 200 total points
ID: 6243637
The person who is trying to execute the Pro*C program must have both execute authority on the package DBMS_COMMAND_SERVER and they must be able to find it - ie. they must have a synonym (local or public) to find the package.  [Of course if the user is also the owner of the package this is automatically taken care of but I suspect that this package is in another schema.]
0
 
LVL 6

Expert Comment

by:Mindphaser
ID: 7038042
Please update and finalize this old, open question. Please:

1) Award points ... if you need Moderator assistance to split points, comment here with details please or advise us in Community Support with a zero point question and this question link.
2) Ask us to delete it if it has no value to you or others
3) Ask for a refund so that we can move it to our PAQ at zero points if it did not help you but may help others.

EXPERT INPUT WITH CLOSING RECOMMENDATIONS IS APPRECIATED IF ASKER DOES NOT RESPOND.

Thanks,

** Mindphaser - Community Support Moderator **

P.S.  Click your Member Profile, choose View Question History to go through all your open and locked questions to update them.
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7052556
Recommended disposition:
    Accept marek_wiechula's comment(s) as an answer.

DanRollins -- EE database cleanup volunteer
0
 
LVL 6

Expert Comment

by:Mindphaser
ID: 7052756
Force accepted

** Mindphaser - Community Support Moderator **
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.
Suggested Courses

926 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question