Refresh Web Query Synonym



Similar documents
Tips and techniques to improve DB2 Web Query for i performance and productivity

CRM Global Search: Installation & Configuration

User Migration Tool. Note. Staging Guide for Cisco Unified ICM/Contact Center Enterprise & Hosted Release 9.0(1) 1

Business Intelligence Tutorial

Optimizing the Performance of the Oracle BI Applications using Oracle Datawarehousing Features and Oracle DAC

Two new DB2 Web Query options expand Microsoft integration As printed in the September 2009 edition of the IBM Systems Magazine

SQL Server Replication Guide

Version 5.0. MIMIX ha1 and MIMIX ha Lite for IBM i5/os. Using MIMIX. Published: May 2008 level Copyrights, Trademarks, and Notices

Business Intelligence Tutorial: Introduction to the Data Warehouse Center

VTLBackup4i. Backup your IBM i data to remote location automatically. Quick Reference and Tutorial. Version 02.00

Hyperoo 2 User Guide. Hyperoo 2 User Guide

SAP BusinessObjects Business Intelligence platform Document Version: 4.1 Support Package Information Design Tool User Guide

2 SQL in iseries Navigator

NEW FEATURES ORACLE ESSBASE STUDIO

Database Administrator Certificate Capstone Project Evaluation Checklist

Backing up and restoring HP Systems Insight Manager 6.0 or greater data files in a Windows environment

Jet Data Manager 2012 User Guide

Oracle Data Integrator: Administration and Development

Installing Windows Server Update Services (WSUS) on Windows Server 2012 R2 Essentials

How to Copy A SQL Database SQL Server Express (Making a History Company)

ecopy ShareScan 5.0 SQL installs guide

Websense Support Webinar: Questions and Answers

How to Create a Delegated Administrator User Role / To create a Delegated Administrator user role Page 1

CA Workload Automation Agent for Databases

Moving the Web Security Log Database

XMailer Reference Guide

Database Studio is the new tool to administrate SAP MaxDB database instances as of version 7.5.

SEER Enterprise Shared Database Administrator s Guide

Postgres Plus xdb Replication Server with Multi-Master User s Guide

W I S E. SQL Server 2008/2008 R2 Advanced DBA Performance & WISE LTD.

WiredContact Enterprise x3. Admin Guide

LEARNING SOLUTIONS website milner.com/learning phone

DBMoto 6.5 Setup Guide for SQL Server Transactional Replications

TIBCO Spotfire Metrics Modeler User s Guide. Software Release 6.0 November 2013

DBMoto 7 Setup Guide for IBM DB2 for i Transactional Replications

Cryoserver Archive Lotus Notes Configuration

How To Use Gfi Mailarchiver On A Pc Or Macbook With Gfi From A Windows 7.5 (Windows 7) On A Microsoft Mail Server On A Gfi Server On An Ipod Or Gfi.Org (

Building Views and Charts in Requests Introduction to Answers views and charts Creating and editing charts Performing common view tasks

FILESURF 7.5 SR3/WORKSITE INTEGRATION INSTALLATION MANUAL 1 PRELIMINARIES...3 STEP 1 - PLAN THE FIELD MAPPING...3 STEP 2 - WORKSITE CONFIGURATION...

SQL Server Auditing. By Minette Steynberg. Audit all SQL Server activities using ApexSQL Comply

Moving the TRITON Reporting Databases

Getting to Know the SQL Server Management Studio

W I S E. SQL Server 2012 Database Engine Technical Update WISE LTD.

SAP BO 4.1 COURSE CONTENT

Windows Scheduled Task and PowerShell Scheduled Job Management Pack Guide for Operations Manager 2012

HelpSystems Web Server User Guide

DBMS Questions. 3.) For which two constraints are indexes created when the constraint is added?

Managing users. Account sources. Chapter 1

LEARNING SOLUTIONS website milner.com/learning phone

Informatica Corporation Proactive Monitoring for PowerCenter Operations Version 3.0 Release Notes May 2014

