VPD: Column Level Masking - Error: ORA-28104: input value for sec_relevant_cols is not valid

Hi Gurus,
I am trying to mask the secured column from the table for one specified user, Here is the detail of DB and code which I am using to apply the security:
DB Version: Oracle Database 11g Enterprise Edition Release 11.1.0.7.0
Security Function:
create or replace function kr_sec_function_papf(p_object_schema IN VARCHAR2,
p_object_name VARCHAR2)
return varchar2
as
p_nid varchar2(200);
whoami varchar2(100);
begin
if SYS_CONTEXT('USERENV', 'SESSION_USER') = 'VPDTEST'
then
p_nid := 'national_identifier = national_identifier';
return (p_nid);
else
p_nid := '1=2';
return (p_nid);
end if;
end kr_sec_function_papf;
Code to Add Policy:
BEGIN
DBMS_RLS.ADD_POLICY(
object_schema => 'APPS',
object_name => 'PER_ALL_PEOPLE_F',
policy_name => 'secure_emp',
policy_function => 'kr_sec_function_papf',
statement_types => 'SELECT',
sec_relevant_cols=>'NATIONAL_IDENTIFIER',
sec_relevant_cols_opt=>DBMS_RLS.ALL_ROWS);
END;
I am getting error while executing the above plsql block, Error is:
ORA-28104: input value for sec_relevant_cols is not valid
ORA-06512: at "SYS.DBMS_RLS", line 20
ORA-06512: at line 2
Any one please help me to resolve the issue.
Thanks in Advance.
~Krishna Nand Singh

Hi Every one,
I got this issue resolved.
The issue is with parameter object_schema => 'APPS' , the object schema name is 'HR' and APPS has synonym with the same name.
The Correct code should be:
BEGIN
DBMS_RLS.ADD_POLICY(
object_schema => 'HR',
object_name => 'PER_ALL_PEOPLE_F',
policy_name => 'secure_emp',
policy_function => 'kr_sec_function_papf',
statement_types => 'SELECT',
sec_relevant_cols=>'NATIONAL_IDENTIFIER',
sec_relevant_cols_opt=>DBMS_RLS.ALL_ROWS);
END;
Thanks,
Krishna Nand Singh

