Sometimes automounted file systems are automatically unmounted
after a specified time. If a program attempts to access a file by
the path it previously obtained using the pwd command
or getwd system call and the file system has been
unmounted, the file is not found. To avoid this problem, perform these
steps.
Procedure
- Set user to ccm_root.
$ su - ccm_root
Password: *****
- View the official path.
The official path (DBPATH) is set when the database
is created. Note the path name.
$ ccmdb info database_path
The
information you receive looks like the following example:
sargasso:ccm_root{3}ccmdb info /vol/sargasso1/ccmdb/base72
VERSION=7.2
PLATFORM=solaris
DATABASE=informix
HOSTNAME=sargasso
ORHOST=sargasso
DBPATH=/vol/sargasso1/ccmdb/base72/db
PROTECT=unprotected
ACTIVE=YES (database is active)
FILELIMIT=
CASE=PRESERVE
SCHEMA=0114
ACCELERATED=BUILT-IN:
member_status, created_in, local_to, modifiable_in, platform,
completed_in, crstatus, automatic_task_key, case_perserved_name
sargasso:ccm_root{3}ccmdb info /vol/sargasso1/ccmdb/base72
VERSION=7.2
PLATFORM=solaris
DATABASE=oracle
HOSTNAME=sargasso
ORHOST=sargasso
DBPATH=/vol/sargasso1/ccmdb/base72/db
PROTECT=unprotected
ACTIVE=YES (database is active)
FILELIMIT=
CASE=PRESERVE
SCHEMA=0114
ACCELERATED=BUILT-IN:
member_status, created_in, local_to, modifiable_in, platform,
completed_in, crstatus, automatic_task_key, case_perserved_name
The path is specified by DBPATH.
After you have created a database, check the messages from the create or unpack commands.
The messages show the DBPATH set for the database.
If the DBPATH is not set to an absolute path that
all machines can recognize, use the ccmdb info command
to change it.
- Exit from user ccm_root.