Showing posts with label Oracle WebCenter. Show all posts
Showing posts with label Oracle WebCenter. Show all posts

Wednesday, September 30, 2015

WebCenter Customer Component Logging


1. Include import java.util.logging.Logger; in customer component class.

2. Create object of Logger class
 private final Logger logger = Logger.getLogger(ComponentManager.class.getName());

3. Add the logs similar to WebCenter Content.
logger.info("<" + new Date().toString()+ "> <Notice> EBSCheckIn Sql Query @ [ "+ selectSQL+" ] - JNDI @ ["+bean.getAxfDataSource()+"]");

Above will work else you need to add following statements in class.

1. Import the handler class - import java.util.logging.Handler;

2. Create object of handler class.
 private Handler consoleHandler = new ConsoleHandler();

3.  Map the handler with logger class.

                         logger.addHandler(consoleHandler);
consoleHandler.setLevel(Level.ALL);
logger.setLevel(Level.ALL);


Try Some Other Patter:-
___________________
1. Import log class

     import intradoc.common.Log;

2.  Add the log info message

Log.info("<" + new Date().toString()+ "> <Notice> EBSCheckIn Sql Query @ [ "+ selectSQL+" ] - JNDI @ ["+bean.getAxfDataSource()+"]");


Try Some thing else :-
___________________

import intradoc.common.Report;

Report.info(section, message, t);

Report.info("filestore", msg, null);

Report.info(null, msg, null);

Report.info("scheduledevents", msg, null);

Report.info("taskmanager", null, ignore);

------------------------------------------

Report.trace("publish", "waiting for publishing thread", ignore);

Report.trace("applet", "MainFrameListener: null command", null);

Report.trace("system", null, excep);

Report.trace("system", "counters or depends is empty", null);

Report.trace("filestore", "adding " + action + " operation to commit log", null);

Report.trace("schemainit", "adding Application target", null);

Report.trace("userstorage", "addAuthData userInfo=" + userInfo + " timeStamp=" + tAuthData.m_timeStamp, null);

  Report.trace("archiver", "Writing export file: " + this.m_archiveDir + "/exports.hda", null);
 
  Report.trace("componentloader", "adding " + dir + " (from " + key + "=" + val + ") to search list", null)
 
   Report.trace("search", "using executable '" + searchExe + "' for searching", null);

Thursday, August 20, 2015

Oracle WebCenter Content Tracking Report Outlines

Install Content tracker in UCM

Data collection: Gathering content access information and writing the information to event log files.
Data reduction: Processing the information from data collection and merging it into a database table.
Data Engine Control Center: The interface that provides access to the user-controlled functions of the Data Engine. It has the following tabs or sub-screens:
Collection: Used to enable data collection.
Reduction: Used to stop and start data reduction (merging data into database tables).
Schedule: Used to enable automatic data reduction.
Snapshot: Used to enable activity metrics. The term snapshot also denotes an information set representing the world at a particular time.
Services: Used to add, configure, and edit service calls to be logged. It is also used to define the specific event details logged for a given service.


Note:- C:\Oracle\Middleware\user_projects\domains\webcenter\ucm\cs\data\components\ContentTracker\config.cfg (SctTrackContentAccessOnly=false)

1. Enable Content Tracker and Content Tracker Report component.

2. we will use three (3) files :
 i - Oracle\Middleware\Oracle_ECM1\ucm\idc\components\ContentTrackerReports\resources\contenttrackerreports_query.htm

3. Add these lines at the end of Oracle\Middleware\Oracle_ECM1\ucm\idc\components\ContentTrackerReports\resources\contenttrackerreports_query.htm
<tr> <td>qCustomusers</td> <td>select dname from users</td> </tr>

4. Add these lines at the end of file Oracle\Middleware\Oracle_ECM1\ucm\idc\components\ContentTrackerReports\resources\contenttrackerreports_template_resource.htm
<@dynamichtml qCustomusers_vars@>
<$reportWidth = "100%"$> <$title = "<i>Users</i>"$> <$reportTitle="Users"$> <$column1Width="35%"$> <$column0Drill="qSctrDocsSeenByUser_Drill"$>
<@end@>


5. Then restart content server.

Some Short notes are :-



Monday, August 17, 2015

Install and Configure Oracle Inbound Refinery

Install and Configure the IBR

Step 1) Connect to the Inbound Refinery at http://yourhostname:16250/ibr as the weblogic user, and the first-time use configuration screen will appear.

