Is there any function that returns the latest DDL statement

can anyone tell me if there is any FUNCTION that returns latest DDL statement performed in a schema.
OR
if there is any TABLE that will be populated with latest
DDL statement in schema.
THANK YOU.

The table all_objects (and/or dba_objects) contains a column called last_ddl_time. Thus, a query like
scott@jcave > SELECT max(last_ddl_time)
  2  FROM all_objects
  3 WHERE owner = 'SCOTT';
MAX(LAST_DDL_TI
28-NOV-03will tell you the last time any object owned by SCOTT had DDL issued against it.
Justin
Distributed Database Consulting, Inc.
www.ddbcinc.com/askDDBC

Similar Messages

  • Is there any function that output address by inputing the address no.?

    Is there any function that accept an address number as input paramenter and return an address so that I don't need to build it myself?
    Thanks!

    FU ADDRESS_INTO_PRINTFORM        ADDRESS_TYPE
    Text
    Address type: 1,2,3 or ' '(default)
    Description
    There are three address types:
    Address type '1': 'Normal' address (company or organization); the address structure used in most SAP applications as 'Address'.
    Address type '2': Address of a person
    Address type '3': Work address, usually the address of a contact person in a company
    The default address type SPACE is treated as type '1' and is required for the upwards compatibility of the function module.
    The interface parameters ADRSWA_IN and ADRSWA_OUT are only used in address type SPACE.
    The other address types use:
    ADDRESS_1 or ADDRESS_2 or ADDRESS_3 for the attributes, and
    SENDER_COUNTRY, RECEIVER_LANGUAGE, NUMBER_OF_LINES, STREET_HAS_PRIORITY and LINE_PRIORITY for control.
    The parameters COUNTRY_NAME_IN_RECEIVER_LANGU, LANGUAGE_FOR_COUNTRY_NAME and NO_UPPER_CASE_FOR_CITY are address type-independent.
    The address attributes can be read directly instead of being passed in the structures ADDRESS1/2/3, if the address is in the Central Address Management tables.
    The Business Address Services keys must be passed instead of the structures ADDRESS1/2/3:
    Address type 1: ADDRESS_NUMBER
    Address type 2: ADDRESS_NUMBER and PERSON_NUMBER
    Address type 3: ADDRESS_NUMBER and PERSON_NUMBER
    The following parameters are used (Import) or filled (Export):
    Address type 1
    Import parameters:
    ADDRESS_1
    ADDRESS_TYPE
    ADDRESS_NUMBER
    SENDER_COUNTRY
    RECEIVER_LANGUAGE
    NUMBER_OF_LINES
    STREET_HAS_PRIORITY
    LINE_PRIORITY
    COUNTRY_NAME_IN_RECEIVER_LANGU
    LANGUAGE_FOR_COUNTRY_NAME
    NO_UPPER_CASE_FOR_CITY
    Export parameters:
    ADDRESS_PRINTFORM
    ADDRESS_SHORT_FORM
    ADDRESS_SHORT_FORM_S
    ADDRESS_DATA_CARRIER
    ADDRESS_DATA_CARRIER_0
    NUMBER_OF_USED_LINES
    NAME_IS_EMPTY
    ADDRESS_NOT_FOUND
    ADDRESS_PRINTFORM_TABLE
    Address type 2
    Import parameters:
    ADDRESS_2
    ADDRESS_TYPE
    ADDRESS_NUMBER und PERSON_NUMBER
    SENDER_COUNTRY
    RECEIVER_LANGUAGE
    NUMBER_OF_LINES
    STREET_HAS_PRIORITY
    LINE_PRIORITY
    COUNTRY_NAME_IN_RECEIVER_LANGU
    LANGUAGE_FOR_COUNTRY_NAME
    NO_UPPER_CASE_FOR_CITY
    Export parameters:
    ADDRESS_PRINTFORM
    ADDRESS_SHORT_FORM
    ADDRESS_SHORT_FORM_S
    ADDRESS_DATA_CARRIER
    ADDRESS_DATA_CARRIER_0
    NUMBER_OF_USED_LINES
    NAME_IS_EMPTY
    ADDRESS_NOT_FOUND
    ADDRESS_PRINTFORM_TABLE
    Address type 3
    Import parameters:
    ADDRESS_3
    ADDRESS_TYPE
    ADDRESS_NUMBER und PERSON_NUMBER
    SENDER_COUNTRY
    RECEIVER_LANGUAGE
    NUMBER_OF_LINES
    STREET_HAS_PRIORITY
    LINE_PRIORITY
    COUNTRY_NAME_IN_RECEIVER_LANGU
    LANGUAGE_FOR_COUNTRY_NAME
    NO_UPPER_CASE_FOR_CITY
    Export parameters:
    ADDRESS_PRINTFORM
    ADDRESS_SHORT_FORM
    ADDRESS_SHORT_FORM_S
    ADDRESS_DATA_CARRIER
    ADDRESS_DATA_CARRIER_0
    NUMBER_OF_USED_LINES
    NAME_IS_EMPTY
    ADDRESS_NOT_FOUND
    ADDRESS_PRINTFORM_TABLE
    Address type SPACE (default value; the previous interface up to Release 3.0B):
    Import parameters:
    ADRSWA_IN
    ADDRESS_TYPE
    ADDRESS_NUMBER (only for special cases such as Japan)
    COUNTRY_NAME_IN_RECEIVER_LANGU
    LANGUAGE_FOR_COUNTRY_NAME
    NO_UPPER_CASE_FOR_CITY
    Export parameters:
    ADRSWA_OUT
    NAME_IS_EMPTY
    ADDRESS_PRINTFORM_TABLE
    The following parameters correspond to each other (on the left the individual parameter - on the right the fields in the old interface structures ADRSWA_IN and ADRSWA_OUT):
    ADDRESS_NUMBER                   -   no equivalent
    PERSON_NUMBER                    -   no equivalent
    SENDER_COUNTRY                   -   ADRSWA_IN-INLND
    RECEIVER_LANGUAGE               -   ADRSWA_IN-SPRAS
    NUMBER_OF_LINES                 -   ADRSWA_IN-ANZZL
    STREET_HAS_PRIORITY             -   ADRSWA_IN-WAREN
    LINE_PRIORITY                    -   ADRSWA_IN-PRIOR
    COUNTRY_NAME_IN_RECEIVER_LANGU  -   no equivalent
    LANGUAGE_FOR_COUNTRY_NAME       -   no equivalent
    NO_UPPER_CASE_FOR_CITY          -   no equivalent
    ADDRESS_SHORT_FORM              -   ADRSWA_OUT-LINEK
    ADDRESS_SHORT_FORM_S            -   no equivalent
    ADDRESS_DATA_CARRIER            -   ADRSWA_OUT-LINED
    ADDRESS_DATA_CARRIER_0          -   ADRSWA_OUT-LINED0
    NUMBER_OF_USED_LINES            -   ADRSWA_OUT-ANZZL
    NAME_IS_EMPTY                    -   no equivalent
    ADDRESS_NOT_FOUND               -   no equivalent
    ADDRESS_PRINTFORM_TABLE         -   no equivalent
    The parameters are described in the parameter documentation.

  • Is there any function to get the name of the days?

    Hi,
    I'm using oracle 10.2.0.1.0
    Is there any function to get the days of the week?
    like i need to get sunday,monday,tuesday.....saturday.
    I know i can use union and select the name from dual one by one.
    But just want to know whether there is any other way.
    I need to show the 7 days in a poplist in my form, thats the requirement
    Thanks

    David_Aldridge wrote:
    BluShadow wrote:
    Note: you may want to include "fm" in the format mask, otherwise the name of the day is padded with spaces:
    SQL> ed
    Wrote file afiedt.buf
    1  select replace(to_char(dt,'Day'),' ','*') as fmt1
    2        ,length(to_char(dt,'Day')) as length_fmt1
    3        ,replace(to_char(dt,'fmDay'),' ','*') as fmt2
    4        ,length(to_char(dt,'fmDay')) as length_fmt2
    5  from (select TRUNC(SYSDATE ,'DAY')+Level-1 dt
    6        from   dual
    7        connect by Level<8
    8*      )
    SQL> /
    FMT1      LENGTH_FMT1 FMT2      LENGTH_FMT2
    Monday***           9 Monday              6
    Tuesday**           9 Tuesday             7
    Wednesday           9 Wednesday           9
    Thursday*           9 Thursday            8
    Friday***           9 Friday              6
    Saturday*           9 Saturday            8
    Sunday***           9 Sunday              6
    7 rows selected.
    SQL>
    I think you should use a pl/sql function for this.
    Nah ... just joking.
    I'd be tempted to just use a union all statement to return the seven literals. People will look at it and know exactly what it does.Yeah, agreed, I was just demonstrating that the format mask of a to_char(..., 'Day') pads with spaces, which seems to have been missed in the above answers. ;)

  • Looking for a function that returns the currently opened document type

    Dear SAP gurus
    I have a user exit for transaction VA02. In VA02, when I click on button (Item details-configuration),
    it launches a URL in a browser. I am asked to add to the URL, values like Document Type, Document Number
    and Line Item Number.
    I can get Document Number and Line Item Number from the presently opened Sales Document by using the standard Function 'CUCB_GET_OWNER_OF_CFG'.
    However, I am not able get the value of Document Type. Is there any function that will give me
    the value of the Document type of the present document that is open.
    Any feedback/Suggestion will be highly appreciated.
    Thanks
    Ram

    If you're in a VA02 user exit, the document type should be in VBAK-AUART, if I remember the field name correctly.  I would think that ANYWHERE in VA02, that field will be available to you.
    If you want the text of the document type, forward navigate from vbak-auart data element to the domain and look at the values...there'll be a config (T) table (and you may need to add T to the end to get the associated text table) that describes the document type in your system's language,  like:
    E OR   Order
    or something like that...  Sorry, in my installation, we don't use the logistics modules, so I'm writing from memory.

  • Is there any function that....

    Hello friends
          I wrote a ABAP program to print the PL (Part List). But while printing it jst takes 25 lines in the ckt refence else it don't print it. This is becoz of the reason that while printing it takes 1st ckt refence then 20 blank spaces then next ckt and so on. and it prints maximum of 500 characters. So if we have more than 25 lines we face problem. Is there any function that bypasses these 20 blank spaces and only consider the ckt refences. Plz help me in this. If possible sent me the code for it.
    Thnx
    Rakhi

    The table all_objects (and/or dba_objects) contains a column called last_ddl_time. Thus, a query like
    scott@jcave > SELECT max(last_ddl_time)
      2  FROM all_objects
      3 WHERE owner = 'SCOTT';
    MAX(LAST_DDL_TI
    28-NOV-03will tell you the last time any object owned by SCOTT had DDL issued against it.
    Justin
    Distributed Database Consulting, Inc.
    www.ddbcinc.com/askDDBC

  • Function that returns the date/time ?

    We would like to make a validation in the Activity status based on the activity End Time.
    Pls... is there a function that returns something that I could compare with: "8/6/2009 01:00 PM" ?
    I know of Today but I understand that today() returns just the day (no time).
    Txs.
    Antonio

    Hi Antonio,
    You can try using the function -: Timestamp()
    To quote the CRM On Demand help files...
    "+The Timestamp function in Expression Builder returns the server date and time converted to the current user's time zone setting. For example, if the current user's time zone setting is set to Eastern Daylight Time (EDT) -0400 UTC, the Timestamp function converts the server time to EDT. The TimeStamp function performs UTC (universal time code) conversion. NOTE: Arithmetic operations (for example, add or subtract) are not supported with the Timestamp() function.+"
    Hope this helps.
    Regards,
    Cameron

  • Is there any report to see the Latest GR receipts materials wise

    Dear Experts,
                              is there any report to see the Latest GR receipts materials wise , thanks in advance
    regards
    rajakarthik

    transaction MC.A
    Execute it.
    if you see the result, then press F6 to add the date fields to the screen.

  • Is there any function to change the width of forms'graphic ?

    Hi All,
    Is there any function to change the width of forms'graphic ?
    May be like set***property.
    Thanks,
    ke xiong

    No. Graphics cannot be handled at runtime.
    Francois

  • Is there any function to change the width of froms'graphic ?

    Hi All,
    Is there any function to change the width of froms'graphic ?
    May be like set***property.
    Thanks,
    ke xiong

    Hi;
    For your issue i suggest close your thread here as changing thread status to answered and move it to Forum Home » Application Development in PL/SQL » Forms which you can get more quick response
    Regard
    Helios

  • Is there any function module getting the cpu type?

    Is there any function module getting the cpu type?

    I guess the database server...
    I would like to get the SAP system cpu type as done in transaction st06 under system information.
    Thanks.

  • Are there any functional differences between the trial and the paid version?

    Are there any functional differences between the trial and the paid version for Labview 2009?  Thank you.
    Solved!
    Go to Solution.

    This outlines the limitations of the eval version of Labview: Limitations of the LabVIEW Evaluation Version
    Cheers, 
    Misha

  • IS THERE A FUNCTION TO RETURN THE NUMBER OF MONTHS OR DAYS?

    I know that you can do a months between function between 2 dates divided by 12 and get years but is there a function that can return the number of months between 2 dates or the number of days between 2 dates in a select statement for a report? These 2 dates are entered in an Oracle forms.
    I have 2 dates.
    BEG_SVC_DT 30-JUL-1995 DATE FORMAT
    END_SVC_DT 981007 VARCHAR2 FORMAT Positions 5 and 6 are the days.
    I must subtract BEG_SVC_DT from END_SVC_DT.
    In PLSQL I add 31 to 07 and get 38. I subtract 30 from 38 and get 8.
    or I have 2 dates
    BEG_SVC_DT 10-JAN-2003 DATE FORMAT
    END_SVC_DT 050924 VARCHAR2 FORMAT Positions 5 and 6 are the days.
    I must subtract BEG_SVC_DT from END_SVC_DT.
    In PLSQL I subtract 10 from 24 and get 14.
    In both scenarios the end_dt field must be VARCHAR2 because the user has to enter the word 'PRESENT' . Is there a function in SQL that would compute the
    number of days between 2 dates?
    Is there a function to get the number of months between 2 dates?
    I have 2 dates.
    BEG_SVC_DT 12-JUL-2004 DATE FORMAT
    END_SVC_DT 050807 VARCHAR2 FORMAT Positions 3 and 4 are months.
    I must subtract BEG_SVC_DT from END_SVC_DT
    JUL is the 7th month.
    In PLSQL, I subtract 07 from 08 and get 01
    Or I have 2 dates
    BEG_SVC_DT 13-NOV-2004 DATE FORMAT
    END_SVC_DT 050429 VARCHAR2 FORMAT Positions 3 and 4 are months.
    I must subtract BEG_SVC_DT from END_SVC_DT.
    NOV is the eleventh month. 04 is less than 11.
    In PLSQL I have to add 12 to 04 and subtract 11 from 16 to get 05.
    In both scenarios, the end_dt field must be VARCHAR2 because the user has to enter the word 'PRESENT'. In SQL, is there a function to compute the number of months between 2 dates?
    I am doing my calculations this way because this is the way that the user has been doing them when they created the report manually.
    The database that I am using is Oracle 9.2.0.6
    Report Writer Report Builder 6.0.8.22.0
    Forms 6.0.8.22.1

    In your example:
    BEG_SVC_DT 30-JUL-1995 DATE FORMAT
    END_SVC_DT 981007 VARCHAR2 FORMAT Positions 5 and 6 are the days.
    I must subtract BEG_SVC_DT from END_SVC_DT.
    In PLSQL I add 31 to 07 and get 38. I subtract 30 from 38 and get 8.
    Where is the "31" depending on, on year and month of BEG_SVC_DT or END_SVC_DT?
    What would be the answer for the following example
    BEG_SVC_DT 25-FEB-1995 DATE FORMAT
    END_SVC_DT 980407 VARCHAR2 FORMAT
    Do I add 28 (=number of days in FEB-1995),
    or 30 (=number of days in APR-1998),
    or 31 (= max number of days in any month?)

  • Is there any table that holds the history of BEx queries

    Hi, I just wanted to know if there is any table that keeps the history of changes done to BEx queries?

    HI,
    Below tables helps you
    RSZELTTXT        Texts of reporting component elements
    RSZELTXREF       Directory of query element references
    RSRREPDIR        Directory of all reports
    RSZCOMPDIR       Directory of reporting components
    RSZELTDIR        Directory of the reporting component elements
    RSZELTDIR        Directory of the reporting component elements
    RSZRANGE         Selection specification for an element
    RSZSELECT        Selection properties of an element
    RSZCOMPIC        Assignment reuseable component <-> InfoCube
    RSZCALC            Definition of a formula element
    RSZCEL              Query Designer: Directory of Cells
    RSZELTPRIO       Priorities with element collisions
    RSZGLOBV          Global Variables in Reporting
    RSZELTATTR       Attribute selection per dimension element
    RSZCHANGES       Change history of reporting components
    RSZELTPROP       Element properties (settings)
    Regards,
    rvc

  • Is there any MBean that returns war file details of the current page/contex

    Hi,
    We are building some diagnostic tests which would run as MBeans, both config and runtime. These MBeans would be invoked when an incident/error occurred on a page. One of my diagnostic test is to "get the details of the war file, like war file name, file path etc..from the current web page/current context root... and then inspect for some entries in the configuration files inside that war file".
    Is there any weblogic MBean that gives me the details of the war file from the current web page / current context root?
    Appreciate your help.
    Thanks,
    Eshwar.
    Edited by: Eshwar Mekala on May 5, 2010 6:30 PM
    Edited by: Eshwar Mekala on May 10, 2010 3:52 PM

    There is information about the applications on the server via the ApplicationRuntimeMBean. I believe there is context root information for the app inside the ComponentRuntimeMBeans. So you could query the app runtime mbeans to find the matching the ApplicationRuntimeMBean. Then use that to find the matching AppDeploymentMBean which has the file location.
    There might also be something in the servlet API - I would ask in the webapp forum.

  • Vi or any function that closes the VI abruptly

    Hi,
           Is there any vi or function that stops running the main vi abruptly upon true.(inside the main vi there may be a subvi that has a while loop meaning it runs indefinitely)
                           only the main vi should be closed not the LabVIEW insatance.I'm using LabVIEW 2009
    Message Edited by Robin Hood on 03-11-2010 06:50 AM
    Regards
    RobinHood

    There are several options for this, depending on the overall architcture of your software. Most often, such a request makes sense in a producer/consumer environment.
    So the task is to inform the producer and the consumer to shutdown. Even there you have different options:
    a) The producer inits the shutdown. This is very easy since it follows the idea of produce/consumer.
    b) If the consumer should init the shutdown, you have to include a "messaging mechanism" for the consumer in order to shutdown the producer. Custom user events come quite handy here....
    c) You have some kind of watchdog for this feature. The watchdogs takes care about shutting down other parts of the application using user events or notifications. This can be used in producer/consumer as well as in other design patterns.
    Sure, the shutdown is not really "immediate", but if there are certain security requirements involved (e.g. robotics emergency shutdown), you must not have a software shutdown working within non-deterministic systems! If you have such an environment, the only acceptable "softwaresolution" would work on FPGAs.......
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

