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.

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

  • 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 .

  • 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

  • ORA-19507 when restoring pfile from autobackup

    Hey,
    We're testing our disaster recovery process and recently installed netbackup 5.1 on a AIX 5.3 server. Our database is 10.2.0.4.
    We've imported the tapes, seemingly successfully. Now we are trying to restore the pfile from an autobackup of the spfile. RMAN finds the appropriate file in the netbackup catalog, but can't read it, it seems. The tape device is a standalone drive. I've tried loading the tape at various points in the process, to no avail. Any ideas? Here's the stack:
    RMAN> run
    2> {
    3> ALLOCATE CHANNEL c1 DEVICE TYPE sbt;
    4> RESTORE SPFILE TO PFILE '?/dbs/initchs2qual.ora' FROM AUTOBACKUP;
    5> SHUTDOWN ABORT;
    6> }
    allocated channel: c1
    channel c1: sid=37 devtype=SBT_TAPE
    channel c1: VERITAS NetBackup for Oracle - Release 5.1 (2004043014)
    Starting restore at 05-NOV-09
    channel c1: looking for autobackup on day: 20091105
    channel c1: looking for autobackup on day: 20091104
    channel c1: autobackup found: c-4162663984-20091104-00
    released channel: c1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 11/05/2009 14:27:28
    ORA-19870: error reading backup piece c-4162663984-20091104-00
    ORA-19507: failed to retrieve sequential file, handle="c-4162663984-20091104-00", parms=""
    ORA-27029: skgfrtrv: sbtrestore returned error
    ORA-19511: Error received from media manager layer, error text:
    Failed to open backup file for restore.
    Thanks,
    Bill

    oracle@CB-BCC-2$oerr ora 27029
    27029, 00000, "skgfrtrv: sbtrestore returned error"
    // *Cause:  sbtrestore returned an error.  This happens when retrieving a
    // backup file during a restore operation.
    // *Action: This error is returned from the media management software which is
    // linked with Oracle. There should be additional messages which
    // explain the cause of the error. This error usually requires
    // contacting the media management vendor.

  • 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

  • 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

  • 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.

  • 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..

  • Issue when creating SPFILE from pfile;Is this a bug ?

    Version : 11.2
    os : AIX
    I created a pfile from spfile stored it in a non-default location ie. a location other than ORACLE_HOME/dbs
    create pfile='/u01/oracle/mytest_pfile.ora' from spfile;I brought down the DB , and started the DB using the above pfile from non-default location
    startup pfile='/u01/oracle/mytest_pfile.ora'  -- pfile in a non-default locationNow i am creating an SPFILE from the pfile without explicitly mentioning the pfile file name in the non-default file location.
    create spfile='/u01/oracle/mytest_spfile_sep23_2011.ora' from pfile;Using strings command (in AIX) I verified the contents of the spfile . It seems that if you don't mention the file name of pfile , then oracle reads the pfile which is in
    ORACLE_HOME/dbs and NOT the pfile from the non-default location which is used to startup the instance !!! . Isn't this a bug?

    No ,it's not a bug.
    order of precedence of parameter file is as follow :
    1.) spfileSID.ora --- non default
    2.) default spfile
    3.) initSID.ora --- non default pfile
    4.) default pfile
    In your case i.e; create spfile='/u01/oracle/mytest_spfile_sep23_2011.ora' from pfile;
    here it is reading pfile from fefault pfile because it will always search the pfile or spfile in dba directory .
    if you want to create the spfile from non-default pfile then create spfile as :
    create spfile='/u01/oracle/mytest_spfile_sep23_2011.ora' from pfile='/u01/oracle/mytest_pfile.ora' ;
    --neeraj                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • 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>

  • How to startup the database from pfile?

    Hi guys.
    hope all of you fine.
    how to startup the database from pfile?
    Thanks.

    You can create pfile from spfile
    SQL>create pfile='/tmp/pfile.ora' from spfile;
    then
    SQL>startup pfile='/tmp/pfile.ora';
    You can edit pfile.ora file and startup your database with this newly changed database parameter using pfile
    And you can define you're using pfile or spfile by issuing:
    SQL> show parameter spfile;

  • 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

  • How does pfile sync up with spfile

    When the parameter changed through :
    alter system ... scope=spfile
    when does pfile sync up with sp file? what process make that happen, or does this has to be done manually?
    Thanks

    This has to be done manually via the following command:
    create pfile from spfile;
    - this will create a file named init[SID].ora in your $ORACLE_HOME/dbs directory, by default.
    In this way, you can 'backup' your current spfile settings by using the command:
    create pfile='?/dbs/initSID.2009-05-30.ora';
    If you wanted to know how to startup the instance using your pfile settings, you'd need to using the startup PFILE command (otherwise it would automatically default to using the spfile). For example, to start the instance using the backup you just created:
    startup pfile='?/dbs/initSID.2009-05-30.ora';

  • Migrating with RMAN from 10g to 11g

    Hi gurus,
    I am following the following procedure to migrate database from 10g to 11g using rman
    Source side:
    RMAN>connect target
    RMAN>backup database;
    RMAN>backup archivelog all;
    RMAN>backup current controlfile;
    SQL> create pfile from spfile;
    Copied datafile, archivelog backup files and pfile and password files to target side. i.e. on 11g server side
    Target side:
    Set proper parameters for 11g
    SQL>startup nomount;
    RMAN>connect target
    RMAN>set dbid=<source database id>
    RMAN>catalog start with '<rman backup file location';
    RMAN>restore controlfile;
    RMAN>run
    set newname for datafile 1 to '<target datafiles location with file name';
    restore database;
    switch datafile all;
    finished
    upto now it's success full when i am trying to recover
    RMAN>recover database;
    it is saying
    rman 00571
    rman 00569
    rman 00571
    rman 03002
    ora - 19698
    can you please suggest the solution for this.
    thanks a lot.

    I'm not sure what you're doing is supported.
    You are taking a 10g database and restore and recover it using 11g software.
    I think you are allowed to do that with 10g software only.

Maybe you are looking for

  • How do I set the default file path for the Place command?

    I keep my graphics files for each document in a particular folder. Every time I open an existing InDesign document and place a new image I have to browse back to that location - even though all of the previous images in that document came from the sa

  • How to use ODI procedures into a ODI variable

    Hi, I have the below condition select c1 from table where c1>#ODIVAR1 and use the output of this query in a variable to define the package flow If output=0 package flow goes as XXX else flow goes as YYY. So please suggest how to use a ODI variable to

  • SRM Beginner documentation & demo progam

    Hello, I am new to SRM and require as much information as as I can possible get. Is it possible to email me some documentation I can read through? Are there any sides for Demo Version on the Internet available to get an idea about the program? I basi

  • Teathered Shooting with Lightroom 4

    I've been tethered shooting with Canon for about 3+ years (EOS Utility & DPP, Breeze DSLRremotePro & BBpro), but never had sustained success with Lightroom  2 or 3 for tethered shooting.  Lightroom 4, so far, looks pretty good with respect to tethere

  • Mail shows wrong creation dates for some older messages after upgrade to OSX 10.9.

    Searching for old mail messages I find that the creation date on many old messages is now incorrect after upgrading my system to OSX 10.9. Searching mail for messages from a person now results in threads that include unconnected messages and messages