Solved

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

Posted on 2001-07-01
4
2,073 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Why doesn't the Oracle optimizer use my index? Querying too much data Most Oracle developers know that an index is useful when you can use it to restrict your result set to a small number of the total rows in a table. So, the obvious side…
Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
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
Suggested Courses

636 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