Solved

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

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

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…
Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
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 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.

757 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now