I am encountering the same issue as reported by the OP when I perform the installation on Windows 10 Enterprise.
The installation was performed after implementing the suggestions made by Christian.Shay. However, the error/rollback of the installation persists.
The log file for the installation shows no errors. I have pasted the last 50 lines from the log file here.
Log file excerpt
..
NFO: passing params to cf done
INFO: done saving info by cf
INFO: [May 3, 2019 8:17:49 AM] InstallProgressMonitor: Completed phase 64
INFO: Adding the iterator oracle.sysman.oii.oiic.OiicCloneAPISession$OiicAPISelCompsInstall
INFO: Adding the iterator oracle.sysman.oii.oiif.oiifw.OiifwInstExitWCDE
INFO: Since operation was successful, move the current OiicAPISessionDetails to installed list
INFO: [May 3, 2019 8:17:49 AM] Number of root scripts to be executed = 0
INFO: [May 3, 2019 8:17:49 AM] isSuccessfullInstallation: true
INFO: [May 3, 2019 8:17:49 AM] isSuccessfullRemoteInstallation: true
INFO: [May 3, 2019 8:17:49 AM] Adding ExitStatus SUCCESS to the exit status set
INFO: [May 3, 2019 8:17:49 AM] Completed setting up Clone
WARNING: [May 3, 2019 8:17:50 AM] Could not locate file: C:apporacledbhomeXEinstallfiles.lst
INFO: [May 3, 2019 8:17:50 AM] Executing [C:apporacledbhomeXEinventoryScriptsextbinvcredist_x64.exe, /q, /norestart]
with environment variables {PATH=C:apporacledbhomeXEbin;C:apporacledbhomeXEouilibwin32;C:apporacledbhomeXEouilibwin64;C:apporacleproduct18.0.0dbhomeXEbin;C:appvacharyaxproduct18.0.0dbhomeXEbin;C:apporacleproduct12.2.0client_1bin;C:appclientvacharyaproduct12.2.0client_1bin;C:Program Files (x86)Common FilesOracleJavajavapath;C:windowssystem32;C:windows;C:windowsSystem32Wbem;C:windowsSystem32WindowsPowerShellv1.0;C:windowsSystem32OpenSSH;C:Program FilesTortoiseSVNbin;C:Program Files (x86)PuTTY, LOCALAPPDATA=C:UsersvacharyaxAppDataLocal, PROCESSOR_LEVEL=6, USERDOMAIN=CAC_EAST, PROMPT=$P$G, ALLUSERSPROFILE=C:ProgramData, PROCESSOR_ARCHITECTURE=AMD64, PSModulePath=C:Program FilesWindowsPowerShellModules;C:windowssystem32WindowsPowerShellv1.0Modules, SystemDrive=C:, =C:=C:apporacledbhomeXE, APPDATA=C:UsersvacharyaxAppDataRoaming, LD_LIBRARY_PATH=C:apporacledbhomeXElib;C:apporacledbhomeXEouilibwin64;C:apporacledbhomeXEbin, USERNAME=vacharyax, USERDNSDOMAIN=CAC.COM, ORACLE_HOME=C:apporacledbhomeXE, PWD=C:/windows/system32, ProgramFiles(x86)=C:Program Files (x86), TNS_Admin=\cac.comdfsTNS_Admin, CommonProgramFiles=C:Program FilesCommon Files, PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC, DriverData=C:WindowsSystem32DriversDriverData, OS=Windows_NT, COMPUTERNAME=VACHARYA-10, PROCESSOR_REVISION=5e03, CommonProgramW6432=C:Program FilesCommon Files, ComSpec=C:windowssystem32cmd.exe, ProgramData=C:ProgramData, ProgramW6432=C:Program Files, SystemRoot=C:windows, TEMP=C:UsersVACHAR~1AppDataLocalTemp, PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 94 Stepping 3, GenuineIntel, USERPROFILE=C:Usersvacharyax, TMP=C:UsersVACHAR~1AppDataLocalTemp, CommonProgramFiles(x86)=C:Program Files (x86)Common Files, ProgramFiles=C:Program Files, PUBLIC=C:UsersPublic, NUMBER_OF_PROCESSORS=4, windir=C:windows}
INFO: [May 3, 2019 8:17:50 AM] Starting Output Reader Threads for process C:apporacledbhomeXEinventoryScriptsextbinvcredist_x64.exe
INFO: [May 3, 2019 8:17:51 AM] The process C:apporacledbhomeXEinventoryScriptsextbinvcredist_x64.exe exited with code 3,010
INFO: [May 3, 2019 8:17:51 AM] Waiting for output processor threads to exit.
INFO: [May 3, 2019 8:17:51 AM] Output processor threads exited.
INFO: [May 3, 2019 8:17:51 AM] VC Redistributable tool failed.
INFO: [May 3, 2019 8:17:51 AM] Executing [C:apporacledbhomeXEbindiagsetup.bat, clustercheck=false, basedir=C:apporacle, oraclehome=C:apporacledbhomeXE]
with environment variables {PATH=C:apporacledbhomeXEbin;C:apporacledbhomeXEouilibwin32;C:apporacledbhomeXEouilibwin64;C:apporacleproduct18.0.0dbhomeXEbin;C:appvacharyaxproduct18.0.0dbhomeXEbin;C:apporacleproduct12.2.0client_1bin;C:appclientvacharyaproduct12.2.0client_1bin;C:Program Files (x86)Common FilesOracleJavajavapath;C:windowssystem32;C:windows;C:windowsSystem32Wbem;C:windowsSystem32WindowsPowerShellv1.0;C:windowsSystem32OpenSSH;C:Program FilesTortoiseSVNbin;C:Program Files (x86)PuTTY, LOCALAPPDATA=C:UsersvacharyaxAppDataLocal, PROCESSOR_LEVEL=6, USERDOMAIN=CAC_EAST, PROMPT=$P$G, ALLUSERSPROFILE=C:ProgramData, PROCESSOR_ARCHITECTURE=AMD64, PSModulePath=C:Program FilesWindowsPowerShellModules;C:windowssystem32WindowsPowerShellv1.0Modules, SystemDrive=C:, =C:=C:apporacledbhomeXE, APPDATA=C:UsersvacharyaxAppDataRoaming, LD_LIBRARY_PATH=C:apporacledbhomeXElib;C:apporacledbhomeXEouilibwin64;C:apporacledbhomeXEbin, USERNAME=vacharyax, USERDNSDOMAIN=CAC.COM, ORACLE_HOME=C:apporacledbhomeXE, PWD=C:/windows/system32, ProgramFiles(x86)=C:Program Files (x86), TNS_Admin=\cac.comdfsTNS_Admin, CommonProgramFiles=C:Program FilesCommon Files, PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC, DriverData=C:WindowsSystem32DriversDriverData, OS=Windows_NT, COMPUTERNAME=VACHARYA-10, PROCESSOR_REVISION=5e03, CommonProgramW6432=C:Program FilesCommon Files, ComSpec=C:windowssystem32cmd.exe, ProgramData=C:ProgramData, ProgramW6432=C:Program Files, SystemRoot=C:windows, TEMP=C:UsersVACHAR~1AppDataLocalTemp, PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 94 Stepping 3, GenuineIntel, USERPROFILE=C:Usersvacharyax, TMP=C:UsersVACHAR~1AppDataLocalTemp, CommonProgramFiles(x86)=C:Program Files (x86)Common Files, ProgramFiles=C:Program Files, PUBLIC=C:UsersPublic, NUMBER_OF_PROCESSORS=4, windir=C:windows}
INFO: [May 3, 2019 8:17:51 AM] Starting Output Reader Threads for process C:apporacledbhomeXEbindiagsetup.bat
INFO: [May 3, 2019 8:17:51 AM] The process C:apporacledbhomeXEbindiagsetup.bat exited with code 0
INFO: [May 3, 2019 8:17:51 AM] Waiting for output processor threads to exit.
INFO: [May 3, 2019 8:17:51 AM] Output processor threads exited.
INFO: [May 3, 2019 8:17:51 AM] All forked task are completed at state setup
INFO: [May 3, 2019 8:17:51 AM] Completed background operations
INFO: [May 3, 2019 8:17:51 AM] Validating state <setup>
INFO: [May 3, 2019 8:17:51 AM] Completed validating state <setup>
INFO: [May 3, 2019 8:17:51 AM] Verifying route success
INFO: [May 3, 2019 8:17:51 AM] Waiting for completion of background operations
INFO: [May 3, 2019 8:17:51 AM] Completed background operations
INFO: [May 3, 2019 8:17:51 AM] Waiting for completion of background operations
INFO: [May 3, 2019 8:17:51 AM] Completed background operations
INFO: [May 3, 2019 8:17:51 AM] Executing action at state finish
INFO: [May 3, 2019 8:17:51 AM] FinishAction Actions.execute called
INFO: [May 3, 2019 8:17:51 AM] Completed executing action at state <finish>
INFO: [May 3, 2019 8:17:51 AM] Waiting for completion of background operations
INFO: [May 3, 2019 8:17:51 AM] Completed background operations
INFO: [May 3, 2019 8:17:51 AM] Waiting for completion of background operations
INFO: [May 3, 2019 8:17:51 AM] Completed background operations
INFO: [May 3, 2019 8:17:51 AM] Moved to state <finish>
INFO: [May 3, 2019 8:17:51 AM] Waiting for completion of background operations
INFO: [May 3, 2019 8:17:51 AM] Completed background operations
INFO: [May 3, 2019 8:17:51 AM] Validating state <finish>
WARNING: [May 3, 2019 8:17:51 AM] Validation disabled for the state finish
INFO: [May 3, 2019 8:17:51 AM] Completed validating state <finish>
INFO: [May 3, 2019 8:17:51 AM] Terminating all background operations
INFO: [May 3, 2019 8:17:51 AM] Terminated all background operations
INFO: [May 3, 2019 8:17:51 AM] Successfully executed the flow in SILENT mode
INFO: [May 3, 2019 8:17:51 AM] Finding the most appropriate exit status for the current application
INFO: [May 3, 2019 8:17:51 AM] inventory location isC:Program Files (x86)OracleInventory
INFO: [May 3, 2019 8:17:51 AM] Finding the most appropriate exit status for the current application
INFO: [May 3, 2019 8:17:51 AM] Exit Status is 0
INFO: [May 3, 2019 8:17:51 AM] Shutdown Oracle Database 18c Installer
I am getting the below error while trying to install Oracle Database 18C XE on my local system (Windows 10 Pro).
Oracle Database Installation Completed with Errors
The wizard was interrupted before Oracle Database 18c Express Edition could be completely installed.
Your system has not been modified. To complete installation at another time, please run setup again.
Click Finish to exit the wizard.
I tried removing the environment variable Oracle_Home and installed again. Still the installation is rolling back with errors.
How can I resolve this error?

