Listing objects in a tablespace
Hi All,
I am planning to drop some of the tablespaces from DB and I want list and need to know what are the objects present in the tablespaces, is this possible?
I tried with dba_tables, dba_tablespaces but couldn't proceed with it.
Please help me out.
Thanks
Hi,
dba_tables will just tell you the tables in that tablespace. To see all the objects:
SELECT DISTINCT
owner
, segment_name
, segment_type
FROM dba_extents
WHERE tablespace_name = 'WHATEVER' -- Capitalization matters inside quotes
;
Similar Messages
-
Hai all,
How to findout the largest object and its size in a particular tablespace ?
is there anyway we can list out that ?
Thanks
Yusufobjects of a tablespace
List objects in tablespace
may be helpful to you. -
To capture all the objects from an tablespace and restore.
Hi All,
I have a situation in the Schema refresh process where i may have to delete a tablespace and its datafiles.
Then I have to recreate it as it was before and restore all it objects .
Is there any way that i can capture all the objects of that tablespace before it is deleted and then later restore it back as it was .
Any Expert sugggestion is highly apprciated .
The Platform is as below ..
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
PL/SQL Release 11.2.0.2.0 - Production
CORE 11.2.0.2.0 Production
TNS for Linux: Version 11.2.0.2.0 - Production
NLSRTL Version 11.2.0.2.0 - Production
Thanks In Advance .There are 2 methods you could use with Data Pump.
1. tablespace mode export. expdp user/password tablespaces=<your list here> ...
2. transportable tablespace mode. expdp user/password transport_tablespaces=<your tablespace list here> ...
NOTE: for #2, you need to have your tablespaces in read only mode, then you need to copy the data files, and the
tablespaces need to be self contained.
Hope this helps.
Dean -
Hi,
1-how can I see the objects of a tablespace ?
2-does TEMP tablespace contain any object ? How to see ?
Thanks.Many thanks but :
SP2-0734: unknown command beginning "'free spac..." - rest of line ignored.
SP2-0734: unknown command beginning "' ' object..." - rest of line ignored.
SP2-0734: unknown command beginning "file_id, /..." - rest of line ignored.
SP2-0734: unknown command beginning "block_id, ..." - rest of line ignored.
SP2-0044: For a list of known commands enter HELP
and to leave enter EXIT.
SP2-0734: unknown command beginning "CEIL(block..." - rest of line ignored.
SP2-0734: unknown command beginning "from dba_f..." - rest of line ignored.
SP2-0734: unknown command beginning "where tabl..." - rest of line ignored.
SP2-0042: unknown command "union" - rest of line ignored.
SP2-0044: For a list of known commands enter HELP
and to leave enter EXIT.
SP2-0734: unknown command beginning "substr(own..." - rest of line ignored.
SP2-0734: unknown command beginning "substr(seg..." - rest of line ignored.
SP2-0734: unknown command beginning "file_id, /..." - rest of line ignored.
SP2-0734: unknown command beginning "block_id, ..." - rest of line ignored.
SP2-0044: For a list of known commands enter HELP
and to leave enter EXIT.
SP2-0734: unknown command beginning "CEIL(block..." - rest of line ignored.
SP2-0734: unknown command beginning "from dba_e..." - rest of line ignored.
SP2-0734: unknown command beginning "where tabl..." - rest of line ignored.
SP2-0734: unknown command beginning "order by 1..." - rest of line ignored.
SP2-0044: For a list of known commands enter HELP
and to leave enter EXIT.
select tablespace_name,
ERROR at line 1:
ORA-00936: missing expression
Usage: { EXIT | QUIT } [ SUCCESS | FAILURE | WARNING | n |
<variable> | :<bindvariable> ] [ COMMIT | ROLLBACK ]
Message was edited by:
user522961 -
Move objects from one tablespace to another
Hello
Running Oracle 10g rel 2 and I would like to move all objects from one tablespace to another. There are Primary Key indexes to other tables in this tablespace. The size grew too large and I want to reduce the size.
Thank you.Good afternoom Sir!
I believe that below "ask tom - moving tables across tablespaces" may help you.
http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:47812348053
Regards,
Marcello M. -
Call Transaction from Excel VBA macro and download ALV list object results
I have a situation that must be very common u2013 but I canu2019t find any clear information on how to get it done!
We frequently run SAP transactions, download the results (orders or inventory) into Excel, do some calculations and create a spreadsheet report.
I would like to automate this process using Excel VBA so that a macro will perform these steps:
1. Run our custom SAP report "YSD033" that summarizes orders using the previous day as the [From Date] parameter. (The user already has an active ECC 6 R3 session running.) If possible, can the TC be run using a specific variant "G111BIZ" ?
2. Download the list object that appears in an ALV grid as a table to an empty spreadsheet in the active workbook (export XXL list object)
3. Save the resulting workbook and close Excel.
Should the solution use u201Ccall transactionu201D or a GuiXT script?
Any help would be much appreciated, and some sample VBA code would be great!
Thanks.
GlennGood suggestion, but
I get "permission denied" for SapGuiAuto.GetScriptingEngine
I also tried the method below, but received this RFC error message:
User PPPPPPP has no RFC authorization for function group SYST.
Sub LoginCheck()
If login = False Then
' Setting the necessary variables for R/3 connection
Set objBAPICortrol = CreateObject("SAP.Functions")
Set objConnection = objBAPICortrol.Connection
' Establish a connection
If objConnection.Logon(0, False) Then
login = True
MsgBox "Connection Established"
CommandButton1.Caption = "Disconnect"
End If
Else
CommandButton1.Caption = "Connect 2 SAP"
login = False
objConnection.Logoff
Set objConnection = Nothing
Set objBAPICortrol = Nothing
End If
End Sub
I was told that these kinds of authority open up too big of a window that can't be monitored adequately...
I'm considering an approach like what is below if I can't convince security to grant me permissions...
Application.Wait Now + TimeValue("00:00:01")
SendKeys EnterKey, False
Since blocked RFC security settings are preventing the solution from being installed, I am markgin this question as answered.
I will post different questions about 1. how to convince the security team that it will be safe to allow the use of RFC calls, and /or 2. how use some windows-level scripting code to run the SAP jobs.
Thanks.
Edited by: GlennWebster on Mar 1, 2010 4:34 PM -
How to determine the object in the tablespace
Hi
I have a problem with my database, How can i determine the object in the tablespace
and how do move old tablespace into new tablespace and how to drop existing tablespace.
ThanksHi,
If you want to find for all objects information, you can use dba_segments and filter this against the tablespace name. Once done you can create another tablespace and move the objects from old tablespace to new tablespace. Later you can drop the old tablepspace. You can use the below mention commands also:
SELECT 'ALTER TABLE '|| table_name ||' MOVE TABLESPACE USERS;'
FROM user_tables WHERE tablespace_name='MY_TableSpace';
SELECT 'ALTER INDEX '|| index_name ||' REBUILD TABLESPACE USERS;'
FROM user_indexes WHERE tablespace_name='MY_TableSpace';
SELECT 'ALTER TABLE '|| table_name ||' MOVE LOB ('
|| column_name ||') STORE AS (TABLESPACE USERS);'
FROM user_lobs WHERE tablespace_name='MY_TableSpace';
On the other hand,
You can also export a backup of the source tablespace and import into the target tablespace.
Regards,
XIC -
Concatination of 2 linked list objects of characters
Pleas help me to solve the following problem by using Java.
Problem: Write a program that concatenates two linked list objects of characters. The program should include method concatenate, which takes references to both list objects as arguments and concatenates the second list to the first list.
Thanking u,
RiponThis assumes that your class is 'ListConcatenate' and that you have set up your two link-lists.
public void concatenate( ListConcatenate l1, ListConcatenate l2)
if ( l1.isEmpty1() || l2.isEmpty2() )
System.out.printf( "Empty %s or Empty %s\n", name1,name2 );
return;
System.out.printf( "%s concatenated with %s is: ", name1,name2 );
NodeOne current1 = l1.firstNode1;
NodeTwo current2 = l2.firstNode2;
while (current1 != null )
System.out.printf( "%s ", current1.data1.toString() + current2.data2.toString() );
current1 = current1.nextNode1;
current2 = current2.nextNode2;
} -
LINQ sorting on List Object - Various Object Type
I try to sort a List<Object> where the Object are different classes but all share the same Property Name for instance.
I got a Base Class where Class A and Class B inherit from the Base Class.
So during the Linq query I cannot specify with object type this is.
Problem here "from ?????Entry_Global?????? list in Entries"
Thanks for helping.
////Entries is a List<Object> which consist of class object as following\\\\\
public abstract class EntryBase<T>
private string _Name;
public string Name
get { return this._Name; }
set { this.SetProperty(ref this._Name, value); }
public class Entry_Global : EntryBase<Entry_Global>
public class Entry_CC : EntryBase<Entry_CC>
private string _url; //Web url
public string Url
get { return this._url; }
set { this.SetProperty(ref this._url, value.Contains("http") ? value : "http://" + value); }
public List<Object> SortBy()
IEnumerable<KeyedList<string, object>> groupedEntryList = null;
//The proble reside in the fact that list is not only one type
//so when comes in the orderby "Name" it doesn't know Name
//or any other properties which are all common to all those class
//It does not want to convert Entry_CC or Entry_Global to EntryBase
groupedEntryList =
from ?????Entry_Global?????? list in Entries
orderby list.Name
orderby list.CategoryRef.Name
group list by list.CategoryRef.Name into listByGroup
select new KeyedList<string, object>(listByGroup);
return groupedEntryList.ToList<object>();Entry_Global and Entry_CC don't share the same base class since EntryBase<Entry_Global> and EntryBase<Entry_CC> are two totally different types so you cannot cast the objects in the List<object> to a common base class in this case.
You could cast from object to dynamic though:
public List<Object> SortBy()
List<object> objects = new List<object>();
objects.Add(new Entry_Global { Name = "K" });
objects.Add(new Entry_CC { Name = "A" });
objects.Add(new Entry_Global { Name = "I" });
objects.Add(new Entry_CC { Name = "C" });
var sortedObjectsByName = (from o in objects
let t = (dynamic)o
orderby t.Name
select o).ToList();
return sortedObjectsByName;
The dynamic keyword makes a type bypass static type checking at compile-time:
https://msdn.microsoft.com/en-us/library/dd264736.aspx. This basically means that a dynamic type is considered to have any property of any name at compile time. Of course you will get an exception at runtime if the type doesn't have a Name property but
providied that all objects in the List<T> to be sorted are of type EntryBase<T> you will be safe as long as the EntryBase<T> type defines the Name property that you sort by.
Please remember to close your threads by marking helpful posts as answer and please start a new thread if you have a new question. -
Moving objects from USERS tablespace
Hi All,
I want to clean my database and this involves moving all objects from USERS tablespace to their respective tablespaces. I have following types of objects in my database:
INDEX
INDEX PARTITION
INDEX SUBPARTITION
LOBINDEX
LOBSEGMENT
TABLE
TABLE PARTITION
TABLE SUBPARTITION
Syntax of moving TABLES and INDEXES is pretty simple. But, since there are other objects like TABLE PARTITION, INDEX PARTITION etc. Can anybody help me in finding out what are the syntax of all the above objects movement?
Thanks,
Danish
Edited by: Danish on Dec 5, 2008 5:19 AMHi..
You need to use the SUBPARTITION <name> instead of PARTITON<name>
For partition
ALTER TABLE parts MOVE PARTITION abc TABLESPACE xyz parallel (degree 2);
For subpartition
ALTER TABLE parts MOVE SUBPARTITION def TABLESPACE xyz PARALLEL (DEGREE 2);
This is because every segment represents one and only one type of database object,such as a table, a partition of a partitioned tables etc.For partitioned table , every partition resides in its own segment.
Anand
Edited by: Anand... on Dec 5, 2008 5:20 PM -
Drag and drop List Object[] collection
is it possible? If we combine JPA entities which are returned then we have to return List<Object[]> collection, e.g. some combination of the fields from Employees and Projects entities is returned by a service
Not sure what this question is pertaining to. Are you referring to the use of drag and drop in the context of ADF Faces RC with JPA? Or are you describing a design time issue with JPA? Please clarify.
Thanks,
RiC -
List Object or Just List which is better ?
Hi Guys,
List<Object> list1 = new ArrayList<Object>();
List list2 = new ArrayList();Logically speaking, both looks similiar. But which one is better to use ?
I can do something like
list1 = list2; OR
list2 = list1; but if List<String> list3 = new ArrayList<String>();Why I can not do this list1 = list3; // throws compilation error Thanks,
javaCrazyjavaCrazy wrote:
List<Object> list1 = new ArrayList<Object>(); This is senseless. Inside the braces an appropriate Interface should be used.
but if List<String> list3 = new ArrayList<String>(); Why I can not do this list1 = list3; // throws compilation error
If you declare <tt>List<String> list3 = new ArrayList<String>();</tt> you explicity state that the List will only contain Strings (or types that inherit from the declared type, but String cannot be subclassed), list1 is declared to contain objects of a different kind. Usually the interface of the type list1 is declare will not match with the interface declared for the elements in list3. Since Object is the root of all classes this is a weird exception... Thats why the compiler prohibits this assignment. If you really need such assignment look for the use of wildcards.
bye
TPD -
Hi!
I have a List object or component (java.awt.List) in my app.
I try to order it using Collections.sort(my_list) but I recieve this message which I dont understand:
The method sort(List<T>) in the type Collections is not applicable for the arguments (List)
By the way, I would like to order it using a numeric order, not an ascii order, so I guess I have to use "implements Comparable", but how can I use that if my List contains Strings?
I mean, my List has:
20 bla bla
9 bla bla
and I want this:
9 bla bla
20 bla bla bla
Any advice?
Thanks a lot for your time.
Edited by: Ricardo_Ruiz_Lopez on Dec 26, 2007 9:27 AMYou are mixing up two different kinds of Lists. One is the AWT List (java.awt.List) which is what you are using and can be thought of more as a visual component.
http://java.sun.com/javase/6/docs/api/java/awt/List.html
The other is the utility Collections List (java.util.List) which is purely a data construct.
http://java.sun.com/javase/6/docs/api/java/util/List.html
So, bottom line is, the Collections.sort( ) won't work with the AWT list. You'll have to extract your data model which I think may be a String[] and sort that, then possibly re-insert with add(String item, int index) (I'm not sure on this part).
Edited by: Encephalopathic on Dec 26, 2007 9:44 AM -
Remove duplicates for list object
Hi,
I have retrieved all the xml node values in List<object>. Now, I want to remove all the duplicates objects from that list.
Example:
If the object has n properties, I should remove only duplicate objects that have same values in all the n properties not just one property as ID or name. Please let me know how to achieve this. Preferably using LINQ.
Thank you.
Regards,
KiranYou can use a GroupBy. I took the code from last posting
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using System.Xml.Linq;
using System.IO;
namespace ConsoleApplication1
class Program
static void Main(string[] args)
string file1 = "<?xml version=\"1.0\" encoding=\"utf-8\" ?>" +
"<Methods>" +
"<Method>" +
"<ID>1234</ID>" +
"<Name>manager</Name>" +
"<Path>path1</Path>" +
"</Method>" +
"<Method>" +
"<ID>5678</ID>" +
"<Name>manager</Name>" +
"<Path>path2</Path>" +
"</Method>" +
"<Method>" +
"<ID>5678</ID>" +
"<Name>manager</Name>" +
"<Path>path2</Path>" +
"</Method>" +
"</Methods>";
string file2 = "<?xml version=\"1.0\" encoding=\"utf-8\" ?>" +
"<Methods>" +
"<Method>" +
"<Path>path1</Path>" +
"<Description>text</Description>" +
"</Method>" +
"<Method>" +
"<Path>path2</Path>" +
"<Description>text</Description>" +
"</Method>" +
"</Methods>";
string file3 = "<?xml version=\"1.0\" encoding=\"utf-8\" ?>" +
"<Methods>" +
"</Methods>";
StringReader reader = new StringReader(file1);
XDocument doc1 = XDocument.Load(reader);
reader = new StringReader(file2);
XDocument doc2 = XDocument.Load(reader);
reader = new StringReader(file3);
XDocument newXDoc = XDocument.Load(reader);
var results = from e1 in doc1.Descendants().Elements("Method")
join e2 in doc2.Descendants().Elements("Method")
on e1.Element("Path").Value equals e2.Element("Path").Value
select new XElement("Method", new object[] { e1.Element("ID"), e1.Element("Name"), e2.Element("Description") });
var results2 = results.AsEnumerable()
.GroupBy(x => x.Element("ID").Value);
var results3 = results2.AsEnumerable()
.Select(x => x.Take(1));
newXDoc.Descendants("Methods").Last().Add(results3);
jdweng -
Java List interface - retrieve contents of List Object?
I'm calling a method that retrieves a List object. The contents of that list are something like:
countryCode=US,countryCodeDescription=United States Of America. I want to create a key-value pair from the returned List so that my class can return a key-value map object.
The Key-Value pair I need to create should look like this:
key="countryCode=US",value="US - United States Of America"
How do I do accomplish that using Java? Any guidance is greatly appreciated.
Thanks in advance!If you use a LinkedHashMap, the order will be preserved. However, you cannot have the same key more than once. If you are using an LDAP style address, the same key might occur more than once.
Maybe you are looking for
-
Hi there. I was given an iPod loaded with hundreds of songs. I have created an iTunes account on my computer. Is it possible to add the songs from my own iTunes account onto my iPod, which was created by someone else using their iTunes account, wit
-
Apex 3.1 doesn't like passing variables to a different page than you're on
My application was working fine in 3.0, but when we upgraded it, this feature stopped working and I'm not really sure why this is the case. I looked at the security and there's no security features turned on that would seem to prevent this. I'm tryin
-
Processing/Splitting of large file
Hi, Some time ago I did post some related question. Is it possible in file2file(RFC) scenario to send an XML - file containing 1000 records to XI and split it so that there will be 1000 single output-messages written to a network destination. All of
-
Can you play pkr poker on the ipad2
can you play pkr.com poker on the ipad 2
-
Osx and xp, parallel desktop or boot camp?
Hello i use ESRI ArcMap on a windows computer and i'd like to get rid of this machine as soon as possible, 'cause it's really the only application i'm using on it. unfortunately VirtualPC was too slow to use, since the GIS-application itself already