Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: nir_s
1,473
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,322
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,322
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
4,940
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...
4,940
Posted By nir_s
Still fails :( Probably "find -P" does not work...
Still fails :(
Probably "find -P" does not work on Solaris ...
4,940
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
4,940
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.
...
4,940
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?...
7,333
Posted By nir_s
Hi pludi/Tytalus, Thanks a lot! very nice...
Hi pludi/Tytalus,

Thanks a lot!
very nice solutions.

Best regards,
Nir
7,333
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...
9,353
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
9,353
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...
9,353
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...
11,535
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
11,535
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)...
11,535
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
11,535
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...
2,879
Posted By nir_s
Hi Ikon, Thanks a lot!! Best regards, ...
Hi Ikon,

Thanks a lot!!

Best regards,
Nir
2,879
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...
4,418
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
4,418
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
4,418
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...
11,886
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>,...
4,706
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...
30,458
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

 

Featured Tech Videos

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