How to check system status from Windows command line?

Does anyone has an idea how to check system status from Windows command line? In UNIX we use startsap check, unfortunately I didn't find an appropriate command provided by SAP.
The only idea we have is to use
tasklist /FI "Username eq SAPService<SID>" | find "disp+work"
which isn't as nice as startsap check.

Hi,
In windows you can use the command
go to profile directory in command prompt and the give the following command to check the status of the instance.
sapstart check pf=START_DVEBMGS<nr>_<hostname>
that means you need to mention start profile or instance profile. So that it will say whether the instance is running or not.
If you want any other information please reply back to me.
Thanks,
Chaitanya.

Similar Messages

  • Run Scripts from windows command line

    Hi, We're creating a test enviroment and we need to "rebuild" our Database (Tablespace) from scratch everytime we run a test.
    What we need is to run all scripts files from windows command line, there is any command or application we can use here?
    thanks.
    Fernando.

    Create a scripts.bat file with something like this in it:
    @sqlplus -S username/password@connect @scriptname.sql

  • How to execute a scenario from Windows command prompt

    Hi,
    I have a package which is executing fine from Designer. But the same scenario if I am trying to execute from windows command prompt, then it is giving error.
    The package is getting a refresh variable, passing to interface which is creating a file from table, this file is then getting FTP'ed to another server.
    I am executing following command -
    startscen OB_TAB_TO_FILE_PKG 001 ODICTX "-v=2"
    The error is -
    A JDK is required to execute Web Services with OracleDI. You are currently using
    a JRE.
    OracleDI: Starting scenario OB_TAB_TO_FILE_PKG 001 in context ODICTX ...
    java.sql.SQLException: socket creation error
    at org.hsqldb.jdbc.jdbcUtil.sqlException(jdbcUtil.java:67)
    at org.hsqldb.jdbc.jdbcConnection.<init>(jdbcConnection.java:2451)
    at org.hsqldb.jdbcDriver.getConnection(jdbcDriver.java:188)
    at org.hsqldb.jdbcDriver.connect(jdbcDriver.java:166)
    at com.sunopsis.sql.SnpsConnection.u(SnpsConnection.java)
    at com.sunopsis.sql.SnpsConnection.c(SnpsConnection.java)
    at com.sunopsis.sql.i.run(i.java)
    DwgJv.main: Exit. Return code:-1
    Please let me know where I am going anything wrong.
    Thanks,
    Himanshu

    Hi,
    you need to make the necessary changes to the %odi%\bin\odiparams.bat config file, under the "Repository Connection Information" section so that startscen knows how to extract metadata from your repository.
    You apparently have left the default settings to the Hypersonic demo repository. Is that the technology your repository is hosted on?

  • How to check import status in Windows??

    Hi,
    Import is running in my Wndows box.The log file is not updating from since long time. How to check the status of the import job??FYI its oracle 10g.
    And i checked from databse that.
    FYI
    ===
    Select * from DBA_DATAPUMP_SESSIONS;
    no rows selected.
    select * from DBA_JOBS_RUNNING;
    no rows selected
    select username,machine,module,sid,state,event,seq#,seconds_in_wait from v$session where type<>'IMPORT' and username='AUTOTIME';
    no rows selected
    Plz let me know.

    Hi
    use the below script two times and check the output.
    select
    substr(sql_text,instr(sql_text,'into "'),30) table_name,
    rows_processed, round((sysdate-to_date(first_load_time,'yyyy-mm-dd hh24:mi:ss'))*24*60,1) minutes,
    trunc(rows_processed/((sysdate-to_date(first_load_time,'yyyy-mm-dd hh24:mi:ss'))*24*60)) rows_per_minute
    from
    sys.v_$sqlarea
    where
    sql_text like 'insert %into "%' and command_type = 2 and open_versions > 0;
    KK

  • How to burn CD's from the command line in 2009?

    I've always managed to burn CDs and DVDs from the command line but I haven't done it in a long time. cdrecord wasn't working as root and I noticed it was just a symlink pointing to wodim.
    I tried the following command as root in a directory with some wav files:
    # cdrecord -dev=/dev/sr0 -driveropts=burnfree -audio -pad *.wav
    Which gives me:
    Mar 6 08:43:18 wilco ata7.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
    Mar 6 08:43:18 wilco ata7.00: cmd a0/00:00:00:00:00/00:00:00:00:00/a0 tag 0
    Mar 6 08:43:18 wilco cdb 35 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    Mar 6 08:43:18 wilco res 40/00:02:00:0c:00/00:00:00:00:00/a0 Emask 0x4 (timeout)
    Mar 6 08:43:18 wilco ata7.00: status: { DRDY }
    Mar 6 08:43:18 wilco ata7: hard resetting link
    Mar 6 08:43:19 wilco ata7: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
    Mar 6 08:43:19 wilco ata7.00: configured for UDMA/100
    Mar 6 08:43:19 wilco ata7: EH complete
    This worked for me in 2008, so has anything big changed?

    Rasi wrote:
    Wilco wrote:
    Dieter@be wrote:I did not follow the discussion, but I just use wodim as specified on http://wiki.archlinux.org/index.php/CD_Burning_Tips, and that works great for me.
    Hmm strange, I tried the same command as in my first post and it works fine with the real cdrtools but not with wodim (I also tried k3b and that failed too). So I just stick with cdrtools
    Hooray, one more convert
    I haven't really followed the discussion either but why choose an "emulated cdrecord" that doesn't work instead of the real program that works great?

  • How to create an alias from the command line

    Hi
    I would like to know how to create an alias (for a file, not a command) from the command line. I don't want to use the ln command, as an alias has more interesting features than soft/hard links... Is there an Apple specific tool to do this?
    Thanks
    -Jerome
      Mac OS X (10.4.10)  

    The only straightforward way that I am aware of for creating a "Finder" alias from the command line is using AppleScript via 'osascript'. Of course, it's not really a command line solution since the "Finder" has to be running. Anyway, something along the lines of:
    <pre style="overflow:auto; padding: 5px; width: 500px ; font-size: 10px; border:1">osascript -e 'tell application "Finder" to make alias file to POSIX file "/full/path/to/file" at POSIX file "/full/path/to/folder"'</pre>

  • How to execute SAPGUI script from the command line?

    I have created a script and would like to execute it from the command line. There must be some flag that goes with SAPGUI.EXE. Any help appreciated.
    Thanks,
    Jeff

    Hi Jeff,
    the best way to do this is to run the script using the Windows Script Host, for example like this:
    cscript myscript.vbs
    This will execute the script which in turn can access SAP GUI. You may however have to make sure the script attaches to the correct session.
    Best regards,
    Christian

  • Can't run java .class programs from Windows command line!

    I have tried to get a program that I wrote with the JDK to run from the Windows command line, but it is not working. I typed:
    java HelloWorld
    Where my .class was HelloWorld.class, a compiled java program. I spelled the name correctly (and I am in the correct directory), yet I get the following error:
    Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorld
    I think something is screwy with windows, but that's just me. Any ideas??

    Likely a CLASSPATH issue - try
    java -classpath . HelloWorldGood Luck
    Lee

  • How can I start System Preferences from the command line?

    Hello All,
    I have an issue I'm not quite sure how to solve. I have been tasked within my business environment  with tightening security on a Mac Leopard system and I've been granted Admin Rights to do this on a temporary basis.
    The problem is as follows:
    1) The original Sys Admin that set up this system is gone, no longer available.
    2) He was a Dvorak Keyboard fan and set up the system for a Dvorak Keyboard.
    3) The system actually has a standard Apple keyboard and is marked accordingly, i.e., qwerty (Most Users in the building have stopped using this system altogether - a terrible waste of a good system - even though some of their apps can be run normally (US style qwerty settings). The command line is useless, as is texteditor.app and a few others unless you know Dvorak layout)
    5) When I open System Preferences, the Dvorak keyboard checkbox is grayed out and I cannot change it. There is no lock at the bottom of that particular screen for me to unlock.
    6) Even though I select the US Keyboard at Login, and some apps work accordingly (like MatLab for example) the terminal is borderline useless. I spent over 2 hrs yesterday doing what should have been able to be done in about 30 minutes. I estimate a frustrating and mistake prone additional 8 to 10 hours to do what is normally a a 4 hour job at the command-line.
    7) I do not have the time or desire to re-mark all the keys on the keyboard, particularly since it is not my call to do so, nor do I have the time to re-learn Dvorak touch-typing, and finally I do not want to re-load the entire system. I just want to change the darn keyboard to a standard qwerty keyboard that is somewhat useful in a terminal environment with vi, command line, etc. It's either that or I go mildly insane
    This is frustrating as all get-out. The new Admin logged in and was able to uncheck his Dvorak settings (he is not a UNIX guy, nor is he comfortable om Macs), and we were hoping this was a system wide setting, but No. We re-booted the system, I logged in, still Dvorak, and the checkbox was still grayed out.
    So I figure, short of re-loading the entre system and all the applications necesary, I can either start the Systems Preferences GUI using sudo and hopefully that will change system-wide settings, or I can delete the .AppleSetupDone file and resetup the system (if the keyboard settings are part of the setup) without spending a couple of days reloading everything and re-setting up users, networks, etc.
    Needless to say, I am hoping for the easiest and quickest solution to this extremely frustrating and  aggravating problem.
    Thanks.

    For my situation the following C# code does the job:
        Process.Start(
           @"c:\Program Files\National Instruments\CVI71\cvi.exe",
           @"c:\temp\experiment.c" );
    The file must already exist.

  • How to make system call to execute command line in JAVA?

    Hi,
    I am new in JAVA. How to make system call to execute the following command line in JAVA in LINUX environment.
    rpm -qa jdkIn C programming, use as such:
    system ("rpm -qa jdk");
    How about JAVA?
    Thanks.

    Runtime.getRuntime().exec. But first read this:
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html

  • How to invoke a servlet from the command line

    Hi,
    I have a process that needs to do something remotely. One of the ideas is to have a servlet on the other side that can do that. So the question is how can I invoke it from my process?
    Thanks,

    First approximation to code:URL remoteTask = new URL("http://yourserver.org/yourservlet");
    InputStream response = remoteTask.openStream();
    // read the servlet's response from that InputStreamYou will find more comprehensive versions of this code if you search the forum.

  • How to check the status from the backend in workflows

    How to approve or retry the work flows which are in error or any status. this can be done through status monitor in workflow administrator web applciations in fornt-end. But my requiremnet is to do the same from back-end by executing the query.
    thanks & regards
    arifuddin

    Hi;
    Duplicate post, please post once
    po's whcih are in error by a specific user
    Regard
    Helios

  • How to execute sql script from linux command line

    Hello everyone !
    Just short question. On my server I must install script in crontab which will eexecute some sql statements.
    How can I write command which will execute script from file without asking about password ?
    sqlplus user/pass ... and then what ?
    thanks
    dlugasx

    user10064952 wrote:
    Just short question. On my server I must install script in crontab which will eexecute some sql statements.
    How can I write command which will execute script from file without asking about password ?Crontab does not run your local shell profile - which means no valid Oracle environment for SQL*Plus to execute in.
    On newer cron versions, you can add an environment to the crontab file itself that needs to be set before executing the scheduled command.
    Whatever method - make sure you have ORACLE_HOME set, that the path includes ORACLE_HOME/bin, that ORACLE_SID is set (if not using a TNS alias) and so on.
    But I agree with Sybrand... crontab is not the best place for running SQL or PL/SQL code. That should reside in the database as named code (e.g. stored procs) and be executed via DBMS_JOB or DBMS_SCHEDULE.
    Less moving parts that way. No external dependancies. And will work on any Oracle server, irrespective of the o/s used and whether or not the relevant o/s user has batch/cron/etc privs to do the deed.

  • How to create analytic privileges from sql command line in hana studio?

    I want to create a bunch of analytic privileges, activate them and assign it a roles. I was wondering if there is a method where I can create these analytical privileges directly from sql?

    Hi Krishna,
    Thanks for the reply.
    The use case is to create a bulk analytical privileges on the pre-existing analytical or calculation views and I'm failing to create it using the simple CREATE STRUCTURED PRIVILEGE.
    The security guide shows below mentioned as the syntax but I'm failing to create it through that:
    CREATE STRUCTURED PRIVILEGE AP_SALES_1 FOR SELECT ON TABLEOWNER.VIEW_SALES WHERE REGION IN ('DE','UK') OR PRODUCT = 'CAR';
    It gives me this error -
    SAP DBTech JDBC: [257] (at 44): sql syntax error: incorrect syntax near "FOR": line 1 col 44 (at pos 44)

  • Is it possible to check out whole repository from dtr command line tool?

    Hi
    I wonder is it possible to check out whole repository from dtr command line tool.
    Normally, in NWDS i have to log into SLD, select a component, then select components i want to check out into workspace.
    I would like to do some static analysis (PMD, etc) but checkiing out everything manually is really painfull.
    Are there any guides how to check out everyhing from the command line (so i would nothave to specify any paths except top level components)?

    Hi,
    I don't know of a feature which would allow to check out "everything" from the "root".
    checkout Checks the given resource out.
    Syntax checkout/co \[-exclusive| -x] resource \[activity]
    Options exclusive|x If specified the resource is exclusively checkout-out.
    Arguments resource The resource that should be checked out.
    activity The path or name of the open activity that should be used for the checkout, if no activity is specified one is implicitly created.
    Output Variables
    $wr[] Working resources
    $act[] Activities
    Description Checks a resource out.
    Examples
    Checkout a file within a given activity
    Checks out the file "/ws/wspdir/wsp/dir/a.txt" in the activity "/act/myActivity".
    checkout /ws/wspdir/wsp/dir/a.txt /act/myActivity
    Checkout a file
    Checks out the file "/ws/wspdir/wsp/dir/a.txt" in an activity that is implicitly created and returned in the output variable "$act".
    checkout /ws/wspdir/wsp/dir/a.txt
    Checkout a file exclusively
    Checks out the file "/ws/wspdir/wsp/dir/a.txt" exclusively in an activity that is implicitly created and returned in the output variable "$act".
    checkout -x /ws/wspdir/wsp/dir/a.txt
    Can you please also tell us what kind of statistics you intend to create? Sorry I don't know what PMD abbreviates.
    You can always generate yourself an up-to-date documentation of the DTR Console by exporting the help (for details type help help): help -x c:/DTRConsole.doc
    Best Regards,
    Ervin

