Query regarding Schema objects

Hi All,
I would like to know,
is it possible to retrieve the Which Schema objects (Procedures/Packages/Functions) are using same table for Eg: "EMP" in all the schemas in any one of the instances (Eg : DEV/Test/PROD) ?
If possible , could you please let me know the process.

966949 wrote:
Hi All,
I would like to know,
is it possible to retrieve the Which Schema objects (Procedures/Packages/Functions) are using same table for Eg: "EMP" in all the schemas in any one of the instances (Eg : DEV/Test/PROD) ?
If possible , could you please let me know the process.Check DBA_DEPENDENCIES (but separately for all 3 environments)
Also, a crude way would be to scan DBA_SOURCE and check where all the table is used.

Similar Messages

  • Query regarding Authority object

    Hello Friends;
    I just wanna know why we check authorization on selection screen and What do u mean by authority objects?, Who creates It? What is the purpose behind creating it?? What transactions are there relating authority objects in SAP??
    And one more query is there
    See when we call any function module there are several parameters that it contains such as importing ,exporting, tables and exceptions ?? What is the exact use of exception parameters in that? How to handle those exception ...Is it before calling that function module or after ?? What is the syntax for it??
    Regards;
    Parag

    Exception are like errors so to use that in the FM we use raise command .
    Authorization is required ,assume u in Quality department and you are trying to execute a SD dept report which is as per rules not allowed so for that in abap we use Authorization object .
    Use this program for understanding DEMO_AUTHORITY_CHECK
    Transaction SU21 .
    PLease reward if useful.

  • Query regarding Form Object

    Dear All,
    In my Add On, I have many forms and I am using only one form object for all the forms. Is it permissible or I have to use different form objects for each form. When I am navigating from One form to other I am getting error as Invalid Form. In one case I am opening another(child) form from the parent form, but when I close the child form and click anything on the parent form I am getting error as Invalid Form. Please help me.
    Regards,
    Noor hussain
    Edited by: noor_023 on Feb 25, 2010 10:41 AM

    Hi,
    the error "Invalid Form" refers to the attempt to take a reference to a not existing form, like this:
    oForm = oSboApplication.Forms.Item("ThisFormUIDNotExists")
    Or probably you use e not correct reference to a form in order to reach an item, like this:
    ' oForm is not set properly
    oItem = oForm.Items.Item("TheItemUID")
    Please, post relevant code if this not help you.
    Regards.
    Carmine

  • Help in writing  query few schema objects  from another schema.

    Hi Gurus,
    Could some one help in writing an sql which will give list of all the object of a schema "genp" visible in another schema "genp_v" and "gen_con" there is an dblink and few grants on those schemas .
    i dont have the password of any of those users i have connected as sys and i can not change the password of any of those users..
    Any help on this is highly apprciated.
    Thanks in advance .

    could you please update me for all the objects apart from just the tables .
    thank you so much .. it was just out of my head at that moment .
    cheers

  • List the count of each schema objects.. schema wise sql query needed

    Hi Friends,
    i need a sql query which has to list the schema name along with the count of schema objects like tables,views,triggers.... order by schemaname
    Regards,
    DB

    Hi
    You can try this option if you use 11g .
    Get all the object types in your db.
    SELECT DISTINCT object_type
                 FROM dba_objects;Then include all the object types in to the below query.
    select *
      from (select owner, object_type, 1 CNT
              from dba_objects ) e
            pivot( sum(CNT) for object_type in
              ( 'INDEX','TYPE','VIEW','LIBRARY','TRIGGER','DIRECTORY','PACKAGE','QUEUE','PACKAGE BODY','TABLE PARTITION','PROCEDURE',
                'WINDOW','CLUSTER','LOB','FUNCTION','CONSUMER GROUP','CONTEXT','RULE','XML SCHEMA','SEQUENCE','INDEX PARTITION','OPERATOR',
                'EVALUATION CONTEXT','SCHEDULE','JOB','SCHEDULER GROUP','LOB PARTITION','JOB CLASS','INDEXTYPE','TABLE','TYPE BODY','RESOURCE PLAN',
                'TABLE SUBPARTITION','UNDEFINED','DESTINATION','SYNONYM','EDITION','PROGRAM','RULE SET' ) )       
    order by owner;Cheers
    Kanchana

  • A query regarding synchronised functions, using shared object

    Hi all.
    I have this little query, regarding the functions that are synchronised, based on accessing the lock to the object, which is being used for synchronizing.
    Ok, I will clear myself with the following example :
    class First
    int a;
    static int b;
    public void func_one()
    synchronized((Integer) a)
    { // function logic
    } // End of func_one
    public void func_two()
    synchronized((Integer) b)
    { / function logic
    } // End of func_two
    public static void func_three()
    synchronized((Integer) a)
    { // function logic
    } // End of func_three, WHICH IS ACTUALLY NOT ALLOWED,
    // just written here for completeness.
    public static void func_four()
    synchronized((Integer) b)
    { / function logic
    } // End of func_four
    First obj1 = new First();
    First obj2 = new First();
    Note that the four functions are different on the following criteria :
    a) Whether the function is static or non-static.
    b) Whether the object on which synchronization is based is a static, or a non-static member of the class.
    Now, first my-thoughts; kindly correct me if I am wrong :
    a) In case 1, we have a non-static function, synchronized on a non-static object. Thus, effectively, there is no-synchronisation, since in case obj1 and obj2 happen to call the func_one at the same time, obj1 will obtain lock for obj1.a; and obj2 will obtain lock to obj2.a; and both can go inside the supposed-to-be-synchronized-function-but-actually-is-not merrily.
    Kindly correct me I am wrong anywhere in the above.
    b) In case 2, we have a non-static function, synchronized on a static object. Here, again if obj1, and obj2 happen to call the function at the same time, obj1 will try to obtain lock for obj1.a; while obj2 will try to obtain lock for obj2.a. However, since obj1.a and obj2.a are the same, thus we will indeed obtain sychronisation.
    Kindly correct me I am wrong anywhere in the above.
    c) In case 3, we have a static function , synchronized on a non-static object. However, Java does not allow functions of this type, so we may safely move forward.
    d) In case 4, we have a static function, synchronized on a static object.
    Here, again if obj1, and obj2 happen to call the function at the same time, obj1 will try to obtain lock for obj1.a; while obj2 will try to obtain lock for obj2.a. However, since obj1.a and obj2.a are the same, thus we will indeed obtain sychronisation. But we are only partly done for this case.
    First, Kindly correct me I am wrong anywhere in the above.
    Now, I have a query : what happens if the call is made in a classically static manner, i.e. using the statement "First.func_four;".
    Another query : so far we have been assuming that the only objects contending for the synchronized function are obj1, and obj2, in a single thread. Now, consider this, suppose we have the same reference obj1, in two threads, and the call "obj1.func_four;" happens to occur at the same time from each of these threads. Thus, we have obj1 rying to obtain lock for obj1.a; and again obj1 trying to obtain lock for obj1.a, which are the same locks. So, if obj1.a of the first thread obtains the lock, then it will enter the function no-doubt, but the call from the second thread will also succeed. Thus, effectively, our synchronisation is broken.
    Or am I being dumb ?
    Looking forward to replies..
    Ashutosh

    a) In case 1, we have a non-static function, synchronized on a non-static object. Thus, effectively, there is no-synchronisationThere is no synchronization between distinct First objects, but that's what you specified. Apart from the coding bug noted below, there would be synchronization between different threads using the same instance of First.
    b) In case 2, we have a non-static function, synchronized on a static object. Here, again if obj1, and obj2 happen to call the function at the same time, obj1 will try to obtain lock for obj1.a; while obj2 will try to obtain lock for obj2.a.obj1/2 don't call methods or try to obtain locks. The two different threads do that. And you mean First.b, not obj1.b and obj2.b, but see also below.
    d) In case 4, we have a static function, synchronized on a static object. Here, again if obj1, and obj2 happen to call the function at the same time, obj1 will try to obtain lock for obj1.a; while obj2 will try to obtain lock for obj2.a.Again, obj1/2 don't call methods or try to obtain locks. The two different threads do that. And again, you mean First.b. obj1.b and obj2.b are the same as First.b. Does that make it clearer?
    Now, I have a query : what happens if the call is made in a classically static manner, i.e. using the statement "First.func_four;".That's what happens in any case whether you write obj1.func_four(), obj2.func)four(), or First.func_four(). All these are identical when func_four(0 is static.
    Now, consider this, suppose we have the same reference obj1, in two threads, and the call "obj1.func_four;" happens to occur at the same time from each of these threads. Thus, we have obj1 rying to obtain lock for obj1.aNo we don't, we have a thread trying to obtain the lock on First.b.
    and again obj1 trying to obtain lock for obj1.aYou mean obj2 and First.b, but obj2 doesn't obtain the lock, the thread does.
    which are the same locks. So, if obj1.a of the first thread obtains the lock, then it will enter the function no-doubt, but the call from the second thread will also succeed.Of course it won't. Your reasoning here makes zero sense..Once First.b is locked it is locked. End of story.
    Thus, effectively, our synchronisation is broken.No it isn't. The second thread will wait on the same First.b object that the first thread has locked.
    However in any case you have a much bigger problem here. You're autoboxing your local 'int' variable to a possibly brand-new Integer object every call, so there may be no synchronization at all.
    You need:
    Object a = new Object();
    static Object b = new Object();

  • Query regarding Insurance of the objects in plant

    Dear Sir,
                In my Implemenatation project i have the query regarding the insurance of the fleet object(Transporting Vechle) and Life insurance.
         As th eprocedure is when the object's insurance is finished the Note is sent by the respective department head to MD and finance department.Later it is aproved by MD and request is forwarded to finance dept and later the  finance dept issue the cheque to the insurance Company.
                      even During Breakdown(Accident) of the Vechile the Note is sent and same procedure is followed as above please let me know the standard SAP Procedure that i have to use in SAP so that Transaction would be Easy for me and my client.
    Quick Asnwer/Valuable answer will be awarded  good point s
    hope the answer will reached very soon
    Regards
    Girish

    Hi,
    This should work:
    select table_name, owner from dba_tab_cols
      where table_name = 'EMP'
      and column_name = 'JOB'
      and column_id != 3;//Johan

  • Not able to select the other schema objects mrtadata

    Hi,
    My function returns the matadata of a table (xml format) in the current schema but unable return output of another schema objects. I have the privileges of export full database, import full database and select_catalog_role also.
    It doesn't throw any error just throws empty xml.
    my code is...
    CREATE OR REPLACE FUNCTION TUNER.F_DBEG3(V_Schema VARCHAR2, V_Table VARCHAR2)
    RETURN XMLTYPE
    AS
    Handle NUMBER; --handle returned by OPEN
    V_First_Part XMLTYPE;
    V_Next_Part XMLTYPE;
    V_Output_Total XMLTYPE;
    V_Cnt NUMBER := 0;
    BEGIN
    DBMS_OUTPUT.PUT_LINE('START THE PROGM');
    Handle := DBMS_METADATA.OPEN('DATABASE_EXPORT');
    DBMS_OUTPUT.PUT_LINE('Open the handle');
    DBMS_METADATA.SET_COUNT(HANDLE, 1000);
    DBMS_METADATA.set_filter (Handle, 'INCLUDE_PATH_EXPR', '=''TABLE''');
    DBMS_METADATA.SET_FILTER(Handle,'NAME', V_Schema,'SCHEMA');
    DBMS_METADATA.SET_FILTER(Handle,'NAME', V_Table,'TABLE');
    DBMS_OUTPUT.PUT_LINE('Filter the required objects');
    LOOP
    DBMS_OUTPUT.PUT_LINE('Start the loop');
    DECLARE
    no_mvlog exception;
    pragma exception_init( no_mvlog, -31608 );
    BEGIN
    V_First_Part := DBMS_METADATA.FETCH_XML(Handle);
    EXCEPTION
    WHEN no_mvlog THEN
    EXIT;
    DBMS_OUTPUT.PUT_LINE ('No mv log');
    END;
    IF V_First_Part IS NOT NULL THEN
    DBMS_OUTPUT.PUT_LINE('First Count is '|| v_cnt);
    DBMS_OUTPUT.PUT_LINE('Into the process ');
    else
    DBMS_OUTPUT.PUT_LINE('Exit the loop ');
    exit;
    end if;
    IF V_Cnt = 0 THEN
    V_Output_Total := V_First_Part;
    DBMS_OUTPUT.PUT_LINE('track the metadata in xml form ');
    ELSE
    IF V_Cnt is not null and V_Cnt > 0 then
    SELECT EXTRACT(V_First_Part, '/ROWSET/ROW') INTO V_Next_Part FROM DUAL;
    SELECT APPENDCHILDXML(V_Output_Total,'/ROWSET',V_Next_Part) INTO V_Output_Total FROM DUAL;
    DBMS_OUTPUT.PUT_LINE('combining the child xml''s ');
    END IF;
    END IF;
    V_Cnt := V_Cnt +1;
    DBMS_OUTPUT.PUT_LINE(' Last Count is '|| v_cnt);
    END LOOP;
    DBMS_OUTPUT.PUT_LINE('converted into xml');
    return v_output_TOTAL;
    DBMS_METADATA.CLOSE(Handle);
    EXCEPTION
    WHEN NO_DATA_FOUND
    THEN
    RAISE_APPLICATION_ERROR (
    -20001,
    'Please check! ' || V_Table || ' not an object'
    WHEN OTHERS
    THEN
    DECLARE
    SQL_ERROR NUMBER := SQLCODE;
    SQL_ERRMESS VARCHAR2 (250) := SUBSTR (SQLERRM, 1, 200);
    BEGIN
    DBMS_OUTPUT.PUT_LINE (SQL_ERROR || 'Message : ' || sql_errmess);
    END;
    END;
    but when i use like below i got o/p.
    SELECT DBMS_METADATA.GET_XML('TABLE','ACT_RAP_T','EMACH') FROM DUAL;
    Please tell me where iam wrong.
    regards,
    Madhavi.

    Can you let me know is this problem for the components which are in containers only..
    Yes, as Charles said, the problem is for grouping/ungrouping in containers.  If you find otherwise, please let us know.
    <br>
    This problem you will be looking for next iteration, so is it going to be Service Pack or some Hot Fix..
    Is it possible for us to know the issues which will be looked for the next iteration so that we can know what are the issues current version has so that we have the good idea..
    Correct, it will be for Fix Pack 1 (size between a Service Pack and a Hot Fix).
    We don't have a list of issues.  I don't believe it's procedure to disseminate such information.  Usually we give the information on an individual issue basis.  For instance, this issue is slated for FP1.
    <br>
    Javier

  • Could not get schema Object:java.sql.SQLSyntaxErrorException ora-904

    All of a sudden I get
    Could not get schema Object:java.sql.SQLSyntaxErrorException: ORA-00904: "SYS"."O"."NAME": ongeldige ID
    when doing anything in the tables tree in the connections pane
    The only thing I set recently is pga_aggregate_target
    Environment
    Oracle 11.2.0.1
    OS Windows Vista Ultimate sp2
    Sql developer 2.1.1.64.39 with its own JDK
    As the download links on OTN are broken I can not upgrade, and I'd rather not work in command line sqlplus.
    Help!!!
    Sybrand Bakker
    Senior Oracle DBA

    My copy of sqldeveloper isn't located in that directory. Would that matter?
    In the mean time I have disabled filtering the tables node. Opening the tables node doesn't result in exceptions anymore.
    Now, when I click on any table in that node I get 4 identical ora-904 error messages for sys.o.name for any table.
    Apparently it is querying either the all_objects view and it thinks it is querying sys.obj$.
    I didn't yet enable sql_trace for the session, I'm more or less giving up on sqldeveloper. I can not use the space bar in any datagrid, sqldeveloper has always been extreemly unresponsive when navigating the schema browser (as opposed to Toad), etc, etc. Too bad I bought Sue Harpers book, but I think I will be de-installing sqldeveloper soon.
    Sybrand Bakker
    Senior Oracle DBA

  • JPA query by entity/object ?

    I am trying to write an abstract API which dynamically assigns any Entity Class that needs to be persisted and retrieved using the Entity Manager.
    Saving into the database is not a problem, I just do entityManager.save(Class) and it works for any class that needs to be persisted.
    However, when querying for the object based upon the attributes, I want to avoid naming particular attributes and want to use the Entity class's attributes against itself for querying.
    For example, the client program will say something like this to query by name and age of a Person:
    -------calling (client) program: ---
    Person p = << get from UI, not saved yet, no Id but has all other attributes like name and age etc. >>
    List<Person> persons = dao.getAllThatMatch(p);
    --- end client Program --
    --- DAO class ---
    List<T> getAllThatMatch(T t) {  //note that expectation is that returned is a list of Object which is the same as the querying object
    List<T> entityList = em.someFinderMethod(t);
    //the someFinderMethod method should automatically query for all Person objects that match the attributes provided by the object of Person supplied as criteria
    //NOTE: there is no attribute mentioned extensively like name, age etc.
    return entityList ;
    -- end DAO class --
    Edited by: user7626479 on Feb 6, 2013 3:55 PM
    Edited by: user7626479 on Feb 6, 2013 3:55 PM

    Query by example is not included in the JPA standard, but it is possible to do with EclipseLink.
    See http://wiki.eclipse.org/EclipseLink/Examples/JPA/ORMQueries#Query_By_Example
    for how to use query by example with native EclipseLink queries. To execute a native query through JPA, you will need to call createQuery(DatabaseQuery query) on the org.eclipse.persistence.jpa;JpaEntityManager obtained from the javax.persistence.EntityManager instance by calling getDelegate() or unwrap.
    Best Regards,
    Chris

  • Access schema objects without having to specify the user.

    I've just created a role in a schema and assigned some priveleges.Then I created a user and granted the role to it. But as the newly created user is not the owner of the schema when I say a simle select query like this:
    SELECT EMLOYEENAME FROM EMPLOYEES
    I get "table or view does not exist" error. Is there a way I can wirte refer to objects in this schema without having to indicate the owner. So instead of writing SCOT.EMPLOYEES I want to write just EMPLOYEES.

    >
    I get "table or view does not exist" error. Is there a way I can wirte refer to objects in this schema without having to indicate the owner. So instead of writing SCOT.EMPLOYEES I want to write just EMPLOYEES.
    >
    Create a public synonym for the object.
    CREATE PUBLIC SYNONYM EMP32 FOR SCOTT.EMP;Then you do not need to specify the schema.
    --- edited to add doc reference
    See CREATE SYNONYM in the SQL Language doc
    http://docs.oracle.com/cd/B28359_01/server.111/b28286/statements_7001.htm
    >
    CREATE SYNONYM Purpose
    Use the CREATE SYNONYM statement to create a synonym, which is an alternative name for a table, view, sequence, operator, procedure, stored function, package, materialized view, Java class schema object, user-defined object type, or another synonym. A synonym places a dependency on its target object and becomes invalid if the target object is changed or dropped.
    >
    Edited by: rp0428 on Apr 5, 2012 10:56 PM

  • Error "The Query Returned no Objects" while exporting Universe in UDT?

    Hi,
    I have created a Universe on top of BEx Query using UDT in SAP BO 4.1 and tried to Export the Universe to Repository the following error is appearing.
    "The Query Returned no Objects" so "The Universe couldn't be exported".
    Could you please suggest me what could be the issue and how to resolve this.
    Thanks & Regards,
    Ramana,
    +91 8008665199.

    What version of Oracle 9i are you using? Do you have a standard 'NLS_LANG' environment variable set on client's machines? Or do you set it to different values on different machines?
    Here is one of way you could get around it.
    Could you specify the export parameter 'STATISTICS=NONE' while exporting the table data?
    Try this and see.
    If this is successful, you could use the import utility as usual. You could always compute or estimate statistics on the table after import.

  • Query on system object

    hi everyone ,
                         i have a query regarding this system object. I have created a system object and assigned it to a user to log on to sap R/3 .its working fine.now my question is i have another user on the R/3 side .now i want to log on to the R/3 from the portal using this second user can i use the same system object created for the first user or should i create a new system object."can a system object be assigned to 2 or more users?"
    Thanks in advance,
    regards,
    Tilak

    hi Arun ,
                thanks for ur reply,well i have done the user mapping in the same way as u told.but my doubt is like for suppose i have a user named p1 on my portal side & two users named r1 & r2 on the R/3 side .now i have created a system object named sys1 and assigned it to p1 specifying
    username:r1
    pwd:*******
    in the user mapping.
    now i want want the same p1 to connect from the portal to R/3 using
    username:r2
    pwd:*******
    now can i use the same system object or should i create another system object.
    regards,
    tilak.

  • How can I get schema object in entityImpl class?

    Hi everybody,
    I want to get schema object name (name of DB table behind of entity) in my entityImpl class from ADF API. I tried this But I can't.
    please help me.
    with my best regards.

    try String s = this.getEntityDef().getSource();Timo

  • Non Schema Objects

    Hi ,
    i was going through oracle 10 g SQL documentation in which i read about non schema objects such as users, tablespace etc. could anyone please let me know how to query them .

    Dictionary views names are all stored in the DICT view.
    Dictionary views are divided in 4 main groups:
    DBA_ --> all objects of a given type
    ALL_ --> all objects of a given type accessible by the current user
    USER_ --> all objects of a given type owned by the current user
    V$ --> all objects of a given type that can change dinamically (also without an explicit user action)
    Tablespaces can be queried this way:
    Select * from dba_tablespacesUsers this way
    Select * from dba_usersMax
    [My Italian Oracle blog| http://oracleitalia.wordpress.com/2010/02/07/aggiornare-una-tabella-con-listruzione-merge/]

Maybe you are looking for

  • How to make an exe file from a java class file

    i know one of the java's most powerfull properties is plataform independent, but if i have done one application (with GUI) that i want to run on Win32 for example, if anyone knows how to make it please send me a message to [email protected], how i kn

  • Ghosted "Include Linked Files" box when saving artwork?

    Why will Illustrator CS5 not allow me to check the "Include Linked Files" box when saving my artwork as AI or EPS?

  • Mail for Exchange with error "Body Fetch Message T...

    Hi, I am just got the Nokia E71, and had installed the Mail for Exchange version 2.0.5(5), and had set all the required configuration (Exchange Server Name, UserName, Passowrd, Domain). But when I do the SYNC, it got the "System Error" from the log,

  • Flash Player Confusion

    Hi, Can anyone explain the differences between each of the Flash players (Flash plugins, ActiveX control, and the standalone Flash Players)? I have a server with Flash 4 and the Standalone player installed and have installed Flash player v8 using the

  • Self portrait  in Illustrator

    I am working on a self portrait in illustrator.  I have done some of the work using the pencil tool.  How do I close the paths with the pen tool.