Running Chain Job in Restricted Session

I have my normal jobs running is Restricted Session
DBMS_SCHEDULER.SET_ATTRIBUTE('job_name', 'ALLOW_RUNS_IN_RESTRICTED_MODE', TRUE);
I did the same for my chain job. The chain job starts but the first step doesn't start until out of restricted session.
I get this if I try to set_attribute on a program
ORA-27469: ALLOW_RUNS_IN_RESTRICTED_MODE is not a valid program attribute
ORA-06512: at "SYS.DBMS_ISCHED", line 4436
ORA-06512: at "SYS.DBMS_SCHEDULER", line 2925
Is there some way to run the steps of a chain in restricted session?
11gR2

Greg Here is an example I created for you. It is very close to what I am doing and I was able to duplicate the problem with it.
-- replace sch_util.send_mail()   with your own PL SQL code.
DECLARE
v_job_name VARCHAR2(32) := 'example_job';
v_chain_name VARCHAR2(32) := 'example_chain';
BEGIN
--drop chain and job
BEGIN
  DBMS_SCHEDULER.DROP_CHAIN(v_chain_name,TRUE);
EXCEPTION WHEN OTHERS THEN
  DBMS_OUTPUT.PUT_LINE('Error DROP_CHAIN ' || v_chain_name);
END;
BEGIN
  DBMS_SCHEDULER.DROP_JOB(v_job_name, TRUE);
EXCEPTION WHEN OTHERS THEN
  DBMS_OUTPUT.PUT_LINE('Error DROP_JOB ' || v_job_name);
END;
--create all the programs for chain
DECLARE
  v_pl_sql VARCHAR2(4000) := 'BEGIN sch_util.send_email(''example chain step 1'', ''Hellow world 1''); END;';
  v_prog_name VARCHAR2(32) := 'example_1_prog';
BEGIN
  --drop program
  BEGIN
   DBMS_SCHEDULER.DROP_PROGRAM(v_prog_name);
  EXCEPTION WHEN OTHERS THEN
   DBMS_OUTPUT.PUT_LINE('Error DROP_PROGRAM ' || v_prog_name);
  END;
  --create program
  DBMS_SCHEDULER.CREATE_PROGRAM (
     program_name           => v_prog_name,
     program_action         => v_pl_sql,
     program_type           => 'PLSQL_BLOCK',  
     enabled                => TRUE,
     number_of_arguments    => 0,
     comments               => 'example chain step 1');
  DBMS_SCHEDULER.SET_ATTRIBUTE (
     name                   => v_prog_name,
     attribute              => 'max_run_duration',
     value                  => interval '240' minute );
END;
DECLARE
  v_pl_sql VARCHAR2(4000) := 'BEGIN sch_util.send_email(''example chain step 2'', ''Hello world 2''); END;';
  v_prog_name VARCHAR2(32) := 'example_2_prog';
BEGIN
  --drop program
  BEGIN
   DBMS_SCHEDULER.DROP_PROGRAM(v_prog_name);
  EXCEPTION WHEN OTHERS THEN
   DBMS_OUTPUT.PUT_LINE('Error DROP_PROGRAM ' || v_prog_name);
  END;
  --create program
  DBMS_SCHEDULER.CREATE_PROGRAM (
     program_name           => v_prog_name,
     program_action         => v_pl_sql,
     program_type           => 'PLSQL_BLOCK',  
     enabled                => TRUE,
     number_of_arguments    => 0,
     comments               => 'example chain step 1');
  DBMS_SCHEDULER.SET_ATTRIBUTE (
     name                   => v_prog_name,
     attribute              => 'max_run_duration',
     value                  => interval '240' minute );
END;
-----------------------------Start Chain Definition -----------------------------------
DBMS_SCHEDULER.CREATE_CHAIN (
     chain_name            =>  v_chain_name,
     comments              =>  'Example chain!');
