Redo / Archive Log Best Practices?
I am a newb when it comes to Oracle administration. The problem is that our "DBA" knows even less about it.
I'd like to get some advice/recommendations on redo and archive logs.
We are currently running:
Windows 2000 Server
Oracle 8.1.7
Oracle DB is ~50gb
~250 users
Database is under fairly heavy load, as it is used to run the company's primary accounting software.
Recently when reviewing back up procedures, I realized that our "DBA" did not have archive logging turned on. This obviously is a problem. Our DBA was relying solely on a data dump every night that was then backed up to tape. I was forced to take care of this, as the "DBA" didn't have any knowledge on this subject. I got archive logging turned on, changed the init file, etc. etc.
Where the problem comes in, and where my questions come from... The database was writing archive logs ~2-3 mins, sometimes less depending on the database load. Oracle was configured to use 3 redo logs @ ~105mb each. The server was getting "Archive process error: Oracle instance xxxx - Cannot allocate log, archival required." I changed the redo logs to run 5 logs at ~200mb each. I also added a scsi drive to the server for the sole purpose of storing the archive logs. Log Buffer was set at 64k, I upped this to 1mb.
My specific questions are:
- How fast should logs be being written?
- Should I up the number of redo logfiles, or up the size of each?
- Should I be writing the redo logs to multiple destinations?
- Should I archive to multiple destinations? If so, would archiving to a network drive lag the archive process, and kill the bandwidth to the server/database since it would be writing 200mb+ files to the network every few minutes?
- What are some recommended file size minimums / maximums under the current environment listed above?
- Other tips/suggestions?
Any help would be appreciated.
Thanks.
hi,
havce u configured LOG_ARCHIVE_START = TRUE ???
How fast should logs be being written?Should I up the number of redo logfiles, or up the size of each?
- Should I be writing the redo logs to multiple destinations?
- Should I archive to multiple destinations? If so, would archiving to a network drive lag the archive process, and kill the bandwidth to the server/database since it would be writing 200mb+ files to the network every few minutes?
- What are some recommended file size minimums / maximums under the current environment listed above?
IF U WANT TO KEEP TIME BETWEEN FAILURES TO MINIMUM , THEN KEEP UR REDO LOG FILE SIZES TO SMALLER,,BUT ,,AS GENERALLY,,U SHUD TAKE IT TO A GOOD BIG ONE LIKE IN UR SITUATION I THINK IT SHUD BE AS:
LOG_BUFFER = 104857600 --IN INIT.ORA (100MB)
5 REDO LOG FILES AT MULTIPLE LOCATIONS EACH OF THE SIZE 400 MB...
IT IS RECOMMENDED THAT DON'T TAKE UR ARCHIVES ON A NETWORKED LOCATION AS IT WILL DEFINITLY OVERLOADS NETWORK TRAFIC AS WELL AS SLOWS DOWN ARCHIVAL SPEED.
REGARDS
MUHAMMAD UMAR LIAQUAT
Similar Messages
-
Hi Gurus
While Configuring Data Guard for ORacle 10g (10.2.0.4) 64 bits on Windows 2007 Server 64 bits.
I got few questions
1. What is the Default mode of Standby Database?
2. Should we Always Start Physical Standby Database to Recover Missing Redo Archive Log?
SQL> startup mount;
ORACLE instance started.
Total System Global Area 591396864 bytes
Fixed Size 2067496 bytes
Variable Size 163578840 bytes
Database Buffers 419430400 bytes
Redo Buffers 6320128 bytes
Database mounted.
SQL> alter databse recover managed standby database disconnect from session;
Database altered.
3. When there are missing Redo Log Archives e.g.
----On Standby Database--------
SQL> SELECT RESETLOGS_ID,SEQUENCE#,STATUS,ARCHIVED FROM V$ARCHIVED_LOG
2 ORDER BY RESETLOGS_ID,SEQUENCE#;
RESETLOGS_ID SEQUENCE# S ARC
812980008 15 A YES
812980008 16 A YES
812980008 17 A YES
812980008 18 A YES
812980008 19 A YES
812980008 20 A YES
812980008 21 A YES
812980008 22 A YES
812980008 23 A YES
812980008 24 A YES
812980008 25 A YES
RESETLOGS_ID SEQUENCE# S ARC
812980008 26 A YES
812980008 27 A YES
812980008 28 A YES
812980008 29 A YES
812980008 30 A YES
812980008 31 A YES
812980008 32 A YES
812980008 33 A YES
812980008 34 A YES
812980008 35 A YES
812980008 36 A YES
RESETLOGS_ID SEQUENCE# S ARC
812980008 37 A YES
812980008 38 A YES
812980008 39 A YES
812980008 40 A YES
812980008 41 A YES
812980008 42 A YES
812980008 43 A YES
29 rows selected.
---------------On Primary Database---------------------
SQL> SELECT RESETLOGS_ID,SEQUENCE#,STATUS,ARCHIVED FROM V$ARCHIVED_LOG
2 ORDER BY RESETLOGS_ID,SEQUENCE# ;
RESETLOGS_ID SEQUENCE# S ARC
*812980008 8 A YES*
*812980008 9 A YES*
*812980008 10 A YES*
*812980008 11 A YES*
*812980008 12 A YES*
*812980008 13 A YES*
*812980008 14 A YES*
812980008 15 A YES
812980008 15 A YES
812980008 16 A YES
812980008 16 A YES
RESETLOGS_ID SEQUENCE# S ARC
812980008 17 A YES
812980008 17 A YES
812980008 18 A YES
812980008 18 A YES
812980008 19 A YES
812980008 19 A YES
812980008 20 A YES
812980008 20 A YES
812980008 21 A YES
812980008 21 A YES
812980008 22 A YES
RESETLOGS_ID SEQUENCE# S ARC
812980008 22 A YES
812980008 23 A YES
812980008 23 A YES
812980008 24 A YES
812980008 24 A YES
812980008 25 A YES
812980008 25 A YES
812980008 26 A YES
812980008 26 A YES
812980008 27 A YES
812980008 27 A YES
RESETLOGS_ID SEQUENCE# S ARC
812980008 28 A YES
812980008 28 A YES
812980008 29 A YES
812980008 29 A YES
812980008 30 A YES
812980008 30 A YES
812980008 31 A YES
812980008 31 A YES
812980008 32 A YES
812980008 32 A YES
812980008 33 A YES
RESETLOGS_ID SEQUENCE# S ARC
812980008 33 A YES
812980008 34 A YES
812980008 34 A YES
812980008 35 A YES
812980008 35 A YES
812980008 36 A YES
812980008 36 A YES
812980008 37 A YES
812980008 37 A YES
812980008 38 A YES
812980008 38 A YES
RESETLOGS_ID SEQUENCE# S ARC
812980008 39 A YES
812980008 39 A YES
812980008 40 A YES
812980008 40 A YES
812980008 41 A YES
812980008 41 A YES
812980008 42 A YES
812980008 42 A YES
812980008 43 A YES
812980008 43 A YES
65 rows selected.
Log 8, 9, 10, 11, 12, 13, 14, 15 are missing.
How to Apply / Recover These Logs on Standby Database?
Regards
Thunder2777Hi
Thunder2777 wrote:
Hi Gurus
While Configuring Data Guard for ORacle 10g (10.2.0.4) 64 bits on Windows 2007 Server 64 bits.
I got few questions
1. What is the Default mode of Standby Database?
What is default mode? I think you want ask in what mode standby database is apply redo logs.
Standby database can apply received redo only MOUNT mode, (your version is 10g, after 11g can apply open mode with READ ONLY WITH APPLY)
2. Should we Always Start Physical Standby Database to Recover Missing Redo Archive Log?
If Standby database opened mount mode, then database can receive redo.
If you are start Redo Apply then MPR can request from primary for missing redo logs.
SQL> startup mount;
ORACLE instance started.
Total System Global Area 591396864 bytes
Fixed Size 2067496 bytes
Variable Size 163578840 bytes
Database Buffers 419430400 bytes
Redo Buffers 6320128 bytes
Database mounted.
SQL> alter databse recover managed standby database disconnect from session;
Database altered.
It is started recovery, in other words Redo Apply (MRP0 process)
>
3. When there are missing Redo Log Archives e.g.
----On Standby Database-------->
SQL> SELECT RESETLOGS_ID,SEQUENCE#,STATUS,ARCHIVED FROM V$ARCHIVED_LOG
2 ORDER BY RESETLOGS_ID,SEQUENCE#;
RESETLOGS_ID SEQUENCE# S ARC
812980008 15 A YES
812980008 16 A YES
812980008 17 A YES
812980008 18 A YES
812980008 19 A YES
812980008 20 A YES
812980008 21 A YES
812980008 22 A YES
812980008 23 A YES
812980008 24 A YES
812980008 25 A YES
RESETLOGS_ID SEQUENCE# S ARC
812980008 26 A YES
812980008 27 A YES
812980008 28 A YES
812980008 29 A YES
812980008 30 A YES
812980008 31 A YES
812980008 32 A YES
812980008 33 A YES
812980008 34 A YES
812980008 35 A YES
812980008 36 A YES
RESETLOGS_ID SEQUENCE# S ARC
812980008 37 A YES
812980008 38 A YES
812980008 39 A YES
812980008 40 A YES
812980008 41 A YES
812980008 42 A YES
812980008 43 A YES
29 rows selected.
---------------On Primary Database---------------------
SQL> SELECT RESETLOGS_ID,SEQUENCE#,STATUS,ARCHIVED FROM V$ARCHIVED_LOG
2 ORDER BY RESETLOGS_ID,SEQUENCE# ;
RESETLOGS_ID SEQUENCE# S ARC
*812980008 8 A YES*
*812980008 9 A YES*
*812980008 10 A YES*
*812980008 11 A YES*
*812980008 12 A YES*
*812980008 13 A YES*
*812980008 14 A YES*
812980008 15 A YES
812980008 15 A YES
812980008 16 A YES
812980008 16 A YES
RESETLOGS_ID SEQUENCE# S ARC
812980008 17 A YES
812980008 17 A YES
812980008 18 A YES
812980008 18 A YES
812980008 19 A YES
812980008 19 A YES
812980008 20 A YES
812980008 20 A YES
812980008 21 A YES
812980008 21 A YES
812980008 22 A YES
RESETLOGS_ID SEQUENCE# S ARC
812980008 22 A YES
812980008 23 A YES
812980008 23 A YES
812980008 24 A YES
812980008 24 A YES
812980008 25 A YES
812980008 25 A YES
812980008 26 A YES
812980008 26 A YES
812980008 27 A YES
812980008 27 A YES
RESETLOGS_ID SEQUENCE# S ARC
812980008 28 A YES
812980008 28 A YES
812980008 29 A YES
812980008 29 A YES
812980008 30 A YES
812980008 30 A YES
812980008 31 A YES
812980008 31 A YES
812980008 32 A YES
812980008 32 A YES
812980008 33 A YES
RESETLOGS_ID SEQUENCE# S ARC
812980008 33 A YES
812980008 34 A YES
812980008 34 A YES
812980008 35 A YES
812980008 35 A YES
812980008 36 A YES
812980008 36 A YES
812980008 37 A YES
812980008 37 A YES
812980008 38 A YES
812980008 38 A YES
RESETLOGS_ID SEQUENCE# S ARC
812980008 39 A YES
812980008 39 A YES
812980008 40 A YES
812980008 40 A YES
812980008 41 A YES
812980008 41 A YES
812980008 42 A YES
812980008 42 A YES
812980008 43 A YES
812980008 43 A YES
65 rows selected.
Log 8, 9, 10, 11, 12, 13, 14, 15 are missing.It is no missing, you are created standby database, after sequence 15.
As you know , if a sequence redo is not applied, then after is sequenced redo log is cannot apply to standby database.
It means GAP.
There have 43 archived redo log, and your last sequenced archive log received by standby database
and applied.
You can check with following scripts, too
select max(Sequence#) from v$archived_log; -- on primary
select max(Sequence#) from v$archived_log where applied = 'YES'; - on standby Regards
Mahir M. Quluzade -
Redo log best practice for performace - ASM 11g
Hi All,
I am new to ASM world....can you please give your valuable suggestion on below topic.
What is the best practice for online redo log files ? I read it somewhere that oracle recommand to have only two disk group one for the all DB fils, control files online redo log files and other disk group for recovery files, like mulitplex redo file, archive log files etc.
Will there be any performance improvment to make different diskgroup for online redo log (separate from datafiles, contorl files etc) ?
I am looking for oracle document to find the best practise for redo log (peformance) on ASM.
Please share your valuable views on this.
Regards.ASM is only a filesystem.
What really count on performance about I/O is the Storage Design i.e (RAID used, Array Sharing, Hard Disk RPM value, and so on).
ASM itself is only a layer to read and write on ASM DISK. What mean if you storage design is ok ... ASM will be ok. (of course there is best pratices on ASM but Storage must be in first place)
e.g There is any performance improvement make different Diskgroup?
Depend...and this will lead to another question.
Is the Luns on same array?
If yes the performance will end up on same point. No matter if you have one or many diskgroup.
Coment added:
Comparing ASM to Filesystem in benchmarks (Doc ID 1153664.1)
Your main concern should be how many IOPs,latency and throughput the storage can give you. Based on these values you will know if your redologs will be fine. -
Real time logging: best practices and questions ?
I've 4 couples of DS 5.2p6 in MMR mode on Windows 2003.
Each server is configured with the default setting of "nsslapd-accesslog-logbuffering" enabled, and the log files are stored on a local file system, then later centrally archived thanks to a log sender daemon.
I've now a requirement from a monitoring tool (used to establish correlations/links/events between applications) to provide the directory
server access logs in real time.
At a first glance, each directory generates about 1,1 Mb of access log per second.
1)
I'd like to know if there're known best practices / experiences in such a case.
2)
Also, should I upgrade my DS servers to benefit from any log management related feature ? Should I think about using an external disk
sub-sytem (SAN, NAS ....) ?
3)
In DS 5.2, what's the default access logbuffering policy : is there a maximum buffer size and/or time limit before flushing to disk ? Is it configurable ?Usually log-buffering should be enabled. I don't know of any customers who turn it off. Even if you do, I guess it should be after careful evaluation in your environment. AFAIK, there is no configurable limit for buffer size or time limit before it is committed to disk
Regarding faster disks, I had the bright idea that you could creating a ramdisk and set the logs to go there instead of disk. Let's say the ramdisk is 2gb max in size and you receive about 1MB/sec in writes. Say max-log-size is 30MB. You can schedule a job to run every minute that copies over the newly rotated file(s) from ramdisk to your filesystem and then send it over to logs HQ. If the server does crash, you'll lose upto a minute of logs. Of course, the data disappears after reboot, so you'll need to manage that as well. Sounds like fun to try but may not be practical.
Ramdisk on windows
[http://msdn.microsoft.com/en-us/library/dd163312.aspx]
Ramdisk on solaris
[http://wikis.sun.com/display/BigAdmin/Talking+about+RAM+disks+in+the+Solaris+OS]
[http://docs.sun.com/app/docs/doc/816-5166/ramdiskadm-1m?a=view]
I should ask, how realtime should this log correlation be?
Edited by: etst123 on Jul 23, 2009 1:04 PM -
Logging Best Practices in J2EE
Hi,
I've been struggling with Apache Commons Logging and Log4J Class Loading problems between module deployments in the Sun App Server. I've also had the same problems with other App servers.
What is the best practice for Logging in J2EE.
i.e. I think i may be java.util.logging. But what is the best practise for providing different logging config (i.e. Levels for classes and output) for each deployed module. and how would you structure that in the EAR.
Thanks in advance.
GrahamI find using the java.util.logging works fine. For configuration of the log levels I use a LifeCycle module that sets up all my levels and handlers. That way I can set up the server.policy to allow only the LifeCycle module jar to configure logging (with a codebase grant), but no other normal modules can.
The LifeCycle module gets its properties as event data with the INIT event and configures the logging on the STARTUP event.
Hope this helps. -
Console logging best practices?
All,
I just had a guest "LDom" crash. There was no system crash dump recovered and nothing in /var/adm/messages. Is there a best practice for sending virtual console output to some sort of log server?
Any insight would be appreciated.
Regards,
GeneCould you use something like this: on control domain start screen (the terminal multiplexer) with the following options and arguments: screen -d -m sh -c "telnet <ldom's console> | tee -a <path to the log file>". That should create screen that has a telnet session to the ldom's console which writes its output to a file.
For example: screen -d -m sh -c "telnet localhost:5001 | tee -a /var/tmp/ldom1_console.log"
Remember to check running screens with screen -ls command. -
ICM Trace Log best practices?
Hello,
Partner is asking if we have best practice guidelines/documentation for setting Trace Log file sizes on ICM 7.2.X
thanks!Actually we did open a TAC. Cisco was not able to make a recommendation because the issue is intermittent and we cannot leave tracing on indefinitely. Because of this they instead recommended installing a packet sniffer. However our network support team came back with a similar response - cannot leave packet sniffing turned on indefinitely.
This is a difficult situation in which we cannot reproduce the issue, we don't know when it will happen again. And we cannot take any proactive action to ensure that we capture the logs on the next occurrence.
So, has anyone else been through something like this?
Thanks!
Joe -
Data Guard Missing Redo Archive Logs
Hi All Gurus
I have setup data guard on windows 2008 server sp2 with oracle 10.2.0.4.0 (Both OS & Oracle DB are 64 bits).
The Network Admin have shutdown Backup server. Now when I checked the Archive status as follows
1. select * from v$archive_gap; It shows a gap in archives e.g. 891 - 920.
2. SELECT THREAD#, SEQUENCE#, APPLIED FROM V$ARCHIVED_LOG; e.g. 891-920 Not Applied.
Now I issue following command
1. SELECT RECOVERY_MODE FROM V$ARCHIVE_DEST_STATUS; e.g. MANAGED REAL TIME APPLY
2. DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;
or ALTER DATABASE RECOVER managed standby database disconnect from session ;
e.g. incompatible Media Recovery in Progress
3. Alert Log says Adjust CONTROL_FILE_RECORD_KEEP_TIME to sufficient limits.
I have also adjusted CONTROL_FILE_RECORD_KEEP_TIME to 90 days as follows
4. show parameter control_file e.g. CONTROL_FILE_RECORD_KEEP_TIME=90
5. I have checked firewall and tnsping for both Primary and Standby Server e.g. tnsping CVMIS (Primary), CVMISBK (Standby)
Both are OK. TNSPING is showing 10-30msec delay.
6. I have checked the web for gap Removal, Mostly are using RMAN method to Backup and then Restore to Standby DB.
Is there any other way to fill this gap without using RMAN? I mean DG automatically fill it by using some commands
are settings?
Kind Regards
Thunder2777Hi CKPT
Thanks for the scripts which I executed today on 24 Mon 2013. Here are the Results.
Standby Database Script Output:
NAME DISPLAY_VALUE
db_file_name_convert
db_name UMIS
db_unique_name UMISBK
dg_broker_config_file1 C:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\DR1UMISBK.DAT
dg_broker_config_file2 C:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\DR2UMISBK.DAT
dg_broker_start TRUE
fal_client (DESCRIPTION=(ADDRESS_LIST=(AD
DRESS=(PROTOCOL=tcp)(HOST=WIN-
7VSLKL4CGU2)(PORT=1521)))(CONN
ECT_DATA=(SERVICE_NAME=umisbk_
XPT)(INSTANCE_NAME=umisbk)(SER
VER=dedicated)))
fal_server (DESCRIPTION=(ADDRESS_LIST=(AD
DRESS=(PROTOCOL=tcp)(HOST=CV-A
JKDB)(PORT=1521)))(CONNECT_DAT
A=(SERVICE_NAME=umis_XPT)(SERV
ER=dedicated)))
local_listener
log_archive_config DG_CONFIG=(UMIS,UMISBK)
log_archive_dest_2 SERVICE=UMIS LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=UMIS
log_archive_dest_state_2 ENABLE
log_archive_max_processes 10
log_file_name_convert E:\oracle\product\10.2.0\flash_recovery_area\UMIS\, D:\ORACLE\FRA\UMISBK
remote_login_passwordfile EXCLUSIVE
standby_archive_dest D:\ORACLE\FRA\UMISBK\ARCHIVELOG\
standby_file_management AUTO
NAME DB_UNIQUE_NAME PROTECTION_MODE DATABASE_R OPEN_MODE
UMIS UMISBK MAXIMUM PERFORMANCE PHYSICAL STANDBY MOUNTED
THREAD# MAX(SEQUENCE#)
1 890
PROCESS STATUS THREAD# SEQUENCE#
ARCH CONNECTED 0 0
ARCH CONNECTED 0 0
ARCH CONNECTED 0 0
ARCH CONNECTED 0 0
ARCH CLOSING 1 1062
ARCH CONNECTED 0 0
ARCH CONNECTED 0 0
ARCH CONNECTED 0 0
ARCH CONNECTED 0 0
ARCH CONNECTED 0 0
MRP0 WAIT_FOR_GAP 1 891
RFS IDLE 1 1063
RFS IDLE 0 0
NAME VALUE UNIT TIME_COMPUTED
apply finish time day(2) to second(1) interval
apply lag day(2) to second(0) interval
estimated startup time 22 second
standby has been open N
transport lag day(2) to second(0) interval
THREAD# LOW_SEQUENCE# HIGH_SEQUENCE#
1 891 948
NAME Size MB Used MB
D:\ORACLE\FRA 2048 0
STANDBY Alert Log:
Mon Jun 24 10:19:55 2013
Redo Shipping Client Connected as PUBLIC
-- Connected User is Valid
RFS[2]: Assigned to RFS process 1868
RFS[2]: Identified database type as 'physical standby'
RFS[2]: Successfully opened standby log 5: 'D:\ORACLE\ORADATA\UMISBK\SLOG02.LOG'
Mon Jun 24 10:22:09 2013
Adjusting the default value of parameter parallel_max_servers
from 160 to 135 due to the value of parameter processes (150)
Mon Jun 24 10:22:09 2013
Starting ORACLE instance (normal)
Mon Jun 24 10:22:09 2013
alter database mount standby database
ORA-1154 signalled during: alter database mount standby database...
Mon Jun 24 10:22:09 2013
alter database recover managed standby database using current logfile disconnect from session
Mon Jun 24 10:22:40 2013
ORA-1153 signalled during: alter database recover managed standby database using current logfile disconnect from session...
Adjusting the default value of parameter parallel_max_servers
from 160 to 135 due to the value of parameter processes (150)
Mon Jun 24 10:24:40 2013
Starting ORACLE instance (normal)
Mon Jun 24 10:24:40 2013
alter database mount standby database
ORA-1154 signalled during: alter database mount standby database...
Mon Jun 24 10:24:40 2013
alter database recover managed standby database using current logfile disconnect from session
Mon Jun 24 10:25:11 2013
ORA-1153 signalled during: alter database recover managed standby database using current logfile disconnect from session...
Mon Jun 24 10:26:46 2013
Adjusting the default value of parameter parallel_max_servers
from 160 to 135 due to the value of parameter processes (150)
Mon Jun 24 10:26:46 2013
Starting ORACLE instance (normal)
Mon Jun 24 10:28:04 2013
alter database mount standby database
Mon Jun 24 10:28:04 2013
ORA-1154 signalled during: alter database mount standby database...
PRIMARY Database Script Output:
NAME DISPLAY_VALUE
db_file_name_convert UMIS, UMISBK
db_name UMIS
db_unique_name UMIS
dg_broker_config_file1 E:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\DR1UMIS.DAT
dg_broker_config_file2 E:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\DR2UMIS.DAT
dg_broker_start TRUE
fal_client UMIS
fal_server UMISBK
local_listener
log_archive_config DG_CONFIG=(UMIS,UMISBK)
log_archive_dest_2 service="(DESCRIPTION=(ADDRESS
_LIST=(ADDRESS=(PROTOCOL=tcp)(
HOST=WIN-7VSLKL4CGU2)(PORT=152
1)))(CONNECT_DATA=(SERVICE_NAM
E=umisbk_XPT)(INSTANCE_NAME=um
isbk)(SERVER=dedicated)))",
LGWR ASYNC NOAFFIRM delay=0 O
PTIONAL max_failure=0 max_conn
ections=1 reopen=300 db_uniq
ue_name="umisbk" register net_
timeout=180 valid_for=(online
_logfile,primary_role)
log_archive_dest_state_2 ENABLE
log_archive_max_processes 2
log_file_name_convert E:\oracle\product\10.2.0\flash_recOvery_area\UMIS ARCHIVELOG\, D:\ORACLE\FRA\UMISBK\ARCHIVELOG\
remote_login_passwordfile EXCLUSIVE
standby_archive_dest
standby_file_management AUTO
NAME DB_UNIQUE_NAME PROTECTION_MODE DATABASE_R OPEN_MODE SWITCHOVER_STATUS
UMIS UMIS MAXIMUM PERFORMANCE PRIMARY READ WRITE SESSIONS ACTIVE
THREAD# MAX(SEQUENCE#)
1 1062
Thread Last Sequence Received Last Sequence Applied Difference
1 1062 1062 0
1 1062 1062 0
SEVERITY ERROR_CODE timestamp MESSAGE
Error 12514 24-JUN-2013 10:08:02 LGWR: Error 12514 creating archivelog file '(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=WIN-7VSLKL4CGU2)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=umisbk_XPT)(INSTANCE_NAME=umisbk)(SERVER=dedicated)))
Error 12514 24-JUN-2013 10:08:04 LGWR: Error 12514 creating archivelog file '(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=WIN-7VSLKL4CGU2)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=umisbk_XPT)(INSTANCE_NAME=umisbk)(SERVER=dedicated)))
Error 12514 24-JUN-2013 10:08:07 FAL[server, ARC1]: Error 12514 creating remote archivelog file '(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=WIN-7VSLKL4CGU2)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=umisbk_XPT)(INSTANCE_NAME=umisbk)(SERVER=dedicated)))'
Error 12514 24-JUN-2013 10:08:31 LGWR: Error 12514 creating archivelog file '(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=WIN-7VSLKL4CGU2)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=umisbk_XPT)(INSTANCE_NAME=umisbk)(SERVER=dedicated)))
Error 12514 24-JUN-2013 10:08:59 FAL[server, ARC1]: Error 12514 creating remote archivelog file '(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=WIN-7VSLKL4CGU2)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=umisbk_XPT)(INSTANCE_NAME=umisbk)(SERVER=dedicated)))'
Error 12514 24-JUN-2013 10:14:57 PING[ARC1]: Heartbeat failed to connect to standby '(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=WIN-7VSLKL4CGU2)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=umisbk_XPT)(INSTANCE_NAME=umisbk)(SERVER=dedicated)))'. Error is 12514.
ID STATUS DB_MODE TYPE RECOVERY_MODE PROTECTION_MODE SRLs ACTIVE ARCHIVED_SEQ#
1 VALID OPEN ARCH IDLE MAXIMUM PERFORMANCE 0 0 1062
2 VALID UNKNOWN LGWR UNKNOWN MAXIMUM PERFORMANCE 4 3 1054
NAME Size MB Used MB
E:\oracle\product\10.2.0\flash_recovery_area 2048 0
Primary Alert Log:
System parameters with non-default values:
processes = 150
__shared_pool_size = 335544320
__large_pool_size = 16777216
__java_pool_size = 33554432
__streams_pool_size = 0
sga_target = 1258291200
control_files = E:\ORACLE\PRODUCT\10.2.0\ORADATA\UMIS\CONTROL01.CTL, E:\ORACLE\PRODUCT\10.2.0\ORADATA\UMIS\CONTROL02.CTL, E:\ORACLE\PRODUCT\10.2.0\ORADATA\UMIS\CONTROL03.CTL
db_file_name_convert = UMIS, UMISBK
log_file_name_convert = E:\oracle\product\10.2.0\flash_recOvery_area\UMIS ARCHIVELOG\, D:\ORACLE\FRA\UMISBK\ARCHIVELOG\
control_file_record_keep_time= 90
db_block_size = 8192
__db_cache_size = 855638016
compatible = 10.2.0.3.0
log_archive_config = DG_CONFIG=(UMIS,UMISBK)
log_archive_dest_1 = location="E:\oracle\product\10.2.0\flash_recovery_area\UMIS\ARCHIVELOG", valid_for=(ONLINE_LOGFILE,ALL_ROLES)
log_archive_dest_2 = service="(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=WIN-7VSLKL4CGU2)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=umisbk_XPT)(INSTANCE_NAME=umisbk)(SERVER=dedicated)))", LGWR ASYNC NOAFFIRM delay=0 OPTIONAL max_failure=0 max_connections=1 reopen=300 db_unique_name="umisbk" register net_timeout=180 valid_for=(online_logfile,primary_role)
log_archive_dest_state_1 = ENABLE
log_archive_dest_state_2 = ENABLE
log_archive_max_processes= 2
log_archive_min_succeed_dest= 1
standby_archive_dest =
log_archive_trace = 0
log_archive_format = ARC_s%S_r%R_t%T.arc
fal_client = UMIS
fal_server = UMISBK
archive_lag_target = 0
db_file_multiblock_read_count= 16
db_recovery_file_dest = E:\oracle\product\10.2.0\flash_recovery_area
db_recovery_file_dest_size= 2147483648
standby_file_management = AUTO
undo_management = AUTO
undo_tablespace = UNDOTBS1
remote_login_passwordfile= EXCLUSIVE
db_domain =
dispatchers = (PROTOCOL=TCP) (SERVICE=UMISXDB)
job_queue_processes = 10
audit_file_dest = E:\ORACLE\PRODUCT\10.2.0\ADMIN\UMIS\ADUMP
background_dump_dest = E:\ORACLE\PRODUCT\10.2.0\ADMIN\UMIS\BDUMP
user_dump_dest = E:\ORACLE\PRODUCT\10.2.0\ADMIN\UMIS\UDUMP
core_dump_dest = E:\ORACLE\PRODUCT\10.2.0\ADMIN\UMIS\CDUMP
db_name = UMIS
open_cursors = 300
pga_aggregate_target = 417333248
dg_broker_start = TRUE
PSP0 started with pid=3, OS id=2824
MMAN started with pid=4, OS id=2820
DBW0 started with pid=5, OS id=2396
LGWR started with pid=6, OS id=2676
CKPT started with pid=7, OS id=2692
SMON started with pid=8, OS id=2096
RECO started with pid=9, OS id=2924
CJQ0 started with pid=10, OS id=2832
MMON started with pid=11, OS id=3052
Mon Jun 24 10:07:34 2013
starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))'...
Mon Jun 24 10:07:34 2013
starting up 1 shared server(s) ...
MMNL started with pid=12, OS id=2700
DMON started with pid=15, OS id=2908
PMON started with pid=2, OS id=2812
Mon Jun 24 10:07:35 2013
alter database mount exclusive
Mon Jun 24 10:07:40 2013
Setting recovery target incarnation to 2
Mon Jun 24 10:07:42 2013
Successful mount of redo thread 1, with mount id 316954407
Mon Jun 24 10:07:42 2013
Database mounted in Exclusive Mode
Completed: alter database mount exclusive
Mon Jun 24 10:07:42 2013
alter database open
Mon Jun 24 10:07:47 2013
Starting Data Guard Broker (DMON)
NSV1 started with pid=16, OS id=3552
Mon Jun 24 10:07:50 2013
Beginning crash recovery of 1 threads
parallel recovery started with 7 processes
INSV started with pid=24, OS id=3628
Mon Jun 24 10:07:52 2013
Started redo scan
Mon Jun 24 10:07:53 2013
Completed redo scan
144 redo blocks read, 60 data blocks need recovery
Mon Jun 24 10:07:53 2013
Started redo application at
Thread 1: logseq 1059, block 8380
Mon Jun 24 10:07:53 2013
Recovery of Online Redo Log: Thread 1 Group 3 Seq 1059 Reading mem 0
Mem# 0: E:\ORACLE\PRODUCT\10.2.0\ORADATA\UMIS\REDO03.LOG
Mon Jun 24 10:07:53 2013
Completed redo application
Mon Jun 24 10:07:53 2013
Completed crash recovery at
Thread 1: logseq 1059, block 8524, scn 26461769
60 data blocks read, 60 data blocks written, 144 redo blocks read
Mon Jun 24 10:07:57 2013
LGWR: STARTING ARCH PROCESSES
ARC0 started with pid=25, OS id=3804
ARC1 started with pid=26, OS id=3808
Mon Jun 24 10:07:57 2013
ARC0: Archival started
ARC1: Archival started
LGWR: STARTING ARCH PROCESSES COMPLETE
RSM0 started with pid=27, OS id=3812
LNS1 started with pid=28, OS id=3824
Mon Jun 24 10:08:01 2013
Thread 1 advanced to log sequence 1060 (thread open)
Thread 1 opened at log sequence 1060
Current log# 1 seq# 1060 mem# 0: E:\ORACLE\PRODUCT\10.2.0\ORADATA\UMIS\REDO01.LOG
Successful open of redo thread 1
Mon Jun 24 10:08:02 2013
MTTR advisory is disabled because FAST_START_MTTR_TARGET is not set
Mon Jun 24 10:08:02 2013
ARC1: STARTING ARCH PROCESSES
Mon Jun 24 10:08:02 2013
ARC0: Becoming the 'no FAL' ARCH
ARC0: Becoming the 'no SRL' ARCH
Mon Jun 24 10:08:02 2013
ARC2: Archival started
Mon Jun 24 10:08:02 2013
ARC1: STARTING ARCH PROCESSES COMPLETE
ARC2 started with pid=29, OS id=3544
ARC1: Becoming the heartbeat ARCH
Mon Jun 24 10:08:02 2013
LGWR: Setting 'active' archival for destination LOG_ARCHIVE_DEST_2
Error 12514 received logging on to the standby
LGWR: Error 12514 creating archivelog file '(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=WIN-7VSLKL4CGU2)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=umisbk_XPT)(INSTANCE_NAME=umisbk)(SERVER=dedicated)))'
Mon Jun 24 10:08:02 2013
Errors in file e:\oracle\product\10.2.0\admin\umis\bdump\umis_lns1_3824.trc:
ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
Mon Jun 24 10:08:02 2013
SMON: enabling cache recovery
Mon Jun 24 10:08:03 2013
ALTER SYSTEM SET log_archive_dest_2='service="(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=WIN-7VSLKL4CGU2)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=umisbk_XPT)(INSTANCE_NAME=umisbk)(SERVER=dedicated)))"',' LGWR ASYNC NOAFFIRM delay=0 OPTIONAL max_failure=0 max_connections=1 reopen=300 db_unique_name="umisbk" register net_timeout=180 valid_for=(online_logfile,primary_role)' SCOPE=BOTH;
Mon Jun 24 10:08:03 2013
LNS: Failed to archive log 1 thread 1 sequence 1060 (12514)
Mon Jun 24 10:08:03 2013
ALTER SYSTEM SET log_archive_dest_state_2='ENABLE' SCOPE=BOTH;
Mon Jun 24 10:08:03 2013
ALTER DATABASE OPEN
Mon Jun 24 10:08:03 2013
ORA-1531 signalled during: ALTER DATABASE OPEN...
Mon Jun 24 10:08:04 2013
Error 12514 received logging on to the standby
LGWR: Error 12514 creating archivelog file '(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=WIN-7VSLKL4CGU2)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=umisbk_XPT)(INSTANCE_NAME=umisbk)(SERVER=dedicated)))'
Mon Jun 24 10:08:04 2013
Errors in file e:\oracle\product\10.2.0\admin\umis\bdump\umis_lns1_3824.trc:
ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
LNS: Failed to archive log 1 thread 1 sequence 1060 (12514)
Mon Jun 24 10:08:04 2013
Successfully onlined Undo Tablespace 1.
Mon Jun 24 10:08:04 2013
SMON: enabling tx recovery
Mon Jun 24 10:08:05 2013
Database Characterset is WE8MSWIN1252
Opening with internal Resource Manager plan
where NUMA PG = 1, CPUs = 8
Mon Jun 24 10:08:06 2013
Error 12514 received logging on to the standby
Mon Jun 24 10:08:06 2013
Errors in file e:\oracle\product\10.2.0\admin\umis\bdump\umis_arc1_3808.trc:
ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
FAL[server, ARC1]: Error 12514 creating remote archivelog file '(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=WIN-7VSLKL4CGU2)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=umisbk_XPT)(INSTANCE_NAME=umisbk)(SERVER=dedicated)))'
FAL[server, ARC1]: FAL archive failed, see trace file.
Mon Jun 24 10:08:07 2013
replication_dependency_tracking turned off (no async multimaster replication found)
Mon Jun 24 10:08:07 2013
Errors in file e:\oracle\product\10.2.0\admin\umis\bdump\umis_arc1_3808.trc:
ORA-16055: FAL request rejected
Mon Jun 24 10:08:07 2013
ARCH: FAL archive failed. Archiver continuing
Mon Jun 24 10:08:08 2013
Starting background process QMNC
QMNC started with pid=28, OS id=3984
Mon Jun 24 10:08:15 2013
db_recovery_file_dest_size of 2048 MB is 0.00% used. This is a
user-specified limit on the amount of space that will be used by this
database for recovery-related files, and does not reflect the amount of
space available in the underlying filesystem or ASM diskgroup.
Mon Jun 24 10:08:15 2013
Completed: alter database open
Mon Jun 24 10:08:19 2013
ALTER SYSTEM SET standby_archive_dest='' SCOPE=BOTH SID='umis';
Mon Jun 24 10:08:19 2013
ALTER SYSTEM SET log_archive_trace=0 SCOPE=BOTH SID='umis';
Mon Jun 24 10:08:19 2013
ALTER SYSTEM SET log_archive_format='ARC_s%S_r%R_t%T.arc' SCOPE=SPFILE SID='umis';
Mon Jun 24 10:08:20 2013
ALTER SYSTEM SET standby_file_management='AUTO' SCOPE=BOTH SID='*';
Mon Jun 24 10:08:20 2013
ALTER SYSTEM SET archive_lag_target=0 SCOPE=BOTH SID='*';
Mon Jun 24 10:08:20 2013
ALTER SYSTEM SET log_archive_max_processes=2 SCOPE=BOTH SID='*';
Mon Jun 24 10:08:21 2013
ALTER SYSTEM SET log_archive_min_succeed_dest=1 SCOPE=BOTH SID='*';
Mon Jun 24 10:08:21 2013
ALTER SYSTEM SET db_file_name_convert='UMIS','UMISBK' SCOPE=SPFILE;
Mon Jun 24 10:08:21 2013
ALTER SYSTEM SET log_file_name_convert='E:\oracle\product\10.2.0\flash_recOvery_area\UMIS ARCHIVELOG\','D:\ORACLE\FRA\UMISBK\ARCHIVELOG\' SCOPE=SPFILE;
Mon Jun 24 10:08:21 2013
ALTER SYSTEM ARCHIVE LOG
Mon Jun 24 10:08:21 2013
Thread 1 cannot allocate new log, sequence 1061
Private strand flush not complete
Current log# 1 seq# 1060 mem# 0: E:\ORACLE\PRODUCT\10.2.0\ORADATA\UMIS\REDO01.LOG
Mon Jun 24 10:08:22 2013
Shutting down archive processes
Mon Jun 24 10:08:22 2013
Thread 1 advanced to log sequence 1061 (LGWR switch)
Mon Jun 24 10:08:22 2013
Current log# 2 seq# 1061 mem# 0: E:\ORACLE\PRODUCT\10.2.0\ORADATA\UMIS\REDO02.LOG
Mon Jun 24 10:08:27 2013
ARCH shutting down
ARC2: Archival stopped
Mon Jun 24 10:08:27 2013
ALTER SYSTEM SET log_archive_dest_2='service="(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=WIN-7VSLKL4CGU2)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=umisbk_XPT)(INSTANCE_NAME=umisbk)(SERVER=dedicated)))"',' LGWR ASYNC NOAFFIRM delay=0 OPTIONAL max_failure=0 max_connections=1 reopen=300 db_unique_name="umisbk" register net_timeout=180 valid_for=(online_logfile,primary_role)' SCOPE=BOTH;
Mon Jun 24 10:08:27 2013
ALTER SYSTEM SET log_archive_dest_state_2='ENABLE' SCOPE=BOTH;
Mon Jun 24 10:08:27 2013
ALTER SYSTEM ARCHIVE LOG
Mon Jun 24 10:08:27 2013
Thread 1 cannot allocate new log, sequence 1062
Private strand flush not complete
Current log# 2 seq# 1061 mem# 0: E:\ORACLE\PRODUCT\10.2.0\ORADATA\UMIS\REDO02.LOG
LNS1 started with pid=29, OS id=4204
Mon Jun 24 10:08:31 2013
Thread 1 advanced to log sequence 1062 (LGWR switch)
Current log# 3 seq# 1062 mem# 0: E:\ORACLE\PRODUCT\10.2.0\ORADATA\UMIS\REDO03.LOG
Mon Jun 24 10:08:31 2013
Error 12514 received logging on to the standby
LGWR: Error 12514 creating archivelog file '(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=WIN-7VSLKL4CGU2)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=umisbk_XPT)(INSTANCE_NAME=umisbk)(SERVER=dedicated)))'
Mon Jun 24 10:08:31 2013
Errors in file e:\oracle\product\10.2.0\admin\umis\bdump\umis_lns1_4204.trc:
ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
LNS: Failed to archive log 3 thread 1 sequence 1062 (12514)
Mon Jun 24 10:08:59 2013
Error 12514 received logging on to the standby
Mon Jun 24 10:08:59 2013
Errors in file e:\oracle\product\10.2.0\admin\umis\bdump\umis_arc1_3808.trc:
ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
FAL[server, ARC1]: Error 12514 creating remote archivelog file '(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=WIN-7VSLKL4CGU2)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=umisbk_XPT)(INSTANCE_NAME=umisbk)(SERVER=dedicated)))'
FAL[server, ARC1]: FAL archive failed, see trace file.
Mon Jun 24 10:08:59 2013
Errors in file e:\oracle\product\10.2.0\admin\umis\bdump\umis_arc1_3808.trc:
ORA-16055: FAL request rejected
ARCH: FAL archive failed. Archiver continuing
Mon Jun 24 10:14:57 2013
Error 12514 received logging on to the standby
Mon Jun 24 10:14:57 2013
Errors in file e:\oracle\product\10.2.0\admin\umis\bdump\umis_arc1_3808.trc:
ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
PING[ARC1]: Heartbeat failed to connect to standby '(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=WIN-7VSLKL4CGU2)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=umisbk_XPT)(INSTANCE_NAME=umisbk)(SERVER=dedicated)))'. Error is 12514.
Mon Jun 24 10:18:46 2013
Redo Shipping Client Connected as PUBLIC
-- Connected User is Valid
Redo Shipping Client Connected as PUBLIC
-- Connected User is Valid
Mon Jun 24 10:19:23 2013
ALTER SYSTEM SET log_archive_dest_2='service="(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=WIN-7VSLKL4CGU2)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=umisbk_XPT)(INSTANCE_NAME=umisbk)(SERVER=dedicated)))"',' LGWR ASYNC NOAFFIRM delay=0 OPTIONAL max_failure=0 max_connections=1 reopen=300 db_unique_name="umisbk" register net_timeout=180 valid_for=(online_logfile,primary_role)' SCOPE=BOTH;
Mon Jun 24 10:19:23 2013
ALTER SYSTEM SET log_archive_dest_state_2='ENABLE' SCOPE=BOTH;
Mon Jun 24 10:19:23 2013
ALTER SYSTEM ARCHIVE LOG
Mon Jun 24 10:19:24 2013
Thread 1 cannot allocate new log, sequence 1063
Private strand flush not complete
Current log# 3 seq# 1062 mem# 0: E:\ORACLE\PRODUCT\10.2.0\ORADATA\UMIS\REDO03.LOG
LNS1 started with pid=18, OS id=4300
Mon Jun 24 10:19:28 2013
Thread 1 advanced to log sequence 1063 (LGWR switch)
Current log# 1 seq# 1063 mem# 0: E:\ORACLE\PRODUCT\10.2.0\ORADATA\UMIS\REDO01.LOG
Mon Jun 24 10:19:28 2013
LNS: Standby redo logfile selected for thread 1 sequence 1063 for destination LOG_ARCHIVE_DEST_2
Mon Jun 24 10:19:58 2013
ARC1: Standby redo logfile selected for thread 1 sequence 1062 for destination LOG_ARCHIVE_DEST_2
Well there seems to be some connectivity issue on Primary DB (I Guess!!!).
But when I issue tnsping from Primary Database, the result is
SQL> host tnsping umisbk (Standy DB Name) ---> Status: OK [10-30msec]
And when I issue tnsping from Standby Database, the result is
SQL> host tnsping umis (Primary DB Name) ---> Status: OK [10-30msec]
So what your Recommendation.
Kind Regards
Thuhnder2777 -
Hi!
I have a few java apps and need to implements some common logging functionallities, I need all the applications to log to the same destination and save the info fo monitoring/analysys
I considered using Log4j and Apache commons logging, but I need to be able to pass the name of the aplication as a parameter to the logging device so that you can easily track the origin. Some other parameters are required as well such as user, timestamp, etc...
Which is the best way to go?
Thanks,
Iggywell, of course every appllication will/could have
it's own log file but for ease of maintenance we need
a single place where to save the informationThat is a bad idea, you do know that your logging statements might be interleaved in the file? E.g first you get a few characters from one statement (application) and then a few characters from another statement.
You do instead have to have a logging server and let the applications log to that server (using tcp or udp). The server should then write to the log file.
Kaj
Message was edited by:
kajbj -
Archive Libraries - Best Practices?
Trying to figure out how I want to archive Libraries that I am not currently working on to save HD space.
I currently copy the Events in a Library to a new Library titled "XXX Library Archive", and elect not to include render files or optimized media to cut down on file size.
I'm wondering if it's best to simply store that Library on an external hard drive as is, or maybe to create a Disk Image and copy it to that for storage. Are there any benefits to this in terms of file size or stability of storage?
I suppose another option would be to burn that Library (or Disk Image) to DVD instead of having it on an external drive that could crash/become corrupted inthe future.
What do others do with Libraries they are no longer working with, but want to be able to access later?What you're doing good to me. I'd just add Connsolidta eEvent Files to round up any strays.
Speaking only for myself, I typically put my arcjived projects and /or libraries on hard drives. They don't need to ve expensive drives. I con't use optical media to archive these days.
Russ -
Weblogic 8.1 Logging Best Practices?
I have an application that uses WLI. We have a set of interfaces and we would like each interface to output to its own Log File. In case you want to know how we define an interface basically an interface is a 1 to 1 relationship to a jpd file. I am really looking for the best way to implement this that will be easiest to scale. Thanks for any help you can provide. Any code examples would be very helpful!!!
Message was edited by manderj at Dec 6, 2004 5:35 AMDoes anyone see a value in the logging APIs supporting this more performant logging style?
curt
public class Myclass
// class level shared object instead of new'ed for each method call.
static protected NonCatalogLogger myLogger = new NonCatalogLogger("MyApplication");
public void myMethod() {
If (mylogger.isInfoLevel()) // needed method !!
// The expense of String creation and other expensive operations are prevented!!!!
mylogger.info("Application started. Foo="+foo.getExpensiveOperation());
} -
Where all the redo/archive log volume come from?
Hi,
I have a database with a size of around 50G. Thats not very much, but the crazy thing is that this database has a redo log volume per day that is nearly equal the size of the database:
-- Daily View
SQL> SELECT TRUNC(completion_time) AS time, ROUND(SUM(blocks * block_size)/1024/1024,2) AS size_mb, ROUND(SUM(blocks * block_size)/1024/1024/1024,2) AS size_gb FROM v$archived_log GROUP BY TRUNC(completion_time) ORDER BY 1 DESC;
TIME SIZE_MB SIZE_GB
2013-02-03 49599.7 48.44
2013-02-02 50104.63 48.93
2013-02-01 54466.36 53.19
2013-01-31 52935.41 51.69
2013-01-30 51596.85 50.39
-- Hourly View
SQL> SELECT TRUNC(completion_time,'HH24') AS time, ROUND(SUM(blocks * block_size)/1024/1024,2) AS size_mb, ROUND(SUM(blocks * block_size)/1024/1024/1024,2) AS size_gb FROM v$archived_log GROUP BY TRUNC(completion_time,'HH24') ORDER BY 1 DESC;
TIME SIZE_MB SIZE_GB
2013-02-03 23 160.68 .16
2013-02-03 22 163.73 .16
2013-02-03 21 195.65 .19
2013-02-03 20 4492.44 4.39
2013-02-03 19 176.3 .17
2013-02-03 18 4259.8 4.16
2013-02-03 17 226.99 .22
2013-02-03 16 5465.64 5.34
2013-02-03 15 166.47 .16
2013-02-03 14 165.05 .16
2013-02-03 13 253.33 .25
2013-02-03 12 9568.93 9.34
2013-02-03 11 391.14 .38
2013-02-03 10 9585.36 9.36
2013-02-03 09 160.02 .16
2013-02-03 08 200.1 .2
2013-02-03 07 166.66 .16
2013-02-03 06 267.45 .26
2013-02-03 05 309.26 .3
2013-02-03 04 1486.87 1.45
2013-02-03 03 11106.77 10.85
2013-02-03 02 318.1 .31
2013-02-03 01 147.47 .14
2013-02-03 00 165.47 .16
2013-02-02 23 160.17 .16
2013-02-02 22 159.25 .16
2013-02-02 21 205.9 .2
2013-02-02 20 4473.27 4.37
2013-02-02 19 124.64 .12
2013-02-02 18 4364.69 4.26
2013-02-02 17 295.02 .29
2013-02-02 16 5415.06 5.29
2013-02-02 15 166.22 .16
2013-02-02 14 166.83 .16
2013-02-02 13 84.62 .08
2013-02-02 12 9905.55 9.67
2013-02-02 11 418.31 .41
2013-02-02 10 9548.78 9.32
2013-02-02 09 166.51 .16
2013-02-02 08 204.88 .2
2013-02-02 07 167.37 .16I know that every database change produces redo, but why that much?
Is there a way to investigate further where all the redo information comes from?
Every 2 hours redo is backed up to tape.
There are no significant batches, shaking and shuffling the data around all the time.
Nearly all changes in this database is happening through user inputs.
Database is 11gR2 on Redhat 5.6.
Thanks
941743
Edited by: 941743 on 04.02.2013 15:32
Edited by: 941743 on 04.02.2013 15:33I am afraid there is no easy and direct way to pull the answer from the data dictionary.
But with some work, you can get to the bottom of this.
This query shows you how much redo is used by the sessions in your system currently:
select a.sid , a.value from v$sesstat a, v$statname b
where a.statistic# = b.statistic#
and b.name = 'redo size'Unfortunately, I am not aware of a AWR view (license required!) that corresponds to v$sesstat, so it would not be easy to look back and see which session generated the redo.
One way is to troubleshoot the problem online, using a utility such as snapper- http://blog.tanelpoder.com/2010/03/22/oracle-session-snapper-v3-10/ . See which sessions generate most redo and see what SQL they are running at that time.
The other way is to create your own “repository”. Sample V$SESSION, v$sesstat , v$statname and possibly V$SQL frequently (every few seconds) and record how much redo and what SQLs are running by each session. Once you gather enough data, look which sessions had the biggest “redo size” delta and what SQL were they running at that time.
Iordan Iotzov
http://iiotzov.wordpress.com/ -
OVM 3.0 Database Creating Lots of Archive Logs
Greetings - ever since we initially installed OVM 3.0 earlier this fall (~October), the OVM database has generated archive logs at a very rapid rate. It continually threatens to fill up our 16 GB filesystem dedicated to archive logs, even after daily backup and purging.
Our OVM database itself is about 4-6 GB large, and we would need to increase the archive log filesystem to about 20-25 GB in size, which we see as unreasonable for such a small database.
What is causing OVM to generate so many redo logs? Our best guess is that OVM is continuously gathering guest VM CPU usage on each physical server.
Is there a way to configure the OVM application in order to reduce the amount of redo/archive logs being created?
We are currently running 3.0.3, having upgraded each time a 3.0.* patch was released. OVMM running on OEL 6.1, database running on latest HP-UX.majedian21 wrote:
Greetings - ever since we initially installed OVM 3.0 earlier this fall (~October), the OVM database has generated archive logs at a very rapid rate. It continually threatens to fill up our 16 GB filesystem dedicated to archive logs, even after daily backup and purging.I would log an SR with Oracle Support for this, so that Development can look at it. Sounds like your environment has lots of VMs running and yes, collecting usage stats for all of those environments. However, there may be some old data from the previous versions that's causing more stats to be collected than necessary. -
Request info on Archive log mode Best Practices
Hi,
Could anyone from their personal experience share with me the Best Practices for maintaining Archiving on any version of oracle. Please tell me
1) Whether to place archives and log files on same disks?
2) How many lgwr processes to use.
3) checkpoint frequency.
4) How to maintain speed of the server being run in archivelog mode.
5) Errors to look.
Thanks,1. Use separate mount point for archive logs like /archv
2. Start using with 1 and check the performance.
3. This is depends upon the redo log file size. Create your redo log file such that hourly maximum 5-8 log switch will happen. Try to make it less than 5 log switch per hour.
4. Check the redo log file size.
5. Check for archive log mount point space allocation. Take the backup of archive by RMAN and deleted the backed up archive logs from the archived destination.
Regards
Asif Kabir -
Best practice - online redo logs and virtualization
I have a 10.1.0.4 instance (soon to be migrated to 11gr2) running under Windows Server 2003.
We use a non-standard disk distribution scheme -
on the c: drive we have oracle_home as well as directories for control files and online redo logs.
on the d: drive we have datafiles
on the e: drive we have archive log files and another directory with online redo logs and another copy of control file
my question is this:
is it smart practice to have ANY online redo logs or control file on the same spindle with archive logs?
Our setup works fairly well but we are in the process of migrating the instance first to ESX server and SAN and then secondly to 11gtr2 64bit under server 2008 64 and when we bring up our instance on the VM for testing we find that benchmarking the ESX server (dual Xeon 3.4ghz with 48gb RAM running against FalconStor NSS SAN with 15k SAS disks over iSCSI) against the production physical server (dual Xeon 2.0ghz with 4gb RAM using direct attached SATA 7200rpm drives) we find that some processes run faster on the ESX box and some run 40-100% slower. Running Statspack seems to identify lots of physical read waits as well as some waits for redo and controlfiles.
Is it possible that in addition to any overhead introduced by ESX and iSCSI (we are running Jumbo Frames over 1gb) we may have contention because the archive logs are on the same "spindle" (virtual) as the online redo and control files?
We're looking at multiple avenues to bring the 2 servers in line from a performance standpoint - db configuration, memory allocation, possible move to 10gb network, possible move to SSD storage tray, possible application rewrites. But from the simplest low hanging fruit idea, if these files should not be on the same spindle thats an easy change to make and possibly eke out an improvement.
Ideas?
MikeHi,
"Old" Oracle standard is to use as many spindles as possible.
It looks to me, you have only 1 disk with several partitions on it ??
In my honest opinion you should anyway start by physically seperating OS from Oracle, so let the C: drive to the Windows OS
Take another physical seperate D: drive to install you application.
Use yet another set of physical drives, preferably in RAID10 setup, for your database and redo logs
And finally yet another disk for the archive logs.
We have recently configured a Windows 2008 server with an 11G Db, which pretty much follows the above setup.
All non RAID10 disks are RAID1 ( mirror ) and we even have some SSD's for hot tables and redo-logs.
The machine, or must I say the database, operates like a high speed train, very, very fast.
Ofcourse keep in mind the number of cores ( not only for licensing ) and the amount of memory.
Try to prevent the system from swapping, because that is a performance killer!
Edit: And even if you put a virtual layer in between, try to seperate the virtual disks as much as possible over physical disks
Success!
FJFranken
Edited by: fjfranken on 7-okt-2011 7:19
Maybe you are looking for
-
ITunes Movies Section Won't Open
When I click on Movies, so I can view what all I have in the library, the button merely gets pressed down, then stays on Music or whatever menu I happen to be on already. If I click View, Movies, the same thing happens. I can play all the movies th
-
HELP me for Enemy Movement !!!
Hi guys, I've created Random movement for my enemies on a tilemap. Now I want that some enemies can "see" the player and therefore follow it. For this reason I make a straight line from my enemy to my player. The line can hits obstacles (blocked tile
-
Classic iPod movie to my HD TV
Can I view my new "classic" iPod downloaded movies on my HD TV?
-
What is the use of points earned in apple support communities??
what is the use of points earned in apple support communities??
-
SA520 NAT/PAT not working with NAT address
The SA520 I have is configured on one public IP address and an exchange server is behind it. THe exchange server is configured with an internal address and the SA520 is performing NAT translation to a unique public address for the email server itsel