FAQ: Oracle Flex ASM 12c / 12.1 (Doc ID 1573137.1)

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了FAQ: Oracle Flex ASM 12c / 12.1 (Doc ID 1573137.1)相关的知识,希望对你有一定的参考价值。

鏍囩锛?a href='http://www.mamicode.com/so/1/inf' title='inf'>inf   whether   min   manage   specified   imp   grid   cloud   mos   

FAQ: Oracle Flex ASM 12c / 12.1 (Doc ID 1573137.1)

APPLIES TO:

Oracle Database - Enterprise Edition - Version 12.1.0.1 to 12.1.0.2 [Release 12.1]
Oracle Virtual Compute Appliance X4-2 Hardware - Version All Versions to All Versions [Release All Releases]
Oracle Database - Enterprise Edition - Version 12.2.0.1 to 12.2.0.1 [Release 12.2]
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Information in this document applies to any platform.

PURPOSE

 To provide answers to common questions regarding the 12c New Feature "Oracle Flex ASM"  鎻愪緵鏈夊叧12c鏂板姛鑳?ldquo; Oracle Flex ASM”鐨勫父瑙侀棶棰樼殑绛旀

QUESTIONS AND ANSWERS

 What is Oracle Flex ASM?  浠€涔堟槸Oracle Flex ASM

Oracle Flex ASM is an ASM instance which will be running in the cluster based on cardinality defined.The default cardinality is three,but you can change it using srvctl modify asm command.It means that ASM is not required to run on each node in the cluster.

Oracle Flex ASM 鏄竴涓狝SM瀹炰緥锛屽畠灏嗘牴鎹畾涔夌殑鍩烘暟鍦ㄩ泦缇や腑杩愯銆傞粯璁ゅ熀鏁颁负3锛屼絾鏄偍鍙互浣跨敤srvctl Modify asm鍛戒护瀵瑰叾杩涜鏇存敼銆傝繖鎰忓懗鐫€涓嶉渶瑕丄SM鍦ㄦ暟鎹簱涓殑姣忎釜鑺傜偣cluster涓婅繍琛屻€?/span>

In previous release,ASM will be running on each node in the cluster and ASM clients (Database,ACFS,ADVM) can only access ASM by using an ASM on the same host.

鍦ㄤ互鍓嶇殑鐗堟湰涓紝ASM灏嗗湪缇ら泦涓殑姣忎釜鑺傜偣涓婅繍琛岋紝骞朵笖ASM瀹㈡埛绔紙鏁版嵁搴擄紝ACFS锛孉DVM锛夊彧鑳介€氳繃鍦ㄥ悓涓€涓绘満涓婁娇鐢ˋSM鏉ヨ闂瓵SM銆?/span>

With Oracle Flex ASM,the clients can connect to remote ASM using network connection (ie ASM network ).If a server running an ASM instance fails, Oracle Clusterware will start a new ASM instance on a different server to maintain the cardinality. If a 12c database instance is using a particular ASM instance, and that instance is lost because of a server crash or ASM instance failure, then the Oracle 12c database instance will reconnect to an existing ASM instance on another node.These features are collectively called Oracle Flex ASM.

浣跨敤Oracle Flex ASM锛屽鎴风鍙互浣跨敤缃戠粶杩炴帴锛堝嵆ASM缃戠粶锛夎繛鎺ュ埌杩滅▼ASM銆傚鏋滆繍琛孉SM瀹炰緥鐨勬湇鍔″櫒鍙戠敓鏁呴殰锛孫racle Clusterware灏嗗湪鍏朵粬鏈嶅姟鍣ㄤ笂鍚姩鏂扮殑ASM瀹炰緥浠ヤ繚鎸佸熀鏁般€傚鏋?2c鏁版嵁搴撳疄渚嬫鍦ㄤ娇鐢ㄧ壒瀹氱殑ASM瀹炰緥锛屽苟涓旂敱浜庢湇鍔″櫒宕╂簝鎴朅SM瀹炰緥鏁呴殰鑰屽鑷磋瀹炰緥涓㈠け锛屽垯Oracle 12c鏁版嵁搴撳疄渚嬪皢閲嶆柊杩炴帴鍒板彟涓€涓妭鐐逛笂鐨勭幇鏈堿SM瀹炰緥锛岃繖浜涘姛鑳界粺绉颁负Oracle Flex ASM銆?/span>

