修改oracle实例名

目前的实例名是PROD9,我要改为RAC 。

1、创建一个pfile ,一会儿要用。
bash-3.2$sqlplus /nolog

SQL*Plus: Release 10.2.0.4.0 - Production on Mon May 21 10:48:59 2012

Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.

SQL> conn / as sysdba
Connected to an idle instance.
SQL>
SQL> create pfile from spfile;

File created.

SQL> exit   
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

2、修改环境变量里的ORACLE_SID ,改为新的RAC  。

Linux 是里.bash_profile 。
Solaris 里是.profile 。执行下面的命令使其生效。
bash-3.2$source .profile
bash-3.2$ echo $ORACLE_SID
RAC
bash-3.2$
bash-3.2$ cd /export/home/ora10/prod10db/10.2.0/db
db4_BI10/ dbs/      
bash-3.2$ cd /export/home/ora10/prod10db/10.2.0/dbs/
bash-3.2$ echo $ORACLE_SID
RAC
bash-3.2$
bash-3.2$ ls -al
total 87186
drwxr-x---   2 ora10    dba          512 May 21 10:43 .
drwxr-xr-x  70 ora10    dba         1536 Aug 13  2009 ..
-rw-r--r--   1 ora10    dba            0 Nov 10  2010 PROD9_db_ifile.ora
-rw-r-----   1 ora10    dba      22249472 May 15 13:46 c-4167122059-20120515-00
-rw-r-----   1 ora10    dba      22249472 May 15 14:36 c-4167122059-20120515-01
-rw-rw----   1 ora10    dba         1544 May 15 17:40 hc_BI10.dat
-rw-rw----   1 ora10    dba         1544 May 21 10:43 hc_PROD9.dat
-rw-r-----   1 ora10    dba         8385 Sep 11  1998 init.ora
-rw-r--r--   1 ora10    dba        20713 May 15 14:16 initBI10.ora
-rw-r--r--   1 ora10    dba        20716 May 15 14:14 initBI10.orabak
-rw-r--r--   1 ora10    dba         2655 May 21 10:43 initPROD9.ora
-rw-r--r--   1 ora10    dba        12920 May  3  2001 initdw.ora
-rw-rw----   1 ora10    dba           24 Aug 11  2009 lkBI10
-rw-rw----   1 ora10    dba           24 Nov 10  2010 lkPROD9
-rw-rw----   1 ora10    dba           24 May 21 10:37 lkRAC
-rw-r-----   1 ora10    dba         1536 May 17  2011 orapwBI10
-rw-r-----   1 ora10    dba         2560 Nov 10  2010 spfileBI10.ora.bak
-rw-r-----   1 ora10    dba         6656 May 21 10:38 spfilePROD9.ora

#创建新实例的pfile
bash-3.2$cp initPROD9.ora initRAC.ora
bash-3.2$ sqlplus /nolog

SQL*Plus: Release 10.2.0.4.0 - Production on Mon May 21 10:48:59 2012

Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.

SQL>conn / as sysdba
Connected to an idle instance.

#使用新的实例名启动数据库
SQL> startup mount pfile='/export/home/ora10/prod10db/10.2.0/dbs/initRAC.ora';
ORACLE instance started.

Total System Global Area 5.3687E+10 bytes
Fixed Size                  2239008 bytes
Variable Size            1245238752 bytes
Database Buffers         5.2429E+10 bytes
Redo Buffers               10813440 bytes
Database mounted.
SQL>
SQL> select instance_name from v$instance;

INSTANCE_NAME
--------------------------------
RAC

SQL> alter database open;

Database altered.

SQL> select instance_name,status from v$instance;

INSTANCE_NAME                    STATUS
-------------------------------- --------------------
RAC                              OPEN

SQL>create spfile from pfile;

File created.

SQL>
SQL> SHUTDOWN IMMEDIATE
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> STARTUP
SQL>





更多参考:


the specified nodes are not clusterable

根据rowid删除表中重复的行

Agent process exited abnormally during initialization

一次字符乱码的解决过程

rman实验(一)

rman实验(二)

ORA-00600: internal error code, arguments: [keltnf

ORA-00600: ORA-12012 ORA-08102解决

linux下完全删除oracle

INFO: /usr/bin/ld: crt1.o: No such file: No such file or directory

centos4.8_64上安装oracle10201建库报ORA-12547

EM乱码解决

ORA-31613 Master process DM00 failed during startup

ORA-00600: internal error code, arguments: [4194], [29], [27], [], [], [], [], []

ORA-24324 ORA-01041 ORA-03113

centos5.3升级oracle

pdksh-5.2.14-36.el5.i386.rpm

使用rman进行数据库迁移

oracle10.2.0.1升级到10.2.0.4报错

Upgrade Oracle 10g from 10.2.0.1 to 10.2.0.4 (Single Instance)

改oracle的name和dbid

修改oracle实例名

Solaris8上迁移oracle8i---上

Solaris8上迁移oracle8i---下

未备份归档日志导致数据丢失的实验

使用NBU进行数据库迁移

catalog备份数据库

RMAN FORMAT字符串格式化

Error: can not register my instance state - -1

not all alterations performed

The ASM instance configured on the local node is a single-instance ASM

/u01/crs102/bin/crsctl.bin: error while loading shared libraries: libstdc++.so.5: cannot open shared

Initializing the Oracle ASMLib driver: [FAILED]

ORA-00245: control file backup operation failed

WARNING: failed to read mirror side 1 of virtual extent 229 logical extent

模拟恢复参数文件

Interface eth0 checked failed

import server uses ZHS16GBK character set (possible charset conversion)




  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值