Thursday, March 28, 2013

Display Date And Time For Each Command

How do I display shell command history with date and time under UNIX or Linux operating systems?



If the HISTTIMEFORMAT is set, the time stamp information associated with each history entry is written to the history file, marked with the history comment character. Defining the environment variable as follows:



$ HISTTIMEFORMAT="%d/%m/%y %T "

OR



$ echo 'export HISTTIMEFORMAT="%d/%m/%y %T "' >> ~/.bash_profile

Where,

%d - Day

%m - Month

%y - Year

%T - Time

To see history type



$ history



command to file the owner of files recursively

$ stat -c "%U %G" /etc/passwd

root root

Monday, March 25, 2013

sca_listDeployedComposites

sca_listDeployedComposites


Command Category: Application Management Commands



Use with WLST: Offline



Description

Lists all SOA composite applications deployed to the SOA platform.



Syntax

sca_listDeployedComposites(host, port, user, password)

Argument Definition

host Hostname of the Oracle WebLogic Server (for example, myhost).

port Port of the Oracle WebLogic Server (for example, 7001).

user User name for connecting to the running server to get MBean information (for example, weblogic).

password Password for the user name.





Example

The following example lists all the deployed SOA composite applications on the server myhost.



wls:/mydomain/ServerConfig> sca_listDeployedComposites('myhost', '7001',

'weblogic', 'welcome1')

Sunday, March 24, 2013

sca_attachPlan

Hi Team




Most of the time, our end to end testing fails ,because of the wrong config plan or some reference missing in the config plan .



And we end up of redeploying the complete compiste with the corrected config plan .



Instead of doing that we can use the below command to overwrite the config plan of a composite .



Command : sca_attachPlan



Syntax : sca_attachPlan(sar, configPlan, [overwrite], [verbose])



Argument Definition

sar Absolute path of the SAR file.

configPlan Absolute path of the configuration plan file.

overwrite Optional. Indicates whether to overwrite an existing configuration plan in the SAR file.

•false (default): Does not overwrite the plan.



•true: Overwrites the plan.



verbose Optional. Indicates whether to print more information about the configuration plan attachment.

•true (default): Prints more information.



•false: Does not print more information.





Example :



sca_attachPlan("/software:/bpmSOA/sca_Cancelletion_rev21.1.jar", "/software/bpmSOACOMPOSITE/Cancellation_cfgplan_SIT03.xml", overwrite=true)



Friday, March 22, 2013

Creating Weblogic users and assign SOA and weblogic roles through WLST

http://www.albinsblog.com/2011/10/oracle-soa-11g-creating-users-and.html



 Creating Weblogic users and assign SOA and weblogic roles through WLST


Creating users and assign SOA and weblogic roles through WLST:-





WLST script can be use to create the required users in SOA 11g and to assign the required SOA and weblogic roles to the user.



Here we will use the property file to configure the user details,the WLST script will create the users in the server based on the property file.





Weblogic roles control the access permission of weblogic server and the SOA roles control the access permission of the EM console.



Just edit the UserManagement.properties with the users and group details.



UserManagement_SOADomain.properties





admin.url=t3://xxxxxxxx:8000



admin.userName=weblogic



admin.password=xxxxxxx





total.username=7





#



create.user.name.1=adminuser



create.user.password.1=Test123



create.user.description.1= This is a Backup Administrator User



#Comma seperated roles



create.user.groups.1=Administrators



create.user.soarole.1=SOAAdmin,SOADesigner









create.user.name.2=soaadminuser



create.user.password.2=Test1234



create.user.description.2= This is a SOA ADMIN User Two



#Comma seperated roles



create.user.groups.2=Deployers,Operators,Monitors,IntegrationDeployers



create.user.soarole.2=SOAAdmin









create.user.name.3=nfttestuser



create.user.password.3=Test1234



create.user.description.3= This is a Test User Three



#Comma seperated roles



create.user.groups.3=Monitors,IntegrationMonitors



create.user.soarole.3=SOAMonitor,SOAAuditViewer









create.user.name.4=devtestuser



create.user.password.4=Test1234



create.user.description.4= This is a DEV User Three



#Comma seperated roles



create.user.groups.4=Deployers,IntegrationDeployers,IntegrationMonitors,Monitors,Operators



