How to view list of all constraints,triggers,procedures ...etc

hi,
how to view a list of all the available constraints, triggers, procedures, functions, packages in a database.And how to view its definition ?

user12222356 wrote:
And how to view its definition ?If by definition you mean DDL to create it, use DBMS_METADATA:
SELECT  DBMS_METADATA.GET_DDL(object_type,object_name,owner)
  FROM  DBA_OBJECTS
  WHERE OBJECT_TYPE IN ('TRIGGER','PROCEDURE','FUNCTION' )
/For example:
SET LONG 10000
SELECT  DBMS_METADATA.GET_DDL(object_type,object_name,owner)
  FROM  DBA_OBJECTS
  WHERE OBJECT_TYPE IN ('TRIGGER','PROCEDURE','FUNCTION' )
DBMS_METADATA.GET_DDL(OBJECT_TYPE,OBJECT_NAME,OWNER)
  CREATE OR REPLACE PROCEDURE "SYS"."SUBPTXT2" (name varchar2, subname varchar2,
usr varchar2,
                             dbname varchar2, dbowner varchar2,
                             txt in out varchar2) is
status diutil.ub4;
begin -- main
    diutil.subptxt(name, subname, usr, dbname, dbowner, txt, status);
    if (status <> diutil.s_ok) then
        if (status = diutil.s_subpNotFound) then
DBMS_METADATA.GET_DDL(OBJECT_TYPE,OBJECT_NAME,OWNER)
            txt := '$$$ s_subpNotFound';
        elsif (status = diutil.s_stubTooLong) then
            txt := '$$$ s_stubTooLong';
        elsif (status = diutil.s_logic) then
            txt := '$$$ s_logic';
        elsif (status = diutil.s_notInPackage) then
            txt := '$$$ s_notInPackage';
        else txt := '$$$ s_other';
        end if;
    end if;
end subptxt2;
DBMS_METADATA.GET_DDL(OBJECT_TYPE,OBJECT_NAME,OWNER)
SQL> SY.

Similar Messages

  • How to view list of all system exceptions from standard package?

    Hello,
    How to view list of all system exceptions from standard package?
    Regards
    Krishna

    Just for fun:
    SQL> conn sys/****** as sysdba
    Verbonden.
    SQL> select cast(trim(substr(text,instr(text,'(')+1,instr(text,',')-instr(text,'(')-1)) as varchar2(30)) exception_name
      2       , to_number(replace(substr(text,instr(text,',')+1,instr(text,')')-instr(text,',')-1),'''')) error_number
      3    from user_source
      4   where text like '%pragma EXCEPTION_INIT%'
      5     and type = 'PACKAGE'
      6     and name = 'STANDARD'
      7   order by exception_name
      8  /
    EXCEPTION_NAME                 ERROR_NUMBER
    ACCESS_INTO_NULL                      -6530
    CASE_NOT_FOUND                        -6592
    COLLECTION_IS_NULL                    -6531
    CURSOR_ALREADY_OPEN                   -6511
    DUP_VAL_ON_INDEX                         -1
    INVALID_CURSOR                        -1001
    INVALID_NUMBER                        -1722
    INVALID_OBJECT_NAME                  -44002
    INVALID_QUALIFIED_SQL_NAME           -44004
    INVALID_SCHEMA_NAME                  -44001
    INVALID_SQL_NAME                     -44003
    LOGIN_DENIED                          -1017
    NO_DATA_FOUND                           100
    NO_DATA_NEEDED                        -6548
    NOT_LOGGED_ON                         -1012
    PROGRAM_ERROR                         -6501
    ROWTYPE_MISMATCH                      -6504
    SELF_IS_NULL                         -30625
    STORAGE_ERROR                         -6500
    SUBSCRIPT_BEYOND_COUNT                -6533
    SUBSCRIPT_OUTSIDE_LIMIT               -6532
    TIMEOUT_ON_RESOURCE                     -51
    TOO_MANY_ROWS                         -1422
    USERENV_COMMITSCN_ERROR               -1725
    VALUE_ERROR                           -6502
    ZERO_DIVIDE                           -1476
    26 rijen zijn geselecteerd.Regards,
    Rob.

  • SAP-HR : How to view list of all employees reporting to a manager

    Hi friends,
    I need to get the list of all the employee reporting to a particular manager. How do i do that?
    Please help!!

    go to the org assignment of the manager pernr and look at lla EE's reporting to him
    else go to PPOSE and have a look at the same.
    reward points if issue resolved

  • Viewing different user's constraints, triggers, synonyms etc.

    I have a doubt as to how to view a different user's constraints, triggers, synonyms. If, we have to see a different user's tables, we use the syntax,
    select * from username.table_name
    provided we have select rights on that table of the user. Similarly, do we need view rights on the other user's indexes.
    Please help in solving my doubt as i need it resolved urgently.

    do we need view rights on the other user's indexes.No, once the appropriate access to the concerned object has been granted, any indexes on that object (if appropriate) will automatically be used by the database.
    Once you have access to the other users tables, the indexes on that table automatically are visible to you.
    You could see the objects using ALL_OBJECTS or the ALL_INDEXES dictionary view.

  • How to view text of all triggers?

    How to view text of all triggers?
    I tried,
    sqlplus "/ as sysdba"
    SQL> Select Description, Trigger_Body from all_triggers;
    I see only one trigger but there are more than 500 triggers.

    Perhaps you want to query DBA_TRIGGERS instead of ALL_TRIGGERS.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/statviews_4162.htm#sthref1922
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/statviews_2107.htm#sthref1297

  • How to view what are all programs maped with the event....

    I am new to this events concept - could you please say
    in SM64 we can give Event....
    <b>How to view what are all programs maped with the event..</b>
    Thanks in advance.

    Hi Sam,
    See these links:
    How-to trigger a process chain using ABAP?
    Re: scheduling process chain 3 specific times a day
    NOTE: If you want to trigger the process chain from R/3, there are many examples in this forum. However, since the search function is not working now, I suggest you look at OSS Note 135637. This will show you how to do it also.
    Hope this helps.
    concerning to sm64 ..
    Triggering events manually ...
    Events let you start background jobs when particular changes in the R/3 System take place. When an event occurs, the background processing system starts all jobs that were scheduled to wait for that event.
    example : JOB_OPEN to create a background job..
    When scheduling a background job, you can specify it to start "after event".
    If you do so, you'll have to create an event in SM62.
    If a job is scheduled after event event and you trigger the event with SM64, the job will start.
    Events can be raised by external systems in SAP by sending a command to a SAP application server. You can also raise event in any program using function mosule BP_EVENT_RAISE.
    Reward if helpful.
    Regards,
    Harini.S

  • How to read list of all files in folder on application server?

    How to read list of all files in folder on application server?

    Hi,
    First get the files in application server using the following function module.
        CALL FUNCTION 'RZL_READ_DIR_LOCAL'
          EXPORTING
            name     = loc_fdir
          TABLES
            file_tbl = int_filedir.
    Here loc_fdir contains the application server path.
    int_filedir contains all the file names in that particular path.
    Now loop at int_filedir.
    OPEN DATASET int_filedir-name FOR INPUT IN TEXT MODE ENCODING  DEFAULT MESSAGE wf_mess.
    MESSAGE wf_mess.
        IF sy-subrc = 0.
          DO.
            READ DATASET pa_sfile INTO wf_string.
            IF sy-subrc <> 0.
              EXIT.
    endif.
    close datset int_filedir-name.
    endloop.

  • How to view list of contracts for ship - to - parties

    Hi,
    How to view list of contracts for ship - to - parties
    LM

    Dear LM,
    This is possible through VA45 transaction,but as per the standard you can get sold to party wise .
    If you want ship to party wise then you need to do these configuration settings to add SH partner function to selection list then try
    Go through IMG path
    SPRO>IMG>Sales and Distribution>Sales>Lists-->Set Updating Of Partner Index here you go for new entries then maintain SH -Ship to party partner function for Transaction group 4-contract then save the changes.
    Now go to VA45 transaction then click on partner functions push button here you enter partner function SH then give the other details like ship to paty number ,material and date then execute now system will give the contract document list for that ship to party.
    I hope this will help you,
    Regards,
    Murali.

  • How to view code of all the custom and complex folder  folder

    How to view code of all the custom and complex folder folder in EUL?

    You do not need to run all the reports.
    Also i am not sure about why do you need to see the code of every thing, i assume you will not get much from it.
    If there is a certain folder you are interested in then this is the way.
    Any way there is no way to get the code of the complex folders since they are logical join of other folders.
    to get the code of the custom folder s you can use:
    select * from eul_us.eul5_objs t
    WHERE t.obj_type='CUO'
    AND t.obj_object_sql1 IS NOT NULL;
    you should look (and concatenate) at the obj_object_sql1,obj_object_sql2.....
    Tamir

  • Better way how to get list of all classpath URLs in runtime

    Hello everyone,
    How to get list of all classpath items (URLs) in runtime from Java code?
    I am aware of solution based on System.getProperty("java.class.path"). Is there any alternative?
    This solution has several drawbacks. You have to parse String output. And I not sure if it contains ALL resources (JARs, class directories) loaded by ClassLoader or just reflects -cp arguments.
    Does system property "java.class.path" contain ALL loaded JARs?
    Does it contain items (JARs, class directories) loaded by bootstrap classpath?
    What about JARs loaded in runtime?
    Is the separator ":" always same on all operation systems?
    I was looking for some Java API based solution, method like List<URL> getAllClasspathItems()
    But there is nothing like this in ClassLoader, Class, Runtime or System classes.
    For curious, here is code I use.
    String classpath = System.getProperty("java.class.path");
    StringTokenizer st = new StringTokenizer(classpath, ":");
    while (st.hasMoreElements()) {
         System.out.println(st.nextElement());
    }

    For curious, here are output prints for all 3 methods:
    1) parsing system property
    2) tschodt
    3) overcast SystemClassLoader to URLClassLoader
    /home/espinosa/workspace/jboss_embedded_test1/target/test-classes
    /home/espinosa/workspace/jboss_embedded_test1/target/classes
    /opt/javalibs/javax/ejb/ejb-api/3.0/ejb-api-3.0.jar
    /opt/javalibs/javax/jms/jms/1.1/jms-1.1.jar
    /opt/javalibs/javax/annotation/jsr250-api/1.0/jsr250-api-1.0.jar
    package com.sun.org.apache.xerces.internal.impl.validation, Java Platform API Specification, version 1.6
    package com.thoughtworks.qdox.directorywalker
    package com.sun.org.apache.xerces.internal.parsers, Java Platform API Specification, version 1.6
    package java.util.jar, Java Platform API Specification, version 1.6
    package org.testng.internal.thread
    package com.sun.org.apache.xerces.internal.util, Java Platform API Specification, version 1.6
    package java.net, Java Platform API Specification, version 1.6
    package sun.reflect.misc, Java Platform API Specification, version 1.6
    package esp.ejb.samples1.test
    package sun.security.provider, Java Platform API Specification, version 1.
    file:/home/espinosa/workspace/jboss_embedded_test1/target/test-classes/
    file:/home/espinosa/workspace/jboss_embedded_test1/target/classes/
    file:/opt/javalibs/javax/ejb/ejb-api/3.0/ejb-api-3.0.jar
    file:/opt/javalibs/javax/jms/jms/1.1/jms-1.1.jar
    file:/opt/javalibs/javax/annotation/jsr250-api/1.0/jsr250-api-1.0.jar
    ...Interestingly, method 1 and 3 gives the same list, same order, same count, just format of item is a little bit different. The order is same as in Eclipse .classpath file.
    Method 2 (tschodt) give significantly more items! rougly 3x! Different order (somewhat random it seems to me). Some items contain extra information, like version and string "Java Platform API Specification".
    It prints not absolute paths but logical Java names.

  • Hi i am using oracle 10g how to view the content of the stored procedure or trigger ?

    Hi i am using oracle 10g .How to edit  the content of the stored procedure or trigger ?

    jklopkjl wrote:
    Hi i am using oracle 10g .How to view the content of the stored procedure or trigger ?
    query ALL_SOURCE
    SQL> desc all_source
    Name                                      Null?    Type
    OWNER                                              VARCHAR2(30)
    NAME                                               VARCHAR2(30)
    TYPE                                               VARCHAR2(12)
    LINE                                               NUMBER
    TEXT                                               VARCHAR2(4000)

  • HT4528 My iphone is telling me I need to do a system restore and wont restart. Screen shows itunes logo and that is it. If I do this how can i avoid losing all my pictures videos etc?

    my i phone is telling me I need to do a restore. Screen shows itunes logo and thats it, even after turning off and on again.
    if  do this how can I avoid losing all my pictures videos etc?

    Pictures/Videos in your camera roll? If so, & not backed up or imported to your computer, they are gone. There's no supported way to recover them now.

  • TS3999 how to see list of all scheduled events in calendar

    Every now and then I can't seem to find the list of all events scheduled on calendar.  Only those for a particular day. How see all events?

    I understand exactly what edwardfromma is talking about. He wants a simple chronological list of ALL events in calendar NOT in the context of the calendar view. This is a very useful feature that almost every other calendar app has. Usability of Apple IOS seems to be degrading.

  • How to find list of all open windows?

    Hi,
    I was wondering how to find a list of all open windows on the
    desktop. I have been able to use this to find the number of open
    windows in the AIR application:
    var windows:Array =
    NativeApplication.nativeApplication.openedWindows;
    test.text = String(windows.length);
    I cant seem to get the list of all open windows on the
    desktop though or the names of the windows.
    Any pointers would be appreciated.
    Thanks!

    Thanks anirudhs. I had a feeling this was the case. It just
    seemed odd that the built-in function calls like orderToBack() and
    orderToFront actually put the AIR windows behind or in front of all
    the windows on the desktop. Somehow AIR is finding the list of open
    windows on the desktop. I just didnt know if there was some way to
    access AIR's way of finding the windows. Guess it must be a
    protected function. Thanks!

  • How to find list of all iMessage devices

    I have been an apple user for many years and recently had a disturbing occurrence.  I stopped receiving some of my texts messages for the past month or so and when I searched all of the devices in my household, I was shocked to find that my daughter's iPhone was receiving them because the senders were using iMessage (which I don't use).  I was able to repair that situation but my bigger question is whether I can find a list of all devices using my account info to log into iMessage and remove them so that I receive every text sent to my iPhone.

    Hi mitch236,
    I see that you wish to control your iCloud account so that your iMessages and text messages only go to the devices that you desire. You will want to review the information in this article, which can show you where to find iMessage information on your devices and how to adjust your settings accordingly:
    iOS and OS X: Link your phone number and Apple ID for use with FaceTime and iMessage - Apple Support
    http://support.apple.com/en-is/HT201349
    Take care, and thanks for visiting the Apple Support Communities.
    Cheers,
    Braden

Maybe you are looking for

  • Playback problems with external FLV's

    Hi everyone, I am working on a site that loads all of the pages into a holder as swf's. Everything in the site works well, except that the first page takes a little longer to load than I wish it would. I want to find a good pre-loader but, for now, I

  • Two keyboards problem

    I'm frustrated: I followed the instructions in the printed manual p 91 when trying to connect my two keyboards. The "bottom one" functions perfectly on MIDI ch 1 - giving a piano sound. The second one doesn't give any sound - Mainstage's MIDI informa

  • My iPhone 4 calender has no invite button on it HELP.

    My iPhone 4 calender app has no field for adding an invite to an event.  I have looked at my friends phone as its same make 4 and she has the app on her's. Or is there a calender app to use? Please don't send "settings - icloud - calendar - ON." as i

  • Policy Agent 2.2 with Tomcat connector (isapi_redirect.dll)?

    Dear All, We have installed Policy agent 2.2 for IIS6 to enable SSO with SUN Access Manager 7.1. Policy agent 2.2 was installed in IIS6 as wild card application mapping extension. Our IIS6 also contains Apache tomcat connector (isapi_redirect.dll) as

  • 5800 is it a touch or smash phone?

    have been using 5800 since jan 09-but after the latest software update the phone has turned from a touch to smash device-one has to punch and punch hard for the touchscreen to work and then too when u press one key the other gets activated-i m fed up