Oracle DBA & All IT » Archive
Oracle DBA Responsibilities & Skills
หลายคนคงสงสัยว่า DBA ทำหน้าที่และต้องมีทักษะอะไรบ้าง วันนี้เลยเอามาฝากกันค่ะ อย่างน้อยจะได้รู้คร่าวๆก่อนว่าอาชีพนี้จะต้องทำอะไรบ้าง สำหรับน้องๆที่อยากจะก้าวมาเป็น DBA ค่ะ จะได้เตรียมตัวให้พร้อม .. Preview : 12569 … Read entire article »
ความแตกต่างระหว่างคำสั่ง Truncate, Delete และ Drop
DELETE คำสั่ง DELETE จะใช้สำหรับลบข้อมูลออกจากตาราง สามารถใส่เงื่อนไขในการลบได้ด้วย ถ้าำไม่มีการกำหนด เงื่อนไข จะเป็นการลบข้อมูลทั้งตาราง หลังจากที่มีการรันคำสั่ง DELETE จะต้องตามด้วยคำสั่ง COMMIT เป็นการยืนยันการลบข้อมูล หรือ ROLLBACK เพื่อยกเลิกการลบก่อนหน้า .. Preview : 50751Related Search:truncate table คือtruncatetruncate tabletrunc oracle คือtruncate คือoracle trunc คือtruncate table sqlsql truncatetruncate sqlsql truncate คือ … Read entire article »
Filed under: Function, Oracle Tips, Tuning Performance
การสร้าง Outline บังคับให้ statement ใช้ index ตามที่เราต้องการ
บ่อยๆ ที่เราจะพบว่า statement ช้าก่อน พอ Plan table ดูกลับพบว่า ใช้ index ไม่ถูกตัวแต่ไม่อยากที่จะแก้โปรแกรมโดยการใส่ hint ตอนนี้เราสามารถที่จะใช้ outline มาแก้ปัญหานี้ได้โดยสร้าง outline outline คืออะไร คือเป็นตัวบอกว่า statment นี้ถ้าเข้ามาให้ไปใช้ plan ตามที่เราเตรียมไว้นั่นเอง .. Preview : 29788Related Search:outline คือการเขียน outlineการเขียนoutlineตัวอย่างการเขียน outlineoutline คืออะไร … Read entire article »
Filed under: New Feature, Oracle Tips, Tuning Performance
SQL*Loader โหลดข้อมูลจาก Text เข้า Table -ตัวอย่างที่2
SQL*Loader เป็นเครื่องมือสำหรับการนำข้อมูลจาก text file มาใส่ลง Table โดยการใช้ commad นี้ จะต้องมีการสร้าง Table ในฐานข้อมูลไว้เรียบร้อยก่อน ซึ่ง Table สามารถที่จะมีข้อมูลอยู่แล้วหรือว่างๆ ก็ได้ และต้องมี Privileges ดังนี้ .. Preview : 11427Related Search:sql loader คือsql loadersql*loader คือsqlldrsqlldr คือsql loader ภาษาไทยsqlldr thai front … 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 : 8052Related Search:SYS LT_EXPORT_PKGora-06550 … 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 : 12537Related Search:sql loader control filesqlldr control file … 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 : 6111Related Search:ORA-06512ora-06512 คือPLS-00201: identifier SYS DBMS_DEFER_IMPORT_INTERNAL must be declaredgrant execute DBMS_DEFER have error ORA04042 … Read entire article »
Filed under: ORA-Error
11gR2 export file จะไม่เอา table ที่ไม่มี data มาด้วย (deferred segment creation)
วันก่อนไปเจอคำถามนี้ใน narisa มาค่ะ เห็นว่าเคยเจอมาเหมือนกัน หาแทบตาย -_-' แล้วเห็นมีคนเจอเหมือนกันก็เลยเอามารวบรวมไว้ให้ค่ะ ใครสงสัยเรื่องไหนสามารถฝากไว้ได้ที่ forum ค่ะ แล้วเด๋วจะทะยอยหาคำตอบมาให้ค่ะ หวังว่าจะเป็นประโยชน์กับเพื่อนๆนะคะ .. Preview : 14080 … Read entire article »
Filed under: New Feature, ORA-Error