设为首页 收藏本站
查看: 813|回复: 0

[经验分享] Oracle 12cR1 RAC 在VMware Workstation上安装(中)

[复制链接]

尚未签到

发表于 2017-12-11 13:24:31 | 显示全部楼层 |阅读模式
[oracle@raclhr-12cR1-N1 bin]$ crsctl stat res -t

  --------------------------------------------------------------------------------
  Name           Target  State        Server                   State details      
  --------------------------------------------------------------------------------
  Local Resources
  --------------------------------------------------------------------------------
  ora.DATA.dg
  ONLINE  ONLINE       raclhr-12cr1-n1          STABLE
  ONLINE  ONLINE       raclhr-12cr1-n2          STABLE
  ora.FRA.dg
  ONLINE  ONLINE       raclhr-12cr1-n1          STABLE
  ONLINE  ONLINE       raclhr-12cr1-n2          STABLE
  ora.LISTENER.lsnr
  ONLINE  ONLINE       raclhr-12cr1-n1          STABLE
  ONLINE  ONLINE       raclhr-12cr1-n2          STABLE
  ora.OCR.dg
  ONLINE  ONLINE       raclhr-12cr1-n1          STABLE
  ONLINE  ONLINE       raclhr-12cr1-n2          STABLE
  ora.asm
  ONLINE  ONLINE       raclhr-12cr1-n1          Started,STABLE
  ONLINE  ONLINE       raclhr-12cr1-n2          Started,STABLE
  ora.net1.network
  ONLINE  ONLINE       raclhr-12cr1-n1          STABLE
  ONLINE  ONLINE       raclhr-12cr1-n2          STABLE
  ora.ons
  ONLINE  ONLINE       raclhr-12cr1-n1          STABLE
  ONLINE  ONLINE       raclhr-12cr1-n2          STABLE
  --------------------------------------------------------------------------------
  Cluster Resources
  --------------------------------------------------------------------------------
  ora.LISTENER_SCAN1.lsnr
  1        ONLINE  ONLINE       raclhr-12cr1-n2          STABLE
  ora.MGMTLSNR
  1        ONLINE  ONLINE       raclhr-12cr1-n2          169.254.166.174 192.
  168.2.101,STABLE
  ora.cvu
  1        ONLINE  ONLINE       raclhr-12cr1-n1          STABLE
  ora.lhr12crac.db
  1        ONLINE  ONLINE       raclhr-12cr1-n1          Open,STABLE
  2        ONLINE  ONLINE       raclhr-12cr1-n2          Open,STABLE
  ora.mgmtdb
  1        OFFLINE OFFLINE                               Instance Shutdown,ST
  ABLE
  ora.oc4j
  1        ONLINE  ONLINE       raclhr-12cr1-n2          STABLE
  ora.raclhr-12cr1-n1.vip
  1        ONLINE  ONLINE       raclhr-12cr1-n1          STABLE
  ora.raclhr-12cr1-n2.vip
  1        ONLINE  ONLINE       raclhr-12cr1-n2          STABLE
  ora.scan1.vip
  1        ONLINE  ONLINE       raclhr-12cr1-n2          STABLE
  --------------------------------------------------------------------------------
[oracle@raclhr-12cR1-N1 bin]$

[oracle@raclhr-12cR1-N1 bin]$ crsctl check cluster

  CRS-4537: Cluster Ready Services is online
  CRS-4529: Cluster Synchronization Services is online
  CRS-4533: Event Manager is online
[oracle@raclhr-12cR1-N1 bin]$ srvctl status database -d lhr12crac

  Instance lhr12cra1 is running on node raclhr-12cr1-n1
  Instance lhr12cra2 is running on node raclhr-12cr1-n2
[oracle@raclhr-12cR1-N1 bin]$ srvctl status nodeapps

  VIP raclhr-12cr1-n1-vip is enabled
  VIP raclhr-12cr1-n1-vip is running on node: raclhr-12cr1-n1
  VIP raclhr-12cr1-n2-vip is enabled
  VIP raclhr-12cr1-n2-vip is running on node: raclhr-12cr1-n2
  Network is enabled
  Network is running on node: raclhr-12cr1-n1
  Network is running on node: raclhr-12cr1-n2
  ONS is enabled
  ONS daemon is running on node: raclhr-12cr1-n1
  ONS daemon is running on node: raclhr-12cr1-n2
