Number of table gap
RDBMS Version: 11.2.0.4
OS: RHEL 6.6
Total number of tables in this schema is 282. But, why East-County of user_segments.segment_type = 'TABLE' watch only 119? What is there such a difference?
SQL > select count (*) from user_Tables;
COUNT (*)
----------
282
SQL > select count (*) from user_objects where type_objet = "TABLE";
COUNT (*)
----------
282
SQL >
SQL > select count (*) from WHERE user_segments where segment_type = 'TABLE ';
COUNT (*)
----------
119
-Various types of objects in this diagram and the number
SQL > select segment_type, count (*) group WHERE user_segments by order segment_type of count (*) desc;
SEGMENT_TYPE COUNT (*)
------------------ ----------
INDEX 158
TABLE 119
66 INDEX PARTITION
LOBSEGMENT 33
33 TABLE PARTITION
LOBINDEX 33
LOB PARTITION 33
7 selected lines.
Empty tables with delayed segment usually have a row in user_segments WHERE
Tags: Database
Similar Questions
-
Mr President.
Can we restrict the number of table rows to display on a page that is only 2 or 3 rows appear? How to do this?
Concerning
Tender,
Set the RangeSize property on the table.
See you soon
AJ
-
Is there a way to draw a total number between the gaps?
For example:
COL_A
----------
1
2
3
6
10
12
13
14
If there is a gap, I would like to know the number who are starting out and the difference:
START END DIFFERENCE
3-6-2
6-10-3
10-12-1
Thanks for any guidance or the sense of what I might try. I've seen a few examples on how to get all the missing numbers, but something like that.Hello
You can do it with the analytical function of LEAD (or GAL):
WITH got_next_a AS ( SELECT col_a , LEAD (col_a) OVER (ORDER BY col_a) AS next_a FROM table_x ) SELECT col_a , next_a , (next_a - col_a) - 1 AS difference FROM got_next_a WHERE next_a != col_a + 1 ORDER BY col_a;
Like all analytical functions, LEAD is calculated after the clause WHERE is applied.
If you want to use the value in a WHERE clause (as we do here). then a subquery (as got_next_a) is necessary. -
How to have a dynamic number of tables where new rows can be added
Hello
I'm new to ADF and have a task where I on a single page should I show that a dynamic number of tables and each table below should show some fields and create a button to create new lines in the table. To be more precise each table show an education for the individual and the rows of the table shows the meanders of specific education.
I thought to use a treetable but don't think it's the right way to go because of the new line add feature - I'm not sure of the combination of having a dynamic number of tables and the ability to create new lines of each table.
If you know where I can find a model similar to the one above or just give me your opinion on how to solve it, it would be much appreciated.
I get the data from a Web service.This is a small sample.
It could be improved for more information.
work for you?Class Education
public class {education
private string ID;
description of the private channel;
private list class ArrayList= new ();
Public Education() {}
}{} public void setId (String id)
This.ID = id;
}public String getId() {}
return the id;
}{} public void setDescription (description of the chain)
This.Description = description;
}public String getDescription() {}
return description;
}public void setCourses (list of courses of
) {}
This.courses = run;
}public
getCourses() {list
return of the course;
}
}classroom
public class {course
private string ID;
description of the private channel;
teaching of teaching private;
public Course() {}
}{} public void setId (String id)
This.ID = id;
}public String getId() {}
return the id;
}{} public void setDescription (description of the chain)
This.Description = description;
}public String getDescription() {}
return description;
}{} public void setEducation (education)
This.Education = education;
}Public Education getEducation() {}
return of education;
}
}
Managed Beanpublic class {Manage
private list of educations of;
selectedEducation of teaching private;
selectedCourse of course private;public Manage() {}
educations = new ArrayList ();
for (int x = 1; x)<= 10="" ;="" x++="" )="">=>
E education = new Education();
e.setId(""+x);
e.setDescription ("education" + x);
for (int i = 1; i)< 3;="">
Class c = new Course();
c.setId (e.getId () +'.) » + i) ;
c.setDescription (e.getDescription () +": courses"+ i);
e.getCourses () .add (c);
}
This.Educations.Add (e);
}}
public String actionAdd() {}
Add the code in the event here...
TODO invoke the web service proxy to add courses
Class c = new Course();
c.setId (this.selectedEducation.getId () +'.) (' + (this.selectedEducation.getCourses () .size () + 1));
c.setDescription (this.selectedEducation.getDescription () +": courses"(this.selectedEducation.getCourses () .size () + 1));
this.selectedEducation.getCourses () .add (c);
Returns a null value.
}public String actionQuit() {}
Add the code in the event here...
TODO invoke the proxy web service to stop the course of education
int index = this.selectedEducation.getCourses () .indexOf (this.selectedCourse);
this.selectedEducation.getCourses () .remove (index);
Returns a null value.
}
public void setEducations (list of educations) {}
This.Educations = educations;
}public
getEducations() {list
TODO invoke the web service proxy to get educations
return of the educations;
}{} public void setSelectedEducation (selectedEducation education)
this.selectedEducation = selectedEducation;
}Public Education getSelectedEducation() {}
Return selectedEducation;
}{} public void setSelectedCourse (course selectedCourse)
this.selectedCourse = selectedCourse;
}public class getSelectedCourse() {}
Return selectedCourse;
}
}JSPX
xmlns:h = "http://java.sun.com/jsf/html".
xmlns:f = "http://java.sun.com/jsf/core".
xmlns:afh = "http://xmlns.oracle.com/adf/faces/html".
xmlns:af = "http://xmlns.oracle.com/adf/faces" >
DOCTYPE system = "http://www.w3.org/TR/html4/loose.dtd".
doctype-public = ""-/ / W3C / / DTD HTML 4.01 Transitional / / IN "/ >"
Content = text/html"; charset = windows-1252 "/ >"
var value = "#{Education.courses}" = "course" rows = "5" "
strips = "row" bandingInterval = "1" >
to = "#{Manage.selectedEducation}" / >
to = "#{Manage.selectedEducation}" / >
to = "#{Manage.selectedCourse}" / >
faces config xml
"- //Sun Microsystems, Inc.//DTD JavaServer Faces 1.1 Config / / IN".
"http://java.sun.com/dtd/web-facesconfig_1_1.dtd" >
manage
com.test.Manage
session
Oracle.ADF.Core
-
Number of tables in the from clause
Hello
Can someone tell me how many tables can we have clause in oracle.As you can see it
http://download.Oracle.com/docs/CD/B19306_01/server.102/b14237/limits003.htm#i288032
Subqueries levels Maximum of subqueries in a unlimited SQL in the FROM clause in subqueries queries Top Level 255 in the WHERE clause
Subqueries in the FROM-> unlimited, so number of tables is also unlimited (limited only by the size of SQL and probably time of your life while waiting to join thousands of tables :)) results
-
I am trying to divide the comma number Buffer.Only to read the first issue can be convtered in table.
But if I replaced the read buffer with an input string of worksheet (1.1, 2.943, 44), it works.
If you are wondering what is the problem with the numbers in the Read Buffer.
Thank you!
Sorry, my fault for typo, should be read ", \00" of course (a typing on a keyboard android on my phone), but only if the string constant is set to \-codes when you enter it.
Observe the display style! Enter a string in the normal display of \00 doesn't help much.
-
Here's my question:
outputs a 5 columns of table 2D 10 lines
first row shows random numbers from 0 to 1
second row displays random numbers 1-2
and so on down the line 10
I tried a number of things, nothing works
Help, please
Maybe something like that?
-
convert 5 manually number in table
Hello world
I want to rely on 5 number of cursor manually in the table.
can you help me, how I do.
Thank you
-
Af serial number column: table
I added a column of serial number to my < af:table > by setting the property varStatus = 'vs' and
"< af:column id ="c99"width ="45"align ="center"headerText =" "rowHeader = 'true' displayIndex minimumWidth '1' = '45' = >"
"< af:outputText value =" #{vs.index + 1} "id ="ot99"/ >"
< / af:column >
Everything displays fine if there are data in the table. But in the case where no data is returned column headers not displayed correctly. The table view is messed up. I couldn't find another way to display the serial numbers. Is there a way to hide the series only. column or af:outputText if the table is empty or any other alternative?
can u try with the removal of the rowHeader property = "true" displayIndex = minimumWidth '-1' = '45' in the column series
-
Auto generation of serial number in table form
Hi all
I need to implement number line concept as in the Oracle Applications in my Apex a table
(IE):
If I create 3 files in tabular form, it should appear as shown below:
Line number Example1 Sample1 2 Example2 line number must be a number that is automatically generated and must be a database column (ie), we need to show as text (saves the State) column in the form of tables since it is not editable by the user.
"In case I have delete a record, it must be as shown below.
Line number Example1 Example2 (IE) but I deleted the first record it should automatically change the line number of the second record to 1.
and if I update the tabular presentation by adding another line, then it should appear as shown below:
Line number Example1 Example2 2 Sample3 This functionality is achievable in apex? can someone help me?
I use APEX 4.2.2.00.11 version.
Thank you and best regards,
Madonna
Hey Madonna,
".t20Report" is a cass which refers to your report, I guess. Since you only have a single report, the index will be never greater than 1.
What you want to do is to look at each line of the table in this report and to count the index of each line:
$('.t20Report_tbody_tr').each (function () {}
var i = $(this) .index () + 1 //javscript index is 0, sql is 1
$(this) .find ('td [headers = "ORDNO"] input') .val (i)
})
-
"Submit to" will depend on the number of table cell
Hello
When you click on a "submit" button, I try to have my form go to some people based on a number in a table cell.
For example, if the amount in dollars in the table cell, I have named "TotalPrice" is $ 1,000 or more, he goes to a group, and if it is less than $1,000, he goes to another group.
Here is the script I am trying me, but not having not successful...
var vEmail; var vCC; if (Page1.Table1.Row[11].TotalPrice.rawValue >= 1000) { vEmail = Page1.Buyer.rawValue; vCC = Page1.RequestorEmail.rawValue + "[email protected]"; } else { vEmail = Page1.Buyer.rawValue; vCC = Page1.RequestorEmail.rawValue; }
Any advice would be appreciated.
Kind regards
ZeroZone
var vEmail; var vCC; if (Page1.Table1.Row.all.item(11).TotalPrice.rawValue >= 1000) { vEmail = Page1.Buyer.rawValue; vCC = Page1.RequestorEmail.rawValue + ";[email protected]";//make sure to separate emails with semicolons(;) } else { vEmail = Page1.Buyer.rawValue+";[email protected]"; vCC = Page1.RequestorEmail.rawValue; } app.mailMsg({bUI:true,cTo:vEmail,cSubject:"My Subject",cCC:vCC})
Kyle
-
AS3 getting a random multiple number of table
Hello:
I have a hard time finding ways to manage the division with random numbers of tables using AS3.
On my stage, I have two dynamic boxes; Box1 and box2 and a button, btn.
in the Assembly, I have the following berries:
var myDivisor:Array = [3,6,9,12,15,18,21,24,27,30];
var myDivider:Array = [1,3,6];
The idea is to divide 1 box per box of 2, so myDivisor should be a random number greater than a random number between myDivider
WITH THE HELP OF BTN, HOW CAN I GET A RANDOM OF EACH TABLE, SO THIS DIVISOR NUMBER IS HIGHER THAN THE DIVISOR?
In the timeline for button, here is the code:
btn.addEventListerner (MouseEvent, CLICK, rNum);
function rNum (MouseEvent): void
{
Box1. Math.Floor (Math.random) * myDivisor.length) / box2. Math.Floor (Math.random) * myDivider.leng th);
}
Please suggest ways to make this work.
German
var myDivisor:Array = new Array (3,6,9,12,15,18,21,24,27,30,23,89,90,1,34,56,78,99,345,456);
var myDivider:Array = new Array (1,3,6);
var divisor: int;
var divisor: int;getNumbers();
function getNumbers() {}
divisor = getRandom (myDivisor);
divisor = getRandom (myDivider);
checkValues();
}
function getRandom(array:Array):int {}var NombrAl = Math.floor (Math.random () * array.length);
return table [NombrAl];}
function checkValues() {}
If (getRandom (myDivisor) > getRandom (myDivider)) {}
trace (getRandom (myDivisor));
trace (getRandom (myDivider));} else {}
getNumbers();
}
} -
% Rowcount SQL returns lines more than number of table
Look please copy the following code:
DECLARE
CURSOR c1 IS SELECT state_id, state_name, State st, licenses lic license_nbr
WHERE st.license_id = lic.license_id;
TYPE reg_t IS TABLE OF c1% ROWTYPE;
v_array reg_t;
BEGIN
OPEN c1;
LOOP
C1 FETCH BULK COLLECT INTO v_array;
FORALL i IN v_array. FIRST... v_array. LAST
UPDATE st_lic sl
SET state_id = v_array (i) .state_id,
state_name = v_array (i) .state_name
WHERE sl.license_nbr = v_array (i) .license_nbr;
OUTPUT WHEN c1% NOTFOUND;
END LOOP;
CLOSE c1;
DBMS_OUTPUT. Put_line ('count is:' |) SQL % ROWCOUNT);
END;
State_id is primary key for table 'States'. Each state_id has a single license_id.
For the table "licenses", license_id is the primary key and license_nbr is not null and unique.
For the 'st_lic' table, license_nbr is not null field and same license_nbr may appear several times.
It is: sql % rowcount returns the number that is greater than the total number of rows in the st_lic table. Is possible? If Siu, how? I don't see anything wrong with the query.
Thanks for the help!
Published by: user5406804 on February 25, 2010 05:57consider to do away with the entire collection update in bulk and use a one-time block update. If you however decide to stick to the existing code, then SQL % BULK_ROWCOUNTwould be aplpied as follows:
set serveroutput on DECLARE CURSOR c1 IS SELECT state_id, state_name, license_nbr FROM states st, licenses lic WHERE st.license_id =lic.license_id; TYPE reg_t IS TABLE OF c1%ROWTYPE; v_array reg_t; BEGIN OPEN c1; LOOP FETCH c1 BULK COLLECT INTO v_array ; EXIT WHEN c1%NOTFOUND; FORALL i IN v_array.FIRST .. v_array.LAST UPDATE st_lic sl SET state_id = v_array(i).state_id, state_name = v_array(i).state_name WHERE sl.license_nbr = v_array(i).license_nbr; FOR i IN v_array.FIRST .. v_array.LAST loop DBMS_OUTPUT.PUT_LINE('Records updated = ' || SQL%BULK_ROWCOUNT(i)); END LOOP; END LOOP; CLOSE c1; -- DBMS_OUTPUT.PUT_LINE('count is :' ||SQL%ROWCOUNT); END;
This could work to replace all of the code above!
UPDATE st_lic sl SET state_id = (SELECT state_id FROM states st, licenses lic WHERE st.license_id =lic.license_id and st.state_id = sl.state_id and lic.license_id=sl.license_nbr);
-Not sure, UNTESTED!
P;
Published by: bluefrog on February 25, 2010 14:59
UPDATE st_lic sl SET (state_id, state_name) = (SELECT st.state_id, st.state_name FROM states st ,licenses lic WHERE st.license_id = lic.license_id and st.state_id = sl.state_id and lic.license_id = sl.license_nbr);
Published by: bluefrog on February 25, 2010 15:08 - I forgot the STATE_NAME
-
Hey,.
I use JDeveloper 11.1.1.2.0. I have a text field that displays the total number of lines and the number of the current line of a table element. I have a method that is triggered when the current row is changed. The code is as follows:
The problem is, it always returns-1 as the rowIndex!public void selEvent(SelectionEvent selEvent) { System.out.println("selection"); invokeMethodExpression("#{bindings.EmpVO1.collectionModel.makeCurrent}", Object.class, selEvent.getClass(), selEvent); setTableState(getTableState()); AdfFacesContext.getCurrentInstance().addPartialTarget(this.ot12); } public String getTableState() { FacesContext fctx = FacesContext.getCurrentInstance(); Application app = fctx.getApplication(); ValueBinding vb = app.createValueBinding("#{bindings}"); DCBindingContainer dc = (DCBindingContainer)vb.getValue(fctx); DCIteratorBinding dciter = (DCIteratorBinding)dc.get("EmpVO1Iterator"); String rowCount = new Long(dciter.getEstimatedRowCount()).toString(); String rowNum = "" + getT1().getRowIndex(); tableState = rowNum + "/" + rowCount; System.out.println(tableState); return tableState; }
What could be the problem?
Thank you
Published by: mangun on December 9, 2009 12:10Hello
What happens if you read the index of the link instead of the table line?
Frank
-
Stored procedure to remove a number of tables with a common name attribute
Hi all
This is my first post so I hope I posted level with enough information. This is my first stored procedure (SP) and Oracle 10.
I'm trying to write a script to remove 11 paintings and some lines of another 3 tables, which are named with a number I want to enter at the time of the creation of MS below is the script that I wrote and edited. My original was lost by crashing the servers!
When I run the script, it gives me the following output:
"WARNING: execution completed with warning.
procedure ScenarioDelete update"
MS has not deleted one of these tables and I don't know if it's because my script is poor or because of something else. Any help is greatly appreciated!
-table remove SP
--
-Race start ScenarioDelete ('x'); with the idscenario x
create or replace procedure ScenarioDelete (ScenarioNo IN varchar2);
countstable: = "C_". ScenarioNo;
CHANGETABLE: = "CG_" | ScenarioNo;
countsinfotable: = 'CI_ ' | ScenarioNo;
DataTable1: = "D_0_" | ScenarioNo;
datatable2: = "D_1_" | ScenarioNo;
datatable3: = 'D_2_ ' | ScenarioNo;
hietable1: = 'HI_0_ ' | ScenarioNo;
hietable2: = 'HI_1_ ' | ScenarioNo;
hietable3: = 'HI_2_ ' | ScenarioNo;
hielinktable1: = 'HL_1_ ' | ScenarioNo;
hielinktable2: = 'HL_2_ ' | ScenarioNo;
AS
run immediately 'drop table ' | countstable;
run immediately 'drop table ' | CHANGETABLE;
run immediately 'drop table ' | countsinfotable;
run immediately 'drop table ' | DataTable1;
run immediately 'drop table ' | datatable2;
run immediately 'drop table ' | datatable3;
run immediately 'drop table ' | hietable1;
run immediately 'drop table ' | hietable2;
run immediately 'drop table ' | hietable3;
run immediately 'drop table ' | hielinktable1;
run immediately 'drop table ' | hielinktable2;
immediately execute "delete from USERACESS where IDSCENARIO = ' |" ScenarioNo;
run immediately "remove scenario where IDSCENARIO = ' |" ScenarioNo;
immediately execute "delete from SCENARIOINFO where IDSCENARIO = ' |" ScenarioNo;
-or-
run immediately "delete from USERACESS where IDSCENARIO =" | " ScenarioNo | ''';
run immediately "remove scenario where IDSCENARIO =" | " ScenarioNo | ''';
run immediately "delete from SCENARIOINFO where IDSCENARIO =" | " ScenarioNo | ''';
END;Hello
Welcome to the RTO
If you allow me, I would like to make a suggestion to simplify your code
Create OR Replace Procedure ScenarioDelete(ScenarioNo IN Varchar2) As Type t_DropTable Is Table Of Varchar2(30); v_DropTable t_DropTable := t_DropTable( 'C_', 'CG_', 'CI_', 'D_0_', 'D_1_', 'D_2_', 'HI_0_', 'HI_1_', 'HI_2_', 'HL_1_', 'HL_2_' ); Type t_DeleteTable Is Table Of Varchar2(30); v_DeleteTable t_DeleteTable := t_DeleteTable( 'USERACESS', 'SCENARIO', 'SCENARIOINFO' ); Begin -- Drop tables For i IN v_DropTable.First .. v_DropTable.Last Loop Execute Immediate 'DROP TABLE ' || v_DropTable(i) || ScenarioNo; End Loop; -- Delete tables For i IN v_DeleteTable.First .. v_DeleteTable.Last Loop Execute Immediate 'DELETE FROM ' || v_DeleteTable(i) || ' WHERE SCENARIOID = ' || ScenarioNo; End Loop; End;
Kind regards
Christian Balz
Maybe you are looking for
-
My iphone gets hot when the loading is this normal?
A moment ago I just picked up my phone and it disconnected from the charger, and it was hot, is this normal? Also the iphone was sitting on a cushion when charging one of could so caused that?
-
I 16.0.2 - Setup is 16, 1 - am I go back? Should I go ahead? Thank you
-
You are looking for a user-friendly program, vhs to digital conversion?
A low price, easy to use, the program would be useful.
-
Service of re-installing Softrware
Hello I help a friend who has a laptop HP running Windows 7. Due to a malware infection, it can run only its Office 2010 Starter Edition because the icons produce errors of click 2 Run Configuration failed. There is no mention of the office in the Pa
-
HP Pavilion a1520n Media Center - SQLDUMPER library not initialization.
The dialog box shows the following: SQL Writer: SQLDUMPER library not initialization. Your installation is either corrupt or has been tampered with. Please uninstall then re-run Setup to correct this problem. I do not understand what I have to uninst