2017年9月8日

Oracle 创建表分区

摘要: create table TableName1( id CHAR(36) not null, samplingdate TIMESTAMP(6) not null, instantaneousflow NUMBER(10,3), totalflow NUMBER(10), flowmeterid C 阅读全文

posted @ 2017-09-08 11:24 离线 阅读(265) 评论(0) 推荐(0) 编辑

oracle 数据库备份还原

摘要: ::备份完整的空数据库,包括:表,视图,序列,函数,包等exp aaa/bbb@192.168.1.163/orcl OWNER=aaa file=F:\ccc.dmp ROWS=N statistics=none ::备份某几个表结构和数据 exp aaa/bbb@192.168.1.163/or 阅读全文

posted @ 2017-09-08 11:19 离线 阅读(521) 评论(0) 推荐(0) 编辑

修改Oracle 字符集,解决IMP-00019: 由于 ORACLE 错误 12899 而拒绝行

摘要: 问题:IMP-00019: 由于 ORACLE 错误 12899 而拒绝行IMP-00003: 遇到 ORACLE 错误 12899ORA-12899: 列 "JACKEYJ"."JK_REGISTER"."OPNAME" 的值太大 (实际值: 21, 最大值: 20) 列 1 523从9i环境下e 阅读全文

posted @ 2017-09-08 11:11 离线 阅读(987) 评论(0) 推荐(0) 编辑

Oracle 删除某个用户下的对象

摘要: --删除某个用户下的对象set heading off;set feedback off;spool d:/dropobj.sql; prompt --Drop constraint select 'alter table '||table_name||' drop constraint '||co 阅读全文

posted @ 2017-09-08 11:10 离线 阅读(197) 评论(0) 推荐(0) 编辑

解决11g导出时,空表不能导出问题

摘要: --根据上述查询,可以构建针对空表分配空间的命令语句,如下:Select 'alter table '||table_name||' allocate extent;' from user_tables where segment_created= 'NO'; --批量输出上述生成的SQL语句,建立 阅读全文

posted @ 2017-09-08 11:09 离线 阅读(109) 评论(0) 推荐(0) 编辑

Oracle常用sql

摘要: /*//查询oracle的连接数select count(*) from v$session;//当前用户连接数 select count(*) from v$session t where t.username='xxx' ;//数据库允许的最大连接数select value from v$par 阅读全文

posted @ 2017-09-08 11:07 离线 阅读(287) 评论(0) 推荐(0) 编辑

Oracle 创建表空间和用户

摘要: /*用sys SYSDBA *//*分为四步 *//*第1步:创建临时表空间 */create temporary tablespace xxx_temp tempfile 'D:\app\Administrator\oradata\orcl\xxx_temp.dbf' size 50m autoe 阅读全文

posted @ 2017-09-08 10:50 离线 阅读(221) 评论(0) 推荐(0) 编辑

导航