Search Results

Search: Posts Made By: ynixon
3,673
Posted By ynixon
If listener.ora file has extra spaces at end of...
If listener.ora file has extra spaces at end of some lines, this command fail :(
I could add a preliminary command to remove them:
sed -i "s/[[:blank:]]*$//g" listener.ora
But I will be glad if...
3,673
Posted By ynixon
awesome :) :)
awesome :) :)
3,673
Posted By ynixon
When there is only 1 alias, the replacement is...
When there is only 1 alias, the replacement is not working :(

$ cat INSERT.TXT
(SID_DESC=
(SID_NAME=alias3)
...
3,673
Posted By ynixon
alias3_DGB is just a an example ..... :( If...
alias3_DGB is just a an example ..... :(

If we will have no other solution, I will have to put there a DUMMY ancor

---------- Post updated 10-27-15 at 12:02 PM ---------- Previous update was...
3,673
Posted By ynixon
Hi, thanks for the professional answer :) I...
Hi,
thanks for the professional answer :)
I would also like to understand the solution and fix it since my listener.ora file has some other lines at the end, which this solution eliminate them

$...
3,673
Posted By ynixon
Thanks for you help untill now .. The new...
Thanks for you help untill now ..

The new data will use variables sent from other function/script
I tried to make it simple, the idea will be to add/remove/change the following block (in the...
3,673
Posted By ynixon
There are some scenarios 1. adding sid_alias4 ...
There are some scenarios
1. adding sid_alias4
2. removing exiting sid_alias2
3. replacing sid_alias2 to sid_alias4

the data in each section can contain different data (not so templated)

I...
3,673
Posted By ynixon
This is more complicated for me, since the...
This is more complicated for me,
since the parsing is in the middle :confused:

---------- Post updated at 04:55 PM ---------- Previous update was at 03:47 PM ----------

I managed to partially...
3,673
Posted By ynixon
Removing sections from listener.ora
Hi,
I am trying to write a script or command to add/remove a section from listener.ora file

in the following example I would like:
1. to remove sid_alias2 sections
2. to add a new alias...
5,173
Posted By ynixon
Thanks, the sed command works fine on that file,...
Thanks, the sed command works fine on that file, but the file can not always has spaces like I mentioned.
The file can be like this:

$ cat tnsnames.ora
tns_alias1=
(DESCRIPTION=
(ADDRESS_LIST=...
5,173
Posted By ynixon
Removing section from tnsnames.ora
Hi,
I am trying to write a script or command to remove a section from tnsnames.ora file

in the following example I would like to remove tns_alias2 section

$ cat tnsnames.ora
tns_alias1 =
...
4,677
Posted By ynixon
the line contaning ORA-02999 is wrong ...
the line contaning ORA-02999 is wrong

---------- Post updated at 05:19 PM ---------- Previous update was at 04:56 PM ----------

the target system to use this is Oracle monitoring system (Grid...
4,677
Posted By ynixon
I need the Perl / oracle way ... please...
I need the Perl / oracle way ... please...
4,677
Posted By ynixon
Regular Expression
Hi,
How can I use a regular expression that will find only errors of ORA-00600 that does not contain 12333 if the first brackets:

example text:
ORA-02999 : test message, ignore me
ORA-00600:...
12,755
Posted By ynixon
this is not the differences that I meant. I...
this is not the differences that I meant.
I mean that in df -h I see usage of 100G and in du -h I see only 1M ...
12,755
Posted By ynixon
Why command df and du reports different output?
There a mismatch between df and du outputs
Both df and du reporting different output. It is confusing.
the answer that I get is that Open file descriptor is main causes of such wrong information....
37,921
Posted By ynixon
so simple ..
thanks
37,921
Posted By ynixon
How do I know my current shell
when I get from my shell into other shell, what is the best way to identify the current new shell in a script ?

for example: logged on with bash, and typed csh.

I got out the following option:...
3,621
Posted By ynixon
why just perl ?
other lang is ok ?
3,968
Posted By ynixon
you are right, the example was wrong... I fixed...
you are right, the example was wrong... I fixed the example see above
3,968
Posted By ynixon
grep XXX that not followed by YYY
I want to grep all lines containing blocking sess= that are not followed by 0x0

cat trace.log
blocking sess=0x0
blocking sess=0x0
rrrr......
blocking sess=121
blocking sess=0x0
blocking...
13,469
Posted By ynixon
Wrong: set ${$pe} = M Good: set pe = M
Wrong:

set ${$pe} = M

Good:
set pe = M
24,872
Posted By ynixon
I found the solution: cd -- -_12 rm -fr * ...
I found the solution:
cd -- -_12
rm -fr *
cd ..
rmdir -- -_12
24,872
Posted By ynixon
maybe you can try delete it within the same...
maybe you can try delete it within the same program you created the problem.
I even cannot create such a directory/file in the command line.
24,872
Posted By ynixon
did you try? rmdir -f '-_12' or rmdir -f...
did you try?
rmdir -f '-_12'
or
rmdir -f "-_12"
Showing results 1 to 25 of 71

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