Issue with Referential Integrity check in Oracle VPD Policy

Hi,
Lets assume I have two tables - Customer and Order, with cust_id in Order table referring to primary key of Customer table.
Example Data;
Customer
cust_id Name
1 abc
2 def
3 ghi
Order
Order_id cust_id Order_type
1 1 A
2 2 A
3 1 B
Now I have policies defined on both the tables;
- for "Select, Insert, Update" queries on Customer table.
- for "Select" queries on Order Table.
Policy 1 on Order Table;
Irrespective of the user, predicate = 'Order_type = ''A'''
Policy 2 on Customer Table;
Irrespective of the user, predicate = '(select count(1) from order o where o.cust_id = customer.cust_id and o.order_type = ''B'') > 0'
My intention is to show only those customers who have atleast one order of type 'B'. And this policy works fine in case a user tries to read data from customer table. (for example, record for cust_id = 2 will not be returned as it don't have any orders of type "B")
However, when a user tries to insert record in Order Table, because of the existing referential integrity constraint, the Policy on Customer table is also getting triggered. And an exception is being raised "ORA-28113: policy predicate has error".
Could someone please explain why this is happening ?

I'm afraid, there is no such a mean.
At least I do not know about it.

Similar Messages

  • Tables with referential integrity

    Hi All,
    I am generating scripts to insert data from one schema to another. something like this:
    Insert into schemaA.table1
    select *from schemaB.table1;There are many tables with referential integrity in the schema. how can generate the scripts in an order so that there
    won' t be any referential integrity issue....
    Thanks.
    AJR

    Hi,
    Thanks.
    I tried, but it gives me 6 sets of data.
    SELECT TABLE_NAME--, LTRIM(SYS_CONNECT_BY_PATH(TABLE_NAME, '=>'),'=>') TABLE_NAME_PATH,CONSTRAINT_NAME, R_CONSTRAINT_NAME, LEVEL
    FROM   USER_CONSTRAINTS,ALL_OBJECTS B
    --WHERE  LEVEL > 1
    WHERE
    USER_CONSTRAINTS.OWNER = B.OWNER AND
    USER_CONSTRAINTS.TABLE_NAME = B.OBJECT_NAME AND
    B.OBJECT_TYPE = 'TABLE'
    CONNECT BY R_CONSTRAINT_NAME = PRIOR CONSTRAINT_NAME
    ORDER BY TABLE_NAME;AJR

  • Issues with Analysis Authorization checks in APO

    Hi Friends,
    I am facing an issue with Analysis authorization checks in APO.
    We have setup user access based on Management Entity (Analysis authorization - AGMMGTENT and 0TCAACTVT) and core APO authorizations (based on the work profile - e.g: Demand Planner).
    Scenario: Consider User A has access to India and Australia Management Entities with 0TCAACTVT - *
    This user also has display access to all management Entities (AGMMGTENT - * and 0TCAACTVT - 03). This scenario works very well in Quality where the RSECADMIN trace shows check on both Characteristics. However in Production the RSECADMIN trace shows up only against AGMMGTENT (*) and by default takes 0TCAACTVT as (*).
    In Quality the Characteristics that get checked are as below : and it works as expected. Display access for Management Entities that are supposed to be displayed only and change access to only the Management Entities that it should.
    However the Trace for Production shows the following : As a result it is allowing the user to change access to all management Entities. Which is not desirable..
    Resultant trace results are as below: This should not happen..
    I have compared all Analysis Authorizations and it is same across both Instances. The Demand planner access is consistent too..
    Will it be possible for you to advise on what could I be missing.

    Hi All,
    If it helps, in Quality: the Authorization checks are listed as: Subselection (Technical SUBNR) 1
    while in Production it checks Subselection (Technical SUBNR) 1 in one place, however where it fails - the check happens as Subselection (Technical SUBNR) 0.
    Is there a way we can change this to SUBNR 1. Is there any table entry that I can look at to check if the Authorization check is functioning incorrectly..
    Please advise.. Thanks..
    Regards,
    Prakash

  • For for updating database with referential integrity

    Hi:
    Here is the essence of the problem:
    I have created an Access database that I want the fire chiefs
    to update. The database is a one to many structure with referential
    integrity set. One fire truck has many capabilities. So if Fort
    Myers has a truck named 'FM101' and it has several capabilities
    such as 1.) pumper, 2.) extrication 3.) Advanced Life Support.
    My problem is how to set up a form to do that. In particular,
    how do I set up the form so that it will allow the fire chiefs to
    input several capabilities at a time for a truck.
    I can build a form showing the truck which was obtained from
    a pick-list. And I can show another field showing a pick-list for
    the capability of that truck (pumper, extrication, ALS, etc). My
    question is how do I set up the form to allow the chiefs to input
    multiple lines for the many capabilities of that one truck? Right
    now I have one input for the truck and one input for the capability
    - but I want to enable the user to input as many capabilities as
    they feel necessary.
    How do I do that?
    thanks

    You put the capabilities in a multi-select box.
    <select name="capabilities" multiple="true">
    <option value="capability1">Capability 1</option>
    </select>

  • Query to display the tables with referential integrity

    Hello,
    I need to display the Tables which are having referential integrity..
    Like need to dispaly the parent and child tables
    Please give me some idea on this..
    Thanks,

    Here's a nice query you can use:
    with temp_constraints as (
    select table_name
    ,      constraint_name pkey_constraint
    ,      null fkey_constraint
    ,      null r_constraint_name
    from   user_constraints
    where  constraint_type = 'P'
    union all
    select a.table_name
    ,      a.constraint_name pkey_constraint
    ,      b.constraint_name fkey_constraint
    ,      b.r_constraint_name
    from   user_constraints a, user_constraints b
    where  a.table_name = b.table_name
    and a.constraint_type = 'P'
    and b.constraint_type = 'R'
    select rpad( '*', (level-1)*2, '*' ) || table_name relation
    from   temp_constraints
    start with fkey_constraint is null
    connect by pkey_constraint <> r_constraint_name
    and prior  pkey_constraint = r_constraint_name;From http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:661009003696#tom69115451356231

  • Issue with displaying Greek characters in Oracle 11.1

    Hi,
    We are having issues with display of Non-English language (for ex Greek) text on Pega-PRPC. The text is stored in a reference table in Oracle DB. However there is not need of translation in PRPC as it has the capability of displaying non-english language also.
    I believe that it is a issue with DB settings, although not sure of what is the setting.
    Below is the result after running the query: select * from nls_database_parameters
    NLS_LANGUAGE     AMERICAN
    NLS_TERRITORY     AMERICA
    NLS_CURRENCY     $
    NLS_ISO_CURRENCY     AMERICA
    NLS_NUMERIC_CHARACTERS     .,
    NLS_CHARACTERSET     AL32UTF8
    NLS_CALENDAR     GREGORIAN
    NLS_DATE_FORMAT     DD-MON-RR
    NLS_DATE_LANGUAGE     AMERICAN
    NLS_SORT     BINARY
    NLS_TIME_FORMAT     HH.MI.SSXFF AM
    NLS_TIMESTAMP_FORMAT     DD-MON-RR HH.MI.SSXFF AM
    NLS_TIME_TZ_FORMAT     HH.MI.SSXFF AM TZR
    NLS_TIMESTAMP_TZ_FORMAT     DD-MON-RR HH.MI.SSXFF AM TZR
    NLS_DUAL_CURRENCY     $
    NLS_COMP     BINARY
    NLS_LENGTH_SEMANTICS     BYTE
    NLS_NCHAR_CONV_EXCP     FALSE
    NLS_NCHAR_CHARACTERSET     AL16UTF16
    NLS_RDBMS_VERSION     11.1.0.6.0
    Please help.

    869852 wrote:
    Hi,
    We are having issues with display of Non-English language (for ex Greek) text on Pega-PRPC. The text is stored in a reference table in Oracle DB. However there is not need of translation in PRPC as it has the capability of displaying non-english language also.
    I believe that it is a issue with DB settings, although not sure of what is the setting.
    The first question that needs to be answered is whether the problem is a data storage problem or data presentation problem.
    The query below will answer this question.
    SELECT ASCIISTR(greek_column) from greek_table where key_id = <specific_value>;

  • Issue with the storage check if files are uploaded...

    There is an issue with (photo) updloads to SkyDrive filling the temporary items. When I started to upload photos to Skydrive, I had about 2.4 GB free space on my Lumia 820 and after a while the whole memory was full. I uploaded successfully about 600MB of photos, but the same time the phone filled the temporary items to 2.4GB and thus went to full stop with all memory gone. And I haven't had any success of freeing up the temporary items.
    Basically, whatever I upload to the Skydrive it goes to the temp files and that cannot be cleared using Storage check option.
    Can you please help me on this?

    cjlim wrote:
    No worries with the 925. It comes with at least 16gb internal storage. Have a good holiday.
    16GB without a micro-SD card slot isn't enough for many users especially those who have a large music collection. (Note: Cloud storage is NOT equivalent  to local storage). In any case 16GB will only postpone but not get rid of the problem of the 'Other' folder.

  • Template - issue with validity area - check on multiple usages at once

    Hi all
    One customer requirement Iu2019m trying to solve, and I donu2019t find a solution, is the following:
    <b>When we have two or more validity areas in the generation variant, we want to check on both at the same time in order to get the data on the SDS.</b>
    <b>Is this possible or not and, in case it is possible, can someone explain me how to do this?</b>
    Thanks in advance. 
    Two examples.
    In the generation variant we have validity areas:
    A.     REGION                SE 
                         USE_CAT             IND
    B.     REGION                NO
                         USE_CAT             IND
    C.     REGION                NO
                         USE_CAT             FER
    In the specification data of one VAT we have several instances. The usages added to these instances are:
    1.     REGION                SE
                         USE_CAT             IND
    2.     REGION                SE
                          USE_CAT             FER
    3.     REGION                NO
                         USE_CAT             IND
    When I use generation variant A, I only want to see instance 1 on the SDS.
    When I use generation variant B, I only want to see instance 3 on the SDS.
    When I use generation variant C, I donu2019t want to see any instances on the SDS.
    I donu2019t find how to solve this.
    When I donu2019t use a repeating group type G for validity area, using generation variant A, I get instances 1 and 2. Using generation variant B or C I get instance 3 on the SDS.
    When I use a repeating group type G for validity area USE_CAT, using generation variant A or B, I get instances 1 and 3. Using generation variant C I get instance 2 on the SDS.
    Similar with the exclude check put.
    In the generation variant we have validity areas:
    D.     REGION                SE 
                         USE_CAT             IND       
    E.     REGION                NO
                           USE_CAT             FER
    In the specification data of one VAT we have several instances. The usages added to these instances are:
    4.     REGION                SE
                         USE_CAT             IND        excl
    5.     REGION                REG_EU
                          REGION                SE           excl
                          USE_CAT             FER
    6.     REGION                NO
                          USE_CAT             IND
    When I use generation variant D, I donu2019t want to see an instance on the SDS.
    When I use generation variant E, I donu2019t want to see an instance on the SDS
    I donu2019t find how to solve this.
    When I donu2019t use a repeating group G for validity area USE_CAT, using generation variant D, I get instance 4 on the SDS. Using generation variant E I gent instance 6 on the SDS.
    When I use a repeating group G for validity area USE_CAT, using generation variant D, I get instance 6 on the SDS. Using generation variant E, I get instance 5 on the SDS.
    Kind regards,
    Luk

    Hello Luk
    You wrote: When I understand the documentation of the validity area's correct, options subset, superset, 1:1, ... always reflect to the relation of the entry in the generation variant and the usage that is maintained one on the data.
    This is exactly how the link is done between data in EH&S and the data which show up in WWI document (please exclude the topic of G group at the moment; this is special). Therefore the validity area entered in GenVar is the "Leading" validity area.
    Regarding you questions some "basic" work is needed. May be this help you to find new options to solve your issue:
    SAP EH&S uses the "validity area type" and the "validity area". Common used are the validity types:
    REGION
    DGREGION
    PLANT
    It seems that you have created a new validity area type USE_CAT with validity areas wich you have defined by your own.
    I will give you only an overview about the "normal" use of REGION. In this case the validity area is normally a 1:1 relation to a country (defintion is done via customizing). A "special" validity area is REG_WORLD (please refer to SAP docu). REG_WOLRD contains automatically (without further doing) all other validity areas of type REGION. Now it is always possible to generate new "fictive" validity areas. E.g. you Could define the validity area "NAFTA" which would have a link to the countries: US, MX etc. These validiyta areas can be used in data maintenance and in the GenVar as well.
    As I have no knowlede how you have defined the USE_CAT"  validity areas I can not provide you hints. But I would like to provide further hints in using the "Excl." Flag of usage of the VAT
    Example: if you use Rating 1 in combination with REG_WORLD, DE excluded and the GenVar has the leading validity area DE this value is not used in WWI report. But if the genVar would have the leading validity area BE it would be used.
    Please check really carefully the topic of "subset, superset, 1:1,.." because this is the "key" issue if or if not a VAT will show up in WWI.
    Now back to your next question:
    when on the data a validity area is excluded and the same validity area is present in the generation variant, data should not be displayed even when there is a positive match prasent as well. (e.g. positive match on region, negative match on use category).
    Now as explained above: if in VAT level a validity area is excluded but the same validity area is used as leading Validity area in WWI report the value will not show up. The same should be true if you have used "G groups" with discrete validity areas
    Next question:
    when you defined the data as relevant for region EU and use category industrial, data should only be displayed when the generation variant contains both a region related to EU AND this industrial use.
    Here I would need more information. The GenVar contains by default only one leading validity area. Therefore any further "logic" must be applied by using "G Group" in the template and now things get "worse" in some sense.
    If I remember correct the following should be true:
    If you have used properly the G Group with "Use_CAT" in your WWI document this should work:
    You have defined the VAT as : Rating + DE + IND. Now in a special section of your WWI report you have used the G Group. By using this the value should be printed but not a parallel VAT value with Rating + DE + FER.
    If you have used this logic in your whole template I really salute because the WWI template is in my opinion very complex to understand and the logic how to retrieve the data from EH&S into the WWI report is complex too and the length of the report should have increased by at least 20 % or something like that
    Now you have mentioned a further option you are using:
    "Currently we solve this by creating multiple characteristics (use category specific) and selecting only on validity area region based on the generation variant."
    If I underdstood your explanation correct you have done the following:
    If necessary you have entered a further characteristic in the Class called "use CAT" which must have values. Then using the "if else etc." logic of WWI you select only those VATs into the WWI report which does have the correct "Use Cat".
    Once again:hard work which you have done. In my opinion you should go on with this approach. In doing so you have implemented an "and" logic. Only if the Value does have DE and the UseCat (in characteristic) Is e.g. FER the value will be printed.
    It is complex yes but the "G Group" is much complexer
    Natural solution of demands like this is using further ratings to select the data properly. It seems to be you have excluded this option.
    With best regards
    C.B.
    Edited by: Christoph Bergemann on Sep 4, 2011 5:50 PM
    Edited by: Christoph Bergemann on Sep 4, 2011 5:54 PM

  • Issue with FI Validation check Screen

    Hello Friends,
    I am having an issue with creating FI validation, specifically the check tab. I need to input BSEG-GSBER = 'EES', but I dont see BSEG in the list of structures. How can I add it?
    Thanks.
    Zack

    Hi,
    I have asked to check whether the BSEG structure is allowed to be used in the Pre-requisits part of the validation or not.
    Also check that you are defining the validation step at level 2 (Line Item level) or at level 3 (Complete Document Level).
    As level 1 (Header Level) does not allow the BSEG structure.
    Regards,
    Gaurav

  • Issues with Apache integration with Crystal Reports

    Hi,
    We are using Apache as a reverse proxy to Crystal reports.
    Couple of our users are having an issue with the Re-direction or executing the Crystal reports. The apache logs show,
    [Sun Mar 08 14:42:38 2009] [error] [client 10.13.34.3] proxy: error reading status line from remote server
    I am sure this is to do with the Active X settings on the IE.
    Has anyone seen this issue ?
    Thanks, Nag

    Hi,
    If you are using ESS/MSS 1.0 then its poss thru MSS reports launchpad.
    Here is the link for it :-
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/29/d7844205625551e10000000a1550b0/frameset.htm
    or you can do it from by publishing report first in BW andthen thru appintegrator/crystal iview you can put it into your portal.
    Use following link to create your iView :-
    http://help.sap.com/saphelp_nw04/helpdata/en/36/d4a94076b63713e10000000a155106/frameset.htm
    Crystal Report User guide..
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/90db5db3-a6a7-2a10-bba1-a5ba583cb7a8
    Regards,
    Jigar Oza
    Edited by: jigar oza on Sep 16, 2008 12:36 PM

  • Is collection detection for caldav in the works for the lightning extension? Issue with lightning integration with multiple collections.

    Hello, i currently have a server running davical which serves my users' calendars, currently users which wish to use thunderbird and do not want to use the web interface for calendaring (and wish to use lightning instead) have to add each collection seperately, rather than just provide the base URL of their calendar info.
    So instead on most calendar clients putting this as the calendar address:
    davical_base_url/caldav.php/username/
    and be done with it, they have to go through the new calendar wizard for each calendar/todo collection, and cannot easily create collections from within the lightning user interface, instead have to resort to either the calendar interface or the davical server interface to create/manage collections. They also have to figure out what the names of the collections are under davical, automatically generated collections have a large UID name instead of the example collection names. I.e. they have to add a bunch of URL's like this individually as calendars:
    davical_base_url/caldav.php/username/work/
    davical_base_url/caldav.php/username/personal/
    davical_base_url/caldav.php/username/worktodo/
    davical_base_url/caldav.php/username/personaltodo/
    davical_base_url/caldav.php/username/8302E5D8-3630-419E-BCFC-A6A144D292C8/
    Are there any workarounds for this or is it in the works? other calendaring applications in the ecosystem haven't had an issue, Android is fine, iOS is fine, CalDavZAP is fine.
    Hopefully someone can help,
    Cheers.

    Hi all,
    Just curious if anyone was able to solve this.
    We experienced the same issue in both NW2004 (SP 20) and NW2004s (SP11).
    Through trial and error, I disabled the portal integration flag, and the InputHelpV2 started working perfectly.  Decided to search SDN this morning to see if anyone else had run across this, and this post was right on the same issue.
    When the portal integration flag is enabled, and you perform the F4 dropdown...your browser seems to hang, and no popup window is displayed until you click in the browser window with your mouse.  Once you click in the window, a tiny small InputHelpV2 window pops up, but it isn't functional (i.e. you can't highlight a row, and click on the check mark without getting an IE error (Access is denied)).
    Best Regards,
    Chris Cassidy

  • Issue with Custom Form opening in Oracle apps

    Hello,
    I am not sure if this is correct place for this question.
    Hi,
    I have created a custom form and tested in forms 6i. I have moved the fmb and fmx files from my local machine to unix box and registered the form in oracle apps (11.5.10).
    However, when I open the form from oracle apps, form opens OK but some of the field in form are blacked out-I am able to see the field but its black in color. When I type in field and highlight it with my mouse, the value I typed shows up.
    What can be issue here?
    I moved both fmb and fmx from my local machine to UNIX box.
    Please help...

    NV,
    Have you resolved your issue? I've run into this before. I failed to subclass all of my objects properly from the APPSTAND.fmb in accordance with the [Oracle Applications Developers Guide | http://download.oracle.com/docs/cd/B25516_18/current/acrobat/115devg.pdf]. If you have your items subclassed correctly, double check to make sure your Forms Builder is using the correct color pallet.
    Hope this helps.
    Craig...
    If mine or someone elses response was helpful, please mark it accordingly

  • Issue with Dreamweaver CS3 Check username behavior

    Let me start by saying that I'm not a developer, and I may be in over  my head on the project I'm working on.
    I'm creating a  page to register new user's information into aa Access user table. I've  created a registration form, and added the Insert Record behavior. That  works fine, no problems. However, when I add the Check New User  behavior, I get some strange results.
    If the new  username is valid (not a duplicate), the form processes and goes to my  "thank you for registering" page. Great.
    If the new  username is not valid, the behavior redirects to the "sorry, pick a  different username" page. Great.
    When the user goes  back to the registration page to change the User Name and tries to  submit the form, and error message appears thet the connection  (MM_rsKey) is still open. When I look at the code (with my very limited  knowledge of actual code), it looks like the behavior doesn't close the  connection unless the selected User Name is valid. If the redirect  happens, and the user goes back to the registration form page, the  connection hasn't been closed, and the form simply won't process.
    I've  even tried splitting the registration into 2 parts... I created a form  with only the User Name field and a submit button, thinking I'll just  make the second part of the process an update, where the additional  information is added to the existing record that matches the user name,  but still no joy.
    I even checked to see if the code  that closes the connection resides on the redirect page, but I don't  think that's the case.
    I'm probably missing some  perfectly simple step, but I just can't seem to figure it out.
    I  appreciate any help with this. Thanks in advance.
    Ken

    Yes, that's really how that behavior is meant to be used. You could even take it a step further and have a password field on the first page.
    The only issue I have with that scenario is is for some reason, the user doesn't complete step two - then you essentially have the account created but not complete. So then you have to add some sort of check upon login and direct the user back to step 2 if he never filled out that part.
    So you may want to start thinking about eventually building a registration page where it's all containined on the same page. The prococess would be something like this:
    1. User enters all required information,  including username and password.
    2. The page is submitted, but before the insert record occurs the check new username runs, or some variation of it.
    3. If it passes, the record is inserted and rediects to the confirmation page.
    4. If it doesn't pass the check, instead of a redirect like the behavior does, it displays a message.
    5. the tricky part here is not to lose all the other entered information. That can be retained in a session, and bound back to the input fields.
    That's just an overview, and i'm sure you've seen enough web forms to recognize the workflow - usually with registration forms and online shopping and checkout forms.

  • Issue with SQL%BULK_EXCEPTIONS.COUNT in Oracle 9iR2

    Hi All,
    We are using the Oracle 9i Database
    Oracle9i Enterprise Edition Release 9.2.0.7.0 - 64bit Production
    PL/SQL Release 9.2.0.7.0 - Production
    CORE 9.2.0.7.0 Production
    TNS for HPUX: Version 9.2.0.7.0 - Production
    NLSRTL Version 9.2.0.7.0 - Production
    I am facing an issue when using SQL%BULK_EXCEPTIONS.COUNT.
    Getting the below error when executing the below dummy block.
    DECLARE
    ERROR at line 1:
    ORA-06531: Reference to uninitialized collection
    ORA-06512: at line 12
    ORA-06510: PL/SQL: unhandled user-defined exception
    DECLARE
    e exception;
    cnt number;
    BEGIN
    NULL;
    raise e;
    exception
    when others then
    if SQL%BULK_EXCEPTIONS.COUNT>0 then
    null;
    end if;
    dbms_output.put_line(1);
    END;
    Request to let me know what is the issue.
    FYI: I never faced this issue in 10gr2 and 11gr2.
    Thanks,
    Madhu K.

    Where are you using a BULK COLLECT with a SAVE EXCEPTIONS that would initialize the SQL%BULK_EXCEPTIONS collection?
    FYI: I never faced this issue in 10gr2 and 11gr2.Are you sure about that? If I run the code you posted in my 11.2 database, I get the same error
    SQL> ed
    Wrote file afiedt.buf
      1  DECLARE
      2    e exception;
      3    cnt number;
      4  BEGIN
      5    NULL;
      6    raise e;
      7  exception
      8    when others then
      9      if SQL%BULK_EXCEPTIONS.COUNT>0 then
    10        null;
    11      end if;
    12    dbms_output.put_line(1);
    13* END;
    SQL> /
    DECLARE
    ERROR at line 1:
    ORA-06531: Reference to uninitialized collection
    ORA-06512: at line 9
    ORA-06510: PL/SQL: unhandled user-defined exceptionJustin

  • Issue with HtmlUnit Driver by using oracle extended selenium webdriver

    Hi,
    I need to run test case in silent mode i.e. silent playback.Thus, using HTMLUnit Web Driver which is available in oracle extended selenium binaries.
    The recorded files works fine with firefox driver but when i converted my code to html unit driver, it failed to find link inside ADFTable of my fusion web application.
    Is htmlunit driver which is in oracle extended selenium files compatible with ADF Application???
    Is there any other approach for silent playback of ADF Application test cases other than headless and VM.
    Please guide on this issue.
    Regards,
    Meera

    *## After running csscan and csalter*
    Did you really run csalter.plb? csalter.plb should not be run before a full-export A-to-B type of migration. On the other hand, if there were convertible data in the database, csalter.plb should have just reported an error and terminate without changing anything.
    *## "[Oracle][ODBC]Syntax error or access violation"*
    This error does not say much. Why do you think ODBC does no conversion?
    The conversion for the ODBC driver is performed by OCI to/from UTF-16 and it is independent of the NLS_LANG character set. If the C++ application is written in the ANSI mode (does not use wide character data types), Microsoft ODBC Manager will convert between the application and the Oracle ODBC driver, between system code page (Cp 1252) and UTF-16.
    -- Sergiusz

Maybe you are looking for