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 (11)
- Linux (18)
- Materialized views (3)
- Old (1)
- Oracle forms (4)
- Performance tuning (17)
- PL/SQL (4)
- RAC (7)
- Rman (11)
- Scripts (33)
- Security (3)
- Sharepoint (1)
- Space (6)
- Spfile (2)
- SQL Developer (1)
- SQL server (7)
- SQL*Net (4)
- Stats (4)
- Uncategorized (15)
- Windows (7)
- Wordpress (3)
Archives
- May 2013
- March 2013
- February 2013
- January 2013
- November 2012
- October 2012
- July 2012
- June 2012
- April 2012
- March 2012
- 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
- balram on Oracle Developer Suite 10g 9.0.4.0.1 windows software download media
- tory burch tote sale on Data block corruption cleared with alter system flush buffer_cache
- Bearer of Pain on Oracle Developer Suite 10g 9.0.4.0.1 windows software download media
- Andrew Fraser on Make indexes unusable before big insert
- Jon Adams on Make indexes unusable before big insert
Author Archives: Andrew Fraser
Shrink msdb database SQL Server
Steps to shrink msdb database in SQL Server 2005: T-SQL: truncate table msdb.dbo.log_shipping_monitor_history_detail T-SQL: exec msdb.dbo.sp_purge_jobhistory @oldest_date='2013-02-07T13:55:10'(change date above as required) T-SQL: alter index all on msdb.dbo.sysjobhistory reorganize Management Studio: system databases > msdb > tasks > shrink > databaseOR, … Continue reading
Posted in SQL server
Leave a comment
Study notes crib sheet for exams 70-457 70-458 70-459 MCSE SQL Server 2012
Here is the crib sheet/study notes I used for the three exams: 70-457 Transition your MCTS on SQL Server 2008 to MCSA: SQL Server 2012 – Part 1 70-458 Transition your MCTS on SQL Server 2008 to MCSA: SQL Server … Continue reading
Posted in SQL server
Leave a comment
Angry DBA
Some fun from the Angry DBA site – http://web.archive.org/web/20050206023801/http://www.angrydba.com/ Contents: Why are DBA’s angry? Angry DBA stories Is your DBA angry? Angry DBA Gallery How to make your DBA angry DBA Jokes Are you an angry DBA? The website disappeared … Continue reading
Posted in Uncategorized
Leave a comment
Upgrade rman catalog – no need to upgrade oracle database version
Rman catalog can be upgraded to a higher version than its hosting database oracle version. This is useful if you want to back up new versions of oracle without changing the oracle version on the database used to host the … Continue reading
Posted in Rman
Leave a comment
Patch upgrade Oracle RAC 11.2.0.2 to 11.2.0.3 on linux
I used the steps below to apply patchset 11.2.0.3 to an existing 11.2.0.2 2-node RAC cluster on linux RHEL 5.8 64 bit. Note that GRID_HOME and DB_HOME locations will both be changed as part of this patchset. 0) Download and … Continue reading
Posted in Installs, Linux, RAC
Leave a comment
Fix for ORA-24247 ACL calling Oracle Reports
Found this error on upgrade to 11gR2 trying to call Oracle Reports from within database: ERROR at line 1: ORA-20001: Error for submit_report. Report: ab_batch. Error -29273 ORA-29273: HTTP request failed ORA-06512: at “SYS.UTL_HTTP”, line 1722 ORA-24247: network access denied … Continue reading
Posted in Uncategorized
Leave a comment
List databases using materialized view log
See which remote databases are using a ‘materialized view log’ on source database with: SELECT mview_site , COUNT(*) FROM dba_registered_mviews GROUP BY mview_site ORDER BY 1 ; The snaptime$$ column shows how old the data is in any materialized view … Continue reading
Posted in Materialized views
Leave a comment
RAC 11.2.0.2 Grid install fails on second node until disable virbr0 virtual network
I found I had to disable the virbr0 network interface to get Oracle RAC 11gR2 11.2.0.2 to install correctly (on RHEL 5.8 64 bit 2.6.18-308.el5 with ocfs2). Problem was that root.sh failed on the second node. The error recorded in … Continue reading
Posted in Uncategorized
Leave a comment
Timeout SQL materialized view refresh
Problem today where one hourly cron MV refresh hung (waiting on “SQL*Net message from dblink”), causing the other refreshes to queue up waiting on locks, eventually using up all the session so users got “ORA-00018: maximum number of sessions exceeded” … Continue reading
Posted in Uncategorized
Leave a comment
Convert java dates to oracle sql dates (esp. odm_publicobject createdate)
Java dates are recorded in milliseconds after 01-Jan-1970 00:00:00 GMT. To convert these to oracle dates, use sql like: SELECT TO_DATE(’01-JAN-1970 00:00:00′,’DD-MON-YYYY HH24:MI:SS’) + createdate/(1000*60*60*24) createdate , creator FROM odm_publicobject WHERE TO_DATE(’01-JAN-1970 00:00:00′,’DD-MON-YYYY HH24:MI:SS’) + createdate/(1000*60*60*24) > sysdate – 30 … Continue reading
Posted in Scripts
Leave a comment