Oracle9i uses spfile

Hello,
I am trying to automate my startup file and found that Oracle is using an spfile instead of pfile to start the database.
How do I automate the startup using the spfile to start the database?

Hi,
From Oracle 9i, the spfile is the default. When you don't specify, then the spfile from $ORACLE_HOME/dbs/spfileSID.ora is taken by default. If you want to use a initSID.ora, then you need to specify.
Ex:1
startup
-- the instance is started using the spfile, if it finds one
Ex2:
startup pfile="location/init.ora"
alter database open
-- the instance is started using the init file specified
HTH
Regards,
Badri.

Similar Messages

  • 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

  • RMAN Active duplication using SPFILE

    Environment:
    O.S Version     HP-UX B.11.31 U ia64
    Oracle DB Version     11.2.0.3.0
         Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    Database files are on ASM Diskgroups
    duplicate target database
    to TestDB
    from active database pfile=/app/oracle/product/11.2.0.3/db/dbs/initSoruceDB.ora;Question:
    Can I use spfile clause on the command above? If I use spfile, will the command above copy the spfile from the target database instance as part of DUPLICATE command?
    Will the DUPLICATE command with SPFILE clause behave differently in case of different sturcture of ASM Diskgroups used at the source and target databases?

    Can I use spfile clause on the command above? If I use spfile, will the command above copy the spfile from the target database instance as part of DUPLICATE command? Yes you can use SPFILE.RMAN automatically copies the server parameter file to the destination host.
    Will the DUPLICATE command with SPFILE clause behave differently in case of different sturcture of ASM Diskgroups used at the source and target databases? RMAN automatically copies the server parameter file to the destination host and updates the server parameter file on the destination host based on values provided in PARAMETER_VALUE_CONVERT and SET. For example:
    Duplicating to a Host with a Different Directory Structure (Active)
    DUPLICATE TARGET DATABASE
    TO dupdb
    FROM ACTIVE DATABASE
    DB_FILE_NAME_CONVERT '/oracle/oradata/prod/','/scratch/oracle/oradata/dupdb/'
    SPFILE
    PARAMETER_VALUE_CONVERT '/oracle/oradata/prod/',
    '/scratch/oracle/oradata/dupdb/'
    SET SGA_MAX_SIZE '300M'
    SET SGA_TARGET '250M'
    SET LOG_FILE_NAME_CONVERT '/oracle/oradata/prod/redo/',
    '/scratch/oracle/oradata/dupdb/redo/';
    For more details:
    http://docs.oracle.com/cd/B28359_01/backup.111/b28270/rcmdupdb.htm#i1006629

  • How to store a large document in Oracle9i using CLOB!?

    Hi all,
    I want to store a large document(about 10mb) in Oracle9i using SQL*PLUS. How to store it using CLOB in Oracle9i!?
    What the necessary steps to perform!?
    Thanks

    Just use the report's CUID or ID for the iDocID parameter, and give all necessary users the appropriate rights to the inbox where the report is located.
    repoType is a legacy parameter, this will have no effect.
    http://help.sap.com/businessobject/product_guides/boexir31/en/xi3-1_url_reporting_opendocument_en.pdf

  • Database is not started using spfile

    Dear Friends ,
    I got a strange problem . My databasae is not started using spfile default .
    Sequences are as stated below :
    1) SQL> startup pfile='/orafs/admin/MISLTEST/pfile/init.ora.082008214648';
    ORACLE instance started.
    Total System Global Area 1207959552 bytes
    Fixed Size 2020456 bytes
    Variable Size 318770072 bytes
    Database Buffers 872415232 bytes
    Redo Buffers 14753792 bytes
    Database mounted.
    Database opened.
    2) SQL> SELECT COUNT(*) FROM v$spparameter WHERE value IS NOT NULL;
    COUNT(*)
    0
    That means , it is running using 'pfile' parameter
    3) Now I create spfile following way :
    SQL> create spfile='/orafs/app/oracle/10.2.0/db_1/dbs/spfileMISLTEST.ora' from pfile='/orafs/admin/MISLTEST/pfile/init.ora.082008214648';
    4)
    Now I just shutdown and open the database , Like :
    SQL> shutdown immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup
    ORACLE instance started.
    Total System Global Area 1207959552 bytes
    Fixed Size 2020456 bytes
    Variable Size 318770072 bytes
    Database Buffers 872415232 bytes
    Redo Buffers 14753792 bytes
    Database mounted.
    Database opened.
    Now the problem is :
    It is not strated using the spfile , And when I run the following command then it shows the database runs with the help of 'pfile' .
    SQL> SELECT COUNT(*) FROM v$spparameter WHERE value IS NOT NULL;
    COUNT(*)
    0
    Now I dont understand why the database is not running use the 'spfile' ? Can anybody plz help me regarding this issue ....

    Hi,
    In the platform-specific default location, Oracle locates your initialization parameter
    file by examining filenames in the following order:
    1. spfile$ORACLE_SID.ora
    2. spfile.ora
    3. init$ORACLE_SID.ora
    You can direct Oracle to read initialization parameters from a traditional text
    initialization parameter file, by using the PFILE clause of the STARTUP command.
    For example:
    STARTUP PFILE = /u01/oracle/dbs/init.ora
    Further, you can use this PFILE clause to start an instance with a nondefault server
    parameter file as follows:
    1. Create a one line text initialization parameter file that contains only the SPFILE
    parameter. The value of the parameter is the nondefault server parameter file
    location.
    For example, create a text initialization parameter file
    /u01/oracle/dbs/spf_init.ora that contains only the following
    parameter:
    SPFILE = /u01/oracle/dbs/test_spfile.ora
    2. Start up the instance pointing to this initialization parameter file.
    STARTUP PFILE = /u01/oracle/dbs/spf_init.ora
    Regards,
    Kumar
    [www.idatamax.com]

  • Why is it important to use SPFile in DG Broker config

    Hi All,
    Can anyone of you please make me more clear why we use spfile in DG Broker config
    What exactly i understand is:-
    Persistent DG Settings so that DG conitnues to work even after the broker is disabled.
    Thanks in advance

    You must use a server parameter file (SPFILE) to ensure the broker can persistently reconcile values between broker properties and any related initialization parameter values.
    Source - Oracle® Data Guard Broker 11g Release 2 (11.2) E17023-06
    See 2.2 Prerequisites
    In other words keep Broker and Database parameters in Sync.
    Beware of "InconsistentProperties" 
    Best Regards
    mseberg

  • How to config to use SPFILE for databse

    Hi,
    As I want to setup recovery settings, OEM gave a warning:
    PFILE - The database is NOT using SPFILE. Changes to the initialization parameters will be LOST if the database is restarted.
    How do I config to use SPFILE for databse rather than using control file I suppose? Thanks,

    Thanks mdtaylor and abarra2000!
    It works! because "sql>show parameter" gives spfile's location instead of null before the changing. I notice that original spfile in dbs\ directory is untouched. newly generated spfile is in database\ directory as "show parameter" indicated.
    Thanks again,

  • What does this" touch /var/lock/subsys/oracle9i " used for?

    touch /var/lock/subsys/oracle9i
    this is in oracle auto start scripts.
    What does this" touch /var/lock/subsys/oracle9i " used for?
    Thanks.

    ok,
    this touch in dbora is solely used for dbora. The dbora script will later on remove the file after stop database.
    sample of dbora
    #!/bin/bash
      # chkconfig: 35 99 10   
      # description: Starts and stops Oracle processes
      # Set ORA_HOME to be equivalent to the $ORACLE_HOME
      # from which you wish to execute dbstart and dbshut;
      # Set ORA_OWNER to the user id of the owner of the
      # Oracle database in ORA_HOME.
      ORA_HOME=<Type your ORACLE_HOME in full path here>
      ORA_OWNER=<Type your Oracle account name here>
      case "$1" in
        'start')
           # Start the Oracle databases:
           # The following command assumes that the oracle login
           # will not prompt the user for any values
           su - $ORA_OWNER -c $ORA_HOME/bin/dbstart
           # Start the TNS Listener
           su - $ORA_OWNER -c "$ORA_HOME/bin/lsnrctl start"
           # Start the Intelligent Agent
           if [ -f $ORA_HOME/bin/agentctl ]; then
              su - $ORA_OWNER -c "$ORA_HOME/bin/agentctl start"
           else
              su - $ORA_OWNER -c "$ORA_HOME/bin/lsnrctl dbsnmp_start"
           fi
           # Start Management Server
           if [ -f $ORA_HOME/bin/oemctl ]; then
              su - $ORA_OWNER -c "$ORA_HOME/bin/oemctl start oms"
           fi
           # Start HTTP Server
           if [ -f $ORA_HOME/Apache/Apache/bin/apachectl ]; then
              su - $ORA_OWNER -c "$ORA_HOME/Apache/Apache/bin/apachectl start"
           fi
           touch /var/lock/subsys/dbora
        'stop')
           # Stop HTTP Server
           if [ -f $ORA_HOME/Apache/Apache/bin/apachectl ]; then
              su - $ORA_OWNER -c "$ORA_HOME/Apache/Apache/bin/apachectl stop"
           fi
           # Stop Management Server
           if [ -f $ORA_HOME/bin/oemctl ]; then
              su - $ORA_OWNER -c "$ORA_HOME/bin/oemctl stop oms sysman/<password>"
           fi
           # Stop the Intelligent Agent
           if [ -f $ORA_HOME/bin/agentctl ]; then
              su - $ORA_OWNER -c "$ORA_HOME/bin/agentctl stop"
           else
              su - $ORA_OWNER -c "$ORA_HOME/bin/lsnrctl dbsnmp_stop"
           fi
           # Stop the TNS Listener
           su - $ORA_OWNER -c "$ORA_HOME/bin/lsnrctl stop"
           # Stop the Oracle databases:
           # The following command assumes that the oracle login
           # will not prompt the user for any values
           su - $ORA_OWNER -c $ORA_HOME/bin/dbshut
           rm -f /var/lock/subsys/dbora
      esac
      # End of script dbora

  • Need code for call a report from stored produre in oracle9i(using rwclient)

    dear all,
    i need a stored procedure to run the report 9i(.rdf) from pl/sql.But i have code in older version(rwcgi60).So i want stored procedure for rwclient.
    The below code not working in oracle9i version.its very urgent.Thanks in advance..
    create table report
    (id number not null primary key,
    filename varchar2(100) not null,
    report_connection_id number not null,
    destype varchar2(5) not null)
    create table report_connection
    (id number not null primary key,
    user_id varchar2(100) not null,
    pass varchar2(100) not null,
    database_server varchar2(50) not null,
    report_server varchar2(50) not null)
    alter table cm.report add foreign key (report_connection_id) references cm.report_connection (id)
    insert into report_connection values (1, 'scott', 'tiger', 'orcl', 'Rep60_Dev');
    insert into report values (1, 'test.rdf', 1, 'PDF');
    commit;
    procedure pr_example (p_id report.id%type) is
    cursor cur_data is
    select r.filename,
    c.user_id,
    c.pass,
    r.destype,
    c.database_server,
    c.report_server
    from report r,
    report_connection c
    where r.report_connection_id = c.id
    and r.id = p_id;
    v_blob blob;
    v_url varchar2(2000);
    v_pieces utl_http.html_pieces;
    v_buffer raw(2000);
    v_buffer_size integer := 2000;
    begin
    for v_rec in cur_data loop
    v_url := 'yourserver.domain.com/dev60cgi/rwcgi60.exe?report=' || v_rec.filename || '&desformat=' ||
    v_rec.destype || '&userid=' || v_rec.user_id || '/' || v_rec.pass || '@' || v_rec.database_server ||
    '&server=' ||v_rec.report_server || '&destype=cache';
    if v_rec.destype = 'PDF' then
    owa_util.mime_header('application/pdf', false);
    htp.p('content-disposition: filename='||v_rec.filename);
    owa_util.http_header_close;
    --you can add a bunch of elsif logic here for different destypes and setting the correct mime type.
    end if;
    --sets transfer timeout to be one hour
    utl_http.set_transfer_timeout(3600);
    --runs the report
    v_pieces := utl_http.request_pieces(v_url,64000);
    v_blob := empty_blob();
    dbms_lob.createtemporary(v_blob,true);
    for i in 1 .. v_pieces.count loop
    v_buffer := utl_raw.cast_to_raw(v_pieces(i));
    v_buffer_size := utl_raw.length(v_buffer);
    if v_buffer_size > 0 then
    dbms_lob.writeappend(v_blob, v_buffer_size, v_buffer);
    end if;
    end loop;
    wpg_docload.download_file(v_blob);
    end loop;
    end;
    Now run this url:
    http://yourserver.domain.com/pls/dad_name/pr_example?p_id=1
    regards
    mani

    JosAH wrote:
    A couple of years ago Sun supplied their javax.comm package (mysteriously versioned as version 2)
    but they stopped it for the PC Windows.
    There's an alternative: rxtx which offers an identical API as Sun did and their own native implementation for serial and parallel port handling; I have used both and the rxtx version is clearly superior to Sun's old version: http://www.rxtx.org
    This question popped up recently.
    tschodt wrote in [http://forums.sun.com/thread.jspa?messageID=10863769#10863769:}
    [Java Communications API|http://java.sun.com/products/javacomm/]
    Implementations of the API are currently available for Solaris SPARC, Solaris x86, and Linux x86.follow the Download link to find
    Sun no longer offer's the Windows platform binaries of javax.comm, however javax.comm 2.0.3 can be used for the Windows platform, by using it in conjunction with the Win32 implementation layer provided by the RxTx project. To use that, download javax.comm for the 'generic' platform (which provides the front-end javax.comm API only, without platform specific back-end implementations bundled). Then acquire the Windows binary implementation rxtx-2.0.7pre1 from http://www.rxtx.org.

  • File Count using SPFile Object

    Hi,
    I am trying to get the file count using through SPFile within the selected dates of date time controls as below.
    But not able to get the count of the files in the folder as there is not count property in the SPFile object.
    Please share your ideas/thoughts on the same.
                                    foreach (SPFile file in oFolder.Files)
                                        if ((file.TimeCreated > dtFromDate.SelectedDate) &&( file.TimeCreated<dtToDate.SelectedDate))
                                            int filecount;                              
    Regards,Sudheer
    Thanks & Regards, Sudheer

    Hi ,
    as you have int filecount, increase the count whenever it satisfies the if condition as mentioned
    above.
    int filecount=0;         
    foreach (SPFile file in oFolder.Files)
        if ((file.TimeCreated > dtFromDate.SelectedDate) &&( file.TimeCreated<dtToDate.SelectedDate))
                               filecount++;           
    Thanks,
    Vivek
    Please vote or mark your question answered, if my reply helps you

  • New control file using spfile

    Hi all,
    I want to multiplex my control file to another volume. I have an spfile (no init.ora file). Do I just use an alter system with scope = SPFILE?
    i.e. ALTER SYSTEM SET CONTROL_FILES=... scope=SPFILE"
    Thanks for any feedback.

    geeter wrote:
    Hi all,
    I want to multiplex my control file to another volume. I have an spfile (no init.ora file). Do I just use an alter system with scope = SPFILE?
    i.e. ALTER SYSTEM SET CONTROL_FILES=... scope=SPFILE"
    Thanks for any feedback.Change spfile while database running
    Close the db
    Start it and it will use new settings for CONTROL_FILES
    Kamran Agayev A.
    Oracle ACE
    My Oracle Video Tutorials - http://kamranagayev.wordpress.com/oracle-video-tutorials/

  • Setting sga_target in Oracle10g using spfile in Window OS

    Hi all
    Previously we used to set the parameter values thru initora
    Now we wish to follow the default spfile for parameters as provided by Oracle.
    When we give
    alter system set pga_aggregate_target = ???M;
    it works properly but the same syntex does not work properly for'
    processes as well as sga_target
    1. Kindly guide the exact syntix to set these parameters
    2. Also advise whether setting sga_target would be sufficient or do we need to set sga_max_size also and possible advantage
    3. Role of Oracle Processes and what should be the ideal number for Live installation with say 100-150 simultaneous users. RAM available is enough say 8GB.
    Suresh Bansal

    Suresh Bansal wrote:
    Hi all
    Previously we used to set the parameter values thru initora
    Now we wish to follow the default spfile for parameters as provided by Oracle.
    When we give
    alter system set pga_aggregate_target = ???M;
    it works properly but the same syntex does not work properly for'
    processes as well as sga_target
    1. Kindly guide the exact syntix to set these parameters
    2. Also advise whether setting sga_target would be sufficient or do we need to set sga_max_size also and possible advantage
    3. Role of Oracle Processes and what should be the ideal number for Live installation with say 100-150 simultaneous users. RAM available is enough say 8GB.
    Suresh BansalBoth SGA_MAX_SIZE and PROCESSES are parameters that cannot be changed dynamically, because you have omitted the SCOPE= clause of ALTER SYSTEM it takes it's default of BOTH. SGA_TARGET is modifiable in memory, but only up to the limit specified by SGA_MAX_SIZE which defaults to whatever you have SGA_TARGET set to, this means in a default setup you can only reduce SGA_TARGET. From my system
    SYS @ DB10G >show parameter SGA_
    NAME                                 TYPE        VALUE
    sga_max_size                         big integer 584M
    sga_target                           big integer 584M
    SYS @ DB10G >SELECT NAME,ISSYS_MODIFIABLE
      2* FROM V$PARAMETER WHERE NAME LIKE 'sga%'
    SYS @ DB10G >/
    NAME                                                                             ISSYS_MOD
    sga_max_size                                                                     FALSE
    sga_target                                                                       IMMEDIATESo I have 584m set for both as a result I can reduce the size, but not increase it.
    SYS @ DB10G >alter system set SGA_TARGET=600M;
    alter system set SGA_TARGET=600M
    ERROR at line 1:
    ORA-02097: parameter cannot be modified because specified value is invalid
    ORA-00823: Specified value of sga_target greater than sga_max_size
    SYS @ DB10G >alter system set SGA_TARGET=400M;
    System altered.But I can set it in the spfile.
    SYS @ DB10G >alter system set SGA_TARGET=600M SCOPE=SPFILE;
    System altered.You only need to set SGA_TARGET, but if you set SGA_MAX_SIZE larger you give yourself room for growth later. This should be clear from the demo above.
    PROCESSES controls the size of Oracle's internal process table (externalized as v$process) which is why you can't dynamically reset it, you'll need more entries in this process table than you anticipate user sessions, generally about 15-25% more.
    Niall Litchfield
    http://www.orawin.info/

  • How to Stop using SPFILE

    I need to remove the spfile from a database. I want it to only use the pfile. How do I do that?

    Hi,
    The default location of the SPFILE is under $ORACLE_HOME/dbs on Unix and under %ORACLE_HOME%\database under Windows.
    You can directly delete SPFILE. Oracle Sequentially searches follwing files at startup in above directory.
    spfileSID.ora
    spfile.ora
    initSID.ora
    init.ora
    SELECT DECODE(value, NULL, 'PFILE', 'SPFILE') "Init file Type" FROM v$parameter WHERE name = 'spfile'
    HTH
    Regards!
    Edited by: Ora-Lad on Nov 26, 2008 9:03 AM
    PS. Before deleting SPFILE, create PFILE FROM SPFILE

  • How can i set a long String to a xmltype field in oracle9i use PHP?

    i can set xml String to xmltype field with:
    $sql_insert_sql = "insert into g_province (p_id,p_regionid,p_provincenameobj,solt)
    values (g_province_q.nextval,'".$_GET['region_id']."',sys.XMLTYPE.createXML('".$xml_con."'),0)";
    but if $xml_con too long,i can not set this content into xmltype fields.
    then , i use :
    <?
    //(tabel_name:articles)DDL; //just for test;
    //create table articles (id number(11),content sys.xmltype);
    //----------This is insert test----------------------------------
    $conn = @OCILogon("in_user","user_in","bigfish");
    $stmt = @OCIParse($conn,"insert into articles (id,content) values(1,xmltype(EMPTY_CLOB())) RETURNING content INTO:CONTENT");
    $clob = @OCINewDescriptor($conn,OCI_D_LOB);
    OCIBindByName($stmt,':CONTENT',&$clob,"1",OCI_B_CLOB);
    OCIExecute($stmt,OCI_DEFAULT);
    if ($clob->save("<root><a>JUST TEST</a></root>")){
    OCICommit($conn);
    echo "Insert succes!";
    else{
    echo "Insert default!";
    //---------------Insert end-----------------------------------------
    //---------------Select start---------------------------------------
    $sql = "select content from articles order by id desc";
    $stmt = @OCIParse($conn,$sql);
    @OCIExecute($stmt,OCI_DEFAULT);
    @OCIFetchInto($stmt,&$rows,OCI_RETURN_LOBS);
    echo "<br>Content is:\"".$rows[0]."\"";
    //---------------Select end-----------------------------------------
    ?>
    run it ,display these errors:
    Warning: ociexecute(): OCIStmtExecute: ORA-22816: unsupported feature with RETURNING clause in /home/www/bigfish/sgtest/testclob.php on line 12
    Warning: save(): OCILobWrite: OCI_INVALID_HANDLE in /home/www/bigfish/sgtest/testclob.php on line 13
    Insert default!
    Content is:""
    Warning: Unknown(): ociclose_session: OCISessionEnd: ORA-00600: internal error code, arguments: [729], [28], [space leak], [], [], [], [], [] in Unknown on line 0
    how can i set long content to xmltype fields??

    geng sun,
    Ora-00600 is an internal Oracle error. You will need to open a tar with Oracle.

  • File upload in oracle9i using JSP page from browser

    Hi guys
    I need to store a pdf file from the JSP page into the Oracle9i DB.
    FrontEnd: Netbeans6.0
    Backend: Oracle9i db server
    I need Jsp code and table creation code i want to create in the Database.
    Pls help me out it is urgent.

    Javamu wrote:
    Hi guys
    I need to store a pdf file from the JSP page into the Oracle9i DB.
    You mean Servlet.
    FrontEnd: Netbeans6.0Netbeans is not a front end to anything. It is an IDE.
    Backend: Oracle9i db server
    I need Jsp code and table creation code i want to create in the Database.This site is not a place to get codes. This site is a place to get help with codes you have written. This site is also not an Oracle or general database or SQL question support forum.
    Pls help me out it is urgent.If it is urgent then you are cooked.
    You can start learning about the various things you need here
    http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/Servlets.html
    http://java.sun.com/docs/books/tutorial/jdbc/index.html

Maybe you are looking for

  • Problems with clicking messaging icon

    Hello there, I got my N97 3 days ago from vodafone and i cant access to messaging to see my inbox, sent messages....etc as when i click the icon only the scroll bar appears from the side and nothing happens. then when i touch the middle of the screen

  • Unable to see company list in client

    Hello, I have a server running SAP B1 8.8 PL5 with SQL2005. I do not see the company list from the client. I see the SBODemoUS database on SQL server. How can I get the company to show up in the client? Thanks and Regards, Sheetal

  • Problem log into the local host

    We have recently upgraded a test box from 47 EXT set 1, to 47 Ext set 2.0, we have added the parameter : rdisp/j2ee_start =1 to our profile and icman is running on port 8080 we can check that in transaction SMICM but when we go to transaction sicf to

  • AEBSn not seeing disk???

    Hello im running the AESBn and have an external Iomega 250HD connected via USB into the router. The Mac however does not see the disk on my desktop any ideas where to start. it did work when i first got the router and it mounted fine, ive did the upd

  • Does maverick support iPhoto 08

    I recently downloaded Mavericks and it now seems that I cant access iPhoto.  I have an old version i Photo 08 version 7.1.5..  Is this my problem?  I guess I will have a problem with iMovie 08 as well (version 7.1.4). I had previously purchased Snow