INSTALLING ORACLE REST DATA SERVICES/ORDS ON WEBLOGIC
Oracle REST data services is a Java based application that makes Oracle DB REST enabled. ORDS can be run as a standalone application or can be deployed on application servers: weblogic, Tomcat and GlassFish. We installed ORDS 20.3 without APEX on Weblogic. Thanks to my colleagues Shubham and Rohit in helping me setup it. Here are the steps:
- Download ORDS from Oracle Site
- Copy and unzip installable on installation machine.
- Create ORDS user in database, say ords_admin.
- Execute ords_installer_privileges.sql by passing ords admin user as input. This file is located under “installer” directory of the downloaded ords. This script provides all necessary permission for the admin user.
- Go to dir where unzipped installable is present:
For example, cd /u01/software/ords-20.3 - Run below command. Responses to installer prompt are highlighted in bold
java -jar ords.war install advanced
[oracle@mymachine ords-20.3]$ java -jar ords.war install advanced Specify the database connection type to use. Enter number for [1] Basic [2] TNS [3] Custom URL [1]:3 Enter the Custom JDBC URL:jdbc:oracle:thin:@//mydatabase:1521/pmyebs Enter 1 if you want to verify/install Oracle REST Data Services schema or 2 to skip this step [1]:1 Enter the database password for ORDS_PUBLIC_USER: (enter password of your choice) Confirm password: Requires to login with administrator privileges to verify Oracle REST Data Services schema. Enter the administrator username:ords_admin (Enter admin user created in step 3) Enter the database password for ords_admin: (enter admin user password created in step 3) Confirm password: Connecting to database user: ords_admin url: jdbc:oracle:thin:@//mydatabase:1521/pmyebs Retrieving information. Enter the default tablespace for ORDS_METADATA [SYSAUX]:USERS Enter the temporary tablespace for ORDS_METADATA [TEMP]:TEMP2 Enter the default tablespace for ORDS_PUBLIC_USER [SYSAUX]:USERS Enter the temporary tablespace for ORDS_PUBLIC_USER [TEMP]:TEMP2 Enter 1 if you want to use PL/SQL Gateway or 2 to skip this step. If using Oracle Application Express or migrating from mod_plsql then you must enter 1 [1]:2 Enter a number to select a feature to enable: [1] SQL Developer Web (Enables all features) [2] REST Enabled SQL [3] Database API [4] REST Enabled SQL and Database API [5] None Choose [1]:5 2020-11-17T05:00:08.335Z INFO reloaded pools: [] Installing Oracle REST Data Services version 20.3.0.r3011819 ... Log file written to 050008_00679.log ... Verified database prerequisites ... Created Oracle REST Data Services proxy user ... Created Oracle REST Data Services schema ... Granted privileges to Oracle REST Data Services ... Created Oracle REST Data Services database objects ... Log file written to 00799.log ... Log file written to 00156.log Completed installation for Oracle REST Data Services version 20.3.0.r3011819. Elapsed time: 00:01:13.736 Enter 1 if you wish to start in standalone mode or 2 to exit [1]:2
ORDS configuration can be validated using:
[oracle@mymachine ords-20.3]$ java -jar ords.war validate Specify the database connection type to use. Enter number for [1] Basic [2] TNS [3] Custom URL [1]:3 Enter the Custom JDBC URL:jdbc:oracle:thin:@//mydatabase:1521/pmyebs Requires to login with administrator privileges to verify Oracle REST Data Services schema. Enter the administrator username:ords_admin Enter the database password for ords_admin: Confirm password: Connecting to database user: ords_admin url: jdbc:oracle:thin:@//mydatabase:1521/pmyebs Retrieving information. Oracle REST Data Services will be validated. Validating Oracle REST Data Services schema version 20.3.0.r3011819 … Log file written to2020-11-17_050418_00613.log Completed validating Oracle REST Data Services version 20.3.0.r3011819. Elapsed time: 00:00:16.732
Next step is to install ords.war on weblogic.
- Log into weblogic admin console.
- Lock the edit session by clicking on Lock & Edit button located in Change Center.
- Go to Deployments page.
- Click on Install.
- In Path text box enter path of ords.war that was downloaded and choose ords.war in bottom list. Click on Next.
- Choose Install this deployment as an application and click on Next.
- Select servers/clusters where you want to install ords and click on Next.
- Choose Custom Roles: Use roles that are defined in the Administration Console; use policies that are defined in the deployment descriptor in security section. Click on Next.
- Choose “Yes, take me to the deployment’s configuration screen” and click on Finish.
- Click on Activate Changes in Change Center to complete installation.
- After deployment, application may go into Prepared state. You can start application by clicking on Lock & Edit -> Deployments -> Control Tab -> Select ords and click on Start button.
Comments
Post a Comment