powered by simpleCommunicator - 2.0.59     © 2025 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / IBM DB2, WebSphere, IMS, U2 [игнор отключен] [закрыт для гостей] / DB2 ошибка при создании das (SQL4401C) и instance (DBI1281E)
25 сообщений из 25, страница 1 из 1
DB2 ошибка при создании das (SQL4401C) и instance (DBI1281E)
    #37157996
Ragnar
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Устанавливаю на linux Gentoo x86_64 оп инструкции (прикреплено) 1C+db2

Установил db2, создаю DAS и instance - валятся ошибки. :(

Код: plaintext
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
instance # db2ls

Install Path                       Level   Fix Pack   Special Install Number   Install Date                  Installer UID
---------------------------------------------------------------------------------------------------------------------
/opt/ibm/db2/V9.7                 9.7.0.2        2                            Thu Mar 10 14:58:34 2011 EET             0


instance # ./dascrt -u das
SQL4401C  The DB2 Administration Server encountered an error during startup.
DBI1070I  Program dascrt completed successfully.


instance # ./db2icrt -u db2fenc -p 50000 db2inst
DBI1281E  The database manager configuration file could not be
      initialized.

Explanation:

An error occurred when attempting to initialize the database manager
configuration file. A DB2 instance could not be created or upgraded.

User response:

Refer to the log file for troubleshooting. Resolve the problem and try
the command again. If the problem persists, contact your IBM service
representative.


DBI1079I  Output is saved in the log file /tmp/db2icrt.log.20817.

Explanation:

All processed and failed operations have been saved into this log file.

User response:

Do not modify this file in any way. This file is for IBM Technical
Support reference.


/opt/ibm/db2/V9.7/instance/db2iutil: line 2526: DB2INSTVER: параметр null или не установлен


Делаю все то же самое на ноуте тоже с Gentoo x86_64 - все создается без ошибок.

Помогите, пожалуйста.
...
Рейтинг: 0 / 0
DB2 ошибка при создании das (SQL4401C) и instance (DBI1281E)
    #37158041
Mark Barinstein
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Ragnar,

1. Прикрепите
/tmp/db2icrt.log.20817
2. Место на диске дома у владельца инстанса есть?
...
Рейтинг: 0 / 0
DB2 ошибка при создании das (SQL4401C) и instance (DBI1281E)
    #37158083
GVF112GVF
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Ragnar,

Проверить номер порта 50 000 в файле services, он может быть занят.

Что выдает:

./db2icrt -u db2fenc -p 60000 db2inst


С уважением,
Вадим.
...
Рейтинг: 0 / 0
DB2 ошибка при создании das (SQL4401C) и instance (DBI1281E)
    #37158221
Ragnar
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Mark BarinsteinRagnar,

1. Прикрепите
Код: plaintext
/tmp/db2icrt.log.20817
2. Место на диске дома у владельца инстанса есть?

1. Прикрепил.
2. Под /home/ доступно 863G
Код: plaintext
1.
# df -h | grep home
/dev/sdb1             932G   69G  863G   8% /home


GVF112GVFRagnar,

Проверить номер порта 50 000 в файле services, он может быть занят.

Что выдает:

./db2icrt -u db2fenc -p 60000 db2inst


С уважением,
Вадим.

В /etc/services нет записи с 50000 портом.
Код: plaintext
1.
2.
# cat /etc/services | grep 50000
#


Код: plaintext
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
instance # rm -rf /home/db2inst/sqllib (иначе при следующей команде сообщает что такой каталог уже существует)
instance # ./db2icrt -u db2fenc -p 60000 db2inst
DBI1281E  The database manager configuration file could not be
      initialized.

Explanation:

An error occurred when attempting to initialize the database manager
configuration file. A DB2 instance could not be created or upgraded.

User response:

Refer to the log file for troubleshooting. Resolve the problem and try
the command again. If the problem persists, contact your IBM service
representative.


DBI1079I  Output is saved in the log file /tmp/db2icrt.log.27562.

Explanation:

All processed and failed operations have been saved into this log file.

User response:

Do not modify this file in any way. This file is for IBM Technical
Support reference.


/opt/ibm/db2/V9.7/instance/db2iutil: line 2526: DB2INSTVER: параметр null или не установлен
...
Рейтинг: 0 / 0
DB2 ошибка при создании das (SQL4401C) и instance (DBI1281E)
    #37158225
Фотография Абсолют
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Как я вижу, у вас прав нет.
...
Рейтинг: 0 / 0
DB2 ошибка при создании das (SQL4401C) и instance (DBI1281E)
    #37158231
Ragnar
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
АбсолютКак я вижу, у вас прав нет.

Код: plaintext
1.
# whoami
root


Эм... Я что-то не понимаю или какие еще права нужны?
...
Рейтинг: 0 / 0
DB2 ошибка при создании das (SQL4401C) и instance (DBI1281E)
    #37158245
Фотография Абсолют
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Ваш лог Program name = db2idbm
Instance home dir = /home/db2inst, Sysadm group = db2inst
Instance type = 3, Auth type = SERVER

SQL1092N "" does not have the authority to perform the requested command or operation.
Update DBM cfg SYSADM_GROUP errcode = 4
DBI1281E The database manager configuration file could not be initialized.

Explanation:

An error occurred when attempting to initialize the database manager
configuration file. A DB2 instance could not be created or upgraded.

User response:

Refer to the log file for troubleshooting. Resolve the problem and try
the command again. If the problem persists, contact your IBM service
representative.


DBI1079I Output is saved in the log file /tmp/db2icrt.log.20817.

Explanation:

All processed and failed operations have been saved into this log file.

User response:

Do not modify this file in any way. This file is for IBM Technical
Support reference.
...
Рейтинг: 0 / 0
DB2 ошибка при создании das (SQL4401C) и instance (DBI1281E)
    #37158257
Ragnar
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Абсолют,

/tmp/db2icrt.log.20817
Код: plaintext
SQL1092N "" does not have the authority to perform the requested command or operation.

Я правильно понимаю, что в "" должен быть логин пользователя?
/tmp/db2icrt.log.20817
Код: plaintext
Update DBM cfg SYSADM_GROUP errcode = 4

Это рекомендация проапдейтить конфиг? Как это сделать? Что вписать?
...
Рейтинг: 0 / 0
DB2 ошибка при создании das (SQL4401C) и instance (DBI1281E)
    #37158260
Ragnar
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Ragnar,

+ к предыдущему сообщению:

Почему при выполнении тех же действия на другом компе этой ошибки нет (instance создается без ошибок)?
...
Рейтинг: 0 / 0
DB2 ошибка при создании das (SQL4401C) и instance (DBI1281E)
    #37158262
Mark Barinstein
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Ragnar,

Посмотрел мануал.
Там не создаются первичные группы для db2inst, db2fenc, das.
Это нехорошо.
Сделайте:
Код: plaintext
1.
2.
3.
4.
5.
groupadd db2iadm
usermod -g db2iadm db2inst
groupadd db2fadm
usermod -g db2fadm db2fenc
groupadd das
usermod -g dasadm das
Убедитесь, что у всех у них есть домашние каталоги, и повторите.
...
Рейтинг: 0 / 0
DB2 ошибка при создании das (SQL4401C) и instance (DBI1281E)
    #37159475
Ragnar
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Mark Barinstein,

Код: plaintext
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
45.
46.
47.
48.
# groupadd db2iadm
# groupadd db2fadm
# groupadd dasadm
# usermod -g db2iadm db2inst
# usermod -g db2fadm db2fenc
# usermod -g dasadm das
# ls -l /home/ | grep -e db2 -e das
drwxr-xr-x  5 das        das        288 Мар 10 15:26 das
drwxr-xr-x  3 db2fenc    db2fenc    240 Мар  9 12:53 db2fenc
drwxr-xr-x  4 db2inst    db2inst    264 Мар 10 17:18 db2inst
#
# /opt/ibm/db2/V9.7/instance/db2ilist
# /opt/ibm/db2/V9.7/instance/daslist
#
# /opt/ibm/db2/V9.7/instance/dascrt -u das
SQL4401C  The DB2 Administration Server encountered an error during startup.
DBI1070I  Program dascrt completed successfully.


backup db2inst # /opt/ibm/db2/V9.7/instance/db2icrt -u db2fenc -p 50000 db2inst
DBI1281E  The database manager configuration file could not be
      initialized.

Explanation:

An error occurred when attempting to initialize the database manager
configuration file. A DB2 instance could not be created or upgraded.

User response:

Refer to the log file for troubleshooting. Resolve the problem and try
the command again. If the problem persists, contact your IBM service
representative.


DBI1079I  Output is saved in the log file /tmp/db2icrt.log.7955.

Explanation:

All processed and failed operations have been saved into this log file.

User response:

Do not modify this file in any way. This file is for IBM Technical
Support reference.


/opt/ibm/db2/V9.7/instance/db2iutil: line 2526: DB2INSTVER: параметр null или не установлен


Создание групп не помогло. :(
...
Рейтинг: 0 / 0
DB2 ошибка при создании das (SQL4401C) и instance (DBI1281E)
    #37159713
Mark Barinstein
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Ragnar
Код: plaintext
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
# groupadd db2iadm
# groupadd db2fadm
# groupadd dasadm
# usermod -g db2iadm db2inst
# usermod -g db2fadm db2fenc
# usermod -g dasadm das
# ls -l /home/ | grep -e db2 -e das
drwxr-xr-x  5 das        das        288 Мар 10 15:26 das
drwxr-xr-x  3 db2fenc    db2fenc    240 Мар  9 12:53 db2fenc
drwxr-xr-x  4 db2inst    db2inst    264 Мар 10 17:18 db2inst
#

Создание групп не помогло. :(
Код: plaintext
1.
chown -R db2inst:db2iadm /home/db2inst
/opt/ibm/db2/V9. 7 /instance/db2icrt -u db2fenc -p  50000  db2inst
и выложите файл *.log.*
...
Рейтинг: 0 / 0
DB2 ошибка при создании das (SQL4401C) и instance (DBI1281E)
    #37159719
Vladimir Kiselev
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Ragnar,

Очень похоже, но не факт.
Вы в /etc/hosts свою машину прописали?
<myIP> <myHostname>

например:
10.10.10.123 myhost
...
Рейтинг: 0 / 0
DB2 ошибка при создании das (SQL4401C) и instance (DBI1281E)
    #37159987
Ragnar
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Mark Barinstein,

Код: plaintext
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
# groupmems -g dasadm -l
db2inst  das
# groupmems -g db2iadm -l
db2inst
# groupmems -g db2fadm -l
db2fenc
# /opt/ibm/db2/V9.7/bin/db2greg -delinstrec service=DB2,instancename=db2inst
# /opt/ibm/db2/V9.7/instance/db2ilist
# rm -rf /home/db2inst/sqllib
# chown -R db2inst:db2iadm /home/db2inst
# ls -l /home/db2inst
итого 0
# ls -l /home/ | grep db2inst
drwxr-xr-x  4 db2inst    db2iadm    264 Мар 11 14:45 db2inst
# /opt/ibm/db2/V9.7/instance/db2icrt -p 50000 -u db2fenc db2inst
DBI1281E  The database manager configuration file could not be
      initialized.

Explanation:

An error occurred when attempting to initialize the database manager
configuration file. A DB2 instance could not be created or upgraded.

User response:

Refer to the log file for troubleshooting. Resolve the problem and try
the command again. If the problem persists, contact your IBM service
representative.


DBI1079I  Output is saved in the log file /tmp/db2icrt.log.6249.

Explanation:

All processed and failed operations have been saved into this log file.

User response:

Do not modify this file in any way. This file is for IBM Technical
Support reference.


/opt/ibm/db2/V9.7/instance/db2iutil: line 2526: DB2INSTVER: параметр null или не установлен


/tmp/db2icrt.log.6249 прикрепил.

Vladimir Kiselev,

автор
Код: plaintext
1.
# cat /etc/hosts | grep 192.
192.168.1.100   myserver myserver.mydomain.local

Кроме того настроен bind
Код: plaintext
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
# nslookup 192.168.1.100
Server:         127.0.0.1
Address:        127.0.0.1#53

100.1.168.192.in-addr.arpa      name = sarg.ssi.local.
100.1.168.192.in-addr.arpa      name = myserver.ssi.local.
# nslookup myserver
Server:         127.0.0.1
Address:        127.0.0.1#53

Name:   myserver.ssi.local
Address: 192.168.1.100

*вместо myserver другое имя
...
Рейтинг: 0 / 0
DB2 ошибка при создании das (SQL4401C) и instance (DBI1281E)
    #37160055
Mark Barinstein
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Ragnar,

Дайте вывод:
cat /etc/nsswitch.conf
...
Рейтинг: 0 / 0
DB2 ошибка при создании das (SQL4401C) и instance (DBI1281E)
    #37160062
Ragnar
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Mark Barinstein,

Код: plaintext
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
 # cat /etc/nsswitch.conf 
# /etc/nsswitch.conf:
# $Header: /var/cvsroot/gentoo/src/patchsets/glibc/extra/etc/nsswitch.conf,v 1.1 2006/09/29 23:52:23 vapier Exp $

passwd:      compat
shadow:      compat
group:       compat

# passwd:    db files nis
# shadow:    db files nis
# group:     db files nis

hosts:       files dns
networks:    files dns

services:    db files
protocols:   db files
rpc:         db files
ethers:      db files
netmasks:    files
netgroup:    files
bootparams:  files

automount:   files
aliases:     files
...
Рейтинг: 0 / 0
DB2 ошибка при создании das (SQL4401C) и instance (DBI1281E)
    #37160095
Mark Barinstein
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Ragnar,

Поставьте

Код: plaintext
1.
2.
passwd:      files
shadow:      files
group:       files

не знаю, надо ли перегружаться после этого.
После этого попробуйте ещё раз db2icrt и выложите файл *.log.*
...
Рейтинг: 0 / 0
DB2 ошибка при создании das (SQL4401C) и instance (DBI1281E)
    #37160255
Ragnar
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Mark Barinstein,

Код: plaintext
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
45.
46.
47.
48.
49.
50.
51.
52.
53.
54.
55.
56.
57.
58.
59.
60.
61.
62.
63.
64.
65.
66.
67.
68.
69.
70.
71.
72.
73.
74.
75.
76.
77.
78.
79.
80.
81.
82.
83.
84.
85.
86.
87.
 # /opt/ibm/db2/V9.7/instance/db2ilist 
db2inst
 # /opt/ibm/db2/V9.7/instance/db2idrop db2inst 
DBI1070I  Program db2idrop completed successfully.


 # /opt/ibm/db2/V9.7/instance/db2ilist 
db2inst
 # /opt/ibm/db2/V9.7/bin/db2greg -delinstrec service=DB2,instancename=db2inst 
 # rm -rf /home/db2inst/sqllib
# ls -l /home/db2inst 
итого 0
 # /opt/ibm/db2/V9.7/instance/db2ilist
# cat /etc/nsswitch.conf | grep -e passwd -e group -e shadow 
passwd:      files
shadow:      files
group:       files
##passwd:      compat
##shadow:      compat
##group:       compat
# passwd:    db files nis
# shadow:    db files nis
# group:     db files nis
netgroup:    files

 # /opt/ibm/db2/V9.7/instance/db2icrt -p 50000 -u db2fenc db2inst 
DBI1281E  The database manager configuration file could not be
      initialized.

Explanation:

An error occurred when attempting to initialize the database manager
configuration file. A DB2 instance could not be created or upgraded.

User response:

Refer to the log file for troubleshooting. Resolve the problem and try
the command again. If the problem persists, contact your IBM service
representative.


DBI1079I  Output is saved in the log file /tmp/db2icrt.log.13704.

Explanation:

All processed and failed operations have been saved into this log file.

User response:

Do not modify this file in any way. This file is for IBM Technical
Support reference.


/opt/ibm/db2/V9.7/instance/db2iutil: line 2526: DB2INSTVER: параметр null или не установлен
 # cat /tmp/db2icrt.log.13704 
       Program name = db2idbm
Instance home dir = /home/db2inst,   Sysadm group = db2iadm
Instance type = 3,  Auth type = SERVER

SQL1092N  "" does not have the authority to perform the requested command or
operation.
Update DBM cfg SYSADM_GROUP errcode = 4
DBI1281E  The database manager configuration file could not be
      initialized.

Explanation:

An error occurred when attempting to initialize the database manager
configuration file. A DB2 instance could not be created or upgraded.

User response:

Refer to the log file for troubleshooting. Resolve the problem and try
the command again. If the problem persists, contact your IBM service
representative.


DBI1079I  Output is saved in the log file /tmp/db2icrt.log.13704.

Explanation:

All processed and failed operations have been saved into this log file.

User response:

Do not modify this file in any way. This file is for IBM Technical
Support reference.
...
Рейтинг: 0 / 0
DB2 ошибка при создании das (SQL4401C) и instance (DBI1281E)
    #37160326
Mark Barinstein
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Ragnar,


Оно по какой-то причине не хочет
db2 update dbm cfg using sysadm_group db2iadm
делать.
Попробуйте выполнить эту команду после db2icrt и:
su - db2inst
db2ilist
если последняя выдаст имя db2inst в списке.
...
Рейтинг: 0 / 0
DB2 ошибка при создании das (SQL4401C) и instance (DBI1281E)
    #37160877
Ragnar
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Mark Barinstein,

Проблема в том, что даже не выполняя никакой команды, db2ilist из-под юзера db2inst показывает db2inst

Код: plaintext
1.
2.
3.
# su - db2inst
myserver@backup $ /opt/ibm/db2/V9.7/instance/db2ilist
db2inst
myserver@backup $
...
Рейтинг: 0 / 0
DB2 ошибка при создании das (SQL4401C) и instance (DBI1281E)
    #37160883
Ragnar
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Mark Barinstein,

Код: plaintext
1.
2.
3.
4.
5.
# whoami
root
# ./db2 update dbm cfg using SYSADM_GROUP db2iadm
SQL1092N  "" does not have the authority to perform the requested command or
operation.


Во как...
...
Рейтинг: 0 / 0
DB2 ошибка при создании das (SQL4401C) и instance (DBI1281E)
    #37161144
Mark Barinstein
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
RagnarMark Barinstein,

Код: plaintext
1.
2.
3.
4.
5.
# whoami
root
# ./db2 update dbm cfg using SYSADM_GROUP db2iadm
SQL1092N  "" does not have the authority to perform the requested command or
operation.


Во как...Эту команду я предлагал выполнить не из-под root, а из-под db2inst.
Перед исполнением команды убедитесь, что у db2inst в профиле стоит запуск ~/sqllib/db2profile.
Если нет, то запустите её явно:
. ~/sqllib/db2profile
...
Рейтинг: 0 / 0
DB2 ошибка при создании das (SQL4401C) и instance (DBI1281E)
    #37162250
Ragnar
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Mark Barinstein,

Кажется, нашел в чем проблема. Завтра все проверю и отпишусь.
...
Рейтинг: 0 / 0
DB2 ошибка при создании das (SQL4401C) и instance (DBI1281E)
    #37163709
Фотография Абсолют
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Ragnar,

Ну и как успехи? :)
...
Рейтинг: 0 / 0
DB2 ошибка при создании das (SQL4401C) и instance (DBI1281E)
    #37168855
Ragnar
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Абсолют,

Успешно создал instance. Проблема заключалась в том, что под /home/ смонтирован отдельный даск с запретом выполнения файлов.

Всем спасибо за помощь!
...
Рейтинг: 0 / 0
25 сообщений из 25, страница 1 из 1
Форумы / IBM DB2, WebSphere, IMS, U2 [игнор отключен] [закрыт для гостей] / DB2 ошибка при создании das (SQL4401C) и instance (DBI1281E)
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]