DB Query to get table sizes and classification in OIM Schema
My customer's OIM Production DB size has gone upto 300 gb. They want to know why. Like they want to know "what kind of data" is the reason for such a large size of DB. Is there a way to find out, from OIM schema, what are sizes for each table (like ACT, USR etc) and classify them into User Data, Config Data, Audit Data, Recon Data, etc?
Any help is very much appreciated in this regard.
Regards
Vinay
You can categorize tables using information from below link:
http://rajnishbhatia19.blogspot.in/2008/08/oim-tables-descriptions-9011.html
You can count number of rows for tables using:
select count(*) from tablename;
Find major tables whose size is to be calculated and find avg length of a row (by adding attribute lengths defined).
Finally, calculate the table size using below query:
select TABLE_NAME, ROUND((AVG_ROW_LEN * NUM_ROWS / 1024), 2) SIZE_KB from USER_TABLES order by TABLE_NAME;
regards,
GP
Similar Messages
-
What are the tables PHO and LOC of OIM Schema?
Hi,
In the schema documentation of OIM tables you have the following description for the tables PHO and LOC:
LOC - Holds information about locations
PHO - Holds all communication addresses for this contact -- e.g., contact telephone numbers,fax numbers, e-mail, etc.
When those have have some records? I haven't seen yet any form ou function where I can put some information like that.
I don't have any problem with them and it is just for curiosity. As I understand the OIM User Model, I thought those tables were part of OIM User Model, where:
Organization (field ACT_Key of USR table)
Location (I guess table LOC but it is always empty in my env). There is a field USR_LOCATION but it is not shown by default.
User Group (all groups a user is member are in the USG table)
User Defined Fields (all fields start with USR_UDF of USR table)
Manager (USR_MANAGER that is alwasys empty and USR_MANAGER_KEY that has the Key of User's Manager)
Organization (ACT_KEY of USR table)
Contact Information (I guess it is the table PHO)
Thanks,
Renato.They probably serve no purpose anymore but might have been used at some point during the life cycle of the product.
-Kevin -
Getting Window Size And Position
Hey, well I wanted to know if it was possible in a java application to get the size and location of another window in focus. For instance, I run my app, then I open up an internet window, is there anyway to get the size of that internet window, and the XY coordinates on the screen for it? And if so, is there anyway to capture data such as colors and such if the window is in focus?
Is it possible to do by process name? Like this...
if(process is running)
if(window is minimized)
System.out.println("WINDOW MINIMIZED");
else
System.out.println("The coordinates of the window are...");
System.out.println("The size of the window is...");
System.out.println("The resolution of the window is...");
}ThanksSucka8 wrote:
I am trying to make a cards probability calculator, the reason I need that information is so I can get the program to see what is on the table. No idea on how to do it?Hm! No!
>
Edit: Augh, java is a bitch. I wish I spent all the time I spent on java on C++ or something...Well. Then C is your friend.
;-) Bye! -
Change table size and headers in type def cluster
Is is possible to change a table size and headers that is inside a type def cluster?
I have a vi that loads test parameters from a csv file. The original program used an AC load so there was a column for power factor. I now have to convert this same program to be used with a DC load, so there is no power factor column.
I have modified to vi to adjust the "test table" dynamically based on the input file. But the "test table" in the cluster does not update it's size or column headers.
The "test table" in the cluster is used through out the main program to set the values for each test step and display the current step by highlighting the row.
Attachments:
Load Test Parms.JPG 199 KB
Table Cluster.JPG 122 KBNevermind, I figured it out...
I was doing it wrong from the start, in an effort to save time writing the original program I simply copied the "test table" to by type def cluster. This worked but was not really as universal as I thought it would be, as the table was now engraved in stone since the cluster is a type def.
I should not have done that, but rather used an array in the cluster and only used the table in the top level VI where it's displayed on the screen. -
Query to get the blocker and holder info
Hi All,
I have framed the following query to get the blocker and holder info.I intend to use this query in a auto-generated mail which executes every 15 mins
I have put an outer join on the holder because the holder query might have been executed at the time the auto mail configuration fires this query
I am not a dba and was apprehensive is there is some mistake in the logic of my query. I was also expecting to join v$sql_bind_capture using sql_hash_value and sql_address just the way in which I have joined v$sqlarea
Looking forward to your kind help in vetting the below query
Select distinct waiting_session,
dba_waiters.holding_session,
decode(to_char(session_waiting_info.STATE),'0','waiter is currently waiting','-2','duration of last wait by waiter is unknown','-1','waiter waited for a short time',' waiter waited long time') "waiters waiting state",
decode(session_waiting_info.WAIT_TIME,0,'waiter waiting') "waiters last wait time",
decode(to_char(session_holding_info.STATE),'0','holder is currently waiting','-2','duration of last wait by holder is unknown','-1','holder waited for a short time','holder waited long time') "holders waiting state",
decode(session_holding_info.WAIT_TIME,0,'waiter waiting') "holders last wait time",
sql_waiting_info.sql_text "query of the waiter",
sql_holding_info.sql_text "query of the holder",
session_waiting_info.STATUS "waiting STATUS",
session_holding_info.STATUS "holding STATUS",
session_waiting_info.process "waiting process",
session_waiting_info.PROGRAM "waiting PROGRAM",
session_holding_info.process "holding process",
session_holding_info.PROGRAM "holding PROGRAM",
session_waiting_info.ROW_WAIT_OBJ# "waiting object",
session_waiting_info.ROW_WAIT_ROW# "waiting row",
session_holding_info.ROW_WAIT_OBJ# "holding object",
session_holding_info.ROW_WAIT_ROW# "holding row",
session_waiting_info.BLOCKING_SESSION_STATUS "waiting session status",
session_holding_info.BLOCKING_SESSION_STATUS "holding session status",
session_waiting_info.username "holding os username",
session_holding_info.username "waiting os username",
session_waiting_info.MACHINE "waiting MACHINE",
session_waiting_info.TERMINAL "waiting TERMINAL",
session_holding_info.MACHINE "holding MACHINE",
session_holding_info.TERMINAL "holding TERMINAL",
session_waiting_info.TYPE "waiting TYPE",
session_holding_info.TYPE "holding TYPE"
from dba_waiters,
v$session session_holding_info,
v$session session_waiting_info,
v$sqlarea sql_waiting_info,
v$sqlarea sql_holding_info
Where dba_waiters.waiting_Session = session_waiting_info.sid
and dba_waiters.holding_Session = session_holding_info.sid
And session_waiting_info.sql_hash_value = sql_waiting_info.hash_value
And session_waiting_info.sql_address = sql_waiting_info.address
and session_holding_info.sql_hash_value = sql_holding_info.hash_value(+)
And session_holding_info.sql_address = sql_holding_info.address(+)
and dba_waiters.mode_held <> 'None'
Regards,
Vishal
Edited by: user11924113 on Feb 18, 2011 2:39 AMQuery to track the holder and waiter info
People who reach this place for a similar problem can use the above link to find their answer
Regards,
Vishal -
Query for getting all function and procedure inside the packages
hi All
Please provide me Query for getting all function and procedure inside the packages
thanksAs Todd said, you can use user_arguments data dictionary or you can join user_objects and user_procedures like below to get the name of the packaged function and procedure names.
If you are looking for the packaged procedures and functions source then use user_source data dictionary
select a.object_name,a.procedure_name from user_procedures a,
user_objects b
where a.object_name is not null
and a.procedure_name is not null
and b.object_type='PACKAGE'
and a.object_name=b.object_name -
List of tables count and Views count in schema wise
Hi All,
I want to get all tables count and views count in Schema wise, What is the query for that?
Thanks in Advance.SELECT COUNT(*) FROM sys.tables t join sys.schemas s
on s.schema_id=t.schema_id
SELECT COUNT(*) FROM sys.views t join sys.schemas s
on s.schema_id=t.schema_id
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance
SQL Server Integration Services:
Business Intelligence -
QUERY TO GET database size, used size, freesize, tablespacesize of RQ table
Pls give me a query for to get database size, used size, freesize, tablespacesize of sometables which is starting with 'RQ%'
I have to get result like this
Total size, used size, free size ,tablespace size of RQ tables alone
Reason why i go for "tablespace size of RQ tables" i want to know the size of database after deleting the rq tables
( Since i am not getting any reply i go for database forum)
Pls reply
S
Edited by: AswinGousalya on Jul 8, 2009 3:41 PMHello,
This question looks like it is really for the Oracle RDBMS and not for Berkeley DB. In BDB, we do not have a notion of tablespace size. What database product are you using?
regards,
mike brey
BDB engineering -
Get a summary of items by a query with 2 tables (INV1 and RIN1)
Hi!
I have a question about SQL-queries.
When a customer pay an item (sum 100.- Euro), this is written in table INV1.
SELECT T0.DocEntry, T0.ObjType, T0.DocDate, T0.ItemCode, T0.Dscription, T0.LineTotal,T0.SlpCode FROM INV1 T0
show me all entries about all sold items. Thats fine!
When the same customer give back some of this sold item (sum 50.- Euro), this is written in RIN1.
SELECT T0.DocEntry, T0.ObjType, T0.DocDate, T0.ItemCode, T0.Dscription, T0.LineTotal,T0.SlpCode FROM RIN1 T0
shows me the sum of all items that get back.
For a statistc i want evaluate a sum of real sold items (sum of money).
Now, i want create a query that evaluate a sum of the table INV1 and RIN1 and want show the result.
Example for a result:
DocEntry ObjType DocDate ItemCode Descriton LineToal
1 13 01.01.06 11111 ItemOne 100.- Euro
2 14 05.01.06 11111 ItemOne - 50.- Euro
total sum: 50.- Euro
is there a way that show me this result (query, form, etc.)?
How can i realize it?
Thanks a lot!
JuergenI'm a SQLServer newbie from the Oracle world, so there may be a simpler way to do this, but the following will return all the data that you need, although it may not be pretty:
SELECT 'Detail' LineType, T0.DocEntry, T0.ObjType, T0.DocDate, T0.ItemCode, T0.Dscription, T0.LineTotal,T0.SlpCode FROM INV1 T0
union all
SELECT 'Detail' LineType, T0.DocEntry, T0.ObjType, T0.DocDate, T0.ItemCode, T0.Dscription, T0.LineTotal,T0.SlpCode FROM RIN1 T0
union all
select 'Total' LineType, null DocEntry, null ObjType, null DocDate, null ItemCode, null Dscription, sum(LineTotal) LineTotal, null SlpCode from
(SELECT T0.DocEntry, T0.ObjType, T0.DocDate, T0.ItemCode, T0.Dscription, T0.LineTotal,T0.SlpCode FROM INV1 T0
union all
SELECT T0.DocEntry, T0.ObjType, T0.DocDate, T0.ItemCode, T0.Dscription, T0.LineTotal,T0.SlpCode FROM RIN1 T0 ) x
order by 1,2 -
Need to create report query to get latest open and last closed period for given application
Hi All,
I need to create a report query to get below result displayed in report output.
1) - Application name
2) - Ledger name
-o/ -Operating Unit
3) - Last Closed Period
4) - Current Open Period
5) - Date Closed – Last Closed Period
6) - Date Open – Current Open Period
I tr I tried to create the query below is the same. Please let me know if it looks fine.
SELECT *
FROM (SELECT fav.application_name ,
hou.name Operating_Unit_Name,
gl.name Ledger_name,
gl.latest_opened_period_name,
gps.period_name Period_Name,
DECODE(gps.closing_status, 'O', 'Open', 'C', 'Closed') status,
gps.last_update_date Last_status_modified_date
FROM gl_period_statuses gps,
gl_sets_of_books gsob,
fnd_application_vl fav,
hr_operating_units hou,
gl_ledgers gl
WHERE gps.period_name = gps.period_name
AND gps.closing_status ='C'
AND fav.application_short_name =
NVL('&p_application_short_name', fav.application_short_name)
AND gps.application_id = fav.application_id
AND gsob.set_of_books_id = gps.set_of_books_id
AND hou.set_of_books_id = gps.set_of_books_id
AND gl.ledger_id = gsob.set_of_books_id
AND hou.organization_id=NVL('&p_operating_unit',hou.organization_id)
AND gl.ledger_id=NVL('&p_ledger_id',gl.ledger_id)
ORDER BY gps.last_update_date desc )WHERE ROWNUM = 1
UNION ALL
SELECT *
FROM (SELECT fav.application_name Application_Name,
hou.name Operating_Unit_Name,
gl.name Ledger_name,
gl.latest_opened_period_name,
gps.period_name Period_Name,
DECODE(gps.closing_status, 'O', 'Open', 'C', 'Closed') status,
gps.last_update_date Last_status_modified_date
FROM gl_period_statuses gps,
gl_sets_of_books gsob,
fnd_application_vl fav,
hr_operating_units hou,
gl_ledgers gl
WHERE gps.period_name = gps.period_name
AND gps.closing_status = 'O'
AND fav.application_short_name =
NVL('&p_application_short_name', fav.application_short_name)
AND gps.application_id = fav.application_id
AND gsob.set_of_books_id = gps.set_of_books_id
AND hou.set_of_books_id = gps.set_of_books_id
AND gl.ledger_id = gsob.set_of_books_id
AND hou.organization_id=NVL('&p_operating_unit',hou.organization_id)
AND gl.ledger_id=NVL('&p_ledger_id',gl.ledger_id)
ORDER BY gps.last_update_date desc)
WHERE ROWNUM = 1It is within the table I believe (I'm not a DBA or a developer) since I created a BLOB column and then used the file browse feature to allow users to attach a resume to the table in order to be able to perform a search of the attached documents.
I'm just having a hard time pointing the link in the search results report to the document in the blob column.
The information on that page is great if you're trying to create a link to the document on the initial report.
But I created a query using Oracle Text to run a report that does a boolean search of the attached word documents in the table.
When it displays the search results, it doesn't create a link to the document and I can't figure out how to do it.
Here's a link the the instructions I used to create the initial search report with Oracle Text, mind you I only created the index and query, I didn't add in all the link data since they're using documents on websites and I'm using documents in a table.
http://www.oracle.com/technology/products/database/application_express/pdf/apex_text_application_v1.6.pdf
If you can help me with this I'd really appreciate it.
Thanks again.
Greg
Edited by: gjones77 on Dec 2, 2008 8:14 AM -
Get DataBase Size and Compare it
Hello Folks
I'm trying to get SQL 2008 R2 database size and compare it with this code:
$DBSize = Invoke-SQLCmd -Query "sp_databases" -Username "user" -Password "pwd" `
-ServerInstance "localhost" | where-object {$_.database_name -eq "ABC"} | select database_size
If(($DBSize | Out-String) -ge "5242880"){
# Some action #
But that don't return nothing... Some help !?
Jimcesse
Principal: http://sysadmin-cr.com/
Alterno: http://blogs.itpro.es/jimcesseHi,
I have no way to test this, but try adding -ExpandProperty to select.
Also, I suggest getting rid of Out-String and using numbers instead.
EDIT: Also, you may need to use a loop to check each returned size if the query is returning more than one database size.
Don't retire TechNet! -
(Don't give up yet - 13,085+ strong and growing) -
Query between two tables : COAS and BPGE
Hi,
I want to create a Query between tables : COAS and BPGE but when i generate the Info-set the system had a problem of jointure. (the field OBJNR exist in the both)
By this query i want to display the Order and the value of Budget
Please Advise
Regardshi..
you can go with following type of code....
select coas~field1
coas~field2
bpge~field5
bpeg~field6
from coas inner/outer join bpge
on coasobjnr = bpgeobjnr
into table t_table
where condition
hope this one will solve the issue
regards -
Query to get parameter name and value after ran the conccurent program
Hi All,
Query to get the parameter name and value for completed concurrent program using the request id. can any one help me in this regard.
Thanks,
Red.Red,
I have tried the same query and it works properly here.
I have submitted "Purge Signon Audit data" concurrent program with "Audit Date" parameter set to 01-06-2009, and here is the query output:
SQL> select request_id, phase_code, status_code,
argument_text, argument1
from fnd_concurrent_requests
where request_id = '739664';
REQUEST_ID P S ARGUMENT_TEXT ARGUMENT1
739664 C C 2009/06/01 00:00:00 2009/06/01 00:00:00Regards,
Hussein -
Need to create an ABAP query on 2 tables BSIK and BSAK
Hi,
I need to create an ABAP query which has the fields document no, doc date, amount in doc currency and some other fields from 2 tables BSIK and BSAK. Is it possible to write a single abap query to fetch the data from both the tables.
The selection screen fields are doc number, date and doc type.
I need to display invoices for open items and cleared items together.
Please let me know if this is possible.
Thanks and Regards,
AjithSee if this is anything like what you need:
REPORT ztest MESSAGE-ID 00.
TABLES: bkpf, bseg.
SELECT-OPTIONS: s_bukrs FOR bkpf-bukrs,
s_belnr FOR bkpf-belnr,
s_gjahr FOR bkpf-gjahr,
s_blart FOR bkpf-blart,
s_budat FOR bkpf-budat.
DATA: BEGIN OF bkpf_int OCCURS 0.
INCLUDE STRUCTURE bkpf.
DATA: END OF bkpf_int.
DATA: BEGIN OF bseg_int OCCURS 0.
INCLUDE STRUCTURE bseg.
DATA: END OF bseg_int.
DATA: BEGIN OF bsik_int OCCURS 0.
INCLUDE STRUCTURE bsik.
DATA: END OF bsik_int.
SELECT *
FROM bkpf
INTO TABLE bkpf_int
WHERE bukrs IN s_bukrs
AND belnr IN s_belnr
AND gjahr IN s_gjahr
AND blart IN s_blart
AND bldat IN s_budat.
SORT bkpf_int BY bukrs belnr gjahr.
SELECT *
FROM bseg
INTO TABLE bseg_int
FOR ALL ENTRIES IN bkpf_int
WHERE bukrs = bkpf_int-bukrs
AND belnr = bkpf_int-belnr
AND gjahr = bkpf_int-gjahr
AND koart = 'K'.
SORT bseg_int BY bukrs belnr gjahr buzei.
LOOP AT bseg_int.
MOVE-CORRESPONDING bseg_int TO bsik_int.
READ TABLE bkpf_int WITH KEY
bukrs = bseg_int-bukrs
belnr = bseg_int-belnr
gjahr = bseg_int-gjahr
BINARY SEARCH.
IF sy-subrc = 0.
MOVE-CORRESPONDING bkpf_int TO bsik_int.
APPEND bsik_int.
ELSE.
MESSAGE e001 WITH 'Error during read'.
ENDIF.
ENDLOOP.
Rob -
Sending pictures on BBM gets lower size and quality
My friend has Bold 9000, and I have Bold 9700. When i send a picture to his bb through bbm, he recieves it in full size and quality, but when he sends me a picture from his bb to mine through bbm, i recieve it in a lower quality and size then the actual picture. we both are using the latest bbm. please help
Well before you uninstall the BlackBerry, you can create a backup using Desktop Manager. Also you can wireless backup your BlackBerry Messenger contacts within BBM.
To create a wireless backup:
1. Open BlackBerry Messenger.
2. Press the Menu key and choose Options.
3. Scroll down to Contact List, and click on Backup.
-ViciousFerret
Come follow your BlackBerry Technical Team on Twitter! @BlackBerryHelp
Be sure to click Like! for those who have helped you.
Click Accept as Solution for posts that have solved your issue(s)!
Maybe you are looking for
-
ICal and multiple iMac users w/ iPhones
We have three user accounts on one iMac. Each user has an iPhone. One iCal account has new appointments made on the iMac, but these entries *do not sync to the iPhone.* I have been through the documentation and cannot figure out why it does not synch
-
Null protocol endpoint ?
I am confused on how the protocol endpoint could be null ? I have this from my b2b.log 2007.12.11 at 07:37:01:366: B2BStarter thread: Deployment - (DEBUG) Query Configurations null Lifecycle status Active exclude design true 2007.12.11 at 07:37:01:36
-
I've got an application running under SE 1.4.1 and SE 1.4.2 on Windows 98 and I'm getting an problem whereby mouse presses, releases and clicks are not being forwarded to the correct components. The problem is fairly easy to replicate and pressing th
-
Can anyone explain what consume() actrually does?
Can anyone explain what consume() actually does as it relates to a KeyEvent? I read about this but I just can't seem to to understand it. Thanks in advance.
-
Is it worth buying a Mac Pro 1,1 in 2011?
I've looked in to a mac pro 1,1. MacPro1,1 2.00 GHz L2-cache 4 MB GPU: NVIDIA GeForce 7300 GT I'm planning to use it as a studio workstation for hard 2D/3D work, music writing/prostproduction, Video editing. Software's going to be used: After Effects