Pages
Categories
Apex Audit Book review Bugs Character sets Database links Dataguard Email General musings Grid control Installs Linux Materialized views Old Oracle forms Oracle User Group Performance tuning PL/SQL RAC Rman Scripts Security Sharepoint Space Spfile SQL*Net SQL Developer SQL server Stats Uncategorized VMWare 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)
- Oracle User Group (1)
- Performance tuning (18)
- 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 (17)
- VMWare (1)
- Windows (7)
- Wordpress (3)
Archives
- June 2013
- 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
Monthly Archives: March 2009
Oracle Application Server sets NLS_LANG by default
If you don’t specify NLS_LANG in your shell when starting OAS, OAS goes and sets it for you. Fix is to specify NLS_LANG in any OAS startup scripts you use, or edit these files: $ grep -i NLS_LANG $ORACLE_HOME/Apache/Apache/bin/apachectl NLS_LANG=${NLS_LANG=”ENGLISH_UNITED … Continue reading
Posted in Character sets
Leave a comment
Logon Trigger to Capture Session NLS_Territory
You can see your own sessions nls settings select * from nls_session_parameters ; But for other users’ sessions, that information is stored in their own UGA, not accessible outside their session. So if you need to know what their nls … Continue reading
Posted in Character sets
Leave a comment
Introduction to PL/SQL By Example
Here are online course notes, with code examples, for a simple introduction to Oracle’s PL/SQL language. Was originally aimed especially at Infrastructure DBAs, but would be of use to anyone learning PL/SQL.
Posted in PL/SQL
Leave a comment
No www for WordPress
For Apache webservers displaying normal html, adding these lines to file “.htaccess” is a good idea: RewriteEngine On RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] RewriteRule ^(.*)$ http://%1/$1 [R=301,L] Because it will strip out the “www.” from URLs. As recommended at http://no-www.org/ But … Continue reading
Posted in Wordpress
Leave a comment
Howto remove carriage return line feed from SQL Server for displaying in Excel
Use this SQL to remove carriage return line feed from SQL server for displaying in excel: select REPLACE(column_name, CHAR(13) + CHAR(10), ‘, ‘) from table_name ; Based on posts by Aaron Bertrand and David Seruyang.
Posted in Character sets, SQL server
3 Comments
Oracle Installer on Windows crashes without adequate TEMP space
Oracle installer on Windows can fail to run, crashing out without a useful error message. I found fix was to change the temp directories in a command window set temp=d:\junk set tmp=d:\junk and then run the installer (setup.exe) from that … Continue reading
Posted in Installs, Windows
Leave a comment
Fix for windows ftp filling up c: drive space
Windows ftp can fill up C: drive. This happens either putting or getting files, even if you try putting/getting them to a drive other than C:. This happens because the ftp file is written to temporary area first by ftp, … Continue reading
Posted in Installs, Windows
2 Comments
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
extent management local autoallocate sizes
Here is the algorithim for calculating next extent sizes with a system managed/autoallocate exten management local tablespace. The dependency is with the current segment size. Segment Size Next Extent Size less than 1m 64k 1m to 63m 1m 64m to … Continue reading
Posted in Space
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