DG broker Switchover issue, ORA-16535: CRS is prevent execution of a broker

I am having setup of 2 node 10.2.0.4.0 RAC setup on ASM with Single Instance Physical standby on File System (OS: REHL 5.4). I configured DG Broker without any major issues. Getting all output of 'show configuration' and all DG related logs are clear. Archives are getting transferred from both Primary nodes.
DGMGRL> show configuration
Configuration
Name: dg_rac
Enabled: YES
Protection Mode: MaxPerformance
Fast-Start Failover: DISABLED
Databases:
livestdby - Primary database
livedg - Physical standby database
Current status for "dg_rac":
SUCCESS
Now I am getting error Error: ORA-16535: CRS is preventing execution of a broker operation.
DGMGRL> switchover to livedg;
Performing switchover NOW, please wait...
Error: ORA-16535: CRS is preventing execution of a broker operation
Oracle Says
Cause
A broker operation was underway that required CRS to stop managing the instances of this database, but CRS management could not be stopped on behalf of the broker"s request on
at least some of the instances, so the broker operation was canceled.
Action
Suspend CRS management of this database using SRVCTL STOP DATABASE -D <name> -O NONE. Then reissue the broker request.
But this command is not working as it's given to stop the database.
One more thing, it's nowhere said to stop CRS while performing Switchover / Switchback using DG Broker. When we do Switchover / Switchback we keep open only one of the Primary database.
Anybody knows regarding this error???? or is there any solution for this ???? (is it bug ???)
is there any documentation / link available to switchover of RAC database using dgmgrl (DG Broker)
Any help would be appreciated.
regards,
manish

Hello;
I would check the tnsnames.ora on the Standby that's about to become the new Primary.
Based on the information you provided I'm thinking you cannot connect from the Standby site to the Primary and thus the switchover fails and throws this error.
If that checks out make sure the firewall rules for both server line up.
Best Regards
mseberg

