Change in the oracle 11g user default tablespace


Hi all

I just wanted to clarify a satiuation where I had to change the default tablespace of a user/schema (create a new tablespace and assign to user) and take (expdp) export it and import the user even he will have all the objects that belong to this user before.

1. create a tablespace new abc.

2 assign this tablespace to a schema/user existing (it has a different tablespace before)

3 expdp 'user '.

4 impdp 'user '.

It will keep all objects in the user?

Any suggestion expertise is highly apprciated.

thaniks in advance

Oracle will still attempt to re-import tables and indexes in the original storage space because it is in the definitions of table / index.

You must use the REMAP_TABLESPACE option in impdp to change the target tablespace during the data import.

Hemant K Collette

Tags: Database

Similar Questions

  • Import of XML in the oracle 11g database

    I have some difficulty parsing of an XML file in the oracle 11g database.

    Currently using Oracle 11 g Express Edition (XE)

    Here's how my XML file looks like this:


    <? XML version = "1.0" encoding = "UTF-8" standalone = "yes"? >
    -< AccountMap xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" >
    -< account >
    -< AccountMapping >
    < AccountID > 0000000000000 - 000 < / AccountID >
    < AccountName > XLS < / AccountName >
    Excel < AccountType > < / AccountType >
    < AccountOwner > system < / AccountOwner >
    < / AccountMapping >
    -< AccountMapping >
    < AccountID > 0000000000000 - 001 < / AccountID >
    < AccountName > XLSS < / AccountName >
    Excel2 < AccountType > < / AccountType >
    System2 < AccountOwner > < / AccountOwner >
    < / AccountMapping >
    -< AccountMapping >

    and so now the file continues... I have the xml file that is saved on my hard drive

    I created a package in SQL Developer

    create or replace
    PACKAGE XML_FILEHANDLER AS

    type TRecord is (record
    Account_ID varchar2 (100)
    , Varchar2 (100) AccountName
    , Varchar2 (30) AccountType
    , AccountOwner varchar2 (100)
    );

    type TRecordTable is table of the TRecord;

    getRows function (p_directory in varchar2, p_filename in varchar2) return TRecordTable pipeline;

    END XML_FILEHANDLER;

    -BODY

    create or replace
    PACKAGE BODY XML_FILEHANDLER AS

    getRows function (p_directory in varchar2, p_filename in varchar2) return TRecordTable AS pipeline

    nb_rec NUMBER: = 1;
    tmp_xml CLOB.
    tmp_file CLOB.
    REC TRecord;

    BEGIN

    DBMS_LOB.CREATETEMPORARY (tmp_file, true);
    tmp_file: = dbms_xslprocessor.read2clob (p_directory, p_filename);

    recomm. Account_ID: = regexp_replace (tmp_file, '. * <>(. *) Account_ID < / Account_ID >. *', '\1', 1, 1, 'n');
    recomm. AccountName: = regexp_replace (tmp_file, '. * < AccountName >(.*) < / AccountName >. *', '\1', 1, 1, 'n');
    recomm. AccountType: = regexp_replace (tmp_file, '. * < AccountType >(.*) < / AccountType >. *', '\1', 1, 1, 'n');
    recomm. AccountOwner: = regexp_replace (tmp_file, '. * < AccountOwner >(.*) < / AccountOwner >. *', '\1', 1, 1, 'n');

    loop

    -This regexp is instance (s) of this model: "<? XML...? ' > < root_tag >... < / root_tag >.
    tmp_xml: = regexp_substr ([tmp_file, ' < \?xml[^?] +------? > \s+ < ([^ >] +) >. *? < / \1 > ', 1, nb_rec, 'n');
    When the output length (tmp_xml) = 0;
    -dbms_output.put_line (tmp_rec);
    nb_rec: = nb_rec + 1;

    SELECT Account_ID AccountName, AccountType, AccountOwner
    in rec. Account_ID, rec. AccountName, AccountType rec. rec. AccountOwner
    from xmltable)
    "Accounts/AccountMapping" in the way of xmltype (tmp_xml) columns
    Path of varchar2 (100) Account_ID 'Account_ID '.
    , Path of varchar2 (100) AccountName "AccountName".
    , AccountType varchar2 (30) path 'AccountType '.
    , Path of varchar2 (100) AccountOwner "AccountOwner.
    );

    line (CRE);

    end loop;

    DBMS_LOB.freeTemporary (tmp_file);

    GetRows END;

    END XML_FILEHANDLER;

    -I call my function using the following sql query

    Select * from table (XML_FileHandler.getRows ("XML", "test.xml"));

    Here is the error I get

    ORA-29283: invalid file operation
    ORA-06512: at "SYS." UTL_FILE", line 536
    ORA-29283: invalid file operation
    ORA-06512: at "XDB". DBMS_XSLPROCESSOR', line 265
    ORA-06512: at "user. XML_FILEHANDLER', line 13
    29283 00000 - "invalid file operation.
    * Cause: An attempt was made to read from a file or a directory which is
    not exist, or the file or directory access was denied by the
    Operating system.
    * Action: Check access privileges to the file and directory on the file system
    and if reading, check that the file exists.

    I did the following

    -Provided appropriate access to the user (read, write), including directory access rights
    -ensure that the directory exists
    -to ensure the existence of the file

    I have searched all over google and metalink but am unable to get this to run... Help, please!

    >
    SELECT Account_ID AccountName, AccountType, AccountOwner
    in rec. Account_ID, rec. AccountName, AccountType rec. rec. AccountOwner
    from xmltable)
    "Accounts/AccountMapping" in the way of xmltype (tmp_xml) columns
    Path of varchar2 (100) Account_ID 'Account_ID '.
    , Path of varchar2 (100) AccountName "AccountName".
    , AccountType varchar2 (30) path 'AccountType '.
    , Path of varchar2 (100) AccountOwner "AccountOwner.
    );
    >
    implement

    SELECT Account_ID, AccountName, AccountType, AccountOwner
    into rec.Account_ID, rec.AccountName, rec.AccountType, rec.AccountOwner
    from xmltable(
    'AccountMap/Accounts/AccountMapping' passing xmltype(tmp_xml) columns
    Account_ID varchar2(100) path 'Account_ID'
    , AccountName varchar2(100) path 'AccountName'
    , AccountType varchar2(30) path 'AccountType'
    , AccountOwner varchar2(100) path 'AccountOwner'
    );
    
    SQL> SELECT Account_ID, AccountName, AccountType, AccountOwner
      2  --into rec.Account_ID, rec.AccountName, rec.AccountType, rec.AccountOwner
      3  from xmltable(
      4  'AccountMap/Accounts/AccountMapping' passing
      5  xmltype('
      6  
      7  
      8  
      9  0000000000000-000
     10  XLS
     11  Excel
     12  System
     13  
     14  
     15  0000000000000-001
     16  XLSS
     17  Excel2
     18  System2
     19  
     20  
     21  ')
     22  columns
     23  Account_ID varchar2(100) path 'Account_ID'
     24  , AccountName varchar2(100) path 'AccountName'
     25  , AccountType varchar2(30) path 'AccountType'
     26  , AccountOwner varchar2(100) path 'AccountOwner'
     27  );
    
    ACCOUNT_ID                                                                       ACCOUNTNAME                                                                      ACCOUNTTYPE                    ACCOUNTOWNER
    -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- ------------------------------ --------------------------------------------------------------------------------
                                                                                     XLS                                                                              Excel                          System
                                                                                     XLSS                                                                             Excel2                         System2
    
    SQL> 
    

    AccountID use AccountID not Account_ID

    Account_ID varchar2(100) path 'AccountID'
    

    Published by: Alexandr on August 9, 2012 12:35 AM

  • How to disable the trace files in the oracle 11g version

    Senario: trace file grow
    How to disable the trace files in the oracle 11g version
    pls guide with best practices

    NATHALIE wrote:
    Senario: trace file grow
    How to disable the trace files in the oracle 11g version
    pls guide with best practices

    11 g, there is an extended tracing which happens for reasons best known only to Oracle. But if you want to disable, Coskan had published a small ticket mentioning a parameter not documented (which means you should think twice before using it) to disable it - disablehealth_check *. Here you can read the full message,
    http://Coskan.WordPress.com/2009/06/03/too-many-trace_file-on-11g/

    Aman...

  • can we use advice in the oracle 11g version?

    can we use advice in the oracle 11g version? It works?

    Prasad wrote:
    can we use advice in the oracle 11g version? It works?

    Hello

    Yes

    Please find the document
    http://docs.Oracle.com/CD/E11882_01/server.112/e16638/hintsref.htm

    Concerning
    Hitgon

    Published by: hitgon on April 25, 2012 15:24

  • How to change the name of search criteria in the Oracle 11g ADF?

    Hi Experts,

    I created an application ADF using the option "Request ADF with table Panel" to a search page. By duty, I have to remove a few fields and change the existing name fields.

    Please notify.

    SS_SearchCriteriaPage.png

    Thank you

    David Selvaraj

    You can change just the tips of the user interface in the t (if you want to change the name in the search and the results).

    If the requirement is only to change the names in the search section, follow what Timo has suggested.

    See you soon

    AJ

  • Link to an Oracle Apex users default email client

    Hello
    I want my users to be able to click a button in my Apex application that will draw upward of their default e-mail client (MS outlook proably).

    What is the best way to do it?

    Thank you

    Hello

    The button action should be "Redirect to URL.
    and the target URL should be:

    mailto:
    

    for example

    mailto:[email protected]
    

    The parameter must be computed dynamically based on the logged in user
    and assigned to the article some hidden (say P1_EMAIL_ID), which can then be used as:

    mailto:&P1_EMAIL_ID.
    

    See if it works!
    Kind regards
    Kiran

  • who are the IP accessing the oracle on the oracle database user

    Hello

    How to check which are the intellectual property have access to the user on the oracle database oracle

    Brother very simple, just enable auditing and get a good, easy and authenticated the information you are looking for. The audit has been filed for this type of questions.

    Concerning
    Girish Sharma

  • Latest version of the Oracle 11g for Windows Client

    I was able to download Oracle 11 g Client base of
    http://www.Oracle.com/technology/software/products/database/Oracle11g/111060_win32soft.html

    Anyone know if this what they have for 11g? Oracle has provided any patches in addition to this group?

    I'll have to specify this patch #: 6890831 and I should specify Windows (32) for platform? The Oracle Clients are Windows machines.

    Yes that's correct.

  • How to change application ADF oracle 11g to 12 c?

    I want to improve my oracle adf 11g asks to be worked 12 c

    Take a copy of the record of the backup application and simply open the application of JDeveloper 12 c and it should automatically migrate the application of the 12 c.

    And you can check this URL for the support of migration:

    Support of Oracle JDeveloper 12 c

  • How to remove the oracle application user?

    Hi experts,


    How can I make user oracle application? I know only two options to lock and abandon backend as removing ro in fnd_users

    What is recommecnde? Please give the right way. "

    Thanks and greetings '
    VD

    Hello

    It's not a bug, user application records can be referenced in the databases/applications and their deletion would cause referential integrity problems.

    Kind regards
    Hussein

  • How to duplicate a search field in the Oracle 11g ADF?

    Hello Experts,

    I created an ADF application with option "ADF query with table pane. I have a requirement to reproduce the field even one for "superior to" and another for "lower to." In this case, I need to duplicate the Sales Date twice for research between some days. Please notify.

    SS_SearchCriteriaPage1.png

    Thank you

    David Selvaraj

    In the object view go to the application tab and create display criteria. View, criteria, you can add the attributes you want to use to search for and you can repeat any attribute.

    DataControl expand the view--> named criteria object and drag the display on page criteria in the query with Table pane

  • the Oracle user idle time

    Hello
    We have FSCM9 PS with DB Oracle 10g R2. For now the idle time for the default profile for the Oracle DB users is UNLIMITED. I wonder if I change to 90 Minutes (in order to have less use of memory for idle sessions) there would be a problem for the ERP PeopleSoft?

    Thanks before.

    It could be a problem since Peoplesoft works through application server and connection pool. There is the customer connecting application server stopped (or killed), which would allow you to avoid being able to reconnect later with other end users before.

    Nicolas.

  • [INS-32104] User Oracle Home specified is not the owner of the Oracle Base specified.

    10 years of a row to install Oracle client, but not now.

    It is written error on step specify installation location

    [INS-32104] User Oracle Home specified is not the owner of the Oracle Base specified.

    Action - Make sure you specify the Oracle Home user who is the owner of the selected Base Oracle.

    I tried and different user to install, appropriating on c:\app\user

    authenticates users and led by different users, I tried all ways,

    but it won't start!

    Any ideas what to do?

    oracle_client.jpg

    I want to use Dev of PL/SQL that uses the 32-bit client only.

    I do not have Oracle Support account, sorry.

    In fact I just fixed problem by changing the ORACLE_HOME again that is not yet created HOME

  • How to use the JKS-based Keystore in Oracle 11g SOA

    I'm doing FTPS on remote server of third party (with UNIX operating system) using SOA 11 g adapter FTP. I installed and configured vsftpd and generated vsftpd.pem file on the remote server certificate.
    Follow the steps mentioned in http://download.oracle.com/docs/cd/E17904_01/integration.1111/e10231/adptr_file.htm#CIABDGCF

    In one step "Adjusting upward the FTP Oracle adapter" walletLocation is necessary, then I went through the steps mentioned in http://download.oracle.com/docs/cd/E17904_01/core.1111/e10105/wallets.htm#CHDGIJDC

    (Tried using both 1) JKS Keystore Management 2) portfolio management

    Impossible to find two of them in the Oracle 11g SOA em but the steps do not match.

    Can someone tell me how to use JKS Keystore or portfolio management?

    Thank you very much!!

    Concerning
    Yogesh

    Hi yogesh,

    I think that the portfolio can be created from the FMW console only if the HTTP server is installed and available. If there is no Oracle HTTP server, configure a specified in the.

    [http://download.oracle.com/docs/cd/E12839_01/doc.1111/e14260/toc.htm |] Oracle HTTP Server installation]

    Agress,
    Neeraj Sehgal

  • Cannot open a session to the newly created user account

    I created a new standard user account via account management/accounts/user control.  When I log into the admin account and try to connect to the newly created account, I get the error message "the service user profile Service has no logon" "could not load user profile.  Click OK and it disconnects.  I can still log on to all the other 5 accounts that I created after I implemented this new laptop (preinstalled with windows 7).  When you click on a new account the first time, the system should establish the office and create the user records.

    I went into the Admin account and checking the application event log.  Event ID 1509 "Windows cannot copy file C:\Users\Default\ to the C:\Users\New Test Account\ location.  This error can be caused by insufficient security rights network problems. "DETAIL - access is denied.

    I solved my problem.  The index was at the event journal entry.  The permissions on the folder C:\Users\Default screwed up. (not sure how that happened).  I compared the authorization for this folder on my laptop win 7 with permissions for the same folder on my computer vista laptop.  Computer laptop win 7 has a few additional entries.  I deleted them and now I can create and open a session on new accounts on the laptop win 7.

Maybe you are looking for