Search Results

Search: Posts Made By: nir_s
2,141
Posted By nir_s
How to run csh environment parameters from k-shell script?
Hi Guys,

I need to run an alias from a k-shell script ,for example 10204, which points to :
source $ORACLE_BASE/scripts/cshrc/10204/.cshrc
Meaning , I need to run in my k-shell script with the...
1,587
Posted By nir_s
Thanks Jim , but I'm still see only the device...
Thanks Jim , but I'm still see only the device name:

{oracle} /app01/oracle/product C3PO-PROD> iostat -n -x | less
extended device statistics
r/s w/s kr/s kw/s...
1,587
Posted By nir_s
Find File system according to device
Hi guys,

I want to translate the device name from the command "iostat" to file system name in order to check IO problems of DB's data files.
What is the way to do it?

Thanks in advance,
Nir
5,685
Posted By nir_s
Thanks guys! albertogarcia and methyl - I've...
Thanks guys!
albertogarcia and methyl - I've checked your code and both of them are exellent.
merajh - also this command fails in Solaris (version 10).
Probably, writing small code is better than...
5,685
Posted By nir_s
Still fails :( Probably "find -P" does not work...
Still fails :(
Probably "find -P" does not work on Solaris ...
5,685
Posted By nir_s
Thanks , but the command has failed: ...
Thanks , but the command has failed:

{oracle} /oa01 PROD> find -P . -name "*.log" -mtime +1
find: illegal option -- P
find: [-H | -L] path-list predicate-list
5,685
Posted By nir_s
Yes, I did , but no data were retrieved. ...
Yes, I did , but no data were retrieved.

---------- Post updated 06-15-10 at 01:02 PM ---------- Previous update was 06-14-10 at 02:55 PM ----------

I'll be glad to get more suggestions.
...
5,685
Posted By nir_s
How to find the recent file in many sub-directories?
Hi guys,

Under my root directory there are many sub-directories which contains log file for every day of running.
How can I find , in one command only, the recent log file in each sub-directory?...
8,090
Posted By nir_s
Hi pludi/Tytalus, Thanks a lot! very nice...
Hi pludi/Tytalus,

Thanks a lot!
very nice solutions.

Best regards,
Nir
8,090
Posted By nir_s
Get free space of file system
Hi guys,

I'm trying to get free space in GB of file system into parameter.
I have the following code:
> cat get_free_space_FS.ksh
#! /bin/ksh

FS=/dw/mar
FreeSpace=`df -h | grep $FS | awk...
11,759
Posted By nir_s
Hi expert, This command does only half of...
Hi expert,

This command does only half of the work :)
I need also the line under.

Thanks any way.
Franklin52 has already given me a good solution with the AWK command.

Regards,
Nir
11,759
Posted By nir_s
Thanks for both of you! Franklin52 - your...
Thanks for both of you!
Franklin52 - your command runs perfectly!
zaxxon - I got the following error when I ran your suggestion:
{oracle} /app01/oracle/admin/dwprod/bdump C3PO-PROD> sed...
11,759
Posted By nir_s
How to cut specific line and one line under?
Hi guys,

I need to analyze the following alert log file:
Beginning log switch checkpoint up to RBA [0x4243f.2.10], SCN: 3916025539605
Sat May 1 00:54:52 2010
Thread 1 advanced to log sequence...
12,677
Posted By nir_s
Hi drl, Thanks a lot!! Now , it's working...
Hi drl,

Thanks a lot!!
Now , it's working perfect!

Best regards,
Nir
12,677
Posted By nir_s
Hi drl, Thanks! When I'm running this...
Hi drl,

Thanks!

When I'm running this script I'm getting the following output:
dwhdev > ./check_alias.csh

Environment: LC_ALL = C, LANG = C
(Versions displayed with local utility version)...
12,677
Posted By nir_s
Hi Panyam, Thanks , but it still fails: ...
Hi Panyam,

Thanks , but it still fails:
awk: syntax error near line 1
awk: illegal statement near line 1

Thanks in advance,
Nir
12,677
Posted By nir_s
alias defining problem in .cshrc file
Hi folks,

I'm trying to define the following command as alias in .cshrc file:
ls -ltr | grep ^d | awk '{print $9}' | xargs du -hs

I defined it as the following:
alias nirdirs '`ls -ltr | grep...
3,770
Posted By nir_s
Hi Ikon, Thanks a lot!! Best regards, ...
Hi Ikon,

Thanks a lot!!

Best regards,
Nir
3,770
Posted By nir_s
How to check date variable according to the current date?
Hi folks,

I need to write a script that should activate a process according to the current hour.
The process should be activatet only if the hour is between midnight (00:00) and 07:00.
How...
6,377
Posted By nir_s
Thanks guys! Finally, I used "find . \( !...
Thanks guys!

Finally, I used "find . \( ! -name . -prune \)" and it works perfect!

Best regards,
Nir
6,377
Posted By nir_s
Hi, I didn't find such an option in "find"...
Hi,

I didn't find such an option in "find" command..
Can you post an example?

Thanks in advance,
Nir
6,377
Posted By nir_s
How to remove old files without recursion?
Hi folks,

I need to write a script which remove files with suffix *.dmp from a specific directory ,older than 30 days and not including recursive subdirectories.

I.e:
The following command...
12,836
Posted By nir_s
You can edit the control file of the sqlloader by...
You can edit the control file of the sqlloader by the following:

LOAD DATA
INFILE <data_file_path_and_name>
INTO TABLE <table_name> (
<column_name> POSITION(<integer>:<integer>) <data_type>,...
5,025
Posted By nir_s
Hi naamas03, I wrote something for example: ...
Hi naamas03,

I wrote something for example:
#! /bin/csh

set DIR=$1

cd $ORACLE_HOME/$DIR
ls

The script is executed as the following:
./send_param.csh bin

I sent paramter to the...
32,463
Posted By nir_s
It might be the reason ... However,I don't see...
It might be the reason ...
However,I don't see any db link in the script.

If you run:
select max(ctrl_perd) from prod@db_link where code='123';
select max(ctrl_perd) from geo@db_link where...
Showing results 1 to 25 of 161

 
All times are GMT -4. The time now is 06:26 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy