Search This Blog

Tuesday, October 10, 2017

Find 10 high size files/folders taking up most storage

Linux command very useful for finding out 10 files in Linux taking up highest storage space.

command useful in identifying the files/directories taking up more storage and can analyse space issues.

du -a . | sort -n -r | head -n 10

Opatch patching commands for Weblogic 12c

Just to remember patching are different types and can be found on Oracle site but just putting up simple commands to understand the patch application via Opatch.

Make sure your Weblogic servers and node Managers of the domains are down before patching.

Pre-req-
1)  Inventory Location - -invPtrLoc /u01/app/oracle/oraInst.loc
2) JDK location -  /usr/java/jdk1.8.0_101
3) JRE location - /usr/java/jdk1.8.0_101
4) patch folder- a location where you can keep the patch unzipped and safe to execute.

Command-

1) To check lsinventory - get patch details for Middleware home

./opatch lsinventory

2) ./opatch apply /u01/app/oracle/OPatch/patch/26571201 -jdk /usr/java/jdk1.8.0_101 -jre /usr/java/jdk1.8.0_101 -invPtrLoc /u01/app/oracle/oraInst.loc

prompt will ask for confirmation type y for yes and teh patch will be applied to the middleware home

Patch ID applied- 26571201

you can verify by running opatch lsinventory to confirm patch update

OEM13c Roles and AD Groups - AD authentication explained

Process -

1) Proceed with AD authenticator setup on weblogic console-

2) Once done with it verify users and groups visible and able to login to weblogic console.



4) Run the below command on command line or if you want to do via GUI

 ./emctl set property -name “oracle.sysman.core.security.auth.autoprovisioning” -value “true”


or

Login to em console with sysman user,

 Setup ->Manage Cloud Control -> Management Servers -- Management Servers dropdown, select Configuration properties


if not visible then search for the property oracle.sysman.core.security.auth.autoprovisioning select it and enable it.

Once done try logging in with the users-

Wednesday, May 24, 2017

NmEnroll a weblogic domain for NmConnect issues

Go to the WLST home-

on prompt find wlst.sh or wlst.cmd

syntax to connect 

wls:/offline> connect('<USERNAME>', '<PASSWORD>', 't3://<ADMIN_HOST>:<ADMIN_PORT>')

Connect to Admin sever

wls:/offline> connect('weblogic', 'Welcome1', 't3://host01.example.com:8001')

once connected

you will get a promt

on the prompt try for the below command 

nmEnroll('DomainHome','NMHomeor NMfolder')

you will get a successful message.

After which restart the domain.

Friday, September 6, 2013

Weblogic 12.1.2 New Version Installation and configuration

Oracle Weblogic 12c 12.1.2.0 New Version released Aug 2013

exploring Whats New!!!!

Downloaded Weblogic12.1.2 Win 32 Bit,  Java 1.7 (jre-7-windows-i586)
(Limitation of my laptop 32 bit )

1) wls_121200.jar generic
2) jre-7-windows-i586.jar

2) jdk-7u51-windows-x64 for 64 bit

Installation steps:-

1) Java Installation -
Installing in  Middleware directory

C:\Oracle\Middleware\Jrockit 1.7

2) Weblogic Installation:-

Start command prompt in admin mode and browse to the java directory and run

java -jar wls_121200.jar











New Oracle Weblogic Installation screens pops up


















Click Next


















Provide the Middleware home and Click Next


















New Options we could see , explored all options and choose Complete Installtion just for reference attaching all screens




































Click Next



Installation starts with Pre-Req check click Next


















Click Install















Installation complete















Click Next















Click Finish and the Process will be completed for the Weblogic Installation

Now the domain configuration















Running the Configuration Wizard














New check box for Upgrading an existing domain anyways Provide the Domain name














Click Next














Here i am Choosing all options but ideally on Dev installation the default options gets check can be used.














Enter User name and Password

Click Next














Choosing Production Mode by default it comes up for Development mode














Choose Components , for demo i have choose all options















Admin server Name,  Host Name, port ,

Click Next














Node Manager Screen is New and Changed

Configuring Per domain
Click Next

Provide Node manager password       Click Next                                                                                                         














Configure Managed Server Click Next














Cluster configuration screen Click Next














Coherence Cluster Click Next














Machine Configuration , Click Next














Choose components for the Machine














Click Next


 Application Deployment Target, Click Next














Click Next











































Click Create















Click Next














Click Finish