• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

How Do You Read the JMS File Store .DAT file

by admin

Usually, the JMS file store created will be with .DAT extension and is not in human readable format. You will have to use the weblogic.store.Admin utility to extract the content of file store into an XML file to read it.

Follow the steps outlined below and ensure managed servers are stopped before proceeding.

1. Run the setDomainEnv.sh script.

2. Go to the directory of the JMS File Store location and type this command to display the store admin prompt.

java weblogic.store.Admin

3. Once logged into the WebLogic store admin prompt, use this command to open the JMS File store.

openfile -store <JMSFileStoreName>

4. Once file store is open use the next command to dump the content of the file store. This command will dump the output of file store into specified <filename>.xml file in location from where you launched store admin utility.

dump -store <JMSFileStoreName> -out <filename> -conn -deep

5. Close the file store.

close -store <JMSFileStoreName>

6. Run the quit command to exit from store admin utility.

quit

You can open the XML file to read the content of JMS File store.

Note: You can type help at the store admin prompt for getting a list of commands that can be executed.

Below is an example file snippet of generated dump XML file.

<PersistentStore Name="JMSFILESTR" Open="true">
<IOLayer>
<FileStore Directory="." WritePolicy="Cache-Flush" BlockSize="452" SupportOSDirectIO="true" HeapVersion="2"></FileStore>
</IOLayer>
<Statistics>
<NumObjects>2034</NumObjects>
<Creates>0</Creates>
<Reads>0</Reads>
<Updates>0</Updates>
<Deletes>0</Deletes>
..
</Statistics> 
<Records> 
<Record TypeCode="3" SlotNum="0" HandleNum="15367929857" FileNum="0" BlockNum="916" NumBlocks="1"> 
<RecordContents> 0: 0001 0000 0101 0000 0000 0000 0001 0000 ................ 
16: 0000 0000 0fd2 0000 0000 0005 0801 0000 ................ 
32: 0000 0000 0fd3 0000 0000 0000 0004 7fff ................ 
48: ffff 000a 1e04 0204 0000 0000 0c00 0001 ................ 
64: 2ee5 f204 2a00 0000 0000 00c7 7303 0182 ....*.......s... 
80: 0000 0004 7465 7374 ....test 
</RecordContents> 
</Record> 
<Record TypeCode="3" SlotNum="1" HandleNum="8472494081" FileNum="0" BlockNum="505" NumBlocks="1"> 
<RecordContents> 0: 0001 0000 0101 0000 0000 0000 0001 0000 ................ 
16: 0000 0000 0fcd 0000 0000 0005 0801 0000 ................ 
32: 0000 0000 0fce 0000 0000 0000 0004 7fff ................ 
48: ffff 000a 1e04 0204 0000 0000 0c00 0001 ................ 
64: 2ee5 f202 e500 0000 0000 00c7 7303 0182 ............s... 
80: 0000 0004 7465 7374 ....test 
</RecordContents>

Filed Under: oracle, WebLogic

Some more articles you might also be interested in …

  1. How to Start/Stop/Relocate SCAN listener in Oracle 11gR2 RAC
  2. How to Use DBMS_METADATA To Get The DDL For Objects
  3. List of Operating System Processes Started by the OMS
  4. FATAL: Error inserting rds_rdma
  5. How to Optimize a Data Guard Configuration
  6. Stored Procedures and Functions in PL/SQL
  7. Oracle Database 18c: Roll Forward Physical Standby Using RMAN Incremental Backup in Single Command
  8. How to Roll Forward a standby database using RMAN incremental backup in 11g
  9. Unable to export realm protected table using data pump
  10. How To Catalog Backups / Archivelogs / Datafile Copies / Controlfile Copies in Oracle Database

You May Also Like

Primary Sidebar

Recent Posts

  • diffstat: Create a histogram from the output of the diff command
  • diffoscope: Compare files, archives, and directories
  • diff-pdf: Tool for comparing two PDFs
  • dict: Command line dictionary using the DICT protocol

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright