Oracleasm introduces and installs linux5.2oracle10gasm process 1) the reason for ASM (Automatic Storage Management): ASM is a new function launched in Oracle10gR2 to simplify the management of Oracle databases, this is a volume manager provided by Oracle. It is mainly used to replace the LVM provided by the operating system. It not only supports a single instance, but also supports
Oracle asm introduces and installs linux5.2oracle10gasm process 1) the reason for ASM (Automatic Storage Management): ASM is a new function launched in Oracle 10g R2 to simplify the management of Oracle databases, this is a volume manager provided by Oracle. It is mainly used to replace the LVM provided by the operating system. It not only supports a single instance, but also supports
Oracle asm introduction and installation of linux5.2 + oracle10g + asm Process
1) The reason for ASM (Automatic Storage Management:
ASM is a new feature in Oracle 10g R2 to simplify the management of Oracle databases. It is a volume manager provided by Oracle itself and is mainly used to replace LVM provided by the operating system, it not only supports single instances, but also supports RAC very well. ASM can automatically manage disk groups and provide effective data redundancy. With ASM (Automatic Storage Management), Database Administrators no longer need to manage and classify thousands of data files in ORACLE, which simplifies DBA workload and greatly improves work efficiency.
2) What is ASM?
ASM provides platform-independent file systems, logical volume management, and soft RAID services. ASM supports strip and disk images, so that the disk can be added or removed when the database is loaded, and the I/O can be automatically balanced to delete the "Hotspot ". It also supports direct and asynchronous I/O and uses the Oracle Data Manager API introduced in Oracle9i (simplified I/O system call interface ).
ASM is implemented and deployed as a separate Oracle instance. It only needs to have a parameter file and can start the ASM instance without any other physical files. Only when it is running, to be accessed by other data. On the Linux platform, you can access ASM only when you run the OCSSD service (which is installed by default by the Oracle installer.
3) install and configure the asm Software
1.: otn http://www.oracle.com/technetwork/server-storage/linux/downloads/rhel4-092650.html find the corresponding kernel asm required installation package
2. Install the asm package as a root user:
Ps: kernel-debug kernel-PAE kernel-xen is the previous package required by asm. It can be obtained from the linux installation CD.
3. Hard Disk partitioning
[Root @ localhost temp] # fdisk-l
Disk/dev/sda: 214.7 GB, 214748364800 bytes
255 heads, 63 sectors/track, 26108 cylinders
Units = cylinders of 16065*512 = 8225280 bytes
Device Boot Start End Blocks Id System
/Dev/sda1*1 13 104391 83 Linux
/Dev/sda2 14 535 4192965 82 Linux swap/Solaris
/Dev/sda3 536 26108 205415122 + 83 Linux
Disk/dev/sdb: 214.7 GB, 214748364800 bytes
255 heads, 63 sectors/track, 26108 cylinders
Units = cylinders of 16065*512 = 8225280 bytes
Disk/dev/sdb doesn' t contain a valid partition table
Disk/dev/sdc: 107.3 GB, 107374182400 bytes
255 heads, 63 sectors/track, 13054 cylinders
Units = cylinders of 16065*512 = 8225280 bytes
Disk/dev/sdc doesn' t contain a valid partition table
[Root @ localhost temp] # fdisk/dev/sdb
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
Until you decide to write them. After that, of course, the previous
Content won't be recoverable.
The number of cylinders for this disk is set to 26108.
There is nothing wrong with that, but this is larger than 1024,
And coshould in certain setups cause problems:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(E.g., dos fdisk, OS/2 FDISK)
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w (rite)
Command (m for help): n
Command action
E extended
P primary partition (1-4)
P
Partition number (1-4): 1
First cylinder (1-26108, default 1 ):
Using default value 1
Last cylinder or + size or + sizeM or + sizeK (1-26108, default 26108 ):
Using default value 26108
Command (m for help): w
The partition table has been altered!
Calling ioctl () to re-read partition table.
Syncing disks.
[Root @ localhost temp] # fdisk/dev/sdc
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
Until you decide to write them. After that, of course, the previous
Content won't be recoverable.
The number of cylinders for this disk is set to 13054.
There is nothing wrong with that, but this is larger than 1024,
And coshould in certain setups cause problems:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(E.g., dos fdisk, OS/2 FDISK)
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w (rite)
Command (m for help): n
Command action
E extended
P primary partition (1-4)
P
Partition number (1-4): 1
First cylinder (1-13054, default 1 ):
Using default value 1
Last cylinder or + size or + sizeM or + sizeK (1-13054, default 13054 ):
Using default value 13054
Command (m for help): w
The partition table has been altered!
Calling ioctl () to re-read partition table.
Syncing disks.
4. Create an asm Disk
Configure the asm Startup Mode and user, assuming that oracle and dba groups have been established, you can also refer to the linux installation oracle10g article content, portal: http://blog.csdn.net/w63667329/article/details/7890172
[Root @ localhost temp] #/etc/init. d/oracleasm configure
Processing the Oracle ASM library driver.
This will configure the on-boot properties of the Oracle ASM library
Driver. The following questions will determine whether the driver is
Loaded on boot and what permissions it will have. The current values
Will be shown in brackets ('[]'). Hitting Without typing
Answer will keep that current value. Ctrl-C will abort.
Default user to own the driver interface []: oracle
Default group to own the driver interface []: dba
Start Oracle ASM library driver on boot (y/n) [n]: y
Scan for Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration: done
Initializing the Oracle ASMLib driver: [OK]
Scanning the system for Oracle ASMLib disks: [OK]
[Root @ localhost temp] #/etc/init. d/oracleasm createdisk ORACLEASM1/dev/sdb1
Marking disk "ORACLEASM2" as an ASM disk: [OK]
[Root @ localhost temp] #/etc/init. d/oracleasm createdisk ORACLEASM2/dev/sdc1
Marking disk "ORACLEASM2" as an ASM disk: [OK]
[Root @ localhost temp] #/etc/init. d/oracleasm listdisks
ORACLEASM1
ORACLEASM2
5. Install oracle software)
Linux installation oracle10g: http://blog.csdn.net/w63667329/article/details/7890172
Install the linux operating system and configure the linux operating system to perform the same operation.
1 ..If you can log on to the graphic interface, we recommend that you use the oracle user to log on and install it again (the root user is not recommended to switch to su-oracle after logon), or you can use a similar Xmanage software (similar to windows Remote Desktop)
2. Open the terminal./runInstaller
3. Select advanced installation and click Next.
4. Keep default. Next Step
5. Select enterprise Edition and click Next.
6. Because we have already set the environment variables, we can keep the default settings here. Next Step
7. Environment check. Because we use 5.3 instead of the default 3 or 4 Version redhat, the check fails, but it does not affect usage. Next Step
8. uninstalling the database. Use dbca to create the asm database and dbms database.
9. Enable Database Manager in dbca and select asm Management Configuration
10. Enter the asm user password and click Next.
11. Create asm group. Here there are three options: high for high image security, nomal for 1 invalid image disk, external for no image Disk
Select external for the experiment.
12. Create a data store and flashback.
13. Create database
14. Select a common application
15. Enter global and sid: WILLSON
16. Retain default em Creation
17. Enter the sys user password and click Next.
18. Select asm storage here. Next Step
19. Select data storage. Next Step (if there are two NICs, you need to set all static IP addresses)
20. Whether redo and controlfile need to be reused as needed to improve security
21. Specify the space used by flash recover area and enable archivelog.
22. Keep the default value and do not create a demo.
23. Set initialization parameters and custom settings
24. Start installation next
SQL> conn/as sysdba
Connected.
SQL>
SQL>
SQL>
SQL>
SQL> select open_mode from v $ database;
OPEN_MODE
----------
READ WRITE
Welcome to discuss oracle QQ: 624676778 bubble clear