隨筆-46  評論-54  文章-0  trackbacks-0
          Windows XP SP2 + Oralce 9i

          exp++.bat
          1?set?sid=portal
          2?set?username=portal
          3?set?password=portal
          4?set?connect=%username%/%password%@%sid%
          5?set?back_path=D:\oracle
          6?set?date_string=%date:~0,4%_%date:~5,2%_%date:~8,2%
          7?set?time_string=%time:~0,2%_%time:~3,2%_%time:~6,2%
          8?set?file_string=%back_path%\portal_%date_string%_%time_string%
          9?exp?%connect%?buffer=20000000?file=%file_string%.dmp?log=exp_%file_string%.log?owner=portal

          imp++.bat
          ?1?set?dmp_source=%1
          ?2?set?sid=his
          ?3?set?username=his_dba
          ?4?set?password=his_dba
          ?5?set?connect=%username%/%password%@%sid%
          ?6?set?back_path=D:\oracle
          ?7?set?date_string=%date:~0,4%_%date:~5,2%_%date:~8,2%
          ?8?set?time_string=%time:~0,2%_%time:~3,2%_%time:~6,2%
          ?9?set?output_string=%back_path%\portal_%date_string%_%time_string%
          10?set?source_string=%back_path%\%dmp_source%
          11?imp?%connect%?file=imp_%source_string%?log=%output_string%.log?FROMUSER=portal

          Change CHARACTER SET
          1?ALTER?DATABASE?CHARACTER?SET?UTF8
          2?NLS_CHARACTERSET
          3?ZHS16CGB231280
          4?ZHS16GBK
          5?AL32UTF8
          6?UTF8


          posted on 2006-08-07 14:10 rox 閱讀(1571) 評論(3)  編輯  收藏 所屬分類: AJAX

          評論:
          # re: Oracle IMP/EXP bat 2006-12-22 10:44 | rox
          mysqldump:

          set dbname=gooweb2
          set username=root
          set password=1234
          set back_path=.
          set date_string=%date:~0,4%_%date:~5,2%_%date:~8,2%
          set time_string=%time:~0,2%_%time:~3,2%_%time:~6,2%
          set file_string=%back_path%\gooweb2_%date_string%_%time_string%

          mysqldump --opt -u %username% --password=%password% %dbname% > %file_string%.sql  回復(fù)  更多評論
            
          # re: Oracle IMP/EXP bat 2008-07-25 15:03 | rox
          [原創(chuàng)]利用SELECT ... OUTFILE來備份MySQL數(shù)據(jù)庫
          http://blog.chinaunix.net/u/29134/showart_1074828.html

          改良版本mysqldump來備份MYSQL數(shù)據(jù)庫
          http://blog.csdn.net/yueliangdao0608/archive/2008/07/20/2681263.aspx  回復(fù)  更多評論
            
          # re: Oracle IMP/EXP bat 2009-08-09 10:31 | rox
          exp portal/portal file=portal_`date +%Y%m%d`.dmp log=portal_`date +%Y%m%d`_exp.log
          tar --remove-files -cvzf portal_`date +%Y%m%d`.tar.gz portal_`date +%Y%m%d`*.*  回復(fù)  更多評論
            
          主站蜘蛛池模板: 射洪县| 祥云县| 都昌县| 大连市| 峨边| 古丈县| 任丘市| 绥棱县| 衡东县| 兴隆县| 丹东市| 新兴县| 富民县| 中宁县| 报价| 乌拉特中旗| 尼木县| 昭通市| 阿拉善右旗| 建昌县| 沽源县| 宁蒗| 灵川县| 横峰县| 卢龙县| 大姚县| 老河口市| 建平县| 汉中市| 宝山区| 关岭| 宁德市| 保山市| 襄垣县| 城口县| 平山县| 虎林市| 梁山县| 张家界市| 梅州市| 敦煌市|