关于数据库启动的问题

[复制链接]
查看11 | 回复8 | 2011-2-18 11:43:33 | 显示全部楼层 |阅读模式
服务器上有多个数据库.
我已经启动了一个数据库test,使用sqlplus system/manger@test也是可以登录上去,但是,使用show parameters db_name时,显示却是
NAME
TYPE
------------------------------------ --------------
VALUE
------------------------------
db_name
string
ssmdb
不知道那位大侠可以解决这个问题,不胜感激.
回复

使用道具 举报

千问 | 2011-2-18 11:43:33 | 显示全部楼层
sqlplus 好像是没有show parameters db_name的名字的,试试select * from user_tables;
回复

使用道具 举报

千问 | 2011-2-18 11:43:33 | 显示全部楼层
再没有人帮忙了



回复

使用道具 举报

千问 | 2011-2-18 11:43:33 | 显示全部楼层
what's the value of the db_name in ur parameter file.
and do u sure which db u are connected to by service string 'test'.
run
>select * from v$database;
to confirm the database
回复

使用道具 举报

千问 | 2011-2-18 11:43:33 | 显示全部楼层
$ sqlplus system/manager@test
SQL*Plus: Release 8.1.6.0.0 - Production on 星期一 7月 8 13:55:59 2002
(c) Copyright 1999 Oracle Corporation.All rights reserved.

连接到:
Oracle8i Enterprise Edition Release 8.1.6.0.0 - Production
With the Partitioning option
JServer Release 8.1.6.0.0 - Production
SQL> select name from v$database
2;
NAME
------------------
SSMDB
很奇怪!
回复

使用道具 举报

千问 | 2011-2-18 11:43:33 | 显示全部楼层
最初由 shufw 发布
[B]服务器上有多个数据库.
我已经启动了一个数据库test,使用sqlplus system/manger@test也是可以登录上去,但是,使用show parameters db_name时,显示却是
NAME
TYPE
------------------------------------ --------------
VALUE
------------------------------
db_name
string
ssmdb
不知道那位大侠可以解决这个问题,不胜感激. [/B]

这里有什么问题吗?
test是你启动的实例的名字, 而不是数据库的名字 (数据库的名字是ssmdb)。
回复

使用道具 举报

千问 | 2011-2-18 11:43:33 | 显示全部楼层
inittest.ora文件中的设置:
db_name=test
instance_name = test
回复

使用道具 举报

千问 | 2011-2-18 11:43:33 | 显示全部楼层
你不妨看看这个目录下是否还有initssmdb.ora这个文件,估计应该是这个ora文件起作用的, :)
回复

使用道具 举报

千问 | 2011-2-18 11:43:33 | 显示全部楼层
试了一下
将两个数据库关掉,然后启动test
得到正确的结果
show paramerts db_name
为test;
然后打开ssmdb
可是,很奇怪,为什么两个数据库不能够同时打开.
回复

使用道具 举报

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

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行