Advertisement

05.15.2007 at 02:33AM PDT, ID: 22572481
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

Oracle Stored Procedure error

Zone: Oracle SCM
Tags: oracle, procedure, stored, symbol, encountered
Can anyone tell me what is wrong with the following code block in Oracle?

set serveroutput on;
DECLARE
strAccess VARCHAR2(100);
cursor curAccess(v_Physical_instance_uid NUMBER)
IS  
select mtyp.code
from physical_instance_headers pih, material_set mset, content c, content_parts cp,
materials m, material_types mtyp, material_status mst
where mset.object_uid= pih.physical_instance_uid
and pih.physical_instance_uid = v_Physical_instance_uid
and mset.object_uid_type=pih.uid_type
and c.material_set_uid=mset.material_set_uid
and cp.content_uid=c.content_uid
and cp.material_uid=m.material_uid
and m.material_type_uid=mtyp.material_type_uid
and m.material_status_uid=mst.material_status_uid
and mst.code='TXR';
curAccessRow curAccess%rowtype;
BEGIN
    OPEN cAccess(294927);      
        LOOP
        EXIT WHEN curAccess%notfound;
            FETCH curAccess into curAccessRow;            
            SELECT curAccessRow.code
                 CASE
                 WHEN 'CLCA' THEN strAccess := strAccess || 'S, '
                 WHEN 'AUDD' THEN strAccess := strAccess || 'D, '
                 WHEN 'SIGN' THEN strAccess := strAccess || 'SL, '
                 WHEN 'AD'   THEN strAccess := strAccess || 'AD, '
                 WHEN 'VDWS' THEN strAccess := strAccess || 'W, '                  
                 ELSE strAccess := strAccess
             END  
             dbms_output.put_line(strAccess);        
        END LOOP;
        CLOSE cAccess;
        strAccess := '[' || substr (strAccess, 1, length(strAccess)-2) || ']';
    DBms_output.put_line(strAccess);
END

I am getting the following errors:

10:31:43  ORA-06550: line 25, column 18:
10:31:43  PL/SQL: ORA-00923: FROM keyword not found where expected
10:31:43  ORA-06550: line 23, column 13:
10:31:43  PL/SQL: SQL Statement ignored
10:31:43  ORA-06550: line 38, column 24:
10:31:43  PLS-00103: Encountered the symbol "end-of-file" when expecting one of the following:
10:31:43  
10:31:43     ; <an identifier> <a double-quoted delimited-identifier>
10:31:43  The symbol ";" was substituted for "end-of-file" to continue
Start your free trial to view this solution
Question Stats
Zone: Database
Question Asked By: ReeNik
Solution Provided By: angelIII
Participating Experts: 3
Solution Grade: A
Views: 45
Translate:
Loading Advertisement...
05.15.2007 at 03:23AM PDT, ID: 19091548

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.15.2007 at 03:40AM PDT, ID: 19091605

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.24.2007 at 07:56AM PDT, ID: 19149744

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
06.19.2007 at 01:35PM PDT, ID: 19319623

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
11.02.2007 at 01:29PM PDT, ID: 20204265

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
20080236-EE-VQP-29