[oracle@local12cdg app]$ id oracle
uid=501(oracle) gid=501(oinstall) groups=501(oinstall),502(dba)
[oracle@local12cdg app]$ mkdir -p /u02/app/oracle/product/12.1.0/dbhome_1
[oracle@local12cdg app]$ mkdir -p /u02/app/oracle/oraInventory
[root@local12cdg oracle]# chmod -R 755 /u02/app/oracle/
[root@local12cdg response]# cp *.rsp /u02/app/
[root@local12cdg response]# cd /u02/app/
[root@local12cdg app]# chmod 700 *.rsp
[root@local12cdg app]# ll
total 100
-rwx------ 1 oracle oinstall 58021 May 26 00:04 dbca.rsp
-rwx------ 1 oracle oinstall 26690 May 26 00:04 db_install.rsp
-rwx------ 1 oracle oinstall 6038 May 26 00:04 netca.rsp
drwxrwxr-x 2 oracle oinstall 4096 May 25 02:34 oracle
安装oracle软件
----------
oracle.install.option=INSTALL_DB_SWONLY
ORACLE_HOSTNAME=local12cdg
UNIX_GROUP_NAME=oinstall
INVENTORY_LOCATION=/u01/app/oracle/oraInventory
ORACLE_HOME=/u01/app/oracle/product/12.1.0/dbhome_1
ORACLE_BASE=/u01/app/oracle
oracle.install.db.InstallEdition=EE
oracle.install.db.DBA_GROUP=dba
oracle.install.db.OPER_GROUP=dba
oracle.install.db.BACKUPDBA_GROUP=dba
oracle.install.db.DGDBA_GROUP=dba
oracle.install.db.KMDBA_GROUP=dba
#MYORACLESUPPORT_USERNAME=yhq1314@oracle.com
#MYORACLESUPPORT_PASSWORD=yhq1314
#SECURITY_UPDATES_VIA_MYORACLESUPPORT=0
DECLINE_SECURITY_UPDATES=true
oracle.installer.autoupdates.option=SKIP_UPDATES
#AUTOUPDATES_MYORACLESUPPORT_USERNAME=yhq1314@oracle.com
#AUTOUPDATES_MYORACLESUPPORT_PASSWORD=yhq1314
--------

/u01/oracleware/database/runInstaller -silent -noconfig -responseFile /u02/app/db_install.rsp
-silent 表示静默安装
-noconfig 表示只安装软件
-responseFile 指定响应文件
监控安装的过程
tail -f /u02/app/oracle/oraInventory/logs/installActions2015-05-26_12-42-44AM.log
[oracle@local12cdg app]$ [FATAL] PRVF-0002 : Could not retrieve local nodename
[oracle@local12cdg app]$ hostname
local12cdg
[oracle@local12cdg app]$ cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain
#::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.2.189 oracle12cdg

[root@local12cdg ~]# tail -f /u02/app/oracle/oraInventory/logs/installActions2015-05-26_12-42-44AM.log
INFO: Installation in progress
INFO: Extracting files to '/u02/app/oracle/product/12.1.0/dbhome_1'.
INFO: Extracting files to '/u02/app/oracle/product/12.1.0/dbhome_1'.
INFO: Performing fastcopy operations based on the information in the file 'oracle.server_EE_dirs.lst'.
INFO: Performing fastcopy operations based on the information in the file 'oracle.server_EE_filemap.jar'.
INFO: Performing fastcopy operations based on the information in the file 'racfiles.jar'.
INFO: Performing fastcopy operations based on the information in the file 'oracle.server_EE_exp_1.xml'.
INFO: Performing fastcopy operations based on the information in the file 'oracle.server_EE_1.xml'.
INFO: Performing fastcopy operations based on the information in the file 'setperms1.sh'.
INFO: Number of threads for fast copy :1

[oracle@local12cdg ~]$ /u01/oracleware/database/runInstaller -silent -noconfig -responseFile /u02/app/db_install.rsp
Starting Oracle Universal Installer...

