Is forceUpdateToVersionField only for Root UoW?

Dear all,
We would like force update to the version field when it's privately owned object get changes. It is our developed function.
public static void addOrUpdateObject(Session session, Object obj) {
     session.removeFromIdentityMap(obj);
     Object objFromDB = getObjectByOid(session, obj); // read the object from database.
     UnitOfWork uow = session.acquireUnitOfWork();
     uow.registerObject(objFromDB); // register the object retreived from DB.
     // merge the changes from pObj.
     Object pObjClone = uow.mergeCloneWithReferences(obj);
     // force to update version field only when pObj has been changed.
     uow.forceUpdateToVersionField(pObjClone,uow.hasChanges());
     uow.commit();
And we want to extend the function for multiple object as following.
public static void addOrUpdateObject(Session session, List objList) {
     List objListFromDB = new ArrayList();
     for (int i=0; i<objList.size(); i++) {
          Object obj = objList.get(i);
          session.removeFromIdentityMap(obj);
          objListFromDB.add(getObjectByOid(session, obj.getClass(), obj.getOid()));
     UnitOfWork uow = session.acquireUnitOfWork(); // acquire the unit of work.
     for (int i=0; i<objList.size(); i++){
          UnitOfWork subUoW = uow.acquireUnitOfWork();
          subUoW.registerObject(objListFromDB.get(i)); // register the object retreived from DB.
          // merge the changes from obj.
          Object objClone = subUoW.mergeCloneWithReferences(objList.get(i));
          // force to update version field only when obj has been changed.
          uow.forceUpdateToVersionField(objClone,subUoW.getChanges().hasChanges());
          subUoW.commit();
     uow.commit();
However, we found the verion field is not updated. Is it because we only can apply forceUpdateToVersionField() to only root UoW?
Thanks and regards,
William

First I would recommend against removing objects from the identity map (cache) as this will result in objects in memory not referencing the correct instances of objects. If it is an absolute requirement then be sure you are removing the entire object tree that that object is a member of.
Currently the forceUpdateToVersionField is only available on the root UnitOfWork. I have entered a change request to have this functionality moved to nested UnitOfWorks as well.
--Gordon

Similar Messages

  • Applications only for root are displayed even with user login

    I am using MBP Pro with OSx 10.7.3. I use admin account. Recently I enabled root account and then disabled it back again. Since then I am seeing applications only for root and not for admin even with admin login. If I go to /Users/<admin username>/Library/Preferences, I can see that the applications has relevant files over there. When I looked more carefully I observed that, I am able to see the applications installed for the root only and not for the admin user. Is there any way to corrrect this?

    This particular discussion group is for Classic Mac OS.  Your question would be better suited in the OS X Lion group (https://discussions.apple.com/community/mac_os/mac_os_x_v10.7_lion).

  • Android and mtp - only for root

    I''m trying to access my Android tablet via usb cable. I read the wiki page on mtp and I tried mtpfs, go-mtpfs and simple-mtpfs.
    Each time I have the same problem, it doesn't work as user, only as root. As user mtp-detect doesn't find anything. As root simple-mtpfs works ok.
    I uncommented user_allow_other in /etc/fuse.conf and added myself in fuse group (that didn't exist) as archwiki suggested.
    Any idea what's the problem?
    Thanks!

    FWIW, if you are trying to transfer files between your android device and computer, I have found that using some kind of network file service on your computer works great.  So I have a file server that runs a samba service (for my family), ssh/sftp (for me), and nfs4 (also for me).  Unfortunately, I have not found a decent nfs application for android.  But using either samba/smb or sftp seems to work great over my LAN.  Then it can all be handles wirelessly as well. 
    I have noticed that there are quite a few file manager applications for android that also include clients for sftp, ftp, smb, and some of the online syncing services (like dropbox).  So I use my file manager application, which I think is called Solid File Manager.  Of course, you could also use bittorrent sync to handle this as well, though on my device it seems to eat away at the battery rather quickly.

  • Webconsole - menu only for root

    Hi,
    I can only log into my webconsole with root. If I use another user the webconsole permits to log in but no applications (ZFS, Sun Cluster, ...) are available.
    Solaris 10 u6 (Generic_138888-03)
    Sun CLuster 3.2 u2
    Regards,
    MIke

    Some applications only allow you to administer if you log in as root. It all depends on the application itself. Check the document of the ones you feel you can log in as a non-root user.

  • Java for root only?

    i installed java and i'm running one java chat. it works fine. the problem is that java is available for root user only. when i login as a normal user I get java: command not found.
    [root@ainars /root]# which java
    /usr/java/j2re1.4.0/bin/java
    [root@xxx ok]# java -version
    java version "1.4.0"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92)
    Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode)
    [ainars@ainars ainars]$ java -version
    bash: java: command not found
    Does anyone know hot to enable java for users so that they can install chats and other things in their directories?
    I use Ensim software on my server and it runs a chroot'd enviroment for shell users.

    (1)
    Try as the non-root user to see whether you have execute permission:
    /usr/java/j2re1.4.0/bin/java -version
    Confer also:
    ls -l /usr/java/j2re1.4.0/bin/java
    (2)
    Set your PATH to include /usr/java/j2re1.4.0/
    E.G.
    put this to the end of your .profile
    PATH=$PATH:/usr/java/j2re1.4.0/bin

  • How to change the background color only for one HTML-Portlet?

    Hi all,
    I have created a HTML-Portlet in my root-page. The root page have a style: Main-Style.
    I want to change the background-color only for this one HTML-Portlet:
    <html>
    <header><title>Test</title></header>
    <body bgcolor="#999999">
    Test
    </body>
    </html>
    But this does not work...
    When I use the CSS, then it will change the background-color for the root-page too.
    Thans
    Leonid Pavlov

    could you try this
    <table bgcolor="#999999">
    <tr>
    <td>
    test
    </td>
    </tr>
    </table>
    I don't think you need <html><header><title>Test</title></header>
    <body></body></html> for your HTML-Portlet.

  • Howto make created folders/ files from one teacher, read only for other teachers?

    Hello there,
    as an admin @ school I was wondering how to make created folders/ files from one teacher, read only for other teachers?
     - In a 2008domain, created a group "teachers"
     - created a folder "teacher data" where all teachers have read/write permissions
    ideal,a teacher who make's a folder in "teacher data" should be the only oen who is able to add file's to that folder and dele that folder or files. Other teachers may be able to read the content of the folder.
    Is this possible to set up and how?
    many thanks.
    Nico.
    rds

    Hi Nico,
    You could set the permissions below to resolve the issue:
    For the root folder "teacher data": give the full control permission to CREATOR OWNER – "Subfolders and files only" and give the read/write permissions to the group "teachers"– "This folder only".
    Best Regards,
    Mandy 
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Window Server communications from outside of session allowed for root

    Hi ,
    When I am running the following program, i got the exception as
    49:wasp.corp.apple.com_kevinli:/ngs/app/giat/src/java/chart> java MyFrame
    kCGErrorRangeCheck : Window Server communications from outside of session allowed for root and console user only
    Exception in thread "main" java.lang.InternalError: Can't connect to window server - not enough permissions.
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1586)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1503)
    at java.lang.Runtime.loadLibrary0(Runtime.java:788)
    at java.lang.System.loadLibrary(System.java:834)
    at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.awt.NativeLibLoader.loadLibraries(NativeLibLoader.java:38)
    at sun.awt.DebugHelper.<clinit>(DebugHelper.java:29)
    at java.awt.Component.<clinit>(Component.java:506)
    at MyFrame.<clinit>(MyFrame.java:6)
    import java.awt.*;
    import javax.swing.*;
    public class MyFrame
    public static JFrame f = new JFrame();
    public static void main(String[] args)
    JFrame.setDefaultLookAndFeelDecorated(true);
    f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    //Add the ubiquitous "Hello World" label.
    JLabel label = new JLabel("Hello World");
    f.getContentPane().add(label);
    //Display the window.
    f.pack();
    f.setVisible(true);
    Please send a reply on this.
    with regards,
    Mohan

    Seth,
    you may also install the latest update (10.4.6) using the combo file from apple.com.
    Mihalis.
    Dual G5 @ 2GHz   Mac OS X (10.4.6)  

  • All USB drives mount as read only for user

    I have searched a bunch and thee results I find seem to be irrelevant to my situation. Most relate to a single USB media that is a problem and won't read or write.
    On a new Arch install on a new computer (my third base system install). Running Gnome.
    All USB mass storage devices mount as read only for the logged in user. Root has write permissions and I can mkdir no problem. It is not an issue with the USB drive itself as this occurs with multiple USB media (I've tested several SD cards on a reader and at least two drives, all the media works correctly on my existing installations)
    I'm posting the contents of my /etc/group file in case there's an obvious error there I don't see, and my dmesg output upon plugging in the drive. User name is changed in the group file posted to "archie"
    This is a single-user system.
    /ect/group
    root:x:0:root
    bin:x:1:root,bin,daemon
    daemon:x:2:root,bin,daemon
    sys:x:3:root,bin
    adm:x:4:root,daemon
    tty:x:5:
    disk:x:6:root
    lp:x:7:daemon
    mem:x:8:
    kmem:x:9:
    wheel:x:10:root,archie
    ftp:x:11:
    mail:x:12:
    uucp:x:14:archie
    log:x:19:root
    utmp:x:20:
    locate:x:21:
    rfkill:x:24:
    smmsp:x:25:
    http:x:33:
    games:x:50:
    lock:x:54:
    uuidd:x:68:
    dbus:x:81:
    network:x:90:
    video:x:91:
    audio:x:92:
    optical:x:93:
    floppy:x:94:
    storage:x:95:
    scanner:x:96:
    power:x:98:
    nobody:x:99:
    users:x:100:archie
    systemd-journal:x:190:
    archie:x:1000:
    avahi:x:84:
    polkitd:x:102:
    rtkit:x:133:
    gdm:x:120:
    brlapi:x:999:
    kvm:x:78:
    ntp:x:87:archie
    dmesg output
    [ 968.044188] usb 4-3: new high-speed USB device number 4 using ehci-pci
    [ 968.170628] usb-storage 4-3:1.0: USB Mass Storage device detected
    [ 968.171435] scsi7 : usb-storage 4-3:1.0
    [ 969.174450] scsi 7:0:0:0: Direct-Access Generic USB SD Reader 1.00 PQ: 0 ANSI: 0
    [ 969.175068] scsi 7:0:0:1: Direct-Access Generic USB MS Reader 1.03 PQ: 0 ANSI: 0
    [ 969.939417] sd 7:0:0:0: [sdb] 15572992 512-byte logical blocks: (7.97 GB/7.42 GiB)
    [ 969.941028] sd 7:0:0:0: [sdb] Write Protect is off
    [ 969.941037] sd 7:0:0:0: [sdb] Mode Sense: 03 00 00 00
    [ 969.944664] sd 7:0:0:1: [sdc] Attached SCSI removable disk
    [ 969.945509] sd 7:0:0:0: [sdb] No Caching mode page found
    [ 969.945517] sd 7:0:0:0: [sdb] Assuming drive cache: write through
    [ 969.952682] sd 7:0:0:0: [sdb] No Caching mode page found
    [ 969.952693] sd 7:0:0:0: [sdb] Assuming drive cache: write through
    [ 969.956396] sdb: sdb1
    [ 969.965003] sd 7:0:0:0: [sdb] No Caching mode page found
    [ 969.965011] sd 7:0:0:0: [sdb] Assuming drive cache: write through
    [ 969.965015] sd 7:0:0:0: [sdb] Attached SCSI removable disk
    I'm sure I'm just missing something in user management, but I can't find what.
    Last edited by hooya (2014-04-27 03:10:49)

    I am also having the same problem. Root can read and write to automounted drives, but my user cannot. I've tried with a variety of drives, I am assuming they are being automounted by root instead of the logged-in user somehow. (I am running x directly, and am not using a display manager, if that has anything to do with it).
    When I look at how it is mounted it is as follows:
    /dev/sdc1 on /run/media/myuser/drivename type vfat (rw,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0022,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2)

  • "Always Open In..." View Options for Root Level of a Disk Image File

    I ran into a problem/bug tonight that I can't find listed anywhere and was wondering if anyone else has encountered it. I am using Snow Leopard (now 10.6.1), upgraded from the last revision of Leopard.
    I create DVD-R sized disk images with Disk Utility (using "Mac OS Extended" only w/o Journaling) for saving downloaded files. Because of the number of files on this disk, I create single-letter folders (for alphabetical filing) and set up these disk images to "Always Open In List View". For the individual folders, I can set these to "Always Open In List View" without a problem. However, for the "root level" of these disk images, I can only access "Always Open In Icon View" no matter which view option is selected.
    For previously created disk images that were already set to "Always Open In List View", these show the previously set "List View" at the disk image "root level" as expected. But if I uncheck the box, it immediately goes to "Always Open In Icon View". And like before, no matter which view option is selected, I can never get back to "Always Open In List View". Note also that I can set this option as expected for "root levels" of real disks - this only seems to be a problem with the disk image files.
    I had no problems at all with this under Tiger or Leopard. I've only run into this now under Snow Leopard. The upgrade tonight to 10.6.1 hasn't seem to affect this problem.
    So should I be doing something differently now to get this option to reappear, a possible conflict with something on my computer or is this a bug with Snow Leopard? Can anyone else duplicate this issue?

    Additional info, in case anyone is running into this issue...
    If I do the following with the "root level" of the disk image, I can set the "Always Open in List View" option.
    1. Open the "root level" view of the disk image - for me, it always opens in icon view. Then, select "Show View Options" from the View menu.
    2. Check the "Always Open in Icon View" box. While leaving this dialog open, select "as List" from the View menu.
    3. Uncheck the "Always Open in Icon View" box. It will instantly turn into "Always Open In List View". Recheck this box immediately, then close dialog. This will make the setting stick.
    I've been able to repeat this situation several times. I might be wrong, but it sure acts like a small bug to me. Hope this helps anyone else who might have encountered this issue.

  • RAID-1 for root/swap on Solaris 10 x86

    OK, now that I have solved my problem with the update manager I am in the process of trying to create RAID-1 volumes for root and swap. I am working my way through the process by following the procedure in Solaris Volume Manager Administration Guide. I have run into a few errors in the doc, e.g. referent to using installboot as opposed to installgrub.
    Now I am trying to create my new volume using the Enhanced Storage tool within the Solaris Management Console. I get as far as trying to create the new volume (RAID-0) with the root slice in it but it fails with metainit telling me that the slice is already mounted on /. (No kidding -- that is the whole idea.)
    Does anyone have a working procedure to create RAID-1 for root and swap?
    (BTW, I am trying to do this from the doc and admin guides without stealing time from folks on the list here but I just keep running into walls.)
    (Once I get that done I hope to use zfs for the rest of the storage.)
    Brian
    Message was edited by: brian -- initial post was truncated.
    brian.lloyd

    I am attempting to set up RAID-1 (mirroring) for root and swap. I am attempting to work from "Solaris Volume Manager Administration Guide," Part No: 816�4520�12. (Same place you pointed me except I downloaded the pdf so I could page through it faster.) On page 105 you will find an entry for "Create a mirror from the root (/) filesystem," which directs you to page 122, "�x86: How to Create a RAID-1 Volume From the root (/) File System by Using DCA�.
    I have two identical 300GB PATA drives with 20GB root/boot and swap partitions. The slices are all identical as to size and location, i.e. c0d0s0 is root and c1d0s0 will be the mirror for root. (I will use "mirror drive" to refer to c1d0.
    Proceeding through the steps I have verified I can boot the mirror. I have created the slices. I have used fdisk to put the master boot block on the mirror drive. I have installed grub on the mirror drive.
    At this point I am on step six which reads:
    "Create a new RAID-0 volume on the slice from the previous step by using one of the following
    methods. Only the single slice can be included in the RAID-0 volume. " At that point I decided to try to proceed using the Enhanced Storage Tool from smc.
    As to RAID-0 vs. RAID-1, it is my understanding from the doc that one must first create the RAID-0 volumes, each containing just the single slice, one for each of the two volumes that will be combined to make the RAID-1 mirror, hence my comment about RAID-0.
    I see your point about using the -f option to force the creation of the volume for the mounted root filesystem. One would think that, if they included the option of using the Enhanced Storage Tool that perhaps it might work. (I did not see a way to force the creation of the RAID-0 volume.) Certainly using metainit with the -f flag makes sense.
    Next step will be to go back and punt EST in favor of using metainit from the command line.
    I get the feeling that no one at sun is actually trying what is in the manuals to ensure correctness.
    Brian

  • ERROR ITMS-9000: "META-INF/container.xml must contain one and only one root file reference."

    Hi all,
    After correcting a table-of-contents error in my .epub file, I am unable to upload it via iTunes Producer. It lists this error message:
    ERROR ITMS-9000: "META-INF/container.xml in 9780615431727.epub must contain one and only one root file reference." at Book (MZItmspBookPackage)
    The file has been verified and only has one root file reference in the container.xml file.
    Has anyone been able to find a solution to this problem?
    Thanks!

    Hello Forum Users…
    For those of you who have run into the upload roadblock, getting an error message similar to this:
    Package Summary:
    1 package(s) were not uploaded because they had problems:
              /Users/slm/Desktop/MUSIC to PICTURE for IBOOK/2012 MTP for iTUNES Bookstore/9780615600918.itmsp - Error Messages:
                        Apple's web service operation was not successful
                        Unable to authenticate the package: 9780615600918.itmsp
                        ERROR ITMS-9000: "OPS/ibooks.ncx(5): 'p50': fragment identifier is not defined in 'OPS/content9.xhtml'" at Book (MZItmspBookPackage)
    Following is a "specific" fix, but the idea of the fix will help you with your specifics too.
    I tried for 17 days to upload a book that looked and worked perfectly in iPAD via Preview.
    After many discussions with Apple, who to their credit stayed with me over 2-3 days, I decided to play a hunch.
    I went into a duplicated copy of the book and on every page, (because the error message was not telling the whole story), looked for what InDesign would call "Overset Text."
    Now... the "flaw" in iBOOK Author (hint) is that it won't advise you of this "overset text" as does InDesign.
    And to compound the matter, the exported ePUB document WORKS in iPAD Preview.
    See Screenshots from InDesign:
      Okay... Couldn't add it but it is a Warning Box that says there is overset text. (Characters which exceed the text box.)
    Nevertheless, I played this hunch, and sure enough found a few boxes with the + in them.  In other words I clicked on EVERY text holder and every text block in the entire document.
    Where I found + signs, I simply deleted some carriage returns from the iBOOK file... (please note… carriage returns and literally empty spaces that caused the overset text) and then erased all previous copies of the Music to Picture Book on my hard drive,  iTUNES and iPAD.
    The result?  A "text-book" upload with no snags!  As my Son would say… "Victory!"
    So, first make sure that you are using only PNGs, Jpegs and Movie files to iBook Specs.  Then... make sure there are no overset text boxes, which you must do manually.
    Enjoy & Godspeed!
    Steve
    Stephen Melillo, Composer
    STORMWORKS®
    209 Spinnaker Run
    Smithfield, VA 23430-5623
    USA
    v/f 757-356-1928
    stormworld.com
    “History is a vast early warning system.” Norman Cousins, editor and author (1915-1990)
    "This will be our reply to violence: to make music more intensely, more beautifully, more devotedly than ever before." Leonard Bernstein
    “If you have a chance to help someone, and you don’t, you are wasting your time on this earth.”  Roberto Clemente

  • 9i only for X.2 Server ?

    The documentation says that Oracle is only for OSX Server ... but can I install it on MacOS X Client ?

    Okay I don't want to risk being sued by Oracle so I'll explain what to do rather than provide any downloads. Follow the Release notes as far as making drectories go etc. I'm sure there are much smarter ways of doing this but then I'm a Mac user and not a very bright one at that.
    sudo su -
    mkdir /Users/orcale
    mkdir /Users/oracle/9iR2Now move the orahome directory into /Users/oracle/9iR2
    I think that some of the binaries reference this path so i don't think there's a choice (Thanks!!).
    Now rather than messing up your login screen etc add the oracle user by copy and pasting the following into a file, save it myscript.sh and chmod a+x it. To see the results you can use netinfo manager.
    You'll be prompted for a password. Oracle recommend using 'oracle' as the password.
    #!/bin/bash
    mkdir /Users/oracle
    niutil -create . /users/oracle
    niutil -createprop . /users/oracle uid 20
    niutil -createprop . /users/oracle name oracle
    niutil -createprop . /users/oracle realname "Oracle Service"
    niutil -createprop . /users/oracle gid 20
    niutil -createprop . /users/oracle shell /bin/bash
    niutil -createprop . /users/oracle change 0
    niutil -createprop . /users/oracle home /Users/oracle
    echo "enter password for Oracle"
    passwd oracle
    The set_grp script provided by oracle works just fine so use that to make the dba group (Good work guys).
    cd /User/oracle/9iR2/orahome/DBCreate/
    chmod a+x set_grp
    ./set_grpAgain you can check the results in netinfo manager.
    Now.. (make sure you're still root)
    cd /User
    chown -R oracle oracle/
    chgrp -R dba oracle/Now we need a script to start and stop the oracle service.
    mkdir /Library/StartUpItems/Oracle
    touch /Library/StartUpItems/Oracle/Oracle
    touch /Library/StartUpItems/Oracle/StartupParameters.plistand lets make a visible log directory
    mkdir /Library/Logs/Oraclepaste the following into /Library/StartUpItems/Oracle/Oracle
    #!/bin/sh
    . /etc/rc.common
    export ORACLE_HOME=/Users/oracle/9iR2/orahome
    export SRCHOME=$ORACLE_HOME
    export PATH=$ORACLE_HOME/bin:$PATH
    export ORACLE_SID=ab
    #Stuff from set_ulimit script provided by Oracle
    oracle ulimit -a
    ulimit -a
    ulimit -c unlimited
    ulimit -d unlimited
    ulimit -s 65536
    ulimit -u 1000
    ulimit -Hv
    ulimit -a
    echo "Setting up Resource Limits complete."
    export DYLD_LIBRARY_PATH=$S/lib:$S/rdbms/lib
    StartService ()
    if [ "${ORACLESERVICE:=-NO-}" = "-YES-" ]; then
         ConsoleMessage "Starting Oracle 9i Database"
         echo "DATE: " `date` > /Library/Logs/Oracle/oracle.log
         echo "Starting Oracle DB" >> /Library/Logs/Oracle/oracle.log
         env >> /Library/Logs/Oracle/oracle.log
         sudo -u oracle sqlplus "/ as sysdba" @$S/DBCreate/startdb.sql >> /Library/Logs/Oracle/oracle.log 2<&1
         sleep 10
         sudo -u oracle lsnrctl start >> /Library/Logs/Oracle/oracle.log 2>&1
         sleep 10
         sudo -u oracle sqlplus "/ as sysdba" @$S/DBCreate/startdb.sql >> /Library/Logs/Oracle/oracle.log 2>&1
         sleep 30
         sudo -u oracle lsnrctl status >> /Library/Logs/Oracle/oracle.log 2>&1
         sleep 10
         sudo -u oracle sqlplus system/manager @$S/DBCreate/checkdb.sql >> /Library/Logs/Oracle/oracle.log 2<&1
         sleep 10
         echo "ORACLE STARTED ON " `date` >> /Library/Logs/Oracle/oracle.log
         ConsoleMessage -S "OracleServer"
    fi
    StopService ()
         if [ "${ORACLESERVICE:=-NO-}" = "-YES-" ]; then
         ConsoleMessage "Stopping Oracle 9i Database"
         echo "Stopping Oracle DB" >> /Library/Logs/Oracle/oracle.log
         Stopping Oracle Listener
         sudo -u oracle lsnrctl stop >> /Library/Logs/Oracle/oracle.log 2>&1
         Stopping Oracle DB
         sudo -u oracle sqlplus "/ as sysdba" @$S/DBCreate/stopdb.sql >> /Library/Logs/Oracle/oracle.log 2>&1
         sleep 10
         echo "END DATE: " `date` >> /Library/Logs/Oracle/oracle.log
         ConsoleMessage -S "Oracle"
         fi
    RestartService ()
         StopService
         StartService
    RunService "$1"
    And this into /Library/StartUpItems/Oracle/StartupParameters.plist
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
         <key>Description</key>
         <string>Oracle Service</string>
         <key>Messages</key>
         <dict>
              <key>start</key>
              <string>Starting Oracle9i.</string>
              <key>stop</key>
              <string>Stopping Oracle9i.</string>
         </dict>
         <key>OrderPreference</key>
         <string>Last</string>
         <key>Provides</key>
         <array>
              <string>Oracle</string>
         </array>
         <key>Uses</key>
         <array>
              <string>IPServices</string>
              <string>AuthServer</string>
              <string>NetworkExtensions</string>
              <string>Network Time</string>
              <string>Core Services</string>
              <string>BIND</string>
              <string>Cron</string>
              <string>Resolver</string>
              <string>NFS</string>
              <string>SecurityServer</string>
         </array>
    </dict>
    </plist>
    Now edit /etc/hostconfig to include the ORACLESERVICE
    ORACLESERVICE=-YES-
    Restart you machine or type
    sudo /Library/StartupItems/Oracle/Oracle startHope fully you'll have an oracle service.
    ===Getin the webapp running===
    I'm assuming you know how to set tomcat up .
    Ignore the nonesense and the stuff oracle provide you just need the oradev directory in DBCreate. I'm using tomcat 4.0.3 in case its an issue.
    As root (i think at least (if sqlplus prompts for login then try as oracle (su - oracle)
    cd /User/oracle/9iR2/orahome/DBCreate/oradev/ptssql/
    ./setschema.sh abmactcpset the orapts.jar file in your classpath
    tcsh
    setenv CLASSPATH $TOMCAT_HOME/webapps/oradev/classes/orapts.jarCopy oradev to your webapps directory.
    edit server.xml
    From:
    <Context path="" docBase="ROOT" debug="0"/>
    To:
    <Context path="" docBase="oradev" debug="0"/>
    Start tomcat and request using a web browser
    http://127.0.0.1:8080/pts/login.jsp
    hit submit and hopefully it runs..
    I also had to do a multiple find and replace of the image paths on the jsp files to get the images served.
    replaced
    from
    /oradev/pts/images
    to
    /pts/images
    mail me if it works or not (no abuse please)
    [email protected]

  • IBook is not starting up - "still waiting for root device"

    The 600 MHz / 640 MB / 20 GB iBook did not want to wake up and after forced shutdown would not start up. grey screen. With MacOS X CD - "prohibition sign", MacOs 9 - no start at all
    I had 2 partitions on the HD one with Tiger and other with 9.2.2 - none of them appear in the list of startUp folders. would not go into the Target mode.
    I know there are few threads here with similar problem - I went through them but nothing of the suggestions would help.
    Did reset the PRAM (only once though) - when I still heard the startUp chime
    Did reset PMU
    Left the machine unplugged for about 12 hours
    Now I managed to get into single user mode while attempting to start up from a Tiger DVD. Here is what I see on the screen:
    "using 1638 buffer headers and 1638 cluster IO headers
    Extension "com.apple.driver.AppleTexas2Audio" has no kernel dependency.
    (then there are 14 extensions listed that has no kernel dependency)
    Firewire (OHCI) Apple ID 30 built-in now active, GUID 000393ff fe6ce976; max speed s400.
    ADB present: 8c
    ApplePMU: CLOCK RESET! PMU WAS PROBABLY RESET SOMEHOW!!
    Security auditing service present
    BSM auditing present
    disabled
    rooting via boot-uuid from / chosen: 7FF85 (a lot of symbols)
    Waiting on <dict ID="0"><key>IOProviderClass</key><string ID="1"><IOResources</string><key>IOResourceMatch</key><string ID="2">boot-uuid-media</string></dict>
    Still waiting for root device
    still waiting for root device
    and so on with "still waiting..." again and again
    also I did not hear start up sound anymore. Yesterday it was still audible.... can someone please help?!
    iBook dual USB   Mac OS X (10.4.5)  

    thanx for replying. Last night I finally managed to start up the machine using a FireWire ext HD as a StartUp Disk. Disk Utility and TechTool Pro and Disk Warrior are not showing the internal HD at all.
    Since I was not able to use any start CDs including original MacOs X and 9 Cds maybe it is a problem with Data Cable that connects both HD and optical drive with logic board? It is hard to imagine why it would come to something like that. Overheat? I did not have enough free space on Tiger partition - 1GB. Maybe that. I am starting to look for a replacement HD....
    iBook dual USB   Mac OS X (10.4.5)  

  • Finder only shows root folders, no folders or files within those

    2010 Mac mini. For some reason, Finder now only shows root folders such as Music, Library, Movies, Pictures, Downloads, Documents, etc.
    But when I open those folders, there is nothing contained INSIDE them. They appear empty.
    I know there ARE files and folders inside of these, but for some reason they do not show.
    I can navigate to these files via Terminal without issue.
    Where did all my folders and files go in Finder and why are they not showing?
    FYI, Finder shows a spinning wheel of dashes in the bottom right constantly.

    I diagnosed the problem to using autofs. I have edited my /etc/fstab file to have a couple of afp entries, but when these shares are not available, it hangs the Finder on the computer the Mac mini. Why is this? I thought the whole reason to use autofs and the fstab file was to automount shares WHEN AVAILABLE.
    Any insight to this behavior of autofs?

Maybe you are looking for

  • How do i move a file from one external drive to another

    This is my first Mac computer and I have no idea how to move/copy a file from one external hard drive to another? It won't let me drag and drop from one Finder window to another and there is no copy/paste option on the left mouse click.

  • Filling in the blanks on a downloaded .pdf file using Acrobat Pro 5.1

    I've downloaded a form and need to fill it out and submit it online. I have Adobe Acrobat Professional 5.1. For the life of me, I can't figure out how to do it. The document has no security settings. Can someone please help? I'd sure appreciate it.

  • Problem create executable

    Hello.    I have a problem.    I have made a program that it reads the latitude, the longitude and the height and it transforms it in coordinated (x,y) utm. It works me correctly in Labview 7.1    The problem és that with Modul of pda it doesn't work

  • Should've asked this the first day the trade promo was going on but....

    Question: In the verbiage for the PS4 trade and save promo you have going on now the headline for the promo on the PS4 page says you get $175 in GIFT CARDS. But in the fine print it says you get a 'minimum $100 gift card' an a $75 coupon towards a PS

  • Publisher - PDF - Printing Issues

    Hi - I am using MS Publisher then converting to pdf. My client is taking the pdf to her printer but the document is printing with a white border which is uneven. Is there any way to prevent this border or to "bleed" all the way to the edge of the doc