View for Last executed DDL ?

Hi,
Is thr any view to find out the last executed ddl ?
Because i need to know last change happend in the database .
Thanking You
Jeneesh

From asktom :
Tom,
Can I have my last executed SQL retrieved from the database?
just by passing the sid. I want those SQL executed in my application not the onse executed by
Oracle itself
Followup   November 12, 2003 - 5pm US/Eastern:
you'll get the last sql executed by joining v$session to v$sql. if the last sql executed was
recursive SYS sql -- you'll get that (that would be the last sql).  we really don't discriminate
between them
    Forgot to tell you this data dictionary view will age out. So there is no absolute guarantee you will find all the sql executed since the database instance has been started. Other option is Audit. For more information refer oracle manual.
Regards
Ra
Message was edited by:
s.rajaram

Similar Messages

  • Opportunity View for Last Quarter

    Dear,
    I am trying to create a view to get the Opportunities having the Estimated Close Date for the Last Quarter.
    If I use the "Last x Months" criteria with x = 3 then it will get all the Opportunities having the Estimated Close Date of the last 3 months including the current one.
    Please advise.
    Regards,
    Joe Mouawad.

    In Advanced Find, you have an option to filter date fields by "Last X Fiscal Periods".  After you setup your Fiscal Year Settings (Settings - Business Management) you should be able to pull back the data. 
    Please make as answered if this post was helpful.

  • Ios 5 Update New Features says that iCal now has a week view for iPhone but after updating last weekend, I don't see any week view--just List, Day and Month..How do I get the week view?

    ios 5 Update New Features says that calendar now has a week view but after updating my iPhone 4 last weekend, I don't see any week view for iCal--just List, Day and Month as in the past. Is the weekly view available for iCal and if so, how do I access it?

    Rotate your phone to landscape.

  • How do I know  what transactions executed by specific user for last month

    All
    We have a request to find out  what transactions are executed by secific user
    for last couple of months.
    Is there any report in SAP would tell me ?
    Please advise.
    From
    PT.

    Hello PT,
    If you use the search for the term "How do I know what transactions executed by specific user for last month" then I guarantee you some good hits in the result, and further more detailed search terms to use...
    Cheers,
    Julius
    (this time in response to the correct thread...)

  • Last executed date for a report

    Hi,
    I have to find out the last executed date of set of reports/programs. Please let me know how to get that information. Is there any table wherin I can give the list of reports and download the output?
    Thanks,
    Raj.

    HI,
    Check transaction STAD.
    There you can specify user, transaction or program and a time frame.The question will be, how long do you keep statistics in your system...
    Regards
    Kiran

  • Analysis Services Execute DDL Task Internal error

    Hi all,
    I need help in solving this sporadic problem...  the dimension below (blanked out as xxxx) is based on a view.  The cube processes fine many times - but fails - abruptly once a week... it's being called from a sql job.
    Any ideas?  Thanks in advance!!
    Error: 2010-06-28 15:45:17.69     Code: 0xC1000007     Source: xxxxxxx Analysis Services Execute DDL Task     Description: Internal error: The operation terminated unsuccessfully.  End Error 
    Error: 2010-06-28 15:45:17.69     Code: 0xC11F000D     Source: xxxxxxx Analysis Services Execute DDL Task     Description: Errors in the OLAP storage engine: An error occurred while the 'xxxxx' attribute
    of the 'xxxxx' dimension from the 'xxxxxx' database was being processed.  End Error  Error: 2010-06-28 15:45:17.69     Code: 0xC11F0006     Source: xxxxxxx Analysis Services Execute DDL Task    
    Description: Errors in the OLAP storage engine: The process operation ended because the number of errors encountered during processing reached the defined limit of allowable errors for the operation.  End Error  Error: 2010-06-28 15:45:17.69    
    Code: 0xC11C0002     Source: xxxxxx Analysis Services Execute DDL Task     Description: Server: The operation has been cancelled.  End Error  DTExec: The package execution returned DTSER_FAILURE (1). 
    Started:  3:45:00 PM  Finished: 3:45:17 PM  Elapsed:  17.328 seconds.  The package execution failed.  The step failed.
    Harsh B

    (From http://msdn.microsoft.com/en-us/library/cc966526.aspx)
    "ExternalCommandTimeout is a server property that is used to set the number of seconds that SSAS should wait to time out when issuing commands to external data sources, such as relational and other OLAP sources."
    "ExternalConnectionTimeout is a server property that is used to set the number of seconds, by default, that SSAS should wait to time out when connecting to external data sources, such as relational and other OLAP sources."
    What you set it to, it's absolutely up to you... But as I see it in your log, your task failed in 17 and 9 seconds... So I think you can multiply the values by 10, I guess the situation won't change... But it is worth to check it at least.
    So... How often your fact table gets new (degenerate) dimension reference values? Is it a process update, or a process full command? I really would like to see it :)
    -- Zoltán Horváth
    -- MCITP SQL Server Business Intelligence Developer 2005, 2008
    -- Please mark posts as answered or helpful where appropriate.

  • Why there is implicit commit before and after executing DDL Statements

    Hi Guys,
    Please let me know why there is implicit commit before and after executing DDL Statements ?
    Regards,
    sushmita

    Helyos wrote:
    This is because Oracle has design it like this.Come on Helyos, that's a bit of a weak answer. :)
    The reason is that it makes no sense to update the structure of the database whilst there is outstanding data updates that have not been committed.
    Imagine having a column that is VARCHAR2(50) that currently only has data that is up to 20 characters in size.
    Someone (person A) decides that it would make sense to alter the table and reduce the size of the column to varchar2(20) instead.
    Before they do that, someone else (person B) has inserted data that is 30 characters in size, but not yet committed it.
    As far as person B is concerned that insert statement has been successful as they received no error, and they are continuing on with their process until they reach a suitable point to commit.
    Person A then attempts to alter the database to make it varchar2(20).
    If the database allowed that to happen then the column would be varchar2(20) and the uncommitted data would no longer fit, even though the insert was successful. When is Person B going to find out about this? It would be wrong to tell them when they try and commit, because all their transactions were successful, so why should a commit fail.
    In this case, because it's two different people, then the database will recognise there is uncommitted transactions on that table and not let person B alter it.
    If it was just one person doing both things in the same session, then the data would be automatically committed, the alter statement executed and the person informed that they can't alter the database because there is (now) data exceeding the size they want to set it to.
    It makes perfect sense to have the database in a data consistent state before any alterations are made to it, hence why a commit is issued beforehand.
    Here's something I wrote the other day on the subject...
    DDL's issue a commit before carrying out the actual action
    As long as the DDL is syntactically ok (i.e. the parser is happy with it) then the commit is issued, even if the actual DDL cannot be executed for another reason.
    Example...
    We have a table with some data in it...
    SQL> create table xtest as select rownum rn from dual;
    Table created.
    SQL> select * from xtest;
            RN
             1We then delete the data but don't commit (demonstrated by the fact we can roll it back)
    SQL> delete from xtest;
    1 row deleted.
    SQL> select * from xtest;
    no rows selected
    SQL> rollback;
    Rollback complete.
    SQL> select * from xtest;
            RN
             1
    SQL> delete from xtest;
    1 row deleted.
    SQL> select * from xtest;
    no rows selectedSo now our data is deleted, but not committed, what if we issue a DDL that is syntactically incorrect...
    SQL> alter tab xtest blah;
    alter tab xtest blah
    ERROR at line 1:
    ORA-00940: invalid ALTER command
    SQL> rollback;
    Rollback complete.
    SQL> select * from xtest;
            RN
             1... the data can still be rolled back. This is because the parser was not happy with the syntax of the DDL statement.
    So let's delete the data again, without committing it, and issue a DDL that is syntactically correct, but cannot execute for another reason (i.e. the database object it refers to doesn't exist)...
    SQL> delete from xtest;
    1 row deleted.
    SQL> select * from xtest;
    no rows selected
    SQL> truncate table bob;
    truncate table bob
    ERROR at line 1:
    ORA-00942: table or view does not exist
    SQL> rollback;
    Rollback complete.
    SQL> select * from xtest;
    no rows selectedSo, there we have it. Just because the statement was syntactically correct, the deletion of the data was committed, even though the DDL couldn't be performed.
    This makes sense really, because if we are planning on altering the definition of the database where the data is stored, it can only really take place if the database is in a state where the data is where it should be rather than being in limbo. For example, imagine the confusion if you updated some data on a column and then altered that columns datatype to be a different size e.g. reducing a varchar2 column from 50 character down to 20 characters. If you had data that you'd just updated to larger than 20 characters whereas previously there wasn't, then the alter table command would not know about it, would alter the column size and then the data wouldn't be valid to fit whereas the update statement at the time didn't fail.
    Example...
    We have a table that only allows 20 characters in a column. If we try and insert more into that column we get an error for our insert statement as expected...
    SQL> create table xtest (x varchar2(20));
    Table created.
    SQL> insert into xtest values ('012345678901234567890123456789');
    insert into xtest values ('012345678901234567890123456789')
    ERROR at line 1:
    ORA-12899: value too large for column "SCOTT"."XTEST"."X" (actual: 30, maximum: 20)Now if our table allowed more characters our insert statement is successful. As far as our "application" goes we believe, nay, we have been told by the database, we have successfully inserted our data...
    SQL> alter table xtest modify (x varchar2(50));
    Table altered.
    SQL> insert into xtest values ('012345678901234567890123456789');
    1 row created.Now if we tried to alter our database column back to 20 characters and it didn't automatically commit the data beforehand then it would be happy to alter the column, but then when the data was committed it wouldn't fit. However the database has already told us that the data was inserted, so it can't go back on that now.
    Instead we can see that the data is committed first because the alter command returns an error telling us that the data in the table is too big, and also we cannot rollback the insert after the attempted alter statement...
    SQL> alter table xtest modify (x varchar2(20));
    alter table xtest modify (x varchar2(20))
    ERROR at line 1:
    ORA-01441: cannot decrease column length because some value is too big
    SQL> rollback;
    Rollback complete.
    SQL> select * from xtest;
    X
    012345678901234567890123456789
    SQL>Obviously, because a commit statement is for the existing session, if we had tried to alter the table column from another session we would have got
    SQL> alter table xtest modify (x varchar2(20));
    alter table xtest modify (x varchar2(20))
    ERROR at line 1:
    ORA-00054: resource busy and acquire with NOWAIT specified
    SQL>... which is basically saying that we can't alter the table because someone else is using it and they haven't committed their data yet.
    Once the other session has committed the data we get the expected error...
    ORA-01441: cannot decrease column length because some value is too bigHope that explains it

  • Create a Maintenance view for table T500P

    Hi Experts,
    We have a requirement where customer want an additional field in table T500P and for the same a custom maintenanve view has to be created.Moreover, If there is any update insert or change in the ZView/Ztable the same should be reflected in standard table T500P.
    Steps already taken :-
    We have created a ztable (copy of T500P ) and add the required custom field to it.
    We have also copied the view i.e V_T500P to our custom view and also use base table as T500P .
    We also create a foreign key for PERSA in Ztable and use T500P as check table for that with cardinality 1:1.
    To update the MOLGA & BUKRS field data in ztable we have set both the field as a primary key & create a foreign key with check table T500L & T001 & cardianality as 1:CN for key fields.
    In custom maintenance view we have set the realtionship of ztable t500l & t001 with the base table T500P.
    Now, if we are trying to maintain the view only T500P table is getting updated and Ztable is updated with only PERSA value.
    Please provide some directions for the resolution of this issue.
    Thanks,
    Pooja Goel.

    Scheduler007 --
    The view you selected by clicking File > Options > Project View is the default view for every new project you create from a blank project template.  This is a global option, so setting it from the checked out Enterprise Global file serves no purpose. 
    When you select a view as your default view, you will see that view applied to the blank project that is opened when you launch Microsoft Project 2010, and you will see it applied if you create new blank projects.  If you create enterprise templates for
    people to use in your organization, you should simply apply the view to the template that you want as the default so that users will see this view immediately when they create a new project from the template.  In addition, if you apply a view to an open
    project, close and check in the project, and then reopen the project, you will see the last view applied in that project (as Guillaume correctly points out).
    Beyond this, there is no method possible for the Project Server administrator to specify a default view for the Microsoft Project application used by the project managers in your organization.  This is an option each PM must set.  Hope this helps.
    Dale A. Howard [MVP]

  • Error while saving view for a report

    Hi All,
             I have transported queries to production and executing them from web, when I am saving the view for a report I get an error
    " The Object cannot not be processed due to a transport problem -  Notification Number RSWWW 240 "
    What could be the problem...please help
    Thanks
    Indraneel

    Check the OSS note 550760 regarding the issue.

  • MM-FI Issue-Open GR for last Fis Year-Is it possible to Close / lock PO

    Hi
    I have the following MM / FI Issue.
    Open GR for last Fiscal Year cannot be reversed due to periods closed both FI/MM.
    This GR is related to Asset.   After receipt of GR, Asset has already been capitalized.
    The Inovice not entered thro' MIRO due to non-availability of PO ref.
    The Vendor Invoice booked (KR doc) with debit Asset and Credit to Vendor.
    Payment made to this invoice.
    MM wants to cancel the GR and it is not possible.  Then FI decided to clear thro' dummy invoice.
    FI accounted the dummy invoice for open GR to square-up the accounting entries.
    After finishing the above process, MM wants to close or lock the PO.
    Is it possible to short close or lock the previous year po now?  
    Please advise.
    Regards,
    GB

    Hi
    Can any one guide to me for Open GR reversal.
    I want to reverse the Asset GR thro' MR11 for testing.   I have the following doubts.
    In  MR11 - After Company Code - which date has to be entered?   Posting date of the GR or current date!
    In Reference field I have to enter the DC/DN number
    Then I have entered the PO No. in Purchsasing Document field.   Is it required to enter the PO Date???
    There is a Tick mark is already marked in "Delivery Surplus" - Is it required?
    There is a Tick mark is already marked in "GR/IR clearing account" - I think it Is required
    There is a Tick mark is already marked in "Delivery Cost Accounts" - Is it required?
    Last movement before key date - which date has to be entered?
    Any other guidelines.
    Our data is given below:
    PO Doc Date:  10.07.2008
    Delivery Date: 21.07.2008
    Posting Date:  31.08.2008
    Please give few guidelines about MR11 process.   How it impact both in FI and MM module.
    As per my view it reverse the GR receipt entries as well as asset master entry.  
    Once this process is OK, I need to test few PROD data in the current scenario for last year open GRs.
    Please help me?
    Regards,
    GB

  • [ADF Help] How to create a view for multiple tables

    Hi,
    I am using Jdeveloper 11G and ADF framework, and trying to create a view to update multiple tables.
    ex:
    Table A has these fields: ID, Name
    Table B has these fields: ID, Address
    A.ID and B.ID are primary keys.
    B.ID has FK relationship with A.ID
    (basically, these tables have one-to-one relation)
    I want to create a view object, which contains these fields: B.ID (or A.ID), A.Name, B.Address.
    So I can execute C,R,U,D for both tables.
    I create these tables in DB, and create entity objects for these tables.
    So there are 2 entity objects and 1 association.
    Then I create a view object based on B and add fields of A into the view:
    If the association is not a "Composition Association",
    when I run the model ("Oracle Business Component Browser") and try to insert new data, fields of A can't edit.
    If the association is a "Composition Association", and click the insert button, I will get
    "oracle.jbo.InvalidOwnerException: JBO-25030: Failed to find or invalidate owning entity"
    If I create a view object based on A and add filed of B into the view:
    When I run the model and try to insert new data, fields of B can't edit, no matter the association is or is not a composition association.
    So... how can I create a view for multiple tables correctly?
    Thanks for any advices!
    Here are some pictures about my problem, if there is any unclear point, please let me know.
    http://leonjava.blogspot.com/2009_10_01_archive.html
    (A is Prod, B is CpuSocket)
    Edited by: user8093176 on Oct 25, 2009 12:29 AM

    Hi Branislav,
    Thanks, but the result is same ....
    In the step 2 of creating view object, I can select entity objects to be added in to the view.
    If I select A first, and then select B (the "Source Usage" of B is A), then finishing the wizards.
    When I try to create a new record in the view, I can't edit any properties of B (those files are disabled).
    If I select B first, and then select A in crating view object, the result is similar ...
    Thanks for any further suggestion.
    Leon

  • Create a defaut view for the MS Project Server 2010 client

    Dear Forum,
    how can I create a defaut view for the MS Project Server 2010 client?
    I saved a template and set a default view under File -> Options ->Project View. I also did the same in the checked-out enterprise global. If I then close the client and re-open it my default view changes back again to the previous one (not the view
    I set as a default view).
    What explains this behaviour and what can I do? Any hints?
    Thank you very much for your help!

    Scheduler007 --
    The view you selected by clicking File > Options > Project View is the default view for every new project you create from a blank project template.  This is a global option, so setting it from the checked out Enterprise Global file serves no purpose. 
    When you select a view as your default view, you will see that view applied to the blank project that is opened when you launch Microsoft Project 2010, and you will see it applied if you create new blank projects.  If you create enterprise templates for
    people to use in your organization, you should simply apply the view to the template that you want as the default so that users will see this view immediately when they create a new project from the template.  In addition, if you apply a view to an open
    project, close and check in the project, and then reopen the project, you will see the last view applied in that project (as Guillaume correctly points out).
    Beyond this, there is no method possible for the Project Server administrator to specify a default view for the Microsoft Project application used by the project managers in your organization.  This is an option each PM must set.  Hope this helps.
    Dale A. Howard [MVP]

  • How to configure and set a default view for contents of a data set

    Here is my scenario:
    I have a document library where each item is a "Plan".  "Plan" is of a custom content type that inherits from a Document Set content type but has some additional attributes such as Plan Type.  Inside each Plan, each item is
    a Plan Document which is of custom content type Plan Document which inherits from Document content type but has some additional attributes e.g. Document Status.
    So the hierarchy is:
    All Plans (document library)
         Plan 1  (custom content type that inherits from Document Set but also has a "Plan Type" attribute)
                 Plan Document   (custom content type that inherits from Document but also has a "Document Status" attribute
    When I click on the document library, I want to see all the folders (e.g. Plan 1) where one of the columns will be "Plan Type"
    When I click on an individual Plan (e.g. Plan 1) I want to see the contents of that custom document set.  At this point, since this page shows contents of one document set, I want to see the column "Document Status" but NOT Plan Type since
    Plan Type applies to the document set as a whole, not to an individual item in that document set.
    However, I don't think I have it set up correctly because right now the "Plan Type" column is visible both on the list of all document sets AND on the page that shows the contents of one document set.
    I've found a discussion on this topic here:
    http://sharepoint.stackexchange.com/questions/61565/how-can-i-set-a-custom-default-view-for-a-document-set
    where one person said "When you click on a Document Set content type in library settings, one of the options is "Document Set settings". The last option in this dialogue allows you to select a defined view on the library that will be used
    to show the contents of that Document Set."  I don't see that view selection.  The last item on the document set settings page is "Update List and Site Content Types".  The field before that is for customizing the Welcome page. 
    However, I don't want to customize the Welcome Page as a whole, I just want to customize the columns that are displayed on the list of content of this document set.
    thanks

    I finally found the answer:
    At the document library level, create a new view to use when displaying the files in the document set
    Go to the document library settings
    Select your custom content type (in my case it was "Plan")
    In the next screen select Document Set settings
    Select your newly created view at the Welcome Page View section
    Press Ok
    Now the default All Documents view will be shown when displaying all the document sets and the newly created view will be displayed when viewing one document set with the files within.

  • FI & MM Issue - Open GR for last Fis Year - Close / lock PO

    Hi
    I have the following FI / MM Issue.
    Open GR for last Fiscal Year cannot be reversed due to periods closed both FI/MM.
    This GR is related to Asset.   After receipt of GR, Asset has already been capitalized.
    The Inovice not entered thro' MIRO due to non-availability of PO ref.
    The Vendor Invoice booked (KR doc) with debit Asset and Credit to Vendor.
    Payment made to this invoice.
    MM wants to cancel the GR and it is not possible.  Then FI decided to clear thro' dummy invoice.
    FI accounted the dummy invoice for open GR to square-up the accounting entries.
    After finishing the above process, MM wants to close or lock the PO.
    Is it possible to short close or lock the previous year po now?  
    Please advise.
    Regards,
    GB

    Hi
    Can any one guide me for Open Asset GR reversal.
    I want to reverse the Asset GR thro' MR11 for testing. I have the following doubts.
    In MR11 - After Company Code - which date has to be entered? Posting date of the GR or current date!
    In Reference field I have to enter the DC/DN number
    Then I have entered the PO No. in Purchsasing Document field. Is it required to enter the PO Date???
    There is a Tick mark is already marked in "Delivery Surplus" - Is it required?
    There is a Tick mark is already marked in "GR/IR clearing account" - I think it Is required
    There is a Tick mark is already marked in "Delivery Cost Accounts" - Is it required?
    Last movement before key date - which date has to be entered?
    Is any other values to be entered?
    Our data is given below:
    PO Doc Date: 10.07.2008
    Delivery Date: 21.07.2008
    Posting Date: 31.08.2008
    Please give few guidelines about MR11 process. How it impact both in FI and MM module.
    As per my view it reverse the GR receipt entries as well as asset master entry.
    Need to test few PROD data for last year open GRs after competion of above testing.
    Please help me?
    Regards,
    GB

  • INSTEAD of Trigger View for an Oracle EBS New form development

    Hello,
    I am developing a new EBS form based on a database view.
    This form is an EBS form will run in an 11.5.10.2 environment and developed using 6i.
    The form has one data block that is based on the view. The view is joined and based on following tables.
    Hz_Parties Hp,
    Hz_Cust_Accounts
    Hz_Cust_Acct_Sites_All
    Hz_Party_Sites
    Hz_Locations
    Ra_Salesreps_All
    Hz_Cust_Site_Uses_All
    Ar_Vat_Tax_All
    xx_custom_table t
    The view is inherently not updatable. Therefore, I am thinking to write an INSTEAD OF trigger on the view. The question. The form which is based on the view is require to update Oracle EBS tables mentioned above. As you know, there are APIs available to update above tables.
    Typically, you would write API in a program unit in the form and call from triggers. But here the form is based on the view. And to support DMLs on the view, I HAVE TO write INSTEAD of trigger(or that is the only way i know) so the question is:
    1. Do I write these APIs under INSTEAD of triggers?
    2. Or, I write these API in the form triggers and write DML referencing OLD and NEW values in INSTEAD of trigger? Where, these OLD and NEW values will refer on above tables.
    Please advise.
    And lastly, Do I have to write an INSTEAD of trigger? The USER_UPDATEABLE_COLUMNS view for this table shows no columns are updateable at the moment
    Thanks,
    A

    As you know, there are APIs available to update above tables.No, I don't B-) You'd better ask this in the eBusiness Suite form, as this is very EBS, not Forms, specific.
    In general, I would say that in this case you can use the EBS API's in the instead of trigger, not in the form.
    Or you can base the form on stored procedures, not directly on the view.

Maybe you are looking for