Similar Messages

  • EXEC SQL Error: ORA-01401: Inserted value too large for column

    Getting this SQL Error: ORA-01401: Inserted value too large for column..on an EXEC SQL Insert statement when writing to an
    external Oracle DB from SAP.
    On further analysis..it appears that this happens to the fields..when the string length matches the field length.
    Example:  Plant field is defined as char(4) on the SAP side and it is a Varchar2(4) on the Oracle side.
    When a value like '1015' is passed thru a variable in the insert statement then this ORA-01401 error pops up.
    No error:
       - if the value '1015' is passed directly in the insert statement to the external table  (or)
       - when a value with 3 chars or less(like the first three chars..101) is passed thru a variable  defined as 'Plant(4) type c'.
       - when using EXEC sql within SAP
       - when reading from the external db table
    This was working ok until the  Oracle Patch P9147110 was installed recently.
    Any suggestions !

    Hello Dvas,
    what's the characterset of your external database?
    What's the column definition in your external database (byte or character based)?
    If you use a characeterset like UTF8 it is possible, that one character needs more than one byte and then you will run into such kind of issues if the definition is too small.
    Regards
    Stefan

  • Snapshot refresh error:  ora-01401 inserted value too large for column

    I have an error ora-01401 "Inserted value too large for column" when I try to do a refresh on a group at the materialized view site.
    My model is 1 master replicating to a readonly materialized view site. I have 2 refresh groups for separate sets of tables. 1 refresh group work fine...the other I got the above error.
    I have doubled the rbs and system tablespace without any help thinking that I must be running out of default rollback segment space.
    Anyone has this before?

    The error is related to a field, not to any tablespace. This normaly happens to me when I change the lenght or resolution of a field in the base tables. The structure changes don't "flow" to the materialized view! I must "regenerate" them. Normally droping and creating it again to make them receive the new lenght of that field.
    Sometimes, when the field changed is not part of any primary key I have changes directly the field in the materialized view as if it was a normal table.
    Hope this helps
    Luis

  • ORA-23460: missing value for column column name in resolution method

    Hi All,
    We have implemented bi-directional replication via oracle streams..Oracle 10g 10.2.0.4
    We are getting following error in conflict resolution .ORA-23460: missing value for column "ASSIGNED_APPL_USER_ID" in resolution method "<method>" for
    "TMADMIN"."PATIENT_VISITS"."REP_UPDATE" ORA-01403: no data found .
    Above column ASSIGNED_APPL_USER_ID is NULL column ,We are using MAXIMUM resolution method for update conflict handler .We tried many times on toad the same scenarios and working fine.
    We have set supplemental logging on primay and unique columns.
    I found many docs on internet and they all said add supplemental logging on all columns.
    We did set up like this ...:
    DECLARE
    COLS DBMS_UTILITY.NAME_ARRAY;
    BEGIN
    cols(1) := 'STUDY_ID';
    cols(2) := 'KENDLE_STUDY_SUB_ID';
    cols(3) := 'SITE_ID';
    cols(4) := 'PATIENT_ID';
    cols(5) := 'VISIT_NUMBER';
    cols(6) := 'VISIT_TYPE';
    cols(7) := 'VISIT_DATE';
    cols(8) := 'CRF_COLLECTION_DATE';
    cols(9) := 'DT_CREATED';
    cols(10) := 'DT_MODIFIED';
    cols(11) := 'MODIFIED_BY';
    cols(12) := 'MONITOR_VISIT_DATE';
    cols(13) := 'UNSCHEDULED_VISIT_REASON';
    cols(14) := 'LAST_SCHEDULED_VISIT_NUMBER';
    cols(15) := 'VISIT_DATE_IN_TRIALBASE';
    cols(16) := 'PROJECTED_VISIT_DATE';
    cols(17) := 'SEND_CERTIFIED_LETTER_YN';
    cols(18) := 'ASSIGNED_APPL_USER_ID';
    cols(19) := 'DATE_CERTIFIED_LETTER_SENT';
    cols(20) := 'DURATION_OF_CALL_IN_MINUTES';
    cols(21) := 'COMPLETED_APPL_USER_ID';
    cols(22) := 'CALL_STATUS';
    cols(23) := 'VISIT_HYPERLINK';
    cols(24) := 'NEXT_CALL_DATE';
    cols(25) := 'DT_PMNT_REQUESTED_TO_SPONSOR';
    cols(26) := 'VISIT_DATE_NAP_YN';
    cols(27) := 'MONITOR_VISIT_DATE_NAP_YN';
    cols(28) := 'CRF_COLLECTION_DATE_NAP_YN';
    cols(29) := 'IMPORTED_SUBJECT_VISIT_DATE';
    cols(30) := 'REMINDER_SENT_DATE';
    DBMS_APPLY_ADM.SET_UPDATE_CONFLICT_HANDLER(
    OBJECT_NAME =>'TMADMIN.PATIENT_VISITS',
    METHOD_NAME =>'MAXIMUM',
    RESOLUTION_COLUMN =>'DT_MODIFIED',
    COLUMN_LIST =>cols);
    END;
    DT_MODIFIED is our resolution columns......
    Any help would be appreciate...
    Thanks in advance.
    Thanks,
    Nick.

    You should post this question the Oracle Server forums.
    Good luck!
    Warm regards.
    ashok

  • Database not found/Error: ORA-16621: database name for ADD DATABASE must be

    I am new to Data Guard and am trying to set up Data Guard Broker. I had created a configuration file with both my primary and standby databases and at one time I could show both databases. But now I can no longer show the standby database nor can I enable, disable or reinstate it. Here is what I have:
    Primary Database: orcl10g
    Standby Database: 10gSB
    DGMGRL> show configuration
    Configuration
    Name: orcl10g
    Enabled: YES
    Protection Mode: MaxPerformance
    Fast-Start Failover: DISABLED
    Databases:
    orcl10g - Primary database
    10gSB - Physical standby database
    Current status for "orcl10g":
    SUCCESS
    DGMGRL> show database verbose orcl10g
    Database
    Name: orcl10g
    Role: PRIMARY
    Enabled: YES
    Intended State: ONLINE
    Instance(s):
    orcl10g
    Properties:
    InitialConnectIdentifier = 'orcl10g'
    LogXptMode = 'ASYNC'
    Dependency = ''
    DelayMins = '0'
    Binding = 'OPTIONAL'
    MaxFailure = '0'
    MaxConnections = '1'
    ReopenSecs = '300'
    NetTimeout = '180'
    LogShipping = 'ON'
    PreferredApplyInstance = ''
    ApplyInstanceTimeout = '0'
    ApplyParallel = 'AUTO'
    StandbyFileManagement = 'AUTO'
    ArchiveLagTarget = '0'
    LogArchiveMaxProcesses = '30'
    LogArchiveMinSucceedDest = '1'
    DbFileNameConvert = '10gSB, orcl10g'
    LogFileNameConvert = '/oracle/oracle/product/10.2.0/oradata/orcl10g/redo01.log, /oracle/oracle/product/10.2.0/oradata/10gSB/redo01.log, /oracle/oracle/product/10.2.0/oradata/orcl10g/redo02.log, /oracle/oracle/product/10.2.0/oradata/10gSB/redo02.log, /oracle/oracle/product/10.2.0/oradata/orcl10g/redo03.log, /oracle/oracle/product/10.2.0/oradata/10gSB/redo03.log'
    FastStartFailoverTarget = ''
    StatusReport = '(monitor)'
    InconsistentProperties = '(monitor)'
    InconsistentLogXptProps = '(monitor)'
    SendQEntries = '(monitor)'
    LogXptStatus = '(monitor)'
    RecvQEntries = '(monitor)'
    HostName = 'remarkable.mammothnetworks.com'
    SidName = 'orcl10g'
    LocalListenerAddress = '(ADDRESS=(PROTOCOL=tcp)(HOST=remarkable.mammothnetworks.com)(PORT=1521))'
    StandbyArchiveLocation = '/oracle/flash_recovery_area/orcl10g/archivelog'
    AlternateLocation = ''
    LogArchiveTrace = '1024'
    LogArchiveFormat = '%t_%s_%r.arc'
    LatestLog = '(monitor)'
    TopWaitEvents = '(monitor)'
    Current status for "orcl10g":
    SUCCESS
    DGMGRL> show database verbose 10gSB
    Object "10gsb" was not found
    DGMGRL>
    DGMGRL> remove database 10gSB
    Object "10gsb" was not found
    DGMGRL>
    DGMGRL> reinstate database 10gSB
    Object "10gsb" was not found
    DGMGRL>
    DGMGRL> enable database 10gSB
    Object "10gsb" was not found
    DGMGRL>
    DGMGRL> add database '10gSB' as
    connect identifier is 10gSB
    maintained as physical;Error: ORA-16621: database name for ADD DATABASE must be unique
    Failed.
    How can I get Data Guard to see the standby database correctly again?

    Thank you for the constructive feedback. I have been able to make progress on this issue.
    I did check the Data Guard Log files as you suggested. I did not find anything when I checked them before but this time I found the following:
    DG 2011-06-16-17:23:18 0 2 0 RSM detected log transport problem: log transport for database '10gSB' has the following error.
    DG 2011-06-16-17:23:18 0 2 0 RSM0: HEALTH CHECK ERROR: ORA-16737: the redo transport service for standby database "10gSB" has an error
    DG 2011-06-16-17:23:18 0 2 0 NSV1: Failed to connect to remote database 10gSB. Error is ORA-12514
    DG 2011-06-16-17:23:18 0 2 0 RSM0: Failed to connect to remote database 10gSB. Error is ORA-12514
    DG 2011-06-16-17:23:18 0 2 753988034 Operation CTL_GET_STATUS cancelled during phase 2, error = ORA-16778
    DG 2011-06-16-17:23:18 0 2 753988034 Operation CTL_GET_STATUS cancelled during phase 2, error = ORA-16778
    I verified that I am able to connect to both the primary and standby databases via external connections:
    -bash-3.2$ lsnrctl status
    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 17-JUN-2011 12:41:03
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    Start Date 17-JUN-2011 01:40:30
    Uptime 0 days 11 hr. 0 min. 32 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /oracle/oracle/product/10.2.0/db_1/network/admin/listener.ora
    Listener Log File /oracle/oracle/product/10.2.0/db_1/network/log/listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=remarkable.mammothnetworks.com)(PORT=1521)))
    Services Summary...
    Service "10gSB" has 1 instance(s).
    Instance "10gSB", status READY, has 1 handler(s) for this service...
    Service "10gSB_DGB" has 1 instance(s).
    Instance "10gSB", status READY, has 1 handler(s) for this service...
    Service "10gSB_XPT" has 1 instance(s).
    Instance "10gSB", status READY, has 1 handler(s) for this service...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "orcl10g" has 1 instance(s).
    Instance "orcl10g", status READY, has 1 handler(s) for this service...
    Service "orcl10gXDB" has 1 instance(s).
    Instance "orcl10g", status READY, has 1 handler(s) for this service...
    Service "orcl10g_DGB" has 1 instance(s).
    Instance "orcl10g", status READY, has 1 handler(s) for this service...
    Service "orcl10g_XPT" has 1 instance(s).
    Instance "orcl10g", status READY, has 1 handler(s) for this service...
    The command completed successfully
    -bash-3.2$
    -bash-3.2$
    -bash-3.2$ sqlplus system/dbas4ever@orcl10g
    SQL*Plus: Release 10.2.0.1.0 - Production on Fri Jun 17 12:43:41 2011
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    SQL> quit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    -bash-3.2$ sqlplus system/dbas4ver@10gSB
    SQL*Plus: Release 10.2.0.1.0 - Production on Fri Jun 17 12:43:59 2011
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    ERROR:
    ORA-01033: ORACLE initialization or shutdown in progress <== I think this is normal since the database is in mount mode
    Enter user-name:
    I also checked the listener log file and did see and error associated with a known bug:
    WARNING: Subscription for node down event still pending
    So I added the following to the listener.ora file and bounced the listener:
    SUBSCRIBE_FOR_NODE_DOWN_EVENT_LISTENER=OFF
    That seems to have taken care of the error.
    The following is my listener.ora file:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /oracle/oracle/product/10.2.0/db_1)
    (PROGRAM = extproc)
    (SID_DESC = ( GLOBAL_DBNAME = 10gsb_DGMGRL.remarkable.mammothnetworks.com )
    ( SERVICE_NAME = 10gsb.remarkable.mammothnetworks.com )
    ( SID_NAME = 10gsb )
    ( ORACLE_HOME = /oracle/oracle/product/10.2.0/db_1 )
    (SID_DESC = ( GLOBAL_DBNAME = orcl10g_DGMGRL.remarkable.mammothnetworks.com )
    ( SERVICE_NAME = orcl10g.remarkable.mammothnetworks.com )
    ( SID_NAME = orcl10g )
    ( ORACLE_HOME = /oracle/oracle/product/10.2.0/db_1 )
    (SID_DESC = ( GLOBAL_DBNAME = orcl10g.remarkable.mammothnetworks.com )
    ( SERVICE_NAME = orcl10g.remarkable.mammothnetworks.com )
    ( SID_NAME = orcl10g )
    ( ORACLE_HOME = /oracle/oracle/product/10.2.0/db_1 )
    (SID_DESC = ( GLOBAL_DBNAME = 10gsb.remarkable.mammothnetworks.com )
    ( SERVICE_NAME = 10gsb.remarkable.mammothnetworks.com )
    ( SID_NAME = 10gsb )
    ( ORACLE_HOME = /oracle/oracle/product/10.2.0/db_1 )
    SUBSCRIBE_FOR_NODE_DOWN_EVENT_LISTENER=OFF
    I again tried connecting externally to the standby database:
    -bash-3.2$ sqlplus system/dbas4ever@10gSB
    SQL*Plus: Release 10.2.0.1.0 - Production on Fri Jun 17 13:09:00 2011
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    ERROR:
    ORA-01033: ORACLE initialization or shutdown in progress
    Enter user-name:
    and see this in the listener.log file:
    17-JUN-2011 13:10:22 * (CONNECT_DATA=(SERVICE_NAME=10gSB_XPT)(SERVER=dedicated)(CID=(PROGRAM=oracle)(HOST=remarkable.mammothnetworks.com)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=199.187.124.130)(PORT=11357)) * establish * 10gSB_XPT * 0
    17-JUN-2011 13:10:22 * (CONNECT_DATA=(SERVICE_NAME=10gSB_XPT)(SERVER=dedicated)(CID=(PROGRAM=oracle)(HOST=remarkable.mammothnetworks.com)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=199.187.124.130)(PORT=11358)) * establish * 10gSB_XPT * 0
    17-JUN-2011 13:10:24 * service_update * 10gSB * 0
    17-JUN-2011 13:10:30 * (CONNECT_DATA=(SID=orcl10g)(CID=(PROGRAM=perl)(HOST=remarkable.mammothnetworks.com)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=25119)) * establish * orcl10g * 0
    17-JUN-2011 13:10:30 * (CONNECT_DATA=(SID=orcl10g)(CID=(PROGRAM=perl)(HOST=remarkable.mammothnetworks.com)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=25120)) * establish * orcl10g * 0
    17-JUN-2011 13:10:30 * (CONNECT_DATA=(SID=orcl10g)(CID=(PROGRAM=emagent)(HOST=localhost.localdomain)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=25121)) * establish * orcl10g * 0
    17-JUN-2011 13:11:22 * (CONNECT_DATA=(SERVICE_NAME=10gSB_XPT)(SERVER=dedicated)(CID=(PROGRAM=oracle)(HOST=remarkable.mammothnetworks.com)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=199.187.124.130)(PORT=11420)) * establish * 10gSB_XPT * 0
    17-JUN-2011 13:11:22 * (CONNECT_DATA=(SERVICE_NAME=10gSB_XPT)(SERVER=dedicated)(CID=(PROGRAM=oracle)(HOST=remarkable.mammothnetworks.com)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=199.187.124.130)(PORT=11422)) * establish * 10gSB_XPT * 0
    17-JUN-2011 13:11:24 * service_update * 10gSB * 0
    I tried again to see the database in Data Guard Broker:
    DGMGRL> show database 10gSB
    Object "10gsb" was not found
    however, I then was able to add the database in Data Guard Broker:
    DGMGRL> add database 10gSB
    as connect identifier is 10gSB
    maintained as physical;Database "10gsb" added <== this is progress!!!
    However the configuration shows the following:
    DGMGRL> show database 10gSB
    Database
    Name: 10gsb
    Role: PHYSICAL STANDBY
    Enabled: NO
    Intended State: OFFLINE
    Instance(s):
    10gSB
    Current status for "10gsb":
    DISABLED <=====
    So I tried to enable the database:
    DGMGRL> enable database 10gSB
    Error: ORA-16626: failed to enable specified object
    Failed.
    and I tried to reinstate the database:
    DGMGRL> reinstate database 10gSB
    Reinstating database "10gsb", please wait...
    Error: ORA-16653: failed to reinstate database
    Failed.
    Reinstatement of database "10gsb" failed
    So I checked the configuration and now see two entries for the standby database but with case differences:
    DGMGRL> show configuration
    Configuration
    Name: orcl10g
    Enabled: YES
    Protection Mode: MaxPerformance
    Fast-Start Failover: DISABLED
    Databases:
    orcl10g - Primary database
    10gSB - Physical standby database
    10gsb - Physical standby database (disabled)
    Current status for "orcl10g":
    SUCCESS
    Question: How do I get rid of 10gSB and enable 10gsb?

  • Error: ORA-16532: Data Guard broker configuration does not exist

    Hi there folks. Hope everyone is having a nice weekend.
    Anyways, we have a 10.2.0.4 rac primary and a 10.2.0.4 standby physical standby. We recently did a switchover and the dgbroker files automatically got created in the Oracle_home/dbs location of the primary. Now need to move these files to the common ASM DG. For this, I followd the steps from this doc:
    How To Move Dataguard Broker Configuration File On ASM Filesystem (Doc ID 839794.1)
    The only exception to this case is that I have to do this on a Primary and not a standby so I am disabling and enabling the Primary(and not standby as mentioned in below steps)
    To rename the broker configuration files in STANDBY to FRA/MYSTD/broker1.dat and FRA/MYSTD/broker2.dat, Follow the below steps
    1. Disable the standby database from within the broker configuration
    DGMGRL> disable database MYSTD;
    2. Stop the broker on the standby
    SQL> alter system set dg_broker_start = FALSE;
    3. Set the dg_broker_config_file1 & 2 parameters on the standby to the appropriate location required.
    SQL> alter system set dg_broker_config_file1 = '+FRA/MYSTD/broker1.dat';
    SQL> alter system set dg_broker_config_file2 = '+FRA/MYSTD/broker2.dat'
    4. Restart the broker on the standby
    SQL> alter system set dg_broker_start = TRUE
    5. From the primary, enable the standby
    DGMGRL> enable database MYSTD;
    6. Broker configuration files will be created in the new ASM location.
    I did so but when I try to enable the Primary back I get this:
    Error: ORA-16532: Data Guard broker configuration does not exist
    Configuration details cannot be determined by DGMGRL
    Form this link,(Errors setting up DataGuard Broker it would seem that I would need to recreate the configuration....Is that correct ? If yes then how come Metalink is missing this info of recreating the configuration... OR is it that that scenario wouldnt be applicable in my case ?
    Thanks for your help.

    Yes I can confirm from the gv$spparameter view that the changes are effective for all 3 instances. From the alert log the alter system didnt throw u pany errros. I didnt restart the instances though since I dont have the approvals yet. But I dont think thats required.

  • Error: ORA-16525: the Data Guard broker is not yet available

    Hi ,
    After upgrading from 11201 to 11203 ON AIX GI/RDBMS on standby but have not upgraded the primary db yet.I had set dg_broker_start=false and disable configuration before i started the upgrade .
    once the GI for oracle restart was upgraded i upgraded the rdbms binaries and brought up the standby on mount ,while trying to enable configuration its throwing the below error.I had already started the broker process.
    SQL> show parameter dg_
    NAME TYPE VALUE
    dg_broker_config_file1 string /u01/app/omvmxp1/product/11.2.
    0/dbhome_2/dbs/dr1mvmxs2.dat
    dg_broker_config_file2 string /u01/app/omvmxp1/product/11.2.
    0/dbhome_2/dbs/dr2mvmxs2.dat
    dg_broker_start boolean TRUE
    DGMGRL> show configuration;
    Configuration - Matrxrep_brkr
    Protection Mode: MaxAvailability
    Databases:
    mvmxp2 - Primary database
    mvmxs2 - Physical standby database
    Error: ORA-16525: the Data Guard broker is not yet available
    Fast-Start Failover: DISABLED
    Configuration Status:
    ERROR
    from drcmvmxs2.log
    Starting Data Guard Broker bootstrap <<Broker Configuration File Locations:
    dg_broker_config_file1 = "/u01/app/omvmxp1/product/11.2.0/dbhome_2/dbs/dr1mvmxs2.dat"
    dg_broker_config_file2 = "/u01/app/omvmxp1/product/11.2.0/dbhome_2/dbs/dr2mvmxs2.dat"
    12/19/2012 16:05:33
    Data Guard Broker shutting down
    DMON Process Shutdown <<12/19/2012 16:10:20
    Starting Data Guard Broker bootstrap <<Broker Configuration File Locations:
    dg_broker_config_file1 = "/u01/app/omvmxp1/product/11.2.0/dbhome_2/dbs/dr1mvmxs2.dat"
    dg_broker_config_file2 = "/u01/app/omvmxp1/product/11.2.0/dbhome_2/dbs/dr2mvmxs2.dat"
    ~
    Regards
    Edited by: Monto on Dec 19, 2012 1:23 PM

    Hi,
    I removed the configuration and removed the broker files from RAC primary(mvmxp2) and single instance standby(mvmxs2) and re-created back.i tried it many times but getting error "ORA-16532" .I needed to have this standby backup before i start upgrading the primary.
    SQL> alter system set dg_broker_start=true scope=both;
    System altered.
    SQL> exit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, Automatic Storage Management, OLAP, Data Mining
    and Real Application Testing options
    palmer60:/u01/app/omvmxp1/product/11.2.0/dbhome_2/dbs>dgmgrl
    DGMGRL for IBM/AIX RISC System/6000: Version 11.2.0.3.0 - 64bit Production
    Copyright (c) 2000, 2009, Oracle. All rights reserved.
    Welcome to DGMGRL, type "help" for information.
    DGMGRL> connect sys@mvmxp2
    Password:
    Connected.
    DGMGRL> CREATE CONFIGURATION 'Matrxrep'
    AS
    PRIMARY DATABASE IS 'mvmxp2'
    CONNECT IDENTIFIER IS 'mvmxp2';> > >
    Configuration "Matrxrep" created with primary database "mvmxp2"
    DGMGRL> ADD DATABASE 'mvmxs2'
    AS
    CONNECT IDENTIFIER IS 'mvmxs2'
    ;Database "mvmxs2" added
    DGMGRL> SHOW CONFIGURATION;
    Configuration - Matrxrep
    Protection Mode: MaxPerformance
    Databases:
    mvmxp2 - Primary database
    mvmxs2 - Physical standby database
    Fast-Start Failover: DISABLED
    Configuration Status:
    DISABLED
    DGMGRL> ENABLE CONFIGURATION;
    Enabled.
    DGMGRL> SHOW DATABASE MVMXS2;
    Database - mvmxs2
    Role: PHYSICAL STANDBY
    Intended State: APPLY-ON
    Transport Lag: (unknown)
    Apply Lag: (unknown)
    Real Time Query: OFF
    Instance(s):
    mvmxs2
    Database Status:
    DGM-17016: failed to retrieve status for database "mvmxs2"
    ORA-16532: Data Guard broker configuration does not exist
    ORA-16625: cannot reach database "mvmxs2"
    DGMGRL>
    tailed the drcmvmxs2.log during stop and start of the broker
    palmer60:/u01/app/omvmxp1/diag/rdbms/mvmxs2/mvmxs2/trace>tail -f drcmvmxs2.log
    12/19/2012 20:32:20
    drcx: cannot open configuration file "/u01/app/omvmxp1/product/11.2.0/dbhome_2/dbs/dr1mvmxs2.dat"
    ORA-27037: unable to obtain file status
    IBM AIX RISC System/6000 Error: 2: No such file or directory
    Additional information: 3
    12/19/2012 20:32:55
    drcx: cannot open configuration file "/u01/app/omvmxp1/product/11.2.0/dbhome_2/dbs/dr2mvmxs2.dat"
    ORA-27037: unable to obtain file status
    IBM AIX RISC System/6000 Error: 2: No such file or directory
    Additional information: 3
    12/19/2012 20:59:10
    Data Guard Broker shutting down
    DMON Process Shutdown <<12/19/2012 20:59:35
    Starting Data Guard Broker bootstrap <<Broker Configuration File Locations:
    dg_broker_config_file1 = "/u01/app/omvmxp1/product/11.2.0/dbhome_2/dbs/dr1mvmxs2.dat"
    dg_broker_config_file2 = "/u01/app/omvmxp1/product/11.2.0/dbhome_2/dbs/dr2mvmxs2.dat"
    Not sure how to fix this one.
    Regards

  • Error: No batch input data for screen SAPMZVKDIALOGDEMO 1000 Help Needed

    Hi Experts!
    I wrote a program for BDC. I am attaching the code herewith. When i am trying to process the session in SM35, i was getting the error: No batch input data for screen SAPMZVKDIALOGDEMO 1000. Can anyone please tell me, what am i doing wrong.
    Thanks.
    REPORT  zvkbdcdemo01.
    DATA: bdc_tab LIKE bdcdata OCCURS 6 WITH HEADER LINE.
    DATA: session LIKE apqi-groupid VALUE 'Session #1'.
    CALL FUNCTION 'BDC_OPEN_GROUP'
      EXPORTING
        client                    = sy-mandt
    *   DEST                      = FILLER8
        group                     = session
    *   HOLDDATE                  = FILLER8
    *   KEEP                      = FILLER1
        user                      = sy-uname
    *   RECORD                    = FILLER1
    *   PROG                      = SY-CPROG
    * IMPORTING
    *   QID                       =
    * EXCEPTIONS
    *   CLIENT_INVALID            = 1
    *   DESTINATION_INVALID       = 2
    *   GROUP_INVALID             = 3
    *   GROUP_IS_LOCKED           = 4
    *   HOLDDATE_INVALID          = 5
    *   INTERNAL_ERROR            = 6
    *   QUEUE_ERROR               = 7
    *   RUNNING                   = 8
    *   SYSTEM_LOCK_ERROR         = 9
    *   USER_INVALID              = 10
    *   OTHERS                    = 11
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    PERFORM fill_bdc_tab.
    CALL FUNCTION 'BDC_INSERT'
      EXPORTING
        tcode                  = 'ZVKTR001'
    *   POST_LOCAL             = NOVBLOCAL
    *   PRINTING               = NOPRINT
    *   SIMUBATCH              = ' '
    *   CTUPARAMS              = ' '
      TABLES
        dynprotab              = bdc_tab
    * EXCEPTIONS
    *   INTERNAL_ERROR         = 1
    *   NOT_OPEN               = 2
    *   QUEUE_ERROR            = 3
    *   TCODE_INVALID          = 4
    *   PRINTING_INVALID       = 5
    *   POSTING_INVALID        = 6
    *   OTHERS                 = 7
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'BDC_CLOSE_GROUP'
    * EXCEPTIONS
    *   NOT_OPEN          = 1
    *   QUEUE_ERROR       = 2
    *   OTHERS            = 3
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    *&      Form  fill_bdc_tab
    *       text
    FORM fill_bdc_tab.
      REFRESH bdc_tab.
      PERFORM populate_bdc_tab USING:
      '1' 'SAPMZVKDIALOGDEMO' '1000',
      ' ' 'SFLIGHT-CARRID' 'LH',
      ' ' 'SFLIGHT-CONNID' '0400',
      ' ' 'SFLIGHT-FLDATE' '07/07/2007',
      ' ' 'SFLIGHT-PRICE' '1982',
      ' ' 'SFLIGHT-CURRENCY' 'EUR',
      ' ' 'SFLIGHT-PLANETYPE' 'A310-300',
      ' ' 'BDC_OKCODE' 'CREA'.
    ENDFORM.                    "fill_bdc_tab
    *&      Form  POPULATE_BDC_TAB
    *       text
    *      -->FLAG       text
    *      -->VAR1       text
    *      -->VAR2       text
    FORM populate_bdc_tab USING flag var1 var2.
      CLEAR bdc_tab.
      IF flag = '1'.
        bdc_tab-program = var1.
        bdc_tab-dynpro = var2.
        bdc_tab-dynbegin = 'X'.
      ELSE.
        bdc_tab-fnam = var1.
        bdc_tab-fval = var2.
      ENDIF.
      APPEND bdc_tab.
    ENDFORM.                    "POPULATE_BDC_TAB

    This normally means that you are trying to insert data on a screen for which a particular field is not available.
    So check screen number, screen fields and report name. In case of screen fields, use F1, F9 (technical information), and check the name of the screen field for batch processing (all the way at th bottom of the pop-up). This can differ from actual name of the screen field.
    If all this is ok, try to create a recording of the transaction with SM37.

  • Error -ORA-01483: invalid length for DATE or NUMBER bind variable

    In discoverer plus, attempt to save a discoverer workbook into the database fails with the error:
    ORA-01483 invalid length for DATE or NUMBER bind variable
    The same workbook can be safely saved in "My Computer".
    Any idea why and what is the solution.

    Why: not quite sure, probably the code is validating the workbook when it saves it to the db and you've got an error in the sql. What happens when you run the workbook that you saved to the file system? Does it show the same error when run?
    Solution: Can you post the sql in the workbook? In the meantime try the following: Replace any to_char statements around dates with to_date statements instead. For example:
    Replace:
    where to_char(mydate, 'dd-mon-yyyy') = '05-apr-2009'
    With:
    where mydate = to_date('05-APR-2009','DD-MON-YYYY')

  • Error: ORA-16796: one or more properties could not be imported from the dat

    DGMGRL> CREATE CONFIGURATION prod as
    PRIMARY DATABASE IS prod
    CONNECT IDENTIFIER IS prod;Configuration "prod" created with primary database "prod"
    DGMGRL> ADD DATABASE standby as
    CONNECT IDENTIFIER IS standby
    MAINTAINED AS PHYSICAL;Error: ORA-16796: one or more properties could not be imported from the database
    Failed.
    DGMGRL> ADD DATABASE standby as
    CONNECT IDENTIFIER IS standby
    MAINTAINED AS PHYSICAL;Error: ORA-16796: one or more properties could not be imported from the database
    Failed.
    can any one help me out , i am not sure what could be the problem.
    i checked the listner and tnsnames every thing looks good, if u want me to post any thing else plz do let me know
    thanks
    firdous

    16796, 0000, "one or more properties could not be imported from the database"
    // *Cause:  The broker was unable to import property values for the database
    //          being added to the broker configuration. This error indicates:
    //          - The Oracle Net service name specified in DGMGRL CREATE
    //            CONFIGURATION or ADD DATABASE command was not one that provides
    //            access to the database being added.
    //          - There were no instances running for the database being added.
    // *Action: Remove the database from the configuration using the REMOVE
    //          CONFIGURATION or REMOVE DATABASE command. Make sure that the
    //          database to be added has at least one instance running and that the
    //          Oracle Net service name provides access to the running instance.
    //          Also check the broker log file for additional information.
    //          Then, reissue the CREATE CONFIGURATION or ADD DATABASE command.

  • Error "No batch input data for screen SAPMF02D 0130" MASS tcode Msg:00344

    Hi,
    I am trying to update the filed "Industry"(KNA1-BRSCH) with value "RNRN" in Customer master data (XD01) through Tcode MASS for 1500 customers. I am getting error "No batch input data for screen SAPMF02D 0130" Message no. 00344. I tried to upate one customer but still the same error popped up. We tried implementing SAP note 737698 but it did not work.
    Any inputs please??????

    Hi,
    MASS (KNA1)
    Select KNA1-BRSCH
    execute
    select customers
    give your value against New values field
    and click on mass change button
    Rgds
    Murali. N

  • Error: No batch input data for screen SAPLSTRD 0300 for BDC OB52

    Hello,
    I have created one program, where i am just calling transaction OB52 using batch input.
    CALL TRANSACTION 'OB52' USING bdcdata
                              MODE  input_method
                              UPDATE 'S'
                              MESSAGES INTO itb_msg.
    When I run my program in background the it is giving me Error "No batch input data for screen SAPLSTRD 0300 ", but I am changing the MODE to 'A' in foreground then it is working perfectly without any Errors.
    Can you guide me why i am getting the above error only when i am executing the program in MODE = 'N'...
    Regards,
    Sujeet Mishra

    Hello,
    Actually recording is perfect and it was working fine earlier on production server. now the error i am getting is related to transport request. like when we do the changes in transaction OB52 online is will ask you for transport request, but in my recording we are not taking care of this transport request pop-up screen, but it was working fine earlier.
    the code which was working fine is written below:
    LOOP AT itb_type.
        PERFORM bdc_dynpro USING 'SAPL0F00' '0065'.
        PERFORM bdc_field USING 'BDC_OKCODE' '=POSI'.
    * Ecran Positionner, fonct Suite
        PERFORM bdc_dynpro USING 'SAPLSPO4' '0300'.
        PERFORM bdc_field USING 'SVALD-VALUE(01)' p_bukrs.
        PERFORM bdc_field USING 'SVALD-VALUE(02)' itb_type-mkoar.
        PERFORM bdc_field USING 'SVALD-VALUE(03)' itb_type-bkont.
        PERFORM bdc_field USING 'BDC_OKCODE' '=FURT'.
    * Ecran principal, fonction Sauvegarde
        PERFORM bdc_dynpro USING 'SAPL0F00' '0065'.
    *   Période 1
        IF ( p_etape1 = 'X' ).
    *     Si Jour J+1
          PERFORM bdc_field USING 'V_T001B-FRPE1(01)' s_sppe1-low.
          PERFORM bdc_field USING 'V_T001B-TOPE1(01)' s_sppe1-high.
          PERFORM bdc_field USING 'V_T001B-FRYE1(01)' s_spye1-low.
          PERFORM bdc_field USING 'V_T001B-TOYE1(01)' s_spye1-high.
        ELSEIF ( p_etape2 = 'X' ).
    *     Si Jour J+6
          PERFORM bdc_field USING 'V_T001B-FRPE1(01)' s_frpe1-low.
          PERFORM bdc_field USING 'V_T001B-TOPE1(01)' s_frpe1-high.
          PERFORM bdc_field USING 'V_T001B-FRYE1(01)' s_frye1-low.
          PERFORM bdc_field USING 'V_T001B-TOYE1(01)' s_frye1-high.
        ENDIF.
    *   Période 2
        PERFORM bdc_field USING 'V_T001B-FRPE2(01)' s_frpe1-low.
        PERFORM bdc_field USING 'V_T001B-TOPE2(01)' s_frpe1-high.
        PERFORM bdc_field USING 'V_T001B-FRYE2(01)' s_frye1-low.
        PERFORM bdc_field USING 'V_T001B-TOYE2(01)' s_frye1-high.
    *   Gpe d'autorisation
        PERFORM bdc_field USING 'V_T001B-BRGRU(01)' itb_type-brgru.
        PERFORM bdc_field USING 'BDC_OKCODE'  '=SAVE'.
    ENDLOOP.
        PERFORM bdc_dynpro USING 'SAPL0F00' '0065'.
        PERFORM bdc_field USING 'BDC_OKCODE' '=BACK'.
    * Appel de la transaction OB52
      CALL TRANSACTION 'OB52' USING bdcdata
                              MODE  input_method
                              UPDATE 'S'
                              MESSAGES INTO itb_msg.
    Regards,
    SUjeet

  • ORA-30689: improper value for ORA_DEBUG_JDWP

    I'm setting up PL/SQL debugging from an ASP.Net application. I've followed all of the steps from cshay's blog. I am able to debug and connect directly from the Oracle Explorer. My problem occurs when I run debug and try to step through from the .Net code.
    Some things to Note:
    We have a central library that uses .Net Reflection and the System.Data.OracleClient to instatiate connections and condense some SQL querying processes so that we don't have to parameterize and write full queries in the application over and over again. I cannot change this library.
    The error listed above appears when I have the following setup:
    * Oracle Application Debugging is checked
    * VS 2005 asp.net web app
    * Using the development (local) webserver
    * Exception Details: System.Data.OracleClient.OracleException: ORA-30689: improper value for ORA_DEBUG_JDWP
    * Process explorer properties say that the ORA_DEBUG_JDWP variable is set to host=machineName;port=49152
    * web app comes up in http://localhost:xxxx
    * When I ping machineName, I get my ip address
    * When I ping localhost, I get the local ip 127.0.0.1
    * Oracle db 9.2.0.6
    * The error occurs when my application first trys to obtain a connection to the database (just a select statement and only when I have OADebuggin turned on)
    Any help on this would be appreciated. Otherwise, I'll have to figure out why my SQL Developer instance won't debug correctly.
    Thank you.
    shellie

    Thanks for the quick response Christian.
    1) Are you using ODAC 11g beta?
    Yes I downloaded it yesterday. In Visual studio in 'about' I have:
    Oracle Developer Tools for Visual Studio .NET 11.1.0.5.10 Beta
    Oracle Developer Tools for Visual Studio .NET Copyright (c) 2005, 2007
    2) Are you setting ORA_DEBUG_JDWP anywhere? If so, what are you setting it to?
    No I am not setting it anywhere. I used process explorer and when I debug it is set to my IP address (i.e. the host of my dev environment on W2K3 and not the Unix Server hosting Oracle) and port 49152.
    I've also logged on the to Unix server and from there telneted into my W2K3 server on port 49512 and got a "JDWP-handshake" response so the network looks fine.
    So ... #1 is Yes and #2 is No. So I followed your instructions ... and I got some expert oracle and unix assistance when i got the following ...
    There is nothing in any trc file that has anything like "kqaccd: ORA_DEBUG_JDWP". A grep "DEBUG" *.trc shows nothing anywhere.
    Another bit of info .... I get a ORA_DEBUG_JDWP type of error from time to time. Seems mainly to be on connections to databases that I've connected to before. If I close VS2005 and re-open VS2005 - everything is back to normal.
    I can step into and run s.p. directly from VS2005 so that's something.
    (Also another thing I noticed is that even though I'm logged own as the schema owner I can not change/re-order columns in an index as they are greyed out. Also - and this is not good as I would like developers to be able to optimise their queries - you can not scroll through the list of columns in an index if the list of columns is larger than the list box. I can live without the former but the later is highly desirable.)
    Thanks for your help with this Christian. (I really like ODT and can see it becoming indespensible very quickly).
    Cheers,
    Chris.

  • Datasource: ORA-02019: connection description for remote database not found

    Hi,
    I recently made the datasource to point to a new host, and using the EM console tested the connectivity to the datasource to be successful.
    Java code that refers to the DS is also the same as before that was working as only the connection string has been changed, but now trying to access the web-application shows the following error in the logs:
    ==============
    Exception::java.sql.SQLException: ORA-02019: connection description for remote database not found
    oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:138)
    oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:316)
    oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:282)
    oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:639)
    oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:113)
    oracle.jdbc.driver.T4CStatement.execute_for_describe(T4CStatement.java:431)
    oracle.jdbc.driver.OracleStatement.execute_maybe_describe(OracleStatement.java:1029)
    oracle.jdbc.driver.T4CStatement.execute_maybe_describe(T4CStatement.java:463)
    oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1126)
    oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:1274)
    oracle_jdbc_driver_T4CStatement_Proxy.executeQuery()=====================================
    What could be the reason? Is there any other app server datasource related setting that needs to be done or is it some other issue - as I said 'testing the connection from EM console connects successfully'.
    Thanks,
    Rommel.

    The issue is resolved now.
    One of the queries used a db link that was missing on the new database and therefore the error from the java code.
    Since testing for connectivity using DS through EM console does not check for any db link (using the default query it executes) connectivity was successful.
    Thank a lot,
    Rommel.

  • ORA-0209:Connection discription for remote database not found

    Please help me with this oracle error.
    I have create a DB link to connect to the Oracle database from a remote Oracle DB. I am able to query the select statement through DBLINK and i also created the Synonym for the same. But still iget the below error in the DB package when i am inserting one row into the same table for which i created a synonym with the DBLINK
    ORA-0209:Connection discription for remote database not found
    ORA-02063:preceding line from DBLINK
    Please help me if anyone can give me a appropriate answer.
    Thanks in advance for all those who try to help me

    Sorry for the Typo mistake ..
    The ORA error code is not ORA-0209 but it is ORA-02019

