Question Phillip Wu · 17 hr ago Activate a mirror database gives "protected" error Hi, I have a mirrored database called ROUTER. I have a primary server T1 and a "Disaster Recovery" server T2. When I activate ROUTER database on T2, I get the error it says the "Database could not be mounted". I went to the audit database and it shows "Attempt to access a protected database". T2 in mirror monintor shows "Connected" "Caught up" "Warning! Some databases need attention" T2 show the ROUTER database as being "Mounted/R"Both T1 & T2 are Linux servers. The ROUTER database file IRIS.DAT have the same Linux permissions #InterSystems IRIS for Health 1 3 0 15
Question Phillip Wu · Jun 19 Namespace vs database I'm confused about the differences between a namespace and a database. I understand that a database is a single IRIS.DATA file in a directory in the os hosting IRIS. What is the difference between a namespace and a database? Can I write data into a database without specifying a namespace?If so how do I write to a particlar DB in objectscript? Does a database have to be in a namespace?Can a database be in more than one namespace? Can a namespace have only one 'routine' database and only one 'data' database? #InterSystems IRIS for Health 0 8 0 114
Question Phillip Wu · Jun 18 Databases inside a Namespace Hi, I want to write a program to: - list all defined namespaces - for each namespace, the databases making up the namespace Python would be ideal but ObjectScript is OK. Would someone know how to do this? Thanks #InterSystems IRIS for Health 0 4 0 65
Question Phillip Wu · May 2 IRIS Multiple Instance on a single Linux VM - status I have a Linux server that has multiple instances installed on it (according to my documentation). What is the best command to show: - what instance are installed? - what instances are running?I did run 'iris list' but it shows only one instance. #TrakCare 0 3 0 59
Question Phillip Wu · Mar 2 IO-Redirect package on Linux Hi, Has anyone used 'IO-Redirect' package? https://openexchange.intersystems.com/package/io-redirect IRIS for me runs on a Linux server. I want the package to be able to supply "answers" from a Linux OS file in response to a program run as follows:do ^ADMINI'm assuming that the program does objectscript reads from the terminal Questions #InterSystems IRIS for Health 0 2 0 60
Question Phillip Wu · Feb 26 Program read answers from a OS file Hi,I want to automate a menu based program for which I don't have the source If I run it interactively I do this:do ^<program> It presents a menu and then you can go down further menus Based on the selection it may ask for answers to other questions. Is there some way I give the program a "response" file? If not would I be able to use I/O redirection for this task?Inputs would come from a file.Output should go to the terminal (so I monitor how far the process has gone) #InterSystems IRIS for Health 1 4 0 68
Question Phillip Wu · Feb 12 SQL SYS.Database table not found Hi, I running an SQL so I can find the databases with the largest amount of free space. This is in case I can compact the databases. However SQL cannot find the SYS.Database table. Can someone please explain how to fix? #InterSystems IRIS for Health 0 3 0 94
Question Phillip Wu · Feb 9 Objectscript get classs property error Hi, I'm trying to get a property from a class but I get an error: SET status=##CLASS(Backup.Task).LastRunStatus^<CLASS PROPERTY> Can someone please tell me the correct way to get the property? The property is dexcribed here: https://docs.intersystems.com/irislatest/csp/documatic/%25CSP.Documatic.... Thanks in advance. #InterSystems IRIS for Health 0 6 0 89
Question Phillip Wu · Feb 3 Load ObjectScript external file and run code Hi, I have Objectscript routine stored in an external Linux file which I've called /my/home/DisplayDB.int This file does not include any Class definitions and is simply a set a Object script routines. I think this is called INT objectscript The file looks like this: #InterSystems IRIS for Health 0 3 0 91
Question Phillip Wu · Jan 28 Python code Production length of queue Is it possible to get the length of queue for a production using Python code? I'm using embedded Python at the moment. I'd like to use the Python external language server later - the Python external server will not start in my environment. If it is possible to query the production queue length programmically, please advise how? It would also be nice to show the number of messages processed per second, if IRIS keeps track of this. #Python #InterSystems IRIS for Health 0 2 0 63
Question Phillip Wu · Jan 21 Iris is frozen - discover why The question I have is if I run an External backup this library rotuine is called:##Class(Backup.General).ExternalFreeze() Is there a command I can run that shows me the Iris system is frozen due to the call to ##Class(Backup.General).ExternalFreeze()? If the system is frozen I cannot sign into Iris terminal session. I backup the IRIS server using Veeam. Veeam calls the "freeze" script, snapshots the server in VMWare, then calls the "thaw" script.Veeam then backs up the VMWare snapshot. #InterSystems IRIS for Health 1 4 0 103
Question Phillip Wu · Jan 16 Python (embedded) for SYS.Mirror.GetFailoverMemberStatus does not work Hi, I'm using embedded Python as follows: #Embedded Python #InterSystems IRIS for Health 1 4 0 95
Question Phillip Wu · Dec 19, 2024 Article "Ansible modules and IRIS demo" qlist bug Has anyone tried the Ansible module for qlist in the article "Ansible modules and IRIS demo"? There appears to be a bug in the qlist code as it assumes that the qlist output has an undocumented field. I do not have the undocumented field in the output.when I run qlist so I keep getting the error "Unexpected IRIS qlist output format". I assume that in most cases there is no undocumented field in the output. #InterSystems IRIS 0 0 0 62
Question Phillip Wu · Nov 20, 2024 Veeam backup causing IRIS node to be dropped from mirror Is anyone using Veeam as their external backup product? I'm trying to backup a Linux VMs (VMWare; SUSE). These VMs have a mirrored pair IRIS DB. I'm using the InterSystems's provides pre-freeze - Backup.General(ExternalFreeze)I'm using the InterSystems's provides post-thaw - Backup.General(ExternalThaw) I've been running the backups with Veeam 'application aware processing' so I can add the pre-freeze and post-thaw scripts. I'm backing up the PRIMARY node of the mirror pair. #InterSystems IRIS for Health 0 3 0 151
Question Phillip Wu · Nov 4, 2024 Objectscript to list source of a class Hi, I want to list the source if a class in an 'iris session'. I know I can get a list of all classes in a namespace: iris session <session> -U "%SYS" DO $SYSTEM.OBJ.ShowClasses() === Is there a similar sinmple command to get the source of a class? #API #Caché #InterSystems IRIS 0 2 0 153
Question Phillip Wu · Jun 18, 2024 Refresh databases on test system from production system Hi, I want to refresh the data in the databases from the data that exists in the production system. The IRIS system in both test and production are in a mirror arrangement Can the refresh be done by doing a backup on the production system and restore the same backup to test?Could the refresh be customised so that certain databases can be excluded? #InterSystems IRIS 0 5 0 223
Article Phillip Wu · Mar 24, 2024 5m read Quickstart guide to IRIS DB on Linux Systems Introduction This is a quickstart guide to IRIS for Linux systems administrators who need to be able to support the IRIS DB as well as other normal infrastructure tasks. IRIS is a DB system from Intersystems. An IRIS DB can hold code (in the form of a Class) or data (in the form of Globals). IRIS DB are Linux files called IRIS.DAT. #Best Practices #System Administration #Tutorial #InterSystems IRIS 6 1 0 400
Question Phillip Wu · Mar 21, 2024 Writing "DO ^ROUTINE" code I want to write a routine [I think this is the correct Intersystems term] call STOPALLPRODUCTIONS. I want to be able to call the routine: DO ^STOPALLPRODUCTIONS #InterSystems IRIS 0 3 1 202
Question Phillip Wu · Mar 11, 2024 Object script special characters # ^ % $ meaning Hi, In Objectscript it apperas these characters have a special meaning: ^var <- Does the ^ mean the variable after it is a Globalset status=##class(%SYS.Journal.System).GetState() <- Does the ## mean anything? Does the % mean anything? Does the $ mean anything? #InterSystems IRIS 0 1 0 158
Question Phillip Wu · Feb 29, 2024 WebTerminal is not working Hi, I've just installed WebTerminal to my IRIS system (Linux SUSE). I go url: http://trak01:57772/terminal/ But it just times out My management portal address is: http://trak01:52773/csp/sys/UtilHome.csp #InterSystems IRIS 0 2 0 219