易截截图软件、单文件、免安装、纯绿色、仅160KB

Sybase数据库和oracle数据库用法


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 将数据库中的表inner_notify、notify_staff_relat导出
     exp aichannel/aichannel@TESTDB2 file= d:datanewsmgnt.dmp tables=(inner_notify,notify_staff_relat)
4 将数据库中的表table1中的字段filed1以"00"打头的数据导出
    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
    imp aichannel/aichannel@HUST full=y   file=d:datanewsmgnt.dmp ignore=y
    上面可能有点问题,因为有的表已经存在,然后它就报错,对该表就不进行导入。
    在后面加上 ignore=y 就可以了。
2 将d:daochu.dmp中的表table1 导入
imp system/manager@TEST   file=d:daochu.dmp   tables=(table1)
基本上上面的导入导出够用了。不少情况要先是将表彻底删除,然后导入。
注意:
操作者要有足够的权限,权限不够它会提示。
数据库时可以连上的。可以用tnsping TEST 来获得数据库TEST能否连上。
附录一:
给用户增加导入数据权限的操作
第一,启动sql*puls
第二,以system/manager登陆
第三,create user 用户名 IDENTIFIED BY 密码 (如果已经创建过用户,这步可以省略)
第四,GRANT CREATE USER,DROP USER,ALTER USER ,CREATE ANY VIEW ,
    DROP ANY VIEW,EXP_FULL_DATABASE,IMP_FULL_DATABASE,
       DBA,CONNECT,RESOURCE,CREATE SESSION   TO 用户名字
第五, 运行-cmd-进入dmp文件所在的目录,
       imp userid=system/manager full=y file=*.dmp
       或者 imp u


相关文档:

oracle学习笔记2

使用unrecoverable创建表
create table new_emp as select * from emp unrecoverable;
create table new_emp as select * from emp nologging; 
推荐使用logging或者nologging.
将表移动到新的数据段或新的表空间
通过移动来实现存储参数的修改
alter table emp move storage(initial 1m next 512k mimexte ......

Linux(Centos5.4)上安装oracle10gR2(10.2.1)

http://www.puschitz.com/InstallingOracle10g.shtml
我用的是Centos5.4
DVD光盘安装的linux操作系统,安装linux的时候选上开发工具,Xmanager,与数据库相关的包。
操作系统安装完成之后需要进行一系列的配置才能安装oracle10g,下面把
主要步骤记录下来。
1.安装完操作系统之后还是有些包没有安装,然而安装oracle10 ......

Oracle Data Gurad Logical Standby 相关说明


一.逻辑Standby的准备工作
1  确认操作的对象和语句是否能被逻辑Standby支持
由于逻辑Standby是通过SQL应用来保持与Primary数据库的同步。SQL应用与REDO应用是有很大的区别,REDO应用实际上是在物理Standby端进行RECOVER;SQL应用则是分析重做日志文件中的REDO信息,并将其转换为SQL语句,在逻辑Standby端执 ......

Oracle 目录服务

Create directory让我们可以在Oracle数据库中灵活的对文件进行读写操作,极大的提高了Oracle的易用性和可扩展性。
其语法为:
CREATE [OR REPLACE] DIRECTORY directory
AS 'pathname
';
本案例具体创建如下:
create or replace directory exp_dir as '/tmp';
目录创建以后,就可以把读写权限授予特定用 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号