PS C:\Users\calvin> imp hrnew/123456@test file=hr.dmp fromuser=hr touser=hrnew log=hr_imp.log

 
Import: Release 11.2.0.1.0 - Production on Tue Mar 19 13:31:36 2013
 
Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
 
 
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
 
Export file created by EXPORT:V11.02.00 via conventional path
IMP-00013: only a DBA can import a file exported by another DBA
IMP-00000: Import terminated unsuccessfully
 
只有dba权限才可以做导入;
 
PS C:\Users\calvin> imp system/123456@test file=hr.dmp fromuser=hr touser=hrnew log=hr_imp.log
 
Import: Release 11.2.0.1.0 - Production on Tue Mar 19 13:31:55 2013
 
Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
 
 
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
 
Export file created by EXPORT:V11.02.00 via conventional path
import done in ZHS16GBK character set and UTF8 NCHAR character set
. importing HR's objects into HRNEW
. . importing table                    "COUNTRIES"         25 rows imported
. . importing table                   "COUNTRIES1"
IMP-00058: ORACLE error 1950 encountered
ORA-01950: no privileges on tablespace 'USERS'
. . importing table                  "DEPARTMENTS"         27 rows imported
. . importing table                    "EMPLOYEES"        107 rows imported
. . importing table                      "INDTEST"
IMP-00058: ORACLE error 1950 encountered
ORA-01950: no privileges on tablespace 'USERS'
IMP-00017: following statement failed with ORACLE error 1950:
 "CREATE TABLE "IOT_TEST" ("ID" NUMBER, "C1" VARCHAR2(10), "C2" VARCHAR2(10),"
 "  CONSTRAINT "PK_IOT_TEST" PRIMARY KEY ("ID") ENABLE ) ORGANIZATION INDEX  "
 "PCTFREE 10 INITRANS 2 MAXTRANS 255 STORAGE(INITIAL 65536 NEXT 1048576 MINEX"
 "TENTS 1 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "INDE"
 "X_TEST1" LOGGING NOCOMPRESS PCTTHRESHOLD 50 INCLUDING "C2" OVERFLOW PCTFREE"
 " 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 LOGGING  STORAGE(INITIAL 65536 NEXT "
 "1048576 MINEXTENTS 1 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TAB"
 "LESPACE "USERS""
IMP-00003: ORACLE error 1950 encountered
ORA-01950: no privileges on tablespace 'USERS'
. . importing table                         "JOBS"         19 rows imported
. . importing table                        "JOBS1"
IMP-00058: ORACLE error 1950 encountered
ORA-01950: no privileges on tablespace 'USERS'
. . importing table                  "JOB_HISTORY"         10 rows imported
. . importing table                    "LOCATIONS"         23 rows imported
. . importing table                   "ORDER_ITEM"          0 rows imported
. . importing table                 "ORDER_MASTER"          0 rows imported
. . importing table                       "PHONES"          0 rows imported
. . importing table                      "REGIONS"          6 rows imported
. . importing table                           "T1"
IMP-00058: ORACLE error 1950 encountered
ORA-01950: no privileges on tablespace 'USERS'
. . importing table                           "T2"
IMP-00058: ORACLE error 1950 encountered
ORA-01950: no privileges on tablespace 'USERS'
. . importing table                        "TEST1"          1 rows imported
. . importing table                     "TEST_REC"
IMP-00058: ORACLE error 1950 encountered
ORA-01950: no privileges on tablespace 'USERS'
. . importing table                     "TMPTABLE"          0 rows imported
IMP-00041: Warning: object created with compilation warnings
 "CREATE FORCE VIEW "HRNEW"."EMP1"                           ("EMPLOYEE_ID",""
 "FIRST_NAME","LAST_NAME","EMAIL","PHONE_NUMBER","HIRE_DATE","JOB_ID","SALARY"
 "","COMMISSION_PCT","MANAGER_ID","DEPARTMENT_ID") AS "
 "SELECT "EMPLOYEE_ID","FIRST_NAME","LAST_NAME","EMAIL","PHONE_NUMBER","HIRE_"
 "DATE","JOB_ID","SALARY","COMMISSION_PCT","MANAGER_ID","DEPARTMENT_ID" FROM "
 "HR.EMPLOYEES"
About to enable constraints...
Import terminated successfully with warnings.
PS C:\Users\calvin>