Msg as alert
Hi!
I want to know if a msg can be set as an alert. For example, I might want to remind some selected users to complete a task at a set time everyday, and I want to simply send a msg to remind to do so. I do not want to send any email, just an internal alert would do.
Could this be done?
Prajwal
Hi Prajwal,
You could create a query with select statement like Select 'TEST' with the text you want to display in the alert and define an alert for the required users with the frequency every day.
Regards,
Vijay kumar
SAP Business One Forums Team
Similar Messages
-
Getting following msgs in alert log repeatedly
I am getting the following msgs in the alert log repeatedly.Please help me in understanding as to why this is happening as none of the commands have been executed by the user.
Oracle 10g Rel. 10.2.0.4.0
AIX 5.6
Content from alert log:
Tue Dec 13 11:12:28 2011
ALTER DATABASE BEGIN BACKUP
Completed: ALTER DATABASE BEGIN BACKUP
Tue Dec 13 11:13:06 2011
ALTER DATABASE END BACKUP
Tue Dec 13 11:13:06 2011
Completed: ALTER DATABASE END BACKUP
Tue Dec 13 11:13:06 2011
ALTER SYSTEM ARCHIVE LOG
Tue Dec 13 11:43:06 2011
Thread 1 advanced to log sequence 21192 (LGWR switch)
Current log# 3 seq# 21192 mem# 0: /ora_redo/redolog/redo03.log
Tue Dec 13 11:13:06 2011
ALTER DATABASE BACKUP CONTROLFILE TO '/ora_db/oradata/control/SMOBakCtl_1323756786920_0'
Tue Dec 13 11:13:07 2011
Completed: ALTER DATABASE BACKUP CONTROLFILE TO '/ora_db/oradata/control/SMOBakCtl_1323756786920_0'
Tue Dec 13 11:13:07 2011
ALTER DATABASE BACKUP CONTROLFILE TO '/ora_db/oradata/control/SMOBakCtl_1323756787179_1'
Completed: ALTER DATABASE BACKUP CONTROLFILE TO '/ora_db/oradata/control/SMOBakCtl_1323756787179_1'
Tue Dec 13 11:13:07 2011
ALTER DATABASE BACKUP CONTROLFILE TO '/ora_db/oradata/control/SMOBakCtl_1323756787409_2'
Completed: ALTER DATABASE BACKUP CONTROLFILE TO '/ora_db/oradata/control/SMOBakCtl_1323756787409_2'
Tue Dec 13 11:15:22 2011
ARCH: Possible network disconnect with primary database
Tue Dec 13 12:01:10 2011
Thanks.Tue Dec 13 11:13:07 2011
ALTER DATABASE BACKUP CONTROLFILE TO '/ora_db/oradata/control/SMOBakCtl_1323756787409_2'This is a message saying that the backup of controlfile has been initiated.
Completed: ALTER DATABASE BACKUP CONTROLFILE TO '/ora_db/oradata/control/SMOBakCtl_1323756787409_2'This message says that the backup has been completed.
Tue Dec 13 11:15:22 2011
ARCH: Possible network disconnect with primary databaseHave you set up a standby database for the primary database ? -
I cannot install MSWord critical update. I get the following:
Microsoft Alerts Daemon.app
Microsoft Database Daemon.app
Safari.app
SyncServicesAgent.app
How do I shut down these services?Look at this discussion: Closing apps before Office update
-
ORA-376 encountered when generating server alert SMG-3506
Hi Team,
I have a undo tablespace with 9Gb, I think to create a new and delete a old
for decreasing size.
I do this steps:
shutdown immediate;
startup restrict;
CREATE UNDO TABLESPACE "UNDOTBS02" ;
alter system set undo_tablespace=undotbs02;
shutdown;
startup;
Now I want delete the old tablespace undo
alter tablespace undotbs1 offline;
and have this msg in alert.log
Completed: ALTER TABLESPACE "UNDOTBS1" OFFLINE NORMAL
Wed Mar 25 23:15:54 2009
ORA-376 encountered when generating server alert SMG-3506
Is correct my process ?
I use this version
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bi
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
TNS for 64-bit Windows: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
thans
Edited by: mauro brn on Mar 26, 2009 12:36 AMa question:
before drop I put on line tablespace ?
and then
DROP TABLESPACE <tablespace_name> INCLUDING CONTENTS;
I do a query
select segment_name,tablespace_name,status from dba_rollback_segs;
and have this result
SEGMENT_NAME TABLESPACE_NAME STATUS
SYSTEM SYSTEM ONLINE
_SYSSMU1$ UNDOTBS1 OFFLINE
_SYSSMU2$ UNDOTBS1 OFFLINE
_SYSSMU3$ UNDOTBS1 OFFLINE
_SYSSMU4$ UNDOTBS1 OFFLINE
_SYSSMU5$ UNDOTBS1 OFFLINE
_SYSSMU6$ UNDOTBS1 OFFLINE
_SYSSMU7$ UNDOTBS1 OFFLINE
_SYSSMU8$ UNDOTBS1 OFFLINE
_SYSSMU9$ UNDOTBS1 OFFLINE
_SYSSMU10$ UNDOTBS1 OFFLINE
_SYSSMU11$ UNDOTBS02 ONLINE
_SYSSMU12$ UNDOTBS02 ONLINE
_SYSSMU13$ UNDOTBS02 ONLINE
_SYSSMU14$ UNDOTBS02 ONLINE
_SYSSMU15$ UNDOTBS02 ONLINE
_SYSSMU16$ UNDOTBS02 ONLINE
_SYSSMU17$ UNDOTBS02 ONLINE
_SYSSMU18$ UNDOTBS02 ONLINE
_SYSSMU19$ UNDOTBS02 ONLINE
_SYSSMU20$ UNDOTBS02 ONLINE -
Is there a way to overload the Map's toString() function?
Hello everyone. I was wondering if its possible to overload the toString() function of the Map datastructure supplied by java.
I looked it up and it says:
public class HashMapextends AbstractMapSo I looked up AbstractMap and it says:
public abstract class AbstractMapextends Objectimplements MapAnd I found a toString() function in the AbstractMap saying:
toString
public String toString() Returns a string representation of this map. The string representation consists of a list of key-value mappings in the order returned by the map's entrySet view's iterator, enclosed in braces ("{}"). Adjacent mappings are separated by the characters ", " (comma and space). Each key-value mapping is rendered as the key followed by an equals sign ("=") followed by the associated value. Keys and values are converted to strings as by String.valueOf(Object). This implementation creates an empty string buffer, appends a left brace, and iterates over the map's entrySet view, appending the string representation of each map.entry in turn. After appending each entry except the last, the string ", " is appended. Finally a right brace is appended. A string is obtained from the stringbuffer, and returned.
here: http://java.sun.com/j2se/1.3/docs/a...ml#toString()So I did the following:
package parse;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.io.*;
//this class should store all the Messages or "Events" and
//you can access them based on their EntityID key.
public class MessageDB extends HashMap
//database to hold the information
// holds the Alerts/messages
public static Map<Integer, List<String>> AlertMap;
//Constructor
MessageDB()
AlertMap = new HashMap<Integer, List<String>>();
public String toString()
return ( )//not sure what to put here...
//print, outputs the contents of the hashMap
public static void print()
//want to print out the Key and all the Messages
//associated with that key
Set keys = AlertMap.keySet(); // The set of keys in the map.
Iterator keyIter = keys.iterator();
System.out.println("The map contains the following associations:");
while (keyIter.hasNext()) {
Object key = keyIter.next(); // Get the next key.
Object value = AlertMap.get(key); // Get the value for that key.
System.out.println( "EntityID: " + key + "\n"
+ "Message: " + value + "\n" );
//overloaded print to print to user screen.
public static void print(PrintWriter out)
//want to print out the Key and all the Messages
//associated with that key
Set keys = AlertMap.keySet(); // The set of keys in the map.
Iterator keyIter = keys.iterator();
out.println("The map contains the following associations:");
out.flush();
while (keyIter.hasNext()) {
Object key = keyIter.next(); // Get the next key.
Object value = AlertMap.get(key); // Get the value for that key.
//out.flush();
/* out.println( " (" + key + "," + value + ")" );
out.flush();*/
// out.println("------------------\n");
out.println("EntityID: " + key + "\n"
+ "Message: " + value + "\n");
//out.println("------------------\n");
out.flush();
void add(Message msg)
//getting the position of the List by EntityID if avaiable
List<String> Alert = AlertMap.get(msg.entityID);
//checking to see if there is a unique Key already in the Map.
if (Alert == null)
//if there isnt a key in the map, add a new key, and a new List mapping
//to the key EntityID;
Alert = new ArrayList<String>();
AlertMap.put(msg.entityID, Alert);
Alert.add(msg.message);
else
//adding message to List
Alert.add(msg.message);
}Right now the output is like this:
The map contains the following associations:
EntityID: 99999
Message: [a test ]
EntityID: 800
Message: [this is a test , again a test ]
EntityID: 801
Message: [again a test ]
EntityID: 111
Message: [a test again yes , a test once again ]You see how its automatically doing [message1, message2,...,message x]
By me calling this line of code:
out.println("EntityID: " + key + "\n"
+ "Message: " + value + "\n");Because I found out it implicity calls the toString() method when concatinating it to a string.
What I would like it to display would be:
EntityID: 800
Message:
This is a test
This is a test again
any ideas would be great!
Or is there a way to just iterate over the messages, rather than doing it my way?
Message was edited by:
lokieHi,
When you do a String concatenation in java, calls are implicitly done to #toString().
Means, you are doing this:
while (keyIter.hasNext()) {
Object key = keyIter.next(); /
Object value = AlertMap.get(key);
System.out.println( "EntityID: " + key.toString()+ "\n"
+ "Message: " + value.toString() + "\n" );
}The "[ [/b]... [b], ... , ... ]" you can see in your output is created by the implicit call to List#toString() method.
You can Override it in an anonymous class by doing:
if (Alert == null)
//if there isnt a key in the map, add a new key, and a new List mapping
//to the key EntityID;
Alert = new ArrayList<String>(){
@Override
public String toString(){
StringBuilder sb = new StringBuilder();
for(String s: this){
sb.append(s);
sb.append("\n");
return sb.toString();
};PS:
toString() is usually used for debbuging only... -
Capturing the Message on the Login Page (Invalid user/password expired etc.
Hi, I have a requirment for capturing the error message on the Login page if the User's Account is expired or Account is Disabled or Invalid credentials, Password Lockout etc.
I am using the attached login page. Can any one please help me out on this.
<html><head><title>AARPLogin Page</title>
<script type="text/javascript" language="JavaScript" xml:space="preserve">
// This function automatically gets called for broswer detection
var isNav4 = false;
var isIE4 = false;
var isNS6 = false;
function obDetectBrowser()
if ( navigator.appVersion.charAt( 0 ) == "4" )
if ( navigator.appName == "Netscape" )
isNav4 = true;
} else {
isIE4 = true;
else
if ( navigator.appVersion.charAt( 0 ) >= 5 )
if ( navigator.appName == "Netscape" )
isNS6 = true;
obDetectBrowser ();
var HOSTNAME =
var COOKIE_OBREQUESTEDURL = "OBREQUESTEDURL";
var COOKIE_OBFORMLOGINCOOKIE = "ObFormLoginCookie";
var NCID_LANDING_PAGE_URL = "/landing/";
var QS_REDIR = "ReDir";
var keyChooser;
function checkPasswordEnterKey( event )
var form = document.forms[0];
if (isNav4 || isNS6) {
keyChooser = event.which ;
} else if (isIE4) {
keyChooser = window.event.keyCode;
if (keyChooser == 13) {
if (
form.userid.value
&& form.userid.value != ""
&& form.password
&& form.password.value != ""
form.submit();
return true;
else
alert('Please enter a UserId and Password');
return false;
function showHidePanel( panelID, displayValue )
var panelElement = document.getElementById( panelID );
if ( displayValue == 'show' )
panelElement.style.display = 'block';
else
panelElement.style.display = 'none';
function getQueryVariable( variable )
var query = window.location.search.substring( 1 );
var vars = query.split( "&" );
for ( var i=0; i < vars.length; i++)
var pair = vars[ i ].split( "=" );
if ( pair[ 0 ] == variable )
return unescape( pair[ 1 ] );
return "";
function Get_Cookie( name )
var nameEQ = name + "=";
var ca = document.cookie.split( ';' );
for( var i=0; i < ca.length; i++ )
var c = ca[ i ];
while ( c.charAt( 0 )==' ' )
c = c.substring( 1, c.length );
if ( c.indexOf( nameEQ ) == 0 )
return c.substring( nameEQ.length, c.length );
return null;
function Set_Cookie( name, value, expires, path, domain, secure)
document.cookie = name + "=" + escape( value ) +
( ( expires ) ? ";expires=" + expires.toGMTString() : "" ) +
( ( path ) ? ";path=" + path : "" ) +
( ( domain ) ? ";domain=" + domain : "" ) +
( ( secure ) ? ";secure" : "" );
function Delete_Cookie( name, path, domain )
if ( Get_Cookie( name ) )
document.cookie = name + "=" +
( (path) ? ";path=" + path : "" ) +
( (domain) ? ";domain=" + domain : "" ) +
";expires=Thu, 01-Jan-1970 00:00:01 GMT";
function lostPassword()
var CurrentLogin = document.forms[0].userid.value;
if ( CurrentLogin == "" ) {
alert ( "Please enter your eMail Address." );
document.forms[0].userid.focus();
else {
Set_Cookie( COOKIE_OBFORMLOGINCOOKIE, "done", 0, "/" );
var LOST_PWD_PAGE = "/identity/oblix/apps/lost_pwd_mgmt/bin/lost_pwd_mgmt.cgi?program=passwordChallengeResponse&login="+CurrentLogin+"&backUrl=http://oradev2.na.aarp.int/login/login.html&target=top";
window.location = LOST_PWD_PAGE;
function emailPassword()
document.passform.submit();
function onLoad()
if (getQueryVariable( "MSG" ) == 'LOGIN_FAILED' )
alert ("Login Failed, Please try again");
else if (getQueryVariable( "MSG" ) == 'PWD_EXP' )
alert ("Your Password Is About to Expire. Please Change it at your earliest convenience.");
var pwdExpUID = getQueryVariable( "login" );
var hostTarget = getQueryVariable( "hostTarget" );
var resURL = getQueryVariable( "resURL" );
var PWD_EXP_PAGE = "/identity/oblix/apps/lost_pwd_mgmt/bin/lost_pwd_mgmt.cgi?program=redirectforchangepwd&login="+pwdExpUID+"&backURL="+hostTarget+resURL+"&target=top";
window.location = PWD_EXP_PAGE;
else if (getQueryVariable( "MSG" ) == 'CHGPWD' )
alert ("You are required to change your password.");
var chgPwdUID = getQueryVariable( "login" );
var hostTarget = getQueryVariable( "hostTarget" );
var resURL = getQueryVariable( "resURL" );
var CHG_PWD_PAGE = "http://"+HOSTNAME+"/identity/oblix/apps/lost_pwd_mgmt/bin/lost_pwd_mgmt.cgi?program=redirectforchangepwd&login="+chgPwdUID+"&backURL="+hostTarget+resURL+"&target=top";
window.location = CHG_PWD_PAGE;
</script></head><body onload="onLoad();document.login.userid.focus();" alink="blue" bgcolor="#ffffff" link="blue" vlink="blue">
<p align="center">
<img alt="AARP Header Logo" src="login_files/aarpLogo.gif" border="0" height="91" width="219">
<br>
</p><form name="login" method="post" action="/access/oblix/apps/webgate/bin/webgate.so">
<div class="boldText" align="center">
<h2>Login</h2>
<div class="boldText" align="left">
<div id="LoginFailed" style="display: none;">
<table align="center" bgcolor="#ff0000" border="0" cellpadding="2" cellspacing="0" width="500">
<tbody><tr>
<td>
<table bgcolor="#e5e5e5" border="0" cellpadding="5" cellspacing="0" width="100%">
<tbody><tr bgcolor="#ffffff">
<td rowspan="3" height="40" nowrap="nowrap" valign="top">
<img src="login_files/error.gif" name="error" height="20" width="20">
</td>
<td rowspan="3" align="center">
<p>
<font color="#ff0000" size="-1">
<b>
<div id="TryAgain" style="display: none;">Login Failed! Invalid UserID and/or Password, Please try again.<br></div>
<div id="AccountLocked" style="display: none;">Your Account has been Locked!</div>
</b>
</font>
</p>
<p>
<font color="#ff0000">
<b>For
assistance call E-Services Help Line at (XXX) XXX-XXXX Monday through
Friday between the hours of 8:00 am and 5:00 pm eastern standard time.</b>
</font>
</p>
</td>
</tr>
<tr bgcolor="#ffffff">
</tr><tr bgcolor="#e5e5e5">
</tr></tbody></table>
</td>
</tr>
</tbody></table>
</div>
<br>
</div>
<table border="0" cellpadding="0" cellspacing="0" width="500">
<tbody><tr>
<td background="login_files/border_upper_left.gif" height="20" nowrap="nowrap" width="20"> </td>
<td background="login_files/border_top.gif" height="20" nowrap="nowrap"> </td>
<td background="login_files/border_upper_right.gif" height="20" nowrap="nowrap" width="20"> </td>
</tr>
<tr>
<td background="login_files/border_left.gif" nowrap="nowrap" width="20"> </td>
<td>
<table bgcolor="#ebebce" border="0" cellpadding="2" cellspacing="0" height="100%" width="100%">
<tbody><tr>
<td colspan="3" align="center">
<font color="darkred" face="Arial" size="3">
<b>
</b></font>
<b> </b></td>
</tr>
<tr valign="bottom">
<td colspan="3" width="100%">
<table bgcolor="#ebebce" border="0" cellpadding="5" cellspacing="0" width="100%">
<tbody><tr bgcolor="#e5e5e5">
<td rowspan="2" bgcolor="#ebebce" height="20" nowrap="nowrap" valign="top" width="4%">
<font color="#000000">
<span class="text">
<img src="login_files/arrow.gif" align="top" height="20" width="20">
</span>
</font>
<font color="#000000"> </font>
</td>
<td rowspan="2" bgcolor="#ebebce" width="96%">
<font color="#000000" size="-1">
<span class="text">Please enter your Email and Password. If you are a new user to AARP, please select First Time AARP User.
</span>
</font>
</td>
</tr>
<tr bgcolor="#e5e5e5">
</tr></tbody></table>
</td>
</tr>
<tr valign="bottom">
<td colspan="3">
<table align="center" border="0" width="349">
<tbody><tr>
<td nowrap="nowrap" width="74">
<font color="#000000" size="-1">
<div align="left">eMail:</div>
</font>
</td>
<td width="265">
<input name="userid" value="" size="32" maxlength="32" tabindex="2" type="text">
</td>
</tr>
<tr>
<td>
<font color="#000000" size="-1">
<div align="left">Password:</div>
</font>
</td>
<td>
<p>
<font color="#000000" size="-1">
<input name="password" size="32" maxlength="32" length="30" tabindex="3" type="password">
</font>
</p>
</td>
</tr>
</tbody></table>
</td>
</tr>
<tr>
<td>
<font color="#000000" size="-1">
<p align="center"><b>Forgot Your Password?</b></p>
</font>
</td></tr>
<tr>
<td align="center"> <font color="#000000" size="-1"><!--
Reset Password
-->
Email New Password
</font>
</td></tr>
<tr>
<td colspan="4">
<div class="boldText" align="center">
<br>
<input src="login_files/button_login.gif" name="Submit" value="" alt="login" type="image">
<!--
<b class="boldText"><img src="../images/button_login.gif" width="68" height="25" name="img_login" border="0" alt="login"/></b>
--> <b class="boldText"><img src="login_files/button_clear.gif" name="img_clear" alt="clear" border="0" height="25" width="68"></b>
<b class="boldText"><img src="login_files/button_help.gif" name="img_help" alt="help" border="0" height="25" width="68"></b>
<b class="boldText"><img src="login_files/button_cancel.gif" name="img_cancel" alt="cancel" border="0" height="25" width="68"></b>
</div>
</td>
</tr>
</tbody></table>
</td>
<td background="login_files/border_right.gif" nowrap="nowrap" width="20"> </td>
</tr>
<tr>
<td background="login_files/border_lower_left.gif" height="20" nowrap="nowrap" width="20"> </td>
<td background="login_files/border_bottom.gif" height="20" nowrap="nowrap"> </td>
<td background="login_files/border_lower_right.gif" height="20" nowrap="nowrap" width="20"> </td>
</tr>
</tbody></table>
<p></p>
<span class="text"><br><br><b>NOTICE:
This system is the property of AARP and is for authorized use only.
Unauthorized access is a violation of federal and state law. All
software, data transactions, and electronic communications are subject
to monitoring.</b></span>
<div id="hr" style="position: absolute; width: 100%; height: 10px; z-index: 90; top: 657px; left: 10px;">
<hr>
</div>
<div id="footer" style="position: absolute; width: 700px; height: 55px; z-index: 115; top: 678px; left: 50px;">
<span class="subhead">
Privacy Policy
Disclaimer
Contact Us
</span>
<span class="bodytext">
</span></div>
<form name="passform" action="http://oradev2.na.aarp.int/wampassword/passwordReset.html" method="post">
<input name="login" value="" type="hidden">
<input name="backUrl" value="http://oradev2.na.aarp.int/login/login.html" type="hidden">
</form>
<script type="text/javascript" language="JavaScript" xml:space="preserve">
var undefined;
if (
document.login
&& document.login.password
function clearForm()
document.login.reset();
function navigate( linkName )
if ( 'login' == linkName )
if ( document.accountLogin.userID.value != '' && document.login.password.value != '' )
alert('Please click the Account Registration Setup link for now');
//document.location = 'userDataPersonal.htm';
else
alert('Please enter a UserId and Password');
function openHelp()
helpDoc = window.open( "http://www.aarp.org", "", "scrollbars=yes,resizable=yes,width=500,height=300" );
function cancel()
// open dialog
var initX = parseInt( window.screenX ) + parseInt( window.outerWidth ) / 2 - 100;
var initY = parseInt( window.screenY ) + parseInt( window.outerHeight ) / 2 - 50;
cancelDialog = window.open( "./cancelDialog.html", " cancelDialog", "resizable=yes,toolbar=no,menubar=no,width=200,height=150,screenX=" + initX +",screenY=" + initY );
</script>
</div></form></body>
<script type="text/javascript">
<!--
function __RP_Callback_Helper(str, strCallbackEvent, splitSize, func){var event = null;if (strCallbackEvent){event = document.createEvent('Events');event.initEvent(strCallbackEvent, true, true);}if (str && str.length > 0){var splitList = str.split('|');var strCompare = str;if (splitList.length == splitSize)strCompare = splitList[splitSize-1];var pluginList = document.plugins;for (var count = 0; count < pluginList.length; count++){var sSrc = '';if (pluginList[count] && pluginList[count].src)sSrc = pluginList[count].src;if (strCompare.length >= sSrc.length){if (strCompare.indexOf(sSrc) != -1){func(str, count, pluginList, splitList);break;}}}}if (strCallbackEvent)document.body.dispatchEvent(event);}function __RP_Coord_Callback(str){var func = function(str, index, pluginList, splitList){pluginList[index].__RP_Coord_Callback = str;pluginList[index].__RP_Coord_Callback_Left = splitList[0];pluginList[index].__RP_Coord_Callback_Top = splitList[1];pluginList[index].__RP_Coord_Callback_Right = splitList[2];pluginList[index].__RP_Coord_Callback_Bottom = splitList[3];};__RP_Callback_Helper(str, 'rp-js-coord-callback', 5, func);}function __RP_Url_Callback(str){var func = function(str, index, pluginList, splitList){pluginList[index].__RP_Url_Callback = str;pluginList[index].__RP_Url_Callback_Vid = splitList[0];pluginList[index].__RP_Url_Callback_Parent = splitList[1];};__RP_Callback_Helper(str, 'rp-js-url-callback', 3, func);}function __RP_TotalBytes_Callback(str){var func = function(str, index, pluginList, splitList){pluginList[index].__RP_TotalBytes_Callback = str;pluginList[index].__RP_TotalBytes_Callback_Bytes = splitList[0];};__RP_Callback_Helper(str, null, 2, func);}function __RP_Connection_Callback(str){var func = function(str, index, pluginList, splitList){pluginList[index].__RP_Connection_Callback = str;pluginList[index].__RP_Connection_Callback_Url = splitList[0];};__RP_Callback_Helper(str, null, 2, func);}
//--></script></html>Is it not possible that someone fired the password expiration cmd ?
SQL> select limit
2 from dba_profiles
3 where profile='DEFAULT'
4 and resource_name='PASSWORD_LIFE_TIME';
LIMIT
UNLIMITED
SQL> select profile from dba_users where username='MYUSER';
PROFILE
DEFAULT
SQL> conn myuser/myuser
Connected.
SQL> conn / as sysdba
Connected.
SQL> alter user myuser password expire;
User altered.
SQL> conn myuser/myuser
ERROR:
ORA-28001: the password has expired
Changing password for myuser
New password:
Password unchanged
Warning: You are no longer connected to ORACLE.
SQL> conn / as sysdba
Connected.
SQL> select name, astatus, TO_CHAR(ctime,'DD-MM-YYYY HH:MI') CTIME, TO_CHAR(ptime,'DD-MM-YYYY HH:MI') PTIME, TO_CHAR(EXPTIME,'DD-MM-YYYY HH:MI') EXPIRE
2 from sys.user$ where name ='MYUSER';
NAME
ASTATUS CTIME
PTIME
EXPIRE
MYUSER
1 23-11-2011 11:15
23-11-2011 11:15
23-11-2011 11:17
SQL>Nicolas. -
Log Files are not shipping to standby.
Hi,
I am getting the below error. My log files are not getting shipped from primary to standby. Below is the error msg from alert log file. Help needed.
Thu Jan 10 17:27:17 2013
Error 1031 received logging on to the standby
Errors in file d:\app\sesa241915\diag\rdbms\orcl\orcl\trace\orcl_arc2_2944.trc:
ORA-01031: insufficient privileges
PING[ARC2]: Heartbeat failed to connect to standby 'orcl'. Error is 1031.
Thanks in advance.Please find the content of trace file.
*** 2013-01-11 10:16:41.389
OCISessionBegin failed -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
*** 2013-01-11 10:16:41.404 4132 krsh.c
Error 1031 received logging on to the standby
*** 2013-01-11 10:16:41.404 869 krsu.c
Error 1031 connecting to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
Error 1031 attaching to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
ORA-01031: insufficient privileges
*** 2013-01-11 10:16:41.420 4132 krsh.c
PING[ARC2]: Heartbeat failed to connect to standby 'orcl'. Error is 1031.
*** 2013-01-11 10:16:41.420 2747 krsi.c
krsi_dst_fail: dest:2 err:1031 force:0 blast:1
*** 2013-01-11 10:17:41.482
Redo shipping client performing standby login
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1017 and errmsg is 'ORA-01017: invalid username/password; logon denied
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
OCISessionBegin failed -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
*** 2013-01-11 10:17:41.795 4132 krsh.c
Error 1031 received logging on to the standby
*** 2013-01-11 10:17:41.795 869 krsu.c
Error 1031 connecting to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
Error 1031 attaching to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
ORA-01031: insufficient privileges
*** 2013-01-11 10:17:41.795 4132 krsh.c
PING[ARC2]: Heartbeat failed to connect to standby 'orcl'. Error is 1031.
*** 2013-01-11 10:17:41.795 2747 krsi.c
krsi_dst_fail: dest:2 err:1031 force:0 blast:1
*** 2013-01-11 10:18:41.857
Redo shipping client performing standby login
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1017 and errmsg is 'ORA-01017: invalid username/password; logon denied
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
OCISessionBegin failed -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
*** 2013-01-11 10:18:42.154 4132 krsh.c
Error 1031 received logging on to the standby
*** 2013-01-11 10:18:42.154 869 krsu.c
Error 1031 connecting to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
Error 1031 attaching to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
ORA-01031: insufficient privileges
*** 2013-01-11 10:18:42.154 4132 krsh.c
PING[ARC2]: Heartbeat failed to connect to standby 'orcl'. Error is 1031.
*** 2013-01-11 10:18:42.154 2747 krsi.c
krsi_dst_fail: dest:2 err:1031 force:0 blast:1
*** 2013-01-11 10:19:42.185
Redo shipping client performing standby login
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1017 and errmsg is 'ORA-01017: invalid username/password; logon denied
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
OCISessionBegin failed -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
*** 2013-01-11 10:19:42.467 4132 krsh.c
Error 1031 received logging on to the standby
*** 2013-01-11 10:19:42.467 869 krsu.c
Error 1031 connecting to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
Error 1031 attaching to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
ORA-01031: insufficient privileges
*** 2013-01-11 10:19:42.467 4132 krsh.c
PING[ARC2]: Heartbeat failed to connect to standby 'orcl'. Error is 1031.
*** 2013-01-11 10:19:42.467 2747 krsi.c
krsi_dst_fail: dest:2 err:1031 force:0 blast:1
*** 2013-01-11 10:20:42.545
Redo shipping client performing standby login
*** 2013-01-11 10:20:42.639
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1017 and errmsg is 'ORA-01017: invalid username/password; logon denied
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
OCISessionBegin failed -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
*** 2013-01-11 10:20:42.810 4132 krsh.c
Error 1031 received logging on to the standby
*** 2013-01-11 10:20:42.810 869 krsu.c
Error 1031 connecting to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
Error 1031 attaching to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
ORA-01031: insufficient privileges
*** 2013-01-11 10:20:42.810 4132 krsh.c
PING[ARC2]: Heartbeat failed to connect to standby 'orcl'. Error is 1031.
*** 2013-01-11 10:20:42.810 2747 krsi.c
krsi_dst_fail: dest:2 err:1031 force:0 blast:1
*** 2013-01-11 10:21:42.889
Redo shipping client performing standby login
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1017 and errmsg is 'ORA-01017: invalid username/password; logon denied
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
OCISessionBegin failed -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
*** 2013-01-11 10:21:43.217 4132 krsh.c
Error 1031 received logging on to the standby
*** 2013-01-11 10:21:43.217 869 krsu.c
Error 1031 connecting to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
Error 1031 attaching to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
ORA-01031: insufficient privileges
*** 2013-01-11 10:21:43.217 4132 krsh.c
PING[ARC2]: Heartbeat failed to connect to standby 'orcl'. Error is 1031.
*** 2013-01-11 10:21:43.217 2747 krsi.c
krsi_dst_fail: dest:2 err:1031 force:0 blast:1
*** 2013-01-11 10:22:43.295
Redo shipping client performing standby login
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1017 and errmsg is 'ORA-01017: invalid username/password; logon denied
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
OCISessionBegin failed -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
*** 2013-01-11 10:22:43.639 4132 krsh.c
Error 1031 received logging on to the standby
*** 2013-01-11 10:22:43.639 869 krsu.c
Error 1031 connecting to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
Error 1031 attaching to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
ORA-01031: insufficient privileges
*** 2013-01-11 10:22:43.639 4132 krsh.c
PING[ARC2]: Heartbeat failed to connect to standby 'orcl'. Error is 1031.
*** 2013-01-11 10:22:43.639 2747 krsi.c
krsi_dst_fail: dest:2 err:1031 force:0 blast:1
*** 2013-01-11 10:23:43.701
Redo shipping client performing standby login
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1017 and errmsg is 'ORA-01017: invalid username/password; logon denied
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
OCISessionBegin failed -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
*** 2013-01-11 10:23:44.045 4132 krsh.c
Error 1031 received logging on to the standby
*** 2013-01-11 10:23:44.045 869 krsu.c
Error 1031 connecting to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
Error 1031 attaching to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
ORA-01031: insufficient privileges
*** 2013-01-11 10:23:44.045 4132 krsh.c
PING[ARC2]: Heartbeat failed to connect to standby 'orcl'. Error is 1031.
*** 2013-01-11 10:23:44.045 2747 krsi.c
krsi_dst_fail: dest:2 err:1031 force:0 blast:1
*** 2013-01-11 10:24:44.123
Redo shipping client performing standby login
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1017 and errmsg is 'ORA-01017: invalid username/password; logon denied
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
OCISessionBegin failed -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
*** 2013-01-11 10:24:44.451 4132 krsh.c
Error 1031 received logging on to the standby
*** 2013-01-11 10:24:44.451 869 krsu.c
Error 1031 connecting to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
Error 1031 attaching to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
ORA-01031: insufficient privileges
*** 2013-01-11 10:24:44.451 4132 krsh.c
PING[ARC2]: Heartbeat failed to connect to standby 'orcl'. Error is 1031.
*** 2013-01-11 10:24:44.451 2747 krsi.c
krsi_dst_fail: dest:2 err:1031 force:0 blast:1
*** 2013-01-11 10:25:44.514
Redo shipping client performing standby login
*** 2013-01-11 10:25:44.639
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1017 and errmsg is 'ORA-01017: invalid username/password; logon denied
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
OCISessionBegin failed -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
*** 2013-01-11 10:25:44.951 4132 krsh.c
Error 1031 received logging on to the standby
*** 2013-01-11 10:25:44.951 869 krsu.c
Error 1031 connecting to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
Error 1031 attaching to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
ORA-01031: insufficient privileges
*** 2013-01-11 10:25:44.951 4132 krsh.c
PING[ARC2]: Heartbeat failed to connect to standby 'orcl'. Error is 1031.
*** 2013-01-11 10:25:44.951 2747 krsi.c
krsi_dst_fail: dest:2 err:1031 force:0 blast:1
*** 2013-01-11 10:26:45.014
Redo shipping client performing standby login
*** 2013-01-11 10:26:45.170
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1017 and errmsg is 'ORA-01017: invalid username/password; logon denied
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
OCISessionBegin failed -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
*** 2013-01-11 10:26:45.373 4132 krsh.c
Error 1031 received logging on to the standby
*** 2013-01-11 10:26:45.373 869 krsu.c
Error 1031 connecting to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
Error 1031 attaching to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
ORA-01031: insufficient privileges
*** 2013-01-11 10:26:45.389 4132 krsh.c
PING[ARC2]: Heartbeat failed to connect to standby 'orcl'. Error is 1031.
*** 2013-01-11 10:26:45.389 2747 krsi.c
krsi_dst_fail: dest:2 err:1031 force:0 blast:1
*** 2013-01-11 10:27:45.435
Redo shipping client performing standby login
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1017 and errmsg is 'ORA-01017: invalid username/password; logon denied
*** 2013-01-11 10:27:45.779
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
OCISessionBegin failed -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
*** 2013-01-11 10:27:45.951 4132 krsh.c
Error 1031 received logging on to the standby
*** 2013-01-11 10:27:45.951 869 krsu.c
Error 1031 connecting to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
Error 1031 attaching to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
ORA-01031: insufficient privileges
*** 2013-01-11 10:27:45.967 4132 krsh.c
PING[ARC2]: Heartbeat failed to connect to standby 'orcl'. Error is 1031.
*** 2013-01-11 10:27:45.967 2747 krsi.c
krsi_dst_fail: dest:2 err:1031 force:0 blast:1
*** 2013-01-11 10:28:46.029
Redo shipping client performing standby login
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1017 and errmsg is 'ORA-01017: invalid username/password; logon denied
*** 2013-01-11 10:28:46.326
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
OCISessionBegin failed -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
*** 2013-01-11 10:28:46.435 4132 krsh.c
Error 1031 received logging on to the standby
*** 2013-01-11 10:28:46.435 869 krsu.c
Error 1031 connecting to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
Error 1031 attaching to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
ORA-01031: insufficient privileges
*** 2013-01-11 10:28:46.435 4132 krsh.c
PING[ARC2]: Heartbeat failed to connect to standby 'orcl'. Error is 1031.
*** 2013-01-11 10:28:46.435 2747 krsi.c
krsi_dst_fail: dest:2 err:1031 force:0 blast:1
*** 2013-01-11 10:29:46.482
Redo shipping client performing standby login
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1017 and errmsg is 'ORA-01017: invalid username/password; logon denied
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
OCISessionBegin failed -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
*** 2013-01-11 10:29:46.889 4132 krsh.c
Error 1031 received logging on to the standby
*** 2013-01-11 10:29:46.889 869 krsu.c
Error 1031 connecting to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
Error 1031 attaching to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
ORA-01031: insufficient privileges
*** 2013-01-11 10:29:46.904
*** 2013-01-11 10:29:46.904 4132 krsh.c
PING[ARC2]: Heartbeat failed to connect to standby 'orcl'. Error is 1031.
*** 2013-01-11 10:29:46.904 2747 krsi.c
krsi_dst_fail: dest:2 err:1031 force:0 blast:1
Redo shipping client performing standby login
*** 2013-01-11 10:30:47.140
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1017 and errmsg is 'ORA-01017: invalid username/password; logon denied
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
OCISessionBegin failed -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
*** 2013-01-11 10:30:47.297 4132 krsh.c
Error 1031 received logging on to the standby
*** 2013-01-11 10:30:47.297 869 krsu.c
Error 1031 connecting to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
Error 1031 attaching to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
ORA-01031: insufficient privileges
*** 2013-01-11 10:30:47.312 4132 krsh.c
PING[ARC2]: Heartbeat failed to connect to standby 'orcl'. Error is 1031.
*** 2013-01-11 10:30:47.312 2747 krsi.c
krsi_dst_fail: dest:2 err:1031 force:0 blast:1
*** 2013-01-11 10:31:47.378
Redo shipping client performing standby login
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1017 and errmsg is 'ORA-01017: invalid username/password; logon denied
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
OCISessionBegin failed -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
*** 2013-01-11 10:31:47.691 4132 krsh.c
Error 1031 received logging on to the standby
*** 2013-01-11 10:31:47.691 869 krsu.c
Error 1031 connecting to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
Error 1031 attaching to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
ORA-01031: insufficient privileges
*** 2013-01-11 10:31:47.691 4132 krsh.c
PING[ARC2]: Heartbeat failed to connect to standby 'orcl'. Error is 1031.
*** 2013-01-11 10:31:47.691 2747 krsi.c
krsi_dst_fail: dest:2 err:1031 force:0 blast:1
*** 2013-01-11 10:32:47.772
Redo shipping client performing standby login
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1017 and errmsg is 'ORA-01017: invalid username/password; logon denied
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
OCISessionBegin failed -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
*** 2013-01-11 10:32:48.069 4132 krsh.c
Error 1031 received logging on to the standby
*** 2013-01-11 10:32:48.069 869 krsu.c
Error 1031 connecting to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
Error 1031 attaching to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
ORA-01031: insufficient privileges
*** 2013-01-11 10:32:48.069 4132 krsh.c
PING[ARC2]: Heartbeat failed to connect to standby 'orcl'. Error is 1031.
*** 2013-01-11 10:32:48.069 2747 krsi.c
krsi_dst_fail: dest:2 err:1031 force:0 blast:1
*** 2013-01-11 10:33:48.135
Redo shipping client performing standby login
*** 2013-01-11 10:34:09.261
OCIServerAttach failed -1
.. Detailed OCI error val is 12170 and errmsg is 'ORA-12170: TNS:Connect timeout occurred
*** 2013-01-11 10:34:45.873
OCIServerAttach failed -1
.. Detailed OCI error val is 12170 and errmsg is 'ORA-12170: TNS:Connect timeout occurred
*** 2013-01-11 10:35:06.984
OCIServerAttach failed -1
.. Detailed OCI error val is 12170 and errmsg is 'ORA-12170: TNS:Connect timeout occurred
*** 2013-01-11 10:35:06.984 4132 krsh.c
Error 12170 received logging on to the standby
*** 2013-01-11 10:35:06.984 869 krsu.c
Error 12170 connecting to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
Error 12170 attaching to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
ORA-12170: TNS:Connect timeout occurred
*** 2013-01-11 10:35:06.999 4132 krsh.c
PING[ARC2]: Heartbeat failed to connect to standby 'orcl'. Error is 12170.
*** 2013-01-11 10:35:06.999 2747 krsi.c
krsi_dst_fail: dest:2 err:12170 force:0 blast:1
*** 2013-01-11 10:36:07.063
Redo shipping client performing standby login
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1017 and errmsg is 'ORA-01017: invalid username/password; logon denied
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
OCISessionBegin failed -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
*** 2013-01-11 10:36:07.267 4132 krsh.c
Error 1031 received logging on to the standby
*** 2013-01-11 10:36:07.267 869 krsu.c
Error 1031 connecting to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
Error 1031 attaching to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
ORA-01031: insufficient privileges
*** 2013-01-11 10:36:07.267 4132 krsh.c
PING[ARC2]: Heartbeat failed to connect to standby 'orcl'. Error is 1031.
*** 2013-01-11 10:36:07.267 2747 krsi.c
krsi_dst_fail: dest:2 err:1031 force:0 blast:1
2. Please find the query results.
From Primary:
SQL> set lines 200
SQL> set numwidth 15
SQL> column ID format 99
SQL> column "SRLs" format 99
SQL> column active format 99
SQL> col type format a4
SQL> select ds.dest_id id
2 , ad.status
3 , ds.database_mode db_mode
4 , ad.archiver type
5 , ds.recovery_mode
6 , ds.protection_mode
7 , ds.standby_logfile_count "SRLs"
8 , ds.standby_logfile_active active
9 , ds.archived_seq#
10 from v$archive_dest_status ds
11 , v$archive_dest ad
12 where ds.dest_id = ad.dest_id
13 and ad.status != 'INACTIVE'
14 order by
15 ds.dest_id
16 /
ID STATUS DB_MODE TYPE RECOVERY_MODE PROTECTION_MODE SRLs ACTIVE ARCHIVED_SEQ#
1 VALID OPEN ARCH IDLE MAXIMUM PERFORMANCE 0 0 72
2 ERROR UNKNOWN LGWR IDLE MAXIMUM PERFORMANCE 0 0 0
From Standby:
SQL> set lines 200
SQL> set numwidth 15
SQL> column ID format 99
SQL> column "SRLs" format 99
SQL> column active format 99
SQL> col type format a4
SQL> select ds.dest_id id
2 , ad.status
3 , ds.database_mode db_mode
4 , ad.archiver type
5 , ds.recovery_mode
6 , ds.protection_mode
7 , ds.standby_logfile_count "SRLs"
8 , ds.standby_logfile_active active
9 , ds.archived_seq#
10 from v$archive_dest_status ds
11 , v$archive_dest ad
12 where ds.dest_id = ad.dest_id
13 and ad.status != 'INACTIVE'
14 order by
15 ds.dest_id
16 /
ID STATUS DB_MODE TYPE RECOVERY_MODE PROTECTION_MODE SRLs ACTIVE ARCHIVED_SEQ#
1 VALID OPEN ARCH IDLE MAXIMUM PERFORMANCE 0 0 72
2 ERROR UNKNOWN LGWR IDLE MAXIMUM PERFORMANCE 0 0 0
Regards
Srinivasan R -
Problems with "SecondMidletServlet.java"
Hi guys, I'm now trying to use MIDlet to connnect a servlet which will retrieve the data from MS Access database.
I had tried the sample programs(First & SecondMidletServlet) in this site. It's fine for me to run the "FirstMidletServlet.java"... but I need the more advance method - POST. When I run "SecondMidletServlet.java", the MIDlet program is stopped after I click the 'submit' button where the program asking me "Is it OK to use airtime?"... Even i choose 'Yes', it doesn't work..
Do anyone could help? Please kindly tell me what's the problem behind.... Thanks!!!Yes, here it's:
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
import javax.microedition.io.*;
import java.io.*;
* An example MIDlet with simple "Hello" text and an Exit command.
* Refer to the startApp, pauseApp, and destroyApp
* methods so see how each handles the requested transition.
* @author Ken_2
* @version
public class GetNpost extends MIDlet implements CommandListener {
private Display display; // The display for this MIDlet
private Form fmMain;
private Alert alError;
private Command cmGET;
private Command cmPOST;
private Command cmExit; // The exit command
private TextField tfAcct;
private TextField tfPwd;
private StringItem siBalance;
private String errorMsg = null;
public GetNpost() {
display = Display.getDisplay(this);
//Create Command
cmGET = new Command ("GET", Command.SCREEN, 2);
cmPOST = new Command ("POST", Command.SCREEN, 3);
cmExit = new Command("Exit", Command.SCREEN, 1);
// Textfields
tfAcct = new TextField("Account:", "", 5, TextField.NUMERIC);
tfPwd = new TextField("Password:", "", 10, TextField.ANY | TextField.PASSWORD);
//Balance string item
siBalance = new StringItem("Balance: $","");
// Create Form, add commands & Components, listen for events
fmMain = new Form("Account Information");
fmMain.addCommand(cmExit);
fmMain.addCommand(cmGET);
fmMain.addCommand(cmPOST);
fmMain.append(tfAcct);
fmMain.append(tfPwd);
fmMain.append(siBalance);
fmMain.setCommandListener(this);
* Start up the Hello MIDlet by creating the TextBox and associating
* the exit command and listener.
public void startApp() {
display.setCurrent(fmMain);
* Pause is a no-op since there are no background activities or
* record stores that need to be closed.
public void pauseApp() {
* Destroy must cleanup everything not handled by the garbage collector.
* In this case there is nothing to cleanup.
public void destroyApp(boolean unconditional) {
* Respond to commands, including exit
* On the exit command, cleanup and notify that the MIDlet has been destroyed.
public void commandAction(Command c, Displayable s) {
if (c == cmGET || c == cmPOST) {
try
if (c == cmGET)
lookupBalance_withGET();
else
lookupBalance_withPOST();
catch (Exception e)
System.err.println("Msg: " + e.toString());
else if (c == cmExit)
destroyApp(false);
notifyDestroyed();
* Access servlet using GET
private void lookupBalance_withGET() throws IOException
HttpConnection http = null;
InputStream iStrm = null;
boolean ret = false;
// Data is passed at the end of url for GET
String url = "http://ismt.no-ip.com/servlet/DRMfypGroup2.GetNpostServlet" + "?" + "account=" + tfAcct.getString() + "&" + "password=" + tfPwd.getString();
try
http = (HttpConnection) Connector.open(url);
// Client Request
// 1) Send request method
http.setRequestMethod(HttpConnection.GET);
// 2) Send header information - none
// 3) Send boday/data - data is at the end of URL
// Server Response
iStrm = http.openInputStream();
// Three steps are processed in this method call
ret = processServerResponse( http, iStrm);
finally
// Clean up
if (iStrm != null)
iStrm.close();
if (http != null)
http.close();
// Process request failed, show alert
if (ret == false)
showAlert(errorMsg);
* Access servlet using POST
private void lookupBalance_withPOST() throws IOException
HttpConnection http = null;
OutputStream oStrm = null;
InputStream iStrm = null;
boolean ret = false;
// Data is passed at the end of url for GET
String url = "http://ismt.no-ip.com/servlet/DRMfypGroup2.GetNpostServlet" + "?" + "account=" + tfAcct.getString() + "&" + "password=" + tfPwd.getString();
try
http = (HttpConnection) Connector.open(url);
oStrm = http.openOutputStream();
// Client Request
// 1) Send request method
http.setRequestMethod(HttpConnection.POST);
// 2) Send header information. Required for POST to work!
http.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
// If you experience connectoin/IO problems, try removing the comment from the following line
//http.serRequestProperty("Connection", "clsoe");
// 3) Send boday/data
// Write account number
byte data[] = ("account=" + tfAcct.getString()).getBytes();
oStrm.write(data);
oStrm.flush();
// Server Response
iStrm = http.openInputStream();
// Three steps are processed in this method call
ret = processServerResponse(http, iStrm);
finally
// Clean up
if (iStrm != null)
iStrm.close();
if (http != null)
http.close();
// Process request failed, show alert
if (ret == false)
showAlert(errorMsg);
* Process a response from a server
private boolean processServerResponse(HttpConnection http, InputStream iStrm) throws IOException
// Reset error message
errorMsg = null;
// 1) Get Statis Line
if (http.getResponseCode() == HttpConnection.HTTP_OK)
// 2) Get header information - none
// 3) Get body (data)
int length = (int) http.getLength();
String str;
if (length != -1)
byte servletData[] = new byte[length];
iStrm.read(servletData);
str = new String(servletData);
else // Length not available...
ByteArrayOutputStream bStrm = new ByteArrayOutputStream();
int ch;
while ( (ch =iStrm.read()) != -1)
bStrm.write(ch);
str = new String (bStrm.toByteArray());
bStrm.close();
//Update the string item on the display
siBalance.setText(str);
return true;
else
// Use message from the servlet
errorMsg = new String ( http.getResponseMessage() );
return false;
* Show an alert
private void showAlert(String msg)
// Create Alert, use message returned from servlet
alError = new Alert("Error", msg, null, AlertType.ERROR);
// Set Alert to type model
alError.setTimeout(Alert.FOREVER);
// Display the Alert. Once dismissed, display the form
display.setCurrent( alError, fmMain);
}Thanks!!! -
RWB in SAP XI in simple manner
hi i want to know the details of RWB in SAP XI ,any one send me the document ,that should be in simple language
Hi Surya,
In SAP XI there is Runtime Workbench(RWB) for component monitoring, msg monitoring, alert configuration etc......
so basically by RWB you can monitor your XI system - for the msg coming and going out of XI, the communication channels which you have made have any error or not this you can see in Adapter monitoring, you can configure alerts for your scenarios to get alerts if any error occurs in your scenario, you have alert inbox to get your alerts.......so you can do end to end monitoring of your XI scenarios through RWB.
Also see the below link:
http://help.sap.com/saphelp_nw2004s/helpdata/en/88/21bc3ff6beeb0ce10000000a114084/frameset.htm
Thanks,
Rajeev Gupta
Message was edited by:
RAJEEV GUPTA -
SXMB_MONI -- Runtime Table
Hi,
In SXMB_MONI --> Inbound -> SOAP Header --> RunTime I can see this values below (HOST is most interesting).
I have problems debugging (SXMB_MONI) in order to see which table(s) data is stored.
<SAP:RunTime xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
<SAP:Host>sappi03</SAP:Host>
Any one knows which table to look in ?
Br
Martin
Edited by: Martin Andersson on Jun 17, 2008 2:42 AM
Edited by: Martin Andersson on Jun 17, 2008 5:34 AMHi Martin,
Here are some tables.
SXMS_AE_AUDITCNF____________XI: Adapter Runtime Data
SXMS_AS_STATUS__________________Status Table of Synchronous/Asynchronous Bridge
SXMS_MULTIM_REF__________________Link-Table Leading Message - SubMessages
SXMS_PACKCOUNT__________________Counter for Packed Messages
SXMS_QUEUE_PRIO__________________Prioritized EOIO Queues
SXMS_SYSPAR__________________SAP System Parameter and Storage Location
SXMSAEADPMOD__________________XI: Adapter and Module Information
SXMSAEADPMODCHN____________XI: Adapter Module Chains
SXMSAEAGG________________________XI: Adapter Runtime Data (Aggregated)
SXMSAERAW________________________XI: Adapter Runtime Data (Raw Data)
SXMSALERTCNTRL____________ Control Table for XI Alerts
SXMSALERTCONTROL____________Control Table
SXMSALERTLOG__________________XI Alert Log
SXMSALERTLOGGER____________XI Alert Logs
SXMSALERTRULES__________________Rules for Alert Generation: Msg Header ->Alert Category
SXMSALERTSTEPS__________________PMI Process Steps for Alerting
SXMSALERTTMSTMP____________Time Stamp of Last PMI Process Instance Chhecked
SXMSARCITF________________________XML Message Archiving
SXMSCLUP________________________XMB: Property Cluster
SXMSCLUP2________________________XMB: Property Cluster (Switch Table)
SXMSCLUR________________________XMB: Resources Cluster
SXMSCLUR2________________________XMB: Resources Cluster (Switch Table)
SXMSCONFDF__________________XMS: Integration Engine Configuration Para
SXMSCONFVL__________________XMS: Integration Engine Configuration Data
SXMSDCONF________________________Integration Engine: Settings for Deletion
SXMSEPCACHE__________________XI: Runtime Cache for Exchange Profile
SXMSEPCLOG__________________XI: Log Table for Runtime Cache for Exchange Profile
SXMSFTEST________________________Table for XI Runtime Engine Test
SXMSGLOBAL__________________Integration Engine: Obsolete
SXMSHELP________________________Help Assistant
SXMSHELPT________________________Help Assistant (Short Text)
SXMSINTERFACE__________________Sender/Receiver Definition
SXMSINTF________________________XMB: Container for Application Monitoring(Template)
SXMSINTFT________________________Sender/Receiver Interfaces
SXMSITF________________________Search Help for Interface for Archiving (Without Content)
SXMSJINFO________________________Integration Engine: Job Information
SXMSJOBS________________________Jobs for Time-Controlled Message Processin
SXMSMONSEL__________________Selection Table for Integ. Engine Application Monitoring
SXMSMONSET__________________Selection Table for Integ. Engine Application Monitoring
SXMSMSGDEF__________________Message Definition
SXMSMSGFILLED__________________Message for a Message Definition Saved
SXMSMSGFILTER__________________SAP XI: Filter for Sender/Receiver Attributes
SXMSMSGINDCUS__________________SAP XI: Configuration Indexing of Messages
SXMSMSGINDLOG__________________SAP XI: Message Indexing Log
SXMSMSGINDSRV__________________SAP XI: Services for Indexing Messages
SXMSMSGPMI__________________Using XI Messages in PMI
SXMSMSGREF__________________Message Reference Storage
SXMSMSTAT________________________Exchange Infrastructure: Message Status
SXMSMSTATT__________________Exchange Infrastructure: Message Status Description
SXMSPADM________________________XMS Pipeline: Execution Settings
SXMSPCONF________________________XMB: Administrative Data for Pipeline Conf
SXMSPEMAS________________________Integration Engine: Enhanced Message Queue(Master)
SXMSPEMAS2__________________Integration Engine: Extended Message Queue(Switch Table)
SXMSPENTRY__________________XMS: Map Inbound Pipelines to XMB Pipeline
SXMSPERFC________________________SXMS: Runtime Measurement Results
SXMSPERFCD__________________SXMS: Data Table for Online Performance Data
SXMSPERFCH__________________SXMS: Header Table for Online Performance Data
SXMSPERFT________________________XMS: Monitor Table for Runtime Measurement
SXMSPERRO2________________________XMB: Message Queue (Entries with Errors) (Switch Table)
SXMSPERROR__________________XML Message Broker: Message Queue (Incorrect Entries)
SXMSPFADDRESS__________________Integration Engine: Sender and Receiver Information
SXMSPFAGG________________________Integration Engine: Aggregated Data for Performance Display
SXMSPFCOMPONENT____________Integration Engine: Component Information
SXMSPFMSGTYPEDB____________XMB: Selektionsdaten für Monitoring
SXMSPFRAWD__________________Integration Engine: Data Table for Raw Data for Performance
SXMSPFRAWH__________________Integn Eng: Header Table for Raw Data for Performance Evaln
SXMSPFSEARCHDB__________________XMB: Selektionsdaten für Monitoring
SXMSPHIST________________________XML Message Broker: History
SXMSPHIST2________________________XML Message Broker: History (Switch Table)
SXMSPIPE________________________XML Message Server: Pipeline Definition
SXMSPIPEEL________________________Pipeline Element Definition
SXMSPIPET________________________XMS: Pipeline Description
SXMSPLELT________________________XMS: Description of Pipeline Elements
SXMSPLSRV________________________XMS: Pipeline Service Specification
SXMSPLSRVT________________________XMS: Description of Pipeline Services
SXMSPMAST________________________Integration Engine: Message Queue (Master)
SXMSPMAST2__________________XML Message Broker: Message Queue (Master)
SXMSPMIRAW__________________Integration Engine: Performance Data Extracted from PMI
SXMSPTRACE__________________HTTP Trace
SXMSPVERS________________________Integration Engine: Message Version
SXMSPVERS2________________________Integration Engine: Message Version (Switch Table)
SXMSQUEUE_RCV__________________Mapping Queue Receiver
SXMSQUEUE_REORG____________Storage Location for Queues That Are Being Reorganized
SXMSQUEUESTATUS____________Queue Status During Upgrade Phase
SXMSRECVT________________________Technical Receiver
SXMSRTDIAG__________________Entries for Support Diagnostics
SXMSSPDIAG________________________Objects for SXMS SUPPORT DIAGNOSTICS
SXMSSPDIAGS__________________Objects for SXMS SUPPORT DIAGNOSTICS
SXMSSYERR________________________XMS: System Error Error Codes
SXMSSYERRT________________________XMS: Brief Description of System Error Codes
SXMSTRANS_CONFIG____________Configuration Table for Message Transfer
SXMSTRANS_HEADER____________Lookup Table for Message Transfer
SXMSTRANS_MSG__________________Body Table for Message Transfer
SXMSTRC_DAT__________________XMS: Trace Data
SXMSTRC_SEL__________________XMS: Selection Criteria for Trace Start
SXMSTSACT________________________Action Table for Integration Server Troublshooting
SXMSTSTRIG________________________Table of Troubleshooting Trigger
Best Regards,
Nagesh Y R
Edited by: Nagesh Rudhra Yellapu on Jun 17, 2008 1:43 PM -
Concatinating multiline by using UDF
Hi all,
In my scenario , I am having the condition , If that condition is true then we have to concatenate the multiple note into one value. Here I written UDFby selecting the option as Context value, In this case it is returing void. How can I add the concating values to resultList and how can I map to target field.
Regards,
SriEsha,
I do not have specific documentation about its implementation, but :
1 - import SALERT_CREATE RFC structure definition (I did this in a CORE swcv that is referenced across all needing swcvs)
2 - I built my own RFC lookup wrapper to provide easy to use lookup methods (input as String or DOM object)
3 - I built SALERT_CREATE input structures and values in a dedicated static class called in my mappings
4 - this class calls RFC lookup wrapper method that serialize those input values and calls the suitable RFC receiver channel with the whole msg containing alert details (providing category and containers are defined in ALRTCATDEF)
I'll try to get some source code snippets if you need'em
Rgds
Chris -
Trapped at "Is it OK to use Air time?", HELP!
I finished a MIDlet program but I was stooped at the "Is it OK to use Air time?" warning even I clicked 'Yes'. However, when I run this program at the server machine, the warning doesn't show up.
What's the problem indeed? Can I disable this warning?
following is my codes:
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
import javax.microedition.io.*;
import java.io.*;
* An example MIDlet with simple "Hello" text and an Exit command.
* Refer to the startApp, pauseApp, and destroyApp
* methods so see how each handles the requested transition.
* @author Ken_2
* @version
public class GetNpost extends MIDlet implements CommandListener {
private Display display; // The display for this MIDlet
private Form fmMain;
private Alert alError;
private Command cmGET;
private Command cmPOST;
private Command cmExit; // The exit command
private TextField tfAcct;
private TextField tfPwd;
private StringItem siBalance;
private String errorMsg = null;
public GetNpost() {
display = Display.getDisplay(this);
//Create Command
cmGET = new Command ("GET", Command.SCREEN, 2);
cmPOST = new Command ("POST", Command.SCREEN, 3);
cmExit = new Command("Exit", Command.SCREEN, 1);
// Textfields
tfAcct = new TextField("Account:", "", 5, TextField.NUMERIC);
tfPwd = new TextField("Password:", "", 10, TextField.ANY | TextField.PASSWORD);
//Balance string item
siBalance = new StringItem("Balance: $","");
// Create Form, add commands & Components, listen for events
fmMain = new Form("Account Information");
fmMain.addCommand(cmExit);
fmMain.addCommand(cmGET);
fmMain.addCommand(cmPOST);
fmMain.append(tfAcct);
fmMain.append(tfPwd);
fmMain.append(siBalance);
fmMain.setCommandListener(this);
* Start up the Hello MIDlet by creating the TextBox and associating
* the exit command and listener.
public void startApp() {
display.setCurrent(fmMain);
* Pause is a no-op since there are no background activities or
* record stores that need to be closed.
public void pauseApp() {
* Destroy must cleanup everything not handled by the garbage collector.
* In this case there is nothing to cleanup.
public void destroyApp(boolean unconditional) {
* Respond to commands, including exit
* On the exit command, cleanup and notify that the MIDlet has been destroyed.
public void commandAction(Command c, Displayable s) {
if (c == cmGET || c == cmPOST) {
try
if (c == cmGET)
lookupBalance_withGET();
else
lookupBalance_withPOST();
catch (Exception e)
System.err.println("Msg: " + e.toString());
else if (c == cmExit)
destroyApp(false);
notifyDestroyed();
* Access servlet using GET
private void lookupBalance_withGET() throws IOException
HttpConnection http = null;
InputStream iStrm = null;
boolean ret = false;
// Data is passed at the end of url for GET
String url = "http://ismt.no-ip.com/servlet/DRMfypGroup2.GetNpostServlet" + "?" + "account=" + tfAcct.getString() + "&" + "password=" + tfPwd.getString();
try
http = (HttpConnection) Connector.open(url);
// Client Request
// 1) Send request method
http.setRequestMethod(HttpConnection.GET);
// 2) Send header information - none
// 3) Send boday/data - data is at the end of URL
// Server Response
iStrm = http.openInputStream();
// Three steps are processed in this method call
ret = processServerResponse( http, iStrm);
finally
// Clean up
if (iStrm != null)
iStrm.close();
if (http != null)
http.close();
// Process request failed, show alert
if (ret == false)
showAlert(errorMsg);
* Access servlet using POST
private void lookupBalance_withPOST() throws IOException
HttpConnection http = null;
OutputStream oStrm = null;
InputStream iStrm = null;
boolean ret = false;
// Data is passed at the end of url for GET
String url = "http://ismt.no-ip.com/servlet/DRMfypGroup2.GetNpostServlet" + "?" + "account=" + tfAcct.getString() + "&" + "password=" + tfPwd.getString();
try
http = (HttpConnection) Connector.open(url);
oStrm = http.openOutputStream();
// Client Request
// 1) Send request method
http.setRequestMethod(HttpConnection.POST);
// 2) Send header information. Required for POST to work!
http.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
// If you experience connectoin/IO problems, try removing the comment from the following line
//http.serRequestProperty("Connection", "clsoe");
// 3) Send boday/data
// Write account number
byte data[] = ("account=" + tfAcct.getString()).getBytes();
oStrm.write(data);
oStrm.flush();
// Server Response
iStrm = http.openInputStream();
// Three steps are processed in this method call
ret = processServerResponse(http, iStrm);
finally
// Clean up
if (iStrm != null)
iStrm.close();
if (http != null)
http.close();
// Process request failed, show alert
if (ret == false)
showAlert(errorMsg);
* Process a response from a server
private boolean processServerResponse(HttpConnection http, InputStream iStrm) throws IOException
// Reset error message
errorMsg = null;
// 1) Get Statis Line
if (http.getResponseCode() == HttpConnection.HTTP_OK)
// 2) Get header information - none
// 3) Get body (data)
int length = (int) http.getLength();
String str;
if (length != -1)
byte servletData[] = new byte[length];
iStrm.read(servletData);
str = new String(servletData);
else // Length not available...
ByteArrayOutputStream bStrm = new ByteArrayOutputStream();
int ch;
while ( (ch =iStrm.read()) != -1)
bStrm.write(ch);
str = new String (bStrm.toByteArray());
bStrm.close();
//Update the string item on the display
siBalance.setText(str);
return true;
else
// Use message from the servlet
errorMsg = new String ( http.getResponseMessage() );
return false;
* Show an alert
private void showAlert(String msg)
// Create Alert, use message returned from servlet
alError = new Alert("Error", msg, null, AlertType.ERROR);
// Set Alert to type model
alError.setTimeout(Alert.FOREVER);
// Display the Alert. Once dismissed, display the form
display.setCurrent( alError, fmMain);
}Ooops - adding to my own reply: this is valid for latest Sun Java studio Mobility (available at http://developers.sun.com/prodtech/javatools/jsmobility/index.html). Older versions have different wtk directory - search for _policy.txt in the install directory.
-
How can I send an email when a function returns false?
Im trying to make this code work, but i still receive an email when the function is equal to false. Can anyone assist me in finding the issue? What the program does is look for servers that has a set limit (in GB) on specific drives.
#This Program goes through all the servers and informs any level below the limit
$ErrorActionPreference = "SilentlyContinue";
$scriptpath = $MyInvocation.MyCommand.Definition
$dir = Split-Path $scriptpath
#=================Function============
Function isLow($server, $drive, $limit)
$disk = Get-WmiObject -ComputerName $server -Class Win32_LogicalDisk -Filter "DriveType = 3 and DeviceID = '$drive'";
[float]$size = $disk.Capacity;
[float]$freespace = $disk.FreeSpace;
$sizeGB = [Math]::Round($size / 1073741824, 2);
$freeSpaceGB = [Math]::Round($freespace / 1073741824, 2);
if($freeSpaceGB -lt $limit){
return $true;
else{
return $false;
#================Servers==============
#------------------###server1--------------
$server = "###server1";
$drive = "C:";
$lim = 25;
if(isLow $server $drive $lim)
$Alert += $server + " || " + $drive + " is low<br>"
$server = "###server1";
$drive = "D:";
$lim = 35;
if(isLow $server $drive $lim)
$Alert += $server + " || " + $drive + " is low<br>"
#-----------------###(more servers ect.)--------------
#================EMAIL===============
$smtpServer = "192.168.x.x"
$ReportSender = "[email protected]"
$users = "[email protected]"
$MailSubject = "ALERT!!! Low DiskSpace"
foreach($user in $users){
if($true){
Write-Host "Sending Email notification to $user"
$smtp = New-Object Net.Mail.SmtpClient($smtpServer)
$msg = New-Object Net.Mail.MailMessage
$msg.To.Add($user)
$msg.From = $ReportSender
$msg.Subject = $MailSubject
$msg.IsBodyHTML = $True
$msg.Body = $Alert
$smtp.Send($msg)
else($false){
Write-Host "No one is pass the limit"Using a CSV is good. Just load the "$servers" hash array from a CSV and the rest will work the same. The overall structure would work better if it was more like this.
Function isLow($server, $drive, $limit){
$disk = Get-WmiObject -ComputerName $server -Class Win32_LogicalDisk -Filter "DriveType = 3 and DeviceID = '$drive'"
if($disk.FreeSSpace -lt $limit){
$true
}else{
$false
$servers=@()
$servers=@{
Server="###server1"
Drive='C:'
Limit=25Gb
$servers=@{
Server="###server2"
Drive='D:'
Limit=15Gb
$servers=@{
Server="###server3"
Drive='C:'
Limit=50Gb
$results=foreach($servers in $servers){
if(isLow $server.Server $server.Drive $server.Limit){
'{0} || {1} is low<br>' -f $servers.Server,$server.Drive
if($results){
Write-Host 'Sending Email notification' -fore green
$mailprops=@{
SmtpServer='192.168.x.x'
From='[email protected]'
To=$users
Subject='ALERT!!! Low DiskSpace'
Body=$results
BodyAsHtml=$true
Send-MailMessage @mailprops
}else{
Write-Host 'No one is past the limit' -ForegroundColor green
The biggest issue is to realize that this is a computer. If you type the same thing more than once then consider that the computer can do it for you. Once you learn to think like a computer all of this becomes easier.
¯\_(ツ)_/¯ -
I am using javascript to try and populate a page with data from a row that is double-clicked.
I am using the following javascript to output the contents of the row but i want the contents of the row to populate another page when it is double clicked. Can anyone help with this? Or suggest what i change in the javascript i am using?
Thanks.
<script>
function myhandler(){
alert(value="#{RouteHandler.carrierCode}");
alert(value="#{RouteHandler.departureAirport}");
alert(value="#{RouteHandler.arrivalAirport}");
this.style.backgroundColor='#ffffff';
</script>
I am calling the javascript function in the following dataTable:
t:dataTable id="routeList" value="#{RouteHandler.routeList}" var="rowElement" cellspacing="0" cellpadding="3"
ondblclick="javascript:myhandler()" border="0" headerClass="listhead" columnClasses="listresults" bgcolor="#FFFFFF">
<t:column width="104">
<h:outputText value="#{rowElement.carrierCode}" />
</t:column>
<t:column width="165">
<h:outputText value="#{rowElement.departureAirport}" />
</t:column>
<t:column width="920">
<h:outputText value="#{rowElement.arrivalAirport}" />
</t:column>
</t:dataTable>If you want javascript itself, then how about this:
function testDblClick() {
var evt = window.event;
var destElement = evt.srcElement;
if(destElement.tagName == 'BODY') return;
var parentEle = destElement.parentNode;
while(parentEle.tagName != "TR") {
parentEle = parentEle.parentNode;
if(parentEle == null) break;
var msg = '';
var childNode = null;
for(var i=0;i<parentEle.childNodes.length;++i) {
childNode = parentEle.childNodes;
msg += parentEle.childNodes[i].innerHTML + " | ";
if(msg != '') alert(msg);
code}
At the end of you JSP page inculde this code:
document.ondblclick = testDblClick; -
Installation 10xe on linux fc4
I instal oracle 10 XE on linux FC4. I think I made all according the installation guide (pre+post) installation. I need to run 10xe on localhost-only machine.
my install. tree: /usr/lib/oracle/xe/app/oracle/admin/XE/...
Here are my last rows from alert_XE.log:
/usr/lib/oracle/xe/app/oracle/admin/XE/bdump/alert_XE. log
Sun Mar 4 23:36:23 2007
Starting ORACLE instance (normal)
Cannot determine all dependent dynamic libraries for /proc/self/exe
The open() system call failed for the file /proc/self/exe
Linux Error: 13: Permission denied
LICENSE_MAX_SESSION = 0
LICENSE_SESSIONS_WARNING = 0
Picked latch-free SCN scheme 2
Using LOG_ARCHIVE_DEST_10 parameter default value as USE_DB_RECOVERY_FILE_DEST
Autotune of undo retention is turned on.
IMODE=BR
ILAT =10
LICENSE_MAX_USERS = 0
SYS auditing is disabled
ksdpec: called for event 13740 prior to event group initialization
Starting up ORACLE RDBMS Version: 10.2.0.1.0.
System parameters with non-default values:
sessions = 49
sga_target = 205520896
control_files = /usr/lib/oracle/xe/oradata/XE/control.dbf
compatible = 10.2.0.1.0
db_recovery_file_dest = /usr/lib/oracle/xe/app/oracle/flash_recovery_area
db_recovery_file_dest_size= 10737418240
undo_management = AUTO
undo_tablespace = UNDO
remote_login_passwordfile= EXCLUSIVE
dispatchers = (PROTOCOL=TCP) (SERVICE=XEXDB)
shared_servers = 4
job_queue_processes = 4
background_dump_dest = /usr/lib/oracle/xe/app/oracle/admin/XE/bdump
user_dump_dest = /usr/lib/oracle/xe/app/oracle/admin/XE/udump
core_dump_dest = /usr/lib/oracle/xe/app/oracle/admin/XE/cdump
audit_file_dest = /usr/lib/oracle/xe/app/oracle/admin/XE/adump
db_name = XE
open_cursors = 300
os_authent_prefix =
pga_aggregate_target = 67895296
Sun Mar 4 23:36:24 2007
Errors in file /usr/lib/oracle/xe/app/oracle/admin/XE/udump/xe_ora_4665.trc:
ORA-00600: internal error code, arguments: [keltnfy-ldmInit], [46], [1], [], [], [], [], []
USER: terminating instance due to error 600
Instance terminated by USER, pid = 4665
my login falls with following:
conn as sysdba
Enter user-name: system
Enter password:********
Connected to an idle instance.
lsnr status gives following:
lsnrctl status
SP2-0734: unknown command beginning "lsnrctl st..." - rest of line ignored.
Maybe path set or privileges went wrong
could anybody hit me the right direction? thanksmy /etc/host :
127.0.0.1 localhost.localdomain localhost
...and I must add that I gave up for now possibility to administer database via apex GUI (on 127.0.0.1:8080/apex). It would be enough to start db anyhow.
for me it is a bit strange this msg in alert file:
"Cannot determine all dependent dynamic libraries for /proc/self/exe
The open() system call failed for the file /proc/self/exe"
...but I think my PATH is good
thanks for any idea
Message was edited by:
user560267
Maybe you are looking for
-
Cyan and yellow are not printing on HP officejet pro 8500 all-in-one printer A909
I have an Officejet Pro All-in-One 8500 A909a printer, using OS X operating system. Cyan and yellow are not printing. I've ran the Print Quality Diagnostics Page and they do not show up there or on the align page. My ink levels are good. Can you he
-
Videos not showing up on iphone4 via hone sharing?
Hi, I recently sold my MacBook pro and I'm going to buy a MacBook air, but in the meantime I'm Using my wife's hp laptop. I added a movie and a couple tv shows and they are working fine on the computer, they are in the right format. Hone sharing is o
-
Wireless and ePrint with Photosmart D110
Hi Recently changed router and printing stopped. Printer was reconfigured to router and the wireless test was successful. When I try to install the driver on the laptop, it wont recognise the IP address that the printer shows. So I tried the ePrint f
-
Can't disconnect iPod right now and dont know what to do.
When I add a song to my iPod mini and then want to disconnect my iPod I get the comment:The iPod cannot be ejected because it contains files that are in use by another application. I never had this before and don't know how to disconnect my iPod at t
-
Hello, I am wondering if this is possible, and how to execute. We have a separate physical network for guest wireless access that we will be using a cisco 2504 controller and AP's. I wanted to manage the WLC from the corporate network, and wanted to