on 10-21-2013 12:03 PM
Hi Folks,
I have a doubt suppose i am running the statistics manually, and i want to check the logs for whether the statistics have been updated or not.
I can check the same from DB02old checks dates of table analysis,
How can i check the same from dbacockpit?
I am not using brconnect to schedule the jobs, i am doing it manually.
Thanks,
Hi,
I am not using brconnect to schedule the jobs, i am doing it manually.
Any specific reason?
Regards,
Nick Loy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
p517710 sap basis wrote:
Customer database team is doing using oracle specific tools, sap doesnt force you to use brconnect right.
Thre you are wrong.
You can use the oracle tools (DBMS_STATS) but SAP does not support their usage "directly" only via BRCONNECT.
Check SAP Note 105047 - Support for Oracle functions in the SAP environment
point 21:
21. DBMS_STATS
You cannot use DBMS_STATS to create statistics directly on a regular basis.
You can use DBMS_STATS to create statistics via BRCONNECT (SAP Note 408532).
Hello
Assuming this is an Oracle database
There will be a log file created in the /oracle/SID/sapcheck location with the extension .sta
You may check that.
Regards
RB
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Regardless whether you start from sap or from oracle end right?
If you use BRTools to collect the statistics then the logs will be present in the /oracle/SID/sapcheck location with the extension .sta
If you start the statistics collection from SAP then BRTools will be used at the backend.
You can also see the logs using the Tx DB14
Regards
RB
You need to use SAP provided tools for database administration for Oracle databases in an SAP environment.
As far as I know there wont be any log files created at the OS level for statistics created from the SQL level.
http://docs.oracle.com/cd/B28359_01/server.111/b28274/stats.htm
Regards
RB
p517710 sap basis wrote:
Suppose i triggered the stats update from oracle level and not using any of the sap tools or from SAP where would be the logs stored.
I assume (as you do not indicate it) that you are calling either
=> ANALYZE TABLE ....
or
=> DBMS_STATS
none of those will leave any "log file".
The first one is deprecated or obsolete so it shoud NOT be used to calculate CBO statistics anymore.
The second one is called implicity by BRCONNECT, that is one of the reasons SAP DO NOT like that it is used "standalone", another reason is that, depending how you call it, you may end calculating histograms for tables that do not need them, higher or lower samples than the one recommended and so on.
So, do not do this on an SAP system.
now, you want to know, what?
I have a doubt suppose i am running the statistics manually, and i want to check the logs for whether the statistics have been updated or not.
I can check the same from DB02old checks dates of table analysis,
How can i check the same from dbacockpit?
I am not using brconnect to schedule the jobs, i am doing it manually.
you cannot check logs, there are not created.
you could use DB02, but then you need to go table by table.
So, if you triggered it at Oracle Level, you may issue a SQL command, also at Oracle level querying DBA_TABLES and checking the LAST_ANALYZE column
Hi,
Sorry, but I do not understand.
You are talking about different things so I do not know what you want and that way NOBODY can help you.
I have a doubt suppose i am running the statistics manually, and i want to check the logs for whether the statistics have been updated or not.
I can check the same from DB02old checks dates of table analysis,
How can i check the same from dbacockpit?
I am not using brconnect to schedule the jobs, i am doing it manually.
explain what you mean "running statistics manually" (I already asked it and you did not replied)
explain what logs you want to see (I already indicated that "manually" do not create any log)
where in DB02OLD?, In DBACOCKPIT I would use the SQL EDITOR as a quick check about DBA_TABLES
If you see from DB02old you can see the statistics where they have run or not.
do you mean "DB02OLD" => DETAIL ANALYSIS => (object) => DBA_VIEWS => DBA_TABLES?
If that is what you want, I would use the SQL EDITOR and it provides the output in an ALV table which can be read easily (not like what Imentioned)
I can also see dba_tables information on dbacockpit.
Note that DB02 and DB02old are SPACE transactions, you are trying to see CBO information, so it is quite normal and logical that it was not implemented in the new DB02
Resume, if you want help, first you have to know what do you want and explain it properly, because I still do NOT know what you want to know. You keep talking about an old transaction that has a trillion of options and a new one that has another trillion.
Hi,
I'm not aware of such functionality in DBACOCKPIT but as suggested already you can always do query in DBACOCKPIT: go to Performance > Additional fucntions > Display DBA-views > search for DBA_TABLES and check date in column LAST_ANALYZED.
Or if you are interested in statistics age/sample size etc. for particular table, use tr. DB20.
Regards,
Michal
Hi Stefan,
Long time.What i was looking out for is without querying the table dba_tables when was the last statistic run.
DB02old option which i had mentioned is quite amazing, dont know why it wasnt implemented in dbacockpit.
27.11.2013 07:02:59 sid lddbsid
Tables analyzed for Cost based optimizer
Init<SID>.ora parameter:
OPTIMIZER_MODE: ALL_ROWS
DB_FILE_MULTIBLOCK_READ_COUNT: 128
Last SAPDBA-checkopt/analyze runs for cost based optimizer:
Last SAPDBA-checkopt/analyze runs for cost based optimizer:
checkopt (opt): not available
analyze (aly): not available
For details see Transaction DB14 -> Function-ID´s opt/aly
Table owner
Date of last analysis SAPsid SYSTEM others
never analyzed 0 9 233
older one year 0 0 0
31 - 365 days 0 149 95.978
8 - 30 days 0 0 17.393
0 - 7 days 0 0 179
Total 0 158 113.783
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.