**
一、准备数据库环境
**
参照之前oracle11g的安装先进性数据库软件的安装
[oracle@localhost database]$ ./runInstaller
我在这里缺少包(按照我的oracle11g安装不会出现这个问题,直接忽略)
出现错误:缺少包,使用rz上传
[root@localhost ~]# rz
[root@localhost ~]# chmod +x pdksh-5.2.14-37.el5.x86_64.rpm
[root@ localhost~]# rpm -ivh pdksh-5.2.14-37.el5.x86_64.rpm
[root@localhost ~]# /u01/app/oraInventory/orainstRoot.sh
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.
[root@localhost ~]# /u01/app/oracle/product/12.2.0/dbhome_1/root.sh
Performing root user operation.
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /u01/app/oracle/product/12.2.0/dbhome_1
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.
Do you want to setup Oracle Trace File Analyzer (TFA) now ? yes|[no] :
yes
Installing Oracle Trace File Analyzer (TFA).
Log File: /u01/app/oracle/product/12.2.0/dbhome_1/install/root_localhost.localdomain_2018-01-16_22-46-51-806570335.log
Finished installing Oracle Trace File Analyzer (TFA)
**
二、dbca创建数据库
**
[oracle@localhost ~] vim.bashprofile追加如下内容:exportORACLEBASE=/u01/app/oracleexportORACLEHOME=/u01/app/oracle/product/