General :: Oracle - Reading Alert Log File?

Mar 2, 2011

My requirement is that I wanted a shell script which should read the alert.log(oracle) and should send the alert to my email if any error encountered on daily basis. I have a script which does the same job but at the same time it creates a new alert.log whenever any error occur. But I don't want the new alert log I wanted to read the same alert log daily and if any new error come should alert as email.

View 3 Replies


ADVERTISEMENT

General :: Why Is Reading A FILE Faster Than Reading A VARIABLE?

May 4, 2011

I don't understand the results of a simple performance test I ran using two basic scripts (running on a high end server):

perfVar.zsh :

#!/bin/zsh -f
MYVAR=`cat $1`
for i in {1..10}

[code]...

Performance test result:

> time ./perfVar.zsh BigTextFile > /dev/null
./perfVar.zsh FE > /dev/null 6.86s user 0.32s system 100% cpu 7.177 total
> time ./perfCat.zsh BigTextFile > /dev/null
./perfCat.zsh FE > /dev/null 0.01s user 0.10s system 91% cpu 0.118 total

I would have thought that accessing a VARIABLE was way faster than reading a FILE on the file system... Why this result ?Is there a way to optimize the perfCat.zsh script by reducing the number of accesses to the file system ?

View 3 Replies View Related

General :: User For Oracle,tried To Install Oracle 10g On Redhat 5 But Gettinh The Same Error Message?

Nov 27, 2010

I'm a new user for oracle,tried to install oracle 10g on redhat linux 5 but gettinh the same error message.response/ runInstaller[oracle2@localhost database_10201]$ sh runInstaller _runInstaller: line 54:/tmp/database_10201/install/.oui: Permission denied_Doany one plz help me how to give full set of permisions to an user in linux to access a folder??

View 2 Replies View Related

Programming :: File Access Alert \ Only Gives The Processes Accessing The File At That Particular Moment?

Jul 11, 2011

I am trying to check what all processes are accessing a particular file (a UDP socket in my case) on a filesystem.I am using 'fuser' for that.But, it seems, it only gives the processes accessing the file at that particular moment.Is there any way to continuously run 'fuser' (or some other command) which will give all processes accessing the file during its run?OR is it possible to generate a filesystem alert when a particular process accesses the file?

View 1 Replies View Related

General :: Deleting File (Oracle Setup) From Root

Dec 18, 2010

I had copied oracle setup in the root. Now want to delete it. I tried the following commands, but couldn't succeed:

