How to stop a job scheduled in DBMS_SCHEDULER?
Using sys.dbms_scheduler.STOP_JOB one can stop scheduled job. SQL> exec sys.dbms_scheduler.STOP_JOB(job_name=>'SYS.ORA$AT_OS_OPT_SY_12856', force=>true); Output: PL/SQL procedure successfully...
View ArticleHow to see the oldest flashback available?
Using the following query one can see the flashback data available. SELECT to_char(sysdate,'YYYY-MM-DD HH24:MI') current_time, to_char(f.oldest_flashback_time, 'YYYY-MM-DD HH24:MI')...
View ArticleHow to trace a running process?
Using strace one can trace the system calls being executed by a running process. To stop the strace press control-C To display the system calls being executed $ strace -p <pid> or To display a...
View ArticleExample shows how “DISABLE TABLE LOCK” works
Following example shows what happens when locks are disabled on the TABLE. -- disable lock on a table SQL> alter table t disable table lock; Table altered. -- shows one can’t drop table as table...
View ArticleExample of using sql profile to use switch to a different execution plan
Below are the 2 SQL statements, the first one uses the index AAA_IDX and then second one does a full table scan and in this case we want to make the first one that uses the index use the same execution...
View ArticleHow to see current utilization of processes/sessions and max utilization?
Using the following SQL one can find the current number of processes and sessions connected and also max utilization so one can check if you need to increase the values of the parameter SQL> select...
View ArticleHow to get dump or list parameters set at session level?
Using oradebug one can get a dump of sessions parameters that are modified at session level, like optimization parameters. SQL> alter session set sql_trace=true; Session altered. SQL> alter...
View ArticleRMAN backup shell script
#!/bin/ksh export ORACLE_HOME=/u01/app/oracle/product/10.2.0.4 export ORACLE_SID=$1 export VDATE=$(date +”%m-%d-%Y_%H-%M-%S”) export BACKUP_LOG_DIR=/u99/dba/scripts/backup/log export...
View ArticleScript to generate tablespace creation DDL
SET SERVEROUTPUT ON SET LINESIZE 100 SET VERIFY OFF SET FEEDBACK OFF SPOOL create_tbs.sql PROMPT DECLARE CURSOR cu_ts IS SELECT * FROM dba_tablespaces a WHERE a.tablespace_name NOT IN...
View ArticleOracle GoldenGate vs. Informatica PWX CDC for Oracle
My Friend Matt has written a good comparison between GoldenGate and Informatica, he should have asked first, as there is no comparison.. :-) Nevertheless, a really good reading and learning....
View ArticleSimple Oracle GoldenGate Monitor Script
#!/usr/bin/ksh ## This is a simple GoldenGate monitor and it only checks for ABENDED and STOP OGG groups ## It does not monitor LAG # constants # ————————————————————————- export...
View ArticleOracle Release Major Enhancements to Oracle GoldenGate 12c
Oracle GoldenGate 12c provides best-of-breed, real-time data integration and heterogeneous database replication. New features include: Migration utility for Oracle Streams: A new migration utility,...
View ArticleInstall Oracle Fusion Middleware for GoldenGate Monitor 12c – PART1
Below are the steps to install the Oracle Fusion Middleware Infrastructure 12c required to install Oracle GoldenGate Monitor Pack 12c. This is PART 1 of a series of articles on how to install the...
View ArticleInstall Oracle GoldenGate Monitor 12c – PART 2
Below are the steps to install the Oracle GoldenGate Monitor Pack 12c. PART 1 Install Fusion Middleware Infrastructure 12c This is PART 2: of a series of articles on how to install the Oracle...
View Article