[oracle@raclhr-12cR1-N1 bin]$ srvctl config nodeapps

  Network 1 exists
  Subnet IPv4: 192.168.59.0/255.255.255.0/eth0, static
  Subnet IPv6:
  Ping Targets:
  Network is enabled
  Network is individually enabled on nodes:
  Network is individually disabled on nodes:
  VIP exists: network number 1, hosting node raclhr-12cr1-n1
  VIP Name: raclhr-12cr1-n1-vip
  VIP IPv4 Address: 192.168.59.162
  VIP IPv6 Address:
  VIP is enabled.
  VIP is individually enabled on nodes:
  VIP is individually disabled on nodes:
  VIP exists: network number 1, hosting node raclhr-12cr1-n2
  VIP Name: raclhr-12cr1-n2-vip
  VIP IPv4 Address: 192.168.59.163
  VIP IPv6 Address:
  VIP is enabled.
  VIP is individually enabled on nodes:
  VIP is individually disabled on nodes:
  ONS exists: Local port 6100, remote port 6200, EM port 2016, Uses SSL false
  ONS is enabled
  ONS is individually enabled on nodes:
  ONS is individually disabled on nodes:
[oracle@raclhr-12cR1-N1 bin]$ srvctl config database -d lhr12crac -a

  Database unique name: lhr12crac
  Database name: lhr12cra
  Oracle home: /u01/app/oracle/product/12.1.0/dbhome_1
  Oracle user: oracle
  Spfile: +DATA/LHR12CRAC/PARAMETERFILE/spfile.278.933512629
  Password file: +DATA/LHR12CRAC/PASSWORD/pwdlhr12crac.266.933512143
  Domain:
  Start options: open
  Stop options: immediate
  Database role: PRIMARY
  Management policy: AUTOMATIC
  Server pools:
  Disk Groups: DATA,FRA
  Mount point paths:
  Services:
  Type: RAC
  Start concurrency:
  Stop concurrency:
  Database is enabled
  Database is individually enabled on nodes:
  Database is individually disabled on nodes:
  OSDBA group: dba
  OSOPER group: oinstall
  Database instances: lhr12cra1,lhr12cra2
  Configured nodes: raclhr-12cr1-n1,raclhr-12cr1-n2
  Database is administrator managed
[oracle@raclhr-12cR1-N1 bin]$ srvctl status asm

  ASM is running on raclhr-12cr1-n2,raclhr-12cr1-n1
[oracle@raclhr-12cR1-N1 bin]$ srvctl config asm -a

  ASM home: <CRS home>
  Password file: +OCR/orapwASM
  ASM listener: LISTENER
  ASM is enabled.
  ASM is individually enabled on nodes:
  ASM is individually disabled on nodes:
[oracle@raclhr-12cR1-N1 bin]$ srvctl status listener

  Listener LISTENER is enabled
  Listener LISTENER is running on node(s): raclhr-12cr1-n2,raclhr-12cr1-n1
[oracle@raclhr-12cR1-N1 bin]$ srvctl config listener -a

  Name: LISTENER
  Type: Database Listener
  Network: 1, Owner: grid
  Home: <CRS home>
  /u01/app/12.1.0/grid on node(s) raclhr-12cr1-n2,raclhr-12cr1-n1
  End points: TCP:1521
  Listener is enabled.
  Listener is individually enabled on nodes:
  Listener is individually disabled on nodes:
[oracle@raclhr-12cR1-N1 bin]$ srvctl config nodeapps -a -g -s -l

  PRKO-2207 : Warning:-gsdonly option has been deprecated and will be ignored.
  Warning:-listener option has been deprecated and will be ignored.
  Network 1 exists
  Subnet IPv4: 192.168.59.0/255.255.255.0/eth0, static
  Subnet IPv6:
  Ping Targets:
  Network is enabled
  Network is individually enabled on nodes:
  Network is individually disabled on nodes:
  VIP exists: network number 1, hosting node raclhr-12cr1-n1
  VIP Name: raclhr-12cr1-n1-vip
  VIP IPv4 Address: 192.168.59.162
  VIP IPv6 Address:
  VIP is enabled.
  VIP is individually enabled on nodes:
  VIP is individually disabled on nodes:
  VIP exists: network number 1, hosting node raclhr-12cr1-n2
  VIP Name: raclhr-12cr1-n2-vip
  VIP IPv4 Address: 192.168.59.163
  VIP IPv6 Address:
  VIP is enabled.
  VIP is individually enabled on nodes:
  VIP is individually disabled on nodes:
  ONS exists: Local port 6100, remote port 6200, EM port 2016, Uses SSL false
  ONS is enabled
  ONS is individually enabled on nodes:
  ONS is individually disabled on nodes:
  Name: LISTENER
  Type: Database Listener
  Network: 1, Owner: grid
  Home: <CRS home>
  /u01/app/12.1.0/grid on node(s) raclhr-12cr1-n2,raclhr-12cr1-n1
  End points: TCP:1521
  Listener is enabled.
  Listener is individually enabled on nodes:
  Listener is individually disabled on nodes:
