---
title: "sdfasdf"
author: "lan13217"
date: "2009-11-19T10:26:39Z"
tags: ["Oracle", "SQL"]
slug: "sdfasdf"
draft: false
lastmod: "2009-11-19T20:17:07Z"
id: 520139
url: "https://snowelf.iteye.com/blog/520139"
---

```sql

CREATE TABLESPACE "DBSPACE"
DATAFILE 'D:\oracle\product\10.2.0\oradata\ICDADMIN\DBSPACE.dbf' SIZE 650M REUSE AUTOEXTEND ON NEXT  1280K 
MAXSIZE UNLIMITED EXTENT MANAGEMENT LOCAL;

create user icdadmin
  identified by "icd"
  default tablespace DBSPACE
  temporary tablespace TEMP
  profile DEFAULT;
  
grant create session to icdadmin;
grant dba to icdadmin;  

exp icdadmin/icd@icdadmin file=d:\code\bak.dmp fromuser(portal) touser(icdadmin) log=d:\code\logexp

exp icdadmin/icd@icdadmin file=d:\code\bak.dmp fromuser(portal) touser(icdadmin) log=d:\code\logexp

imp icdadmin/icd@icdadmin file=e:\share\new.dat log=e:\share\logimp fromuser=(icdadmin) touser=(icdadmin)



```