Scheduling a work book through concurrent manager

how to run discoverer workbook through concurrent mnager......please help me..
thank you in advance

HI every one I am naresh
I have the following code to exort discoverer using command line
Dim tkgoDB,msConnect,moRS,msRequest
Set tkgoDB =CreateObject("ADODB.Connection")
Set moRS=Createobject("ADODB.Recordset")
Set tkgoFileSystem=CreateObject("Scripting.FileSystemObject")
set tkgoShell=CreateObject("Wscript.shell")
'msConnect = "UID=APPS;PWD=APPS;CONNECTSTRING=DEV01";
tkgoDB.Open "Driver={Microsoft ODBC for Oracle};UID=APPS;PWD=APPS;SERVER=DEV01"
Set moRS=tkgoDB.execute("SELECT apps.aa_scheduled_pkg.start_job REQUEST_ID FROM dual")
'Do while moRS.EOF
moRS.MoveFirst
msRequest = moRS.Fields(0).value
Wscript.Echo msRequest
If msRequest = "0" Then
'Exit Do
End If
Set moRS=tkgoDB.execute("SELECT cmd EXPORT_CMD FROM apps.aa_export_cmd_v WHERE request_id = " & msRequest)
moRS.MoveFirst
msExpCmd = moRS("EXPORT_CMD")
msCmdFile = "r" & msRequest & ".cmd"
Set moOutputStream = tkgoFileSystem.CreateTextFile(msCmdFile, True)
moOutputStream.Write Replace(Replace(msCmd, "$SAMBA$", gsOutDir),"$TNS$", gsInstance) & vbCRLF
moOutputStream.Close
msCommand = gsBinDir & gsDiscoExe & " /EUL " & gsEUL & " /CMDFILE " & msCmdFile
Call tkgoShell.Run(msCommand,1,true)
Wscript.Echo msExpCmd
'loop
But it is giving error like
UNBLAE TO WAIT FOR THE PROCESS.
If the i changed the parameter in tkgoShell.Run 'true' to 'false' it is not giving error
But both times i am geting batch file.
but when i click the batch file it is not opening Discoverer Workbook
My command line is
CONNECT anaresh:"system administrator"/anaresh@dev01/OPENDB "AA_EMP_workbook" /SHEET "aa_emp_sheet" /EXPORT html "$SAMBA$\o2815027.out" /LOGFILE l2815027.log /BATCH
Please tell me where i did wrong
Please Help me
Thank you in advance

