Oracle consumer group
Hi, we are development one application with java and oracle. We have oracle 10G R2 SE. This application will be batch process in pl/sql every night, and some evenings. These proccess must be running in background, and we want priorize for online users. We don't want that plsql batch processes consum a high value of CPU and the online users can be slower. I read something about oracle consumer's group resources, but I don't understand very well.
Anyone, know which is the better way for do that? It's recommed the user of oracle consumers or another method?
How can I use it?
Thanks you very much!!
roberto1979es wrote:
Hi, we are development one application with java and oracle. We have oracle 10G R2 SE. This application will be batch process in pl/sql every night, and some evenings. These proccess must be running in background, and we want priorize for online users. We don't want that plsql batch processes consum a high value of CPU and the online users can be slower. I read something about oracle consumer's group resources, but I don't understand very well.
Anyone, know which is the better way for do that? It's recommed the user of oracle consumers or another method?
How can I use it?In simplest terms, a session is associated with a consumer group. The resource manager is used to define plans which describe the resources available to each consumer group. The resource manager is then used to activate one specific plan.
It is described in considerable detail in the DBA manual at http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/dbrm.htm#i1010776
I am not sure whether this will help you in SE because according to the license manual the Resource Manager is only with EE. http://download.oracle.com/docs/cd/B19306_01/license.102/b14199/editions.htm#CIHDDBCG
Similar Messages
-
ORACLE 10G group by sorting Suggestion rqd
Hai friends,
recently we migrated from Oracle 9i to oracle 10g. We are instructed that Group by will not sort the records in Oracle 10g, so we are asked to add Order By Clause in wherever applicable in the package.
But after migration i inserted 100 records in 10g database and tested. I am getting correct sorting of records based on Group by column. Can any one explain me why it is? I heard the news sorting will difer on Oracle 10g versions. I am using Oracle Database 10g Enterprise Edition Release 10.2.0.4.0. if it automaticallly sorts, then no need to change the package for sortiing right?
Give me your valuable suggestions..
SAnd here's a simple example on 10.2.0.4 that clearly shows the results are not sorted.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, Real Application Clusters, OLAP, Data Mining
and Real Application Testing options
SQL> select object_type, count(*) from all_objects group by object_type;
OBJECT_TYPE COUNT(*)
CONSUMER GROUP 2
INDEX PARTITION 718
TABLE SUBPARTITION 14
SEQUENCE 228
SCHEDULE 1
TABLE PARTITION 301
PROCEDURE 21
...Like everyone else has already said, Oracle does not guarantee the order from a group by clause with no order by.
If you need the results in order you must use an order by clause.
Pretty simple really. -
Consumer Group/Resource Plan to use only one instance of a RAC
What would be the way to create a Consumer Group/Resource Plan to use only one instance of a RAC? I have 10.1.0.5 database
running on 10.1.0.5 RAC.
Thanks,You should use "services" to limit workload to just one specific node of RAC:
http://download.oracle.com/docs/cd/B14117_01/server.101/b10739/create.htm#sthref400 -
DBMS_RESOURCE_MANAGER - consumer group members?
Hi,
I am a beginner in DBMS_RESOURCE_MANAGER. I would like to make a multi level plan in this feautre. I make the consumer groups for the plans, but I don't know how can I define the members of these consumer groups?
How does Oracle know which users are the members of these groups?
Using simple database users and schema users too, I would like to take these users into these groups but I don't know how.
Please help what is the method to do this! How can I write this?
And another problem: Is it possible that a user is a member of two or more consumer group?
Regards
SteveUse dbms_resource_manager_privs.grant_switch_consumer_group,orcl> desc dbms_resource_manager_privs
PROCEDURE GRANT_SWITCH_CONSUMER_GROUP
Argument Name Type In/Out Default?
GRANTEE_NAME VARCHAR2 IN
CONSUMER_GROUP VARCHAR2 IN
GRANT_OPTION BOOLEAN IN
PROCEDURE GRANT_SYSTEM_PRIVILEGE
Argument Name Type In/Out Default?
GRANTEE_NAME VARCHAR2 IN
PRIVILEGE_NAME VARCHAR2 IN DEFAULT
ADMIN_OPTION BOOLEAN IN
PROCEDURE REVOKE_SWITCH_CONSUMER_GROUP
Argument Name Type In/Out Default?
REVOKEE_NAME VARCHAR2 IN
CONSUMER_GROUP VARCHAR2 IN
PROCEDURE REVOKE_SYSTEM_PRIVILEGE
Argument Name Type In/Out Default?
REVOKEE_NAME VARCHAR2 IN
PRIVILEGE_NAME VARCHAR2 IN DEFAULT
orcl>and yes, a user can be in many groups but only one group membership is acitve at any time. -
Resource Manager Consumer Groups
I have implemented Database Resource Manager by creating new plan and new consumer groups. We are running oracle 9i. At database level it is active.
We are running 11.5.9 oracle applications. At the profile option "FND:Consumer Groups" of apps, in lov only two values are appearing but not those which I have created at the database level.
How to reflect these new consumer groups in 11i apps ?Hi,
I have not tested it but i think a full db export/import (using data pump or traditional exp/imp) may help doing this (which might not be feasible for you to have full exp/imp) because full database mode exports/imports SYS schema objects also, so there is a chance that it will also import the resource group and resource plans.
Salman -
Dear All,
I had already posted my query as below but had not got appropriate answer so i am asking this question again which is as follows :
how can i give preference to a prticular SID ?
e.g :
SID = 76
There are other many Session running simultaneoulsy. I want to allow SID = 76 to execute SQL first inspite of the other session running previous to SID 76.
The reply that i got was
<<
You can do this two ways that I know.
Firstly use resource consumer groups and switch your active process into a higher prio group.
Secondly if you use Unix? Renice the process to a higher priority.
>>
I tried 1st option to switch the group from Oracle Enterprise Manager but it was giving me error.
I still not clear whether you give switch group authority when you create the user or you can there is some other way.
I also saw help in OEM but the concept is still not clear.
Ultimately while executing the session that i select has to get the highest priorirty. If anyone can explain with an example it would be great.
Thanking you in anticipation.
Best regards,
DevendraIf you are using resource manager to do this in 10g R2 it is failing miserably as oracle agreed that its a problem. 11g it is working perfectly.
-
Welcome to the new Oracle User Group Community
Welcome to the new Oracle User Group Community. Whether you landed here via the redirect from the previous community site - IOUC.org - or navigated here directly, welcome. This new platform brings new community features to enhance the way you connect with user group peers and with Oracle, as well as make it easier for you to find information through a more intuitive interface. We invite you to provide your feedback on the new site. Log in using your OTN Forum credentials and join the discussion here. If you do not yet have OTN Forum log in credentials, navigate to http://community.oracle.com/community, click on the "Register" link in the upper right corner of the page and create your account.
We look forward to hearing from you.Hi Kashif,
Glad you like the new Community. Communication among user group leaders works a little differently on this site than on the previous site. Rather than having communication focus around e-mail distribution lists, communication now is focused within the site itself. The intent is that this will provide users the one place to come for information, rather than having to sort through lots of e-mail threads. That doesn't mean that e-mail is completely out of the picture though. Users can opt-in to receive e-mail notifications when an individual piece of content is changed, or when content is posted to a space. Look for the "Receive email notifications" link under "Actions" to start receiving notices. To stop receiving notices, go back to the same content/space and click "Stop email notifications".
Your Relationship Manager will be talking with you and the other leaders in your region over the next few days and weeks regarding how you and your group of leaders want to communicate.
Best regards,
Oracle User Group Team -
Hello,
I just came back from the DOAG (German Oracle User Group)
conference. HTML db seems to be much more popular than I
thought - and that's good. There were no free chairs in the
room at all. People were sitting on the floor.
Tomorrow is the second day. There are at least three or
four topics related to HTML db. Happy to have a chance to
attend the courses.
More and more people are starting to realize and admit
than HTML db is much, much more than just a replacement
for Access and Excel. It is making competition to Oracle
own products that have this heavy aura of "serious"
programming interfaces (J2EE, Portal,
...). People are using it with SAP, BAAN or standalone.
I saw the roadmap for HTML db. Looks quite promising. If
only the half of the planned features appear in the next
version it will become unbeatable (and I was told it is
unbreakable?).
They demonstrated the new "session state protection"
feature using checksum. This was one of the bigger issues.
Now, it doesn't seem to be an issue any more.
Denes KubicekDenes,
Thanks for posting this update from DOAG. Unfortunately, I was unable to make it.
Sergio -
How to export resource manager consumer groups using Data Pump?
Hi, there,
Is there any way to export RM Consumer Groups/Mappings/Plans as part of a Data Pump export/import? I was wondering because I don't fancy doing it manually and I don't see the object in the database_export_objects view. I can create them manually, but was wondering whether there's an easier, less involved way of doing it?
MarkHi,
I have not tested it but i think a full db export/import (using data pump or traditional exp/imp) may help doing this (which might not be feasible for you to have full exp/imp) because full database mode exports/imports SYS schema objects also, so there is a chance that it will also import the resource group and resource plans.
Salman -
Goup by in oracle vs group function in coldfusion
Hello
what is the difference between goup by in oracle vs group
function in coldfusion?It's easier to list the similarities:
Both use the word "group".
Other than that: they're different things.
Both are well documented in their respective documentation
sources (which
are avaialble online). Suggest you read up.
Adam -
Hello friends
Pls refere to my previous thread where we have discussed on sorting oprtion of Adding order by whereever group by is applicable
ORACLE 10G group by sorting Suggestion rqd
Read?
Then come to my point
if there is multiple columns for the group by then if we want to include order by clause, same number of columns has to be included in the order by also.
i dont think it is so
example'
SELECT SUM(QTY1),SUM(QTY2), PARTNO, PART_DESC
from part_sen
group by partno, part_desc
order by partno, part_desc
qty1 qty2 partno partdesc
70 101 I001 BRAKE SHOE
56 54 I002 HORN
30 30 I003 GEAR
15 5 I004 DOOR
5 5 I007 MOTOR GEAR
10 15 I008 ANCILLARY
10 15 I009 Window
so in order by clause we can include only the first column.. that is partno
SELECT SUM(QTY1),SUM(QTY2), PARTNO, PART_DESC
from part_sen
group by partno, part_desc
order by partno
Same result i get.
Pls give your suggestion
sALex,
SELECT SUM(QTY1),SUM(QTY2), PARTNO, PART_DESC
from part_sen
group by partno, part_desc
70 101 I001 BRAKE SHOE
56 54 I002 HORN
30 30 I003 GEAR
15 5 I004 DOOR
5 5 I007 MOTOR GEAR
10 15 I008 ZLLADER
10 15 I008 OCTLADER
10 15 I008 ANCILLARY
10 15 I008 BALLLADER
10 15 I009 Window
SELECT SUM(QTY1),SUM(QTY2), PARTNO, PART_DESC
from part_sen
group by partno, part_desc
order by partno
70 101 I001 BRAKE SHOE
56 54 I002 HORN
30 30 I003 GEAR
15 5 I004 DOOR
5 5 I007 MOTOR GEAR
10 15 I008 ANCILLARY
10 15 I008 BALLLADER
10 15 I008 OCTLADER
10 15 I008 ZLLADER
without ordering the second column part_desc it is properly ordered how?
so adding order by partno is same as order by partno,part_desc
Pls reply
S -
Oracle consumes 100% memory on Solaris 10
Hi,
Our database (Oracle 10g, R2) is running is running on Solaris, When I use the unix command prstat -a, it shows that, 100% Memomry utilized. Below are the details.
PID USERNAME SIZE RSS STATE PRI NICE TIME CPU PROCESS/NLWP
12934 oracle 2573M 2559M sleep 59 0 0:00:00 0.1% oracle/1
5914 sirsi 4912K 4664K sleep 59 0 0:00:29 0.0% prstat/1
12937 oracle 4896K 4592K cpu3 49 0 0:00:00 0.0% prstat/1
833 oracle 2572M 2558M sleep 59 0 0:01:05 0.0% oracle/1
114 root 7464K 6632K sleep 59 0 0:01:20 0.0% picld/12
829 oracle 2573M 2559M sleep 59 0 0:01:04 0.0% oracle/1
823 oracle 2574M 2560M sleep 59 0 0:00:46 0.0% oracle/11
811 oracle 2573M 2559M sleep 59 0 0:00:43 0.0% oracle/1
146 root 2288K 1312K sleep 59 0 0:00:22 0.0% in.mpathd/1
831 oracle 2576M 2562M sleep 59 0 0:00:24 0.0% oracle/1
639 root 3664K 2392K sleep 59 0 0:00:00 0.0% snmpXdmid/2
700 nobody 7520K 3752K sleep 59 0 0:00:00 0.0% httpd/1
701 nobody 7520K 3752K sleep 59 0 0:00:00 0.0% httpd/1
637 root 3080K 2048K sleep 59 0 0:00:00 0.0% dmispd/1
472 root 5232K 2320K sleep 59 0 0:00:00 0.0% dtlogin/1
720 root 2912K 2400K sleep 59 0 0:00:01 0.0% vold/5
629 root 2376K 1664K sleep 59 0 0:00:00 0.0% snmpdx/1
702 nobody 7520K 3736K sleep 59 0 0:00:00 0.0% httpd/1
378 root 3928K 1784K sleep 59 0 0:00:00 0.0% sshd/1
699 nobody 7520K 3704K sleep 59 0 0:00:00 0.0% httpd/1
697 root 9384K 6520K sleep 59 0 0:00:01 0.0% snmpd/1
695 root 7360K 5376K sleep 59 0 0:00:04 0.0% httpd/1
375 root 12M 8088K sleep 59 0 0:00:01 0.0% fmd/15
354 root 3728K 2040K sleep 59 0 0:00:00 0.0% syslogd/13
415 root 2016K 1440K sleep 59 0 0:00:00 0.0% smcboot/1
416 root 2008K 1016K sleep 59 0 0:00:00 0.0% smcboot/1
338 root 4736K 1296K sleep 59 0 0:00:00 0.0% automountd/2
340 root 5080K 2384K sleep 59 0 0:00:00 0.0% automountd/3
263 daemon 2384K 1760K sleep 60 -20 0:00:00 0.0% lockd/2
256 root 1280K 936K sleep 59 0 0:00:00 0.0% utmpd/1
395 root 7592K 2560K sleep 59 0 0:00:02 0.0% sendmail/1
273 root 2232K 1496K sleep 59 0 0:00:00 0.0% ttymon/1
254 root 2072K 1224K sleep 59 0 0:00:00 0.0% sf880drd/1
417 root 2008K 1016K sleep 59 0 0:00:00 0.0% smcboot/1
272 root 5152K 4016K sleep 59 0 0:00:02 0.0% inetd/4
206 root 1232K 536K sleep 59 0 0:00:00 0.0% efdaemon/1
394 smmsp 7568K 1904K sleep 59 0 0:00:00 0.0% sendmail/1
128 root 2904K 2056K sleep 59 0 0:00:00 0.0% devfsadm/6
241 daemon 2640K 1528K sleep 59 0 0:00:00 0.0% rpcbind/1
245 daemon 2672K 1992K sleep 59 0 0:00:00 0.0% statd/1
251 root 2000K 1248K sleep 59 0 0:00:00 0.0% sac/1
123 root 3992K 3008K sleep 59 0 0:00:07 0.0% nscd/26
NPROC USERNAME SIZE RSS MEMORY TIME CPU
24 oracle 48G 48G 100% 0:04:48 0.1%
10 sirsi 1101M 35M 0.1% 0:00:32 0.0%
37 root 148M 97M 0.2% 0:02:18 0.0%
10 nobody 73M 36M 0.1% 0:00:00 0.0%
1 smmsp 7568K 1904K 0.0% 0:00:00 0.0%
4 daemon 12M 7920K 0.0% 0:00:00 0.0%
Total: 86 processes, 260 lwps, load averages: 0.02, 0.02, 0.02
Can anyone suggest why Oracle consumes 100% Memory? and how do we resolve this?.
Regards,
Sabdar Syed.Many Unix tools add to each dedicated server process memory the SGA size because under Unix each dedicated server is attaching the SGA shared memory segment to its process address space: so these Unix tools are not so reliable for Oracle.
To check the Oracle memory usage, it is generally more recommendded to use the V$ views such as V$SGASTAT and V$PGASTAT. -
Mutliple Oracle Resource Groups Port Question
Hello,
In a 2 node cluster, (3.2, Sol10, ZFS), I have a oracle resource group running on each node with the ability to failover to the other. As each resource group has it's own listener, do the port numbers for the listeners need to be different so there is no conflict if both resource groups run on the same node?
Thx for any assistance.That shouldn't be problem if you are having a LH as part of the oracle rg and the listener is binding to the LH.
Best Regards,
Madhan Kumar -
URGENT, Creating the Oracle Inventory Group
OS: 5.2
DB:10g Rel 2
Hello All,
I am installing 10g on AIX.
Per below link/document.
Page 2-11 (Pre Installation Task)
$ more /etc/oraInst.loc
/etc/oraInst.loc: A file or directory in the path name does not exist.
** Creating the Oracle Inventory Group
If the oraInst.loc file does not exist, then create the Oracle Inventory group by
using the following procedure:
1. Enter the following command:
smitty security
Choose the appropriate menu items to create the oinstall group.
http://download-west.oracle.com/docs/cd/B19306_01/install.102/b19075.pdf
But I alreday created oinstall group.
Please note: we used oraabc instead of oracle.
id oraabc
uid=207(oraabc) gid=14(oinstall) groups=15(dba),16(oper)
Do I still need to create the oraInst.loc file or its is a part of installation?
DNAs far I know oraInst.loc file is created during installation procedure.
It consists of path to oracleInventory directory and installation group in your case - oinstall.
I never installed Oracle on AIX but I belive installation is (allmost) the same as on Linux or Solaris. -
Creating the Oracle Inventory Group, Urgent
OS: 5.2
DB:10g Rel 2
Hello All,
I am installing 10g on AIX.
Per below link/document.
Page 2-11 (Pre Installation Task)
$ more /etc/oraInst.loc
/etc/oraInst.loc: A file or directory in the path name does not exist.
** Creating the Oracle Inventory Group
If the oraInst.loc file does not exist, then create the Oracle Inventory group by
using the following procedure:
1. Enter the following command:
smitty security
Choose the appropriate menu items to create the oinstall group.
http://download-west.oracle.com/docs/cd/B19306_01/install.102/b19075.pdf
But I alreday created oinstall group.
Please note: we used oraabc instead of oracle.
id oraabc
uid=207(oraabc) gid=14(oinstall) groups=15(dba),16(oper)
Do I still need to create the oraInst.loc file or its is a part of installation?
DNIt should be taken care of by the installer.
on the same page, it says "When you install Oracle software on the system for the first time, Oracle Universal Installer creates the oraInst.loc file."
Maybe you are looking for
-
Vowels and consonants count of a string
Hi... 1. plz provide code for counting no of vowels and Consonants in a STRING.... suppose the string is BUSINESS. and also other 2. program to pass the string during runtime and couting vowels,consonants and also checking whether th
-
Syntax Error with JSON.Parse method to parse SharePoint List Items
Hi All, I want to get SharePoint List data and bind that retrived data to the JQuery Grid Control. For this I used SPServices to get the SharePoint List data in SOAP Envelope. Now I need to parse the soap envelope and store the retrieved items in arr
-
HT1218 What fix works for 'the backup disk image X could not be accessed (error-1)?
Our backup fails every time and leaves the message: The backup disk image "X" could not be accessed (error -1). The Mac Help options all look like solutions to other problems. How do you fix this?
-
Charting with stacked hybrid plot - how do I?
Is there a way to stack column and line charts? I want the same CartesianChart to have bars with multiple series, and centered above them, I would like lines. I can get the lines and columns on the same chart, but I dont' want the line chart overlaid
-
Graphics look bad on pause at end of chapters
I've created a presentation in Keynote that I've exported as a QT movie and imported into DVDSP. Since the presentation will be manually advanced via remote control, I've set infinite pauses at the start of each chapter. My problem is that when the p