temp2
logons cumulative 0 1logons current 1 1opened cursors cumulative 2 77opened cursors current 3 49user commits 4 10user rollbacks 5 0user call...
temp
--插入当天股份余额表 delete from audmon.H_stkasset where busi_date=v_busi_date and rgid = i_data_unit_code; insert into audmon.H_stkasset (BUSI_DATE, BRANCH_...
create tablespace
CREATE TABLESPACE ts_name DATAFILE '/dev/name1' SIZE 2000M, '/dev/name2' SIZE 2000M DEFAULT STORAGE ( INITIAL 64K NEXT 64K MAXEXTENTS UNLIMITED PCTINCREASE 50 );INITIAL 64K --初始化空间大小NEXT 64K --...
UNDO表空间满的问题
show parameter undo_retention 可查到默认值为900秒alter system set undo_retention= 3600;undo表空间不清除,是反复的覆盖利用。这个undo_retention表示数据在undo里保存的时间(持续时间),若在这一时间范围内产...
PARTITION
--转载1.1 分区表PARTITION table在ORACLE里如果遇到特别大的表,可以使用分区的表来改变其应用程序的性能。1.1.1 分区表的建立: 某公司的每年产生巨大的销售记录,DBA向公司建议每季度的数据放在一个分区内,以下...
oracle exception
oracle exceptioncreate or replace procedure p1(i_empno int)isv_empno int;e_no_row exception;beginv_empno :=i_empno;update kingstar.emp set empno = 3 where empno = i_empno;if sql%notfound then&n...
用数据交换方式把表数据迁移到分区表实例
--把kingstar.emp表的数据迁移到kingstar.EMP_partition分区表中--创建数据源表结构drop table kingstar.emp;create table kingstar.emp as select * from scott.emp where 1=2;alter table kingstar.EMP add ...