Starting an Stopping the db on Windows

Hi,
for starting and stopping the db I found those two batch-files StartDB.bat und StopDB.bat.
StartDB.bat contains
net start OracleXETNSListener
net start OracleServiceXE
@oradim -startup -sid XE -starttype inst > nul 2>&1
And StopDB contains
net stop OracleServiceXE
I am aksing myself, why isn't the OracleXETNSListener process also stopped and isn't it necessary to shutdown the instance with something like
oradim -shutdown -sid xe?
Thanks in advance
Stefan

Hi,
Thanks you for your kindness and for www.XE.com :-)
I was (and perhaps not only me) annoyed by Oracle Net, for example during :
- Installing EM 10gR1 under AIX 5L, problems with the TNS_ADMIN variable of the oracle unix oracle account and
the Oracle Universal Installer (OUI) does not prevent.
- Installing EM 10gR1 under Windows 2003 Server (recently), OUI prevents that one must invalidate the System variable TNS_ADMIN (Yes !)
- installing HTMLDB 1.5 under AIX 5L, problems with the TNS_ADMIN variable of the oracle unix oracle account and OUI does not prevent.
And how much among us were annoyed during the installation of XE by the TNS_ADMIN variable ? Many ! But the TNS_ADMIN variable is
essential to guarantee a "simple" administration.
For many years i try to make cohabit with Oracle products, it's my challenge and TNS_ADMIN is a key for that. Under Linux
or Unix, i fix the TNS_ADMIN in the profile of the "oracle" account and under Windows i fix a System variable because it exceeds those
from registry. Another challenge is to have "similar" scripts under Linux/Unix and Windows, and i think that we can isolate the
Windows service.
When I started to work with Oracle, i used the only listener LISTENER. Then having to work with multiple versions on the same server,
i used a dedicated listener for each database with the higher version (you are right !) but it was heavy to manage. Now,
i use a only one listener in the same version for all the database of this version (ORACLE_HOME), that appears more coherent to me.
I do not use for a long time any more the listener LISTENER who listens on the port 1521, a chance for me and XE :-)
at this time :
- i have a developpement server under AIX 5L with 8iR3, 9iR2, 10gR1 and TNS_ADMIN.
- i project to migrate our AIX 4.3 HACMP Cluster with 8iR3 to AIX 5.3 with 9iR2, 10gR1, 10gR2 and of course TNS_ADMIN.
- At this time, i work with a server under Windows 2003 with 9iR2, 10gR1, EM 10gR1, XE , 10gR2 and always TNS_ADMIN !
For the AIX HACMP cluster, i project :
- a listener ADMIN in version 10gR2 for all database, listening on port 1530. (For me ! :-)
- a listener LSNR_0920 in version 9iR2 for 9iR2 database, listening on port 1531.
- a listener LSNR_1010 in version 10gR1 for 10gR1 database, listening on port 1532.
- a listener LSNR_1020 in version 10gR2 for 10gR2 database, listening on port 1533.
What is extraordinary with Oracle, it is that one can make function several versions on a same machine ! It is a
little the beginning of a consolidation and facilitates the tests of migration.
With a server under Linux/Unix (for the oracle account) or Windows (System variable), i fix only :
- ORA_ADMIN, for example D:\admora or /admora
- TNS_ADMIN = %ORA_ADMIN%\gdba\tns or ${ORA_ADMIN}/gdba/tns
- SQLPATH = %ORA_ADMIN%\gdba\sql or ${ORA_ADMIN}/gdba/sql
- PATH = %ORA_ADMIN/gdba/shell;%PATH% or ${ORA_ADMIN}/gdba/shell:${PATH}
After, there are several scripts i use like "Sid.cmd" (or Sid under Linux/unix), to fix the environment of an instance.
What arrives when I launch "Sid.cmd XE"?
- it call an "env.base.XE.cmd" who fix the variables for the instance XE and call the "env.oracle.OXE10_2_0.cmd" script
- the "env.oracle.OXE10_2_0.cmd" call the "Clear.cmd" script to unset environment variable and only fix the ORACLE_HOME and the PATH.
- and then i have a "clear" prompt
it is perhaps confused but practical for me. I hope this help
Just my 0.002 Cents
Henri
Script Sid.cmd :
@Echo off
@Rem ##########################################################################################
@Rem # Objet : - Positionnement des variables d un instance
@Rem # $1 : Sid
@Rem ##########################################################################################
@Rem ---------------- Validation des parametres
@Set Sid=%1
@If Not Defined Sid Goto 001
@If Not Exist %ORA_ADMIN%\gdba\shell\env.base.%Sid%.cmd Goto 002
GoTo DEB
@Rem ##########################################################################################
@Rem # Debut Traitement
@Rem ##########################################################################################
:DEB
Call :LIG_OK
Call %ORA_ADMIN%\gdba\shell\env.base.%Sid%.cmd
Echo.
Echo ORACLE_SID : %ORACLE_SID%
Echo ORACLE_HOME : %ORACLE_HOME%
Echo TNS_ADMIN : %TNS_ADMIN%
Echo NLS_LANG : %NLS_LANG%
Echo ADM_BASE : %ADM_BASE%
Echo EXP_BASE : %EXP_BASE%
Echo DPD_BASE : %DPD_BASE%
cd /D %ADM_BASE%
Call :LIG_KO
GoTo :EOF
@Rem ##########################################################################################
@Rem # Aide
@Rem ##########################################################################################
:HLP
Call :LIG_OK
Echo %Ligne1%
Echo # Shell : Sid.cmd
Echo # Objet : - Positionnement des variables d une instance
Echo # $1 : ^<Instance^>
Echo # Usage : Sid.cmd ^<Instance^>
Echo %Ligne1%
Call %ORA_ADMIN%\gdba\shell\Clear.cmd
Call :LIG_KO
@Goto :EOF
@Rem ##########################################################################################
@Rem # Traitement des exceptions
@Rem ##########################################################################################
:001
Call :HLP
echo.
echo Parametre 1 : Precisez le nom d une instance
echo.
@Goto :EOF
:002
Call :HLP
echo.
echo Fichier %ORA_ADMIN%\gdba\shell\env.base.%Sid%.cmd absent !!!
echo.
@Goto :EOF
@Rem ##########################################################################################
@Rem # Affichage
@Rem ##########################################################################################
:LIG_OK
Set Ligne1=##########################################################################
Set Ligne2=--------------------------------------------------------------------------
@Goto :EOF
:LIG_KO
Set Ligne1=
Set Ligne2=
@Goto :EOF
Script env.base.XE.cmd :
@Echo off
Rem ###############################################################
Rem # Environnement produits
Rem ###############################################################
Call %ORA_ADMIN%\gdba\shell\env.oracle.OXE10_2_0.cmd
Rem ###############################################################
Rem # Environnement base
Rem ###############################################################
Set ORACLE_SID=XE
Set DB_NAME=XE
Set NLS_LANG=FRENCH_FRANCE.AL32UTF8
Set DB_USERID=SYSTEM/S3NNF23N
Set ADM_BASE=%ORA_ADMIN%\base\%DB_NAME%
Set EXP_BASE=D:\export
Set OraDisk1=D:\oradisk1
Set OraSauve=D:\orasauve
Script env.oracle.OXE10_2_0.cmd :
Rem #----------------- Nettoyage de l environnement
@Call %ORA_ADMIN%\gdba\shell\Clear.cmd
Rem #----------------- ORACLE_HOME
Set ORACLE_HOME=D:\oracle\prd\OXE\app\oracle\product\10.2.0\server
Set PATH=%ORACLE_HOME%\bin;%PATH%
Script Clear.cmd :
@Rem #----------------- Nettoyage de l environnement
@Set PATH=
@Set ORACLE_HOME=
@Set ORA_NLS33=
@Set ORACLE_SID=
@Set DB_NAME=
@Set DB_USERID=
@Set NLS_LANG=
@Set OH=
@Set Sid=
@Set ADM_BASE=
@Set EXP_BASE=
@Set DPD_BASE=
@Set OraDisk1=
@Set OraDisk2=
@Set OraSauve=
@Set CLASSPATH=
@Set TNS_ADMIN=
@Rem #----------------- Oracle Net standard
@Set TNS_ADMIN=%ORA_ADMIN%\gdba\tns
@Rem #----------------- PATH standard
@Set PATH=%ORA_ADMIN%\gdba\shell;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;

