Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

mount ufs on linux...

807559Jan 24 2007 — edited Jan 25 2007
you may think this problem is more related to Linux forum.. but i feel this is right place for this..

i have solaris 10 and Fedora core 6..
i'm currently in FC 6.
trying to mount ufs partition of solaris on linux..

[root@localhost ]# uname -a
Linux localhost.localdomain 2.6.18-1.2798.fc6 #1 SMP Mon Oct 16 14:37:32 EDT 2006 i686 i686 i386 GNU/Linux

[root@localhost ]# fdisk -l

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 2 12096 be Solaris boot
Partition 1 does not end on cylinder boundary.
/dev/sda2 2 2552 20480544 bf Solaris
/dev/sda3 2553 2564 96390 83 Linux
/dev/sda4 2565 9729 57552862+ 5 Extended
/dev/sda5 2565 9729 57552831 8e Linux LVM

i tried mount

mount -t ufs -o -r -o ufstype=sunx86 /dev/sda2 /mnt/b/
mount: wrong fs type, bad option, bad superblock on /dev/sda2,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

dmesg | tail -5
ufs was compiled with read-only support, can't be mounted as read-write



please suggest some thing..

Comments

Solomon Yakobson

You can find PLJSON package on GitHub.
SY.

User_RFKSX

Thank you very much!!
I'll try ...

Solomon Yakobson

Here is example:

SQL> select version from v$instance
  2  /

VERSION
-----------------
10.2.0.5.0

declare
    v_json json := json('{
                          "EMPLOYEE":[
                                      {"NAME":"CLARK","JOB":"MANAGER","SALARY":2450},
                                      {"NAME":"KING","JOB":"PRESIDENT","SALARY":5000},
                                      {"NAME":"MILLER","JOB":"CLERK","SALARY":1300}
                                     ]
                         }'
                       );
    v_xml xmltype;
begin
    v_xml := json_xml.json_to_xml(v_json,'EMPLOYEES');
    dbms_output.put_line(dbms_xmlgen.convert(v_xml.getclobval(),1));
end;
/
<?xml
version="1.0"?><EMPLOYEES><EMPLOYEE><NAME>"CLARK"</NAME><JOB>"MANAGER"</JOB><SAL
ARY>2450</SALARY></EMPLOYEE><EMPLOYEE><NAME>"KING"</NAME><JOB>"PRESIDENT"</JOB><
SALARY>5000</SALARY></EMPLOYEE><EMPLOYEE><NAME>"MILLER"</NAME><JOB>"CLERK"</JOB>
<SALARY>1300</SALARY></EMPLOYEE></EMPLOYEES>

PL/SQL procedure successfully completed.

SQL>

SY.

1 - 3
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Feb 22 2007
Added on Jan 24 2007
1 comment
266 views