Digital Developer Conference: a FREE half-day online conference focused on AI & Cloud – North America: Nov 2 – India: Nov 9 – Europe: Nov 14 – Asia Nov 23 Register now

Close outline
  • United States
IBM?
  • Site map
IBM?
  • Marketplace

  • Close
    Search
  • Sign in
    • Sign in
    • Register
  • IBM Navigation
IBM Developer Answers
  • Spaces
    • Blockchain
    • IBM Cloud platform
    • Internet of Things
    • Predictive Analytics
    • Watson
    • See all spaces
  • Tags
  • Users
  • Badges
  • FAQ
  • Help
Close

Name

Community

  • Learn
  • Develop
  • Connect

Discover IBM

  • ConnectMarketplace
  • Products
  • Services
  • Industries
  • Careers
  • Partners
  • Support
10.190.13.195

DevOps Build×

Refine your search by using the following advanced search options.

Criteria Usage
Questions with keyword1 or keyword2 keyword1 keyword2
Questions with a mandatory word, e.g. keyword2 keyword1 +keyword2
Questions excluding a word, e.g. keyword2 keyword1 -keyword2
Questions with keyword(s) and a specific tag keyword1 [tag1]
Questions with keyword(s) and either of two or more specific tags keyword1 [tag1] [tag2]
To search for all posts by a user or all posts with a specific tag, start typing and choose from the suggestion list. Do not use a plus or minus sign with a tag, e.g., +[tag1].
  • Ask a question

Getting a "StringIndexOutOfBoundsException: String index out of range: -1" error when attempting to execute the dbutil.bat -getInfo command

3100001AJX gravatar image
Question by AnnieGao_IBM  (590) | Mar 13, 2017 at 09:08 AM ibm_support_icswraa

when attempting to execute the dbutil.bat -getInfo command using the version of DB2 Migration Utility released with RAA 6.1.0.13:

E:\IBM RAA Downloads\DB2 Migration Utility\DB2 Migration Utility 2017- 03-03\raadbutil_windows>dbutil.bat -getinfo

JVM version detected: (1.8.0) Mar 06, 2017 8:28:25 AM com.ibm.dmh.db.DbInfo initialize INFO: Detected DBMS vendor=(IBM) product=(DB2_LUW) version=(10.5) java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1377) at com.ibm.dmh.db.DbMetaData.getMetaDataForTriggers(DbMetaData.java:483) at com.ibm.dmh.db.DbMetaData.initialize(DbMetaData.java:566) at com.ibm.dmh.db.DbAdmin.gatherDbMetaData(DbAdmin.java:231) at com.ibm.dmh.db.DbAdmin.initializeDefaultJdbc(DbAdmin.java:197) at com.ibm.dmh.dbutil.Main.initDb(Main.java:146) at com.ibm.dmh.dbutil.Main.getInfo(Main.java:503) at com.ibm.dmh.dbutil.Main.main(Main.java:421) Problem occurred while trying to access database.

People who like this

  0
Comment
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster

1 reply

  • Sort: 
3100001AJX gravatar image
Accepted answer

Answer by AnnieGao_IBM (590) | Mar 13, 2017 at 09:15 AM

To solve this problem, firstly check the results of the following query:

SELECT name, VARCHAR(text, 32000) FROM SYSIBM.SYSTRIGGERS WHERE TBNAME LIKE 'DMH_%' AND TEXT NOT LIKE '%MODE%' ORDER BY 1

If the MODE DB2SQL clause is missing from the trigger definition, eg, Problem Trigger: CREATE TRIGGER "DMH"."DMHARMD1" AFTER DELETE ON "DMH"."DMH_ARCH_MANIFEST" REFERENCING OLD AS O FOR EACH ROW NOT SECURED BEGIN ATOMIC DELETE FROM DMH_AMF_CLASSPATH WHERE MANIFEST_ID = O.FILE_ID; DELETE FROM DMH_REFS_JBC WHERE FILE_ID = O.FILE_ID; END

Correct Trigger: CREATE TRIGGER DMHARMD1 AFTER DELETE ON DMH_ARCH_MANIFEST REFERENCING OLD AS O FOR EACH ROW MODE DB2SQL BEGIN ATOMIC DELETE FROM DMH_AMF_CLASSPATH WHERE MANIFEST_ID = O.FILE_ID; DELETE FROM DMH_REFS_JBC WHERE FILE_ID = O.FILE_ID; END

The trigger ddl files we ship with the product specify MODE DB2SQL. The trigger ddl files we ship with the product do not specify NOT SECURED (it is the default).

Then the solution is to drop and recreate the triggers with the correct DDL files.

Comment

People who like this

  0   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster

Follow this question

102 people are following this question.

Answers

Answers & comments

Related questions

How to fix the error DMH1351E: Remote request CGI V1 is incompatible with web interface V2 error when attempting to collect inventory? 1 Answer

When will my installed version of Rational Asset Analyzer reach end of life cycle? 1 Answer

How to increase java heap space size for embedded app server? 1 Answer

Why can't I find my RAA license in IBM Installation Manager? 1 Answer

Error 500: IllegalArgumentException occurred when deleting 9000+ entries data sets usin UI 1 Answer

  • Contact
  • Privacy
  • IBM Developer Terms of use
  • Accessibility
  • Report Abuse
  • Cookie Preferences

Powered by AnswerHub

Authentication check. Please ignore.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • API Connect
  • Analytic Hybrid Cloud Core
  • Application Performance Management
  • Appsecdev
  • BPM
  • Blockchain
  • Business Transaction Intelligence
  • CAPI
  • CAPI SNAP
  • CICS
  • Cloud Analytics
  • Cloud Automation
  • Cloud Object Storage
  • Cloud marketplace
  • Collaboration
  • Content Services (ECM)
  • Continuous Testing
  • Courses
  • Customer Experience Analytics
  • DB2 LUW
  • Data and AI
  • DataPower
  • Decision Optimization
  • DevOps Build
  • DevOps Services
  • Developers IBM MX
  • Digital Commerce
  • Digital Experience
  • Finance
  • Global Entrepreneur Program
  • Hadoop
  • Hybrid Cloud Core
  • Hyper Protect
  • IBM Cloud platform
  • IBM Design
  • IBM Forms Experience Builder
  • IBM Maximo Developer
  • IBM StoredIQ
  • IBM StoredIQ-Cartridges
  • IIDR
  • ITOA
  • InformationServer
  • Integration Bus
  • Internet of Things
  • Kenexa
  • Linux on Power
  • LinuxONE
  • MDM
  • Mainframe
  • Messaging
  • Node.js
  • ODM
  • Open
  • PartnerWorld Developer Support
  • PowerAI
  • PowerVC
  • Predictive Analytics
  • Product Insights
  • PureData for Analytics
  • Push
  • QRadar App Development
  • Run Book Automation
  • Search Insights
  • Security Core
  • Storage
  • Storage Core
  • Streamsdev
  • Supply Chain Business Network
  • Supply Chain Insights
  • Swift
  • UBX Capture
  • Universal Behavior Exchange
  • UrbanCode
  • WASdev
  • WSRR
  • Watson
  • Watson Campaign Automation
  • Watson Content Hub
  • Watson Marketing Insights
  • dW Answers Help
  • dW Premium
  • developerWorks Sandbox
  • developerWorks Team
  • Watson Health
  • More
  • Tags
  • Questions
  • Users
  • Badges