$
$JAVA_HOME/bin/java -jar ords.war setup --database pdb2
Specify the database connection type to use.
Enter number for [1] Basic [2] TNS [3] Custom URL [1]:
Enter the name of the database server [localhost.localdomain]:
Enter the database listen port [1521]:
Enter 1 to specify the database service name, or 2 to specify the database SID [1]:
Enter the database service name [pdb2]:
Enter 1 if you want to verify/install Oracle REST Data Services schema or 2 to skip this step [1]:
Enter the database password for ORDS_PUBLIC_USER:
Confirm password:
Retrieving information.
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 [2] REST Enabled SQL [3] None [1]:3
2020-06-17T21:42:16.159Z INFO reloaded pools: [|apex||, |apex|al|, |apex|pu|, |apex|rt|, |pdb1||, |pdb1|al|, |pdb1|pu|, |pdb1|rt|, |plsqluser-pdb1||, |pdb2|pu|]
2020-06-17T21:42:16.179Z INFO Oracle REST Data Services schema version 19.4.6.r1421859 is installed.
$
db.hostname=localhost.localdomain
db.port=1521
db.servicename=pdb2
#db.sid=
db.username=ORDS_PUBLIC_USER
#db.password=ApexPassword1
migrate.apex.rest=false
plsql.gateway.add=false
rest.services.apex.add=false
rest.services.ords.add=true
#schema.tablespace.default=APEX
#schema.tablespace.temp=TEMP
standalone.mode=false
#standalone.use.https=true
#standalone.http.port=8080
# ORDS19 Onward
#standalone.static.path=/home/oracle/apex/images
# Pre-ORDS19
#standalone.static.images=/home/oracle/apex/images
#user.apex.listener.password=ApexPassword1
#user.apex.restpublic.password=ApexPassword1
user.public.password=ApexPassword1
#user.tablespace.default=APEX
#user.tablespace.temp=TEMP
sys.user=SYS
sys.password=SysPassword1
restEnabledSql.active=false
feature.sdw=false
$
cd /u01/ords
$
$JAVA_HOME/bin/java -jar ords.war setup --database pdb2 --parameterFile params/pdb2_ords_params.properties --silent
Retrieving information.
2020-06-17T21:59:23.683Z INFO reloaded pools: [|apex||, |apex|al|, |apex|pu|, |apex|rt|, |pdb1||, |pdb1|al|, |pdb1|pu|, |pdb1|rt|, |pdb2|pu|, |plsqluser-pdb1||]
2020-06-17T21:59:23.736Z INFO Oracle REST Data Services schema version 19.4.6.r1421859 is installed.
$
$
$JAVA_HOME/bin/java -jar ords.war map-url --type base-path /pdb2 pdb2
Jun 17, 2016 8:26:24 PM oracle.dbtools.url.mapping.file.MapURL execute
INFO: Creating new mapping from: [base-path,/pdb2] to map to: [pdb2,,]
$
http://localhost.localdomain:8080/ords/pdb2/testuser1/testmodule1/emp/
ls /u01/ords/conf/ords/conf/pdb2*
cat /u01/ords/conf/ords/url-mapping.xml