Why can't I change the password using `changeDatabase.sh` script?

Created by Victor Diaz on Thu, 09/05/2019 - 10:03
Published URL:
https://www.ibm.com/support/pages/node/1072830
1072830

Question & Answer


Question

Why do I get error:
Error message: -bash: <password> event not found
when running the script:
/opt/IBM/scanalytics/UI/bin/changeDatabase.sh

Cause

The password of choice contains special characters, such as '!', ie:
/opt/IBM/scanalytics/UI/bin/changeDatabase.sh --password=pass!123 --databaseName=SCAPIDB --serverName=client_host_name --portNumber=8001 -user=db2inst1

Answer

Use single quotes to escape special characters:
opt/IBM/scanalytics/UI/bin/changeDatabase.sh --password='pass!123' --databaseName=SCAPIDB --serverName=pi_server --portNumber=8001 -user=db2inst1

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSJQQ3","label":"IBM Operations Analytics - Predictive Insights"},"Component":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Historical Number

TS002668346

Document Information

Modified date:
06 September 2019

UID

ibm11072830