create SPFile

My spfile had been corrupted and I don't no pfile file so just tell me what to do now? How can I start the database now?
and tell me can open a binary file using the vi editor and make a few changes and saving them can corrupt a spfile?
I had changed the local listener of entry

pawii wrote:
My spfile had been corrupted and I don't no pfile file so just tell me what to do now? How can I start the database now?
and tell me can open a binary file using the vi editor and make a few changes and saving them can corrupt a spfile?
I had changed the local listener of entry

Yes, a binary file for editing with a text editor are GOING to corrupt the file. Computers 101.

If you do not have a backup rman of the spfile, you can recreate a file your alerts log pfile. Every time that the database starts, all default settings are recorded in the log of alerts. Look for these lines and save them in a file pfile. Then use this file pfile to recreate your spfile.

Tags: Database

Similar Questions

  • problem create spfile RAC and ASM

    Hello

    I created a database RAC 11.2.0.1 on virtual machines (oracleVM and oracle linux) (2 cases) with the ASM.

    But when I tried to create spfile, I did no mistake, spfile is created but do not change the value of parameter:

    SQL > create spfile='+DATA/RAC/spfileRAC.ora' of pfile;

    Created file.

    SQL > show the spfile parameter

    VALUE OF TYPE NAME

    ------------------------------------ ----------- ------------------------------

    chain of SPFile

    can you explain to me?

    THX.

    Create a SPFILE does not force the Oracle to use it effectively. Therefore, your setting does not show the in use. You must restart the instance:

    START SPFILE='+DATA/RAC/spfileRAC.ora'

    Oracle RAC, I do two things... first of all, is I put the SPFILE on the shared storage. I then create a pfile file called initORCLx.ora where ORCL is the name of database and 'x' is the instance id. So on node 1, it would be initorcl1.ora and on node 2, initorcl2.ora and so on. The pfile file contains just this one line:

    SPFile='+Data/RAC/spfileRAC.ora'

    Second, you will need to change your configuration in the OCR, so that the instances starts automatically with this spfile.

    srvctl change database ORCL Pei spfile_location_and_name d

    HTH,

    Brian

  • ERROR IN CREATE SPFILE FROM PFILE

    Hello to all... I use oracle 10g and OS is linux... I am creating my existing pfile spfile in the specified location... but I'm getting error... Here is the scenario... pls help me... Thank you

    Create spfile='u01/app/oracle/product/10.2.0/db_1/dbs/spfileorcl.ora 'to pfile='u01/app/oracle/product/10.2.0/db_1/dbs/initorcl.ora ';

    Create a spfile='u01/app/oracle/product/10.2.0/db_1/dbs/spfileorcl.ora' to pfile='u01/app/oracle/product/10.2.0/db_1/dbs/initorcl.ora'

    *

    ERROR on line 1:

    ORA-01078: failure of treatment system parameters

    ORA-27040: create file error, cannot create the file

    Linux error: 2: no such file or directory

    I suspect that you are missing the first slash as below

    Create spfile='/u01/app/oracle/product/10.2.0/db_1/dbs/spfileorcl.ora 'to pfile='/u01/app/oracle/product/10.2.0/db_1/dbs/initorcl.ora ';

  • Error Ora-600 - sql > create spfile from pfile - ERROR at line 1: ORA-00600

    Hello

    I am facing the following question in the database pending,

    Oracle 10g

    SQL > create spfile from pfile;
    Create spfile from pfile
    *
    ERROR on line 1:
    ORA-00600: internal error code, arguments: [ksplrmfn1], [3059], [3059], [], [],.
    [], [], []


    After you have added the db_file_name_convert and log_file_name_convert in pfile. If I remove these two spfile parameters is created successfully.

    Thank you.

    Here's the syntax exactly who i had given.

    db_file_name_convert = "/ u02/proddata", "/ u02/proddata ', ' / u03/proddata", "proddata1/u04 /, ' / u04/proddata ', ' / u04/proddata '
    log_file_name_convert = "/ u02/proddata", "/ u02/proddata ', ' / u03/proddata", "proddata1/u04 /, ' / u04/proddata ', ' / u04/proddata '

    Carefully, see apostrophe ending 4th missed rope... Changed as below. Use it and try again :)

    db_file_name_convert = "/ u02/proddata", "/ u02/proddata", "/ u03/proddata", "/ u04/proddata1", "/ u04/proddata", "/ u04/proddata.
    log_file_name_convert = "/ u02/proddata", "/ u02/proddata", "/ u03/proddata", "/ u04/proddata1", "/ u04/proddata", "/ u04/proddata.

    Close if answered threads

  • RMAN creates spfile and pfile created from it has 0 kb

    Hello
    Oracle 10g, Windows Server 2003.
    I have create a spfile with RMAN:

    *****************************************************************************
    RMAN > BACKUP SPFILE format 'C:\spfile.ora ';

    From backup 20 April 12
    using controlfile target instead of recovery catalog database
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid = 492 devtype = DISK
    channel ORA_DISK_1: from full datafile backupset
    channel ORA_DISK_1: specifying datafile (s) in backupset
    including current SPFILE in backupset
    channel ORA_DISK_1: starting piece 1 at 20 April 12
    channel ORA_DISK_1: finished piece 1 at 20 April 12
    piece handle = C:\SPFILE. ORA comment = NONE
    channel ORA_DISK_1: complete set of backups, time: 00:00:02
    Backup finished on 20 April 12

    From control file and SPFILE Autobackup 20 April 12
    room handle=\\192.168.1.149\G$\JNESRV4-ARCLOGS\MTDPROD\RMAN
    \C-2169285856-201204
    Comment from 20-04 = NONE
    File control finished and Autobackup SPFILE to 20 April 12

    *****************************************************************************

    Strange thing is that C:\spfile.ora created is 96 KB, when original
    SPFile.ora is 4 KB.

    Now, I try to create pfile.ora (init.ora) of plu sql:

    SQL > connect sys / * as sysdba
    Connected.
    SQL > CREATE PFILE ='C:\pfile.ora "of SPFILE ='C:\spfile.ora ';

    Created file.

    SQL >

    Strange thing is that C:\pfile.ora created is 0 KB!
    What is going on?

    SPFILE BACKUP to create a backup set containing spfile, this isn't spfile himself. You must restore this backup but not use it as spfile.

    To create a copy of the spfile, you can use the following command in sqlplus:

    create the 'C:\spfile.ora' of memory = spfile;

  • update the initialization parameter, spfile created on ASM

    Hello

    I would like to increase my database OPEN_LINKS initialization parameter.

    My created spfile ASM storage

    SYS@main1_1 > view the spfile parameter

    VALUE OF TYPE NAME

    ------------------------------------ ----------- ------------------------------

    +DATA_DG/main1/parameterfile/spfilemain1.ora string SPFile

    ASMCMD > pwd

    + MAIN1/DATA_DG/FICHIER_PARAMETRES

    ASMCMD > ls

    SPFile.333.833957263

    spfilemain1.ora

    ASMCMD >

    $ cat initmain1_1.ora

    SPFile='+DATA_DG/main1/parameterfile/spfilemain1.ora'

    Any help, greatly appreciated

    Thank you

    It does not matter where is the spfile.

    The command is

    ALTER system set open_links is... scope = spfile;.

    and bounce the database. IIRC, open_links is a static parameter.

    Note: Please do NOT change the spfile with a text editor, such as vi or vim.

    --------

    Sybrand Bakker

    Senior Oracle DBA

  • ERROR: Cannot get the size of the logical block for spfile

    Ran across the following error in the log of alerts for a the 2 node RAC database:

    ERROR: Cannot get the size of the logical block for spfile "+ XXXXXX_SYSTEM/XXXXXX/spfileXXXXXX.ora".

    Looked in MOS and found nothing.  Has anyone go through this before?  If so, what is the cause?

    Just received a resolution of Support from Oracle.  They said that this is a benign error and can be ignored.  Here is their answer to my SR:

    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    OK, after reviewing all that there seems to be no problem to fix. All configurations are correct. We believe that these errors are benign and can be ignored.

    COMMENTS

    ===============

    -L' ASM instance is online.

    -The Diskgroup: + XXXXXX_SYSTEM is mounted and has the physical and logical of 512 bytes sector size.

    -No error message in the alerts ASM journal.

    In light of the facts above, the message "ERROR: could not get the size of the logical block for spfile" seems benign and can be ignored.

    However, to avoid these messages, as a workaround, you can try creating the spfile pfile '+ XXXXXX_SYSTEM/XXXXXX/spfileXXXXXX.ora' and then try to create spfile diskgroup + XXXXXX_SYSTEM using this file pfile.

    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

  • Missing SPFILE

    Hi guys,.

    I would be grateful if you could help me with the following problem I am unable to locate my spfile said database.

    SQL > show the spfile parameter

    VALUE OF TYPE NAME

    ------------------------------------ ----------- ------------------------------

    +DATA03/cpmstg/spfilecpmstg.ora string SPFile

    When I go in ASM to the location of the said this is what I see:

    ASMCMD > ls

    spfilecpmstg

    ASMCMD > ls - lrt

    WARNING: 'r' is deprecated for 'method '.

    Please use 'inverse '.

    Name of type Redund time scratched Sys

    N spfilecpmstg = > +DATA03/CPMSTG/PARAMETERFILE/spfile.510.859115335

    Now, when I go to the default location i.e./u02/app/oracle/product/11.2.0.4/db/dbs I see the init file:

    [oracle@ora-stg-1a dbs] $ ls - ltr initcpmstg1.ora

    -rw - r-. 1 oracle oinstall 41 24 September 11:25 initcpmstg1.ora

    The init file contains the following entry:

    [oracle@ora-stg-1a dbs] $ initcpmstg1.ora more

    SPFile='+DATA03/CPMSTG/spfilecpmstg.ora'

    Now my question is:

    1. Why I get ORA-01565: could not open the Spfile + DATA03/cpmstg/spfilecpmstg.ora. ?
    2. How can I fix?

    Note: I am running Oracle Database Enterprise Edition 11.2.0.4.0 and run Linux 6 (64-bit).

    Greetings

    Nadège

    So if you hurt the spile file, do a "create spfile from pfile".

  • DBCA failed with ID spfile

    Hello

    I removed the entry from/etc/oratab but I forgot to remove the restarting of Oracle database (database deleted before) but DBCA failed with error DB_UNIQUE_NAME with 8 existing characters at the end.

    I guess I forgot to remove the CONFIGURATION of restart Oracle is why he identified the DB_UNIQUE_NAME even...

    but now:

    AS SYSDBA > start

    ORA-01078: failure in the treatment of system settings

    ORA-01565: error in the identification of file "+ DATA01/pos/spfilepos.ora".

    ORA-17503: ksfdopn:2 could not open the file +DATA01/pos/spfilepos.ora

    ORA-15056: error message

    ORA-17503: ksfdopn:2 could not open the file +DATA01/pos/spfilepos.ora

    ORA-15173: entry 'spfilepos.ora' does not exist in the directory "pos".

    How can I create create battery to start and eventually STARTUP MOUNT RESTRICT and DROP DATABASE and recreate.

    Thank you very much.

    Best regards

    The fixed.

    Thank you.

    Not created lots with db_name and control_files parameters (looked for the location of the asmcmd ASM site control files) has started no editing with this file pfile

    created spfile him... started again with spfile in Mount restrict and drop database...

    Best regards

  • Hi, I have installed Oracle 11 g database express edition on my PC so that I can study and prepare for my certification exam. I was practicing and I published the following command.  'Alter system set Cluster_Database = True Scope = spfile' it worked grea

    SQL * more: Production of release 11.2.0.1.0 Mar 5 13:28:10 Aug 2014

    Copyright (c) 1982, 2010, Oracle.  All rights reserved.

    Enter the user name: sys as sysdba

    Enter the password:

    Connect to an instance is idle.

    SQL > bootable media.

    ORA-00439: feature not enabled: Real Application Clusters

    SQL >

    If the database does not start with the current settings, you will need to manually correct the server parameter file (spfile). This is untested so at your own risk:

    SQL > conn / as sysdba

    SQL > shutdown immediate

    SQL > create spfile from pfile;

    This will create the file pfile C:\oraclexe\app\oracle\product\11.2.0\server\database\initXE.ora

    Make a copy of the pfile as backup

    Edit the pfile origin, remove the line with cluster_database inside and save the file

    SQL > create spfile from pfile;

    SQL > startup

  • SPFile crashed

    Dear Experts,

    In our database we have pfile now spfile also got crashed. now, we are not able to start the instance

    is it possible to recover the spfile or how do I start instance pls help

    SPFile crashed? Anyway, if you're on 10g and prior versions, you must copy the alert log file settings and if you are on 11.2 and above, and you have the running instance, you can run the CREATE SPFILE command from MEMORY.

    HTH

    Aman...

  • Why I can't write spfile?

    Hi all

    11.2.0.1

    Our database of PROD works 24 x 7 and if you ask for downtime only recently.

    For example, I need to change our database for logging operating system. If your update of init.ora or spfile must be precise and quick.

    Can you explian why I can not update online my spfile, so that I can bounce back quickly instead of edit a pfile?

    What I did:

    C:\Users > sqlplus / as sysdba

    SQL * more: Production release 11.2.0.1.0 Thu Nov 28 18:40:41 2013

    Copyright (c) 1982, 2010, Oracle.  All rights reserved.


    Connect to an instance is idle.

    SQL > startup

    ORA-01821: date format not recognized

    SQL > pfile =' start d:\initorcl.ora ';

    ORACLE instance started.

    Total System Global Area 535662592 bytes

    Bytes of size 1375792 fixed

    318767568 variable size bytes

    209715200 of database buffers bytes

    Redo buffers 5804032 bytes

    Mounted database.

    Open database.


    SQL > create spfile from pfile = 'd:\initorcl.ora';

    Created file.

    SQL > alter system set audit_file_dest = 'local0.info';

    "ALTER system set audit_file_dest ='local0.info"

    *

    ERROR on line 1:

    ORA-02096: specified initialization parameter is not editable with this

    option

    SQL > alter system set audit_file_dest = 'local0.info' scope = spfile;

    ALTER system set audit_file_dest = 'local0.info' scope = spfile

    *

    ERROR on line 1:

    ORA-32001: write to SPFILE requested but no SPFILE is in use

    So I need to bounce the database, so I can write my spfile?

    Thank you

    Petra k.

    If you cannot dynamically update the spfile, all the dynamic parameters can be changed online even if you use a file pfile (range = memory). But of course, the pfile file must be modified accordingly to preserve changes made after the next startup.

    The static parameters must rebound by the db in any case.

    Nicolas.

  • How to move ASM spfile to a different disk group


    Hello

    Because of less storage, we plan to move the ASMPARAMETER DATABASE file to the disk of data.2 group and delete the DATA disk group so that we can allocate these free disks to other disk groups.

    This isn't a RAC Setup.

    But I noticed the file ASMPARAMETER in the DataSet and disc of data2. Could you please some help me in this.

    Oracle version is 11.2.0

    OS - Aix server.

    The Type redundancy ASM disk group: NORMAL redundancy

    I searched in Oracle Metalink and found this document -

    Kind regards

    Stephen

    Hello

    For example, please check step bey:

    sqlplus / as sysasm

    SQL * more: Production version 11.2.0.1.0 on

    Copyright (c) 1982, 2009, Oracle. All rights reserved.

    Connected to:

    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production

    With the option of Automatic Storage Management

    SQL > show the spfile parameter

    VALUE OF TYPE NAME

    ------- ------- --------------------------------------------------

    +DATA/ASM/asmparameterfile/registry.253.715881237 string SPFile

    SQL > create pfile='/tmp/pfile+ASM.ora' of spfile;

    Created file.

    2. create spfile in a new disk of the pfile intermediary group

    SQL > create spfile ='+ PLAY "of pfile='/tmp/pfile+ASM.ora."

    Created file.

    SQL > exit

    Disconnected from the database to Oracle 11 g Enterprise Edition Release 11.2.0.1.0 - Production

    With the option of Automatic Storage Management

    3. restart battery HA to check ASM starts fine with moved spfile

    crsctl stop $

    CRS-2791: from closing resources managed by Oracle high availability Services on "".

    ...

    CRS-4133: Oracle high availability Services was arrested.

    crsctl start $ has

    CRS-4123: Oracle high availability Services started.

    Verify that the new spfile is used

    $ sqlplus / as sysasm

    SQL * more: Production version 11.2.0.1.0 on

    Copyright (c) 1982, 2009, Oracle. All rights reserved.

    Connected to:

    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production

    With the option of Automatic Storage Management

    SQL > show the spfile parameter

    VALUE OF TYPE NAME

    ------- ------- --------------------------------------------------

    +PLAY/ASM/asmparameterfile/registry.253.715963539 string SPFile

    SQL > select name, status from v$ asm_diskgroup;

    NAME STATE

    ----- -----------

    DATA CLIMBS

    ROOM RISE

    SQL > exit

    Disconnected from the database to Oracle 11 g Enterprise Edition Release 11.2.0.1.0 - Production

    With the option of Automatic Storage Management

    The use of the new spfile can also be verified with asmcmd as follows:

    $ asmcmd spget

    +Play/ASM/asmparameterfile/registry.253.715963539

    4. remove the original spfile

    $ rm +DATA/asm/asmparameterfile/registry.253.715881237 asmcmd

    And this is an example of moving ASM spfile with 'spcopy asmcmd ".

    1 copy the spfile with the-u option - Update the profile of negotiators in RAC environment

    $ asmcmd spget

    +Data/ASM/asmparameterfile/registry.253.722601213

    $ asmcmd lsdg

    G_files of Type Rebal sector block to Total_MB Free_MB Req_mir_free_MB Usable_file_MB Offline_disks votin' state name

    EXTERN MOUNTED N 512 4096 1048576 14658 9814 0 9814 0 N DATA.

    EXTERN MOUNTED N 512 4096 1048576 9772 8507 0 8507 0 'N PLAY.

    EXTERN MOUNTED N 512 4096 1048576 9772 9212 0 9212 0 N RECO.

    $ asmcmd spcopy u +DATA/asm/asmparameterfile/registry.253.722601213 + PLAY/spfileASM.ora

    2. restart battery HA to check ASM starts with copiedspfile

    crsctl stop $

    CRS-2791: from closing resources managed by Oracle high availability Services on "".

    ...

    CRS-4133: Oracle high availability Services was arrested.

    crsctl start $ has

    CRS-4123: Oracle high availability Services started.

    $ asmcmd spget

    + Play/spfileASM.ora

    3. remove the original spfile

    $ ls-l asmcmd + DATA/asm/asmparameterfile

    Name of type Redund time scratched Sys

    REGISTRY.253.722601213 OF Y ASMPARAMETERFILE UNPROT COARSE 25 JUNE AT 10:00

    $ rm +DATA/asm/asmparameterfile/registry.253.722601213 asmcmd

    Other information plays please this link: http://blog.csdn.net/tianlesoftware/article/details/6347461

    Thank you

  • Substitute the spfile to CARS DB

    DB version: 11.2.0.3 on RHEL 5.8

    Currently, our database RAC spfile look like this.

    SQL > show the spfile parameter

    VALUE OF TYPE NAME

    ------------------------------------ ----------- ------------------------------

    +DATA/brcfs/spfilebrcfs.ora string SPFile

    I want to replace all the parameters in the spfile above with values in a custom pfile, that I have prepared.

    How can I do this?

    If it's a cooked file (Unix/Linux file system) system, I did the steps below

    1 stop DB

    2 startup nomount pfile='/u01/oracle/product/rdbms/11.2/dbs/initbrcfs.ora'---> my pfile custom

    3. Remove spfile file system by using the rm command

    4. create spfile from pfile='/u01/oracle/product/rdbms/11.2/dbs/initbrcfs.ora'

    5 bounce the DB and the DB will start to read the new spfile.

    Since the spfile is stored in the ASM disk group in my case, I won't touch it.

    How can I replace the spfile with the created my file pfile from spfile?

    If you don't want to do this, use CREATE SPFILE = "+...". «FROM PFILE = ' /...» "and then change your database registration in the OCR to point to the new spfile.  More complicated, however.

  • Will be SPFILE='+DATA/mydb/spfilemydb.ora' be crushed?

    Hello

    Env: Oracle 10 g 2 + ASM - 5.8 RHEL 64 bit

    The database is on ASM, I created using pfile "create pfile = 'pfile_name" spfile ". I modified the pfile file and then started the using the instance "startup pfile ="pfile_name".

    Now, if I run "create spfile='+DATA/mydb/spfilemydb.ora' of pfile ="pfile_name"" command, will be replaced on the "existing" spfile (which resides in ASM)?

    I want her to be crushed.

    Best regards

    Post edited by: user130038

    user130038 wrote:

    Hello

    Env: Oracle 10 g 2 + ASM - 5.8 RHEL 64 bit

    The database is on ASM, I created using pfile "create pfile = 'pfile_name" spfile ". I modified the pfile file and then started the using the instance "startup pfile ="pfile_name".

    Now, if I run "create spfile='+DATA/mydb/spfilemydb.ora' of pfile ="pfile_name"" command, will be replaced on the "existing" spfile (which resides in ASM)?

    I want her to be crushed.

    Best regards

    Post edited by: user130038

    Yes

Maybe you are looking for

  • Is iOS 10 public beta still available?

    I'm trying to upgrade to the beta iOS public 10, but after that, nothing happened. I read that I should have received an email or that it should have a link to download and install the update but there was nothing there.

  • restoration of systems

    When I go to restore to an earlier date, he comes up with a Red Cross and said incomplete restoration. Peaches TQ

  • E9120Y Compatible CPU does move

  • Unable to restore my laptop because I have corrupted files.

    Original title: Windows 64 c Windows 64 c says I have corrupted files, if I can't restore my laptop to an earlier date. What should I do?

  • Question of vPC NEXUS7K

    Guyz please correct me if im wrong, I have 2 x Nexus7k and lets say 1 3750 switch now I need to have the connected and active also vPC inter - vlan routing for VLAN10 on the two Nexus switches as follows: -. SW1 - 2x10G - SW2 Nexus nexus (Gi0/3)-/(Gi