Space in the Table
Hi all,
I'm new to Oracle i needed to know incase in a column for names which can be null how do i know how many entries are there with only spaces inserted into the table...
If you want to find rows where some column contains only spaces, how about:
WHERE somecolumn IS NOT NULL
AND RTRIM(somecolumn) IS NULLor from 10g onwards,
WHERE REGEXP_LIKE(somecolumn, '^ *$')
Similar Messages
-
How to remove space below the table in smartforms
how to remove space below the table in smartforms
maintain a loop counter for item say count
and in text editer write
if count > 6
new-page.
endif. -
Need to minimize the space in the tables, Help?
Hi
I am designing a website for a family friends Company, running off a small template edited the hell out of the logos etc;
now i need less space between the topheader with the frog and thebottom footer.
I dont have much expirence with tables with website design and thats what this template is designed under.
can anyone help me with these damn tables??
Template Link : http://members.iinet.net.au/~brodie.botto/Templates/index.dwt
Site Link http://members.iinet.net.au/~brodie.botto/
BrodieG'day Brodie
Please copy and paste the following markup into a new document and view in your favourite browser.
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
<style>
body {
width: 978px;
margin: auto;
.header {
background: url(http://members.iinet.net.au/%7Ebrodie.botto/images/01_company_02.jpg) no-repeat;
height: 125px;
margin-top: 50px;
.header img {
float: right;
.article {
padding: 20px;
.footer {
height: 123px;
</style>
</head>
<body>
<div class="header">
<img src="http://members.iinet.net.au/~brodie.botto/images/01_company_03.jpg" alt="MenuBar">
</div>
<div class="banner">
<img src="http://members.iinet.net.au/~brodie.botto/images/01_company_05.jpg" alt="Regent Cleaning Chemicals">
</div>
<div class="article">
<h2>Heading</h2>
<p>Exploiting the productive lifecycle building flexibility through spreading knowledge and self-organization, the strategic vision - if indeed there be one - is required to identify. Whether the organization's core competences are fully in line, given market realities an important ingredient of business process reengineering maximization of shareholder wealth through separation of ownership from management. To experience a profound paradigm shift, to focus on improvement, not cost, quantitative analysis of all the key ratios has a vital role to play in this. As knowledge is fragmented into specialities by moving executive focus from lag financial indicators to more actionable lead indicators, that will indubitably lay the firm foundations for any leading company.</p>
<p>Working through a top-down, bottom-up approach, the strategic vision - if indeed there be one - is required to identify quantitative analysis of all the key ratios has a vital role to play in this. Whenever single-loop learning strategies go wrong, presentation of the process flow should culminate in idea generation, the three cs - customers, competition and change - have created a new world for business. Through the adoption of a proactive stance, the astute manager can adopt a position at the vanguard. Working through a top-down, bottom-up approach, empowerment of all personnel, not just key operatives, the strategic vision - if indeed there be one - is required to identify.</p>
</div>
<div class="footer">
<img src="http://members.iinet.net.au/~brodie.botto/images/index_130.jpg" alt="footer">
</div>
</body>
</html>
Then chuck the template that you have been using.
Gramps
Carn the Pies -
I was writing a program to move data from an Access database on to a different database.
The existing access data base has table names with spaces and SQL queries do not recognize such names! Any suggestions?i think single quotes ' is the generally accepted way
of doing this. [] may work in access but other
databases not so well.Not at all!
Single quotes are used to identify string literals inside a SQL statement. The double quotes are used to quote object names which either contain special characters (e.g. spaces) or would otherwise be rejected because they are reserved words (e.g. using SELECT as a column name only works with double quotes).
Thomas -
Error while adding space to the table space
HI Gurus
Can you please put some light on the error which i encountered while adding space to a tablespace
ALTER TABLESPACE "GISR_NDEX" ADD DATAFILE '+DATA2' SIZE 2G;
ALTER TABLESPACE "GISR_INDEX" ADD DATAFILE '+DATA2' SIZE 2G
ERROR at line 1:
ORA-01119: error in creating database file '+DATA2'
ORA-17502: ksfdcre:4 Failed to create file +DATA2
ORA-15041: diskgroup space exhausted
Any suggestion is highly apprciated .
ThanksHello;
The "diskgroup space exhausted" is key.
Try creating smaller files or adding disk space.
ASM Disk Group Unbalanced :
http://surachartopun.com/2010/03/ora-15041-asm-disk-group-unbalanced.html
Best Regards
mseberg -
Need help regarding space in the table . . .
Hi Everyone,
I am applying 'list' in text in a html page. Every thing is
fine, however,
when I am applying 'list' to the text in a table, line looks
double spaced,
please see the link below.
http://www.ansgw.com/test/tvag-860-60if.htm
Please advise.
I appreciate your support.
Regards,
KhurramWell, uhh, that's invalid.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"jeremyluby" <[email protected]> wrote in
message
news:e7rqh2$ac8$[email protected]..
> Your problem is that each LI is within a TD tag and the
td is providing
> the
> padding to each of the elements. You can take care of
this by creating a
> style
> and applying that to the which will suppress the
padding.
> -
How to calculate the percentage of free space for a table in Oracle
okay, I am a little confused here. I have been searching the web and looking at a lot of documents. What I basically want to find out is this, how do I calculate the difference between the number of bytes a table is using and the total bytes allocated to a table space (going that way to get percent free for a particular table). So I need a byte count of a table and total table space and the percentage difference. I have been looking at the DBA_TABLES DBA_TABLESPACES and DBA_SEGMENTS views. I have tried to calculated the space as num_rows * avg_row_len (if I am wrong, let me know). I have been trying to compare that calculation to the number in DBA_TABLESPACES and DBA_SEGMENTS. I am just looking for the total space allocated to the table space that the table sits in (seem logical right now) to make the percentage value work. Thus I want to be able to track the table as it grows as compated to the table space it sits in to see a value as it changes over time (days, weeks, etc.) each time I run this script I am working on.
Can someone get me straight and help me to find out if I am looking in the right places. Any advice would help.
EdwardYou can use a little modified version of dbms_space from Tom, show_space. Have a look,
SQL> create table test222 as select * from all_objects;
Table created.
SQL> delete from test22 where rownum<=100;
delete from test22 where rownum<=100
ERROR at line 1:
ORA-00942: table or view does not exist
SQL> delete from test222 where rownum<=100;
100 rows deleted.
SQL> analyze table test222 compute statistics;
Table analyzed.
SQL> create or replace procedure show_space
2 ( p_segname in varchar2,
3 p_owner in varchar2 default user,
4 p_type in varchar2 default 'TABLE',
5 p_partition in varchar2 default NULL )
6 -- this procedure uses authid current user so it can query DBA_*
7 -- views using privileges from a ROLE and so it can be installed
8 -- once per database, instead of once per user that wanted to use it
9 authid current_user
10 as
11 l_free_blks number;
12 l_total_blocks number;
13 l_total_bytes number;
14 l_unused_blocks number;
15 l_unused_bytes number;
16 l_LastUsedExtFileId number;
17 l_LastUsedExtBlockId number;
18 l_LAST_USED_BLOCK number;
19 l_segment_space_mgmt varchar2(255);
20 l_unformatted_blocks number;
21 l_unformatted_bytes number;
22 l_fs1_blocks number; l_fs1_bytes number;
23 l_fs2_blocks number; l_fs2_bytes number;
24 l_fs3_blocks number; l_fs3_bytes number;
25 l_fs4_blocks number; l_fs4_bytes number;
26 l_full_blocks number; l_full_bytes number;
27
28 -- inline procedure to print out numbers nicely formatted
29 -- with a simple label
30 procedure p( p_label in varchar2, p_num in number )
31 is
32 begin
33 dbms_output.put_line( rpad(p_label,40,'.') ||
34 to_char(p_num,'999,999,999,999') );
35 end;
36 begin
37 -- this query is executed dynamically in order to allow this procedure
38 -- to be created by a user who has access to DBA_SEGMENTS/TABLESPACES
39 -- via a role as is customary.
40 -- NOTE: at runtime, the invoker MUST have access to these two
41 -- views!
42 -- this query determines if the object is a ASSM object or not
43 begin
44 execute immediate
45 'select ts.segment_space_management
46 from dba_segments seg, dba_tablespaces ts
47 where seg.segment_name = :p_segname
48 and (:p_partition is null or
49 seg.partition_name = :p_partition)
50 and seg.owner = :p_owner
51 and seg.tablespace_name = ts.tablespace_name'
52 into l_segment_space_mgmt
53 using p_segname, p_partition, p_partition, p_owner;
54 exception
55 when too_many_rows then
56 dbms_output.put_line
57 ( 'This must be a partitioned table, use p_partition => ');
58 return;
59 end;
60
61
62 -- if the object is in an ASSM tablespace, we must use this API
63 -- call to get space information, else we use the FREE_BLOCKS
64 -- API for the user managed segments
65 if l_segment_space_mgmt = 'AUTO'
66 then
67 dbms_space.space_usage
68 ( p_owner, p_segname, p_type, l_unformatted_blocks,
69 l_unformatted_bytes, l_fs1_blocks, l_fs1_bytes,
70 l_fs2_blocks, l_fs2_bytes, l_fs3_blocks, l_fs3_bytes,
71 l_fs4_blocks, l_fs4_bytes, l_full_blocks, l_full_bytes, p_partition);
72
73 p( 'Unformatted Blocks ', l_unformatted_blocks );
74 p( 'FS1 Blocks (0-25) ', l_fs1_blocks );
75 p( 'FS2 Blocks (25-50) ', l_fs2_blocks );
76 p( 'FS3 Blocks (50-75) ', l_fs3_blocks );
77 p( 'FS4 Blocks (75-100)', l_fs4_blocks );
78 p( 'Full Blocks ', l_full_blocks );
79 else
80 dbms_space.free_blocks(
81 segment_owner => p_owner,
82 segment_name => p_segname,
83 segment_type => p_type,
84 freelist_group_id => 0,
85 free_blks => l_free_blks);
86
87 p( 'Free Blocks', l_free_blks );
88 end if;
89
90 -- and then the unused space API call to get the rest of the
91 -- information
92 dbms_space.unused_space
93 ( segment_owner => p_owner,
94 segment_name => p_segname,
95 segment_type => p_type,
96 partition_name => p_partition,
97 total_blocks => l_total_blocks,
98 total_bytes => l_total_bytes,
99 unused_blocks => l_unused_blocks,
100 unused_bytes => l_unused_bytes,
101 LAST_USED_EXTENT_FILE_ID => l_LastUsedExtFileId,
102 LAST_USED_EXTENT_BLOCK_ID => l_LastUsedExtBlockId,
103 LAST_USED_BLOCK => l_LAST_USED_BLOCK );
104
105 p( 'Total Blocks', l_total_blocks );
106 p( 'Total Bytes', l_total_bytes );
107 p( 'Total MBytes', trunc(l_total_bytes/1024/1024) );
108 p( 'Unused Blocks', l_unused_blocks );
109 p( 'Unused Bytes', l_unused_bytes );
110 p( 'Last Used Ext FileId', l_LastUsedExtFileId );
111 p( 'Last Used Ext BlockId', l_LastUsedExtBlockId );
112 p( 'Last Used Block', l_LAST_USED_BLOCK );
113 end;
114
115 /
Procedure created.
SQL> desc show_space
PROCEDURE show_space
Argument Name Type In/Out Default?
P_SEGNAME VARCHAR2 IN
P_OWNER VARCHAR2 IN DEFAULT
P_TYPE VARCHAR2 IN DEFAULT
P_PARTITION VARCHAR2 IN DEFAULT
SQL> set serveroutput on
SQL> exec show_space('TEST222','SCOTT');
BEGIN show_space('TEST222','SCOTT'); END;
ERROR at line 1:
ORA-00942: table or view does not exist
ORA-06512: at "SCOTT.SHOW_SPACE", line 44
ORA-06512: at line 1
SQL> conn / as sysdba
Connected.
SQL> grant sysdba to scott;
Grant succeeded.
SQL> conn scott/tiger as sysdba
Connected.
SQL> exec show_space('TEST222','SCOTT');
BEGIN show_space('TEST222','SCOTT'); END;
ERROR at line 1:
ORA-06550: line 1, column 7:
PLS-00201: identifier 'SHOW_SPACE' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
SQL> exec scott.show_space('TEST222','SCOTT');
PL/SQL procedure successfully completed.
SQL> set serveroutput on
SQL> exec scott.show_space('TEST222','SCOTT');
Unformatted Blocks ..................... 0
FS1 Blocks (0-25) ..................... 0
FS2 Blocks (25-50) ..................... 1
FS3 Blocks (50-75) ..................... 0
FS4 Blocks (75-100)..................... 1
Full Blocks ..................... 807
Total Blocks............................ 896
Total Bytes............................. 7,340,032
Total MBytes............................ 7
Unused Blocks........................... 65
Unused Bytes............................ 532,480
Last Used Ext FileId.................... 4
Last Used Ext BlockId................... 1,289
Last Used Block......................... 63
PL/SQL procedure successfully completed.
SQL>http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:5350053031470
I use this to find the space allocations.
Just read your post again,this is not going to show you the percentage of the free/used space. This is going to be the number of blocks which are free/used. For the growth trend, you can look at (in 10g) Oracle EM. It has added now,Segment Growth Trend report which can show you for each object,comparing to the allocated space to the object,how much space is being used by it.
HTH
Aman.... -
How can I create an internal space from the border in every cell in a table?
How can I create an space between the text contents and the border inside in every cell in a table in Pages?
Change the Inset margin in the Inspector palette > T tab > Text
-
How to create a table with the spaces between the row..
Hello,
I am using jdev 11.1.1.6 and I need to insert the spaces between the rows. How this can be done?
Thanks and Regards,
Tarun AgrawalHi Tarun,
This css rule is useful to set the padding on each cell:
.AFTableCellPadding:alias {
padding: 10px 0px 10px 0px;
}But if you want to insert a real space between the rows (property "cellspacing") you can do something like this:
af|table > div + div > table {
border-collapse: separate;
border-spacing: 0px 5px;
}AP -
How can I add dots after text to fill the remaining space in a table cell?
What is the most efficient way to add dots after text to fill the remaining space in a table cell? I know it is possible using tabs but is this possible using a table?
You can put a tab inside a table cell using Option+Tab
Then just set the right-aligned tab stop and the right edge of the table cell and add the leader. -
Space is not released after truncating the table
Team,
We have a table of size 550gigs in size and we truncated the table , truncated sucessfully but space is not released in os level, what action we can take to release the space and this table has only one row and contains the binary data.
Thanks
PGRTeam,
We have a table of size 550gigs in size and we truncated the table , truncated sucessfully but space is not released in os level, what action we can take to release the space and this table has only one row and contains the binary data.
Thanks
PGR
Hello,
Yes space wont be released immediately .If large extents are in picture which I assume is your case it goes into deferred drop a background process which will execute after some time( time may vary).See below link for details.
As per BOL if extents are more than 128 it goes in deferred drop.
http://msdn.microsoft.com/en-us/library/ms177495.aspx
You should wait for some time .keep checking the free space
Below discussion will surely help you in understanding.See Jonathan's reply
http://social.msdn.microsoft.com/Forums/en-US/4aa2537e-246b-4bfe-818d-3482531d9149/sql-server-2005-massive-400gb-table-dropped-space-not-released
Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers -
Detemining the free space for each tables before Archiving an object.
Hi Everyone,
I want to know,how can i get the information about the how much space will get free from each table which is related to an archiving object <b>before</b> i perform
archiving on that particular object.
Are there any transactions for the same, or some transaction which can be related to these.
eg:FI_DOCUMNT is related to lots of table, before i archive this object, i want to know that space that will be free from all the tables individually which are affected by this object.
Regards,
Nipun SharmaHi Nipun,
as far as I know: there is no easy tool to get this numbers. But on the other hand, you don't need exact numbers, estimations will do.
It's a good idea to start with the biggest objects: take DB02, make a detailed analysis where you select the biggest tables -> corresponding archive objects should be your main focus (for the beginning).
Count for the biggest tables in each objects the entries per year (or month, whatever periods you are interested in). Most tables have creation date to do so, otherwise go for number range. For some numbers you could search the creation date, the rest is estimation again.
Then you will have an idea, which volume was created in which time frame.
Still you need some test archive runs (in PRD or an (old) copy, at least for an example amount of data): you need to know, which % of the documents can technically be archived, how much will stay open because of missing closing. That's critical information (maybe 90% will stay in system) and can only be analyzed by SARA test runs - if you identify the missing object status, you can go on selecting this directly, but in the beginning you need the archive run.
With the volume / time frame and the percentage, which can be deleted you should be able to give estimations based on current total object size. Make clear, that you talk about estimations: every single object will be checked for having correct status - before this isn't done (in a test run), no one can tell exact numbers.
Hope, this will help you,
regards,
Christian -
Unable to extend the table space
Hi Experts
When i am extending the table space i am getting this error
BR1059E Not enough free space in /oracle/SHD/sapdata3/sr3700_20 for maximum size
of file /oracle/SHD/sapdata3/sr3700_20/sr3700.data20, missing at least 491.556
MB
but when i checked the space, space is available
/dev/vg01/lvol16 41943040 34863437 6637129 84% /oracle/SHD/sapdata4
/dev/vg01/lvol15 41943040 37013805 4621160 89% /oracle/SHD/sapdata3
/dev/vg01/lvol14 41943040 31803117 9506180 77% /oracle/SHD/sapdata2
/dev/vg01/lvol13 31457280 28486427 2785176 91% /oracle/SHD/sapdata1
i am unable to extend the table space. Please help me
Thanks & Regards
VenkatHi Venkat,
Please try to disable the autoextend, in the brspace screen first you make off for autoextend then you try to extend the space.
Definetly it will work. I have faced same problem earlier.
Please let me know still if you have any problem for extending.
Thanks
Kishore -
How to manage the space between a table and its title?
Have tables where titles are very close to the main text and need a couple of points to separate these elements. How to reshape this space?
1. Titles were separated by a return that is not visible... (any code is revealed by ID)
2. When a Return is inserted after the title, nothing happens aparently, but this return is now visible and could be used as a «paragraph space after» value:
3. A solution could be Grep to catch the end of paragraph assigned to titles to insert a return;
but Grep only catches the right border of the table (the yellow mark shows the big blinking cursor);
Grep cannot see the end of paragraph in the tables's title.
It another method?
Basically, how to modify the space between a table and ists titleI think you and Bob are not in synch here.
Bob suggested that you could use paragraph spacing, but for that to work you do need to use separate paragraphs for the title and table, which you don't seem to be doing. Using GREP to find the end of the paragraph only works if there IS and end to the paragraph. As far as I know there is now meta-character to use in Find/Change that would allow you to find a table and insert a paragraph break ahead of it, but I bet it could be scripted.
I'm not quite sure what you were trying to find in the GREP you posted. Did you actually have a paragraph return inserted already after the title? In that case you only need to redefine the style for that paragraph to add the space (or redefine the style for the paragraph that holds the table itself). You don't need the GREP. But the reason it does nothing is that you've found a location -- the end of the paragraph, but haven't found any actual text to modify. To do anything you would need to use something like .$
But back to NOT having a separate paragraph... If you put the cursor in any table cell and go to Table Options > Table Setup tab you'll see fields to set space before and after the table that should do what you want. That was the second part of what he posted. -
How to increase the table space for a particular table?
Hi Friends,
I want to know how to increase the table space for a particular table and how to check the table space size of a particular table. Please can any one send the SQL Script. I am very much poor in DBA Part.
Thanking You ..
KiranKiran - you should post this question on the SQL/Database forums - this is a Forms specific forum...
Regards
Grant Ronald
Forms PRoduct Management
Maybe you are looking for
-
Can I use an Apple Gift Card to buy a Photo Book from iPhoto
Is it possible to use an Apple Gift Card to buy a Photo Book that was created in iPhoto '11?
-
Looking for recommendations - iCal substitution (different calendar or task manager app)
Hello everyone, for some time I'm looking for iCal substitution/replacement. I'm looking for a multiplatform solution (idealy OS X / iOS / Win). I'm a head of small team (5 subordinates) and iCal no longer suits me. I'm looking for a task manager or
-
Dual 9800GTX+'s not working
Ok I am running XP x64 SP2 with the Speedster w/o a on-board video, Updated BIOS to the BIOS the allows dual Quad Cores. I have 2 NVIDIA 9800 GTX+'s and I have them installed in both PCI-E slots. Now I am unable to get the other card to even be see
-
I have a new iPad. When it is in VERTICAL position, the swipe on a multi-page PDF file works perfectly. Right to left, left to right. However, when the iPad is HORIZONTAL position, the swipe only works when swiping left to right. Going from page 1 to
-
SSIS Upsert Primary Key Violation error
Hello, I created an SSIS package with look up transform. My source is OLE DB Source and destination is OLEDB destination with Lookup no match output and OLEDB command with Lookup match output. I am inserting data in destination database if records do