是还要把/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.

#

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

linux $oracle_sid,linux下删除oracle怎样才能把sid删除?相关推荐

  1. Linux下安装Oracle参数自动初始化脚本

    在linux下安装Oracle通常是一件很头疼的事情, 而如果我们只是为了部署CMS的话,也没有必要对Oracle的参数去做详细的了解. 那么有没有办法简化这个安装过程呢? 下面给出了一个在Linux ...

  2. windows下如何访问linux下的oracle数据库

    我们从上面可以看出: 需要 1.oracle client客户端(这儿使用,oracle instance client ,简单) 2.odbc驱动   oracle instance client默 ...

  3. linux 下停止监听程序,Linux下启动Oracle服务和监听程序步骤

    Linux下启动Oracle服务和监听程序启动和关闭步骤整理如下: 1.安装oracle: 2.创建oracle系统用户: 3./home/oracle下面的.bash_profile添加几个环境变量 ...

  4. linux下安装oracle 11g R2

    Linux环境配置 [c-sharp] view plaincopy OS:Fedora 15 DB:Oracle 11gR2 将Oracle安装到home/oracle_11目录 配置过程:本文来自 ...

  5. 如何在linux下创建表空间,linux下创建oracle表空间

    来自:http://blog.sina.com.cn/s/blog_62192aed01018aep.html 1 . 登录服务器 2 . 查看磁盘空间是否够大df -h -h更具目前磁盘空间和使用情 ...

  6. linux下重启oracle服务:监听器和实例

    linux下重启oracle服务:监听器和实例 一.在Linux下重启Oracle数据库及监听器: 方法1: 用root以ssh登录到linux,打开终端输入以下命令: cd $ORACLE_HOME ...

  7. Linux下安装Oracle 12cR2

    Linux下安装Oracle 12cR2 Oracle 12C简介 安装前准备 开始安装 12c 下 pdb 切换及用户创建 Oracle 12C简介 Oracle 12C引入了CDB与PDB的新特性 ...

  8. 误删除oracle目录,LINUX下误删除Oracle数据库恢复方法

    原标题:LINUX下误删除Oracle数据库恢复方法 在LINUX下的Ext3/Ext4文件系统下,如果误删除了数据,数据恢复难度很大.如果说删除的文件数量不大(一般在几百个文件以内),还能够通过.j ...

  9. Linux下安装Oracle

    Linux下安装oracle.使用图形化界面121 <1>前期准备: 一.修改操作系统核心参数 在Root用户下执行以下步骤: 1)修改用户的SHELL的限制,修改/etc/securit ...

最新文章

  1. 24GHz和77GHz毫米波雷达技术细节
  2. 如何查看静态库和动态库是32位还是64位
  3. spark rdd reduceByKey示例
  4. 成绩排序的c语言算法,成绩排序系统(练习排序算法和复习C语言)
  5. windows nssm将应用程序做成服务的实例
  6. Asp.NET Core2.0 项目实战入门视频课程_完整版
  7. leetcode632. 最小区间(堆+多指针)
  8. MongoDB分布式(分片存储)部署
  9. 飞龙的安卓逆向系列教程
  10. Linux-系统性能指标
  11. Richard S. Sutton个人主页翻译
  12. 人人都是产品经理2.0
  13. 大童保险确认获得投资:德弘资本等出资15亿元,获得约33%股权
  14. 开源公告|腾讯tmagic-editor页面可视化编辑器对外开源
  15. openwrt控制天翼网关定时重启
  16. pod构建的ios版本引发 react-native-safe-area-context RN项目的pod-install构建异常
  17. 怎么调整图片大小会不变形?
  18. FinClip小程序开放平台灰度发布上线,实现你对“千人千面”的所有创想
  19. 南通青鸟第一天学习心得
  20. RocketMQ—Producer(三)发送方式和消息类型

热门文章

  1. 七年“突围”,可信云如何从行业标准走向国际标准?
  2. HTML 使用表格制作简单的个人简历
  3. 自然底数e的意义是什么?
  4. 快速理解LAN、WAN和WLAN的区别?
  5. VLC实现简单的视频播放器——Qt
  6. 使用腾讯云函数每天签到有道云笔记、贴吧、爱奇艺等平台
  7. Android恶意软件的行为总结
  8. 天视通摄像头设置教程_天视通网络摄像头设置自动获取IP后无法连接电脑,怎么处理?...
  9. kotlin-Android开发依赖库
  10. windows下浏览器网页视频下载方法