ORACLE RAC中grid和oracle中环境变量设置和相关命令使用原则
来源:互联网 发布:手机卸载软件 编辑:程序博客网 时间:2024/06/06 09:19
环境变量的具体设置如下,主机ORACLE_HOME的不同
[grid@dtydb3 ~]$ id
uid=601(grid) gid=501(oinstall) groups=501(oinstall),502(dba),503(oper),504(asmadmin),506(asmdba),507(asmoper)
[grid@dtydb3 ~]$ cat .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
ORACLE_SID=+ASM1; export ORACLE_SID
ORACLE_BASE=/oracle/app/grid; export ORACLE_BASE
ORACLE_HOME=/oracle/11.2.0/grid; export ORACLE_HOME
GRID_HOME=/oracle/11.2.0/grid; export GRID_HOME
THREADS_FLAG=native; export THREADS_FLAG
PATH=$ORACLE_HOME/bin:$PATH; export PATH
if [ $USER = "oracle" ] || [ $USER = "grid" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
umask 022
fi
export LANG="en_US.UTF-8"
[root@dtydb3 ~]# su - oracle
[oracle@dtydb3 ~]$ cat .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
ORACLE_BASE=/oracle/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1; export ORACLE_HOME
ORACLE_SID=tyolap1; export ORACLE_SID
export ORACLE_UNQNAME=tyolap
TNS_ADMIN=$ORACLE_HOME/network/admin; export TNS_ADMIN
PATH=/usr/sbin:$PATH; export PATH
PATH=$ORACLE_HOME/bin:$PATH; export PATH
export NLS_LANG="SIMPLIFIED CHINESE_CHINA.ZHS16GBK"
export NLS_DATE_FORMAT="yyyy-mm-dd hh24:mi:ss"
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi
export LANG="en_US.UT
设置的原则和相关命令的使用原则如下:
If you use ASMCMD, srvctl, sqlplus, or lnsrctl to manage Oracle ASM or its listener, then use the binaries located in the Grid home, not the binaries located in the Oracle Database home, and set the ORACLE_HOME environment variable to the location of the Grid home.
如果使用ASMCMD, srvctl, sqlplus, or lnsrctl命令去管理ASM和它的监听使用grid用户执行grid home下相关命令If you use srvctl, sqlplus, or lnsrctl to manage a database instance or its listener, then use the binaries located in the Oracle home where the database instance or listener is running, and set the ORACLE_HOME environment variable to the location of that Oracle home
如果使用srvctl, sqlplus, or lnsrctl管理数据库实例相关命令,则使用oracle用户只需oracle home下的相关命令
- ORACLE RAC中grid和oracle中环境变量设置和相关命令使用原则
- oracle针对oracle和grid用户---环境变量设置---单实例和RAC
- Oracle RAC 常用工具和命令
- rac集群 oracle和grid用户 ssh等效性配置
- Oracle RAC中Srvctl命令详细说明
- ORACLE RAC 中 SRVCTL 命令详细说明
- Oracle RAC中Srvctl命令详细说明
- Oracle RAC 常用维护工具和命令
- Oracle RAC常用维护工具和命令
- Oracle RAC 常用维护工具和命令
- Oracle RAC 常用维护工具和命令
- Oracle RAC 常用维护工具和命令
- Oracle RAC 常用维护工具和命令
- Oracle RAC 常用维护工具和命令
- Oracle RAC 常用维护工具和命令
- Oracle RAC 常用维护工具和命令 .
- Oracle RAC 常用维护工具和命令
- Oracle RAC 常用维护工具和命令
- SD卡 家族的发展
- python modbus_tk库 学习记录
- 点对点碰撞检测
- 为什么编程语言以及数据库要从1970年1月1日开始计算时
- PF_PACKET和AF_PACKET的不同
- ORACLE RAC中grid和oracle中环境变量设置和相关命令使用原则
- oracle性能优化篇——创建索引应注意的问题
- 设置控制台应用程序字体颜色
- Java程序员应该了解的10个面向对象设计原则
- 解决在CentOS 5.5 yum源下载慢的办法
- ubuntu11.10英文版通过网络和 smbfs 命令访问 Windows XP Pro 中文版的 NTFS 分区共享文件夹
- 【转载】最近公共祖先LCA:RMQ转化
- SiteMesh3配置
- 传感器