Start/Stop remote oracle service

Is there anyway I could start/stop a remote oracle service? Please provide source code. Thanks!

HI,
Suppose ur Database resides on X machine
and u want to do remote login from y or z ,
follow the conditions and steps below
1) You need to install servermanager utility in ur remote machine
2)then u need to run orapwd.exe utility on ur remote machine with following command
"orapwd file=<full path name where u want to keep ur password file > password=<password> entries=<no of DBAs u want that password file to be accessed by>"
after this u need to change Parameter in initialisation file , u will find one entry called "REMOTE_LOGIN_PASSWORDFILE=NONE" u have to change it to " REMOTE_LOGIN_PASSWORDFILE=EXCLUSIVE" u can also control multiple dabases from this same password file for that u will have to change above entry to REMOTE_LOGIN_PASSWORDFILE=SHARED,after this
u need to pass following command "ALTER USER SYS IDENTIFIED BY <PASSWORD U LIKE > "
this will change the password of both INTERNAL and SYS, now if u want to give multiple user access to this file then simply u grant two roles to them "ALTER SYSTEM GRANT SYSOPER,SYSDBA TO <USERNAME>" (INTERNAL AND SYS have these roles by default) this will add that user to that file now that user can also go to servermanager.Now u can Connect with any of the user which u have added in passwordfile in ur machine, and can remotely start or stop database with following Commands "STARTUP" "SHUTDOWN" respectively
*Note -
1)Location of password file is OS specific
2)if ur using windows then u need to remove one entry in registry "DBA_AUTHORISATION =''
Have Fun

