Articles Comments

Oracle DBA & All IT » Archive

แก้ปัญหา Case Sensitive ใน Oracle11g

วันนี้มาแก้ปัญหา ตัวเล้กๆใหญ่ๆ ของ password กัน สำหรับ version 11g ขึ้นไป password ตัวเล็กตังใหญ่ต้องเหมือนเป๊ะๆ คนที่ใช้ version 10g ลงไปอาจจะไม่คุ้นดูย๊ากยาก เราสามารถปิด Option ได้ตามด้านล่างเลยย แก้ไขโดยปรับ parameter sec_case_sensitive_logon เป็น FALSE .. Preview : 2127 … Read entire article »

Filed under: Database, DBA, New Feature, Oracle

“ORA-12545: Connect failed because target host or object does not exist” using / as sysdba

Have a nice day!!! หาตั้งนานเจอแล้วเก็บไว้ในคลังซักหน่อย เผื่อใครเจอปัญหาเหมือนกัน ^^ "ORA-12545: Connect failed because target host or object does not exist” using / as sysdba ORA-12545 is very common error and people use to get this quite frequently as soon as they have some mis-configuration in oracle client configuration files.   .. Preview : 3036 … Read entire article »

Filed under: Database, DBA, ORA-Error, Oracle, Oracle Tips

วิธีการ kill, cancel, resume, restart job Oracle Datapump (expdp,impdp)

วิธีการ kill, cancel, resume, restart  job Oracle Datapump (expdp,impdp) Query ดู Job name ของ datapump Status คววรจะเป็น Executing SELECT owner_name, job_name, operation, job_mode, state FROM dba_datapump_jobs; OWNER_NAME JOB_NAME             OPERATION  JOB_MODE   STATE ---------- -------------------- ---------- ---------- ------------ SYSTEM     EXP_FULL             EXPORT     FULL       EXECUTING   .. Preview : 2681 … Read entire article »

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

มหากาพย์ 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 ต่างๆ

Crontab รู้ไว้ใช่ว่าใส่บ่าแบกหาม ^^

  วันนี้มาเสนอตอน.. Crontab รู้ไว้ใช่ว่าใส่บ่าแบกหาม ^^ อีกหนึ่งวิชาที่ DBA ควรรู้จักไว้ สำหรับ Server ที่เป็น solaris or linux  สำหรับ windows ก็ตั้งผ่าน schedule job ไป มี GUI clickๆ ไม่ยาก Crontab คืออะไร คือการตั้งเวลาให้ job ตื่นขึ้นมารันตามช่วงเวลาที่เรากำหนด ก็เปรียบเสมือน Schedule job ใน windows  .. Preview : 2888 … Read entire article »

Filed under: Unix

การ upgrade oracle Standard Edition to Enterprise Edition

การ upgrade จาก  Oracle Standard Edition to Enterprise Edition บางครั้งเมื่อเราลงแบบ Standard Edition ไปแล้วเมื่อต้องการ feature เพิ่มเติมที่มีใน Enterprise Edition เราก็สามารถทำได้ง่ายๆ ตาม ขั้นตอนนี้ค่ะ   .. Preview : 2261 … Read entire article »

Filed under: Database, DBA, Oracle

ORA-20000:ORU-10027:buffer overflow, limit 50000 bytes

วันนี้เอาวิธีแก้ error ง่ายๆมาฝากจ้า แค่เพิ่ม command ด้านล่างลงไปก็เป็นอันเสร็จพิธี ^^ รันใน sqlplus : set serveroutput on size unlimited  รันใน pl/lus or procedure : DBMS_OUTPUT.ENABLE(NULL);   .. Preview : 2361 … Read entire article »

Filed under: Database, ORA-Error, Oracle