建立ASM資料庫
一、配置ASM
1、使用ASMTOOL建立磁碟
C:\Users\Administrator>asmtool
ASM-00200: Invalid command option
ASM-00208: asmtool -add [-force] \Device\Harddisk1\Partition1 ORCLDISKasm0 ...
ASM-00209: asmtool -addprefix asm [-force] \Device\Harddisk1\Partition1 ...
ASM-00210:
asmtool -create \\server\share\file
ASM-00211: asmtool -delete ORCLDISKasm0 [ORCLDISKasm1 ...]
ASM-00212: asmtool -list [ORCLDISKasm0 ORCLDISKasm1 ...]
=======================================================================
C:\Users\Administrator>asmtool -create E:\asmdisk\DISK1 1024 --使用asmtool建立disk1
使用作業系統複製disk1,重新命名為disk2、disk3(使用作業系統複製比使用asmtool直接建立要快),這樣現在有三塊磁碟disk1、disk2、disk3。
2、配置oracle叢集同步服務(CSS)
C:\Users\Administrator>localconfig
usage:
crssetup
| ladd | shutdown | upgrade | help>
config - configure and startup the cluster on nodes
add - add specified nodes to the cluster
del - delete the specified nodes from the cluster
deconfig - wipe out all cluster configuration information
ldel - local css delete from oracle home
lres - local css home reset to new oracle home
ladd - local css add to oracle home
shutdown - shutdown the selected nodes
upgrade - upgrade the specified nodes
help - print out this information
=================================================================
C:\Users\Administrator>localconfig add
Step 1: creating new OCR repository
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'administrator', privgrp ''..
Operation successful.
Step 2: creating new CSS service
successfully created local CSS service
successfully added CSS to home
3、 使用DBCA配置自動儲存管理(ASM)
(1)、DBCA步驟1:
asm引數:asm_diskstring:E:\asmdisk\*
完成步驟一,+ASM例項已經建立完成。此時使用sqlplus連線例項。
C:\Users\Administrator>set oracle_sid=+asm
C:\Users\Administrator>sqlplus / as sysdba
SQL*Plus: Release 10.2.0.3.0 - Production on Tue Apr 24 11:59:52 2012
Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
With the Partitioning, OLAP and Data Mining options
SYS@ +asm > select path from v$asm_disk; --查詢結果為空。必須完成下面的步驟
no rows selected
(2)、要使用檔案代替磁碟,此處必須修改一個引數_asm_allow_only_raw_disks
SYS@ +asm > alter system set "_asm_allow_only_raw_disks"=false scope=spfile;
System altered.
SYS@ +asm > shutdown immediate
ORA-15100: invalid or missing diskgroup name
ASM instance shutdown
SYS@ +asm > startup
ASM instance started
Total System Global Area 83886080 bytes
Fixed Size 1289028 bytes
Variable Size 57431228 bytes
ASM Cache 25165824 bytes
ORA-15110: no diskgroups mounted
SYS@ +asm > select path from v$asm_disk; --現在可以檢視到建立的三塊磁碟!
PATH
----------------------------------------
E:\ASMDISK\DISK1
E:\ASMDISK\DISK3
E:\ASMDISK\DISK2
(3)、DBCA步驟2,建立磁碟組
dg1:常規(normal)冗餘,disk1、disk2,存放資料庫
dg2:外部(external)冗餘,disk3,存放閃回恢復區
二、建立資料庫
使用DBCA建立資料庫,資料庫使用dg1,閃回恢復區使用dg2
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/25744374/viewspace-722105/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 建立資料庫資料庫
- 【資料庫資料恢復】Oracle資料庫ASM磁碟組掉線如何恢復資料?資料庫資料恢復OracleASM
- Oracle資料庫 ASM磁碟線上擴容Oracle資料庫ASM
- 建立資料庫表資料庫
- Mysql建立資料庫MySql資料庫
- 【資料庫資料恢復】ASM磁碟組掉線的Oracle資料庫資料恢復案例資料庫資料恢復ASMOracle
- 【資料庫資料恢復】ASM例項不能掛載的Oracle資料庫資料恢復案例資料庫資料恢復ASMOracle
- XamarinSQLite教程建立資料庫aSQLite資料庫
- 建立資料mysql庫流程MySql
- 小黑框建立資料庫資料庫
- 資料庫 建立 3表資料庫
- mongodb 如何建立資料庫MongoDB資料庫
- 資料庫之建立索引資料庫索引
- ASM空間爆滿導致資料庫掛起ASM資料庫
- 2.10.3 使用 Oracle Automatic Storage Management (Oracle ASM) 克隆資料庫OracleASM資料庫
- oracle資料庫建立資料庫例項-九五小龐Oracle資料庫
- 2 建立和配置資料庫資料庫
- 2.8.1.4 建立資料庫服務資料庫
- 2.2.1 資料庫建立計劃資料庫
- 2.1 關於建立資料庫資料庫
- SQL建立資料庫和表SQL資料庫
- mongodb資料庫如何建立索引?MongoDB資料庫索引
- 從定位資料塊所在ASM磁碟到ASM strippingASM
- 【資料庫資料恢復】Oracle ASM例項無法掛載的資料恢復案例資料庫資料恢復OracleASM
- DB2建立資料庫,建立表空間DB2資料庫
- [20230214]資料庫連線訪問asm相關檢視.txt資料庫ASM
- php sqlite 建立本地資料庫PHPSQLite資料庫
- 2.5.8 指定OMF方式建立資料庫資料庫
- 2.5 指定資料庫建立語句資料庫
- 2.4.10 Step 9:手工建立資料庫資料庫
- 2.3 通過DBCA建立資料庫資料庫
- CQL #1:SQLChain 資料庫建立流程SQLAI資料庫
- ArcGIs建立企業級資料庫資料庫
- 建立一個SQL測試資料庫 - 消費者資料庫SQL資料庫
- asm磁碟組依賴導致資料庫自啟動報錯ASM資料庫
- 【ASK_ORACLE】Relink ASM單例項資料庫詳細步驟OracleASM單例資料庫
- 2.5.1 關於建立資料庫的子句資料庫
- 2.3.1 有關使用DBCA建立資料庫資料庫
- 2.4.1 使用 CREATE DATABASE 子句建立資料庫Database資料庫