Is there having parameterize view in oracle?

Hi All,
I wanted to make a parameterized view for filter the data.
when I use that view I 'll pass the value and on that basis, that view will be filter the data.
So My query is that, is there having such a view creation concept in oracle. If yes then pls reply me with the syntax of create view statement.
Thanks ....
Prashant...

Why you don't want to use WHERE clause?
Create whatever view you want and "pass it a value" using WHERE clause
Kamran Agayev A. (10g OCP)
http://kamranagayev.wordpress.com
[Step by Step install Oracle on Linux and Automate the installation using Shell Script |http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/]

Similar Messages

  • Is there any table/view of errors?

    Dear Experts,
    Is there any table/view in Oracle database where all the database errors can be viewed? Errors like ORA-00942, .....
    I am on Oracle 10gR2.
    Thanks for taking your precious time in answering my question.
    Regards

    If you are on Unix or Linux go to your $ORACLE_HOME/rdbms/mesg and view the file oraus.msg
    This file lists all of the error messages together with the Cause and Action, if they exist - kinda like the Error Messages document.
    Oracle makes reading this file easy with the oerr shell script.
    For example:
    oerr ora 54
    00054, 00000, "resource busy and acquire with NOWAIT specified"
    // *Cause:  Resource interested is busy.
    // *Action: Retry if necessary.I don't know why this file is not in the Windows distribution....

  • Are there seeded tables/views of DBI dimension objects in Oracle EBS?

    Hi!
    I wish to create custom Existing Source dimension objects but wish first to see exactly what is the table's structure (columns, width, data type). Are there seeded tables/views available in Oracle EBS?
    Thanks.

    Try https://etrm.oracle.com - search for "DBI"

  • How to wrap a view in oracle

    Does any one know how to wrap a view in Oracle, I know it is not possible, yet. Are there any third party software to wrap the logic in the view.
    Thanks,
    Sanjay

    Your best bet is to write a view that queries the source tables and contains any necessary business logic
    CREATE VIEW VBASE AS SELECT A.COLUMN_A FROM TABLE_1 A, TABLE_2 B, TABLE_3 C WHERE A.ID = B.ID AND B.ID = C.ID;
    create a view for exposure to the user that queries the base view.
    CREATE VIEW VSECURE AS SELECT COLUMN_B FROM VBASE;
    and grant privileges to VSECURE.
    GRANT SELECT ON VSECURE TO SECURE_USER;
    This will allow the user to see, query, and describe VSECURE without seeing the definition for VBASE.
    The advantage of the this approach is that the query engine can still push predicates down into the base view to optimize the performance or the query where as this is limited with the pipeline function and can become a tuning headache.
    eg.
    SQL> -----------------------------------------
    SQL> -- create some tables
    SQL> -----------------------------------------
    SQL> CREATE TABLE table_1(ID NUMBER, MESSAGE VARCHAR2(100))
    Table created.
    SQL> CREATE TABLE table_2(ID NUMBER, message2 VARCHAR2(100))
    Table created.
    SQL> CREATE TABLE table_3(ID NUMBER, message3 VARCHAR2(100))
    Table created.
    SQL> -----------------------------------------
    SQL> -- populate tables with some data
    SQL> -----------------------------------------
    SQL> INSERT INTO table_1
    SELECT ROWNUM,
    CASE
    WHEN MOD ( ROWNUM, 50 ) = 0 THEN 'HELLO there joe'
    ELSE 'goodbye joe'
    END
    FROM DUAL
    CONNECT BY LEVEL < 1000000
    999999 rows created.
    SQL> INSERT INTO table_2
    SELECT ROWNUM,
    CASE
    WHEN MOD ( ROWNUM, 50 ) = 0 THEN 'how are you joe'
    ELSE 'good to see you joe'
    END
    FROM DUAL
    CONNECT BY LEVEL < 1000000
    999999 rows created.
    SQL> INSERT INTO table_3
    SELECT ROWNUM,
    CASE
    WHEN MOD ( ROWNUM, 50 ) = 0 THEN 'just some data'
    ELSE 'other stuff'
    END
    FROM DUAL
    CONNECT BY LEVEL < 1000000
    999999 rows created.
    SQL> -----------------------------------------
    SQL> --create base view
    SQL> -----------------------------------------
    SQL> CREATE OR REPLACE VIEW vbase AS
    SELECT a.MESSAGE,
    c.message3
    FROM table_1 a,
    table_2 b,
    table_3 c
    WHERE a.ID = b.ID
    AND b.ID = c.ID
    View created.
    SQL> -----------------------------------------
    SQL> --create secure view using base view
    SQL> -----------------------------------------
    SQL> CREATE OR REPLACE VIEW vsecure AS
    SELECT MESSAGE,
    message3
    FROM vbase
    View created.
    SQL> -----------------------------------------
    SQL> -- create row type for pipeline function
    SQL> -----------------------------------------
    SQL> CREATE OR REPLACE TYPE vbase_row
    AS OBJECT
    message varchar2(100),
    message3 varchar2(100)
    Type created.
    SQL> -----------------------------------------
    SQL> -- create table type for pipeline function
    SQL> -----------------------------------------
    SQL> CREATE OR REPLACE TYPE vbase_table
    AS TABLE OF vbase_row;
    Type created.
    SQL> -----------------------------------------
    SQL> -- create package
    SQL> -----------------------------------------
    SQL> CREATE OR REPLACE PACKAGE pkg_getdata AS
    FUNCTION f_get_vbase
    RETURN vbase_table PIPELINED;
    END;
    Package created.
    SQL> -----------------------------------------
    SQL> -- create package body with pipeline function using same query as vbase
    SQL> -----------------------------------------
    SQL> CREATE OR REPLACE PACKAGE BODY pkg_getdata AS
    FUNCTION f_get_vbase
    RETURN vbase_table PIPELINED IS
    CURSOR cur IS
    SELECT a.MESSAGE,
    c.message3
    FROM table_1 a,
    table_2 b,
    table_3 c
    WHERE a.ID = b.ID
    AND b.ID = c.ID;
    BEGIN
    FOR rec IN cur
    LOOP
    PIPE ROW ( vbase_row ( rec.MESSAGE, rec.message3 ) );
    END LOOP;
    END;
    END pkg_getdata;
    Package body created.
    SQL> -----------------------------------------
    SQL> -- create secure view using pipeline function
    SQL> -----------------------------------------
    SQL> CREATE or replace VIEW vsecure_with_pipe AS
    SELECT *
    FROM TABLE ( pkg_getdata.f_get_vbase ( ) )
    View created.
    SQL> -----------------------------------------
    SQL> -- this would grant select on the 2 views, one with nested view, one with nested pipeline function
    SQL> -----------------------------------------
    SQL> GRANT SELECT ON vsecure TO test_user
    Grant complete.
    SQL> GRANT SELECT ON vsecure_with_pipe TO test_user
    Grant complete.
    SQL> explain plan for
    SELECT *
    FROM vsecure
    WHERE MESSAGE LIKE 'HELLO%'
    Explain complete.
    SQL> SELECT *
    FROM TABLE ( DBMS_XPLAN.display ( ) )
    PLAN_TABLE_OUTPUT
    Plan hash value: 3905984671
    | Id | Operation | Name | Rows | Bytes |TempSpc| Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | 16939 | 2365K| | 3098 (3)| 00:00:54 |
    |* 1 | HASH JOIN | | 16939 | 2365K| 2120K| 3098 (3)| 00:00:54 |
    |* 2 | HASH JOIN | | 24103 | 1835K| | 993 (5)| 00:00:18 |
    |* 3 | TABLE ACCESS FULL| TABLE_1 | 24102 | 1529K| | 426 (5)| 00:00:08 |
    | 4 | TABLE ACCESS FULL| TABLE_2 | 1175K| 14M| | 559 (3)| 00:00:10 |
    | 5 | TABLE ACCESS FULL | TABLE_3 | 826K| 51M| | 415 (3)| 00:00:08 |
    Predicate Information (identified by operation id):
    1 - access("B"."ID"="C"."ID")
    2 - access("A"."ID"="B"."ID")
    3 - filter("A"."MESSAGE" LIKE 'HELLO%')
    Note
    PLAN_TABLE_OUTPUT
    - dynamic sampling used for this statement
    23 rows selected.
    SQL> -----------------------------------------
    SQL> -- note that the explain plan shows the predicate pushed down into the base view.
    SQL> -----------------------------------------
    SQL> explain plan for
    SELECT count(*)
    FROM vsecure_with_pipe
    WHERE MESSAGE LIKE 'HELLO%'
    Explain complete.
    SQL> SELECT *
    FROM TABLE ( DBMS_XPLAN.display ( ) )
    PLAN_TABLE_OUTPUT
    Plan hash value: 19045890
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | 1 | 2 | 15 (0)| 00:00:01 |
    | 1 | SORT AGGREGATE | | 1 | 2 | | |
    |* 2 | COLLECTION ITERATOR PICKLER FETCH| F_GET_VBASE | | | | |
    Predicate Information (identified by operation id):
    2 - filter(VALUE(KOKBF$) LIKE 'HELLO%')
    14 rows selected.
    SQL> -----------------------------------------
    SQL> -- note that the filter is applied on the results of the pipeline function
    SQL> -----------------------------------------
    SQL> set timing on
    SQL> SELECT count(*)
    FROM vsecure
    WHERE MESSAGE LIKE 'HELLO%'
    COUNT(*)
    19999
    1 row selected.
    Elapsed: 00:00:01.42
    SQL> SELECT count(*)
    FROM vsecure_with_pipe
    WHERE MESSAGE LIKE 'HELLO%'
    COUNT(*)
    19999
    1 row selected.
    Elapsed: 00:00:04.11
    SQL> -----------------------------------------
    SQL> -- note the difference in the execution times.
    SQL> -----------------------------------------

  • I am having trouble viewing iStore. It appears as if its a Flash issue, as several minutes after logging in to iStore I get a non-flash page of iStore in my iTunes window. I have re-installed everything and tried opening all ports in router....any ideas?

    I am having trouble viewing iStore. It appears as if its a Flash issue, as several minutes after logging in to iStore I get a non-flash page of iStore in my iTunes window. I have re-installed everything and tried opening all ports in router, and used msconfig to bring up each service individually to see if there is an effect.Flash and iTunes have been re-installed  ...any ideas?

    I agree. I don't rely on iCloud as a backup, that is what I have my portable hard drive for. Its 500 GB so I can hold my entire iTunes library several times over on it. I have all my movies on my hard drive, but somehow "The Mist" got deleted off of my hard drive, so I figured "Well, the option to redownload an already purchased movie is available through iCloud, I'll just do that!"
    And permissions and download availability have nothing to do with it, the movie's still there, it still allows me to redownload it. The only problem is when I click download, I get that message.
    And nobody else uses my computer, but I do have multiple accounts authorized on it. Even still though, I am attepmpting to download it through the account I purchased it under. :/

  • How to Register a View in Oracle Applications

    Hi,
    I have created a Custom View and want it to see it in one of the BPA Pages. For this purpose I shall need to register the view in Oracle Applications.
    Can you please provide me clues to do so. I tried the Application Developer responsibility, there I can only query the view and not register them.
    Also if I try using backend I could get hold of Package AD_DD which registers a table. Any clues for registering the View would be welcome.
    Thanks

    Thanks for your response.
    Actually I need to show Sales Order Line No, Federal Id and a few other Fields on our Invoice. Now these are not available in Oracle Recievables view. So I was trying to create my own View.
    I created a View in database. Now I am trying to create a Data source and associate this (custom created) View to it. However my View is not showing in the Views List of Values.
    I am not sure whether I am doing it right. Can you please help me with this. Any pointers to a document which explains my requirement would be great.
    Thanks
    Sumit

  • Is there an agenda view in calendars on the iPhone 5s?

    On the iPhone 5s in calendars is there an "agenda view"?

    Thank you for getting back to me. You are absolutely correct with your descrption. My terminology comes from being a long time Blackberry user where "agenda item" are your upcoming events and appointments. I find this view helpful when looking for specific items.
    I am feeling there are so many things my new iPhone can do that I have yet to learn. There are so many settings available to me that it seems overwhelming. One issue that I seem to be having is with the battery draining. I wish there was a setting or button to press for energy saver mode. There are settings within each app to adjust the battery useage and within each category such as Notification Center, etc. I guess what I am trying to say is I wish the phone would learn from the apps I use everyday versus once in a while and adjust the battery useage accordingly. Being more intuitive comes to mind. Dare I say I want my iPhone to read my mind and know whatt I am trying to do. LOL

  • Having problem to install Oracle Portal Forms Reports and Discoverer 11g on Windows Server 2008 64 bit

    Dear All Precious Friends,
    I am having problem while installing Oracle Portal Forms Reports and Discoverer 11g on Windows Server 2008 64 bit,
    I have already installed Oracle Database 11g Release 2 -------
    ----Then i configured JAVA Access bridge
    --------then installed and configured Required Schema using Repository Creation Utility of same version of Database 11g,
    -----------then installed Oracle Business Intelligence 11g version 11.1.1.6.0 which includes Web logic..............I am feeling that i did right at this point...........
    ..............also feeling comfortable after install Oracle Identity and Access Management 11g ..................
    -----------------but don't know how to configure OID to install Oracle Portal Forms Reports and Discoverer 11g...............
    Please help my Oracle Friends
    Your early help will be highly appreciated.
    thanks and regards
    Hassan

    You said, "...+I would like to install Release 2(11.1.1.2.0)+ ...". Be careful. 11.1.1.2.0 is not Release 2. The version for Rel 2 is 11.1.2.0, notice that there is one less "1". Also, there is no way to patch from Release 1 to Release 2.
    In EDelivery, this is what you should find if you search on "Oracle Fusion Middleware" for "Microsoft Windows x64 (64-bit)":
    First look for this link then drill into it:
    Oracle Fusion Middleware 11g Media Pack for Microsoft Windows x64 (64-bit)
    In this section you will find the following:
    This is the full product installation of FMw 11 Release 2 (Forms & Reports)
    Oracle Forms and Reports 11g R2 (11.1.2.0.0) for Microsoft Windows x64 (64-bit) V28761-01
    This is the full product installation of FMw 11 Release 1 (includes Portal, Forms, Reports, and Disco)
    Oracle Portal, Forms, Reports and Discoverer 11g (11.1.1.2.0) for Microsoft Windows x86 (64-bit) (Part 1 of 4) V18785-01
    Oracle Portal, Forms, Reports and Discoverer 11g (11.1.1.2.0) for Microsoft Windows x86 (64-bit) (Part 2 of 4)
    Oracle Portal, Forms, Reports and Discoverer 11g (11.1.1.2.0) for Microsoft Windows x86 (64-bit) (Part 3 of 4)
    Oracle Portal, Forms, Reports and Discoverer 11g (11.1.1.2.0) for Microsoft Windows x86 (64-bit) (Part 4 of 4)
    This is the FMw 11 Release 1 patch set that will bring the above 11.1.1.2.0 installation to 11.1.1.6.  This is NOT a full product installation - just a patch
    Oracle Portal, Forms, Reports and Discoverer 11g Patch Set 5 (11.1.1.6.0) for Microsoft Windows x86 (64-bit) V29850-01
    There are no patch sets for Release 2 as of yet.

  • I'm having trouble viewing PDF forms in a browser

    When I go to a business site for a manual and the format is using pdf, after viewing I cannot go back to previous page using the back button or the arrow back. It keeps returning to the pdf manual I was viewing. I have to click the arrow twice  or three times to return to back page and sometimes when clicking to many times it return to the beginning page. This has been happening to almost all pdf forms used by businesses or any other websites. Is there something I have tochange in settings?

    Hi Snakedog777,
    How frustrating! What web browser are you using? Do you run into the same troubles when viewing PDF files on other browsers? And does the problem only exist with PDF forms--or are you having trouble viewing any PDF files?
    For starters, please see Acrobat Help | Display PDF in browser | Acrobat, Reader XI for information about configuring your browser.
    I look forward to hearing back from you.
    Best,
    Sara

  • Is there any difference viewer software for reports??

    Hi,
    Is there any difference viewer software for viewing differences between two oracle reports??
    Thanks for ur suggestions!
    Madhu

    Any version control software, like CVS, allows for line-to-line comparison of different versions of the same file. The problem with reports is that to understand differences you need to save the reports in human readable format that can be REX-file.

  • Oracle forms and reports with object views in oracle 9i

    Can We use oracle 9i Object Views in oracle forms and reports. If yes, then which version?

    MichaelFerrante,Thank you for your help.
    I have already used the HS services to connecto to external databases from our main Oracle database, and the solution works fine.
    But unfortunally for this particular client he cannont have installed a Oracle database due to internal policies restrictions.
    I can not migrate the full application to another technology like ADF in less than 6 or 8 months.
    Do you thifnk that there is any other solution?
    Mensagem editada por: user10660669

  • How to list material without having purchasing view ?

    hi, guru
    Is it possible to list all material without having purchasing view in material master ?
    Any recommend standard transaction to be useful except mm50?
    Is it possible to list in any table through transacation se16 ?

    Dear,
    There are 2 solutions for your query...
    1. Check table MARA , for the material maintenance status are present each alphabet depicts the views maintained
    A Work scheduling
    B Accounting
    C Classification
    D MRP
    E Purchasing
    F Production resources/tools
    G Costing
    K Basic data
    L Storage
    P Forecasting
    Q Quality management
    S Warehouse management
    V Sales
    X Plant stocks
    Z Storage location stocks
    2.Check table MSTA. There you will not only find the maintained views (PSTAT), but also the related org level (plant, storage loc, sales channel etc.)
    Regards,
    Syed Hussain.

  • Developing database views between Oracle and SQL Server tables

    I am on Oracle 10.2, my organization has many SQL Server databases as well and has now made
    SQL server as company standard so many new databases will be developed in SQL Server. It is of course
    not possible to convert all Oracle databases to SQL Server, so a mix environment will exist. Two questions:
    1.     Is it possible to develop database views in Oracle (10g in my case) which join Oracle tables with tables in SQL Server 2008? If yes, how. I have seen some heterogeneous connectivity setup to connect SQL Server to Oracle, but not sure whether it is possible to develop a database view across two databases.
    2.     I know it is not a SQL Server forum, but many DBA’s know both Oracle and SQL Server. Is it possible to develop views in SQL Server (SQL Server 2008 R2 in my case) which join Oracle 10g and SQL Server 2008 tables? I know in SQL Server, there is way to set up linked servers, but do not know whether it is possible to develop views.
    Thanks a lot for your insight.

    You can create views that join local Oracle tables and remote SQL Server tables. I'm pretty sure you can do the reverse as well but I haven't personally done it.
    However, I would be very concerned about the performance you'd get if you created that sort of view. You'd very frequently end up in a situation where Oracle has to pull all the data in the remote table across the database link in order to apply predicates and join the data locally. That could be disastrous from a performance standpoint.
    Justin

  • Views in oracle

    what is composite view in oracle ?
    what is the difference between composite & materialized view ?

    Hi
    There is no composite view in the Oracle. This is 100% correct. We have composite primary key, composite index are there. Means more than one column of primary key called composite PK, same more than one column index called composite index.
    complex view
    Complex view is a database object which is created by more than one table and with group by functions.(max, min, count,avg,sum). So, we can't perform DML operations on this view. Only Instead of trigger can help you.
    Ganesh has given the Example of complex view. That is more than enough. Regarding Materialized view, given the URL is enough.Still you have any queries...!!! shoot them.
    Regards
    KPR.
    *If this response correct then mark it as correct answer.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Replacement of XLA_AP_PAY_AEL_GL_V view in Oracle R12

    Dear All,
    Can anyone let me know the replacement of XLA_AP_PAY_AEL_GL_V view in Oracle R12?
    This is view is there in Oracle 11i but not in R12.
    Thanks in Advance.

    Dear all,
    We also have the same question. Could anyone pls help? When we drill down from the GL Encumbrance form, error is returned. And when we trace the sql, this view is used in the select statement.
    Please kindly advise.
    HY

Maybe you are looking for

  • Running reports in Portal- URL vs RDF

    I've got a content area in portal 3.0.8 which contains two items-- a URL link to my report, and an Application Component which is the same report registered in portal as an RDF. The report runs fine with the URL link, but hangs when I try to run the

  • IPhone 4 won't turn on unless it's plugged in.

    My iPhone won't turn on unless it's plugged into either my speaker dock or a portable charging phone case and even then, it gets stuck on a reset loop about five times before it fully turns on. When it does turn on, it tells me to activate the phone

  • Can dreamweaver be installed on my cloud disk for access from another computer?

    I sometimes need to work at the clients office.  Can I install Dreamweaver and Photoshop on my Cloud disk for access remotely?

  • I need a copy of setup CD for WRT54G

    I need a copy of setup CD for WRT54G

  • Remove delete button on SM30

    Hi, I have created Ztable and did table maintainance generator. When i used SM30 i am able to add the entries and delete entries. But, my requirement is delete button should not be there. User dont want that option. Thanks in Advance. Regards, Bala