How to disconnect DB connections before batch job runs

Hi All,
I have a batch job which generates some static reports at specified location. My question is that before my batch job runs I want to disconnect all DB connections and then run the batch job then get the system up for availabily. Could you please suggest me how do I disconnect the connections before batch runs? I am using Oracle 9i DB. Your help would be more appreciated.

user536769 wrote:
I have a batch job which generates some static reports at specified location. My question is that before my batch job runs I want to disconnect all DB connections and then run the batch job then get the system up for availabily. Could you please suggest me how do I disconnect the connections before batch runs? I am using Oracle 9i DB. Your help would be more appreciated.What you want to do, does not make sense. Oracle is intended as a multi-user multi-processing server. It is designed that way. It is developed that. It is sold and used that way.
Why would you want to kick off all other processes (sessions) just to run a single batch process? To make it faster?
If so, and the idea is to make the batch process faster, then
a) WHAT makes the batch process slow?
b) did you determine that this is caused by other processes?

Similar Messages

  • How to get the list of batch jobs running in a specific application server

    Hi Team,
    I am trying to check in SM37 if there is any specific condition to get the list of batch jobs assigned to a specific target server but cant find any.
    Is there is way to find the list of batch jobs assigned to run in one specific application server.( Target server specified in SM36 while job creation)

    Hello,
    This is what you can do in SM37.
    Execute the list of batch jobs, when the result appears on the screen edit the ALV grid via CTRL+F7.
    Now add the following columns "TargetServ" and "Executing server".
    You will now have two extra columns in your result list.
    TargetServr contains the value of the application server where the job should run when you have explicitely filled it in.
    Often this is empty, this means that at runtime SAP will determine itself on which application server the job will run (depending of course where the BGD processes are defined).
    Executing server is filled in always for all executed jobs, this is the actual application server where the job has run.
    You can also add these two fields in your initial selection screen of SM37 by using the "Extended job selection" button.
    I hope this isusefull.
    Wim

  • How to disconnect internet connection in Time Capsule and reconnect without restarting the whole device?

    Hi, I would be very grateful if someone could tell me how to disconnect internet connection in Time Capsule and reconnect without restarting the whole device?
    The thing is that as I have a dynamic IP address, everytime I restart the internet connection my IP address changes. I sometimes need it to change, so I need to restart the connection. I don't know another way to restart the connection than restarting the whole Time Capsule.
    Thanks!!
    PD: the computer I use is Windows based, using the Airport Utility for Windows, but I also have a MacBook Pro I could use and an iPhone too.

    The utility in windows is very like Mac so the screenshots are from Mac as I don't have windows available now.
    How this works depends on the setup of the TC.. which you did not tell us.. you cannot change anything if you do not have the TC as the main router in the network.
    So on the internet tab you need to share a public IP address.
    On the next tab where you set IP address.
    Click the renew IP address.
    It might work.. and it might not.. the problem is you are not disconnecting the network.. sometimes the hard disconnection is required before the address will renew..
    What about unplugging the WAN port.. then click renew the IP which will fail.. then plug the wan back in again.
    In the end it is easier and faster to power cycle the TC.

  • Performace tuning: how to pass data between different batch job programs?

    Hi everyone,
        now i have one problem about performance tuning using threading in SAP programs: split one big program into two programs - one is main program and the other is sub program. using batch jobs, we can submit multi jobs of sub program at the same time.
        does anybody know how to pass data between different batch jobs? I don't want to use temp files. can ABAP memory can implement this?
        thanks!

    Wei,
    Yes we can transfer the data by using
    SAP Memory OR ABAP Memory.
    Ex:  V_count TYPE i.
      V_count = 100.
    LOOP AT  itab.
    IF v_count EQ 25.
    Here For every batch job
      EXPORT data TO MEMORY ID 'ABC'
       Function module
        JOB_OPEN
       JOB_SUBMIT
       JOB_CLOSE.
      ENDIF.
    ENDLOOP .
    IN your 2nd program.
    INITIALIZATION.
    IMPORT data FROM MEMORY IF 'ABC'.
    FREE memory if .---When you free the memory you will get recent data.
    Don't forget to reward if useful.

  • SAP threading-how to pass data between different batch job programs?

    Hi everyone,
        now i have one problem about performance tuning using threading in SAP programs: split one big program into two programs - one is main program and the other is sub program. using batch jobs, we can submit multi jobs of sub program at the same time.
        does anybody know how to pass data between different batch jobs? I don't want to use temp files. can ABAP memory can implement this?
        thanks!

    Passing Data Between Programs
    [http://help.sap.com/saphelp_47x200/helpdata/en/9f/db9df735c111d1829f0000e829fbfe/frameset.htm|http://help.sap.com/saphelp_47x200/helpdata/en/9f/db9df735c111d1829f0000e829fbfe/frameset.htm]

  • Application batch job running got error ORA-03113

    Problem: when application batch job running, application system always receive this error: ORA-03113 and job stop.
    Application system: dynamic system AX
    ORACLE system: ORACLE 10.2.0.4.0
    The listener configuration setting is :
    INBOUND_CONNECT_TIMEOUT_LISTENER = 0
    SUBSCRIBE_FOR_NODE_DOWN_EVENT_LISTENER = OFF
    Whether this is the problem of listener setting? "INBOUND_CONNECT_TIMEOUT_LISTENER = 0" indicate 0 seconds or no limit?

    I only find the error message in the Client server (application server).
    below is some example of it.
    The database reported (session 56 (mtihz)): ORA-03114: not connected to ORACLE
    . The SQL statement was: "SELECT A.PURCHID,A.PURCHNAME,A.ORDERACCOUNT,A.INVOICEACCOUNT,A.FREIGHTZONE,A.EMAIL,A.DELIVERYDATE,A.DELIVERYTYPE,A.ADDRESSREFRECID,A.ADDRESSREFTABLEID,A.INTERCOMPANYORIGINALSALESID,A.INTERCOMPANYORIGINALCUSTACCO12,A.CURRENCYCODE,A.PAYMENT,A.CASHDISC,A.PURCHPLACER,A.INTERCOMPANYDIRECTDELIVERY,A.VENDGROUP,A.LINEDISC,A.DISCPERCENT,A.DIMENSION,A.DIMENSION2
    Object Server 01: The database reported (session 58 (zhlhz)): ORA-03113: end-of-file on communication channel
    . The SQL statement was: "SELECT A.SPECTABLEID,A.LINENUM,A.CODE,A.BALANCE01,A.REFTABLEID,A.REFRECID,A.SPECRECID,A.PAYMENT,A.PAYMENTSTATUS,A.ERRORCODEPAYMENT,A.FULLSETTLEMENT,A.CREATEDDATE,A.CREATEDTIME,A.RECVERSION,A.RECID FROM SPECTRANS A WHERE ((SUBSTR(NLS_LOWER(DATAAREAID),1,7)=NLS_LOWER(:in1)) AND ((REFTABLEID=:in2) AND (REFRECID=:in3)))"
    but when I use PL/SQL Developer to run the scripts. there is no problem.
    And we always met errors when application team run long time batch, about 20 - 30 minutes or even longer.
    When they run 5 or 10 minutes job, there is no error occur.

  • Batch job run-

    Hi gurus,
    How to schedule and run a batch job run using SM36 and SM37?
    In MM area what are the transacions/programs are they used most?
    Regards,
    Deepak.

    hi,
    You can create any of the new program as per your requirement, but only you have to provide the technical ABAP name of the program while making the settings at SM36...
    Also please go through the SDN thread..Re: Scheduling Batch Job
    Regards
    Priyanka.P

  • How to get all AD User accounts, associated with any application/MSA/Batch Job running in a Local or Remote machine using Script (PowerShell)

    Dear Scripting Guys,
    I am working in an AD migration project (Migration from old legacy AD domains to single AD domain) and in the transition phase. Our infrastructure contains lots
    of Users, Servers and Workstations. Authentication is being done through AD only. Many UNIX and LINUX based box are being authenticated through AD bridge to AD. 
    We have lot of applications in our environment. Many applications are configured to use Managed Service Accounts. Many Workstations and servers are running batch
    jobs with AD user credentials. Many applications are using AD user accounts to carry out their processes. 
    We need to find out all those AD Users, which are configured as MSA, Which are configured for batch jobs and which are being used for different applications on
    our network (Need to find out for every machine on network).
    These identified AD Users will be migrated to the new Domain with top priority. I get stuck with this requirement and your support will be deeply appreciated.
    I hope a well designed PS script can achieve this. 
    Thanks in advance...
    Thanks & Regards Bedanta S Mishra

    Hey Satyajit,
    Thank you for your valuable reply. It is really a great notion to enable account logon audit and collect those events for the analysis. But you know it is also a tedious job when thousand of Users come in to picture. You can imagine how complex it will be
    for this analysis, where more than 200000 users getting logged in through AD. It is the fact that when a batch / MS or an application uses a Domain Users credential with successful process, automatically a successful logon event will be triggered in associated
    DC. But there are also too many users which are not part of these accounts like MSA/Batch jobs or not linked to any application. In that case we have to get through unwanted events. 
    Recently jrv, provided me a beautiful script to find out all MSA from a machine or from a list of machines in an AD environment. (Covers MSA part.)
    $Report= 'Audit_Report.html'
    $Computers= Get-ADComputer -Filter 'Enabled -eq $True' | Select -Expand Name
    $head=@'
    <title>Non-Standard Service Accounts</title>
    <style>
    BODY{background-color :#FFFFF}
    TABLE{Border-width:thin;border-style: solid;border-color:Black;border-collapse: collapse;}
    TH{border-width: 1px;padding: 2px;border-style: solid;border-color: black;background-color: ThreeDShadow}
    TD{border-width: 1px;padding: 2px;border-style: solid;border-color: black;background-color: Transparent}
    </style>
    $sections=@()
    foreach($computer in $Computers){
    $sections+=Get-WmiObject -ComputerName $Computer -class Win32_Service -ErrorAction SilentlyContinue |
    Select-Object -Property StartName,Name,DisplayName |
    ConvertTo-Html -PreContent "<H2>Non-Standard Service Accounts on '$Computer'</H2>" -Fragment
    $body=$sections | out-string
    ConvertTo-Html -Body $body -Head $head | Out-File $report
    Invoke-Item $report
    A script can be designed to get all scheduled back ground batch jobs in a machine, from which the author / the Owner of that scheduled job can be extracted. like below one...
    Function Get-ScheduledTasks
    Param
    [Alias("Computer","ComputerName")]
    [Parameter(Position=1,ValuefromPipeline=$true,ValuefromPipelineByPropertyName=$true)]
    [string[]]$Name = $env:COMPUTERNAME
    [switch]$RootOnly = $false
    Begin
    $tasks = @()
    $schedule = New-Object -ComObject "Schedule.Service"
    Process
    Function Get-Tasks
    Param($path)
    $out = @()
    $schedule.GetFolder($path).GetTasks(0) | % {
    $xml = [xml]$_.xml
    $out += New-Object psobject -Property @{
    "ComputerName" = $Computer
    "Name" = $_.Name
    "Path" = $_.Path
    "LastRunTime" = $_.LastRunTime
    "NextRunTime" = $_.NextRunTime
    "Actions" = ($xml.Task.Actions.Exec | % { "$($_.Command) $($_.Arguments)" }) -join "`n"
    "Triggers" = $(If($xml.task.triggers){ForEach($task in ($xml.task.triggers | gm | Where{$_.membertype -eq "Property"})){$xml.task.triggers.$($task.name)}})
    "Enabled" = $xml.task.settings.enabled
    "Author" = $xml.task.principals.Principal.UserID
    "Description" = $xml.task.registrationInfo.Description
    "LastTaskResult" = $_.LastTaskResult
    "RunAs" = $xml.task.principals.principal.userid
    If(!$RootOnly)
    $schedule.GetFolder($path).GetFolders(0) | % {
    $out += get-Tasks($_.Path)
    $out
    ForEach($Computer in $Name)
    If(Test-Connection $computer -count 1 -quiet)
    $schedule.connect($Computer)
    $tasks += Get-Tasks "\"
    Else
    Write-Error "Cannot connect to $Computer. Please check it's network connectivity."
    Break
    $tasks
    End
    [System.Runtime.Interopservices.Marshal]::ReleaseComObject($schedule) | Out-Null
    Remove-Variable schedule
    Get-ScheduledTasks -RootOnly | Format-Table -Wrap -Autosize -Property RunAs,ComputerName,Actions
    So I think, can a PS script be designed to get the report of all running applications which use domain accounts for their authentication to carry out their process. So from that result we can filter out the AD accounts being used for those
    applications. After that these three individual modules can be compacted in to a single script to provide the desired output as per the requirement in a single report.
    Thanks & Regards Bedanta S Mishra

  • How to trigger IDOC in a batch job?

    hi,
    My requirement is that a batch job must run on R/3 side to check if bank data are created or changed.Any creation or update in table BNKA will trigger an IDOC
    If a record is created IDOC BANK_CREATE01 should be triggered and
    If a record is changed/deleted IDOC BANK_CHANGE01 should be triggered
    A background program should run periodically (every hour) and check the table CDHDR for object class BANK.
    The program must check if any new entry exist in the table since the last run.
    New records can be identified according to the fields UDATE and UTIME.
    According to the change indicator (CHANGE_IND) the program will determine if the IDOC_CREATE (changeID=I) should be run or IDOC_CHANGE (changeID=U or D).
    If change ID=D, then deletion indicator will be set in the CHANGE IDOC.
    Can anybody tell me how will i write the code for this and how to trigger IDOc as i very basic knowledge in ABAP
    Thanks & Regards,
    Loveena

    hi
    whenever changes made to an application document.u want to replicate these changes in target system u have to work with cahngepointers
    RBDMIDOC is the program which u have to schedule background
    regards
    Nagesh.Paruchuri

  • How to restrict the number of batch jobs used by middleware?

    Hi,
       I'm using middleware to replicate data which send IDOCs from one system to another. I know on source system, I can use SMQS to restrict the number of connections. But on target system, can I use any tool to restrict number of batch jobs? Because every time when replicating data, all batch jobs are occupied.
       Thanks a lot!

    Priya:
    It is likely that the BLOB content defined in your table is being stored 'Out-of-Line'. This means that the LOB columns are stored in segments of their own. These then are the segments that may need shrinking.
    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14249/adlob_tables.htm#i1006363
    Varad

  • How to do debugging for a batch job?

    Hi Colleague,
    I created a batch job via t-code sm36 in SAP GUI, and added a report to this batch job, there is no problem to run this report directly, but fails to run the batch job. How can I do debugging for this batch job?
    Kind Regards
    Andie

    Hi Arun VS,
    Now I can do debugging, when I invoke the following standard function module, there is a dialog box popped up for doing security check. How can I prevent it from being popped up in a batch job?
    CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          filename                = lv_full_path
          filetype                = 'ASC'
          codepage                = lv_codepage
          write_bom               = ip_bom
        IMPORTING
          filelength              = lv_file_length
        TABLES
          data_tab                = gt_xml
        EXCEPTIONS
          file_write_error        = 1
          no_batch                = 2
    Kind Regards
    Andie

  • How shall I cancel /kill the Batch job that is to be scheduled daily in BI.

    Hello Experts,
    We have a background batch  job used to trigger an event to execute the Porcess Chain that is to be scheduled daily in BI.
    Now we don't required this functionality any more.So I try to cancel this job using transaction SM37 but unfortunately I am not able to cancel/ kill the job.
    How shall I handle this issue.  
    any suggestions please.
    Thanks & regards

    Hi
    Select your process chain in the planning view
    Right click on the start varaint and display all jobs,
    It will show you the job scheduled, Finshed everything.
    Select the job which is scheduled or released and Delete the job.
    Else go to SM37 , enter the job, delete the scheduled job there.
    Regards
    M.A

  • How to do equivalent of Mainframe batch jobs in Oracle

    Hi Everybody ,
    We are considering to move our application from mainframe to Oracle , our present day application relies heavily on mainframe batch jobs for report generation and other purposes, I was wondering what are the similar batch options we have in Oracle .Any feedback is most welcome.
    Thanks in advance ,
    Sanjay

    (Your question was posted to the forum dealing with Oracle's Application software so it's somewhat off topic.)
    However, Oracle does include a Job schedule capability (DBMS_JOBS) as part of the database, as well as other neat capabilities including a full blown Workflow and Message Queue - all built into the database.
    In addition, you might want to consider looking at the Oracle9i Application Server as that includes comprehensive (paper and web based) reports and (web based) ad-hoc query.
    Strongly urge you to contact a sales rep and ask for technical discussion on these capabilities.

  • How to use Any connect before login windows?

    Dear All,
    Right now i have issue on Any connect VPN, all my clinet join Domain and i want connect any connect VPN before login windows. i mean that all user and password veryfy from DC. Is any connect VPN can do connect before windows loggin?
    Best Regards,
    Rechard

    http://www.google.co.uk/search?q=cisco+anyconnect+start+before+logon&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a
    http://www.cisco.com/en/US/products/ps6120/products_configuration_example09186a00809f0d75.shtml
    http://www.cisco.com/en/US/docs/security/vpn_client/anyconnect/anyconnect22/administration/guide/22admin4.html
    HTH>

  • Turn off Spool Printing for MRP Batch Job run

    Hi Experts,
    Please tell on how to turn off the printing of a Batch Job which is an MRP Batch Run. Can this be done while creating the Job? We really don't need the prinout for this job. Thanks.
    Points will be awarded.
    Regards,
    LM

    Yes, this can be done while scheduling a job. When creating a job step (transaction SM36) there is a button "Printer specifications". Select any printer there and option "Send to SAP spool". Spool request will be created but it won't be printed out.
    If you are using RMMRP000 program, you also might want to uncheck "Display material list" checkbox on the selection screen. If using other program, see if there is an option to disable the log.

Maybe you are looking for

  • Airport Radar has a square in the signal strength

    I am attending a university in LA and while in my dorm room I look for a wifi signal and there are two available. When I choose one the signal radar in the menu bar shows a full signal but there is a small SQUARE in the middle of it. I go to safari a

  • Imac performance question.

    After recently poking and prodding Logic Express, I've come to realization my computer isn't really cutting it. I run a late 2004 1.8ghz PowerMac with 4gb of ram. I could upgrade the ram a bit, but my understanding is that won't help as much as a fas

  • Why can't I restore to a single partition

    a few months ago I partitioned about 60gb of my internal hd and installed windows 7 on that partition. However I've found I don't much like 7. I want to install xp instead. when I go to boot camp I get this. I hit continue and with either option I ge

  • How can I reduce other on iPhone 5

    I currently have 19gb

  • 5760 WLC Features

    The release notes for the new 5760 WLC mention that "profiling and on boarding" are not yet supported. http://www.cisco.com/en/US/docs/wireless/controller/3.2_0_se/release_notes/OL28115_3_2_se_rn.html Does this mean that when using ISE with Guest Ser