Import to a specific tablespace

Is there any method to import data to a specific tablespace?
Scenario
- have an exported dump of schemaA.tableA from databaseA
- want to import above table as schemaB.tableB in tablespaceB[b] in databaseB

well i don't understand your problem but try
export file from
Database Schema/User Tablespace Name
catdb ----------------------->SCOTT---------------------------->MAKE
above is your export file now you want to import
orcl1----------------------------->HR-------------------------------------->USERS
SQL> conn scott/tiger@catdb
Connected.
SQL> host exp file=e:\scott.dmp tables=EXPORT
Export: Release 10.1.0.2.0 - Production on Sun Jan 7 12:00:00 2007
Copyright (c) 1982, 2004, Oracle.  All rights reserved.
Username: scott@catdb
Password:
Connected to: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Produc
tion
With the Partitioning, OLAP and Data Mining options
Export done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
About to export specified tables via Conventional Path ...
. . exporting table                         EXPORT          1 rows exported
Export terminated successfully without warnings.
SQL> select property_value
  2  from database_properties
  3  where property_name = 'DEFAULT_PERMANENT_TABLESPACE';
PROPERTY_VALUE
TEST
SQL> select username, default_tablespace from dba_users where username = 'HR';
USERNAME                       DEFAULT_TABLESPACE
HR                             DENI
Now database default tablespace is 'USERS' and schema default tablespace is "DENI".
SQL> host imp hr/hr@orcl1 file=e:\scott.dmp fromuser=scott touser=hr
Import: Release 10.1.0.2.0 - Production on Sun Jan 7 12:00:45 2007
Copyright (c) 1982, 2004, Oracle.  All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Produc
tion
With the Partitioning, OLAP and Data Mining options
Export file created by EXPORT:V10.01.00 via conventional path
Warning: the objects were exported by SCOTT, not by you
import done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
. . importing table                       "EXPORT"          1 rows imported
Import terminated successfully without warnings.
SQL> select segment_name, tablespace_name
  2  from user_segments where segment_name = 'EXPORT';
