Search Results

Search: Posts Made By: jigarlakhani
1,603
Posted By jigarlakhani
SED question: newbie here.
Hello... I wanted to figure out how to remove the 1st instance of a comma from a file..

100+ line file
-------------
'test1'
,'dudes are cool' <-- remove comma from first instance of comma in...
12,677
Posted By jigarlakhani
how to execute sh script in bash shell via crontab
hello. we are porting over from HPUX Shell to Linux.

my default shell is bash so i can no longer schedule to execute a sh script in crontab.

can anyone pls help me out? I searched the site but...
1,299
Posted By jigarlakhani
Vxfdump/vxfrestore question
Hello:

I am currently using TAR command to tar up Oracle datafiles but there is a limitation of 10gb for the TAR command. Any files over 10gb does not get tarred up. Can someone show me how to use...
3,161
Posted By jigarlakhani
Thanks blowtorch; that did it. Jigar
Thanks blowtorch; that did it.
Jigar
1,675
Posted By jigarlakhani
If you setup ssh on your windows environment with...
If you setup ssh on your windows environment with trusted relationships you can run a command such as


ssh targetserger ls -lrt /home/oracle/


and get output back without logging on with...
3,161
Posted By jigarlakhani
Need little help with little script
I am trying transfer 400gb worth of orcle files. I wrote this command and tried to incorporate gzip but it doesnt work..


cd /home/oracle/a; tar cvf - . |gzip -c .|ssh raman '(cd /tmp;gunzip...
2,791
Posted By jigarlakhani
Checksum question
in HPUX: I am copying oracle datafiles from one mountpoint to another
the total size is about 250Gb. I wanted to perform a checksum on the target and make sure the files came overy properly.
...
2,695
Posted By jigarlakhani
I figured it out.. ksh>top& #!/bin/ksh ...
I figured it out..
ksh>top&

#!/bin/ksh
#set -x
filecopyfinished=false
while true
do
export a=`ps -ef|grep top|grep -v grep|wc -l`
echo "there are currently $a processes running for the top...
2,695
Posted By jigarlakhani
will something like this work? set -x ...
will something like this work?

set -x
filecopyfinished=false
while false
do
ps -ef|grep cp|grep -v grep
if [ $? -eq 0 ];then
echo "copy is finished"
...
2,695
Posted By jigarlakhani
Parent/Child Scripting logic Question
I have Parent script that will execute a child script. The child script will take about 2 hours to run and I wanted to somehow build a logic for parent.sh to wait and perform ps -ef|grep cp|grep -v...
4,447
Posted By jigarlakhani
Thanks Matrix Madhan and vgersh99. That really...
Thanks Matrix Madhan and vgersh99. That really helped.

-Jigar
4,447
Posted By jigarlakhani
1 last request pls..I promose to take some...
1 last request pls..I promose to take some scripting classes..I am a dba by profession not a shellscripting expert like you guys are....

> cat newmaptest

this is source this is...
4,447
Posted By jigarlakhani
Question; how can Incorporate this whole thing in...
Question; how can Incorporate this whole thing in 1 script? assuming the mapfile is an external file.
4,447
Posted By jigarlakhani
We dont have nawk in HPUX unless I dont know the...
We dont have nawk in HPUX unless I dont know the path.... We have awk though..pls help....
4,447
Posted By jigarlakhani
not getting anything back.. ...
not getting anything back..
jbld@tabloo:/home/oracle/scripts/a> awk -F: -v sid="${SID}" -f jig.awk mapfile
jbld@tabloo:/home/oracle/scripts/a>
jbld@tabloo:/home/oracle/scripts/a> export SID=test...
4,447
Posted By jigarlakhani
sorry, I need it for the last 1 I posted? ...
sorry, I need it for the last 1 I posted?

thanks.
4,447
Posted By jigarlakhani
Thanks..i tried testing the code you gave...
Thanks..i tried testing the code you gave me...but the output was different. What am I doing wrong? I am not good with awk/shell programming. the other thing is that the output should be like the...
4,447
Posted By jigarlakhani
definately. some questions. How are you catting...
definately. some questions. How are you catting the mapfile in the code?
the output you got was the following
code:
cp -rp /u01_p /pristine /u01/oradata/test
cp -rp /u02_p /pristine...
4,447
Posted By jigarlakhani
1. dbmap is the mapfile.lst file which holds the...
1. dbmap is the mapfile.lst file which holds the following data.
test /u01:/u02:/u03:/u04
dev /u05:/u06:/u07:/u08

2. I dont now how to derive the '/u01_p' mountpoint. There are 8 mountpoints...
4,447
Posted By jigarlakhani
Another shellscript question
Folks;

on a unix server I have a mapping file which holds a list mountpoints of all databases and their mountpoints. tab delimited or colon deliminted..I needed to copy the datafiles from the...
1,626
Posted By jigarlakhani
actually Sid is an Oracle_SID.. A databasename.
actually Sid is an Oracle_SID.. A databasename.
1,626
Posted By jigarlakhani
shellscripting question
I have been “commissioned” to write a shellscript to automate Oracle cold refeshes.. right now we perform about 20 refresh each 300gb in size which takes up our time. my goal is to write a...
2,440
Posted By jigarlakhani
Need help with shellscript
Hello. I am a novince at writing shell scripts but here is the question. I have to write a shell script that does the following:

Once executed via crontab, the script should do the following:
a....
2,251
Posted By jigarlakhani
Thanks but this didnt work for me. Unless I dont...
Thanks but this didnt work for me. Unless I dont copy the sql files to $ORACLE_HOME/bin which is in the patch then I cant source it for some reason within SQLPLUS.
2,251
Posted By jigarlakhani
Problem with .profile
I wanted to add /home/oracle/sql to my path so that from which ever directory i connect to sqlplus i should be able to source the .sql files sitting in /home/oracle/sql. Also,

this is what i...
Showing results 1 to 25 of 41

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