Checking Temp space: must be greater than 500 MB. Actual 63526 MB Passed
Checking swap space: must be greater than 150 MB. Actual 3999 MB Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2015-05-26_12-42-44AM. Please wait ...[oracle@local12cdg ~]$ [WARNING] [INS-13001] Environment does not meet minimum requirements.
CAUSE: Minimum requirements were not met for this environment
ACTION: Either check the logs for more information or check the supported configurations for this product.
[WARNING] [INS-32055] The Central Inventory is located in the Oracle base.
ACTION: Oracle recommends placing this Central Inventory in a location outside the Oracle base directory.
You can find the log of this install session at:
/u02/app/oracle/oraInventory/logs/installActions2015-05-26_12-42-44AM.log
The installation of Oracle Database 12c was successful.
Please check '/u02/app/oracle/oraInventory/logs/silentInstall2015-05-26_12-42-44AM.log' for more details.

As a root user, execute the following script(s):
1. /u02/app/oracle/oraInventory/orainstRoot.sh
2. /u02/app/oracle/product/12.1.0/dbhome_1/root.sh

Successfully Setup Software.
As install user, execute the following script to complete the configuration.
1. /u02/app/oracle/product/12.1.0/dbhome_1/cfgtoollogs/configToolAllCommands RESPONSE_FILE=<response_file>

Note:
1. This script must be run on the same host from where installer was run.
2. This script needs a small password properties file for configuration assistants that require passwords (refer to install guide documentation).

[root@local12cdg ~]# /u02/app/oracle/oraInventory/orainstRoot.sh
Changing permissions of /u02/app/oracle/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.

Changing groupname of /u02/app/oracle/oraInventory to oinstall.
The execution of the script is complete.
[root@local12cdg ~]# /u02/app/oracle/product/12.1.0/dbhome_1/root.sh
Check /u02/app/oracle/product/12.1.0/dbhome_1/install/root_local12cdg_2015-05-26_00-48-46.log for the output of root script

配置监听
vi /u02/app/netca.rsp
/u02/app/oracle/product/12.1.0/dbhome_1/bin/netca -silent -responsefile /u02/app/netca.rsp
[oracle@local12cdg ~]$ /u02/app/oracle/product/12.1.0/dbhome_1/bin/netca -silent -responsefile /u02/app/netca.rsp
Parsing command line arguments:
Parameter "silent" = true
Parameter "responsefile" = /u02/app/netca.rsp
Done parsing command line arguments.
Oracle Net Services Configuration:
Profile configuration complete.
Oracle Net Listener Startup:
Running Listener Control:
/u02/app/oracle/product/12.1.0/dbhome_1/bin/lsnrctl start LISTENER
Listener Control complete.
Listener started successfully.
Listener configuration complete.
Oracle Net Services configuration successful. The exit code is 0
[oracle@local12cdg ~]$ lsnrctl status

LSNRCTL for Linux: Version 12.1.0.1.0 - Production on 26-MAY-2015 00:59:53

Copyright (c) 1991, 2013, Oracle. All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 12.1.0.1.0 - Production
Start Date 26-MAY-2015 00:59:28
Uptime 0 days 0 hr. 0 min. 25 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u02/app/oracle/product/12.1.0/dbhome_1/network/admin/listener.ora
Listener Log File /u02/app/oracle/diag/tnslsnr/local12cdg/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=local12cdg)(PORT=1521)))
The listener supports no services
The command completed successfully
创建数据库
[CREATEDATABASE]
GDBNAME = "local12cdg.oracle.com"
SID = "local12cdg"
CREATEASCONTAINERDATABASE =true
NUMBEROFPDBS =1
PDBNAME =smartfoundry
SYSPASSWORD = "yhq1314"
SYSTEMPASSWORD = "yhq1314"
EMCONFIGURATION = "NONE"
SYSMANPASSWORD = "yhq1314"
DBSNMPPASSWORD = "yhq1314"
#HOSTUSERNAME =rac1
#HOSTUSERPASSWORD=rac1
DATAFILEDESTINATION =$ORACLE_BASE/oradata
RECOVERYAREADESTINATION=$ORACLE_BASE/flash_recovery_area
STORAGETYPE=FS
CHARACTERSET = "AL32UTF8"
NATIONALCHARACTERSET= "UTF8"