--- define steps for this chain.
DBMS_SCHEDULER.DEFINE_CHAIN_STEP(v_chain_name, 'example_step1', 'example_1_prog');
DBMS_SCHEDULER.DEFINE_CHAIN_STEP(v_chain_name, 'example_step2', 'example_2_prog');
-- define corresponding rules for the chain.
DBMS_SCHEDULER.DEFINE_CHAIN_RULE(v_chain_name, 'TRUE', 'START example_step1');
DBMS_SCHEDULER.DEFINE_CHAIN_RULE(v_chain_name, 'example_step1 SUCCEEDED', 'START example_step2');
DBMS_SCHEDULER.DEFINE_CHAIN_RULE(v_chain_name, 'example_step2 COMPLETED', 'END');
-- enable the chain
DBMS_SCHEDULER.ENABLE(v_chain_name);
--- create a chain job to start the chain 
DBMS_SCHEDULER.CREATE_JOB (
     job_name        => v_job_name,
     job_type        => 'CHAIN',
     job_action      => v_chain_name,
     start_date    => '6-AUG-2014 9.35.00 AM AMERICA/CHICAGO',
     enabled         => FALSE);
   DBMS_SCHEDULER.SET_ATTRIBUTE(v_job_name , 'max_run_duration' , interval '4' hour);
   DBMS_SCHEDULER.SET_ATTRIBUTE(v_job_name, 'raise_events',DBMS_SCHEDULER.JOB_FAILED);
   DBMS_SCHEDULER.SET_ATTRIBUTE(v_job_name, 'ALLOW_RUNS_IN_RESTRICTED_MODE', TRUE);
   DBMS_SCHEDULER.ENABLE(v_job_name);
END;

