Entering content frameProcedure documentation Exporting Constraints, Synonyms, Sequences, Views, and Grants Locate the document in its SAP Library structure

Use

You can use SAPDBA for Oracle to export the following items for the entire database:

Object requirements, such as interval of values allowed for a field

Secondary identifications of defined database objects, such as official synonyms for views (that is, Oracle Dictionary views)

Number intervals that, among other things, are used by SAP for certain network synchronization functions

Selections of data (can be from different tables) according to certain criteria

Authorizations for using database objects

Prerequisites

Procedure

  1. Choose Export/Import ® Export constraints, synonyms, sequences, views, grants.
  2. Select whether you want to include the owners SYS and SYSTEM .
  1. Enter the Working directory.
  2. This is the working directory for the export. The default is <SAPDATA_HOME>/sapreorg or <SAPREORG> , based on the environment variable SAPREORG . Logs and scripts are saved in this directory. For more information on <SAPREORG> , see Environment Variables (UNIX) and Environment Variables (Windows NT).

  3. Choose Start to start the export.

SAPDBA performs the export, creating the following scripts and parameter files:

Result

On successful completion, SAPDBA displays a confirmation message.

If there has been an error, SAPDBA displays the appropriate error message. You can restart the export after fixing the problem.

If necessary, you can import the exported data. You can also import structures singly using SQL scripts.

Note

Constraint import command

Constraints are imported using commands with the form ALTER TABLE <owner>.<table name> ADD (<table constraint A>, <table constraint B>, ...

Sequence counter

Sequences are exported with their counters, the last number used in every sequence. Therefore, you should only export and import sequences along with the data that they refer to.

Views

The complete specifications of all views are included in an export. The export includes view columns, comments, grants, and inspection options (constraints with category V).

Leaving content frame