Please help me to fix the error pls-00103

create or replace procedure proc_exp is
declare
v_ename emp.ename%type;
v_sal emp.sal%type;
cursror c1 is select ename,sal from emp;
begin
open c1;
fetch c1 into v_ename,v_sal;
exit when c1%notfound;
dbms_output.put_line('ename:'||v_ename||'sal:'||v_sal);
close c1;
end proc_exp;

A procedure need not have a DECLARE clause.
You are opening the cursor but not looping.
Try this
CREATE OR REPLACE PROCEDURE proc_exp
IS
   v_ename        emp.ename%TYPE;
   v_sal          emp.sal%TYPE;
   CURSOR c1
   IS
      SELECT ename, sal FROM emp;
BEGIN
   OPEN c1;
   LOOP
      FETCH c1
      INTO v_ename, v_sal;
      EXIT WHEN c1%NOTFOUND;
      DBMS_OUTPUT.put_line ('ename:' || v_ename || 'sal:' || v_sal);
   END LOOP;
   CLOSE c1;
END proc_exp;G.

Similar Messages

  • Hi plZ help me to fix the error to my Blackberry 9300 Uncaught exception: java.lang.​NullPointe​rException

    ;   hi good plzz do help me to fix the error to my bb9300 i just update my bb9300 the the i see 
    error b    Uncaught exception: java.lang.NullPointerException    anyone here can help me to fix i appreciate

    I am guessing that you are not a Java developer, and it is not your application that is causing the Null Pointer Exception. 
    It sounds like you have updated the OS on your Blackberry device and one of the applications that you have installed is not coping with the upgrade.  
    If you press on an application icon and then that causes the error, then you know there is a problem with that application and so you need to report this to the developers of that application and get an updated version. 
    If this is happening when you restart your device, then it appears that one of the installed applications is failing at start up time and so it is not obvious which application.  So you need to see which of your applications doesn't appear to be providing all the functions it used to, and it would be a good guess that it is that application that is causing the problem.  Again you need to go back to the developer to get an update. 
    Let us know if that does not help.
    Also you have posted in the Java developer forum.  If this really is not your program causing the problem, then I suggest a better place to post a question relating to the 9300 is in the appropriate device forum here:
    http://supportforums.blackberry.com/t5/BlackBerry-​Curve/bd-p/Curve

  • TS3258 Hello I have upgraded i tunes from 11.0.0.163 to 11.0.4.4 and i am getting 42404 error please help me to fix that error... Thanks

    Hello I have upgraded i tunes from 11.0.0.163 to 11.0.4.4 and i am getting 42404 error please help me to fix that error... Thanks

    Did you ever solve this issue?

  • Help me to fix the error while running DBMaintain Against the Database Schema in ASE.

    Hi All,
    I am trying to install sybase mobiliser platform 5.1 SP 03.I am  referring the following guide
    http://infocenter.sybase.com/help/topic/com.sybase.infocenter.dc01871.0513/pdf/Mobiliser_Platform_Installation_Guide_5.1…
    Now I have configured the ASE database server with default settings and now it is running fine.
    Now my concerns are as follows:
    1) I have executed the database schema (mobr5): 001_MONEY_drop_and_create_user.DDL with the help of linux command
    isql -Usa -SASE1 -Phello@123 -i/opt/sybase/db/sql/001_MONEY_drop_and_create_user.DDL -o/opt/sybase/ASE-15_0/install/ASE1.log
    How do I check the created database schema and user with default name 'mobr5'?
    2) While running DBMaintain Against the Database Schema, I have followed the steps mentioned in the guide and made the following changes in the file dbmaintain.properties.ase
    database.driverClassName=com.sybase.jdbc4.jdbc.SybDriver
    database.url=jdbc:sybase:Tds:ASE1:5000/mobr5
    database.userName=mobr5
    database.schemaNames=mobr5
    database.password=paybox
    #Must be set if the driver is not packaged inside the scriptarchive or is present on the classpath
    #e.g. /path/to/driver.jar
    #database.driverLocation=/path/to/jconnect.jar
    database.driverLocation=/opt/sybase/db/sql/com.sybase365.mobiliser.vanilla.standalone-5.1.3.RELEASE-scriptarchive-ase.jar
    database.driverLocation=/opt/sybase/db/sql/com.sybase365.mobiliser.vanilla.standalone-5.1.3.RELEASE-scriptarchive-ase-vanilla.jar
    When I execute the script archives ,
    java –jar /opt/sybase/db/sql/com.sybase365.mobiliser.vanilla.standalone-5.1.3.RELEASE-scriptarchive-ase-driverless.jar -c /opt/sybase/db/sql/dbmaintain.properties.ase
    java –jar com.sybase365.mobiliser.vanilla.standalone-5.1.3.RELEASE-scriptarchive-ase-vanilla-driverless.jar -c dbmaintain.properties.ase
    I get the following error:
    So please help me to resolve the issues.

    Hi All,
    Issue is resolved and database has been updated successfully..
    Error was in database .url field of dbmaintain.properties.ase file.
    I have changed the database.url field  from database.url=jdbc:sybase:Tds:ASE1:5000/mobr5
    to  database.url=jdbc:sybase:Tds:<Private IP of Linux instance>:5000/mobr5
    Note:- I am installing mobiliser platform on AWS cloud.So I have made use of Private IP address of AWS Linux instance.

  • I want to update my WINDOWS 8 TO WINDOWS 8.1. But it doesn't updating. PLEASE HELP ME TO FIX THIS ERROR.

    SO HERE IT IS.
    I ALREADY READ MANY STEPS, MANY TIPS ON HOW TO FIX MY PROBLEM IN MY WINDOWS. BUT I REALLY CAN'T FIX IT. I'm not professional in terms of Computer System. But I really want to upgrade my Operating System to Windows 8.1.
    I really can't do it. 
    The window store says that I need to upgrade the pending updates for my applications but when I click install all.
    It's just pending. There's nothing happening. There's nothing installed. 
    So I go to control panel then search the windows update.
    There I click the Install Updates. I waited for 4 hours. But there's really nothing happening so I cancelled it.
    Then here is what happened after that.
    IT SAYS THAT code:80070003 windows update run into a problem then I clicked the "Get help with this error"
    Then I run the troubleshooting
    And then after that.
    the troubleshooting has completed this is what it said.
    Problems Found:
    Service registration is missing or corrupt
    Windows Update error 0x80070057 (2014-08-10-T-02_20_42P)
    Problems Installing recent updates
    So that's is.
    I don't know what to do.
    PLEASE HELP ME. :(

    Thanks, but, using the "free" version of Reader, there is no opportunity to open nor import the xml data - the menu options do not exist - there is no import listed.
    If we try to open the xml file directly, then we get an error - something to the effect of "unsupported file type, or the file is corrupted".
    I just noticed in my Pro version that there is the command File ->Form Data ->Import Data to Form... command. Is this what you are referring to?
    What do you recommend? Perhaps the easiest thing to do would be to purchase a few copies of Acrobat Pro for the reservations people to use? I was hoping that the free version of reader would do it, but perhaps not?
    Thanks again,
    Rob

  • Please Help Me Out of The Error

    Hello Everyone,
    I am executing the following Syntax to create a procedure which will spool all the data of my employee table and dumped into a Text file. The Procedure is creating successfully, but problem is when I am Executing the Procedure I am getting an error.
    The Syntax I am using to create the Procedure is:
    CREATE OR REPLACE PROCEDURE dump_emp
    IS
    file_handle UTL_FILE.FILE_TYPE;
    BEGIN
    file_handle := UTL_FILE.FOPEN('c:\file_dir\','dump.txt','w');
    FOR emp_rec IN (SELECT * FROM MANOJIT.EMPLOYEES) LOOP
    UTL_FILE.PUT_LINE(file_handle, emp_rec.emp_id || ',' || emp_rec.ename || ',' || emp_rec.department_id || ',' || emp_rec.salary);
    END LOOP;
    UTL_FILE.FCLOSE(file_handle);
    END dump_emp;
    The Error I am Getting when I Execute the Procedure is:
    ERROR at line 1:
    ORA-06510: PL/SQL: unhandled user-defined exception
    ORA-06512: at "SYS.UTL_FILE", line 98
    ORA-06512: at "SYS.UTL_FILE", line 157
    ORA-06512: at "SYS.DUMP_EMP", line 5
    ORA-06512: at line 1
    Please Help me in this matter.

    One of the quirks of UTL_FILE is that its execptions are treated by Oracle as user defined - hence the cryptic message. In order to find which error you're getting you'll need to put in an EXCEPTION section and trap the UTL_FILE exceptions - see the docs for details.
    I would guess that the problem you're getting is this: your database is on a server and you're trying to write to your client machine (i.e. your PC). You can't do this. PL/SQL is a server-side language and can only see the directories on the database machine. If you want to dump stuff to your local machine you have to use the SQL*Plus spool command, using DBMS_OUTPUT instead of UTL_FILE if you want complex assemblages.
    cheers, APC

  • Please help me to fix font error?

    Hi everyone!
    I have a small C# project writing in Vietnamese, connected to Oracle Server (version 9i).
    - NLS_LANG: AMERICAN_AMERICA.US7ASCII
    When I select data from PL/SQL, font is show OK, but when i load data into gridview in my program, font is show wrong
    For example:
    - In PL/SQL is: M¸y tÝnh x¸ch tay (Notebook)
    - In My App is: M8y t]nh x8ch tay (Notebook) => Wrong font
    I don't known how to fix this error. Can anybody help me to resolve this problem?
    Thanks so much

    Can anybody help me, please?

  • Please help me to fix the problem of my iphone 3gs, its says no service and could not activate your phone...the server is temporrili unavailable,try to connect it to itunes or wait a few minutes...i tried maany times but it does'nt work..please help me

    had a problem with my iphone 3gs.it came from recovery mode,after it it says no service,then activate your iphone..then i follow the steps appeare in the screen..after it it sys could not activate your phone.the server is temporrily unvailable or try to connect to itunes..I tried it many times since january 30 2013 night time.until now it does'nt work...how can u help me to fix my iphone..thanks

    so what cn u suggest to do to operate again my phone..

  • Please could everyone help me to fix the errors.....

    I have 2 errors
    GradePoint.java:62: '}' expected
    GradePoint.java:65: Statement expected
    Private static void totalPoints(Type[] ty)
    ^
    2 errors
    The line 65 i add } and still errors then I keep add until line 64. Then I got 38 errors.
    Could everyone help me out this problem please
    Thanks I lot for your help,
    Flower
    public class GradePoint
    static final int A = 4;
    static final int B = 3;
    static final int C = 2;
    static final int D = 1;
    static final int F = 0;
    public static void main(String[] args) throws Exception
    Type[] someTypes = new Type[5];
    char[] copyCode = {'A', 'B', 'C', 'D', 'F'};
    int[] copyPoint = {A, B, C, D, F};
    int x;
    char Type;
    int point = 0;
    boolean codeIsValid = false;
    char[][] studentGrades = new char[10][];
    for(int student = 0; student < 10; ++student)
    studentGrades[student] = new char [5];
    for(int student = 0; student<10; ++student)
    System.out.println("Enter grades for student # " +(student + 1));
    for(int course = 0; course < 5; ++course)
    for(x = 0; x<5; ++x)
    System.out.println("Enter Type of points");
    System.out.println("A is four grade points");
    System.out.println("B is three grade points");
    System.out.println("C is two grade points");
    System.out.println("D is one grade point");
    System.out.println("F is zero grade point");
    Type = (char)System.in.read();
    System.in.read();System.in.read();
    codeIsValid = false;
    for(int i = 0; i < 5; ++i)
    if(event == copyCode)
    point = copyPoint[i];
    codeIsValid = true;
    if(codeIsValid)
    someTypes[x] = new Type(type, point);
    else
    --x;
    for(x=0; x<5; ++x)
    System.out.println("Type " + (x+1) + " " + someTypes[x].getCopyType()+" " + someTypes[x].getCopyPoint());
    totalPoints(someTypes);
    for(x =0; x<5; ++x)
    System.out.println("Type " + (x+1) + " " + someTypes[x].getCopyType()+ " "+ someTypes[x].getCopyPoint());
    private static void totalPoints(Type[] ty)
    int GPA;
    for(int p = 0; p < 5; ++p)
    GPA = ty[p].getCopyPoint();
    GPA += 5;
    ty[p].setCopyPoint(GPA);

    Here are some corrections to your code. Every { needs a } Also, the } after your field declarations in the main method caused some problems because you were ending your main method before you most of your code.
    When I corrected those problems, the only errors I get are class not found (type) and uncaught IOExceptions.
    public class GradePoint
        static final int A = 4;
        static final int B = 3;
        static final int C = 2;
        static final int D = 1;
        static final int F = 0;
        int x;
        Type[] someTypes = new Type[5];
        char[] copyCode = {'A', 'B', 'C', 'D', 'F'};
        int[] copyPoint = {A, B, C, D, F};
        char Type;
        int point = 0;
        boolean codeIsValid = false;
        public static void main(String[] args) throws Exception
            int x;
            Type[] someTypes = new Type[5];
            char[] copyCode = {'A', 'B', 'C', 'D', 'F'};
            int[] copyPoint = {A, B, C, D, F};
            char Type;
            int point = 0;
            boolean codeIsValid = false;
            char[][] studentGrades = new char[10][];
                for(int student = 0; student < 10; ++student)
                    studentGrades[student] = new char [5];
                for(int student = 0; student<10; ++student)
                    System.out.println("Enter grades for student # " +(student + 1));
                    for(int course = 0; course < 5; ++course)
                        for(x = 0; x<5; ++x)
                            System.out.println("Enter Type of points");
                            System.out.println("A is four grade points");
                            System.out.println("B is three grade points");
                            System.out.println("C is two grade points");
                            System.out.println("D is one grade point");
                            System.out.println("F is zero grade point");
                            Type = (char)System.in.read();
                            System.in.read();System.in.read();
                            codeIsValid = false;
                            for(int i = 0; i < 5; ++i)
                                if(event == copyCode)
                                    point = copyPoint[ i ];
                                    codeIsValid = true;
                            if(codeIsValid)
                                someTypes[x] = new Type(type, point);
                            else
                                --x;
                        for(x=0; x<5; ++x)
                            System.out.println("Type " + (x+1) + " " + someTypes[x].getCopyType()+" " + someTypes[x].getCopyPoint());
                        totalPoints(someTypes);
                        for(x =0; x<5; ++x)
                            System.out.println("Type " + (x+1) + " " + someTypes[x].getCopyType()+ " "+ someTypes[x].getCopyPoint());
        private static void totalPoints(Type[] ty)
            int GPA;
            for(int p = 0; p < 5; ++p)
                GPA = ty[p].getCopyPoint();
                GPA += 5;
                ty[p].setCopyPoint(GPA);
    }

  • The computer has rebooted from a bugcheck. Please help to explain what the error is

    The computer has rebooted from a bugcheck.  The bugcheck was: 0x00000050 (0xfffff88803e62ff8, 0x0000000000000001, 0xfffff8800452dbf3, 0x0000000000000002). A dump was saved in: C:\WINDOWS\Minidump\041214-52484-01.dmp. Report Id: 041214-52484-01.

    We do need the actual DMP file as they contain the only record of the sequence of events leading up to the crash, what drivers were loaded, and what was responsible.  
    We prefer at least 2 DMP files to spot trends and confirm the cause.
    Please follow our instructions for finding and uploading the files we need to help you fix your computer. They can be found here
    If you have any questions about the procedure please ask
    If you are using Blue screen view, who crashed, or a similar application don't.  They are wrong at least as often as they are correct
    Wanikiya and Dyami--Team Zigzag

  • Re: Metrics error-Please help me to analyse the error

    Metric=Error Rate (%)
    Metric Value=9.09
    Timestamp=Aug 18, 2010 1:48:35 AM EDT
    Severity=Critical
    Message=The percentage of requests that resulted in errors is 9.09%
    We found errors in the weblogs. Does anyone have any idea of what this is about.
    orclas/esbprd01web01/Apache/Apache/htdocs/g6n4qvwp.htm
    [Tue Aug 17 22:57:11 2010] [error] [client 10.20.130.42] [ecid: 1282100231:10.95.85.44:5814:0:1980,0] File does not exist: /app/oracle/prod/Apache/Apache/htdocs/g6n4qvwp.idc
    [Tue Aug 17 22:57:12 2010] [error] [client 10.20.130.42] [ecid: 1282100232:10.95.85.44:5814:0:1981,0] File does not exist: /app/oracle/prod/Apache/Apache/htdocs/g6n4qvwp.idc
    [Tue Aug 17 22:57:12 2010] [error] [client 10.20.130.42] [ecid: 1282100232:10.95.85.44:5814:0:1982,0] File does not exist: /app/orclas/prod/Apache/Apache/htdocs/g6n4qvwp.x
    [Tue Aug 17 22:57:12 2010] [error] [client 10.20.130.42] [ecid: 1282100232:10.95.85.44:5814:0:1983,0] File does not exist: /app/orclas/prod/Apache/Apache/htdocs/g6n4qvwp.x
    [Tue Aug 17 22:57:12 2010] [error] [client 10.20.130.42] [ecid: 1282100232:10.95.85.44:5814:0:1984,0] File does not exist: /app/orclas/prod/Apache/Apache/htdocs/<script>document.cookie="testobxt=6838;"</script>
    [Tue Aug 17 22:57:12 2010] [error] [client 10.20.130.42] [ecid: 1282100232:10.95.85.44:5814:0:1985,0] mod_wchandshake: incorrect uri: <script>document.cookie="testobxt=6838;"</script> passed in.
    [Tue Aug 17 22:57:12 2010] [error] [client 10.20.130.42] [ecid: 1282100232:10.95.85.44:5814:0:1985,0] Invalid URI in request GET <script>document.cookie=%22testobxt=6838;%22</script> HTTP/1.1
    [Tue Aug 17 22:57:12 2010] [error] [client 10.20.130.42] [ecid: 1282100232:10.95.85.44:26886:0:10576,0] File does not exist: /app/orclas/esbprd01web01/Apache/Apache/htdocs/<meta http-equiv=Set-Cookie content="testobxt=6838">
    [Tue Aug 17 22:57:12 2010] [error] [client 10.20.130.42] [ecid: 1282100232:10.95.85.44:26886:0:10577,0] mod_wchandshake: incorrect uri: <meta http-equiv=Set-Cookie content="testobxt=6838"> passed in.
    [Tue Aug 17 22:57:12 2010] [error] [client 10.20.130.42] [ecid: 1282100232:10.95.85.44:26886:0:10577,0] Invalid URI in request GET <meta%20http-equiv=Set-Cookie%20content=%22testobxt=6838%22> HTTP/1.1

    You need to post this question in HTTP Server/Apache Forum

  • Encountered an error "PLS-00103: Encountered the symbol "CREATE" when expec

    HI All,
    I am creating a procedure and trying to use temp table...
    Here is the code":
    PROCEDURE P_PARENT_TREE
    topic_id_in           IN NUMBER,
    topic_hierarchy_details_out     OUT SYS_REFCURSOR
    ) IS
    temp_children_level topic_children.children_level%TYPE;
    temp_children_id topic_children.children_id%TYPE;
    temp_topic_id topic.topic_id%TYPE;
    CURSOR c_child_level IS
    SELECT children_level, children_id
    FROM topic_children
    WHERE children_id = topic_id_in;
    BEGIN
    OPEN c_child_level;
    FETCH c_child_level INTO temp_children_level,temp_topic_id ;
    CLOSE c_child_level;
    CREATE TEMPORARY TABLE IF NOT EXISTS topic_child
    (t_topic_id NUMBER, t_children_id NUMBER, children_seq NUMBER);
    WHILE temp_children_level > 0
    LOOP
    INSERT INTO topic_child(t_topic_id,t_children_id,children_seq)
    values (
    SELECT topic_id , children_id ,children_level
    FROM topic_children
    WHERE children_id = temp_topic_id);
    temp_children_level := temp_children_level - 1;
    END LOOP;
    OPEN topic_hierarchy_details_out FOR
    select * from topic_child;
    END P_PARENT_TREE;
    END TOPIC_PKG;
    getting the error "PLS-00103: Encountered the symbol "CREATE" when expec"...
    any idea why? or may be is there any other way to write this query

    something like
    select connect_by_root child_topic ||sys_connect_by_path (topic, '>') path
      from test
    where connect_by_isleaf = 1
    start with child_topic = 'aa4'
    connect by child_topic = prior topicas in
    SQL> with test as
      2  (
      3  select 0 sq, 'aa ' topic, 'aa1' child_topic from dual union all
      4  select 1 sq, 'aa1' topic, 'aa2' child_topic from dual union all
      5  select 3 sq, 'aa2' topic, 'aa3' child_topic from dual union all
      6  select 4 sq, 'aa3' topic, 'aa4' child_topic from dual
      7  )
      8  select connect_by_root child_topic ||sys_connect_by_path (topic, '>') path
      9    from test
    10   where connect_by_isleaf = 1
    11   start with child_topic = 'aa4'
    12  connect by child_topic = prior topic
    13  /
    PATH
    aa4>aa3>aa2>aa1>aa

  • I'm getting this problem when trying to update my iphone 3gs it says that the iphone software could not be contacted and I went on youtube got some advise to go into my hard drive to fix the error I have nothing in my host file please help me if you can

    I'm getting this problem when trying to update my iphone 3gs it says that the iphone software could not be contacted and I went on youtube got some advise to go into my hard drive to fix the error I have nothing in my host file please help me if you can this is all new to me.

    Read this: iOS 4: Updating your device to iOS 5 or later
    ... oh I think it is a 3gs or a 3
    This makes a difference. What does it say in Settings > General > About?

  • While opening the iTune Store i receive the following error, "The procedure entry point ADAdPolicyEngine_DidEnterSation could not be located in the dynamic link library iAdCore.dll" Please help me to clear this error.

    While opening the iTune Store i receive the following error, "The procedure entry point ADAdPolicyEngine_DidEnterSation could not be located in the dynamic link library iAdCore.dll" Please help me to clear this error.

    I faced the same issue. This solved it for me: Troubleshooting issues with iTunes for Windows updates
    Hope this helps.

  • Hi can you please help me to fix my iPhone 5 when I update it to the iOS 6.1.2 my carrier signal indicator states searching all the time please help me what to do

    HiHi can you please help me to fix my iPhone 5 when I update it to the iOS 6.1.2 my carrier signal indicator states searching all the time please help me what to do

    Hi Samantha,
    Are you aware that if you restore your ipad that you will lose all data from your ipad and very difficult to get it back unless you had previously made a back-up of your data on itunes or in the cloud. and that would be on the computer you set those up on. (There are some independent apps out there that might help restore data but I don't have any experience with them...)
    Also, I think if you restore on another computer you're supposed to have administrator rights and have the latest itunes update. And I think if you sync (if restoring is considered syncing with another computer, you'll be locked out of your computer or a new one.)
    I don't know if there is a way for you to safely eject your ipad from your mom's laptop and find another way, but please read this
    http://support.apple.com/kb/ts1275
    Also, I suggest you start a new post and title it something like First, stuck on update and now on Restore on another computer. Please HELP! And then tell the story of your problem that you originally included and your follow-up efforts to restore given a suggestion on previous post (though I think you SHOULD AVOID RSTORE if you can.) And refer them to your original post
    https://discussions.apple.com/message/22050045?ac_cid=tw123456#22050045
    Hope this helps and if you can get back to your ios before the upgrade, stay with it. I hope it all works out for you.
    FYI - If it's a new or refurb bought within the past year you might be able to have it replaced by Apple.

Maybe you are looking for

  • MD04 - stock/requirements list

    hi all, can anyone enlighten me on the date of mrp element prdord? how is this date derive from (a formula)? i had a report that extract prod. order confirmations and needed to incorporate this date from MD04. thanks!

  • Party-Relationships in Installed Base

    Hi, Can anybody highlight on purpose/uses/advantages of setting party relationships in Installed base. What can be acheived by creating these relationships? Regards, Mohammed

  • X2-00 echo Problem

    I recently got the X2-00 and callers complain that they hear themselves (like an echo) and that is very distracting. I tried to lower the volume - that didnt help. If I switch to loudspeakers then there is no echo (maybe there is a compensation activ

  • [SOLVED] The infamous Beryl white cube

    Hi, I really didn't want to make a post about this because I know it has likely been addressed multiple times before, but I've searched the forums and the wiki and cannot seem to solve my problem. I have installed Beryl and added the composite extens

  • Update page querrying the worng record

    Hi All, I have created a search page and added update icon to the result page. When I am clicking on the Update Icon it navigates to UpdatePG and display the record details to update. But it always displays the last record to in the updatePG. The que