24 September 2015

step by step Deploying JRE (Native Plug-in) for Windows Clients in Oracle E-Business Suite Release 12.2

Deploying JRE (Native Plug-in) for Windows Clients in Oracle E-Business Suite Release 12 (Doc ID 393931.1)

Step 1. Source the Environment

Source your environment as appropriate to your Oracle E-Business Suite release.
Oracle E-Business Suite 12.2.x Users

Upgrading the JRE Plugin can be done outside of a patch cycle against the RUN file system.

On the Application tier as the file system owner source your RUN file system.


[applmgr@arjun ~]$ . $RUN_BASE/EBSapps/appl/APPSR122_arjun.env


Step 2. Download the Interoperability Patch and the JRE Plugin
Oracle E-Business Suite 12.2.x Users

There are currently no interoperability patch requirements for Oracle E-Business Suite 12.2 Users. Proceed to Step 1.2. Download the JRE Plugin.


Step 1.2. Download the JRE Plugin


Download the latest JRE 7 update from  http://www.oracle.com/technetwork/java/javase/downloads/index.html

The latest JRE 6 versions are only available through a patch, see Document 1439822.1, titled 'All Java SE Downloads on MOS' for a list of patch numbers.


Step 1.3. Rename the JRE Plugin File

Rename the downloaded JRE Native Plugin file to j2se<version>.exe

For example:

jre-7u21-windows-i586.exe or jre-7u21-windows-x64.exe would be renamed j2se17021.exe
jre-6u45-windows-i586.exe or jre-6u45-windows-x64.exe would be renamed j2se16045.exe
jre-6u7-windows-i586.exe would be renamed j2se16007.exe

Step 1.4. Place the Renamed JRE Plugin on the Web Application Tier

Place the renamed JRE Plugin file onto the web application tier in the directory as appropriate to your Oracle E-Business Suite release.
Oracle E-Business Suite 12.2.x Users

Move the j2se1700X.exe file to the web application tier and place it in the following directory in the RUN File System:
$[COMMON_TOP]/webapps/oacore/util/javaplugin

[COMMON_TOP] refers to the top level directory where the common utilities are installed. By default, this is the parent directory of $JAVA_TOP.


[applmgr@arjun javaplugin]$ cd $COMMON_TOP/webapps/oacore/util/javaplugin/
[applmgr@arjun javaplugin]$ ls -lrt j2*
-rw-r--r--. 1 applmgr applmgr 16897824 Aug 17  2011 j2se16027.exe
[applmgr@arjun javaplugin]$ cp -r /usr/tmp/jre-7u45-windows-i586.exe j2se17045
[applmgr@arjun javaplugin]$ ls -lrt j2*
-rw-r--r--. 1 applmgr applmgr 16897824 Aug 17  2011 j2se16027.exe
-rw-r--r--. 1 applmgr applmgr 29040552 Dec 10 16:08 j2se17045
[applmgr@arjun javaplugin]$


Step 3. Apply Prerequisite Patches (If Required)
Oracle E-Business Suite 12.2.x Users

There are currently no prerequisite patch requirements for Oracle E-Business Suite 12.2 Users. Proceed to Section 3: Upgrade and Configuration.


Step 4. Apply the Interoperability Patch
Oracle E-Business Suite 12.2.x Users

There are currently no interoperability patch requirements for Oracle E-Business Suite 12.2 Users. Proceed to Section 3: Upgrade and Configuration.


Section 3: Upgrade and Configuration
Step 5. Run the JRE Upgrade Script

Run the txkSetPlugin upgrade script following the instructions as applicable to your operating system.


[applmgr@arjun ~]$ /u01/ORAR122/fs2/EBSapps/appl/fnd/12.0.0/bin/txkSetPlugin.sh 17045
/u01/ORAR122/fs2/EBSapps/appl/fnd/12.0.0/bin

  Starting interoperability upgrade script...

Sending logfile output to:
/u01/ORAR122/fs2/inst/apps/R122_arjun/logs/txkSetPlugin.log
Using the context file:
/u01/ORAR122/fs2/inst/apps/R122_arjun/appl/admin/R122_arjun.xml
Using APPLSYS file:
/u01/ORAR122/fs2/EBSapps/appl/APPSR122_arjun.env
Enter the password for the Oracle database APPS user [APPS] : apps

  Using /u01/ORAR122/fs2/FMW_Home/jrockit32/jre/bin/java to execute java programs

  Getting J2SE parameter values...

  Copy oaj2se.exe to html dir...

Copying /u01/ORAR122/fs2/EBSapps/comn/webapps/oacore/util/javaplugin/j2se17045.exe to /u01/ORAR122/fs2/FMW_Home/Oracle_EBS-app1/applications/oacore/html/oaj2se.exe ...

  Backing up the Application Context File...

/u01/ORAR122/fs2/inst/apps/R122_arjun/appl/admin/R122_arjun.xml to /u01/ORAR122/fs2/inst/apps/R122_arjun/appl/admin/R122_arjun.xml.prej2se17045
Using APPSWEB file /u01/ORAR122/fs2/inst/apps/R122_arjun/ora/10.1.2/forms/server/appsweb.cfg

  Backing up the appsweb file...

Backing up /u01/ORAR122/fs2/inst/apps/R122_arjun/ora/10.1.2/forms/server/appsweb.cfg to /u01/ORAR122/fs2/inst/apps/R122_arjun/ora/10.1.2/forms/server/appsweb.cfg.prej2se17045
  Updating XML context file with new J2SE parameters...
Updated J2SE plugin to jdk
Updated J2SE mimetype to 1.7.0_45
Updated J2SE Classid to CAFEEFAC-0017-0000-0045-ABCDEFFEDCBA

The log file for this session is located at: /u01/ORAR122/fs2/inst/apps/R122_arjun/admin/log/12102134/adconfig.log

AutoConfig is configuring the Applications environment...

AutoConfig will consider the custom templates if present.
Using CONFIG_HOME location     : /u01/ORAR122/fs2/inst/apps/R122_arjun
Classpath                   : /u01/ORAR122/fs2/FMW_Home/Oracle_EBS-app1/shared-libs/ebs-appsborg/WEB-INF/lib/ebsAppsborgManifest.jar:/u01/ORAR122/fs2/EBSapps/comn/java/classes

Using Context file          : /u01/ORAR122/fs2/inst/apps/R122_arjun/appl/admin/R122_arjun.xml

Context Value Management will now update the Context file

Updating Context file...COMPLETED

Attempting upload of Context file and templates to database...COMPLETED

Configuring templates from all of the product tops...
Configuring AD_TOP........COMPLETED
Configuring FND_TOP.......COMPLETED
Configuring ICX_TOP.......COMPLETED
Configuring MSC_TOP.......COMPLETED
Configuring IEO_TOP.......COMPLETED
Configuring BIS_TOP.......COMPLETED
Configuring CZ_TOP........COMPLETED
Configuring AMS_TOP.......COMPLETED
Configuring CCT_TOP.......COMPLETED
Configuring WSH_TOP.......COMPLETED
Configuring CLN_TOP.......COMPLETED
Configuring OKE_TOP.......COMPLETED
Configuring OKL_TOP.......COMPLETED
Configuring OKS_TOP.......COMPLETED
Configuring CSF_TOP.......COMPLETED
Configuring IBY_TOP.......COMPLETED
Configuring JTF_TOP.......COMPLETED
Configuring MWA_TOP.......COMPLETED
Configuring CN_TOP........COMPLETED
Configuring CSI_TOP.......COMPLETED
Configuring WIP_TOP.......COMPLETED
Configuring CSE_TOP.......COMPLETED
Configuring EAM_TOP.......COMPLETED
Configuring FTE_TOP.......COMPLETED
Configuring ONT_TOP.......COMPLETED
Configuring AR_TOP........COMPLETED
Configuring AHL_TOP.......COMPLETED
Configuring IES_TOP.......COMPLETED
Configuring OZF_TOP.......COMPLETED
Configuring CSD_TOP.......COMPLETED
Configuring IGC_TOP.......COMPLETED

AutoConfig completed with errors.

    Unable to successfully run AutoConfig...
    Please correct any errors in the adconfig.log file,
    then run AutoConfig manually.
    .
[applmgr@arjun ~]$ vi /u01/ORAR122/fs2/inst/apps/R122_arjun/admin/log/12102134/adconfig.log
[root@arjun Desktop]# su - applmgr
[applmgr@arjun ~]$ . /u01/ORAR122/fs1/EBSapps/appl/APPSR122_arjun.env
[applmgr@arjun javaplugin]$ /u01/ORAR122/fs2/EBSapps/appl/fnd/12.0.0/bin/txkSetPlugin.sh 17045
/u01/ORAR122/fs2/EBSapps/appl/fnd/12.0.0/bin

  Starting interoperability upgrade script...