![]()
asked Oct 31, 2019 at 11:26
I was able to resolve the problem by running setup.exe instead of Oracle Database 18c Express Edition.msi
answered May 4, 2020 at 14:12
MischaMischa
611 silver badge2 bronze badges
2
I had same problem. What I did is uninstall old oracle from Control Panel — Programs — uninstal. After that I close all programs and install oracle again.
answered Nov 3, 2019 at 11:24
1
After doing a fair bit of googling on this I concluded there are any number of problems that can cause this. Bottom line is the installer is a bit lame.
For me, it resolved by me first uninstalling my Java SE and then running the Oracle XE Installer again.
Given that this seems pretty fragile it might be worth running it in a VM.
answered Apr 19, 2020 at 22:20
TimTim
2212 silver badges4 bronze badges
remove any java/jre path specified in the environment variable .Also first delete the previously created forder( certain folder was created delete the whole path from ..product ) when earlier you tried to install .
answered Jun 20, 2020 at 6:23
Create new local user in Windows and then install there. It worked for me.
answered Aug 30, 2020 at 12:54
I have downloaded Oracle XE 18c for Windows 64 bit, and tried to install it on a Windows 10 machine. I checked the SHA-256 checksum and it’s correct.
The installation starts fine, but when it’s copying new files it suddenly says «Rolling back installation», then ends and there’s no error log to look at. Any ideas?
(1) «Copying files» screen

