Wednesday, 26 March 2014

CREATE & DELETE PROFILES THROUGH COMMAND LINE

1. Create DMGR PROFILE

Goto WAS_ROOT /bin directory and run managerprofiles tool

[oracle@websphe bin]$ ./manageprofiles.sh  -create -profileName dmgr -profilePath /u03/local/opt/was/was70/profiles/dmgr -templatePath /u03/local/opt/was/was70/profileTemplates/dmgr -cellName PRODUSG -hostName websphe.tech.com -nodeName Manager01

Here websphe.tech.com is hostname
PRODUSG is cell name
dmgr is profile name 

2. Create Node profile

[oracle@websphe bin]$ ./manageprofiles.sh  -create -profileName node01 -profilePath /u03/local/opt/was/was70/profiles/node01 -templatePath /u03/local/opt/was/was70/profileTemplates/managed -hostName websphe.tech.com -nodeName Node01 -federateLater true






3.List Profiles

[oracle@websphe bin]$ ./manageprofiles.sh -listProfiles
[dmgr, node01]



 4. DELELE Profiles

[oracle@websphe bin]$ ./manageprofiles.sh -delete -profileName node01
INSTCONFSUCCESS: Success: The profile no longer exists.

[oracle@websphe bin]$ ./manageprofiles.sh -listProfiles
[dmgr]

[oracle@websphe bin]$ ./manageprofiles.sh -delete -profileName dmgr
INSTCONFPARTIALSUCCESS: The profile no longer exists, but errors occurred. For more information, consult /u03/local/opt/was/was70/logs/manageprofiles/dmgr_delete.log.

[oracle@websphe bin]$ ./manageprofiles.sh -listProfiles
[]










No comments: