Creating packages

Hello. I essentially took the example of creating package on the docs to practice on. I have the table and header package created but failed to create the body.
/*
CREATE TABLE 'EMPLOYEE '.
(SELECT "EMPID" NUMBER NOT NULL,)
ACTIVATE THE "EMPNAME" VARCHAR2 (20 BYTE) NOT NULL,
VARCHAR2 (20 BYTE) "JOB."
NUMBER OF "MGR."
"HIREDATE" DATE,
"SAL" NUMBER (8,2).
'EMPLOYEE_PK' CONSTRAINT PRIMARY KEY ("EMPID")
)

create or replace
package emp_mgt as
Return number function hire_emp (name varchar2, varchar2, Manager number, number of wage employment);
procedure sal_raise (int emp_id, sal_incr number);
end emp_mgt;
*/


create or replace package body emp_mgt as
Number of function return hire_emp (name varchar2, varchar2, Manager number, number of wage employment)
is
number of newEmp;
Start
Select max (empid) + 1 in newEmp of the employee;
Return newEmp;
end hire_emp;

I even make full hire_emp not the functionality. Make me:

"Error (14,15): PLS-00103: encountered the symbol"end-of-file"" when awaits one of the following values: start the procedure of pragma end function ".

The function compile outside a package.

you are missing 2 things

1 and END; in the hire_emp function
2. you are missing the sal_raise procedure in the package body

Your package body must be something like that,

CREATE OR REPLACE PACKAGE BODY emp_mgt
AS
  FUNCTION hire_emp (NAME            VARCHAR2,
                     JOB             VARCHAR2,
                     manager         NUMBER,
                     salary          NUMBER)
    RETURN NUMBER
  IS
    newEmp   NUMBER;
  BEGIN
    SELECT MAX (empid) + 1 INTO newEmp FROM employee;

    RETURN newEmp;
  END hire_emp;

  PROCEDURE sal_raise (emp_id INT, sal_incr NUMBER)
  IS
  BEGIN
    UPDATE employee
       SET sal    = sal + sal_incr
     WHERE empid = emp_id;

    COMMIT;
  END;
END;

G.

Tags: Database

