By installing Oracle 19C rpm offline

reference:

https://www.cnblogs.com/jinanxiaolaohu/p/10799101.html

I was on cloud Ali, enabled ECS instance 8G memory, 100G storage.

1. Download the required installation package:

1.1 preinstall

wget http://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/getPackage/oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm

The installation package rpm 1.2 Oracle

https://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html

2. Install.

yum localinstall -Y-Oracle Database The preinstall-19c- 1.0 - . 1 .el7.x86_64.rpm 

installed after the installation is complete 

yum localinstall-Oracle Database-EE-19c 1.0 - . 1 .x86_64.rpm

Installation is as follows:

2.1  preinstall

2.2

 

Note the configuration after installation requires root user.

3. Modify the character set as well as other configurations:

vim /etc/init.d/oracledb_ORCLCDB-19c

To modify the contents of the main part of the circle

 

 

 

 Text Version:

export ORACLE_VERSION=19c
#export ORACLE_SID=ORCLCDB
export ORACLE_SID=ORA19C
export TEMPLATE_NAME=General_Purpose.dbc
#export CHARSET=AL32UTF8
#export PDB_NAME=ORCLPDB1
export CHARSET=ZHS16GBK
export PDB_NAME=ORA19CPDB
export LISTENER_NAME=LISTENER
export NUMBER_OF_PDBS=1
export CREATE_AS_CDB=true

To copy a corresponding parameter file

cp oracledb_ORCLCDB-19c.conf  oracledb_ORA19C-19c.conf

4 using the root user to configure.

root user to execute commands:
 /etc/init.d/oracledb_ORCLCDB-19c the configure

Waiting for the Oracle database to perform the initialization operations.

 

 

 

The processing performed after completion. 

Increase processing environment variables

vim .bash_profile

export ORACLE_HOME=/opt/oracle/product/19c/dbhome_1
export PATH=$PATH:/opt/oracle/product/19c/dbhome_1/bin
export ORACLE_SID=ORCLCDB

After modify environment variables as follows

 

 

 Environment variables to take effect

source .bash_profile

 

Oracle modify user's password:

passwd oracle

Sign in using Oracle-related treatment

sqlplus / as sysdba

View pdb information

show pdbs

5.1 Creating start pdb automatically trigger (do not set the PDB boot many programs can not connect the PDB, recommended show pdbs view the status, manual start can be. You can not create business data in the CDB, you will be prompted to create a user name does not comply with c # ## requirements)

CREATE TRIGGER open_all_pdbs
   AFTER STARTUP ON DATABASE
BEGIN
   EXECUTE IMMEDIATE 'alter pluggable database all open';
END open_all_pdbs;
/

Restart linux server can then be connected to the tool attempts to connect to the database.

Guess you like

Origin www.cnblogs.com/huanghongbo/p/12515484.html