Please help me to prepare correct procedure.

Hi,
My oracle database version is 10.2.0.5
Please help me to prepare correct procedure.
Description of Stored Procedure is below:
DECLARE PNAME Define_Globals.varr255;
DECLARE PWEIGHTS Define_Globals.varr50;
DECLARE PYEAR Define_Globals.varr50;
BEGIN
execute GEI.MULTI_GLOBEM('SgeiiteFac','1003308','2005,2006,2007,2008,2009,2010,2011','POUNDS',NULL,'All',:PNAME,:PWEIGHTS,:PYEAR);
COMMIT;
END;
/

919131 wrote:
Hi,
My oracle database version is 10.2.0.5
Please help me to prepare correct procedure.
Description of Stored Procedure is below:
DECLARE PNAME Define_Globals.varr255;
DECLARE PWEIGHTS Define_Globals.varr50;
DECLARE PYEAR Define_Globals.varr50;
BEGIN
execute GEI.MULTI_GLOBEM('SgeiiteFac','1003308','2005,2006,2007,2008,2009,2010,2011','POUNDS',NULL,'All',:PNAME,:PWEIGHTS,:PYEAR);
COMMIT;
END;
/What programming language is this? This does not look like PL/SQL.

Similar Messages

  • HT201320 I have ne iphone 5, i been setting my email using AT&T global but it is not working, please help me on the correct configuration

    I have ne iphone 5, i been setting my email using AT&T global but it is not working, please help me on the correct configuration

    Contact the email provider and obtain the correct setup information.

  • Please help on logic of my procedure.

    HI Experts,
    My procedure is is not working.
    My requirement is if the IN parameter P_ID value is 1 then
    the procedure should fetch values from the apps_global.control_ram table and display the IDs.
    Please help me.
    create or replace PROCEDURE myprocedure(p_id IN NUMBER)
    AS
    BEGIN
    FOR CUR_VAR IN (select ID from apps_global.control_ram)
    LOOP
    BEGIN
    IF cur_var.P_ID=1 THEN
    dbms_output.put_line(CUR_VAR.ID);
    END IF;
    end LOOP;
    END;
    END myprocedure;
    Thanks in advance.

    user9077483 wrote:
    HI Experts,
    My procedure is is not working.
    My requirement is if the IN parameter P_ID value is 1 then
    the procedure should fetch values from the apps_global.control_ram table and display the IDs.
    Please help me.
    create or replace PROCEDURE myprocedure(p_id IN NUMBER)
    AS
    BEGIN
    FOR CUR_VAR IN (select ID from apps_global.control_ram)
    LOOP
    BEGIN
    IF cur_var.P_ID=1 THEN
    dbms_output.put_line(CUR_VAR.ID);
    END IF;
    end LOOP;
    END;
    END myprocedure;
    Thanks in advance.Try this, please
    create or replace PROCEDURE myprocedure(p_id IN NUMBER)
    AS
    BEGIN
       FOR CUR_VAR IN (select ID from apps_global.control_ram)
       LOOP
       BEGIN
         IF CUR_VAR.ID = P_ID THEN
           dbms_output.put_line(CUR_VAR.ID);
         END IF;
        end LOOP;
       END;
    END myprocedure;
    OR
    create or replace PROCEDURE myprocedure(p_id IN NUMBER)
    AS
    BEGIN
       FOR CUR_VAR IN (select ID from apps_global.control_ram WHERE ID = P_ID)
       LOOP
           dbms_output.put_line(CUR_VAR.ID);
        end LOOP;
       END;
    END myprocedure;Regards
    Mahir M. Quluzade
    Edited by: BluShadow on 17-Dec-2012 13:28

  • Please help to find the correct answers

    Hi,
    Please send an url to study about the below questions with short and easily understandable explanation with simple example.Please help to improve my knowledge for the below concepts.
    1.     String
    2.     String Buffer
    3.     String Builder
    4.     finally
    5.     final
    6.     finalize
    7.     static
    8.     Abstract Class
    9.     Interface
    10.     Inheritance
    11.     Overloading
    12.     Overriding
    13.     Wrapper class
    14.     Collection
    15.     Array
    16.     Array List
    17.     Linked List
    18.     Vector
    19.     Hash Table
    20.     Hash Map
    21.     Hash Set
    22.     Tree Set
    23.     Set
    24.     List
    25.     Map
    26.     Itterator
    27.     Enumeration
    28.     Comparator
    29.     Comparable
    30.     Auto Boxing and Un Boxing
    31.     Generics
    32.     JDBC Drivers
    33.     Statement
    34.     Prepared Statement
    35.     Callable Statement
    36.     ResultSet
    37.     Stub and Skelton
    38.     Marshalling and UnMarshalling
    39.     Sterilization
    40.     Synchronization
    41.     Thread
    42.     Servlet Life Cycle
    43.     Generic Servlet
    44.     HttpServlet
    45.     RequestDispacher
    46.     Forward
    47.     Redirect
    48.     ServletContext
    49.     ServletConfig
    50.     Filter
    51.     Throttle Filter
    52.     GZip Filter
    53.     Session Handling
    54.     Jsp Life Cycle
    55.     JSP Action tags
    56.     JSP Include Directives
    57.     JSP: plug-in
    58.     MVC Pattern
    59.     Implementation of struts using mvc with flow
    60.     Hibernate
    61.     EJB
    62.     Session Bean
    63.     Entity Bean
    64.     Inner Join
    65.     Outer Join
    66.     Left outer Join
    67.     Right Outer Join
    68.     Stored Procedure and how to call in java
    Thanks in advance,
    Regards,
    Saravanan.K

    Note: This thread was originally posted in the [CLDC and MIDP|http://forums.sun.com/forum.jspa?forumID=76] forum, but moved to this forum for closer topic alignment.
    To the Original Poster: the forum does not function as your personal homework solving process. If you have specific questions about these subjects that's fine.
    Meanwhile I suggest you read [The Java Tutorials|http://java.sun.com/docs/books/tutorial/]
    Edited by: dcminter on 08-Sep-2009 15:02

  • Please help - Can not use stored procedure with CTE and temp table in OLEDB source

    Hi,
       I am going to create a simple package. It has OLEDB source , a Derived transformation and a OLEDB Target database.
    Now, for the OLEDB Source, I have a stored procedure with CTE and there are many temp tables inside it. When I give like EXEC <Procedure name> then I am getting the error like ''The metadata  could not be determined because statement with CTE.......uses
    temp table. 
    Please help me how to resolve this ?

    you write to the temp tables that get created at the time the procedure runs I guess
    Instead do it a staged approach, run Execute SQL to populate them, then pull the data using the source.
    You must set retainsameconnection to TRUE to be able to use the temp tables
    Arthur My Blog

  • Please help....execute procedure with out parameter -cursor

    HI all plese help me,
    i create a stored procedure like this.hw cani execute the IN out parameter which is a cursor ir..RCT1 is cursor..
    please help...
    CREATE OR REPLACE PROCEDURE ST_GetTravelTypeID
         TravelType IN      VARCHAR2 DEFAULT NULL,
         RCT1 IN OUT      GLOBALPKG.RCT1
    AS
    BEGIN
         OPEN RCT1 FOR
         SELECT
                   TravelTypeCode,
                   TravelTypeDesc
         FROM ST_MS_TravelTypes
         WHERE     TravelType = ST_GetTravelTypeID.TravelType;
    END;
    Message was edited by:
    neethu

    Your reference is invalid:
    WHERE TravelType = ST_GetTravelTypeID.TravelType;
    This should not (cannot) refer to the name of the procedure - but simply to the variable in it. I.e.
    WHERE TravelType = TravelType;
    However, as you can see, the variable name is now the same as the column name.
    One method around this is to use explicit scope reference. E.g.
    SELECT
      t.TravelTypeCode,
      t.TravelTypeDesc
    FROM  ST_MS_TravelTypes t
    WHERE t.TravelType = TravelType;I suggest that you consider this a standard for your PL/SQL programming. Always alias SQL tables in PL/SQL code and use explicit column references.
    Another standard we use is to use underscore characters for columns - camel case is fine for variables in a programming language. This is not really acceptable for column names, as by default Oracle uses uppercase. Thus "TravelType" is valid as variable name, but invalid as a column name - it should be defined/written as "travel_type" or "TRAVEL_TYPE" instead.

  • Can someone please help me find the correct driver for my audio ca

    Hello, it's famke again...Still trying to find drivers.. My sound card is apparently also missing drivers... I've tried many drivers from different sites matching the information i've taken off the card...but for some reason i always get a big red slash through my audigy sound control panel after trying to install the driver and reboot my system... I'm convinced i haven't been able to find the correct driver... The information off the card is...Soundblaster Audigy 2ZS M:SB0350... If anyone can help out i would greatly appreciate this...Famke.

    I'm new to this, but I also had trouble for a while in finding and installing the right drivers. Eventually I got it to work with the link below. Follow the steps and select everything it suggests (I did and it worked for me). You might want to try it and see if it works for you too. Good Luck. http://www.creative.com/language.asp...wnloads/su.asp

  • Please help - french accents not correctly displaying/storing in database

    Hello -
    I have 2 databases running in 2 different character sets.
    I am able to insert the following french accents in both databases and stored correctly also in db and displayed correctly in sql plus -
    à À Ä ä Â â é É È è Ë ë Ê ê î Î ï Ï ç Ç Û û ô æ ö « »
    But the following 2 charactes donot get displayed/stored correctly in any of the databases -
    1. For db running in UTF8 character set it stores/displays as follows -
    2. For db running in WE8ISO8859P1 character set it displays as 2 filled black squares. But when I do 'copy and paste'. It is pasteing correctly in the editor as follows -
    I have another one database running in same WE8ISO8859P1 character set , DBA out there sent me the results from sql plus for the above 2 characters and they are getting displayed as well as stored fine.
    I have the following questions -
    1. Besides database characterset what else parameters or environment variables I need to check the for these characters to be displayed/stored correctly ?
    2. Why would Databases with same characterset gives different results for the same characters ?
    3. UTF8 is superset of WE8ISO8859P1 characterset, then why in that UTF8 db is unable to store that characters
    which were able to be stored in WE8ISO8859P1 db.
    By these various results, I am very confused and not able to troubleshoot further.
    Any help would be very much appreciated...
    Thanks
    Rama

    Ah... an interesting NLS problem ;)
    Main problem or misunderstanding could be that the characters small and capital ligature OE (œ Œ) is not part of the ISO 8859-1 repertoaire. That is, you need another characterset to store and use those characters properly.
    However, and sometimes unfortunate, if both db and session is using the same characterset setting, the binary value is "passed through" without conversion and stored - even if actual char is not valid!
    1. DB charset should be able to store all possible chars your apps/users need. That's a first. Is that the case?
    For sessions, the OS/app charset used should be indicated to Oracle with NLS_LANG parameter (registry or env var).
    2. Are you sure that (valid) character codes are stored correctly. Note that storing values directly could work technically but be wrong semantically. Values > 127 are not valid in UTF-8 (needing further explanation)!
    3. How are "characters" stored? What does this tell you?
    SQL> select dump(column,1016) from dual;
    Regards,
    Fredrik

  • PLEASE HELP - Subtraction not calculating correctly

    Post Author: hollyschulz
    CA Forum: Formula
    This formula I have seems to work any other time, but this one batch I am reporting on doesn't work properly:
    (distinctcount({CHART.CHART_ID}))-(distinctcount({@nc})){@nc} = if ({CHART.SUSPEND_CODE} <> "GC") then 1
    The results for {@nc} is 0 in the report, the result for (distinctcount({CHART.CHART_ID})) is 41.  How come this result of  (distinctcount({CHART.CHART_ID}))-(distinctcount({@nc})) is 40 in the report?? (41-0 should = 41 but crystal has 41-0 = 40)
    I tried adding a +1 to the end of the formula and pulling data from a different batch, but the results were 1 too much.

    Post Author: V361
    CA Forum: Formula
    Hi, Sometimes I will break the formula on purpose, save it any way and run, then when the error pops up, it will show the values in the formula editor. (in CR XI anyway)  try this formula..
    (distinctcount({CHART.CHART_ID}))-(distinctcount({@nc})){@nc} = if ({CHART.SUSPEND_CODE} <> "GC") then 1 / 0
    This will cause the formula to fail, but hopefully you will be able to see the value of {@nc} during the calculation.  Also, try adding this to the details section and manually count.
    If that does not help, could you give some sample data.

  • Please Help, Ipod Not Working Correctly

    Hi, I recentely downloaded an episode of monk, and when I went to put it on my iPod it doesn't work. I click it in the iPod, and then the screen goes blank and doesnt ever play, then it returns to the main screen after 30 seconds. How can I fix this?

    i had the same problem
    the only difference is that the video tries to load, but it jus doesnt - u hear the hard constantly spinning, and after like 5 seconds the ipod freezes.
    =/
    o well only 1 video does that

  • I had Apple Ibook G4. I had replaced the HDD but thnot able to install the mac os becoz its dvd drive is faulty I dont want to expend onthat stuff but want to use the same Please help me regarding the installation procedure of mac os

    help

    You cannot install OS X without using an installer DVD, and that requires a DVD drive (internal or external.) Alternatively, if you have access to another Mac and if both have Firewire ports, then you can use Target Disk Mode: Transferring files between two computers using FireWire.
    Your profile indicates you have a MacBook, but are using OS X 10.3.x which is not possible. The first MacBook model used a special Intel-only version of Tiger, 10.4.x.

  • Can you please help me in creating a stored procedure which can create a tablesapce in a specified location ?

    Hello ...
    Can you please help me in writing a procedure which can create tablespace. like i have a requirement that
    through sql query i need to get the location of where the data file of the newly created tablespace need to be stored.
    I need to store the location of the datafiles in a variable and i need to use that variable for specifying the location of the data file in newly created data file.
    please help me writing this procedure.....
    Regards vinay raj.
    Thanks in advance..

    select distinct substr(file_name,1,instr(file_name,'/',-1)) from dba_data_files;
    Run this in a few of your databases and see how often you ONLY get one row returned.
    Normally there is no "default" file system for data files (read about the DB_CREATE_FILE_DEST parameter and Oracle Managed Files for the exception to that).
    You could pick the same file system as an existing tablespace, but even then there is no guarantee that the file system has sufficient space for the new tablespace - you have to check that OUTSIDE the database.
    Given the query at the top it is pretty simple to create a SQL script that generates a SQL script.  This can be run in any database via sqlplus, and then the generated script can be edited as needed and run immediately, under human control, avoiding surprises.
    set echo off
    set feedback off
    set heading off
    set lines 100
    spool myts.sql
    select distinct 'create tablespace MYTS DATAFILE '''||substr(file_name,1,instr(file_name,'/',-1))||'myts01.dbf'' size 40M ONLINE;' stmt
    from dba_data_files;
    spool off
    For example, if you find there are multiple filesystems to choose from, run this then delete the filesystems you don't want from the generated script.  If you find there is only one file system but it is too full, work with your SA or storage to to add space or allocate a new file system, then modify the generated script accordingly.
    This example assumes a traditional file system, on a UNIX-style OS, not using Oracle-Managed files.  ASM or RAW will have a different format for the data file location, of course.

  • Getting unauthorised error!!!!please help

    hi,
    i downloaded sun one web server 6.1.i have put my class files under WEB-INF folder.do we need to write web.xml file to run servlets.I have tried to run helloworld program.when i run ,i get a window (connect to local host).But if i type the username and password ,it gives unauthorised error.I am really frustrated.please letl me know the correct procedure to place the class files and to run servlets without getting this error.

    I think you should skim through the Programmer's Guide to Web Applications to get a feel for how Servlet 2.3 web applications are packaged. The guide is available online at http://docs.sun.com/app/docs/coll/WebServer_05q1

  • Please help to find out asmlib kernel driver ?

    Hello everyone, please help to find out correct asmlib kernel driver ?
    rpm -ivh oracleasmlib-2.0.4-1.el5.x86_64.rpm
    error: Failed dependencies:
    oracleasm >= 1.0.4 is needed by oracleasmlib-2.0.4-1.el5.x86_64
    My kernel version is:
    uname -a
    Linux 2.6.18-238.el5xen #1 SMP Tue Jan 4 16:15:36 EST 2011 x86_64 x86_64 x86_64 GNU/Linux
    Thank you.

    user12144220 wrote:
    Hello everyone, please help to find out correct asmlib kernel driver ?
    rpm -ivh oracleasmlib-2.0.4-1.el5.x86_64.rpm
    error: Failed dependencies:
    oracleasm >= 1.0.4 is needed by oracleasmlib-2.0.4-1.el5.x86_64
    My kernel version is:
    uname -a
    Linux 2.6.18-238.el5xen #1 SMP Tue Jan 4 16:15:36 EST 2011 x86_64 x86_64 x86_64 GNU/Linux
    Thank you.uname -rm
    you can find the exact oracleasmlib for your version
    eg:- my system Intel IA64 Architecture
    Library and Tools
    * oracleasm-support-2.1.7-1.el5.ia64.rpm
    * oracleasmlib-2.0.4-1.el5.ia64.rpm
    and then search(control +F) for  2.6.18-238.el5
    refer this link:-http://www.oracle.com/technetwork/server-storage/linux/downloads/rhel5-084877.html

  • Please guide me to prepare for OCA

    Hi,
    Can you please help me to prepare for OCA exam, let me know which material is best and how to prepare
    Thankyou.

    user11266289 wrote:
    Hey guys, I don't want to run too far away for the original topic here. (Sabdar I am reading your page with great interest) aside from the need to know WHAT to study, I am wondering where to begin? 9i, 10g or 11i? Is it best to learn 9i then the others in sequence or does it matter at all.
    Keep in mind I am new to oracle and looking to learn so I can improve my job circumstance. I have been working IT help desk jobs since 2000, went through A+, and have a Win2K MCP. I worked a little with oracle back in 2003 (I believe we were using 8i) but really only scratched the surface of installation and setting up workstations to access existing databases.Phew
    ... well the link below shows Oracle offering about 7 OCA certifications in a number of categories.
    [http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=141]
    ... I think from your posts your probably more interested in the Database administrator ones....
    ... Unfortunately I am not sure an Oracle Database Administrator OCA will improve your job prospects, because you wont demonstrator the experience to back it up.
    ... If you do decide to with Oracle some that route concentrate on a 1z0-007 or 1z0-051 exam first then decide where ou are going.
    ... If you want to brush up your preliminary sql skills for nothing online the look at [http://www.w3schools.com/sql/default.asp], that is a safe website with regard to certification.
    ... If you still want to learn database skill ignore certification path initially but loouk the the oracle 2 day dba tutorials.
    Please remember in my opinion everything in my earlier post remains valid. Oracle univeristy training is usually best.
    I would also suggest you review if you should consider the folloing certifications:
    ITIL v3 foundation.
    CMA (MySQL) : This is currently being taken over by sun and then I presume oracle. Prehaps no way as prestigous as an oracle but a nice little interim certification nonetheless.
    ISEB testing foundation.
    Rgds - bigdelboy
    Edited by: bigdelboy on 16-Jun-2009 00:20

Maybe you are looking for

  • How do I set Adobe Flash Player as the default program to open SWF files?

    Basic Overview I have this working fine at my home laptop, however I need this working for projects at school. Whenever I want to open an SWF file at home, I simply double click it and open it in Adobe Flash Player (Adobe Flash Player 10.0 r22) and I

  • PDF/X for Digital (RGB) Printing

    I'm working (in Design) for a digital print house (from Desktop/inkjet printers up to LFP, as well as Laser). It's been decided that we want/need ISO certification. Part of this means that we have to use PDF/X files. (Colour Management is a big part

  • Error parsing envelope: (1, 1) Start of root element expected.

    Hello BI Publisher: The issue has been resolved. I found the cause the problem. The following line in my WSDL was preventing BI Publisher from reading the WSDL, which will return the "Error parsing envelope" message: <xsd:attribute name="dateTimeTagF

  • Unable to download Oracle 8i for Linux from the FTP site

    I am having trouble downloading Oracle 8i from the web site. I get the error message that the server has reset the connection. I have been trying to download for the past week and I have been unsucessfull does anyone know if there is a problem with t

  • Camera Raw reduces DNG file size

    I have raw file(CR2) size at 13.6 mb straight out of my Canon 7D. When I convert them in Adobe dng converter 5.7 I get 21.7 mb. When opening in Photoshop CS3 with Camera Raw 4.4.1 I get image size as W:3888 pixels by H:2592 pixels. I dont understand