[心缘地方]同学录
首页 | 功能说明 | 站长通知 | 最近更新 | 编码查看转换 | 代码下载 | 常见问题及讨论 | 《深入解析ASP核心技术》 | 王小鸭自动发工资条VBA版
登录系统:用户名: 密码: 如果要讨论问题,请先注册。

[整理硬盘]Oracle的导入导出的命令

上一篇:[转]英语中年份、日期、时间的读法
下一篇:[备忘]windows2000下安装MSN7.5.0324

添加日期:2008/2/13 9:05:14 快速返回   返回列表 阅读3721次
如何单独备份一个或多个表? 

命令详解: 
D:\>exp 用户/密码 tables=表
D:\>exp 用户/密码 tables=(表1,…,表2)
D:\>exp system/manager tables=(用户.表)
D:\>exp system/manager tables=(用户1.表1,用户2.表2)
============================================================
如何导入指定表? 

命令详解: 

D:\>exp scott/tiger file=a.dmp 
D:\>imp test/test fromuser=scott tables=emp file=a.dmp
D:\>imp test/test tables=dept file=a.dmp ignore=y   //ignore create error

说明:
如果导出用户没有DBA权限,则导入用户可以不用指定fromuser、touser参数
如果导出用户拥有DBA权限,则导入用户也必须拥有DBA权限
===========================================================================
 如何单独备份一个或多个用户? 

命令详解: 

D:\>exp scott/tiger file=导出文件
D:\>exp system/manager owner=(用户1,用户2,…,用户n) file=导出文件
===============================================================================
 如何给表、列加注释? 

系统环境: 
1、数据库: Oracle 8i R3 (8.1.7) for NT 企业版

说明: 
SQL>comment on table 表 is '表注释';
注释已创建。

SQL>comment on column 表.列 is '列注释';
注释已创建。

SQL> select * from user_tab_comments where comments is not null;
SQL> select * from user_col_comments where comments is not null;
===================================================================
http://www.oradb.net

在存储过程中如何判断一张视图是否存在
SELECT COUNT(*) 
FROM ALL_OBJECTS 
WHERE OWNER='&OWER' AND OBJECT_NAME='&VIEWNAME'
/
 

评论 COMMENTS
没有评论 No Comments.

添加评论 Add new comment.
昵称 Name:
评论内容 Comment:
验证码(不区分大小写)
Validation Code:
(not case sensitive)
看不清?点这里换一张!(Change it here!)
 
评论由管理员查看后才能显示。the comment will be showed after it is checked by admin.
CopyRight © 心缘地方 2005-2999. All Rights Reserved