rac環境 asmcmd用法;首先設定oracle_home oracle_sid(asm例項)

polestar123發表於2009-01-13
C:Documents and SettingsAdministrator>asmcmd
"asmcmd: the environment variable ORACLE_HOME is not set."

C:Documents and SettingsAdministrator>set oracle_home=c:oracleproduct10.2.0
db_1

C:Documents and SettingsAdministrator>set oracle_sid=+asm1

C:Documents and SettingsAdministrator>asmcmd
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
du
find
help
ls
lsct
lsdg
mkalias
mkdir
pwd
rm
rmalias
ASMCMD> ls
DATA/
ASMCMD> cd data
ASMCMD> ls
ORACLE/
ASMCMD> cd oracle[@more@]

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/70612/viewspace-1016064/,如需轉載,請註明出處,否則將追究法律責任。

相關文章