Hi Adr,
the Query is for pre-BSM 9 times (BAC 8 and before) and yes, it will no longer work in BSM 9,
as the profile database table structures have changed.
if HP provided the query to you, I would expect that you also can get an updated version from them?
You can check KCS document
KM1165162 - BSM 9.x Database Schema changes
to review some of the changes.
In any case, here is a list of obvious changes:
EVENT_METER is now BPM_TRANS, most of the field names didn't change, some have been added, some other might have been deleted
[SAMPLETIME]
,[TUID]
,[DBDATE]
,[CUSTOMER_ID]
,[INTERNAL_TRANSACTION_ID]
,[INTERNAL_LOCATION_ID]
,[SCRIPT_ID]
,[BPM_AGENT_ID]
,[INTERNAL_SUBNET_ID]
,[SERVER_IP]
,[SERVER_NAME]
,[STATUS_ID]
,[EM_ID]
,[EM_RESULT_VALUE]
,[EM_PAGE_CBD_COUNT]
,[EM_DOWNLOAD_DATA_SIZE]
,[EM_W_CONNECTION_TIME]
,[EM_W_DNS_TIME]
,[EM_W_SSL_TIME]
,[EM_W_NETWORK_TIME]
,[EM_W_NETWORK_FB_TIME]
,[EM_W_SERVER_FB_TIME]
,[EM_W_DOWNLOAD_TIME]
,[EM_W_RETRY_TIME]
,[EM_S_CONNECTION_TIME]
,[EM_S_DNS_TIME]
,[EM_S_SSL_TIME]
,[EM_S_NETWORK_TIME]
,[EM_S_NETWORK_FB_TIME]
,[EM_S_SERVER_FB_TIME]
,[EM_S_DOWNLOAD_TIME]
,[EM_S_RETRY_TIME]
,[BASELINE_RESP_TIME_MEAN]
,[BASELINE_RESP_TIME_STD]
,[BASELINE_RESP_TIME_LOC_MEAN]
,[BASELINE_RESP_TIME_LOC_STD]
,[BASELINE_DOWNLOAD_TIME_MEAN]
,[BASELINE_DOWNLOAD_TIME_STD]
,[BASELINE_SERVER_TIME_MEAN]
,[BASELINE_SERVER_TIME_STD]
,[BASELINE_FIRSTBUF_TIME_MEAN]
,[BASELINE_FIRSTBUF_TIME_STD]
,[BASELINE_NETWORK_TIME_MEAN]
,[BASELINE_NETWORK_TIME_STD]
,[TOT_OK_HITS]
,[TOT_MINOR_HITS]
,[TOT_CRITICAL_HITS]
,[DOWNTIME_STATE]
,[ERROR_COUNT]
,[AVAILABILITY_STATUS]
Hoever, with BSM 9 the concept and the way of storing TRANSACTION and LOCATION information has changed dramatically. The tables don't exist anymore, but have been replaced by multiple others, and the way accessing the data has changed dramatically, but lucky enoguh we do have the *_DIM tables.
I checked the sample data you attached:
you can get to the transaction name via
<profile_db>.BPM_TRANS.INTERNAL_TRANSACTION_ID = <profile_db>.TRANSACTION_DIM.INTERNAL_TRANSACTION_ID
field name holding the transaction name is TRANSACTION_DIM.TRANSACTION_NAME
you can get to the location name via
<profile_db>.BPM_TRANS.INTERNAL_LOCATION_ID = <profile_db>.LOCATIONS_DIM.INTERNAL_LOCATION_ID
field name holding the location name LOCATIONS_DIM.LOCATION_NAME
Overall I guess your query should work
SELECT BPM_TRANS.SAMPLETIME ,TRANSACTIONS_DIM.TRANSACTION_NAME ,BPM_TRANS.STATUS_ID ,BPM_TRANS.EM_RESULT_VALUE ,BPM_TRANS.DBDATE
FROM BPM_TRANS,TRANSACTIONS_DIM,LOCATIONS_DIM
WHERE BPM_TRANS.INTERNAL_TRANSACTION_ID = TRANSACTIONS_DIM.INTERNAL_TRANSACTION_ID AND BPM_TRANS.INTERNAL_LOCATION_ID = LOCATIONS_DIM.INTERNAL_LOCATION_ID
That's from one of my test systems (I only retrieved top 10 results)
SAMPLETIME TRANSACTION_NAME STATUS_ID EM_RESULT_VALUE DBDATE
1472116260.000000 Step 0 - Google 1 1418 2016-08-25 11:12:29.787
1472116294.000000 Step 0 - Start JPetStore 0 2526 2016-08-25 11:12:29.787
1472116268.000000 Green 0 5000 2016-08-25 11:12:29.787
1472116278.000000 Yellow 0 10007 2016-08-25 11:12:29.787
1472116296.000000 Step 1 - Login 0 1913 2016-08-25 11:12:29.787
1472116296.000000 Step 2 - Order a bird 1 8 2016-08-25 11:12:29.787
1472111267.000000 tx Rand Availability 0 2984 2016-08-25 09:48:39.097
1472116317.000000 Step 0 - Start JPetStore_SOE 0 2554 2016-08-25 11:13:19.803
1472116319.000000 Step 1 - Login_SOE 0 1944 2016-08-25 11:13:19.803
1472116319.000000 Step 2 - Order a bird_SOE 1 5 2016-08-25 11:13:19.803
BTW, I have no idea where to find
TRANSACTIONS.RANK_1_FROM ,TRANSACTIONS.RANK_1_TO
Hope it gives you a start anyway
Siggi