Using SQL statement ALTER DATABASE database-name and getting errors, SQLCODEs -20 and -116. Using the ENTITY-NAME which has hyphen(-) character.
ALTER DATABASE DBA-SQLDB DATACOM DYNAMIC_EXTEND NO ; ___________SQL ERROR SUMMARY START___________ SQLCODE = -20, SQLSTATE=42601 MESSAGE = BAD SYNTAX: <ALTER DATABASE DBA-S> WHEN THE ERROR OCCURRED, THE SYNTAX BELOW HAD BEEN PARSED: ALTER DATABASE DBA-S ____________SQL ERROR SUMMARY END____________ ALTER DATABASE "SYSUSR.DBA-SQLDB" DATACOM DYNAMIC_EXTEND NO ; ___________SQL ERROR SUMMARY START___________ SQLCODE = -118, SQLSTATE=RNNTF MESSAGE = DATABASE SYSUSR.DBA-SQLDB NOT FOUND ____________SQL ERROR SUMMARY END____________
To perform any SQL processing on the DATABASE, ALTER DATABASE or CREATE AREA, it needs to have a SQLNAME defined. The entity ENTITY-NAME cannot be used. A Datacom SQLNAME cannot have a hyphen(-) character. The valid character set includes A-Z, 0-9, $, #, @, and _ (underscore).
Run DDUPDATE to add the SQLNAME to the DATABASE entity. You can make the change directly to the PROD status entity and no catalog of the database is required.
Sample DDPUPDATE input to make the change:
-UPD DATABASE,DBA-SQLDB(PROD) 2901 N DBA_SQLDB -END