Sie sind auf Seite 1von 47

Cognitive Systems

Db2 for i – What’s new with IBM i 7.3 TR3


& IBM i 7.2 TR7
21AC

Scott Forstie – forstie@us.ibm.com


Business Architect Db2 for i
@Forstie_IBMi

© 2017 International Business Machines Corporation


#COMMONF17
Cognitive Systems

Enhancements delivered via Db2 PTF Groups


7.2 – TR5 7.2 – TR6 7.2 – TR7
7.3 – TR1 7.3 – TR2 7.3 – TR3
2017 2018

SF99702 Level 14 SF99702 Level 16 SF99702 Level 19


SF99703 Level 3 SF99703 Level 4 SF99703 Level 7

Enhancements timed with TR1 & TR5 Enhancements timed with TR2 & TR6 Enhancements timed with TR3 & TR7
• JSON_TABLE() • JSON predicates • JSON publishing functions
• INCLUDE for SQL Routines • Additional Database features in ACS • Db2 for i generated syslog data
• Database features in ACS • New and enhanced SQL Scalar • More LIMIT & OFFSET support
• Faster Scalar Functions Functions • Additional Database features in
• More IBM i Services • New IBM i Services ACS
• New Db2 for i Services • Enhanced Db2 for i Services • New IBM i Services
• And much more… • And more… • And more…

www.ibm.com/developerworks/ibmi/techupdates/db2/groupptf
© 2016, 2017 IBM Corporation #COMMONF17 2
Cognitive Systems

IBM i 7.3 TR3 and IBM i 7.2 TR7


• Announce: October 3, 2017
– Book updates in IBM Knowledge Center
– Updates to the IBM i Technology Updates wiki in IBM developerWorks (dW)

• GA: October 27, 2017


– Db2 PTF Group is released

• dW Enhancement Landing pages…


http://www.ibm.com/developerworks/ibmi/techupdates/i72-TR7
and
http://www.ibm.com/developerworks/ibmi/techupdates/i73-TR3

© 2016, 2017 IBM Corporation #COMMONF17 3


Cognitive Systems

Db2 Web Query Version 2.2.1


• Steps beyond traditional Business Intelligence into Data Discovery
– New data driven Visualization empowers:
 Users, Analysts, and Data scientists
– Data layers (e.g., demographics) for geographic maps
 What is the average income in this zip code?
• Consolidate, Prepare, and Transform Data with DataMigrator ETL
– Even augment existing data with data from Watson
• Install or upgrade in 15 minutes with the “EZ-Install” Package
 Includes 100’s of sample reports, for the business and I/T

Learn more at ibm.biz/db2webqueryi GA 12/08/2017


& db2webqueryi.blogspot.com No Charge Upgrade from previous versions**
* QRY/400 owners entitled to Web Query Express w/ limited # of user licenses for no charge
** Assumes currency on SW Maintenance
© 2016, 2017 IBM Corporation #COMMONF17 4
Cognitive Systems

Who will benefit from these enhancements?


• Application Developers
 New SQL capabilities enable modern data-centric solutions
and improved programmer productivity

• System & Security Administrators


 New IBM i Services enable advanced
Systems and Security Management on IBM i

• Database Engineers
 New ACS capabilities provide a productivity boost to the DBE
© 2016, 2017 IBM Corporation #COMMONF17 5
Cognitive Systems

JSON support in Db2 for i


JSON Scalar functions:
• JSON_QUERY
• JSON_VALUE
JSON Publishing functions:
• JSON_ARRAY
Db2 JSON Predicates: • JSON_ARRAYAGG
JSON • IS JSON • JSON_OBJECT
Store JSON_TABLE() • JSON_EXISTS • JSON_OBJECTAGG

June November March October


2015 2016 2017 2017

© 2016, 2017 IBM Corporation #COMMONF17 6


Cognitive Systems

Consuming web services with Db2 for i


IBM i 7.1 and higher

IBM i 7.2 and higher


October, 2016
© 2016, 2017 IBM Corporation #COMMONF17 7
Cognitive Systems

