首页  登陆  注册  博客集  下载频道  网络硬盘  学院论坛  家园
IT学院 网站地图 网站地图
收藏本站 收藏本站
高级搜索 高级搜索
 新闻IT新闻 互联网 微软 黑客新闻 网络网络协议 故障 网络管理 TCP/IP 无线技术 解决方案 黑客技术 漏洞 软件评测 安全资讯
 数据MSsql Oracle Mysql PL/SQL 备份 系统:Linux vista Windows FTP 防火墙 注册表 服务器行情 服务器应用 解决方案 WEB服务器
 墙纸风景壁纸 游戏壁纸 体育壁纸 汽车壁纸 人文壁纸 影视壁纸 广告壁纸 花卉壁纸 节日壁纸 动漫壁纸 明星壁纸 绘画壁纸 月历壁纸
当前位置: > 主页>数据库技术>Oracle>入门基础>Clone an Oracle Database
热门文章排行
 
热门文章排行 Oracle常见错误代码的分
最常碰到的10个Oracle错
ORACLE常用Script
Oracle 全球解答的最hot
Re: 请问youngcow的FTP
Re: 请问ORACLE共享池的
Oracle9i New Features
常用数据库比较
Clone an Oracle Databa
ORACLE Developer/2000
精采文章推荐
 
精采文章推荐 Oracle FAQ 之SQL&PL/SQ
UNIX和WINDOWS2000上的O
Oracle入门基本知识一点
ORACLE常用傻瓜问题1000
内置XML能成为oracle的
你的数据库升级吗?
ORACLE培训教程(4)-Pro
ORACLE培训教程(3)-SQL
ORACLE培训教程(1)-ORAC
ORACLE Developer/2000
最新更新文章
 
最新更新文章 深入了解管理Oracle实例
Oracle数据库导入导出方
学Oracle不能不知道的知
Oracle 50个具有决定意
Oracle FAQ 之OS相关与
Oracle FAQ 之构架体系
Oracle FAQ 之SQL&PL/SQ
Index of Oracle
Oracle数据类型简介
数据仓库离我们到底有多

Clone an Oracle Database

编辑:IT小傻瓜   来源:intertnet  日期:2008-03-19   我要投稿      家园

 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.



上一篇:常用数据库比较  
下一篇:ORACLE Developer/2000 编程技巧
 关键字:  
文章评论】 【收藏本文】 【推荐好友】 【打印本文】 【论坛讨论

   相关文章:

   文章评论:(0条)
  
 请留名: 匿名评论   点击查看所有评论
 

  责任编辑:IT学院  声明:刊登此文章是为了传递更多信息,文章内容仅供参考,转载请注明出处。