DBAsupport.com Forums - Powered by vBulletin
Results 1 to 6 of 6

Thread: why must have init.ora in $ORACLE_HOME\database directory?

  1. #1
    Join Date
    Apr 2001
    Posts
    257

    why must have init.ora in $ORACLE_HOME\database directory?

    Platform: Oracle 8.1.7.3 on Win2k.

    Why do we have to have init.ora file in the $ORACLE_HOME\database directory? This file simply contains a "link" pointing to where the real init.ora is. I tried to start a database with simply "startup" but it complained the file does not exist with LRM-00109 error. Is this for backward compatibility?

    Thanks,

  2. #2
    Join Date
    Feb 2001
    Location
    UAE
    Posts
    304
    Try this

    SVRMGRL>startup pfile=completepath

    where completepath is the full path of actual pfile, like d:\oracle\ora817\database\initTEST.ora

    Alternatively you can define path for pfile using ORADIM command. Type ORADIM on dos prompt to get a complete list of options.
    Agasimani
    OCP(10g/9i/8i/8)

  3. #3
    Join Date
    May 2001
    Posts
    736
    Actually the the original init.ora file recides in admin/sid/pfile folder under the oracle home.Once the database is started with this file it will create one more defaultsidinit.ora in sysman folder under Oracle home.So next time when u type startup oracle will start with this default location.

  4. #4
    Join Date
    Apr 2001
    Posts
    257
    Thanks for the replies!

    I do know to start up a DB with pfile but am just curious why the file is needed in the database directory. I think in Oracle 8, the original init.ora file do reside in the database directory only.

  5. #5
    Join Date
    May 2001
    Posts
    736
    YES it is little defferent in 8i.If u observe the contents of the init.ora from database folder it points to the original location of pfile.

  6. #6
    Join Date
    Apr 2002
    Location
    France
    Posts
    118
    I believe a128 is right and this is for backward compatibility as it used to not follow the OFA.

    If you do a startup ( without indicating the pfile), Oracle will use [oracle_home]\database\initSID.ora.
    With SID being the value in the registry for ORACLE_SID ( might be under software\oracle\homeo ).
    Actually thats what it does on my NT/8.1.7.


    You might get an error if you oracle_sid is not set or no initSID exist in the database directory.

    Personnaly, I always give the full path....
    If there is no solution, it is because there is no problem - Shadok -

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width