Archive for the 'Databases' Category

Guru4Pro: Tom Kyte @ Logica

Friday, October 10th, 2008 by Roel

In the afternoon of November 3 Oracle guru Tom Kyte will talk about “11 Things about 11g” at the Logica office in Amstelveen (near Amsterdam). I have attended this presentation at ODTUG this year and I assure you it’s worthwhile! After his presentation Tom will also do an AskTom Live session. So a great opportunity [...]

Popularity: 169 points

APEX application for maintaining personal contracts

Friday, September 19th, 2008 by Jasper

APEX is famous for it’s useful applications, so when the idea poped into my head that I would like to track my personal contracts, APEX was first in line to develop such an application.
The purpose of this app is to be able to track longrunning contracts with their renewalperiods. One month before you should end [...]

Popularity: 217 points

The use of dynamic vs aggregated functions

Wednesday, October 3rd, 2007 by Jasper

An eyeopener for me when constructing sql queries in a complex environment was the use of analytic functions. As appose to aggregated functions, you can use more analytic functions on one table instead of constructing multiple inline views to accomplish “the same”.
For those of you who like to see examples:
select job_id
, sum(salary)
from employees
group by job_id;
has [...]

Popularity: 251 points

I Struck Oil at Miracle Oracle Open World 2007

Tuesday, October 2nd, 2007 by Yuri van Buren

This was my second time at the Miracle Conference at Lalandia in Denmark.
Again it was “power-pact”.
Mogens Norgaard explained that a lot of conferences have about 80% information and only 20% networking possibilities. This conference is different. Mogens managed to increase the 20% networking up to 80% while still remaining 80% of usefull information. The way [...]

Popularity: 301 points

Blogging about 11g - Part 10 - Enhanced Optimizer Statistics Maintenance

Tuesday, September 25th, 2007 by Yuri van Buren

In Oracle 11g you now can modify gather_database_stats default values with set_global_prefs, set_database_prefs, set_schema_prefs, set_table_prefs in the dbms_stats package.
An even greater new feature is that in Oracle Database 11g, you can separate statistic gathering from statistic publishing.
This allows you to control when new statistics are published. Everybody must have run in to this once, [...]

Popularity: 230 points

Blogging about 11g - Part 9 - Password Complexity Checker

Friday, August 31st, 2007 by Yuri van Buren

In Oracle 11g you can enable the built-in Password Complexity Checker function.
Background info can be found in the Database Security Guide.
The Oracle Database provides a sample password verification function in the PL/SQL script UTLPWDMG.SQL
(located in ORACLE_BASE/ORACLE_HOME/RDBMS/ADMIN) that, when enabled, checks whether users are correctly creating or modifying their passwords. The UTLPWDMG.SQL script provides two password [...]

Popularity: 381 points

Blogging about 11g Part 8 - Interval Partitioning

Friday, August 24th, 2007 by Yuri van Buren

DBA’s can finally use the Automatic Interval Partitioning option.
Test steps following the Oracle By Example (OBE) scripts available at
http://otnbeta.us.oracle.com/db11gr1/trng/obes/index.htm:
– create interval partitioned table
create table newsales
( prod_id number(6) not null
, cust_id number not null
, time_id date not null
, channel_id char(1) not null
, promo_id number(6) not null
, quantity_sold number(3) not null
, amount_sold number(10,2) not null
)
partition by range [...]

Popularity: 233 points

Blogging about 11g - Part 5 - SQL Plan Management

Monday, August 20th, 2007 by Yuri van Buren

The new 11g SQL plan management feature enables the optimizer to maintain a history of
execution plans for a SQL statement. Using the execution plan history the optimizer is
able to detect a new plan representing a plan change for a SQL statement. When the
optimizer detects a new plan, it stores the new plan and marks it [...]

Popularity: 211 points

Blogging about 11g - Part 4 - Invisible Indexes

Friday, July 27th, 2007 by Yuri van Buren

The 11g Oracle DBA can now apply an invisible performance patch (an Invisible Index)
on a non-performing query on a production system, without any impact on other queries.
Invisible indexes are not considered by the optimizer. These indexes are only used with a hint.
Here is a demo.
SQL> conn scott/tiger
Connected.
SQL> select * from cat;
TABLE_NAME [...]

Popularity: 181 points

Blogging about 11g - Part 3 - Flashback Data Archive a.k.a. Total Recall

Tuesday, July 24th, 2007 by Yuri van Buren

Flashback Data Archive (track all changes to a record over time).
For flashback data archive you need a tablespace first.
In this demo I have created a tablespace named testarea1
Now I can create a Flashback Archive with:
CREATE FLASHBACK ARCHIVE DEFAULT fla1 TABLESPACE testarea1
QUOTA 10G RETENTION 1 YEAR;
Flashback archive created.
You can Remove the Flashback Archive as well with:
DROP [...]

Popularity: 281 points