Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB
ÈÈÃűêÇ©£º c c# c++ asp asp.net linux php jsp java vb Python Ruby mysql sql access Sqlite sqlserver delphi javascript Oracle ajax wap mssql html css flash flex dreamweaver xml
 ×îÐÂÎÄÕ : Oracle

Upgrade Oracle 9i RAC to Oracle 10g RAC

Upgrade Oracle 9i RAC to Oracle 10g RAC
by Vincent Chan
This article provides the procedures for converting Oracle 9i (9.2.0.4) RAC to Oracle 10g (10.2.0.1) RAC on Red Hat Enterprise Linux 3 (RHEL3).
Oracle Database 10g and Oracle Real Application Cluster (RAC) 10g itself, boast many new and exciting features that simplify database manageability and provide higher availability and scalability. Compared to its predecessors, Oracle 10g RAC is much easier to install, use and manage, thereby reducing the total cost of ownership.
Overview
The RAC cluster comprises two Intel x86 servers running on RHEL3 (Kernel 2.4.21-27). Each node has access to a shared storage and connectivity to the public and private network.
This article is structured into the following steps:
1. Preliminary Installation
2. Install Oracle Clusterware
3. Install Oracle RAC Software
4. Upgrade the Database
5. Migrate Database to ASM (Optional Step)
Unless otherwise specified, you should execute all steps ......

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  ec ......

OracleÖг£Óõĺ¯Êý

  ---sqlµÄº¯ÊýµÄʹÓÃ(Oracle)      
      ---dualµÄʹÓãºÑÆÔª±í£ºÃ»ÓбíÐèÒª²éѯµÄʱºò ¿ÉÒÔÓÃËü
               ---select 'Hello World' from dual;     ---½á¹û£ºHello World
    ---µ¥Ðк¯Êý£ºµ¥ÐÐ
     1.ÈÕÆÚº¯Êý£ºÏµÍ³Ê±¼ä£ºsysdate---select sysdate from dual;                       ---µ±Ç°µÄϵͳʱ¼ä---½á¹û£º2010-05-14
           sysdate+(-)ÕûÊýµÄº¬Òå---select sysdate+1 from dual;        ---µ±Ç°ÏµÍ³Èͮ򵀼óÒ»Ìì---½á¹û£º2010-05-15
                    ---select sysdate-7 from dual;        ---µ±Ç°ÏµÍ³ÈÕÆÚµÄÉÏÒ»ÖÜ---½á¹û ......

Oracleѧϰ±Ê¼Ç£ºlinuxÏÂÆôÍ£Oracle


1. linuxÏÂÆô¶¯oracle
su - oracle
sqlplus /nolog
conn /as sysdba
startup
exit
lsnrctl start
exit
2. linuxϹرÕoracle
su - oracle
sqlplus /nolog
conn /as sysdba
shutdown immediate
exit
lsnrctl stop
exit
3¡¢Æô¶¯¼àÌýÆ÷
oracle@suse92:~> lsnrctl start
4¡¢Í£Ö¹¼àÌýÆ÷
oracle@suse92:~> lsnrctl stop
5¡¢²é¿´¼àÌýÆ÷״̬
oracle@suse92:~> l
......

Oracleѧϰ±Ê¼Ç£ºlinuxÏÂÆôÍ£Oracle


1. linuxÏÂÆô¶¯oracle
su - oracle
sqlplus /nolog
conn /as sysdba
startup
exit
lsnrctl start
exit
2. linuxϹرÕoracle
su - oracle
sqlplus /nolog
conn /as sysdba
shutdown immediate
exit
lsnrctl stop
exit
3¡¢Æô¶¯¼àÌýÆ÷
oracle@suse92:~> lsnrctl start
4¡¢Í£Ö¹¼àÌýÆ÷
oracle@suse92:~> lsnrctl stop
5¡¢²é¿´¼àÌýÆ÷״̬
oracle@suse92:~> l
......

Oracle Linux Æð動¤ÈÍ£Ö¹¤Î×Ô動»¯