Sending logfile output to:
/u01/ORAR122/fs1/inst/apps/R122_arjun/logs/txkSetPlugin.log
Using the context file:
/u01/ORAR122/fs1/inst/apps/R122_arjun/appl/admin/R122_arjun.xml
Using APPLSYS file:
/u01/ORAR122/fs1/EBSapps/appl/APPSR122_arjun.env
Enter the password for the Oracle database APPS user [APPS] : apps

  Using /u01/ORAR122/fs1/FMW_Home/jrockit32/jre/bin/java to execute java programs

  Getting J2SE parameter values...

  Copy oaj2se.exe to html dir...

Copying /u01/ORAR122/fs1/EBSapps/comn/webapps/oacore/util/javaplugin/j2se17045.exe to /u01/ORAR122/fs1/FMW_Home/Oracle_EBS-app1/applications/oacore/html/oaj2se.exe ...

  Backing up the Application Context File...

/u01/ORAR122/fs1/inst/apps/R122_arjun/appl/admin/R122_arjun.xml to /u01/ORAR122/fs1/inst/apps/R122_arjun/appl/admin/R122_arjun.xml.prej2se17045
Using APPSWEB file /u01/ORAR122/fs1/inst/apps/R122_arjun/ora/10.1.2/forms/server/appsweb.cfg

  Backing up the appsweb file...

Backing up /u01/ORAR122/fs1/inst/apps/R122_arjun/ora/10.1.2/forms/server/appsweb.cfg to /u01/ORAR122/fs1/inst/apps/R122_arjun/ora/10.1.2/forms/server/appsweb.cfg.prej2se17045
  Updating XML context file with new J2SE parameters...
Updated J2SE plugin to jdk
Updated J2SE mimetype to 1.7.0_45
Updated J2SE Classid to CAFEEFAC-0017-0000-0045-ABCDEFFEDCBA

The log file for this session is located at: /u01/ORAR122/fs1/inst/apps/R122_arjun/admin/log/12102144/adconfig.log

AutoConfig is configuring the Applications environment...

AutoConfig will consider the custom templates if present.
Using CONFIG_HOME location     : /u01/ORAR122/fs1/inst/apps/R122_arjun
Classpath                   : /u01/ORAR122/fs1/FMW_Home/Oracle_EBS-app1/shared-libs/ebs-appsborg/WEB-INF/lib/ebsAppsborgManifest.jar:/u01/ORAR122/fs1/EBSapps/comn/java/classes

Using Context file          : /u01/ORAR122/fs1/inst/apps/R122_arjun/appl/admin/R122_arjun.xml

Context Value Management will now update the Context file

Updating Context file...COMPLETED

Attempting upload of Context file and templates to database...COMPLETED

Configuring templates from all of the product tops...
Configuring AD_TOP........
COMPLETED
Configuring FND_TOP.......COMPLETED
Configuring ICX_TOP.......COMPLETED
Configuring MSC_TOP.......COMPLETED
Configuring IEO_TOP.......COMPLETED
Configuring BIS_TOP.......COMPLETED
Configuring CZ_TOP........COMPLETED
Configuring AMS_TOP.......COMPLETED
Configuring CCT_TOP.......COMPLETED
Configuring WSH_TOP.......COMPLETED
Configuring CLN_TOP.......COMPLETED
Configuring OKE_TOP.......COMPLETED
Configuring OKL_TOP.......COMPLETED
Configuring OKS_TOP.......COMPLETED
Configuring CSF_TOP.......COMPLETED
Configuring IBY_TOP.......COMPLETED
Configuring JTF_TOP.......COMPLETED
Configuring MWA_TOP.......COMPLETED
Configuring CN_TOP........COMPLETED
Configuring CSI_TOP.......COMPLETED
Configuring WIP_TOP.......COMPLETED
Configuring CSE_TOP.......COMPLETED
Configuring EAM_TOP.......COMPLETED
Configuring FTE_TOP.......COMPLETED
Configuring ONT_TOP.......COMPLETED
Configuring AR_TOP........COMPLETED
Configuring AHL_TOP.......COMPLETED
Configuring IES_TOP.......COMPLETED
Configuring OZF_TOP.......COMPLETED
Configuring CSD_TOP.......COMPLETED
Configuring IGC_TOP.......COMPLETED

AutoConfig completed with errors.

    Unable to successfully run AutoConfig...
    Please correct any errors in the adconfig.log file,
    then run AutoConfig manually.
    .
[applmgr@arjun javaplugin]$
[applmgr@arjun javaplugin]$ /u01/ORAR122/fs1/inst/apps/R122_arjun/admin/install/adgenjky.sh

adgenjky.sh started at Wed Dec 11 09:55:04 IST 2013


Enter the APPS username: apps

Enter the APPS password:

Successfully created the certificate

adgenjky.sh finished at Wed Dec 11 09:55:19 IST 2013
adgenjky.sh exiting with status 0
Log file is located at : /u01/ORAR122/fs1/inst/apps/R122_arjun/admin/log/R122_arjunjkey.log
ERRORCODE = 0 ERRORCODE_END
[applmgr@arjun javaplugin]$ cd $ADMIN_SCRIPTS_HOME
[applmgr@arjun scripts]$ ./adstpall.sh apps/apps

You are running adstpall.sh version 120.22.12020000.5


Enter the WebLogic Server password:
The logfile for this session is located at /u01/ORAR122/fs1/inst/apps/R122_arjun/logs/appl/admin/log/adstpall.log
Executing service control script:
/u01/ORAR122/fs1/inst/apps/R122_arjun/admin/scripts/adapcctl.sh stop
Timeout specified in context file: 100 second(s)

script returned:
****************************************************

You are running adapcctl.sh version 120.0.12020000.2

Stopping OPMN managed Oracle HTTP Server (OHS) instance ...
opmnctl stopproc: stopping opmn managed processes...

adapcctl.sh: exiting with status 0

adapcctl.sh: check the logfile /u01/ORAR122/fs1/inst/apps/R122_arjun/logs/appl/admin/log/adapcctl.txt for more information ...


.end std out.

.end err out.

****************************************************





Executing service control script:
/u01/ORAR122/fs1/inst/apps/R122_arjun/admin/scripts/jtffmctl.sh stop
Timeout specified in context file: 100 second(s)

script returned:
****************************************************

You are running jtffmctl.sh version 120.3.12020000.4

Shutting down Fulfillment Server for R122 on port 9305 ...

jtffmctl.sh: exiting with status 0


.end std out.

.end err out.

****************************************************



Executing service control script:
/u01/ORAR122/fs1/inst/apps/R122_arjun/admin/scripts/adcmctl.sh stop
Timeout specified in context file: 1000 second(s)

script returned:
****************************************************

You are running adcmctl.sh version 120.19.12020000.3

Shutting down concurrent managers for R122 ...
ORACLE Password:
Submitted request 7485419 for CONCURRENT FND SHUTDOWN


adcmctl.sh: exiting with status 0


adcmctl.sh: check the logfile /u01/ORAR122/fs1/inst/apps/R122_arjun/logs/appl/admin/log/adcmctl.txt for more information ...


.end std out.

.end err out.

****************************************************



Executing service control script:
/u01/ORAR122/fs1/inst/apps/R122_arjun/admin/scripts/adopmnctl.sh stop
Timeout specified in context file: 100 second(s)

script returned:
****************************************************

You are running adopmnctl.sh version 120.0.12020000.2

Stopping Oracle Process Manager (OPMN)  and the managed processes ...
opmnctl stopall: stopping opmn and all managed processes...

adopmnctl.sh: exiting with status 0

adopmnctl.sh: check the logfile /u01/ORAR122/fs1/inst/apps/R122_arjun/logs/appl/admin/log/adopmnctl.txt for more information ...


.end std out.

.end err out.

****************************************************



Executing service control script:
/u01/ORAR122/fs1/inst/apps/R122_arjun/admin/scripts/admanagedsrvctl.sh abort forms_server1 -nopromptmsg
Timeout specified in context file: -1 second(s)

script returned:
****************************************************

You are running admanagedsrvctl.sh version 120.14.12020000.6

Stopping forms_server1...
...................Refer /u01/ORAR122/fs1/inst/apps/R122_arjun/logs/appl/admin/log/adformsctl.txt for details

admanagedsrvctl.sh: exiting with status 0

admanagedsrvctl.sh: check the logfile /u01/ORAR122/fs1/inst/apps/R122_arjun/logs/appl/admin/log/adformsctl.txt for more information ...


.end std out.

.end err out.

****************************************************



Executing service control script:
/u01/ORAR122/fs1/inst/apps/R122_arjun/admin/scripts/admanagedsrvctl.sh abort forms-c4ws_server1 -nopromptmsg
Timeout specified in context file: -1 second(s)

script returned:
****************************************************

You are running admanagedsrvctl.sh version 120.14.12020000.6

Stopping forms-c4ws_server1...
............................Refer /u01/ORAR122/fs1/inst/apps/R122_arjun/logs/appl/admin/log/adforms-c4wsctl.txt for details

admanagedsrvctl.sh: exiting with status 0

admanagedsrvctl.sh: check the logfile /u01/ORAR122/fs1/inst/apps/R122_arjun/logs/appl/admin/log/adforms-c4wsctl.txt for more information ...


