Home > Database > Mysql Tutorial > body text

Linux下Oracle默认实例设置

WBOY
Release: 2016-06-07 17:05:21
Original
804 people have browsed it

数据库实例多了之后,每次export的时候,显示的ORACLE_SID总不是自己经常用的那个,要是能让默认的自定义就好了。现在就解释一下

数据库实例多了之后,每次export的时候,显示的Oracle_SID总不是自己经常用的那个,,要是能让默认的自定义就好了。

现在就解释一下在Linux环境中如何定义:

1、su - oracle

2、export

查看显示的ORACLE_SID对应的值

3、如果不想修改默认值,那就export ORACLE_SID=alpha180。注释:alpha180是数据库的一个实例

4、export

这个是手工变动环境变量的方法。现在需要进行默认配置。

1、su - root

2、cd /

3、find -name .bash_profile

4、找到oracle下的那个

5、cd /oracle/

6、vi .bash_profile

7、修改ORACLE_SID=alpha180

9、退出保存

linux

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!