Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Administration

CHANGE (Project Definition)

  • Last UpdatedJan 29, 2025
  • 5 minute read

Function:

  • Changes the Database (DB) access type (UPDATE or MULTIWRITE), and the claim mode for multiwrite DBs.

  • It also changes the file number and control mode, and brings foreign DBs up to date.

  • Optionally sets PROTECTION to limit copying and extraction of data between Users and Projects.

In a Global Project, this command can only be given at the Hub. It can also be used to change the Primary Location of a DB.

Description:

By default, DBs are created with UPDATE access type, which means that they can be opened with one writer and n readers.

Model, Draft (PADD), Catalogue and Isodraft DBs can be multiwrite DBs, which allows more than one User to write to the same DB. Multiwrite DBs can have their claim mode set to IMPLICIT, in which case any element which is modified will be claimed automatically. Alternatively, the claim mode can be set to EXPLICIT, in which case Users must claim elements before they can modify them, using the CLAIM command in the constructor modules. For more information, refer to the Reference Manual for the module.

The CHANGE command can be used to change the access mode from UPDATE to MULTIWRITE, and from MULTIWRITE to UPDATE. It can also be used to change the claim mode of multiwrite DBs from IMPLICIT to EXPLICIT, and from EXPLICIT to IMPLICIT.

Note:
The administrator cannot set the CONTROLLED attribute, which means that access is controlled by an external system, using this command.
If the DB has an extract DB created from it, the access mode must stay as MULTIWRITE.
If the access mode of a DB used as a foreign DB is changed, the administrator should use the CHANGE FOREIGN command in the Project which has included the foreign DB to update the Project.

Both update and multiwrite DBs can also have their CONTROLLED attribute set.

Setting the PROTECTION parameter will disallow copying extraction of data between Projects or Users which are not members of the protected DB. An optional expiry date may be specified.

CHANGE dbname PROTection [ ON | OFF ] [EXPires future-date ]

In a Global Project, the CHANGE command can be used at the Hub to change the Primary Location of a DB. The CHANGE PRIMARY command cannot complete while there are Users in the AVEVA base product with write access to the DB. The command will eventually complete once all such Users have left the AVEVA base product. The administrator may need to use the EXPUNGE command to remove phantom Users.

After the CHANGE PRIMARY command has been issued, Users in the AVEVA base product with write access to the DB can continue to modify the DB, even if GETWORK is used. Once they have made a module switch, the DB will become read-only.

If a CHANGE PRIMARY command fails, the previous Primary Location will normally be recovered automatically. If the recovery fails (for example, the daemon is not running), the administrator can recover the previous Primary Location using the command PREVOWN dbname.

Note:
Use of the PREVOWN command should be avoided if possible.

Offline Locations

Before issuing a CHANGE PRIMARY command to or from an offline Location, all users should have left the AVEVA base product at the old Primary Location. The TRANSFER command should first be used to bring the DB at the new Primary Location up-to-date. Any modifications to the DB at the old Primary Location subsequent to this transfer will be lost. Only after this transfer is it safe to issue the CHANGE PRIMARY command.

Examples:

CHANGE TEST/TESTDESI ACCESS MULTIWRITE

Changes the access rights for a named DB to MULTIWRITE.

CHANGE TEST/TESTDESI CLAIM IMPLICIT

Changes the claim mode for a named DB to IMPLICIT. This option can only be used for a multiwrite DB.

CHANGE TEST/TESTDESI ACCESS UPDATE

Changes the access rights for a named DB to SINGLEWRITE.

CHANGE TEST/TESTDESI CLAIM OFF

Changes the claim mode for a named DB to OFF. This option can only be used for a controlled DB.

CHANGE TEST/TESTDESI CONTROL OFF

Changes the control setting for named DB to OFF. This option can only be used for a controlled DB.

CHANGE TEST/TESTDESI FINO 500

Changes the file number (FINO attribute) of the given DB to the given number. By default, the file number will be set to 0, and the file name of the DB file will be derived from the DB Number. Using the default is recommended, particularly if the administrator is using extracts. If the administrator sets the file number explicitly, the extract file name will still be derived from the DB Number (NUMDB attribute), and so the consistency of file names within an extract family will be lost.

CHANGE TEST/TESTDESI FINO 0

Changes the file number (FINO attribute) of the given DB to 0. This command can be used to update DB files to the new file numbering convention, which will keep extract file names consistent within an extract family.

CHANGE TEST/TESTDESI PASSWORD ‘ABCDE’

Changes the TEST/TESTDESI DB to have the password 'ABCDE'.

CHANGE TEST/TESTDESI VERIFY ‘ABCDE’ PASSWORD ‘FGHIJ’

Changes the TEST/TESTDESI DB's password from 'ABCDE' to 'FGHIJ'.

CHANGE TEST/TESTDESI VERIFY ‘ABCDE’ PASSWORD DELETE

Removes the password from the TEST/TESTDESI DB.

CHANGE FOREIGN PIPE/PIPECATA RESET

If the PIPE/PIPECATA DB is a local DB in Project AAA, and a foreign DB in Project BBB, and the access is changed (in AAA), the administrator should give this command in Project BBB to update the Project.

Note:
On the following change: Primary commands
The new Primary Location will receive all outstanding updates of the DB from the current Primary Location.

Note:
Offline Locations
The Primary Location of a DB cannot be changed directly between an off-line satellite and an online Satellite. The Primary Location of the DB must first be changed to the Hub. The <date> option is not allowed for off-line Locations.

The following command can only be used at the Hub of a Global Project:

CHANGE TEST/TESTDESI PRIMARY AT CAM

Changes the Primary Location of the named DB to be CAM. The DB will automatically become Secondary at the current Primary Location.

The following option is only available at the Hub of a Global Project:

CHANGE HVAC/HVAC PRIMARY AT CAM AT 2330

Changes the Primary Location of the named DB to the Location CAM at the specified time.

Command Syntax:

Note:
The CLAIM OFF option is only applicable to controlled DBs.

The CLAIM IMPLICIT and CLAIM EXPLICIT options are only applicable to multiwrite and controlled DBs.

The following option is only available at the Hub of a Global Project:

>--- CHange dbname --- PRIMary AT  <loc> ---+-- AT <date> --.
                                            |               |
                                            ‘---------------+--->

Querying:

>--- Query DB dbname --->

>--- Q PRMLOC --->

At a DB, shows the Primary Location.

Related Commands:

PREVOWNER (Global Project Administration - Hub only)

TitleResults for “How to create a CRG?”Also Available in