Rman batch file for windows

Hi,
I created two files for Rman.
One is showall.txt
Another one is rman.bat
rman.bat contains
rman target=sys/system @c:\showall.txt
showall.txt contains
show all;
list backup;
when i click the rman.bat,it is simply running indefinitely and no output display.
please tell any example script for RMAN on windows by scheduled.

Santosh Kumar wrote:
hi,
thanks for reply.I find that changed the file name rman1.bat insetad of rman.bat .bcz the name conflict with
RMAN.EXE si when the click that it's running indefinitly...........................Not a convincing reason...........My backup script name is also rman.bat, it runs fine.
Regards,
S.K.
Edited by: Santosh Kumar on Aug 15, 2009 7:02 PMI'd guess a pathing issue. Your directory with rman.bat probably comes first in your path. The OP probably had ORACLE_HOME/bin first, so rman.exe fired. It wouldn't have been 'running forever' so much as it was wating for input that the OP never provided.
Just my guess.

Similar Messages

  • Unix shell script to batch file for windows

    Hello all,
    Iam writing a program in java in unix environment and iam executing using shell scripts in unix this program is for client-server environment
    which look like this:
    For server:
    #! /bin/ksh
    export CLASSPATH=/user/vpp/jal/classes:$CLASSPATH
    #set var for filename config file
    export JAL_CONF_FILE=/user/vpp/jal/conf/JALapp.conf
    java -DJAL_CONF_FILE=$JAL_CONF_FILE jalsvr/JALTCPServer 7776for client side it is
    #! /bin/ksh
    export CLASSPATH=/user/vpp/jal/classes:$CLASSPATH
    echo $CLASSPATH
    java jalcl/JALTCPClient msoc05:7776my question is know i want to execute them in windows by creating batch files runsvr.bat, runcl.batbut how
    i gave PATH by giving JRE path but what is the replacement of export because iam having all class files
    in /jalcl for clients and /jalsvr for server but want to create this batch file in separate /bin folder how to do.please help me

    Thank you for reply ,
    And sorry by mistake question repeated twice,
    but when iam executing those batch files it is throwing some exceptions,
    in that file you did not mention to set the JRE path whether it is not necessary and also there msoc05 is the machine name of unix system that need to kept or need to be changed with window IP address .please reply.
    thanks in advance.

  • Batch file for Rman

    hi,
    i want to backup the tablespace by batch file in windows and shell script.i am using control file for rman
    I created two files in windows
    first one is test.bat,second one is trail1.txt
    test.bat contains
    rman target sys/sastha
    *@c:\Oracle\Ora92\d.bat*
    trail1.txt contains
    shutdown immediate;
    startup mount;
    backup tablespace users;
    alter database open;
    exit;
    exit
    but when i executed first file run but it didn't call second file.where i made the mistake.
    thanks
    with regards,
    Edited by: user3266490 on Apr 15, 2009 5:15 AM

    user3266490 wrote:
    hi,
    i want to backup the tablespace by batch file in windows and shell script.i am using control file for rman
    I created two files in windows
    first one is test.bat,second one is trail1.txt
    test.bat contains
    rman target sys/sastha
    *@c:\Oracle\Ora92\d.bat*
    trail1.txt contains
    shutdown immediate;
    startup mount;
    backup tablespace users;
    alter database open;
    exit;
    exit
    but when i executed first file run but it didn't call second file.where i made the mistake.
    thanks
    with regards,
    Edited by: user3266490 on Apr 15, 2009 5:15 AMtest1.bat contains no reference to trail1.txt. It does reference d.bat. What's up with that?

  • HOw to create a Batch file for java application and whats the use of this ?

    HI,
    How to create a Batch file for java application ?
    And whats the use of creating batch file ?
    Thanks in advance

    First of all, you're OT.
    Second, you can find this everywhere in the net.
    If you got a manifest declaring main class (an classpath if needed), just create a file named whatever.bat, within same directory of jar file, containing:
    javaw -jar ./WhateverTheNameOfYourJarIs.jar %*By the way, assuming a Windows OS, you can just double click the jar file (no batch is needed).
    Otherwise use:
    javaw -cp listOfJarsAndDirectoriesSeparedBySemiColon country/company/application/package/className %*Where 'country/company/application/package/' just stands for a package path using '/' as separator instead of '.'
    Don't specify the .class extension.
    Javaw only works on Windows (you asked for batch, I assumed .BAT, no .sh), in Linux please use java.exe (path may be needed, Windows doesn't need it 'cause java's executables are copied to system32 folder in order to be always available, see PATH environment variable if you don't know what I'm talking about) and use ':' as classpath (cp) separator.
    The '%***' tail is there in order to pass all parameters, it only works on Windows, refer to your shell docs for other OSs (something like $* may work).
    This way you have a command you can call to launch your code (instead of opening NetBeans just to see your app working). You could schedule tasks on it or just call it in any command prompt (hope you know what it is 'cause there have been people in this very same forum with no clue about it, if not just hold the 'Windows button' and press 'R', then type 'cmd' and run it).
    Finally add dukes and give 'hem away.
    Bye.

  • I can't open batch files in windows 8.1

    I am trying to run a batch file in windows 8.1, when i run the batch file runs at first but closes so fast that you can't see its contents, you can't even see if its doing what you tell it to. Since the file does run but closes fast, i thought of adding
    pause. Adding pause did not fix the problem. I am not sure if i have to change my keys on regedit, or i have some kind of malicious software  that needs to be fixed  ( I think i have no malicious software, i  have run security scan many times
    nothing showed up, I had a Trojan horse, Trojan.Gen2, long time ago but the Trojan got quarantined?) I originally had windows 8 but upgraded to windows 8.1. 
    Help Please! I don't Know what to do!!!

    Hi Glogikon,
    "I am trying to run a batch file in windows 8.1, when i run the batch file runs at first but closes so fast that you can't see its contents, you can't even see if its doing what you tell it to."
    According to my experience ,it is a normal symptom .Did the bat file run well before ?
    Have you tried to run the command one by one in the bat file from a command line ?Have you tried to run the other bat files which including a output to have a check ?
    If it is possible ,please post the command of the bat file here .We will make a test for you .
    To check whether the bat run well ,this link may be useful:
    check if command was successfull in a batch file
    http://stackoverflow.com/questions/14691494/check-if-command-was-successfull-in-a-batch-file
    " I think i have no malicious software, i  have run security scan many times nothing showed up,"
    We can try to work with the following official free tool to have a check .It is recommended to run it in a safe mode to improve the quality of the scanning.
    Malicious Software Removal Tool
    http://www.microsoft.com/security/pc-security/malware-removal.aspx
    NOTE: This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites.
    Best regards
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Batch file for IE settings

    Hi everybody,
    I want to make some changes to IE settings of many PCs to be able to open a tool which willl be used by all users using the systems..
    Since same settings are to be applied to different systems. I want to create a batch file for it .
    Settings are :
    1.Go to internet Options-- security--sites--trusted sites and and the site
    https://abc.com under it
    2.Set security level for this zone as Low
    3.Check enable protected mode
    4.Go to internet options--settings--privacy and uncheck Turn on Pop-up blocker
    5.Go to tools--compatibility view settings and the site
    https://abc.com under it . Check option - display intranet sites
    in compatibility view
    I did some research on net and found that all these settings are done by changing entries in registery.
    The site http://support.microsoft.com/kb/182569 gave lot of info on what various codes mean . But since I am new to creating
    batch files , it does not help me in writing commands. Little more research showed me that my commands would be something like
    reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\Internet Settings" /.....................
    However I cannot use trial and error as any unwanted change to registery may cause damage to my systems .
    It would really be very helpful if anyone can help me with his/her expertise in batch files and reg files.
    My target will be for IE8/9/10/11 preview . I am assuming the commands would be same for these versions which are comparitively new.
    Thanks,
    Mani
    manISRT

    Hi,
    this is a very broad topic, with quite a few scenarios, and potentially lots of complexity.
    Here are some thoughts I have written down for you to consider:
    Firstly, you really need to understand the basics of IE Zones, and how it is that addresses are categorised into each zone.
    There are default settings for each zone, and these are initially defined by MS, but you, or the user can, and may, have changed which zone is active, in which situation.
    E.g., if you are dealing with pc's in your organisation and under your control, vs pc's not in your organisation and/or not under your control.
    For pc's which are in your organisation, are they used only inside your office network, or are they also used outside your office network?
    Are the pc's under your control managed by Active Directory (are they members of your organisation's AD Domain?
    Does your office network use a network firewall or proxy, and the pc's inside gain access to the internet by "traversing" this proxy?
    Is the website you mention, "inside" your organisation's network, or, "outside" your organisation's network?
    If outside, how do your organisation's pc's currently become configured for internet access?
    Do they have configurations applied to the pc's, such as proxy settings? If so, does this use Proxy Auto Configuration (PAC) or INS, such as wpad.dat or proxy.pac?
    Note that if you adjust site-to-zone settings, and/or settings for a particular zone, other websites which are categorised into that zone will also attract the adjusted settings, so you need to ensure that any changes you make, are suitable for those other
    websites too.
    Is the website address part of your organisation's domain name, or a domain name that you already have particular settings for?
    Is the website/address and the content upon it controlled by your organisation?
    For compatibility view, depending upon the IE browser version, there are different methods available, you may not need to adjust the browser settings if the webpages are suitably constructed:
    Does the website specify <!DOCTYPE  ?
    Does the website supply X-UA-Compatible metatag?
    You can deliver most settings for IE in a few different ways:
    - AD GPO (you can use Group Policy Admin Templates, or, Group Policy Preferences)
    - IEAK (you can deploy a settings package with or without deploying a version of the browser)
    - registry settings (which you can deploy using scripts or batch files)
    - get the user to manually apply the settings via the user interface
    Note that some settings may need to be applied per-user (HKCU) and some settings are per-machine (HKLM).
    If you have a multi-user or hotdesk scenario (where more than a single user, uses the same machine), this might require you to re-apply the settings for each and every user.
    E.g.:
    Your organisation is wanting to use a hosted web application, accessed from inside your organisation, but it is hosted outside your ogranisation.
    The address is http://contoso.websales.hosterxyz.com
    You examine your existing pc configurations and determine that the IE Trusted Sites zone is not currently in use by any standard configurations.
    The hosted web application requires IE Protected Mode to be disabled (because of some special functions/features).
    You examine the default settings of the IE Trusted Sites zone, and observe that the Trusted Sites zone already has Protected Mode disabled.
    You decide to categorise the website "http://contoso.websales.hosterxyz.com" as a Trusted Site.
    On a test pc, you manually add the website "http://contoso.websales.hosterxyz.com" to Trusted Sites, and test the web application is operating correctly.
    You then create an AD GPO, which adds this website address into the Trusted Sites zone, and link/apply/deploy this GPO within your AD.
    Your organisations computers automatically read, process and apply this GPO, and all computers are now configured for this website as a Trusted Site.
    Note that if you use the "classic" GPO methods (Admin Templates), users can no longer manually adjust websites in or out of the Trusted Sites zone, because when "classic" GPO is deployed, it removes the ability for users to adjust these
    settings manually.
    This may be suitable for your organisation, or, unsuitable - it depends upon the degree of "freedom" you wish/need to allow.
    Alternately, you could use IEAK or GP Preferences, to deploy the Trusted Sites settings - these two methods allow the end-user to manually adjust if they choose. This means the end-user can remove the settings you deployed.
    Again, this may (or not) suit your scenario.
    Don
    (Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
    This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!)

  • Looking to build a batch file for BCDedit

    I'm trying to build a batch file for bcdedit to get the variable off of one of my boots for the identifier to use to build my dual boot system.  I've been testing with trying to just get the identifier but I'm unable to get the variable when I try.
    Any help will be greatly appreciated!
    I've ran all the steps individually and they function like they are supposed to.
    Here is the basics. 
    First I need to change the descriptions around so
    bcdedit /set {current} description "Staff"
    bcdedit /set (insert variable for second boot) description "test"
    next I need to change order
    bcdedit /displayorder {current} /addfirst
    Last is to set the second drive partition
    bcdedit /set (insert variable) device partition=D:
    bcdedit /set (insert variable) osdevice partition=D:

    This is how I was finally able to get it up and working.  I just got it this morning.  I did end up having to use powershell:
    #Set the colors for the console window
    $Host.Ui.RawUi.BackGroundColor = "Black"
    $Host.Ui.RawUi.ForeGroundColor = "White"
    #Clear the screen
    cls
    Function WriteValue ($Label, $Value)
        Write-Host $Label -foregroundcolor "Gray" -NoNewLine
        Write-Host ": " -foregroundcolor "Gray" -NoNewLine
        Write-Host $Value
    Function WriteSuccess
        Write-Host ": " -foregroundcolor "Gray" -NoNewLine
        Write-Host Success -foregroundcolor "Green"
    $otherboot = bcdedit /enum `
      | Select-String "path" -Context 2,0 `
      | % { $_.Context.PreContext[0] -replace '^identifier +' } `
      | ? { $_ -ne "{current}" }
    bcdedit /set $otherboot description "Test"
    bcdedit /set $otherboot device partition=D:
    bcdedit /set $otherboot osdevice partition=D:
    WriteValue "Boot ID is" $otherboot
    WriteSuccess

  • How to get .Xap file for windows(8.1) app in visual studio 2013

    Hi ,
    I am creating an app that supports for windows tablet using visual studio 2013.For windows Phone  in bin folder i can see ProjectName.xap file these file can be submitted to store.But I could not see xap file for windows apps in visual stuido.What file
    I should use to upload my project to store.
    Thanks,
    Alok

    Additionally, xap extension only for Windows Phone Silverlight also some other Silverlight project.
    --James
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to create a Batch file for java application  ?

    HI,
    How to create a Batch file for java application ?
    And whats the use of creating batch file ?
    Thanks in advance

    [http://static.springsource.org/spring-batch/]
    Assuming you want to develop a batch application rather than actually just create a .bat file ..

  • How to run a batch file as windows Nt service

    Hi friends
    I want to know how to run a batch file as windows NT service.
    I got some information in the following link
    http://support.microsoft.com/kb/q243486/
    I tried it but i want to know what we need to include in Autoexnt.bat
    And one thing i need Instexnt.exe file. I cannot find tht file.
    Please search tht file and send me tht file or else send the link in which this file is present
    Please give me reply fast.its very urgent.
    Thanks in advance.

    Hi,
    My aim is to run a MS-DOS Batch file, that I created to run a Java Prgram.
    I need to call the Batch File from the Oracle Procedure, Also I may need to change the content of the Batch File (Argument to the Java JAR File ).
    I can keep the JAR FIle either in the Oracle Server or in the Application Server.
    The Java program is to convert XML Format FIle to PDF and MS Word format.
    Oracle Version : 10g 2.0.1.0.
    Thanks in advance
    Rizly

  • Problem with ipad 2 safari cannot download the file for windows live photo gallery

    on ipad 2 safari cannot download the file for windows live photo gallery

    What you can download via Safari on the iPad is very limited - you can only download apps from the iTunes app store on your computer to sync to the iPad, or from the App Store app directly on the iPad

  • How to make installer file for windows?

    Hi,
    I want to make a installer file for auto installing the ssl certificate. My folder contains following files:
    1. importpfx.exe
    2. Main.java
    3. Main.class
    4. TestCertificate.p12
    I want to bundle above files into a single setup file.How should it be done?
    Thanks in Advance

    If you want to make an installer file for windows, i think below link is suitable for your requirement. I never tried this approach of creating the installer file of java applications. But while reading the description of it, i thought that it may suits to your requirement.
    Here is the link : http://www.ej-technologies.com/products/install4j/overview.html
    Description : install4j is a powerful multi-platform Java installer builder that generates native installers and application launchers for Java applications. install4j excels in its ease of use, its extensive platform support and its powerful screen and action system
    Thanks,
    Uday.

  • Batch File for .msi

    Hi,
    Can anybody direct me to a link with a .bat file that will install .msi file for Windows 7 from local computer?
    Thanks in advance

    Hi,
    Just put your msiexec command into a text file and save it with a .bat extension.
    https://technet.microsoft.com/en-us/library/cc759262%28v=ws.10%29.aspx
    Don't retire TechNet! -
    (Don't give up yet - 13,225+ strong and growing)

  • To install Photoshop CS6, I have already downloaded the 2 files for Windows.  How can I activate the product?

    To install Photoshop CS6, I have already downloaded the 2 files for Windows.  How can I activate the product?

    I am having the same problem. I did download the two files and started the .exe file. The .exe file appears to run downloading files. When the bar is full the window dissapears without any options. Both files are in the same folder. any thoughts?

  • How can I fix error code 131:4? Licensing for this product stopped working. I have windows vista home edition and CS4 Design Premium. I downloaded licensing zip file for windows but I can't seem to get it to launch. Look forward to help from anyone

    How can I fix error code 131:4? Licensing for this product stopped working. I have windows vista home edition and CS4 Design Premium. I downloaded licensing zip file for windows but I can't seem to get it to launch. Look forward to help from anyone

    Steve,
    I appreciate your answer.  While it might work, I'm a bit hesitant to remove the other programs as a possible solution since they are all currently working.
    With Acrobat 9 Pro failing with the OS 10.7 upgrade, I'm hoping that there is a less severe solution.
    Since the trigger appears to be 10.7 and may have something to do with the discontinued support of Rosetta, I could be spending a few hours working on a reinstall without a change.  Yes, it might work.  The "might" is the part that makes me hesitate.
    Is anyone else out there on OS 10.7 and running Acrobat 9 Pro?  Any issues with anyone else?
    Thanks Steve.  I do appreciate your offering a solution.  I may end up trying it if nothing else comes together.
    Mark

Maybe you are looking for

  • I have to force quit mail every time I want to shut down my macbook

    I know there are several other posts asking the same question but I've been through all of them and I can't find which is the application that is blocking my mail from closing. Here is the diagnostics test I ran. Last login: Sun Feb 24 08:52:33 on co

  • Assigning values to database types

    Hi I've created some types like the ones below but I can see how to assign a value to the fred_complex_obj using pl/sql. Does anyone know? Thanks, create or replace type fred_phone_obj AS OBJECT (telephone_number varchar2(20) , telephone_type VARCHAR

  • Dictionary for spell checking

    Hi, why can't I change the dictionary that Pages uses for spell checking as I can in any other application? Best Regards, Michael

  • IOS: Unable to update or restore

    ois 7 has stalled on phone , have tried restalling and restoring and get error message 21 unable to restore, have followed advice and turned off antivirus and firewal but still cant get past it

  • 9i RAC DBs management notes/documents

    Looking for some good source to study for 9i RAC DBs administration...