Similar Messages

  • Running report in concurrent manager using unix shell script to create PDF

    Hi,
    I need help urgently, we are in the process of migrating from 10.7 to 11i. My problem is we have a report created in 10.7 that is ran through concurrent manager using shell scripts(host) and the output is stored as .pdf, in 10.7, it works perfectly. Now I am also doing it in 11i but it gives some error. The shell script from 10.7 is: r25runm module=$XXX_TOP/srw/test.rdf \
    userid=$1 batch=yes \
    desformat=pdf destype=file \
    desname=$XXX_TOP/outbound/test.pdf
    I change the shell script in 11i as follows:
    ar60runb report=$XXX_TOP/reports/US/test.rdf \
    userid=$1 batch=yes \
    desformat=pdf destype=file \
    desname=$XXX_TOP/outbound/test.pdf
    I checked your metalink, and I am confused which is the right executable I should use, is it ar60runb or ar60run or rwrun60b or rwrun60c or rwrun60b, which is which? how many parameters do I have to include?, some documents are saying I have to use the 4 parameters-orauser/pwd, userid,username, request_id, others one.Which parameter/s go/es with what executable. We are using HP-UX server 64 bit. In 11i, when I run in concurrent manager it gives me an error:The executable file /chdev/fd11/u00/fd11appl/xxx/1.0/bin/test for this concurrent program cannot be executed.
    Contact your system administrator or support representative. Verify that the execution path to the executable file is co.
    I have checked Metalink and follow the directions, created a link fndcpesr, check and set the permissions, etc. Play around with the executables ar60runb or rwrun60 etc., the parameters. The ar60* or rwrun60* executable permissions are -rwxr-xr-x and $XXX_TOP/fnd/../fndcpesr is -rwxr-xr-x. Also, why is ar60* executables located in $FND_TOP/bin, whereas rwrun60* executables are in $ORACLE_HOME/bin? Please help, I need an answer urgently ,I have to complete this task before Tuesday 9/16/2003 for our migration deadline. Thank you very much.

    I have already fixed the problem, TY anyway

  • R12 on Windows XP - Concurrent Manager Service

    I installed R12 on WIndows XP.
    It is working fine, but concurrent Manager Service is not getting created.
    I tried with Auto Config...and also running directly ccmsvc.exe...
    It always errors out displaying a window which reads Oracle Applications Concurrent Manager service encountered an error and needs to close. We are sorry for inconvenience.+
    I looked at the Application log in Event viewer. It says Application: ccmsvc.exe and faulting module ntdll.dll.
    Does any body know how to fix the faulting module ntdll.dll error....?
    THanks in Advance
    Ambati

    Sorry for the delay...I was sick all these days....
    I did restart the machine.....
    THis is the error report in event viewer...and the version of ntdll.dll appears to be 5.1.2600.5512
    Faulting application ccmsvc.exe, version 0.0.0.0, faulting module ntdll.dll, version 5.1.2600.5512, fault address 0x000249ab.+
    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.+
    I have Windows XP Service Pack 3 installed on my machine.

  • 11.5.10.2 Windows XP installation - Concurrent Manager not working

    I have completed the 11.5.10.2 installation on windows XP without any issues. However, concurrent manager even though it starts but when I submit any request, "no active manager" displays in the requests window.
    I tried if anyone had issues in this forum and found that I need to run autoconfig but that has not helped.
    The following steps are being already tried but with no luck:
    1. Stopped all application tier services (apache, fulfillment, forms etc)
    2. Ran \oracle\viscomn\admin\scripts\<VIS_Server>\adautocfg.cmd - it completed successfully
    3. One of the threads in this forum said "OracleVISOra806_2TNSListener80APPS_VIS" must be running in order for CM to work - it was not running and attempted to start but could not.
    Here is the log file info for "OracleVISOra806_2TNSListener80APPS_VIS" service:
    System parameter file is E:\oracle\visdb\9.2.0\network\admin\<VIS_Server>\listener.ora
    Log messages written to E:\oracle\visora\8.0.6\NET80\log\apps_vis.log
    TNS-01151: Missing listener name, APPS_VIS, in LISTENER.ORA
    Thanks in advance..

    As I ran autoconfig, it has set the service to start automatically...this is the service name I'm referring to: OracleVISOra806_2TNSListener80APPS_VIS
    8.0.6 listner.ora
    APPS_VIS =
    (ADDRESS_LIST =
    (ADDRESS= (PROTOCOL= TCP)(Host= pravdhir)(Port= 1626))
    SID_LIST_APPS_VIS =
    (SID_LIST =
    ( SID_DESC = ( SID_NAME = FNDSM )
    ( ORACLE_HOME = E:\oracle\visora\8.0.6 )
    ( PROGRAM = E:\oracle\visappl\fnd\11.5.0\bin\fndsm.exe )
    ( ARGV0 = FNDSM_VIS_pravdhir )
    ( envs='MYAPPSORA=E:\oracle\visappl\APPSVIS_pravdhir.cmd,FNDSM_SCRIPT=E:\oracle\viscomn\admin\scripts\VIS_pravdhir\gsmstart.cmd' )
    ( SID_DESC = ( SID_NAME = FNDFS )
    ( ORACLE_HOME = E:\oracle\visora\8.0.6 )
    ( PROGRAM = E:\oracle\visappl\fnd\11.5.0\bin\fndfs.exe )
    ( ARGV0 = VIS_pravdhir )
    ( envs='EPC_DISABLED=TRUE,NLS_LANG=American_America.UTF8,APPLFSTT=VIS_BALANCE;VIS;VIS_806_BALANCE;VIS_FO,APPLFSWD=E:\oracle\visappl\admin;E:\oracle\viscomn\temp;E:\oracle\viscomn\html\oam\nonUix\launchMode\restricted')
    STARTUP_WAIT_TIME_APPS_VIS = 0
    CONNECT_TIMEOUT_APPS_VIS = 10
    TRACE_LEVEL_APPS_VIS = OFF
    LOG_DIRECTORY_APPS_VIS = E:\oracle\visora\8.0.6\net80\admin
    LOG_FILE_APPS_VIS = APPS_VIS
    TRACE_DIRECTORY_APPS_VIS = E:\oracle\visora\8.0.6\net80\admin
    TRACE_FILE_APPS_VIS = APPS_VIS
    IFILE = E:\oracle\visora\8.0.6\network\admin\VIS_pravdhir\VIS_pravdhir_listener_ifile.ora
    9.2.0 Listner.ora
    VIS =
    (ADDRESS_LIST =
    (ADDRESS= (PROTOCOL= IPC)(KEY= EXTPROCVIS))
    (ADDRESS= (PROTOCOL= TCP)(Host= pravdhir.dp.com )(Port= 1521))
    SID_LIST_VIS =
    (SID_LIST =
    (SID_DESC =
    (ORACLE_HOME= E:\oracle\visdb\9.2.0)
    (SID_NAME = VIS)
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = E:\oracle\visdb\9.2.0)
    (PROGRAM = extproc)
    STARTUP_WAIT_TIME_VIS = 0
    CONNECT_TIMEOUT_VIS = 10
    TRACE_LEVEL_VIS = OFF
    LOG_DIRECTORY_VIS = E:\oracle\visdb\9.2.0/network/admin
    LOG_FILE_VIS = VIS
    TRACE_DIRECTORY_VIS = E:\oracle\visdb\9.2.0/network/admin
    TRACE_FILE_VIS = VIS
    ADMIN_RESTRICTIONS_VIS = OFF
    IFILE=E:\oracle\visdb\9.2.0\network\admin\VIS_pravdhir\listener_ifile.ora
    As the system parameter is set to 9.2.0 directory and it is trying to find APPS_VIS entry which is not found in 9.2.0 Listner.ora file and hence erroring out.
    I tried the following:
    1. I copied the contents from 8.0.6 listner.ora file and added into 9.2.0 listner.ora file.
    2. Rebooted
    3. OracleVISOra806_2TNSListener80APPS_VIS > service started successfully
    4. Started 9.2.0 listner service (OracleVIS_db920_RDBMSTNSListenerVIS) and Oracle Service manually
    5. I ran autoconfig
    6. I started all the application services manually
    It worked but I don;t know where else the application will fail. So far so good. But is this the right procedure?
    one more question? Do I need to run autoconfig after every reboot?

  • Concurrent manager not working

    Hi all
    I have just been assigned to work on an environment that was just installed by someone else .
    The problem is that when I submit a new request to the concurrent manager it stops in the phase "inactive" and the message in the status is " No manager"
    I restarted the services using the adstpall/adstrtal scripts and the problem is still not fixed . I also tried to restart the service 'concmgrvis_hostname' and it still not working . Is there any way I can fix the problem other than a fresh install. Keep in mined I do not know what the person who installed it did ,or if he knows what he is doing
    Thanks in advance

    Please review the CM log file, make sure that no error/warning messages are reported. I would suggest you run cmclean.sql and check then.
    Note: 134007.1 - CMCLEAN.SQL - Non Destructive Script to Clean Concurrent Manager Tables
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=134007.1

  • Concurrent manager not working on multi tier apps r12.1

    Hi All,
    I've created clone environment from our production environment, following details of the environment:
    DB: 11.1.0.7 - 2 nodes RAC
    APPS: 11.1.3 - 2 nodes
    OS: LINUX 64bit
    hosnames: terbdb1, terbdb2
    my problem is any request immediately appear as inactive nomanager.
    here's cm log file of both nodes:
    TERBDB1:
    ========================================================================
    Starting TEST_0620@TEST Internal Concurrent Manager -- shell process ID 22842
              logfile=/app1/TEST/inst/apps/TEST_terbdb1/logs/appl/conc/log/TEST_0620.mgr
              PRINTER=noprint
               mailto=applmgr
              restart=N
                 diag=N
                sleep=30
                 pmon=4
               quesiz=1
              Reviver is ENABLED
    Routine &ROUTINE has attempted to start the internal concurrent manager.  The ICM is already running.  Contact you system administrator for further assistance.afpdlrq r
    eceived an unsuccessful result from PL/SQL procedure or function FND_DCP.Request_Session_Lock.
    Routine FND_DCP.REQUEST_SESSION_LOCK received a result code of 1 from the call to DBMS_LOCK.Request.
    Possible DBMS_LOCK.Request resultCall to establish_icm failed
    The Internal Concurrent Manager has encountered an error.
    Review concurrent manager log file for more detailed information. : 20-JUN-2013 00:57:38 -
    Shutting down Internal Concurrent Manager : 20-JUN-2013 00:57:38
    List of errors encountered:
    _ 1 _
    Routine AFPCSQ encountered an ORACLE error. .
    Review your error messages for the cause of the error. (=<POINTER>)
    List of errors encountered:
    _ 1 _
    Routine AFPCAL received failure code while parsing or running your
    concurrent program CPMGR
    Review your concurrent request log file for more detailed information.
    Make sure you are passing arguments in the correct format.
    The TEST_0620@TEST internal concurrent manager has terminated with status 1 - giving up.
    You have new mail in /var/spool/mail/applmgr
    TERBDB2:
    ========================================================================
    Starting TEST_0620@TEST Internal Concurrent Manager -- shell process ID 24424
              logfile=/app1/TEST/inst/apps/TEST_terbdb2/logs/appl/conc/log/TEST_0620.mgr
              PRINTER=noprint
               mailto=applmgr
              restart=N
                 diag=N
                sleep=30
                 pmon=4
               quesiz=1
              Reviver is ENABLED
    +---------------------------------------------------------------------------+
    Application Object Library: Concurrent Processing version 11.5
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    Internal Concurrent Manager started : 20-JUN-2013 00:53:21
    +---------------------------------------------------------------------------+
                       Process monitor session started : 20-JUN-2013 00:53:21
    Starting INVTMRPM Concurrent Manager               : 20-JUN-2013 00:53:21
    Starting RCVOLTM Concurrent Manager                : 20-JUN-2013 00:53:21
    Starting FFTM Concurrent Manager                   : 20-JUN-2013 00:53:21
    Starting C_AQCT_SVC Concurrent Manager             : 20-JUN-2013 00:53:21
    Starting FNDCPOPP Concurrent Manager               : 20-JUN-2013 00:53:21
    Starting DownloadProcessorMigrationMode Concurrent Manager : 20-JUN-2013 00:53:22
    Starting DownloadProcessorNormalMode Concurrent Manager : 20-JUN-2013 00:53:22
    Starting FNDCRM Concurrent Manager                 : 20-JUN-2013 00:53:22
    Starting FNDSCH Concurrent Manager                 : 20-JUN-2013 00:53:22
    Starting AMSDMIN Concurrent Manager                : 20-JUN-2013 00:53:22
    Starting OAMCOLMGR Concurrent Manager              : 20-JUN-2013 00:53:22
    Starting IEU_WL_CS Concurrent Manager              : 20-JUN-2013 00:53:22
    Starting PASMGR Concurrent Manager                 : 20-JUN-2013 00:53:22
    Starting IEU_SH_CS Concurrent Manager              : 20-JUN-2013 00:53:22
                         Process monitor session ended : 20-JUN-2013 00:53:22
    Kindly advice.
    Regards,
    Ahmed

    Salam Hussein,
    this's output of PROD:
    SQL> select concurrent_queue_name, p.node_name, db_instance
      2  from fnd_concurrent_processes p, fnd_concurrent_queues q, fnd_cp_services s
      3  where p.queue_application_id = q.application_id
      4  and p.concurrent_queue_id = q.concurrent_queue_id
      5  and q.manager_type = s.service_id
      6  and p.process_status_code = 'A';
    CONCURRENT_QUEUE_NAME          NODE_NAME                      DB_INSTANCE
    FNDCRM                         ERPAPP1                        MCITERP1
    FNDICM                         ERPAPP1                        MCITERP1
    FNDSCH                         ERPAPP1                        MCITERP1
    STANDARD                       ERPAPP2                        MCITERP1
    STANDARD                       ERPAPP2                        MCITERP1
    STANDARD                       ERPAPP2                        MCITERP1
    STANDARD                       ERPAPP2                        MCITERP1
    STANDARD                       ERPAPP2                        MCITERP1
    STANDARD                       ERPAPP2                        MCITERP1
    STANDARD                       ERPAPP2                        MCITERP1
    STANDARD                       ERPAPP2                        MCITERP1
    CONCURRENT_QUEUE_NAME          NODE_NAME                      DB_INSTANCE
    STANDARD                       ERPAPP2                        MCITERP1
    STANDARD                       ERPAPP2                        MCITERP1
    STANDARD                       ERPAPP2                        MCITERP1
    STANDARD                       ERPAPP2                        MCITERP1
    STANDARD                       ERPAPP2                        MCITERP1
    STANDARD                       ERPAPP2                        MCITERP1
    STANDARD                       ERPAPP2                        MCITERP1
    PODAMGR                        ERPAPP1                        MCITERP1
    PODAMGR                        ERPAPP1                        MCITERP1
    PODAMGR                        ERPAPP1                        MCITERP1
    PODAMGR                        ERPAPP1                        MCITERP1
    CONCURRENT_QUEUE_NAME          NODE_NAME                      DB_INSTANCE
    RCVOLTM                        ERPAPP1                        MCITERP1
    PASMGR                         ERPAPP2                        MCITERP1
    INVMGR                         ERPAPP2                        MCITERP1
    INVTMRPM                       ERPAPP1                        MCITERP1
    WFALSNRSVC                     ERPAPP1                        MCITERP2
    WFMLRSVC                       ERPAPP1                        MCITERP1
    FTE_TXN_MANAGER                ERPAPP2                        MCITERP1
    IEU_SH_CS                      ERPAPP1                        MCITERP1
    IEU_WL_CS                      ERPAPP1                        MCITERP1
    OAMCOLMGR                      ERPAPP1                        MCITERP1
    FNDSM_ERPAPP2                  ERPAPP2                        MCITERP1
    CONCURRENT_QUEUE_NAME          NODE_NAME                      DB_INSTANCE
    FNDSM_ERPAPP1                  ERPAPP1                        MCITERP1
    WFWSSVC                        ERPAPP1                        MCITERP2
    AMSDMIN                        ERPAPP1                        MCITERP1
    FNDCPOPP                       ERPAPP2                        MCITERP2
    FFTM                           ERPAPP1                        MCITERP1
    38 rows selected.
    Regards,
    Ahmed

  • Touchpad not working after Factory reset through Desktop manager os6 BB 9300 curve

    sir,
          I tried to factory rest my blackberry curve 9300 through desktop manager but the thing is after booting up im getting a licence agreement popup but im unable to scroll down.
    dont know why ??
    please help me

    Hello vamsy_sid and welcome to the BlackBerry Support Community Forums.
    Sorry to hear you're having an issue with your device.
    Did your trackpad function normally before you did the reset?
    IfyouhittheSpacebaronyourdevice, doestheagreementscrolldowntotheIAgreeorIDisagreeboxes? 
    If you reboot by pulling the battery, are you then able to scroll down on the agreement?
    -HMthePirate
    Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)!

  • CONCURRENT MANAGER SETUP AND CONFIGURATION REQUIREMENTS IN AN 11I RAC ENVIR

    제품 : AOL
    작성날짜 : 2004-05-13
    PURPOSE
    RAC-PCP 구성에 대한 Setup 사항을 기술한 문서입니다.
    PCP 구현은 CM의 workload 분산, Failover등을 목적으로 합니다.
    Explanation
    Failure sceniro 는 다음 3가지로 구분해 볼수 있습니다.
    1. The database instance that supports the CP, Applications, and Middle-Tier
    processes such as Forms, or iAS can fail.
    2. The Database node server that supports the CP, Applications, and Middle-
    Tier processes such as Forms, or iAS can fail.
    3. The Applications/Middle-Tier server that supports the CP (and Applications)
    base can fail.
    아래부분은 CM,AP 구성과
    CM과 GSM(Global Service Management)과의 관계를 설명하고 있습니다.
    The concurrent processing tier can reside on either the Applications, Middle-
    Tier, or Database Tier nodes. In a single tier configuration, non PCP
    environment, a node failure will impact Concurrent Processing operations do to
    any of these failure conditions. In a multi-node configuration the impact of
    any these types of failures will be dependent upon what type of failure is
    experienced, and how concurrent processing is distributed among the nodes in
    the configuration. Parallel Concurrent Processing provides seamless failover
    for a Concurrent Processing environment in the event that any of these types of
    failures takes place.
    In an Applications environment where the database tier utilizes Listener (
    server) load balancing is implemented, and in a non-load balanced environment,
    there are changes that must be made to the default configuration generated by
    Autoconfig so that CP initialization, processing, and PCP functionality are
    initiated properly on their respective/assigned nodes. These changes are
    described in the next section - Concurrent Manager Setup and Configuration
    Requirements in an 11i RAC Environment.
    The current Concurrent Processing architecture with Global Service Management
    consists of the following processes and communication model, where each process
    is responsible for performing a specific set of routines and communicating with
    parent and dependent processes.
    아래 내용은 PCP환경에서 ICM, FNDSM, IM, Standard Manager의 역활을 설명하고
    있습니다.
    Internal Concurrent Manager (FNDLIBR process) - Communicates with the Service
    Manager.
    The Internal Concurrent Manager (ICM) starts, sets the number of active
    processes, monitors, and terminates all other concurrent processes through
    requests made to the Service Manager, including restarting any failed processes.
    The ICM also starts and stops, and restarts the Service Manager for each node.
    The ICM will perform process migration during an instance or node failure.
    The ICM will be
    active on a single node. This is also true in a PCP environment, where the ICM
    will be active on at least one node at all times.
    Service Manager (FNDSM process) - Communicates with the Internal Concurrent
    Manager, Concurrent Manager, and non-Manager Service processes.
    The Service Manager (SM) spawns, and terminates manager and service processes (
    these could be Forms, or Apache Listeners, Metrics or Reports Server, and any
    other process controlled through Generic Service Management). When the ICM
    terminates the SM that
    resides on the same node with the ICM will also terminate. The SM is ?hained?
    to the ICM. The SM will only reinitialize after termination when there is a
    function it needs to perform (start, or stop a process), so there may be
    periods of time when the SM is not active, and this would be normal. All
    processes initialized by the SM
    inherit the same environment as the SM. The SM environment is set by APPSORA.
    env file, and the gsmstart.sh script. The TWO_TASK used by the SM to connect
    to a RAC instance must match the instance_name from GV$INSTANCE. The apps_<sid>
    listener must be active on each CP node to support the SM connection to the
    local instance. There
    should be a Service Manager active on each node where a Concurrent or non-
    Manager service process will reside.
    Internal Monitor (FNDIMON process) - Communicates with the Internal Concurrent
    Manager.
    The Internal Monitor (IM) monitors the Internal Concurrent Manager, and
    restarts any failed ICM on the local node. During a node failure in a PCP
    environment the IM will restart the ICM on a surviving node (multiple ICM's may
    be started on multiple nodes, but only the first ICM started will eventually
    remain active, all others will gracefully terminate). There should be an
    Internal Monitor defined on each node
    where the ICM may migrate.
    Standard Manager (FNDLIBR process) - Communicates with the Service Manager and
    any client application process.
    The Standard Manager is a worker process, that initiates, and executes client
    requests on behalf of Applications batch, and OLTP clients.
    Transaction Manager - Communicates with the Service Manager, and any user
    process initiated on behalf of a Forms, or Standard Manager request. See Note:
    240818.1 regarding Transaction Manager communication and setup requirements for
    RAC.
    Concurrent Manager Setup and Configuration Requirements in an 11i RAC
    Environment
    PCP를 사용하기위한 기본적인 Setup 절차를 설명하고 있습니다.
    In order to set up Setup Parallel Concurrent Processing Using AutoConfig with
    GSM,
    follow the instructions in the 11.5.8 Oracle Applications System Administrators
    Guide
    under Implementing Parallel Concurrent Processing using the following steps:
    1. Applications 11.5.8 and higher is configured to use GSM. Verify the
    configuration on each node (see WebIV Note:165041.1).
    2. On each cluster node edit the Applications Context file (<SID>.xml), that
    resides in APPL_TOP/admin, to set the variable <APPLDCP oa_var="s_appldcp">
    ON </APPLDCP>. It is normally set to OFF. This change should be performed
    using the Context Editor.
    3. Prior to regenerating the configuration, copy the existing tnsnames.ora,
    listener.ora and sqlnet.ora files, where they exist, under the 8.0.6 and iAS
    ORACLE_HOME locations on the each node to preserve the files (i.e./<some_
    directory>/<SID>ora/$ORACLE_HOME/network/admin/<SID>/tnsnames.ora). If any of
    the Applications startup scripts that reside in COMMON_TOP/admin/scripts/<SID>
    have been modified also copy these to preserve the files.
    4. Regenerate the configuration by running adautocfg.sh on each cluster node as
    outlined in Note:165195.1.
    5. After regenerating the configuration merge any changes back into the
    tnsnames.ora, listener.ora and sqlnet.ora files in the network directories,
    and the startup scripts in the COMMON_TOP/admin/scripts/<SID> directory.
    Each nodes tnsnames.ora file must contain the aliases that exist on all
    other nodes in the cluster. When merging tnsnames.ora files ensure that each
    node contains all other nodes tnsnames.ora entries. This includes tns
    entries for any Applications tier nodes where a concurrent request could be
    initiated, or request output to be viewed.
    6. In the tnsnames.ora file of each Concurrent Processing node ensure that
    there is an alias that matches the instance name from GV$INSTANCE of each
    Oracle instance on each RAC node in the cluster. This is required in order
    for the SM to establish connectivity to the local node during startup. The
    entry for the local node will be the entry that is used for the TWO_TASK in
    APPSORA.env (also in the APPS<SID>_<HOSTNAME>.env file referenced in the
    Applications Listener [APPS_<SID>] listener.ora file entry "envs='MYAPPSORA=<
    some directory>/APPS<SID>_<HOSTNAME>.env)
    on each node in the cluster (this is modified in step 12).
    7. Verify that the FNDSM_<SID> entry has been added to the listener.ora file
    under the 8.0.6 ORACLE_HOME/network/admin/<SID> directory. See WebiV Note:
    165041.1 for instructions regarding configuring this entry. NOTE: With the
    implementation of GSM the 8.0.6 Applications, and 9.2.0 Database listeners
    must be active on all PCP nodes in the cluster during normal operations.
    8. AutoConfig will update the database profiles and reset them for the node
    from which it was last run. If necessary reset the database profiles back to
    their original settings.
    9. Ensure that the Applications Listener is active on each node in the cluster
    where Concurrent, or Service processes will execute. On each node start the
    database and Forms Server processes as required by the configuration that
    has been implemented.
    10. Navigate to Install > Nodes and ensure that each node is registered. Use
    the node name as it appears when executing a nodename?from the Unix prompt on
    the server. GSM will add the appropriate services for each node at startup.
    11. Navigate to Concurrent > Manager > Define, and set up the primary and
    secondary node names for all the concurrent managers according to the
    desired configuration for each node workload. The Internal Concurrent
    Manager should be defined on the primary PCP node only. When defining the
    Internal Monitor for the secondary (target) node(s), make the primary node (
    local node) assignment, and assign a secondary node designation to the
    Internal Monitor, also assign a standard work shift with one process.
    12. Prior to starting the Manager processes it is necessary to edit the APPSORA.
    env file on each node in order to specify a TWO_TASK entry that contains
    the INSTANCE_NAME parameter for the local nodes Oracle instance, in order
    to bind each Manager to the local instance. This should be done regardless
    of whether Listener load balancing is configured, as it will ensure the
    configuration conforms to the required standards of having the TWO_TASK set
    to the instance name of each node as specified in GV$INSTANCE. Start the
    Concurrent Processes on their primary node(s). This is the environment
    that the Service Manager passes on to each process that it initializes on
    behalf of the Internal Concurrent Manager. Also make the same update to
    the file referenced by the Applications Listener APPS_<SID> in the
    listener.ora entry "envs='MYAPPSORA= <some directory>/APPS<SID>_<HOSTNAME>.
    env" on each node.
    13. Navigate to Concurrent > Manager > Administer and verify that the Service
    Manager and Internal Monitor are activated on the secondary node, and any
    other addititional nodes in the cluster. The Internal Monitor should not be
    active on the primary cluster node.
    14. Stop and restart the Concurrent Manager processes on their primary node(s),
    and verify that the managers are starting on their appropriate nodes. On
    the target (secondary) node in addition to any defined managers you will
    see an FNDSM process (the Service Manager), along with the FNDIMON process (
    Internal Monitor).
    Reference Documents
    Note 241370.1

    What is your database version? OS?
    We are using VCP suite for Planning Purpose. We are using VCP environment (12.1.3) in Decentralized structure connecting to 3 differect source environment ( consisting 11i and R12). As per the Oracle Note {RAC Configuration Setup For Running MRP Planning, APS Planning, and Data Collection Processes [ID 279156]} we have implemented RAC in our test environment to get better performance.
    But after doing all the setups and concurrent programs assignment to different nodes, we are seeing huge performance issue. The Complete Collection which takes generally on an avg 180 mins in Production, is taking more than 6 hours to complete in RAC.
    So I would like to get suggestion from this forum, if anyone has implemented RAC in pure VCP (decentralized) environment ? Will there be any improvement if we make our VCP Instance in RAC ?Do you PCP enabled? Can you reproduce the issue when you stop the CM?
    Have you reviewed these docs?
    Value Chain Planning - VCP - Implementation Notes & White Papers [ID 280052.1]
    Concurrent Processing - How To Ensure Load Balancing Of Concurrent Manager Processes In PCP-RAC Configuration [ID 762024.1]
    How to Setup and Run Data Collections [ID 145419.1]
    12.x - Latest Patches and Installation Requirements for Value Chain Planning (aka APS Advanced Planning & Scheduling) [ID 746824.1]
    APSCHECK.sql Provides Information Needed for Diagnosing VCP and GOP Applications Issues [ID 246150.1]
    Thanks,
    Hussein

  • Loading XML File in Oracle Tables through Concurrent Request

    I am posting a working program which reads an XML File and loads in Oracle database table through Concurrent Request. Input parameter for this program is file name. I have added directory name ASPEN_DIR as /interface/inbound in ALL_DIRECTORIES table.
    /* This is a sample program reading an input xml file and loads data in Oracle Database table
    This program is executed through concurrent request and it has an input file name
    it also creates a log for reading and inserting records from file and into a table
    CREATE OR REPLACE PACKAGE BODY CBAP_ACCRUENT_XML_PKG AS
    PROCEDURE read_emp_xml_file (errbuf out varchar2,
    retcode out number,
    in_filename in varchar2)
    is
    my_dir varchar2(10) := 'ASPEN_DIR';
    l_bfile BFILE;
    l_clob CLOB;
    l_parser dbms_xmlparser.Parser;
    l_doc dbms_xmldom.DOMDocument;
    l_nl dbms_xmldom.DOMNodeList;
    l_n dbms_xmldom.DOMNode;
    l_temp VARCHAR2(1000);
    v_empno number(10);
    v_ename varchar2(50);
    v_job varchar2(30);
    v_mgr number(10);
    v_hiredate date;
    v_sal number(10);
    v_comm number(10);
    src_csid NUMBER := NLS_CHARSET_ID('UTF8');
    v_read NUMBER(5);
    v_insert NUMBER(5);
    dest_offset INTEGER := 1;
    src_offset INTEGER := 1;
    lang_context INTEGER := dbms_lob.default_lang_ctx;
    warning INTEGER;
    BEGIN
    v_read := 0;
    v_insert := 0;
    l_bfile := BFileName(my_dir, in_filename);
    dbms_lob.createtemporary(l_clob, cache=>FALSE);
    dbms_lob.open(l_bfile, dbms_lob.lob_readonly);
    dbms_lob.loadclobfromfile(l_clob, l_bfile, dbms_lob.getlength(l_bfile), dest_offset,src_offset, src_csid, lang_context, warning);
    dbms_lob.close(l_bfile);
    -- make sure implicit date conversions are performed correctly
    dbms_session.set_nls('NLS_DATE_FORMAT','''DD/MM/RR HH24:MI:SS''');
    -- Create a parser.
    l_parser := dbms_xmlparser.newParser;
    -- Parse the document and create a new DOM document.
    dbms_xmlparser.parseClob(l_parser, l_clob);
    l_doc := dbms_xmlparser.getDocument(l_parser);
    -- Free resources associated with the CLOB and Parser now they are no longer needed.
    dbms_lob.freetemporary(l_clob);
    dbms_xmlparser.freeParser(l_parser);
    -- Get a list of all the nodes in the document using the XPATH syntax.
    l_nl := dbms_xslprocessor.selectNodes(dbms_xmldom.makeNode(l_doc),'/EMPLOYEES/EMP');
    -- Loop through the list and create a new record in a tble collection
    -- for each record.
    FOR cur_emp IN 0 .. dbms_xmldom.getLength(l_nl) - 1 LOOP
    l_n := dbms_xmldom.item(l_nl, cur_emp);
    v_read := v_read + 1;
    -- Use XPATH syntax to assign values to he elements of the collection.
    dbms_xslprocessor.valueOf(l_n,'EMPNO/text()',v_empno);
    dbms_xslprocessor.valueOf(l_n,'ENAME/text()',v_ename);
    dbms_xslprocessor.valueOf(l_n,'JOB/text()',v_job);
    dbms_xslprocessor.valueOf(l_n,'MGR/text()',v_mgr);
    dbms_xslprocessor.valueOf(l_n,'HIREDATE/text()',v_hiredate);
    dbms_xslprocessor.valueOf(l_n,'SAL/text()',v_sal);
    dbms_xslprocessor.valueOf(l_n,'COMM/text()',v_comm);
    insert into emp(empno,ename,job,mgr,hiredate,sal,comm)
    values(v_empno,v_ename,v_job,v_mgr,v_hiredate,v_sal,v_comm);
    v_insert := v_insert + 1;
    END LOOP;
    -- Free any resources associated with the document now it
    -- is no longer needed.
    dbms_xmldom.freeDocument(l_doc);
    --remove file to another directory
    commit;
    fnd_file.put_line(fnd_file.LOG,'Number of Records Read : '||v_read);
    fnd_file.put_line(fnd_file.LOG,'Number of Records Insert : '||v_insert);
    EXCEPTION
    WHEN OTHERS THEN
    dbms_lob.freetemporary(l_clob);
    dbms_xmlparser.freeParser(l_parser);
    dbms_xmldom.freeDocument(l_doc);
    retcode := sqlcode;
    ERRBUF := sqlerrm;
    ROLLBACK;
    END read_emp_xml_file;
    END;
    <?xml version="1.0" ?>
    - <EMPLOYEES>
    - <EMP>
    <EMPNO>7369</EMPNO>
    <ENAME>SMITH</ENAME>
    <JOB>CLERK</JOB>
    <MGR>7902</MGR>
    <HIREDATE>17-DEC-80</HIREDATE>
    <SAL>800</SAL>
    </EMP>
    - <EMP>
    <EMPNO>7499</EMPNO>
    <ENAME>ALLEN</ENAME>
    <JOB>SALESMAN</JOB>
    <MGR>7698</MGR>
    <HIREDATE>20-FEB-81</HIREDATE>
    <SAL>1600</SAL>
    <COMM>300</COMM>
    </EMP>
    - <EMP>
    <EMPNO>7521</EMPNO>
    <ENAME>WARD</ENAME>
    <JOB>SALESMAN</JOB>
    <MGR>7698</MGR>
    <HIREDATE>22-FEB-81</HIREDATE>
    <SAL>1250</SAL>
    <COMM>500</COMM>
    </EMP>
    - <EMP>
    <EMPNO>7566</EMPNO>
    <ENAME>JONES</ENAME>
    <JOB>MANAGER</JOB>
    <MGR>7839</MGR>
    <HIREDATE>02-APR-81</HIREDATE>
    <SAL>2975</SAL>
    </EMP>
    - <EMP>
    <EMPNO>7654</EMPNO>
    <ENAME>MARTIN</ENAME>
    <JOB>SALESMAN</JOB>
    <MGR>7698</MGR>
    <HIREDATE>28-SEP-81</HIREDATE>
    <SAL>1250</SAL>
    <COMM>1400</COMM>
    </EMP>
    - <EMP>
    <EMPNO>7698</EMPNO>
    <ENAME>BLAKE</ENAME>
    <JOB>MANAGER</JOB>
    <MGR>7839</MGR>
    <HIREDATE>01-MAY-81</HIREDATE>
    <SAL>2850</SAL>
    </EMP>
    - <EMP>
    <EMPNO>7782</EMPNO>
    <ENAME>CLARK</ENAME>
    <JOB>MANAGER</JOB>
    <MGR>7839</MGR>
    <HIREDATE>09-JUN-81</HIREDATE>
    <SAL>2450</SAL>
    </EMP>
    - <EMP>
    <EMPNO>7788</EMPNO>
    <ENAME>SCOTT</ENAME>
    <JOB>ANALYST</JOB>
    <MGR>7566</MGR>
    <HIREDATE>19-APR-87</HIREDATE>
    <SAL>3000</SAL>
    </EMP>
    - <EMP>
    <EMPNO>7839</EMPNO>
    <ENAME>KING</ENAME>
    <JOB>PRESIDENT</JOB>
    <HIREDATE>17-NOV-81</HIREDATE>
    <SAL>5000</SAL>
    </EMP>
    - <EMP>
    <EMPNO>7844</EMPNO>
    <ENAME>TURNER</ENAME>
    <JOB>SALESMAN</JOB>
    <MGR>7698</MGR>
    <HIREDATE>08-SEP-81</HIREDATE>
    <SAL>1500</SAL>
    <COMM>0</COMM>
    </EMP>
    - <EMP>
    <EMPNO>7876</EMPNO>
    <ENAME>ADAMS</ENAME>
    <JOB>CLERK</JOB>
    <MGR>7788</MGR>
    <HIREDATE>23-MAY-87</HIREDATE>
    <SAL>1100</SAL>
    </EMP>
    - <EMP>
    <EMPNO>7900</EMPNO>
    <ENAME>JAMES</ENAME>
    <JOB>CLERK</JOB>
    <MGR>7698</MGR>
    <HIREDATE>03-DEC-81</HIREDATE>
    <SAL>950</SAL>
    </EMP>
    - <EMP>
    <EMPNO>7902</EMPNO>
    <ENAME>FORD</ENAME>
    <JOB>ANALYST</JOB>
    <MGR>7566</MGR>
    <HIREDATE>03-DEC-81</HIREDATE>
    <SAL>3000</SAL>
    </EMP>
    - <EMP>
    <EMPNO>7934</EMPNO>
    <ENAME>MILLER</ENAME>
    <JOB>CLERK</JOB>
    <MGR>7782</MGR>
    <HIREDATE>23-JAN-82</HIREDATE>
    <SAL>1300</SAL>
    </EMP>
    </EMPLOYEES>

    http://download-west.oracle.com/docs/cd/B13789_01/appdev.101/b10790/toc.htm
    Take a look at Examples 4-8 and 4-9. Even thought this is 10g doc code should work on 9.2.4 or later

  • Request set not getting picked up by concurrent manager.

    Hi All
    We have an issue today where the daily scheduled request set did not run and status for which remained at "Pending Scheduled". Concurrent Manager did not pick up this and status remained:
    This request is waiting to be processed by the Conflict Resolution Manager.
    This request cannot yet begin execution because other requests may conflict with it. The Conflict Resolution Manager will determine when this request may begin execution.
    User <user_ name> submitted this request on 06-MAR-2011 23:17:33.
    No action required. This is a normal condition.
    This request may have to wait on one or more of the following requests to complete before it can begin execution:
    I checked all the 'incompatibilities" of the programs for request set and none of them were running.
    We did the below, but no success:
    1. Restarted the concurret manager
    2. Cancelled the scheduled run and submitted request set again.
    Still the status remained at "Pending Scheduled" with above message.
    When we tried to run the individaul programs for that request set it all worked fine. So I would like to know what could be the issue and how to overcome this. I think the issue could be with request set as the individual program is working fine.
    Any pointers will be highly appriciated.
    Many Thanks,
    -Shashank

    which manager is Processing that request.. if it is Custom manager Then U should excllude this concurrent program from the concurrent manager.
    otherwise both the Standard manager or custom manager both are not going to pickup the process..
    he
    Please Check The Cocnurrent Manager which is going to process and check wether its included in the respective manager.
    Thanks
    Reddy
    http://11iapps.wordpress.com

  • Shell script called from .sql fie in oracle concurrent manager

    Hi
    I am running a request set through Oracle concurrent manager.
    The manager calls a .sql file. The sql file internally calls a unix shell script.
    v_body VARCHAR2(10000);
    v_body is set as followed in the sql program.
    v_body := 'ATTENTION :' || CHR(10) || CHR(10) ||
    'Your invoice number ' || r_error_rec.invoice_num || ' cannot be paid at present due ' ||
              'to one of the following reasons:' || CHR(10) || CHR(10) ||
              ' - The Purchase Order number quoted on the invoice is invalid ' || CHR(10) ||
              ' - The Purchase Order number has not been quoted at all on the invoice' || CHR(10) ||
              ' - The Purchase Order number is missing on one or more of the lines on the invoice' ||
              CHR(10) || CHR(10) ||
              'To avoid any further payment delays, please advise us of the correct Purchase ' ||
              'Order number(s) by emailing ' || r_error_rec.sender || '. Please note that it is not ' ||
              'necessary to re-submit the invoice.' || CHR(10) || CHR(10) ||
              'If you do not know the Purchase Order number, please contact the employee ' ||
              'who ordered your goods/services for this number. For future reference please note that ' ||
              'it is the responsibility of the vendor to ensure that an approved Purchase Order ' ||
              'number is received before supplying goods/services to . The purchase order is ' ||
              'evidence that the order has been approved by management.' || CHR(10) || CHR(10) ||
              'This invoice will be held as pending until the valid Purchase Order number can be provided.' || CHR(10) || CHR(10) ||
              'Thank you,' || CHR(10) || CHR(10) || ' Accounts Payable' || CHR(10);
    The sql now calls a unix shell script as shown below.
              l_request_id := fnd_request.submit_request (
                                            'CFI',                                   'CFIECAPEMLSH',                         NULL,                              NULL,                              FALSE,                              r_error_rec.sender,                          v_recipient,                              v_ccrecipient,                          v_bccrecipient,                          v_subject,                                   v_body,                                   v_attachment     
    So here the problem i am facing is that the shell script is not getting called.
    If i keep v_body= 'Test' the shell script is called and program is working fine.
    Is it a problem with CHR(10) or the size limitation of v_body i dont know.
    I tried to keep v_body VARCHAR2(10000).
    Still it did not work.
    Plz help me if u know about this.

    You cannot have varchar2 > 4000.

  • Concurrent manager status inactive every application services restart

    ebs: 11.5.10.2
    os: AIX 5
    whenever im restarting application server i mean to take coldbackup or for any workaround
    the concurrent manager are down i checked with command ps -ef|grep fndlibr|grep APPLMGR|wc -l it shows only one concuurent manager is running so i have to go for a Conccurent manager recover through OAM then all the conccurent manager are up the same ps -ef|grep fndlibr|grep APPLMGR|wc -l shows 15
    while going through Conccurent manager recovery is gives me orphaned Process(which is a schedule request from user--iam unable to cancel the request it says the conccurent manager which was handling this request does not exist) which is supposed to be killed but im unable to kill it at oslevel
    when i use kill -9 ospid it says ospid doesnt exist (may be it is ospid of the user system)
    can anyone say me why is this happening and lead me to a solution?
    shall i go for a cmclean and if yes then tell me what cm clean does...
    Thanks
    ApPsMasTI,
    ShARinG Is CarInG

    Hi;
    You can run cmclean.sql. For details see:
    CMCLEAN
    Also see:
    How To Clear Orphan Generate Run Balance Processes [ID 337898.1]
    Regard
    Helios

  • Configuring mail alert for status of Concurrent manager and Apache services

    Hi,
    We have R12 (12.0.6)setup on our PROD EBIZ we want set mail-alert whenever concurrent manager or Apache services go down.
    Can this be done through Oracle alert manager ....
    Does anyone has a script thats works in oracle alert manager...
    How do we configure the same in oracle alert manager.
    Help is appreciated.
    Regards,
    Milan

    Hi;
    You can run cmclean.sql. For details see:
    CMCLEAN
    Also see:
    How To Clear Orphan Generate Run Balance Processes [ID 337898.1]
    Regard
    Helios

  • PDF Header not printing via Concurrent Manager.

    XML Publisher 5.6.3
    Oracle Financials 12.0.6
    RTF Template created by Word 2003
    When submitting a XML Publisher report request via concurrent manager and choosing a pasta driver printer to print too.
    The report prints with no header details.
    If you view the PDF report from the concurrent manager by clicking the view output button. The PDF document does have a header and if you print this PDF report via internet explorer the header does print out.
    i.e. No header printer via oracle financials concurrent manager
    But header printed out via internet explorer
    so PDF is getting printed by Linux through CC Manager and no header details appear in the print out.
    Any ideas?

    All of the complex report logic is handled in your Oracle Report (rdf) file.
    If your Oracle report is working OK, then this report should be generating XML.
    After running your report, go to the View Requests window. Highlight your request, and click the Diagnostics button. Then click the 'View XML' button. If you see XML data, then you should be OK.
    When I faced a similar issue, it was because the '1 step' process didnt work for the particular report I was using. The '1 step' process doesn't work for every report. Which report are you using?
    If the report is submitted via a form (not the concurrent manager request form), then you probably need to use 2 steps to produce the desired output.
    For more information, see the following thread:
    Enhancment to avoid 2 step check printing
    HTH,
    Mark K

  • Concurrent manager failed to start on win2k3,

    hi,
    this is seems to be common issue, i have search so many forums but unable to bring up concurrent managers.pls help me resolve the issue.
    APPS: 11i (11.5.10.2 ) on win2k3.
    //An error occurred while attempting to establish an Applications File Server connection with the node FNDFS_APPS. There may be a network configuration problem, or the TNS listener on node FNDFS_APPS may not be running. Please contact your system administrator.//
    SQL> SELECT concurrent_queue_name
    2 FROM fnd_concurrent_queues
    3 WHERE concurrent_queue_name LIKE 'FND%';
    CONCURRENT_QUEUE_NAME
    FNDCPOPP
    FNDCRM
    FNDICM
    FNDIM_APPS
    FNDIM_AUTHENTICATION
    FNDSCH
    FNDSM_APPS
    FNDSM_AUTHENTICATION
    FNDTMTST
    9 rows selected.
    D:\oracle\visora\8.0.6\NET80\ADMIN\VIS_apps>tnsping80 FNDFS_APPS
    TNS Ping Utility for 32-bit Windows: Version 8.0.6.3.0 - Production on 27-MAY-2010 14:22:00
    (c) Copyright 1997 Oracle Corporation. All rights reserved.
    Attempting to contact (ADDRESS=(PROTOCOL=tcp)(HOST=APPS.ora.com)(PORT=1626))
    OK (20 msec)
    FNDFS.exe is available at FND_TOP/bin DIRECTORY.
    i have run autoconfig on both the tire also. but issue is still there.
    i have gone through from Standard Concurrent Manager is not running.
    Note: 735148.1 - How to Troubleshoot Concurrent Manager Start Up Issue Related to Service Manager
    Note: 423170.1 - Concurrent Manager Fails to Start Because of a 'Could not start Service Manager FNDSM__' Error
    kindly help me to resolve this issue.
    Regards,
    sandeep.

    Hi;
    It was working before? Did you apply any patch or something else?
    Those note which u mention in your post didnt help?
    Did you try to Maintain Applications Files >> Relink Applications programs ?
    Regard
    Helios

Maybe you are looking for