This post provides guidance on performing an in-place upgrade of ORDS from version 3.0.5 to 3.0.7 within GlassFish.

Important Note
ORDS 2.X is fundamentally different to ORDS 3.X. This example doesn’t apply to 2.X to 3.X migrations, which require a more comprehensive upgrade process.
Backups and Precautions
Before upgrading, back up the following:
- Current ords.war file - In case you need to rollback
- ORDS config directory contents - For example:
/srv/ords/config - REST service modules, templates, and handlers - Export using SQL Developer or scripts
# Example backup commands
cp /srv/ords/ords.war /srv/ords/backup/ords.war.305
cp -r /srv/ords/config /srv/ords/backup/config.305
Review Release Notes
Review the readme.html file for version-specific requirements. Version 3.0.7 requires setting security.requestValidationFunction to WWV_FLOW_EPG_INCLUDE_MODULES.AUTHORIZE for APEX_PUBLIC_USER configurations.
Add this to your defaults.xml if not already present:
<entry key="security.requestValidationFunction">
WWV_FLOW_EPG_INCLUDE_MODULES.AUTHORIZE
</entry>
Upgrade Steps
Step 1: Download Latest ORDS Version
Download the latest ORDS version from Oracle Technology Network.
Step 2: Extract and Copy WAR File
Extract the download and copy the ords.war file, overwriting the existing file:
unzip ords-3.0.7.zip
cp ords-3.0.7/ords.war /srv/ords/ords.war
Step 3: Run the Installer
Run the installer to upgrade the database schema:
cd /srv/ords
java -jar ords.war install
Step 4: Provide Configuration Details
When prompted, provide the config directory location:
Enter the location to store configuration data: /srv/ords/config
Step 5: Enter SYS Credentials
Enter SYS credentials for schema verification. The installer will validate and upgrade the ORDS metadata schema in the database.
Step 6: Automatic Schema Upgrade
ORDS automatically upgrades the database schema. You’ll see messages indicating the upgrade progress:
Upgrading ORDS metadata schema...
Done.
Step 7: Redeploy the WAR File
Redeploy the WAR file in GlassFish:
- Log into GlassFish Admin Console
- Navigate to Applications
- Select ords application
- Click Redeploy
- Upload the new ords.war file
- Click OK
Alternatively, use the command line:
asadmin redeploy --name ords /srv/ords/ords.war
Verification
Query the ORDS version to confirm the upgrade:
SELECT * FROM ords_metadata.ords_version;
Expected output:
VERSION
-------
3.0.7
You can also check the version via REST:
curl https://your-server/ords/
Multi-Instance Upgrades
If you have multiple ORDS instances (e.g., development, test, production):
- Upgrade development first
- Test thoroughly
- Upgrade test environment
- Run QA testing
- Schedule production upgrade during maintenance window
Rollback Procedure
If issues occur, rollback to the previous version:
- Stop GlassFish
- Restore the backed-up ords.war
- Restore the config directory
- Start GlassFish
- Verify functionality
Note: Database schema changes may not be easily reversible. Test thoroughly before production upgrades.
Conclusion
Upgrading ORDS within the 3.X line is straightforward - copy the new WAR file, run the installer, and redeploy. Always back up first and test in non-production environments before upgrading production systems.
Jon Dixon, Co-Founder JMJ Cloud