In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces how to install Oracle 19c in OL7.6 through RPM, which has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, let the editor take you to know about it.
Set hostname
[root@localhost ~] # cat / etc/hosts127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4::1 localhost localhost.localdomain localhost6 localhost6.localdomain610.0.0.11 study1.localdomain study1 [root@localhost ~] # cat / etc/hostnamestudy1.localdomain
Install the environment preparation tool
In fact, you can install rpm directly, it will automatically solve the dependency problem, including the environment preparation tool, but in this way, oracle users do not have a home directory, so install the environment preparation tool alone first
[root@study1 /] # yum-y install oracle-database-preinstall-19cLoaded plugins: langpacks Ulninfool7_UEKR5 | 2.5 kB 00:00:00 ol7_latest | 2.7 kB 00:00:00 (1 /) 4): ol7_UEKR5/x86_64/updateinfo | 49 kB 00:00:01 (2 MB 4): ol7_latest/x86_64/updateinfo | 1.1 MB 00 : 00:05 (3lap4): ol7_UEKR5/x86_64/primary_db | 5.7MB 00:00:27 (4lap4): ol7_latest/x86_64/primary_db | 19 MB 00:01:21 Resolving Dependencies (many more lines supressed) Installed: oracle-database-preinstall-19c.x86_64 0lv 1.0-1.el7 Dependency Installed: compat-libcap1.x86_64 0vl 1.10-7.el7 compat-libstdc++-33.x86_64 0v 3.2. 3-72.el7 glibc-devel.x86_64 0 292.0.1.el7 kernel-headers.x86_64 2.17-292.0.1.el7 kernel-headers.x86_64 0 292.0.1.el7 kernel-headers.x86_64 3.10.0-1062.el7 ksh.x86_64 0V 20120801-139.0.1.el7 libaio-devel.x86_64 0V 0.3.109-13.el7 libstdc++-devel.x86_64 0V 4.8.5-39.0. 1.el7 Dependency Updated: glibc.x86_64 0vl 2.17-292.0.1.el7 glibc-common.x86_64 0vl 2.17-292.0.1.el7 libstdc++.x86_64 0vl 4.8.5-39.0.1.el7 Complete! [root@study1 /] #
If it is rhel or centos, download the rmp package of preinstall manually and install it locally (or add the yum source of oracle linux to yum installation)
[root@study1 /] # curl-o oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm https://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/getPackage/oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm% Total% Received% Xferd Average Speed Time Current Dload Upload Total Spent Left Speed100 18204 18204 00 18037 00: 00:01 0: 00:01-18059 [root@study1 /] # yum-y localinstall oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm
Install oracle softwar
[root@study1 db] # yum-y localinstall oracle-database-ee-19c-1.0-1.x86_64.rpmLoaded plugins: langpacks UlninfoExamining oracle-database-ee-19c-1.0-1.x86_64.rpm: oracle-database-ee-19c-1.0-1.x86_64Marking oracle-database-ee-19c-1.0-1.x86_64.rpm to be installedResolving Dependencies-- > Running transaction check--- > Package oracle-database-ee-19c.x86_64 0Rule 1.0-1 will be installed-- > Finished Dependency ResolutionDependencies Resolved= Package Arch Version Repository Size=Installing: oracle-database-ee-19c x86 GInstalled size 64 1.0-1 / oracle-database-ee-19c-1.0-1.x86_64 6.9 GTransaction Summary=Install 1 PackageTotal size: 6.9 GInstalled size: 6.9 GDownloading packages:Running transaction checkRunning Transaction testTransaction test succeededRunning transaction Installing: oracle-database-ee-19c-1.0-1.x86_64 1 etc/init.d/oracledb_ORCLCDB-19c 1 [INFO] Executing post installation scripts... [INFO] Oracle home installed successfully and ready to be configured.To configure a sample Oracle Database you can execute the following service configuration script as root: / etc/init.d/oracledb_ORCLCDB-19c Configure Verifying: oracle-database-ee-19c-1.0-1.x86_64 1/1Installed: oracle-database-ee-19c.x86_64 01.x86_64 1/1Installed 1.0-1 Complete! [root@study1 db] # oracle_home directory is / opt/oracle/product/19c/dbhome_1
Create a database
[root@study1 dbhome_1] # / etc/init.d/oracledb_ORCLCDB-19c configureConfiguring Oracle Database ORCLCDB.Prepare for db operation8% completeCopying database files31% completeCreating and starting Oracle instance32% complete36% complete40% complete43% complete46% completeCompleting Database Creation51% complete54% completeCreating Pluggable Databases58% complete77% completeExecuting Post Configuration Actions100% completeDatabase creation complete. For details check the logfiles at: / opt/oracle/cfgtoollogs/dbca/ORCLCDB.Database Information:Global Database Name:ORCLCDBSystem Identifier (SID): ORCLCDBLook at the logfile "/ opt/oracle/cfgtoollogs/dbca/ORCLCDB/ORCLCDB.log" for further details. Database configuration completed successfully. The passwords were auto generated, you must change them by connecting to the database using 'sqlplus / as sysdba' as the oracle user. [root@study1 dbhome_1] #
This creates a database named ORCLCDB and pdb name ORCLPDB1 by default. Of course, you don't have to create it this way, using the traditional dbca method.
Advantages and disadvantages
In fact, this method is of no use, and it is no easier than silent installation. It can only install database software, cannot upgrade the database, and cannot be used for rac, but can only be used to install single instance database. The whole deployment does not give customized space, such as the oracle_home directory, if it is inconsistent with your company's disk plan, but beginners may think it is easier. This method is just a try, but it can hardly be used in actual production.
Thank you for reading this article carefully. I hope the article "how to install Oracle 19c in OL7.6 through RPM" shared by the editor will be helpful to you. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.