Export / import tablespace with all objects (data, users, roles)

Hi, I have a problem or a question to the export of the section / import tablespace.

On the one hand, I have a database 10g (A) and on the other hand, an 11g database (B).

At there is a tablespace called PRO.

Also 3 users:

PRO_Main - contains the datas - space PRO

PRO_Users1 with a PRO_UROLE - professional role

PRO_Users2 with a PRO_UROLE - professional role

Now, I want to transfer the tablespace set PRO (included users PRO_MAIN, PRO_USER1, PRO_User2 and PRO_UROLE role) from A to B.

On B, I created the user PRO_Main and the tablespace PRO.

On A, I run suite statement:

expdp TABLESPACES PRO_Main/XXX DIRECTORY PRO = DUMPFILE TSpro.dmp LOGFILE = backup_datapump = = TSpro.log

B:

Impdp TABLESPACES PRO_Main/XXX DIRECTORY PRO = DUMPFILE TSpro.dmp LOGFILE = backup_datapump = = TSpro.log

Result:

The user PRO_Main has been imported with all data.

But miss me PRO_USER1, PRO_User2 and PRO_UROLE role...


I guess, I've used wrong settings in my experienced and / or impdp.

Would be nice, if someone can give me a hint.

Thanks in advance.

Best regards
Frank

When you perform an export of TABLESPACE mode by simply specifying tablespaces, then everything gets exported are tables and dependent objects. Users, roles, and tablespace definitions themselves don't get exported.

When you perform a SCHEMA mode export by specifying the schemas, you will get the schema definitions (if the schema running export is privied) and all of the objects that has the schema. The schema is not owner of roles or tablespace definitions.

In your case, you want to move

1 patterns - that you have already created 1 on your target database
2. the roles
3 all in the storage spaces belonged to several patterns.

There is not 1 import/export command that will do that. This is how I could do this:

1. move the schema definitions
a. you can either create them manually or
B1. expdp schemas = include = user
impdp B2 b1 results.

2 transfer the roles
complete expdp = include = role...
don't forget, this will include all the roles. If you want to limit what is exported, use:
include = role: "in (" ROLE1","ROLE2", etc.).
impdo roles come to export

3. move the user information
a. If you want to move all the objects in the diagram as functions, packages, etc., then you need to use a schema view
Export
patterns of username/password expdp = a, b, c...
b. If you want to move only the objects in these storage spaces, and then use the export of tablespace
expdp username/password = tbs1 storage spaces, tbs2,...

c. import the dumpfile generated in step 3
Impdp username/password...

I hope this helps.

Dean

Tags: Database

