How to run wrap utility

Hi All,
I tried to use wrap utility from my command promt from c:/oracle9i/bin to encrypt the package code. But found that I am not having any wrap coomand in bin dir, so when I run wrap command from c:/oracle9i/bin, it gave me below error:
C:\oracle9i\bin>wrap
'wrap' is not recognized as an internal or external command,
operable program or batch file.
Can anybody help me in running wrap command. I am not able to understand if this is version issue, or complete pacakage has not been installed on my machine.
Or there is some other way to run wrap utility, and I am running it in wrong manner.
Thanks and Regards,
Nidhi

The wrap utility is a command line utility that obfuscates the contents of a PL/SQL source file. The syntax for the wrap utility is shown below.
wrap iname=input_file [oname=output_file]
The iname parameter specifies the source file, while the oname parameter specifies the destination file. If the destination file is not specified it defaults to the source file name with a ".pld" extension.
Running the Wrap Utility
Wrapping a package is amazingly simple, although there is one pitfall to avoid. Among the 500 plus files in the ORACLE_HOME/bin directory you will see wrap or WRAP depending on your operating system (a lot of the more common files and directories on Windows are upper-cased for ease of readability and identification).
Using wrap is as simple as this:
c:\ora9i\bin wrap iname=input_file_name
You can specify an output file as a second argument by using this format:
c:\ora9i\bin wrap iname=input_file_name oname=output_file_name
Once wrapped, a package cannot be unwrapped. With that in mind, and just like what you would do with a real package, do not wrap the package until it is time to ship it. This implies keeping a source code repository of the original code. If a customer or user reports a bug against a wrapped package, there is no unwrapping it at the customer's site. You are going to have to ship another wrapped package with the fix in it. You will be making the bug fix or enhancement with the repository file and wrapping the new file.
An Example of Using Wrap
In a previous article, I used the DBMS_RANDOM package. A slightly modified bit of code from that produces the following:
SQL> CREATE or REPLACE PROCEDURE wrap_it (seed_in NUMBER)
  2  IS
  3    v_rand INTEGER;
  4  BEGIN
  5    DBMS_RANDOM.INITIALIZE (seed_in);
  6    FOR i IN 1..5 LOOP
  7     v_rand := mod(abs(DBMS_RANDOM.RANDOM),45);
  8     dbms_output.put_line(i||': '||v_rand);
  9    END LOOP;
10  END;
11  /
Procedure created.
SQL> exec wrap_it(123456);
1: 37
2: 36
3: 18
4: 8
5: 32
PL/SQL procedure successfully completed.HTH.
Amkotz

