Sponsored Content
Top Forums Shell Programming and Scripting Shell script compare all parameters in two files and display results Post 302472406 by muraliinfy04 on Wednesday 17th of November 2010 08:08:36 AM
Old 11-17-2010
I got the outputs.
Code:
[hsar@catom-gmapdvl05 ~]$ cat output.ok
Param                                                                 9i                                             11g
db_block_size                                                       8192                                            8192
db_cache_size                                                      1024M                                           1024M
db_file_multiblock_read_count                                         32                                              32
open_cursors                                                        1000                                            1000
diagnostic_dest                                                      ---                                /u01/app/oracle/
db_unique_name                                                       ---                                           dcicr
[hsar@catom-gmapdvl05 ~]$ cat output.all
Param                                                                 9i                                             11g
db_block_size                                                       8192                                            8192
db_cache_size                                                      1024M                                           1024M
db_file_multiblock_read_count                                         32                                              32
open_cursors                                                        1000                                            1000
cursor_sharing                                                       ---                                         SIMILAR
background_dump_dest                  /usr/local/oracle/admin/dcap/bdump                                             ---
core_dump_dest                        /usr/local/oracle/admin/dcap/cdump                                             ---
user_dump_dest                        /usr/local/oracle/admin/dcap/udump                                             ---
diagnostic_dest                                                      ---                                /u01/app/oracle/
db_unique_name                                                       ---                                           dcicr
memory_max_target                                                    ---                                             ---
memory_target                                                        ---                                             ---
pga_aggregate_target                                                512M                                            512M
java_pool_size                                                      150M                                            150M
large_pool_size                                                      50M                                             64M
shared_pool_size                                               268435456                                            512M
[hsar@catom-gmapdvl05 ~]$ cat output.err
Param                                                                 9i                                             11g
Warning : cursor_sharing does not have the same values in 9i.ora and 11g.ora : missmatch !
cursor_sharing                                                       ---                                         SIMILAR
Warning : background_dump_dest does not have the same values in 9i.ora and 11g.ora : missmatch !
background_dump_dest                  /usr/local/oracle/admin/dcap/bdump                                             ---
Warning : core_dump_dest does not have the same values in 9i.ora and 11g.ora : missmatch !
core_dump_dest                        /usr/local/oracle/admin/dcap/cdump                                             ---
Warning : user_dump_dest does not have the same values in 9i.ora and 11g.ora : missmatch !
user_dump_dest                        /usr/local/oracle/admin/dcap/udump                                             ---
Warning : memory_max_target is missing in file 11g.ora
memory_max_target                                                    ---                                             ---
Warning : memory_target is missing in file 11g.ora
memory_target                                                        ---                                             ---
Warning : pga_aggregate_target should not be in file 11g.ora
pga_aggregate_target                                                512M                                            512M
Warning : java_pool_size should not be in file 11g.ora
java_pool_size                                                      150M                                            150M
Warning : large_pool_size should not be in file 11g.ora
large_pool_size                                                      50M                                             64M
Warning : shared_pool_size should not be in file 11g.ora
shared_pool_size                                               268435456                                            512M
[hsar@catom-gmapdvl05 ~]$

Thanks you very very much

---------- Post updated at 08:08 AM ---------- Previous update was at 06:00 AM ----------

Hi,
for first condition it is working properly.Now i have included parameters needs to check for second and third condition in listparam file but now it's not giving the second and third outputs.
These are the parameters i have included in my paramlist file:
diagnostic_dest 2
db_unique_name 2
memory_max_target 2
memory_target 2

pga_aggregate_target 3
java_pool_size 3
large_pool_size 3
shared_pool_size 3
shared_pool_reserved_size 3
db_keep_cache_size 3
db_recycle_cache_size 3
sga_target 3.
The output i got is:
it is only checking for first condition:

