Find all DMLs on a view

Hi!
I have following situation: I should check our source code for all places where exists INSERTs, UPDATEs,... etc. on one view and implement certain modifications. View name is AG. So to do that my query is:
SELECT   owner "Owner", NAME "PL/SQL Object Name", TYPE "Type", line "Line",
         text "Text", owner sdev_link_owner, NAME sdev_link_name,
         TYPE sdev_link_type
    FROM SYS.all_source
   WHERE owner = USER
     AND INSTR(UPPER(text), UPPER('AG')) > 0
     AND NAME NOT LIKE 'BIN$%'
ORDER BY owner, NAME, TYPE, line;Problem is that view name is very tricky and that I'm getting more then 2000 rows (places) where string AG appear. Mostly of this 2000 rows are appearances of sting AG in different context (part of object names, comments,....)
So my question is does exist some shorter way to find all DMLs on this view except to check more then 2000 rows?

Problem is that view name is very tricky and that I'm
getting more then 2000 rows (places) where string AG
appear. Mostly of this 2000 rows are appearances of
sting AG in different context (part of object names,
comments,....)PL/SQL code in all_source is stored one record per code line.
SQL> desc all_source
Name Null? Type
OWNER VARCHAR2(30)
NAME VARCHAR2(30)
TYPE VARCHAR2(12)
LINE NUMBER
TEXT VARCHAR2(4000)
SQL> create or replace function funct1(i number) return number
2 is
3 begin
4 return(i+1);
5 end;
6 /
Function created.
SQL> select count(1) from all_source where NAME='FUNCT1';
COUNT(1)
5
SQL> column text format a50
SQL> select LINE, TEXT from all_source where NAME='FUNCT1';
LINE TEXT
1 function funct1(i number) return number
2 is
3 begin
4 return(i+1);
5 end;

