Linux and Oracle commands used

Source: Internet
Author: User

--- Use an oracle user to go to sqlplus to delete the user and create another user and grant permissions

-- The permission must have synonym; otherwise, an error occurs when the imp dmp file is used.

Su-Oracle

Sqlplus/As sysdba

Drop user base cascade;
Create user base identified by zdsoft default tablespace tbs_base;
Grant connect, resource, create table, create view, execute any procedure, create any synonym to base;

 

-- Exit to execute the command line to import DMP data to the database
IMP system/zdsoft file = center2010-08-04.dmp fromuser = sxcenter touser = base2

 

-- Export the user's database to the DMP File

Exp base/zdsoft file = base2.6/base2.0 _ 201008.dmp

 

-- Export the specified table to dmp

Exp base2/zdsoft file = base2.6/base2.0 _ 201008.dmp tables = base_class, upper, base_family, base_grade, base_school, base_student, upper, base_unit, base_user, base_order, su_ware, su_server, upper

 

-- Copy the base2.6 folder to another machine.

Oracle@192.168.1.86:/home/Oracle/SCP-r base2.6/

 

 

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.