Pfile or spfile?

When Oracle starts an instance it reads the spfile or pfile to determine the initialization parameters.
i want to ask that hacker can also hack the spfile and pfile and damage them or anyone else wrong? in that case how to protect our s/pfiles.
Manish

but if hacker changed the dbname, instance name in that case what will happen?And drop tables, or update data could be more vicious...
This is a whole part of security architecture problem, and not only against (s)pfile.
I would advise you to read some articles from Pete Finnigan.
Nicolas.

Similar Messages

  • Create pfile from spfile when oracle in idle mode

    Create pfile from spfile when oracle in idle mode
    from where it creates pfile?? note:-oracle is in idle stage..

    Since you are asking for creating PFILE so I think below text will answer your question :
    If you do not specify spfile_name, then the database uses the spfile that is currently associated with the instance, usually the one that was used a startup. If no spfile is associated with the instance, then the database looks for the platform-specific default server parameter file name. If that file does not exist, then the database returns an error.http://docs.oracle.com/cd/E11882_01/server.112/e26088/statements_6008.htm#i2072768
    Regards
    Girish Sharma

  • How to know database is using pfile or spfile?????????????

    Hi Guru's
    how to know database is using pfile or spfile?????????????
    THanks

    select decode(count(*), 1, 'spfile', 'pfile' )
    from v$spparameter
    where rownum=1
    and isspecified='TRUE'
    OR
    SELECT DECODE(value, NULL, 'PFILE', 'SPFILE') "Init File Type"
    FROM sys.v_$parameter WHERE name = 'spfile';
    Regards
    Girish Sharma

  • Create pfile from spfile ORA-27037

    This always worked on some other Databases I worked in past. however this Database raise error. Here are the steps on how I did it
    Old initSID.ora file located in directory below
    cd $ORACLE_HOME/dbs
    sqlplus / as sysdba...
    SQL> create pfile from spfile ;
    create pfile from spfile
    ERROR at line 1:
    ORA-27037: unable to obtain file status
    IBM AIX RISC System/6000 Error: 2: No such file or directory
    Additional information: 3
    Any idea why this does not work?

    This is something strange, if the database is using spfile then why there is no value in VALUES column, see below:(like this)
    SQL> show parameter pfile;
    NAME TYPE VALUE
    spfile string ?/dbs/[email protected]
    Do you able to see physical file .

  • Pfile from Spfile

    Hi ,
    I am trying to create pfile from spfile and getting this error.
    Can u pls help me out.
    SQL> show parameter pfile;
    NAME TYPE VALUE
    spfile string ?/dbs/[email protected]
    SQL> create pfile from spfile;
    create pfile from spfile
    ERROR at line 1:
    ORA-07393: unable to delete text file
    Linux Error: 2: No such file or directory
    Additional information: 32
    Additional information: 29
    Additional information: 3
    SQL>
    Thanx in advance

    hi ,
    O/P of ls -al is
    drwxr-xr-x 43 oracle oinstall 4096 Jan 19 13:26 .
    drwxr-xr-x 3 oracle oinstall 4096 Jan 19 12:40 ..
    drwxr-xr-x 10 oracle oinstall 4096 Jan 19 13:02 Apache
    drwxr-xr-x 5 oracle oinstall 4096 Jan 19 13:06 assistants
    drwxr-xr-x 4 oracle oinstall 4096 Jan 19 13:41 BC4J
    drwxr-xr-x 2 oracle oinstall 4096 Jan 22 09:44 bin
    drwxr-xr-x 5 oracle oinstall 4096 Jan 19 12:52 classes
    drwxr-xr-x 10 oracle oinstall 4096 Jan 19 13:02 ctx
    drwxr-xr-x 2 oracle oinstall 4096 Mar 30 10:49 dbs
    drwxr-xr-x 3 oracle oinstall 4096 Jan 19 12:54 demo
    drwxr-xr-x 3 oracle oinstall 4096 Jan 19 12:55 doc
    drwxr-xr-x 10 oracle oinstall 4096 Jan 19 13:01 ds
    drwxr-xr-x 7 oracle oinstall 4096 Jan 19 13:41 hs
    drwxr-xr-x 3 oracle oinstall 4096 Jan 19 13:41 install
    drwxr-xr-x 2 oracle oinstall 4096 Jan 19 13:02 jar
    drwxr-xr-x 8 oracle oinstall 4096 Jan 19 12:54 javavm
    drwxr-xr-x 5 oracle oinstall 4096 Jan 19 12:47 jdbc
    drwxr-xr-x 7 oracle oinstall 4096 Jan 19 13:26 jis
    drwxr-xr-x 2 oracle oinstall 4096 Jan 19 13:26 jlib
    lrwxrwxrwx 1 oracle oinstall 21 Jan 19 12:51 JRE -> /opt/oracle/jre/1
    .1.8
    drwxr-xr-x 6 oracle oinstall 4096 Jan 19 12:56 jsp
    drwxr-xr-x 15 oracle oinstall 4096 Jan 19 13:00 ldap
    drwxr-xr-x 2 oracle oinstall 4096 Jan 19 13:35 lib
    drwxr-xr-x 5 oracle oinstall 4096 Jan 19 13:26 md
    drwxr-xr-x 13 oracle oinstall 4096 Jan 19 13:40 network
    drwxr-xr-x 3 oracle oinstall 4096 Jan 19 12:55 oci
    drwxr-xr-x 3 oracle oinstall 4096 Jan 19 12:47 ocommon
    drwxr-xr-x 16 oracle oinstall 4096 Jan 19 13:41 oem_webstage
    drwxr-xr-x 4 oracle oinstall 4096 Jan 19 12:47 oracore
    drwxr-xr-x 13 oracle oinstall 4096 Jan 19 12:55 ord
    drwxr-xr-x 7 oracle oinstall 4096 Jan 19 13:26 otrace
    drwxr-xr-x 4 oracle oinstall 4096 Jan 19 12:54 owm
    drwxr-xr-x 8 oracle oinstall 4096 Jan 19 12:55 plsql
    drwxr-xr-x 8 oracle oinstall 4096 Jan 19 12:47 precomp
    drwxr-xr-x 13 oracle oinstall 4096 Jan 19 13:41 rdbms
    drwxr-xr-x 8 oracle oinstall 4096 Jan 19 13:26 relnotes
    -rwxr-xr-x 1 oracle oinstall 7448 Jan 19 13:41 root.sh
    drwxr-xr-x 3 oracle oinstall 4096 Jan 19 12:47 slax
    drwxr-xr-x 5 oracle oinstall 4096 Jan 19 12:48 sqlj
    drwxr-xr-x 7 oracle oinstall 4096 Jan 19 12:54 sqlplus
    drwxr-xr-x 8 oracle oinstall 4096 Jan 19 13:01 syndication
    drwxr-xr-x 12 oracle oinstall 4096 Jan 19 12:56 sysman
    drwxr-xr-x 10 oracle oinstall 4096 Jan 19 13:06 ultrasearch
    drwxr-xr-x 3 oracle oinstall 4096 Jan 19 13:00 wwg
    drwxr-xr-x 8 oracle oinstall 4096 Jan 19 12:47 xdk
    and I have seen in my dbs directory also that inittest.ora does not exist.
    I have all the permissions on this particular directory.
    Pls check into it .
    Waiting for the response.

  • Creating Pfile from Spfile while Instance is down

    We can create pfile from the spfile of an instance which is currently shut down. Right?
    SQL*Plus: Release 11.1.0.7.0 - Production on Mon Apr 12 02:06:52 2010
    Copyright (c) 1982, 2008, Oracle.  All rights reserved.
    Connected to an idle instance.
    SQL> create pfile from spfile;
    File created.Reason why we need it:
    We used to have an instance which consumed 5 gb Memory_target and then we shut it down. It was using SPFILE. Now we want to bring up this instance with only 3gb Memory_target. So we are thinking of editing the pfile created using the above method. It should be fine. Right?

    GarryB wrote:
    We can create pfile from the spfile of an instance which is currently shut down. Right?
    SQL*Plus: Release 11.1.0.7.0 - Production on Mon Apr 12 02:06:52 2010
    Copyright (c) 1982, 2008, Oracle.  All rights reserved.
    Connected to an idle instance.
    SQL> create pfile from spfile;
    File created.Reason why we need it:
    We used to have an instance which consumed 5 gb Memory_target and then we shut it down. It was using SPFILE. Now we want to bring up this instance with only 3gb Memory_target. So we are thinking of editing the pfile created using the above method. It should be fine. Right?Right

  • Pfile vs spfile

    Hello all,
    I want to know whether Oracle9i running on my server is using spfile or pfile configuration.
    Thanks.

    hi hans,
    good point indeed, i would like to ask some question if you don't mind!!!!!!!
    i have a database, and i opened it by using
    SQL>startup pfile=/path/pfile.ora
    database open
    the next time i opened it, it do not need to provide path of pfile, rather it get started directly, and oracle first search for the spfile am i right??? it looks at the default location of pfile for database parameters.....please correct me if i am wrong...and we use
    SQL> create spfile from pfile=/path/pfileinit.ora
    spfile created
    you are right pfile is used only to find database parameters, but what if i want to change some parameters that are not static,that is need to down database, at that time we should know the path of pfile....please correct me if i am wrong, although we can create
    SQL> create pfile=/path/pfileinit.ora from spfile;
    and then make changes to pfile as we want.....am i thinking same way that i should think???
    thanks and regards
    VD

  • Instance started with pfile or spfile?

    How to know which parameter file used for start the instance?

    SQL> show parameter spfile;
    NAME TYPE VALUE
    spfile string /oracle/product/10.2.0/db_1/db
    s/spfileneon.ora
    if you get the path under the VALUE column, it means that you have used spfile to open the db..

  • How to know whether the database is using SPFILE or PFILE

    How can i know whether the database is using SPFILE or PFILE.
    There are both initSID.ora and spfileSID.ora in default location.
    The registry entry for ORA_SID_PFILE is C:\oracle\ora90\database\initSID.ora
    Also, if it is using SPFILE than how can i modify the non dynamic parameters when the database is in the close state.
    Manu

    If you do not specify a path of a pfile , when you actually startup a database , then it will be use your pfile , if you specify a path explicitly fot a pfile , then it'll use your pfile.
    Also, if it is using SPFILE than how can i modify the non dynamic parameters when the database is in the close state.sql > create spfile from pfile ;
    the spfile will syncronise with pfile .
    Hare krishna
    Alok

  • Verify steps is correct - about spfile & pfile

    hi guys,
    let say i need to modify log_archive_format to a valid value and my database cannot startup. The step i need to take is
    SQL> conn sys as sysdba
    Enter password:
    Connected.
    SQL>
    SQL>
    SQL> create pfile from spfile;
    File created.
    SQL> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup pfile;
    SP2-0714: invalid combination of STARTUP options
    SQL> startup pfile
    SP2-0714: invalid combination of STARTUP options
    SQL> startup pfile='C:\oraclexe\app\oracle\product\11.2.0\server\database\initXE.ora';
    ORACLE instance started.
    Total System Global Area  535662592 bytes
    Fixed Size                  1384760 bytes
    Variable Size             243273416 bytes
    Database Buffers          285212672 bytes
    Redo Buffers                5791744 bytes
    Database mounted.
    Database opened.
    SQL>
    SQL>
    SQL> show user
    USER is "SYS"
    SQL>
    SQL>
    SQL> show parameter spfile;
    NAME                                 TYPE        VALUE
    spfile                               string
    File created.
    SQL> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup
    ORACLE instance started.
    Total System Global Area  535662592 bytes
    Fixed Size                  1384760 bytes
    Variable Size             243273416 bytes
    Database Buffers          285212672 bytes
    Redo Buffers                5791744 bytes
    Database mounted.
    Database opened.
    SQL>
    SQL>
    SQL> show parameter spfile;
    NAME                                 TYPE        VALUE
    spfile                               string      C:\ORACLEXE\APP\ORACLE\PRODUCT
                                                     \11.2.0\SERVER\DATABASE\SPFILE
                                                     XE.ORA
    SQL>the step to restart the database again after the database was startup using the pfile was to allow the database to use spfile back. Is that correct?
    And not too sure why the below won't work until i specify the full path.
    >
    SQL> startup pfile;
    SP2-0714: invalid combination of STARTUP options
    SQL> startup pfile
    SP2-0714: invalid combination of STARTUP options
    SQL> startup pfile='C:\oraclexe\app\oracle\product\11.2.0\server\database\initXE.ora';
    ORACLE instance started.

    Andy Klock wrote:
    You have me stumped. It didn't look like you did anything at all. Typically if you get into a state when the spfile has values that don't allow you to startup the instance, you create a pfile from the spfile, which you did. Then you correct the pfile. (vi initXE.ora) which I don't see. Then you execute create spfile from pfile='&corrected_pfile', then startup the instance with the fixed spfile.
    As for the pfile parameter, you have to specify the file. That's the way it's always been. If you don't specify anything (i.e. startup) it will first default to the spfile (9i and above) then to the initORACLESID.ora, otherwise it doesn't know where to look.
    Good luck.oops....i accidently copied the wrong demo.. .
    it should be :
    SQL> conn sys as sysdba
    Enter password:
    Connected.
    SQL>
    SQL>
    SQL> create pfile from spfile;
    File created.
    SQL> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    -- MODIFY THE pFILE, THEN
    SQL> startup pfile;
    SP2-0714: invalid combination of STARTUP options
    SQL> startup pfile
    SP2-0714: invalid combination of STARTUP options
    SQL> startup pfile='C:\oraclexe\app\oracle\product\11.2.0\server\database\initXE.ora';
    ORACLE instance started.
    Total System Global Area  535662592 bytes
    Fixed Size                  1384760 bytes
    Variable Size             243273416 bytes
    Database Buffers          285212672 bytes
    Redo Buffers                5791744 bytes
    Database mounted.
    Database opened.
    SQL>
    SQL>
    SQL> show user
    USER is "SYS"
    SQL>
    SQL>
    SQL> show parameter spfile;
    NAME                                 TYPE        VALUE
    spfile                               string
    SQL> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup
    ORACLE instance started.
    Total System Global Area  535662592 bytes
    Fixed Size                  1384760 bytes
    Variable Size             243273416 bytes
    Database Buffers          285212672 bytes
    Redo Buffers                5791744 bytes
    Database mounted.
    Database opened.
    SQL>
    SQL>
    SQL> show parameter spfile;
    NAME                                 TYPE        VALUE
    spfile                               string      C:\ORACLEXE\APP\ORACLE\PRODUCT
                                                     \11.2.0\SERVER\DATABASE\SPFILE
                                                     XE.ORA
    SQL>

  • Create SPFILE from pfile not working

    Experts,
    I have edited SPFILE by mistake....but.... I do have a good pfile and am able to startup oracle from pfile.
    I am trying create SPFILE from pfile:
    create spfile='path/file' from pfile='path/file'
    as soon as I execute this command prompt is showing as follows:
    c>: 2
    and is expecting some reponse, if typein some char like:
    c>:2 AAAA,,, reponds back:
    c>: 3 (expecting response again)
    Please let me know what could be wrong.
    I am connected as SYSDBA...
    Your help will be greatly appreciated.
    Venkat

    create spfile='path/file' from pfile='path/file'It's expecting a command termination : try adding a semicolon, e.g.
    create spfile='path/file' from pfile='path/file';
    http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14357/ch4.htm#sthref829

  • Spfile is dynamic. But so is Pfile. Right ?

    Version:11.2.0.3
    Quoting Metalink Doc "Pfile vs SPfile [ID 249664.1]"
    "The SPFILE permits dynamic changes without requiring you to bring down the instance"
    Doesn't the above statement give a wrong impression that when you use pfile, you need to bounce the DB for dynamich parameter ?
    The following commands are run in a DB using pfile. As I've shown below, I've changed the following dynamic parameter without bouncing the DB.
    The only downside is that this change is not persistent across reboots unless you manually edit the pfile.
    SQL> ALTER SYSTEM SET LARGE_POOL_SIZE = 300M SCOPE= MEMORY;
    System altered
    SQL> SHOW PARAMETER LARGE_POOL
    NAME                                 TYPE        VALUE
    large_pool_size                      big integer 304M

    Hi,
    "The SPFILE permits dynamic changes without requiring you to bring down the instance"
    Means no need to edit value in later(database restart) like you have to do in the pfile case 

  • PFILE, SPFILE ?

    I am new to oracle. When I startup the database get the following error.
    SQL> STARTUP NOMOUNT;
    ORA-01078: failure in processing system parameters
    LRM-00109: could not open parameter file 'E:\ORACLE\PRODUCT\10.1.0\DB_1\DATABASE\INITOCA10GS.ORA'
    SQL>
    Are there any option to start the database if there is no any pfile or spfile?
    Thanks,
    Regards Manoj.

    Thanks to all.
    After database starts can I identify which file that
    the database used to start?
    Use show parameter spfile. If it displays some value it means the database has been started up using the shown spfile. Otherwise you are using pfile.
    And i think there is no way to see using which pfile you started up the database ?
    Amardeep Sidhu

  • Is possible convert/edit OFFLINE spfile to pfile in 11gR2

    Hello.
    I' ve got some SPFILEs to test with COMPATIBLE=11.1.0.0.0 on a 11gR2 (11.2.0.0.0) database.
    Is there ANY way (pfile from spfile + editing + spfile from pfile seems not working) to chiange the COMPATIBLE parameter to 11.2.0.0.0 in the original SPFILEs?
    Thanks
    Paolo

    PaolFili wrote:
    14:01:38 31-MAY-13:SYS@orcl >show parameter compatible
    NAME TYPE VALUE
    compatible string 11.2.0.0.0
    14:01:50 31-MAY-13:SYS@orcl >sho parameter spfile
    NAME TYPE VALUE
    spfile string /u01/app/oracle/product/11.2.0
    /dbhome_1/dbs/spfileorcl.ora
    Probably mu qyestion is not clear.
    i)I' ve installled 11g*R2* software and create a 11g*R2* db.
    ii)I' m not able to LOAD a spfile with compatible 11.1.0.0.0 ---
    someone can show me how to do?
    If I SUBSTITUTE the spfileorcl.ora (default) with a spfile with COMPATIBLE=11.1.0.0.0
    I' got the following error from alert:
    Fri May 31 14:07:50 2013
    ALTER DATABASE   MOUNT
    ORA-00210: cannot open the specified control file
    ORA-00202: control file: '/u01/app/oracle/oradata/orcl/control03.ctl'
    ORA-27037: unable to obtain file status
    Linux Error: 2: No such file or directory
    Additional information: 3
    ORA-00210: cannot open the specified control file
    ORA-00202: control file: '/u01/app/oracle/oradata/orcl/control02.ctl'
    ORA-27037: unable to obtain file status
    Linux Error: 2: No such file or directory
    And what do you suppose the above error means?
    Hint: it has nothing, zero, zilch, nada, null to do with a 'compatible' parameter.
    Additional information: 3
    Fri May 31 14:07:51 2013
    Checker run found 2 new persistent data failures
    ORA-205 signalled during: ALTER DATABASE   MOUNT...
    so the question is:
    Is possible to modify using a 11.2.0.0.0 instance the COMPATIBLE parameter in OFFLINE files from 11.1.0.0.0 to 11.2.0.0.0 ?You've got bigger problems than your COMPATIBLE parameter. Like, why is the spfile (or is it a pfile) pointing to a non-existent control file?
    >
    Thanks

  • SPFILE to PFILE

    Hi,
    My database is now using SPFILE insteed of PFILE,How can I alter the database to use PFILE without shuting the database down

    Hey, you asked the following
    My database is now using SPFILE insteed of PFILE,How can I alter the database to use PFILE without shuting the database down
    See, once the database is started, oracle doesn't use PFILE or SPFILE, though, you can make changes to the SPFILE (if your database started using SPFILE) using ALTER SYSTEM...SCOPE=SPFILE.
    So, if you want to use PFILE now, you have to shutdown and restart your database using PFILE.
    Now you say We manage to solve it by using alter system set with scope to change it in SPFILE.It's now reading the right parameters
    Sorry, you said earlier that you want to use PFILE.
    -Mukesh

Maybe you are looking for

  • PDF not displayed in Firefox 2.0 because of a popup

    Hello, we use NetWeaver 2004s SP9 and WebDynpro for ABAP 2004s SP 9. In case of using Browser Firefox 2.0, we detected a problem with popups and Adobe Interactive Forms Integration. The problem - described in a simplified form - occurs as follows: Th

  • How can I find who deleted my files?

    Hello all. In my local network, A user see my share partitions and files then removed them, How can I find who did it? THanks.

  • To read a sram

    Is it possible to read a sram with the DAQCard 6533 ? If you've already done it, would you please send to me exemples of programs and you advises about how to proceed. my e mail is [email protected] Thank you for helping a trainee... Bertrand Jacquet

  • What are differences between a N95 for European ma...

    Hello. I would like to ask you, what are the differences between a N95 for European market and one for Asian? I bought one for Asian and I have an awkward keypad and a dictionary. I`m wondering are there any other differences, like built quality? Sho

  • Webutil.olb in linux

    Hi all, How to drag and drop webutil to object groups in linux. I am trying to drag in but not happenig in linux. How to attach webutil.olb in linux platform? the oracle demo is only for windows platform.