powered by simpleCommunicator - 2.0.53     © 2025 Programmizd 02
Форумы / IBM DB2, WebSphere, IMS, U2 [игнор отключен] [закрыт для гостей] / db2advis on 8.2???
4 сообщений из 4, страница 1 из 1
db2advis on 8.2???
    #32910415
Фотография riman
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Кто нибудь пытался юзать эту тулзину на 8.2??? У меня ничерта не выходит.
Код: plaintext
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
C:\Program Files\IBM\SQLLIB\BIN>db2advis -d yeis1 -s "select * from yeis.kontracts where kntid<'234'" -a ***/*** -n LVA
execution started at timestamp  2005 - 02 - 10 - 17 . 45 . 03 . 296002 
Recommending indexes...
I'm having trouble processing the following query, statement [1] in the workload


Please check the syntax:
SQL: <select * from yeis.kontracts where kntid<'234'>

Database is reporting the following error:

error.  The db2advis tool needs the explain tables and
        the advise tables to exist.  Please create them
        using the EXPLAIN.DDL script in the misc subdirectory
        of the sqllib directory.

 0  solutions were evaluated by the advisor

exiting with error code [- 219 ]
Explain.ddl запускал, все таблицы созданы. Не могу понять почему не работает.
На 8.1 помню без проблем всё работало. Или может быть я что то упускаю?
...
Рейтинг: 0 / 0
db2advis on 8.2???
    #32910469
gardenman
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Код: 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.
88.
89.
90.
91.
92.
93.
94.
95.
96.
97.
98.
99.
100.
101.
102.
F:\---\advise>db2advis -d test -a db2admin/ibmdb2 -s "select count(*) from nl where name between 'S' and 'T'" 
execution started at timestamp  2005 - 02 - 10 - 16 . 08 . 45 . 015000 
Recommending indexes...
total disk space needed for initial set [    0 , 009 ] MB
total disk space constrained to         [   11 , 812 ] MB
Trying variations of the solution set.
Optimization finished.
   1   indexes in current solution
 [  13 , 0000 ] timerons  (without recommendations)
 [   0 , 0482 ] timerons  (with current solution)
 [ 99 , 63 %] improvement


--
--
-- LIST OF RECOMMENDED INDEXES
-- ===========================
-- index[1],    0,009MB
   CREATE INDEX "DB2ADMIN"."IDX502101308460000" ON "DB2ADMIN"."NL" ("NAME" ASC) ALLOW REVERSE SCANS ;
   COMMIT WORK ;
   RUNSTATS ON TABLE "DB2ADMIN"."NL" FOR INDEX "DB2ADMIN"."IDX502101308460000" ;
   COMMIT WORK ;


--
--
-- RECOMMENDED EXISTING INDEXES
-- ============================


--
--
-- UNUSED EXISTING INDEXES
-- ============================
-- ===========================
--

 7  solutions were evaluated by the advisor
DB2 Workload Performance Advisor tool is finished.

F:\---\advise>db2advis -d test -a db2admin/ibmdb2 -i query.adv 
execution started at timestamp  2005 - 02 - 10 - 16 . 08 . 46 . 578002 
found [ 1 ] SQL statements from the input file
Recommending indexes...
total disk space needed for initial set [    0 , 009 ] MB
total disk space constrained to         [   11 , 812 ] MB
Trying variations of the solution set.
Optimization finished.
   1   indexes in current solution
 [  13 , 0000 ] timerons  (without recommendations)
 [   0 , 0482 ] timerons  (with current solution)
 [ 99 , 63 %] improvement


--
--
-- LIST OF RECOMMENDED INDEXES
-- ===========================
-- index[1],    0,009MB
   CREATE INDEX "DB2ADMIN"."IDX502101308490000" ON "DB2ADMIN"."NL" ("NAME" ASC) ALLOW REVERSE SCANS ;
   COMMIT WORK ;
   RUNSTATS ON TABLE "DB2ADMIN"."NL" FOR INDEX "DB2ADMIN"."IDX502101308490000" ;
   COMMIT WORK ;


--
--
-- RECOMMENDED EXISTING INDEXES
-- ============================


--
--
-- UNUSED EXISTING INDEXES
-- ============================
-- ===========================
--

 7  solutions were evaluated by the advisor
DB2 Workload Performance Advisor tool is finished.

F:\---\advise>db2level
DB21085I  Instance "DB2" uses "32" bits and DB2 code release "SQL08021" with 

level identifier "03020106".

Informational tokens are "DB2 v8.1.8.762", "s041221", "WR21348", and FixPak 

"8".

Product is installed at "F:\SQLLIB".



F:\---\advise>db2licm -l 
Product Name                            = "DB2 Personal Edition"
Product Identifier                      = "DB2PE"
Version Information                     = "8.2"
Expiry Date                             = "Permanent"
Annotation                              = ""
Other information                       = ""



(c) Copyright IBM Corporation 1993,2002
Command Line Processor for DB2 SDK 8.2.1
...
Рейтинг: 0 / 0
db2advis on 8.2???
    #32910485
gardenman
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
есть конечно еще некоторые вопросы.
почему в DB2 PDE db2explain не работает? я выкрутился из ситуации - взял соответствующие *.dll и *.bnd из Db2 ESE. Может так специально сделано было?
...
Рейтинг: 0 / 0
db2advis on 8.2???
    #32911380
Фотография riman
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
У меня 8.1.7. Может поэтому не работает?
До апгрейда работало нормально.
На 7-ой фикс 8-ку накатить можно?
...
Рейтинг: 0 / 0
4 сообщений из 4, страница 1 из 1
Форумы / IBM DB2, WebSphere, IMS, U2 [игнор отключен] [закрыт для гостей] / db2advis on 8.2???
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


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