ITPub博客

首页 > Linux操作系统 > Linux操作系统 > oracle r12 clone

oracle r12 clone

原创 Linux操作系统 作者:fhtt0606 时间:2019-02-14 22:51:04 0 删除 编辑

系统备份脚本,包括数据库和应用,使用时修改对应目录名称
[oraprod@ebs backup]$ more back.sh
tar -zcvf /home/oravis/apps.tar apps
tar -zcvf /home/oravis/db.tar db/tech_st
tar -zcvf db_data.tar db/apps_st
tar -zcvf inst.tar inst

clone操作步骤



[root@ebs ~]# su - oraprod
[oraprod@ebs ~]$ cd /u02/prod/db/tech_st/10.2.0/appsutil/
[oraprod@ebs appsutil]$ cd scripts
[oraprod@ebs scripts]$ ls
PROD_ebs
[oraprod@ebs scripts]$ cd *
[oraprod@ebs PROD_ebs]$ ls
adautocfg.sh adchknls.pl addbctl.sh addlnctl.sh adexecsql.pl adlsnodes.sh adpreclone.pl adstopdb.sql adstrtdb.sql
[oraprod@ebs PROD_ebs]$ perl adpreclone.pl dbTier
Enter the APPS user password:
Running Rapid Clone with command...
Tue Jul 31 10:58:17 2007
perl /u02/prod/db/tech_st/10.2.0/appsutil/bin/adclone.pl java=/u02/prod/db/tech_st/10.2.0/appsutil/jre mode=stage stage=/u02/prod/db/tech_st/10.2.0/appsutil/clone component=dbTier method=CUSTOM dbctx=/u02/prod/db/tech_st/10.2.0/appsutil/PROD_ebs.xml showProgress

XMLPARSER: /u02/prod/db/tech_st/10.2.0/lib/xmlparserv2.jar
JDBC: /u02/prod/db/tech_st/10.2.0/jdbc/lib/ojdbc14.jar
CLASSPATH: /u02/prod/db/tech_st/10.2.0/lib/xmlparserv2.jar:/u02/prod/db/tech_st/10.2.0/jdbc/lib/ojdbc14.jar:/u02/prod/db/tech_st/10.2.0/appsutil/java:/u02/prod/db/tech_st/10.2.0/oui/jlib/OraInstaller.jar:/u02/prod/db/tech_st/10.2.0/oui/jlib/ewt3.jar:/u02/prod/db/tech_st/10.2.0/oui/jlib/share.jar:/u02/prod/db/tech_st/10.2.0/oui/jlib/srvm.jar:/u02/prod/db/tech_st/10.2.0/jlib/ojmisc.jar
OUI CLASSPATH: /u02/prod/db/tech_st/10.2.0/oui/jlib/OraInstaller.jar:/u02/prod/db/tech_st/10.2.0/oui/jlib/ewt3.jar:/u02/prod/db/tech_st/10.2.0/oui/jlib/xmlparserv2.jar:/u02/prod/db/tech_st/10.2.0/oui/jlib/share.jar:/u02/prod/db/tech_st/10.2.0/oui/jlib/srvm.jar:/u02/prod/db/tech_st/10.2.0/jlib/ojmisc.jar:/u02/prod/db/tech_st/10.2.0/lib/xmlparserv2.jar:/u02/prod/db/tech_st/10.2.0/jdbc/lib/ojdbc14.jar:/u02/prod/db/tech_st/10.2.0/appsutil/java
Setting LD_LIBRARY_PATH to /u02/prod/db/tech_st/10.2.0/oui/lib/linux
Beginning database tier Stage - Tue Jul 31 10:58:19 2007
/u02/prod/db/tech_st/10.2.0/appsutil/jre/bin/java -Xmx600M -DCONTEXT_VALIDATED=false -Doracle.installer.oui_loc=/u02/prod/db/tech_st/10.2.0/oui -classpath /u02/prod/db/tech_st/10.2.0/lib/xmlparserv2.jar:/u02/prod/db/tech_st/10.2.0/jdbc/lib/ojdbc14.jar:/u02/prod/db/tech_st/10.2.0/appsutil/java:/u02/prod/db/tech_st/10.2.0/oui/jlib/OraInstaller.jar:/u02/prod/db/tech_st/10.2.0/oui/jlib/ewt3.jar:/u02/prod/db/tech_st/10.2.0/oui/jlib/share.jar:/u02/prod/db/tech_st/10.2.0/oui/jlib/srvm.jar:/u02/prod/db/tech_st/10.2.0/jlib/ojmisc.jar oracle.apps.ad.clone.StageDBTier -e /u02/prod/db/tech_st/10.2.0/appsutil/PROD_ebs.xml -stage /u02/prod/db/tech_st/10.2.0/appsutil/clone -tmp /tmp -method CUSTOM -showProgress
APPS Password : Log file located at /u02/prod/db/tech_st/10.2.0/appsutil/log/PROD_ebs/StageDBTier_07311058.log
AutoClone needs to start the database up to generate cloning information
/ 50% completed ?

Completed Stage...
Tue Jul 31 10:58:37 2007
Completed perl /u02/prod/db/tech_st/10.2.0/appsutil/bin/adclone.pl java=/u02/prod/db/tech_st/10.2.0/appsutil/jre mode=stage stage=/u02/prod/db/tech_st/10.2.0/appsutil/clone component=dbTier method=CUSTOM dbctx=/u02/prod/db/tech_st/10.2.0/appsutil/PROD_ebs.xml showProgress ...
Tue Jul 31 10:58:37 2007
[oraprod@ebs PROD_ebs]$

未完

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/594850/viewspace-577971/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2005-09-14

  • 博文量
    30
  • 访问量
    21944