Code written in Function? Can we see it again...

Hello Everyone,
Can I see the code that is written in the stored function? The function is in a package.
Could you please tell me how to get the code from it?
Thanks in advance
Himanshu

If this is in a package you cans only see it via the package:TEST.SQL>create package a
  2  is
  3  function f return number;
  4  end;
  5  /
Package created.
TEST.SQL>create package body a
  2  is
  3  function f return number
  4  is
  5  begin
  6  return 0;
  7  end;
  8  end;
  9  /
Package body created.
TEST.SQL>SELECT TEXT FROM USER_SOURCE WHERE NAME='A' ORDER BY TYPE, NAME, LINE;
TEXT
package a
is
function f return number;
end;
package body a
is
function f return number
is
begin
return 0;
end;
end;
12 rows selected.
TEST.SQL>c:'A':'F'
  1* SELECT TEXT FROM USER_SOURCE WHERE NAME='F' ORDER BY TYPE, NAME, LINE;
TEST.SQL>/
no rows selectedRegards,
Yoann.

Similar Messages

  • Accidentally I remove my car bluetooth from devices, How can I see it again as available

    accidentally I remove my car bluetooth from devices, How can I see it again as available??

    then do this on iphone
    reset network settings
    settings-general-reset-reset network settings
    now reconnect to wifi
    settings- wifi- click network name- enter password - join
    Peace, Clyde

  • I don't know why my code isn't working, Can you see what is wrong?

    I'm putting together a program that reads input from a text file and then decides what type of input it is (male or female) and then calculates the final sum for both.
    m=male and f=female. The numbers after the letter are GPAs. Here is the input file:
    m 2.4
    f 3.2
    m 3.7
    m 4.0
    f 2.9
    f 1.8
    f 3.8
    m 1.7
    m 3.4
    f 2.6
    m 2.8
    m 1.7
    f 3.7
    m 3.9
    f 4.0
    f 3.6
    m 2.3
    f 2.9
    m 3.0
    m 2.7now here is my code:
    import java.io.*;
    import java.util.*;
    public class gradecalc {
         * @param args the command line arguments
        public static void main(String[] args)
                                throws FileNotFoundException{
            // TODO code application logic here
    double sumMale=0;
    int numMale=0;
    double sumFemale=0;
    int numFemale=0;
    char gender;
    double gpa;
         Scanner inFile= new Scanner(new FileReader("gpa.txt"));
            PrintWriter outFile= new PrintWriter("gpaResult.txt");
    while (inFile.hasNext())
        gender= inFile.next().charAt(0);
        gpa= inFile.nextDouble();
        switch (gender)
            case 'M':
            case 'm':
                sumMale= sumMale + gpa;
                numMale++;
                break;
            case 'F':
            case 'f':
                sumFemale= sumFemale + gpa;
                numFemale++;
                break;
            default:
                System.out.println("Invalid gender code: "+gender);
    outFile.print("Sum of male students GPAs: " + sumMale);
    outFile.print("Sum of female students GPAs: " + sumFemale);
    outFile.close();
    }and this is the error message I get when I build and then try to run the program:
    init:
    deps-jar:
    compile:
    run:
    Exception in thread "main" java.util.NoSuchElementException
            at java.util.Scanner.throwFor(Scanner.java:838)
            at java.util.Scanner.next(Scanner.java:1461)
            at java.util.Scanner.nextDouble(Scanner.java:2387)
            at gradecalc.main(gradecalc.java:32)
    Java Result: 1
    BUILD SUCCESSFUL (total time: 0 seconds)I feel like I have the code right, yet it doesn't output anything to my file and gives me the above exception. What's the problem here??

    I actually figured it out. I think some of you programmers out there would be proud of me if you saw this completed code. This forum has really helped me out, but I still make some stupid mistakes. Like the one I realized I made on this program seconds after I made this pose. I realized that I had an unknown character at the end of my input document, which you can't see in my post because I must have not copied and pasted that part. I would delete this post, but don't know how.

  • Recently I bought an Ipad, now I need to find the old owner, so he can unlock it, but the full e-mail isn't written. How can I see the old e-mail?

    So, yesterday I bought an Ipad 3 16gb. when I unpacked it, I found that it is locked, so I need the previous owner to unlock it. For the bad cause, the owner is from UK, and I've bought it from a  intermediary in Bulgaria. How can I see the full email so I can contact him?

    Apple will not provide that information unless order to do so by a court order.  Your only option at this point is to return it to the intermediary and get your money back.  They should not have sold you a locked device.  Then don't buy another device without confirming that it isn't locked, as explained under "how do I check for activation lock before buying a used device" in this article: Find My iPhone Activation Lock.

  • Superdrive stopped functioning/ can't see or eject disk

    Hi
    I've got two (related problems):
    I performed a Repair Permissions on my HD and now the Superdrive no longer works. And, I can't see or eject the DVD that's in there (a Leopard install DVD), so can't restart with a bootable DVD either.
    So, any ideas how to (a) eject the disk and (b) get the drive working again?
    I've gone through methods suggested in this forum, such as starting up in firmware mode, resetting the PRAM (with or without switching the computer off and holding the start-up button for 15 seconds) etc.
    System profiler does not see the Superdrive.
    Is there a (non-damaging) method of retrieving the DVD with tweezers etc.?

    *A few suggestions:*
    http://docs.info.apple.com/article.html?artnum=58566 iMac (Slot Loading): Troubleshooting CD/DVD Eject Failures
    http://docs.info.apple.com/article.html?artnum=106752 Macintosh: How to Eject a Disc When Other Options Do Not Work
    Launch Disk Utility (Finder>Go>Utilities), select the ‘stuck disc’ in the volume list on the left & then either click the "Eject Button, Press Command+E or choose File>Eject Disk.

  • The time line of imovie disappeared. How can I see it again?

    I have OSX version 10.9.3. I am working with imovie 10 but i am not able to see the time line. This hasn't let me edit the movie clips. How can I see the time line again?

    You have to double-click on an existing project icon or create a new project and then the timeline appears.  Could this be the reason?
    Geoff.

  • IPod 4th gen has lots of lines over screen looks like bar codes and can't see display?

    My step sons iPod I just a year old but for about 3 months it's been coming up with lots of lines on screen looks like bar code. Now he can't see anything on screen due to his. He has not been on it for a while as he has a 2nd one from his mum but I forgot to check this out before warranty ran out.
    I have tried system re boot, I thought it was due to him charging it with USB on xbox360.
    Can someone please help

    - Try restoring the iPod from backup.
    - If not successful then restore to factory defaults/new iPod
    - If still problem time for an appointment at the Genius Bar of an Apple store.

  • Can't see files on a network Hard Drive

    So I have a new airport extreme and I wanted to put a drive on the network. I have two HDDs: one is the time machine that I normally have connected to my computer and another is a Hitachi that I just have Movies on. Both of them will show up under the APE in the shared, but none of the files that are on the drives show up as being there. I also tried backing up when my time capsule was on the network (I could see the shared drive icon on the desktop) but it said the backup volume couldn't be found. When I look at the disks in the airport utility it says that they have things written, but I can only see the empty free space when I open them from my MB. Can I access the files that are normally on the drives from the network without having to reformat them?
    The Hitachi is formatted under the Journaled Mac OS as well.

    I had the drive on a user password, but changed it to just be accessible if you were connected to the router. With this setting I can see the files on my movie drive, but when I try to do I time machine backup, it just sits on the "making backup disk available" and never is able to start the backup. Is there some trick to allowing the disk to backup from the airport?

  • IPHONE 4 Can't See Anything.

    My iPHON 4 work's but I can't see anything! The birghtness is all the way up, but nothing is showing. When I go to lock it, it would flash real quick, but then I can't see anything again. I have to put the phone on a slant to try and see where everything is. HELP!

    This may be a result of liquid damage.
    Which unfortunately voids any warranty made by apple.
    You should book a Genius Bar appointment at your nearest apple store for a proper examination.
    What you have described to me sounds like what happens when the moisture sensors on the iphone get activated rendering your iphone next to impossible to use.
    If you are able to book an appointment at the genius bar by going to your nearest apples stores website.
    one question for you.
    If you shine a bright light on the display do see it faintly if so it is usually what happens when the phone has liquid damage.
    But see a Genius first just to be sure. It could be something else

  • Can we see the code of GUI UDF functions

    Hi All,
    Can we see the code of GUI UDF functions?
    Which language it has been written?
    Cheers!
    Samarjit

    Hi,
    Have a look at this blog.
    Is this what you are looking for?
    <a href="/people/venkataramanan.parameswaran/blog/2007/02/06/is-there-a-possibility-to-access-xi-standard-functions-in-user-defined-functions-yes there a possibility to access XI standard functions in User defined Functions?" Yes!</a>
    Regards
    Bhavesh

  • I can not see all "Divisions" in BP Rel.--Partner Function Assignment

    Hi,
    When I edit "Partner Function Assignment" in BP reliationship such like BUR011("Employee Responsible"),
    I can not see all "Divisions" in list which I can see in configuration via SPRO-->Customer Relationship Management->Master Data->Orgnizational Management->Division Setting->Define Divisions.
    E.g., in configuration, I can see 7 records of divisions from "001" to "007", but in "Partner Function Assignment" of BP relationship, I can only see "002" to "004".
    Do you know why? Thanks a lot!
    Best regards,
    Long

    hi
    that should not be happening,if they are visible in one client then should be there in another too
    do one things try run  this
    hrbc1_atributes_buffer_update
    it will refresh the buffers of your org structure and then you may be able to add this
    also check the check box where it is mentioned that"object determination should be permitted"
    remember it will run only for once after you run this the check box will be unchecked again
    i guess it may solve your probs
    also try to structure your org structure index
    use t code
    crmd_index_om
    and withtin the object type give O
    and execute
    best regards
    ashish

  • Can i see the macro code in labview?

    i want to know how to make the macro in labview in order to be able to modify them in labview, so i don't want to write the named of macro made in excel or word and saved there, executing it with Run Macro where i call the macro with name.xls!macro, i would like to view the basic code of the macro.
    please, don´t say me, that the solution it´s easymacro.com, there i can´t see the diagram and i am a student, i need to learn.

    Hello,
    If you want to view the macro code in LabVIEW, there is a description at www.easymacro.com that will show you...
    Just kidding...
    To my knowledge, there is no way to view the code of an existing macro in LabVIEW. I could be wrong about this, however. The best way for you to find out what functionality is available is to obtain information from Microsoft on what specific macro functionality is available through ActiveX.
    I hope this suggestion gets you pointed in the right direction. Also, I recommend that in the future you only post your question to the Developer Exchange once...there is no need to post the same question multiple times.
    Have a nice day.
    Sincerely,
    Darren N.
    NI Applications Engineer
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman

  • Can I run c code written for an embedded application in Labview?

    I have code written in c for an embedded application.  I would like to call this function in Labview.  I have .c and .h files.  I do not have .dll files.  Is there a quick and dirty way for me to call the .c files in labview so that the logic can be used to interface with NI hardware?

    Well, they have LabWindows, if you want to buy that. But you can get free compilers out there. For example, you can use the free version of Visual Studio: https://decibel.ni.com/content/docs/DOC-14564

  • Can't see code in design mode

    I am a complete novice when it comes to DW so please forgive
    my ignorance. For some reason the code between my h tags and the
    the navigation is not visible to me, so it looks like huge chunks
    of my code are missing. Please can anyone help?
    Thanks in advance.
    Slooshy

    Let's see your page.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "slooshy" <[email protected]> wrote in
    message
    news:g28pm9$896$[email protected]..
    > I'm sorry I don't think I explained myself properly. The
    problem I am
    > having is
    > in code view. The code between the h tags is invisible,
    so I can only see
    > what
    > text is there by looking at the design view. This is
    also true of the text
    > in
    > my navigation too.
    >
    > Any advice is much appreciated.
    >
    > `
    >
    >
    >
    >
    >

  • Can't see the issue in code...please help

    I have this procedure within a package. Trying to compile and can't...get errors and I can't see why...any help???
    PROCEDURE KILL_ORPH_2PHASE_COMMITS (inLocal_tran_id IN varchar2) is
      tsql            VARCHAR2(256);
      v_local_tran_id varchar2(22 byte);
    BEGIN
    IF inLocal_tran_id is not null then
        tsql := 'ROLLBACK FORCE ''' || inLocal_tran_id || '''';
        dbms_output.put_line(tsql);
        EXECUTE IMMEDIATE tsql;
        RETURN;
    END IF;
        --open cursor
        open cur_2pc;
        loop
          --fetch cursor data
          fetch cur_2pc
            into v_local_tran_id;
          exit when cur_2pc%NOTFOUND;
          tsql := 'ROLLBACK FORCE ''' || v_local_tran_id || '''';
          dbms_output.put_line(tsql);
          EXECUTE IMMEDIATE tsql;
    EXCEPTION
      WHEN OTHERS
        THEN
          dbms_transaction.purge_lost_db_entry('''' || v_local_tran_id || '''');
    END;
    END LOOP;
    CLOSE cur_2pc;
    END KILL_ORPH_2PHASE_COMMITS;Error is:
    Compilation errors for PACKAGE BODY ADMIN.ADMIN_DBA_MAIN
    Error: PLS-00103: Encountered the symbol "EXCEPTION" when expecting one of the following:
    ( begin case declare end exit for goto if loop mod null
    pragma raise return select update while with <an identifier>
    <a double-quoted delimited-identifier> <a bind variable> <<
    continue close current delete fetch lock insert open rollback
    savepoint set sql execute commit forall merge pipe purge
    Line: 40
    Text: EXCEPTION
    Error: PLS-00103: Encountered the symbol "LOOP" when expecting one of the following:
    Line: 45
    Text: END LOOP;

    The BEGIN and END are not matching..??
    From your code, it looks like...you want each statement in your loop to have it's own begin..exception..end..
    BEGIN
    IF inLocal_tran_id is not null then
        tsql := 'ROLLBACK FORCE ''' || inLocal_tran_id || '''';
        dbms_output.put_line(tsql);
        EXECUTE IMMEDIATE tsql;
        RETURN;
    END IF;
        --open cursor
        open cur_2pc;
        loop
       BEGIN----------<<<<<<<<Begin for each iteration to have it's own loop...
       ------------>>>(this is for each statement in the loop...)
         --fetch cursor data
          fetch cur_2pc
            into v_local_tran_id;
          exit when cur_2pc%NOTFOUND;
          tsql := 'ROLLBACK FORCE ''' || v_local_tran_id || '''';
          dbms_output.put_line(tsql);
          EXECUTE IMMEDIATE tsql;
    EXCEPTION
      WHEN OTHERS
        THEN
          dbms_transaction.purge_lost_db_entry('''' || v_local_tran_id || '''');
    END;
    END LOOP;
    END KILL_ORPH_2PHASE_COMMITS; ----<<<Another End for the procedure....>>>

Maybe you are looking for

  • XSL (ABAP Engine)

    Hi All, I want to do XSLT mapping (ABAP Engine). How can i write XSLT mapping. can any one guide me. Thanks, Anil.

  • 87gb ipod with windows

    i've got a 30gb video ipod. i sync it with my mac and it works just fine. i sync it with my windows, and it says i've got an 87gb ipod that's completely full and i can't do anything to it. anyone understand what's going on here?

  • Ztable with key field automatically updated..

    Hi guys, I have created a Ztable and assigned a t-code and table view. I want to know whether it is possible when I am filling new entries, the key field should be automatically populated to the next number(+1 to the last key field) and should be rea

  • Best practice to restart weblogic and managed  servers after changing pass

    hi i need to know if have an installation with the following structer what is the best practice to restart the servers after we change weblogic password ?and i know that i should change boot.properties with the new password ,is there anything else to

  • Rotate a circle based on UITouch

    Ok. I'm racking my brain on this one. Onscreen I have an object (UIImageView) that I want to be able to rotate with my finger. Basically touch it and move my finger around and have it rotate on it's center to follow my finger. Rotating the image is n