on 03-09-2021 5:32 PM
Hi,
Can anyone help me with any SQL query to find out the last access time of any user created schema? or is there any process to check when a specific schema is last used?
I am an SAP Basis consultant, there is a requirement to remove unused schemas to free up the space of the DB.
Thanks,
Subhradeep
Hi,
You can check in M_SQL_PLAN_CACHE table. You might find the below script useful.
select "SCHEMA_NAME", TO_DATE(max("LAST_EXECUTION_TIMESTAMP")) from M_SQL_PLAN_CACHE
group by "SCHEMA_NAME" order by "SCHEMA_NAME";
Best Regards,
Abhi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Subhradeep,
The limitation is due to the retention based on system's configuration parameters, which holds the data based on a certain period/threshold. The last option I can think of would be to activate traces specific to the objects/schema/users you want to have the tests on.
Best Regards,
Abhi
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
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.