11gR2 Clone
Hi All,
We have recently upgraded our 11gR1 instance to 11gR2 with Oracle Apps 12.1.2. Now we have 3-4 more instances to do the same upgrade.
I have question now. I am thinking of doing 11gR2 clone of Binaries from this already upgraded instance to all other one and do rest of the tasks. We tried once tar and untar of files, but it has reference in all sh files for source instances. Can any one suggest how to change that reference, without manually update.
Hi,
We have recently upgraded our 11gR1 instance to 11gR2 with Oracle Apps 12.1.2. Now we have 3-4 more instances to do the same upgrade.
I have question now. I am thinking of doing 11gR2 clone of Binaries from this already upgraded instance to all other one and do rest of the tasks. We tried once >tar and untar of files, but it has reference in all sh files for source instances. Can any one suggest how to change that reference, without manually update.Relink $ORACLE_HOME binaries using command relink all
Regards,
X A H E E R
Similar Messages
-
11gR1 backup for 11gR2 database clone.
Hi all,
Our OS is 64 bit RHEL 5.7. On this we have EBS R12.1.3. with db version 11.1. Recently I installed EBS 12.1.3 (actually installed 12.1.1 and upgraded to 12.1.3) on a VM and upgraded its 11.1.0.7 db to 11.2.0.3. Now as I want to test the CPU patches on this instance I decided to clone the production instance here. Since this is a higher version oracle home (11.2.0), I will have to do some new steps here but am not sure what they are. I have restored the controlfile, restored and recovered the database and opened the database with STARTUP UPGRADE command. What steps should I perform next?
Regards,
VinodI believe this is what you need to do:
- Clone your application tier node only
Cloning Oracle Applications Release 12 with Rapid Clone [ID 406982.1]
Rapid Clone Documentation Resources For Release 11i and 12 [ID 799735.1]
- Re-apply the application patches you applied for 11.2.0.3 upgrade using "nodatabaseportion"
Interoperability Notes EBS 12.0 and 12.1 with Database 11gR2 [ID 1058763.1]
AD Command Line Options for Release R12 [ID 1078973.1]
- Apply CPU patches
Oracle E-Business Suite Releases 11i and 12 Critical Patch Update Knowledge Document (April 2013) [ID 1530756.1]
Thanks,
Hussein -
Why cannot find data movement for clone database option on OEM 11gr2
Hi Expert,
I have Oracle 11gr2 11.2.3 normal OEM install to monitor our RAC database. When i go click data movement option, i can't find the clone database option. Any idea why ? ThanksHi;
Similar question mention in below links:
Clone Database: Select Destination in OEM 10g Database Control
Also see:
http://www.stanford.edu/dept/itss/docs/oracle/10g/em.101/b12016.pdf << part 6-6
Regard
Helios -
Lsnrctl: command not found while restoring the cold clone 11i 11gr2 instan
Dear Experts,
We have noted few errors while doing the Clonning of our production instance.
1. We have upgraded our production instance database from 9i to 11gr2 using the latest interoperablity note id.
2. When trying to restore the instance we are getting the below error. We have noted that our database is up and running but when i manually tried to restore the instance we are gettting the below error.
bash: lsnrctl: command not found
Please note that when ever we are clonning the instance from source to target we have noted that lsnrctl command is missing from the oracle_home/bin folder ?
Is that a bug in 11gr2 with 11i instance.?
3. Please find the attach log files of the clone and advise ASAP.
Regards
Mohammed.[root@oracle JCLONE_oracle]# vi ApplyDBTier_11151230.log
sDbPort : 1524
sDbSid : JCLONE
sDbUser : apps
Trying to connect using SID...
getConnectionUsingSID() -->
JDBC URL: jdbc:oracle:thin:@oracle.jtl.co.ke:1524:JCLONE
Exception occurred: java.sql.SQLException: IO Error: The Network Adapter could not establish the connection
Trying to connect using SID as ServiceName
getConnectionUsingServiceName() -->
JDBC URL: jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oracle.jtl.co.ke)(PORT=1524))(CONNECT_DATA=(SERVICE_NAME=JCLONE)))
Exception occurred: java.sql.SQLException: IO Error: The Network Adapter could not establish the connection
Trying to connect using SID as ServiceName.DomainName
getConnectionUsingServiceName() -->
JDBC URL: jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oracle.jtl.co.ke)(PORT=1524))(CONNECT_DATA=(SERVICE_NAME=JCLONE.jtl.co.ke)))
Exception occurred: java.sql.SQLException: IO Error: The Network Adapter could not establish the connection
Connection could not be obtained; returning null
-------------------ADX Database Utility Finished---------------
RC-00118: Error occurred during creation of database
Raised by oracle.apps.ad.clone.ApplyDatabase
StackTrace:
java.lang.Exception: Control file creation failed
at oracle.apps.ad.clone.ApplyDatabase.<init>(ApplyDatabase.java:661)
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 sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:501)
at oracle.apps.ad.clone.util.CloneProcessor.run(CloneProcessor.java:68)
at java.lang.Thread.run(Thread.java:595)
Errors in file /u04/d01/tech_st/11.2.0/admin/JCLONE_oracle/diag/rdbms/jclone/JCLONE/trace/JCLONE_ora_13528.trc:
ORA-00367: checksum error in log file header
ORA-00305: log 1 of thread 1 inconsistent; belongs to another database
ORA-00312: online log 1 thread 1: '/u04/d01/apps_st/data/log01a.dbf'
Clearing online redo logfile 1 complete
Clearing online redo logfile 2 /u04/d01/apps_st/data/log02a.dbf
Clearing online log 2 of thread 1 sequence number 0
Errors in file /u04/d01/tech_st/11.2.0/admin/JCLONE_oracle/diag/rdbms/jclone/JCLONE/trace/JCLONE_ora_13528.trc:
ORA-00367: checksum error in log file header
ORA-00305: log 2 of thread 1 inconsistent; belongs to another database
ORA-00312: online log 2 thread 1: '/u04/d01/apps_st/data/log02a.dbf'
addlnctl.txt
/u04/d01/tech_st/11.2.0/appsutil/scripts/JCLONE_oracle/addlnctl.sh: line 96: lsnrctl: command not found
/u04/d01/tech_st/11.2.0/appsutil/scripts/JCLONE_oracle/addlnctl.sh: line 111: lsnrctl: command not found
addlnctl_tmp.txt
/u04/d01/tech_st/11.2.0/appsutil/scripts/JCLONE_oracle/addlnctl.sh: line 111: lsnrctl: command not found -
How to clone 11gr2 grid and oracle homes
Hi,
By mistake I have installed the software and the database under the same disk /u01. I should had installed the software under /u02 and the database + grid infrastructure for standalone server + Oracle restart under /u01.
My database is 11gR2 on Linux Redhat server.
I have installed Grid Infrastructure for standalone server and the database in /u01.
How can I clean clone all these components from /u01 to /u02? I mean the components are:
- Grid Infrastructure for standalone server under grid user.
- Oracle Restart under grid user.
- Oracle software and Oracle database.
Thank yougjilevski1 wrote:
Hi,
You can clone everything from GI to RDBMS home.
For GI cloning look for clone.pl at section 4
Oracle® Clusterware
Administration and Deployment Guide
11g Release 2 (11.2)
For 11gR2
http://download.oracle.com/docs/cd/E11857_01/em.111/e12255/oui6_cloning.htm
Regards,
Edited by: gjilevski1 on Jun 24, 2011 3:42 PMYou meant section 3 I think http://download.oracle.com/docs/cd/E14072_01/rac.112/e10717/new_clonecluster.htm
What about desinstalling everything : grid infrastructure, Oracle restart , Oracle homes, databases.
I have seen some users of this forum complaining of the errors from the de installer.
can I simply use the Deinstallation Tool downloaded from the OTN and then in ORDER:
1- Remove the Oracle database home under Oracle User:
./deinstall -home /u01/app/oracle/product/11.2.0/db_1
2- Remove the grid install under the grid user:
./deinstall -home /u01/app/11.2.0/grid
Any idea please?
Thank you -
R12.1.3 - clone issues now after DB upgrade to 11gr2
R12.1.3 on RH Linux x86_64.
Upgraded the dB from 11.1.0.7 to 11.2.0.3 over the weekend and now trying to do rapid clone and having some challenges.
1. adcfgclone.pl dbTechStack
First issue was after refreshing dbTier files and running "perl adcfgclone.pl dbTechStack".
RC-00110: Fatal: Error occurred while relinking of ApplyDBTechStack
Errors about perl 5.10 vs 5.8 or something
o Ended up being because the $Oracle_Home/appsutil/jre directory didn't exist.
o Which still needs to be sorted out in Prod but for now I just copied it from Test.
o Then "export PATH=/app/oracle/ebsd/db/tech_st/11.2.0/perl/bin/:$PATH" to make it use new perl version.
Edit: This thread seems to be very similar but I still don't see the jre step that I missed that he refers to here.
https://forums.oracle.com/thread/2372594
I did re-run "How To Recreate the /appsutil/scripts/ directory [ID 377495.1]" but I see now that just creates the scripts directory and not my missing jre.
I do have it on a Test instance I upgraded some time ago. Can I just copy from there?
2. Then I used rman to refresh my database. This step worked ok.
3. adcfgclone.pl dbTier
Now trying to run this step and first issue is:
RC-20200: Fatal: Could not find Unzip. At this time only Native UnZip 5.X is supported.
Please make sure you have UnZip 5.X in your path and try again...
I see some others pots on this but I can't apply patch yet so just modify PATH to use Linux unzip vs unzip 6 in $Oracle_Home.
Now I get:
RC-00110: Fatal: Error occurred while relinking of ApplyDBTechStack
If I check the log file at the end I see this:
[AutoConfig Error Report]
The following report lists errors AutoConfig encountered during each
phase of its execution. Errors are grouped by directory and phase.
The report format is:
<filename> <phase> <return code where appropriate>
[INSTANTIATE PHASE]
AutoConfig could not successfully instantiate the following files:
Directory: /app/oracle/ebsd/db/tech_st/11.2.0/appsutil/install/EBSD_db6t
adcrdb.sh INSTE8
AutoConfig is exiting with status 1
RC-50014: Fatal: Execution of AutoConfig was failed
Raised by oracle.apps.ad.clone.ApplyDBTechStack
One thing I do notice is when providing my responses it is suggesting my Dev Oracle_Home with the old 11.1.0 path instead of the path for my Prod server and the 11.2.0 directory.
Also the display is already set to my Test server while it should be making me change it from Prod.
Is that clear? Something is not right here... (obviously)Well that wasn't the silver bullet I was hoping for.
Still getting "RC-00110: Fatal: Error occurred while relinking of ApplyDBTechStack".
If I look in my ApplyDBTier_06192204.log file I see.
Using make file "ins_emagent.mk" for linking SYSMAN utilities...
Error while running adlnkoh.sh.
return code = .58
and then "Warning: Unable to connect to Database" but the db is down now anyway so why the error?
and eventually:
[AutoConfig Error Report]
The following report lists errors AutoConfig encountered during each
phase of its execution. Errors are grouped by directory and phase.
The report format is:
<filename> <phase> <return code where appropriate>
[INSTANTIATE PHASE]
AutoConfig could not successfully instantiate the following files:
Directory: /app/oracle/ebsd/db/tech_st/11.2.0/appsutil/install/EBSD_xxx
adcrdb.sh INSTE8
AutoConfig is exiting with status 1
RC-50014: Fatal: Execution of AutoConfig was failed
Raised by oracle.apps.ad.clone.ApplyDBTechStack -
Oracle 11gR2 Express Edition on Linux Ubuntu 11.10 howto
h1. Oracle 11gR2 Express Edition on Linux Ubuntu 11.10 howto
Author: Dude
Version: D
Last modified: 14-Jan-2012
You are welcome to add comments, but please do not discuss your installation issues in this thread. If you have a question about the instructions, please add a simple note to the link of your own thread. The instructions are the result of my own research and development. If you would like to use any of the information for your own blog or website, please include a link to this reference to include future changes.
Oracle 11gR2 Express Edition on Linux Ubuntu 11.10 howto
h2. Purpose
This document outlines instructions how to install Oracle XE under Ubuntu 11.10.
Ubuntu or Debian based Linux is not on the list of supported operation systems according to the Oracle documentation at http://download.oracle.com/docs/cd/E17781_01/install.112/e18802/toc.htm. You may want to consider virtualization software like Oracle Virtualbox and install Oracle Enterprise Linux as a free and professional alternative to installing XE under Ubuntu. You can also download pre-build virtual machines that include Oracle XE. You can browse http://otn.oracle.com/community/developer-vm for more information.
h2. Topics
h4. 1) Install Linux Ubuntu
h4. 2) Remote Terminal
h4. 3) Install Additional Software
h4. 4) Managing Swap Space
h4. 5) Modify Kernel Parameters
h4. 6) Oracle Home Directory
...a) Resize the Root Partition
...b) Setup External Storage
h4. 7) ORA-00845: MEMORY_TARGET
h4. 8) Installing Oracle 11gR2 Express Edition
h4. 9) Post-Installation
h4. 10) Tips and Troubleshooting
...a) Port 1521 appears to be in use by another application
...b) cannot touch `/var/lock/subsys/listener': No such file or directory
...c) ORA-00845: MEMORY_TARGET
...d) Apex ADMIN password
...e) SYS and SYSTEM password
...f) Uninstall Oracle 11g XE
...g) Reconfigure Oracle 11g XE
...h) Gnome Classic desktop
...i) Unix vi cursor keys
...j) Backup Database
h4. 11) History
h4. 12) References
h2. 1) Install Linux Ubuntu
The following assumes you have installed Ubuntu 11.10 Desktop Edition for AMD 64-bit, or upgraded from a previous version. Keep in mind that Oracle 11gR2 Express Edition is only available for 64-bit architecture. It is not necessarily a requirement, but I would not bother to install Oracle 11gR2 XE on a system with less than 2 GB of RAM installed. You can download Ubuntu for free at: http://www.ubuntu.com/download/ubuntu and install it using the default settings provided.
You can apply the latest OS patch-sets by clicking the power button icon in the upper right hand corner of the screen and selecting "Updates available..."
h2. 2) Remote Terminal
You will need command line access to perform the installation tasks. Select the top "Dash Home" button of the Unity toolbar and enter the word "terminal", or use CTRL-ALT-t. If you prefer to open a remote terminal session use SSH. Ubuntu does not come with a secure shell login by default. To install it, use the following command:
sudo apt-get install openssh-serverYou cannot login as root unless you set a root password using the "sudo passwd root" command. However, you can get root user access using the "sudo" command, which requires only to re-enter the password of your personal account. Access to "sudo" is controlled by the /etc/sudoers file.
The best way to establish a remote command line session as root is to login with your personal account, e.g.: ssh [email protected], and then type "sudo su -" to become root, or use "sudo <command>" to execute individual commands. If your account does not have "sudo" access you can login as root using "su - root", but will need to know the root password.
h2. 3) Install Additional Software
Oracle 11g Express Edition requires additional software that is not installed by default:
sudo apt-get install alien libaio1 unixodbch2. 4) Managing Swap Space
Oracle demands that the minimum swap space for Oracle Database XE is 2 GB (2095100 KB) or twice the size of RAM, whichever is lesser. Enter the following shell command to verify your swap space:
cat /proc/meminfo | grep -i swap
SwapCached: 0 kB
SwapTotal: 2095100 kB
SwapFree: 2095100 kBYou can increase available swap space by using a swap file as long as disk space permits. The advantage of a swap file versus a swap partition is flexible space management because you can add or delete swap space on demand as necessary. The following will create and enable an additional 1 GB swap file at system startup, located in the /home directory:
Login as root:
sudo su -Enter the following commands:
dd if=/dev/zero of=/home/swapfile bs=1024 count=1048576
mkswap /home/swapfile
swapon /home/swapfile
swapon -aCreate a backup of the original "fstab" file and add the new swap file:
cp /etc/fstab /etc/fstab.backup_`date +%N`
echo '/home/swapfile swap swap defaults 0 0' >> /etc/fstabExit from root and verify the new swap space:
exit
swapon -s
Filename Type Size Used Priority
/dev/sda5 partition 2095100 0 -1
/home/swapfile file 1048572 0 -2Swap space is not a substitute for installed RAM. Swap space is a safeguard that allows the system to move idle processes to disk before the OOM killer will begin to terminate processes in order to free up enough real memory to keep the system operational. The general rule for sizing the swap space depends on the size of installed RAM. If your system has less then 4 GB of RAM the swap space should usually be at least twice this size. If you have more than 8 GB of RAM installed you may consider to use an equal size as swap space. The more RAM you have installed, the less likely you are going to run into memory starvation, and the less likely you are going to need swap space, unless you have a bad process.
h2. 5) Modify Kernel Parameters
Oracle 11gR2 Express Edition requires the following Kernel parameters. Enter the commands exactly as shown:
Login as root:
sudo su -Cut & paste the following directly into a command shell (not a text editor):
cat > /etc/sysctl.d/60-oracle.conf <<-EOF
# Oracle 11g XE kernel parameters
fs.file-max=6815744
net.ipv4.ip_local_port_range=9000 65500
kernel.sem=250 32000 100 128
# kernel.shmmax=429496729
kernel.shmmax=107374183
EOFLoad and verify the new kernel parameters:
service procps start
sudo sysctl -q fs.file-max
sudo sysctl -q kernel.shmmax
sudo sysctl -q net.ipv4.ip_local_port_range
sudo sysctl -q kernel.sem The SHMMAX kernel parameter defines the upper memory limit of a process. It is a safeguard to stop a bad process from using all memory and causing RAM starvation. The Linux default is 32 MB. The official Oracle XE installation documentation suggests a value of 4 GB -1 bytes (429496729). Since Oracle 11g XE has a 1 GB memory limit, a smaller footprint will be a better safeguard for the complete system. Setting the SHMMAX parameter to 107374183 will be sufficient.
h2. 6) Oracle Home Directory
At the time of this writing, Enterprise Linux 6 is not supported for Oracle database yet. It is therefore not possible to confirm Oracle ext4 filesystem compatibility, which is default in Ubuntu 11. According to various information, ext4 may cause a performance problem for Oracle 11g database. The following will show you how to add a ext3 partition to your existing setup.
h3. 6.a) Resize the Root Partition
Provided you have sufficient free disk space, you should be able to resize the root partition to create an extra ext3 filesystem. Considering the 11 GB user datafile limit of the Express Edition, 18 GB should be more than enough.
You can use the free Gparted Live CD to shrink your startup volume. Gparted downloads are available at http://sourceforge.net/projects/gparted/files/gparted-live-stable. When burning the CD, pay attention to burn the raw .iso image and not the possibly "mounted" image. If you are using a virtual machine like Oracle Virtualbox, you can mount the .iso image directly. There are going to be a few prompts when the system starts from the CD, but you can press Return to accept the defaults.
When the Gparted window appears:
- Select your ext4 root partition, usually /dev/sda1
- Select the "Resize/Move" button from the toolbar.
- Enter 18000 into the "Free space following" field and press the Return key.
Be careful not not change the start of the partition!
- Click the "Resize/Move" of the dialog and then then the "Apply" toolbar button.
The process may take several minutes - do not abandon it!
- Select the new unallocated free space of ~ 18 GB and push the "New" button.
- Set the file system to "ext3" and label it "oraclexe" and click the "Add" button.
Be sure to label it oraclexe, otherwise the follow-up instructions will fail.
- Finally select "Apply from the toolbar to apply the changes.
- Quit "Gparted", select "Exit" from the desktop and choose "Reboot" to restart the system.
{code}
After the system has restarted, open a terminal command shell.
Login as root:
{code}
sudo su -
{code}
Backup "fstab" and add the UUID of the partition. The "tr" command remove the quotes:
{code}
cp /etc/fstab /etc/fstab_`date +%N`
uuid=`blkid | grep oraclexe | awk '{print $3}'`
uuid=`echo $uuid | tr -d '\042'`
echo $uuid
echo "$uuid /u01 ext3 errors=remount-ro 0 1" >> /etc/fstab
{code}
The UUID is a unique number and should look similar to:
{code}
UUID=d1db753e-b5dd-4a4c-a61e-259c69867b58
{code}
Restart the system:
{code}
reboot
{code}
Verify the success:
{code}
df -h /u01
{code}
h3. 6.b) Setup External Storage
If you prefer to setup an external drive to install Oracle XE, beware that it can be a fatal mistake to make an entry in /etc/fstab to automount your external storage device. An unavailable device in /etc/fstab will prevent a system startup and prompt for appropriate actions at the console.
The following is an example of how to prepare an external storage device to be used for Oracle 11g, including a script to automatically mount an external drive at system startup without the disadvantages of /etc/fstab. The script will also take into consideration that a device name might shift if you attach additional devices.
To find out which USB devices are connected:
{code}
sudo parted -l
{code}
Look for the device that matches your USB storage. For example: /dev/sdb1
{code}
Model: USB 2.0 Flash Disk (scsi)
Disk /dev/sdb: 2064MB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 20.5kB 1929MB 1929MB hfs+ mystick
{code}
Initialize the device using ext3 filesystem - this will erase all data. The "-c" option will check for bad blocks (read-only), "-L" is the volume label:
{code}
sudo umount /dev/sdb1
sudo mkfs.ext3 -c -L oraclexe /dev/sdb1
{code}
Install the pmount distribution package:
{code}
sudo apt-get install pmount
{code}
Login as root:
{code}
sudo su -
{code}
Cut & paste the following into the command prompt (not a text editor):
{code}
cat > /etc/init.d/oracle-mount <<-EOF
#! /bin/sh
# /etc/init.d/oracle-mount
VOL_UUID=alphanumeric
VOL_LABEL=oraclexe
VOL_SYMLINK=/u01
mount=/usr/bin/pmount
uuid2dev() {
VOL_DEVICE="\`blkid | grep \$VOL_UUID | awk '{print \$1}'\`"
VOL_DEVICE="\`echo \$VOL_DEVICE | tr -d ':'\`"
echo \$VOL_DEVICE
case "\$1" in
start)
echo "Starting script /etc/init.d/oracle-mount"
uuid2dev
\$mount \$VOL_DEVICE \$VOL_LABEL
if [ -d /media/\$VOL_LABEL ]; then
echo "Mount \$VOL_DEVICE success"
ln -sf /media/\$VOL_LABEL \$VOL_SYMLINK
else
echo "Error mouting \$VOL_DEVICE"
fi
stop)
echo "Stopping script /etc/init.d/oracle-mount"
uuid2dev
/bin/umount \$VOL_DEVICE 2>/dev/null
if [ "\`/usr/bin/pmount | /bin/grep \$VOL_DEVICE\`" ]; then
echo "Error unmounting \$VOL_DEVICE"
else
rm -f \$VOL_SYMLINK
fi
echo "Usage: /etc/init.d/oracle-u01 {start|stop}"
exit 1
esac
### BEGIN INIT INFO
# Provides: oracle-mount
# Required-Start: \$remote_fs \$syslog
# Required-Stop: \$remote_fs \$syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start daemon at boot time
# Description: Mount hotplug-usb drive and create symlink
### END INIT INFO
EOF
{code}
Install the oracle-mount init script:
{code}
chmod 755 /etc/init.d/oracle-mount
update-rc.d oracle-mount defaults 01 99
{code}
Get the UUID of the volume "oraclexe" and update the VOL_UUID in the init script accordingly:
{code}
uuid=`blkid | grep oraclexe | awk '{print $3}'`
echo $uuid
sed -i "s/^VOL_UUID=.*/VOL_$uuid/g" /etc/init.d/oracle-mount
{code}
The UUID of your device will be a unique number, but should be similar to:
{code}
UUID="3f5e9963-b328-49f3-b3e8-a3561ae34106"
{code}
Logout of root and test the init script:
{code}
exit
sudo /etc/init.d/oracle-mount stop
ls /u01
sudo /etc/init.d/oracle-mount start
ls /u01
{code}
Your output should look like:
{code}
Stopping script /etc/init.d/oracle-mount
/dev/sdb1
ls: cannot access /u01: No such file or directory
Starting script /etc/init.d/oracle-mount
/dev/sdb1
Mount /dev/sdb1 success
lost+found
{code}
h2. 7) ORA-00845: MEMORY_TARGET
Oracle 11gR2 XE under Ubuntu 11.10 will result in "ORA-00845: MEMORY_TARGET not support on this system" either at Oracle database startup or during the initial installation. Ubuntu 11.10 uses a new version of the "systemd" system and session manager and has migrated away from /dev/shm and other common directories in favor of /run.
There are several ways how to address the problem. You can either enable /dev/shm shared memory, or change the default memory management of Oracle 11g from AMM (Automatic Memory Management) to ASMM (Automatic Shared Memory Management) as it was in used the previous 10g version. Since AMM is one of the new features of 11g, the following will show you how to make to make AMM work.
Login as root:
{code}
sudo su -
{code}
Cut & paste the following into the command prompt (not a text editor):
{code}
cat > /etc/init.d/oracle-shm <<-EOF
#! /bin/sh
# /etc/init.d/oracle-shm
case "\$1" in
start)
echo "Starting script /etc/init.d/oracle-shm"
# Run only once at system startup
if [ -e /dev/shm/.oracle-shm ]; then
echo "/dev/shm is already mounted, nothing to do"
else
rm -f /dev/shm
mkdir /dev/shm
mount -B /run/shm /dev/shm
touch /dev/shm/.oracle-shm
fi
stop)
echo "Stopping script /etc/init.d/oracle-shm"
echo "Nothing to do"
echo "Usage: /etc/init.d/oracle-shm {start|stop}"
exit 1
esac
### BEGIN INIT INFO
# Provides: oracle-shm
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Bind /run/shm to /dev/shm at system startup.
# Description: Fix to allow Oracle 11g use AMM.
### END INIT INFO
EOF
{code}
Install the oracle-shm init script:
{code}
chmod 755 /etc/init.d/oracle-shm
update-rc.d oracle-shm defaults 01 99
{code}
Restart the system:
{code}
reboot
{code}
Verify the success:
{code}
sudo cat /etc/mtab | grep shm
{code}
{code}
none /run/shm tmpfs rw,nosuid,nodev 0 0
/run/shm /dev/shm none rw,bind 0 0
{code}
The upper limit of shared memory under Linux is set to 50 % of the installed RAM by default. If your system has less than 2 GB of RAM installed, there is still a chance to run into ORA-00845 error if your shared memory is used by other software.
The verify available shared memory, type the following commands:
{code}
sudo df -h /run/shm
{code}
h2. 8) Installing Oracle 11gR2 Express Edition
The final release version of Oracle 11gR2 Express Edition can be downloaded for free at http://otn.oracle.com/database/express-edition/downloads. The software should automatically downloaded into the "Downloads" folder of your home directory.
Enter the following commands to unpack the installer:
{code}
cd ~/Downloads
unzip oracle-xe-11.2.0-1.0.x86_64.rpm.zip
rm oracle-xe-11.2.0-1.0.x86_64.rpm.zip
{code}
The Debian Linux based package management of Ubuntu is not compatible with the Red Hat package manager. The Oracle installer needs to be converted using the following commands:
{code}
cd ~/Downloads/Disk1
sudo alien --to-deb --scripts oracle-xe-11.2.0-1.0.x86_64.rpm
(This may take a few minutes)
rm oracle-xe-11.2.0-1.0.x86_64.rpm
{code}
The following needs to be set for compatibility:
{code}
sudo ln -s /usr/bin/awk /bin/awk
sudo mkdir /var/lock/subsys
{code}
Ubuntu uses different tools to manage services and system startup scripts. The "chkconfig" tool required by the Oracle installer is not available in Ubuntu. The following will create a file to simulate the "chkconfig" tool.
Login as root:
{code}
sudo su -
{code}
Copy & paste the following *directly* into the command prompt to create a file:
{code}
cat > /sbin/chkconfig <<-EOF
#!/bin/bash
# Oracle 11gR2 XE installer chkconfig hack for Debian based Linux (by dude)
# Only run once.
echo "Simulating /sbin/chkconfig..."
if [[ ! \`tail -n1 /etc/init.d/oracle-xe | grep INIT\` ]]; then
cat >> /etc/init.d/oracle-xe <<-EOM
### BEGIN INIT INFO
# Provides: OracleXE
# Required-Start: \\\$remote_fs \\\$syslog
# Required-Stop: \\\$remote_fs \\\$syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Oracle 11g Express Edition
### END INIT INFO
EOM
fi
update-rc.d oracle-xe defaults 80 01
EOF
{code}
Exit root:
{code}
exit
{code}
Set execute privileges:
{code}
sudo chmod 755 /sbin/chkconfig
{code}
Install Oracle 11gR2 Express Edition entering the following commands:
{code}
cd ~/Downloads/Disk1
sudo dpkg --install ./oracle-xe_11.2.0-2_amd64.deb
(This may take a couple of minutes)
{code}
Run the configuration script to create (clone) the database and follow the screen. Accept the default answers, including "y" to startup the database automatically, or modify as required.
{code}
sudo /etc/init.d/oracle-xe configure
(This can take a few minutes - the installation completed successfully.)
{code}
To verify success, the procedure should end showing:
{code}
Starting Oracle Net Listener...Done
Configuring database...Done
Starting Oracle Database 11g Express Edition instance...Done
Installation completed successfully.
{code}
Set a password for the Oracle account:
{code}
sudo passwd oracle
{code}
h2. 9) Post-Installation
In order to use sqlplus and other tools, the Oracle account requires specific environment variables. The following will set these variables automatically at every Oracle login:
Login as the Oracle user:
{code}
su - oracle
{code}
Copy the default account skeleton files and add the Oracle env script to .profile:
{code}
cp /etc/skel/.bash_logout ./
cp /etc/skel/.bashrc ./
cp /etc/skel/.profile ./
echo "" >>./.profile
echo '. /u01/app/oracle/product/11.2.0/xe/bin/oracle_env.sh' >>./.profile
{code}
By default, the Oracle Database XE graphical user interface is only available at the local server, but not remotely. The following will enable remote logins:
Login as the Oracle user:
{code}
su - oracle
{code}
Login as SYSDBA and execute the following:
{code}
sqlplus / as sysdba
SQL> EXEC DBMS_XDB.SETLISTENERLOCALACCESS(FALSE);
exit
{code}
See http://download.oracle.com/docs/cd/E17781_01/admin.112/e18585/toc.htm for more information.
h3. a) Unity desktop configurations
The Oracle XE menu under the previous Gnome Classic desktop shows several useful scripts to backup the database, start and stop the database, etc. Under the Unity based desktop this menu is not available. You can either switch to the Gnome Classic desktop as outlined in chapter 2, or perform the following steps to modify and copy the scripts as outlined below. The start and stop database scripts will also be modified to perform a progress feedback.
Login as user root:
{code}
sudo su -
{code}
Convert desktop files:
{code}
cd /usr/share/applications
sed -i 's/Categories.*/Categories=Database;Office;Development;/g' oraclexe*
sed -i 's/MultipleArgs/X-MultipleArgs/g' oraclexe*
sed -i 's/MimeType.*/MimeType=application\/x-database/g' oraclexe*
sed -i 's/.png//g' oraclexe*
sed -i 's/Terminal=false/Terminal=true/g' oraclexe-startdb.desktop
sed -i 's/Terminal=false/Terminal=true/g' oraclexe-stopdb.desktop
{code}
Exit root:
{code}
exit
{code}
Login as user Oracle:
{code}
su - oracle
{code}
Modify database start and stop scripts:
{code}
cd /u01/app/oracle/product/11.2.0/xe/config/scripts
cp startdb.sh start.sh_orig
cp stopdb.sh stopdb.sh_orig
sed -i 's/>.*//g' startdb.sh
sed -i 's/>.*//g' stopdb.sh
{code}
You will need SYSDBA privileges and set Oracle environment variables in order to use your regular user account.
Login to your regular user account:
{code}
su - dude
{code}
Enter the folowing command:
{code}
sudo usermod -a -G dba dude
{code}
Then update your profile to automatically set the necessary Oracle environment variables:
{code}
echo "" >>./.profile
echo '. /u01/app/oracle/product/11.2.0/xe/bin/oracle_env.sh' >>./.profile
{code}
Update your Desktop folder to contain useful Oracle XE scripts:
{code}
cp /usr/share/applications/oraclexe* ~/Desktop
chmod 750 ~/Desktop/oraclexe*
{code}
To verify success re-login and try "sqlplus":
{code}
su - oracle
sqlplus / as sysdba
{code}
h2. 10) Tips and Troubleshooting
h3. 10. a) Port 1521 appears to be in use by another application
Error: Port 1521 appears to be in use by another application. Specify a different port.This error happens after a previously unsuccessful configuration attempt using /etc/init.d/oracle-xe configure script. The script was able to start the Listener process, but most likely failed to continue to clone the database, e.g. ORA-00845. The following should correct the problem:
Determine the oracle listener process that is already running:
{code}
$ ps -ef | grep oracle
{code}
Your output should be similar to:
{code}
oracle 19789 1 0 19:46 ? 00:00:00 /u01/app/oracle/product/11.2.0/xe/bin/tnslsnr
{code}
Then kill the process, using the appropriate process id, for instance:
{code}
$ sudo kill -9 19789
{code}
h3. 10.b) cannot touch `/var/lock/subsys/listener': No such file or directory
Starting Oracle Net Listener...touch: cannot touch `/var/lock/subsys/listener': No such file or directoryThis error occurs when you run /etc/init.d/oracle-xe configure, but failed the preinstallation step to create the /var//lock/subsys directory as outlined in chapter 8.
h3. 10.c) ORA-00845: MEMORY_TARGET
ORA-00845: MEMORY_TARGET not supported on this system See chapter 7 to enable /dev/shm and verify free space available in /run/shm
h3. 10.d) Apex ADMIN password
According to the Oracle documentation, the password for the INTERNAL and ADMIN Oracle Application Express user accounts is initially the same as the SYS and SYSTEM administrative user accounts. Well, I tried several times without success. To reset the Apex Admin password:
Login as user oracle:
{code}
su - oracle
{code}
Login as SYSDBA and type the following:
{code}
sqlplus / as sysdba
{code}
At the SQL prompt, type the following to be prompted to change the password:
{code}
SQL> @?/apex/apxxepwd.sql
exit
{code}
When done, open your browser and go to http://127.0.0.1:8080/apex
Workspace: Internal
Username: ADMIN
Password: password you set with apxxepwd.sql
I will prompt you to reset the password:
old password: password you set with apxxepwd.sql
new password: final_password
You can also login as the Apex Admin using http://127.0.0.1:8080/apex/apex_admin
h3. 10.e) SYS and SYSTEM password
Use the following commands to reset the SYS and SYSTEM passwords if necessary:
Login as the Oracle user:
{code}
su - oracle
{code}
Login as SYSDBA and type the following at the SQL prompt:
{code}
sqlplus / as sysdba
SQL> alter user sys identified by "password" account unlock;
SQL> alter user system identified by "password" account unlock;
SQL> exit
{code}
h3. 10.f) Uninstall Oracle 11g XE
The following will completely uninstall and remove Oracle 11g XE:
Open a terminal seesion and login as user root:
{code}
sudo su -
{code}
Enter the following:
{code}
/etc/init.d/oracle-xe stop
dpkg --purge oracle-xe
rm -r /u01/app
rm /etc/default/oracle-xe
update-rc.d -f oracle-xe remove
update-rc.d -f oracle-mount remove
update-rc.d -f oracle-shm remove
{code}
h3. 10.g) Reconfigure Oracle 11g XE
Type the following commands in a terminal window:
{code}
sudo /etc/init.d/oracle-xe stop
sudo rm /etc/default/oracle-xe
sudo /etc/init.d/oracle-xe configure
{code}
h3. 10.h) Gnome Classic desktop
Ubuntu 11 moved from the Gnome Classic desktop to Unity and removed the "Ubuntu Classic" login option. Unity was designed to make more efficient use of space given a limited screen size and touch screens. If you prefer to use the Gnome Classic desktop, enter the following into a terminal window:
{code}
sudo apt-get install gnome-panel
{code}
To log into the Gnome Classic desktop, select the "Gearwheel" at the login screen and select "Gnome Classic".
h3. 10.i) Unix vi cursor keys
The instructions in this tutorial do not require the use of any text editor. However, if you would like use the backspace and cursor keys in the "vi-editor", the following needs to be installed:
{code}
sudo apt-get install vim
{code}
h3. 10.j) Backup Database
In order to perform an online database backup using the supplied "Backup Database" script, the database needs to run in Archive-Log mode. This can be setup using the following commands:
Login as the Oracle user:
{code}
su - oracle
{code}
Login as SYSDBA and type the following:
{code}
sqlplus / as sysdba
SQL> shutdown immediate
SQL> startup mount
SQL> alter database archivelog;
SQL> alter database open;
SQL> exit
{code}
h2. 11) History
Version: A, 24-Oct-2011
- first release
Version: B, 25-Oct-2011
- reduced instructions.
- corrected errors in 6a and 8.
- new strategy addressing ORA-00845 error.
- rework of chapter 10.
Version: C, 30-Nov-2011
- corrected typo in 6a
- new procedures in 9a.
- added progress feedback to database scripts.
Version D, 14-Jan-2012
- corrected presentation errors.
- reorganized instructions.
h3. 12) References
http://download.oracle.com/docs/cd/E17781_01/install.112/e18802/toc.htm
http://askubuntu.com/questions/57297/why-has-var-run-been-migrated-to-run
http://lwn.net/Articles/436012/
https://forums.oracle.com/forums/thread.jspa?threadID=2300750&tstart=0
Kind regards and best of luck!
Dude.Excellent Blog. Thank You
Small clarification on Step **6) Oracle Home Directory, ...a) Resize the Root Partition**
Ubuntu 11.10 has Gparted available as a Ubuntu software download, DONT use that while trying the above step, instead download the ISO file from http://sourceforge.net/projects/gparted/files/gparted-live-stable/ gparted-live-0.12.0-5.iso (124.6 MB)
Burn that ISO file on a Blank DVD, reboot the Ubuntu , during startup select Boot from DVD Option if not already selected. this will take to Boot Menu Options of Gparted Live then select the first menu option, and this allows to do further action such as Re-sizing .
and once you have chosen and executed step a) . do NOT run step b) also that is "Setup External Storage"
I hope this minor clarification can avoid some confusion
Regards
Madhusudhan Rao
Edited by: MadhusudhanRao on Mar 24, 2012 11:30 PM -
$ORACLE_HOME/appsutil/clone folder missing on DB Tier
Env - APPS Tier - SLES 10 - SP3 - 12.1.2
DB Tier - zO/S - s390 - SLES 11-SP1
I'm missing my $ORACLE_HOME/appsutil/clone folder on the DB tier
Here's the catch - this instance was upgraded to 11gR2 in Sept - and I followed the steps to "Implement Autoconfig on a Recently Upgraded ORACLE_HOME".
Today is the first time we're re-cloning from PROD - so I've laid down a new APPS tier filesystem (copied from PROD) and the Senior Oracle DBA is in the process of bring up the DB after a flash copy.
When I log into my DB server, I cannot find the above folder - but find the following folders under appsutil
drwxr-xr-x 2 oracle dba 80 2012-08-19 05:10 sql
drwxr-xr-x 3 oracle dba 104 2012-08-19 05:10 java
drwxr-xr-x 2 oracle dba 176 2012-08-19 05:10 media
drwxr-xr-x 4 oracle dba 96 2012-08-19 05:10 perl
drwxr-xr-x 3 oracle dba 440 2012-08-19 05:10 html
drwxr-xr-x 2 oracle dba 48 2012-08-19 05:20 temp
drwxr-xr-x 2 oracle dba 3536 2012-08-19 05:20 template
drwxr-xr-x 5 oracle dba 144 2012-09-25 13:35 out
drwxr-xr-x 5 oracle dba 304 2012-09-25 13:35 log
drwxr-xr-x 5 oracle dba 144 2012-09-25 13:35 scripts
drwxr-xr-x 5 oracle dba 144 2012-09-25 13:35 outbound
drwxr-xr-x 5 oracle dba 176 2012-09-25 13:35 install
drwxr-xr-x 5 oracle dba 1080 2012-09-25 13:35 bin
I know I have to run the perl <AD_TOP>/bin/admkappsutil.pl (829343.1) again - but my apps tier is not yet configured for use. So I don't have an '.env' or 'environment' to source.
Can I cd to the AD_TOP on the APPS tier and run the above command or is there any other way to create (rather re-create) the appsutil/clone folder?
Thanks864641 wrote:
Env - APPS Tier - SLES 10 - SP3 - 12.1.2
DB Tier - zO/S - s390 - SLES 11-SP1
I'm missing my $ORACLE_HOME/appsutil/clone folder on the DB tier
Here's the catch - this instance was upgraded to 11gR2 in Sept - and I followed the steps to "Implement Autoconfig on a Recently Upgraded ORACLE_HOME".
Today is the first time we're re-cloning from PROD - so I've laid down a new APPS tier filesystem (copied from PROD) and the Senior Oracle DBA is in the process of bring up the DB after a flash copy.
When I log into my DB server, I cannot find the above folder - but find the following folders under appsutil
drwxr-xr-x 2 oracle dba 80 2012-08-19 05:10 sql
drwxr-xr-x 3 oracle dba 104 2012-08-19 05:10 java
drwxr-xr-x 2 oracle dba 176 2012-08-19 05:10 media
drwxr-xr-x 4 oracle dba 96 2012-08-19 05:10 perl
drwxr-xr-x 3 oracle dba 440 2012-08-19 05:10 html
drwxr-xr-x 2 oracle dba 48 2012-08-19 05:20 temp
drwxr-xr-x 2 oracle dba 3536 2012-08-19 05:20 template
drwxr-xr-x 5 oracle dba 144 2012-09-25 13:35 out
drwxr-xr-x 5 oracle dba 304 2012-09-25 13:35 log
drwxr-xr-x 5 oracle dba 144 2012-09-25 13:35 scripts
drwxr-xr-x 5 oracle dba 144 2012-09-25 13:35 outbound
drwxr-xr-x 5 oracle dba 176 2012-09-25 13:35 install
drwxr-xr-x 5 oracle dba 1080 2012-09-25 13:35 bin
I know I have to run the perl <AD_TOP>/bin/admkappsutil.pl (829343.1) again - but my apps tier is not yet configured for use. So I don't have an '.env' or 'environment' to source.
Can I cd to the AD_TOP on the APPS tier and run the above command or is there any other way to create (rather re-create) the appsutil/clone folder?Does the directory exists on the source database node? If yes, copy it from the source server to the target one.
If the directory is missing on the source database node, then it has to be created there then it can be copied to the target server.
Thanks,
Hussein -
Cloning ebs r12 on 11gR2 database
Hi all,
our ebs r12 12.1.3 and db 11..2.0.2 OS:oul5x64
from ebs r12 12.1.3 and db 11.1.0.7 i do not have any problems with cloning, but when upgrade database to 11.2.0.2 . the template file was different and the clone failed because it could not fine the controlfile.
in this note:Troubleshooting RAC RapidClone issues with Oracle Applications R12 [ID 1303962.1]
UNDER
Create Database Image
+-- Moderator edit - deleted MOS Doc content - pl do NOT post contents of MOS Docs +*
BUT IN 11gR2 11.2.0.2 database this template like this
adcldbstage.rman
run {
sql "alter system switch logfile";
backup as copy datafile 1 format '/u05/DB/data/stage/%U_system.328.769213623';
backup as copy datafile 2 format '/u05/DB/data/stage/system.353.769211817';
backup as copy datafile 3 format '/u05/DB/data/stage/system.324.769214385';
backup as copy datafile 407 format '/u05/DB/data/stage/apps_ts_seed.295.769216925';
sql "alter system switch logfile";
so when doing the clone, it always thrown an error could not fine the controlfile...and it did not backup archive log files so even rename the controlfile to "backup_controlfile.ctl" it could not open because missing archive files.
Please help.
Thanks in advance.
Regards,Thanks Hussein,
it failed at stage # 3
because the template on image copy did not have any of archive backup. so the copy only contains the database files that was why it always failed at this stage.
Thanks very much for your help.
Regards,
restore-rac3.log
Recovery Manager: Release 11.2.0.2.0 - Production on Wed Dec 21 14:48:11 2011
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
connected to target database: ASO (DBID=3710756178, not open)
using target database control file instead of recovery catalog
RMAN> host 'echo "In the above output, if RMAN-03002 and RMAN-06054 errors are present, they can be safely ignored." >> /u01/app/oracle/product/11.2.0/dbhome_1/appsutil/out/ENC1_xdba01-db1/restore-rac2.log';
2> alter database open resetlogs;
3> shutdown normal
4> startup mount pfile=/u01/app/oracle/product/11.2.0/dbhome_1/dbs/initENC1.ora.tmp
5> host 'sed "s:db_name=.*:db_name=ENC:g" /u01/app/oracle/product/11.2.0/dbhome_1/dbs/initENC1.ora.tmp > /u01/app/oracle/product/11.2.0/dbhome_1/dbs/initENC1.ora.tmp.delete';
6> host 'cp /u01/app/oracle/product/11.2.0/dbhome_1/dbs/initENC1.ora.tmp.delete /u01/app/oracle/product/11.2.0/dbhome_1/dbs/initENC1.ora.tmp';
7> exit
host command complete
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of alter db command at 12/21/2011 14:48:13
ORA-01152: file 2 was not restored from a sufficiently old backup
ORA-01110: data file 2: '+EBSDISK/enc/datafile/system.367.770472175'
Recovery Manager complete. -
Hi,
we have Oracle EBS 12.1.3 with 11gR2 in IBM AIX7.1. We are now cloning it from a non-shared appl tier to a shared appl tier. Shared appl tier is located in the network drive which uses NetApp.
I've been following these documents:
- Cloning Oracle Applications Release 12 with Rapid Clone (Doc ID 406982.1)
- Sharing The Application Tier File System in Oracle E-Business Suite Release 12 [ID 384248.1]
- Using Load-Balancers with Oracle E-Business Suite Release 12 (Doc ID 380489.1)
DB clone went without problems, but now I'm getting strange problems when trying to run adcfgclone.pl for apps tier:
"applmgr@myhost:/d01/shared_mount/apps/apps_st/viscomn/clone/bin # perl adcfgclone.pl appsTier
pwd: No such file or directory
Copyright (c) 2002 Oracle Corporation
Redwood Shores, California, USA
Oracle Applications Rapid Clone
Version 12.0.0
adcfgclone Version 120.31.12010000.8
ERROR: could not find source system context in /../context/db/CTXORIG.xml
Can't open /../context/db/CTXORIG.xml:
No such file or directory
This file exists:
/d01/shared_mount/apps/apps_st/viscomn/clone/context/apps/CTXORIG.xml
I've tried to re-execute the cloning steps for app tier, but the problem persists.
I've cloned from non-shared to non-shared app tier without problems, so I have a feeling that this might be related to the shared network drive.
Any ideas how to solve this problem?
BR,
THHi Hussein,
thanks for the reply.
+The path is different (first path is db while the second one is apps), so copy the file from the source instance to $COMMON_TOP/clone/context/apps directory on the target instance and try then -- Troubleshooting RapidClone issues with Oracle Applications R12 [ID 603104.1]+
What I meant to say that CTXORIG.xml already exists in the correct directory in the target system:
$COMMON_TOP/clone/context/apps
Anyways, I recopied the file from source to the target system $COMMON_TOP/clone/context/apps, but still the same problem. I'll continue reading "Troubleshooting RapidClone issues with Oracle Applications R12 [ID 603104.1]".
I noticed below when running "perl adcfgclone.pl appsTier" with perl debug mode:
Cwd::_backtick_pwd(<10.1.3 ORACLE_HOME>/perl/lib/5.8.3/aix-thread-multi/Cwd.pm:204):
204: local @ENV{qw(PATH IFS CDPATH ENV BASH_ENV)};
DB<1> s
Cwd::_backtick_pwd(<10.1.3 ORACLE_HOME>/perl/lib/5.8.3/aix-thread-multi/Cwd.pm:205):
205: my $cwd = `$pwd_cmd`;
DB<1> s
pwd: No such file or directory
Cwd::_backtick_pwd(<10.1.3 ORACLE_HOME>/perl/lib/5.8.3/aix-thread-multi/Cwd.pm:207):
207: local $/ = "\n";
DB<1> s
BR,
TH -
CM not starting up after clone.
Our Production Environment:
Node 1: AppsTier Node 2: DBTier
Version: 11.5.10.2
DB Viersion: 11gR2
This is an upgraded instance from 11.5.10 and DB from 9.2.0.5 to 11.5.10.2 with DB 11gR2.
While doing the clone from Mulitnode to Single node the CM is not starting up.
1: When trying to start the CM Service from Windows it shows below error.
Could not start the OracleConcMgrPROD-ebizstby service on Local Computer.
Error 1053: The service did not respond to the start or control request in a timely fastion
2: When trying to start the CM using adcmctl.cmd , it gives below error:
D:\prod\prodcomn\admin\scripts\PROD_ebizstby>adcmctl.cmd start apps/apps
ECHO is off.
ECHO is off.
Wed 11/09/2011 05:00 PM
ECHO is off.
ECHO is off.
Wed 11/09/2011 05:00 PM
ECHO is off.
ECHO is off.
Setting environment for using Microsoft Visual C++ tools.
APPSORA.cmd exiting with status 0
Starting concurrent manager for PROD ...
The service is not responding to the control function.
More help is available by typing NET HELPMSG 2186.
adcmctl.cmd exiting with status 2
D:\prod\prodcomn\admin\scripts\PROD_ebizstby>
Regards,
MaheshHi,
The Autoconfig completed successfully on both DB and AppsTier.
If I am trying to start the CM through the windows services then it suddenly gives the below error.
Could not start the OracleConcMgrPROD-ebizstby service on Local Computer.
Error 1053: The service did not respond to the start or control request in a timely fastion
The event viewer didnt give any useful hint.
Also the CM log files didnt even generate
Regards,
Mahesh -
Hi,
We have done an upgrade of our instance from 11.5.10 to 11.5.10.2 and database version from 9.2.0.5 to 11gR2.
The server is in multinode windows 2003 servers.
Now I am preparing a clone instance for the same and getting the following error while running the adcfgclone.pl on dbTier.
Backing up E:\imtest\imtestdb\11.2.0\appsutil\IMTEST_dvlp003.xml to E:\imtest\im
testdb\11.2.0\appsutil\IMTEST_dvlp003.xml4.bak
Creating the new Database Context file from :
E:\imtest\imtestdb\11.2.0\appsutil\template\adxdbctx.tmp
The new database context file has been created :
E:\imtest\imtestdb\11.2.0\appsutil\IMTEST_dvlp003.xml
Log file located at C:\DOCUME~1\ORACLE~1.DVL\LOCALS~1\Temp\CloneContext_08220512
*45.log*
Incorrect JAVA path:
No java executable at E:\imtest\imtestdb\11.2.0\jdk/bin/java.exe or E:\imtest\im
testdb\11.2.0\jdk/bin/jre.exe
Running Rapid Clone with command:
perl adclone.pl java=..\jre\jre mode=apply stage=E:\imtest\imtestdb\11.2
*.0\appsutil\clone\bin\.. component=dbTier method=CUSTOM dbctxtg=E:\imtest\imtest*
db\11.2.0\appsutil\IMTEST_dvlp003.xml showProgress contextValidated=true
Beginning database tier Apply - Mon Aug 22 17:13:42 2011
-e
E:\imtest\imtestdb\11.2.0\appsutil\IMTEST_dvlp003.xml
-stage
E:\imtest\imtestdb\11.2.0\appsutil\clone\bin\..
-pwd
apps
-showProgress
Log file located at E:\imtest\imtestdb\11.2.0\appsutil\log\IMTEST_dvlp003\ApplyD
BTier_08221713.log
RC-00110: Fatal: Error occurred while relinking of ApplyDBTechStack
ERROR while running Apply...
ERROR: Failed to execute adclone.pl
And below is the error in the log file:
*[AutoConfig Error Report]*
The following report lists errors AutoConfig encountered during each
phase of its execution. Errors are grouped by directory and phase.
The report format is:
*<filename> <phase> <return code where appropriate>*
*[INSTANTIATE PHASE]*
AutoConfig could not successfully instantiate the following files:
Directory: E:\imtest\imtestdb\11.2.0\appsutil\install\IMTEST_dvlp003
adcrdb.cmd INSTE8
AutoConfig is exiting with status 1
RC-50014: Fatal: Execution of AutoConfig was failed
Raised by oracle.apps.ad.clone.ApplyDBTechStack
StackTrace:
java.lang.Exception: RC-50014: Fatal: Execution of AutoConfig was failed
* at oracle.apps.ad.clone.ApplyDBTechStack.checkAutoConfigErr(ApplyDBTechStack.java:804)*
* at oracle.apps.ad.clone.ApplyDBTechStack.runAutoConfig(ApplyDBTechStack.java:731)*
* at oracle.apps.ad.clone.ApplyDBTechStack.<init>(ApplyDBTechStack.java:431)*
* at oracle.apps.ad.clone.ApplyDBTier.<init>(ApplyDBTier.java:156)*
* at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)*
* at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)*
* at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)*
* at java.lang.reflect.Constructor.newInstance(Constructor.java:501)*
* at oracle.apps.ad.clone.util.CloneProcessor.run(CloneProcessor.java:68)*
* at java.lang.Thread.run(Thread.java:595)*
Can anyone help me out with the clone issue.
Regards,
Mahesh
Edited by: mahesh on Aug 22, 2011 7:01 AMadcrdb.cmd INSTE8 Search the log file for this script, you should find more details about the error around the file name.
Also, please check the database log file as this script is used to create the database.
Thanks,
Hussein -
Best Practice E-Business 12.1.3/11gR2 Hardware Configuration
Hi
We are in the design phase for a new install of E-Business 12.1.3 / 11gR2
From a hardware services point, what is deemed to be the "best practice"?
Option 1
1 x Web/Forms Node
1 x Concurrent Manager Node
1 x Database ode
Option 2
1 x web/forms/concurrent manager node
1 x database node
Option 3
1 x web/forms/concurrent manager/database node
In the past I have always gone with Option 2 so that the database traffic is minimised between conc managers / database. That to me seemed most logical. But wanted to ask the oracle community about their thoughts
We are using redhat linux / Cisco Blades (USC/VMWARE) and all connecting to a NetApp FAS3270.
PLease advise if you pick this up.
ThanksExactly what I was thinking but its nice to get someone elses clarity too.
The PCP option is certainly something I need to take into consideration - but with the new abilities of 12.1.3 cloning processes - it would be easy enough to split the admin Conc Nodes away at a later date should the requirement exist.
i.e.
Initially have 1 x forms/web server plus 1 x database / concurrent manager node
If we need to go to PCP and / or forms load balancing
we could easily go to 2 x forms / web server and add the Conc Node into it brining in PCP too.
I have to admist, the way Oracle have sorted the cloning process is 12 is very good indeed.
Do you agree?I totally agree :)
You just need to run preclone on the source apps tier node, then copy the files to the second node (add new node), and run adcfgclone.pl/adaddnode.pl scripts.
Cloning Oracle Applications Release 12 with Rapid Clone [ID 406982.1] -- Option 3: Adding a New Node to an Existing System
You seem to be pretty active on this forum - I am new to thisWelcome to the forums.
Thanks,
Hussein -
How do we clone a database from RAC/ASM to RAC/ASM?
Is there a best practice or recommended recipe for cloning from a RAC/ASM instance to another RAC/ASM instance? We've done single instance cloning in the past with RMAN and it looks like grid control does something similar -- until we try to clone from one Exadata cluster to another. Surely this is now a common procedure...?
much thanks,
GaryHi,
I would not use cloning with 11.2. anymore.
Though this will work (you have to take care of copying some more stuff though, like the gpnp profile), simply using the "addnode.sh" which works in silent mode in 11.2. is a lot easier.
Re: Any issues to add 3rd node to 11gr2 grid with 11.2.0.2 and 10.2.0.4 homes?
Regards
Sebastian -
Create database on RAC environment - DBCA hangs on clone database creation
Hi, friends!
I have two vm´s (vmware 2) with OEL 5 installed.
I´ve installed OGI and database software sucessfully. So, my crs stack is working fine in both two nodes.
However, when i use DBCA to create a database in this RAC environment, it hangs when it gets on "clone database creation", about 52% of the progress bar.
My DBCA logs don´t point any error out. It just hangs on..
I wait about 4 hours and it doesn´t move on.
I searched and found many cases like that, including here in OTN. But it seems nobody could find a resolution to this issue.
Is there any bug about OEL 5 and database 11gR2??
More details:
I apllied the patch "p8670579_112010_LINUX" on both OGI installation (before root.sh) and databae software install (also before root.sh).
Everything worked fine.
Sorry for the grammar errors.you can trace dbca, and you can found witch step is occurs problem.
can you paste here last 15-20 sentence of dbca trace file?
Mahir
Maybe you are looking for
-
Unable to authenticate ssh via krb5 / PAM
Anyone able to help with a PAM / krb5 issue? I've got it to the point where it will generate a ticket with kinit and my principal and password, (shown with klist) when I try to ssh to my test box though, ssh authentication fails. looking through the
-
Can only connect one laptop via AEBS wifi
i was able to use my internet service with my Apple Airport Express Base Station (AEBS) for months without any problem and it was capable of simultaneous internet sharing (via wifi) among 3 laptops without the need to enter / directed to the internet
-
Apple Hardware Test DISABLED by update?
Maybe I'm jumping to conclusions. Is there a way to get this feature working again? MacBook (Late 2007) has a cool undocumented feature... hold the D key at startup, and Apple Hardware Test (AHT) launches--WITHOUT THE DVD. Yes, it's built-in. Sadly,
-
Now the application is blurry
-
Converting to a .sh for DeployStudio
Hi Guys, I wrote something simple with applescript but it doesn't seem to work at all with the application DeployStudio. Is there anyway to convert this to a .sh? I was trying to see if diskutil would be able to detect volume identifiers but with no