Skip to content

Techartifact

Latest tip and information on Java and Oracle Fusion Middleware/Weblogic

  • Home
  • Oracle ADF
  • Webcenter
  • Java
  • Spring
  • Videos
  • News
  • TIPS
  • Join Us

Tag: Metadata

Posted on January 14, 2014January 20, 2014

Change metadata in MDS/ Metadata command for weblogic

In Weblogic for exporting metadat we use various command like

-> importMetaData – Imports metadata for an application.

-> exportMetaData – Exports metadata for an application.

-> deleteMetaData – Deletes the metadata in the application repository.

-> purgeMetaData – Purge metadata.

-> deleteMetadata – Deletes the selected documents from the application repository. When this command is run against repositories that support versioning (that is, database-based repositories), delete is logical and marks the tip version (the latest version) of the selected documents as “deleted” in the MDS repository partition.

example – wls:/weblogic/serverConfig> deleteMetadata(application=’mdsapp’,server=’server1′, docs=’/mypackage/*’)

-> exportMetadata -Exports application metadata. Use this command and the importMetadata command to transfer application metadata from one server location (for example, testing) to another server location (for example, production).

example – wls:/weblogic/serverConfig> exportMetadata(application=’mdsapp’,server=’server1′,toLocation=’/tmp/myrepos’,docs=’/**’)

-> importMetadata– Imports application metadata. Use the exportMetadata command and this command to transfer application metadata from one server location (for example, testing) to another server location (for example, production).

example – wls:/weblogic/serverConfig> importMetadata(application=’mdsapp’, server=’server1′,fromLocation=’/tmp/myrepos’,docs=”/**”)

-> purgeMetadata– Purges the older (non-tip) versions of unlabeled documents from the application’s repository. All unlabeled documents will be purged if they are expired, based on Time-To-Live (the olderThan argument). This command is applicable only for repositories that support versioning, that is, database-based repositories.

example – wls:/weblogic/serverConfig> purgeMetadata(‘mdsapp’, ‘server1’, 10)

update metadata in webcenter-config.xml –

Now Lets take an example of changing an metadata for webcenter application. So first we export in some temprary location then we make some changes.Then again we import from temp location to specified location.

-> Go to Middleware home/WebCenter Installation directory/common/bin and run wlst.sh (unix) or wlst.cmd(windows)

-> connect(‘weblogic’,’weblogic1′,’locahost:7001′) or give secure files path connect(userConfigFile=’/oracle/config.secure’, userKeyFile=’/oracle/key.secure’, url=’localhost:7001′)
see how to generate secure file

Then export the current configuration by running the following command in WLST command line. Set the toLocation to some “temporary location”.
->exportMetadata (application=’webcenter’, server=’WC_Spaces’, toLocation=’/tmp/Metadata’, docs=’/oracle/webcenter/webcenterapp/metadata/webcenter-config.xml’)

-> Change XXX parameter to XX MB in /oracle/webcenter/webcenterapp/metadata/webcenter-config.xml file.

-> Then import the file back to WebCenter Spaces server following the below mentioned command line.

importMetadata(application=’webcenter’, server=’WC_SpacesXXX’, fromLocation=’/tmp/Metadata’, docs=’/oracle/webcenter/webcenterapp/metadata/webcenter-config.xml’)

-> exit();

Happy Learning with Vinay Kumar in techartifact…

Posted on November 20, 2013September 24, 2014

Increasing Metadata Field Sizes in webcenter content (UCM)

Requirement- For one of custom metadata type of memo’s size 2000 and want to increase to 4000

Solution- Log into your content server with administrative privileges or as weblogic and select Admin Server from the Administration menu. Click the button for the instance you will be working with and then select General Configuration from the left hand menu. Add this configuration setting:

MemoFieldSize=4000

property1

increasing size for single metadata
If you just want to increase size for one meta data then you can use this, you can again use config.cfg or go through the admin server to add a configuration setting something like this:

xSingleMetadatafield:maxLength=1024

after doing this , you have to alter the table schema for existing metadata like

ALTER TABLE 
docmeta 
MODIFY (xdescription varchar2(4000 char));

Then

-> Click on admin applet.
-> Click on Repository Manager.
-> Click on third tab ‘Indexer’tab and click on Collection Rebuild Cycle.
-> Then click on Automatic Update Cycle
-> Close and restart UCM server.

happy learning with Vinay in techartifact…..

My Books

rsz_o_acelogo_clr

Ads

Oracle ACE

rsz_o_acelogo_clr

Ads

Sessions

Profile Oracle OTN

sdsds

Social Media

Follow @techartifact

Follow @vinaykuma201

Certifications

Oracle ADF Certified Implementation Specialist

Webcenter Portal Certified Implementation Specialist

Sun Certified Java Programmer

Dev Tools

Base64 encode
Base64 decode
Unix Date convert
Random password

Tags

  • ADF
  • application
  • ASP.NET 2.0
  • Attribute
  • bean
  • Book
  • C#.NET
  • C#.NET 2.0
  • Component
  • create
  • custom
  • error
  • features
  • File
  • get
  • How
  • Java
  • Javascript
  • JDeveloper
  • Jetspeed2
  • Jquery
  • JSF
  • LOV
  • managed bean
  • method
  • Microsoft
  • Open Source
  • oracle
  • Oracle ADF
  • Page
  • portal
  • Spaces
  • Spring
  • table
  • Task flow
  • Techartifact
  • Tips
  • UCM
  • value
  • view object
  • Vinay
  • Webcenter
  • Webcenter Portal
  • Web Development
  • weblogic

Follow me on Google

Recent Comments

  • vinay kumar on getting Attribute value from View Object column in ADF
  • Vikrant garg on getting Attribute value from View Object column in ADF
  • Ashish on persistent disk storage in ehcache
  • vinay kumar on Performance tuning of Jdeveloper 12c
  • vinay kumar on Generate Excel file in Oracle ADF using Apache POI
  • Rahul Parit on Programmatic Navigation in JSF/ADF | Techartifact

Ads

About Proudly powered by WordPress
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.Accept Reject Read More
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT