Create/Modify a Namespace
Create/Modify a Namespace
To create a namespace, click Create New Namespace to display the New Namespace page, then do the following:
-
Enter a Name for the namespace. See Rules for Namespace Names.
-
You can Copy from an existing namespace, creating a duplicate of the selected namespace. In this case, all other options will be made unavailable except for the Web application check box described in step 6 below.
-
Choose whether the default database for globals is local or remote.
-
Select an existing database for Globals for the default Global mapping of this namespace or click Create New Database, which launches either the database wizard or the remote database wizard.
-
Optionally, you can choose whether the default database for routines is local or remote, then either use the Select an existing database for Routines drop-down to choose a database for the default Routine mapping of this namespace, or click Create New Database, which launches either the database wizard or the remote database wizard.
-
Select the Create a default Web application for this namespace check box if you are creating a web application that accesses this namespace.
-
Optionally, you can clear the Enable namespace for interoperability productions check box. If this check box is selected, the namespace is enabled for use with interoperability productions and limitations apply to the databases that it uses. For more information, see Create an Interoperability-Enabled Namespace below.
-
After entering the required information, click Save to add your namespace to the configuration.
Alternatively, you can create and modify namespaces from the Terminal using the ^NAMESPACE utility. See ^NAMESPACE for more information.
Create an Interoperability-Enabled Namespace
When you create a namespace on an InterSystems IRIS instance, the Enable namespace for interoperability productions check box is displayed at the bottom of the New Namespace page and is automatically selected.
InterSystems does not support storing interoperability production runtime data, including the ^Ens.Queue and ^Ens.Runtime globals, in an ECP remote database. Reference data can be stored in an ECP remote database.
If this check box is selected, the namespace is enabled for use with interoperability productions. In this case, the system automatically performs additional configuration tasks when defining the new namespace, as follows:
-
If the default globals database for this namespace is an existing database, it upgrades and recompiles some classes in that database.
Caution:If you are also using this database in other namespaces, you might consider this change undesirable. When you create a new namespace in an InterSystems IRIS instance, carefully consider whether it is appropriate for this namespace to reuse an existing database.
-
It defines global mappings, routine mappings, and package mappings that make the InterSystems IRIS system classes and data available to the namespace.
-
It adds nodes to the ^%SYS global.
-
It creates a web application for the namespace, using the application name required by InterSystems IRIS: /csp/namespace.
Also, limitations apply to the databases used by this namespace. Specifically, none of these databases can be protected by any of the following resources: %DB_IRISSYS, %DB_IRISSECURITY, %DB_IRISAUDIT, %DB_IRISMETRICS, or %DB_IRISLIB. You must use other resources to protect the databases.
To create a namespace that is not interoperability-enabled, clear this check box before clicking Save.