Display record price without totaling in Standard Edition

DealsFact has records of deals with unit price column.
I want to be able to display the unit price measure (in show details or drillthrough action) but need to prevent the user from getting a wrong "total" unit price, in other words prevent totaling.
Is this possible in standard edition?
Is it correct not to total unit price? What is the convention?
(Ex deal 1 unit price 4 $, deal 2 unit price 50$, when looking at all deals I would think the unit price should be blank, not 54$).
Thanks for advising
Namnami

Hi,
I am not sure whether this solution help you or not but give it a try. You can create a custom C# library and use that library to execute against SQL Server Relational Database. DrillThrough actions support displaying data from custom sources. 1st you create
the T-SQL which produces your correct data for you. Then pass your T-SQL code into ASSP.ExecuteSQL to execute the SQL and get the desired results. Now folowing is the implementation of SSSP.ExecuteSQL method (I extracted this from CodePlex)
using System;
using System.Data;
using System.Data.OleDb;
namespace ASSP
public class SQLQuery
public static DataTable ExecuteSQL(string connectionString, string sql)
OleDbConnection conn = new OleDbConnection(connectionString);
DataTable dt = new DataTable("Results");
OleDbDataAdapter da = new OleDbDataAdapter(sql, conn);
da.Fill(dt);
return dt;
Refer to the following link for more information about the ASSP project
http://asstoredprocedures.codeplex.com/
Also read the following link for further details.
http://geekswithblogs.net/darrengosbell/archive/2009/06/18/ssas-executing-arbitrary-sql-queries.aspx
Best regards...
Chandima Lakmal Fonseka

