lckblog

1.连接数据库

    export ORACLE_SID=mydb

  sqlplus /nolog

  connect / as sysdba

 

2.创建表空间

  create tablespace mydbtest datafile \'/home/oracle/mydb.dbf\' size 200m;

 

3.创建用户

  create user mydbuser identified by mypassword default tablespace mydbtest;

 

4.用户授权

  grant create session,create table,unlimited tablespace to mydbuser;

 

5.用户授权dba

  grant dba to mydbuser;

 

6.导入导出数据库

  exp mydbuser/mypassword file=/home/oracle/exp.dmp

  imp mydbuser/mypassword file=/home/oracle/exp.dmp FULL=Y

  expdp mydbmypassword dumpfile=mydb.dmp logfile=exp.log

    impdp mydbuser/mypassword dumpfile=mydb.dmp REMAP_SCHEMA=mydb:mydbuser logfile=exp.log FULL=Y transform=OID:N

分类:

技术点:

相关文章:

  • 2022-01-07
  • 2021-12-09
  • 2021-08-16
  • 2021-12-29
  • 2021-10-21
  • 2021-11-30
  • 2021-05-18
猜你喜欢
  • 2021-04-13
  • 2021-11-30
  • 2021-11-29
  • 2021-11-26
  • 2021-11-30
  • 2021-11-29
  • 2021-12-14
相关资源
相似解决方案