Monday, April 23, 2012

Silent Installation of Oracle Patchset

Sometimes you are tired of doing next-next-next when performing Oracle patchset installation. Luckily Oracle is smart enough to allow you to do silent installation and it’s very easy to do:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
[TEST] $ ./runInstaller -silent -force \
FROM_LOCATION="/mnt/backup/dba/software/oracle/database/10.2.0.5/Disk1/stage/products.xml" \
ORACLE_HOME="/oracle/product/10.2.0/db_2" \
ORACLE_HOME_NAME="db_2" \
TOPLEVEL_COMPONENT='{"oracle.patchset.db","10.2.0.5.0"}' \
DECLINE_SECURITY_UPDATES="true"
  
... skippppp ... 
  
Install successful
  
Linking in progress (Wednesday, January 26, 2011 4:58:27 PM CET)
..                                                               75% Done.
Link successful
  
Setup in progress (Wednesday, January 26, 2011 4:59:18 PM CET)
.........                                                       100% Done.
Setup successful
  
End of install phases.(Wednesday, January 26, 2011 4:59:24 PM CET)
WARNING:
The following configuration scripts need to be executed as the "root" user.
#!/bin/sh
#Root script to run
/oracle/product/10.2.0/db_2/root.sh
To execute the configuration scripts:
    1. Open a terminal window
    2. Log in as "root"
    3. Run the scripts
  
The installation of Oracle Database 10g Release 2 Patch Set 4 was successful.
Please check '/oracle/oraInventory/logs/silentInstall2011-01-26_04-56-13PM.log' for more details.
  
[root@test ~]# /oracle/product/10.2.0/db_2/root.sh
Running Oracle 10g root.sh script...
  
The following environment variables are set as:
    ORACLE_OWNER= oracle
    ORACLE_HOME=  /oracle/product/10.2.0/db_2
  
Enter the full pathname of the local bin directory: [/usr/local/bin]:
The file "dbhome" already exists in /usr/local/bin.  Overwrite it? (y/n)
[n]:
The file "oraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)
[n]:
The file "coraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)
[n]:
  
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
  
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
And you are done! :)

No comments:

Post a Comment