HTP Package Help

Can someone help me on " how do I export the output of a pl/sql program into a notepad file through HTP Package."
The output is supposed to be a multibyte character.
Thanks!!

the htp package is a package used by the mod pl/sql for apache in the AS. I don't think you can redirect it to a file. Just use dbms_output instead...

Similar Messages

  • Apex new installation - HTP package body has errors

    I installed apex on 10G. When i try to access the apex page, i get the following errors in log:
    [Sat Oct 28 08:39:25 2006] [error] [client 192.168.1.90] [ecid: 1162049964:156.153.112.151:9580:0:9,0] mod_plsql: /pls/apex/apex HTTP-404 ORA-04063: package body "SYS.HTP" has errors\nORA-06508: PL/SQL: could not find program unit being called: "SYS.HTP"\nORA-06512: at line 7\n
    When i recompile HTP package body, i get errors:
    SQL> alter package htp compile body;
    Warning: Package Body altered with compilation errors.
    SQL> sho errors
    Errors for PACKAGE BODY HTP:
    LINE/COL ERROR
    14/11 PLS-00323: subprogram or cursor 'TITLE' is declared in a package
    specification and must be defined in the package body
    15/11 PLS-00323: subprogram or cursor 'HTITLE' is declared in a package
    specification and must be defined in the package body
    1691/7 PL/SQL: Statement ignored
    1691/7 PLS-00307: too many declarations of 'PRINT' match this call
    1694/7 PL/SQL: Statement ignored
    1694/7 PLS-00307: too many declarations of 'PRINT' match this call
    1697/7 PL/SQL: Statement ignored
    1697/7 PLS-00307: too many declarations of 'PRN' match this call
    1700/7 PL/SQL: Statement ignored
    1700/7 PLS-00307: too many declarations of 'PRN' match this call
    1703/7 PL/SQL: Statement ignored
    1703/7 PLS-00307: too many declarations of 'PRINT' match this call
    1706/7 PL/SQL: Statement ignored
    1706/7 PLS-00307: too many declarations of 'PRINT' match this call
    1709/7 PL/SQL: Statement ignored
    1709/7 PLS-00307: too many declarations of 'P' match this call
    1712/7 PL/SQL: Statement ignored
    1712/7 PLS-00307: too many declarations of 'P' match this call
    1715/7 PL/SQL: Statement ignored
    1715/7 PLS-00307: too many declarations of 'P' match this call
    Any ideas...

    Please tell us your first name and update your forum profile with it to help us. Also, change your handle to something more reader-friendly. Thanks.
    If your imported applications are set up to use some kind of SSO authenticaiton and you haven't provided for that in your environment then you'll need to change those applications' authentication scheme to something you can deal with.
    Scott

  • HTP package question

    I have a feeling I'm in the wrong place for this question but maybe someone can help.
    I'm not so good with Oracle configuration and setup issues but I have created a package with a few procedures that output info using the HTP package. At my old place of employment we had a web server set up and we could use
    http://ouraddress.com/packagename.procedurename?p_param1=123&p_param2=456
    We have a web-based application server set up for Oracle Forms (eBusiness Suite) but I don't know if I'm able to do something like this or not. Where/what do I need to set up to use this type of functionality?
    null

    PL/SQL Web Development Tools: Oracle Database provides built-in tools and technologies that enable you to deploy PL/SQL applications over the Web. Thus, PL/SQL serves as an alternative to Web application frameworks such as CGI.
    The PL/SQL Web Toolkit is a set of PL/SQL packages that you can use to develop stored procedures that can be invoked by a Web client. The PL/SQL Gateway enables an HTTP client to invoke a PL/SQL stored procedure through mod_plsql, which is a plug-in to Oracle HTTP Server. This module performs the following actions:
    - Translates a URL passed by a browser client
    - Calls an Oracle Database stored procedure with the parameters in the URL
    - Returns output (typically HTML) to the client
    You got to start from here:
    Developing Applications with the PL/SQL Web Toolkit
    http://download-east.oracle.com/docs/cd/B19306_01/appdev.102/b14251/adfns_web.htm#g1026380

  • HTP Package and Oracle XE

    Hello Experts,
    I have just installed Oracle10g XE. I wanted to create package/procedure using Oracle HTP package. Would it be possible to use HTP package in XE. If so then how can I call that in browser? (Say package name is my_package_k and procedure id my_proc_p). I do not know what http://???? I have to use??
    Please help me.
    Thanks,
    B Adhvaryu
    London
    UK

    I'm running XE on an Asus 1000H eee netbook and all works fine. I installed 2GB though which is straighforward and relatively inexpensive to do, and also doesn't invalidate the warranty.
    PaulB

  • How to incorporate Javscript into oralce htp packages?

    hello,
    I would like to know about the javascript how one can use in oracle HTP packages while creating the forms using HTP packages... are there any course offered by oracle or is there any documentation available on this? on i know the htp package are there but how one can use javascript in htp packages...
    Please do help me out...
    Thanks a lot.......

    Application Developer's Guide - Fundamentals Contents / Search / Index / PDF
    Chapter 18 Page 679
    http://download-east.oracle.com/docs/cd/B10501_01/appdev.920/a96590.pdf
    You can enter too javacript code inside a Stored Procedure and use so:
    Example:
    <HTML>
    <HEAD>
    <TITLE>Metalink 2.0</TITLE>
    </HEAD>
    <FRAMESET COLS="152, *" NORESIZE BORDER="0" FRAMESPACE="0"
    FRAMESPACING="0" FRAMEBORDER="NO">
    <FRAME SRC="ml2_gui.checkJavascript?p_section_id=-1" SCROLLING="NO" SCROLLING="NO" MARGINWIDTH="0" MARGINHEIGHT="0" NAME="navbar">
    <FRAMESET ROWS="61,*" BORDER="0" FRAMESPACE="0" FRAMESPACING="0" FRAMEBORDER="NO" NAME="rightframe">
    <FRAME SRC="ml2_gui.queryform"SCROLLING="NO" NORESIZE MARGINWIDTH="0" MARGINHEIGHT=0 BORDER="0" NAME="query">
    <FRAME SRC="per_hom.startup" SCROLLING="AUTO" NORESIZE MARGINWIDTH="0" MARGINHEIGHT="0" BORDER="0" NAME="corner">
    </FRAMESET>
    </FRAMESET>
    Joel P�rez

  • Sending Binary Data using HTP package

    Has anyone been successful in using the HTP package and its PUTRAW procedure to send binary data to a browser?
    Example code shows basic idea:
    create or replace
    procedure test_raw as
    output VARCHAR2(20);
    begin
    OWA_UTIL.MIME_HEADER('application/x-gzip', TRUE);
    output := 'Hello World!';
    HTP.PUTRAW(UTL_RAW.CAST_TO_RAW(output));
    HTP.FLUSH;
    end test_raw;
    I receive an empty file when called from the browser.
    What gives?

    I found my answer. I should be using wpg_docload.download_file(BLOB) to "download" a the contents of a BLOB.

  • Meric -- Another package helper (packer fork)

    Hi. Here is Meric. I have made modifications to famous and well written "packer" (thanks to Matthew Bruenig) to fit my needs. So a packer fork "Meric" has born. I decided to share it with community. But remember, i am neither a coder nor a bash expert. So, my modifications may be an ugly hack to packer; but it just works for me. I hope you'll enjoy it. All credits must go Mr. Bruening.
    From Meric README:
    Meric is a package helper for Arch Linux. It can retrieve packages from official repositories and Arch User Repository (a.k.a. AUR).
    Meric is a fork of famous "packer" which is developed by Matthew Bruenig <[email protected]>
    Meric is born from the needs of the autor.
    Meric has a few differences from packer:
      1- Meric has a config file. Users may use it for daily meric tasks instead of using options in commandline. Also makepkg options can be set there. Once options have been set; meric can call makepkg with these options by default.
    2- Meric has the ability of remove installed dependencies after package creation. Like "makepkg -r". Not perfect but it works for my needs.
    3- Meric can skip checking and installing from specified repositories with "--skip-repo" option. This is useful when you setup your custom repository with AUR packages. Aur helpers, including packer, won't treat those packages as aur packages because it thouhgt that they came from a repo (your custom repo). So those packages always skipped when AUR updates checking phase. This option prevents this for you.( also can be set in meric.conf to make it default behaviour)
    4- Meric can use translations. For the sake of keep package and its dependencies minimal; only one text file (in bash script format) is used to hold and provide all translations. See TRANSLATIONS section.
    5- Meric can call pacman with a custom pacman.conf file for all pacman related operations. Just place your custom pacman.conf under $HOME/.config/meric/ directory.
    Github link: https://github.com/tarakbumba/meric
    Aur link: https://aur.archlinux.org/packages.php?ID=59946

    fschiff wrote:
    471,475c604,611
    < '--auronly') auronly='1' ;;
    < '--devel') devel='1' ;;
    < '--skipinteg') MAKEPKGOPTS="--skipinteg" ;;
    < '--') shift ; packageargs+=("$@") ; break ;;
    < -*) echo "packer: Option \`$1' is not valid." ; exit 5 ;;
    > '-a'|'--auronly') auronly='1' ;;
    > '--devel') devel='1' ;;
    > '--skipinteg') MAKEPKGOPTS+=("--skipinteg") ;;
    > '--cleandeps'| '-c') cleandeps='1' ;;
    > '--version'| '-v') echo -n "Meric - $VERSION" ;;
    > '--skip-repo') skipped_repos="$2" ; skip_repo='1' ; shift ;;
    > '--') shift ; packageargs+=("$@") ; break ;;
    > -*) echo -e "${COLOR7}$ERROR :$ENDCOLOR $ERROR9" ; exit 5 ;;
    MAKEPKGOPTS= is different.  Possible bug?
    Its the only place where the variable gets set.
    234c322
    < echo "${PKGURL}$(jshon -Q -e results -e URLPath -u < "$tmpdir/$1.info")"
    > echo "${PKGURL}$(jshon -e results -e URLPath -u < "$tmpdir/$1.info")"
    -Q option
    Thank you for interesting in. MAKEPKGOPTS is indeed different and it is not a bug but a feature to allow use of Makepkg options from meric.conf
    But you' re right. Somehow i missed -Q option in pkglink function. Will update git with this. Thanks for your feedback!

  • Reading html data & uploading a file in single html form using htp package

    Hi
    I have designed a html screen using htp package in which i have few text items and file upload button. I have to validate all forms data like text items and check box elements and upload file to unix. I am using java script for file validations and cgi script to upload file. With this I am able to either read form data or upload file but not both.
    At a time I want to insert a record to database with html form values and upload file to unix with htp package. Please suggest how can I read html form data + uploading a file to unix simultaneously in a single htp procedure.
    Thanks,
    Pradeep

    Have you ever considered using Application Express (APEX)?
    Oracle Application Express (APEX)
    Sounds like you're going the long way around to create a web based application.

  • Server side includes with htp package

    I have a few procedures that call the htp package and generate dynamic web pages, however the server side includes are being treated as comments; they are not interpreted correctly and hence are not reading the associated file.
    Has anyone encountered this before and found a solution?

    I have a few procedures that call the htp package and generate dynamic web pages, however the server side includes are being treated as comments; they are not interpreted correctly and hence are not reading the associated file.
    Has anyone encountered this before and found a solution?

  • HTP package

    Hi all,
    maybe this is a naive question, maybe not for this forum, but please, can someone tell me where would I be able to find HTP package? Is it installed with the db server?
    I use 9i database.
    thanks in advance,
    teo

    thanks a lot ruhn..
    ok I issue desc htp and it displays a list of functions. I think that means that it is installed doesn't it?
    Just another quick question. Which is the most apropriate forum to ask a question about htp? I wan to know how would I be able to call a stored procedure from a browser's url in order to dynamically create a page with db data.
    I think this is a common thing to do but I've never done it plus I don't know which is the right forum for the question.
    Please if you can tell me where to ask or to show me a way into this.
    Thanks for your time
    regards,
    teo

  • Progress Bar using HTP.DIV -Help please

    Hi,
    Below is my Code to get a progress bar on the screen writen as a package
    PROCEDURE lp_progress_bar IS
    BEGIN
    htp.htmlOpen;
    htp.headOpen;
    -- Create Link to Style Sheet
    htp.linkrel(crel => 'stylesheet',
    curl => pk_constant.PATH_STATIC||'internal_body.css',
    ctitle => 'text/css');
    --Include the Javascript to Call the Progress Bar
    lp_js_copy();
    htp.headClose;
    htp.bodyOpen;
    --Define Attributes for the DIV tags to print the Progress bar
    htp.div(cattributes => 'id="bar"');
    htp.div(cattributes => 'id="progress"');
    htp.bodyClose;
    htp.htmlClose();
    END lp_progress_bar;
    and the JS for the progress bar
    NL CONSTANT VARCHAR2(2) := CHR(13) || CHR(10);
    PROCEDURE lp_js_copy
    IS
    vBodyCode VARCHAR2(500);
    BEGIN
    pk_js.js
    'var time = 10000;'
    || NL ||'var aCopy = 5;'
    || NL ||'var aCopyDone = 1;'
    || NL ||'function progress() {'
    || NL ||'parent.fr_buttons.btnCancel.disabled= true;'
    || NL ||'var bar = document.getElementById("bar");'
    || NL || 'alert(bar);'
    || NL ||'var aStep = (bar.offsetWidth -2) /aCopy;'
    || NL ||'var x = Math.round( aStep *aCopyDone); '
    || NL ||'var progress = document.getElementById("progress");'
    || NL ||'progress.style.width = x +"px";'
    || NL ||'aCopyDone++;'
    || NL ||'if( aCopyDone > aCopy) redir();'
    || NL ||'else setTimeout( "progress();", time /aCopy);'
    || NL ||'}'
    || NL
    || NL ||'function redir() {'
    || NL ||'alert("Copy Successfully Completed");'
    || NL ||'parent.fr_buttons.btnCancel.disabled= false;'
    || NL ||'parent.fr_buttons.btnSave.disabled=true;'
    || NL ||'}'
    END lp_js_copy;
    The stlye for bar and progress aere defined in the stylesheet internal_body.css as
    #bar
    MARGIN: 0 auto;
    WIDTH: 250px;
    TEXT-ALIGN: left;
    BORDER: 1px solid black;
    #progress {
    WIDTH: 0;
    BACKGROUND: darkblue;
    but I am not getting anything on the screen. What should I do to get it pop up on the existing screen.
    I had posted it on a the database thread too. But I guess it was th wrong category.Hence posting it new here.
    Please Help.
    Message was edited by:
    ora newbie

    Hi Dwijesh,
    U can use a OCX control. Make a OCX control and insert microsoft progress bar object into it. Then you can write codes into it accordingly to incerease the bar.

  • Stored Proc's/Packages Help

    Ok all, again, being new to Oracle and trying to do a humble favor for a friend, I've come up with a problem that I'll need help on. Running these steps individually gets me pretty much the result that I'm looking for, minus some basic retooling with TSQL. However, I've tried to format this in the form of either a package/procedure and I just don't believe I'm doing it right. I've been reading the PL-SQL for Dummies, in addition to the latest Oracle 10G PDFs, but as much as I try, I just can't format the package right, even using v_ types and declaring. Below is the code, and even though I've listed tables, this has to be done dynamically and/or processed in memory. I know this may seem simple at best to those of you who understand Oracle, but to me, it's like a square peg in a round hole.
    Would appreciate any and all comments and assistance. Thank you kindly for your perusal of this post (code below):
    --STEP 1:
    create table tbl1 as
    SELECT ps.id1
    ,ps.id2
    ,ps.tdate
    ,NVL(ps.udate, SYSDATE + 1 )
    ,ps.tcode
    ,decode (y.nmtext,
    'name1', 'nm1',
    'name2', 'nm2',
    'name3','nm3',
    'name4','nm4',
    'name5','nm5',
    'name6','nm6',
    'name7','nm7',
    'name8','nm8')
    ,(SELECT COUNT(ps2.id1)
    FROM tblhere ps2
    WHERE ps2.id1 = ps.id1
    AND ps2.id2 = ps.id2
    AND ps2.tdate <= TO_DATE('03/01/2007 00:00:00', 'MM/DD/YYYY HH24:MI:SS')
    AND NVL(ps2.udate, SYSDATE + 1) >= TO_DATE('02/01/2007 00:00:00', 'MM/DD/YYYY HH24:MI:SS')
    GROUP BY ps2.id2) AS o_cnt
    ,(SELECT COUNT(ps3.id1)
    FROM tblhere ps3
    WHERE ps3.id1 = ps.id1
    AND ps3.tcode = ps.tcode
    AND ps3.tdate <= TO_DATE('03/01/2007 00:00:00', 'MM/DD/YYYY HH24:MI:SS')
    AND NVL(ps3.udate, SYSDATE + 1) >= TO_DATE('02/01/2007 00:00:00', 'MM/DD/YYYY HH24:MI:SS')
    GROUP BY ps3.tcode) AS a_cnt
    ,y.ntype as ntype
    FROM tblhere ps
    INNER JOIN tblz y
    ON ps.id2 = y.thisid
    WHERE ps.tdate <= TO_DATE('03/01/2007 00:00:00', 'MM/DD/YYYY HH24:MI:SS')
    AND NVL(ps.udate, SYSDATE + 1 ) >= TO_DATE('02/01/2007 00:00:00', 'MM/DD/YYYY HH24:MI:SS')
    AND tcode = 'placedhere'
    AND y.ntype='testing'
    order by id1, tdate
    --STEP 2:
    create table overages (
    Mynum number,
    MyID number)
    --STEP 3:
    insert into overages
    select count(*) as Mynum, id1
    from tbl1
    group by id1
    having count(id1) > 1
    order by id1 desc
    --STEP 4:
    create table tbl2 (
    nums number,
    cid number,
    ogid number,
    adate date,
    rdate date,
    timer number,
    mymode varchar2(10 Byte),
    place varchar2(50 Byte),
    og_cnt number,
    mymode_cnt number,
    namer varchar2(1 Byte))
    --STEP 5:
    insert into tbl2
    select b.mynum, a.id1, a.id2,
    a.tdate, NVL(a.udate, SYSDATE + 1),
    a.tcode, a.nmtext, a.o_cnt,
    a.a_cnt, a.ntype
    from tbl1 a
    inner join overages b
    on a.id1 = b.myid
    order by cid, adate
    --STEP 6:
    merge into tbl2 a
    using (select rwd,
    cid,
    ogid,
    min(rwd) over (partition by cid, adate, rdate) rwd_min,
    adate,
    rdate,
    mymode, place,
    from (select cid, rowid rwd,
    last_value(d1 ignore nulls) over (partition by cid order by rdate range between unbounded preceding and current row) as adate,
    first_value(d2 ignore nulls) over (partition by cid order by rdate range between current row and unbounded following) as rdate
    from (select cid,
    adate,
    rdate,
    case when abs(adate-lag(rdate) over (partition by cid order by rdate))<=1
    then null else adate end d1,
    case when abs(rdate-lead(adate) over (partition by cid order by rdate))<=1
    then null else rdate end d2
    from tbl2))) b
    on (a.rowid=b.rwd)
    when matched then update set a.adate=b.adate, a.rdate=b.rdate
    delete where b.rwd!=b.rwd_min;

    In general you should create the empty tables first as an installation step. Then in your PL/SQL code you would just do inserts, updates etc.
    Also, a package is defined in two parts:
    CREATE OR REPLACE PACKAGE whatever
    AS
        PROCEDURE p
            ( p_someparam INTEGER );
        FUNCTION q
            RETURN BOOLEAN;
    END whatever;
    CREATE OR REPLACE PACKAGE BODY whatever
    AS
        PROCEDURE p
            ( p_someparam INTEGER )
        IS
        BEGIN
            dbms_output.put_line('Hello, World');
        END p;
        FUNCTION q
            RETURN BOOLEAN
        IS
        BEGIN
            RETURN dbms_random.value(0,10) < 5;
        END q;
    END whatever;
    /

  • ITunes and Windows Installer Package - HELP!!!!

    I've seen my question, which is also MY problem, that Windows Installer Package will not allow ITunes to download. I've read several posts on possible "fixes" in several forums, and have yet to resolve my problem. Anyone know how I can fix this? I would REALLY appreciate the help.

    it says there is a problem with this windows installer package, a DLL required could not be run
    With that one, even though you're getting a different error message, try the procedure from the following user tip:
    "The administrator has set policies to prevent this installation" error messages when installing iTunes for Windows on Windows Vista and Windows 7 systems

  • BT can't find my broadband package - Help/advice n...

    Hello
    So glad I found this forum – I'm in need of some help before I go mad!
    I have been a BT internet customer for nearly 10 years.
    The trouble started at the end of July when I tried to add BT sport free (I have Sky). I couldn't do it online, so I went on online chat and they said I didn't have a broadband account with them. After an hour of me trying to convince them that I am a customer, they finally said they couldn't help me other than to suggest I talk to sales to add broadband to my account – I already have BT broadband!
    I then emailed the residential customer services team via the complaints route to express my dismay at the poor treatment of a long-term loyal customer and to request that they intervene and sort the situation out for me.
    They repeated that I only have landline showing with them and asked whether I had another account number. My internet has always been billed separately to my phone account, but looking through all my documents I couldn't see that I'd ever had an account number for my internet service.
    I discovered when I looked at my account in BT Yahoo email, that I was still on the BT Yahoo Anytime Plus service, but there was no account number to be seen anywhere. Like many people on this forum I received occasional emails from BT at the end of 2011 saying that I would be transferred to BT Total Broadband Option 1 at some point, but this obviously never happened.
    On reading this forum I discovered that there are a number of people like me who have 'unaligned' accounts where they're still on an old service that is billed separately and not linked to their MyBT account. I also read on this forum that someone had managed to find their separate internet account number by checking their bank statement direct debit info. I did this and managed to find an account number (starting GB followed by 8 numbers) but I've tried to use it online myself and it isn't recognised, so I've emailed the residential services team with this number.
    They haven't replied to me yet – it's well past the 72 hours they're supposed to reply in – and I've got a strong feeling they're just going to say they can't find the account number on their system. If they reply at all.
    Interestingly, I went onto my BT Yahoo email account page today and my internet product had changed from BT Yahoo Anytime Plus to BT Total Broadband Option 1.
    Now, I don't know if my message has triggered some action at BT's end, but if it has they haven't told me. My big concern now is that my BT Yahoo Anytime Plus was unlimited with no contract and it now looks like I've been moved to a product with a tiny 10GB limit. I run an online business so I'm rarely offline and I'd exceed my limit within a few days. I'm worried that I'm already exceeding my usage, and if I hadn't looked I wouldn't even know I'd been moved.
    All I want is for BT to recognise and merge my accounts, and then I can upgrade to an unlimited package (which will cost less than what I'm paying now anyway). And then I can also add BT Sport, to which I'm entitled and not able to get because BT's systems are rubbish.
    I'd thought about simply cancelling my existing direct debit and ordering a new broadband package, but I really need to keep my email address as I've had it for years and I use it for business.
    I've seen that there are lovely mods on this forum who can help, so I'm hoping one can come to my rescue before I pull all my hair out – I've got nowhere so far and it's been more than 6 weeks since my intial contact with BT.
    Apologies for the length of this message!
    Many Thanks,
    Justine
    Solved!
    Go to Solution.

    Hello again
    Can anybody tell me how long it normally takes for the mods to reply to a contact form please?  I submitted an enquiry via RobbieMacs's profile link on 18 September and have not yet received a reply or acknowledgement.  Does it normally take a few days to hear back from them?
    My problem has also worsened.  As I mentioned above, someone has been tinkering with my account because last week I was moved without warning from BT Yahoo Anytime plus service to BT Total Broadband Option 1, without being informed.  Then on Friday I received a 'Welcome to BT Broadband' email (I've had BT Broadband for nearly 10 years!), and last night I for the first time ever in nearly 10 years I received a usage warning.
    So, not only has my account been moved without telling me, but I've been moved from an unlimited service to a capped service (for the same price) and I'm close to reaching my limiit after a few days usage.
    But, despite the behind-the-scenes tinkering, my internet product still hasn't been merged with MyBT account so I cannot access it online to upgrade to an unlimited package, and I cannot call them as they will just tell me they have no record of me having broadband with them (I've been told this too many times over the last few weeks and it drives me crazy everytime - it's as if they think I'm making it up!).
    I'm so close to jumping ship to Virgin, and I think if I start incurring extra usage charges because I've been moved on to a product I currently have no control over, it may well be the last straw!
    Thanks,
    Justine

  • DBMS_CRYPTO package help needed :(

    Hello all,
    I want to use Oracle's DBMS_CRYPTO package for decrypting some data.
    I have one sample program as follows which is not working....the error is shown below.
    SQL> DECLARE
    2 input_string VARCHAR2 (200) := 'Secret Message';
    3 output_string VARCHAR2 (200);
    4 encrypted_raw RAW (2000); -- stores encrypted binary text
    5 decrypted_raw RAW (2000); -- stores decrypted binary text
    6 num_key_bytes NUMBER := 256/8; -- key length 256 bits (32 bytes)
    7 key_bytes_raw RAW (32); -- stores 256-bit encryption key
    8 encryption_type PLS_INTEGER := -- total encryption type
    9 DBMS_CRYPTO.ENCRYPT_AES256
    10 + DBMS_CRYPTO.CHAIN_CBC
    11 + DBMS_CRYPTO.PAD_PKCS5;
    12 BEGIN
    13 DBMS_OUTPUT.PUT_LINE ( 'Original string: ' || input_string);
    14 key_bytes_raw := DBMS_CRYPTO.RANDOMBYTES (num_key_bytes);
    15 encrypted_raw := DBMS_CRYPTO.ENCRYPT
    16 (
    17 src => UTL_I18N.STRING_TO_RAW (input_string, 'AL32UTF8'),
    18 typ => encryption_type,
    19 KEY => key_bytes_raw
    20 );
    21 decrypted_raw := DBMS_CRYPTO.DECRYPT
    22 (
    23 src => encrypted_raw,
    24 typ => encryption_type,
    25 KEY => key_bytes_raw
    26 );
    27 output_string := UTL_I18N.RAW_TO_CHAR (decrypted_raw, 'AL32UTF8');
    28 DBMS_OUTPUT.PUT_LINE ('Decrypted string: ' || output_string);
    29 END;
    30 /
    DBMS_CRYPTO.ENCRYPT_AES256
    ERROR at line 9:
    ORA-06550: line 9, column 2:
    PLS-00201: identifier 'DBMS_CRYPTO' must be declared
    ORA-06550: line 8, column 23:
    PL/SQL: Item ignored
    ORA-06550: line 14, column 21:
    PLS-00201: identifier 'DBMS_CRYPTO' must be declared
    ORA-06550: line 14, column 4:
    PL/SQL: Statement ignored
    ORA-06550: line 15, column 21:
    PLS-00201: identifier 'DBMS_CRYPTO' must be declared
    ORA-06550: line 15, column 4:
    PL/SQL: Statement ignored
    ORA-06550: line 21, column 18:
    PLS-00201: identifier 'DBMS_CRYPTO' must be declared
    ORA-06550: line 21, column 1:
    PL/SQL: Statement ignored
    Oracle version is
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production on linux server.
    can anybody help me how to resolve this problem?
    I mean isnt "DBMS_CRYPTO" Oracle's Standard package?
    pls help.

    Really you should not be using SYSTEM account - you should create your own DBA / Development accounts and use those.
    However, what you are missing is to connect as SYS/SYSDBA and...
    GRANT EXECUTE ON dbms_crypto TO system;

Maybe you are looking for

  • How to see number of items in each Reminders list?

    I have several lists in Reminders, and have to check each one to see what items are in each list.  Can Reminders show the # of items in each list?  Like a badge or something similar to "unread items"?   Thanks.

  • Detect some error during PININST_BBV HP envy-15035eo

    Hello! I just bought a new Samsung SSD 840EVO to my HP Envy-15035eo running Windows 8.1. I popped the SSD in to my computer an ran the recovery I bought from HP. After the computer reboots a couple of times the recovery restars and go back to the ini

  • Change TVARV variable...

    Hi, I have a variable maintained in TVARV whose value needs to be changed every month. In production, I cannot give access to SM30/SM31 to a user as he might then have access to change values in all other tables too. What can I do ? Should I write an

  • Getting Soundtrack Pro to record with M-Audio Firewire Solo?

    I'm having trouble trying to record 'live' into Soundtrack Pro. I've got a mic into analog mixer into M-Audio Firewire Solo audio interface into ibook set up. In STP, I can select firewire channels 1 to 2 (under "Recording" tab) for the input device

  • Why does Itunes 10.6 keep opening itself (Windows7 64 bit)

    Ok so this has been driving me nuts if I open iTunes once it will continuely reopon itself and with my computer it happens within seconds after closing iTunes. I went to the specific 64 bit download page from apple for iTunes. I have uninstalled itun