IBM Support

Exporting and Importing a (Controller) schema from Oracle - for sending to IBM Support for analysis

Technote (troubleshooting)


Problem(Abstract)

Customer wishes to send their 'database' to Cognos Support (for analysis).

How can the customer export their user/schema (from inside the Oracle database) to send to IBM Support?

Environment

Controller application repository database hosted on:

  • Oracle 11G (compatible with Controller 8.5.x, 10.1)
  • Oracle 10G (Controller 8.2.x, 8.3.x, 8.4.x, 8.5.x, 10.1)

Resolving the problem

There are two possible methods:

  • Method #1 - EXPDP (recommended)
    • This is the best method for most customers.
    • This can be used with both Oracle 10G and 11G.
  • Method #2 - EXP
    • Oracle have deprecated the 'EXP' (and 'IMP') command. Therefore, you cannot use this method when using Oracle 11G.

Steps:

Method #1 - EXPDP (recommended)
Imagine a scenario where:

  • Database name = ccr
  • Controller schema name = controllerlive
  • Oracle database's SYS password = mypassword
  • Oracle's SYSTEM password = mypassword

In this scenario, ask your Oracle DBA (administrator) to:

1. Check that your Oracle server is configured to have a 'data pump' folder.

If one does not exist, then you can create one by:

  • Create a folder (for example "E:\DATA_PUMP_DIR") on your Oracle server, for use by the data pump feature
  • Run the following script to configure the data pump folder:

CONN sys/mypassword@ccr AS SYSDBA
CREATE OR REPLACE DIRECTORY data_pump_dir AS 'E:\DATA_PUMP_DIR';
GRANT READ, WRITE ON DIRECTORY data_pump_dir TO controllerlive,system;

2. If your Oracle database server is based on Windows, launch a command prompt (CMD)
3. Run the following command:

expdp SYSTEM/mypassword@ccr schemas=controllerlive directory=data_pump_dir dumpfile=controllerlive.dmp logfile=controllerlive.log

4. Open the data pump folder
5. Locate the new DMP file (created by the above script)
6. Compress this file (for example to ZIP or 7z)
7. Please send both the compressed file and the log file (for example 'controllerlive.log') to IBM Support

Method #2 - EXP
Oracle have deprecated the 'EXP' and 'IMP' commands. Therefore, you cannot use this method when using Oracle 11G.

1. Export the database using the Oracle 'EXP' command. This will create a '.DMP' file

  • See attached document 'Exporting - Importing Controller Oracle DB - Oracle 9i or 10G.pdf' for precise steps.

2. Compress this DMP file (for example to a ZIP or 7-ZIP file)

3. Send the ZIP (or 7z) file to IBM Support (for them to import via the 'IMP' command).

Related information

9i & 10G - Oracle export and import
11G: Discussion: EXP & IMP only restores to same tables

Historical Number

1038888

Document information

More support for: Cognos Controller
Controller

Software version: 8.3, 8.4, 8.5, 8.5.1, 10.1, 10.1.1

Operating system(s): Windows

Software edition: All Editions

Reference #: 1347756

Modified date: 06 December 2013