For this example, go with all the defaults.
Click Submit.
Restart WLS and the Managed Servers.

Step 2) Add an Inbound Refinery Provider.
Using the native webUI (http://localhost:16200/cs), select Administration / Providers, click on Add outgoing provider.
Enter the following:
- Provider Name: examplecs16250
- Provider Description: IBR provider
- Server Host Name: localhost
- HTTP Server Address: localhost:16250
- Server Port: 5555
- Instance Name: examplecs16250
- Relative Web Root: /ibr/
- select this checkbox: "Handles Inbound Refinery Conversion Jobs"
Click the Add button.
Restart WLS and the Managed Servers.

Step 3) Test to see that the new Provider is operational.
Using the native webUI (http://localhost:16200/cs), select Administration / Providers.
Click on Test provider "examplecs16250". It should state: "Good".

Step 4) Configure File Formats that will be used by the Refinery.
Using the native webUI (http://localhost:16200/cs), select Administration / Refinery Administration / File Formats Wizard
Select the all checkbox to select all file formats possible. Click the Update button.

Step 5) On the Inbound Refinery, enable PDF Export Converter.
Connect to the Inbound Refinery at http://yourhostname:16250/ibr, Administration / Admin Server, Component Manager, select the PDFExportConverter checkbox.
Click Update, then click OK.
Restart WLS and the Managed Servers.

Step 6) Set Primary Web Rendition to PDF.
Connect to the Inbound Refinery at http://yourhostname:16250/ibr, Conversion Settings / Primary Web Rendition.
Select the checkbox for "Convert to PDF using PDF Export".
Click the Update button.

