I'm Top Oracle DBA

Category Archives: Oracle Architecture

How to add and drop temp files on Oracle database 11G

Example SQL> select file_name,tablespace_name from dba_temp_files; FILE_NAME TABLESPACE_NAME —————————————- —————— /home/oracle/oradata/DB11G/temp01.dbf TEMP SQL> alter tablespace temp add tempfile ‘/home/oracle/oradata/DB1121G/temp01.dbf’size 200m; Tablespace altered. SQL> select file_name,tablespace_name from dba_temp_files; FILE_NAME TABLESPACE_NAME —————————————- ——————- /home/oracle/oradata/DB1121G/temp01.dbf TEMP /home/oracle/oradata/DB11G/temp01.dbf TEMP SQL> SQL> alter tablespace temp drop tempfile ‘/home/oracle/oradata/DB11G/temp01.dbf’; Tablespace altered. SQL> select file_name,tablespace_name from dba_temp_files; FILE_NAME TABLESPACE_NAME —————————————- ——————– /home/oracle/oradata/DB1121G/temp01.dbf […]

How to renaming and relocating datafiles on Oracle Database 11G

Renaming and Relocating Datafiles You can rename the datafile and change locate but be careful about data will be lost you can see these steps below. ***For undotbs tablespace and system tablespace, if you want to relocate or rename, you’ll have downtime*** Renaming Step ***Only Renaming alter tablaespace xxx offline; mv or cp datafile that […]

How to renaming and relocating redo log files on Oracle database 11G

steps to rename and relocate, they have a lot of ways to do so this blog gonna show you, How to rename and relocate redo log file without downtime. if you want to rename or add a member to redo log file, I suggest this step because it’s without downtime. Example You can check the […]

How to renaming and relocating  control files on Oracle Database 11G

You can rename and relocate them, but actually, they have downtime because control_files is an initial parameter. SQL> show parameter control NAME TYPE VALUE ———————————— ———– —————————— control_file_record_keep_time integer 7 control_files string /home/oracle/oradata/DB11G/con trol01.ctl, /home/oracle/flash _recovery_area/DB11G/control02 .ctl control_management_pack_access string DIAGNOSTIC+TUNING SQL> select name from v$controlfile NAME ——————————————————- /home/oracle/oradata/DB11G/control01.ctl /home/oracle/flash_recovery_area/DB11G/control02.ctl SQL> shutdown immediate; Database closed. Database […]

Oracle Relational Data Structures

Oracle Relational Data Structures Schema Object Tables, Indexes, Partitions, Views, Materialized Views, Sequences, Synonyms Privilege (Grant, Synonym)   Schema คำว่า schema ที่ใช้เรียกในการทำงาน จะหมายถึง User หรือ เจ้าของ Object นั้นๆ   Tables ตารางเก็บ ข้อมูล ที่ประกอบ ไปด้วย ความหลากหลายประเภท ของ Column   Indexes เพิ่มประสิทธิภาพ ในการค้นหา(Select) ข้อมูล แต่ไม่เหมาะสำหรับ การ Insert ข้อมูล Keys and Columns Key คือ set ของ Column สามารถ […]

Oracle Database Storage Structures

Oracle Database Storage Structures แบ่ง การจัดการ ข้อมูลเป็น 2 ประเภท คือ Physical Storage Structure Logical Storage Structure     Physical Storage Structure Oracle Database ประกอบไปด้วย set ของ file สำหรับการจัดเก็บ ข้อมูลแบบถาวร บน Physical Storage (Disk) ดังนี้   Data file and Tempfile ถูกจัดการอยู่บน Physical Disk เก็บโครงสร้าง และข้อมูล ของ Table, Indexes พื้นที่ ที่ถูกใช้งาน บน Data file จะเรียกว่า Segment Tempfile […]

Oracle Architecture 11G

ปัจจุบัน product ของ Oracle ยังคงมี version 11G ที่ยังใช้ได้ในปัจจุบัน จึงขอ อธิบาย ในเรื่องของ Architecture และแชร์ความรู้ที่มี ของ version 11G ค่ะ เพื่อ เป็น พื้นฐานใน การทำความเข้าใจ Architecture ของ Oracle อย่างง่าย ก่อน ที่ Oracle จะ พัฒนา ไปรูปแบบ เป็น รูปแบบ Cloud หรือ version ถัดขึ้นไป Oracle Architecture 11G องค์ประกอบหลัก ของ Oracle Architecture แบ่งเป็น 2ส่วนใหญ่ คือ 1. Oracle Instance SGA หน่วยความจำร่วม ที่ User ทุกคนใช้ร่วมกัน […]

error: Content is protected !!