title: DB2 Create DB command results in SQL1005N database directory or system database directory already exists
body: <p>I have a fresh install of Windows 10 and DB2 v10.5 FP 7.</p>
  
  <p>I am trying to create a simple DB and keep gettings a SQL1005N error.  This is a new install and so there are no existing DBs:</p>
  
  <pre><code>db2 =&gt; list node directory
  
  Node Directory
  
  Number of entries in the directory = 1
  
  Node 1 entry:
  
  Node name                      = DEVWIN10
  Comment                        =
  Directory entry type           = LOCAL
  Protocol                       = TCPIP
  Hostname                       = 192.168.1.14
  Service name                   = 50000
  
  db2 =&gt; list db directory
  SQL1057W  The system database directory is empty.  SQLSTATE=01606
  
  db2 =&gt; attach to devwin10 user db2admin using &lt;PASSWORD&gt;
  Instance Attachment Information
  
  Instance server        = DB2/NT64 10.5.7
  Authorization ID       = DB2ADMIN
  Local instance alias   = DEVWIN10
  
  db2 =&gt; CREATE DATABASE DEMO
  SQL1005N  The database alias "DEMO" already exists in either the local database directory or system database directory.
  
  db2 =&gt; CREATE DATABASE DEMODB
  SQL1005N  The database alias "DEMODB" already exists in either the local database directory or system database directory.
  
  db2 =&gt; CREATE DATABASE ANTHONY
  SQL1005N  The database alias "ANTHONY" already exists in either the local database directory or system database directory.
  
  db2 =&gt; CREATE DATABASE BLAH
  SQL1005N  The database alias "BLAH" already exists in either the local database directory or system database directory.
  </code></pre>
  
  <p>As you can see it doesn't matter what DB name I choose, I always get the same error.  The DB is created:</p>
  
  <pre><code>db2 =&gt; list db directory
  
  System Database Directory
  
  Number of entries in the directory = 4
  
  Database 1 entry:
  
  Database alias                       = ANTHONY
  Database name                        = ANTHONY
  Local database directory             = C:
  Database release level               = 10.00
  Comment                              =
  Directory entry type                 = Indirect
  Catalog database partition number    = 0
  Alternate server hostname            =
  Alternate server port number         =
  
  Database 2 entry:
  ...
  Database 3 entry:
  ...
  Database 4 entry:
  ...
  </code></pre>
  
  <p>But I can't connect to it:</p>
  
  <pre><code>db2 =&gt; connect to BLAH user db2admin using &lt;PASSWORD&gt;
  SQL1035N  The operation failed because the specified database cannot be connected to in the mode requested.  SQLSTATE=57019
  
  db2 =&gt; connect to ANTHONY user db2admin using &lt;PASSWORD&gt;
  SQL1035N  The operation failed because the specified database cannot be connected to in the mode requested.  SQLSTATE=57019
  
  db2 =&gt; connect to DEMO user db2admin using &lt;PASSWORD&gt;
  SQL1035N  The operation failed because the specified database cannot be connected to in the mode requested.  SQLSTATE=57019
  
  db2 =&gt; connect to DEMODB user db2admin using &lt;PASSWORD&gt;
  SQL1035N  The operation failed because the specified database cannot be connected to in the mode requested.  SQLSTATE=57019
  </code></pre>
  
  <p>Any thoughts as to what I'm missing?</p>