C Troubleshooting Oracle REST Data Services
This appendix contains information on troubleshooting Oracle REST Data Services.
- Enabling Detailed Request Error Messages
- ORDS User Defined Service
- Configuring Oracle APEX Static Resources with Oracle REST Data Services
- Resolving 570 Server Error Response Code
This section provides the steps to resolve a 570 Server Error Response code.
C.1 Enabling Detailed Request Error Messages
To enable detailed request error messages, run the following command:
ords config set debug.printDebugToScreen trueAny request that produces an error response includes a detailed message, including a stack trace. This setting must not be enabled on production systems due to the risk of sensitive information being revealed to an attacker.
Parent topic: Troubleshooting Oracle REST Data Services
C.2 ORDS User Defined Service
The following table lists the ORDS user defined services:
Table C-1 List of ORDS user defined service
| Service | Response |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
Parent topic: Troubleshooting Oracle REST Data Services
C.3 Configuring Oracle APEX Static Resources with Oracle REST Data Services
When using Oracle REST Data Services, a blank page might be displayed when
attempting to access an Oracle APEX page, for example, when attempting to display
https://example/ords/apex. This problem is caused by an
improper configuration of Oracle APEX static resources, which causes the JavaScript and CSS
resources required by APEX not to be found and the APEX page not to render correctly.
The specific cause can be any of the following:
-
Forgetting to ensure that the APEX static images are located on the same server as the Oracle REST Data Services instance
-
Forgetting to deploy a web application for the static APEX images to Apache Tomcat or WebLogic Server.
-
When running in Standalone mode, entering an incorrect path (or not specifying a path) when prompted on the first run of Standalone mode
-
When running in Standalone mode, entering an incorrect path with the
--apex-imagesoption -
Upgrading to a new version of APEX in Standalone mode forgetting to update the location by using the
--apex-imagesoption
To help in diagnosing the problem, you can try to access the
apex_version.txt file. For example, if your APEX deployment is located at
https://example.com/ords/ and your static resources have been deployed at
https://example.com/i/, use a browser to access the following URL:
https://example.com/i/apex_version.txt
If you get a 404 Not Found error, then check the preceding list of
possible specific causes.
If a plain text file is displayed, it should contain text like the following:
Oracle APEX Version: 24.1Check that the version number matches the version of APEX that is deployed on the database. If the numbers do not match, check if you have made an error mentioned in the last item in the preceding list of possible specific causes, because Oracle REST Data Services is not configured to use the correct version of the APEX static resources to match the APEX version in the database.
It is recommended that you configure the Oracle APEX instance wherever applicable to use the resources from the Oracle Content Network. The use of the Oracle CDN may not be feasible when using Oracle APEX in a network that restricts internet access. In such a scenario, you must deploy a web application to provide the Oracle APEX image files.
If you need help in solving the problem, check the information in this book about
creating and deploying i.war for your environment, such as WebLogic
Server.
Parent topic: Troubleshooting Oracle REST Data Services
C.4 Resolving 570 Server Error Response Code
This section provides the steps to resolve a 570 Server Error Response code.
This issue is commonly encountered during an upgrade or repair when the ORDS_PUBLIC_USER password has been changed. When ORDS starts, it attempts to connect to the target database using the credentials stored in the associated Wallet (.SSO file).
If the wallet password does not match the database password, ORDS attempts to login three times. Repeated failures locks the account. Perform the following steps to resolve this issue:
Perform the following steps to resolve this issue:
- Stop the affected ORDS instance/process.
- Unlock the
ORDS_PUBLIC_USERaccount using the following command:alter user ORDS_PUBLIC_USER unlock;- Verify the account status using the following
command:
select username, account_status from dba_users where username ='ORDS_PUBLIC_USER';
- Verify the account status using the following
command:
- You can either change or update the
ORDS_PUBLIC_USERpassword (to match the current database password) or verify the password that is stored in the ORDS Wallet (.SSO file).- To change the
ORDS_PUBLIC_USERpassword, use the following command:ords --config <PATH TO ORDS CONFIG> config secret db.password - To verify the password, use the following command:
ords --config <PATH TO ORDS CONFIG> config get --secret db.password
- To change the
- If you change the password in the
.SSOwallet, restart your shell or terminal session and then retry the upgrade or repair:ords --config <Path to your ORDS configuration folder> installWhen prompted, choose the database pool associated with the mismatched wallet password.Note:
During installation, the ORDS installer updates the database password if it detects a difference in the password.
Parent topic: Troubleshooting Oracle REST Data Services