Thank you, SangGyu.
That was the response I hoped for: move the table, delete the chunk, move the table back (to rootdbs).
I did check the documentation, and found the "reset sysadmin" in a section about moving sysadmin. I almost fell into the trap. I think the documentation is very misleading. It describes the function as moving sysadmin. As if that is the intended functionality. But that is not the case. (admittedly, the name hints at this.) One might easily infer that the sysadmin database would be moved, and miss the language at the end of that section that mentions that all your data is lost because the result is that sysadmin is recreated as it was with only the original content. (Scheduler jobs lost, for instance.)
It really makes me wonder why Informix doesn't provide a mechanism to actually move sysadmin, and not re-initialize it.
Anyway, thank you for your reply.
Regards,
David Grove
------------------------------
David Grove
------------------------------
Original Message:
Sent: Mon June 08, 2020 01:17 AM
From: SangGyu Jeong
Subject: Are there hidden gotchas w.r.t. moving sysadmin tables?
Hi David,
Just move and delete the table in the rootdbs chunk you want to delete. It is recommended that the db scheduler be stopped before moving the table.
There is also an option to create a new sysadmin database in another dbspace.
Ex) execute function task("reset sysadmin", "admindbs");
------------------------------
SangGyu Jeong
Software Engineer
Infrasoft
Seoul Korea, Republic of
Original Message:
Sent: Sun June 07, 2020 09:49 PM
From: David Grove
Subject: Are there hidden gotchas w.r.t. moving sysadmin tables?
IDS 12.10.FC12
Solaris 10 1/13
I would like to drop a rootdbs chunk that is no longer needed... Except that it still contains a sysadmin table (happens to be ph_run).
Is there any danger in using ALTER FRAGMENT to move that table to another dbspace, then DROP the (now empty) rootdbs chunk, and then again use ALTER FRAGMENT to move ph_run back to rootdbs (which would now be minus the chunk that I dropped [in which ph_run formerly resided])?
Thank you.
Regards,
David Grove
------------------------------
David Grove
------------------------------
#Informix