Skip to Main Content

Security Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Request Data Validator is not working

Oracle.QuestJan 9 2013 — edited Feb 14 2013
Hi Guys,

I am trying to invoke a plugin while submitting a request through CATALOG in OIM 11gR2. The user case i am trying to achieve is - (1) User/Admin login to OIM and go to CATALOG option (2) Select an Application instance, fill the values in the form and checkout (3) While submitting this validator should invoke which will validate the request data and throw exception if any.

For this i was thinking to utilize the plugin for oracle.iam.request.plugins.RequestDataValidator "This is used for custom validation of request data after submission"

My plugin.xml looks like
<?xml version="1.0" encoding="UTF-8"?>
<oimplugins>
<plugins pluginpoint="oracle.iam.request.plugins.RequestDataValidator">
<plugin pluginclass="com.test.oim.TestRequestValidator" version="1.0" name="TestReqValidator">
</plugin>
</plugins>
</oimplugins>

And i am using simple code as below
package com.test.oim;

import oracle.iam.request.exception.InvalidRequestDataException;
import oracle.iam.request.plugins.RequestDataValidator;
import oracle.iam.request.vo.RequestData;

+public class TestRequestValidator implements RequestDataValidator {+
+public TestRequestValidator() {+
super();
+}+

+public void validate (RequestData reqDta) throws InvalidRequestDataException{+
System.out.println("************************************************");
System.out.println("***Justification***" reqDta.getJustification());+
throw new InvalidRequestDataException(new Exception("Invalid User"));
+}+
+}+

My plugin directory contains the plugin.xml file and the jar file (with above class) under lib directory. I placed the zip file under OIM_HOME/Plugin directory and even restarted the servers.

However this code is not invoking and i can successfully create the request (i tried from user and admin both). Please advise if anyone has any idea. Thanks

Comments

621707
Actually that was my mistake....
I specified the wrong clause.

oracle@NOBASE-oracle:~> imp system/manager@ora01 file=/home/oracle/FULL_EXP_BACKUP/imp_pipe log=/home/oracle/FULL_EXP_BACKUP/FullDbexp_20090302_0136.log FROMUSER=NOBASE,GBADM00301,NOBASEXML,DUMMYCONNECT,SPOTLIGHT2,SPOTLIGHT,SPOT1,TIMEREG,TDCH,ERWIN,IX,MTSSYS TOUSER=NOBASE,GBADM00301,NOBASEXML,DUMMYCONNECT,SPOTLIGHT2,SPOTLIGHT,SPOT1,TIMEREG,TDCH,ERWIN,IX,MTSSYS

Import: Release 10.2.0.1.0 - Production on Wed Mar 4 22:22:10 2009

Copyright (c) 1982, 2005, Oracle. All rights reserved.


Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options

Cannot proceed from last 25 minutes

My /home/oracle/FULL_EXP_BACKUP/FullDbexp_20090302_0136.dmp.gz file is of 17G
Why is it so?

Please help

Edited by: user618704 on Mar 4, 2009 10:39 PM

Edited by: user618704 on Mar 4, 2009 10:41 PM
Anand...
HI..

The file to be imported i suppose is FILE=/home/oracle/FULL_EXP_BACKUP/FullDbexp_20090302_0136.dmp.gz and when it will be unzipped the file name will be */home/oracle/FULL_EXP_BACKUP/FullDbexp_20090302_0136.dmp* until unless not altered.

SO,where does file=/home/oracle/FULL_EXP_BACKUP/imp_pipe comes from. Which file is imp_pipe.I think your imp command must be

oracle@globase-oracle:~> imp system/manager@ora01 file=/home/oracle/FULL_EXP_BACKUP/FullDbexp_20090302_0136.dmp log=/home/oracle/FULL_EXP_BACKUP/FullDbexp_20090302_0136_imp.log FROMUSER=GLOBASE,GBADM00301,GLOBASEXML,DUMMYCONNECT,SPOTLIGHT2,SPOTLIGHT,SPOT1,TIMEREG,TDCH,ERWIN,IX,MTSSYS TOUSER=GLOBASE,GBADM00301,GLOBASEXML,DUMMYCONNECT,SPOTLIGHT2,SPOTLIGHT,SPOT1,TIMEREG,TDCH,ERWIN feedback=100000 buffer=30000000 ignore=y


HTH
Anand
621707
I used below script on new terminal and it works :)

mknod /home/oracle/FULL_EXP_BACKUP/imp_pipe p
gunzip < /home/oracle/FULL_EXP_BACKUP/FullDbexp_20090302_0136.dmp.gz > /home/oracle/FULL_EXP_BACKUP/imp_pipe &
imp system/manager@ora01 file=/home/oracle/FULL_EXP_BACKUP/imp_pipe log=/home/oracle/FULL_EXP_BACKUP/FullDbexp_20090302_0136.log FROMUSER=NOBASE,GBADM00301,NOBASEXML,DUMMYCONNECT,SPOTLIGHT2,SPOTLIGHT,SPOT1,TIMEREG,TDCH,ERWIN,IX,MTSSYS TOUSER=NOBASE,GBADM00301,NOBASEXML,DUMMYCONNECT,SPOTLIGHT2,SPOTLIGHT,SPOT1,TIMEREG,TDCH,ERWIN,IX,MTSSYS


Thanks
Maran Viswarayar
Anand

This is compression on the fly in unix, You have to create a pipe and it will be redirected to write in a compressed format .Z or GZ where by the resultant dump will be in the compressed format at the end of export.

Similialy you have import using the same
Maran Viswarayar
Metalink 274109.1 has something for you

try deleting and recreate the pipe
Anand...
Hey Maran,

Thanks a lot for the info... :) I haven't worked much on unix platform.But it was nice to know this.Just wanted to clarify that is it redirected automatically to write in a compressed format.

Thanks
Anand
Maran Viswarayar
mknod /home/oracle/FULL_EXP_BACKUP/imp_pipe p
This creates the pipe
gunzip < /home/oracle/FULL_EXP_BACKUP/FullDbexp_20090302_0136.dmp.gz > /home/oracle/FULL_EXP_BACKUP/imp_pipe &
This (>) redirects the output to FullDbexp_20090302_0136.dmp.gz file with gunzip

Best Regards
Maran
1 - 7
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Mar 14 2013
Added on Jan 9 2013
10 comments
817 views