How to protect, restore and recover SQL 2005 and SQL 2008 Databases

Oracle Essbase Integration Services. Readme. Release

Creating Connection with Hive

MySQL for Beginners Ed 3

User Guide Release Management for Visual Studio 2013

HP Operations Manager Software for Windows Integration Guide

Backup and Restore with 3 rd Party Applications

Upgrading a Microsoft Dynamics NAV 2009 R2 or Microsoft Dynamics NAV 2009 SP1 Database to Microsoft Dynamics NAV 2015

Chancery SMS Database Split

SQL Server An Overview

Oracle Database 10g Express

Release Document Version: User Guide: SAP BusinessObjects Analysis, edition for Microsoft Office

User Guide. Version R91. English

EVENT LOG MANAGEMENT...

4 Simple Database Features

Database Administration

Upgrade Guide BES12. Version 12.1

Configuring an Alternative Database for SAS Web Infrastructure Platform Services

Tivoli Monitoring for Databases: Microsoft SQL Server Agent

Technical Notes. EMC NetWorker Performing Backup and Recovery of SharePoint Server by using NetWorker Module for Microsoft SQL VDI Solution

Synthetic Monitoring Scripting Framework. User Guide

Working with Mail (Hosted Exchange)

Oracle Database Links Part 2 - Distributed Transactions Written and presented by Joel Goodman October 15th 2009

BCA. Database Management System

Version 7.5 Backup and Recovery Guide

Informatica Data Replication FAQs

DB2 Web Query Interfaces

BlackBerry Enterprise Server Resource Kit

Robot SCHEDULE 12 User Guide

Cloud Powered Mobile Apps with Azure

Microsoft Project Server 2010 Administrator's Guide

ShoreTel Active Directory Import Application

CA DataMinder. Database Guide. Release th Edition

ShoreTel Active Directory Import Application

Oracle Business Intelligence Server Administration Guide. Version December 2006

Performance Tuning for the Teradata Database

Best Practices for Trialing the Intronis Cloud Backup and Recovery Solution

How to protect, restore and recover Exchange 2003 and Exchange 2007 databases

Laptop Backup - User Guide (Windows)

SAP Business Objects XIR3.0/3.1, BI 4.0 & 4.1 Course Content

SAP Data Services 4.X. An Enterprise Information management Solution

Backups and Maintenance

IceWarp Server Upgrade

IBM Campaign Version-independent Integration with IBM Engage Version 1 Release 3 April 8, Integration Guide IBM

Using SQL Server Management Studio

A Tutorial on SQL Server CMPT 354 Fall 2007

How to Replicate BillQuick 2003 database on SQL Server 2000.

SQL Server Analysis Services Complete Practical & Real-time Training

Transcription:

1

Added to CRTWQSYN command. Available in 1.1.2 HotFix 5 Use to synchronize Web Query synonym when structure/format of underlying table changes. Can be called from command line, CL program, Job Scheduler. The refresh feature has 3 primary functions: Adds new columns from the underlying table or view. Deletes dropped columns from the underlying table or view Updates certain column attributes that were altered in the underlying table or view. 2

Available in DB2 Web Query 1.1.2 HotFix 5 Supports the refresh of synonyms created via web metadata console, Developer Workbench, and CRTWQSYN command. Only supported for synonyms based on DB2 cli adapter. No support for DB Heritage, Query/400, JD Edwards, or SQL Server adapters. *LOCAL databases only (no support for tables on remote systems, partitions, or databases). Supported file types: Table Physical File SQL View Logical file *ALL and generic (wildcard) search supported in the FILE parameter. Useful for refreshing ALL files in a library (or all files that start with ORD*) 3

