• Create Database Link on Oracle

    หากใครเคยเขียนโปรแกรมต่อฐานข้อมูลแบบ Multiple Database บน Oracle Database ก็จะมีเทคนิคในการ Connect ระหว่าง 2 Physical Database ด้วย Database Link ทำให้เราสามารถเขียนโปรแกรมต่อฐานข้อมูลได้จาก 1 Logical Database ซึ่งดีกว่าในเรื่องของการจัดการ […]

    Read More

  • Install Oracle Instant Client on Docker

    ในกรณีทื่เราทำการ Connect Oracle Database จากเครื่อง Client ไปยัง Server จะต้องทำการติดตั้ง Oracle Instant Client ซึ่งจะประกอบไปด้วย Tool & Application อย่าง SQL*Plus, Data Pump […]

    Read More

  • Monitor Log Switch each Hour of Day on Oracle with SQL*Plus

    หากพูดถึง Log ของ Oracle Database ก็จะได้ยินอยู่ 2 คำ ก็คือ Redo Log และ Archive Log ซึ่ง Archive Log ก็เกิดจากข้อมูลที่อยู่ใน Redo Log […]

    Read More

  • Change Column Format on Oracle with SQL*Plus

    โดยปกติการใช้งาน SQL*Plus ซึ่งเป็น Command Line ของ Oracle จะแสดงผลลัพธ์ในลักษณะของ Table ซึ่งจะมีการกำหนด Size ของ Column เอาไว้ ทำให้กรณีที่ข้อมูลยาวเกิน Size ของ Column จะขึ้นเป็น ### […]

    Read More

  • Check Version Component on Oracle with SQL*Plus

    การตรวจสอบ Version ของ Component บน Oracle ซึ่งเมื่อเราทำการติดตั้ง Oracle Database จะติดตั้ง Component ที่ช่วยในการทำงานมาให้ด้วย เช่น Oracle Enterprise Manager โดยปกติ Version ของ Component […]

    Read More

  • Check Database Size on Oracle with SQL*Plus

    การตรวจสอบ Size ของ Tablespace บน Oracle หากใครเป็น DBA จะต้องหมั่นตรวจสอบทุกวัน เพื่อป้องกันไม่ให้มันเต็ม ซึ่งโดย Default ตอนสร้าง Tablespace จะทำการ Enable Auto Extend ให้อยู่แล้ว นอกจากนี้ยังอาจจะต้องดูพวก […]

    Read More

  • Shutdown Database on Oracle

    การ Shutdown Database Oracle ก็มีวิธีการปิดได้หลายวิธี ขึ้นอยู่กับการนำไปใช้งาน ซึ่งจะต่างจาก Database เจ้าอื่น ๆ เพียงแค่สั่ง Stop Service นั้น ๆ ซึ่งบน Oracle การสั่ง Stop Service […]

    Read More

  • How to get History SQL*Plus Command Oracle using rlwrap

    โดยปกติการใช้งาน SQL*Plus ซึ่งเป็น Command Line ของ Oracle ถ้าใช้บน Windows จะสามารถดูคำสั่งที่เราพิมพ์ไปก่อนหน้าได้ แต่บน Linux จะไม่สามารถทำได้ ทำให้เวลาเราพิมพ์ผิดต้องพิมพ์ใหม่ทั้งหมด ซึ่งโดยปกติถ้าเป็นคำสั่งยาว ๆ เราก็จะพิมพ์ใส Text Editor แล้ว […]

    Read More

  • Unlock and Change Password User on Oracle

    หากเรานำ Oracle ไปต่อกับระบบต่าง ๆ เราควรจะสร้าง Database ขึ้นมาใหม่โดยไม่ไปยุ่งกับ Production และไม่ควร Configuration ด้วยสิทธิ์ SYSDBA เราจะใช้ Username ที่มีอยู่แล้วบน Oracle แต่มันถุก Lock ไว้อยู่เราจะมา Unlock […]

    Read More