- Linux oracle express edition
- Установка Oracle Database 18c Express Edition на Oracle Linux
- yum localinstall oracle-database-preinstall-18c-1.0-1.el7.x86_64.rpm
- 4 thoughts on “ Установка Oracle Database 18c Express Edition на Oracle Linux ”
- Oracle® Database Express Edition
- 1 Introduction
- 2 Requirements
- 2.1 Software Requirements
- 2.1.1 System Requirements
- 2.1.2 Swap Space Requirements
- 2.1.3 Server Component Kernel Parameter Requirements
- 2.2 Permission Requirement for Installing Oracle Database XE
- 3 Licensing Restrictions
- 3.1 Oracle Database XE CPU Limitations
- 3.2 Oracle Database XE Installation and Execution Restrictions
- 3.3 Oracle Database XE User Data Limitations
- 3.4 Oracle Database XE RAM Limitation
- 3.5 HTTPS Support
- 4 Installing Oracle Database XE
- 4.1 Procedure for Installing Oracle Database XE
- 4.2 Performing a Silent Installation
- 4.3 Setting the Oracle Database XE Environment Variables
- 4.4 Making Oracle Database XE Available to Remote Clients
- 4.5 Compiling the Oracle ODBC Driver Demos
- 5 Starting Oracle Database XE
- 6 Deinstalling Oracle Database XE
- 6.1 Deinstalling the Oracle Database XE Software
- 7 Importing and Exporting Data between 10.2 XE and 11.2 XE
- 8 Reporting Security Vulnerabilities
- 9 Oracle Database XE Character and Language Configurations
- 10 Globalization Support: Configuring Locale and Character Sets with the NLS_LANG Parameter
- 10.1 About the NLS_LANG Parameter
- 10.2 Default Values for NLS_LANG
- 10.3 Supported Character Sets
- 10.4 Charmap and Oracle Character Set
- 11 Documentation Accessibility
Linux oracle express edition
18c for Linux x86-64
Oracle Database Express Edition Installation Guide, 18c for Linux x86-64
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.
Источник
Установка Oracle Database 18c Express Edition на Oracle Linux
В данном посте описывается установка Oracle Database 18c Express Edition (XE) на операционную систему Oracle Linux 7. В примере рассматривается установка на Oracle Linux 7.4. Процесс установки с небольшими оговорками актуален для всех версий ОС Linux на базе RHEL (подробнее – ниже).
Будут рассмотрены следующие шаги:
- Подготовка к установке
- Установка Oracle Database 18c XE
- Подключение к базе данных
1. Подготовка к установке
1.1. Проверяется, соответствует ли используемая операционная система минимальным требованиям для установки и работы Oracle Database 18c XE. Допустимы следующие версии и дистрибутивы Linux на базе RHEL:
- Oracle Linux 7.5 with the Unbreakable Enterprise Kernel 5
Oracle Linux 7.2 with the Unbreakable Enterprise Kernel 4
Oracle Linux 7 with the Unbreakable Enterprise Kernel 3
Oracle Linux 7 with the Red Hat Compatible kernel: 3.10.0-123.el7.x86_64 or later - Red Hat Enterprise Linux 7: 3.10.0-123.el7.x86_64 or later
- Oracle Linux 6.4 with the Unbreakable Enterprise Kernel 2
Oracle Linux 6.6 with the Unbreakable Enterprise Kernel 3
Oracle Linux 6.8 with the Unbreakable Enterprise Kernel 4
Oracle Linux 6.4 with the Red Hat Compatible kernel: 2.6.32-358.el6.x86_64 or later - Red Hat Enterprise Linux 6.4: 2.6.32-358.el6.x86_64 or later
- SUSE Linux Enterprise Server 12 SP1: 3.12.49-11.1 or later
Для установки требуется минимум 1 Гб оперативной памяти (рекомендуется 2 Гб), минимум 10 Гб дискового пространства для ПО Oracle, 2 Гб дискового пространства для хранения временных файлов и обладание правами администратора.
1.2. Если системные требования соответствуют, то скачивается установочный файл. Oracle Database 18c Express Edition распространяется бесплатно и установочный файл можно скачать с официального сайта Oracle – https://www.oracle.com/database/technologies/xe-downloads.html
Для скачивания на портале Oracle необходимо наличие учетной записи с паролем. При ее отсутствии осуществляется регистрация новой учетной записи.
Пройдя по ссылке, выбирается версия Oracle Database 18c XE для вашей операционной системы (ОС): Oracle Database 18c Express Edition for Linux x64. Запускается скачивание rpm пакета (oracle-database-xe-18c-1.0-1.x86_64.rpm). Время скачивания может быть достаточно большим. Объем пакета около 2,3 Гб.
1.3. Скачивается пакет Oracle Database Preinstall RPM, предназначенный для создания необходимых пользователей, групп в ОС (например, пользователя oracle и группу oinstall), добавления системных параметров и файлов, необходимых для установки и работы базы данных (БД) Oracle. Если используется Oracle Linux, то данный пакет устанавливается командой под учетной записью root. Если используется RedHat, SUSE, либо отсутствует соединение с интернетом на Oracle Linux, то можно скачать сам rpm пакет по ссылке: https://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/getPackage/oracle-database-preinstall-18c-1.0-1.el7.x86_64.rpm
После скачивания пакет устанавливается командой:
yum localinstall oracle-database-preinstall-18c-1.0-1.el7.x86_64.rpm
rpm -ivh oracle-database-preinstall-18c-1.0-1.el7.x86_64.rpm
Далее используется вторая команда:
В рассматриваемом случае система требует предварительно установить два зависимых (дополнительных) пакета: ksh и libaio-level. В зависимости от текущих настроек операционной системы возможны требования установки и других зависимых (дополнительных) пакетов. Требуемые пакеты должны быть установлены. Если не настроен доступ к интернету, то пакеты можно найти в папке примонтированного образа (диска или образа, с которого была установлена ОС) – /run/media/ . Для этого, например, если используется VirtualBox, то надо в меню «Устройства виртуальной машины» перейти в раздел «Оптические диски» и указать ISO образ вашей операционной системы. Другим вариантом является создание своего репозитория на виртуальной машине и далее можно установить все пакеты из своего репозитория. Ниже устанавливаются зависимые два пакета на операционную систему из примонтированного образа.
В папке Packages определяются необходимые файлы и устанавливаются командой rpm -ivh.
Теперь устанавливается preinstall пакет еще раз.
Как видно, установка пакета успешно завершена и добавлены системные файлы для конфигурации настроек Oracle Database 18с XE. Все значения оставляются по умолчанию, но при необходимости их можно изменять.
2. Установка Oracle Database 18c Express Edition
2.1. Запускается ранее скачанный rpm пакет. Предварительно проверяется доступность более 1 Гб оперативной памяти. Проверить объем оперативной памяти можно командой free -h. Обычно, указав при создании виртуальной машины 1 Гб ОЗУ, на выходе не всегда получаем 1 гигабайт оперативной памяти в ОС. Для этого рекомендуется указывать объем оперативной памяти виртуальной машины с небольшим запасом (например, 1.4 Гб). Иначе возможна, например, следующая ошибка:
[SEVERE] Oracle Database 18c Express Edition requires a minimum of 1GB of physical memory (RAM). This system has 991 MB of RAM and does not meet minimum requirements.
Запускается установка БД:
Установка успешно завершена и система выдает сообщение: [INFO] Oracle home installed successfully and ready to be configured.
Лог файлы установок можно найти в файлах /var/log/oracle-database-preinstall-18c и /var/log/oracle-database-xe-18c. В них можно удостовериться, что никаких ошибок не произошло. Изменить некоторые параметры можно в файле /etc/sysconfig/oracle-xe-18c.conf.
Во избежание ошибок, необходимо удостовериться, что hostname операционной системы прописан в файлах /etc/hosts и /etc/hostname. Иначе получите следующее сообщение при настройке:
[Fatal] [DBT-06103] The port (5500) is already in use express edition 18c
Рекомендуется настроить сетевые параметры и сделать сетевой интерфейс автозапускаемым после перезагрузки операционной системы. В данном посте описывается настройка сети в Oracle Linux.
Для настройки паролей и завершения установки нужно запустить команду /etc/init.d/oracle-xe-18c configure
Установка БД успешно завершена. В конце установки описываются способы подключения к Pluggable и Container Databases, а также к Oracle Enterprise Manager for Oracle Database XE:
Connect to Oracle Database using one of the connect strings:
Pluggable database: dushanbe.localdomain:1539/XEPDB1
Multitenant container database: dushanbe.localdomain:1539
Use https://localhost:5500/em to access Oracle Enterprise Manager for Oracle Database XE
2.2. Теперь под пользователем oracle ОС в папке /home/oracle надо настроить файл .bash_profile, добавив переменные ORACLE_HOME, ORACLE_SID и путь $ORACLE_HOME/bin в разделе PATH. Назначается пароль пользователю oracle и работа в операционной системе производится под этим пользователем.
В домашней директории пользователя oracle (/home/oracle) ищется скрытый файл .bash_profile.
Далее файл открывается с помощью nano (или vi) и добавляются переменные ORACLE_HOME, ORACLE_SID и путь $ORACLE_HOME/bin в разделе PATH.
Изменения сохраняются и осуществляется повторный вход в систему под пользователем oracle.
3. Подключение к БД
После установки необходимо произвести подключение к БД, что позволит проверить работоспособность Oracle Database 18c XE. Для подключения к БД (multitenant container database) под пользователем SYS с помощью SQLPlus, необходимо запустить следующую команду sqlplus sys@XE as sysdba.
Выполняется запрос выборки данных из Container Database. Данный запрос показывает имеющиеся pluggable databases (PDB).
Перезагрузка операционной системы показывает, что listener и база данных не доступны, так как не настроен автоматический запуск этих служб (см. ниже).
Чтобы БД (инстанция) и listener запускались автоматически после включения или перезапуска ОС, выполняются следующие две команды под пользователем root:
Перезагружаем операционную систему. Как видно ниже, listener и база данных стартовали автоматически.
На этом установка и базовые настройки Oracle Database 18c Express Edition на Oracle Linux завершены. Container database и Pluggable database готовы к работе. В последующих постах будут рассмотрены подключение к Pluggable database и работа с ней.
4 thoughts on “ Установка Oracle Database 18c Express Edition на Oracle Linux ”
Не подскажите, а sqlplus должен изначально стоять? Столкнулся с проблемой: дистрибутив Linux Oracle. Дошёл до подключения к БД и команда не найдена… ОК, скачал oracle instantclient basic… И тут ошибка взаимосвязей… oracle-database-xe-18c конфликтует с oracle-instantclient-basic-21.1.0.0.0-1.x86_64
в Windows после установки Oracle DBXE18c сразу sqlplus работал….
Добрый день.
Спасибо за Ваш вопрос.
Утилита SQLPlus всегда доступна после успешной установки Oracle Database 18c Express Edition. Подключение к БД с помощью SQLPlus под какой учетной записью ОС выполняется (oracle или root)?
Подскажите как запустить tomcat после oracle ?
Добрый день!
Спасибо за Ваш вопрос.
Вам Apache Tomcat нужен для настройки ORDS? Если да, то есть два варианта установки ORDS:
1. Автономный (standalone) режим.
2. На сервере приложений (Oracle WebLogic Server, Apache Tomcat).
В этом посте подробно описан процесс установки и настройки ORDS в автономном режиме (standalone). К сожалению, пока не подготовил пост для второго варианта (на сервере приложений – Apache Tomcat).
Источник
Oracle® Database Express Edition
11 g Release 2 (11.2) for Linux x86-64
Welcome to Oracle Database Express Edition Installation Guide for Linux x86-64 . This guide covers the following topics:
The most up-to-date version of this installation guide is available from the Oracle Database Express Edition (Oracle Database XE) download page on Oracle Technology Network:
1 Introduction
Oracle Database XE is easy to install. Oracle Database XE provides an Oracle database and tools for managing the database.
Oracle Database XE supports the following development environments:
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:
Oracle Application Express : Oracle Database XE includes Oracle Application Express, a rapid web application development tool for the Oracle database. Oracle Application Express is enabled by default in Oracle Database XE.
Java : Java is an open-source programing language that is designed for use in the distributed environment of the Internet. You can use Oracle JDeveloper, which is a free integrated Java development environment with support for the full development life cycle.
Download and install Oracle JDeveloper from:
PHP is an open-source server-side embedded scripting language that is designed for Web development. PHP code can be embedded in HTML. You can download and install PHP from http://www.php.net .
For more information on Oracle Database XE, see the following:
Oracle Database XE home page on the Oracle Technology Network:
Oracle Database XE Documentation Library:
Click the appropriate link on the Oracle Database XE home page on the Oracle Technology Network; or from the system menus, get to Oracle Database 11g Express Edition and select Get Help , then Read Documentation .
Click the appropriate link on the Oracle Database XE home page on the Oracle Technology Network; or from the system menus, get to Oracle Database 11g Express Edition and select Get Help , then Go to Online Forum .
2 Requirements
This section covers the following topics:
2.1 Software Requirements
This section covers the following topics:
2.1.1 System Requirements
Table 1 provides system requirements for Oracle Database XE.
Table 1 Oracle Database XE Requirements
Requirement | Value | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Kernel Parameter | Setting | |||||||
---|---|---|---|---|---|---|---|---|
Parameter | Description |
---|---|
LANGUAGE | Specifies the language for displaying product messages, day names, and month names in SQL. |
Oracle Database Globalization Support Guide provides more information about languages.
Oracle Database Globalization Support Guide provides more information about territory conventions.
«Supported Character Sets» provides a list of supported character sets.
Oracle Database Globalization Support Guide provides information about the NLS_LANG parameter and Globalization Support initialization parameters.
10.2 Default Values for NLS_LANG
The locale setting of your Linux session affects how you should set your NLS_LANG parameter. Table 3 lists the different Linux languages and their default locale IDs, together with the corresponding NLS_LANG values.
Table 3 NLS_LANG Parameter Values for Linux Locales
Language | Locale ID | NLS_LANG | |
---|---|---|---|
Name | Description |
---|---|
Locale charmap | Oracle Character Set |
---|---|