Database Express Edition Installation Guide Linux
Database Express Edition Installation Guide Linux
Database Express Edition Installation Guide Linux
Installation Guide
E90411-02
Copyright © 2005, 2018, Oracle and/or its affiliates. All rights reserved.
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 vi
Documentation Accessibility vi
Command Syntax vi
Related Documents vii
Conventions viii
1 Installation Guide
2 Introduction
3 Requirements
3.1 System Requirements 3-1
3.2 Swap Space Requirements 3-1
3.3 Server Component Kernel Parameter Requirements 3-1
4 Licensing Restrictions
4.1 Oracle Database XE CPU Limitations 4-1
4.2 Oracle Database XE Installation and Execution Restrictions 4-1
4.3 Oracle Database XE User Data Limitations 4-1
4.4 Oracle Database XE RAM Limitation 4-2
iii
6 Connecting to Oracle Database XE
13 Globalization Support
13.1 Setting Language and Locale Preferences for Client Connections 13-1
Index
iv
List of Tables
3-1 Oracle Database XE Requirements 3-1
3-2 Kernel Parameter Settings Required for Oracle Database XE 3-2
5-1 Configuration, Database Files and Logs Location 5-3
v
Preface
Preface
This guide explains how to install and configure Oracle Database Express Edition on
Linux x86–64.
This guide also provides information about resources available to develop applications
and how to remove the database software.
• Audience
• Documentation Accessibility
• Command Syntax
• Related Documents
• Conventions
Audience
This guide is intended primarily for application developers who are either developing
applications or converting applications to run in the Oracle Database environment.
Oracle Database 18c Express Edition (Oracle Database XE) is a free version of the
world's most capable relational database. Oracle Database XE is easy to install, easy
to manage, and easy to develop with. With Oracle Database XE, you use an intuitive,
browser-based interface to administer the database, create tables, views, and other
database objects, import, export, and view table data, run queries and SQL scripts,
and generate reports.
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.
Command Syntax
Refer to these command syntax conventions to understand command examples in this
guide.
vi
Preface
Convention Description
$ Bourne or BASH shell prompt in a command example. Do not enter the
prompt as part of the command.
% C Shell prompt in a command example. Do not enter the prompt as part of
the command.
# Superuser (root) prompt in a command example. Do not enter the prompt
as part of the command.
monospace UNIX command syntax
backslash \ A backslash is the UNIX and Linux command continuation character. It is
used in command examples that are too long to fit on a single line. Enter
the command as displayed (with a backslash) or enter it on a single line
without a backslash:
dd if=/dev/rdsk/c0t1d0s6 of=/dev/rst0 bs=10b \ count=10000
italic Italic type indicates a variable. Substitute a value for the variable:
library_name
Related Documents
To help you with your development efforts, consult the books in the development
category of the Oracle database documentation set at Oracle Database Development
Title Content
2 Day DBA Discusses common day-to-day administrative
tasks.
2 Day Developer's Guide Explains how to develop applications with the
Oracle Database.
2 Day + PHP Developer's Guide Provides a tutorial that shows you how to
download and install Apache and the Zend Core
PHP drivers, and then how to use PHP to connect
to Oracle Database XE, and demonstrates how to
use PHP to develop a simple application that
accesses and modifies data.
vii
Preface
Title Content
2 Day + Java Developer’s Guide Provides a tutorial that shows you how to use
Java and JDBC to connect to Oracle Database,
and demonstrates how to develop a simple Java
application that accesses and modifies data.
For more information, see these documents in the Oracle Database documentation
set:
• Oracle Database SQL Language Reference
• Oracle Database PL/SQL Language Reference
• Oracle Database PL/SQL Packages and Types Reference
• Oracle Database JSON Developer’s Guide
• Oracle Database SODA for PL/SQL Developer's Guide
• Oracle Database Development Guide
• Oracle Database Administrator's Guide
• Oracle Database SecureFiles and Large Objects Developer's Guide
• Oracle Database Object-Relational Developer's Guide
• Oracle Database Concepts
• Oracle Database Sample Schemas
See Also:
Conventions
The following text conventions are used in this document:
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.
viii
1
Installation Guide
Welcome to Oracle Database Express Edition Installation Guide for Linux x86-64.
This guide covers the following topics:
• Introduction
• Requirements
• Licensing Restrictions
• Installing Oracle Database XE
• Connecting to Oracle Database XE
• Starting and Stopping Oracle Database
• Using Enterprise Manager Express
• Exporting and Importing Data between Oracle Database XE 11.2 and 18c
• Migrating Data and Applications
• Deinstalling Oracle Database XE
• Reporting Security Vulnerabilities
• Globalization Support
1-1
2
Introduction
Oracle Database XE is a fully free edition of the Oracle Database.
Development Environments
Oracle Database XE supports the following development environments:
• Java: Develop and deploy modern database-bound Java Web applications
(Servlets), modules (Microservices) or standalone Java frameworks using the
Oracle JDBC Driver, the Universal Connection Pool (UCP), and the Database-
embedded JVM (for in-place, server-side processing).
Visit http://oracle.com/jdbc for more information
• C and C++ : Developers can use Oracle Call Interface (OCI) and Oracle C++ Call
Interface (OCCI) to create high performance programs accessing Oracle Database
XE. ODBC and the ODPI-C wrapper over OCI are also usable.
Visit https://www.oracle.com/technetwork/database/features/oci/index-090945.html
for more information
• .NET: Visual Studio and .NET developers can use Oracle Data Provider for .NET
(ODP.NET) and Oracle Developer Tools for Visual Studio (ODT) for full
development life cycle support.
Visit https://www.oracle.com/database/technologies/appdev/dotnet.html for more
information
• Oracle SQL Developer: Oracle SQL Developer is a graphical version of SQL*Plus
that gives database developers a convenient way to perform basic tasks. You can
connect to any target Oracle Database XE schema using standard Oracle
database authentication. Once connected, you can perform operations on objects
in the database.
Download and install Oracle SQL Developer from:
http://www.oracle.com/technetwork/developer-tools/sql-developer/overview/
index.html
• Oracle Application Express: Oracle Application Express (APEX) is a rapid web
application development tool for the Oracle database.
Download and install Application Express from:
http://www.oracle.com/technetwork/developer-tools/apex/overview/index.html
• Oracle REST Data Services (ORDS): ORDS makes it easy to develop modern
REST interfaces for relational data in the Oracle Database and the Oracle
Database 18c JSON Document Store.
Download and install ORDS from:
https://www.oracle.com/database/technologies/appdev/rest.html
• SODA (Simple Oracle Document Access) APIs that let you develop NoSQL-style
applications against collections of JSON documents. Native language SODA
drivers are available for common languages.
2-1
Chapter 2
Visit https://docs.oracle.com/en/database/oracle/simple-oracle-document-access/
for more information
Scripting Languages
You can use scripting languages such as:
• PHP: Access Oracle Database with the PHP OCI8 extension or the PDO_OCI
Driver. PHP OCI8 and PDO_OCI are part of the PHP open source project.
Visit http://php.net/oci8 for more information on PHP OCI8 and http://php.net/
pdo_oci for more information on PDO_OCI
Python: The cx_Oracle Python extension module enables access to Oracle
Database.
Visit https://oracle.github.io/python-cx_Oracle/ for more information about
cx_Oracle Python extension module
Node.js: The node-oracledb add-on for Node.js powers high performance Oracle
Database applications.
Visit https://oracle.github.io/node-oracledb/ for more information about node-
oracledb
ROracle: ROracle is an open source R package supporting a DBI-compliant
Oracle driver based on the high performance OCI library.
Visit http://cran.r-project.org/web/packages/ROracle/index.html for more
information about ROracle
Ruby: Build Ruby and Ruby on Rails applications using the ruby-oci8 driver or
JRuby with the Oracle Enhanced Adapter for ActiveRecord.
Visit:
– http://www.rubydoc.info/gems/ruby-oci8/ for information about the ruby-oci8
– http://jruby.org/ for information about JRuby
– https://github.com/rsim/oracle-enhanced for information about Oracle
Enhanced Adapter
Others
Accessing Oracle Database XE from other languages including Go is possible
using community drivers based on OCI or ODPI-C.
Download Open Source drivers from:
http://www.oracle.com/technetwork/database/database-technologies/scripting-
languages/index.html.
2-2
Chapter 2
programs with the provided header files. Because the object (.o's) and archive (.a's)
libraries are not available in the installed location, you cannot use genclntsh and
genclntst.
Examples
You can download and install Oracle Database Examples in an existing Oracle home
to view the product demonstrations.
See Examples Installation Guide for more information about products available on the
Oracle examples media
Examples are also available from https://github.com/oracle/oracle-db-examples
2-3
3
Requirements
You must have root user credentials to install Oracle Database XE.
Requirement Value
Operating system Oracle Database Installation Guide , "Operating System Checklist for
Oracle Database Installation on Linux" for the list of supported Linux
distributions and the set of minimum requirements for each x86–64
Linux platforms
Network protocol The following protocols are supported:
• IPC
• Named Pipes
• UDP
• TCP/IP
• TCP/IP with SSL
RAM 1 gigabyte minimum, 2 gigabytes recommended
Disk space 10 gigabytes minimum
3-1
Chapter 3
Server Component Kernel Parameter Requirements
See Also:
Installation Guide for Linux for more information about changing kernel
parameter values manually
3-2
4
Licensing Restrictions
This section covers the following topics:
• Oracle Database XE CPU Limitations
• Oracle Database XE Installation and Execution Restrictions
• Oracle Database XE User Data Limitations
• Oracle Database XE RAM Limitation
4-1
Chapter 4
Oracle Database XE RAM Limitation
4-2
5
Installing Oracle Database XE
You can install Oracle Database Express Edition using RPM packages.
An RPM-based installation performs preinstallation checks, extracts the database
software, reassigns ownership of the extracted software to the preconfigured user and
groups, maintains the Oracle inventory, and executes all root operations required to
configure the Oracle Database software for a single-instance Oracle Database
creation and configuration.
The RPM–based installation process detects when the minimum requirements for an
installation are not met and prompts you to finish these minimum preinstallation
requirements.
This section covers the following topics:
• Installing Oracle Database XE Using RPM Packages
• Performing a Silent Installation
• Setting the Oracle Database XE Environment Variables
Note:
The Oracle Database XE installation does not support usage of symbolic
links (symlink) for that disk.
5-1
Chapter 5
Installing Oracle Database XE Using RPM Packages
Note:
Use the -y option if you want yum to skip the package confirmation
prompt.
3. Access the software download page for Oracle Database RPM-based installation
from Oracle Technology Network :
https://www.oracle.com/technetwork/database/database-technologies/express-
edition/downloads/index.html
4. Download the oracle-database-xe-18c-1.0-1.x86_64.rpm file required
for performing an RPM-based installation to a directory of your choice.
5. Install the database software using the yum localinstall command.
# yum -y localinstall oracle-database-xe-18c-1.0-1.x86_64.rpm
The Database Preinstallation RPM automatically creates Oracle installation owner and
groups and sets up other kernel configuration settings as required for Oracle
installations. If you plan to use job-role separation, then create the extended set of
database users and groups depending on your requirements. Check the RPM log file
to review the system configuration changes.
For example, review this file for latest changes: /var/log/oracle-database-
preinstall-18c/results/orakernel.log .
The parameters set in this file are explained in more details in the silent mode
installation procedure: Performing a Silent Installation.
To create the Oracle XE database with the default settings, perform the following
steps:
5-2
Chapter 5
Performing a Silent Installation
At the prompt, specify a password for the SYS, SYSTEM, and PDBADMIN administrative
user accounts. Oracle recommends that the password entered should be at least 8
characters in length, contain at least 1 uppercase character, 1 lower case
character and 1 digit [0-9].
See Also:
The same password will be used for these accounts. The password
should conform to the Oracle recommended standards. See Oracle
Database Security Guide for more information about guidelines for
securing passwords
After the configuration completes, the database and listener are started.
5-3
Chapter 5
Performing a Silent Installation
#!/bin/bash
Alternatively, you can pass on the password in the script, such as:
(echo "password"; echo "password";) | /etc/init.d/oracle-xe-18c configure >> /
xe_logs/XEsilentinstall.log 2>&1
Replace password with a password that is secure. The password entered should
be at least 8 characters in length, contain at least 1 uppercase character, 1 lower
case character and 1 digit [0-9].
2. Make the wrapper script executable.
chmod +x myscript.sh
3. Run as root using sudo.
sudo ./myscript.sh
• LISTENER_PORT: A valid listener numeric port value for the database listener. Do not
specify for automatic port assignment.
• EM_EXPRESS_PORT: A valid port numeric value for Oracle Enterprise Manager (EM)
Express listener. This is set to port 5500.
• CHARSET : Character set of the database. This is set to AL32UTF8.
• DBFILE_DEST Database file directory. By default, the database files are stored in the
Oracle Base /opt/oradata subdirectory.
• SKIP_VALIDATIONS: Skip validation for memory and disk space. Default: false.
Caution:
When you modify and save a file containing plain text password, ownership
of the file should be given to the Oracle software installation owner only, and
permissions on the file should be changed to 600. Oracle strongly
recommends that database administrators or other administrators delete or
secure such files containing plain text passwords when they are not in use.
5-4
Chapter 5
Setting the Oracle Database XE Environment Variables
Note:
The password should conform to the Oracle recommended standards. See
Oracle Database Security Guide for more information about guidelines for
securing passwords
You can find the database creation logs under the Oracle Base /opt/oracle/
cfgtoollogs/dbca/ subdirectory.
See Also:
Configuration, Database Files and Logs Location for a summary of important
files and their locations
ORACLE_HOME = [] ? /opt/oracle/product/18c/dbhomeXE
The Oracle base has been set to /opt/oracle
For C shell:
$ setenv ORACLE_SID XE
$ setenv ORACLEENV_ASK NO
$ source /opt/oracle/product/18c/dbhomeXE/bin/coraenv
See Oracle Database Administrator's Reference for Linux and UNIX-Based Operating
Systems for more information about setting a common environment
5-5
6
Connecting to Oracle Database XE
Connecting using SQL*Net
The database listener for your XE database is started with a configuration that can be
viewed using the command :
lsnrctl status
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=dbhost.example.com)
(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 18.0.0.0.0 - Production
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Default Service XE
Listener Parameter File /opt/oracle/product/18c/dbhomeXE/network/admin/listener.ora
Listener Log File /opt/oracle/diag/tnslsnr/dbhost/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=dbhost.example.com)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcps)(HOST=dbhost.example.com)(PORT=5500))
(Security=(my_wallet_directory=/opt/oracle/admin/XE/xdb_wallet))(Presentation=HTTP)
(Session=RAW))
Services Summary...
Service "77f81bd10c818208e053410cc40aef5a" has 1 instance(s).
Instance "XE", status READY, has 1 handler(s) for this service...
Service "XE" has 1 instance(s).
Instance "XE", status READY, has 1 handler(s) for this service...
Service "XEXDB" has 1 instance(s).
Instance "XE", status READY, has 1 handler(s) for this service...
Service "xepdb1" has 1 instance(s).
Instance "XE", status READY, has 1 handler(s) for this service...
The command completed successfully
For example, you can connect to the database from a client computer with SQL*plus
using the connect identifier:
sqlplus system@"dbhost.example/XE"
6-1
Chapter 6
Specifying the port is optional when the listener is setup with the default port 1521.
You must specify the port if other port number is used.
See Also:
• 2 Day DBA for more information about the listener and network
configuration
Oracle Database Development Guide for more information about connection
strategies for database applications
6-2
7
Starting and Stopping Oracle Database
You can start and stop the database manually, set it to automatically after the system
shuts down and starts, or using Enterprise Manager.
Oracle Linux 6:
You can start and stop the database using the /etc/init.d/oracle-xe-18c script.
Run the following command to stop the database and the listener:
# /etc/init.d/oracle-xe-18c stop
Run the following command to stop and start the listener and database:
# /etc/init.d/oracle-xe-18c restart
Oracle Linux 7:
Run the following command to start the listener and database:
# systemctl start oracle-xe-18c
Run the following command to stop the database and the listener:
# systemctl stop oracle-xe-18c
Run the following command to stop and start the listener and database:
# systemctl restart oracle-xe-18c
7-1
Chapter 7
See Also:
7-2
8
Using Enterprise Manager Express
You can leverage all the functionality and ease of use of Enterprise Manager (EM) to
manage your XE database.
To connect to EM Express, go to https://localhost:5500/em from the browser on the
system.
Port 5500 is the default EM_EXPRESS_PORT assigned during database creation.
8-1
9
Exporting and Importing Data between
Oracle Database XE 11.2 and 18c
This section explains how to export and import data between Oracle Database XE 11g
Release 2 (11.2) and XE 18c. Depending if Oracle Application Express (APEX) was
used or not in your 11.2 database, follow one of these procedures:
• Exporting and Importing Data for non-APEX Users
• Exporting and Importing Data for Oracle Application Express (APEX) Users
Exporting Data
1. To export data from your 11.2 XE database, perform the following steps:
a. Create a directory /dump_folder on the local file system for the DUMP_DIR
directory object.
b. Connect to the 11.2 XE database as user SYS using the SYSDBA privilege.
c. Create directory object DUMP_DIR and grant READ and WRITE privileges on the
DUMP_DIR directory to the SYSTEM user.
sqlplus / AS SYSDBA
SQL> CREATE DIRECTORY DUMP_DIR AS '/dump_folder';
SQL> GRANT READ, WRITE ON DIRECTORY DUMP_DIR TO SYSTEM;
d. Export data from your 11.2 XE database to the dump folder.
expdp system/system_password full=Y EXCLUDE=SCHEMA:\"LIKE \'APEX_%
\'\",SCHEMA:\"LIKE \'FLOWS_%\'\" directory=DUMP_DIR dumpfile=DB11G.dmp
logfile=expdpDB11G.log
2. Deinstall Oracle Database XE 11.2 if installation of 18c XE is planned on the same
system. See Deinstalling Oracle Database XE for more information
3. Install Oracle Database XE 18c.
Importing Data
1. To import data in your 18c XE database, perform the following steps:
a. Connect to the 18c XE database as user SYS using the SYSDBA privilege.
b. Create directory object DUMP_DIR and grant READ and WRITE privileges on the
directory to the SYSTEM user.
sqlplus / AS SYSDBA
SQL> ALTER SESSION SET CONTAINER=XEPDB1;
9-1
Chapter 9
Exporting and Importing Data for Oracle Application Express (APEX) Users
Exporting Data
1. Upgrade Oracle Application Express in your 11.2 XE database to at least APEX
5.1.4 which is the minimum supported version in database 18c if you have not
already done so. You can download APEX distributions at http://www.oracle.com/
technetwork/developer-tools/apex/downloads/index.html.
See Also:
Application Express Installation Guide for more information about
Upgrading Oracle Application Express (APEX) within Oracle Database
Express Edition
2. To export the data from your 11.2 XE database, perform the following steps:
a. Create a directory on the local file system for the DUMP_DIR directory object.
b. Connect to the 11.2 XE database as user SYS using the SYSDBA privilege.
c. Create directory object DUMP_DIR and grant READ and WRITE privileges on the
directory to the SYSTEM user.
sqlplus "/ AS SYSDBA"
SQL> CREATE DIRECTORY DUMP_DIR AS '/dump_folder';
SQL> GRANT READ, WRITE ON DIRECTORY DUMP_DIR TO SYSTEM;
d. Export data from the 11.2 XE database in the DUMP_DIR directory.
expdp system/system_password full=Y directory=DUMP_DIR dumpfile=DB11G.dmp
logfile=expdpDB11G.log
9-2
Chapter 9
Exporting and Importing Data for Oracle Application Express (APEX) Users
Importing Data
1. To import data to the 18c XE database, perform the following steps:
a. Connect to 18c XE database as user SYS using the SYSDBA privilege.
b. Create directory object DUMP_DIR and grant READ and WRITE privileges on the
directory to the SYSTEM user.
sqlplus / AS SYSDBA
SQL> ALTER SESSION SET CONTAINER=XEPDB1;
SQL> CREATE DIRECTORY DUMP_DIR AS '/dump_folder';
SQL> GRANT READ, WRITE ON DIRECTORY DUMP_DIR TO SYSTEM;
c. Import data to your 18c XE database from the dump folder.
impdp system/system_password@localhost/xepdb1 full=Y
REMAP_DIRECTORY='/u01/app/oracle/oradata/XE/':'/opt/oracle/oradata/XE/
XEPDB1' directory=DUMP_DIR dumpfile=DB11G.dmp logfile=impdpDB11G.log
Remapping the directory is necessary when you use different directory file
naming conventions. The first argument of the REMAP_DIRECTORY
parameter is the location of your 11.2 XE data files (the source) and the
second argument is the location of the 18c XE data files (target).
See Oracle Database Utilities for more information about impdp
REMAP_DIRECTORY parameter syntax
9-3
Chapter 9
Exporting and Importing Data for Oracle Application Express (APEX) Users
e. Set the HTTP port for the embedded PL/SQL gateway. For example, to set the
HTTP port to 8080:
SQL> ALTER SESSION SET CONTAINER=XEPDB1;
SQL> EXEC XDB.DBMS_XDB.SETHTTPPORT(8080);
SQL> COMMIT;
f. Connect to CDB$ROOT and unlock the ANONYMOUS user:
SQL> ALTER SESSION SET CONTAINER=CDB$ROOT;
SQL> ALTER USER ANONYMOUS ACCOUNT UNLOCK;
SQL> EXIT
9-4
10
Migrating Data and Applications
You can migrate data and applications in and out of your XE database using various
methods.
You can export tables and data from one XE installation and import them into another.
Oracle recommends you use 11g Release 2 and higher to export your data.
Migrating from Oracle Database XE 18c to Oracle Database Enterprise Edition 18c is
supported via the unplug, plug scenario only. You can unplug a PDB from XE 18c
database and plug it into another Enterpise Edition 18c database of the same release.
Migrating from Oracle Database XE 18c to any of the other Oracle Database 18c
offerings is not supported.
Upgrade from Oracle Database XE 11.2 to Oracle Database XE 18c is not supported.
10-1
Chapter 10
10-2
Chapter 10
no rows selected
10-3
11
Deinstalling Oracle Database XE
When you deinstall Oracle Database XE, all components, including data files, the
database, and the software, are removed.
If you want to save your data files but remove the Oracle Database XE software and
database, then first export the data before you deinstall.
Because the deinstallation process removes all files from the directory in which Oracle
Database XE is installed, back up any files from the directory (if needed) before you
deinstall. The database will no longer be operational after deinstallation.
Execute this procedure as root or with root privileges.
$ sudo -s
11-1
12
Reporting Security Vulnerabilities
If you find any security vulnerabilities with Oracle Database XE, then send a
description of the problem to Oracle at the following e-mail address:
secalert_us@oracle.com
Include the following information in your e-mail:
• A complete description of the problem you encountered
• The version of Oracle Database XE you were using
• The platform on which you were running Oracle Database XE
• Any scripts or examples that may be helpful in tracking down the security problem
12-1
13
Globalization Support
Oracle Database XE is configured by default to be able to process character data in all
supported languages simultaneously:
• The database is created with the Unicode AL32UTF8 character set. AL32UTF8 is the
recommended database character set suitable for storing data in practically any
language. Multiple languages can be mixed even in a single character value.
While not a recommended option, you can modify the CHARSET parameter in the
oracle-xe-18c.conf configuration file to any other valid database character set if
you need to meet specific database character set requirements.
• The Oracle Database Express Edition (XE) supports the same globalization
features that Oracle Database Enterprise Edition (EE) provides.
13-1
Chapter 13
Setting Language and Locale Preferences for Client Connections
Caution:
Failure to set the client character set correctly can cause data loss.
Java applications that connect to Oracle Databases by using Oracle JDBC do not use
NLS_LANG. Instead, Oracle JDBC maps the default locale of the Java VM in which
the application runs to the Oracle Database language and territory settings. Oracle
JDBC then configures the connected database session using these settings. Because
Java works internally in Unicode, the client character set is always set to Unicode.
Unless an application explicitly changes it, the default locale of the Java VM is set
based on the locale of the user operating system on which the Java VM runs. Check
your Java VM documentation for information about configuring the Java VM default
locale.
Note:
In 3-tier architecture deployments, application servers that are database
clients can have settings in their configuration files that specify the
NLS_LANG value or the Java VM locale. Check the documentation
accompanying these servers.
Related Topics
• Oracle Database Administrator’s Reference for Microsoft Windows
See Also:
Oracle Database Globalization Support Guide for more information about
configuring user locale preferences
13-2
Index
C L
command syntax conventions, vi limitations
configuring Express Edition CPU limitations, 4-1
Oracle Database XE Character and Express Edition RAM limitation, 4-2
Language, 13-1 Express Edition user data limitations, 4-1
D M
Deinstalling Oracle Database XE, 11-1 migrating data and applications, 10-1
discussion forum, 2-1
O
E
OCI demonstration programs
Exporting and Importing Data, 9-1 demo subdirectory, 2-1
APEX Users, 9-1, 9-2
Express Edition
installation and execution restrictions, 4-1
R
introduction, 2-1 Requirements, 3-1
licensing restrictions, 4-1 root access, 3-1
related documents, vii RPM-based database installation, 5-1
starting XE, 7-1
S
G
security
globalization reporting security vulnerabilities, 12-1
localization for client connections, 13-1
NLS_LANG
and client connections, 13-1 T
typographic conventions, viii
I
image Y
install, 5-1 yum install, 5-1
Index-1