Similar Messages

  • How to find all table and views in the database

    Hi,
    I want to find all table and view name form the database can u tell me syntax.
    i.e. I am able to find out table name and view name in sql server ...like
    FOR VIEW :
    select table_name from information_schema.views where table_name not like 'sys%'
    FOR TABLE :
    select table_name from information_schema.tables where table_name not like 'sys%' and table_type='Base table'
    Thanks & Regards,
    Shirish

    Hello,
    Take a look at "dba_tables" and "dba_views" both of which are documented here:
    http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14237/toc.htm
    - Mark

  • How to accesss dba objects (dba views) to find all  last ddl times in Apex

    Hi,
    I want to access all the dba_objects.. all dba_views to find out last ddl's. I installated oracle application express and had created users ADMIN, DEV, both are under XXAPPS schema. How can I find out last ddl's on all db objects. I was not able to pull out objects list from alll schemas's. All schemas are not accesable

    I'm not sure why you are trying to do this unless you are intending to build some sort of database monitoring tool, but if you grant the SELECT_CATALOG_ROLE role to the parsing schema, you should be able to see all the DBA_ catalogue views.
    Regards
    Andre

  • Query to find all the view name and their size in GB

    Hi,
    What is the query to find all the view name and their size in GB.I am aware of joining all_views and user_segments but this is not serving the purpose.is there any table i need to join to get the desired result
    Thanks

    You could of course be thinking of views as they are stored in other RDBMS' as some of them actually create the view as a table on the database with a copy of the data in it and maintain that data as the base tables are updated.
    As already mentioned, Oracle just stores the SQL of the View and executes that SQL when the view is queried.
    Alternatively, Oracle also has "materialized views" which are created as snapshots of the data and will have a size. This data is updated (refreshed) based on the parameters used when creating the materialized view which means that it will either be, commonly, when a commit is issued or when a refresh is explicitly requested (refresh on demand).

  • Crnt FF: 1 of 5 e-mails loses all e-mails upon viewing but shows qty of mails are there. Search can find all of them, just won't show in the InBox

    1 of 5 email ACCOUNTS receives mail OK, but as soon as you leave that account and come back, nothing is shown in the Inbox. The Status Bar however, shows that there are 32 e-mails there although the Inbox is devoid of any text.
    Using Search, I can find ALL 32 emails by searching for a word in the subject field or the body fields. The mails ARE there! They just do not display in the Inbox.
    So ... how the heck do I get the Inbox to show its contents again?
    This was working until day before yesterday when I read an e-mail from a trusted source, and it automagically disappeared, along with all the others in the inbox. ALL other accounts are working just fine.
    I tried creating a new email account but it wouldn't let me, giving me an error that the "incoming already exists". No number or anything; it come when I click DONE in the creation process. The new account will not write to the disk.
    I have run NOrton AV, AVG, MalWare Bytes, Windows Defender, Spybot and another I forget the name of right now. ALL showed nothing found after each success live scan. I am reasonable sure I do not have any malware.
    The e-mails in that account are pretty important and I do not want to lose them if possible; they are for a high school 50th Reunion planning committee.
    Windows 7 HP, Dell XPS L702, 6 Gig RAM, Intel i7 Processor and lots of disk space. I have also compacted with no change. The messages are all still there, but nothing shows in my inbox; it's empty. I only see them using Search the Messages for terms I know are in them.
    Happy to provide any other info needed to evaluate this. Oh, the account Sends OK too; it's a POP3 account setup.
    Any help would be most appreciated!
    Twayne`

    I apologize; I should have mentioned I already tried that, multiple times
    It's almost like, since the messages show a qty in the status bar, that their text has been changed to white, the background color. But when i use Search Messages to get at what's there, the text color is black as it should be.
    Any further comments welcomed.
    Thanks much

  • What query should I use to find all versions of Office 2013 64-bit installed on client computers?

    What query should I use to find all versions of Office 2013 64-bit installed on client computers? Could someone create a custom query? I need all of the client computers names and which ones have any Office 64-bit components. Thank you so much! I really
    appreciate it!

    Hi,
    You could edit the following query to meet your requirement.
    SELECT     dbo.v_R_System.Name0, dbo.v_GS_OPERATING_SYSTEM.Caption0 AS [Operating System],
                          dbo.v_GS_OPERATING_SYSTEM.CSDVersion0 AS [OS Service Pack], arp.DisplayName0,
                          CASE WHEN arp.version0 LIKE '11.0.6361.0' THEN 'SP1' WHEN arp.version0 LIKE '11.0.7969.0' THEN 'SP2' WHEN arp.version0 LIKE '11.0.8173.0'
    THEN 'SP3' WHEN
                           arp.version0 LIKE '12.0.6215.1000' THEN 'SP1' WHEN arp.version0 LIKE '12.0.6425.1000' THEN 'SP2' WHEN arp.version0 LIKE '14.0.6029.1000'
    THEN 'SP1' ELSE '' END
                           AS 'Service Pack', arp.Version0
    FROM         dbo.v_Add_Remove_Programs AS arp INNER JOIN
                          dbo.v_R_System ON arp.ResourceID = dbo.v_R_System.ResourceID INNER JOIN
                          dbo.v_RA_System_SMSInstalledSites AS ASSG ON dbo.v_R_System.ResourceID = ASSG.ResourceID INNER JOIN
                          dbo.v_GS_OPERATING_SYSTEM ON dbo.v_R_System.ResourceID = dbo.v_GS_OPERATING_SYSTEM.ResourceID
    WHERE     (arp.DisplayName0 LIKE '%Microsoft Office%edition%' OR
                          arp.DisplayName0 LIKE '%Microsoft Office Standard 2007%' OR
                          arp.DisplayName0 LIKE '%Microsoft Office Enterprise 2007%' OR
                          arp.DisplayName0 LIKE '%Microsoft Office Professional%2007%' OR
                          arp.DisplayName0 LIKE '%Microsoft Office Standard 2010%' OR
                          arp.DisplayName0 LIKE '%Microsoft Office Enterprise 2010%' OR
                          arp.DisplayName0 LIKE '%Microsoft Office Professional%2010%' OR
                          arp.DisplayName0 LIKE 'Microsoft Office 2000%' OR
                          arp.DisplayName0 LIKE 'Microsoft Office XP%') AND (arp.DisplayName0 NOT LIKE '%update%') AND
                          (arp.DisplayName0 NOT LIKE '%Microsoft Office XP Web Components') AND (dbo.v_R_System.Operating_System_Name_and0 NOT LIKE '%server%')
    AND
                          (arp.InstallDate0 NOT LIKE 'NULL')
    ORDER BY dbo.v_R_System.Name0, arp.DisplayName0, arp.Version0
    Full details:http://social.technet.microsoft.com/Forums/systemcenter/en-US/7baeb348-fb63-4115-8d76-2c884d18f708/sql-query-to-check-ms-office-service-pack-level?forum=configmgrreporting
    Best Regards,
    Joyce
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • User being removed from Domain Admins...how to find all servers his account is being used.

    We have a user that is being removed from IT (more like being forcefully demoted) and our owner still finds him valuable in other departments. My challenge is to find all servers that he may be using his account locally on (as a service or added to a local
    admin group). It hasn't happened yet, but we need to be prepared to say we know all the servers his account is on when the owner demotes him.
    I'm hoping someone has an approach to this that doesn't include going through tons of Event Viewer Security logs. We do have System Center Configuration Manager and Operations Manager 2012 w/ SP1, but the guy that is responsible for those is the guy we are removing
    and none of us are aware on how to use the possible tools that those have. If you feel that those would do the trick then please point me to a "how to" and I'll try to learn on the fly. Otherwise I'll take any other suggestions.
    ~Rick

    Hi Rick,
    Based on my research, you can filter events logs based on user name and event ID:
    Advanced XML filtering in the Windows Event Viewer
    http://blogs.technet.com/b/askds/archive/2011/09/26/advanced-xml-filtering-in-the-windows-event-viewer.aspx
    Best Regards,
    Amy

  • How to find all intersections of children of currency dimensions and currentmembers of all other dimensions where data exists

    Hi all, I have a requirement where I need to find all intersections of children of currency dimensions and currentmembers of all other dimension wherever data exists for them.
    Its a ASO cube with and version is 11.1.2.2.
    If I try to write the formula in a the below way to test, I get an error that 'Currenttuple can only be used with a named set'. But when I try to create a named set with the 'WITH' keyword, it not able to recognize the 'WITH' keyword. I think I am missing something obvious and this may not be the correct way to achieve this. Please help.
    1st try with just Currenttuple - error 'Currenttuple can only be used with a named set'
    iif(
      (isgeneration([Time].currentmember,4)),
      CASE
      WHEN NOT ISEMPTY(
    Crossjoin([Currency].Children,
    {([Time].currentmember,[Org].currentmember,
    [S Org].currentmember,[C Code].currentmember,
    ).Currenttuple
      THEN  Missing
      ELSE Missing
    END, Missing)
    2nd try to create a named set with 'WITH' keyword - syntax error at WITH
    /*with set [NewSet] as                                      
    'Crossjoin([TC].Children,
    {([Fiscal].currentmember,[Organization].currentmember,
    [Sales Org].currentmember,[Company Code].currentmember,
    [Measures].currentmember,
    [Product].currentmember,
    [Channel].currentmember,
    [Order Reason].currentmember,
    [Country].currentmember,
    [Billing Type].currentmember,
    [Business Area].currentmember,
    [Sales District].currentmember,
    [Data Source].currentmember,
    [View N/A]
    iif(
      (isgeneration([Fiscal].currentmember,4)),
      Filter([NewSet], NOT IsEmpty([NewSet].CurrentTuple))
    , Missing)

    Hi Tim,
    Thanks for you reply and sorry for my delayed response. Actually there is one more requirement in this, which makes it a bit complicated. There are another set of members in the Measure dim called FXDirrate and FXIndrate. The logic is :
    1. If data exists for the combination of a Currency.children, FXDirrate and current member of all other dims
    then convert the value for Currency.children by diving by FXDirrate
    2. If data exists for the combination of a Currency.children, FXIndrate and current member of all other dims
    then convert the value for Currency.children by multiplying by FXIndrate
    3. Then value of the calculated members will be sum(all FXDirrate converted + all FXIndrate)
    Currency does roll up but as the data for its children can either be in Dirrate or Indrate and the sum needs to be taken after the conversion, there I am not able to proceed as I am not able to check the existence of data in individual children of currency as Isempty isn't working on a set . Thanks a lot for your help.

  • How do I find all photos that can be '"reverted to original"? Help please!

    Hi. I hope that someone can help me with this!
    I am trying to go through my iPhoto Library of about 1000 photos and find all of the photos that have the option to be "reverted to original", ie. I have made changes to them. I realise that I could go through them one by one, but I am trying to avoid that!
    I have realised recently that I should duplicate a photo before changing it, so that I leave the original untouched. However this doesn't help me with all of the old ones that I DIDN'T duplicate.
    Is there an Applescript or a method of finding all of the old photos that I am looking for?
    Thanks so much in advance for any help,
    Fleur

    I don't think it can be done from within iPhoto but there's a way you can do it from outside. First download and launch QPict. Then do the following;
    1 - open your iPhoto Library folder and type Command-F.
    2 - in the search window create these two search criteria:
    a - Kind is Folder
    b - Name contains Original
    3 - In the search results window click on the size column to separate the empty folders from those with files in them.
    4 - select all of the folder that are not empty and drag into the open window of QPict.
    That will open the original files in QPict so you can view them there and compare to those in iPhoto. Just remember do not move any of those folders out of the iPhoto Library folder. Just move them into the open window of QPict.
    G4 DP-1G, 1G RAM, 22 Display, 2-80G HD, QT 7.0.3P   Mac OS X (10.4.3)   Canon S400, i850 & LIDE 50, Epson R200, 2G Nano

  • How to find all bookmarked PDF documents in Preview in Mavericks?

    Hi there,
      the problem is that before upgrading to Mavericks I could view all my bookmarked PDF documents just via menu bar in Preview, but now in Mavericks I have no idea how to manage this bookmarked documents - I can see bookmarks only after opening these PDF files which have been bookmarked. Just imagine that you have thousands of documents of which only a couple have been bookmarked for later reading - as I can see the only way to find these documents in Maverick is to open documents one by one and see whether they have bookmarks or not... Is there any way to bypass this painful procedure?
    Thanks in advance!
    Kind regards,
    Alex

    I tried this and it works as you describe, but not all Hypercard documents appear to have the same content type, as described by Terminal.
    The first Hypercard stack I tried came up with the content type:
    dyn.ah62d4rv4ge8xe6u
    The search only found the one result with this type (the same stack).
    Then I tried using the Hypercard "Home" stack (a pretty central stack to Hypercard's functioning), and it had a content type:
    dyn.ah62d4rv4gk8zgzcbmq
    (note the type is longer with a different ending; only the first 14 characters are identical to the first stack).
    This search found 317 items, which is likely most of my Hypercard documents, so this is some progress.
    Unfortunately I know that since the first stack I tried had a different content type, there may be other Hypercard stacks on my hard drive with yet a different content type, not caught by these searches.
    I then tried a wildcard, thinking that if only the first 14 characters of the content type are identical, I focus my search on those characters only, using asterisk as a wildcard at the end. So I searched for:
    dyn.ah62d4rv4g*
    The result was 526 hits, including many documents that are not Hypercard. So this doesn't help.
    It appears that the content type is not exactly specific to a the File Type or Creator Code, so while I can find many of a particular document, this method cannot find all of one type of document.
    I tried searching using raw query by the Terminal-reported File Type Code (kMDItemFSTypeCode= "STAK"), but this revealed no items.
    Perhaps I should suggest this to Apple as a bug fix for Leopard, to restore the ability to search by Type Code or Creator Code as a choice in the OS Find service? I know these codes are no longer relied on as much as they used to be, since now the OS uses extension as much as anything else, but there is lots of older software that still run in Leopard that use Type and Creator codes. And Apple still recommends registering the creator code of any new software.
    Thank you!

  • CRM 2011 Outlook Client not showing all columns in Opportunity Views

    Versions:
    CRM: 2011 On-Premise - 5.0.9688.1533
    Outlook: 2010 Professional - 14.0.6122.5000 32bit
    CRM Client for Outlook: 5.0.9690.1992
    Basic Problem
    The Outlook Client views that show up in Opportunities do not have all the columns that are in the view. 
    Some of the views do, but not all of them.
    Example:
    View Name: Won Opportunities
    Columns in view: Created on, Location, Quote Type, Scope of Work, Quote Number, Booked Sale Date.....8 other
    columns (many custom columns)
    Columns in View in Outlook: Icon, Quote Number, Categories, Flag....thats all.
    Other Notes
    This only happens in the Opportunity section of the Outlook Client. 
    This does not happen in advanced find in Outlook or anywhere in the web client. This does not happen for any other entity.
    This happens on all of our users Outlook clients.
    I have tried recreating the view.
    No error messages are recording in any logs that I can find.
    Any ideas on why this is happening or how to fix it?
    Thank you
    Paul

    1. Are you sure this is a System View and not a User Defined View? Can you take a screenshot of all the availalbe Outlook views when you click on the little down arrow to add a new view? Yes.  See the screen shot at the bottom.  It is a public
    view.
    2. What happens when you close the view and add it back?  same results.
    3. What happens when you restart Outlook? I ask because if you customized your System Views, those are only persistent for a given session. If your restart Outlook, then it should reset the View.  we have tried that.  and uninstalled Outlook client
    and reinstalled.  And uninstalled Outlook and reinstalled.  Same results.  The only view that works for opportunities is the Default Custom View.  The strange thing is that the filters are working just fine. just not the columns. 
    4. A workaround - have you tried creating a new System View similar to the one you want? Yes.  same results

  • I have a 2009 MB Pro. I have been trying to do some cleaning of files and discovered that in Finder, All Images, I am experiencing a frustrating problem. I spent a few hours trashing over 4K images and within a few hours, I had as many more. Help!

    I have a 2009 MB Pro. I have been trying to do some cleaning of files and discovered that in Finder, All Images, I am experiencing a frustrating problem. I spent a few hours trashing over 4K images and within a few hours, I had as many more.  I did a couple of thousand trashed images and half hour later, more arrived. There are a lot of images that seem off the internet, including gif.s, png.s. Help!

    First, back up all data immediately, as your boot drive might be failing.
    There are a few other possible causes of generalized slow performance that you can rule out easily.
    Reset the System Management Controller.
    If you have many image or video files on the Desktop with preview icons, move them to another folder.
    If applicable, uncheck all boxes in the iCloud preference pane.
    Disconnect all non-essential wired peripherals and remove aftermarket expansion cards, if any.
    Check your keychains in Keychain Access for excessively duplicated items.
    If you have more than one user account, you must be logged in as an administrator to carry out this step.
    Launch the Console application in the same way you launched Activity Monitor. Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Select the 50 or so most recent entries in the log. Copy them to the Clipboard (command-C). Paste into a reply to this message (command-V). You're looking for entries at the end of the log, not at the beginning.
    When posting a log extract, be selective. Don't post more than is requested.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some personal information, such as your name, may appear in the log. Anonymize before posting. That should be easy to do if your extract is not too long.

  • Finder window sizing in column view.

    Does anyone know if it is possible for the Finder to automatically expand the view to the longest file name in column view? It is very frustrating to have to drag the little lines on the lower right to the right to resize the window manually whenever I open a document folder. I hope I am not confusing anyone but it is hard for me to describe what I mean. Why do I have to manually resize it to the length of the longest file name every time?
    Thanks.

    I don't think the "Finder" can be configured to resize itself automatically whenever an item with a long name appears in a given window. However, double-clicking the "little lines" (the ones that look like "||" at the base of each column separator) will cause that column to self-adjust to display the longest name. Since a double-click requires less effort than a manual drag, hopefully that will save you a little bit of frustration.
    If a generally wider column is preferred, try holding down the option-key while resizing the column - all columns should be resized simultaneously in that window, and the setting should be retained as the default width.

  • Unable to find matching navigation case from view ID.  Error 404

    Hi All,
    I basically wanted to jumpstart my ADF exploration so I am following the tutorial at this link. [http://www.oracle.com/technetwork/developer-tools/jdev/ccset22-all-099343.html]
    Everything looks good but when I click the Edit Button, I am encountering an error. What I did was I change the logging mechanism into a FINER in my WLS and from the logs,
    it prints below messages.
    <NavigationHandlerImpl> <getViewId> "JSF1013: Unable to find matching navigation case from view ID '/orders-flow/editOrders' for outcome 'save' and action 'save'
    <ViewHandlerImpl> <executePageToBuildView> About to execute view /orders-flow/editOrders
    <ViewHandlerImpl> <executePageToBuildView> Before dispacthMessage to viewId /orders-flow/editOrders
    <ViewHandlerImpl> <executePageToBuildView> After dispacthMessage to viewId /orders-flow/editOrdersI checked out the taskflow and it is basically calling a task-flow-return component.
    I followed everything but I cant make this example work... Any idea why? I checked out the DB and I notice that it has commited my Edit Transaction but I am getting a 404 on my page. Please help. Thanks.

    Hi Frank,
    I think I got the save control flow case.
    Can you help me check please if I miss something? I uploaded my project at this link. [http://www.4shared.com/file/QFcofTfj/BrowseEditApp.html]
    I am quite not sure if I miss something but I have done this project twice already but got the same result.
    Thanks
    Edited by: Marky on 13.4.2011 5:59

  • Use java api to find all available workspaces

    Hi,
    I am trying to use the java API for the oracle repository to find all available workspaces to a user with a given username and password. At the moment i can get at a workspace once i know the workspace name in advance but i need my program to give the user a list of the available workspaces instead of the user having to know the workspace name...
    any ideas??
    cheers
    paul

    Paul,
    For queries I use simple sql select rather than the API.
    The view 'sdd_workareas' will show you all the workareas the connected user has access to.
    'i$sdd_workareas' will show all workareas.
    SQL> desc sdd_workareas
    Name Null? Type
    IRID NOT NULL NUMBER
    OWNER NOT NULL VARCHAR2(256)
    NAME NOT NULL VARCHAR2(256)
    KIND NOT NULL VARCHAR2(30)
    NOTM NOT NULL NUMBER
    DATE_CREATED NOT NULL DATE
    CREATED_BY NOT NULL VARCHAR2(32)
    NOTC NOT NULL NUMBER
    DATE_CHANGED DATE
    CHANGED_BY VARCHAR2(32)
    IS_COMPILED CHAR(1)
    DEFAULT_CHECKIN_BRANCH NUMBER
    DESCRIPTION VARCHAR2(2000)
    the context is then set using jr_context.set_workarea('WORKAREA-NAME');
    regards,
    David

Maybe you are looking for

  • Can't send mail using webmail on Mac OS X Server 10.4

    Could someone help me figure out why I can't send email via webmail on Mac Mac OS X Server 10.4. I tried in and out of my LAN but it will not work. I am pretty sure that it's no firewall issue because it won't even work inside the LAN. Another thing

  • My iLife is lost

    Hello. I have recently upgraded to Snow Leopard, which I really like but I have seen to have lost my iLife in the mean time. I do not have the original disk that I had it on, is there anyway that I can get it back? Or anyway that I can down load it f

  • Advice on SQL Logs and Backups

    Hi All, I've been trying to understand SQL backups and I'm getting a bit stuck in one area - the log files. I find they're getting quite big and as such filling up my drives. I'm guessing that the best way to handle this is to truncate them every so

  • Greek Letters on JLabel(Epsolon, sigma, etc)

    Hi, I am writing a gui application where i have to display some greek letters as Epsolon, sigma, alpha .... HOw will I be able to code that into JLabel? LIke: JLabel jl = new JLabel(" ? ") I searched online before posting, and found some codes, but i

  • Importing Java Bean Model (Command Bean) with Session Bean

    Hello all, I'm trying to import a CommandBean as a Java Bean Model in WebDynpro but I'm prompted with an error indicating that I cannot import the EJB (Session Bean) DC that is being accessed by my CommandBean - hence failing to import the CommandBea