Solved

oracle 10 : does "exp" exports indexes definition?

Posted on 2010-11-25
7
989 Views
Last Modified: 2012-05-10
Easy question about oracle :)

Hi there,
I can't find an clear answer in most FAQs, wikis and so on about exp/imp in Oracle (10, if you must know):
With a "exp system/manager@mydb file=blah.exp log=blah.log full=y buffer=30000000 statistics=NONE"

=> do I export views definition?
I know "full=y" should tell me "yes, we tell you it's full!!!!", but I still have a doubt because I didn't read it on an official website and did not see a simple "exporting indexes definitions" in the export log. I just can see:

. exporting indextypes
. exporting bitmap, functional and extensible indexes

And I can read something clear about views, grants and so on. Why not something like "exporting indexes definitions"?

I must tell I didn't try to recreate from the export to check, there's a complicated story behind this :)
Thank you for your answer


Question B: when I import a single table, I suppose everything related to this table is imported/recreated? (indexes, grants...) What about views? as they might be using many several tables.
0
Comment
Question by:mchkorg
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 5

Accepted Solution

by:
Zopilote earned 32 total points
ID: 34214069
From Ver. 10g Oracle is recommending to use Data Pump Export and Import tools, which are enhanced versions of original Export and Import tools.

The export dump file contains objects in the following order:

   1. Type definitions
   2. Table definitions
   3. Table data
   4. Table indexes
   5. Integrity constraints, views, procedures, and triggers
   6. Bitmap, function-based, and domain indexes

http://www.oracle-dba-online.com/export_and_import.htm
0
 
LVL 3

Assisted Solution

by:htonkov
htonkov earned 31 total points
ID: 34214488
B: views are not imported when you import a table, as you've already mentioned a reason why :)

Regards,
Hrvoje
0
 
LVL 5

Expert Comment

by:Zopilote
ID: 34214557
1) The interesting point to notice when issuing these commands is to take a close look at the export logs for each of these export modes. When taking a full schema export you will notice that the export pulls out various additional object types such as grants, roles, sequences, and views.

LOG FILE
Processing object type SCHEMA_EXPORT/VIEW/VIEW

2) INCLUDE=VIEWS
http://www.orafaq.com/node/74
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 74

Assisted Solution

by:sdstuber
sdstuber earned 31 total points
ID: 34215316
exporting a table (whether by full or listed object) will get the indexes, constraints, triggers and grants for that table.

Note, that doesn't guarantee successful import though.  Constraints or triggers that reference objects not imported will be invalid.

Grants to users or roles that don't exist won't be applied
0
 
LVL 7

Author Comment

by:mchkorg
ID: 34236982
Hi,
Thank you, I'll read this just a bit later and keep you informed

regards
0
 
LVL 5

Assisted Solution

by:anand_20703
anand_20703 earned 31 total points
ID: 34276392
Question B: when I import a single table, I suppose everything related to this table is imported/recreated? (indexes, grants...) What about views? as they might be using many several tables.
--- everything related to table will not be imported. i.e, plsql objects, views will not be imported.
    if u want to import everything related to one table, go for schema import. i.e, owner=schemaname. this will bring all the objects including plsql objects,view,indexes,tables,grants...
0
 
LVL 7

Author Closing Comment

by:mchkorg
ID: 34281600
Thank you
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question