¤½¤ÎËû¤Î¥ª¥Ú¥ìー¥Æ¥£¥ó¥°?¥·¥¹¥Æ¥à¤Ë¤ª¤±¤ë¥Çー¥¿¥Ùー¥¹¤ÎÆð動¤ÈÍ£Ö¹¤Î×Ô動»¯
dbstart¤ª¤è¤Ódbshut¥¹¥¯¥ê¥×¥È¤òʹÓ䷤ƥÇー¥¿¥Ùー¥¹¤ÎÆð動¤ÈÍ£Ö¹¤ò×Ô動»¯¤¹¤ë¤Ë¤Ï¡¢´Î¤ÎÊÖ順¤ò実ÐФ·¤Þ¤¹¡£
root¥æー¥¶ー¤Ç¥í¥°¥¤¥ó¤·¤Þ¤¹¡£
¥×¥é¥Ã¥È¥Õ¥©ー¥à¤Îoratab¥Õ¥¡¥¤¥ë¤ò編¼¯¤·¤Þ¤¹¡£
¥Õ¥¡¥¤¥ë¤ò開¤¯¤Ë¤Ï¡¢´Î¤Î¤¤¤º¤ì¤«¤Î¥³¥Þ¥ó¥É¤òʹÓä·¤Þ¤¹¡£
Solaris¤Î場ºÏ
# vi /var/opt/oracle/oratab
AIX¡¢HP-UX¤ª¤è¤ÓLinux¤Î場ºÏ
# vi /etc/oratab
oratab¥Õ¥¡¥¤¥ëÄڤΥÇー¥¿¥Ùー¥¹?¥¨¥ó¥È¥ê¤Ï¡¢´Î¤ÎÐÎʽ¤Ç±íʾ¤µ¤ì¤Þ¤¹¡£
SID:ORACLE_HOME:{Y|N|W}
¤³¤ÎÀý¤Î値Y¤ª¤è¤ÓN¤Ï¡¢¥¹¥¯¥ê¥×¥È¤Ç¥Çー¥¿¥Ùー¥¹¤ÎÆð動¤Þ¤¿¤ÏÍ£Ö¹¤ò実ÐФ¹¤ë¤«¤É¤¦¤«¤òÖ¸¶¨¤·¤Þ¤¹¡£×î³õ¤Ë¡¢Í£Ö¹¤ÈÆð動¤ò×Ô動»¯¤¹¤ë¥Çー¥¿¥Ùー¥¹¤´¤È¤Ë¡¢¥Çー¥¿¥Ùー¥¹¤Î¥¤¥ó¥¹¥¿¥ó¥¹識別×Ó£¨SID£©¤òÅÐ別¤·¤Þ¤¹¡£¤³¤ì¤Ï¡¢×î³õ¤Î¥Õ¥£ー¥ë¥É¤ÎSID¤Ç識別¤µ¤ì¤Þ¤¹¡£´Î¤Ë¡¢×îáá¤Î¥Õ¥£ー¥ë¥É¤ò¤½¤ ......

Oracle Linux Æð動¤ÈÍ£Ö¹¤Î×Ô動»¯

