Spfile creation

my spfile had been corrupted and i dont have any pfile so tell me what to do now?? how can i startup the database now??
and tell me can opening a binary file using vi editor and performing some changes and saving them can corrupt an spfile??
i had changed the entry local listener

pawii wrote:
my spfile had been corrupted and i dont have any pfile so tell me what to do now?? how can i startup the database now??
and tell me can opening a binary file using vi editor and performing some changes and saving them can corrupt an spfile??
i had changed the entry local listenerYes, editing a binary file with a text editor WILL corrupt the file. Computers 101.
If you do not have an rman backup of the spfile, you can recreate a pfile from your alert log. Every time the database starts, all non-default parameters are logged to the alert log. Locate those lines and save them to a pfile. Then use that pfile to re-create your spfile.

Similar Messages

  • Error in spfile creation

    Hi,
    I am getting this error while creating spfile
    SQL> CREATE SPFILE FROM PFILE='d:\oracle\ora92\database\initOrmrep.ora';
    CREATE SPFILE FROM PFILE='d:\oracle\ora92\database\initOrmrep.ora'
    ERROR at line 1:
    ORA-01078: failure in processing system parameters
    LRM-00111: no closing quote for value 'd:\oracle\'
    Is there any length restriction to the parameter to pfile? Even then y this error?
    Thanks and Rgds
    Muneer

    Are there any syntax errors or missing quotes in the file d:\oracle\ora92\database\initOrmrep.ora?
    Can you startup your database successfully using:
    SQL> startup pfile=d:\oracle\ora92\database\initOrmrep.ora

  • Which one is the alias here ?

    Grid version: 11.2.0.3
    Platform : Oracle Linux 6.3
    If I manually name the following redo log file as shown below without depending on OMF
    SQL> ALTER DATABASE ADD LOGFILE MEMBER '+RL_DG/orcl/onlinelog/redo3b.log' to group 3;
    Database altered.
    From ASMCMD> ls -l output , I can see another file being pointed to redo3b.log like
    redo3a.log => +RL_DG/orcl/onlinelog/group_3.257.831130475
    Which one is the ASM alias here ?
    redo3a.log
    or
    +RL_DG/orcl/onlinelog/group_3.257.831130475  ?

    +RL_DG/orcl/onlinelog/redo3b.log is the alias here. The 'real' file which ASM has internally created for your alias is +RL_DG/orcl/onlinelog/group_3.257.831130475
    All filenames in ASM are created supposedly with OMF. When you manually specify a name , ASM will create the actual file with system generated file name. spfile creation in ASM is a classic example for this.

  • About spfile creating in oracle 10g while creating a new database

    hi everyone,
    i had this problem while i was creating a new database in oracle 10g.when running the database script, it gives an error about invalid option for create temporary tablespace. is it necessary to have an spfile created in 10g. when the script was not working,we tried to create spfile which gives error tht it does not match the parameter db_name. its taking the default db_name=orcl itself..tis not taking our new db name.
    im creating it manually through sql prompt not through DBCA.the problem is that its still accepting the default db name. please send me the solution with syntaxes.
    thanx

    first of all, thanx for giuding me as im a student doing a course in this
    what abt the creation of spfile.. in a documentation for steps in creating database, they have mentioned it as recommended in creating spfile.here are some notes regarding this ....for oracle 10g
    Step 5: Create a Server Parameter File (Recommended)
    Oracle recommends that you create a server parameter file as a dynamic means of maintaining initialization parameters. The server parameter file is discussed in "Managing Initialization Parameters Using a Server Parameter File".
    The following script creates a server parameter file from the text initialization parameter file and writes it to the default location. The script can be executed before or after instance startup, but after you connect as SYSDBA. The database must be restarted before the server parameter file takes effect.
    -- create the server parameter file
    CREATE SPFILE='/u01/oracle/dbs/spfilemynewdb.ora' FROM
    PFILE='/u01/oracle/admin/initmynewdb/scripts/init.ora';
    SHUTDOWN
    -- the next startup will use the server parameter file
    EXIT
    the error : db_name does not match with the parameter.
    its still taking the default orcl database name

  • Error while running index creation

    Hi All ,
    I am running index creation step like below .
    alter session enable parallel DDL;
    alter session set workarea_size_policy=manual;
    alter session set sort_area_size=250000000;
    alter session set db_file_multiblock_read_count=128;
    CREATE INDEX "CUST_ROUTE_IDX" ON "CUST_2_K2K" ("PP2S", "KK2S")
    PCTFREE 10 INITRANS 2 MAXTRANS 255 NOLOGGING
    STORAGE( INITIAL 5M
    NEXT 16777216
    MINEXTENTS 1
    MAXEXTENTS 2147483645
    PCTINCREASE 0
    FREELISTS 1
    FREELIST GROUPS 1
    BUFFER_POOL DEFAULT)
    TABLESPACE "INDX" PARALLEL 2;
    when i am running like above i am getting following error..
    CREATE INDEX "CUST_ROUTE_IDX" ON "CUST_ROUTE_IDX" ("PP2S", "KK2S")
    **ERROR at line 1:**
    **ORA-00604: error occurred at recursive SQL level 1**
    **ORA-04031: unable to allocate 38410272 bytes of shared memory ("large**
    **pool","SEQ$","QERHJ hash-joi","kllcqc:kllcqslt")**
    DB is ORA 10gR2 installed on 8 cpu machine with 32 GB of RAM . From Unix Top command i can understand that 18GB of RAM is free.
    When i remove "alter session set sort_area_size=250000000;" and run above script no error is coming .
    But enough memory is availabe to the machine as per UNIX . Can any one help me out why this err is coming .
    Also when I do " show parameter sort_area_size " in any new sqlplus session it displays 65536
    This value is in bytes/KB/MB ...pls advice
    Thanks in Advance

    Please read any error message carefully, prior to posting.
    **ORA-04031: unable to allocate 38410272 bytes of shared memory (*"large**
    **pool"*,"SEQ$","QERHJ hash-joi","kllcqc:kllcqslt")**
    Oracle is trying to allocate memory in the large pool, and the large pool is too small.
    The sort_area_size has nothing to do with it.
    Also there is no gain in setting the work_policy to manual, as Oracle will allocate memory beyond pga_aggregate_target automagically.
    There is also no gain in setting db_file_multiblock_read_count, as Oracle will adjust that automagically.
    Sort_area_size is in bytes, as documented, and it is your value in the spfile/init.ora which is the default or which you have set.
    You can read about this in the documentation which is online at http://tahiti.oracle.com
    Sybrand Bakker
    Senior Oracle DBA

  • Custom List Form creation using Powershell - SharePoint 2013

    Hi,
    I have a custom List called 'IssuesList' with 4 fields - "IssueTitle","IssueID","IssueDesc","Status"
    While displaying display form I should show 3 fields expect Issue ID i.e. IssueID should be hidden.
    and on edit form only Status field should be editable. So using SharePoint designer I created respective Edit form and display forms and changed XSLT to control the display mode on the fields.
    I have everything scripted in powershell till now - creation of custom list, publishing pages, webparts etc. however I am looking for how to provision or associate these 2 list forms with IssuesList after I create the list in new site.
    I have restrictions on using wsp and site/list template due to business needs. So I need to know if there is any way I can upload these 2 files after I create custom list in powershell and associate them as defaultdisplay and defauteditforms?
    Please advise.

    Hi,
    Per my understanding, you might need to apply these custom forms to a list after list creation using PowerShell.
    With PowerShell with SharePoint Object Model, we can hide fields on list forms.
    The similar thread below with code snippet will provide more information about this:
    https://social.technet.microsoft.com/Forums/en-US/ee6fc2eb-197f-4144-94fa-8a4e438675d9/hide-a-field-from-edit-form-list?forum=sharepointgeneralprevious
    If there may be other requirements except for hiding fields, as you have limitation on using custom solution package(which should be preferable in such scenario),
    a workaround I can provide is that, after list creation, you can add Content Editor Web Part contains the CSS style or JavaScript to the form pages of a specific list, it will help you hide/disable the specific elements, this can be achieved programmatically.
    The code below can add a Content Editor Web Part to the DisplayForm of a list(though in C#):
    public static void AddCEWP()
    SPLimitedWebPartManager manager = null;
    SPFile file = null;
    using (SPSite site = new SPSite("http://sp"))
    using (SPWeb web = site.RootWeb)
    try
    web.AllowUnsafeUpdates = true;
    file = web.GetFile(web.Url + "/Lists/List018/DispForm.aspx");
    manager = file.GetLimitedWebPartManager(PersonalizationScope.Shared);
    ContentEditorWebPart webPart = new ContentEditorWebPart();
    XmlDocument xmlDoc = new XmlDocument();
    XmlElement xmlElement = xmlDoc.CreateElement("HtmlContent");
    //xmlElement.InnerText = "<strong>Hello World!</strong>";
    //write the custom CSS style or JavaScript here
    string content = "<style>your custom style here...</style>";
    xmlElement.InnerText = content;
    webPart.Content = xmlElement;
    manager.AddWebPart(webPart, "Top", 0);
    manager.SaveChanges(webPart);
    web.Update();
    catch (Exception ex)
    //Utility.SPTraceLogError(ex);
    finally
    if (manager != null)
    manager.Dispose();
    web.AllowUnsafeUpdates = false;
    About how to hide fields on Standard List Forms using jQuery:
    http://social.technet.microsoft.com/wiki/contents/articles/21730.sharepoint-2010-conditionally-hide-fields-on-standard-list-forms-using-jquery.aspx
    http://stackoverflow.com/questions/10010405/how-to-hide-a-field-in-sharepoint-display-form-based-on-the-field-name-jquery
    Thanks
    Patrick Liang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support,
    contact [email protected]
    Patrick Liang
    TechNet Community Support

  • Reg: Creation of PFILE

    Hi
    I'm a fresh DBA.I'm new to this field and learning Things.Unknowingly i deleted the pfile and made a shutdown to my database..... When i'm trying to start the Database i'm unable to start it. is there any way to create a new pfile..........Please find me the way...
    Advance Thanks
    S.Ram

    Hi,
    What is your Oracle version ? Have you create a spfile before delete pfile ? If the response is no, you need to recreate a pfile manually.
    => It a good way to have a backup of all database files, including pfile (or spfile).
    Nicolas.
    Duplicate case with thread in other forum :
    Re: Reg: Creation of PFILE after DB Shutdown
    Message was edited by:
    N. Gasparotto

  • Reg: Creation of PFILE after DB Shutdown

    Hi
    Actually i deleted the pfile accidentally and shutdown my database..... is there any way to create a new pfile..........Please find me the way...

    Duplicate case with thread in other forum :
    Reg: Creation of PFILE
    Choose a forum and fix it.
    What is your Oracle version ? Have you create a spfile before delete pfile ? If the response is no, you need to recreate a pfile manually.
    => It a good way to have a backup of all database files, including pfile (or spfile).
    Nicolas.

  • Database creation with ASM using dbca

    hi all,
    i found the steps to create the database using ASM diskgroup.
    but i received errors when configuring the FRA(flash recovery area), DBF(normal), +ARCH(archival dest),
    i tried atleast 2 to 3 times from scratch but found the same error....................
    ORA: 19624
    ORA: 19870
    here are the steps can somebody correct these steps..................
    Create Virtual Disks from VM Ware software when server is down.
    Choose Edit Virtual Machine Settings.
    Click on Add button
    Press Next and Highlight Hard Disk, then click Next
    Check ‘Create a New Virtual Disk’
    Choose SCSI as type
    Select Size as 2 GB
    Name the virtual disk as ‘ASMDBF1.vmdk’
    Create additional disks as:
    ASMDBF1.vmdk for DBF files
    ASMDBF2.vmdk Failover group
    ASMFRA.vmdk Flash Back Recovery Area
    ASMREDO.vmdk Redo Log Area
    ASMARCH.vmdk Archived Logs
    •     Start up the server OraWorld1
    •     Go to Disk Management and you will be prompted with a screen which should display all five disks with a check mark. Accept defaults and Click next.
    •     On second script all five will be unchecked, click Next
    •     Press Finish to complete and you should see all 5 disks as Type Basic Unallocated. For each of the disk perform:
    1.     Right click, New Partition, Extended Partition and Finish
    2.     Right click, New Logical drive, Do not assign drive letter nor partition it.
    3.     From command prompt type Diskpart and enter Automount enable.
    4.     From command prompt, configure basic CRS services as
    5.     C:\oracle\product\10.2.0\db_1>localconfig add
    6.     C:\oracle\product\10.2.0\db_1>localconfig add
    7.     Step 1: creating new OCR repository
    8.     Successfully accumulated necessary OCR keys.
    9.     Creating OCR keys for user 'administrator', privgrp ''..
    10.     Operation successful.
    11.     Step 2: creating new CSS service
    12.     successfully created local CSS service
    13.     successfully added CSS to home
    •     Launch DBCA and choose Configure Storage Management.
    •     Select Create New group, choose stamp disks which will show you all of your five disks. Configure ASM links to all these disks as:
    1.     ORCLDISKASMDBF1 \Device\Harddisk1\Partition1
    2.     ORCLDISKASMDBF2 \Device\Harddisk2\Partition1
    3.     ORCLDISKASMFRA \Device\Harddisk3\Partition1
    4.     ORCLDISKASMREDO \Device\Harddisk4\Partition1
    5.     ORCLDISKASMARCH \Device\Harddisk5\Partition1
    Now make Change Disk Discovery Path as Null and you should see all disks.
    Now create Disk groups as :
    ARCH \\.\ORCLDISKASMARCH External 1GB
    REDO \\.\ORCLDISKASMREDO External 1GB
    FRA \\.\ORCLDISKASMFRA External 2GB
    DBF (MAIN GROUP WITH 2 SUB-GROUPS) Must create as Normal Redundancy
    DBFP \\.\ORCLDISKASMDBF1 External 2GB
    DBFS \\.\ORCLDISKASMDBF2 External 2GB
    You now have a running ASM instance on the server.
    •     Checking ASM instance
    You can always use DBCA to check settings of ASM.
    Alternatively, go to command prompt:
    Set ORACLE_SID=+ASM
    Sqlplus /nolog
    Connect sys/password as sysdba
    Show sga (80MB)
    Total System Global Area 83886080 bytes
    Fixed Size 1247420 bytes
    Variable Size 57472836 bytes
    ASM Cache 25165824 bytes
    SQL>desc You can then check C:\oracle\product\10.2.0\db_1\database for these files. You can also view v$parameter for all possible values for ASM instance.
    +asm.asm_diskgroups='DATA1','ARCH','REDO','FRA','DBF'#Manual Mount
    *.asm_diskgroups='DATA1','ARCH','REDO','FRA','DBF'
    *.asm_diskstring=''
    *.background_dump_dest='C:\oracle\product\10.2.0\admin\+ASM\bdump'
    *.core_dump_dest='C:\oracle\product\10.2.0\admin\+ASM\cdump'
    *.instance_type='asm'
    *.large_pool_size=12M
    *.remote_login_passwordfile='SHARED'
    *.user_dump_dest='C:\oracle\product\10.2.0\admin\+ASM\udump'
    You can change some of the values like large pool and even db cache size. You can also manually create the disk group as:
    Create diskgroup DBF NORMAL redundancy
    Failgroup flgrp1 disk ‘\\.\ORCLDISKDATA0’, ‘\\.\ORCLDISKDATA1’
    Failgroup flgrp2 disk ‘\\.\ORCLDISKDATA2’, ‘\\.\ORCLDISKDATA3’;
    Check Candidate disks:
    select group_number, disk_number, mount_status, header_status, state, path from v$asm_disk;
    Other useful queries:
    Select group_number, name, total_mb, free_mb, state, type
    From v$asm_diskgroup;
    Select group_number, disk_number, mount_status, header_status, state, path, failgroup
    From v$asm_disk;
    You can use sql commands to perform most of the ASM tasks, however EM console can also be used here
    Oracle Database Installation
    •     Launch DBCA
    •     Choose Create Database and select OLTP type
    •     Name it as ORCL2, choose ASM as file system, select all disk groups to be used.
    •     Use oracle managed files as:+DBF press Next
    *•     Specify Flash Recovery Area as +FRA*
    *•     Enable archiving at +ARCH*
    *•     Choose Auto SGA as 55% of memory*
    *•     Leave else default and complete DB creation.*
    *•     Launch NetConfig and define Listener with default settings.* here i received the errors,.................
    Database ORCL2 is created with the following attributes:
    NAME: ORCL2
    SPFILE: +ARCH/ORCL2/spfileORCL2.ora
    URL: http://oraworld1:1158/em

    Strange, those messages are RMAN backup errors -- are you trying to backup the database?
    Or...if you selected "create starter database" it may be that dbca is not finding the backup files from the "demo" database.
    :p

  • Database creation in oracle 8.0.4

    Hi,
    I'm creating a database in Oracle 8.0.4. I choose the custom option to give all the parameters. One of these parameters is the password of internal user. I give it as oracle. After giving all the other parameters and then click on finish to create the database, i get ORA-01017 error and i'm being forced to abort the database creation.
    After this error has occured, i've created another two databases with a different names and all went fine. I didnt have any problems while creating the databases. Again after the creation of the new databases, i tried to create the old database. Even then i got the same error.
    can anyone let me know what might be the reason for this and the solution to overcome this problem.
    Thanks in advance,
    Jaikanth V Garlapati.

    Found this in Oracle Doc,
    NLS_DATABASE_PARAMETERS is the one you set when you do Create Database.
    NLS_INSTANCE_PARAMETERS is the one you set in your spfile when you start instance.
    So if you didn't set NLS_INSTANCE_PARAMETERS in spfile, then instance will start with NLS_DATABASE_PARAMETERS
    And alter session will over write them all.
    It's not new behavior in 10.2.0.4
    ==============================================
    NLS Database Parameters
    When a new database is created during the execution of the CREATE DATABASE statement, the NLS-related database configuration is established. The current NLS instance parameters are stored in the data dictionary along with the database and national character sets. The NLS instance parameters are read from the initialization parameter file at instance startup.
    You can find the values for NLS parameters by using:
    NLS Data Dictionary Views
    NLS Dynamic Performance Views
    OCINlsGetInfo() Function
    NLS Data Dictionary Views
    Applications can check the session, instance, and database NLS parameters by querying the following data dictionary views:
    NLS_SESSION_PARAMETERS shows the NLS parameters and their values for the session that is querying the view. It does not show information about the character set.
    NLS_INSTANCE_PARAMETERS shows the current NLS instance parameters that have been explicitly set and the values of the NLS instance parameters.
    NLS_DATABASE_PARAMETERS shows the values of the NLS parameters for the database. The values are stored in the database.

  • Confusion over DBCA script generated for manual RAC DB creation

    Version:11.2.0.4/RHEL 6.3
    We would like to create our 3-node RAC DB manually.  DBCA cannot meet our requirement because our redo log files, datafiles, tempfiles and control files are placed in a complicated manner . If we use DBCA , we will have to spend a lot of time configuring to our requirements after the DB creation.
    I generated the DB creation scripts from DBCA (DB Name = BRCFPRD )
    DBCA placed the db creation scripts in the specified directory in all the 3 nodes !!
    They all have almost the same contents . The only difference being the instance name (BRCFPRD12.sql for Node2, ... etc).
    Scripts in each node have the createDB.sql statement which has CREATE DATABASE "BRCFPRD" statement. Why is this ? The database need to be created only from one node. Then why did DBCA place createDB.sql in all nodes ?
    I just want to run the script from just one node , say Node1 and it should create the 3-Node RAC DB. How can I do this manually?
    -- The scripts genereated by DBCA in Node1
    apex.sql
    BRCFPRD1.sh
    BRCFPRD1.sql
    context.sql
    CreateClustDBViews.sql
    CreateDB.sql
    CreateDBCatalog.sql
    CreateDBFiles.sql
    cwmlite.sql
    emRepository.sql
    init.ora
    interMedia.sql
    JServer.sql
    lockAccount.sql
    ordinst.sql
    owb.sql
    postDBCreation.sql
    spatial.sql
    xdb_protocol.sql
    -- The contents of the main shell script BRCFPRD1.sh
    $ cat BRCFPRD1.sh
    #!/bin/sh
    OLD_UMASK=`umask`
    umask 0027
    mkdir -p /optware/product/admin/BRCFPRD/adump
    mkdir -p /optware/product/admin/BRCFPRD/dpdump
    mkdir -p /optware/product/admin/BRCFPRD/hdump
    mkdir -p /optware/product/admin/BRCFPRD/pfile
    mkdir -p /optware/product/cfgtoollogs/dbca/BRCFPRD
    umask ${OLD_UMASK}
    ORACLE_SID=BRCFPRD1; export ORACLE_SID
    PATH=$ORACLE_HOME/bin:$PATH; export PATH
    echo You should Add this entry in the /etc/oratab: BRCFPRD:/optware/product/oracle/11.2.0:Y
    /optware/product/oracle/11.2.0/bin/sqlplus /nolog @/optware/product/BRCFPRD1.sql
    -- Contents of BRCFSPRD1.sql
    $ cat BRCFPRD1.sql
    set verify off
    ACCEPT sysPassword CHAR PROMPT 'Enter new password for SYS: ' HIDE
    ACCEPT systemPassword CHAR PROMPT 'Enter new password for SYSTEM: ' HIDE
    ACCEPT sysmanPassword CHAR PROMPT 'Enter new password for SYSMAN: ' HIDE
    ACCEPT dbsnmpPassword CHAR PROMPT 'Enter new password for DBSNMP: ' HIDE
    host /optware/product/oracle/11.2.0/bin/orapwd file=/optware/product/oracle/11.2.0/dbs/orapwBRCFPRD1 force=y
    host /grid/product/11.2.0/bin/setasmgidwrap o=/optware/product/oracle/11.2.0/bin/oracle
    host /optware/product/oracle/11.2.0/bin/srvctl add database -d BRCFPRD -o /optware/product/oracle/11.2.0 -p +DATA/BRCFPRD/spfileBRCFPRD.ora -n BRCFPRD -a "DATA,ARCH_DG"
    host /optware/product/oracle/11.2.0/bin/srvctl add instance -d BRCFPRD -i BRCFPRD1 -n cimprd175
    host /optware/product/oracle/11.2.0/bin/srvctl add instance -d BRCFPRD -i BRCFPRD3 -n cimprd177
    host /optware/product/oracle/11.2.0/bin/srvctl add instance -d BRCFPRD -i BRCFPRD2 -n cimprd176
    host /optware/product/oracle/11.2.0/bin/srvctl disable database -d BRCFPRD
    @/optware/product/CreateDB.sql
    @/optware/product/CreateDBFiles.sql
    @/optware/product/CreateDBCatalog.sql
    @/optware/product/JServer.sql
    @/optware/product/context.sql
    @/optware/product/xdb_protocol.sql
    @/optware/product/ordinst.sql
    @/optware/product/interMedia.sql
    @/optware/product/cwmlite.sql
    @/optware/product/spatial.sql
    @/optware/product/emRepository.sql
    @/optware/product/apex.sql
    @/optware/product/owb.sql
    @/optware/product/CreateClustDBViews.sql
    host echo "SPFILE='+DATA/BRCFPRD/spfileBRCFPRD.ora'" > /optware/product/oracle/11.2.0/dbs/initBRCFPRD1.ora
    @/optware/product/lockAccount.sql
    @/optware/product/postDBCreation.sql
    -- Contents of CreateDB.sql in Node1
    $ cat /optware/product/CreateDB.sql
    SET VERIFY OFF
    connect "SYS"/"&&sysPassword" as SYSDBA
    set echo on
    spool /optware/product/CreateDB.log append
    startup nomount pfile="/optware/product/init.ora";
    CREATE DATABASE "BRCFPRD"
    MAXINSTANCES 32
    MAXLOGHISTORY 1
    MAXLOGFILES 192
    MAXLOGMEMBERS 3
    MAXDATAFILES 3000
    DATAFILE SIZE 700M AUTOEXTEND ON NEXT  10240K MAXSIZE UNLIMITED
    EXTENT MANAGEMENT LOCAL
    SYSAUX DATAFILE SIZE 600M AUTOEXTEND ON NEXT  10240K MAXSIZE UNLIMITED
    SMALLFILE DEFAULT TEMPORARY TABLESPACE TEMP TEMPFILE SIZE 20M AUTOEXTEND ON NEXT  640K MAXSIZE UNLIMITED
    SMALLFILE UNDO TABLESPACE "UNDOTBS1" DATAFILE SIZE 200M AUTOEXTEND ON NEXT  5120K MAXSIZE UNLIMITED
    CHARACTER SET AL32UTF8
    NATIONAL CHARACTER SET AL16UTF16
    LOGFILE GROUP 1  SIZE 28672M,
    GROUP 2  SIZE 28672M
    USER SYS IDENTIFIED BY "&&sysPassword" USER SYSTEM IDENTIFIED BY "&&systemPassword";
    set linesize 2048;
    column ctl_files NEW_VALUE ctl_files;
    select concat('control_files=''', concat(replace(value, ', ', ''','''), '''')) ctl_files from v$parameter where name ='control_files';
    host echo &ctl_files >>/optware/product/init.ora;
    spool off

    If you look at scripts generated in Node2 and Node3 , you can see all scripts except the instance specific ones are commented using REM .
    REM host /u01/product/oracle/11.2.0.3/dbhome_1/bin/srvctl add instance -d STOMPER -i STOMPER1 -n ugxtlprd186
    REM host /u01/product/oracle/11.2.0.3/dbhome_1/bin/srvctl add instance -d STOMPER -i STOMPER2 -n ugxtlprd187
    REM host /u01/product/oracle/11.2.0.3/dbhome_1/bin/srvctl disable database -d STOMPER
    REM @/u01/product/CreateDB.sql
    REM @/u01/product/CreateDBFiles.sql
    REM @/u01/product/CreateDBCatalog.sql
    REM @/u01/product/JServer.sql
    REM @/u01/product/context.sql
    <snipped >

  • Spfile in Oracle 9.2.0

    One of the steps for manual oracle database upgrade from 8.1.7 to 9.2.0 include creation of spfile.
    My question is: Do we really need to use spfile (server parameter file) and if yes - what the advantage(es) for using it?
    Thank you,
    Yelena

    No, you do not need to use it. Upon startup, if Oracle cannot find the spfile (default location $ORACLE_HOME/dbs) then it will look for the pfile in the default location. But I can't think of any good reasons why you would not want to use the spfile, unless it's on a test system where it doesn't matter how often or when you bounce your instance to make changes take effect. The spfile allows you to dynamically set numerous parameters for the system that would otherwise require a shutdown to initialize. Once you start using it, you'll look back on the "old" way and think you lived in the stone age. Just use 'ALTER SYSTEM SET ... SCOPE=[MEMORY] | [SPFILE] | [BOTH]'
    where 'MEMORY' means it is just active for your session; 'SPFILE' means it is written to the spfile and activated after the next restart; and 'BOTH' . . . well, I4ll let you figure that one out.
    One of the parameters you cannot change dynamically is the large_pool. There are probably more, if anyone knows them please help me out here.
    Hope this helps.

  • Creation parameters not taking effect after database creation in 10.1.0.4

    I created a database using DBCA, changed the default nls settings, then finished the database creation.
    The alert log reports the parameters as different than the defaults
    However, when starting the instance, the nls parameters are only set at the instance level and not the database level.
    Has anyone seen something similar in 10.1.0.4?
    Thanks

    Found this in Oracle Doc,
    NLS_DATABASE_PARAMETERS is the one you set when you do Create Database.
    NLS_INSTANCE_PARAMETERS is the one you set in your spfile when you start instance.
    So if you didn't set NLS_INSTANCE_PARAMETERS in spfile, then instance will start with NLS_DATABASE_PARAMETERS
    And alter session will over write them all.
    It's not new behavior in 10.2.0.4
    ==============================================
    NLS Database Parameters
    When a new database is created during the execution of the CREATE DATABASE statement, the NLS-related database configuration is established. The current NLS instance parameters are stored in the data dictionary along with the database and national character sets. The NLS instance parameters are read from the initialization parameter file at instance startup.
    You can find the values for NLS parameters by using:
    NLS Data Dictionary Views
    NLS Dynamic Performance Views
    OCINlsGetInfo() Function
    NLS Data Dictionary Views
    Applications can check the session, instance, and database NLS parameters by querying the following data dictionary views:
    NLS_SESSION_PARAMETERS shows the NLS parameters and their values for the session that is querying the view. It does not show information about the character set.
    NLS_INSTANCE_PARAMETERS shows the current NLS instance parameters that have been explicitly set and the values of the NLS instance parameters.
    NLS_DATABASE_PARAMETERS shows the values of the NLS parameters for the database. The values are stored in the database.

  • ASM DG creation fails on sles11_x86_64 with 11gR1

    Hi,
    I have sles11x86_64 installed and using Veritas Volume manager raw disks for ASM but ASM dg creation fails with error mentioned below;
    ls /dev/vx/rdsk/asmdg/asmvol
    /dev/vx/rdsk/asmdg/asmvol
    test:~ # ls -l /dev/vx/rdsk/asmdg/asmvol
    crw-rw---- 1 oracle oinstall 199, 65533 Feb 26 12:08 /dev/vx/rdsk/asmdg/asmvol
    test:~ # su - oracle
    oracle@test:~> bash
    oracle@test:~> export ORACLE_SID=+ASM
    oracle@test:~> export ORACLE_HOME=/oracle/orabin/product/11.1.0/db_1
    oracle@test:~> cd /oracle/orabin/product/11.1.0/db_1/bin
    cat /etc/oratab
    # This file is used by ORACLE utilities. It is created by root.sh
    # and updated by the Database Configuration Assistant when creating
    # a database.
    # A colon, ':', is used as the field terminator. A new line terminates
    # the entry. Lines beginning with a pound sign, '#', are comments.
    # Entries are of the form:
    # $ORACLE_SID:$ORACLE_HOME:<N|Y>:
    # The first and second fields are the system identifier and home
    # directory of the database respectively. The third filed indicates
    # to the dbstart utility that the database should , "Y", or should not,
    # "N", be brought up at system boot time.
    # Multiple entries with the same $ORACLE_SID are not allowed.
    +ASM:/oracle/orabin/product/11.1.0/db_1:N
    test./sqlplus /nolog
    SQL*Plus: Release 11.1.0.6.0 - Production on Fri Feb 26 12:25:32 2010
    Copyright (c) 1982, 2007, Oracle. All rights reserved.
    SQL> connect /as sysdba
    Connected.
    SQL> select name from v$asm_diskgroup;
    no rows selected
    SQL> select path from v$asm_disk;
    PATH
    /dev/vx/rdsk/asmdg/asmvol
    SQL> create diskgroup asm_dg external redundancy disk '/dev/vx/rdsk/asmdg/asmvol';
    create diskgroup asm_dg external redundancy disk '/dev/vx/rdsk/asmdg/asmvol'
    ERROR at line 1:
    ORA-15018: diskgroup cannot be created
    ORA-15201: disk /dev/vx/rdsk/asmdg/asmvol contains a valid RDBMS file
    SQL> select name from v$asm_diskgroup;
    no rows selected
    SQL> create diskgroup asm_dg external redundancy disk '/dev/vx/rdsk/asmdg/asmvol' -f;
    create diskgroup asm_dg external redundancy disk '/dev/vx/rdsk/asmdg/asmvol' -f
    ERROR at line 1:
    ORA-00933: SQL command not properly ended
    SQL> create diskgroup asm_dg external redundancy disk '/dev/vx/rdsk/asmdg/asmvol' force;
    create diskgroup asm_dg external redundancy disk '/dev/vx/rdsk/asmdg/asmvol' force
    ERROR at line 1:
    ORA-15018: diskgroup cannot be created
    ORA-15080: synchronous I/O operation to a disk failed
    ORA-15080: synchronous I/O operation to a disk failed
    ORA-15080: synchronous I/O operation to a disk failed
    ORA-15080: synchronous I/O operation to a disk failed
    SQL> create diskgroup asm_dg external redundancy disk '/dev/vx/rdsk/asmdg/asmvol';
    create diskgroup asm_dg external redundancy disk '/dev/vx/rdsk/asmdg/asmvol'
    ERROR at line 1:
    ORA-15018: diskgroup cannot be created
    ORA-15201: disk /dev/vx/rdsk/asmdg/asmvol contains a valid RDBMS file
    SQL> create diskgroup asm_dg external redundancy disk '/dev/vx/rdsk/asmdg/asmvol' force;
    create diskgroup asm_dg external redundancy disk '/dev/vx/rdsk/asmdg/asmvol' force
    ERROR at line 1:
    ORA-15018: diskgroup cannot be created
    ORA-15080: synchronous I/O operation to a disk failed
    ORA-15080: synchronous I/O operation to a disk failed
    ORA-15080: synchronous I/O operation to a disk failed
    ORA-15080: synchronous I/O operation to a disk failed
    SQL>
    can some body help on this.
    Also wanted to know the background process during ASM creation.
    ~Dhananjay
    Edited by: user9075978 on Feb 26, 2010 4:18 AM

    Force the partition table on the second node to be reread
    # partprobe
    Initialize all shared disks on one node (execute as user root)
    dd if=/dev/zero of=/dev/sdc1 bs=1M count=10
    dd if=/dev/zero of=/dev/sdc2 bs=1M count=10
    dd if=/dev/zero of=/dev/sdc3 bs=1M count=10
    dd if=/dev/zero of=/dev/sdc4 bs=1M count=10
    dd if=/dev/zero of=/dev/sdd1 bs=1M count=10
    dd if=/dev/zero of=/dev/sdd2 bs=1M count=10
    dd if=/dev/zero of=/dev/sdd3 bs=1M count=10
    dd if=/dev/zero of=/dev/sdd4 bs=1M count=10
    dd if=/dev/zero of=/dev/sde1 bs=1M count=10
    dd if=/dev/zero of=/dev/sde2 bs=1M count=10
    dd if=/dev/zero of=/dev/sde3 bs=1M count=10
    dd if=/dev/zero of=/dev/sde4 bs=1M count=10
    dd if=/dev/zero of=/dev/sdf3 bs=1M count=10
    dd if=/dev/zero of=/dev/sdf4 bs=1M count=10
    Install ASM lib (execute as user root) on all cluster nodes
         rpm -i /ptc/oms/asmlib/*
    Configure ASM lib (set driver owner to oracle and group to dba) on all cluster nodes
    /etc/init.d/oracleasm configure
    Label ASM lib disks on one node (execute as user root)
    /etc/init.d/oracleasm createdisk data01 /dev/sdc3
    /etc/init.d/oracleasm createdisk data02 /dev/sdc4
    /etc/init.d/oracleasm createdisk flash01 /dev/sdd3
    /etc/init.d/oracleasm createdisk flash02 /dev/sdd4
    /etc/init.d/oracleasm createdisk flash03 /dev/sde3
    /etc/init.d/oracleasm createdisk flash04 /dev/sde4
    /etc/init.d/oracleasm createdisk flash05 /dev/sdf3
    /etc/init.d/oracleasm createdisk flash06 /dev/sdf4
    Scan and list the disks on the other node (execute as user root)
    /etc/init.d/oracleasm scandisks
    /etc/init.d/oracleasm listdisks
    Set up udev to configure block device permissions (as user root)
    vi /etc/udev/permissions.d/49-oracle.permissions
    sdc1:root:oinstall:0640
    sdd1:root:oinstall:0640
    # Voting
    sdc2:crs:oinstall:0640
    sdd2:crs:oinstall:0640
    sde2:crs:oinstall:0640
    # ASM spfile
    sde1:asm:oinstall:0640
    # ASM devices
    sdc3:asm:oinstall:0640
    sdc4:asm:oinstall:0640
    sdd3:asm:oinstall:0640
    sdd4:asm:oinstall:0640
    sde3:asm:oinstall:0640
    sde4:asm:oinstall:0640
    sdf3:asm:oinstall:0640
    sdf4:asm:oinstall:0640
    Restart the udev service (execute as user root)
    /sbin/udevstart

  • Instance creation

    hi
    Assume the operating system is unix.
    I can create the oracle database by using :
    create database .......
    How about the instance?
    Can I create it manually, or is it created automatically after database creation ?
    Assume I can not use dbca

    This issue once more has to do with basic architecture concepts, the instance is not created, the instance exists after you start it with the startup nomomount command, it does not have to do with running or not running oradim.
    Oradim exists in windows environments only due to platform specific architecture issues. Oradim does not create the service, it is used to create the entries required to manage the instance, but it issues a startup command which is actually the one which will start the oracle instance and will mount and open the database.
    In a windows environment you must create the windows service, it does not mean the oracle instance will be created. You can perform a simple experiment, change a critical value in the spfile a backup is required) just like db_name, then try to start the service, and you will see the instance is not 'created'. The windows service is not the oracle instance.
    The term 'Create the Instance' is inaccurate, you must use 'Start the Instance' instead.
    In order to keep things simple, just use the DBCA assistant to create the database, this will take care of the details. If you want you can ask DBCA to create a script, you can analyze this script later and perform reverse engineering to determine the commands to manually start the Oracle instance and create a database.
    ~ Madrid
    http://hrivera99.blogspot.com

Maybe you are looking for

  • Multiple LDAPs with SSO Kerberos

    Hello, Right now I'm using SAP EP 7.0 EHP1 with one LDAP and everything is working fine. However, I have to integrate two new enterprises to the same SAP EP with different domains and differents LDAP's. I see some information about how to integrate t

  • VBA to save an Excelfile as pdfdocument with a pdf document open password

    I use VBA and Adobe Acrobat PDFMaker to save Excel-files as pdfs. The code I use works perfectly (see below). Which VBA-command is necessary to add a Document Open Password to the pdf to open the pdf-file? thank you in advance and best regards gauss

  • Unknown File Type for Adobe Classroom in a Book Fireworks

    I am trying to open sand_river1.jpg cited on p. 74 of Adobe Fireworks Classroom in a Book and am getting a "Could not open file" and "unknown file type" despite the fact that the image is displaying as a thumbnail in the file browser.  I get the mess

  • Km ------------- File upload

    Hi experts,           I am new in portal. i don't know abt KM(Knowledge Management).I have developed FileUpload application in Webdynpro. I need to store the upload files into KM.                 1. How to acheive this one?                 2. how to

  • Can anyone tell me theyre experience​s with the 1126s desktop PC?

      My 1126s computer has had to be returned 2x for repairs,First time for Bios problems and now seems to be the motherboard according to tech support,Ill know in a day or so. Has anyone else heard of this kind of problem happening to them or someone t