Find all the objects in a table space.
I know that this seems to be a simple question; In fact, I hope that it is.
The obvious answer seems to be query DBA_SEGMENTS predict on nom_tablespace, but these days, I see that if, for example, a table partition is newly created and contains no data, it may not have a segment. Yet, I still find it.
Then I need to interrogate DBA_TABLES, DBA_TAB_PARTITIONS, DBA_TAB_SUBPARTITIONS, DBA_INDEXES, etc. for objects that have no segments attached to them?
-edit I am on 11g
An object non-segment (for example, a table or a partition without inserted rows still) would not be mentioned in DBA_SEGMENTS, you correctly identified.
I don't know how to "unify" query. You could start by DBA_SEGMENTS for all * segments of which does not exist. Then, request, individually DBA_TABLES, DBA_TAB_PARTITIONS, DBA_INDEXES and DBA_IND_PARTITIONS to find segments "expected" - so do a union of two queries.
Hemant K Collette
Tags: Database
Similar Questions
-
Try to find all THE objects that point to a column...
Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production
PL/SQL Release 11.2.0.3.0 - Production
CORE Production 11.2.0.3.0
AMT for Solaris: 11.2.0.3.0 - Production Version
NLSRTL Version 11.2.0.3.0 - Production
I have several patterns, all that have tons of objects that point to a column in a table.
I tried looking at v$ sqltext and v$ sqlarea, but it does not appear as expected.
There is a view that I can watch that will show me all the objects that relate to a single column?
my situation. Had to change the structure of data in this one column. Changed the default value of a Y a l I have packages, functions, triggers, etc... dealing with this single column. I make sure I have go through EACH of them and modify them to reflect the change in the column of the table. And still, it extends over several patterns that point to it.
I can't forget all the objects. Is there any one place to find it?
Thank you.Use the mode - DBA_DEPENDENCIES
select * from dba_dependencies where type= 'TABLE' and name = '
'; Another gross way...
select * from all_source where lower(text) like lower('%
%') group by owner,name,type; But, this will not search in the views & MView queries.
HTH
Vanessa B.Published by: Vanessa B on October 15, 2012 23:09
-added -
How to find all the table names in all modules in EBS R12?
How to find all the table names of all the modules in EBS R12?
In addition, you can go to http://etrm.oracle.com, you select the version of the EBS, select "FND Data" or "S/n data", select the Type of the object TABLE and you will get all the tables of EBS in module.
-
Push all the objects in a tablespace to another
Hello
on the 11g R2 (11.2.0.3)
We need to move all the objects in one tablespace to another.
Is this possible?
How can we push all the objects of a logical disk space to a different tablespace?
Thank you.
Generate the
ALTER TABLE TableName MOVE TABLESPACE new_tbsname
andALTER INDEX REBUILD new_tbsname IndexName
orders. You can use "SQL Generation of SQL" or write a PLSQL WHERE USER_SEGMENTS loop.
If you have some LOBs you must move the LOBs using
ALTER TABLE TableName MOVE LOB (lobname) STORE AS LOBSEGMENT (TABLESPACE new_tbsname)Hemant K Collette
-
delete all the records in a table, the speed of insertion is not change.
I have an empty table, and I insert a record need 100ms.
During this table a 40,0000 trace, I insert a record need 1 s, it's ok, because I need to make a comparison according to an index before inserting a record need, so more record, more time.
The problem is when I delete all the record in this table, the insertion time is always 1s, not reduce to 100ms. Why?Hello
Read this part of the oracle documentation
http://download.Oracle.com/docs/CD/B19306_01/server.102/b14220/logical.htm#CNCPT004
The reason is always 1s, because when you inserted 400ko record as HWM (high tide is the border between old and new space in a segment.) moved to the top. And when you remove all records of your HWM still in the same coordinate system and that you have not reset to 0. So when you insert 1 it save free space and after finding faces (usually a regular insertions got 6 steps it inserts data). If you truncate your table you and try it again it will be faster that your HWM is reset to 0.
Concerning
-
My kodakESP5 will not print all the object I want to print only a part of it
My kodak ESP5 will not print all the object I want to print only a part of it
Hi jakenny,
You may need to replace an ink or toner cartridge. Check the status information in the queue for low ink or toner messages. If the printer has a status or display area, you can also check for low ink or toner messages on the printer itself. For more information, see change an ink or toner cartridge and view the print queue.
Follow the instructions below that may help you resolve the issue.
Method 1:
See the link below and check the print settings.
Choose printing options
http://Windows.Microsoft.com/en-us/Windows-Vista/choosing-print-options
Method 2:
Try to update the printer driver which might help you resolve the issue.
Click on the link below for more information on the updated printer drivers.
Find and install printer drivers
http://Windows.Microsoft.com/en-us/Windows-Vista/find-and-install-printer-drivers
Check whether the problem is resolved.
For more information, please see the link below.
Solve printer problems
http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-printer-problems
Please post back and let us know if it helped to solve your problem.
Kind regards
KarthiK TP
-
Hi all
I'm actually build an expression grep to run in an InDesign document to find all the '. '. (full stop) without any whitespace that follows, except those standing at the end of a paragraph. My approach:
\. (?! \s) (?! $)
For some reason any '$' does not work when it is used as a negative lookahead. In the following example, only the first '. ' is found.
test. test.test.test.
Not used as anticipation as here...
\. (?! \s) [^$]
It works very well. But unfortunately I am I need the search for only the "." is divided as a result.
I would appreciate any advice.
Thank you very much!
Jan
This grep finds all the "." without space after except the one at the end of the paragraph
(?<>
-
Export all the objects with PowerCli
Hello
I'm not in VSphere or vmware but a Director of SCOM and I am currently working on a solution to monitor our VCenter with SCOM server. To be able to automatically resolve alerts, I would need to find a way to export a list with all the objects of the VCenter server to create them as instances in SCOM and map the error directly state events to these objects.
I think that this should be possible with PowerCli so the plan was to have a script export this list frequently and run a discovery of the SCOM Agent Script to automatically create related instances. Does anyone know how this export could be made with PowerCli? Since I'm not in vmware / vsphere and we don't have a test environment, but only the Production System in our office, I am somewhat limited in trying just by the cmdlets to discover this.
No matter what pointer in the right direction which cmdlets can achieve this is as welcome as script ideas that could help me out here.
Thanks and greetings
Marco
OK, I see.
When you want to display a map, it is better to load the objects requested in advance and update them regularly.
Have you ever thought about what you want to see on the map?
A hierarchy of the sample could be
vCenter(s) <- in $defaultVIServer after a Connect-VICenter datacenter(s) <- Get-Datacenter -Server
cluster(s) <- Get-Cluster -Server resource pool(s) <- Get-Resourcepool -Location (Get-Cluster ) guest(s) <- Get-VM -Location (Get-Resourcepool ) vmhost(s) <- Get-VmHost -Location (Get-Cluster datastores <- Get-Datastore -Location (Get-VMHost ) network vswitches <- Get-VirtualSwitch -VMHost (Get-VMHost ) portgroup(s) <- Get-VirtualPortgroup -VMHost (Get-VMHost ) standalone host(s) guest(s) datastores network vswitches portgroup(s) I added some of the cmdlets that you can use to get items for a specific branch of the hierarchy.
____________
Blog: LucD notes
Twitter: lucd22
-
How can you interogate cmdlets to find all available objects?
Being a new user of PowerShell I wonder how to know what items are available in a cmdlet? I tried conducted by get - view and also custom format to find the available objects.
How did the author of this code know that what follows is available under the Config object? And how do you find all the other available objects?
$VMHostView.Config.ConsoleReservation.ServiceConsoleReserved
Using the Get-VMhost cmdlet for example, here is what I found.
Get-VMhost | Get-View
Duration: VMware.Vim.HostRuntimeInfo
Summary: VMware.Vim.HostListSummary
Material: VMware.Vim.HostHardwareInfo
Capacity: VMware.Vim.HostCapability
ConfigManager: VMware.Vim.HostConfigManager
Config: VMware.Vim.HostConfigInfo
VM: {VirtualMachine-vm-104, VirtualMachine-vm-37, VirtualMachine-vm-41}
Data store: {Datastore-datastore-13, Datastore-datastore-15}
Network: {Network-network-17, 18-network-network, network-network-19}
DatastoreBrowser: HostDatastoreBrowser-datastorebrowser-63
SystemResources: VMware.Vim.HostSystemResourceInfo
Mother: ClusterComputeResource-field-c7
CustomValue: {}
OverallStatus: Green
ConfigStatus: Green
ConfigIssue: {}
EffectiveRole: {-1}
Authorization: {}
Name: esx01.company.local
DisabledMethod: {ExitMaintenanceMode_Task, PowerUpHostFromStandBy_Task, ReconnectHost_Task}
RecentTask: {}
DeclaredAlarmState: {10 - 1.host - alarm, alarm - 13.host - 10, 10 - 14.host - alarm, alarm - 15.host - 10...}
TriggeredAlarmState: {}
AlarmActionsEnabled: true
Tag : {}
Value: {}
AvailableField: {}
MoRef: HostSystem-host-10
Client: VMware.Vim.VimClient
Get-VMhost | Format-Custom
class VMHostImpl
{
State = connected
ConnectionState connected =
PowerState receiving =
VMSwapfileDatastoreId =
VMSwapfilePolicy = inherit
ParentId = ClusterComputeResource-field-c7
Manufacturer = HP
Model = ProLiant DL380 G5
NumCpu = 8
CpuTotalMhz = 23992
CpuUsageMhz = 88
MemoryTotalMB = 8190
MemoryUsageMB = 1369
ProcessorType = Xeon of Intel (r) CPU X 5450 @ 3 .00GHz
HyperthreadingActive = False
Zone =
class VMHostTimeZoneImpl
{
VMHostId = HostSystem-host-10
Description = CDT
GmtOffset =-18000
Key = America/Chicago
Name = America/Chicago
}
Version = 4.0.0
Build = 256968
CustomFields =
[
]
ID = HostSystem-host-10
Name = esx01.company.local
}
To get all the properties of an object in PowerShell, you can use the Get-Member cmdlet. But if you want to get all subproperties that can take time. Fortunately, there are scripts that you can use to do this all at once. For example, take a look at the Get-ALLPropertyNames function on the list of all properties and subproperties of a variable in Powershell.
Best regards, Robert
-
Help! All the objects on a layer are framed in red
I'm in the middle of a picture and all of a sudden all the objects on a layer are framed in red. These aren't the stroke, but rather it is as if I am the display mode overview and overview at the same time. I searched the forums, but I can't find anything that looks like what I see.
You use maybe plug-ins? Which?
Is one of the layers has a appearance which causes the stroke to appear? You can see in the target symbol
-
query: find all the rows that are not separate
Hi first of all I am not dba nor have much experience of fancy requests so be gentle
Im trying to find all the lines that have a non-distincte value in column "C".
Therefore, if the values in the column 'C' where:
4
54
33
4
1
9
9
the query returns 4 and 9
I made this request:
Select t.c
table t
where 1 <)
Select count (c)
table
where c = t.c)
but this looks like n ^ 2 complexity that is too long for the size of this table
is there a better way?
Thank youselect * from (select t.*, count ( * ) over (partition by C) cnt from table1 t) where cnt > 1
-
Find all the lines from the previous column value difference lines
I have an interesting requirement. There is a DATE column and a user in one table and I have to find all the lines for all users for which the previous and the current line has lagged in lets say more than 30 minutes. The rows are already sorted in time.
For example in the following table, we need to ID 4 and 6 for user 1.
Date of the user ID
1 1 today 1 hr. 0 Min. 0 sec.
today 2 1 1 hour 1 min 0 sec
Today 3 1 1 hour 29 min 0 s
* 4-1 today 1 hour 59 min 3s *.
5 1 today 2 hours 10 min 2 sec
* 6 1 today 2 hours 50 min 7 s *.
Published by: user733179 on March 5, 2009 12:00Hello
To obtain a separate calculation for each value of the usr, start the analytical clause with "BY usr PARTITION":
WITH got_dif AS ( SELECT id, dt, usr , (dt - LAG (dt) OVER ( PARTITION BY usr ORDER BY dt ) ) -- difference in days * 24 * 60 AS minutes_dif FROM table_x -- WHERE ... -- if needed ) SELECT id, dt, usr FROM got_dif WHERE minutes_dif > 30 ;
-
How can I find all the plugins in the firefox browser
HI I was wondering if I could ask a question how can I find all the installed plugins in the firefox lasted I would like to be able to know if, for example, if the shockwave plugin is updated and which version is currently installed in the firefox browser lasted.
Thank you
Hello Funny78, type Subject: addons in the address bar and then select plugins, add-ons manager opens and you can see the last version of the plugins (and other info), now click on the click to see if your plugins are up to date and see if it is.
Thank you
-
Where can I find all the drivers Win 7 for Satellite L40 - 14F
Hi all
Find all the drivers for L40 laptop model 14F for windows 7 OS? Is that someone has installed this OS? Is it possible to have some problems during installation? Thank you very much.Most of the new models is Win8 or Win10 models, they won't get Win7 drivers available.
-
Satellite Pro L40 PSL43E I need to find all the drivers XP
I need to find all the XP drivers for this laptop in particular. Any ideas where I can find them. on this site, I get only the ' how downgrade "Pease help ASAP.
If these drivers are available, you will be able to find these drivers on the European driver Toshiba page.
If the drivers are not available on the European driver Toshiba page, the pilots were not released.
But I have a suspicion; I found some XP for Sat L40 series drivers. Some series supports the same devices and so the drivers should work also.
Check some unique XP from different L40 series drivers and maybe he would go.Ciao
Maybe you are looking for
-
I know how to use the BCC field so that the recipients do not see THE names, but I wish that each recipient to see their own name, but none of the others. Is this possible?
-
I bought my NB500 5 days ago and have had constant wifi connection problems. Repeatedly, he abandoned the connection to my Belkin N1 router, also knocking out the connection to other devices - smartphones & a digibox. I tried the Toshiba web site and
-
How to generate a format with special values
Hello I'm new to Labview. Now I have a task that require me to develop a VI. This Vi can save the value at a specific frequency like the following table: V1out V2out Frequency (kHz) Ratio 458,5 456,2 1.0 0.99 456,2 453.3 10.0 0.99 450,9 444.5 100.0 0
-
I don't know how it happened, but the blue bar, I think he called a toolbar, which usually just runs along the bottom of my screen suddenly popped up and is now vertically on the left side of the screen. Help, please
-
Impossible to update GFWL, error 0 x 80072751
I can log into GFWL through Dark Souls, but when it's time to upgrade GFWL just refuses and gives me an error code 0 x 80072751 I tried everything said in this forum Opening ports Disable the firewall/antivirus Reset TCP/IP Count abuse in services.ms