Creating a Contenta database

You can create an Contenta database to test your code.

Procedure

On an Contenta client administrator, at a command prompt, go to the Contenta home > bin directory then type:
OSCommand
UNIXsource /pdm/bin/pdm.cshrc newdb.pl -dbase dbname
Windowsnewdb.pl -dbase dbname

where dbname is the name for your Contenta database (or Oracle user).

Troubleshooting

Troubleshooting for Oracle only.

About this task

If the XYE_PDM_DATABASE_SID is not defined, the database command may fail with the message:

Variable XYE_PDM_DATABASE_SID not declared ABORTED

Procedure

  1. If you do not know what your database SID is, obtain this information.
    To display the value for the XYE_PDM_DATABASE_SID variable:
    OptionDescription
    WindowsLook in the registry under HKEY_CURRENT_USER > SOFTWARE > XyEnterprise > Content@ > 3.0
    UNIXAt the command prompt type: env | grep XYE_PDM_DATABASE_SID
  2. To resolve the problem you can either include the Oracle SID with the database name in the command or set the XYE_PDM_DATABASE_SID variable to the Oracle SID.
    OptionFor example:
    Include the Oracle SID with the database name in the commandAssuming that RWS is the SID, type: newdb.pl -dbase dbname@RWS
    Set the XYE_PDM_DATABASE_SID variable to the Oracle SIDIn the window from which you are issuing the import command, and assuming that RWS is the SID, type:

    Windows: set XYE_PDM_DATABASE_SID=RWS

    Linux: setenv XYE_PDM_DATABASE_SID RWS