Similar Messages

  • How to run a job in 1 session only?

    Hi,
    although I searched the forum and found some proposals close to my issue, I would like to ask just in case to be sure I have correct answer:
    [Q] I have a program (with attached transaction code) which usualy runs as a task in background job, but may be started in foreground also. What I need is to prevent possiblity to start it in two paralel sessions (as per server context, not per frontend).
    Is it possible and what is the proper way to do that?
    Many thanks in advance.
    Regards,
    Ivaylo Mutafchiev

    Yes, I believe that this is achieved by placing a lock on the program name during execution. Here is a sample.
    report zrich_0001 .
    call function 'ENQUEUE_E_TRDIR'
    exporting
    *   MODE_TRDIR           = 'X'
       name                 = sy-repid
    *   X_NAME               = ' '
    *   _SCOPE               = '2'
    *   _WAIT                = ' '
    *   _COLLECT             = ' '
    * EXCEPTIONS
    *   FOREIGN_LOCK         = 1
    *   SYSTEM_FAILURE       = 2
    *   OTHERS               = 3
    if sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    check sy-subrc = 0.
    Regards,
    Rich Heilman

  • Running Job Scheduler in Restricted Session

    I want the database to be in Restricted Session while my ETL load is running via the Job Scheduler so that users will not be able to access tables during the load. When I put it in restricted session however all scheduled jobs cease to run. What user needs Restricted Session privilege? Is it DBSNMP? Is this an acceptable practice?
    Thanks,
    Susan

    Hi Susan,
    Sorry for the delay in replying, I was testing this out and talking with another developer. It turns out that you are right.
    The Scheduler will not begin running any new jobs or new job chain steps while the database is in restricted mode.
    This is intended behaviour and there is no workaround for this. The job coordinator will simply not start any new jobs if it sees that the database is in restricted mode.
    This design choice was made a long time ago and isn't currently planned to be changed (although there have been some questions about it so it may in future).
    Unfortunately you will need to find another way around this.
    -Ravi

  • Funds Commitment Batch-Input running in Job

    Hi Folks,
    I'm having some trouble with a batch-input running in job for transaction FMZ1.
    When I run the batch-input in a dialog process (no job) it works perfectly, however when I execute this same program in a Job the job doesn't finishes, and when I debug the job, it freezes when calling transaction FMZ1.
    Does anyone know if I'm missing something? Or is there any restriction for this transaction to be executed in a job?
    Thanks in advance.
    Regards,
    Gilberto Li

    Hi Vijay,
    Using the following function modules you can create a batch input session.
    BDC_OPEN_GROUP
    BDC_INSERT
    BDC_CLOSE_GROUP
    Example - http://www.sap-img.com/abap/auto-disallowed-back-posting-to-previous-period.htm
    You can use the program RSBDCSUB to schedule batch input sessions in background.
    http://www.sap-img.com/abap/learning-bdc-programming.htm - How to write BDC program
    Executing batch-input sessions in background jobs - Example for how to call the bdc session.
    Hope these are helpful.
    Thanks
    Vinod

  • Executing alter system enable restricted session on RAC nodes

    alter system enable restricted session command enables restricted mode only on the node on which it runs. I need that all nodes entering this node after executing this statement.
    Please help.

    Something like this using ssh and ksh:
    export db_name=<your database name as appears in crs_stat>
    srvctl status database -d ${db_name} | while read a inst b c d e node
    do
    ssh -f $node "print $inst | . oraenv; print 'alter system enable restricted session;' | sqlplus / as sysdba"
    done
    or you using dbms_job (old but easer to tie to instance than dbms_scheduler):
    declare
    job binary_integer;
    begin
    for i in (select inst_id from gv$instance)
    loop
    dbms_job.submit (
    job=>job,
    what=> 'begin execute immediate ''alter system enable restricted session''; end;',
    instance=>i.inst_id
    commit;
    end loop;
    end;
    /

  • How to shedule an abap report to run paralely in more background session

    I wander how to shedule an abap report to run paralely in more background session.
    I am afraid of parallel locking.

    Hi,
    You can schedule different jobs with same program name.
    Use ENQUEUE_ & DEQUEUE_ to lock/unlock the records being process. The lock objects can be created in SE11.
    Best regards,
    Prashant

  • Use_current_session = FALSE does not run my job correctly

    We have a custom scheduler that invokes jobs based on schedules/conditions. Until now, the jobs were all kicked off in the same session. Since the record set to be processed is increasing, we want the jobs submitted in parallel.
    So the main job is split into several discrete jobs & run them in different sessions (dbms_scheduler.run_job with use_current_session = FALSE). The programs & jobs get created successfully.
    The program has around 12 arguments defined.
    The jobs run; however error out with "ORA-06502: PL/SQL: numeric or value error ORA-06502: PL/SQL: numeric or value error: character to number conversion error" *(DBA_SCHEDULER_JOB_RUN_DETAILS)*
    If I run the jobs with this parameter = TRUE the jobs run successfully. Any pointers greatly appreciated.
    Here are additional details..
    DB: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    dba_scheduler_global_attribute
    MAX_JOB_SLAVE_PROCESSES
    LOG_HISTORY 30
    DEFAULT_TIMEZONE US/Pacific
    LAST_OBSERVED_EVENT
    EVENT_EXPIRY_TIME
    CURRENT_OPEN_WINDOW WEEKEND_WINDOW
    v$parameter where name like '%process%'
    processes 150
    gcs_server_processes 0
    db_writer_processes 1
    log_archive_max_processes 2
    job_queue_processes 20
    aq_tm_processes 0
    Thanks
    Kiran.

    Hi,
    This error seems clear,
    character to number conversion error : at "XXA.XXX_ANP_ENGINE_MASTER_PKG", line 24
    This is application code which the scheduler did run but the application code is throwing the error.
    You will have to debug the issue occurring at line 24 of package "XXA.XXX_ANP_ENGINE_MASTER_PKG". You may be relying on something in your session which is not available in a background session - so the job fails when run in the background.
    Hope this helps,
    Ravi.

  • Restricted session privilege in 9i and 10g

    We recently upgraded from 9.2.0.7 to 10.2.0.3. Oracle 9i allowed a user with RESTRICTED SESSION priv to connect (sqlplus user /@db) when the database was in restricted mode as it should. However, our Oracle 10g database will not allow a user with RESTRICTED SESSION privilege to log in after 'alter system enable restricted session' is executed. The DBA role does not work nor does granting the system privs CREATE SESSION and RESTRICTED SESSION directly to the user. The error I get when trying to log on is ORA-12526. Any advice on how to remedy this would be much appreciated.
    what is the alternative to achieve the same in 10g other than locally?
    Thanks,
    Vishal

    From 10g doc (Oracle® Database Administrator's Guide):
    Typically, all users with the CREATE SESSION system privilege can connect to an open database. Opening a database in restricted mode allows database access only to users with both the CREATE SESSION and RESTRICTED SESSION system privilege. Only database administrators should have the RESTRICTED SESSION system privilege. Further, when the instance is in restricted mode, a database administrator cannot access the instance remotely through an Oracle Net listener, but can only access the instance locally from the machine that the instance is running on.

  • DMU 2.0 Disable Restricted session

    I've just run a conversion from win-1252 to al32utf8 and we noticed that restricted session was not disabled after the conversion had finished. Is this is known bug? I shut the GUI down before I noticed, but there is nothing in the dmu0.log to show that this was attempted.
    On dmu1.1 and 1.2 This was never an issue - the conversion would finish disable restricted session: e.g.
    18.14:22:28:764;V003;T;05000 SQL text is UPDATE SYSTEM.DUM$COLUMNS DC SET DC.DCCS_ID = 0 WHERE DC.DCCS_ID > 0;
    18.14:22:28:764;V002;T;05000 SQL text is ALTER SYSTEM DISABLE RESTRICTED SESSION;
    18.14:22:28:811;V003;T;05000 SQL text is UPDATE system.dum$sqltext SET time_end=SYS_EXTRACT_UTC(systimestamp), sqlcode=0 WHERE step# = 560 AND obj#= 0 AND order# = 563;
    18.14:22:29:061;V002;T;05000 SQL text is UPDATE system.dum$sqltext SET time_end=SYS_EXTRACT_UTC(systimestamp), sqlcode=0 WHERE step# = 560 AND obj#= 0 AND order# = 564;
    18.14:22:29:452;V001;T;05000 SQL text is UPDATE system.dum$sqltext SET time_end=SYS_EXTRACT_UTC(systimestamp), sqlcode=0 WHERE step# = 560 AND obj#= 284929 AND order# = 562;
    18.14:22:29:483;V000;F;45010 Thread 2, connection 2 finished converting post-conversion POST_CONVERSION, and elapsed time is 00:00:00.406.
    18.14:22:29:483;V000;C;05007 About to close connection to jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=x)(PORT=1521))(CONNECT_DATA=(UR=A)(SERVICE_NAME=xxx))).
    18.14:22:29:483;V000;T;05000 SQL text is SELECT USERENV('SID') FROM DUAL;
    18.14:22:29:499;V000;T;05000 SQL text is SELECT s.SERIAL# from v$session s where s.sid = (SELECT USERENV('SID') FROM DUAL);
    18.14:22:29:499;V000;C;05006 Connection ID is 2, session ID is 2840, serial number is 439.
    18.14:22:29:514;V000;C;00001 Disconnected successfully from jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=x)(PORT=1521))(CONNECT_DATA=(UR=A)(SERVICE_NAME=xxx))).
    18.14:22:29:514;V000;F;45010 Thread 3, connection 3 finished converting post-conversion POST_CONVERSION, and elapsed time is 00:00:00.156.
    18.14:22:29:514;V000;C;05007 About to close connection to jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=x)(PORT=1521))(CONNECT_DATA=(UR=A)(SERVICE_NAME=xxx))).
    18.14:22:29:514;V000;T;05000 SQL text is SELECT USERENV('SID') FROM DUAL;
    18.14:22:29:514;V000;T;05000 SQL text is SELECT s.SERIAL# from v$session s where s.sid = (SELECT USERENV('SID') FROM DUAL);
    18.14:22:29:530;V000;C;05006 Connection ID is 3, session ID is 3, serial number is 13.
    18.14:22:29:546;V000;C;00001 Disconnected successfully from jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=xxx)(PORT=1521))(CONNECT_DATA=(UR=A)(xxx))).
    18.14:22:29:546;V000;F;45010 Thread 1, connection 1 finished converting post-conversion POST_CONVERSION, and elapsed time is 00:00:00.781.
    18.14:22:29:546;V000;C;05007 About to close connection to jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=x)(PORT=1521))(CONNECT_DATA=(UR=A)(SERVICE_NAME=xxx))).
    18.14:22:29:546;V000;T;05000 SQL text is SELECT USERENV('SID') FROM DUAL;
    18.14:22:29:546;V000;T;05000 SQL text is SELECT s.SERIAL# from v$session s where s.sid = (SELECT USERENV('SID') FROM DUAL);
    18.14:22:29:561;V000;C;05006 Connection ID is 1, session ID is 2363, serial number is 157.
    18.14:22:29:561;V000;C;00001 Disconnected successfully from jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=x)(PORT=1521))(CONNECT_DATA=(UR=A)(SERVICE_NAME=xxx))).
    18.14:22:29:561;V000;I;40005 Execute Post-Conversion Tasks elapsed 00:00:47.843.
    But in my 2.0 migration I had this:
    23.16:39:08:919;V001;T;05000 SQL text is UPDATE SYSTEM.DUM$COLUMNS DC SET DC.DCCS_ID = 0 WHERE DC.DCCS_ID > 0;
    23.16:39:08:934;V001;T;05000 SQL text is UPDATE system.dum$sqltext SET time_end=SYS_EXTRACT_UTC(systimestamp), sqlcode=0 WHERE step# = 560 AND obj#= 0 AND order# = 1;
    23.16:39:08:950;V000;F;45010 Thread 1, connection 1 finished converting post-conversion OBJECT_REBUILD, and elapsed time is 00:00:00.250.
    23.16:39:08:950;V000;C;05007 About to close connection to jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=x)(PORT=1521))(CONNECT_DATA=(UR=A)(SERVICE_NAME=xxx))).
    23.16:39:08:950;V000;T;05000 SQL text is SELECT USERENV('SID') FROM DUAL;
    23.16:39:08:966;V000;T;05000 SQL text is SELECT s.SERIAL# from v$session s where s.sid = (SELECT USERENV('SID') FROM DUAL);
    23.16:39:08:966;V000;C;05006 Connection ID is 1, session ID is 682, serial number is 31.
    23.16:39:08:981;V000;C;00001 Disconnected successfully from jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=x)(PORT=1521))(CONNECT_DATA=(UR=A)(SERVICE_NAME=xxx))).
    23.16:39:08:981;V000;I;40005 Execute Post-Conversion Tasks elapsed 00:13:01.292.
    This migrations are on two different databases at different time, but both are on the same Oracle version
    > select * from v$version;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    PL/SQL Release 11.2.0.3.0 - Production
    CORE    11.2.0.3.0      Production
    TNS for 64-bit Windows: Version 11.2.0.3.0 - Production
    NLSRTL Version 11.2.0.3.0 - Production
    My Log File Message Level is FINEST
    Please let me know it there is any more useful diagnostic information in the log files that I can post.
    Thanks,
    Ben

    To add to Weiran's answer: We have removed disabling the restricted session so that nobody except SYSDBA can connect to the database before it is restarted. The instance restart automatically disables the restricted session (unless you explicitly open the database in restricted session mode).
    We request the instance to be restarted as precaution because it is very difficult to guarantee in such a complex system as Oracle Database that the old (stale) database character set information is not cached somewhere in SGA by some existing or future component.
    Note, the instance restart in Oracle Database 12c is required for non-CDB databases only. PDB databases need to be closed and reopened. The CDB instance itself does not have to be restarted.
    The documentation may not talk about it yet. We will fix it.
    Thanks,
    Sergiusz
    Message was edited by: Sergiusz Wolicki (Oracle)

  • RSPC_LOG_DELETE unscheduled Process Chain Jobs????!!!

    Hi, I executed RSPC_LOG_DELETE for the 1st time in my DEV and QA Systems and it looks like it somehow unscheduled my Process Chain Jobs!  Has anyone else experienced this or know why this would have happened?  
    It is a good thing I did not run this in my production system thinking it was an innocent program that would just clean up my logs.
    We executed it manually and used a date to leave the most current 3 months of logs.
    Thanks for any helps!

    Hi,
    When you run the program, RSPC_LOG_DELETE, it deactivates teh steps in the process chain. if it is deactivatiing the start variant of the PC, tehn it means , the PC will be descheduled.
    So, whenever you run this innocent program, it will happen, and you have to actioate and schedule your process chains
    Hope this helps
    Shilpa

  • Restricted session & Kill Session

    Hello everybody,
    1) In which case do I need enabled restricted sessions?
    2)Where “ALTER SYSTEM KILL SESSION” command will be useful?
    Thanks in advance

    Salman Qureshi wrote:
    Hi,
    1) In which case do I need enabled restricted sessions?Whenever you want to perform some maintenance operations in your database and you don't want anyone to access the database except user SYS, you can enable restricted session.
    2)Where “ALTER SYSTEM KILL SESSION” command will be useful?When you want to kill a session which is no longer responding or hung or doing some long running operation which is disturbing your performance or you want to stop that processing etc.
    SalmanHi Salman,
    I think you'll find that "restricted session mode" does not limit login ability to only the SYS user as you mention.
    As an example, consider the following.
    Session 1:
    SQL*Plus: Release 11.2.0.3.0 Production on Tue Jan 1 22:07:03 2013
    Copyright (c) 1982, 2011, Oracle.  All rights reserved.
    SQL> connect / as sysdba
    Connected.
    SQL> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup restrict;
    ORACLE instance started.
    Total System Global Area 2137886720 bytes
    Fixed Size                  2256912 bytes
    Variable Size            1258295280 bytes
    Database Buffers          872415232 bytes
    Redo Buffers                4919296 bytes
    Database mounted.
    Database opened.
    SQL>Session 2:
    SQL*Plus: Release 11.2.0.3.0 Production on Tue Jan 1 22:07:51 2013
    Copyright (c) 1982, 2011, Oracle.  All rights reserved.
    SQL> connect markwill
    Enter password:
    Connected.
    SQL> select logins from v$instance;
    LOGINS
    RESTRICTED
    1 row selected.
    SQL>As you can see in Session 2 I am clearly not connecting as SYS user, yet I am capable of connecting to an instance started in restricted mode.
    Rather than limiting to only user SYS it limits login ability to users with the RESTRICTED SESSION System Privilege (granted directly or via role).
    Regards,
    Mark

  • Is ds designer able to run a job against a remote job server?

    I looked around for a quite while and couldn't find anywhere it's mentioned that the ds designer can run a job against a job server running on another machine. To me it seems that the designer and DS Server Manager can only pick up local job servers. There is no way for they to specify the hostname of the remote machine having the job server running.
    Could anybody here help me out with this problem? Our environment has restriction that developers have no local admin privilege so they can't start a local job server as a Windows service. The only solution for us is to use the remote job server running on the dedicated server. BTW, we don't use Unix/Linux at all.
    thanks in advance.

    yes, Designer can run job on job server that is installed on different machine, the job server machine can be Linux\Unix or Windows
    for the remote job server to be visible in Desginer, you will have Register the local repository with the Remote job server
    to Register a Local Repository with a Remote job Server, go to remote job server machine
    open the Server Manager
    In the server Manager, go to the job server window, select the job server click on edit in this window you can associate as many local repository as you want with this job server
    restart the Desginer, login to the local repo that you have added to job server
    click on Tools->Options
    expand Designer node, click on Environment
    in the Default job Server drop down list you will see the remote job server
    please refer the technical maual for Adding Job server using Server Manager and also how to add repository to job server

  • Removing the "target server" from process chain jobs

    Dear SAP Community,
    Please note we are on BW version 3.5
    We have a very large number of process chains that are used to load data in the production environment. Many of those process chains have a "target server" specified, so that the jobs will run only on the central instance.
    A new application server has just been added to the environment, and we want to remove the "target server" definition so that the dispatcher will be free to load balance the process chain jobs.
    We can see the attributes for each process chain are stored in a table called RSPCCHAINATTR.
    Please let me know: can we update the value of field SERVER in table RSPCCHAINATTR, to set it to blank using SQL-PLUS ?
    And then can we run a /$sync to bring these changes up into the application layer ?
    This would save tons of time & manual effort, and it would set the target server to blank for all of the process chains at once, instead of clicking manually so many times to clear the value for each process chain.
    Please let me know if we can take this approach ? Is there any chance of the process chains becoming inactive by doing this ?
    We want to set the "target server" = blank in all cases, instead of manually clicking into each and every process chain.
    Please let me know, thanks.
    Keith Helfrich
    Edited by: Keith Helfrich on Aug 17, 2010 11:45 AM

    Check tcode RSBATCH, If I'm not wrong all process types are assigned to central server. Remove that server name and save.
    Now, If u execute process chain, system will prompt you assign server/host name. To skip this follow the below.
    Again use RSBATCH, under 'Background and Parallel Processes' tab, click 'Switch Off F4 Popup for Server/Host/Group', enter * (star) under Users for 'Users for Whom NO Server/Host/Group Popup Should be Processed'.
    Now, If u execute process chain, it should run on either of servers.
    Since u added Appln Server, best bet would be creating a server group. See the below link.
    How to run Process Chain jobs WITHOUT a target server

  • Job id to session id

    RW_SERVER_QUEUE has job id as a column. How would I go about determining the database session that's running that job?

    ? to use
    CREATE OR REPLACE PROCEDURE ASIDENTL(
    P_NAME VARCHAR2 ,
    P_ACTION VARCHAR2 )
    IS
    -- @(#) klema 99/06/22 init
    /* Hint
    /rdbms/rdbms/admin/dbmsutil.sql
    REQUIRED
    as sys
    grant select on sys.v_$session to public;
    kot <user>
    begin
    sys.dbms_application_info.set_module( P_NAME, P_ACTION);
    end asidentl;
    create or replace
    function asisrunl(
    P_NAME in varchar2
    , P_ACTION in varchar2 := null
    ) return number is
    -- @(#) 14/09/99 KlemA add opti P_ACTION
    -- @(#) 7/28/99 KlemA
    lErr number;
    begin
    select count(*) into lErr
    from sys.v_$session
    where module = P_NAME
    and AUDSID <> userenv('SESSIONID')
    and nvl( action, '!2') = nvl( P_ACTION, nvl( action, '!2'))
    return( lErr);
    exception when no_data_found then
    return( 0);
    end asisrunl;
    show err
    in pl/sql -code or C/OCI/PRO-C
    example:
    proc a()
    is
    asidentl( 'RunProc', to_char( P_ID));
    end;
    chk whith
    select module, action from sys.v_$session;
    null

  • Application team runs a job which never completes.

    Hi,
    Application team runs a job which never completes in pkterp database (which is beta database). This program runs 24 hours but it never completes. The same job runs fine in INT, QA, PRE-PROD,prod database and completes in 90 minutes. Please let me know what are the parameters to check. I compared some parameters open_cursors, parallel_ they are same with pre-prod. The process has subprocesses which are parallel processes and i saw the wait events in TOAD they are
    PX Deq: Execution Msg, PX Deq Credit: send blkd. These 2 wait events are there repeated multiple times for the subprocesses. These wait events are there for most of the time in waiting status. Please let me know what else to check & implement to solve the issue.
    Thanks
    Edited by: user01 on Apr 20, 2012 10:21 PM

    Please let me know what are the parameters to check. RUN_JOB_SPEED=(FAST,GLOBAL,FOREVER)
    :) joke
    I compared some parameters open_cursors, parallel_ they are same with pre-prod. Please let me know what else to check.1. Check if stats in pkterp are fresh. Or re-gather.
    2. You better start statspack couple of times when job runs (or AWR if you have a license on it) and get reports from where you can figure out SQLs that are slow, and other things that may slow them down. Then tune those SQLs or environment to meke them run fast.
    4. You also may set trace on the job session, then tkprof it.
    3. You or developer may execute job's code in manual mode, peace by peace and look what slows down. Then tune slow parts.

Maybe you are looking for

  • Execution error in Marketing planning

    Hi all I am getting following error "CL_CRM_MKTPL_APPLICATION====CP" while creating a new market plan. It an is execution error. PLz help me out Regards Quantuscumque Edited by: quantuscumque on Aug 16, 2010 9:58 AM

  • Certain apps will not install on my iPod touch 1G due to software version

    I bought an iPod Touch 1G off a friend recently. When I got it off him, it had several versions of Angry Birds which all functioned perfectly. Since having to erase all the data and the apps on the device in order to sync it to my computer, I don't s

  • Installing FCP6 on new MBP

    I have just purchased a new MBP duo 2008 and want to install my copy of FCP Studio 2 on it. My previous laptop was a PowerBook G4. I upgraded from FCP5 about a year ago and removed the sticker with the FCP 5 serial #. Now, when I try to install FCP S

  • Function Module performance in Crystal Reports - Best practices

    Hi all, We are following a function module based approach for our crystal reporting needs. We tried to follow an infoset approach, but found that most of the critical fields required for reports were retrieved from function modules and bapis. Our rep

  • System shows wrong product version in smsy and SMD Setup Wizard

    Hi We have a SOLMAN EHP1 SPS22 running. The Satellite systems are correctly registered in SLD, also the  SOLMAN Fetchjobs is running successfully. I wanted to run the SMD Setup for  a NetWeaver  ABAP  system, when I click in the Setup Wizard on the S