Search Results

Search: Posts Made By: navsan420
Forum: Programming 03-31-2015
1,389
Posted By navsan420
Tablespace growth trend
Hi experts,

I have the below details with me.How to calculate the tablespace growth between two dates.

sample data(have data upto 1 year):


INSTANCE_NAME DATE TABLESPACE_NAME ...
10,945
Posted By navsan420
Oracle DB user password change
Hi Experts,

I am trying to write a shell script to change DB user password.
Requirement:
login to multiple DBs as multiple users and change their respective passwords.
ex :users:T1,T2,T3...
927
Posted By navsan420
File system usage
Hi Experts,

I am trying to write script to find the FS usage.

My requirement is first i need to gather all the mountpoint details.like below.
df -k 2> /dev/null | awk '{print "FS=" $1 "\tMP="...
1,922
Posted By navsan420
Hi Anbu, NR < 5 Worked!!! Thanks. I...
Hi Anbu,

NR < 5 Worked!!! Thanks.

I need to display the output into HTML table.I tried <table> tags and but i need to convert the output using script.Could you help me with this.
1,922
Posted By navsan420
Still the same :confused: awk 'NR<3 ;...
Still the same :confused:

awk 'NR<3 ; /^-/{getline; print}' part.log


DB1 XYZ BILLED 820 2014_06_30 109
DB2 XYZ DATA ...
1,922
Posted By navsan420
Hi Anbu/Scrutinizer Thanks for the commands. ...
Hi Anbu/Scrutinizer
Thanks for the commands.
But your command returns data without headers

awk 'NR<3 ||/^-/{getline; print}' part.log

DB1 XYZ BILLED 820 ...
1,922
Posted By navsan420
Consolidated output in shell script
Hi Gurus,

I have a shell script which connects to mulitple DBs and run some queries and output will be written to log file.I need the consolidated output (html format will be better)from the...
6,460
Posted By navsan420
Run different SQL on multiple DBs using SHELL script
Hi Experts,

I have a list of Dbs.In that DBs i need to execute some sql scripts.
each sql script is unique and it should run on particular DB only.
For example. i have DBs like...
1,203
Posted By navsan420
Grep patterns
Hi Experts,

I have a log file like this.I need to filter the Index name and elapsed time(only created ).

06:36:39 SQL> create index XYZ_F75 on XYZ
06:36:39 2 ("GRP_ID", "_ID") parallel...
7,176
Posted By navsan420
Actually i am running the script from different...
Actually i am running the script from different location
say /app/test...

the oratab file is the exactly same as the mentioned
7,176
Posted By navsan420
blank :(
blank :(
7,176
Posted By navsan420
what u want to know host $ sh -x test.ksh +...
what u want to know
host $ sh -x test.ksh
+ awk -F[#:*] NF==3&&$1~/./{print $1} /var/opt/oracle/oratab
7,176
Posted By navsan420
awk -F[#:*] NF==3&&$1~/./{print $1}...
awk -F[#:*] NF==3&&$1~/./{print $1} /var/opt/oracle/oratab
7,176
Posted By navsan420
thanks for the script when i execute this i am...
thanks for the script
when i execute this i am getting nothing,
can u please explain the awk part?

for line in `awk -F"[#:*]" 'NF==3&&$1~/./{print $1}' /var/opt/oracle/oratab` ; do
ps -ef|grep...
7,176
Posted By navsan420
the problem is all of the below mentioned DBs...
the problem is all of the below mentioned DBs will run on that server.if any one of DB goes down,i need to start up that particular DB.
7,176
Posted By navsan420
ya there are multiple entries.. the problem is...
ya there are multiple entries..
the problem is all of the below mentioned DBs will run on that server.if any one of DB goes down,i need to start up that particular DB.
...
7,176
Posted By navsan420
check_stat=`ps -ef|grep ${ORACLE_SID}|grep...
check_stat=`ps -ef|grep ${ORACLE_SID}|grep pmon|wc -l`;
oracle_num=`expr $check_stat`
if [ $oracle_num -lt 1 ]
then
exit 0
fi


i tried this.. but the problem is ORACLE_SID is not set. the...
7,176
Posted By navsan420
Check for DB status and startup DB
EXPERTS,
I need a UNIX shell script to check the DBs status (Running/Shutdown) in the server.If its Running then no issue but if it is in shutdown state ,it should prompt like " DB is shut down you...
1,154
Posted By navsan420
Check for DB status and startup DB
EXPERTS,
I need a shell script to check the DBs status (Running/Shutdown) in the server.If its Running then no issue but if it is in shutdown state ,it should prompt like " DB is shut down you want...
Forum: Programming 01-23-2013
1,157
Posted By navsan420
this is the code .the content of output.log is...
this is the code .the content of output.log is in (refer to my 1st post)$dir=file('D:/test/');
$lines=array();
$temp=array();
$result=array();

$fp=fopen('output.log', 'r');
while (!feof($fp))...
Forum: Programming 01-12-2013
1,157
Posted By navsan420
thanks Space. for your information i am using...
thanks Space.
for your information i am using array that will read from that log file.is this possible to done using array indexes??
Forum: Programming 01-12-2013
1,157
Posted By navsan420
PHP Filter and CUT
Hi All,

i have a log file .i want to cut and filter using some conditions in PHP
condition 1:first i want to filter the datas having "P12345"
condition 2:cut the session ID and time stamp(i.e...
Forum: Programming 01-11-2013
1,146
Posted By navsan420
Php print
i have a text file
15728710[01/03/2013 18:16:35]
15728710[01/03/2013 18:16:35]
15728710[01/03/2013 18:16:35]
15728710[01/03/2013 18:16:35]
15728710[01/03/2013 18:16:35]
15728710[01/03/2013...
1,089
Posted By navsan420
Also a small additional modifiaction ..in the...
Also a small additional modifiaction ..in the below output



15728710[01/03/2013 18:16:35]
15728710[01/03/2013 18:16:35]
15728710[01/03/2013 18:48:35]
15729310[01/03/2013 18:48:35]...
1,089
Posted By navsan420
Trimming in between the words
Hi i have a log file
P12345_15728710[01/03/2013 18:16:35]:DEBUG:Begin
P12345_15728710[01/03/2013 18:16:35]:DEBUG:Being
P12345_15729310[01/03/2013 18:48:35]:DEBUG:GetAgen...
Showing results 1 to 25 of 34

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