易截截图软件、单文件、免安装、纯绿色、仅160KB

oracle dbtimezone修改

select dbtimezone from dual ;  --查看数据库时区
select sessiontimezone from dual ;  --查看会话时区
1.select u.name || '.' || o.name || '.' || c.name TSLTZcolumn
       from sys.obj$ o, sys.col$ c, sys.user$ u
         where c.type# = 231
                    and o.obj# = c.obj#
                    and u.user# = o.owner#;
  执行此句,如果能查询到数据进行第2步操作,否则转到3
2.执行下列语句
  --创建一个临时表
  create table ttt(
     order_id number ,
     oeder_Date date
  );
  --导入数据
  insert into ttt(order_id,oeder_date) select order_id,order_date from oe.orders
  --修改oe.orders表
  alter table oe.orders drop column order_date
  alter table oe.orders add order_date date
  --将临时表中的数据恢复到oe.orders
  update oe.orders a set order_date = (select oeder_Date from ttt b where a.order_ID = b.order_id);
  --删除临时表
  drop table ttt
3.修改 DBTIMEZONE
  alter database set time_zone='+08:00';
4.查看DBTIMEZONE
  select DBTIMEZONE from dual ;


相关文档:

Oracle复制表结构

 如下,表a是数据库中已经存在的表,b是准备根据表a进行复制创建的表:
  1、只复制表结构的sql
  create table b as select * from a where 1<>1

  2、即复制表结构又复制表中数据的sql
  create table b as select * from a
  3、复制表的制定字段的sql
  create table b as select row_id ......

Oracle Data blocks ,Extents,Segment

(一)Data blocks ,Extents,Segment
    这就是他们之间的逻辑结构。
    先看Data blocks(也叫逻辑块,oracle块,页)吧,oracle存储数据都是在这些数据块中,一个数据块是磁盘上数据库物理空间一系列物理字节的组成。
    比Data blocks更高一层的逻辑数据块空间是e ......

启用oracle的archive模式

经验:
alter system set log_archive_dest=’D:\oracle\archivelog’ scope=spfile;
alter system set log_archive_start=true scope=spfile;
之后,
create pfile from spfile
可验证加上没
一、查看数据库运行模式 
可以用超级用户(INTERNAL)在SQLPLUS中使用命令ARCHIVE LOG LIST查看 
......

如何编写oracle存储过程

在我的上一个银行项目中,我接到编写ORACLE存储过程的任务,我是程序员,脑袋里只有一些如何使用CALLABLE接口调用存储过程的经验,一时不知如何下手,我查阅了一些资料,通过实践发现编写ORACLE存储过程是非常不容易的工作,即使上路以后,调试和验证非常麻烦。简单地讲,Oracle存储过程就是存储在Oracle数据库中的一个程序 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号