Similar Messages

  • How to start and stop the BI Services in Solaris 10

    Hello All,
    Can anyone guide me on how to start and stop the BI Services in Solaris 10. In windows there are options set in Start->Programs->Middleware_Home->Start/Stop BI Services.
    Primarily after doing changes to the scheduler configuration, I need to restart the services to get it implemented? If yes how can I do it?
    Any help will be appreciated
    Thank you
    Ash
    Edited by: 902739 on Jan 11, 2012 12:17 PM

    Please help me by showing action plan for stop sap , offline backup and then start sap.
    i am little bit confuse How to start and stop SAP on cluster for offline backup
    Below are the systems name with host name , please explain me in sequence
    Systems name                                   Hostname
    # Hope SAP ERP Prod DB Primary       gsgbbux860
    # Hope SAP ERP Prod DB Standby      gsgbbux861
    # Hope SAP ERP Prod Cluster              gsgbbux862
    # Hope SAP ERP App 1                       gsgbbux864
    # Hope SAP ERP App 2                       gsgbbux865
    Thanks in advance
    Zaheer

  • Start and stop the Communication channel from Java Mapping

    How to start and stop the Communication channel from Java Mapping in XI 3.0
    Scenario  PI - > MQ -> Third Party web application 
    Web application is down and then Communication channels are stop manually .  
    We need to automate this process,
    MQ Solution - Trigger will be set in MQ which will be called when web application is stopped
    Trigger will send u201CSTOP u201C message to PI
    How to configure PI scenario to stop different com channels when this message received ?

    check this link: http://help.sap.com/saphelp_nw04/helpdata/EN/45/0c86aab4d14dece10000000a11466f/frameset.htm
    make sure that MQ send http request to PI. i dont think a configuration scenario is required in PI. Only roles should be enabled with proper user provided to MQ team.
    However, for security reasons, you can configure a scenario if you dont want to expose PI infrastructure directly to 3rd parties.

  • With apple pages - how do I start and stop the correction system/ spell and grammar, etc proof reader?

    How do I start and stop the corection system - das Korrektursystem/ the program in pages where one mark a text while proff reading it?

    Pages version?

  • Start or stop the multiple java application from Netweaver Administrator

    Hi All,
    In NWA->Operations Management->Systems->Start & Stop... the procedure for how to start and stop the Java Applications is well explained on the following link:
    http://help.sap.com/saphelp_nwpi711/helpdata/en/45/1e7eb303577524e10000000a114a6b/content.htm
    The problem is that I want to Start or stop the multiple java application on all instances simultaneously with the application state not persisted. But I am not getting the way to select more than 1 rows in the table so that these applications can be started in a single click. Is there any way out or any alternative?
    Each time the CE 7.1EHP1 server is restarted there are around 800 applications that are shown as stopped. I have to start each manually one by one which is an hectic task. Please help.
    Thanks.
    Rajat

    FYI ***
    The fix was in there were several ora init parms that were set incorrectly:
    aq_tm_processes value is 0 Should be >= 1
    job_queue_processes value is 0 Should be >= 10
    enqueue_resources value is 2392 Should be = 3000
    java_pool_size          value should be >= 20MB

  • Start or Stop the sshd daemon

    OS: SuSE Linux enterprise server 8
    How we " Start or Stop the sshd daemon" in SLES (Linux)?
    In AIX we do as
    startsrc -g ssh Start the sshd daemon if it is not currently active
    stopsrc -g ssh Stop the sshd daemon;which requests that the sshd daemon complete all current processing, release resources
    lssrc -g ssh Obtain the status of sshd

    Please try the following instead:
    /etc/init.d/sshd start
    /etc/init.d/sshd stop

  • Cannot start or stop the runtime platform

    I have found that I cannot start or stop the runtime platform using the provided
    start_service.sql or stop_service.sql scripts. I can run the scripts without
    error, however the runtime platform does not start.
    The only way I can start/stop the platform is with the run_service_local.bat
    file that starts the rtp from the desktop via a java program.
    My question(s) are:
    1) Can anyone explain why I can't use the start and stop scripts?
    2) How can I configure the rtp to stay up once it has started?
    Any help is greatly appreciated....
    -D

    FYI ***
    The fix was in there were several ora init parms that were set incorrectly:
    aq_tm_processes value is 0 Should be >= 1
    job_queue_processes value is 0 Should be >= 10
    enqueue_resources value is 2392 Should be = 3000
    java_pool_size          value should be >= 20MB

  • How do I stop iTunes from starting up in the other active Windows sessions?

    I have multiple (3) user accounts on a windows (Vista) computer. When I start iTunes from one account iTunes wants to also start up on each of the active windows accounts and continues to attempt to start iTunes after some time period (90 seconds?).
    I get a error screen on the attempts for the User that should not be starting iTunes that reads:
    You cannot open the application "iTunes" because another user has it open.
    Ask the other user to quit the application, then try again.
    I want iTunes to run within only one account. How do I stop iTunes from starting up in the other active accounts?

    Connect iPhone - iTunes will launch
    select iPhone in iTunes' left column
    in iTunes' main window untick "Automatically sync ..."

  • How to start and stop sapmmc server when windows is started and shutdown

    Hi,
    May i know how i can make sure the sapmmc server for ECC 6.0 to start when the windows 2003 server is started. I know i need to add this as a service in the windows service manager but i dont know how to do that.
    Please advise me on how to add a service to start the sapmmc server when windows is started and how to stop the sapmmc server automatically when windows is shutdown.

    Hi Raja
    checkout this document m sure it will help you in configuration
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/0512c790-0201-0010-72b7-886677ad7955
    also check
    /message/6511605#6511605 [original link is broken]
    All the best ,,
    Cheers
    dEE

  • Report on active sync actions (like starting and stopping the sync)

    Is there a way to report on who stopped or started an active sync? I'm guessing it has to be stored somewhere, but I can't find it.
    Thanks!

    Hi Smit,
    I believe you are talking about FMS AWS instance and you may be using a centos 4.0.2 instance AMI or lower?
    Well ... earlier,  options for stopping a centos AWS image was not available, but recently they are there in place, so I suppose if you use a new centos 4.5.1 AMI then probably you can start stop the aws instance on yuor will. Give ut a shot and let me know.
    Regards,
    Shiraz Anwar
    I again cross-checked and found that you were right, start and stop is not supported there .... an alternative method is to take a snapshots of the runinng instnace and terminate that instance after that, later you can use your snapshot to attach to the EBS volume to run your system again. You may need to use the Elastic IP address, because you wont like your users to update each time you terminate the old instance, and create new instance from snapshot. I have never used it in this way, but this is one of the approach.

  • Starting and Stopping the Portal

    Hi all
       After deploying my PAR, I am restarting the whole <b>SAP Instance</b> in the Server.
    1. Is this the right way ???
    2. Is there any other easy way to restart/stop the PORTAL alone instead of touching the SAP Instance???
    Thanks
    Kay

    Hi Kay,
    You are right about custom login changes.But Normaly if you develop portal application and upload the PAr file ,you do not have to restart the instance.Portal runtime takes care of droping the existing copy of the PAR or replacing with newer version.
    This is what i get from help
    Portal Archive Files Deployment Cycle
    Use
    The deployment procedure for a Portal Archive (PAR) file consists of two steps:
    Uploading the PAR file into the application repository
    Notifying all Portal Runtime (PRT) nodes that a new version of the application is available
    Activities
    Uploading a PAR File to the Application Repository
    There is only one application repository and all PRT nodes and PAR files on the J2EE Engine cluster share the same content. The PAR upload procedure stores the whole archive in the underlying persistence layer. It also extracts all the information that requires fast access at runtime from the portalapp.xml.
    Modifying PRT Nodes
    Once the upload to the application repository is completed, the upload process notifies all PRT nodes. This step updates thelocal deployment of the portal application on each server. The update of the local deployment requires runtime deployment capabilities, and that is why all portal applications can be released. A PRT node:
    ·        Checks if the application is already loaded and drops the corresponding instance.
    This step also checks and drops all entities (applications, components and services) that depend on the current application.
    ·        Starts the deployment process.
    This process gets the PAR file from the repository and updates the local deployment by expanding the archive content.
    ·        Restarts all portal applications that have been dropped.
    The main purpose of the local deployment is to improve performance at runtime by providing fast access to classes and to portal application resources. The local deployment avoids additional round trips to the application repository and, in that sense, must be considered as a cache for portal applications.
    Deployment Policy
    The local deployment is done using the DeploymentPolicy property declared in the portalapp.xml file:
    ·        If this property is set to “5.0”
    The deployment is backwards compatible with the EP50 version of the portal. The old folder is not removed and the deployment process simply overrides the folder with the new content.
    ·        If the DeploymentPolicy property is missing
    A regular deployment is performed; the old deployment folder is removed and then replaced by the new one.
    The deployment logic assumes that the application does not store any configuration locally; everything must be stored in the repository.
    For more information about the DeploymentPolicy property, see Application-Config Element Properties.

  • 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

  • How to Start and Stop the SAP System

    Hi,
    I have installed "Sneak Preview"; Searched for start and stop scripts but there are more than one script which has named start.bat and stop.bat. Moreover, I searched the documents which comes with Sneak Preview but could find useful instruction there either.
    Question: Could you please point me to the documentation where it explains the starting and stopping SAP, for Sneak Preview?
    Thanks in advance
    Jawad Kakar

    Please help me by showing action plan for stop sap , offline backup and then start sap.
    i am little bit confuse How to start and stop SAP on cluster for offline backup
    Below are the systems name with host name , please explain me in sequence
    Systems name                                   Hostname
    # Hope SAP ERP Prod DB Primary       gsgbbux860
    # Hope SAP ERP Prod DB Standby      gsgbbux861
    # Hope SAP ERP Prod Cluster              gsgbbux862
    # Hope SAP ERP App 1                       gsgbbux864
    # Hope SAP ERP App 2                       gsgbbux865
    Thanks in advance
    Zaheer

  • When I acquire data using USB6008 and NI_DAQmx Base in VC++, Shall I start and stop the task in ONTimer function?

    void Ctest2Dlg:nTimer(UINT nIDEvent)
       DAQmxErrChk (DAQmxBaseStartTask(taskHandle));
       DAQmxErrChk (DAQmxBaseReadAnalogF64(taskHandle,pointsToRead,timeout,DAQmx_Val_GroupByScanNumber,data,100,&pointsRead,NULL));
      DAQmxBaseStopTask (taskHandle);
    If I do this, the program will halt in about half minute. But if I do not start and stop task in OnTmer function, the program will not halt and the data acquired is not corrected.
    Please help me! Thanks

    This is a duplicate post.  Please post any new replies to the linked forum.
    Samantha
    National Instruments
    Applications Engineer

  • CAN WE START AND STOP THE CONTROL CENTER SERVICES USING OMB?

    Hi All,
    I'm new into the world of OMB and currently i have been working with OMB scripts and i just need to know whether i am able to start the control center services using OMB...?
    Any help will be highly appreciated.
    Regards,
    Shenoy

    Thanks ALL, I GOT IT, but I used other solution.
    Since I installed and uninstalled the Oracle several times, it keeps also many different Services for the listener. I don't know why, it didn't create a Service for my actual instalation with its path. In other words, all the services remained in the services.msc panel, had the path that was already removed from the Windows folder.
    Then what I did, was that I picked one service, took its name (OracleOraDb10g_home1TNSListener), went to regedit to [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\OracleOraDb10g_home1TNSListener] and simply changed the image path that was setted for the one that was removed (C:\oracle\product\10.1.0\Db_2\BIN\TNSLSNR ) for mine that is installed right now
    (C:\oracle\product\10.1.0\Db_1\BIN\TNSLSNR). Nothing more and finally works.
    I have tried something in the services.msc panel before, as you can see in this forum at the thread "I can't start listener in the Control Painel/Admin Tools/ Services", but I never got
    success.
    Appreciate your time!!

