免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 8000 | 回复: 4
打印 上一主题 下一主题

Enabling DB2 Web Query for IBM i (5733-QU2) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-07-25 13:38 |只看该作者 |倒序浏览
How to enable DB2 Web Query (5733-QU2) on your system?

1. Install DB2 WEB QUERY

- Install Product Base
RSTLICPGM LICPGM(5733QU2) DEV(OPT01)

- If purchased - Install the Active Reports option
RSTLICPGM LICPGM(5733QU2) DEV(OPT01) OPTION(1)

- If purchased - Install the OLAP Enablement option
RSTLICPGM LICPGM(5733QU2) DEV(OPT01) OPTION(2)

- If purchased - Install the Developer Workbench:
RSTLICPGM LICPGM(5733QU2) DEV(OPT01) OPTION(3)

- If purchased – (V1R1M1 Only) Install the Run Time User Enablement option
RSTLICPGM LICPGM(5733QU2) DEV(OPT01) OPTION(4)

2. To register the DB2 Web Query HTTP Instance

CALL QWEBQRY76/REGWEBQRY

3. The first time the product is installed, it creates a user profile QWEBQRYADM with no
password supplied. Run the following command to set its password.

CHGUSRPRF USRPRF(QWEBQRYADM) PASSWORD(<yourpwd>)

4. Start and End Web Query

- QWEBQRY76/STRWEBQRY START(*ALL)
Use the STRTWEBQRY command to start all the jobs that are required to run Web Query.

- QWEBQRY76/ENDWEBQRY
Use the ENDWEBQRY command to end the Reporting Server.
We recommend that you use the OPTION (*CLEAR).

- QWEBQRY76/TRCWEBQRY
The TRCWEBQRY command turns on, turns off, and saves server traces.

- QWEBQRY76/DSPWEBQRY
The DSPWEBQRY command displays the server status output using DSPF.                                      

NOTE=============================================================================

DB2 Web Query server jobs

DB2 Web Query connects to i5/OS using the SQL call-level interface (CLI). CLI is a callable
SQL programming interface that is available in DB2 on i5/OS. CLI consists of application
programming interfaces (APIs) that are used to connect to the server and start dynamic SQL
statements. The CLI is a subset of Open Database Connectivity (ODBC). The system job that
processes CLI is QSQSRVR. For more information about CLI, refer to System i Database
DB2 UDB SQL call level interface (ODBC) on the Web at:

http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/cli/rzadp.pdf

The following jobs run on your server when the Reporting Server is running. For all jobs, the
start time of the job is the start time of the Reporting Server.

(01). EDAPTH: There is one job that helps with the workspace process.
(02). EDAPLOG: There is one job that contains startup information.
(03). EDAPGWY: There are three of these jobs, which are listener jobs, one each for HTTP, TCP, and Java.
       These jobs receive incoming requests and hand off work to the TSCOM3 jobs.
(04). TSCOM3: By default, four of these jobs are running. These jobs accept the request from the EDAPGWY
       job and translate the DB2 Web Query request into SQL. One TSCOM3 job does not correspond to one
       user; one TSCOM3 job can service several users. For this reason, the design of these jobs contributes
       to the scalability of the product. They are referred to as "agents."
(05). JSCOM3: There is one job, which services Java processes.
(06). HLISNK: There is one job, which is an internal server process.
(07). QP0ZSPWP: This job is the DB2 Web Query JVM thread.
(08). WQLWI7: This job is for integrated application server jobs. Three of these jobs should be running
       whenever DB2 Web Query is active.
(09). QSQSRVR: This i5/OS native prestart job handles SQL requests that are made over CLI. This job does
       the actual database work of optimization and returning the result.

All these jobs are started in QSYSWRK when the STRWEBQRY command is used. The QSQSRVR jobs always
run in the QSYSWRK subsystem, even if you configure all the other jobs to run in their own subsystem.