create.user.soarole.4=SOADesigner,SOAMonitor





WLST Script:





The below WLST code snippet will create the required users and assign the corresponding roles to the user.



UserManagement_SOADomain.py



from java.io import FileInputStream



from java.util import *



from javax.management import *





domainName=raw_input('Please enter the weblogic domain name for the user creation: ')



print 'domainName:',domainName





propInputStream = FileInputStream("UserManagement_"+domainName+".properties")



configProps = Properties()



configProps.load(propInputStream)



adminURL=configProps.get("admin.url")



adminUserName=configProps.get("admin.userName")



adminPassword=configProps.get("admin.password")



realmName=configProps.get("security.realmName")





totalUsers_to_Create=configProps.get("total.username")





connect(adminUserName, adminPassword, adminURL)



serverConfig()



authenticatorPath= '/SecurityConfiguration/' + domainName + '/Realms/myrealm/AuthenticationProviders/DefaultAuthenticator'



print authenticatorPath



cd(authenticatorPath)



print 'Creating Users . . .'



x=1



while (x <= int(totalUsers_to_Create)):



userName = configProps.get("create.user.name."+ str(x))



userPassword = configProps.get("create.user.password."+ str(x))



userDescription = configProps.get("create.user.description."+ str(x))



try:



cmo.createUser(userName , userPassword , userDescription)



print '-----------User Created With Name : ' , userName



except:



print '*************** Check If the User With the Name : ' , userName ,' already Exists...'



x = x + 1



print ' '



print ' '









print 'Adding Group Membership of the Users:'



y=1



while (y <= int(totalUsers_to_Create)):



grpNames = configProps.get("create.user.groups."+ str(y)).split(",")



userName = configProps.get("create.user.name."+ str(y))



for grpName in grpNames:



if grpName=='':



print ''



else:



cmo.addMemberToGroup(grpName,userName)



print 'USER:' , userName , 'Added to GROUP: ' , grpName



y=y+1









print 'Adding SOA Roles Membership of the Users:'



y=1



while (y <= int(totalUsers_to_Create)):



roleNames = configProps.get("create.user.soarole."+ str(y)).split(",")



userName = configProps.get("create.user.name."+ str(y))



for roleName in roleNames:



if roleName=='':



print ''



else:



grantAppRole(appStripe="soa-infra", appRoleName=roleName,principalClass="weblogic.security.principal.WLSUserImpl", principalName=userName)



print 'USER:' , userName , 'Added the Role: ' , roleName



y=y+1





Execute the WLST script that will create the required users and assign the corresponding roles.



>$ORACLE_HOME/common/bin/wlst.sh UserManagement_SOADomain.py

wlst.sh with arguments

Create a python file called CreateAccessRole.py

And enter the below code

CreateAccessRole.py

------------------------------------------------------------------------------------------------------
import re


import os

import pdb



print 'connecting to server using: ' + sys.argv[1] + ' ' + sys.argv[2] + ' ' + sys.argv[3]

connect(sys.argv[1],sys.argv[2],sys.argv[3])



domainRuntime()



#if ("@server1.listenSSLPortEnabled@" == "true"):

# SoaInfraConfig = ObjectName('oracle.as.soainfra.config:Location=@server1.name@,name=soa-infra,type=SoaInfraConfig,Application=soa-infra')

# keystoreLocation = Attribute('KeystoreLocation', '@server1.customIdentityKeyStoreFileName@')

# mbs.setAttribute(SoaInfraConfig, keystoreLocation)



#grantAppRole(appStripe="OracleBPMProcessRolesApp", appRoleName="FinancialOfficer", principalClass="weblogic.security.principal.WLSGroupImpl", principalName="Administrators")



disconnect()

exit() ----------------------------------------------------------------------------------------------------------

Thursday, March 21, 2013

Command to Import/Export/Delete MDS in SOA11G

Dear Team

Please find the below command to Import/Exort/Delete/Purge  MDS in SOA 11g



If the environment is SSL enabled ,Please make sure to set the CONFIG_JVM_ARGS before invoking wlst.sh




