Perform the following steps to install and configure Oracle Database XE using RPM packages.
Before attempting to install Oracle Database XE 18c, uninstall any existing Oracle Database XE or database with the SID XE from the target system.
The Oracle Database XE installation does not support usage of symbolic links (symlink) for that disk.
Installing Oracle Database XE RPM
Execute as user root using sudo .
For Oracle Linux, the Database Preinstallation RPM is pulled automatically, proceed to the next step. For Red Hat compatible Linux distributions, download and install the Database Preinstallation RPM using the following:
For Red Hat Enterprise Linux 6, run these commands:
For Red Hat Enterprise Linux 7, run these commands:
Use the -y option if you want yum to skip the package confirmation prompt.
Access the software download page for Oracle Database RPM-based installation from Oracle Technology Network :
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.
Install the database software using the yum localinstall command.
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 installation of Oracle Database software is now complete.
After successful installation, you can delete the downloaded RPM files, for example:
Creating and Configuring an Oracle Database
The configuration script creates a container database ( XE ) with one pluggable database ( XEPDB1 ) and configures the listener at the default port (1521) and Enterprise Manager Express on port 5500.
You can modify the configuration parameters by editing the /etc/sysconfig/oracle—xe–18c.conf file.
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:
Execute as user root using sudo .
Run the service configuration script:
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 5.
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.
Configuration, Database Files and Logs Location
Table 5-1 Configuration, Database Files and Logs Location
File Name and Location
Purpose
Oracle Base. This is the root of the Oracle Database XE directory tree.
Oracle Home. This home is where the Oracle Database XE is installed. It contains the directories of the Oracle Database XE executables and network files.
Источник
Установка Oracle Database XE Server на Linux
Общие сведения об Oracle Database Express Edition ( Oracle Database XE )
Oracle Database Express Edition (Oracle Database XE) — это система управления базами данных (СУБД) начального уровня, основанная на программном коде СУБД Oracle Database. Oracle Database XE может быть установлена на любой компьютер с любым количеством процессоров (одна база данных на машину), но с ограничением в 11Гб пользовательских данных, использует не более 1Гб оперативной памяти и только один из имеющихся процессоров. Ограничения, накладываемые на версию Oracle Database XE, могут различаться , так например, в версии Oracle Database XE 10g, максимальный объем пользовательских данных был равен 4Гб, а в Oracle Database XE 11g -11Гб. Кроме всего прочего, в XE-версии, по сравнению с платными продуктами, отсутствуют расширенные средства обеспечения безопасности, технология шифрования SecureFiles Encryption, функции для повышения производительности, оптимизации и надежного хранения больших объемов данных. Тем не менее, Oracle Database XE представляет собой отличную СУБД, вполне пригодную для:
— Разработчиков, работающих с PHP, Java, .NET, XML и приложениями с открытым кодом
— Администраторов баз данных, которым нужна небольшая бесплатная СУБД
— Независимых вендоров, которые хотят бесплатную СУБД стартового уровня для продажи без лишних затрат
— Учебных заведений и студентов, которым необходима бесплатная СУБД
Для работы с Oracle Database XE используется обычный браузер, обеспечивающий простой и удобный web-интерфейс, позволяющий:
— Администрировать базу данных
— Создавать таблицы, представления и другие объекты базы данных
— Импортировать, экспортировать и просматривать табличные данные
— Выполнять запросы и запускать SQL-скрипты
В случае необходимости, имеется возможность простого и быстрого перевода СУБД на коммерческую платформу без потери пользовательских данных.
Установка Oracle Database Express Edition
Скачать актуальную версию СУБД Oracle Database Express Edition можно на странице загрузки сайта Oracle. Для скачивания потребуется регистрация и подтверждение лицензионного соглашения.
Требования к оборудованию и операционным системам для установки Oracle Express Edition имеются в документации, ссылка на которую размещена на странице программы. Необходимо отметить, что список операционных систем семейства Linux, рекомендуемый разработчиком для установки Oracle Database 11g Express Edition довольно скромный:
Oracle Enterprise Linux 4 Update 7
Oracle Enterprise Linux 5 Update 2
Red Hat Enterprise Linux 4 Update 7
Red Hat Enterprise Linux 5 Update 2
SUSE Linux Enterprise Server 10 SP2
SUSE Linux Enterprise Server 11
Тем не менее, установка например Oracle Database XE 11g возможна и в среде других ОС семейства Linux при соответствии минимальным требованиям к системе, в частности — с версией ядра не ниже 2.4.21 и при наличии следующих установленных пакетов:
glibc версии 2.3.4-2.41
make версии не ниже 3.80
binutils версии не ниже 2.16.91.0.5
gcc версии 4.1.2 или старше
libaio версии 0.3.104 или старше.
Перед установкой Oracle Database XE необходимо удалить предыдущую версию СУБД, если она была установлена на данной системе.
Для установки Oracle Database XE нужно:
1. Войти в систему с правами root
2. Перейти на страницу Oracle Database XE
3. Щелкнуть на ссылку Free Download и следовать инструкциям по загрузке Linux — версии Oracle Database XE.
5. По запросу установщика выполнить команду для настройки параметров:
6. Ввести требуемые конфигурационные параметры:
— номер HTTP порта для средства администрирования Oracle Application Express через веб-интерфейс (по умолчанию — 8080) — номер порта для Oracle database listener (по умолчанию — 1521) — пароль для административных учетных записей SYS и SYSTEM — признак режима автоматического запуска СУБД при загрузке системы.
Для запуска службы в ручном режиме используется команда, выполняемая под учетной записью root:
В инсталляционном архиве Oracle Database XE 11g помимо пакета .rpm содержится еще 2 папки :
responce — средство для выполнения ”тихой установки”. Содержит файл xe.rsp , содержимое которого используется для определения параметров установки Oracle Database XE
upgrade — средство для миграции данных с версии 10.2XE на версию 11.2XE. Представляет собой скрипт для выполнения в SQLPlus под учетной записью SYS
Для выполнения ”тихой” установки нужно:
1. В файле xe.rsp задать параметры установки ( или изменить используемые по умолчанию):
ORACLE_LISTENER_PORT: номер порта слушателя Oracle Database XE ORACLE_HTTP_PORT: номер порта для подключения к веб интерфейсу Oracle Application Express ORACLE_PASSWORD: пароль для административных учетных записей SYS и SYSTEM . При начальной установке, пароль один и тот же, но в дальнейшем рекомендуется использовать разные пароли для данных учетных записей. ORACLE_CONFIRM_ PASSWORD: подтверждение пароля для SYS SYSTEM ORACLE_DBENABLE: Yes (y) или no (n) , выполнять автоматический запуск Oracle Database XE при загрузке системы.
2. Создать скрипт для запуска установки с использованием файла xe.rsp :
3. Выполнить данный скрипт под учетной записью root . Информация о ходе установки записывается в файл журнала XEsilentinstall.log
Установка переменных окружения для Oracle Database Express Edition
После завершения установки Oracle Database XE необходимо установить требуемые значения переменных окружения для всех пользователей, которые будут использовать СУБД. Для этого не требуются права суперпользователя root, и в каталоге исполняемых файлов /u01/app/oracle/ product/11.2.0/xe/bin имеются готовые скрипты:
oracle_env.csh — для оболочки C и tcsh oracle_env.sh — для оболочек sh и bash
Можно отредактировать файлы профилей таким образом, чтобы значения переменных устанавливались при входе пользователей в систему, например, для оболочки bash нужно в файл .bash_profile добавить строку:
Для формирования значений переменных окружения при открытии новой оболочки, данную строку нужно добавить в файл .bashrc
Для работы с Oracle Database, пользователь должен быть членом группы dba , которая создается при установке СУБД.
Удаленный доступ к Oracle Database Express Edition
Для работы с СУБД используется меню ”Приложения” ( Applications) — “Oracle Database 11g Express Edition”
Get Help — страница документации
Backup Database — создание резервных копий базы данных
Get Started — стартовая страница Oracle Database XE. Это основное приложение для администрирования СУБД.
Restore Darabase — восстановление базы данных из резервной копии.
Run SQL Command Line — работа с СУБД в командной строке приложения sqlplus .
Start Database — запустить базу данных.
Stop Database — остановить базу данных.
Для администрирования Oracle Database XE используется ”Get Started”
Storage — просмотр информации об использовании памяти.
Sessions — сведения о сеансах пользователей.
Parameters — параметры работы СУБД.
Application Express — основное приложение для работы с Oracle Database XE. Используется для добавление или удаления пользователей, управления службами, мониторинга активности, работы с данными и приложениями.
После установки, доступ к веб-странице для работы с СУБД возможен только на локальном компьютере. Чтобы включить удаленный доступ нужно :
запустить от имени суперпользователя root, приложение для работы с Oracle Database в командной строке и подключиться к базе данных под учетной записью SYSTEM:
после появления приглашения к вводу ( SQL> ) выполнить команду:
EXEC DBMS_XDB.SETLISTENERLOCALACCESS (FALSE);
После этого возможно удаленное подключение к базам данных с использованием браузера и URL следующего вида:
http://имя или IP:8080/apex , например:
Перейдя по ссылке, необходимо ввести имя базы данных, имя пользователя и пароль для подключения к серверу, после чего откроется основное окно приложения для работы с СУБД Oracle Database XE:
Необходимо учитывать, что в бесплатной версии Oracle Database XE, данные между клиентом и сервером пересылаются в обычном текстовом виде без шифрования, и, если требуется надежная защита информации, то нужно либо выполнить переход на платную версию, либо применять стороннее программное обеспечение.
Если вы желаете помочь развитию проекта, можете воспользоваться кнопкой «Поделиться» для своей социальной сети
Источник
Установка oracle express oracle linux
По Вашему запросу ничего не найдено.
Рекомендуем сделать следующее:
Проверьте правильность написания ключевых слов.
Используйте синонимы введенных Вами ключевых слов, например “приложение” вместо “программное обеспечение”.
Попробуйте воспользоваться одним из популярных поисковых запросов ниже.
Начните новый поиск.
Installing Oracle Database XE on Debian, Ubuntu, and Kubuntu
By Todd Trichler
What happens when you try to install Oracle Database XE Beta on a new Linux distribution? You learn a whole lot!
Updated August 2007 — LinuxWorld Mexico Installfest
In my day job I get to work with .rpm-based Linux distros quite a bit in the form of RHEL, SLES, and Asianux. Recently I noticed that the Oracle Database XE doc mentions support for Debian. My sum experience with this could best be described as vicarious, having never before installed Oracle on a .deb-based distro.
What follows is one man’s walk through the technical steps to install the beta of Oracle Database XE on Kubuntu 5.10 Breezy, a Linux distro based on the .deb package format and KDE. The lessons learned and suggestions also apply to Debian, Ubuntu, and other .deb distros.
If you are interested in the «back story» about this journey from the various PHP developers and people who helped along the way, please read the sidebar.
Update (March 2006): With Oracle Database XE in production, it is even easier to install Oracle on Debian-based distros (thanks to Joel Becker).
There is now an apt-get repository up on oss.oracle.com for XE. Just add:
deb http://oss.oracle.com/debian unstable main non-free
to /etc/apt/sources.list and then:
# wget http://oss.oracle.com/el4/RPM-GPG-KEY-oracle -O- | sudo apt-key add — # apt-get update # apt-get install oracle-xe ‘libaio’ and ‘bc’ are in the repository, so dependancies will pull them in if the user doesn’t have them. (Note: You will need to ‘sudo’ or have ‘root’ privileges to install XE.)
Catch-all disclaimer: These steps worked for me on my configuration; they might not work on yours.
Download an iso of Kubuntu Breezy version and burn an install disc.
Do a standard install of Kubuntu. When prompted on the partioning choose «Erase entire HD and use LVM».
Do not set any of the kernel parameters because the latest beta versions of XE are supposed to check the parameters and increase them if neccessary. (Note: If you are using an older beta you will want to check those; better still, download the latest version.)
Confirm that the pre-requisite (glibc and libaio equivalent) libraries are installed. On Kubuntu and Ubuntu they are called «libc6» and «libaio1». (I used Adept, the new GUI package management tool, to install libaio1; libc6 was already installed.) As Wim Coekaerts described in his podcast on the subject, currently you need to use Debian unstable to get the equivalent packages, but in the future with Debian sid they would just be included.
As _root_ began installing the latest available Oracle XE beta:
# cd /home/todd/Desktop root@kubuntu:/home/todd/Desktop# ls DapperDevStatus02-Feb-2006.pdf oracle-xe_10.2.0.1-0.060128_i386.deb trash.desktop root@kubuntu:/home/todd/Desktop# dpkg -i oracle-xe_10.2.0.1-0.060128_i386.deb Selecting previously deselected package oracle-xe. (Reading database . 58594 files and directories currently installed.) Unpacking oracle-xe (from oracle-xe_10.2.0.1-0.060128_i386.deb) . This system does not meet the minimum requirements for swap space. Based on the amount of physical memory available on the system, Oracle Database 10g Express Edition requires 1006 MB of swap space. This system has 799 MB of swap space. Configure more swap space on the system and retry the installation. dpkg: error processing oracle-xe_10.2.0.1-0.060128_i386.deb (—install): subprocess pre-installation script returned error exit status 1 Errors were encountered while processing: oracle-xe_10.2.0.1-0.060128_i386.deb root@kubuntu:/home/todd/Desktop#
Note: I would not recommend using these types of commands to add swap unless you either understand what they are doing, or you trust the person who has recommended the fix and they are familiar with your system. Better still, add enough swap to start with. Well placed sources tell me that by the time Kubuntu 6.04 Dapper goes production (April 2006?), this might not be an issue.
root@kubuntu:/home/todd/Desktop# dpkg -i oracle-xe_10.2.0.1-0.060128_i386.deb (Reading database . 62016 files and directories currently installed.) Unpacking oracle-xe (from oracle-xe_10.2.0.1-0.060128_i386.deb) . Setting up oracle-xe (10.2.0.1-0.060128) . Oracle Database 10g Express Edition is not configured. You must run ‘/etc/init.d/oracle-xe configure’ as the root user to configure the database. Executing Post-install steps. You must run ‘/etc/init.d/oracle-xe configure’ as the root user to configure the database.
Although it is installed at this point you still need to configure it :
This will configure on-boot properties of Oracle Database XE. The following questions will determine whether the database should be starting upon system boot, the ports it will use, and the passwords that will be used for database accounts. Press to accept the defaults. Ctrl-C will abort.
Specify the HTTP port that will be used for Oracle Application Express [8080]: Specify a port that will be used for the database listener [1521]: Specify a password to be used for database accounts. Note that the same password will be used for SYS and SYSTEM. Oracle recommends the use of different passwords for each database account. This can be done after initial configuration: Confirm the password: (* make sure you remember this password *) Do you want Oracle Database 10g Express Edition to be started on boot (y/n) [y]: y Starting Oracle Net Listener. Done Configuring Database. Done Starting Oracle Database 10g Express Edition Instance. Done Installation Completed Successfully. To access the Database Home Page go to «http://127.0.0.1:8080/apex» root@kubuntu:/home/todd/Desktop#
At this point you can fire up Firefox http://127.0.0.1:8080/apex, login as ‘system’ with the ‘password’ you created during the install, and you should see the XE homepage:
Known gotchas and workarounds FAQ:
Q. Hey, if it’s installed, where are my menu items? A. With this beta you will find XE’s lost menu items, in the conveniently named Lost & Found. But before you run off to fix the structure with KDE’s menu editor, you might try rebooting. For me, a reboot seemed to refresh the menu structure, offering a more presentable menu.
Q. Minor menu item anomaly after reboot: The refreshed menu still has an extra «Getting Started with XE.» Why? A. I guess they really want us to get started with XE!
Q. How come my user ‘todd’ can’t start the database using the created menu item? Q. How come my user ‘todd’ can’t start the database using the created menu item? A. User ‘todd’ is not a member of the ‘dba’ group. You can add the user by navigating to the System Settings using the adminstrative mode to add user ‘todd’ to the ‘dba’ group.
Q. For some reason, default behavior in Konqueror does not mesh well with XE menu items. A. the easiest fix here is to use Adept to install Firefox. They have done some work with Firefox recently and it is getting fairly stable on Kubuntu.
Q. Why do I get a ‘bc’ when I install on the Kubuntu server version? A. The bc errors are because that package is not installed as it is on the dektop version. Either do a#apt-get install oracle-xe from oss.oracle.com to pull in the ‘bc’ package or install it manually before installing XE.
Q. When I install XE on the Kubuntu server version, sometimes the XE menu items show up in Lost&Found. Why? A. This is because XE expects KDE to be already in place. If you install the Kubuntu server version, first do a #apt-get install kubuntu-desktop firefox and only then install XE ( #apt-get install oracle-xe). The graphical menu items will be correct.
If you have any interesting links about installing XE on other distributions, please post them via the «comments» email. After looking at the differences between the dpkg and .rpm-based systems, my curiousity has gotten the better of me and would like to compare the nuances.
Birth of a .deb Package
When XE came out in 2005 I downloaded the .rpm version and installed it succesfully on RHEL4 and SLES9. Seeing that it also would support Debian-based distros, I decided to try and install it on one. I chose Kubuntu as my target OS, mainly because it is a .deb-based distro that uses my familiar KDE desktop. In my opinion, KDE is easier for newbies and for people with a Windows background. (If you prefer Gnome desktop, you might want to try this on Ubuntu.) The only major problem I have with Kubuntu is that Firefox does not come installed by default.
In November I used the ‘alien’ tool to create a .deb packge from the .rpm version, and was able to install a rudimentary database with lots of errors and mangled menus. When I asked Wim about the menus, he said that Joel Becker on our Linux kernel team was looking into creating a .deb package.
Developers are «territorial»; they like to «mark their ground» and are the best champions of their chosen technologies. Paul Scott, a IT administrator for a South Africa university was minding his own business, sitting with his laptop in a Frankfurt lobby during the International PHP Conference. On his laptop was a Debian and another sticker I had seen being handed out in conjunction with Ubuntu CDs. Turns out that not only is he familiar with Debian’s packaging system, but he has also built packages for Ubuntu64 Linux. At the Installfest we also met Austrian Clemens Fink, who at a previous fest had succesfully installed Oracle Database 10g EE on his own custom-rolled Debian kernel.
Paul and Clemens spent about 4 hours cleaning up the menus on the initial OracleXE.deb alpha version, while I sat marvelling at their ability to navigate the differences between the .rpm menu system that XE had originally been built against and the dpkg system. About 30 minutes into it they had a working version. They then spent the rest of the time «debianizing» it and making sure it was done right or in a «Debian way»—I guess when it is a labor of love and you are working with your chosen technologies, attention to detail comes naturally. Thanks guys!
When I got back to HQ, Joel set up a workspace that we could use to collaborate with them, with Joel getting the latest tar balls from ST. After this six-city, three-continent, multi-culture collaboration and several iterations later, the beta version of oracle-xe_10.2.0.1-0.060128_i386.deb was born.