Oracle Profile Vs Oracle Resource Manager in Oracle 11g
Hi Friends,
Whats is the Avantages / Dis advantages of using Oracle Profile and Oracle Resource Manager to limit the oracle resources to oracle users in Oracle 11.2.0.1
Regards,
DB
If you have a single database servicing multiple Services / Applications / Schemas (e.g. a typical database consolidation), you could use Profiles and Resource Manager to place limits on resource usage by Service / Application / Schema. That way, for example, a 32 CPU database server running a single database can still limit the number of cores for each Service / Application / Schema using the Resource Manager.
Hemant K Chitale
Similar Messages
-
Oracle 10g database as Resource manager and heuristic transaction decision
Hi,
I have read in documents about distributed tarnsaction that resource manager like oracle databasecthat are involved in distributed transaction can take heuristic decision(unilateral decision) and can either rollback or commit the transaction associated with itself without having confirmation from the transaction manager.
I want to know how a resource manager take this unilateral decision and can we set this as parameter either in resource manager or in application server.
Thanks in advanceHi,
Following are some links to documents.
Handling Heuristic Completions
http://edocs.bea.com/wls/docs81/ConsoleHelp/jta.html
A heuristic completion (or heuristic decision) occurs when a resource makes a unilateral decision during the completion stage of a distributed transaction to commit or rollback updates. This can leave distributed data in an indeterminate state. Network failures or resource timeouts are possible causes for heuristic completion. In the event of an heuristic completion, one of the following heuristic outcome exceptions may be thrown:
HeuristicRollback—one resource participating in a transaction decided to autonomously rollback its work, even though it agreed to prepare itself and wait for a commit decision. If the Transaction Manager decided to commit the transaction, the resource's heuristic rollback decision was incorrect, and might lead to an inconsistent outcome since other branches of the transaction were committed.
HeuristicCommit—one resource participating in a transaction decided to autonomously commit its work, even though it agreed to prepare itself and wait for a commit decision. If the Transaction Manager decided to rollback the transaction, the resource's heuristic commit decision was incorrect, and might lead to an inconsistent outcome since other branches of the transaction were rolled back.
HeuristicMixed—the Transaction Manager is aware that a transaction resulted in a mixed outcome, where some participating resources committed and some rolled back. The underlying cause was most likely heuristic rollback or heuristic commit decisions made by one or more of the participating resources.
2. Understanding EJB Transaction
http://www2.sys-con.com/itsg/virtualcd/Java/archives/0504/tyagi/index.html
Unilateral Decisions
The transaction manager allows certain heuristic or speculative decisions to be made based on the state of all participating resources in a transaction and the underlying two-phase commit protocol. A heuristic decision occurs when one of the resources in the transaction unilaterally decides to commit or roll back the transaction without permission from the transaction manager
3. Oracle® Containers for J2EE
http://download.oracle.com/docs/cd/B31017_01/web.1013/b28958.pdf
Heuristics
To achieve consensus, two-phase commit is a blocking protocol. This means that, if a coordinator fails before delivering the final phase messages, the participants must remain blocked, holding onto resources. Modern transaction systems add heuristics to two-phase commit, which allows such participants to make unilateral decisions about whether they will commit or rollback. If a participant makes a choice that turns out to be different from the one taken by other participants, then non-atomic behavior occurs.
I got this problem while trying to do a distributed J2EE tarnsaction with two XA (one MQ and other Oracle 10g database XA) and one non-xa (oracle 10g database). According to above docs a resource manager can decide tarnsaction final state unilaterally and that can result in unatomic transaction.
Do oracle also make such decision and if yes then on what ground it takes decision? Can we change this according to our requirement either always rollback/commit anywhere as parameter setting?
Thanks -
Managing/monitoring Oracle Database using WBEM
Typically an Oracle Database environment is best monitored and managed using the
Oracle Enterprise Manager.
But does Oracle allow/support monitoring and management of Oracle databases using open standards like WBEM?
We are trying to standardize on an open standard like WBEM for monitoring and managing hardware and software and also model those entities using the CIM (Common Information model) and would
like to monitor Oracle Databases under this model using WBEM.
I have read about the ability of the Oracle Enterprise manager to manage other third party hardware and software including databases using WBEM Fetchlets.
Would appreciate any information regarding this topic.Better post your question in Enterprise Manager
also do a search on WBEM in the forum -
Hi All,
I would like to implement resource manager via oracle service. Code is as follows:
exec DBMS_RESOURCE_MANAGER.CREATE_PENDING_AREA();
exec DBMS_RESOURCE_MANAGER.CREATE_PLAN(PLAN => 'my_plan',COMMENT => 'Resource plan/method for ERP Database');
exec DBMS_RESOURCE_MANAGER.CREATE_CONSUMER_GROUP(CONSUMER_GROUP => 'normal',COMMENT => 'Resource consumer group/method for normal jobs');
exec DBMS_RESOURCE_MANAGER.CREATE_CONSUMER_GROUP(CONSUMER_GROUP => 'adhoc',COMMENT => 'Resource consumer group/method for adhoc jobs');
exec DBMS_RESOURCE_MANAGER.CREATE_PLAN_DIRECTIVE(PLAN => 'my_plan',GROUP_OR_SUBPLAN => 'normal', COMMENT => 'normal sessions');
exec DBMS_RESOURCE_MANAGER.CREATE_PLAN_DIRECTIVE(PLAN => 'my_plan', GROUP_OR_SUBPLAN => 'adhoc', COMMENT => 'adhoc sessions');
exec DBMS_RESOURCE_MANAGER.CREATE_PLAN_DIRECTIVE(PLAN => 'my_plan', GROUP_OR_SUBPLAN => 'OTHER_GROUPS', COMMENT => 'mandatory');
EXEC DBMS_RESOURCE_MANAGER.SET_CONSUMER_GROUP_MAPPING(DBMS_RESOURCE_MANAGER.SERVICE_name , 'goslive', 'normal');
EXEC DBMS_RESOURCE_MANAGER.SET_CONSUMER_GROUP_MAPPING(DBMS_RESOURCE_MANAGER.SERVICE_name , 'test', 'adhoc');
exec dbms_resource_manager.set_consumer_group_mapping_pri(2, 7,1, 9, 8, 10, 5, 4, 3, 6);
exec DBMS_RESOURCE_MANAGER.VALIDATE_PENDING_AREA();
exec DBMS_RESOURCE_MANAGER.SUBMIT_PENDING_AREA();
ALTER SYSTEM SET RESOURCE_MANAGER_PLAN = 'my_plan';
But looks like it doesn't work. Any idea what i'm missing.
Same code if I use with user name wise it works fine, as I can assign initial consumer group for the user. But not able to assign initial consumer group to the service.
Please advice.
Thanks,
Hal.It seems that we need to grant the switch privileges with Oracle 10.2.
If granting the switch privilege is not done, any connection is assigned to the OTHER_GROUPS resource consumer group.
Here is my test case.
Setup:
bas002> select * from v$version;
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Prod
PL/SQL Release 10.2.0.2.0 - Production
CORE 10.2.0.2.0 Production
TNS for 32-bit Windows: Version 10.2.0.2.0 - Production
NLSRTL Version 10.2.0.2.0 - Production
bas002>
bas002> ALTER SYSTEM SET RESOURCE_MANAGER_PLAN = '';
System altered.
bas002> begin
2 DBMS_RESOURCE_MANAGER.CREATE_PENDING_AREA();
3 DBMS_RESOURCE_MANAGER.DELETE_PLAN_CASCADE('MY_PLAN');
4 DBMS_RESOURCE_MANAGER.SUBMIT_PENDING_AREA();
5 end;
6 /
PL/SQL procedure successfully completed.
bas002> show errors
No errors.
bas002>
bas002>
bas002>
bas002> alter system set service_names='TEST, GOSLIVE';
System altered.
bas002>
bas002> begin
2 DBMS_RESOURCE_MANAGER.CLEAR_PENDING_AREA();
3 DBMS_RESOURCE_MANAGER.CREATE_PENDING_AREA();
4 DBMS_RESOURCE_MANAGER.CREATE_PLAN(
5 PLAN => 'MY_PLAN',
6 COMMENT => 'Resource plan/method for ERP Database');
7 DBMS_RESOURCE_MANAGER.CREATE_CONSUMER_GROUP(
8 CONSUMER_GROUP => 'NORMAL',
9 COMMENT => 'Resource consumer group/method for normal jobs');
10 DBMS_RESOURCE_MANAGER.CREATE_CONSUMER_GROUP(
11 CONSUMER_GROUP => 'ADHOC',
12 COMMENT => 'Resource consumer group/method for adhoc jobs');
13 DBMS_RESOURCE_MANAGER.CREATE_PLAN_DIRECTIVE(
14 PLAN => 'MY_PLAN',
15 GROUP_OR_SUBPLAN => 'NORMAL',
16 COMMENT => 'normal sessions');
17 DBMS_RESOURCE_MANAGER.CREATE_PLAN_DIRECTIVE(
18 PLAN => 'MY_PLAN',
19 GROUP_OR_SUBPLAN => 'ADHOC',
20 COMMENT => 'adhoc sessions');
21 DBMS_RESOURCE_MANAGER.CREATE_PLAN_DIRECTIVE(
22 PLAN => 'MY_PLAN',
23 GROUP_OR_SUBPLAN => 'OTHER_GROUPS',
24 COMMENT => 'mandatory');
25 DBMS_RESOURCE_MANAGER.SET_CONSUMER_GROUP_MAPPING(
26 DBMS_RESOURCE_MANAGER.SERVICE_NAME , 'GOSLIVE', 'NORMAL');
27 DBMS_RESOURCE_MANAGER.SET_CONSUMER_GROUP_MAPPING(
28 DBMS_RESOURCE_MANAGER.SERVICE_NAME , 'TEST', 'ADHOC');
29 DBMS_RESOURCE_MANAGER.VALIDATE_PENDING_AREA();
30 DBMS_RESOURCE_MANAGER.SUBMIT_PENDING_AREA();
31 end;
32 /
PL/SQL procedure successfully completed.
bas002> show errors
No errors.
bas002>
bas002> begin
2 DBMS_RESOURCE_MANAGER_PRIVS.GRANT_SWITCH_CONSUMER_GROUP('O', 'NORMAL', false);
3 DBMS_RESOURCE_MANAGER_PRIVS.GRANT_SWITCH_CONSUMER_GROUP('O', 'ADHOC', false);
4 end;
5 /
PL/SQL procedure successfully completed.
bas002> show errors
No errors.
bas002>
bas002> ALTER SYSTEM SET RESOURCE_MANAGER_PLAN = 'MY_PLAN';
System altered.Connection tests:
bas002> select username, service_name, resource_consumer_group from v$session where username ='O';
USERNAME
SERVICE_NAME
RESOURCE_CONSUMER_GROUP
O
TEST
ADHOC
bas002> select username, service_name, resource_consumer_group from v$session where username ='O';
USERNAME
SERVICE_NAME
RESOURCE_CONSUMER_GROUP
O
goslive
NORMAL. -
How to disable the Resource Manager
I'm trying to deactivate the resource manager for oracle 9i with the next statment:
alter system set resource_manager_plan=''
but then i get the next error starting the database:
oracle@toolshed ~/backup> dbstart
SQL*Plus: Release 9.0.1.0.0 - Production on Mon Apr 1 15:54:45 2002
(c) Copyright 2001 Oracle Corporation. All rights reserved.
SQL> Connected to an idle instance.
SQL> ORACLE instance started.
Total System Global Area 571246020 bytes
Fixed Size 280004 bytes
Variable Size 352321536 bytes
Database Buffers 218103808 bytes
Redo Buffers 540672 bytes
Database mounted.
ORA-01092: ORACLE instance terminated. Disconnection forced
SQL> Disconnected from Oracle9i Enterprise Edition Release 9.0.1.0.0 - Production
With the Partitioning option
JServer Release 9.0.1.0.0 - Production
Database "WAVECODE" warm started.user7244870 wrote:
Dear all,
How to use dbms_resource_manager?
Can you get a example how to use it.when all else fails Read The Fine Manual
http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28419/d_resmgr.htm -
DATABASE RESOURCE MANAGER ( ORACLE 8I NEW FEATURE )
제품 : ORACLE SERVER
작성날짜 : 2004-08-16
DATABASE RESOURCE MANAGER ( ORACLE 8I NEW FEATURE )
===================================================
SCOPE
8i~10g Standard Edition 에서는 Database Resource Manager 를 지원하지 않는다.
Explanation
Database Resource Manager란 OS에서 제공하는 자원 (예 : CPU 자원 )에 대해 DB
차원에서 계획을 세워, 세부 관리를 할 수 있도록 해 주는 서비스이다.
예를 들어 주간에 batch 작업을 처리하더라도, OLTP 업무에는 지장을 주지 않아야
할 경우 batch 작업에 CPU 자원을 적게 할당해 주는 것이 바람직 하며, Resource
Manager를 활용하여 CPU 자원을 batch 작업과 OLTP 업무에 서로 다르게 할당해 줄
수 있다. ( Oracle 8.1.6 까지는 Resouurce Manager에서 CPU 자원에 대해서만
관리만 가능하다 )
1. 용어
1) Resource Consumer Group
사용자 session들의 집합. Resource에 대한 요구사항에 따라 나뉘어진 그룹.
2) Resource Plan
Consumer Group에 자원을 할당 해 주기 위한 resource plan directive들을
포함.
3) Resource Allocation Method
Resource Manager에서 자원을 할당해 주는 방법/정책.
4) Resource Plan Directive
Resource Plan에 대해 자원을 할당해 주는 세부 내역.
2. Resource Consumer Group
* 기본 group
[ 사용자가 삭제, 수정할 수 없는 group ]
OTHER_GROUPS : active plan schema에 속하지 않는 consumer group의 모든
session
DEFAULT_CONSUMER_GROUP : consumer group을 지정하지 않은 모든
session.(default)
[ 기본적으로 제공되나 사용자가 삭제하거나 변경할 수 있는 group ]
SYS_GROUP : SYSTEM_PLAN에 대한 high priority consumer group
SYSTEM, SYS user에 할당한다.
LOW_GROUP : SYSTEM_PLAN에 대한 low priority consumer group
3. Resource Plan
Consumer group에 속하는 session들은 해당 group에 대한 resource plan에
따라 자원 할당이 결정되며, 자원 할당에 대한 세부 사항은 resource plan에
대한 resource plan directive에서 지정된다.
Resource plan은 subplan을 둘 수 있다.
4. Resource Allocation Method
Round-robin Method : Consumer group 내에서 session들에 대한 CPU 할당
Emphasis Method : Consumer group에 할당되는 CPU
Absolute Method : Parallel degree 한계 ( 예 : Parallel Query에서의
degree )
5. Resource Plan Directive
Resource Plan Directive에 지정된 내용들은 resource plan에 따라
consumer group에 자원을 할당할 때 반영된다.
6. 구현 예제
MYDB PLAN +-> MAILDB PLAN +-> POSTMAN GROUP (40% Level 1)
| (30% Level 1) |
| +-> USERS GROUP (80% Level 2)
| |
| +-> MAILMAINT GROUP (20% Level 2)
| |
| +-> OTHER GROUP (100% Level 3)
|
+-> BUGDB PLAN +-> ONLINE GROUP (80% Level 1)
(70% Level 1) |
+-> BATCH GROUP (20% Level 1)
|
+-> BUGMAINT GROUP (100% Level 2)
|
+-> OTHER GROUP (100% Level 3)
위 예에서 MYDB PLAN에는 2개의 subplan ( MAILDB PLAN, BUGDB PLAN )이
있으며 각각 30%와 70%의 CPU 자원을 할당하였다.
Level 1, Level 2, Level 3 는 우선순위 레벨을 의미하며, 하나의
resource plan에서 동일한 level의 합이 100%를 넘지 못한다.
( Level 은 1부터 8까지 지정할 수 있으며 level 1이 가장 우선순위가
높으며 level 8이 가장 우선순위가 낮다 )
예를 들어 전체 CPU 자원의 70%를 할당 받은 BUGDB PLAN은 다시
ONLINE GROUP과 BATCH GROUP을 두고 있는데, 이 둘의 Level이 모두 1이며
두개의 percentage의 합이 100%이다. 하지만, 즉, level 1인 ONLINE GROUP
에 90%를 할당하였다면, level 1인 BATCH GROUP에는 10% 이상을 할당할 수
없다.
Example
* 구현을 위한 코드
BEGIN
/* PLAN schema 작업 영역 생성 */
DBMS_RESOURCE_MANAGER.CREATE_PENDING_AREA();
/* BUGDB PLAN, MAILDB PLAN, MYDB PLAN 생성 */
DBMS_RESOURCE_MANAGER.CREATE_PLAN(PLAN => 'bugdb_plan',
COMMENT => 'Resource plan/method for bug users sessions');
DBMS_RESOURCE_MANAGER.CREATE_PLAN(PLAN => 'maildb_plan',
COMMENT => 'Resource plan/method for mail users sessions');
DBMS_RESOURCE_MANAGER.CREATE_PLAN(PLAN => 'mydb_plan',
COMMENT => 'Resource plan/method for bug and mail users sessions');
/* CONSUMER GROUP 생성 */
DBMS_RESOURCE_MANAGER.CREATE_CONSUMER_GROUP(CONSUMER_GROUP =>
'Bug_Online_group', COMMENT => 'Resource consumer group/method for
online bug users sessions');
DBMS_RESOURCE_MANAGER.CREATE_CONSUMER_GROUP(CONSUMER_GROUP =>
'Bug_Batch_group', COMMENT => 'Resource consumer group/method for
bug users sessions who run batch jobs');
DBMS_RESOURCE_MANAGER.CREATE_CONSUMER_GROUP(CONSUMER_GROUP =>
'Bug_Maintenance_group', COMMENT => 'Resource consumer group/method
for users sessions who maintain the bug db');
DBMS_RESOURCE_MANAGER.CREATE_CONSUMER_GROUP(CONSUMER_GROUP =>
'Mail_users_group', COMMENT => 'Resource consumer group/method for
mail users sessions');
DBMS_RESOURCE_MANAGER.CREATE_CONSUMER_GROUP(CONSUMER_GROUP =>
'Mail_Postman_group', COMMENT => 'Resource consumer group/method for
mail postman');
DBMS_RESOURCE_MANAGER.CREATE_CONSUMER_GROUP(CONSUMER_GROUP =>
'Mail_Maintenance_group', COMMENT => 'Resource consumer group/method
for users sessions who maintain the mail db');
/* BUGDB PLAN에 대한 DIRECTIVE 생성 */
DBMS_RESOURCE_MANAGER.CREATE_PLAN_DIRECTIVE(PLAN => 'bugdb_plan',
GROUP_OR_SUBPLAN => 'Bug_Online_group', COMMENT => 'online bug users
sessions at level 1', CPU_P1 => 80, CPU_P2=> 0,
PARALLEL_DEGREE_LIMIT_P1 => 8);
DBMS_RESOURCE_MANAGER.CREATE_PLAN_DIRECTIVE(PLAN => 'bugdb_plan',
GROUP_OR_SUBPLAN => 'Bug_Batch_group', COMMENT => 'batch bug users
sessions at level 1', CPU_P1 => 20, CPU_P2 => 0,
PARALLEL_DEGREE_LIMIT_P1 => 2);
DBMS_RESOURCE_MANAGER.CREATE_PLAN_DIRECTIVE(PLAN => 'bugdb_plan',
GROUP_OR_SUBPLAN => 'Bug_Maintenance_group',COMMENT => 'bug
maintenance users sessions at level 2', CPU_P1 => 0, CPU_P2 => 100,
PARALLEL_DEGREE_LIMIT_P1 => 3);
DBMS_RESOURCE_MANAGER.CREATE_PLAN_DIRECTIVE(PLAN => 'bugdb_plan',
GROUP_OR_SUBPLAN => 'OTHER_GROUPS', COMMENT => 'all other users
sessions at level 3', CPU_P1 => 0, CPU_P2 => 0, CPU_P3 =>
100);
(참고) CPU_P1 : cpu allocation for level 1
/* MAILDB PLAN에 대한 DIRECTIVE 생성 */
DBMS_RESOURCE_MANAGER.CREATE_PLAN_DIRECTIVE(PLAN => 'maildb_plan',
GROUP_OR_SUBPLAN => 'Mail_Postman_group',COMMENT => 'mail postman at
level 1', CPU_P1 => 40, CPU_P2 => 0, PARALLEL_DEGREE_LIMIT_P1 => 4);
DBMS_RESOURCE_MANAGER.CREATE_PLAN_DIRECTIVE(PLAN => 'maildb_plan',
GROUP_OR_SUBPLAN => 'Mail_users_group', COMMENT => 'mail users
sessions at level 2', CPU_P1 => 0, CPU_P2 => 80,
PARALLEL_DEGREE_LIMIT_P1 => 4);
DBMS_RESOURCE_MANAGER.CREATE_PLAN_DIRECTIVE(PLAN => 'maildb_plan',
GROUP_OR_SUBPLAN => 'Mail_Maintenance_group',COMMENT => 'mail
maintenance users sessions at level 2', CPU_P1 => 0, CPU_P2 => 20,
PARALLEL_DEGREE_LIMIT_P1 => 2);
DBMS_RESOURCE_MANAGER.CREATE_PLAN_DIRECTIVE(PLAN => 'maildb_plan',
GROUP_OR_SUBPLAN => 'OTHER_GROUPS', COMMENT => 'all other users
sessions at level 3', CPU_P1 => 0, CPU_P2 => 0, CPU_P3 =>
100);
/* MYDB PLAN에 대한 DIRECTIVE 생성 */
DBMS_RESOURCE_MANAGER.CREATE_PLAN_DIRECTIVE(PLAN => 'mydb_plan',
GROUP_OR_SUBPLAN => 'maildb_plan', COMMENT=> 'all mail users
sessions at level 1', CPU_P1 => 30);
DBMS_RESOURCE_MANAGER.CREATE_PLAN_DIRECTIVE(PLAN => 'mydb_plan',
GROUP_OR_SUBPLAN => 'bugdb_plan', COMMENT => 'all bug users sessions
at level 1', CPU_P1 => 70);
/* PLAN schema 작업 내용을 저장 */
DBMS_RESOURCE_MANAGER.VALIDATE_PENDING_AREA();
DBMS_RESOURCE_MANAGER.SUBMIT_PENDING_AREA();
end;
7. CONSUMER GROUP에 사용자나 세션을 할당하는 방법
먼저 인스턴스에서 사용할 TOP Level resource plan 을 지정한다.
initSID.ora에 RESOURCE_MANAGER_PLAN = MRDB_PLAN 지정이나 아래와 같이
session level에 ALTER SYSTEM command를 사용하여 지정한다.
ALTER SYSTEM SET RESOURCE_MANAGER_PLAN = MYDB_PLAN;
그리고 SCOTT 계정에 BUG_ONLINE_GROUP과 BUB_BATCH_GROUP 에 속할 수 있는
권한을 부여
DBMS_RESOURCE_MANAGER_PRIVS.GRANT_SWITCH_CONSUMER_GROUP ('SCOTT',
'BUG_ONLINE_GROUP', TRUE);
DBMS_RESOURCE_MANAGER_PRIVS.GRANT_SWITCH_CONSUMER_GROUP ('SCOTT',
'BUG_BATCH_GROUP', TRUE);
* DBMS_RESOURCE_MANAGER.SET_INITIAL_CONSUMER_GROUP( user in
varchar2, consumer_group in varchar2);
예)
DBMS_RESOURCE_MANAGER.SET_INITIAL_CONSUMER_GROUP('SCOTT',
'BUG_ONLINE_GROUP');
SCOTT 계정을 BUG_BATCH_GROUP에 할당
* DBMS_RESOURCE_MANAGER.SWITCH_CONSUMER_GROUP_FOR_SESS (
session_id IN NUMBER,
session_serial IN NUMBER,
consumer_group IN VARCHAR2);
예)
DBMS_RESOURCE_MANAGER.SWITCH_CONSUMER_GROUP_FOR_SESS( 11, 2,
'BUG_ONLINE_GROUP');
* DBMS_RESOURCE_MANAGER.SWITCH_CONSUMER_GROUP_FOR_USER (
user IN VARCHAR2,
consumer_group IN VARCHAR2);
예)
DBMS_RESOURCE_MANAGER.SWITCH_CONSUMER_GROUP_FOR_USER('SCOTT',
'BUG_BATCH_GROUP');
8. 관련된 Dictionary
DBA_RSRC_PLANS : Resource plan과 status
DBA_RSRC_PLAN_DIRECTIVES : Resource plan directives와 status
DBA_RSRC_CONSUMER_GROUPS : Consumer group과 status
DBA_RSRC_CONSUMER_GROUP_PRIVS : 사용자에게 부여된 Consumer group
DBA_USERS : INITIAL_RSRC_CONSUMER_GROUP라는 새로운 column이 추가
V$SESSION : RESOURCE_CONSUMER_GROUP라는 새로운 column이 추가
V$RSRC_PLAN : 새로운 view로 active resource plan을 보여준다
V$RSRC_CONSUMER_GROUP : 새로운 view로 consumer group의 active session
을 보여준다.
Reference Ducumment
---------------------user1 is the schema present in DB1
user2 is the schema present in DB2. I just have a DB link
as below:
create database link link_to_DB2 connect to user2 identified by user2 using 'DB2';---Connects from user1 of DB1 to user2 of DB2.
Requirement is as below:
CPU for DB2 - 25%
Out of above 25%, CPU for user2 - 70%
CPU for user1 30% -- whenever it conncts using the link)
Please help me out. -
Oracle Resource Manager function with SAP BI7
Hi,
Have anyone considered or using Oracle Database Resource Manager (Oracle 10.2) feature for SAP BI application in your site? I dont see a single OSS hit on this feature.
We have a SAP BI system that has few power users (who can run large STAR_TRANSFORMATION queries that analyzes large volume of data) and the main user community (our sales force > 3000+ users) who can run smaller queries of such nature or queries of different types.
We want to see if there is any way we can control the resource utilization on the database server.
Thanks in advance,
Raj> Of course, this would require an additional specifications such as SERVICE in the TNS and Listener files.
Yes - but I'm not sure if that would give the necessary effect. Once the statement reaches the database kernel engine, it gets processed, no matter if you limit the TNS/listener usage because TNS is no more involved when the statement reaches the OLAP engine.
> In the BI environment, I'm thinking you need this db feature to control database resources when loads and reports overlaps or even several small and large queries run concurrently despite however many app server a system has, all these come to the database.
I think SAPs answer is: Buy a bigger box (or use RAC to distribute the load)
> The big question is whether SAP would support such a setup.
The feature is not listed explicitly in note 105047 - Support for Oracle functions in the SAP environment. I'd make a call at BC-DB-ORA and ask what they think about that.
I understand your problem very well but I doubt, that there's an easy way of accomplishing this with standard tools.
Markus -
hi,
In the GROUP section of the ubb file I have defined a Oracle Resource Manager.
GRP1
LMID = SITE1 GRPNO =1
TMSNAME = TMS_ORA TMSCOUNT = 2
OPENINFO = "Oracle_XA:Oracle_XA+Acc=P/usr1/usr1+SesTm=0+LogDir=/tmp/xa_logs+Objects=T+Loose_Coupling=false+SesWt=60"
when i boot the application, the TMS_ORA gets booted.
Now if I change just the login information to another valid user (say usr2/usr2)of
the database in the OPENINFO parameter and try to boot the TMS_ORA fails.
Can you please let me know as to what can be the possible reason behind this.
ThanksHi,
If you are using ORACLE Version 7.X,
You should grant the SELECT privilege of v$xatrans$ to usr2.
The checking is like the following.
1. sqlplus usr2/usr2
2. desc v$xatrans$
Here, If the desc command's result gets a error, then the privilege is
not granted to usr2.
info) v$xatrans$ view table owner is sys, therefore you should login sys
using sqlplus
and then "grant select on v$xatrans$ to usr2" statement is
executed in sqlplus prompt.
3. reboot TMS.
If you are using ORACLE Version 8.X,
Maybe, You should grant the SELECT privilege of DBA_PENDING_TRANSACTIONS
view table to usr2.
The checking is like the following.
1. sqlplus usr2/usr2
2. desc dba_pending_transactions
Here, If the desc command's result gets a error, then the privilege is
not granted to usr2.
info) DBA_PENDING_TRANSACTIONS view table owner is sys, therefore you
should login sys using sqlplus
and then "grant select on dba_pending_transactions to usr2"
statement is executed in sqlplus prompt.
3. reboot TMS.
This hopes help.
Thanks.
"vipul" <[email protected]> wrote in message
news:[email protected]..
>
hi,
In the GROUP section of the ubb file I have defined a Oracle ResourceManager.
>
GRP1
LMID = SITE1 GRPNO =1
TMSNAME = TMS_ORA TMSCOUNT = 2
OPENINFO ="Oracle_XA:Oracle_XA+Acc=P/usr1/usr1+SesTm=0+LogDir=/tmp/xa_logs+Objects=T+L
oose_Coupling=false+SesWt=60"
>
>
when i boot the application, the TMS_ORA gets booted.
Now if I change just the login information to another valid user (sayusr2/usr2)of
the database in the OPENINFO parameter and try to boot the TMS_ORA fails.
Can you please let me know as to what can be the possible reason behindthis.
>
Thanks -
Hello experts.
I would like to know if assigning a particular CPU level to the group, will affect as well the DDL operations that are performed by users in this group
(in my case it's dropping partitions, creating them, rebuilding indexes, make tablespaces read write, etc...). I can understand effect of resource manager on DML, but I doubt what's the way oracle controls ddl statements.
Thanks in advance for your replies.
Artyom.No. Oracle will use the assignd core/s cpu for the instance or DDL and DML both.
-
Does Oracle Database Resource Manager work at all?
I have been testing Oracle Database Resource Management...
Environment: OS IBM AIX 5L 64 bit core, DB Oracle8i 8.1.7.4 Enterprise Edition.
To test, I followed the procedure in the Oracle Metalink Bulletin Note:106948., Oracle8i: Database Resource Manager samples.
But I was not able to reproduce any succes. There seems to be no difference running with at plan and not running with af plan enabled.
Does anydody know of a problem with the combination of Oracle and AIX, or any other problems that could explain why it doesn't work?
/Jørn Hansenif the cpu is 100% loaded then you can see any affects..
this is the way how oracle database resource manager works..
Message was edited by:
mkocaer -
Error Implementing Oracle Projects Resource Management
I'm implementing Oracle Resource Management and I've followed all the requirement/steps in the Implementation Guide. I realized that after I changed the flag "Include in Utilization" to Yes in the Job Definition, the request showed me the following error in log:
Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
American_America.WE8ISO8859P1
Enter Password:
REP-1401: 'beforereport': Fatal PL/SQL error occurred.
ORA-06503: PL/SQL: Function returned without value
REP-0069: Internal error
REP-57054: In-process job terminated:Terminated with error:
REP-1401: 'beforereport': Fatal PL/SQL error occurred.
ORA-06503: PL/SQL: Function returned without value
Thanks in Advance.Hi Dean and Dina,
Thanks for your answers. Following is the missing info:
- Yes, we are using the AIA PIP
- We are using 'Workplan enabled' projects for integration with a 'Partially Shared Structure'
- In integration options, we are only integrating 'Workplan' with a 'Working Version'
- We are trying to send only progress information from P6 to Oracle Projects, not the time card info
Iniitially, when trying to send progress from P6 to Oracle Projects, we were getting the error - 'You cannot update a published version of the workplan'
However, after checking the following flags, we stopped getting any errors in AIA/middleware and still not getting any data into Oracle Projects:
Projects --> Setup --> Integration settings:
Integrate - Workplan - Send Task - Current Working Version
Integrate - Workplan - Receive Task
Workplan --> setup:
Allow Physical Percent Complete Collection
Allow Physical Percent Complete Overrides
Thanks for your help. -
Oracle.apps.jtf.base.resources.FrameworkException in R12
Hi All,
Could anyone pls share his experience for the folloiwng issue on 12.0.4 on OS:linux..
http://<hostname>:<portno>/OA_HTML/AppsLogin throws the folloliwng error:
500 Internal Server Error
oracle.apps.fnd.cache.CacheException at oracle.apps.fnd.cache.AppsCache.get(AppsCache.java:228) at oracle.apps.fnd.profiles.Profiles.getProfileOption(Profiles.java:1485) at oracle.apps.fnd.profiles.Profiles.getProfile(Profiles.java:354) at oracle.apps.fnd.profiles.ExtendedProfileStore.getSpecificProfileFromDB(ExtendedProfileStore.java:211) at oracle.apps.fnd.profiles.ExtendedProfileStore.getSpecificProfile(ExtendedProfileStore.java:171) at oracle.apps.fnd.profiles.ExtendedProfileStore.getProfile(ExtendedProfileStore.java:148) at oracle.apps.fnd.common.logging.DebugEventManager.configureUsingDatabaseValues(DebugEventManager.java:1259) at oracle.apps.fnd.common.logging.DebugEventManager.configureLogging(DebugEventManager.java:1114) at oracle.apps.fnd.common.logging.DebugEventManager.internalReinit(DebugEventManager.java:1083) at oracle.apps.fnd.common.logging.DebugEventManager.reInitialize(DebugEventManager.java:1050) at oracle.apps.fnd.common.logging.DebugEventManager.reInitialize(DebugEventManager.java:1037) at oracle.apps.fnd.common.AppsLog.reInitialize(AppsLog.java:595) at oracle.apps.fnd.common.AppsContext.initLog(AppsContext.java:941) at oracle.apps.fnd.common.AppsContext.initializeContext(AppsContext.java:926) at oracle.apps.fnd.common.AppsContext.initializeContext(AppsContext.java:891) at oracle.apps.fnd.common.AppsContext.<init>(AppsContext.java:751) at oracle.apps.fnd.common.WebAppsContext.<init>(WebAppsContext.java:1014) at oracle.apps.fnd.sso.Utils.getAppsContext(Utils.java:525) at oracle.apps.fnd.sso.AppsLoginRedirect.AppsSetting(AppsLoginRedirect.java:120) at oracle.apps.fnd.sso.AppsLoginRedirect.init(AppsLoginRedirect.java:170) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpApplication.loadServlet(HttpApplication.java:2232) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpApplication.findServlet(HttpApplication.java:4622) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpApplication.findServlet(HttpApplication.java:4546) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:2822) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:740) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:299) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:187) at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303) at java.lang.Thread.run(Thread.java:595)Caused by: oracle.apps.jtf.base.resources.FrameworkException: Error in IAS Cache: java.lang.NullPointerException: null Connection at oracle.apps.jtf.cache.IASCacheProvider.get(IASCacheProvider.java:712) at oracle.apps.jtf.cache.CacheManager.getInternal(CacheManager.java:4802) at oracle.apps.jtf.cache.CacheManager.get(CacheManager.java:4624) at oracle.apps.fnd.cache.AppsCache.get(AppsCache.java:216) ... 30 moreCaused by: oracle.apps.jtf.base.resources.FrameworkException: An exception occurred in the method CacheAccess.getnullThe base exception is:null Connection at oracle.apps.jtf.base.resources.FrameworkException.convertException(FrameworkException.java:607) at oracle.apps.jtf.base.resources.FrameworkException.addException(FrameworkException.java:585) at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkException.java:66) at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkException.java:88) at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkException.java:202) at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkException.java:218) at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkException.java:249) ... 34 more
Moreoever, Standard manager also isn't coming up - actual shows 0 and target shows 5..
ps -ef|grep FNDLIBR|grep applmgr
applmgr 23396 31811 0 04:44 ? 00:00:00 [FNDLIBR] <defunct>
applmgr 23397 31811 0 04:44 ? 00:00:00 [FNDLIBR] <defunct>
applmgr 23398 31811 0 04:44 ? 00:00:00 [FNDLIBR] <defunct>
applmgr 23399 31811 0 04:44 ? 00:00:00 [FNDLIBR] <defunct>
applmgr 23400 31811 0 04:44 ? 00:00:00 [FNDLIBR] <defunct>
applmgr 24047 18724 0 04:45 pts/2 00:00:00 grep FNDLIBR
applmgr 31795 31790 0 Jul25 ? 00:01:00 FNDLIBR
applmgr 32005 31811 0 Jul25 ? 00:00:00 FNDLIBR
applmgr 32006 31811 0 Jul25 ? 00:00:02 FNDLIBR
applmgr 32011 31811 0 Jul25 ? 00:00:01 FNDLIBR
exected cmclean.sql several times but still the same issue..
An early reply would be appreciated..
Regards,Hi hsawwan,
Error 1722..thnx for links..will check...
Please suggest on the following issues now:
A) we are now able to login through sysadmin but on accessing forms it throws error:APPLICATION OBJECT LIBRARY unable to access ORACLE password.
B) we came to know someone by mistake has changed APPLSYS password earlier through - alter user identified by - which is now not in sync with apps password.
C) we are able to login from backend using apps user and apps password but not able to login through APPLSYS user.
D) FNDCPASS successfully changes password only for SYSADMIN user.
E) FNDCPASS throws following error on changing password for APPLSYS user as we are trying to make APPLSYS and APPS password both the same.
Error mesg:
FNDCPASS is unable to decrypt password for user <> ..
like this entries are there for many other users in the log file..
F) adadmin too doesn't work allows system password access and apps password and then throws error and exits..
would appreciate if you could suggest some resolution on the above..
Regards, -
New Note 790189.1 - Oracle Clusterware and Application Failover Management
Hi all,
please, note the newly created Metalink Note 790189.1 - Oracle Clusterware and Application Failover Management if you want to use Oracle Clusterware as a general purpose cluster solution. The note intends to clarify and to explain the current situation in regards to the supportability of applications managed by Oracle Clusterware.
In environments not including Oracle RAC, Oracle Clusterware still provides the level of high availability that is commonly known to be achievable for applications and databases managed in (failover) cluster environments. These environments can include Oracle Single Instance Databases, Oracle Application Servers, Oracle Enterprise Manager components, third party databases, or any other kind of application. (For more information on Oracle Clusterware 11g in general, please, refer to [Oracle Clusterware homepage|http://otn.oracle.com/clusterware].)
Metalink Note 790189.1 - Oracle Clusterware and Application Failover Management is tightly integrated with the information on application failover management available on the [Oracle Clusterware homepage|http://otn.oracle.com/clusterware] and discusses typical questions like
* Terminology
* Script supportability and preconfigured agents
* How to prove that action scripts work outside of Oracle Clusterware
* Supportability of the Oracle Database Single Instance example scripts
* How do I know whether a certain script is supported as a preconfigured agent?
Metalink Note 790189.1, however, does not change the level of support that has been introduced for these kind of configurations as of Oracle Database 10g Release 2: "Generally, Oracle does not support action scripts in the strict terms of supporting individual code fragments. Oracle fully supports the integration of individual action scripts proven to run outside of Oracle Clusterware into the Oracle Clusterware management stack. Supported operations therefore typically involve crs_* commands such as crs_profile, crs_register, crs_setperm, crs_getperm, crs_start, crs_stop, and crs_relocate invoked on custom resources. If actions scripts are used as part of a preconfigured agent, Oracle or the application provider who provides the agent will support the integration of this agent, while only the application provider will provide support for the individual action scripts."
Just for your information. Thanks,
Markusnot meant to be a question - rather an announcement.
-
Oracle's 10gR2 Automated Storage Management implementation on CentOS 4.1
Actually there are several nice articles on Oracle Technical Network
devoted to the same topic. Whats new may be said ?
The target of message is to highlight the optimal sequence of steps
required to bring Oracle10g (10.2.0.1) ASM-database up on CentOS4.1 , placing ASM instance and serviced databases in different Oracle Homes.
Oracleasm library install is done immediately after creating "oracle"
linux account and "dba" group to be ready for ASM Instance creating during
the first Installer run supposed to build it. ASM instance for disks and disks
group management is created the first by Installer along with the disks group
for database supposed to be built during the second run of Installer and to be
placed into recently created disks group.
I. Oracle 10gR2 ASM and ASMLib 2.0 I/O.
1.Install CentOS 4.1
2.Run as root:
# groupadd dba # group of users to be granted SYSDBA system privilege
# groupadd oinstall # group owner of Oracle files
# useradd -c "Oracle software owner" -g oinstall -G dba oracle
# passwd oracle
# mkdir -p /u01/app/oracle
# chown -R oracle.oinstall /u01
# mkdir -p /u02/oradata/wtfdata
# chown -R oracle.oinstall /u02
OTN instruction:-
Before installing Automatic Storage Management, it is recommended that you install the optional add-on Automatic Storage Management support library, ASMLib. ASMLib is an application program interface (API) Oracle that is aimed at simplifying the interface between the operating system and the database, and to exploit the capabilities and strengths of storage arrays provided by different vendors.ASMLib provides an alternative interface for the Automatic Storage Management-enabled kernel to discover and access block devices. It provides storage and operating system vendors the opportunity to supply extended storage-related features. These features provide benefits such as improved performance and greater data integrity.
OTN instruction ends.
3.To install ASMLIB 2.0 run as root:-
# rpm -Uvh oracleasm-2.6.9-11.ELsmp-2.0.0-1.i686.rpm \
oracleasmlib-2.0.0-1.i386.rpm \
oracleasm-support-2.0.0-1.i386.rpm
Now you get /etc/init.d/oracleasm ready to go.
Configuring the Oracle ASM library driver:-
# /etc/init.d/oracleasm configure
Default user to own the driver interface [oracle]: oracle
Default group to own the driver interface [dba]: dba
Start Oracle ASM library driver on boot (y/n) [y]: y
Fix permissions of Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration: [ OK ]
Scanning system for ASM disks: [ OK ]
# /etc/init.d/oracleasm enable
Create ASM disks as desired utilizing command:
# /etc/init.d/oracleasm createdisk VLM0X /dev/sdx
Tune /etc/sysctl.conf,/etc/security/limits.conf,/etc/pam.d/login, /etc/profile.
and oracle's shell environment as advised in [1].
Login as oracle:-
$ cd /tmp/database
$./runInstaller
OTN instructions:-
Its recommended that you install Automatic Storage Management in its own Oracle home, regardless of whether you plan to only have one or multiple database instances.Installing Automatic Storage Management in its own Oracle home helps ensure higher availability and manageability.
With separate Oracle homes, you can upgrade Automatic Storage Management and databases independently, and you can remove database software without impacting the Automatic Storage Management instance. Ensure that the Automatic Storage Management version is the same or later than the Oracle Database version.If an Automatic Storage Management installation does not already exist and you select the Oracle Universal Installer option to install and configure Automatic Storage Management only, then Oracle Universal Installer installs Automatic Storage Management in its own Oracle home.
OTN instruction ends.
Select " Advanced installation" and
create ASM instance in $ORACLE_HOME=/u01/app/oracle/oracle/product/10.2.0/db_1
Create disk group during this run .
Exit installer.
$ ./runInstaller
Select " Advanced installation" and create new ASM-database placed into existing disk's group
in $ORACLE_HOME=/u01/app/oracle/oracle/product/10.2.0/db_2 .
Modify ~oracle/.bash_profile correspondently.Relogin as oracle.
Next:-
$ sqlplus /nolog
SQL> conn / as sysdba
Connected.
SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup mount;
ORACLE instance started.
Total System Global Area 285212672 bytes
Fixed Size 1218968 bytes
Variable Size 88082024 bytes
Database Buffers 188743680 bytes
Redo Buffers 7168000 bytes
Database mounted.
SQL> alter database archivelog;
Database altered.
SQL> alter database MastDB flashback on;
Database altered.
SQL> alter database open;
Database altered.
Open Enterpise Manager console.(Enterprise Manager 10g Database Control URL
http://ServerCentOS41:1158/em). Create new disk's group for flashback recovery area and modify corresponding value on Recovery Settings page of EM.
System startup in this case should look like:-
[oracle@ServerCentOS41 ~]$ ./lsnrstart
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 30-AUG-2005 17:57:41
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Starting /u01/app/oracle/product/10.2.0/db_1/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 10.2.0.1.0 - Production
System parameter file is /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
Log messages written to /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ServerCentOS41)(PORT=1521)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=ServerCentOS41)(PORT=1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
Start Date 30-AUG-2005 17:57:42
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ServerCentOS41)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 30-AUG-2005 17:57:42
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Starting /u01/app/oracle/product/10.2.0/db_2/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 10.2.0.1.0 - Production
System parameter file is /u01/app/oracle/product/10.2.0/db_2/network/admin/listener.ora
Log messages written to /u01/app/oracle/product/10.2.0/db_2/network/log/listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ServerCentOS41)(PORT=1522)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC2)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=ServerCentOS41)(PORT=1522)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
Start Date 30-AUG-2005 17:57:42
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/10.2.0/db_2/network/admin/listener.ora
Listener Log File /u01/app/oracle/product/10.2.0/db_2/network/log/listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ServerCentOS41)(PORT=1522)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC2)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
[oracle@ServerCentOS41 ~]$ dbstart
Processing ASM instance "+ASM": log file /u01/app/oracle/product/10.2.0/db_1/startup.log
Processing Database instance "MastDB": log file /u01/app/oracle/product/10.2.0/db_2/startup.log
[oracle@ServerCentOS41 ~]$ emctl start dbconsole
TZ set to US/Eastern
Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
http://ServerCentOS41:1158/em/console/aboutApplication
Starting Oracle Enterprise Manager 10g Database Control ........................ started.
Logs are generated in directory /u01/app/oracle/oracle/product/10.2.0/db_2/ServerCentOS41_MastDB/sysman/log
Install described above was done with different Oracle Homes
for ASM instance and ASM-database.
To put ASM instance and ASM-database in same Oracle Home.
Start runInstaller just once to build all stuff at a time.
Login as oracle:-
$ cd /tmp/database
$./runInstaller
Select " Advanced option" and install "Software only"
in ORACLE_HOME - /u01/app/oracle/oracle/product/10.2.0/db_1.
Modify oracle's .bash_profile:-
export ORACLE_HOME and new PATH.
Source new .bash_profile:-
$. ~oracle/.bash_profile
$dbca
During this run the request to start CRS daemons by root will come up.
# $ORACLE_HOME/bin/localconfig add
ASM instance , needed disk's groups and ASM-database itself will be created.
Then perform listener and local TNS names configuration.
$netca
II. Oracle 10gR2 ASM and Standard Linux I/O.
This method creates Oracle database files on raw character devices managed by ASM
using standard Linux I/O system calls.It requires to create RAW devices for all
disk partitions used by ASM.
1.Install CentOS 4.1
2.Run as root:
# groupadd dba # group of users to be granted SYSDBA system privilege
# groupadd oinstall # group owner of Oracle files
# useradd -c "Oracle software owner" -g oinstall -G dba oracle
# passwd oracle
# mkdir -p /u01/app/oracle
# chown -R oracle.oinstall /u01
# mkdir -p /u02/oradata/data
# chown -R oracle.oinstall /u02
Just as an example create 4 partitions:
/dev/hda6,/dev/hdc6 5 GB each one
/dev/hda7,/dev/hdc7 3 GB each one
Create raw devices modifying file /etc/sysconfig/rawdevices as follows:
/dev/raw/raw1 /dev/hda6
/dev/raw/raw2 /dev/hdc6
/dev/raw/raw3 /dev/hda7
/dev/raw/raw4 /dev/hdc7
Put in /etc/rc.d/rc.local
chown oracle:dba /dev/raw/raw*
chmod 660 /dev/raw/raw*
I was experiencing problems with loosing "oracle:dba" permissions after Linux
reboot. Oracle's raw device came up with "root:disk" ownership after reboot.
Restart Linux
Run as root:-
# service rawdevices restart
Tune /etc/sysctl.conf,/etc/security/limits.conf,/etc/pam.d/login,
/etc/profile and oracle's shell environment as advised in [1].
Login as oracle:-
$ cd /tmp/database
$./runInstaller
Select " Advanced installation" and
create ASM instance in ORACLE_HOME=/u01/app/oracle/oracle/product/10.2.0/asm
During this run create diskgroup RAWDATA1 with normal redundancy
mirroring /dev/raw/raw1 and /dev/raw/raw2.
You should be fine with discovering raw devices if permissions are in place (oracle:dba)
Exit installer.
Export ORACLE_HOME for ASM instance and corresponding PATH.
Then run "dbca" to create diskgroup RAWDATA2 with
normal redundancy mirroring /dev/raw/raw3 and /dev/raw/raw4
$ ./runInstaller
Select " Advanced installation" and create new ASM-database placed RAWDATA1 diskgroup
in $ORACLE_HOME=/u01/app/oracle/oracle/product/10.2.0/db_1.
Modify ~oracle/.bash_profile correspondently.Relogin as oracle.
Next:-
$ sqlplus /nolog
SQL> conn / as sysdba
Connected.
SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup mount;
ORACLE instance started.
Total System Global Area 285212672 bytes
Fixed Size 1218968 bytes
Variable Size 88082024 bytes
Database Buffers 188743680 bytes
Redo Buffers 7168000 bytes
Database mounted.
SQL> alter database archivelog;
Database altered.
SQL> alter database rawdbs flashback on;
Database altered.
SQL> alter database open;
Database altered.
Open Enterpise Manager console.(Enterprise Manager 10g Database Control
URL http://ServerCentOS41:1158/em). Put flashback recovery area in RAWDATA2
modifying corresponding value on Recovery Settings page of EM.
References.
1.www.puschitz.com/InstallingOracle10g.shtml[oracle@casa database]$ df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda2 70557084 8674712 58298272 13% /
none 387852 0 387852 0% /dev/shm
/dev/hdc 656964 656964 0 100% /media/cdrecorder1So, you have 58298272 bytes available, which is 55MB, and the installer asks for 60 ;) You should probably use df -h instead of df -k...
PS where are you planning to install to with only 55MB available anyway?
~Jer -
Configuring Oracle database as a resource
Hi All,
I have configured oracle database as a resource in OIM following the steps given in connector's documentation.
But now when I am trying to assign this resource to a user, I am getting following error:
Response: For input string: ""
Response Description: Unknown response received
Error Details
Setting task status... *"For input string: """ does not correspond to a known Response Code. Using "UNKNOWN".*
Any idea why I am getting this error?
Thanks
GauravYou need to supply more details.
Are you using the Database User Management connector?
What actions are you performing?
What does the log say when you enable the logging for that specific connector.
We can't answer a problem if you don't supply the details.
-Kevin
Maybe you are looking for
-
How do I restore my music and playlists from my iPod 4g to my iPod 5g?
I did a "full" backup to my computer of my old iPod, and restored my new iPod from that backup, but my music is completely empty and I don't want to manually put all my music and playlists back together. Help???
-
Unable to Create Fact and Dimension tables from the Tools menu in EIS conso
Hi All, In the EIS console, I am unable to create the fact table and the dimension tables to produce my OLAP model from the TOOLS menu whereas I am able to create them by dragging from the left panel where the tables are displayed. I am geeting the b
-
File upload component and text area issue
Hi guys, I have static text, text area and button on the same page. Text area binded to session bean value and all works fine (I can input text into text area and press button to save changes). After adding file upload component to the same page I ha
-
HT1338 question: videos stop and start playing, don't run continuous
What can I do to make downloaded videos work properly> Right now, they start and stop every few seconds.
-
Problem in starting the bi services
hi Friends, i got a problem while running BI services. Shared services, Analytic services and the License manager are running . i have not configured any database in hyperion configuration utility. here is what I get when I run startCommonServices.ba