What is Oracle ASM Proxy Instance?  浠€涔堟槸Oracle ASM Proxy瀹炰緥

Oracle ASM proxy instance will be configured to support the ACFS/ADVM.In a flex ASM, an oracle ASM proxy instance can run on the same node as ASM instance or on a different node.

Oracle ASM proxy 瀹炰緥灏嗛厤缃负鏀寔ACFS / ADVM銆傚湪Flex ASM涓紝Oracle ASM proxy 瀹炰緥鍙互涓嶢SM瀹炰緥鍦ㄥ悓涓€鑺傜偣涓婅繍琛岋紝涔熷彲浠ュ湪鍏朵粬鑺傜偣涓婅繍琛屻€?/span>

below picture shows ACFS/ADVM on node 2 talks to Oracle ASM proxy on the same node,which connects to Oracle ASM instance on remote node 1.

涓嬪浘鏄剧ず浜嗚妭鐐?涓婄殑ACFS / ADVM涓庡悓涓€鑺傜偣涓婄殑Oracle ASM proxy杩涜瀵硅瘽锛岃proxy杩炴帴鍒拌繙绋嬭妭鐐?涓婄殑Oracle ASM瀹炰緥

鎶€鏈浘鐗? src=

 What is the difference between Oracle Flex Cluster vs Oracle Flex ASM?  Oracle Flex Cluster涓嶰racle Flex ASM鏈変粈涔堝尯鍒?/span>

Oracle Flex Cluster is a cluster node with Hub and leaf node configuration.only Hub nodes have direct access to OCR and Voting disk.leaf node do not have direct access to shared storage.

Oracle Flex Cluster 鏄叿鏈夐泦绾垮櫒鍜屽彾鑺傜偣閰嶇疆鐨勭兢闆嗚妭鐐广€備粎闆嗙嚎鍣ㄨ妭鐐瑰彲浠ョ洿鎺ヨ闂甇CR鍜岃〃鍐崇鐩樸€傚彾鑺傜偣涓嶈兘鐩存帴璁块棶鍏变韩瀛樺偍銆?/span>

Flex Cluster require Flex ASM. Flex ASM does not require a Flex Cluster.  Flex Cluster闇€瑕丗lex ASM銆侳lex ASM涓嶉渶瑕丗lex Cluster
In Flex cluster node,the Flex ASM can run on the Hub nodes servicing clients across the Hub nodes of the Flex cluster.  鍦‵lex Cluster鑺傜偣涓紝Flex ASM鍙互鍦ㄩ泦绾垮櫒鑺傜偣涓婅繍琛岋紝涓鸿法Flex Cluster鐨勯泦绾垮櫒鑺傜偣鐨勫鎴风鎻愪緵鏈嶅姟

The default Oracle Flex Cluster is disabled,users explicity enable Flex Cluster functionality. 榛樿鐨凮racle Flex Cluster宸茬鐢紝鐢ㄦ埛鏄庣‘鍚敤浜咶lex Cluster鍔熻兘

 What is ASM Network and ASM listener?  浠€涔堟槸ASM Network and ASM listener

In previous 12c ,the Oracle clusterware required a public network for client access and a private network for inter-node communication including ASM inter-node communication in the cluster.

鍦ㄤ箣鍓嶇殑12c涓紝Oracle闆嗙兢浠堕渶瑕佷竴涓叕鍏辩綉缁滅敤浜庡鎴风璁块棶锛屽苟闇€瑕佷竴涓鏈夌綉缁滅敤浜庤妭鐐归棿閫氫俊锛屽寘鎷泦缇や腑鐨凙SM鑺傜偣闂撮€氫俊銆?/span>

In Flex ASM,ASM network provides the capability to isolate ASM’s internal network traffic to its own dedicated private network. The OUI presents the DBA with the choice as to whether a dedicated network is to be used for ASM. The ASM network is the communication path in which all the traffic between database instances and ASM instances commence. This traffic is mostly the metadata such as a particular file’s extent map. If the customer chooses, the ASM private network can be dedicated for ASM traffic or shared with CSS and a dedicated network is not required.

鍦‵lex ASM涓紝ASM缃戠粶鎻愪緵浜嗗皢ASM鐨勫唴閮ㄧ綉缁滄祦閲忛殧绂诲埌鍏朵笓鐢ㄧ綉缁滅殑鍔熻兘銆侽UI鍚慏BA鎻愪緵鏈夊叧鏄惁灏嗕笓鐢ㄧ綉缁滅敤浜嶢SM鐨勯€夋嫨銆侫SM缃戠粶鏄暟鎹簱瀹炰緥鍜孉SM瀹炰緥涔嬮棿鐨勬墍鏈夋祦閲忓紑濮嬬殑閫氫俊璺緞銆傛娴侀噺涓昏鏄厓鏁版嵁锛屼緥濡傜壒瀹氭枃浠剁殑鑼冨洿鍥俱€傚鏋滃鎴烽€夋嫨锛屽垯ASM涓撶敤缃戠粶鍙互涓撶敤浜嶢SM閫氫俊鎴栦笌CSS鍏变韩锛屽苟涓斾笉闇€瑕佷笓鐢ㄧ綉缁溿€?/span>

There will be local ASM listener runs on each node where the flex ASM instance is running.ASM clients connect to Flex ASM over the ASM network by using highly available connection endpoints supplied by up to three ASM listeners.Connections are load balanced across the ASM cluster.

杩愯Flex ASM瀹炰緥鐨勬瘡涓妭鐐逛笂閮藉皢杩愯鏈湴ASM渚﹀惉鍣?ASM瀹㈡埛绔€氳繃浣跨敤鏈€澶氫笁涓狝SM渚﹀惉鍣ㄦ彁渚涚殑楂樺彲鐢ㄦ€ц繛鎺ョ鐐癸紝閫氳繃ASM缃戠粶杩炴帴鍒癋lex ASM銆?/span>

 How to implement Flex ASM feature?  濡備綍瀹炵幇Flex ASM鍔熻兘

 The flex ASM can be implemented in the below ways  鍙互閫氳繃浠ヤ笅鏂瑰紡瀹炵幇flex ASM

       * Pure 12c Flex ASM - In this mode the Grid Infrastructure and Database are both running the 12c version. In this model, the database fully leverages all the new 12c features  鍦ㄦ妯″紡涓嬶紝Grid Infrastructure and Database閮借繍琛?2c鐗堟湰銆傚湪姝ゆā鍨嬩腑锛屾暟鎹簱鍏呭垎鍒╃敤浜?2c鐨勬墍鏈夋柊鍔熻兘

       * Pre 12c Mixed - This mode the ASM will run on each node with Flex configuration to support pre 12c database .To achive this, set the the ASM cardinality to “all” which insures that there is an ASM instance on every server in a cluster. The advantage of this approach is that if an Oracle 12c database instance loses connectivity with an ASM instance, then the database connection will failover to another ASM instance on a different server.  鍦ㄨ繖绉嶆ā寮忎笅锛孉SM灏嗗湪鍏锋湁Flex閰嶇疆鐨勬瘡涓妭鐐逛笂杩愯锛屼互鏀寔12c涔嬪墠鐨勬暟鎹簱銆傝瀹炵幇姝ょ洰鐨勶紝璇峰皢ASM鍩烘暟璁剧疆涓?ldquo; all”锛屼互纭繚闆嗙兢涓殑姣忎釜鏈嶅姟鍣ㄤ笂閮芥湁涓€涓狝SM瀹炰緥銆?杩欑鏂规硶鐨勪紭鐐规槸锛屽鏋淥racle 12c鏁版嵁搴撳疄渚嬪け鍘讳笌ASM瀹炰緥鐨勮繛鎺ワ紝鍒欐暟鎹簱杩炴帴灏嗘晠闅滆浆绉诲埌鍙︿竴鍙版湇鍔″櫒涓婄殑鍙︿竴涓狝SM瀹炰緥銆?/span>

 How to check Oracle Flex ASM has setup?  濡備綍妫€鏌racle Flex ASM鏄惁宸插畨瑁?/span>

 ASMCMD> showclustermode
 ASM cluster : Flex mode enabled

 ASMCMD> showclusterstate
 Normal

 How to change the cardinality of the ASM to be up in the cluster?  濡備綍鏇存敼瑕佸湪缇ら泦涓惎鍔ㄧ殑ASM鐨勫熀鏁?/span>

