Viewing stored proc source code

Ok, now how do I view the source of a stored proc in SQL Developer?
I have tried:
select source from user_sources
select source from all_sources
select * from dba_sources
ALL are coming back with table or view does not exist.
If I try this:
select procedure_name from dba_procedures;
I get all the procedures but how can I view the source code for any one of them?
Sorry, again, I have been away from oracle for over 4 years. I am trying to re-acquaint myself with oracle again starting with the most basic stuff.
Thanks in advance

hi,
Sorry, I don't understand your question.
I can see the package or procedure name but it doesn't show the source code.
I know that in sql* plus, if you say:
select source from all_source, it displays the source code but I want to see if that is possible in sql developer environment.

Similar Messages

  • View the html source code of an apex page

    Hi everyone,
    I search to how I can view the html source code of an apex page and to be able to modify it. That's why viewing the html source code from the browser when the application is running doesn't arrange me.
    Has anyone an idea how it can this be possible?
    Best regards,

    Khadija Khalfallah wrote:
    Hi everyone,
    I search to how I can view the html source code of an apex page and to be able to modify it. That's why viewing the html source code from the browser when the application is running doesn't arrange me. What do you mean?
    Do you want to be able to pull up the HTML source generated by Apex, modify that copy, and then feed it back into Apex with the chagnes you made? If so you can't. Apex generates the HTML through its tools and you have to modify the generation routines to get different HTML.
    Do you merely want to look at the generated HTML? In Internet Explorer all you have to do is right click on the page and choose View Source to open a window with the HTML source in an editor. I sometimes find it useful to save a page and manually edit the copy to immediately see the effects of certain changes to the underlying HTML and/or Javascript without permanantly making the change in Apex.

  • How to get / view Java Sound source code

    Hi All,
    I'm curious to view the Java Sound source code, is that possible? Let me know what I have done so far,
    1. In eclipse I have mapped the src.zip from the JDK directory, now I am able to view most of the source code.
    2. When I try to view AudioSystem.getProviders method it returns value from JDK13Services.getProviders
    But I dont have source code for JDK13Services class, indeed i don't have com.sun.media package source code, in the src.zip
    Do anyone know how to get com.sun.media package source code?
    Thanks in advance,
    Karthikeyan R

    It appears that the 3rd entry of this search
    [http://www.google.com/search?q=JDK13Services]
    give both the javadoc and source for JDK13Services, as follows:
    [http://www.docjar.org/docs/api/com/sun/media/sound/JDK13Services.html]
    The other search listings appear to contain useful information, also.

  • How view and edit source code before publish to iWeb

    I noted the following iWeb page plays music when it opens: http://homepage.mac.com/kkirkster/maya_test/
    How does one change the source code in iWeb before it is published so that such a change as he did works in opening a blog page?
    Dennis
    Power Mac G5   Mac OS X (10.4.4)  

    I could as easily edited the iWeb slideshow.html page but I wanted to test the features of the newer slide show.
    The page was uploaded to my .Mac account (iDisk) and then copied to my Desktop. I edited the images to reduce their file size and edited the page code and reposted the entire thing (drag and drop) in my iDisk Sites (Homepage) folder.
    The page was to test the features of the new javascript slide show and is S&G stuff.
    Being a dial-up user (very slow) I wanted to give the value of the new slide show without the added bloat of the new iWeb software.
    Here is the iWeb version with the same music code pasted into the slideshow.html page:
    http://web.mac.com/kkirkster/iWeb/Maya/Maya.html
    Once the first page loads completely a viewer can click on the "Start Slideshow" button and view the images and listen to very bad MIDI music.
    Simple copy/paste of some object and embed tag code using Text Edit (set to plain text).
    So. I'll make some slide show pages using iWeb and add a bit of simple code and then repost the page at my Homepage site.
    Less bloat. More filling!

  • Viewing a mulib source code

    Hi,
    I was wondering if you could change a .mulib file back into a .mucow file thus being able to view to source code of the widget.
    Thanks in advance,
    Daniel

    Hi,
    at the moment  you can't see the source files of a file .mulib.
    You can create file .mulib from .mucow but you can't create files .mucow from .mulib.
    BUT there is an alternative way:
    1) add the widget .MULIB in a new site (or in a white page without element)
    2) export the website in a local folder
    3)GO TO FOLDER SELECTED AND OPEN WITH A EDITOR TEXT (or dreamviewer) the page with widget
    4) search:
         - in the <head> section search " <!--HTML Widget code--> " for the style and script in the head section;
         -in the bottom of body search " <!--HTML Widget code--> " for the style and script in the head section;
    5) at this time you can create a file .mucow with the same script and the same parameters
    P.S. The code found must subsequently be amended in order to change the parameters.
    Good job
    Lorenzo

  • How to access a table from one view in another view via ABAP source code.

    Hi experts, I need your help.
    I am working in SAP CRM 2007 developing code modifiying views using transaction "BSP_WD_CMPWB" and my problem is the following:
    After the "Account Identification" process I go to "Create Case" and click in "Complaints" option in the navigation bar.
    Here there are several views involved, like "General data" and "Parties involved"
    "General data" belongs to the component "BT126H_CALL" and the name of the view is "SCDetails.htm"
    "Parties involved" belongs to the component "BTPARTNER" and the name of the view is "Partner.htm"
    The "Partner.htm" view has a table that is displayed using a "<chtmlb:configTable . . . table = "//BTPartner/Table" instruction.
    I need to acces the table "//BTPartner/Table"  that belongs to "Partner.htm" in the view "SCDetails.htm" and add data into it.
    How can I do that ?
    Add the data in the view "Partner.htm" itself is very simple, I am using the "EH_ONINSERT" method but I have not idea how to do that from "SCDetails.htm".
    Thanks in advance for your help.
    Best Regards.
    Exequiel.

    Hi,
    as I understand from your question you would like to add a partner to the complaint document.
    The complaint document is a 1Order document and has the root genil node named BTOrder. Using the genil relationships you have to get the BTPartnerSet and then the right Partner Relationship.
    You will find a lot of information in the newsgroup on how to do this by doing a search.
    But a quick help would be to use the sapgui transaction genil_model_browser, component set ONEORDER and using the tree structure navigate from the BTOrder root node to the Partner set.
    Best regards,
    Erika

  • Allow user to select data, see the tables list but not view the table/view/stored procs definition

    Hi,
    May I know how to achieve the above ? Please enlighten me.
    TIA !

    So you want users to be able to see the name of the table, but not the definition? I am afraid that this is not possible. You can give users access to a table and hide the definition, but the name is considered part of the definition.
    Olaf mentioned VIEW DEFINITION. What he did not say is that when you have SELECT permission (or EXECUTE permission on a stored procedure), the permission VIEW DEFINITION is implied by the stronger permission. For this reason you need to explicitly DENY this
    permission as shown in the script below.
    In the script I create a user without a login and then impersonate a user. This is an excellent way to test permissions.
    [sql]
    CREATE TABLE tabbe (a int NOT NULL)
    go
    CREATE USER usse WITHOUT LOGIN
    go
    GRANT SELECT ON tabbe TO usse
    DENY VIEW DEFINITION ON tabbe TO usse
    go
    EXECUTE AS USER = 'usse'
    go
    SELECT * FROM tabbe
    go
    SELECT name FROM sys.objects WHERE type = 'U'
    EXEC sp_help tabbe
    go
    REVERT
    go
    DROP USER usse
    DROP TABLE tabbe
    {/sql]
    Note: rather than denying VIEW DEFINITION on an individual object you can leave out "ON tabbe" to deny the permission across the database.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • View the module/source code...

    Hi,
    In the variable screen after execution of a query, then the selection of required variables is done which redirects to the output report when executed it. There will be a module which takes the user inputs and gives the output. Please help me how to view/edit the module which is called after submitting  the field values in the report.
    Regards,
    Koundinya.

    Check my weblog <a href="/people/alvaro.tejadagalindo/blog/2006/05/17/tasting-the-mix-of-php-and-sap--volume-5 the mix of PHP and SAP - Volume 5</a> It has some custom FM's to use with the SBWP....Maybe they could help you a little bit -;)
    Greetings,
    Blag.

  • Cant view facebook using firefox.and as well viewing yahoo chat conversation as a source code.

    i am having problem viewing faceook using firefox 4 as well yaho chat coversation,viewing it as source code
    i am using safari,goggle chrome,ie8 m opera
    with it all its working f9 except with firefox.

    I'm having exactly the same problem, view source isn't working on a second monitor. Is there a fix to the actual problem rather than just moving the window to the first monitor whenever I want to view source?

  • How to hide Stored Procedure Source?

    Hi:
    i want to hide my stored procedure source code to prevent it to be viewed even DBA. How could i do it?
    Thanks!
    null

    Hello for this purpose you can use PL/SQL wrapper shown below are steps in using it.
    1. Create your source code file.
    e.g. mysql.sql file is
    * This is test source code file,will be used by SQL Wrapper.
    * Author - Mr. Adinath R. Kamode
    * Date - May 30,2001
    Create or replace procedure pwraptest (v_empno number) as
    v_empname varchar2(30);
    v_sal number (10) := 0;
    begin
    dbms_output.put_line('......................................................................');
    dbms_output.put_line(' Testing PL/SQL Wrapper ');
    dbms_output.put_line('......................................................................');
    -- Obtain employee name and Salary
    select ename,nvl(sal,0) sal
    into v_empname,v_sal
    from emp
    where empno = v_empno;
    dbms_output.put_line('Employee Name,Salary.... '&#0124; &#0124;v_empname&#0124; &#0124;','&#0124; &#0124;to_char(v_sal));
    end;
    2. At your operating system prompt use WRAP command syntax is
    WRAP80 INAME=input_filename [ONAME=Output_filename]
    Input_filename = Input file name is path and name of your source code file with sql extension,you can specify other extensions also.
    Input file can contain any combination of SQL statements,but wrapper wraps only following Create statements.
    Output_filename = Optional,Output filename is path and name for wrapper output file. If not specified wrapper will take input_filename and extension plb (PL/SQL library)
    e.g WRAP80 INAME = c:\mysql.sql <Enter>
    WRAP80 INAME = c:\mysql <Enter>
    WRAP80 INAME = c:\mysql.src <Enter>
    WRAP80 INAME = c:\mysql.sql ONAME= c:\mysql.plb <Enter>
    WRAP80 INAME = c:\mysql.sql ONAME= c:\wrafile.plb <Enter>
    WRAP80 INAME = c:\mysql.sql ONAME= c:\wrafile.obj <Enter>
    3. Assume after running wrapper,wrpped code in mysql.plb file, you can run this file at sql prompt
    as a normal PL/SQL source code file.
    e.g. SQL> @c:\mysql.plb <Enter>
    Output -
    DOC> * This is test source code file,will be used by SQL Wrapper.
    DOC> * Author - Mr. Adinath R. Kamode
    DOC> * Date - May 30,2001
    DOC>*/
    Procedure created.
    SQL>
    4. Now as procedure is created you can run it using EXEC command.
    e.g. SQL> set serveroutput on
    SQL> Exec pwraptest (7788);
    Output -
    Testing PL/SQL Wrapper
    Employee Name and Salary... SCOTT,9375
    PL/SQL procedure successfully completed.
    Adinath Kamode

  • Parse XML in a java stored proc

    I am trying to parse an xml document in a java stored procedure. Just following my nose, I have developed a stored proc that works fine in development (outside the database using JRE 1.4.1) using the Xerces 2.5 parser. But, after having transferred the xerces xercesImpl.jar, xmlapis.jar, and my implementation class into oracle using loadjava when I call my stored proc the code throws an exception trying to build the document with an error like:
    NoClassDef exception org.apache.xerces.jaxp.DocumentFactoryBuilderImpl
    My Code looks like this:
    import java.io.IOException;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.FactoryConfigurationError;
    import javax.xml.parsers.ParserConfigurationException;
    import org.w3c.dom.Document;
    import org.xml.sax.SAXException;
    InputStream is = getXMLAsInputStream(xml);
    try {
    DocumentBuilderFactory factory =
    DocumentBuilderFactory.newInstance();
    DocumentBuilder builder = factory.newDocumentBuilder();
    Document document = builder.parse( is );
    ... parse the document ....
    catch (FactoryConfigurationError e) {
    // unable to get a document builder factory
    The exception caught is a FactoryConfigurtionError.
    I'm not particularly attached to xerces, I'm really just looking for a way to parse XML inside my java stored proc, so any help to solve my problem, or an alternative suggestion will be greatly appreciated.
    thanks
    Dale

    I looked again and sure enough the xerces implementation classes were missing. I had run a .cmd file containing these two lines, but it looks like only the first one ran...
    loadjava -u ncc/xyz@usd -v -r M:\Database\JavaGeocode\Xerces2_5_0\xml-apis.jar
    loadjava -u ncc/xyz@usd -v -r M:\Database\JavaGeocode\Xerces2_5_0\xercesImpl.jar
    Now I've got everything working fine with Xerces!
    Dale

  • No table names appear (only Stored Procs) when connected to SQLServer w/dbo

    Greetings,
    I'm using Crystal Reports 11, connecting to a databse on SQL Server 2005.
    I am on Windows 7. I also have the problem on Windows Server 2003
    Starting from a blank database, I create my connection through ODBC, and when I expand my database, all I get is a list of stored procedures, no tables.
    I have isolated this to whether I have dbo authority on this particular database or not.
    i.e. I have a user with dbo authority, and they see nothing but stored procedure names, I take dbo authority away, and they see tables, views, stored procs, all as would be expected.
    I have several other SQL Server databases that do not share this issue. Users with dbo authority can see tables as expected.
    I have compared the settings on the databases, and nothing appears to be different (the database with the issue is considerably larger, but I can't see where that would be an issue)
    I will probably also open this issue with Microsoft, to see what they say from their end
    If anyone has seen this before, or would have any suggestions they would be greatly appreciated. Seems very strange that giving MORE authority would be affecting what the user can see.

    Don
    Below are the results from the SQLCON program you suggested. It is returning Table info... (truncated most of it, as I assume it's not all that pertinent)
    SQLConnect Successful
    [Microsoft][ODBC SQL Server Driver][SQL Server]Changed database context to 'eas'.
    [Microsoft][ODBC SQL Server Driver][SQL Server]Changed language setting to us_english.
    ODBC Version is : 03
    SQL Driver Name is : SQLSRV32
    SQL Driver Version is : 06.01.7600
    SQL Driver Supported ODBC Version is : 03
    SQL DBMS Name is : Microsoft SQL Server
    SQL DBMS Version is : 09.00.4035
    SQLTables Successful
    [Row, Database, Owner, Name, Type]
    1  eas,  dbo,  ABC_ACCOUNT,  TABLE,
    2  eas,  dbo,  ABC_BUSINESS_UNIT,  TABLE,
    3  eas,  dbo,  ABC_COMPANY,  TABLE,
    Here is the listing from the TS server (also seeing the issue):
    SQLConnect Successful
    [Microsoft][ODBC SQL Server Driver][SQL Server]Changed database context to 'eas'.
    [Microsoft][ODBC SQL Server Driver][SQL Server]Changed language setting to us_english.
    ODBC Version is : 03
    SQL Driver Name is : SQLSRV32
    SQL Driver Version is : 03.86.3959
    SQL Driver Supported ODBC Version is : 03
    SQL DBMS Name is : Microsoft SQL Server
    SQL DBMS Version is : 09.00.4035
    SQLTables Successful
    [Row, Database, Owner, Name, Type]
    1  eas,  dbo,  ABC_ACCOUNT,  TABLE,
    2  eas,  dbo,  ABC_BUSINESS_UNIT,  TABLE,
    3  eas,  dbo,  ABC_COMPANY,  TABLE,
    I apologize for not answering your previous question, I think the SQL Driver Name will answer that? If not, let me know and I'll get you the information you're looking for. Thank you again for your time on this.

  • Apache TomCat 6.0 - Generate Servlet Source Code

    sup java experts,
    does anyone know how I can view the Servlet source code that's generated by the JSP engine?

    lol...thanks. I know it sounds like a dumb question after having read your answer but I thought TomCat (by default) doesn't save the auto-generated .java files and that i'd have to turn on that feature somehow.
    Anyway, just to wrap up this question for future viewers, it turns out TomCat 6.0 does save the servlet source code generated by the JSP engine. I found mine in
    C:\web\Tomcat 6.0\work\Catalina\localhost\_\org\apache\jsp\marc\test_jsp.java
    Tomcat 6.0 = my installation folder
    marc = a folder I created under the "ROOT" directory (the folder where you put your .jsp files so that the server can find them)
    Thanks again njb7ty!

  • How to modify source code on website

    I would like to view and modify source code for my website on the iphone. I have an app that allows me to FTP the files to my server. But, I don't know how to view code in Safari and be able to modify it. Can you tell me how to do that?
    Thanks!

    See also:
    *Firefox > (Web) Developer > Page Source
    *Tools > Web Developer > Page Source (Ctrl+U)
    *right-click on a web page and select View Page Source in the context menu

  • Stored proc parameters referencing in code

    Hi,
    Quick question ...
    I want my stored proc to accept two parameters : a source table name and a destination table name. The stored proc's goal is to update the destingation table with data in the source table.
    Here is my code :
    CREATE OR REPLACE PROCEDURE UPDATE_FPSYNTHESE (
    sourcetable IN VARCHAR2,
    targettable IN VARCHAR2
    IS
    BEGIN
    INSERT INTO targettable (SELECT * FROM sourcetable WHERE id NOT IN (SELECT id FROM targettable));
    UPDATE targettable SET name = (select name from sourcetable where targettable.id = sourcetable.id);
    END;
    Here's when I want to create it :
    Errors for PROCEDURE UPDATE_FPSYNTHESE:
    LINE/COL ERROR
    10/1 PL/SQL: SQL Statement ignored
    10/40 PL/SQL: ORA-00942: table or view does not exist
    11/1 PL/SQL: SQL Statement ignored
    11/8 PL/SQL: ORA-00942: table or view does not exist
    Warning: Procedure created with compilation errors.
    It doesn't seem to dereference the parameters ...
    what am I doing wrong ?
    Thanks in advance,
    Best regards,
    Steve

    If the source and target tables must be dynamic, you would have to use dynamic SQL
    CREATE OR REPLACE PROCEDURE update_fpsynthese (
      sourcetable IN VARCHAR2,
      targettable IN VARCHAR2 )
    AS
      sqlStmt VARCHAR2(4000);
    BEGIN
      sqlStmt := 'INSERT INTO ' || targettable ||
                 ' (SELECT * ' ||
                 '    FROM ' || sourcetable ||
                 '   WHERE id NOT IN (SELECT id ' ||
                 '                      FROM ' || targettable || '))';
      EXECUTE IMMEDIATE sqlStmt;
    END;Since you are building up strings and executing them, you'll also have to worry about things like SQL injection attacks. You also lose compile-time syntax checking and generally complicate your life from a development & maintenance perspective. Are there really that many tables that you need to do this procedure with?
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

Maybe you are looking for