Oracle导入数据库


Copyright (c) 1982, 2005, Oracle.  All rights reserved.


连接到:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options

SQL> create temporary tablespace newempty_temp
  2  tempfile 'F:\Developer\oracle\product\10.2.0\oradata\date\newempty_temp01.d
bf'
  3  size 10m
  4  autoextend on
  5  next 10m maxsize 100m
  6  extent management local;

表空间已创建。

SQL> create tablespace newempty
  2
SQL>
SQL> create tablespace newempty
  2  datafile 'F:\Developer\oracle\product\10.2.0\oradata\date\newempty_data01.d
bf'
  3  logging
  4  size 10m
  5  autoextend on next 10m maxsize 100m
  6  extent management local;
size 10m
*
第 4 行出现错误:
ORA-02180: 无效的 CREATE TABLESPACE 选项


SQL> create tablespace newempty
  2  datafile 'F:\Developer\oracle\product\10.2.0\oradata\date\newempty_data01.d
bf'
  3  loggin
  4  size 10m
  5  autoextend on next 10m maxsize 100m
  6  extent management local;
loggin
*
第 3 行出现错误:
ORA-02180: 无效的 CREATE TABLESPACE 选项


SQL> create tablespace newempty
  2  datafile 'F:\Developer\oracle\product\10.2.0\oradata\date\newempty_data01.d
bf' size 10m
  3  autoextend on next 10m maxsize 100m
  4  extent management local;

表空间已创建。

SQL> create user empty identified by shanon213
  2  default tablsespace newempty
  3  temporary tablespace newempty_temp;
default tablsespace newempty
        *
第 2 行出现错误:
ORA-00921: 意外的 SQL 命令结尾


SQL> create user empty identified by shanon213
  2  default tablsespace newempty
  3  temporary tablespace newempty_temp;
default tablsespace newempty
        *
第 2 行出现错误:
ORA-00921: 意外的 SQL 命令结尾


SQL> create user empty identified by shanon213
  2  default tablespace newempty
  3  temporary tablespace newempty_temp;

用户已创建。

SQL> grant connect, resource to empty;

授权成功。

SQL> exit
从 Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options 断开

C:\Documents and Settings\Administrator>sqlplus empty/shanno213

SQL*Plus: Release 10.2.0.1.0 - Production on 星期二 4月 12 10:28:40 2011

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

ERROR:
ORA-01017: invalid username/password; logon denied


请输入用户名:  empty
输入口令:
ERROR:
ORA-01017: invalid username/password; logon denied


请输入用户名:
C:\Documents and Settings\Administrator>sqlplus system/root as sysdba

SQL*Plus: Release 10.2.0.1.0 - Production on 星期二 4月 12 10:30:38 2011

Copyright (c) 1982, 2005, Oracle.  All rights reserved.


连接到:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options

SQL> grant connect, resource to empty;

授权成功。

SQL> commit;

提交完成。

SQL> exit;
从 Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options 断开

C:\Documents and Settings\Administrator>impl empty/shanno213@orcl file=G:\shanon
\project\2011-4-11emptyOA.dmp
'impl' 不是内部或外部命令,也不是可运行的程序
或批处理文件。

C:\Documents and Settings\Administrator>imp empty/shanno213@orcl file=G:\shanon\
project\2011-4-11emptyOA.dmp

Import: Release 10.2.0.1.0 - Production on 星期二 4月 12 10:34:08 2011

Copyright (c) 1982, 2005, Oracle.  All rights reserved.


IMP-00058: 遇到 ORACLE 错误 1017
ORA-01017: invalid username/password; logon denied用户名: empty
口令:

连接到: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options

经由常规路径由 EXPORT:V10.02.01 创建的导出文件
IMP-00013: 只有 DBA 才能导入由其他 DBA 导出的文件
IMP-00000: 未成功终止导入

C:\Documents and Settings\Administrator>sqlplus system/root as sysdba

SQL*Plus: Release 10.2.0.1.0 - Production on 星期二 4月 12 10:37:32 2011

