Starting WLS without typing password

When you configure your WLS domain in production mode, during the startup of the servers (AdminServer, soa_server, bam_server, bpm_server, …), you are prompted to provide credentials:

Official Documentation: http://docs.oracle.com/cd/E23943_01/web.1111/e13708/overview.htm

<Oct 19, 2013 3:53:01 PM CEST> <Info> <Management> <BEA-141107> <Version: WebLogic Server 10.3.6.0  Tue Nov 15 08:52:36 PST 2011 1441050 >
<Oct 19, 2013 3:53:03 PM CEST> <Info> <Security> <BEA-090065> <Getting boot identity from user.>
Enter username to boot WebLogic server:weblogic
Enter password to boot WebLogic server:
<Oct 19, 2013 3:54:22 PM CEST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
<Oct 19, 2013 3:54:22 PM CEST> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool>

To avoid this, you can do the following steps:


export MIDDLEWARE_HOME=/data/middleware/mid70/
vi $MIDDLEWARE_HOME/user_projects/domains/mid70_domain/servers/AdminServer/boot.properties

#The boot.properties contains, the plain credentials which will be encrypted once you start your server

username=weblogic
password=Welcome1

Note:
You can also modified the file: $MIDDLEWARE_HOME/user_projects/domains/mid70_domain/bin/startManagedWebLogic.sh
by providing environment variable

WLS_USER="weblogic"
export WLS_USER
WLS_PW="Welcome1"
export WLS_PW
Advertisements

About Chenda Mok

19 years of hands on experience in software design and development with emphasis on Enterprise Application Integration (EAI), Services Oriented Architecture (SOA) and Identity Management (IDM) solutions. I’m a software engineer, member of the professional service delivery team working for Salesforce. Prior to this, I worked for Oracle as Solution Architect, through SeeBeyond(06/2005), then SUN’s acquisition (04/2009). After my master’s degree in computer science in 1997; I always delivered consulting on architecture, design, implementation on integration’s field. I’m interested in architecture using EAI/SOA/IDM/BPM/Cloud technologies, software development and Java’s related technologies. I may blog about my work/activities at Salesforce, but I do not speak for my employer, past, present or future.
This entry was posted in Administration, Weblogic Server. Bookmark the permalink.