Showing posts with label WSLT. Show all posts
Showing posts with label WSLT. Show all posts

Monday, 8 January 2018

Changing the port of SOA server using wlst

Here we will see , how to change the port of soa server offline using wlst commands.
Start the WLST
Login to your unix box and navigate to your bin folder and run the command.
[testuser@soaserver]$ cd /u01/oracle/SOAInstall/soa/common/bin
[testuser@soaserver]$ ./wlst.sh
wls:/fmw_domain/serverConfig>connect(‘username,’pwd’, ‘hostname:7001’)
wls:/fmw_domain/serverConfig>readDomain(“/u01/oracle/SOAInstall/user_projects/domains/SOAdomain”)
wls:/fmw_domain/serverConfig>cd(“Servers/AdminServer”)
wls:/fmw_domain/serverConfig> setListenPort(7002)
wls:/fmw_domain/serverConfig>updateDomain()

Tuesday, 29 August 2017

we don't remember weblogic admin password

 we can get it as below:


[applmgr@ebs1213 ~]$ sh /u01/app/oracle/ebsappl/FIN2DB/fs1/FMW_Home/wlserver_10.3/common/bin/wlst.sh


Initializing WebLogic Scripting Tool (WLST) ...

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

wls:/offline> domain="/u01/app/oracle/ebsappl/FIN2DB/fs1/FMW_Home/user_projects/domains/EBS_domain_FIN2DB"
wls:/offline> service = weblogic.security.internal.SerializedSystemIni.getEncryptionService(domain)
wls:/offline> encryption = weblogic.security.internal.encryption.ClearOrEncryptedService(service)
wls:/offline> print encryption.decrypt("{AES}Gp7Q+3yqpimz1+27+ftmbCRHpgkMTpEZc67RsxM9XS0=")
weblogic@123
wls:/offline>

We can get encrypted password from boot.properties.

[applmgr@ebs1213 security]$ cd $FMW_HOME/user_projects/domains/EBS_domain_FIN2DB/servers/AdminServer/security
[applmgr@ebs1213 security]$ cat boot.properties
username={AES}LY9AdjI1A7wTpNJpOl4/aMIH3uc0HEwLVcbM9kXwffE=
password={AES}Gp7Q+3yqpimz1+27+ftmbCRHpgkMTpEZc67RsxM9XS0=

Monday, 28 November 2016

Steps to delete data from MDS ( soa-inrfa ) 11g

In my previous blog I explained how to add content in MDS repository . Removing content is very simple compared with adding.I don't have any idea about how to remove data in MDS ( GUI mode ).


WSLT ( weblogic scripting tool )


$ oracle/Middleware/oracle_common/common/bin

$ wlst.sh

Make a connection to weblogic server .

wls:/offline> connect('weblogic','********','t3://localhost:7001')


already MDS Contains fault-policies.xml

/apps/com/xsd/fault-policies.xml 


wls:/offline> deleteMetadata(application='soa-infra',server='AdminServer',docs='/apps/com/xsd/fault-policies.xml')

application -- > soa-infra
server        -->  Adminsever is not mandatory . eg : soa_sever1  ( Managed servers )
docs         -->   /apps    by default , then file location.




wls:/offline> deleteMetadata(application='soa-infra',server='AdminServer',docs='/apps/**')

** will delete all the files, so be careful while using this command

Done ............