[root@test bin]# ./srvctl modify asm -count 4
[root@test bin]# ./srvctl config asm
ASM home: /u01/app/12.1.0/grid
Password file: +DATA/orapwASM
ASM listener: LISTENER
ASM instance count: 4
Cluster ASM listener: ASMNET1LSNR_ASM

The minimum cardinality value is 2.  鏈€灏忓熀鏁板€间负2

On 12.1.0.1 it might be possible to set it to below 2, but it is not recommended. With Patch 17990656 it will report  鍦?2.1.0.1涓婏紝鍙互灏嗗叾璁剧疆涓?浠ヤ笅锛屼絾涓嶅缓璁繖鏍峰仛銆備娇鐢ㄨˉ涓?7990656锛屽畠灏嗘姤鍛?/span>

PRCA-1123 : TOO_SMALL_COUNT_FOR_ASM, "The specified ASM cardinality {0} is less than the minimum cardinality of 2."

 Note 1968485.1 discusses one similar issue.   Note 1968485.1璁ㄨ浜嗕竴涓被浼肩殑闂銆?/span>

 How to relocate Database client to different ASM?  濡備綍灏嗘暟鎹簱瀹㈡埛绔噸瀹氫綅鍒颁笉鍚岀殑ASM锛?/span>

Clients are automatically relocated to another instance if an ASM instance fails and the connection is load balanced to an available instance.

濡傛灉ASM瀹炰緥澶辫触骞朵笖杩炴帴璐熻浇鍧囪 鍒板彲鐢ㄥ疄渚嬶紝鍒欏鎴风浼氳嚜鍔ㄩ噸瀹氫綅鍒板彟涓€涓疄渚?/span>

Clients can be manually relocated using the  鍙互浣跨敤

ALTER SYSTEM RELOCATE CLIENT command.

– The command syntax is:  鍛戒护璇硶涓?/span>

SQL> ALTER SYSTEM RELOCATE CLIENT 鈥?lt;instance_name>:<db_name>鈥?

— Query GV$ASM_CLIENT to determine instance_name and db_name.

 How to check ASM instances running nodes?   濡備綍鏌ョ湅杩愯鑺傜偣鐨凙SM瀹炰緥

$ srvctl status asm -detail
ASM is running on test1,test2
ASM is enabled

 How to convert Non-Flex ASM to Flex ASM  濡備綍灏哊on-Flex ASM杞崲涓篎lex ASM

The standard ASM cluster to Flex ASM using ASMCA or  浣跨敤ASMCA鎴朏lex鐨勬爣鍑咥SM缇ら泦

i) Invoke the ASMCA GUI or silent mode  璋冪敤ASMCA GUI鎴栭潤榛樻ā寮?/span>

[oracle@test1 ~]$ asmca -silent -convertToFlexASM -asmNetworks eth1/xx.xx.xx.xx -asmListenerPort 1521

To complete ASM conversion, run the following script as privileged user in local node.
<ORACLE_BASE>/cfgtoollogs/asmca/scripts/converttoFlexASM.sh

 

<ORACLE_BASE>/cfgtoollogs/asmca/scripts/converttoFlexASM.sh

