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

Oracle RAC 10.2.0.1 升级 10.2.0.4 简单描述

推荐crs版本高于db版本
If you also plan to apply this patch to Oracle Clusterware,
ensure that you apply the patch to Oracle Clusterware before
applying it to Oracle Database. This is because Oracle Clusterware
hould always be at the same or later version as the database.
涉及到数据库而不是实例的,都只需要在节点1上执行即可。
 Update Oracle Time Zone Definitions
SELECT version from v$timezone_file;
If this query reports version 4, no action is required; in this case, continue with steps described in section 7.6.
If this reports a version lower or higher then 4, see OracleMetalink document 553812.1 Actions for the DSTv4 update in the Release 10.2.0.4 patchset.
running utltzpv4.sql  (node1)
If a "select * from sys.sys_tzuv2_temptab;" gives no rows then there is no action to take for the Oracle time zone definitions
SQL> select * from sys.sys_tzuv2_temptab;    
no rows selected
2, Stop All Processes (node1)
$ srvctl stop database -d  ecsdb
$ srvctl stop nodeapps -n ecsrac01
$ srvctl stop nodeapps -n ecsrac02
$ crs_stop -all
 ./runInstaller  (node1)  -- upgrade CRS
    Name: OraCrs10g_home
4.  cd /u01/product/crs/install 
    # ./root102.sh   (each node)
5. ./runInstaller  (node1)  -- upgrade RDBMS
    name : OraDb10g_home1
6.  cd /u01/product/oracle/  
# ./root.sh   (each node)
7.  upgrade database
    manually :  ingore --- Run the Pre-Upgrade Information Tool
  
    $ srvctl start listener -n ecsrac01
    $ srvctl start listener -n ecsrac02 
 
    If you are using Automatic Storage Management, start the Automatic Storage Management instance.
    $ sqlplus /nolog
    SQL> CONNECT SYS AS SYSDBA
 Enter password: SYS_password
 SQL> STARTUP NO


相关文档:

ORACLE中用rownum分页并排序的SQL语句

第一种: 
select b.* from
 ( select a.*, rownum row_num from
   (select t.* from A05_ORGANIZATION t order by org_name_en asc) a
  ) b
 where b.row_num  between 1 and 5  order by b.row_num asc
第二种(更高效):
select b.* from
 ( select a.*, rown ......

用Java操作Oracle日期类型字段

在java对oracle的操作中,日期字段是很头疼的事情,其实仔细研究一下也并不难掌握。
举个例子来说明:
表 book    中有name varchar2(20)//书籍名称,buydate Date //购买日期 两个字段。
已经创建了数据库连接Connection conn;
方法一、使用java.sql.Date实现比较简单的yyyy-mm-dd格式日期。
java.sql. ......

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 存储过程

1.创建过程
   与其它的数据库系统一样,Oracle的存储过程是用PL/SQL语言编写的能完成一定处理功能的存储在数据库字典中的程序。
  语法:
  create [or replace] procedure procedure_name
  [ (argment [ { in| in out }] type,
  argment [ { in | out | in out } ] type
  { is | as }
  <类型 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号