Example: CRTWQSYN FILE(ORD*) SCHEMA(QWQCENT) PREFIX(MYPREFIX_) APPFLR(*BASEAPP) OPTION(*REFRESH) Create DB2 Web Query Synonym (CRTWQSYN) File (table/view) name..... FILE ORD* Schema (library) name..... SCHEMA QWQCENT Synonym prefix......... PREFIX MYPREFIX_ Synonym suffix......... SUFFIX *NONE Application folder....... APPFLR *BASEAPP With foreign keys....... FRGNKEYS *NO *YES, *NO Include library qualification. QUALLIB *YES *YES, *NO Existing synonym option.... OPTION *REFRESH *NONE, *REPLACE, *REFRESH Use field short name as alias. SHORTALIAS *NO *YES, *NO 4 In this example, existing synonyms (in BASEAPP with prefix MYPREFIX_) will be refreshed for all files that start with the characters ORD in the library QWQCENT. QWQCENT/ORDDETAIL MYPREFIX_ORDDETAIL QWQCENT/ORDHEADER MYPREFIX_ORDHEADER QWQCENT/ORDERS2011 MYPREFIX_ORDERS2011...

Add new columns If new columns are added to the underlying table or view, the refresh feature will add them to the existing synonym. All existing synonym fields and customizations are persevered in the Master File SQL: ALTER TABLE ORDERS ADD COLUMN NEWFIELD CHAR (10) CRTWQSYN FILE(ORDERS) SCHEMA(QWQCENT) PREFIX(ZZCOBB_) OPTION(*REFRESH) --------------------Column added to synonym-------------------- Segment: zzcobb_orders Column: NEWFIELD Actual: A10 5

Remove dropped columns If columns are dropped from the underlying table or view, the refresh feature will remove the corresponding field from the existing synonym unless there are dependencies in the synonym. A dependency is defined as any one of the following. A define/virtual field with an expression referencing the synonym field. A computed field with an expression referencing the synonym field. A filter with an expression referencing the synonym field. An OLAP dimension or hierarchy referencing the synonym field. A Business View folder containing the synonym field. A DBA restriction based upon the synonym field. If any of the above dependencies exist, the field is not deleted from the Master File. This dependency checking can be ignored and the column subsequently dropped from the synonym. 6

Remove dropped columns SQL: ALTER TABLE ORDERS DROP COLUMN OLDFIELD CRTWQSYN FILE(ORDERS) SCHEMA(QWQCENT) PREFIX(ZZCOBB_) OPTION(*REFRESH) --------------------Column dropped from synonym-------------------- Segment: zzcobb_orders Column: OLDFIELD Actual: A10 7

Update altered columns If certain column attributes are changed in the underlying table or view, the refresh feature will apply those changes to the corresponding field in the synonym. The following attributes are updated if the data type or length of the corresponding table/view column is changed: Actual For example, if a database table column was altered from CHAR(4) to CHAR(6), the Actual value for that field in the synonym would be changed from A4 to A6. Usage If the Actual value for the synonym field has changed, it is possible that the Usage value will need to be updated accordingly. Where appropriate, the Refresh utility attempts to preserve any customized usage values/attributes such as C (Comma inclusion as thousands separator) and M (Floating Currency) 8

Update altered columns SQL: ALTER TABLE ZZCOBB/ORDERS ALTER COLUMN WARRANTYEXP SET DATA TYPE NUMERIC ( 20, 2) CRTWQSYN FILE(ORDERS) SCHEMA(QWQCENT) PREFIX(ZZCOBB_) OPTION(*REFRESH) --------------------Column updated in synonym-------------------- Segment: zzcobb_orders Column: WARRANTYEXP Prv Actual Value: P12 New Actual Value: P11 Prv Usage Value: P24.2CM New Usage Value: P22.2CM 9

