ºìÁªLinuxÃÅ»§
Linux°ïÖú

INFORMIX£­ONLINEÊý¾Ý¿âÈýÖÖ±¸·Ý·½·¨µÄÑ¡Ôñ

·¢²¼Ê±¼ä:2006-10-12 11:04:32À´Ô´:ºìÁª×÷Õß:bear10214
INFORMIX£­ONLINEÊý¾Ý¿âÒòÆä¾ßÓиßÐÔÄÜ¡¢¸ß¿É¿¿ÐÔ¡¢Ö§³ÖÊý¾ÝÍêÕûÐÔ¶¨ÒåºÍ¼ì²éµÈÌØÐÔ¶ø±»¹ã·ºÓ¦Óá£Êý¾Ý¿â±»Ê¹Óúó£¬Êý¾Ý±¸·ÝµÄ°²È«¿É¿¿ÐÔ±ã³ÉΪÈËÃÇÆÕ±é¹Ø×¢µÄÎÊÌâ¡£ÏÂÃæ¸ù¾Ý±ÊÕ߶àÄêµÄѧϰºÍʹÓþ­Ñ飬¶ÔINFORMIX£­ONLINEÊý¾Ý¿â³£ÓõÄÈýÖÖÊý¾Ý±¸·Ý·½Ê½¼ÓÒÔ¹éÄɺͱȽϡ£
Ò»¡¢Ê¹ÓÃontape¹¤¾ß½øÐÐÊý¾Ý±¸·Ý
1.ontape¹¤¾ßµÄ¹¦ÄÜ
ontape¹¤¾ß¾ßÓÐÈçϹ¦ÄÜ£º±¸·ÝºÍ»Ö¸´ONLINEÊý¾Ý¡¢±¸·ÝºÍ»Ö¸´Âß¼­ÈÕÖ¾¡¢¸Ä±äÊý¾Ý¿âÈÕ־״̬µÈ¡£ÔÚ´Ë×ÅÖؽéÉÜÊý¾Ý±¸·Ý¹¦ÄÜ¡£
2.Ö´ÐÐontape±¸·ÝÊý¾ÝµÄÓï·¨
ontape±¸·ÝÓ﷨Ϊ£º
ontape £­s £­L ±¸·Ý¼¶±ð£¨0¡¢1¡¢2£©
ÔÚONLINE´¦ÓÚÁª»ú»ò¾²Ö¹·½Ê½Ê±£¬ informixÓû§»ò¾ßÓÐDBAȨÏÞµÄÓû§¿ÉÒÔͨ¹ýÖ´ÐÐÉÏÃæµÄÃüÁî½øÐб¸·Ý¡£¸ù¾Ý±¸·Ý·½°¸°²ÅŽøÐÐ0¼¶¡¢1¼¶¡¢2¼¶±¸·Ý¡£0¼¶±¸·ÝÊǶÔÕû¸öÊý¾Ý¿âµÄËùÓÐÊý¾Ý½øÐÐÍêÕû±¸·Ý£¬1¼¶±¸·ÝÊÇÖ»¶Ô0¼¶±¸·ÝÒÔºóÐ޸ĹýµÄÊý¾Ý½øÐб¸·Ý£¬2¼¶±¸·ÝÖ»ÊǶÔ1¼¶±¸·ÝÒÔºóÐ޸ĹýµÄÊý¾Ý½øÐб¸·Ý¡£
3.ÐèҪעÒâµÄÎÊÌâ
£¨1£©ÔÚÖ´ÐÐontape±¸·ÝÇ°Òª¶ÔONCONFIGÎļþÖеÄTAPEDEV¡¢TAPEBLK¡¢TAPESIZE²ÎÊý½øÐÐÕýÈ·µÄÉèÖá£
£¨2£©ÎªÁËËõ¶ÌÊý¾Ý»Ö¸´Ê±¼ä£¬Ó¦ÒÔ½øÐÐ0¼¶ÎªÖ÷£¬¾¡Á¿¼õÉÙ1¼¶ºÍ2¼¶±¸·Ý¡£¶ÔÒøÐеÈÖØÒª²¿ÃÅÊý¾Ý£¬Ó¦Ã¿Ìì½øÐÐ0¼¶±¸·Ý¡£
£¨3£©Èç¹ûÐèÒª½«ontape±¸·ÝµÄÊý¾Ý»Ö¸´µ½Áíһ̨·þÎñÆ÷ÉÏʱ£¬ÒªÇóÁ½Ì¨·þÎñÆ÷»úÐÍ¡¢²Ù×÷ϵͳ¡¢ONCONFIGÅäÖÃÎļþ¼°·ÇÁÙʱ·ÖÅäµÄdbspace´ÅÅÌ¿Õ¼äÊýÁ¿ºÍ´óС±ØÐëÒ»Ö£¬·ñÔòÊý¾Ý²»ÄÜÕý³£»Ö¸´¡£
£¨4£©±ØÐë±£Ö¤ÓÐ×ã¹»¿ÉÓõÄÂß¼­ÈÕÖ¾Îļþ¡£Èç¹ûÊ£ÓàµÄÂß¼­ÈÕÖ¾¿Õ¼äСÓÚµ¥¸öÂß¼­ÈÕÖ¾µÄ50£¥£¬INFORMIX£­ONLINE½«¾Ü¾øÖ´Ðб¸·Ý²Ù×÷£¬±ØÐëÏȱ¸·ÝÒÑʹÓùýµÄÂß¼­ÈÕÖ¾£¬È»ºó²ÅÄܽøÐÐÊý¾Ý±¸·Ý¡£
£¨5£©±£ÁôONCONFIGÎļþ¸±±¾¡£ÔÚ½øÐÐ0¼¶±¸·Ýºó£¬Ó¦±¸·ÝONCONFIGÎļþ£¬ÒòΪÔÚ»Ö¸´0¼¶±¸·ÝʱÐèÒª¶ÁONCONFIGÎļþÐÅÏ¢£¬Èç¹ûONLINEÅäÖñ»Ð޸ģ¬Êý¾Ý»Ö¸´½«Ê§°Ü£¬Èç¹û»Ö¸´´Ë0¼¶±¸·Ý£¬±ØÐë»Ö¸´µ±Ê±µÄÅäÖá£
£¨6£©±¸·Ý¿ÉÒÔÔÚONLINEÁª»ú»ò¾²Ö¹·½Ê½Ï½øÐУ¬ÔÚ±¸·Ý¹ý³ÌÖв»ÄܸıäONLINEÔËÐз½Ê½£¬·ñÔò±¸·Ý»á±»Öжϡ£
£¨7£©²»ÒªÊ¹Óúǫ́·½Ê½Ö´Ðб¸·ÝÃüÁUnixϵģ¦£©,ÒòΪ±¸·Ý²ÉÓý»»¥·½Ê½½øÐС£
¶þ¡¢Ê¹ÓÃdbexportÃüÁî½øÐÐÊý¾Ý±¸·Ý
1.dbexportÃüÁî¼ò½é
dbexportÃüÁîÒÔASCIIÂë¸ñʽ½«Êý¾Ýдµ½Îļþ»ò±¸·Ý½éÖÊÉÏ£¨Èç´Å´ø£©¡£dbexportж³öµÄÎļþ°üÀ¨Êý¾Ý¿âģʽÎļþºÍÊý¾ÝÎļþ¡£
2.dbexport ÃüÁîÓï·¨
dbexport [£­X] [£­c] [£­q] [£­d] [£­ss] [{£­o | £­t £­b £­s [£­f ]}]
ÒÔÉϲÎÊý´ú±íµÄÒâÒåÈçÏ£º
< >ÖаüÀ¨µÄÄÚÈÝΪ±ØÑ¡Ï[ ]ÖеÄÄÚÈÝΪ¿ÉÑ¡Ïî¡£
£­c ָʾÈç¹ûûÓдíÎó£¬ÔòÊä³öÈ«²¿ÐÅÏ¢¡£
£­q ÔÚ±ê×¼Êä³öÉ豸Éϲ»ÏÔʾ´íÎóÐÅÏ¢¡¢¾¯¸æºÍËùÉú³ÉµÄSQLÊý¾Ý¶¨ÒåÓï¾ä¡£
£­d ½öÊä³öblobÃèÊö·û£¬²»Êä³öblobÊý¾Ý¡£
£­ss ÔÚģʽÎļþÖÐÊä³öÌض¨ÓÚ·þÎñÆ÷µÄÓÃÓÚ´´½¨Êý¾Ý¿âºÍ±íµÄÐÅÏ¢£¬±ÈÈ磺³õʼµÄextentºÍ¸½¼ÓµÄextentµÄ´óС¡¢ÉÏËø·½Ê½¡¢±íËùפÁôµÄdbspaceµÈÐÅÏ¢¡£
£­o Ö¸¶¨Êý¾ÝÊä³öÎļþµÄ´ÅÅÌĿ¼¡£
£­t Ö¸¶¨Êý¾ÝÊä³öÎļþµÄ±¸·Ý½éÖÊÃû³Æ¡£
£­b Ö¸¶¨±¸·Ý½éÖÊ¿é´óС¡£
£­s Ö¸¶¨±¸·Ý½éÖʵÄ×î´ó´æ´¢Á¿¡£
£­f ÓÃÓÚÖ¸¶¨´æ´¢ÔÚ±¸·Ý½éÖÊÉϵÄģʽÎļþÃû¡£
database Ö¸¶¨±¸·ÝµÄÊý¾Ý¿âÃû³Æ¡£
3.dbexport¹¦Äܼ°Ê¹ÓÃʱÐè×¢ÒâµÄÎÊÌâ
£¨1£©Ö´ÐÐdbexportÃüÁî±ØÐëÊÇinformixÓû§»ò¾ßÓÐDBA·ÃÎÊȨÏÞµÄÓû§¡£
£¨2£©ÓÃdbexport±¸·ÝµÄÊý¾Ý±ØÐëÓÃdbimportÃüÁî»Ö¸´¡£
£¨3£©Óû§¿ÉÒÔͨ¹ý±à¼­Ä£Ê½ÎļþÀ´¸Ä±ädbimportÉú³ÉµÄÊý¾Ý¿â,Èç¸Ä±äÊý¾Ý¿âÃû³Æ»òÏà¹ØµÄ±íÐÅÏ¢¡£
£¨4£©dbexportÒÔ¶ÀÕ¼·½Ê½£¨exclusive mode£©Õ¼ÓÃÊý¾Ý¿â£¬±¸·ÝÆÚ¼äÆäËûÓû§²»ÄܶÔÊý¾Ý¿â½øÐвéѯºÍÐ޸ļ°²åÈë²Ù×÷¡£
£¨5£©Ä£Ê½Îļþ²»±£ÁôÊý¾Ý¿âµÄÈÕÖ¾Îļþ£¬Óû§Ê¹ÓÃdbimportÃüÁÁ¢Êý¾Ý¿âʱ±ØÐëΪн¨Êý¾Ý¿âÑ¡ÔñÒ»ÖÖÈÕÖ¾·½Ê½£¨ANSI¡¢buffered¡¢nobufferedÀàÐÍ£©¡£
£¨6£©Óû§¿ÉÒÔʹÓÃdbexport/dbimportÃüÁ½«INFORMIX£­ONLINEºÍINFORMIX£­SEϵÄÊý¾Ý½øÐÐÏ໥ת»»£»Ò²¿ÉÒÔ½«Êý¾ÝÔÚINFORMIX£­ONLINEµÄ²»Í¬°æ±¾Ö®¼äת»»¡£ÕâÖÖת»»¶ÔÊý¾Ý¿â·þÎñÆ÷µÄ½á¹¹ºÍONLINEµÄÅäÖÃûÓÐÌرðÒªÇó¡£
£¨7£©Ê¹ÓÃdbexport/dbimportÃüÁ·Ý/»Ö¸´Êý¾Ý£¬¿ÉÒÔÆðµ½Ïû³ýÊý¾Ý·ÖÅä¿Õ¼äËé¿éµÄ×÷Óã¬Ìá¸ßÊý¾Ý¿âÕûÌåÔËÐÐЧÂÊ¡£
Èý¡¢ ʹÓÃonunloadÃüÁî½øÐÐÊý¾Ý±¸·Ý
1.onunloadÃüÁî¼ò½é
onunloadÃüÁîÒÔҳΪµ¥Î»£¬Ê¹Óöþ½øÖÆÐÎʽж³öÊý¾Ý£¬±¸·ÝЧÂʱÈdbexport¸ß¡£
2.onunloadÃüÁîµÄÓï·¨
onunload [£­l] [£­t ] [£­b ] [£­s ] [:[owner>.]]
ÒÔÉϲÎÊý´ú±íµÄÒâÒåÈçÏ£º
< >ÖаüÀ¨µÄÄÚÈÝΪ±ØÑ¡Ï[ ]ÖеÄÄÚÈÝΪ¿ÉÑ¡Ïî¡£
£­l ָʾonunload·Ö±ð´ÓÅäÖòÎÊýTAPEDEV¡¢TAPEBLKºÍTAPESIZEÖжÁÈë´Å´øÉ豸¡¢¿é´óСºÍ±¸·ÝÉ豸ÈÝÁ¿Öµ¡£
£­t Ö¸¶¨±¸·ÝÉ豸Ãû¡£
£­b Ö¸¶¨±¸·ÝÉ豸µÄ¿é´óС¡£
£­s Ö¸¶¨±¸·ÝÉ豸µÄ´æ´¢ÈÝÁ¿¡£
database Ö¸¶¨Òª±¸·ÝµÄÊý¾Ý¿â¡£
owner Ö¸¶¨±íµÄÊôÖ÷¡£
table Ö¸¶¨ÒªÐ¶³öµÄ±í¡£
3.ʹÓÃonunloadÐèҪעÒâµÄÎÊÌâ
£¨1£©onunload±¸·ÝµÄÊý¾Ý±ØÐëÓÃonloadÃüÁî½øÐлָ´¡£
£¨2£©onunload/onload²»ÄÜʵÏÖ²»Í¬°æ±¾µÄONLINEÖ®¼äµÄÊý¾ÝתÒÆ¡£
£¨3£©onunload/onloadÊÇÒÔ´ÅÅÌÒ³´óСΪµ¥Ôª´æ´¢µÄ¶þ½øÖÆÊý¾Ý£¬Ð¶³öºÍ½ÓÊÜÊý¾ÝµÄ¼ÆËã»ú±ØÐë¾ßÓÐÏàͬµÄ´ÅÅÌÒ³´óС¡£
£¨4£©Ö»Äܽ«onunloadж³öµÄÊý¾Ý×°ÈëONLINE¹ÜÀíµÄÊý¾Ý¿â»ò±í¡£
£¨5£©Óû§±ØÐë¾ßÓÐDBA·ÃÎÊȨÏÞ£¬²ÅÄÜÖ´ÐÐonunloadÃüÁî¡£
£¨6£©onunload²»±£Áô³õʼ±íÉ϶¨ÒåµÄ·ÃÎÊÌØȨ¡£
(7)onunload²»±£Áô³õʼ±í
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 1 ÌõÆÀÂÛ

  1. litangttd ÓÚ 2006-10-14 11:59:03·¢±í:

    DING