Using Watson’s Tone Analyzer on a Resume


• Actual Resume from an
RPG programmer

Resources:
• en.wikipedia.org/wiki/Big_Five_personality_traits
• www.ibm.com/watson/services/tone-analyzer
© 2016, 2017 IBM Corporation #COMMONF17 8
Cognitive Systems

Using Watson’s Tone Analyzer on a Resume


• HTTPGetClob &
JSON_TABLE

© 2016, 2017 IBM Corporation #COMMONF17 9


Cognitive Systems

Publishing web services with Db2 for i


IBM i 7.1 and higher

IBM i 7.2 and higher


October, 2017
© 2016, 2017 IBM Corporation #COMMONF17 10
Cognitive Systems

JSON Publishing Functions


• JSON_OBJECT returns one JSON document per row
– Key can be an expression
-- Produce one JSON document for each department
--
SELECT JSON_OBJECT(KEY 'department' VALUE x.deptno)
AS DEPT_JSON FROM toystore.dept x;

© 2016, 2017 IBM Corporation #COMMONF17 11


Cognitive Systems

JSON Publishing Functions


• Embed JSON_OBJECT calls to return documents within documents
-- Produce an embedded JSON object per department
--
SELECT JSON_OBJECT(KEY 'department'
VALUE (JSON_OBJECT(
KEY 'Id' VALUE x.deptno)))
AS DEPT_JSON FROM toystore.dept x;

© 2016, 2017 IBM Corporation #COMMONF17 12


Cognitive Systems

JSON Publishing Functions


• Embed JSON_OBJECT calls to return documents within documents
-- Add more key value pairs
--
SELECT JSON_OBJECT(KEY 'Department'
VALUE (JSON_OBJECT(
KEY 'Id' VALUE x.deptno,
KEY 'Name' VALUE x.deptname)))
AS DEPT_JSON FROM toystore.dept x;

© 2016, 2017 IBM Corporation #COMMONF17 13


Cognitive Systems

JSON Publishing Functions


• JSON_ARRAYAGG – returns an aggregated array

SELECT JSON_OBJECT(KEY 'Department'


VALUE JSON_ARRAYAGG(
JSON_OBJECT(KEY 'Id' VALUE x.deptno,
KEY 'Name' VALUE x.deptname)))
AS DEPT_JSON FROM toystore.dept x;

© 2016, 2017 IBM Corporation #COMMONF17 14


Cognitive Systems

JSON Publishing – Using Dynamic SQL


create or replace function scottf.generate_json(
p_schema_name varchar(128), p_table_name varchar(128), p_column_name varchar(128))
RETURNS TABLE (JSON_OBJ CLOB(2G) CCSID 1208)
BEGIN
declare v_no_data smallint default 0;
declare v_json_object CLOB(2G) CCSID 1208;
DECLARE C_JSON_OBJ CURSOR FOR JSON_OBJ_QUERY;
declare CONTINUE HANDLER FOR NOT FOUND set v_no_data = 1;

PREPARE JSON_OBJ_QUERY FROM