Similar Questions

  • How can I export the schema with all objects and a few tables without data

    Hi all

    Verion 10g EA.
    I export the schema with all objects but I need ignored some of the data in the table.

    There is a table 4 people gave huge, we need not to export data from tables but structure must export.


    Thank you
    Nr

    You can do this with a single command.  Run your export as usual and add the query parameters for 4 tables you want all the lines:

    expdp... query = schema1.table1: "where rownum = 0" query = schema2.table2: 'where rownum = 0'...

    It is best to place the query parameters in a parameter file if you don't have to worry about escaping special characters of the OS.

    Dean

  • Word Starter 10 on Windows 7. If I switch to Windows 10 it will remain on my computer with all my data?

    I have Word 10 on Windows 7 Starter.  If I switch to Windows 10 it will remain on my computer with all my data?

    Reports are that Word Starter 2010 will be removed.

    The upgrade to Windows 7 or later will preserve my personal files, applications, and settings?

    Yes, the upgrade to Windows 7 or a later version will preserve your personal files (documents, music, pictures, videos, downloads, Favorites, contacts, etc., applications (IE.) Microsoft Office, Adobe applications etc), games and settings (ie. passwords, dictionary, the application settings).

    My programs, equipment and existing drivers will work on Windows 10?

    Most of the applications and designed for Windows 7, hardware drivers or later should work with Windows 10. Of course, with significant changes expected in Windows 10, it is preferable to that contact the software developer and supplier of equipment for the support for Windows 10. Installation Windows 10 will be keep, update, replace, and may require that you install new drivers via Windows Update or the manufacturer's Web site.

    You can also download the reservation of 10 Windows application download and use it to check the readiness of your system.

    How to book your free update of Windows 10

    Click on the menu Burger to the upper left corner.

    Click on the control of your PC

    Backing up your computer:
    When you make significant changes to your computer for example updated operating system, you must always back up. See the links to resources on the backup by clicking the link for each version of Windows you are using: Windows XP, Windows Vista, Windows 7, Windows 8/8.1

    Also check:

    How to back up and restore your files manually

    How to: build 10 tips before installing the latest version of Windows 10

    How to: 10 things to do if the Windows 10 install fails.

    Once you have installed these important updates and followed the required steps, you should be ready to receive your free Windows 10 update this summer.

  • export import tablespace

    Hello

    DB 10.2.0.4
    AIX 5.2
    PROD

    My requirement is, I made to database clone from 20 days back coldbackup are many areas of storage in the database, in which tablespace, there is a DEV_INDEX tablespace. In the Production of this tablespace 18 data files and the clone, she has 14 data files (as clone made for 20 days back coldbackup this is why within 20 days of 4 data files added prod). Now I want to export DEV_INDEX PROD tablespace and import to clone. Please guide me to run this.

    I need to create four data files on the clone instance before you import it?

    Please provide good export and import controls for the tablespace.

    Thank you

    Published by: user13382934 on October 4, 2012 17:06

    user13382934 wrote:
    I don't understand why a recovery is necessary.

    Recovery is necessary because you missed a datafile index

    -Yesterday, I did clone but it gives below error because I missed a clue datafile to restore despite this database is open, but showing continue a file is missing in the alert log file. FYI this missing file which shows actually physically in the alert log file does not exist. Find below

    The solution is to clone the DB again, again, but this time include all data files.

  • Dictionary of table with info on subsidies on objects for user roles

    Hi all

    I use a package, sequence, and we have a different set of roles and users.
    I want to know what user or role is seen to execute privilege or right to select the package and order.

    Can someone tell me which table data dictionary will hold this information.

    Appreciate your help.

    Thank you
    Maddy

    Hi, Maddy,

    These rights are stored (confusion) in all_tab_privs (and dba_tab_privs and user_tab_privs, of course).
    Column in table_name is the name of the object, whether a table, a packet or sequence.

    If the sequence is used inside the package, users with privileges running on the package need not privileges on the sequence (assuming AUTHID DEFINE, which is the default). The owner of the package needs the privileges on the sequence.

  • Flash Pro CS6 - export the Sprite with EaselJS JSON Data sheet

    Hello

    I have imported a png sequence into Flash Pro and tried to get the new generation of spreadsheet sprite functionality to export JSON data in EaselJS format, but when I choose the option EaselJS in the drop-down menu, I only get a window function:


    (function (window) {}

    (} (window));

    However, when I export to JSON format, I get the appropriate JSON data.  Is this a known issue with the support of EaselJS in CS6, or should I do something differently?  I prefer not to use Zoe, the SWF file to the usefulness of the AIR EaselJS, because the png is large enough and Zoe seems to have a cap of maximum dimension for the export of sprite sheets, I get 12 of them while Flash Pro is able to automatically detect dimensions, export a sprite sheet, which is great, I just need to generate the data EaselJS with her.  Thanks in advance!

    try to use a movieclip with some symbols on the timeline?

  • Upgrade to blackBerry Smartphones to v5.0 added a 'default', but with all my data in calendar

    BlackBerry Curve 8900.  Despite the backup in advance the 5.0 installation always messed up my SETTINGS and programs as in the past.  This time, I find a new calendar called by default instead of using the existing calendar based on the name of my e-mail account that I sync with my iMac.  Now all my appointments have been made and nothing in my own email.  I have appointed my old calendar by default, but which seemed to have made no difference.  I'm never, ever going to level again.  It screws up everything and backup (I do it on a PC) does not completely protect my existing configuration.  I wish that RIM could not understand how to upgrade an operating system while leaving your settings and software only.  Other systems seem to be able to do.  Really, I prefer to use my smart phone more to settle.  I hate to be grumpy, but he has so much time.

    Can I do all this to get the appointment to which they belong?  Thanks for any help.

    Sorry, but I found the solution I need.  I did a different search that has sent me to a document that told me how to merge calendars.  you open the calendar go to the menu > options' when it opens type 'MOVE' (IMPORTANT because it threw me for a while, there is no window for typing, just type). a menu then asks if you want to merge all of the calendars that works then.

    I must say that the book is full of (incomprehensible to me) reasons, why the upgrade mess with your setup in the first place.  I have an ipod touch and upgrades are seamless.

  • How to develop export image sequence with all the applied settings?

    If this has been covered, please send me the link to the answer, but I have just past/lost 3 hours trying to find the correct steps.
    I want to use Lightroom CC (v.2015.5 on OS X 10.11.4 on 32 GB RAM i7 iMac5K AMD Radeon R9 M295X 4096 MB) to treat my timelapse footage, some shot as RAW + JPG, some as only JPG.

    This is what it I did:

    -import a JPG sequence into Lightroom

    -to develop, I did my settings (shadows, exposure, white balance) and healing spot on the first image in the sequence
    -right click on the first image in the sequence, then develop settings > copy settings... (I chose 'Check all'), then all the other images in the sequence selected, right-click and develop settings > paste settings
    all the images in the order now have the same look
    -right click on the first image in the sequence, then export > export..., and then selected for export to: specific folder (I created a folder "transformed" on the same level as the source folder).
    Rename: Custom Settings (Filename_proc - 01.jpg) and clicked the export button.

    Lightroom saves the entire sequence in the new folder quite quickly, but the files look exactly like the original files, without the development parameters, I did.
    What I am doing wrong?

    hope someone can help me.

    Then in the export dialog box, you have chosen to export 'Original' in the section "file settings". Look at ALL the settings in the export dialog box. The changes make you in this dialog are post-it and unless you go through each of them your next export will have the same parameters as the last export.

  • Export specific tables, with or without data

    Hello
    I am writing a script to export some data tables and other tables WITHOUT. I want a reproducible process (script, procedure, or function) if I don't want to use the Wizard SQL Developer. Can I just run a command EXP in SQL Developer? I'm running just a simple export with the following command but get an error:

    Start
    tables test/test@prod exp is TMP_TEST FILE=C:\Oracle\test.dmp LOG=C:\Oracle\test.log ROWS = N;.
    end;
    /

    Any help is greatly appreciated.
    Thank you
    John

    You can call from PL/SQL is the DBMS_DATAPUMP package. Here's the documentation: http://docs.oracle.com/cd/E11882_01/appdev.112/e25788/d_datpmp.htm

  • all object data

    Hi all

    I'm somewhat new to flex. I have this doubt for several days.

    I saw this

    for example: DataGridColumn dataField = "{data.something}" "

    in many places. What is data here? It is not defined anywhere. Is this a defect that points to the data source.

    Please specify.

    I also tried.

    < mx:DataGrid dataProvider = "{myXML.books}" >

    < columns >

    < mx:DataGridColumn dataField = "{data.book}" / >

    < / columns >

    < / mx:DataGrid >

    but it does not work as expected. (Assuming I have this XML < book > < book > Hello < / book > < wow book > < / book > < / books >)

    Help, please

    Thank you

    Manish

    I think you might have seen something like this:

    <>
    dataField = "image" headerText = "Image".
    Width = "150" >
           
               
                            <>
    Width = "100%" height = "140".
    horizontalAlign = "center" verticalAlign = "middle" >
                                   
                                   
                           
                   

           

    In this case, 'data' are a property of the item converter. In order to be used as part of rendering, a component must expose a property of 'data '.
    The property 'data' is filled with the relevant item in the dataProvider.

    The dataField property indicates which property of a dataProvider item to display a column. DataField = "data" Yes said the column to display the property data of the item. If your articles is not a 'data' property, then nothing is displayed.

    This link may be useful:

    http://www.Adobe.com/devnet/flex/QuickStart/using_item_renderers/

  • is there a way to export a PDF with all indesign tags?

    Guides, formatting, etc.?

    Overview of the overlay shows you how the final output will appear if you are printing and are intended to show you the result of printing one color on top of the other.

    You can choose to include non-printing objects and visible guides and grids in the export dialog box to print a PDF file.

  • Lightroom 3 does not import images with all the parameters used in camera

    I just upgraded to lr3 and import pictures from my Nikon D5000 in RAW format.

    I shot a bunch of images in monochrome mode on my camera with my contrast, sharpness and other parameters adjusted to my liking.  When I import into lightroom on the thumbnails, they seem to be that I shot them in black and white.  But if I click on the image in develop it converts in color and seems to remove my settings changes I had made in my camera.   I tried to click on black and white and it converts into a monochrome pure with any of my settings or the other.

    How can I tell lightroom to import images as-is and not change them unless I specifically choose changes to develop?

    Thanks for any help.

    The Lightroom FAQ has the answer to this frequently asked question:

    http://forums.Adobe.com/thread/358016?TSTART=0

  • Export/import a report

    Hi all

    I tried to manage a report to other FMS of export/import.

    I found this good documentation:

    http://en.community.Dell.com/TechCenter/performance-monitoring/Foglight-administrators/w/Admins-wiki/6425.building-a-custom-dashboard-to-summarize-LogFilter-alarms

    export:

    C:\Quest_Software\foglight5\bin > fglcmd.bat - srv 10.4.118.110 - port 8080 - usr foguser - pwd fogpwd123 cmd - m system util:uiexport: sa_salogsummary f C:\Temp\LogFilterSummaryDashboard.zip

    Import:

    $FOGLIGHT_HOME/bin/fglcmd.sh - 10.4.118.110 - port 8080 srv - usr - pwd fogpwd123 cmd - foguser util:uiimport f LogFilterSummaryDashboard.zip

    but my problem is, in this example, the module he wants to export has a good reputation: "system: sa_salogsummary.

    But if I look in my report, it bears the name: "user: saladisc.3" so I cut the '. '. 3 "and does, but as expected it does my all-inclusive usersettings of photos and so on.

    And if I extracted the zip file that was does and only change the wcf.xml of does, deleted all the other reports/dashboards that I don't want and didn't import xml without all the other stuff he does not appear :)

    any ideas how I could get this special report in an another fms? where is my failure?

    Thanks in advance

    The blog article that you referenced, build a custom dashboard to summarize LogFilter alarms describes the difference between data-driven drag and drop dashboards and reports and dashboards WCF based queries and reports.

    The 'special report' you are trying to copy to an another FMS appears to be a drag and drop the report. This report has a number of data views with direct references to the data in your original FMS. None of these specific data elements will exist in your FMS target, so it is unlikely that your migrated report will have any content once you've imported it there.

    The blog post also describes the technique of export and importation of a module of dashboard from a FMS. The system works at the level of a module, so all the views, queries, converters, etc in the module will be included in the export. If you want to export a single view/report and not others in the same module, you need to create a new module, and then (deep) copy the target view/report of the original module in the new module before exporting the new module. The technique of export/import works with both 'system' and 'user' modules, but queries modules WCF-based 'system' are more suited to sharing across different FMS that modules the user with drag-and-drop views/reports with direct references.

    Kind regards

    Brian Wheeldon

  • create tablespace with existing data file

    Dear Sir.
    We can create tablespace with an existing data file so I can use the tables and objects already exist in the data file?

    Kind regards

    Read about "transportable tablespace" and see if this is what you need.

  • Import only the users/roles

    Hello
    for testing purposes, I imported to fullexport.dmp; Only two users with their objects.
    Now, I would import all the remaining users + roles from the same file fullexport.dmp and roles.
    What is the best way to do this, I think that the first users should be imported only roles but I don't know how to do this?


    Thank you

    Thank you!

Maybe you are looking for