Tablespace exp

Hi
I have saparate tablespace for data and index....(oracle9i)
allocated size of my data tablespace is 8 gb, but used is only 2 gb(from dba_segments),
if i m trying to resize the datafile by 3 gb it it giving error saying
ORA-03297: file contains used data beyond requested RESIZE value
i think this is because of HWM is set high...m i correct...
to solve this problem i'll take tablespace dump, create new tablespace with size 2 gb and impot the dump...(is there any another way to solve this problem)
so my que. is wat happend to my indexes and constraints which are in different tablespace.....?

Since you are 9i you should use the ALTER TABLE MOVE TABLESPACE method, create an intermediate tablespace to hold the data or simply move all tables to new tablespace.
alter table scott.table1 move tablespace new_tablespaces;remember to rebuilt indexes after move, this is table care the index tablespace reorg too.
Also remember recollect statistics of schema

Similar Messages

  • Tablespace vs transport tablespace exp

    i am confuse in both cases
    what the diffrence between these two
    tablespace exp vs transport tablespace
    acc to me
    tablespace export is much easer then transport tablespace just as table export
    but in transport tablespace we can also copy dbf file.
    which one is more appropriate?
    kuljeet pal singh

    Unlike regular exports, transportable tablespace exports are intended for moving data between tablespaces, and generally have no backup/recovery value.
    When performing a transportable tablespace export, the only information exported from the database is the Metadata about the tablespace. Because of this, the tablespace or tablespaces must be self-contained and have no relationships outside of the tablespace (FK, Indexes etc). There are other restrictions then this please consult the documentation.
    A transportable tablespace export allows for a very quick export with a correspondingly small file.
    Once the export is complete, the datafiles associated with the tablespace are copied to there new location (tablespace must be in read only mode when performing this).
    Please note, that if you are planning to use this method for database refreshes, the existing tablespace in the target database must be dropped before being reimported.
    For more information please consult the documenation.

  • Tablespace exp imp 11G

    I have problem,
    I want to imp file.dmp to schemauser
    schemauser have tablespace default USERS
    then I exp schmeauser from my pc. I named file.dmp
    then when
    I imp from other pc,
    I have prepare for schmeausernew with tablespace default tbspace.
    when I imp the data I suprise with my default tablespace tbspace not using.
    But my imp it take a place in USERS.
    Sow my question is, How to imp automaticly to my default tablespace tbspace ???
    I don't want to alter table tablespace when I must one by one and also my index.
    Thanks.
    for Supporting.

    Exp/Imp with tablespace autocreate?
    imp user/pass tablespaces=dbtothis FULL=Y
    Why still not into tablespace=dbtothis.
    Still in Tablespace users
    Thanks.
    For help me.

  • Exp  tablespace as sysdba

    I am using the following to exp a tablespace
    exp /'username/password as sysdba/' transport_tablespace=y
    tablespaces=user
    the error i am getting is telling me that 'as ' is not a parameter.

    If there isn't a particualr reason why you're trying to export "as sysdba", then you could always just create a new user and grant that user exp_full_database, imp_full_database privileges (along with connect and resource, and if using 9i be sure to grant SELECT ANY SEQUENCE also).
    Then you won't need to export using the 'as sysdba' thing. This will solve the problem, but if you're looking for an explaination about 'why' your other method failed, you'll have to keep asking because I don't know.

  • Exporting tablespace

    Hi all,
    I want to export a tablespace from Oracle 10g DB on HP-UX environment and import the same tablespace into new database (Oracle 10g) on Windows 2003 server environment.
    pls. give me suggestions step by step to do this.
    thanks and regards

    Hi Sybrand,
    sybrand_b wrote:
    He doesn't state he wants to move a datafile, that's your interpretation.Okay, that's correct I did assume this and only OP can clear his requirment :) .
    Anyway, expdp can export a tablespace, exp can't.Hmm I am not sure that I did get it, its possible from exp/imp as well isnt it but not on cross platform? The tablespace parameter which is there in the datapump is to move the objects from one tablespace to another within the same db , isn't that correct?
    http://download.oracle.com/docs/cd/B10501_01/server.920/a96652/ch01.htm#1006961
    Regards
    Aman....
    Edited by: Aman.... on Aug 30, 2010 10:36 AM changed the first line a bit

  • Problem installing additional options after upgrade to 8.1.7.4

    Hi all,
    the installer gives me a bit of a problem. I installed 8.1.7 without intermedia and upgraded the installation to 8.1.7.4.
    Now I need to install intermedia onto the same ORACLE_HOME. I do this from the 8.1.7.0 cd-rom.
    But before I can select only to install intermedia, the installer says that there is an higher version of the database installed in de ORACLE_HOME and the installer can not continue and suggests to install into a different ORACLE_HOME.
    I tried to install from the 8.1.7.4 staging area, but that way one can only upgrade allready installed opptions.
    The only option I have left to try is to install into a different ORACLE_HOME and manually copy everything into the exsisting ORACLE_HOME. But I'm affraid that would leave me with a buggy installation (the installer not knowing what is going on and such).
    I'm sure I'm not the first to do this.
    Ideas anyone?
    TIA
    Robin Betjes

    Might as well respond to my own posting, since this is still at the top of a google search for UTL_NLA invalid.
    The only solution is to either use transportable tablespaces , exp/imp, or expdp/impdp to move your data over to a fresh 10.2.0.3 or 10.2.0.4 system. The problem occurs due to database originally in 32-bit mode being upgraded to 64-bit 10.2.0.3 prior to applying 10.2.0.3 patches 5892355 and 5871314. Applying these two patches after you have already upgraded it 10.2.0.3 will not help. The corruption enters during the Oracle upgrade process and once present is unfixable. We pushed oracle support for a long time but never got a workable fix.

  • Export with wildcard characters and dependant objects

    I need to take export backup for transaction tables starts with 'T%' associated with one of the tablespace test. There are other tables like start with 'H%' associated for the same tablespaces.
    exp jtest/jtest file='/u01/app/oracle/oradata/test.dmp' log='/u01/app/oracle/oradata/test.log' consistent=y tables=t%
    I can take simply export backup using 'T%' but I wanted to take export backup for all other assocated objects like index,view,triggers,functions etc. at the same time.
    I can go for user-wise export but I wanted to take backup for 'T%' tables and other objects as mentioned in the dump file.
    Can you suggest me the best way to perform this job?

    Hi,
    You have to build parameter file using SQL like this, on your required tables.
    SET HEADING OFF
    SET FEEDBACK OFF
    SET PAGESIZE 0
    SPOOL &1\list.txt
    PROMPT TABLES=(
    SELECT TABLE_NAME||','
    FROM USER_TABLES
    WHERE TABLE_name NOT IN (..., ..., ...)
    ORDER BY TABLE_NAME
    PROMPT )
    SPOOL OFF
    I call this script with sqlplus, it create a file
    list.txt that I use in the export:
    exp user/pass@sid file=list.txt <more parameters...>
    Dilipkumar Patel.

  • How to imp database for a recover

    Hi Experts,
    We have a database as oracle10G R4 in 32 bit window.
    I makk a full database exp as a backup.
    At the present, i find some data file is missing in user dev tablespace.
    My question, we do not have a schema or tablespace exp dump file.
    For exiting DB, Do we need to drop all tablesapce (include sys tbs) and recreate tablespaces for imp full database recover?
    Thanks for help!
    JIM

    Hi,
    If you have a full database export, you can perform a full, table, schema, or tablespace import from this. If you want to just recover a tablespace, then you would want
    1. drop that tablespace from the database
    2. create the tablespace as you want it
    3. run import with a tablespace filter:
    impdp user/password directory=your_dir dumpfile=your_dumpfiles tablespace=your_tablespace ...
    Dean

  • Export Full

    Hi.
    I'm running Oracle 9.0.1 on Linux. I have problem when I try export full my DB. I only can export when I use owner='USER'. It's run sucessfull. But I try export full I don't get.
    The log when export full is:
    (c) Copyright 2001 Oracle Corporation. All rights reserved.
    Export: Release 9.0.1.0.0 - Production on Ter Out 1 10:05:28 2002
    Conectado a: Oracle9i Enterprise Edition Release 9.0.1.0.0 - Production
    With the Partitioning option
    JServer Release 9.0.1.0.0 - Production
    Exportagco executada no conjunto de caracteres de WE8ISO8859P1 e no conjunto de caracteres de UTF8 NCHAR
    Sobre exportar o banco de dados inteiro ...
    . exportando definigues de tablespace
    EXP-00008: Erro Oracle: 3113 encontrado
    ORA-03113: fim de arquivo no canal de comunicagco
    EXP-00000: Exportagco encerrada sem jxito
    Please, what do I do? I need to do export full...
    Thanks in advance.

    Your question is related to exp/imp utilities which come along with the database. Whereas this forum exclusively is meant to deal with the Export/Import utilities of Oracle Portal which is a web-based product.
    Could you please post your question under the Oracle RDBMS utilites forum ?
    Thanks.

  • Exp/imp not going to default tablespace

    Hi all..
    i m using 8i
    and i m taking export of one schema by using these command.
    exp TEST/TEST file=TEST.dmp log=TEST.log buffer=10240000
    and importing
    imp TEST/TEST file=TEST.dmp log=imp_test.log full=y buffer=1024000
    i have created seprate tablespace for test user and test user's default tablespace is also test.
    but when i m importing test schema its going to other tablespace..
    how can i take export of one schema and import into other schema and all objects during import should go into defalut tablespace. ???
    can i do it using sys... ???

    how can i take export of one schema and import into other schema and all objects during import should go into defalut tablespace.Only way is prior to import CREATE empty objects in desired (new) tablespace; then use IGNORE=Y

  • Exp/imp of tablespace

    hi all
    could we use exp/imp of tablespace on same database
    say we have list of objects in a tablespace and we want to shrink the tablespace size. ( as there are not many transactions ) then can we take export of this tablespace onyly , drop the tablespace , create a new tablesapce with same name but of less size and import objects back from the export dump file into this tablespace
    thanks
    kedar

    So basically you want to shrink the tablespace but you've got objects scattered around in there and it won't coalesce.
    There are several ways to do this, not least the one you've mentioned.
    An alternative would be to rebuild the objects into a new (smaller) tablespace. If you haven't got the disk space to accomodate a new tablespace and the existing one then, yes, export/import will do the job.

  • Exp/imp full or transportable tablespaces?

    Hi Experts,
    DB version: 10.2.0.4 64 bit enterprise edition
    OS version: Windows 2003 R2 64 bit
    here database moving from 10.2.0.4 enterprise edition to standard edition.
    i have went through metalink, i found
    *10G : Step by Step Procedure to Migrate from Enterprise Edition to Standard Edition [ID 465189.1]*
    *Converting An Enterprise Edition Database To Standard Edition [ID 139642.1]*
    so i have taken export of full database before that i have create a DBLINK & TABLES ,
    i have impoted into standard edition but i have missed those DBLINKS and grants will imported?
    Thanks.

    hi guru,
    my expectation is the entire database should pilot to new server with standard edition. i have read articles from metalink, as per traditional export/import is a better.
    By that process i tested,
    1) production database:-
    a)created some tables, one database link
    b) exp system/*** full=y file=exp.dmp log=exp.log
    2)another side, i have created a dummy database using DBCA, and created some tablespaces as exist in export side.
    a) imp system/*** full=y file=exp.dmp log=imp.log
    so after successful import, i have checked objects but i missed the DBLINK from production.
    1)my question is any other parameters should be process within import? to perform full export/import
    2)all the schemas will be imported or manully need to create?
    3)grants will be imported?
    4) what about constraints.
    ignore=y rows=n.i want to export rows also(entire database)

  • Exp/Imp with tablespace autocreate?

    Hello dear community,
    I've got a question about backup with exp/imp. It's not about RMAN, but nevertheless I hope it's the right board.
    Is there a command to tell imp to automatically create a specified tablespace from a dumpfile?
    For exp I use:
    exp.exe user/pass tablespaces=test file=FILE.DMP
    For imp I use:
    imp.exe user/pass tablespaces=test file=FILE.DMP
    Now, if I drop the tablespace between exp and imp, so imp can't restore it. There I manually have to create the specified tablespace first. It would be nice, if there is a way that imp creates the tablespace if it is not present.
    Are there maybe some parameter like "autocreate" and "use datafile=..." and so on?
    Thanks for help,
    best regards,
    Ronny

    Transportable Tablespaces is a seperate feature whereby you take a physical
    copy of tablespace datafiles and "plug" them into the target database.
    That is different from taking a logical export dump.
    With export dumps, the only way to get the tablespace created is in a FULL
    export and import. The CREATE TABLESPACE commands are written into
    the dmp file only when a FULL export is done. At import time, you can choose
    to import a specific schema in which case, the CREATE TABLESPACE
    commands are not executed by import (they must be precreated). So,
    CREATE TABLESPACE is executed only when you do a FULL import as well.
    Note that this {obviously} creates the same datafile names (including physical
    paths) and sizes as existant in the source database. That may or may not
    meet your requirements on occassion (eg different filesystem structure,
    different sizes planned in the target database).

  • EXP & IMP only restores to same tablespace(s)

    Hi All...
    I created new user with new tablespace and import dmp to new user
    but the import utility imported same tablepspace (increase old datafile size).
    even I dropped new user but the old tablespace (datafile) size not reduced?
    Sudhir

    Normal behavior.
    Using conventional exp/imp the correct method to 'relocate' an user is
    - make sure the target user doesn't have unlimited tablespace privilege by revoking it
    - make sure the user doesn't have quota on the old tablespace and does have quota on the new tablespace
    alter user <target user> default tablespace <new tablespace> quota unlimited on <new tablespace> quota 0 on <old tablespace>
    - Now import with indexes=n
    - run a second import using the parameter indexfile=<any filename>
    - Edit the resulting file, changing all tablespaces
    - now run the file in sqlplus
    - this should be it
    Using expdp and impdp, remap_tablespaces on impdp is sufficient
    Hth
    Sybrand Bakker
    Senior Oracle DBA

  • Using exp dump file, how to know schema/tablespace/database/table....

    Hi
    I have export dump file. I don't have any information other then that about the dumpfile.
    1. How do I know what version of exp was used(or database version)?
    2. what does the exp contain, whether it is table/schema/tablespace/database level export?
    3. Is it possible that I can used impdp command to export a file which was exported using "exp" command?

    1. Sorry for my ignorance but in first case how do I know if i have to use "imp or impdp".
    As discussed in the above mentioned thread strings might reveal something but not sure. Otherwise you can always confirm by trying to run it.
    And assuming that if I imported the dump(using trial and error rule), how do I know what level of export was the dump file created... ie
    how do I know the present object(object imported in target) was belonging to which tablespace and schema in source database(question 2 of "Sidhu")?
    When you will import it back in a new database, everything will be same as the original database. All objects will belong to their respective tablespaces,schemas blah blah...(where they were in the original database).
    Sidhu

Maybe you are looking for

  • Display images in original dimensions

    Hi, I have a report that contains the blob field from the database to display the images, All i need is to display the images in their original sizes that is if the image is big display it as big and vice versa I tried an option of can grow but it do

  • Standard Macbook Keyboard Shortcuts Not Functioning

    I have a Macbook running 10.5.7. For some time, I have been unable to use any standard keyboard shortcuts such as CMD-N to open a new finder window etc. I have re-installed the MAC OS X software from clean, reset the defaults for keyboard shortcuts i

  • Time Machine deleting files on drive

    I have an external drive which had all of my photos stored on it. I then decided I would use this drive also for Time Machine. I have just gone to find my photo files and all that is on there is "bakups", I am so so hoping that I have not lost all my

  • FCP X refuses to import .mpg files

    When I try to import my .mpg files (create optimized media is checked) FCP X tells me that all of my .mpg files are incompatible.  How can I fix this without having to manually transcoding each file in MPEG Streamclip?

  • Cant install lib32-nvidia-utils-beta

    Hello , I am trying to install lib32-nvidia-utils-beta.. but I get ==> ERROR: Makepkg was unable to build lib32-nvidia-utils-beta. ==> Restart building lib32-nvidia-utils-beta ? [y/N] # Maintainer : Dan Vratil <[email protected]> # Contributors: