Moving spfile from non-asm to asm file system

Hi All
We are migrating non-asm file system to asm file system, we are held up in moving the spfile from non-asm file system to asm file system ...
we tried the below method
Recreate SPFILE on ASM diskgroup
SQL> create pfile='c:\initTEST.ora' from spfile;
File created.
SQL> create spfile='+DGRP2/spfileTEST.ora' from pfile='c:\initTEST.ora';
File created.
after this we started both the running instance and asm instance
but after starting the instance TEST we saw the instance still using spfile of non-asm file system
what is the correct way of moving the spfile from non-asm to asm file system..
Regards
Hariharan.T

You need to perform this first:
First rename the $ORACLE_HOME/dbs/spfileTEST.ora to spfileTEST.ora_old
create initTEST.ora in dbs location with below contents:
Also i recommend you to recreate the spfile in ASM as it might not be in good shape.
When ever you start the oracle instance there is a specific order to find the oracle pfile/spfile
1. O_H/dbs/spfile<SID>.ora
2. O_H/dbs/init<SID>.ora
3. O_H/dbs/spfile.ora
4. O_H/dbs/init.ora
in your case instance always finds spfileTEST.ora in dbs location (non -ASM) and will stop looking further. If you remove it our of the way it will find initTEST.ora which will redirect to spfile present in ASM.
NOTE: As per your earlier update you created spfile in ASM after puttin spfile='+DG...' in the initTEST.ora..
If you start the instance with this SPFILE you will be getting "maxmimum cursors limit exceeded" error.
-Ravi.M

