1 2 Previous Next 15 Replies Latest reply: Dec 20, 2012 1:19 PM by Rajiv Dewan RSS

    Custom Schedule task in 11gR2

    Durgaprasad
      I have created a plugin.xml file, scheduletask.xml file and a jar file containing the schedule task code. What are the further steps to make my schedule task working in 11gr2
        • 1. Re: Custom Schedule task in 11gR2
          Rajiv Dewan
          http://identityandaccessmanager.blogspot.com/2010/11/schedule-task-oim-11g.html

          NO NEED FOR PLUGIN.xml, just leave that step
          • 2. Re: Custom Schedule task in 11gR2
            Nishith Nayan
            1.     Place jar at <OIM_HOME>/server/ScheduledTask folder. No need to zip and register as plugin.Instead you can use UploadJars.bat utility to upload it for production But for testing just put at file system that’s enough. But, make sure you have this jar at only one place.

            2.     Place xml somewhere inside tmp/db/SetManagerScheduledTask.xml

            3.     Update weblogic.properties for below parameter

            wls.servername=oim_server1 (name of your managed/oim server)
            Application_name=OIMMetadata
            From_location= till tmp (ex: C:/tmp)

            4.     Make sure you have set the environment variable.
            OIM_ORACLE_HOME
            WL_HOME
            MW_HOME

            5.     Go to <OIM_HOME>/server/bin and run below command
            weblogicImportMetadata.bat
            username: weblogic
            password: Admin/weblogic console password
            url: t3://<Admin server Hostname or IP>:<Admin/weblogic port>

            6.     restart oim

            Configure Scheduled task
            1.     Open scheduled job under Advance tab.
            2.     Click on (+ )sign to create new scheduled job
            3.     Search task as “<Task name given in Xml” and then provide below parameter
            Job Name:<name given in xml or any name>
            Retry: 3
            You can create as Periodic or no predefined
            • 3. Re: Custom Schedule task in 11gR2
              Nishith Nayan
              find oracle doc. If you would like to upload code as plugin find step by step method in below doc. However, don't use plugin. Better use UploadJars.sh to upload jar alone in DB
              http://docs.oracle.com/cd/E27559_01/dev.1112/e27150/refsched.htm#CIHBFCJG
              • 4. Re: Custom Schedule task in 11gR2
                Durgaprasad
                when i opened weblogic.properties under Oracle_IDM1\server\bin i found a warning

                WARNING: This tool is deprecated, refer to the OIM documentation for alternatives.

                Can we still use this?
                • 5. Re: Custom Schedule task in 11gR2
                  Rajiv Dewan
                  I used the same and it worked.





                  And as per OIM 11g R2 document:

                  Note: The scheduled task XML file can be imported into MDS using the Oracle Enterprise Manager.


                  See section: (Developer's Guide)

                  36.1.2 Importing Metadata Files from MDS
                  • 6. Re: Custom Schedule task in 11gR2
                    Nishith Nayan
                    Use it. It will be working fine
                    • 7. Re: Custom Schedule task in 11gR2
                      Durgaprasad
                      I created a folder tmp in desktop and created another folder db inside it and placed the scheduletask.xml file into it. After that i had set the environment variables and ran the script. It is giving the following error

                      Successfully connected to Admin Server 'AdminServer' that belongs to domain 'idm
                      domain'.

                      Warning: An insecure protocol was used to connect to the
                      server. To ensure on-the-wire security, the SSL port or
                      Admin port should be used instead.

                      Location changed to domainRuntime tree. This is a read-only tree with DomainMBea
                      n as the root.
                      For more help, use help(domainRuntime)


                      Problem invoking WLST - Traceback (innermost last):
                      File "D:\OIM\Oracle_IDM1\server\bin\weblogicImportMetadata.py", line 21, in ?
                      File "D:\OIM\ORACLE~1\common\wlst\mdsWLSTCommands.py", line 289, in importMeta
                      data
                      File "D:\OIM\ORACLE~1\common\wlst\mdsWLSTCommands.py", line 795, in executeApp
                      RuntimeMBeanOperation
                      File "D:\OIM\ORACLE~1\common\wlst\mdsWLSTCommands.py", line 765, in getMDSAppR
                      untimeMBean
                      UserWarning: MDS-91002: MDS Application runtime MBean for "OIMMetadata" is not a
                      vailable. "importMetadata" operation failure.
                      • 8. Re: Custom Schedule task in 11gR2
                        Rajiv Dewan
                        What are the parameters you have used in weblogic.properties ?

                        Instead of debugging this, use 11g R2 method. It provides you UI to import.

                        But 11g R1 method worked for me :-)
                        • 9. Re: Custom Schedule task in 11gR2
                          Durgaprasad
                          Ok Rajiv :) Let me try the method given in R2 developer's guide. In OIM 10g we used to develop schedule tasks in minutes by copying the jar file directly and configuring it in design console or admin console. Here there are so many steps and its confusing . Some working fine in R1 which is not in R2. :(
                          • 10. Re: Custom Schedule task in 11gR2
                            Nishith Nayan
                            yes. for the time import mds using OEM console as suggested in above post.

                            Steps are not so complex. But the thing is you are not used to.
                            • 11. Re: Custom Schedule task in 11gR2
                              Rajiv Dewan
                              Here also you'll create schedule task in minutes. Just a matter of Practice.

                              Just a question for last error:

                              Was OIM SERVER in running mode ?
                              • 12. Re: Custom Schedule task in 11gR2
                                Durgaprasad
                                Yes OIM server was running.
                                • 13. Re: Custom Schedule task in 11gR2
                                  Durgaprasad
                                  Restarted weblogic and OIM managed server and again ran the tool . This time it worked. I was able to create the schedule task. Thanks Nishith and Rajiv.
                                  • 14. Re: Custom Schedule task in 11gR2
                                    Durgaprasad
                                    So even in production i do not need to create a plugin.xml file and register right? Instead i can use UploadJars.sh ?
                                    1 2 Previous Next