Static Listener
Oracle RDBMS 11.2.0.2 RAC, Host RHEL 5.6
While creting physical standby using Duplicate from Active databse, it is necessary to use static listener configuration, and it is RAC so need to have static listeners configured for SCAn also
1)Why do we need to use the static listener?
2)I have a 3 node primary , 3 node standby, do i need to add static listener on all the 3 nodes on primary and standby? If so, why do i need to add on primary nodes, and on all standby nodes.
Because standby is built by connecting to only one primary instance and one auxiliary instance,so it is ok to add static listeners only on just one auxiliary node righr? or am i missing something?
Thanks
Hello;
It occurs to me for RAC this has to be a requirement cluster-network nodes.
I'm having trouble finding the exact document but "Update Network Configuration Files" in the White Paper "Rapid Oracle RAC Standby Deployment: Oracle Database 11g Release 2"
States :
At this point there are two similarly configured but different Oracle RAC databases, each in the primary role. Before creating the standby database, update the network configuration files on all systems to ensure proper client access to both databases and to create the static service entries used by the Oracle Data Guard observer and broker command line utility, DGMGRL.The problem is I cannot find a quote where "Broker" is not in the picture.
There is also a "Listener.ora Files" section to this document which supports this.
A search of "static" that document may provide your answer.
http://www.oracle.com/technetwork/database/features/availability/dataguard11g-bestpractices-161724.html
Best Regards
mseberg
Edited by: mseberg on Aug 30, 2012 2:32 PM
Similar Messages
-
Services don't register with static listener
HI, no matter what configurations I do the static listener shows no services. Can you help me? Here is my listener.ora:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME=ELLISON9)
(ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1)
(SID_NAME=ELLISON9)
LISTENER11G =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = ora1)(PORT = 1522))
ADR_BASE_LISTENER = /u01/app/oracle
My tnsnames.ora:
ELLISON9 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = ora1)(PORT = 1522))
(CONNECT_DATA =
(SERVICE_NAME = ELLISON9)
And my parameters in the database are:
service_names=ELLISON9
local_listener=' ';
STATUS of the LISTENER
Alias LISTENER11G
Version TNSLSNR for Linux: Version 11.2.0.3.0 - Production
Start Date 11-JUN-2013 10:07:09
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/product/11.2.0/dbhome_1/log/diag/tnslsnr/ora1/listener11g/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ora1)(PORT=1522)))
The listener supports no services
The command completed successfully
[oracle@ora1 admin]$ sqlplus sys/oracle@ora1:1522/ELLISON9 as sysdba
ERROR:
ORA-12514: TNS:listener does not currently know of service requested in connect
descriptorXerXi wrote:
Isn't the local_listener parameter creating dynamic listener?
I already had a listener named LISTENER from another home and not to confuse both I decided to name it something else. But come to think of it, it wouldn't have been a problem to have 2 listeners with same names but different homes, correct?
No, no, and no.
No. The local_listener parameter doesn't create anything. It tells the database where to find the listener so that it can register itself with the listener. And it is only needed if the listener is not using the default port of 1521.
see: [url http://edstevensdba.wordpress.com/2011/07/30/exploring-the-local_listener-parameter/] exploring-the-local_listener-parameter [/url]
No, there is no such this as a 'dynamic listener'. There is dynamic registration with a listener. But there is no 'dynamic listener'. A listener is a listener is a listener.
I don't know if you can have two listeners with the same name running from two different homes or not. I've never been so insane as to try it. If it *is* possible, it would certainly be the most difficult to maintain multi-listener setup I can imagine.
One more time. Repeat after me. "One single listener with the default name of LISTENER and using the default port of 1521 was designed to support multiple databases of multiple versions running from multiple homes. Anything else is needless complexity."
Please tell us again what problem you thought you were solving by having multiple listeners ...
Message was edited by: EdStevens -
Data Guard Static Listener DGB vs DGMGRL
All
11gR2 here.
When setting up the static listener definition for a database, I see various bits of documentation saying you should have a <SID>_DGB entry and/or a <SID>_DGMGRL entry.
Can someone please explain the difference between _DGB and _DGMGRL and whether both are needed?Hi,
Thanks for your question - I remember had a similar issue while setting up the DG with Broker.
Name is important (I remember a prerequisite) specially when you are using Broker. Please read this note for clarification.
11.2 - DGMGRL>switchover to <standby> Fails with ORA-12514 (Doc ID 1582927.1)
12.1 - DGMGRL>switchover to <standby> Fails with ORA-12514 (Doc ID 1582927.1)
HTH,
Pradeep -
Static listener registration 11gr2 RAC Primary and standalone Standby
Hi Guys,
I have to build up a single instance Physical Standby(Dataguard) for a primary RAC (11.2.0.1).The concern or rather confusion we have three SCAN LISTENERS across 2 node cluster,in order for me to have static registration for duplication of database for standby i need to have it put in the listener.ora .
Do i have to create the static listeners for default listener as well as the scan listeners?My understanding is No.
The Oracle instance would automatically register the local listener to SCAN listeners, so I believe just the default needs this.
This document has Scan listener example and none of them use a _DGMGRL
http://www.oracle.com/technetwork/database/features/availability/maa-wp-11g-rac-standby-133152.pdf
Best Regards
mseberg
This document seems to support my statement :
11.2 Scan and Node TNS Listener Setup Examples [ID 1070607.1]
Edited by: mseberg on Aug 5, 2011 2:02 PM
Also of interest :
11gR2 Grid Infrastructure Single Client Access Name (SCAN) Explained [ID 887522.1] -
I am trying to do a static listener registration but getting error when trying to connect-
export ORACLE_SID= tests
SQL> conn sys/advantage
ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux-x86_64 Error: 2: No such file or directory
Process ID: 0
Session ID: 0 Serial number: 0
-----------This is the status of Listener--------------------
Alias
LISTENER
Version
TNSLSNR for Linux: Version 11.2.0.3.0 - Production
Start Date
11-MAR-2015 08:42:30
Uptime
32 days 15 hr. 27 min. 18 sec
Trace Level
off
Security
ON: Local OS Authentication
SNMP
OFF
Listener Parameter File /db/oracle11/app/oracle11/product/11.2.0/dbhome_1/network/admin/listener.ora
Listener Log File
/db/oracle11/app/oracle11/diag/tnslsnr/lindbv13/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=lindbv13.ams.com)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
Services Summary...
Service "adbv13O1" has 1 instance(s).
Instance "adbv13O1", status READY, has 1 handler(s) for this service...
Service "adbv13O1XDB" has 1 instance(s).
Instance "adbv13O1", status READY, has 1 handler(s) for this service...
Service "tests" has 1 instance(s).
Instance "tests", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
---Content of Listener.ora file---------------
# listener.ora Network Configuration File: /db/oracle11/app/oracle11/product/11.2.0/dbhome_1/network/admin/listener.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = lindbv13.ams.com)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = tests)
(ORACLE_HOME = /db/oracle11/app/oracle11/product/11.2.0/dbhome_1)
(SID_NAME = tests)
ADR_BASE_LISTENER = /db/oracle11/app/oracle11can anyone please help me on this
-
ERROR:ORA-12500: TNS:listener failed to start a dedicated server process
I'm getting this error when connecting to an 8i database. The setup was like this: I had an Oracle 8i database on this server and i installed Grid Control on this server which also created a listener.
From Metalink, I saw the following note: A version 10 listener is required for an Oracle Database 10g database. Previous versions of the listener are not supported for use with an Oracle Database 10g database. However, it is possible to use a version 10 listener with previous versions of the Oracle database.
So I deleted the 8i listener and set up the 10g listener to service the 8i database as well. However, every time I connect to this 8i database, I see the listener refusing the connection. Anything I can do here?
Thanks.I probably have posted this earlier,
please configure the listener static.
In other words, ensure that 8i registers with 8i listener and 10g registers with 10g listener.
c:\blah\blah\8i\.\lsnrctl start listener8i
c:\blah\blah\10g\.\lsnrctl start listener10g
Read about how to Configure static listener? -
Stuck in the listener entry step in DUPLICATE OF RAC databases
I am trying to duplicate with RMAN a new RAC db from production RAC db.
I am done with the following steps:
1). backup prod database with rman
2). copy init file over and modity entries not to reflect rac paramters...
3). create a password file for new db
now I got stuck on step 4) Create a static listener entry for your new database and reload the listener as appropriate.
This step is necessary, because an RMAN duplicate uses an auxiliary database that is in no mount and therefore will not automatically register itself with the listener(s) as specified by local_listener, remote_listener and or the default, 1521.
For example:
(SID_DESC =
(GLOBAL_DBNAME = rman.colestock.test)
(ORACLE_HOME = /u03/app/oracle/product/db/10.2)
(SID_NAME = rman2)
The above is instruciton I got.
However I got very confused here:
First, on the RAC server, I added sid entry at the bottom of listener.ora. and the tnsnames entry looks like this:
abc =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = xxxxxx76)(PORT = 1528))
(ADDRESS = (PROTOCOL = TCP)(HOST =xxxxxx 77)(PORT = 1528))
(CONNECT_DATA =
(SERVICE_NAME = abc_service)
How do I add a sid entry in the tnsnames.ora file? Since I supposed to create a single db first, not rac, do I have to put service_name or sid name there?
ANother confusion is how to reload the listener? Since this is a RAC server, two nodes has two listenrs: abc_listener1, abc_listener2. Do I have to stop and start listner by svrctl stop the dynamic listener?
Please if you can, provide detailed steps here how to create static listener in tnsnames entry and listener entry on a RAC environment and then reload the listener.
I have to finish up the duplication this weekend. So any help will be greatly appreciated.
Thank you in advance.user569151 wrote:
I am trying to duplicate with RMAN a new RAC db from production RAC db.
I am done with the following steps:
1). backup prod database with rman
2). copy init file over and modity entries not to reflect rac paramters...
3). create a password file for new db
now I got stuck on step 4) Create a static listener entry for your new database and reload the listener as appropriate.
This step is necessary, because an RMAN duplicate uses an auxiliary database that is in no mount and therefore will not automatically register itself with the listener(s) as specified by local_listener, remote_listener and or the default, 1521.
For example:
(SID_DESC =
(GLOBAL_DBNAME = rman.colestock.test)
(ORACLE_HOME = /u03/app/oracle/product/db/10.2)
(SID_NAME = rman2)
The above is instruciton I got.
However I got very confused here:
First, on the RAC server, I added sid entry at the bottom of listener.ora. and the tnsnames entry looks like this:
abc =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = xxxxxx76)(PORT = 1528))
(ADDRESS = (PROTOCOL = TCP)(HOST =xxxxxx 77)(PORT = 1528))
(CONNECT_DATA =
(SERVICE_NAME = abc_service)
How do I add a sid entry in the tnsnames.ora file? Since I supposed to create a single db first, not rac, do I have to put service_name or sid name there?
ANother confusion is how to reload the listener? Since this is a RAC server, two nodes has two listenrs: abc_listener1, abc_listener2. Do I have to stop and start listner by svrctl stop the dynamic listener?
Please if you can, provide detailed steps here how to create static listener in tnsnames entry and tnsnames.ora does not contain any information about listener.
listener entry on a RAC environment and then reload the listener.http://www.lmgtfy.com/?q=oracle+local_listener -
Differences in creating a Standby database in RAC
Hi All
SO...: Solaris 11 SPARC 64
DB...: 11.2.0.3.6 (64 bits)
My experience regarding creating Physical Standby Databases is restricted in only single instances to single instances. I am reading the book "Oracle Database 11g Release 2 High Availability", but, in parallel, i would like to hear from the experienced DBAs here some opinions and recomendations in how to implement a RAC to RAC solution. Below are my doubts:
1) In single instance, using RMAN Backup to create the Physical Standby, i have to create manually a static Listener Entry. But in a RAC env, the listener is a resource, so, i have to create that resource in the Clusterware manually, or there is other approach?
2) I have to create a pfile and start the instance in NOMOUNT mode, but in RAC, i have to start all the nodes in NOMOUNT, or just one node is sufficient?
3) The archives will be replicated from FRA to FRA. Is this the best approach?
My main concern is with the Listener and SCAN questions... If you have any considerations, they will be most welcome.
Thanks in advance.Following link might be helpful
http://www.oracledba.org/11gR2/dr/11gR2_dataguard_RAC_to_RAC.html -
Swing/Threads, changing the GUI
Hey all, I have a question related to the java swing class, and manipulating a GUI which is something that I have never done before. Basically I have a threaded Listener class which returns a status boolean. Related to that status, I have a Jlabel which is supposed to display green if the status is true, and red if the status is false, however it is not working correctly. Below is my code, and I would appreciate some help if anyone has a fix, or better way to do this... Thanks in advance
//Listener Class
public class Listener extends Thread{
private boolean isGood = false;
public Listener(//...) {
public void run()
// does stuff here that sets the isGood var
public bool getIsGood()
return this.isGood;
//GUI
public class Visualizer {
private static Listener listener;
public Visualizer(Listener listener){
this.listener = listener;
javax.swing.SwingUtilities.invokeLater(new Runnable() {
public void run() {
createAndShowGUI();
private static JFrame frame;
private static JLabel status;
public static void createAndShowGUI() {
//Create and set up the window.
frame = new JFrame("Window");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
status = new JLabel("Listener... ");
status.setOpaque(true);
status.setBackground(Color.RED);
//Display the window.
frame.pack();
frame.setVisible(true);
frame.setSize(new Dimension(204, 115));
frame.setContentPane(status);
listener.start();
while(true){
boolean isGood = listener.getIsGood();
if(isGood){
status.setBackground(Color.GREEN);
else{
status.setBackground(Color.RED);
try{
Thread.sleep(1000);
}catch(Exception E){
E.printStackTrace();
I purposely left out some of the code because I wanted to make it simpler to follow. Essentially this is what is going on, and hopefully someone can point out why its not working and how to fix it. Thank you for reading this.thanks for the advice Petes, I was looking for the code tag before but didnt see it. I have created an SSCCE, and I apologize for not making it earlier. Here is the code. The threads seem to be getting stuck, and the label doesnt alternate between red and green as it should. Let me know if you need anything else:
package simplified;
public class Main{
public static void main(String[] args) {
Listener theListener = new Listener();
theListener.start();
Visualizer theView = new Visualizer(theListener);
//Listener Class
public class Listener extends Thread{
private boolean isGood = false;
public Listener() {
public void run(){
if(this.isGood == true){
this.isGood = false;
else{
this.isGood = true;
try{
this.sleep(1000);
}catch(Exception e){
e.printStackTrace();
public boolean getIsGood(){
return this.isGood;
import java.awt.*;
import javax.swing.*;
import java.awt.Dimension;
public class Visualizer {
private static Listener listener;
public Visualizer(Listener listener){
this.listener = listener;
javax.swing.SwingUtilities.invokeLater(new Runnable() {
public void run() {
createAndShowGUI();
private static JFrame frame;
private static JLabel status;
public static void createAndShowGUI() {
//Create and set up the window.
frame = new JFrame("Window");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
status = new JLabel("Listener... ");
status.setOpaque(true);
status.setBackground(Color.RED);
//Display the window.
frame.pack();
frame.setVisible(true);
frame.setSize(new Dimension(204, 115));
frame.setContentPane(status);
while(true){
boolean isGood = listener.getIsGood();
if(isGood){
status.setBackground(Color.GREEN);
else{
status.setBackground(Color.RED);
try{
Thread.sleep(1000);
}catch(Exception E){
E.printStackTrace();
} -
DEAR ALL,
I've shutdown the database from SQLPLUS.How to startup the database from sql plus.I tried to connect using sys and i recieve Listener doesn't know currently of service....
ThanksI've shutdown the database from SQLPLUS.How to
startup the database from sql plus.I tried to connect
using sys and i recieve Listener doesn't know
currently of service....Your errors seems that you were using sqlplus in client not in server to shudown
database and try to startup database.
If so, you need to config your listener.ora with static listener as well as dynamic listener.
HTH -
Oracle11g R2 Active Data guard using ASM Problem?
I have configured oracle11g r2 RAC on 2 notes using ASM Grid ( OS unix).
RAC is up and running.
Now I am configuring Active data Guard.
Under grid user instance +ASM and listener is running.
Under oracle user static listener is running.
All disk is mounted.
Oracle RAC and Data Guard directory and structure I have keeped same.
Now my problem is below:
$ ./rman target sys/HPinvent123nbl@dcpdb AUXILIARY sys/HPinvent123nbl@drpdb
Recovery Manager: Release 11.2.0.1.0 - Production on Wed Jan 16 16:28:32 2013
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
connected to target database: DCPDB (DBID=316773134)
connected to auxiliary database: DRPDB (not mounted)
RMAN> duplicate target database for standby from active database;
Starting Duplicate Db at 16-JAN-13
using target database control file instead of recovery catalog
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=5644 device type=DISK
contents of Memory Script:
backup as copy reuse
targetfile '/u02/app/oracle/product/11.2.0/dbhome_1/dbs/orapwdcpdb1' auxiliary format
'/u02/app/oracle/product/11.2.0/dbhome_1/dbs/orapwdrpdb' ;
executing Memory Script
Starting backup at 16-JAN-13
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=1897 instance=dcpdb1 device type=DISK
Finished backup at 16-JAN-13
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 01/16/2013 16:28:48
RMAN-06136: ORACLE error from auxiliary database: ORA-00200: control file could not be created
ORA-00202: control file: '+data'
ORA-17502: ksfdcre:4 Failed to create file +data
ORA-15001: diskgroup "DATA" does not exist or is not mounted
ORA-15055: unable to connect to ASM instance
ORA-01031: insufficient privileges
RMAN>
Please help.\
Thanks
Solaimanroot@drpdb1 []# id oracle
uid=108(oracle) gid=700(oinstall) groups=701(dba)
root@drpdb1 []# id grid
uid=109(grid) gid=700(oinstall) groups=701(dba),702(asmdba)
Edited by: 876149 on Jan 16, 2013 3:19 AM -
Creating a billing system in JDEV
Hello everyone me again
I have a DB with 2 tables Prices with attributes Article and Price and table Bill which has just Price and transient SUM attribute. What I want is to have a few output text links on the page like an interactive menu, so that when the user clicks on one of them, it gives the price for that item he has clicked on and it appears in the bill which is on top of the page. So every time he adds an item the bill gets bigger for the cost of that item, the bill shows just the total. Is there any way to do this the way I imagine, using the output text components?All kidding aside, I've created a tree out of a static list VO which has 2 attributes a name and price attribute, both transient, since there is no database. I then created another VO but this one is populate through java code called Bill VO and it automatically generated the impl java class. This VO also has 2 attributes Name and Price (transient as well). Now what I need is like a way that when I click on a node in the tree it takes the price value and shows it in the Bill VO and then just a subtotal of the values. Is it easier with a static list, I figure it is... But maybe I need a database
Keep in mind that this is just for show, it is not gonna be used, it just has to look like it works.
Thanks for your help
P.S
Timo I looked at the FOD demo and I can't make heads or tails out of it. I can see the shopping cart and the way it is connected to like 2 beans (at least) and like a couple of views which then have another 2 java classses (impl) there just has to be an easier way to do this, because I need it by monday
UPDATE
I saw the static listener property in the tree and created a backing bean method for it
public class billBacking {
public billBacking() {
public void selectPrice(SelectionEvent selectionEvent) {
// Add event code here...
}I have no idea what to put in here or even if I am on the right track...
Edited by: Dino2dy on Jan 6, 2011 5:01 AM -
Data Guard - insufficient privileges
Spec:
Windows 2008
Oracle 11.1.0.2
I continue to get an error when running my below RMAN script to create data guard for a very small database.
The error is stating that I don't have privilege to write to the remote server - here is the script and error included below:
RMAN> run {
2> allocate channel prmy3 type disk;
3> allocate channel prmy4 type disk;
4> allocate auxiliary channel stby1 type disk;
5> duplicate target database for standby from active database
6> spfile
7> parameter_value_convert 'test1', 'test1'
8> set 'db_unique_name'='test1_coop'
9> set control_files='D:\oradata\test1\control01.ctl'
10> set db_create_file_dest='D:\oradata\test1'
11> set audit_file_dest='C:\app\diag\rdbms\test1'
12> set diagnostic_dest='C:\app\diag\rdbms\test1'
13> set db_create_online_log_dest_1='D:\oradata\test1'
14> set db_recovery_file_dest='D:\Flash_Recovery_Area'
15> set db_recovery_file_dest_size='5G'
16> nofilenamecheck;
17> }
using target database control file instead of recovery catalog
allocated channel: prmy3
channel prmy3: SID=149 device type=DISK
allocated channel: prmy4
channel prmy4: SID=148 device type=DISK
allocated channel: stby1
channel stby1: SID=94 device type=DISK
Starting Duplicate Db at 23-FEB-12
contents of Memory Script:
backup as copy reuse
file 'C:\app\product\11.1.0\db_1\DATABASE\PWDtest1.ORA' auxiliary format
'C:\app\product\11.1.0\db_1\DATABASE\PWDtest1.ORA' file
'C:\APP\PRODUCT\11.1.0\DB_1\DATABASE\SPFILETEST1.ORA' auxiliary format
'C:\APP\PRODUCT\11.1.0\DB_1\DATABASE\SPFILETEST1.ORA' ;
sql clone "alter system set spfile= ''C:\APP\PRODUCT\11.1.0\DB_1\DATABASE\SPF
ILETEST1.ORA''";
executing Memory Script
Starting backup at 23-FEB-12
RMAN-03009: failure of backup command on prmy3 channel at 02/23/2012 18:43:29
ORA-17629: Cannot connect to the remote database server
ORA-17627: ORA-01031: insufficient privileges
ORA-17629: Cannot connect to the remote database server
continuing other job steps, job failed will not be re-run
released channel: prmy3
released channel: prmy4
released channel: stby1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 02/23/2012 18:43:29
RMAN-03015: error occurred in stored script Memory Script
RMAN-03009: failure of backup command on prmy4 channel at 02/23/2012 18:43:29
ORA-17629: Cannot connect to the remote database server
ORA-17627: ORA-01031: insufficient privileges
ORA-17629: Cannot connect to the remote database serverThe Parameter should be in the INIT file
remote_login_passwordfile='EXCLUSIVE'
you mean copy the password from the primary database? Yes! And rename
I have an example - give me a second
If my Primary password file is 'orapwRECOVER2'
I would copy that to the Standby server and rename to orapwSTANDBY ( STANDBY would be your database name )
My path for this is
/u01/app/oracle/product/11.2.0.2/dbs
It will be different on Windows.
Are you doing an Active Duplicate?
mseberg
Edited by: mseberg on Feb 24, 2012 11:53 AM
Overview RMAN DUPLICATE FOR STANDBY
1. Standby database need small INIT file for Duplicate in most cases.
2. You can either create a backup on the Primary and move it, or do an Active Duplication
3. The Tnsnames.ora should hold entries for both the Primary and Standby database on BOTH servers.
4. Having a Static listener entry for the Standby ( which does not exist yet is import ) restart the listener
Tnsnames.ora Example
Tnsnames.ora
RECOVER2=
(DESCRIPTION=
(ADDRESS=
(PROTOCOL=TCP)
(HOST=hostname)
(PORT=1521)
(CONNECT_DATA=
(SERVICE_NAME=RECOVER2.hostname)
(UR = A)
RECLONE=
(DESCRIPTION=
(ADDRESS=
(PROTOCOL=TCP)
(HOST=hostname)
(PORT=1521)
(CONNECT_DATA=
(SERVICE_NAME=RECLONE.hostname)
(UR = A)
Listener.ora Example
BEFORE
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /u01/app/oracle/product/11.2.0.2)
(PROGRAM = extproc)
AFTER
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /u01/app/oracle/product/11.2.0.2)
(PROGRAM = extproc)
(SID_DESC =
(global_dbname = RECLONE.hostname)
(ORACLE_HOME = /u01/app/oracle/product/11.2.0.2)
(sid_name = RECLONE)
)So the extra entry for the clone database is needed because otherwise RMAN has nothing to connect to.
Prevent Timeouts
Add these to both servers
To listener.ora
INBOUND_CONNECT_TIMEOUT_ = 120
To sqlnet.ora
SQLNET.INBOUND_CONNECT_TIMEOUT = 120
Then stop and start the listener.So on the Primary you could make a backup like this :
RUN {
allocate channel d1 type disk;
backup format 'c:\backups\PRIMARY\df_t%t_s%s_p%p' database;
sql 'alter system archive log current';
backup format 'c:\backups\PRIMARY\al_t%t_s%s_p%p' archivelog all;
backup current controlfile for standby format 'c:\backups\PRIMARY\sb_t%t_s%s_p%p';
release channel d1;
}And then after moving it to the Standby Server duplicate like this
run {
allocate channel C1 device type disk;
allocate auxiliary channel C2 device type disk;
duplicate target database for standby nofilenamecheck;
}Edited by: mseberg on Feb 24, 2012 12:24 PM -
DG Broker - Error is ORA-12521 11gR2 RAC
Hi ,
I have setup DG broker for 11gR2 RAC - Primary and DR (standby) - Grid single node ( non- Rac) . It is R12 apps.
I am getting connection errors from standby to production . Although the there is no problem in arciive log shipping and DG broker setup .
But I m getting constant Error ORA-16664 ( On Primary ) and on standby - Failed to connect to remote database prod1. Error is ORA-12521
Pls advise what is missing . I have recreated password file ,but no luck.
Primary : drcprod11.log
Site prod1dg returned ORA-16664.
Site prod1dg returned ORA-16664.
Data Guard Broker Status Summary:
Type Name Severity Status
Configuration prod1_CONFIG Warning ORA-16607
Primary Database prod1 Success ORA-00000
Physical Standby Database prod1dg Error ORA-16664
Standby - drcprod1.log
Failed to send message to site prod1. Error code is ORA-12521.
02/18/2013 00:01:34
Failed to connect to remote database prod1. Error is ORA-12521
Failed to send message to site pcap1. Error code is ORA-12521.
02/18/2013 00:04:04
Failed to connect to remote database prod1. Error is ORA-12521
Failed to send message to site pcap1. Error code is ORA-12521.
02/18/2013 00:06:19
Failed to connect to remote database prod1. Error is ORA-12521
Failed to send message to site pcap1. Error code is ORA-12521.
DGMGRL> show configuration
Configuration - prod1_CONFIG
Protection Mode: MaxPerformance
Databases:
prod1 - Primary database
prod1dg - Physical standby database
Fast-Start Failover: DISABLED
Configuration Status:
SUCCESS
DGMGRL> show instance prod1 verbose on database prod1
Instance "prod1" was not found
DGMGRL> show instance prod11 verbose on database prod1
Error: ORA-16606: unable to find property "verbose"
DGMGRL> show instance verbose prod11 on database prod1
Instance 'prod11' of database 'prod1'
Host Name: u01prod1
PFILE:
Properties:
SidName = 'prod11'
StaticConnectIdentifier = 'prod11_local'
StandbyArchiveLocation = '/u01/arch/prod1'
AlternateLocation = ''
LogArchiveTrace = '0'
LogArchiveFormat = 'prod1_%t_%s_%r.arch'
TopWaitEvents = '(monitor)'
Instance Status:
SUCCESS
DGMGRL> show instance verbose prod12 on database prod1
Instance 'prod12' of database 'prod1'
Host Name: u01prod2
PFILE:
Properties:
SidName = 'prod12'
StaticConnectIdentifier = 'prod12_local'
StandbyArchiveLocation = '/u01/arch/prod1'
AlternateLocation = ''
LogArchiveTrace = '0'
LogArchiveFormat = 'prod1_%t_%s_%r.arch'
TopWaitEvents = '(monitor)'
Instance Status:
SUCCESS
DGMGRL> show database verbose prod1dg
Database - prod1dg
Role: PHYSICAL STANDBY
Intended State: APPLY-ON
Transport Lag: 0 seconds
Apply Lag: 0 seconds
Real Time Query: OFF
Instance(s):
prod1
Properties:
DGConnectIdentifier = 'prod1dg'
ObserverConnectIdentifier = ''
LogXptMode = 'ASYNC'
DelayMins = '0'
Binding = 'optional'
MaxFailure = '0'
MaxConnections = '1'
ReopenSecs = '300'
NetTimeout = '30'
RedoCompression = 'DISABLE'
LogShipping = 'ON'
PreferredApplyInstance = ''
ApplyInstanceTimeout = '0'
ApplyParallel = 'AUTO'
StandbyFileManagement = 'AUTO'
ArchiveLagTarget = '0'
LogArchiveMaxProcesses = '8'
LogArchiveMinSucceedDest = '1'
DbFileNameConvert = ''
LogFileNameConvert = ''
FastStartFailoverTarget = ''
InconsistentProperties = '(monitor)'
InconsistentLogXptProps = '(monitor)'
SendQEntries = '(monitor)'
LogXptStatus = '(monitor)'
RecvQEntries = '(monitor)'
SidName = 'prod1'
StaticConnectIdentifier = '(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=pres1.com)(PORT=1533))(CONNECT_DATA=(SERVICE_NAME=prod1dg_DGMGRL)(INSTANCE_NAME=prod1)(SERVER=DEDICATED)))'
StandbyArchiveLocation = '/u01prod/arch/prod1'
AlternateLocation = ''
LogArchiveTrace = '0'
LogArchiveFormat = 'prod1_%t_%s_%r.arch'
TopWaitEvents = '(monitor)'
Database Status:
DGM-17016: failed to retrieve status for database "prod1dg"
ORA-16664: unable to receive the result from a databaseI have setup DG broker for 11gR2 RAC - Primary and DR (standby) - Grid single node ( non- Rac) . It is R12 apps.
I am getting connection errors from standby to production . Although the there is no problem in arciive log shipping and DG broker setup .
But I m getting constant Error ORA-16664 ( On Primary ) and on standby - Failed to connect to remote database prod1. Error is ORA-12521
Failed to connect to remote database prod1. Error is ORA-12521
Failed to send message to site pcap1. Error code is ORA-12521.It is not an issue with either password file, It having issues to establish connections with "prod1" ,
Have you configured static listener entry?
And What local_listener value you have set ?
From all instances
$lsnrctl status
12521, 00000, "TNS:listener does not currently know of instance requested in connect descriptor"
// *Cause: The listener received a request to establish a connection to a
// database or other service. The connect descriptor received by the listener
// specified in addition to the service name an instance name for an instance
// (usually a database instance) that either has not yet dynamically registered
// with the listener or has not been statically configured for the listener.
// This may be a temporary condition such as after the listener has started,
// but before the database instance has registered with the listener.
// *Action:
// - Wait a moment and try to connect a second time.
// - Check which instances are currently known by the listener by executing:
// lsnrctl services <listener name>
// - Check that the INSTANCE_NAME parameter in the connect descriptor specifies
// an instance name known by the listener.
// - Check for an event in the listener.log file. -
Cloning Oracle Database Machine
Hi
I have a Oracle database 11g installed on VMWare workstation. I have done clone of this database machine.
Now I want to use the database from the cloned machine. To use this I have assigned new IP address and new machine name to this machine. What all do I need to change other than setting IP address and hostname?
ThanksMight depend upon how your VMware gets its IP address.
For VMware I would consider both a hosts file entry and a static listener. For the host if you always get the same IP consider adding it under localhost.localdomain localhost :
Example
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhostListener example :
SID_LIST_listener=
(SID_LIST=
(SID_DESC=
(GLOBAL_DBNAME=sales.us.acme.com)
(SID_NAME=sales)
(ORACLE_HOME=/u01/app/oracle/10g)))Generally if I shutdown the VMware server and copy the files and then pick "Moved it" when I run it, it works with just minor changes to Net80.
For additional information see :
http://www.oracle-base.com/articles/10g/OracleDB10gR2RACInstallationOnCentos4UsingVMware.php
Look for the section "Clone the Virtual Machine" The Probe for new MAC is key!
Best Regards
mseberg
Edited by: mseberg on Nov 18, 2011 8:07 AM
Later
Sometimes if I have issues I add a new network card to the VM and remove the old one. This has helped "force" a new IP address sometimes.
Maybe you are looking for
-
Hi All, We are using Business Objects XI R2 SP2 and were using Vintella End to End SSO SSO with SQL Server 2005 Database. Yesterday we created a new service account for SQL Server and ran the SetSpn with this account. We are able to SSO to Infoview
-
i have been looking all over for this setting, really wanna make hip hop beats with this ultrabeat setting but i cant find it, it says i have intalled all the drum kits but i didnt install a few other packages i thnk have nothing to do with ultrabeat
-
Oxd_db & db_diagram? db project project made in windows in mac
hi, I have a mac & windows machine on which respective Oracle Jdeveloper 11g have been installed. We have made db model diagram. When we open the same project in mac using jpr file then we are able to open the project but the class diagram file is no
-
Hi guys, i loaded this query (i modified from the original) into the dataprovider of the WAD (copied from the original template with the original query) and when executing it in the browser i am getting this error system error in program CL_RSR_WWW_I
-
2006 4x2.66 Mac Pro won't boot from any media
Hello, This Mac Pro will get to the boot options screen, where I'm able to see all attached disks. But once one is selected, it goes to the typical Apple logo with spinning icon, then flashes blue for a second before going to a grey screen with SBBOD