DB命令二
来源:互联网 发布:淘宝店铺信誉等级表 编辑:程序博客网 时间:2024/05/02 04:18
数据库备份SQL
数据库备份是对一个DBA最基本的要求,在维护工作中也是经常要用到,的常用的备份如下,这里不会把所有的参数列出来,根据实际情况需要自己可以添加一些参数:
导出表:
exp name/password@mycon tables=(table1,table2) file=tab1.dmp
导出用户:
exp name/password@mycon owner=name file=name.dmp
导出数据库:
exp system/password@mycon full=y inctype=complete file=full1.dmp
导入表:
imp system/password@mycon file= tab1.dmp tables=(table1,table2) touser=name
导入用户:
imp name/password@mycon file=name.dmp full=yes
导入数据库:
imp system/password@mycon file=full1.dmp full=yes
select * from t_hrstafftemp t where t.employee_number between '00180000' and '00190000' and to_char(t.creation_date,'yyyymmdd') = to_char(sysdate, 'yyyymmdd')
update t_hrstafftemp t2 set t2.last_update_date=sysdate where t2.employee_number between '00100000' and '00110000';
select sysdate from dual;
select person_mobile_code from t_hrstafftemp where REGEXP_LIKE(person_mobile_code, '^[1-9].*-.*');
- DB命令二
- DB命令
- DB命令五
- DB命令一
- DB命令三
- DB命令四
- rake db相关命令
- yii2 读取db操作db命令
- mysql 命令操作mysql db
- [MongoDB]db.serverStatus()命令详解
- SSIS OLE DB 命令 使用方法
- 【db课程实习】PostgreSQL基本命令
- Mongo DB 学习(2): 简单命令
- mongo db 入门进阶:命令使用
- rails学习笔记: rake db 相关命令
- openstack-db命令初始化数据库出错,解决方法!
- rails学习笔记: rake db 相关命令
- cmd 命令 db.sql文件导入
- oracle常用操作
- Objective-C 2.0 with Cocoa Foundation--- 4,继承
- JBoss端口修改
- DB命令一
- pl/sql developer 连接远程oracle
- DB命令二
- SQL Server直接查询: 其它的连接/Excel
- visual studio c++调试时查看错误状态
- javascript中return的作用
- EJB数据源的配置(以JBoss为例)
- DB命令三
- 安装Fedora 15后需做的25件事情
- c# ,hash表
- android权限大全