gDBClone是一个脚本,用于为测试和开发环境提供一个简单高效的克隆数据库的方法。gDBClone利用Oracle Cloud File System (ACFS)快照功能来创建的数据库副本(能节省很多空间),并管理测试和开发数据库生命周期。这个关键的技术是在Oracle Database 12.1中引入的,受益于ACFS时间点快照功能,我们可以直接在ACFS文件系统上创建Oracle数据库(11.2.0.4以上)。主要提供下面的功能
Clone: Creates a clone database (as Primary or as Standby) from a production database copying the DB to the target test and dev clusterSnap: Creates sparse snapshots of the DB to be used for test and development
Convert: Converts a given database to RAC (Real Application Cluster) OneNode, RAC or from non-CDB (non-container database) to a PDB (pluggable database) of a given CDB
ListDBs: Lists the cloned databases and its snapshots
DelDB: Deletes cloned databases and/or its snapshots
ListHomes: Lists the available oracle home
SYSPwF: Creates an encrypted password file
安装gDBClone
[root@ohs1 ~]# rpm -ivh gDBClone-3.0.2-100.noarch.rpm
warning: gDBClone-3.0.2-100.noarch.rpm: Header V4 RSA/SHA1 Signature, key ID e7004b4d: NOKEY
Preparing... ########################################### [100%]
1:gDBClone ########################################### [100%]
gDBClone-3.0.2.100 has been installed on /opt/gDBClone succesfully!
[root@ohs1 ~]# cd /opt/gDBClone/
[root@ohs1 gDBClone]# ls
gDBClone lib
[root@ohs1 gDBClone]#
使用手册
http://download.oracle.com/otn/samplecode/gDBClone-3.0_ReferenceGuide.pdf
https://www.oracle.com/technetwork/indexes/samplecode/gdbclone-download-2295388.html
http://download.oracle.com/otn/samplecode/gDBClone-3.0_ReferenceGuide.pdf
https://community.oracle.com/docs/DOC-1012967
https://community.oracle.com/servlet/JiveServlet/downloadBody/1012967-102-1-154200/gDBClone-3.0_ReferenceGuide.pdf
https://apex.oracle.com/pls/apex/germancommunities/dbacommunity/tipp/4521/index.html