change log mode archive without closing the database

Hi all

Is it possible to put the database in archive log mode before you shut down the database, and when the database stops and starts, the database should automatically be in log mode archive?

because we cannot stop the database in the days of the week and we have system restart the weekend and we are not here this day here. So is there a way to set the database in the log archiving across the memory so that each restart of the database, it should start automatically in log mode archive.

my environment is windows server 2008 R2 with oracle 11.2.0.3

Thanks in advance.

Published by: 931643 on 5 December 2012 10:37

931643 wrote:
Thanks for the reply Max Seleznev,

First of all I thought to write the script to include in this process. But we cannot run all the commands in the sqlplus using windows task. for example:

You can write a batchfile as below:

CD.
sqlplus / as sysdba
Select name, open_mode from v$ database;

When you run this, it will open up to sqlplus prompt but then will not run the query.

This is the reason why I am to know if there is another way.

Thank you

When you do things wrong, you do not get the desired results

Please desired SQL in a separate file (run.sql), then proceed as below

sqlplus scott/tiger @run.sql

Tags: Database

Similar Questions

  • How do I change the log mode archive in 12 c

    Hello

    [oracle@localhost Desktop] $ rman

    Recovery Manager: release 12.1.0.2.0 - Production on Mon May 4 00:38:33 2015

    Copyright (c) 1982, 2014, Oracle and/or its affiliates.  All rights reserved.

    RMAN > Connect target sys/oracle@cdb1

    connected to target database: CDB1 (DBID = 828012650)

    RMAN > backup database;

    From backup may 4, 15

    using the control file of the target instead of recovery catalog database

    allocated channel: ORA_DISK_1

    channel ORA_DISK_1: SID = 284 type device = DISK

    RMAN-00571: ===========================================================

    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.

    RMAN-00571: ===========================================================

    RMAN-03002: failure of the backup command at 04/05/2015 00:38:51

    RMAN-06149: cannot BACKUP of DATABASE in NOARCHIVELOG mode

    RMAN > exit

    Complete recovery manager.

    [oracle@localhost Desktop] $ sqlplus

    SQL * more: Production release 12.1.0.2.0 on Mon May 4 00:38:57 2015

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

    Enter the user name: sys as sysdba

    Enter the password:

    Connected to:

    Database Oracle 12 c Enterprise Edition Release 12.1.0.2.0 - 64 bit Production

    With the options of partitioning, OLAP, advanced analytics and Real Application Testing

    SQL > shutdown immediate;

    Connectable to closed database.

    SQL > startup nomount;

    SQL > startup;

    Connectable to open database.

    SQL >

    Please tell me how to change the mode of journal archive in db oracle 12.1.0.2.0

    Please tell me how to change the mode of journal archive in db oracle 12.1.0.2.0

    Please mark the thread ANSWERED and repost it in the forum shared.

    Multitenant

    Before you repost again the "Archiving for control" secion of the Oracle documentation

    http://docs.Oracle.com/database/121/Admin/archredo.htm#i1006208

    Archiving control

    This section describes how to set the mode of the database archiving and control the archiving process. The authors discuss the following topics:

    This article shows you step by step how to change the mode of journal archive.

  • How to activate the log mode archive in oracle database 11 g 2

    Hi all

    I hope that you all are doing well.

    I want to activate the archiving log in my version of the database 11.2.0.4.0 safely.

    Why safely because my database works fine now.

    Windows 8.1 - OS 64 bit.

    Please provide the correct steps

    so that the work of database and schema can not lose more after that the archive log is enabled.

    Thank you all for your response.

    I followed the thread How to archivelog mode

    Measures

    -----

    SQL > archive log list

    SQL > show parameter db_recovery_file

    SQL > alter system set db_recovery_file_dest_size = 10G scope = the two sid ='* ';

    SQL > shutdown immediate

    SQL > bootable media.

    SQL > alter archivelog database;

    SQL > alter database open;

    She is successful.

  • Close the last tab without closing the application firefox

    Greetings!

    1.i would like to close the last tab without closing the application. The behavior I expect is the application to open a new empty tab when I close the last tab currently I can't close the last tab which already has some open site in it.

    2. when I open a new tab, I have to enter a Web site address. I expect the app to just open a new empty tab and let him to enter an address or not for me.

    Thank you for your support. I love firefox for Android.

    It is being developed and will be changed to allow the closure of the last tab in Firefox 18 or 19.

  • How come back initially on an editing session without closing the entire program and start again?

    How come back initially on an editing session without closing the entire program and start again?

    Hello

    There are two answers to this. If you have not saved the image since the opening, you can restore the file Menu-Revert or F12 and that will bring back you at the beginning. A more elegant solution is the historical Panel.

    Photoshop has a history panel (Windows Menu-history) that keeps track of everything you do on an image and allows you to go back in the flow of work and in effect then go ahead if you change your mind. The original image is always registered as a snapshot and then subsequent action recording. So you can come back not only the original image, but any previous change after opening. You can even take your own snapshots which is a useful feature.

    Hope that helps

    Terri

  • How can I display an error message on the listening port close popup without closing the popup.

    Hi Experts,

    JDeveloper 12.1.3.0.0

    How can I display an error message on the listening port close popup without closing the popup.

    Thank you

    Roy

    As its name suggests, close listener of popup is called when popup is closed so you can not do this.

    If you want to display the popup message, use your own buttons instead of the ok/cancel default buttons and close the popup programmatically.

    Dario

  • How to create a child window without closing the parent window

    Hi all

    I have a requirement to create a child window without closing the parent window. I have to click on an element in the parent window, then is expected to open a child window. The parent window must not be closed before you close the child window.

    Kindly help me in this.

    Thank you and best regards,

    Myvizhi

    Hi all

    I found the solution for this. I created a new page. Then I created an article in the style of link in the parent element, and I put the following properties in the link element:

    Destination URI: OA.jsp?page=/seagate/oracle/apps/seasoa/que/webui/SeaSoaHeaderDetailPG&headerId={@ErrHeaderId}&retainAM=Y&addBreadCrumb=Y&backPage=S

    Target framework: _blank

    This opens the new child window without closing the parent window.

    Thank you and best regards,

    Myvizhi

  • No log mode archive audit...

    Dear Sir

    I use Oracle 10.2 database journal Archive No. mode.

    Can someone me... Check what options are available in no. Archive Log mode?

    Kind regards.

    the audit is independent of no archivelog mode. You can level with or without archivelog mode.

    Please check:
    http://www.Oracle-base.com/articles/10G/auditing-10gR2.php

  • Selection/change colors in series without closing/reopening of color palette

    I use Keynote much more and it drives me crazy that I can't change the colors in series without closing and reopening of the color palette. I'm doing something wrong?

    I'm not sure I understand your question.

    Are you eager to select ONLY the area that looks like a grid?

    It is often easier to use the color window that appears if you click on next to the more limited color box (or show colors in the View Menu), as this remains open. You can "restrict" the choice of colors using areas under the opacity slider with the colors you want to use in your current document. Colors often have to be dragged out of the biggest square next to the pipette.

    This window remains open until you close.

  • Changes in sqlnet.ora may make the database down?

    Hello

    I changed to enable authentication of the os giving the NTS parameter in sqlnet.ora

    Today the database was down.

    Is that what makes the database down?

    I couldn't find anything in the alerts log

    Help, please
    Arun

    Hello

    Concerning the sqlnet.ora setting, it is possible to set two values as follows, but it is not always well managed
    (in a version NONE is ignored):

    SQLNET. AUTHENTICATION_SERVICES = (NONE, NTS)

    Furthermore, it affects the connections only (anyway be careful before changing this parameter).

    Thus, it is likely that the root cause of your accident.

    Please, post more info on the Alert.log and Event Viewer, as previously posted, it might help to understand
    What happened.

    Hope this helps.
    Best regards
    Jean Valentine

  • SP U400 - cannot return to the desktop after entering in the mode 'sleep' by closing the lid

    Satellite Pro U400 V-11 I used for a week. I don't know if this is a problem or I did something wrong. My setting of closing the lid is recording mode "Eve" in Vista.

    When I close the lid and open a few minutes later it's ok, I see the password login screen. But if the computer is in "sleep" for a while it does not return to the office when I lift the lid. The screen is black. Fan started working then quiet several times.

    The first three LEDs on the left are green. Keyboard does not respond. And also switch / stop does not work either I press once on or hold it. And only after I unplug the power adapter and press the power, it works. But it restarts the system and Windows could not close correctly the error message is displayed.

    Is this normal or something wrong with the mode 'sleep'?
    Thank you

    Hello

    I read on some of the similar problems regarding "standby" mode and the black screen.
    Someone suggested to update the BIOS and the display driver

    So I highly recommend it too much
    See the European driver of Toshiba page, choose the model right for laptop and try to update the BIOS, then the display driver.

    Reboot the laptop and see if the problem still occurs.

    Good luck

  • case without closing the

    I just replaced the battery in an ipod video 5th generation when I closed the case on one side of the case closes properly, theres a small gap, can I do?

    That's because something inside interferes with the power to shut down the case completely?  If Yes, open to the top one make sure that everything is in its place.  Compare the old battery to the new.  If the new battery is substantially thicker compared to the old battery, it is defective or not properly designed for a 5th generation iPod.

  • How to send a file without closing the socket?

    I wrote a program to transfer a file by using the tcp connection, where I closed the socket because the receiver must detect the end-file.  But now I would extend it to several files for which I shouldn't close the socket until all files are sent. I can't find a way to do this. So please help to solve.

    Such a long thread, so many errors.

    > Send an end of file marker after each file

    Eventually, which cannot work unless the EOF marker can occur in the file, which is unknowable, or there is a convention of escape agreed where it occurs in the file. In which case, you must also apply the convention to escape to escape Convention. For example, you can terminate with ETX and escape with ESC, but this means that the ETX and ESC must be escaped in the data file, and which in turn means that you need to escape out of ETX and ESC ESC ESC when you receive.

    > In the link, they said the error to happen is because of the header

    No, in the link, they said that the error is caused by using a BufferedReader and then read directly the data stream. Jet disappears in a BufferedReader, err, buffering.

    > BufferedReader has a read (byte [] buffer) method

    No, BufferedReader doesn't have a read (byte [] buffer) method.

    Follows a proven response, unspeculative with code.

    1 use the sender DataOutputStream and DataInputStream to the receiver.

    2 send the file name with writeUTF() and read with readUTF().

    3. send the length of file with writeLong() and read it with readLong().

    4. send and receive exactly that number of bytes, as follows:

    length = din.readLong (); in the receiver, or File.length (to sender)

    total length = 0;

    int count;

    ubyte [] buffer = new byte [8192]; or what you want, any size > zero

    While (total < length="" &&="" (count="din.read(buffer," 0,="" (int)math.min(buffer.length,="" length-total)))=""> 0)

    {

    dout. Write (buffer, 0, count);

    Total += count;

    }

    Errors and omissions excepted. You can use this code on both ends.

  • Closing the database

    Its possible, we activate confirmation option before making the stop, it should be like that.

    SQL > shutdown immediate
    You want to stop the databae Yes/No (not) >

    Hello

    People are working parallel Production, Dev, Test, and DR, sometimes they are accidentally stop the Prodction database

    To stop a database, you need special privileges.

    So, from what you say, I understand that everyone can connect to the database with enough privilege to be able to stop it. This reflects a lack of security.

    Stop and start the database are powerful administrative options and should be restricted to users who connect to Oracle with administrator privileges.

    End-users, developers don't need to connect to the Production Server as 'root' or 'oracle' user OS. They failed to get the password for SYS or SYSTEM.

    Apply safety rules, and no one could stop by mistake your Production database.

    Best regards
    Jean Valentine

  • Add logfile group without closing the first? (10g R2)

    Can I add a group of log file without the first stop of the Forum? I don't see any clear statement on this issue in my book of Admin Alapati 10 g or any docs of Oracle 10g R2. Popular quotes. Maybe it's one of those things "too obvious to publish." My guess is that Oracle 10 g R2 is smart enough to know not not to write to the new log file group members until it is entirely created and available for use.

    Thank you.

    Yes it can be done online: by default most of the statements can be performed online with data in open mode.

Maybe you are looking for