Bo's Oracle Station

查看: 2147|回复: 0

课程第22次(2017-04-12星期三)

[复制链接]

1005

主题

1469

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
12012
发表于 2017-4-12 23:10:58 | 显示全部楼层 |阅读模式
+ASM:
  1. select  * from  v$asm_disk;

  2. select  * from v$asm_diskgroup;


  3. v$asm_operation

  4. select *  from v$asm_client;

  5. select  * from v$asm_file
  6.   where group_number=1 and file_number=264;

  7. select * from v$asm_alias
  8.   where  group_number=1
  9.    and lower(name)=lower('tbsasmunprotfine.dbf') ;


  10. ---
  11.   v$asm_attribute
  12. ---
  13. select  * from v$asm_template
  14.   where group_number=1;
  15.   
  16.   
复制代码
orcl:
  1. select  * from dba_data_files;
  2. create tablespace tbsasmhigh
  3. datafile '+newdata' size 10M;

  4. drop tablespace tbsasmhigh including contents ;

  5. create tablespace tbsasmhigh2
  6. datafile '+newdata/orcl/datafile/tbsasmhigh2.dbf' size 10M;

  7. alter tablespace tbsasmhigh2 offline ;

  8. alter database rename file '+newdata/orcl/datafile/tbsasmhigh2.dbf'
  9.   to '+newdata/orcl/datafile/TBSASMHIGH2.257.941145673';
  10.   
  11.   alter tablespace tbsasmhigh2 online ;
  12.   
  13.   select  * from v$controlfile;
  14.   
  15.   create tablespace tbsasmhighfine datafile '+DATA(mytemp1)'  size 10M;
  16.   
  17.   create tablespace tbsasmunprotfine
  18.   datafile '+DATA(mytemp2)/orcl/datafile/tbsasmunprotfine.dbf' size 10M;
复制代码



回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|Bo's Oracle Station   

GMT+8, 2024-4-20 01:30 , Processed in 0.037527 second(s), 24 queries .

快速回复 返回顶部 返回列表