Similar Messages

  • How to run disk utility mac book air

    how to run disk utility mac book air it is very slow on boot up

    Here's a general article about slow startup: http://support.apple.com/kb/PH10929
    It suggests there may be a third party hardware issue.
    Otherwise, you can boot from your recovery disk as shown here: http://support.apple.com/kb/PH10603
    Your recovery disk was automatically created when Lion was installed.  You'll have it as a separate partition and be able to boot from it as if it were a separate disk.

  • How to run jpximport utility port OAF project to another PC?

    Dear gurus,
    I have OAF JDev project (OAF Extension) on PC A. I need to be able to load the same OAF extension into a different db instance running jpximport utility on a different PC B. How do I move (port) the project? Looking for any documentation on the subject. Can someone kindly advise.
    Thank you.
    Anatoliy Smirnov

    Please disregard.
    Thank you
    Anatoliy

  • How to run wrap command

    Hi,
    I want to run wrap command for encryption.
    I am a bit confused about syntax.
    Can anybody help.
    Prashant....

    I am a bit confused about syntax. Have you read the documentation? If so, which part of it is confusing you?
    Cheers, APC
    Blog : http://radiofreetooting.blogspot.com/

  • How to run FVC utility for Weblogic server?

    Hi all,
    I want to use FVC(Form Version Controller) utility to update the database for some users.
    I have provided the required parameters in the "fvc.properties".
    When i run the utility from command prompt it is just printing the parameters given in the fvc properties file and the execution stops.
    When i check the database nothing is updated.
    I'm using BEA-Weblogic Version 8.1 as application server.
    But in another environment where I'm using OC4J as application server I'm able to run the FVC utility and it is also updating the database.
    Is there any other steps that we have to follow ,if we want to use this utility for Weblogic?
    Thanks.

    Hi,
    The following is script found in fvcutil.cmd
    @echo off
    setlocal
    if "%1" == "" goto usage
    if "%2" == "" goto usage
    call classpath
    set CLASSPATH=%CLASSPATH%;.\lib\xlFvcUtil.jar;.\ext\jbossall-client.jar;.\ext\weblogic.jar;.\ext\oscache.jar;.\ext\javagroups-all.jar;.\ext\commons-logging.jar
    D:\oracle_dev_design/xlclient/java\bin\java -DXL.FvcProps=fvc.properties -DXL.HomeDir=. -Djava.security.auth.login.config=.\config\authwl.conf com.thortech.xl.util.fvcutil.FVCUtil %1 %2
    goto end
    :usage
    echo.
    echo "USAGE : fvcutil.cmd <USERNAME> <PASSWORD>"
    echo.
    :end
    endlocal
    authwl is set properly. But when we run this command we get only parameters given in the fvc property file.
    But when we run the same in another environment using (OC4J Application server) we are able to update the database using fvc.
    Please guide us out on this regard to execute the same in weblogic server enabled environment.
    Thanks

  • How to run pm-util hook not as root?

    My mouse settings do not restore when waking up from sleep, so I need to issue "kcminit mouse." But if I run it with
    sudo -u user kcminit mouse
    I get
    No protocol specified
    kcminit: cannot connect to X server :0.0
    Anyone have any other ideas to solve this?
    Last edited by boast (2012-09-11 13:36:44)

    boast wrote:yep, I think so. thanks!
    nm. It worked when running it as root, but when pm runs the hook, I still get
    kcminit: cannot connect to X server

  • How to run LCM Utility????

    Hi,
    I want to LCM utility to migrate WebAnalysis 9.3.1 reports from Test to Prod env. i searched for doc in oracle site but they are bit confusion(as im new to this Hyperion) can any one help me in porviding an easy to understand doc.......
    Vijay....

    Hi,
    Personally I never had much success with LCM in 9.3.1, I am not saying you can't use it but it can take more time than its worth, it was not until V11 that it became a utility worth looking at.
    If it is not many reports it might be easy just to export them from studio and then import them into your target environment.
    I take it is this doc you are reading http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/hss_alcm_util.pdf ?
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • When I reboot my mac it automatically launches disk utilities. i have run the utility. all clear. but each time i reboot i get the disk utility. how do i override so i can have my hard drive back?

    When I reboot my mac it automatically launches disk utilities. i have run the utility. all clear. but each time i reboot i get the disk utility. how do i override so i can have my hard drive back?

    What OSX version is it?
    Does holding alt key at bootup show any boot choices?
    Does holding Shift key at bootup to boot in Safe mode do the same thing?

  • How do I run Disk Utility in Tiger?

    I want to run Disk Utility and it says I need to run it from a start-up disk, but it won't let me from the installer disk.
    How do I make a start-up disk so I can run Disk Utility?

    Hi! HERE are the instructions. Tom

  • How do i run disk utility?

    how do i run disk utility?

    Open Disk Utility which is in the Utilities folder. Can't tell you more  because you have not provided information on what you wish to do with it.

  • How to run repair in disk utility without a start up cd

    Hello,
    I have a macbook pro 2.3 GHz i5.  I have run disk utility and it says that my disk needs to be repaired.  It says I should insert the start up CD and then run repair but my mac book did not come with a disk. I ran disk utility because there are 247GB of miscellaneous files on my computer.
    Any help gratefully received. 

    Lion has the 'install disk' built in.
    You access it by restarting your mac and holding down the 'command' and 'r' keys. When the disk icons appear, choose the 'Recovery HD' icon. In the menu up the top, you can choose Utilities > Disk Utility.

  • How Do I Wrap Text Like the iOS Camera App?

    Hello. I am in yearbook, and I have been challenged with designing the cover of the yearbook, and I have been having a few problems along the way. One of these problems is to wrap text. Specifically, I'm stuck on how I would wrap text like the iOS camera app on the bottom of the screen. The words seem like they are wrap around a 3D object to give it that effect, but I can't really tell. If anyone can help me, it would be greatly appreciated.

    JJMack wrote:
    There is a big difference between being a casual user than real work or development. I own a iPod its a great MP3 player and a device I can display my pictures on out of my pocket. I'll even Facetime my kids at time to see my grand kids or help fix something.  My wife has a mini iPad for quick internet access and quire music and uses her iPod to entertain our two year old grandson with games.   She uses a Canon 1D mark 4 and I a Cannon 1D mark II.  The only use the iPad and iPod cameras get is Facetime. No iOS apps are use to work on images  they have no value when you have Photoshop. The iPod is better for displaying image then the iPad mini it has a 3:2 aspect ratio display and travels better the the mini iPad which has a 4:3 aspect ratio display.  I also crop image for display on wall mounted HDTV. The iPad is better for casual internet access then the iPod. All our kids have iPhones and they all use computers either Mac or PC for work and internet access.  When you have a Unix or Windows why would you want to touch an iOS device for work or serious internet access.  Apple mobile devices are convenient for casual use and grand kids don't get that dirty finger painting on them as they do using real paint. Nothing of real value is maintained on an iOS device.
    Well...there's Photoshop Touch and Photoshop Mix as well as Lightroom Mobile. It could be argued that they're don't exactly mirror their desktop cousins, yes, but they weren't meant to be. They were meant as extensions to the desktop experience.  (e.g., Lightroom Mobile lets one work with the RAW images they have in their Lightroom desktop collections.)
    The more powerful Windows tablets can run Photoshop desktop (like Photoshop CC) too.
    @bluebocat: Are you looking for text with a perspective? Like it has a vanishing point? As if it was turned in a certain direction in 3D space?

  • Need to run disk utility on iMac G4 with OSX 10.3.9/Hardware disk 10.2.7

    I have an iMac G4 currently running with OS X 10.3.9, which was installed on it after it crashed a few years ago. I don't have any retail disks that match OS X 10.3.9, but I have the original manufacturer's hardware disk that came with the computer, which contains Mac OS version 10.2.7.
    My question: In order to run disk utility and repair errors on this computer, do I need to purchase a retail version of the OS X 10.3 disk, or is there some way to run disk utility without the proper OSX disk? I read about checking for possible file system issues using fsck with OS X 10.3 or earlier—is fsck a viable option for me?
    My computer is not having any substantial problems, but I want to avoid any by running Disk Utility now ...
    Thanks in advance for any and all advice!

    Welcome To  Discussions poptartsheart!
    "...OS X 10.3.9, which was installed on it..."
    How was it installed, and by whom?
    You should have been provided a set of the Full Retail Version, of the Panther Install CDs, at that time.
    "I read about checking for possible file system issues using fsck with OS X 10.3 or earlier—is fsck a viable option for me?"
    You can run fsck, as instructed in this KB Article Resolve startup issues and perform disk maintenance with Disk Utility and fsck, but you really need to have a set of the Panther 10.3.x Full Retail discs.
    If you know what to look for, a Full Retail Version, of the Panther Install CDs, can be purchased, sometimes inexpensively, at some online Apple retailers, Amazon, eBay, FastMac, HardCore Mac, AllMac, etc.
    ali b

  • HT203176 i have a slow macbook, i ran live disk utilities and said I need to repair disk from a cd. did that, I got volume repaired from the external disk. when I reboot from hdd, then run disk utility, I get the same error message i did b4 repair

    i have a slow macbook, i ran live disk utilities (from hard drive), turned out I needed to repair disk from a installation disk. Did that, I got the volume (Hard drive) repaired from the installation disk disk. To this point, great!
    When I reboot from hdd, then run disk utility, I get the same error message i did b4 repair. I went thru two rounds of this.....
    Can anyone help? thanks

    Sorry guys, I don't see how to reply to you so I use reply to "me" basically.
    So the error I get is "volume header needs minor repair" and then you need to perform repair from the installation disk message.
    I did repair not verify from the disk twice. Every time ending in the "the volume had ha been successfully repaired". Then I reboot from the internal disk. Run disk utilities from it, do verify and get the same error message I got before repair. I hope this can shed some light fr you guys. Sorry I didn't include details in the original
    MEssage.

  • Unable to reload os or Run Disk utility off osx dvd

    Late 2007 Macbook Pro ( 2.53 , 4gb Ram, 320 GB hd) Will Load into osx but has the grey status bar at every boot ( Approximate 10 Mins for full boot) Ran disk utility in osx found issues and says run off DVD to repair the disk. Ran disk utility off the original DVD that came with the mac, wont find the hard drive to run disk utility. try to reinstall the OS. The installer wont find the hard drive? any idea how to resolve the issue so I can re install the OS to remove the grey status bar.

    CentCorey wrote:
    I can make a partition on the HD.
    You'll have to decide which works best for you:
    -boot from install disc, partition the external HD, install OS X on it, boot from it and see if HD shows up there so you can try to repair it (make sure you don't wipe out your TM data; your internal HD may not be reliable).
    -get DiskWarrior or TechTool Pro or another disk repair utility and see what it can repair (note that these are more expensive than a new HD, but can come in handy to have around).
    -get one of the SMART utilities that supposedly tell you more about your HD (I'm not a fan of either of the ones I've seen/tried and am far from confident in their results).
    -get a new HD and try restoring from your TM backup.
    -get an external enclosure (15 bucks or so for a USB model from newegg, amazon, macsales and others).

Maybe you are looking for