手机版
你好,游客 登录 注册
背景:
阅读新闻

创建ASM With Oracle 10g

[日期:2013-02-25] 来源:Linux社区  作者:gtlions [字体:大 中 小]

在OS查看相关进程

[Oracle@gtser1~]$  ps -ef | grep asm

oracle    3323    1  0 15:20 ?        00:00:00 asm_pmon_+ASM

oracle    3325    1  0 15:20 ?        00:00:00 asm_psp0_+ASM

oracle    3327    1  0 15:20 ?        00:00:00 asm_mman_+ASM

oracle    3329    1  0 15:20 ?        00:00:00 asm_dbw0_+ASM

oracle    3331    1  0 15:20 ?        00:00:00 asm_lgwr_+ASM

oracle    3333    1  0 15:20 ?        00:00:00 asm_ckpt_+ASM

oracle    3335    1  0 15:20 ?        00:00:00 asm_smon_+ASM

oracle    3337    1  0 15:20 ?        00:00:00 asm_rbal_+ASM

oracle    3339    1  0 15:20 ?        00:00:00 asm_gmon_+ASM

oracle    3361 3256  0 15:28 pts/1    00:00:00 grep asm

[oracle@gtser1~]$ sqlplus "/as sysdba"

 

SQL*Plus:Release 10.2.0.5.0 - Production on Sat Feb 23 15:30:12 2013

 

Copyright(c) 1982, 2010, Oracle.  All RightsReserved.

 

 

Connectedto:

OracleDatabase 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production

With thePartitioning, OLAP, Data Mining and Real Application Testing options

 

SQL>show parameter spfile;

 

NAME                                TYPE

----------------------------------------------------------

VALUE

------------------------------

spfile                              string

 

SQL>startup force;

ASMinstance started

 

TotalSystem Global Area  125829120 bytes

FixedSize                  2094512 bytes

VariableSize              98568784 bytes

ASMCache                  25165824 bytes

ORA-15110:no diskgroups mounted

 

 

SQL>show parameter spfile;

 

NAME                                TYPE

----------------------------------------------------------

VALUE

------------------------------

spfile                              string

/u01/oracle/10g/product/10.2.0

/db_1/dbs/spfile+ASM.ora

SQL>exit

Disconnectedfrom Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bitProduction

With thePartitioning, OLAP, Data Mining and Real Application Testing options   

创建密码文件     

[oracle@gtser1~]$ orapwd file=/u01/oracle/10g/product/10.2.0/db_1/dbs/orapw+ASM password=000000enter=5

Usage:orapwd file=<fname> entries=<users> force=<y/n>ignorecase=<y/n> nosysdba=<y/n>

 

  where

    file - name of password file (required),

    password - password for SYS will beprompted if not specified at command line,

    entries - maximum number of distinct DBA(optional),

    force - whether to overwrite existing file(optional),

    ignorecase - passwords are case-insensitive(optional),

    nosysdba - whether to shut out the SYSDBAlogon (optional Database Vault only).

   

  There must be no spaces around the equal-to(=) character.

[oracle@gtser1~]$ orapwd file=/u01/oracle/10g/product/10.2.0/db_1/dbs/orapw+ASMpassword=000000 entries=5

创建磁盘组,创建名为data01的外部冗余的磁盘组,用于存放数据文件

SQL>create diskgroup data01 external redundancy disk '/dev/raw/raw1' name disk1;

 

Diskgroupcreated.

将raw2添加到data01磁盘组

SQL>alter diskgroup data01 add disk '/dev/raw/raw2' name d2;

 

Diskgroupaltered.

创建磁盘组,创建名为fra的外部冗余的磁盘组,用于FRA

SQL>create diskgroup fra external redundancy disk '/dev/raw/raw3' name d3, '/dev/raw/raw4'name d4;

linux
相关资讯       ORACLE 10G  Oracle asm 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款