The OECATALOG command-line utility's -build option does not create the physical database. That option only creates the tables and populates them with data. To create a new master catalog, you MUST run the New Catalog wizard on the physical database before using the OECATALOG command-line utility.

Building a master catalog on a server is a multi-stage process:

  1. Create an empty database and database server on the server.
    1. Start a PROENV session on the machine where you want the master catalog.
    2. Create a directory to hold the master catalog.
    3. Use the PRODB utility to create an Empty database in that directory.
    4. Create a database server with the appropriate connection parameters for the master catalog using OpenEdge Management or OpenEdge Explorer. Remember that the database server has to support SQL.
    5. Start the database server.
  2. Run the New Catalog wizard.
    1. Start a Progress Developer Studio for OpenEdge session on your local machine in a workspace that has no catalogs defined.
    2. Choose File > New > Other . The Select a wizard wizard appears.
    3. Choose Progress OpenEdge > Meta Catalog > Link to Master Catalog and click Next. The Name link to master catalog wizard appears to create meta catalog.
      Note: Select Link to Master Catalog to connect to a database that is running and is outside the Progress Developer Studio for OpenEdge project. Select Local Meta Catalogto create a new database from Progress Developer Studio for OpenEdge. For more information, see Local and master catalogs.
    4. Enter the empty database's name in the Meta Catalog name and click Next.
    5. On the Meta Catalog Connection wizard, enter the connection information for the empty database and click Next.
      • Enter the localhost in the Host field.
      • Enter the Service/Port used while create the empty database.
      • Enter the database name used while creating the empty database.
      • Enter your username and click Finish.
    Your master catalog now has the Meta Catalog tables.
  3. Transfer the catalog definition from your local machine to the server.
    Before you can use the OECATALOG utility on your master catalog, you need a catalog definition file for it.
    1. Choose Windows > Preferences. The Preferences dialog box appears.
    2. Choose Progress OpenEdge > Meta Catalog. The Meta Catalog browser appears with the new Meta Catalog displayed in it.
    3. Click Export All.
    4. Save the catalog definition file with a unique name.
    5. Copy the catalog definition file to the master catalog's directory on the server.
      You now have a master catalog database and a catalog definition file for it.
  4. Run the OECATALOG command-line utility to populate the master catalog using the catalog definition file. For example: oecatalog -build -catalog masterCatalog.xml -root C:\wrk
    Note: The -root setting should match where the resources are stored on the master catalog's machine, not where your local copies are.
You can now use the OECATALOG utility to populate and rebuild the master catalog as needed. The master catalog does not contain any data yet, because the content builders have not run against the source files yet.