Import CommandUse the Import command to import administrative objects from an export file to a database. The export file must be in Exchange Format or in an XML format that follows the Matrix.dtd specification.
For more information, see MQL Command Reference: import Command. Importing ServersIf a server object is imported (via MQL or Oracle) into a different Oracle instance or user than it was exported from, the username and password settings of the server must be modified before distributed access is available. This is particularly important if an upgrade will follow the import, since all servers must be accessible to the machine doing the upgrade. Importing WorkspacesWorkspaces contain a user's queries, sets, and IconMail, as well as all Visuals. Workspaces are always exported with the person they are associated with. However, when Persons are imported, the workspace objects are not included. This is because they may rely on the existence of other objects, such as Types and business objects, which may not yet exist in the new database. Workspaces must be imported from the same .mix file that was used to import persons. For example:
Or:
Importing Properties Properties are sometimes created to link administrative objects to
one another. Like workspaces, properties are always exported with the
administrative object they are on. Import is somewhat different; however, since
a property may have a reference to another administrative object, and there is
no way to ensure that the referenced object exists in the new database
(administrative objects are sometimes exported and then imported in pieces). So
a command to import administrative objects is issued, the specified objects are
created first, and then the system attempts to import its properties. If the
"continue" modifier is used, the system will get all the data it can, including
system and user properties. But to ensure that all properties are imported,
even when the administrative data may have been contained in several files, use
the
For example, data can be exported from one database as follows:
Then the administrative objects are imported:
Finally, workspaces and any "missed" properties are imported. Properties can exist on workspace objects, so it is best to import properties after workspaces:
Importing Index ObjectsWhen importing an Index that includes attributes, these attributes must already exist in the new database, so you should import the attributes first. For example:
If the export file contains a lot of other admin data and you want to "import admin *", you can use import options to avoid errors when the attributes are processed. For example, if you know that you want the objects in the export file to supersede any objects of the same type/name in the database, use the following:
If you want objects already in the database to remain unchanged, use:
Extracting from Export FilesSometimes export files contain more information than you want imported. When this is the case, the extract command can be used to create a new file containing only the specified information of the original file. For more information, see MQL Command Reference: extract Command. |