export CONFIG_JVM_ARGS="-Dweblogic.security.SSL.ignoreHostnameVerification=true -Dweblogic.security.TrustKeyStore=CustomTrust -Dweblogic.security.CustomTrustKeyStoreFileName=/var/domain/soa_01/keystore/WebLogicTrustKeyStore.jks -Dweblogic.security.CustomTrustKeyStorePassPhrase=wltkpwd -Dweblogic.security.CustomTrustKeyStoreType=JKS -Dweblogic.security.SSL.allowSmallRSAExponent=true"





wls:/weblogic/serverConfig> exportMetadata(application='mdsapp',server='srg',toLocation='/tmp/myrepos',docs='/**')

wls:/weblogic/serverConfig> deleteMetadata(application='mdsapp',server='srg', docs='/mypackage/*')

wls:/weblogic/serverConfig> importMetadata(application='mdsapp', server='srg',fromLocation='/tmp/myrepos',docs="/**")

wls:/weblogic/serverConfig> purgeMetadata('mdsapp', 'srg', 10)







Example :-

wls:/weblogic/serverConfig> deleteMetadata(application='mdsapp',

server='srg', docs='/mypackage/*', cancelOnException='false',

excludeExtendedMetadata='true',

excludeAllCust='true')

Executing operation: deleteMetadata.

"deleteMetadata" operation completed. Summary of "deleteMetadata" operation is:

List of documents successfully deleted:

/mypackage/jobs.xml

/mypackage/mo.xml

2 documents successfully deleted.

wls:/weblogic/serverConfig>





wls:/weblogic/serverConfig> exportMetadata(application='mdsapp',

server='srg',toLocation='/tmp/myrepos',docs='/**')

Location changed to domainRuntime tree. This is a read-only tree with DomainMBean as the root.

For more help, use help(domainRuntime)

Executing operation: exportMetadata.

"exportMetadata" operation completed. Summary of "exportMetadata" operation is:

List of documents successfully transferred:

/mypackage/write.xml

/mypackage/write1.xml

/sample1.jspx









wls:/weblogic/serverConfig> importMetadata(application='mdsapp', server='srg',

fromLocation='/tmp/myrepos',docs="/**")

Executing operation: importMetadata.

"importMetadata" operation completed. Summary of "importMetadata" operation is:

List of documents successfully transferred:

/app1/jobs.xml

/app1/mo.xml

2 documents successfully transferred.

wls:/weblogic/serverConfig>









wls:/weblogic/serverConfig> purgeMetadata('mdsapp', 'srg', 10)

Executing operation: purgeMetadata.

Metadata purged:Total number of versions: 10.

Number of versions purged: 0.

wls:/weblogic/serverConfig>












http://docs.oracle.com/cd/E14571_01/web.1111/e13813/custom_mds.htm#CHDHDCAI

Friday, March 15, 2013

Automation of Datasource creation using WLST is working in DIT environment .




Please find the steps below …

1. Create a folder wlst_ds
2. Create a py file ...createDataSource.py
3.vi createDataSource.py
from java.io import FileInputStream


propInputStream = FileInputStream("/home/soadev03/wlst_tocreate_DS/details.properties")

configProps = Properties()

configProps.load(propInputStream)



domainName=configProps.get("domain.name")

adminURL=configProps.get("admin.url")

adminUserName=configProps.get("admin.userName")

adminPassword=configProps.get("admin.password")



dsName=configProps.get("datasource.name")

dsFileName=configProps.get("datasource.filename")

dsDatabaseName=configProps.get("datasource.database.name")

datasourceTarget=configProps.get("datasource.target")

dsJNDIName=configProps.get("datasource.jndiname")

dsDriverName=configProps.get("datasource.driver.class")

dsURL=configProps.get("datasource.url")

dsUserName=configProps.get("datasource.username")

dsPassword=configProps.get("datasource.password")

dsTestQuery=configProps.get("datasource.test.query")



connect(adminUserName, adminPassword, adminURL)

edit()

startEdit()

cd('/')

cmo.createJDBCSystemResource(dsName)

cd('/JDBCSystemResources/' + dsName + '/JDBCResource/' + dsName)

cmo.setName(dsName)



cd('/JDBCSystemResources/' + dsName + '/JDBCResource/' + dsName + '/JDBCDataSourceParams/' + dsName )

set('JNDINames',jarray.array([String('jdbc/' + dsName )], String))



