clone failing on create controlfile

3
In this Document Symptoms Cause Solution Applies to: Oracle Applications Manager - Version: 11.5.10.0 to 11.5.10.2 - Release: 11.5.10 to 11.5.10 Information in this document applies to any platform. ***Checked for relevance on 19-Feb-2011*** Symptoms The following error occurs when running adcfgclone.pl dbTier: From the ApplyDBTier_<timestamp>.log file: RC-40201: Unable to connect to Database <db sid>. StackTrace: java.lang.Exception: Cannot connect to database using DBUtil at oracle.apps.ad.clone.ApplyDatabase.checkDBConnection(ApplyDatabase.java:339 8) at oracle.apps.ad.clone.ApplyDatabase.<init>(ApplyDatabase.java:524) at oracle.apps.ad.clone.ApplyDatabase.<init>(ApplyDatabase.java:328) at oracle.apps.ad.clone.ApplyDatabase.<init>(ApplyDatabase.java:304) at oracle.apps.ad.clone.ApplyDBTier.<init>(ApplyDBTier.java:154) at java.lang.reflect.Constructor.newInstance(Native Method) at oracle.apps.ad.clone.util.CloneProcessor.run(CloneProcessor.java:68) at java.lang.Thread.run(Thread.java:479) Creating the control file for <instance name> database SQL*Plus: Release 10.2.0.2.0 - Production on Tue Apr 17 11:52:01 2007 Copyright (c) 1982, 2005, Oracle. All Rights Reserved. ERROR: ORA-01031: insufficient privileges ORA-01031: insufficient privileges ERROR: ORA-01031: insufficient privileges ORA-01031: insufficient privileges

Upload: melissa-miller

Post on 16-Nov-2015

220 views

Category:

Documents


5 download

DESCRIPTION

cloning failing on create controlfile.

TRANSCRIPT

In this DocumentSymptomsCauseSolution

Applies to: Oracle Applications Manager - Version: 11.5.10.0 to 11.5.10.2 - Release: 11.5.10 to 11.5.10Information in this document applies to any platform.***Checked for relevance on 19-Feb-2011*** SymptomsThe following error occurs when running adcfgclone.pl dbTier:

From the ApplyDBTier_.log file:RC-40201: Unable to connect to Database . StackTrace: java.lang.Exception: Cannot connect to database using DBUtil at oracle.apps.ad.clone.ApplyDatabase.checkDBConnection(ApplyDatabase.java:3398) at oracle.apps.ad.clone.ApplyDatabase.(ApplyDatabase.java:524) at oracle.apps.ad.clone.ApplyDatabase.(ApplyDatabase.java:328) at oracle.apps.ad.clone.ApplyDatabase.(ApplyDatabase.java:304) at oracle.apps.ad.clone.ApplyDBTier.(ApplyDBTier.java:154) at java.lang.reflect.Constructor.newInstance(Native Method) at oracle.apps.ad.clone.util.CloneProcessor.run(CloneProcessor.java:68) at java.lang.Thread.run(Thread.java:479)

Creating the control file for database SQL*Plus: Release 10.2.0.2.0 - Production on Tue Apr 17 11:52:01 2007 Copyright (c) 1982, 2005, Oracle. All Rights Reserved. ERROR: ORA-01031: insufficient privileges ORA-01031: insufficient privileges ERROR: ORA-01031: insufficient privileges ORA-01031: insufficient privileges SP2-0640: Not connected SP2-0640: Not connected

Also in the log file is the following line showing that ownership is being set to 'root' even though that is not the correct database owner. setting ownership: root:rootThe context file for the new target db tier shows:root rootThe issue can be reproduced by running adcfgclone.pl dbTier.CauseThe issue is caused by an incorrect /tmp/adpairsfile.lst.The parameters s_dbuser and s_dbgroupreferencethe 'root' user instead of the true database user. This fileshould be created fresh during a clone but in some cases where a previous clone failed on the server this filecould exist prior to the current clone session. SolutionTo implement the solution, please execute the following steps:

1. Rename the /tmp/adpairsfile.lst and the newly created database context file in $ORACLE_HOME/appsutil.2. Re-run adcfgclone.pl dbTier

Related