Python is 31 today ; let’s celebrate it 🎂
And special thanks to Guido van Rossum
Python is 31 today ; let’s celebrate it 🎂
And special thanks to Guido van Rossum
Context:
mirrored configuration with one primary member and one async member (without failover/backup member)
Purpose:
replace the CACHE.DAT of a mirrored database on the primary member.
Steps to follow:
to dismount/mount a database, use Dismount() and Mount() methods in SYS.Database class available in %SYS namespace.
NB: the database ID is its Directory
You'll find some examples of how to dismount/mount and check if a database is mounted (Mounted=1) or not (Mounted=0), and quickly see all the attributes of a database (via zwrite)
This sample class will add parameter DSINTERVAL to each class containing the parameter DSTIME
To execute it from a Terminal :
SAMPLES>d ##class(adm.param).add(,,1)
[SAMPLES] parameter DSINTERVAL=5 added to class DeepSee.Study.CityRainfall (via adm.param)
[SAMPLES] parameter DSINTERVAL=5 added to class HoleFoods.Transaction (via adm.param)
[SAMPLES] parameter DSINTERVAL=5 added to class News.DeepSee.NewsArticle (via adm.param)
DSINTERVAL parameter was added to 3 classes
C:\data\backup.bat :
C:\InterSystems\Ensemble\bin\cache -s"C:\InterSystems\Ensemble\Mgr" -U%%SYS ##Class(Backup.General).ExternalFreeze() <C:\data\login.scr
echo %ERRORLEVEL%
rem note that we need to check errorlevel from highest to lowest here....
if errorlevel 5 goto OK
if errorlevel 3 goto FAIL
echo errorlevel returned wrong value
goto END
:OK
echo SYSTEM IS FROZEN
xcopy c:\InterSystems\Ensemble\mgr\ z:\backup\Ensemble /s /e /y /i
echo %ERRORLEVEL%
goto END
:FAIL
echo SYSTEM FREEZE FAILED
:END
rem Now unfreeze the system
A customer needs to add lines in the Excel sheet before the MDX resultset content.
Is there a more elegant/convenient way than modifying %DeepSee.UI.MDXExcel methods ?
Thanks in advance.
Sylvain
I’m interested in our DeepSee references who define cubes with external databases.