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:
-
Create an empty database and database server on the server.
-
Start a PROENV session on the machine where you want
the master catalog.
-
Create a directory to hold the master catalog.
-
Use the PRODB utility to create an Empty database in
that directory.
-
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.
-
Start the database server.
-
Run the New Catalog wizard
-
Start a Progress Developer Studio for OpenEdge session on your local
machine in a workspace that has no catalogs defined.
-
Choose . The New dialog box appears.
-
Choose and click Next. The
Create Meta Catalog wizard appears.
-
Enter the empty database's name for the Meta Catalog name and click
Next.
-
Click Next on the this page. You have already
created the database.
-
On the Meta Catalog Connection page, enter the
connection information for the empty database and click
Next.
-
Continue creating the catalog definition as usual.
-
When you have set all the options correctly for your master catalog,
deselect the Load content from selected projects toggle and click
Finish.
Your master catalog now has the Meta Catalog tables.
-
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.
-
Choose . The Preferences dialog box appears.
-
Choose . The Meta Catalog browser
appears.
-
Click Export All.
-
Save the catalog definition file with a unique name.
-
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.
-
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.