Session level NLS_COMP NLS_SORT not inheriting from instance parameters???

Hi all,
I have an Oracle 11g installation with a database setup as follows: NLS_COMP=BINARY, NLS_SORT=BINARY.
After playing a bit at the session level with NLS_COMP=LINGUISTIC and NLS_SORT=BINARY_CI, I persisted them at the instance level via ALTER SYSTEM with SCOPE=SPFILE.
Bounced the database and voila, when I query nls_instance_parameters it reflects my changes.
Problem is, my parameters are not applied to my session: in fact, if I query nls_session_parameters, both are still set to BINARY. (Note: using sqlplus).
The documentation (http://download.oracle.com/docs/cd/B28359_01/server.111/b28310/create006.htm) states:
"A new session inherits parameter values from the instance-wide values."
Am I missing something here? Is sqlplus somehow overriding the instance-level parameters? (I know sql developer may, depending on your options, hence I went back to basics...).
Any help appreciated!
Thanks in advance,
Paolo

Hi Sergiusz,
Thank you again for your reply.
In my registry NLS_LANG is set to its default value (AMERICAN_AMERICA.WE8MSWIN1252), so I assume that unless I set anything specific in my environment, NLS_COMP and NLS_SORT are affected by that and sort of reset to BINARY?
If this is the case, then I'm struggling to understand the purpose of setting them at the instance level, given that as you said, NLS_LANG shouldn't be removed as an environmental variable and it seems to override them?
Along the same lines, if I understand this correctly, should I have no control over the environment that my application runs in (e.g. a web application running in a shared IIS app pool), then the only option left is (re)setting my variables every time I establish a connection with the Oracle db, thereby starting a new session?
Really appreciate your help.
Cheers,
Paolo

Similar Messages

  • Earmarked funds during goods receipt (GR) is not inherited from PO.

    Hi, Everybody u2026
    We are using Earmarked Funds relevant for FM updating, but, during goods receipt (GR) and invoice receipt (IR) it is not inherited from purchase order (PO).
    In ME21N the account assignment is F and the system ask us to enter the GL Account, Order and additional the Earmarked Funds. The system is deriving correctly the fund, the funds center and the commitment item from those entered in the Earmarked Funds.
    However, during goods receipt and invoice receipt, the Earmarked Funds is not inherited from purchase order (PO) besides the others account assignments (order, fund, funds center and commitment item ) in the coding block.
    Best regards,
    Thanks

    Hello,
    I will provide some hints:
    - If it is a service PO, please check the Note 972276 (Service Purchase orders only).
    - If the posting is related to Asset, please kindly check:
        a. Note 684659
        b. Check if you have a derivation rule in FMDERIVE with the function module FMDT_READ_MD_ASSET.
        c. Check in your FI-AA customizing if you have activated the account
          assignment element but you have not specified an account assignment type for
          account assignment object for APC balance sheet postings (see note 684659 for
          details).
    I hope it helps
    Best Regards,
    Vanessa Barth.

  • Business Area is not inheriting from Org.Unit or Cost Centre

    Hi
    Business area is assigned to Org.unit in IT1008, when I executing the action business area is not defaulting / Inheriting from Org.Management.
    Any one could help me to solve this issue.
    Thank you.
    Bachi

    It seems OM and PA are not integrated, are they?
    RHINTE20  is the report can bring data from OM to PA.

  • Event Bubbling Custom Object not inheriting from control

    One of the new things flash flex and xaml have are ways which
    the event easily bubbles up to a parent that knows how to handle
    the event. Similar to exceptions travel up until someone catches
    it.
    My goal is to use the frameworks event system on custom
    objects. My custom objects are:
    ApplicationConfiguration
    through composition contains:
    SecurityCollection which contains many or no SecurityElements
    and
    FileSystemCollection.cs which contains many or no
    FileSystemElement objects
    ect ect basically defining the following xml file with custom
    objects.
    [code]
    <ApplicationConfiguration>
    <communication>
    <hardwareinterface type="Ethernet">
    <ethernet localipaddress="192.168.1.2" localport="5555"
    remoteipaddress="192.168.1.1" remoteport="5555" />
    <serial baudrate="115200" port="COM1" />
    </hardwareinterface>
    <timing type="InternalClock" />
    </communication>
    <filesystem>
    <add id="location.scriptfiles" value="c:\\" />
    <add id="location.logfiles" value="c:\\" />
    <add id="location.configurationfiles" value="c:\\" />
    </filesystem>
    <security>
    <add id="name1" value="secret1" />
    <add id="name2" value="secret2" />
    </security>
    <logging EnableLogging="true"
    LogApplicationExceptions="true" LogInvalidMessages="true"
    CreateTranscript="true" />
    </ApplicationConfiguration>
    [/code]
    basically these custom objects abstract the xml details of
    accessing attributes, writing content out of the higher application
    layers.
    These custom objects hold the application configuration which
    contains the users options. The gui application uses these
    parameters across various windows forms, modal dialog boxes ect.
    The gui has a modal dialog that allows the user to modify these
    parameters during runtime.
    basically i manage: load, store, new, edit, delete of these
    configuration files using my custom objects.
    Where would event propagation help in custom objects like
    described above?
    ConfigurationSingleton.getInstance().ApplicationConfiguration.CommunicationElement.Hardwar eInterfaceElement.EthernetElement.RemoteIPAddress
    =
    System.Net.IPAddress.Parse(this.textBoxRemoteEthernetIpAddress.Text);
    The EthernetElement should propagate a changed event up to
    the parent ApplicationConfiguration which would persist this to the
    registry, db, file or whatever backend.
    currently this logic is maintained else where. I serialize
    the root node which compositely serializing the nested nodes and i
    check of the serialization is different from that in the backend
    … This tells me if the dom was modified. It works but i would
    like an event driven system.
    how should i implement bubbling using custom objects?
    3 implementation ideas:
    1) A simple way is to implement a singleton event manager:
    EventManager.RegisterRoutedEvent
    http://msdn2.microsoft.com/en-us/library/ms742806.aspx
    I like this idea but how can you tell which object is nested
    in who… this way the event can be stopped and discontinue
    propagation?
    2) If i use binders as discussed in Apress’s book:
    Event-Based
    Programming Taking Events to the Limit
    basically a binder connects the events between seperate
    objects together… although it would work for my app, I would
    like a more generalized approach so i can reuse the event system on
    future project.
    3) how does flash flex handle this..
    objectproxy.as?
    http://www.gamejd.com/resource/apollo_alpha1_docs/apiReference/combined/mx/utils/ObjectPro xy.html#getComplexProperty()
    >Provides a place for subclasses to override how a complex
    property that needs to be either proxied or daisy chained for event
    bubbling is managed.
    how does these systems all work....? Reflection ?
    this way i can simulate this on my own custom classes.
    Thanks!

    I have a strong sensation that the OSMF project is quite dead.
    no new submits since 2010, the contact form on the offical OSMF
    project website http://www.opensourcemediaframework.com/
    returns a PHP error.
    and many unanswered questions about OSMF in this forum.
    i think it would be wise to not use OSMF if possible, although
    I'm also stuck with it since we are utilizing HDS/PHDS
    protocols which are utilized in the framework.
    otherwise its quite a head-ache.
    I'm unable to get to a video element coming from a proxied element
    that is being produced via an HDS connection.
    and haven't found any solution that works.

  • Added existing domain to the parent domain and now permission not inheriting on the child domain

    Hi Friends
    There was a existing Domain but we bought the company and make that Domain as a child domain of our Domain, problem is that users of Parent domain does not have access to the child domain. permissions are not inheriting from parent domain to child domain. 
    for e.g i created user on the parent domain i cant even login to the machine in other domain or access the resources which are on the child domain.

    Simply delegate the permissions you want to grant so that users from the root domain can have access to resources in the child domain.
    As an example, you make users from the parent domain login to computers from the child domain using
    Allow logon locally group policy: http://technet.microsoft.com/en-us/library/cc756809%28v=ws.10%29.aspx
    You can also make them able to RDP the computers if you add them to Remote Desktop Users
    group. This could be done by Restricted Groups Group Policy.
    So, for security reasons and depending on your current configuration, it is normal that users from the root domain might not have by default access to resources in the child domain. This could be fixed by doing the proper delegation.
    This posting is provided AS IS with no warranties or guarantees , and confers no rights.
    Ahmed MALEK
    My Website Link
    My Linkedin Profile
    My MVP Profile

  • User can not inherited privilege from Role

    DD1 is a new user, CT_GROUP_USER is a role with all tables access right.
    1)First, check the privilege of role CT_GROUP_USER
    select table_name,privilege from dba_tab_privs where grantee='CT_GROUP_USER'
    we can see CT_GROUP_USER have ALL tables' privilege.
    2)Second, grant CT_GROUP_USER role to user DD1
    GRANT ct_group_ADMINISTRATOR to DD1 with admin option
    GRANT ct_group_USER to DD1 with admin option
    select * from dba_role_privs where grantee='DD1'
    we can see CT_GROUP_USER role here
    3)
    USE DD1 to access table ct_user, it looks DD1 did not have privilege inherited from  CT_GROUP_USER
    4) Do additional operation, grant a table privilege to DD1
    grant select,insert,update,delete on CT_ACLENTRY     to DD1 WITH GRANT OPTION
    select table_name,privilege from dba_tab_privs where grantee='DD1'
    DD1 ONLY have CT_ACLENTRY  privilege.
    USE DD1 to access ct_aclentry, it is succeed.
    5) RUN below script on Oracle 10g and Oracle 11g, User DD3 can access tables on 10g but failed on 11g.
    CREATE USER DD3 IDENTIFIED BY DD3
    GRANT CREATE SESSION TO DD3
    GRANT CT_GROUP_ADMINISTRATOR TO DD3
    GRANT CT_GROUP_USER TO DD3
    Question: Is there any setting for GRANT on Oracle 11g?
    Additional: ALTER USER DD3 DEFAULT ROLE CT_GROUP_USER
    Above command can not let DD3 access tables, DD1 neither

    1)
    we can see CT_GROUP_USER have ALL tables' privilege.
    Can we? You don't post results of this statement, you I can only assume you can see it, but I can't
    And granting ALL privileges is a bad idea anyway.
    2) Why 'with admin'?
    3)
    USE DD1 to access table ct_user, it looks DD1 did not have privilege inherited from  CT_GROUP_USER.
    For you maybe, but as you don't post any failing SQLs and any error messages, who can tell?
    5) 'but failed' on 11g.
    Please keep in mind this is a discussion room, not a chat room, and we can't see what you are doing.
    You need all these lines to ask 'My car is broke, please fix my car'. I can't see any car from here.
    Sybrand Bakker
    Senior Oracle DBA

  • Can not access the Instance Data of a Singleton class from MBean

    I am working against the deadline and i am sweating now. From past few days i have been working on a problem and now its the time to shout out.
    I have an application (let's call it "APP") and i have a "PerformanceStatistics" MBean written for APP. I also have a Singleton Data class (let's call it "SDATA") which provides some data for the MBean to access and calculate some application runtime stuff. Thus during the application startup and then in the application lifecysle, i will be adding data to the SDATA instance.So, this SDATA instance always has the data.
    Now, the problem is that i am not able to access any of the data or data structures from the PerformanceStatistics MBean. if i check the data structures when i am adding the data, all the structures contains data. But when i call this singleton instance from the MBean, am kind of having the empty data.
    Can anyone explain or have hints on what's happening ? Any help will be appreciated.
    I tried all sorts of DATA class being final and all methods being synchronized, static, ect.,, just to make sure. But no luck till now.
    Another unfortunate thing is that, i some times get different "ServicePerformanceData " instances (i.e. when i print the ServicePerformanceData.getInstance() they are different at different times). Not sure whats happening. I am running this application in WebLogic server and using the JConsole.
    Please see the detailed problem at @ http://stackoverflow.com/questions/1151117/can-not-access-the-instance-data-of-a-singleton-class-from-mbean
    I see related problems but no real solutions. Appreciate if anyone can throw in ideas.
    http://www.velocityreviews.com/forums/t135852-rmi-singletons-and-multiple-classloaders-in-weblogic.html
    http://www.theserverside.com/discussions/thread.tss?thread_id=12194
    http://www.jguru.com/faq/view.jsp?EID=1051835
    Thanks,
    Krishna

    I am working against the deadline and i am sweating now. From past few days i have been working on a problem and now its the time to shout out.
    I have an application (let's call it "APP") and i have a "PerformanceStatistics" MBean written for APP. I also have a Singleton Data class (let's call it "SDATA") which provides some data for the MBean to access and calculate some application runtime stuff. Thus during the application startup and then in the application lifecysle, i will be adding data to the SDATA instance.So, this SDATA instance always has the data.
    Now, the problem is that i am not able to access any of the data or data structures from the PerformanceStatistics MBean. if i check the data structures when i am adding the data, all the structures contains data. But when i call this singleton instance from the MBean, am kind of having the empty data.
    Can anyone explain or have hints on what's happening ? Any help will be appreciated.
    I tried all sorts of DATA class being final and all methods being synchronized, static, ect.,, just to make sure. But no luck till now.
    Another unfortunate thing is that, i some times get different "ServicePerformanceData " instances (i.e. when i print the ServicePerformanceData.getInstance() they are different at different times). Not sure whats happening. I am running this application in WebLogic server and using the JConsole.
    Please see the detailed problem at @ http://stackoverflow.com/questions/1151117/can-not-access-the-instance-data-of-a-singleton-class-from-mbean
    I see related problems but no real solutions. Appreciate if anyone can throw in ideas.
    http://www.velocityreviews.com/forums/t135852-rmi-singletons-and-multiple-classloaders-in-weblogic.html
    http://www.theserverside.com/discussions/thread.tss?thread_id=12194
    http://www.jguru.com/faq/view.jsp?EID=1051835
    Thanks,
    Krishna

  • Default File Permission not being inherited from parent Share folders

    I'm having some trouble with file permissions
    on one of my 10.4.7 file servers (running XServe).
    New folders under Shared folders are not getting their
    permissions from the parent folders.
    Share permission is owner:rw,group:rw,everyone:none
    but a new folder created below that becomes
    owner:r+w,group:r,everyone:r
    and the owner for the new folder is the user who
    created it and not the admin (for the machine).
    I have the default permission to set to inherit permission
    from parent but that doesn't seem to be working.
    I have couple other Xserve 10.4.7 file servers that
    is behaving the way I want, with default permission
    is being inherited from the parent folders, and I've compared them but cannot find any difference between
    the two in their settings.
    Thank you,
    Tadashi

    If you deny read and execute access for any parent folder, you've denied the ability to access its contents. The POSIX execute bit for folders is the switch that determines whether or not the folder's contents can be viewed, listed, or searched. If the contents are not enumerable, then it doesn't matter what their privileges are.
    But be careful. Just not allowing execute for the POSIX owner, POSIX group or POSIX everyone else field may not be sufficient if you're using Effective Permissions. In this case, you'd want to inspect your ACL entries for the parent to ensure that the following controls were not in relevant ACL Allow entries: readextattr, readattr, readsecurity, list, and search. You could also create an ACL Deny entry which denies these five controls for the group or user you want to block out; but don't block the Everyone or Authenticated Users group because ACL Deny rules are evaluated in such a manner that they "subtract from" ACL Allow and POSIX permissions:
    E <=> (P U A)\D
    Effective Permissions (E) are logically equivalent to the union of (U) applicable POSIX permissions (P) and applicable ACL Allow entries (A), taking away (\) applicable ACL Deny entries (D).
    Further, POSIX permissions, P are defined as P <=> (u xor g xor o); they are either the permissions of the owner (u), group (g), or everyone else (o) fields, but not any combination of the two or three.
    --Gerrit

  • [svn] 2692: Bug: BLZ-227 - When using JMS Destination, MessageClient and FlexClient not released from memory when the session times out .

    Revision: 2692
    Author: [email protected]
    Date: 2008-07-31 13:05:35 -0700 (Thu, 31 Jul 2008)
    Log Message:
    Bug: BLZ-227 - When using JMS Destination, MessageClient and FlexClient not released from memory when the session times out.
    QA: Yes
    Doc: No
    Checkintests: Pass
    Details: Fixed a memory leak with JMS adapter. Also a minor tweak to QA build file to not to start the server if the server is already running.
    Ticket Links:
    http://bugs.adobe.com/jira/browse/BLZ-227
    Modified Paths:
    blazeds/branches/3.0.x/modules/core/src/java/flex/messaging/services/messaging/adapters/J MSAdapter.java
    blazeds/branches/3.0.x/qa/build.xml

    Revision: 2692
    Author: [email protected]
    Date: 2008-07-31 13:05:35 -0700 (Thu, 31 Jul 2008)
    Log Message:
    Bug: BLZ-227 - When using JMS Destination, MessageClient and FlexClient not released from memory when the session times out.
    QA: Yes
    Doc: No
    Checkintests: Pass
    Details: Fixed a memory leak with JMS adapter. Also a minor tweak to QA build file to not to start the server if the server is already running.
    Ticket Links:
    http://bugs.adobe.com/jira/browse/BLZ-227
    Modified Paths:
    blazeds/branches/3.0.x/modules/core/src/java/flex/messaging/services/messaging/adapters/J MSAdapter.java
    blazeds/branches/3.0.x/qa/build.xml

  • After crashing, Firefox is not re-openeing saved tabs from my last session, but is re-opening tabs from a session over a month old. How do I find my saved tabs?

    After crashing, Firefox is not re-opening saved tabs from my last session, but is re-opening tabs from a session over a month old. How do I find my saved tabs?

    This can be a problem with the file [http://kb.mozillazine.org/sessionstore.js sessionstore.js] and sessionstore.bak in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder]
    Delete [http://kb.mozillazine.org/sessionstore.js sessionstore.js] and sessionstore.bak in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder]
    If you see files sessionstore-##.js with a number in the left part of the name like sessionstore-1.js then delete those as well.
    See:
    * http://kb.mozillazine.org/Session_Restore

  • Migrating from eVC++4.0 to VS2008: Menu Bar not coming for class inherited from CProterty sheet

    We are migrating code developed in eVC++4.0 to Visual Studio 2008. We are facing a Problem as descripted below. We are using Pocket PC 2003 emulator.
    We are creating a class inherited from CPropertySheet. As below:
    In Header File:
    class COptionsSheet :
    public CPropertySheet
          DECLARE_DYNAMIC(COptionsSheet)
    #if(WINVER == 0x400)// This works for MenuBAr inherited from CDialog classes.
          CCommandBar m_cb;
    #else
          CCeCommandBar m_cb;
    #endif
    public:
    virtual BOOL OnInitDialog();
    We are drawing menu bar on the property window as below:
    In .CPP file:
    IMPLEMENT_DYNAMIC(COrderSheet, CPropertySheet)
    BEGIN_MESSAGE_MAP(COrderSheet, CPropertySheet)
    ON_COMMAND(ID_CUSTOMER_COLLECTPAYMENT, OnCustomerCollectpayment)
    ON_WM_INITMENUPOPUP()
    ON_NOTIFY(GN_CONTEXTMENU, 0, OnContextMenu)
    END_MESSAGE_MAP()
    BOOL COrderSheet::OnInitDialog()
    BOOL bResult = CPropertySheet::OnInitDialog();
    m_cb.Create(this);//This we have changed for VS 2008 as menu was not appearing for class inherited from CDialog class as well. In eVC++
    4.0 code we have used. Please see m_cb in header file discription
    m_cb.InsertMenuBar(IDR_ORDER1);// This calis unable to draw mwnu bar
    CMenu *pMenu = CWnd::GetMenu();
    //pMenu becomes NULL in very next line as we are passing it as parameter below.
    gPromotion.LoadSalesPromotions(pMenu,
    "Sales", SRC_TRACE_START);
    We tried this as well but it’s also not working:
    CMenu *pMenu = new CMenu;
          BOOL cehckStatus = pMenu->LoadMenu(IDR_ORDER1);
    SetMenu(pMenu);
          CRect r;  GetWindowRect(&r);
          r.bottom += GetSystemMetrics(SM_CYMENU);
          MoveWindow(r);
    Do we have to change or add something more for the menu bar in case of Property Sheet. Is there any change between eVC++ and Visual studio 2008 that we need to incorporate here.

    This forum is for POSReady. Please try one of the Windows CE forums:
    http://social.msdn.microsoft.com/Forums/en-US/category/windowsembeddedcompact
    -Sean
    www.annabooks.com / www.seanliming.com / Book Author - Pro Guide to WE8S, Pro Guide to WES 7, Pro Guide to POS for .NET

  • How do I Restore previous session when I have it setup correctly and it did not restore from last session? I have General is set to Show my windows .....

    How do I Restore previous session when I have it setup correctly and it did not restore from last session? I have General is set to Show my windows and tabs from last time and Privacy set to remember history.
    These to pages do NOT apply: https://support.mozilla.org/en-US/kb/restore-previous-session
    https://support.mozilla.org/en-US/kb/how-do-i-restore-my-tabs-last-time
    There is No option to restore previous session when I go into History. There is No Recent history in the History. It will show my history if I click on show History, but it won't restore it!

    Hi StuckAtHomeMom
    try in PRIVACY panel to set : Firefox will: Use custom settings for history and :
    Uncheck: [ ] "Always use private browsing mode"
    Uncheck: [ ] "Clear history when Firefox closes"
    check everything else and in Accept third-party cookies, set Keep until: they expire
    thank you
    Please mark "Solved" the answer that really solve the problem, to help others with a similar problem.

  • Don't work telnet client from ssh session ("%Connections to that host not permitted from this terminal") in 151-4M.

    I changed IOS to 15.1.4M in the ISR router.
    If I connect to console by ssh and  I type  "telnet X.X.X.X YY"  in console then It appear the strange message "%Connections to that host not permitted from this terminal".
    After I  downgraded to  ios 12.4.24 , then it's all work fine .
    configuration line vty :
    line vty 0 4
    transport input ssh
    transport output all
    What it's the problem in IOS 15.1.4M?

    Thank you for answer.
    I've created the access-list :  access-list 20 permit 192.168.200.0 0.0.0.255
    line vty 0 4
    access-class 20 out
    transport input ssh
    transport output all
    IF I try "telnet 192.168.200.2 " - It's working
    But IF I try "ssh 192.168.200.2 " - It isn't working, appear "%  Connections to that host not permitted from this terminal" 
    IF I try from router with IOS  12.4.23 - It's working fine .

  • Session level character set

    The below are my character set in my DB
    NLS_CHARACTERSET=WE8ISO8859P1
    NLS_NCHAR_CHARACTERSET=UTF8
    Correct Answer (If I use english language the result is correct)
    ==========
    select product(',','AB_BC ,DE') from dual;
    (AB_BC, DE,,,)
    After altering the parameter at session level to get Japanese character set I am getting wrong result
    ALTER SESSION NLS_SORT=JAPANESE_M_AI
    ALTER SESSION NLS_COMP=LINGUISTICS
    it is giving me wrong result (I should get the above result)
    =================
    select product(',','A_BC ,DE') from dual;
    (AB, BC , DE,,,,)
    How to change at session leavel to get Japanese character set

    Ok,
    Let's provide the broad picture, as your setup and your commands are incorrect.
    You set the characterset of the database to a characterset the O/S supports.
    Whether or not you have characterset conversion on the client side is determined by NLS_LANG.
    You set NLS_LANG to a characterset the client O/S supports. Ie if you are running on Windows (as always you provide no details at all), the regional settings of the O/S must have been set to Japanese.
    WE8ISO8859P1 is the Latin-1 alphabet and doesn't support Kanji.
    Also the command you specify deal with sorting of the data, not with the characterset itself.
    Also no one can tell what
    select product(',','AB_BC ,DE') from dual;
    constitutes.
    In summary: you don't seem to be reading documentation, or you only look at it.
    None of what you have posted makes any sense, and clearly shows you didn't try to understand the NLS concept.
    Yet again: you don't provide platform and version info
    Yet again: you don't specify any background.
    If you want help, you need to provide as much info as possible.
    You should not require anyone here to tear the information out of you.
    After all: everyone here is a volunteer and doesn't get paid to help you out, but is spending his/her time.
    If you want to continue to post in this fashion, maybe you should find a forum of mindreaders.
    Sybrand Bakker
    Senior Oracle DBA

  • How to measure undo at a session level

    Below is what are trying to do.
    We are trying to implement Oracle's table block compression feature.
    In doing so, in one of our testing we discovered that the session performing the DML (inserts) generated almost 30x undo.
    We measured this undo by using below query (before the transaction commited).
    SELECT a.sid, a.username, used_ublk, used_ublk*8192 bytes
    FROM v$session a, v$transaction b
    WHERE a.saddr = b.ses_addr
    However, above is at a transaction level since it still not committed, we would lose this value once the transaction either committed or rolled back, for this reason, we are trying to find an equivalent statistic at a session level.
    1. What we are trying to find it out whether if an equivalent session level statistic exist to measure the amount of undo generated?
    2. Is the undo generated always in terms of "undo blocks?"
    3. When querying v$statname for name like '%undo%' we came across several statistics, the closest one
    undo change vector size -in bytes?
    4. desc test_table;
    Name Type
    ID NUMBER
    sql> insert into test_table values (1);
    5. However when we run the query against:
    SELECT s.username,sn.name, ss.value
    FROM v$sesstat ss, v$session s, v$statname sn
    WHERE ss.sid = s.sid
    AND sn.statistic# = ss.statistic#
    AND s.sid =204
    AND sn.name ='undo change vector size'
    SID USERNAME NAME BYTES
    204 NP4 undo change vector size 492
    6. Query against: v$transaction
    SELECT a.sid, a.username, used_ublk, used_ublk*8192 bytes
    FROM v$session a, v$transaction b
    WHERE a.saddr = b.ses_addr
    SID USED_UBLK BYTES
    204 1 8192
    What are trying to understand is:
    1. How can we or what is the correct statistic to determine how many undo blocks were generated by particular session?
    2. What is the statistic: undo change vector size? What does it really mean? or measure?

    Any transaction that generates Undo will use Undo Blocks in multiples of 1 --- i.e. the minimum allocation on disk is 8KB.
    Furthermore, an Undo_Rec does not translate to a Table Row. The Undo has to capture changes to Indexes, block splits, other actions. Multiple changes to the same table/index block may be collapsed into one undo record/block etc etc.
    Therefore, a transaction that generated 492 bytes of Undo would use 8KB of undo space because that is the minimum allocation.
    You need to test with larger transactions.
    SQL> update P_10 set col_2='ABC2' where mod(col_1,10)=0;
    250000 rows updated.
    SQL>
    SQL> @active_transactions
           SID    SERIAL# SPID         USERNAME     PROGRAM                       XIDUSN  USED_UBLK  USED_UREC
           143        542 17159        HEMANT       sqlplus@DG844 (TNS V1-V3)          6       5176     500000
    Statistic : db block changes                                      1,009,903
    Statistic : db block gets                                         1,469,623
    Statistic : redo entries                                            502,507
    Statistic : redo size                                           117,922,016
    Statistic : undo change vector size                              41,000,368
    Statistic : table scan blocks gotten                                 51,954
    Statistic : table scan rows gotten                               10,075,245Hemant K Chitale

Maybe you are looking for

  • [SOLVED] X won't start

    I just uninstalled LXDE with pacman -Rs lxde and installed mate. I restarted my laptop and when I type startx I get this: X.Org X Server 1.12.1 Release Date: 2012-04-13 X Protocol Version 11, Revision 0 Build Operating System: Linux 3.3.1-1-ARCH i686

  • Abt selection screen parameters

    hi all i have made a report with selection screen which has two parameters but to run that report i have to fill that two fileds is there any way that i can run my report without filling the two fields of my selection screen. Both the fields are used

  • XInclude in faces-config.xml

    Hi, I will appreciate some explanation about line xmlns:xi="http://www.w3.org/2001/XInclude" in faces-config.xml. In some samples I find it and in others not. ¿It’s necessary? ¿what is its functionality? Thanks!

  • Using keyword within uicontrol

    Hello again, I have another "Best Practices" question that is causing some debate at my organization. DITA allows the use of the <keyword> element within <uicontrol> and several other User Interface elements (not <wintitle>). Authors are split as to

  • Adobe Flex 4 with ABAP web dynpro

    I currently am working with Flex 3 but wanted few features of Flex 4 for my project. Is there any way that I can use Flex 4 with ABAP web dynpro. I have tried using the 'Use Flex 3 compatibility mode' with 'merged into code' but this does not work. T