Maybe you are looking for

  • Change default logon/startup/lock screen in windows 8 pro

    Hi, I want to change my default logon screen, the one that appears when I boot. I have changed the lock screen within my account, but I can't change the one (that I beleive is) for the default user. I have seen some complicated steps to copy over a f

  • Is there a way to get the filename only on iOS using CameraRoll?

    This post is a sidetrack from this post: http://forums.adobe.com/thread/848761?tstart=0 The method used in that post works perfect on both Android and iOS for selecting and uploading files.... BUT is there a way to get the filename of the file from t

  • ADC - DVI  - ADC Connection possible?

    Hi Everyone, We put one of our editing machines around to the other room to get it out of the way. In order to make the cable long enough we had to buy an ADC-DVI converter. Run it to a 15' DVI cable, to the mac, then that DVI connection back to an A

  • Inter-company Billing Payment Idoc posting

    Hi Friends, We have got the regular inter-company billing scenario, After creating the inter-company billing document IV we post the payment Idoc through the output processing.           Here IV document will be created by the user from the deliverin

  • My Airport Express suddenly stopped working – the light no longer turns on. Is it a lost case?

    I think I bought it 3 years ago, so I'm assuming it's no longer covered by any sort of warranty. Should I just toss it out and buy a new one, or is there any chance that I can get it fixed somehow? I would be so thrilled to not have to spend $100 on