/u02/app/oracle/product/12.1.0/dbhome_1/bin/dbca -silent -responsefile /u02/app/dbca.rsp
[oracle@local12cdg app]$ /u02/app/oracle/product/12.1.0/dbhome_1/bin/dbca -silent -responsefile /u02/app/dbca.rsp
Copying database files
1% complete
3% complete
11% complete
18% complete
26% complete
33% complete
37% complete
Creating and starting Oracle instance
40% complete
45% complete
50% complete
55% complete
56% complete
60% complete
62% complete
Completing Database Creation
66% complete
70% complete
73% complete
85% complete
96% complete
100% complete
Look at the log file "/u02/app/oracle/cfgtoollogs/dbca/local12cdg/local12c.log" for further details.
[oracle@local12cdg app]$ sqlplus /nolog

SQL*Plus: Release 12.1.0.1.0 Production on Tue May 26 01:29:33 2015

Copyright (c) 1982, 2013, Oracle. All rights reserved.

SQL> conn /as sysdba
Connected.
SQL> show user;
USER is "SYS"
SQL>
SQL> select name from v$datafile;

NAME
--------------------------------------------------------------------------------
/u02/app/oracle/oradata/local12cdg/system01.dbf
/u02/app/oracle/oradata/local12cdg/sysaux01.dbf
/u02/app/oracle/oradata/local12cdg/undotbs01.dbf
/u02/app/oracle/oradata/local12cdg/users01.dbf

SQL> select name,value from v$parameter where name='spfile';

NAME
--------------------------------------------------------------------------------
VALUE
--------------------------------------------------------------------------------
spfile
/u02/app/oracle/product/12.1.0/dbhome_1/dbs/spfilelocal12cdg.ora

SQL> select name,value from v$parameter where name='control_files';

NAME
--------------------------------------------------------------------------------
VALUE
--------------------------------------------------------------------------------
control_files
/u02/app/oracle/oradata/local12cdg/control01.ctl, /u02/app/oracle/fast_recovery_
area/local12cdg/control02.ctl

SQL> show pdbs;
SQL> show con_name;

CON_NAME
------------------------------
Non Consolidated
SQL> create user c##t2 identified by t2;
create user c##t2 identified by t2
*
ERROR at line 1:
ORA-65094: invalid local user or role name

SQL> show user;
USER is "SYS"
SQL> select count(1) from session_privs;

COUNT(1)
----------
233

Oracle 静默安装 oracle 12c的更多相关文章

  1. Oracle 静默安装oracle client

    静默安装oracle clint比较简单,修改instantclient.crsp文件的几个位置即可 [root@localhost ~]# vi /etc/oralnstloc inventory_ ...

  2. 【静默】在RHEL 6.5上静默安装Oracle 18c

    [静默]在RHEL 6.5上静默安装Oracle 18c Oracle 18c.18c其实就是12.2.0.2,19c就是12.2.0.3.db_home.zip 安装包大概4.25G,解压后有8.9 ...

  3. linux 之静默安装oracle

    Web服务器上面的Linux一般是不会有图形界面的,所有通过图形界面来安装Linux的方式在没有图形界面的Linux上面是行不通的,我们要使用的安装方式叫做Linux的静默安装.即在没有图形界面的Li ...

  4. CentOS 6.5下静默安装oracle

    本例: 通过SSH远程连接云主机,上传oracle11g安装包,在centos6.5上无图形化界面静默安装oracle11g. 涉及工具及环境: 1.本地环境windows7+ssh远程连接工具xSh ...

  5. centos7 无界面静默安装 oracle

    环境准备 Centos7.3.64  64位   这里使用的是阿里云 ECS主机(1核,2G内存,40G硬盘) Oracle 11g R2 64位安装介质(版本11.2.0.1)下载地址:http:/ ...

  6. CentOS 7静默安装Oracle 11g R2数据库软件

    之前安装Oracle 11g R2数据库软件都是建立在图形界面上的,不过现在大部分服务器上都没有安装图形界面.图形界面安装较为方便,安装选项清晰,步骤明确,但Oracle还支持另一种安装方式,就是通过 ...

  7. CentOS静默安装Oracle 11gR2(x64)

    环境 OS: CentOS 7.4; hosts: L134; IP: 192.168.1.134 DB: linux.x64_11gR2_database 安装依赖包 yum install -y ...

  8. Linux - 静默安装oracle数据库总结

    Web服务器上面的Linux一般是不会有图形界面的,所有通过图形界面来安装Linux的方式在没有图形界面的Linux上面是行不通的,我们要使用的安装方式叫做Linux的静默安装.即在没有图形界面的Li ...

  9. Linux静默安装Oracle

    打算在云服务器上装oracle服务,以前DBA美眉都是在图形化界面下安装,这次抓瞎了.赶紧上网查查,静默安装可以解决问题.于是乎赶紧开始部署,过程如下.安装环境:操作系统:CentOS 7内存:11G ...

