Script to remove applied connects on the physics of the standby database
HelloOur prod DB is configured with Dataguard physical standby Database (10.2.0.4) on Linux.
I'm trying to write a script to delete the archives that are applied on a standby database to DR (standby server).
Any help will be appreciated.
Kind regards
Viswa08
viswa08 wrote:
Hi pavan,.I received the script of OTN itself below is the script and I can't understand how the sequence is deleted.
******************************************************************************************
###################
#! / usr/bin/kshscript = ' basename $0'.
SID = RW2P
dir = / u04/oracle / $sid/archProf = $HOME /'echo ${sid} | AWK ' {print tolower($0)} ".profile
tmpf=$home/.$script.tmpLogCount = 100
function GetAppliedLogfileSequenceNumber
{
sqlplus-s/nolog$tmpf
Connect / as sysdba
Go head
set pages 0
Select max(sequence#) from v$ archived_log in case of application = 'YES ';
output
EXPRESSIONS OF FOLKLORE
return
}
If [f $prof]
then
. $prof
on the other
print ' $script: $prof no such file or directory ".
Output 1
FI
If [d $dir]
If there is the $dir
then
CD $dir
change directory to $dir
GetAppliedLogfileSequenceNumber
call the GetAppliedLogfileSequenceNumber function
So [s $tmpf]
If there is no sequence max
then
Count ='cat $tmpf | AWK '{print $1} ' | SED 1 d; »
Set as maxsequence
If [${#count} - No 0]
If the counter is not zero
then
Let count = $count - $logcount
Assign County County-100 the script does not remove the last 100 archivelogs applied.
If ((County<=>=>
If count is less than or equal to zero
then
print ' $script: journal count is set to zero (or not) no or newspapers to remove.
Exit 0
FI
on the other
Exit 0
FI
on the other
print ' $script: no archive or newspapers to remove.
Exit 0
FI
While [http:// f ${sid} _arch_1_$ {number} .arc]
If $ORACLE_SID_arch_1_count.arc is
do
RM-f ${sid} _arch_1_$ {number} .arc
delete
RCODE = $?
RCODE is assigned as the return code of the rm command.
If ((rcode! = 0))
If the return code is success
then
Print "$script: can't delete: ${sid} _arch_1_$ {number} .arc.
Output 1
on the other
Let count = $count - 1
reduce the number of 1
FI
fact
RM-f $tmpf
delete the temporary file.
on the other
print ' $script: $dir no such file or directory ".
Output 1
FI
Exit 0
Hope will help you.
Kind regards.
Tags: Database
Similar Questions
-
Script of free space for the physics of the standby database
I need to determine how much free space I have in my physical storage spaces of the standby database. Is there a query for this? Remember that dba_ views are not available in a mounted single standby database so I'm pretty well limited to using the views v$. Thank youWhy do you think you have to check the free space into a storage ensures physical ?
You cannot create all segments anyway.Kind regards
Uwe Hessehttp://uhesse.WordPress.com
-
RC-40201: unable to connect to the TEST database running adcfgclone.pl appsTier
Hi Experts,
While performing a cloning my instance of R12, I got RC-40201 error when I ran "adcfgclone.pl appsTier.
[appltst@oracleupk bin] $ perl adcfgclone.pl appsTier
Copyright (c) 2002 Oracle Corporation
Redwood Shores, California, USA
Applications Oracle rapid Clone
Version 12.0.0
adcfgclone Version 120.31.12010000.1
Enter the password for APPS:
Running:
/ data/appl_top/apps/apps_st/comn/clone/bin /... / JRE/bin/Java-Xmx600M - cp /data/appl_top/apps/apps_st/comn/clone/jlib/java:/data/appl_top/apps/apps_st/comn/clone/jlib/xmlparserv2.jar:/data/appl_top/apps/apps_st/comn/clone/jlib/ojdbc14.jar oracle.apps.ad.context.CloneContext EI/data/appl_top/apps/apps_st/comn/clone/bin /... /Context/Apps/CTXORIG.xml-valider - pairsfile /tmp/adpairsfile_24425.lst-stade/data/appl_top/apps/apps_st/comn/clone 2 > /tmp/adcfgclone_24425.err; ECHO $? > /tmp/adcfgclone_24425.res
Logfile located at /data/appl_top/apps/apps_st/comn/clone/bin/CloneContext_0912145803.log
Provide the values required for the creation of the new file APPL_TOP context.
Target System Hostname (virtual or normal) [oracleupk]:
SID data system target: TEST
Target database system [oracleupk] server node:
Target system Base Directory: / data / appl_top
Target system tools ORACLE_HOME directory [/ data/appl_top/apps/tech_st/10.1.2]:
Target Web ORACLE_HOME directory system [/ data/appl_top/apps/tech_st/10.1.3]:
Target system APPL_TOP directory [/ data/appl_top/apps/apps_st/appl]:
Target system COMMON_TOP directory [/ data/appl_top/apps/apps_st/comn]:
Target system Instance home directory [/ data/appl_top/inst]:
Target system service root [activated]:
Target Web Entry Point [active] System Services:
Target [active] System Web Application Services:
Target [active] Batch Processing Services system:
Other Services target system [off]:
You want to preserve the display [oracleupk:0.0] (y/n)? : n
Target display system [oracleupk:0.0]: oracleupk:1.0
System Target Pool [0-99] port: 80
Audit of the pool of port 80
fact: Port 80 pool is free
Report file is located at /data/appl_top/inst/apps/TEST_oracleupk/admin/out/portpool.lst
Information available at /data/appl_top/inst/apps/TEST_oracleupk/admin/out/portpool.lst complete port
RC-40201: unable to connect to the TEST database.
Create the new file APPL_TOP context of:
/Data/APPL_TOP/apps/apps_st/appl/ad/12.0.0/admin/template/adxmlctx.tmp
The new context APPL_TOP file was created:
/ Data/APPL_TOP/inst/Apps/TEST_oracleupk/Appl/admin/TEST_oracleupk. XML
Logfile located at /data/appl_top/apps/apps_st/comn/clone/bin/CloneContext_0912145803.log
Check the context Clone logfile /data/appl_top/apps/apps_st/comn/clone/bin/CloneContext_0912145803.log for more details.
Clone of fast running with the command:
Perl java /data/appl_top/apps/apps_st/comn/clone/bin/adclone.pl = / data/appl_top/apps/apps_st/comn/clone/bin /... /JRE mode = apply dialing = / data/appl_top/apps/apps_st/comn/clone point = appsTier = CUSTOM appctxtg=/data/appl_top/inst/apps/TEST_oracleupk/appl/admin/TEST_oracleupk.xml contextValidated = true showProgress method
Running:
Perl java /data/appl_top/apps/apps_st/comn/clone/bin/adclone.pl = / data/appl_top/apps/apps_st/comn/clone/bin /... /JRE mode = apply dialing = / data/appl_top/apps/apps_st/comn/clone point = appsTier = CUSTOM appctxtg=/data/appl_top/inst/apps/TEST_oracleupk/appl/admin/TEST_oracleupk.xml contextValidated = true showProgress method
Apps for password:
Start application layer apply - Fri Oct 12 15:01:20 2013
/ données/appl_top/apps/apps_st/comn/clone/bin /... /jre/bin/java -Xmx600M -DCONTEXT_VALIDATED=true -Doracle.installer.oui_loc=/oui -classpath /data/appl_top/apps/apps_st/comn/clone/jlib/xmlparserv2.jar:/data/appl_top/apps/apps_st/comn/clone/jlib/ojdbc14.jar:/data/appl_top/apps/apps_st/comn/clone/jlib/java:/data/appl_top/apps/apps_st/comn/clone/jlib/oui/OraInstaller.jar:/data/appl_top/apps/apps_st/comn/clone/jlib/oui/ewt3.jar:/data/appl_top/apps/apps_st/comn/clone/ jlib/Oui/share.jar:/data/appl_top/apps/apps_st/ Comn/clone/jlib/Oui/srvm.jar:/Data/APPL_TOP/Apps/apps_st/COMN/clone/jlib/ojmisc.jar oracle.apps.ad.clone.ApplyAppsTier EI /data/appl_top/inst/apps/TEST_oracleupk/appl/admin/TEST_oracleupk.xml-/data/appl_top/apps/apps_st/comn/clone - scene showProgress
Password APPS: log file located at /data/appl_top/inst/apps/TEST_oracleupk/admin/log/ApplyAppsTier_09121501.log
-79% completed
ERROR when executing apply...
Fri Oct 12 15:07:47 2013
ERROR: Cannot run /data/appl_top/apps/apps_st/comn/clone/bin/adclone.pl
Contents of the log file: -.
[AutoConfig error report]
The following report lists the errors autoconfig met in each
execution phase. Errors are grouped by directory and by phase.
The format of the report is:
< file name > < phase > < eventually return code >
[INSTALLATION STAGE]
AutoConfig could not successfully run the following scripts:
Directory: / data/appl_top/inst/apps/TEST_oracleupk/admin/install
adgendbc.sh INSTE8_SETUP 1
afcpnode.sh INSTE8_SETUP 1
afgcsreg.sh INSTE8_SETUP 1
txkWfClone.sh INSTALL_SETUP 1
[PROFILE PHASE]
AutoConfig could not successfully run the following scripts:
Directory: /data/appl_top/apps/tech_st/10.1.3/perl/bin/perl-je /data/appl_top/apps/tech_st/10.1.3/perl/lib/5.8.3-je /data/appl_top/apps/tech_st/10.1.3/perl/lib/site_perl/5.8.3-je /data/appl_top/apps/apps_st/appl/au/12.0.0/perl-je /data/appl_top/apps/tech_st/10.1.3/Apache/Apache/mod_perl/lib/site_perl/5.8.3/i686-linux-thread-multi /data/appl_top/inst/apps/TEST_oracleupk/admin/scripts/adexecsql.pl sqlfile = / data/appl_top/inst/apps/TEST_ oracleupk/admin /. install
afwebprf. SQL INSTE8_PRF 1
amscmprf. SQL INSTE8_PRF 1
amswebprf. SQL INSTE8_PRF 1
bisadmprf. SQL INSTE8_PRF 1
bisdblrp. SQL INSTE8_PRF 1
clnadmprf. SQL INSTE8_PRF 1
cncmprf. SQL INSTE8_PRF 1
cseadmprf. SQL INSTE8_PRF 1
csfadmprf. SQL INSTE8_PRF 1
csiadmprf. SQL INSTE8_PRF 1
eamadmprf. SQL INSTE8_PRF 1
fteadmprf. SQL INSTE8_PRF 1
ibywebprf. SQL INSTE8_PRF 1
icxwebprf. SQL INSTE8_PRF 1
oksfrmprf. SQL INSTE8_PRF 1
wshadmprf. SQL INSTE8_PRF 1
Directory: / data/appl_top/inst/apps/TEST_oracleupk/admin/install
adadmprf.sh INSTE8_PRF 1
admk80ln.sh INSTALL_PRF 1
afadmprf.sh INSTE8_PRF 1
afcpctx.sh INSTE8_PRF 1
afcpgsm.sh INSTE8_PRF 1 igccmprf.sh INSTE8_PRF 1 jtfictx.sh INSTE8_PRF 1 okladmprf.sh INSTE8_PRF 1 txkJavaMailerCfg.sh INSTE8_PRF 1 txkWebServicescfg.sh INSTE8_PRF 1 [APPLY PHASE]
AutoConfig could not successfully run the following scripts:
Directory: /data/appl_top/apps/tech_st/10.1.3/perl/bin/perl-je /data/appl_top/apps/tech_st/10.1.3/perl/lib/5.8.3-je /data/appl_top/apps/tech_st/10.1.3/perl/lib/site_perl/5.8.3-je /data/appl_top/apps/apps_st/appl/au/12.0.0/perl-je /data/appl_top/apps/tech_st/10.1.3/Apache/Apache/mod_perl/lib/site_perl/5.8.3/i686-linux-thread-multi/data/appl_top/inst/apps/TEST_oracleupk/admin/install adadmat.pl INSTE8_APPLY 1 Fate of 31 stateful auto-configuration
RC-50014: Fatal: failed to run the auto configuration service
Asked by oracle.apps.ad.clone.ApplyApplTop
ERROR: AutoConfig completed with errors. Check the logfile at /data/appl_top/inst/apps/TEST_oracleupk/admin/log/ApplyAppsTier_09121501.log for more details.
ApplyApplTop completed successfully.
# Check the race situation AutoConfig of ApplyApplTop
WARNING: The autoconfiguration service has completed with errors.
Please help me solve this problem, your prompt response will be highly appreciated.
-Thank you
Ankur
Audit of the pool of port 70
fact: Port pool 70 is free
You used port 70 for the node of the database layer, so you will need to use the same port pool (70 instead of 80) when running "perl adcfgclone.pl appsTier.
Thank you
Hussein
-
ORA-17629: unable to connect to the remote database server
Hello
I have put Dataguard in place with primary and 1 physical standby for learning/test database:
I do NOT plan the unloading of RMAN backups on the physics of the day before.
Recorded the primary database with RMAN and when "resync catalog db_unique_name all;" is issued.
I get the following error:
---------------------------------------------------------------------------------------------------------------------
RMAN > catalog resync db_unique_name all;
from full resynchronization of the recovery catalog
full complete Resync
resynchronization of data base with DB_UNIQUE_NAME ASTTESTB
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-03002: failed to db_unique_name resynchronization command at 28/09/2011 11:34:23
ORA-17629: unable to connect to the remote database server
ORA-17628: Oracle 17629 error returned by remote Oracle Server
------------------------------------------------------------------------------------------------------------------
Configuration of RMAN for the main proceedings are the following:
RMAN > show all to db_unique_name asttest;
RMAN settings for database with db_unique_name ASTTEST are:
CONFIGURE RETENTION POLICY TO RECOVERY OF 7-DAY WINDOW;
CONFIGURE BACKUP OPTIMIZATION # by default
SET UP DEFAULT DISK DEVICE TYPE; # by default
CONFIGURE CONTROLFILE AUTOBACKUP # by default
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO "%F" # by default
SET UP THE DEVICE TYPE DISK PARALLELISM 1 BACKUP BACKUPSET TYPE; # by default
CONFIGURE BACKUP OF DATA TO DISK FILE TYPE DEVICE TO 1; # by default
CONFIGURE BACKUP ARCHIVELOG FOR DEVICE TYPE DISK TO 1; # by default
CONFIGURE MAXSETSIZE TO UNLIMITED; # by default
CONFIGURE ENCRYPTION OF DATABASE # by default
CONFIGURE THE ENCRYPTION ALGORITHM "AES128"; # by default
CONFIGURE COMPRESSION ALGORITHM 'BASIC' AND 'DEFAULT' LIBERATION OPTIMIZE FOR TRUE LOAD; # by default
CONFIGURE DB Nom_unique "asttest" CONNECT IDENTIFIER ' ASTTEST. UMDNJ. EDU'; _
CONFIGURE DB "Asttestb" of nom_unique CONNECT IDENTIFIER "asttestb"; _
CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON ALL STANDBY;
CONFIGURE SNAPSHOT CONTROLFILE NAME TO ' / opt/oracle/product/11.2.0/dbhome_1/dbs/snapcf_asttest.f'; # by default
Configuration of RMAN for instance physical standby are:
RMAN > show all to db_unique_name asttestb;
RMAN settings for database with db_unique_name ASTTESTB are:
CONFIGURE RETENTION POLICY TO RECOVERY OF 7-DAY WINDOW;
CONFIGURE BACKUP OPTIMIZATION # by default
SET UP DEFAULT DISK DEVICE TYPE; # by default
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO "%F" # by default
SET UP THE DEVICE TYPE DISK PARALLELISM 1 BACKUP BACKUPSET TYPE; # by default
CONFIGURE BACKUP OF DATA TO DISK FILE TYPE DEVICE TO 1; # by default
CONFIGURE BACKUP ARCHIVELOG FOR DEVICE TYPE DISK TO 1; # by default
CONFIGURE MAXSETSIZE TO UNLIMITED; # by default
CONFIGURE ENCRYPTION OF DATABASE # by default
CONFIGURE THE ENCRYPTION ALGORITHM "AES128"; # by default
CONFIGURE COMPRESSION ALGORITHM 'BASIC' AND 'DEFAULT' LIBERATION OPTIMIZE FOR TRUE LOAD; # by default
CONFIGURE DB Nom_unique "asttest" CONNECT IDENTIFIER ' ASTTEST. UMDNJ. EDU'; _
CONFIGURE DB "Asttestb" of nom_unique CONNECT IDENTIFIER "asttestb"; _
CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON ALL STANDBY;
CONFIGURE SNAPSHOT CONTROLFILE NAME TO ' / opt/oracle/product/11.2.0/dbhome_1/dbs/snapcf_asttest.f'; # by default
----------------------------------------------------------------------------------------------------------------------
When I tested missing missing datafile and control file scenario on the primary database, it worked (Advisor to recover data)
However, missing datafile scenario does not work on the physics of the day before.
Here are the steps I followed:
********************************************
1 renamed a file of physical data - in standby mode:
bash - $3.2 ls - ltr
Total 107832
-rw - r - 1 oracle oinstall 52429312 16 September 12:19 asttest_redo03.log
-rw - r - 1 oracle oinstall 61874176 Sep 29 15:41 asttest_temp01.dbf
-rw - r - 1 oracle oinstall 52436992 5 Oct 11:00 rmandg_data01.dbf
bash - $3.2 mv rmandg_data01.dbf rmandg_data01.dbf_old
bash - $3.2 ls - ltr
Total 107832
-rw - r - 1 oracle oinstall 52429312 16 September 12:19 asttest_redo03.log
-rw - r - 1 oracle oinstall 61874176 Sep 29 15:41 asttest_temp01.dbf
-rw - r - 1 oracle oinstall 52436992 5 Oct 11:00 rmandg_data01.dbf_old
2. restore the datafile (find the data file # view v$ recover_file):
RMAN > restore datafile 5;
From restoration to 5 October 11
Segmentation fault
3. in spite of the error, published "recover datafile command.
4 RMAN > recover datafile 5;
From pick up to 5 October 11
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID = 10 type of device = DISK
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-03002: failure of the command recover at 05/10/2011 12:00:40
RMAN-06094: datafile 5 must be restored.
5. manually copy the physical primary datafile - in standby mode, & then problem recover RMAN command:
bash - $3.2 scp oracle@msudrainier:/ora03/oradata/asttest/rmandg_data01.dbf.
rmandg_data01.dbf 100% 50 MB 16.7 MB/s 00:03
bash - $3.2 ls - ltr
Total 159096
-rw - r - 1 oracle oinstall 52429312 16 September 12:19 asttest_redo03.log
-rw - r - 1 oracle oinstall 61874176 Sep 29 15:41 asttest_temp01.dbf
-rw - r - 1 oracle oinstall 52436992 5 Oct 11:49 rmandg_data01.dbf_old
-rw - r - 1 oracle oinstall 52436992 5 Oct 12:01 rmandg_data01.dbf
RMAN > recover datafile 5;
From pick up to 5 October 11
using channel ORA_DISK_1
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-03002: failure of the command recover at 05/10/2011 12:01:59
RMAN-06067: RECOVER the DATABASE required with a backup control file or created
6. of course RMAN commands have failed to restore the missing data file;
So I renamed the file to original and rebooted repeat services applies - this restore the data file and now the configuration state of the DG is normal.
*********************************************************************************
Not quite sure if I'm still he hands the right way or if the error above is related to RMAN not able to synchronize with the physics of the day before.
The documentation I want to talk to is here (1 paragraph):
[http://download.oracle.com/docs/cd/B28359_01/server.111/b28294/rman.htm#BAJDFBDD | http://download.oracle.com/docs/cd/B28359_01/server.111/b28294/rman.htm#BAJDFBDD]
Any pointers/direction and advise is greatly appreciated.
Best regards
NKI got it!
/home/oracle:STANDBY >$ORACLE_HOME/bin/rman target sys/
catalog / @rcatalog Recovery Manager: Release 11.2.0.1.0 - Production on Fri Oct 7 14:12:10 2011 Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved. connected to target database: PRIMARY (DBID=1562898590, not open) connected to recovery catalog database RMAN> resync catalog from db_unique_name all; resyncing from database with DB_UNIQUE_NAME PRIMARY starting full resync of recovery catalog RMAN output not resynced for database with DB_UNIQUE_NAME PRIMARY full resync complete If the necessary connection string a target/sys and a catalogue
RMAN target sys /
catalog / @rcatalog I did my standby
Will try the primary
Best regards
mseberg
Work on both. Great question!
connected to target database: PRIMARY (DBID=1562898590) connected to recovery catalog database RMAN> resync catalog from db_unique_name all; starting full resync of recovery catalog full resync complete resyncing from database with DB_UNIQUE_NAME STANDBY RMAN output not resynced for database with DB_UNIQUE_NAME STANDBY RMAN>
Published by: mseberg on October 7, 2011 14:16
Thanks a ton for sticking to it. I'll add this little thing to my web site.
Published by: mseberg on October 7, 2011 14:22
-
OBIEE to connect to the configuration database
Hi, I have configured OBIEE and the only problem I have connects to an Oracle 10g database version, where the data is located. I can open the BI Server repository using the client administration tool and when I choose a database object and choose Show data... in the Properties menu for the connection pool object, it does not connect. I have triple checked that the tnsnames.ora on the UNIX file is correct. Do I need to configure a file to point to the tnsnames.ora file? I guess that's my problem.
I installed on a Unix Solaris OBIEE platform. This is the error I get when you try to run a query in the responses:
Error codes: OPR4ONWY:U9IM8TAC:OI2DL65P
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error occurred. [nQSError: 17001] Oracle error code: 12170, message: ORA-12170: TNS: Connect timeout occurred at the call of the OIC OCIServerAttach. [nQSError: 17014] Cannot connect to the Oracle database. (HY000)
Any help would be greatly appreciated.
Thanks in advance!
MikeYou need to set the environment variables for the BI Server 3 find your Oracle client correctly in a Linux/Unix server. Here are the ones I use, you will need to change accordingly to your environment:
export ORACLE_HOME=/opt/app/oracle/product/10.2.0.3
Export TNS_ADMIN = / var/opt/oracle
export LD_LIBRARY_PATH = $ORACLE_HOME/lib32: $LD_LIBRARY_PATHThe TNS_ADMIN variable should point to where you have your tnsnames.ora, ldap.ora etc. These could be in the ./network/admin folder or as in our case in a specific folder the DBAs have installation to keep them separate in the client's file. Now, you need to know where to put these variables. OBIEE installation guide suggests using the script./OracleBI/setup/user.sh to do this, we prefer to put this on a special environment file which is executed when the user who runs the OBIEE connections. We would like to keep separate files OBIEE, so we know that it will not be lost if we upgrade to a new version or remove installation and install again.
-
Upgrade to 11.2.0.4 with the physics of the standby database
Dear gurus,
We have the obligation to upgrade databases 11.2.0.1 existing 11.2.0.4 and 11.2.0.2 to 11.2.0.4 running on AIX boxes. We have physical databases of Eve configured for these databases of different version.During the preparation of the documentation for upgrade, we observed that FORCE_LOGGING is disabled for the production databases and observed, there are objects along 350 + with journaling = No. and logging = NULL and patterns are SYS, SYSMAN, APEX_030200, OLAPSYS, XDB, SYSTEM, OIMDBUSER, MDSYS, EXFSYS, WMSYS, ORDDATA, PERFSTAT.
My query:
I can still proceed with the upgrade still under the document indicated for "upgrading a database with a physical Standby database in place" without you connect the data dictionary objects will be not be updated pending database.
Can you please let me know your suggestions on this please?
Kind regards
Kumar
Hello;
Quote:
"Keep the database in LOGGING mode FORCE as long as the backup database is necessary."
Of
Oracle® DataGuard of Concepts and Administration 11 g Release 2 (11.2) E10700-02
I think I FORCE turn on CONNECTING to the primary database and rebuild the eve before doing the upgrade.
Best regards
mseberg
-
DOUBLE DB: ORA-17629: unable to connect to the remote database server
[oracle@ora11g1 ~] $ export ORACLE_SID = sales
[oracle@ora11g1 ~] $ rman target sys/sales@sales
Recovery Manager: release 11.2.0.1.0 - Production Wed Jun 5 13:00:15 2013
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
connected to target database: SALES (DBID = 690066655)
RMAN > Connect auxiliary sys/salestby2@salestby2
connected to the auxiliary database: SALES (not mounted)
RMAN > CURRENT SPFILE DATABASE of TARGET duplicate FOR THE EVE OF the DATABASE
2 > DB_NAME SET = 'sales '.
3 > SET DB_UNIQUE_NAME = "salestby2".
4 > control_files='/u02/oradata/salestby2/control01.ctl','/u02/oradata/salestby2/control02.ctl SET'
5 > SET DB_FILE_NAME_CONVERT = "/ u02/oradata/sales /", "/ u02/oradata/salestby2 / '.
6 > SET LOG_FILE_NAME_CONVERT = "/ u02/oradata/sales /", "/ u02/oradata/salestby2 / ';
From duplicate Db 5 June 13
using the control file of the target instead of recovery catalog database
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID = 20 type of device = DISK
content of Script memory:
{
backup that copy reuse
TargetFile ' / auxiliary format of the u01/app/oracle/product/11.2.0/dbhome_1/dbs/orapwsales
' / u01/app/oracle/product/11.2.0/dbhome_1/dbs/orapwsalestby2' targetfile
' / u01/app/oracle/product/11.2.0/dbhome_1/dbs/spfilesales.ora' auxiliary format
' / u01/app/oracle/product/11.2.0/dbhome_1/dbs/spfilesalestby2.ora';
clone of SQL 'alter system set spfile = "/u01/app/oracle/product/11.2.0/dbhome_1/dbs/spfilesalestby2.ora";
}
execution of Script memory
From backup 5 June 13
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID = 58 type of device = DISK
RMAN-03009: failure of the backup command on the channel ORA_DISK_1 at 05/06/2013 13:05:26
ORA-17629: unable to connect to the remote database server
ORA-17627: ORA-01017: name of user and password invalid. connection refused
ORA-17629: unable to connect to the remote database server
continue other job steps, not a not working will not re-run
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-03002: failure of Db in dual at 05/06/2013 13:05:27
RMAN-03015: an error has occurred in the script stored memory Script
RMAN-03009: failure of the backup command on the channel ORA_DISK_1 at 05/06/2013 13:05:27
ORA-17629: unable to connect to the remote database server
ORA-17627: ORA-01017: name of user and password invalid. connection refused
ORA-17629: unable to connect to the remote database serverWelcome to the oracle forums!
Please take the time to go through [url https://forums.oracle.com/forums/ann.jspa?annID=1535] FAQ PAGE
Always after 4 version oracle numbers and details of the OS.
Post any request outside has put between.
\
Tags
Mark your questions answers if you give the answer
Password for the SYS user on primary and standby must be the same. Copy the master password for the backup server
SCP $ORACLE_HOME/dbs/orapwv112
: /u01/app/oracle/product/11.2/dbs/orapwdupv112 -
Backups on the physics of the standby database?
I use dataguard and standby a physical database. How to assign backups on the physics of the standby database to reduce the load on the primary database.
environment: windows
Database version: 11.2.0.1.0
What are the pro and cons on the allocation of jobs of RMAN backups for the physics of the standby database?Hello;
The backup database is an identical copy of the primary database block.
Therefore, you just save one of the two (you can choose to only save the day before, however, if you want to remove the load on the primary). But if you are uncomfortable with the primary backup, it is not necessary for the safeguarding of the day before. (Since you can recreate the primary backup before).
The only important part, is that you use the RMAN catalog. Then only known RMAN, the two are identical and can use the same backup.
Best regards
mseberg
-
The physics of the standby database Y2K problem
Hi all
I am the passage of primary school to the physics of the standby database. Physical standby is in "recovery management" mode using real-time applies and is in editing mode. I've run alter database commit to switch to sleep mode physical with the logoff command. Now I'm waiting for standby mrp leave after treated RAH recording, but it seems mrp was hanged.
Here is the content of the database pending:
Online Redo Log recovery: thread 1 mem Group 5 Seq 620 reading 0
Mem # 0: /oracle/app/oracle/dbrac/th1-redo5a.log
Activation reset sleep ID 749049115 (0x2ca5951b)
Met Media Recovery end Redo indicator
Media recovery continues
Media, recovery waiting for thread 1 sequence 621
Journal archived 14 extra for each thread 1 620 0x2ca5951b dest ID sequence entry 1:
Need help to solve.
Thank you
Sandy.Hello;
After after deliver you (successfully) a:
alter database commit to switchover to physical standby with session shutdown
You must:
Shutdown the former primary and mount as a standby database
Check out my step by step:
http://www.Visi.com/~mseberg/data_guard/Data_Guard_switchover.html
Read everything (all steps) before continuing.
Best regards
mseberg
-
problem to connect to the VM database
Hello
I have a host of windows 7 with vmware 8 and a comment running oracle linux version 6 Update 2 for system
x86_64 (64-bit). I installed 11 GR 2 database on this subject. The installation went even though it is OK and the database is in place and
connect very well within the system of comments. The problem is that it does not connect to any part of the outside
the comments system. An attempt to connect results in TNS-12535: TNS:operation has expired. Even the results of tnsping
in the same error.
It's results of tnsping from a customer who is not the host or guest. This client can ping the ip
192.168.1.62.
C:\ > tnsping test
AMT Ping Utility for 32-bit Windows: Release 8.1.7.0.0 - Production on 20 June 20
12 19:03:45
(c) Copyright 1997 Oracle Corporation. All rights reserved.
Try to contact (ADDRESS = (PROTOCOL = TCP)(HOST=192.168.1.62) (PORT = 1521))
TNS-12535: TNS:operation expired
The guest system can ping the computers inside the network, and other systems can ping the guest and the host
systems without any problem. The listener and the database are all the comments system.
The entire communication is inside the firewall, the local network, so the firewall isn't a problem here.
The only solution I've seen on the internet is to remove the /etc/resolv.conf file (does not work) or use
NAT networking for the virtual machine. We use networks bridged with static IP for machinery of the host and the guest
and it seems that others have used the bridged network also.
Is there an obligation to use NAT to make this work? Is there a setting that makes the connection to the guest
database system possible?
Thank you to everyone who is trying to solve this problem.Take a look at EdStevens and other answers on this similar topic
>
You probably did not open port 1521 of the firewall (iptables) of linux comments box.
>
Re: Connectivity between Local OS(windows 7) and Vm OS(Enterprise Linux)Or this link
http://AWADs.NET/WP/2012/02/21/how-to-connect-to-Oracle-database-on-a-guest-VM-from-the-host/If you are looking for 'oracle 11g vm tnsping', you will find a lot of visits.
-
failover and failback on the physics of the standby database.
Hi all
I use the EE 10.2.0.4.I oracle version have a configuration database and named prim and Everelief. I tried the method of failover. I liquidated low primary eve and convert to the new primary database.
•Arretez repeat applies.
Run the following SQL statement on the database waiting for target:
SQL > ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;
Standing by applying all the data received to redo.
In this we give indication to the standby database primary database is no more.
SQL > ALTER DATABASE RECOVER MANAGED STANDBY DATABASE FINISH;
Once the order of FINISH is completed, the mode of protection of the primary database is lowered to optimum performance, regardless of its original protection mode. This is done because the new primary can be activated with on a standby
SQL > select protection_mode, protection_level from database v$
Level of Protection for the protection Mode
——————– ——————–
PERFORMANCE WITHOUT PROTECTION
•Check that the standby database target is ready to become a primary database.
Query column SWITCHOVER_STATUS of the view V$ DATABASE on the database waiting for target.
•If the physical database ensures the main role.
SQL > ALTER DATABASE COMMIT to THE MOVE to THE PRIMARY WITH the STOP of the SESSION;
•Open the new primary database
SQL > ALTER DATABASE OPEN;
•At this point the level of protection is passed to Max Performance "Unprotected".
Circuits the new primary database.
How can I see this previous situation?Hello;
I can share my test notes (Oracle 11) should work even in 10:
http://www.Visi.com/~mseberg/Data_Guard_Failover_Test_using_SQL.PDF
Best regards
mseberg
-
Destination different archivelog on the physics of the standby database
Hello
Can I set different archivelog destination for the physics of dual standby database? (Because of space issues) How can I do?
For example, on the site main archivelogs reside in/u01/ORCL/archivelog and I want on phy. side Eve archive dest. under/u08/ORCL/archivelog.
You can also give LOG_ARCHIVE_DEST_1 in file init Eve, so whenever you start sleep/auxiliary instance automatically done dest_1 refers to/u08/orcl (whereever you want). So you can have destination archive anywhere but must have the appropriate permissions and location should be available.
If you want to set a destination, then again you can use the "ALTERNATE" sort clause only when the primary location unavailable or unable to archive, and then, of course, he wrote in the other location you have specified a pfile.
You can check this
http://docs.Oracle.com/CD/B28359_01/server.111/b28294/log_arch_dest_param.htm#i91817
-
Archived not getting applied to the standby database.
Hello
I turned the parameter standby_file_management to manual and since I created 3 primary data file, but they are not applied to the standby database.
I turned on the Auto setting and started the MRP process but still not able to apply archive.
Version Oracle 10.2.0.5
Please suggest,
Amit SharmaHello
Your problem is that the MRP standby automatically when a data file is added on the primary database. The reason would be that the parameter STANDBY_FILE_MANAGEMENT is set to MANUAL on the standby database.
Please refer to this http://shivanandarao-oracle.com/2012/04/02/managed-recovery-process-mrp-terminates-on-standby-database-upon-adding-datafile-on-the-primary-database/
It will be useful.
Kind regards
Shivananda -
Connection to the remote database using Oracle 11 g Builder
Hi all
This could me stupid question, but I have installed Oracle Forms and reports 11g on Win 7 machine. I copied the file "tnsnames.ora' on the record ' ORACLE_HOME/Network/Admin". We use Oracle EBS R12 and I want to create a new report using 11 g.
Using the report wizard after providing a simple query, we need to connect to the database. And even after the entry of TNS, I am getting error connecting to the database, following
"REP-0501: the specified database can be connected.
"ORA-12154: TNS: could not resolve the connect identifier specified.
I am able to connect to the same database using the Report Builder (10.1.2.0). Is there another place where I need to set the TNS entry? How can I solve this error? Please guide...
Kind regards
PriyankaHello
In forms and reports 11g, default defined in tnsnames.ora is: ORACLE_INSTANCE\config.
Please note that the ORACLE_INSTANCE is not the same as ORACLE_HOME.
Example:
ORACLE_HOME = D:\Oracle\Middleware\as_1
ORACLE_INSTANCE = D:\Oracle\Middleware\instances\asinst_1If you set the admin TNS_ADMIN variable in the registry, you can point to a new location for tnsnames.ora
Kind regards
AlexIf someone useful or appropriate please mark accordingly.
-
ORA-02019: description of the connection to the remote database not found
Hi all
10.2.0.4 on solaris 10.
I can tnsping and connect to a tnsentry in tnsnames.ora from the server, but when I use the same in dblink, get the error below:
ORA-02019: description of the connection to the remote database not found. Here's the scenario. any idea?
medt01:medtora:/medt/oracle/product/102/network/admin$ tnsping medcon TNS Ping Utility for Solaris: Version 10.2.0.4.0 - Production on 09-NOV-2011 23:49:23 Copyright (c) 1997, 2007, Oracle. All rights reserved. Used parameter files: /medt/oracle/product/102/network/admin/sqlnet.ora Used TNSNAMES adapter to resolve the alias Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.102)(PORT = 1523))) (CONNECT_DATA = (SERVICE_NAME = medcon))) OK (20 msec) medt01:medtora:/medt/oracle/product/102/network/admin$ sqlplus medts_ed/medfcv@medcon SQL*Plus: Release 10.2.0.4.0 - Production on Wed Nov 9 23:49:31 2011 Copyright (c) 1982, 2007, Oracle. All Rights Reserved. Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options SQL> Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options medt01:medtora:/medt/oracle/product/102/network/admin$ sqlplus medts_ed/medfcv@medcon SQL*Plus: Release 10.2.0.4.0 - Production on Wed Nov 9 23:59:54 2011 Copyright (c) 1982, 2007, Oracle. All Rights Reserved. Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options SQL> exit Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options medt01:medtora:/medt/oracle/product/102/network/admin$ tnsping medcon TNS Ping Utility for Solaris: Version 10.2.0.4.0 - Production on 10-NOV-2011 00:00:02 Copyright (c) 1997, 2007, Oracle. All rights reserved. Used parameter files: /medt/oracle/product/102/network/admin/sqlnet.ora Used TNSNAMES adapter to resolve the alias Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.102)(PORT = 1523))) (CONNECT_DATA = (SERVICE_NAME = medcon))) OK (0 msec) medt01:medtora:/medt/oracle/product/102/network/admin$ sqlplus medts_ed/medfcv@medcon SQL*Plus: Release 10.2.0.4.0 - Production on Thu Nov 10 00:00:07 2011 Copyright (c) 1982, 2007, Oracle. All Rights Reserved. Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options SQL> exit Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options medt01:medtora:/medt/oracle/product/102/network/admin$ sqlplus medc_pl/medxcdsw3 SQL*Plus: Release 10.2.0.4.0 - Production on Thu Nov 10 00:00:17 2011 Copyright (c) 1982, 2007, Oracle. All Rights Reserved. Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production With the Partitioning, Real Application Clusters, OLAP, Data Mining and Real Application Testing options SQL> create database link med2con connect to medts_ed identified by medfcv using 'medcon' ; Database link created. SQL> select * from medc@med2con; select * from medc@med2con * ERROR at line 1: ORA-02019: connection description for remote database not found
Try this,
SQL > create database link med2con connect to medts_ed identified by using medfcv ' (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.0.102)(PORT = 1523))) (CONNECT_DATA = (SERVICE_NAME = medcon)))';
SQL > select * from medc@med2con;
Maybe you are looking for
-
How can I cancel a subscription app on iTunes with my iPad?
-
How can I make Microsoft live mail open in Firefox?
I want microsoft live mail to be my default e-mail program.
-
Measurement time 4132 SMU is too high
Hello I use PXI - 4132 DC EMS to perform some DC measurements at high speed. I just took a 1 K Ohms resistance, forced 1mA and measure 1V. I have this done configuration and code completed. I get the correct measurements. But my problem is with the m
-
Windows will pause for about 2-3 minutes before starting the system completely
Original title: Security Center is MESSED UP! Hi, start windows on the desktop in about 40 seconds, it stops about 2-3 minutes and then continue to load, (the clock jumps 2-3 minutes) I can't use it until it does this. Tried to cut most of progames s
-
Your wireless card has stopped working properly.
Often, I receive this message "problem reports and solution:A problem with your wireless network card Your wireless card has stopped working properly.There is a network adapter that allows your computer to connect to a wireless network.To find out if