cd('/JDBCSystemResources/' + dsName + '/JDBCResource/' + dsName + '/JDBCDriverParams/' + dsName )

cmo.setUrl(dsURL)

cmo.setDriverName( dsDriverName )

cmo.setPassword(dsPassword)



cd('/JDBCSystemResources/' + dsName + '/JDBCResource/' + dsName + '/JDBCConnectionPoolParams/' + dsName )

cmo.setTestTableName(dsTestQuery)

cd('/JDBCSystemResources/' + dsName + '/JDBCResource/' + dsName + '/JDBCDriverParams/' + dsName + '/Properties/' + dsName )

cmo.createProperty('user')



cd('/JDBCSystemResources/' + dsName + '/JDBCResource/' + dsName + '/JDBCDriverParams/' + dsName + '/Properties/' + dsName + '/Properties/user')

cmo.setValue(dsUserName)



cd('/JDBCSystemResources/' + dsName + '/JDBCResource/' + dsName + '/JDBCDriverParams/' + dsName + '/Properties/' + dsName )

cmo.createProperty('databaseName')



cd('/JDBCSystemResources/' + dsName + '/JDBCResource/' + dsName + '/JDBCDriverParams/' + dsName + '/Properties/' + dsName + '/Properties/databaseName')

cmo.setValue(dsDatabaseName)



cd('/JDBCSystemResources/' + dsName + '/JDBCResource/' + dsName + '/JDBCDataSourceParams/' + dsName )

cmo.setGlobalTransactionsProtocol('OnePhaseCommit')



cd('/SystemResources/' + dsName )

set('Targets',jarray.array([ObjectName('com.bea:Name=' + datasourceTarget + ',Type=Server')], ObjectName))



save()

activate()

4. create the propoery file
domain.name=soa_dev03_Domain


admin.url=t3s://lx550:25905

admin.userName=weblogic

admin.password=Trulsr0k

datasource.name=DS_One

datasource.database.name=

datasource.target=AdminServer

datasource.filename=

datasource.jndiname=

datasource.driver.class=

datasource.url=

datasource.username=

datasource.password=



datasource.test.query=SQL SELECT * FROM DUAL

5 .

[soast01@ngmlx476 bin]$ export CLASSPATH=/var/domain/soa_st01/WEBLOGIC_HOME/server/lib/weblogic.jar

6.
[soast01@lx476 bin]$ java -Dweblogic.security.SSL.ignoreHostnameVerification=true -Dweblogic.security.TrustKeyStore=CustomTrust -Dweblogic.security.CustomTrustKeyStoreFileName=/var/domain/soa_st01/keystore/WebLogicTrustKeyStore.jks -Dweblogic.security.CustomTrustKeyStorePassPhrase=wpd -Dweblogic.security.CustomTrustKeyStoreType=JKS -Dweblogic.security.SSL.allowSmallRSAExponent=true weblogic.WLST /home/soast01/wlst_tocreate_DS/createDataSource.py



Initializing WebLogic Scripting Tool (WLST) ...



Welcome to WebLogic Server Administration Scripting Shell



Type help() for help on available commands



Connecting to t3s://x476:25909 with userid weblogic ...

<15-mar-2013 15:55:05="" clock="" gmt="" o="">

<15-mar-2013 15:55:05="" clock="" gmt="" o="">

Successfully connected to Admin Server 'soa_st01_AdminServer01' that belongs to domain 'soa_st01_Domain'.



Location changed to edit tree. This is a writable tree with

DomainMBean as the root. To make changes you will need to start

an edit session via startEdit().



For more help, use help(edit)



Starting an edit session ...

Started edit session, please be sure to save and activate your

changes once you are done.

Saving all your changes ...

Saved all your changes successfully.

Activating all your changes, this may take a while ...

The edit lock associated with this edit session is released

once the activation is completed.

Activation completed


7. check the data source from the console ..



Thursday, March 14, 2013

not able to connect to admin server using wlst.sh ...

Issue :

Environment is SSL enabled and  when trying with

cd /opt/Oracle/Middleware/Oracle_SOA1/common/bin
java -Dweblogic.security.SSL.ignoreHostnameVerification=true

