Is there a way to find out when a universe was last uploaded to the repository ? if say I have a number of developers working (BO 6.5.1) and would like to know when was the most recent upload of a given universe to the repository took place, how do I find that out ? (even better if I can also tell which username, but that is probably wishing for too much !). I know there is BO Auditor and so on, but I am wondering if there is a method without using this tool. Thanks in advance.
to get that last-export date for the universe you can query BO repository table OBJ_M_UNIVERSES. For BO repository sitting on the Oracle DB you can use this SQL:
SELECT m_uni_c_filename AS uni_filename,
m_uni_c_longname AS uni_longname,
TO_DATE ('15-12-1970', 'dd-mm-yyyy') + m_uni_n_lut / 86400 AS last_export_date
FROM obj_m_universes
Note that under the repo the name of the user who makes the export is not stored !!!
Oracle repo SQL under sec domain :
SELECT
OBJ_M_UNIVERSES.M_UNI_C_FILENAME,
to_date('15/12/1970','DD/MM/YYYY') + (OBJ_M_UNIVERSES.M_UNI_N_LUT/86400),
OBJ_M_REPOSITORY.M_REPO_C_NAME
FROM
OBJ_M_UNIVERSES,
OBJ_M_REPOSITORY
WHERE
( OBJ_M_REPOSITORY.M_REPO_N_ID=OBJ_M_UNIVERSES.M_UNI_N_REPOID and OBJ_M_REPOSITORY.M_REPO_N_TYPE=2 )
AND ( OBJ_M_REPOSITORY.M_REPO_N_TYPE=2 )
Thank you both so much for these responses, but unfortunately our repository sits on an MS SQL server , do you have enquivalent script for this ? if not, I guess I can dig up an MS SQL book and look at the differences… but again thank you both for this !.
I use this on SQL Server but query different tables.
SELECT
UNV_UNIVERSE.UNIVERSE_ID,
UNV_UNIVERSE.UNI_LONGNAME,
UNV_AUDIT.AUD_UNIVERSION,
UNV_UNIVERSE.UNI_MODIFYDATE
FROM
UNV_UNIVERSE,
UNV_AUDIT
WHERE
( UNV_AUDIT.UNIVERSE_ID=UNV_UNIVERSE.UNIVERSE_ID )
This is wonderful thank you Michele, I have 2 questions :
Does the script show when the universe was last edited or when it was exported ? (so if I import and immediate re-export the universe to the repository, does it make an entry in this table ? or only when I edit the universe and export it ?).
Is there a way to show the time the universe was exported, as well as the date ?.
This shows when the universe was last exported. There isn’t any info in the repository to show when it was edited since this is done ‘outside’ of the repository.
Here is the SQL from Goiffon and Smith converted to run on SQL Server
SELECT
OBJ_M_UNIVERSES.M_UNI_C_FILENAME,
DateAdd(ss, (OBJ_M_UNIVERSES.M_UNI_N_LUT - 14400) , Cast('1970-12-15 00:00:00' as datetime)) as Export_Time,
OBJ_M_REPOSITORY.M_REPO_C_NAME
FROM
OBJ_M_UNIVERSES,
OBJ_M_REPOSITORY
WHERE
( OBJ_M_REPOSITORY.M_REPO_N_ID=OBJ_M_UNIVERSES.M_UNI_N_REPOID and OBJ_M_REPOSITORY.M_REPO_N_TYPE=2 )
AND ( OBJ_M_REPOSITORY.M_REPO_N_TYPE=2 )
It’s better to query OBJ_M tables in the sec domain if you have several universe domain. If you run your query using UNV_ tables you need to do this in all the schemas where you store universe domain.