Solved

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

Posted on 2001-07-01
4
2,066 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 1

Accepted Solution

by:
marek_wiechula earned 50 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Working with Network Access Control Lists in Oracle 11g (part 2) Part 1: http://www.e-e.com/A_8429.html Previously, I introduced the basics of network ACL's including how to create, delete and modify entries to allow and deny access.  For many…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
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 videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

738 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