修正ORACLE表的高水位线HWM

HWM 全名HIGH WATER MARK

在ORACLE中,执行对表的删除操作不会降低该表的高水位线。而全表扫描将始终读取一个段(extent)中所有低于高水位线标记的块。如果在执行删除操作后不降低高水位线标记,则将导致查询语句的性能低下。下面的方法都可以降低高水位线标记….

恢复表设置为unused的字段

先说说unused的用处,当生产库中有一张特大的表,如果像删除一个字段drop column命令因是ddl,会给表级增加排它锁,所有用到该表的应用都无法查询,同样表很大,就会等待很长的时间,所以ORACLE推出了unuse,先把表的该字段设为unuse,等到一个闲的时间再去真正物理的删除,但如果你标为unused了,后悔了咋办?
….

oracle impdp network从备份库导入测试库

以前写过一篇oracle 用imp/exp做的数据迁移方法,平时最头痛的就是让从生产库或备份库copy一份最新的数据库到开发的测试库,今天如果在测试库的同一网段有备份库,..

8, impdp system/oracle directory=impdp_dir network_link=tar31 schemas=icme remap_schema=icme:icme2;

关于dict与v$fixed_table

dict 里的条数与fixed_table不一样,网上也有说明,在这总结一下

DICT is a synonym for DICTIONARY
DICTIONARY contains descriptions of data dictionary tables and views.

V$FIXED_TABLE This view displays all dynamic performance tables, views, and derived tables in the database. Some V$ tables (for example, V$ROLLNAME) refer to real tables and are therefore not listed.
.

OS Authentication,ORACLE系统认证

[zhang@orazhang ~]$ sqlplus /

SQL*Plus: Release 10.2.0.1.0 – Production on Fri Apr 1 12:03:22 2011

Copyright (c) 1982, 2005, Oracle. All rights reserved.

Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 – Production
With the Partitioning, OLAP and Data Mining options

SQL> show user
USER is “OPS$ZHANG”

oracle随linux OS自动启动与关闭

在linux 上装的oracle ,每次开机都要手动启动oracle服务,想做到自动,改了好些天,可能是做的虚拟ASM原因一直服务启动出错,先不说ASM,let oracle instance automatic startup and close

环境:rhel 5 linux +oracle 10g

oracle create read only view创建只读视图

建立只读简单视图 SQL> create table test(id int,name varchar(20)); Table created. SQL> insert into test(1,’anbob.com’); insert into test(1,’anbob.com’) * ERROR at line 1: ORA-00928: missing SELECT keyword SQL> insert into test values(1,’anbob.com’); 1 row created. SQL> insert into test values(2,’weejar.com’); 1 row created. SQL> commit; Commit complete. SQL> select * from test; ID NAME ———- —————————————- 1 … Read more