Articles Comments

Oracle DBA & All IT » Entries tagged with "imp"

มหากาพย์ 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   .. Preview : 1897 … Read entire article »

Filed under: Database, DBA, DBA, Oracle, รวม Script ต่างๆ

มหากาพย์ export/import ตอนที่ 2 export by SQL

มหากาพย์ export/import ตอนที่ 2 export by SQL เนื่องจากมีหลายคนถามมาว่า export แบบไม่เอาทั้ง table ได้มั้ยยย ก็ขอบอกเลยว่าได้จ้า มาดูกันว่าทำไง เรื่องของการ export data แบบใส่เงื่อนไขในการ export เลือกเฉพาะข้อมูลที่ต้องการออกมา คล้ายๆกับการ Select * from Where …… ตัวอย่าง Scipt ที่ใช้ในการ export สำคัญที่ parameter query exp file=exp_data.dmp log=exp_data.log query="where employee_name= 'SCOTT' " full=N tables=hr.employees userid=system/password@db1 Tip: ในส่วน query นั้น column ที่เรานำมา where จะต้องมีอยู่ใน table ที่เราเลือกที่จะ export ออกมา สามารถมีมากว่า 1 table ได้ แต่ขอให้มี column name เหมือนกันเท่านั้นเอง .. Preview : 3716 … Read entire article »

Filed under: Database, DBA, DBA, Oracle, Oracle Tips

มหากาพย์ export/import ตอนที่ 1 Compress and Split File

มหากาพย์  export/import ตอนที่ 1 Compress and Split File หายไปนานมาก….กกกก เลยอยากจะมาเสนอวิธีการ export/import แบบต่างๆ ไว้เป็นแนวทางให้เพื่อนๆไปทำกัน สำหรับ datapump โปรดติดตามตอนต่อไปหลังจากเสร็จสิ้นมหากาพย์นี้ หุหุ วันนี้กลับมาแนะนำวิธีการ export dmp file แบบ compress and split file เพื่อการประหยัดพื้นที่บน storage  .. Preview : 3126 … Read entire article »

Filed under: Database, DBA, DBA, Oracle, Unix, รวม Script ต่างๆ

How to change an Oracle table owner ???

อิอิ.. วันนี้ขำนำมาก่อน ^^' เหตุเพราะหายไปนานเลยจากบทความล่าสุด ด้วยความที่ยุ่งๆ + กับไม่อยากให้บล็อกร้าง วันนี้เลยเอาเรื่องเบาๆ มาแบ่งปันกันจ้า วันก่อนเปลี่ยนชื่อ Database วันนี้เอาแค่จิ๊บๆ เปลี่ยนแค่เจ้าของ Table พอแระ   .. Preview : 3139 … Read entire article »

Filed under: Database, DBA, Oracle, Oracle Tips