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: *****
If you did not set up CCM_HOME and PATH for user ccm_root during installation, set these environment variables now. See Setting environment variables for UNIX.
- 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/base71
VERSION=7.1
PLATFORM=solaris
HOSTNAME=sargasso
ORHOST=sargasso
DBPATH=/vol/sargasso1/ccmdb/base71/db
DATABASE=informixoracle PROTECT=unprotected
ACTIVE=YES (database is active)NO (database is inactive) CASE=PRESERVE SIZE=20480 KBYTES
SCHEMA=01110111
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.
For example, set the newdb database path to /vol/vod1/ccmdb/newdb/db.
$ ccmdb info -k DBPATH -v /vol/vod1/ccmdb/newdb/db newdb
- Exit from user ccm_root.