Search Results

Search: Posts Made By: admin_db
2,668
Posted By Don Cragun
A straight-forward conversion of MadeInGermany's...
A straight-forward conversion of MadeInGermany's script to use case insensitive matches would be:
sed -n 's/.*[Hh][Oo][Ss][Tt] *= *\([^)]*\).*/\1/p'
Some versions of sed have an option to perform...
2,668
Posted By MadeInGermany
The = is surrounded by spaces that you need to...
The = is surrounded by spaces that you need to capture
sed -n 's/\(.*HOST *= *\)\([^)]*\)\(.*\)/\2/p'
You can omit the non-needed brackets
sed -n 's/.*HOST *= *\([^)]*\).*/\1/p'
5,537
Posted By RudiC
And, for the for loop, tryfor i in $(ps -ef | awk...
And, for the for loop, tryfor i in $(ps -ef | awk '/pmon/ {split ($8, T, "_"); print T[3]}')
5,537
Posted By cero
Most of the undesired output will be surpressed...
Most of the undesired output will be surpressed when you call sqlplus with the -s option.
Setting feedback off will get rid of the no rows selected message - btw. your output shows you executed 2...
5,537
Posted By RavinderSingh13
Hello admin_db, Could you please try...
Hello admin_db,

Could you please try following and let me know if this helps.

./your_script.ksh | awk '{match($0,/rows selected SQL>.*row selected....
2,668
Posted By RudiC
How abouttnsping ora11gb | awk 'match ($0,...
How abouttnsping ora11gb | awk 'match ($0, /HOST=[^)]*/) {print substr ($0, RSTART+5, RLENGTH-5)}'
bovina.int.westgroup.com
Small adaption to RavinderSingh13's sed proposal:tnsping ora11gb | sed -n...
2,668
Posted By RavinderSingh13
Hello admin_db, Could you please try...
Hello admin_db,

Could you please try following and let me know if this helps you.

awk -F"[)(]" '{sub(/.*=/,X,$6);print $6}' Input_file
Output will be as follows.

bovina.int.westgroup.com...
15,345
Posted By jim mcnamara
It is possible on a lot of systems to create an...
It is possible on a lot of systems to create an account that will login without requiring a password. DO NOT fall into that trap. @peasant and @rbatte1 gave you sound advice, consider that doing...
15,345
Posted By rbatte1
The sudo tool is designed to give you the choice....
The sudo tool is designed to give you the choice. It is probably the best way.

Incidentally, you should not really try to force the password in like this. If you have a process to run that is...
15,345
Posted By Peasant
How about : su - <user> -c <command> As...
How about :

su - <user> -c <command>
As for passing password, you will need to use expect or use sudo.
With sudo the syntax is a bit different.

Hope that helps
Regards
Peasant.
10,399
Posted By Peasant
Please check on linux host (the NFS client) if...
Please check on linux host (the NFS client) if nfslock service is up, if not start it, remount NFS and try again.

Hope that helps
Regards
Peasant.
2,456
Posted By babinlonston
@admin_db, Snapshots are won't list in df -h....
@admin_db, Snapshots are won't list in df -h. Instead list the Logical volumes# sudo lvs -o +devices
You have created your filesystem using# mke2fs -t ext4 /dev/VGExaDb/data_snap
Then trying to...
4,344
Posted By Corona688
I can't really explain what 'linux raid...
I can't really explain what 'linux raid autodetect' is without repeating linux, raid, and autodetect. They are members of a software RAID containing enough information to assemble them into a...
3,008
Posted By Corona688
/dev/shm is a RAMdisk. Find where its options...
/dev/shm is a RAMdisk. Find where its options are defined in your distribution and alter them. It's difficult to be less vague than this without knowing your distribution.
3,158
Posted By rbatte1
Might I suggest changing this slightly:-sqlplus...
Might I suggest changing this slightly:-sqlplus -s <<EOQ >dataset.csv
user/pass@sid
select interesting,fields from my_table where condition = 'met';
EOQ

The previous suggestion will leave the...
Forum: AIX 10-17-2014
5,304
Posted By rbatte1
If an LPAR is migrated, then you would either...
If an LPAR is migrated, then you would either need to keep the IP address (subject to the physical network restrictions) or update the DNS records, local host files, tnanames.ora on clients etc. or...
Forum: Hardware 10-16-2014
2,380
Posted By rbatte1
Wow, I'm a bit stumped now. I've found what...
Wow, I'm a bit stumped now. I've found what looks like a hardware manual, but it's HUGE!

I'm not sure it makes great bedtime reading, but it might help - if you have a good chunk of time to find...
Forum: AIX 10-15-2014
5,304
Posted By ibmtech
Ok, To answer your question in simple way YES,...
Ok,
To answer your question in simple way YES, you can migrate your LPAR from one frame to another. But there are few things to have to consider before doing so, such as licensing, support, hardware...
Forum: AIX 10-15-2014
5,304
Posted By rbatte1
It is my understanding that Oracle RAC is...
It is my understanding that Oracle RAC is actually running the database on all nodes concurrently, so if you stop node1, then all transactions and traffic will continue to be processed on node2.
...
Forum: Hardware 10-15-2014
2,380
Posted By rbatte1
You would need to confirm this with your hardware...
You would need to confirm this with your hardware engineer and consider the redundancy in your frame. Do you have dual service processors? You don't tell us much about the machine (i.e. the model...
Forum: Red Hat 09-24-2014
1,260
Posted By gull04
Hi, Block and Raw devices are effectively...
Hi,

Block and Raw devices are effectively the same thing and both will be created when a logical volume is created.

The difference is in how they are used, some applications can use both and...
Showing results 1 to 21 of 21

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