Resource Mangement question(s)

Hello,
I'm running Oracle 11.2.0.2 (on Solaris 10).
I'm reading an Oracle whitepaper on Resource Management and hoping someone has experience with this subject.
Re: http://www.oracle.com/technetwork/database/performance/resource-manager-twp-133705.pdf
I have gone through the steps in this paper in attempt to set two different users (actually these are main user accounts that are shared) to two separate consumer groups, but I'm a little lost how to assign them to those groups.
So, here are the steps I've done:
=======================
SQL> alter system set resource_limit=true scope=both;
System altered.
SQL> alter system set resource_manager_plan = 'DEFAULT_PLAN' sid='*';
System altered.
SQL> exec dbms_resource_manager.create_pending_area();
PL/SQL procedure successfully completed.
SQL> BEGIN dbms_resource_manager.set_consumer_group_mapping(attribute => dbms_resource_manager.service_name,value => 'REMEDYT',consumer_group =>'INTERACTIVE_GROUP'); END;
PL/SQL procedure successfully completed.
SQL> exec dbms_resource_manager_privs.grant_switch_consumer_group(grantee_name => 'ARADMIN',consumer_group => 'INTERACTIVE_GROUP',grant_option => FALSE);
PL/SQL procedure successfully completed.
SQL> exec dbms_resource_manager_privs.grant_switch_consumer_group(grantee_name => 'ARRDONLY',consumer_group => 'DSS_GROUP',grant_option => FALSE);
PL/SQL procedure successfully completed.
SQL> exec dbms_resource_manager_privs.grant_switch_consumer_group(grantee_name => 'public',consumer_group => 'DSS_GROUP',grant_option => FALSE);
PL/SQL procedure successfully completed.So basically I'm allowing the main application which uses schema ARADMIN to use the "INTERACTIVE_GROUP", and the schema ARRDONLY (or any other user) to use the "DSS_GROUP".
But, this seems to only "allow" these users to switch to these groups, rather than assign them to these groups.
Also, how do I see (or adjust) what allocation of resources are given to these groups respectively by default.
These are all Oracle default groups.
I'm a little lost on this one whereas in the past I've just considered to use profiles for managing resources, but this is different, (and perhaps better for what I'm wanting to accomplish). What I'm wanting to accomplish, is exactly as noted in this whitepaper:
You can also use Resource Manager to explicitly allocate CPU resources to the multiple
workloads or applications that are sharing the database. For example, you can prioritize
“sys” over regular users and OLTP transactions over reports and batch jobs

ji li wrote:
But, this seems to only "allow" these users to switch to these groups, rather than assign them to these groups.In your case DBMS_RESOURCE_MANAGER.SET_CONSUMER_GROUP_MAPPING will assign user session to the right group based on the service name used by the client to establish a connection because you have used :
dbms_resource_manager.service_name
Also, how do I see (or adjust) what allocation of resources are given to these groups respectively by default.You need either to create a simple plan using CREATE_SIMPLE_PLAN http://docs.oracle.com/cd/E11882_01/server.112/e25494/dbrm004.htm
or a complex plan using differents steps described in http://docs.oracle.com/cd/E11882_01/server.112/e25494/dbrm005.htm.
You can query following dictionary views for resource manager allocated resources:
DBA_RSRC_CONSUMER_GROUPS
DBA_RSRC_IO_CALIBRATE
DBA_RSRC_PLAN_DIRECTIVES
Edited by: P. Forstmann on 15 févr. 2013 21:20

Similar Messages

  • Resource manger

    Hi All,
    I want to use resource manger in my database.
    The requirement is as below:
    Database version : 10.2.0.4
    No. of CPU's : 30
    The batch user runs the batch during the daytime window, and we want to restrict only the batch user to user say 30% CPU during the day time.
    In the night time, when the batch runs the batch user should be able to use as much CPU % as he wants, in other words all the CPU if no one else is using it
    Is it possible to achieve this using resource manager?
    Any idea how a multilevel plan can be used to have different percentage of CPU allocation for the same group during day and night?

    When I try to create a simple example with resource manager, it fails with following error
    SQL> exec DBMS_RESOURCE_MANAGER.CREATE_PENDING_AREA();
    PL/SQL procedure successfully completed.
    SQL> exec DBMS_RESOURCE_MANAGER.CREATE_CONSUMER_GROUP(CONSUMER_GROUP => 'BATCH_GROUP', COMMENT => 'Resource consumer group/method for BATCH jobs');
    PL/SQL procedure successfully completed.
    SQL> exec dbms_resource_manager.set_consumer_group_mapping( attribute => dbms_resource_manager.oracle_user, value => 'TEST', consumer_group => 'BATCH_GROUP');
    PL/SQL procedure successfully completed.
    SQL> exec DBMS_RESOURCE_MANAGER.CREATE_PLAN(PLAN => 'BATCH_PLAN', COMMENT => 'Resource plan/method for Database');
    PL/SQL procedure successfully completed.
    SQL> exec DBMS_RESOURCE_MANAGER.CREATE_PLAN_DIRECTIVE(PLAN => 'BATCH_PLAN', GROUP_OR_SUBPLAN => 'BATCH_GROUP', COMMENT => 'Batch sessions', CPU_P1 => 30);
    PL/SQL procedure successfully completed.
    SQL> exec DBMS_RESOURCE_MANAGER.VALIDATE_PENDING_AREA();
    BEGIN DBMS_RESOURCE_MANAGER.VALIDATE_PENDING_AREA(); END;
    ERROR at line 1:
    ORA-29382: validation of pending area failed
    ORA-29377: consumer group OTHER_GROUPS is not part of top-plan BATCH_PLAN
    ORA-06512: at "SYS.DBMS_RMIN", line 402
    ORA-06512: at "SYS.DBMS_RESOURCE_MANAGER", line 437
    ORA-06512: at line 1
    What am i missing here?

  • Station Globals resource related question( how much it allocates / optimal size of it in system)

    Hi, 
    I have some questions StationGlobal’s oriented:
    1. Does the variables of type StationGlobal allocate equals amount of memory without reference to type?
       For example: Number/String/Boolean/Object Reference allocates equals resources:Number=String=Boolean=Object Reference=’X’ bytes)
       Or Number=’X’ bytes, String=’Y’ bytes, Boolean=’Z’ bytes?
    2. Does it make the difference if I have 10 or 100 or 1000 StationGlobals variables allocated in my system regards  - resources of my system and
        how the quantity of it influences(or not influences) to performance of system/Test execution?
    Those questions are important, because we want to know how the quantity/type of StationGlobal’s lvariables influence to overall throughput/performance of
    System (e.g. Test running).
    Thank you & Best Regards
    *I use LabVIEW 8.X & TestStand 3.5/4.0.1 versions only

    Not so strange IMHO. You might be making a mental analogy to C data structures where nothing is abstracted and you know exactly what is happening to each byte.
    However, TestStand variables are black box objects with a lot more functionality than plain C data structures. Like most such objects you create via almost any object oriented API, their exact memory usage is NOT documented.
    One reason memory usage is not documented is that we need to be free to change the implementation if necessary, which would not be possible if we make guarantees about exact memory usage. Another reason it is not documented is because in most practical cases, it is not important, and we don't want to mislead people into worrying about it.
    If you are allocating data structures of such vastness that it actually does matter, then the task manager is an appropriate and easy tool to use to view the approximate magnitude of memory used by the objects you create. This applies to most objects from most APIs, not just TestStand variables.

  • Resource Utilization Question

    Hi, Please let me know if the following scenario is a possibility.
    We currently maintain our capacity utilization at 90% for any resource and the same number is carried over to APO (SCM 5.0) with CIF. The requrement we have is to set this utilization to 100% for the rolling current date+3 months and 90% outside the 3 month horizon. I know that the dates can be specified explicity in R/3 but I don't know if the rolling 3 month is possible. Please let me know if this can be achieved via config or master data setting in APO.
    Thanks in advance.

    Phaneendra,
    To maintain the capacity utilization (Variable) time based. You can use the interval planning in ECC and then you can CIF this intervals to APO. Before you setup the intervals you need to perform one CIF customization activity in CFC9. Using the external capacit. Check(X) this field in ECC.
    Step 1:  In CR01when you are creating the work center under the capacity tab and you maintain the capacity category (Machine/Labor). Then Click on Capacity header.
    Step 2: In capacity header you maintain the interval. Before this you select the Active version (1) under Available capacity.
    Step 3: Click on intervals, there you can maintain the from date and to date. Define the number of intervals you requrie.
    Step 4. Click on intervals+Shift there you can call the defined intervals and maintain the capacity utilization what you require for business. Also you can add intervals in this screen by clicking on insert intervals.
    Step 5: After you are done you need to click on APO resource (this step is very important),which you can see top right corner under capacity header. Here under header data for APO resource you select the type of resource multimixed/single mixed (SNP) or mulitactivity/single activity (PPDS). In the same screen you need to maintian the factory calendar and active version under the available capacity.
    After you are done with all the steps now you can CIF the resource as external resource to SNP. The intervals you maintained in ECC is visible in capacity profile in SNP resource transaction. This how you maintain the time based capacity utilization. It is bit tricky while maintaining all the fields. Do let me know if you have any questions.
    Regards
    KRN

  • Resource Bundling question.

    Hi,
    I have a message in my resource bundle say:
    static final Object[] messages_ =
    { T2zosMessageKeys.MYDETAILS_,
    " My name is = {0} and my age is "{1}"},
    My question is when I invoke this message in my resource bundle , how do I supply the parameters to the arguments {0} and {1}?

    Well, if that's your resource file, I would say you need some sort of method to search and replace those parameters in the string.

  • Resource Manager question

    Hi,
    In 10g , Automatically Assigning Resource Consumer Groups to Sessions done by using the following package:
    DBMS_RESOURCE_MANAGER.set_consumer_group_mapping (
    attribute IN VARCHAR2,
    value IN VARCHAR2,
    consumer_group IN VARCHAR2 DEFAULT NULL)
    For example:
    DBMS_RESOURCE_MANAGER.set_consumer_group_mapping (
    attribute => DBMS_RESOURCE_MANAGER.module_name,
    value => 'TOAD',
    consumer_group => 'TOOLS_GROUP');
    In case that i have few version of the same tool such as: TOAD 9.5.0.31 , TOAD 8.1 and so on (found under module_name column in v$session)
    than i have to attache each UNIQUE module to the procedure :DBMS_RESOURCE_MANAGER.set_consumer_group_mapping
    Is there an option to pass entry like %TOAD% ?
    Thanks

    Is there an option to pass entry like %TOAD% ?
    Nope, I don't think so, couldn't find anything like that in the docs.
    Aman....

  • Resource bundle question, where does it fit into package structure?

    I have a resource bundle but am getting an exception that says my resource bundle is not found (base type) of my OS local. I am not sure why.
    Here is my log...
    11 Apr 2009 10:40:09 AM suncertify.util.ErrorHandler handle
    SEVERE: Can't find bundle for base name SuncertifyExceptionBundle, locale en_ZA
    java.util.MissingResourceException: Can't find bundle for base name SuncertifyExceptionBundle, locale en_ZA

    Just some thaughts I would like to get opinions on. I felt I would create different bundles for Exception messages, and GUI text. I even go as far as creating a different bundle for each application mode, one for each different window(server, network, standalone). I want to know if I should let each of these classes call their respective bundle or should I let one class provide access to all resource bundles? Which is more favourable? I only ask because I have a application constants class that I am recoding and I could "convert it" to open the needed bundle properties file for the appropriate Strings?

  • Resource Renderer question

    Hi all,
    I'm trying to modify the output of the 'News' collaboration room part. I want to make it so that the title of each news item is a little bigger than the description which shows up below it. The 'News' iview that I'm speaking about is based on the com.sap.netweaver.coll.BulletinBoard iview, which can be found in Content Administration -> Portal Content -> com.sap.ip.collaboration -> Template and Part Content -> Homer -> iViews.
    I understand that I need to modify the resource renderer that's mentioned in the layout set which is referenced by the iview. I have created a copy of the layout set that's referenced by the iview, which is AppBulletinBoardExplorer. I have tried tinkering with the resource renderer, which is called AppBulletinBoardResourceRenderer. I've tried changing the Primary Text Style to different settings, but nothing seems to make it change. I believe that what may be getting in the way is the flavor for this resource renderer, which is called 'Second_Level'. I tried playing around with this flavor setting but the changes are too extreme when changing from 'Second_Level'.
    Can anyone tell me how to change the output of this iview to make it behave like I want it to?
    Thanks!
    -Stephen Spalding
    Web Developer
    Graybar

    Hi Stephen,
    in my portal the News-iView is based on 'com.sap.netweaver.coll.appl.ui.room.Roomnavigation'. The name you mentioned is the name of the pcd-location (i.e the folder).
    News are normally based on xml-forms. So I would suggest, that you have a look at the form used here and try to copy and change it by the help of the xml-forms-builder.
    You can find more info on help.sa.com http://help.sap.com/saphelp_nw04/helpdata/en/8f/fe743c74fa6449e10000000a11402f/frameset.htm
    Hope this helps
    Karin

  • OIM resource granularity question

    Hi,
    I just touch OIM since last week. I see OIM resouce type includes RDBMS and EJB. But I wonner know more detail about protecting such resources.
    1. RDBMS Resources: ADD, DELETE, and UPDATE
    Does it grant privileges to a whole table or to discriminated records in the table according to some setting, e.g. key column value?
    Secnario: when request employee salary info, the request url and table is the same, but manager can see all his men's but individual employee can only see his own.
    2. Where does OIM store resouce metadata in the policy domain?
    To store table name in LDAP or somewhere else?
    3. Is there any AccessPort provided for JBoss app server? if is, which is the url to download it?
    Thanks in advance
    Justin

    The out of the box provisioning adapter does not support multi domain provisioing. You would have to build a custom connector to support this.
    In general option 1 is the lower effort solution. I have done it a number of times over the past few years and it generally works well (the approach is tested right now in this thread: How to create multiple AD instances
    Option two can sometimes fit better with your requirements and can therefor sometimes be of interest.
    It all depends on how your customer views AD access. If the existance of multiple domains is business driven then in general option one aligns closer with your business reqs. If the multiple domains is due to legacy (another company was integrated into your customer and the other company came with it's own Ad domain) then option two might be worth considering.
    Good luck
    /Martin

  • Resource Injection Question -to do with where main is...

    Hi, I've just been doing some jms stuff, and I've found that if I have a class which is just for main, and I send messages in a different class called from main, my resource injection doesn't occur.
    However if the main method is in the class which I send the messages from, resource injection does occur.
    Why is this?? is it something to do with the type of class or something???

    I read that thread and in the SAP library which is quoted, it says, "you can split up the whole dataset for an InfoCube into several, smaller, physically independent and redundancy-free units."
    So what is meant by physically independent in this definition? The way I've described it seems compatible, since data of similar partitions are physically seperate on the disk, though again I'm not sure if its true.
    More inputs would be appreciated... points have and will continue to be awarded.
    Edited by: Benson Wong on Mar 4, 2010 10:38 PM

  • Resource Bundle question

    Can I keep HTML format in a resource bundle -properties file?
    Anybody has expirience?

    yep u can keep HTML format in Resource bundle..
    basically if u get through reading of the Resource bundle u will find the answer by userself.
    when u say resource bundle .getBundle it assumes a class to be opened instead of a property file..
    and the key value pairs inside the property file is also readed the same way as that of the hashtable.
    Infact all the keys are cached as a part of the hashtable.
    and when u say bundle.getString(key) it returns u just a strings... whihc might contain any kind of string.
    hope this answers ur question

  • Resource Mangement

    Hi Gurus,
    How can i set priority between two user. My goal is if one user is trying to commit transaction he should get most of the resources and the other user who is just generating reports should be last in resources list.
    version: oracle11gR2
    Thanks!!!!!!!!

    ji li wrote:
    But, this seems to only "allow" these users to switch to these groups, rather than assign them to these groups.In your case DBMS_RESOURCE_MANAGER.SET_CONSUMER_GROUP_MAPPING will assign user session to the right group based on the service name used by the client to establish a connection because you have used :
    dbms_resource_manager.service_name
    Also, how do I see (or adjust) what allocation of resources are given to these groups respectively by default.You need either to create a simple plan using CREATE_SIMPLE_PLAN http://docs.oracle.com/cd/E11882_01/server.112/e25494/dbrm004.htm
    or a complex plan using differents steps described in http://docs.oracle.com/cd/E11882_01/server.112/e25494/dbrm005.htm.
    You can query following dictionary views for resource manager allocated resources:
    DBA_RSRC_CONSUMER_GROUPS
    DBA_RSRC_IO_CALIBRATE
    DBA_RSRC_PLAN_DIRECTIVES
    Edited by: P. Forstmann on 15 févr. 2013 21:20

  • RAR Resource Utilization question

    I've configured RAR per the various best practice data that I've found from other consultants, and from SAP.  However, my BASIS admin says that the RAR risk analysis is hogging resources on our box, and he wants me to "turn that *&^% off". 
    I've gone through and tried to optimize it, so I was wondering if there were any issues with the resource utilization that I should look into.
    Thanks,
    Santosh

    Dear Santosh,
    As you mentioned above, the relevant configuration shoud be suitable for your server, either JVM, or JCO and RAR .
    The other thing you should care is the mode of risk analysis,  background or foreground.
    If you choose background, you should optimize your job schedule.
    This is my experience in the last project.
    Hope it can help you.
    Best Regards!
    Brian li

  • 1394 Resource Allocation Question

    I am using Labview 6.1 , IMAQ Vision and 1394 Driver ver 1.1 . I have a problem with the 1394 IMAQ Driver and would appreciate any insight. The problem is that the driver seems to be too conservative in it's resource allocation during initialization of multiple 1394 cameras and I need to acquire and process from between 10 and 12 cameras. I have installed up to 4 FireboardRed OHCI interface cards with VIA ( 8 DMA channels )chipset , in 1 PC. I can install my cameras under the manufacturers drivers and run their demo application which lets me start and acquire / display 10 cameras at once at 30 fps /mono. This tells me that that is possible and not a bandwidth limitation problem. When using the NI-IMAQ 1394 drivers ,the best I can get is
    2-3 cameras @ 30fps or up to 7 @ 3.75 fps. The driver returns an error " not enough resources available for acquisition" or the like. I have tried many combinations of frame rates and video modes to bump up the performance , but I can't see why the driver will not allow more than 4 @30 fps to be initialized. This is killing me if I have to make use of other drivers and lose the funtionality of the NI 1394 Driver. I know that certain 1394 interface cards only have 4 DMA channels , but I am running cards with 8 Channels and even so , I can plug 1 camera per port , per card , for a total of 12 using the Fire-I Driver with the 4 channel cards. Help. Thanks.

    Please give version 1.5 a try. You should be able to acquire 30fps, 8bit mono on three cameras per 1394 adapter.
    Regards,
    Brent R.
    Applications Engineer
    National Instruments

  • Resources Bundle question

    I am using the following code to get the property file
    try {
    Res = ResourceBundle.getBundle("test.resources.uiRes", pLocale);
    } catch (MissingResourceException e) {
    System.out.println("Unqualified resource bundle name");
    where pLocale is a parameter.
    But it seems once the resource is load, I cannot reload the resource again in different locale. Anyone can give me some hints?
    Thanks

    Hmmm.... interesting - thanks for sharing it with us!
    I'm wondering if the main ResourceBundle you're using will only ever end up with the default system Locale, simply because you're never defining m_resource_bundle's Locale when you're creating it. Calling this.setLocale() the way you are certainly has the potential to be taking care of this, but whether or not it actually does is something I'm not sure of. Certainly one I'll have to try though!
    I have seen SwingUtilities.updateComponentTreeUI() work to an extent. If you're using a special font, resetting the font on all components before using this is often a very good idea, but it still doesn't force absolutely everything to repaint.
    One final thing to bear in mind for the newbies. If you're switching locales only, and not ResourceBundles, all the dates, times, currencies and other i18n data that Java carries within its i18n.jar will update automatically. You'll often need to set the font as mentioned above to get it all to display, but the way it all changes with one simple setLocale() call is excellent. If only ResourceBundles did the same!
    Hope that helps!
    Martin Hughes

Maybe you are looking for

  • Brand new iPod touch 4th generation VERY short battery life.

    So the other day I went in to replace my old iPod touch for a new one because the home button was getting stuck and wouldn't work. So everything worked fine and I got the new ipod. Well It's been a few days and I've noticed that the battery life on t

  • Start a new process from a running process BPM 10.3 STUDIO!

    Is it possible to create a process in BPM Studio 10.3 from a running process. The scenario is that we have a process running listening to a jms queue an when a message arrives it's starts the process that was requested in the in message. /Getr

  • So my Psychotic now Ex-Boyfriend locked my Macbook Pro using " Find my iPhone"

    I need to ask how to get my Macbook unlocked. My now Ex-Boyfriend decided since I broke up with him, it was a good idea to Hijack my Macbook Pro and lock it with the 4 digit pin number. I just got to my mothers house and I am now trying to figure out

  • Cisco 7940 phone - lock out handset

    Hi, is it possible to lock out the handset, we use IPPC Enterprise and want to stop our call centre agents from using the handset for making calls. Instead we want to force them, to use the dialing function in the CTI OS application, with the result

  • Material type number range question

    I want to have an interval for which I could have external naming both for numbers and for letters. I want to have the option to name the material eg 111111111 or aabbccddg or aa11bb11nnn. I have created a group, I have a for external numbering  - fr