ORACLE_SID vs. RAC
Hi,
in my environemt I setup 2 nodes RAC.
I installed SLES with the orarun package.
In the /etc/profile.d/oracle.sh I defined the ORACLE_SID
My question:
During the installation the setup generated two instances for two nodes.
orcl1, orcl2
The SID is set to orcl
Do I need to modify the SID on each node to the appropriate instancename ?
Or is the system able to handle this ?
Christian
Hi Christian,
i am also on the way of instlling RAC. From my understanding on such a environment you need to have unique instance names. Set therfore your ORACL_SID's to orcl1 and orcl2.
Cheers,
David
OCP 9i / 10g / 11g
http://www.oratoolkit.ch/knowledge/howto/installation/otn.php
Similar Messages
-
Error in Creation of Dataguard for RAC
My pfile of RAC looks like:
RACDB2.__large_pool_size=4194304
RACDB1.__large_pool_size=4194304
RACDB2.__shared_pool_size=92274688
RACDB1.__shared_pool_size=92274688
RACDB2.__streams_pool_size=0
RACDB1.__streams_pool_size=0
*.audit_file_dest='/u01/app/oracle/admin/RACDB/adump'
*.background_dump_dest='/u01/app/oracle/admin/RACDB/bdump'
*.cluster_database_instances=2
*.cluster_database=true
*.compatible='10.2.0.1.0'
*.control_files='+DATA/racdb/controlfile/current.260.627905745','+FLASH/racdb/controlfile/current.256.627905753'
*.core_dump_dest='/u01/app/oracle/admin/RACDB/cdump'
*.db_block_size=8192
*.db_create_file_dest='+DATA'
*.db_domain=''
*.db_file_multiblock_read_count=16
*.db_file_name_convert='+DATA/RACDB','+DATADG/RACDG'
*.db_name='RACDB'
*.db_recovery_file_dest='+FLASH'
*.db_recovery_file_dest_size=2147483648
*.dispatchers='(PROTOCOL=TCP) (SERVICE=RACDBXDB)'
*.fal_client='RACDB'
*.fal_server='RACDG'
RACDB1.instance_number=1
RACDB2.instance_number=2
*.job_queue_processes=10
*.log_archive_config='DG_CONFIG=(RACDB,RACDG)'
*.log_archive_dest_1='LOCATION=+FLASH/RACDB/ VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=RACDB'
*.log_archive_dest_2='SERVICE=RACDG VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=RACDG'
*.log_archive_dest_state_1='ENABLE'
*.log_archive_dest_state_2='DEFER'
*.log_archive_format='%t_%s_%r.arc'
*.log_file_name_convert='+DATA/RACDB','+DATADG/RACDG'
*.open_cursors=300
*.pga_aggregate_target=16777216
*.processes=150
*.remote_listener='LISTENERS_RACDB'
*.remote_login_passwordfile='exclusive'
*.service_names='RACDB'
*.sga_target=167772160
*.standby_file_management='AUTO'
RACDB2.thread=2
RACDB1.thread=1
*.undo_management='AUTO'
RACDB2.undo_tablespace='UNDOTBS2'
RACDB1.undo_tablespace='UNDOTBS1'
*.user_dump_dest='/u01/app/oracle/admin/RACDB/udump'
My pfile of Dataguard Instance in nomount state looks like:
RACDG.__db_cache_size=58720256
RACDG.__java_pool_size=4194304
RACDG.__large_pool_size=4194304
RACDG.__shared_pool_size=96468992
RACDG.__streams_pool_size=0
*.audit_file_dest='/u01/app/oracle/admin/RACDG/adump'
*.background_dump_dest='/u01/app/oracle/admin/RACDG/bdump'
##*.cluster_database_instances=2
##*.cluster_database=true
*.compatible='10.2.0.1.0'
##*.control_files='+DATA/RACDG/controlfile/current.260.627905745','+FLASH/RACDG/controlfile/current.256.627905753'
*.core_dump_dest='/u01/app/oracle/admin/RACDG/cdump'
*.db_block_size=8192
*.db_create_file_dest='+DATADG'
*.db_domain=''
*.db_file_multiblock_read_count=16
*.db_file_name_convert='+DATADG/RACDG','+DATA/RACDB'
*.db_name='RACDB'
*.db_recovery_file_dest='+FLASHDG'
*.db_recovery_file_dest_size=2147483648
*.dispatchers='(PROTOCOL=TCP) (SERVICE=RACDGXDB)'
*.FAL_CLIENT='RACDG'
*.FAL_SERVER='RACDB'
*.job_queue_processes=10
*.LOG_ARCHIVE_CONFIG='DG_CONFIG=(RACDB,RACDG)'
*.log_archive_dest_1='LOCATION=+FLASHDG/RACDG/ VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=RACDG'
*.log_archive_dest_2='SERVICE=RACDB VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=RACDB'
*.LOG_ARCHIVE_DEST_STATE_1='ENABLE'
*.LOG_ARCHIVE_DEST_STATE_2='ENABLE'
*.log_archive_format='%t_%s_%r.arc'
*.log_file_name_convert='+DATADG/RACDG','+DATA/RACDB'
*.open_cursors=300
*.pga_aggregate_target=16777216
*.processes=150
##*.remote_listener='LISTENERS_RACDG'
*.remote_login_passwordfile='exclusive'
SERVICE_NAMES='RACDG'
sga_target=167772160
standby_file_management='auto'
undo_management='AUTO'
undo_tablespace='UNDOTBS1'
user_dump_dest='/u01/app/oracle/admin/RACDG/udump'
DB_UNIQUE_NAME=RACDG
and here is what I am doing on the standby location:
[oracle@dg01 ~]$ echo $ORACLE_SID
RACDG
[oracle@dg01 ~]$ rman
Recovery Manager: Release 10.2.0.1.0 - Production on Tue Jul 17 21:19:21 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
RMAN> connect auxiliary /
connected to auxiliary database: RACDG (not mounted)
RMAN> connect target sys/xxxxxxx@RACDB
connected to target database: RACDB (DBID=625522512)
RMAN> duplicate target database for standby;
Starting Duplicate Db at 2007-07-17 22:27:08
using target database control file instead of recovery catalog
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: sid=156 devtype=DISK
contents of Memory Script:
restore clone standby controlfile;
sql clone 'alter database mount standby database';
executing Memory Script
Starting restore at 2007-07-17 22:27:10
using channel ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: starting datafile backupset restore
channel ORA_AUX_DISK_1: restoring control file
channel ORA_AUX_DISK_1: reading from backup piece /software/backup/ctl4.ctl
channel ORA_AUX_DISK_1: restored backup piece 1
piece handle=/software/backup/ctl4.ctl tag=TAG20070717T201921
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:23
output filename=+DATADG/racdg/controlfile/current.275.628208075
output filename=+FLASHDG/racdg/controlfile/backup.268.628208079
Finished restore at 2007-07-17 22:27:34
sql statement: alter database mount standby database
released channel: ORA_AUX_DISK_1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 07/17/2007 22:27:43
RMAN-05501: aborting duplication of target database
RMAN-05001: auxiliary filename +DATA/racdb/datafile/undotbs2.265.627906771 conflicts with a file used by the target database
RMAN-05001: auxiliary filename +DATA/racdb/datafile/example.264.627905917 conflicts with a file used by the target database
RMAN-05001: auxiliary filename +DATA/racdb/datafile/users.259.627905395 conflicts with a file used by the target database
RMAN-05001: auxiliary filename +DATA/racdb/datafile/sysaux.257.627905385 conflicts with a file used by the target database
RMAN-05001: auxiliary filename +DATA/racdb/datafile/undotbs1.258.627905395 conflicts with a file used by the target database
RMAN-05001: auxiliary filename +DATA/racdb/datafile/system.256.627905375 conflicts with a file used by the target database
RMAN>
Any help to clear this error will be apprecited.......
Message was edited by:
Bal
nullHi
Thanks everybody for helping me on this issue...........
As suggested, I had taken the parameter log_file_name_convert and db_file_name_convert out of my RAC primary database but still I am getting the same error.
Any help will be appriciated..............
SQL> show parameter convert
NAME TYPE VALUE
db_file_name_convert string
log_file_name_convert string
SQL>
oracle@dg01<3>:/u01/app/oracle> rman
Recovery Manager: Release 10.2.0.1.0 - Production on Wed Jul 18 17:07:49 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
RMAN> connect auxiliary /
connected to auxiliary database: RACDB (not mounted)
RMAN> connect target sys/xxx@RACDB
connected to target database: RACDB (DBID=625522512)
RMAN> duplicate target database for standby;
Starting Duplicate Db at 2007-07-18 17:10:53
using target database control file instead of recovery catalog
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: sid=156 devtype=DISK
contents of Memory Script:
restore clone standby controlfile;
sql clone 'alter database mount standby database';
executing Memory Script
Starting restore at 2007-07-18 17:10:54
using channel ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: starting datafile backupset restore
channel ORA_AUX_DISK_1: restoring control file
channel ORA_AUX_DISK_1: reading from backup piece /software/backup/ctl5.ctr
channel ORA_AUX_DISK_1: restored backup piece 1
piece handle=/software/backup/ctl5.ctr tag=TAG20070718T170529
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:33
output filename=+DATADG/racdg/controlfile/current.275.628208075
output filename=+FLASHDG/racdg/controlfile/backup.268.628208079
Finished restore at 2007-07-18 17:11:31
sql statement: alter database mount standby database
released channel: ORA_AUX_DISK_1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 07/18/2007 17:11:43
RMAN-05501: aborting duplication of target database
RMAN-05001: auxiliary filename +DATA/racdb/datafile/undotbs2.265.627906771 conflicts with a file used by the target database
RMAN-05001: auxiliary filename +DATA/racdb/datafile/example.264.627905917 conflicts with a file used by the target database
RMAN-05001: auxiliary filename +DATA/racdb/datafile/users.259.627905395 conflicts with a file used by the target database
RMAN-05001: auxiliary filename +DATA/racdb/datafile/sysaux.257.627905385 conflicts with a file used by the target database
RMAN-05001: auxiliary filename +DATA/racdb/datafile/undotbs1.258.627905395 conflicts with a file used by the target database
RMAN-05001: auxiliary filename +DATA/racdb/datafile/system.256.627905375 conflicts with a file used by the target database -
Question about DBCA generate script o create RAC database 2 node cluster
Question about creating two node RAC database 11g after installing and configuration 11g clusterware. I've used DBCA to generate script to create a rac database. I've set
environment variable ORACLE_SID=RAC and the creating script creates instance of RAC1 and RAC2. My understanding is that each node will represent a node, however there should only be one database with a name of 'RAC'. Please adviseYou are getting your terminology mixed up.
You only have one database. Take a look, there are one set of datafiles on shared storage.
You have 2 instances which are accessing one database.
Database name is RAC. Instance names are RAC1, RAC2, etc, etc.
Also, if you look at the listener configuration and if your tnsnames is setup properly then connecting to RAC will connect you to either one of the instances wheras connecting to RAC1 will connect you to that instance. -
Oracle 10gR2 RAC EE 10.2.0.5 problem with one node.
Hi, I have an Oracle Rac 10gR2 10.2.0.5 EE on SLES 10 on ibm ppc. My problem is that in crs don't appear that database is start in one instance. However the database is start when I use srvctl or sqlplus
crsctl query crs softwareversion
CRS active version on the cluster is [10.2.0.5.0]
crsctl query crs activeversion
CRS active version on the cluster is [10.2.0.5.0]
oracle@agripa:/u01/oracle/app/product/102_64/crs/bin> ./srvctl config database
ELIO3
oracle@agripa:/u01/oracle/app/product/102_64/crs/bin> ./srvctl status database -d ELIO3
La instancia ELIO32 se está ejecutando en el nodo julia
La instancia ELIO31 no se está ejecutando en el nodo agripa
agripa:/u01/oracle/app/product/102_64/crs/bin # ./crs_stat -t
Nombre Tipo Destino Estado Host
ora....31.inst application ONLINE OFFLINE
ora....32.inst application ONLINE ONLINE julia
ora.ELIO3.db application ONLINE ONLINE julia
ora....PA.lsnr application ONLINE OFFLINE
ora....PA.lsnr application ONLINE OFFLINE
ora.agripa.gsd application ONLINE OFFLINE
ora.agripa.ons application ONLINE OFFLINE
ora.agripa.vip application ONLINE ONLINE agripa
ora....IA.lsnr application ONLINE ONLINE julia
ora.julia.gsd application ONLINE ONLINE julia
ora.julia.ons application ONLINE ONLINE julia
ora.julia.vip application ONLINE ONLINE julia
oracle@agripa:/u01/oracle/app/product/102_64/app/bin> ./srvctl start instance -d ELIO3 -i ELIO31
PRKP-1001 : Error al iniciar la instancia ELIO31 en el nodo agripaThis command show an error, however the database is up.
oracle@agripa:/u01/oracle/app/product/102_64/app/bin> sqlplus / as sysdba
SQL*Plus: Release 10.2.0.5.0 - Production on Mié Sep 26 09:32:25 2012
Copyright (c) 1982, 2010, Oracle. All Rights Reserved.
Conectado a:
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - Production
With the Partitioning, Real Application Clusters, OLAP, Data Mining
and Real Application Testing options
SQL> select * from v$active_instances;
INST_NUMBER INST_NAME
2 julia:ELIO32
4 agripa:ELIO31
SQL>But crs, don't show it.
agripa:/u01/oracle/app/product/102_64/crs/bin # ./crs_stat -t
Nombre Tipo Destino Estado Host
ora....31.inst application ONLINE OFFLINE
ora....32.inst application ONLINE ONLINE julia
ora.ELIO3.db application ONLINE ONLINE julia
ora....PA.lsnr application ONLINE OFFLINE
ora....PA.lsnr application ONLINE OFFLINE
ora.agripa.gsd application ONLINE OFFLINE
ora.agripa.ons application ONLINE OFFLINE
ora.agripa.vip application ONLINE ONLINE agripa
ora....IA.lsnr application ONLINE ONLINE julia
ora.julia.gsd application ONLINE ONLINE julia
ora.julia.ons application ONLINE ONLINE julia
ora.julia.vip application ONLINE ONLINE juliaSome logs...
oracle@agripa:/u01/oracle/app/product/102_64/app/log/agripa/racg> cat ora.ELIO3.ELIO31.inst.log
2012-09-26 09:35:45.108: [ COMMCRS][53473856]clsc_connect: (0x40002a0a6c0) no listener at (ADDRESS=(PROTOCOL=ipc)(KEY=ora_crsqs))
2012-09-26 09:36:15.150: [ RACG][173648] [2346][173648][ora.ELIO3.ELIO31.inst]: end for resource = ora.ELIO3.ELIO31.inst, action = rundetach, status = -1, time = 300.600s
agripa:/u01/oracle/app/product/102_64/crs/bin # ls -ltrach /var/tmp/.oracle/
total 512
srwxrwxrwx 1 oracle oinstall 0 2012-09-24 08:28 sagripaDBG_CSSD
srwxrwxrwx 1 oracle oinstall 0 2012-09-24 08:28 sOracle_CSS_LclLstnr_crs_3
srwxrwxrwx 1 oracle oinstall 0 2012-09-24 08:28 sOCSSD_LL_agripa_crs
srwxrwxrwx 1 oracle oinstall 0 2012-09-24 08:28 sagripaDBG_EVMD
srwxrwxrwx 1 oracle oinstall 0 2012-09-24 08:28 sCagripa_crs_evm
srwxrwxrwx 1 oracle oinstall 0 2012-09-24 08:28 sAagripa_crs_evm
srwxrwxrwx 1 oracle oinstall 0 2012-09-24 09:46 s#3633.2
srwxrwxrwx 1 oracle oinstall 0 2012-09-24 09:46 s#3633.1
srwxrwxrwx 1 oracle oinstall 0 2012-09-24 10:00 s#11308.1
srwxrwxrwx 1 oracle oinstall 0 2012-09-24 10:03 s#11308.2
drwxrwxrwt 8 root root 232 2012-09-26 09:24 ..
srwxrwxrwx 1 oracle oinstall 0 2012-09-26 09:30 sora_racg_ELIO3_agripa
srwxrwxrwx 1 oracle oinstall 0 2012-09-26 09:35 sSYSTEM.evm.acceptor.auth
srwxrwxrwx 1 root root 0 2012-09-26 09:35 sagripaDBG_CRSD
srwxrwxrwx 1 root root 0 2012-09-26 09:40 sCRSD_UI_SOCKET
srwxrwxrwx 1 root root 0 2012-09-26 09:45 sora_crsqs
srwxrwxrwx 1 root root 0 2012-09-26 09:45 sprocr_local_conn_0_PROC
srwxrwxrwx 1 oracle oinstall 0 2012-09-26 09:45 sOCSSD_LL_agripa_
drwxrwxrwt 2 root root 640 2012-09-26 09:45 .
oracle@agripa:/u01/oracle/app/product/102_64/app/log/agripa/racg> cat imon_ELIO3.log
2012-09-26 09:30:41.047: [ RACG][173648] [1100][173648][ora.ELIO3.ELIO31.inst]: racgimon started
2012-09-26 09:31:06.174: [ RACG][70660672] [1100][70660672][ora.ELIO3.ELIO31.inst]:
SQL*Plus: Release 10.2.0.5.0 - Production on Wed Sep 26 09:30:42 2012
Copyright (c) 1982, 2010, Oracle. All Rights Reserved.
Enter user-name: Connected to an idle instance.
SQL> ORACLE instance started.
Total System Global Area 8589934592 bytes
2012-09-26 09:31:06.174: [ RACG][70660672] [1100][70660672][ora.ELIO3.ELIO31.inst]: Fixed Size 2109992 bytes
Variable Size 1358958040 bytes
Database Buffers 7214202880 bytes
Redo Buffers 14663680 bytes
Base de datos montada.
Base de datos abierta.
2012-09-26 09:31:06.174: [ RACG][70660672] [1100][70660672][ora.ELIO3.ELIO31.inst]: SQL> Desconectado de Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - Production
With the Partitioning, Real Application Clusters, OLAP, Data Mining
and Real Application Testing options
2012-09-26 09:31:06.404: [ RACG][70660672] [1100][70660672][ora.ELIO3.ELIO31.inst]: clsrcexecut: env _USR_ORA_PFILE=/u01/oracle/app/product/102_64/crs/racg/tmp/ora.ELIO3.ELIO31.inst.ora
2012-09-26 09:31:06.404: [ RACG][70660672] [1100][70660672][ora.ELIO3.ELIO31.inst]: clsrcexecut: cmd = /u01/oracle/app/product/102_64/app/bin/racgeut -e _USR_ORA_DEBUG=0 -e ORACLE_SID=ELIO31 540 /u01/oracle/app/product/102_64/app/bin/racgmdb -q
2012-09-26 09:31:06.404: [ RACG][70660672] [1100][70660672][ora.ELIO3.ELIO31.inst]: clsrcexecut: rc = 3, time = 0.230s
2012-09-26 09:31:07.196: [ OCRMSG][70660672]prom_rpc: CLSC send failure..ret code 11
2012-09-26 09:31:07.196: [ OCRMSG][70660672]prom_rpc: possible OCR retry scenario
2012-09-26 09:31:07.254: [ OCRAPI][70660672]procr_open: Node Failure. Attempting retry #0
2012-09-26 09:31:07.528: [ OCRCLI][70660672]oac_reconnect_server: Could not connect to server. clsc ret 9
2012-09-26 09:31:07.584: [ OCRAPI][70660672]procr_open: Node Failure. Attempting retry #1
2012-09-26 09:31:07.847: [ OCRCLI][70660672]oac_reconnect_server: Could not connect to server. clsc ret 9
2012-09-26 09:31:07.904: [ OCRAPI][70660672]procr_open: Node Failure. Attempting retry #2
2012-09-26 09:31:08.178: [ OCRCLI][70660672]oac_reconnect_server: Could not connect to server. clsc ret 9
2012-09-26 09:31:08.235: [ OCRAPI][70660672]procr_open: Node Failure. Attempting retry #3
2012-09-26 09:31:08.488: [ OCRCLI][70660672]oac_reconnect_server: Could not connect to server. clsc ret 9
2012-09-26 09:31:08.544: [ OCRAPI][70660672]procr_open: Node Failure. Attempting retry #4
2012-09-26 09:31:08.808: [ OCRCLI][70660672]oac_reconnect_server: Could not connect to server. clsc ret 9
2012-09-26 09:31:08.865: [ OCRAPI][70660672]procr_open: Node Failure. Attempting retry #5
2012-09-26 09:31:08.971: [ RACG][70660672] [1100][70660672][ora.ELIO3.ELIO31.inst]: clsrcsetenvvar: set env var 'ORACLE_CONFIG_HOME' to be '/u01/oracle/app/product/102_64/crs/'
2012-09-26 09:31:09.767: [ RACG][70660672] [1100][70660672][ora.ELIO3.ELIO31.inst]: clsrcqryapi: crs_qstat error
2012-09-26 09:36:14.709: [ OCRMSG][148804160]prom_rpc: CLSC send failure..ret code 11
2012-09-26 09:36:14.709: [ OCRMSG][148804160]prom_rpc: possible OCR retry scenario
2012-09-26 09:36:14.768: [ OCRAPI][148804160]procr_open: Node Failure. Attempting retry #0
agripa:/u01/oracle/app/product/102_64/crs/bin # ./crs_getperm ora.ELIO3.ELIO32.inst
Nombre: ora.ELIO3.ELIO32.inst
owner:oracle:rwx,pgrp:oinstall:rwx,other::r--,
agripa:/u01/oracle/app/product/102_64/crs/bin # ./crs_getperm ora.ELIO3.ELIO31.inst
Nombre: ora.ELIO3.ELIO31.inst
owner:oracle:rwx,pgrp:oinstall:rwx,other::r--,I try to stop instance with srvctl but instance don't stop.
oracle@agripa:/u01/oracle/app/product/102_64/app/bin> ./srvctl stop instance -d ELIO3 -i ELIO31
oracle@agripa:/u01/oracle/app/product/102_64/app/bin> sqlplus / as sysdba
SQL*Plus: Release 10.2.0.5.0 - Production on Mié Sep 26 09:42:24 2012
Copyright (c) 1982, 2010, Oracle. All Rights Reserved.
Conectado a:
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - Production
With the Partitioning, Real Application Clusters, OLAP, Data Mining
and Real Application Testing options
SQL>How can I fix it?
How can I do to srvctl works fine and crs show that database is start??
Thanks you very much!!!My database in another node (julia) was started with sqlplus
sqlplus / as sysdba
startup open;The crsd.log appears the follow
2012-09-24 11:36:56.798: [ CRSMAIN][174064]0CRS Daemon Started.
2012-09-24 11:36:56.798: [ CRSMAIN][363782720]0Starting runCommandServer for (UI = 1, E2E = 0). 0
2012-09-24 11:36:56.798: [ CRSMAIN][365879872]0Starting runCommandServer for (UI = 1, E2E = 0). 1
2012-09-26 09:30:40.776: [ CRSRES][380703296]0startRunnable: setting CLI values
2012-09-26 09:30:40.814: [ CRSRES][380703296]0Attempting to start `ora.ELIO3.ELIO31.inst` on member `agripa`
2012-09-26 09:30:54.931: [ default][174064][ENTER]0
Oracle Database 10g CRS Release 10.2.0.5.0 Production Copyright 1996, 2004, Oracle. All rights reserved
2012-09-26 09:30:54.931: [ default][174064]0CRS Daemon Starting
2012-09-26 09:30:54.932: [ CRSMAIN][174064]0Checking the OCR device
2012-09-26 09:30:54.935: [ CRSMAIN][174064]0Connecting to the CSS Daemon
2012-09-26 09:30:55.238: [ CLSVER][174064]0Active Version from OCR:10.2.0.5.0
2012-09-26 09:30:55.238: [ CLSVER][174064]0Active Version and Software Version are same
2012-09-26 09:30:55.238: [ CRSMAIN][174064]0Initializing OCR
2012-09-26 09:30:55.254: [ OCRRAW][174064]proprioo: for disk 0 (/u01/oracle/1020_64/voting1/ocr), id match (1), my id set (1616921495,1352295226) total id sets (1), 1st set (1616921495,1352295226), 2nd set (0,0) my votes (1), total votes (2)
2012-09-26 09:30:55.254: [ OCRRAW][174064]proprioo: for disk 1 (/u01/oracle/1020_64/voting2/ocr), id match (1), my id set (1616921495,1352295226) total id sets (1), 1st set (1616921495,1352295226), 2nd set (0,0) my votes (1), total votes (2)
2012-09-26 09:30:55.286: [ CRSD][174064]0ENV Logging level for Module: allcomp 0
2012-09-26 09:30:55.289: [ CRSD][174064]0ENV Logging level for Module: default 0
2012-09-26 09:30:55.292: [ CRSD][174064]0ENV Logging level for Module: COMMCRS 0
2012-09-26 09:30:55.294: [ CRSD][174064]0ENV Logging level for Module: COMMNS 0
2012-09-26 09:30:55.297: [ CRSD][174064]0ENV Logging level for Module: CRSUI 0
2012-09-26 09:30:55.300: [ CRSD][174064]0ENV Logging level for Module: CRSCOMM 0
2012-09-26 09:30:55.303: [ CRSD][174064]0ENV Logging level for Module: CRSRTI 0
2012-09-26 09:30:55.306: [ CRSD][174064]0ENV Logging level for Module: CRSMAIN 0
2012-09-26 09:30:55.309: [ CRSD][174064]0ENV Logging level for Module: CRSPLACE 0
2012-09-26 09:30:55.312: [ CRSD][174064]0ENV Logging level for Module: CRSAPP 0
2012-09-26 09:30:55.315: [ CRSD][174064]0ENV Logging level for Module: CRSRES 0
2012-09-26 09:30:55.317: [ CRSD][174064]0ENV Logging level for Module: CRSOCR 0
2012-09-26 09:30:55.320: [ CRSD][174064]0ENV Logging level for Module: CRSTIMER 0
2012-09-26 09:30:55.323: [ CRSD][174064]0ENV Logging level for Module: CRSEVT 0
2012-09-26 09:30:55.326: [ CRSD][174064]0ENV Logging level for Module: CRSD 0
2012-09-26 09:30:55.329: [ CRSD][174064]0ENV Logging level for Module: CLUCLS 0
2012-09-26 09:30:55.332: [ CRSD][174064]0ENV Logging level for Module: CLSVER 0
2012-09-26 09:30:55.335: [ CRSD][174064]0ENV Logging level for Module: OCRRAW 0
2012-09-26 09:30:55.338: [ CRSD][174064]0ENV Logging level for Module: OCROSD 0
2012-09-26 09:30:55.341: [ CRSD][174064]0ENV Logging level for Module: CSSCLNT 0
2012-09-26 09:30:55.343: [ CRSD][174064]0ENV Logging level for Module: OCRAPI 0
2012-09-26 09:30:55.346: [ CRSD][174064]0ENV Logging level for Module: OCRUTL 0
2012-09-26 09:30:55.349: [ CRSD][174064]0ENV Logging level for Module: OCRMSG 0
2012-09-26 09:30:55.352: [ CRSD][174064]0ENV Logging level for Module: OCRCLI 0
2012-09-26 09:30:55.355: [ CRSD][174064]0ENV Logging level for Module: OCRCAC 0
2012-09-26 09:30:55.358: [ CRSD][174064]0ENV Logging level for Module: OCRSRV 0
2012-09-26 09:30:55.360: [ CRSD][174064]0ENV Logging level for Module: OCRMAS 0
2012-09-26 09:30:55.360: [ CRSMAIN][174064]0Filename is /u01/oracle/app/product/102_64/crs/crs/init/agripa.pid
[ clsdmt][299713088]Listening to (ADDRESS=(PROTOCOL=ipc)(KEY=agripaDBG_CRSD))
2012-09-26 09:30:55.383: [ CRSMAIN][174064]0Using Authorizer location: /u01/oracle/app/product/102_64/crs/crs/auth/
2012-09-26 09:30:55.401: [ CRSMAIN][174064]0Initializing RTI
2012-09-26 09:30:55.436: [CRSTIMER][316899904]0Timer Thread Starting.
2012-09-26 09:30:55.438: [ CRSRES][174064]0Parameter SECURITY = 1, running in USER Mode
2012-09-26 09:30:55.438: [ CRSMAIN][174064]0Initializing EVMMgr
2012-09-26 09:30:55.526: [ CRSMAIN][174064]0CRSD locked during state recovery, please wait.
2012-09-26 09:30:56.003: [ CRSRES][174064]0ora.agripa.vip check shows ONLINE
2012-09-26 09:30:56.121: [ CRSMAIN][174064]0CRSD recovered, unlocked.
2012-09-26 09:30:56.122: [ CRSMAIN][174064]0QS socket on: (ADDRESS=(PROTOCOL=ipc)(KEY=ora_crsqs))
2012-09-26 09:30:56.122: [ CRSMAIN][174064]0QS socket on: (ADDRESS=(PROTOCOL=ipc)(KEY=ora_crsqs))
2012-09-26 09:30:56.130: [ CRSMAIN][174064]0CRSD UI socket on: (ADDRESS=(PROTOCOL=ipc)(KEY=CRSD_UI_SOCKET))
2012-09-26 09:30:56.133: [ CRSMAIN][174064]0E2E socket on: (ADDRESS=(PROTOCOL=tcp)(HOST=agripa-priv)(PORT=49896))
2012-09-26 09:30:56.133: [ CRSMAIN][174064]0Starting Threads
2012-09-26 09:30:56.134: [ CRSMAIN][174064]0CRS Daemon Started.
2012-09-26 09:30:56.134: [ CRSMAIN][362721856]0Starting runCommandServer for (UI = 1, E2E = 0). 0
2012-09-26 09:30:56.134: [ CRSMAIN][364819008]0Starting runCommandServer for (UI = 1, E2E = 0). 1
2012-09-26 09:31:08.582: [ default][174064][ENTER]0
Oracle Database 10g CRS Release 10.2.0.5.0 Production Copyright 1996, 2004, Oracle. All rights reserved
2012-09-26 09:31:08.582: [ default][174064]0CRS Daemon Starting
2012-09-26 09:31:08.583: [ CRSMAIN][174064]0Checking the OCR device
2012-09-26 09:31:08.585: [ CRSMAIN][174064]0Connecting to the CSS Daemon
2012-09-26 09:31:08.885: [ CLSVER][174064]0Active Version from OCR:10.2.0.5.0
2012-09-26 09:31:08.885: [ CLSVER][174064]0Active Version and Software Version are same
2012-09-26 09:31:08.885: [ CRSMAIN][174064]0Initializing OCR
2012-09-26 09:31:08.891: [ OCRRAW][174064]proprioo: for disk 0 (/u01/oracle/1020_64/voting1/ocr), id match (1), my id set (1616921495,1352295226) total id sets (1), 1st set (1616921495,1352295226), 2nd set (0,0) my votes (1), total votes (2)
2012-09-26 09:31:08.891: [ OCRRAW][174064]proprioo: for disk 1 (/u01/oracle/1020_64/voting2/ocr), id match (1), my id set (1616921495,1352295226) total id sets (1), 1st set (1616921495,1352295226), 2nd set (0,0) my votes (1), total votes (2)
2012-09-26 09:31:08.934: [ CRSD][174064]0ENV Logging level for Module: allcomp 0
2012-09-26 09:31:08.937: [ CRSD][174064]0ENV Logging level for Module: default 0
2012-09-26 09:31:08.940: [ CRSD][174064]0ENV Logging level for Module: COMMCRS 0
2012-09-26 09:31:08.942: [ CRSD][174064]0ENV Logging level for Module: COMMNS 0
2012-09-26 09:31:08.945: [ CRSD][174064]0ENV Logging level for Module: CRSUI 0
2012-09-26 09:31:08.948: [ CRSD][174064]0ENV Logging level for Module: CRSCOMM 0
2012-09-26 09:31:08.964: [ CRSD][174064]0ENV Logging level for Module: CRSRTI 0
2012-09-26 09:31:08.970: [ CRSD][174064]0ENV Logging level for Module: CRSMAIN 0
2012-09-26 09:31:08.973: [ CRSD][174064]0ENV Logging level for Module: CRSPLACE 0
2012-09-26 09:31:08.976: [ CRSD][174064]0ENV Logging level for Module: CRSAPP 0
2012-09-26 09:31:08.979: [ CRSD][174064]0ENV Logging level for Module: CRSRES 0
2012-09-26 09:31:08.982: [ CRSD][174064]0ENV Logging level for Module: CRSOCR 0
2012-09-26 09:31:08.985: [ CRSD][174064]0ENV Logging level for Module: CRSTIMER 0
2012-09-26 09:31:08.988: [ CRSD][174064]0ENV Logging level for Module: CRSEVT 0
2012-09-26 09:31:08.991: [ CRSD][174064]0ENV Logging level for Module: CRSD 0
2012-09-26 09:31:08.994: [ CRSD][174064]0ENV Logging level for Module: CLUCLS 0
2012-09-26 09:31:08.997: [ CRSD][174064]0ENV Logging level for Module: CLSVER 0
2012-09-26 09:31:08.999: [ CRSD][174064]0ENV Logging level for Module: OCRRAW 0
2012-09-26 09:31:09.002: [ CRSD][174064]0ENV Logging level for Module: OCROSD 0
2012-09-26 09:31:09.005: [ CRSD][174064]0ENV Logging level for Module: CSSCLNT 0
2012-09-26 09:31:09.008: [ CRSD][174064]0ENV Logging level for Module: OCRAPI 0
2012-09-26 09:31:09.011: [ CRSD][174064]0ENV Logging level for Module: OCRUTL 0
2012-09-26 09:31:09.014: [ CRSD][174064]0ENV Logging level for Module: OCRMSG 0
2012-09-26 09:31:09.017: [ CRSD][174064]0ENV Logging level for Module: OCRCLI 0
2012-09-26 09:31:09.020: [ CRSD][174064]0ENV Logging level for Module: OCRCAC 0
2012-09-26 09:31:09.023: [ CRSD][174064]0ENV Logging level for Module: OCRSRV 0
2012-09-26 09:31:09.026: [ CRSD][174064]0ENV Logging level for Module: OCRMAS 0
2012-09-26 09:31:09.026: [ CRSMAIN][174064]0Filename is /u01/oracle/app/product/102_64/crs/crs/init/agripa.pid
[ clsdmt][303034944]Listening to (ADDRESS=(PROTOCOL=ipc)(KEY=agripaDBG_CRSD))
2012-09-26 09:31:09.057: [ CRSMAIN][174064]0Using Authorizer location: /u01/oracle/app/product/102_64/crs/crs/auth/
2012-09-26 09:31:09.072: [ CRSMAIN][174064]0Initializing RTI
2012-09-26 09:31:09.094: [CRSTIMER][319812160]0Timer Thread Starting.
2012-09-26 09:31:09.096: [ CRSRES][174064]0Parameter SECURITY = 1, running in USER Mode
2012-09-26 09:31:09.096: [ CRSMAIN][174064]0Initializing EVMMgr
2012-09-26 09:31:09.198: [ CRSMAIN][174064]0CRSD locked during state recovery, please wait.
2012-09-26 09:31:09.728: [ CRSRES][174064]0ora.agripa.vip check shows ONLINE
2012-09-26 09:31:09.846: [ CRSMAIN][174064]0CRSD recovered, unlocked.
2012-09-26 09:31:09.847: [ CRSMAIN][174064]0QS socket on: (ADDRESS=(PROTOCOL=ipc)(KEY=ora_crsqs))
2012-09-26 09:31:09.847: [ CRSMAIN][174064]0QS socket on: (ADDRESS=(PROTOCOL=ipc)(KEY=ora_crsqs))
2012-09-26 09:31:09.855: [ CRSMAIN][174064]0CRSD UI socket on: (ADDRESS=(PROTOCOL=ipc)(KEY=CRSD_UI_SOCKET))
2012-09-26 09:31:09.858: [ CRSMAIN][174064]0E2E socket on: (ADDRESS=(PROTOCOL=tcp)(HOST=agripa-priv)(PORT=49896))
2012-09-26 09:31:09.859: [ CRSMAIN][174064]0Starting Threads
2012-09-26 09:31:09.859: [ CRSMAIN][174064]0CRS Daemon Started.
2012-09-26 09:31:09.859: [ CRSMAIN][364917312]0Starting runCommandServer for (UI = 1, E2E = 0). 0
2012-09-26 09:31:09.859: [ CRSMAIN][367014464]0Starting runCommandServer for (UI = 1, E2E = 0). 1
2012-09-26 09:35:44.874: [ default][174064][ENTER]0
Oracle Database 10g CRS Release 10.2.0.5.0 Production Copyright 1996, 2004, Oracle. All rights reserved
2012-09-26 09:35:44.874: [ default][174064]0CRS Daemon Starting
2012-09-26 09:35:44.875: [ CRSMAIN][174064]0Checking the OCR device
2012-09-26 09:35:44.877: [ CRSMAIN][174064]0Connecting to the CSS Daemon
2012-09-26 09:35:45.186: [ CLSVER][174064]0Active Version from OCR:10.2.0.5.0
2012-09-26 09:35:45.186: [ CLSVER][174064]0Active Version and Software Version are same
2012-09-26 09:35:45.186: [ CRSMAIN][174064]0Initializing OCR
2012-09-26 09:35:45.201: [ OCRRAW][174064]proprioo: for disk 0 (/u01/oracle/1020_64/voting1/ocr), id match (1), my id set (1616921495,1352295226) total id sets (1), 1st set (1616921495,1352295226), 2nd set (0,0) my votes (1), total votes (2)
2012-09-26 09:35:45.202: [ OCRRAW][174064]proprioo: for disk 1 (/u01/oracle/1020_64/voting2/ocr), id match (1), my id set (1616921495,1352295226) total id sets (1), 1st set (1616921495,1352295226), 2nd set (0,0) my votes (1), total votes (2)
2012-09-26 09:35:45.236: [ CRSD][174064]0ENV Logging level for Module: allcomp 0
2012-09-26 09:35:45.242: [ CRSD][174064]0ENV Logging level for Module: default 0
2012-09-26 09:35:45.245: [ CRSD][174064]0ENV Logging level for Module: COMMCRS 0
2012-09-26 09:35:45.247: [ CRSD][174064]0ENV Logging level for Module: COMMNS 0
2012-09-26 09:35:45.250: [ CRSD][174064]0ENV Logging level for Module: CRSUI 0
2012-09-26 09:35:45.253: [ CRSD][174064]0ENV Logging level for Module: CRSCOMM 0
2012-09-26 09:35:45.256: [ CRSD][174064]0ENV Logging level for Module: CRSRTI 0
2012-09-26 09:35:45.259: [ CRSD][174064]0ENV Logging level for Module: CRSMAIN 0
2012-09-26 09:35:45.262: [ CRSD][174064]0ENV Logging level for Module: CRSPLACE 0
2012-09-26 09:35:45.265: [ CRSD][174064]0ENV Logging level for Module: CRSAPP 0
2012-09-26 09:35:45.269: [ CRSD][174064]0ENV Logging level for Module: CRSRES 0
2012-09-26 09:35:45.273: [ CRSD][174064]0ENV Logging level for Module: CRSOCR 0
2012-09-26 09:35:45.276: [ CRSD][174064]0ENV Logging level for Module: CRSTIMER 0
2012-09-26 09:35:45.279: [ CRSD][174064]0ENV Logging level for Module: CRSEVT 0
2012-09-26 09:35:45.282: [ CRSD][174064]0ENV Logging level for Module: CRSD 0
2012-09-26 09:35:45.285: [ CRSD][174064]0ENV Logging level for Module: CLUCLS 0
2012-09-26 09:35:45.288: [ CRSD][174064]0ENV Logging level for Module: CLSVER 0
2012-09-26 09:35:45.291: [ CRSD][174064]0ENV Logging level for Module: OCRRAW 0
2012-09-26 09:35:45.293: [ CRSD][174064]0ENV Logging level for Module: OCROSD 0
2012-09-26 09:35:45.297: [ CRSD][174064]0ENV Logging level for Module: CSSCLNT 0
2012-09-26 09:35:45.300: [ CRSD][174064]0ENV Logging level for Module: OCRAPI 0
2012-09-26 09:35:45.302: [ CRSD][174064]0ENV Logging level for Module: OCRUTL 0
2012-09-26 09:35:45.305: [ CRSD][174064]0ENV Logging level for Module: OCRMSG 0
2012-09-26 09:35:45.308: [ CRSD][174064]0ENV Logging level for Module: OCRCLI 0
2012-09-26 09:35:45.311: [ CRSD][174064]0ENV Logging level for Module: OCRCAC 0
2012-09-26 09:35:45.314: [ CRSD][174064]0ENV Logging level for Module: OCRSRV 0
2012-09-26 09:35:45.318: [ CRSD][174064]0ENV Logging level for Module: OCRMAS 0
2012-09-26 09:35:45.318: [ CRSMAIN][174064]0Filename is /u01/oracle/app/product/102_64/crs/crs/init/agripa.pid
[ clsdmt][303034944]Listening to (ADDRESS=(PROTOCOL=ipc)(KEY=agripaDBG_CRSD))
2012-09-26 09:35:45.341: [ CRSMAIN][174064]0Using Authorizer location: /u01/oracle/app/product/102_64/crs/crs/auth/
2012-09-26 09:35:45.361: [ CRSMAIN][174064]0Initializing RTI
2012-09-26 09:35:45.391: [CRSTIMER][319812160]0Timer Thread Starting.
2012-09-26 09:35:45.393: [ CRSRES][174064]0Parameter SECURITY = 1, running in USER Mode
2012-09-26 09:35:45.393: [ CRSMAIN][174064]0Initializing EVMMgr
2012-09-26 09:35:45.481: [ CRSMAIN][174064]0CRSD locked during state recovery, please wait.
2012-09-26 09:35:45.956: [ CRSRES][174064]0ora.agripa.vip check shows ONLINE
2012-09-26 09:35:46.097: [ CRSMAIN][174064]0CRSD recovered, unlocked.
2012-09-26 09:35:46.098: [ CRSMAIN][174064]0QS socket on: (ADDRESS=(PROTOCOL=ipc)(KEY=ora_crsqs))
2012-09-26 09:35:46.098: [ CRSMAIN][174064]0QS socket on: (ADDRESS=(PROTOCOL=ipc)(KEY=ora_crsqs))
2012-09-26 09:35:46.105: [ CRSMAIN][174064]0CRSD UI socket on: (ADDRESS=(PROTOCOL=ipc)(KEY=CRSD_UI_SOCKET))
2012-09-26 09:35:46.109: [ CRSMAIN][174064]0E2E socket on: (ADDRESS=(PROTOCOL=tcp)(HOST=agripa-priv)(PORT=49896))
2012-09-26 09:35:46.109: [ CRSMAIN][174064]0Starting Threads
2012-09-26 09:35:46.109: [ CRSMAIN][174064]0CRS Daemon Started.
2012-09-26 09:35:46.109: [ CRSMAIN][364896832]0Starting runCommandServer for (UI = 1, E2E = 0). 0
2012-09-26 09:35:46.109: [ CRSMAIN][366993984]0Starting runCommandServer for (UI = 1, E2E = 0). 1
2012-09-26 09:36:09.889: [ CRSRES][381674048]0CRS-1002: Resource 'ora.ELIO3.db' is already running on member 'julia'
2012-09-26 09:47:41.288: [ CRSRES][379576896]0ora.ELIO3.ELIO31.inst target set to OFFLINE before stop action
2012-09-26 09:47:41.288: [ CRSRES][379576896]0StopResource: setting CLI values
2012-09-26 09:47:41.355: [ CRSRES][379576896]0Target set to OFFLINE for `ora.ELIO3.ELIO31.inst`
2012-09-26 09:47:42.266: [ CRSRES][379576896]0`ora.ELIO3.ELIO31.inst` is already OFFLINE.
2012-09-26 09:47:43.278: [ CRSRES][379576896]0`ora.ELIO3.ELIO31.inst` is already OFFLINE.
2012-09-26 09:47:44.286: [ CRSRES][379576896]0`ora.ELIO3.ELIO31.inst` is already OFFLINE.
2012-09-26 09:47:45.298: [ CRSRES][379576896]0`ora.ELIO3.ELIO31.inst` is already OFFLINE.PD: Excuseme for the long text about crsd.log, but I don't know how can I attach a file.
Thanks you very much!!. -
Manual creation of Oracle RAC Database
Hello Guru's,
I successfully installed Oracle Grid(clusterware) and Oracle RDBMS 11.2.0.1.0 for RAC containing 2 nodes on Linux 5.3 64 bit.
All the clusterware services and ASM instance are running fine on both nodes.
Now im planning to create database manually on node1 (RAC-NODE1).
1) configure the environmental variables as follows
export TMP=/tmp
export ORACLE_HOSTNAME=`hostname`
export ORACLE_SID=finance1
export ORACLE_UNQNAME=finance
export ORACLE_BASE=/rdbms1/app/oracle/
export ORACLE_HOME=/rdbms1/app/oracle/product/11.2.0/db_home/
export ORACLE_TERM=xterm
export PATH=$ORACLE_HOME/bin:$PATH:.
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
2) created the pfile and modified the parameters as follows
db_name='finance'
processes = 200
audit_trail ='db'
db_block_size=8192
db_domain='vod.com'
diagnostic_dest='/oradump/oradata/finance/dump'
sessions=200
remote_login_passwordfile='EXCLUSIVE'
undo_tablespace='UNDOTBS1'
control_files = +CTRL
compatible ='11.2.0'
job_queue_processes = 10
undo_management = 'AUTO'
finance1.instance_name = finance1
db_create_file_dest = +DBFILE
db_create_online_log_dest_1 = +REDO1
db_create_online_log_dest_2 = +REDO2
3) Created the password file as follows
$ orapwd file=orapwfinance1 passwors=syspassword entries=10
4) edit the /etc/oratab file as follows
finance1:/rdbms1/app/oracle/product/11.2.0/db_home:N
5) created the rac db script as follows.
CREATE DATABASE FINANCE
DATAFILE '+DBFILE' SIZE 500M
AUTOEXTEND ON NEXT 50M MAXSIZE UNLIMITED
EXTENT MANAGEMENT LOCAL
SYSAUX DATAFILE '+DBFILE' SIZE 500M
AUTOEXTEND ON NEXT 50M MAXSIZE UNLIMITED
DEFAULT TEMPORARY TABLESPACE TEMP
TEMPFILE '+DBFILE' SIZE 100M AUTOEXTEND ON NEXT 10M MAXSIZE 500M
UNDO TABLESPACE UNDOTBS1
DATAFILE '+DBFILE' SIZE 100M AUTOEXTEND ON NEXT 10M MAXSIZE 500M
DEFAULT TABLESPACE USERDATA
DATAFILE '+DBFILE' SIZE 100M AUTOEXTEND ON NEXT 10M MAXSIZE 500M
LOGFILE
GROUP 1 ('+REDO1','+REDO2') SIZE 20M,
GROUP 2 ('+REDO1','+REDO2') SIZE 20M,
GROUP 3 ('+REDO1','+REDO2') SIZE 20M
MAXINSTANCES 8
MAXLOGHISTORY 300
MAXLOGFILES 64
MAXLOGMEMBERS 5
MAXDATAFILES 150
USER SYS IDENTIFIED BY "sys_123"
USER SYSTEM IDENTIFIED BY "system_123";
6) started the instance as follows.
$ sqlplus / as sysdba
SQL> startup nomount
ORACLE instance started.
Total System Global Area 217157632 bytes
Fixed Size 2211928 bytes
Variable Size 159387560 bytes
Database Buffers 50331648 bytes
Redo Buffers 5226496 bytes
SQL> @rac_db.sql
CREATE DATABASE FINANCE
ERROR at line 1:
ORA-01501: CREATE DATABASE failed
ORA-00200: control file could not be created
ORA-00202: control file: '+CTRL'
ORA-15045: ASM file name '+CTRL' is not in reference form
ORA-17502: ksfdcre:5 Failed to create file +CTRL
ORA-15081: failed to submit an I/O operation to a disk
It shows that oracle unable to create control file on +CTRL diskgroup, i found that there is a problem with permissions on disks in diskgroups.
brw-rw-r-- 1 grid asmadmin 8, 49 Apr 8 04:25 CTRLDISK1
brw-rw-r-- 1 grid asmadmin 8, 50 Apr 8 04:25 CTRLDISK2
brw-rw-r-- 1 grid asmadmin 8, 51 Apr 8 04:25 CTRLDISK3
brw-rw-r-- 1 grid asmadmin 8, 52 Apr 8 04:25 CTRLDISK4
since all the disks in diskgroup has 664 permision and owned by grid user primary group is asmadmin.
# id grid
uid=1001(grid) gid=501(oinstall) groups=501(oinstall),504(asmadmin),505(asmdba),506(asmoper)
# id oracle
uid=1002(oracle) gid=501(oinstall) groups=501(oinstall),502(dba),503(oper),505(asmdba)
please help me to overcome the above problem.
regards,Thanks for comments,
I successfully created the database, once i restared the database it is unbale to mount because of unbale to open +CTRL group file.
SQL> startup
ORACLE instance started.
Total System Global Area 217157632 bytes
Fixed Size 2211928 bytes
Variable Size 159387560 bytes
Database Buffers 50331648 bytes
Redo Buffers 5226496 bytes
ORA-00205: error in identifying control file, check alert log for more info
alert log:
ORACLE_BASE from environment = /rdbms1/app/oracle/
Thu Apr 11 09:36:34 2013
ALTER DATABASE MOUNT
ORA-00210: cannot open the specified control file
ORA-00202: control file: '+CTRL'
ORA-17503: ksfdopn:2 Failed to open file +CTRL
ORA-15045: ASM file name '+CTRL' is not in reference form
ORA-205 signalled during: ALTER DATABASE MOUNT...
Thu Apr 11 09:36:42 2013
NOTE: initiating MARK startup
raw devices:
# ls -l /dev/sd*
brw-rw-r-- 1 grid asmadmin 8, 16 Apr 11 09:04 /dev/sdb
brw-rw-r-- 1 grid asmadmin 8, 17 Apr 11 09:51 /dev/sdb1
brw-rw-r-- 1 grid asmadmin 8, 18 Apr 11 09:51 /dev/sdb2
brw-rw-r-- 1 grid asmadmin 8, 19 Apr 11 09:51 /dev/sdb3
brw-rw-r-- 1 grid asmadmin 8, 20 Apr 11 09:45 /dev/sdb4
brw-rw-r-- 1 grid asmadmin 8, 32 Apr 11 09:04 /dev/sdc
brw-rw-r-- 1 grid asmadmin 8, 33 Apr 11 09:30 /dev/sdc1
brw-rw-r-- 1 grid asmadmin 8, 34 Apr 11 09:30 /dev/sdc2
brw-rw-r-- 1 grid asmadmin 8, 35 Apr 11 09:30 /dev/sdc3
brw-rw-r-- 1 grid asmadmin 8, 36 Apr 11 09:05 /dev/sdc4
brw-rw-r-- 1 grid asmadmin 8, 48 Apr 11 09:04 /dev/sdd
brw-rw-r-- 1 grid asmadmin 8, 49 Apr 11 09:51 /dev/sdd1
brw-rw-r-- 1 grid asmadmin 8, 50 Apr 11 09:51 /dev/sdd2
brw-rw-r-- 1 grid asmadmin 8, 51 Apr 11 09:51 /dev/sdd3
brw-rw-r-- 1 grid asmadmin 8, 52 Apr 11 09:30 /dev/sdd4
brw-rw-r-- 1 grid asmadmin 8, 64 Apr 11 09:04 /dev/sde
brw-rw-r-- 1 grid asmadmin 8, 65 Apr 11 09:51 /dev/sde1
brw-rw-r-- 1 grid asmadmin 8, 66 Apr 11 09:51 /dev/sde2
brw-rw-r-- 1 grid asmadmin 8, 67 Apr 11 09:51 /dev/sde3
brw-rw-r-- 1 grid asmadmin 8, 68 Apr 11 09:30 /dev/sde4
brw-rw-r-- 1 grid asmadmin 8, 80 Apr 11 09:04 /dev/sdf
brw-rw-r-- 1 grid asmadmin 8, 81 Apr 11 09:51 /dev/sdf1
brw-rw-r-- 1 grid asmadmin 8, 82 Apr 11 09:51 /dev/sdf2
brw-rw-r-- 1 grid asmadmin 8, 83 Apr 11 09:51 /dev/sdf3
brw-rw-r-- 1 grid asmadmin 8, 84 Apr 11 09:30 /dev/sdf4
brw-rw-r-- 1 grid asmadmin 8, 96 Apr 11 09:04 /dev/sdg
brw-rw-r-- 1 grid asmadmin 8, 97 Apr 11 09:51 /dev/sdg1
brw-rw-r-- 1 grid asmadmin 8, 98 Apr 11 09:51 /dev/sdg2
brw-rw-r-- 1 grid asmadmin 8, 99 Apr 11 09:51 /dev/sdg3
brw-rw-r-- 1 grid asmadmin 8, 100 Apr 11 09:30 /dev/sdg4
brw-rw-r-- 1 grid asmadmin 8, 112 Apr 11 09:04 /dev/sdh
brw-rw-r-- 1 grid asmadmin 8, 113 Apr 11 09:51 /dev/sdh1
brw-rw-r-- 1 grid asmadmin 8, 114 Apr 11 09:51 /dev/sdh2
brw-rw-r-- 1 grid asmadmin 8, 115 Apr 11 09:51 /dev/sdh3
brw-rw-r-- 1 grid asmadmin 8, 116 Apr 11 09:30 /dev/sdh4
asm disks:
[09:52 AM [email protected] disks]# ll
brw-rw-r-- 1 grid asmadmin 8, 65 Apr 11 09:05 ARCLOGDISK1
brw-rw-r-- 1 grid asmadmin 8, 66 Apr 11 09:05 ARCLOGDISK2
brw-rw-r-- 1 grid asmadmin 8, 67 Apr 11 09:05 ARCLOGDISK3
brw-rw-r-- 1 grid asmadmin 8, 68 Apr 11 09:05 ARCLOGDISK4
brw-rw-r-- 1 grid asmadmin 8, 49 Apr 11 09:05 CTRLDISK1
brw-rw-r-- 1 grid asmadmin 8, 50 Apr 11 09:05 CTRLDISK2
brw-rw-r-- 1 grid asmadmin 8, 51 Apr 11 09:05 CTRLDISK3
brw-rw-r-- 1 grid asmadmin 8, 52 Apr 11 09:05 CTRLDISK4
brw-rw-r-- 1 grid asmadmin 8, 33 Apr 11 09:05 DBFILEDISK1
brw-rw-r-- 1 grid asmadmin 8, 34 Apr 11 09:05 DBFILEDISK2
brw-rw-r-- 1 grid asmadmin 8, 35 Apr 11 09:05 DBFILEDISK3
brw-rw-r-- 1 grid asmadmin 8, 36 Apr 11 09:05 DBFILEDISK4
brw-rw-r-- 1 grid asmadmin 8, 113 Apr 11 09:05 FRADISK1
brw-rw-r-- 1 grid asmadmin 8, 114 Apr 11 09:05 FRADISK2
brw-rw-r-- 1 grid asmadmin 8, 115 Apr 11 09:05 FRADISK3
brw-rw-r-- 1 grid asmadmin 8, 116 Apr 11 09:05 FRADISK4
brw-rw-r-- 1 grid asmadmin 8, 81 Apr 11 09:05 REDODISK1
brw-rw-r-- 1 grid asmadmin 8, 82 Apr 11 09:05 REDODISK2
brw-rw-r-- 1 grid asmadmin 8, 83 Apr 11 09:05 REDODISK3
brw-rw-r-- 1 grid asmadmin 8, 84 Apr 11 09:05 REDODISK4
brw-rw-r-- 1 grid asmadmin 8, 97 Apr 11 09:05 REDODISK5
brw-rw-r-- 1 grid asmadmin 8, 98 Apr 11 09:05 REDODISK6
brw-rw-r-- 1 grid asmadmin 8, 99 Apr 11 09:05 REDODISK7
brw-rw-r-- 1 grid asmadmin 8, 100 Apr 11 09:05 REDODISK8
brw-rw-r-- 1 grid asmadmin 8, 17 Apr 11 09:05 VOTEDISK1
brw-rw-r-- 1 grid asmadmin 8, 18 Apr 11 09:05 VOTEDISK2
brw-rw-r-- 1 grid asmadmin 8, 19 Apr 11 09:05 VOTEDISK3
brw-rw-r-- 1 grid asmadmin 8, 20 Apr 11 09:05 VOTEDISK4
[09:53 AM [email protected] ~]# ls -l /rdbms1/app/oracle/product/11.2.0/db_home/bin/oracle
-rwsr-s--x 1 oracle asmadmin 210824720 Apr 8 13:39 /rdbms1/app/oracle/product/11.2.0/db_home/bin/oracle
I know this problem is coming for improper assiging of permissions, but i could not pin point. kindly clarify the same.
one more thing i need to know.., whenever i rebooted nodes, both of raw devices and asm disks are come to default permission brw------, i have to change every time to brw-rw-r--. is there any way to make these disks and devices permissions make permenet.
Thanks in advance. -
Getting error when try to backup oracle rac to another location
Hi there,
I am attempting to backup database to another location from a Oracle RAC database version 11gr2. Here is my script:
#!/bin/ksh
export ORACLE_SID=vvsms1
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1; export ORACLE_HOME
BASE_PATH=/usr/sbin:$PATH; export BASE_PATH
PATH=$ORACLE_HOME/bin:$BASE_PATH; export PATH
/u01/app/oracle/product/11.2.0/dbhome_1/bin/rman target sys/viviet@vvsms log /home/oracle/log_rman/vvsms.log append <<EOF
RUN {
CROSSCHECK BACKUP;
CROSSCHECK ARCHIVELOG ALL;
ALLOCATE CHANNEL CHANNEL1 TYPE DISK FORMAT '/home/oracle/backup/vvsms/backup_%U';
BACKUP INCREMENTAL LEVEL 0 TAG 'incr_vvsms' DATABASE;
BACKUP ARCHIVELOG ALL;
DELETE OBSOLETE;
RELEASE CHANNEL CHANNEL1;
EXIT;
EOF
I write it into a .sh file and set crontab to run it. But when it run i get the error like these:
Starting backup at 22-OCT-12
channel CHANNEL1: starting incremental level 0 datafile backup set
channel CHANNEL1: specifying datafile(s) in backup set
input datafile file number=00002 name=+DISK2/vvsms/datafile/sysaux.289.794242439
input datafile file number=00006 name=+DISK2/vvsms/datafile/ts_service.dbf
input datafile file number=00007 name=+DISK2/vvsms/datafile/ts_viviet.dbf
input datafile file number=00008 name=+DISK2/vvsms/datafile/viviet.dbf
input datafile file number=00009 name=+DISK2/vvsms/datafile/ts_vivietct_primary.dbf
input datafile file number=00003 name=+DISK2/vvsms/datafile/undotbs1.290.794242445
input datafile file number=00001 name=+DISK2/vvsms/datafile/system.288.794242429
input datafile file number=00004 name=+DISK2/vvsms/datafile/undotbs2.292.794242453
input datafile file number=00005 name=+DISK2/vvsms/datafile/users.293.794242455
channel CHANNEL1: starting piece 1 at 22-OCT-12
released channel: CHANNEL1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of backup command on CHANNEL1 channel at 10/22/2012 01:50:16
ORA-19504: failed to create file "/home/oracle/backup/vvsms/backup_2anobqu5_1_1"
ORA-27040: file create error, unable to create file
Linux-x86_64 Error: 2: No such file or directory
I don't know what i'm wrong? The location is correct ("/home/oracle/backup/vvsms/).
Please suggest me some things about it. What do i need to do?
Thanks in advance!
P/s: Sorry for my bad English./u01/app/oracle/product/11.2.0/dbhome_1/bin/rman target sys/viviet@vvsms log /home/oracle/log_rman/vvsms.log appendThis line can be your problem.
As this database is a RAC and your are using a service with load balance "vvsms" and "/home/oracle/backup/vvsms" is not a shared location. RMAN is starting a session on Other node where "/home/oracle/backup/vvsms" does not exists.
Try change it :
/u01/app/oracle/product/11.2.0/dbhome_1/bin/rman target sys/viviet@vvsms log /home/oracle/log_rman/vvsms.log appendTo this (using Easy Connect Method):
/u01/app/oracle/product/11.2.0/dbhome_1/bin/rman target sys/viviet@localhost:1521/VVSMS log /home/oracle/log_rman/vvsms.log appendWhere:
localhost: your local node
VVSMS : is the service of database
Also check if "/u01/app/oracle/product/11.2.0/dbhome_1/network/admin/sqlnet.ora" have configured the line "NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)"
P.S : When RMAN start a session it show where is logged, check on logs what instance RMAN was logged.
HTH,
Levi Pereira -
Oracle 11gR2 RAC (convert single instance to RAC)
Hi,
Using Metalink Doc [ID 747457.1] I have converted single instance database running on 11gR2 to RAC (2 node) database 11gR2 with ASM. Its running fine, I am able to see the instances running on both nodes. But I am unable to login to the instance. It is connecting to ideal instance., but the instance is already running
oracle@hublhp1:/home/oracle$ export ORACLE_SID=cadtest1
oracle@hublhp1:/home/oracle$ sqlplus "/as sysdba"
SQL*Plus: Release 11.2.0.1.0 Production on Tue Nov 2 11:23:43 2010
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to an idle instance.
SQL>
oracle@hublhp1:/home/oracle$ srvctl status database -d cadtest
Instance cadtest1 is not running on node hublhp1
Instance cadtest2 is not running on node hublhp3
oracle@hublhp1:/home/oracle$ ps -ef | grep pmon
oracle 2407 1 0 15:28:21 ? 0:27 asm_pmon_+ASM1
oracle 4125 1 0 15:51:18 ? 0:36 ora_pmon_cadtest1
oracle 4973 3295 0 14:31:13 pts/1 0:00 grep pmon
oracle@hublhp1:/home/oracle$
I am able to stop/start the database using SRVCTL but I am not able to login to this instance. Can anyone please help me to find the issue or where & what to look at.
- ManoThank you so much, I did the following, but I still have the same issue, the instance is running on both nodes, but I am unable to stop/start the database using SRVCTL and I am unable to login using SQLPLUS.
oracle@hublhp1:/home/oracle$ *srvctl modify database -d cadtest -n cadtest -o $ORACLE_HOME -p +asmcdb01/cadtest/spfilecadtest.ora -a ASMCDB01,ASMCFR01*
oracle@hublhp1:/home/oracle$
oracle@hublhp1:/home/oracle$
oracle@hublhp1:/home/oracle$
oracle@hublhp1:/home/oracle$ srvctl config database -d cadtest -a
Database unique name: cadtest
Database name: cadtest
Oracle home: /app/oracle/rdbms/product/11.2.0
Oracle user: oracle
Spfile: +asmcdb01/cadtest/spfilecadtest.ora
Domain:
Start options: open
Stop options: immediate
Database role: PRIMARY
Management policy: AUTOMATIC
Server pools: cadtest
Database instances: cadtest1,cadtest2
Disk Groups: ASMCDB01,ASMCFR01
Services:
Database is enabled
Database is administrator managed
oracle@hublhp1:/home/oracle$
oracle@hublhp1:/home/oracle$
oracle@hublhp1:/home/oracle$ srvctl stop database -d cadtest
PRCC-1016 : cadtest was already stopped
oracle@hublhp1:/home/oracle$
oracle@hublhp1:/home/oracle$
oracle@hublhp1:/home/oracle$ srvctl status database -d cadtest
Instance cadtest1 is not running on node hublhp1
Instance cadtest2 is not running on node hublhp3
oracle@hublhp1:/home/oracle$
oracle@hublhp1:/home/oracle$
oracle@hublhp1:/home/oracle$ echo $ORACLE_SID
cadtest1
oracle@hublhp1:/home/oracle$
oracle@hublhp1:/home/oracle$
oracle@hublhp1:/home/oracle$ sqlplus "/as sysdba"
SQL*Plus: Release 11.2.0.1.0 Production on Tue Nov 2 15:31:55 2010
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to an idle instance.
SQL> exit
Disconnected
oracle@hublhp1:/home/oracle$
oracle@hublhp1:/home/oracle$
oracle@hublhp1:/home/oracle$
oracle@hublhp1:/home/oracle$ -
I have 2 node RAC (Oracle 11gR2 on HP-UX). Instances are running fine on both the nodes, but the srvctl command is showing the database is not running.
oracle@hublhp1:/home/oracle$ ps -ef | grep pmon
oracle 2485 1 0 Nov 9 ? 4:19 asm_pmon_+ASM1
oracle 25512 1 0 Nov 11 ? 5:50 ora_pmon_omsprod1
oracle 1439 21309 0 11:31:53 pts/0 0:00 grep pmon
oracle@hublhp1:/home/oracle$ srvctl status database -d omsprod
Instance omsprod1 is not running on node hublhp1
Instance omsprod2 is not running on node hublhp3
oracle@hublhp1:/home/oracle$ srvctl status instance -d omsprod -i omsprod1,omsprod2
Instance omsprod1 is not running on node hublhp1
Instance omsprod2 is not running on node hublhp3
oracle@hublhp1:/home/oracle$ echo $ORACLE_SID
omsprod1
oracle@hublhp1:/home/oracle$ sqlplus "/as sysdba"
SQL*Plus: Release 11.2.0.1.0 Production on Thu Nov 18 11:32:38 2010
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
SQL>
SQL> select instance_number, instance_name, host_name, status from gv$instance;
INSTANCENUMBER INSTANCE_NAME HOST_NAME STATUS_
1 omsprod1 hublhp1 OPEN
2 omsprod2 hublhp3 OPEN
SQL>
SQL>
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
oracle@hublhp1:/home/oracle$
Any idea what is missing here, where to look at it.Hi,
try to add the database again with srvctl
$srvctl add instance -d db_name -i instance_name
if not try to clear the instance from CRS registry and again register... -
Solaris x86 with Oracle RAC 10g Enterprise Edition Release 10.2.0.3.0
Hello,
Maybe you can help me (new on RMAN backup) in doing this.
I have configured a single Oracle 10g database to have backup with RMAN with following steps:
1. $ mkdir $ORACLE_BASE/rman_scripts
2. $ mkdir $ORACLE_BASE/logs
3. $ mkdir $ORACLE_BASE/tracking
4. $ mkdir $ORACLE_BASE/c_backup
5. $ sqlplus sys/<password> as sysdba
6. SQL> alter system set db_recovery_file_dest_size = 50G scope=both;
7. SQL> alter system set db_recovery_file_dest='${ ORACLE_BASE}/flash_recovery_ area' scope=both;
8. SQL> alter system set log_archive_dest_10='location= use_db_recovery_file_dest';
9. SQL> shutdown immediate
10. SQL> startup nomount
11. SQL> alter database archivelog;
12. SQL> alter database open;
13. SQL> alter database enable block change tracking using file '${ORACLE_BASE}/tracking/rman_ change_track.f';
14. $ rman target /
15. RMAN> CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK
TO '/var/opt/oracle/flash_ recovery_area/ORCL/c_backup/% F';
16. RMAN> CONFIGURE CONTROLFILE AUTOBACKUP ON;
17. RMAN> CONFIGURE BACKUP OPTIMIZATION ON;
18. RMAN> CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;
19. RMAN> exit
I need to configure incremental backup with RMAN on a two node Solaris x86 with Oracle RAC 10g Enterprise Edition Release 10.2.0.3.0 installation.
We also use ASM to store database files, and have Oracle software installed on separate file systems (two Oracle roots for Node1 and Node2).
I have following questions:
1) where to put Flash Recovery Area (FRA)?
I saw recommendations to put FRA on the ASM, is this the best way to do it?
2) Can I put FRA on another file system (not on the ASM) which is available only from Node1? This way I can save space on the ASM.
3) Is it possible/recommended to run RMAN from Node1 only?
Below is the script used to run RMAN on the normal Oracle database (without RAC) which I need to change :
=============================================================================================
2.0 Oracle backup script: /opt/app/oracle/rman_scripts/backup.sh
Use this for daily backups, possiblly as a cron job.
Once a week run this: /opt/app/oracle/rman_scripts/backup.sh FULL
All other days of the week: /opt/app/oracle/rman_scripts/backup.sh INCREMENTAL
Note: You may have to change ORACLE_SID, ORACLE_BASE below to match your database.
=============================================================================================
#!/usr/bin/ksh
ORACLE_SID=orcl
ORACLE_BASE=/opt/app/oracle
ORACLE_HOME=${ORACLE_BASE}/product/10.2.0/db_1
PATH=${ORACLE_HOME}/bin:/usr/bin
LOGDIR=${ORACLE_BASE}/logs
LOGFILE=${LOGDIR}/rman.log
if [[ $# < 1 ]]
then
echo "usage: backup.sh FULL|INCREMENTAL"
exit;
fi
BACKUPTYPE=${1}
full='FULL'
incremental='INCREMENTAL'
if [[ $BACKUPTYPE == $full ]]
then
$ORACLE_HOME/bin/rman target / nocatalog log ${LOGFILE} append << eof
run {
backup database;
SQL 'alter system archive log current';
backup archivelog all;
delete noprompt obsolete;
exit;
eof
echo ''
fi
if [[ $BACKUPTYPE == $incremental ]]
then
$ORACLE_HOME/bin/rman target / nocatalog log ${LOGFILE} append << eof
run {
backup database;
backup incremental level 1 database;
SQL 'alter system archive log current';
backup archivelog all;
delete noprompt obsolete;
exit;
eof
echo ''
fiHi [email protected],
Q1) where to put Flash Recovery Area (FRA)?
A1) With RAC: on the shared storage
I saw recommendations to put FRA on the ASM, is this the best way to do it?
If you want your backups to be available for both nodes you have to use shared storage or tape using an mml library.
So if you want to use the FRA for rman backups and the database is on ASM just make ASM the standard for the FRA as well.
Q2) Can I put FRA on another file system (not on the ASM) which is available only from Node1? This way I can save space on the ASM.
A2) Than you cannot recover in case Node1 is down. Best would be to send your storage admin to a training course so he can manage the clustered raw devices needed for ASM.
Q3) Is it possible/recommended to run RMAN from Node1 only?
A3) No see A2.
Regards,
Tycho -
Hi,
I am using Oracle VM Server 2.2.1, and two database instances
created by the Oracle 11gR2 RAC template?
My memory seems to have slipped. How do I get to the ASM command prompt?
What ORACLE_HOME do I set?
What ORACLE_SID do I use?
What 'login words' do I use?
Thank you.
Andre MAIM wrote:
Hi,
I am using Oracle VM Server 2.2.1, and two database instances
created by the Oracle 11gR2 RAC template?
My memory seems to have slipped. How do I get to the ASM command prompt?
What ORACLE_HOME do I set?
What ORACLE_SID do I use?
What 'login words' do I use?
Thank you.
Andre M
Hi Andre,
Starting from 11g you can use asmcmd or sqlplus to manage ASM. below is the example
$ > export ORACLE_HOME=<your Grid infrastructure location>
$ > export ORACLE_SID=+ASM1
$ > sqlplus / as sysasm
or
$ > asmcmd
Hope it helps
Cheers -
How does RAC determine which instance number to run on which node
Good afternoon
I am trying to script a process and I need to identify how RAC decides which node runs which instance. Is it the first one of the pair added to the cluster that runs node 1 or is there some other piece of information that I need to work this out
This is on Redhat Linux with 10.2.0.3 for CRS, ASM and databases
Cheers
PeterBefore "you" start an instance you set env variable ORACLE_SID. This identifies an instance. When you go into sqlplus and issue STARTUP, Oracle starts the instance named by the sid. Thus the instance running on the server is controlled by you. This changes as noted below.
If you were using a non-Oracle tool to start instances, such as Veritas, then you would see it start the instance you coded into the tool. It would not randomly pick an instance. It looks in the Veritas config file and sees that you always want instance 1 on this node and instance 2 on that node.
That said, you can make Oracle more random or "grid" like. 10g RAC done Oracle's way likes to bounce around between primary and secondary nodes. To see which instances are running on a node you can "ps -ef | grep pmon". Alternatively, use sqlplus to look in the database: view gv$instance gives you each instance name paired with the name of the host it is currently running on. There is one line of output per instance currently running.
-Mark -
Oracle RAC one node-11.2.0.1 with patch 9004119
Hi,
I'm slightly stuck here. I have successfully converted 11.2.0.1 2 node RAC to RAC one node with patch *9004119*(which has scripts required for racone). My single instances are up and running, relocation of databases go fine
As i launch my OEM, it pops with +"ORA-12505:TNS:listener does not currently know of SID given in connect descriptor".+ . Obviously, ./Raconeinit renames the DB instances, but doesn't get changed in OEM. It still lists my old instances.
I manually change ORACLE_SID to new instances in all my nodes, so i'm able to connect through sql, but how do i configure it in DB control so that the change is seen universally. Any application i run with the new instance gives me the above mentioned error.
Please respond!Hi,
In continuation with my above query, i did some search and looked at 'raconeinit' script. It's basically trying to run certain commands to see the current server, free server, current running DB , stores the value in a variable and validates against the input I provide, which is not happening.
When i manually try to run the commands mentioned in script, it gives me invalid -i and -f options errors.
to see DB up:
+./crsctl status resource ora.$LOWER_DB_NAME.db | $GREP -i "^STATE" | $GREP -i "ONLINE" | $WC -l+
to see current server
+./crsctl status resource ora.$LOWER_DB_NAME.db | $GREP -i "STATE" | $AWK -F'ONLINE on ' '{print $2}'+
to see free servers
+./crsctl stat serverpool Free -v|$GREP -i active_servers|$AWK -F'=' '{print $2}'+
It is not accepting my input (free server) and hence exiting. :(
Need help badly -
Network and storage queries in respect to RAC
Network port usage identification in the switch
I’m not sure about the usage of number of sockets/ports in the private switches for Oracle RAC. If we run two node cluster, how the socket usage is like and how many more nodes can be added to the cluster.
For example, if we run two nodes in the cluster, it might use 6 sockets. If the switch is a 24 sockets, I can identify how many more nodes can be added into this cluster. This is to know the scalability of the RAC based on the network component switch.
for information: Our environment has got a gigabit ethernet switch..not sure about the sockets in it.
Storage question
1. How do I identify if a single LUN is shared by multiple databases?
For example, I see only one data volume in ASM, like '+DATA1' which has got many database datafiles, logfile etc. I want to know is there a way I can see a single LUN or a group of LUN been assigned to this volume group in ASM. Is there a recommended practice to do this setup?
I read somewhere "The best practices advise not to mix the LUN with different databases present in the cluster to minimize IO operations." The question 1 is based on this only.
2. If we add/expand the disk or LUN in the volume group, I think the system needs a reboot of all cluster nodes for this to be visible to Oracle ASM. Am I correct? what is restricting not to add dynamically? Storage or OS..no clues for me. Any ideas here...
I have seen the disks which are already part of the disk group can be added dynamically to the ASM disk group but not sure about the addition/expansion of LUN...
Thanks in advance.Network port usage identification in the switch
I’m not sure about the usage of number of sockets/ports in the private switches for Oracle RAC. If we run two node cluster, how the socket usage is like and how many more nodes can be added to the cluster.About Switch for Private network... you have 2 nodes ,you should 2 ports on switch. If you make bonding on Private interface (server), so 2 nodes .. each of nodes use 2 ports for bonding -> you should use 4 ports on switch.
>
For example, if we run two nodes in the cluster, it might use 6 sockets. If the switch is a 24 sockets, I can identify how many more nodes can be added into this cluster. This is to know the scalability of the RAC based on the network component switch.
for information: Our environment has got a gigabit ethernet switch..not sure about the sockets in it.about port number on switch... you can check from product owner...
Many nodes?... if you have plan to add many nodes... you can buy new switch and then cross to old private switch...
Or example... stack switch feature on Cisco 3750
http://www.cisco.com/en/US/docs/switches/lan/catalyst3750/software/release/12.2_25_see/configuration/guide/swstack.html
Storage question
1. How do I identify if a single LUN is shared by multiple databases?
For example, I see only one data volume in ASM, like '+DATA1' which has got many database datafiles, logfile etc. I want to know is there a way I can see a single LUN or a group of LUN been assigned to this volume group in ASM. Is there a recommended practice to do this setup?You have to know what Storage (EMC/NetApp) you are using? and find document... to help
About ASM:
Example: ASM with Emc .. check on node1
$ export ORACLE_SID=+ASM1
$ sqlplus / as sysdba
SQL> select path, library from v$asm_disk where LABEL='DATA1';
PATH LIBRARY
/dev/raw/raw4 System
that mean we have to check about device name (DATA1) at /etc/sysconfig/rawdevices file
Or
SQL> select path, library from v$asm_disk where LABEL='DATA1';
PATH LIBRARY
ORCL:DATA1 ASM Library - Generic Linux, version 2.0.2 (KABI_V2)
that mean we have used asmlib, So...
# /etc/init.d/oracleasm querydisk DATA1
Disk "DATA" is a valid ASM disk on device [1, 127]
and
# ls -la /dev/* | grep '1\, ' | grep 127
We'll see device name 's used for 'DATA1'
by the way... if you use EMC you can... use "powermt" to check storage on servers
# powermt display dev=all
>
I read somewhere "The best practices advise not to mix the LUN with different databases present in the cluster to minimize IO operations." The question 1 is based on this only.
Mix the LUN with different database may make bottle neck on HW Storage...
2. If we add/expand the disk or LUN in the volume group, I think the system needs a reboot of all cluster nodes for this to be visible to Oracle ASM. Am I correct? what is restricting not to add dynamically? Storage or OS..no clues for me. Any ideas here...On Linux... you have to reboot... to reload library... You can reboot each of nodes ... don't need reboot all nodes
>
I have seen the disks which are already part of the disk group can be added dynamically to the ASM disk group but not sure about the addition/expansion of LUN...You can use "dbca" to help add/expand LUN , after every nodes see new disks. -
Confusion over DBCA script generated for manual RAC DB creation
Version:11.2.0.4/RHEL 6.3
We would like to create our 3-node RAC DB manually. DBCA cannot meet our requirement because our redo log files, datafiles, tempfiles and control files are placed in a complicated manner . If we use DBCA , we will have to spend a lot of time configuring to our requirements after the DB creation.
I generated the DB creation scripts from DBCA (DB Name = BRCFPRD )
DBCA placed the db creation scripts in the specified directory in all the 3 nodes !!
They all have almost the same contents . The only difference being the instance name (BRCFPRD12.sql for Node2, ... etc).
Scripts in each node have the createDB.sql statement which has CREATE DATABASE "BRCFPRD" statement. Why is this ? The database need to be created only from one node. Then why did DBCA place createDB.sql in all nodes ?
I just want to run the script from just one node , say Node1 and it should create the 3-Node RAC DB. How can I do this manually?
-- The scripts genereated by DBCA in Node1
apex.sql
BRCFPRD1.sh
BRCFPRD1.sql
context.sql
CreateClustDBViews.sql
CreateDB.sql
CreateDBCatalog.sql
CreateDBFiles.sql
cwmlite.sql
emRepository.sql
init.ora
interMedia.sql
JServer.sql
lockAccount.sql
ordinst.sql
owb.sql
postDBCreation.sql
spatial.sql
xdb_protocol.sql
-- The contents of the main shell script BRCFPRD1.sh
$ cat BRCFPRD1.sh
#!/bin/sh
OLD_UMASK=`umask`
umask 0027
mkdir -p /optware/product/admin/BRCFPRD/adump
mkdir -p /optware/product/admin/BRCFPRD/dpdump
mkdir -p /optware/product/admin/BRCFPRD/hdump
mkdir -p /optware/product/admin/BRCFPRD/pfile
mkdir -p /optware/product/cfgtoollogs/dbca/BRCFPRD
umask ${OLD_UMASK}
ORACLE_SID=BRCFPRD1; export ORACLE_SID
PATH=$ORACLE_HOME/bin:$PATH; export PATH
echo You should Add this entry in the /etc/oratab: BRCFPRD:/optware/product/oracle/11.2.0:Y
/optware/product/oracle/11.2.0/bin/sqlplus /nolog @/optware/product/BRCFPRD1.sql
-- Contents of BRCFSPRD1.sql
$ cat BRCFPRD1.sql
set verify off
ACCEPT sysPassword CHAR PROMPT 'Enter new password for SYS: ' HIDE
ACCEPT systemPassword CHAR PROMPT 'Enter new password for SYSTEM: ' HIDE
ACCEPT sysmanPassword CHAR PROMPT 'Enter new password for SYSMAN: ' HIDE
ACCEPT dbsnmpPassword CHAR PROMPT 'Enter new password for DBSNMP: ' HIDE
host /optware/product/oracle/11.2.0/bin/orapwd file=/optware/product/oracle/11.2.0/dbs/orapwBRCFPRD1 force=y
host /grid/product/11.2.0/bin/setasmgidwrap o=/optware/product/oracle/11.2.0/bin/oracle
host /optware/product/oracle/11.2.0/bin/srvctl add database -d BRCFPRD -o /optware/product/oracle/11.2.0 -p +DATA/BRCFPRD/spfileBRCFPRD.ora -n BRCFPRD -a "DATA,ARCH_DG"
host /optware/product/oracle/11.2.0/bin/srvctl add instance -d BRCFPRD -i BRCFPRD1 -n cimprd175
host /optware/product/oracle/11.2.0/bin/srvctl add instance -d BRCFPRD -i BRCFPRD3 -n cimprd177
host /optware/product/oracle/11.2.0/bin/srvctl add instance -d BRCFPRD -i BRCFPRD2 -n cimprd176
host /optware/product/oracle/11.2.0/bin/srvctl disable database -d BRCFPRD
@/optware/product/CreateDB.sql
@/optware/product/CreateDBFiles.sql
@/optware/product/CreateDBCatalog.sql
@/optware/product/JServer.sql
@/optware/product/context.sql
@/optware/product/xdb_protocol.sql
@/optware/product/ordinst.sql
@/optware/product/interMedia.sql
@/optware/product/cwmlite.sql
@/optware/product/spatial.sql
@/optware/product/emRepository.sql
@/optware/product/apex.sql
@/optware/product/owb.sql
@/optware/product/CreateClustDBViews.sql
host echo "SPFILE='+DATA/BRCFPRD/spfileBRCFPRD.ora'" > /optware/product/oracle/11.2.0/dbs/initBRCFPRD1.ora
@/optware/product/lockAccount.sql
@/optware/product/postDBCreation.sql
-- Contents of CreateDB.sql in Node1
$ cat /optware/product/CreateDB.sql
SET VERIFY OFF
connect "SYS"/"&&sysPassword" as SYSDBA
set echo on
spool /optware/product/CreateDB.log append
startup nomount pfile="/optware/product/init.ora";
CREATE DATABASE "BRCFPRD"
MAXINSTANCES 32
MAXLOGHISTORY 1
MAXLOGFILES 192
MAXLOGMEMBERS 3
MAXDATAFILES 3000
DATAFILE SIZE 700M AUTOEXTEND ON NEXT 10240K MAXSIZE UNLIMITED
EXTENT MANAGEMENT LOCAL
SYSAUX DATAFILE SIZE 600M AUTOEXTEND ON NEXT 10240K MAXSIZE UNLIMITED
SMALLFILE DEFAULT TEMPORARY TABLESPACE TEMP TEMPFILE SIZE 20M AUTOEXTEND ON NEXT 640K MAXSIZE UNLIMITED
SMALLFILE UNDO TABLESPACE "UNDOTBS1" DATAFILE SIZE 200M AUTOEXTEND ON NEXT 5120K MAXSIZE UNLIMITED
CHARACTER SET AL32UTF8
NATIONAL CHARACTER SET AL16UTF16
LOGFILE GROUP 1 SIZE 28672M,
GROUP 2 SIZE 28672M
USER SYS IDENTIFIED BY "&&sysPassword" USER SYSTEM IDENTIFIED BY "&&systemPassword";
set linesize 2048;
column ctl_files NEW_VALUE ctl_files;
select concat('control_files=''', concat(replace(value, ', ', ''','''), '''')) ctl_files from v$parameter where name ='control_files';
host echo &ctl_files >>/optware/product/init.ora;
spool offIf you look at scripts generated in Node2 and Node3 , you can see all scripts except the instance specific ones are commented using REM .
REM host /u01/product/oracle/11.2.0.3/dbhome_1/bin/srvctl add instance -d STOMPER -i STOMPER1 -n ugxtlprd186
REM host /u01/product/oracle/11.2.0.3/dbhome_1/bin/srvctl add instance -d STOMPER -i STOMPER2 -n ugxtlprd187
REM host /u01/product/oracle/11.2.0.3/dbhome_1/bin/srvctl disable database -d STOMPER
REM @/u01/product/CreateDB.sql
REM @/u01/product/CreateDBFiles.sql
REM @/u01/product/CreateDBCatalog.sql
REM @/u01/product/JServer.sql
REM @/u01/product/context.sql
<snipped > -
Start up problem with Oracle RAC 11g
Hi all,
After a power failure I can not start a oracle database it give me the ORA-01031: insufficient privileges error
[oracle@hostname ~]$ sqlplus /nolog
SQL*Plus: Release 11.2.0.1.0 Production on Tue Jul 23 19:06:41 2013
Copyright (c) 1982, 2009, Oracle. All rights reserved.
SQL> show sga
Total System Global Area 283930624 bytes
Fixed Size 2212656 bytes
Variable Size 256552144 bytes
ASM Cache 25165824 bytes
SQL> disconnect
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Real Application Clusters and Automatic Storage Management options
SQL> connect as sysdba
Enter user-name: system
Enter password:
Connected.
SQL> startup
ORA-01031: insufficient privileges
SQL> quit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Real Application Clusters and Automatic Storage Management options
[oracle@hostname ~]$ lsb_release -a
LSB Version: :core-4.0-amd64:core-4.0-ia32:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-ia32:printing-4.0-noarch
Distributor ID: EnterpriseEnterpriseServer
Description: Enterprise Linux Enterprise Linux Server release 5.7 (Carthage)
Release: 5.7
Codename: Carthage
[oracle@hostname ~]$
[oracle@hostname ~]$ crs_stat -t
Name Type Target State Host
ora.DATA.dg ora....up.type ONLINE ONLINE sil-rac1
ora....ER.lsnr ora....er.type ONLINE ONLINE sil-rac1
ora....N1.lsnr ora....er.type ONLINE ONLINE sil-rac2
ora....N2.lsnr ora....er.type ONLINE ONLINE sil-rac1
ora....N3.lsnr ora....er.type ONLINE ONLINE sil-rac1
ora.asm ora.asm.type ONLINE ONLINE sil-rac1
ora.eons ora.eons.type ONLINE ONLINE sil-rac1
ora.gsd ora.gsd.type OFFLINE OFFLINE
ora....network ora....rk.type ONLINE ONLINE sil-rac1
ora.oc4j ora.oc4j.type ONLINE ONLINE sil-rac2
ora.ons ora.ons.type ONLINE ONLINE sil-rac1
ora.orcl.db ora....se.type ONLINE ONLINE sil-rac1
ora.scan1.vip ora....ip.type ONLINE ONLINE sil-rac2
ora.scan2.vip ora....ip.type ONLINE ONLINE sil-rac1
ora.scan3.vip ora....ip.type ONLINE ONLINE sil-rac1
ora....SM1.asm application ONLINE ONLINE sil-rac1
ora....C1.lsnr application ONLINE ONLINE sil-rac1
ora....ac1.gsd application OFFLINE OFFLINE
ora....ac1.ons application ONLINE ONLINE sil-rac1
ora....ac1.vip ora....t1.type ONLINE ONLINE sil-rac1
ora....SM2.asm application ONLINE ONLINE sil-rac2
ora....C2.lsnr application ONLINE ONLINE sil-rac2
ora....ac2.gsd application OFFLINE OFFLINE
ora....ac2.ons application ONLINE ONLINE sil-rac2
ora....ac2.vip ora....t1.type ONLINE ONLINE sil-rac2
[oracle@hostname ~]$
[oracle@hostname ~]$ crsctl check crs
CRS-4638: Oracle High Availability Services is online
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online
[oracle@hostname ~]$
Does anyone know what can be the problem?
Thanks,
Andre GilThanks for your answer
The OS user I'm log is ORACLE that own the filesystem, Before you ask ORACLE is part of OINSTALL and DBA group
Any other suggestion
[oracle@sil-rac1 ~]$ id
uid=1100(oracle) gid=1200(dba) groups=4(adm),100(users),1000(oinstall),1200(dba)
[oracle@sil-rac1 ~]$ env | sort
BASE_PATH=/usr/sbin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/oracle/bin
_=/bin/env
CLASSPATH=/u01/app/11.2.0/grid/JRE:/u01/app/11.2.0/grid/jlib:/u01/app/11.2.0/grid/rdbms/jlib
DB_HOME=/u01/app/oracle/product/11.2.0/db_1
G_BROKEN_FILENAMES=1
GRID_HOME=/u01/app/11.2.0/grid
HISTSIZE=1000
HOME=/home/oracle
HOSTNAME=sil-rac1
INPUTRC=/etc/inputrc
LANG=en_US.UTF-8
LD_LIBRARY_PATH=/u01/app/11.2.0/grid/lib:/lib:/usr/lib
LESSOPEN=|/usr/bin/lesspipe.sh %s
LOGNAME=oracle
LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:
MAIL=/var/spool/mail/oracle
ORACLE_BASE=/u01/app/oracle
ORACLE_HOME=/u01/app/11.2.0/grid
ORACLE_HOSTNAME=sil-rac1.silanis.com
ORACLE_SID=+ASM1
ORACLE_TERM=xterm
ORACLE_UNQNAME=RAC
PATH=/u01/app/11.2.0/grid/bin:/usr/sbin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/oracle/bin
PWD=/home/oracle
SHELL=/bin/bash
SHLVL=1
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
TERM=xterm
TMPDIR=/tmp
TMP=/tmp
USER=oracle
[oracle@sil-rac1 ~]$
Maybe you are looking for
-
How to create a PAR file from EAR file
Hi, I have created an Web Dynpro Application . When i deploy it in Remote J2EE Engine, it will deploy as EAR file. It then runs as normal Web Application in Web browser. My requirement is to create an iView for my Web dynpro appn in EP. That is po
-
IMac G4 Flat Panel set for network start up incorrectly
How do I fix this. I think while I was nosing around I mistakenly set my mothers iMac g4 to start up from network. It is not on a network so...How do I change this start up preference if when it starts up is always searches for a network. I have the
-
Inspections for Iron incoming and out going materials.
Hello Experts, I am implementing SAP QM fro hpp iron industry, My requirement is user wants the inspections with respect to quantity basis of finished goods. They don't want all specifications to be recorded in the system. They want to accept the ins
-
In BOX R2 Universe how to create External Function in C++??
Hi All, Can any one tell me how to create dynamic SQL Query in BOXI R2 Universe, I heard that we can create c++ custom external functions. i know the procedure for using Oracle functions but that is taking more time to generate report. I want to crea
-
Hi, Once again I find myself struggling to keep on top of the bleeding edge of Portal technology - I remember developing PL/SQL portlets in WebDB 3.0 Beta when there was no documentation not too many years ago! I am working with a client that wants t