Standby instance failiure ( using DGMGRL)
Hi all ;
PRIMARY ----> ORG
STANDBY -----> DUMMY
WHEN TRYING SWITCHOVER USING DGMGRL , I AM GETTING ERROR.
DGMGRL> switchover to
dummy;
Performing switchover NOW, please wait...
Operation requires shutdown of instance "org" on database "org"
Shutting down instance "org"...
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
Operation requires shutdown of instance "dummy" on database "dummy"
Shutting down instance "dummy"...
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
Operation requires startup of instance "org" on database "org"
Starting instance "org"...
Unable to connect to database
ORA-12514: TNS:listener does not currently know of service requested in connect descriptor Failed.
You are no longer connected to ORACLE
Please connect again.
Unable to start instance "org"
You must start instance "org" manually
Operation requires startup of instance "dummy" on database "dummy"
You must start instance "dummy" manually
Switchover succeeded, new primary is "dummy"
DGMGRL> !
Unrecognized command "!", try "help"
DGMGRL> exit
bash-3.2$ export ORACLE_SID=dummy
bash-3.2$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Tue Jan 7 14:39:38 2014
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup
ORACLE instance started.
Total System Global Area 1048576000 bytes
Fixed Size 1223344 bytes
Variable Size 255853904 bytes
Database Buffers 784334848 bytes
Redo Buffers 7163904 bytes
Database mounted.
Database opened.
SQL> select database_role from v$database;
DATABASE_ROLE
PRIMARY
When trying to connect standby database , i am getting error :
bash-3.2$ export ORACLE_SID=org
bash-3.2$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Tue Jan 7 14:40:15 2014
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup
ORACLE instance started.
Total System Global Area 1048576000 bytes
Fixed Size 1223344 bytes
Variable Size 255853904 bytes
Database Buffers 784334848 bytes
Redo Buffers 7163904 bytes
Database mounted.
Database opened.
SQL> select database_role from v$database;
select database_role from v$database
ERROR at line 1:
ORA-03135: connection lost contact
SQL> select database_role from v$database;
ERROR:
ORA-03114: not connected to ORACLE
FYI : both database ping well on same server.
ORG probably went down. Check the alert.log for ORG.
Hemant K Chitale
Similar Messages
-
Starting / Stopping Databases using DGMGRL
Hi,
I was previously using Sqlplus to manage my Data Guard environment but I have not converted to using DGMGRL.
I was wanting to check ihow I start/stop my various databases using DGMGRL
For my primary I guess I use
DGMGRL> startup;
Q1. For my logical standby do I use
DGMGRL> startup;
Under sqlplus I then had to
alter database start logical standby apply immediate;
Q2. Do I still need to do this if the Broker is managing the standby ?
Q3. To shutdown the Logical Standby I guess I simply use
DGMGRL> shutdown;
Q4. For my Physical Standby I was using
startup nomount;
alter database mount standby database;
alter database recover managed standby database disconnect;
How does this translate into DGMGRL ?
Q5. To close the Physical Standby I was using
alter database recover managed standby database cancel;
shutdown;
Again how does this translate into DGMGRL ?
many thanks,
JimJimbo wrote:
Hi,
I was previously using Sqlplus to manage my Data Guard environment but I have not converted to using DGMGRL.
I was wanting to check ihow I start/stop my various databases using DGMGRL
For my primary I guess I use
DGMGRL> startup;
Q1. For my logical standby do I use
DGMGRL> startup;
Under sqlplus I then had to
alter database start logical standby apply immediate;
Q2. Do I still need to do this if the Broker is managing the standby ?
Read ozgurumut's link, from before reply
DGMGRL> edit database <standby database> set state='APPLY-ON';
In the default, dgmgrl starting apply process
Q3. To shutdown the Logical Standby I guess I simply use
DGMGRL> shutdown;
Q4. For my Physical Standby I was using
startup nomount;
alter database mount standby database;
alter database recover managed standby database disconnect;
How does this translate into DGMGRL ?
DGMGRL> startup mount;
DGMGRL> edit database <standby> set state='APPLY-ON'; -- it is not need, if stopped apply before shutdown
Q5. To close the Physical Standby I was using
alter database recover managed standby database cancel;
DGMGRL> edit database <standby> set state='APPLY-OFF';
Regards
Mahir M. Quluzade
p.s. ozgurumut I'm very glad see you at OTN forum my friend! -
How to automate "wallet open" operation in standby instance?
My database is 11.1.0.7 and 11.2.0.3 with TDE tablespace encryption, ASM db storage.
The wallet needs to be opened for MRP to work in physical standby database. I already have the solution for the primary instances to automate wallet open (e.g. using startup trigger for 11.1.0.7). However, I cannot find solution to automate wallet open operation in standby instances (to issue ALTER SYSTEM SET ENCRYPTION WALLET OPEN IDENTIFIED BY ""').
Manual operation everytime standby instance is started is not feasible. Has anyone come across the solution for this?You can create auto open wallet (open owm utility, go to File -> Open (to open your wallet in owm), then go to File -> Auto Login (check) then go to File -> Save). You can do this on primary and standby instance.
Now every time database is opened, wallet will be automatically opened too. You shouldn't use triggers.
Zoran
Edited by: Zoran Pavlovic on Dec 15, 2012 1:42 AM -
Failed to add hot standby instances in liveCache Hotstandby setup
Hi All,
I am trying to setup Hot Standby between two HP-UX IA64 hosts and facing few issues. Given below are the setup details.
Hosts: HP-UX IA64 B.11.31
liveCache version: 7.7.06.16
Storage: EMC Symmetrix
maxDB Database Manager: 7.6.06.04
These are the steps I did using maxDB GUI
1. Added primary server (i.e. MASTER).
2. Made it online to validate the setup.
3. Made it offline, so that Hot Standby System can be enabled.
4. Enabled the Hot Standby System, and created a virtual server name entry.
5. Made the primary online, so that standby instances can be added.
6. Tried adding Hot Standby instances and saw a pop-up message with following error.
"-24994 Runtime environment error [hss_addstandby ...]; 20090, Check knldiag! Kernel exited with '0' before reaching ADMIN state"
Found the following error message in KnlMsg file of SECONDARY/STANDBY host.
<MSGL _NO="110" _PROCESS="20561" _THREAD="0x19" _TASK="2" _TIME="2009-10-01 13:04:33.000">
<MSG _NO="1" _TYPE="Error" _ID="20049" _COMP="RTEHSS" TEXT="Call to RTEHSSInit failed since RTEHSS_Api is not usable">
<MSG_ARGS
FILE="RTEHSSApiDll.cpp"
_LINE="736"
_TIME="2009-10-01 13:04:33.000"
/>
</MSG>
<MSG _NO="2" _TYPE="Error" _ID="20046" _COMP="RTE" _TEXT="Loading DLL /usr/symcli/shlib/apps/SAP/libemcslc.sl failed dlopen failed:Unable to find library &
apos;/usr/symcli/shlib/apps/SAP/libemcslc.sl'.">
<MSG_ARGS
FILE="RTESysSharedLib.cpp"
_LINE="631"
_TIME="2009-10-01 13:04:32.000"
/>
</MSG>
<MSG _NO="3" _ID="20048" _COMP="Admin" _TEXT="The database parameters are neither correctly configured for 'HotStandby' nor for 'Normal&apos
; operation.">
<MSG_ARGS
FILE="KernelAdministration.cpp"
_LINE="4409"
_TIME="2009-10-01 13:04:33.000"
/>
</MSG>
</MSGL>
The library is available on the STANDBY host and has correct permissions.
ll /usr/symcli/shlib/apps/SAP/libemcslc.sl
-rwxrwxrwx 1 sdb sdba 297720 Sep 17 21:51 /usr/symcli/shlib/apps/SAP/libemcslc.sl
Any help/pointer on resolving the issue will be appreciated.
Thanks and Regards,
Mohammed Firdosh Nasim.What immediately comes to my mind when I see this:
> Hosts: HP-UX IA64 B.11.31
and
> <MSG _NO="2" _TYPE="Error" _ID="20046" _COMP="RTE" _TEXT="Loading DLL /usr/symcli/shlib/apps/SAP/libemcslc.sl failed dlopen failed:Unable to find library & apos;/usr/symcli/shlib/apps/SAP/libemcslc.sl'.">
You may try to load the symmetrix shared library for PA-RISC platform but you are on IA64. Shared libraries on IA64 have the extension ".so". There is an "emulator" (ARIES) on IA64 to run PA-RISC binaries - but since the database you run is IA64 it can't load a PA-RISC shared library.
What do you get when you run
file /usr/symcli/shlib/apps/SAP/libemcslc.sl
However, this is just a guess.
Markus -
Dbstart/dbstop for Primary or Physical Standby instance
We have established a Physical DataGuard instance on Oracle 9i RAC, RedHat 2.
In our environment we switchover from the Primary to Standby site about every 6 months.
DBSTART is called after a system restart - and its goal is to bring the database up automatically.
DBSTART works ok when the instance is a primary instance, and does not work when the instance is a Standby database.
As supplied by Oracle, DBSTART puts the instance into NOMOUNT status when the instance is a Standby Instance.
I would to put the database into "Managed Recovery Mode" when the instance is a Standby Instance.
I know that I can modify DBSTART to always put the instance into managed recovery - but then I would need to remember to modify DBSTART after a switchover.
Has anyone modified DBSTART so that it detects a "Standby Control File" and issues the appropriate statements?Hi Richard,
I'd suggest you read the documentation as a starting point, to answer your questions on here would be quite lengthy,
http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/toc.htm
In a nutshell you dont need downtime to maintain a standby, you can create them from a hot backup of your primary and get them recovering whilst it is open, in terms of which type of standby to use (physical or logical) that depends on your requirements for the use of the standby ... as I said read the doco (chapter 2 has a section on the benefits of each type).
HTH
Paul -
Oracle ORA_16000 when trying to add standby instance to existing rac node
I attempted to use dbca to add a new standby instance to an existing cluster. The cluster is 4 nodes, Linux RHEL 5.3 Oracle 11.1.0.7. Also using ASM, asmlib, ocfs2 and shared block devices.
ASM instances are up and functional on all nodes. current config appears to be running normally and correctly.
I have a 4 instance database running on the cluster. I also have 3 physical standby active data guard instances running on 3 of the nodes. I wanted to add a new ADG instance to the 4th node.
While running dbca I received ORA-00604 and ORA-16000.
The active data guard database was open (read only) and redo apply was on. I am using data guard broker as well, but not grid control.
Does anyone have a procedure for adding an instance in this environment? Do I need to have the standby in mount state? If dbca won't work does anyone have a manual procedure for adding a new instance?
Thankszulo
Let's say you adding node nusclust160## to you existing cluster and dbca is a pain to use.
Extend clusterware to the nusclust160## server.
re: Page 64 of Oracle® Clusterware Administration and Deployment Guide 11g Release 1 (11.1)
1a.
Add undo tablespace to support additional node.
Re-check space for DATA1 on nusclust16007 and /dbdata/ORADB on sun16109.
As of Thursday, May 21, 2009 the DATA1 asm group has 53,584M free.
As of Thursday, May 21, 2009 the /dbdata/ORADB has 77G free.
In a separate terminal window on nusclust16007 run the following in sqlplus
CREATE UNDO TABLESPACE UNDOTBS4 datafile '+DATA1' SIZE 13300M AUTOEXTEND ON ;
This will take a long time to create this tablespace. Please minimize the window after submitting the ddl and move on to the next step.
1b.
Insure .bash_profile on nusclust160## should look like this:
vi .bash_profile
export ORACLE_HOSTNAME=nusclust160##
export ORACLE_SID=ORADB4
export ORA_CRS_BASE=/apps/ocr/oracle
export ORACLE_BASE=/apps/dbs/oracle
export PATH=/usr/ccs/bin:/usr/X/bin:/usr/bin:/usr/sfw/bin:/usr/sbin:/usr/local/bin
export server=`uname -n`
export PS1="$ORACLE_SID@$HOSTNAME >"
alias cls='clear'
alias More='more'
alias ll='ls -lt | more'
Gather IP addresses for fourth node from /etc/hosts:
222.65.125.### nusclust160##
222.65.125.### nusclust160##-vip
10.333.248.### nusclust160##-priv
2. Start Oracle Universal Installer:
Go to CRS_home/oui/bin and run the addNode.sh script on one of the existing
nodes. Oracle Universal Installer runs in add node mode.
The Oracle inventory on nusclust16007, nusclust16008, and nusclust16036 are found under:
/home/oracle/oraInventory
Use a X windows enabled session (The OUI takes 33 minutes)
cd /apps/ocr/oracle/product/11.1.0/crs/oui/bin
./addNode.sh
a. In the first screen specify a new node as :
Public Node Name: nusclust160##
Private Node Name: nusclust160##-priv
Virtual Host Name: nusclust160##-vip
If you receive the error:
" tar. ./bin/racgvip.orig: Permission denied"
Do the following:
cd /apps/ocr/oracle/product/11.1.0/crs/bin
ls -al racgvip.orig
paste here:
chown root:oinstall racgvip.orig
chmod 771 racgvip.orig
should now show:
-rwxrwx--x 1 root oinstall 19213 Feb 11 08:36 racgvip.orig
As root:
a.
On nusclust160##:
cd /home/oracle/oraInventory
./orainstRoot.sh
b.
On nusclust16007:
cd /apps/ocr/oracle/product/11.1.0/crs/install
./rootaddnode.sh
clscfg: EXISTING configuration version 4 detected.
clscfg: version 4 is 11 Release 1.
Attempting to add 1 new nodes to the configuration
Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.
node <nodenumber>: <nodename> <private interconnect name> <hostname>
node 4: nusclust160## nusclust160##-priv nusclust160##
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
/apps/ocr/oracle/product/11.1.0/crs/bin/srvctl add nodeapps -n nusclust160## -A nusclust160##-vip/255.255.255.224/bge0
c.
On nusclust160##:
cd /apps/ocr/oracle/product/11.1.0/crs/
./root.sh
WARNING: directory '/apps/ocr/oracle/product/11.1.0' is not owned by root
WARNING: directory '/apps/ocr/oracle/product' is not owned by root
WARNING: directory '/apps/ocr/oracle' is not owned by root
Checking to see if Oracle CRS stack is already configured
OCR LOCATIONS = /raw/ocr/ocrconf1,/raw/ocr/ocrconf2
OCR backup directory '/apps/ocr/oracle/product/11.1.0/crs/cdata/rac_cluster' does not exist. Creating now
Setting the permissions on OCR backup directory
Setting up Network socket directories
Oracle Cluster Registry configuration upgraded successfully
The directory '/apps/ocr/oracle/product/11.1.0' is not owned by root. Changing owner to root
The directory '/apps/ocr/oracle/product' is not owned by root. Changing owner to root
The directory '/apps/ocr/oracle' is not owned by root. Changing owner to root
clscfg: EXISTING configuration version 4 detected.
clscfg: version 4 is 11 Release 1.
Successfully accumulated necessary OCR keys.
Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.
node <nodenumber>: <nodename> <private interconnect name> <hostname>
node 1: nusclust16007 nusclust16007-priv nusclust16007
node 2: nusclust16008 nusclust16008-priv nusclust16008
node 3: nusclust16036 nusclust16036-priv nusclust16036
clscfg: Arguments check out successfully.
NO KEYS WERE WRITTEN. Supply -force parameter to override.
-force is destructive and will destroy any previous cluster
configuration.
Oracle Cluster Registry for cluster has already been initialized
Startup will be queued to init within 30 seconds.
Adding daemons to inittab
Expecting the CRS daemons to be up within 600 seconds.
Cluster Synchronization Services is active on these nodes.
nusclust16007
nusclust16008
nusclust16036
nusclust160##
Cluster Synchronization Services is active on all the nodes.
Waiting for the Oracle CRSD and EVMD to start
Oracle CRS stack installed and running under init(1M)
4. After this is done crs_stat -t will show nusclust160## in the crs i.e.
I see:
Name Type Target State Host
ora....160##.gsd application ONLINE ONLINE sun...160##
ora....160##.ons application ONLINE OFFLINE
ora....160##.vip application ONLINE ONLINE sun...160##
Do not be concerned about ora.nusclust160##.ons being OFFLINE, as that will be fixed shortly in a step that follows this one.
5. As oracle :
On nusclust16007:
cd /apps/ocr/oracle/product/11.1.0/crs/bin
./racgons add_config nusclust160##:6251
This should take about one second to run.
If it says that it has already been added to the OCR you are fine.
If it hangs, you may need to reboot all servers to clear this issue.
6. Insure new node is properly added to ocr by running
On nusclust16007:
ocrdump
Check for the entries that show:
[DATABASE.ONS_HOSTS.nusclust160##.PORT]
ORATEXT : 6251
7. Check that your cluster is integrated and that the cluster is not divided into
partitions by completing the following operations:
On nusclust16007:
cd /apps/ocr/oracle/product/11.1.0/crs/bin
./cluvfy comp clumgr -n all -verbose
Should see Verification of cluster manager integrity was successful.
8.
Use the following command to perform an integrated validation of the Oracle
Clusterware setup on all of the configured nodes, both the preexisting nodes
and the nodes that you have added:
AS oracle on nusclust16007:
cluvfy stage -post crsinst -n all -verbose
Post-check for cluster services setup was successful.
good: Post-check for cluster services setup was successful.
9.
On nusclust160## as oracle run the following:
cd /apps/ocr/oracle/product/11.1.0/crs/bin
./crs_stat -t | grep OFFLINE
If you see this:
ora.nusclust160##.ons application ONLINE OFFLINE
then run this:
./crs_start -all
After:
./crs_stat -t
ora.nusclust160##.ons application ONLINE ONLINE nusclust160##
If you see the above then you can move on the next step.
Adding database binaries to the nusclust160## server and setting up the listener.
1.
From nusclust16007:
Open an X window (The OUI part takes 13 minutes)
cd /apps/dbs/oracle/product/11.1.0/db_1/oui/bin
./runInstaller -addNode ORACLE_HOME=/apps/dbs/oracle/product/11.1.0/db_1 $*
You should get a prompt to specify a new node, in this case you should see nusclust160## where you will need to put a check mark beside it.
2.
from nusclust160##:
Eventually you will be prompted to run the following as root on the new node
On nusclust160##
cd /apps/dbs/oracle/product/11.1.0/db_1
./root.sh
Running Oracle 11g root.sh script...
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /apps/dbs/oracle/product/11.1.0/db_1
Enter the full pathname of the local bin directory: [usr/local/bin]:
Copying dbhome to /usr/local/bin ...
Copying oraenv to /usr/local/bin ...
Copying coraenv to /usr/local/bin ...
Creating /var/opt/oracle/oratab file...
Entries will be added to the /var/opt/oracle/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
Finished product-specific root actions.
3. verification
Now set up the .bash_profile and .asm profile to on nusclust160## to support new ORADB4 and +ASM4 instances for the oracle userid.
On nusclust160##:
cp .bash_profile .bash_profile.bak
On nusclust16007:
sftp nusclust160##
put .bash_profile
On nusclust160##:
vi .bash_profile
change ORALCE_SID to ORADB4
cp .bash_profile .asm
vi .asm
change ORALCE_SID to +ASM4 in .asm file
which sqlplus
Should show the path below is $PATH environmental variable is set correctly.
/apps/dbs/oracle/product/11.1.0/db_1/bin/sqlplus
On nusclust160##:
oifcfg getif
This should show:
ce4 10.333.248.192 global cluster_interconnect
ce5 222.65.125.128 global public
4.
Run Netbackup Oracle Agent link script.
As oracle make sure ORACLE_HOME is fined.
env | grep ORACLE_HOME
then
cd /usr/openv/netbackup/bin/
./oracle_link
ls -al $ORACLE_HOME/lib/libobk.so
should show:
/apps/dbs/oracle/product/11.1.0/db_1/lib/libobk.so -> /usr/openv/netbackup/bin/libobk.so64.1
5.
On the target node, run the Net Configuration Assistant (NETCA) to add a
listener. Add a listener to the target node by running NETCA from the target node and
selecting only the target node on the Node Selection page.
I shall do the following on nusclust160## using X Windows
Now before I do this I see:
crs_stat -t
ora.nusclust160##.gsd application ONLINE ONLINE nusclust160##
ora.nusclust160##.ons application ONLINE ONLINE nusclust160##
ora.nusclust160##.vip application ONLINE ONLINE nusclust160##
Connect to nusclust160## and open up X windows session.
netca
Choose Cluster configuration.
select nusclust160## as the node to configure.
Choose Listener configuration, then Add.
When it prompts you for a listener name choose LISTENER as it will append _NUSCLUST160##(server name) to end of the LISTENER name to make a complete listener name.
At this point you will have listener to support the new node in the crs.
now
crs_stat -t
will show:
ora....0#.lsnr application ONLINE ONLINE nusclust160##
ora.nusclust160##.gsd application ONLINE ONLINE nusclust160##
ora.nusclust160##.ons application ONLINE ONLINE nusclust160##
ora.nusclust160##.vip application ONLINE ONLINE nusclust160##
At this point the necessary crs entries for gsd, ons, vip, and the listener on nusclust160## all we need now are the ORADB4 and +ASM4 instances added.
III. 7/11/2009 7:40 AM Sat [120 min] NTTA DBA
Use NON dbca method to create additional instances on the nusclust160## server. This will involve a complete shutdown of all RAC instances.
1.
Undo tablespace creation was taken care of in Step I,1. Check on the progress of the creation of tablespace UNDOTBS4 in the minimized window. Should see tablespace on primary and physical standby databases.
2. First we shall set up the +ASM4 instance on nusclust160## and add it to the cluster.
On nusclust160##
cd $ORACLE_HOME/dbs
vi init+ASM4.ora
# Copyright (c) 1991, 2001, 2002 by Oracle Corporation
# Cluster Database
cluster_database=true
cluster_database_instances=6
# Miscellaneous
diagnostic_dest=/apps/dbs/oracle
instance_type=asm
# Pools
large_pool_size=12M
asm_diskgroups='DATA1','ARCH','REDO1','REDO2'
asm_diskstring='/raw/asm'
+ASM1.instance_number=1
+ASM2.instance_number=2
+ASM3.instance_number=3
+ASM4.instance_number=4
3.
On nusclust16007
cd $ORACLE_HOME/dbs
sftp nusclust160##
put orapw+ASM1 /apps/dbs/oracle/product/11.1.0/db_1/dbs
put orapwORADB1 /apps/dbs/oracle/product/11.1.0/db_1/dbs
4.
On nusclust160##
cd $ORACLE_HOME/dbs
cp orapw+ASM1 orapw+ASM4
cp orapwORADB1 orapwORADB4
5.
On nusclust160##
cd $HOME
. ./.asm
sqlplus '/ as sysasm'
startup
create spfile from pfile='/apps/dbs/oracle/product/11.1.0/db_1/dbs/init+ASM4.ora' ;
shutdown immediate ;
startup
show parameters spfile
6. Now that we have a running asm instance add it the cluster.
On nusclust160##
srvctl add asm -n nusclust160## -i +ASM4 -o /apps/dbs/oracle/product/11.1.0/db_1
srvctl enable asm -n nusclust160## -i +ASM4
7. Now that we have an asm instance let's set up a database instance.
On nusclust16007/ORADB1 :
alter system set cluster_database_instances=6 scope=spfile ;
alter system set instance_name=ORADB4 scope=spfile sid='ORADB4' ;
alter system set instance_number=4 scope=spfile sid='ORADB4' ;
alter system set local_listener=LISTENER_ NUSCLUST160## scope=both sid='ORADB4' ;
alter system set thread=4 scope=both sid='ORADB4' ;
alter system set undo_tablespace=UNDOTBS4 scope=both sid='ORADB4' ;
alter database add logfile thread 4 group 28 ('+REDO1', '+REDO2' ) size 100M ;
alter database add logfile thread 4 group 29 ('+REDO1', '+REDO2' ) size 100M ;
alter database add logfile thread 4 group 30 ('+REDO1', '+REDO2' ) size 100M ;
alter database add logfile thread 4 group 31 ('+REDO1', '+REDO2' ) size 100M ;
alter database enable public thread 4;
Need to add 5 groups to support standby
So at the end of the day 900M will be added to REDO1(29,577M free) and 900M will be added to REDO2 (29,577M free).
8. Set up init.ora, listener.ora, and tnsnames.ora for ORADB4 on nusclust160##.
a. init.ora set up
cd $ORACLE_HOME/dbs
vi initORADB4.ora
SPFILE='+DATA1/ORADB/spfileORADB.ora'
b. add entries to tnsnames.ora:
ORADB4 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = nusclust160##-vip)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ORADB)
(INSTANCE_NAME = ORADB4)
ORADB =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = nusclust16007-vip)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = nusclust16008-vip)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = nusclust16036-vip)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = nusclust160##-vip)(PORT = 1521))
(LOAD_BALANCE = yes)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ORADB)
LISTENERS_ORADB =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = nusclust16007-vip)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = nusclust16008-vip)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = nusclust16036-vip)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = nusclust160##-vip)(PORT = 1521))
LISTENER_NUSCLUST160## =
(ADDRESS = (PROTOCOL = TCP)(HOST = nusclust160##-vip)(PORT = 1521))
ORADB_PRIM =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = nusclust16007-vip)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = nusclust16008-vip)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = nusclust16036-vip)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = nusclust160##-vip)(PORT = 1521))
(LOAD_BALANCE = yes)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ORADB)
c. add entries to listener.ora, The entries for most of this file should be set already, just insure modifications that need to be made are made.
SID_LIST_LISTENER_NUSCLUST160## =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /apps/dbs/oracle/product/11.1.0/db_1)
(PROGRAM = extproc)
(SID_DESC =
(GLOBAL_DBNAME = ORADB)
(ORACLE_HOME = /apps/dbs/oracle/product/11.1.0/db_1)
(SID_NAME = ORADB4)
LISTENER_NUSCLUST160## =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = NUSCLUST160##-vip)(PORT = 1521)(IP = FIRST))
(ADDRESS = (PROTOCOL = TCP)(HOST = 222.65.125.###)(PORT = 1521)(IP = FIRST))
9. Reload the listener.
lsnrclt
set current_listener LISTENER_NUSCLUST160##
reload
exit
10. Check audit trail, add instance to cluster, and start db instance.
a.
Check for audit directory and start the instance.
/apps/dbs/oracle/product/11.1.0/db_1/rdbms/audit
If this audit trail directory does not exist then create it.
b.
srvctl add instance -d ORADB -i ORADB4 -n nusclust160##
srvctl modify instance -d ORADB -i ORADB4 -s +ASM4
srvctl enable instance -d ORADB -i ORADB4
Will probably show: PRKP-1017 : Instance ORADB4 already enabled.
c.
sqlplus '/ as sysdba'
startup
**Because the cluster_database_instances parameter requires the complete shutdown of all instances in the cluster, you might have an issue when it attempts to start the instance. If you receive an error then run:
srvctl stop database -d oradb
sqlplus '/ as sysdba'
startup
shutdown
srvctl start database -d oradb
shutdown
srvctl start instance -d ORADB -i ORADB4 -o open
11.
Modify spfile of ASM1, ASM2, +ASM3
On nusclust16007
. ./.asm
sqlplus '/ as sysasm'
alter system set instance_number=4 scope=spfile sid='+ASM4' ;
On nusclust16008
. ./.asm
sqlplus '/ as sysasm'
alter system set instance_number=4 scope=spfile sid='+ASM4' ;
On nusclust16036
. ./.asm
sqlplus '/ as sysasm'
alter system set instance_number=4 scope=spfile sid='+ASM4' ;
b Modify tnsnames.ora on nusclust nusclust16007, nusclust16008, and nusclust16036
On nusclust16007
ORADB4 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = nusclust160##-vip)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ORADB)
(INSTANCE_NAME = ORADB4)
Add the following line to the ORADB alias:
(ADDRESS = (PROTOCOL = TCP)(HOST = nusclust160##-vip)(PORT = 1521))
Add the following line to the LISTENERS_ORADB alias:
(ADDRESS = (PROTOCOL = TCP)(HOST = nusclust160##-vip)(PORT = 1521))
Add the following line to the ORADB_PRIM alias:
(ADDRESS = (PROTOCOL = TCP)(HOST = nusclust160##-vip)(PORT = 1521))
On nusclust16008
ORADB4 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = nusclust160##-vip)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ORADB)
(INSTANCE_NAME = ORADB4)
Add the following line to the ORADB alias:
(ADDRESS = (PROTOCOL = TCP)(HOST = nusclust160##-vip)(PORT = 1521))
Add the following line to the LISTENERS_ORADB alias:
(ADDRESS = (PROTOCOL = TCP)(HOST = nusclust160##-vip)(PORT = 1521))
Add the following line to the ORADB_PRIM alias:
(ADDRESS = (PROTOCOL = TCP)(HOST = nusclust160##-vip)(PORT = 1521))
On nusclust16036
ORADB4 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = nusclust160##-vip)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ORADB)
(INSTANCE_NAME = ORADB4)
Add the following line to the ORADB alias:
(ADDRESS = (PROTOCOL = TCP)(HOST = nusclust160##-vip)(PORT = 1521))
Add the following line to the LISTENERS_ORADB alias:
(ADDRESS = (PROTOCOL = TCP)(HOST = nusclust160##-vip)(PORT = 1521))
Add the following line to the ORADB_PRIM alias:
(ADDRESS = (PROTOCOL = TCP)(HOST = nusclust160##-vip)(PORT = 1521))
c Add standby logs on primary to support 4th node.
alter database add standby logfile thread 4 group 32 ('+REDO1', '+REDO2' ) size 100M ;
alter database add standby logfile thread 4 group 33 ('+REDO1', '+REDO2' ) size 100M ;
alter database add standby logfile thread 4 group 34 ('+REDO1', '+REDO2' ) size 100M ;
alter database add standby logfile thread 4 group 35 ('+REDO1', '+REDO2' ) size 100M ;
alter database add standby logfile thread 4 group 36 ('+REDO1', '+REDO2' ) size 100M ;
12.
Test the cluster to make sure everything is set up correctly.
a. Shutdown resources.
On nusclust16007:
emctl stop dbconsole
ps -ef | grep perl
ps -ef | grep agent
ps -ef | grep java
On nusclust16008:
emctl stop dbconsole
On nusclust16036:
emctl stop dbconsole
On nusclust16008:
cd $HOME
. ./.rman
cd scripts
./go
shutdown immediate
cd $HOME
. ./.bash_profile
srvctl stop database -d oradb
crs_stop -all
crs_stat -t
b. Startup resources
On nusclust16007:
cd $HOME
. ./.bash_profile
crs_start -all
crs_stat -t
The command above should show everything up and running.
ocrcheck
On nusclust16008:
cd $HOME
. ./.rman
cd scripts
./go
startup
On nusclust16007:
emctl start dbconsole
On nusclust16008:
emctl start dbconsole
On nusclust16036:
emctl start dbconsole
How does that work for you?
-JR jr -
Problem in process instances Archiving using NetWeaver (CE 7.2)
Hi,
I'm configuring the process instances Archiving using NetWeaver Composition Enviornment 7.2.
I followed the document "Process Archiving using NetWeaver Business Process Management".
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/e099ee21-6e1a-2e10-4d91-eb278c0dcdb8#rating
There is a problem when I configure Archive Destination using XML DAS Administration. I define the new archive store with the parameters as in the document but I get error.
I attach screenshot with the parameters and the error in the next URL: http://www.esnips.com/web/XMLDASAdministration
Thanks in advance,
SamanthaIn the screen shot I could see you have configured both for Windows and Unix root. depends on your system please choose one. also set this as the default archive store. Makre sure the share folder has shared .
-
How to create online log in standby instance?
Oracle say that:
Step 3 Create an Online Redo Log on the Standby Database
Although this step is optional, Oracle recommends that an online redo log be created
when a standby database is created. By following this best practice, a standby database
will be ready to quickly transition to the primary database role.
The size and number of redo log groups in the online redo log of a standby database
should be chosen so that the standby database performs well if it transitions to the
primary role.
But when I execute "ALTER DATABASE ADD LOGFILE ('/opt/oracle/oradata/orcl/redo01.log') SIZE 50M;" in standby instance,I get the follow message:
ORA-01275: Operation ADD LOGFILE is not allowed if standby file management is automatic.
How could I do?Hello xyz_hh ;
Your post is just a little vague so I'm guessing you are referring to "3.2.6 Start the Physical Standby Database" in "Data Guard Concepts and Administration"
If this is correct, this is part of "Step-by-Step Instructions for Creating a Physical Standby Database"
Assuming I right so far you are try to "Create an Online Redo Log on the Standby Database".
Can you confirm along with you OS, and Oracle version?
If you are trying to create redo on the standby after the fact you will need to make this change before you proceed.
STANDBY_FILE_MANAGEMENT=MANUALIf this is your issue check this link out:
http://kb.dbatoolz.com/tp/2692.avoid_ora-19527_set_dummy_log_file_name_convert.html
Best Regards
mseberg
Edited by: mseberg on Aug 12, 2011 5:35 AM -
How to create standby database by using duplicate
Dear all,
How to create standby database by using duplicate,is there some doc to read?Hi;
You can use
Step-By-Step Guide To Create Physical Standby On Normal File System For ASM Primary using RMAN [ID 838828.1]
Creating Physical Standby using RMAN Duplicate Without Shutting down The Primary [ID 789370.1]
Also use goole, there are many blog-site-dogs mention that topic. From googling:
Creating a Standby Database with Recovery Manager
http://docs.oracle.com/cd/B19306_01/backup.102/b14191/rcmdupdb.htm
http://www.pythian.com/news/248/recipes-for-creating-a-managed-standby-with-rman/
http://docs.oracle.com/cd/B19306_01/server.102/b14239/rcmbackp.htm
Regard
Helios -
Standby instance: Ora-01033 when changing passwort
Hello
I build up an standby instance which I would like to as^dd in Grid Control. As you know, the standby instances is mounted, but not opened.
This state leads to an error when trying to change dbsnmp's password:
oracle@sksta90271 [IARTSBY]:~> sqlplus sys as sysdba
SQL*Plus: Release 10.2.0.3.0 - Production on Mon May 26 09:13:36 2008
Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
Enter password:
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
SQL> alter user dbsnmp identified by test;
alter user dbsnmp identified by test
ERROR at line 1:
ORA-01109: database not open
SQL>
I need to set dbsnmp's password to add the instance in Grid control. How to do this?
Thanks CasiThe procedure above (setting pw for dbsnmp, switching logfiles and having them
applied to standby) was not succesful.Can you be more specific at what point did it fail??
On Primary Database:
====================
SQL> alter user scott identified by scott123;
User altered.
SQL> conn scott/scott123
Connected.
SQL> conn /as sysdba
Connected.
SQL> alter system switch logfile;
System altered.
On Physical Standby Database:
=============================
SQL> conn scott/scott123
ERROR:
ORA-01033: ORACLE initialization or shutdown in progress
Warning: You are no longer connected to ORACLE.
SQL> conn /as sysdba
Connected.
SQL>
SQL> alter database recover managed standby database cancel;
Database altered.
SQL> alter database open ;
Database altered.
SQL> conn scott/scott123
Connected. -
Tag instances - same instance being used across multiple tags
Hi
I am using BEA WebLogic Server 6.1 SP2
Problem:
Tag instances - same instance being used across multiple tags
The problem is that when I use the same jsp tag several times in a page,
The tag is being instantiated only one time, as a result the class
attributes
retain their values when activating the tags.
Example:
A code that demonstrates the problem (not sure that it is compiled)
public FooTag extends TagSupport {
private boolean isValid = true;
private String name;
public setName(String x){
name = x;
public int doStartTag() throws JspException
if (name.equals("x"){
isValid = false;
return SKIP_BODY;
public int doEndTag() {
if (isValid){
return EVAL_PAGE;
<table>
<tr>
<td><mpower:FOOTAG name="x"/>
<!-- isValid attribute is set to false -->
A FOOTAG implmented in FooTag </td>
</tr>
<tr>
<td><mpower:FOOTAG name="y"/>
<!-- isValid attribute still false (we expected it to be true) ! -->
A FOOTAG implmented in FooTag </td>
</tr>
</table>
P.S.
I am using the same tags library with Tomcat and iPlanet Application severs,
I did not get this problem there !!
What should I do to reinitialize the tag? We have the same problem on custom tag.
We have TabSet tag, which contains a set of Tab tag. In Weblogic 5.1, everything
works ok, however when we run it in weblogic 6.1, Tab object seems like share the
same instance, say if I have 2 Tabs in the TabSet, it ends up shows 2 same tabs with
the apperance of the last tab added to the tabset on the web browser. We do implement
release() method to call super.release() of TagSupport class.
Any help is very appreciated.
Thanks,
Kimberly
"Simon Spruzen" <[email protected]> wrote:
>
>This is allowed. You must implement public void release() on your tag, and
>WLS will
>call it before this method if WLS elects to reuse the tag instance. Your
>release
>method just reinitialises the tag as required.
>
>simon.
>
>"Eyal H" <[email protected]> wrote:
>>Hi
>>
>>I am using BEA WebLogic Server 6.1 SP2
>>
>>Problem:
>>
>>Tag instances - same instance being used across multiple tags
>>
>>The problem is that when I use the same jsp tag several times in a page,
>>
>>The tag is being instantiated only one time, as a result the class
>>
>>attributes
>>
>>retain their values when activating the tags.
>>
>>Example:
>>
>>A code that demonstrates the problem (not sure that it is compiled)
>>
>>public FooTag extends TagSupport {
>>
>>private boolean isValid = true;
>>
>>private String name;
>>
>>public setName(String x){
>>
>>name = x;
>>
>>}
>>
>>public int doStartTag() throws JspException
>>
>>if (name.equals("x"){
>>
>>isValid = false;
>>
>>}
>>
>>return SKIP_BODY;
>>
>>}
>>
>>public int doEndTag() {
>>
>>if (isValid){
>>
>>......
>>
>>}
>>
>>return EVAL_PAGE;
>>
>>}
>>
>>}
>>
>>
>>
>>
>>
>><table>
>>
>><tr>
>>
>><td><mpower:FOOTAG name="x"/>
>>
>><!-- isValid attribute is set to false -->
>>
>>A FOOTAG implmented in FooTag </td>
>>
>></tr>
>>
>><tr>
>>
>><td><mpower:FOOTAG name="y"/>
>>
>><!-- isValid attribute still false (we expected it to be true) ! -->
>>
>>A FOOTAG implmented in FooTag </td>
>>
>></tr>
>>
>></table>
>>
>>
>>
>>P.S.
>>
>>I am using the same tags library with Tomcat and iPlanet Application severs,
>>
>>I did not get this problem there !!
>>
>>
>>
>
-
Standby instance throwing error
when trying to startup standby instance , i am getting error :
SQL> startup pfile='/home/oracle/dummy/admin/pfile/initdummy.ora' nomount;
ORA-16025: parameter LOG_ARCHIVE_DEST_2 contains repeated or conflicting attributes
SQL>
db_name=org
compatible=10.2.0
sga_target=1000m
control_files='/home/oracle/dummy/oradata/control1.ctl'
background_dump_dest='/home/oracle/dummy/admin/bdump/'
core_dump_dest='/home/oracle/dummy/admin/cdump/'
user_dump_dest='/home/oracle/dummy/admin/udump/'
fal_server=org
fal_client=dummy
db_unique_name=dummy
standby_file_management=auto
remote_login_passwordfile='exclusive'
db_file_name_convert='/home/oracle/org/oradata/','/home/oracle/dummy/oradata/'
log_file_name_convert='/home/oracle/org/oradata/','/home/oracle/dummy/oradata/'
log_archive_dest_1='location=/home/oracle/dummy/oradata/arch/'
log_archive_dest_2='service=org'
~
~
~now i can startup my standby instance but getting some error.
SQL> startup pfile='/home/oracle/dummy/admin/pfile/initdummy.ora' nomount;
ORACLE instance started.
Total System Global Area 1048576000 bytes
Fixed Size 1223344 bytes
Variable Size 255853904 bytes
Database Buffers 784334848 bytes
Redo Buffers 7163904 bytes
SQL> alter database mount standby database;
Database altered.
SQL> alter database recover managed standby database disconnect from session;
Database altered.
SQL> select sequence#,applied from v$archived_log order by 1;
SEQUENCE# APP
9 NO
10 NO
11 NO
12 NO
13 NO
14 NO
15 NO
16 YES
17 YES
9 rows selected.
but stand by alert log showing following error :
bash-3.2$ tail -f alert_dummy.log
ORA-00312: online log 2 thread 1: '/home/oracle/dummy/oradata/log2.log'
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
Additional information: 3
Mon Jan 6 16:21:52 2014
Completed: alter database recover managed standby database disconnect from session
Mon Jan 6 16:21:52 2014
Clearing online redo logfile 2 complete
Media Recovery Log /home/oracle/dummy/oradata/arch/1_17_836141614.dbf
Media Recovery Waiting for thread 1 sequence 18
Mon Jan 6 16:22:28 2014
Errors in file /home/oracle/dummy/admin/bdump/dummy_arc1_8621.trc:
ORA-16009: remote archive log destination must be a STANDBY database
Mon Jan 6 16:22:28 2014
PING[ARC1]: Heartbeat failed to connect to standby 'org'. Error is 16009. -
Update Instance Variables using PAPI
I have a need to update Instance Variables for a bunch of instances. Can this be done using PAPI? I am writing a global function that can search the instances and update. How can I update these variables...thank you
Hi,
I think that the best way of changing instance variables using papi is by adding a global activity (with instance access) and pass the new variable values as arguments. Pay attention that you have to define those arguments in the activity.
Then, you can assign those values to the instance using PBL.
http://download.oracle.com/docs/cd/E13154_01/bpm/docs65/papi_javadocs/fuego/papi/ProcessServiceSession.html#activityExecute(fuego.papi.Activity,%20fuego.papi.InstanceInfo,%20fuego.papi.Arguments)
I do suggest avoiding sending interruptions to instances, because once the notification is sent (and the papi method returns successfully), the notifications will be processed in another transaction.
Hope this helps,
Ariel A. -
Hi,
I am using Apex 3.2 I recent saw ajax instance search using ajax done by karthic patel which is very nice URL link : http://apex.oracle.com/pls/apex/f?p=9904351712:8:0::NO:RP::
I did the same in apex 4 it's working fine for me now. My requirement is how to incorporate this apex 3.2 Please suggestion how to change the dynamic action which is there is apex4 not in apex3
Please Suggest
Thanks
SudhirIts a rather involved subject. So better do some reading on your own and try out something simpler before you jump into the deep end with IR.
Here are the original posts from one of the authors of JS API of APEX. (He still lives in Apex $x, $s ,etc.)
http://carlback.blogspot.in/2008/03/new-stuff-1.html
http://carlback.blogspot.in/2008/03/new-stuff-2-x01-and-friends.html
http://www.google.co.in/url?sa=t&rct=j&q=&esrc=s&source=web&cd=33&ved=0CFUQFjACOB4&url=http%3A%2F%2Fwphilltech.com%2Fwp-content%2Fuploads%2F2011%2F06%2FSt.Hilaire-AJAX-in-APEX-ODTUG-June-2011.pptx&ei=mrSrT8z3Eaqg2gXOg5mmAg&usg=AFQjCNGMnzT_nvDaz6E3P7L7PS6P-NNxJA
Regards, -
IPhone 6 battery down so quickly on standby or while using it
i bought iPhone 6 from uae last month and it's battery down so quickly on standby or while using it please help me to sort out this problem
thanksClosing apps can actually increase battery drain. See: http://www.overthought.org/blog/2014/the-ultimate-guide-to-solving-ios-battery-d rain. You can see which apps are using power by going to Settings/General/ Usage - Battery Usage.
Maybe you are looking for
-
Add number of week ...
.. to the small calendar that can be opened in every date field would be just a small change. Business worlds - at least ours - is always talking in week numbers. Thanks Franz
-
Hi All, I am working on ALV report.I need one logic. When Ever I executed report, The output should looks 'Selected Total data' like Yellow color. How can i do that. The report out should show sthe ' All the data is selected'. Just like Ctrl+A. regar
-
Best way to import CC2014 into CC?
So the apparent known playback problems with the CC2014 version of Premiere has essentially rendered it a complete waste of software, so what's the easiest way to get my projects back into CC? I know I can't just open the file in an earlier version,
-
ITunes 11 won't play downloaded rented movie from iTunes Store
Last night I rented a HD movie from the iTunes Store. I downloaded it to iTunes 11 on my 17" MacBook Pro running OS X 10.8.2 and Quicktime 10.2. First off the movie has a blank icon but when I click on it it does show the details of the movie. Howeve
-
sorry if this is on the wrong place but i have a cwk due in next week, and realised my university does not have a mac license for SPSS would i be able to purchase parallels so that I can run SPSS on my mac or is there other ways?? also is it XP or vi