文章分类 -  ORACLE

Oracle 11G在用EXP 导出时,空表不能导出解决
摘要:11G中有个新特性,当表无数据时,不分配segment,以节省空间 解决方法: 1、insert一行,再rollback就产生segment了。 该方法是在在空表中插入数据,再删除,则产生segment。导出时则可导出空表。 2、设置deferred_segment_creation 参数 show parameter deferred_segment_creation NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ deferred_se... 阅读全文

posted @ 2013-01-14 18:24 站在云端 阅读(88) 评论(0) 推荐(0)

oracle 表空间迁移,移动表空间
摘要:需求,将当前用户下所有的表以及数据移动到新的表空间里总共5步:1:创建新的表空间create tablespace ylpw datafile '/u01/oracle/oradata/ora10g/ylpw.dbf' size 150m autoextend on next 20m permanent online; 2:生成移动表到新的表空间的脚本select 'alter table '||table_name||' move tablespace ylpw ;' from user_tables;3:生成移动索引到新表空间的脚本 sele 阅读全文

posted @ 2012-11-22 15:47 站在云端 阅读(649) 评论(0) 推荐(0)

oracle comment on的用法
摘要:oracle中用comment on命令给表或字段加以说明,语法如下:COMMENT ON { TABLE [ schema. ] { table | view } | COLUMN [ schema. ] { table. | view. | materialized_view. } column | OPERATOR [ schema. ] operator | INDEXTYPE [ schema. ] indextype | MATERIALIZED VIEW materialized_view }IS 'text' ;用法如下:1.对表的说明comment o... 阅读全文

posted @ 2012-11-19 22:36 站在云端 阅读(742) 评论(0) 推荐(0)

Oracle 字符集的查看和修改
摘要:一、什么是Oracle字符集Oracle字符集是一个字节数据的解释的符号集合,有大小之分,有相互的包容关系。ORACLE 支持国家语言的体系结构允许你使用本地化语言来存储,处理,检索数据。它使数据库工具,错误消息,排序次序,日期,时间,货币,数字,和日历自动适应本地化语言和平台。影响Oracle数据库字符集最重要的参数是NLS_LANG参数。它的格式如下: NLS_LANG = language_territory.charset它有三个组成部分(语言、地域和字符集),每个成分控制了NLS子集的特性。其中:Language: 指定服务器消息的语言, 影响提示信息是中文还是英文Territory 阅读全文

posted @ 2012-11-14 22:48 站在云端 阅读(211) 评论(0) 推荐(0)

Oracle 11G 开机自动启动(Linux)
摘要:1) root 下面修改/etc/oratab:将N改成Y。[root@localhost etc]# vi oratab# This file is used by ORACLE utilities. It is created by root.sh# and updated by the Database Configuration Assistant when creating# a database.# A colon, ':', is used as the field terminator. A new line terminates# the entry. Lin 阅读全文

posted @ 2012-10-06 12:42 站在云端 阅读(619) 评论(0) 推荐(0)

导航