Maybe you are looking for

  • HT1296 can i transfer music from my ipod to a new itunes library?

    My laptop crashed, and I'm trying to get my music from my ipod touch (1st generation) to my new computer.  The cloud let me get only songs I purchased from iTunes, but the music I ripped from cds is not available on the cloud.  I'd like to transfer m

  • Error in invoking target install of makefile Oracle 9.0.1

    Error in invoking target install of makefile Oracle 9.0.1 Hi, I am installing Oracle 9i on Sun Sparc Solaris and I get the following errors. (this happens for about 6 files) The memory is 4G and swap space more than 2G. I'm not sure what the problem

  • Share Function Crashes Finder

    So every time I attempt to use the "share" function, it crashes the Finder application so that it is "not responding" and I have to relaunch it to do anything with the windows. The function I'm talking about is when you right click a file and find "s

  • HT201317 Phone 5 photos to iPad and back.

    Can I delete my photos on my iPhone and still have them stored on my iPad after they have been steamed there? Also, can I select photos to retune to my phone after I've deleted them from iPad back to iPhone?

  • Closing Invoice for Downpayment Process

    Hi Gurus, We have a Business scenarion where in 50% has to be received befor delivery and 50% at the time of Invoice. I am using Downpayment process: After Config I am using FAZ document type and generate 50% of the amount through condition AZWR. I a