You can find information about the runtime environment, including the ports that are used, in
/QIBM/UserData/webquery/ibi/srv76/wfs/edaprint.log.

=============================================================================NOTE

5. Create DB2WQRY

CHGSYSVAL SYSVAL(QLOCALE) VALUE('/QSYS.LIB/ZH_CN.LOCALE')   

CHGSYSVAL SYSVAL(QSETJOBATR) VALUE('*CCSID *DATFMT *DATSEP *TIMSEP *DECFMT *SRTSEQ')

CHGUSRPRF USRPRF(QSECOFR) LANGID(CHS) CNTRYID(CN) CCSID(*SYSVAL)
          SETJOBATR(*SYSVAL) LOCALE(*SYSVAL)

CHGUSRPRF USRPRF(QWEBQRYADM) LANGID(CHS) CNTRYID(CN) CCSID(*SYSVAL)
          SETJOBATR(*SYSVAL) LOCALE(*SYSVAL)

CRTUSRPRF USRPRF(DB2WQRY) PASSWORD(<yourpwd>) USRCLS(*SECOFR)
          TEXT('User Profile for DB2 Web Query')
          LANGID(CHS) CNTRYID(CN) CCSID(*SYSVAL)
          SETJOBATR(*SYSVAL) LOCALE(*SYSVAL)   

// In order to create a Domain, a user should be in group MRADMIN

CHGUSRPRF USRPRF(DB2WQRY) GRPPRF(MRADMIN)   

NOTE=============================================================================

// If user already has a group profile, you can set MRADMIN into his supplemental group

CHGUSRPRF USRPRF(DB2WQRY) SUPGRPPRF(MRADMIN) // Supplemental group

=============================================================================NOTE

6. Registering named users

CALL QWEBQRY76/WQADDLIC 'DB2WQRY'

NOTE=============================================================================

Named User Licensing (each user needs to be pre-authorized):

(1) Registering a new user
- To register a user with DB2 Web Query, enter the following command:
CALL QWEBQRY76/WQADDLIC 'USERPROFILE'

USERPROFILE references your System i user profile name and must be specified in
uppercase letters.

(2) Removing a DB2 Web Query registration
- To remove a registered DB2 Web Query user, enter the following command:
CALL QWEBQRY76/WQRLSLIC 'USERPROFILE'

Again your user profile must be in uppercase.

(3) Displaying the registered users
- To display your currently registered users, enter the following command:
WRKLICINF PRDID(5733QU2)
Then select option 8 for feature 5050.

=============================================================================NOTE

7. Log into DB2 Web Query

For Login:
http://<ip_address>:11331/webquery    => DB2WQRY / <yourpwd>

For Administration:
http://<ip_address>:11331/webquery_html/wfconsole.htm       => QWEBQRYADM / <yourpwd>

NOTE=============================================================================

If you get the following error message:

Invalid userid and password. Please try again.

please consider entering:

ADDLNK OBJ('/QIBM/ProdData/OS400/jt400/lib/jt400Native.jar')
       NEWLNK('/QIBM/UserData/webquery/ibi/webfocus76/WQLWI7/lwi/lib/jt400Native.jar')   
       LNKTYPE('*SYMBOLIC')

Restart DB2WEB server and its HTTP server instance

QWEBQRY76/ENDWEBQRY OPTION(*CLEAR)
QWEBQRY76/STRWEBQRY START(*ALL)                                         

============================================================================NOTE

8. Create a Domain and Assign authority to users

(1). Log on to the DB2 Web Query home page as administrator, which is a user profile that
belongs to the MRADMIN group.

(2). Right-click Domains and select New Domain.
Please use exactly 8 characters for Domain name. => C609AEBF

(3). From the System i command line, create the user profiles using the following CL commands:
CRTUSRPRF USRPRF(MD<Domain>) TEXT('Group Profile for Developers')
CRTUSRPRF USRPRF(MU<Domain>) TEXT('Group Profile for Basic Users')

