Finding all objects

Hi all, i am using oracle 9i and i would like to find a list of object that reference one column.
i have procedures, packages, views that reference a column call name_char.
i need to change the name of the column so i need to find all objects that contain that column.
how can i do this in oracle9i?

A "crude" way is to search the ALL_SOURCE.
Please note that this is a PURE string search.
1. It will pickup false positive as well. (like comments, variable names etc.)
2. Tables can be found from all_tab_columns.
select owner, type, name from all_source
where instr(upper(text), 'NAME_CHAR') > 0;Of course "the reactive" way is to rename the column in a test environment and see the list of invalid objects ;-)
vr,
Sudhakar B.

Similar Messages

  • Trying to find ALL objects that point to one column...

    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    PL/SQL Release 11.2.0.3.0 - Production
    CORE     11.2.0.3.0     Production
    TNS for Solaris: Version 11.2.0.3.0 - Production
    NLSRTL Version 11.2.0.3.0 - Production
    I have multiple schemas, all which have tons of objects that point to one column of one table.
    I tried to look at v$sqltext, and v$sqlarea, but it doesn't seem to show as expected.
    Is there a view that I can look at that will show me all the objects that relate to one column?
    my situation. Had to change the data structure of this one column. Changed the default value from a Y to an L. I have packages, functions, triggers...etc... that deal with this one column. I need to ensure that I go through EACH one and edit them to reflect the change to the table column. And again, this spans multiple schemas that point back to it.
    I can't overlook any objects. Is there any one place to find this?
    Thanks.

    Use view - DBA_DEPENDENCIES
    select * from dba_dependencies
    where type= 'TABLE'
    and name = '<TABLE_NAME>';Another crude way...
    select * from all_source
    where lower(text) like lower('%<TABLE_COLUMN_NAME>%')
    group by owner,name,type;But, this 'll not search in Views & MView queries.
    HTH
    Ranit B.
    Edited by: ranit B on Oct 15, 2012 11:09 PM
    -- added                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                

  • How to find all "Object Directory" to ONE Query?

    Hello,
    if I have changed several queries in BW-Test-System, a lot of entries occur on the Transport-Package, if I look in se01 (and this query or this element was already transported).
    <b>How can I find out, to which Queries all these entries count?</b>
    (I want to pick up these elements like 0H0UP5JXOVGJA477232YU92Q2 and <b>find the queryname</b> and / or the object-name)
    I tried to do this via the Metadata-Repository and V_ELTDIR_TXT, but in that way I get no response.
    T<i><b>hanks for your answer,</b></i>
    Thomas

    Hello,
    does anybody has a good solution to find out, what and which object it is (if you look to a bex-transport in se01), independet if CKY, REP, VAR ....?
    With your suggest tables it is necessary to go into all 4 tables --- i would prefer to have a global solution.
    Thanks in advance,
    Thomas

  • Using Powershell (or console) to find all objects in maintenance mode?

    Hi,
    I have stumbled across the fact that aside from a handful of servers that have been put into pretty much unlimited MM rather than fix them a previous admin has put loads of individual objects such as disk drives, network cards etc. in long MM.
    I am trying work out an easy way of seeing the server associated with the actual disk, card etc.. I am using -
    Get-SCOMMonitoringObject | where-object {$_.InMaintenanceMode -eq $true}
    This does list everything such as -
    Success                True        C:                                        
    Uninitialized          True        Local Area Connection                     
    Uninitialized          True        Memory
    but I am not sure how I then link that to an actual server so I can take it out of MM?
    I am guessing I could use PowerShell to take all monitors out of MM for instance but dont really want to do that
    thanks!

    Hi,
    More details about command Get-SCOMMaintenanceMode:
    http://technet.microsoft.com/en-us/library/hh920235(v=sc.20).aspx
    Regards,
    Yan Li
    Regards, Yan Li

  • ResolveNodes doesn't find all nodes

    Hi there,
    I would like to find all text fields with a specific name in my form (and do things with them...).
    Funny thing is: I sometimes get only one hit or no hits at all. I never managed to get the correct whole list of fields. Am I doing something wrong?
    My code is (here in the form-ready event):
    var arrayFields = xfa.resolveNodes("myField[*]");
    if (arrayFields == null) {
        xfa.host.messageBox("nothing found");
    else {
        xfa.host.messageBox(String("Number of Fields found: " + arrayFields.length));
        for (var iFieldCounter = 0; iFieldCounter < arrayFields.length; iFieldCounter++) {
            xfa.host.messageBox( arrayFields.item(iFieldCounter).somExpression);
        } // for iFieldCounter
    } // else some result
    PS. I have a little sample form ready. Yet I don't find a way to upload it to the forum.
    Uli

    [email protected] wrote:
    As resolveNodes has an issue with returning objects located in subforms below $template.#subform.#subform[*], you're left with traversing the dom tree yourself.
    Thanks for that information. Saved me from trying things for ever.
    I wrote this function "resolveNodesFixed()" instead. Whoever has the same problem in the future may try it this way:
    var arrayFields = resolveNodesFixed("myField");
    if (arrayFields == null) {
        xfa.host.messageBox("nothing found");
    else {
        xfa.host.messageBox(String("Number of Fields found: " + arrayFields.length));
        for (var iFieldCounter = 0; iFieldCounter < arrayFields.length; iFieldCounter++) {
            xfa.host.messageBox( arrayFields[iFieldCounter].somExpression);
        } // for iFieldCounter
    } // else some result
    function resolveNodesFixed(sObjectName) {
        // Finds all objects by the name of sObjectName starting from the top.
        // Parameters:
        //        sObjectName: Name of the searched for object
        // Result:
        //         returns an array of found objects. It may be empty.
        arrayHits = new Array();
        traverseForm(xfa.form, arrayHits, sObjectName);
        return arrayHits;
    } // function resolveNodesFixed()
    function traverseForm(oFormNode, arrayHits, sObjectName) {
        // runs thru all nodes of the form and adds every node with the name "sObjectName" to arrayHits
        // Parameters:
        //        oFormNode:   starting node. From this node downwards this function searches for nodes.
        //        arrayHits:   array to add the found nodes to
        //        sObjectName: Name of the searched for object
        // Result:
        //         returns true if everything is all right
        try {
            //xfa.host.messageBox(oFormNode.somExpression + " - " + oFormNode.nodes.length);
            for (var iIndexChildObject = 0; iIndexChildObject < oFormNode.nodes.length; ++iIndexChildObject) {
                var oChild = oFormNode.nodes.item(iIndexChildObject);
                if (oChild.name == sObjectName) {
                    arrayHits.push(oChild);
                }  // if oChild.className == sObjectName
                if (oChild.isContainer) {
                    // this node appears to be a subform. Recursivly we check this subform's sub nodes.
                    traverseForm(oChild, arrayHits, sObjectName); // if the node contains subnodes make a recursive call to the function
                } // if oChild.isContainer
            } // for iIndexChildObject
        } // try
        catch (e) {
          console.println("Error: " + e);
          return false;
        } // catch
        return true;
    } // function traverseForm()

  • Rename SAP username - Find all references in the system

    Hi all,
    we want to rename (copy and create new sap user id) in our SAP system.
    Now we have to find all objects and relationships where the old users are specified.
    Is there a way how to find all program where the users are specified?
    Z-Programs where users are specified?
    Z-Customizing tables where users are specified?
    Customizing settings where users are specified?
    Any ideas?
    regards

    >
    CC_BC Team wrote:
    > we want to rename (copy and create new sap user id) in our SAP system.
    > Is there a way how to find all program where the users are specified?
    > Z-Programs where users are specified?
    > Z-Customizing tables where users are specified?
    > Customizing settings where users are specified?
    > Any ideas?
    > regards
    Last time one of our user changed her last name we create new user id for her and then locked and deleted old account.
    I don't think its possible to change username from all documents/objects/change documents which users has created under his/her id. The best, and the only way I think is to create new user id and delete/lock old one.
    Regards,
    Pawan.
    PS: profile parameters and favourites can be copied from old user id to new or any other user id.
    Edited by: Pawan Kesari on Aug 17, 2010 8:21 PM

  • How to find sql objects in folder having Ansi_Nulls OFF?

    I have a folder having thousands of stored procedures and functions. Some of those procs and functions havent been deployed to database.
    Is there any way i can find all objects in that folder having ansi nulls off? 

    Check http://helpdeskgeek.com/how-to/search-inside-multiple-text-files-at-once/
    If you have Visual Studio installed, check
    http://msdn.microsoft.com/en-us/library/aa264360(v=vs.60).aspx
    For every expert, there is an equal and opposite expert. - Becker's Law
    My blog
    My TechNet articles

  • How to find all those list of SAP standard and custom objects that are changed from a specific point of time

    Hi all,
    Please let me know the process to track or find all the SAP Standard and custom objects. that got changed from a specific point of time.
    Is there any function module or any table where this change log is maintained.?
    I just only need the details ,wheather that SAP standard or Custom object has got changed or not.
    Thanks in advance

    Hi RK v ,
    I really don't know what your actual requirement is , but if you want to know the objects as per the modification , then transport request will be much help to you .
    Have a look into table E070 and E071 .
    Regards ,
    Yogendra Bhaskar

  • Newbie: How can find all unused objects in XI ?

    How can I find all unused objects in XI Integration Repository? 
    Thanks,
    Badari

    Hi,
    Have a look at these thread, it might be helpful to you
    XI Server Object Cleanup
    How to delete Integration Repository Objects?
    Thanks,
    Pooja
    ps: please mark helpful answers

  • Find all Connector Space Objects That Were Provisioned

    I'm trying to run a query on the FIM Synchronization Database to find all of the objects in a connectorspace that were created there via provisioning rules. Some objects in the connectorspace have joined and some have been created via provisioning but I
    can't find the field in the FIM Sync DB for where this is specified. Anyone know how I can pull this information?
    Cheers,
    Dan

    Thanks Sameera. It's part of a larger query so it would be great if I could find out where it is in the Database. I've looked all through it and joined everything I can. I thought it might be stored in the connector space hologram data which is encrypted
    in the db so I checked that with PowerShell and wmi but couldn't get anything out of that either. I'll probably just have to run the query I have and then link it up with the connection information in excel like you've described. Thanks again.

  • Program or a Report name to find all the objects in a query?

    Dear People,
    Could anyone help me in finding out the program or a report name thorugh which I can find all the objects related to a particular query?
    Thanks in Advance!
    Regards,
    Vinoth V

    Hi,
    RSRQ_QUERYDEFINITION is a program to give all details about query if you executed it in SE38.
    And similarly tcode RSRT1 and RSRT used to execute the queries.
    Tcode RSRREPDIR to know the Query execution time and details.
    Hope helps out,
    Thanks-RK

  • How to find all the objects by Module.

    Hey all,
    Can any one please help me in finding all the objects by Module.
    I need to have all the objects(like app engines, records, fields, file layouts, etc,.) in AP, AM, GL, BI, AR.
    thank you,
    Bye.

    You can use the OwnerID field as a starting point. The reason why i say that is because there are some objects that cross-over between more than one module.
    http://www.CompShack.com

  • FrameMaker 10 - Finding all graphics in a book with a Object Properties Scaling equal to 0%?

    Is there a way in FrameMaker 10 in the book to quickly find all imported graphics (.bmp, .cgm, .jpg, & .wmf) that are out-of-aspect ratio or where the Object Properties Scaling equals 0%?
    I import a lot of graphic (around a 100 or so) in FrameMaker 10 and I would like to be reassured that all imported graphic have the correct aspect ratio, and find any that are wrong quickly.
    I would like to be able to do this search in the Book format rather than each section.
    Is there a way to do this?
    Thanks!

    Denis, this would require scripting. ExtendScript would likely be the first choice and would be perfect for the job. Given that you want to operate on the whole book at once, the script would be a little bit longer, so you might not get someone to post it here for free. I would consider it because it would be a nice addition to the samples on my website, but I can't do it right this minute. If no one offers for free, hit me up in a day or two and I might be able to accommodate  you.
    One question though... are you really looking to verify the aspect ratio? This could be a considerably more complicated task. FrameMaker doesn't save the original ratio, so you would need to reimport the graphic into some other scratchpad area, calculate the aspect ratio, then compare it to the place of reference. I'm not sure that I could go that far.
    Alex, I think you may have misunderstood the question. Also, it's not even clear if these are structured files, and if so, if there is a structured application to save as XML.
    Russ

  • Find all system and object privs granted to a user

    I need a query to find out all sys and ibject qyery given to a user. This is because a user was able to query all_directories few days ago in production instance, now he is unable to do it.
    I found a query to find all roles inside a role. This role "APPS_QUERY_ROLE" has another 25 roles inside it. I want a query which will drill down to each role and "role within a role" to find all privileges associated to a role and hence to the user.

    This may be helpful to you :
    SYS@orcl> select 'create role ' || role || ';'
      2  from dba_roles
      3  where role = '&&role';
    Enter value for role: APPS_QUERY_ROLE      <------Make sure it should be in CAPS
    old   3: where role = '&&role'
    new   3: where role = 'APPS_QUERY_ROLE'
    no rows selected
    SYS@orcl> select 'grant ' || privilege || ' to &&role' ||
      2  decode(admin_option,'YES',' with admin option;','NO',';')
      3  from role_sys_privs
      4  where role = '&&role';
    old   1: select 'grant ' || privilege || ' to &&role' ||
    new   1: select 'grant ' || privilege || ' to APPS_QUERY_ROLE' ||
    old   4: where role = '&&role'
    new   4: where role = 'APPS_QUERY_ROLE'
    no rows selected
    SYS@orcl> select 'grant ' || privilege || ' on ' || owner || '.' || table_name
      2  || ' to &&role ' || decode(grantable,'YES','with grant option;','NO',';')
      3  from role_tab_privs
      4  where role = '&&role';
    old   2: || ' to &&role ' || decode(grantable,'YES','with grant option;','NO',';')
    new   2: || ' to APPS_QUERY_ROLE ' || decode(grantable,'YES','with grant option;','NO',';')
    old   4: where role = '&&role'
    new   4: where role = 'APPS_QUERY_ROLE'
    no rows selected
    SYS@orcl>Source:Re: Help to Generate Role Creation Script
    Regards
    Girish Sharma

  • Keeps finding a "Object" not the real type.. I am really lost.. :D

    The calls to other objects work fine, I have testing all of them.. but! when I compile I get a error about finding a "object" type and not a String type at
    for(String blackStone : blackUnits.keySet())
                   if( getSetLib(blackStone) == 0 ) { removeSet.add(blackStone); }
             }   this is the whole class
    import java.util.ArrayList;
    import java.util.HashMap;
    import java.util.HashSet;
    import java.util.Set;
    public class Stat
        private Token[][] board;
        private int bSize;
        private HashMap<String, HashSet> unitsWhite;
        private HashMap<String, HashSet> unitsBlack;
        double last;
        public Stat(Token[][] goBoard, int size)
            board = goBoard;
            bSize = size;
            unitsWhite = new HashMap< String , HashSet>();
            unitsBlack = new HashMap< String , HashSet>();
            last = bSize -1;
         * Delimiter is /
        public HashSet getLib(int x , int y)
            HashSet liberties = new HashSet<String>();
            //error catch
            if(board[x][y] == null){return liberties;}
            int tempX = x;
            int tempY = y;
            //error catch for out of rage if size ect..
            for(int i = 0 , liby = y ,libx = x ; i <= 3; i++)
                if(i == 0){libx = -1; liby = 0;}
                if(i == 1){libx = 0; liby = -1;}
                if(i == 2){libx = 1; liby = 0;}
                if(i == 3){libx = 0; liby = 1;}
                tempX = x+libx;
                tempY = y+liby;
                if(tempX >= 0 || tempY >= 0)
                    if( tempX <= last || tempY <= last )   
                         if( (tempX < 0 || tempY < 0) || ( tempX >= last || tempY >= last ) )
                           tempX = 0;
                           tempY = 0;
                         else
                            if( board[tempX][tempY] == null) { liberties.add(tempX+"/"+tempY); }
            return liberties;  
        public void getTer()
        public void checkForCaptured()
            Token black = null;
            Token white = null;
            HashMap blackUnits;
            HashMap whiteUnits; 
            HashSet removeSet ;
            removeSet = new HashSet<String>();
            //look for a Token on the board and if you find one look for any dead  Tokens
            //looks for a Token
            for(int x=0; x < bSize;x++)
              { for(int y=0 ; y < bSize   ;y++)
               { if(board[x][y] != null)
                   if (black == null)if( board[x][y].getColor().equals("black") ) black =  board[y][x];
                   if (white == null)if( board[x][y].getColor().equals("white") ) white =  board[y][x];
            System.out.println("this is black tokens color" +black.getColor());
            //looks for a dead unit
            if(black != null)
             { blackUnits = black.getUnits();
               System.out.println("black :" +blackUnits.keySet().size() ) ;
               for(String blackStone : blackUnits.keySet())
                   if( getSetLib(blackStone) == 0 ) { removeSet.add(blackStone); }
            if(white != null)
            { whiteUnits = white.getUnits();
                System.out.println(" white: "+whiteUnits.keySet().size() );
              for( String whiteStone : whiteUnits.keySet() )
               { if( getSetLib(whiteStone) == 0 ) { removeSet.add(whiteStone); } }
            board.removeUnitsSet(removeSet);    
         public int getSetLib(HashSet Units)
             return 0;
    }someone point me in the correct direction PLZ! I don't mind RTFM if you give me a FM and page/line to look at.
    THANKS!
    Message was edited by:
    monji112000

    The compiler doesn't know that you're only putting Strings in as keys. HashMap takes references to Object as keys and hence returns references to Object in keySet(). Note, however, that the object itself is still what you put in there. But the compiler only has the declared return type of the method to look at.
    // pre 1.5
    for (Iterator iter = set.iterator(); iter.hasNext();) {
        String key = (String)iter.next(); // cast Object to String. Only works if you actually put a String in
        // do stuff with key
    // 1.5, if you don't use generics
    for (Object obj : set) {
        String key = (String)obj;
        // do stuff with key
    // 1.5, with generics
    Set<String> set = ...;
    for (String key : set) {
        // do stuff with key
    }Since you have a Map, you'll have Map<String, SomeValueType>.
    http://java.sun.com/j2se/1.5.0/docs/guide/language/generics.html
    http://java.sun.com/j2se/1.5/pdf/generics-tutorial.pdf

Maybe you are looking for