.end std out.

.end err out.

****************************************************



Executing service control script:
/u01/ORAR122/fs1/inst/apps/R122_arjun/admin/scripts/admanagedsrvctl.sh abort oacore_server1 -nopromptmsg
Timeout specified in context file: -1 second(s)

script returned:
****************************************************

You are running admanagedsrvctl.sh version 120.14.12020000.6

Stopping oacore_server1...
...................................Refer /u01/ORAR122/fs1/inst/apps/R122_arjun/logs/appl/admin/log/adoacorectl.txt for details

admanagedsrvctl.sh: exiting with status 0

admanagedsrvctl.sh: check the logfile /u01/ORAR122/fs1/inst/apps/R122_arjun/logs/appl/admin/log/adoacorectl.txt for more information ...


.end std out.
WARNING - Unable to create log file </u01/ORAR122/fs1/FMW_Home/modules/../logs/wlst_20131211095628.log>.

.end err out.

****************************************************



Executing service control script:
/u01/ORAR122/fs1/inst/apps/R122_arjun/admin/scripts/admanagedsrvctl.sh abort oafm_server1 -nopromptmsg
Timeout specified in context file: -1 second(s)

script returned:
****************************************************

You are running admanagedsrvctl.sh version 120.14.12020000.6

Stopping oafm_server1...
..................................Refer /u01/ORAR122/fs1/inst/apps/R122_arjun/logs/appl/admin/log/adoafmctl.txt for details

admanagedsrvctl.sh: exiting with status 0

admanagedsrvctl.sh: check the logfile /u01/ORAR122/fs1/inst/apps/R122_arjun/logs/appl/admin/log/adoafmctl.txt for more information ...


.end std out.

.end err out.

****************************************************



Executing service control script:
/u01/ORAR122/fs1/inst/apps/R122_arjun/admin/scripts/adalnctl.sh stop
Timeout specified in context file: 100 second(s)

script returned:
****************************************************

adalnctl.sh version 120.3.12020000.2

Shutting down listener process APPS_R122.

adalnctl.sh: exiting with status 0


adalnctl.sh: check the logfile /u01/ORAR122/fs1/inst/apps/R122_arjun/logs/appl/admin/log/adalnctl.txt for more information ...


.end std out.

.end err out.

****************************************************



Executing service control script:
/u01/ORAR122/fs1/inst/apps/R122_arjun/admin/scripts/adadminsrvctl.sh stop -nopromptmsg
Timeout specified in context file: 1000 second(s)

script returned:
****************************************************

You are running adadminsrvctl.sh version 120.10.12020000.4

Stopping WLS Admin Server...
..Refer /u01/ORAR122/fs1/inst/apps/R122_arjun/logs/appl/admin/log/adadminsrvctl.txt for details

adadminsrvctl.sh: exiting with status 0

adadminsrvctl.sh: check the logfile /u01/ORAR122/fs1/inst/apps/R122_arjun/logs/appl/admin/log/adadminsrvctl.txt for more information ...


.end std out.

.end err out.

****************************************************



Executing service control script:
/u01/ORAR122/fs1/inst/apps/R122_arjun/admin/scripts/adnodemgrctl.sh stop -nopromptmsg
Timeout specified in context file: 100 second(s)

script returned:
****************************************************

You are running adnodemgrctl.sh version 120.11.12020000.4


adnodemgrctl.sh: exiting with status 0

adnodemgrctl.sh: check the logfile /u01/ORAR122/fs1/inst/apps/R122_arjun/logs/appl/admin/log/adnodemgrctl.txt for more information ...


.end std out.

.end err out.

****************************************************



All enabled services on this node are stopped.

adstpall.sh:Exiting with status 0

adstpall.sh: check the logfile /u01/ORAR122/fs1/inst/apps/R122_arjun/logs/appl/admin/log/adstpall.log for more information ...

[applmgr@arjun scripts]$ ./adautocfg.sh
Enter the APPS user password:

The log file for this session is located at: /u01/ORAR122/fs1/inst/apps/R122_arjun/admin/log/12110958/adconfig.log

AutoConfig is configuring the Applications environment...

AutoConfig will consider the custom templates if present.
Using CONFIG_HOME location     : /u01/ORAR122/fs1/inst/apps/R122_arjun
Classpath                   : /u01/ORAR122/fs1/FMW_Home/Oracle_EBS-app1/shared-libs/ebs-appsborg/WEB-INF/lib/ebsAppsborgManifest.jar:/u01/ORAR122/fs1/EBSapps/comn/java/classes

Using Context file          : /u01/ORAR122/fs1/inst/apps/R122_arjun/appl/admin/R122_arjun.xml

Context Value Management will now update the Context file

Updating Context file...COMPLETED

Attempting upload of Context file and templates to database...COMPLETED

Configuring templates from all of the product tops...
Configuring AD_TOP........COMPLETED
Configuring FND_TOP.......COMPLETED
Configuring ICX_TOP.......COMPLETED
Configuring MSC_TOP.......COMPLETED
Configuring IEO_TOP.......COMPLETED
Configuring BIS_TOP.......COMPLETED
Configuring CZ_TOP........COMPLETED
Configuring AMS_TOP.......COMPLETED
Configuring CCT_TOP.......COMPLETED
Configuring WSH_TOP.......COMPLETED
Configuring CLN_TOP.......COMPLETED
Configuring OKE_TOP.......COMPLETED
Configuring OKL_TOP.......COMPLETED
Configuring OKS_TOP.......COMPLETED
Configuring CSF_TOP.......COMPLETED
Configuring IBY_TOP.......COMPLETED
Configuring JTF_TOP.......COMPLETED
Configuring MWA_TOP.......COMPLETED
Configuring CN_TOP........COMPLETED
Configuring CSI_TOP.......COMPLETED
Configuring WIP_TOP.......COMPLETED
Configuring CSE_TOP.......COMPLETED
Configuring EAM_TOP.......COMPLETED
Configuring FTE_TOP.......COMPLETED
Configuring ONT_TOP.......COMPLETED
Configuring AR_TOP........COMPLETED
Configuring AHL_TOP.......COMPLETED
Configuring IES_TOP.......COMPLETED
Configuring OZF_TOP.......COMPLETED
Configuring CSD_TOP.......COMPLETED
Configuring IGC_TOP.......COMPLETED

AutoConfig completed successfully.
You have new mail in /var/spool/mail/applmgr
[applmgr@arjun scripts]$ ./adstrtal.sh apps/apps

You are running adstrtal.sh version 120.24.12020000.7


Enter the WebLogic Server password:
The logfile for this session is located at /u01/ORAR122/fs1/inst/apps/R122_arjun/logs/appl/admin/log/adstrtal.log

Executing service control script:
/u01/ORAR122/fs1/inst/apps/R122_arjun/admin/scripts/jtffmctl.sh start
Timeout specified in context file: 100 second(s)

script returned:
****************************************************

You are running jtffmctl.sh version 120.3.12020000.4

Validating Fulfillment patch level via /u01/ORAR122/fs1/EBSapps/comn/java/classes
Fulfillment patch level validated.
Starting Fulfillment Server for R122 on port 9305 ...

jtffmctl.sh: exiting with status 0


.end std out.

.end err out.

****************************************************



Executing service control script:
/u01/ORAR122/fs1/inst/apps/R122_arjun/admin/scripts/adopmnctl.sh start
Timeout specified in context file: 100 second(s)

script returned:
****************************************************

You are running adopmnctl.sh version 120.0.12020000.2

Starting Oracle Process Manager (OPMN) ...

adopmnctl.sh: exiting with status 0

adopmnctl.sh: check the logfile /u01/ORAR122/fs1/inst/apps/R122_arjun/logs/appl/admin/log/adopmnctl.txt for more information ...


.end std out.

.end err out.

****************************************************



Executing service control script:
/u01/ORAR122/fs1/inst/apps/R122_arjun/admin/scripts/adapcctl.sh start
Timeout specified in context file: 100 second(s)

script returned:
****************************************************

You are running adapcctl.sh version 120.0.12020000.2

Starting OPMN managed Oracle HTTP Server (OHS) instance ...
opmnctl start: opmn is already running.
opmnctl startproc: starting opmn managed processes...

adapcctl.sh: exiting with status 0

adapcctl.sh: check the logfile /u01/ORAR122/fs1/inst/apps/R122_arjun/logs/appl/admin/log/adapcctl.txt for more information ...


.end std out.

.end err out.

****************************************************



Executing service control script:
/u01/ORAR122/fs1/inst/apps/R122_arjun/admin/scripts/adnodemgrctl.sh start -nopromptmsg
Timeout specified in context file: 100 second(s)

script returned:
****************************************************

You are running adnodemgrctl.sh version 120.11.12020000.4


Calling txkChkEBSDependecies.pl to perform dependency checks for oacore
Perl script txkChkEBSDependecies.pl got executed successfully