(4). Assign the existing users their correct authority. Enter CHGUSRPRF as follows:
CHGUSRPRF USRPRF(<user1>) GRPPRF(MD<Domain>)
CHGUSRPRF USRPRF(<user2>) GRPPRF(MU<Domain>)

For example:

CRTUSRPRF USRPRF(DB2WEBDEV) PASSWORD(<yourpwd>) USRCLS(*SECOFR)
          TEXT('User Profile for DB2 Web Query')
          LANGID(CHS) CNTRYID(CN) CCSID(*SYSVAL)
          SETJOBATR(*SYSVAL) LOCALE(*SYSVAL)  

CRTUSRPRF USRPRF(DB2WEBUSR) PASSWORD(<yourpwd>) USRCLS(*SECOFR)
          TEXT('User Profile for DB2 Web Query')
          LANGID(CHS) CNTRYID(CN) CCSID(*SYSVAL)
          SETJOBATR(*SYSVAL) LOCALE(*SYSVAL)  

CHGUSRPRF USRPRF(DB2WEBDEV) GRPPRF(MD<Domain>)  // Developer Group
CHGUSRPRF USRPRF(DB2WEBUSR) GRPPRF(MU<Domain>)  // User Group

CALL QWEBQRY76/WQADDLIC 'DB2WEBDEV'   
CALL QWEBQRY76/WQADDLIC 'MU<Domain>'   // Assign authority to the whole user group.

NOTE=============================================================================

User Type    ------------------------------- Authority ---------------------------------

MRADMIN      Create Domain / Create Subfolder/ Create report/ Change Report / Run Report
MD<Domain>                        Create Subfolder/ Create report/ Change Report / Run Report
MU<Domain>                                                                                           Run Report

=============================================================================NOTE

9. Download QWQCENT.SAVF from the following URL, and upload it to your system:

ftp://www.redbooks.ibm.com/redbooks/SG247214

On the command line, enter:

RSTLIB SAVLIB(QWQCENT) DEV(*SAVF) SAVF(QGPL/QWQCENT)

10. Log into DB2 Web Query by using DB2WEBDEV, Create subfolder under <Domain>/Report.

11. Right-click subfolder and select Metadata.  

NOTE=============================================================================

Metadata are under /QIBM/USERDATA/webquery/ibi/apps/baseapp

If built from a file, the metadata will include:
* Master File (*.mas): This file identifies the fields of the table.
* Access File (*.acx): This file identifies the object name and type on which the metadata is created.

If built from a Query Definition, the metadata will include:
* Master File (*.mas): This file identifies QRYDFN, the fields of that query's result set.
* Access File (*.acx): This file identifies the object name and type on which the metadata is created.
and three additional files:
* (*.fex)
* (*.inf)
* (*_Info2.txt)

To delete Metadata files, enter:
WRKLNK OBJ('/QIBM/USERDATA/webquery/ibi/apps/baseapp/*')
Find and delete the coresponding files.

=============================================================================NOTE

12. Now, you can start using DB2 Web Query.

Refer to the following redbook, see Chapter 4/5/6/7...

SG24-7214-00 Getting Started with DB2 Web Query for System i (November 2007)        
http://www.redbooks.ibm.com/abstracts/sg247214.html?Open

