Root, su-db2admin reports Segmentation fault. In the AIX environment with the DB2 database installed, when the user logs on to the system as the root user, then run the su command to the db2admin (# su-db2admin) user and always report the Segmentation fault (core dump) error (or the same error is reported when the db2admin user telnet to the system)
◆ 1. Edit the. PRofile file in the db2admin user directory and comment out all DB2-related projects (add # Before this line)
# If [-f/home/db2admin/das/dasprofile]; then
./Home/db2admin/das/dasprofile
Fi
)
If the problem returns to normal after being commented out, it turns out that it is a problem with the DB2 environment setup, you can ask the DB2 engineer to solve the setup problem.
Lppchk-v/-c
◆ 2. You can run the command to check for corrupted fileset or kernel files # lppchk-v, lppchk-f
◆ 3. Check that the directory of the db2admin user is not mounted. If the directory is not mounted, the above problem will also occur. (During the default installation, db2admin will be under the/home directory, but usually the customer will establish an independent logical volume and the corresponding file system to store the corresponding instance. So when the directory is not mounted, this problem occurs in su-db2admin .)
◆ 4. Another problem is that non-standard characters exist in. sh_history in the home directory of the db2admin user. just delete the file. (You must delete it. If you use # cp/dev/null. sh_history, it does not work)
Generally, we recommend that you do 4th items first. If you solve this problem, you do not need to perform other checks, especially in a running production system.