Starting the Node Manager...
NMProcess: <Dec 11, 2013 10:01:15 AM> <INFO> <Loading domains file: /u01/ORAR122/fs1/FMW_Home/wlserver_10.3/common/nodemanager/nmHome1/nodemanager.domains>
NMProcess: Dec 11, 2013 10:01:15 AM weblogic.nodemanager.server.NMServerConfig initDomainsMap
NMProcess: INFO: Loading domains file: /u01/ORAR122/fs1/FMW_Home/wlserver_10.3/common/nodemanager/nmHome1/nodemanager.domains
NMProcess: <Dec 11, 2013 10:01:15 AM> <INFO> <Loaded node manager configuration properties from '/u01/ORAR122/fs1/FMW_Home/wlserver_10.3/common/nodemanager/nmHome1/nodemanager.properties'>
NMProcess: Dec 11, 2013 10:01:15 AM weblogic.nodemanager.server.NMServer <init>
NMProcess: INFO: Loaded node manager configuration properties from '/u01/ORAR122/fs1/FMW_Home/wlserver_10.3/common/nodemanager/nmHome1/nodemanager.properties'
NMProcess: Node manager v10.3
NMProcess:
NMProcess: Configuration settings:
NMProcess:
NMProcess: NodeManagerHome=/u01/ORAR122/fs1/FMW_Home/wlserver_10.3/common/nodemanager/nmHome1
NMProcess: ListenAddress=arjun.bangalore.bedford.local
NMProcess: ListenPort=5561
NMProcess: ListenBacklog=50
NMProcess: SecureListener=false
NMProcess: AuthenticationEnabled=true
NMProcess: NativeVersionEnabled=true
NMProcess: CrashRecoveryEnabled=false
NMProcess: JavaHome=/u01/ORAR122/fs1/FMW_Home/jrockit64
NMProcess: StartScriptEnabled=false
NMProcess: StopScriptEnabled=false
NMProcess: StartScriptName=startWebLogic.sh
NMProcess: StopScriptName=
NMProcess: LogFile=/u01/ORAR122/fs1/FMW_Home/wlserver_10.3/common/nodemanager/nmHome1/nodemanager.log
NMProcess: LogLevel=INFO
NMProcess: LogLimit=0
NMProcess: LogCount=1
NMProcess: LogAppend=true
NMProcess: LogToStderr=true
NMProcess: LogFormatter=weblogic.nodemanager.server.LogFormatter
NMProcess: DomainsFile=/u01/ORAR122/fs1/FMW_Home/wlserver_10.3/common/nodemanager/nmHome1/nodemanager.domains
NMProcess: DomainsFileEnabled=true
NMProcess: StateCheckInterval=500
NMProcess: QuitEnabled=true
NMProcess: UseMACBroadcast=false
NMProcess: DomainRegistrationEnabled=true
NMProcess: DomainsDirRemoteSharingEnabled=false
NMProcess:
NMProcess: Domain name mappings:
NMProcess:
NMProcess: EBS_domain_R122 -> /u01/ORAR122/fs1/FMW_Home/user_projects/domains/EBS_domain_R122
NMProcess:
NMProcess: <Dec 11, 2013 10:01:16 AM> <INFO> <EBS_domain_R122> <oacore_server1> <Startup configuration properties loaded from "/u01/ORAR122/fs1/FMW_Home/user_projects/domains/EBS_domain_R122/servers/oacore_server1/data/nodemanager/startup.properties">
NMProcess: Dec 11, 2013 10:01:16 AM weblogic.nodemanager.server.AbstractServerManager log
NMProcess: INFO: Startup configuration properties loaded from "/u01/ORAR122/fs1/FMW_Home/user_projects/domains/EBS_domain_R122/servers/oacore_server1/data/nodemanager/startup.properties"
NMProcess: <Dec 11, 2013 10:01:16 AM> <INFO> <EBS_domain_R122> <forms_server1> <Startup configuration properties loaded from "/u01/ORAR122/fs1/FMW_Home/user_projects/domains/EBS_domain_R122/servers/forms_server1/data/nodemanager/startup.properties">
NMProcess: Dec 11, 2013 10:01:16 AM weblogic.nodemanager.server.AbstractServerManager log
NMProcess: INFO: Startup configuration properties loaded from "/u01/ORAR122/fs1/FMW_Home/user_projects/domains/EBS_domain_R122/servers/forms_server1/data/nodemanager/startup.properties"
NMProcess: <Dec 11, 2013 10:01:16 AM> <INFO> <EBS_domain_R122> <AdminServer> <Startup configuration properties loaded from "/u01/ORAR122/fs1/FMW_Home/user_projects/domains/EBS_domain_R122/servers/AdminServer/data/nodemanager/startup.properties">
NMProcess: Dec 11, 2013 10:01:16 AM weblogic.nodemanager.server.AbstractServerManager log
NMProcess: INFO: Startup configuration properties loaded from "/u01/ORAR122/fs1/FMW_Home/user_projects/domains/EBS_domain_R122/servers/AdminServer/data/nodemanager/startup.properties"
NMProcess: <Dec 11, 2013 10:01:17 AM> <INFO> <EBS_domain_R122> <oafm_server1> <Startup configuration properties loaded from "/u01/ORAR122/fs1/FMW_Home/user_projects/domains/EBS_domain_R122/servers/oafm_server1/data/nodemanager/startup.properties">
NMProcess: Dec 11, 2013 10:01:17 AM weblogic.nodemanager.server.AbstractServerManager log
NMProcess: INFO: Startup configuration properties loaded from "/u01/ORAR122/fs1/FMW_Home/user_projects/domains/EBS_domain_R122/servers/oafm_server1/data/nodemanager/startup.properties"
NMProcess: <Dec 11, 2013 10:01:17 AM> <INFO> <EBS_domain_R122> <forms-c4ws_server1> <Startup configuration properties loaded from "/u01/ORAR122/fs1/FMW_Home/user_projects/domains/EBS_domain_R122/servers/forms-c4ws_server1/data/nodemanager/startup.properties">
NMProcess: Dec 11, 2013 10:01:17 AM weblogic.nodemanager.server.AbstractServerManager log
NMProcess: INFO: Startup configuration properties loaded from "/u01/ORAR122/fs1/FMW_Home/user_projects/domains/EBS_domain_R122/servers/forms-c4ws_server1/data/nodemanager/startup.properties"
NMProcess: <Dec 11, 2013 10:01:17 AM> <INFO> <Plain socket listener started on port 5561, host arjun.bangalore.bedford.local>
NMProcess: Dec 11, 2013 10:01:17 AM weblogic.nodemanager.server.Listener run
NMProcess: INFO: Plain socket listener started on port 5561, host arjun.bangalore.bedford.local
Refer /u01/ORAR122/fs1/inst/apps/R122_arjun/logs/appl/admin/log/adnodemgrctl.txt for details

adnodemgrctl.sh: exiting with status 0

adnodemgrctl.sh: check the logfile /u01/ORAR122/fs1/inst/apps/R122_arjun/logs/appl/admin/log/adnodemgrctl.txt for more information ...


.end std out.
*** ALL THE FOLLOWING FILES ARE REQUIRED FOR RESOLVING RUNTIME ERRORS
*** Log File = /u01/ORAR122/fs1/inst/apps/R122_arjun/logs/appl/rgf/TXK/txkChkEBSDependecies_Wed_Dec_11_10_00_43_2013/txkChkEBSDependecies_Wed_Dec_11_10_00_43_2013.log

.end err out.

****************************************************



Executing service control script:
/u01/ORAR122/fs1/inst/apps/R122_arjun/admin/scripts/adalnctl.sh start
Timeout specified in context file: 100 second(s)

script returned:
****************************************************

adalnctl.sh version 120.3.12020000.2

Checking for FNDFS executable.
Starting listener process APPS_R122.

adalnctl.sh: exiting with status 0


adalnctl.sh: check the logfile /u01/ORAR122/fs1/inst/apps/R122_arjun/logs/appl/admin/log/adalnctl.txt for more information ...


.end std out.

.end err out.

****************************************************



Executing service control script:
/u01/ORAR122/fs1/inst/apps/R122_arjun/admin/scripts/adcmctl.sh start
Timeout specified in context file: 1000 second(s)

script returned:
****************************************************

You are running adcmctl.sh version 120.19.12020000.3

Starting concurrent manager for R122 ...
Starting R122_1211@R122 Internal Concurrent Manager
Default printer is noprint

adcmctl.sh: exiting with status 0


adcmctl.sh: check the logfile /u01/ORAR122/fs1/inst/apps/R122_arjun/logs/appl/admin/log/adcmctl.txt for more information ...


.end std out.

.end err out.

****************************************************



Executing service control script:
/u01/ORAR122/fs1/inst/apps/R122_arjun/admin/scripts/adadminsrvctl.sh start -nopromptmsg
Timeout specified in context file: 1000 second(s)

script returned:
****************************************************

You are running adadminsrvctl.sh version 120.10.12020000.4

Starting WLS Admin Server...
Refer /u01/ORAR122/fs1/inst/apps/R122_arjun/logs/appl/admin/log/adadminsrvctl.txt for details

adadminsrvctl.sh: exiting with status 0

