I'm Top Oracle DBA

Category Archives: Configuration

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 […]

Auditing Oracle Database Activity

สรุปง่ายๆ ในรูปแบบความเข้าใจ เป็นภาษาไทย Auditing คือ การเก็บ รายละเอียดการเข้าใช้งาน ใน Database เก็บ เป็น record ลงใน table ที่มี ชื่อ ว่า SYS.AUD$ ซึ่งประเภทของรายละเอียดที่เก็บ มีหลากหลาย ประเภท เช่น SQL Statement, privileges, schemas, object, network ทั้งนี้ทั้งนั้น การทำ audit ให้กับฐานข้อมูลเป็นสิ่งจำเป็น ที่สุดเพื่อ ที่ Database ควรจะทำ (Database Security) เพื่อเอาไว้ วิเคราะห์ปัญหาที่เกิดขึ้น, สามารถระงับการเข้าใช้งาน กับบุคคลที่ไม่ต้องการให้เข้าใช้งาน, กำหนด สิทธิ์การเข้าถึง object ให้กับ user ได้, กำหนด พฤติกรรมการใช้งานได้ เพื่อความ ปลอดภัย ของข้อมูล เราต้อง enable […]

Oracle Data Pump (expdp, impdp) in Oracle Database 10g onward

Before export or import, You have to create a directory for an object, it can access. The directory object is only a pointer to a physical directory, creating it does not actually create the physical directory on the file system of the database server. A data pump is a logical Backup, You can back up […]

Enable/Disable Archive Log Mode on Oracle Database 10g/11g

How are we choosing to enable or disable archivelog Archivelog Mode You can perform a backup when the database is online(Hot backup) and the database is offline(Cold Backup) that means if You see a problems or disasters something with your database then you’ll have the copy data and archive the log file to recover a […]

error: Content is protected !!