How to create a package with the procedures?

Referring by the net, I've written the following PCK file. I installed my Oracle database 11g in VirtualBox (Win XP). I can able to select tables using the query from the host (Windows 7)

CREATE OR REPLACE PACKAGE APEX_SYS_PCK

AS

TYPE refcursortype IS REF cursor

PROCEDURE GET_USER_DETAILS)

D1 ON refcursortype,

P_USER IN VARCHAR2,

P_PASS IN VARCHAR2);

END APEX_SYS_PCK;

/

CREATE OR REPLACE PACKAGE BODY APEX_SYS_PCK

AS

PROCEDURE GET_USER_DETAILS)

D1 ON refcursortype,

P_USER IN VARCHAR2,

P_PASS IN VARCHAR2)

IS BEGIN

OPEN D1 FOR SELECT * FROM APEX. PEOPLE;

END GET_USER_DETAILS;

END APEX_SYS_PCK;

/

When I try to run the script, I get the following error. How to solve this problem? If there is an error in this package please correct!

  • Project: sqldev.temp:/IdeConnections%23vAPEX.jpr
  • F:\PACKAGES\APEX_SYS_PCK. SQL
  • Error: PL/SQL: analysis of completed Compilation unit
  • Error (1.14): PLS-00905: APEX oppose. APEX_SYS_PCK is not valid
  • Error (1.14): PLS-00304: impossible to compile 'APEX_SYS_PCK' body without its specification

You are missing a semicolon after

TYPE refcursortype IS REF cursor

in the specifications of your package.

Tags: Database

Similar Questions

  • How to create two employees with the same name as the vendor record?

    Hi all

    We must create a vendor for the employee record, so that we can issue pretty invoice for cash payment. If there are 2 employees with the same name, how can we create records of supplier for these 2 employees? The system does not have the name of the provider in duplicate.

    Please notify.

    Kind regards
    HY

    Hello

    In R12, it is possible to create 2 employee with the same name but with a different number.
    And it is also possible to create these 2 employees as suppliers in Payables.

    HTH,
    Vik

  • How to create a recovery with the Image of the DVD of Windows 7 Partition?

    My laptop got screwed that I started a month on vacation and no DVD of Windows 7 with me. I think that the best solution would be a partition with a bootable Windows 7 DVD image.

    Any suggestions on how to make a? -Nigel M

    Make a Windows 7 image and store it on a separate partition

    1. create a partition large enough to store an image of your Windows 7 installation
    2 make a Windows 7 image and save the image on this partition
    3. with the program allowing you to make the image to burn it to a bootable recovery CD Imaging
    4. If you need to restore the image, insert the CD to boot and start the restore process.

    Create a System Image in Windows 7

    After you install and activate Windows 7 create a system image as a backup of your current computer in case you need to reinstall it. That will save you the trouble of having to reinstall Windows 7 and installed everything currently again, and it takes much less time to do.

    1. click on the Start Menu and type "Save", and then click Backup of your files.
    2. in the Control Panel window that appears, click the blue link to the image.
    3 create a system image window should pop up.  Select which hard disk, DVD, or network location, you'll save your image.  Click next to continue.
    4. on the next page, check disks in your system and your system for.  Once you have selected the drives, click next to continue. Note: You can select as many records as you want (if available), but you choose to include means to the greater will be the size of the image.
    5. the next window is just a review, make sure everything is correct, and then click Start backup to start the process.  It may take 10 minutes or more, so patience is needed.
    6. once the backup is complete, you? He's prompted with the option to create a system repair disc.  It's a good idea, just in case your system has problems in the future.  Click Yes.
    7 choose which disc recording drive you? He's use to burn the disc.  Insert a CD or a blank DVD for the physical disk, and then click on create disc.

    How to restore Windows 7 from a System Image
    http://www.howtogeek.com/HOWTO/7702/restoring-Windows-7-from-an-image-backup

    You can also use a disk imaging hard program - they both allow you to create a rescue disk.

    Reflect disk imaging:
    http://www.Macrium.com/reflectfree.asp

    Paragon Backup & Recovery Free Edition:
    http://www.Paragon-Software.com/home/DB-Express/download.html

    Windows 7: create a Partition of Installation of system to install Windows (I nstallation Partition, not an image)
     
    (1) create a partiton of 3.5 GB at the beginning of the hard drive, then the rest of the hard disk you want to partition.
     
    (2) copy the whole DVD on this 3.5 GB partition and make the partition bootable.
     
    Open the command prompt and run the following:
     
    x:
     
    CD/Boot
     
    x:\boot\bootsect/nt60 x:
     
    (where x is your score)
     
    A message "startup code has been updated on all targeted volumes" should appear.
    Then, verify that the partition is marked "active" in disk management.
    If necessary, right-click on the partition and 'mark the partition as active.
     
    (3) upon reboot of the PC will automatically launch the partition setup and add an entry 'Windows setup' in the BCD entries. If this is not the case, change the boot with EasyBCD menu. http://NeoSmart.NET/DL.php?id=1

    Questions about installing Windows 7?
    FAQ - Frequently Asked Questions from Installation Windows 7 & responses

  • How to create a share with the shape of a friend

    Hello

    Anyone know how to create a form of "share with a friend"? It is about sharing a simple html page not an e-commerce site or a blog page.

    FYI a link:

    http://i-communicate.com.au/new/media-handling.htm

    See you soon

    Micha

    Found that I need to add or change the {module_siteurl) to {module_pageaddress} to refer to a specific page.}

  • How to create a grid with the tables and Boolean values?

    As part of a larger project, I'm trying to create a Subvi, which will allow me to spend a "cursor" in a 3 x 3 matrix.

    It should be 2 Boolean inputs, one for move them down in the table and the other to move them to the right. Once reached the edge of the table, the "cursor" will start back at the beginning.

    I have a vague idea of a table to 2 dimensions with LED. Once 'down' has been selected, the corresponding light to (0,0), light (0.1). Goes the same for the button 'right '. When 'down' is pressed (0.2), the LED should turn off, and LED (0,0) must light up.

    I'm sure it has something to do with the initialization of the tables, but I can't seem to find the right way to do it.

    Any help is much appreciated. Thank you!

    Your array is always empty.  Look at the detailed help for the function page replace table subset.  He says that the function has no effect if the specified index refers to a location outside the table.

    What you see on the Panel is only a view and has nothing to do with what is in the table.

    Lynn

  • How to create a logo with the letters in 2 different colors

    I need help with a logo. I am trying to create a logo were it is as if a light shines on the type then part letters are in 2 different colors.

    Set the type by using the text of point tool (meaning click then type, no click-drag-release then type). Using objects of type two, one for each line.

    Draw the path of the light with the pen tool, fill it with yellow and move it to the back (object > Arrange > Send to back).

    Select the first line of text and the spotlight and go to object > clipping mask > make.

    Now simply select objects of type with the direct Selection (white arrow) tool and fill them with the blue wire.

  • How to create a file with the 'location' visible tab

    Hello

    Recently, I accidentally deleted the videos folder. This record had the feature to appear in my "personal folder", but seen its physical location elsewhere. My question is: How can I create a folder I can show in my "personal folders" yet still have this physical place besides? It doesn't work with a regular folder since it doesn't have the 'location' tab, then how do I do it?

    Hello

    You can check the following link and try to create a new user account and check if the problem occurs or not.

    Create a user account

    If the problem does not occur, then check out the following link and follow the steps to repair the corrupted user profile:

    Difficulty of a corrupted user profile

    Hope this information is useful.

  • How to create a CD with the OEM of the WinXP operating system?

    Hi all

    I recently bought a Tecra A7 that has Windows XP OEM preinstaled. My question is: has Toshiba any tool to create the WinXP CD? If not, why so and how can I do this cleanly? I want my PC to do the tests and I probably have to format in the future!

    Thank you to
    Pedro

    Hi Pedro

    Yesterday, I created a backup image on my laptop because I want to test the new Vista and my Xp was preinstalled on your laptop.
    In any case, I used an application of Symantec Ghost. I used it several times and I think it s very nice and useful program to perform a backup and restore. You can create a clean bootable CD or DVD, or you can save the file to the image on the second partition

    I guess you don t have a Toshiba restore CD. Am I wrong?
    I have a very dedicated forum user and, recently, I have read in the forum that Toshiba offers an option for the creation of a clean driver & tools cd of Mr. perhaps you will find an option to create an image, but I don't know m.
    AFAIK you should find it in assistance under protect & difficulty tab.

    But if you want to save your picture using the program like ghost.

  • How to create an app with space name?

    Hi all

    How to create an application with the space, for example "Hello Word" name When I run my Simulator, I got ' Hello$ 20World "instead. I use the plugin for eclipse for development. I can see the Application descriptor for my application, and it shows the thin space. I tried to change the Blackberry project properties tab generate file output name, but it doesn't help in any way. Please advise...

    Goto Blackberry project properties

    Click the general tab

    Write in title = "Hello World".

    and you can see your title of the modified project

    I hope that you ask for it only!

  • How to create an association in the control panel to the default programs with windows 8?

    Separated from this thread.

    HOW to CREATE a LINK WITH MY EMAIL(*** Email address is removed for privacy ***) BY THE DEFAULT PROGRAMS CONTROL PANEL?

    BM

    If you use a browser to access your e-mail, it is the question.  You can set a default e-mail application if you have an e-mail application and the browser is NOT a messaging software.

    Install an e-mail client and it will work, and that's why it worked on XP because you probably had Outlook express installed.

  • I created a project with the first 14 and now subscribed elements trial version. However, when I open it there still the band "created with the trial version...". "in the middle of the page. How can I get rid of this?

    I created a project with the first 14 and now subscribed elements trial version. However, when I open it there still the band "created with the trial version...". "in the middle of the page. How can I get rid of this?

    SAMT

    Removal of watermark Adobe Premiere elements 14 test of the project file... Open the project file of 14 trials in 14 items purchased and then first Expert rendered workspaceTimeline Menu/delete the files. Then restore the timeline content.

    You can not remove the watermark from Adobe to an export of the trial even after you bought the product.

    Some of us have found that just opening the project of tryout in removes it from Premiere Elements purchased the Adobe watermark. Determine the way that works for you.

    Please let us know if everything above worked for you.

    Thank you.

    RTA

  • How to create a button with rollover that appears in a different place than the button when you move?

    Hello

    How to create a button with rollover that appears in a different place than the button when you move by using only the Muse (reversal may be a different shape and color of the button). I managed to do it using Photoshop and the separate layers and import it, but it is not a good solution. All suggestions will be welcome.

    Thank you

    You can try to use the widget of the Composition of the ToolTip. In this way, the trigger area is isolated and a "State of reversal" can be placed anywhere on the screen (compared to the trigger).

    • Remove the two triggers additional default
    • Set to display the targets on working capital
    • Select hide all initially.
  • How to create a window with its own window border other than the local system window border?

    How to create a window with its own window border other than the local system window border?

    For example, a border: a black line with a width of 1, then a transparent line with a width of 5. Inside, it's the content pane.

    In JavaSE, there seems to be for the JFrame paintComponent() method to realize the effect.

    I can't see what you're trying to do now: it's a little trickier. You need stage.initStyle (StageStyle.TRANSPARENT), and I think you have to imitate the transparent part of the border by the presence of a second vessel inside the root container, properly positioned.

    Something like:

    
    import javafx.application.Application;
    import javafx.application.Platform;
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.scene.layout.AnchorPane;
    import javafx.scene.layout.StackPane;
    import javafx.scene.paint.Color;
    import javafx.stage.Stage;
    import javafx.stage.StageStyle;
    
    public class CustomBorderExample extends Application {
    
      @Override
      public void start(Stage primaryStage) {
      AnchorPane root = new AnchorPane();
      root.setStyle("-fx-border-color: black; -fx-border-width: 1px; ");
    
      StackPane mainContainer = new StackPane();
        AnchorPane.setTopAnchor(mainContainer, 5.0);
        AnchorPane.setLeftAnchor(mainContainer, 5.0);
        AnchorPane.setRightAnchor(mainContainer, 5.0);
        AnchorPane.setBottomAnchor(mainContainer, 5.0);
      mainContainer.setStyle("-fx-background-color: aliceblue;");
      root.getChildren().add(mainContainer);
    
      primaryStage.initStyle(StageStyle.TRANSPARENT);
      final Button closeButton = new Button("Close");
        mainContainer.getChildren().add(closeButton);
        closeButton.setOnAction(new EventHandler() {
          @Override
          public void handle(ActionEvent event) {
            Platform.exit();
          }
        });
      primaryStage.setScene(new Scene(root,  300, 200, Color.TRANSPARENT));
      primaryStage.show();
      }
    
      public static void main(String[] args) {
      launch(args);
      }
    }
    
  • How can I create a query with the data control to the web service?

    I need to create a query with the order of web service data, WSDL, it is query operation, there is a message of parameter with possible query criteria and a return message contains the results. I googled but can't find anything on the query with the web service. I can't find a criterion "named" to the data control of web service as normal data control. Blog of Shay, I saw the topics on the update with the data of web service command. How can I create a query with the data control to the web service? Thank you.

    Hello

    This might help

    * 054.     Search form using control data WS ADF and complex of entry types *.

    http://www.Oracle.com/technetwork/developer-tools/ADF/learnmore/index-101235.html

  • When and how to create a package

    I have a doubt about how Oracle loads a package.
    Suppose I have a PACK1 package with N procedures inside. When I execute a statement such a PACK1 EXEC. PROC3(), Oracle loads all the package PACK1 N procedures in CMS? I ask for a simple reason. I usually create a package according to the fact that all the procedures inside this package are 'connected' among them somehow. A colleague of mine told me that he would like to put in a package even certain procedures more even though they are not all called among them, but because thay somehow deal with the same subject. Because I think that Oracle loads all the package in the SGA, according to me, it would be wise to put inside a package only procedures called among them.
    Can you help me?
    Thank you!

    Mark1970 wrote:
    I have a doubt about how Oracle loads a package.
    Suppose I have a PACK1 package with N procedures inside. When I execute a statement such a PACK1 EXEC. PROC3(), Oracle loads all the package PACK1 N procedures in CMS?

    Whenever any element of the package is referenced, the whole package is loaded into memory and (assuming it's not aged) remains in memory for future use.

    I ask for a simple reason. I usually create a package according to the fact that all the procedures inside this package are 'connected' among them somehow. A colleague of mine told me that he would like to put in a package even certain procedures more even though they are not all called among them, but because thay somehow deal with the same subject. Because I think that Oracle loads all the package in the SGA, according to me, it would be wise to put inside a package only procedures called among them.

    You are right. Also if other elements in the package are necessary overhead to call are very weak, because they are in the same memory area. This means that you can and should group related program units so that they can share data structures when necessary and call each other with a minimum load

Maybe you are looking for

  • Speed of the mouse in the Sierra

    Since installing beta Sierra (5) and now the GM, scrolling of the magic mouse and trackpad are accelerated to an unusable level on some applications. I noticed with VLC (volume control) and Minecraft (Browse items). I've adjusted down to the lowest s

  • Satellite A500: Multimedia keys do not work after Win 8 upgrade

    Hi everyone, I run Toshiba SATELLITE A500 - 1C0 (PSAR3E-01300WPL) with Windows 8 PRO x 64. As I noticed - post factum /:-'Models supported' not supported for Windows 8 drivers of my PC. Although, the computer will work perfectly, but I have a little

  • Vista - Error Codes: D 8007041 & dt000 (could not install KB983589)

    Hello I have Vista Ultimate 64 and am fully aware of the updates except for this one I've tried to install five times, including with my AV is turned off. The installation has failed and is reversed after reboot. How can I fix it. Thank you Daniel

  • Unable to boot, I got an error message: c0000139

    Original title: STOP: c0000139 error Get a STOP: c0000139 {entry point not found} error msg - then he found no gdigetbitmapssize.  I doesn't happen in safe mode or get the last know configuration work. Any ideas?

  • front camera XA not developed

    HY, everyone, I just bought a xperia xa and noticed that the front camera is not focusing. concentrated its just 5 cm from the lens. all solutions?