Thursday, December 21, 2017

Oracle Weblogic Server 12.2.1.2.0 installation in linux server

Oracle Weblogic Server 12.2.1.2.0 installation in Linux server


Follow the pre-requisite steps as per my previous blog. I am giving commands without detail description.




http://psadmintasks.blogspot.com/2017/03/oracle-weblogic-12-server-installation.html




$ export JAVA_HOME=/Java/jdk1.8.0_151
$ export ORACLE_HOME=/weblogic




$ $JAVA_HOME/bin/java -jar fmw_12.2.1.2.0_wls.jar -silent -response /wls1221.rep -invPtrLoc /oraInst.loc
Launcher log file is /tmp/OraInstall2017-12-21_11-26-35PM/launcher2017-12-21_11-26-35PM.log.
Option "-response" is deprecated; use "-responseFile" instead.
Extracting the installer . . . . . . Done
Checking if CPU speed is above 300 MHz.   Actual 2596.502 MHz    Passed
Checking swap space: must be greater than 512 MB.   Actual 7975 MB    Passed
Checking if this platform requires a 64-bit JVM.   Actual 64    Passed (64-bit not required)
Checking temp space: must be greater than 300 MB.   Actual 2050 MB    Passed

Preparing to launch the Oracle Universal Installer from /tmp/OraInstall2017-12-21_11-26-35PM
Log: /tmp/OraInstall2017-12-21_11-26-35PM/install2017-12-21_11-26-35PM.log
Copyright (c) 1996, 2016, Oracle and/or its affiliates. All rights reserved.
Reading response file..
Skipping Software Updates
Starting check : CertifiedVersions
Expected result: One of oracle-6,oracle-7,redhat-7,redhat-6,SuSE-11,SuSE-12
Actual Result: redhat-7.2
Check complete. The overall result of this check is: Passed
CertifiedVersions Check: Success.

Starting check : CheckJDKVersion
Expected result: 1.8.0_101
Actual Result: 1.8.0_151
Check complete. The overall result of this check is: Passed
CheckJDKVersion Check: Success.

Validations are enabled for this session.
Verifying data
Copying Files
Percent Complete : 10
Percent Complete : 20
Percent Complete : 30
Percent Complete : 40
Percent Complete : 50
Percent Complete : 60
Percent Complete : 70
Percent Complete : 80
Percent Complete : 90
Visit http://www.oracle.com/support/policies.html for Oracle Technical Support policies.
Percent Complete : 100
The installation of Oracle Fusion Middleware 12c WebLogic Server and Coherence 12.2.1.2.0 completed successfully.
Logs successfully copied to /oraInventory/logs.






Verification of installation -
Add opatch to PATH variable
export PATH=${PATH}:/XX/OPatch


Run following command to check Installation


$opatch lsinventory


For silent installation you will need to create response and parameter file and use it in command line




Response file : Copy paste content in file



[ENGINE]
#DO NOT CHANGE THIS.
Response File Version=1.0.0.0.0
[GENERIC]
#The oracle home location. This can be an existing Oracle Home or a new Oracle Home
ORACLE_HOME=/opt/bea/weblogic
#Set this variable value to the Installation Type selected. e.g. WebLogic Server, Coherence, Complete with Examples.
INSTALL_TYPE=WebLogic Server
#Provide the My Oracle Support Username. If you wish to ignore Oracle Configuration Manager configuration provide empty string for user name.
MYORACLESUPPORT_USERNAME=
#Provide the My Oracle Support Password
MYORACLESUPPORT_PASSWORD=<SECURE VALUE>
#Set this to true if you wish to decline the security updates. Setting this to true and providing empty string for My Oracle Support username will ignore the Oracle Configuration Manager configuration
DECLINE_SECURITY_UPDATES=true

#Set this to true if My Oracle Support Password is specified
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
#Provide the Proxy Host
PROXY_HOST=
#Provide the Proxy Port
PROXY_PORT=
#Provide the Proxy Username
PROXY_USER=
#Provide the Proxy Password
PROXY_PWD=<SECURE VALUE>
#Type String (URL format) Indicates the OCM Repeater URL which should be of the format [scheme[Http/Https]]://[repeater host]:[repeater port]
COLLECTOR_SUPPORTHUB_URL=




Location file : -
inventory_loc=/oraInventory
inst_group=<user group name>

