DBAsupport.com Forums - Powered by vBulletin
Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 27

Thread: Spfile vs init.ora

  1. #11
    Join Date
    Nov 2004
    Location
    Mumbai, India
    Posts
    452
    Originally posted by stmontgo
    ahhh, so u can like restore it?
    Is it worth it?
    I mean to say u can crete a new one anytime.
    There are three kinds of lies: Lies, damned lies, and benchmarks...

    Unix is user friendly. It's just very particular about who it's friends are.

    Oracle DBA

  2. #12
    Join Date
    Sep 2002
    Location
    England
    Posts
    7,334
    Originally posted by simply_dba
    Is it worth it?
    I mean to say u can crete a new one anytime.
    surely restoring it is easier than having to create a new one

  3. #13
    Join Date
    Nov 2002
    Location
    Geneva Switzerland
    Posts
    3,142
    Originally posted by grjohnson
    And the advantages of using an spfile over an init.ora file are?
    (I don't use spfile either.) I understood the main advantage is that you update the spfile via an alter system, so any changes are validated. If you edit init.ora, you can introduce cr*p that might prevent the db from starting.

  4. #14
    Join Date
    Sep 2002
    Location
    England
    Posts
    7,334
    spfile wont validate your changes

    Code:
    [oracle@LNCSTRTLDB03 oracle]$ sqlplus "/ as sysdba"
    
    SQL*Plus: Release 9.2.0.5.0 - Production on Fri Jan 28 10:20:29 2005
    
    Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
    
    Connected to an idle instance.
    
    SQL> startup
    ORACLE instance started.
    
    Total System Global Area  236000424 bytes
    Fixed Size                   451752 bytes
    Variable Size             201326592 bytes
    Database Buffers           33554432 bytes
    Redo Buffers                 667648 bytes
    Database mounted.
    Database opened.
    
    SQL> alter system set shared_pool_size = 0 scope = spfile;
    
    System altered.
    
    SQL> shutdown
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup
    ORA-00093: shared_pool_size must be between 300000 and 4026531840
    SQL>

  5. #15
    Join Date
    Nov 2002
    Location
    Geneva Switzerland
    Posts
    3,142


    . . . and if you use SCOPE=BOTH ?

  6. #16
    Join Date
    Dec 2000
    Location
    Ljubljana, Slovenia
    Posts
    4,439
    In the era of Oracle10g a question like "should I use spfile or not" has not much relevance any more. Of course you should. And in couple releases this will not be a relevant question any more - pfiles will be desupported anyway, I'm sure. And rightfully so.
    Jurij Modic
    ASCII a stupid question, get a stupid ANSI
    24 hours in a day .... 24 beer in a case .... coincidence?

  7. #17
    Join Date
    Sep 2002
    Location
    England
    Posts
    7,334
    wont let you do scope=both because shared pool cannot be changed woth immediate effect.

    Bottom line is spfile does no checking and its only advantage is not having to remember to update init.ora on permanent system changes

  8. #18
    Join Date
    Nov 2002
    Location
    Geneva Switzerland
    Posts
    3,142
    Oh! so it just protects you from smelling mystiques.

  9. #19
    Join Date
    Sep 2002
    Location
    England
    Posts
    7,334
    Originally posted by DaPi
    Oh! so it just protects you from smelling mystiques.
    precisely

  10. #20
    Join Date
    Aug 2002
    Location
    Atlanta
    Posts
    1,187
    Originally posted by simply_dba
    Is it worth it?
    I mean to say u can crete a new one anytime.
    sure but why bother, if you have several enviornments to manage that's just another point of failure - disaster strikes and developers need their test data back in a hurry - like a champ you begin the restore and ..ge whiz, where did i put that init file, it was here somewhere, instead let rman do the lights out restore for you
    I'm stmontgo and I approve of this message

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