Similar Questions

  • How to create packages DBMS_XPLAN in oracle 9i?

    Dear

    How to create packages DBMS_XPLAN in oracle 9i? I Googled it already but I could not the solution.

    DBMS_XPLAN is part of the database. The only way to get it in 9i, AFAIK, is upgraded to a later version

  • How to use Add the media offline option when creating packages with conditioner creative cloud.

    Hi all

    AM creating packages with Creative could conditioner, need to include 'Extension Manager CS6 ' to my list of requests, I downloaded a version and trying to add to the list with the help of add the option offline media, but get the error as media is not appropriate etc...

    Can any body please let me know how to add media offline while we creating packages with Creative Cloud Packager.

    Thanks in advance.

    This is possible in theory, as long as the source media that you add is complete and unzipped. Also if 32 bit it cannot be added to a 64-bit package and vice versa.

    It's not really what this feature is designed for good. It is designed for DVD sets provided to customers who live in areas where poor internet infrastructure that cannot download apps via CCP.

  • My video of CCP series will only create packages in English?

    Hello Adobe community!

    I use the CCP to create a package with video applications:

    * Adobe After Effects CC

    * Adobe Media Encoder CC

    * Adobe Audition CC

    * Adobe Premiere Pro CC

    When I use our serial number for "Creative Cloud ENT 1.0 languages multiple platforms ONE VIDEO SN184" and chose the language: Svenska (Swedish) the created package still installs applications with English as the language. I used the packages of series and with will success created which install in Swedish (can he requests). We created the video package several times to ensuare, we have not been negligent in the creative process but also tried
    install the packages on different computers.

    Are the applications related to the video available only in English or there at - it something on our order paper for "a VIDEO SN184?
    Supplementary question: video applications, are they not available for 32-bit Windows more? they do not show with video series under media current or archived in the CCP.

    Thanks in advance
    Pontus

    Hello

    Video applications are all 64 bits only.

    About your serial number, if you ping Adobe Customer Services they will be able to check it for you. From your dashboard, go to the Support tab and you can open a case from there.

  • Why do we need create Packages?

    Packages that I know are used to group procedures. But why do we create packages when stored proc alone is sufficient.

    user10566312 wrote:
    Packages that I know are used to group procedures. But why do we create packages when stored proc alone is sufficient.

    Why do we use 3GL and 4GL languages when assembler alone enough?
    R: because it makes software development more flexible, convenient and easy to do.

    Why do you drive a car when walking alone enough?
    R: because it does fits more convenient.

    etc.

  • Create Package Spec in OWB

    I couldn't find a way to create a Package specification in OWB.
    If I created the spec and body in sqldeveloper he then imported OWB
    He created the package spec and body, and I could go and change at will.

    Am I missing something?
    Is there a way to create the spec in owb.

    Thank you
    greG

    The package spec and body in OWB only for imported packages appers.
    For OWB spec (not imported) created packages generated automatically based on the specification of function/procedure that you defined for this package

    Kind regards
    Oleg

  • Transformation script: create package

    Hello experts,

    I is currently examining the possibilities of transformation scripts in the SQL developer Data Modeler.

    I'm using version 4.0.3.853 and Mozilla Rhino on a relational model.

    I already understood how to create triggers and sequences in the physical model, but does not have the same approach to the package.

    Create sequences:

    SEQ = model.getStorageDesign () .getSequenceSet () .createSequence ();

    Create a trigger:

    Trigg = model.getStorageDesign () .getTriggerSet () .createTrigger ("TriggerOracle");

    Following these statements, I try to create a package, but does not seem to do things.

    I have already tried:

    CPK = model.getStorageDesign () .getPackageSet () .createPackage ();

    CPK = model.getStorageDesign () .getPackageSet () .createPackage ("PackageOracle");

    CPK = model.getStorageDesign () .getPackageSet () .createPackageOracle ();

    CPK = model.getStorageDesign () .getPackageSet () .createOraclePackage ();

    but in all cases to get the error "TypeError: cannot find the function object packages xxx" where xxx represents the feature that I used.

    When I check the documentation of the meta model, there is a createPackage method but it does not work.

    Can someone help me on this? What I am doing wrong?

    Any help would be appreciated!

    Kind regards

    Bart

    Hi Peeteba,

    try this one:

    CPK = model.getStorageDesign () .createPackageOracle ();

    Best,

    Ivan Zahariev

  • Error when creating packages in creative cloud 1620 Packer

    I get error 1620 trying to package Flash Premium, Muse and first, all 64 bits.

    I tried these packages several times, all with the same result.

    On this computer I have to pack other products adobe, as well as to create a package that includes the first, muse and flash bonus.

    Any suggestions?

    Thank you

    Jeremy

    Here are the build log:

    14/04/2015 16:29:55 [INFO] AdobePackageBuilder - Build Version - 1.9.0.14

    14/04/2015 16:29:55 [INFO] AdobePackageBuilder - verbosity Logging Level Set of 4

    14/04/2015 16:29:55 [WARN] AdobePackageBuilder - unable to process the tag UpdatesInfo.

    14/04/2015 16:30:12 [INFO] AdobePackageBuilder - extracted Sucessfully product C:\Users\jalsto02\AppData\Local\Temp\{23B38340-0852-4A6B-A668-D95BD2B3F478}\ACCCx2_9_1_47 4

    14/04/2015 16:30:12 [INFO] AdobePackageBuilder - Extraction completed with return code = 0

    14/04/2015 16:30:25 [WARN] AdobePackageBuilder - no file exist in the (C:\Users\jalsto02\Desktop\Muse\Build\ASU\Tools\CCC\Uninstall\deploy\remove.xml)

    14/04/2015 16:30:33 [INFO] AdobePackageBuilder - copied the file/folder Installer (packages)

    14/04/2015 16:30:34 [INFO] AdobePackageBuilder - Setup copy file/folder (resources)

    14/04/2015 16:30:34 [INFO] AdobePackageBuilder - copied the file (Set - up.exe)

    14/04/2015 16:30:34 [INFO] AdobePackageBuilder - copied file (payloads\Media_db.db)

    14/04/2015 16:30:34 [INFO] AdobePackageBuilder - copied file (payloads\Media_db.sig)

    14/04/2015 16:30:34 [INFO] AdobePackageBuilder - copied file (payloads\Setup.xml)

    14/04/2015 16:30:40 [ERROR] AdobePackageBuilder - impossible to obtain summary information for msi. Error code returned is 1620

    Hello

    Please try to disable the security software you have on your machine.

    Restart your computer and try again.

    Please check: updates update 1620 error AIR and AIR App

    Thank you

    Atul Saini

  • Adobe Presenter 10 installation fails (by using CCP1.5 to create package files)

    IM on a PC - packaging 10 presenter for x 86 installation on Windows 7 x 64. You will need to be x 86 install as in our picture presenter is MS Office 2010 x 86 what presenter adds the Add on too. I use the Creative Cloud Packager 1.5 to make the x 86 package Presenter 10 files (with the right company Serial Number for).

    When the package files have been filled - I run the Setup.exe as an administrator and it starts to move forward to install the progress bar cancels and the Setup program finishes. Tried using SCCM to deploy and the MSI returned error code is error 1603.

    FYI - using CCP1.5 and the x 64 package files to Presenter 10 and installation works very well under our Image Windows 7 x 64 (including SCCM) - but of course the add-on speaker do not work on MS PowerPoint as is the x 86 version of MS Office 2010.

    Your opinion on this matter would be greatly appreciated

    Hi Paul,.

    You mentioned that you have created the 32-bit package. Instead, you will need to create 64-bit for the 64 bit OS package, and then select the PresenterW32 folder as a support offline as shown in the steps of the bove.

    Kind regards

    MILIN

  • Changing the once created package.ini

    Hello

    Bit of a noob question, but is it possible to change the file package.ini once the application is passed through the ThinApp process? Or the application needs to be re-ThinApped? Add some entry points to our ThinApped versions of the runtime Java and Adobe Reader, we have Internet Explorer installed locally on desktop computers and is not grateful Java Runtime or Adobe Reader. As Internet Explorer is local to the office, I assumed that ports of entry within these applications should be created for it, please let me know if this is not correct, problems with any Web site with applets Java etc. or wanting to the Adobe Reader plugin.

    Thanks for any help in advance.

    Kind regards

    Ross

    After you create an entry point for IE, you should have an iexplore.exe file in your file Thinapps containing the Acrobat Reader software.

    If you start IE using this file (double click in Solution Explorer) iexplore.exe, it should start IE in the virtual bubble of Acrobat Reader a plugin should work. For the first test, close all other IE Windows open, maybe IE is smart enough to recognize that another instance is open and he uses this instance, instead of creating a new.

    Also I tried to install IE as a ThinApp, I don't know how this can be done, but I have capture IE, and when I try to install it on view Admin he comes back as invalid state and will add to the list of the ThinApps. I captured it by just clicking the button of Internet Explorer and choosing "Include a point of entry for the system installed, IE", it is a valid way of ThinApp IE? or we would literally have to uninstall IE and then install again then capture that?

    For EI in a virtual session running, your approach is valid, at least if you use Thinapps on a normal system. I have no knowledge on vmware View, so I can't say anything for your mistake. I used this approach on IE, and it worked on stand-alone computers.

    But for your captured IE to see the Adobe Reader plugin that is contained in another package Thinapp, you must add the package.ini applink enter, so that the newly created only IE package see the contents of the package of Adobe Reader.

  • How to create packages for distribution?

    Hello

    I'm trying to distribute updates, what would be the best way (our organisation does not allow downloads of large files)

    Hi panties,

    I think you want to create the package for applications cloud creatives.

    Please check the help below document:

    Using creative cloud | Packer

    Kind regards

    Sheena

  • Error package when creating package via onTables methods

    Even though I am an APEX developer for 3 years, I just found out about methods on utility Tables in SQL Workshop demo of Dan McGhan. I tried to create a package for about 7 tables in one package. When the package has been created, it was invalid. I tried to compile it, and she has produced several errors. I noticed that the table UPDATE procedure is incomplete since it did not provide the parameters even if the procedure uses.

    I was able to replicate at the APEX. ORACLE.COM.
    WORKSPACE: RGWORK
    PACKAGE: CSRSR_DML
    USER: TESTER
    Password: test123

    Is this a bug? Is there a solution? Did anyone experience similar results?

    APEX 4.1
    Oracle 10g Rel 2

    Robert
    http://apexjscss.blogspot.com

    sect55 wrote:
    Come on gurus and the APEX team, please help...

    As far as this 'guru' is concerned, it is not something that I would never use:

    http://asktom.Oracle.com/pls/Apex/f?p=100:11:0:P11_QUESTION_ID:672724700346558185
    http://asktom.Oracle.com/pls/Apex/f?p=100:11:0:P11_QUESTION_ID:25405782527721

    Given opposition well known Tom for this approach, I was more than a little surprised when it appeared in the APEX because he also seems to have ties with the APEX team. I'd really rather have seen development efforts elsewhere.

    I certainly advocate to build applications based on the PL/SQL API, but not on those focused on the table, line-by-line...

    I tried to create a package for about 7 tables in one package.

    Why?

    One of the main goals of packages is to modularize an application. Collage of methods for all entities in a package he conquers and complicates the development, testing and maintenance. If you must use the defective TAPI concept, create a separate API for each table - combine to more only those where there is mandatory dependencies, for example a command with methods for orders and order_itemspackage.

    The immediate issue, it seems to be the lack of primary key definitions on some of your tables. This means that the generator is unable to identify the columns to use as unique row identifier.

  • Custom Panel icons - how to export when you create package or .mxi files in .zxp?

    I am trying to create a custom icon for my Panel when it is docked in Photoshop CS5 (Mac).

    I can use the steps outlined in a recent post (create 2 .png files and place them manually in the file plug-ins/panels/MyPanel/content after the Panel was exported).

    How can I get to automatically place when I export the .mxi file? -If I place 2 .png files in the current folder of .gpc they get exported to the directory: folder connect ins/panels/MyPanel/Content/MyPanel.assets instead.

    If I pakage the Panel as a file .zxp, is it a token of suitable file I can add to the .mxi file to move them instead?

    Thanks in advance

    Resolved - edited the .mxi file and add the following point:

    I had tried several times without success on an existing item. Worked OK on a new Panel.

  • Build error when you create the Provisioning package picture

    Hi all

    I'm trying to create a master Windows IOT image by using the tool of IDC (imaging and designer of Configuration).

    I created a package of commissioning and using"customization of the Windows Image" to create a kernel ITO image by specifying the configuration previously created package but still get a build error.

    It looks like a fairly simple process, but repeatedly gives the error below. Also, I have not all USB devices connected to the computer, nor are there insufficient memory problems.

    ERROR

    =====

    Progress of the staging: 75%
    Staging failed to: 75% complete
    UpdateDLL: Measurement of results:
    Staging of total time: seconds = 27 (tickcount = 27235)
    Error: imagery! UpdateImage: Failed call to UpdateDLL::PrepareUpdate with the error code:-2145877241 (0 x 80188307)
    DismountVirtualHardDiskByFileName: disassembly image C:\Users\Shridhar\AppData\Local\Temp\8eceab63e9b746c0a9c65848679d56eb.vhd
    DismountFullFlashImage: [0.219] cleanup of temporary access roads.
    CleanupTemporaryPaths: Cleaning of temporary path C:\Users\Shridhar\AppData\Local\Temp\IMG39F3.tmp\.
    Storage service: disassembly of the image in 0.2 seconds.
    Imaging: See Flash.cbs.log and Flash.csi.log for more details.
    Imaging: Performance results:
    Total running time: 00:00:52.7198674
    Time of image creation: 00:00:00.0642425
    Writing FFU Time: 00:00:00
    Battery storage time: 00:00:17.8667874

    Any help would be greatly appreciated.

    Hello

    Your question is beyond the scope of this community...

    Repost in the TechNet Forums:

    https://social.technet.Microsoft.com/forums/en-us/home

    Or MSDN Forums:

    https://social.msdn.Microsoft.com/forums/en-us/home

    See you soon.

  • Packer of creative cloud in creating a package that I can install do not.  He goes through the motions, download all updates, create setup file, but it does not work despite the fact that there are no errors in the log files

    Packer of creative cloud in creating a package that I can install do not.  He goes through the motions, download all updates, create setup file, but it does not work despite the fact that there are no errors in the log files

    After hitting my head against the desk to repeatedly create packages, try on different computers I have finally found a solution.

    These packages have been copied on an external drive, if I try and install from the external drive, which is a common practice, it fails.

    If I then copy this file pkg from the outside, to the computer I install, then run it, it will to and moved very well.

    That is mind-boggling stupid, because it's rare that you have to copy the file into any computer, it is less always installed off the coast of externally, and many people in the company are pushing on the network and the management of the suites so there is a serious problem in Adobe package manager if this is the case where it cannot manage the Middle installed offshore.

    I hope that if anyone else is having problems so it suits.

