Grants for complete schemas
How can I give all rights of one user to another without declaring each object privilege one by one? For my application I would like to devide the data to maintain into four different schemas to. Never the less I would like to connect to the db by one account and have full access to all of the four schemas. My client denies to give the connect user DBA rights. The connection user is not allowed to have "ANY" grants, either. But my application often creates tables, views etc. and drops it when they aren't usefull any more. So it is nearly impossible to manage the grants on each db object one by one. So, how can I give a user all rights for a bunch of others?
To bring it to an end: the application I'm talking about is about ten years old. It started with MSAccess, was ported to Oracle about 9 years ago when nobody in our firm had detailed knowledge about RDBMS in practice. Until now the most installations are running with own instances with DBA rights for the connection user. That wasn't a big problem because most of our clients are offices where no other Oracle applications are running. All functionality to maintain the db (e.g. creating new firms (= new users) in new tablespaces, craete necessary PL/SQL functions, adapt data structures from version to version etc.) is integrated in our application. But new interested parties are bigger. And we have to integrate more canny. We are working on a new version that will take this more into view. But that will need about at least one more year of development. So it would have been nice to be able to reduce the pressure... And maybe we can by using Global Temporary Tables and resigning some features.
But one thing is left: I agree strict data ownership is a good thing for a lot of businesses but a there is a lack of possibilities to structure data logical. From our view it is a benefit of the old approach for example to be able to export/import logical units...
Similar Messages
-
Grants for physical schema and data-servers
Hi,
I'd like to know
What are the Grants needed for the Owners of each physical schema?
For example: Grants DDL (drop table n) and DML (select / update / delete / insert).
Grants needed for the users' connection data-servers?
BovoliniIt depends on what technology you plan to use.
If you plan to use Oracle - Is the data server connection user different from the owner of the physical schemas ?
In addition to the connect, resource to each of these users, you will also need to give data server connection user privileges on the objects of the owner of the physical schemas. -
Error while running Re-create grants and synonyms for APPS schema
Hi,
I have upgraded customer's Oracle Apps 11i (11.5.10) database to Oracle 10g R2. While executing '+Re-create grants and synonyms+ ' as given in Note: 362203.1, I am gettng error:
plus80 -s APPS/***** @E:\EBSTEST\ebstestappl\ad\11.5.0\admin\sql\adappsgs.pls &systempwd 1 INV APPLSYS APPS TRUE FALSE TRUE
Error:
Program exited with status 3
Cause: The program terminated, returning status code 3.
Action: Check your installation manual for the meaning of this code on this operating system.Connected.
old 2: ad_apps_private.create_grants_and_synonyms(&2,'&3','&4','&5','FALSE');
new 2: ad_apps_private.create_grants_and_synonyms(1,'INV','APPLSYS','APPS','FALSE');
begin
*+
ERROR at line 1:
ORA-20000: ORA-00955: name is already used by an existing
object:create_grants_and_synonyms(1,INV,APPLSYS,APPS): create_base_gs(INV,APPS): In Synonyms
Loop:create_synonym(INV,MTL_ONHAND_DISCREPANCY,APPS,MTL_ONHAND_DISCREPANCY):
do_apps_ddl(APPS,CREATE SYNONYM "MTL_ONHAND_DISCREPANCY" FOR INV."MTL_ONHAND_DISCREPANCY"):
ORA-06512: at line 5
MTL_ONHAND_DISCREPANCIES
I checked the database and there isn't MTL_ONHAND_DISCREPANCY synonym. But there is MTL_ONHAND_DISCREPANCIES synonym.
This is an upgraded instance from 11.0.3 and first time I am running Re-create grants and synonyms for APPS schema.
Plz let me know if anyone of you faced this issue.
Rgds,
ThiruHi,
there is no such table MTL_ONHAND_DISCREPANCY or synonym in Applications 11.5.10.2. Is that custom table created in your db?
After dropping this table from APPS schema 'Re-create grants and synonyms for APPS schema' went thru fine.Its correct
This table does not exist in INV schema in 11.5.10.2.
Could be possible that the consultant could have created this table in INV and APPS schema by mistake or whatever.Yes, with the same name, there might be table in APPS SCHEMA. When you run recreate grants and synonyms, adadmin tries to create synonym for that table in APPS schema. since there is object available with the same name in apps chema, you got that error. -
Error In Adadmin Re-Create Grants And Synonyms For Apps Schema
HI,
I upgraded the my DB from 9.2.6 to 10.2.4.It was sucessfull.
While doing Postupgradayion steps -
Recreate grants and synonym for apps
a. Log in to server with applmgr user
b. Execute adadmin
c. Choose -> Maintain Applications Database Entities menu
d. Choose -> Re-create grants and synonyms for APPS schema
2 workers got failed ...
i chked the worker log file i found
sqlplus -s APPS/***** @/stageAPP/stageappl/ad/11.5.0/admin/sql/adappsgs.pls &systempwd 1 PO APPLSYS APPS TRUE FALSE TRUE
Connected.
old 2: ad_apps_private.create_grants_and_synonyms(&2,'&3','&4','&5','FALSE');
new 2: ad_apps_private.create_grants_and_synonyms(1,'PO','APPLSYS','APPS','FALSE');
begin
ERROR at line 1:
ORA-20000: ORA-00955: name is already used by an existing
object:create_grants_and_synonyms(1,PO,APPLSYS,APPS): create_base_gs(PO,APPS):
In Synonyms
Loop:create_synonym(PO,XXGOD_SEQ_DECORTIMESHEET_HDR,APPS,XXGOD_SEQ_DECORTIMESHEE
T_HDR): do_apps_ddl(APPS,CREATE SYNONYM "XXGOD_SEQ_DECORTIMESHEET_HDR" FOR
PO."XXGOD_SEQ_DECORTIMESHEET_HDR"):
ORA-06512: at line 5
Workaround $adctrl
Control
Worker Code Context Filename Status
1 Run Grants/Synonyms R115 adappsgs.pls FAILED
2 Run Grants/Synonyms R115 Wait
3 Run Grants/Synonyms R115 Wait
4 Run Grants/Synonyms R115 Wait
5 Run Grants/Synonyms R115 Wait
6 Run Grants/Synonyms R115 Wait
7 Run Grants/Synonyms R115 Wait
8 Run Grants/Synonyms R115 Wait
9 Run Grants/Synonyms R115 Wait
10 Run Grants/Synonyms R115 Wait
11 Run Grants/Synonyms R115 Wait
12 Run Grants/Synonyms R115 Wait
13 Run Grants/Synonyms R115 Wait
14 Run Grants/Synonyms R115 Wait
15 Run Grants/Synonyms R115 Wait
16 Run Grants/Synonyms R115 Wait
SQL> select owner, object_type from dba_objects where object_name = 'XXGOD_SEQ_DECORTIMESHEET_HDR';
OWNER OBJECT_TYPE
PO SEQUENCE
APPS SEQUENCE
Its Cutom Object .. I think i need to drop/rename anyone .. which one i should drop / rename .
Or
Is it possible to skip the failed workers .. if do .. please give me the steps ...
ThanksHi;
There is 8 option(hidden) avaliable but i suggest dont use this option.(As you mention its a custom,if you belive it wont problem you can use this hidden option or drop 'XXGOD_SEQ_DECORTIMESHEET_HDR' and recreate it later,its own your risk) By the way please check below notes which is similar error like yours
Run Adadmin To Recreate Grants And Synonyms ORA-20000 ORA-00955 In Synonyms Loop:create_synonym(GL,PLAN_TABLE,APPS,PLAN_TABLE) [ID 437714.1]
ADADMIN MAINTAINING APPLICATIONS GRANTS AND SYNONYMS APP-931 ORA-955 ORA-20000 [ID 1014455.102]
Regard
Helios -
Recreate Grants and Synonyms for APPS schema
Hi,
how can I Recreate Grants and Synonyms for APPS schema ?
Many thanks.Hi,
You can recreate grants and sysnonyms through adadmin utility.
Navigation : adadmin - > Maintain Applications Database Entities menu - > Re-create grants and synonyms for APPS schema.
Rgds,
S.Jai
Shanthi Gears (LTD) -
Hi all,
can any one plzz tell me how to give grants for Record or Table type.
Thanks in AdvanceIf you want more help then do the following:
1. Post your complete Oracle version number ... minimum 3 decimal places.
2. Post the full and complete error message ... not your interpretation of it.
3. Post the DDL for the type or at least those portions of it that refer to other objects that may not exist in the same schema.
You have made this far harder than it need be by asking an initial question that concealed relevant facts and then posting again the ORA-01031 but not providing sufficient information.
If you want people to help you then provide the necessarily information. -
Oracle Streams setup for multiple schemas in a same database
We are on 11.1.0.7 and will be using Oracle 11g Streams that will replicate the data real-time for two schemas between the source and target set of schemas with in the same database. We will be doing DDL as well as DML replication.
I created the following plan and want your inputs. After implementing this, I created a table in SCOTT but it's get replicated to RPT_SCOTT later I tried inserting a row in the table created under SCOTT but that too didn't get replicated to RPT_SCOTT.
Here are the steps that I used to set up my STREAMS -
Database Instance: TESTDB
Schemas:
Source: SCOTT
HR
Target: RPT_SCOTT
RPT_HR
Configuring Streams:
1. Database is in Archive log mode
2. Set up the Streams administrator.
create user STRMADMIN identified by STRMADMIN default tablespace USERS temporary tablespace temp;
grant resource, dba, AQ_ADMINISTRATOR_ROLE to STRMADMIN;
BEGIN
DBMS_STREAMS_AUTH.GRANT_ADMIN_PRIVILEGE(
grantee => 'STRMADMIN',
grant_privileges => TRUE);
END;
3. Set up Streams queues
CONNECT STRMADMIN/****
BEGIN
DBMS_STREAMS_ADM.SET_UP_QUEUE(
queue_name => 'STREAMS_QUEUE',
queue_table => 'STREAMS_QUETAB',
queue_user => 'STRMADMIN');
END;
4. Add the Apply rule
BEGIN
DBMS_STREAMS_ADM.ADD_SCHEMA_RULES(
schema_name => 'RPT_SCOTT',
streams_type => 'APPLY',
streams_name => 'APPLY_CC_STREAM',
queue_name => 'STRMADMIN.STREAMS_QUEUE',
include_dml => true,
include_ddl => true,
inclusion_rule => true,
source_database => 'TESTDB');
END;
BEGIN
DBMS_STREAMS_ADM.ADD_SCHEMA_RULES(
schema_name => 'RPT_HR',
streams_type => 'APPLY',
streams_name => 'APPLY_AB_STREAM',
queue_name => 'STRMADMIN.STREAMS_QUEUE',
include_dml => true,
include_ddl => true,
inclusion_rule => true,
source_database => 'TESTDB');
END;
BEGIN
DBMS_APPLY_ADM.ALTER_APPLY(
apply_name => 'APPLY_CC_STREAM',
apply_user => 'STRMADMIN');
END;
BEGIN
DBMS_APPLY_ADM.ALTER_APPLY(
apply_name => 'APPLY_AB_STREAM',
apply_user => 'STRMADMIN');
END;
5. Add the Capture Rule
CONNECT STRMADMIN/*****
BEGIN
DBMS_STREAMS_ADM.ADD_SCHEMA_RULES(
schema_name => 'SCOTT',
streams_type => 'CAPTURE',
streams_name => 'CAPTURE_CC_STREAM',
queue_name => 'STRMADMIN.STREAMS_QUEUE',
include_dml => true,
include_ddl => true,
inclusion_rule => true,
source_database => 'TESTDB');
END;
BEGIN
DBMS_STREAMS_ADM.ADD_SCHEMA_RULES(
schema_name => 'HR',
streams_type => 'CAPTURE',
streams_name => 'CAPTURE_AB_STREAM',
queue_name => 'STRMADMIN.STREAMS_QUEUE',
include_dml => true,
include_ddl => true,
inclusion_rule => true,
source_database => 'TESTDB');
END;
6. Set the instantiation system change number (SCN)
CONNECT STRMADMIN/******
DECLARE
source_scn NUMBER;
BEGIN
source_scn := DBMS_FLASHBACK.GET_SYSTEM_CHANGE_NUMBER();
DBMS_APPLY_ADM.SET_SCHEMA_INSTANTIATION_SCN (
source_schema_name => 'SCOTT',
source_database_name => 'TESTDB',
instantiation_scn => source_scn);
END;
7. Start the Apply
CONNECT STRMADMIN/******
BEGIN
DBMS_APPLY_ADM.START_APPLY('APPLY_CC_STREAM');
END;
BEGIN
DBMS_APPLY_ADM.START_APPLY('APPLY_AB_STREAM');
END;
8. Start the Capture
CONNECT STRMADMIN/******
BEGIN
DBMS_CAPTURE_ADM.START_CAPTURE('CAPTURE_CC_STREAM');
END;
BEGIN
DBMS_CAPTURE_ADM.START_CAPTURE('CAPTURE_AB_STREAM');
END;
Waiting for your inputs!If I understand from your code, you want to do this on the same DB :
SCOTT --> RPT_SCOTT
HR --> RPT_HRSo there is a schema transformation, where is it coded ?
General info : http://download.oracle.com/docs/cd/B28359_01/server.111/b28321/strms_transform.htm
More specific on schema rename : http://download.oracle.com/docs/cd/B28359_01/server.111/b28321/strms_mtransform.htm#CHDGDHDE
Next : where are the initialisation of both capture schema ?
Missing :
execute DBMS_CAPTURE_ADM.PREPARE_SCHEMA_INSTANTIATION( schema_name => 'scott'');
execute DBMS_CAPTURE_ADM.PREPARE_SCHEMA_INSTANTIATION( schema_name => 'HR'');This tell Streams from where to capture the SCN.
Also there is an (WRONG) instantiation of SCOTT for the apply, which tells the apply to consider as valuable candidate all LCR after source_scn,
but where is the code or RPT_HR. Alas, you put for the APPLY target schema 'SCOTT' while it should have been 'RPT_SCOTT'.
the fact that is correct or false depends where you put the schema transformation. If you put the transformation at apply time then use the SOURCE schema name (SCOTT, HR) for the LCR will contains their name. If you put the transformation at capture time, then put target schema name for the LCR will contain their name (RPT_HR,RPT_SCOTT).
Let's say you put the schema transformation at capture time then
Missing:
DBMS_APPLY_ADM.SET_SCHEMA_INSTANTIATION_SCN (
source_schema_name => 'RPT_HR',
source_database_name => 'TESTDB',
instantiation_scn => source_scn);If you attache the transformation on the apply process then the code is :
DBMS_APPLY_ADM.SET_SCHEMA_INSTANTIATION_SCN (
source_schema_name => 'HR',
source_database_name => 'TESTDB',
instantiation_scn => source_scn);And this is useless:
-- useless code
BEGIN
DBMS_APPLY_ADM.ALTER_APPLY(
apply_name => 'APPLY_CC_STREAM',
apply_user => 'STRMADMIN');
END;
BEGIN
DBMS_APPLY_ADM.ALTER_APPLY(
apply_name => 'APPLY_AB_STREAM',
apply_user => 'STRMADMIN');
END;
/Last : You are using the same queue for 2 separated capture/apply transformation.
Do yourself a favor and give each couple capture/tranform/apply its own queue. -
GRANT EXECUTE ON SCHEMA.PACKAGE.PROCEDURE TO USER
Hi,
GRANT EXECUTE ON SCHEMA.PACKAGE.PROCEDURE TO USER
returns:
ORA-00905, do you know why? Can I grant privileges on procedure inside package?
thanksAs per my knowledge of oracle, we cannot grant privileges on procedure inside a package.
<br><br>
Raj<br>
<b>www.oraclebrains.com<a>
<br><font color="#FF0000">POWERED by the people, to the people and for the people WHERE ORACLE IS PASSION.</font></b>
<br>
Sorry Leonardo Horikian & Kamal Kishore, I was late and didn't know that you guys have already posted the answer.
Message was edited by:
rajs -
Giving grant for creating temporary table only
hi...
i want to give grant for creating only temporary tables to a schema.
no other grants should not be there strictly...
I have created the following user widout any grants...plss suggest me how can i give the grants for creating only temporary tables..
create user user_name
identified by password
default tablespace table_space
temporary tablespace TEMP
profile DEFAULT
quota unlimited on table_space;
grant select on V_$SESSION to user_name;
thanks...
Edited by: user12780416 on Mar 25, 2011 8:32 AMAs has been pointed out, it would be **extremely** unusual to want to have a user that could create global temporary tables but not permanent tables. I'm very hard-pressed to imagine a scenario where that would make sense.
However, if you grant the user the CREATE TABLE privilege but do not grant the user quota on any permanent tablespace, they would be unable to create permanent tables but should be able to create global temporary tables. You'll have to make sure that you don't grant the user UNLIMITED TABLESPACE which would give them unlimited quota on all tablespaces. If you are using 11g and you have enabled deferred segment creation, the users would actually be able to create tables in tablespaces they have no quota on though they would not be able to insert any data in those tables.
Justin -
Extended Analytics for star schema creation from HFM application
Hi,
I'm trying to create star schema via extended analytics from HFM application but facing below error
3/21/2013 12:30:07 PM : Status : Extracting Metadata
Schema did not previously exist.
Metadata update has failed. : (-2147217900) (One or more errors occurred during processing of command.)
Processing status change: (-2147217900)
Data processing failed. : (-2147217900) (One or more errors occurred during processing of command.)
3/21/2013 12:30:10 PM : Status : Processing completed with errors
Extended Analytics export completed with errors for Application GCS using Label GCS CON.
What could be the possible reason for it?
Also can someone please provide any suitable references or links to learn this EA for star schema creation.
Thanks,
Ravi AgrawalThe error you pasted here is incomplete. Look in the system messages and you will find more complete information that will lead you to the error's cause. Very often this is an error in the database, though sometimes it is caused by a metadata member with an invalid character. To determine whether it is data or metadata that causes the error, you could generate a schema with metadata only and see if the error appears.
-- Chris -
Hello folks,
I am looking for best practices advice when (1) creating
custom components and (2) styling and skinning.
I already know how to skin a component part of the Flex
framework. I can make a class extending ProgrammaticSkin and have
my component skinned using CSS to link the component with the
reference to my custom class.
However what about those cases when you are completely
creating a component from scratch?
Imagine a "Freehand Drawing Canvas" component that allows the
user to draw on it and has some buttons to set color styles, line
styles, etc., or imagine a "Screen Flow Gallery" component that
displays visual objects in a fashion similar to Cover Flow in the
Mac.
In many components I am aware you may reuse other components
part of the Flex framework but I am trying to picture an scenario
where you would need to draw everything yourself because there just
isn't something to base it upon so you will end up drawing it from
scratch.
To learn how instead of building one of those components I
mentioned previously I decided to start with something simple that
would illustrate this like a LiteButton component that will behave
just like the Flex mx.controls.Button but will extend UIComponent
and be completely custom drawn.
The component will have a default look and will also be
style-able and skin-able. I will provide styles for users of the
component to modify and regarding skinning anyone can create a
custom ProgrammaticSkin adding its own drawing logic and link it to
the component via CSS with the ClassReference applied to the skin
selector.
So far so good and it's clear what I want to achieve. I
actually know how to do most of the stuff here but I have one
single problem.
Here is my question, where should I put my custom drawing
logic? If I do it in the updateDisplayList inside the class
extending UIComponent it works, however I thought that it would be
a better practice to do it using programmatic skins, that way I
could provide different skin themes for my component set.
The problem is that I can't make the programmatic work in
this scenario. I tried instantiating the custom programmatic skin
during the updateDisplayList of the LiteButton component and adding
it to my display object via addChild but that didn't do anything. I
also tried creating a "default.css" stylesheet and tried to use
ClassReference as I would normally do to skin an already existing
component (or composite component as well) but that didn't do
anything either.
So how do I apply programmatic skins for completely custom
drawn components of my Flex library project?
I could do it inside the updateDisplayList of the LiteButton
class extending UIComponent but again I would like to provide
different theme sets for my components so it makes sense using
programmatic skins."jbucaran" <[email protected]> wrote in
message
news:[email protected]...
> Hello folks,
>
> I am looking for best practices advice when (1) creating
custom components
> and
> (2) styling and skinning.
>
> I already know how to skin a component part of the Flex
framework. I can
> make
> a class extending ProgrammaticSkin and have my component
skinned using CSS
> to
> link the component with the reference to my custom
class.
>
> However what about those cases when you are completely
creating a
> component
> from scratch?
>
> Imagine a "Freehand Drawing Canvas" component that
allows the user to draw
> on
> it and has some buttons to set color styles, line
styles, etc., or imagine
> a
> "Screen Flow Gallery" component that displays visual
objects in a fashion
> similar to Cover Flow in the Mac.
>
> In many components I am aware you may reuse other
components part of the
> Flex
> framework but I am trying to picture an scenario where
you would need to
> draw
> everything yourself because there just isn't something
to base it upon so
> you
> will end up drawing it from scratch.
This may help with that
http://livedocs.adobe.com/flex/3/html/help.html?content=skinstyle_3.html
> To learn how instead of building one of those components
I mentioned
> previously I decided to start with something simple that
would illustrate
> this
> like a LiteButton component that will behave just like
the Flex
> mx.controls.Button but will extend UIComponent and be
completely custom
> drawn.
>
> The component will have a default look and will also be
style-able and
> skin-able. I will provide styles for users of the
component to modify and
> regarding skinning anyone can create a custom
ProgrammaticSkin adding its
> own
> drawing logic and link it to the component via CSS with
the ClassReference
> applied to the skin selector.
>
> So far so good and it's clear what I want to achieve.
Actually after
> playing
> with the weekend and today I know how to do most of the
stuff but I have
> one
> single problem. So here is my question, where should I
provide my custom
> drawing logic? If I do it in the updateDisplayList
inside the class
> extending
> UIComponent it works, however I thought that it would be
a better practice
> to
> do it using programmatic skins, that way I could provide
different skin
> themes
> for my component set.
These aren't mutually exclusive. When you provide a skin with
a
TypeSelector, you have to add it to the display list
somewhere, and this is
typically done in updateDisplayList or addChildren. I prefer
to do it in
updateDisplayList, because you can then change it if the
style changes.
> The problem is that I can't make the programmatic work
in this scenario. I
> tried instantiating the custom programmatic skin during
the
> updateDisplayList
> of the LiteButton component and adding it to my display
object via
> addChild but
> that didn't do anything.
Exactly what did you do?
> I also tried creating a "default.css" stylesheet and
> tried to use ClassReference as I would normally do to
skin an already
> existing
> component (or composite component as well) but that
didn't do anything
> either.
I've never had any problem using an approach similar to
this...but I will
say that I couldn't see any advantage in creating a
default.css style sheet,
since it's not really default in the way that the one that
comes with Flex
is. It's much more obvious to anyone using your component
what's going on
there if you create a style sheet where they're likely to
spot it.
> So how do I apply programmatic skins with the default
look for custom
> drawn
> components?
It seems like your approach is fine, but maybe you've made a
mistake in your
implementation.
> I could do it inside the updateDisplayList of the
LiteButton class
> extending
> UIComponent but again I would like to provide different
theme sets for my
> components so it makes sense using programmatic skins.
You might want to consider also adding an instance of
HaloBorder to your
component. That brings a lot of functionality with it.
HTH;
Amy -
Invoice grouping for completed invoices
Dear Experts,
i have requirement where i want to group invoice which are complete and assign an output type for it to get invoice list in the print.
option i tried.
As discussed sometime back, i tried with VF21 for invoice grouping for completed inovices.
Our IDES allows to group inovices in VF21 those are complete but in my client system it does not allow.
My VOFA for F2 has LR in Invloce list type in both the machine
Copy control exisiting for F2 and LR existing in both
In OVV7 invoice type(F2) is assigned to an invoice-list type(LR)
only difference i found is FActory calender is assingned to Cusomer in client machine but assigned in IDES
and in turn FKDAT_RL in VBRK table(VF02-Goto> Header>Header) is blank for completed inpvoicesin IDES. but it is filled in IDES
is that the reason it is not allowing in client box.
If so how to go about it, it is not allowing to change FKDAT_RL in VBRK table(VF02-Goto> Header>Header)
is there any other option other that VF21 where in i can group invoices which are complete and assing out put type
Kindly help or suggest
Regards
SivaHello Siva,
In order to create an invoice list, it is mandatory to maintain the field "InvoicingListDates" must be filled in the Customer Master.
Regards,
Raghavendra -
WIP - Job Order Pending for Completion Transaction Reprt
How can we get report - job order pending for completion transaction from WIP module?
Please give us solution.
Thanks & Regards,
PressureJet Systems Pvt. Ltd.
Edited by: PressureJet Systems Pvt. Ltd. on Apr 7, 2013 9:57 PMCan you elaborate your question more?
Mahendra -
Unable to locate Spring NamespaceHandler for XML schema namespace
I am not sure if this is the best practice approach but this is the problem I am ruining into. Below, I explain what I am doing:
1) What I am doing:
=============
Based on the oracle incubator example (http://coherence.oracle.com/display/INCUBATOR/Processing+Pattern+Examples); I am running a server and submitting tasks through a proxy application that submits them to ProcessingPatternConfigurator; let's call my task processReport.
a) my processReport is using spring and ibatis together, I created a utility static class to obtain a spring context and retrieves beans using the following lines ( see exhibit "A1 and A2" below).
b) when my task calls the context and that spring loads, it is failing with the error show in exhibit "B".
I suspect I am missing a lib? I googled the error and searched you site but could find a meaningful discussion on it. I guess my question is if this is not the best approach, how do I integrated with spring initializing beans and setting up ibatis framwork, providing beans and database access through Ibatis for each task ruining on the grid (processReport).
thanks
A1) processReport (submitted in the grid) uses this line
AbstractXmlApplicationContext ctx = (AbstractXmlApplicationContext) AmrContextUtil.getInstance();
System.out.println("Classpath loaded. Executing Report...");
ReportProcessor repProcessor = (ReportProcessor) ctx.getBean("reportProcessor");
A2) Here is the AmrContextUtil:
import org.springframework.context.support.AbstractApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public final class AmrContextUtil {
private static AbstractApplicationContext ctx = null;
public AmrContextUtil() {
super();
public final static synchronized AbstractApplicationContext getInstance(){
if (ctx == null){
ctx = new ClassPathXmlApplicationContext("classpath:config/applicationContext.xml");
setCtx(ctx);
return ctx;
public final static synchronized AbstractApplicationContext getCtx() {
return ctx;
public final static synchronized void setCtx(AbstractApplicationContext ctx) {
AmrContextUtil.ctx = ctx;
B) Here is the error reported by the server:
2010-02-10 15:42:28.312/57.986 Oracle Coherence GE 3.5.2/463 <Warning> (thread=GridExecutor:Thread-2
, member=1): TaskRunner - Failed to process 0x00000126B99E5524AC1F007AAB1587BBCFEC5E6637E1DED6CCB984
03D6AADF4D due to:org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions from URL location [classpath:config/reports-application.xml] Offending resource: class path resource [config/applicationContext.xml]; nested exception is org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unexpected failure during bean definition parsing
Offending resource: class path resource [config/reports-application.xml] Bean 'reportSqlMapConfig'; nested exception is org.springframework.beans.factory.parsing.BeanDefinitionParsingException: *Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/util]*
*Offending resource: class path resource [config/reports-application.xml] Bean 'reportSqlMapConfig'*
-> Property 'resourceMap'
c)Here is my application-context.xml offending line:
<bean id="reportSqlMapConfig"
class="com.xx.report.generator.ReportSqlMapConfig">
<property name="resourceMap">
<map>
<entry>
<key>
<util:constant static-field="com.xx.report.domain.ReportType.FPA"/>
</key>
<value>classpath:config/diehardReportSqlMapConfig.xml</value>
</entry>
<entry>
<key>
<util:constant static-field="com.xx.report.domain.ReportType.FCN"/>
</key>
<value>classpath:config/falconReportSqlMapConfig.xml</value>
</entry>
<entry>
<key>
<util:constant static-field="com.xx.report.domain.ReportType.ODS"/>
</key>
<value>classpath:config/odsReportSqlMapConfig.xml</value>
</entry>
</map>
</property>
</bean>My guess is that something is broken in the configuration of the cacheServer and its not finding
all of the dependencies that your process pattern application needs. Probably the best way
to debug this stuff is to define a static main in your runnable task which will make the call
to the run() method and invoke it as the main class using the identical settings (classpath,
run directory) that you are using to launch the Coherence cache server.
Regards,
Bob -
How to set View for Completed items inside Tasks?
How to set button for 'View' and see Completed items or not completed inside Tasks?
Hi,
You want to set custom views for Tasks folder so that when we click a view button, it will show all Completed or incomplete tasks, am I correct?
Which version of Outlook are you using? There are existing views for completed/incomplete tasks in Outlook. In Outlook 2010 and Outlook 2013, we can find the buttons under View tab > Change View. Click Completed button to view all completed
tasks; Click Active button to view incomplete tasks.
In Outlook 2007, just click View > Current View to switch between different views.
If I've misunderstood something, please feel free to let me know.
Regards,
Steve Fan
TechNet Community Support
It's recommended to download and install
Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
programs.
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected]
Maybe you are looking for
-
Error While executing script task componnent
Hi, I am using script task comp in my package .script written in script task comp ' Microsoft SQL Server Integration Services Script Task ' Write scripts using Microsoft Visual Basic ' The ScriptMain class is the entry point of the Script Task. Imp
-
Unable to update, restore or recover. Slider doesn't slide and number pad doesn't work for passcode. What next? Worked last night . Battery charged. When I push Home button I get my backgroung but can't slide slider. Device is recognized by iTunes.He
-
HP OfficeJet Pro X576dw MFP: Poor Fax Quality with ADF
I have a relatively new HP OfficeJet 576 that sends faxes fine when using the flatbed scanner. When documents are faxed using the Automatic Document Feeder, the receiving end gets a very poor quality copy; the document is very light and the bottom p
-
After upgrading to Mountain Lion, any time I open a big PDF ( for example 600 pages) with Preview, when I make an annotation as highlighting, I starts saving and this annoying process lasts for 45-50 seconds. Anyone knows how to stop Preview from sav
-
How to remove black "blocked plug-in" window that opens with iPhoto. It covers iPhoto and everything under it. I've right and left clicked the black window, restarting the computer, shutting down the computer, but the window always appears when I ope