Show all procedures stored in database

I could just call the .sql file again to create/replace the procedure, but before I do that, I'd like to see what procedures we've created are already stored in the database. What table do I select those from? Thanks...

dba_source

Similar Messages

  • Package Body in the tree doesn't show all procedures

    I am using Sql Developer 1.0.0.14.67 on Win XP Professional,
    DB servers Oracle 9i on both Linux Red HAt and Win XP Professional
    I have troubles with one of packages - in the tree under Package Body SQL Developer doesn't show all procedures of this package body.
    On the right panel all package body source is shown, but in the tree under Package Body it shows names of only procedures up to certain line in the source code - up to line where first Private (not included in Package Spec) procedure code starts.
    BUT, there are more Public procedures in package body below this Private procedure - and all of procedures below first private are not included in the tree under Package Body

    I find this quite annoying. I cannot use the navigation panel on the left to find the location of all functions and procedures in the package body. The 'missing' procedures are listed under the package spec, and double clicking on them takes me to the spec and not the body.
    I'm running v1.2.1.32.13. Is this a know issue and is there a fix planned?

  • Query to show what procedure isn´t assigned to any user!

    Hi all,
    I whant to know if anyone have a query that show all procedures from a specified user that is not granted the execute privilege to anyone!
    Tks,
    Paulo.
    i'm trying this one but don´t know if it is correct:
    select privilege, owner, table_name from dba_tab_privs
    where table_name not in (select object_name from dba_objects
    where object_type = 'PROCEDURE')
    and privilege = 'EXECUTE'
    and owner not in ('SYS','SYSTEM','XDB','DBSNMP','WMSYS')

    You can start to work with Pete Finnigan's script :
    http://www.petefinnigan.com/who_can_access.sql
    Nicolas.

  • Stored procedures in PV database

    I want to create PL/SQL stored procedures in Primavera database(Oracle 8.1.7) using JDBC ODBC bridge driver which further uses system dsn PrimaveraSDK_PE(Installed by standard Primavera client).
    Whenever i try creating it, i get an error message saying syntax error near word procedure.
    Same error occurs when i try creating a table.
    Following are my connection parameters:
    odbcURL = "jdbc:odbc:PrimaveraSDK_PE"
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
              con1 = DriverManager.getConnection(odbcURL, "admin", "admin");
    I can create the procedures using Oracle OCI driver but using that i do not have access to all fields..so errors says..invalid column.
    following are connection parameters:
    String driverName = "oracle.jdbc.driver.OracleDriver";
         Class.forName(driverName);
              con = DriverManager.getConnection("jdbc:oracle:oci8:@sapxi","privuser","privuser");
    Since I cannot see all the fields of database through PL/SQL, I think this approach would not work. To see all the fields of database I must access it using DSN ONLY!!! Even the administrative login is not been able to show me all the fields.This is the way they have designed it....
    So whats wrong in creating the stored procedures in oracle database using JDBC ODBC bridge driver using system DSN????????
    Please help

    Thanks for your reply!!!
    Here is the code!
    import java.sql.*;
    import java.util.*;
    import java.text.*;
    class Try
    static String odbcURL = "jdbc:odbc:PrimaveraSDK_PE";
    static public synchronized Connection getConnection ()
                   throws SQLException, ClassNotFoundException
              Connection con1 = null;
              Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
              con1 = DriverManager.getConnection(odbcURL, "admin", "admin");
              return con1;
    public static void main(String[] args) throws Exception
              try
              Connection con = getConnection();
         String actionQuery = new StringBuffer( "select wbs_id, wbs_concat_name , wbs_short_name , wbs_name from projwbs where wbs_id = 3986").toString();
              ResultSet rs=null;
              PreparedStatement prepStmt = con.prepareStatement(actionQuery);
              rs = prepStmt.executeQuery();
              int wbsID = 0;
              if (rs == null )
                   System.out.println("rs null");
              else
              while(rs.next())
              wbsID = rs.getInt(1);
              System.out.println("rs not null");
              System.out.print(" " + wbsID);
              System.out.print(" " + rs.getString(2));
              System.out.print(" " + rs.getString(3));
              System.out.print(" " + rs.getString(4));
              rs.close();
              prepStmt.close();
    // Creating Stored Procedure....
    Statement stmt = con.createStatement();
    String procedure = "CREATE OR REPLACE PROCEDURE FirstProc AS BEGIN SELECT PROJ_ID FROM PROJECT; END; ";
    stmt.executeUpdate(procedure);
    System.out.println("Proceudre created or updated successfully!");
    stmt.close();
              catch(Exception e)
                   e.printStackTrace();
    and the complete stack trace!!!
    rs not null
    3986 EN EN ABCfghjkl
    java.sql.SQLException: [ATI][OpenRDA ODBC]Syntax error in SQL statement. syntax error line 1 at or after token <OR>.
         at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source)
         at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source)
         at sun.jdbc.odbc.JdbcOdbc.SQLExecDirect(Unknown Source)
         at sun.jdbc.odbc.JdbcOdbcStatement.execute(Unknown Source)
         at sun.jdbc.odbc.JdbcOdbcStatement.executeUpdate(Unknown Source)
         at pack1.Try.main(Try.java:134)
    First two lines show the valid output for the select query..which is absolutely correct. But the create procedure statement is throwing above mentioned errors.
    Also one more important thing, I am not been able to view all the columns of table projwbs(its regarding Primavera SDK) through SQL Plus having administrative rights.
    But I can access all the fields using jdbc odbc bridge driver in Java.
    Is there any specific security or access control????
    so that users would able to access specific columns through JDBC only and not through SQL Plus.
    Please help!!!

  • Is it possible to calling another stored procedure in another database?

    Hello all, I hope you can help me out.
    I need to call another stored procedure in another database? Is it possible?
    I know you can call another stored procedure in the same package:
    Var_SQL :='call SP_Tes (''' || Var_1 || ''',''' || Var_2 ||''')' ;
    EXECUTE IMMEDIATE Var_SQL;
    But how do call it if its in another database? I assume, I'd have to open a new connection to it, then call it...
    Please help me. thanks

    I managed to find my synonym;
    select synonym_name, table_owner, table_name from all_synonyms where synonym_name = 'PKG_EDONWEB70'
    (BTW, its upper case sensitive, I eventually found out)
    But as you said; "anyway, what..."
    1)Crete synonym with the dblink, which is the same DB as the one I'm using:chec
    create public synonym pkg_edonweb70test2 for [email protected]
    Result: ok2)check it exists:
    select synonym_name, table_owner, table_name from all_synonyms where synonym_name = 'PKG_EDONWEB70TEST2'
    Result: ok3)check it runs in sql:
    DECLARE
        P_RETURNVALUE1 number;
    BEGIN
        PKG_EDONWEB70TEST2.SP_TESTSMB_DESTINATION ( P_RETURNVALUE1 );   
        COMMIT;
    END;
    Result: ok4)Add it to the strored procedure that is going to call it
    PROCEDURE sp_testSMB_origin(P_RETURNVALUE1 OUT number) IS
            thissql varchar(1000);      
        BEGIN
        BEGIN
            PKG_EDONWEB70TEST2.SP_TESTSMB_DESTINATION ( P_RETURNVALUE1 );   
            COMMIT;
        END;
        end sp_testSMB_origin;
    Result: FAIL; pls-00201: identifier 'PKG_EDONWEB70TEST2' must be declared

  • How to list all tables/stored procedures used by the report

    All the reports i create are getting data from stored procedure(s). Is there a way to obtaining a listing of all the stored procedures without having to open report by report and check under Database > Set Datasource Location > Properties > Table Name?
    Finding this info it would be extremely valuable, as it would help me to judge the impact of any changes that i might be considering to one or more of the stored proc.
    So far i maintained a manual listing but it is not up-to-date and reliable. I would rather prefer to get an updated listing every time i want to change/drop a stored procedure.
    Thanks so much for your help.
    Rick

    Dell can you be a little bit more specific about the SDK solution. I could ask one of the developers to help me but i need to gather more details.
    I took a look .rpt inspector Pro but it does not do what i need. All i need is the the listing of all the database tables (in my case stored procs) used in my reports. No need to replace or change anything. I need to scan the directory where i have all the reports for the different applications and get report names and table/stored procs used. i can export the txt file to excel and that's all.

  • Grant execute to all custom stored procedures, not quite working

    I would like to grant execute permissions on all custom stored procedures to a group and have tried using this:
    USE myDB
    select 'GRANT EXECUTE ON ['+name+'] TO [mydomain\mydb] '  from sys.objects  where type ='P' and is_ms_shipped = 0
    It seems to execute without error, I see the full list of stored procedures I've created listed like this:
    GRANT EXECUTE ON [procUserInsert] TO [mydomain\mydb]
    However the stored procedure I added earlier, which didn't have any explicit rights set for it, does not show that the execute permission has been granted. Other stored procedures, where I had already granted execute to the group, remain as they were (which
    is expected). I'm viewing permissions via ssms, selecting the new stored procedure, then properties, permissions. If the grant failed there ought to be an error message...I don't get it. This is sql server 2005.

    It seems like you were only printing the statement (SELECT), but it is unclear if you executed them.
    You could try granting EXECUTE permission at either the DB scope or SCHEMA scope. That would grant EXECUTE on all modules (i.e. SPs, UDFs, etc.) at the chosen scope, including modules created in the future. For example:
    -- Grant EXECUTE permission on all DB
    GRANT EXECUTE TO [myDomain\mydbGroup1]
    go
    -- Grant EXECUTE permission on schema mySchema
    GRANT EXECUTE ON SCHEMA::[mySchema] TO [myDomain\mydbGroup2]
    go
    I hope this helps.
    BTW. The way you were creating the dynamic SQL for granting permissions to SPs individually is subject to 2<sup>nd</sup> order injection attacks. You should use quotename(name) in order to escape object names.
    -Raul Garcia
     SQL Server Security
    This posting is provided "AS IS" with no warranties, and confers no rights.

  • SelectOneChoice not showing all values from database

    Hi!
    I have to put a list of values in my select one choice. When I do the query in database, all the values are selected. But, with the same query on JPQL, the select on choice do not show all values in database. Anyone can help me, please?
    P.S.: I am using SelectOneChoice with SelectItems, in JDeveloper 11g
    Code:
    <af:selectOneChoice id="selAction" value="#{row.idCmd}"
    unselectedLabel="&lt;Selecione>">
    <af:forEach var="alertTypeNode"
    items="#{bindings.actionFindAll.iteratorBinding.allRowsInRange}">
    <af:selectItem value="#{alertTypeNode.dataProvider.idCmd}"
    label="#{alertTypeNode.dataProvider.nmCmd}"
    id="si1"/>
    </af:forEach>
    </af:selectOneChoice>

    In your page binding check the rangesize setting for the executable you use - set it to -1.

  • HT203167 I have just downloaded the latest itunes version (11.0.1). All my data cannot now be located, though the library is showing all the correct content.The data is stored on an external hard drive. How do I tell the library where to find it's data?

    I have just downloaded the latest itunes version (11.0.1). All my data cannot now be located, though the library is showing all the correct content.The data is stored on an external hard drive. How do I tell the library where to find it's data?

    The iTunes application should be installed on the system drive. You may need to repair iTunes to fix that error regarding a missing .exe.
    To organize your library properly see Make a split library portable.
    If you don't have a working version of the library that can be transformed into a portable shape I have tools and techniques that can repair the broken links.
    tt2

  • Dreamweaver CS5 not showing all recordsets in databases/bindings/server behaviors windows

    Dreamweaver CS5 is not showing all recordsets created on a page in the databases/bindings/server behaviors windows.
    I'm on XP, DW version 11.5 build 5344.
    Any idea of how I fix that?
    Thanks,
    Betty

    Dreamweaver CS5 is not showing all recordsets created on a page in the databases/bindings/server behaviors windows.
    I'm on XP, DW version 11.5 build 5344.
    Any idea of how I fix that?
    Thanks,
    Betty

  • How to call MSSQL stored procedure from oracle database

    MSSQL and Oracle databases are linked thru ODBC link using Oracle HSODBC.
    I can query MSSQL table or view from Oracle Database using standard notation for acessing remote objects schema.object@dblink_name...
    Can anybody give me syntax for calling MSSQL stored procedure thru ODBC database link?
    I tried syntax exec schema.stored_procedure@dblink_name but it doesn't work...i'm getting schema.stored_procedure must be declared error...
    Tnx,in advance!
    Dejan Botica

    Oracle database 10gR2.
    MSSQL2000 database.
    For example query:
    select * from dbo.Tbl_Test@kron@dw_jamnica; works fine...
    ...while for example exec dbo.Test@kron@dw_jamnica;
    reports error:
    ORA-06550: line 1, column 7:
    PLS-00201: identifier 'DBO.TEST@KRON@DW_JAMNICA' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    Table Tbl_Test and procedure Test exists in MSSQL instance.
    Regards,
    Dejan

  • EMC Does Not Show All Databases Copies Information on DAG - Exchange 2010 SP2

    Hi guys,
    Really need your help here, suddenly my customer complain that they cant see any information on database copies on their Active Copy DAG Exchange server, for another DAG members, the database copies information is visible. After do some readings, I found
    this related to Exchange 2010 SP1 known issue. 
    http://workinghardinit.wordpress.com/2010/09/13/emc-does-not-show-all-database-copies-after-upgrade-to-exchange-2010-sp1-still-investigating/
    But, for my environment, there is Exchange 2010 SP2. I have no idea on this issue since there is no error log thrown out from the event viewer. I already try to restart the server itself and the Microsoft Information services but no luck.

    Hi,
    Based on the description, your customers could see passive database copy information, but they couldn’t view the detail information such as state: Healthy in EMC.
    When did this issue begin?
    Please restart the AD topology service to check result.
    Since we have the information correctly on Exchange shell, please try to clear EMC cache and then open console to check if you can see database copy in EMC.
    Best regards,
    If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Belinda Ma
    TechNet Community Support

  • Java web service to invoke a stored procedure in the database

    Hi
    Does anybody have a example Java web srevice to invoke a stored procedure in the database
    regards
    Edited by: hrishy on May 20, 2011 12:11 AM

    hrishy wrote:
    Thanks i have modified the title so its easy to comprehendWrite the two parts mentioned above and post if you get problems with your code.
    First write code that calls the stored procedure and test that to make sure that it works.
    Then write a simple webservice and test it out to make sure it works. The integration should be trivial after that.

  • Java Stored Procedure in one database connecting to muntiple databases.

    Hello,
    I created a Java Stored Procedure in one database(Oracle10g) and successfully open a connection to another database(Oracle10g) using Thin JDBC Driver. I want to actually transfer CLOB data from one DB to another DB. I am concern that by opening a connection another database in Java Stored Procedure, might interfere with oracle and destabilize the instance at some point. Oracle JDBC FAQ (Link: http://www.oracle.com/technology/tech/java/sqlj_jdbc/htdocs/jdbc_faq.htm#34_13) stated that Yes it could be done but then mentioned the workaround.(if it could be done why do we need a workaround!!!)
    I would like to confirm whether connecting to multiple DB using JDBC Thin Driver in a Java Stored Procedure is supported by Oracle10g or not and whether it has any known issue with it.
    Thanks in Advance!
    Edited by: user649261 on Sep 16, 2008 8:05 PM

    hrishy wrote:
    Thanks i have modified the title so its easy to comprehendWrite the two parts mentioned above and post if you get problems with your code.
    First write code that calls the stored procedure and test that to make sure that it works.
    Then write a simple webservice and test it out to make sure it works. The integration should be trivial after that.

  • How a Procedure is stored in database in what format

    Hi
    How a Procedure/function/packages r stored in database in what format
    regds
    Chandu

    It is most likely in p-code. But in the database dictionary, you can query them out in text if not encrypted, if encrypted, then you see the human unreadable characters format.

Maybe you are looking for

  • Need help repairing Driver - pic included.

    Hey guys, i have been trying to get boot camp to work on my macbook for ages. First i got it to work, but then when i used windows, it wouldn't recognize my wireless in my macbook. Anyways, to make a long story short, i used the boot camp assistant t

  • How to modify Adapter parameters in PI 7.1 EHP1 ? using NWA

    Hi, Please advise me how to modify adapter service parameters in PI 7.1 EHP1 using nwa ? in the previous version 3.0 and 7.0, i can use visual admin ---> cluser - > services and i can find all the adapter service and modify the parameters. Thank You

  • No POWL object types are assigned to you. Please inform your system admin

    Hi experts, We are on SRM 7.0 and ECC 6.0. We are using netweaver 7.0 (SP7) for our portal instance. SSO, UWL etc have been configured in the Portal. Now when the user logs in to create a shopping cart and clicks on the Employee Self Service link, he

  • Aggregation based on dimension

    Hi all, Can anyone help me in knowing the difference between normal aggregation set for a measure irrespective of dimensions and different aggregations set for the same measure based on dimension...

  • Retrieve sort priority for a navigation item

    Is there any way to dynamically retrieve the sort priority of a menu item within a navigation when the navigation is being displayed?  The navigation is returned as a 2D array, and displayed, but I would like to find the sort priority of each top-lev