Similar Messages

  • How do starting/stopping of application services differ in R12 ??

    How do starting/stopping of application services differ in R12 when compared to 11i ??
    Can I start/stop services using opmnctl ??

    Can you plese refer me a document where role of OPMN and OC4J in R12 is mentioned ??? In short:-
    OPMN - Oracle Process Manager & Notification Server is component in Oracle Application Server (10g) to manage (start/stop/status) Application Server components (HTTP, OC4J)
    For more:-
    http://download.oracle.com/docs/cd/B14099_19/core.1012/b13996/intro.htm
    OC4J -- oracle container for java.
    In R12 we have 3 groups of OC4J's.
    oacore OC4J - framework based applications
    forms OC4J - forms based applications
    oafm OC4J - Fusion Middleware - for mapviewer, webservices, ascontrol.
    For more, pls read
    http://download.oracle.com/docs/cd/B10464_05/web.904/b10326/intro.htm
    thanks,
    JD

  • Stop all Oracle Services

    I am upgrading/patching my test 10g database. While upgrading it ask you stop all oracle services in order to continue the upgrade. I did that but it is still asking to stop all oracle services. Now what do I do, anybody have experience with that.

    First, make sure you don't have any thing automatically started, and don't use even sqlplus, as a client it will load several dll's and when the upgrade process starts it will mark several dll's as being used.
    I've been working with win2003 several upgrade processes, I don't know exactly why, but several dll's are still marked as being used, even if the host was restarted with the service set to manual start. The exact list of dlls that are in this situation correspond to those used by an oracle client.
    The workaround I found for my specific case was to rename the dll's and let OUI to write the new version.

  • Start/stop Grid Control services

    What are the service associated with Grid Control and what are the commands to start/stop them?

    Hi
    To start the grid control you need to start the agent
    and the web components in the oms home along with the agent.
    # Start ALL
    /oracle/product/10.1.0/oms/bin/emctl start agent
    /oracle/product/10.1.0/oms/opmn/bin/opmnctl startall
    /oracle/product/10.1.0/agent/bin/emctl start agent
    # Stop ALL
    /oracle/product/10.1.0/agent/bin/emctl stop agent
    /oracle/product/10.1.0/oms/opmn/bin/opmnctl stopall
    /oracle/product/10.1.0/oms/bin/emctl stop agent
    With best regards
    Shan

  • Start/stop the OMS Services on Same Host

    Hi,
    I have OMS, Repository database and Agent on the same host.....
    I want to stop and start the services...
    ==========================
    FOR Shutdown
    =====================================
    Stop the Agent
    $cd $ORACLE_HOME/agent10g/bin/emctl stop agent
    stop the OMS Services
    $cd $ORACLE_HOME/oms10g/opmn/bin/opmnctl stopall
    Stop the Repository Databas Listner
    $cd $ORACLE_HOME/bin/lsnrctl stop LISTENER
    STOP THE database
    $cd $ORACLE_HOME/bin/sqlplus '/as sysdba'
    sql> shutdown immediate
    ====================================
    FOR Startup
    =====================================
    start the Repository Listener
    $cd $ORACLE_HOME/bin/lsnrctl start LISTENER
    start the Database
    $cd $ORACLE_HOME/bin/sqlplus '/as sysdba'
    sql> startup
    start the OMS Service
    $cd $ORACLE_HOME/oms10g/opmn/bin/opmnctl startall
    start the Management Agent
    $cd $ORACLE_HOME/agent10g/bin/emctl start agent
    ======================================
    is this the correct procedure...
    can anybody help in this regard....

    As an outline, it looks ok I think.
    You may need some env variables set up in the script, add some error handling, etc...
    I want to stop and start the services...
    $cd $ORACLE_HOME/agent10g/bin/emctl stop agent
    $cd $ORACLE_HOME/oms10g/opmn/bin/opmnctl stopallRemove the "cd" from your command lines.

  • Logic Pro midi start/stop remote

    I would like to start and stop (and even record) in logic with MIDI-commands from my keyboard (Roland RD-700GX).
    The keyboard has several midi buttons which are progammable but the message which is sent, is not a controler or SysEx but the start/stop status bytes of the MIDI-protocol. Logic cannot recognise these messages. Is there any trick or what can I do to work around this problem.

    voss.audio wrote:
    (look at FAH and FCH!)
    Well I downloaded the Midi Implementation manual and it says that these the S1 and S2 buttons send this messages for start/stop. They are labeled as "Real Time Midi messages" but I could not understand if they are MMC ones for this device. If it is standard MMC it must looks like:
    *MMC messages*
    An MMC message (that is sent to, or generated by, an MMC device) is:
    *F0 7F deviceID 06 command F7*
    The third byte is the Device ID.
    The fifth byte is the command:
    01 Stop
    02 Play
    03 Deferred Play
    04 Fast Forward
    05 Rewind
    06 Record Strobe (Punch In)
    07 Record Exit (Punch out)
    08 Record Ready (Record Pause)
    09 Pause
    0A Eject
    0B Chase
    0F MMC Reset
    40 Write
    44 Locate/Go to
    47 Shuttle
    Where the Roland Device ID is 41 as far as I remember.
    You can try the S1 & S2 start/play function but first enable "Listen to MMC Input" logic sync setting ( see the pic below ).
    I downloaded the User Manual of the RD-700GX as well, so in page 103 I found "Transmitting the Control Change (USER CC)". can you try to assign for S1 & S2 buttons ? If yes then assign CC13 for S1 and CC14 for S2 ( values 0 for example ). After that try to learn the Logic Keycommands dialog for play stop using this buttons - see my first post picture.
    !http://img707.imageshack.us/img707/9002/mmc.gif!
    !http://img59.imageshack.us/img59/4967/aglogo45.gif! [www.audiogrocery.com|http://www.audiogrocery.com]

  • How to start & stop SAP J2EE services.

    Hello,
    Can anyone tell me the steps how to Start and Stop SAP J2EE operations and how to troubleshoot the problems when the Java doesn't come-up.
    Regards,
    Murali

    Hi,
    In windows,
    go to SAP management console,Right click on the SID and then <b>start all tasks</b>
    similarly to stop,Right click,
    <b>stop all tasks</b>
    If it is linux machine,
    switch to SIDadm user,by giving the command <b>su sidadm</b>
    ex:if SID is J2E,then it will be <b>j2eadm</b>.and then it is <b>startsap</b> or <b>stopsap</b>.
    For troubleshooting,
    1.go to /usr/sap/SID/JCxx/j2ee/cluster/server0/log
    look for <b>defaulttrace.trc file.</b>
    you can get to know the errors here and find teh root cause of it.
    2.you can also look for <b>devp_trace</b> in SAPmanagement console.
    3.Before doing all this,first check if <b>JAVA_HOME,path</b> and <b>LD_LIBRARY_PATH</b> is set properly and proper JDK is taken.
    4.check id <b>DB is up and running.</b>
    reward points if helpful
    Message was edited by:
            usha rani

  • Deploy wsp through Power Shell- start stop SP admin service and run execadmsvcjobs command using power shell

    Hi,
     Can anyone pls point me any link/ src code  for  deplyoing wsp using power shell. I know I can deploy it through Add-spsolution and install-spsolution, the issue is that, it will give   "status - stuck in deploying scheduled..."
    and i need to restart the sharepoint services - services.msc --> SP administration and timer services - and then i need to run the exceadmsvcjobs command to deploy / update the wsp  successfully in solution store.
    i mean, whats the power shell equivalent of these tasks. or anyone has already scripted these.
    if i elaborate little bit, would like to know how to automatically Retract, Remove, Add and Deploy SharePoint 2010 WSP Solution Files with PowerShell

    ok, i have found  the same :
     here its : hope this will help someone.
    function wait4timer($solutionName)
    $solutionName ="TestingWSP.wsp"
    $solution = Get-SPSolution | where-object {$_.Name -eq $solutionName}
    if ($solution -ne $null)
    Write-Host "Waiting to finish soultion timer job" -ForegroundColor Green
    while ($solution.JobExists -eq $true )
    Write-Host "Please wait...Either a Retraction/Deployment is happening" -ForegroundColor DarkYellow
    sleep 5
    Write-Host "Finished the solution timer job" -ForegroundColor Green
    try
    # Get the WebApplicationURL
    $MyWebApplicationUrl = "http://srvr:21778/";
    # Get the Solution Name
    $MywspName = "TestingWSP.wsp"
    # Get the Path of the Solution
    $MywspFullPath = "D:\myWorkspace\TestingWSP.wsp"
    # Try to get the Installed Solutions on the Farm.
    $MyInstalledSolution = Get-SPSolution | Where-Object Name -eq $MywspName
    # Verify whether the Solution is installed on the Target Web Application
    if($MyInstalledSolution -ne $null)
    if($MyInstalledSolution.DeployedWebApplications.Count -gt 0)
    wait4timer($MywspName)
    # Solution is installed in atleast one WebApplication. Hence, uninstall from all the web applications.
    # We need to unInstall from all the WebApplicaiton. If not, it will throw error while Removing the solution
    Uninstall-SPSolution $MywspName -AllWebApplications:$true -confirm:$false
    # Wait till the Timer jobs to Complete
    wait4timer($MywspName)
    Write-Host "Remove the Solution from the Farm" -ForegroundColor Green
    # Remove the Solution from the Farm
    Remove-SPSolution $MywspName -Confirm:$false
    sleep 5
    else
    wait4timer($MywspName)
    # Solution not deployed on any of the Web Application. Go ahead and Remove the Solution from the Farm
    Remove-SPSolution $MywspName -Confirm:$false
    sleep 3
    wait4timer($MywspName)
    # Add Solution to the Farm
    Add-SPSolution -LiteralPath "$MywspFullPath"
    # Install Solution to the WebApplication
    #Install-SPSolution -Identity <SolutionName> -WebApplication <URLName> [-GACDeployment] [-CASPolicies]
    install-spsolution -Identity $MywspName -WebApplication $MyWebApplicationUrl -GACDeployment #-FullTrustBinDeployment:$true -GACDeployment:$false -Force:$true
    # Let the Timer Jobs get finishes
    wait4timer($MywspName)
    Write-Host "Successfully Deployed to the WebApplication" -ForegroundColor Green
    catch
    Write-Host "Exception Occuerd on DeployWSP : " $Error[0].Exception.Message -ForegroundColor Red
    ref :
    http://www.sharepointpals.com/post/How-to-Deploy-a-SharePoint-2013-Solution-(WSP)-in-the-Farm-using-PowerShell

  • Mail service on start/stop of services ...

    Hi,
    Please let me know the way to send mail when services are started/stopped in oracle application 11.5.10.2. How to configure this on ibm aix 5.3.
    Thanks,
    Sai Ram

    There is a way to configure emails on startup/shutdown of Concurrent Manager service - but I'm not aware about any such configuration around other services (eg. Apache, Apps Listener, Forms Server etc..)
    I think you'll have to do this outside Oracle's scripts if you wish to set this up - either by wrapping the calls to seeded scripts in your own custom script, or if you want a periodical probing, then via use of cron/scheduler depending on the OS you're on.
    Hope that helps.
    Regards,
    Rakesh
    PS : In addition to the Concurrent Managers, I think you should be also able to achieve this for database services if you wish to do that - by use of startup and shutdown database triggers.

  • How to start/stop/restart a java desktop application from remote machine

    Hi,
    I want to know is there a way in java where i can start/stop/restart a java desktop application running on a remote machine through another java desktop application?
    For e.g i have an Admin console which monitors its clients based on socket communication, all of them are java desktop applications. I want to also give start/stop remote clients through my Admin console.
    I am thinking in terms of windows system service which can start/restart/stop my clients on request of Admin console, but how can i call this system service remotely?
    How can i do it?

    I got it. its about connection...

  • How to stop oracle services using Net8

    Hi
    each time I try to install oracle report 6i in myy machine (of course in the same developer home on which form installed ).
    a message with title Stop oracle application
    saying the following
    you must stop all  oracle services and application using Net8 for the Net8
    installation to be successfull
    press ok to continue the installation once the services and applications
    have been stopped or press ok to abort this installation.
    can any one help me?
    oracle database 10g
    windows xp
    developer 6i

    You can stop any service either
    a) using the services applet in the control panel window
    b) start a cmd box and issue
    net stop <servicename>
    Hth
    Sybrand Bakker
    Senior Oracle DBA

  • How to stop Oracle services?

    I'm new to Oracle. I have installed Oracle 10g and I'm trying to apply patch 10.2.0.5. I'm getting the error that ORASLAX10.DLL is being used by another process. I have found out that SNMP is using that dll. I have restarted SNMP but it will use the dll right away.
    This is exactly what I have done before I start installing the patch:
    Installed Oracle 10g 10.2.0.4
    Restarted the server
    I think that I probably need to shutdown Oracle services and/or database. I have checked the Services in Administrative Tools and I don't see any services with name starting with Oracle. I have ran lsnrctl status and there is no listener. What other commands should I run to check/stop any Oracles services/database?

    Thanks for all the helps.
    Even though the Universal Installer windows was not responding at 100%, the patch installation seems to be completed successfully according to the log file.
    Where can I find a list of non-Oracle services used by Oracle? I still have not figured out which product of Oracle I installed is using the SNMP service.
    Edited by: 881656 on Sep 3, 2011 5:16 PM

  • CMS tries to start before Oracle service - therefore cannot contact its CMS database

    Post Author: patrickcoote
    CA Forum: Deployment
    HelloI have a windows XP sp 2 machineOracle 9i installedCrystal Server XI Rel 2 (evaluation copy)My problem is that the Central Management Server (CMS) is starting up before the OracleService that the CMS database is installed on.  Therefore CMS cannot start automatically and any of the jobservers etc cannot register with CMS.In event viewer i get this:"The root server reported an error Initialization Failure. (Reason: Unable to connect to the database using the provided connection string. Reason: ORA-01033: ORACLE initialization or shutdown in progress)."When the PC boots up fully I can go into Central Configuration Manager and start CMS manually and access all of its features with no problems.I looked at this sitehttp://www.microsoft.com/technet/sysinternals/SystemInformation/LoadOrder.mspxThe program here lists processes in their startup order and I can see from there that CMS and the other Crystal services are started before the Oracle services, for example
    BOBJCentralMS starts before OracleServiceBW (alphabetical order)In CCM, on the Dependancy tab for CMS (and all other CR servers) I have added :OracleServiceBWOracleMTSRecoveryServiceOracleOraHome92TNSListenerOracleOraHome92Agent(I thought that maybe this would tell CMS to wait for these to start before starting itself )But still get the same error(s)I can provide any more info if needed.Best regardsCootser

    Post Author: patrickcoote
    CA Forum: Deployment
    I have used Regedit.exe, regedt32.exe and Crystal Central Config manager, all of which aloow you edit the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\BOBJCentralMS\DependOnServiceWhichever way I've loaded in the oracle services to that key (binary) has made no impact.The oracle services start after Crystal and the problem remains.What I have decided to do is use a batch file (see below) to start the services when the machine boots upThis way I know they will start, and it does not take too long
    echo Starting Business Objects Services...
    rem net stop  BOBJCentralMS
    net start BOBJCentralMS
    echo off
    rem Stop and then (Re)Start all other BOBJ services
    net stop  BOBJCrystalReportApplicationServer
    net start BOBJCrystalReportApplicationServer
    net stop  BOBJCrystalReportscacheServer
    net start BOBJCrystalReportsCacheServer
    net stop  BOBJCrystalReportsPageServer
    net start BOBJCrystalReportsPageServer
    net stop  BOBJDestinationServer
    net start BOBJDestinationServer
    net stop  BOBJEventServer
    net start BOBJEventServer
    net stop  BOBJInputFileServer
    net start BOBJInputFileServer
    net stop  BOBJOutputFileServer
    net start BOBJOutputFileServer
    net stop  BOBJProcessServer
    net start BOBJProcessServer
    net stop  BOBJProgramServer
    net start BOBJProgramServer
    net stop  BOBJTomcat
    net start BOBJTomcat
    echo .
    echo Business objects services started.
    Pause**************************************************************************************************************************

  • [Debian] Oracle 10g Express - init.d start/stop script problem + fix

    I've experienced a problem with the init.d script "oracle xe" which is used to start/stop/reload the 10g server and comes with the debian package from oss.oracle.com.
    I noticed that after installing Oracle 10g in the "Debian" way (via .deb package and an apt-source oss.oracle.com), the start and stop method of the script doesn't do anything.
    It's checking for the value of the "ORACLE_DBENABLED" variable, which is on my installation set to "false", because I answered during installation false to the question "do you want to start Oracle 10g at system boot?".
    In my opinion that's wrong. I should always be able to start/stop the Oracle server trough the init.d script regardless of your choice starting Oracle at boot or not.
    I commented out row 604 and 621 in the file "/etc/init.d/oracle-xe" :
    case "$1" in
      start)
            if test -f "$CONFIGURATION"
            then
                    if test "$ORACLE_DBENABLED" != "true"
                    then
                            echo "exit"
    #                       exit 0
                    fi
            else
            echo "Oracle Database 10g Express Edition is not configured.  You must
                    exit 0
            fi
            start
      configure)
            configure
      stop)
            if test -f "$CONFIGURATION"
            then
                    if test "$ORACLE_DBENABLED" != "true"
                    then
                            echo "exit"
    #                       exit 0
                    fi
            else
            echo "Oracle Database 10g Express Edition is not configured.  You must
                    exit 0
            fi
            stop
            ;;

    Hello,
    I have the same problem on RH9.
    [root@phpsrv init.d]# ./oracle-xe start
    Starting Oracle Net Listener.
    /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/lsnrctl: relocation error: /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/../lib/libclntsh.so.10.1: symbol semtimedop, version GLIBC_2.3.3 not defined in file libc.so.6 with link time reference
    Starting Oracle Database 10g Express Edition Instance.
    /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/sqlplus: relocation error: /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/../lib/libclntsh.so.10.1: symbol semtimedop, version GLIBC_2.3.3 not defined in file libc.so.6 with link time reference
    Failed to start Oracle Net Listener using /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/tnslsnr and Oracle Express Database using /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/sqlplus.
    Regards,
    Pavel Kucera

  • Oracle Services Does Not Start

    Hi,
    I have a problem here, I have installed oracle 8.1.5 on the compaq pro liant server and its running on NT 4, just now the server rebooted due to a power failure, when the server finaly starts, the oracle services doest not start (only the oracle Agent is get started). When i chk the event viewer it says .. Could Not Start this service due to a logon failure..
    Could anyone pls let me know the order in which the oracle services should start.
    im sorry if my question confused you, bc'so im confused and stuck
    Thanking u in advance
    regards
    Muraly

    Hi,
    you start all your oracle services except "OracleOraHome81ManagementServer". Specially try to start "OracleOraHome81DataGatherer", "OracleOraHome81TNSListener" and service you have created for your database.
    Atul

