You cannot directly log on as root from a remote connection. You must log on using an administered CMS user ID, then use su - root to log on with root privileges.
Enter the following command to set the Informix environment:
. /opt/informix/bin/setenv
Enter cd /tmp.
Note:
You can use a different directory to contain your database schema with one exception. Never use the root (/) directory to store a database schema. A database schema can be very large and will use up all the disk space allocated to the root directory. If the root directory does not have enough disk space, CMS will not function correctly.
Enter dbschema -d cms cms.sql.
The system saves the CMS database schema in the /tmp directory as a file named cms.sql.
Note:
You can use different options to modify the dbschema command used in Step 4. For more information, see Modifying the dbschema command.