-Dweblogic.security.TrustKeyStore=CustomTrust -Dweblogic.security.CustomTrustKeyStoreFileName=/var/domain/soa_st01/keystore/WebLogicTrustKeyStore.jks -Dweblogic.security.CustomTrustKeyStorePassPhrase=wltkpassword -Dweblogic.security.CustomTrustKeyStoreType=JKS -Dweblogic.security.SSL.allowSmallRSAExponent=true weblogic.WLST it is working ...   but while trying to connect to Admin server using wlst.sh it is not working ..   And to execute the command to Import Metadata  in SOA 11g you SHOULD use wlst.sh  ONLY ..   Solution :   So to fix this export the env variable CONFIG_JVM_ARGS .. and then try    importMetadata(application='soa-infra',server='soa_st01_BusinessServer01',fromLocation='/home/soast01/apps/',docs='/SharedResourceVR/**')   once it is connected to the domain ....    
export CONFIG_JVM_ARGS="-Dweblogic.security.SSL.ignoreHostnameVerification=true -Dweblogic.security.TrustKeyStore=CustomTrust -Dweblogic.security.CustomTrustKeyStoreFileName=/var/domain/soa_st01/keystore/CapitalOneWebLogicTrustKeyStore.jks -Dweblogic.security.CustomTrustKeyStorePassPhrase=wltkpassword -Dweblogic.security.CustomTrustKeyStoreType=JKS -Dweblogic.security.SSL.allowSmallRSAExponent=true"


How to DB Export And DB Import MDS and ORASDPM schema's

Applies to:


Oracle SOA Platform - Version: 11.1.1.5.0 and later [Release: 11gR1 and later ]

Information in this document applies to any platform.



Goal

What is the recommended way of exporting and importing the mds and orasdpm schema's using Database (RDBMS) commands?





Solution

These steps make use of the RDBMS command line tools:



•Export (dbexp)

•Import (dbimp)



Set content parameter to all on both export and import.



Export MDS and ORASDPM schema's



First set ORACLE_SID





cmd>export ORACLE_SID=

cmd>nohup expdp " ' / as sysdba ' " parfile=mds_all_expdp.par &

cmd>nohup expdp " ' / as sysdba ' " parfile=pvs2_orasdpm_all_expdp.par &

where is the location of (ie: SID) for your RDBMS instance.



Scripts:



mds_all_expdp.par:





CONTENT=ALL

DIRECTORY=ALT_DUMPDEST

DUMPFILE=MDS.dmp

LOGFILE=exp_MDS.log

PARALLEL=1

SCHEMAS=MDS



orasdpm_all_expdp.par:





CONTENT=ALL

DIRECTORY=ALT_DUMPDEST

DUMPFILE=ORASDPM.dmp

LOGFILE=exp_ORASDPM.log

PARALLEL=1

SCHEMAS=ORASDPM





Import MDS and ORASDPM schema:s:

First set ORACLE_SID





cmd>export ORACLE_SID=

cmd>nohup impdp " ' / as sysdba ' " parfile=mds_dataonly_impdp.par &

cmd>nohup impdp " ' / as sysdba ' " parfile=orasdpm_dataonly_impdp.par &

where sid is the SID of your database instance.



Scripts:



mds_dataonly_impdp.par:





CONTENT=ALL

DIRECTORY=ALT_DUMPDEST

DUMPFILE=MDS.dmp

LOGFILE=imp_MDS.log

PARALLEL=1

SCHEMAS=MDS



pvs2_orasdpm_dataonly_impdp.par:





CONTENT=ALL

DIRECTORY=ALT_DUMPDEST

DUMPFILE=ORASDPM.dmp

LOGFILE=imp_ORASDPM.log

PARALLEL=1

SCHEMAS=ORASDPM

UserWarning: MDS-91002: MDS Application runtime MBean for "soa-infra" is not available. "deleteMetadata" operation failure

UserWarning: MDS-91002: MDS Application runtime MBean for "soa-infra" is not available. "deleteMetadata" operation failure


You are trying to clean up the MDS using below steps:

1. Execute SOA_HOME/common/bin/wlst.sh

2. Connect to admin server by running connect()

3. Enter the domain config by running domainConfig()

4. Delete Metadata by running deleteMetadata('soa-infra', 'soa_server1','/apps/AIAMetaData/**')





You encounter below error:





