How can i make a pl/sql function for BLOB datatype

hi..anyone here who is very familiar about BLOB datatype. i have a COLUMN_ID, COLUMN_A in a certain TABLE_1. COLUMN_A is blob datatype that contains almost 250,000rows
SQL>select column_A from table_1 where column_id=1234567
column_A
00000001000000010000000606D4E833074B69EC06D4E91F074CO18406D50C58074C031E
how can i make a user-defined function to compute and convert this blob datatype into decimal length value. this hex value are points in the map.. the function must contain
1.get the length of a blob then
2.convert blob to variable hexadecimal characters by parsing it into 8
3.to_number function or other function used to convert haxadecimal characters to decimal numbers
4.phythagorean formula to compute length between two points. this is the formula i think LENGTH =
SQRT(power((coordinate_x-prev_coordinate_x),2)+power((coordinate_y-prev_y),2));
after this when i type this
SQL>select user_function(column_A) from table_1 where column_id=1234567
user_functions(column_A)
--output length will be in decimal value already
the function will goes like this
step1 is to get the blob length
00000001000000010000000606D4E833074B69EC06D4E91F074CO18406D50C58074C031E
step2 is parsing of data by eights
00000001 =>1
00000001 =>1
00000006 =>6 (number of coordinates)
06D4E833 => X1
074B69EC => Y1
06D4E91F => X2
074CO184 => Y2
06D50C58 => X3
074C031E => Y3
step3 to_number function used to convert hex char to decimal
step4 compute by phytagorean (NOTE ! when computing length the third parsed eight will tell how many coordinates are there..the number of coordinates is ranging from 2 up to E..above example shows 6 coordinates so it means
LENGTH1 =
SQRT(power((X2-X1),2)+power((Y2-Y1),2));
LENGTH2=
SQRT(power((X3-X2),2)+power((Y3-Y2),2));
TOTAL LENGTH=LENGTH1 + LENGTH2
thanks

its my first time to use that.There's got to be a first tiem for anything. Be brave.
btw if theres more easy suggestion pls feel free..Well of course the easiest solution would be if the calling program passed in the parameters as separate arguments instead of glomming them together in a string that has to be parsed. This sort of kluj really ought not to have survived into C21.
Cheers, APC

Similar Messages

  • How can I make Adobe Reader 9 open for incoming PDFs instead of Acrobat 5.0?

    How can I make Adobe Reader 9 open for incoming PDFs instead of Acrobat 5.0?

    Hi,
    Assuming that you have Reader 9.3.4 already installed on your machine, you can try the following to make Reader 9.3.4 as the default PDF opening application:
    1. Right click on any PDF on your system and click on the "Open With" Option in the context menu that appears. In case you get another submenu, click on Chose Program in that menu. (In case you do not see any "Open With" option, then hold down the Shift key and right click on the file)
    2. Click on Browse button in the dialog that appears, and select Reader 9. Make sure that you select the checkbox for "Always use the selected program to open this kind of file"
    3. Click on OK.
    This will make Adobe Reader 9 as the default viewer for all PDFs on your system.

  • How can I make "No Proxy" the default for accessing the internet?

    How can I make "No Proxy" the default for accessing the internet?

    *Tools > Options > Advanced > Network : Connection > Settings
    If you do not need to use a proxy to connect to internet then try to select "No Proxy" if "Use the system proxy settings" or one of the others do not work properly.
    See "Firefox connection settings":
    *https://support.mozilla.org/kb/Firefox+cannot+load+websites+but+other+programs+can

  • How can get a database like ****.SQL file for test in sqlplus in oracle8i

    How can get a database like ****.SQL file for test in sqlplus in oracle8i,I am a beginner,thanks

    I'll give it a guess as to what it is you want but I'm afraid you'll have to give some more information to go on. I appreciate it's difficult for people who are beginners or who don't have English as their first language.
    Are you trying to run a SQL file? From SQL*plus you can do either of these:
    SQL> start my_file
    or
    SQL> @my_file
    N.B.: if th efile has a .sql extension you don't need to include it, but you do for any other file extension e.g.
    SQL> @myfile.run
    Here is the page Vijay referred to:
    Re: Physical storage Checks & adding disk on server. I hope you find it useful.
    You will more helpful links (including links to the Oracle on-line manuals at this page:
    Re: How to attach a java bean in forms6i
    good luck, APC

  • How can I extract the full SQL script for a schema?

    Hi,
    How can I extract the full SQL script for a schema?
    I am looking for some method that needs jus SQL*Plus and preferably doesn’t need any extra tool.
    Thank you,
    Alan

    How can I extract the full SQL script for a schema?What are you looking for? PL/SQL code? DDL for objects?

  • How can i make Apple review a refund for a delaminated bottom case of my macbook november 2009 model? They more than implied that it is a design flaw anyway

    How can i make Apple review a refund for a delaminated bottom case of my macbook november 2009 model? They more than implied that it is a design flaw anyway. They make it so hard to send a possible review of such.

    http://www.apple.com/support/macbook-bottomcase/

  • How can I make my apple ID valid for purchases other then the Canadian iTunes Store?

    How can I make my apple ID valid for purchases other then the Canadian iTunes Store? I wanted to download the "Wath abc family" app and it said it had to switch me to the american store because the app isnt available in Canada yet. Once it switched me I put in my apple ID and password and thats when it said that my apple ID is only valid in the canadian store and it switched me back. 
    1)
    2)
    3)

    To make purchases in the Mac App Store/iTunes Store for any particular country, you must be a legal resident of that country and supply a credit card issued by a bank in that country with a verifiable billing address in that country. Do you also make those qualifications in the US?
    But as a side note, as one who has that app, you can only watch both ABC and ABC Family shows if you have an account with a US cable or satelite TV company with which to sign into the app. Otherwise you don't qualify to watch shows with it.

  • How can I make a custom domain email for my client?

    I have an Adobe Muse subscription, with hosting through Adobe, and the Domain name is also with Adobe. How can I make an email for a particular domain for my client so that it will use a "company email" (even if it just redirects to say a gmail or yahoo that is fine) to read "[email protected]?

    Hello,
    As I can see you have a WebBasic Creative Cloud site, I would suggest you to use GoogleApps for your e-mail services.
    Please have a look at the article which would help you achieve this : http://helpx.adobe.com/business-catalyst/partner/setting-google-apps-email-business.html
    Hope this helps.
    Regards,
    Sachin

  • How can i make hyperlink to local file for dowloading

    How can I make hyperlink to a local file for downloading it, it seams that only www links work in web Ui.
    Thanks

    If we assume that you have a LabVIEW application running on your cRIO that is exposing some data through web services, there are a couple of possibilities.
    You can create a web service call that returns the log data. In order for the browser to treat this as a file, you must set the correct content type in the http header. To do this you can't use the default form of data output. Instead you must create an "httpRequestID" input to your web service VI. With this you can call "Write Response.vi" to give the log data and "Set HTTP Header.vi" to specify the type (text/text probably works for a log). You can look at "examples\comm\webservices\address book\FindContacts.vi" to see an example of calling these 2 VIs. Once you create that web service entry point, you can set that as the URL of the hyperlink control and it should work.
    Another option is to have the cRIO application write to a log file that is under the root of the web server running on the machine. (This is the same place the xap for your Web UI Builder application is put.) This file could then be served up through the web server just like any other file.
    With either of these solutions there may be concerns about the browser caching results rather than requesting new content each time. There are additional values that can be set in the http headers with the first solution that can help with this, but I think there is still some variation between browsers.

  • How can i make Trend lines in numers for iPad

    Does numbers support trend lines? How can i make them?
    Thank you in advance

    Numbers on ipad does not give you the option of adding trend lines to your graphs at this time.
    Jason

  • How can I make a startup flash drive for a new iMac?

    My new imac came without an install disk.  How can I make a bootable startup drive from a flash drive for emergencies?

    http://support.apple.com/kb/DL1433
    Regards.

  • How can i write a Pl/sql Programme for a calender

    hi all,
    How can i write Pl/sql programme (may be function) for a calendar ,like after the programme is created if call the function at the prompt and give the year 2099 so on, it should display the result with all the 12 months (months and days.)
    Please email the answer to
    [email protected]
    or send the link for the answers.
    Thx

    Well, you can start off by reviewing the SYSDATE command and the TO_DATE and TO_CHAR functions. Also, review addmonths etc.
    http://www.unix.org.ua/orelly/oracle/prog2/ch14_01.htm
    Cheers

  • How can i make my iMac stop asking for passwords?

    How on earth can I make my iMac quit asking me for passwords? I've tried a few attempts at resetting Keychain passwords. Nothing I do seems to change any behaviors. I'm also complete noob to Mac so go easy with the jargon. I've even had a session an apple support person and fixed it temporarily.
    my imac is current with OS X 10.9.2

    OS X: Keychain Access asks for keychain "login" after changing login password
    http://support.apple.com/kb/ht1631
    Resetting your keychain in Mac OS X
    http://support.apple.com/kb/ts1544
    If you can read through these, are these steps similar to what the Apple advisor had you do?

  • How can I make Firefox remember new passwords for old accounts?

    I have recently moved to a new notebook computer. I used the "Password Exporter" add-on to import my passwords from my old machine.
    Now, when I reach a Web page that I'd saved the user id and password for, it no longer appears in the fields and I have to start typing some of it, before Firefox offers it again.
    Also, if a password has changed, when I enter the new one, Firefox won't offer to update that saved account with the new password - so I'm stuck with my old 'list' of accounts and their original passwords.
    How can I fix these problems?

    * Make sure that you not run Firefox in (permanent) [[Private Browsing]] mode
    * You enter Private Browsing mode if you select: Tools > Options > Privacy > History: Firefox will: "Never Remember History"
    * To see all History and Cookie settings, choose: Tools > Options > Privacy, choose the setting <b>Firefox will: Use custom settings for history</b>
    * Uncheck: [ ] "Automatically start Firefox in a private browsing session"

  • How can I make only the shape active for the mouse events, not the whole box around it?

    I want to create mouse over events for different parts of an image (say of a hard disk drive), so when the user places their mouse over the spindle, say, it will change colour.
    At the moment I have it working however the event is triggered when ever the mouse is in the bounding box of the spindle image. How can I get it to only be triggered when it is above the non transparent part of the image (or symbol)?

    Thanks joris182, but that wont work when there are other objects within the bounding box of the transparent symbol. For example, if I want the sclera to highlight, if I use an invisible shape over it, it will be active even if someone has their mouse over the vitreous body.

