Oracle ÔÚwindowÏÂ×Ô¶¯±¸·Ý
£±¡¢È·¶¨ÄãµÄ¼ÆËã»úÉÏ×°ÓÐoracleµÄ¿Í»§¶Ë£¬Èç¹ûûÓУ¬Çë°²×°oracle¿Í»§¶Ë
£²¡¢È·¶¨ÓÐÄãµÄoracle·þÎñÀïÓÐÄãÒªÐèÒª±¸·ÝµÄÊý¾Ý¿âµÄ·þÎñÃû¡£
£³¡¢ÖÆ×÷Ò»¸öÅú´¦ÀíÎļþ£¨oracleBackup.bat£©£¬¾ßÌå·½·¨£º´ò¿ª“¼Çʱ¾”£¬±£´æΪoracleBackup.bat£¬
¡¡¡¡´Ëʱ±£´æµÄÎļþÀàÐÍÑ¡ÔñΪ“ËùÓÐÎļþ”¡£Îҵı£´æĿ¼Ϊ£ºd:\oracleBackup.bat¡£oracle¿Í»§¶Ë°²×°
¡¡¡¡ÔÚd:\oracleĿ¼Ï¡£
£´¡¢ÓÒ¼üµã»÷´ËÎļþ£¨oracleBackup.bat£©£¬Ñ¡Ôñ“±à¼”£¬½øÈë±à¼×´Ì¬£º
D:
del /q \ÒµÎñÊý¾Ý±¸·Ý\gymz\backup\day3
copy \ÒµÎñÊý¾Ý±¸·Ý\gzdb\backup\day2\*.* \ÒµÎñÊý¾Ý±¸·Ý\gymz\backup\day3
del /q \ÒµÎñÊý¾Ý±¸·Ý\gymz\backup\day2
copy \ÒµÎñÊý¾Ý±¸·Ý\gymz\backup\day1\*.* \ÒµÎñÊý¾Ý±¸·Ý\gymz\backup\day2
del /q \ÒµÎñÊý¾Ý±¸·Ý\gymz\backup\day1
copy \ÒµÎñÊý¾Ý±¸·Ý\gymz\backup\day0\*.* \ÒµÎñÊý¾Ý±¸·Ý\gymz\backup\day1
del /q \ÒµÎñÊý¾Ý±¸·Ý\gymz\backup\day0
exp gymz/gymz@myoracle log=gymz_exp%DATE:~4,10%.log file=\ÒµÎñÊý¾Ý±¸·Ý\gymz\backup\day0\gymz_backup%DATE:~4,10%.dmp owner=gymz
¡¡¡¡a¡¢cd oracle\ora92\bin //½øÈëexpÃüÁîµÄĿ¼ÏÂÃæ¡£
¡¡¡¡b¡¢exp gymz/gymz@myoracle file=d:/%DATE:~4,10%.dmp log=d:/%DATE:~4,10%.log
//%DATE:~4,10%´ú±íȡϵͳÈÕÆÚ£¨windowsϵͳdocÃüÁ£¬ÀýÈ磺2005-12-01¡£ÓÃÈÕÆÚÀ´
¡¡¡¡¡¡×÷Ϊ±¸·ÝµÄÊý¾ÝÎļþÃûºÍÈÕÖ¾Ãû£¬ÓÃÀ´±£Ö¤ÎļþÃû²»Öظ´¡£ÒÔÉϱ¸·ÝÎļþÎÒ±£´æÔÚd£ºÏÂÃ棬±£´æ
¡¡¡¡¡¡Ä¿Â¼×Ô¼ºÉèÖá£
¡¡¡¡c¡¢±£´æÎļþ¡£
£µ¡¢ÔÚwindows¼Æ»®ÈÎÎñ£¨¿ªÊ¼£³ÌÐò£¸½¼þ£ÏµÍ³¹¤¾ß£ÈÎÎñ¼Æ»®£©ÖÐÌí¼ÓÈÎÎñ¼Æ»®£¬Ñ¡Ôñ“ÈÎÎñ¼Æ
¡¡¡¡»®”ʱ£¬µã»÷“ä¯ÀÀ”£¬Ñ¡Ôñ×Ô¼ºµÄ¼Æ»®£¨¼´oracleBackup.batÎļþ£©£¬È·¶¨¾ÍÐÐÁË¡£ÒÔÏÂÉèÖøù¾Ý×Ô
¡¡¡¡ÐèÒªÉèÖþÍÐÐÁË¡£
н¨·½Ê½(¶þ)£ºÔÚcmd ÖÐÔËÐÐн¨¼Æ»® at 12:47 /every:W D:\ÒµÎñÊý¾Ý±¸·Ý\gymz\backup\backup.cmd £¨ÔÚÿ¸öÐÇÆÚÈýµÄ12£º 47¶¨Ê±Ö´ÐУ©
Ïà¹ØÎĵµ£º
oracle±í¿Õ¼ä²Ù×÷Ïê½â
1
2
3×÷Õߣº À´Ô´£º ¸üÐÂÈÕÆÚ£º2006-01-04
5
6
7½¨Á¢±í¿Õ¼ä
8
9CREATE TABLESPACE data01
10DATAFILE '/ora ......
ORACLE±¸·Ý²ßÂÔ(ORACLE BACKUP STRATEGY)
2007Äê11ÔÂ02ÈÕ ÐÇÆÚÎå 16:03
¸ÅÒª
1¡¢Á˽âʲôÊDZ¸·Ý
2¡¢Á˽ⱸ·ÝµÄÖØÒªÐÔ
3¡¢Àí½âÊý¾Ý¿âµÄÁ½ÖÖÔËÐз½Ê½
4¡¢Àí½â²»Í¬µÄ±¸·Ý·½Ê½¼°ÆäÇø±ð
5¡¢Á˽âÕýÈ·µÄ±¸·Ý²ßÂÔ¼°ÆäºÃ´¦
Ò»¡¢Á˽ⱸ·ÝµÄÖØÒªÐÔ
¿ÉÒÔ˵£¬´Ó¼ÆËã»úϵͳ³öÊÀµÄÄÇÌìÆ𣬾ÍÓÐÁ˱¸·ÝÕâ¸ö¸ÅÄ ......
µÇ¼oracleÊý¾Ý¿âʱ³£ÓõIJÙ×÷ÃüÁîÕûÀí
1¡¢su – oracle ²»ÊDZØÐ裬ÊʺÏÓÚûÓÐDBAÃÜÂëʱʹÓ㬿ÉÒÔ²»ÓÃÃÜÂëÀ´½øÈësqlplus½çÃæ¡£
2¡¢sqlplus /nolog »òsqlplus system/manager »ò./sqlplus system/manager@ora9i
;
3¡¢SQL>connect / as sysdba ;£¨as sysoper£©»ò
connect internal/oracle AS SYSDBA ;(scott/ti ......
SQL ServerÀïµÄ ISNULL Óë Oracle ÖÐµÄ NULLIF²»Í¬:
SQL Server ÖÐÓÐÁ½¸ö²ÎÊý£¬Óï·¨£º
ISNULL(check_expression, replacement_value)
check_expression Óë replacement_value Êý¾ÝÀàÐͱØÐëÒ»ÖÂ
Èç¹û check_expression Ϊ NULL£¬Ôò·µ»Ø replacement_v ......
package com.deng.oracle;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
public class TestOracle {
public static void main(String[] args) {
try {
Class.forName("oracle.jdbc.driver.OracleDriv ......