How to serach most fragmented tables in database(10g)
How to serach most fragmented tables in database(10g) and query
I mean
Most DML operations happened(mainly deletion ) by
which HWM is set for the table. I know by rebuilding
table segment can be compressed and we ggain free
space in tablespace too.OK, but to what end do you gain that free space in the tablespace? Say you had a table of 1,000,000 rows, and you deleted 900,000 of those rows, emptying out 'x' of 'y' extents. If you would expect the table to again grow to 1,000,000 rows (not an unreasonable assumption) then you will just need to reclaim again (by grabbing new extents) the space you freed up with your reorg.
Similar Messages
-
How to get a list of most fragmented tables in Oracle?
Is there an SQL on how to get a list of most fragmented tables in Oracle DBMS?
Thanks! I would just like to ask you, what do the negative values mean in wasted space?
Is there an easy way to improve defragmentation state?
TABLE NAME SIZE ACTUAL DATA WASTER SPACE
TREE 0 0 0
GC_S 3744 4651.9 -907.9
TRAIL 104 113.04 -9.04
ASSOCIATION_RULES 272 353 -81
ATTRIBUTES 1728 2528.12 -800.12
AUDITACTION 128 208.48 -80.48
DV 18608 36266.47 -17658.47
S134 728 903.08 -175.08
A178 344 518.75 -174.75
S129 728 896.48 -168.48
AGS_NODES 2864 4510.33 -1646.33
S149 472 633.79 -161.79
S127 728 871.62 -143.62
tu 2232 3619.76 -1387.76
PCd_DATA 3112 4371.75 -1259.75 -
How I enable network service of Oracle database 10g XE ?
Hi,
How I enable network service of Oracle database 10g XE ?
Following error occurs when printing:
ORA-20001: The printing engine could not be reached because either
the URL specified is incorrect or a proxy URL needs to be specified.ORA-20001 is a user defined error. So you will have to find out where it comes from.
Regards
Marcus -
How to attach a text table to database table
How to attach a text table to another database table,
Ex: If we check Mara table and GoTO menu select text table it is displaying MAKT table, how to link that?create another table with foriegn key relation with the key field and in the check table give the primary key table and in the text table include sparas field.
JUAT SAME AS CREATING ANOTHER TABLE WITH FORIEGN KEY RELATION but THE ANOTHER TABLE INCLUDES SPRAS (LANGUAGE KEY)
A text table is a table that contains spoken-language descriptions of values in a check table. These descriptions are stored in multiple languages. The primary key of the text table is the same as the primary key of the check table, with the addition of a spras (language) column.
For example, the ztxt005 table has country codes in it. Country names are stored in a separate table named ztxt005t (shown in Figure 4.7) because you actually need many names for one country code. Because it stores language-specific descriptions of a generalized code, ztxt005t is called a text table.
The primary key of ztxt005t contains the same fields as the primary key of ztxt005, with the addition of a spras (language) column. The spras field contains the language code and enables this table to contain a description for multiple logon languages.
The primary key of any text table is composed of the fields mandt and spras, followed by the validation field (or fields). One or more description fields follow this primary key.
A foreign key relationship is defined on ztxt005t-land1 to check table ztxt005. The foreign key field type should be key fields of a text table. -
How to call web services from oracle database 10g
Hi all ,
How can i call web services from oracle database 10g ?
thanks ...abdou123 wrote:
but how can i get complex result
for example
i pass input parameter like National Id Number
and get the person details ( name , age , date of birth , ............ ) .Basic approach to web services using UTL_HTTP explained in {message:id=10448611}.
An example of using a pipeline table function as a data transformation process (turning web data into rows and columns) in {message:id=10158148}. -
How to start another instance in oracle database 10g
Hi,
i have created another database on linux Enterprise Server 5 with SID name "rmann". after database is created the address is "http://linux:5500/em"
Now after that i run the address link it works fine. but when i restarted the computer run the address link http://linux:5500/em doen't run.
So how i can run the new address link
Thanks
SohailSohail wrote:
Hi,
i have created another database on linux Enterprise Server 5 with SID name "rmann". after database is created the address is "http://linux:5500/em"
Now after that i run the address link it works fine. but when i restarted the computer run the address link http://linux:5500/em doen't run.
So how i can run the new address link You mean that after the restart of teh machine, EM doesn't work? Did you check that whether the service of the EM is running or not?
emctl status dbconsoleIf it shows that the EM is not running then you must start teh service using,
emctl start dbconsoleAnd also check that you are not using DHCP, in case of which EM would keep on crashing since the IP would be changed all the time. For this, you must ensure that you configured EM using a static IP only.
HTH
Aman.... -
How to create an editable table in ADF 10g??
Hi,
I want to create a editable table using the Jdev 10g.. so that i can do read and write on the table. Can anyone tell me how i can create it...
thanks in advanceHi,
using ADF BC and ADF, one of the options when dragging a ViewObject from the data control palette is ADF Table. This creates an updateable table
Frank -
How to export data within tables in Oracle 10g
Since I'm using Oracle 10g, thus I wanted to know that do I have the option for exporting data from one table to another or exporting the whole table to some another databases like SQL Server or any other database.
There are several options, each has different advantages and disadvantages. When both source and target are Oracle;
1. you can use database links across databases -
http://psoug.org/reference/db_link.html
2. you can unload to external tables after 10g and load from external table -
http://tonguc.wordpress.com/2007/08/09/unload-data-with-external-tables-and-data-pump/
3. you can use data pump(expdp/impdp) after 10g -
http://psoug.org/reference/datapump.html
http://psoug.org/reference/dbms_datapump.html
4. you can use traditional export(exp) and import(imp) -
http://psoug.org/reference/export.html
http://psoug.org/reference/import.html
5. you can unload to text with an unloader and use sql*loader to load -
http://tonguc.wordpress.com/2007/09/02/announcement-of-a-new-product-ubsql-from-ubtools/
http://asktom.oracle.com/tkyte/flat/
http://psoug.org/reference/sqlloader.html
for some options you may get the meta information(all table related DDLs) with supplied package DBMS_METADATA;
http://psoug.org/reference/dbms_metadata.html
When source is Oracle 10g and target is non-Oracle you may unload to text from Oracle and use the related text loader utility supplied with the other vendor.
Also Heterogeneous Connectivity is another option between Oracle and non-Oracle systems;
http://download.oracle.com/docs/cd/B19306_01/server.102/b14232/toc.htm
If you need more informations please visit Oracle's documentation for your release and search for the topic you are interested; http://tahiti.oracle.com -
How to work on temp table in oracle 10g
Hi Guys,
I have one simple procedure and it is returning some records through dbms_output.put_line.
cursor c1 is select object_name from t_Turbo;
type c1_type is table of c1%rowtype;
rec1 c1_type;
begin
open c1;
loop
fetch c1 bulk collect into rec1 limit 200;
for i in 1..rec1.count loop
dbms_output.put_line(rec1.i);
end loop;
exit when c1%notfound;
end loop;
end;
Now i am plaing to use temp table at dmbs_output.put_line in place and from there I want to select the records.
Can any one help me on this.
Thanks in advance!
Regards,
KLRThis is what you need.
create or replace procedure test ( pRet out sys_refcursor )
as
begin
open pRet for select object_name from t_Turbo;
end;SYS_REFCURSOR is a cursor type defined by oracle. You can define your owner. -
How to create dynamic data tables with ADF 10g
Hi,
Can anyone provide sample code for creating dynamic data table in adf where column & row will be added dynamically according to the data coming from the Array List of data.
I appreciate your help here.I think you've posted to the wrong forum. This one is for WebLogic Portal questions.
Try the ADF/DVT forum:
http://myforums.oracle.com/jive3/forum.jspa?forumID=1565 -
find out most fragmented table that need to be shrinked
please help meHi,
Can you check the below link from the forum:
How to identify fragmented tables
Best regards,
Rafi.
http://rafioracledba.blogspot.com/ -
Hi,
in 8.1.7 ,is there any query that returns most used tables ? How to know most used tables ?
Thank you.Query for frequently used tables?
Frequently used tables
may be helpful to you.
Regards
Girish Sharma -
How to search this value in oracle database to find out the table
Hi expert,
I know there is a value in oracle database, please show me how to search this value in oracle database to find out the table holding this value.
Many Thanks,918440 wrote:
Hi friends,
this question is really practical, I already know there is value from application saved in database, I want to search the whole database to figure out which table the value is contained.write SQL that writes SQL to query every table.
Handle: 918440
Status Level: Newbie
Registered: Mar 2, 2012
Total Posts: 20
Total Questions: 10 (10 unresolved)
why do you waste time here when you NEVER get any answer to any question you post? -
How to update field values in a database table using module pool prg?
hi
how to update field values in a database table using module pool prg?
we created a customized table, and we put 2 push buttons in screen painter update and display.
but update is not working?
data is enter into screen fields and to internal table, but it is not updated in database table.
thanks in adv
vidyaHI,
we already used the update statement. but its not working.
plz check this.
*& Module Pool ZCUST_CALL_REC
PROGRAM ZCUST_CALL_REC.
TABLES: ZCUST_CALL_REC,ZREMARKS.
data: v_kun_low like ZCUST_CALL_REC-kunnr ,
v_kun_high like ZCUST_CALL_REC-kunnr,
v_bud_low like ZCUST_CALL_REC-budat,
v_bud_high like ZCUST_CALL_REC-budat.
ranges r_kunnr for ZCUST_CALL_REC-kunnr .
ranges r_budat for zcust_call_rec-budat.
DATA: ITAB TYPE STANDARD TABLE OF ZCUST_CALL_REC WITH HEADER LINE,
JTAB TYPE STANDARD TABLE OF ZREMARKS WITH HEADER LINE.
*data:begin of itab occurs 0,
MANDT LIKE ZCUST_CALL_REC-MANDT,
kunnr like ZCUST_CALL_REC-kunnr,
budat like ZCUST_CALL_REC-budat,
code like ZCUST_CALL_REC-code,
remarks like ZCUST_CALL_REC-remarks,
end of itab.
*data:begin of Jtab occurs 0,
MANDT LIKE ZCUST_CALL_REC-MANDT,
kunnr like ZCUST_CALL_REC-kunnr,
budat like ZCUST_CALL_REC-budat,
code like ZCUST_CALL_REC-code,
remarks like ZCUST_CALL_REC-remarks,
end of Jtab.
CONTROLS:vcontrol TYPE TABLEVIEW USING SCREEN '9001'.
CONTROLS:vcontrol1 TYPE TABLEVIEW USING SCREEN '9002'.
*start-of-selection.
*& Module USER_COMMAND_9000 INPUT
text
MODULE USER_COMMAND_9000 INPUT.
CASE sy-ucomm.
WHEN 'BACK' OR 'EXIT' OR 'CANCEL'.
SET SCREEN 0.
LEAVE SCREEN.
CLEAR sy-ucomm.
WHEN 'ENQUIRY'.
perform multiple_selection.
perform append_CUSTOMER_code.
PERFORM SELECT_DATA.
call screen '9001'.
WHEN 'UPDATE'.
perform append_CUSTOMER_code.
PERFORM SELECT_DATA.
call screen '9002'.
perform update on commit.
WHEN 'DELETE'.
perform append_CUSTOMER_code.
PERFORM SELECT_DATA.
call screen '9002'.
ENDCASE.
ENDMODULE. " USER_COMMAND_9000 INPUT
*& Module STATUS_9000 OUTPUT
text
MODULE STATUS_9000 OUTPUT.
SET PF-STATUS 'ZCUSTOMER'.
SET TITLEBAR 'xxx'.
ENDMODULE. " STATUS_9000 OUTPUT
*& Module USER_COMMAND_9001 INPUT
text
MODULE USER_COMMAND_9001 INPUT.
CASE sy-ucomm.
WHEN 'BACK' OR 'EXIT' OR 'CANCEL'.
SET SCREEN 0.
LEAVE SCREEN.
CLEAR sy-ucomm.
endcase.
ENDMODULE. " USER_COMMAND_9001 INPUT
*& Module STATUS_9001 OUTPUT
text
MODULE STATUS_9001 OUTPUT.
SET PF-STATUS 'ZCUSTOMER'.
SET TITLEBAR 'xxx'.
move itab-MANDT to zcust_call_rec-MANDT.
move itab-kunnr to zcust_call_rec-kunnr.
move itab-budat to zcust_call_rec-budat.
move itab-code to zcust_call_rec-code.
move itab-remarks to zcust_call_rec-remarks.
vcontrol-lines = sy-dbcnt.
ENDMODULE. " STATUS_9001 OUTPUT
*& Module USER_COMMAND_9002 INPUT
text
module USER_COMMAND_9002 input.
CASE sy-ucomm.
WHEN 'BACK' OR 'EXIT' OR 'CANCEL'.
SET SCREEN 0.
LEAVE SCREEN.
CLEAR sy-ucomm.
WHEN 'UPDATE'.
perform move_data.
UPDATE ZCUST_CALL_REC FROM TABLE ITAB.
IF SY-SUBRC = 0.
MESSAGE I000(0) WITH 'RECORDS ARE UPDATED'.
ELSE.
MESSAGE E001(0) WITH 'RECORDS ARE NOT UPDATED'.
ENDIF.
WHEN 'DELETE'.
perform move_data.
DELETE ZCUST_CALL_REC FROM TABLE ITAB.
IF SY-SUBRC = 0.
MESSAGE I000(0) WITH 'RECORDS ARE DELETED'.
ELSE.
MESSAGE E001(0) WITH 'RECORDS ARE NOT DELETED'.
ENDIF.
endcase.
endmodule. " USER_COMMAND_9002 INPUT
*& Module STATUS_9002 OUTPUT
text
module STATUS_9002 output.
SET PF-STATUS 'ZCUSTOMER1'.
SET TITLEBAR 'xxx'.
endmodule. " STATUS_9002 OUTPUT
*& Module update_table OUTPUT
text
module update_table output.
move itab-MANDT to zcust_call_rec-MANDT.
move itab-kunnr to zcust_call_rec-kunnr.
move itab-budat to zcust_call_rec-budat.
move itab-code to zcust_call_rec-code.
move itab-remarks to zcust_call_rec-remarks.
vcontrol-lines = sy-dbcnt.
endmodule. " update_table OUTPUT
***Selection Data
FORM SELECT_DATA.
SELECT mandt kunnr budat code remarks FROM zcust_call_rec INTO
table itab
WHERE kunnr IN r_kunnr AND BUDAT IN R_BUDAT.
ENDFORM.
****append vendor code
FORM APPEND_CUSTOMER_CODE.
clear r_kunnr.
clear itab.
clear r_budat.
refresh r_kunnr.
refresh itab.
refresh r_kunnr.
IF r_kunnr IS INITIAL
AND NOT v_kun_low IS INITIAL
AND NOT v_kun_high IS INITIAL.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = v_kun_low
IMPORTING
OUTPUT = r_kunnr-low.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = v_kun_high
IMPORTING
OUTPUT = r_kunnr-high.
r_kunnr-option = 'BT'.
r_kunnr-sign = 'I'.
append r_kunnr.
PERFORM V_BUDAT.
ELSEIF r_kunnr IS INITIAL
AND NOT v_kun_low IS INITIAL
AND v_kun_high IS INITIAL.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = v_kun_low
IMPORTING
OUTPUT = r_kunnr-low.
r_kunnr-SIGN = 'I'.
r_kunnr-OPTION = 'EQ'.
APPEND r_kunnr.
PERFORM V_BUDAT.
ELSEIF r_kunnr IS INITIAL
AND v_kun_low IS INITIAL
AND NOT v_kun_high IS INITIAL.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = v_kun_low
IMPORTING
OUTPUT = r_kunnr-low.
r_kunnr-SIGN = 'I'.
r_kunnr-OPTION = 'EQ'.
APPEND r_kunnr.
PERFORM V_BUDAT.
ELSEIF r_kunnr IS INITIAL
AND v_kun_low IS INITIAL
AND v_kun_high IS INITIAL.
IF SY-SUBRC = 0.
MESSAGE I003(0) WITH 'ENTER CUSTOMER NUMBER'.
CALL SCREEN '9000'.
ENDIF.
PERFORM V_BUDAT.
ENDIF.
ENDFORM.
FORM V_BUDAT.
IF R_BUDAT IS INITIAL
AND NOT v_BUD_low IS INITIAL
AND NOT v_BUD_high IS INITIAL.
r_budat-low = v_bud_low.
r_budat-high = v_bud_high.
r_budat-option = 'BT'.
r_budat-sign = 'I'.
append r_budat.
ELSEIF R_BUDAT IS INITIAL
AND NOT v_BUD_low IS INITIAL
AND v_BUD_high IS INITIAL.
r_budat-low = v_bud_low.
r_budat-high = v_bud_high.
r_budat-option = 'EQ'.
r_budat-sign = 'I'.
append r_budat.
ELSEIF R_BUDAT IS INITIAL
AND v_BUD_low IS INITIAL
AND NOT v_BUD_high IS INITIAL.
r_budat-HIGH = v_bud_HIGH.
r_budat-option = 'EQ'.
r_budat-sign = 'I'.
append r_budat.
ELSEIF R_BUDAT IS INITIAL
AND v_BUD_low IS INITIAL
AND v_BUD_high IS INITIAL.
IF SY-SUBRC = 0.
MESSAGE I002(0) WITH 'ENTER POSTING DATE'.
CALL SCREEN '9000'.
r_budat-low = ''.
r_budat-option = ''.
r_budat-sign = ''.
ENDIF.
ENDIF.
ENDFORM.
*& Form update
text
--> p1 text
<-- p2 text
form update .
commit work.
endform. " update
*& Form move_data
text
--> p1 text
<-- p2 text
form move_data .
clear itab.
refresh itab.
move-corresponding zcust_call_rec to itab.
MOVE ZCUST_CALL_REC-MANDT TO ITAB-MANDT.
MOVE ZCUST_CALL_REC-KUNNR TO ITAB-KUNNR.
MOVE ZCUST_CALL_REC-BUDAT TO ITAB-BUDAT.
MOVE ZCUST_CALL_REC-CODE TO ITAB-CODE.
MOVE ZCUST_CALL_REC-REMARKS TO ITAB-REMARKS.
APPEND ITAB.
delete itab where kunnr is initial.
endform. " move_data
thanks in adv
vidya -
How to find the value in the table in database ?
Hi, Could you please advise me, How to findout the data-value in the table in database ?
what do you mean by value ?
--Girish
Maybe you are looking for
-
My daughter forgot the passcode to get into her ipod, can someone help us?
My daughter forgot her pass code to get into her ipod can someone tell us what to do to get into it?
-
No entry in table for key T012K
hi I am getting an error with Pre-DME "No entry in table for key : T012K" I am getting this for all the company codes except one which is the sending company code , everything is maintained correctly like the DTAKT feature and all the company codes
-
Label Is not centering in a column chart
I want to center the value on a column graph,i used LabelStyle for this but this is not working exactly. <asp:Chart ID="bargraphconsldtd" runat="server" EnableViewState="true" Width="600px" style="padding:10px;"> <Series> <asp:Series Name="Overall Po
-
Temporary files created by SBO
SBO 6.5 SP:01 EF:07 with the SDK UI/DI creates files in the temp folder ...\Local Settings\Temp\SM_OBS_DLL The subfolder "650097" contains multiple copies of a dll (2.4 MB), like "OBSdll080904070408.Dll" Another subfolder called "GUI" contains LRF fi
-
Link between VTTK-TKNUM and VFKK-FKNUM?
Hello, Am trying to get the relationship between VTTK-TKNUM (Shipment Header-Shipment Number) and VFKK-FKNUM (Shipment Costs: Header Data-Shipment Cost Number), i saw VFKP, VFKN, VFSI, VTTP tables, views, FMs but no use! Pls. let me know how can i ge