1

I'm using DB2 Express C v 10.5

I'm trying to create databases with names "BACKUP", "BACKUPTEST", "BACKUP_TEST" and even "TEST_BACKUP".

In all above cases DB2 throws error as below:

SQL1001N "BACKUPTEST" is not a valid database name. SQLSTATE=2E000


I tried with following command, it didn't work.

> db2 create database BACKUP

or

> db2 create database "BACKUP"

This shows an error as:

"SQL1001N "BACKUP_TEST" is not a valid database name. SQLSTATE=2E000"

Jack Douglas
40.6k16 gold badges106 silver badges179 bronze badges
asked Jan 14, 2017 at 16:45

1 Answer 1

11

There's no restriction on the specific name, other than it must be 8 characters or less. So BACKUP works just fine as a database name:

$ db2level
DB21085I This instance or install (instance name, where applicable: 
"db2inst1") uses "64" bits and DB2 code release "SQL10055" with level 
identifier "0606010E".
Informational tokens are "DB2 v10.5.0.5", "s141128", "IP23633", and Fix Pack 
"5".
Product is installed at "/opt/ibm/db2/V10.5.5".
$ db2 "create database backup"
DB20000I The CREATE DATABASE command completed successfully.
answered Jan 14, 2017 at 17:44
1
  • 1
    Gad, i haven’t seen the 8 character restriction anywhere else. It’s still apparently true in 2025. Backward compatibility with PCDOS or something? Commented Mar 8 at 6:47

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.