Paintings / objects in the Tablespace

Is there a way to know which paintings / objects are present or stored in any tablespace or datafile?

Use query below to find the tables stored in a table space.

Select master, nom_segment, segment_type, ds.tablespace_name

from dba_segments ds, dt dba_tablespaces

where ds.tablespace_name = dt.tablespace_name

and ds.tablespace_name = 'USERS ';

Tags: Database

Similar Questions

  • 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
    and

    ALTER 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

  • Name of the dynamic property of object in the table based on the value of a variable

    I have two paintings of custom class objects

    var obj1:Object1
    var obj2:Object2
    
    var array1:Array = [obj1[0], obj1[1], ...]
    var array2:Array = [obj2[0], obj2[1], ...]
    

    Object1 has a property named. Name while Object2 has a property named. Title.

    Now I have a common function including cab accepts an array (array1 or array2) and the name of property the object ("Name" or "Title") as input and needs to access this name of the property of the objects in the array:

    function myFunction(arr:Array, fieldName:String)
    {
        arr[0].fieldName  = "xxx";
    }
    

    the problem I have this achievement does not because the code in the function assumes that the property of that object in the table is actually a string "fieldName" while I want to dynamically determine the names of the fields based on the value of this variable, but cannot understand the syntax to do!

    Don't know if I'm clear - hope that makes sense... ;-) Thank you

    Hey p3pp3r,

    I think I understood you. Try the following and see if you get good results:

    function myFunction(arr:Array, fieldName:String)
    {
        arr[0][fieldName]  = "xxx";
    }
    

    Let me know how it turns out. Good luck!

  • Defragmentation of the tablespaces?

    DB version: 11.2.0.4

    Platform: Oracle Linux 6.5

    3-node RAC DB

    We have a TB 23 DB, and we met some performance issues lately. Sound mainly due to poorly written queries, large volume of data in the result set,... etc. But, this application was asked at a meeting if I could check that storage space (not tables) are fragmented. Apparently, in his old store DBA there did some 'Defragmenting' of tablespaces for the same application solve some performance problems.

    To resize the data files, move to another tablespace DB objects so that the HWM in a particular data file is reset and then we could run the RESIZE command. But this isn't "defragmentation".

    In the thread below, Justin cave explains that "a managed tablespace locally cannot effectively be fragmented."

    That Justin is meant by that? Why have we not need "defragmentation" to locally managed Tablespaces?

    Since I worked on 11g, I don't know the history. Done, DBA do a sort of defragmentation for older versions?

    https://community.Oracle.com/thread/2508361

    In general, you don't need to defragment of LMT because they re - operate segments more effectively.  That assumes a particular definition of the fragmentation that don't understand what some people call "Gruyère" fragmentation, which means free space holes, spread across the tablespace.  Sometimes it is wise to reclaim this space, generally do not, since generally the trend is to use space.

    Many more details are in the link given Aman, but there are a few somewhat obscure situations where you would not automatically exclude the defragmentation:

    A tablespace that has been migrated from DMT could have a few deferred maintenance on the lookout for defragmentation.

    You might still have DMTs.  You shouldn't, but there is nothing no longer this deferred maintenance upgrades of version (I do not forget something hope).

    Some applications do stupid things like add and remove tables and if done in a strange order (as drop any other individual and adding more), can travel on limits of segment requirements (as Jonathan explains in some links on the moving objects until the beginning of storage spaces).

    It is also possible to be unlucky and have performance issues based on the distribution of physical data get worse by moving data autour.

    In general, Oracle did some good things, but be prepared to do an investigation of mind, when it is not.  It allows to be confident and knowledgeable on the bases then.  For the 'fragmentation' in particular, a Manager may well have been seduced by myths or the specific practices that don't apply generally. "Best practices" may suffer, too.

  • PeopleSoft, oracle DB. All objects in one tablespace to other movement

    Hi all

    I have a 11.2.0.3 on OEL 6.3 Peoplesoft database.

    Requirement - there was a requirement to change the tablespace UNIFORM SIZE 128 K to autoallocate extended allocation size.

    Actions-

    (a) create a tablespace of MASTER

    (b) shell script contains-

    I'm in $TBS_LIST # here TBS_LIST contains a list of tablespaces.

    do

    Summary # moving table.sql

    Set serveroutput on

    DECLARE

    TF CURSOR IS

    Select nom_segment, segment_type, owner of dba_segments where nom_tablespace = 'XXX ';

    stmt VARCHAR2 (2048);

    BEGIN

    FOR rlcRec IN tf LOOP

    If (rlcRec.segment_type = 'TABLE') THEN

    stmt: = 'ALTER TABLE' | rlcRec.owner |'. ' | rlcRec.segment_name | "move tablespace MASTER."

    dbms_output.put_line (stmt);

    -Stmt EXECUTE IMMEDIATE.

    ELSIF (rlcRec.segment_type = 'INDEX') THEN

    stmt: = 'ALTER INDEX' | rlcRec.owner |'. ' | rlcRec.segment_name | "rebuild tablespace MASTER."

    ON THE OTHER

    DBMS_OUTPUT. PUT_LINE ("UNKNOWN OBJECT");

    END IF;

    EXECUTE IMMEDIATE stmt;

    END LOOP;

    EXCEPTION

    WHILE OTHERS THEN

    DBMS_OUTPUT. Put_line ("an error occurred");

    END;

    /

    Summary # moving lobs.sql

    Set serveroutput on

    DECLARE

    TF CURSOR IS

    Select the table table_name, column_name, owner of dba_lobs where nom_segment in (select nom_segment from dba_segments where nom_tablespace = "XXX");

    stmt VARCHAR2 (2048);

    BEGIN

    FOR rlcRec IN tf LOOP

    -If (rlcRec.segment_type = 'TABLE') THEN

    stmt: = 'ALTER TABLE' | rlcRec.owner |'. ' | rlcRec.table_name: ' go LOB('|| rlcRec.column_name||') STORE AS (tablespace MASTER)';

    dbms_output.put_line (stmt);

    EXECUTE IMMEDIATE stmt;

    -stmt: = ";

    -END IF;

    END LOOP;

    EXCEPTION

    WHILE OTHERS THEN

    DBMS_OUTPUT. Put_line ("an error occurred");

    END;

    /

    (c) file the original tablespace

    (d) create the original tablspace with autoallocate option

    (e) return the MASTER tablespace tablespace original objects by using similar scripts above.

    Everything works fine and the objects are themselves moved back correctly, we are able to see objects, tables, the lobindex and the lobsegments in storage space, but when we question "select object_type, count (*) in the dba_objects where owner = group 'SYSADM' by order of object_type by object_type;" The number of object decreases after each TABLESPACE.

    Could you please shed some light on this?  Very busy tasks so he couldn't think why its happening.

    Thank you

    Bhushan has.

    user13368428 wrote:

    ...

    Here, the number of object is not changed.

    Now, a tablespace has no object.

    Drop A tablespace so that it can be recreated with autoallocate option< --="" at="" this="" point="" the="" object="" count="" is="">

    ...

    Please, show us queries that you use for each and every one of these steps.

    In addition, you are on 11.2, this means an object may or may not have a segment based on the DEFERRED_SEGMENT_CREATION init parameter (TRUE |) FALSE, TRUE by default), or how the object was created. Your script may fail to see objects with no segments (the scenario is based on dba_segments), but your account is based on dba_objects...

    Basically, after A move to MASTER, the number (on dba_objects) does not change because the empty segment objects are still there (dba_objects). Once the tablespace is deleted, objects from empty person to load (without segments) are also deleted, result: the count on dba_objects is declining.

    Nicolas.

  • collect statistics for the tablespace

    Friends...

    OS: Linux

    DB: 11 GR 2

    Data size: 1 TB

    I spend monthly multiple partitioned table spaces and bring together in a single annual partition. (for example tbs_2014_01, tbs_2014_02 - tbs_2014_12... all combine them into tbs_2014 as a tablespace)

    Over the weekend, work of database gets executed that collects statistics that are obsolete, it collects all the segments that have been moved from the storage.

    Given that the collection of statistics at the end of the week takes too long, I tried to find a smart way to collect statistics after each tablespace move rather than waiting for job to weekend which will take two or three days to complete.

    1. is there a way to gather statistics at the tablespace level and collect statistics for all objects in this table space?

    2. how to determine the overall stats of collection of statistics part?

    That is, suppose I have move the tbs_2014_01 tablespace and collect statistics with global stats that could take 2 hours but it will be difficult to spend 2 hours for each stats global tablespace which in my opinion is not good and we should be collecting global stats only once.

    3. any other advice?

    977272 wrote:

    @sol.beach... Thanks for your comments...

    I've not been asked to collect statistics to the tablespace but level to collect statistics after that finish objects move in storage.

    Given the size of the data, it is difficult to gather all the statistics at the weekend so trying to understand another method to collect the statistics the weekend load will be less.

    You can collect statistics object on an object by object basis level after that each object has been moved.

  • ORA-00959: NSN_2 tablespace does not exist... But the tablespace is defined in the user temp script

    WHEN I SPEAR IMPDP I GET AN ERROR ABOUT "THE TABLESPACE DOES NOT EXIST.

    THIS space of STORAGE IS in FACT is MORE PRESENT on THE SYSTEM, BUT IT IS DEFINED IN the User1 SCRIPT

    IS there ANYWAY THAT I CAN ASK HIM don't GET THIS TEMP TABLESPACE

    or

    is there anyway I can remove the definition of the user (User1) NSN_2

    OR

    should I just re-create the NSN_2 tablescape

    HELP NEEDED PLS...

    DROP USER CASCADE USER1;

    CREATE THE USER1 USER

    IDENTIFIED BY < password >

    NSN_1 DEFAULT TABLESPACE

    TEMPORARY TEMP TABLESPACE

    -2 Tablespace quotas for User1

    ALTER USER USER1 QUOTA UNLIMITED ON NSN_1;

    ALTER USER USER1 QUOTA UNLIMITED ON NSN_2;                -point in contention

    Directory of Impdp User1/password = dump_dir dumpfile = logfile = LOG.log remap_schema user2.dmp = USER2:USER1 remap_tablespace = NSN_4:NSN_1

    Table main "USER1". "' SYS_IMPORT_FULL_01 ' properly load/unloaded

    Departure "USER1". "' SYS_IMPORT_FULL_01 ': User1 / * directory = dump_dir = setup_02102012.dmp = logfile dumpfile tries .log remap_schema = remap_tablespace of installation: USER1 = NSN_4:NSN_1

    Processing object type SCHEMA_EXPORT/USER

    ORA-31684: USER object Type: 'USER1' already exists

    Processing object type SCHEMA_EXPORT/SYSTEM_GRANT

    Processing object type SCHEMA_EXPORT/ROLE_GRANT

    Processing object type SCHEMA_EXPORT/DEFAULT_ROLE

    Processing object type SCHEMA_EXPORT/TABLESPACE_QUOTA

    ORA-39083: Type as tablespace_quota cannot be created with the object error:

    ORA-00959: tablespace "NSN_2" does not exist

    Because sql is:

    REPORT THE NUMBER OF TEMP_COUNT;   SQLSTR VARCHAR2 (200); BÉGIN SQLSTR: = ' ALTER USER 'USER1' QUOTA UNLIMITED ON 'NSN_2 ';  RUN IMMEDIATELY SQLSTR; EXCEPTION, THEN THAN OTHERS SO IF SQLCODE =-30041 THEN SQLSTR: = ' SELECT COUNT (*) OF USER_TABLESPACES WHERE NOM_TABLESPACE = "NSN_2" AND CONTENT = "TEMPORARY"';      RUN IMMEDIATELY SQLSTR IN TEMP_CO

    Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA

    Object type SCHEMA_EXPORT/SEQUENCE/SEQUENCE of treatment

    Object type SCHEMA_EXPORT/TABLE/TABLE processing

    ORA-39083: TABLE object type: "USER1". "" AVAIL_BY_OPTION_REF "impossible to create with the error:

    ORA-00959: tablespace "NSN_2" does not exist

    Impdp transform = segment_attributes

    Smit

  • Diffrence between the tablespace is ONLINE and READ WRITE?

    Hi all

    I'm very confused on the tablespace is ONLINE and READ WRITE?

    Some say that if the tablespace is online, this means that its READ WRITE and when its offline then its READ-only.

    So, what is the difference between them:

    ALTER TABLESPACE offline tablespacename; -> done mean READ only now?

    ALTER TABLESPACE tablespacename online; -> is it means its READ WRITE now?

    If Yes, then what is the use of the following command if above 2 commands? :

    ALTER TABLESPACE tablespacename [READ ONLY |] READING WRITING];

    Kind regards

    Confused Ritu

    In addition, when the tablespace is offline, objects belonging to those who are not available for use to users. You wouldn't be able to query for objects in a tablespace offline.

    When the tablespace is read only - no write operation cannot be performed i.e. etc. INSERT/UPDATE/DEL. Oracle says that read-only tablespaces provides a way to protect the historical data so that users cannot modify it. You can drop objects, such as tables or indexes, to a tablespace read-only, but you can't create or modify objects in a tablespace read only

    In order to bring a tablespace OFFLINE to ONLINE - so that it is available to users, you must "ALTER TABLESPACE online tablespacename" command. A tablespace online can be READ ONLY or READ WRITE mode.

  • Add the object in the list

    Hi how are you guys? I hope you all well...

    here...

    IAM trying to show the list items in the list... but I couldn.t here

    first I created the object and the array object

    var za:int = 0

    var itemsinfo:Object = new Object()

    var da: Array = new Array (100)

    ...

    then in another place, I set the properties for the object, andi made paintings objects like this

    Itemsinfo.name1 = new Array()

    Itemsinfo.price1 = new Array()

    After that i, ve packed 2 text boxes, one for the value of the element and the second for the price

    additemsvar = additems.text

    addpricevar = int (addprice.text)

    then I checked the values in the object

    for (var z: itemsinfo String) {}

    trace (z + ":" + itemsinfo [z])

    }

    and everything is good, but the problem is when I add these berries to the list object, it doesn, t work

    i.ve tried with 3 deffrent ways

    ListBox1.AddItem ({label: String (itemsinfo.name1 [za])}) //displaying not defined in the list

    listBox1.AddItem ({label: (itemsinfo.name1 [za])}) //displaying nothing and it just take a place

    listBox1.AddItem (itemsinfo.name1 [za]) / / nothing happened

    Thank you

    Itemsinfo.name1 is initialized (in a table), but contains no items for the zero element'th will be undefined.

  • Create the object on the table of the default user space only

    Hi all

    Is any way I can limit a user to create tables rather THAN on the system tablespace, not counting that change the quota 0 on system M user?

    Can I restrict a user to create objects only on its own default tablespace?
    change the quota user 0 M on < all other tablespaces except default user >?

    Thank you.

    Hello

    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    
    SQL> create user ann identified by "ann" account unlock;
    
    User created.
    
    SQL> grant CREATE SESSION to ann;
    
    Grant succeeded.
    
    SQL> grant CREATE TABLE to ann ;
    
    Grant succeeded.
    
    SQL> conn ann/ann
    Connected.
    SQL> create table t1 (col1 int);
    
    Table created.
    
    SQL> create table t2 (col1 int) tablespace system;
    
    Table created.
    
    SQL> select TABLE_NAME, TABLESPACE_NAME from user_tables;
    
    TABLE_NAME                     TABLESPACE_NAME
    ------------------------------ ------------------------------
    T1                             USERS
    T2                             SYSTEM
    
    SQL> select * from session_privs;
    
    PRIVILEGE
    ----------------------------------------
    CREATE SESSION
    CREATE TABLE
    
    SQL> show user
    USER is "ANN"
    SQL> insert into t1 values (1);
    insert into t1 values (1)
                *
    ERROR at line 1:
    ORA-01950: no privileges on tablespace 'USERS'
    
    SQL> insert into t2 values (1);
    insert into t2 values (1)
                *
    ERROR at line 1:
    ORA-01950: no privileges on tablespace 'SYSTEM'
    
    SQL> alter user ann quota 10m on users;
    
    User altered.
    
    SQL> select * from DBA_TS_QUOTAS
      2  where tablespace_name='USERS';
    
    TABLESPACE_NAME                USERNAME                            BYTES
    ------------------------------ ------------------------------ ----------
     MAX_BYTES     BLOCKS MAX_BLOCKS DRO
    ---------- ---------- ---------- ---
    USERS                          ANN                                     0
      10485760          0       1280 NO
    
    SQL> insert into t1 values (1);
    
    1 row created.
    
    SQL> insert into t2 values (1);
    insert into t2 values (1)
                *
    ERROR at line 1:
    ORA-01950: no privileges on tablespace 'SYSTEM'
    

    Oracle - possibility to create a segment, perhaps with option different option of creations of segment. You can not insert in the segment until you have the opportunity on the tablespace. I hope that you understood.

    Note: try to provide the version number of oracle's four-digit

    -Pavan Kumar N

    Published by: pounet on March 14, 2011 12:34

    Published by: pounet on March 14, 2011 12:36

  • Question about AUTOALLOCATE and UNIFORM in the tablespace management

    Good afternoon

    I'm unclear as to if a UNIFORM extent allocation means that the data file must be manually extended or not.

    Documentation:

    >
    The following statement creates a managed tablespace locally named lmtbsb and specifies AUTOALLOCATE:
    Lmtbsb CREATE TABLESPACE DATAFILE ' / u02/oracle/data/lmtbsb01.dbf' SIZE 50 M
    EXTENT MANAGEMENT LOCAL AUTOALLOCATE;

    AUTOALLOCATE causes tablespace system managed with a volume of minimum extent of 64K.

    The alternative to AUTOALLOCATE is UNIFORM. who says that the tablespace is managed with uniform size extents. You can specify the size of the uniform SIZE clause. If you omit the SIZE, the default size is 1 M.

    The following example creates a tablespace with uniform extents of 128 K. (In a database with 2 K blocks, each would amount to 64 blocks of data). Each measure 128K is represented by a bit in the bitmap extent for this file.
    Lmtbsb CREATE TABLESPACE DATAFILE ' / u02/oracle/data/lmtbsb01.dbf' SIZE 50 M
    EXTENT MANAGEMENT UNIFORM LOCAL 128K SIZE;
    >

    It is clear that the clause UNIFORM control the size of the scope which will be awarded, but doesn't really say if these will be assigned manually or automatically. In other words, I'm not clear as to whether or not the data in the second case file will be automatically extended.

    In my test environment, when I published the command:
    SQL> create tablespace largetabs datafile 'E:\Oracle\app\Private\oradata\dbca\largetabs.dbf' size 100M extent management local uniform size 16M;
    and only looked into the tablespace EM I had created above, there is no check mark in the box "Automatically extend datafile when full", which led to the doubt that I have now.

    Is: during the extended allocation is UNIFORM, this means that space must be allocated manually or can the renewed automatically datafile? If it can be automatically extended, I would appreciate an example of a create tablespace command that allows to achieve this result.

    Thank you for your help,

    John.

    John

    There is nothing relationship extended datafile and management extend way (autolallocate or manually-uniform). See below

    SQL*Plus: Release 10.2.0.1.0 - Production on Sun Sep 12 22:47:15 2010
    
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    
    SQL> select name from v$datafile;
    
    NAME
    --------------------------------------------------------------------------------
    
    D:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\SYSTEM01.DBF
    D:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\UNDOTBS01.DBF
    D:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\SYSAUX01.DBF
    D:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\USERS01.DBF
    
    SQL> create tablespace largetabs datafile 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST
    \largetabs.dbf' size 100M extent management local uniform size 16M;
    
    Tablespace created.
    
    SQL> desc dba_data_files
     Name                                      Null?    Type
     ----------------------------------------- -------- ----------------------------
    
     FILE_NAME                                          VARCHAR2(513)
     FILE_ID                                            NUMBER
     TABLESPACE_NAME                                    VARCHAR2(30)
     BYTES                                              NUMBER
     BLOCKS                                             NUMBER
     STATUS                                             VARCHAR2(9)
     RELATIVE_FNO                                       NUMBER
     AUTOEXTENSIBLE                                     VARCHAR2(3)
     MAXBYTES                                           NUMBER
     MAXBLOCKS                                          NUMBER
     INCREMENT_BY                                       NUMBER
     USER_BYTES                                         NUMBER
     USER_BLOCKS                                        NUMBER
     ONLINE_STATUS                                      VARCHAR2(7)
    
    SQL> select AUTOEXTENSIBLE from  dba_data_files where  TABLESPACE_NAME=upper('la
    rgetabs');
    
    AUT
    ---
    NO
    
    SQL> create tablespace largetabs1 datafile 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\TES
    T\largetabs1.dbf' size 100M extent management local AUTOALLOCATE ;
    
    Tablespace created.
    
    SQL> select AUTOEXTENSIBLE from  dba_data_files where  TABLESPACE_NAME=upper('la
    rgetabs1');
    
    AUT
    ---
    NO
    
    SQL>
    

    These parameter, then use to know how to extend automatically allocate size by oracle or manually size by before defined number. All these to sometimes as documentation written as

    If you are planning that the tablespace contains objects of various sizes, requiring many scopes with varying degrees > sizes, then AUTOALLOCATE is the best choice. AUTOALLOCATE is also a good choice if it is not important for > you have much control over the allocation of space and the deallocation, because it simplifies the management of the table space. A space may be wasted with this parameter, but the advantage of having the Oracle database manage your space > probably outweigh this disadvantage.
    If you want exact control on unused space, and you can predict exactly the space to allocate for a > object or objects and the number and size of extensions, and then UNIFORM is a good choice. This setting ensures > you'll ever unusable space in your tablespace.

  • What is the reason for the tablespaces exist?

    Hello

    If I can store in a tablespace of data of different users / schemas / apps and also a user data / shema / application in several storage spaces. What is the meaning of a tablespace?

    What is the reason for the tablespaces exist? Only to assign the storage space and know where are the objects of the user? Is it not possible to work with data directly files instead of doing with the tablespaces?

    I'm afraid I'm too philosophical today but I do not understand why the structure of the tablespace.

    Hello

    Apart from the above, I'll add the storage capacity of a Tablespace.

    A Tablespace usually (default is a petit_fichier Tablespace) can have up to * 1022 * data files. And (in the case
    petit_fichier Tablespace) each data files can be big 4 MBlocks.

    So if your db_block_size is 8 KB your Tablespace can store up to 1022 x 4 M x 8 KB ~ 32 to data.

    More, these 1022 data files can be located on separate disks. So it can give you plenty of opportunity.

    However, from 10g you have a new type of Tablespace: bigfile Tablespace.

    Bigfile Tablespace has only 1 data file, but it can reach 4 GBlocks. So finally this Tablespace can store
    also 32 to (for 8 KB db_block_size) but, ensure you that your OS platform and system disk can support
    a big Datafile.

    The syntax for the statements that manage the data of a bigfile Tablespace file are too different. In fact, you can
    manage this data at the level of the Tablespace file.

    Please find attached a link to bigfile Tablespace:

    [http://download.oracle.com/docs/cd/E11882_01/server.112/e10595/tspaces002.htm#ADMIN01102]

    Best regards
    Jean Valentine

  • contents of the tablespace

    Hello

    Please I need your help becomes a list of all the objects (tables, functions, procedures, another one...) that leave them on a specific tablespace,.
    I need to remove storage spaces, but before doing so I need to enumerate the hat of those objects exist on a specific tablespace, n move them before giving up the tablespace
    Thank you very much
    Select segment_type, segment_name
    from dba_segments
    where tablespace_name='MYTBS';
    

    Procedures, functions, and all the other PL/SQL code is located in the SYSTEM tablespace.

    Max
    [My Italian blog Oracle | http://oracleitalia.wordpress.com/2010/01/10/crittografia-in-plsql-utilizzando-dbms_crypto/]

    Published by: Massimo Ruocchio, January 12, 2010 12:14
    Additional storage of pl/sql code

  • Unlimited on USERS quota of USERS of the tablespace default ALTER USER &lt; schema &gt;

    Hi all

    I got a schema called dmuser1 which I had assigned to tablespace "odmperm."
    now, I was running short on space in the drive on which oracle is installed and
    There was a 'odmperm' tablespace data file,
    so I thought to drop the tablespace "odmperm" and the corresponding data file,
    so I modified the schema dmuser1 to point to the USERS tablespace in the race code below

    ALTER USER dmuser1 quota default tablespace USERS unlimited USERS.

    so I ran
    Select * from dba_users;

    Here user dmuser1 had changed users tablespace, so I used the command to remove the file from the data below

    DROP TABLESPACE INCLUDING CONTENTS ODMPERM;

    now, when I log in the dmuser1 schema, none of my paintings are present and I don't have the backup too, so please help me solve this.


    Please, I beg you.

    Thanks in advance.

    You are out of luck - the paintings disappeared and without backup or export, you will get their return. If you still have the data file on the file system, contact the Oracle Support and ask DUL - that is if you have a support contract. No other chance, I'm afraid. Your command alter user only had an effect for future tables :-(

  • organize data for the tablespace files

    Hi all

    I would like to ask you if you have a way to organize a tablespace (especially USERS) using 10 data into 1 single file of data files.

    You have a way to reorganize a database during the work day, so the watermark will go down, but without making a copy of storage space?

    Thank you for taking my question into consideration.

    Concerning

    Hello
    I suppose that, if I understand you correctly as a Remap_tablespace with a Tablespace rename DataPump could help you.
    This,
    (1) create a tablespace again with a single good size in data file to hold your all objects. You may need to calculate the size of the data file.
    (2) export all the objects, or better, the schema itself, of the current storage space, we call it source at this time using data pump.
    (3) using the DP import, import the given in the new tablespace, we call it target with option Remap_tablespace = Source: target.
    (4) once done successfully, drop the tablespace from source.
    (5) and rename the target source.
    You would get a tablespace with a data file and all the objects inside.
    HTH
    Aman...

Maybe you are looking for

  • Lost the 'new tab' on Firfox 7.0.1

    Toady when I started Firefox I lost the 'new tab' which is indicated by a small tab that the other and with just a '+' in it. If I disable all plugins, the tab '+' appears. If I try to disable the plugins manually I can't it to appear. Y at - it a se

  • WRT310N access to wireless hooked up in tandem with the modem router cable

    I have a Linksys cable modem set up and hanging the WRT310N to it. I am able to access the internet via the wireless router, but I can't seem to access web access the router. I want to update the firmware on the WRT310N, but I can't access the admin

  • Driver for the Officejet 710 under Windows 7 64-bit

    Where can I find a driver to run my old Officejet 710 on my Windows 7 laptop? It is connected via the Generic USB-parallel adapter.  The connect Windows successfully installed"assumption of the USB printer"but fails to find a printer driver on Window

  • Problem in createLinearGradientBackground()

    I use the following method to set the background color. I have a value R, B and B for the color I want. But how can I convert to 32-bit 0x00RRGGBB. public static Background createLinearGradientBackground(int colorTopLeft, int colorTopRight, int color

  • Files of multiple messages blackBerry Smartphones

    I have a message file / icon I'd like to remove.  This message file has my log of the calls and emails together.  I put in place of the individual files/icons for my journal of calls and e-mails.  However, this message file continues to count of unre