If you use Oracle Data Guard, you have to check timeliness status every time. The below query will give to timeliness status. The differences between results have to be 1-2 when you use real time apply Data Guard. Otherwise, your Data Guard is not real time and has a problem. Timeliness Status Query SQL> SELECT…
Tag: Oracle Administration
ACL Error Solution in Oracle 11g
Oracle 11g have been used ACL procedure to send smtp e-mail. Default configuration can not send e-mail. You have to create below procedures for complete smtp configuration. I used CONNUSER as ACL connection user and 100.10.10.11 IP address as mail server IP and NOTIFYUSER as user for notification for configuration. You can change this users…
Show Data Files Size in Oracle
If you want to show tablespace and datafile size, you can use below query. Also, you can add to procedure with schedule job for notification as mail. SELECT a.tablespace_name, a.file_name, a.bytes allocated_bytes, b.free_bytes FROM dba_data_files a, (SELECT file_id, SUM(bytes) free_bytes FROM dba_free_space b GROUP BY file_id) b WHERE a.file_id=b.file_id ORDER BY a.tablespace_name;
Copy Backup File from ASM to Local Disk
If you want to migrate backup or archivelog files from asm disks to local disk, you can use below command. But you have to create a directory to migrate backup and this directory owner have to be grid user. Copy File Command [grid ~]# asmcmd ASMCMD> cd FRA/backups ASMCMD> cp mynewbackupname.bck /localdiskpath/mybackup.bck
Oracle 11g Session Timeout Problem
Oracle 11g has a problem that is session timeout problem. You can add a row to sqlnet.ora file and listener.ora file to resolve session timeout problem. sqlnet.ora Note : Add this line to below of sqlnet.ora file. INBOUND_CONNECT_TIMEOUT=3600 listener.ora Note : Add this line to below of listener.ora file. INBOUND_CONNECT_TIMEOUT_LISTENER=3600
Oracle and Grid User bash_profile Example on Linux
bash_profile for Oracle user # .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi # User specific environment and startup programs if [ $USER = “oracle” ]; then if [ $SHELL = “/bin/ksh” ]; then ulimit -p 16384 ulimit -n 65536 else ulimit -u 16384 -n 65536 fi…
Create Oracle Asm Disks on Oracle Linux
I will create three asm disks for GRID, FRA and DATA on Oracle Linux 6.3 on VMware. Asm disks will be GRID sdc, DATA sdd, FRA sde. Partition the Disks List Disks [root@test01 dev]# ls sd* sda sda1 sda2 sdb sdb1 sdc sdd sde For 1. Disk [root@test01 dev]# fdisk /dev/sdc Device contains neither a…