Sample Code for Oracle ASM instance Configuration

Source: Internet
Author: User

Are you very worried about the actual configuration of Oracle ASM instances? If this is the case, the following articles will give you the corresponding solutions. The following articles mainly introduce the Oracle ASM instance configuration solution. The following describes the specific content.

3.1 initialization parameters

 
 
  1. [oracle@node1 bin]$ export ORACLE_SID=+ASM1  
  2. [oracle@node1 bin]$ sqlplus / as sysdba  
  3. SQL*Plus: Release 10.2.0.1.0 - Production on Sun Feb 21 19:10:51 2010  
  4. Copyright (c) 1982, 2005, Oracle. All rights reserved.  
  5. Connected to:  
  6. Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production  
  7. With the Partitioning, Real Application Clusters, OLAP and Data Mining options  
  8. SQL> create pfile from spfile;  
  9. File created.  
  10. SQL> show parameter asm  
  11. NAME TYPE VALUE  
  12. asm_diskgroups string FLASH_RECOVERY_AREA, DATA  
  13. asm_diskstring string  
  14. asm_power_limit integer 1  
  15. [oracle@node2 dbs]$ pwd  
  16. /u01/app/oracle/product/10.2.0/db_1/dbs  
  17. [oracle@node2 dbs]$ ls  
  18. ab_+ASM2.dat hc_rac2.dat initrac2.ora orapwrac2  
  19. hc_+ASM2.dat init+ASM2.ora orapw+ASM2  
  20. [oracle@node2 dbs]$ more init+ASM1.ora  
  21. +ASM2.asm_diskgroups='FLASH_RECOVERY_AREA'#Manual Dismount  
  22. +ASM1.asm_diskgroups='FLASH_RECOVERY_AREA','DATA'#Manual Mount  
  23. *.asm_diskgroups='FLASH_RECOVERY_AREA','DATA'  
  24. *.background_dump_dest='/u01/app/oracle/admin/+ASM/bdump' 
  25. *.cluster_database=true 
  26. *.core_dump_dest='/u01/app/oracle/admin/+ASM/cdump' 
  27. +ASM2.instance_number=2  
  28. +ASM1.instance_number=1  
  29. *.instance_type='asm' 
  30. *.large_pool_size=12M 
  31. *.remote_login_passwordfile='exclusive' 
  32. *.user_dump_dest='/u01/app/oracle/admin/+ASM/udump' 

Instructions:

The memory required by the SGA of the Oracle ASM instance is small. Generally, the default value is enough without modification. The default value of asm sga is as follows:

 
 
  1. SHARED_POOL_SIZE = 48M 
  2. LARGE_POOL_SIZE = 12M 
  3. SHARED_POOL_RESERVED_SIZE = 24M 
  4. SGA_MAX_SIZE = 88M 

These default values can be viewed through show parameter in sqlplus.

Instance_type: for ASM instances, set this parameter to Oracle ASM. For database instances, set this parameter to RDBMS.

DB_UNIQUE_NAME: use the default value + ASM.

 
 
  1. SQL> show parameter asm_power_limit  
  2. NAME TYPE VALUE  
  3. asm_power_limit integer 1  

Oracle ASM_POWER_LIMIT: When a disk is added to or deleted from a disk group, the disk group automatically allocates data between the new and old disks to achieve scattered IO. This process is called Rebalance );

This action moves data between disks. Therefore, although online operations still affect some performance, it must be performed when the system is idle. This parameter controls the Rebalance speed. The value range is 0-11. the minimum value 0 indicates that Rebalance is not performed. The maximum value 11 indicates the fastest speed and seriously affects performance. 1 indicates the slowest speed and the minimum performance impact. In addition to defining this parameter in the initialization parameter, you can also specify this parameter during the operation.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.