Oracle DBA & All IT » Database, DBA, DBA, Oracle, รวม Script ต่างๆ » มหากาพย์ export/import ตอนที่ 3 ภาคจบ export by partition
มหากาพย์ export/import ตอนที่ 3 ภาคจบ export by partition
มหากาพย์ export/import ตอนที่ 3 ภาคจบ export by partition
วันนี้มาปิดมหากาพย์ export/import ด้วย export by partition หุหุ อย่าคิดว่ามหากาพย์จะยาวนะ เอาแค่ 3 ตอนก็น่าจะครอบคลุมทุกกระบวนท่ากันแล้วเนอะ ไม่เกริ่นแระมาเริ่มกันเลยดีกว่า
ตัวอย่าง script สำหรับ export by partition แบบธรรมดา
exp file=exp_par.dmp log=exp_par.log userid=system/password@db1 fromuser=scott touser=scott tables=scott.TABLENAME:PARTITION_NAME
ตัวอย่าง script สำหรับ export by partition แบบที่ compress and split file (วิชาจากตอนที่ 1)
nohup echo|exp file=>(compress|split -b 1024m – exp_par-) log=exp_par.log userid=system/password@db1 tables=scott.TABLENAME:PARTITION_NAME
การ import ก็ import แบบปกติทั่วไปเหมือนวิชาจากตอนที่ 2 เลยนะจ๊ะ
หวังว่าจะเป็นประโยชน์ไม่มากก็น้อยน้า สำหรับ DBA ที่กำลังหาวิธีการ export ด้วยเงื่อนไขที่ต่างกัน บาย แล้วเจอกันใหม่จ้า
.. Preview : 1817Filed under: Database, DBA, DBA, Oracle, รวม Script ต่างๆ · Tags: exp, exp partition, export, export partition, imp, import, oracle, partition