Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Password-generator (sys.v_$timer)

Re: Password-generator (sys.v_$timer)

From: Connor McDonald <connor_mcdonald_at_yahoo.com>
Date: Mon, 16 May 2005 21:20:10 +0800
Message-ID: <42889E0A.5A42@yahoo.com>


benster_at_tjockhult.se wrote:
>
> Hi!
>
> I am currently developing a password-generating-function in Oracle.
>
> I am trying to use the SQL:
> "SELECT lower(chr(substr(TO_CHAR(hsecs) / 8640000,22,3))) FROM
> SYS.v_$timer;"
>
> This works OK when I run the SQL in Toad, but when I try to put the
> result in a variable and use the SQL in my function the function
> doesn't get properly compiled...
> ("SELECT lower(chr(substr(TO_CHAR(hsecs) / 8640000,22,3))) INTO SLUMPEN
> FROM SYS.v_$timer;")
>
> When I try to recompile the function it says "Identifier 'SYS.V_$TIMER'
> must be declared.
>
> Hmm..ideas on how to solve this one?
>
> Best regards
>
> /Ben

How about

dbms_random.value

or dbms_utility.get_hash_value

hth
connor

-- 
Connor McDonald
Co-author: "Mastering Oracle PL/SQL - Practical Solutions"
Co-author: "Oracle Insight - Tales of the OakTable"

web: http://www.oracledba.co.uk
web: http://www.oaktable.net
email: connor_mcdonald_at_yahoo.com


"Semper in excremento, sole profundum qui variat."

------------------------------------------------------------
Received on Mon May 16 2005 - 08:20:10 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US