Documente Academic
Documente Profesional
Documente Cultură
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
• Database Engineers
New ACS capabilities provide a productivity boost to the DBE
© 2016, 2017 IBM Corporation #COMMONF17 5
Cognitive Systems
Resources:
• en.wikipedia.org/wiki/Big_Five_personality_traits
• www.ibm.com/watson/services/tone-analyzer
© 2016, 2017 IBM Corporation #COMMONF17 8
Cognitive Systems
SELECT * FROM
TABLE(scottf.generate_json('TOYSTORE',
'EMPLOYEE',
'LASTNAME')) e;
SQE
UPDATE cartons
SET palletid = :to_Pallet_ID
WHERE palletid = :from_pallet_ID
LIMIT :move_quantity;
• Schemas
– More actions
– More columns for Tables
• Schemas
– More actions
– More columns for Tables
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
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;
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;
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
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;
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;
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
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;
STACK_INFO – Java
STACK_INFO – PASE
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
blogs.sap.com/2017/08/18/sap-on-ibm-i-update-week-33-2017-alerts-for-ibm-i-system-limits
SIEM
Syslog
Thank you
45
© 2017 International Business Machines Corporation
IBM® Db2® for i Catalogs Cognitive Systems
http://www.ibm.com/developerworks/ibmi/techupdates/db2/landscape