Copyright (c) 1982, 2005, Oracle.  All rights reserved.


连接到:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options

SQL> grant dba to empty;

授权成功。

SQL> commit;

提交完成。

SQL> exit;
从 Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options 断开

C:\Documents and Settings\Administrator>impl empty/shanno213@orcl file=G:\shanon
\project\2011-4-11emptyOA.dmp
'impl' 不是内部或外部命令,也不是可运行的程序
或批处理文件。

C:\Documents and Settings\Administrator>imp empty/shanno213@orcl file=G:\shanon\
project\2011-4-11emptyOA.dmp

Import: Release 10.2.0.1.0 - Production on 星期二 4月 12 10:38:55 2011

Copyright (c) 1982, 2005, Oracle.  All rights reserved.


IMP-00058: 遇到 ORACLE 错误 1017
ORA-01017: invalid username/password; logon denied用户名: ^C
C:\Documents and Settings\Administrator>imp empty/shanon213@orcl file=G:\shanon\
project\2011-4-11emptyOA.dmp

Import: Release 10.2.0.1.0 - Production on 星期二 4月 12 10:39:21 2011

Copyright (c) 1982, 2005, Oracle.  All rights reserved.


连接到: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options

经由常规路径由 EXPORT:V10.02.01 创建的导出文件
已经完成 ZHS16GBK 字符集和 AL16UTF16 NCHAR 字符集中的导入
IMP-00031: 必须指定 FULL=Y 或提供 FROMUSER/TOUSER 或 TABLES 参数
IMP-00000: 未成功终止导入

C:\Documents and Settings\Administrator>imp empty/shanon213@orcl full=y file=G:\
shanon\project\2011-4-11emptyOA.dmp

Import: Release 10.2.0.1.0 - Production on 星期二 4月 12 10:41:01 2011

Copyright (c) 1982, 2005, Oracle.  All rights reserved.


连接到: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options

