教程中国
PHOTOSHOP CS9.0中文版 MAYA 8.5 FOR WINDOWS Corel Painter v9.0 Flash MX2004 中文版 Illustrator cs2 中文版
VC++6.0含sp6 中英文版 VB6.0 +sp6 简体中文版 Borland Delphi 7汉化版 MSDN for vb6.0中文版 Visual Studio 2005简体
教程中国下属 文件存储共享专家BIBIDU.COM 提供大型软件,教材,源码,电影,音乐,图书等下载 更多精品请点此进入
  您目前所在位置: 教程中国 >> Oracle >> 入门基础 >> Clone an Oracle Database RSS订阅
Clone an Oracle Database
教程(视频,书籍)下载:  ASP.NET AutoCAD 数据库 C# ASP java photoshop 网页设计 delphi 3dmax Flash C++ VB 张孝祥 实例   更多请进入BIBIDU搜索
IT搜索引擎   

  Description
  Need to create a duplicate database on the same machine ? Database too big to use Export/Import ?
  This is the easiest way to do it.
  
  Assume the original database is called PROD1 and you want to create a CLONE1 duplicate database.
  
  Procedure
  - Find some disk space and create appropriate directories / file systems for you cloned database (conforming to the OFA guidelines)
  
  - Connect to the PROD1 instance and dump the controlfile using the SQL command
  
  ALTER DATABASE BACKUP CONTROLFILE TO TRACE;
  
  This will put a text copy of the controlfile in the USER_DUMP_DEST
  
  - Shutdown Normal PROD1 database
  
  - Perform an operating system copy of PROD1 to the new location where CLONE1 will reside.
  
  - Startup the PROD1 instance
  
  - Edit the controlfile you created and change all the path names of the database to the new location.
  
  - Set your environment to the CLONE1 instance and run Server Manager (svrmgrl)
  
  CONNECT INTERNAL
  STARTUP NOMOUNT
  
  CREATE CONTROLFILE REUSE SET DATABASE "CLONE1" RESETLOGS NOARCHIVELOG
  MAXLOGFILES 32
  MAXLOGMEMBERS 2
  MAXDATAFILES 64
  MAXINSTANCES 8
  MAXLOGHISTORY 800
  LOGFILE
  GROUP 1 '/oracle/data/CLONE1/redos/log1CLONE1.dbf' SIZE 512K,
  GROUP 2 '/oracle/data/CLONE1/redos/log2CLONE1.dbf' SIZE 512K,
  GROUP 3 '/oracle/data/CLONE1/redos/log3CLONE1.dbf' SIZE 512K
  DATAFILE
  '/oracle/data/CLONE1/system_ts/systCLONE1.dbf' SIZE 25M,
  '/oracle/data/CLONE1/data_ts/data_CLONE1.dbf' SIZE 230M,
  '/oracle/data/CLONE1/index_ts/index_CLONE1.dbf' SIZE 230M,
  '/oracle/data/CLONE1/rbs_ts/rbs_CLONE1.dbf' SIZE 10M,
  '/oracle/data/CLONE1/temp_ts/temp_CLONE1.dbf' SIZE 10M,
  '/oracle/data/CLONE1/tools_ts/ts_tools_CLONE1_02.dbf' SIZE 15M,
  '/oracle/data/CLONE1/users_ts/ts_users_CLONE1.dbf' SIZE 1M,
  ;
  
  ALTER DATABASE OPEN RESETLOGS;
  
  - That's it, an exact duplicate of PROD1 and a painless procedure.
  

来源:upschool.com.cn
作者:
关键字:Clone,an,Oracle,Database
发表日期:2007-1-6 1:19:06

网页显示有限 阅读全文请下载本文完整版WORD文档

上一篇:常用数据库比较   下一篇:ORACLE Developer/2000 编程技巧


2008-12-3 3:29:57
本文的相类似文章
  • VB屏蔽ALT-TAB, ALT-ESC, CTRL-ESC,Win,Win+Any
  • 认识 SAN 存储路由技术
  • Symbian手机病毒伪装成杀毒软件
  • Oracle字符转换访问服务器漏洞
  • 不用plane和焊接,直接用圆柱体快速轮胎建模
  • 多WAN口宽带路由器几个口才算合理
  • Oracle和mysql 的一些简单命令对比参照
  • oracle 的共享连接和专用连接方式之初探
  • Oracle的X$表系列介绍之-X$KSLLCLASS
  • Oracle数据导入导出imp/exp命令
  • 在学习中进步 在进步中成长 教程中国相随您的成长之路
    华腾联合科技股份有限公司版权所有
    广告联系:Rosibo@163.com