Why can’t I create a database in a 107GB dbspace I created for the instance

informix

11.70.FC6 Developer Edition on Windows 7 Pro 64-bit:

  1. Downloaded via IIUG link and installed it.
  2. I created a custom DSS instance named "server" with a 128GB dbspace named "datadbs".
  3. Install wizard created a Windows user "informix".
  4. I connected to instance "server", logging in as "informix".
  5. Executed an SQL script "CREATE DATABASE voters IN datadbs NLSCASE INSENSITIVE;"
  6. This failed (see first image), then tried creating the db via dbaccess menu.
  7. In dbaccess, dbspaces options did not show "datadbs", only root, phys, log & sbs dbs',
    but when I do a dir of the dbspaces it shows "datadbs" with 107GB (see second image).
  8. I set the following values in "onconfig.server" (see third image), but still no dice!

enter image description here
enter image description here
enter image description here
enter image description here

Best Answer

Since the datadbs file is not anywhere near 128 MiB, I wonder if you were successful in adding that dbspace. One might be forgiven for thinking that in fact you were unsuccessful since the database server doesn't think it exists.

Use 'oncheck' or 'onstat' (or both) to check whether the dbspace exists and is intact. If not, arrange to drop it, or simply remove the datadbs file and try again with the onspaces command.