Hi CFSSABSM,
while you didn't reply to my questions, I've seen that you opened support case 5316358157,
where you explain
> I am looking for last update time for each Profile (application) with BTW. BSM ver is 9.22 and I am not checking data collectors (BPM) last ping time.
Here is how you can get to the information as a base to start with.
Please understand that in general we do NOT support direct database queries, but ask to use the Custom Query Builder instead.
- find out what profile databases are being used for all the business applications
(this is based on the assumption that you are running multiple profile database,
if you have one profile DB only, you can skip steps 1 - 2)
Step 1:
SELECT DISTINCT DEF_PROFILE_DB_ID FROM <Management DB>.EUMBPM_APPLICATIONS
DEF_PROFILE_DB_ID
-----------------
3
Step 2:
for each profile db id from above:
SELECT SESSION_DB_NAME FROM <Management DB>.SESSIONS where SESSION_ID = 3
SESSION_DB_NAME
---------------
VM402_BSM_PROFBPM
Step 3:
SELECT distinct INTERNAL_TRANSACTION_ID FROM <profile_db>.BPM_TRANS
gives you all the transaction ids found in BPM_TRANS in that very profile database
(that's where the transaction data is stored, one record per transaction, here is the DBDATE information stored along with many other data)
INTERNAL_TRANSACTION_ID
-----------------------
5
6
7
32
33
34
..
269
270
..
Step 4:
for each transaction id from above
SELECT top 1
tr.DBDATE as 'Date/Time',
td.APPLICATION_NAME as 'Application',
td.BTF_NAME as 'BTF',
td.TRANSACTION_NAME as 'Transaction'
FROM <profile_db>.BPM_TRANS tr, <profile_db>.TRANSACTIONS_DIM td
WHERE tr.INTERNAL_TRANSACTION_ID =5 and tr.INTERNAL_TRANSACTION_ID=td.INTERNAL_TRANSACTION_ID
ORDER by tr.DBDATE desc
Date/Time Application BTF Transaction
----------------------- ----------------------- ---------- -----------------
2017-01-11 08:02:30.323 BA_Google_SSO Google_SSO Step 1 - Google Seach for SSO
.. WHERE tr.INTERNAL_TRANSACTION_ID = 6 ..
2017-01-11 08:02:30.323 BA_Google_SSO Google_SSO Step 2 - SSO
.. WHERE tr.INTERNAL_TRANSACTION_ID = 7 ..
2017-01-11 18:27:42.233 BA_Google_SSO Google_SSO Step 0 - Google
.. WHERE tr.INTERNAL_TRANSACTION_ID = 270 ..
2017-01-09 16:01:47.580 BA_BPM_JPetStore_user2 JPetStore_user2 Step 4 - Logout
The time stamp shows when the last entry was added into the database table for a give transaction.
As mentioned, this is a base to start with. I think that an experienced DBA can combine the two statements into one so that all can be reported with on SQL statement
or into a script.
Greetings
Siggi