niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Databases » Oracle » Server
DBMS_AQ
Post new topic   Reply to topic Page 1 of 1 [4 Posts] View previous topic :: View next topic
Author Message
jyu
*nix forums beginner


Joined: 10 Feb 2005
Posts: 2

PostPosted: Thu Feb 10, 2005 2:00 pm    Post subject: DBMS_AQ Reply with quote

I am trying some sample about oracle AQ. But I run into some trouble.
When I try to create a procedure in SQLPLUS using the following script:

CREATE OR REPLACE PROCEDURE New_enqueue(
Queue_name IN VARCHAR2,
Payload IN RAW ,
Correlation IN VARCHAR2 := NULL,
Exception_queue IN VARCHAR2 := NULL)
AS

Enq_ct DBMS_AQ.Enqueue_options_t;
Msg_prop DBMS_AQ.Message_properties_t;
Enq_msgid RAW(16);
Userdata RAW(1000);

BEGIN
Msg_prop.Exception_queue := Exception_queue;
Msg_prop.Correlation := Correlation;
Userdata := Payload;

DBMS_AQ.ENQUEUE(Queue_name, Enq_ct, Msg_prop, Userdata, Enq_msgid);
END;
/

It gave me these errors:

8/12 PLS-00201: identifier 'DBMS_AQ' must be declared
8/12 PL/SQL: Item ignored
9/12 PLS-00201: identifier 'DBMS_AQ' must be declared
9/12 PL/SQL: Item ignored
14/4 PLS-00320: the declaration of the type of this expression is
incomplete or malformed

14/4 PL/SQL: Statement ignored
15/4 PLS-00320: the declaration of the type of this expression is
incomplete or malformed

15/4 PL/SQL: Statement ignored
18/1 PL/SQL: Statement ignored
18/29 PLS-00320: the declaration of the type of this expression is
incomplete or malformed


How can I resolve it? Thanks in advance.
Back to top
fitzjarrell@cox.net
*nix forums Guru


Joined: 19 Jul 2005
Posts: 444

PostPosted: Thu Feb 10, 2005 2:47 pm    Post subject: Re: DBMS_AQ Reply with quote

jyu wrote:
Quote:
I am trying some sample about oracle AQ. But I run into some trouble.
When I try to create a procedure in SQLPLUS using the following
script:

CREATE OR REPLACE PROCEDURE New_enqueue(
Queue_name IN VARCHAR2,
Payload IN RAW ,
Correlation IN VARCHAR2 := NULL,
Exception_queue IN VARCHAR2 := NULL)
AS

Enq_ct DBMS_AQ.Enqueue_options_t;
Msg_prop DBMS_AQ.Message_properties_t;
Enq_msgid RAW(16);
Userdata RAW(1000);

BEGIN
Msg_prop.Exception_queue := Exception_queue;
Msg_prop.Correlation := Correlation;
Userdata := Payload;

DBMS_AQ.ENQUEUE(Queue_name, Enq_ct, Msg_prop, Userdata, Enq_msgid);
END;
/

It gave me these errors:

8/12 PLS-00201: identifier 'DBMS_AQ' must be declared
8/12 PL/SQL: Item ignored
9/12 PLS-00201: identifier 'DBMS_AQ' must be declared
9/12 PL/SQL: Item ignored
14/4 PLS-00320: the declaration of the type of this expression is
incomplete or malformed

14/4 PL/SQL: Statement ignored
15/4 PLS-00320: the declaration of the type of this expression is
incomplete or malformed

15/4 PL/SQL: Statement ignored
18/1 PL/SQL: Statement ignored
18/29 PLS-00320: the declaration of the type of this expression is
incomplete or malformed


How can I resolve it? Thanks in advance.

The user account attempting to create this may not have execute
permission on the DBMS_AQ package, and likely there is no public
synonym in place.

I ran this on my system (having a public synonym and execute
permission) and created the procedure without error.


David Fitzjarrell
Back to top
Rauf Sarwar
*nix forums Guru


Joined: 03 May 2005
Posts: 353

PostPosted: Thu Feb 10, 2005 3:13 pm    Post subject: Re: DBMS_AQ Reply with quote

jyu wrote:
Quote:
I am trying some sample about oracle AQ. But I run into some trouble.
When I try to create a procedure in SQLPLUS using the following
script:

CREATE OR REPLACE PROCEDURE New_enqueue(
Queue_name IN VARCHAR2,
Payload IN RAW ,
Correlation IN VARCHAR2 := NULL,
Exception_queue IN VARCHAR2 := NULL)
AS

Enq_ct DBMS_AQ.Enqueue_options_t;
Msg_prop DBMS_AQ.Message_properties_t;
Enq_msgid RAW(16);
Userdata RAW(1000);

BEGIN
Msg_prop.Exception_queue := Exception_queue;
Msg_prop.Correlation := Correlation;
Userdata := Payload;

DBMS_AQ.ENQUEUE(Queue_name, Enq_ct, Msg_prop, Userdata, Enq_msgid);
END;
/

It gave me these errors:

8/12 PLS-00201: identifier 'DBMS_AQ' must be declared
8/12 PL/SQL: Item ignored
9/12 PLS-00201: identifier 'DBMS_AQ' must be declared
9/12 PL/SQL: Item ignored
14/4 PLS-00320: the declaration of the type of this expression is
incomplete or malformed

14/4 PL/SQL: Statement ignored
15/4 PLS-00320: the declaration of the type of this expression is
incomplete or malformed

15/4 PL/SQL: Statement ignored
18/1 PL/SQL: Statement ignored
18/29 PLS-00320: the declaration of the type of this expression is
incomplete or malformed


How can I resolve it? Thanks in advance.

- What's your Oracle version?
- DBMS_AQ package is installed in the database during database creation
by running ORACLE_HOME/rdbms/admin/catproc.sql script. Oracle creates a
public synonym dbms_aq so you should be able to access it.
- Login as the user creating the proc from sqlplus and do,
SQL> desc dbms_aq
If you get "object dbms_aq does not exist" then contact your DBA.

Regards
/Rauf
Back to top
jyu
*nix forums beginner


Joined: 10 Feb 2005
Posts: 2

PostPosted: Thu Feb 10, 2005 3:35 pm    Post subject: Re: DBMS_AQ Reply with quote

It works. Thanks.
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [4 Posts] View previous topic :: View next topic
The time now is Thu Jan 08, 2009 1:07 am | All times are GMT
navigation Forum index » Databases » Oracle » Server
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts DBMS_AQ roy Oracle 1 Wed May 10, 2006 8:12 am
No new posts Oracle AQ, problems defining dbms_aq.enqueue_options_t Sindre Idsal Server 3 Thu May 12, 2005 2:19 pm

Internet Advertising | Credit Cards | Guitar Lesson | Car Credit | McDonalds
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.3937s ][ Queries: 13 (0.3049s) ][ GZIP on - Debug on ]