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
相关文档:
其实这个很简单就安装三个包就可以了,分别是:
IO-Tty-1.07.tar.gz,Term-ReadLine-Gnu-1.16.tar.gz, uniread-1.01.tar.gz。
这三个包在我的空间里都有 http://fwx515354.download.csdn.net/
解压
tar -zxvf IO-Tty-1.07.tar.gz
tar -zxvf Term- ......
在java对oracle的操作中,日期字段是很头疼的事情,其实仔细研究一下也并不难掌握。
举个例子来说明:
表 book 中有name varchar2(20)//书籍名称,buydate Date //购买日期 两个字段。
已经创建了数据库连接Connection conn;
方法一、使用java.sql.Date实现比较简单的yyyy-mm-dd格式日期。
java.sql. ......
Oracle:一个数据库有多个用户,一个用户拥有一组数据库对象,这个用户我们俗称为方案,
通常一个业务系统对应一个数据库用户。
★Oracle安装成功后会自动创建十来个系统界别的账户。默认情况下这些账户中只有四个可用,其它的帐号都被设置成了锁定或是设置为过 期状态,这四个帐户就 ......
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
&nbs ......
新建文件系统
crfs -v jfs -g rootvg -m /arch -a \ size=32768 -a frag=512 -a nbpi=8192 也可以 smit。
开启归档模式
$ sqlplus '/as sysdba'
SQL*Plus: Release 10.2.0.1.0 - Production on Thu Dec 10 13:38 ......