Exforsys

Online Training

Having multiple varchar2 columns in a single table

This is a discussion on Having multiple varchar2 columns in a single table within the Oracle Tutorials forums, part of the Articles and Tutorials category; Hi All, Wanted to know whether we can have multiple varchar2(2000) columns in a single table? I created a ...


Go Back   Exforsys > Articles and Tutorials > Oracle Tutorials

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-31-2005, 10:10 PM
Junior Member
 
Join Date: Jul 2004
Posts: 2
acpreddy
Having multiple varchar2 columns in a single table

Hi All,
Wanted to know whether we can have multiple varchar2(2000) columns in a single table? I created a table which has around 30 columns which are varchar2(2000) columns but some of my senior coleagues told me that we can\'t have as it gives problems if we have large amount of data. But I was not convinced with the answer he gave me but wanted to know from the experts whether it was correct or not. The solution given to me was to split the single table into many tables even though it has one to one relation ship. Can someone explain me how this works? I am writing a J2EE application which requires this. Please provide me the links where it gives me some inofrmation on this. Please respond to this ASAP.

Thanking You,

With Regards,
A.Chandra Prasad Reddy.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-31-2005, 10:59 PM
Senior Member
 
Join Date: Nov 2004
Posts: 175
sanereddy is an unknown quantity at this point
Re:Having multiple varchar2 columns in a single table

Hello there,

I don\'t see any reason for this. Please find out exactly what kind of problems it causes. You can have any number of columns with any length, that\'s why we are using Databases like SQL Server , oracle where you can enable full text searching feature if we have to search in that kind of fields. I am not sure about the reson for splitting the table into 30 columns, all are varchar2 with 2000 lenght, it does not make any sense for me. You can try using Long datatype.

Thanks,

Post edited by: sanereddy, at: 2005/01/31 23:05
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-01-2005, 03:33 PM
Junior Member
 
Join Date: Jul 2004
Posts: 2
acpreddy
Re:Having multiple varchar2 columns in a single table

Hi,
The reason I got from my seniors on this is due to \"row migration or chaining\" in Oracle. I am not sure of that concept but what they told me is like this. Whenever we want to update the table which have many varchar2, then the system will copy that particular row it seems. As the total size for that particular row is more, If the table space / blocks is small or occupied then it will take very long time to update sometimes more than a day it seems. So Inorder to avoid that they asked me to split it up.

Thanking You,

With Regards,
A.Chandra Prasad Reddy
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new questions
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 04:27 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2004 - 2007 Exforsys Inc. All rights reserved.