# Loading a Repository

The load command takes the output layout from the build and loads it to an Expere runtime environment. This process connects directly to the database, so you must enter a database connect string at the end of the command. See Database Connection Strings for details.

The command line to load a repository to Expere is as follows:

    ReqAdmin load [-v] (-SQLServer|-Oracle) <Path to build output> <Database connection string>

The type of database, where the content was loaded, must be entered on the command line by typing either an –SQLServer or –Oracle switch. If you do not enter one of these switches, the tool defaults to –SQLServer.

The load command causes the Expere runtime environment to mirror the repository indicated. It also synchronizes the organization structure in the runtime with the local repository, and matches all of the content to what is local.

The load command function may be either run against a runtime environment that already has content, or a fresh install. In either case, after running the load command, all of the content that was in the repository will now be accessible by the document engine.

You can configure load timeout to avoid failure loading huge repositories. The default timeout is 10 minutes.

ReqAdmin.exe.config has key LoadTimeout in appSettings group:

    <appSettings>
     <add key="LoadTimeout" value="10"/>
    </appSettings>

If key "LoadTimeout" does not exist in config file, internal load timeout will be set to 10 by default.

The -output feature includes all manifest and JS files in the FileSystem after the load. Note that all Manifest and JS files are included in Oracle and SQL.

Parent topic: Command Line Options