Create Procedure in Oracle

Hello
I am new to Oracle and the need to create the stored procedure to set the view, than what the user wants - procedure, that they need "to spend a bunch of settings", as of the day etc. I don't know does make sence for that in sp, set rather seen as you like, and probably that there is still possibility to pass all params in there without creating procedure. And it's just advice, not materialized.

I'm not "see an option to apply the settings in the menu 'New View' on my SQL_Developer." So MS will probably be the best solution?

My opinion:

Create view v1 in select * from tt1 where union date=@today
Select * from tt2 where date=@today union;

Maybe someone can share any sample sp how to create the procedure, I can not compile without error:
CREATE OR REPLACE PROCEDURE usp_v1 AS
BEGIN
Create view v1 in select * from tt1 where union date=@today
Select * from tt2 where date=@today union;
END usp_v1;
Error (4.3): PLS-00103: encountered the symbol "CREATE" when waiting for one of the following values: begin case declare exit for goto rise back loop mod null pragma select update while < ID > < one between double quote delimited identifiers of > < a variable binding > < < close current delete fetch locking open insert commit rollback savepoint SQLExecute fusion forall hose set

Also, what is the best book of the Oracle for beginner developer market? I couldn't find too much on www.


All TX

D

RUN IMMEDIATELY CREATE VIEW...

Tags: Database

