Monday, May 23, 2011

Location of Alert.log and trace files in Oracle 11g

There are 2 options.

From SQLPlus

Show Parameter dump_dest

Using a Query

select * from v$diag_info

Friday, May 20, 2011

Hindu Trinitiy

ஹிந்து மதத்தின் அடிப்படை கடவுள்கள் மொத்தம் முன்று. சுருக்கமாக மும்மூர்த்திகள்

பிரம்மா: இவரின் தொழில் படைப்பது, இதில் உலகம் முதல் உயிர் வாழும் அணைத்து ஜீவன்களும் அடக்கம்

விஷ்ணு: இவரின் தொழில் காப்பது.

சிவன் : இவரின் தொழில் அழிப்பது.

இதில் ஆச்சிரியம் என்னவென்றால், காக்கும் தொழிலும் , அழிக்கும் தொழிலையும் செய்யும் விஷ்ணுவையும், சிவனையும் வணங்கும் மக்கள், படைக்கும் தொழில் செய்யும் பிரம்மாவை வணங்குவது இல்லை

Types of Land defined in Tamil Literature

முன்னுரை:

பள்ளி நாட்களில் விவரம் தெரிந்தோ தெரியாமலோ படித்த தமிழ் இலக்கியங்கள், செய்யுள்கள், ஹிந்து மத கதைகள் பற்றி ஒரு சிறிய தொகுப்பு.

Tamil literature classifies Land types into 5 types.

நம் தமிழ் இலக்கியத்தில் நிலம் ஐவகைகளாய் பகுக்கப்பட்டுள்ளது. அவை:

குறிஞ்சி :  மலையும் மலை சார்ந்த பகுதிகளும்.
முல்லை: காடும் காடு சார்ந்த பகுதிகளும்.
மருதம்: வயலும் வயல் சார்ந்த பகுதிகளும்.
நெய்தல: கடலும் கடல் சார்ந்த பகுதிகளும்.
பாலை: நீரற்ற வற‌ண்ட பகுதி. உதாரணம்  பாலைவனம்

Tuesday, March 29, 2011

Oracle: How to convert LONG to CLOB

It is very simple to convert a LONG column to CLOB.

Create table test( col1 long);

Alter table test modify col1 clob;

That's it.

Tuesday, March 1, 2011

ORA-30004: when using SYS_CONNECT_BY_PATH function, cannot have seperator as part of column value

SYS_CONNECT_BY_PATH is used in hierarchial queries. It returns the path of column value from a root node

example: SYS_CONNECT_BY_PATH(column_name, '/') where '/' is the seperator.

If the column_name contains the separator character, then you get the above error
"ORA-30004: when using SYS_CONNECT_BY_PATH function, cannot have seperator as part of column value"

In my example below, foldername had values like "Tree for Case/Document". Since the foldername has "/" which matches your seperator, you get the error.

select f.foldername, sys_connect_by_path(f.foldername,'/') dir
from folder f
connect by parentfolderkey = prior folderkey
start with casekey = 7457950


To remove the error, make sure that your seperator is unique, The error disappeared when I replaced the seperator "/" with "//"

select f.foldername, sys_connect_by_path(f.foldername,'//') dir
from folder f
connect by parentfolderkey = prior folderkey
start with casekey = 7457950