ASM Using OS Files Instead of Real Raw Devices On Windows. [ID 602620.1]

2024-04-04 03:08

本文主要是介绍ASM Using OS Files Instead of Real Raw Devices On Windows. [ID 602620.1],希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

 

Windows 平台下,使用OS files 代替raw devices,步骤如下:

 

1)    If the ASM instance was not created, then create an ASM instance thru the DBCA .

2)   Update the initialization parameter file with the next hidden parameter:

Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
With the Partitioning, Oracle Label Security, OLAP and Data Mining options

INSTANCE_NAME
----------------
+asm

SQL> alter system set "_asm_allow_only_raw_disks"=false scope=spfile;
System altered.

 

3)    If you have real raw devices you will see them after create the ASM instance:

SQL> select path from v$asm_disk;

PATH
--------------------------------------------------------------------------------
//./ORCLDISKDG0
//./ORCLDISKDG1
//./ORCLDISKDATA0
//./ORCLDISKDATA1
//./ORCLDISKDATA2
//./ORCLDISKDATA3
//./ORCLDISKFRA0
//./ORCLDISKFRA1

8 rows selected.

4)  Create the new directory to allocate the fake files/disks:

SQL> host mkdir d:/asmfake

 

5)  Update the ASM instance with the new path associated with the fake directory:

SQL> alter system set asm_diskstring='//./ORCLDISK*','d:/asmfake/*' scope=both;
System altered.

 

6)  Shutdown and startup the ASM instance to apply the changes:

SQL> shutdown
ASM diskgroups dismounted
ASM instance shutdown

SQL> startup
ASM instance started

Total System Global Area   83886080 bytes
Fixed Size                  1289028 bytes
Variable Size              57431228 bytes
ASM Cache                  25165824 bytes
ASM diskgroups mounted

SQL> show parameter asm

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
_asm_allow_only_raw_disks            boolean     FALSE
asm_diskgroups                       string      DATADG, FRADG
asm_diskstring                       string      //./ORCLDISK*, d:/asmfake/*
asm_power_limit                      integer     1

 

7)   In order to create fake files to be used as ASM disks you will need to create them thru the dd command, therefore please install the dd command for windows, you can download it from:

http://www.chrysocome.net/dd

 

8)  Then create the desired fake disks/files on the fake directory:

SQL> host dd if=/dev/zero of=d:/asmfake/fakeasm1 bs=1k count=1000000

1000000+0 records in
1000000+0 records out

SQL> host dd if=/dev/zero of=d:/asmfake/fakeasm2 bs=1k count=1000000

1000000+0 records in
1000000+0 records out

SQL> host dd if=/dev/zero of=d:/asmfake/fakeasm3 bs=1k count=1000000

1000000+0 records in
1000000+0 records out

SQL> host dd if=/dev/zero of=d:/asmfake/fakeasm4 bs=1k count=1000000

1000000+0 records in
1000000+0 records out


