Index   Search   Add FAQ   Ask Question  

Oracle for WindowsNT FAQ

$Date: 04-Mar-1999 $
$Revision: 1.22 $
$Author: Frank Naudé $

Intel Inside, Idiot Outside

Topics

  • Should I use NT Client or NT Server to run Oracle?
  • What Oracle services must be running on a NT box?
  • How can I automatically start Oracle on NT?
  • Can one start and stop services from a batch job?
  • How does one take a hot database backup on NT?
  • How does one kill Oracle processes on NT?
  • Can I schedule backups and maintenance jobs on NT Server?
  • How can I fool Oracle to think a remote database is local?
  • Any performance tuning tips for Oracle on NT?
  • Where can I get more info about WindowsNT?

  • Back to Oracle FAQ Index

    Should I use NT Client or NT Server to run Oracle?

    Windows NT comes in two flavours: Workstation and Server. These terms are highly misleading, suggesting that a machine with server functions should run NT Server. That is not the case at all. The distinction between Workstation and Server is only important to NT itself. The Server product includes the NT domain administration tools and services. If you have more than one NT machine in a network you will probably want one of them to be an NT Server machine to act as the domain controller, but you probably DON'T want to run the Oracle database server on that machine.

    The Oracle database server and tools will run equally well on an NT "Workstation" machine as on an NT "Server" machine, unless the Server machine is the Domain Controller for a busy domain, in which case it would be a poor choice to host a busy database server as well.

  • Back to top of file

  • What Oracle services must be running on a NT box?

    To check that the necessary Oracle services are up and running go to CONTROL PANEL/ SERVICES (or type "net start" from a DOS window). You should see at least two lines - OracleStartSID and OracleServiceSID (if you have a SQL*Net listener running, you should see a line for that as well).

  • Back to top of file

  • How can I automatically start Oracle on NT?

    Check to make sure the OracleServiceSID and OracleStartSID services are started. Go to the control panel/services to perform this task. Make sure that both services are set as AUTOMATIC.

    You may need to recreate the two services mentioned above. Do the following, assuming a SID of TEST.

  • Back to top of file

  • Can one start and stop services from a batch job?

    Issue commands similar to these from a batch file:
            net start "OracleAgent"
            net start "OracleStartSID"
            rem net start "OracleServiceSID" /y
            net start "OracleTNSListener"
            net start "OracleWWWListener9999"
    
    To stop the services, use net stop instead of net start.

    These commands are handy if you need to shut down the database for a cold (offline) backup. Do not put this batch file in your Windows startup group as the database will then only start when someone logs onto the server. The database will not start if the server is re-booted and waits on the log-on screen.

    The following registry entries are also handy to prevent a SHUTDOWN ABORT when the OracleServiceSID service is stopped:

            [HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE]
            "ORA_SID_SHUTDOWN"="TRUE"
            "ORA_SID_SHUTDOWN_TIMEOUT"="60"
    

  • Back to top of file

  • How does one kill Oracle processes on NT?

    Use the orakill command that comes with Oracle for NT to kill a thread. You need to specify the thread ID in Hex. Try orakill /? or orakill /h for more details.

  • Back to top of file

  • How does one take a hot database backup on NT?

    You need to use the Oracle OCOPYxx.EXE utility on Windows NT to backup open database files (e.g. do a hotbackup).

    The NTBACKUP command will not backup open files. Also, OCOPYxx.exe (e.g. OCOPY80.EXE distributed with Oracle8.0) will not backup files to tape, only to another disk location. Once the hotbackup to disk is complete, you can use the NTBACKUP utility to backup the files to tape.

    Note: If you perform a hot backup your databases must run in archivelog mode, otherwise shutdown and do a cold backup.

  • Back to top of file

  • Can I schedule backups and maintenance jobs on NT Server?

    Yes, make sure the SCHEDULE service is running (control panel/ services/ schedule). You can now schedule jobs by issuing the AT command. Eg:
            C:>at 12:00pm "my_backup"
            Added a new job with job ID = 0
    
    To get a list of scheduled jobs, execute the AT command without any parameters: Eg:
            C:>at
            Status ID   Day                     Time          Command Line
            ----------------------------------------------------------------
                    0   Tomorrow                12:00 PM      my_backup
    
    For more info, type AT /?

    Also note that several alternatives exist to the AT command. For example, there is a GUI utility in the NT Resource Kit CD-ROM for scheduling jobs. This utility will (supposedly) become part of the OS with version 5.0. It's a lot more convenient to use than its command-line counterpart AT.

  • Back to top of file

  • How can I fool Oracle to think a remote database is local?

    Some products, like Oracle WebDB, require a local Oracle database. You can direct all connect requests to a TNSNAMES.ORA connect descriptor by setting the LOCAL string in your Windows registry. Whenever you now connect to a database without a connect string, the remote database will be used. PS: In a BAT or CMD file, you can just do a "set LOCAL=alias_name".

  • Back to top of file

  • Any performance tuning tips for Oracle on NT?

  • Back to top of file

  • Where can I get more info about WindowsNT?

  • Back to top of file

  • General: Home | Index | Preamble | Glossary | OraCorp | Papers | Fun | News | Events | Y2000 | Books | Links | Forums
    Products: SQL | Plus | Loader | PL/SQL | PreComp | OPO | OMO | OO4OLE | DBA | PQO | PSO | OCO | Net | ODBC | WebServer | Des2k | Dev2k
    Systems: MVS | Unix | Windows | WindowsNT | NetWare | VMS