Summary
The ArcGIS Server term license is subject to expiration and must be updated manually on the machine hosting ArcGIS Server. When an ArcGIS Server term license expires and ArcGIS Server has an enterprise geodatabase connection registered, the license for the related enterprise geodatabase must be replaced and updated along with the renewal of the server's license. This article demonstrates how to update the expired enterprise geodatabase license via SQL Server Management Studio.
Procedure
Note:
If the ArcGIS Server license is up-to-date, proceed to Step 2.
- On the machine hosting ArcGIS Server, log in to My Esri to obtain the new license file for the new term date and authorize the new ArcGIS Server term license. Refer to Steps 1 to 3 of How to: Replace expired ArcGIS Server and Enterprise geodatabase licenses to do so.
Note:
If ArcGIS Server is federated with ArcGIS Data Store, refer to How To: Update the ArcGIS Data Store license via command utilities for steps to update the ArcGIS Data Store license.
- Make a copy of the keycodes file generated on the ArcGIS Server machine to the machine hosting SQL Server Management Studio and rename the duplicate file with a .ecp file extension. The following path is the default keycodes file directory on an ArcGIS Server machine.
Warning:
Do not rename the original keycodes file as this may disrupt the functionality of the ArcGIS Enterprise deployment.
C:\Program Files\ESRI\License<VersionNumber>\sysgen
- Open the duplicate file using a text editor on the SQL Server Management Studio machine.
- Search for and copy the first six arcsdeserver license information in the text editor window. The arcsdeserver license information is displayed in the following format.
arcsdeserver,<ProductVersion>,<LicenseNumber>,<ExpirationDate>,MachineInfo>,<DetailsNumber>
- Open and log in to SQL Server Management Studio using a sa account.
- In the Object Explorer pane, expand and navigate to the database with the expired license > Tables.
- Right-click the server configuration file, and click the Select Top 1000 Rows option from the drop-down menu.
Note:
The server configuration file on the machine is named as either sde.SDE_server_config or dbo.SDE_server_config.
- On the Results tab of the Query Editor window, scroll and search for AUTH_KEY in the table to verify the details and expiration date of the current license.
- In the Query Editor window, press Enter twice and paste the following script with the license information copied from Step 4.
UPDATE <ServerConfigurationFileName>
SET char_prop_value = '<arcsdeserverLicenseInformation>'
WHERE prop_name = 'AUTH_KEY'
- Highlight the command in the Query Editor window and click Execute.
- Repeat Steps 6 to 8 to verify that the Auth_Key row is updated with the new license information.
- To ensure the SQL database is working as intended after updating the license, log in to ArcGIS Server Manager on a web browser.
- In ArcGIS Server Manager, navigate to Site > Data Store and check the SQL database checkbox.
- Click Validate.
Note:
Alternatively, if the SQL database is registered in ArcGIS Pro, click and expand the nodes of the database in the Catalog pane to ensure the services are available and working as intended.