CLOB as Storage for Ordinates?

Hi,
I have a table that has a column called COORDS it is a CLOB type.
I want to make a query that uses these coordinates (example value -123,49,0,-123.5,49.5,0)
my select statement doesn't work...
select MDSYS.SDO_GEOMETRY(3002,8307,null,MDSYS.SDO_ELEM_INFO_ARRAY(1,1002,1),MDSYS.SDO_ORDINATE_ARRAY(COORDS )
from eelgrass
But this works though..but I need it a more like above - I would like it as a view:
select 'MDSYS.SDO_GEOMETRY(3002,8307,null,MDSYS.SDO_ELEM_INFO_ARRAY(1,1002,1),MDSYS.SDO_ORDINATE_ARRAY(' || COORDS || '));'
from eelgrass
Is there an EVAL in oracle I can use for the COORDS column?
thanks
gordon
Edited by: user520811 on Nov 27, 2008 6:03 AM
Edited by: user520811 on Nov 27, 2008 7:20 AM

Don't think you can do that directly in SQL, you probably have to go to pl/sql
Example...
CREATE TABLE clob_test (
ID NUMBER,
GEOMETRY MDSYS.SDO_GEOMETRY);
INSERT INTO clob_test VALUES (
1, SDO_GEOMETRY(2002, 2157, NULL, SDO_ELEM_INFO_ARRAY(1, 2, 1), SDO_ORDINATE_ARRAY(583887.231, 768049.448, 583983.61, 768005.606, 584010.988, 768030.582)));
INSERT INTO user_sdo_geom_metadata VALUES ('clob_test','GEOMETRY', 
MDSYS.SDO_DIM_ARRAY(MDSYS.SDO_DIM_ELEMENT('X',0,0,0.0005), MDSYS.SDO_DIM_ELEMENT('Y',500000,1000000,0.0005)), 2157);
CREATE INDEX clob_test_spind ON clob_test(GEOMETRY) INDEXTYPE IS MDSYS.SPATIAL_INDEX;
DECLARE
l_coord CLOB;
l_sql VARCHAR2(4000);
l_count NUMBER;
BEGIN
l_coord := '583887.231, 768049.448, 583983.61, 768005.606';
l_sql :=
     'SELECT COUNT(*)
     FROM clob_test
     WHERE SDO_ANYINTERACT(geometry,
     MDSYS.SDO_GEOMETRY(2002, 2157, null, MDSYS.SDO_ELEM_INFO_ARRAY(1, 2, 1),
     MDSYS.SDO_ORDINATE_ARRAY(' || l_coord ||' )))     = ''TRUE''';
     EXECUTE IMMEDIATE l_sql INTO l_count;
     DBMS_OUTPUT.PUT_LINE(l_count);
END;
/

Similar Messages

  • Can i upgrade icloud storage for secondary account?

    My secondary account is used mostly for email.  I deleted a ton of them but somehow am still voer the 5GB limit.
    I'm willing to pay the $100 upgrade to get rid of the hassle, but is theere a way to upgrade icloud storage for your secondary account?

    You would probably have to temporarily make the secondary account the primary account to upgrade it.  To do this, go to System Preferences>Mail,Contacts,Calendars...delete the secondary account, then go to System Preferences>iCloud, sign out of your primary account and choose Delete at all of the prompts (your data will still be in iCloud), then sign back in with your secondary account ID and upgrade the storage.
    After upgrading the secondary account storage, reverse the procedure to assign the primary and secondary accounts back the way they were.

  • Can you use a iTunes card to purchase more storage for iCloud

    can you use a itunes card to purchase more storage for icloud

    No. iTunes Store only.
    "An iTunes Gift Card lets you shop for anything at the iTunes Store "  >  http://store.apple.com/us/browse/home/giftcards/itunes/gallery

  • I'm trying to upgrade my iCloud storage for the new price.

    I'm trying to upgrade my iCloud storage for the new price, but it doesn't gives me the option of 20G for $0.99 a month.
    How can I get 20g for $0.99 a month?
    Thanks!

    Katherine,
    have you read the message in the panel? Something is wrong with your credit card. Perhaps you have to enter a new date of expiration.
    In the small print it says, there is still a purchase, that needs paying,"Ugly Heart" with an amount of R 9.99. And "We were unable to authorise your credit card for this purchase".  You will first have to update your Billing Information before you can proceed to make a new purchase for upgraded storage.  Click "Account Details" in the iCloud panel.
    -- Léonie
    If you cannot fix the account from the iCloud panel, open iTunes and sign into the "Store" menu, Then use the "Store > View account" item there to check for problems with your Billing Information.

  • Can I pay for addition iCloud storage for my family member

    I want to buy more storage for my children, but I don't want to connect my credit card to their iCloud accounts. I've added them as the family members, could I pay for their iCloud through family sharing?

    Your children's accounts currently have some account information with them ... so just put in your card data, do the charge, and then change it back to the account info they have now, and then your card is off the account.

  • What's the best way to setup a media server/central storage for all of my?

    I was wondering what the best way to achieve a central media server for all my iTunes content + iPhoto's, calendar syncing and contact sharing is? This is what I currently have:
    iMac 20" Aluminum + External HD Backup (kids)
    Macbook Black (wife)
    Macbook Pro 15" (me)
    Airport Extreme 802.11n (obvious)
    TimeCapsule 1TB (wifi backup for wife/me)
    I would like to replace my PC in my office with a brand new Mac Pro Nehalem 8-Core, 8GB Ram, and 4TB, and replace my PC laptop in my living room attached to my tv, with an Apple TV.
    I want to centralize all our Photos from vacations, etc. Music, videos, movies, that are currently split up over wife's macbook, kids imac and my macbook pro onto my soon to be purchased Mac Pro.
    I want to be able to stream everything from my living room via Apple TV for when guests come over, dinner parties, etc. (plus I love apple and it keeps things clean)
    I'm currently using MobileMe to sync all of our Calendars and Contacts with my main account, which is great, but MobileMe doesn't sync to family members accounts =
    What would I need to do to centralize all this onto my future Mac Pro so that everyone has access all the time when they are home and the key here is, modify/update/change from their machines and sync it back/update it on the Mac Pro.
    Also, I'm hoping Snow Leopard has some changes to iTunes to make this a little more possible, since we're right around the corner from this release. I don't really want to spend an additional $900+ on Snow Leopard Server to have to achieve these results, but if it makes it easier, and does the job, then I guess I might. This is all speculation though, since it's not out yet. I'd like to get this all sorted and setup within the next month.
    I was considering a Drobo, they say they can throw up iTunes Server but, I appreciate everyone for reading this, and taking the time to respond!
    Thanks!
    Message was edited

    I'm in the process of setting up a smaller (and cheaper) but somewhat similar setup to what you want to do, so maybe one example might help point you in the right direction. My needs consist of a centralized location for data storage, which will include iPhoto libraries (I keep two separate ones), iTunes (which I also want served to the home theater system), something other than my laptop to play internet videos and downloaded content on my TV, all with ideally the lowest cost and energy use possible.
    My solution was the new Mini with a FW800 external drive as the server/media hub and Airport gigabit as the network hub (it also handles the backup drive).
    FW800 is fast enough to saturate a gigabit ethernet link, so I don't consider that much of a bottleneck. The Mini then has iTunes running at all times with its centralized library on it; it is hooked to the home theater via HDMI-DVI video and optical audio, so it can play music and also handle videos when desired; Front Row with the Apple remote is close enough to an AppleTV that I think it handles that well, and it's more full-featured than an AppleTV. It can further be used to display photos/slideshows/whatever on the TV for guests or such, or to surf from the couch with a wireless mouse/keyboard. You can also toss in an EyeTV for $150 and use that as a DVR if you feel like it.
    When I want to edit photos or such on my desktop, the gigabit link is fast enough that I can run iPhoto without noticing any significant slowdown. Its also usable over wireless, though I have a dangling extra network cable to plug into a laptop for full gigabit speed if need be. iTunes, of course, shares its library, which can be played from any of the computers in the house if so desired (iPhoto can do that too if you just want to display).
    If I REALLY wanted top speed (though I've even done video editing in iMovie via ethernet without issue), I could use a third party synch app (I like Sync) to mirror any of the content from the mini server to a local drive; this works fine with anything but multi-way synching, such as address books being modified in different locations. I'd probably try to set up one of those Mobile Me clone systems or use a 3rd party app if I needed to do that.
    Again, maybe this isn't powerful enough or "synched" enough in terms of local storage for your taste, but the advantage is that a Mini uses a minute fraction of the power of a Mac Pro, so you're saving a lot on electricity if the computer will be powered up at all times as a server, and it's also a lot more full-featured as a home theater media hub than an AppleTV. And, heck, the thing is about as well equipped as my old top-of-the-line G5 tower for a 5th the cost and 1/15th the power and noise.

  • I just purchased extra storage for my iCloud.  How and where do I access it?  I purchased movies and audio books to find out that I didn't have enough storage (the reason for the extra storage purchase).  I have no idea where to find them now.  Help?!

    How do I use my iCloud???
    I purchased 4 movies and 2 audio books from iTunes only to find out my iPad2 didn't have enough storage, so I purchased more storage from iCloud. 
    My iTunes account only shows the 4 movies that need to still be downloaded (not the two books)  After purchasing 20GB from iCloud I am still receiving the  "There is not enough available storage.  You can manage your storage in Settings" message.  I have gone to my Settings, where it shows I have the new, extra storage.  I have set all the iCloud settings as shown on the Apple website.  In my iCloud settings, it shows I have 17GB available out of 25GB.   In my General settings, it shows that I have a capacity of 28.6 GB, while my Available is 2.9GB.  (????)
    I don't know why I still can't download the movies.  I wouldn't know where to go (how to get to) the iCloud if I could...
    Also, iTunes has sent me receipts for the movies and audio books I purchased as well.  Where are they???
    Thank you SO very much for any assistance you can offer me!

    Cancel your storage upgrade
    If you upgrade or renew your storage but no longer need it, you can cancel. If you cancel your storage plan within 15 days of an upgrade or within 45 days after a yearly payment, you can contact Apple for a full refund. After this period, you can downgrade your storage for the following year.
    Note:  Partial refunds are available where required by law.
    From here  >  http://help.apple.com/icloud/?lang=en#mma3518f8580
    HelpKimIsAlreadyTaken wrote:
    Since I purchased about $70 worth of movies and books and they won't load onto my iPad, do you think iTunes will refund my money?
    If you make more room on your Device perhaps you can View/ use the purchases...
    However if you would prefer a Refund... you can always ask... be sure to explain your situation...
    To Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact
    Note:
    It is stated that all sales are final

  • Upgrading a 3-node Hyper-V clusters storage for £10k and getting the most bang for our money.

    Hi all, looking for some discussion and advice on a few questions I have regarding storage for our next cluster upgrade cycle.
    Our current system for a bit of background:
    3x Clustered Hyper-V Servers running Server 2008 R2 (72TB Ram, dual cpu etc...)
    1x Dell MD3220i iSCSI with dual 1GB connections to each server (24x 146GB 15k SAS drives in RAID 10) - Tier 1 storage
    1x Dell MD1200 Expansion Array with 12x 2TB 7.2K drives in RAID 10 - Tier 2 storage, large vm's, files etc...
    ~25 VM's running all manner of workloads, SQL, Exchange, WSUS, Linux web servers etc....
    1x DPM 2012 SP1 Backup server with its own storage.
    Reasons for upgrading:
    Storage though put is becoming an issue as we only get around 125MB/s over the dual 1GB iSCSI connections to each physical server.  (tried everything under the sun to improve bandwidth but I suspect the MD3220i Raid is the bottleneck here.
    Backup times for vm's (once every night) is now in the 5-6 hours range.
    Storage performance during backups and large file syncronisations (DPM)
    Tier 1 storage is running out of capacity and we would like to build in more IOPS for future expansion.
    Tier 2 storage is massively underused (6tb of 12tb Raid 10 space)
    Migrating to 10GB server links.
    Total budget for the upgrade is in the region of £10k so I have to make sure we get absolutely the most bang for our buck.  
    Current Plan:
    Upgrade the cluster to Server 2012 R2
    Install a dual port 10GB NIC team in each server and virtualize cluster, live migration, vm and management traffic (with QoS of course)
    Purchase a new JBOD SAS array and leverage the new Storage Spaces and SSD caching/tiering capabilities.  Use our existing 2TB drives for capacity and purchase sufficient SSD's to replace the 15k SAS disks.
    On to the questions:
    Is it supported to use storage spaces directly connected to a Hyper-V cluster?  I have seen that for our setup we are on the verge of requiring a separate SOFS for storage but the extra costs and complexity are out of our reach. (RDMA, extra 10GB NIC's
    etc...)
    When using a storage space in a cluster, I have seen various articles suggesting that each csv will be active/passive within the cluster.  Causing redirected IO for all cluster nodes not currently active?
    If CSV's are active/passive its suggested that you should have a csv for each node in your cluster?  How in production do you balance vm's accross 3 CSV's without manually moving them to keep 1/3 of load on each csv?  Ideally I would like just
    a single CSV active/active for all vm's to sit on.  (ease of management etc...)
    If the CSV is active/active am I correct in assuming that DPM will backup vm's without causing any re-directed IO?
    Will DPM backups of VM's be incremental in terms of data transferred from the cluster to the backup server?
    Thanks in advance for anyone who can be bothered to read through all that and help me out!  I'm sure there are more questions I've forgotten but those will certainly get us started.
    Also lastly, does anyone else have a better suggestion for how we should proceed?
    Thanks

    Current Plan:
    Upgrade the cluster to Server 2012 R2
    Install a dual port 10GB NIC team in each server and virtualize cluster, live migration, vm and management traffic (with QoS of course)
    Purchase a new JBOD SAS array and leverage the new Storage Spaces and SSD caching/tiering capabilities.  Use our existing 2TB drives for capacity and purchase sufficient SSD's to replace the 15k SAS disks.
    On to the questions:
    Is it supported to use storage spaces directly connected to a Hyper-V cluster?  I have seen that for our setup we are on the verge of requiring a separate SOFS for storage but the extra costs and complexity are out of our reach. (RDMA, extra 10GB NIC's
    etc...)
    When using a storage space in a cluster, I have seen various articles suggesting that each csv will be active/passive within the cluster.  Causing redirected IO for all cluster nodes not currently active?
    If CSV's are active/passive its suggested that you should have a csv for each node in your cluster?  How in production do you balance vm's accross 3 CSV's without manually moving them to keep 1/3 of load on each csv?  Ideally I would like just
    a single CSV active/active for all vm's to sit on.  (ease of management etc...)
    If the CSV is active/active am I correct in assuming that DPM will backup vm's without causing any re-directed IO?
    Will DPM backups of VM's be incremental in terms of data transferred from the cluster to the backup server?
    Thanks in advance for anyone who can be bothered to read through all that and help me out!  I'm sure there are more questions I've forgotten but those will certainly get us started.
    Also lastly, does anyone else have a better suggestion for how we should proceed?
    Thanks
    1) You can use direct connection to SAS with a 3-node cluster of course (4-node, 5-node etc). Sure it would be much faster then running with an additional SoFS layer (with SAS fed directly to your Hyper-V cluster nodes all reads and writes would be local
    travelling down the SAS fabric and with SoFS layer added you'll have the same amount of I/Os targeting SAS + Ethernet with its huge compared to SAS latency sitting in between a requestor and your data residing on SAS spindles, I/Os overwrapped into SMB-over-TCP-over-IP-over-Etherent
    requests at the hypervisor-SoFS layers). Reason why SoFS is recommended - final SoFS-based solution would be cheaper as SAS-only is a pain to scale beyond basic 2-node configs. Instead of getting SAS switches, adding redundant SAS controllers to every hypervisor
    node and / or looking for expensive multi-port SAS JBODs you'll have a pair (at least) of SoFS boxes doing a file level proxy in front of a SAS-controlled back end. So you'll compromise performance in favor of cost. See:
    http://davidzi.com/windows-server-2012/hyper-v-and-scale-out-file-cluster-home-lab-design/
    Used interconnect diagram within this design would actually scale beyond 2 hosts. But you'll have to get a SAS switch (actually at least two of them for redundancy as you don't want any component to become a single point of failure, don't you?)
    2) With 2012 R2 all I/O from a multiple hypervisor nodes is done thru the storage fabric (in your case that's SAS) and only metadata updates would be done thru the coordinator node and using Ethernet connectivity. Redirected I/O would be used in a two cases
    only a) no SAS connectivity from the hypervisor node (but Ethernet one is still present) and b) broken-by-implementation backup software would keep access to CSV using snapshot mechanism for too long. In a nutshell: you'll be fine :) See for references:
    http://www.petri.co.il/redirected-io-windows-server-2012r2-cluster-shared-volumes.htm
    http://www.aidanfinn.com/?p=12844
    3) These are independent things. CSV is not active/passive (see 2) so basically with an interconnection design you'll be using there's virtually no point to having one-CSV-per-hypervisor. There are cases when you'd still probably do this. For example if
    you'd have all-flash and combined spindle/flash LUNs and you know for sure you want some VMs to sit on flash and others (no so I/O hungry) to stay within "spinning rust". One more case is many-node cluster. With it multiple nodes basically fight for a single
    LUN and a lot of time is wasted for SCSI reservation conflicts resove (ODX has no reservation offload like VAAI has so even if ODX is present its not going to help). Again it's a place where SoFS "helps" as having intermediate proxy level turns block I/O into
    file I/O triggering SCSI reservation conflicts for a two SoFS nodes only instead of an evey node in a hypervisor cluster. One more good example is when you'll have a mix of a local I/O (SAS) and Ethernet with a Virtual SAN products. Virtual SAN runs directly
    as part of the hypervisor and emulates high performance SAN using cheap DAS. To increase performance it DOES make sense to create a  concept of a "local LUN" (and thus "local CSV") as reads targeting this LUN/CSV would be passed down the local storage
    stack instead of hitting the wire (Ethernet) and going to partner hypervisor nodes to fetch the VM data. See:
    http://www.starwindsoftware.com/starwind-native-san-on-two-physical-servers
    http://www.starwindsoftware.com/sw-configuring-ha-shared-storage-on-scale-out-file-servers
    (feeding basically DAS to Hyper-V and SoFS to avoid expensive SAS JBOD and SAS spindles). The same thing as VMware is doing with their VSAN on vSphere. But again that's NOT your case so it DOES NOT make sense to keep many CSVs with only 3 nodes present or
    SoFS possibly used. 
    4) DPM is going to put your cluster in redirected mode for a very short period of time. Microsoft says NEVER. See:
    http://technet.microsoft.com/en-us/library/hh758090.aspx
    Direct and Redirect I/O
    Each Hyper-V host has a direct path (direct I/O) to the CSV storage Logical Unit Number (LUN). However, in Windows Server 2008 R2 there are a couple of limitations:
    For some actions, including DPM backup, the CSV coordinator takes control of the volume and uses redirected instead of direct I/O. With redirection, storage operations are no longer through a host’s direct SAN connection, but are instead routed
    through the CSV coordinator. This has a direct impact on performance.
    CSV backup is serialized, so that only one virtual machine on a CSV is backed up at a time.
    In Windows Server 2012, these limitations were removed:
    Redirection is no longer used. 
    CSV backup is now parallel and not serialized.
    5) Yes, VSS and CBT would be used so data would be incremental after first initial "seed" backup. See:
    http://technet.microsoft.com/en-us/library/ff399619.aspx
    http://itsalllegit.wordpress.com/2013/08/05/dpm-2012-sp1-manually-copy-large-volume-to-secondary-dpm-server/
    I'd look at some other options. There are few good discussion you may want to read. See:
    http://arstechnica.com/civis/viewtopic.php?f=10&t=1209963
    http://community.spiceworks.com/topic/316868-server-2012-2-node-cluster-without-san
    Good luck :)
    StarWind iSCSI SAN & NAS

  • I just bought 200 gb storage for my phone and it still says i cant download apps because "theres no enough storage" i dont get why, plz hep me out!!!

    i just bought 200 GB storage for my phone and it still says i cant download apps because "there's no enough storage" i don't get why, plz hep me out!!!

    It means that you need to delete content from the device before you can add more.
    (115750)

  • I have my own icloud account separate from my family's apple ID for itunes. I need more storage for icloud...do I have to pay a separate $20/ month to get more storage or does the $20 include all members of the plan?

    I have my own icloud account separate from my family's apple ID for itunes. I need more storage for icloud...do I have to pay a separate $20/ month to get more storage or does the $20 include all members of the plan?

    Welcome to Apple Support Communities
    If your iCloud account uses your family's Apple ID, you will pay $20/year for all your family members. If your iCloud account uses a different Apple ID than your family's Apple ID, you will pay only for you

  • Can I share my iCloud storage with my wife? I'm interested in using the storage for both phones, hers and mine.

    Can I share my iCloud storage with my wife? I'm interested in using the storage for both phones, hers and mine.

    You will not want to do that and you should just have two 5GB free accounts.
    Too much risk of merging or losing data.

  • I bought a new iPhone and only photos from the last 30 days were transferred to my photostram on icloud. I thought icloud was the storage for all my old photos. How do I access the old photos on icloud?

    I bought a new iPhone 5. Only photos from the last 30 days were transferred to my photostream on iCloud. I thought iClud was the storage for all the old photos. How do I access the older photos than 30 days on iCloud?

    janqfromnor wrote:
    I bought a new iPhone 5. Only photos from the last 30 days were transferred to my photostream on iCloud. I thought iClud was the storage for all the old photos. How do I access the older photos than 30 days on iCloud?
    Where, exactly, did you read anything from Apple that suggested that iCloud Photostream was permanent storage?

  • I recently purchased icloud storage for my iPad Air.  I want to store photos in the cloud and learn how to retrieve them.  I need help.

    I recently  purchased iCloud storage for my iPad Air so that I can store my photos in the cloud.  I don't know how to do this.  I want to be able to retrieve them as well. 

    Hello Janet
    With that iCloud storage that you purchased, is used for mainly for iCloud Backup for your iPad Air, app data as in games and documents for like iWork and other apps that save data locally within the app. Dealing with photos in your Photo Stream they actually do not count towards that storage plan. If you don’t think that the storage is going to work for you, then cancel the upgrade you just made.  
    iCloud: iCloud storage plan overview
    http://support.apple.com/kb/PH12796
    iCloud: Shared Photo Streams FAQ
    http://support.apple.com/kb/HT5903
    iCloud: Cancel your storage upgrade
    http://support.apple.com/kb/PH12798
    Regards,
    -Norm G.

  • I've deleted all my mail in iCloud and also empty trash, but iCloud mail still occupied my iCloud storage for 1.9GB. What do I do?

    Dear All,
    I've deleted all my mail in iCloud and also empty trash, but iCloud mail still occupied my iCloud storage for 1.9GB. What do I do?
    BR.

    Hi OaksterMe,
    In order to completely delete emails from your devices and free up space in iCloud, you should follow the steps in this article -
    iCloud: Reduce email storage space
    Thanks for using Apple Support Communities.
    Best,
    Brett L 

  • HT204406 I purchased the additional Icloud storage for my ipod touch.  Since it removes all my music from the touch and stores it in Icloud, I find that when I am not at my wifi location or another one,I can't access my music.Is there a solution for that?

    I purchasedhe additional Icloud storage for my ipod touch.  That removes all my music from the ipod and putsd it in Icloud.  I find that when I am away from my wifi connection, like when walking or working out, I can't access my music. Is there a solution for this?

    Download the music to your ipod when you are in a wi-fi area.
    It will be stored on your ipod.

Maybe you are looking for

  • Click on Field in report and Open Form

    I know this question relates to Report but I did not receive any reply from report forum that is why I m posting here. I want that when I click on a ABC Field (in runtime report) then it open form.. please help.

  • Error occured -- while deploying my EJB on WL6.0

    hi, I have been getting this error, while I'm deploying my Web application on weblogic 6.0. It throws an ZipException.... on my web console. But my .ear file get deployed. when I restart the server, The error does not appear again. Could some brief m

  • Problems with Flash Line Graphs

    I have two problems with the new Flash Line Graphs in APEX 3.1 1. I have created a query that returns a set number of rows. Sometimes the VALUE for a specific row might be null. When this occurs the LABEL data does not show up on the X axis. I want t

  • How to download thomas jung video tutorilas on wda

    Hi Folks,           Is there any possibility to download Thomas Jung or any other video tutorials in sdn.If yes pls tell me how to download. Thanks in advance.

  • Sales Analyses / sql Query

    Hello All, is there a possibillity to catch/copy the sales analyses reports as User Query? we need a existng Sales analyses Report but with some other informations which are not included in the standard report. so my thinking was may we can copy the