Maybe you are looking for

  • Copy and open files on local filesystem?

    Hello, For a change request, I have a rather tricky requirement. Suppose each user of the application always has a mapped network drive to a server, let's say drive "k:\", pointing to "\\servername\someDirectory\docs". This folder contains a lot of W

  • How do I move from iMovie to iDvd?

    I am new user to both iMovie and iDvd (both in iLife 09). I have made my first movie in iMovie and it is 1 hour 49 minutes. How do I get the movie to iDvd? I tried Share, iDvd, and it worked away for an hour, then gave me an error message that the mo

  • JDeveloper 11.1.1.5.0 ADF Library task-flow not shown

    fyi Please consider the example application created using JDeveloper 11.1.1.5.0 at http://www.consideringred.com/files/oracle/2011/TestsInADFLibraryApp-v0.01.zip (in the context of forum thread "JUnit test classes in ADF Library") At some point, work

  • File can not be created

    I'm having a little trouble with safari. I want to download some apps from the internet, so I click on the link to start the download, it starts the download, but then it says a file can't be created. I try another app, it still doesn't work, so that

  • Moving LR and pics to a new computer/HD, most efficient/painless way...

    Hello people of the Adobe LR forum! The primary HD on my computer is crapping out (after only 6 mos!), and it's the same HD in which all my pictures reside as well as my LR install. What is the recommend way to transfer my images and all of my precio