Param 9i 11g
Warning : cursor_sharing does not have the same values in 9i.ora and 11g.ora : missmatch !
cursor_sharing --- SIMILAR
Warning : background_dump_dest does not have the same values in 9i.ora and 11g.ora : missmatch !
background_dump_dest /usr/local/oracle/admin/dcap/bdump ---
Warning : core_dump_dest does not have the same values in 9i.ora and 11g.ora : missmatch !
core_dump_dest /usr/local/oracle/admin/dcap/cdump ---
Warning : user_dump_dest does not have the same values in 9i.ora and 11g.ora : missmatch !
user_dump_dest /usr/local/oracle/admin/dcap/udump ---
Warning : log_archive_dest does not have the same values in 9i.ora and 11g.ora : missmatch !
log_archive_dest /archive/dcap/arch/ use_db_recovery_file_dest'
Warning : log_archive_start does not have the same values in 9i.ora and 11g.ora : missmatch !
log_archive_start TRUE ---
Warning : log_archive_format does not have the same values in 9i.ora and 11g.ora : missmatch !
log_archive_format dcap%t_%s.arc ---
Warning : service_names does not have the same values in 9i.ora and 11g.ora : missmatch !
service_names dcap dcicr,dcicr.world
Warning : control_files does not have the same values in 9i.ora and 11g.ora : missmatch !
control_files ( "/u02/oradata/dcap/control01.ctl",
(+DCI/dcicr/controlfile/current.256.725043389,
Warning : compatible does not have the same values in 9i.ora and 11g.ora : missmatch !
compatible 9.2.0 11.1.0
Warning : db_name does not have the same values in 9i.ora and 11g.ora : missmatch !
db_name dcap dcicr
Warning : instance_name does not have the same values in 9i.ora and 11g.ora : missmatch !
instance_name dcap dcicr1
Warning : processes does not have the same values in 9i.ora and 11g.ora : missmatch !
processes 500 4
10 1000 2
Warning : job_queue_processes does not have the same values in 9i.ora and 11g.ora : missmatch !
job_queue_processes 4 2
Warning : log_buffer does not have the same values in 9i.ora and 11g.ora : missmatch !
log_buffer 524288 10485760
Warning : undo_tablespace does not have the same values in 9i.ora and 11g.ora : missmatch !
undo_tablespace undots undots1
Warning : undo_retention does not have the same values in 9i.ora and 11g.ora : missmatch !
undo_retention 6000 #
added 4/17 to
correct snapshot too
old - RG
3600
Warning : audit_trail does not have the same values in 9i.ora and 11g.ora : missmatch !
audit_trail DB OS
Warning : sql92_security does not have the same values in 9i.ora and 11g.ora : missmatch !
sql92_security TRUE TRUE
Warning : audit_file_dest does not have the same values in 9i.ora and 11g.ora : missmatch !
audit_file_dest --- /u01/app/oracle/admin/dcicr/audit
Warning : O7_dictionary_accessibility does not have the same values in 9i.ora and 11g.ora : missmatch !
O7_dictionary_accessibility --- FALS

Last edited by vbe; 11-17-2010 at 09:35 AM.. Reason: code tags!
 

10 More Discussions You Might Find Interesting

1. UNIX and Linux Applications

How to compare two files using shell script

hi experts please help me to compare two files which are in different directory file1<file will be master file> (/home/rev/mas.txt} ex x1 x2 file2 <will be in different folder> (/home/rev/per/.....) ex x3 x4 the filesinside per folder i need to compare with master file... (1 Reply)
Discussion started by: revenna
1 Replies

2. UNIX for Dummies Questions & Answers

Create a shell script for write files with 2 parameters

Hello, I'm a newbie in shell script. So, i would like to create a shell script which take 2 IN parameters (PARAM1 and PARAM2). This script need to create 2 files as : I need to create this file /etc/apache2/sites-available/PARAM2 : <VirtualHost *:80> DocumentRoot "/home/PARAM1/www"... (0 Replies)
Discussion started by: chatlumo
0 Replies

3. Shell Programming and Scripting

Shell Script to Compare Two Files

I have a directory with about 6 files that we receive regularly. these 6 files contain information for 3 different units, 2 for each unit. files related to a specific unit are named similarly with a change in number at the end of the file. the numbers should be sequential. for each grouping of... (3 Replies)
Discussion started by: scriptman237
3 Replies

4. Shell Programming and Scripting

How to write a shell script to display files in single path?

Hello friends, I am a script which dispalys a multiple files with their contents. for exm: suppose two file test1.txt and test2.txt. when I run my script it have to display the below O/P. test1.txt -rw-r----- 1 sranga staff 91 Sep 23 02:18 calc.sh -rw-r----- 1 sranga ... (2 Replies)
Discussion started by: sivaranga001
2 Replies

5. Shell Programming and Scripting

Shell script to compare two files

I have two files; file A and file B. I need all the entries of file A to be compared with file B line by line. If the entry exists on file B, then save those on file C; if no then save it on file D Note :- all the columns of the lines of file A need to be compared, except the last two columns... (8 Replies)
Discussion started by: ajiwww
8 Replies

6. Shell Programming and Scripting

Compare two files using shell script

Hi i want to compare two files and i need the o/p of only difference here the files file1 achilles aedxbepo aedxbwdm01 aedxbwdm02 albedo amarice ambrister anakin anton argon artephius asgard avatar aymara (10 Replies)
Discussion started by: venikathir
10 Replies

7. Shell Programming and Scripting

How to use awk shell script to compare and match two files?

Basically, I have two files dupestest.txt 152,153 192,193,194 215,216 290,291 2279,2280 2282,2283haftest.txt 152,ABBOTS ROAD 153,ABBOTS ROAD 154,ABBOTS ROAD 155,ABBOTS ROAD 156,ABBOTS ROAD 157,ABBOTS ROADI want to find the numbers in dupestest.txt in haftest.txt... (4 Replies)
Discussion started by: amyc92
4 Replies

8. Shell Programming and Scripting

Using shell script to compare files and retrieve connections

Hello, I want to use shell script to generate network files (I tried with python but its taking too long). I have a list of nodes: node.txt LOC_Os11g37970 LOC_Os01g07760 LOC_Os03g19480 LOC_Os11g45740 LOC_Os06g08290 LOC_Os07g02800 I have an edge-list as well: edge.txt Source_node ... (2 Replies)
Discussion started by: Sanchari
2 Replies

9. Shell Programming and Scripting

Shell script to compare two files for duplicate..??

Hi , I had a requirement to compare two files whether the two files are same or different .... like(files contaisn of two columns each) file1.txt 121343432213 1234 64564564646 2345 343423424234 2456 file2.txt 121343432213 1234 64564564646 2345 31231313123 3455 how to... (2 Replies)
Discussion started by: hemanthsaikumar
2 Replies

10. UNIX for Beginners Questions & Answers

Shell Script to Compare Files and Email the differences

Hi, I have 2 files abc.txt and bdc.txt. I am using $diff -y abc.txt bcd.txt -- compared the files side by side I would like to write a Shell Script to cmpare the files side by side and print the results( which are not matched) in a side by side format and save the results in another... (10 Replies)
Discussion started by: vasuvv
10 Replies
All times are GMT -4. The time now is 08:15 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy