BPA_DEMO - Problem With SQL Scripts

Hi,
In order to understand BPA functionality i have downloaded
1.oracle_BPA_SUite_10.1.3.4_download.zip
2.oracle BPA Suite 10.1.3.4 Sample
I am trying to setup the BPA Suite and execute the Case Study in the sample -oracle BPA Suite 10.1.3.4 Sample.
But the sql scripts requuired does not have create table scripts. the SQl scripta are placed in oracle_BPA_SUite_10.1.3.4_download.zip\samples\sql. The Scripts are:
1.createSchema.sql
2.populateSchemaTables.sql
These scripts have the code for creating users and datas to be inserted in the tables but they donot have the code for creating these tables.
If anyone has got the code to create those tables then please post.

There's a specific [SQL Developer Forum|http://forums.oracle.com/forums/forum.jspa?forumID=260] where they're probably more knowledgeable of that tool, or readily available to give you an adequade response, if you don't mind reposting there.

Similar Messages

  • Problem with SQL Script in report

    Post Author: danish
    CA Forum: Data Connectivity and SQL
    Hi
    Can someone tell me why I'm not getting the right answer.Basically I want to pick up all creditors invoices that have been invoiced to the 31/12/2007 and then I don't want to count those that have been paid before the 31/12/2007 and therefore getting a listing of creditors with just the outstanding invoices up to a certain date.
    This is what I'm currently got defined as my selection script, but I keep getting every invoice up to 31/12/2007.
    SELECT vCreditorTransactions.InvoiceDueDate, vCreditorTransactions.InvoiceDescription, vCreditorTransactions.InvoiceNumber, vCreditorTransactions.GLFullCode, vCreditorTransactions.GLDescription, vCreditorTransactions.GLAmount, vCreditorTransactions.NameSortSequence, vCreditorTransactions.CreditorID, vCreditorTransactions.CreditorPayeeName, vCreditorTransactions.InvoiceDate, vCreditorTransactions.GrossAmount, vCreditorTransactions.TaxAmount FROM   SynergyOneFinance.dbo.vCreditorTransactions vCreditorTransactions  WHERE  InvoicePostingDate <= '31 Dec 2007' AND ISNULL(ChequePostingDate,'9999-01-01') <= '31 Dec 2007'ORDER BY vCreditorTransactions.CreditorPayeeName, vCreditorTransactions.CreditorID
    Regards Torben

    Post Author: pvierheilig
    CA Forum: Data Connectivity and SQL
    Another consideration will be to make certain all date formats used for comparisons in your SQL are in the same format.  Are you able to run the SQL statement in some other program against your database and have the desired results returned?

  • Little execution problem with the script

    declare
    i number(1):=1;
    name varchar2(10);
    id number(2);
    begin
    loop
    id:=&id;
    name:='&name';
    insert into emp values(id,name);
    i:=i+1;
    exit when id<=5;
    end loop;
    end;
    When i tried to execute the script, it is going through the loop only once..What the problem with this script...Can any body help the script work?

    if id is less or equal to 5 then loop will execute only once.
    What is the variable i for ?

  • Problem with SQL connection and a Collection

    hi all,
    I have two problems with sql...
    1. how can I assign the values of a resultset to a collection?
    2. how can I close the sql connection, because when I close the statement and connection error shows me in the resultset
    thanks!

    Hello Pablo,
    RetrivingResults In Collection:
    1)   use getObject method, and assign it to collection.
              Collection c_obj=new ArrayList();
             while(rs.next())
                    c_obj.add(rs.getInt(Project_ID), rs.getString(Project_Name));
    Closing ResultSet
    2)               The close() methos of ResultSet closes the ResultSet object, like bellow
                    ResultSet rs = stmt.executeQuery("SELECT a, b FROM TABLE2");
                    rs.close(); //Closes the result set

  • Problem with a script to remove graphics

    Hello,
    I have tried to build a javascript to remove all graphics whose extension is not ".EPS" (with "EPS" really in upper cases, as it is for Mathtype equations in Word import).
    But It doesn't work and I can't understand why.
    Here is the script:
    //The script intend to remove all graphics whose extension is not ".EPS"
    var myDoc = app.activeDocument;
    var myGraphics = myDoc.allGraphics
    //Remove graphic if graphic extension is different from ".EPS"
    for (var p = 0; p < myGraphics.length; p++) {
        var myImage = myGraphics[p]
        if (CheckExtEps(myImage) != 0){
        myImage.remove ()
    //Compare graphic extension with ".EPS" and return myExtValue = 0 if it matches exactly
    function CheckExtEps(myImage) {
        var  myString = myImage.name
        myExt = myString.substr(myString.lastIndexOf( "." ))
        myExtValue = myExt.localeCompare(".EPS")
        return myExtValue
    When I run this script, ALL the graphics are removed, ".EPS" included.
    I do have ".EPS" graphics in my document and I expected them not to be removed.
    So there is something wrong somewhere, but I don't know what to change.
    Any ideas?
    By the way, I have a more generic question as a beginner:
    I am working with ExtendScript Toolkit. How can I do to check my script step by step?
    For exemple, how can I display my variables values as "myString", "myExt", "myExtValue" at each step?
    Actually, this script is a step for a bigger script I intend to build to deal with Mathtype equations in Word import.
    After not-EPS graphics beeing removed, I wish to relink all remaining equation prewiews to eps in a selected folder, by consecutive order.
    But this is a big piece of scripting to swallow for me, so I'm working slowly, step by step.
    TIA
    Best regards
    Nicolas

    Hello Ariel
    Thank you very much for your help.
    1. I added semicolons at the end of lines, but the script result is the same.
    2. Running line by line, I could see in the Console where is the problem:
    variable "myString" is always undefined.
    Well, I have to get more inside my script...
    Thank's again
    Best regards
    Nicolas
    Nicolas BALBO  
    [email protected]
    22, rue d'Hauteville  75010 PARIS
    Tel : 33 (0)1 42 57 14 31
    Le 18 avr. 2012 à 17:36, Arïel a écrit :
    Re: Problem with a script to remove graphics
    created by Arïel in InDesign Scripting - View the full discussion
    Well, I can't see any semicolons in your script. Maybe that's just the
    email interface, but there should be semicolons at the ends of lines.
    In the ESTK, you can step through a script a line at a time. Just click
    on the downwards pointing arrow instead of the "play" arrow. Each time
    you click, the script will advance one line. In the Console window
    (Windw>Console) you can then type the name of the variable you wish to
    examine.
    Ariel
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4344039#4344039
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4344039#4344039. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in InDesign Scripting by email or at Adobe Forums
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Problem with navigation script

    Hi I'm having trouble getting a button work correctly when
    pressed it should take user to a particular label on the main
    scene. Is there a problem with my script? The button is inside a
    movie clip which is inside another movie clip. Thanks in
    advance.

    this quite difficult to explain but here goes. i have a
    complex button with a roll in roll out effect. ie. a movie clip
    acting as a button that shows different buttons (in another movie
    clip) when it is rolled over. I then want the different buttons to
    go to other parts in the main timeline. the code works fine when
    the buttons are on the main timeline but because it is within
    another two movie clips it doesnt work like it should. In fact the
    script i have used in the first movie clip also affects the button.
    This script is as follows and belongs in the first frame of the
    first movie clip. In other words, I need the button not to be
    effected by the following script but by the gotoAndPlay script.
    Thanks

  • Problem with SAP Script FAX output

    Hi Friends,
    I have problem with SAP Script Fax output.
    After I issued output using the messge type, the print preview format shows me correct alignments and the right data. But when I go to List display using the menu bar functions from the print preview screen, the list is showing me the right data, but all the alignments at the main window went wrong.
    How do I rectify this problem? I need correct alignments in both form display and list display.

    Hi Sasidhar,
    Have you tried with different fax machine.
    Regards,
    Atish

  • Problem with SQL,udfs & procedures

    I have couple of problems with my database. Please suggest solution.
    We are basically a web product With a Quite large Database
    1. I am using functions both User Defined and Built in Functions in
    SQL Statement. I want to optimize the query how do i do it.
    why the usage of function in sql statements suppresses,the
    usage of indexes internally. How to forceable make use of
    the index even though function is used.
    2. Whenver The Client makes a request to the Database server with a
    Sql Query What are the steps we can take at the
    client side to enhance the performance of the Query.
    (i.e the Data Request ). How to optimize the usage of CPU at
    client site?
    3. what is the increase in the performance ration by having
    separate table spaces for user data,system data and indexes.
    4. Why the procedures are getting invalided
    after some time. The procedure is
    not getting executed at the front end.
    Once the procedure is getting invalidated.
    However even though the status of the
    procedure is invalid the same is getting
    executed at the back end.
    Can anybody help me
    Request for reply ASAP.
    Regards
    Koshal
    null

    1. In Oracle 8i, one can create function-based indexes, where instead of indexing a column, one can index upper() of that column.
    2. Optimizing client performance is trickier. One can tune the queries being
    submitted by the client, but if getting the first row back -- which is how response time is generally perceived -- set the OPTIMIZER_MODE parameter in init.ora to FIRST_ROWS.
    3. There is minimal benefit to having data, index, rollback, and temp tablespaces all separated unless all the datafiles for each tablespace reside on different disks (data on disk 1, index on disk 2, etc). It's recommended regardless, but unless the files are on separate volumes, there won't be a great performance benefit.
    4. A procedure is invalidated whenever DDL is issued against any object that that procedure depends upon. For example, if you add a column to a table, any procedures which reference that table will be invalidated. Any procedures which reference views which reference that table will be invalidated, because the view will be invalidated. It's best to run a compile script which looks for and attempts to recompile any invalid objects on a daily basis.
    Adam

  • Problem with SQL Developer (Version 1.5.4)

    Dear All,
    I have two questions as stated below while using the SQL Developer:
    1) I have installed the application to a few PCs; while others are using the system without problems, on my PC, whenever I have entered / opened a SQL scripts on my SQL Loader, I cannot move my cursors within the script area and I could not utilizing the Backspace or my keyboard to modify my script. I have uninstalled and reinstalled a few times but the outcome is the same. Anyone has experienced this before? Any solutions?
    2) Apparently, whenever we have run a script with results of more than 5000 records, there would be an error message telling the limitation. How could we overcome this? What are the settings needed?
    Thank you in advance on all the helps given.
    Thank you.
    Best regards,
    Stephan

    1. opened a SQL scripts on my SQL Loader ? That's not an editor. If you meant SQL Developer, try Preferences - Accelerators - Presets - Default.
    2. Preferences - Database - Worksheet - Max rows to print in a script.
    Regards,
    K.

  • Problem with SQL Developer

    Dear All,
    I have two questions as stated below while using the SQL Developer:
    1) I have installed the application to a few PCs; while others are using the system without problems, on my PC, whenever I have entered / opened a SQL scripts on my SQL Loader, I cannot move my cursors within the script area and I could not utilizing the Backspace or my keyboard to modify my script. I have uninstalled and reinstalled a few times but the outcome is the same. Anyone has experienced this before? Any solutions?
    2) Apparently, whenever we have run a script with results of more than 5000 records, there would be an error message telling the limitation. How could we overcome this? What are the settings needed?
    Thank you in advance on all the helps given.
    Thank you.
    Best regards,
    Stephan

    There's a specific [SQL Developer Forum|http://forums.oracle.com/forums/forum.jspa?forumID=260] where they're probably more knowledgeable of that tool, or readily available to give you an adequade response, if you don't mind reposting there.

  • Problem with ksh script

    Hi
    This is for scripting gurus,
    I am on "SunOs"
    I have created below ksh script to fetch table space info; problem is that I can not have any out put in my variable (TS_DATA);; I don't want to use utl file in my pl/sql can any one tell what went wrong with my script. Thanks in advance
    temp() {
    GET_DB_PASS
    TS_DATA=`sqlplus -s /nolog <<EOSQL
    whenever sqlerror exit failure
    set serveroutput on
    set feedback off
    set pause off
    set echo off
    set heading off
    set verify off
    connect ${l_connect_string}
    DECLARE
    TYPE t_task_tab IS TABLE OF VARCHAR2 (1000)
    INDEX BY BINARY_INTEGER;
    t_tab_space_name t_task_tab;
    t_tot_byte t_task_tab;
    t_fr_byte t_task_tab;
    t_max_chunk t_task_tab;
    t_rpt_txt t_task_tab;
    t_rpt_num t_task_tab;
    l_count number :=0;
    BEGIN
    SELECT tablespace_name,NVL(SUM(bytes),1),1,1
    BULK COLLECT INTO t_tab_space_name,t_tot_byte,t_fr_byte,t_max_chunk
    FROM dba_data_files
    GROUP BY tablespace_name;
    FOR i IN t_tab_space_name.FIRST..t_tab_space_name.LAST
    LOOP
    SELECT NVL(SUM(b.bytes), 1) INTO t_fr_byte(i)
    FROM dba_free_space b
    WHERE t_tab_space_name(i) = b.tablespace_name;
    IF (95 < 100-(t_fr_byte(i)*100/t_tot_byte(i))) THEN
    l_count := l_count + 1;
    SELECT t_tab_space_name(i),TO_CHAR(ROUND(100-(t_fr_byte(i)*100/t_tot_byte(i)), 2))
    INTO t_rpt_txt(i),t_rpt_num(i) FROM dual
    WHERE 95 < 100-(t_fr_byte(i)*100/t_tot_byte(i));
    dbms_output.put_line(t_rpt_txt(i));
    dbms_output.put_line(l_count);
    END IF;
    END LOOP;
    END;
    EOSQL`
    echo $TS_DATA
    temp

    if this is SunOS specifice, is the wrong mailing list..
    what about someting simple:
    cat y.sh#!/usr/bin/ksh
    temp() {
    TS_DATA=`sqlplus -s /nolog <<EOSQL
    connect scott/tiger
    select count(*) from emp;
    exit
    EOSQL`
    echo "${TS_DATA}"
    temp
    ./y.shConnected.
    COUNT(*)
    15
    >
    so works fine on Linux......
    not sure what you are up to, but
    #!/usr/bin/ksh
    temp() {
    sqlplus -s /nolog <<EOSQL
    connect scott/tiger
    select count(*) from emp;
    exit
    EOSQL
    temp
    also should write the output to the stdout; not really sure why you need to use variables to store the results
    guido

  • Problem with SQL Query Action

    Hi,
    I have a problem in using transactions with SQL Querys.
    I developed a TA based an SQL Querys against a MS SQL Server by using the jtds driver.
    After execution of the sql query I iterate through the result data by using the repeater action on the xMII XML results of the query. Using the jtds driver all table and field names are in lower case letters.
    Now I changed the data server to test it with oracle to an oracle database by using the oracle jdbc driver. The database and tables on both Oracle and MS are created with the same sql script.
    The oracle driver returns table and field names in only capital letters. So the created transaction can not be used. Because it for example accesses the node "type" in the XML structure which is fine for jtds. But when oracle is used, the node has the name "TYPE", so the TA tries to use node type but there is only node TYPE that causes the TA to run into an error.
    Anyone has an idea how to avoid / solve this problem?
    Regards
    Timo

    That's exactly what I used as solution now.
    Instead of doing
    "select fieldname from tablename"
    I do now
    "select fieldname as "fieldname" from tablename"
    So both in Oracle and Microsoft SQL Server the returned field names of the query are in lower case letters.
    Thank you for your help.
    Regards Timo

  • Problem saving SQL Scripts

    Has anyone has this problem:
    1) I log onto my database (Oracle XE 10.2.0).
    2) I open a SQL Script that I previously created and saved. The script is about 1700 bytes.
    3) I edit the script. I run the script. I click "Edit Script" button on results screen.
    4) Everything is fine.
    5) I repeat these steps (1-4) 10 or 20 times and then all of a sudden all edits to my script stop saving.
    A) When I run the script without explicitly saving the script, it runs the unedited version of the script.
    B) When I explicitly save the script, the edits do not save.
    C) If I log off the database and back on again, the effects are the same (beginning here with "5)" from the get-go).
    D) I I log off the database, shut down IE 7.0, reboot IE, log back on to the database I begin here at "5)" again.
    E) I mark all my script and copy it to clipboard. I replace script with 3 bytes: "aaa". I click "Save". The three bytes save.
    F) I replace the 3 bytes with my original 1700 bytes of code. The 1700 bytes do not save; only the three bytes remain.
    6) In summary, I would ask, "Is there a size limit to the amount of SQL script you can save using this application?". However, the problem with this question is that everything worked fine for me for one and one-half hours of using the app.
    I will go now to reboot my machine to see if that resolves it.
    I will report back here with the results of that experiment.
    Anybody has any insight, I would be grateful 'cause this is frustrating!!
    Thank you,
    Mike Kemp
    St. Petersburg, FL

    OK problem started right off the bat today.
    But then again the computer had been up and running overnight, multiple users during that time, etc.
    So I rebooted.
    Script is up to 2120 bytes now.
    Problem was not resoved by reboot.
    No matter what I do I can't edit my script and have it save (I edit it, copy and paste to Notepad and move back and forth as needed ... however problem is that when I click "Run" it never recognizes the new script; it always runs the old one).
    Let me take my 2120-byte script and paste it into a brand-new Script Editor window and see if it will run from there (thinking that maybe this Apex thing just can't run long scripts at all)....
    OK that works!!
    Hmmmm...so looks to me like Apex Script Editor can't edit long scripts (I started running into problems when my script exceeded 1700 bytes).
    I'll keep posting back here in case somebody big in Oracle Apex World (I just heard Tom Kyte talking about the guy who created Apex ... can't remember his name now) cares.
    I know, I know they'll probably tell me it's user error :-)
    -Mike

  • Still problem with SQL Between... Help me GURUS!

    I've already posted this, but I will try to put it more simple:
    Imagine these Tables:
    Absentee Table
    ID_TRABALHADORES (Number PK) (Trabalhadores=Worker in english)
    DAT_INI_AUS (Date) - Initial date of absence
    DAT_FIM_AUS (Date) - End of Absence
    Justification Table
    ID_TRABALHADORES (Number PK)
    DAT_INI_JST (Date)
    DAT_FIM_JST (Date)
    Now imagine that an user (Thru a Oracle Form) inputs one absence from 2005/12/13 to 2005/12/29.
    Now the user must input the specified Justification for that absence. Suppose there's 2 Justifications for one SINGLE Absence.
    From 2005/12/13 to 2005/12/20 as justified as ilness and from 2005/12/21 to 2005/12/29 as Death of a relative.
    If I want to find out if someone forgot to fill in a justification, or if it's wrong justified (wrong dates, etc...), how can I work the SQL with Between? It doesn't work if an user puts 1 Absence to 2 Justifications, because it reports it as being an error, but it's not, because the period is correct. It works fine if an user puts the example above like this:
    Absentee Form:
    2005/12/13 to 2005/12/20 (Ilness)
    2005/12/21 to 2005/12/29 (Death of relative)
    Justific Form:
    2005/12/13 to 2005/12/20 - Ilness
    2005/12/21 to 2005/12/29 - Death of relative
    With this I don't catch it because it's not an error and the date periods are correct, but using this way:
    Absentee Form:
    2005/12/13 to 2005/12/29 (Ilness and Death of relative)
    Justific Form:
    2005/12/13 to 2005/12/20 - Ilness
    2005/12/21 to 2005/12/29 - Death of relative
    1 Absence to 2 Justific I catch it as error, but the period is also correct...
    There's any SQL script that can turn around this problem?
    PS- I don't want to use any sort of code in FORMS or PL/SQL

    If I understand the question correctly, you are trying to find out if the justification data matches the absence data or not. Also, if the user puts in two absences then there should be two justifications, right?
    Also, the date range of absence should match date range of justification.
    The two tables are linked by ID_TRABALHADORES column.
    One approach could be:
    Figure out if the number of absence records and justification records match or not:
    select ID_TRABALHADORES , count(*) from Absentee
    group by ID_TRABALHADORES
    MINUS
    select ID_TRABALHADORES , count(*) from justification
    group by ID_TRABALHADORES
    This will give a list of all those IDs where :
    1. There are more records in Absentee but fewer justifications, e.g. 2 date ranges but a single justification
    2. User forgot to enter a justification
    Now let's take it further ... I understand that you want to catch cases where the dates do not match for the IDs identified above.
    select id, min(dat_ini_aus), max(dat_fim_aus) from absentee group by id
    minus
    select id, min(dat_ini_aus), max(dat_fim_aus) from justification group by id
    If the date ranges match then the query above will eliminate further records as the date range identified by min/max would match.
    Anything that does not match could be due to missing records, bad dates etc.
    I think it will help if we can see more data samples and some more explanation of the problem you are trying to solve. A BETWEEN clause may not be needed here.
    Shakti
    http://www.impact-sol.com
    Developers of Guggi Oracle - Tool for DBAs and Developers

  • Problem with SQL Insert

    Hi
    I am using Flex to insert data through remoteobject and using
    SAVE method generated from CFC Wizard.
    My VO contains the following variables where id has a default
    value of 0 :
    public var id:Number = 0 ;
    public var date:String = "";
    public var accountno:String = "";
    public var debit:Number = 0;
    public var credit:Number = 0;
    id is set as the primary key in my database.
    I have previously used MySQL which automatically generates a
    new id if I either omitted the id value in my insert statement or
    use 0 as the default value.
    However, now I am using MS SQL Server and the insert
    generated this error:
    Unable to invoke CFC - Error Executing Database Query.
    Detail:
    [Macromedia][SQLServer JDBC Driver][SQLServer]Cannot insert
    explicit value for identity column in table 'Transactions' when
    IDENTITY_INSERT is set to OFF.
    Strange thing is that I dont see this problem with another
    sample application. I compared with that application (it has the
    same VO with default value of 0 for id) and everything looks
    similar so I can't understand why I have this error in my
    application.
    This is SQL used to create the table:
    USE [Transactions]
    SET ANSI_NULLS ON
    SET QUOTED_IDENTIFIER ON
    SET ANSI_PADDING ON
    CREATE TABLE [dbo].[Transactions](
    [id] [int] IDENTITY(1,1) NOT NULL,
    [date] [datetime] NULL,
    [accountno] [varchar](100) NULL,
    [debit] [int] NULL,
    [credit] [int] NULL,
    CONSTRAINT [PK_Transactions] PRIMARY KEY CLUSTERED
    [id] ASC
    )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE =
    OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON,
    ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
    ) ON [PRIMARY]
    Has anyone encountered this problem before with insert
    statements dealing with a unique id (with MS SQL Server)?

    Change "addRecords =
    connection.prepareStatement("
    to "addRecords =
    connection.preparedStatement("
    -BIGD

Maybe you are looking for

  • How do i use IPAD wifi when travelling

    I have been extensively using IPAD 2 . I recently decided to upgrade mine to IPAD3 . I bought one at the grove apple store and before that asked the salesman the difference in the IPAD 2 AND IPAD 3. He said the resolution of camera and picture was go

  • InfoSet in SAP BI 7.10 and Key figure aggregation

    HI SAP Gurus, I am new in SAP BI area. I have my first problem. I want to create a report for the profit of goods.  The cost of goods(cogs) are constant for each material for one month. The formula to calculate the profit of goods = sales turn over u

  • IPod Photo 4G color frozen when playing music... HOW DO I FIX IT????

    I have an iPod photo and today i was just playing music and all of a sudden, it just randomly froze! I've been looking at all troubleshooting places and iPod frozen forums but they dont help. It's happened before, actually like twice. Last time it ha

  • Photos missing after directory import

    Hello, I've experienced a problem during photo imports where the photo will be in the Originals directory, but not show up anywhere in the album. For example, after an import this is in the iPhoto Library/Originals/2006/Philadelphia directory -rw-r--

  • Function - cbif_glm1_process_order_read

    CQ 1.) What is the work of the function module?  "cbif_glm1_process_order_read" is used for ? What is the syntax for this?How we can implement in program. Thanks & Regards Prashant Bhatnagar Edited by: PRASHANT BHATNAGAR on Nov 18, 2008 11:05 AM Edit