Use the stored procedure to create the data model for the bi publisher report

Hi all

Can we use stored procedure to create the data model for BI Publisher reports? I did find an example by using the stored procedure to complete the data model in the bi publisher report.

Thank you

Virat

Check out these links

BI publisher to use the stored procedure
Re: Stored procedures and dynamic columns
Re: Is it possible to use stored procedures in BI Publisher GUI?
Re: PL/SQL stored w / model XML?

If brand pls help

Tags: Business Intelligence

Similar Questions

  • Stored procedure to create the table .csv file

    Hi all
    I have a table with 4 columns and 10 rows. Now I need a stored procedure to create a file .csv from the data in the table. Here the script to create a table and insert the line.

    Create table emp (emp_id number (10), emp_name varchar2 (20), Department varchar2 (20), number (10)) of salary;

    Insert into emp values ('1', 'AAAAA', '' SALES, 10000');
    Insert into emp values ('2', 'BATH', 'MARKETING', '8000');
    Insert into emp values ('3', 'CCCCC', '' SALES, 12000');
    Insert into emp values ('4', 'JAMES', 'FINANCE', '10000');
    Insert into emp values ('5', 'EEEEE', '' SALES, 11000');
    Insert into emp values ('6', 'FIRE', 'MANAGER', '90000');
    Insert into emp values ('7', 'GEORGE', '' SALES, 12000');
    Insert into emp values ('8', 'HAROLD', 'FINANCE', '14000');
    Insert into emp values ('9', 'IIIII', '' SALES, 20000');
    Insert into emp values ('10', 'GG', 'FINANCE', '21000');
    commit;

    Now I need a stored procedure to create a .csv file in my local location. Please let me know if you need more details...

    A few tips:
    http://www.Oracle-base.com/articles/9i/GeneratingCSVFiles.php
    http://tkyte.blogspot.com/2009/10/httpasktomoraclecomtkyteflat.html
    also, doing a search on this forum or http://asktom.oracle.com will give you many clues.

    in my local location .csv file.

    What is your "local position"?
    A client machine? The database server machine?
    Which version of the database you use?
    (the result of: select * version of $ v ;))

  • Link to database not be created using a stored procedure

    Hello

    I am creating a link of database using a stored procedure.

    Here is the code for it

    CREATE OR REPLACE PROCEDURE create_db_link (ca_db_name IN VARCHAR2,

    ca_service_name IN VARCHAR2)

    AUTHID CURRENT_USER IS

    BEGIN

    EXECUTE IMMEDIATE ' create public database link test_db_link connect to ca_db_name identified by ca_db_name using "ca_service_name" ';

    END create_db_link;

    During execution of the code is created the db_link. But, when I ask all_db_links I get the following result.

    OWNER

    ------------------------------

    DB_LINK

    --------------------------------------------------------------------------------

    USERNAME

    ------------------------------

    HOST

    --------------------------------------------------------------------------------

    CREATED

    ---------

    PUBLIC

    TEST_DB_LINK. WORLD

    CA_DB_NAME

    ca_service_name

    20 Aug 13

    Could you please help me understand why it shows the parameter names in the name column of the USER and the HOST instead of the name of the database and the name of the service?

    This is to show exactly what you said to do.

    Did you expect that Oracle would read as if by magic through your string you passed to run immediately and magically know to replace all occurrences of the string that correspond to local (or even global) parameter/variable names with the values of these variables?  It does not work like that.  You could concatenate the values into the string.

    for example

    EXECUTE IMMEDIATE ' create public database link test_db_link connect to ' | ca_db_name |' identified by ' | ca_db_name: ' using the "' | ca_service_name | " ' ;

    But why are create you database links running?  Shouldn't this be part of the design of your application and the initial fact before the application runs?

  • Calculate the fastest path between 2 nodes with the data model for the Oracle network

    Hi all,

    I have Oracle 10 g 2.

    My problem is the following:

    I created a network named ITALIA_NET in the data model for the Oracle network.
    The table of links of this network is named: ITALIA_NET_LINK$.
    The table of the nodes of this network is named: ITALIA_NET_NODE$.

    The table ITALIA_NET_LINK$ contains a field named COST that contains links (in meters) lengths.

    I've already calculated the SHORTEST PATH between two nodes of the network, by using the method of shortestPath() (using the Java API) as shown on "Pro Oracle Spatial for Oracle Database 11 g" manual. Infact, this method makes reference to the COST field for $ ITALIA_NET_LINK to make this calculation.

    Now, I want to calculate the FASTER PATH between two nodes of the network. I have the links (in hours) travel time to make this calculation.

    My idea is to create a new field in ITALIA_NET_LINK$ named Cost2 containing the travel time from the links and then do the math by using the shorthestPath() method, referring to the Cost2 field to $ ITALIA_NET_LINK COST field instead.
    By default, I know that the shorthestPath() method returns the COST field for $ ITALIA_NET_LINK. Is possible to change this setting and do that this method refers to the Cost2 field?

    In the alternative, is another way for the calculation of the fastest way?
    I want to leave the creation of another network as last solution, because I will have other costs of field (Cost3, cos4t,...)

    Thank you much in advance.

    Your approach is good. You will have two networks and you can read them in memory and analyze of shortest path. The shortestPath method is static for the class of NetworkManager. You can use the same method for both networks, once they are read into memory.

    ...
    read the network with time as cost of link
    NetTime network = NetworkManager.readNetwork (dbConnection, 'ITALIA_NET_TIME');
    read the network length as cost of link
    Network netLength = NetworkManager.readNetwork (dbConnection, 'ITALIA_NET_LENGTH');

    calculate the quickest way
    PathTime path = NetworkManager.shortestPath (netTime, startNodeID, endNodeID);
    calculate the shortest path
    PathLength path = NetworkManager.shortestPath (netLength, startNodeID, endNodeID);
    ...

    In the future, if you upgrade to 11g, network data model provides a load on demand (LOD) API that loads only the scores of necessary network in memory during the analysis. This command removes the restriction of the memory of the 10g (in memory API you use) API. API of LOD can handle very large networks and offers more features analysis and modeling capabilities.

    The following link contains the tutorial of NDM LOD API ready for download. Just for your information.
    https://spatial.SampleCode.Oracle.com/servlets/ProjectProcess?PageID=0Zl7oV

    Kind regards
    Jack

  • How to import pictures in the excel worksheet without using the generation of reports

    Dear friends

    I want to know how to import the image or the image file in excel worksheet without using the generation of reports...

    Please come with suggestions or the code example

    Concerning

    Knani

    Please go through the link below

    http://zone.NI.com/DevZone/CDA/EPD/p/ID/3638

    Even if a Subvi is absent I think it will be useful for you.

    Concerning

    Rajesh nawal

  • "Deploy the data model for LCD screens" period

    Hello

    My Jboss is time-consuming while deploying the data model for LCD screens and it's initially Flash Builder 4 to display the error "Read Timed" out. How can I increase this timeout value?

    Thank you

    Houda

    Hello

    Please follow the steps below and see if it helps:

    1. in your Flash Builder click on the item in window menu, click on Preferences

    2. in the Preferences window, select Adobe-> RDS configuration

    3. Select your configured server and change/set Timeout

    I hope this helps.

  • Using a stored procedure with the DBUM connector

    Hello, I am a new to the Oracle Identity Manager. The system that I am running on is Windows Server 2008. I recently installed the version 11.1.1.3.0 from the Identity and Access Management suite, as well as the appropriate components. I use a database of 11 g R2 as my deposit. I installed the DBUM connector and have successfully provided a user to my database (which is also an Oracle database).

    However, I have an instance where I need to provide not only a database user account, but also this user and password (after the execution of some arbitrary for her, as features by adding a 1 or chop) at a table in the same database.

    Could someone give me please a detailed description of what I need to do to achieve and possibly point me in the direction of certain documents? I greatly appreciate it.

    You can write your own custom code to execute a stored procedure. Here is the documentation for it: http://download.oracle.com/javase/tutorial/jdbc/basics/storedprocedures.html

    Create your code and deploy your jar file in the folder xellerate/JavaTasks. Create an adapter to use the code. Then on your commissioning process definition, create a new task and plug in the adapter. Finally, start the task of the user to create the task.

    -Kevin

  • How to use & APP_ID. stored procedure to the inside.

    Hello, I created a stored procedure. I'm calling it my code in process. I want to use so many variables like page & APP_ID. I don't want to pass as an argument. Is it possible to use these variables without passing on the inside. ? (& page_id. and also an application of variable level)

    Any help is appreciated.

    Thank you.

    Dark Lord

    You can use the function 'v' to reference the APEX elements in pl/sql. Then APP_ID is done refers to

    v ('APP_ID')

    CITY

  • How to create a data model (other than using the Notepad/xml Localization)

    Hello gurus,

    We create data models with publishers of ordinary/xml Notepad.
    But, is it a std BI publisher tool which designs data models?

    Thank you
    Vinod

    Hi Vinod,

    BI Publisher 11g comes with DataModel Editior

    Please follow link below to understand the steps in detail

    http://www.adivaconsulting.com/Adiva-blog/item/12-bip11g-datamodel.html

    Thank you
    OMKAR

  • Data modeling for a small database tutorial - understand the part 'Creating relationships between entities'

    I'm trying to understand and make use of Tutorial: modeling of data for a small database

    In this tutorial, I'm supposed to make Entity Transactions containing two attributes that designates the bosses (patron_id) and Books (book_id) (2.1.4) entities

    Later, I add two one-to-many relationships that attributes mentioned twice in the entity of Transactions (patron_id1 and book_id1). (2.1.5)

    So here are my questions: what is the purpose of creating attributed to point 2.1.4 if they are then reproduced in paragraph 2.1.5?

    If she could be crucial, I use Oracle SQL Developer Data Modeler Version 4.0.0.825 Build 825 on jdk1.7.0_25.

    Bonus question: how to turn attributes types on the logical diagram? I can't find the option anywhere...

    I would be really grateful for each answer and all the stuff!

    Looking at the documentation for version 2.  I checked 3.3 and 4.0 EA3 and corrected tutorial you can download the latest version and use this documentation.

  • Logic of tip insert - using a stored procedure?

    Here's my use case:

    • I have a table called TAGS that has two columns: id (number key, primary) and text (string)
    • the table has a constraint of database set that each text must be unique
    • the table also has a fixed sequence back next id available
    • I created an entity of the DB object and its default View object
    • I also created a page where I display a table read-only based on the View object
    • Finally, I added a text field and a button to the page
    • What I want to achieve is to insert all tags entered in the entry in the table fields, when the button is clicked. Note, however, that the entry field is a comma-separated list of tags, moreover, I have to insert only those tags that are new (to respect the constraint of database), and finally, I would like to use the sequence in insert or orders. Once completed, the page should also be updated.

    My first question is whether a stored procedure is the right way to perform such a step insert logical. If not, what other means must be used in the ADF.

    My second question is to know how to call the stored procedure and pass it the value of the input as a parameter field. I found this article http://andrejusb.blogspot.cz/2011/04/invoking-stored-procedures-and.html, but miss me a few transition points:

    1. How the callGreetingsFunction method call (I just get it that it's a method of the EO generated Java class?) after that the button is clicked?
    2. How to pass the value of the input field in this method as a parameter?

    Thanks in advance for your help.

    Now, what happens if I run it like this:

    A. the procedure is executed after a click on the button

    (B) the page is not updated (I had to do the research to get the new lines are visible in the table)

    C. the constraint is ignored (after discounting there were several lines with unique identification number, but pr is - empty)

    D. nothing has been committed to the database - if I closed the application window and it start again, the lines have disappeared from the table, but addition of new lines used number of increased seq

    E. Similarly, if I did directly inserts into the database, these lines did not appear until I transferred the application

    B. told it page to refresh. And that's usually enough to refresh your ViewObject with: viewObject.executeQuery)

    C. Si the constraint is not enforced for null values. And this has nothing to do with the adf, this is related to oracle db.

    D. you're calling commit.

    E. you must re-run your view object (viewObject.executeQuery ())

    Nevertheless, here is my rookie questions:

    There there a simple way to refresh the page (or just the table containing the data)?

    -How to validate changes (immediately after execution of the procedure)?

    -How is the constraint has been ignored? I am sure it would fail on validation, but I thought that it will be considered even for adding data to the table.

    -Are there a way to update the original Version of the database every time that the page is opened or refreshed?

    -Drag and drop operation Execute like button on your page (or call vo.executeQuery () by program)

    -Drag and drop the operation of posting as a button on your page (or invoke it by programming on the DBTransaction object)

    -ignored for what values? for null values? It is expected, because each null is "unique."

    -Yes, but you probably shouldn't do that for performance reasons, see this: Andrejus Baranovskis Blog: Cache results for ADF iterator property

    Read also this: Andrejus Baranovskis Blog: job ADF and PL/SQL Invocation changes side effect

    Dario

  • would you use a stored procedure or a function

    Hello

    I have a very long query. I reduced a large number of sections of it with views.

    But now I have a section that is repeated several times, about 40 times. It is about 15 lines of SQL code.

    The variation between these blocks are two fields which change their value and I always join the result of these blocks using the same ID.

    Of course, I think I can extract in a central block (DRY) and call them from a main request, the question is how.

    My first approach would be a stored procedure. But all the examples I found that you use some PL/SQL or Java, that I could also... but isn't it overkill?
    The function?
    Any recommendation?

    Thank you!

    refer wrote:
    who would do it, I guess that
    now the newbie question: in the function block: how to assign select va1 and va2 from a query results in the attributes of the object? I couldn't find an example where this is demonstrated (if possible).

    I should have simplified:

    create or replace function ma_fonction (a number, b varchar2) return my_type
    as
    my_type my_obj;
    Start
    -here:
    Select val1, val2 from table1 - is always only one line
    -my_obj: = my_type (a, b); -How can I assign those here?
    Return my_obj;
    end
    ;

    select my_type(val1,val2) into my_obj
    from table1;
    

    Published by: Toon Koppelaars on February 24, 2011 10:16

  • How to get distinct records by using the ListAgg OBIEE report function?

    Hi all

    I get a correct result as mentioned below. But I don't see duplicates in my result here, in my example, I get duplicate for the name of the employee 'Pat '. So how to get Distinct values by using the LISTAGG function?

    Data set of sample with the Department and its employees

    Service employee

    ----------      ----------

    Marketing Michael

    Pat of marketing

    Pat of marketing

    Pat of marketing

    Purchase of Den

    Purchase of Alexander

    Purchase of Shelli

    Purchase of Sigal

    Guy of purchase

    Purchase of Karen

    Using the ListAgg function, we can convert it to:

    Employees of the Department

    -----------     -------------------------------------

    Marketing of Pat, Pat, Pat, Michael

    Purchase of Sigal, Shelli, Karen, Guy, Den, Alexander

    I tried a lot of things, but I'm not able to understand how exactly this can be achieved, if anyone has any idea or suggestions please do share, thanks in advance.

    After much research, I found the solution & I want to share what he finds very useful, we can create SQL logic in the Advanced tab, as below and after you click Rescan, and then you will get your desired results.

    SELECT saw_0, Evaluate_Aggr T1.dept ("ListAgg(%1,'' & '') intra group (about 1%)") ("as long as VarChar (1000), T1.emp) saw_1 FROM)

    SELECT 'emp_dept '. "the Department dept,

    'emp_dept '. "' employee ' emp

    IN THE "DOMAIN".

    GROUP BY dept, emp

    ) T1 GROUP FROM T1.dept ORDER BY saw_0

    Also note here that we have good anti-aliasing for columns parent (ex: saw_0, saw_1), another by mistake oracle bi server.

  • Stored procedure to compare two data tables

    Hello

    I want to have a stored procedure that will compare two tables data (only one column) and remove the line that is not present in the second table.

    For example.,.
    I have 2 tables called Table1 and Table2, that have the same column called ID (PK).
    Data in Table1 are 1,2,3 and data into Table2 are 1.3. When the stored procedure is running, it must compare the ID column in Table1 to ID column in Table2 and since '2' is not there in Table2, I want to remove this line from Table1.

    Thanks in advance.

    delete from table1
    where does not exist (select 1 from table2 where table2.id = table1.my_field)
    ;

  • Impossible to use Java stored procedure java.nio.file package

    Hello

    I want to use the classes in the java.nio.file package but I have the problem that the classes are not loaded in the database (oracle 12 c with jvm) installed. I can't put my class in the database and use it in my procedure. It is always invalid because of the java.nio.file dependencies. Is it possible to load the java.nio.file package for use in my PB? I tried to load it via loadjava but then I get the error ORA-29552 java.lang.SecurityException: prohibited package name: java.nio.file.

    Thank you and best regards,

    Kai

    Java.nio.file package is available starting with Java 1.7, while Oracle 12 c JVM is 1.6, simple as that.

Maybe you are looking for

  • Cannot get rid of BING

    go to tools, Options and then general and get rid of the horrible Bing changing... blank Home Page is simpler, as it does url or search in the line.

  • Access NBC will accomplish

    I have an Apple TV (2014) and I can't seem to set up a program on the NBC app. I signed up with all the necessary information on my iMac and it says: "your AppleTV is ready to use / you now have access to your favorite through the light House. But wh

  • Scanning with Paint: Windows 8

    Have you ever tried to get the installation of analytical software, but just can't make it work?  During troubleshooting, it is sometimes necessary to try scanning 3rd party programs to see if it's simply a matter of driver/software conflict. Microso

  • I can't access my CanonMX3 printer (Canon Pixma MX320 Series) of my computer running Windows 7, since I've changed in Windows XP.

    I REALLY NEED HELP TO CONNECT MY PRINTER TO MY COMPUTER OVER ETHERNET NETWORK!I am too having the same problem. But when my Windows 7 detects the printer (Canon Pixma MX30 Series), it says: "cannot connect to the printer access denied." in another wi

  • Target Pixel

    I want to create applications for Z10, Z30, Q10. but I want only a target in the same pixel resolution. can someone give me your comments?