Wednesday, August 16, 2017

VBoxVMService : Error finding machine! Could not find a registered machine named

VBoxVMService : Error finding machine! Could not find a registered machine named

This is common error when you delete/kill the vboxheadless.exe service from task manager.  There could be other reasons too.

1. To fix this I attempted to restart vms machines manually from vms prompt. But no success. There was errors what unable to find running service. You can find troubleshooting guide of vms service in doc folder. I am copying troubleshooting guide content in bottom of this post.

2. If above don't work then simply remove only all machines from Virtual box manager and uninstall it. Also uninstall VBoxVMservice and re-install both of them. Now browse and add one of the machine in Oracle Virtual box and add machine details in VMService configuration file i.e.VBoxVmService.ini

Once it is done , list of machines using following commands. If no machine listed then restart the windows server and it will work.

Note : You will always see Oracle VM Virtual Box machines as "Powered Off" status. But machines would be actually running using VBoxVMService headless service.


c:\vms>VmServiceControl.exe -l
VM0: VBOX_8_56_01_SHELL is running.

c:\vms>VmServiceControl.exe -sd 0
VM0: VBOX_8_56_01_SHELL has been shutted down.

c:\vms>VmServiceControl.exe -l
VM0: VBOX_8_56_01_SHELL is saved.

c:\vms>VmServiceControl.exe -su 0
VM0: VBOX_8_56_01_SHELL has been started up.

-------------VBoxVMService Troubleshooting Guide---------------------

##############################################################################
#
#   PART I - BEFORE YOU START
#
##############################################################################
Make sure VirtualBox has been installed and your VMs can be started from VirtualBox Manager without any problem. Shutdown all the VMs and close VirtualBox Manager.

IMPORTANT: If you want to control your VMs with VRDP, enable remote display at display settings and assign a dedicated port for each individual VM (e.g. use: 3010 for Vm0, 3020 for Vm1, etc.). Do not use the standard port 3389, which is used by your host machine!


##############################################################################
#
#   PART II - INSTALLATION
#
##############################################################################

Step 1. Run the VBoxVmService setup program.

Step 2. Open up VBoxVmService.ini in installation folder and modify it to fit your needs. The file contains an example setup with two virtual machines.

Key / Value pair                                            Description
-----------------------------------------------------------------------------
[Settings]
VBOX_USER_HOME=C:\Users\YOUR_NAME_HERE\.VirtualBox          The actual path to your user's .VirtualBox directory. It is usually located in your users' personal folder.
RunWebService=no                                            Whether or not start up VBoxWebSrv.exe, the VirtualBox HTTP web service automatically. Could be "yes" or "no". Leave it to "no" if you don't know what it is.
WebServiceParam=                                            If necessary, you can specify additional parameters for VBoxWebSrv.exe, like "--port" for binding to non-default port.
PauseShutdown=5000                                          A pause parameter to slow down the Windows shutdown process and to prevent VMs from crashing on shutdown/reboot. (5000 = 5 seconds) Note Windows has a limit to how long the service controller could wait when system reboots. The time limit is specified in the WaitToKillServiceTimeout value of the following registry key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control. Your PauseShutdown value should never exceed this time limit.

[Vm0]
VmName=ubuntu                                               The name of the VM to start (case sensitive!)
ShutdownMethod=savestate                                    The shutdown method ("savestate", or "acpipowerbutton"). When "savestate" is used, the machine state is saved and will be resumed when you start VM next time. When "acpipowerbutton" is used, as long as client OS support it, the VM will get a clean shutdown. If your VM takes long time to poweroff, it's recommanded to use savestate, which could be done very quickly.
AutoStart=yes                                               Whether or not this VM will be started automatically, when VBoxVmService runs. Default to "yes".

[Vm1]
VmName=winxp                                                As you can see, the above values almost repeat for every [VmX] section of the file.
ShutdownMethod=acpipowerbutton
AutoStart=no                                                This VM will not be started automatically.

Step 3. Reboot your system.

