How to find invalid views across schemas
I just started on a project that, well let's put it this way, has a messy database. It has multiple schemas and contains many views, synonyms and database links.
I want to add a column to a table, but I want to make sure
this doesn't invalidate any views somewhere in the database.
Is there a way to check for invalid views across multiple schemas? Or better yet, how to find out beforehand what views in what schemas look at the table?
Thanks,
Tim
To find out, where the table is used you can select:
select owner,name,type
from all_dependencies
where referenced_owner = (select user from dual)
and referenced_name = 'TABLENAME'
and referenced_type = 'TABLE'
It not only shows Views but also show�s if the table is used inside a trigger and so on.
To find out, what objects are invalid:
select owner, object_name, object_type
from all_objects
where status = 'INVALID';
regards
Anna
Similar Messages
-
How to find Materialized views in OBIEE
Hi gurus,
how to find materialized views which are used in OBIEE?
Do We see them in view log session after running a report?
I have a requirement to find MV'S.Do we use MV'S in OBIEE?What is the use of MV?
Kindly answer me.
Thanks,
sivaRefer
http://gerardnico.com/wiki/database/oracle/materialized_view -
How to find invalid objects in specific schema?
Please let me know hoe to find invalid objects in specific schema such as SYS?
Please help and guide
Thanks,
Waheed.Ok i get invalid objects now if i want to delete these invalid objects which query i have to run?
also let me know there is no harm if i del invalid objects from SYS schema?
Please help and guide
Thanks,
Waheed. -
How to find invalid statements(not syntax error) executed using v$ views
Hi
I want find invalid statements(not syntax error statements) that executed, when some of the applications runs in the server,
for eg: permissions denied, table/view doesn't exit .. etc
I could not able to find it in v$sql views. is there any other view that gives this information?V$ views only contain parsed statements, not incorrect ones.
Max -
Finding Invalid objects in schema
Dear All,
How to find all invalid objects in an paticular schema
Regards,
RajuHello Raju
SQL> select object_type,count(*) from user_objects where status = 'INVALID'
2 group by object_type;
OBJECT_TYPE COUNT(*)
PACKAGE BODY 4
PROCEDURE 61
VIEW 3
next, as sys
exec dbms_utility.compile_schema( 'ACCOUNTS' );
PL/SQL procedure successfully completed.
then,
connect accounts
SQL> select object_type,count(*) from user_objects where status = 'INVALID'
group by object_type;
OBJECT_TYPE COUNT(*)
PACKAGE BODY 1
PROCEDURE 182
VIEW 3
try this
Ravi
http://dbaoraclefaqs.blogspot.com/ -
How to Find the Explicitly Created Schemas in the Database?
Hi,
I am Using Oracle 11g Database R1 on Windows 2003 Server R2 , My Doubt is How Can i find the list of Schemas are explicitly created in the Database , We can Query this Tables DBA_USER Or SYS.USER$ to find the List of Available Schemas ( But it shows all implicity + Explicitly Created Schemas), I need the exact list of Schema Which created explicitly in the Database is there any Data Dictionary Views is Available , Please Advice .....
Thank You
ShanBut yes, you can get from below SQL :
select a.username,a.created from dba_users a,v$database b
where a.created > b.created;
Means, users which created after creation of database date. -
How to find materialized views in the materialized group
Hi,
I have create a materialized group view 'group1' that contained the following view : mv1 , mv2 and mv3.
Now i want to have the statement for find these view 'mv1 , mv2 and mv3' with the group 'group1'
thanks.ALL_REFRESH and ALL_REFRESH_CHILDREN
http://download.oracle.com/docs/cd/B19306_01/server.102/b14227/rarsnapviews.htm#REPMA027
Nicolas. -
Hi,
Please help me out to find a table that has viewname details of any transparent table.I searched few DD* tables but couldnt get one.Hi,
Click F1 on the table/ view you will get the table name and then go to transaction give this table name and click on Find Maintainance Dialog their you will get the views related to that table.
Regards,
IFF -
How to find the views created on a table..?
Hi all,
I am having one table name, EMP. I want to know what are the views created on this table. Is there any SQL query is there for this or any another
way to find it.
Thanks in advance.
PalYou can use ALL_DEPENDENCIES for that:
SQL> create view emp_v as select * from emp;
View created.
SQL> select name
2 , referenced_name
3 , referenced_type
4 from all_dependencies
5 where name = 'EMP_V';
NAME REFERENCED_NAME REFERENCED_TYPE
EMP_V EMP TABLE
1 row selected.
SQL> select name
2 , referenced_name
3 , referenced_type
4 from all_dependencies
5 where referenced_name = 'EMP';
NAME REFERENCED_NAME REFERENCED_TYPE
EMP_V EMP TABLE
EMP_TRG EMP TABLE
2 rows selected.
SQL> Keep in mind that it matters whether you restrict on NAME or on REFERENCED_NAME.
http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/statviews_1041.htm#sthref935
edit
Ah, spoonfeeding!
Don't you want him to learn something, and to become independent?Now you made me feel guilty ;) ( don't know what Saubhik posted originally, but anyway...)
I blame my currently terribly slow connection for that...
Anyway, OP, always start a quick search from the docs first.
Chances are you'll find your answer yourself.
Homes:
http://www.oracle.com/pls/db102/homepage
http://www.oracle.com/pls/db112/homepage
Edited by: hoek on Oct 15, 2010 2:53 PM -
How to find a view containing specified fields
Hello Guys,
I have got some fields of R/3 table based upon which i have to find View which has all the fields.
I know that we have to go to help.sap.com and search there, but where to go after that i am not sure.
Since i am new to BW , please guide me.
Regards,
Dolly>
adlins wrote:
> Hi Dolly,
>
> Go to R3 system, and click on 'where-used' list for those particular fields,
> in that you will get list of objects which are using this field,
>
> please ask if u need more help.
>
> --adlin
I am sorry my question is i know field names from R3 for example bukrs etc. which i want to have in my report.
But i do not know in which view they all are present. I want the to know the perticular view'name to create my report.
from help.sap.com where to search for same? -
How to find insert,update on schema
Hi,
I want to monitor insert,update or delete perform onparticular schema of the database .
your early repsone is appriciated.
Thanks in advance.user647572 wrote:
Thanks for your kind response .. it is very useful to me ...
sorry but i am using below query and
EXTENDED_TIMESTAMP as timestamp with timezone data type...
SELECT SQL_TEXT
FROM
DBA_COMMON_AUDIT_TRAIL
where EXTENDED_TIMESTAMP between to_date('20101016 10:30', 'yyyymmdd hh24:mi')
and to_date('20101016 11:00', 'yyyymmdd hh24:mi')
AND OBJECT_SCHEMA = 'JISPBILCORBILLINGPRD501'
AND UPPER(SQL_TEXT) LIKE UPPER('INSERT%')
it is taking more time to display result.
This is normal situation.Check sys.aud$ table,how much record contain this table?
You can delete old audit records as
DELETE FROM sys.aud$ WHERE timestamp# < SYSDATE -40;>
Please give me suggestion on it.. -
How to find the view/page name in portal
Hi All,
I am new in SAP. I have to customize a Compensation page in HR module.
Could some one help me to find out these things:
--- How can I find out the page/iview name from portal which I want to customized i.e. I am on HR module of compensation page and I want to know the name of iview/page name.
--- How can I start development for customization.
Any type of help will be highly appreciated.
thanks in advance,
-AnandHi,
The component name is FITV_POWL_TRIPS. check this help for more details: https://help.sap.com/erp2005_ehp_03/helpdata/EN/46/51dd0698075e3fe10000000a11466f/frameset.htm
hope this helps u,
Regards,
Kiran -
How to find duplicated files across users on the same mac
I have an iMac under 10,8,3 with different users. How can I find out the duplicated files ie same file under different users account ?
ThanksYou can't. Other user's files shouldn't be discoverable by an user. If they were, then the security model would be broken.
-
How to find rowcount of all schema all tables
Hi All,
Can someone let me know the rowcount of all the tables in all the schemas in Oracle Database.
Thanks
MaverickMaverick wrote:
Hi All,
Can someone let me know the rowcount of all the tables in all the schemas in Oracle Database.
Thanks
MaverickWith the limited information you provided, I will have two suggestions:
+1. Using DBA_TABLES+
You can gather the Database statistics using DBMS_STATS.GATHER_DATABASE_STATS; And then simply Query DBA_TABLES to sum the NUM_ROWS column grouping on OWNER column. This will yeild you the rowcounts of each of schemas.
+2. Count Rows by Query+
You can gather the Table rowcount, without using DBMS_STATS, using the below script:
select table_name,
to_number(extractvalue(xmltype(dbms_xmlgen.getxml('select count(*) X from '||table_name))
,'/ROWSET/ROW/X')) count
from dba_tables
where owner = 'owner'You will have to modify the script to meet your requirements; i.e. use the Table name and Owner from a Loop and to form a dynamic SQL. This will ascertain that you will get the latest row counts. But you will have to wait for a long time if the number of tables and the records in each tables are huge. I would rather suggest to have a quick snack meanwhile. ;)
But yes, It still comes down to the same question that others have asked "What are you planning to do with the Row count?". Are you comparing the schemas with the row count? If yes, then it is a wrong metric for comparison. -
Finding a View Object...
Hi All,
How to find a view Object in Controller Class...
Please let me know...Hi,
View object can be accessed through the page's Application module method.
E.g.
OAApplicationModule am1 = oapagecontext.getApplicationModule(oawebbean);
OAViewObject vo2 = (OAViewObject)am1.findViewObject("YOUR_VIEW_OBJECT_NAME");
Hope this helps.
Cheers,
AD
Maybe you are looking for
-
In version 5, how do I use the selection tool to move objects?
I can use the selection tool to select objects, but when I try to drag it, nothing happens. My workaround is to use the selection tool to select an object, and then use the transform tool to drag the object into its new position. Any help is greatly
-
My MacBook has seems A LOT SLOWER than usual the past couple of days. What happened and what can I do to fix it? Thanks! MacBook Mac OS X (10.4.10) 2.16 GHz Intel Core 2 Duo, 1GB of DDR2 SDRAM, 160 GB 5400-rpm hard drive
-
Living in australia using uk printer
Hi all, i have a deskjet f4580 which i purchased in the UK , i now live in Australia and when i went to purchase new ink cartridges ( HP 300) i was told i could not buy them here, is there anything i can do to the printer to make it compatible with A
-
In a macbook pro i7 2.66 with DDR3 1066 MHz ram, mid 2010 I can put two 8GB (1333 MHZ) ram each, I gained speed or recommend, or is it better for me to stay with 8GB, 4GB memory in two 1066 each
-
Where is the best place to ask questions about NetBeans 6 for Java?
When it comes to Java discussions, all I can think is this forum, but what about Java Desktop Applications using NetBeans IDE 6? Question/Query 1: I just like to ask how I can make the Database Application Template under the Java> Java Desktop Applic