(2) «Rolling back» screen

(3) «Finished with errors» screen

asked Mar 4, 2019 at 18:10
4
I run «setup.exe» as administrator instead of «Oracle Database 18c Express Edition.msi» and it worked perfectly.
answered Jun 3, 2020 at 0:39
1
Set Oracle_home to null and reboot your system and then, try again.
I hope that works.
Note:
Make sure that you have all admin privileges before installing it.
![]()
zx485
27.8k28 gold badges54 silver badges59 bronze badges
answered Aug 22, 2019 at 16:04
![]()
PROBLEM SOLVED! Login to your system as an administrator to set up the Oracle database. Compyuter》Manage》Users》Administrator》properties》check out from (accunt is disabled) and Apply.after set password. Then login as administrator and install.
answered Feb 26, 2022 at 16:29
![]()
I had the same issue today. In my case it was caused by the value of the PATH variable in my environment. It was pointing to some Oracle DB binaries and libraries from «Oracle Instant Client», which I set up earlier for the node-oracledb Javascript connector library.
In other words, make sure your PATH doesn’t point to any directory which contains for example a oci.dll file.
You can execute where.exe oci.dll (the ‘.exe’ part is only necessary for PowerShell) in a command prompt to easily check that. If the command outputs anything, then you’ll need to remove the relevant directories from your PATH, at least temporarily.
answered Mar 4, 2020 at 11:04
2
- Extract the zip file in another drive but the drive that contains windows usually C:.
- Go into the extracted Oracle directory and run setup.exe as administrator.
Important: Do not double-click on the MSI file eg. Oracle Database 18c Express Edition.msi.
Note: Spaces are not allowed anywhere in the Oracle home directory path. For example, you cannot install in «C:program filesoracleInfra» because of the space character in «program files». The installer does not check for this until several screens after you have entered the path.
answered Aug 18, 2020 at 19:30
ShadyarShadyar
6317 silver badges15 bronze badges
I was having the same problem. Oracle XE was installed on my computer before. When checking «set path» in the command prompt, it could be seen that a reference to the previous Oracle install was in the path. After removing that from the path, the Oracle install worked.
answered Feb 2, 2022 at 17:30
|
118 / 83 / 42 Регистрация: 14.12.2015 Сообщений: 945 |
|
|
1 |
|
|
05.10.2018, 16:41. Показов 12043. Ответов 12
Здравствуйте. При установке выдает вот такую вот ошибку. Может кто сталкивался? Миниатюры
0 |
|
Модератор 4186 / 3026 / 576 Регистрация: 21.01.2011 Сообщений: 13,099 |
|
|
05.10.2018, 16:45 |
2 |
|
Может кто сталкивался? Не сталкивался, но судя по ошибке при задании имени директория для ORACLE_HOME были применены какие-то нехорошие символы.
0 |
|
118 / 83 / 42 Регистрация: 14.12.2015 Сообщений: 945 |
|
|
05.10.2018, 16:51 [ТС] |
3 |
|
Не сталкивался, но судя по ошибке при задании имени директория для ORACLE_HOME были применены какие-то нехорошие символы. Да нет. Цифры и буквы с регистром и все.
0 |
|
Модератор 4186 / 3026 / 576 Регистрация: 21.01.2011 Сообщений: 13,099 |
|
|
05.10.2018, 17:04 |
4 |
|
Цифры и буквы с регистром и все Пробелов нет? Русские буквы есть?
0 |
|
118 / 83 / 42 Регистрация: 14.12.2015 Сообщений: 945 |
|
|
05.10.2018, 17:08 [ТС] |
5 |
|
Пробелов нет? Русские буквы есть? Пробелов нету, буквы английские. Может дело в этой строке что на скриншоте, но ее поменять никак нельзя. Она как информационная идет и все Миниатюры
0 |
|
Модератор 4186 / 3026 / 576 Регистрация: 21.01.2011 Сообщений: 13,099 |
|
|
05.10.2018, 17:11 |
6 |
|
Пробелов нету, буквы английские Какой-нибудь директорий создается или до этого не доходит? И почему такой странный путь?
0 |
|
118 / 83 / 42 Регистрация: 14.12.2015 Сообщений: 945 |
|
|
05.10.2018, 17:12 [ТС] |
7 |
|
Какой-нибудь директорий создается или до этого не доходит? И почему такой странный путь? В том то и дело что это автоматически создается. До этого момента я проста выставляю галочками какую именно базу устанавливать сервер или с минимальными настройками.
0 |
|
141 / 84 / 24 Регистрация: 21.10.2009 Сообщений: 429 |
|
|
05.10.2018, 17:23 |
8 |
|
Устанавливали из архива сразу что ли?
0 |
|
118 / 83 / 42 Регистрация: 14.12.2015 Сообщений: 945 |
|
|
05.10.2018, 17:24 [ТС] |
9 |
|
Устанавливали из архива сразу что ли? Эммм, да)
0 |
|
141 / 84 / 24 Регистрация: 21.10.2009 Сообщений: 429 |
|
|
05.10.2018, 17:30 |
10 |
|
РешениеНадо сначала разархивировать папке в корень диска какого-нибудь, потом запускать установку.
1 |
|
118 / 83 / 42 Регистрация: 14.12.2015 Сообщений: 945 |
|
|
05.10.2018, 17:32 [ТС] |
11 |
|
Распаковал. И теперь вообще установщик не запускается. И от имени администратора пробовал и ни в какую. Антивируса и брандмауэр отключены
0 |
|
141 / 84 / 24 Регистрация: 21.10.2009 Сообщений: 429 |
|
|
05.10.2018, 17:37 |
12 |
|
Он сам запустится от имени администратора, нужно просто распаковать именно в папку в корне какого-то диска, не на рабочий стол или в мои документы.
0 |
|
21 / 16 / 3 Регистрация: 27.01.2013 Сообщений: 90 |
|
|
21.05.2021, 15:23 |
13 |
|
Для тех кто столкнется с подобной проблемой (понятно, что для Talamaur’a это уже не актуально). Сам столкнулся с подобной проблемой 2 часа на неё убил. Дело оказалось не в пути установки (там всё было норм), а в пути из которого запускался инсталлятор (у меня там оказались буквы кириллицы). Может кому пригодится, так ка это единственная тема посвящённая этому вопросу, которую я нашел.
0 |
В данном посте описывается установка 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
Далее используется вторая команда:
[root@dushanbe tmp]# pwd
/tmp
[root@dushanbe tmp]# ls -l oracle*
-rw-rw-rw-. 1 rustam rustam 18244 May 30 00:45 oracle-database-preinstall-18c-1.0-1.el7.x86_64.rpm
[root@dushanbe tmp]#
[root@dushanbe tmp]# rpm -ivh oracle-database-preinstall-18c-1.0-1.el7.x86_64.rpm
warning: oracle-database-preinstall-18c-1.0-1.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY
error: Failed dependencies:
ksh is needed by oracle-database-preinstall-18c-1.0-1.el7.x86_64
libaio-devel is needed by oracle-database-preinstall-18c-1.0-1.el7.x86_64
[root@dushanbe tmp]#
В рассматриваемом случае система требует предварительно установить два зависимых (дополнительных) пакета: ksh и libaio-level. В зависимости от текущих настроек операционной системы возможны требования установки и других зависимых (дополнительных) пакетов. Требуемые пакеты должны быть установлены. Если не настроен доступ к интернету, то пакеты можно найти в папке примонтированного образа (диска или образа, с которого была установлена ОС) – /run/media/<username>. Для этого, например, если используется VirtualBox, то надо в меню «Устройства виртуальной машины» перейти в раздел «Оптические диски» и указать ISO образ вашей операционной системы. Другим вариантом является создание своего репозитория на виртуальной машине и далее можно установить все пакеты из своего репозитория. Ниже устанавливаются зависимые два пакета на операционную систему из примонтированного образа.
[root@dushanbe OL-7.4 Server.x86_64]# cd /run/media/rustam/OL-7.4 Server.x86_64/ [root@dushanbe OL-7.4 Server.x86_64]# pwd /run/media/rustam/OL-7.4 Server.x86_64 [root@dushanbe OL-7.4 Server.x86_64]# ls addons images RELEASE-NOTES-U4-en RPM-GPG-KEY-oracle EFI isolinux RELEASE-NOTES-U4-en.html TRANS.TBL EULA LiveOS repodata GPL Packages RPM-GPG-KEY [root@dushanbe OL-7.4 Server.x86_64]# cd Packages/
В папке Packages определяются необходимые файлы и устанавливаются командой rpm -ivh.
[root@dushanbe Packages]# ls -l ksh* -rw-rw-r--. 1 rustam rustam 903808 May 26 2017 ksh-20120801-34.el7.x86_64.rpm [root@dushanbe Packages]# [root@dushanbe Packages]# rpm -ivh ksh-20120801-34.el7.x86_64.rpm warning: ksh-20120801-34.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY Preparing… ################################# [100%] Updating / installing… 1:ksh-20120801-34.el7 ################################# [100%] [root@dushanbe Packages]# [root@dushanbe Packages]# ls -l libaio-dev* -rw-rw-r--. 1 rustam rustam 12672 Oct 1 2015 libaio-devel-0.3.109-13.el7.i686.rpm -rw-rw-r--. 1 rustam rustam 12624 Oct 1 2015 libaio-devel-0.3.109-13.el7.x86_64.rpm [root@dushanbe Packages]# [root@dushanbe Packages]# rpm -ivh libaio-devel-0.3.109-13.el7.x86_64.rpm warning: libaio-devel-0.3.109-13.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY Preparing… ################################# [100%] Updating / installing… 1:libaio-devel-0.3.109-13.el7 ################################# [100%] [root@dushanbe Packages]#
Теперь устанавливается preinstall пакет еще раз.
[root@dushanbe Packages]# rpm -ivh /tmp/oracle-database-preinstall-18c-1.0-1.el7.x86_64.rpm warning: /tmp/oracle-database-preinstall-18c-1.0-1.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY Preparing… ################################ [100%] Updating / installing… 1:oracle-database-preinstall-18c-1.################################ [100%] [root@dushanbe Packages]#
Как видно, установка пакета успешно завершена и добавлены системные файлы для конфигурации настроек Oracle Database 18с XE. Все значения оставляются по умолчанию, но при необходимости их можно изменять.
[root@dushanbe Packages]# rpm -qa | grep oracle-database-preinstall-18c oracle-database-preinstall-18c-1.0-1.el7.x86_64 [root@dushanbe Packages]# rpm -ql oracle-database-preinstall-18c-1.0-1.el7.x86_64 /etc/rc.d/init.d/oracle-database-preinstall-18c-firstboot /etc/security/limits.d/oracle-database-preinstall-18c.conf /etc/sysconfig/oracle-database-preinstall-18c /etc/sysconfig/oracle-database-preinstall-18c/oracle-database-preinstall-18c-verify /etc/sysconfig/oracle-database-preinstall-18c/oracle-database-preinstall-18c.param /usr/bin/oracle-database-preinstall-18c-verify /var/log/oracle-database-preinstall-18c /var/log/oracle-database-preinstall-18c/results [root@dushanbe Packages]#
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.
Запускается установка БД:
[root@dushanbe Packages]# ls -l /tmp/oracle-data* -rw-rw-rw-. 1 rustam rustam 18244 May 30 00:45 /tmp/oracle-database-preinstall-18c-1.0-1.el7.x86_64.rpm -rw-rw-rw-. 1 rustam rustam 2574155124 May 30 01:10 /tmp/oracle-database-xe-18c-1.0-1.x86_64.rpm [root@dushanbe Packages]# [root@dushanbe Packages]# rpm -ivh /tmp/oracle-database-xe-18c-1.0-1.x86_64.rpm warning: /tmp/oracle-database-xe-18c-1.0-1.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY Preparing… ################################# [100%] Updating / installing… 1:oracle-database-xe-18c-1.0-1 ################################# [100%] [INFO] Executing post installation scripts… [INFO] Oracle home installed successfully and ready to be configured. To configure Oracle Database XE, optionally modify the parameters in '/etc/sysconfig/oracle-xe-18c.conf' and then execute '/etc/init.d/oracle-xe-18c configure' as root. [root@dushanbe Packages]#
Установка успешно завершена и система выдает сообщение: [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.
[root@dushanbe Packages]# cat /etc/sysconfig/oracle-xe-18c.conf #This is a configuration file to setup the Oracle Database. #It is used when running '/etc/init.d/oracle-xe-18c configure'. # LISTENER PORT used Database listener, Leave empty for automatic port assignment LISTENER_PORT= # EM_EXPRESS_PORT Oracle EM Express URL port EM_EXPRESS_PORT=5500 # Character set of the database CHARSET=AL32UTF8 # Database file directory # If not specified, database files are stored under Oracle base/oradata DBFILE_DEST= # SKIP Validations, memory, space SKIP_VALIDATIONS=false [root@dushanbe Packages]#
Во избежание ошибок, необходимо удостовериться, что 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
[root@dushanbe Packages]# /etc/init.d/oracle-xe-18c configure Specify a password to be used for database 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]. Note that the same password will be used for SYS, SYSTEM and PDBADMIN accounts: Confirm the password: Configuring Oracle Listener. Listener configuration succeeded. Configuring Oracle Database XE. Enter SYS user password: ******** Enter SYSTEM user password: ******** Enter PDBADMIN User Password: ******** Prepare for db operation 7% complete Copying database files 29% complete Creating and starting Oracle instance 30% complete 31% complete 34% complete 38% complete 41% complete 43% complete Completing Database Creation 47% complete 50% complete Creating Pluggable Databases 54% complete 71% complete Executing Post Configuration Actions 93% complete Running Custom Scripts 100% complete Database creation complete. For details check the logfiles at: /opt/oracle/cfgtoollogs/dbca/XE. Database Information: Global Database Name:XE System Identifier(SID):XE Look at the log file "/opt/oracle/cfgtoollogs/dbca/XE/XE.log" for further details. 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 [root@dushanbe Packages]#
Установка БД успешно завершена. В конце установки описываются способы подключения к 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 и работа в операционной системе производится под этим пользователем.
[root@dushanbe ~]# passwd oracle Changing password for user oracle. New password: Retype new password: passwd: all authentication tokens updated successfully. [root@dushanbe ~]# [root@dushanbe ~]# su - oracle Last login: Sat May 30 09:53:48 +05 2020 on pts/0 [oracle@dushanbe ~]$
В домашней директории пользователя oracle (/home/oracle) ищется скрытый файл .bash_profile.
[oracle@dushanbe ~]$ ls -al total 24 drwx------. 6 oracle oinstall 4096 May 30 11:24 . drwxr-xr-x. 4 root root 34 May 30 01:05 .. -rw-------. 1 oracle oinstall 41 May 30 11:24 .bash_history -rw-r--r--. 1 oracle oinstall 18 May 26 2017 .bash_logout -rw-r--r--. 1 oracle oinstall 283 May 30 11:18 .bash_profile -rw-r--r--. 1 oracle oinstall 231 May 26 2017 .bashrc drwxr-xr-x. 3 oracle oinstall 18 May 30 11:19 .cache drwxr-xr-x. 3 oracle oinstall 18 May 30 11:19 .config -rw-r--r--. 1 oracle oinstall 172 May 26 2017 .kshrc drwxr-xr-x. 4 oracle oinstall 39 May 29 23:58 .mozilla drwxrwx---. 2 oracle oinstall 40 May 30 01:22 .oracle_jre_usage
Далее файл открывается с помощью nano (или vi) и добавляются переменные ORACLE_HOME, ORACLE_SID и путь $ORACLE_HOME/bin в разделе PATH.
[oracle@dushanbe ~]$ nano .bash_profile
.bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
export ORACLE_HOME=/opt/oracle/product/18c/dbhomeXE
export ORACLE_SID=XE
PATH=$PATH:$HOME/.local/bin:$HOME/bin:$ORACLE_HOME/bin
export PATH
Изменения сохраняются и осуществляется повторный вход в систему под пользователем oracle.
[root@dushanbe ~]# su - oracle
3. Подключение к БД
После установки необходимо произвести подключение к БД, что позволит проверить работоспособность Oracle Database 18c XE. Для подключения к БД (multitenant container database) под пользователем SYS с помощью SQLPlus, необходимо запустить следующую команду sqlplus sys@XE as sysdba.
[oracle@dushanbe ~]$ sqlplus sys@XE as sysdba SQL*Plus: Release 18.0.0.0.0 - Production on Sat May 30 11:20:05 2020 Version 18.4.0.0.0 Copyright (c) 1982, 2018, Oracle. All rights reserved. Enter password: Connected to: Oracle Database 18c Express Edition Release 18.0.0.0.0 - Production Version 18.4.0.0.0 SQL> select status from v$instance; STATUS ------------ OPEN SQL> select instance_name from v$instance; INSTANCE_NAME ------------ XE SQL>
Выполняется запрос выборки данных из Container Database. Данный запрос показывает имеющиеся pluggable databases (PDB).
SQL> select name from v$pdbs; NAME -------------------- PDB$SEED XEPDB1 SQL>
Перезагрузка операционной системы показывает, что listener и база данных не доступны, так как не настроен автоматический запуск этих служб (см. ниже).
[oracle@dushanbe ~]$ lsnrctl status LSNRCTL for Linux: Version 18.0.0.0.0 - Production on 30-MAY-2020 11:31:19 Copyright (c) 1991, 2018, Oracle. All rights reserved. Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=dushanbe)(PORT=1539))) TNS-12541: TNS:no listener TNS-12560: TNS:protocol adapter error TNS-00511: No listener Linux Error: 111: Connection refused Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521))) TNS-12541: TNS:no listener TNS-12560: TNS:protocol adapter error TNS-00511: No listener Linux Error: 111: Connection refused [oracle@dushanbe ~]$ [oracle@dushanbe ~]$ sqlplus / as sysdba SQL*Plus: Release 18.0.0.0.0 - Production on Sat May 30 11:32:02 2020 Version 18.4.0.0.0 Copyright (c) 1982, 2018, Oracle. All rights reserved. Connected to an idle instance. SQL>
Чтобы БД (инстанция) и listener запускались автоматически после включения или перезапуска ОС, выполняются следующие две команды под пользователем root:
[root@dushanbe ~]# systemctl start oracle-xe-18c [root@dushanbe ~]# systemctl enable oracle-xe-18c oracle-xe-18c.service is not a native service, redirecting to /sbin/chkconfig. Executing /sbin/chkconfig oracle-xe-18c on [root@dushanbe ~]#
Перезагружаем операционную систему. Как видно ниже, listener и база данных стартовали автоматически.
[oracle@dushanbe ~]$ lsnrctl status LSNRCTL for Linux: Version 18.0.0.0.0 - Production on 30-MAY-2020 11:41:32 Copyright (c) 1991, 2018, Oracle. All rights reserved. Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=dushanbe)(PORT=1539))) STATUS of the LISTENER Alias LISTENER Version TNSLSNR for Linux: Version 18.0.0.0.0 -Production Start Date 30-MAY-2020 11:39:51 Uptime 0 days 0 hr. 1 min. 41 sec 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/dushanbe/listener/alert/log.xml Listening Endpoints Summary… (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=dushanbe)(PORT=1539))) (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521))) The listener supports no services The command completed successfully [oracle@dushanbe ~]$ [oracle@dushanbe ~]$ sqlplus / as sysdba SQL*Plus: Release 18.0.0.0.0 - Production on Sat May 30 11:43:07 2020 Version 18.4.0.0.0 Copyright (c) 1982, 2018, Oracle. All rights reserved. Connected to: Oracle Database 18c Express Edition Release 18.0.0.0.0 - Production Version 18.4.0.0.0 SQL>
На этом установка и базовые настройки Oracle Database 18c Express Edition на Oracle Linux завершены. Container database и Pluggable database готовы к работе. В последующих постах будут рассмотрены подключение к Pluggable database и работа с ней.
I’ve been running into some problems getting my Oracle installation up and running on Windows Server 2012 r2 at work. Initially, I had installed Oracle on my Win10 laptop for test purposes — I connected to it using Toad for Oracle and had no problems.
However, after installing on Windows Server 2012 r2 I noticed that there were no control files and/or database files in the %ORACLE_BASE%oradataXE directory. In addition, I noticed that my listener.ora file was missing an entry for the XE service instance — once this was added, I could connect via SQLPlus but then the database could not be mounted because there were no control files. I even tried using DBCA to create a new database but ran into invalid memory parameter issue.
I’m starting to wonder if 18c is even compatible with Server 2012 r2 even though the documentation says it is — am I missing some configuration? Any help would be greatly appreciated — I’ve been trying to figure this one out for the last few days. Thanks.
asked May 31, 2019 at 0:25
![]()
6
So I ended up accidentally solving this problem…
After trying to setup a new database in DBCA (Database Configuration Assistant), I went to delete the newly created one only to realize that I had accidentally deleted the «XE» instance. I went ahead and deleted the new instance I had attempted to create as well and then went back into DBCA and created a new instance with SID of «XE» (if I tried with a different SID Oracle XE would complain about the restriction of one instance per install. I also adjusted the sga_target & pga_aggregate_target values to sum to 2GB (another restriction on XE) and lowered the processes value (changed from initial of 4400 to 320 since that is why my laptop used and it worked) and the instance was recreated with all the necessary control & data files.
In summary:
When doing a fresh install of Oracle on Windows Server 2012 r2 (may work for other supported Win Server OS’, but I only have 2012 r2 to test), if the default instance does not have the needed control and/or data files do the following (using Advanced Configuration in DBCA):
- Delete the default instance (this was ‘XE’ in my case). If there are any other instances you attempted to create, delete them as well.
Create a new instance using the default SID (this was ‘XE’ in my case) — if needed, set it as a container databases for any pluggable databases you create in the future.
If using Oracle 18c XE, ensure that the
sga_targetandpga_aggregate_targetvalues sum to the restricted memory limits (2GB) set by XE (my values weresga_target=1536M&pga_aggregate_target=512M).Set processes value to an appropriate value. I’m not sure if this was necessary but , I kept getting ORA-47500 if this was not lowered after I had adjusted sga & pga values.
Create pluggable databases for your instance as needed.
Like I mentioned this solved my issue — please feel free to correct this if I made any incorrect assumptions. Hopefully this will help others if they run into a similar situation — I’m assuming these directions will be tweaked depending on what server OS the install will be accomplished on.
answered Jun 4, 2019 at 15:56
![]()

Что, друг, окружающие стараются тебя не окружать? Даже Oracle не хочет вставать на твою винду? С психологией, конечно, не поможем, но насчет установки Database 21c Express Edition есть решение
При установке может возникнуть ситуация, когда инсталлер начинает откатывать то, что пытался уже установить (минут через 10 после установки)

В итоге установка не проходит

В сети много (без)полезных советов, но один точно поможет. Необходимо скопировать разархивированную папку OracleXE213_Win64 в диск C:/. Далее необходимо запустить файл Setup.exe (именно его, а не msi-файл Oracle Database 21c Express Edition) с правами администратора.

После этого установка пройдет в штатном режиме. При установке у вас запросит пароль к БД

Он вам понадобится в дальнейшем, когда будете подключаться к базе через SQL Developer

Также обратите внимание, что на итоговом окне будут настройки для вашей БД:

P.S.
Кстати, не стоит паниковать, когда идёт конфигурация. Очень долго висит на 7%

Это норма. Особенно, если у вас не самый новый компьютер. Дело сдвинется с места

OracleSQL

Сообщение было отмечено Talamaur как решение