Maybe you are looking for

  • Satellite Pro A60 just lost power

    When WinXP Pro said the battery was down to about 9% (ok, I know, I should have plugged the power supply at this time) that appeared dead, lost power completely. The power supply and then began to beep every 2 seconds. I then tried on another laptop

  • Satellite L500 - no Audio through the HDMI to the TV connection

    I connected my L500 on my HD TV. I can control the image using FN + F5, but I have no sound. I entered the monitor audio realtek and who said that audio is now via HDMI, but still no sound. The HDMI cable seems to be ok that I use to connect my cable

  • Blu - ray 570 - internet access failed

    I have problems connecting with my BRP570. I am running Mac OSX 10.6. I have a router Linksys WRT54G 2.4 Ghz and a Netopia modem. My internet is speed of 3 mbps. Everything worked perfectly for the last 10 months... until now. When I connect the BRP-

  • ModtDestroySessionHandle does not release all memory resources

    Hello I have a program that attempts to do 1000 iteriations to read the message of the RF, but I get the error "not enough memory to complete this operation" popup. Look like memory leaks about 520 iterations. In this loop, I ModtCreateSessionHandle

  • Cannot display the error using Netflix page in Windows Media Center

    Hello I use Windows Vista Home Premium and Windows Media Center. I watched titles on Netflix in the past successfully in Windows Media Center, but today I get this error when I click to play a title: Cannot display the page. Windows Media Center cann