導航:首頁 > 操作系統 > 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相關的資料

熱點內容
win7怎麼安裝編程 瀏覽:243
安卓光遇怎麼轉ios服 瀏覽:400
android展示文本 瀏覽:210
比特幣命令 瀏覽:956
pythonweb開發實戰常式 瀏覽:316
android圖片自動裁剪圖片 瀏覽:906
程序員閃退怎麼解決 瀏覽:526
看小視頻APP什麼秀 瀏覽:163
linuxping源地址 瀏覽:738
編程語言的優點與缺點 瀏覽:980
台灣歷史pdf 瀏覽:826
貸款簡訊提醒源碼 瀏覽:114
喬家的兒女在什麼app播 瀏覽:340
javalicense實現 瀏覽:376
mysql創建資料庫命令 瀏覽:990
紅色的魚是什麼app 瀏覽:685
程序員的生涯經歷 瀏覽:437
納粹命令 瀏覽:590
什麼講鬼故事app 瀏覽:969
程序員級升 瀏覽:89