Bat file to Start Service.

Hi All,
 I need a bat file to restart one of the service when user login to the PC. These users are not local admins so they cannot start this service. 
net start "Service Updater"  give and access denied.
This service  have to run as  SUser not as System account. 
so how do i run this bat file with above user credentials?
As
This topic first appeared in the Spiceworks Community

Okay this is what you do the fix this problem.
1. Uninstall the oracle home for OWB
2. Make sure that the oracle home directory you unistalled is removed from the hard drive
3. re-install the OWB software
4. drop the owb users and repositories you created earlier
5. using the advanced install path reinstall owb repositories and user accounts to NEW user accounts (OWBRT_SYS will remain the same however)
6. start the control service -- this should work now.

Similar Messages

  • About the bat file to start and stop the weblogic server10.3

    I am using windows 2003 os.
    i installed the WLS 10.3 .
    can anyone help me how to write the bat file for starting and stoping the weblogic server instance.so that it willl run as background service.
    I am new to this .Please suggest me
    Any help is appreciated.
    Thanks
    Sailaja.

    Hi David,
    yes.i am talking about Admin server.
    when i am creating the new domain,i didn't encounter any prompt asking me to run the Admin server as windows services.why i am not getting this prompt?where exactly i will get this prompt while creating domain.
    i am using the weblogic 10.3
    how can i make the admin server as windows services.
    Thanks
    Sailaja.
    Edited by: sj0609 on Dec 2, 2008 4:02 PM

  • Run .bat file as windows service

    want to ran a .bat file as windows service kindly help me on this through step by step guide.

    Wrong forum. This one is for Forum Issues. So we could move it if you have a forum in mind.
    Thanks!
    Ed Price, Power BI & SQL Server Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

  • I installed ims 5.2 in w2k professional.when i start services using start-msg bat file, job controller service gives 1067 system error.have anyone worked successfully with ims 5.2 on w2k professional.

     

    See previous Q&A on this site, but I believe the answer is no. Not only is this not supported, but it does not work.
    If you have to have Windows 2K then to make things work use iMS 5.1. I've heard that this will function. If you have to have iMS 5.2 then switch to a supported configuration.

  • How to start manually an oracle 8i database with a bat file?

    Hi all,
    I know it's not the place but it is a really common question: how can i start manually an oracle 8i database on windows 2000 without using a service? I don't remember the command. I tried: oracle start SID without success...
    Thanks
    JMi

    Dear JMD,
    If you would like to startup the Oracle instance using a batch file then first create a SQL file (say ABC.SQL) wherein enter the following two lines:
    connect internal/<INTERNAL_PASSWORD>
    STARTUP
    <INTERNAL_PASSWORD> above is the password for the INTERNAL user account (default password is "oracle")
    Then create a batch file (say START.BAT) and enter the following single line:
    <ORACLE_HOME>\bin\svrmgrl @<ABC_DIR>\ABC.SQL
    where <ORACLE_HOME>\bin\svrmgrl is the full path of the SVRMGRL.EXE executable and <ABC_DIR> is the directory in which you have placed the ABC.SQL file.
    Now you can startup the Oracle database by simply double-clicking on the START.BAT batch file.
    Ciao!
    null

  • Batch file to start and stop services

    I've setup a CF Probe on my Development Server to ensure my
    CF Production server is up and running (services = Apache and CF
    Application Server). It checks the PROD login page and if it times
    out in 30 sec the probe fails. I understand I can execute a file
    (batch file with net start and net stop) but the problem is I need
    to have the probe somehow point to the .bat file on the PROD server
    and not on the local machine. How can I remotely access this batch
    file and execute it? I don't know how to point to the file on the
    other server... can anyone help?

    Hi Ken,
    You had pointed me in the right direction regarding the
    psstools in order to create a batch file that can remotely start
    and stop services.
    i used the psexec command and am able to successfully restart
    the services needed remotely... however when i pick the file in the
    coldfusion administrator (in the probes section) how to i point to
    the batch file to run? it seems like the probe is not running the
    script like i want... the file is located on the c:\ so i entered
    c:\test2.bat...
    Thanks,
    Matt
    Matt,
    You should review the online help in the cfadmin for probes
    and the links it points you to in the developer's guide. Basically
    you need to define a new probe in the cfadmin by clicking the
    "Define New Probe" button. One of the probe's attributes will be
    what action. Define the action as a program and point it at a batch
    file running psexec. You will probably need to run CFMX as a
    specific user and not as localsystem, which is the default.

  • Stopping/Starting Portal via BAT file on Windows

    In our landscape we have the ABAP and JAVA stack installed on separate servers for security reason.  We are trying to implement windows updates via SUS and need to automate the stopping and starting of SAP.  The bat file that was created works when stopping and starting the ABAP portion of SAP but on the Portal server it will take it down but when trying to start Portal, the J2ee Server will not start, but when I use the SAP MMC all servers starts up without any problem.  Below is the start up bat file, any assistance will be greatly appreciated:
    REM start of script
    PATH=%path%;G:\usr\sap\QBE\SYS\exe\uc\NTAMD64
    SET ORACLE_SID=QBE
    SET SAPDATA_HOME=K:\ORACLE\QBE
    REM
    REM
    REM ***** starting Oracle Services *****
    REM
    net start OracleQBE102TNSListener
    net start OracleServiceQBE
    net start OracleQBE102iSQL*Plus
    REM
    REM ***** starting SAP services *****
    REM
    net start SAPOsCol
    net start SAPQBE_00
    net start SAPQBE_01
    REM
    REM ***** starting SAP Instances ******
    REM
    G:\usr\sap\QBE\SYS\exe\uc\NTAMD64\startsap.exe name=QBE nr=00 SAPDIAGHOST=SAPEPQA
    G:\usr\sap\QBE\SYS\exe\uc\NTAMD64\startsap.exe name=QBE nr=01 SAPDIAGHOST=SAPEPQA
    REM
    REM end of script

    I looked up some training material and in TADM10 - Unit4 - Starting and Stopping a SAP NetWeaver AS Java.. the following is stated:
    Under Windows, the SAP system can also be started and stopped without a GUI by
    calling a command by means of the executable files startsap.exe and stopsap.exe. This
    can be done using a simple telnet access.
    To start an instance of the SAP system, open a telnet connection and enter the
    following command: startsap name=<SID> nr=<instance nr.>
    SAPDIAHOST=<hostname>
    To stop an instance of the SAP system, open a telnet connection and enter the
    following command: stopsap name=<SID> nr=<instance nr.>
    SAPDIAHOST=<hostname>
    For the SAPDIAHOST parameter, enter the name of the host on which the instance is
    to be started.
    So the script is correct, its all according to SAP advice... very strange

  • How can I use an java based app that starts via an inf or bat file?

    I have java exe application that is started using a .bat file and a java exe application that is started using an inf file. Both the .bat and inf prevent the respective application from kicking off.  Is there a way to convert these file types so that they execute on  my MacBook?

    I didn't expect you to have your customer run the command. I would expect you to create the executable and install it. However, there wouldn't be any difference in what you are creating and the .jar file. Either way it is a faceless icon. For that matter, it is no different than a batch file on Windows. I'm not sure what they wouldn't understand with, "copy the Vocab.jar file to wherever you want and double-click it to run the program." In addition, you probably ought to point out that Java is not installed on Mac OS X Lion (10.7.x) and when they double-click the jar file (or whatever you send them), the system will ask if they want to install Java.
    What you really need to do is package up the app inside a Mac application package and provide the user with the application on a .dmg (disk image). Take a look here: http://developer.apple.com/library/mac/#documentation/Java/Conceptual/Jar_Bundle r/Introduction/Introduction.html#//apple_ref/doc/uid/TP40000884
    I also found this which uses ANT to create the bundle: http://informagen.com/JarBundler/

  • Starting CS4 from bat file

    I can successfully start Photoshop from a .bat file (.bat file has the line "START Photoshop") when I'm logged onto my Vista user account.  But when I switch to the guest account and the bat file continues to run in my normal user session, it is unable to launch Photoshop.  A Microsoft Windows error box reports: "Adobe Photoshop CS4 has stopped working".  I'm able to start Bridge or notepad with this method, that is, with the bat file running in my normal account while logged in to the guest account.  Seems you have to be logged on directly for PS to launch.  Any experience with this?

    On what operating system? windows xp professional
    What script ? Ms Dos script (.bat file)
    With what version of Oracle? Oracle 9i
    and why would you want to? Every month I need a job which when called will load a certain file from a predefined path to the target Oracle database using sql loader.
    I haave not worked with control files in the recent past and have a faded memory regarding this usage.
    All i remeber is calling sqlldr from cmd prompt specifying the ctl files and stuff......
    any other ideas are welcome..... thnkx!

  • R12 upgrade , after 6678700, started services, listener.ora file missing

    Hi ,
    1)- Upgrading to r12 from 10.5.10.2
    2)- 6678700 completed (so far just for US, not NLS).
    3)-Just for testing purpose , when started services, got following errors related to listener.ora.
    Please help.
    Executing service control script:
    /u01/oracle/inst/apps/TEST_epiktest/admin/scripts/adalnctl.sh start
    script returned:
    adalnctl.sh version 120.3
    Checking for FNDFS executable.
    Starting listener process APPS_TEST.
    adalnctl.sh: exiting with status 1
    adalnctl.sh: check the logfile /u01/oracle/inst/apps/TEST_test/logs/appl/admin/log/adalnctl.txt for more information ...
    .end std out.
    grep: /u01/oracle/inst/apps/TEST_test/ora/10.1.2/network/admin/listener.ora: No such file or directory
    .end err out.

    grep: /u01/oracle/inst/apps/TEST_test/ora/10.1.2/network/admin/listener.ora: No such file or directoryPlease run AutoConfig and make sure it completes successfully -- AutoConfig will create the listener.ora file for you.
    Thanks,
    Hussein

  • .bat file result not giving correctly in data services

    Hi ,
    I am using .bat file to count the number of files in the folder. I want to capture the value of the number of files.
    I have written small .bat file as shown below
    @echo off
    setlocal enableextensions
    CD %1
    set cnt=0
    for %%A in (*) do set /a cnt+=1
    echo File count = %cnt%
    endlocal
    I have used this batch  file in the script as shown below.
    $COUNT =exec('D:\\test.bat', 'D:\\docs',8);
    print($COUNT);
    In the above $COUNT is varchar(255).
    actually i have only 11 file sin the docs folder . But it is giving the 442 files.
    If I run the same batch file in the windows cmd command I am getting the correct result.
    Please let me know what will be issues?
    I am unable figure out the issues for weird result when I am using DS.
    Please help me in this issue.
    Thanks & Regards,
    Ramana.

    Hi,
    While executing the batch file it is taking the Data services installation directory path as shown below.
    14504    6420    PRINTFN    3/30/2015 9:40:10 AM    0: C:\Program Files (x86)\SAP BusinessObjects\Data Services\bin  File count = 442
    I have changed the the batch file with two parameters. one for changing directory and another one for changing the folder.
    Now my batch file looks like this.
    @echo off
    setlocal enableextensions
    %1:
    CD %2
    echo %CD%
    set cnt=0
    for %%A in (*) do set /a cnt+=1
    echo File count = %cnt%
    endlocal
    Then my script is like this .
    $COUNT =exec('D:\\test.bat', ' D D:\\docs',8);
    print($COUNT);
    Now it is giving the expected result as shown below.
    14700    13912    PRINTFN    3/30/2015 9:52:18 AM    0: D:\Docs  File count = 11
    Thanks & Regards,
    Ramana.

  • Getting error while running ua.bat file of Oracle Data Integrator 12cR1 (12.1.2.0.0) version

    Hi,
    I am using windows 7 professional(service pack 1) 64 bit operating system.
    After installing the odi 12c (enterprise edition) by executing the odi_121200.jar file I am getting the following error while trying to run the ua.bat file.
    [2013-10-24T16:49:07.861+05:30] [Framework] [INCIDENT_ERROR] [UPGAST-00056] [upgrade.Framework] [tid: 1] [ecid: e9250ad8-50dc-45fe-83f5-5c01e7a7dcb4-00000001,0] error initializing upgrade plug-in for ODI.ODI1
    [2013-10-24T16:49:07.861+05:30] [Framework] [INCIDENT_ERROR] [] [upgrade.Framework] [tid: 1] [ecid: e9250ad8-50dc-45fe-83f5-5c01e7a7dcb4-00000001,0] Cause: An unexpected error occurred initializing an upgrade plug-in.
    [2013-10-24T16:49:07.861+05:30] [Framework] [INCIDENT_ERROR] [] [upgrade.Framework] [tid: 1] [ecid: e9250ad8-50dc-45fe-83f5-5c01e7a7dcb4-00000001,0] Action: Contact Oracle Support Services.  See the secondary error message for additional details.
    [2013-10-24T16:49:07.861+05:30] [Framework] [INCIDENT_ERROR] [] [upgrade.Framework] [tid: 1] [ecid: e9250ad8-50dc-45fe-83f5-5c01e7a7dcb4-00000001,0] [[
    java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
      at oracle.ias.update.plugin.Plugin.instantiatePlugin(Plugin.java:248)
      at oracle.ias.update.plugin.Plugin.<init>(Plugin.java:229)
      at oracle.ias.update.plugin.Plugin.getPlugin(Plugin.java:180)
      at oracle.ias.update.plan.PlanStep.getPlugin(PlanStep.java:335)
      at oracle.ias.update.plan.PlanString.<init>(PlanString.java:66)
      at oracle.ias.update.plan.PlanCustom.<init>(PlanCustom.java:74)
      at oracle.ias.update.plan.PlanStep.<init>(PlanStep.java:189)
      at oracle.ias.update.plan.PlanComponent.<init>(PlanComponent.java:203)
      at oracle.ias.update.plan.Template.load(Template.java:161)
      at oracle.ias.update.plan.Template.loadAllTemplates(Template.java:102)
      at oracle.ias.update.UpgradeDriver.loadConfiguration(UpgradeDriver.java:838)
      at oracle.ias.update.UpgradeDriver.main(UpgradeDriver.java:257)
      at oracle.ias.update.UpgradeDriver.main(UpgradeDriver.java:175)
    Caused by: java.util.MissingResourceException: Can't find oracle.ias.update.plugin.odi.bundle.ODIResourceBundle bundle
      at java.util.logging.Logger.setupResourceInfo(Logger.java:1518)
      at java.util.logging.Logger.<init>(Logger.java:265)
      at java.util.logging.Logger.<init>(Logger.java:260)
      at oracle.ias.update.UpgradeLogger.<init>(UpgradeLogger.java:60)
      at oracle.ias.update.UpgradeLogger.getLogger(UpgradeLogger.java:93)
      at oracle.ias.update.LoggingManager.create(LoggingManager.java:249)
      at oracle.ias.update.plugin.UpgradePlugin.createPluginLogger(UpgradePlugin.java:195)
      at oracle.ias.update.plugin.UpgradePlugin.<init>(UpgradePlugin.java:181)
      at oracle.ias.update.plugin.odi.ODIPlugin.<init>(ODIPlugin.java:136)
      ... 17 more
    [2013-10-24T16:49:07.869+05:30] [Framework] [ERROR] [UPGAST-00259] [upgrade.Framework] [tid: 1] [ecid: e9250ad8-50dc-45fe-83f5-5c01e7a7dcb4-00000001,0] The getInitialValue method for plug-in ODI.ODI1 will not be called due to a previous error.
    [2013-10-24T16:49:07.869+05:30] [Framework] [ERROR] [] [upgrade.Framework] [tid: 1] [ecid: e9250ad8-50dc-45fe-83f5-5c01e7a7dcb4-00000001,0] Cause: An error occurred when loading or initializing the plug-in which prevents the getInitialValue method from executing.
    [2013-10-24T16:49:07.869+05:30] [Framework] [ERROR] [] [upgrade.Framework] [tid: 1] [ecid: e9250ad8-50dc-45fe-83f5-5c01e7a7dcb4-00000001,0] Action: Review the log file for additional details.
    [2013-10-24T16:49:07.870+05:30] [Framework] [INCIDENT_ERROR] [] [upgrade.Framework] [tid: 1] [ecid: e9250ad8-50dc-45fe-83f5-5c01e7a7dcb4-00000001,0] UPGAST-00251: An error occured reading Upgrade Descriptor file ODI\INSTALLATION\odi12cInstallation_1\odi\plugins\upgrade\odi.xml
    [2013-10-24T16:49:07.870+05:30] [Framework] [INCIDENT_ERROR] [] [upgrade.Framework] [tid: 1] [ecid: e9250ad8-50dc-45fe-83f5-5c01e7a7dcb4-00000001,0] The file does not conform to the expected syntax.
    [2013-10-24T16:49:07.870+05:30] [Framework] [INCIDENT_ERROR] [] [upgrade.Framework] [tid: 1] [ecid: e9250ad8-50dc-45fe-83f5-5c01e7a7dcb4-00000001,0] See the secondary message for additional information. Contact Oracle Support.
    [2013-10-24T16:49:07.871+05:30] [Framework] [INCIDENT_ERROR] [] [upgrade.Framework] [tid: 1] [ecid: e9250ad8-50dc-45fe-83f5-5c01e7a7dcb4-00000001,0] UPGAST-00259: The getInitialValue method for plug-in ODI.ODI1 will not be called due to a previous error.
    [2013-10-24T16:49:07.871+05:30] [Framework] [INCIDENT_ERROR] [] [upgrade.Framework] [tid: 1] [ecid: e9250ad8-50dc-45fe-83f5-5c01e7a7dcb4-00000001,0] [[
    oracle.ias.update.exception.UpgradeException: UPGAST-00259: The getInitialValue method for plug-in ODI.ODI1 will not be called due to a previous error.
      at oracle.ias.update.plugin.Plugin.getInitialValue(Plugin.java:317)
      at oracle.ias.update.plan.PlanString.<init>(PlanString.java:67)
      at oracle.ias.update.plan.PlanCustom.<init>(PlanCustom.java:74)
      at oracle.ias.update.plan.PlanStep.<init>(PlanStep.java:189)
      at oracle.ias.update.plan.PlanComponent.<init>(PlanComponent.java:203)
      at oracle.ias.update.plan.Template.load(Template.java:161)
      at oracle.ias.update.plan.Template.loadAllTemplates(Template.java:102)
      at oracle.ias.update.UpgradeDriver.loadConfiguration(UpgradeDriver.java:838)
      at oracle.ias.update.UpgradeDriver.main(UpgradeDriver.java:257)
      at oracle.ias.update.UpgradeDriver.main(UpgradeDriver.java:175)
    Thanks and Regards
    Sunil

    ok - I think I've got it figured.  Appears to be a known issue.  You need to apply patch p17073913_121200.
    I downloaded that and applied to my Linux version - then re-ran the UA.  This time the GUI started and so now I'm going through the upgrade steps.
    The patch is generic, so should work for your windows environment too.  Good luck.

  • Creating new BAT file script to stop, restart and disable S I agent

    We have just installed BOXI3 and are in the process of updating some bat files for stopping, restarting and failover (to our backup servers)and disable services on the Central Configuration Manager.   In my old scripts we called each service  Examples (
    sc
    servername.net config "bobjspcengine" start= disabled                    
    sc
    servername.net config "BOBJWebiServer" start= disabled)
    I have a few  questions
    1.  Server Intelligence Agent... Where would I find it's name   like the BOBJWebiServer example?
    2.  If my bat file stops this agent does that automatically stop the CMS, Webi, Report services?
    3. This is for our support team in order to easliy stop Tomcat and other services for failing over to our DR sites and backups since the script automatically stops,  starts, restarts disables and enable services..., is this the best approach?   We put these bat files out on the servers and all they do is click on them to start the failover process.

    Try using
    Process Monitor for looking the key.
    For example, you may set the required value through the group policy and see what windows registry keys are changed.

  • Batch file to start and stop

    Hi All,
    Can we create a batch file to start and stop the services. I need to start all the services like shared, essbase, eas, planning, webanlysis and financial reporting, and at also need to stop them using windows batch file.(Using windows 2003 server....service pack 1). Any help would be appreciated.
    Thanks

    Hi,
    The simplest script would be something like this. Save it as a .bat file, set all your services to manual and then set up a scheduled task to run this script when the computer starts.
    Gee
    ::          Startup Script for Hyperion Services          ::
    date/t >> startup.log
    time/t >> startup.log
    echo "Starting Hyperion Services" >> startup.log
    net start "Hyperion S9 OpenLDAP" >> startup.log
    net start "Hyperion S9 Shared Services" >> startup.log
    :: Insert pause of 5 seconds to ensure HSS has finished starting
    ping localhost -n 6 >nul
    net start "Hyperion S9 BI+ Analytic Services 9.3.1 - Essbase" >> startup.log
    net start "Hyperion S9 Administration Services ATS5" >> startup.log
    net start "HyperionRMIRegistry" >> startup.log
    net start "Hyperion S9 Planning" >> startup.log
    net start "Hyperion S9 Provider Services ATS5" >> startup.log
    net start "Hyperion S9 Apache 2.0" >> startup.log
    net start "Hyperion S9 BI+ 9.3 Core Services 1" >> startup.log
    :: Insert pause of 10 seconds to ensure Core has finished starting
    ping localhost -n 11 >nul
    net start "Hyperion S9 BI+ 9.3 Workspace" >> startup.log
    net start "Hyperion S9 BI+ 9.3 Financial Reporting Java RMI Registry" >> startup.log
    net start "Hyperion S9 BI+ 9.3 Financial Reporting Print Server" >> startup.log
    net start "Hyperion S9 BI+ 9.3 Financial Reporting Report Server" >> startup.log
    net start "Hyperion S9 BI+ 9.3 Financial Reporting Scheduler Server" >> startup.log
    net start "Hyperion S9 BI+ 9.3 Financial Reporting Web application" >> startup.log
    net start "Hyperion S9 BI+ 9.3 Web Analysis" >> startup.log
    date/t >> startup.log
    time/t >> startup.log
    echo "Finished Starting Hyperion Services" >> startup.log
    echo "###################################################################" >> startup.log

  • Unable to start service

    i'm trying to execute the simpleconnection.java, and the messag error is diplayed:
    Exception = oracle.ifs.common.IfsException: IFS-20102: Unable to start service (IfsDefault)
    oracle.ifs.common.IfsException: IFS-20010: Unable to get service configuration properties (IfsDefault)
    java.util.MissingResourceException: Can't find resource for base name oracle.ifs.server.properties.IfsDefault, locale fr_FR.
    the listing of the program is:
    package oracle.ifs.examples.documentation.connection;
    import oracle.ifs.beans.LibraryService;
    import oracle.ifs.beans.LibrarySession;
    import oracle.ifs.common.CleartextCredential;
    import oracle.ifs.common.IfsException;
    public class SimpleConnection
    * Connect to the Oracle 9iFS server. The arguments (args) are
    * IfsService, IfsServicePassword, UserName, UserPassword.
    public void static main (String[] args)
    // Use the IfsService and IfsServicePassword to start the service.
    LibraryService service =
    LibraryService.startService(args[0], args[1]);
    * Use the UserName and UserPassword to instantiate a
    * CleartextCredential object.
    CleartextCredential cred =
    new CleartextCredential(args[2], args[3]);
    LibrarySession ifsSession = service.connect(cred, null);
    // This is the place where you insert the part of the
    // program that actually does something.
    //Disconnect the session.
    session.disconnect();
    and the command of execution is:
    c:\>SimpleConnection IfsDefault ifssys system manager
    what is a service name ? and how can i do to resolve this problem ?
    if there is any suggetions, please let me know.

    From your command prompt, make sure to run 9ifs/bin/ifsenv.bat.
    Backup the 9ifs/cl/ifsclasspath.cl file.
    In the backup files, replace "$" with "set " in the file 9ifs/cl/ifsclasspath.cl and copy and paste the output into your command prompt.
    Between the ifsenv.bat and the cl file, most of your environment variables (including IFS_CLASSPATH) will be set.
    Then type the following line:
    set CLASSPATH=%IFS_CLASSPATH%;%CLASSPATH%
    This will set your classpath correctly and you should not get that error.

Maybe you are looking for