If everything goes on right, you could now connect to your VMs with VRDP clients (or ssh clients, if you've configured ssh server inside your VM). If not, refer to TROUBLESHOOTING section below for how to debug.


##############################################################################
#
#   PART III - UNINSTALL
#
##############################################################################

Step 1. Stop running VBoxVmService service. Run VmServiceTray.exe to stop VBoxVmService, then exit VmServiceTray.exe.


Step 2. Open Control Panel -> Programs, select Uninstall VBoxVmService.


##############################################################################
#
#   PART IV - TROUBLESHOOTING
#
##############################################################################
If the service does not bring your VMs up as desired, try the following steps:

Setp 1. Check config file.

Carefully re-check the settings you made in "VBoxVmService.ini".

Setp 2. Debug with VmServiceControl.exe.

Switch to a command prompt, cd to the VBoxVmService directory and type:

    VmServiceControl.exe -l   [ENTER]

to list all the VMs you configured in "VBoxVmService.ini", and their current states.

If something goes wrong, reduce the number of VMs in your ini file to one (= only have the section [Settings] and the section [Vm0] in your ini-file) in your ini-file, for debugging.

The command:

    VmServiceControl.exe -su 0   [ENTER]

can be used to bring up the VM you set up in the section [Vm0] of the "VBoxVmService.ini" file.

If you have successfully started a VM, you should end up with a "VBoxHeadless.exe" process, running as the impersonated user (check in task manager).

The command:

    VmServiceControl.exe -sd 0   [ENTER]

can be used to stop the VM targeting [Vm0]. Afterwards, there should be no running "VBoxHeadless.exe"-process. Additionally, you should see a "VBoxSVC.exe"-process terminating shortly after a successful shutdown of "VBoxHeadless.exe".

Step 3. Read the log files

The file VBoxVmService.log logs everything imortant to VBoxVmService, like all commands it received, and their results. If something went wrong, you can find error code and/or message there.

If you see error like "Could not find a registered machine named...", check if the environment variable VBOX_USER_HOME has been setup correctly.

If you made a mistake on VBOX_USER_HOME, however, fixing it at VBoxVmService.ini is not enough. Because the value was get written into environment variable during installation. You'll need to uninstall VBoxVmService first, then install again.

After installation and everytime when you changed VBOX_USER_HOME later, a system reboot might be required to get VBoxVmService work correctly. So give it a try if you haven't.

If you can't see any error in VBoxVmService.log, but the VM just don't run as expected, check if something goes wrong from VirtualBox's own log, which is saved to file VBoxSVC.log under your VBOX_USER_HOME folder.


Step 4. Ask for help

Refer to the project wiki at http://sourceforge.net/p/vboxvmservice/wiki/ for a list of known issues.

If you are still in trouble, you are welcome to create a support ticket at http://sourceforge.net/p/vboxvmservice/support-requests/. Please be sure to include your VBoxVmService.ini and VBoxVmService.log, so that we can help checking what might be wrong. We might be on VirtualBox's official forums now and then, so feel free to contact us there, too.


Monday, August 7, 2017

PeopleSoft PIA error after setting up Oracle PeopleSoft image - Your URL must contain domain ".XYZ.com"

Error in PeopleSoft login - Your URL must contain domain ".xyz.com"

If you get following error after setting PeopleSoft Image it is most common because of hostname given to server. Here are some steps you can follow to avoid this error.

1. Add entry in local host file of client machine 
IP   hostname   hostname.xyz.com


OR
1. Login to psadmin PIA menu and clear domain authentication type. Bounce PIA services clearing cache.

OR
If it still did not work make sure to check config_prop and weblogic.xml and clear domain authentication value. After validation this error won't come in Chrome as it automatically matches token value but in IE it will give following message after login

IE UnAuthorized Token has been detected by the System. Please signon with your User ID and Password.

Monday, May 22, 2017

Unable to bring up Application server with error Could not sign on to database XX with user XX


Unable to bring up Application server with error  GenMessageBox(0, 0, M): Database
Signon: Could not sign on to database XX with user XX.

When this message is printed in log file. Follow these simple steps
1. Validate your user login through Application designer.
2. Validate your connect id login through sql plus or data mover.
3. If you have DB2 database. Make sure you have catalog entry for target database and System DSN populating it. ODBC data source administrator 64-bit -> System DSN

4. None of above works then setup people tools trace.

Wednesday, May 3, 2017

PeopleSoft PIA error Could not open registry with blank page

PeopleSoft PIA error Could not open registry with blank page


After login with user id and password if you see following message on blank white screen then follow the solution


Could not open registry


Web Server log -
unknown    SEVERE  psft.pt8.clearlist.ClearlistMessageHandler      messageReceived Message not handled because no handler or no default installed for the service!
unknown    SEVERE  psft.pt8.registry.PortalRegistry        open    PortalRegistry.open failed for Portal=signon.html because PortalRegistrySvc returnCode != 0
unknown    WARNING psft.pt8.psp    openRegistry
Could not open registry: signon.html
Local Node information:
Name: PSFT_XXXX
PortalURI: XXXX
ContentURI:XXXX
DefaultPortal: EMPLOYEE


Solution


In url replace signon.html with ?cmd=login

Monday, April 10, 2017

UtilSession failed: Prerequisite check "CheckActiveFilesAndExecutables" failed. Weblogic server patch installation error

Weblogic Server patch installation error


UtilSession failed: Prerequisite check "CheckActiveFilesAndExecutables" failed.


Solution --->
If you get this error . Check the log file mentioned below error message.
It will have following note at the start after initial checks.


 Following files are active :


So basically your weblogic is being used by any PIA or some Java processes. Make sure to stop all weblogic services and process and try installation again.


If that still fails, you will have to use some OS tools to find out which process is holding onto the files that are listed.
              
For more details -> Oracle Doc ID 1488501.1

Thursday, April 6, 2017

Issue in Tuxedo rolling patch installation - Error! An existing Rolling Patch of the Tuxedo RP software has been detected ...

Issue in Tuxedo rolling patch installation - Error! An existing Rolling Patch of the Tuxedo RP software has been detected ...


There are some cases when you uninstall older version of rolling patch and install new rolling patch but installation don't complete as expected. In that scenario if you attempt to install same new version again it gives following message.





Follow these steps to clean your existing version rolling patch information before attempting new version installation. Based on my experience there 3 ways to fix this but mostly Ist worked most of the time.

I. Removing rolling patch with administrator rights.
1. Shutdown application server and process scheduler server. Stop and make sure to set the TLISTEN and ORACLE MGR services to manual.
2. Search in Windows Programs for Uninstall Tuxedo RP and Run as administrator. Once un-installed all you need to refresh and run the new Rolling patch as usual.


II.
1. Windows Run type regedit and navigate to HK_LOCAL_MACHINE -> Software -> ORACLE -> TUXEDO v12.1.1 XXX . If you see patch nested to this then delete it. Refresh the registry.
2. Clean your temp directory %TEMP%
3. Make sure to set the TLISTEN and ORACLE MGR services to manual
4. Make sure %PATH% variable do not have any other ORACLE Tuxedo version present. If yes then remove it. ECHO %TUXDIR% to make sure correct tuxedo home. Delete RP_Uninstaller folder from tuxedo home.
5. Try re-installing patch using administrator rights.
6. If nothing works then uninstall entire Tuxedo and re-install fresh tuxedo and tuxedo patch immediately.

III.
Alternate way or when you plan to uninstall tuxedo patch.
1. Shutdown application server and process scheduler server. Stop and make sure to set the TLISTEN and ORACLE MGR services to manual.
2. Navigate to Tuxedo home and look for RP_Uninstaller folder. Inside there would be executable file to uninstall patch. Run it as admin. If we already had issue then copy this folder from another similar patch(Rolling patch version which is failed) windows server and run as admin to uninstall it.
3. Make sure it uninstalls successfully. The uninstall wizard deletes RP_Uninstall folder as well.
4. Install new patch executing as admin.
run following command to check tuxedo version
tmadmin -v

Steps to uninstall Tuxedo rolling patch in Windows Server

Steps to uninstall Oracle Tuxedo rolling patch in Windows Server


If you try to install Oracle Tuxedo Rolling patch on existing patch it will prompt message to de-install existing patch first. Follow these steps to uninstall existing tuxedo rolling patch.


1. Tuxedo patches usually includes existing patch code fixes as well.
Goto All Programs -> Choose the Tuxedeo Version and then the “Uninstall” option


OR


Goto All Programs -> Control Panel -> Uninstall Program and look for Tuxedo RP patch installation. Select it and click Change/Uninstall button.










Once uninstall check version of tuxedo. Make sure %TUXDIR% is set before running following command. And %PATH% variable has %TUXDIR%/bin added.
> tmadmin -v