Error in creating job using DBMS_SCHEDULER

I have create the following procedure to create individual jobs dynamically on each schema.
CREATE OR REPLACE PROCEDURE APSP.JOB_TEST_RAM
AS
   V_SQL   VARCHAR2 (1000);
BEGIN
   FOR i
   IN (SELECT   gbm.OWNER_NAME owner_name,
                vdb.NAME || '_BU_' || gbm.BU_CODE,
                gbm.bu_id bu_id
         FROM   apps_global.GLOBAL_BU_MAPPING gbm, v$database vdb
        WHERE   OWNER_NAME NOT IN ('APPS_GLOBAL'))
   LOOP
      V_SQL :=
         'BEGIN
              DBMS_SCHEDULER.CREATE_JOB (
                  job_name => '''
         || i.owner_name
         || '_archive_job'',
      job_class => '''
         || i.owner_name
         || '_job_class'',
                  job_type => ''PLSQL_BLOCK'',
                  job_action => ''begin APSP.POP_TARGET(''APPS_XX'',i.owner,i.buid); end;'',
                  auto_drop => TRUE,
                  comments => '''|| i.owner_name||''',
              enabled => TRUE);
            END;';
      EXECUTE IMMEDIATE V_SQL;
   END LOOP;
END;
/The procedure is having following arguments.
CREATE OR REPLACE PROCEDURE APSP.POP_TARGET (
p_schema_name           VARCHAR2,
   p_actual_schema_name    VARCHAR2,
   p_buid                  NUMBER
)While executing this procedure I am getting the below error.
PLS-00103: Encountered the symbol "APPS_XX" when expecting one of the following:
Please help me.
Thanks in advance .

Try this
create or replace procedure apsp.job_test_ram
as
   v_sql   varchar2 (1000);
begin
   for i
   in (select   gbm.owner_name owner_name,
                vdb.name || '_BU_' || gbm.bu_code,
                gbm.bu_id bu_id
         from   apps_global.GLOBAL_BU_MAPPING gbm, v$database vdb
        where   owner_name not in ('APPS_GLOBAL'))
   loop
      v_sql :=
         q'[begin
              dbms_scheduler.create_job
                  job_name   => '#OWNER_NAME#_archive_job'
                , job_class  => '#OWNER_NAME#_job_class'
                , job_type   => 'STORED_PROCEDURE'
                , job_action => q'{APSP.POP_TARGET('APPS_XX','#OWNER_NAME#','#BUILD#')}'
                , auto_drop  => TRUE
                , comments   => '#OWNER_NAME#'
                , enabled    => TRUE
            end;]';
         v_sql := replace(replace(v_sql, '#OWNER_NAME#', i.owner), '#BUILD#', i.build);
      execute immediate v_sql;
   end loop;
end;
/

