网络编程 | 站长之家 | 网页制作 | 图形图象 | 操作系统 | 冲浪宝典 | 软件教学 | 网络办公 | 邮件系统 | 网络安全 | 认证考试 | 系统进程
Firefox | IE | Maxthon | 迅雷 | 电驴 | BitComet | FlashGet | QQ | QQ空间 | Vista | 输入法 | Ghost | Word | Excel | wps | Powerpoint
asp | .net | php | jsp | Sql | c# | Ajax | xml | Dreamweaver | FrontPages | Javascript | css | photoshop | fireworks | Flash | Cad | Discuz!
当前位置 > 网站建设学院 > 网络编程 > 数据库 > Oracle教程
Tag:注入,存储过程,分页,安全,优化,xmlhttp,fso,jmail,application,session,防盗链,stream,无组件,组件,md5,乱码,缓存,加密,验证码,算法,cookies,ubb,正则表达式,水印,索引,日志,压缩,base64,url重写,上传,控件,Web.config,JDBC,函数,内存,PDF,迁移,结构,破解,编译,配置,进程,分词,IIS,Apache,Tomcat,phpmyadmin,Gzip,触发器,socket
数据库:数据库教程,数据库技巧,Oracle教程,MySQL教程,Sybase教程,Access教程,DB2教程,数据库安全,数据库文摘
本月文章推荐
.初学Oracle最经常碰到的错误及解.
.oracle-触发redo写的几个条件.
.几种用VB访问Oracle数据库技术的.
.oracle for solaris 安装错误FAQ.
.讲解Oracle数据库的sysdba权限登.
.实例讲解Oracle的快速删除和快速.
.Oracle9i进程内存占用问题解决方.
.数据库的设计: 数据库设计范式.
.Oracle Developer 2000中的一些实.
.用三个方法设置Oracle数据库穿越.
.Oracle sqlplus语句编辑命令.
.Oracle 10G Beta版在Win2000上安.
.解析Oracle 8i/9i的计划稳定性(1).
.如何监控oracle索引的使用详细说.
.VB程序如何访问数据库.
.Oracle 8i R2 (8.1.6) for Windo.
.在EXP出数据时遇到ORA-00942的问.
.Oracle 9i在AIX 5L上的安装、建库.
.数据库崩溃灾难记实.
.收藏:W2k Server下Oracle 9iAS安.

Clone an Oracle Database

发表日期:2008-2-9



  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.
上一篇:常用数据库比较 人气:1252
下一篇:Re: 请问youngcow的FTP上DB2_win怎么.r50不全啊? 人气:619
浏览全部Oracle教程的内容 Dreamweaver插件下载 网页广告代码 祝你圣诞节快乐 2009年新年快乐