Similar Questions

  • Unable to create the stored procedure batch Oracle Script from Windows

    Hello
    I put my code here please let me know where I have error
    Cmd
    -------
    DNAME SET = %3
    SET UerName = %1
    SET Pssword = %2
    SET Opdir = C:\Users\testuser\
    sqlplus-s '% UerName%/%Pssword%@%DNAME%' @%Opdir%procdure.sql

    procedure. SQL
    --------------
    WHENEVER SQLERROR EXIT SQL. SQLCODE ROLLBACK
    WHENEVER OSERROR EXIT SQL. OSCODE RESTORATION
    SET SERVEROUTPUT ON
    SET ECHO ON
    AUTOPRINT SET ON
    RUN THE DBMS_OUTPUT. ENABLE (1000000)
    COIL Seq.log
    SET linesize 1000
    CREATE PROCEDURE test "()" ""
    AS
    BEGIN
    NULL;
    END test;
    SPOOL OFF
    OUTPUT
    -----------

    Demostrating how I executed


    C:\Users\nikhilgk > otherobj AAA AAA TEST
    C:\Users\nikhilgk > SET DNAME = TEST
    C:\Users\nikhilgk > SET UerName = AAA

    C:\Users\nikhilgk > SET Pssword = AAA

    C:\Users\nikhilgk > SET LOG = C:\Users

    C:\Users\nikhilgk > SET Opdir = C:\Users\testuser\

    C:\Users\nikhilgk > sqlplus s 'AAA/AAA@TEST' @procdure.sql

    PL/SQL procedure successfully completed.

    ------------------------
    Journal is is created with size 0 KB.

    I connected to SQLPLUS and questioned
    SQL > select object_name from user_objects where type_objet = 'PROCEDURE '.

    no selected line.

    you have'nt actually run the code to create procedure.

    create PROCEDURE TEST()
    AS
    BEGIN
    NULL;
    END test;
    /  -- you need this 
    

    also if you want to access without double quotes all the time, do not put double quotes on the name

    And I think you should go out; rather than leave. That's why you have a size zero.

    Published by: Keith Jamieson 31 August 2012 13:21

  • Execution of the procedure of Oracle APEX

    Hello

    I've written a procedure ' create or replace PROCEDURE process_csvfile (p_filename IN VARCHAR2); " et I want to execute this procedure to Oracle Apex.


    PROCEDURE:

    create or replace PROCEDURE process_csvfile(p_filename IN VARCHAR2)
    AS
    statement1 varchar2(1000);
    statement2 varchar2(1000);
    statement3 varchar2(1000);
    
    begin
    dbms_output.put_Line(p_filename );
    statement1:= 'alter table adb.external_bcc_test location ( '  ||chr(39)|| p_filename||chr(39)|| ')' ;
    dbms_output.put_line(statement1);
    EXECUTE immediate statement1;
    dbms_output.put_line('statement1-> completed');
    EXECUTE immediate 'truncate table ADB.ADB_BCC_TEST';
    dbms_output.put_line('statement2-> completed');
    statement3:='insert /*+ append */ into ADB.ADB_BCC_TEST(BCC_ID,BCC_ADD,"NO_OF_BCC(GEO)") select * from adb.external_BCC_test';
    dbms_output.put_line(statement3);
    EXECUTE immediate statement3;
    dbms_output.put_line('statement3 insert-> completed');
    
    EXCEPTION
    WHEN OTHERS
    then
    raise;
    END;
    
    

    I created the button and the action as a dynamic Action where I wrote below PL/SQ as dynamic Action to perform this procedure


    BEGIN
    
    process_csvfile;
    END;
    
    


    But I get an error" " " ORA-06550: line 4, column 3: PLS-00306: wrong number or types of arguments in the call to 'PROCESS_CSVFILE' ORA-06550: line 4, column 3: PL/SQL: statement ignored (go to error) "

    Oracle Apex Version: 4.2.1

    Thank you

    BO.

    BO123 wrote:

    I've written a procedure ' create or replace PROCEDURE process_csvfile (p_filename IN VARCHAR2); " and I want to run this procedure from Oracle Apex.

    1. create or replace PROCEDURE process_csvfile (p_filename IN VARCHAR2)
    2. AS
    3. statement1 varchar2 (1000);
    4. statement2 varchar2 (1000);
    5. statement3 varchar2 (1000);
    6. Start
    7. dbms_output.put_Line (p_filename);
    8. statement1: = ' change the location of the table adb.external_bcc_test (' |) Chr (39) | p_filename | Chr (39) | ')' ;
    9. dbms_output.put_line (statement1);
    10. EXECUTE immediate statement1;
    11. dbms_output.put_line ('end statement1->');
    12. EXECUTE immediate ' truncate table ADB. ADB_BCC_TEST';
    13. dbms_output.put_line ('end of reporting2->');
    14. statement3: = "insert / * + append * / into ADB." ADB_BCC_TEST (BCC_ID, BCC_ADD, ' NO_OF_BCC (GEO) ') select * from adb.external_BCC_test';
    15. dbms_output.put_line (statement3);
    16. EXECUTE immediate statement3;
    17. dbms_output.put_line ('end statement3 insertion->');
    18. EXCEPTION
    19. WHILE OTHERS
    20. then
    21. lift;
    22. END;

    The treatment is an external table. How to get the source file in the specified location?

    dbms_output.put_linethe instrumentation is unnecessary in an environment of APEX (unless the apex_debug.log_dbms_output method has been called). Use apex_debug API methods instead so that information is available in debug mode.

    There is no reason to use dynamic SQL statements in lines 15-17.

    Creating a column named "NO_OF_BCC (GEO)" is not a good idea and is in conflict with the recommendation of the Oracle do not use identifiers in quotes for the names of database objects. This objects will only cause problems and confusion.

    Lines 20 to 23 are a bug. It doesn't hide where any exception occurred in fact. If there is no specific exception that must be handled in this procedure, it should not contain an exception block.

  • How to find recently created procedures in the current schema?

    Hi all

    in which oracle table I find recently created procedures with data timestemp as well?

    Thank you.

    Kind regards

    Robert

    Hi Robert,.

    Watch dba_objects or all_/user_objects.

    Something like that for the last day:

    select *
      from dba_objects
     where LAST_DDL_TIME > sysdate -1
       and OBJECT_TYPE in ('PROCEDURE','PACKAGE','PACKAGE BODY','FUNCTION')
       and owner = '';
    

    concerning

    Kay

  • Unable to create directory/home/oracle/app/oraInventory

    When installing OEM Cloud user oraoem control, there is always an error even if this user oraoem belongs to oinstall.

    NEWS: 19 10/15 2:46:11 PM CDT: * noncorepluginIDs plugins: [Apache Tomcat, Bay EMC CLARiiON storage EMC Celerra, EMC Symmetrix Array, Exalogic Elastic Cloud Infrastructure, IBM DB2 Database, Microsoft .net Framework, Microsoft Active Directory, Microsoft Biz Talk Server, Microsoft IIS, Microsoft SQLServer Database, Oracle Audit Vault, Oracle Audit Vault and firewall database, Oracle Big Data Appliance, Oracle Cloud Application] [, planning of peacebuilding rebilling Oracle of engineering system Healthchecks, Oracle Fusion Applications, Oracle Siebel, Oracle storage management framework, Oracle Virtual Infrastructure, Oracle, Oracle virtualization, virtual networks and Oracle Sybase ASE database, zero data loss recovery device]

    NEWS: 19 10/15 2:46:11 PM CDT: get the default inventory of default invPtrLoc location: ' / etc/oraInst.loc '

    NEWS: 19 10/15 2:46:11 PM CDT: definition of the location of the default inventory: ' / home/oracle/app/oraInventory.

    NEWS: 19 10/15 2:46:11 PM CDT: * new selected installation *.

    NEWS: 19 10/15 2:46:11 PM CDT: load the XML validation+++/home/oraoem/softw//install/em/validateXmls//noseed_validate.xml

    NEWS: 19 10/15 2:46:35 PM CDT: * updates *.

    NEWS: 19 10/15 2:46:47 PM CDT: metalink option download is seletced.

    NEWS: 19 10/15 2:46:47 PM CDT: all fields are valid

    NEWS: 19 10/15 2:46:47 PM CDT: * Oracle inventory *.

    NEWS: 19 10/15 2:46:57 PM CDT: validate the variable: INVENTORY_LOCATION

    NEWS: 19 10/15 2:46:57 PM CDT: unable to create directory/home/oracle/app/oraInventory. You may not have the appropriate permissions to create the directory or there is no space left in the volume.

    19/10/15 2:46:57 PM CDT: error: / home/oracle/app/oraInventory specify a location of the inventory with write permissions.

    NEWS: 19 10/15 2:54:38 PM CDT: validate the variable: INVENTORY_LOCATION

    NEWS: 19 10/15 2:54:38 PM CDT: unable to create directory/home/oracle/app/oraInventory. You may not have the appropriate permissions to create the directory or there is no space left in the volume.

    19/10/15 2:54:38 PM CDT: error: / home/oracle/app/oraInventory specify a location of the inventory with write permissions.

    NEWS: 19 10/15 4:09:28 PM CDT: POPUP of WARNING: do you really want to leave?

    NEWS: 19 10/15 4:09:30 PM CDT: eliminate the object box to install controls

    NEWS: 19 10/15 4:09:30 PM CDT: update to STATE_CLEAN state machine

    NEWS: 19 10/15 2:46:57 PM CDT: validate the variable: INVENTORY_LOCATION

    NEWS: 19 10/15 2:46:57 PM CDT: unable to create directory/home/oracle/app/oraInventory. You may not have the appropriate permissions to create the directory or there is no space left in the volume.

    19/10/15 2:46:57 PM CDT: error: / home/oracle/app/oraInventory specify a location of the inventory with write permissions.

    If the directory/home/oracle/app/oraInventory does not close, can you test to see if you can create it manually using the oraoem OS account. If it already exists, try to create a subdirectory under it to avoid any problem of permission or space.

    Kind regards

    -Loc

  • Maximum number of instances that can be created on an oracle server?

    Hi all...

    Can you tell me what is the maximum number of instances that can be created on an oracle server?

    Thanks and greetings

    Raymond Vinay

    Raymond Vinay wrote:

    Hi all...

    Can you tell me what is the maximum number of instances that can be created on an oracle server?

    Thanks and greetings

    Raymond Vinay

    The answer would be that as much as the ram in the server will stand. Is not limited the case as such. Maximum of how many you have created so far?

    Aman...

  • YES-10197: cannot create a new Oracle home

    Hi all

    I did the clone at oracle to install oracle binmaries. First, I installed 10.2.0.3 version and then delete this 10.2.0.3 and replaced by 10.2.0.4 using oracle home clone. After installation, contact home had failed shows and throwed following errors.
    $ ./runInstaller -silent -attachHome -invPtrLoc /var/opt/oracle/oraInst.loc \
    
    ORACLE_HOME="/db/kronprod/oracle/product/10.2.0" ORACLE_HOME_NAME="ONEW"
    Starting Oracle Universal Installer... No pre-requisite checks found in oraparam.ini, no system pre-requisite checks will be executed. The inventory pointer is located at /var/opt/oracle/oraInst.loc The inventory is located at /var/opt/oracle/oraInventory OUI-10197:Unable to create a new Oracle Home at /db/kronprod/oracle/product/10.2.0. Oracle Home already exists at this location. Select another location. 'AttachHome' failed.

    I think you should remove the original ORACLE_HOME first.

    CD $ORACLE_HOME/Yes/bin
    . «/ runInstaller - detachHome ORACLE_HOME="/db/kronprod/oracle/product/10.2.0»

    Then you can attach it again.
    Please refer to Note 559304.1

  • zip file to create diagrams for Oracle and Oracle Discoverer Portal

    Hello everyone.

    Im trying to install WebLogic for forms and reports under linux,
    I need the zip file to create diagrams for Oracle and Oracle Discoverer Portal
    to run the rcu scrip.

    Can someone send me the link where I can find it?

    Thanks to advanced & happy new year to all.

    If you are a developer of FMw 11 g installation, you need not configure the portal or the discoverer, unless of course you plan to use these products.

    When I installed and configured the FMw 11 g, I followed the * how to install Fusion Middleware 11 g forms and reports only [854117.1 ID] * (available via My Oracle Support). WLS and FMw share the Directory Home of Middleware. I accepted directories default installation (\Oracle\Middleware\) and WLS installed in \Oracle\Middleware\wlserver_10.3 and FMw installed at \Oracle\Middleware\Oracle_PFRD, and the Instance of forms at \Oracle\Middleware\instances\ft_inst. More Doc ID 854117.1, I chose only the following for installation in step "configure the components:


    • Server - Oracle Forms and Oracle reports components
    • Developer - Oracle Forms Builder and Oracle report builder tools
    • Management components - Enterprise Manager
    • The system - Oracle HTTP Server components

    IM thinking I have need save the fmx in a directory of this tree and also the FMAS and configure ther formsweb agreeing with that.

    It is not necessary. All you have to do is add the Variable environment of FORMS_PATH (EV) and include the directory where your files .fmb and .fmx will be created. This EV indicates forms where to find your forms Modules and libraries of forms (.pll/.plx) you can use in your forms.

    The usefulness of the repository creation (RCU), you can download it here: http://www.oracle.com/technetwork/middleware/downloads/fmw-11-download-092893.html
    Just scroll down for the * @ section additional software required and there is a separate download.

    Craig...

  • creating reports using oracle application server

    Hi all

    I am a complete newbie with Oracle Application Server (OAS) and Oracle reports. My task is to generate HTML and PDF using OAS reports. The current application has an aspx (ASP.NET front end) pages that call third party fast Radar report tool that retrieves data according to the need of the user (such as month, day, year,... product name) and displays as a grid. I have to remove the FastRadar part and use the OAS OracleAS reports Services components to generate these reports

    I went through Chapter 12 of Oracle.Application.Server.10g.Essentials by OReilly 2004 edition

    She looks briefly by this part. But it seems to mention the subject of Oracle reports something like "reports Oracle has an interface based on an Assistant called Oracle Reports Developer who can create reports. Oracle Reports Developer is part of the Oracle Developer Suite. Reports created with Oracle Reports Developer can be deployed on the Web using OracleAS reports Services support in Oracle Application Server. »

    I'm not clear what to do. I have to create the report format in Oracle Reports using frontend based on a wizard called Oracle Reports Developer and deploy it by using OracleAS reports Services?

    Or, is it possible to create the report format with Services of OracleAS reports without using Oracle Reports. We said that we just installed OAS, don't know if Oracle reports is installed or not as it is done at a remote site.

    Any suggestions would be much appreciated.

    Thank you very much.

    Hello

    We must develop reports using Oracle Reports developer and then deploy to the application server. To do this, you need following Developer installed Oracle, it has wizards that can be used to prepare reports.
    This link may help you http://www.oracle.com/technology/products/reports/index.html.

    Mark it if it can help

  • How to publish a report created by the Oracle Report Builder

    Hello world

    My colleague and I have tried to use the Oracle Report Builder to replace our existing report builder of our ERP system. We have already created the report in Report Builder from the suite of development.

    What we are looking for is a similar solution such as Microsoft reporting services;
    (1) create models of corporate report
    (2) and then download the template files to a location (for example, the folder on the server)
    (3) then all users in the company can access it through a web browser with a few fields which they can enter certain critiria (e.g. order number).
    (4) then send it to the printer and print out must stand exactly as the model.


    Unfortunately, we had very hard time trying to find out what it takes and how to publish this report in Oracle we have created. We spent 15 hours on it, but no results.

    15 hours we tried to install the 'Oracle' service, but finally, my colleague said that it was not what we are looking for you, "report Oracle service" is used to the error of the hosted application on the server, not to publish the report of company created by the "Oracle report bulider.


    We use Oracle Database 10 g for the LES quite a long time already. We had setup the Oracle Developer and the installed Application Server.

    Could someone tell us please what kind of service Oracle we are looking actually. Other guides any suggestion and installation are also the most welcoming.


    Best regards
    Bryan

    Hello

    If you want to be able to run your reports on the web, the best solution is to use the 'Oracle Application Server'

    http://www.Oracle.com/technology/software/products/IAS/htdocs/101202.html

    For example, the stand-alone edition of 'forms and reports Services '.

    Then, use the reports Servlet to submit applications for running a report server:

    http://download-UK.Oracle.com/docs/CD/B14099_17/bi.1012/b14048/pbr_run.htm
    Application server Oracle® reports Services publishing reports to the Web
    10g Release 2 (10.1.2)
    B14048-02

    13 queries in race report

    http://www.Oracle.com/webapps/online-help/reports/10.1.2/topics/htmlhelp_rwbuild_hs/rwwhthow/HOWTO/runPrint/deploy_rpt.htm
    Deploy a report

    Concerning

  • Creating Partitions in Oracle 10G Express Edition

    Can I create partitions in oracle 10 g express edition?

    See for yourself:

    http://download.Oracle.com/docs/CD/B25329_01/doc/license.102/b25456/TOC.htm#BABJIJCJ

  • Create procedure upsert (name of the existing table, incoming table name)

    Is it possible to create a procedure that makes a merge (upsert) with only two parameters:

    1. Existing Table name - name of table that will have data merged into it.
    2. Incoming Table name - name of the table that has developed data day/news.

    The method would be:

    1. Use primary keys on the "existing" table as the condition links
    2. Fact and update if exists and insert new
    3. no record
    4. no clues
    5. no removal clause

    Oracle 11g

    MERGE < tip > < table_name >

    USING < table_view_or_query >

    (< CONDITION >)

    WHEN MATCHED THEN < update_clause >

    DELETE < where_clause >

    WHEN NOT MATCHED THEN < insert_clause >

    [ERRORLOG < log_errors_clause > < reject limit < integer | unlimited >];

    < table_name > - from input parameter

    < table_view_or_query > -socket input parameter

    < condition > - primary key links (how search a single/multiple primary keys and return the list?)

    < update_clause > - update all columns (other than KP, how to get and use a dynamic list of columns)

    < where_clause > - not used

    < insert_clause > - insert new records for all columns (including the PK (s))

    declare

    p_source varchar2 (30): = "EMP_X";

    p_target varchar2 (30): = "EMP_Y";

    query varchar2 (32000);

    function get_cols (p_table in varchar2) return varchar2 is

    VARCHAR2 (32000) retval;

    Start

    Select the Group (order of column_id) listagg (column_name, ',')

    in retval

    of user_tab_cols

    where table_name = p_table

    Table_name group;

    Return retval;

    end;

    function get_keys (p_table in varchar2) return varchar2 is

    VARCHAR2 (4000) retval;

    Start

    Select listagg (cc.column_name, ',') in the Group (order by cc.position)

    in retval

    from user_constraints c,.

    user_cons_columns cc

    where cc.table_name = p_table

    and c.constraint_type = 'P '.

    and cc.table_name = c.table_name

    and cc.constraint_name = c.constraint_name

    C.table_name group;

    Return retval;

    end;

    function merge (p_merge1 varchar2, p_merge2 varchar2, p_link varchar2) return varchar2 is

    Merge1 varchar2 (32000): = p_merge1 | «, » ;

    merge2 varchar2 (32000): = p_merge2 | «, » ;

    VARCHAR2 (32000) retval;

    Start

    then merge1 is not null

    loop

    retval: = retval | » t.'|| substr (Merge1, 1, InStr (Merge1, ',') - 1) |'s =.' | substr (merge2, 1, InStr (merge2, ',') - 1);

    Merge1: = substr (merge1, instr(merge1,',') + 1);

    merge2: = substr (merge2, instr (merge2, ',') + 1);

    If merge1 is not null then

    retval: = retval | p_link;

    end if;

    end loop;

    Return retval;

    end;

    Chopper (p_cols p_keys varchar2, varchar2) return varchar2 is

    passes varchar2 (32000): = ', '. p_cols | «, » ;

    keys varchar2 (32000): = ', '. p_keys | «, » ;

    VARCHAR2 (32000) retval;

    Start

    While the keys! = «, »

    loop

    If instr (passes, substr (keys, 1, instr(keys,',',1,2))) = 1 then

    cols: = substr (collars, instr(cols,',',1,2));

    on the other

    cols: = substr (passes, 1, instr (passes, substr (keys, 1, instr(keys,',',1,2))) | substr (collars, InStr (collars, ',', InStr (passes, substr (Keys, 1, InStr(Keys,',',1,2))), 2) + 1);)

    end if;

    keys: = substr (keys, instr(keys,',',1,2));

    end loop;

    return trim (both ',' collar);

    end;

    Start

    query: = 'merge'. p_target |' t ' |' using (select ' | get_cols (p_source): ' from ' | p_source |') s '.

    ' on ('|) Merger (get_keys (p_target), get_keys (p_source), 'and') |') ' ||

    "When matched then update set ' | '. Merger (Chopper (get_cols (p_target), get_keys (p_target)), Chopper (get_cols (p_source), get_keys (p_source)), ',').

    «When not matched then insert ('|)» get_cols (p_target) |') values (s.'|) Replace (get_cols (p_source),', ', ', s') |') ';

    dbms_output.put_line (Query);

    end;


    Fusion in EMP_Y t using (select EMPNO, ENAME, JOB, MGR, HIREDATE, SAL, COMM, DEPTNO EMP_X) s on (t.EMPNO = s.EMPNO and t.ENAME = s.ENAME) when matched then update set t.JOB = s.JOB, t.MGR = s.MGR, t.HIREDATE = s.HIREDATE, t.SAL = s.SAL, t.COMM = s.COMM, t.DEPTNO = s.DEPTNO when not matched then insert (EMPNO, ENAME, JOB, MGR, HIREDATE, SAL, COMM, DEPTNO) values (s.EMPNO, s.ENAME, s.JOB, s.MGR, s.HIREDATE, s.SAL, s.COMM, s.DEPTNO)

    Concerning

    Etbin

  • 'ALL' to a stored procedure in Oracle 10 g

    Hello

    I have a stored procedure that takes the parameters from a report. I have two settings with a list of things in both entities.

    Now, in the two settings, I have the word "ANYTHING" to pass to the stored procedure to indicate that all elements in the list of parameters should be consumed.

    I kinow what should be in the WHERE clause, but have no idea how to do this in Oracle. This pseudo code below to get an idea of what I'm trying to accomplish here;

    IF Parameter1 = "ALL".
    then
    Field1 = (select * from table1) other end parameter1 = Field1

    IF Parameter2 = "ALL".
    then
    Field2 = (select * from table2) other Field2 = parameter end 2


    Any help would be Apprecited guys!

    Thank you

    Manny

    Hey, Manny,

    I'm not sure that understand the question.
    I think you want something like this query on the table scott.emp:

    VARIABLE  target_deptno  VARCHAR2 (5)
    VARIABLE  target_job      VARCHAR2 (10)
    EXEC     :target_deptno      := 'ALL';
    EXEC      :target_job      := 'CLERK';
    
    SELECT  ename
    ,     deptno
    ,     job
    FROM     scott.emp
    WHERE     (     :target_deptno     = TO_CHAR (deptno)
         OR     :target_deptno     = 'ALL'
         )
    AND     (     :target_job     = job
         OR     :target_job      = 'ALL'
         )
    ;
    

    Output (with the settings as shown):

    ENAME          DEPTNO JOB
    ---------- ---------- ---------
    SMITH              20 CLERK
    ADAMS              20 CLERK
    JAMES              30 CLERK
    MILLER             10 CLERK
    

    Try it with different values for the parameters. If either of the parameters is 'EVERYTHING', then all values (and NULL) in this column are in agreement.

    In special cases (for example, if you know that deptno cannot be NULL) there is a little more simple ways to get the same results.

    I hope that answers your question.
    If not, post a small example data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and also publish outcomes from these data.
    Explain, using specific examples, how you get these results from these data. Given that this problem concerns the parameters, give a few sets of parameters and the results you want from the same sample for each game data.
    If you can show the problem using commonly available (such as in the diagrams of scott or HR) tables, then you need not display the sample data; After the desired effect and the explanation.
    Always tell what version of Oracle you are using.

  • Perform the procedure on oracle apex online

    Hi all


    CREATE OR REPLACE PROCEDURE TEST_PROC
    AS
    V_FNAME EMPLOYEES. FIRST_NAME % TYPE;
    BEGIN
    SELECT FIRST_NAME FROM V_FNAME OF EMPLOYEES
    WHERE NAME = 'JOHN ';
    DBMS_OUT. PUT_LINE (V_FNAME);
    END;
    I did this procedure on the http://apex.oracle.com/ sql worksheet on my account.

    When I gave TEST_PROC RUN; and CALL TEST_PROC; order for providing this procedure I get ORA-00900 following error: invalid SQL statement.

    Please tell how I can perform this procedure.

    Thanks in advance.

    concerning

    Neeraj

    Calls to PL/SQL must be made using anonymous PL/SQL code blocks. For example

    begin
      Test_Proc;
    end;
    

    There is no server EXECUTE command (some customer support this as a sales order, wraps the content to run in an anonymous PL/SQL block and then use it to call the database).

  • Create procedure/functions by Transformations Public customized by using OMB

    Hello

    I need to create a global procedure by the Public Transformations. How then?
    I am able to create specific, but also global projects.
    I tried to create it after OMBCC "PUBLIC_PROJECT", but it says that I have to change my context...

    Can someone help me with this please.

    Thanks in advance...

    Check out these links for the references.

    http://download.Oracle.com/docs/CD/B31080_01/doc/OWB.102/B28225/omb_appendix.htm
    http://mis3nt.gsnu.AC.KR/PublicData/Oracle11gDoc/OWB.111/b31279/omb_appendix.htm

