Multiple local storage repositories in a standalone Oracle VM Server

Hi, I have a server with two disk volumes created: RAID1(/dev/sdb3) and RAID10(/dev/sda1)
In the RAID1 volume was installed the Oracle VM Server 2.2.1.
The rest of the RAID1 volume is available in the /OVS storage repository structure.
Then I setting up a second storage repository using the space of the RAID10 volume.
Steps:
# mkfs.ext3 /dev/sda1
# /opt/ovs-agent-2.3/utils/repos.py --new /dev/sda1
# /opt/ovs-agent-2.3/utils/repos.py -i
# /opt/ovs-agent-2.3/utils/repos.py -l
[   ] 25bfdcda-bad1-4836-ad72-d6204e56befb => /dev/sda1 -- RAID 10
[ * ] b8ea3f06-10f4-4ea3-8fd9-0295ac6d46b4 => /dev/sdb3 -- RAID 1
Finally I setup the fstab file to mount the RAID10 volume in boot-time in the /raid10 directory
Reboot the server
In the /raid10 directory I see the same directories names than the RAID1(/OVS) volume.
Are these steps correct?
When a new virtual machine is created with the Oracle VM Manager, how can I select the storage repository for this machine?
Thanks in advance

Hi,
yes this is correct.
Internally the ovs-agent will use the /var/ovs/mount/<ID> folders (you can check that with df -k) and not the /OVS directly.
You do not have a chance in the current version to choose the repository. The ovs-agent will simply take the repository where there is the most free space.
However after creating the VMs, you always (if shutdown) can simply move the contents of the folders (e.g. running_pool/name) to the other pool, and ovs-agent will automatically find the corresponding images (and update the configuration), when you start the VM.
Regards
Sebastian

