导航:首页 > 操作系统 > linuxora01034

linuxora01034

发布时间:2024-11-16 23:36:27

linux 中 ASM命令作用

oracle 10R2推出了asmcmd这个工具,可以用来管理asm存储上的文件。
1.使用asmcmd命令必须先启动asm实例,不然会有以下报错:rac2-> asmcmd -p
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux Error: 2: No such file or directory (DBD ERROR: OCISessionBegin)2.使用asmcmd必须先指定ORACLE_HOME和ORACLE_SID,注意此处ORACLE_SID是asm的sid,不然会报错:rac2-> asmcmd -p
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux Error: 2: No such file or directory (DBD ERROR: OCISessionBegin)3.asmcmd命令带p参数和不带p参数的作用:
带p,使用asmcmd将显示当前路径:rac2-> asmcmd -p
ASMCMD [+] > ls
DG1/
RECOVERDEST/
ASMCMD [+] > cd DG1
ASMCMD [+DG1] > ls
DEVDB/
ASMCMD [+DG1] > cd DEVDB
ASMCMD [+DG1/DEVDB] >不带p,不显示当前路径:rac2-> asmcmd
ASMCMD> ls
DG1/
RECOVERDEST/
ASMCMD> cd DG1
ASMCMD> ls
DEVDB/
ASMCMD> cd DEVDB
ASMCMD>4.其他相关参数,可使用help查看ASMCMD [+] > help
asmcmd [-p] [command]

The environment variables ORACLE_HOME and ORACLE_SID determine the
instance to which the program connects, and ASMCMD establishes a
bequeath connection to it, in the same manner as a SQLPLUS / AS
SYSDBA. The user must be a member of the SYSDBA group.

Specifying the -p option allows the current directory to be displayed
in the command prompt, like so:

ASMCMD [+DATAFILE/ORCL/CONTROLFILE] >

[command] specifies one of the following commands, along with its
parameters.

Type "help [command]" to get help on a specific ASMCMD command.

commands:
--------
cd

find
help
ls
lsct
lsdg
mkalias
mkdir
pwd
rm
rmalias

阅读全文

与linuxora01034相关的资料

热点内容
java类和继承 浏览:288
快手音视频算法开放平台产品 浏览:218
光遇国服为什么登录服务器失败 浏览:38
前端程序员年终工作总结图表 浏览:939
安卓手机如何恢复网站浏览记录 浏览:637
肺被压缩什么意思 浏览:43
航灯单片机 浏览:278
java的map数据结构 浏览:100
沈阳气体压缩机有限公司 浏览:600
胸椎压缩性骨折饮食 浏览:270
如何看服务器系统的版本号 浏览:26
龙吟平衡车如何用app使用 浏览:576
数字生态森林app怎么种树 浏览:18
python3非零返回 浏览:419
云页pdf 浏览:320
小米编译器app 浏览:868
加油吧程序员怎么样 浏览:831
cad线条拉伸命令快捷键 浏览:546
可以复制加密门禁的软件 浏览:45
电脑文件夹是默认共享的吗 浏览:758