¤½¤ÎËû¤Î¥ª¥Ú¥ìー¥Æ¥£¥ó¥°?¥·¥¹¥Æ¥à¤Ë¤ª¤±¤ë¥Çー¥¿¥Ùー¥¹¤ÎÆð動¤ÈÍ£Ö¹¤Î×Ô動»¯
dbstart¤ª¤è¤Ódbshut¥¹¥¯¥ê¥×¥È¤òʹÓ䷤ƥÇー¥¿¥Ùー¥¹¤ÎÆð動¤ÈÍ£Ö¹¤ò×Ô動»¯¤¹¤ë¤Ë¤Ï¡¢´Î¤ÎÊÖ順¤ò実ÐФ·¤Þ¤¹¡£
root¥æー¥¶ー¤Ç¥í¥°¥¤¥ó¤·¤Þ¤¹¡£
¥×¥é¥Ã¥È¥Õ¥©ー¥à¤Îoratab¥Õ¥¡¥¤¥ë¤ò編¼¯¤·¤Þ¤¹¡£
¥Õ¥¡¥¤¥ë¤ò開¤¯¤Ë¤Ï¡¢´Î¤Î¤¤¤º¤ì¤«¤Î¥³¥Þ¥ó¥É¤òʹÓä·¤Þ¤¹¡£
Solaris¤Î場ºÏ
# vi /var/opt/oracle/oratab
AIX¡¢HP-UX¤ª¤è¤ÓLinux¤Î場ºÏ
# vi /etc/oratab
oratab¥Õ¥¡¥¤¥ëÄڤΥÇー¥¿¥Ùー¥¹?¥¨¥ó¥È¥ê¤Ï¡¢´Î¤ÎÐÎʽ¤Ç±íʾ¤µ¤ì¤Þ¤¹¡£
SID:ORACLE_HOME:{Y|N|W}
¤³¤ÎÀý¤Î値Y¤ª¤è¤ÓN¤Ï¡¢¥¹¥¯¥ê¥×¥È¤Ç¥Çー¥¿¥Ùー¥¹¤ÎÆð動¤Þ¤¿¤ÏÍ£Ö¹¤ò実ÐФ¹¤ë¤«¤É¤¦¤«¤òÖ¸¶¨¤·¤Þ¤¹¡£×î³õ¤Ë¡¢Í£Ö¹¤ÈÆð動¤ò×Ô動»¯¤¹¤ë¥Çー¥¿¥Ùー¥¹¤´¤È¤Ë¡¢¥Çー¥¿¥Ùー¥¹¤Î¥¤¥ó¥¹¥¿¥ó¥¹識別×Ó£¨SID£©¤òÅÐ別¤·¤Þ¤¹¡£¤³¤ì¤Ï¡¢×î³õ¤Î¥Õ¥£ー¥ë¥É¤ÎSID¤Ç識別¤µ¤ì¤Þ¤¹¡£´Î¤Ë¡¢×îáá¤Î¥Õ¥£ー¥ë¥É¤ò¤½¤ ......

oracleºÍsqlserver²éѯʱ×èÈûÇé¿ö

1.oracle»·¾³
create table test
(
id number(4),
name varchar2(20)
)
ÔÚÒ»¸ösessionÖÐ
insert into test values(1,'aa');
ÔÚÁíÒ»¸ösessionÖÐ
select * from test1;
²éѯû±»×èÈû
2.sqlserver»·¾³
ÔÚÒ»¸ösessionÖÐ
insert into test values(1,'aa');
ÔÚÁíÒ»¸ösessionÖÐ
select * from test1;
²éѯ±»×èÈû(ʵ¼ÊÉÏǰһ¸ösessionÔÚupdate»òdeleteʱ¾ù»á×èÈû±¾´Î²éѯ,µ±È»,Èç¹û¼ÓÉÏwith (nolock),Ò²²»»á±»×èÈû) ......

oracleºÍsqlserver²éѯʱ×èÈûÇé¿ö

1.oracle»·¾³
create table test
(
id number(4),
name varchar2(20)
)
ÔÚÒ»¸ösessionÖÐ
insert into test values(1,'aa');
ÔÚÁíÒ»¸ösessionÖÐ
select * from test1;
²éѯû±»×èÈû
2.sqlserver»·¾³
ÔÚÒ»¸ösessionÖÐ
insert into test values(1,'aa');
ÔÚÁíÒ»¸ösessionÖÐ
select * from test1;
²éѯ±»×èÈû(ʵ¼ÊÉÏǰһ¸ösessionÔÚupdate»òdeleteʱ¾ù»á×èÈû±¾´Î²éѯ,µ±È»,Èç¹û¼ÓÉÏwith (nolock),Ò²²»»á±»×èÈû) ......
×ܼǼÊý:3994; ×ÜÒ³Êý:666; ÿҳ6 Ìõ; Ê×Ò³ ÉÏÒ»Ò³ [52] [53] [54] [55] 56 [57] [58] [59] [60] [61]  ÏÂÒ»Ò³ βҳ
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