在WINXP下命令行下执行C:\instantclient_10_2>sqlplus SYS/long0411@remoteGZGA as sysdba可正常连到远程CentOS5.1下的oracle 10g服务端上,
WINXP下Oracle 9.2服务端实例gzga,同样实例同样数据结构在CentOS5.1下的oracle 10g服务端上端口1522,同样的数据库用户ksxt密码1234及权限DBA。怎样实现每天把已更新的数据库数据定时或自动更新到WINXP的oracle 9.2下?(如ksxt用户下的表结构,表数据,表索引,存储过程,序列等数据库对象!)
请教高手CentOS5.1下有效安全Oracle 10g数据库备份数据方案,尤其是在数据库崩溃启动不了服务的情况下,或CentOS5.1崩溃能恢复ksxt用户下的所有数据库对象数据!

解决方案 »

  1.   

    参考:
    http://ocp.blog.ccidnet.com/blog-htm-do-showone-type-blog-itemid-181031-uid-60864.html
      

  2.   

    怎么实现 CentOS5.1下Oracle 10.2.0.1的数据库实例gzga所有的更新数据自动定时复制到同一局域网内winxp上的Oracle 9.2的实例gzga?两实例中都有想同的用户和表空间,求解决方案!
      

  3.   

    楼上兄弟,你能详细说说 replication的过程吗?
      

  4.   

    如果硬件和软件都无法换成一样的话,那么可以考虑使用strems单向同步.
      

  5.   

    想对CEENTos5.1下想某数据库进行逻辑全备份到backup目录下并用Cron传输到远程主机192.168.0.102上
    CentOS上我建有数据库用户ksxt,及Oracle 10g用户oracle.
    backup.sh(属性为可执行)内容如下:
    ORACLE_HOME=/home1/app/oracle/prdouct/10.2.0.1
    export ORACLE_HOME
    ORACLE_SID = GZGA
    NLS_LANG = "simplified chinese"_china.zhs16cgb231280
    export NLS_LANG
    rq = 'date + "%m%d"'
    ****************************************************************
    exp ksxt/1234@gzga file=/backup/exp&rq.dmp log=/backup/exp$rq.log请教用上述我提供的信息实现 完成数据库备份并将文件(exp&rq.dmp,exp$rq.log)传输到另一台主机192.168.0.102上用Cron实现具体该怎么做?
      

  6.   

    CentOS5.1里oracle用户的crontab: 
    00-59/2 * * * * /backupGZGA.sh 1>>/tmp/gzgaCronLog.log 2>>/tmp/gzgaCronLog.log;cat /tmp/gzgaCronLog.log|sendmail [email protected] "GZGA Backup Mission Finished!" 
    我欲实现功能:1.脚本/backupGZGA.sh被CRON自动调用执行完成后把整个执行过程中终端中产生的日志及提示信息输入到\gzgaCronLog.log文件中去,向[email protected]发个邮件标题为"GZGA Mission Finished."并发送附件gzgaCronLog.log. var/spool/mail的内容: 
    rom [email protected]  Tue Oct  7 17:32:13 2008 
    Return-Path: <[email protected]
    Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) 
    by localhost.localdomain (8.13.8/8.13.8) with ESMTP id m979WDOf004744 
    for <[email protected]>; Tue, 7 Oct 2008 17:32:13 +0800 
    Received: (from oracle@localhost) 
    by localhost.localdomain (8.13.8/8.13.8/Submit) id m979WCW3004743; 
    Tue, 7 Oct 2008 17:32:12 +0800 
    Date: Tue, 7 Oct 2008 17:32:12 +0800 
    Message-Id: <[email protected]
    From: [email protected] (Cron Daemon) 
    To: [email protected] 
    Subject: Cron <oracle@localhost> /backupGZGA.sh 1>>/tmp/gzgaCronLog.log 2>>/tmp/gzgaCronLog.log;cat /tmp/gzgaCronLog.log|sendmail [email protected] "GZGA Backup Mission Finished!" 
    Content-Type: text/plain; charset=UTF-8 
    Auto-Submitted: auto-generated 
    X-Cron-Env: <SHELL=/bin/sh> 
    X-Cron-Env: <HOME=/home/oracle> 
    X-Cron-Env: <PATH=/usr/bin:/bin> 
    X-Cron-Env: <LOGNAME=oracle> 
    X-Cron-Env: <USER=oracle> /bin/sh: sendmail: command not found 
    请教上述错误信息什么原因?如何调整和修改才能实现我的预期功能1? 
    功能2:脚本被CRON自动调用执行完成后向终端中发送提示信息:"XXXX年XX月XX日XX时XX分XX秒 GZGA Mission Finished Pls check ur mail",当前用户没有打开终端就自动开启一个终端发送粗体提示信息:"XXXX年XX月XX日XX时XX分XX秒 GZGA Mission Finished" ,提示信息最好在终端的正中央! 
    在不影响功能1的情况下具体如何修改ORACLE用户的crontab语句才能实现功能2? 
    非常感谢! 

    上述crontab语句执行过程中CentOS的sendmail服务正在运行 
    在/var/log/cron里的内容:Oct  7 17:42:01 localhost crond[5200]: (oracle) CMD (/backupGZGA.sh 1>>/tmp/gzgaCronLog.log 2>>/tmp/gzgaCronLog.log;cat /tmp/gzgaCronLog.log|sendmail [email protected] "GZGA Backup Mission Finished!") 
    Oct  7 17:44:01 localhost crond[5280]: (oracle) CMD (/backupGZGA.sh 1>>/tmp/gzgaCronLog.log 2>>/tmp/gzgaCronLog.log;cat /tmp/gzgaCronLog.log|sendmail [email protected] "GZGA Backup Mission Finished!") 
    Oct  7 17:46:02 localhost crond[5358]: (oracle) CMD (/backupGZGA.sh 1>>/tmp/gzgaCronLog.log 2>>/tmp/gzgaCronLog.log;cat /tmp/gzgaCronLog.log|sendmail [email protected] "GZGA Backup Mission Finished!") 
    Oct  7 17:48:01 localhost crond[5437]: (oracle) CMD (/backupGZGA.sh 1>>/tmp/gzgaCronLog.log 2>>/tmp/gzgaCronLog.log;cat /tmp/gzgaCronLog.log|sendmail [email protected] "GZGA Backup Mission Finished!") 
     
    XXXX年XX月XX日XX时XX分XX秒为oracle用户的crontab语句执行完成后CentOS的当前时间。 
     
      

  7.   

    sqlplus sys/sys@orcl97 as sysdba;
    这可以一步运行你骗鬼啊!
    别想那么多哦这问题就要你公司或者客户更新设备了
    磁盘阵列 RAC
      

  8.   

    CentOS5.1系统下:
    oracle用户下crontab -l如下: 
    00-59/1 * * * * /backupGZGA.sh 1>>/tmp/gzgaCronLog.log 2>>/tmp/gzgaCronLog.log;curdate=`date +%y%m%d`;cat /tmp/gzgaCronLog.log|mutt -s GZGABackupFinished${curdate} -a /tmp/gzgaCronLog.log /var/spool/mail/oracle: 
    From [email protected]  Sat Oct 11 15:49:02 2008 
    Return-Path: <[email protected]
    Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) 
    by localhost.localdomain (8.13.8/8.13.8) with ESMTP id m9B7n1Eb018900 
    for <[email protected]>; Sat, 11 Oct 2008 15:49:01 +0800 
    Received: (from oracle@localhost) 
    by localhost.localdomain (8.13.8/8.13.8/Submit) id m9B7n1L2018899; 
    Sat, 11 Oct 2008 15:49:01 +0800 
    Date: Sat, 11 Oct 2008 15:49:01 +0800 
    Message-Id: <[email protected]
    From: [email protected] (Cron Daemon) 
    To: [email protected] 
    Subject: Cron <oracle@localhost> /backupGZGA.sh 1>>/tmp/gzgaCronLog.log 2>>/tmp/gzgaCronLog.log;curdate=`date + 
    Content-Type: text/plain; charset=UTF-8 
    Auto-Submitted: auto-generated 
    X-Cron-Env: <SHELL=/bin/sh> 
    X-Cron-Env: <HOME=/home/oracle> 
    X-Cron-Env: <PATH=/usr/bin:/bin> 
    X-Cron-Env: <LOGNAME=oracle> 
    X-Cron-Env: <USER=oracle> /bin/sh: -c: line 0: unexpected EOF while looking for matching ``' 
    /bin/sh: -c: line 1: syntax error: unexpected end of file 

    还是不行啊,错误信息如上,请教如何解决?