Oracle 11g +pl/sql installation problems

After installing oracle 11G, you need to install a 32-bit client. When the PL/SQL is installed, you can connect to the oracle 11G
PL/SQL. Set the corresponding configuration path in the preferences. When
logging in, if there is an error in the connector, check the monitoring service. Whether the configuration is correct

expdp/impdp import and export
1. Create a logical directory. This command will not create a real directory in the operating system. It is best to create it by an administrator such as system.
create directory dpdata1 as 'd:\test\dump';

Second, check the administrator directory (also check whether the operating system exists, because Oracle does not care whether the directory exists, if it does not exist, an error occurs)
select * from dba_directories;

3. Give the scott user the operation authority in the specified directory, preferably given by administrators such as system.
grant read,write on directory dpdata1 to scott;



4. Export data
1) By user guide
expdp scott/tiger@orcl DIRECTORY=dpdata1 schemas=scott dumpfile=expdp.dmp;
2) Parallel process parallel
expdp scott/tiger@orcl directory= dpdata1 dumpfile=scott3.dmp parallel=40 job_name=scott3
3) Import by table name
expdp scott/tiger@orcl TABLES=emp,dept dumpfile=expdp.dmp DIRECTORY=dpdata1;
4) Direct
expdp scott/tiger@orcl directory=dpdata1 dumpfile=expdp.dmp Tables=emp query='WHERE deptno=20 ';
5) Lead
expdp system/manager DIRECTORY=dpdata1 DUMPFILE=tablespace.dmp TABLESPACES=temp,example;
6) Lead the entire database
expdp system/manager DIRECTORY=dpdata1 DUMPFILE=full.dmp FULL=y;

5. Restore Data
create tablespace test datafile 'D:\test.ora' size 1000m; the test here is the tablespace name
1) Import to the specified user under
impdp scott/tiger DIRECTORY=configured file DUMPFILE=expdp.dmp SCHEMAS=user;
2) Change the owner of the table
impdp system/manager DIRECTORY=dpdata1 DUMPFILE=expdp.dmp TABLES=scott.dept REMAP_SCHEMA=scott:system;
3) Import the tablespace
impdp system/manager DIRECTORY=dpdata1 DUMPFILE=tablespace.dmp TABLESPACES=example;
4) Import database
impdb system/manager DIRECTORY=dump_dir DUMPFILE=full.dmp FULL=y;
5) Append data
impdp system/manager DIRECTORY=dpdata1 DUMPFILE=expdp .dmp SCHEMAS=system TABLE_EXISTS_ACTION=append;

system settings advanced settings that
character set problem create a new variable in the environment variable

name:                   
NLS_LANG
value:
SIMPLIFIED CHINESE_CHINA.ZHS16GBK

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326606916&siteId=291194637