Using Oracle SQL Developer Web PDF
Using Oracle SQL Developer Web PDF
Release 19.4
F25296-01
December 2019
Using Oracle® SQL Developer Web, Release 19.4
F25296-01
Copyright © 2018, 2019, Oracle and/or its affiliates. All rights reserved.
Contributors: Jeff Smith, Syme Kutz, Victor Martinez, Renato Uriel Gutierrez Salas, Antonio Hernandez, Sofia
Isadora Padilla Munoz, Miguel Sanchez Villafan, Tulika Das, Eric Paapanen
This software and related documentation are provided under a license agreement containing restrictions on
use and disclosure and are protected by intellectual property laws. Except as expressly permitted in your
license agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify,
license, transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any means.
Reverse engineering, disassembly, or decompilation of this software, unless required by law for
interoperability, is prohibited.
The information contained herein is subject to change without notice and is not warranted to be error-free. If
you find any errors, please report them to us in writing.
If this is software or related documentation that is delivered to the U.S. Government or anyone licensing it on
behalf of the U.S. Government, then the following notice is applicable:
U.S. GOVERNMENT END USERS: Oracle programs, including any operating system, integrated software,
any programs installed on the hardware, and/or documentation, delivered to U.S. Government end users are
"commercial computer software" pursuant to the applicable Federal Acquisition Regulation and agency-
specific supplemental regulations. As such, use, duplication, disclosure, modification, and adaptation of the
programs, including any operating system, integrated software, any programs installed on the hardware,
and/or documentation, shall be subject to license terms and license restrictions applicable to the programs.
No other rights are granted to the U.S. Government.
This software or hardware is developed for general use in a variety of information management applications.
It is not developed or intended for use in any inherently dangerous applications, including applications that
may create a risk of personal injury. If you use this software or hardware in dangerous applications, then you
shall be responsible to take all appropriate fail-safe, backup, redundancy, and other measures to ensure its
safe use. Oracle Corporation and its affiliates disclaim any liability for any damages caused by use of this
software or hardware in dangerous applications.
Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of
their respective owners.
Intel and Intel Xeon are trademarks or registered trademarks of Intel Corporation. All SPARC trademarks are
used under license and are trademarks or registered trademarks of SPARC International, Inc. AMD, Opteron,
the AMD logo, and the AMD Opteron logo are trademarks or registered trademarks of Advanced Micro
Devices. UNIX is a registered trademark of The Open Group.
This software or hardware and documentation may provide access to or information about content, products,
and services from third parties. Oracle Corporation and its affiliates are not responsible for and expressly
disclaim all warranties of any kind with respect to third-party content, products, and services unless otherwise
set forth in an applicable agreement between you and Oracle. Oracle Corporation and its affiliates will not be
responsible for any loss, costs, or damages incurred due to your access to or use of third-party content,
products, or services, except as set forth in an applicable agreement between you and Oracle.
Contents
Preface
Audience v
Documentation Accessibility v
Product Accessibility v
Related Documents v
Conventions v
Third-Party License Information vi
2 The Dashboard
iii
5 The User Management Page
5.1 The Create/Edit User Dialog 5-2
5.2 The REST Enable User Dialog 5-3
5.3 The Delete User Dialog 5-3
iv
Preface
This document provides information about Oracle SQL Developer Web, a browser-
based interface for Oracle SQL Developer.
Audience
The document is intended for those using Oracle SQL Developer Web included with
Oracle REST Data Services.
Documentation Accessibility
For information about Oracle's commitment to accessibility, visit the Oracle
Accessibility Program website at http://www.oracle.com/pls/topic/lookup?
ctx=acc&id=docacc.
Product Accessibility
Oracle SQL Developer Web provides features to support accessibility. See SQL
Developer Web Accessibility Guide.
Related Documents
For the desktop version of Oracle SQL Developer, see Oracle SQL Developer User's
Guide.
To download release notes, installation documentation, white papers, or other
collateral for SQL Developer, go to the Oracle Technology Network (OTN) at
http://www.oracle.com/technetwork/
Conventions
The following text conventions are used in this document:
v
Preface
Convention Meaning
boldface Boldface type indicates graphical user interface elements associated
with an action, or terms defined in text or the glossary.
italic Italic type indicates book titles, emphasis, or placeholder variables for
which you supply particular values.
monospace Monospace type indicates commands within a paragraph, URLs, code
in examples, text that appears on the screen, or text that you enter.
Rappid 2.1
RAPPID GENERAL LICENSE STATEMENT AND LIMITED WARRANTY Copyright ©
2009 - 2018 client IO s.r.o.
Definitions
"Rappid" shall mean a programmer's toolkit for building interactive diagramming
applications as originally created by client IO.
"Software" shall mean Rappid, as originally created by client IO.
"Licensee" is you, only if you agree to be bound by the terms and conditions set forth
in this Agreement.
"Source code" means the JavaScript files and other related files in the Software
package. This license statement and limited warranty constitutes a legal agreement
("License Agreement") between You (either as an individual or a single entity) and
client IO for the software product ("Software") identified above, including any software,
media, and accompanying on-line or printed documentation.
By installing, copying, or otherwise using the Software, you are agreeing to be bound
by the terms of this Agreement. If you do not agree to the terms of this Agreement, you
are not authorized to use this Software. BY INSTALLING, COPYING, OR
OTHERWISE USING THE SOFTWARE, YOU AGREE TO BE BOUND BY ALL OF
THE TERMS AND CONDITIONS OF THE LICENSE AGREEMENT.
Upon your acceptance of the terms and conditions of the License Agreement, client IO
grants to you the right to use the Software in the manner provided below.
This license is perpetual, no additional payment is required to maintain it, with the
exception of you breaking any part of this license, in which case you lose all rights
under the license. You may transfer the rights granted to you under this agreement in
and to the Software and documentation on a permanent basis provided you retain no
copies, the recipient agrees to the terms of the License Agreement and the total
number of developers licensed to use the software does not exceed the number of
licensed developers at the time of license purchase. client IO must be informed in
writing of the transfer. Except as provided in the License Agreement, you may not
transfer, rent, lease, lend, copy, modify, translate, sublicense, time-share or
vi
Preface
vii
Preface
reasonable steps at a system level to mitigate those risks. client IO warrants that the
Software does not infringe any patent, copyright or design secret of any third party.
client IO is not aware of any facts upon which such a claim for infringement could be
based. TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, CLIENT IO
AND ITS SUPPLIERS DISCLAIM ALL OTHER WARRANTIES AND CONDITIONS,
EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, IMPLIED
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE,
TITLE, AND NON-INFRINGEMENT, WITH REGARD TO THE SOFTWARE, AND THE
PROVISION OF OR FAILURE TO PROVIDE SUPPORT SERVICES. THIS LIMITED
WARRANTY GIVES YOU SPECIFIC LEGAL RIGHTS. YOU MAY HAVE OTHERS,
WHICH VARY FROM STATE/JURISDICTION TO STATE/JURISDICTION.
LIMITATION OF LIABILITY TO THE MAXIMUM EXTENT PERMITTED BY
APPLICABLE LAW, IN NO EVENT SHALL CLIENT IO OR ITS SUPPLIERS BE
LIABLE FOR ANY SPECIAL, INCIDENTAL, INDIRECT, OR CONSEQUENTIAL
DAMAGES WHATSOEVER (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR
LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION, LOSS OF BUSINESS
INFORMATION, OR ANY OTHER PECUNIARY LOSS) ARISING OUT OF THE USE
OF OR INABILITY TO USE THE SOFTWARE PRODUCT OR THE PROVISION OF
OR FAILURE TO PROVIDE SUPPORT SERVICES, EVEN IF CLIENT IO HAS BEEN
ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. BECAUSE SOME STATES
AND JURISDICTIONS DO NOT ALLOW THE EXCLUSION OR LIMITATION OF
LIABILITY, THE ABOVE LIMITATION MAY NOT APPLY TO YOU.
General Provisions This License Agreement may only be modified in writing signed by
you and client IO. If any provision of this License Agreement is found void or
unenforceable, the remainder will remain valid and enforceable according to its terms.
If any remedy provided is determined to have failed for its essential purpose, all
limitations of liability and exclusions of damages set forth in the Limited Warranty shall
remain in effect. Governing Law and Jurisdiction This Agreement shall be subject to
and governed by the Law of The Netherlands. Any dispute arising out of or in
connection with this Agreement shall be exclusively dealt with by the courts of The
Netherlands. This License Agreement gives you specific legal rights; you may have
others which vary from state to state and from country to country. client IO reserves all
rights not specifically granted in this License Agreement.
CodeMirror 5.47.0
CodeMirror is an open-source project shared under an MIT license. MIT License
Copyright (C) 2017 by Marijn Haverbeke <[email protected]> and others
Permission is hereby granted, free of charge, to any person obtaining a copy of this
software and associated documentation files (the "Software"), to deal in the Software
without restriction, including without limitation the rights to use, copy, modify, merge,
publish, distribute, sublicense, and/or sell copies of the Software, and to permit
persons to whom the Software is furnished to do so, subject to the following
conditions:
The above copyright notice and this permission notice shall be included in all copies or
substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
viii
Preface
Dexie.js 2.0.4
Dexie.js is licensed under the Apache License 2.0.
Apache License Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions. "License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner
that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all other entities that
control, are controlled by, or are under common control with that entity. For the
purposes of this definition, "control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or otherwise, or (ii)
ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial
ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions
granted by this License.
"Source" form shall mean the preferred form for making modifications, including but
not limited to software source code, documentation source, and configuration files.
"Object" form shall mean any form resulting from mechanical transformation or
translation of a Source form, including but not limited to compiled object code,
generated documentation, and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or Object form, made
available under the License, as indicated by a copyright notice that is included in or
attached to the work (an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object form, that is
based on (or derived from) the Work and for which the editorial revisions, annotations,
elaborations, or other modifications represent, as a whole, an original work of
authorship. For the purposes of this License, Derivative Works shall not include works
that remain separable from, or merely link (or bind by name) to the interfaces of, the
Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including the original version of the
Work and any modifications or additions to that Work or Derivative Works thereof, that
is intentionally submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of the copyright
owner. For the purposes of this definition, "submitted" means any form of electronic,
verbal, or written communication sent to the Licensor or its representatives, including
but not limited to communication on electronic mailing lists, source code control
systems, and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but excluding
communication that is conspicuously marked or otherwise designated in writing by the
copyright owner as "Not a Contribution."
ix
Preface
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom
a Contribution has been received by Licensor and subsequently incorporated within
the Work.
2. Grant of Copyright License. Subject to the terms and conditions of this License,
each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-
charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative
Works of, publicly display, publicly perform, sublicense, and distribute the Work and
such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of this License, each
Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge,
royalty-free, irrevocable (except as stated in this section) patent license to make, have
made, use, offer to sell, sell, import, and otherwise transfer the Work, where such
license applies only to those patent claims licensable by such Contributor that are
necessarily infringed by their Contribution(s) alone or by combination of their
Contribution(s) with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a cross-claim or counterclaim in a
lawsuit) alleging that the Work or a Contribution incorporated within the Work
constitutes direct or contributory patent infringement, then any patent licenses granted
to You under this License for that Work shall terminate as of the date such litigation is
filed.
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative
Works thereof in any medium, with or without modifications, and in Source or Object
form, provided that You meet the following conditions:
(a) You must give any other recipients of the Work or Derivative Works a copy of this
License; and
(b) You must cause any modified files to carry prominent notices stating that You
changed the files; and
(c) You must retain, in the Source form of any Derivative Works that You distribute, all
copyright, patent, trademark, and attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its distribution, then any
Derivative Works that You distribute must include a readable copy of the attribution
notices contained within such NOTICE file, excluding those notices that do not pertain
to any part of the Derivative Works, in at least one of the following places: within a
NOTICE text file distributed as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or, within a display
generated by the Derivative Works, if and wherever such third-party notices normally
appear. The contents of the NOTICE file are for informational purposes only and do
not modify the License. You may add Your own attribution notices within Derivative
Works that You distribute, alongside or as an addendum to the NOTICE text from the
Work, provided that such additional attribution notices cannot be construed as
modifying the License.
You may add Your own copyright statement to Your modifications and may provide
additional or different license terms and conditions for use, reproduction, or distribution
of Your modifications, or for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with the conditions
stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution
intentionally submitted for inclusion in the Work\ by You to the Licensor shall be under
x
Preface
the terms and conditions of this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify the terms of any
separate license agreement you may have executed with Licensor regarding such
Contributions.
6. Trademarks. This License does not grant permission to use the trade names,
trademarks, service marks, or product names of the Licensor, except as required for
reasonable and customary use in describing the origin of the Work and reproducing
the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing,
Licensor provides the Work (and each Contributor provides its Contributions) on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
express or implied, including, without limitation, any warranties or conditions of TITLE,
NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR
PURPOSE. You are solely responsible for determining the appropriateness of using or
redistributing the Work and assume any risks associated with Your exercise of
permissions under this License.
8. Limitation of Liability. In no event and under no legal theory, whether in tort
(including negligence), contract, or otherwise, unless required by applicable law (such
as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor
be liable to You for damages, including any direct, indirect, special, incidental, or
consequential damages of any character arising as a result of this License or out of
the use or inability to use the Work (including but not limited to damages for loss of
goodwill, work stoppage, computer failure or malfunction, or any and all other
commercial damages or losses), even if such Contributor has been advised of the
possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing the Work or
Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance
of support, warranty, indemnity, or other liability obligations and/or rights consistent
with this License. However, in accepting such obligations, You may act only on Your
own behalf and on Your sole responsibility, not on behalf of any other Contributor, and
only if You agree to indemnify, defend, and hold each Contributor harmless for any
liability incurred by, or claims asserted against, such Contributor by reason of your
accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
Hopscotch 0.3.1
Apache License Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions. "License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner
that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all other entities that
control, are controlled by, or are under common control with that entity. For the
purposes of this definition, "control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or otherwise, or (ii)
xi
Preface
ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial
ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions
granted by this License.
"Source" form shall mean the preferred form for making modifications, including but
not limited to software source code, documentation source, and configuration files.
"Object" form shall mean any form resulting from mechanical transformation or
translation of a Source form, including but not limited to compiled object code,
generated documentation, and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or Object form, made
available under the License, as indicated by a copyright notice that is included in or
attached to the work (an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object form, that is
based on (or derived from) the Work and for which the editorial revisions, annotations,
elaborations, or other modifications represent, as a whole, an original work of
authorship. For the purposes of this License, Derivative Works shall not include works
that remain separable from, or merely link (or bind by name) to the interfaces of, the
Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including the original version of the
Work and any modifications or additions to that Work or Derivative Works thereof, that
is intentionally submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of the copyright
owner. For the purposes of this definition, "submitted" means any form of electronic,
verbal, or written communication sent to the Licensor or its representatives, including
but not limited to communication on electronic mailing lists, source code control
systems, and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but excluding
communication that is conspicuously marked or otherwise designated in writing by the
copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom
a Contribution has been received by Licensor and subsequently incorporated within
the Work.
2. Grant of Copyright License. Subject to the terms and conditions of this License,
each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-
charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative
Works of, publicly display, publicly perform, sublicense, and distribute the Work and
such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of this License, each
Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge,
royalty-free, irrevocable (except as stated in this section) patent license to make, have
made, use, offer to sell, sell, import, and otherwise transfer the Work, where such
license applies only to those patent claims licensable by such Contributor that are
necessarily infringed by their Contribution(s) alone or by combination of their
Contribution(s) with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a cross-claim or counterclaim in a
lawsuit) alleging that the Work or a Contribution incorporated within the Work
constitutes direct or contributory patent infringement, then any patent licenses granted
to You under this License for that Work shall terminate as of the date such litigation is
filed.
xii
Preface
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative
Works thereof in any medium, with or without modifications, and in Source or Object
form, provided that You meet the following conditions:
(a) You must give any other recipients of the Work or Derivative Works a copy of this
License; and
(b) You must cause any modified files to carry prominent notices stating that You
changed the files; and
(c) You must retain, in the Source form of any Derivative Works that You distribute, all
copyright, patent, trademark, and attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its distribution, then any
Derivative Works that You distribute must include a readable copy of the attribution
notices contained within such NOTICE file, excluding those notices that do not pertain
to any part of the Derivative Works, in at least one of the following places: within a
NOTICE text file distributed as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or, within a display
generated by the Derivative Works, if and wherever such third-party notices normally
appear. The contents of the NOTICE file are for informational purposes only and do
not modify the License. You may add Your own attribution notices within Derivative
Works that You distribute, alongside or as an addendum to the NOTICE text from the
Work, provided that such additional attribution notices cannot be construed as
modifying the License.
You may add Your own copyright statement to Your modifications and may provide
additional or different license terms and conditions for use, reproduction, or distribution
of Your modifications, or for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with the conditions
stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution
intentionally submitted for inclusion in the Work\ by You to the Licensor shall be under
the terms and conditions of this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify the terms of any
separate license agreement you may have executed with Licensor regarding such
Contributions.
6. Trademarks. This License does not grant permission to use the trade names,
trademarks, service marks, or product names of the Licensor, except as required for
reasonable and customary use in describing the origin of the Work and reproducing
the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing,
Licensor provides the Work (and each Contributor provides its Contributions) on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
express or implied, including, without limitation, any warranties or conditions of TITLE,
NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR
PURPOSE. You are solely responsible for determining the appropriateness of using or
redistributing the Work and assume any risks associated with Your exercise of
permissions under this License.
8. Limitation of Liability. In no event and under no legal theory, whether in tort
(including negligence), contract, or otherwise, unless required by applicable law (such
as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor
be liable to You for damages, including any direct, indirect, special, incidental, or
xiii
Preface
xiv
1
About Oracle SQL Developer Web
Oracle SQL Developer Web is a browser-based application that uses ORDS (Oracle
REST Data Services) to provide many of the database development and
administration features of desktop-based Oracle SQL Developer.
Note:
Some features of Oracle SQL Developer Web are only available if you sign
in as a user with the DBA role. For such features, a "restricted availability"
statement appears at the start of the feature description; for example:
Available only if you signed in as a database user with the DBA role.
The main features include running SQL statements and scripts in the worksheet,
exporting data, creating Data Modeler diagrams for existing schemas, and enabling
database administrators to monitor the database.
For a complete integrated development environment, see Oracle SQL Developer.
Header
The header contains the selector icon, the main menu, the help icon, and the user
drop-down list.
• Selector Icon
Click the selector icon to switch between the Dashboard and the SQL
Developer headers and to access the Admin menu.
1-1
Chapter 1
About the SQL Developer Web User Interface
• Main Menu
The main menu lists the pages available. The Dashboard is a single page and so
has no main menu. The SQL Developer header's main menu has the following
tabs:
– Home: Displays widgets that provide a general overview of the activity and
status in SQL Developer Web. See The Home Page.
– Activity: Provides several pages to view the performance and other
characteristics of your database. See The Activity Pages.
– Worksheet: Enables you to enter and execute SQL and PL/SQL commands.
See The Worksheet Page.
– Data Modeler: Enables you to create diagrams from existing database
schemas, generate DDL statements, and create reports. See The Data
Modeler Page.
• Help Icon
Click the help icon to open the contextual or online help for the page you are
viewing.
• User Drop-Down List
The user drop-down list shows the database user you are signed in as, and
provides the following items when you open it:
– Preferences: Opens a dialog that lets you set your preferred time zone and
user interface language. The languages available are English, German,
Spanish, French, Italian, Japanese, Koren, Portuguese, and Chinese.
– Log: Opens a dialog that shows the list of HTTP calls made during your SQL
Developer Web session.
– About: Opens a dialog providing version information for the database and
other components as well as copyright and licensing information.
– Sign Out: Signs you out of your database session.
Status Bar
The status bar contains icons that link to log files. The three icons (Errors, Warnings,
Processes) are filters that have been applied to the log file.
Errors, Warnings: Displays an Errors or Warnings dialog, which lists log entries from
unsuccessful REST calls or from any other problem in the application.
1-2
Chapter 1
Accessing Oracle SQL Developer Web
Processes: Displays a Processes dialog, which logs REST calls that are either
finished or ongoing.
Log notification link: Displays a Log dialog, containing log entries of the following
types: Errors, Warnings, Processes, SQL History and SQL Result.
BEGIN
ords_admin.enable_schema(
p_enabled => TRUE,
p_schema => 'schema-name',
p_url_mapping_type => 'BASE_PATH',
p_url_mapping_pattern => 'schema-alias',
p_auto_rest_auth => TRUE
);
commit;
END;
where:
• schema-name is the database schema name in all-uppercase.
• schema-alias is an alias for the schema name that will appear in the URL the
user will use to access SQL Developer Web. Oracle recommends that you do
not use the schema name itself as a security measure to keep the schema
name from being exposed.
• p_auto_rest_auth specifies that the REST /metadata-catalog/ endpoint
requires authorization. REST uses the metadata-catalog to get a list of
published services on the schema.
3. In the SQL Developer Web login page (http://domain name/ords/sql-
developer), enter the name of the user and click Next.
1-3
Chapter 1
Accessing Oracle SQL Developer Web
You see the URL change to /ords/<Username>. Enter the password, and click
Sign in. If the enabled schema has the DBA role, the Dashboard page is
displayed. Otherwise, the SQL Developer Home page is displayed.
When you log out, you return to the login page (http://domain name/ords/sql-
developer) and are prompted for the user name again.
To go to the SQL Developer Web Home page from the Dashboard, click the Selector
icon at the top left of the screen, and then click SQL Developer. Alternatively, you
can directly access the SQL Developer Web features by clicking the relevant icon in
the Dashboard Quick Links box.
1-4
2
The Dashboard
Available only if you signed in as a database user with the DBA role.
The Dashboard displays general status information about the database and provides
quick links to commonly used pages.
• Database Status: Displays the overall status of the database.
• Alerts: Displays the number of Error alerts in the alert log. You can click this item
to open the Alerts page.
• Database Storage: Displays how much storage is being used by the database.
You can click this item to open the Storage page.
• Sessions: Displays the status of open sessions in the database. You can click the
title to open the Sessions page.
• Physical IO Panel: Displays the rates of physical reads and writes of database
data.
• Waits: Displays how many wait events are occurring in the database by wait event
class. When you click the title:
– For Oracle Database 19c and later releases, the Performance Hub page is
displayed.
– For Oracle Database 18c and previous releases, the Activity-Waits page is
displayed.
• Quick Links: Provides buttons to open the Worksheet, Data Modeler, and
Performance Hub or Activity-SQL Monitor pages. It also provides a button to open
the Oracle Application Express sign-in page for the current database.
2-1
3
The Home Page
The Home page contains widgets that provide a general overview of the activity and
status in SQL Developer Web.
• My Worksheets: Displays your saved worksheets. You can click the name of the
worksheet to open it in the Worksheet page.
• My Diagrams: Displays the Data Modeler diagrams that have been saved. You
can click the name of the diagram to open it in the Data Modeler page.
• Recently Modified Objects: Displays a timeline of the created, modified, and
dropped objects in the database. You can zoom in and out using the + and –
icons. You can also move horizontally by dragging the cursor to the right or left.
• Invalid Objects: Displays the invalid objects in your schema.
• Table Stats Freshness: Displays the time period since the tables were last
analyzed.
You can right-click the header in Invalid Objects, Table Stats Freshness, My
Worksheets, or My Diagrams to manage or sort columns:
• Columns: Enables you to select columns to show or hide.
• Sort: Displays a dialog box for selecting columns to sort by. For each column, you
can specify ascending or descending order, and you can specify that null values
be displayed first.
Right-click the body of the display table to count rows or to view records:
• Count Rows: Displays the number of rows in the table.
• Single Record View: Enables you to view data for a table or view, one record at a
time.
3-1
4
The Activity Pages
Available only if you signed in as a database user with the DBA role.
The Activity menu on the SQL Developer Web header provides access to several
pages to view the performance and other characteristics of your database.
• The Activity Overview Page
• The Alerts Page
• The Logins Page
• The Parameters Page
• The Performance Hub Page
• The Real Time SQL Monitoring Page
• The Sessions Page
• The Storage Page
• The Top SQL Page
• The Waits Page
4-1
Chapter 4
The Alerts Page
• Users: Displays how many user accounts are in the open, locked and expired
statuses. You can hover over a status to see a list of the user accounts with that
status.
– Open: This status indicates that the user’s account is unlocked and access to
the database is enabled.
– Locked: This status indicates that the user’s account is locked and access to
the database is disabled. The account must be unlocked to enable access to
the database.
– Expired: This status indicates that the user’s password has expired and must
be changed before the user can log in to the database.
• Alerts: Displays a summary of alerts over the last 7 days. You can click the title to
open The Alerts Page
• Expiring Passwords: Shows a list of user accounts and whether a user account
password has expired or the number of days before it will expire.
4-2
Chapter 4
The Logins Page
Click a tab in Last Hour Statistics to view the corresponding entries in the table below.
You can search for results in the table by entering values in the Column, Operator and
Value fields and clicking the Filter icon. You can also filter by selecting one or more of
the available filter options for each action.
4-3
Chapter 4
The Parameters Page
To return to the previous page, close all the filters or refresh the browser.
4-4
Chapter 4
The Performance Hub Page
Note:
The Performance Hub page is available in the following user interface
languages: French, Japanese, Korean, Traditional Chinese, and Simplified
Chinese. If you change the language to German, Spanish, Italian, or
Portuguese in Preferences, the Performance Hub page reverts to English.
The Performance Hub page shows performance data for a time period you specify. It
consists of these parts:
• Time Range Area. Use the controls in time range area at the top of the page to
specify the time period for which you want to view performance data.
• ASH Analytics Tab. Use this tab to explore ASH (Active Session History)
information across a variety of different dimensions for the specified time period.
• SQL Monitoring Tab. Use this tab to view the top 100 SQL statement executions
by different dimensions for the specified time period, and to view details of SQL
statement executions you select.
4-5
Chapter 4
The Real Time SQL Monitoring Page
You can download an AWR (Automatic Workload Repository) report for the current
time period by right-clicking in the Average Active Sessions chart area and
choosing Generate AWR Report.
For more information about ASH and AWR, see Active Session History (ASH) and
Automatic Workload Repository (AWR) in Oracle Database Concepts.
• Secondary Tables. The two tables below the Average Active Sessions chart
show the information dimension chosen in the chart filtered by another dimension
you choose. For example, if the Average Active Sessions chart is showing Wait
Class, you could show SQL ID and User Session dimension information by Wait
Class, one in each of the two secondary tables.
In the secondary tables, the SQL ID and User Session dimensions provide links to
SQL Details and Session Details pages, respectively, for the dimension data listed
in the table.
4-6
Chapter 4
The Real Time SQL Monitoring Page
4-7
Chapter 4
The Real Time SQL Monitoring Page
General statistics of the SQL statement are provided: total duration of execution, the
number of buffered gets, number of Input/Output requests and bytes.
Detailed information of the statement: This space holds the information
corresponding to the explain plan, parallel behavior and CPU activity involved in the
execution of the statement:
• Plan Statistics: Explain plan of the execution of the SQL statement in the form of
a table. Each row is a different operation involved in the execution of the SQL
statement and it shows hierarchy dependency by adding a space at the beginning
of the text in the Operation column.
• Parallelism Details for the SQL statement: Each execution consists of a parallel
coordinator and one or more parallel sets. Each set can have one or more
processes. When a row has dependents, each of its columns will be the sum of
the values of its dependants. When this happens, a sigma symbol will appear to
show that a value consists of the sum of others.
Note:
For more information, see "Monitoring the Database" in the Oracle Database
Administrator’s Guide.
4-8
Chapter 4
The Sessions Page
4-9
Chapter 4
The Top SQL Page
For example, you can search for all the segments for a specific owner (schema) by
selecting OWNER from the first drop-down list, entering the owner (schema) name
in the box, and clicking the search icon.
4-10
Chapter 4
The Waits Page
When you place the cursor over data points in the chart, a pop-up box displays details
about the wait event.
4-11
5
The User Management Page
Available only if you signed in as a database user with the DBA, PDB_DBA,
CONNECT, and RESOURCE roles granted as DEFAULT roles.
The User Management page enables you to perform user management tasks such as
create, edit, enable REST, and delete users.
To access the User Management page, click on the top left of the application. In
the left pane, select Admin, and then select User Management.
The User Management page consists of two parts: Current User and All Users
Current User
Displays information about the current user such as user name, whether REST
Enabled or not, REST Alias, account expiration (in days), and the last login date and
time. The icon on the left displays the user status with one of the following colours:
green (Open), blue (Locked), and red (Expired).
The URL at the bottom is displayed only if the user is REST Enabled. It provides the
URL to the SQL Developer Web user login page. Use the Copy to Clipboard icon to
copy the URL to the user's clipboard.
Click to open the context menu. The actions available are the following:
• Edit: Opens the Edit User Dialog, where you can edit current user information.
See The Create/Edit User Dialog.
• Enable REST: Enables REST for a user where disabled. When this option is
selected the first time, it opens the Enable REST dialog. See The REST Enable
User Dialog.
• Disable REST: Disables REST where enabled for a user.
• Drop REST Services: Removes the REST data for a user, such as REST Alias,
Base Path and so on, which is stored in Oracle REST Data Services (ORDS).
• Delete: Opens the Delete User dialog, where you can delete the user. See The
Delete User Dialog.
5-1
Chapter 5
The Create/Edit User Dialog
All Users
Displays information about all other users that have been created in the database. You
can use the Search field, which is case insensitive, to search for users or sort the
users in ascending or descending order using the sort icons.
To create a user, click Create User to open the Create User dialog. For more
information, see The Create/Edit User Dialog.
There are two views available using the following icons:
(Card View): Displays the user information in a card view. This is the default
display view. Each user card provides details such as user status, password expiry,
user name and the context menu.
(Grid View): Displays the user information in a tabular format. The last column in
each row contains the context menu icon.
5-2
Chapter 5
The REST Enable User Dialog
• Account is Locked: If this option is selected, the user will not be permitted to
connect to the database until a DBA user unlocks the account associated with this
user.
• REST Enable: If this option is selected, the user is enabled for REST. Enter the
related fields: Alias, URL Mapping Type and Authorization required. These options
are also available in the REST Enable dialog.
Granted Roles Tab
Specifies roles to be granted to the user. For each role, you can check Granted to
grant the role, Admin to permit the user to grant the role to other users, and Default to
use the default settings for Granted and Admin. By default, a new user is granted
CONNECT and RESOURCE roles as Default roles.
Note:
If you do not select this option when deleting a user, the next time you
create a user with the same user name, it will still retain the REST-
enabled property.
5-3
6
The Worksheet Page
The Worksheet page provides a code editor that is used to enter and execute SQL
and PL/SQL statements.
You can use SQL and PL/SQL statements in the worksheet to create a table, insert
data, create and edit a trigger, select data from a table, and save that data to a file.
Some other features are syntax highlighting and error detection.
Database administrators can also access the worksheet from the Quick Links pane in
Dashboard.
The Worksheet page consists of the left pane for navigating worksheets and objects,
the editor for executing SQL statements, and the output pane for viewing the results.
These panes are described in the following sections:
• Navigating Objects and Worksheets
• Executing SQL Statements in the Worksheet Editor
– Shortcut Keys in the Worksheet
• Viewing the Worksheet Output
• Loading Data from a Local File to an Existing Table
• Loading Data from a Local File to a New Table
To refresh the objects or worksheets list, click the icon. To create a new object,
click the icon.
6-1
Chapter 6
Executing SQL Statements in the Worksheet Editor
You can drag objects from the Navigator and drop them into the worksheet editor in
the right pane:
• If you drag and drop a table or view, you are prompted to select one of the
following SQL statements: Insert, Update, Select, or Delete. For example, if you
choose Select, a Select statement is constructed with all columns in the table or
view. You can then edit the statement, for example, modifying the column list or
adding a WHERE clause.
If you choose Object Name, the name of the object prefixed by the schema name
is added to the worksheet.
• If you drag and drop a function or procedure, you can choose to insert the name or
the PL/SQL code of the function or procedure in the worksheet. If you select the
PL/SQL code, you can enter the parameters before inserting the code into the
worksheet.
An error in the code is signified by a red dot or squiggle line. When you hover over it,
you see a pop-up displaying possible fixes for resolving the error.
6-2
Chapter 6
Executing SQL Statements in the Worksheet Editor
The SQL Worksheet toolbar contains icons for the following operations:
• Worksheet enables you to create a worksheet, open or delete an existing
worksheet, and save a worksheet.
Note:
The worksheets are saved in the browser. Therefore, if you do sensitive
work on a computer in a public network, remember to clear the browser
cache before you leave. Additionally, the saved worksheets will only be
displayed in the browser that was used at the time of creating the
worksheet.
• Run Statement executes the selected statements or the statement at the mouse
pointer in the worksheet editor. The SQL statements can include bind variables
and substitution variables of type VARCHAR2 (although in most cases,
VARCHAR2 is automatically converted internally to NUMBER if necessary). A
dialog box is displayed for entering variable values.
• Run Script executes all statements in the worksheet editor using the Script
Runner. The SQL statements can include bind variables (but not substitution
variables) of type VARCHAR2 (although in most cases, VARCHAR2 is
automatically converted internally to NUMBER if necessary). A dialog box is
displayed for entering bind variable values.
• Explain Plan generates the execution plan for the statement (internally executing
the EXPLAIN PLAN statement). The execution plan is automatically displayed in
the Explain Plan tab in the worksheet output pane.
• Autotrace runs the statement and collects runtime statistics and the actual
execution plan. The Autotrace output is displayed in the Autotrace tab in the
worksheet output pane. Currently, there are no preferences available.
• Download Editor Content downloads the content of the worksheet as a SQL file
to the local system.
• Format formats the SQL statement in the editor, such as capitalizing the names of
statements, clauses, keywords, and adding line breaks and indentation.
• Clear removes the statements from the editor.
6-3
Chapter 6
Viewing the Worksheet Output
• Tour provides a guided tour of the worksheet highlighting salient features and
providing information that is useful if you are new to the interface.
• Help provides context-related help and provides a link to the help documentation.
For a list of shortcuts used in the worksheet, see Shortcut Keys in the Worksheet.
Related Topics
• Execution Plan in Oracle SQL Developer User's Guide
• Autotrace Pane in Oracle SQL Developer User's Guide
Shortcut Action
Ctrl+Enter/ Runs the code as query.
Cmd+Enter
Ctrl+Down Moves to the next SQL code from history.
Arrow/ Cmd
+Down Arrow
Ctrl+Up Moves to the previous SQL code from history.
Arrow/ Cmd
+Up Arrow
Ctrl+D/ Cmd Clears the editor.
+D
Ctrl+S/ Cmd Saves the current worksheet.
+S
Ctrl+O/ Cmd Opens the worksheet browser dialog.
+O
Ctrl+I/ Cmd+I Downloads the content of the editor.
F1 Opens the help topic.
F5 Runs code as script.
F6 Shows Autotrace.
F10 Shows Explain Plan.
Ctrl+F7/ Cmd Formats code in the editor.
+F7
Ctrl+Space/ Autocompletes code (shows hints).
Cmd+Space
Windows Focuses outside the editor and navigates to the rest of the application using
+Esc/ Cmd the Tab key.
+Esc
6-4
Chapter 6
Viewing the Worksheet Output
• Query Result: Displays the results of the most recent Run Statement operation in
a display table.
• Script Output: Displays the text output from your statements executed as a script
using SQL Developer Web's script engine.
• DBMS Output: Displays the output of DBMS_OUTPUT package statements.
• Explain Plan: Displays the plan for your query using the Explain Plan command.
• Autotrace: Displays the session statistics and execution plan from v$sql_plan
when executing a SQL statement using the Autotrace feature. Displays the output
if you clicked the Autotrace icon.
• SQL History: Displays the SQL statements and scripts that you have executed.
To re-enter a previously executed query in the worksheet, double-click the query in
the history list. You can search for specific statements by clicking the Search icon.
The Search functionality is case-sensitive, retrieves all entries that contain the
search text, and does not require wildcard characters.
The icons in this pane are:
• Clear output: Clears the output.
• Show info: Displays the SQL statement for which the output is displayed.
• Open in new tab: Opens the query result or explain plan in a new window.
• Download: This is applicable only for Query Result. Enables you to download the
query result to your local computer in CSV, JSON, XML, or TEXT (.tsv) format.
In the Query Result tab, in the display table, the context menu (right-click) for the row
header consists of the following:
• Columns enables you to select columns to hide.
• Sort displays a dialog box for selecting columns to sort by. For each column, you
can specify ascending or descending order, and you can specify that null values
be displayed first.
The context menu for the rest of the display table consists of the following commands:
• Count Rows displays the number of rows in the result set for your query.
• Single Record View enables you to view data for a table or view, one record at a
time.
• Export generates the file for download based on the format selected, which can
be XML, CSV (comma-separated values including a header row for column
identifiers), Insert , Delimited, Fixed, HTML, JSON, or TEXT.
Note:
If a popup blocker is enabled, it will prevent the file from downloading.
6-5
Chapter 6
Loading Data from a Local File to an Existing Table
Related Topics
• DBMS Output Pane in Oracle SQL Developer User's Guide
• Execution Plan in Oracle SQL Developer User's Guide
• Autotrace Pane in Oracle SQL Developer User's Guide
3. Click the (Show/Hide options) icon to display options that you can modify
for data preview:
• Column names: Select First row to display column headers in the first row.
• Text enclosure: This option is visible only when the selected file is in a plain
text format (CSV, TSV, or TXT). Select the appropriate separator to part the
data in the file.
• Rows to skip: Use the up and down arrows to select the number of rows to
skip.
• Rows to load: Use the up and down arrows to select the number of rows to
load.
• Preview size: Use the up and down arrows to select the number of rows to
preview.
To remove the options selected and the data preview, click Clear.
After selecting the required options, click Apply, and then click Next.
4. In Data mapping, match the data in the file to the appropriate columns in the target
table. By default, SQL Developer Web will match using the column name.
6-6
Chapter 6
Loading Data from a Local File to a New Table
Note:
SQL Developer Web will attempt to retrieve the correct format mask of
date-based columns based on the data in the file, but it will still enable
you to change the suggested format by entering the required format
directly in the target column.
• In the Navigator tab, in the left pane, click , select Data Loading, and then
select Upload Data into New Table.
• In the Navigator tab, drag and drop the local file into the left pane. When you
drag a file into the pane, the following message is displayed Drop the file
here to start.
6-7
Chapter 6
Loading Data from a Local File to a New Table
• In the worksheet result pane, select the Data Loading tab and drag and drop
the local file into the output pane.
The Upload Data into New Table is displayed. A preview of the data is displayed in
a grid format.
2. Click to display options that you can modify for data preview:
• Column names: Select First row to display column headers in the first row.
• Text enclosure: This option is visible only when the selected file is in a plain
text format (CSV, TSV, or TXT). Select the appropriate separator to part the
data in the file.
• Rows to skip: Use the up and down arrows to select the number of rows to
skip.
• Preview size: Use the up and down arrows to select the number of rows to
preview.
• Limit rows to upload: If you select this option, you need to specify the rows
to load. Use the up and down arrows to select the number of rows to load.
To remove the options selected and the data preview, click Clear.
After selecting the required options, click Apply, and then click Next.
3. In Table Definition, do the following:
• In the Table Name field, enter a name for the target table.
• Select the check box at the beginning of a row to add the column to the target
table.
• Select or enter the column attributes such as Column Name, Column Type,
Precision, Scale, Default, Primary Key and Nullable.
• The Format Mask column appears for DATE and TIMESTAMP type data.
Along with selecting any value from the drop-down list, you can also type a
format that you want in the Format Mask field.
For a date and timestamp column, you need to supply a compatible format
mask that describes the data being uploaded. SQL Developer Web will try to
determine this automatically, but you need to review and modify it
appropriately. For example, if the date data looks like 12-FEB-2021 12.21.30,
you need to supply a date mask of DD-MON-YYYY HH.MI.SS.
6-8
Chapter 6
Loading Data from a Local File to a New Table
Figure 6-2 Table Definition Step in Upload Data into New Table
Click Next.
4. Review the generated DDL code based on the selections made in the previous
screens. The mapping of the source to target columns are also displayed.
Click Finish. After the data is successfully uploaded, the new table is displayed in
the Navigator pane.
5. For a detailed report of the total and failed rows uploaded, do one of the following:
• Right-click the table in the Navigator tab, select Data Loading, and then select
History. This displays the report for a specific table.
• In the Navigator pane, select , select Data Loading, and then select
History. This displays the report for all tables in the schema that is currently
selected in the object Navigator.
• In the worksheet result pane, select the Data Loading tab. This displays the
report for all visible tables by the current user (including tables from other
schemas).
A summary of the data loaded is displayed in the History dialog. If any data failed
to load, you can view the number of rows in the Failed Rows column. Click the
failed rows number and a dialog is displayed showing the failed rows. In the
History dialog, you can also search for files loaded by schema name, table name,
or file name. To remove the loaded files, click the Delete icon.
6-9
7
The Data Modeler Page
The Data Modeler page provides an integrated version of Oracle SQL Developer Data
Modeler with basic reporting features. You can create diagrams from existing
schemas, retrieve data dictionary information, generate DDL statements, and export
diagrams.
Note:
You can create and edit objects for your schema in the Data Modeler
interface.
• To create a new diagram, in the Diagrams tab, click the icon next to the Search
field.
• To open an existing diagram, in the Diagrams tab, select or right-click the diagram,
and then click Open.
Note:
Diagrams are stored in the database, in the SQL Developer Web user
schema. When you use Data Modeler for the first time, a OSDDMW_DIAGRAMS
table is created in your schema, to store the diagrams.
Oracle SQL Developer Data Modeler can import from or export to the
OSDDMW_DIAGRAMS table if a connection is provided. For more
information, see Sharing Diagrams with SQL Developer Data Modeler.
The Navigator tab lists the objects that are available for each schema. You can select
the schema and object type from the drop-down lists. For a particular schema, if a
7-1
Chapter 7
About the Data Modeling Editor
tables object is selected, the left pane displays all the tables that belong to the
particular schema. You can expand a table to view its columns. You can drag and drop
an object into a selected diagram in the right pane. You can also add objects to the
diagram by clicking the Add Objects to Diagram icon in the editor pane.
You can also search the contents of a saved diagram or search for objects in the
Navigator tab by name. The search functionality is not case-sensitive, retrieves all
matching entries and does not require the use of wildcard characters.
The context menu for a table or view consists of:
Add Object to Diagram: Adds the selected object to the selected diagram.
Add Object with dependencies to Diagram: Adds parent and child tables related to
the object to the selected diagram.
Add Object as Star Schema to Diagram: Adds the selected object to the diagram
and searches the data dictionary for foreign keys and implied foreign keys related to
the object. The related tables or views are added to the diagram and the star schema
layout is applied. See Implied Foreign Keys
New, Edit, Use as Template: Creates a new object (such as table or view) for a
specific schema, edits an existing object, or creates a new object by using an existing
one for the initial content. See The Table Properties Dialog and The View Properties
Dialog.
Add/Edit Sequence: To create or edit a sequence for a selected schema. See The
Sequence Properties Dialog.
Add Index: To create an index for a table. See The Index Properties Dialog.
7-2
Chapter 7
About the Data Modeling Editor
• Save Diagram: Saves the currently selected diagram. Diagrams are stored in a
table that are created in the schema of the user.
• Print Diagram: Prints the selected diagram.
• Save to SVG: Saves the currently selected diagram to an image file in SVG
format.
• Add Objects to Diagram: A dialog is displayed where you can select one or more
objects from a specific schema into the selected diagram. Type * or a few
characters in the search field to list the objects from the selected schema.
• Add Note: Adds notes to the selected diagram. Select the note to see the
associated properties in the right pane, such as Text and Colors.
– To enter text, expand the TEXT box and type information.
– To select the background, border, or text color for the note, click the box and
select the required color. To revert to the default color, click the Reset icon.
• Delete: Deletes the selected object or objects from the diagram. To select multiple
objects, press the CTRL key and select the objects.
• Zoom In: Displays more detail, and potentially fewer objects, in the currently
selected diagram.
• Zoom Out: Displays less detail, and potentially more objects, in the currently
selected diagram.
• Fit Screen: Makes all relevant objects fit in the window for the currently selected
diagram, adjusting the sizes of shapes and text labels as needed.
• Actual Size: Adjusts the shapes and text labels in the currently selected diagram
to the default sizes.
• Layout: Auto Layout: Rearranges the objects in the diagram to a layout that may
be more meaningful and attractive. If you do not like the rearrangement, you can
restore the previous layout by clicking Undo.
• Layout: Star Layout: Rearranges the objects in the diagram to a star schema
layout, where the fact table is in the center and the associated dimension tables
surround the fact table.
• DDL Preview: Shows the DDL statements that would be generated to create the
object. You can preview the DDL for selected objects by dragging the cursor over
the objects that you want to preview and clicking DDL Preview. You have the
option to save or send the DDL statements to the worksheet. To specify options on
how to generate the DDL, click Options.
• DDL Preview for Current Schema: Shows the DDL statements that would be
generated for the current schema. You can send the DDL statements to the
worksheet. To specify DDL options for the schema, click Options.
• Diagram Report: Generates a report for tables and views in the selected diagram.
• Schema Report: Generates a report for tables and views in the selected schema.
• Help: Displays the help for the Data Modeling editor.
7-3
8
Creating and Editing Database Objects
You can create and edit objects for some object types by using the context menu in
the Navigator tab. If you do not have any existing objects for the object type (such as
tables), you can create objects by using the New Object icon, after first selecting the
object type from the drop-down list. For all objects, the context menu includes Quick
DDL, which saves the DDL statements for creating the object to a worksheet or to a
text file. The various object types and the corresponding options are:
• Tables: Tables are used to hold data. Each table has multiple columns that
describe the attributes of the database entity associated with the table, and each
column has an associated data type.
You can create new tables, edit existing tables, and add indexes by using the
options available in the context menu. Or you can select Use as Template, which
displays the dialog box with information for the selected object filled in. You should
then change the object name and any other aspects of the definition, as needed,
to create a new object of that type. For a description of the fields, see The Table
Properties Dialog.
• Views: Views are virtual tables that select data from one or more underlying
tables. For information about creating and editing a view, see The View Properties
Dialog.
• Indexes: An index contains an entry for each value that appears in the indexed
column of the table and provides direct, fast access to rows. For information about
creating and editing an index for a table, see The Index Properties Dialog.
• Packages, Functions, Procedures: A package contains subprograms, which are
programming objects that can be stored and executed in the database server, and
called from other programming objects or applications. A package can contain
functions or procedures, or both. Select Run from the context menu to insert the
code for a selected function, procedure, or package into the worksheet.
• Triggers: Triggers are stored PL/SQL blocks associated with a table, a schema,
the database, or anonymous PL/SQL blocks or calls to a procedure implemented
in PL/SQL or Java.
• Types: A data type associates a fixed set of properties with the values that can be
used in a column of a table or in an argument of a function or procedure.
• Sequences: Sequences are used to generate unique integers. You can use
sequences to automatically generate primary key values. For information about
creating and editing a sequence, see The Sequence Properties Dialog.
• Materialized View: A materialized view is a database object that contains the
results of a query. The FROM clause of the query can name tables, views, and
other materialized views. For information about creating and editing a materialized
view, see Materialized View.
• Materialized Views Logs: A materialized view log is a table associated with the
master table of a materialized view. When DML changes are made to master table
data, Oracle Database stores rows describing those changes in the materialized
view log and then uses the materialized view log to refresh materialized views
8-1
Chapter 8
The Table Properties Dialog
based on the master table. For information about creating and editing a
materialized view log, see The Materialized View Log Properties Dialog.
• Synonyms, Public Synonyms: Synonyms provide alternative names for tables,
views, sequences, procedures, stored functions, packages, materialized views,
Java class database objects, user-defined object types, or other synonyms. For
information about creating a synonym, see The Synonym Properties Dialog.
• Database Links: A database link is a database object in one database that
enables you to access objects on another database. After you have created a
database link, you can use it to refer to tables and views in the other database.
• In Worksheet, in the Navigator pane, select Tables in the object field, click ,
and select Create Object.
• In Worksheet, right-click a table object in the Navigator tab to add or edit.
• The table options are also available when you right-click a table object in the Data
Modeler Navigator tab.
The table properties are grouped in several panes.
If you are editing an existing table, you can visit the panes in any order. If you click
Create before you are finished creating the table, right-click the table name, select
Edit, and continue creating the table.
Note:
Editing a partitioned table is not recommended. To identify whether a table is
partitioned or not, right-click the table name and select Edit. If the table is
partitioned, a warning message will be displayed.
Schema: Database schema in which to create the table. By default, a new table is
created in the existing schema or the schema that you are logged into.
Name: Name for the table.
The different panes in the dialog are described in the following sections:
• Columns pane
• Primary Key pane
• Unique Keys pane
• Indexes pane
• Foreign Keys pane
• Table Constraints pane
• Comments pane
8-2
Chapter 8
The Table Properties Dialog
• Storage pane
• External Table Properties pane
• Materialized View
• DDL pane
• Output pane
Columns pane
Specifies properties for each column in the table.
General tab
Lists the columns currently in the table. To add a column, click the Add Column (+)
icon, from the table below, select the column whose properties you want to add, and
enter the details for each column. To delete a column, select the row and click the
Remove Column (-) icon; to move a column up or down in the table definition, select it
and use the up-arrrow and down-arrow buttons.
• Name: Name for the column.
• Datatype: Data type for the column.
• Default: If no value is specified, the default value inserted into the column when a
row is inserted.
• Default on NULL: Applicable for Oracle Database 12c and later releases. If this
option is selected, when a row is inserted into the table and the value specified for
the column is NULL, the default value is inserted into the column.
• Expression: Expression for computing the value in the column.
• Comments: Optional descriptive comments about the column. Use this field to
provide descriptions for the attributes.
In the table:
• PK: If this option is selected, the column becomes the primary key.
• Identity Column: If this option is selected, the column becomes an identity
column. This is applicable only for Oracle Database 12c and later releases. For
more details, see the Identity Column tab.
Constraints tab
Displays the Not Null and Check Constraints for a column. A check constraint requires
values in a column to comply with a specified condition.
• Not Null Constraint: Name: Name for the Not Null constraint.
• Not Null Constraint: Not Null: If this option is selected, the column must contain
data. You cannot specify no value or an explicit null value for this column when
you insert a row. If this option is not checked, the column can contain either data
or no data. A primary key column cannot be null.
• Check Constraint: Name: Name for the check constraint definition.
• Check Constraint: Constraint: Condition that must be met for a column to fulfill
the check constraint. You can use any valid CHECK clause (without the CHECK
keyword). For example, to indicate that the value in a numeric column named
RATING must be from 1 to 10, you can specify: rating >=1 and rating <= 10.
8-3
Chapter 8
The Table Properties Dialog
• Enabled: If this option is selected, the constraint is checked when data is entered
or updated in the column.
• Deferrable: If this option is selected, you can defer checking the validity of the
constraint until the end of a transaction.
• Initially Immediate: If this option is selected, the constraint is checked whenever
you add, update, or delete data from the column.
• Validate: If this option is selected, the existing data is checked to see if it conforms
to the constraint.
Identity Column tab
Applicable for Oracle Database 12c and later releases. The Identity Column tab lists
the properties of the identity column. This tab becomes available only after the Identity
Column checkbox is selected for the column in the General tab. An identity column is
an autoincrement column that can be used to identify a table row. Only one identity
column can be specified for a table.
• Generate: Always means that values cannot be explicitly included for the identity
column in INSERT OR UPDATE statements, By Default means values for the
identity column are generated automatically if no values are specified explicitly, By
Default on Null means values are generated for the column only when a NULL
value is supplied.
• Start with: Starting value of the sequence.
• Increment: Interval between successive numbers in a sequence.
• Min value: Lowest possible value for the sequence. The default is 1 for an
ascending sequence and -(10^26) for a descending sequence.
• Max value: Highest possible value for the sequence. The default is 10^27 for an
ascending sequence and -1 for a descending sequence.
• Cache and Cache size: Cache causes sequence values to be preallocated in
cache, which can improve application performance; Cache size indicates the
number of sequence values preallocated in cache. No Cache causes sequence
values not to be preallocated in cache.
• Cycle: Indicates whether the sequence "wraps around" to reuse numbers after
reaching its maximum value (for an ascending sequence) or its minimum value (for
a descending sequence). If cycling of values is not enabled, the sequence cannot
generate more values after reaching its maximum or minimum value.
• Order: Indicates whether sequence numbers are generated in the order in which
they are requested. If No Order is specified, sequence numbers are not
guaranteed to be in the order in which they were requested.
8-4
Chapter 8
The Table Properties Dialog
• Enabled: If this option is checked, the primary key constraint is enforced: that is,
the data in the primary key column (or set of columns) must be unique and not
null.
• Index: Name of the index to which the primary key refers.
• Tablespace: Name of the tablespace associated with the index.
• Available Columns: Lists the columns that are available to be added to the
primary key definition. You can select multiple attributes, if required, for the
primary key.
• Selected Columns: Lists the columns that are included in the primary key
definition.
To add a column to the primary key definition, select it in Available Columns and click
the Add (>) icon; to remove a column from the primary key definition, select it in
Selected Columns and click the Remove (<) icon. To move all columns from available
to selected (or the reverse), use the Add All (>>) or Remove All (<<) icon. To move a
column up or down in the primary key definition, select it in Selected Columns and use
the arrow buttons.
8-5
Chapter 8
The Table Properties Dialog
Indexes pane
Lists the indexes currently defined on the table. To add an index, click the Add Index
(+) icon; to delete an index, select it and click the Remove Index (-) icon.
• Name: Name of the index.
• Type: The type of Oracle index. Non-unique means that the index can contain
multiple identical values; Unique means that no duplicate values are permitted;
Bitmap stores rowids associated with a key value as a bitmap.
• Tablespace: Name of the tablespace for the index.
• Expression: A column expression is an expression built from columns, constants,
SQL functions, and user-defined functions. When you specify a column
expression, you create a function-based index.
• Available Columns and Selected Columns: Columns selected for the index. To
select a column, click the column in the Available Columns box, and then click the
click the Add Selected Columns icon to move it to the Selected Columns box.
8-6
Chapter 8
The Table Properties Dialog
Comments pane
Optional descriptive comments about the table.
Storage pane
Enables you to specify storage options for the table. When you create or edit a table or
an index, you can override the default storage options.
• Organization: Specifies that the table is stored and organized with (Index) or
without an index (Heap) or as an external table (External).
• Tablespace: Name of the tablespace for the table or index.
• Logging: ON means that the table creation and any subsequent INSERT
operations against the table are logged in the redo log file. OFF means that these
operations are not logged in the redo log file.
• Row Archival: YES enables in-database archiving, which allows you to archive
rows within the table by marking them as invisible.
8-7
Chapter 8
The Table Properties Dialog
• Access Params: Assigns values to the parameters of the specific access driver
for the external table. Access parameters are optional.
– OPAQUE_FORMAT_SPEC: The opaque_format_spec specifies all access
parameters for the ORACLE_LOADER, ORACLE_DATAPUMP,
ORACLE_HDFS, and ORACLE_HIVE access drivers. For descriptions of the
access parameters, see Oracle Database Utilities. Field names specified in
the opaque_format_spec must match columns in the table definition, else
Oracle Database ignores them.
– USING CLOB: Enables you to derive the parameters and their values through
a subquery. The subquery cannot contain any set operators or an ORDER BY
clause. It must return one row containing a single item of data type CLOB.
• Reject Limit: The number of conversion errors that can occur during a query of
the external data before an Oracle Database error is returned and the query is
aborted.
• Project Column: Determines how the access driver validates the rows of an
external table in subsequent queries.
– ALL: Processes all column values, regardless of which columns are selected,
and validates only those rows with fully valid column entries. If any column
value raises an error, such as a data type conversion error, the row is rejected
even if that column was not referenced in the select list of the query.
– REFERENCED: Processes only those columns in the select list of the query.
The ALL setting guarantees consistent result sets. The REFERENCED setting can
result in different numbers of rows returned, depending on the columns referenced
in subsequent queries, but is faster than the ALL setting. If a subsequent query
selects all columns of the external table, then the settings behave identically.
• Location: Specifies the data files for the external table. Use the Add (+) icon to
add each location specification.
– For ORACLE_LOADER and ORACLE_DATAPUMP, the files are named in the
form directory:file. The directory portion is optional. If it is missing, then the
default directory is used as the directory for the file. If you are using
the ORACLE_LOADER access driver, then you can use wildcards in the file
name. An asterisk (*) signifies multiple characters and a question mark (?)
signifies a single character.
– For ORACLE_HDFS, LOCATION is a list of Uniform Resource Identifiers
(URIs) for a directory or for a file. There is no directory object associated with
a URI.
– For ORACLE_HIVE, LOCATION is not used. Instead, the Hadoop HCatalog
table is read to obtain information about the location of the data source (which
could be a file or another database).
Opaque Format Spec
Specifies all access parameters for the ORACLE_LOADER, ORACLE_DATAPUMP,
ORACLE_HDFS, and ORACLE_HIVE access drivers.
For example:
8-8
Chapter 8
The Table Properties Dialog
LOGFILE log_file_dir:'ext_1v3.log'
FIELDS TERMINATED BY "|" OPTIONALLY ENCLOSED BY '^' LDRTRIM
( PROD_ID,
CUST_ID ,
TIME_ID DATE(10) "YYYY-MM-DD",
CHANNEL_ID ,
PROMO_ID ,
QUANTITY_SOLD ,
AMOUNT_SOLD ,
UNIT_COST ,
UNIT_PRICE
)
8-9
Chapter 8
The Table Properties Dialog
CLOB Subquery
Type or copy and paste the query.
Note:
For more information about the external table fields, see Oracle Database
Utilities and Oracle Database SQL Language Reference
Materialized View
Query: Contains the SQL code for the query part of the view definition. Type or copy
and paste the query.
General
• On Pre-built Table: If Yes, an existing table is registered as a preinitialized
materialized view. This option is particularly useful for registering large
materialized views in a data warehousing environment. The table must have the
same name and be in the same schema as the resulting materialized view, and
the table should reflect the materialization of a subquery.
• Reduced Precision: Yes authorizes the loss of precision that will result if the
precision of the table or materialized view columns do not exactly match the
precision returned by the subquery. If No , the precision of the table or
materialized view columns must exactly match the precision returned by the
subquery, or the create operation will fail.
• For Update: Select Yes to allow a subquery, primary key, object, or rowid
materialized view to be updated. When used in conjunction with Advanced
Replication, these updates will be propagated to the master.
• Real Time MV: Select Yes to create a real-time materialized view or a regular
view. A real-time materialized view provides fresh data to user queries even when
the materialized view is not in sync with its base tables due to data changes.
Instead of modifying the materialized view, the optimizer writes a query that
combines the existing rows in the materialized view with changes recorded in log
files (either materialized view logs or the direct loader logs). This is called on-query
computation.
• Query Rewrite: If Enable, the materialized view is enabled for query rewrite,
which transforms a user request written in terms of master tables into a
semantically equivalent request that includes one or more materialized views.
• Build: Specifies when to populate the materialized view. Immediate indicates that
the materialized view is to be populated immediately. Deferred indicates that the
materialized view is to be populated by the next refresh operation. If you specify
Deferred, the first (deferred) refresh must always be a complete refresh; until then,
the materialized view has a staleness value of unusable, so it cannot be used for
query rewrite.
• Use Index: If Yes, a default index is created and used to speed up incremental
(fast) refresh of the materialized view. If No, this default index is not created. (For
example, you might choose to suppress the index creation now and to create such
an index explicitly later.)
8-10
Chapter 8
The Table Properties Dialog
8-11
Chapter 8
The Index Properties Dialog
remote rollback segment to be used for the local refresh group that contains the
materialized view. This is the default.
• Rollback Segment: Enter the name of the rollback segment.
• Using Constraint: If this option is checked, more rewrite alternatives can be used
during the refresh operation, resulting in more efficient refresh execution. The
behavior of this option is affected by whether you select Enforced or Trusted.
– Enforced: Causes only enforced constraints to be used during the refresh
operation.
– Trusted: Enables the use of dimension and constraint information that has
been declared trustworthy by the database administrator but that has not been
validated by the database. If the dimension and constraint information is valid,
performance may improve. However, if this information is invalid, then the
refresh procedure may corrupt the materialized view even though it returns a
success status.
DDL pane
You can review and save the SQL statements that SQL Developer Web will use to
create or edit the object. If you want to make any changes, go back to the relevant
panes and make the changes there.
For a new table, click CREATE to view the generated DDL statements. When you edit
table properties, click UPDATE to view the generated ALTER statements. For a new
table, the UPDATE tab will not be available.
When you are finished, click Apply.
Output pane
Displays the results of the DDL commands. If there are any errors, go to the
appropriate pane, fix the errors, and run the commands again. You can save to a text
file or clear the output.
Related Topics
• Oracle Database SQL Language Reference
• In Worksheet, in the Navigator pane, select Indexes in the object field, click ,
and select Create Object.
• In Worksheet, right-click a table in the Navigator tab, and select Add Index. To
edit, right-click an index in the Navigator tab and select Edit.
• Right-click a table object in the Data Modeler Navigator tab, and select Add Index.
• Create and edit an index in the Table Properties Dialog (See The Table Properties
Dialog).
Definition pane
• Schema: Database schema that owns the table associated with the index.
8-12
Chapter 8
The Sequence Properties Dialog
8-13
Chapter 8
The View Properties Dialog
• In Worksheet, in the Navigator pane, select Views in the object field, click ,
and select Create Object.
• Right-click a view in the Navigator tab, and select New or Edit.
Schema: Database schema in which to create the view.
Name: Name of the view.
The different panes in the dialog are described in the following sections:
SQL Query pane
Enter or copy and paste the SQL query for the view, using the SELECT and FROM
keywords along with the syntax needed to retrieve the desired information. A
semicolon is not required after the query.
8-14
Chapter 8
The Synonym Properties Dialog
Columns pane
Click the Refresh Columns icon to automatically populate the columns in this pane.
You can edit the columns by selecting the required row and making changes in the
Header Alias and Comments fields.
Storage pane
• Force on Create: Select Yes to create the view regardless of whether the base
tables of the view or the referenced object types exist or the owner of the schema
containing the view has privileges on them. These conditions must be true before
any SELECT, INSERT, UPDATE, or DELETE statements can be issued against
the view. If the view definition contains any constraints, CREATE VIEW ... FORCE
fails if the base table does not exist or the referenced object type does not exist.
CREATE VIEW ... FORCE also fails if the view definition names a constraint that
does not exist.
• Query Restriction: Read Only prevents the view from being used to add, delete,
or change data in the underlying table. Check Option prohibits any changes to the
underlying table that would produce rows that are not included in this view.
Use the Primary Key, Unique Keys, Foreign Keys, and Comments panes to add or edit
properties as required.
DDL pane
Based on the inputs provided, the DDL statements are generated. You can review and
save the SQL statements. If you want to make any changes, go back to the relevant
pane and make the changes there. For a new view, click CREATE to view the
generated DDL statements. When you edit a view, click UPDATE to view the
generated ALTER statements. For a new view, the UPDATE tab will not be available.
When you are finished, click Apply.
Output pane
Displays the results of the DDL commands. If there are any errors, go to the respective
pane, fix the errors, and run the commands again. You can save to a text file or clear
the output.
Public Synonyms from the drop-down list. Click . All the fields in the
Properties dialog are available for edit.
The different panes in the dialog are described in the following sections:
Properties pane
8-15
Chapter 8
Implied Foreign Keys
• Public: If this option is checked, the synonym is accessible to all users. However,
each user must have appropriate privileges on the underlying object to use the
synonym. If this option is not checked, the synonym is a private synonym, and is
accessible only within its schema.
• Synonym Schema: Database schema in which to create the synonym.
• Synonym Name: Name of the synonym. A private synonym must be unique within
its schema; a public synonym must be unique within the database.
• Object Type: Specify the type of object to which this synonym refers.
• Object Schema: Schema containing the object or name to which this synonym
refers.
• DB Filter: After selecting the Object Type and Object Schema, the list of objects of
the selected type may be very long. To filter the object names, enter the search
entry and click the Refresh icon. The Object Name field is auto-filled with
appropriate object names in the drop-down list.
• Object Name: Select the name of the object to which this synonym refers.
• DB Link: Enter a complete or partial database link to create a synonym for a
schema object on a remote database where the object is located. If you specify
DB Link and omit schema, then the synonym refers to an object in the schema
specified by the database link. Oracle recommends that you specify the schema
containing the object in the remote database. If you omit DB Link, then Oracle
Database assumes the object is located on the local database.
DDL pane
Based on the inputs provided, the DDL statements are generated. You can review and
save the SQL statements. If you want to make any changes, go back to the relevant
pane and make the changes there. For a new view, click CREATE to view the
generated DDL statements. When you edit a view, click UPDATE to view the
generated ALTER statements. For a new view, the UPDATE tab will not be available.
When you are finished, click Apply.
Output pane
Displays the results of the DDL commands. If there are any errors, go to the respective
pane, fix the errors, and run the commands again. You can save to a text file or clear
the output.
8-16
Chapter 8
The Materialized View Log Properties Dialog
You can define implied foreign keys using the Implied Foreign Keys dialog.
1. Right-click an object (table or view) in a diagram and select Implied Foreign
Keys. The Implied Foreign Keys dialog is displayed.
2. In the Implied Foreign Keys dialog, click the + icon to add an entry in the grid.
3. Select the entry in the grid to enable and enter values in the following fields:
– Referenced Object: Object in the diagram that has a dependency to the
source object.
– Local Column: Name of the column in the source object.
– Referenced Column: Name of the column in the targeted object.
– Discovery Sources: Automatically prefilled, displays whether the implied
foreign keys have been defined or were discovered in the data dictionary.
4. Click OK. The implied foreign key dependency is displayed with a dotted line
on the diagram.
• By dragging the arrow to the referenced object in the diagram
You can also define an implied foreign key in the following way:
1. Select the source object on the diagram.
2. Click and drag the small blue curved arrow to the referenced object. The
dependency will be displayed with a dotted line on the diagram.
3. Right-click the source object and enter the column names in the Implied
Foreign Keys dialog.
Discover Implied Foreign Keys in the Data Dictionary
SQL Developer Web can automatically create a star schema by searching for several
types of definitions in the data dictionary.
In the Navigator tab, right-click an object (table or view) and select Add Object as
Star Schema to Diagram. The object must be a fact table. The data dictionary is then
searched for joins and dependencies related to the object, such as:
• Foreign keys defined for the selected table to other tables. If implied foreign keys
are later discovered for the same columns, they will not be displayed on the
diagram.
• Joins used in the definitions of bitmap join indexes, materialized views with
aggregates, and attribute clustering.
• Dependencies based on dimension definitions and column name matching in fact
table.
• Fact and dimension definitions for Analytic views and OLAP cube and dimensions.
8-17
Chapter 8
The Materialized View Log Properties Dialog
To create a materialized view log, in the Navigator pane, select Materialized View
Logs in the object field, click , and select Create Object. To edit, right-click a
materialized view log object in the Navigator pane and select Edit.
Schema: Database schema in which to create the materialized view log.
Table: Name of the master table of the materialized view to be associated with this
materialized view log.
Properties tab
• Row ID Logged: Yes indicates that the rowid of all rows changed should be
recorded in the materialized view log; No indicates that the rowid of all rows
changed should not be recorded in the materialized view log.
• PK Logged: Yes indicates that the primary key of all rows changed should be
recorded in the materialized view log; No indicates that the primary key of all rows
changed should not be recorded in the materialized view log.
• New values: Yes saves both old and new values for update DML operations in the
materialized view log; No disables the recording of new values in the materialized
view log. If this log is for a table on which you have a single-table materialized
aggregate view, and if you want the materialized view to be eligible for fast refresh,
you must specify Yes.
• Object ID Logged: For a log on an object table only: Yes indicates that the
system-generated or user-defined object identifier of every modified row should be
recorded in the materialized view log. No indicates that the system-generated or
user-defined object identifier of every modified row should not be recorded in the
materialized view log.
• Cache: For data that will be accessed frequently, CACHE specifies that the blocks
retrieved for this log are placed at the most recently used end of the least recently
used list in the buffer cache when a full table scan is performed. This attribute is
useful for small lookup tables. NOCACHE specifies that the blocks are placed at
the least recently used end of the LRU list.
• Parallel: If YES, parallel operations will be supported for the materialized view log.
• Sequence Logged: Yes indicates that a sequence value providing additional
ordering information should be recorded in the materialized view log. No indicates
that a sequence value providing additional ordering information should not be
recorded in the materialized view log. Sequence numbers (that is, Yes for this
option) are necessary to support fast refresh after some update scenarios.
• Commit SCN: If this option is enabled, the database is instructed to use commit
SCN data rather than timestamps.
• Available Columns and Selected Columns: Additional columns, which are non-
primary-key columns referenced by subquery materialized views, to be recorded in
the materialized view log. To select one or more filter columns, use the arrow
buttons to move columns from Available to Selected.
Storage tab
• Tablespace: Tablespace in which the materialized view log is to be created
• Logging: YES or NO, to establish the logging characteristics for the materialized
view log.
8-18
Chapter 8
The Materialized View Log Properties Dialog
• Buffer Mode: Select KEEP to put blocks from the segment into the KEEP buffer
pool. Select RECYCLE to put blocks from the segment into the RECYCLE pool.
Select DEFAULT to indicate the default buffer pool.
• Percent Free: Specify a whole number representing the percentage of space in
each data block of the database object reserved for future updates to rows of the
object. The value of PCTFREE must be a value from 0 to 99.
• Percent Used: Specify a whole number representing the minimum percentage of
used space that Oracle maintains for each data block of the database object.
PCTUSED is specified as a positive integer from 0 to 99 and defaults to 40.
• Initrans: Specify the initial number of concurrent transaction entries allocated
within each data block allocated to the database object. This value can range from
1 to 255 and defaults to 1.
• Freelists: In tablespaces with manual segment-space management, for objects
other than tablespaces and rollback segments, specify the number of free lists for
each of the free list groups for the table, partition, cluster, or index. The default and
minimum value for this parameter is 1, meaning that each free list group contains
one free list.
• Freelist Groups: In tablespaces with manual segment-space management,
specify the number of groups of free lists for the database object you are creating.
• Initial Extent: Specify the size of the first extent of the object.
• Next Extent: Specify in bytes the size of the next extent to be allocated to the
object.
• Percent Increase: In locally managed tablespaces, Oracle Database uses the
value of PCTINCREASE during segment creation to determine the initial segment
size and ignores this parameter during subsequent space allocation.
• Min Extent: In locally managed tablespaces, Oracle Database uses the value of
MINEXTENTS in conjunction with PCTINCREASE, INITIAL and NEXT to
determine the initial segment size.
• Max Extent: This storage parameter is valid only for objects in dictionary-
managed tablespaces. Specify the total number of extents, including the first, that
Oracle can allocate for the object.
• Unlimited: Select this option if you want extents to be allocated automatically as
needed. Oracle recommends this setting as a way to minimize fragmentation.
Purge tab
• Type: In IMMEDIATE SYNCHRONOUS, the materialized view log is purged
immediately after refresh. This is the default. In IMMEDIATE ASYNCHRONOUS,
the materialized view log is purged in a separate Oracle Scheduler job after the
refresh operation.
• Deferred, Start With, Next, Repeat Interval: Sets up a scheduled purge that is
independent of the materialized view refresh and is initiated during CREATE or
ALTER MATERIALIZED VIEW LOG statement.
Refresh tab
• Type: Synchronous Refresh creates a staging log that can be used for
synchronous refresh. Specify the name of the staging log to be created. The
staging log will be created in the schema in which the master table resides. Fast
Refresh creates a materialized view log that can be used for fast refresh. The
8-19
Chapter 8
The Materialized View Log Properties Dialog
materialized view log will be created in the same schema in which the master table
resides. This is the default.
DDL pane
Based on the inputs provided, the DDL statements are generated. You can review and
save the SQL statements. If you want to make any changes, go back to the relevant
pane and make the changes there. For a new materialized view log, click CREATE to
view the generated DDL statements. When you edit a materialized view log, click
UPDATE to view the generated ALTER statements. For a new materialized view log,
the UPDATE tab will not be available. When you are finished, click Apply.
Output pane
Displays the results of the DDL commands. If there are any errors, go to the respective
pane, fix the errors, and run the commands again. You can save to a text file or clear
the output.
8-20