Articles Comments

Oracle DBA & All IT » Archive

SQL*Loader โหลดข้อมูลจาก Text เข้า Table -ตัวอย่างที่2

SQL*Loader เป็นเครื่องมือสำหรับการนำข้อมูลจาก text file มาใส่ลง Table โดยการใช้ commad นี้ จะต้องมีการสร้าง Table ในฐานข้อมูลไว้เรียบร้อยก่อน ซึ่ง Table สามารถที่จะมีข้อมูลอยู่แล้วหรือว่างๆ ก็ได้ และต้องมี Privileges ดังนี้   .. Preview : 11783 … Read entire article »

Filed under: Utilities

SYS.LT_EXPORT_PKG Warning When Export User Or Full Database

Error เกิดขึ้นเวลาที่ export full=y ที่ oracle9i วิธีแก้มีดังด้านล่างนี้ค่ะ ลองดูนะคะถ้าใครเจอ error นี้เหมือนกัน Error Message in Log file  fact: Oracle Server – Enterprise Edition 9.0.1  symptom: Exporting pre-schema procedural objects and actions  symptom: EXP-00008: ORACLE error 6550 encountered   symptom: ORA-06550: line %, column %:   symptom: PLS-00201: identifier 'SYS.LT_EXPORT_PKG' must be declared   symptom: EXP-00083: The previous problem occurred when calling  SYS.LT_EXPORT_PKG.schema_info_exp   .. Preview : 8103 … Read entire article »

Filed under: ORA-Error

วิธีการใช้ SQL*Loader utility สำหรับ Load ข้อมูลจาก text file เข้า table

เราสามารถที่จะโหลดข้อมูลเข้า Oracle database โดยใช้ sqlldr (sqlload สำหรับบาง platforms) utility.  ลองดูตัวอย่างตามด้านล่าง example: sqlldr username@server/password control=loader.ctl sqlldr username/password@server control=loader.ctl   .. Preview : 12741 … Read entire article »

Filed under: Utilities

Full export warnings PLS-00201:ORA-06512:

Warining ใน Log เวลาที่เรา export Full ถ้าเจอแบบนี้ให้ทำการ grant สิทธิืเพิ่มให้กับ user ที่ใช้รัน export ค่ะ PLS-00201: identifier 'SYS.DBMS_DEFER_IMPORT_INTERNAL' must be declared ORA-06512: at "SYS.DBMS_EXPORT_EXTENSION", line 97   .. Preview : 6187 … Read entire article »

Filed under: ORA-Error

11gR2 export file จะไม่เอา table ที่ไม่มี data มาด้วย (deferred segment creation)

วันก่อนไปเจอคำถามนี้ใน narisa มาค่ะ เห็นว่าเคยเจอมาเหมือนกัน หาแทบตาย -_-' แล้วเห็นมีคนเจอเหมือนกันก็เลยเอามารวบรวมไว้ให้ค่ะ ใครสงสัยเรื่องไหนสามารถฝากไว้ได้ที่ forum ค่ะ แล้วเด๋วจะทะยอยหาคำตอบมาให้ค่ะ หวังว่าจะเป็นประโยชน์กับเพื่อนๆนะคะ   .. Preview : 14176 … Read entire article »

Filed under: New Feature, ORA-Error

เทคนิคการเลือก Index อย่างไรให้ work

       หลายครั้งมักจะมีคำถามว่าใช้ index แล้วทำไมถึงยังช้า ไหนว่าใช้ index แล้วจะช่วยให้การดึงข้อมูลเร็วขึ้น เราได้ฟังก็อ้าว… ทฤษฎีว่าอย่างนั้นนะ แต่เอ๊ะ ขอดูหน่อยซิว่า index ที่ว่าเป็นยังไง .. Preview : 17435 … Read entire article »

Filed under: Tuning Performance

ย้อนวันเวลาด้วย fixed_date

             การกำหนดวันที่ให้คงที่เสมอให้กับ SYSDATE  แทนที่วันที่ปัจจุบันของโฮสต์ มีประโยชน์สำหรับการทดสอบระบบ โดยค่าที่ได้จะอยู่ในรูปแบของวันที่ โดยไม่มีเวลามาให้ด้วย หรือจะ Set ค่าทั้งวันที่และเวลาเลยก็ได้ ทั้งนี้ขึ้นอยู่กับว่าเราอยากจะให้ SYSDATE สำหรับการทดสอบเฉพาะเจาะจงแค่ไหน .. Preview : 7658 … Read entire article »

Filed under: Function