ITPub博客

首页 > 数据库 > Oracle > NID命令试用一

NID命令试用一

原创 Oracle 作者:zhangsolomon 时间:2009-06-27 15:38:51 0 删除 编辑

第二种方法用NID修改数据库名,只是未成功,不知何原因。。

C:>sqlplus sys/ggyy@ggyy as sysdba

SQL*Plus: Release 10.2.0.1.0 - Production on 星期六 6月 27 15:33:04 2

Copyright (c) 1982, 2005, Oracle. All rights reserved.


连接到:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Productio
With the Partitioning, OLAP and Data Mining options

SQL> shutdown
ORA-01109: 数据库未打开


已经卸载数据库。
ORACLE 例程已经关闭。
SQL> startup mount
ORACLE 例程已经启动。

Total System Global Area 289406976 bytes
Fixed Size 1248600 bytes
Variable Size 96469672 bytes
Database Buffers 188743680 bytes
Redo Buffers 2945024 bytes
数据库装载完毕。
SQL> host nid target=sys/ggyy@ggyy dbname=test setname=y

DBNEWID: Release 10.2.0.1.0 - Production on 星期六 6月 27 15:34:15 20

Copyright (c) 1982, 2005, Oracle. All rights reserved.

已连接数据库 DEMO (DBID=1979837268)

NID-00135: 存在 1 个活动的线程


在验证时更改数据库名失败 - 数据库保持原样。
DBNEWID - 已完成, 但出现验证错误。

有同仁说在关掉SQLPLUS才行:


C:>sqlplus sys/ggyy@ggyy as sysdba

SQL*Plus: Release 10.2.0.1.0 - Production on 星期六 6月 27 15:37:37 2009

Copyright (c) 1982, 2005, Oracle. All rights reserved.


连接到:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options

SQL> shutdown immediate
ORA-01109: 数据库未打开


已经卸载数据库。
ORACLE 例程已经关闭。
SQL> startup mount
ORACLE 例程已经启动。

Total System Global Area 289406976 bytes
Fixed Size 1248600 bytes
Variable Size 96469672 bytes
Database Buffers 188743680 bytes
Redo Buffers 2945024 bytes
数据库装载完毕。
SQL> exit
从 Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options 断开

C:>nid target=sys/ggyy@ggyy dbname=test setname=yes

DBNEWID: Release 10.2.0.1.0 - Production on 星期六 6月 27 15:38:27 2009

Copyright (c) 1982, 2005, Oracle. All rights reserved.

已连接数据库 DEMO (DBID=1979837268)

NID-00135: 存在 1 个活动的线程


在验证时更改数据库名失败 - 数据库保持原样。
DBNEWID - 已完成, 但出现验证错误。


C:>

无解中。。。

[@more@]

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/118400/viewspace-1023547/ ,如需转载,请注明出处,否则将追究法律责任。

下一篇: NID命令试用二
请登录后发表评论 登录
全部评论

注册时间:2009-04-16

  • 博文量
    16
  • 访问量
    306699