oracle 备份数据库,导出数据库

  1. 导出数据库 exp hljslfh2/hljslfh@dbsvr file=d:\hljslfh2Of0426.dmp
  2. 导入数据库 imp hljslfh2/hljslfh@localhost/dbsvr file="d:\hljslfh2Of0426.dmp" full=y ignore=y
  3. 创建表空间管理
    https://localhost:1158/em

             上述语句说明如下:

  • hljslfh2是创建的登录数据库用户名;
  • hljslfh2是登录数据库的密码;
  • localhost:代表当前数据库的地址是本机,如果是远程导入,替换成对应的ip地址就行
  • dbsvr:是实例名称
  • file:后面的是你当前dmp文件存放的路径
  • full=y,这个貌似是全部
  • ignore=y,忽略一些错误

猜你喜欢

转载自www.cnblogs.com/pxkuan/p/9233343.html