文章详情

短信预约-IT技能 免费直播动态提醒

请输入下面的图形验证码

提交验证

短信预约提醒成功

Oracle修改db_name方法

2024-04-02 19:55

关注

------- 修改数据库db_name的方法 

SQL>  startup mount 

ORACLE instance started.


Total System Global Area  413372416 bytes

Fixed Size    2213896 bytes

Variable Size  335546360 bytes

Database Buffers   71303168 bytes

Redo Buffers    4308992 bytes

Database mounted.

SQL> quit

Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production

With the Partitioning, Oracle Label Security, OLAP, Data Mining,

Oracle Database Vault and Real Application Testing options

[oracle@OEL6 dbs]$ nid target=sys/yuanlei@orcl2 dbname=orcl


DBNEWID: Release 11.2.0.1.0 - Production on Tue Aug 19 22:22:39 2014


Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.


Connected to database ORCL2 (DBID=836865814)


Connected to server version 11.2.0


Control Files in database:

    /u01/app/oracle/oradata/orcl2/control01.ctl

    /u01/app/oracle/oradata/orcl2/control02.ctl


Change database ID and database name ORCL2 to ORCL? (Y/[N]) => y


Proceeding with operation

Changing database ID from 836865814 to 1383851439

Changing database name from ORCL2 to ORCL

    Control File /u01/app/oracle/oradata/orcl2/control01.ctl - modified

    Control File /u01/app/oracle/oradata/orcl2/control02.ctl - modified

    Datafile /u01/app/oracle/oradata/orcl2/system01.db - dbid changed, wrote new name

    Datafile /u01/app/oracle/oradata/orcl2/sysaux01.db - dbid changed, wrote new name

    Datafile /u01/app/oracle/oradata/orcl2/undotbs01.db - dbid changed, wrote new name

    Datafile /u01/app/oracle/oradata/orcl2/users01.db - dbid changed, wrote new name

    Datafile /u01/app/oracle/oradata/orcl2/example01.db - dbid changed, wrote new name

    Datafile /u01/app/oracle/oradata/orcl2/tbs_yl01.db - dbid changed, wrote new name

    Datafile /u01/app/oracle/oradata/orcl2/tbs_yl02.db - dbid changed, wrote new name

    Datafile /u01/app/oracle/oradata/orcl2/tbs_yl03.db - dbid changed, wrote new name

    Datafile /u01/app/oracle/oradata/orcl2/tbs_yl04.db - dbid changed, wrote new name

    Datafile /u01/app/oracle/oradata/orcl2/tbs_yl05.db - dbid changed, wrote new name

    Datafile /u01/app/oracle/oradata/orcl2/tbs_yl06.db - dbid changed, wrote new name

    Datafile /u01/app/oracle/oradata/orcl2/tbs_yl07.db - dbid changed, wrote new name

    Datafile /u01/app/oracle/oradata/orcl2/tbs_yl08.db - dbid changed, wrote new name

    Datafile /u01/app/oracle/oradata/orcl2/rcatalog.db - dbid changed, wrote new name

    Datafile /u01/app/oracle/oradata/orcl2/temp01.db - dbid changed, wrote new name

    Control File /u01/app/oracle/oradata/orcl2/control01.ctl - dbid changed, wrote new name

    Control File /u01/app/oracle/oradata/orcl2/control02.ctl - dbid changed, wrote new name

    Instance shut down


Database name changed to ORCL.

Modify parameter file and generate a new password file before restarting.

Database ID for database ORCL changed to 1383851439.

All previous backups and archived redo logs for this database are unusable.

Database has been shutdown, open database with RESETLOGS option.

Succesfully changed database name and ID.

DBNEWID - Completed succesfully.


阅读原文内容投诉

免责声明:

① 本站未注明“稿件来源”的信息均来自网络整理。其文字、图片和音视频稿件的所属权归原作者所有。本站收集整理出于非商业性的教育和科研之目的,并不意味着本站赞同其观点或证实其内容的真实性。仅作为临时的测试数据,供内部测试之用。本站并未授权任何人以任何方式主动获取本站任何信息。

② 本站未注明“稿件来源”的临时测试数据将在测试完成后最终做删除处理。有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341

软考中级精品资料免费领

  • 历年真题答案解析
  • 备考技巧名师总结
  • 高频考点精准押题
  • 2024年上半年信息系统项目管理师第二批次真题及答案解析(完整版)

    难度     813人已做
    查看
  • 【考后总结】2024年5月26日信息系统项目管理师第2批次考情分析

    难度     354人已做
    查看
  • 【考后总结】2024年5月25日信息系统项目管理师第1批次考情分析

    难度     318人已做
    查看
  • 2024年上半年软考高项第一、二批次真题考点汇总(完整版)

    难度     435人已做
    查看
  • 2024年上半年系统架构设计师考试综合知识真题

    难度     224人已做
    查看

相关文章

发现更多好内容

猜你喜欢

AI推送时光机
位置:首页-资讯-数据库
咦!没有更多了?去看看其它编程学习网 内容吧
首页课程
资料下载
问答资讯