【kingsql分享】OEL7.6安裝Oracle18c RPM新玩法
1.首先下載安裝preinstall包
[root@kingsql01 ~]# yum -y install oracle-database-preinstall-18c
2.編輯以前那些檔案
[root@kingsql01 ~]# vi /etc/hosts
[root@kingsql01 ~]# vi /etc/sysconfig/selinux
[root@kingsql01 ~]# vi /etc/security/limits.conf
[root@kingsql01 ~]# vi /etc/pam.d/login
3.編輯oracle使用者的.bash_profile
[oracle@kingsql01 ~]$ vi .bash_profile
4.下面進入精彩時刻
[root@kingsql01 ~]# yum -y localinstall oracle-database-ee-18c-1.0-1.x86_64.rpm
Loaded plugins: langpacks, ulninfo
Examining oracle-database-ee-18c-1.0-1.x86_64.rpm: oracle-database-ee-18c-1.0-1.x86_64
Marking oracle-database-ee-18c-1.0-1.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package oracle-database-ee-18c.x86_64 0:1.0-1 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
===============================================================================================
Package Arch Version Repository Size
===============================================================================================
Installing:
oracle-database-ee-18c x86_64 1.0-1 /oracle-database-ee-18c-1.0-1.x86_64 7.8 G
Transaction Summary
===============================================================================================
Install 1 Package
Total size: 7.8 G
Installed size: 7.8 G
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : oracle-database-ee-18c-1.0-1.x86_64 1/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-18c configure
Verifying : oracle-database-ee-18c-1.0-1.x86_64 1/1
Installed:
oracle-database-ee-18c.x86_64 0:1.0-1
Complete!
由此可見,快樂的時光總是短暫的,人生還需修行
5.建立資料庫
[root@kingsql01 ~]# /etc/init.d/oracledb_ORCLCDB-18c configure
Configuring Oracle Database ORCLCDB.
Prepare for db operation
8% complete
Copying database files
31% complete
Creating and starting Oracle instance
32% complete
36% complete
40% complete
43% complete
46% complete
Completing Database Creation
51% complete
54% complete
Creating Pluggable Databases
58% complete
77% complete
Executing Post Configuration Actions
100% complete
Database creation complete. For details check the logfiles at:
/opt/oracle/cfgtoollogs/dbca/ORCLCDB.
Database Information:
Global Database Name:ORCLCDB
System Identifier(SID):ORCLCDB
Look at the log file "/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.
沒有NETCA的步驟了,監聽器自動建好了
6.連線資料庫
[oracle@kingsql01 ~]$ export ORACLE_SID=ORCLCDB
[oracle@kingsql01 ~]$ sqlplus / as sysdba
SQL*Plus: Release 18.0.0.0.0 - Production on Thu Nov 29 14:42:20 2018
Version 18.3.0.0.0
Copyright (c) 1982, 2018, Oracle. All rights reserved.
Connected to:
Oracle Database 18c Enterprise Edition Release 18.0.0.0.0 - Production
Version 18.3.0.0.0
SQL> show pdbs;
CON_ID CON_NAME OPEN MODE RESTRICTED
---------- ------------------------------ ---------- ----------
2 PDB$SEED READ ONLY NO
3 ORCLPDB1 READ WRITE NO
轉載請註明出處
hongzhuohui@qq.com
本來好幾年沒有更新部落格了,最近我的學生們都在勤勞的寫部落格,所以帶動了我。。
--------------------------------------------------------------------------------------------------------------
我曾發現有寫網站直接複製貼上,連圖片都能複製,請把作者也加上謝謝O(∩_∩)O
--------------------------------------------------------------------------------------------------------------
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/28389881/viewspace-2222109/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 【kingsql分享】Oracle18c RAC ADVM卷OFFLINE修復一例SQLOracle
- oracle18c shard技術分享-安裝部署Oracle
- 【kingsql分享】Oracle 18c可插拔資料庫艦隊新玩法SQLOracle資料庫
- 5:安裝配置 Oracle18COracle
- mysql安裝(rpm)MySql
- Linux rpm -e --nodeps rpm解除安裝Linux
- yum如何解除安裝已安裝的rpm並安裝本地rpm包
- PostgreSQL 10.12 安裝系列 - 本地RPM安裝SQL
- MySQL 5.7.22 rpm 安裝方式MySql
- Mysql for Linux安裝配置之—— rpm(bundle)安裝MySqlLinux
- PostgreSQL 10.12 安裝系列 - Yum+rpm 安裝SQL
- rpm包安裝升級與解除安裝
- clickhouse-backup(RPM方式安裝)
- RPM包安裝與介紹
- Oracle 19c RPM安裝Oracle
- rpm方式離線安裝ansible
- rpm方式安裝redis4.0Redis
- Linux命令之rpm安裝命令Linux
- centos(linux): rpm -V 驗證rpm包安裝程式的安全CentOSLinux
- 【kingsql分享】Oracle Database 19c的各種新特性介紹SQLOracleDatabase
- RPM包的安裝與升級
- CentOS下使用rpm包安裝MySQLCentOSMySql
- 【18c】Oracle 18.3 RPM安裝Oracle
- Linux RPM包安裝、解除安裝、升級命令講解Linux
- Oracle 18c rpm 安裝及解析安裝過程Oracle
- Greenplum_原始碼編譯安裝和RPM包安裝原始碼編譯
- 【kingsql分享】Oracle Database 20c 十大新特性介紹SQLOracleDatabase
- yum安裝軟體之後如何儲存rpm安裝包
- CentOS7離線安裝(rpm安裝)mysql資料庫CentOSMySql資料庫
- mysql8.0.30的RPM包安裝方法MySql
- 無網環境安裝docker之--rpmDocker
- CentOS8 安裝 MySQL8.0(RPM)CentOSMySql
- 【kingsql分享】Linux平臺判斷大小端SQLLinux
- yum/dnf/rpm 等 檢視rpm 包安裝路徑 (fedora 中 pygtk 包內容安裝到哪裡了)
- centos以RPM包方式安裝redis的方法CentOSRedis
- 在 Fedora 中安裝替代版本的 RPM 包
- 在Linux(Redhat/CentOS)下安裝MySQL之yum(rpm)線上安裝方式LinuxRedhatCentOSMySql
- 在Linux(Redhat/CentOS)下安裝MySQL之yum(rpm)離線安裝方式LinuxRedhatCentOSMySql