To view procedure body after got created

Gurus,
Please provide me the steps in which we can see the procedure body (DDL) after got created.
IS this posible through DBMS_SQL package.

SQL> create procedure myproc
  2  as
  3  begin
  4    null;
  5  end;
  6  /
Procedure is aangemaakt.
SQL> select text from user_source where name = 'MYPROC' order by line
  2  /
TEXT
procedure myproc
as
begin
  null;
end;
5 rijen zijn geselecteerd.Regards,
Rob.

Similar Messages

  • CAN USE COPY COMMAND INSIDE PROCEDURE BODY

    Hi all
    can we use COPY command inside procedure body like this
    CREATE OR REPLACE procedure USER2.PRO1
    Begin
    execute immediate'copy from hr/hr@ERP to USER21/PASS@DB1 append user2.per_images using select * from hr.per_images';
    commit;
    end;
    YOU ADVICE PLEASE

    My advice is to check the manual.
    SQL*Plus COPY command
    http://download.oracle.com/docs/cd/B28359_01/server.111/b31189/ch12016.htm#i2675035
    SQL manual index
    http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/index.htm
    PL/SQL manual index
    http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28370/index.htm
    CTRL-F on the last two for COPY and it appears not.

  • After updating to 8.3 so many apps dont work properly. Any body else got this?

    After updating to 8.3 so many apps dont work properly. Any body else got this?

    This is truthfully a WAG but here are some standard repair procedures:
    First, try a system reset.  It cures many ills and it's quick, easy and harmless...
    Hold down the on/off switch and the Home button simultaneously until you see the Apple logo.  Ignore the "Slide to power off" text if it appears.  You will not lose any apps, data, music, movies, settings, etc.
    If the Reset doesn't work, try a Restore.  Note that it's nowhere near as quick as a Reset.  It could take well over an hour!  Connect via cable to the computer that you use for sync.  From iTunes, select the iPad/iPod and then select the Summary tab.  Follow the on-screen directions for Restore and be sure to say "yes" to the backup.  You will be warned that all data (apps, music, movies, etc.) will be erased but, as the Restore finishes, you will be asked if you wish the contents of the backup to be copied to the iPad/iPod.  Again, say "yes."
    At the end of the basic Restore, you will be asked if you wish to sync the iPad/iPod.  As before, say "yes."  Note that that sync selection will disappear and the Restore will end if you do not respond within a reasonable time.  If that happens, only the apps that are part of the IOS will appear on your device.  Corrective action is simple -  choose manual "Sync" from the bottom right of iTunes.
    If you're unable to do the Restore (or it doesn't help), go into Recovery Mode per the instructions here.  You WILL lose all of your data (game scores, etc,) but, for the most part, you can redownload apps and music without being charged again.  Also, read this.

  • Why CreateNewFrame() returns as NULL after successful created 136 child frame window and trying to create 137th child frame window in MDI application

    I am working on MDI application which was developed in VC++ in VS 2012. When my application is launched, it will display a Tree. Under a tree there are 254 nodes. Basically
    these nodes data are read from Configuration xml file and loaded into the Tree. By double clicking on each node, first it will create object for document class ( By calling CreateNewDocument() method) after that member variables for that
    document class will be initialized and then it will create the new frame window (by calling
    CreateNewFrame(pDoc,NULL). New child frame window will show under Main window to the user.
    User able to see the data from child frame window.
    Similarly by double clicking on each node it will create another object for the same document class and new child frame window will be opened for that node. Each child frame window runs
    in different data and showed under the Main window.
    Existing requirement by double clicking on each node, node data shall show in separate child window and there is no requirement for all 254 child windows opened simultaneously.
    But current requirement is , all 254 child windows shall open simultaneously by double clicking on each node one by one.
    In debug mode I have tried double clicking on each node. I able to open up to 50 nodes. After 50th child windows are opened, I unable to access to the application
    (Unable to open further node data window since application is getting hanged).
    Each child window is having tree, multiple splitter window and some additional controls (static text, ...).
    Same I have tried in release mode, I able to open up to 136 child windows. After that the application fail to create the new frame window in VS 2012. i.e CreateNewFrame() return
    NULL after successful created 136 child frame window. Debug purpose I have added the code to retrieve last error code by calling GetLastError() method. I got the value as "0". By closing any existing child window then I able to open remaining nodes.
    At any point of time I can reach maximum of 136 child frame window that can be opened under Main window. Failing to open all 254 child frame window
    simultaneously,  currently I fail to meet the current requirement.
    current Requirement is all 254 child frame window are opened simultaneously. Please let me know what may be the reason fail to create new frame window after 136 frame window that are
    opened already. In Microsoft site, mentioned that there is no limitation for creating frame  window in MDI application. I have tried another sample MDI application having limited number of controls, in which I able to create "n"
    number of child frame windows. why not able to create more than 136 child frame window in my actual application?
    Is there any possibility by changing project settings allow me to create 254 child frame window??
    Code Snippet as below:
    CDiagBaseDoc * CDiagBaseMDocTemplate::OpenDiagView( ...)
         CDiagBaseDoc* pDoc = NULL;
        if (pDoc == NULL)
            pDoc = (CDiagBaseDoc*)CreateNewDocument();
        if ( pDoc )
           CFrameWnd* pFrame = NULL;
           if (bAlreadyOpen)
                  // If Child frame window already opened, then handling the code here.
         else
               pFrame = CreateNewFrame(pDoc, NULL);
               if (pFrame == NULL)
                  ASSERT(FALSE);
                  delete pDoc;       // explicit delete on error
                 pDoc = NULL;
              ASSERT_VALID(pFrame);
              if( pDoc != NULL ) //VS2012
                 if ( !pDoc->OnNewDocument() )
                    TRACE0("CDocument::OnNewDocument returned FALSE\n");
                    delete pDoc;       // explicit delete on error
                    pDoc = NULL;
                    pFrame->DestroyWindow();
                     pFrame = NULL;
           if (pFrame)
               InitialUpdateFrame(pFrame, pDoc);
               ShowWindow( pFrame->GetSafeHwnd(), SW_MAXIMIZE ); //when opening node for the 1st time, maximize it
    }<o:p></o:p>

    Hi MuruganK,
    Have you checked how much memory your application used? You could check it by Task Manager. Maybe your application reach Memory Limits for Windows.
    https://msdn.microsoft.com/en-us/library/windows/desktop/aa366778%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396
    Is it possible that there are some memory leaks in your application? It would better if you have made a simple sample to reproduce and narrow down this issue.
    Best regards,
    Shu
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • PO got created with item blank

    Hi,
    The Purchase Order got created with item blank.
    first user created PR, by taking the reference of that PR they created PO. after saving only header details are there in PO and line items are missing.
    This issue in Production so we cant create PO.
    any way to check this issue ? since no background job is involved only foreground (manullay) they created.
    Last week i raised another thread for PR creation item blank.
    [ The Purchase requisitions got created without document type and first item blank this is the problem am facing .
    If we try to create a PR in the foreground, SAP doesnu2019t allow any blank line. it will adjusted automatically.and document type also mandatory.
    we dont know how this PR got created ]
    I didnt get any solution for this two issue.
    Help me on this.
    Regards,
    Priya.

    Hi ,
    You can goto change mode which is the item blank PO then give to the item no after save this time is solved na..
    if not solved na. some condition process ... so you can refer to document or note.
    Thanks
    Regards
    I.Muthukumar.

  • Cannot open PDF after I created it in my program under PRINT

    cannot open PDF after I created it in my program under PRINT
    Tried uninstalling and re-installing
    I have Reader X to open it with but all that comes through is this message-
    ERROR: undefined
    OFFENDING COMMAND: VM?
    STACK:
    105000

    Thank you for your response...
    I am creating a file in Adobe PageMaker and wanting to make it a PDF for others to view who may not have that program.
    I am operat ing under Windows 7 if that helps any.
    The content of what I am sending shouldn't matter- just JPG's and text.
    Should I uninstall my PDF reader and Cute PDF and re-load them back in?
    Sincerely,
    Leanne

  • Procedure to how to create a pop up in webdynpro

    hi all,
      will anybody guide me the procedure to how to create a pop up in webdynpro application..plz as am new to it and i had requirement of creating pop up window in starting the application.
    thanks in advance.

    hi suman,
    thanks for ur reply.
    i want my pop up when i clk on button ok on my 1st view.
    so i included the code in the method of ONACTION OK.
    but am not able to display any sort of pop up.
    my code is
    DATA lo_nd_node TYPE REF TO if_wd_context_node.
          data: lr_popup type ref to if_wd_window,
            lr_view_controller type ref to if_wd_view_controller.
    data lo_window_manager type ref to if_wd_window_manager.
    data lo_api_component  type ref to if_wd_component.
    data lo_window         type ref to if_wd_window.
    lo_api_component  = wd_comp_controller->wd_get_api( ).
    lo_window_manager = lo_api_component->get_window_manager( ).
    lo_window         = lo_window_manager->create_window(
                       window_name            = 'WW_POP'
                      title                  = 'my first message'
                      close_in_any_case      = abap_true
                       message_display_mode   = if_wd_window=>co_msg_display_mode_selected
                      close_button           = abap_true
                       button_kind            = if_wd_window=>co_buttons_ok
                       message_type           = if_wd_window=>co_msg_type_none
                       default_button         = if_wd_window=>co_button_ok
    lo_window->open( ).
    will u help me out in this.

  • How to view/edit/delete the user created profile in oracle 9i? Very Urgent

    Friends,
    I logged in as system in oracle 9i.
    SQL> create profile testpro limit
    2 idle_time 1;
    Profile created.
    SQL> alter user scott profile testpro;
    User altered.
    Then i logged in to sqlplusw as a scott user.
    and i waited for 10 mins after that.
    sql> select * from cat;
    its working......
    how come? i have already set a idle time to 1 minute.
    Please correct me if im wrong.
    Also, how can i view/edit/delete the user created profile.
    Thanks & Regards
    Sathyguy
    Message was edited by:
    sathyguy

    The resource limits set for a profile are enforced only when you enable resource limitation for the database.
    Enabling and Disabling Resource Limits While the Database is Open
    ALTER SYSTEM SET RESOURCE_LIMIT = TRUE;
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96521/users.htm#15451
    Manu

  • Is there any way to execute a custom script after JPA created tables?

    Hi
    I am looking for a way to execute some scripts right after JPA created the tables. I want the script to be executed once and not every time my application start.
    I though maybe Toplink has some extensions for this.
    Thanks.

    In general the auto-generated DDL is more for rapid prototyping, than production. If you have got to the point of defining your own DDL extensions, you may be better off outputting the auto-generated DDL to a file, and using ant or some other tool to define the schema including your extensions.
    You could do it using EclipseLink as well using a SessionCustomizer (which is an event class set in your persistence.xml). The SessionCustomizer is executed before the DDL is generated however, so you would need to remove the DDL properties from your persistence.xml and generate the DDL using an EclipseLink SchemaManager (SchemaManager.replaceDefaultTables(true, true)).
    James : http://www.eclipselink.org

  • XSD from Database table/view/procedure

    Hi all,
    Does anyone know of a tool or framework which enables generation of XSD's out of a Database table/view/procedure?

    Hi Naval,
    It depends on whether you created a BOL model for your Z-table or not. If you don't have a BOL model, then all you can do is use a value node. In that case, you need to add attribute that you want to show in the value node, read the values from the z-table and add them to the node. You can create method(s) in view implementation class to read values from database table and fill the context node. From where these methods should then be called will depend on your requirement.
    Regards,
    Shiromani

  • Stored procedure not found when creating a new recordset binding in Dreamweaver CS6 with ColdFusion Server 11

    Stored procedure not found when creating a new recordset binding in Dreamweaver CS6 with ColdFusion Server 11.  I can see the tables and views in the database tab, but no stored procedures.  If I connect to a data source created in ColdFusion Server 6 I am able to see the stored procedures.

    Ben thanks for the reply!
    Yes that is the process I am following:
    In Dreamweaver, open the page that will run the stored procedure.
    In the Bindings panel (Window > Bindings), click the Plus button, and then select Stored Procedure.
    In the Data Source pop‑up menu, select a connection to the database containing the stored procedure
    Enter the ColdFusion Data Source user name and password.
    At this point in the procedure drop down I would get a message that said No Stored Procedure Found.
    Right now it appears to be working, I had to create a new site that pointed to the older CF 6 server's data source and create a page following the process above, then when I went back to the CF 11 site the stored procedures were now populated.  I need to make sure it is pulling from the correct server but right now it appears to be working.
    Thanks
    Dwight

  • MD07 - Light need to be green after PR created

    Hi all ,
    My customer raises a reasonable request:
    In MD07 when there is a shortage (Minus stock)  the light is red . OK.
    However, after he creates a PR covering this shortage, he wants that the light will go Yellow .
    Sounds reasonable, right?
    I coukldn't find a way to do it.
    Any ideas?
    Best regards
    Amnon

    Amnon, the traffic lights are definable, as you probably know. They are not a planning tool, but a kind of additional alert for possible shortage situations, the kind of MRP itself is not signaling (meaning "day's supply" = for how many days the existing stock is covering requirements).
    This goes in line with the concept of "exception messages", which are also a kind of alert tool for the planner.
    The fact that you created a PR changes nothing in this logic! PR will nevertheless balance MRP, so from a planning point of view you are OK.
    So, I think that you should work with your client on better understanding the various concepts and tools that we have in SAP MRP planning.
    Br,
    Mario
    Edited by: Mario Adler on Aug 22, 2011 4:50 PM

  • Privilege to view package body

    Hi all,
    I have two users... user 'A' and user 'B' (real user names changed to protect the innocent). User A creates a package spec and package body.
    I want user B to be able to see the code in the package body that user A owns. Ideally I would like user B to be able to view the body code in TOAD via the schema browser or via a DESC. Is this possible?
    Thanks,
    Scott
    PS user B can see the package spec just fine...

    Having the execute privilege on a package should not give anyone the ability to see the source for the package body in all_source and if definitely does not give the user the ability to change the package. The privilege only allows them to execute the package.
    By default only the owner and DBA privileged users can read both the package specification and the body from all_source. Having execute privilege will allow a user to read the specification.
    One way to provide access is to create your own version of the all_source views and grant this to whoever needs the access. You can either write a very specific tailored view for the one user or create a user security table that you use to control who can see what via this special view. Plus you have to grant select access to the special view before anyone can use it.
    HTH -- Mark D Powell --

  • Privileges needed to view procedures, triggers, package bodies

    What privileges are needed for a user to view procedures, triggers, package bodies in another schema? I don't want to grant privileges more powerful than needed like 'select ANY'.

    If you want to give somebody access to view only some of objects without giving read/execute access to them probably the best method is to build your own view and give select acces to this view.
    Example:
    create view special_definitions as
      select view_name obj_name, 'VIEW' obj_type text
        from dba_views
       where owner='OTHERSCHEMA'
           and view_name in ('VIEW1', 'VIEW2', ...)
    union all
      select trigger_name,'TRIGGER', trigger_body
        from dba_triggers
       where .....
    grant select on special_definitions to special_user;Bartek

  • Hiding store procedure body

    Hi Sir,
    We have written a lot of the stored procedures in the database.
    Is there any way that we can hide the stored procedures body from allowing other people from viewing the source code?
    Please advise.
    Thanks.

    There is the application WRAP to do that. I never used it so I do not know how to use it. Check the documentation or technet.

Maybe you are looking for

  • New Records in database do not show up in resultset

    Hi, I have seen very little on this but I have a MS Access database that I have records in. If I change one of those records, I see the change in the resultset which I am just printing out for now using System.out.println . So I add new records manua

  • Unable to install Power2Go & Trend Micro antivirus after upgrade to windows 7

    Hi. Recently I received my free windows 7 Upgrade Kit from Lenovo. (fulfillment) Installed it and inserted the driver dvd to install the drivers from the dvd automatically. Everything went fine but the power2go software wasn't installed. Downloaded t

  • Best way to transfer everything on new hard drive for mac book pro

    Hi have a mid-2009 macbook pro with 4 GB ram and 250 GB hard drive, which is full now.  I just bought 8 GB RAM to speed it up and a new 1 TB hard drive.  I am running latest Lion (that I downloaded from mac app store - I have the original install DVD

  • Opening a popup from custom button in a Form

    I have a requirement to open a popup from a custom button of a portal form and once the value is selected from the popup the control should return to the main form with the value selected and set it to some display only field in that same form. It ca

  • Freeze column headers in a table and enable vertical scroll bar on the rows

    I have seen demos of BI Publisher running an html view of a report that displays a table of data with a vertical scroll bar on the table. The table header is always visible as you scroll down on the rows of the table. Any idea how this is achievable?