SEGMENT_NAME                   TABLESPACE_NAME
EXPORT                         DENI
Note : user HR having "RESOURCE" privs. so HR user having unlimited tablespace space on default tablespace.
and user default tablespace is "DENI".                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • IMPORT INTO A DIFFERENT TABLESPACE

    Hi All,
    When attempting to import a .dmp file into a user with different default tablespace errors IMP-00003 and ORA-00922 was raised, some objects were imported but the problem seems to arise when importing tables. Help will be greatly appreciated.

    Quote: apart from that you have to realize if the definition of your tables are poiting to a specific tablespace because if that is your case. You have to create that tablespace with quota for the new user and after move your tables from that tablespace.
    Not true, Import first attempts to create an object in it's specified tablespace. If it is unable to then it will create the object in the owners default tablespace.
    So buy changing a users default tablespace (with a quota) and removing the users quota from the old tablespace, you can actually change tablespaces on import.

  • Import steps not specific to Transport Request

    Hi all,
    I need to move 5 Released Transport Request as "Local Change Requests" to another SAP installation.
    I followed two guides to do this:
    SAP BASIS / ABAP - How to Export and Import an External Change Request - YouTube
    How to copy Repository Objects between non-connected SAP systems - ABAP Development - SCN Wiki
    However I have problems creating the Change Request that contains all my requests: if I generate it as Local Change Request it is not available on cofiles and data folders.
    So I created a new Virtual System called M02 and I created a standard consolidation transport link between my original system M01 and the virtual system M02.
    Then I created a new TRANSPORT OF COPIES Transport Request and I selected as target system M02. All objects are correctly added to the new request and the validation is correctly performed.
    However when I release the request on the SOURCE server I get the following error:
    M01#######            My Request Name
    M01        System M01
                 Checks at Operating System Level         05.03.2014 16:48:34    (0) Successfully Completed
                 Pre-Export Methods                       05.03.2014 16:48:37    (0) Successfully Completed
                 Export                                   05.03.2014 16:48:47    (0) Successfully Completed
          Import steps not specific to transport request
      M02        Virtual System
                 Selection for Import                     05.03.2014 16:48:47    (0) Successfully Completed
          Import steps not specific to transport request
    "Import steps not specific to transport request" expanded as:
      Feedback after export or import 05.03.2014 16:48:48    (0) Successfully Completed
    I get this message even if I generate the new Change Request from a single Change Request (the first one that we released).
    The cofiles and data files are correctly generated, however the IMPORT on the TARGET server returns an error (invalid data package)
    My question is: is the "Import steps not specific to transport request" message correct, or should I modify something? Why am I getting this message?
    Thank you

    Hi Chinna,
    Its a warning message you can ignore that... if you want to see what exactly the reason for warning  in SE09 --> select the released request --> click the Transport Log Ikon --> select the warning message and click the spects Ikon --> go on expanding you can find the warnings of Objects  in Yellow...
    Hope this helps,
    Sudhakar.

  • Email notification doesn't work in a specific tablespace.

    Hello,
    I have a Oracle 10gR2 Version: 10.2.0.5.0. I'm having problems to receive emails notifications in a specific tablespace. I created a Rule Notification for "Tablespace Space Used (%)". I know the rule and metrics are ok. How?
    1)  At another tablespace, I create a specific Threshold for Tablespace Space Used (%) and I set the Warning Threshold to 1%, and Critical Threshold to 2%. After some minutes, I receive an email with the Critical message because the tablespace have a 60% of space used. I do the same test with the other tablespace and no email received.
    2) I have two servers with the same database (only data changes) and in one server its works , not in the other server.
    This is the information for the "bad" tablespace:
    Name
    BAD_TABLESPACE
    Bigfile tablespace
    No
    Status
    ReadWrite
    Type
    Permanent
    Extent Management
    local
    Storage
    Allocation Type
    Automatic
    Segment Space Management
    Automatic
    Enable logging
    Yes
    Block Size (B)
    8192
    It have 45 .dbf datafiles. Almost all of them are 100% full (32GB max)
    Locally Managed, Permanent, Read Write mode. an Logging enabled.
    Any ideas? suggestions or miracles?
    Thanks!

    Then it should do the same in all tablespaces isn't it? Like sb92075 said: "different results occur when something is different.". The only thing different between the tablespaces is the process running on it. I have some process running in my "bad_tablespace" that it load a big amount of data. I detected when I stop all the process, I start again to receive the emails. I can't find information about that.
    Could be possible the high data load of a tablespace might affect to notification emails?

  • Duplicate of Database - Restore of Specific Tablespaces using RMAN

    Hi, is it possible to perform a duplicate of a large database to a point in time (from tape) but only restore specific tablespaces, this database uses partitioned tables for a week of data, each set of partitions have their own tablespace.
    Thanks.

    Use can use the “SKIP TABLESPACE” option of RMAN DUPLICATE to bring only the tablespaces you want.
    Iordan Iotzov
    http://iiotzov.wordpress.com/

  • How import data on one tablespace and indexes on another tablespace

    i have import dump from from database in oracle 10g as
    c:> imp userid=system/password full=y file=d:\ful.dmp log=d:\full.log
    Now i want import tables data on tablespace datatb and indexes on tablespace indextb. how i can do this job
    Thanks

    After importing the database you may move the indexes to other tablespace by rebuilding it.
    c:>sqlplus /nolog
    SQL> conn /as sysdba
    connected
    SQL> spool c:\indx_rbld.log
    SQL> select 'alter index '||owner||'.'||index_name||' rebuild online parallel tablespace <tablespace_name> nologging;' from dba_indexes where owner=<username>;
    SQL> spool off
    SQL> @c:\indx_rbld.log
    Hope following link will help you:
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:901906930328
    Message was edited by:
    Santosh Kumar

  • How to Import Standard (client specific) infosets from one Quality to Prod

    Hello Experts,
    Is there a way to Import Standard (client specific) infosets from Quality to Prod system without creating a transport request? (No TR is created on Quality system when changing the standard infoset)
    Kindly show me the steps..
    Points will be given out.
    Thanks
    Olekan Babatonde

    Answer found by poster.

  • How to move a specific tablespace datafile from one directory to another

    Database: 10.2.0.1
    OS : Generic
    Problem Description : How to move a specific tablespace datafile from one directory to another considering that the database is on Oracle Dataguard setup
    ** Oracle is working on this issue, but in parallel is opening the topic to the Community so that Community members can add their perspective, experience or knowledge. This will further enhance all knowledge bases including My Oracle Support and My Oracle Support Communities **
    Edited by: ram_orcl on 16-Aug-2010 21:21

    Dear ram_orcl,
    Please follow the procedures here;
    http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14239/manage_ps.htm#i1034172
    8.3.4 Renaming a Datafile in the Primary Database
    When you rename one or more datafiles in the primary database, the change is not propagated to the standby database. Therefore, if you want to rename the same datafiles on the standby database, you must manually make the equivalent modifications on the standby database because the modifications are not performed automatically, even if the STANDBY_FILE_MANAGEMENT initialization parameter is set to AUTO.
    The following steps describe how to rename a datafile in the primary database and manually propagate the changes to the standby database.
       1.
          To rename the datafile in the primary database, take the tablespace offline:
          SQL> ALTER TABLESPACE tbs_4 OFFLINE;
       2.
          Exit from the SQL prompt and issue an operating system command, such as the following UNIX mv command, to rename the datafile on the primary system:
          % mv /disk1/oracle/oradata/payroll/tbs_4.dbf
          /disk1/oracle/oradata/payroll/tbs_x.dbf
       3.
          Rename the datafile in the primary database and bring the tablespace back online:
          SQL> ALTER TABLESPACE tbs_4 RENAME DATAFILE      2> '/disk1/oracle/oradata/payroll/tbs_4.dbf'
            3>  TO '/disk1/oracle/oradata/payroll/tbs_x.dbf';
          SQL> ALTER TABLESPACE tbs_4 ONLINE;
       4.
          Connect to the standby database, query the V$ARCHIVED_LOG view to verify all of the archived redo log files are applied, and then stop Redo Apply:
          SQL> SELECT SEQUENCE#,APPLIED FROM V$ARCHIVED_LOG ORDER BY SEQUENCE#;
          SEQUENCE# APP
          8 YES
          9 YES
          10 YES
          11 YES
          4 rows selected.
          SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;
       5.
          Shut down the standby database:
          SQL> SHUTDOWN;
       6.
          Rename the datafile at the standby site using an operating system command, such as the UNIX mv command:
          % mv /disk1/oracle/oradata/payroll/tbs_4.dbf /disk1/oracle/oradata/payroll/tbs_x.dbf
       7.
          Start and mount the standby database:
          SQL> STARTUP MOUNT;
       8.
          Rename the datafile in the standby control file. Note that the STANDBY_FILE_MANAGEMENT initialization parameter must be set to MANUAL.
          SQL> ALTER DATABASE RENAME FILE '/disk1/oracle/oradata/payroll/tbs_4.dbf'
            2> TO '/disk1/oracle/oradata/payroll/tbs_x.dbf';
       9.
          On the standby database, restart Redo Apply:
          SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE
            2> DISCONNECT FROM SESSION;
    If you do not rename the corresponding datafile at the standby system, and then try to refresh the standby database control file, the standby database will attempt to use the renamed datafile, but it will not find it. Consequently, you will see error messages similar to the following in the alert log:
    ORA-00283: recovery session canceled due to errors
    ORA-01157: cannot identify/lock datafile 4 - see DBWR trace file
    ORA-01110: datafile 4: '/Disk1/oracle/oradata/payroll/tbs_x.dbf'Hope That Helps.
    Ogan

  • Importing objects in default tablespace

    Dear all,
    We have our UAT and PRODUCTION environment having the same structure (same tablespaces, same amount of users) ..our application mainly runs with only one user called APPSDT. we have the
    same user in our UAT also..
    user APPSDT have objects created in all the tablespaces of the PROD environment. When we are
    refreshing the schema APPSDT with that of the schema in UAT , IMP imports the objects the
    objects in all the tablespace (since the tablespace name is the same in UAT as well in PROD)
    I've allocated a big file tablespace as the default tablespace to the user APPSDT in UAT.
    When am doing the import , all the objects have to be imported into the default tablespace
    and not to user anyother tablespace ?
    Any idea ?
    Kai

    KaiS,
    If you have allocated quota only one tablespace which is default tablespace of the schema user, then all the objects pertaining to that user will be created in default tablespace. And if you have allocated quota on other tablespace then objects will spread over the other tablespaces (same tablespace as in your production server).
    Regards

  • Schema not imported to the default tablespace of the user

    I exported a schema. Then when I tried to import it in an existing schema, all the objects are successfully imported. But they are not imported in the default tablespace of that particular user. Why? How can I force the import to the default tablespace of that user?

    Did you attempt to import the objects into a new schema or into the existing one? If you are attempting to migrate the objects to a new schema you need to use the parameters:
    fromuser=<old_schema> touser=<new_schema>
    Or if you are attempting to migrate the objects to a new tablespace pre-create them as described above and import with the ignore=y.
    Message was edited by:
    klichten

  • PK constraint using specific tablespace

    How do I create primary key constraint using specific tablespace?
    I looked at PK properties in physical model but ‘Tablespace’ option under ‘Using Index’ tab is disabled.
    Thanks,
    Vikas

    Hi Vikas,
    The Tablespace property is disabled if the Using Index property on the General Tab of the Primary Key Property dialog is NO.
    So you first need to set the Using Index property to the relevant option.
    David

  • Import dumpfile with seperate tablespaces for table and index

    Hi,
    We have a schema for which the its tables are stored in seperate tablespace and indexes are stored in different tablespace. Now we have take full schema export. Now we want to import it on another schema. Now I want to know if the we have difference in the tablespace name we use REMAP_TABLESPACE clause of the impdp command but what about the seperate tablespace for table and indexes. How would Oracle handle this.
    Regards,
    Abbasi

    Hi,
    I hope you created the same tablespace structure on the target side if not so remap_tablespace option you have to use for specifying different tablespaces.Oracle will take care of putting data and index.Any how if a index is moved from one tablespace to other you have to rebuild them,once you rebuild them than only stattistics are gathered otherwise you
    might face some performance issue.
    Better option is to keep same tablespace structures in source and target environment.
    Best regards,
    Rafi.
    http://rafioracledba.blogspot.com
    Edited by: Rafi (Oracle DBA) on May 9, 2011 7:07 AM

  • Export - import to a different tablespace ??

    I have exported a schema from 8174 from production as the user itself.
    exp user/user ........
    I am trying to import it into development.
    Only one table i am importing it from the dump.But this table structure is already existing in a tablespace different from production.....
    say if t1 is in tbs1 -- Prrod.
    t1 is in tbs2 -- dev.
    so while import the data is going into this tbs2... and not tbs1 of dev.
    The default tablespace of user is tbs1.
    So how can i import it intot tbs2?
    Please help me ...

    Is t1 in development (the target database) already in the appropriate tablespace?
    If not, correct that by doing:
    alter table t1 move tablespace tablespace_where_t1_should_live;
    Then do the import with "ignore=y".
    That ought to take care of it.
    -Mark

  • Impdp import schema to different tablespace

    Hi,
    I have PRTDB1 schema in PRTDTS tablespace, I need encrypt this tablespace.
    and I have done this steps:
    1. I created new encrypted PRTDTS_ENC tablespace.
    2. I take export PRTDB1 schema. (expdp system/system schema=PRTDB1 directory=datapump dumpfile=data.dmp logfile=log1.log)
    and I want import this dump to new PRTDTS_ENC tablespace.
    can you give me impdp command, which I need?

    Hello,
    ORA-14223: Deferred segment creation is not supported for this table
    Failing sql is:
    CREATE TABLE "PRTDB1"."DATRE_CONT" ("BRON" NUMBER NOT NULL ENABLE, "PCDID" NUMBER(9,0) NOT NULL ENABLE, "OWNERSID" NUMBER NOT NULL ENABLE, "VALUESTR" VARCHAR2(4000 CHAR), "VALNUM" NUMBER, "VALDATE" DATE, "VALXML" "XMLTYPE") SEGMENT CREATION DEFERRED PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING So it means that these Tables "need" a Segment but, they are created with the option SEGMENT CREATION DEFERRED.
    A workaround is to create a Segment for these Tables on the Source Database before exporting them. Then, at the Import you won't have the option SEGMENT CREATION DEFERRED. The following Note of MOS detail this Solution:
    - *Error Ora-14223 Deferred Segment Creation Is Not Supported For This Table During Datapump Import [ID 1293326.1]*
    The link below gives more informations about the DEFERRED SEGMENT CREATION:
    http://docs.oracle.com/cd/E14072_01/server.112/e10595/tables002.htm#CHDGJAGB
    With the DEFERRED SEGMENT CREATION feature, a Segment is created automatically at the first insert on the Table. So the Tables for which the error ORA-14223 occurs are empty.
    You may also create them separately by using a script generated by the SQLFILE parameter in which you change the option SEGMENT CREATION DEFERRED by SEGMENT CREATION IMMEDIATE.
    Hope this help.
    Best regards,
    Jean-Valentin

  • Why can't I point the Video Importer to a specific USB drive directory

    When I (am force) to use the Video Importer (because my clips are on a USB drive) it seems to find and select all videos on this USB drive.  This is not what I want.  I want to browse to the directory (on the USB drive) that I created.  It contains the 6 video clips I want to import, not all 300 on the drive.
    How to I select a specific directory on the USB drive using Video Importer
    I'm using Premiere 12.

    You will find best advice over on the video forum. Most of us here are photographers.
    Click on the link below and copy and paste your question again. Good luck.
    Video questions: Click here for Premiere Elements Forum

Maybe you are looking for

  • Two annoying bugs when exiting guided acces via Touch ID

    When exiting guided access on my iPad Air 2 (iOS 8.1.3) via Touch ID, I encounter the following strange behavior: 1. the disabled areas I defined in the guided access mode (the "greyed-out" areas where touch input is not accepted) remain as grey area

  • Urgent gotoandstop question

    Please help out... I want to know how to use the gotoandstop (or gotoandplay), from inside a movie clip. I want it to got to a frame that's in the main timeline. which means it's outside the movie clip. it doesn't seem to work. I have this: stop(); s

  • How to add outcome to activity step

    Hello everyone. Does anyone know how to add a possible outcome to an activity step that is not of type user decision? I know this is possible as I have seen workflows like this. Please help. Generous points will be awarded!

  • I get no network path found when i try to open a file

    when i try to open a file i get a message no network path foun and cannot open them.

  • Song Screen Question

    I know this is probably a silly question, but I can't figure it out! When a song is playing and you press the "select" button it changes the way you see how far the song is along playing. But then is jumps back to the original. How do I make it stay?