First, Truusvlugindewind, I appreciate your spending time to help me in this endeavor.
Second,
Truusvlugindewind said:
Your still talking about "DB2 files". Stop confusing me.
Truusvlugindewind, there is no benefit to you or to me in my confusing you. To try avoid confusion,
I listed, in my previous post, the actual files about which I was speaking, which represent standard DB2-related files, whose purpose and usage is clearly familiar to DB2 DBA technicians.
Having been an Oracle DBA Instructor for Oracle University from 1988 through 1997 and as the senior principal in a firm that manages databases for companies worldwide, I assure you that I know that database engines, such as DB2, Oracle, et cetera, at the user-interface level,
do not talk about files, per se: they deal with tables, indexes, and tablespaces.
But as far as Unix (or any other operating system) is concerned, it only sees file systems, directories/paths, and files, and the engine's data-dictionary definitions create appropriate linkages between the engine's
logical objects (tables, indexes, et cetera) and their
physical storage in files at the operating-system level. Your excellent record here in this DB2 forum indicates that you are extremely technically astute and can easily make that technical linkage/transition without, as you say, confusion.
I appreciate the links that you provided me, above. I have read through each of them. I also noticed in those links that DB2 does not have a built-in method for easily transitioning "files" (that support the data in the database) from one location to another, without spending inordinate amounts of time exporting and importing data to accomplish the transition.
Therefore, for future readers of this thread who are like-minded in our unwillingness to spend inordinate amounts of time implementing an otherwise-trivial housekeeping chore, you may wish to use the solution that we ended up using:
1) Shutdown the DB2 instance
2) Move ("mv" from the highest-level directory) all directories, sub-directories, and files from their "old" locations to their "new" locations.
3) Create an operating-system logical link to "fool" DB2 into thinking it is still using the "old" locations:
Code:
ln -s <old high-level directory> <new high-level directory counterpart>
4) Restart the DB2 instance.
5) Continue normal processing.
This entire process smoothly and successfully occurred in about 4.5 minutes.
![[santa] [santa] [santa]](/data/assets/smilies/santa.gif)
Mufasa
(aka Dave of Sandy, Utah, USA)
[I provide low-cost, remote Database Administration services:
www.dasages.com]