I'm Top Oracle DBA

Category Archives: Script

Monitoring essential tasks for multiple Oracle on a single server

Shell scripts are commonly used for automating repetitive tasks, managing system configurations, and executing sequences of commands. learning shell scripts is particularly advantageous in this situation. Here’s a straightforward method I used to monitor multiple databases simultaneously as part of my daily routine before commencing morning work. It involves utilizing shell scripts that I created!  […]

Step by Step to Open Physical Standby on Oracle Database 11G

This article shows how to open a database on Physical Standby (Read only with Apply or Active Data Guard) On Physical Standby SQL> archive log list Database log mode Archive Mode Automatic archival Enabled Archive destination /home/oracle/arch Oldest online log sequence 64 Next log sequence to archive 0 Current log sequence 64 SQL> select DBID,NAME,LOG_MODE,OPEN_MODE,SWITCHOVER#,DATABASE_ROLE,SWITCHOVER_STATUS,DATAGUARD_BROKER,GUARD_STATUS,DB_UNIQUE_NAME […]

Step by Step to Switchover on Oracle Database 11G

This article shows the Step of switchover from Physical standby to primary database on Oracle Database 11G. Mention They have downtime actually do at primary first Step Check the archive and role database on both sites (Primary and Standby) Switchover (start with the primary) Test a little bit of Transaction on the New Primary Switchover […]

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

error: Content is protected !!