Maybe you are looking for

  • Satellite L500-1GK - incorrectly installed BIOS

    Help me every friend My problem I install wrong with my laptop BIOS. The work of the good laptop but the USB & bluetooth don't work. I can't do my work of all the Thankes to take care of all the friend

  • 3110CT: can I upgrade the memory?

    I tried running Win2000 but found that start up two BONES and some applications like Outlook are often terrible long. It seems that the RAM is too small (I have max 128MB installed) and it is constantly during the start up disk access. Some applicati

  • Copied pictures from the Iphone on the desktop, but can not download on ebay, need to format to JPEG

    Original title: I just make a movie on windows movie maker 2.6 and I can't save itMY PHOTOS HAVE BEEN ADDED TO THE DESKTOP OF IPHONE 4S AND I WANT TO DOWNLOAD ON EBAY BUT IT WILL NOT ALLOW IN THIS FILE? HOW CAN I CHANGE THE LOCATION AND HOW TO MAKE T

  • Trying to change a provision of existing keyboard with MSKLC 1.4

    Exactly, what is supposed to happen after installation and Microsoft Keyboard Layout Creator 1.4?  No matter what I choose in the menu file (new or load existing keyboard), what I get when the dialog box closes is almost exactly what is displayed whe

  • W700ds: Select RAID using recovery media created

    Hello! I am owner of a ThinkPad W700ds, but I guess my question will be answered there as well if it were a W700... Please, any help would be great! I bought a "used" W700ds with Windows Vista Business (COST and recovery partition intact, but no medi