linux $oracle_sid,linux下删除oracle怎样才能把sid删除?

是还要把/etc/oratab给删除才行

/usr/local/bin下3文件,直接用vi打开的话可以看到

//coraenv 设置环境

#!/bin/sh

#

###################################

#

# $Header: coraenv.sh.pp 16-jun-2005.10:45:53 mlfallon Exp $ coraenv

#

#

# Copyright 1987 Oracle Corporation

#

# This routine is used to condition a C shell user's environment

# for access to an ORACLE database.  It should be installed in

# the system local bin directory.

#

# The user will be prompted for the database SID, unless the variable

# ORAENV_ASK is set to NO, in which case the current value of ORACLE_SID

# is used.

# An asterisk '*' can be used to refer to the NULL SID.

#

# 'dbhome' is called to locate ORACLE_HOME for the SID.  If

# ORACLE_HOME cannot be located, the user will be prompted for it also.

# The following environment variables are set:

//dbhome 其实根据sid读/etc/oratab中的home目录啦

:

#

# $Header: dbhome.sh.pp 1.1 95/02/22 14:37:23 rdhoopar Osd $ dbhome.sh.pp Copyr (c) 1991 Oracle

#

###################################

#

# usage: ORACLE_HOME=`dbhome [SID]`

# NOTE:  A NULL SID is specified with "" on the command line

#

# The only sane way to use this script is with SID specified on the

# command line or to have ORACLE_SID set for the database you are looking

# for.  The return code will be 1 if dbhome can't find ANY value, 2 if

# it finds a questionable value, 0 if it finds a good one (ie. out of

# oratab).

#

# If ORACLE_SID is set or provided on the command line the script

# will write to the standard output the first of the following that

# it finds:

#       1.  The value of the 2nd field in oratab where the

#           value of the 1st field equals $ORACLE_SID.

#       2.  The home directory for the user 'oracle' in /etc/passwd

#           or in the yellow pages password entries.

"dbhome" 88L, 2417C

//. oraenv 这东东也是设置oracle环境的。

#!/bin/sh

#

# $Header: oraenv.sh.pp 16-jun-2005.10:46:09 mlfallon Exp $ oraenv.sh.pp Copyr (c) 1991 Oracle

#

###################################

#

# usage: . oraenv

#

# This routine is used to condition a user's environment for access to

# an ORACLE database. It will prompt for the value of the new SID unless

# the variable ORAENV_ASK is set to NO, in which case it will use the

# current value of ORACLE_SID.

# The character "*" denotes a null SID.

#

# NOTE:         Due to constraints of the shell in regard to environment

# -----         variables, the command MUST be prefaced with ".". If it

#               is not, then no permanent change in the user's environment

#               can take place.

#

#####################################

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值