Pages
Categories
Apex Audit Book review Bugs Character sets Database links Dataguard Email General musings Grid control Installs Linux Materialized views Old Oracle forms Performance tuning PL/SQL RAC Rman Scripts Security Sharepoint Space Spfile SQL*Net SQL Developer SQL server Stats Uncategorized Windows WordpressCategories
- Apex (1)
- Audit (1)
- Book review (2)
- Bugs (6)
- Character sets (6)
- Database links (2)
- Dataguard (1)
- Email (3)
- General musings (6)
- Grid control (2)
- Installs (10)
- Linux (16)
- Materialized views (2)
- Old (1)
- Oracle forms (4)
- Performance tuning (17)
- PL/SQL (4)
- RAC (6)
- Rman (10)
- Scripts (29)
- Security (2)
- Sharepoint (1)
- Space (6)
- Spfile (2)
- SQL Developer (1)
- SQL server (5)
- SQL*Net (4)
- Stats (4)
- Uncategorized (6)
- Windows (7)
- Wordpress (3)
Archives
- February 2012
- December 2011
- August 2011
- July 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
- December 2010
- November 2010
- October 2010
- September 2010
- August 2010
- July 2010
- June 2010
- May 2010
- April 2010
- March 2010
- February 2010
- April 2009
- March 2009
- November 2008
- January 2008
- November 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
Recent Comments
- Johnn on Oracle Developer Suite 10g 9.0.4.0.1 windows software download media
- Andrew Fraser on Fix for windows ftp filling up c: drive space
- Alan Beckwith on Fix for windows ftp filling up c: drive space
- ashu on Listener passwords: always for 9i, never for 10g
- xnnc on Oracle Forms Dropdown List Item values populated from database table
Category Archives: Performance tuning
Indexed views – workaround for “Cannot create index on view because it uses a LEFT, RIGHT, or FULL OUTER join, and no OUTER joins are allowed in indexed views. Consider using an INNER join instead.”
Indexed views (the SQL Server equivalent of Oracle’s materialized views) are a good performance fix, especially for reporting and data warehouse systems. However they only work with inner joins. Attempts to create an indexed view with outer joins fail with: … Continue reading
Posted in Performance tuning, SQL server
Leave a comment
sqltrpt readable formatting
Output of sqltrpt is more readable with these settings: set pages 9999 lines 192 col plan_plus_exp form a132 @?/rdbms/admin/sqltrpt
Posted in Performance tuning
Leave a comment
Setting bind variables in sql*plus
variable b1 varchar2(6) ; exec :b1 := ’2009′ Used mainly for sql tuning rather than in real code.
Posted in Performance tuning
Leave a comment
SQL profile drop
If you have accepted a sql profile from a tuning advisor recommandation like: execute dbms_sqltune.accept_sql_profile(task_name => ‘TASK_239607′, replace => TRUE); Then the regression commands to back it out are like: select name from dba_sql_profiles; exec dbms_sqltune.drop_sql_profile(‘MYNAME’)
Posted in Performance tuning
Leave a comment
PLS-00999: implementation restriction (may be temporary) RESULT_CACHE is disallowed on subprograms with OUT or IN OUT parameters
Result cache functions are a good new feature in Oracle 11g, but they only work with normal functions. A function that returns multiple outputs using OUT parameters cannot be made a result cache function, at least not in 11gR1. Attempting … Continue reading
Posted in Performance tuning, PL/SQL
Leave a comment
Automatic gather stats job
check it is on with: select state, last_start_date from dba_scheduler_jobs where job_name = ‘GATHER_STATS_JOB’ ; Switch it on and off with: exec dbms_scheduler.disable(‘GATHER_STATS_JOB’) exec dbms_scheduler.enable(‘GATHER_STATS_JOB’)
Posted in Performance tuning, Stats
Leave a comment
Oracle Performance Tuning Notes
Click for the Course notes with scripts for a 3 day performance tuning course I did recently.
Posted in Performance tuning
Leave a comment
schema moves by the magic of partition exchange
Here’s an example of how to use partition exchange to move partitions or even entire unpartitioned tables from one schema to another. Is mean to be very fast and generate very little redo. Even more so if the partitions and … Continue reading
Posted in Performance tuning, Scripts, Space
1 Comment
Use Foreign Key constraints with “on delete cascade” option for fast automated delete of child records
Here is a demo example. 1) Set up example tables: CREATE TABLE parent ( parent_id number(10) not null, CONSTRAINT parent_pk PRIMARY KEY (parent_id) ); CREATE TABLE child ( child_id numeric(10) not null, parent_id numeric(10) not null, CONSTRAINT fk_child FOREIGN KEY … Continue reading
Posted in Performance tuning
Leave a comment
Cache LOBs for Better Performance
LOBs generally(*) perform better if cached – that is, stored in the database buffer cache. However, that is not switched on by default. To change a lob to be cached: alter table mytable modify lob (mycolumn) (cache) ; To set … Continue reading
Posted in Performance tuning
Leave a comment