19c(19.3) RPM方式單機資料庫安裝
作業系統 |
Red Hat Enterprise Linux Server release 7.7 (Maipo) |
資料庫版本 |
Oracle database 19.3 |
主機名 |
adg19c |
IP 地址 |
192.168.84.99 |
安裝目錄 |
/DBSoft/oracle/product/19.3/dbhome_1 |
資料庫名稱 |
woo |
字符集 |
AL32UTF8 |
[root@adg19c ~]# systemctl stop firewalld [root@adg19c ~]# systemctl disable firewalld Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service. Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
[root@adg19c ~]# systemctl stop NetworkManager [root@adg19c ~]# systemctl disable NetworkManager
[root@adg19c ~]# setenforce 0 setenforce: SELinux is disabled [root@adg19c ~]# sed -i "/^SELINUX=/s#enforcing#disabled#" /etc/selinux/config
[root@adg19c ~]# cat >> /etc/hosts <<EOF > > 192.168.84.99 adg19c > EOF
[root@adg19c ~]#sed -i 's#^HOSTNAME=.*$#HOSTNAME=db01#' /etc/sysconfig/network [root@adg19c ~]# sed -i 's#^NETWORKING_IPV6=.*$#NETWORKING_IPV6=no#' /etc/sysconfig/network
[root@adg19c ~]# cat >> /etc/sysconfig/network <<EOF > NOZEROCONF=yes > EOF
[root@adg19c ~]# cat > /etc/yum.repos.d/local.repo <<EOF > [base] > name=base > baseurl=file:///mnt > enabled=1 > gpgcheck=0 > multilib_policy=all > EOF [root@adg19c ~]# yum clean all && yum makecache Loaded plugins: product-id, search-disabled-repos, subscription-manager This system is not registered with an entitlement server. You can use subscription-manager to register. Cleaning repos: base
[root@adg19c ~]# rpm -ivh /home/oracle/compat-libstdc++-33-3.2.3-69.el6.x86_64.rpm warning: /home/oracle/compat-libstdc++-33-3.2.3-69.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY Preparing... ################################# [100%] Updating / installing... 1:compat-libstdc++-33-3.2.3-69.el6 ################################# [100%]
注意:這個包在RHEL 7的環境中沒有,需要單獨下載後手工安裝。
[root@localhost ~]# ls -rtl total 2631532 -rw-r--r--. 1 root root 18204 Apr 10 01:41 oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm -rw-r--r--. 1 root root 2694664264 Apr 10 01:42 oracle-database-ee-19c-1.0-1.x86_64.rpm [root@localhost ~]# yum localinstall -y oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm Loaded plugins: ulninfo Examining oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm: oracle-database-preinstall-19c-1.0-1.el7.x86_64 Marking oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm to be installed Resolving Dependencies --> Running transaction check ---> Package oracle-database-preinstall-19c.x86_64 0:1.0-1.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ========================================================================================================================== Package Arch Version Repository Size ========================================================================================================================== Installing: oracle-database-preinstall-19c x86_64 1.0-1.el7 /oracle-database-preinstall-19c-1.0-1.el7.x86_64 55 k Transaction Summary ========================================================================================================================== Install 1 Package Total size: 55 k Installed size: 55 k Downloading packages: Running transaction check Running transaction test Transaction test succeeded Running transaction Warning: RPMDB altered outside of yum. Installing : oracle-database-preinstall-19c-1.0-1.el7.x86_64 1/1 Verifying : oracle-database-preinstall-19c-1.0-1.el7.x86_64 1/1 Installed: oracle-database-preinstall-19c.x86_64 0:1.0-1.el7 Complete!
[root@localhost ~]# yum localinstall -y oracle-database-ee-19c-1.0-1.x86_64.rpm Loaded plugins: ulninfo Examining oracle-database-ee-19c-1.0-1.x86_64.rpm: oracle-database-ee-19c-1.0-1.x86_64 Marking oracle-database-ee-19c-1.0-1.x86_64.rpm to be installed Resolving Dependencies --> Running transaction check ---> Package oracle-database-ee-19c.x86_64 0:1.0-1 will be installed --> Finished Dependency Resolution Dependencies Resolved ========================================================================================================================== Package Arch Version Repository Size ========================================================================================================================== Installing: oracle-database-ee-19c x86_64 1.0-1 /oracle-database-ee-19c-1.0-1.x86_64 6.9 G Transaction Summary ========================================================================================================================== Install 1 Package Total size: 6.9 G Installed size: 6.9 G Downloading packages: Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : oracle-database-ee-19c-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-19c configure Verifying : oracle-database-ee-19c-1.0-1.x86_64 1/1 Installed: oracle-database-ee-19c.x86_64 0:1.0-1 Complete!
[root@localhost sysconfig]# /etc/init.d/oracledb_ORCLCDB-19c 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.
連結:
提取碼:0ajw
複製這段內容後開啟百度網盤手機App,操作更方便哦
[root@localhost ~]# mount /dev/sr0 /mnt/ mount: /dev/sr0 is write-protected, mounting read-only
[root@localhost ~]# sh rhel7_oracle_1903_rpm_Install.sh ---------------------------------------------------------------------------- Welcome to PrudentWoo Oracle 19.3 Database RPM Install Package PrudentWoo QQ:286507175 E-mail:happy-wuweilong@hotmail.com
Please Insert into ORACLE NAME: woo --輸入woo
------------------ Create Oracle Database; Name is woo ----------------------- Configuring Oracle Database woo. 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/woo. Database Information: Global Database Name:woo System Identifier(SID):woo Look at the log file "/opt/oracle/cfgtoollogs/dbca/woo/woo.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. Changing password for user oracle. passwd: all authentication tokens updated successfully.
sqlplus / as sysdba << EOF shut immediate startup mount; alter database archivelog; alter database open; alter pluggable database all open; EOF
sqlplus / as sysdba << EOF select userenv('language') from dual; alter session set NLS_DATE_FORMAT='YYYY-MM-DD HH24:MI:SS'; select d.name,i.status,d.LOG_MODE,d.CREATED from v\$instance i,v\$database d; show pdbs; EOF SQL> USERENV('LANGUAGE') ---------------------------------------------------- AMERICAN_AMERICA.AL32UTF8 SQL> NAME STATUS LOG_MODE CREATED --------- ------------ ------------ ------------------- WOO OPEN ARCHIVELOG 2020-06-01 11:22:31 SQL> CON_ID CON_NAME OPEN MODE RESTRICTED ---------- ------------------------------ ---------- ---------- 2 PDB$SEED READ ONLY NO 3 ORCLPDB1 READ WRITE NO
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/20674423/viewspace-2706254/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 19c(19.3) 單機資料庫安裝資料庫
- 19c(19.3) 單機資料庫靜默安裝資料庫
- RPM方式安裝oracle資料庫Oracle資料庫
- 19C 單例項資料庫安裝單例資料庫
- Oracle 19c RPM安裝Oracle
- tar方式安裝資料庫資料庫
- CentOS7離線安裝(rpm安裝)mysql資料庫CentOSMySql資料庫
- puppet rpm方式的安裝
- 使用RPM安裝ORACLE-19c資料庫Oracle資料庫
- 使用RPM安裝ORACLE-21c資料庫Oracle資料庫
- 【DB寶3】在Docker中使用rpm包的方式安裝Oracle 19cDockerOracle
- rpm方式安裝redis4.0Redis
- MySQL 5.7.22 rpm 安裝方式MySql
- clickhouse-backup(RPM方式安裝)
- RedHat 7.7 平臺安裝19c(19.3) RAC 詳細操作過程Redhat
- rpm方式離線安裝ansible
- rpm包方式安裝Percona serverServer
- ClickHouse資料庫單機安裝及備份恢復資料庫
- Oracle安裝軟體及建立資料庫(字元安裝方式)Oracle資料庫字元
- mysql cluster 7.38 叢集安裝 rpm安裝方式MySql
- Linux下用rpm方式安裝MySQLLinuxMySql
- MySQL之——RPM方式安裝MySQL5.6MySql
- centos7下rpm方式安裝mysqlCentOSMySql
- RedHat 7.7 平臺安裝19c(19.3) RAC 靜默詳細操作過程Redhat
- 使用靜默方式安裝11g資料庫資料庫
- centos以RPM包方式安裝redis的方法CentOSRedis
- CentOS 6 下RPM方式安裝MySQL5.6CentOSMySql
- Percona MySQL 5.6 RPM包方式安裝流程MySql
- Pulsar本地單機(偽)叢集 (裸機安裝與docker方式安裝) 2.2.0Docker
- ORACLE 單例項完全解除安裝資料庫Oracle單例資料庫
- 靜默方式安裝、升級oracle(二): 建立資料庫Oracle資料庫
- Gitlab環境快速部署(RPM包方式安裝)Gitlab
- R1-002 MySQL的rpm安裝方式MySql
- CentOS安裝MySQL的兩種方式——RPM和YUMCentOSMySql
- Windows系統安裝Mariadb資料庫(zip包方式安裝)--九五小龐Windows資料庫
- 使用ansible-playbook自動化安裝Oracle DG資料庫19cOracle資料庫
- 在Linux(Redhat/CentOS)下安裝MySQL之yum(rpm)線上安裝方式LinuxRedhatCentOSMySql
- 華為GaussDB資料庫(單機版)在ARM環境下的安裝指南資料庫