'SELECT JSON_OBJECT(KEY lower(''' CONCAT p_column_name CONCAT ''')
VALUE ' CONCAT QSYS2.DELIMIT_NAME(p_column_name) CONCAT '
ABSENT ON NULL RETURNING CLOB (2G) CCSID 1208 FORMAT JSON)
FROM ' CONCAT p_schema_name CONCAT '.' CONCAT p_table_name;
OPEN C_JSON_OBJ;
FETCH FROM C_JSON_OBJ INTO v_json_object;
while (v_no_data = 0) do
PIPE (v_json_object);
FETCH FROM C_JSON_OBJ INTO v_json_object;
end while;
CLOSE C_JSON_OBJ; RETURN; END;
© 2016, 2017 IBM Corporation #COMMONF17 15
Cognitive Systems

JSON Publishing – Using Dynamic SQL

SELECT * FROM
TABLE(scottf.generate_json('TOYSTORE',
'EMPLOYEE',
'LASTNAME')) e;

© 2016, 2017 IBM Corporation #COMMONF17 16


Cognitive Systems

LIMIT and OFFSET


• Full support in the SQL Query Engine (SQE)
– Supported in all selects including subqueries and derived tables
– Allowed in views (not at the outermost level) and MQTs
– Offset and Limit row count can be zero or an expression
--
-- Process a window of data
--
SELECT * FROM cartons
WHERE palletid = :from_pallet_ID
OFFSET :page_count SQE
LIMIT IFNULL(:move_quantity, 10);
© 2016, 2017 IBM Corporation #COMMONF17 17
Cognitive Systems

LIMIT and OFFSET


• Dynamic SQL
– Prepare attribute controlled pagination, but long form must be used
DECLARE V_ORDERS_STMT1 VARCHAR(4096) ;
DECLARE Prepare_Attributes VARCHAR(200) default ' ';
DECLARE ORDERS_CURSOR CURSOR WITH RETURN FOR ORDERS_STMT1;
SET V_ORDERS_STMT1 = 'SELECT … FROM <table> … ';

SET Prepare_Attributes = ' FETCH FIRST ' CONCAT lim1 CONCAT


' ROWS ONLY OFFSET ' CONCAT off1 CONCAT ' ROWS';
PREPARE ORDERS_STMT1 ATTRIBUTES Prepare_Attributes
FROM V_ORDERS_STMT1;
OPEN ORDERS_CURSOR;
© 2016, 2017 IBM Corporation #COMMONF17 18
Cognitive Systems

LIMIT and OFFSET


• VE detail moves from "Environment information" to query nodes

SQE

© 2016, 2017 IBM Corporation #COMMONF17 19


Cognitive Systems

DELETE and UPDATE pagination


• Use ORDER BY, OFFSET and LIMIT on DELETE and UPDATE

UPDATE cartons
SET palletid = :to_Pallet_ID
WHERE palletid = :from_pallet_ID
LIMIT :move_quantity;

DELETE FROM orders


WHERE custid = :cust_ID
ORDER BY order_time ASC
LIMIT :max_rows_to_delete; SQE

© 2016, 2017 IBM Corporation #COMMONF17 20


Cognitive Systems

GRANT or REVOKE SCHEMA


• Three choices to grant or revoke:
1. Create new objects into a schema (CREATEIN)
2. Query existing objects in a schema (USAGE)
3. Both 1 & 2 (ALL)
GRANT CREATEIN ON SCHEMA
PRODLIB1, PRODLIB2, PRODLIB3
TO FRANKDBA, ADMINGRP;
REVOKE CREATEIN ON SCHEMA
PRODLIB1, PRODLIB2, PRODLIB3
FROM PUBLIC; SQE

© 2016, 2017 IBM Corporation #COMMONF17 21


Cognitive Systems

ACS Version 1.1.7.1 (released July 31, 2017)


• Schemas • General
– Journal - View Entries – Add help text dialogs
– Add Include... filtering support
– All Objects - Permissions action
– Database Health Center

• Run SQL Scripts


– Performance Monitor pulldown
– More Insert from Examples

• SQL Performance Center


– Import & New SQL Performance Monitor,
SQL Plan Cache Snapshot, and
SQL Plan Cache Event Monitor
© 2016, 2017 IBM Corporation #COMMONF17 22
Cognitive Systems

ACS Version 1.1.7.2 (planned for October 27,2017)


• Database Maintenance
– Alter Tables
– Index Builds
– Reorganize Physical File Member
– Other long running DB operations

• Schemas
– More actions
– More columns for Tables

• Run SQL Scripts


– Custom Border Settings
– More Insert from Examples

© 2016, 2017 IBM Corporation #COMMONF17 23


Cognitive Systems

ACS Version 1.1.7.2 (planned for October 27,2017)


• Database Maintenance
– Alter Tables
– Index Builds
– Reorganize Physical File Member
– Other long running DB operations

• Schemas
– More actions
– More columns for Tables

• Run SQL Scripts


– Custom Border Settings
– More Insert from Examples

© 2016, 2017 IBM Corporation #COMMONF17 24


Cognitive Systems

IBM i Services Timeline


7.2 – TR5 7.2 – TR6 7.2 – TR7
7.3 – TR1 7.3 – TR2 7.3 – TR3
2017 2018

Services in 2016: Services in 1Q/2017: Services in 4Q/2017:


• HISTORY_LOG_INFO • OBJECT_PRIVILEGES • Syslog detail returned from
• JOB_INFO • MESSAGE_QUEUE_INFO DISPLAY_JOURNAL &
• OUTPUT_QUEUE_INFO HISTORY_LOG_INFO
• LICENSE_EXPIRATION_CHECK
• AUTHORITY_COLLECTION • ASP_INFO
• Enhanced USER_INFO
• Many enhanced services • ASP_VARY_INFO
• Enhanced LICENSE_INFO
• JOB_QUEUE_INFO
• AUTHORIZATION_LIST_INFO
• STACK_INFO
• AUTHORIZATION_LIST_USER_INFO
• And more…

http://ibm.biz/Db2foriServices
© 2016, 2017 IBM Corporation #COMMONF17 25
IBM® i Services Cognitive Systems
Security Services Storage Services System Health Services
QSYS2.AUTHORITY_COLLECTION – VIEW QSYS2.ASP_INFO – VIEW QSYS2.SYSLIMITS – VIEW
QSYS2.AUTHORIZATION_LIST_INFO – VIEW QSYS2.ASP_VARY_INFO – VIEW QSYS2.SYSLIMTBL – TABLE
QSYS2.AUTHORIZATION_LIST_USER_INFO – VIEW QSYS2.MEDIA_LIBRARY_INFO – VIEW Message Handling Services
QSYS2.DRDA_AUTHENTICATION_ENTRY_INFO – VIEW QSYS2.SYSDISKSTAT – VIEW
QSYS2.FUNCTION_INFO – VIEW QSYS2.HISTORY_LOG_INFO – UDTF
QSYS2.SYSTMPSTG – VIEW
QSYS2.FUNCTION_USAGE – VIEW QSYS2.USER_STORAGE – VIEW QSYS2.JOBLOG_INFO – UDTF
QSYS2.GROUP_PROFILE_ENTRIES – VIEW QSYS2.MESSAGE_QUEUE_INFO – VIEW
QSYS2.OBJECT_PRIVILEGES – VIEW Journal Services QSYS2.REPLY_LIST_INFO – VIEW
QSYS2.SQL_CHECK_AUTHORITY – UDF QSYS2.DISPLAY_JOURNAL – UDTF PTF Services
QSYS2.USER_INFO – VIEW QSYS2.JOURNAL_INFO – VIEW
SYSPROC.SET_COLUMN_ATTRIBUTE – PROCEDURE QSYS2.GROUP_PTF_INFO – VIEW
Java Services QSYS2.PTF_INFO – VIEW
Communication Services QSYS2.JVM_INFO – VIEW SYSTOOLS.GROUP_PTF_CURRENCY – VIEW
QSYS2.NETSTAT_INFO – VIEW QSYS2.SET_JVM – PROCEDURE SYSTOOLS.GROUP_PTF_DETAILS – VIEW
QSYS2.NETSTAT_INTERFACE_INFO – VIEW
QSYS2.NETSTAT_JOB_INFO – VIEW Spool Services Work Management Services
QSYS2.NETSTAT_ROUTE_INFO – VIEW QSYS2.OUTPUT_QUEUE_ENTRIES – VIEW QSYS2.ACTIVE_JOB_INFO – UDTF
QSYS2.SERVER_SBS_ROUTING – VIEW QSYS2.OUTPUT_QUEUE_ENTRIES – UDTF QSYS2.GET_JOB_INFO – UDTF
QSYS2.SET_SERVER_SBS_ROUTING – PROCEDURE QSYS2.OUTPUT_QUEUE_INFO – VIEW QSYS2.JOB_INFO – UDTF
QSYS2.TCPIP_INFO – VIEW QSYS2.JOB_QUEUE_INFO – VIEW
SYSIBMADM.ENV_SYS_INFO – VIEW Librarian Services
QSYS2.MEMORY_POOL – UDTF
QSYS2.LIBRARY_LIST_INFO – VIEW QSYS2.MEMORY_POOL_INFO – VIEW
Product Services QSYS2.OBJECT_STATISTICS – UDTF QSYS2.OBJECT_LOCK_INFO – VIEW
QSYS2.LICENSE_INFO – VIEW
QSYS2.RECORD_LOCK_INFO – VIEW
SYSTOOLS.LICENSE_EXPIRATION_CHECK – PROCEDURE
QSYS2.SCHEDULED_JOB_INFO – VIEW
Application Services QSYS2.SYSTEM_STATUS – UDTF
QSYS2.SYSTEM_STATUS_INFO – VIEW
QSYS2.ENVIRONMENT_VARIABLE_INFO – VIEW
QSYS2.SYSTEM_VALUE_INFO – VIEW
QSYS2.QCMDEXC – PROCEDURE
QSYS2.SERVICES_INFO – TABLE
QSYS2.SET_PASE_SHELL_INFO – PROCEDURE http://ibm.biz/Db2foriServices
QSYS2.STACK_INFO – UDTF http://www.ibm.com/developerworks/ibmi/techupdates/db2/landscape
IBM i Services
© 2016, 2017 IBM Corporation #COMMONF17
Cognitive Systems

Performance Improvements
• The following services are faster at IBM i 7.2 and 7.3:
– QSYS2.AUTHORIZATION_LIST_INFO
– QSYS2.AUTHORIZATIONS
– QSYS2.GROUP_PROFILE_ENTRIES
– QSYS2.MESSAGE_QUEUE_INFO
– QSYS2.USER_INFO
– QSYS2.USER_STORAGE

© 2016, 2017 IBM Corporation #COMMONF17 27


Cognitive Systems

ASP_VARY_INFO
• Alternative to the Display ASP Status (DSPASPSTS) command
• Detail available for the 64 most recent operations, per iASP
--
-- Review the most expensive steps in
-- recent iASP vary ON operations
--
SELECT v.* FROM qsys2.asp_vary_info v
WHERE OPERATION_TYPE = 'VARY ON'
AND END_TIMESTAMP >
CURRENT TIMESTAMP – 7 DAYS
ORDER BY duration DESC;

© 2016, 2017 IBM Corporation #COMMONF17 28


Cognitive Systems

ASP_VARY_INFO
• Build reports to track status and performance
SELECT iasp_name, operation_type,
operation_number,MAX(start_timestamp) AS WHEN,
BIGINT(SUM(duration)) AS total_seconds
FROM qsys2.asp_vary_info WHERE DURATION IS NOT NULL
GROUP BY iasp_name, operation_type, operation_number
ORDER BY 5 DESC;

© 2016, 2017 IBM Corporation #COMMONF17 29


Cognitive Systems

ASP_INFO
• Alternative to the Work with Configuration Status (WRKCFGSTS)
command and Open List of ASPs (QYASPOL) API
• Existing interfaces return less detail and are harder to consume

select * from qsys2.asp_info;

© 2016, 2017 IBM Corporation #COMMONF17 30


Cognitive Systems

ASP_INFO
• Efficiently manage disk units and storage
select ASP_NUMBER, DEVD_NAME, DISK_UNITS, PRESENT,
TOTAL_CAPACITY_AVAILABLE, TOTAL_CAPACITY,
DEC(DEC(TOTAL_CAPACITY_AVAILABLE, 19, 2) /
DEC(TOTAL_CAPACITY, 19, 2) * 100, 19, 2) AS
AVAILABLE_SPACE
from qsys2.asp_info ORDER BY 7 ASC;

© 2016, 2017 IBM Corporation #COMMONF17 31


Cognitive Systems

JOB_QUEUE_INFO
• Alternative to the Work with Job Queue (WRKJOBQ) command
--
-- Review the job queues with the most pending jobs
--
SELECT * FROM qsys2.job_queue_info
ORDER BY NUMBER_OF_JOBS DESC
LIMIT 10;

© 2016, 2017 IBM Corporation #COMMONF17 32


Cognitive Systems

STACK_INFO
• Retrieve Stack detail for your job or for a target job
• Types of stack entries:
– ILE, JAVA, OPM, PASE
– And…LIC (requires *SERVICE special authority)
• Optional 2nd parameter specifies the Thread Identifier

-- Retrieve the stack of the current thread


-- within the current job
SELECT * FROM table(qsys2.stack_info('*')) x
ORDER BY ordinal_position;

© 2016, 2017 IBM Corporation #COMMONF17 33


Cognitive Systems

STACK_INFO – ILE
SELECT control_boundary, ENTRY_TYPE, THREAD_ID, ORDINAL_POSITION,
activation_group_number, activation_group_name, program_library_name
concat '/' concat program_name as PGM, procedure_name,
statement_identifiers
FROM table(qsys2.stack_info('373706/QUSER/QZDASOINIT', 'ALL')) x
ORDER BY thread_id, ordinal_position;

© 2016, 2017 IBM Corporation #COMMONF17 34


Cognitive Systems

STACK_INFO – Java

SELECT entry_type, java_line_number, java_byte_code_offset,


java_method_type, java_class_name, java_method_name,
java_method_signature, java_source_file_name java_file_name
FROM table(qsys2.stack_info('371493/QWEBADMIN/ADMIN4', 140)) x
ORDER BY ordinal_position;

© 2016, 2017 IBM Corporation #COMMONF17 35


Cognitive Systems

STACK_INFO – PASE

SELECT entry_type, PASE_INSTRUCTION_OFFSET, PASE_PROCEDURE_NAME,


PASE_LOAD_MODULE_NAME, PASE_SOURCE_PATH_AND_FILE,
PASE_LOAD_MODULE_PATH
FROM table(qsys2.stack_info('371493/QWEBADMIN/ADMIN4', 140)) x
ORDER BY ordinal_position;

© 2016, 2017 IBM Corporation #COMMONF17 36


Cognitive Systems

System Limits – Alerting the System Operator


• IBM i sends messages to QSYSOPR to alert the operator
high consumption of a subset of the most critical limits
• Full details here: ibm.biz/Db2foriAlerts
Limit ID Limit description Maximum Alerting Alerting cadence
Level
15000 Maximum number of all rows in a partition 4,294,967,288 Above 90% Once per day
15400 Maximum *MAX4GB Index Size 4,294,967,296 Above 90% Once per day

15401 Maximum *MAX1TB Index Size 1,869,166,411,776 Above 90% Once per day
15403 Maximum Encoded Vector Index Size 2,199,023,255,552 Above 90% Once per day
15104 Maximum number of variable-length 65,533 Above 90% Once per day
segments

© 2016, 2017 IBM Corporation #COMMONF17 37


Cognitive Systems

System Limits – Alerting the System Operator

© 2016, 2017 IBM Corporation #COMMONF17 38


Cognitive Systems

System Limits & SAP on i

blogs.sap.com/2017/08/18/sap-on-ibm-i-update-week-33-2017-alerts-for-ibm-i-system-limits

© 2016, 2017 IBM Corporation #COMMONF17 39


Cognitive Systems

syslog – Powered by Db2 for i


• syslog lets you plug your IBM i into your Security Information Event
Management (SIEM) providing a holistic approach to IT security

SIEM

Syslog

© 2016, 2017 IBM Corporation #COMMONF17 40


Cognitive Systems

syslog – Powered by Db2 for i


• History log and Audit Journal, returned in syslog format
• Use DISPLAY_JOURNAL() or HISTORY_LOG_INFO() optional
parameters and new return columns
• User controlled output format:
– RFC3164 tools.ietf.org/html/rfc3164
– RFC5424 tools.ietf.org/html/rfc5424

© 2016, 2017 IBM Corporation #COMMONF17 41


Cognitive Systems

syslog – Audit Journal example


SELECT SYSLOG_EVENT, SYSLOG_SEVERITY FROM
table(qsys2.display_journal('QSYS', 'QAUDJRN',
JOURNAL_CODES => 'T',
JOURNAL_ENTRY_TYPES => 'AF,PW',
STARTING_TIMESTAMP => CURRENT DATE,
GENERATE_SYSLOG => 'RFC5424')) J;

© 2016, 2017 IBM Corporation #COMMONF17 42


Cognitive Systems

syslog – Powered by Db2 for i


• Extensive audit journal entry type support: (30 of 70)
AD – Auditing Change PA – Program Adopt
AF – Authority Failure PG – Change of an object’s primary group
AX – Row and Column Access Control PW – Invalid password
CA – Authority Changes RA – Authority change during restore
CD – Command String RJ – Restoring Job Description
CO – Create Object RO – Change of object owner during restore
CP – User Profile Changes RP – Restoring adopted authority program
DO – Delete Operation RU – Restoring user profile authority
DS – DST security password reset RZ – Changing a primary group during restore
GR – Generic Record SE – Change of Subsystem Routing Entry
GS – Give Descriptor SO – Server Security User Information Actions
LD – Link, unlink, or look up directory entry ST – Use of service tools
OM – Object move or rename SV – System value changed
OR – Object Restore ZC – Object accessed (change)
© 2016, 2017 IBM Corporation OW – Ownership Change ZR – Object accessed (read)
#COMMONF17 43
Cognitive Systems

syslog – History Log example


SELECT SYSLOG_EVENT, SYSLOG_SEVERITY,
SEVERITY, MESSAGE_TYPE
FROM table(qsys2.history_log_info(
GENERATE_SYSLOG => 'RFC3164')) J
order by SYSLOG_SEVERITY ASC
limit 1000;

© 2016, 2017 IBM Corporation #COMMONF17 44


Cognitive Systems

Thank you

45
© 2017 International Business Machines Corporation
IBM® Db2® for i Catalogs Cognitive Systems

Catalogs Privileges Routines Statistics


SYSCATALOGS SYSCOLAUTH SYSCOLUMNSTAT
SYSFUNCS
SYSCONTROLS SYSINDEXSTAT
SYSJARCONTENTS
INFORMATION_SCHEMA_CATALOG_NAME SYSCONTROLSDEP SYSMQTSTAT
SYSJAROBJECTS
SYSPACKAGEAUTH SYSPACKAGESTAT
SYSPARMS
Schemas Database Support SYSROUTINEAUTH SYSPACKAGESTMTSTAT
SYSPROCS
SYSSCHEMAAUTH SYSPARTITIONDISK
SYSSCHEMAS SQL_FEATURES SYSROUTINEDEP
SYSSEQUENCEAUTH SYSPARTITIONINDEXES
SQL_LANGUAGES SYSROUTINES
SQLSCHEMAS SYSTABAUTH SYSPARTITIONINDEXDISK
SQL_SIZING SYSUDTAUTH SYSPARTITIONINDEXSTAT
SCHEMATA CHARACTER_SETS SQLFUNCTIONCOLS
SYSVARIABLEAUTH SYSPARTITIONMQTS
SQLFUNCTIONS
SYSXSROBJECTAUTH SYSPARTITIONSTAT
SQLPROCEDURECOLS
Tables Views Indexes SYSPROGRAMSTAT
SQLCOLPRIVILEGES SQLPROCEDURES
SYSPROGRAMSTMTSTAT
SYSCOLUMNS SQLTABLEPRIVILEGES SYSTABLEINDEXSTAT
SYSCOLUMNS2 SYSTABLESTAT
AUTHORIZATIONS PARAMETERS
SYSFIELDS Constraints ROUTINE_PRIVILEGES ROUTINES
SYSINDEXES SQLSTATISTICS
SYSCHKCST UDT_PRIVILEGES
SYSKEYS SYSCST USAGE_PRIVILEGES Miscellaneous Objects
SYSTABLEDEP SYSCSTCOL VARIABLE_PRIVILEGES
SYSTABLES SYSPACKAGE
SYSCSTDEP Triggers XML Schemas
SYSVIEWDEP SYSSEQUENCES
SYSKEYCST
SYSVIEWS SYSTRIGCOL XSRANNOTATIONINFO SYSTYPES
SYSREFCST
SYSTRIGDEP XSROBJECTCOMPONENTS SYSVARIABLEDEP
SQLCOLUMNS SYSTRIGGERS XSROBJECTHIERARCHIES SYSVARIABLES
SQLFOREIGNKEYS
SQLSPECIALCOLUMNS SYSTRIGUPD XSROBJECTS
SQLPRIMARYKEYS SQLTYPEINFO
SQLTABLES
SQLUDTS
COLUMNS CHECK_CONSTRAINTS Db2 for i catalog views (QSYS2) USER_DEFINED_TYPES
TABLES REFERENTIAL_CONSTRAINTS ODBC and JDBCTM catalog views (SYSIBM) SEQUENCES
VIEWS TABLE_CONSTRAINTS
ANS and ISO catalog views (QSYS2) http://www.ibm.com/systems/i/software/db2/
© 2016, 2017 IBM Corporation #COMMONF17
Java is a registered trademark of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.
IBM® Db2® for i Services Cognitive Systems
Health Center Procedures Performance Services
QSYS2.HEALTH_ACTIVITY QSYS2.CONDENSEDINDEXADVICE – VIEW
QSYS2.HEALTH_DATABASE_OVERVIEW QSYS2.DATABASE_MONITOR_INFO – VIEW
QSYS2.HEALTH_DESIGN_LIMITS QSYS2.RESET_TABLE_INDEX_STATISTICS – PROCEDURE
QSYS2.HEALTH_ENVIRONMENTAL_LIMITS QSYS2.SYSIXADV – TABLE
QSYS2.HEALTH_SIZE_LIMITS SYSTOOLS.ACT_ON_INDEX_ADVICE – PROCEDURE
QSYS2.RESET_ENVIRONMENTAL_LIMITS SYSTOOLS.HARVEST_INDEX_ADVICE – PROCEDURE
SYSTOOLS.REMOVE_INDEXES – PROCEDURE
Utility Procedures
QSYS2.CANCEL_SQL Plan Cache Procedures
QSYS2.DUMP_SQL_CURSORS QSYS2.CHANGE_PLAN_CACHE_SIZE
QSYS2.EXTRACT_STATEMENTS QSYS2.CLEAR_PLAN_CACHE
QSYS2.FIND_AND_CANCEL_QSQSRVR_SQL QSYS2.DUMP_PLAN_CACHE
QSYS2.FIND_QSQSRVR_JOBS QSYS2.DUMP_PLAN_CACHE_PROPERTIES
QSYS2.GENERATE_SQL QSYS2.DUMP_PLAN_CACHE_TOPN
QSYS2.RESTART_IDENTITY QSYS2.DUMP_SNAP_SHOT_PROPERTIES
SYSTOOLS.CHECK_SYSCST QSYS2.END_ALL_PLAN_CACHE_EVENT_MONITORS
SYSTOOLS.CHECK_SYSROUTINE QSYS2.END_PLAN_CACHE_EVENT_MONITOR
QSYS2.IMPORT_PC_EVENT_MONITOR
Application Services QSYS2.IMPORT_PC_SNAPSHOT
QSYS2.DELIMIT_NAME – UDF QSYS2.REMOVE_PC_EVENT_MONITOR
QSYS2.OVERRIDE_QAQQINI – PROCEDURE QSYS2.REMOVE_PC_SNAPSHOT
QSYS2.OVERRIDE_TABLE – PROCEDURE QSYS2.REMOVE_PERFORMANCE_MONITOR
QSYS2.PARSE_STATEMENT – UDTF QSYS2.START_PLAN_CACHE_EVENT_MONITOR
SYSPROC.WLM_SET_CLIENT_INFO – PROCEDURE

Db2 for i Services

http://www.ibm.com/developerworks/ibmi/techupdates/db2/landscape

© 2016, 2017 IBM Corporation #COMMONF17

Das könnte Ihnen auch gefallen