Pos IBM Power Systems Data area QWEBQRY77/QWQRFSSYN. Use to override default refresh behavior. These settings will be added to the CRTWQSYN in a future version. Example to update trace/debug level: CHGDTAARA DTAARA(QWEBQRY77/QWQRFSSYN (5 1)) VALUE( 3') Description 1 Trace/debug level. Valid values are 0-3. Default is 2. 0 = No tracing 1 = Include input parameter values, errors, and summary info 2 = Same as 1 plus each segment analyzed and all specific columns added, updated, dropped 3 = Same as 2 plus print comparison of all columns before and after refresh. 2 Backup synonym flag. Indicates if a backup of the master file is to be made before refresh. If on, the program will make a backup copy of the master file and use a timestamp as part of the new name. For example, if you are refreshing a synonym named cen_orders.mas, a copy of the synonym will be made before the synonym is refreshed and given the following name: cen_orders_20111221144653180.mas The backup copy resides in the same application path as the requested synonym. A backup access file (.acx extension) is NOT made as it wasn't really necessary. The idea is to give users a way to get back their original synonym (prior to the refresh request) in case it is somehow corrupted by the refresh. 3 Ignore dependencies flag. Indicates whether to ignore dependencies (like define fields and filters) when refreshing synonym. For example, if it is on, a column removed from the table will also be removed from synonym (even if a define field is based on that deleted column). If this setting is off, a column (that was dropped from the table) will not be removed from the synonym if there is a dependency in the synonym 10 (such as a define field) based on the column.

Pos Description 4 Compare only flag. Turn on if you only want to generate a spool file trace of what changes the Refresh would make. If turned on, the refresh is NOT applied to the synonym and it remains unchanged. 5 Update column title. Turn on if you want to overlay all column titles with values from table/view that synonym is based on. Useful if you changed column titles in table/view and you want to apply those new titles to synonym. 6 Update column description. Turn on if you want to overlay all column descriptions with values from table/view that synonym is based on. Useful if you changed column descriptions in table/view and you want to apply those new descriptions to synonym. If off, the column title values in the synonym are preserved. 7 Update column names. Turn on if you want to overlay all column names with values from table/view that synonym is based on. Useful if you changed column long names in table/view and you want to apply those new names to synonym. If off, the column names in the synonym are preserved. Regardless of the value of this setting, ALIAS values are NOT changed in the synonym. 11

To help you determine what was changed during a Refresh process, a log is generated and written to a spooled file. It can be located by issuing the WRKSPLF command searching for File QSYSPRT and User Date RFSWQSYN. 12

13 Sample log spooled file: --------------------Input parameters--------------------- File...: ORDERS Schema..: CUSTLIB File Type: *ALL Prefix: CUSTLIB_ Suffix: *NONE App Folder: ODDSENDS With Foreign Keys:*NO Include library qualification: *YES Existing synonym option: *REFRESH Use field short name as alias: *NO QWQRFSSYN Data area values App path: /qibm/userdata/webquery/ibi/apps/ Trace level: 2 Backup master file: 1 Ignore Dependencies: 0 Compare Only Mode: 0 Update column titles: 0 Update column descriptions: 0 Update column field names: 0 --------------------------------------------------------- Analyzing Web Query synonym CUSTLIB_ORDERS for refresh... Segment Name: CUSTLIB_ORDERS Table Name: CUSTLIB/ORDERS --------------------Column updated-------------------- Segment: CUSTLIB_ORDERS Column: REVENUE Prv Actual Value: P5 New Actual Value: P7 Prv Usage Value: P10.2C New Usage Value: P14.2C Prv Column Title Value: New Column Title Value: REVENUE --------------------Summary Info-------------------- New columns added.. : 0 Updated columns... : 1 Dropped columns... : 0 Dropped dependencies. : 0 Number of synonyms analyzed: 1 Number of synonyms that differed from underlying based upon file: 1 Number of synonyms actually refreshed: 1 -----------End of Refresh Synonym trace--------------

Basic Troubleshooting 1. Check job logs and log spooled file. 2. If not enough info in log spooled file, increase trace/debug value: CHGDTAARA DTAARA(QWEBQRY77/QWQRFSSYN (3 1)) VALUE( 3') 3. Verify based on table/view exists 4. Verify synonym exists (with specified prefix and suffix) 5. Error QWQ0503 (No candidate objects found). Check QCCSID system value or job CCSID. If 65535, change to appropriate language CCSID and run again. 14