How to make my package body hide in oracle......

hi all,
i have a package, and i want to hide my package body only not spec;
i searched in websites, but not getting the correct answer,,
help me.
Edited by: 887268 on Sep 28, 2011 1:10 AM

887268 wrote:
hi all,
i have a package, and i want to hide my package body only not spec;
i searched in websites, but not getting the correct answer,,
help me.
Edited by: 887268 on Sep 28, 2011 1:10 AMMake it hide for other users?
So use grant / revoke privileges

Similar Messages

  • How to wrap a package body in the Oracle Cloud

    Does anyone know if it is possible to wrap a PL/SQL package body in the Oracle Cloud? I tried to wrap it on my local machine and then upload it but when I ran it, it said the wrapped package was corrupt. DBMS_DDL is a lot of extra work and only works for packages <= 32K. Is there any other way to do this?
    Maybe in the SQL Workshop, upload script section, there could be an option to wrap code when you run it?
    Thanks,
    Steve

    Rick,
    Thanks for the quick response. I used the SQL Workshop, script upload function (in Apex) to upload a package that I wrapped on my pc (Windows 7) using the wrap command line utility (11g). It uploaded fine but when I tried to run it, it returned a message like "Wrapped code is invalid or corrupted". This was not what I would have expected since I know you can import/export wrapped code between systems (different OS) without issue. Perhaps the command line wrap is OS specific and the import/export is doing some kind of translation?
    Anyway, I know you cannot use the command line option directly in the cloud because, as you say, you don't have access to the command line. DBMS_DDL is too tedious to use and has the 32K limit and unfortunately, there is no command like, "Alter package body xxx compile wrapped". So that leaves using the SQL Developer Cart option to move wrapped code from a local db to the cloud db. Unfortunately, I'm still having roles and permissions issues with my account which Oracle Support hasn't been able to fix over the last few weeks so I can't try this option (or even login using SQL Dev). Has anyone tried to do this? Does anyone know of another way to do this that I'm not thinking of?
    Thanks,
    Steve

  • How to open a package body in Oracle sql developer

    How to open a package body in Oracle sql developer..any shortcut for that

    I need another way to get to my package body. I'm on a locked down system, so the only way I can reference anything is if I already know the name of it. I accidentally overwrote my text document that I was using to work on it and I closed out of the package body in sqldeveloper. There must be a command, like an alter or some such. Anyone know the old fashioned way of looking at a package?

  • How to compile all package body using sqlplus ?

    hi all,
    How to compile all package body using sqlplus ?
    Please help.
    Amy

    dbms_utility.compile_schema will compile all the invalid objects in a schema, including the invalid package bodies. If you only want to compile the invalid package bodies, you could write your own dynamic SQL stored procedure to do that using the user_source view, but that's a lot more effort for a very minimal benefit.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Need help: how to make a package into a jar file?

    I tried to make a package into a jar file by using:
    jar cf a.jar packagedirectory
    But when I import one class of this package in an other application, by using:
    javac -cp path\a.jar; app.java
    the compliler can not find the calss.
    The interesting thing is if I do not put the package into the jar file, it works well.
    Here is my sample code under path D:\b\b1
    package b1;
    public class Son
         int x = 10;
         public Son(){
         public int getX(){
              return x;
    and the application code under path d:\b
    import b1.Son;
    public class Father
         public Father(){
         public static void main(String[] args)
              Son son = new Son();
              System.out.println("Hello World!"+son.getX());
    Thanks for any advise.
    Xin Cheng

    You must make sure that you are in the right directory
    when you do your jar command to create the archive.
    [home/trejkaz/proj/test/classes]% jar -cf a.jar
    path/to/package/*.class
    Thank you very much.
    Yes, I did as what you said, but it does not work.
    Here is what I did:
    1. Edit Father.java in D:\b
    2. Edit Son.java in D:\b\b1
    3. Compile Son.java
    4. Complie Father.java
    5. Make the a.jar by
    command jar cf a.jar D:\b\b1\ (I cheked the content of the a.jar, it seems right.)
    a.jar is in directory D:\b
    6. Delete Son.class in D:\b\b1
    7. Run Father.class by
    command: java -classpath D:\b\a.jar; Father
    error message is: Exception in thread "main" java.lang.NoClassDefFoundError: b1/Son
    at Father.main(Father.java:11)
    What is the problem?
    Thanks again.

  • How to export UTL_ENCODE package body in Oracle9i?

    I want to export UTL_ENCODE package and import it into Oracle8.1.6. Because its package body is wrapped, I can't copy and paste the code. Is there any other way to export the package? thanks for your replying.

    Wrapped source compiles just as plain text does. However, it is not backwards compatible. So if the UTL_ENCODE was wrapped with the 9.0.1 wrap binary then the 8.1.6 database won't understand the wrapped source. You can go forward though.
    Even if you had plain text source - it isn't generally a good idea to move Oracle Builtins to a backward version.
    Two workarounds:
    1) roll your own - as it isn't a tremendously complicated package.
    2) If your 8.1.6 database shares a network with a 9i database, use a database link to get at the functionality you need.
    Michael O'Neill
    Publisher of the PigiWiki
    clever-idea.com

  • How to make SSIS packages automatically read the input file from a path?

    Currently I am using a SSIS package to read data from a .dat file and load it into SQL Server tables.
    I am placing the input .dat file on the desktop. In the connection manager -> Browse option, I am pointing this file to create connection.
    The file naming convention is like - aSNAP_Data_20140926_P-2014-09-26_07.02.36
    However, I need the SSIS package to automatically read the input file from a folder which is located in a remote server. This folder has lots of files where input files are added on a daily basis with the date value in the file name as mentioned above.
    I want to schedule the SSIS package to run daily and take the latest file in the folder based on the date.
    Please let me know how to do it. Any help would be highly appreciated.....
    Thanks in advance.

    Hi SQL_SSIS_Dev,
    According to your description, you want to get the latest file from a path to a SQL Server table. After testing the issue in my environment, we can refer to the following steps to achieve your requirement:
    Create two variables, VarFolderPath stores the folder path in which our files exist, VarFileName hold the value of most recent File Name.
    Drag a Script Task from SSIS Toolbox to Control Flow Pane, then select “User::VarFolderPath” as ReadOnlyVariables, select “User::VarFileName” as ReadWriteVariables.
    Then Edit Script with the C# code below:
    Add “using System.IO;” into namespace.
    Add the code below under Main function:
    var directory= new DirectoryInfo(Dts.Variables["User::VarFolderPath"].Value.ToString());
                FileInfo[] files = directory.GetFiles();
                DateTime lastModified = DateTime.MinValue;
                foreach (FileInfo file in files)
                    if (file.LastWriteTime > lastModified)
                        lastModified = file.LastWriteTime;
                        Dts.Variables["User::VarFileName"].Value = file.ToString();
    Drag a Data Flow Task to Control Flow Pane and connect to Script Task.
    In the Data Flow Task, drag a Flat File Source with a file in the source folder as all the files have same structure as the File name.
    Add the property below the Flat File Connection Manger expression:
    Property: ConnectionString      Expression: @[User::VarFolderPath] +"\\"+ @[User::VarFileName]
    Drag an OLE DB Destination that connect to the Flat File Source, then configure a table to store the data.
    The following screenshot is for your reference:
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • How to make bouncycastle package available in midlet???

    i try to import tis few packages: import org.bouncycastle.crypto.*;
    import org.bouncycastle.crypto.engines.*;
    import org.bouncycastle.crypto.modes.*;
    import org.bouncycastle.crypto.params.*;
    but i error occurs saying class not found...does midlet allows the use of bouncycastle class??

    Hello Katharina,
    Run SAP MMC and right-click to SAP R/3 Systems.
    Choose properties and go to Fixed tab.
    In 'System' field enter Your SID (e.g. EBP)
    In 'Instance' field enter hostname<space>instance number (e.g. epb01 10) Remember, there is space between ebp01 and 10.
    Click on 'Add' button and then OK.
    Best Regards,
    Marcin Gajewski

  • How to make a package and import it later

    Hi folks,
    this is a very basic question but it is not working to me so i will appreciate your comments.
    I had programmed many classes that are going to be used in many projects so they must be part of a library. Tell me whether or not this procedure is correct ?
    Compile those classes into .class files. Create a package with the jar application putting the .class files into a single file called my_utils ( .jar or .zip ?). Import the package from other projects using the import directive and storing the my_utils file in the project's library directory. Is this correct ?
    Many thanks in advance
    Marla.

    If you want to create a package and then put the package into a jar file, first compile into .class files (in appropriate package directories), then jar all of the .class files.
    Here's a link for a tutorial on packages. http://java.sun.com/docs/books/tutorial/java/interpack/packages.html
    Here's a link for a jar file tutorial. http://java.sun.com/docs/books/tutorial/jar/index.html
    You do not have put the .class files into a jar. Java packages are used for organizing classes, managing class name space, and controlling access to classes. Java jar files are a way to put multiple classes into a single file while compressing the content. Jar files can contain multiple packages and packages do not have to be inside of jar files.

  • How to make a text formatting tools in oracle developer suite 10G R2

    Dear Oracle Expert,
    This is my configurations:
    ===============
    1) OS-> windows 7 (Ultimate-32bit)
    2) Oracle Developer Suite 10G R2
    3) Oracle Database 10G
    I create this form but i want it in that way. So, i can format the text written in text box, such as BOLD, Italic, make a url link etc.
    How can i do that using Oracle Developer suite 10G R2.
    Best regards,
    Shimul

    Mr.François Degrelle ,
    Is this the proper command for sign-in the jar file
    set PATH=C:\DevSuiteHome_1\jdk\bin;%PATH%
    C:\DevSuiteHome_1\forms\webutil\sign_webutil     C:\DevSuiteHome_1\forms\java\frite.jar
    I am bit of confusing for this command C:\DevSuiteHome_1\forms\webutil\sign_webutil cuz here sign_webutil is used for webutil configuration. Just let me assure, that this is the right command or not. And if your answer is no, then what it will be.
    Thanks in Advance

  • How to make a small finance application in oracle?

    Hi all
    I am an oracle dba but one of my friend's asked me to make a small finance application for his company which can use small calculation/accounts. I know plsql and some understanding for Forms etc . where should i start? please note that logical design of database is done. Making database and tables etc is not issue for me. The issue is how to design front end and what tools to use?
    An other query is. if he can use this application free on oracle or he has to buy some licence from oracle. please note that he is running a very samll charity organization?
    i would appreciate you help
    Regards
    malikdba

    Thank you all
    bye

  • How to make an organization specific request from Oracle Apps

    Hi All,
    I am trying to build an application where, I need to send a organization specific shipping request to the third party application. i.e when I try to send a request the application should ask me from which organization request should be sent like (change organization functionality in Inventory responsibality). How can I impliment this. what all I need to consider. Any suggestion is really appreciated..
    Thanks,
    Kishan.

    Thanks kglag, for trying to help,
    As i posted in another forum the problem was in the free flex example which i used to add another state and by using SWFLoader to  embed my swf file.
    Now i was created my own flex app and add SWFLoader to embed my swf and voila - it works!
    There is no cross-domain loads  the loaded content is in the same domain.
    So, again thanks!

  • How to make Firefox access the internet from Oracle Ent. Unbreakable Linux?

    Hello
    I have a Dell Duo Core x86 laptop that multiboots Windows 2003 Server, Windows XP and Oracle Enterprise Unbreakable Linux. I use Internet Explorer to
    access my email while at the library so I know my laptop can access the internet. I just installed the Oracle Enterprise Unbreakable Linux in text mode and
    I can still access the Internet but only if I use one of the Windows operating systems which is why I am keeping them for now. The reason is because when I
    use Oracle Enterprise Unbreakable Linux, when I select Firefox to access the internet I get these messages:
    "Server not found
    Firefox can't find server at www.hotmail.com
    -check address for typing errors
    -if unable to load pages check network connection
    -if computer or network protected by firewall make sure Firefox permitted to access
    web"
    None of those reasons are true for not gaining access to the internet. I want to use Oracle Enterprise Unbreakable Linux from now which is why I installed
    but I need to know:
    1) Why do I get the "Server not found" and the other error messages when I try to access the internet using Firefox and what do I have to do to make Firefox
    access the internet successfully?

    Hi,
    First you must confirm your laptop with Oracle Enterprise Unbreakable Linux can access internet.
    Please open a terminal, input the following command
    1.ifconfig
    2.cat /etc/resolv.conf
    Regards
    Jason

  • How to make simple GUI application that use oracle 9i intermedia

    Mr Lawrence,
    i want to make a GUI application for storing and retrieving image data, can i build this application using delphi?
    i try using borland delphi 7, but delphi doesnt know object type ORDImage and ORDImageSignature. do u have any reference about building GUI application??
    I want my application can do inserting image into database, searching image by matching it's signature, make image signature for query image, displaying image, etc.
    Or if i can't make this application using delphi, maybe u can give me another application developer beside Delphi.
    Please help Mr Lawrence, i'm stuck (T_T)

    I am not too familiar with Delphi.
    If it does Object-Relational types, that could work.
    Can it interface with PL/SQL procedures? If so, that would be the way to go.
    That is what I have done with .NET applications.
    Larry

  • How to make generic the javascript funtion in oracle adf

    hi,
    i created some validation funtion in javascript in resource folder.i am passing parameter input text id(which is in my adf page) in javascript funtion .but i want to use tat validation function for my whole application page.pls help me

    Hi,
    +"i created some validation funtion in javascript in resource folder.i am passing parameter input text id(which is in my adf page) in javascript funtion .but i want to use tat validation function for my whole application page"+
    1. put the JS into an external JavaScriot file and reference it from af:resource. Don't copy it into all your pages
    2. If you have common validation to perform, then create a custom validator instead of calling JS functions
    http://docs.oracle.com/cd/E23943_01/web.1111/b31973/af_validate.htm#autoId20
    Frank

Maybe you are looking for