[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. linux与windows 通过SecureCRT进行文件传输方式

    linux与windows 通过SecureCRT进行文件传输方式 方式一:lrzsz是一款在Linux里可代替ftp上传和下载的程序.(小文件推荐,以4G为界限) # rz -bash: rz: c ...

  2. 暑假爆零欢乐赛SRM08题解

    这真的是披着CF外衣的OI赛制?我怎么觉得这是披着部分分外衣的CF?果然每逢cf赛制必掉rating,还是得%%%cyc橙名爷++rp.. A题就是找一找序列里有没有两个连在一起的0或1,并且不能向两 ...

  3. java定时任务Quartz Demo(2.X)

    直接上代码 public class HelloQuartz implements Job{ @Override public void execute(JobExecutionContext Jec ...

  4. CentOS 7 安装 docker-compose

    compose是用来在docker中定义和运行复杂应用的小工具,比如在一个文件中定义多个容器,只用一行命令就可以让一切就绪并运行. 安装pip: 这里显示,找不到相应的包?? 说没有python-pi ...

  5. [转载]ORA-00313:无法打开日志组1(线程 1)的成员_ORA-00312:

    原文地址:1)的成员_ORA-00312:">ORA-00313:无法打开日志组1(线程 1)的成员_ORA-00312:作者:Sweet_薇薇毅 今天用系统清理工具把系统垃圾清理了一 ...

  6. ZooKeeper学习第八期---ZooKeeper伸缩性

    转:http://www.cnblogs.com/sunddenly/p/4143306.html 一.ZooKeeper中Observer 1.1 ZooKeeper角色 经过前面的介绍,我想大家都 ...

  7. jQuery 获取jsp页面中用iframe引入的jsp页面中的值

    <iframe scrolling="no" src="<c:url value='/unitBaseperson/view.do?para=9&op ...

  8. uvalive 6938 区间dp

    看到n范围和给的区间看着就像区间dp 然后怎么cmp感觉都没法进行区间合并 n的300误导了下 没有注意离散化之后对时间可以dp 然而这个dp感觉不太经得起证明的样子... dp[i][j] -> ...

  9. Android Studio2.3中简单配置,释放C盘空间

    重新安装了一下android studio,由于占用了太多的C盘空间.记录一下,在网上收集到的studio中两个主要占用C盘空间的文件,我们将它移除C盘. 原博地址: http://blog.csdn ...

  10. Eclipse下使用Maven建立简单Springboot程序

    1.创建Maven工程 2.编写pom.xml <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi=&q ...