Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8920893
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T06:23:39+00:00 2026-06-15T06:23:39+00:00

In an earlier post, I had some problems with compiling the procedure below (which

  • 0

In an earlier post, I had some problems with compiling the procedure below (which is supposed to update the attribute profile based on how many tasks an author has written) – now, it does compile (with warnings though) and when I try to execute it, it fails. I cannot figure out why. I’m using ExecuteQuery to connect to a remote Oracle database. The tables involved in the procedure are:

Task(TaskID, ..., AuthorID)
Author(AuthorID, profile, name, ...)

Here is the procedure (my specific questions follow below):

ALTER SESSION SET PLSQL_WARNINGS='ENABLE:ALL';
CREATE OR REPLACE PROCEDURE profil_stufe
IS
    CURSOR c1 IS SELECT AuthorID, COUNT(AuthorID) as Total FROM Task
                 GROUP BY AuthorID;
    result INTEGER c1%ROWTYPE;
BEGIN
    OPEN c1;
        LOOP
        FETCH c1 INTO result;
        EXIT WHEN c1%NOTFOUND;

      IF(result.Total = 2 OR result.Total = 3) THEN
        UPDATE Author SET profile = 'Advanced' WHERE AuthorID = result.AuthorID;
      END IF;

      IF(result.Total >= 4) THEN
        UPDATE Author SET profile = 'proficient' WHERE AuthorID = result.AuthorID;
         END IF;
    END LOOP;
  CLOSE c1;
END;

My questions:

  1. First of all, I am not able to retrieve the warnings produced when compiling the procedure. I tried queries like select plsql_warnings from user_plsql_object_settings ps where ps.name = 'profil_stufe'; or select * from user_errors ur where ur.name = 'profil_stufe'; but neither deliver any result, even though the procedure does compile with warnings.

  2. When I perform execute profil_stufe I get an error

ORA-06550: Row 1, Column 16: PLS-00905: object CS261_20.PROFIL_STUFE
is invalid ORA-06550: Row 1, Column 7: PL/SQL: Statement ignored

Can somebody help me out? I know, that I could avoid creating a procedure and implement the same functionality otherwise. But it seems like I am missing some basic concepts of PL/SQL and I would really like to get to understand them … So, thanks for your help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T06:23:40+00:00Added an answer on June 15, 2026 at 6:23 am

    why do you have the variable declaration as : result INTEGER c1%ROWTYPE;
    It should be result c1%ROWTYPE;

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I had some good insight to an earlier post regarding this, but I have
Based on one answer to an earlier post , I'm investigating the possibility of
Earlier this week, I had to do something which feels like a semantics violation.
In my earlier post in iPhone - update the property of nth object of
I had asked this question earlier and thought I might post an example that
I had an earlier post link text where someone said I had my pointer
I saw an earlier post which is trying to do a similar sort of
From my earlier post , I figured out why the command build /nmake USER_C_FLAGS=/DMyVersion=3
Following on from a post I made earlier, I am making progress with what
Apologies if this seems like a duplicate post... Thomas Warner kindly answeres an earlier

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.