Maybe you are looking for

  • Service PO commitment assigned to statistical IO is not get reduced.

    PO is created with Account assigned to Internal Order stastically and Cost center as real cost object.  Wih PO creation we check commitment in system According to standard SAP, at creation of PO, system creates commitment & while doing GR/IR, system

  • Can't find s:Module

    Hi everyone: I just can't find the <s:Module>,  is there any chance to use <s:state> and <s:transitions> in <mx:module> It is very strange.. thanks

  • Oracle ESSO, Logon Manager Console couldn't connect to repository ORA-01017

    I installed Logon Manager Console on my Windows XP SP3 and try to connect to repository (Oracle DB 11g) with instanse name: Provider=OraOLEDB.Oracle;Data Source=MYDB;User Id=user;Password=password; Repository type: Oracle Database And get following e

  • Billing Date change to past date.

    Hi, Basically, I want to change the billing dates of few Invoices generated on 4 December 2008 to 29 November 2008 due to some tax changes in business. Is there any way we can change the billing date of an invoice to a past date?

  • RE: Printing to Epson R1900 stylus fromCS3

    Seems simple- cannot figure out how to turn off color management in printer dialogue box so PS manages colors. Drop down menus are not what is shown in manual?! New printer, installed software and ICC profiles for photo papers. Am not getting good pr