Database 'Servername' is low on log volume space. 'DBname' is low on log volume space.
Hello Everyone,
I have Exchange 2013 up and running with some users on working with no issues. However, I keep receiving these alerts from SCOM 2012. I also see the below Event in the Monitoring logs.
I have attempted to run the following cmdlets but I have seen no change.
How can I change the threshold of this alert? I read some places to change in SCOM and others in Exchange. I have no success.
Attempted Overrides:
Add-ServerMonitoringOverride
-ItemType Monitor –Server mbx01 -Identity
dataprotection\lowlogvolumespacemonitor\E: -PropertyName MonitoringThreshold
-PropertyValue 50000 -ApplyVersion 15.0.913.22
Add-ServerMonitoringOverride
-ItemType Monitor –Server mbx01 -Identity
diskspace\lowlogvolumespacemonitor\E: -PropertyName MonitoringThreshold
-PropertyValue 50000 -ApplyVersion 15.0.913.22
Alerts:
SCOM Email
Alert: Health Set unhealthy
Source: MBX03 - DiskSpace
Path: MBX03.domain.local;MBX03.domain.local
Last modified by: System
Last modified time: 10/24/2014 11:06:59 AM Alert description: Database 'MBX03-DB1' is low on log volume space. 'MBX03-DB1' is low on log volume space. Current=150.53 GB, Threshold=195.31 GB
Event log alert:
Database 'MBX01-DB3' is low on log volume space. 'MBX01-DB3' is low on log volume space. Current=161.68 GB, Threshold=195.31 GB
Thanks for any information,
Ian...
Hi,
I searched and found that the issue is happening because we have a hard coded limit of 195.31GB for log drive space. If there isn’t that much free, the this error happens.
To work around this issue, you can modify the value of a registry key entry by changing the default threshold from 195.31GB to 50GB. It appears to be system defined that we can only change with a registry key entry.
HKLM\Software\Microsoft\ExchangeServer\v15\Replay\Parameters\SpaceMonitorLowSpaceThresholdInMB
REG_DWORD c350 (50000)
In order for this to take effect, a restart of the server is needed.
Best regards,
If you have feedback for TechNet Subscriber Support, contact
[email protected]
Belinda Ma
TechNet Community Support
Similar Messages
-
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. -
Database large Number of archive log
Oracle 11g
window server 2008 R2
My database working fine, from last week i have noticed that database generating large no of archive log.
Database size is 30GB
Only one table space is 16GB , other tablespaces not more 2 GB.
I can not figured out why it generating large no. of archive log. can any one help me to figure out.
previous week i have only did these changes
Drop index
create index
create new table from existing table.
nothing else i did.Hi
As you say workload increases. See when the number of log switches goes high and take an AWR report or statspack report. Check the DML operations. Use below query to chk the log switches
spool c:\log_hist.txt
SET PAGESIZE 90
SET LINESIZE 150
set heading on
column "00:00" format 9999
column "01:00" format 9999
column "02:00" format 9999
column "03:00" format 9999
column "04:00" format 9999
column "05:00" format 9999
column "06:00" format 9999
column "07:00" format 9999
column "08:00" format 9999
column "09:00" format 9999
column "10:00" format 9999
column "11:00" format 9999
column "12:00" format 9999
column "13:00" format 9999
column "14:00" format 9999
column "15:00" format 9999
column "16:00" format 9999
column "17:00" format 9999
column "18:00" format 9999
column "19:00" format 9999
column "20:00" format 9999
column "21:00" format 9999
column "22:00" format 9999
column "23:00" format 9999
SELECT * FROM (
SELECT * FROM (
SELECT TO_CHAR(FIRST_TIME, 'DD/MM') AS "DAY"
, SUM(TO_NUMBER(DECODE(TO_CHAR(FIRST_TIME, 'HH24'), '00', 1, 0), '99')) "00:00"
, SUM(TO_NUMBER(DECODE(TO_CHAR(FIRST_TIME, 'HH24'), '01', 1, 0), '99')) "01:00"
, SUM(TO_NUMBER(DECODE(TO_CHAR(FIRST_TIME, 'HH24'), '02', 1, 0), '99')) "02:00"
, SUM(TO_NUMBER(DECODE(TO_CHAR(FIRST_TIME, 'HH24'), '03', 1, 0), '99')) "03:00"
, SUM(TO_NUMBER(DECODE(TO_CHAR(FIRST_TIME, 'HH24'), '04', 1, 0), '99')) "04:00"
, SUM(TO_NUMBER(DECODE(TO_CHAR(FIRST_TIME, 'HH24'), '05', 1, 0), '99')) "05:00"
, SUM(TO_NUMBER(DECODE(TO_CHAR(FIRST_TIME, 'HH24'), '06', 1, 0), '99')) "06:00"
, SUM(TO_NUMBER(DECODE(TO_CHAR(FIRST_TIME, 'HH24'), '07', 1, 0), '99')) "07:00"
, SUM(TO_NUMBER(DECODE(TO_CHAR(FIRST_TIME, 'HH24'), '08', 1, 0), '99')) "08:00"
, SUM(TO_NUMBER(DECODE(TO_CHAR(FIRST_TIME, 'HH24'), '09', 1, 0), '99')) "09:00"
, SUM(TO_NUMBER(DECODE(TO_CHAR(FIRST_TIME, 'HH24'), '10', 1, 0), '99')) "10:00"
, SUM(TO_NUMBER(DECODE(TO_CHAR(FIRST_TIME, 'HH24'), '11', 1, 0), '99')) "11:00"
, SUM(TO_NUMBER(DECODE(TO_CHAR(FIRST_TIME, 'HH24'), '12', 1, 0), '99')) "12:00"
, SUM(TO_NUMBER(DECODE(TO_CHAR(FIRST_TIME, 'HH24'), '13', 1, 0), '99')) "13:00"
, SUM(TO_NUMBER(DECODE(TO_CHAR(FIRST_TIME, 'HH24'), '14', 1, 0), '99')) "14:00"
, SUM(TO_NUMBER(DECODE(TO_CHAR(FIRST_TIME, 'HH24'), '15', 1, 0), '99')) "15:00"
, SUM(TO_NUMBER(DECODE(TO_CHAR(FIRST_TIME, 'HH24'), '16', 1, 0), '99')) "16:00"
, SUM(TO_NUMBER(DECODE(TO_CHAR(FIRST_TIME, 'HH24'), '17', 1, 0), '99')) "17:00"
, SUM(TO_NUMBER(DECODE(TO_CHAR(FIRST_TIME, 'HH24'), '18', 1, 0), '99')) "18:00"
, SUM(TO_NUMBER(DECODE(TO_CHAR(FIRST_TIME, 'HH24'), '19', 1, 0), '99')) "19:00"
, SUM(TO_NUMBER(DECODE(TO_CHAR(FIRST_TIME, 'HH24'), '20', 1, 0), '99')) "20:00"
, SUM(TO_NUMBER(DECODE(TO_CHAR(FIRST_TIME, 'HH24'), '21', 1, 0), '99')) "21:00"
, SUM(TO_NUMBER(DECODE(TO_CHAR(FIRST_TIME, 'HH24'), '22', 1, 0), '99')) "22:00"
, SUM(TO_NUMBER(DECODE(TO_CHAR(FIRST_TIME, 'HH24'), '23', 1, 0), '99')) "23:00"
FROM V$LOG_HISTORY
WHERE extract(year FROM FIRST_TIME) = extract(year FROM sysdate)
GROUP BY TO_CHAR(FIRST_TIME, 'DD/MM')
) ORDER BY TO_DATE(extract(year FROM sysdate) || DAY, 'YYYY DD/MM') DESC
) WHERE ROWNUM <8;
spool off
One common mistake is enabling debugging. You can check in application code if any debugging is enabled. (insert every records for logging or support purpose)
Regards
Anand. -
1013108 Set Currency Database [%s] failed: see server log file
Hello all,
we are faced to a problem when runing a daily export scripts, the script run in the following error in the application log:
"The tagged TIME member [Q4.08] does not exist in Currency Database [CUREISRI]"
"Set Currency Database [CUREISRI] failed: see server log file"
in the server log we cann see the following messages:
Set Currency Database [CUREISRI] failed: see server log file
Cannot load application EIS_RI with error number [1013108] - see server log file
Network error [32]: Cannot Send Data
- This version of Essbase (65400)
i'm newbie to essbase and i don't found any info about the above error neither in the Internet nor in the oracle essbase documentation.
thanks in advance for your help.
Best Regards
Mohammed, Kaibouss
mailto:[email protected]So.... I've never used the Currency stuff before... but -- should the Q4.08 member exist in that database? As far as I can see that seems to be crux of the issue.
-
Database error found in SM21 logs
Hi,
we are facing problem with too many system logs as :
Database error: TemSe->RTAB-S/G(8)->1 for table TCPSBUILD key.
Found no information on google. If anyone might have come accross this problem or know the solution plz reply..
00:17:39 DIA 000 F6H Database error: TemSe->RTAB-S/G(8)->1 for table TCPSBUI
Program name........
Problem class....... K SAP Web AS Problem
Development class... STMS
Further details for this message type
Module name......... rscpgdio
Location............ 15
Error text.......... RTAB-S/G&8&1&TCPSBUILD &
Documentation for system log message F6 H :
Database error: TemSe->&A(&B)->&C for table &D key &a
! ! ! Table name
! ! Error number
! Function number
Database access module
Possible database access modules
RTAB
Direct access with entire or partial primary key
XRTAB
direct access with entire or partial primary key for all clients
INCLUDE 'RSTS_RTAB_FUNCTIONS' OBJECT DOKU ID TX
INCLUDE 'RSTS_RTAB_ERRORS' OBJECT DOKU ID TX
INCLUDE 'RSTS_TABLES' OBJECT DOKU ID TX
Thanks in advance.
TysonHello,
Please make sure you use the latest kernel and dbsl. ( see note 19466 to download the latest)
Do you have any database errors in alert<SID>.log
($oraclehome\saptrace\background), listener.log ($oraclehome\network\log) and sqlnet.log? -
Standby database is not applying redo logs due to missing archive log
We use 9.2.0.7 Oracle Database. My goal is to create a physical standby database.
I have followed all the steps necessary to fulfill this in Oracle Data Guard Concepts and Administration manual. Archived redo logs are transmitted from primary to standby database regularly. But the logs are not applied due to archive log gap.
SQL> select process, status from v$managed_standby;
PROCESS STATUS
ARCH CONNECTED
ARCH CONNECTED
MRP0 WAIT_FOR_GAP
RFS RECEIVING
RFS ATTACHED
SQL> select * from v$archive_gap;
THREAD# LOW_SEQUENCE# HIGH_SEQUENCE#
1 503 677
I have tried to find the missing archives on the primary database, but was unable to. They have been deleted (somehow) regularly by the existing backup policy on the primary database. I have looked up the backups, but these archive logs are too old to be in the backup. Backup retention policy is 1 redundant backup of each file. I didn't save older backups as I didn't really need them from up to this point.
I have cross checked (using rman crosscheck) the archive log copies on the primary database and deleted the "obsolete" copies of archive logs. But, v$archived_log view on the primary database only marked those entries as "deleted". Unfortunately, the standby database is still waiting for those logs to "close the gap" and doesn't apply the redo logs at all. I am reluctant to recreate the control file on the primary database as I'm afraid this occurred through the regular database backup operations, due to current backup retention policy and it probably might happen again.
The standby creation procedure was done by using the data files from 3 days ago. The archive logs which are "producing the gap" are older than a month, and are probably unneeded for standby recovery.
What shall I do?
Kind regards and thanks in advance,
MilivojOn a physical standby database
To determine if there is an archive gap on your physical standby database, query the V$ARCHIVE_GAP view as shown in the following example:
SQL> SELECT * FROM V$ARCHIVE_GAP;
THREAD# LOW_SEQUENCE# HIGH_SEQUENCE#
1 7 10
The output from the previous example indicates your physical standby database is currently missing log files from sequence 7 to sequence 10 for thread 1.
After you identify the gap, issue the following SQL statement on the primary database to locate the archived redo log files on your primary
database (assuming the local archive destination on the primary database is LOG_ARCHIVE_DEST_1):
SQL> SELECT NAME FROM V$ARCHIVED_LOG WHERE THREAD#=1 AND DEST_ID=1 AND 2> SEQUENCE# BETWEEN 7 AND 10;
NAME
/primary/thread1_dest/arcr_1_7.arc /primary/thread1_dest/arcr_1_8.arc /primary/thread1_dest/arcr_1_9.arc
Copy these log files to your physical standby database and register them using the ALTER DATABASE REGISTER LOGFILE statement on your physical standby database. For example:
SQL> ALTER DATABASE REGISTER LOGFILE
'/physical_standby1/thread1_dest/arcr_1_7.arc';
SQL> ALTER DATABASE REGISTER LOGFILE
'/physical_standby1/thread1_dest/arcr_1_8.arc';
After you register these log files on the physical standby database, you can restart Redo Apply.
Note:
The V$ARCHIVE_GAP fixed view on a physical standby database only returns the next gap that is currently blocking Redo Apply from continuing. After resolving the gap and starting Redo Apply, query the V$ARCHIVE_GAP fixed view again on the physical standby database to determine the next gap sequence, if there is one. Repeat this process until there are no more gaps.
Restoring the archived logs from the backup set
If the archived logs are not available in the archive destination then at that time we need to restore the required archived logs from the backup step. This task is accomplished in the following way.
To restore range specified archived logs:
Run {
Set archivelog destination to '/oracle/arch/arch_restore'
Restore archivelog from logseq=<xxxxx> until logseq=<xxxxxxx>
To restore all the archived logs:
Run {
Set archivelog destination to '/oracle/arch/arch_restore';
Restore archivelog all;
} -
Error connecting to planning database:Unsuccessful logon. Check log for det
Hello,
I am getting the following error which I am trying to connect to planning app data source for reports from workspace.
planning version is 9.3.1
can anyone suggest resolution for this?
Thanks
Hemanth
03-14 13:40:41 ERROR HrDsManagerBean com.hyperion.reporting.util.HyperionReportException: Error connecting to database connection PLN: Unsuccessful logon. Check log for details.com.hyperion.planning.HspException
at com.hyperion.reporting.connection.UserConnection.openConnection(Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;)Lcom.hyperion.ap.IAPDomain;(Unknown Source)
at com.hyperion.reporting.connection.UserConnection.openConnection()Lcom.hyperion.ap.IAPDomain;(Unknown Source)
at com.hyperion.reporting.connection.UserConnection.<init>(Ljava.lang.String;Lcom.hyperion.reporting.security.IHsSession;Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;ILjava.lang.String;Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;Z)V(Unknown Source)
at com.hyperion.reporting.connection.ConnectionManager.getConnection(Lcom.hyperion.reporting.security.IHsSession;Lcom.hyperion.reporting.datasource.IHrDatasource;)Lcom.hyperion.reporting.connection.UserConnection;(Unknown Source)
at com.hyperion.reporting.connection.ConnectionManager.getCube(Lcom.hyperion.reporting.security.IHsSession;Lcom.hyperion.reporting.datasource.IHrDatasource;Ljava.lang.String;)Lcom.hyperion.ap.IAPMdCube;(Unknown Source)
at com.hyperion.reporting.connection.ConnectionManager.getCube(Lcom.hyperion.reporting.security.IHsSession;Ljava.lang.String;)Lcom.hyperion.ap.IAPMdCube;(Unknown Source)
at com.hyperion.reporting.datasource.HrDsManagerBean.validateDatasource(Lcom.hyperion.reporting.datasource.IHrDatasource;)V(Unknown Source)
at com.hyperion.reporting.datasource.HrDsManagerBean.doAddNew()Ljava.lang.String;(Unknown Source)
at com.hyperion.reporting.datasource.HrDsManagerBean.process()Ljava.lang.String;(Unknown Source)
at jsp_servlet._modules._com._hyperion._reporting._web._common.__hrdslogonfns._jspService(__hrdslogonfns.java:1470)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:272)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at com.hyperion.reporting.webviewer.HRSecurePagesFilter.doFilter(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Ljavax.servlet.FilterChain;)V(Unknown Source)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at com.hyperion.reporting.webviewer.HRLocaleFilter.doFilter(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Ljavax.servlet.FilterChain;)V(Unknown Source)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3151)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1973)Database is up. All the services are running fine.
There are not changes in Servernames.
This error is occuring in all the environments. Dev, QA and Prod. -
Tracking oracle database activities in security/system logs of windows server
Can database activity like create or drop tables and packages be tracked in the security/system logs of windows 2003 server for the oracle database 10.2.0.4?
Can purging of oracle log, n case the file has become big or even tempered be tracked in the security/system logs of windows 2003 server for the oracle database 10.2.0.4?
dhomyaHi Dhomya,
I am not familiar with Oracle database, though you may try to enable file system auditing:
Audit object access
https://technet.microsoft.com/en-us/library/cc776774(v=ws.10).aspx
Apply or modify auditing policy settings for an object using Group Policy
https://technet.microsoft.com/en-us/library/cc757864(v=ws.10).aspx
Best Regards,
Amy
Please remember to mark the replies as answers if they help and un-mark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected] -
When i try to install Oracle XE 64bit 11g on a windows 7, the installation ends correctly, but no database is created (no datafiles) and in the log file I find :
Oracle Database 11g Clusterware Release 11.2.0.2.0 - Production Copyright 1996, 2010 Oracle. All rights reserved.
2015-03-24 15:24:14.733: [ default][3316]ut_read_reg:2:ocr registry key SOFTWARE\Oracle\olr cannot be opened. error 2
[ CLSE][3316]clse_get_crs_home: Error retrieving OLR configuration [0] [Error opening olr registry key. Le fichier spécifié est introuvable.
What's the problem?Oracle XE 64bit 11g on a windows 7
Which edition ? -
Restored standby database from primary; now no logs are shipped
Hi
We recently had a major network/SAN issue and had to restore our standby database from a backup of the primary. To do this, we restored the database to the standby, created a standby controlfile on the primary, copied this across to the control file locations and started in standby recover and applied the logs manually/registered to get it back up to speed.
However, no new logs are being shipped across from the primary.
Have we missed a step somewhere?
One thing we've noticed is that there is no RFS process running on the standby:
SQL> SELECT PROCESS, CLIENT_PROCESS, SEQUENCE#, STATUS FROM V$MANAGED_STANDBY;
PROCESS CLIENT_P SEQUENCE# STATUS
ARCH ARCH 0 CONNECTED
ARCH ARCH 0 CONNECTED
MRP0 N/A 100057 WAIT_FOR_LOG
How do we start this? Or will it only show if the arc1 process on the primary is sending files?
The arc1 process is showing at OS level on the primary but I'm wondering if its faulty somehow?
There are NO errors in the alert logs in the primary or the standby. There's not even the normal FAL gap sequence type error - in the standby it's just saying 'waiting for log' and a number from ages ago. It's like the primary isn't even talking to the standby. The listener is up and running ok though...
What else can we check/do?
If we manually copy across files and do an 'alter database register' then they are applied to the standby without issue; there's just no automatic log shipping going on...
Thanks
RossHi all
Many thanks for all the responses.
The database is 10.2.0.2.0, on AIX 6.
I believe the password files are ok; we've had issues previously and this is always flagged in the alert log on the primary - not the case here.
Not set to DEFER on primary; log_archive_dest_2 is set to service="STBY_PHP" optional delay=720 reopen=30 and log_archive_dest_state_2 is set to ENABLE.
I ran those troubleshooting scripts, info from standby:
SQL> @troubleshoot
NAME DISPLAY_VALUE
db_file_name_convert
db_name PHP
db_unique_name PHP
dg_broker_config_file1 /oracle/PHP/102_64/dbs/dr1PHP.dat
dg_broker_config_file2 /oracle/PHP/102_64/dbs/dr2PHP.dat
dg_broker_start FALSE
fal_client STBY_PHP
fal_server PHP
local_listener
log_archive_config
log_archive_dest_2 service=STBY_PHP optional delay=30 reopen=30
log_archive_dest_state_2 DEFER
log_archive_max_processes 2
log_file_name_convert
remote_login_passwordfile EXCLUSIVE
standby_archive_dest /oracle/PHP/oraarch/PHParch
standby_file_management AUTO
NAME DB_UNIQUE_NAME PROTECTION_MODE DATABASE_R OPEN_MODE
PHP PHP MAXIMUM PERFORM PHYSICAL S MOUNTED
ANCE TANDBY
THREAD# MAX(SEQUENCE#)
1 100149
PROCESS STATUS THREAD# SEQUENCE#
ARCH CONNECTED 0 0
ARCH CONNECTED 0 0
MRP0 WAIT_FOR_LOG 1 100150
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 8 second
standby has been open N
transport lag day(2) to second(0) interval
NAME Size MB Used MB
0 0
On the primary, the script has froze!! How long should it take? Got as far as this:
SQL> @troubleshoot
NAME DISPLAY_VALUE
db_file_name_convert
db_name PHP
db_unique_name PHP
dg_broker_config_file1 /oracle/PHP/102_64/dbs/dr1PHP.dat
dg_broker_config_file2 /oracle/PHP/102_64/dbs/dr2PHP.dat
dg_broker_start FALSE
fal_client STBY_R1P
fal_server R1P
local_listener
log_archive_config
log_archive_dest_2 service="STBY_PHP" optional delay=720 reopen=30
log_archive_dest_state_2 ENABLE
log_archive_max_processes 2
log_file_name_convert
remote_login_passwordfile EXCLUSIVE
standby_archive_dest /oracle/PHP/oraarch/PHParch
standby_file_management AUTO
NAME DB_UNIQUE_NAME PROTECTION_MODE DATABASE_R OPEN_MODE SWITCHOVER_STATUS
PHP PHP MAXIMUM PERFORMANCE PRIMARY READ WRITE SESSIONS ACTIVE
THREAD# MAX(SEQUENCE#)
1 100206
NOW - before you say it - :) - yes, I'm aware that fal_client as STBY_R1P and fal_server as R1P are incorrect - should be PHP - but it looks like it's always been this way! Well, as least for the last 4 years where it's worked fine, as I found an old SP file and it still has R1P set in there...?!?
Any ideas?
Ross -
CREATE DATABASE with data file and log file in query pane
Hi everyone,
After I ran the below code I got the following error message. Can someone help me fix this?
Thanks
CREATE DATABASE project
ON
(Name= 'project_dat',
FILENAME ='C:\project.mdf',
SIZE = 10,
MAXSIZE = 100,
FILEGROWTH = 5)
LOG ON
(NAME = project_log,
FILENAME = 'C:\project.ldf',
SIZE =40,
MAXSIZE = 100,
FILEGROWTH = 10);
Msg 5123, Level 16, State 1, Line 1
CREATE FILE encountered operating system error 5(Access is denied.) while attempting to open or create the physical file 'C:\project.mdf'.
Msg 1802, Level 16, State 4, Line 1
CREATE DATABASE failed. Some file names listed could not be created. Check related errors.
skiloHello ,
Please go through by support site :
Use SQL Server Enterprise Manager
Note The instance of SQL Server Enterprise Manager that is included with SQL Server 7.0 does not support setting the default data directory and the default log directory. However, you can register your instance of SQL Server 7.0 in the instance
of SQL Server Enterprise Manager that is included with SQL Server 2000, and you can then follow these steps to set the default data directory and the default log directory for your instance of SQL Server 7.0.
Click Start, point to Programs, point to
Microsoft SQL Server, and then click Enterprise Manager.
In SQL Server Enterprise Manager, right-click your instance of SQL Server, and then click
Properties.
In the SQL Server Properties (Configure) - <Instance Name> dialog box, click the
Database Settings tab.
In the New database default location section, type a valid folder path in the
Default data directory box and in the Default log directory box.
Click OK.
Stop your instance of SQL Server, and then restart your instance of SQL Server.
Ahsan Kabir Please remember to click Mark as Answer and Vote as Helpful on posts that help you. This can be beneficial to other community members reading the thread. http://www.aktechforum.blogspot.com/ -
Make any database have the ability of logging within 10 seconds
JDBMonitor is an open source project. It allows the developer to add the function of database execution logging to the application. It's so easy to use that the only thing you should do is appending "listenerconfig=/config.xml:url=" to the JDBC connection string of your application,without writing any code.
With JDBMonitor,you can log the database execution in many ways,for example,to console,to file or to remote client through socket.JDBMonitor is extendible,so you can extend it to log the execution in other ways.The only thing you should do is writing a class implements the interface IDBListener.
JDBMonitor is licensed under the terms of the GNU Lesser General Public Licence (LGPL). A copy of the licence is included in the distribution.
Introduction
Almost every large database application includes its own SQL execution logging function,which not only can help the developers to debug,but also can provide information for the DBA(DataBase Administrator).
At the same time,a lot off code likelogger.logSQL(sql) filling in the code.Its drawbacks as follow:
(1) Its difficult to separate this codes from the business code.
(2) It reduces the readability of the code.
(3) It slows down the application.When the logger write the SQL to file or output to console,the programme will wait util the process to finish,I/O operation is time-consuming.
(4) Its not easy to record the execution time span,statement parameters or other information.
(5) Its hard to add log function to an application that cannt be modify(for example,an application that without sourcecode),or hard to add log code(for example,an application that uses ORMapping ).
JDBMonitor is different:
(1) At most,only one line code modifying will be enough.The single code is: Class.forName("com.cownew.JDBMonitor.jdbc.DBDriver") and a single change in JDBC connection String,that is modify it from jdbc:db2://10.74.198.247:50000/appto listenerconfig=config.xml:url= jdbc:db2://10.74.198.247:50000/app. In some case this single code also have no need .for instance,if you use the DataSource of WebLogic ,Tomcat or other Server.
(2) It uses another thread to log the SQL,so it almost doesnt effect on the running speed.
(3) Its highly extendible,so you can extend it to log the execution in other ways.For example,you can write a class to send the SQL statement through Email.
Getting JDBMonitor
The latest stable version of JDBMonitor is available from the JDBMonitor web page:
http://www.cownew.com/JDBMonitor
Using JDBMonitor
1 Drop jdbmonitor.jar to the classpath of your application
2 Make the application load the JDBMonitor JDBC Driver.
This step depends on the way you load the JDBC Driver
(1) if you write code to load the JDBC Driver,for example:
Class.forName(com.microsoft.jdbc.sqlserver.SQLServerDriver);
Connection cn = DriverManager.getConnection( );
In this case,you must modify the Class.forName to load JDBMonitor JDBC Driver(com.cownew.JDBMonitor.jdbc.DBDriver) instead of the original database JDBC driver.
For example:
Class.forName(com.cownew.JDBMonitor.jdbc.DBDriver);
Connection cn = DriverManager.getConnection( );
(2) if you specify the JDBC Driver class in config file,for example,datasource configfile or other file.
Please modify the original database JDBC driver name to com.cownew.JDBMonitor.jdbc.DBDriver
3 Make the JDBMonitor load the original database JDBC driver.
The principle of JDBMonitor is to intercept and capture the SQL statement sending to database JDBC driver,it logs the SQL statement,then redirects the SQL statement to the original JDBC Driver,so JDBMonitor must register the original JDBC Driver to DriverManager first.
The original JDBC Driver is defined at the JdbcDrivers segment of the config file.
<JdbcDrivers>
<JdbcDriver class=" com.mysql.jdbc.Driver"/>
</JdbcDrivers>
4 Appending the JDBMonitor information to the original JDBC connection string.
The only change you should do it to append listenerconfig=<configfilepath>:url= before the original JDBC connection string.
<configfilepath>is path of the confile file, file path below all support:
/com/jdbmonitor/config.xml
com/jdbmonitor/config.xml
c:/ jdbmonitor /config.xml
JDBMoinitor uses getClass().getResourceAsStream to load /com/jdbmonitor/config.xml and com/jdbmonitor/config.xml , and FileInputStream to load c:/ jdbmonitor /config.xml.
5 Specify the DBListener to use:
You can log the SQL execution in different ways,eg, to console,to file ,to remote client or others.
We have developed such DBListeners in common use: FileDBListener, ConsoleDBListener, SocketDBListener、SocketDBListener.You can also develop DBListeners on your demond.
The DBListener is defined at the Listeners segment of the config file:
<Listeners>
<!--ConsoleDBListener no arguments-->
<Listener class="com.cownew.JDBMonitor.listenerImpl.ConsoleDBListener" arg=""/>
<!--the arguments of FileDBListener is the file to log the SQL statement -->
<Listener class="com.cownew.JDBMonitor.listenerImpl.FileDBListener" arg="c:/aaa.txt"/>
<!--the arguments of SocketDBListener is the bound socket port of the listener server -->
<Listener class="com.cownew.JDBMonitor.listenerImpl.SocketDBListener" arg="9527"/>
</Listeners>
Thats all!Start your application.Yeah,SQL statements are logged,we can see them in console,in file,even in remote client monitor.
Examples
mvnforum Example:
You can get mvnforum from http://www.mvnForum.com. The version I use to demo is 1.0.
(1) Open webapp\WEB-INF\classes\ mvncore.xml,re-config it:
Before re-config:
<driver_class_name>com.mysql.jdbc.Driver</driver_class_name>
<database_url>listenerconfig=c:/log/jdbmonitor/config.xml:url= jdbc:mysql://localhost/mvnforum?useUnicode=true&characterEncoding=utf-8</database_url>
After re-config:
<driver_class_name>com.cownew.JDBMonitor.jdbc.DBDriver</driver_class_name>
<database_url>jdbc:mysql://localhost/mvnforum?useUnicode=true&characterEncoding=utf-8</database_url>
(2) create c:/log/jdbmonitor/config.xml.I only wanna log the SQL statement to text file,so I config it as below:
<config>
<Listeners>
<!--the arguments of FileDBListener is the file to log the SQL statement -->
<Listener class="com.cownew.JDBMonitor.listenerImpl.FileDBListener" arg="c:/log.txt"/>
</Listeners>
<JdbcDrivers>
<JdbcDriver class="com.mysql.jdbc.Driver"/>
</JdbcDrivers>
</config>
(3) Drop jdbmonitor.jar to webapp\WEB-INF\lib
(4) Done!
Jive example:
You can get Jive from http://www.jivesoftware.com. The version I use to demo is Jive 2.0 beta.
(1) Open http://localhost:8080/jive/admin/
Fill jdbc with:com.cownew.JDBMonitor.jdbc.DBDriver
Fill server with : c:/log/jdbmonitor/config.xml:url=jdbc:mysql://locahost/jive
(3) Drop jdbmonitor.jar to WEB-INF\lib
(4) create c:/log/jdbmonitor/config.xml as mvnforum Example.
(4) Done!
Code exmple:
Though its not recommended,some application write the JDBC driver class name and JDBC connection string in code.
For example:
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection conn = null;
PreparedStatement ps = null;
try
conn = DriverManager
.getConnection("jdbc:odbc:MQIS");
for (int i = 0; i < 1000; i++)
ps = conn.prepareStatement("update T_Material set fid=fid");
ps.execute();
ps.close();
} finally
(1) Lets recode a little:
Class.forName("com.cownew.JDBMonitor.jdbc.DBDriver");
Connection conn = null;
PreparedStatement ps = null;
try
conn = DriverManager.getConnection("listenerconfig= c:/log/jdbmonitor/config.xml:url=jdbc:odbc:MQIS");
for (int i = 0; i < 1000; i++)
ps = conn.prepareStatement("update T_Material set fid=fid");
ps.execute();
ps.close();
} finally
(2) create c:/log/jdbmonitor/config.xml.I wanna log the SQL statement to text file and log to them to console so that it can help me to debug,so I config it as below:
<config>
<Listeners>
<!--the arguments of FileDBListener is the file to log the SQL statement -->
<Listener class="com.cownew.JDBMonitor.listenerImpl.FileDBListener" arg="c:/log.txt"/>
<!--ConsoleDBListener no arguments-->
<Listener class="com.cownew.JDBMonitor.listenerImpl.ConsoleDBListener" arg=""/>
</Listeners>
<JdbcDrivers>
<JdbcDriver class="com.mysql.jdbc.Driver"/>
</JdbcDrivers>
</config>
(3) Drop j dbmonitor.jar to classpath
(4) Done!
Listener
We have developed such DBListeners in common use: ConsoleDBListener, FileDBListener,SocketDBListener,DataBaseDBListener.
1、ConsoleDBListener
ConsoleDBListener will write SQL Statement to Console.
This Listener is easy to config:
<Listener class="com.cownew.JDBMonitor.listenerImpl.ConsoleDBListener" arg=""/>
2、FileDBListener
FileDBListener will write SQL Statement to textfile:
Config as below:
<Listener class="com.cownew.JDBMonitor.listenerImpl.FileDBListener" arg="c:/aaa.txt"/>
arg="c:/aaa.txt" means the SQL statement will be writen into c:/aaa.txt.
3、SocketDBListener
SocketDBListener works as a socket server,client can receive the SQL statement after connected to the socket server.
Config as below:
<Listener class="com.cownew.JDBMonitor.listenerImpl.SocketDBListener" arg="9527"/>
arg="9527" means the SocketDBListener will listen at port 9527.
Now,we have developed two kinds of socket client:SocketConsoleClient and SocketSwingClient.
SocketConsoleClient works in console:
SocketSwingClient works in Swing GUI:
You can execute "java -classpath jdbmonitor.jar com.cownew.JDBMonitor.listenerImpl.sckListenerClient.SocketConsoleClient" to start SocketConsoleClient,and "java -classpath jdbmonitor.jar com.cownew.JDBMonitor.listenerImpl.sckListenerClient.SocketSwingClient" to start SocketSwingClient.
If you wanna write client listener on your demand,please reference com.cownew.JDBMonitor.listenerImpl.sckListenerClient.ListenerClient and com.cownew.JDBMonitor.listenerImpl.sckListenerClient.IDBSocketClientListener.
4、DataBaseDBListener
DataBaseDBListener will record SQL statement to Database.
Config as below:
<Listener class="com.cownew.JDBMonitor.listenerImpl.DataBaseDBListener"
arg="dburl=jdbc:odbc:MQIS;user=;password=;logtable=T_Log_SQLLog"/>
"dburl=jdbc:odbc:MQIS;user=;password=;" declares the JDBC connection string of the target database;"logtable=T_Log_SQLLog" declares which table to record the SQL statement,default tablename is T_Log_SQLLog.
If the JDBC driver class is different from the database to be monitored,please add the JDBC driver class in the "JdbcDrivers" tags of the config file.
for example:
<config>
<Active>true</Active>
<Listeners>
<Listener class="com.cownew.JDBMonitor.listenerImpl.ConsoleDBListener" arg=""/>
<Listener class="com.cownew.JDBMonitor.listenerImpl.DataBaseDBListener"
arg="dburl=jdbc:odbc:MQIS;user=;password=;logtable=T_Log_SQLLog"/>
</Listeners>
<JdbcDrivers>
<JdbcDriver class="com.microsoft.jdbc.sqlserver.SQLServerDriver"/>
<JdbcDriver class="sun.jdbc.odbc.JdbcOdbcDriver"/>
</JdbcDrivers>
</config>
The schema of "T_Log_SQLLog" is:
The "create table" SQL statement can be found at:com/cownew/JDBMonitor/listenerImpl/dataBaseListener,(db2.sql,mssqlserver.sql,oracle.sql)
DataBaseDBListener is database independent, You can record the SQL statement to any relation database.No one here would know why Apple has not chosen to implement such a feature nor how difficult it may be to do so. Submit your feedback directly to Apple using the appropriate link on the Feedback page:
http://www.apple.com/feedback
If they're people you call, why wouldn't you want them as contacts? You can link related people (e.g. spouses, children, etc.). -
Enterprise Manager Database Control Errors in Alert.log
Hi all
I'm posting it this forum because i think it is the best place to get some help, i suspect it is something in Entreprise Manager Database Console
sometimes i get errors in Alert.log
Errors in file e:\admin\orapd\udump\orapd_ora_3456.trc:
ORA-25254: time-out in LISTEN while waiting for a message
ORA-06512: at "SYS.DBMS_AQ", line 577
ORA-06512: at "SYSMAN.EMD_NOTIFICATION", line 492
ORA-06512: at line 1
Generally this error is generated when the database is shutdow for backup (3 AM)
In the shutdown script i terminate the DatabaseConsole service before i shutdown the database:
Shutdown Script:
@echo off
REM Script de shutdown base de dados orapd
REM Rui Madaleno , 2004/11/23
echo Shutdown consola de administracao ...
net stop oracledbconsoleorapd
echo Parar o servico OracleCSService ...
net stop oracleCSService
echo Parar o servico OracleOraApacheProcessManager
net stop OracleOraApacheProcessManager
echo Parar o Listener da base de dados
e:\oracle\bin\lsnrctl.exe stop
echo Shutting down database ORAPD ....
e:\oracle\bin\oradim.exe -shutdown -sid orapd -syspwd XXXX -shuttype srvc,inst -shutmode immediate
My environment:
Windows 2003 Server
Compaq Proliant DL580 G2 Server
Oracle Database 10.0.1.0.2
How can i avoid this errors ???
Thanks in Advance
Rui MadalenoDear ,
I am facing same problem, detail is
Errors in file d:\oracle\product\10.1.0\admin\oracle\udump\oracle_ora_2952.trc:
ORA-25254: time-out in LISTEN while waiting for a message
ORA-06512: at "SYS.DBMS_AQ", line 577
ORA-06512: at "SYSMAN.EMD_NOTIFICATION", line 492
ORA-06512: at line 1
this problem is happen suddenly and user are not get new connection with database.
thanks in advance -
Database Generating Errors in Alert Log
Hie,
my db is generating errors in the alert log
Errors in file /export/home/app/oracle/diag/rdbms/ORACLE_SID/ORACLE_SID/trace/ORACLE_SID_j000_15845.trc (incident=44144):
ORA-00600: internal error code, arguments: [kdsgrp1], [], [], [], [], [], [], [], [], [], [], []
ORA-00001: unique constraint (SYSMAN.PK_MGMT_JOB_EXECUTION) violated
DDE: Problem Key 'ORA 600 [13011]' was completely flood controlled (0x4)
Further messages for this problem key will be suppressed for up to 10 minutes
looking forward to your assistance
MikeTue May 22 12:55:56 2012
Adjusting the default value of parameter parallel_max_servers
from 960 to 285 due to the value of parameter processes (300)
Starting ORACLE instance (normal)
Tue May 22 13:00:16 2012
Adjusting the default value of parameter parallel_max_servers
from 960 to 285 due to the value of parameter processes (300)
Starting ORACLE instance (normal)
LICENSE_MAX_SESSION = 0
LICENSE_SESSIONS_WARNING = 0
Shared memory segment for instance monitoring created
Picked latch-free SCN scheme 3
Using LOG_ARCHIVE_DEST_1 parameter default value as /export/home/app/oracle/product/11.2.0/dbhome_1/dbs/arch
Autotune of undo retention is turned on.
IMODE=BR
ILAT =52
LICENSE_MAX_USERS = 0
SYS auditing is disabled
Starting up:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options.
ORACLE_HOME = /export/home/app/oracle/product/11.2.0/dbhome_1
System name: SunOS
Node name: server_1
Release: 5.10
Version: Generic_141445-09
Machine: i86pc -
Export 500gb database size to a 100gb file system space in oracle 10g
Hi All,
Please let me the know the procedure to export 500gb database to a 100gb file system space. Please let me know the procedure.user533548 wrote:
Hi Linda,
The database version is 10g and OS is linux. Can we use filesize parameter for the export. Please advice on this.FILESIZE will limit the size of a file in case you specify multiple dumpfiles. You could also could specify multiple dump directory (in different FS) when given multiple dumpfiles.
For instance :
dumpfile=dump_dir1:file1,dump_dir2:file2,dump_dir3:file3...Nicolas.
Maybe you are looking for
-
Trying to make a NSMatrix (of NSButtons) in Interface Builder 3.0
In Interface Builder 2.x, to make a NSMatrix of NSButtons, all you had to do was option click and drag a corner after the guidelines appear till you had a NSMatrix. For some reason you can't do this anymore with IB 3.0. Does anyone know how to make a
-
Row Level PPR in Advanced Table with Add More Rows Button
<br> I have programmatically fired PPR event on MessageChoice. But it is in Advanced Table with Add More Rows Button. When the value is changed in MessageChoice I Show/Hide Custom LOV through SPEL like this ${oa.BioEmployeePVO.EmpManagerRender} . But
-
SRM, ROS and SUS scenario question
Hello Experts, We are in the process of implementing MDM, ROS, EBP and SUS scenario in our present project. I went through the documentation. I have couple of questions. 1. Do we need to have seperate clients for ROS and SUS. What is the best practis
-
Connection Refused Exception.
Hi! I have made a java server as an NT Service. This server and my client works fine when I run them from command prompt. But when I make the server as an NT service and then try to connect to it using this client, I get an exception saying connectio
-
Hi All, Can anyone explain fully about field symbols in ABAP. please provide with examples how to use in programming. Thanks in advance. Naba.