DB view/table being accessed
Is there a system/database level trigger that will tell me which view/table is being accessed? I just need to know if a specific view/table is being queried.
Thanks.
You can create a db trigger to do that job.... or you can audit it...Every time it's accessed you can find a row in the sys.aud$ object...
Greetings...
Sim
Similar Messages
-
How to list table names accessed by a table base trigger
Hi all,
How can I list all the other tables being accessed by my table trigger?
Say for example: I am deleting a table, then its base trigger fires, it updates an audit log to capture the actions or maybe
select/insert/delete/update ing other more tables?
Thanks a lot.KinsaKaUy? wrote:
Hi all,
How can I list all the other tables being accessed by my table trigger?
Say for example: I am deleting a table, then its base trigger fires, it updates an audit log to capture the actions or maybe
select/insert/delete/update ing other more tables?
Thanks a lot.query DBA_DEPENDENCIES -
How to find out what is the name of table/view is being maintained in IMG?
Gurus,
Any general trick to find out what is the name of table/view is being maintained
by a given IMG item while configuring?
Thanks,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 do i count number of table being used in a view
Hi All,
I will be really thankful if anyone please let me know about the count of number of tables being used in a view. I am using Oracle 10g Release 2 on HP-UX(11.31).
In actual I have to find views in my database with more than 5 table in join.
Thank you
GursimranTry :
select count(*) from dba_dependencies
where name ='<view name>'
and owner = '<view owner>'
and referenced_type= 'TABLE';Example:
SQL> select * from v$version;
BANNER
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
SQL> show user;
USER is "HR"
SQL>
SQL> drop table t1 purge;
Table dropped.
SQL> drop table t2 purge;
Table dropped.
SQL> drop table t3 purge;
Table dropped.
SQL> drop view v;
View dropped.
SQL>
SQL> create table t1(x int);
Table created.
SQL> create table t2(y int);
Table created.
SQL> create table t3(z int);
Table created.
SQL> create view v as select x,y,z from t1,t2,t3;
View created.
SQL>
SQL> connect / as sysdba
ConnectÚ.
SQL> alter session set nls_language=english;
Session altered.
SQL>
SQL> select count(*) from dba_dependencies
2 where name ='V'
3 and owner = 'HR'
4 and referenced_type= 'TABLE';
COUNT(*)
3
SQL>Edited by: P. Forstmann on 26 juil. 2010 17:45 -
Business user needs to view tables with out SE16 access
Hi ,
There is a requirement where business user ( Data team) need to view some master and transactional data tables in production . But , as per our process , end users will not be given SE16 access .
Is there any solution where we can allow the end user to view tables with out SE16 access ?
Thanks in advance .
Thanks .
Dharma.Hi,
Using Function Module C160_TRANSACTION_CALL you can call any tcode which dont have access..
Create a report and call function module and pass se16 to parameter .
CALL FUNCTION 'C160_TRANSACTION_CALL' "
EXPORTING
i_tcode = 'SE16' " sy-tcode
EXCEPTIONS
ILLEGAL_INPUT = 1 "
INTERNAL_ERROR = 2 "
. " C160_TRANSACTION_CALL
now create a tcode for this report as ZSE16.,
hope this helps u.,
You can also create Data browser ( SE16 ) in report and display as ALV., using Field Symbols and RTTS.
Thanks & Regards,
Kiran -
Way to find which tables are being accessed
Hi Guys
I have a large database and i want to find which tables are not being accessed (even select) from a specific period of time. is there any way to find out . I am using oracke 10g release 1
Regards
Khurana
Edited by: Khurana on Sep 8, 2009 4:29 PMselect sp.object_owner,sp.object_name,
(select sql_text from v$sqlarea sa
where sa.address = sp.address
and sa.hash_value =sp.hash_value) sqltext,
(select executions from v$sqlarea sa
where sa.address = sp.address
and sa.hash_value =sp.hash_value) no_of_full_scans,
(select lpad(nvl(trim(to_char(num_rows)),' '),15,' ')||' | '||lpad(nvl(trim(to_char(blocks)),' '),15,' ')||' | '||buffer_pool
from dba_tables where table_name = sp.object_name
and owner = sp.object_owner) "rows|blocks|pool"
from v$sql_plan sp
where operation='TABLE ACCESS'
and object_owner IN ('YOUR_USER_NAME')
order by 1,2
It will tell you that currently "OBJECT_NAME" is being accessed; but i think it is for full table scan.
Source:http://www.oracle.com/technology/oramag/code/tips2005/032105.html
Regards
Girish Sharma -
Oracle tuning: How to find percentage rows being accessed from a table
Oracle recommends that full table scan on a large table is good if the number of rows being accessed is more than 20%. My question is how to I find out how many rows of the table is being accessed if I have a complex SQL which involves 10 other tables.
Hi,
there are two approaches to SQL tuning. One is to list all things that could possibly be wrong with the database, search for typical solutions, and try them all one by one.
The other is to find out what is taking all the time and work on it.
As I'm sure you've already figured by now, the first approach is unreliable, error-prone, inefficient. In one word, wrong. The only reason it's still around is because:
1) 10 years ago Oracle diagnostic tools weren't as advanced as they are now,
2) some people never learn
3) there's no way to stop these people from writing stupid things on the internet.
So forget all about these unreset HWM, low ratios and other dreadful things that could be wrong with your database code, and focus on things that are wrong. Follow instructions in this forum's FAQ to find the root cause of the problem (if you have questions along the way, post them here, we'd be happy to help). If this leads you to HWM, then fix it. If it doesn't, don't waste your time on it.
Best regards,
Nikolay -
Using View Tables in SQ01 and SQ02, getting 'Not Authorized to Read Table'
We are trying to use a SAP Standard View Table (CAUFV) in an SQ01 and SQ02 transaction. Even though there is no Authorization Group assigned to the View we still get "You have no authorization to read table caufv' when running the linked transaction. We tried assigning the CA and KA authorization groups to the role and got the same results. (The tables used to create the View are AFKO and AUKF and thier Authorization groups are CA and KA.) We tried other views and received the same results. Does anyone have any experience with this?
Hello Chuck,
There are 2 ways to restrict this
1: The user should be a part of at least one user group to run the corresponding ABAP query. This automatically restricts the access of the user to specific functional areas, and thus the corresponding underlying logical databases.
2: The authorization object S_QUERY should be used to give proper authorizations to the user for a query. This authorization object has a field named ACTVT, which can take values 02 for Change, 23 for Maintain and 67 for Translate.
This value determines whether the user can create and modify the query. The possible authorizations in the object are as follows:
S_QUERY_ALL Change, maintain and translate query
S_QUERY_UPD Change and Translate -
Streams on materialized view table vs. local table
We are in a situation where we temporarily need to implement Streams on several materialized view tables. During development and testing I've noted that a local table with streams implemented on it yields 50% faster performance on apply than the materialized view tables. Can anyone tell me (1) why this is, it doesn't make sense since data is being retrieved from a buffered queue not the tables, and (2) a work around to this to improve performance on the mv tables. Any hellp would be appreciated.
Can't give you an answer why. I would suggest that you try (1) creating the materialzed views on prebuilt tables and (2) add parallelism to the apply process(es)
-
Given the following view table that i created
CREATE OR REPLACE VIEW PO_DETAIL_VIEW ( PAYLOADID,
ORDERNUMBER, LINENUMBER, SHIPPEDITEMQTY, COST,
ORDEREDITEMQTY, ACTION, UOM, DESCRIPTION,
SKU, STATUS, CURRENCY, PLANNEDRECEIPTDATETIME
) AS select extractValue(value(p),'/OrderMessage/MessageHeader/@payloadId'),
extractValue(value(p),'/OrderMessage/Order/@orderNumber'),
extractvalue(value(i),'/OrderLine/@lineNumber'),
extractvalue(value(i),'/OrderLine/@shippedItemQty'),
extractvalue(value(i),'/OrderLine/@cost'),
extractvalue(value(i),'/OrderLine/@orderedItemQty'),
extractvalue(value(i),'/OrderLine/@action'),
extractvalue(value(i),'/OrderLine/@uom'),
extractvalue(value(i),'/OrderLine/@description'),
extractvalue(value(i),'/OrderLine/@sku'),
extractvalue(value(i),'/OrderLine/@status'),
extractvalue(value(i),'/OrderLine/@currency'),
extractvalue(value(i),'/OrderLine/@plannedReceiptDateTime')
from PURCHASEORDER p, table(xmlsequence(extract(value(p),'/OrderMessage/Order/OrderLine'))) i
when i executed the following command:
UPDATE po_detail_view
SET ORDERNUMBER = '500001' where PAYLOADID='1'
I get end of file error which disconnect me from my oracle database.
but when i update my another view table it is fine.
CREATE OR REPLACE VIEW PO_MASTER_VIEW ( VERSION,
PAYLOADID, TIMESTAMP, SENDERNAME, SENDERCOMPONENT,
DOCUMENTREFERENCEID, SINGLETRANSACTION, INDEX0, INDEX1,
INDEX2, INDEX3, CLOSED, ORDERNUMBER,
ORDERTYPE, UNIQUEBUSINESSKEY, HANDLINGCODE, BUYERID,
BUYERPARTYNAME, BUYERROLE ) AS select extractValue(value(p),'/OrderMessage/MessageHeader/@version'),
extractValue(value(p),'/OrderMessage/MessageHeader/@payloadId'),
extractValue(value(p),'/OrderMessage/MessageHeader/@timeStamp'),
extractValue(value(p),'/OrderMessage/MessageHeader/@senderName'),
extractValue(value(p),'/OrderMessage/MessageHeader/@senderComponent'),
extractValue(value(p),'/OrderMessage/MessageHeader/@documentReferenceId'),
extractValue(value(p),'/OrderMessage/MessageHeader/@singleTransaction'),
extractValue(value(p),'/OrderMessage/MessageHeader/HeaderIndexedAttribute[1]/@content'),
extractValue(value(p),'/OrderMessage/MessageHeader/HeaderIndexedAttribute[2]/@content'),
extractValue(value(p),'/OrderMessage/MessageHeader/HeaderIndexedAttribute[3]/@content'),
extractValue(value(p),'/OrderMessage/MessageHeader/HeaderIndexedAttribute[4]/@content'),
extractValue(value(p),'/OrderMessage/Order/@closed'),
extractValue(value(p),'/OrderMessage/Order/@orderNumber'),
extractValue(value(p),'/OrderMessage/Order/@orderType'),
extractValue(value(p),'/OrderMessage/Order/@uniqueBusinessKey'),
extractValue(value(p),'/OrderMessage/Order/@handlingCode'),
extractValue(value(p),'/OrderMessage/Order/Buyer/@Id'),
extractValue(value(p),'/OrderMessage/Order/Buyer/@PartyName'),
extractValue(value(p),'/OrderMessage/Order/Buyer/@Role')
from PURCHASEORDER p
UPDATE po_master_view
SET VERSION = '2.0' where PAYLOADID='1'
i can see that the problem lies with
table(xmlsequence(extract(value(p),'/OrderMessage/Order/OrderLine'))) i
is there any better way or solutions to work ard with it?
Thanks.Thanks Mark,
That's what i suspected the case, will log the itar later when i am free.
Actually my main issue is that I am using forms 9i to view and edit the view tables that are based on the xml schema. Forms is giving me problem in accessing complicating views.
I think my only solution is to:
1)create a custom table updated by the view table.
2)Create my form block based on custom table.
3)update the xml data using updateXML() from the custom table. -
SQL Developer - viewing table data while debugging
Apologies if this is in the wrong forum.
I'm using SQL Developer to debug a complex stored procedure line by line. There are a lot of inserts / updates / deletes in the procedure and I'd like to be able to view the data in the relevant tables after each statement has been run to see the effect of each statement.
Trouble is, when I try to do this, SQL Developer shows the contents of the tables as if they have been unaffected by the stored procedure. Is there a setting somewhere or some type of locking I can use to see the data changes as they happen?Only the session that is inserting the data can see that new data until the session issues a commit, so I would doubt that you could do this. You probably want to a) view the data before the insert or b) (ugly but should work) put a trigger on the table being inserted so it inserts a copy of the data to a tracking table. This procedure will have to have the AUTONOMOUS TRANSACTION pragma in order to not be held until your debug session commits.
-
How to view corrupt ms access database?
How to view corrupt ms access database? When you open a written "Application Error" and all. Tried to import objects into a
new database. Tables and queries were imported without a problem, but on the forms, reports and modules gives the same error.if it fails to recover all known methods, which are described in google, then you need software - such as MDB Viewer Tool from http://www.mdb.viewertool.com/ Somewhere
seen a similar problem on the forum if it fails to recover all known methods, which are described in google, then you need software - such asMDB Viewer Tool from http://www.mdb.viewertool.com/Somewhere
seen a similar problem on the forumhttp://www.filerepairforum.com/forum/microsoft/microsoft-aa/access/1318-unable-to-open-mdb-file-please-help -
Hi,
Is there anyway, we can give just execute access on sp_who2 SP for a developer without giving VIEW SERVER STATE access?
Please let me know ASAP? Any help is greatly appreciated.
Thanks,
Vel
Vel ThavasiThanks Erland,
I tried on master as well. Seems like no luck. I think, I am messing up with certificate or access level!! Would you mind in modify my script and help me out on this issue?
CREATE
CERTIFICATE uSPWHO2Cert
ENCRYPTION BY PASSWORD
= 'testpwd'
WITH SUBJECT =
'Certificate to run usp_who2',
START_DATE = '20140901',
EXPIRY_DATE =
'20300101'
go
--drop certificate uSPWHO2Cert
-- Create the certificate user and give it rights to access the test table.
CREATE
Login uViewServerStateUser
FROM CERTIFICATE
uSPWHO2Cert
go
create
proc [usp_who2]
as
exec
sp_who2;
GO
GRANT
Execute ON
usp_who2 TO uViewServerStateUser
go
-- Sign the procedure.
ADD
SIGNATURE TO
usp_who2 BY CERTIFICATE
uSPWHO2Cert
WITH PASSWORD =
'testpwd'
go
--drop proc usp_who2
Grant
View server
State to uViewServerStateUser;
Grant
Execute on
usp_who2 to testuser;
-- Run as the test user, to actually see that this works.
EXECUTE
AS LOGIN
= 'testuser'
go
-- First run the unsigned procedure. This gives a permission error.
EXEC
usp_who2
go
revert
Thanks again!!!
Thanks,
Vel
Vel Thavasi -
View Table to update Physical Inventory Number Range.
Hi,
I am looking for the 'View Table' Name to update Physical Inventory Number Range in OMMB transaction.
I will have to do it using SM30 as OMMB is display only.
ThanksHi,
OMBT still cant help me because I dont have write access on this client.
Are you aware on how to get the View Table to Maintain Number Ranges for Physical Inventory?
Thanks,
Rohit. -
Condition table missing: Access JST1 60 (Pricing Taxes)
Dear All,
We had gone for the updation of patches related to 2007-08 budget changes. Our SAP version is 4.7EE.
We are getting the below message, when giving the tax code in purchase order creation.
"Condition table missing: Access JST1 60 (Pricing Taxes)"
TAXINJ is being used.
Please provide a solution on this issue.
Regards,
Venkat.check all the condition type and there access sequences
Maybe you are looking for
-
Text not appearing in Design view
There is a twist here... One one mac with CS5 Dreamweaver the text shows up in the design window just file On ANOTHER mac with CS5 Dreamwearer certain text doesn't show up. The text is black so that isn't an issue. Why would there be a difference
-
Still weird problems with CS4/My new computer
Here is situation. Machine works very well when I´m editing HD video but soon as I start edit multi-cam: PROBLEMS! And as I watch from monitor that materia that I been edited so far, it works well, but as soon as I try to change cameras, everything s
-
Problem when deploying CRXIr2 + VS2005
Post Author: Aksu CA Forum: Deployment I have a problem with report loading when I have deployed windows project. Everything is working fine in "development environment". I deploy the project with MS-installer and CRXIr2 merge module (CrystalReports1
-
All of a sudden my scrubber doesnt seem to be working properly in FCP 7. It moves back and forward ok but doesnt scrub through the frames, it just jumps to the end frame when I stop at when scrubbing. This only started happening today. I thought it m
-
Dreamweaver CC 2014.1 document toolbar.
I just updated to Dreamweaver CC 2014.1. In the previous version, there was a text box on the Document toolbar where you could type in the document title. That box is not there in CC 2014.1. How can I replace it?