Database Log Mode
Hi all,
What is the method to convert my Database Log Mode to ARCHIVE
Thanks,
- Sri
Hi,
but, what is this USE_DB_RECOVERY_FILE_DEST?From Documentation...
"The LOG_ARCHIVE_DEST_n initialization parameter defines up to ten (where n = 1, 2, 3, ... 10) destinations, each of which must specify either the LOCATION or the SERVICE attribute to specify where to archive the redo data. All other attributes are optional. Note that whether you are specifying the LOCATION attribute or the SERVICE attribute, it must be the first attribute supplied in the list of attributes."
http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14237/initparams100.htm
Additional Info:
Re: USE_DB_RECOVERY_FILE_DEST
Cheers,
Marcello M.
Message was edited by:
Marcello M.
Similar Messages
-
"Database log mode" & "Automatic archival"
I was asked to do the below
"Database log mode" should be set to
"No Archive Mode" now.
Do not mix up "Database log mode" with
"Automatic archival".
Can you please tell me how to "disable databse log mode", with Automatic Archival enabled.
Regards,
SusanFrom documentation:
ARCHIVELOG mode
The mode of the database in which Oracle copies filled online redo logs to disk. Specify the mode at database creation or by using the ALTER DATABASE statement. You can enable automatic archiving either dynamically using the ALTER SYSTEM statement or by setting the initialization parameter LOG_ARCHIVE_START to TRUE.
Running the database in ARCHIVELOG mode has several advantages over NOARCHIVELOG mode. You can:
* Back up the database while it is open and being accessed by users.
* Recover the database to any desired point in time.
To protect the ARCHIVELOG mode database in case of failure, back up the archived logs.
Configuring ARCHIVELOG Mode For the Database<a>
<br>
Or you can check this tutorial from Oracle:
Disabling Automatic Archiving
<br>
<br>
Or something like this:<br>
sqlplus /nolog
connect / as sysdba
shutdown
startup mount exclusive
alter database noarchivelog
alter database open
<br>
And I don't know if it's needed to have automatic archival enabled since the database will not be in archive mode. -
Putting a Oracle RAC in to archive log mode??
Our RAC is a 10gR2 Three(3) node RAC with a SAN as the shared storage. cluster is installed on linux. at the moment the RAC is in noarchieve log mode.
SQL> archive log list;
Database log mode No Archive Mode
Automatic archival Disabled
Archive destination /u01/app/oracle/product/10.2.
0/db_1/dbs/arch
Oldest online log sequence 665
Current log sequence 666
we created raw partitions in SAN and use ASM to manage shared storage.
when running DBCA at "specify locations for the database files to be created" step we selected "use oracle managed files" and gave database area = +DATA/
then at choose the recovery options for the database" step we ticked specify flash recovery area and gave Flash Recovery AREA = +BACKUP/ and flash recovery area = 10240 MB. we didnt click "enable archiving" option. hence the RAC DB is in NOARCHIEVELOG mode.
i found some guide to put RAC in archive log mode which i have given below....
ALTER SYSTEM SET log_archive_start=TRUE SCOPE=spfile;
ALTER SYSTEM SET log_archive_dest_1='location=/u01/oradata/MYSID/archive/' SCOPE=spfile;
ALTER SYSTEM SET log_archive_format='arch_%t_%s.arc' SCOPE=spfile;
Since we need to mount the database in exclusive mode we must also alter the following parameter:
ALTER SYSTEM SET cluster_database=FALSE SCOPE=spfile;
From the command line we can stop the entire cluster using:
srvctl stop database -d MYSID
With the cluster down we can connect to a single node and issue the following commands:
STARTUP MOUNT;
ARCHIVE LOG START;
ALTER DATABASE ARCHIVELOG;
ALTER SYSTEM SET cluster_database=TRUE SCOPE=spfile;
SHUTDOWN IMMEDIATE;
Notice that the CLUSTER_DATABASE parameter has been reset to it's original value. Since the datafiles and spfile are shared between all instances this operation only has to be done from a single node.
From the command line we can now start the cluster again using:
srvctl start database -d MYSID
my main question is about the setting of
ALTER SYSTEM SET log_archive_dest_1='location= ????? ' SCOPE=spfile;
since i have set +BACKUP/ as the FRA during installation how should i define the location of log_archive_dest_1???
many thanks in advance.
regards
Dilanmany thanks for the replies
will the command you posted send the archive logs to the "+BACKUP/" location in my SAN.
if yes how does oracle know that USE_DB_RECOVERY_FILE_DEST = BACKUP/ in my SAN. or how do i set oracle to use BACKUP/ as the USE_DB_RECOVERY_FILE_DEST??
im a newbie to RAC so pls bear with me. also at the moment i get the following outputs from my database.... pls note the bold part below, is the archive destination pointing to a location in my local server?
SQL> archive log list;
Database log mode No Archive Mode
Automatic archival Disabled
Archive destination /u01/app/oracle/product/10.2.0/db_1/dbs/arch
Oldest online log sequence 665
Current log sequence 666
SQL> show parameter db_recovery;
NAME TYPE VALUE
db_recovery_file_dest string
db_recovery_file_dest_size big integer 0
SQL> show parameter archive
NAME TYPE VALUE
archive_lag_target integer 0
log_archive_config string
log_archive_dest string
log_archive_dest_1 string
log_archive_dest_10 string
log_archive_dest_2 string
log_archive_dest_3 string
log_archive_dest_4 string
log_archive_dest_5 string
log_archive_dest_6 string
log_archive_dest_7 string
NAME TYPE VALUE
log_archive_dest_8 string
log_archive_dest_9 string
log_archive_dest_state_1 string enable
log_archive_dest_state_10 string enable
log_archive_dest_state_2 string enable
log_archive_dest_state_3 string enable
log_archive_dest_state_4 string enable
log_archive_dest_state_5 string enable
log_archive_dest_state_6 string enable
log_archive_dest_state_7 string enable
log_archive_dest_state_8 string enable
NAME TYPE VALUE
log_archive_dest_state_9 string enable
log_archive_duplex_dest string
log_archive_format string %t_%s_%r.dbf
log_archive_local_first boolean TRUE
log_archive_max_processes integer 2
log_archive_min_succeed_dest integer 1
log_archive_start boolean FALSE
log_archive_trace integer 0
remote_archive_enable string true
standby_archive_dest string ?/dbs/arch -
After setting the db to archive log mode what to do?
Hi All,
We have a database which is being used as production database since one week and running in NoArchive Log mode. Now i wanted to change that to Archive Log mode because i want to take hot backup using RMAN daily/weekly. My doubt is..after changing the db to Archive Log mode, can i take backup using RMAN (i got a RMAN script to take a hot backup of db)? which will contain all the backup with control files and spfiles? or do i have to do anything before taking hotbackup.
Thanks,
Praveen.Yes you are fine. BTW, how many archive destinations did you configure.
Usually it is more than 1 on two different Disks.
TEST CASE:
NOARCHIVELOG Database
Change it ARCHIVELOG
Take a hot backup and try to restore/recover it.
STATUS=SUCCES
Can someone explain this to me please:-
Ensure DB in noarchivelog mode
SQL> archive log list
Database log mode No Archive Mode
SQL> startup mount;
SQL> alter database archivelog;
SQL> alter database open;
-- DID Not take a COLD BACKUP
-- Right after switching the mode I am taking hot backup
RMAN> backup incremental level=0 database ;
RMAN> backup archivelog all delete all input;
Nuke the datafiles
RMAN> SET DBID=1299283748;
RMAN> restore controlfile from autobackup;
run
set until logseq=79 ;
restore database;
recover database;
sql 'alter database open resetlogs';
Database is opened restored / recovered?
I totally agree we should take a cold backup right after switching the mode. Can someone explain the above though.
Message was edited by:
gopalora -
Standby Database (Archive Log Mode)
I'm going to be setting up a standby database.
I understand that the primary database must be in archive log mode.
Is there any reason for the standby database to be in archivelog mode?Since your primary Db is in archive log mode, so will be your standby, when it is made primary.But. you can use STANDBY REDO LOGS from 9i version, where these Standby Redo Logs then store the information received from the Primary Database.
As per metalink:-
>
Standby Redo Logs are only supported for the Physical Standby Database in Oracle 9i and as well for Logical Standby Databases in 10g. Standby Redo Logs are only used if you have the LGWR activated for archival to the Remote Standby Database.If you have Standby Redo Logs, the RFS process will write into the Standby RedoLog as mentioned above and when a log switch occurs, the Archiver Process of the Standby Database will archive this Standby Redo Log to an Archived Redo Log, while the MRP process applies the information to the Standby Database. In a Failover situation, you will also have access to the information already written in the Standby Redo Logs, so the information will not be lost.
>
Check metalink Doc ID: Note:219344.1
Regards,
Anand -
I have a primary database that need to import large amount of data and database objects. 1.) Do I shutdown the standby? 2.) Turn off archive log mode? 3.) Perform the import? 4.) Rebuild the standby? or is there a better way or best practice?
Instead of rebuilding the (whole) standby, you take an incremental (from SCN) backup from the Primary and restore it on the Standby. That way, if, for example
a. Only two out of 12 tablespaces are affected by the import, the incremental backup would effectively be only the blocks changed in those two tablespaces (and some other changes in system and undo) {provided that there are no other changes in the other ten tablespaces}
b. if the size of the import is only 15% of the database, the incremental backup to restore to the standby is small
Hemant K Chitale -
Archive log mode in 3 node rac database
Sir I am using oracle 10.2.0.1 and created 3 node cluster setup on.OS i am using linux 4
I am too much confuse in setting up this cluster in archive log mode bec why we need to false cluater_database parameter to setup cluster in archive log mode.
I have search lot of documents but all are saying we not need setting this parameter flase perior to 10.2.But what is the actual concept behind setting this parameter to false in early release and why we need not to set it false.Please help me.
I know how to set up in archive log mode but this parameter create confusion.
Thanks sir in advanceI also dont't know all the details about this but I'll try to explain what I know. Setting cluster_database to false in a rac environment is usually done when you need to mount the database from one instance exclusively. This is still needed when you upgrade the catalog, for example during release update (from 10.2.0.1 to 10.2.0.4 for example). Now with switching archivelog mode someone at oracle must have discovered that it is sufficient when the database is mounted by only one instance and you can actually save one step.
As I (and propably most of you) don't switch archiving on or off on a daily basis, I don't worry about this a lot, simply turn this on when I create a new database and then leave it on forever.
Bjoern -
SGEN & database archive log mode
Hi Experts,
To apply ABAP support packs, I disabled archive log mode of databse and successfully applied support packs.
As post processing, I kicked off SGEN.
Is it required that database be in "NO Archive log mode" while SGEN is running or can I enable it.
Thanks
PutlaNot sure what database it is.. but if it is ORACLE...
$sqlplus / as sysdba
SQL> shutdown immediate;
SQL> startup mount;
SQL> Alter database noarchivelog;
SQL> alter database open;
After the completion of SGEN.....
$sqlplus / as sysdba
SQL> shutdown immediate;
SQL> alter database mount;
SQL> alter database archivelog;
SQL> alter database open; -
Question :
When creating a tablespace why should we enable LOGGING when a database is already on ARCHIVE LOG mode ?
Example:
Create Tablespace
CREATE SMALLFILE TABLESPACE "TEST_DATA"
LOGGING
DATAFILE '+DG_TEST_DATA_01(DATAFILE)' SIZE 10G
AUTOEXTEND ON NEXT 500K MAXSIZE 31000M
EXTENT MANAGEMENT LOCAL
SEGMENT SPACE MANAGEMENT AUTO;
LOGGING: Generate redo logs for creation of tables, indexes and partitions, and for subsequent inserts. Recoverable
Are they not logged and not recoverable if we do not enable LOGGING? What is that ARCHIVELOG mode does?What is that ARCHIVELOG Mode Does?
Whenever your database is in archive log mode , Oracle will backup the redo log files in the form of Archives so that we can recover the database to the consistent state in case of any failure.
Archive logging is essential for production databases where the loss of a transaction might be fatal.
Why Logging?
Logging is safest method to ensure that all the changes made at the tablespace will be captured and available for recovery in the redo logs.
It is just the level at which we defines:
Force Logging at DB level
Logging at Tablespace Level
Logging at schema Level
Before the existence of FORCE LOGGING, Oracle provided logging and nologging options. These two options have higher precedence at the schema object level than the tablespace level; therefore, it was possible to override the logging settings at the tablespace level with nologging setting at schema object level. -
Clone database with no archive log mode and downtime with new file structure
We need to clone database with following business requirements :
No downtime at all can be afford
databases are in no archive log mode
data-file locations need to be change to new mount points while cloning for space management factor
Please suggest the best possible methods for same ?Can you post your version of oracle in 4 digits and OS for better understandig
I dont think you can move the No Archive database to a new location without shutting down.
You just want to move them to the new mount points is it?
1. How big are your datafiles are?
2.How do you backup this DB?
When you move the datafilles then it becomes inconsistent and you need redo logs and probably archive logs to be there to make the file consistent or else it would be prompting for recovery. The chances are your redolog will be overwritten and hence you wont be able to recover.
You need downtime. -
Switching database to archive log mode
1.When I switch the database to archive log mode,
I have to do full offline(consistent) backup.
2.When the database is working in archive log mode
I can do inconsistent(online) backups.
Why is there consistent backup needed after swiching
to archive log mode, is there not inconsistent backup
enough after switching (the databease operates
in archive log mode and as in point 2 I can make inconsistent backups).Hello,
Oracle recommands to do offline backup after switching to archivelog as an immediate crash-recovery procedure. Look at the following example:
1/ You switch your base to archivelog.
2/ Work is started right away.
3/ Your DB crashes => You got your archived redo logs, but none of the other files.
Now, let's put a
1b/ Backup (offline) your database.
Now, in 3, youg got everything you need to restore the base, because 3 can happen WHILE your are ONLINE Backing up the base.
That's the point.
Regards,
Yoann. -
Why we cannot take hot backup if database is in noarchive log mode
Hi,
I am aware that if database is in noarchive log mode, we cannot take hot backups and only cold backup is possible.
I would like to know the technical reason behind this restriction?
Thank You
SarayuHot backups are fuzzy backups, inconsistent, in other words, since something is always happening in the database. When you recover, you restore data files and then apply redo to make the transactions consistent. You can do a complete recovery or recover to a point in time. So where does the redo come from? That's what we call archiving redo logs. When the online redo gets full, it gets archived.
In the case of an instance crash, the redo is there in the online redo logs, so Oracle can recover automatically. Anything beyond that, having to do with storage media, is a media recovery, and requires those archived logs. So unless you have some other way to get your data back, always run in archivelog mode.
It is really important to understand the concepts. Please read the docs.
http://docs.oracle.com/cd/E11882_01/server.112/e25789/cncptdba.htm#CNCPT031
http://docs.oracle.com/cd/E11882_01/backup.112/e10642/rcmintro.htm#i1005488
It may be worth your while to get a third party backup and recovery book too. -
Changing archive log mode without shutting down database
Hi all,
Is there any way to set the database to archive log mode before shutting down the database and when the database shuts and starts, the database should be automatically in archive log mode?
because we can not shutdown the database in weekdays and we have system reboot on weekend and we are not here on that day. So is there a way to set the database in archive log at the memory level so that when the database reboots, it should automatically start in archive log mode.
my environment is windows server 2008 R2 with oracle 11.2.0.3
Thanks in advance.
Edited by: 931643 on Dec 5, 2012 10:37 AM931643 wrote:
thank you for the reply Max Seleznev,
First I thought of writing script in order to include in that process. But we can not run any commands in the sqlplus using the windows jobs. for eg:
you can write a batch file as below:
cd \
sqlplus / as sysdba
select name,open_mode from v$database;
when you run this, it will open until sqlplus prompt but then will not execute the query.
What did you expect? Well, actually, I know what you expected. But think about it for a second. You have a batch file with the mentioned three lines. How does that batch file get processed .. what is happening when it is being processed?
It is not being processed by sqlplus, it is being processed by the windows command processor. Just like the cmd.exe. Each line is read by the command processor and executed accordingly. So ....
cd \the command processor calls 'cd' , and passes the value '\' to do with as it sees fit. 'cd' then changes the current directory of the session to whatever is indicated by the passed parameter. in this case, that value is '\' , so the resulting current directory is the base (root, in *nix terms) of the current drive. When 'cd' has finished, it returns control to the command processor, who then reads the next line ....
sqlplus / as sysdbathe command processor calls sqlplus.exe and passes it the command line parms '/ as sysdba' to do with as it (sqlplus) sees fit. sqlplus does whatever it does with what it has been given In this case it tries to connect to whatever local database is indicated by the value of ORACLE_SID, then waits for more input. Whenever sqlplus exits (how does it know to exit?) it returns control to the command processor, who then reads the next line ....
select name,open_mode from v$database;The command processor will read this line and attempt to find an executable file named 'select' and pass it the rest of the command line 'name,open_mode from v$database;'
Hmm, what do you suppose will happen with that operation?
that is the reason I am figuring out whether there is an alternate way.yes but you have to use the proper technique. And since you are building this into a production stop/start without testing the actual stop/start commands ... what do you suppose will be the outcome if something goes wrong?
After hours and weekend work is one reason DBA's make more money than developers.
>
Thanks -
Backup of the database failed Showing: Unknown log mode : SP2-0640:.
In Oracle Express Edition 10g:
When I try to create a backup I get the following:
==================== ERROR =============================
Backup of the database failed.
Unknown log mode : SP2-0640:.
Log file is at SP2-0640:.
==================== ERROR =============================
Press any key to continue . . .
What may be the reason and whats the solution
Thanks,
Vishal.Hi all,
I had the exact same problem
the backup menu item runs :
C:\oraclexe\app\oracle\product\10.2.0\server\BIN\backup.bat
when you look at this batchfile you will see the following :
The script assumes that user can connect using "/ as sysdba"when you have OS authentication disabled the batchfile will give the formentioned error
turn OS authentication back on by changing C:\oraclexe\app\oracle\product\10.2.0\server\NETWORK\ADMIN\sqlnet.ora
(you could turn it back off after your backup succeeded)
grtz
Martin -
For streams , database in Archive log mode or non archive log mode?
Hello ,
I have a basic question,
To set up oracle streams, what should be the the database mode (archive log or non archive log mode)?
Thanks in advance,
RajIt needs to be in archive log mode..thts the place frm where it captures the necessary information....
Kapil
Maybe you are looking for
-
TS1363 how do you unlock an Ipod that is disabled?
how do you unlock an Ipod that is disabled?
-
When I go to Ancestry.com it does not download all of the site. I know its a firefox issue because I tried the site on Internet Exp and the site came up. I spent two hours on phone yesterday with Tech on Ancestry only to find it is a firefox problem.
-
What update do I need to get Mac OS X Lion 10.7.5 (11G63b) to run Apple TV? I have been told its about $19.95 aus can someone please give me a link so I can get the correct update to run the Apple Tv through my Mac Thanks
-
Hi, Can I able to fetch the IPAddress of ISP (static IPAddress) through java code?
-
Lot Number Related to Service Request Tables - Ramya
HIi All, Where is the lot number available in the tables ...which appear in the service request window??????????????????