Maybe you are looking for

  • Michael's Weekly Ad does not load in Firefox, but it loads in Internet Explorer

    My wife and I have different computers, and she is interested in many ads for craft stores and the like. As such, she's been telling me how the Michael's Weekly Ad (http://weeklyad.michaels.com) does not load on her computer. Just for a kick, I thoug

  • Multiple sections, each section different first/next page headers

    Hi, Ï'm developing a PO (purchase order)-document. This document has 2 sections. First sections contains PO-documents. Second section contains PO-copies. First section has different header for first page and next pages for each seperate PO. So multip

  • Working with a PDF package

    I've got a (fairly) simple PDF file that is a PDF package. I can't seem to find any information how to 'get' at the PDFs within the package (for printing). I have this code to print a simple PDF:     Dim PDF2 As Acrobat.CAcroPDDoc     Dim av As Acrob

  • The app arrangement  pane is blank

    Just recently I have encountered issues when synching my iPhone and iPad. On the apps page, I have the list of apps that I can install but the layout pane where I should be able to arrange the apps is blank: I'm running Windows 7 with iTunes 11.1.5.5

  • I cannot donload any files pictures or documents from my computer.  I have the latest versions

    I have the latest versions of adobe and cannot download,  print or view any documents attachments or files please help>  I cannot get any work done.  i am very frustrated and dissappointed.