Oracle table partitioning, table analysis, and Oracle data Pump file Import and Export Happy edition

Source: Internet
Author: User

1, first say the Oracle table partition is what it, so we come to raise a peach, chestnut is too small, we do not lift, we come to give a peach.

You have 5 million documents, you're going to put him on disk, okay, we'll just have a folder, and a 5 million-point file is there, we want to find the one that opens, hey, we have to find out when.

At this point, a person tells you that you have files in different folders according to the specific rules, so you will find a lot.

Wow, suddenly you are enlightened, you say, yes, you are so good, why didn't I think of it? After the separation I am looking for the words will be much faster, so you are very happy, also very much to serve him. So you started to do it.

--This different folder is different partition, the file is certainly not the table data, how can the file be data?

Back to the text, so you just follow his words to start to set up folders, but you suddenly find out what the meaning Ah, I how to build folders (table partition) Ah, in fact, very simple, more simple than the query SQL.

It is important that you understand his concept and meaning.

Now let's talk about how to create it, and we need to build the partitions so that the data is automatically entered into the corresponding partition.

Then we generally build partitions are divided by the time partition, divided well, such as June data, we go to the June partition to find, rather than in all the table to find a piece of data, efficiency will improve a lot.

Partition statements are simple,

2. Table Analysis

3, Oracle data Pump file Export Import

Login to the Linux system, log in with the root user, su-oracle switch to Oracle user, orac;e do not need to switch.

Input SQLPLUS/ASSYSDBA Switch SQL window

SQL>SF dba_directories;--Query Path command

Sq>create or replace directory datapump as '/homeoracle/datapimp ' creates or replaces the backup path command

Determine if write permission is not available chmod 777

Export command: EXPDP \ '/as sysdba\ ' directory = datapump schemas=*** dumpfile=***.dmp content=all parallel=2 logfile = export.log--Whole Backup of a library

Oracle table partitioning, table analysis, and Oracle data Pump file Import and Export Happy edition

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.