Remember an Oracle Database migration deployment

Source: Internet
Author: User

1 --20,141,230 Deployment scripts (from top to bottom in chronological order)2 3 4 --command line, export the database data to be deployed (no semicolon)5 --EXPDP rmb3/[email protected] schemas=rmb3 directory=expdir dumpfile=20141230.dmp logfile=20141230.log6     --comment on the sentence:7     --expdp:cmd command (i.e. an EXE program under win)8     --Rmb3/[email protected]: username/password @ Local Service naming (local service naming SID in Netmanager, not that global service name)9     --SCHEMAS=RMB3: SCHEMAS of the user to exportTen     --Directory : Export file storage directory One     --dumpfile: Generated DMP file name (with extension) A     --logfile: Log file name -  -      the --If the overwrite deployment needs to be removed by user and tablespace - --drop user $ cascade; - --drop tablespace RMB including contents and datafiles; -  + --Create or replace directory Exp_dir as ' D:\app\Administrator\exp_dir ';--Specify a directory to hold the export file for the database - --Grant Read,write on directory Exp_dir to sys;--gives a user authorization to access the specified directory +  A --New Table Space at --Specifies the dbf file directory for the new tablespace, typically stored in the Oradata directory of the Oracle installation directory - CREATEtablespace RMB - LOGGING -DataFile'D:\app\Administrator\oradata\orcl\RMB.DBF'   - SIZE 50M -Autoextend on  in NEXT32M MAXSIZE UNLIMITED - EXTENT MANAGEMENT LOCAL; to  + --Create a new user and specify a table space - Create User$ identified bytest123 the DEFAULTtablespace RMB; *  $ --authorizing a new userPanax Notoginseng GrantConnect,resource toRMB; - Grant CreateSession,dba toRMB; the --Reclaim RMB user permissions to manipulate all tablespaces + RevokeUnlimited tablespace fromRMB; A --Modify user The quota limit for the RMB in the tablespace is "unlimited" the Alter User$ quota Unlimited onRMB; +  - --command line, importing data for new users (no semicolon) $ --IMPDP rmb/[email protected] schemas=rmb3 exclude=user REMAP_TABLESPACE=RMB3:RMB REMAP_SCHEMA=RMB3:RMB directory= Exp_dir dumpfile=20141230.dmp Logfile=20141230imp.log $     --comment on the sentence: -     --impdp:cmd command (i.e. an EXE program for win) -     --SCHEMAS: Source SCHEMAS to import the     --exclude: Excluding specific objects -     --REMAP_TABLESPACE=RMB3:RMB: Modify user tablespace (source table space: Destination tablespace)Wuyi     --Remap_schema: Modify user Schema (source schema: Destination schema), meaning to move user data from the source schema to the destination schema the     --DumpFile: The name of the data file to import -     --logfile: File name of the import log Wu  -      About --Supplement $ --View all table spaces - Select *  fromdba_tablespaces; - --View information for the RMB table space - Select file_name, Tablespace_name fromDba_data_fileswhereTablespace_name='RMB'; A --View all Catalogs + Select *  fromDba_directories;

Remember an Oracle Database migration deployment

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.