Check the latency of an apply process

COLUMN APPLY_NAME HEADING ‘Apply Process|Name’ FORMAT A17 COLUMN LATENCY HEADING ‘Latency|in|Seconds’ FORMAT 999999 COLUMN CREATION HEADING ‘Message Creation’ FORMAT A17 COLUMN LAST_DEQUEUE HEADING ‘Last Dequeue Time’ FORMAT A20 COLUMN DEQUEUED_MESSAGE_NUMBER HEADING ‘Dequeued|Message Number’ FORMAT 99999999999999 SELECT APPLY_NAME,      (DEQUEUE_TIME-DEQUEUED_MESSAGE_CREATE_TIME)*86400 LATENCY,      TO_CHAR(DEQUEUED_MESSAGE_CREATE_TIME,’HH24:MI:SS MM/DD/YY’) CREATION,      TO_CHAR(DEQUEUE_TIME,’HH24:MI:SS MM/DD/YY’) LAST_DEQUEUE,      DEQUEUED_MESSAGE_NUMBER     FROM V$STREAMS_APPLY_READER where…

How to set parameters for streams

Below you can see couple of examples: exec dbms_apply_adm.set_parameter(‘&APPLY_NAME’, ‘disable_on_error’, ‘Y’); exec dbms_apply_adm.set_parameter(‘&APPLY_NAME’,’PARALLELISM’,’1′) exec dbms_capture_adm.set_parameter(‘&CAPTURE_NAME ‘,’_CHECKPOINT_FREQUENCY’,’2000′) BEGIN dbms_capture_adm.set_parameter(capture_name => ‘&CAPTURE_NAME’,                                parameter  => ‘_SGA_SIZE’,                                VALUE      => ‘300’); END; /

Changing SYS Password in Dataguard Environment

If you change SYS password with ALTER USER SYS IDENTIFIED BY NEWPASSWORD on the primary database of a dataguard environment, primary side stops to transfer archivelogs to standby and you will see an error on primary database alertlog file like: —————————————————————— Check that the primary and standby are using a password file and remote_login_passwordfile is…

In how much time will RMAN or Datapump finish the job?

This is how you can see it: RMAN SQL>alter session set nls_date_format=’dd/mm/yy hh24:mi:ss’; SQL>select sid, totalwork, sofar,(sofar/totalwork) * 100 per_done,start_time, sysdate + time_remaining/3600/24 end_at from v$session_longops where totalwork > sofar and lower(opname) not like ‘%aggregate%’ and lower(opname) like ‘rman%’; SID START_TIME        TOTALWORK SOFAR   PER_DONE END_AT —– —————– ———- ———- ———- —————– —————– 491 18/08/10 20:13:45…

CRS-4124: Oracle High Availability Services startup failed.

Some time ago I got the issue from below: Running Oracle 11g root.sh script… The following environment variables are set as: ORACLE_OWNER= oracle ORACLE_HOME= /u01/app/oracle/product/11.2.0/grid Enter the full pathname of the local bin directory: [/usr/local/bin]: The file “dbhome” already exists in /usr/local/bin. Overwrite it? (y/n) [n]: y Copying dbhome to /usr/local/bin … The file “oraenv”…