CRS-2673: Attempting to stop 鈥榦ra.crsd鈥?on 鈥榯est1鈥?CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 鈥榯est1鈥?CRS-2673: Attempting to stop 鈥榦ra.LISTENER_SCAN2.lsnr鈥?on 鈥榯est1鈥?CRS-2673: Attempting to stop 鈥榦ra.LISTENER_SCAN3.lsnr鈥?on 鈥榯est1鈥?CRS-2673: Attempting to stop 鈥榦ra.DATA.dg鈥?on 鈥榯est1鈥?CRS-2673: Attempting to stop 鈥榦ra.LISTENER.lsnr鈥?on 鈥榯est1鈥?CRS-2673: Attempting to stop 鈥榦ra.cvu鈥?on 鈥榯est1鈥?CRS-2677: Stop of 鈥榦ra.LISTENER_SCAN2.lsnr鈥?on 鈥榯est1鈥?succeeded
CRS-2673: Attempting to stop 鈥榦ra.scan2.vip鈥?on 鈥榯est1鈥?CRS-2677: Stop of 鈥榦ra.LISTENER.lsnr鈥?on 鈥榯est1鈥?succeeded
CRS-2673: Attempting to stop 鈥榦ra.test1.vip鈥?on 鈥榯est1鈥?CRS-2677: Stop of 鈥榦ra.LISTENER_SCAN3.lsnr鈥?on 鈥榯est1鈥?succeeded
CRS-2673: Attempting to stop 鈥榦ra.scan3.vip鈥?on 鈥榯est1鈥?CRS-2677: Stop of 鈥榦ra.cvu鈥?on 鈥榯est1鈥?succeeded
CRS-2672: Attempting to start 鈥榦ra.cvu鈥?on 鈥榯est2鈥?CRS-2676: Start of 鈥榦ra.cvu鈥?on 鈥榯est2鈥?succeeded
CRS-2677: Stop of 鈥榦ra.scan2.vip鈥?on 鈥榯est1鈥?succeeded
CRS-2672: Attempting to start 鈥榦ra.scan2.vip鈥?on 鈥榯est2鈥?CRS-2677: Stop of 鈥榦ra.scan3.vip鈥?on 鈥榯est1鈥?succeeded
CRS-2672: Attempting to start 鈥榦ra.scan3.vip鈥?on 鈥榯est2鈥?CRS-2676: Start of 鈥榦ra.scan2.vip鈥?on 鈥榯est2鈥?succeeded
CRS-2672: Attempting to start 鈥榦ra.LISTENER_SCAN2.lsnr鈥?on 鈥榯est2鈥?CRS-2677: Stop of 鈥榦ra.test1.vip鈥?on 鈥榯est1鈥?succeeded
CRS-2672: Attempting to start 鈥榦ra.test1.vip鈥?on 鈥榯est2鈥?CRS-2676: Start of 鈥榦ra.scan3.vip鈥?on 鈥榯est2鈥?succeeded
CRS-2672: Attempting to start 鈥榦ra.LISTENER_SCAN3.lsnr鈥?on 鈥榯est2鈥?CRS-2676: Start of 鈥榦ra.test1.vip鈥?on 鈥榯est2鈥?succeeded


CRS-2672: Attempting to start 鈥榦ra.storage鈥?on 鈥榯est2鈥?CRS-2676: Start of 鈥榦ra.storage鈥?on 鈥榯est2鈥?succeeded


+ echo 鈥楥luster bounced in node test2鈥?Cluster bounced in node test2

銆€銆€

ASMCMD> showclustermode
ASM cluster : Flex mode enabled

ASMCMD> showclusterstate
Normal

Can not convert back to standard ASM cluster from Oracle Flex Cluster. From 12.2, Flex is enabled by default and cannot be disabled.

 鏃犳硶浠嶰racle Flex Cluster杞崲鍥炴爣鍑咥SM缇ら泦銆備粠12.2寮€濮嬶紝榛樿鎯呭喌涓嬪惎鐢‵lex锛屽苟涓斾笉鑳界鐢ㄥ畠銆?/strong>

REFERENCES

NOTE:1968485.1 - 12c: "ORA-00600: [kfzUserPwd_nousr]" Is Reported In Flex ASM Configuration (After Set "ASM Count = 1")

以上是关于FAQ: Oracle Flex ASM 12c / 12.1 (Doc ID 1573137.1)的主要内容,如果未能解决你的问题,请参考以下文章

oracle 12c dbca 无法发现 asm diskgroup

Oracle12c 中RAC功能增强新特性之ASM&amp;Grid

深入了解 Oracle Flex ASM 及其优点

测试客户端连接12c ASM实例

Oracle 12C 新特性之在线重命名迁移活跃的数据文件

在Oracle 12c中,在RMAN方面有哪些增强的新特性?