Similar Messages

  • How to modify query  statement in record grp of LOV in standard form

    Hi,
    We are using Service contracts in Production environment.
    Duplicate rows selected for LOV query.
    By adding a line userenv('language') we solve the problem.
    But the coding was written inside the standard "OKSITMSL.pll". Here For the Field "NAME", LOV
    record group "CUST_SYSTEM" assigned dynamically based on
    other fields "ITEMSEL.FILTER = SYSTEM" and "ITEMSEL.CUSTOMER_FILTER = CUSTOMER".
    I have added piece of the details below.
    Form is Standard form "OKSITMSL", Which is calling om parent form "OKSAUDET".
    Form : OKSITMSL
    Block : ITEMSEL
    field : NAME
    pll : OKSITMSL.pll
    oksitmsl.pll coding-------------
    ELSIF NAME_IN('ITEMSEL.FILTER') = 'System' THEN
    If UPPER(Name_In('ITEMSEL.CUSTOMER_FILTER')) = 'CUSTOMER' then
    l_group_name := 'CUST_SYSTEM';
    Elsif UPPER(Name_In('ITEMSEL.CUSTOMER_FILTER')) = 'RELATED' then
    l_group_name := 'REL_CUST_SYSTEM';
    Elsif UPPER(Name_In('ITEMSEL.CUSTOMER_FILTER')) = 'BOTH' then
    l_group_name := 'BOTH_SYSTEM';
    Elsif UPPER(Name_In('ITEMSEL.CUSTOMER_FILTER')) = 'ALL' then
    l_group_name := 'OKS_SYSTEM';
    End If;
    Set_Lov_Property('ITEMSEL_LEVEL', GROUP_NAME, l_group_name);
    “CUST_SYSTEM” Record group present in “OKSITMSL” form.
    I need the advice how to solve my problem by adding a line in query of "CUST_SYSTEM" record group without touching/alter standard form.
    Thanks in advance.
    Navas

    thank you shadow,
    I think you mean like below:
    and trim(leading 0 from a.DD_DRX_BSID_NID) = nvl(trim(to_char(SUBSTR('00042',6,5),'XXXXXXXXX')),0)
    and trim(leading 0 from a.DD_DRX_BSID_BSC) = nvl(trim(to_char(SUBSTR('00042',11,5),'XXXXXXXXX')),0) ))But i think it compares with all 0's record ... but that's not correct
    Edited by: josh1612 on Dec 22, 2008 2:50 AM

  • How to display total in a block without total showing up in relevant detail block

    Hi there,
              I create a worksheet, including two block, one of which have detail information with multiple characts and one key figure, another block only have sumerization information takes one cell, which is summarized key figure for that detail information block.
             I implement this summary cell with formula 'GETDATA', but it is only effective after I show total for detail block.
            such as for detail block:
                         employee_no,  wage type,  earning_amount.
                         overall result                        total for earning_amount
            for summary block:
                         summary of earning_amount for all employees in the detail block.
    please tell me how to display summary block without pulling in overall result for detail block.
    Many Thanks,

    Hi bo zhang,
    This can be a work around
    As Michael Tocik suggested
    goto components tab, right click on data source and select copy
    do not insert cross tab
    then use the formula for DS_2 like
    =SAPGetData("DS_2","earning_amount","employee_no=TOTAL")
    this should work.
    and if you do any drill down for DS_1, the above total will not chnage because that is dependent on DS_2
    Hope it helps
    Best Regards,
    Subhash

  • Is it possible to display records without master detail relationship?

    Hi all,
    I've a form for importing excl to oracle with column mapping. i.e I've display excl column heading on the form.
    In front of each excel column heading I've provide a list item which contains table column heading so user can map his excl column with table column and according to data gets insert into the database table.
    There are 28 excel and table column headings on the form every time user will have to map the column. Its very time consuming job. That's why I've decide to provide template to user. e.g user maps the excl column with table column only first time, then this combination is saved as 'template 1' . when user runs the form next time he/she needs to just select template-1 from lov. and that template get displayed on the forms field. Then user will press the process button and data gets inserted into respective table
    Now I've created two tables
    1. mst_template
    template_name        varchar2(100) ---primary key.
    2. template
    template_name   varchar2(100) --- foreign key (ref. tempalte_name - mst_template)
    ex_col                varchar2(100)
    tb_col                varchar2(100)Now my problem is, I try the master detail relationship but it doen't works becase on my form the condition is
    excel col                                   table col
    excl_col1                                 Tab_col1
    excl_col2                                  tab_col2
    excl_col28                                Tab_col28       i've establish the master detail relationship but getting error
    FRM-40505:ORACLE error:unable to perform query. as i use excl_col1, tab_col1.. etc
    can i achieve it by using cursor? without using master detail relationship. My 90% coding is done. only thing remaining is to display records on form. so can i use cursor in this situation? and how? I've work so hard on it and lot of time is spend too so i don't want to change the coding of the existing form. any suggestion for this problem.
    please help
    Regards
    sam.

    Turning on Closed Captioning is all you can do.  I think the problem you have is that not all movies have closed captioning.

  • How to update info record price in to material master as a standard price -

    Hi Experts,
    We have a client requirement as below:
    Client wants to compare the info record price per material for all related vendors.
    Once he arrives at the best effective price (Material Price + Freight + Duty), he would want this price to update in the Material Master Record as Standard price.
    I know we can use MR21 and LSMW to update this manually but we are looking to automate this process as we have more than 100,000 records in the system.
    Can the above requirement be addressed through CK40N? if yes, How?
    Thanks,
    Jammy

    Hi Jammy
    Usually, in std SAP, if there are multiple condition records, the one with lowest price is considered by the system in CK11N/CK40N
    Configure your valuation variant to pick up price from info record... As far as I remember, the one with lowest price would get picked up when you do costing run...
    however, if your requirement is bit different than this, but is based on a logic which can be configured in the system, then use Valuation Strategy U in your Valuation Variant and write your code accordingly in the exit COPCP005 (Component EXIT_SAPLCK21_002.)
    Regards
    Ajay M

  • WLDF in WebLogic 12.1.1 - Is it part of Standard Edition (without additional cost)?

    I know Mission Control is not allowed in production for WebLogic Standard Edition without additional licensing costs.  How about WLDF? 
    I haven't been able to find any documentation to state one way or the other and I don't want to assume since it took me quite a while to understand the JRMC licensing back in WL10 and WL11 versions.
    Thanks,
    Bill

    http://www.oracle.com/us/products/middleware/application-server/oracle-weblogic-server-ds-1391360.pdf
    "The WebLogic Management Framework includes the administration
    server, its communication with managed servers, lifecycle
    management via the Node Manager, and the WebLogic
    Administration Console. The console provides the starting point for
    essential operations, administration, automation and management. It
    enables access to all the functions of Oracle WebLogic Server and
    includes built-in intelligence to help prevent human configuration
    errors. The WebLogic Scripting Tool enables command-line and
    scriptable control over Oracle WebLogic Server. The WebLogic
    Diagnostic Framework enables users to instrument applications for
    monitoring and diagnostic purposes."
    According to this (the way I read it) WLDF belongs to the WebLogic Management Framework, which is part of the standard edition (so from this you would assume no additional costs are needed when using WLDF).

  • How to get th displaye record count through SQL*Plus without result

    set lines 155
    set pages 100
    set autoprint on
    variable cv refcursor
    set serveroutput on size 1000000
    set timing on
    set feedback on
    set echo on
    exec proc_name (input1, input2, :cv);how to get the record count without resultset display in the sql*plus promt ...?
    plz help me....

    This is my earilier code
    set lines 155
    set pages 100
    set autoprint on
    variable cv refcursor
    set serveroutput on size 1000000
    set timing on
    set feedback on
    set echo on
    exec proc_name (input1, input2, :cv);
    Then i have tried to execute like this
    declare
    disp SYS_REFCURSOR;
    cv SYS_REFCURSOR;
    cnt number :=0;
    begin
    proc_name (input1, input2, :cv);
    FOR disp in cv --here cv is the set of record set
    LOOP
    --FETCH cv INTO disp;
    EXIT WHEN cv%NOTFOUND;
    cnt := cnt + 1;
    END LOOP;
    dbms_output.put_line(cnt);
    dbms_output.put_line(cv%rowcount);
    CLOSE cv;
    end;
    getting error...
    LOOP
    ERROR at line 8:
    ORA-06550: line 8, column 2:
    PLS-00103: Encountered the symbol "LOOP" when expecting one of the following:
    . ( % ; for
    The symbol "; was inserted before "LOOP" to continue.
    ORA-06550: line 13, column 2:
    PLS-00103: Encountered the symbol "DBMS_OUTPUT"
    ORA-06550: line 13, column 27:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    . ( , * % & - + / at mod rem <an identifier>
    <a double-quoted delimited-identifier> <an exponent (**)> as
    from into || bulk
    I have set of executable procedure script for exec procedure1(input1, input2 :cv); , exec procedure1(input1, input2 :cv);,.... like that. But i want only the record count, while we execute all these scripts in the sql promt...How to do that one.. ?

  • Standby db-EE edition and Standard edition

    Dear friends,
    10g on solaris 10.
    What are the differences in standby db when using a enterprise edition and standard edition ?..
    Any input will be of great help
    Kai

    Niall and team
    I have read your presentation - "You Probably Don't need dataguard" and I tried it out on test database. I setup a manual standby database, archivelog is manually copied to standby db.
    Maybe you have an idea on regarding SCN or archivelog that is not present but Oracle is asking/suggestion during recovery procedure..
    environment:
    2 virtual box - Solaris 10 Virtual Machine host on Windows XP
    Oracle 10.2.0 Standard Edition
    Primary DB host name: SE
    Standby DB host name: SE2
    archive dest = /export/home/oracle/archive (same on both machine)
    db file = /export/home/oracle/oradata/se , /export/home/oracle/oradata/se2 --> so I used db_file convert parameter in init.ora
    Steps:
    On the newly created database, create a test table and insert values.
    SQL> create table test(a number) tablespace users;
    Table created.
    SQL> insert into test values(&a);
    Enter value for a: 1
    old 1: insert into test values(&a)
    new 1: insert into test values(1)
    1 row created.
    SQL> /
    Enter value for a: 21
    old 1: insert into test values(&a)
    new 1: insert into test values(21)
    1 row created.
    SQL> /
    Enter value for a: 31
    old 1: insert into test values(&a)
    new 1: insert into test values(31)
    1 row created.
    SQL> /
    Enter value for a: 41
    old 1: insert into test values(&a)
    new 1: insert into test values(41)
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> alter system archive log current;
    System altered.
    SQL>
    $ ls -lrt
    total 41808
    -rw-r----- 1 oracle oinstall 21378048 Feb 24 15:52 1_2_711819574.dbf
    $
    Again, insert some values to test table,
    SQL> insert into test values(&a);
    Enter value for a: 33
    old 1: insert into test values(&a)
    new 1: insert into test values(33)
    1 row created.
    SQL> /
    Enter value for a: 44
    old 1: insert into test values(&a)
    new 1: insert into test values(44)
    1 row created.
    SQL> /
    Enter value for a: 55
    old 1: insert into test values(&a)
    new 1: insert into test values(55)
    1 row created.
    SQL> /
    Enter value for a: 11
    old 1: insert into test values(&a)
    new 1: insert into test values(11)
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> alter system archive log current;
    System altered.
    SQL> select * from test;
    A
    1
    21
    31
    41
    33
    44
    55
    11
    8 rows selected.
    check archivelog dir,
    $ ls -lrt
    total 41816
    -rw-r----- 1 oracle oinstall 21378048 Feb 24 15:52 1_2_711819574.dbf
    -rw-r----- 1 oracle oinstall 4096 Feb 24 15:55 1_3_711819574.dbf
    $
    Then,
    1. shutdown immediate (primary)
    SQL> shutdown immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL>
    2. copy datafile, redo, archive log to SE2 node.
    $ pwd
    /export/home/oracle/oradata/se
    $ ls
    control01.ctl control03.ctl redo02.log sysaux01.dbf temp01.dbf users01.dbf
    control02.ctl redo01.log redo03.log system01.dbf undotbs01.dbf
    $ scp * [email protected]:/export/home/oracle/oradata/se2
    Password:
    control01.ctl 100% |******************************************************| 6896 KB 00:01
    control02.ctl 100% |******************************************************| 6896 KB 00:01
    control03.ctl 100% |******************************************************| 6896 KB 00:00
    redo01.log 100% |******************************************************| 51200 KB 00:09
    redo02.log 100% |******************************************************| 51200 KB 00:11
    redo03.log 100% |******************************************************| 51200 KB 00:08
    sysaux01.dbf 100% |******************************************************| 240 MB 00:54
    system01.dbf 100% |******************************************************| 480 MB 01:35
    temp01.dbf 100% |******************************************************| 20488 KB 00:04
    undotbs01.dbf 100% |******************************************************| 25608 KB 00:05
    users01.dbf 100% |******************************************************| 5128 KB 00:01
    $
    $ ls -lrt
    total 41816
    -rw-r----- 1 oracle oinstall 21378048 Feb 24 15:52 1_2_711819574.dbf
    -rw-r----- 1 oracle oinstall 4096 Feb 24 15:55 1_3_711819574.dbf
    $ scp 1_2_711819574.dbf [email protected]:/export/home/oracle/archive
    Password:
    1_2_711819574.dbf 100% |******************************************************| 20877 KB 00:04
    $
    3. startup (primary)
    4. create standby control file
    SQL> startup
    ORACLE instance started.
    Total System Global Area 167772160 bytes
    Fixed Size 1279120 bytes
    Variable Size 62917488 bytes
    Database Buffers 100663296 bytes
    Redo Buffers 2912256 bytes
    Database mounted.
    Database opened.
    SQL> alter database create standby controlfile as '/export/home/oracle/standby.ctl';
    Database altered.
    5. copy standby control file to SE2
    $ pwd
    /export/home/oracle
    $ scp standby.ctl [email protected]:/export/home/oracle
    Password:
    standby.ctl 100% |******************************************************| 6896 KB 00:01
    $
    6. edit init.ora, specify location of control file - use standby control file
    *.control_files='/export/home/oracle/standby.ctl'
    7. SE2,
    SQL> startup nomount pfile=/export/home/oracle/product/10.2.0/db_1/dbs/initse.ora
    ORACLE instance started.
    Total System Global Area 167772160 bytes
    Fixed Size 1279120 bytes
    Variable Size 62917488 bytes
    Database Buffers 100663296 bytes
    Redo Buffers 2912256 bytes
    8. alter database mount standby database;
    SQL> alter database mount standby database;
    Database altered.
    SQL>
    9. we'll try to open as read only without recovery,
    SQL> alter database open read only;
    alter database open read only
    ERROR at line 1:
    ORA-16004: backup database requires recovery
    ORA-01152: file 1 was not restored from a sufficiently old backup
    ORA-01110: data file 1: '/export/home/oracle/oradata/se2/system01.dbf'
    10. then, we recover by - recover standby database;
    SQL> recover standby database;
    ORA-00279: change 540274 generated at 02/24/2010 15:58:26 needed for thread 1
    ORA-00289: suggestion : /export/home/oracle/archive/1_4_711819574.dbf
    ORA-00280: change 540274 for thread 1 is in sequence #4
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    auto
    ORA-00308: cannot open archived log
    '/export/home/oracle/archive/1_4_711819574.dbf'
    ORA-27037: unable to obtain file status
    Intel SVR4 UNIX Error: 2: No such file or directory
    Additional information: 3
    ORA-00308: cannot open archived log
    '/export/home/oracle/archive/1_4_711819574.dbf'
    ORA-27037: unable to obtain file status
    Intel SVR4 UNIX Error: 2: No such file or directory
    Additional information: 3
    ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
    ORA-01152: file 1 was not restored from a sufficiently old backup
    ORA-01110: data file 1: '/export/home/oracle/oradata/se2/system01.dbf'
    <observation> notice that archive log 4 is not yet present in Primary DB and STBY DB.
    Question: Why Oracle is asking archivelog that does not exist? I noticed in other exercise that you can use the redo log instead of archive log that does not exist. Is this because when we create the standby control file, the SCN is in sync with redo log.
    10. Now, we will copy archive log 3 to STDB,
    $ cd archive
    $ ls
    1_2_711819574.dbf 1_3_711819574.dbf
    $ scp 1_3_*711819574.dbf [email protected]:/export/home/oracle/archive
    Password:
    1_3_711819574.dbf 100% |******************************************************| 4096 00:00
    $
    11. on SE2, recover
    SQL> recover automatic standby database until cancel;
    ORA-00279: change 540274 generated at 02/24/2010 15:58:26 needed for thread 1
    ORA-00289: suggestion : /export/home/oracle/archive/1_4_711819574.dbf
    ORA-00280: change 540274 for thread 1 is in sequence #4
    ORA-00278: log file '/export/home/oracle/archive/1_4_711819574.dbf' no longer
    needed for this recovery
    ORA-00308: cannot open archived log
    '/export/home/oracle/archive/1_4_711819574.dbf'
    ORA-27037: unable to obtain file status
    Intel SVR4 UNIX Error: 2: No such file or directory
    Additional information: 3
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    cancel
    ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
    ORA-01152: file 1 was not restored from a sufficiently old backup
    ORA-01110: data file 1: '/export/home/oracle/oradata/se2/system01.dbf'
    ORA-01112: media recovery not started
    12. Now, to generate the archivelog 4 and get the SCN that is indicated above, from one of our redo log. we will go to PRIMARY DB, and insert some rows to TEST TABLE and switch log file.
    SQL>
    SQL> insert into test values(&a);
    Enter value for a: 99
    old 1: insert into test values(&a)
    new 1: insert into test values(99)
    1 row created.
    SQL> /
    Enter value for a: 100
    old 1: insert into test values(&a)
    new 1: insert into test values(100)
    1 row created.
    SQL> /
    Enter value for a: 101
    old 1: insert into test values(&a)
    new 1: insert into test values(101)
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> alter system switch logfile;
    System altered.
    $ ls -lrt
    total 42568
    -rw-r----- 1 oracle oinstall 21378048 Feb 24 15:52 1_2_711819574.dbf
    -rw-r----- 1 oracle oinstall 4096 Feb 24 15:55 1_3_711819574.dbf
    -rw-r----- 1 oracle oinstall 376832 Feb 24 16:28 1_4_711819574.dbf
    13. We will again, switch logfile, to generate archive 5, before we copied archive 4 to STBY, we are sure that arch 5 is the active archivelog.
    SQL> alter system switch logfile;
    System altered.
    SQL> exit
    Disconnected from Oracle Database 10g Release 10.2.0.2.0 - Production
    $ ls -lrt
    total 42570
    -rw-r----- 1 oracle oinstall 21378048 Feb 24 15:52 1_2_711819574.dbf
    -rw-r----- 1 oracle oinstall 4096 Feb 24 15:55 1_3_711819574.dbf
    -rw-r----- 1 oracle oinstall 376832 Feb 24 16:28 1_4_711819574.dbf
    -rw-r----- 1 oracle oinstall 1024 Feb 24 16:31 1_5_711819574.dbf
    $
    14. copy archive log 4 to STBY (SE2)
    $ scp 1_4_711819574.dbf [email protected]:/export/home/oracle/archive
    Password:
    1_4_711819574.dbf 100% |********************************************| 368 KB 00:00
    $
    15. In SE2, recover
    SQL> recover automatic standby database until cancel;
    ORA-00279: change 540985 generated at 02/24/2010 16:28:36 needed for thread 1
    ORA-00289: suggestion : /export/home/oracle/archive/1_5_711819574.dbf
    ORA-00280: change 540985 for thread 1 is in sequence #5
    ORA-00278: log file '/export/home/oracle/archive/1_5_711819574.dbf' no longer
    needed for this recovery
    ORA-00308: cannot open archived log
    '/export/home/oracle/archive/1_5_711819574.dbf'
    ORA-27037: unable to obtain file status
    Intel SVR4 UNIX Error: 2: No such file or directory
    Additional information: 3
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    cancel
    Media recovery cancelled.
    15. Now let's see if we can open as read only and check test table.
    SQL> alter database open read only;
    Database altered.
    SQL> select * from test;
    A
    1
    21
    31
    41
    33
    44
    55
    11
    99
    100
    101
    11 rows selected.
    16. Now shutdown STBY database,
    SQL> shutdown immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL>
    17. On SE (PRIMARY), insert some records to TEST table, please take note that current archivelog is no. 5. We want to generate archivelog 6 and archivelog 7. Then only archivelog 5 and 6 will be copied to STBY.
    SQL> insert into test values(&a);
    Enter value for a: 1000
    old 1: insert into test values(&a)
    new 1: insert into test values(1000)
    1 row created.
    SQL> /
    Enter value for a: 1001
    old 1: insert into test values(&a)
    new 1: insert into test values(1001)
    1 row created.
    SQL> /
    Enter value for a: 1002
    old 1: insert into test values(&a)
    new 1: insert into test values(1002)
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> alter system archive log current;
    System altered.
    SQL> exit
    Disconnected from Oracle Database 10g Release 10.2.0.2.0 - Production
    $ ls -lrt
    total 42632
    -rw-r----- 1 oracle oinstall 21378048 Feb 24 15:52 1_2_711819574.dbf
    -rw-r----- 1 oracle oinstall 4096 Feb 24 15:55 1_3_711819574.dbf
    -rw-r----- 1 oracle oinstall 376832 Feb 24 16:28 1_4_711819574.dbf
    -rw-r----- 1 oracle oinstall 1024 Feb 24 16:31 1_5_711819574.dbf
    -rw-r----- 1 oracle oinstall 31744 Feb 24 16:41 1_6_711819574.dbf
    we will do, log switch to create archive log 7,
    SQL> alter system switch logfile;
    System altered.
    SQL> exit
    Disconnected from Oracle Database 10g Release 10.2.0.2.0 - Production
    $ ls -lrt
    total 42634
    -rw-r----- 1 oracle oinstall 21378048 Feb 24 15:52 1_2_711819574.dbf
    -rw-r----- 1 oracle oinstall 4096 Feb 24 15:55 1_3_711819574.dbf
    -rw-r----- 1 oracle oinstall 376832 Feb 24 16:28 1_4_711819574.dbf
    -rw-r----- 1 oracle oinstall 1024 Feb 24 16:31 1_5_711819574.dbf
    -rw-r----- 1 oracle oinstall 31744 Feb 24 16:41 1_6_711819574.dbf
    -rw-r----- 1 oracle oinstall 1024 Feb 24 16:42 1_7_711819574.dbf
    Then copy, arc 5 and arc 6 to SE2 (STBY)
    $ scp 1_5_711819574.dbf 1_6_711819574.dbf [email protected]:/export/home/oracle/archive
    Password:
    1_5_711819574.dbf 100% |*********************************************************| 1024 00:00
    1_6_711819574.dbf 100% |*********************************************************| 31744 00:00
    $
    17. in SE2, recover
    SQL> startup nomount pfile=/export/home/oracle/product/10.2.0/db_1/dbs/initse.ora
    ORACLE instance started.
    Total System Global Area 167772160 bytes
    Fixed Size 1279120 bytes
    Variable Size 62917488 bytes
    Database Buffers 100663296 bytes
    Redo Buffers 2912256 bytes
    SQL> alter database mount standby database;
    Database altered.
    SQL> recover automatic standby database until cancel;
    ORA-00279: change 541270 generated at 02/24/2010 16:41:26 needed for thread 1
    ORA-00289: suggestion : /export/home/oracle/archive/1_7_711819574.dbf
    ORA-00280: change 541270 for thread 1 is in sequence #7
    ORA-00278: log file '/export/home/oracle/archive/1_7_711819574.dbf' no longer
    needed for this recovery
    ORA-00308: cannot open archived log
    '/export/home/oracle/archive/1_7_711819574.dbf'
    ORA-27037: unable to obtain file status
    Intel SVR4 UNIX Error: 2: No such file or directory
    Additional information: 3
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    cancel
    Media recovery cancelled.
    18. open as read only, to check if the newly inserted records can be view,
    SQL> alter database open read only;
    Database altered.
    SQL> select * from test;
    A
    1
    21
    31
    41
    33
    44
    55
    11
    99
    100
    101
    A
    1000
    1001
    1002
    14 rows selected.
    OK, that means that archive log 5 and archivelog 6 are applied to STBY database.
    Question. Why Oracle is asking the arc 7 , is it correct to say that last SCN is based on arc 5 and arc 6. Or is it Oracle behavior to ask the "next" SCN, after the arc 6. when performing recovery? ... that's why we have CANCEL.
    Appreciate your response on this..
    Thanks..
    19. For the sake of curiosity, lets try if we can use - recover managed standby database; (archivelog is still manually copied)
    on SE2, we will put it on "recovery mode"
    shutdown immediate,
    startup nomount pfile =
    alter database mount standby database
    recover managed standby database; (though the archivelogs are still copied manually )
    SQL> shutdown immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup nomount pfile=/export/home/oracle/product/10.2.0/db_1/dbs/initse.ora
    ORACLE instance started.
    Total System Global Area 167772160 bytes
    Fixed Size 1279120 bytes
    Variable Size 62917488 bytes
    Database Buffers 100663296 bytes
    Redo Buffers 2912256 bytes
    SQL> alter database mount standby database;
    Database altered.
    SQL> recover managed standby database; (it will "hang", if you need to CANCEL open new session and use - recover managed standby database cancel)
    our current arch is 7, we will insert records to test table, and generate arch 8 and arch 9, then we will transfer arch 7 and arch 8 to SE2,
    on SE,
    Connected to:
    Oracle Database 10g Release 10.2.0.2.0 - Production
    SQL> insert into test values(&a);
    Enter value for a: 2000
    old 1: insert into test values(&a)
    new 1: insert into test values(2000)
    1 row created.
    SQL> /
    Enter value for a: 2001
    old 1: insert into test values(&a)
    new 1: insert into test values(2001)
    1 row created.
    SQL> /
    Enter value for a: 2003
    old 1: insert into test values(&a)
    new 1: insert into test values(2003)
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> alter system archive log current;
    System altered.
    SQL> alter system switch logfile;
    System altered.
    SQL> exit
    Disconnected from Oracle Database 10g Release 10.2.0.2.0 - Production
    $ pwd
    /export/home/oracle/archive
    $ ls -lrt
    total 45758
    -rw-r----- 1 oracle oinstall 21378048 Feb 24 15:52 1_2_711819574.dbf
    -rw-r----- 1 oracle oinstall 4096 Feb 24 15:55 1_3_711819574.dbf
    -rw-r----- 1 oracle oinstall 376832 Feb 24 16:28 1_4_711819574.dbf
    -rw-r----- 1 oracle oinstall 1024 Feb 24 16:31 1_5_711819574.dbf
    -rw-r----- 1 oracle oinstall 31744 Feb 24 16:41 1_6_711819574.dbf
    -rw-r----- 1 oracle oinstall 1024 Feb 24 16:42 1_7_711819574.dbf
    -rw-r----- 1 oracle oinstall 1584640 Feb 24 17:02 1_8_711819574.dbf
    -rw-r----- 1 oracle oinstall 2048 Feb 24 17:02 1_9_711819574.dbf
    $
    $ scp 1_7_711819574.dbf 1_8_711819574.dbf [email protected]:/export/home/oracle/archive
    Password:
    1_7_711819574.dbf 100% |*********************************************************| 1024 00:00
    1_8_711819574.dbf 100% |*********************************************************| 1547 KB 00:00
    $
    Please take note that in SE2 initse.ora file, we also set standby_control_file = /export/home/oracle/archive parameter.
    19. On SE2, open new session, and cancel recovery,
    session 2,
    SQL> recover managed standby database cancel;
    Media recovery complete.
    SQL>
    session 1,
    SQL> recover managed standby database;
    ORA-16043: managed recovery session canceled
    ORA-16037: user requested cancel of managed recovery operation
    Lets check if archivelog is applied, by checking test table,
    SQL> alter database open read only;
    Database altered.
    SQL> select * from test;
    A
    1
    21
    31
    41
    33
    44
    55
    11
    99
    100
    101
    A
    1000
    1001
    1002
    14 rows selected.
    Notice that 2000, 2001, 2002 are not added in TEST table.
    Lets do manual recovery,
    SQL> startup nomount pfile=/export/home/oracle/product/10.2.0/db_1/dbs/initse.ora
    ORACLE instance started.
    Total System Global Area 167772160 bytes
    Fixed Size 1279120 bytes
    Variable Size 62917488 bytes
    Database Buffers 100663296 bytes
    Redo Buffers 2912256 bytes
    SQL> alter database mount standby database;
    Database altered.
    SQL> recover automatic standby database until cancel;
    ORA-00279: change 541804 generated at 02/24/2010 17:02:34 needed for thread 1
    ORA-00289: suggestion : /export/home/oracle/archive/1_9_711819574.dbf
    ORA-00280: change 541804 for thread 1 is in sequence #9
    ORA-00278: log file '/export/home/oracle/archive/1_9_711819574.dbf' no longer
    needed for this recovery
    ORA-00308: cannot open archived log
    '/export/home/oracle/archive/1_9_711819574.dbf'
    ORA-27037: unable to obtain file status
    Intel SVR4 UNIX Error: 2: No such file or directory
    Additional information: 3
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    cancel
    Media recovery cancelled.
    SQL> select * from test;
    select * from test
    ERROR at line 1:
    ORA-01219: database not open: queries allowed on fixed tables/views only
    SQL> alter database open read only;
    Database altered.
    SQL> select * from test;
    A
    1
    21
    31
    41
    33
    44
    55
    11
    99
    100
    101
    A
    1000
    1001
    1002
    2000
    2001
    2003
    17 rows selected.

  • Advice on simulating dataguard on standard Edition

    Hello,
    I'm currently working on 10g R2/Windows based OS.
    The following are actions done to simulate data guard using standard Edition on oracle 10g R2.
    All steps works fine on both side as you can see below.
    {color:#ff0000}_Actions done on the primary database_{color}
    {color:#0000ff}- startup the database in mounted state
    {color}SQL&gt; startup mount;
    SQL&gt; alter database archivelog;
    {color:#0000ff}- Enable the force logging of the database{color}
    SQL&gt; alter database force logging;
    {color:#0000ff}- Create the backup controlfile
    {color}SQL&gt; alter database backup controlfile to trace;
    &sect; Make a cold backup of the primary database
    {color:#0000ff}- Shutdown the database{color}
    SQL&gt; shutdown immediate;
    Copy all datafiles, controlfiles,redolog files,password files ,spfile,tnsnames.ora,sqlnet.ora and listener.ora to be used for the secondary database
    Directory
    {color:#0000ff}&sect; Verify the checkpoint change# of the primary database at mounted state{color}
    SQL&gt; startup mount
    SQL&gt; select file#,checkpoint_change# from v$datafile_header;
    FILE# CHECKPOINT_CHANGE#
    1 541985
    2 541985
    3 541985
    4 541985
    {color:#ff0000}*Preparing the secondary database</strong{color}
    {color:#0000ff}&sect; Restored all previous files copied during the above cold backup on each correponding location{color}
    {color:#0000ff}&sect;Create the database services ( I'm working on windows based OS{color})
    DOS PROMPT # ORADIM -new -SID &lt;SID&gt;
    {color:#0000ff}&sect; Create a backup controlfile from the sql statement contained from the former trace file
    {color}
    DOS PROMPT # set ORACLE_SID=&lt;SID&gt;
    DOS PROMPT # sqlplus /nolog
    SQL&gt; conn /as sysdba
    SQL&gt; STARTUP NOMOUNT
    CREATE CONTROLFILE REUSE DATABASE "&lt;SID&gt;" RESETLOGS FORCE LOGGING ARCHIVELOG
    MAXLOGFILES 16
    MAXLOGMEMBERS 3
    MAXDATAFILES 100
    MAXINSTANCES 8
    MAXLOGHISTORY 292
    LOGFILE
    GROUP 1 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\&lt;SID&gt;\REDO01.LOG' SIZE 50M,
    GROUP 2 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\&lt;SID&gt;\REDO02.LOG' SIZE 50M,
    GROUP 3 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\&lt;SID&gt;\REDO03.LOG' SIZE 50M
    -- STANDBY LOGFILE
    DATAFILE
    'C:\ORACLE\PRODUCT\10.2.0\ORADATA\&lt;SID&gt;\SYSTEM01.DBF',
    'C:\ORACLE\PRODUCT\10.2.0\ORADATA\&lt;SID&gt;\UNDOTBS01.DBF',
    'C:\ORACLE\PRODUCT\10.2.0\ORADATA\&lt;SID&gt;\SYSAUX01.DBF',
    'C:\ORACLE\PRODUCT\10.2.0\ORADATA\&lt;SID&gt;\USERS01.DBF'
    CHARACTER SET WE8MSWIN1252
    {color:#0000ff}&sect; Verify the secondary database mount state
    {color}
    SQL&gt; select open_mode from v$database;
    Output
    OPEN_MODE
    MOUNTED
    {color:#0000ff}&sect; Verify that the checkpoint change# of the secondary database must match with the one on the primary database at mount state
    {color}
    SQL&gt; select file#,checkpoint_change# from v$datafile_header;
    FILE# CHECKPOINT_CHANGE#
    1 541985
    2 541985
    3 541985
    4 541985
    {color:#0000ff}Set the automatic recovery mode on the secondary database
    {color}
    SQL&gt; set autorecovery on
    {color:#0000ff}Manually copy archived files generated on the primary database to be applied on the secondary database
    {color}{color:#0000ff}launch the recover command to apply the changes on the secondary database{color}
    SQL&gt; RECOVER DATABASE UNTIL CANCEL USING BACKUP CONTROLFILE;
    {color:#0000ff}Output generated during the recovering
    {color}
    SQL&gt; recover database until cancel using backup controlfile;
    ORA-00279: change 556095 generated at 11/17/2008 16:09:10 needed for thread 1
    ORA-00289: suggestion :
    C:\STANDBY_LOGDBA1\ARC_NUMBER_00012_001_0671026031_OF_761A57AC.ARC
    ORA-00280: change 556095 for thread 1 is in sequence #12
    ORA-00279: change 600989 generated at 11/18/2008 10:56:32 needed for thread 1
    ORA-00289: suggestion :
    C:\STANDBY_LOGDBA1\ARC_NUMBER_00013_001_0671026031_OF_761A57AC.ARC
    ORA-00280: change 600989 for thread 1 is in sequence #13
    ORA-00278: log file
    'C:\STANDBY_LOGDBA1\ARC_NUMBER_00012_001_0671026031_OF_761A57AC.ARC' no longer
    needed for this recovery
    ORA-00279: change 601361 generated at 11/18/2008 11:02:24 needed for thread 1
    ORA-00289: suggestion :
    C:\STANDBY_LOGDBA1\ARC_NUMBER_00014_001_0671026031_OF_761A57AC.ARC
    ORA-00280: change 601361 for thread 1 is in sequence #14
    ORA-00278: log file
    'C:\STANDBY_LOGDBA1\ARC_NUMBER_00013_001_0671026031_OF_761A57AC.ARC' no longer
    needed for this recovery
    ORA-00279: change 601687 generated at 11/18/2008 11:13:51 needed for thread 1
    ORA-00289: suggestion :
    C:\STANDBY_LOGDBA1\ARC_NUMBER_00015_001_0671026031_OF_761A57AC.ARC
    ORA-00280: change 601687 for thread 1 is in sequence #15
    ORA-00278: log file
    'C:\STANDBY_LOGDBA1\ARC_NUMBER_00014_001_0671026031_OF_761A57AC.ARC' no longer
    needed for this recovery
    {color:#ff0000}*ORA-00308: cannot open archived log*
    *'C:\STANDBY_LOGDBA1\ARC_NUMBER_00015_001_0671026031_OF_761A57AC.ARC'*
    ORA-27041: unable to open file
    OSD-04002: unable to open file
    O/S-Error: (OS 2) The system cannot find the file specified.
    {color}
    Because I need to make all this work automatically, so I have to
    1. Avoid copying manually archived files from primary database to secondary database
    2. Avoid launching manually the recover command above
    Question:
    a) Does someone have any idea on how to avoid the message in red above? ( the message is normal but I just need to not want it to be displayed)
    b) archived files copied can be corrupted therefore preveting the secondary database to recover, my current solution here is to multiplex archived files to avoid a single point of failure.
    My question is to ask you guys if there is another way to prevent archived file to be corrupted before and after being copied?
    c) Technically Logminer can be used to rollback transactions in case unwanted changes were committed, as I'm working on standard edition, there is another way to rollback a change not using Logminer?
    d) I know that it's obvious using Enterprise Edition to fully configure data guard, but as cash flow is not enough, does some one give another disavantage on implementing this techninque(simalating data guard on standard edition)?
    e) What else could you guys advise, base on your experience in this technique?
    I trully need your help as I have never deal with this technique and I need much information to let know my boss in case he decided to go ahead with this.
    Thanks in advance for your help

    With standard Edition the following are what I have tried and it worked
    SQL&gt; {color:#0000ff}startup nomount
    {color}ORACLE instance started.
    Total System Global Area 612368384 bytes
    Fixed Size 1250452 bytes
    Variable Size 171969388 bytes
    Database Buffers 436207616 bytes
    Redo Buffers 2940928 bytes
    SQL&gt; {color:#0000ff}alter database mount standby database;
    {color}
    Database altered.
    SQL&gt; {color:#0000ff}recover standby database;{color}
    ORA-00279: change 548433 generated at 11/18/2008 15:19:03 needed for thread 1
    ORA-00289: suggestion :
    C:\LOCAL_DESTINATION1_ORCL\ARC_NUMBER_00010_001_0671119159_OF_4775C2B4.ARC
    ORA-00280: change 548433 for thread 1 is in sequence #10
    ORA-00308: cannot open archived log
    'C:\LOCAL_DESTINATION1_ORCL\ARC_NUMBER_00010_001_0671119159_OF_4775C2B4.ARC'
    ORA-27041: unable to open file
    OSD-04002: unable to open file
    O/S-Error: (OS 2) The system cannot find the file specified.
    {color:#ff0000}Now I tried to simulate fail over in order to open the standby in READ -WRITE mode
    {color}
    SQL&gt; {color:#0000ff}alter database recover managed standby database finish force ;{color}
    Database altered.
    SQL&gt; {color:#0000ff}alter database commit to switchover to primary;
    {color}
    Database altered.
    SQL&gt;{color:#0000ff} shutdown immediate;
    {color}ORA-01109: database not open
    Database dismounted.
    ORACLE instance shut down.
    SQL&gt; {color:#0000ff}startup
    {color}ORACLE instance started.
    Total System Global Area 612368384 bytes
    Fixed Size 1250452 bytes
    Variable Size 171969388 bytes
    Database Buffers 436207616 bytes
    Redo Buffers 2940928 bytes
    Database mounted.
    Database opened.
    SQL&gt; {color:#0000ff}select open_mode from v$database;
    {color}
    OPEN_MODE
    READ WRITE
    What I'm seeing is that you have to automate by yourself the recovery mode through a scripts at OS level every time new archived file is shipped.
    example:
    a script a OS level a script may contain: recover standby database and could be triggered after X time?
    Does some one have any tweak on how to send archive log on remote site without using data guard feature ?
    Thanks in advance

  • Creating standby database from ASM production database in standard edition

    Hi,
    I am using oracle 10g release 2 standard edition. I recently created a database instance and wanted to create a standby database instance. After sorting out how to achieve this without managed standby and data guard I finally got it working and the shipped archive logs are applied and working well on the standby database.
    Now I am thinking of re-creating my production database and using ASM for storage managment. By doing this can a standby database still be created from a primary database using ASM? I want to be sure I can before I commit to using ASM for the production instance and manually creating a standby database from that instance.
    Note: I am using standard edition not enterprise edition.

    Hi
    For Oracle SE standby, you can visit www.anbultechnologies.co.uk , they have a brilliant product name DRMC which is Automatic disaster recovery solution with automatic failover in case primary goes down due to any reason.
    We are using this product for more than 2 years and it works like a dream using Oracle Standard Edition. We have depolyed more databases and Standby solution within the prices of 2 EE edition licenses.
    You can give ma try as well.
    website address is www.anbultechnologies.co.uk

  • Display records in JSP

    I am completely stuck at this point and need urgent help.
    here is what i have done till now:
    i have one jsp page called first.jsp which displays records in RowsetBrowser from View Object A.
    The attributes are ID,name,Location.
    in View Object A i have added a transient attribute to which i have given an expression
    as: ''&#0124; &#0124;ID&#0124; &#0124;'', i want to make the id as a link to the edit page,
    i do not want an additional column to show up as link,hence i am not using addTextUrlColumn method.
    now on clicking on this id,edit.jsp page is called and the parameter p which is the id is passed to
    edit.jsp page.
    The edit.jsp page is based on another View Object B.
    the code is as follows:
    String param=request.getParameter("p");
    oracle.jbo.html.databeans.RowsetNavigator rsn;
    rsn=(oracle.jbo.html.databeans.RowsetNavigator) new oracle.jbo.html.databeans.RowsetNavigator();
    rsn.initialize(application,session,request,response,out,"NTS_NTS_NTSModule.LogPanelView");
    rsn.getRowSet().getViewObject().setWhereClause("ncc_log_id="+param);
    rsn.getRowSet().getViewObject().executeQuery();
    The results of above query is only one record,which is right.
    my job is now to display all the attributes of the above record,in text fields or
    combo boxes.

    Hi Monali,
    If I understand your attribute Number1 (and Number 2) is one string value (varchar2 type, long type etc. in Entity) which include in self more different values (other strings or numbers). Right? You can do this if you parse string with an method which analyse that string and give you all the values in an array. Then you can display all the values just like you display other attributes. Off course between the values within attributes value must exist an sign (;, |, ^ etc.) which separate one value from another.
    Format is:
    SignValue(1)SignValue(2)SignValue(3)SignSignValue(maxData)Sign
    (e. g.)
    Format 1:
    |Ad45gt63e4|34f5t55B4|3d563H6a2|5G67sE3h7||d45fgh5|
    First sign (|) in the string is separator between the values
    Format 2:
    ;Friday;September 07;2001;Baker Street 21b;LONDON;Europe;;JSP;12345678;EJB;
    First sign (;) in the string is separator between the values
    I write one demo application (Parse) which you can see in listing 1: Parse.java (see below). Maybe isnt the best solution for this problem but working :-)(compile and run from java console)
    In your case code maybe look like in listing 2: BrowserBean.java (see below)
    I hope this help you...
    Veso
    Note: Sample code in listing 2 I write from my head (without testing), so maybe has errors.
    Parse.java
    public class Parse {
    public static String CheckValue(String strValue){
    int strEnd;
    char strSign = strValue.charAt(0);
    strEnd = strValue.indexOf(strSign,1);
    strValue = strValue.substring(1, strEnd);
    return strValue;
    public static void main(String[] args) {
    final int maxData = 100;
    int sAllValues;
    String sEmpty = "";
    String[] sAllValuesNumber1 = new String[maxData];
    String sValueNumber1 = ";Friday;September 07;2001;Baker Street 21b;LONDON;Europe;";
    try {
    sAllValues = 0;
    while (sValueNumber1 != null && !sValueNumber1.equalsIgnoreCase(sEmpty) && !sValueNumber1.equalsIgnoreCase(sValueNumber1.substring(0,1))) {
    sAllValues++;
    sAllValuesNumber1[sAllValues-1] = CheckValue(sValueNumber1);
    System.out.println(sAllValuesNumber1[sAllValues-1] + "\n");
    sValueNumber1 = sValueNumber1.substring(sAllValuesNumber1[sAllValues-1].length() + 1);
    } catch(Exception ex) {
    throw new RuntimeException(ex.getMessage());
    BrowserBean.java
    package demobeans;
    import java.io.PrintWriter;
    import java.io.OutputStream;
    import oracle.jbo.*;
    import oracle.jbo.html.databeans.*;
    public class BrowserBean extends oracle.jdeveloper.html.DataWebBeanImpl {
    public static String CheckValue(String strValue){
    int strEnd;
    char strSign = strValue.charAt(0);
    strEnd = strValue.indexOf(strSign,1);
    strValue = strValue.substring(1, strEnd);
    return strValue;
    public void render() throws Exception {
    final int maxData = 100; // number of values for attributes (Number1 or Number2)
    int sAllValues1;
    int sAllValues2;
    String sData = null;
    String sEmpty = "";
    String sQuery = request.getParameter("id");
    String sValueID = null; // if is ID column1 in ViewObject
    String sValueName = null; // if is name column2 in ViewObject
    String sValueNumber1 = null; // if is name column3 in ViewObject
    String sValueNumber2 = null; // if is name column4 in ViewObject
    String[] sAllValuesNumber1 = new String[maxValues];
    String[] sAllValuesNumber2 = new String[maxValues];
    Row[] drows = qView.getAllRowsInRange();
    AttributeDef[] dattrs = getDisplayAttributeDefs();
    for (int rowno = 0; rowno < drows.length; rowno++) {
    for (int j = 0; j < dattrs.length; j++) {
    if (!shouldDisplayAttribute(dattrs[j]))
    continue;
    if (drows[rowno] != null) {
    Object attrObj = drows[rowno].getAttribute(dattrs[j].getIndex());
    if (attrObj != null) {
    sValue = attrObj.toString();
    switch (dattrs[j].getIndex()) {
    case 0 : sValueID = sValue; break;
    case 1 : sValueName = sValue; break;
    case 2 : sValueNumber1 = sValue; break;
    case 3 : sValueNumber2 = sValue; break;
    sAllValues1 = 0;
    while (sValueNumber1 != null && !sValueNumber1.equalsIgnoreCase(sEmpty) && !sValueNumb er1.equalsIgnoreCase(sValueNumber1.substring(0,1))) {
    sAllValues1++;
    sAllValuesNumber1[sAllValues1-1] = CheckValue(sValueNumber1); // put values from Number1 in an array
    sValueNumber1 = sValueNumber1.substring(sAllValuesNumber1[sAllValues1-1].length() + 1);
    sAllValues2 = 0;
    while (sValueNumber2 != null && !sValueNumber2.equalsIgnoreCase(sEmpty) && !sValueNumber2.equalsIgnoreCase(sValueNumber2.substring(0,1))) {
    sAllValues2++;
    sAllValuesNumber2[sAllValues2-1] = CheckValue(sValueNumber2);
    sValueNumber2 = sValueNumber2.substring(sAllValuesNumber2[sAllValues2-1].length() + 1);
    sData = "<!-- html -->Name:" + sValueName + "<!-- html code (table tags or other) -->";
    sData += "<!-- html -->Number1[1]:" + sAllValuesNumber1[0] + " Number1[2]:" + sAllValuesNumber1[1] + ... + " Number2[sAllValues1]:" + sAllValuesNumber1[sAllValues1-1] + "<!-- html code (table tags or other) -->";
    sData += "<!-- html -->Number2[1]:" + sAllValuesNumber2[0] + " Number2[2]:" + sAllValuesNumber2[1] + ... + " Number2[sAllValues2]:" + sAllValuesNumber2[sAllValues2-1] + "<!-- html code (table tags or other) -->";
    out.print("Other HTML code...") // other elements for your look and feel
    out.print(sData);
    out.print("Other HTML code...") // other elements for your look and feel
    releaseApplicationResources();
    null

  • Update all alv (grid) displayed records to internal table

    Hi all,
    i want to update the records into the internal table which are changed by the user in the edit field.
    after he select save button.
    i  have to save the ALV grid displayed records in the internal table.
    hw can i do this ?

    ALV with EDIT and SAVE functionality
    Code:REPORT z_demo_alv_jg.*******************************************************************
    TYPE-POOLS                                                      *
    TYPE-POOLS: slis. *******************************************************************
    INTERNAL TABLES/WORK AREAS/VARIABLES     *
    DATA: i_fieldcat TYPE slis_t_fieldcat_alv,
          i_index TYPE STANDARD TABLE OF i WITH HEADER LINE,
          w_field TYPE slis_fieldcat_alv,
          p_table LIKE dd02l-tabname,
          dy_table TYPE REF TO data,
          dy_tab TYPE REF TO data,
          dy_line TYPE REF TO data.*******************************************************************
    FIELD-SYMBOLS                                                   *
    FIELD-SYMBOLS: <dyn_table> TYPE STANDARD TABLE,
                   <dyn_wa> TYPE ANY,
                   <dyn_field> TYPE ANY,
                   <dyn_tab_temp> TYPE STANDARD TABLE.*******************************************************************
    SELECTION SCREEN                                                *
    PARAMETERS: tabname(30) TYPE c,
                lines(5)  TYPE n.*******************************************************************
    START-OF-SELECTION                                              *
    START-OF-SELECTION.* Storing table name
      p_table = tabname.* Create internal table dynamically with the stucture of table name
    entered in the selection screen
      CREATE DATA dy_table TYPE STANDARD TABLE OF (p_table).
      ASSIGN dy_table->* TO <dyn_table>.
      IF sy-subrc <> 0.
        MESSAGE i000(z_zzz_ca_messages) WITH ' No table found'.    LEAVE TO LIST-PROCESSING.
      ENDIF.
    Create workarea for the table
      CREATE DATA dy_line LIKE LINE OF <dyn_table>.
      ASSIGN dy_line->* TO <dyn_wa>.* Create another temp. table
      CREATE DATA dy_tab TYPE STANDARD TABLE OF (p_table).
      ASSIGN dy_tab->* TO <dyn_tab_temp>.  SORT i_fieldcat BY col_pos.* Select data from table
      SELECT * FROM (p_table)
      INTO TABLE <dyn_table>
      UP TO lines ROWS.  REFRESH <dyn_tab_temp>.* Display report
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
        EXPORTING
          i_callback_program       = sy-repid
          i_structure_name         = p_table
          i_callback_user_command  = 'USER_COMMAND'
          i_callback_pf_status_set = 'SET_PF_STATUS'
        TABLES
          t_outtab                 = <dyn_table>
        EXCEPTIONS
          program_error            = 1
          OTHERS                   = 2.  IF sy-subrc <> 0.  ENDIF.&----
    *&      Form  SET_PF_STATUS
          Setting custom PF-Status
         -->RT_EXTAB   Excluding table
    FORM set_pf_status USING rt_extab TYPE slis_t_extab.  SET PF-STATUS 'Z_STANDARD'.ENDFORM.                    "SET_PF_STATUS&----
    *&      Form  user_command
          Handling custom function codes
         -->R_UCOMM      Function code value
         -->RS_SELFIELD  Info. of cursor position in ALV
    FORM user_command  USING    r_ucomm LIKE sy-ucomm
                               rs_selfield TYPE slis_selfield.* Local data declaration
      DATA: li_tab TYPE REF TO data,
            l_line TYPE REF TO data.* Local field-symbols
      FIELD-SYMBOLS:<l_tab> TYPE table,
                    <l_wa>  TYPE ANY.* Create table
      CREATE DATA li_tab TYPE STANDARD TABLE OF (p_table).
      ASSIGN li_tab->* TO <l_tab>.* Create workarea
      CREATE DATA l_line LIKE LINE OF <l_tab>.
      ASSIGN l_line->* TO <l_wa>.  CASE r_ucomm.*   When a record is selected
        WHEN '&IC1'.*     Read the selected record
          READ TABLE <dyn_table> ASSIGNING <dyn_wa> INDEX
          rs_selfield-tabindex.      IF sy-subrc = 0.*       Store the record in an internal table
            APPEND <dyn_wa> TO <l_tab>.*       Fetch the field catalog info
            CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
              EXPORTING
                i_program_name         = 'Z_DEMO_PDF_JG'
                i_structure_name       = p_table
              CHANGING
                ct_fieldcat            = i_fieldcat
              EXCEPTIONS
                inconsistent_interface = 1
                program_error          = 2
                OTHERS                 = 3.
            IF sy-subrc = 0.*         Make all the fields input enabled except key fields
              w_field-input = 'X'.          MODIFY i_fieldcat FROM w_field TRANSPORTING input
              WHERE key IS INITIAL.        ENDIF.*       Display the record for editing purpose
            CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
              EXPORTING
                i_callback_program    = sy-repid
                i_structure_name      = p_table
                it_fieldcat           = i_fieldcat
                i_screen_start_column = 10
                i_screen_start_line   = 15
                i_screen_end_column   = 200
                i_screen_end_line     = 20
              TABLES
                t_outtab              = <l_tab>
              EXCEPTIONS
                program_error         = 1
                OTHERS                = 2.        IF sy-subrc = 0.*         Read the modified data
              READ TABLE <l_tab> INDEX 1 INTO <l_wa>.*         If the record is changed then track its index no.
            and populate it in an internal table for future
            action
              IF sy-subrc = 0 AND <dyn_wa> <> <l_wa>.
                <dyn_wa> = <l_wa>.
                i_index = rs_selfield-tabindex.
                APPEND i_index.
              ENDIF.
            ENDIF.      ENDIF.*   When save button is pressed
        WHEN 'SAVE'.*     Sort the index table
          SORT i_index.*     Delete all duplicate records
          DELETE ADJACENT DUPLICATES FROM i_index.      LOOP AT i_index.*       Find out the changes in the internal table
          and populate these changes in another internal table
            READ TABLE <dyn_table> ASSIGNING <dyn_wa> INDEX i_index.
            IF sy-subrc = 0.
              APPEND <dyn_wa> TO <dyn_tab_temp>.
            ENDIF.      ENDLOOP.*     Lock the table
          CALL FUNCTION 'ENQUEUE_E_TABLE'
            EXPORTING
              mode_rstable   = 'E'
              tabname        = p_table
            EXCEPTIONS
              foreign_lock   = 1
              system_failure = 2
              OTHERS         = 3.      IF sy-subrc = 0.*       Modify the database table with these changes
            MODIFY (p_table) FROM TABLE <dyn_tab_temp>.        REFRESH <dyn_tab_temp>.*       Unlock the table
            CALL FUNCTION 'DEQUEUE_E_TABLE'
              EXPORTING
                mode_rstable = 'E'
                tabname      = p_table.      ENDIF.
      ENDCASE.  rs_selfield-refresh = 'X'.ENDFORM.                    "user_command

  • Express vs Standard Edition One

    Is there much difference between the Express Edition and Standard Edition One single cpu? I built a web application using mod_plsql. In load testing the application it works fine with this configuration:
    - 1 hyper-threaded CPU 3 MHz xenon
    - 1 gig SGA
    - Total datafile size is 3G
    I was planning on turning off hyper-threading and buying a single cpu SE1 license, however after looking into XE it may be possible to save $5000.
    In testing I am using 10gR1 EE with the Companion CD for apache / mod_plsql functionality.
    Can XE can do:
    - mod_plsql on port 443 (https)
    - UTL_HTTP.SET_WALLET for https request on port 443
    Is the Companion CD also free?

    Brian,
    I built a web
    application using mod_plsql. In load testing the
    application it works fine with this configuration:
    - mod_plsql on port 443 (https)See this thread for configuring the Apache for https in front of an XE installation: HTTPS with Oracle XE ?
    Porting a mod_plsql application to XE should definitely work in general.
    Here are the exceptions to the rule we have experienced / discussed in this forum so far:
    1) there might be a bug in the htp.init function (as of the beta release)
    htp.init throws exception
    If you don't clear the htp buffer between calls, you should be fine.
    2) Authentication by CustomOwa is not supported and you need a different way of authenticating your users: DBMS_EPG DAD authentication using CustomOwa
    Here is another helpful thread on configuring the DADs:
    Using DAD's without specifying a password
    Regards,
    ~Dietmar.

  • Is SSO included in 10gAS Standard Edition

    Hello.
    In the Oracle Application Server product editions' page (http://www.oracle.com/appserver/pkgsum.html) appears that the 10gAS Standard Edition includes the Single Sign - On feature, but when i see the price list appears that the SSO is included in the Identity Management Product that is a supplement of the As Standard Edition.
    Does the Standard Edition includes the SSO feature without licensing the Identity Management?
    Thanks a lot

    SSO is included in the SE. OID is restricted use for SSO and Portal use in SE. If you would like to use the identity management for all your applications, you can purchase Identity Management bundle on top of SE and use it generally. This is covered in the Licensing doc that is part of the Oracle Application Server Doc Library.
    Pavna
    Oracle Application Server Product Management

  • FFX HD PS3 In-store pick up says Standard Edition

    I ordered a copy of Final Fantasy X HD for the PS3 and Best Buy was listed as one of the stores that was getting the Limited Editions (with an artbook) and it is the same price as the Standard Edition game will be. It was also confirmed in this thread http://forums.bestbuy.com/t5/Gaming-Support/Final-Fantasy-X-X-2-HD-Remaster-PlayStation-3/td-p/69892... that Best Buy will indeed be getting it, however there is still no update on the website (some people saw it in store that there is a free upgrade to the limited.
    My order was part of a promotion so there is no way I can do a return/rebuy if I do indeed get a standard edition without messing up the promo and costing me more money, so I was wondering if anybody knew that all of the first print copies were indeed Limited at Best Buy or if there is someone I would be able to contact to get this switched/fixed after I pick up my copy tomorrow if it is indeed the incorrect version, I will post in this thread again once I get my copy to confirm which edition I got however.
    Solved!
    Go to Solution.

    Hello MoCiWe,
    Thank you for pre-ordering from Best Buy, and thank you for being a My Best Buy member.  As the post you referenced mentioned, customers who pre-order Final Fantasy X/X2 are eligible to receive the limited edition copy with the artbook.  I do not anticipate there will be any updates to reflect this on our website.  Please let us know if you have any questions or concerns after you pick up your copy of the game.
    Thanks again,
    Mike|Social Media Specialist | Best Buy® Corporate
     Private Message

Maybe you are looking for

  • Creating a 2nd account with a different iTunes collection

    I managed to erase 70 gigs of iTunes from my last computer.   However, I think I saved it on a backup drive. I now have a new computer with Snow Leopard,  and have started over with iTunes.   I would like to start a new account area and put the old i

  • Crossover, Outlook and Exchange 2007

    Hi So our company has just upgraded our server to Exchange 2007(it was 2003) and I'm having real problems getting my Arch setup to play nice. I was using Evolution to connect to it and this did everything that I wanted it too. The evolution-exchange

  • Easiest way to validate with Struts?..

    Hello, I have a problem with validating a simple form with javascript via Struts validator. It inserts the whole javascript instead <html:javascript formName="whatever"/> and as a result half of the html code that follows gets cut off. I don't know w

  • Question about backing up MBP

    I purchased my MBP back in August of 2009 and it has been virtually flawless since I have bought it. However I have downloaded all kinds of stuff to it and added all kinds of different things to it, I have a pretty large music library and what I woul

  • Always the excel format output

    I have a requirement in which i wish to output the file always in excel format. i have made a selection screen field with search help,if the user deletes the default path given in this text box,replaces it with any free text and puts no extension or