UserWarning: MDS-91002: MDS Application runtime MBean for "soa-infra" is not available. "deleteMetadata" operation failure





The SOA Managed Server is up and so s the SOAINFRA. What could be the possible reason?





The reason for the above error is the name of the managed server used. In case your admin renamed the default managed server on which SOA is deployed (the default name is soa_server1) you would get the above stated error.





So in case you get the above error, check with your admin the name of the SOA managed server. So in case your SOA managed server name is SOA_MS_1, the MDS purge command would be as follows:





deleteMetadata('soa-infra', 'soa_ms_1','/apps/AIAMetaData/**'



Bulk Importing Metadata Services (MDS) Files With WLST or EM Leaves Out Configuration Files

Applies to:

Oracle SOA Platform - Version: 11.1.1.5.0 and later [Release: 11gR1 and later ]

Information in this document applies to any platform.

Symptoms

For different use cases you might be facing the situation where you want to bulk import Metadata Service (MDS) files into an environment. This may be to update many files at once or to restore the MDS from another db.



Both the Weblogic Scripting Tool (WLST) and Enterprise Manager (EM) present means to do that.

In WLST you use the importMetadata function where you declare parameter docs='/**' to tell you want all files.

In EM you use the MDS import tool and select a zip file or expanded directory.



In both cases the files will be imported except for the following configuration files:

/soa/configuration/default/adapter-config.xml

/soa/configuration/default/b2b-config.xml

/soa/configuration/default/bpel-config.xml

/soa/configuration/default/bpmn-config.xml

/soa/configuration/default/businessrules-config.xml

/soa/configuration/default/cep-config.xml

/soa/configuration/default/edn-config.xml

/soa/configuration/default/mediator-config.xml

/soa/configuration/default/soa-infra-config.xml

/soa/configuration/default/workflow-config.xml

/soa/configuration/default/workflow-identity-config.xml

/soa/configuration/default/workflow-notification-config.xml

/soa/configuration/folders.xml

/soa/configuration/logmetadata.xml

Cause

This functionality is working by design and has been added to avoid overwriting configuration by mistake.

Thus you will have to import the files one by one instead.

Solution

This section describes the two methodologies (Using WLST, or Enterprose Manager) below:

Using WLST

1. Change to common/bin directory for oracle_common

cmd> pwd

$Middleware/PS4/oracle_common/common/bin





2. Run wlst

cmd> ./wlst.sh





3. Connect to the soa-infra application running on selected server

wls:/offline> connect()

Please enter your username :weblogic

Please enter your password :welcome1



Please enter your server URL [t3://localhost:7001] :

Connecting to t3://localhost:7001 with userid weblogic ...

Successfully connected to Admin Server 'AdminServer' that belongs to domain 'soa_domain'.



Warning: An insecure protocol was used to connect to the

server. To ensure on-the-wire security, the SSL port or

Admin port should be used instead.





4. Bulk export metadata

wls:/soa_domain/serverConfig> exportMetadata(application='soa-infra', server='soa_server1', toLocation='/tmp/SOA-MDS', docs='/**');



Executing operation: exportMetadata.



Operation "exportMetadata" completed. Summary of "exportMetadata" operation is:

List of documents successfully transferred:

....

/soa/configuration/default/adapter-config.xml

/soa/configuration/default/b2b-config.xml

/soa/configuration/default/bpel-config.xml

/soa/configuration/default/bpmn-config.xml

/soa/configuration/default/businessrules-config.xml

/soa/configuration/default/cep-config.xml

/soa/configuration/default/edn-config.xml

/soa/configuration/default/mediator-config.xml

/soa/configuration/default/soa-infra-config.xml

/soa/configuration/default/workflow-config.xml

/soa/configuration/default/workflow-identity-config.xml

/soa/configuration/default/workflow-notification-config.xml

/soa/configuration/folders.xml

/soa/configuration/logmetadata.xml

...



3,611 documents successfully transferred.



Observe the amount of exported files, 3611





5. Bulk import files

wls:/soa_domain/serverConfig> importMetadata(application='soa-infra', server='soa_server1', fromLocation='/tmp/SOA-MDS', docs='/**'')



Executing operation: importMetadata.



Operation "importMetadata" completed. Summary of "importMetadata" operation is:

List of documents successfully transferred:



...





1 documents successfully transferred.

3,597 documents successfully transferred.





6. Import file bpel.xml

wls:/soa_domain/serverConfig> importMetadata(application='soa-infra', server='soa_server1', fromLocation='/tmp/SOA-MDS', docs='/soa/configuration/default/bpel-config.xml')



Executing operation: importMetadata.



Operation "importMetadata" completed. Summary of "importMetadata" operation is:

List of documents successfully transferred:



/soa/configuration/default/bpel-config.xml



1 documents successfully transferred.





7. Repeat step 6 for all the configuration files



MDS functions from EM

SOA Enterprise Manager provides a tool to facilitate the export of the MDS schema to disk.



To accomplish this please follow these steps:

1. Log in to EM http://host:port/em

2. Expand SOA and right-click on soa-infra -> Administration -> MDS Configuration

3. Under Export section select one of the suitable alternatives, server disk for example:

Select /tmp/SOA_MDS

4. Redirect the database and restart ther soa server with a fresh new RCU schemas

5. From EM, expand SOA and right-click on soa-infra -> Administration -> MDS Configuration

6. Under import section select one of the suitable alternatives, e.g. from server disk '/tmp/SOA_MDS'

7. Import each of the configuration files one by one following

Exporting and Importing SOA Composites and Configuration Files from a SOA MetaData Store (MDS) (Doc ID 1335908.1)

References

BUG:13850577 - MDS IMPORT FROM EM DOES NOT IMPORT ALL FILES





Wednesday, March 13, 2013

steps to IMPORT MDS in SOA 11g

Please try the steps given below to Import MDS ..





1.shared resources location. : //mds/apps/



2.Navigate to below mentioned oracle fusion middleware installed location.

cd /opt/Oracle/Middleware/Oracle_SOA1/common/bin/



3. Run ./wlst.sh



4.Use the below command to connect to the server



java -Dweblogic.security.SSL.ignoreHostnameVerification=true -Dweblogic.security.TrustKeyStore=CustomTrust



-Dweblogic.security.CustomTrustKeyStoreFileName=/var/domain/soa_st01/keystore/CapitalOneWebLogicTrustKeyStore.jks



-Dweblogic.security.CustomTrustKeyStorePassPhrase=wltkpassword -Dweblogic.security.CustomTrustKeyStoreType=JKS



-Dweblogic.security.SSL.allowSmallRSAExponent=true weblogic.WLST





5.Unzip the folder soa-infra_metadata.zip to get the folder soa-infra_metadata .

Use the below command to import the files to MDS respository. This command will import all the resources under “mds” folder



to MDS repository.

importMetadata(application='soa-infra',server='soa_server1',fromLocation='/home/fusion/Deployments/soa-infra_metadata/',docs='/apps/**')



6. Then check the MDS resources imported ..



Regards

wlst not able to connect to admin server


Issue : Enable Admnistration Port was selected ….



The administration port uses SSL, enabling the administration port requires that SSL must be configured for all servers in the domain .

SSL in not configured in DEV environment



Solution : Disable the Administration Port



Steps to disable administration port:



- take a backup of config.xml file

- stop all WLS instances.

- edit the config.xml file and remove these 2 lines:

true

[PORT]

- save the file

- start the Admin Server







wls:/offline> connect('weblogic','pwd','t3://abcd550:25200')

Connecting to t3://abcd550:25200 with userid weblogic ...

Successfully connected to Admin Server 'soa_dev01_AdminServer01' that belongs to domain 'soa_dev01_Domain'.



Warning: An insecure protocol was used to connect to the

server. To ensure on-the-wire security, the SSL port or

Admin port should be used instead.



wls:/soa_dev01_Domain/serverConfig>



Friday, March 8, 2013

Steps To Rename File Extension, .zip to .jar

Please follow the steps below to change the extensions of files. This is mostly for people having trouble changing .zip files to .jar files.




To change the extensions of files follow this method (using windows):



QUOTE

1 - open any folder

2 - click on tools > folder options

3 - select the "view" tab

4 - make sure that "hide extensions for known file types" is de-selected.

5 - rename your file to "filename".(extension)



*make sure to re-select "hide extensions for known file types" after you're done. This is for your safety as others using the same PC may mess up your files.