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.
#
#####################################
linux $oracle_sid,linux下删除oracle怎样才能把sid删除?相关推荐
- Linux下安装Oracle参数自动初始化脚本
在linux下安装Oracle通常是一件很头疼的事情, 而如果我们只是为了部署CMS的话,也没有必要对Oracle的参数去做详细的了解. 那么有没有办法简化这个安装过程呢? 下面给出了一个在Linux ...
- windows下如何访问linux下的oracle数据库
我们从上面可以看出: 需要 1.oracle client客户端(这儿使用,oracle instance client ,简单) 2.odbc驱动 oracle instance client默 ...
- linux 下停止监听程序,Linux下启动Oracle服务和监听程序步骤
Linux下启动Oracle服务和监听程序启动和关闭步骤整理如下: 1.安装oracle: 2.创建oracle系统用户: 3./home/oracle下面的.bash_profile添加几个环境变量 ...
- linux下安装oracle 11g R2
Linux环境配置 [c-sharp] view plaincopy OS:Fedora 15 DB:Oracle 11gR2 将Oracle安装到home/oracle_11目录 配置过程:本文来自 ...
- 如何在linux下创建表空间,linux下创建oracle表空间
来自:http://blog.sina.com.cn/s/blog_62192aed01018aep.html 1 . 登录服务器 2 . 查看磁盘空间是否够大df -h -h更具目前磁盘空间和使用情 ...
- linux下重启oracle服务:监听器和实例
linux下重启oracle服务:监听器和实例 一.在Linux下重启Oracle数据库及监听器: 方法1: 用root以ssh登录到linux,打开终端输入以下命令: cd $ORACLE_HOME ...
- Linux下安装Oracle 12cR2
Linux下安装Oracle 12cR2 Oracle 12C简介 安装前准备 开始安装 12c 下 pdb 切换及用户创建 Oracle 12C简介 Oracle 12C引入了CDB与PDB的新特性 ...
- 误删除oracle目录,LINUX下误删除Oracle数据库恢复方法
原标题:LINUX下误删除Oracle数据库恢复方法 在LINUX下的Ext3/Ext4文件系统下,如果误删除了数据,数据恢复难度很大.如果说删除的文件数量不大(一般在几百个文件以内),还能够通过.j ...
- Linux下安装Oracle
Linux下安装oracle.使用图形化界面121 <1>前期准备: 一.修改操作系统核心参数 在Root用户下执行以下步骤: 1)修改用户的SHELL的限制,修改/etc/securit ...
最新文章
- 24GHz和77GHz毫米波雷达技术细节
- 如何查看静态库和动态库是32位还是64位
- spark rdd reduceByKey示例
- 成绩排序的c语言算法,成绩排序系统(练习排序算法和复习C语言)
- windows nssm将应用程序做成服务的实例
- Asp.NET Core2.0 项目实战入门视频课程_完整版
- leetcode632. 最小区间(堆+多指针)
- MongoDB分布式(分片存储)部署
- 飞龙的安卓逆向系列教程
- Linux-系统性能指标
- Richard S. Sutton个人主页翻译
- 人人都是产品经理2.0
- 大童保险确认获得投资:德弘资本等出资15亿元,获得约33%股权
- 开源公告|腾讯tmagic-editor页面可视化编辑器对外开源
- openwrt控制天翼网关定时重启
- pod构建的ios版本引发 react-native-safe-area-context RN项目的pod-install构建异常
- 怎么调整图片大小会不变形?
- FinClip小程序开放平台灰度发布上线,实现你对“千人千面”的所有创想
- 南通青鸟第一天学习心得
- RocketMQ—Producer(三)发送方式和消息类型