Enable Sqldeveloper Web
Enable Sqldeveloper Web
Enable Sqldeveloper Web
• Assumptions
• Create a Test Database User
• Enable ORDS
• Enable SQL Deve oper Web (ORDS Version 22.1 Onward)
• Enable SQL Deve oper Web (ORDS Versions 19.4 to 21.4)
• Using SQL Deve oper Web
• OBA Access
Related articles.
Assumptions
This article assumes the following .
• You already have a functioning installation of ORDS 19.4 or higher, using an application server or standalone mode. The SQL Developer
Web functionality was introduced in OROS version 19.3 on the cloud and 19.4 for on-prem inst allations .
• The paths for the OROS configuration match those from the OROS installation article listed above .
• You are using HTTPS in a browser to connect to OROS. SQL Developer Web will only work with HTTP if you enable HTTP access to REST
Enabled SQL, which is a bad idea, as you will be transferring passwords across the network . If you want to do it, it is explained here, but
please don't!
CONN/ AS SYSDBA
ALTER SESSION SET CONTAINER=pdbl;
Enable ORDS
Enable ORDS for the test schema it self. We could use any unique and legal URL mapping pattern for the schema, so it is no t necessary to
expose the schema name. In this examp le we've used a schema alias of "hr".
Normal web services from the schema can now be referenced using t he following base URLs. We can only use the HTTPS URL by default for
CONN testuserl/testuserl@pdbl
SQL Developer Web.
BEGIN
http://localhost:8080/ords/hr/ https://localhost:8443/odrs/hr/
ORDS.enable_schema(
p_enabled => TRUE,
p_schema =>
'TESTUSERl', p_url_mapping_type
=>
'BASE_pATH',
p_url_mapping_pattern => 'hr',
p_auto_rest_auth => FALSE
);
COMMI
We are now ready to start.
ords --config ${0RDS_CONFIG} config set r est Enabl edSql . act i ve true ords --config ${0RDS_CONFIG} config set f eat ur e . sdw true
We will need to restart ORDS for this to take effect. The method will vary depending on if you are running ORDS under Tomcat, WebLogic or in
standalone mode.
With the above configuration in place, we can access SQL Developer Web and connect to the TESTUSERl user with the following URL.
There is also a top-level URL that guides you through the login URL.
It assumes your base path and username match, which is unlikely to be the case for a schema owner or API user, so I'm going to avoid it in this
example, but if you are setting up a regular user for a developer, having a matching schema name and base path are not a problem.
<ent r y key="r est Enabl edSql . act i ve" >t r uec/ ent r y>
<ent r y key="f eat ur e. sdw" >t r ue</ ent r y>
cd / u01/ or ds
$JAVA_HOME/ bi n/ j ava -jar ords.war set-property restEnabledSql.active true
$JAVA_HOME/ bi n/ j ava -jar ords.war set - pr oper t y feature.sdw true
You will need to restart ORDS for this to take effect. The method will vary depending on if you are running ORDS under To mcat, WebLogic or in
standalone mode.
With the above configuration in place, we can access SQL Developer Web and connect to the TESTUSERl user with the following URL.
There is also a top-level URL that guides you through the login URL.
It assumes your base path and username match, which is unlikely to be the case for a schema owner or API user, so I'm going to avoid it in this
example, but if you are setting up a regular user for a developer, having a matching schema name and base path are not a proble m.
O RA CLE '
SOL Developer Web
Username
tes tuse rl
Pas.sword
·········I
About Oracle Contact Us Legal Notice s Terms Of Use Your Privacy Rig hts
Copyright 2009, 2019 Oracle .a nd /o r +U. a ffiliate All ng'lts. res.e rved ,
Once logged in you are presented with the "Home" tab. Click the "Worksheet" tab.
No ite ms to display.
The "Worksheet" tab is where you create and edit objects, as well as running queries and scripts. Click the "Data modeler" tab.
- ORACLE'
SQLDeveloper Home Worksheet Data Mode ler I< TESTUSER1 v
00
0
1 SELECT * FRCJ-1 em p ;
TESTUSER1
Table s
Seilu:h. [ o [ ··· ]
► Im DEPT
--' im EM P
[II] EM PNO
[Il] Er-JAM E
[Il]JOB
[Il]MGR
[II] HIREDATE
[II] SAL
[Il]COMM
[II] DEPTN O
◄ Q uery Result Scrip1 Ou tput DBMS Output Explain Plan Autotrace SOL History Data Loading 0
liil 0 Dowr,load .,. E.xe<.ut1o n trme: 0.0 22 seconds
The "Data Modeler" tab all ows you to create object s and diagram s.
DBA Access
Create a new test user, but this time grant it the DBA and PDB_DBA roles.
Connect to the new DBA user and enable OROS for it.
CONN / AS SYSDBA
ALTER
CONN SESSION
dumm SET CONTAINER=pdb
y_dba/dummy_dba l;
@ pdbl
COMMIT; END;
I
We've made the schema name and base paths match this time, so we could access this schema via either of the following URLs. Login with the
DBA credential s.
https://localhost:844/3ords/sql-d eveloper
https://localhost:844/3ords/dumm y_dba/_sdw
You are presented with a dashboard . You can use the "Quick Links" on the right of the screen, or expand the hamburger menu on the top-left of
the screen, show the available options. Click the hamburger menu on the top-left of the screen.
Expand the "Admin" section and click the "User Management" option.
10 Dashboard
ORACLE' Dashborad
x Admin
Us e r Ma n age men
DA TA :IA '.
t
18
0.0 5
- Act r.l!"
- 0!"[ of R!"ad Tot al
lnactw!"
- D1"'1taofWrit!"Tolill
- 8tocked
0.0 2
0.00- - - - - - - - - - - - - - - - -
16:42:00 16:42:3 0 16:43:00 16.-43 :30 16:44:00 16:41:30 1 42:00 16:42:30 16:43:00 16:43:30
!:;cc Wait s
6000
- Us!"r VO
50.00
- System 1/0
- Schedule r
40.00 - QU:!"UI!"
Other
J 3 0. 00
-
-
-
Net wo rk
Id le
C;:, nfigurat ion
- ConaHr !"ncy
20.00
- Comm i t
- Cluste r
10.00 - Applicat io n
- Admmistr.,,LM''
0.00 - - - - - - - - - - - - - - - - -
16:42:00 16A2:30 16:43:00 16:43:30 16:44:00
You are presented with the list of users, which can be filtered, and allow you to perform some basic user management.
- O R A CLE " SOL Developer Home Activity (9 Worksheet
Data Modeler P, DUMMY_DBA v
•
DUMMY DBA RESTEMbled
OR DS Alias: dummy_dba
f Lilst logm : 2019-12-21T16:39:47Z 0 Password Expire. 1n. 179 days
https://JocalhostBdA3/ords/dummy_dba/_sdw/ ro
•
All Users P+ Crea te User
°' II J.:
APE X_LISTENER
• APEX _RE ST_PUB LI
•
C_USER
f Lilst logm : 2019-12-21T15:2Z:35Z 0 Password Expire. in. 179 days C9 Password Expires m 179 daY5
http';;.//localhostB443/ords/dummy_dba/ _sdw/
ro • OR DS_M ETADATA
• •
ORDS PUB LI C_USER PDBADM I N
.P Last login: 2019-l2 -2 \Tl6:59:07Z 0 Password Expires in 179 dc1ys 0 Password 6:pires 1n 179 day..
• ■
TESTUSER1 RESTEN hled
□R DS AHas: hr I/ Edit
/> Last Logm! 2019-12-21Tl5:3'.>:15Z © Password Expires in 179 days
f:!I D i sable REST
https:// loc:al hos t8443 /o rds /hr /_:.dw/
.fJ D rop REST
Services
@ D e le t e
htt ps://localhost B-443/o rds/ dumm _y_db a/ _sdw/?na v::c-ad min&admin=u ser-manage ment -"'
You will also notice an "Activity" tab is no w present on most screens. This gives you access to a number of useful feature s.
- O R A CL E " SOL Developer Home Activity (2) Worksheet D ata Modeler P, DUMMY_DBA v
Overview
Cu rr ent
•
User
Alerts
Top SQL
•
a_ - _.,
AP EX_LISTENER
•
DU M MY_DBA REST Enahl,d
OR.DS Alias: dumm y_dba
P Last login: 2.019-12-2\T16:39:47Z @ Password &pin."!i in 179 dc1ys
http';;.//localhostB443/ords/dummy_dba/ _sdw/
ro • OR DS_M ETADATA
• •
ORDS PUB LI C_USER PDBADM I N
.P Last login: 2019-l2 -2 \Tl6:59:07Z 0 Password Expin .•s in 179 da)IS 0 Possword 6:pires 1n 179 day..
•
TESTUSER1 RESTE N hl ,d
□R DS AHas: hr
/> Last Logm! 2019-12-21Tl5:3'.>:15Z © Password Expires in 179 days
https ://l oca lho st B-443/o rds/ dumm y_dba/ _sdw /?nav ::c-ad min&ad min=user-management -"'
r
La t hour:
..ii Tim e Range Select Durat ion 21, 201 04.:Hi DM - 05:i Pr.t
Wait
Use r l/ O
C CPU
·0a - Max Thr .-.ds
<(
04: 20 PM 04:25? M 04:30 PM 04:15 PM 04:40PM 04:45 PM 04 50 PM 04:55P M 0 5:00 PM 05:05 PM 0 5:10 PM 05:1.SPM
D c 21, 2019 GMT-0000
2.0
1.6
..
12
0.8
----------
OTHER~ GROUPS
SQL ID Activity (Averag e Active Sessi ons) User Session Activrty (Average Active Sessions )
Contact Us