oracle
Oracle bug announcement - the sky is not falling...
dmann — Tue, 01/17/2012 - 15:43
...well not yet...
An Infoworld article was released today describing an Oracle vulnerability. The SCN space can be exhausted via bugs or attackers exploiting bugs. Metalink doc: 1376995.1 [Bulletin : Information on the System Change Number (SCN) and how it is used in the Oracle Database] covers a technical description for what SCNs are used for.
You can use this query to find out how close you are to the SCN limit. Read more »
New Project: trc2sql.pl - Extract SQL from an Oracle Trace...
dmann — Fri, 10/14/2011 - 16:18
I started a new project for a utility I started writing. It has some basic functionality now but will probably increase in utility int he future.
It is a Perl script that extracts the SQL statements from an Oracle 10046 trace file. This is useful if you need to re-run SQL that was captured during a trace. It also helps reduce the amount of junk you have to slog through if you are interested in
trc2sql.pl - Extract SQL Statements From Oracle 10046 Trace File
-Dave
A complete sandbox installation for VirtualBox... Thanks to Developer Days!
dmann — Thu, 01/27/2011 - 22:21
Did you know... Writing to the alert log?
dmann — Fri, 10/01/2010 - 12:15
dbms_system.ksdwrt(1,'test')
writes to alert log
dbms_system.ksdwrt(2,'test')
writes to session's trace file
dbms_system.ksdwrt(3,'test')
writes to both
see also
dbms_system.ksddt - writes a date-time stamp
dbms_system.ksdind(N) - indents text using ":' characters
Read more » Monitoring Oracle Change Data Capture Queues
dmann — Thu, 07/29/2010 - 12:24
I shared a shell script that will check Oracle CDC Queues to make sure they aren't going stale. If your CDC consumer has not picked up changes in 48-72 hours then something may be wrong. The scripts can be customized to alert at any interval, hopefully this will serve as a good 'nudge' to get you going in the right direction.
Everything you need is here.
If you are an OEM user you can probably grab the SQL I shared and modify it for use with OEM User Defined Metrics or alerting.
-Dave
Unloading data from Oracle?
dmann — Fri, 03/26/2010 - 15:42
Question:
I need to migrate data from Oracle to MySQL quickly (in less than 1 day). What are my options?My answer:
Oracle does not supply an out-of-the-box unload utility. Keep in mind without comprehensive info about your environment (oracle version? server platform? how much data? what datatypes?) everything here is YMMV and you would want to give it a go on your system for performance and timing.Oracle IN Condition and Multi Column Subqueries
dmann — Fri, 02/19/2010 - 15:02
Quickie script to run dbv on your database...
dmann — Fri, 01/22/2010 - 11:49
set head off
set lines 200
set feedback off
set define off
spool dbv.sh
select 'dbv file='||name||' blocksize = '||block_size||
' LOGFILE=FILE-'||FILE#||'.LOG' from v$datafile;
spool off
host chmod 755 dbv.sh
spool dbv_results.log
host ./dbv.sh
spool off
Output will be created as separate log files. You can run it and review results like this:
$ sqlplus "/ as sysdba" @run-dbv.sql
Read more » Recording Oracle System Stats for historical analysis...
dmann — Thu, 12/31/2009 - 14:27
Orion IO Test Tool
dmann — Tue, 12/01/2009 - 22:54
I ran across Orion in a Kevin Closson blog post. From the OTN site:
"ORION (Oracle I/O Calibration Tool) is a standalone tool for calibrating the I/O performance for storage systems that are intended to be used for Oracle databases. The calibration results are useful for understanding the performance capabilities of a storage system, either to uncover issues that would impact the performance of an Oracle database or to size a new database installation. Since ORION is a standalone tool, the user is not required to create and run an Oracle database. " Read more »