adadminsrvctl.sh: check the logfile /u01/ORAR122/fs1/inst/apps/R122_arjun/logs/appl/admin/log/adadminsrvctl.txt for more information ...


.end std out.
sh: module: line 1: syntax error: unexpected end of file
sh: error importing function definition for `module'

.end err out.

****************************************************




Executing service control script:
/u01/ORAR122/fs1/inst/apps/R122_arjun/admin/scripts/admanagedsrvctl.sh start forms-c4ws_server1 -nopromptmsg
Timeout specified in context file: -1 second(s)

script returned:
****************************************************

You are running admanagedsrvctl.sh version 120.14.12020000.6

Starting forms-c4ws_server1...

admanagedsrvctl.sh: exiting with status 0

admanagedsrvctl.sh: check the logfile /u01/ORAR122/fs1/inst/apps/R122_arjun/logs/appl/admin/log/adforms-c4wsctl.txt for more information ...


.end std out.

.end err out.

****************************************************



Executing service control script:
/u01/ORAR122/fs1/inst/apps/R122_arjun/admin/scripts/admanagedsrvctl.sh start forms_server1 -nopromptmsg
Timeout specified in context file: -1 second(s)

script returned:
****************************************************

You are running admanagedsrvctl.sh version 120.14.12020000.6

Starting forms_server1...

admanagedsrvctl.sh: exiting with status 0

admanagedsrvctl.sh: check the logfile /u01/ORAR122/fs1/inst/apps/R122_arjun/logs/appl/admin/log/adformsctl.txt for more information ...


.end std out.

.end err out.

****************************************************



Executing service control script:
/u01/ORAR122/fs1/inst/apps/R122_arjun/admin/scripts/admanagedsrvctl.sh start oafm_server1 -nopromptmsg
Timeout specified in context file: -1 second(s)

script returned:
****************************************************

You are running admanagedsrvctl.sh version 120.14.12020000.6

Starting oafm_server1...

admanagedsrvctl.sh: exiting with status 0

admanagedsrvctl.sh: check the logfile /u01/ORAR122/fs1/inst/apps/R122_arjun/logs/appl/admin/log/adoafmctl.txt for more information ...


.end std out.

.end err out.

****************************************************



Executing service control script:
/u01/ORAR122/fs1/inst/apps/R122_arjun/admin/scripts/admanagedsrvctl.sh start oacore_server1 -nopromptmsg
Timeout specified in context file: -1 second(s)

script returned:
****************************************************

You are running admanagedsrvctl.sh version 120.14.12020000.6

Starting oacore_server1...

admanagedsrvctl.sh: exiting with status 0

admanagedsrvctl.sh: check the logfile /u01/ORAR122/fs1/inst/apps/R122_arjun/logs/appl/admin/log/adoacorectl.txt for more information ...


.end std out.

.end err out.

****************************************************



All enabled services for this node are started.

adstrtal.sh: Exiting with status 0

adstrtal.sh: check the logfile /u01/ORAR122/fs1/inst/apps/R122_arjun/logs/appl/admin/log/adstrtal.log for more information ...

[applmgr@arjun scripts]$ adop phase=fs_clone

step by step to migrate Non Container Database (Non CDB) to Container Database (CDB, as PDB)

Moving a Non Container Database (Non CDB) to Container Database (CDB, as PDB)

In this post, I discuss moving a regular Non CDB Database to CDB architecture. DBMS_PDB.DESCRIBE metadata procedure is used for the same purpose. Following analogy applies to the post,

ORCL - Non CDB Database (Instance)

Step -1 Identify CDB or non CDB database

[oracle@r12c orcl]$ sqlplus "/as sysdba"

SQL*Plus: Release 12.1.0.2.0 Production on Thu Sep 10 18:49:34 2015

Copyright (c) 1982, 2014, Oracle.  All rights reserved.


Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options

SQL> SELECT name, open_mode FROM   v$pdbs ORDER BY name;

no rows selected

SQL> select con_id, dbid, name from v$pdbs;

no rows selected

SQL> select cdb from v$database;

CDB
---
NO

Step -2 Creat CDB database

Below steps to create CDB Database (Instance)
$ ./runinstaller

 

 



Step -3

Open the Non CDB (ORCL) in READ-ONLY Mode to keep it transactionally consistent.

SQL> STARTUP OPEN READ ONLY;
ORACLE instance started.

Total System Global Area 1275068416 bytes
Fixed Size                  2923968 bytes
Variable Size             872415808 bytes
Database Buffers          385875968 bytes
Redo Buffers               13852672 bytes
Database mounted.
Database opened.

Step -4
Connect to the Non-CDB Database(ORCL) and execute DBMS_PDB.DESCRIBE procedure to generate an xml file that will help to build the Pluggable Database on the CDB Database(CDB)

SQL> BEGIN
  DBMS_PDB.DESCRIBE(
    pdb_descr_file => '/tmp/cdb.xml');
END;
/  2    3    4    5

PL/SQL procedure successfully completed.

Step -5
Shutdown the Non CDB (ORCL) Database, and login to CDB Database (CDB) as SYS user

SQL> SHUTDOWN IMMEDIATE;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> exit
Disconnected from Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options

Step -6
On CDB container database  Create the PDB Database by mapping the XML file that Is generated in step -4

[oracle@r12c datafile]$ export ORACLE_SID=cdb1
[oracle@r12c datafile]$ sqlplus "/as sysdba"

SQL*Plus: Release 12.1.0.2.0 Production on Thu Sep 10 20:14:23 2015

Copyright (c) 1982, 2014, Oracle.  All rights reserved.


Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options

SQL> select cdb from v$database;

CDB
---
YES

SQL> select name from v$database;

NAME
---------
CDB1

SQL> SELECT pdb_name, status FROM   dba_pdbs ORDER BY pdb_name;

PDB_NAME        STATUS
-----------       ----------
PDB             NORMAL
PDB$SEED        NORMAL

SQL> CREATE PLUGGABLE DATABASE orcl USING '/tmp/cdb.xml'
  COPY
  FILE_NAME_CONVERT = ('/db/app/product/oradata/orcl/','/db/app/product/oradata/orcl/pdb1/');  2    3

Pluggable database created.

SQL> SELECT NAME,OPEN_MODE FROM V$PDBS;

NAME                           OPEN_MODE
------------------------------ ----------
PDB$SEED                       READ ONLY
PDB                            MOUNTED
ORCL                           MOUNTED

Step -7
Connect to the new PDB that has been created on CDB Database (CONDB) as SYS, and execute the "noncdb_to_pdb.sql" script.

SQL> ALTER SESSION SET CONTAINER=ORCL;

Session altered.

SQL> @$ORACLE_HOME/rdbms/admin/noncdb_to_pdb.sql
SQL> SET SERVEROUTPUT ON
SQL> SET FEEDBACK 1
SQL> SET NUMWIDTH 10
SQL> SET LINESIZE 80
SQL> SET TRIMSPOOL ON
SQL> SET TAB OFF
SQL> SET PAGESIZE 100
SQL>
SQL> WHENEVER SQLERROR EXIT;
SQL>
SQL> DOC
DOC>#######################################################################
DOC>#######################################################################
DOC>   The following statement will cause an "ORA-01403: no data found"
DOC>   error if we're not in a PDB.
DOC>   This script is intended to be run right after plugin of a PDB,
DOC>   while inside the PDB.
DOC>#######################################################################
DOC>#######################################################################
DOC>#
SQL>
SQL> VARIABLE cdbname VARCHAR2(128)
SQL> VARIABLE pdbname VARCHAR2(128)
SQL> BEGIN
  2    SELECT sys_context('USERENV', 'CDB_NAME')
  3      INTO :cdbname
  4      FROM dual
  5      WHERE sys_context('USERENV', 'CDB_NAME') is not null;
  6    SELECT sys_context('USERENV', 'CON_NAME')
  7      INTO :pdbname
  8      FROM dual
  9      WHERE sys_context('USERENV', 'CON_NAME') <> 'CDB$ROOT';
 10  END;
 11  /

PL/SQL procedure successfully completed.

SQL>
SQL> alter session set container = "&pdbname";

Session altered.

SQL>
SQL> -- leave the PDB in the same state it was when we started
SQL> BEGIN
  2    execute immediate '&open_sql &restricted_state';
  3  EXCEPTION
  4    WHEN OTHERS THEN
  5    BEGIN
  6      IF (sqlcode <> -900) THEN
  7        RAISE;
  8      END IF;
  9    END;
 10  END;
 11  /

PL/SQL procedure successfully completed.

SQL>
SQL>
SQL> WHENEVER SQLERROR CONTINUE;
SQL> commit;

Commit complete.

SQL> exit
Disconnected from Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
[oracle@r12c datafile]$

Step -8
Open the PDB in READ WRITE Mode, confirm the status, and make it available for Client Operations,  it is also advisable to take a backup.

[oracle@r12c datafile]$ sqlplus "/as sysdba"

SQL*Plus: Release 12.1.0.2.0 Production on Thu Sep 10 20:46:02 2015

Copyright (c) 1982, 2014, Oracle.  All rights reserved.


Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options

SQL> SELECT NAME,OPEN_MODE FROM V$PDBS;

NAME                           OPEN_MODE
------------------------------ ----------
PDB$SEED                       READ ONLY
PDB                            MOUNTED
ORCL                           MOUNTED

SQL> ALTER PLUGGABLE DATABASE ORCL open;

Pluggable database altered.

SQL> SELECT NAME,OPEN_MODE FROM V$PDBS;

NAME                           OPEN_MODE
------------------------------ ----------
PDB$SEED                       READ ONLY
PDB                            MOUNTED
ORCL                           READ WRITE

11 September 2015

step by step goldengate installation and configuration on LinuxX86_64bit

Oracle Golden gate 12.1.2 installation on Source node






[oracle@prodnew1 golden]$ export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/oracle/golden
[oracle@prodnew1 golden]$ echo $LD_LIBRARY_PATH
/oracle/product/11.2.0/lib:/oracle/golden
[oracle@prodnew1 golden]$ ggsci
Oracle GoldenGate Command Interpreter for Oracle
Version 12.1.2.1.0 OGGCORE_12.1.2.1.0_PLATFORMS_140727.2135.1_FBO
Linux, x64, 64bit (optimized), Oracle 11g on Aug  7 2014 09:14:25
Operating system character set identified as UTF-8.

Copyright (C) 1995, 2014, Oracle and/or its affiliates. All rights reserved.

GGSCI (prodnew1.muthu.com) 1> CREATE SUBDIRS

Creating subdirectories under current directory /oracle/golden

Parameter files                /oracle/golden/dirprm: already exists
Report files                   /oracle/golden/dirrpt: already exists
Checkpoint files               /oracle/golden/dirchk: already exists
Process status files           /oracle/golden/dirpcs: already exists
SQL script files               /oracle/golden/dirsql: already exists
Database definitions files     /oracle/golden/dirdef: already exists
Extract data files             /oracle/golden/dirdat: already exists
Temporary files                /oracle/golden/dirtmp: already exists
Credential store files         /oracle/golden/dircrd: already exists
Masterkey wallet files         /oracle/golden/dirwlt: already exists
Dump files                     /oracle/golden/dirdmp: already exists

GGSCI (prodnew1.muthu.com) 2> exit

[oracle@prodnew1 golden]$ sqlplus "/as sysdba"

SQL*Plus: Release 11.2.0.1.0 Production on Thu Aug 13 14:00:24 2015

Copyright (c) 1982, 2009, Oracle.  All rights reserved.


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> create tablespace ggs_data datafile '/oracle/product/oradata//ggs_data01.dbf' size 200m;

Tablespace created.

SQL> create user ggs_owner identified by ggs_owner default tablespace ggs_data temporary tablespace temp;

User created.

SQL> grant connect,resource to ggs_owner;

Grant succeeded.

SQL> grant select any dictionary, select any table to ggs_owner;

Grant succeeded.

SQL> grant create table to ggs_owner;

Grant succeeded.

SQL> grant flashback any table to ggs_owner;

Grant succeeded.

SQL> grant execute on dbms_flashback to ggs_owner;

Grant succeeded.

SQL> grant execute on utl_file to ggs_owner;

Grant succeeded.

SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@prodnew1 golden]$ ggsci

Oracle GoldenGate Command Interpreter for Oracle
Version 12.1.2.1.0 OGGCORE_12.1.2.1.0_PLATFORMS_140727.2135.1_FBO
Linux, x64, 64bit (optimized), Oracle 11g on Aug  7 2014 09:14:25
Operating system character set identified as UTF-8.

Copyright (C) 1995, 2014, Oracle and/or its affiliates. All rights reserved.

GGSCI (prodnew1.muthu.com) 1> DBLOGIN USERID ggs_owner, PASSWORD ggs_owner
Successfully logged into database.

GGSCI (prodnew1.muthu.com as ggs_owner@PRODNEW) 2> info all

Program     Status      Group       Lag at Chkpt  Time Since Chkpt

MANAGER     RUNNING
exit
[oracle@prodnew1 golden]$ sqlplus "/as sysdba"

SQL*Plus: Release 11.2.0.1.0 Production on Thu Aug 13 14:04:20 2015

Copyright (c) 1982, 2009, Oracle.  All rights reserved.

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> ALTER DATABASE ADD SUPPLEMENTAL LOG DATA (ALL) COLUMNS;

Database altered.

SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@prodnew1 golden]$ ggsci

Oracle GoldenGate Command Interpreter for Oracle
Version 12.1.2.1.0 OGGCORE_12.1.2.1.0_PLATFORMS_140727.2135.1_FBO
Linux, x64, 64bit (optimized), Oracle 11g on Aug  7 2014 09:14:25
Operating system character set identified as UTF-8.

Copyright (C) 1995, 2014, Oracle and/or its affiliates. All rights reserved.

GGSCI (prodnew1.muthu.com) 1> DBLOGIN USERID ggs_owner, PASSWORD ggs_owner
Successfully logged into database.

GGSCI (prodnew1.muthu.com as ggs_owner@PRODNEW) 2> info all

Program     Status      Group       Lag at Chkpt  Time Since Chkpt

MANAGER     RUNNING


GGSCI (prodnew1.muthu.com as ggs_owner@PRODNEW) 3> EDIT PARAMS MGR
PORT 7809
USERID ggs_owner, PASSWORD ggs_owner
PURGEOLDEXTRACTS /oracle/golden/dirdat/ex, USECHECKPOINTS

GGSCI (prodnew1.muthu.com as ggs_owner@PRODNEW) 4> stop MGR
Manager process is required by other GGS processes.
Are you sure you want to stop it (y/n)?y

Sending STOP request to MANAGER ...
Request processed.
Manager stopped.

GGSCI (prodnew1.muthu.com as ggs_owner@PRODNEW) 5> start MGR
Manager started.

GGSCI (prodnew1.muthu.com as ggs_owner@PRODNEW) 6> info all

Program     Status      Group       Lag at Chkpt  Time Since Chkpt

MANAGER     RUNNING

GGSCI (prodnew1.muthu.com as ggs_owner@PRODNEW) 7> info manager

Manager is running (IP port prodnew1.muthu.com.7809, Process ID 21155).

GGSCI (prodnew1.muthu.com) 2> ADD EXTRACT ext11, TRANLOG, BEGIN NOW
EXTRACT added.

GGSCI (prodnew1.muthu.com) 3> ADD EXTTRAIL /oracle/golden/dirdat/la, EXTRACT ext11
EXTTRAIL added.

GGSCI (prodnew1.muthu.com) 4> ADD EXTRACT dpump11, EXTTRAILSOURCE /oracle/golden/dirdat/la
EXTRACT added.

GGSCI (prodnew1.muthu.com) 5> EDIT PARAMS ext11

*********************************************
EDIT PARAMS ext11

EXTRACT ext11
USERID ggs_owner, PASSWORD ggs_owner
EXTTRAIL /oracle/golden/dirdat/la                ------ Source Path
DDL INCLUDE MAPPED
TABLE scott.emp;

*********************************************

GGSCI (prodnew1.muthu.com) 6> ADD RMTTRAIL /oracle/golden/dirdat/ra, EXTRACT dpump11  ------- Target Path
RMTTRAIL added.

GGSCI (prodnew1.muthu.com) 7> edit params dpump11

*********************************************
EDIT PARAMS dpump11

EXTRACT dpump11
USERID ggs_owner, PASSWORD ggs_owner
RMTHOST localhost, MGRPORT 7810
RMTTRAIL /oracle/golden/dirdat/ra                ------ Target Path
PASSTHRU
TABLE scott.emp;
*********************************************

GGSCI (prodnew1.muthu.com) 8> info all

Program     Status      Group       Lag at Chkpt  Time Since Chkpt

MANAGER     RUNNING
EXTRACT     STOPPED     DPUMP11     00:00:00      00:13:33
EXTRACT     STOPPED     EXT11       00:00:00      00:15:15


GGSCI (prodnew1.muthu.com) 9> start extract *

Sending START request to MANAGER ...
EXTRACT DPUMP11 starting

Sending START request to MANAGER ...
EXTRACT EXT11 starting


GGSCI (prodnew1.muthu.com) 10> info all

Program     Status      Group       Lag at Chkpt  Time Since Chkpt

MANAGER     RUNNING
EXTRACT     RUNNING     DPUMP11     00:00:00      00:13:58
EXTRACT     RUNNING     EXT11       00:00:00      00:15:40

[oracle@prodnew1 golden]$ sqlplus "/as sysdba"

SQL*Plus: Release 11.2.0.1.0 Production on Thu Aug 13 16:57:20 2015

Copyright (c) 1982, 2009, Oracle.  All rights reserved.


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> @marker_setup

Marker setup script

You will be prompted for the name of a schema for the Oracle GoldenGate database objects.
NOTE: The schema must be created prior to running this script.
NOTE: Stop all DDL replication before starting this installation.

Enter Oracle GoldenGate schema name:GGS_OWNER


Marker setup table script complete, running verification script...
Please enter the name of a schema for the GoldenGate database objects:
Setting schema name to GGS_OWNER

MARKER TABLE
-------------------------------
OK

MARKER SEQUENCE
-------------------------------
OK

Script complete.
SQL> alter session set recyclebin=OFF;

Session altered.

SQL> @ddl_setup

Oracle GoldenGate DDL Replication setup script

Verifying that current user has privileges to install DDL Replication...

You will be prompted for the name of a schema for the Oracle GoldenGate database objects.
NOTE: For an Oracle 10g source, the system recycle bin must be disabled. For Oracle 11g and later, it can be enabled.
NOTE: The schema must be created prior to running this script.
NOTE: Stop all DDL replication before starting this installation.

Enter Oracle GoldenGate schema name:GGS_OWNER

Working, please wait ...
Spooling to file ddl_setup_spool.txt

Checking for sessions that are holding locks on Oracle Golden Gate metadata tables ...

Check complete.

WARNING: Tablespace GGS_DATA does not have AUTOEXTEND enabled.

Using GGS_OWNER as a Oracle GoldenGate schema name.

Working, please wait ...

DDL replication setup script complete, running verification script...
Please enter the name of a schema for the GoldenGate database objects:
Setting schema name to GGS_OWNER

CLEAR_TRACE STATUS:

Line/pos                                 Error
---------------------------------------- -----------------------------------------------------------------
No errors                                No errors

CREATE_TRACE STATUS:

Line/pos                                 Error
---------------------------------------- -----------------------------------------------------------------
No errors                                No errors

TRACE_PUT_LINE STATUS:

Line/pos                                 Error
---------------------------------------- -----------------------------------------------------------------
No errors                                No errors

INITIAL_SETUP STATUS:

Line/pos                                 Error
---------------------------------------- -----------------------------------------------------------------
No errors                                No errors

DDLVERSIONSPECIFIC PACKAGE STATUS:

Line/pos                                 Error
---------------------------------------- -----------------------------------------------------------------
No errors                                No errors

DDLREPLICATION PACKAGE STATUS:

Line/pos                                 Error
---------------------------------------- -----------------------------------------------------------------
No errors                                No errors

DDLREPLICATION PACKAGE BODY STATUS:

Line/pos                                 Error
---------------------------------------- -----------------------------------------------------------------
No errors                                No errors

DDL IGNORE TABLE
-----------------------------------
OK

DDL IGNORE LOG TABLE
-----------------------------------
OK

DDLAUX  PACKAGE STATUS:

Line/pos                                 Error
---------------------------------------- -----------------------------------------------------------------
No errors                                No errors

DDLAUX PACKAGE BODY STATUS:

Line/pos                                 Error
---------------------------------------- -----------------------------------------------------------------
No errors                                No errors

SYS.DDLCTXINFO  PACKAGE STATUS:

Line/pos                                 Error
---------------------------------------- -----------------------------------------------------------------
No errors                                No errors

SYS.DDLCTXINFO  PACKAGE BODY STATUS:

Line/pos                                 Error
---------------------------------------- -----------------------------------------------------------------
No errors                                No errors

DDL HISTORY TABLE
-----------------------------------
OK

DDL HISTORY TABLE(1)
-----------------------------------
OK

DDL DUMP TABLES
-----------------------------------
OK

DDL DUMP COLUMNS
-----------------------------------
OK

DDL DUMP LOG GROUPS
-----------------------------------
OK

DDL DUMP PARTITIONS
-----------------------------------
OK

DDL DUMP PRIMARY KEYS
-----------------------------------
OK

DDL SEQUENCE
-----------------------------------
OK

GGS_TEMP_COLS
-----------------------------------
OK

GGS_TEMP_UK
-----------------------------------
OK

DDL TRIGGER CODE STATUS:

Line/pos                                 Error
---------------------------------------- -----------------------------------------------------------------
No errors                                No errors

DDL TRIGGER INSTALL STATUS
-----------------------------------
OK

DDL TRIGGER RUNNING STATUS
------------------------------------------------------------------------------------------------------------------------
ENABLED

STAYMETADATA IN TRIGGER
------------------------------------------------------------------------------------------------------------------------
OFF

DDL TRIGGER SQL TRACING
------------------------------------------------------------------------------------------------------------------------
0

DDL TRIGGER TRACE LEVEL
------------------------------------------------------------------------------------------------------------------------
0

LOCATION OF DDL TRACE FILE
------------------------------------------------------------------------------------------------------------------------
/oracle/product/11.2.0/admin/diag/rdbms/prodnew/PRODNEW/trace/ggs_ddl_trace.log

Analyzing installation status...


VERSION OF DDL REPLICATION
------------------------------------------------------------------------------------------------------------------------
OGGCORE_12.1.2.1.0_PLATFORMS_140727.2135.1

STATUS OF DDL REPLICATION
------------------------------------------------------------------------------------------------------------------------
SUCCESSFUL installation of DDL Replication software components

Script complete.
SQL> @role_setup

GGS Role setup script

This script will drop and recreate the role GGS_GGSUSER_ROLE
To use a different role name, quit this script and then edit the params.sql script to change the gg_role parameter to the preferred name. (Do not run the script.)

You will be prompted for the name of a schema for the GoldenGate database objects.
NOTE: The schema must be created prior to running this script.
NOTE: Stop all DDL replication before starting this installation.

Enter GoldenGate schema name:GGS_OWNER
Wrote file role_setup_set.txt

PL/SQL procedure successfully completed.


Role setup script complete

Grant this role to each user assigned to the Extract, GGSCI, and Manager processes, by using the following SQL command:

GRANT GGS_GGSUSER_ROLE TO <loggedUser>

where <loggedUser> is the user assigned to the GoldenGate processes.
SQL> grant ggs_ggsuser_role to ggs_owner;

Grant succeeded.

SQL> @ddl_enable

Trigger altered.

SQL> @ddl_pin GGS_OWNER

PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.

SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@prodnew1 golden]$ ggsci

Oracle GoldenGate Command Interpreter for Oracle
Version 12.1.2.1.0 OGGCORE_12.1.2.1.0_PLATFORMS_140727.2135.1_FBO
Linux, x64, 64bit (optimized), Oracle 11g on Aug  7 2014 09:14:25
Operating system character set identified as UTF-8.

Copyright (C) 1995, 2014, Oracle and/or its affiliates. All rights reserved.

GGSCI (prodnew1.muthu.com) 3> DBLOGIN USERID ggs_owner, PASSWORD ggs_owner
Successfully logged into database.

GGSCI (prodnew1.muthu.com as ggs_owner@PRODNEW) 4> ADD TRANDATA scott.emp

Logging of supplemental redo data enabled for table SCOTT.EMP.
TRANDATA for scheduling columns has been added on table 'SCOTT.EMP'.
GGSCI (prodnew1.muthu.com as ggs_owner@PRODNEW) 5> EDIT PARAM EXT1

GGSCI (prodnew1.muthu.com as ggs_owner@PRODNEW) 6> EDIT PARAM EXT11

GGSCI (prodnew1.muthu.com as ggs_owner@PRODNEW) 7> info all

Program     Status      Group       Lag at Chkpt  Time Since Chkpt

MANAGER     RUNNING
EXTRACT     ABENDED     DPUMP11     00:00:00      00:25:19
EXTRACT     STOPPED     EXT11       00:00:00      00:27:01

GGSCI (prodnew1.muthu.com as ggs_owner@PRODNEW) 8> start extract *

Sending START request to MANAGER ...
EXTRACT DPUMP11 starting

Sending START request to MANAGER ...
EXTRACT EXT11 starting

GGSCI (prodnew1.muthu.com as ggs_owner@PRODNEW) 9> info all

Program     Status      Group       Lag at Chkpt  Time Since Chkpt

MANAGER     RUNNING
EXTRACT     RUNNING     DPUMP11     00:00:00      00:25:38
EXTRACT     RUNNING     EXT11       00:27:18      00:00:02

[oracle@prodnew1 golden]$ ggsci

Oracle GoldenGate Command Interpreter for Oracle
Version 12.1.2.1.0 OGGCORE_12.1.2.1.0_PLATFORMS_140727.2135.1_FBO
Linux, x64, 64bit (optimized), Oracle 11g on Aug  7 2014 09:14:25
Operating system character set identified as UTF-8.

Copyright (C) 1995, 2014, Oracle and/or its affiliates. All rights reserved.

GGSCI (prodnew1.muthu.com) 1> info all

Program     Status      Group       Lag at Chkpt  Time Since Chkpt

MANAGER     RUNNING
EXTRACT     ABENDED     DPUMP11     00:00:00      00:28:17
EXTRACT     RUNNING     EXT11       00:00:00      00:00:03

GGSCI (prodnew1.muthu.com) 2> start EXTRACT DPUMP11

Sending START request to MANAGER ...
EXTRACT DPUMP11 starting

GGSCI (prodnew1.muthu.com) 3> info all

Program     Status      Group       Lag at Chkpt  Time Since Chkpt

MANAGER     RUNNING
EXTRACT     RUNNING     DPUMP11     00:00:00      00:28:32
EXTRACT     RUNNING     EXT11       00:00:00      00:00:07

GGSCI (prodnew1.muthu.com) 4> info all

Program     Status      Group       Lag at Chkpt  Time Since Chkpt

MANAGER     RUNNING
EXTRACT     RUNNING     DPUMP11     00:00:00      00:28:55
EXTRACT     RUNNING     EXT11       00:00:00      00:00:09

GGSCI (prodnew1.muthu.com) 5> stop mgr
Manager process is required by other GGS processes.
Are you sure you want to stop it (y/n)?y

Sending STOP request to MANAGER ...
Request processed.
Manager stopped.


GGSCI (prodnew1.muthu.com) 6> start mgr
Manager started.


GGSCI (prodnew1.muthu.com) 7> info all

Program     Status      Group       Lag at Chkpt  Time Since Chkpt

MANAGER     RUNNING
EXTRACT     RUNNING     DPUMP11     00:00:00      00:29:50
EXTRACT     RUNNING     EXT11       00:00:00      00:00:01

GGSCI (prodnew1.muthu.com) 1> edit params mgr

GGSCI (prodnew1.muthu.com) 2> stop mgr
Manager process is required by other GGS processes.
Are you sure you want to stop it (y/n)?y

Sending STOP request to MANAGER ...
Request processed.
Manager stopped.


GGSCI (prodnew1.muthu.com) 3> start mgr
Manager started.


GGSCI (prodnew1.muthu.com) 4> info all

Program     Status      Group       Lag at Chkpt  Time Since Chkpt

MANAGER     RUNNING
EXTRACT     ABENDED     DPUMP11     00:00:00      00:32:07
EXTRACT     RUNNING     EXT11       00:00:00      00:00:08


GGSCI (prodnew1.muthu.com) 5> start EXTRACT DPUMP11;
ERROR: EXTRACT DPUMP11; does not exist.


GGSCI (prodnew1.muthu.com) 6> start EXTRACT DPUMP11

Sending START request to MANAGER ...
EXTRACT DPUMP11 starting


GGSCI (prodnew1.muthu.com) 7> info all

Program     Status      Group       Lag at Chkpt  Time Since Chkpt

MANAGER     RUNNING
EXTRACT     RUNNING     DPUMP11     00:00:00      00:32:23
EXTRACT     RUNNING     EXT11       00:00:00      00:00:02

GGSCI (prodnew1.muthu.com) 3> start EXTRACT DPUMP11

Sending START request to MANAGER ...
EXTRACT DPUMP11 starting


GGSCI (prodnew1.muthu.com) 4> info all

Program     Status      Group       Lag at Chkpt  Time Since Chkpt

MANAGER     RUNNING
EXTRACT     RUNNING     DPUMP11     00:00:00      00:36:13
EXTRACT     RUNNING     EXT11       00:00:00      00:00:09


GGSCI (prodnew1.muthu.com) 5> exit

Please follow same procedure  ON TARGET


[oracle@prodnew golden]$ ggsci

Oracle GoldenGate Command Interpreter for Oracle
Version 12.1.2.1.0 OGGCORE_12.1.2.1.0_PLATFORMS_140727.2135.1_FBO
Linux, x64, 64bit (optimized), Oracle 11g on Aug  7 2014 09:14:25
Operating system character set identified as UTF-8.

Copyright (C) 1995, 2014, Oracle and/or its affiliates. All rights reserved.

GGSCI (prodnew.muthu.com) 4> ADD REPLICAT rep11, EXTTRAIL /oracle/golden/dirdat/ra
REPLICAT added.

GGSCI (prodnew.muthu.com) 5> EDIT PARAMS rep11

*********************************************
EDIT PARAMS rep11
REPLICAT rep11
ASSUMETARGETDEFS
USERID ggs_owner, PASSWORD ggs_owner
HANDLECOLLISIONS
MAP scott.emp, TARGET scott.emp;
*********************************************

GGSCI (prodnew.muthu.com as ggs_owner@PRODNEW) 6> EDIT PARAMS ./GLOBALS

GGSCI (prodnew.muthu.com as ggs_owner@PRODNEW) 7> DBLOGIN USERID ggs_owner, PASSWORD ggs_owner
Successfully logged into database.

GGSCI (prodnew.muthu.com as ggs_owner@PRODNEW) 8> ADD CHECKPOINTTABLE GGS_OWNER.CHKPTAB

Successfully created checkpoint table GGS_OWNER.CHKPTAB.

[oracle@prodnew golden]$ sqlplus "/as sysdba"

SQL*Plus: Release 11.2.0.1.0 Production on Thu Aug 13 16:57:44 2015

Copyright (c) 1982, 2009, Oracle.  All rights reserved.


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> @marker_setup
SQL> alter session set recyclebin=OFF;
SQL> @ddl_setup
SQL> @role_setup
SQL> grant ggs_ggsuser_role to ggs_owner;
SQL> @ddl_enable
SQL> @ddl_pin GGS_OWNER

[oracle@prodnew golden]$ ggsci

Oracle GoldenGate Command Interpreter for Oracle
Version 12.1.2.1.0 OGGCORE_12.1.2.1.0_PLATFORMS_140727.2135.1_FBO
Linux, x64, 64bit (optimized), Oracle 11g on Aug  7 2014 09:14:25
Operating system character set identified as UTF-8.

Copyright (C) 1995, 2014, Oracle and/or its affiliates. All rights reserved.

GGSCI (prodnew.muthu.com) 2> info all

Program     Status      Group       Lag at Chkpt  Time Since Chkpt

MANAGER     RUNNING
REPLICAT    STOPPED     REP11       00:00:00      00:14:12

GGSCI (prodnew.muthu.com) 3> start replicat REP11

Sending START request to MANAGER ...
REPLICAT REP11 starting


GGSCI (prodnew.muthu.com) 4> info all

Program     Status      Group       Lag at Chkpt  Time Since Chkpt

MANAGER     RUNNING
REPLICAT    RUNNING     REP11       00:00:00      00:00:00


GGSCI (prodnew.muthu.com) 5> exit


ON Source:
__________

START EXTRACT ext11
START EXTRACT dpump11

On Target
__________
grant create any table to ggs_owner;
START REPLICAT rep11

step by step Clone a Pluggable Database (PDB) Manually

PDB Clones in Oracle Database 12c Release 1 (12.1.0.2)

[oracle@r12c ~]$ sqlplus "/as sysdba"

SQL*Plus: Release 12.1.0.2.0 Production on Fri Sep 11 11:33:26 2015

Copyright (c) 1982, 2014, Oracle.  All rights reserved.


Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options

SQL> show con_name;

CON_NAME
------------------------------
CDB$ROOT
SQL> select con_id, name, open_mode, total_size from v$pdbs;

    CON_ID NAME                           OPEN_MODE  TOTAL_SIZE
---------- ------------------------------ ---------- ----------
         2 PDB$SEED                       READ ONLY   838860800
         4 ORCL                           READ WRITE 2945187840

SQL> alter session set container=ORCL;

Session altered.

Creating the user for testing purpose.

SQL> create user muthu identified by muthu;

User created.

SQL> SELECT NAME,OPEN_MODE FROM V$PDBS;

NAME                           OPEN_MODE
------------------------------ ----------
ORCL                           READ WRITE

SQL> alter pluggable database ORCL close;

Pluggable database altered.

SQL> alter pluggable database ORCL open read only;

Pluggable database altered.

Cloning full database from ORCL to ORCLNEW.

SQL> CREATE PLUGGABLE DATABASE orclnew from orcl FILE_NAME_CONVERT = ('/db/app/product/oradata/orcl/pdb1','/db/app/product/oradata/orclnew/');

Pluggable database created.

SQL> alter pluggable database orclnew open read write;

Pluggable database altered.

SQL> alter pluggable database orcl close;

Pluggable database altered.

SQL> alter pluggable database orcl open read write;

Pluggable database altered.

SQL> SELECT NAME,OPEN_MODE FROM V$PDBS;

NAME                           OPEN_MODE
------------------------------ ----------
PDB$SEED                       READ ONLY
ORCLNEW                        READ WRITE
ORCL                           READ WRITE

Checking the contents of the muthu user in the new PDB show the user is present,

SQL> alter session set container=ORCLNEW;

Session altered.
SQL> col USERNAME format a20
SQL> select USERNAME,CREATED from DBA_users where USERNAME='MUTHU';

USERNAME             CREATED
-------------------- ---------
MUTHU                11-SEP-15

SQL> show con_name;

CON_NAME
------------------------------
ORCLNEW
SQL> alter session set container=ORCL;

Session altered.

SQL> select USERNAME,CREATED from DBA_users where USERNAME='MUTHU';

USERNAME             CREATED
-------------------- ---------
MUTHU                11-SEP-15

SQL> show con_name;

CON_NAME
------------------------------
ORCL
SQL>