Как установить oracle 19c
Oracle Database 19c Installation On Oracle Linux 7 (OL7)
This article describes the installation of Oracle Database 19c 64-bit on Oracle Linux 7 (OL7) 64-bit. The article is based on a server installation with a minimum of 2G swap and secure Linux set to permissive. An example of this type of Linux installation can be seen here here.
Download Software
Download the Oracle software from OTN or MOS depending on your support status.
Hosts File
The «/etc/hosts» file must contain a fully qualified name for the server.
Set the correct hostname in the «/etc/hostname» file.
Oracle Installation Prerequisites
Perform either the Automatic Setup or the Manual Setup to complete the basic prerequisites. The Additional Setup is required for all installations.
Automatic Setup
If you plan to use the «oracle-database-preinstall-19c» package to perform all your prerequisite setup, issue the following command.
It is probably worth doing a full update as well, but this is not strictly speaking necessary.
It’s worth running the all the YUM commands listed in the manual setup section. Depending on the OS package groups you have selected, some additional packages might also be needed.
If you are using RHEL7 or CentOS7, you can pick up the PRM from the OL7 repository and install it. It will pull the dependencies from your normal repositories.
Manual Setup
If you have not used the «oracle-database-preinstall-19c» package to perform all prerequisites, you will need to manually perform the following setup tasks.
Add the following lines to the «/etc/sysctl.conf» file, or in a file called «/etc/sysctl.d/98-oracle.conf».
Run one of the following commands to change the current kernel parameters, depending on which file you edited.
Add the following lines to a file called «/etc/security/limits.d/oracle-database-preinstall-19c.conf» file.
Someone in the comments suggested you might need to add the previous lines into the «/etc/security/limits.conf» file also for CentOS7. This is definitely not needed for OL7, but worth considering if the installer gives prerequisite failures for these settings.
Add the following line to the «/etc/pam.d/login» file, if it does not already exist.
The following packages are listed as required. Many of the packages should be installed already.
Create the new groups and users.
Uncomment the extra groups you require.
Additional Setup
The following steps must be performed, whether you did the manual or automatic setup.
Set the password for the «oracle» user.
Set secure Linux to permissive by editing the «/etc/selinux/config» file, making sure the SELINUX flag is set as follows.
Once the change is complete, restart the server or run the following command.
If you have the Linux firewall enabled, you will need to disable or configure it, as shown here. To disable it, do the following.
If you are not using Oracle Linux and UEK, you will need to manually disable transparent huge pages.
Create the directories in which the Oracle software will be installed.
Putting mount points directly under root without mounting separate disks to them is typically a bad idea. It’s done here for simplicity, but for a real installation «/» storage should be reserved for the OS.
Unless you are working from the console, or using SSH tunnelling, login as root and issue the following command.
The scripts are created using the cat command, with all the «$» characters escaped. If you want to manually create these files, rather than using the cat command, remember to remove the «\» characters before the «$» characters.
Create a «scripts» directory.
Create an environment file called «setEnv.sh». The «$» characters are escaped using «\». If you are not creating the file with the cat command, you will need to remove the escape characters.
Add a reference to the «setEnv.sh» file at the end of the «/home/oracle/.bash_profile» file.
Create a «start_all.sh» and «stop_all.sh» script that can be called from a startup/shutdown service. Make sure the ownership and permissions are correct.
Once the installation is complete and you’ve edited the «/etc/oratab», you should be able to start/stop the database with the following scripts run from the «oracle» user.
You can see how to create a Linux service to automatically start/stop the database here.
Installation
Log into the oracle user. If you are using X emulation then set the DISPLAY environmental variable.
Switch to the ORACLE_HOME directory, unzip the software directly into this path and start the Oracle Universal Installer (OUI) by issuing one of the following commands in the ORACLE_HOME directory. The interactive mode will display GUI installer screens to allow user input, while the silent mode will install the software without displaying any screens, as all required options are already specified on the command line.
Run the root scripts when prompted.
You can read more about silent installations here.
You are now ready to create a database.
Database Creation
You create a database using the Database Configuration Assistant (DBCA). The interactive mode will display GUI screens to allow user input, while the silent mode will create the database without displaying any screens, as all required options are already specified on the command line.
You can read more about silent database creation here.
Post Installation
Edit the «/etc/oratab» file setting the restart flag for each instance to ‘Y’.
Enable Oracle Managed Files (OMF) and make sure the PDB starts when the instance starts.
Step by Step Oracle 19c Installation On Linux
In this article we are going to see Oracle Database 19c (19.3) for Linux 7.6
Download the 19c software from Oracle Support.
Unzip the 19c software and execute runInstaller :
Let’s start the oracle binaries installation and oracle 18c database creation.
Step1 : Click create and configure a single instance database
Step2 : Click Server class
Step3 : Select Enterprise Edition
Step 4:Choose location for ORACLE_BASE
Step 5: Select configuration type as General Purpose / Transaction Processing.
Step 6: Enter Database name
Step 7: Enter database file location
Step 8: Enable Archivelog mode option for database
Step 9: Enter SYS and SYSTEM user password
Step 10: Check OS groups for installation
Step 11: Check Prerequisite checks for 19c database installation
Step 12: Check Summary
Step 13: Run root.sh and Orainventory scripts :
Changing permissions of /u01/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.
Changing groupname of /u01/app/oraInventory to oinstall.
The execution of the script is complete.
] # sh /u01/app/oracle/product/19.0.0/root.sh
Performing root user operation.
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /u01/app/oracle/product/19.0.0
Enter the full pathname of the local bin directory: [/usr/local/bin]:
Copying dbhome to /usr/local/bin …
Copying oraenv to /usr/local/bin …
Copying coraenv to /usr/local/bin …
Creating /etc/oratab file…
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Oracle Trace File Analyzer (TFA – Standalone Mode) is available at :
/u01/app/oracle/product/19.0.0/bin/tfactl
Step 14: Check database status
] # sqlplus / as sysdba
SQL*Plus: Release 19.0.0.0.0 – Production on Thu May 2 20:45:55 2019
Version 19.3.0.0.0
Copyright (c) 1982, 2019, Oracle. All rights reserved.
Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 – Production
Version 19.3.0.0.0
SQL> select instance_name,status from v$instance;
Oracle database 19c installation is completed successfully.
Русские Блоги
Установка Oracle 19c RPM
Oracle 19c, или Oracle 12.2.0.3, является стабильной версией в 12c. Как и Oracle 11.2.0.4, стоит принять решение об обновлении. Из диаграммы последовательности версий, поддерживаемой Oracle, мы видим, что Oracle 19c Должность,
Oracle 19c ставит стабильность в качестве основной цели этого выпуска. Разработчики сосредоточены на устранении известных проблем, а не на добавлении новых функций. Это может стать ключевым фактором повышения надежности 19c и предоставления клиентам возможности принять решение об обновлении.
19c соответствующие технические документы,
Для меня 12c относительно незнаком. В конце концов, обычно нет возможности использовать его, но если нет условий, мы должны создать условия. Чтобы понять 19c, первым шагом является создание тестовой среды.
Что касается установки 19c, по сравнению с 11g, в дополнение к поддержке графики, командной строки и установки без вывода сообщений, самое большое улучшение заключается в поддержке установки RPM.
Чтобы установить Oracle 19c в Linux, вам нужны OL7, RHEL7, SLES12 или выше. Oracle Enterprise Linux6 и RedHat Linux6 не появились в официальном списке,
Ссылка для скачивания пакета 19c RPM,
Видно, что 19c начал поддерживать корпоративную версию RPM объемом 2,5 ГБ,
Используйте ручной метод для установки базы данных 19c через RPM, требуется только два шага,
Шаг 1: Установите oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm
Шаг 2: Установите oracle-database-ee-19c-1.0-1.x86_64.rpm
Шаг 1: Установить oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm
Если платформе OEL нужно только выполнить,
Если это не платформа OEL, вы должны сначала загрузить RPM соответствующей платформы, я использовал RedHat 7.4, адрес ссылки для скачивания,
Найдите preinstall-19c и найдите,
Первый раз, когда он выполняется, он может быть неуспешным. В моей тестовой среде, из сообщения об ошибке, отсутствуют некоторые зависимые библиотеки
Согласно подсказке MOS (2254198.1), этот пакет требуется для Oracle Text.Если вы не используете Oracle Text, вы можете игнорировать этот пакет, который был удален из установочного пакета RedHat 7.
Если вы не можете допустить каких-либо ошибок, вы должны установить его, перейдите по этой ссылке, скачайте и установите его,
Шаг 2: Установить oracle-database-ee-19c-1.0-1.x86_64.rpm
На данный момент нужно только выполнить установку oracle-database-ee-19c-1.0-1.x86_64.rpm. Для этого также требуется 1,3 ГБ свободного места, поэтому подготовка достаточного пространства перед установкой является обязательным условием.
Установите снова, это займет всего несколько минут, чтобы завершить установку программного обеспечения Oracle 19c,
После завершения установки программного обеспечения, следующим шагом является создание базы данных, инструкция
Но для первого выполнения все еще была ошибка, требующая выполнения root,
Этот процесс выполнения очень похож на 11 г. Для завершения выполнения требуется более десяти минут.
Из пути вы можете видеть, что связанные управляющие файлы, файлы журналов, файлы данных,
Как и 11g, профиль пользователя оракула должен быть настроен для добавления переменных среды,
Русские Блоги
Создание и удаление Oracle 19C CDB
1. Установите ORACLE19C с помощью следующей ссылки.
Автономная установка rpm Oracle19c под Linux
2. После того, как следующий код необходимо выполнить, будет автоматически создана CDB.
3. Если вам нужно создать новую CDB, вам нужно изменить два файла.
Первый файл:
1. Измените файл конфигурации по умолчанию.
2. Измените содержание
3. Измените имя файла конфигурации.
Примечание. Имя файла должно быть изменено на параметры, настроенные в указанном выше файле конфигурации.
oracledb_ORACLE_SID-ORACLE_VERSION.conf
4. Измените файл конфигурации.
4. Инициализировать новую CDB.
5. После завершения установки, согласно содержанию сообщения об установке в первой части статьи, вам необходимо изменить переменную среды, чтобы указать новое имя CDB для входа в систему, в противном случае вы войдете в ранее установленную CDB.
Это оно!
5. Удалить метод CDB
1. Используйте идентификатор SYSDBA для входа в SQLPLUS, запросите статус CDB,
2. Закройте базу данных.
3. Измените статус базы данных на «Смонтирована».
4. Удалите базу данных.
5. Отредактируйте файл конфигурации и удалите элемент запуска экземпляра.
6. Удалите строку или измените последнюю Y на N
7. Удалите файл базы данных.
8. При установке новой CDB информация и конфигурация старого монитора автоматически копируются, и их необходимо только восстановить.
Русские Блоги
RHEL 7.5 Oracle 19c Руководство по установке и настройке параметров
Oracle не смогла выпустить версию Oracle 19c exadata 13 февраля 2019 г., и ее можно протестировать на платформе Linux.
Включает установочный каталог и настройку параметров:
## Настроить параметры ядра
# kernel.shmmax = memory / 2 * 1024 * 1024 * 1024 3G
#kernel.shmall = shmmax/4096
cat > /etc/sysctl.conf
fs.file-max = 6815744
kernel.sem = 250 32000 100 128
kernel.shmmni = 4096
kernel.shmall = 786048
kernel.shmmax = 3221225472
kernel.panic_on_oops = 1
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
net.ipv4.ip_local_port_range = 32768 61000
fs.aio-max-nr = 3145728
#vm.nr_hugepages = 92200
vm.vfs_cache_pressure=200
vm.swappiness=10
vm.min_free_kbytes=524288
vm.dirty_ratio = 5
vm.dirty_background_ratio=5
vm.dirty_writeback_centisecs=100
vm.dirty_expire_centisecs=100
vm.drop_caches=3
vm.overcommit_memory=2
kernel.panic = 10
kernel.sysrq=1
eof
cat > /etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft stack 10240
oracle hard stack 32768
oracle hard memlock 3145728
oracle soft memlock 3145728
eof
echo «session required pam_limits.so» >> /etc/pam.d/login
## Отключить THP
### Закройте THP
# cat /sys/kernel/mm/transparent_hugepage/enabled
#[always] madvise never > /etc/systemd/logind.conf
# Перезапустите службу systemd-logind или перезапустите хост
# systemctl daemon-reload
# systemctl restart systemd-logind
### Ссылка: ПРЕДУПРЕЖДЕНИЕ: установка RemoveIPC = yes в Redhat 7.2 приводит к сбою экземпляров ASM и базы данных, а также любого приложения, использующего сегмент общей памяти (SHM) или
Семафоры (SEM) (идентификатор документа 2081410.1)
### При последующих обновлениях ОС вам также необходимо проверить этот параметр, чтобы избежать связанных проблем.
## Настройка хранилища: крайний срок по умолчанию для Red Hat 7 не требует корректировки
###[[email protected] rpm]# more /sys/block/sdb/queue/scheduler
###noop deadline [cfq]
##echo deadline > /sys/block/sdb/queue/scheduler
## Настроить переменные среды Oracle
cat > /home/oracle/.bash_profile
export ORACLE_BASE=/oracle/product
export ORACLE_HOME=/oracle/product/19/db
export PATH=\$PATH:\$ORACLE_HOME/bin:\$ORACLE_HOME/OPatch
export ORACLE_SID=rh19c
eof
Установите необходимые программные пакеты для базы данных:
Доступ к системному ISO можно получить через yum, а метод установки следующий:
Oracle начинает с 18c и распаковывает программное обеспечение базы данных непосредственно в каталог ORACLE_HOME.
Выберите установку только программного обеспечения:
Поскольку память конфигурации виртуальной машины мала, аварийный сигнал параметра shmall можно игнорировать.
Установите совместимое программное обеспечение:
После завершения установки используйте пользователя root для выполнения двух сценариев:
Создайте монитор через netca, который совместим с предыдущим интерфейсом 11g.
Создайте базу данных через dbca:
Выберите указанный набор символов:
Параметры базы данных настраиваются следующим образом, и конкретные условия необходимо настраивать в соответствии с реальной ситуацией:
alter profile default limit PASSWORD_LIFE_TIME UNLIMITED;
alter profile ORA_STIG_PROFILE limit PASSWORD_LIFE_TIME UNLIMITED;
begin
DBMS_AUTO_TASK_ADMIN.DISABLE(
client_name => ‘sql tuning advisor’,
operation => NULL,
window_name => NULL);
end;
/
begin
DBMS_AUTO_TASK_ADMIN.DISABLE(
client_name => ‘auto space advisor’,
operation => NULL,
window_name => NULL);
end;
/
Завершите установку после перезапуска базы данных.