Maybe you are looking for

  • Printing only activities in ical

    hi, I'm trying to print out a list of my activities in ical. Ical prints also days with no activities, i.e. all days of the months. How can I choose only the days that are booked with meetings etc.? Thanks, Syssi

  • How to update a string value located on the main VI

    Hello I would like, from a subVI, to update a string value located in the main VI (using References). I was trying to find examples on NI web page but it´s impossible to download them (for more than one month : Error, File Not Found), do everyone has

  • I've just updated my imac 21.5. how do i transfer files from my old imac to my new imac?

    Help! I've had an iMac 21.5 for approximately 3.5 years. I have Aperture 3 (with loads photos) and iTunes etc on my current iMac. I have just bought a new 21.5 iMac with all the latest upgrades etc. As of yet I have not even taken the new iMac out of

  • Info on Google search results

    Hey Guys, Google search results sometimes come back with extra information just below the name of the web site; for example, if you Google the word 'evosport', along with the web address you get information such as this: Products - www.evosport.com/p

  • Horrible problems while mounting BTRFS RAID1 array (on a single HDD)

    Since I made my 2TB HDD (Samsung M9T which I bought precisely to make it a BTRFS RAID1 array for data security) into 2 x 1TB btrfs RAID1 array, I keep having horrible mounting problems. There are two subvolumes on that array: @data @sys_backup fstab