Find the schemas whose tables are in unallocated storage spaces
DB version: 10.2.0.4In our data base, all objects in a schema (user) will be provided only in a tablespace with the same name.
For example: for a schema as BMN_PROD, we create a tablespace named BMN_PROD.
CREATE USER BMN_PROD IDENTIFIED by dottie DEFAULT TABLESPACE BMN_PROD TEMPORARY TABLESPACE temp ;
grant connect,resource,create view to BMN_PROD;
revoke unlimited tablespace from BMN_PROD;
alter user BMN_PROD quota unlimited on BMN_PROD
Now, we noticed that the tables owned by a single user are lying on a different tablespace.We want to find all these patterns that has objects in storage greater than 1.
I wrote a query using DBA_TABLES view, but it is not wearing the correct result
SELECT owner, tablespace_name, count(*)
FROM DBA_TABLES DT
WHERE OWNER NOT IN ('SYS','SYSTEM')
--AND ROWNUM < 2000
group by owner, TABLESPACE_NAME
order by count(*) desc
Published by: herbaceous January 3, 2011 06:26Changed the password
This should do the trick:
Select the owner, count (distinct tablespace_name)
from dba_tables
Group by owner
having count (distinct nom_tablespace) > 1
Tags: Database
Similar Questions
-
How to find the library files that are not due to problems of indexing
I need help to know how to find the library files that are not as a result of indexing problems?
I use Windows 7
Thank you
Charlene
Try to open the folder that the library uses directly. For example, if it is your Documents folder, open C:\Users\Charlene\Documents
-
using the function search is not finding the words I know are in my document. Why?
using the function search is not finding the words I know are in my document. Why?
The fact that you see a Word does not mean that it is 'real' text. You can select the word? If so, copy and paste in another application (such as Notepad). He always look the same? If the answer to each question is, you also cannot find it by using a search.
-
How to find the user Apex table
Hello
Please let me know, how to find the user apex table. I need validate the unique user based on the same, for which I use below function.
DECLARE
VAL A BOOLEAN;
BEGIN
VAL: = APEX_UTIL.IS_USERNAME_UNIQUE (p_username =
(: P6_USERNAME);
END;
However, in this case, he always comes back "FALSE," saying new user exists.
Kindly help me in fixing this problem.There is a view called apex_workspace_apex_users.
Details under Home > utilities > Application Express views
André
-
Req. search criteria to find the values of table in the entire schema.
Hello
I have an obligation to identify the value of the particular column that is longer in a table in the schema.
We have all the Tables system or any other source admin level?
For example, I have customer id in 18 paintings in our scheme.
I need like... I want to return to the table of names which are all contains the customer id = 15326.
If the 7 of 18 table contains the value of the id of customer 15326, then that is my output required that he picks up.
Don't we have any source to identify this requirement?
More picture... Customer, CustomerB, ClientC clients client are the tables in the schema that contains the customer id column.
Here, customer and ClientC contains the value of the identification of customer 15326 folder. So, I need produce the output as the Table names are customer, ClientC.
I hope, you will understand my requirement.
Please do the necessary help / advice on that.
Thank you
Orahar.Read the link.
Concerning
Asif Kabir -
Where to find the type of table table View ALL/DBA or SYS
Oracle 10g.
I searched the Oracle manuals and the web with nothing will do.
I need to know in which ALL/DBA table view or SYS I find the type (Organization) of a table.
ITO and 'normal' tables is easy, but I need exactly to know which tables are 'EXTERNAL '!
Maybe I'm looking in the wrong place?
ALL_ALL_TABLES has a column "table_type", but it appears in the form of external tables of ifor NULL.
Also, I would try to avoid questioning the "SYS" tables directly.You can try user_external_tables or dba_external_tables.
-
How to find the names of tables that have more than 100 columns
Hi gurus,
Please help me find the names of the tables that have more than 100 columns in the database.Below will be useful for you.
SELECT atc.OWNER,atc.TABLE_NAME,count(*) FROM all_tab_columns atc GROUP BY atc.OWNER,atc.TABLE_NAME HAVING count(atc.COLUMN_NAME) > 100
Adding another point, you can use user_tab_columns, all_tab_columns, dba_tab_columns, based on your needs/access.
Thank you
SuriPublished by: Suri on February 23, 2012 11:30
-
Hi all
I'm in oracle 10 g 2. I have a table being stripped of some process. We have several tasks scheduled for every night.
Is it possible to find the time of what a table is dropped, just to make a guess what regular process could be the culprit?
Enjoy your suggessions
Thanks in advance
NUselect object_name,original_name,droptime from recyclebin
If recyclebin is enabled
So you can be insterested to configure auditingBest regards
Maxim
-
How to find the third element table pl/sql ina
Hello friends,
I have a pl/sql table of NUMERIC type, where am store all salaries of employees.
I want to find the third bigger payday by browsing through the pl/sql table.
Pls advice.
Thank you/kumarDECLARE TYPE max_earnings_type IS TABLE OF NUMBER; TYPE max_earnings_sorted_type IS TABLE OF NUMBER INDEX BY BINARY_INTEGER; max_earnings_tab max_earnings_type; max_earnings_tab_sorted max_earnings_sorted_type; m number; BEGIN SELECT sal + comm BULK COLLECT INTO max_earnings_tab FROM emp; FOR v_i in 1..max_earnings_tab.count LOOP IF max_earnings_tab(v_i) IS NOT NULL THEN max_earnings_tab_sorted(max_earnings_tab(v_i)) := 1; END IF; END LOOP; m := max_earnings_tab_sorted.last; DBMS_OUTPUT.PUT_LINE('MAX value in PL/SQL table is ' || nvl(to_char(m),'NULL')); m := max_earnings_tab_sorted.prior(m); DBMS_OUTPUT.PUT_LINE('Second MAX value in PL/SQL table is ' || nvl(to_char(m),'NULL')); m := max_earnings_tab_sorted.prior(m); DBMS_OUTPUT.PUT_LINE('Third MAX value in PL/SQL table is ' || nvl(to_char(m),'NULL')); END; / MAX value in PL/SQL table is 2650 Second MAX value in PL/SQL table is 1900 Third MAX value in PL/SQL table is 1750 PL/SQL procedure successfully completed. SQL>
SY.
-
How to find the difference between related areas
Hi all
My problem is I have a table in which each woman will be visited maximum 8 times, each woman may or may not
given a reference in any visit which in turn women will respond to this referral in a next visit
(not necessarily the next visit), I need to calculate the average number of visits between the visit
in which the wife received a refferal and visit in which she responds.
as an example
woman_id visit_id given_referral respond_to_referral
-------- -------- -------------- -------------------
1 1 TRUE NULL
1 2 TRUE TRUE
1 3 TRUE NULL
1 4 TRUE NULL
1 5 NULL NULL
1 6 TRUE NULL
This means that visit 2 response is referral to visit 1 so the difference is 1.
and the visit 6 response corresponds to the referral in visit 4 so the difference is 4.
what I can't do is knowing how to know answer to visit 6 associated reference visit 4 No 1 or 2 or 3...
and I need to find the following table of the foregoing
woman_id difference between referral and response
--------- ---------------------------------------
1 1
1 2
quick access to help please
Published by: M.Jabr on December 14, 2009 08:05with t as ( select 1 woman_id,1 visit_id,'TRUE' given_referral,NULL respond_to_referral from dual union all select 1,2,'TRUE','TRUE' from dual union all select 1,3,'TRUE',NULL from dual union all select 1,4,'TRUE',NULL from dual union all select 1,5,NULL,NULL from dual union all select 1,6,NULL,'TRUE' from dual ) select woman_id, diff from ( select woman_id, visit_id - last_value(case when given_referral is not null then visit_id end ignore nulls ) over( partition by woman_id order by visit_id rows between unbounded preceding and 1 preceding ) diff, respond_to_referral from t ) where respond_to_referral = 'TRUE' / WOMAN_ID DIFF ---------- ---------- 1 1 1 2 SQL>
SY.
-
How to find the logo photo folder are to be deleted in my iPhone 6
I remove my iPhone pictures folder 6, now I take the new photo also cannot find the image. How to find my photo gallery? Thanks your useful.
Backup - restore your device from an iCloud or iTunes backup
-
How to delete all TABLEs in the schema SYS that are created from 09:15?
Unfortunately a script created a lot of tables in the diagram (= SYS) and bad Tablespace (= SYSTEM).
How can I delete all TABLES that are created inTablespace = SYSTEM and SCHEMA = SYS (in a DDL command)
respectively for the past 3 hours from 09:15 to 25 Sep 2011?
Alternative: How can I move these tables in another schema (for example ATEST) and Tablespace (USERS)?
Is this possible with Oracle XE or Oracle Enterprise?
PeterYou can use ALTER TABLE... MOVE. It offers a TABLESPACE clause, which allows you to choose a different tablespace as target. Refer to the documentation for your version of the database.
-
How to find the icloud place where are my pictures from the phone?
My iphone 6 is supposed to return the icloud p every day, how can I find my saved photos?
You do not see the photos that are part of a return to the top.
If you mean iCloud photo library, you can see these photos to iCloud.com > Photos
-
Query to find the match on two areas where the third does not work...
Faced with this one...
Light of the example data
What I need is a list of records where the GroupID and component matching, and where they had a PNUM who were not all the sameSECTION GROUPID SUBGROUPID COMPONENT PNUM USERNAME HVAC AC MOTOR HOSE 111.1 BOB HVAC AC MOTOR HOSE 111.2 BOB HVAC AC MOTOR HOSE 111.3 JIM HVAC AC MOTOR BOLT 411 BOB HVAC AC MOTOR BOLT 411 BOB HVAC AC MOTOR BOLT 411 BOB HVAC AC MOTOR BOLT (null) (null) HVAC AC MOTOR CLAMP 211.1 BOB HVAC AC MOTOR CLAMP 211.2 JIM HVAC AC MOTOR CLAMP 211.3 BOB HVAC AC MOTOR STRAP 611.1 JIM HVAC AC MOTOR BELT 811.3 BOB HVAC AC MOTOR BELT (null) (null) HVAC AC MOTOR DISC (null) (null) HVAC AC MOTOR DISC (null) (null) HVAC AC MOTOR DISC (null) (null)
So in this case I would like to only these returned, Section/SubgroupID/username are not required to match on anything whatsoever, but here to view the
additional data that may be there. Items that have PNUM which IS NULL should be ignored? Example would be the example above where the PNUM
for a record was 811,3 while one below is null, which should not return. Its considered to be 'ok' and does not need to be reported.
SECTION GROUPID SUBGROUPID COMPONENT PNUM USERNAME HVAC AC MOTOR HOSE 111.1 BOB HVAC AC MOTOR HOSE 111.2 BOB HVAC AC MOTOR HOSE 111.3 JIM HVAC AC MOTOR CLAMP 211.1 BOB HVAC AC MOTOR CLAMP 211.2 JIM HVAC AC MOTOR CLAMP 211.3 BOB
Hello
To identify all incompatible groupid/component combinations:
SELECT groupid, component FROM table_x GROUP BY groupid, component HAVING COUNT (DISTINCT pnum) > 1 ;
To view information on all lines with these groupid/component combinations, use the query above in an IN subquery:
SELECT * FROM table_x WHERE (groupid, component) IN ( SELECT groupid, component FROM table_x GROUP BY groupid, component HAVING COUNT (DISTINCT pnum) > 1 ) ;
I hope that answers your question.
If not, post a small example data (CREATE TABLE and only relevant columns, INSERT statements) and also publish outcomes from these data.
Explain, using specific examples, how you get these results from these data.
Always say what version of Oracle you are using (for example, 11.2.0.2.0).
See the FAQ forum {message identifier: = 9360002} -
Find the names of table in forms.fmb?
Hello everyone
I need to remove a schema tables but I didn't know if this table is used by certain forms or not.
so I asked if he program I can give him the name of the table and the directory that contains the forms.fmb
and this program return forms used at the table.There is commercial software that is able to do (like pitts or FormsAPIMaster)
Maybe you are looking for
-
Download Books epub synched in iBooks
I love being able to sync my own books packed with iBooks epub, I can easily share my books between my multiple devices. I create books epub for the things that I'm referencing or past newspapers and want them on multiple devices, so this works grea
-
According to the previous question. YouTube videos, whether on youtube or on FB, do not show, just a black screen still. When I disable all (some does not, it seems) addons, the problem is solved. It is, I want to keep the addons and use youtube. I s
-
Satellite Pro 4600 - unable to connect to the wireless network
Hello, I have a problem with my Satellite pro 4600 model # Ps460C-04NVXThe problem is with the PA3070U-1MPC wireless adapterI see my network in a wireless network with excellent signal, but it does not connect I have a fresh install of win xp sp3. I
-
printing contacts selected for Christmas cards
I use OS X 10.9.5. My contact list is great. What is the most effective way to print envelopes to a selection list for Christmas cards? I have to go through all my contacts to make a group? TIA
-
Hi, am trying to uninstall Skype, are entered in the Control Panel, but the message says: I'm in safe mode, I didn't know I was in safe mode, how to exit safe mode? I want to reinstall Skype, because I can not connect correctly, any sound that passes