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

熱點內容
怎麼驗證伺服器埠 瀏覽:609
如何添加密碼卡 瀏覽:670
2021好聲音在哪個app觀看 瀏覽:125
壓縮層計算深度 瀏覽:390
愛奇藝怎麼不能源碼輸出 瀏覽:833
小孩視力訓練app哪個好 瀏覽:830
表格上加密碼 瀏覽:200
伺服器如何調時間 瀏覽:416
安卓怎麼跟蹤對方蘋果手機位置 瀏覽:831
pptp伺服器地址怎麼設置 瀏覽:940
藍月傳奇bt源碼 瀏覽:832
丹麥丹佛斯壓縮機 瀏覽:773
statapwcorr命令 瀏覽:135
怎樣看文件夾創建程序 瀏覽:641
文明重啟伺服器什麼時候重啟 瀏覽:981
app開發哪個比較好 瀏覽:978
程序員電腦卡了 瀏覽:831
壓縮空氣系統作用 瀏覽:404
三輪車用哪個app 瀏覽:29
手游游戲端源碼 瀏覽:93