rm -R oracle-xe-univ-10.2.0.1-1.0.i386.rpm
rm: cannot remove `oracle-xe-univ-10.2.0.1-1.0.i386.rpm': No such file or directory

While this file there only in file system.

View 2 Replies View Related

General :: Reading Contents Of PDF File?

Jun 8, 2011

is there any API to read content of PDF file & store it in buffer?

View 14 Replies View Related

General :: Reading Info From One File In To Another?

Nov 17, 2010

been playing around making a server to play some games on running centos 5.5

what ive spent a while looking for (a few days) is a way to make a file which i will call startup this will contain some values

Code:
mod_directory="etpub"
port="27960"
log_name="console.log"
vm="0"
dedicated="2"

[Code].....

View 1 Replies View Related

General :: Shell Script To Import .exp File To Oracle From Cronjob?

Nov 18, 2010

I am trying to import .exp file to oracle database. I have written a script for the same, but i am able to run it manually with out any errors , but it failing from cronjob(Even though i am using absolute path every where) Follwoing is the command i am trying to execute from shell.

/opt/ORACLE/product/bin/imp test/test@testdb full=y ignore=y buffer=1000 log=/data01/import_all.log file=/data01/test.exp

View 2 Replies View Related

General :: Reading The Contents Of A .bkf File Using A Non-Microsoft OS?

Apr 20, 2010

I have a .bkf backup file, created by the Backup utility that Microsoft provides with Windows XP. Is there a way to read the contents of the file using a non-Microsoft OS, preferably Mac OS X or Linux?

View 1 Replies View Related

General :: Bash: Reading File Into Array?

Dec 2, 2010

I have a file named file.txt with the following contents

Code:

19 man
24 house
44 dyam
90 random

I want to read the file into array and store each line in each index. I've tried using the following code.

Code:

dataarray=($( < file.txt ))

It stores each word in each index rather than each line in each index.

View 3 Replies View Related

General :: Reading File Into Variable In Bash?

Mar 21, 2011

I know that cat can output the file, but how do you store that output in a variable to process:

Code:

CONTENT=cat file.txt

This doesn't seem to work?

View 3 Replies View Related

General :: Reading A File From A Remote Server?

Oct 15, 2010

I have an situation where I want to read a file into my script that lie on a remote server. I have ssh-keys set up just don't know how to do this.

View 7 Replies View Related

General :: Reading Changing File In Real Time

May 27, 2010

I know this command exists I just can't seem to find it. I want to see the last few lines of a file as more are added in real time. Can someone point me in the right direction?

View 2 Replies View Related

General :: Reading Numbers From Text File And Storing In Array?

May 26, 2010

I'm writing a bash script where I read a text file (containing a column of numbers) and store each line in an array. There seem to be some problems with the whole thing however, but only for some files and not others. Here's what I do:

Code:
#!/bin/bash
file=time_notOk.txt ### The file with a column of numbers
i=0 ### Array counter
### Read the file

[Code]....

View 3 Replies View Related

General :: Error Opening Matrix File (null) For Reading"

Dec 22, 2010

I have installed CUDA-BLASTP on C2050.It is giving me an Error:"Bad address Error opening matrix file (null) for reading" while i am running with following query file and dataset:

./CUDA-BLASTP -i ./data/raimondii_contigs.fasta -d ./data/DB_sorted.fasta

and i am using BLOSUM62 as a matrix file which is already present in package.

And getting the error:"Error happened when the number of GPUs is 0" while i am running CUDABLASTP with a part of dataset taking as a query file and dataset is same. above mentioned error is comming from file "CUDA_Blast.cu" included in package.

else
{
printf("Error happened when the number of GPUs is %d
", localGPU_N);
exit(0);
}

View 2 Replies View Related

General :: FTP Client As Like FTPS On Windows - Reading Series Of Ftp Commands From A Txt File

Apr 20, 2011

I am very new to Linux and trying to learn the shell scripting. Just to know is there any client in linux which does the same task as FTPS on windows. FTPS on windows can read series of FTP command from a txt file and execute them. Is there any way to do that same task, i mean reading series of ftp commands from a txt file, on linux suing shell or perl (any module)?

View 2 Replies View Related

General :: Bash + Reading Values (numbers) From A File And Storing Them Into An Array?

Nov 4, 2010

I have to read a couple of numbers from a random.txt file. In this .txt file there are random numbers. They are separated by a space. Example if you opened test.txt:

test.txt :1 6 1 3 6 8 10 2 4

I would like to read those numbers using CAT and store them into an array:

numlen=${#num[*]} - (must be like this because it is a part of a larger program)

View 5 Replies View Related

General :: Create A Multiple Files By Reading A Input File And Changing The Contents?

Sep 16, 2009

Being new to this area .I have been assigned a task which i am unable to do . Can any one please help me .

I have requirement where i have input file XYZ_111_999_YYYYMMDD_1.TXT and with header and series of Numbers and Footer.

I want to create a mutiple output files with each file having a seperate code which is stored in text file and create XYZ_222_999_YYYYMMDD_1.TXT . and add date in the contents next to series of numbers .Like this

Before change the file looks like this

file name XYZ_111_999_YYYYMMDD_1.TXT

001,19SEP2009-14:05:05,000000003
1234
4567
6785
END_OF_DATA

[Code]....

View 4 Replies View Related

General :: Reading A .CSV File And Then Calculating Average Per Minute Basis In Shell Script

Apr 23, 2010

I am new to shell script and to this form as well, I did try to search for a similar post like mine here, but could not find one.

Here is what I'm trying to do:

I am trying to grep server logs to find a specific string and then capture the time stamp and the value of that grep string in them. The log file prints out messages on per sec basis.

My script is able to grep the server logs for the entire period of my load runs and then outputted it to a .csv file too.

Unfortunately this .csv file is too large to extract it on my PC and to generate graphs as it exceeds the excel limit. I need some help on how to read this .csv file in a shell script and then take an average on per min basis before I can export it out on my desktop and generate graphs for analysis. example of the out in my .csv file:

View 1 Replies View Related

Fedora :: Installing Command & Conquer Red Alert 2 Yuri's Revenge From An Old Iso File?

Feb 10, 2010

I recently decided to try installing Command & Conquer Red Alert 2 Yuri's Revenge from an old iso file I had floating around my hard drive. I first mounted the iso and copied the files from it into a folder. I then used Wine to install. Everything went according to plan until I went to run the game. When I tried running Red Alert 2 (original) an error message popped up: Error - Unable to set the video mode. When I tried running Yuri's Revenge the same thing happened with one small exception, the first couple of times I tried the Yuri's Revenge splash screen popped up before showing the error message. However the splash screen no longer pops up.

View 1 Replies View Related

Ubuntu :: Copying File - Error Reading From File Input/output

Jun 29, 2010

I have a 7.2 GB file (VMWare virtual machine file) that I am trying to copy from its original location to the another folder OR to external hard drive...each time I try to do this, I always get the following error after the copying process reach 'exactly' 1.4 GB

Error reading from file input/output error

And I have to either Cancel or Skip

I've tried to split the files to smaller pieces but the idea didn't work as I still get the same error whenever I try to compress/ split or do any operation with this file. how I can copy this file?

View 2 Replies View Related

Ubuntu :: Installing Oracle - /etc/init.d/oracle-xe Configure Command Missing?

Jul 24, 2011

I've AMD64 system with Ubuntu 11.04 installed. It's been rough ride for me to install oracle-xe-universal. I've already spent more than 2 days on this. Still unsuccessful.

1) First I downloaded the packages libaio_0.3.104-1_i386.deb and oracle-xe-universal_10.2.0.1-1.1_i386.deb

2) Then I ran

sudo apt-get install bc (ran fine)
sudo dpkg -i --force-architecture libaio_0.3.104-1_i386.deb (ran fine)
sudo dpkg -i --force-architecture oracle-xe-universal_10.2.0.1-1.1_i386.deb

(gave me dependency error for libc6 (>= 2.3.2), I modified the control file to remove dependency and rebuilt the package) (now worked fine) Oracle xe is now installed. Then I tried to start the DB it started but it's HTTP client never started. So I decided to uninstall the oracle-xe=universal. None of the sudo apt-get remove oracle-xe-universal command's didn't worked for me. So i went for manual uninstallation directions as per oracle link.

I ran the following command-

--Manually uninstalling Oracle 10g--
sudo rm -rf /usr/lib/oracle /etc/oratab /etc/init.d/oracle-xe /etc/sysconfig/oracle-xe /usr/share/doc/oracle_xe /usr/share/doc/oracle_xe_client

Then I again ran the following command to install oracle-xe

sudo dpkg -i --force-architecture oracle-xe-universal_10.2.0.1-1.0_i386.deb

See below what I got as the output-

rocky@ubuntu:~/git/mygit/edas2/libaio$ sudo dpkg -i --force-architecture oracle-xe-universal_10.2.0.1-1.1_i386.deb
dpkg: warning: overriding problem because --force enabled:
package architecture (i386) does not match system (amd64)

[code]....

Even in applications menu I don't see the if oracle has been installed. So i conclude first time installation was ok but somehow http client didn't worked. After manual uninstallation, second installation didn't even loaded/installed the oracle-xe in init.d directory.

View 1 Replies View Related

SUSE :: Oracle Installation - No Such File Or Directory

Jun 17, 2010

Trying to install Oracle 11g on SLES 10 Xen virtual server. Get error /proc/sys/vm/hugetlb_shm_group: No such file or directory. I agree, it's know there...but how do I create it?

View 2 Replies View Related

General :: Doubt In Echo A For Beeping An Alert?

Feb 6, 2010

Below is the shell script that I am writing to beep an alert but listen to nothing.

Code:
#!/bin/bash
echo Listen to the alert!
echo -e "a"
echo listened ?

View 2 Replies View Related

Installation :: Oracle RPAS 13.1.1 DomainDaemon Cannot Execute Binary File

Apr 14, 2010

We are trying to install Oracle RPAS 13.1.1 on Redhat Enterprise 5 Linux Server, when we open the directory rpas/rpas/bin, the file DomainDaemon needed to start this server can be seen, but when we try to execute it as ./DomainDaemon it says "cannot execute Binary file", for that reason all files in this directory are giving same message .

We have tried the following :-
a) Given Execute permissions using chmod and run that.
b) Done file DomainDaemon to see if the file is corrupt.
c) Even tried executing using superuser account.
d) The OS and updates required as per Hw&Sw Requirements of RPAS 13.1.1 are there.
e) The directory has Execute Permissions

View 3 Replies View Related

Debian :: TAR - File Has Changed While Reading

Dec 17, 2010

I am using a backup system with cron + tar. Since the server is very busy, I get often the cron-email: "The file XYZ has changed while reading". This message is a bit annoying and I see it as critical point in my backup system. I believe that this file is then not in my backup. (Is that correct?) Let's imagine the hard disk dies and I have to recover the system and my personal data, and in the night the mysql-table XYZ was not in the backup, because it was in read-usage. I would then have lost this table forever. Is there any way to tell TAR, that it should force the file to be included (if in read-usage, then wait 2 seconds and try again)?

View 9 Replies View Related

Ubuntu Servers :: Not Reading XML File?

Jan 28, 2011

I recently set up a server in my house using Apache 2 running off Ubuntu 10.10 Netbook edition (no, the computer is a desktop). I tried running the website on a few computers in house and all the images and scripts seem to load fine but it is unable to read from the data.xml file through javascript. This leaves all of the web pages empty because all of the content is parsed from the xml file through javascript. I tried debugging with google chrome and after running this code to load the xml file:

if (window.XMLHttpRequest) {
// For IE7+, Firefox, Chrome, Opera, Safari
xmlhttp = new XMLHttpRequest();
}

[Code].....

the xmlhttp.responseXML is null and the script crashes. Could this be a permission issue? I tried setting the data.xml file to read-write permission for any user but that didn't work.

View 1 Replies View Related

General :: Ubuntu - Setting Alarms To Alert User?

May 3, 2010

I am running few tasks in my linux console and want to be notified by some kind of alarm, so I don't keep checking the progress of the task.

Is there a way to customize the alarm by specifying additional filters like "ERROR" message, etc? I think it will be a useful thing to have.

View 4 Replies View Related

General :: Stop Firefox JavaScript Alert From Beeping

May 10, 2011

When a JavaScript calls the alert() method, Firefox send out a BEEP in my headphones. Does any one know how to stop that sound? I am running the newest Fedora Linux with Firefox 3.6.16 using Kde as desktop environment.

View 2 Replies View Related

General :: Log Files - Increases - Get Automatic Email Alert

Mar 10, 2011

Is there any way to find out log files increases we will get automatic email alert. for example if the log file size is 2 MB once the file exceeded 2MB then we will get email alert. is there any script.

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved