How to change the landscape handle of an unpopulated database in Spectrum?

Document ID : KB000038942
Last Modified Date : 14/02/2018
Show Technical Document Details

Introduction:

How to change the landscape handle of an unpopulated database in Spectrum?

Instructions: 

There can be a requirement where you may need to change the landscape handle value of an unpopulated Spectrum database. This document explains how to change the landscape handle of an unpopulated Spectrum database. Please follow the below steps:

For Windows:

1)   Open CMD

2)   Bash -l

Press enter, you will be in SPECROOT.

3)   cd $SPECROOT/SS/DDM

4)   Run the command “./ddm_load -i <landscape handle>”

Here -i will initialize the landscape. Press "Y" if you want to proceed.

Landscape handle will be the current landscape value

5)   cd ..

Now you will be in SS folder. From here run the below the command

6)   ../SS-Tools/lh_set <landscape handle>

Here enter the landscape value that you want and press enter.

Now the landscape handle value is set to new.

For Linux:

1)   Log into the system as the user that owns the Spectrum install and open the terminal.

2)   cd $SPECROOT/SS/DDM

3)   Run the command “./ddm_load -i <landscape handle>”

Here -i will initialize the landscape. Press "Y" if you want to proceed.

Landscape handle will be the current landscape value

4)   cd ..

Now you will be in SS folder. From here run the below the command.

5)   ../SS-Tools/lh_set <landscape handle>

Here enter the landscape value that you want and press enter.

Now the landscape handle value is set to new.

Additional Information:

The lh_set command can only be used to change the landscape handle on an unpopulated database. Specifically, after loading a catalog only database like the legacy.SSdb. When a catalog only database is loaded, there are no models in the database. It is only when the SpectroSERVER is started for the first time after loading a catalog only database that the required models, like the VNM and Universe models, are dynamically created and the database gets populated with models.

You CANNOT change the landscape handle on a populated Spectrum database.