You can add sample data to a demo database when you deploy
Maximo® Manage. The sample data is useful for development or test
environments. If you want to add sample data after
Maximo Manage deployment is complete, you must re-create or clean your
database and reconfigure
Maximo Manage.
Before you begin
Ensure that
Maximo Manage deployment is
complete before you follow the steps to add sample data.Logs of previous installations might be
deleted when you delete the maxinst pod. If you want to retain these logs, save
backup copies outside the pod or container before you delete the pod.
Procedure
- In
Maximo Application
Suite, update the configuration to install demo data.
- Log in to
Maximo Application
Suite by using administrator
credentials.
- Click the Administration icon.
Starting in
Maximo Application
Suite 9.1, select the
page.
- Click the Workspaces tile.
- In the Applications section, click the Manage tile.
- From the Actions list, select Update
configurations.
- In the Update Manage configuration window, in the Database row,
click the Edit icon.
- In the Advanced settings section, select the Install demo data
checkbox.
- Click Apply changes.
- Click Confirm in the confirmation dialog.
- In the Red Hat® OpenShift® web console, check if
demodata is set to
true.
- Log in to the Red Hat OpenShift web console by using your administrator
credentials.
- From the side navigation menu, click
.
- On the CustomResourceDefinitions page, search for
manageworkspace.
- Click ManageWorkspace and then click the
Instances tab.
- Select the custom resource of your instance and click the YAML
tab.
- In the
spec.settings.db.maxinst section, check if demodata:
true is set.
Tip: If you do not see the demodata section, add it.
- Click Save to save your changes.
- Click Reload to check whether your changes were
applied.
Remember: If you do not see your changes, you might need to repeat this step because the
automatic reload process can update the YAML file before you make your manual updates.
- If you want to clean the database to force the maxinst process to restart, use a query
tool by consulting your database provider. In your
Maximo Manage
database, delete the following database tables.
- maxvars
- apikeytoken
- serversession
- maxsession
Note: If you want to drop your entire database, back up your database and then complete the steps
that are provided by your database provider.
- If you deployed Maximo Utilities with
Maximo Manage, delete the plusdcuchngstatseq sequence.
- Restart the maxinst pod.
- In the Red Hat OpenShift web console, from the side navigation menu, click
.
- On the Pods page, search for the maxinst
pod.
For example,
<mas_instance_id>-<mas-workspace-id>-manage-maxinst-<randomstring>.
- In the row for the maxinst pod, click the Overflow menu and select Delete Pod.
- In the Delete Pod dialog, click Delete to
confirm deleting the
maxinst pod.
Important: Deleting the pod removes any files that are copied to the pod container
directly. The deleted files are different from the ones in the
Maximo Manage image that is built during the
Maximo Manage deployment process. The files that are part of the
Maximo Manage image include the contents of the
Maximo Manage components and customizations that were added through
customization archives.
When the pod is deleted, another pod with a similar name is
created.
- Select the new pod that was created and click the Terminal
tab.
- Run the following commands.
Tip: If you do not see the maxinst log, wait for five minutes and
run the ls - ltr command again. You can also click the
Logs tab to check for the maxinst log.
What to do next
Wait for the maxinst restart process to complete and for the
Maximo Manage server bundles to restart. You can monitor the progress in
the Red Hat OpenShift web console or in the
Maximo Application
Suite user
interface. For more information, see Monitoring
Manage application deployment by using the
Maximo Application
Suite interface. When the maxinst restart process is completed, you
can configure
Maximo Manage. For more information, see Configuring
Maximo Manage after
deployment.