飞艳小屋

程序--人生--哲学___________________欢迎艳儿的加入

BlogJava 首页 新随笔 联系 聚合 管理
  52 Posts :: 175 Stories :: 107 Comments :: 0 Trackbacks

Oracle Database Configuration Assistant 创建好数据库 A( 在开如菜单里 )

DOS 环境下 , 打入 Sqlplus/nolog

Connect system/system as sysdba

Create user smile identified by smile;// 注意别忘记打分号

Grant dba to smile with admin option;

导入数据进入 A,imp smile/smile@A file=c:\bb.bmp

 imp system/manager@TEST  file=d:\daochu.dmp   full=y

  数据 出:  1 将数据 TEST 完全 , system manager 出到 D:\daochu.dmp    exp system/manager@TEST file=d:\daochu.dmp full=y  2 将数据 system sys 的表    exp system/manager@TEST file=d:\daochu.dmp owner=(system,sys)  3 将数据 中的表 table1 table2    exp system/manager@TEST file=d:\daochu.dmp tables=(table1,table2)   4 将数据 中的表 table1 中的字段filed100 的数据    exp system/manager@TEST file=d:\daochu.dmp tables=(table1) query=\ where filed1 like 00%\        上面是常用的 出, 压缩 我不太在意,用 winzip dmp文件可以很好的 压缩                      在上面命令后面 加上 compress=y  就可以了 数据的  1 D:\daochu.dmp 中的数据 TEST 数据 中。    imp system/manager@TEST  file=d:\daochu.dmp    上面可能有点 问题 ,因 有的表已 存在,然后它就 报错 对该 表就不 入。    在后面加上 ignore=y 就可以了。  2 d:\daochu.dmp中的表table1  imp system/manager@TEST  file=d:\daochu.dmp  tables=(table1)     基本上上面的 用了。 不少情况我是将表 除,然后 入。   注意:   你要有足 限, 限不 它会提示你。   数据 库时 可以 上的。可以用 tnsping TEST 得数据 TEST 能否 上。

posted on 2006-06-12 15:48 天外飞仙 阅读(209) 评论(0)  编辑  收藏 所属分类: Oracle

只有注册用户登录后才能发表评论。


网站导航: