How to alter the size of a varchar in an existing table?
I have created a table with a column called 'Address 1' and given it the value Varchar2(15) but have since notice when inserting data that it goes over this. How to I go about increasing this value to say, 20 without having to delete the tale and start over again.
Any ideas?
ALTER TABLE <table_name> MODIFY (<column_name> <data_type_and_size>);
Documented at http://tahiti.oracle.com
Demos at http://www.psoug.org/reference/tables.html
In the future make an attempt to look it up in the docs before asking questions about base functionality that has been around for more than 20 years.
Similar Messages
-
How to increase the size of text boxes in FCPX without stretching the text inside?
How to increase the size of text boxes in FCPX without stretching the text inside?
There are two basic Title formats — I should say Layouts — available: Text (plain) and Paragraph. (The plain text version usually does not appear with the blue dot controls — those generally appear for the paragraph type control.)
If the Title is using a Paragraph layout, it's like having a mini version of Text Edit available inside FCPX. You can tell when you click on the text (when the title is selected) -- a rectangle will appear around the text like so:
double clicking on the text will give you the bounds controls which you can use to redefine the text area without distorting the text. Once selected, notice the button that appears in the top right corner of the canvas:
Pressing that will activate the ruler. You can right click on the ruler and add Tab Stops (left, right, center and decimal.)
So if the title uses paragraph formatting, you can create a very WYSIWYG type of display text (use the Text inspector to alter text selections within the paragraph bounds.) -
How to modify the blob size, or how to set the size?
i want to know how to modify the blob size, or how to set the size?
what's the default size of blob?
Thanks in advance.Blob datatype can contain binary data with a maximum size of 4 GB.
when you enter 10kb file, the database will only use 10kb to store the file (depending on block size etc)
if you want to modify the blob size, you may do like this:
SQL> create materialized view t_mv refresh fast on commit
2 as select id, dbms_lob.getlength(x) len from t;
Materialized view created.
SQL> alter table t_mv add constraint t_mv_chk check (len < 100);
Table altered. -
How to reduce the size of exising tablespace?
Hi,
I assigned 2GB dbsize to a tablespace.
Now I would like to reduce the table space to 1GB.
The tablespace used is 60MB.
When I try to reduce the size to 1GB its showing a message as follows.
"ORA-03297: file contains used data beyond requested RESIZE value".
Even I truncated all the data from all tables to which this table space is allocated. However, its not allowing me to resize it.
How can I do this? Is there any other way to do this?
Thank you,
Regards,
Gowtham Sen.You may not be able to reduce the size of your datafile just by truncating tables. It does not matter if it is 9i or 10g. TRUNCATE just resets the high watermark of your tables, it leaves the first extent in place. So if you have tables whose first extents reside in the last part of a datafile you cannot resize it below that level.
See this:
SQL> create tablespace test2 datafile size 10m autoextend off;
Tablespace created.
SQL> create table t1 tablespace test2 as select * from all_objects;
Table created.
SQL> insert into t1 select * from t1;
insert into t1 select * from t1
ERROR at line 1:
ORA-01653: unable to extend table YAS.T1 by 128 in tablespace TEST2
SQL> create table t2(a number) tablespace test2;
Table created.
SQL> r
1 select segment_name,file_id,block_id,blocks from dba_Extents
2* where TABLESPACE_NAME='TEST2'
SEGMENT_NA FILE_ID BLOCK_ID BLOCKS
T1 9 9 8
T1 9 17 8
T1 9 25 8
T1 9 33 8
T1 9 41 8
T1 9 49 8
T1 9 57 8
T1 9 65 8
T1 9 73 8
T1 9 81 8
T1 9 89 8
SEGMENT_NA FILE_ID BLOCK_ID BLOCKS
T1 9 97 8
T1 9 105 8
T1 9 113 8
T1 9 121 8
T1 9 129 8
T1 9 137 128
T1 9 265 128
T1 9 393 128
T1 9 521 128
T1 9 649 128
T1 9 777 128
SEGMENT_NA FILE_ID BLOCK_ID BLOCKS
T1 9 905 128
T1 9 1033 128
T2 9 1161 8As you can see we now have an extent in block 1161 of this datafile.
Let's try to resize it to half.
SQL> select file_name from dba_data_files
2 where TABLESPACE_NAME='TEST2';
FILE_NAME
/disk1/oradata/10G/datafile/o1_mf_test2_3qpzcz0z_.dbf
SQL> alter database datafile '/disk1/oradata/10G/datafile/o1_mf_test2_3qpzcz0z_.dbf' resize 5m;
alter database datafile '/disk1/oradata/10G/datafile/o1_mf_test2_3qpzcz0z_.dbf' resize 5m
ERROR at line 1:
ORA-03297: file contains used data beyond requested RESIZE valueTruncate the tables and try again.
SQL> truncate table t1;
Table truncated.
SQL> truncate table t2;
Table truncated.
SQL> alter database datafile '/disk1/oradata/10G/datafile/o1_mf_test2_3qpzcz0z_.dbf' resize 5m;
alter database datafile '/disk1/oradata/10G/datafile/o1_mf_test2_3qpzcz0z_.dbf' resize 5m
ERROR at line 1:
ORA-03297: file contains used data beyond requested RESIZE valueThe reason is:
SQL> r
1 select segment_name,file_id,block_id,blocks from dba_Extents
2* where TABLESPACE_NAME='TEST2'
SEGMENT_NA FILE_ID BLOCK_ID BLOCKS
T1 9 9 8
T2 9 1161 8We have an extent at block 1161. Because of that we cannot reduce the size to 5M.
Let's move the table and try again.
SQL> alter table t2 move tablespace test2;
Table altered.
SQL> r
1 select segment_name,file_id,block_id,blocks from dba_Extents
2* where TABLESPACE_NAME='TEST2'
SEGMENT_NA FILE_ID BLOCK_ID BLOCKS
T1 9 9 8
T2 9 17 8
SQL> alter database datafile '/disk1/oradata/10G/datafile/o1_mf_test2_3qpzcz0z_.dbf' resize 5m;
Database altered.Message was edited by:
Yas -
How to initilize the size of rows in an jtable in run time
i am trying to retrieve data from a oracle database and display them in an jtable ,but i could not figure out how to increase the size of the table based on the number of records fetched in runtime. i also want to add checkbox for each enrty made in the jtable such that by cheching the box ,i could select the data and process it in futher frames. i use an netbean5 version for design.kindly give me giudence.
Best thing to do is write your own table model and a Cell Renderer for the check box.
Please follow the "How to use tables" tutorial.
http://java.sun.com/docs/books/tutorial/uiswing/components/table.html -
How to restrict the size of folder in KM?
Hi All,
How to restrict the size of folder in KM?
Suppose I allocated 1 personal folder to every SAP KM Folder. Can I restrict the size of folder with do not allowed the uploaded file to be exceeded certain capacity?
Thanks & Regards,
zhixuen.Hi,
Refer this [http://help.sap.com/saphelp_nw70/helpdata/en/62/468698a8e611d5993600508b6b8b11/content.htm]
Also chk.
https://forums.sdn.sap.com/thread.jspa?threadID=80571
https://forums.sdn.sap.com/thread.jspa?threadID=80326
https://forums.sdn.sap.com/thread.jspa?threadID=80145
http://weblogs.sdn.sap.com/pub/wlg/3219
Regards
Baby -
For the life of me, I can't find out what size a photo is in terms of inches or how to change the size of the photo[s] so I can print them. I think I read somewhere to click edit, then click adjust. I don't see anything about re-sizing when I click the adjust tab: only saturation and tint levels. Thank you.
With respect to digital images, there really is no size in inches. The size is given as number of pixels horizontally and vertically. In iPhoto '09 you click the little "i" inthe lower right side of the window and it will display information related to the selected photo, including the pixel dimensions. I do not have iPhoto '11 installed so I don't know if it is the same there.
In some applications, such as preview, it has something additional called Dots per Inch (DPI) which you would think would allow you to convert the pixel dimensions to inches. It is not a real thing, though. The DPI is determined by how large or small you have chosen to print your photo and the capabilities of your printer.
There is also something called Aspect Ratio, which is usually expressed in inches x inches such as 6x9 but that doesn't mean the size on the screen or when printed is 6x9. It is the ratio of the pixel dimensions. When cropping your photos, you will have several standard aspect ratios to choose from plus any custom ones you create.
In iPhoto '09, after you choose Print, in the Print Setting window are the settings for the size you want the photo printed. You want to shoose a setting with the same aspect ratio of your photo. Otherwise, iPhoto will resize and/or crop your photo to fit the size you have chosen. -
How to change the size of control´s prompt?
No matter the size of data to be displayed in the view suface prompt, the controls have the same size.
Does anyone here know how to change the size of control in surface prompt?HI,
In order to change the size of a radio button... one way you may consider is to Customise the Radio Button.
Place a Radio Button (RB) on the FP of a VI, Right-Click the RB > Advanced > Customise...
Click the Mode Button (most Left button) for Edit Mode
Right-click the radio button (the round image) now, you will see a list of actions i.e. Copy to clipboard, import picture ...You will see Four images under the 'Picture Item', those are the images that you will need to replace.
Prepare Four Images of the similar but larger expected size
*** Copy the 1st new image to clipboard. Back to the Picture Item and select 1st image. Then, select Import Picture (to replace the existing image)
Repeat *** for all four images.
Once done, change the mode back to original. Save the *.ctl
You are now ready to use the customised radio button!
Quick sample attached (sorry for the poor images created )
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010
依恩与LabVIEW
LVVILIB.blogspot.com
Attachments:
IFK_RButton_Large.ctl 11 KB -
How to change the size of the titel of a picture in a diashow
please answer the question.
how to change the size and the possition of the titel of a picture in a diashowYou need to select it. Copy that selection to a new layer, and use Free Transform to resize it.
http://www.youtube.com/watch?v=qWpAGmwhllQ
http://www.youtube.com/watch?v=Bi4jJnYLkUA -
How to Change the Size of the Parameter Form in Report6i
hi
Does any one know how to change the size of the "PARAMETER FORM" in Report6i.Hi,
You can change it in the "Parameter Form Window" property of the Report Object.
In the object navigator, select the Report object and open its property palette. Under "Parameter Form Window" you can change the "width" and "height" properties.
Regards,
Siva B -
How to change the size of a particular object in the picture?
How to change the size of a particular object in the picture?
You need to select it. Copy that selection to a new layer, and use Free Transform to resize it.
http://www.youtube.com/watch?v=qWpAGmwhllQ
http://www.youtube.com/watch?v=Bi4jJnYLkUA -
How to get the size of driver[C: or D:]
Hi Friends,
I have a query regarding to java..
I want to get the name of all the drives that r connected to the System including network drives...
and how to get the size of any system drive[For example C: or D: Drive].
I want the output to be displayed like in the following format
Device type size free Usage_Space
for ex.
C: NTFS 37.5Gb 30.5gb 7gb
Output like as linux command df -h
Edited by: KituPrash on Mar 4, 2009 3:29 AMDoes this help for starters?
File[] roots= File.listRoots();
for (int i= 0; i< roots.length; i++)
System.out.println(roots[i]+": "+roots.getTotalSpace());kind regards,
Jos -
How to get the size of physical memory by using system call ?
how to get the size of physical memory by using system call ?What system call can be used for me to get the size of physical memor? thanks.
%vmstat 3
procs memory page disk faults cpu
r b w swap free re mf pi po fr de sr s0 -- -- -- in sy cs us sy id
0 0 0 3025816 994456 4 19 6 0 0 0 0 8 0 0 0 459 253 139 1 1 99
0 0 0 2864688 777408 0 2 0 0 0 0 0 3 0 0 0 428 134 175 0 1 99
0 0 0 2864688 777408 0 0 0 0 0 0 0 7 0 0 0 448 112 166 0 0 100
one interesting observation about vmstat I found out is (mostly on Solaris)
the first line of information always off chart, so I usually do a few interval to get constant result.
if you use linux
just
cat /proc/meminfo -
How to get the size of partition?
The following SQL will get the rows of the fact table & aggregation. But how to get the size (MB) of the partition. select * from $system.discover_partition_stat That should be doable, because in BIDS, we can see the size of a partition, but from which
view we can do that?This is the best bet you have SELECT * FROM SystemRestrictSchema($system.discover_partition_stat ,DATABASE_NAME = 'Adventure Works DW' ,CUBE_NAME = 'Adventure Works' ,MEASURE_GROUP_NAME = 'Internet Sales' ,PARTITION_NAME = 'Internet_Sales_2003') Refer
this article: http://geekswithblogs.net/darrengosbell/archive/2008/12/02/ssas-are-my-aggregations-processed.aspxvinu -
How to get the size of the webpage?
I am designing a program to
analyse the webpage content.
wondering how to get the size of
the webpage including its image's
size and etc. Thanks in advance.As i know , the getContentLength just return
then number of characters of its HTML code.
By knowing the length of the HTML code, is
not possible for me to calculate its download
time... i wonder is there any way to get the
total size of the page including its image size,
applet size, and etc... Thanks : )
Maybe you are looking for
-
Late 2008 Macbook Pro shutting down at 94% while running on the battery
So I called Apple about this issue last week, since I tried calibrating my battery to improve it's health. And when my battery life got down to 94% or lower... my laptop just shut down. For no reason. When I called Apple, the guy I talked to before s
-
How to export and resize in % to disc?
Hi! i have some smart folders of my fav. pics. i want to export them to disc for my mobile devices. the pics have different resolutions. I want to resize them in %. I saw only the option in pixel. do you have any idea? if there is no option in LR, ca
-
Videos start but stop although sound continues
Videos will start along with sound but the video will stop although sound continues.If I move my pointer over the video it will jump to where the progress bar indicates where the video is at it's current playback time.How can I fix this problem?
-
Where is the X1 DVR user manual?
Thanks. I posted another thread on peoples' experience with voice Remote before I saw these recent answers. Hope that's okay. Rick, that's exactly my concern, that I'd go through the trouble to obtain one and find it doesn't do what I need most: Eas
-
Just for the future on the ipad air there seems to be a white screen glitch after a certain amount of use. This needs to be fixed thanks