[ 本帖最后由 oliverchenbing 于 2009-7-25 14:24 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2009-07-25 14:20 |只看该作者

IBM i Requirements for Running 5733-QU2

Of course, you should first check the prerequisites for running DB2 web query on
your system:

First of all, i5.4 or later is required.

Secondly, make sure the following licensed programs are installed:

For i5.4:
– 5722SS1 option 30 - Qshell
– 5722SS1 option 33 - Portable App Solutions Environment
– 5722JC1 - IBM Toolbox for Java
– 5722DG1 - IBM HTTP Server for i5/OS
– 5722JV1 option 7 - Java Developer Kit 5.0
– 5722JV1 option 8 - J2SE™ 5.0 32 bit
– 5722JV1 - Java Runtime Environment (JRE™) 1.4 or later

For i6.1:
– 5761SS1 option 30 - Qshell
– 5761SS1 option 33 - Portable App Solutions Environment
– 5761JC1 - IBM Toolbox for Java
– 5761DG1 - IBM HTTP Server for i5/OS
– 5761JV1 option 7 - Java Developer Kit 5.0
– 5761JV1 option 8 - J2SE™ 5.0 32 bit
– 5761JV1 - Java Runtime Environment (JRE™) 1.4 or later

Finally, apply the latest group PTFs on your system:

For i5.4
SF99615               DB2 WEB QUERY FOR IBM I V1.1.1           
SF99540               CUMULATIVE PTF PACKAGE - eg. C9104540         
SF99539               GROUP HIPER                              
SF99504               DB2 FOR SYSTEM I                        
SF99291               JAVA                                    
SF99114               IBM HTTP SERVER FOR I                    

For i6.1
SF99616               DB2 WEB QUERY FOR IBM I V1.1.1      
SF99610               CUMULATIVE PTF PACKAGE - eg. C9111610         
SF99609               GROUP HIPER                              
SF99601               DB2 FOR SYSTEM I                        
SF99562               JAVA                                    
SF99115               IBM HTTP SERVER FOR I

[ 本帖最后由 oliverchenbing 于 2009-7-25 14:39 编辑 ]

论坛徽章:
0
3 [报告]
发表于 2009-07-25 14:37 |只看该作者

S.Chinese Support on DB2 Web Query

可以通过以下的方法,来实现DB2 Web Query对中文的支持:

(1) 以QWEBQRYADM进入管理界面,
http://<ip_address>:11331/webquery_html/wfconsole.htm       => QWEBQRYADM / <yourpwd>

将Configuration/NLS Settings改为946-Simplified Chinese

(2) 以QWEBQRYADM作为用户登录AS400,键入ENDWEBQRY以结束DB2 Web Query

(3) 键入QSH,进入QShell,再键入:

> qibm/proddata/webquery/ibi/srv76/home/bin/tsgult.out NLSCFG   
  /qibm/userdata/webquery/ibi/srv76/wfs 935                     

NOTE=============================================================================

如果不做这件事,就会出现:

Reporting Server and JAVA Client code page mismatch.

There is a code page mismatch between the Reporting Server EDASERVE and the JAVA Client.
Connection can not be established until the server or the client code page is reconfigured
so that they are related to each other.

=============================================================================NOTE

(4) 退出QShell,在命令行键入:

EDTF STMF('/QIBM/UserData/webquery/ibi/webfocus76/WQLWI7/lwi/conf/overrides/i5javaopts.javaopt')

在文件尾部加入:
-Dfile.encoding=Cp1383                     // 解决中文显示问题的关键

(5) 键入STRWEBQRY,以重新启动DB2 Web Query

此时,文件当中的中文如果是以935/1208/1388编码的,就应该可以被显示出来。

而这和浏览器当前的编码方式没有关联。编码为西欧(ISO),简体中文(GB2312),Unicode(UTF-8) 都是可以的。

(6) 如果将IE浏览器的语言改为中文以后,则DB2 Web Query的登录界面也可以变成中文。

[ 本帖最后由 oliverchenbing 于 2009-7-25 14:41 编辑 ]

论坛徽章:
0
4 [报告]
发表于 2009-07-27 08:28 |只看该作者
谢谢楼主共享!

问个问题:

   Web Query只支持os/400 v5r1吗?

[ 本帖最后由 passthru 于 2009-7-27 08:41 编辑 ]

论坛徽章:
0
5 [报告]
发表于 2009-07-27 12:50 |只看该作者
Web Query是新产品. 需要V5R4M0以后才能支持.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP