Document ID:        43450.1
Subject:            Recreating services and instance from the command line
Last Modified:      08 May 97
Author:		    Unknown 


HOW TO RECREATE THE ORACLE SERVICES AND INSTANCE FROM COMMAND LINE

This bulletin give step-by-step instructions for recreating Oracle Services
and instance using the command line Instance Manager (ORADIM72M or ORADIM73).

These following topics are covered in this bulletin:
  1. Deleting the Oracle Services
  2. Creating the Oracle Services and Instance
  3. Starting up the Oracle Services via Command line

1.  Deleting the Oracle Services

       Version 7.2.x:

          C:\ORANT\BIN\ORADIM72 -DELETE -SID (sida, sidb, sidc,...)
                                -DELETE -SRVC (srvca, srvcb, srvcc,...)

                                        -OR-
        Version 7.3.x:

          C:\ORANT\BIN\ORADIM73  -DELETE -SID (sida, sidb, sidc,...)
                                 -DELETE -SRVC (srvca, srvcb, vsrvcc,...)

2. Creating the Oracle Services and Instance

      Version 7.2.x:

          C:\ORANT\BIN\ORADIM72 -NEW -SID orcl
                                -INTPWD oracle (internal_pwd)
                                -STARTMODE auto (or manual)
                                -PFILE C:\ORANT\DATABASE\initORCL.ora

                                        -OR-

        Version 7.3.x:

          C:\ORANT\BIN\ORADIM73 -NEW -SID orcl
                                -INTPWD oracle (internal_pwd)
                                -STARTMODE auto (or manual)
                                -PFILE C:\ORANT\DATABASE\initORCL.ora

3. Starting up the Oracle Services via Command line

       Version 7.2.x:

          C:\ORANT\BIN\ORADIM72 -STARTUP -SID orcl
                                -pfile C:\ORANT\DATABASE\initORCL.ora
                                -USRPWD oracle
                                -STARTTYPE srvc, inst

                                -OR-

       Version 7.3.x:

          C:\ORANT\BIN\ORADIM73  -STARTUP -SID orcl
                                -pfile C:\ORANT\DATABASE\initORCL.ora
                                -USRPWD oracle
                                -STARTTYPE srvc, inst

        NOTE:  These are samples that assume that the Oracle SID
               is ORCL and the database INTERNAL (authorization)
               password is ORACLE and starting both the services
               and the instance with the same command.

SUMMARY OF ORADIM72 & ORADIM73 COMMANDS:

-NEW:

         -NEW -SID <sid>
              -INTPWD <internal_pwd>
              -STARTMODE <auto, manual>
              -PFILE <path & filename>

     NOTE: This creates your Service at the same time it creates the
           instance.

-STARTUP:

         -STARTUP -SID <sid>
            -PFILE <path & filename>
            -USRPWD <user_pwd>
            -STARTTYPE <SRVC, INST>

-SHUTDOWN:

         -SHUTDOWN -SID <sid>
            -SURPWD <usr_pwd>
            -SHUTTYPE <SRVC, INST>
            -SHUTMODE <a, i, n>

-DELETE:

         -DELETE -SID <sida, sidb, sidc,...>
         -DELETE -SRVC <srvca, srvcb, srvcc,...>

Keywords:           RECREATE; CREATE;NT;WINDOWS;INSTANCE;SERVICE;ORADIM;