SELECT THREAD#, LOW_SEQUENCE#, HIGH_SEQUENCE# FROM V$ARCHIVE_GAP;
SQL>ALTER DATABASE REGISTER PHYSICAL LOGFILE 'filespec1';
Листинг 9. Скрипт, выполняющий поиск ошибок в файле alert.log
#!/bin/sh
#
if [ -f /tmp/memsg_no ]
then exit ;
fi
HOST=`/bin/hostname`
MYMAIL="sergkosko@ua.fm"
FILESLIST=`ls -R /ora/admin/*/bdump/*.log`
for i in ${FILESLIST}
do
filename1=`basename ${i}`
dir1=`dirname ${i}|sed 's/\/ora\/admin\///g
s/\/bdump//g'`
MSG=`/usr/local/bin/fetchlog -F 1:100:1000:s ${i} /var/adm/${filename1}.${dir1}`
if [ $? -gt 0 ]
then
MSG1=`echo "${MSG}" | egrep -i "ora-"`
if [ -n "$MSG1" ]
then
echo "\n${HOST}:${filename1}:${MSG1}\n"| /bin/mail ${MYMAIL}
fi
fi
done
testcase$EDITOR=vi;export EDITOR
testcase$crontab -e
testcase$0,15,30,45 * * * * /usr/local/bin/fetchalert >/dev/null 2>&1
-----------------------------------------------------------------------------------------------------------------
Библиотека Prototype – ваш путь в Web 2.0
Кирилл Сухов
allNodes = $("firstDiv", "secondDiv");
for(i = 0; i < allNodes.length; i++) {
alert(allNodes[i].innerHTML);
}
Single class name
Multiple class names
- List item 1
- List item 2
- List item 3
w('apples bananas kiwis')
// возвращает массив ['apples', 'bananas', 'kiwis']
var h = $H({ name: 'Prototype', version: 1.5 });
var h = new Hash({ ... });
h.keys().sort().join(', ')
h.merge({ version: '1.5 final', author: 'Sam Stephenson' });
h.each(function(pair) {
alert(pair.key + ' = "' + pair.value + '"'); });
$H({ action: 'ship', order_id: 123, fees: ['fee1', 'fee2'] }).toQueryString()
llNodes = Form.getElements("myform");
for(i = 0; i < allNodes.length; i++) {
//операции над каждым элементом
}
'field1=value1&field2=value2&field3=value3'
var g_books = [
{
id: 1,
name: 'Code Generation in Action',
first: 'Jack',
last: 'Herrington',
publisher: 'Manning'
}, {
id: 2,
name: 'PHP Hacks',
first: 'Jack',
last: 'Herrington',
publisher: 'O\'Reilly'
}, {
id: 3,
name: 'Podcasting Hacks',
first: 'Jack',
last: 'Herrington',
publisher: 'O\'Reilly'
}
];
var person = '{ "name": "Violet", "occupation": "character" }'.evalJSON();
person.name;
person = 'grabUserPassword()'.evalJSON(true);
person = '/*-secure-\n{"name": "Violet", "occupation": "character"}\n*/'.evalJSON()
person.name;
'/*-secure-\n{"name": "Violet", "occupation": "character", "age": 25}\n*/'.unfilterJSON()
// получаем на выходе: '{"name": "Violet", "occupation": "character", "age": 25}'
var Person = Class.create();
Person.prototype = {
initialize: function(name, age) {
this.name = name;
this.age = age;
},
toJSON: function() {
return ('My name is ' + this.name +
' and I am ' + this.age + ' years old.').toJSON();
}
};
var john = new Person('John', 49);
Object.toJSON(john);
var myOpts = {onComplete: showResponse,
onLoaded: registerLoaded};
var win = new Window({className: "spread", title: "Ruby on Rails", top:70, left:100, width:300, height:200, url: "http://www.rubyonrails.org/", showEffectOptions: {duration:1.5}}) win.show();
-----------------------------------------------------------------------------------------------------------------