SQL> host dir d:/asmfake/*
 Volume in drive D is New Volume
 Volume Serial Number is 94B6-1FC7

 Directory of d:/asmfake

06/11/2008  03:00 PM    <DIR>          .
06/11/2008  03:00 PM    <DIR>          ..
06/11/2008  02:58 PM     1,024,000,000 fakeasm1
06/11/2008  02:59 PM     1,024,000,000 fakeasm2
06/11/2008  03:00 PM     1,024,000,000 fakeasm3
06/11/2008  03:01 PM     1,024,000,000 fakeasm4
               4 File(s)  4,096,000,000 bytes
               2 Dir(s)  19,148,734,464 bytes free

9)  Connect to the ASM instance and make sure the fake disks are visible:

SQL> select path from v$asm_disk;

PATH
----------------------------------------------------------
D:/ASMFAKE/FAKEASM1
D:/ASMFAKE/FAKEASM2
D:/ASMFAKE/FAKEASM3
D:/ASMFAKE/FAKEASM4
//./ORCLDISKDG0
//./ORCLDISKDG1
//./ORCLDISKDATA0
//./ORCLDISKDATA1
//./ORCLDISKDATA2
//./ORCLDISKDATA3
//./ORCLDISKFRA0
//./ORCLDISKFRA1

12 rows selected.

 

10)  Then create diskgroup(s) using the fake disks:

SQL> create diskgroup TEST external redundancy disk 'D:/ASMFAKE/FAKEASM1',
  2  'D:/ASMFAKE/FAKEASM2',
  3  'D:/ASMFAKE/FAKEASM3',
  4  'D:/ASMFAKE/FAKEASM4';

Diskgroup created.

SQL> select name, state from v$asm_diskgroup;

NAME                           STATE
------------------------------ -----------
DATADG                         MOUNTED
FRADG                          MOUNTED
TEST                           MOUNTED

SQL> select name, path from v$asm_disk where group_number =3;

NAME                           PATH
------------------------------ ----------------------------------
TEST_0000                      D:/ASMFAKE/FAKEASM1
TEST_0001                      D:/ASMFAKE/FAKEASM2
TEST_0002                      D:/ASMFAKE/FAKEASM3
TEST_0003                      D:/ASMFAKE/FAKEASM4

 

11)  Now your new diskgroup was created using OS files.

 

 

 

 

From Oracle

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

QQ: 492913789
Email: ahdba@qq.com
Blog: http://www.cndba.cn/dave

DBA1 群:62697716();   DBA2 群:62697977()   DBA3 群:62697850()  

DBA 超级群:63306533();  DBA4 群: 83829929  DBA5群: 142216823   

聊天 群:40132017   聊天2群:69087192

--加群需要在备注说明Oracle表空间和数据文件的关系,否则拒绝申请

这篇关于ASM Using OS Files Instead of Real Raw Devices On Windows. [ID 602620.1]的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/874661

相关文章

Windows设置nginx启动端口的方法

《Windows设置nginx启动端口的方法》在服务器配置与开发过程中,nginx作为一款高效的HTTP和反向代理服务器,被广泛应用,而在Windows系统中,合理设置nginx的启动端口,是确保其正... 目录一、为什么要设置 nginx 启动端口二、设置步骤三、常见问题及解决一、为什么要设置 nginx

在 Windows 上安装 DeepSeek 的完整指南(最新推荐)

《在Windows上安装DeepSeek的完整指南(最新推荐)》在Windows上安装DeepSeek的完整指南,包括下载和安装Ollama、下载DeepSeekRXNUMX模型、运行Deep... 目录在www.chinasem.cn Windows 上安装 DeepSeek 的完整指南步骤 1:下载并安装

龙蜥操作系统Anolis OS-23.x安装配置图解教程(保姆级)

《龙蜥操作系统AnolisOS-23.x安装配置图解教程(保姆级)》:本文主要介绍了安装和配置AnolisOS23.2系统,包括分区、软件选择、设置root密码、网络配置、主机名设置和禁用SELinux的步骤,详细内容请阅读本文,希望能对你有所帮助... ‌AnolisOS‌是由阿里云推出的开源操作系统,旨

windows系统下shutdown重启关机命令超详细教程

《windows系统下shutdown重启关机命令超详细教程》shutdown命令是一个强大的工具,允许你通过命令行快速完成关机、重启或注销操作,本文将为你详细解析shutdown命令的使用方法,并提... 目录一、shutdown 命令简介二、shutdown 命令的基本用法三、远程关机与重启四、实际应用

python中os.stat().st_size、os.path.getsize()获取文件大小

《python中os.stat().st_size、os.path.getsize()获取文件大小》本文介绍了使用os.stat()和os.path.getsize()函数获取文件大小,文中通过示例代... 目录一、os.stat().st_size二、os.path.getsize()三、函数封装一、os

Windows自动化Python pyautogui RPA操作实现

《Windows自动化PythonpyautoguiRPA操作实现》本文详细介绍了使用Python的pyautogui库进行Windows自动化操作的实现方法,文中通过示例代码介绍的非常详细,对大... 目录依赖包睡眠:鼠标事件:杀死进程:获取所有窗口的名称:显示窗口:根据图片找元素:输入文字:打开应用:依

javafx 如何将项目打包为 Windows 的可执行文件exe

《javafx如何将项目打包为Windows的可执行文件exe》文章介绍了三种将JavaFX项目打包为.exe文件的方法:方法1使用jpackage(适用于JDK14及以上版本),方法2使用La... 目录方法 1:使用 jpackage(适用于 JDK 14 及更高版本)方法 2:使用 Launch4j(

windows端python版本管理工具pyenv-win安装使用

《windows端python版本管理工具pyenv-win安装使用》:本文主要介绍如何通过git方式下载和配置pyenv-win,包括下载、克隆仓库、配置环境变量等步骤,同时还详细介绍了如何使用... 目录pyenv-win 下载配置环境变量使用 pyenv-win 管理 python 版本一、安装 和

Python使用pysmb库访问Windows共享文件夹的详细教程

《Python使用pysmb库访问Windows共享文件夹的详细教程》本教程旨在帮助您使用pysmb库,通过SMB(ServerMessageBlock)协议,轻松连接到Windows共享文件夹,并列... 目录前置条件步骤一:导入必要的模块步骤二:配置连接参数步骤三:实例化SMB连接对象并尝试连接步骤四:

在 Windows 上部署 gitblit

在 Windows 上部署 gitblit 在 Windows 上部署 gitblit 缘起gitblit 是什么安装JDK部署 gitblit 下载 gitblit 并解压配置登录注册为 windows 服务 修改 installService.cmd 文件运行 installService.cmd运行 gitblitw.exe查看 services.msc 缘起