Similar Messages

  • How to run the job using DBMS_SCHEDULER

    How to run the job using DBMS_SCHEDULER
    pleas give some sample Iam very new to DBMS_SCHEDULER

    Hi
    DBMS_SCHEDULER
    In Oracle 10g the DBMS_JOB package is replaced by the DBMS_SCHEDULER package. The DBMS_JOB package is now depricated and in Oracle 10g it's only provided for backward compatibility. From Oracle 10g the DBMS_JOB package should not be used any more, because is could not exist in a future version of Oracle.
    With DBMS_SCHEDULER Oracle procedures and functions can be executed. Also binary and shell-scripts can be scheduled.
    Rights
    If you have DBA rights you can do all the scheduling. For administering job scheduling you need the privileges belonging to the SCHEDULER_ADMIN role. To create and run jobs in your own schedule you need the 'CREATE JOB' privilege.
    With DBMS_JOB you needed to set an initialization parameter to start a job coordinator background process. With Oracle 10g DBMS_SCHEDULER this is not needed any more.
    If you want to user resource plans and/or consumer groups you need to set a system parameter:
    ALTER SYSTEM SET RESOURCE_LIMIT = TRUE;
    Baisc Parts: Job
    A job instructs the scheduler to run a specific program at a specific time on a specific date.
    Programs
    A program contains the code (or reference to the code ) that needs to be run to accomplish a task. It also contains parameters that should be passed to the program at runtime. And it?s an independent object that can referenced by many jobs
    Schedules
    A schedule contains a start date, an optional end date, and repeat interval with these elements; an execution schedule can be calculated.
    Windows
    A window identifies a recurring block of time during which a specific resource plan should be enabled to govern resource allocation for the database.
    Job groups
    A job group is a logical method of classifying jobs with similar characteristics.
    Window groups
    A window groups is a logical method of grouping windows. They simplify the management of windows by allowing the members of the group to be manipulated as one object. Unlike job groups, window groups don?t set default characteristics for windows that belong to the group.
    Using Job Scheduler
    SQL> drop table emp;
    SQL> Create table emp (eno int, esal int);
    SQL > begin
    dbms_scheduler.create_job (
    job_name => 'test_abc',
    job_type => 'PLSQL_BLOCK',
    job_action => 'update emp set esal=esal*10 ;',
    start_date => SYSDATE,
    repeat_interval => 'FREQ=DAILY; INTERVAL=10',
    comments => 'Iam tesing scheduler');
    end;
    PL/SQL procedure successfully completed.
    Verification
    To verify that job was created, the DBA | ALL | USER_SCHEDULER_JOBS view can be queried.
    SQL> select job_name,enabled,run_count from user_scheduler_jobs;
    JOB_NAME ENABL RUN_COUNT
    TEST_abc FALSE 0
    Note :
    As you can see from the results, the job was indeed created, but is not enabled because the ENABLE attribute was not explicitly set in the CREATE_JOB procedure.
    Run your job
    SQL> begin
    2 dbms_scheduler.run_job('TEST_abc',TRUE);
    3* end;
    SQL> /
    PL/SQL procedure successfully completed.
    SQL> select job_name,enabled,run_count from user_scheduler_jobs;
    JOB_NAME ENABL RUN_COUNT
    TEST_ABC FALSE 0
    Copying Jobs
    SQL> begin
    2 dbms_scheduler.copy_job('TEST_ABC','NEW_TEST_ABC');
    3 END;
    4 /
    PL/SQL procedure successfully completed. Hope it will help you upto some level..!!
    Regards
    K

  • Error while creating stock using tcode: MB1C

    Error while creating stock using tcode: MB1C
    The Error is: Check table T004F:entry G006 does not exist

    Hi ,
    Please check the FSV (field status variant) for your company code in OBY6 .
    then go to transaction code OB14 --> enter the FSV --> Check if field status group G006(Material account) is maintained there or not.
    if not please maintain it.
    Thanks & Regards
    Anshu

  • Getting error while creating subsite using custom template in sharepoint2013

    Hi,
    I am getting the following error while creating subsite using custom template in sharpoint2013. even publish features are enabled.
    Please suggest me on this.
    Thanks in advance.

    You need to enable the PerformancePoint Service Site Collection Features(PPSMonDatasourceCtype)
    on the target site collection. go to site action > site settings> site collections features > and enable it and now try again.
    Similar case: http://imughal.wordpress.com/2012/09/20/dependency-feature-ppsmondatasourcectype-id-05891451-f0c4-4d4e-81b1-0dabd840bad4-for-feature-bicenterdataconnections-id-3d8210e9-1e89-4f12-98ef-643995339ed4-is-not-activated-at-this-scop/
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • Getting error while trying to execute a external job using dbms_scheduler

    Hello,
    I create a job using alpha account.
    begin
    dbms_scheduler.create_job(
    job_name => 'jps_test_executable',
    job_type => 'EXECUTABLE',
    job_action => '/usr/bin/ksh',
    number_of_arguments => 2
    dbms_scheduler.set_job_argument_value (
    job_name => 'jps_test_executable',
    argument_position => 1,
    argument_value => '/tmp/abc.sh'
    and when I execute the job in the schema using alpha account it works fine.
    BEGIN
    DBMS_SCHEDULER.run_job (job_name => 'jps_test_executable',
    use_current_session => FALSE);
    END;
    Works fine.
    But if I try to execute the same job using some other account say beta in the same schema , I am getting error
    ORA-27476 :”SMS.RUN_SMS_JOBS Does not exist ORA-06512 at “SYS.DBMS_ISCHED” line 2793 ORA-06512 :at “SYS.DBMS_SCHEDULER”,line 1794
    even I give the fill qualifier, still I am getting the error.
    BEGIN
    DBMS_SCHEDULER.run_job (job_name => 'alpha.jps_test_executable',
    use_current_session => FALSE);
    END;
    Any help will be appreciated.
    Thank you,
    Raj

    It's the expected behavior:
    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_sched.htm#CIHHBGGI
    RUN_JOB requires that you be the owner of the job or have ALTER privileges on that job. You can also run a job if you have the CREATE ANY JOB privilege.So, you need to grant the required privilege:
    aplha@orcl> grant alter on alpha.jps_test_executable to beta;HTH
    Enrique
    PS If your problem was solved consider marking the question as answered.

  • Creating JOB using JOB API - Future Dated value for a segment

    Hi
    Trying to create a JOB using "hr_job_api.create_job" as of today (17-Jul-2009), with one of the segment value has the 'Date_from' as 26-Jul-2009.
    API is throwing the below error
    ORA-20001: FLEX-VALUE IS EXPIRED:
    ORA-06512: at "APPS.HR_JOB_API", line 878
    Have anyone come across this error before ?
    Thanks
    Arun

    As per the error it saying there is a problem in the DFF attached with the job, or even job kff itself, paste the whole code and whole error

  • Error while creating Routing using LSMW

    Hi Guys ,
    I am trying to create LSMW using Direct Input Method .
    My structures are ::
    RC271_DS   Work center structure for direct input (for datasets)
    RC27M_DS   Material master view DIRECT INPUT routing for datasets
    PLKO_DI_DS Header structure for direct input (for datasets)
    PLPO_DI_DS Routing/item structure for direct input (for datasets.
    I getting correct data from multiple flat files .
    It's converting the data also .
    But while executing start direct input method i am getting the followig error ....
    You cannot edit the task list object with activity type
    Please let me know problem guys .
    Regards,
    Raj

    Hi Naveen,
    It means you have to assign  the task list type to  material type ZPRD. Then it will carry its job:
    The path is:
    Go To-> SPRO-> IMG Activity-> Production-> Basic Data-> Routing-> General Data---> Define Material Type Assignments. T-Code: OP50
    I hope it will work.
    Regards,
    Madhu.G

  • Error while defining chain_step using dbms_scheduler.define_chain_step

    Hello,
    I am trying to create a chain_job using dbms_scheduler in <Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit>
    BEGIN
    dbms_scheduler.create_chain (
    chain_name => 'test_chain',
    rule_set_name => NULL,
    evaluation_interval => NULL,
    comments => 'Test chain.');
    END;
    -- Chain Created Successfully
    begin
    dbms_scheduler.create_program (
    program_name => 'test_program',
    program_type => 'PLSQL_BLOCK',
    program_action => 'BEGIN null; END;',
    enabled => TRUE,
    comments => 'Test program.');
    end;
    -- Program Created Successfully
    begin
    dbms_scheduler.define_chain_step (
    chain_name => 'test_chain',
    step_name => 'step_maximum_length_allowed',
    program_name => 'test_program');
    end;
    Error at line 1
    ORA-27465: invalid value STEP_MAXIMUM_LENGTH_ALLOWED for attribute step_name
    ORA-06512: at "SYS.DBMS_ISCHED", line 3912
    ORA-06512: at "SYS.DBMS_ISCHED", line 1452
    ORA-06512: at "SYS.DBMS_SCHEDULER", line 1364
    ORA-06512: at line 2
    The step_name length I used above<'step_maximum_length_allowed'> is 27 characters.
    If I use a step_name of length <= 24 characters, the define_chain_step works.
    Question:
    Does this error have to do with the maximum length allowed for step_name. If so, then the error raised should have reflected that.
    Appreciate any help.
    Thanks
    Kumar
    Edited by: 977325 on Jan 10, 2013 12:01 PM
    Edited by: 977325 on Jan 10, 2013 12:01 PM
    Edited by: 977325 on Jan 10, 2013 12:03 PM

    Thanks a lot damorgan for your reply :)
    I have gone through the link you provided. I couldn't find any limits on step naming though.
    Here is the question again with proper with proper formatting.
    I am trying to create a chain_job using dbms_scheduler in <Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit>
    BEGIN
       DBMS_SCHEDULER.create_chain (chain_name            => 'test_chain',
                                    rule_set_name         => NULL,
                                    evaluation_interval   => NULL,
                                    comments              => 'Test chain.');
    END;
    -- Chain Created Successfully
    BEGIN
       DBMS_SCHEDULER.create_program (program_name     => 'test_program',
                                      program_type     => 'PLSQL_BLOCK',
                                      program_action   => 'BEGIN null; END;',
                                      enabled          => TRUE,
                                      comments         => 'Test program.');
    END;
    -- Program Created Successfully
    <code>
    BEGIN
       DBMS_SCHEDULER.define_chain_step (
          chain_name     => 'test_chain',
          step_name      => 'step_maximum_length_allowed',
          program_name   => 'test_program');
    END;
    Error at line 1
    ORA-27465: invalid value STEP_MAXIMUM_LENGTH_ALLOWED for attribute step_name
    ORA-06512: at "SYS.DBMS_ISCHED", line 3912
    ORA-06512: at "SYS.DBMS_ISCHED", line 1452
    ORA-06512: at "SYS.DBMS_SCHEDULER", line 1364
    ORA-06512: at line 2Question:
    The step_name length I used above is 27 characters.
    If I use a step_name of length <= 24 characters, the define_chain_step works.
    Does this error have to do with the maximum length allowed for step_name. If so, then the error raised should have reflected that.

  • Logical error in creating tables using db link in solaris

    Hi,
    While creating table using the syntax create table newtab...as select * from tab@dblink .. I am facing a problem. The newtab table created is having a structure different (from datalength point of view of varchar2 and char datatypes) from the source. The data length is getting tripled i.e. if a column a is varchar2(20) in tab then it is becoming --- a varchar2(60) in newtab. This is happening in solaris environment when the two databases are in 2 different servers. Please let me know if there are any patches to resolve the problem.
    Thanks
    Arnab

    ORA-02019: connection description for remote database not foundHave you used this database link successfully for some other queries?
    The error posted seems to indicate that the DB Link is not functional at all. Has it worked for any other type of DML operation or is this the first time you ever tried to use the link?

  • E-recruitement Error " When creating Job Posting "

    Hello Friends
    We are usinng standard  BSP HRRCF_POST_LST for posting the Job.
    But when after releasing the job i go on th job posting page and when i click on  "CREATE JOB POSTING " button i'm getting the following error.
    Business Server Page (BSP) error
    What happened?
    Calling the BSP page was terminated due to an error.
    SAP Note
    The following error text was processed in the system:
    BSP Exception: Internal Error in Business Server Page Runtime.
    Program CL_BSP_PAGE_BASE==============CP
    Include CL_BSP_PAGE_BASE==============CM01B
    Line 91 
    Error type:
    Your SAP Business Server Pages Team
    Can you please suggest what would be the cause of error even it is complete standard BSP.
    Please guide me by your valuable comment.
    Regards,
    Nilesh

    Hello Friends
    We are usinng standard  BSP HRRCF_POST_LST for posting the Job.
    But when after releasing the job i go on th job posting page and when i click on  "CREATE JOB POSTING " button i'm getting the following error.
    I tried to check the error log in ST22 & SLG1 but i found nothing in it.
    Business Server Page (BSP) error
    What happened?
    Calling the BSP page was terminated due to an error.
    SAP Note
    The following error text was processed in the system:
    BSP Exception: Internal Error in Business Server Page Runtime.
    Program CL_BSP_PAGE_BASE==============CP
    Include CL_BSP_PAGE_BASE==============CM01B
    Line 91 
    Error type:
    Your SAP Business Server Pages Team
    Can you please suggest what would be the cause of error even it is complete standard BSP.
    Please guide me by your valuable comment.
    Regards,
    Nilesh

  • Error while creating Salesorder using BAPI

    hello frnds,
    I m new to abap and tryin to make use of BAPI_SALESORDER_CREATEFROMDAT1 to create Sales Order
    I have used the progrtam below.
    *& Report  ZSALESBAPITRIAL
    REPORT  zsalesbapitrial.
    TABLES : vbak , vbap.
    Parameter Screen.
    Sales Document Type.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    Sales document type.
    PARAMETERS: p_auart TYPE vbak-auart OBLIGATORY.
    Sales Organisation.
    PARAMETERS: p_vkorg TYPE vbak-vkorg OBLIGATORY.
    Distribution channel.
    PARAMETERS: p_vtweg TYPE vbak-vtweg OBLIGATORY.
    Division.
    PARAMETERS: p_spart TYPE vbak-spart OBLIGATORY.
    SKIP 1.
    Sold to.
    PARAMETERS: p_sold TYPE vbak-kunnr OBLIGATORY.
    Ship to.
    PARAMETERS: p_ship TYPE vbak-kunnr OBLIGATORY.
    SKIP 1.
    Material(Article No).
    PARAMETERS: p_matnr TYPE vbap-matnr   OBLIGATORY.
    Quantity (Cummulative quantity of sales Order)
    PARAMETERS: p_menge type vbap-kwmeng obligatory.
    Plant(Site )
    parameters: p_plant type vbap-werks obligatory.
    SELECTION-SCREEN END OF BLOCK b1.
    Data declarations.
    DATA: v_vbeln            LIKE vbak-vbeln.
    DATA: header             LIKE bapisdhead1.
    DATA: headerx            LIKE bapisdhead1x.
    DATA: item               LIKE bapisditem  OCCURS 0 WITH HEADER LINE.
    DATA: itemx              LIKE bapisditemx OCCURS 0 WITH HEADER LINE.
    DATA: partner            LIKE bapipartnr  OCCURS 0 WITH HEADER LINE.
    DATA: return             LIKE bapiret2    OCCURS 0 WITH HEADER LINE.
    DATA: lt_schedules_inx   TYPE STANDARD TABLE OF bapischdlx
                             WITH HEADER LINE.
    DATA: lt_schedules_in    TYPE STANDARD TABLE OF bapischdl
                             WITH HEADER LINE.
    Header data
    Sales document type
      header-doc_type = p_auart.
      headerx-doc_type = 'X'.
    Sales organization
      header-sales_org = p_vkorg.
      headerx-sales_org = 'X'.
    Distribution channel
      header-distr_chan  = p_vtweg.
      headerx-distr_chan = 'X'.
    Division
      header-division = p_spart.
      headerx-division = 'X'.
      headerx-updateflag = 'I'.
    Partner data
    Sold to
      partner-partn_role = 'AG'.
      partner-partn_numb = p_sold.
      APPEND partner.
    Ship to
      partner-partn_role = 'WE'.
      partner-partn_numb = p_ship.
      APPEND partner.
    ITEM DATA
      itemx-updateflag = 'I'.
    Line item number.
      item-itm_number = '000010'.
      itemx-itm_number = 'X'.
    Material
      item-material = p_matnr.
      itemx-material = 'X'.
    Plant
      item-plant    = p_plant.
      itemx-plant   = 'X'.
    Quantity
      item-target_qty = p_menge.
      itemx-target_qty = 'X'.
      APPEND item.
      APPEND itemx.
      Fill schedule lines
      lt_schedules_in-itm_number = '000010'.
      lt_schedules_in-sched_line = '0001'.
      lt_schedules_in-req_qty    = p_menge.
      APPEND lt_schedules_in.
      Fill schedule line flags
      lt_schedules_inx-itm_number  = '000010'.
      lt_schedules_inx-sched_line  = '0001'.
      lt_schedules_inx-updateflag  = 'X'.
      lt_schedules_inx-req_qty     = 'X'.
      APPEND lt_schedules_inx.
    CALL FUNCTION 'BAPI_SALESDOCU_CREATEFROMDATA1'
    EXPORTING
    sales_header_in = header
    sales_header_inx = headerx
    IMPORTING
    salesdocument_ex = v_vbeln
    TABLES
    return = return
    sales_items_in = item
    sales_items_inx = itemx
    sales_schedules_in = lt_schedules_in
    sales_schedules_inx = lt_schedules_inx
    sales_partners = partner.
    Check the return table.
    LOOP AT return WHERE type = 'E' OR type = 'A'.
    EXIT.
    ENDLOOP.
    IF sy-subrc = 0.
    WRITE: / 'Error in creating document'.
    ELSE.
    WRITE: / 'Document ', v_vbeln, ' created'.
    ENDIF.
    but its giving 'Error in creating document' I m unable to figure wat i m missing . Is it tht i m gving wrong parameters.
    Please help !!!

    Does tht mean i need to add the following code
    Line item number.
    item-itm_number = '000010'.
    itemx-itm_number = 'X'.
    Material
    item-material = p_matnr.
    itemx-material = 'X'.
    Plant
    item-plant    = p_plant.
    itemx-plant   = 'X'.
    Quantity
    item-target_qty = p_menge.
    itemx-target_qty = 'X'.
    APPEND item.
    APPEND itemx.
    For second item.
    Line item number.
    item-itm_number = '000020'.
    itemx-itm_number = 'X'.
    Material
    item-material = '600020001'.
    itemx-material = 'X'.
    Plant
    item-plant    = p_plant.
    itemx-plant   = 'X'.
    Quantity
    item-target_qty = p_menge.
    itemx-target_qty = 'X'.
    APPEND item.
    APPEND itemx.
      Fill schedule lines
    lt_schedules_in-itm_number = '000010'.
    lt_schedules_in-sched_line = '0001'.
    lt_schedules_in-req_qty    = p_menge.
    APPEND lt_schedules_in.
      Fill schedule lines
    lt_schedules_in-itm_number = '000020'.
    lt_schedules_in-sched_line = '0002'.
    lt_schedules_in-req_qty    = p_menge.
    APPEND lt_schedules_in.
      Fill schedule line flags
    lt_schedules_inx-itm_number  = '000010'.
    lt_schedules_inx-sched_line  = '0001'.
    lt_schedules_inx-updateflag  = 'X'.
    lt_schedules_inx-req_qty     = 'X'.
    APPEND lt_schedules_inx.
      Fill schedule line flags
    lt_schedules_inx-itm_number  = '000020'.
    lt_schedules_inx-sched_line  = '0002'.
    lt_schedules_inx-updateflag  = 'X'.
    lt_schedules_inx-req_qty     = 'X'.
    APPEND lt_schedules_inx.
    But i guess it is overwritting my frst material..
    Also i m gettin a error 
    For object rv_beleg, number  range interval doesnot exist
    Pls suggest

  • Error while creating Resource using GDS

    Hi
    Iam trying to create Resource using GDS and it is throwing me error
    clresource: (C189917) VALIDATE on resource egateq00-haegate_reg-res, resource group egateq00-rg, exited with non-zero exit status.
    clresource: (C720144) Validation of resource egateq00-haegate_reg-res in resource group egateq00-rg on node uhegateq02 failed.
    clresource: (C891200) Failed to create resource "egateq00-haegate_reg-res".
    This is the command I executed
    rclresource create -g egateq00-rg -t SUNW.gds
    -p Scalable=false -p Start_timeout=120 -p Stop_timeout=120 -p Probe_timeout=30
    -p Port_list="23001/tcp" -p Start_command="/egateq00/scripts/reg_START.sh" -p Stop_command="/egateq00/scripts/reg_STOP.sh"
    -p Probe_command="/egateq00/scripts/reg_PROBE.sh" -p Child_mon_level=1 -p Network_resources_used=egateq00-lh-res -p Failover_enabled=FALSE
    -p Stop_signal=15 egateq00-haegate_reg-res
    The log under /var/cluster/logs/DS says following
    07/01/2008 17:56:43 uhegateq02 START-INFO> scha_resource_open failed [14]. Keeping the old Log_level value
    07/01/2008 17:56:43 uhegateq02 START-ERROR> Cannot access the start command </egateq00/scripts/reg_START.sh> : <No such file or directory>
    07/01/2008 18:13:23 uhegateq02 START-INFO> scha_resource_open failed [14]. Keeping the old Log_level value
    07/01/2008 18:13:23 uhegateq02 START-ERROR> Cannot access the start command </egateq00/scripts/reg_START.sh> : <No such file or directory>
    However, I can open these scripts and run it from anywhere. I also tested these scripts and they all work fine. They are all set to chmod 777 , so everyone should have execute permission
    Iam not returning any return value from these Start and Stop script , is that the why it is failing
    thanks

    Hi
    I disabled the PMF as described on the http://blogs.sun.com/TF/entry/disabling_pmf_action_script_with. This is what I did
    1>Added following line in the top of my Start script
    while getopts 'R:G:' opt
    do
    case "${opt}" in
    R) RESOURCE=${OPTARG};;
    G) RESOURCEGROUP=${OPTARG};;
    esac
    done
    sleep 60 &
    /usr/cluster/bin/pmfadm -s ${RESOURCEGROUP},${RESOURCE},0.svc
    2>While creating the resource , I used property for Start_command="/egateq00/scripts/reg_START.sh -R %RS_NAME -G %RG_NAME"
    Now , after doing this , My RG is not getting lost. Also , in the message file I do not see the errors of "Start script failed to stay UP"
    However, My Application is not started either.
    This is what the message file says
    Jul 3 16:43:32 uhegateq01 Cluster.RGM.rgmd: [ID 515159 daemon.notice] method <gds_validate> completed successfully for resource <egateq00-haegat
    e-reg-res>, resource group <egateq00-rg>, node <uhegateq01>, time used: 0% of timeout <300 seconds>
    Jul 3 16:43:32 uhegateq01 Cluster.CCR: [ID 973933 daemon.notice] resource egateq00-haegate-reg-res added.
    Jul 3 16:43:32 uhegateq01 Cluster.RGM.rgmd: [ID 224900 daemon.notice] launching method <gds_svc_start> for resource <egateq00-haegate-reg-res>,
    resource group <egateq00-rg>, node <uhegateq01>, timeout <120> seconds
    Jul 3 16:43:32 uhegateq01 Cluster.RGM.rgmd: [ID 252072 daemon.notice] 50 fe_rpc_command: cmd_type(enum):<1>:cmd=</opt/SUNWscgds/bin/gds_svc_star
    t>:tag=<egateq00-rg.egateq00-haegate-reg-res.0>: Calling security_clnt_connect(..., host=<uhegateq01>, sec_type {0:WEAK, 1:STRONG, 2:DES} =<1>, .
    Jul 3 16:43:35 uhegateq01 Cluster.RGM.rgmd: [ID 515159 daemon.notice] method <gds_svc_start> completed successfully for resource <egateq00-haega
    te-reg-res>, resource group <egateq00-rg>, node <uhegateq01>, time used: 2% of timeout <120 seconds>
    Jul 3 16:43:35 uhegateq01 Cluster.RGM.rgmd: [ID 224900 daemon.notice] launching method <gds_monitor_start> for resource <egateq00-haegate-reg-re
    s>, resource group <egateq00-rg>, node <uhegateq01>, timeout <300> seconds
    Jul 3 16:43:35 uhegateq01 Cluster.RGM.rgmd: [ID 252072 daemon.notice] 50 fe_rpc_command: cmd_type(enum):<1>:cmd=</opt/SUNWscgds/bin/gds_monitor_
    start>:tag=<egateq00-rg.egateq00-haegate-reg-res.7>: Calling security_clnt_connect(..., host=<uhegateq01>, sec_type {0:WEAK, 1:STRONG, 2:DES} =<1
    , ...)Jul 3 16:43:35 uhegateq01 Cluster.RGM.rgmd: [ID 515159 daemon.notice] method <gds_monitor_start> completed successfully for resource <egateq00-h
    aegate-reg-res>, resource group <egateq00-rg>, node <uhegateq01>, time used: 0% of timeout <300 seconds>
    4>Also , in the /var/cluster/logs/DS , I see the Start script started succesfully
    07/03/2008 16:43:32 uhegateq01 START-INFO> Start succeeded. [egateq00/scripts/reg_START.sh -R egateq00-haegate-reg-res -G egateq00-rg]
    5>Also , in the /var/cluster/logs/DS , I see the Probe script returning 0 , but this is wierd because it should return Non zero number. When I run the Probe script from the command line , it is returning me non zero value when the application is down
    07/03/2008 16:43:35 uhegateq01 PROBE-INFO> The GDS monitor (gds_probe) has been started
    07/03/2008 16:44:35 uhegateq01 PROBE-INFO> Probe has been executed with exit code 0 [egateq00/scripts/reg_PROBE.sh]
    07/03/2008 16:44:35 uhegateq01 PROBE-INFO> The probe result is 0
    07/03/2008 16:45:35 uhegateq01 PROBE-INFO> Probe has been executed with exit code 0 [egateq00/scripts/reg_PROBE.sh]
    07/03/2008 16:45:35 uhegateq01 PROBE-INFO> The probe result is 0
    07/03/2008 16:46:35 uhegateq01 PROBE-INFO> Probe has been executed with exit code 0 [egateq00/scripts/reg_PROBE.sh]
    07/03/2008 16:46:35 uhegateq01 PROBE-INFO> The probe result is 0
    07/03/2008 16:47:35 uhegateq01 PROBE-INFO> Probe has been executed with exit code 0 [egateq00/scripts/reg_PROBE.sh]
    07/03/2008 16:47:35 uhegateq01 PROBE-INFO> The probe result is 0
    07/03/2008 16:48:35 uhegateq01 PROBE-INFO> Probe has been executed with exit code 0 [egateq00/scripts/reg_PROBE.sh]
    07/03/2008 16:48:35 uhegateq01 PROBE-INFO> The probe result is 0
    07/03/2008 16:49:35 uhegateq01 PROBE-INFO> Probe has been executed with exit code 0 [egateq00/scripts/reg_PROBE.sh]
    07/03/2008 16:49:35 uhegateq01 PROBE-INFO> The probe result is 0
    07/03/2008 16:50:35 uhegateq01 PROBE-INFO> Probe has been executed with exit code 0 [egateq00/scripts/reg_PROBE.sh]
    07/03/2008 16:50:35 uhegateq01 PROBE-INFO> The probe result is 0
    07/03/2008 16:51:35 uhegateq01 PROBE-INFO> Probe has been executed with exit code 0 [egateq00/scripts/reg_PROBE.sh]
    07/03/2008 16:51:35 uhegateq01 PROBE-INFO> The probe result is 0
    07/03/2008 16:52:35 uhegateq01 PROBE-INFO> Probe has been executed with exit code 0 [egateq00/scripts/reg_PROBE.sh]
    07/03/2008 16:52:35 uhegateq01 PROBE-INFO> The probe result is 0
    07/03/2008 16:53:35 uhegateq01 PROBE-INFO> Probe has been executed with exit code 0 [egateq00/scripts/reg_PROBE.sh]
    07/03/2008 16:53:35 uhegateq01 PROBE-INFO> The probe result is 0
    07/03/2008 16:54:35 uhegateq01 PROBE-INFO> Probe has been executed with exit code 0 [egateq00/scripts/reg_PROBE.sh]
    07/03/2008 16:54:35 uhegateq01 PROBE-INFO> The probe result is 0
    07/03/2008 16:55:35 uhegateq01 PROBE-INFO> Probe has been executed with exit code 0 [egateq00/scripts/reg_PROBE.sh]
    07/03/2008 16:55:35 uhegateq01 PROBE-INFO> The probe result is 0
    07/03/2008 16:56:35 uhegateq01 PROBE-INFO> Probe has been executed with exit code 0 [egateq00/scripts/reg_PROBE.sh]
    07/03/2008 16:56:35 uhegateq01 PROBE-INFO> The probe result is 0

  • Error while creating BOM using BAPI 'BAPI_BOM_UPLOAD_SAVE'

    Hi All,
    We are getting an error as 'Data is incomplete' while trying to create BoM using the bapi 'BAPI_BOM_UPLOAD_SAVE', if the item contains Item category as 'T'. But for other item category like 'L' or 'N', the bapi is sucessfull.
    The values that we pass to fill the item category 'T' are operation, item_cat, bom_itm_no, COMPON_QTY, FIXED_QTY as 'X', UNMEAS as 'ST', ITEM_TEXT1 and ITEM_TEXT2.
    Anyone who has faced same problem or has a solution to the problem, kindly provide a solution.
    Regards,
    Vijay

    The error you receive is because of different config for different Item Categories. Find out from the functional team what fields have they kept mandatory for the item category 'T'. You may not be passing one of those fields in the BAPI.
    Try creating a BOM manually for item category 'T' and you may figure our which field you are missing.

  • Error while creating AW using DBMS_LOB with XML..

    Hi All,
    I am trying to create AW using DBMS_LOB package with XML,
    while creating AW,i am facing the following error.find the code also below :
    declare
    xml_awcreate_clob clob;
    xml_awcreate_st varchar2(4000);
    begin
    DBMS_LOB.CREATETEMPORARY(xml_awcreate_clob,TRUE);
    dbms_lob.open(xml_awcreate_clob, DBMS_LOB.LOB_READWRITE);
    dbms_lob.writeappend(xml_awcreate_clob, 48, '<?xml version = ''1.0'' encoding = ''UTF-8'' ?>');
    dbms_lob.writeappend(xml_awcreate_clob, 43, '');
    dbms_lob.writeappend(xml_awcreate_clob, 63, '<AWXML version = ''1.0'' timestamp = ''Mon Feb 11 13:29:11 2002'' >');
    dbms_lob.writeappend(xml_awcreate_clob, 15, '<AWXML.content>');
    dbms_lob.writeappend(xml_awcreate_clob, 25, ' <Create Id="Action41">');
    dbms_lob.writeappend(xml_awcreate_clob, 19, ' <ActiveObject >');
    dbms_lob.writeappend(xml_awcreate_clob, 163, ' <AW Name="NEW_XML_AW" LongName="NEW_XML_AW" ShortName="NEW_XML_AW" PluralName="NEW_XML_AW" Id="NEW_XML.AW"/>');
    dbms_lob.writeappend(xml_awcreate_clob, 19, ' </ActiveObject>');
    dbms_lob.writeappend(xml_awcreate_clob, 11, ' </Create>');
    dbms_lob.writeappend(xml_awcreate_clob, 16, '</AWXML.content>');
    dbms_lob.writeappend(xml_awcreate_clob, 8, '</AWXML>');
    dbms_lob.close(xml_awcreate_clob);
    xml_awcreate_st := sys.interactionExecute(xml_awcreate_clob);
    end;
    ORA-21560: argument 2 is null, invalid, or out of range
    ORA-06512: at "SYS.DBMS_LOB", line 833
    ORA-06512: at line 12
    Any idea or thought on this would be appreciable.
    Thanks in advance.
    Anwar

    Did you change any of the text in the lob write statements ?
    I believe you get this error if you increase the number of characters without increasing the 1st argument which looks as though it represents the number of characters

  • Error while creating SR using CS_ServiceRequest_PUB.Create_ServiceRequest

    Hi All,
    I am getting below error while creating an SR from the backend using API 'CS_ServiceRequest_PUB'.
    Error:
    API Programming Error (CS_ServiceRequest_PUB.Create_ServiceRequest): An error occurred when validating the descriptive flexfield.
    Additional information:Program error: Please inform your support representative that:
    FLEXFIELDS SERVER-SIDE VALIDATION package reports error:
    validate_desccols() exception: ORA-20005: DVLB.get_default_context() failed. SQLERRM: ORA-01403: no data found
    ORA-06512: at "APPS.FND_FLEX_DESCVAL", line 931
    ORA-01403: no data found
    Error: ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    I have intialised the context as below while running the stand alone procedure in SQL Developer.
    Fnd_Global.apps_initialize (user_id => 1368347,
    resp_id => 21739
    resp_appl_id => 514 );
    We are on 11.5.10.2 and database version is 9i.
    Can you please help??
    TIA,
    S

    Hi Kesava,
    I notice that in the package you used the application user_name=CHUNDUK calls the API pa_project_pub.create_project.
    I wonder if you used chunduk as database user to execute the package Or you used APPS to execute the package?
    The APi document states that it is a requirement to create a db username as the same name with the application username.
    I have been running the problem to execute API 's delete project and try to figure what could be my problem.
    TIA

Maybe you are looking for

  • How to restore the backup which we taken from db13 ?

    Hi ......... I am taking full back up from DB13 to hard disk and tape drive every day. Please tell me how to restore this backup which is taken from db13. 4.7E, MSSQL , Windows 2003 server. Gayatry.

  • Update Photoshop CC 2014 failed Error U44M1I210

    Hello Forum members, does anyone have a solution? It seems to me, that there is a wrong entry in the registry of my Laptop. No one of the suggested Actions of Adobe was successfull. Ideas and Solutions would be very appreciated. Hermann

  • Strange system log error from Photoshop CS4

    Hi. I keep getting this strange system log error from Photoshop CS4. It comes after a wile when using PS CS4. I tried to chance the memory settings and scratch disc to see if that helped. It didn't. I also checked all my ram for anything bad. 16GB in

  • Host for Web Forms

    Can anyone tell me how to provide a "HOST" type function that will run on local client, rather than on the server when using web forms?

  • WAAS 4.1.1c HTTP Accel and MRTG

    Has anyone seen any HTTP issues with MRTG doing HTTP queries to a certain website but going through a WAAS 4.1.1c network with http accel turned on? We are seeing that MRTG is showing worse response on http queries to its monitored websites now that