关于多个数据库同时启动

[复制链接]
查看11 | 回复5 | 2010-5-13 10:04:27 | 显示全部楼层 |阅读模式
一个菜财的问题:
一个oracle上我装了2个库,但是只有一个oracle用户,在.bash_profile中也只有一个sid,能不能同时起2个库?
我试了半天,只能启动一个,有没有什么办法那?
多谢各位大大了
回复

使用道具 举报

千问 | 2010-5-13 10:04:27 | 显示全部楼层
先设置oracle_sid
回复

使用道具 举报

千问 | 2010-5-13 10:04:27 | 显示全部楼层
在.bash_profile 中能设定2个sid吗?
回复

使用道具 举报

千问 | 2010-5-13 10:04:27 | 显示全部楼层
在命令行,设置一个sid, 就启动一个。。。。
回复

使用道具 举报

千问 | 2010-5-13 10:04:27 | 显示全部楼层
1.Remove ORACLE_SID, ORACLE_HOME variablesin .profile.
2.Add the following in.profile
PATH=/usr/local/bin:$PATH
export PATH
echo " the SIDS on this machine are:"
cat /var/opt/oracle/oratab |awk -F: '{print $1}' |grep -v
ORAENV_ASK="YES"
. /usr/local/bin/oraenv
....
3.During oracle user login, there will be a prompt to choose which ORACLE_SID you want to use, so choose what you want, and oraenv will automatically setup ORACLE_HOME for this specific ORACLE_SID.
Note: the above is for Sun Solaris. For other unix,please refer to ORACLE DOC for Unix
回复

使用道具 举报

千问 | 2010-5-13 10:04:27 | 显示全部楼层
我的数据库是9i,redhat9
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行