经由常规路径由 EXPORT:V10.02.01 创建的导出文件
已经完成 ZHS16GBK 字符集和 AL16UTF16 NCHAR 字符集中的导入
. 正在将 EMPTY 的对象导入到 EMPTY
. 正在将 EMPTY 的对象导入到 EMPTY
. . 正在导入表          "BPB_SYS_MODULECONFIG"导入了           1 行
. . 正在导入表          "BPM_EXC_FILEBASEINFO"导入了           0 行
. . 正在导入表           "BPM_EXC_FILERCVINFO"导入了           0 行
. . 正在导入表               "BPM_SERIAL_BASE"导入了           0 行
. . 正在导入表                "BPM_SERIAL_USE"导入了           0 行
. . 正在导入表          "BPM_SYS_CATEGORYINFO"导入了           1 行
. . 正在导入表         "BPM_SYS_DESKTOPMODULE"导入了           9 行
. . 正在导入表         "BPM_SYS_FILEMODELINFO"导入了           0 行
. . 正在导入表        "BPM_SYS_FLOWACTIONINFO"导入了           0 行
. . 正在导入表          "BPM_SYS_FLOWBASEINFO"导入了           0 行
. . 正在导入表          "BPM_SYS_FLOWNODEINFO"导入了           0 行
. . 正在导入表      "BPM_SYS_FLOWNODERELATION"导入了           0 行
. . 正在导入表        "BPM_YW_PROCESSBASEINFO"导入了           0 行
. . 正在导入表         "BPM_YW_PROCESSCONTROL"导入了           0 行
. . 正在导入表     "BPM_YW_PROCESSCURRENTSTEP"导入了           0 行
. . 正在导入表        "BPM_YW_PROCESSNODEINFO"导入了           0 行
. . 正在导入表    "BPM_YW_PROCESSNODERELATION"导入了           0 行
. . 正在导入表   "BPM_YW_PROCESSOTHERFILEINFO"导入了           0 行
. . 正在导入表     "BPM_YW_PROCESSTRANSRECORD"导入了           0 行
. . 正在导入表          "CURRENT_SERIALNUMBER"导入了           0 行
. . 正在导入表              "DOCMODEL_DEPART1"导入了           0 行
. . 正在导入表               "DOCUMENT_ACTION"导入了          12 行
. . 正在导入表            "DOC_DATA_BASE_INFO"导入了           0 行
. . 正在导入表            "DOC_DATA_SORT_INFO"导入了           0 行
. . 正在导入表                      "DOC_MODE"导入了           0 行
. . 正在导入表            "EXC_FILEBODY_INFO1"导入了           0 行
. . 正在导入表                 "EXC_FILE_INFO"导入了           0 行
. . 正在导入表                "EXC_FILE_INFO1"导入了           0 行
. . 正在导入表            "EXC_OTHERFILE_INFO"导入了           0 行
. . 正在导入表           "EXC_OTHERFILE_INFO1"导入了           0 行
. . 正在导入表             "EXC_RECVDEP_INFO1"导入了           0 行
. . 正在导入表                  "EXC_REC_INFO"导入了           0 行
. . 正在导入表                 "EXC_REC_INFO1"导入了           0 行
. . 正在导入表            "FORM_FLOW_BASEINFO"导入了           0 行
. . 正在导入表            "FORM_FLOW_NODEINFO"导入了           0 行
. . 正在导入表        "FORM_FLOW_NODERELATION"导入了           0 行
. . 正在导入表           "FORM_FLOW_TRANSINFO"导入了           0 行
. . 正在导入表           "FORM_SYS_ACTIONINFO"导入了           0 行
. . 正在导入表             "FORM_SYS_BASEINFO"导入了           0 行
. . 正在导入表       "FORM_YW_PROCESSBASEINFO"导入了           0 行
. . 正在导入表           "INFOPERIODICAL_INFO"导入了           0 行
. . 正在导入表    "INFORMATION_CITEDEPARTMENT"导入了           0 行
. . 正在导入表    "INFORMATION_INFOPERIODICAL"导入了           0 行
. . 正在导入表  "INFORMATION_INFOPERIODICALTYPE"导入了           0 行
. . 正在导入表      "INFORMATION_INFOREGISTER"导入了           0 行
. . 正在导入表       "INFORMATION_INFORMATION"导入了           0 行
. . 正在导入表  "INFORMATION_INFORMATIONHISTORY"导入了           0 行
. . 正在导入表   "INFORMATION_INFORMATIONTYPE"导入了           0 行
. . 正在导入表    "INFORMATION_INFOTYPE_CUSER"导入了           0 行
. . 正在导入表      "PERIODICALTYPE_AUDITUSER"导入了           0 行
. . 正在导入表       "PERIODICALTYPE_READUSER"导入了           0 行
. . 正在导入表        "SHANON_PLAT_GROUP_MENU"导入了          42 行
. . 正在导入表      "SHANON_PLAT_MENU_PURVIEW"导入了           0 行
. . 正在导入表         "SHANON_PLAT_MENU_USER"导入了          21 行
. . 正在导入表      "SHANON_PLAT_PURVIEW_USER"导入了           0 行
. . 正在导入表     "SHANON_PLAT_SYSDEPARTMENT"导入了           2 行
. . 正在导入表          "SHANON_PLAT_SYSFILE1"导入了           0 行
. . 正在导入表      "SHANON_PLAT_SYSGROUPINFO"导入了           2 行
. . 正在导入表       "SHANON_PLAT_SYSMENUINFO"导入了          22 行
. . 正在导入表    "SHANON_PLAT_SYSPURVIEWINFO"导入了           0 行
. . 正在导入表       "SHANON_PLAT_SYSUSERINFO"导入了           2 行
即将启用约束条件...
成功终止导入, 没有出现警告。

C:\Documents and Settings\Administrator>sqlplus system/root@orcl as sysdba

SQL*Plus: Release 10.2.0.1.0 - Production on 星期二 4月 12 10:46:37 2011

Copyright (c) 1982, 2005, Oracle.  All rights reserved.


连接到:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options

SQL> revoke dba from empty;

撤销成功。

SQL>


--写于2011-04-15 22:09
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值