随机推荐

  1. JDK的安装配置

    1.下载JDK安装包(http://www.oracle.com/technetwork/java/javase/downloads/index.html),现在Java已经更新到JDK 8了,但是很 ...

  2. MySQL锁机制和PHP锁机制

    模拟准备--如何模拟高并发访问一个脚本:apache安装文件的bin/ab.exe可以模拟并发量 -c 模拟多少并发量 -n 一共请求多少次 http://请求的脚本例如:cmd: apache安装路 ...

  3. java深入探究15-SpringMVC

    测试代码:链接:http://pan.baidu.com/s/1c1QGYIk 密码:q924 回顾spring+struts web.xml配置;struts核心过滤器;spring监听器-> ...

  4. DataX-ElasticSearch(写)

    DataX写入ElasticSearch 1 快速介绍 数据导入elasticsearch的插件 2 实现原理 使用elasticsearch的rest api接口, 批量把从reader读入的数据写 ...

  5. math.floor实现四舍五入

     lua math.floor 实现四舍五入: lua 中的math.floor函数是向下取整函数. math.floor(5.123) -- 5 math.floor(5.523) -- 5 用此特 ...

  6. 通过yum安装mysql

    在linux中安装数据库首选MySQL,Mysql数据库的第一个版本就是发行在Linux系统上,其他选择还可以有postgreSQL,oracle等 在Linux上安装mysql数据库,我们可以去其官 ...

  7. $.ajax应用之请求头headers

    昨天项目中,由于要请求token验证,后台给出的方案是采用请求头返回token数据,给出的API文档是这样的 由于之前一直都是采用请求体发送请求,服务器在应答体李返回数据.和这个不一样: 采用jq的$ ...

  8. 论文笔记 — L2-Net: Deep Learning of Discriminative Patch Descriptor in Euclidean Space

    论文: 本文主要贡献: 1.提出了一种新的采样策略,使网络在少数的epoch迭代中,接触百万量级的训练样本: 2.基于局部图像块匹配问题,强调度量描述子的相对距离: 3.在中间特征图上加入额外的监督: ...

  9. 机器学习(七)—Adaboost 和 梯度提升树GBDT

    1.Adaboost算法原理,优缺点: 理论上任何学习器都可以用于Adaboost.但一般来说,使用最广泛的Adaboost弱学习器是决策树和神经网络.对于决策树,Adaboost分类用了CART分类 ...

  10. JAX-RS介绍——Java API forRESTful WebServices,JAX-RS的目标是Web Services开发(这与HTML Web应用不同)而Spring MVC的目标则是Web应用开发

    JAX-RS Java API forRESTful WebServices旨在定义一个统一的规范,使得 Java 程序员可以使用一套固定的接口来开发 REST 应用,避免了依赖于第三方框架.是一个J ...