Similar Messages

  • ASM vs ext3 File system(mount point)

    Please suggest which one is better for small databases.
    ASM or ext3 File system(mount point)?
    Any metalink note.

    ASM better if you do not want to play with I/O tiuning, (if you tune ext3 file system it woud be the same from performace view),
    but it more compilcated for admininstering database files in ASM then in ordinary file system.
    Oracle is recomending to use ASM for database file system.
    I woud think if you have some development database and nead a lot of cloning, moving of datafiles its better to use ordinary file system,
    so you can use copy OS comands, not so complicated.
    If you nead some striping, miroring, snapshoting from ext3 you can use LVM on unix/linux.
    I am not sure but I think what striping or miroring is better on ASM then on LVM, becouse ASM is doing it better for databse I/O.

  • Open a pdf from a buffered stream versus file system?

    With the PDF Library SDK is it possible to open a pdf from a stream versus the file system?

    Yes, but not trivially. You would have to implement your own
    ASFileSys, which is a method for accessing "files". This is a
    collection of methods, rather like an object oriented class, but in C.
    You would have to support get, put, open, random access, file naming
    etc.
    Aandi Inston

  • ASM or Regular File System?

    I have read few threads regarding ASM/non-ASM file system. I am thinking ASM is easy to maintain when configured, but hard to maintain when move of database to non-ASM etc. can you suggest?
    Thanks.

    I dont think so.. The question of chosing ASM or not dosn't depend how hard or easy it is, the main thing to know id what is the actual requirement. If you use ASM then it means its raw devices managed by oracle and definitely in order to deal with the ASM files you have to through oracle interface (RMAN) and that disks cannot be seen from OS.
    There are plenty of docs available online to move database from ASM to non-ASM and vice versa, if you are good in RMAN then it shouldn't be a problem plus how many time are you gonna move your database?
    Daljit Singh

  • ASM and ext. file system

    Hi,
    Can I use ASM for one ERP database instance and other for normal .ext file system?
    if yes, what impact would be on system?
    Thanks

    Can I use ASM for one ERP database instance and other for normal .ext file system?Please elaborate more on what you are trying to achieve.
    What is the application release? Database version? OS?
    RAC: Frequently Asked Questions [ID 220970.1] -- What storage option should I use for Oracle RAC on Linux? ASM / OCFS / Raw Devices / Block Devices / Ext3 ?
    RAC Assurance Support Team: RAC Starter Kit and Best Practices (Linux) [ID 811306.1]
    Thanks,
    Hussein

  • Need to Move contents of BLOB from database to middle-tier file system

    I need to be able to move the contents of a BLOB (which is a PDF file) from the database to a specified location in the middle-tier file system (running 9iAS). There does not seem to be the equivalent package or other built-in functionality to DBMS_LOB (for moving INTO the database, which is amazing. Does anyone have a java bean or (?) which can accomplish this simingly simple task??

    The java bean should work to extract from the database to a binary file on either Unix or Windows. As long as the file is in .bmp format in the database, you can save the file as .bmp on you file system and everything should be alright.
    Or, perhaps, am I not understanding your question?
    Good Luck
    Eric Kamradt

  • SSO from non-SAP application to EP system

    Hi all,
    Is it possible to configure the Single sign-on from non-SAP application to SAP Enterprise portal?
    My requirement is
    I have a link to "Enterprise Portal" in my company's website home page. If I click on the link, it should directs to EP portal with out asking for logon.
    Please suggest, is it possible??
    Regards,
    Sujoy

    Hi Sujoy,
    SSO implementation to non-browser applications i.e non-SAP systems is possible in 3 ways which are listed .Can find useful info in the below links.
    http://help.sap.com/saphelp_nw70/helpdata/EN/12/9f244183bb8639e10000000a1550b0/frameset.htm
    among the non-browser applciation if it is an MS dotnet system then the below article will give a clear understanding of SSO implementation.
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f05ae0f0-bf93-2b10-ed9e-a7320c012841
    Regards
    Supraja

  • How to get data from BW Cube to Another File system?

    Hi,
    I have a requirement to get the sales data from BW system(infoCube) to another file system as XML file using XI as a middleware. Can anybody give the suggestions on this please?
    Thanks & Regards,
    Satish

    Take a look at the following document. You will get a fair idea how to integrate BW and XI.
    BW > XI
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/biw/g-i/integrate bw via xi.pdf
    XI> BW
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/biw/g-i/how to push data into bw from xi.pdf
    regards
    SKM

  • Extracting contents from Content Db to a file system

    Hi,
    What would be the best approach to extract the contents in Content Db to a file system and the metadata associated with them to a temporary database table
    so that we can use them to migrate documents to another content management system ?
    Thanks
    Edited by: user10343552 on Oct 9, 2008 10:12 PM

    Restore the database to the SQL Server that the test farm is using. Use Mount-SPContentDatabase on the test SharePoint server (farm) to mount the content database to the test Web Application.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • [SOLVED] Find modified files from a package in local file system

    Is there a quick pacman command doing a diff between the local file system and a pacman package?
    Say I have installed a package foo and modified /etc/foo.conf. Now I want to find what's the difference between the file in my local file system and that in a clean package.
    If there's not a quick pacman command, what would you use in this case?
    Last edited by cyker (2014-10-10 05:18:46)

    amish wrote:
    Size difference does not always work!
    Lets say original conf file had two lines:
    Alert=true
    #Alert=false
    Now you changed it to:
    #Alert=true
    Alert=false
    So size will remain same!!
    So mod time is possibly better way to check!
    Right. Actually diff is the best way to check but doesn't seem to be there.

  • Extracting file from blob and storing in file system

    In order to keep the database size down, I would like to run a program to execute on submit of a page containing a file upload control, which will extract the file from the blob in the db and store it in the operating system.
    Any suggestions on how I can accomplish this?

    I use something like this
      procedure blob2file
        ( p_blob blob
        , p_directory varchar2 := 'MY_DIR'
        , p_filename varchar2 := 'my.xlsx'
      is
        t_fh utl_file.file_type;
        t_len pls_integer := 32767;
      begin
        t_fh := utl_file.fopen( p_directory
                              , p_filename
                              , 'wb'
        for i in 0 .. trunc(  ( dbms_lob.getlength( p_blob ) - 1 ) / t_len )
        loop
          utl_file.put_raw( t_fh
                          , dbms_lob.substr( p_blob
                                           , t_len
                                           , i * t_len + 1
        end loop;
        utl_file.fclose( t_fh );
      end;Anton

  • Copy Distribution model from non changeable client to new system

    Hi EDI-Experts,
    Help me.
    How can I easily copy a distribution model from a nn-changeable client to w new system.
    Example: DEV client 110, Test client 150 (with valid distribution model), new syste, QAE,cleint 200
    How can I transport the distribution model from client 150 of DEV system to 200 of QAE system.
    How does the generation of the partner profiles work then?Anything to consider?
    !! Client 150 of DEV is not changeable !!
    Many thanks
    JW

    Goto Transaction BD64.
    In the Menubar Edit -->Model View --> Distribute
                                                            Transport
    U have the option of distributing ur Model view to another client.
    Hope this helps.
    Regards,
    Mithun
    Edited by: Mithun Shetty on Jul 16, 2008 8:33 PM

  • DNFS with ASM over dNFS with file system - advantages and disadvantages.

    Hello Experts,
    We are creating a 2-node RAC. There will be 3-4 DBs whose instances will be across these nodes.
    For storage we have 2 options - dNFS with ASM and dNFS without ASM.
    The advantages of ASM are well known --
    1. Easier administration for DBA, as using this 'layer', we know the storage very well.
    2. automatic re-balancing and dynamic reconfiguration.
    3. Stripping and mirroring (though we are not using this option in our env, external redundancy is provided at storage level).
    4. Less (or no) dependency on storage admin for DB file related tasks.
    5. Oracle also recommends to use ASM rather than file system storage.
    Advantages of DNFS(Direct Network File System) ---
    1. Oracle bypasses the OS layer, directly connects to storage.
    2. Better performance as user's data need not to be loaded in OS's kernel.
    3. It load balances across multiple network interfaces in a similar fashion to how ASM operates in SAN environments.
    Now if we combine these 2 options , how will be that configuration in terms of administration/manageability/performance/downtime in future in case of migration.
    I have collected some points.
    In favor of 'NOT' HAVING ASM--
    1. ASM is an extra layer on top of storage so if using dNFS ,this layer should be removed as there are no performance benefits.
    2. store the data in file system rather than ASM.
    3. Stripping will be provided  at storage level (not very much sure about this).
    4. External redundancy is being used at storage level so its better to remove ASM.
    points for 'HAVING' ASM with dNFS --
    1. If we remove ASM then DBA has no or very less control over storage. He can't even see how much is the free space left as physical level.
    2. Stripping option is there to gain performance benefits
    3. Multiplexing has benefits over mirroring when it comes to recovery.
    (e.g, suppose a database is created with only 1 controlfile as external mirroring is in place at storage level , and another database is created with 2 copies (multiplexed within Oracle level), and an rm command was issued to remove that file then definitely there will be a time difference between restoring the file back.)
    4. Now familiar and comfortable with ASM.
    I have checked MOS also but could not come to any conclusion, Oracle says --
    "Please also note that ASM is not required for using Direct NFS and NAS. ASM can be used if customers feel that ASM functionality is a value-add in their environment. " ------How to configure ASM on top of dNFS disks in 11gR2 (Doc ID 1570073.1)
    Kindly advise which one I should go with. I would love to go with ASM but If this turned out to be a wrong design in future, I want to make sure it is corrected in the first place itself.
    Regards,
    Hemant

    I agree, having ASM on NFS is going to give little benefit whilst adding complexity.  NAS will carrying out mirroring and stripping through hardware where as ASM using software.
    I would recommend DNFS only if NFS performance isn't acceptable as DNFS introduce an additional layer with potential bugs!  When I first used DNFS in 11gR1, I came across lots of bugs and worked with Oracle Support to have them all resolved.  I recommend having read of this metalink note:
    Required Diagnostic for Direct NFS Issues and Recommended Patches for 11.1.0.7 Version (Doc ID 840059.1)
    Most of the fixes have been rolled into 11gR2 and I'm not sure what the state of play is on 12c.
    Hope this helps
    ZedDBA

  • 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                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Procedure to Insert PDF from FIle System to Database

    Hi ,
    I have a requirement to put the pdf files from our Local Machine or File system into Database table ..
    For that I have created a directory called "MY_PDF" with create and replace directory .
    Also , I have created a database table to store the files from Local machine FIle System directory ( MY_PDF) .
    I have created a procedure which takes 2 inputs ( ID and FIlename ) as parameters , this procedure when executes , it insert the file along with the ID in the database table .
    Procedure is as follows :
    CREATE OR REPLACE PROCEDURE proc_load_a_file( p_id IN NUMBER, p_filename IN VARCHAR2 )
    AS
    l_blob BLOB;
    l_bfile BFILE;
    x VARCHAR2(1000);
    BEGIN
    x:=p_filename;
    INSERT INTO demo(id,theblob,filename) VALUES ( p_id, empty_blob() ,x)
    RETURNING theBlob INTO l_blob;
    UPDATE demo
    SET locater =l_blob where id=p_id;
    l_bfile := bfilename( 'MY_FILES', p_filename );
    DBMS_LOB.FILEOPEN( l_bfile );
    DBMS_LOB.LOADFROMFILE( l_blob, l_bfile,
    DBMS_LOB.getlength( l_bfile ) );
    DBMS_LOB.fileclose( l_bfile );
    COMMIT;
    END;
    Now , my requirement is not to insert one one file each and every time when I execute the procedure .
    My requirement is first to check the File system Directory (MY_PDF) . If
    there is any pdf file in the directory then it will call that procedure and insert that file into the database untill no files found in the dorectory ( MY_PDF) .
    I am not getting the idea how to do this ..
    Please someone provide some valueable inputs .. so that I can finish it up .
    Thanks
    Prashant Dwivedi

    Suggest using the FlowElement.setStyle method to attach additional information about the image to the InlineGraphicElement that gets created.  Looking at the example code in the posted link you'll need to pass that data to the imageLoadComplete method.  The InlineGraphicElement can be found by saving interactionManager.absoluteStart before the graphic is inserted and then calling textFlow.findLeaf(savedAbsoluteStart).
    Hope that helps,
    Richard

Maybe you are looking for