Similar Messages

  • Dataguard switchover issue

    Hi all,
    I am facing physical standby switchover issue. I set up a physical standby database everything works well. Last week I tried switching between primary abd standby, switchover also done well.
    Switchover happend log sequence at 1011.
    After a couple of days I tried switch over it back, then alter database switchover camand is taking too long.
    I queried on standby for any archive log gap,
    SQL>select * from v$archive_gap;
    THREAD# LOW_SEQUENCE# HIGH_SEQUENCE#
    1 1012 1012
    When I look into primary database archivelog destination I did not find any archive log with sequence number 1012
    I also notice that in Primary after 1011 sequence number next comes 1013
    please see the details of primary archives,
    SQL> select sequence#,applied from v$archived_log;
    SEQUENCE# APPLIED
    1007 YES
    1008 YES
    1009 YES
    1010 YES
    1011 YES
    1013 NO
    1 NO
    1014 NO
    1015 NO
    1016 NO
    1017 NO
    1018 NO
    1019 NO
    1020 NO
    1021 NO
    1022 NO
    1014 NO
    1013 NO
    1022 NO
    1016 NO
    1015 NO
    1019 NO
    1018 NO
    1021 NO
    1017 NO
    1020 NO
    1023 NO
    1023 NO
    1024 NO
    1024 NO
    1025 NO
    1025 NO
    1026 NO
    1026 NO
    1027 NO
    1027 NO
    1028 NO
    1029 NO
    1030 NO
    1030 NO
    1031 NO
    1031 NO
    1032 NO
    1032 NO
    1033 NO
    1033 NO
    1034 NO
    1034 NO
    1035 NO
    1035 NO
    1036 NO
    1036 NO
    1037 NO
    1037 NO
    1038 NO
    1038 NO
    I checked in standby I found that after sequence 1011 there is no archives applied on standby
    SEQUENCE# APPLIED
    999 YES
    1000 YES
    1001 YES
    1002 YES
    997 YES
    999 YES
    1002 YES
    1001 YES
    1000 YES
    998 YES
    1003 YES
    1003 YES
    1004 YES
    1004 YES
    1005 YES
    1005 YES
    1006 YES
    1006 YES
    1007 YES
    1007 YES
    1008 YES
    1008 YES
    1009 YES
    1009 YES
    1010 YES
    1010 YES
    1011 YES
    1 YES
    1 YES
    I tried with recover manages standby commnads but nothing worked out. I wonder how a sequence number 1 has come on primary database, I manually copied the sequence 1 to stand by and regitered it, after that also it show archivelog gap?
    Could you please help me in this?
    -Thanks & cheers
    Antony

    Dear Antonypaulm,
    What is being written in the alert.log files and can you please also show the last few lines of v$dataguard_status dynamic performance view?
    By the way are you using data guard broker?
    Regards.
    Ogan

  • Autoconfig Error- jtfictx.sh (INSTE8_PRF 1) ORA-29874: warning in the execution of ODCIINDEXALTER routine

    Gurus,
    EBS : R12.1.2 (OS Linux)
    Database: 11.2.0.3 (OS HP UX Itanium)
    I am getting error in autoconfig with jtfictx.sh.  I am cloning PROD to QA. Usually I use RMAN duplicate to clone the database and then Application file system are copied. I have performed this method for many times( say 25 times).
    This iteration after the database recovery, I ran the RDBMS autoconfig which completed successfully. Then I ran the autoconfig on the concurrent manager server  first and received the below error. There are no change of steps from my usual.
    Executing script in InstantiateFile:
    /ebs02/oracle/inst/apps/SID_servername/admin/install/jtfictx.sh
    script returned:
    jtfictx.sh started at Sun Sep  8 01:04:11 CDT 2013
    SQL*Plus: Release 10.1.0.5.0 - Production on Sun Sep 8 01:04:11 2013
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Enter value for 1: Enter value for 2: Enter value for 3: Connected.
    DECLARE
    ERROR at line 1:
    ORA-29874: warning in the execution of ODCIINDEXALTER routine
    ORA-29960: line 1,
    DRG-10595: ALTER INDEX JTF_AMV_ITEMS_URL_CTX failed
    DRG-11422: linguistic initialization failed
    DRG-11446: supplied knowledge base file
    /u01/oracle/orahome/11.2.0/ctx/data/enlx/droldUS.dat not installed
    ORA-06512: at "SYS.DBMS_SQL", line 1199
    ORA-06512: at line 96
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    jtfictx.sh exiting with status 1
    ERRORCODE = 1 ERRORCODE_END
    .end std out.
    .end err out.
    I usually backup the autoconfig/ context file before the refresh of EBS files from PROD. The previous refresh was performed 2 months ago and it was successful. There is no changes on database ORACLE_HOME as depicted in the error.
    I see that someone have had asked similar error in forums and Hussein did recommend some Metalink Note. I did refer that but so far no success. Please do let me know if anyone faced similar issue and how did you solve it?
    Notes Referred:
    "Jtfictx.sh" Failed During Autoconfig On Application Tier, ORA-29874, DRG-10595 (Doc ID 1271186.1)
    Autoconfig Failed On Apps Tier "jtfictx.sh INSTE8_PRF" . Running manually "jtfictx.sh " Failed on "DRG-10758: index owner does not have the privilege" (Doc ID 1357760.1)
    Several Scripts Failing With A ORA-29855 Executing ODCIINDEXCREATE Routine During Upgrade To 12.1.1 (u6678700.drv) (Doc ID 1286033.1)
    11i : Autoconfig Fails On The Application Tier in running jtfictx.sh (Doc ID 396174.1)
    Thanks
    Cherrish Vaidiyan

    Yes I did and below are the DB components from dba_registry:
    Oracle Application Express    APEX_030200    3.2.1.00.12    VALID
    OLAP Catalog    OLAPSYS    11.2.0.3.0    VALID
    Oracle Data Mining    DMSYS    11.2.0.3.0    VALID
    Oracle XML Database    XDB    11.2.0.3.0    VALID
    Oracle Text    CTXSYS    11.2.0.3.0    VALID
    Spatial    MDSYS    11.2.0.3.0    VALID
    Oracle Multimedia    ORDSYS    11.2.0.3.0    VALID
    Oracle Database Catalog Views    SYS    11.2.0.3.0    VALID
    Oracle Database Packages and Types    SYS    11.2.0.3.0    VALID
    JServer JAVA Virtual Machine    SYS    11.2.0.3.0    VALID
    Oracle Database Java Packages    SYS    11.2.0.3.0    VALID
    Oracle XDK    SYS    11.2.0.3.0    VALID
    Oracle Real Application Clusters    SYS    11.2.0.3.0    INVALID
    OLAP Analytic Workspace    SYS    11.2.0.3.0    VALID
    Oracle OLAP API    SYS    11.2.0.3.0    VALID
    Only component invalid is RAC and I dont have RAC for this database.
    Thanks
    Cherrish Vaidiyan

  • Manual\DGMGRL Switchover Standby ora-01033 error

    I have created a standby server for my SAP application as a part of test Disaster Recovery scenario. I can see the redo logs getting applied from primary to standby. However when I manually switchover the roles i encounters ORA -01033 error at NEW PRIMARY server and logs are also not getting applied in this scenario.
    When i again changes the roles it works fine. I am not sure what is cause of ORA -01033 error. Here are the detailed tnsnames.ora of both sites.
    Primary Server
    P11.WORLD=
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS =
    (COMMUNITY = SAP.WORLD)
    (PROTOCOL = TCP)
    (HOST = 10.0.1.104)
    (PORT = 1527)
    (CONNECT_DATA =
    (SID = P11)
    (GLOBAL_NAME = P11.WORLD)
    TO_STANDBY.WORLD=
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS =
    (COMMUNITY = SAP.WORLD)
    (PROTOCOL = TCP)
    (HOST = 10.0.1.102)
    (PORT = 1527)
    (CONNECT_DATA =
    (SID = P11)
    (GLOBAL_NAME = TO_STANDBY.WORLD)
    TO_PRIMARY.WORLD=
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS =
    (COMMUNITY = SAP.WORLD)
    (PROTOCOL = TCP)
    (HOST = 10.0.1.104)
    (PORT = 1527)
    (CONNECT_DATA =
    (SID = P11)
    (GLOBAL_NAME = TO_PRIMARY.WORLD)
    LISTENER_P11.WORLD=(address=(protocol= tcp)(host=10.0.1.104)(port= 1527))
    Standby Site
    TO_PRIMARY.WORLD=
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS =
    (COMMUNITY = SAP.WORLD)
    (PROTOCOL = TCP)
    (HOST = 10.0.1.104)
    (PORT = 1527)
    (CONNECT_DATA =
    (SID = P11)
    (GLOBAL_NAME = TO_PRIMARY.WORLD)
    P11.WORLD=
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS =
    (COMMUNITY = SAP.WORLD)
    (PROTOCOL = TCP)
    (HOST = 10.0.1.104)
    (PORT = 1527)
    (CONNECT_DATA =
    (SID = P11)
    (GLOBAL_NAME = P11.WORLD)
    TO_STANDBY.WORLD=
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS =
    (COMMUNITY = SAP.WORLD)
    (PROTOCOL = TCP)
    (HOST = 10.0.1.102)
    (PORT = 1527)
    (CONNECT_DATA =
    (SID = P11)
    (GLOBAL_NAME = TO_STANDBY.WORLD)
    LISTENER_P11.WORLD=(address=(protocol= tcp)(host=10.0.1.104)(port= 1527))
    Now , when i enable the DGMGRL configuration and add standby database at primary the " log_archive_dest_2=''" goes empty . Here is the pfile of primary after enable of the DGMGRL.
    pfile of Primary
    *._B_TREE_BITMAP_PLANS=FALSE
    *._IN_MEMORY_UNDO=FALSE
    *._INDEX_JOIN_ENABLED=FALSE
    *._OPTIM_PEEK_USER_BINDS=FALSE
    *._OPTIMIZER_MJC_ENABLED=FALSE
    *._SORT_ELIMINATION_COST_RATIO=10
    *._TABLE_LOOKUP_PREFETCH_SIZE=0
    *.archive_lag_target=0
    *.background_dump_dest='D:\oracle\P11\saptrace\background'
    *.compatible='10.2.0'
    *.control_file_record_keep_time=30
    *.control_files='D:\oracle\P11\origlogA\cntrl\cntrlP11.dbf','D:\oracle\P11\origlogB\cntrl\cntrlP11.dbf','D:\oracle\P11\sapdata1\cntrl\cntrlP11.dbf'
    *.core_dump_dest='D:\oracle\P11\saptrace\background'
    *.db_block_size=8192
    *.db_cache_size=260938137
    *.db_files=254
    *.db_name='P11'
    *.db_unique_name='P11_primary'
    *.dg_broker_start=TRUE
    *.dml_locks=4000
    *.event='10191 trace name context forever, level 1'
    *.FAL_Client='to_primary'
    *.FAL_Server='to_standby'
    *.FILESYSTEMIO_OPTIONS='setall'
    *.job_queue_processes=1
    *.log_archive_config='nodg_config'
    *.log_archive_dest_1='LOCATION=C:\oracle\P11\oraarch\P11arch VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=P11_primary'
    p11.log_archive_dest_1='location="C:\oracle\P11\oraarch\P11arch"','valid_for=(ONLINE_LOGFILE,ALL_ROLES)'
    *.log_archive_dest_2=''
    *.log_archive_dest_state_1='enable'
    p11.log_archive_dest_state_1='ENABLE'
    *.log_archive_dest_state_2='ENABLE'
    p11.log_archive_format='ARC%S_%R.%T'
    *.log_archive_max_processes=10
    *.log_archive_min_succeed_dest=1
    p11.log_archive_trace=0
    *.log_buffer=1048576
    *.log_checkpoint_interval=0
    *.log_checkpoints_to_alert=true
    *.open_cursors=800
    *.parallel_execution_message_size=16384
    *.pga_aggregate_target=347917516
    *.processes=80
    *.query_rewrite_enabled='false'
    *.recyclebin='off'
    *.remote_login_passwordfile='exclusive'
    *.remote_os_authent=true
    *.replication_dependency_tracking=false
    *.sessions=96
    *.sga_max_size=521876275
    *.shared_pool_reserved_size=26093813
    *.shared_pool_size=300938137
    *.sort_area_retained_size=0
    *.sort_area_size=2097152
    p11.standby_archive_dest=''
    *.standby_file_management='AUTO'
    *.star_transformation_enabled='true'
    *.undo_management='AUTO'
    *.undo_retention=43200
    *.undo_tablespace='PSAPUNDO'
    *.user_dump_dest='D:\oracle\P11\saptrace\usertrace'
    pfile of standy DB
    *._B_TREE_BITMAP_PLANS=FALSE
    *._IN_MEMORY_UNDO=FALSE
    *._INDEX_JOIN_ENABLED=FALSE
    *._OPTIM_PEEK_USER_BINDS=FALSE
    *._OPTIMIZER_MJC_ENABLED=FALSE
    *._SORT_ELIMINATION_COST_RATIO=10
    *._TABLE_LOOKUP_PREFETCH_SIZE=0
    *.background_dump_dest='D:\oracle\P11\saptrace\background'
    *.compatible='10.2.0'
    *.control_file_record_keep_time=30
    *.control_files='D:\oracle\P11\origlogA\cntrl\control01.ctl','D:\oracle\P11\origlogB\cntrl\control02.ctl','D:\oracle\P11\sapdata1\cntrl\control03.ctl'
    *.core_dump_dest='D:\oracle\P11\saptrace\background'
    *.db_block_size=8192
    *.db_cache_size=155870822
    *.db_files=254
    *.db_name='P11'
    *.db_unique_name='P11_disaster'
    *.dg_broker_start=TRUE
    *.dml_locks=4000
    *.event='10191 trace name context forever, level 1'
    *.FAL_Client='to_standby'
    *.FAL_Server='to_primary'
    *.FILESYSTEMIO_OPTIONS='setall'
    *.job_queue_processes=1
    *.log_archive_config='DG_CONFIG= (P11_primary, P11_disaster)'
    *.log_archive_dest_1='LOCATION=C:\oracle\P11\oraarch\P11arch VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=P11_disaster'
    *.log_archive_dest_2='SERVICE=to_primary LGWR ASYNC DELAY=5 VALID_FOR=(ONLINE_LOGFILES, PRIMARY_ROLE) DB_UNIQUE_NAME=P11_primary'
    *.log_archive_dest_state_1='enable'
    *.log_archive_dest_state_2='enable'
    *.log_archive_max_processes=10
    *.log_buffer=1048576
    *.log_checkpoint_interval=0
    *.log_checkpoints_to_alert=true
    *.open_cursors=800
    *.parallel_execution_message_size=16384
    *.pga_aggregate_target=207827763
    *.processes=80
    *.query_rewrite_enabled='false'
    *.recyclebin='off'
    *.remote_login_passwordfile='exclusive'
    *.remote_os_authent=true
    *.replication_dependency_tracking=false
    *.sessions=96
    *.sga_max_size=311741644
    *.shared_pool_reserved_size=15587082
    *.shared_pool_size=300870822
    *.sort_area_retained_size=0
    *.sort_area_size=2097152
    *.standby_file_management='AUTO'
    *.star_transformation_enabled='true'
    *.undo_management='AUTO'
    *.undo_retention=43200
    *.undo_tablespace='PSAPUNDO'
    *.user_dump_dest='D:\oracle\P11\saptrace\usertrace'
    Here are the alert logs of primary DB.
    LTER SYSTEM SET log_archive_dest_2='service="(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=PROD102)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=p11_disaster_XPT)(INSTANCE_NAME=p11)(SERVER=dedicated)))"',' ARCH SYNC NOAFFIRM delay=5 OPTIONAL max_failure=0 max_connections=1 reopen=300 db_unique_name="p11_disaster" register net_timeout=180 valid_for=(online_logfile,primary_role)' SCOPE=BOTH;
    Sat Jul 02 16:29:22 2011
    ALTER SYSTEM SET log_archive_dest_state_2='ENABLE' SCOPE=BOTH;
    Sat Jul 02 16:29:22 2011
    ALTER SYSTEM SET log_archive_trace=0 SCOPE=BOTH SID='p11';
    Sat Jul 02 16:29:22 2011
    ALTER SYSTEM SET log_archive_format='ARC%S_%R.%T' SCOPE=SPFILE SID='p11';
    Sat Jul 02 16:29:22 2011
    ALTER SYSTEM SET standby_archive_dest='' SCOPE=BOTH SID='p11';
    Sat Jul 02 16:29:22 2011
    ALTER SYSTEM SET log_archive_dest_1='location="C:\oracle\P11\oraarch\P11arch"','valid_for=(ONLINE_LOGFILE,ALL_ROLES)' SCOPE=BOTH SID='p11';
    Sat Jul 02 16:29:23 2011
    ALTER SYSTEM SET log_archive_dest_state_1='ENABLE' SCOPE=BOTH SID='p11';
    Sat Jul 02 16:29:23 2011
    ALTER SYSTEM SET standby_file_management='AUTO' SCOPE=BOTH SID='*';
    Sat Jul 02 16:29:23 2011
    ALTER SYSTEM SET archive_lag_target=0 SCOPE=BOTH SID='*';
    Sat Jul 02 16:29:23 2011
    ALTER SYSTEM SET log_archive_max_processes=10 SCOPE=BOTH SID='*';
    Sat Jul 02 16:29:23 2011
    ALTER SYSTEM SET log_archive_min_succeed_dest=1 SCOPE=BOTH SID='*';
    Sat Jul 02 16:29:27 2011
    Beginning log switch checkpoint up to RBA [0x3b7.2.10], SCN: 7939485
    Thread 1 advanced to log sequence 951
    Current log# 4 seq# 951 mem# 0: D:\ORACLE\P11\ORIGLOGB\LOG_G14M1.DBF
    Current log# 4 seq# 951 mem# 1: C:\ORACLE\P11\MIRRLOGB\LOG_G14M2.DBF
    Sat Jul 02 16:29:28 2011
    ALTER SYSTEM SET log_archive_dest_2='service="(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=PROD102)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=p11_disaster_XPT)(INSTANCE_NAME=p11)(SERVER=dedicated)))"',' ARCH SYNC NOAFFIRM delay=5 OPTIONAL max_failure=0 max_connections=1 reopen=300 db_unique_name="p11_disaster" register net_timeout=180 valid_for=(online_logfile,primary_role)' SCOPE=BOTH;
    Sat Jul 02 16:29:28 2011
    ALTER SYSTEM SET log_archive_dest_state_2='ENABLE' SCOPE=BOTH;
    Beginning log switch checkpoint up to RBA [0x3b8.2.10], SCN: 7939487
    Thread 1 advanced to log sequence 952
    Current log# 2 seq# 952 mem# 0: D:\ORACLE\P11\ORIGLOGB\LOG_G12M1.DBF
    Current log# 2 seq# 952 mem# 1: C:\ORACLE\P11\MIRRLOGB\LOG_G12M2.DBF
    Sat Jul 02 16:29:29 2011
    Error 12541 received logging on to the standby
    Check whether the listener is up and running.
    Sat Jul 02 16:29:29 2011
    Errors in file d:\oracle\p11\saptrace\background\p11_arc1_2396.trc:
    ORA-12541: TNS:no listener
    FAL[server, ARC1]: Error 12541 creating remote archivelog file '(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=PROD102)(PORT=1521)))(CONNECT_DATA=
    Here is the Alert log of standby
    RFS[2]: Identified database type as 'physical standby'
    Sat Jul 02 16:21:00 2011
    RFS[3]: Assigned to RFS process 1620
    RFS[3]: Identified database type as 'physical standby'
    Sat Jul 02 16:21:00 2011
    RFS[2]: Archived Log: 'C:\ORACLE\P11\ORAARCH\P11ARCH\ARC00947_0755040789.001'
    Sat Jul 02 16:21:00 2011
    RFS[3]: Archived Log: 'C:\ORACLE\P11\ORAARCH\P11ARCH\ARC00948_0755040789.001'
    Sat Jul 02 16:21:00 2011
    Media Recovery Log C:\ORACLE\P11\ORAARCH\P11ARCH\ARC00947_0755040789.001
    Identified End-Of-Redo for thread 1 sequence 947
    Sat Jul 02 16:21:01 2011
    Media Recovery End-Of-Redo indicator encountered
    Sat Jul 02 16:21:01 2011
    Media Recovery Applied until change 7934481
    Media Recovery archivelogs detected beyond End-Of-REDO
    Resetting standby activation ID 1369083708 (0x519a8f3c)
    Completed: Alter Database Recover Managed Standby Database
    Sat Jul 02 16:21:29 2011
    Alter Database Recover Managed Standby Database Disconnect
    MRP0 started with pid=28, OS id=996
    Managed Standby Recovery not using Real Time Apply
    parallel recovery started with 2 processes
    Clearing online redo logfile 1 D:\ORACLE\P11\ORIGLOGA\LOG_G11M1.DBF
    Clearing online log 1 of thread 1 sequence number 949
    Sat Jul 02 16:21:36 2011
    Completed: Alter Database Recover Managed Standby Database Disconnect
    Sat Jul 02 16:21:37 2011
    Clearing online redo logfile 1 complete
    Clearing online redo logfile 2 D:\ORACLE\P11\ORIGLOGB\LOG_G12M1.DBF
    Clearing online log 2 of thread 1 sequence number 946
    Clearing online redo logfile 2 complete
    Clearing online redo logfile 3 D:\ORACLE\P11\ORIGLOGA\LOG_G13M1.DBF
    Clearing online log 3 of thread 1 sequence number 944
    Clearing online redo logfile 3 complete
    Clearing online redo logfile 4 D:\ORACLE\P11\ORIGLOGB\LOG_G14M1.DBF
    Clearing online log 4 of thread 1 sequence number 945
    Clearing online redo logfile 4 complete
    Media Recovery Log C:\ORACLE\P11\ORAARCH\P11ARCH\ARC00948_0755040789.001
    Media Recovery Waiting for thread 1 sequence 949
    Sat Jul 02 16:22:37 2011
    RFS[1]: No standby redo logfiles created
    RFS[1]: Archived Log: 'C:\ORACLE\P11\ORAARCH\P11ARCH\ARC00949_0755040789.001'
    Sat Jul 02 16:22:37 2011
    RFS[1]: Archive log thread 1 sequence 949 available in 5 minute(s)
    Sat Jul 02 16:22:37 2011
    Redo Shipping Client Connected as PUBLIC
    -- Connected User is Valid
    RFS[4]: Assigned to RFS process 2200
    RFS[4]: Identified database type as 'physical standby'
    Primary database is in MAXIMUM PERFORMANCE mode
    Primary database is in MAXIMUM PERFORMANCE mode
    RFS[4]: No standby redo logfiles created
    Sat Jul 02 16:22:38 2011
    Media Recovery Delayed for 5 minute(s) (thread 1 sequence 949)
    Sat Jul 02 16:27:38 2011
    Media Recovery Log C:\ORACLE\P11\ORAARCH\P11ARCH\ARC00949_0755040789.001
    Media Recovery Waiting for thread 1 sequence 950 (in transit)
    Sat Jul 02 16:29:42 2011
    RFS[4]: Possible network disconnect with primary database
    Aborting archivelog file creation: C:\ORACLE\P11\ORAARCH\P11ARCH\ARC00950_0755040789.001
    If this a network disconnect, then this archivelog will be fetched again
    by GAP resolution mechanism.
    Please advice as i am not sure of i have created something in listener file for DGMGRL configuration..
    Regards

    DGMGRL> show configuration
    Configuration
    Name: my_dg
    Enabled: YES
    Protection Mode: MaxPerformance
    Fast-Start Failover: DISABLED
    Databases:
    P11_primary - Primary database
    P11_disaster - Physical standby database
    Current status for "my_dg":
    Warning: ORA-16607: one or more databases have failed
    DGMGRL> SHOW DATABASE 'P11_primary' 'StatusReport';
    STATUS REPORT
    INSTANCE_NAME SEVERITY ERROR_TEXT
    p11 ERROR ORA-16737: the redo transport service for standby database "P11_disaster" has an error
    p11 WARNING ORA-16715: redo transport-related property LogXptMode of standby database "P11_disaster" is inconsistent
    DGMGRL> SHOW DATABASE 'P11_primary' 'LogXptStatus';
    LOG TRANSPORT STATUS
    PRIMARY_INSTANCE_NAME STANDBY_DATABASE_NAME STATUS
    p11 P11_disaster ORA-12541: TNS:no listener
    After this when i check the status of listener at P11_disaster site it was up . I restarted the listener and found following message in listener log at standby ( p11_primary) . These are the last lines of listener log.
    03-JUL-2011 13:36:40 * (CONNECT_DATA=(SID=P11)(GLOBAL_NAME=TO_STANDBY.WORLD)(CID=(PROGRAM=d:\oracle\p11\102\bin\ORACLE.EXE)(HOST=PROD104)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.0.1.104)(PORT=2244)) * establish * P11 * 0
    03-JUL-2011 13:36:40 * (CONNECT_DATA=(SID=P11)(GLOBAL_NAME=TO_STANDBY.WORLD)(CID=(PROGRAM=d:\oracle\p11\102\bin\ORACLE.EXE)(HOST=PROD104)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.0.1.104)(PORT=2245)) * establish * P11 * 0
    03-JUL-2011 13:45:25 * ping * 0
    No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\P11.WORLDipc)))
    No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\P11ipc)))
    No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.0.1.102)(PORT=1527)))
    Listener completed notification to CRS on stop
    03-JUL-2011 13:45:34 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=p11adm))(COMMAND=stop)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=169869824)) * stop * 0
    TNSLSNR for 64-bit Windows: Version 10.2.0.2.0 - Production on 03-JUL-2011 13:45:42
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    System parameter file is D:\oracle\P11\102\network\admin\listener.ora
    Log messages written to D:\oracle\P11\102\network\log\listener.log
    Trace information written to D:\oracle\P11\102\network\trace\listener.trc
    Trace level is currently 0
    Started with pid=624
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\P11.WORLDipc)))
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\P11ipc)))
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.0.1.102)(PORT=1527)))
    Listener completed notification to CRS on start
    TIMESTAMP * CONNECT DATA [* PROTOCOL INFO] * EVENT [* SID] * RETURN CODE
    03-JUL-2011 13:45:46 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=p11adm))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=169869824)) * status * 0
    I am sure this is some configuration issue , however does not have clue :(

  • DGMGRL 11gr2 switchover issues

    Hi all,
    im new to 11gr2 datagaurd setup using DGMGRL and currently troubleshooting an issue with switchover which was setup by teammate and he is on annual leave.
    Details: 11gr2 linux 64-bit RHEL5
    both Prod and DR is configured with same DBNAME,INSTANCE,SERVICE and both share the same file system structure.
    below are my configuration:
    DGMGRL> connect sys@POZW1COL_PRD
    Password:
    Connected.
    DGMGRL> show configuration
    Configuration - COLDGCONFIG
    Protection Mode: MaxPerformance
    Databases:
    PCOLPRIM - Primary database
    PCOLSTBY - Physical standby database
    Fast-Start Failover: DISABLED
    Configuration Status:
    SUCCESS
    DGMGRL> show database 'PCOLPRIM'
    Database - PCOLPRIM
    Role: PRIMARY
    Intended State: TRANSPORT-ON
    Instance(s):
    POZW1COL
    Database Status:
    SUCCESS
    DGMGRL> show database 'PCOLSTBY'
    Database - PCOLSTBY
    Role: PHYSICAL STANDBY
    Intended State: APPLY-ON
    Transport Lag: 0 seconds
    Apply Lag: 0 seconds
    Real Time Query: OFF
    Instance(s):
    POZW1COL
    Database Status:
    SUCCESS
    scenario: SWICTHOVER to standby
    DGMGRL> SWITCHOVER TO 'PCOLSTBY'
    Performing switchover NOW, please wait...
    New primary database "PCOLSTBY" is opening...
    Operation requires shutdown of instance "POZW1COL" on database "PCOLPRIM"
    Shutting down instance "POZW1COL"...
    ORACLE instance shut down.
    Operation requires startup of instance "POZW1COL" on database "PCOLPRIM"
    Starting instance "POZW1COL"...
    ORACLE instance started.
    Database mounted.
    Switchover succeeded, new primary is "PCOLSTBY"
    DGMGRL> show configuration
    Configuration - COLDGCONFIG
    Protection Mode: MaxPerformance
    Databases:
    PCOLSTBY - Primary database
    PCOLPRIM - Physical standby database
    Fast-Start Failover: DISABLED
    Configuration Status:
    SUCCESS
    DGMGRL> show database 'PCOLPRIM'
    Database - PCOLPRIM
    Role: PHYSICAL STANDBY
    Intended State: APPLY-ON
    Transport Lag: 0 seconds
    Apply Lag: 0 seconds
    Real Time Query: OFF
    Instance(s):
    POZW1COL
    Database Status:
    SUCCESS
    DGMGRL> show database 'PCOLSTBY'
    Database - PCOLSTBY
    Role: PRIMARY
    Intended State: TRANSPORT-ON
    Instance(s):
    POZW1COL
    Database Status:
    SUCCESS
    SWICTHOVER TO PRIMARY (OLD PRIMARY):
    DGMGRL> SWITCHOVER TO 'PCOLPRIM'
    Performing switchover NOW, please wait...
    New primary database "PCOLPRIM" is opening...
    Operation requires shutdown of instance "POZW1COL" on database "PCOLSTBY"
    Shutting down instance "POZW1COL"...
    ORACLE instance shut down.
    Operation requires startup of instance "POZW1COL" on database "PCOLSTBY"
    Starting instance "POZW1COL"...
    Unable to connect to database
    ORA-12545: Connect failed because target host or object does not exist
    Failed.
    Warning: You are no longer connected to ORACLE.
    Please complete the following steps to finish switchover:
    start up and mount instance "POZW1COL" of database "PCOLSTBY"
    DGMGRL>
    above you could see the issue can anyone highlight me where it was wrong.

    Hi mahir,
    Now i tried to switch over from primary to standby.
    it was sucessfull,
    DGMGRL> SWITCHOVER TO 'PCOLSTBY'
    Performing switchover NOW, please wait...
    New primary database "PCOLSTBY" is opening...
    Operation requires shutdown of instance "POZW1COL" on database "PCOLPRIM"
    Shutting down instance "POZW1COL"...
    ORACLE instance shut down.
    Operation requires startup of instance "POZW1COL" on database "PCOLPRIM"
    Starting instance "POZW1COL"...
    ORACLE instance started.
    Database mounted.
    Switchover succeeded, new primary is "PCOLSTBY"
    Also contents from Primary datagaurd broker log.
    Command SWITCHOVER TO PCOLSTBY completed
    09/03/2012 09:05:44
    Starting Data Guard Broker bootstrap <<Broker Configuration File Locations:
    dg_broker_config_file1 = "/u01/app/oracle/product/db/11gR2/dbs/dr1PCOLPRIM.dat"
    dg_broker_config_file2 = "/u01/app/oracle/product/db/11gR2/dbs/dr2PCOLPRIM.dat"
    09/03/2012 09:05:47
    DMON Registering service PCOLPRIM_DGB with listener(s)
    Broker Configuration: "COLDGCONFIG"
    Protection Mode: Maximum Performance
    Fast-Start Failover (FSFO): Disabled, flags=0x0, version=0
    Primary Database: PCOLSTBY (0x02010000)
    Standby Database: PCOLPRIM, Enabled Physical Standby (0x01010000)
    09/03/2012 09:05:51
    Creating process RSM0
    09/03/2012 09:05:54
    *SQL Execution error=604, sql=[alter system set log_archive_dest_1='']. See error stack below.*
    ORA-00604: error occurred at recursive SQL level 1
    ORA-02097: parameter cannot be modified because specified value is invalid
    ORA-16028: new LOG_ARCHIVE_DEST_1 causes less destinations than LOG_ARCHIVE_MIN_SUCCEED_DEST requires09/03/2012 09:06:03
    Notifying Oracle Clusterware to buildup standby database after SWITCHOVER
    Data Guard notifying Oracle Clusterware to start services and other instances change
    Command SWITCHOVER TO PCOLPRIM completed

  • Data Guard Configuration Issue / ORA-16047

    So last night I decided to setup a test Physical Standby database. I had everything working correctly and when I started playing around with the Data Guard Broker I started having some problems. Now I can't get the logs to ship from the primary to the standby.
    Version: Primary and Standby
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE    11.2.0.1.0    Production
    TNS for Linux: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    OS: Primary and Standby
    [oracle@dgdb0 trace]$ uname -a
    Linux dgdb0.localdomain 2.6.32-100.28.5.el6.x86_64 #1 SMP Wed Feb 2 18:40:23 EST 2011 x86_64 x86_64 x86_64 GNU/LinuxI first noticed a problem with a large gap in sequence numbers.
    Standby
    SQL> SELECT sequence#, applied from v$archived_log order by sequence#;
    SEQUENCE# APPLIED
         8 YES
         9 YES
        10 YES
        11 YES
        12 YES
        13 YES
        14 YES
    7 rows selected.
    Primary
    SQL> archive log list;
    Database log mode           Archive Mode
    Automatic archival           Enabled
    Archive destination           USE_DB_RECOVERY_FILE_DEST
    Oldest online log sequence     37
    Next log sequence to archive   39
    Current log sequence           39Here is some of the configuration information on the primary:
    SQL> show parameter db_name
    NAME                     TYPE     VALUE
    db_name                  string     dgdb0
    SQL> show parameter db_unique_name
    NAME                     TYPE     VALUE
    db_unique_name                 string     dgdb0
    SQL> show parameter log_archive_config
    NAME                     TYPE     VALUE
    log_archive_config             string     dg_config=(dgdb0,dgdb1)
    SQL> show parameter log_archive_dest_2
    NAME                     TYPE     VALUE
    log_archive_dest_2             string     service=dgdb1 async valid_for=
                             (online_logfile,primary_role)
                             db_unique_name=dgdb1Standby parameters
    SQL> show parameter db_name
    NAME                     TYPE     VALUE
    db_name                  string     dgdb0
    SQL> show parameter db_unique_name
    NAME                     TYPE     VALUE
    db_unique_name                 string     dgdb1So I proceeded to run this query:
    SQL> SELECT error from v$archive_dest WHERE dest_name='LOG_ARCHIVE_DEST_2';
    ERROR
    ORA-16047: DGID mismatch between destination setting and target
    databaseThe error description is:
    Cause:       The DB_UNIQUE_NAME specified for the destination does not match the DB_UNIQUE_NAME at the destination.
    Action:     Make sure the DB_UNIQUE_NAME specified in the LOG_ARCHIVE_DEST_n parameter defined for the destination matches the DB_UNIQUE_NAME parameter defined at the destination.As you can see from above the DB_UNIQUE_NAME in the LOG_ARCHIVE_DEST_2 parameter matches that of the standby database.
    Also DG_BROKER_START is set to false on both the primary and standby databases.
    Finally, I've removed all the drc* files from the $ORACLE_HOME/dbs directories on both the primary and standby servers to ensure the broker is not configured.
    Where did I go wrong? How can I get the standby caught up and working correctly again?
    I apologized if I missed anything. I'm relatively new to standby databases.

    Centinul;
    I have noticed a couple things
    1. If you are running the query below from the standby you will probably always get the results you posted
    SELECT sequence#, applied from v$archived_log order by sequence#;
    What I do if run this from the primary and I add the "DEST_ID" column to the query.
    2. You might have better luck finding GAPS using these queries:
    select max(sequence#) from v$archived_log where applied='YES';
    select process,status from v$managed_standby;
    SELECT * FROM V$ARCHIVE_GAP;
    3. You are mixing SQL results with Data Broker, that can bite you. Not sure where you went wrong but I would create PFILE versions at both ends before trying to Data Broker. The you can review each setting and avoid issues before adding Data Broker. Data Broker will take control and you may even find it adds entries to your parameter file.
    The ORA-16047 is probably database parameter related and this should at least help answer the question. For example you might be missing log_archive_config on the Standby or soething. Comparing the two PFILE's should narrow this down
    I checked my Data Broker notes but did not find an ORA-16047, I managed ORA-01031, ORA-16675, ORA-12514, and ORA-16608.
    For me I decided it was a good idea to run Data Guard without Data Broker at first until I got the feel of it using SQL.
    Last of all if you have not already consider buying Larry Carpenter's "Oracle Data Guard 11g Handbook" In my humble opinion its worth every penny and more.
    Best Regards
    mseberg

  • Linux 10g versus Windows XP 10g Issue - ORA-07445: exception encountered

    I did a full database export using exp from a 10g Linux database:
    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Prod
    PL/SQL Release 10.2.0.2.0 - Production
    "CORE     10.2.0.2.0     Production"
    TNS for Linux: Version 10.2.0.2.0 - Production
    NLSRTL Version 10.2.0.2.0 - ProductionLinux version:
    Red Hat Enterprise Linux ES release 4 (Nahant Update 5)I installed Oracle 10g on Windows XP:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    PL/SQL Release 10.2.0.1.0 - Production
    "CORE     10.2.0.1.0     Production"
    TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - ProductionWindows XP version is:
    System:
        Microsoft Windows XP
        Professional
        Version 2002
        Service Pack 3
    Intel(R) Core(TM)2 CPU
    6300 @ 1.86GHz
    1.86 GHz, 3.25 GM or RAMI performed a full database import after creating the required tablespaces from the 10g database on Linux to Windows.
    On the Windows 10g database, I set Maximum SGA size to 1300 MB, and Total SGA size to 1000 MB. I set Aggregate PGA Target to 500 MB.
    This Windows box is going to be used by at most 2 developers for a change to our application that is not backward compatible (with respect to the database) with earlier versions of the application that uses the database. I was asked to create this so we could develop this branch without affecting the rest of the development team that are working on other enhancements on the Linux box.
    I then ran some packages that refresh the data in a set of tables. This runs through some code that exercises a lot of the database so I could uncover any issues.
    At a specific point in the execution of these packages I get the following error:
    ORA-07445: exception encountered: core dump [ACCESS_VIOLATION] [_qkkIsOJKey+299] [PC:0x1E58F73] [ADDR:0x80] [UNABLE_TO_READ] []I read the trace file and isolated it to a single, somewhat complex query. I tore the query apart into smaller queries, trying to isolate what was causing the issue. Whenever the core dump occurred, I was able to recover by simply closing the connection and opening a new connection. In my testing I found the specific query that raises the exception, and a less performing version of that query that does not cause the exception. Please note that this exception has never occurred on the Linux box (nor has it occurred on the beta or production database), and the code has been in place for close to 2 years.
    The code that causes the issue:
    SELECT UNIQUE
           oc.ogc_case_id AS oc_ogc_case_id,
           ogc.ogc_number AS ogc_number
      FROM (SELECT SUBSTR (REPLACE (afd.field_text, '-', '' ), 1, 6 )    AS ogc_number
              FROM ewoc_hw_snap.activity_field_data afd
             WHERE afd.afdcd_activity_field_data_key = (SELECT afdc.activity_field_data_key
                                                          FROM ewoc_hw_snap.activity_field_data_codes afdc
                                                         WHERE afdc.name = 'Case Number'
           ) ogc
      LEFT OUTER JOIN lct_snap.ogc_cases oc
            ON oc.ogc_number  = ogc.ogc_numberThe code that returns the same data, only slower, and does not raise the exception:
    SELECT UNIQUE
           (SELECT oc.ogc_case_id FROM lct_snap.ogc_cases oc WHERE oc.ogc_number = ogc.ogc_number ) AS oc_ogc_case_id,
           ogc.ogc_number AS ogc_number
      FROM (SELECT SUBSTR (REPLACE (afd.field_text, '-', '' ), 1, 6 )    AS ogc_number
              FROM ewoc_hw_snap.activity_field_data afd
             WHERE afd.afdcd_activity_field_data_key = (SELECT afdc.activity_field_data_key
                                                          FROM ewoc_hw_snap.activity_field_data_codes afdc
                                                         WHERE afdc.name = 'Case Number'
           ) ogcI executed both queries in SQL Developer version 3.0.04. SQL Developer gives the error message: No more data to read from socket
    Any ideas?
    The query shown above is as simple as I could pare it down to and still raise and then fix the issue. The fix to the package is not as simple as the second query shown above since there is more than one column of data that I need to return from the lct_snap.ogc_cases table. In any case, I shouldn't have to forgo using the LEFT OUTER JOIN. There must be something wrong with the Windows database. I didn't want to patch the Windows database without first checking on this forum to see if anyone had any less intensive potential solutions.
    I searched and found so many posts with the ORA-07445: exception encountered: core dump [ACCESS_VIOLATION] error, that I realize it's a somewhat generic error message.
    Edited by: Starlight Rider on Jun 2, 2011 10:01 AM

    Check this metalink note : 452951.1
    Regards
    Raj

  • Database links issue ORA-01017 ORA-02063

    Oracle 11g R1 , RHEL 5 64bit
    HI all,
    I am having this strange issue with my database links. They used to work in the past but now they are not. Here is what I have checked:
    - All the TNSnames.ora file entries are there and are correct...I double checked with tnsping
    - I changed all the passwords to be the same on all environments (DEV/QA/PROD)
    - I have dropped and re-created all the database links
    However, I still get the same error when I test them:
    ORA-01017: invalid username/password; logon denied ORA-02063: preceding line from <database_name>
    Here are the links created on DEV:
    SQL> select * from dba_db_links;
    OWNER DB_LINK USERNAME HOST CREATED
    PUBLIC FPRCQA.FPRC.OPHTH.WISC.EDU FPRCQA 01282009
    FPRCHR FPRCQA.FPRC.OPHTH.WISC.EDU FPRCHR FPRCQA 01282009
    PUBLIC FPRCPROD.FPRC.OPHTH.WISC.EDU FPRCPROD 01282009
    FPRCHR FPRCPROD.FPRC.OPHTH.WISC.EDU FPRCHR FPRCPROD 01282009
    The above links were created using the following syntax:
    SQL> conn sys as sysdba
    Enter password:
    Connected.
    SQL> create public database link FPRCQA.FPRC.OPHTH.WISC.EDU using 'FPRCQA';
    Database link created.
    SQL> create public database link FPRCPROD.FPRC.OPHTH.WISC.EDU using 'FPRCPROD';
    Database link created.
    SQL> conn fprchr
    Enter password:
    Connected.
    SQL> CREATE DATABASE LINK FPRCQA.FPRC.OPHTH.WISC.EDU CONNECT TO FPRCHR IDENTIFIED by <passwd> using 'FPRCQA';
    Database link created.
    SQL> CREATE DATABASE LINK FPRCPROD.FPRC.OPHTH.WISC.EDU CONNECT TO FPRCHR IDENTIFIED by <passwd> using 'FPRCPROD';
    Database link created.
    Now when I do a simple query, I get the error:
    SQL> select count(*) from fprchr.department@FPRCQA;
    select count(*) from fprchr.department@FPRCQA
    ERROR at line 1:
    ORA-01017: invalid username/password; logon denied
    ORA-02063: preceding line from FPRCQA
    I have read some notes on metalink, but they were talking about situations where you have a 10g database connecting to an 11g database and the whole password case-sensitivity issue, but this is not the case here as all the databases are 11g.
    I would appreciate any and all help on this issue.
    Thank you much.

    The documentation has the answer:
    user IDENTIFIED BY passwordSpecify the username and password used to connect to the remote database using a fixed user database link. If you omit this clause, the database link uses the username and password of each user who is connected to the database. This is called a connected user database link.>
    Since you haven't specified user/password in your public database links, then Oracle will try to create a connection on the remote db with the same user/password who is trying to use the database link. If the user doesn't exists or has a different password then you get an error (the same you mentioned in you original post)
    HTH
    Enrique

  • 11G Memory Issue - ORA-01438

    We have begun playing with OLAP for Oracle 11G. So far we have noticed this error popping up from time to time.
    ORA-01438: value larger than specified precision allowed for this column.
    We have generated this error when trying to return a large ammount of rows using the new select * from [CUBE]_View functionality and also every cube build I have built so far, only 2, has failed in the Analyze step after aggregation with this error.
    Anyone else notice this? Any thoughts? Any on 11G OLAP yet?

    Hi ZeroWing,
    Can you please log a TAR with Oracle Support so we can track this issue. I will research this and see if we have seen this during the beta and internal testing.
    Thanks
    Keith Laker
    Oracle EMEA Consulting
    BI Blog: http://oraclebi.blogspot.com/
    DM Blog: http://oracledmt.blogspot.com/
    BI on Oracle: http://www.oracle.com/bi/
    BI on OTN: http://www.oracle.com/technology/products/bi/
    BI Samples: http://www.oracle.com/technology/products/bi/samples/

  • Oracle 10g Issue [ORA-00932: inconsistent datatypes: expected ]

    Hi,
    The following Code Snippet works fine in Oracle 9i DB but gives "ORA-00932: inconsistent datatypes: expected - got -; " error in 10g DB. We are facing lot of issues with this since we migrated application to 10g
    create or replace procedure cca is
    TYPE Cur_OPCols_Typ IS REF CURSOR;
    l_Cur_OPCols Cur_OPCols_Typ;
    str VARCHAR2(32767) :='select sysdate, 123 from dual';
    TYPE StringTyp IS TABLE OF VARCHAR2(7000) INDEX BY BINARY_INTEGER;
    capture StringTyp;
    BEGIN
         Open l_Cur_OPCols FOR str;
         FETCH l_Cur_OPCols BULK COLLECT INTO capture;
    dbms_output.put_line (capture.COUNT);
         Close l_Cur_OPCols;
    END cca;
    Please advise...
    Regards,
    Chinmay

    But...
    SQL> select * from v$version;
    BANNER
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    PL/SQL Release 9.2.0.1.0 - Production
    CORE    9.2.0.1.0       Production
    TNS for Solaris: Version 9.2.0.1.0 - Production
    NLSRTL Version 9.2.0.1.0 - Production
    <br>
    <br>
    "afiedt.buf" 13 lines, 370 characters
      1  declare
      2   TYPE Cur_OPCols_Typ IS REF CURSOR;
      3   l_Cur_OPCols Cur_OPCols_Typ;
      4   str VARCHAR2(32767) :='select sysdate, 123 from dual';
      5   TYPE StringTyp IS TABLE OF VARCHAR2(7000) INDEX BY BINARY_INTEGER;
      6   capture StringTyp;
      7  BEGIN
      8   Open l_Cur_OPCols FOR str;
      9   FETCH l_Cur_OPCols BULK COLLECT INTO capture;
    10   dbms_output.put_line (capture.COUNT);
    11   Close l_Cur_OPCols;
    12* END cca;
    SQL> /
    declare
    ERROR at line 1:
    ORA-00932: inconsistent datatypes: expected - got -
    ORA-06512: at line 9                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Issue :ORA-01890:NLS error detected

    Hi all,
    i am using oracle 10g, when i execute below query
    Select column_1,column_2,column_3 from view_name
    where trunc(c_date) >to_date('05-24-2011','MM/dd/YYYY'));
    I am getting this error in Toad, but no errors in SQL developer.
    Error: ORA-01890:NLS error detected
    Please help me how can i solve this issue.
    thanks in advance
    karmaya

    That's nice.
    This isn't the TOAD forum, it's the JDeveloper/ADF forum
    You don't see an obvious problem with
    to_date('05-24-2011','MM/dd/YYYY')As in those date formats don't match at all?

  • Grid control switchover issue

    Hi,
    I have carried out the following
    a 10g database install on 2 servers
    enabled dataguard between them so I have a primary and a standby database.
    I then installed Grid Control onto each server using the opetion to install into an existing database. this worked.
    On the standby server opmnctl is shutdown and the database is a PHYSICAL STANDBY.
    when I do a dataguard switchover I see the standby database is now the primary. I restart opmnctl and go to the web browser to look at Grid Control.
    The issue I have is that Grid Control, even though it is on the standby server, points to the primary server. How can I change this behaviour
    When I first started Grid Control I had to perform the following actions
    [oracle@griddg bin]$ ./emctl status emkey
    Oracle Enterprise Manager 10g Release 3 Grid Control
    Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
    Please enter repository password:
    The Em Key exists in the Management Repository, but is not configured properly or is corrupted in the file system.
    Configure the Em Key by running "emctl config emkey -repos".
    [oracle@griddg bin]$ ./emctl config emkey -repos
    Oracle Enterprise Manager 10g Release 3 Grid Control
    Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
    Please enter repository password:
    The Em Key has been configured successfully.
    after this gridcontrol was able to start but points to the wrong host.
    rgds
    alan

    hi,
    the steps I took are as follows
    1 - precreate a database on the primary and standby.
    2 - configure the tnsnames and listener files so that the databases can talk to each other
    3 - create a standby control file from the primary database.
    4 - copy all database files from the primary to the standby
    5 - copy the standby controlfile to the standby
    6 - start the primary database
    7 - start the standby database but only mounted, check database_role from v$database; it should be physical standby
    8 - install Grid Control on the primary server with the option to install onto an existing database. Complete this installation.
    9 - Install Grid Control onto the standby server with the option to install onto an existing database. Complete the installation and then carry out an 'opmnctl stopall'
    10 - all being well Grid Control should now show both hosts and databases.
    11 - create a dataguard configuration from within GC
    The standby database cannot be discovered correctly in GC and this must be because it is in a mount state, not sure what to do about this. This then meant that I had to carry out a switchover from the command line. I am just testing this now and will post back when complete.
    regards
    Alan

  • WLC 5508 Switchover Issue

    Hi There,
       Our issue is about a WLC 5508 conected to a HP Switch L3 model HP7500 using link-aggregation. Sometimes the controller change to the secondary box and log the error message: Switchover Reason = Default gateway is not reachable, Switchover Time 
    Manufacturer's Name.............................. Cisco Systems Inc.
    Product Name..................................... Cisco Controller
    Product Version.................................. 7.6.120.0
    Bootloader Version............................... 1.0.1
    Field Recovery Image Version..................... 6.0.182.0
    Firmware Version................................. FPGA 1.7, Env 1.8, USB console 2.2
    Build Type....................................... DATA + WPS
    management                       LAG  untagged x.y.z.a    Static  Yes    No
    redundancy-management            LAG  untagged x,y.z.b     Static  No     No
    redundancy-port                  -    untagged 169.254.0.12    Static  No     No
    (Cisco Controller) >show redundancy summary
                Redundancy Mode = SSO ENABLED
                    Local State = ACTIVE
                     Peer State = STANDBY HOT
                           Unit = Primary
                        Unit ID = 6C:41:6A:5F:75:00
               Redundancy State = SSO (Both AP and Client SSO)
                   Mobility MAC = 6C:41:6A:5F:75:00
    Average Redundancy Peer Reachability Latency = 488 usecs
    Average Management Gateway Reachability Latency = 748 usecs
    Redundancy Management IP Address................. x.y.z.a
    Peer Redundancy Management IP Address............ x.y.z.b
    Redundancy Port IP Address....................... 169.254.0.12
    Peer Redundancy Port IP Address.................. 169.254.0.13
    Peer Service Port IP Address..................... 0.0.0.0
    Switchover History[1]:
    Previous Active = 10.140.0.13, Current Active = x.y.z.a
    Switchover Reason = Default gateway is not reachable, Switchover Time = Tue Aug 19 05:32:44 2014
    Any idea what´s the problem could be?  We check alllan environment spanning-tree, vlan, routing, no physical issues.
    My best regards
    Adriano Porcaro

    Show sysinfo results :
    Manufacturer's Name.............................. Cisco Systems Inc.
    Product Name..................................... Cisco Controller
    Product Version.................................. 7.0.116.0
    Bootloader Version............................... 1.0.1
    Field Recovery Image Version..................... 6.0.182.0
    Firmware Version................................. FPGA 1.3, Env 1.6, USB console 1.27
    Build Type....................................... DATA + WPS

  • OWB Issue|| ORA-12838: cannot read/modify an object after modifying it in

    Hi
    I am not able to enter the data into the staging table .
    it is also not throwing any error ,only giving warnings.
    so as a next step i just took the intermediate result generation and try to run it
    but it is giving me an error in that
    ORA-12838: cannot read/modify an object after modifying it in parallel
    Can you please help me in tthis case.
    Thanks

    Hello,
    The error ORA-12838 occurs if you try to issue SELECT/DML immediately after completing parallel DML, within one transaction - it's not permitted.
    Start another transaction - issue Commit or Rollback first.

  • Dataguard Post Switchover issue

    Hi All,
    OS:AIX
    DB:11.2.0.3
    I have just performed the switcover from my primary to standby database. The switchover was smooth but the archives are not getting shipped and applied on the new DR. I have checked the process and found that the RFS process is not up. Upon further checking I have found that the alert of my new DR is giving me this line
    Resetting standby activation ID 0 (0x0)
    Please let me know what does this indicates
    Regards

    The message Resetting standby activation ID 0 (0x0)" is a normal message after switchover. It hard to think about a problem with so little details. Check this metalink note, this might help. There was also a similar kind of bug but in 10.2.0.4
    11.2 Data Guard Physical Standby Switchover Best Practices using SQL*Plus (Doc ID 1304939.1)
    There was also a similar kind of bug but in 10.2.0.4.  Workaround is to reboot the database. You can try rebooting the database. It might fix the issue.
    Bug 5476236 - RFS logminer client inoperative after physical standby switchover to primary (Doc ID 5476236.8)

Maybe you are looking for

  • Inserting old swf into new fla with different frame rate

    Hi, I'm trying to insert an old banner ad into a new Flash site.  The problem is, the banner I made at 20 frames per second, and the Flash site is set to 41, so it literally plays the banner twice as fast.  Any ideas as to what I can do about this? 

  • External drive filling up with TM

    I set up TM a few days ago and have been very happy with it until tonight when I realised that my external disk is filling up very quickly. Let me explain... I have a 320GB Lacie disk with about 300GB actually available to use. After my first TM back

  • Hey, I had met a problem with installation. Can any one help me?

    Hi everyone, I'm an user of Windows 7(64 bit), I had just download "Master Collection CS5.5" Everything are fine but Adobe Acrobat Professional can't install on my computer. There are the details..: Exit Code: 6 --------------------------------------

  • No connection after installing firmware 1.10.03 on brand new Zen Nano P

    Hi all, After I installed the new firmware, .0.03, my Zen Nano Plus is no longer recognised by my computer (it seems to work fine otherwise). What should I do? I have tried this on not just one, but three different computers, with no luck, even thoug

  • HT3775 what do i need to play a .avi video ?

    i downloaded a video to watch and the format is as follows   xyz.avi when i go to play the video it keeps stating that quicktime cannot open.  so i look into it and it shows that ...... AVI (Motion JPEG only) which i beleive is the video i am trying