linux udev裸裝置繫結

flywiththewind發表於2018-03-13
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace  --device=/dev/$name",RESULT=="36000c29a340c7c2dc0a2c8248246121e",  NAME="asm-crs1",OWNER="grid", GROUP="dba", MODE="0660"
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace  --device=/dev/$name",RESULT=="36000c29699ebddebc1aa11c92779ac3f",  NAME="asm-data1",OWNER="grid", GROUP="dba", MODE="0660"
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace  --device=/dev/$name",RESULT=="36000c293b2fb491391ff10e0855cabf8",  NAME="asm-data2",OWNER="grid", GROUP="dba", MODE="0660"
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace  --device=/dev/$name",RESULT=="36000c29c906e2b7c21899af6c3fa0f4c",  NAME="asm-crs2",OWNER="grid", GROUP="dba", MODE="0660"
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace  --device=/dev/$name",RESULT=="36000c29c51370cf9874f20287354e19c",  NAME="asm-data3",OWNER="grid", GROUP="dba", MODE="0660"








ORACLE_SID=ora12c
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=/u01/app/oracle/12.1.0.1/product/dbhome_1
export ORACLE_BASE ORACLE_HOME ORACLE_SID 
NLS_LANG=american_america.UTF8
export NLS_LANG
LD_LIBRARY_PATH=$ORACLE_CRS_HOME/lib:$ORACLE_HOME/lib:/lib:/usr/lib:/usr/local/lib
export LD_LIBRARY_PATH
PATH=$PATH:$ORACLE_HOME/bin:$ORACLE_CRS_HOME/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X11:/sbin:.
export PATH
export NLS_DATE_FORMAT="yyyy-mm-dd HH24:MI:SS"
stty erase ^h


export ORACLE_SID=+ASM1
export ORACLE_BASE=/u01/app/grid
export ORACLE_HOME=/u01/12.1.0.1/grid
export ORACLE_TERM=xterm
export TMP=/tmp
export TMPDIR=$TMP
PATH=$PATH:$HOME/bin
export PATH=/usr/sbin:$PATH:$ORACLE_HOME/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib

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

相關文章