[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. Whitewidow:SQL 漏洞自动扫描工具

    Whitewidow 是一个开源的 SQL 漏洞自动扫描器,可用通过文件列表运行,或者从 Google 爬取并发现有潜在漏洞的网站. 这个工具支持自动格式化文件.随机用户代理.IP 地址.服务器信息. ...

  2. mongodb 的主从配置

    mongoDB主从配置如下: 主库: port=27017 dbpath=/usr/local/mongodb/data logpath=/usr/local/mongodb/log/mongodb. ...

  3. Datax官方笔记总结

    # DataX DataX 是阿里巴巴集团内被广泛使用的离线数据同步工具/平台,实现包括 MySQL.SQL Server.Oracle.PostgreSQL.HDFS.Hive.HBase.OTS. ...

  4. ML 神经网络 NeuralNetworks

    神经网络 Neural Networks 1 为什么要用神经网络? 既然前面降了逻辑回归,为什么还需要神经网络呢?前面我们制定在非线性分类问题中,也可以使用逻辑回归进行分类,不过我们的特征变量就变成了 ...

  5. Codeforces Round #367 (Div. 2) D. Vasiliy's Multiset trie树

    D. Vasiliy's Multiset time limit per test 4 seconds memory limit per test 256 megabytes input standa ...

  6. Spring Boot 注释

    1.@RestController@RestController ≍ @Controller + @ResponseBody在Controller文件 public class xxxx 前面加用于返 ...

  7. network namespace连接的4种方法及性能

    veth pair # add the namespaces ip netns add ns1 ip netns add ns2 # create the veth pair ip link add ...

  8. ansible安装nginx

    ansible安装nginx(实现回滚发布功能:下一篇博客.没想到写长了) 一.准备工作 1.准备两台机器 sai: 192.168.131.132  ——> ansible的服务端 luojy ...

  9. 178. Rank Scores

    问题描述 解决方案 select sc.Score, (select count(*) from (select distinct Score from Scores ) ds where ds.Sc ...

  10. web自动化:selenium原理和元素定位(一)

    一. Selenium2 WebDriver 当Selenium2.x提出了WebDriver的概念后,它提供了完全另外的一种方式与浏览器交互 那就是利用浏览器原生的API,封装成一套更加面向对象的S ...