[oracle@raclhr-12cR1-N1 bin]$ srvctl status scan

  SCAN VIP scan1 is enabled
  SCAN VIP scan1 is running on node raclhr-12cr1-n2
[oracle@raclhr-12cR1-N1 bin]$ srvctl config scan

  SCAN name: raclhr-12cR1-scan, Network: 1
  Subnet IPv4: 192.168.59.0/255.255.255.0/eth0, static
  Subnet IPv6:
  SCAN 0 IPv4 VIP: 192.168.59.164
  SCAN VIP is enabled.
  SCAN VIP is individually enabled on nodes:
  SCAN VIP is individually disabled on nodes:
[oracle@raclhr-12cR1-N1 bin]$ cluvfy comp clocksync -verbose

  Verifying Clock Synchronization across the cluster nodes
  Checking if Clusterware is installed on all nodes...
  Oracle Clusterware is installed on all nodes.
  Checking if CTSS Resource is running on all nodes...
  Check: CTSS Resource running on all nodes
  Node Name                             Status                  
  ------------------------------------  ------------------------
  raclhr-12cr1-n1                       passed                  
  CTSS resource check passed
  Querying CTSS for time offset on all nodes...
  Query of CTSS for time offset passed
  Check CTSS state started...
  Check: CTSS state
  Node Name                             State                  
  ------------------------------------  ------------------------
  raclhr-12cr1-n1                       Active                  
  CTSS is in Active state. Proceeding with check of clock time offsets on all nodes...
  Reference Time Offset Limit: 1000.0 msecs
  Check: Reference Time Offset
  Node Name     Time Offset               Status                  
  ------------  ------------------------  ------------------------
  raclhr-12cr1-n1  0.0                       passed                  
  Time offset is within the specified limits on the following set of nodes:
  "[raclhr-12cr1-n1]"
  Result: Check of clock time offsets passed
  Oracle Cluster Time Synchronization Services check passed
  Verification of Clock Synchronization across the cluster nodes was successful.
[oracle@raclhr-12cR1-N1 bin]$ ORACLE_SID=lhr12cra1

[oracle@raclhr-12cR1-N1 bin]$ sqlplus / as sysdba


  SQL*Plus:>  Copyright (c) 1982, 2014, Oracle.  All rights reserved.
  Connected to:

  Oracle Database 12c Enterprise Edition>  With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
  Advanced Analytics and Real Application Testing options
  SQL> set line 9999
  SQL> show parameter cluster
  NAME                                 TYPE                   VALUE
  ------------------------------------ ---------------------- ------------------------------
  cluster_database                     boolean                TRUE
  cluster_database_instances           integer                2
  cluster_interconnects                string
  SQL> col host_name format a20  
  SQL> set linesize 200  
  SQL> select INSTANCE_NAME,HOST_NAME,VERSION,STARTUP_TIME,STATUS,ACTIVE_STATE,INSTANCE_ROLE,DATABASE_STATUS from gv$INSTANCE;
  INSTANCE_NAME                    HOST_NAME            VERSION                            STARTUP_TIME        STATUS                   ACTIVE_STATE       INSTANCE_ROLE
  -------------------------------- -------------------- ---------------------------------- ------------------- ------------------------ ------------------ ------------------------------------
  DATABASE_STATUS
  ----------------------------------
  lhr12cra1                        raclhr-12cR1-N1      12.1.0.2.0                         2017-01-17 13:05:14 OPEN                     NORMAL             PRIMARY_INSTANCE
  ACTIVE
  lhr12cra2                        raclhr-12cR1-N2      12.1.0.2.0                         2017-01-17 13:05:59 OPEN                     NORMAL             PRIMARY_INSTANCE
  ACTIVE
  SQL>

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.iyunv.com/thread-422970-1-1.html 上篇帖子: oracle 用一个表的一个字段更新另一个表的一个字段 下篇帖子: jdbc 连接oracle的三种方式
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表