Search This Blog

Wednesday, January 18, 2012

Oracle Database User Management.

USER CREATION AND DELETION.

SQL> create user tom identified by jerry
  2  default tablespace users
  3  temporary tablespace temp 
  4  quota 20m on users;

User created.
Read more >>

Oracle Fuzzy Bits.

If there are FUZZY BITS in the datafile header then that means there
may have been writes on the datafile after the last checkpoint.

So, whenever a datafile is opened it is checked for fuzzy bits.
If it is fuzzy then the database checks the checkpoint_change$
column to search the SCN from which the redo logs are to be applied.
Read more >>

Opening a Standby Database For Read Only Access.

Open a standby database for read-only access when
it is currently performing redo apply.

SQL> alter database recover managed standby database cancel;

Database altered.
Read more >>

Gap Detection on Standby Database.

If the primary and standby databases are configured with

FAL_SERVER and FAL_CLIENT

parameters then gaps should not occur.

But still if the gaps occur do the following.


On the standby database.

SQL>  select * from v$archive_gap;

THREAD#   LOW_SEQUENCE#   HIGH_SEQUENCE#
-------   --------------  ---------------
      1               30               40
Read more >>

Oracle 10g Dataguard Failover.

On standby database.

Defer the remote archival destination, since we are not going to
use it.

SQL> alter system set log_archive_dest_state_2 = 'DEFER';

System altered.


Before performing going any furthur transfer all the unapplied
redo data from the primary to standby to reduce data loss.
Read more >>

Oracle 10g Dataguard Switchover.

This article is based on the dataguard tutorial written earlier.

Configure the follwoing parameters on both the databases.

SQL> show parameter fal_server
Read more >>

Friday, January 13, 2012

Oracle Database Online Redo Log Files Management.

Lets check the online redo log configuration. 


SQL> select group#, thread#, sequence#, bytes, members, archived,
 status from v$log;
Read more >>