INSTALLING THE IDC PDF CONVERTER PRINTER
Download Ghostscript (http://sourceforge.net/projects/ghostscript/) for resolve “The required printer 'IDC PDF Converter' is not installed. Queue monitoring will be turned off” error.
Installed the ghostscript.
1. Log in to the PDF Converter computer. Be mindful of the user account that you use.
The same user must be used to install Inbound Refinery and PDF Converter, install all
required third-party applications, and run Inbound Refinery and PDF Converter.

2. Close all other Windows programs.\

3. Create a c:\temp\ directory.

4. Launch the Windows Add Printer Wizard.

5. Click Next to continue.

6. Select the Local printer attached to this computer radio button, clear the
Automatically detect and install my Plug and Play printer check box, and click
Next to continue.
7. Select the Create a new port radio button, select Local Port from the drop-down
menu, and click Next to continue.

8. Enter c:\temp\idcoutput.ps as the port name, and click OK. The idcoutput.ps file does not need to exist in the temp directory; it will be created by PDF Converter.
9. Click Have Disk.

10. Click Browse.

11. Navigate to the PostScript printer driver that you want to use. If you are using AFPL
Ghostscript as your PostScript distiller engine, it is recommended that you use the
AFPL Ghostscript printer driver that is installed with AFPL Ghostscript. Navigate to
the ghostpdf.inf file located in the <ghostscript_install_dir>\lib\ directory.
Select the printer driver, and click Open.

12. Click OK to copy the printer files.

13. Click Next to continue. If you receive a message stating that driver is not digitally
signed, this is not an issue; you can still continue.
Important: Make sure that the Print Spooler service is installed and running on the
Inbound Refinery computer before attempting to install a printer. If this service is not
installed and running, Microsoft Windows will not allow any printers to be installed.
PDF Converter Installation and Administration Guide 4-11
Installing PDF Converter

14. Enter IDC PDF Converter for the printer name. The IDC PDF Converter printer can
be set as your default printer, but it does not have to be. Click Next to continue.

15. Select the Do not share this printer radio button and click Next to continue.

16. Select the No radio button to not print a test page and click Next to continue.

17. Click Finish to install the printer. If you receive a message stating the printer has not passed Windows testing, click Yes/Continue Anyway to continue.

18. When the printer is installed, right-click on the IDC PDF Converter printer icon and
select Properties to display the printer properties window.

19. On the General tab, make sure the printer is named IDC PDF Converter.

20. On the Sharing tab, make sure the Not shared/Do not share this printer radio button is selected.

21. On the Ports tab, make sure that the selected port is c:\temp\idcoutput.ps, and that it is specified as a Local Port. If the port has not been added, complete the following steps to add the port (the port only needs to be added once; if it was added correctly during the installation of the printer, it does not need to be added again):
a. Click Add Port.
b. In the list of available printer ports, select Local Port, and click New Port.
c. Specify c:\temp\idcoutput.ps as the port name, and click OK. The c:\temp\
directory must exist, but the idcoutput.ps file will be created by PDF Converter.
d. Click Close to close the Printer Ports dialog.

22. On the Advanced tab, make sure the Print directly to the printer radio button is
selected.

23. Click Apply to save any changes.

24. Click OK to close the printer properties window.


Identify if there are some Linux libraries missing and required for IBR

1.       Navigate to <mw_home>/Oracle_ECM1/oit/linux/lib/contentaccess and run the following commands :
      ldd oitconverter > oitoutput.txt
ldd exsimple > exoutput.txt
ldd textexport > textoutput.txt

Create the link / copy all the missing 32-Bit libs in the following folder.
/home/applowct/Oracle/Middleware/Oracle_ECM1/oit/linux/lib/contentaccess
I.E

yum install zlib-1.2.3-27.el6.i686
cp libz.so.1 <path>/oracle/middleware/Oracle_ECM1/oit/linux/lib/contentaccess/
cp libz.so.1.2.3 <path>/oracle/middleware/Oracle_ECM1/oit/linux/lib/contentaccess/

compat-libstdc++-33-3.2.3-69.el6.i686.rpm
libX11-1.3-2.el6.i686.rpm
libXau-1.0.1-3.1.i386.rpm
libxcb-1.7-1.el6.i686.rpm
zlib-1.2.3-27.el6.i686.rpm


Enabled Components
1.ContentFolios
2.ContentTracker
3.ContentTrackerReports
4.DynamicConverter
5.DesktopIntegrationSuite
6.DesktopTag
7.EmailMetaData
8.FrameWorkFolders
9.AppAdapterCore
10.AppAdapterEBS
11.IPMRepository
12.AutoSuggestConfig
13.DynamicConverter
14.FrameWorkFolders

Oracle WebCenter Content Installation




Follow bellow steps to install oracle webcenter content on windows server.


1. Install JDK 1.7.0_26+

2. Install Oracle Date and dont forgot to change the character set
*. RCU Fails With Non-AL32UTF8 Character Set (Doc ID 1063712.1)

3. Install WebLogic 10.3.6. for WebCenter 11.1.8
java -D64 -jar wls1036_generic.jar
setup.exe -jreLoc

4. Setup Node manager
java weblogic.WLST
connect ('weblogic','<<password>>','t3://localhost:7001')
nmEnroll(domainDir='C:/Oracle/Middleware/user_projects/domains/webcenter',nmHome='C:/Oracle/Middleware/wlserver_10.3/common/nodemanager')

5. Create domain ( Middleware\oracle_common\common\bin\config.cmd  -log=webcente.log)

6. Install Visual C++ 2005 SP1 Redistributable Package (both x86 and x64) ( Doc ID 1322380.1)

7. Configure IBR add provider on RIDC port.

Verify WebCenter Content Installation


Follow these points to verify the installation and configuration of oracle webcenter content

1. Enable the Arabic component with Arabic Labels (If there is).

2. DIS installation on the clients

3. Disable unwanted fields.

4. Configure Framework Folders.

5. ADF UI and is it all functional properly? Users are tested and they are the same users and permissions in the Old UI.

6. Test the permissions component and notification component if documents are coming from Capture, or EBS (File system, Capture), etc...

7. User Access List and Group Access List, Is it installed?
You need to create a Security Group that uses the UAL and GAL which is: "Shared" and to create 4 different roles for this group: SharedViewer (R), SharedContributor (RW), SharedSubAdmin (RWD) and SharedAdmin (RWDA). and this security group has to be configured in the config.cfg to be a shared group.

8. You need to perform full testing of all installed components.

9. Checkin a document, checkout and update a document meta information.

10. Verify bellow components and install if there is missing.

ContentFolios
ContentTracker
ContentTrackerReports
DynamicConverter
FormEditor
ThreadedDiscussions
CIS_Helper
DBSearchContainsOpSupport
DesktopIntegrationSuite
FrameworkFolders
AppAdapterCore
AppAdapterEBS
IpmRepository
AutoSuggestConfig
DynamicConverter
FrameworkFolders


AWS EC2 - SSH locked with UFW

Need to update the instance's user data: 1. Stop the instance 2. Right click (windows) or ctrl + click (Mac) on the instance to open a c...