Similar Messages

  • Problem with local apache w/php connect to oracle 9i server

    Is any way to connect to oracle 9i server listening on default port 1521 at any host using local apache w/php on windows xp...
    I've already installed all dlls oci drivers...
    but it seems doesn't work...I don't know how to make connection from php to oracle db...
    any suggestions and help?
    thx in advance
    btw I'm using client appliation to connecti witth that oracle db and it work fine..

    Lucas Mierzwa what error are you getting when you try to connect. Am using PHP 4.x on w2k and oracle 10g and Appach server and all work fine. I also run mysql and and IIS all on thesame local machine. They are all functioning fine. I can help you if i know what the problem is.

  • How to get standalone Oracle HTTP Server with mod_plsql?

    Hi,
    I do not know if it is just me but it seems to be a nightmare to get OHS with mod_plsql from the official OTN download site. I downoaded the companion CD for Windows - 3 disks, installed OHS - no mod_plsql. Then I tried to find any clue on OTN on how to download mod_plsql - none. Plenty of information on how to configure it and use it, but nothing on how to get it.
    PLSQL gateways is not an option for us because many of our clients do not allow direct communication between the database and the Internet.
    Windows 2003 Server R2
    Apex 3.2.1
    RDBMS 10.2.0.4
    Any help appreciated,
    WK
    PS.
    I would not like to download the software from unofficial sites but rather get it straight from Oracle.

    Hi,
    For those interested: I found Oracle HTTP Server with mod_plsql on OTN -> downloads -> middleware -> WebCenter suite.
    WK

  • Configuring Standalone Oracle HTTP server (1.3) with  Mid tier (10.1.2)

    Hai All,
    We have installed OHS 1.3 in DMZ and we have 10.1.2 midtier installed with B2B server in Firewall.
    I have modified mod_oc4j.conf of standalone OHS with following content to route the requests to midtier
    Oc4jMount /b2b/* instance://ap6003idmz.oracle.com:AS_10gR2_MID:OC4J_B2B
    I restarted OHS and I tried http://ap6001eip.oracle.com:7777/b2b/transportServlet on standalone OHS but no use then I removed above line and added below line
    Oc4jMount /b2b/* ajp13://ap6003idmz.us.oracle.com:12502
    Restarted OHS abd tried above url but no use
    b2b/transportServlet is a servlet deployed on midtier
    What else do I need to route the requests from OHS to OC4J on midtier
    Any suggestions..?
    Thanks

    my Apache logs:
    [Thu May 31 06:04:42 2007] [debug] mod_plsql: Cache cleanup has not reached the time period for cleaning yet minutes 1015 left
    [Thu May 31 06:04:50 2007] [error] [client 10.176.195.74] [ecid: 1180616501:141.146.13.203:5622:0:17,0] (110)Connection timed out: MOD_OC4J_0085: connect() returns: -1.
    [Thu May 31 06:04:50 2007] [error] [client 10.176.195.74] [ecid: 1180616501:141.146.13.203:5622:0:17,0] (110)Connection timed out: MOD_OC4J_0088: connect() returns error: -1.
    [Thu May 31 06:04:50 2007] [error] [client 10.176.195.74] [ecid: 1180616501:141.146.13.203:5622:0:17,0] (110)Connection timed out: MOD_OC4J_0051: Tried 1 times and failed to connect to oc4j with worker: ajp13://ap6003idmz.us.oracle.com:12501.
    [Thu May 31 06:04:50 2007] [error] [client 10.176.195.74] [ecid: 1180616501:141.146.13.203:5622:0:17,0] MOD_OC4J_0030: Failed to connect an oc4j process. This request is recoverable.
    [Thu May 31 06:04:50 2007] [error] [client 10.176.195.74] [ecid: 1180616501:141.146.13.203:5622:0:17,0] MOD_OC4J_0026: Failed to marshal a request to ajp13 message headers or send them to the web container.
    [Thu May 31 06:04:50 2007] [error] [client 10.176.195.74] [ecid: 1180616501:141.146.13.203:5622:0:17,0] MOD_OC4J_0013: Failed to call destination: ajp13://ap6003idmz.us.oracle.com:12501's service() to service the request.
    [Thu May 31 06:04:55 2007] [debug] mod_plsql: Starting cleanup (id=162d)
    [Thu May 31 06:04:55 2007] [debug] mod_plsql: Starting session cleanup with 15 maxmarks

  • Accessing Local Interface EJB from Web Container Oracle App Server 9.0.4

    Hi,
    I am developing a struts based small application, which calls a EJB which uses Local Interface from Struts ActionClass.
    I am getting NameNotFoundException. The exact exception is s mentioned below.
    05/03/29 16:15:49 javax.naming.NameNotFoundException: LoginRSL not found
    The deployment descriptors are as mentioned below.
    =============
    ejb-jar.xml
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
    <ejb-jar>
    <enterprise-beans>
    <session>
    <description>Session Bean ( Stateless )</description>
    <display-name>LoginRSL</display-name>
    <ejb-name>LoginRSL</ejb-name>
    <local-home>loginApp.model.LoginRHome</local-home>
    <local>loginApp.model.LoginL</local>
    <ejb-class>loginApp.model.LoginRSL</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Container</transaction-type>
    </session>
    </enterprise-beans>
    <relationships/>
    <assembly-descriptor>
    <container-transaction>
    <method>
    <ejb-name>LoginRSL</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Required</trans-attribute>
    </container-transaction>
    </assembly-descriptor>
    </ejb-jar>
    orion-ejb-jar.xml
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <!DOCTYPE orion-ejb-jar PUBLIC "-//Evermind//DTD Enterprise JavaBeans 1.1 runtime//EN" "http://xmlns.oracle.com/ias/dtds/orion-ejb-jar.dtd">
    <orion-ejb-jar>
    <enterprise-beans>
    <session-deployment name="LoginRSL"/>
    </enterprise-beans>
    </orion-ejb-jar>
    I also tried adding following code to web.xml
    web.xml
    <ejb-local-ref>
    <ejb-ref-name>LoginRSL</ejb-ref-name>
    <ejb-ref-type>Session</ejb-ref-type>
    <local-home>LoginRHome</local-home>
    <local>LoginL</local>
    <ejb-link>LoginRSL</ejb-link>
    </ejb-local-ref>
    It is quite evident that it is not able to lookup the JNDI name.
    Can someone throw light on this? If someone has working sample of this, can you mail it to [email protected]?

    Nipun,
    WebLogic and OC4J are not the same thing. That's like saying Oracle and SQL Server are the same thing -- or C++ and Java are the same thing.
    I recall a posting to a forum (don't remember if it was this one), where the poster was complaining that some feature of the application server he had previously used, was not supported by OC4J. Turned out that the feature he was referring to, contradicted the J2EE specification -- which is why it wasn't available in OC4J. In other words, he didn't like the fact that OC4J was more compliant with the J2EE specification than his "other" application server. Go figure!
    So, if you haven't already done so, I suggest you verify that this feature of WebLogic is something that complies with the J2EE specifications -- before expecting OC4J to support the same feature.
    And if it's not clear, from the specifications, then every vendor is free to implement this feature (or not).
    So if it turns out that WebLogic is a more appropriate application server for you -- then why not just stick with it (and forget the others)?
    Good Luck,
    Avi.

  • Oracle http Server (standalone)

    I am going to install APEX 3.2 and as the pre-requisite, I need to install standalone Oracle HTTP server. In checking thru the Oracle web-site, it only appears under the integrated Oracle SOA Suite 10g.
    I have checked that some of the old version of APEX 2.2 just in need of standalone Oracle HTTP server. But for the sake of the pre-requisite of APEX 3.2, it is Oracle Application Server 10g.
    My questions are:-
    - Is there any standalone Oracle HTTP server to be downloaded and installed?
    - Any installation guide for Oracle HTTP server or Oracle SOA Suite 10g?
    - In the installation of Oracle SOA Suite 10g, can it be extracted with installing Oracle HTTP server or it has to install all the components of SOA Suite?
    Thanks for sharing your experience.
    Edited by: user9197403 on 23/02/2010 21:07

    [http://download.oracle.com/docs/cd/E14373_01/install.32/e13366/otn_install.htm#BHAGICFJ] > >
    I am going to install APEX 3.2 and as the pre-requisite, I need to install standalone Oracle HTTP server. In checking thru the Oracle web-site, it only appears under the integrated Oracle SOA Suite 10g.
    I have checked that some of the old version of APEX 2.2 just in need of standalone Oracle HTTP server. But for the sake of the pre-requisite of APEX 3.2, it is Oracle Application Server 10g.
    My questions are:-
    - Is there any standalone Oracle HTTP server to be downloaded and installed?
    - Any installation guide for Oracle HTTP server or Oracle SOA Suite 10g?
    - In the installation of Oracle SOA Suite 10g, can it be extracted with installing Oracle HTTP server or it has to install all the components of SOA Suite?
    Thanks for sharing your experience.
    Edited by: user9197403 on 23/02/2010 21:07
    3.2 Choosing an HTTP Server
    In order to run, Oracle Application Express must have access to either the embedded PL/SQL gateway or Oracle HTTP Server and mod_plsql. To learn more, see "About Choosing an HTTP Server".
    This is from Oracle's documentation so you do need BOTH.

  • Oracle VM Server (3.2.3) installation problem on Sun X3-2

    Dear All Experts,
    I  have 2 hard disks and configure as RAID1, than create 2 virtual drives for OS (40GB) and Local Storage Repository (250GB) already.
    During VM Server installation, I saw 3 drives (a, b, c) and I don't know why drive C is created automatically?
    drive A: OS = 40GB, file system: ext3
    drive B: Storage Repository = 250GB, file system: ext3
    drive C: 3GB, file system: vfat
    I have to delete this drive C or not? if delete, it affect to system or not? how to delete it?
    your help is so appropriate.
    Thanks and regards,
    Heng

    Dear All,
    Any update for this issue?
    I have 2 virtual drives when I install OVM Server 3.2.3, I see 3 drives is C one more. Please check and give advice as below:
    root@ovmserver ~]# fdisk -l | more
    Disk /dev/sda: 42.9 GB, 42949672960 bytes
    255 heads, 63 sectors/track, 5221 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *           1        1305    10482381   83  Linux
    /dev/sda2            1306        5221    31455270   82  Linux swap / Solaris
    Disk /dev/sdb: 256.0 GB, 256049676288 bytes
    255 heads, 63 sectors/track, 31129 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
       Device Boot      Start         End      Blocks   Id  System
    Disk /dev/sdc: 3880 MB, 3880452096 bytes
    120 heads, 62 sectors/track, 1018 cylinders
    Units = cylinders of 7440 * 512 = 3809280 bytes
       Device Boot      Start         End      Blocks   Id  System
    Disk /dev/dm-0: 256.0 GB, 256049676288 bytes
    255 heads, 63 sectors/track, 31129 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
         Device Boot      Start         End      Blocks   Id 
    Please kindly give advice for this. your help is so appreciate.
    Thanks and regards,
    Heng

  • Login to Oracle 8i Server from a remote location.

    Hi Experts,
    I wish to connect to Oracle 8i Server at Site 1 from Site 2.
    Situation
    Site 1     -     Oracle 8i on Win 2K. This is behind a firewall FW1. Is in Win NT Domain1.
    Site 2     -     Oracle 8i Client on Win 98. This is also behind (a separate) firewall FW2. Is in Win NT Domain2. There is no oracle instance running at Site 2.
    Also -
    a. There is a secure VPN between Site 1 and 2 (through separate Firewalls. one at each site).
    b. Site 1 and Site 2 use different set of IP-Address and also different set of Subnet Mask.
    c. Both, the Client at Site 2 & Oracle 8i Server at Site 1, are able to ping each other successfully.
    d. As there is no oracle database at Site 2, a Database Link cannot be created.
    At Site 2, I have tried the following -
    1. Installed Oracle 8i Client.
    Configured the tnsnames.ora file.
    The Port used is 1521.
    Tried to connect from SQL*Plus but do not connect.
    2. Installed development version of Oracle Forms 6i (surely after removing Oracle 8i client).
    This also installs SQL*Plus.
    Configured the tnsnames.ora file.
    The Port used is 1521.
    Tried to connect from SQL*Plus but do not connect.
    Tried to connect from Oracle Forms 6i but login fails.
    However, other Win98 clients (of Win NT Domain1) at Site 1 use the same settings of tnsnames.ora file to connect to the Oracle 8i Server.
    3. Changed the IP address (of Win98 client at Site 2) to become a member of Win NT domain1 (same domain as that of Oracle 8i Server).
    Repeated the above steps 1 & 2 but login still fails.
    What more needs to be done?
    Thanks in Advance.
    Lokesh

    Hi Fredrik,
    You r right. But I have its entry in tnsnames.ora file. The entry looks like this -
    My_Service_Name.world =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS =
    (COMMUNITY = tcp.world)
    (PROTOCOL = TCP)
    (Server = Computer_Name_of_Server_having_Ora8i)
    (Host = IP_Add_of_Server_having_Ora8i)
    (Port = 1521)
    (Pipe = ORAPIPE)
    (CONNECT_DATA = (SID = ORCL)
    The same entry exists in the tnsnames.ora file on the local PCs (same office where the Oracle 8i Server is present) at Site 1 and these PCs connect the server without any problem.
    Thanks
    Lokesh

  • Oracle vm 3.1.x : does not recognize local storage

    Hi There
    My VM manager does not recognize the local storage however I have a second HDD on my VM server:
    [root@myserver ~]# fdisk -l
    Disk /dev/sda: 320.0 GB, 320072933376 bytes
    255 heads, 63 sectors/track, 38913 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Device Boot Start End Blocks Id System
    /dev/sda1 * 1 13 104391 83 Linux
    /dev/sda2 14 405 3148740 83 Linux
    /dev/sda3 406 536 1052257+ 82 Linux swap / Solaris
    Disk /dev/sdb: 160.0 GB, 160041885696 bytes
    255 heads, 63 sectors/track, 19457 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Device Boot Start End Blocks Id System
    Also the Multipath is running:
    [root@myserver ~]# service multipathd status
    multipathd (pid 2735) is running...
    [root@myserver ~]#
    The version of OVM is 3.1.1.305
    I have used the default partition layout.
    I was able to create a server pool without the cluster option but there is no storage bind to it since I could not utilize the local storage and my NFS (which is on a IOMEGA DATA CENTRE external HDD) for some reasons gets timed out while I am adding the server pool with NFS ( NFS was added to the storage no problem but once I try to add a pool on this NFS it gets timesd out)
    I am new to OVM and also Linux so please go easy on me :) , Your help is much appriciated.

    Very likely "multipath -ll" doesn't show up any path to sdb from the device mapper (neither it is in /dev/mapper)
    - Make sure you've rescanned disks from OVM Manager (Select the ovm server disks page) ;
    - try to perform "multipath -d" to see if it takes the path from sdb into account. If it is, run "multipath" no option
    - try to reboot the OVM server since it's not too late ;-)
    Other than that I'm afraid you'll have to figure out why device mapper doesn't map your disk; the ovm server should have "script" install on it. Do the following :
    cd /root
    script figureoutwhyitsucks.log
    multipathd -k
    show config
    <ctrl>+D
    exit
    That file would be helpful to figure out.

  • Local storage not available

    Hello,
    I am trying to create a non-clustered server pool with a single VM server 3.1.1, using Manager also at 3.1.1.
    So far I've created a Server Pool and added the discovered server to this pool.
    The next step would be to create a repository on this server by going to Repositories tab, add a repository and click the "physical disk" radio button. At this point I am able to select the desired Server Pool.
    However, I don't see any available disks to choose as the repository - only blank combo boxes:
    http://d.pr/i/4eYY
    http://d.pr/i/T0G3
    This looks to me like a wrong window, since the label is for a san server and not a physical disk array or something along those lines.
    The internal server disks are arranged in a raid configuration and a single partition.
    I can't figure out what I'm missing. Please advise.

    >
    What make/model is your hardware, also what RAID controller?
    HP DL380/5's have known issues because Oracle uses an unsupported driver.
    >
    Its a proliant ml150 g6 server, with a P410i Smart Array Controller.
    The controller is the same as mentioned in note 1373817.1, which is probably what you are looking at as well. I've experimented with that solution with no positive results yet.
    >
    To see local storage to the VM the disk must be empty. You can not make one large partition on your raid array and use that same partition for your VM installation... and then expect to see the free space available to be used for a repo.
    Check out page 49 of the user guide
    As long as no partition and data are present the device will be detected as a raw disk. The choice is yours
    to use the local disks either to provision logical storage volumes as disks for virtual machines or to install a
    storage repository. If you place a storage repository on the local disk, an OCFS2 file system is installed.
    You will have to break up your RAID volume into multiple LUNS. You should then be able to see the unused LUNS. I've personally never done this but I do have some SSD drives I use for extending database cache. I can see these drives just fine locally. The key is there can't be a file system on the disks. Oracle VM expects a raw device.
    >
    Oh, I shouldn't have said a single partition, as far as partitions go, it's the default layout: /, /boot, swap and free space (it's a single drive as far as RAID goes). Can that work?
    Thanks for that info, I might have to reconfigure the RAID as you suggest, I wasn't aware that it must be a raw device, that brings much valued insight :-) Although I should have expected this since VM 2.1 probably works in a similar way, I just never used the VM Manager and didn't study repos.py closely.

  • Managing files and space in storage repositories

    What options are available for moving virtual machine images and resources between storage repositories in OVM 2.2? The documentation does not seem to mention this at all.
    As the root repository is nearly full, I have added a second repository. I expect there is little automation here so that I also need to manually move some disk images from the root repo to the new auxiliary repository.
    Is there a special procedure I need to be aware of, or can I simply shut down a VM, move the folder and start the VM?
    Can multiple disk images belonging to the same VM be distributed across multiple repositories, or must they all reside in the same folder?
    Thanks,
    Roy

    roynor wrote:
    Is there a special procedure I need to be aware of, or can I simply shut down a VM, move the folder and start the VM?I usually follow this process:
    1. Shutdown the VM
    2. Unregister the VM from Oracle VM Manager (but DON'T delete the files)
    3. Manually move the VM directory from one running_pool folder to another.
    4. Discover the VM in Oracle VM Manager
    5. Start the VM
    Can multiple disk images belonging to the same VM be distributed across multiple repositories, or must they all reside in the same folder?Oracle VM Manager will only create disk images in the same folder as vm.cfg. Shared disks will be created in the repository that has the most amount of free space available. You can use this to your advantage by creating/discovering shared disks in any repository and attaching them to your guest. Just remember not to attach the same shared disk to multiple guests!

  • Using local storage

    New to OVM - I have the server piece installed on a standalone machine with plenty of free space that my manager is recognizing as local storage.
    I'm a bit confused on the template piece.
    From the readme on the template media pack, I see "These templates when downloaded should be copied to the Oracle VM Server seed pool from which you wish to create VM instances"
    How do I get the templates over there? I have them currently on my ovm manager server.
    Thanks!

    Never mind...didn't realize that the OVS directory existed on the VM Server. Maybe it got there when I added the physical disk as a repository in the manager? Either way...I can scp it over there....problem solved!
    ...now onto the next :)
    Edited by: user5373812 on Nov 27, 2012 5:03 PM

  • Question about managing storage repositories

    OracleVM running on 1 physical machine. Added an additional disk and created a storage repository on it.
    #mount shows:
    /dev/sda3 on /var/ovs/mount/1C4926AA2D9844D3AEE02571CDD5412F type ocfs2 (rw,heartbeat=none)
    /dev/sdb1 on /var/ovs/mount/38A4B086C030404AA8B86C0CEC8C05D5 type ext3 (rw)
    The root storage repository now moved to the new /dev/sdb1 disk.
    /opt/ovs-agent-2.3/utils/repos.py -l
    [ * ] 38a4b086-c030-404a-a8b8-6c0cec8c05d5 => /dev/sdb1
    [   ] 1c4926aa-2d98-44d3-aee0-2571cdd5412f => /dev/sda3
    All my images and VMs are located under /dev/sda3 which used to be my root repository.
    I have a few questions related to this.
    Q1) Tried to make /dev/sda3 as the cluster root again. Noticed however this means it needs to be initialized again! What will be the impact of doing this with an existing storage repository? Will it remove my existing templates, images etc.?
    Q2) As stated added an extra local disk and put a storage repository on it to be able to make use of this disk in my VM images. Is this a correct assumption?
    Q3) Is OracleVM reading both storage repositories per default and does it make use of the storage on the new disk when the first disk is full? How does OracleVM handle multiple repositories?
    Q4) What does the cluster root storage distinguish from the other storage? What is the advantage/disadvantage?
    Thanks,
    Klaas.

    kgraaf wrote:
    Q1) Tried to make /dev/sda3 as the cluster root again. Noticed however this means it needs to be initialized again! What will be the impact of doing this with an existing storage repository? Will it remove my existing templates, images etc.? It shouldn't -- but there is no need to make /dev/sda3 the cluster root. Both storage repositories are equal.
    Q2) As stated added an extra local disk and put a storage repository on it to be able to make use of this disk in my VM images. Is this a correct assumption?Yes.
    Q3) Is OracleVM reading both storage repositories per default and does it make use of the storage on the new disk when the first disk is full? How does OracleVM handle multiple repositories?It will create new VMs on the repository that has the most amount of free disk space. Thus it will use all the repositories at the same time.
    Q4) What does the cluster root storage distinguish from the other storage? What is the advantage/disadvantage?The cluster root is the repository that is symlinked to /OVS -- it also stores the shared ovs-agent database. That's about it. There is no advantage/disadvantage in a single-server environment.

  • Retrieve variable value from local Storage and display on canvas

    Hi
    I'm working on a project that has multiple html files (the projects are split into 12 so 12 different edge projects and im linking them via window.open()). I have a variable that keeps track of correct answers stored in LocalStorage html object. I have managed to get the localStorage variable to increment up by one each time the object is correct however my last step is to get the variable and them display the result on the canvas. I have tried
    var outPut localStorage.getItem(' ') method to retrieve the variable then used the set and get method to display the result however it doesn't work. Im not sure if I need a for loop to go though the localStorage and get the elements
    Code:
    // insert code to be run when the composition is fully loaded here
    yepnope({nope:['jquery-ui-1.10.0.custom.min.js','jquery.ui.touch-punch.min.js'],complete: init}); // load the jquery files
    sym.setVariable("myScore", 0);
    var c = localStorage["myCount"] || 0; //loading from localStorage
    function init(){
    sym.getSymbol("barLimit").$('scrubber').draggable({start: function(e){
    },drag: function(e,ui){ // start: ...  // Find original position of dragged image
    var leftLimitScrubber  = sym.getSymbol('barLimit').$('scrubber').position().left; // position of the scrubber
    var rightLimitScrubber  = sym.getSymbol('barLimit').$('leftLimit').position().left;
    var LimitTwoLeft  = sym.getSymbol('barLimit').$('rightLimit').position().left;
    if(leftLimitScrubber == rightLimitScrubber){
      sym.getSymbol('correctBar1').play('in'); //
      sym.getSymbol('nextButton').play('in');
      sym.getSymbol('incorrectBar1').play('out'); //
      sym.getSymbol('thumbsDown1').play('out'); //
      sym.getSymbol('thumbsUp1').play('in'); //
      sym.getSymbol('congrats').play('in'); //
    localStorage["myCount"] = parseInt(c)+1; //Converting string to number, and then saving it
    console.log("numberOfCorrectAnswers", localStorage["myCount"]);
    var finalScore = sym.getVariable("myScore");
    finalScore = c;
    sym.setVariable("myScore", finalScore);
    sym.$("Score").html(finalScore);
    } else if(leftLimitScrubber == LimitTwoLeft){
    sym.getSymbol('incorrectBar1').play('in');
    sym.getSymbol('correctBar1').play('out');
    sym.getSymbol('thumbsUp1').play('out');
    sym.getSymbol('thumbsDown1').play('in');
    axis: "x",
    containment: "parent"
           //for (var i = 0; i < localStorage.length; i++){ // iterate throught the local storage
             //var getItem = localStorage.getItem(localStorage.key(i));
              //if(getItem == 'numberOfCorrectAnswers' ){
    The above is the code for the 12th project in  this projects it needs to display the variable inside the object localStorage and display on the canvas.
    Any help will mean a lot. Thank You in advance
    P.S edge animate has a lot of bugs hard to code in

    what you need to do is to create a text box and set a default value of zero. Once that is don't you need a code on the stage which grabs the value form the localStorage object. I used the .text() jquery method to display the value on the canvas. So the zero will be replaced with whatever the value of the localStorage is.
    You also need a if statement to check if the localStorage is undefined, if its not then grab the value and display on the canvas.
    e.g
    var number = localStorage['finalValue']; // for the sake of completeness I had to put this line of code
    if( number ! = undefined){ // if not undefined so the object exits then ...
         sym.$(' (text identifier) '). text(number); // note text identifier is the name of the text box you create in edge
    } // Done

  • Errors when accessing Encrypted Local Storage

    Hi there,
    I develop an AIR application and some of the users of the application are running into an issue when accessing Encryped Local Storage. Sometimes, when the application tries to put or retrieve an item from Encrypted Local Storage, these errors are reported:
    Error: general internal error
    EncryptedLocalStore database access error
    I've searched around a little and it appears that these errors occur for a variety of reasons. Sounds like corruption to the user's keychain can result in this error being thrown (repairing the keychain was mentioned as a possible solution in one blog post). This same error happens to some Linux users (http://kb2.adobe.com/cps/492/cpsid_49267.html) when switching between Gnome and KDE desktops too. http://blogs.adobe.com/koestler/2009/07/unreadable_encrypted_local_sto.html seems to suggest that changing of usernames on the machine can have an impact on how the ELS is accessed.
    In terms of a solution to this issue, I've seen multiple posts online asking the user to delete the ELS directory on their computer. While this 'solution' works for some users of the application I develop, it doesn't work for other users. http://forums.adobe.com/thread/239605 seems to suggest that a full factory reset of a user's OS gets everything back to square one and the ELS is now usable again - that's not really something that I can suggest to a user of an application. It seems a bit drastic and most users will (understandably) baulk at the idea of a full factory reset.
    So, I'm in a position with AIR development where I have to provide a fallback to ELS. Thankfully, I don't use ELS in the application too much, but I imagine anyone that has to make meaningful use of it would be pretty handicapped by the issues above. I guess I have a few questions:
    1. Has anyone been able to reproduce the errors listed above? Are you able to get your system into a state where 'Error: general internal error' appears consistently when you try to access ELS? I've tried the suggestions listed in the articles I outlined above, but have so far failed in reproducing these errors.
    2. If you have managed to get your machine into this state, what is the most advisable remedial action? As I mentioned above, deleting the ELS directory to start anew seems to work for some users but not for others.
    3. Is there anything that someone has tried where they've found a programmatic solution to avoid this issue altogether?
    4. Can someone in AIR engineering comment on concrete efforts to avoid these sort of scenarios in future versions of the runtime? Is there any debug information that I can provide from users of this application that could help diagnose this issue further and possibly feed back to the AIR development team?
    FWIW, my application descriptor file is pointing at the 1.5.3 version of the runtime. We've seen this happen to users that are running this application with both the 1.5.3 version of AIR and the 2.0.3 version of AIR. We've seen this happen on both Mac and Windows. I've seen this happen with initial installs of the application and with upgrades to new versions too.
    Sean

    Hi Sean,
    Thanks for reporting the issue. As you pointed out (via the blogs and weblinks), we are aware of this issue. And the following blog post talks about the problem in detail:
         http://kb2.adobe.com/cps/492/cpsid_49267.html
    As mentioned there, this issues arises because of corruption of keyring database, which in turn could happen becuase of user migration, switching desktops, ELS data migration to a different machine etc In such a scenario, even native applications are not able to access the ELS store (gnome-keyring or kde-kwallet). So there is little that we could do here. We have never experienced a scenario where an AIR application resulted into the corruption of database.
    Having said that, if you can provide us a constantly reproducible case (a list of steps which can always get us hit the issue), then we can definitely try to do the best possible in this regard.
    Thanks,
    -romil
    (AIR Engineering)

Maybe you are looking for

  • NO DATA IN REPORT

    Hi gurus...     We use two cube's for extraction one <b>actual(Current)</b> AND one <b>Plan(Forecast)...</b> we move some characters of the Plan to the actual cube on a regular basis...  ex:- What ever we have planned for <b>2004(Plan)</b> in the yea

  • Pages won't print in landscape?

    I just upgraded to the latest version of Pages for iOS, and it seems I have lost the ability to print in landscape. Even if the document itself is in landscape orientation it still prints in portrait. In fact, documents that are in landscape orientat

  • Why won't my Mac Pro read a burnt copy of Photoshop CS5?

    I just got myself a Mac Pro. From upgrading my old G4. My Mac Pro is a 2 Dual-Core Intel Xeon 2.66 ghz Version 10.6.8. With a SONY DVD RW DW-D150A Drive and a NVIDIA GeForce 7300 GT graphics/display. So I have plenty of requirements to run CS5..I thi

  • Link works on mac but not on pc

    Hi - I am trying to insert a jpg into a dreamweaver file. I then upload the html file along with the jpg to my server in a folder called "layout" So the url is:  http://www.mysite.com/layout/test.html The link works on mac, but not on pc's. Any idea

  • Further information about bug #4503177 available?

    Hi, my plattform is: SunOS 5.8 Generic_108528-11 sun4u sparc SUNW,Ultra-60 the compiler is: CC: Sun WorkShop 6 update 1 C++ 5.2 2000/09/11 I've encountered problems with exception-handling (not reliable reproducable). My application stops with signal