Problem in using database control in JPD.

Hi All,
I am developing a JPD which also involves using DB control. The connected DB is Oracle 9.2.
I have created DB control with "insert" method and one with "update" method.
When i call "insert" method in JPD by dynamically passing values, it works fine. I have a "task control" in a JPD and once the task is complted by a specific user, again I am calling "update" method.
Here it fails to update the DB. The strange part is that the perform node executes after the control send node and there are no exceptions. Heres my update method
* @jc:sql command-type="update" statement::
* UPDATE PROPOSAL_INFO SET status = {status} WHERE track_num = {trackingNumber}
* @common:message-buffer enable="false"
void updateStatusAndDesc(String status,String trackingNumber);
The strange part is that, If I hard code the "status" and "trackingNumber" value instead of passing dynalically by using (ie without using {}), then update happens.
Can somebody suggest me the solution for this problem??
Thanks in advance,
Prashanth Bhat.

Hello,
I do not know the source of your problem, but
a.) Check if the db colum types match the parameter types
See http://e-docs.bea.com/workshop/docs81/doc/en/workshop/guide/controls/database/conMappingDBFieldsToJavaTypesInTheDBCtrl.html for more info
b.) command-type is only used for rowset controls.
-Kai

Similar Messages

  • Using Database Control in JPDs - Best Practice

    Hi,
    I would like to know the best way of using DB control in a JPD
    like.. which one is better.
    a) Using a Control Send node in workshop and configuring it from the workshop design view as a separate node.
    or
    b) In a perform node call the method on the DB control object.
    like..
    * @common:control
    private com.abc.def.SampleDBCtrl xxxx;
                        xxxx.insertIntoDb(parameter1, parameter2);
    Is there any disadvantages on approach b over approach a or any issues performance-wise.
    I would like to know which is one is better.
    I sincerely appreciate ur advice on this.
    Thanks

    Hello,
    I do not know the source of your problem, but
    a.) Check if the db colum types match the parameter types
    See http://e-docs.bea.com/workshop/docs81/doc/en/workshop/guide/controls/database/conMappingDBFieldsToJavaTypesInTheDBCtrl.html for more info
    b.) command-type is only used for rowset controls.
    -Kai

  • Problem receiving email using database control

    Hi all,
    I'm new to using EM and trying to configure it so I can receive email notifications when tablespace is getting full. I'm only using "Database Control" not Grid control.
    Oracle Enterprise Manager Database Control     10.2.0.0     
    I was able to successfully receive email using "Test Mail Servers" in Notification Methods.
    I already defined my rule and was able to specify "Tablespace Used %" metrics.
    I already defined a schedule so that mails are sent to my email.
    To test, i created records on one table until it's 100%.
    I do get alerts with EM Database Control but no mail.
    I logged in as sysman into the database being monitored (there is no repository because this is database control), I don't see any rows in mgmg_notification_log.
    Does anybody know if email notification only works in "Grid Control" not "Database Control"?
    I'd appreciate any assistance.

    Grid Control has hundreds of email alerts already setup that you can use , but I pretty sure you need to buy
    that pack for email alerts to keep them in service after you evaluate.

  • How to Schedule Job using Database Control for SQLPLUS script?

    Hi All,
    I am using Database version 10.2. I would like to schedule a SQLPLUS script job using Database control (Not using Grid Control!). The following is the script.
    ========================================================
    define OEM_FRIENDLY=1
    define OWB_BACKGROUND=0
    set serveroutput on
    set verify off
    whenever sqlerror exit failure;
    define REPOS_OWNER='&1.'
    define LOCATION_NAME='&2.'
    define TASK_TYPE='&3.'
    define TASK_NAME='&4.'
    define SYSTEM_PARAMS='&5.'
    define CUSTOM_PARAMS='&6.'
    alter session set current_schema = &REPOS_OWNER.;
    set role owb_d_&REPOS_OWNER., owb_o_&REPOS_OWNER.;
    variable exec_return_code number;
    begin
    -- Initialize Return Code
    :exec_return_code := wb_rt_api_exec.RESULT_FAILURE;
    -- Run Task
    :exec_return_code := wb_rt_api_exec.run_task('&LOCATION_NAME.',
    '&TASK_TYPE.',
    '&TASK_NAME.',
    '&CUSTOM_PARAMS.',
    '&SYSTEM_PARAMS.',
    &OEM_FRIENDLY.,
    &OWB_BACKGROUND.);
    end;
    exit :exec_return_code;
    ===========================================================
    Is it possible to schedule SQLPLUS script with 6 different parameters? If yes then how can I schedule for monday to friday or only for Saturday and sundays.
    Please provide brief steps.
    Thanks for your help in advance.
    - Mehul

    Let me explain to you about scheduler.
    You can schedule a pl/sql stored procedure TEST_S as follows...
    Begin
    dbms_scheduler.create_job(
    job_name=>'MY_JOB',
    Job_Type=>'STORED_PROCEDURE',
    job_action=>'TEST_S',
    start_date=>sysdate,
    repeat_interval=>'freq=monthly;BYDAY=MON,TUE,WED,THU,FRI',
    end_date=>null');
    END;
    You can also also execute o/s script like .bat or .sh. For this job type should be EXECUTABLE.
    Example of converting a .sql script in .bat script...
    insert.sql
    insert into dept values(50,'IT','LONDON');
    exit
    insert.bat
    sqlplus scott/tiger @insert.sql
    Executing now...
    C:\Documents and Settings>insert.bat
    C:\Documents and Settings>sqlplus scott/tiger @insert.sql
    SQL*Plus: Release 10.2.0.1.0 - Production on Thu Mar 1 08:01:00 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    1 row created.
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - P
    oduction
    With the Partitioning, OLAP and Data Mining options
    C:\Documents and Settings>
    So first read about DBMS_SCHEDULER and do the work in prompt. Then you can go and schedule it even by database control.
    Scheduling by database control...
    http://www.oracle.com/technology/oramag/oracle/04-jul/o44tech_dba.html
    Scheduler
    http://download-uk.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_sched.htm#CIHEHDHA
    PS: By default each job you created is disable state. Please enable it by enable procedure of DBMS_SCHEDULER package.

  • How to use database control to execute sql queries which change at run time

    Hi all,
    I need to execute sql queries using database controls , where the sql changes
    at run time
    based on some condition. For eg. based on the condition , I can add some where
    condition.
    Eg. sql = select id,name from emp where id = ?.
    based on some condition , I can add the following condition .
    and location = ?.
    Have anybody had this kind of situation.
    thanks,
    sathish

    From the perspective of the database control, you've got two options:
    1) use the sql: keyword to do parameter substitution. Your observation
    about {foo} style sbustitution is correct -- this is like using a
    PreparedStatement. To do substitution into the rest of the SQL
    statement, you can use the {sql: foo} substitution syntax which was
    undocumented in GA but is documented in SP2. Then, you can build up
    the filter clause String yourself in a JPF / JWS / etc and pass it into
    the DB control.
    For example:
    * @jc:sql statement="select * from product {sql: filter}"
    public Product[] getProducts(String filter) throws SQLException;
    This will substitute the String filter directly into the statement that
    is executed. The filter string could be null, "", "WHERE ID=12345", etc.
    2) you can use the DatabaseFilter object to build up a set of custom
    sorts and filters and pass that object into the DB control method.
    There have been other posts here about doing this, look for the subject
    "DatabaseFilter example".
    Hope that helps...
    Eddie
    Dan Hayes wrote:
    "Sathish Venkatesan" <[email protected]> wrote:
    Hi Maruthi,
    The parameter substituion , I guess is used like setting the values for
    prepared
    statements.
    What I'm trying to do , is change the sql at run time based on some condition.
    For example ,
    consider the following query :
    select col1,col2 from table t where t.col3 > 1
    At run time , based on some condition , I need to add one more and condition.
    i.e. select col1,col2 from table t where t.col3 > 1 and t.col4 < 10.
    This MAY not address your issue but if you are trying to add "optional" parameters
    you may try including ALL the possible parameters in the SQL but send in null
    for those params that you don't want to filter on in any particular case. Then,
    if you word your query
    as follows:
    select col1, col2 from table t where t.col3 > 1 and (t.col4 = {col4param} or
    {col4param} is null) and (t.col5 = {col5param} or {col5param} is null) ...
    you will get "dynamic" filters. In other words, col4 and col5 will only be
    filtered if you send in non-null parameters for those arguments.
    I have not tried this in a WL Workshop database control but I've used
    this strategy dozens of times in stored procedures or jdbc prepared statements.
    Good luck,
    Dan

  • Problem mapping to XMLBean using database control

    Hi
    I have to generate an XML document based on the values returned from the database. I have an industry standard XSD with me and Im trying to use the database control to automatically map the resultset data to the XMLBean. While doing so, it works fine for flat structures that doesnt contain any complex types and attributes. But, when the XSD contains attributes or nested complex types it creates XMLBean with a flat structure and generates an invalid XML document. All the attributes get mapped to elements and thus when i try to validate, it fails.
    I would appreciate if anyone can let me know if this is a limitation in weblogic 8.1 or do i need to configure something. This problem has been bugging me for a very long time and i have posted in all forums and i strongly feel that there is no point checking for everyfield value and setting into XMLBean manually. Also the number of fields in our XSD is 400. So any help would be greatly appreciated.
    Thanks
    Kishore

    Hi Kishore,
    This is vinod.I have same problem but not too complicated as yours.It is written u got simple values from database using flat structures.could u please post the code for me.
    We have this requirement:
    We have to retrieve the each row from the database and display in form of a tree.how do we get it.
    Thanx in advance.
    Vinodh

  • Workshop 8.1 beta - problem with creating Database control

    I am using Workshop 8.1 beta to create a webservice, which uses a database control
    to query the Db, as simpel as it comes. However, I get the following exception
    when I try to create the new DBControl:
    java.lang.AssertionError
         at workshop.pageflow.ui.dialogs.wizards.jbcx.db.util.DbControlWizardUtil.getTables(DbControlWizardUtil.java:268)
         at workshop.pageflow.ui.dialogs.wizards.jbcx.db.util.DbControlWizardUtil.getTablesAndViews(DbControlWizardUtil.java:223)
         at workshop.pageflow.ui.dialogs.wizards.jbcx.db.step.PickMethodsStep$4.run(PickMethodsStep.java:299)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:448)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:140)
         at java.awt.Dialog.show(Dialog.java:538)
         at com.bea.ide.ui.wizard.WizardDialog.show(WizardDialog.java:117)
         at workshop.pageflow.ui.dialogs.wizards.jbcx.db.DbControlWizard.runWizard(DbControlWizard.java:96)
         at workshop.pageflow.ui.dialogs.wizards.jbcx.db.FileNewDbControlWizardAction.doAction(FileNewDbControlWizardAction.java:58)
         at workshop.pageflow.ui.dialogs.wizards.jbcx.db.DbControlWizardDocHandler.launchWizard(DbControlWizardDocHandler.java:87)
         at workshop.pageflow.ui.dialogs.wizards.jbcx.db.DbControlWizardDocHandler.createNewFile(DbControlWizardDocHandler.java:72)
         at workshop.shell.wizards.NewFileWizard.getDisplayURI(NewFileWizard.java:232)
         at workshop.shell.actions.file.FileNewAction$1.run(FileNewAction.java:111)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:448)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
    What's interesting is that it works well for the default dbcontrols of cgDataSource
    and cgSampleDataSource. The connection pool and the datasources were created successfully
    in the server. Its the workshop that seems to be complaining.
    Anyone face this problem?

    Sanjeev,
    This newsgroup is for Workshop 7.0 issues, till WebLogic Platform 8.1 goes
    GA.
    Meanwhile, please post Workshop 8.1 beta issues on
    weblogic.developer.interest.81beta.workshop newsgroup.
    Regards,
    Anurag
    "Sanjeev Saha" <[email protected]> wrote in message
    news:[email protected]...
    >
    I am using Workshop 8.1 beta to create a webservice, which uses a databasecontrol
    to query the Db, as simpel as it comes. However, I get the followingexception
    when I try to create the new DBControl:
    java.lang.AssertionError
    atworkshop.pageflow.ui.dialogs.wizards.jbcx.db.util.DbControlWizardUtil.getTab
    les(DbControlWizardUtil.java:268)
    atworkshop.pageflow.ui.dialogs.wizards.jbcx.db.util.DbControlWizardUtil.getTab
    lesAndViews(DbControlWizardUtil.java:223)
    atworkshop.pageflow.ui.dialogs.wizards.jbcx.db.step.PickMethodsStep$4.run(Pick
    MethodsStep.java:299)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:448)
    atjava.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja
    va:197)
    atjava.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
    :150)
    atjava.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
    :140)
    at java.awt.Dialog.show(Dialog.java:538)
    at com.bea.ide.ui.wizard.WizardDialog.show(WizardDialog.java:117)
    atworkshop.pageflow.ui.dialogs.wizards.jbcx.db.DbControlWizard.runWizard(DbCon
    trolWizard.java:96)
    atworkshop.pageflow.ui.dialogs.wizards.jbcx.db.FileNewDbControlWizardAction.do
    Action(FileNewDbControlWizardAction.java:58)
    atworkshop.pageflow.ui.dialogs.wizards.jbcx.db.DbControlWizardDocHandler.launc
    hWizard(DbControlWizardDocHandler.java:87)
    atworkshop.pageflow.ui.dialogs.wizards.jbcx.db.DbControlWizardDocHandler.creat
    eNewFile(DbControlWizardDocHandler.java:72)
    atworkshop.shell.wizards.NewFileWizard.getDisplayURI(NewFileWizard.java:232)
    at workshop.shell.actions.file.FileNewAction$1.run(FileNewAction.java:111)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:448)
    atjava.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja
    va:197)
    atjava.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
    :150)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
    What's interesting is that it works well for the default dbcontrols ofcgDataSource
    and cgSampleDataSource. The connection pool and the datasources werecreated successfully
    in the server. Its the workshop that seems to be complaining.
    Anyone face this problem?

  • Problems in using database link

    Hi all,
    I have problems in using the following created database link:
    Name: fzanalyze
    User: fzanalyze
    PWD: xxx
    Host: fz.domain.com
    I get the following error message, if I try to start this select:
    select * from tab@fzanalyze;
    FEHLER in Zeile 1:
    ORA-12154: TNS:Couldn't resolve service name
    The problem, the TNS is correct, because I copied the hoststring from the tnsnames.ora. Also I can connect to the database by using the given hostname as follows:
    connect fzanalyze/[email protected]
    connected
    What could be the problem, the I get the tns-Error, although I can connect normal to the database??
    Thanks for helping
    Dana

    Dana,
    Unlike Kamal, I don't use SQLNET anymore (isn't it obsolete from 8i+?), so I don't have any sqlnet.ora on my client or server.
    I'm not really a sysop, so no clever thoughts behind the following ideas, I just use these for development purposes at home:
    IP range at home = 192.168.x.x segment (another router server connects to the internet)
    Oracle server computer name = dbserver.seinpost.nl (local address = 192.168.1.110)
    instance entry in $TNS_ADMIN/listener.ora @ server:
        (SID_DESC =
          (GLOBAL_DBNAME = inst04.seinpost.nl)
          (ORACLE_HOME = /u01/app/oracle/product/10.1.0/db_1)
          (SID_NAME = inst04)
        )instance entry in $TNS_ADMIN/tnsnames.ora @ server:
    INST04.SEINPOST.NL =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = dbserver.seinpost.nl)(PORT = 1521))
        (CONNECT_DATA =
          (SERVICE_NAME = inst04.seinpost.nl)
      )instance entry in tnsnames.ora @ client:
    INST04 =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS =
            (PROTOCOL = TCP)
              (HOST = 192.168.1.110)
                (PORT = 1521)
        (CONNECT_DATA =
          (SERVICE_NAME = inst04.seinpost.nl)
      )So again, no sqlnet.ora and as you can see only on my client I use local IP addresses to prevent my client for searching the internet for the non-existing dbserver.seinpost.nl address
    Hope this helps,
    Michiel

  • Problems with EM Database Control after applying 10.2.0.4 patchset

    Hello all,
    Host: Linux x86
    DB: Single-instance running EM Database Control. Originally 10.2.0.1 patched to 10.2.0.4
    Last night I upgraded the database from 10.2.0.1 to 10.2.0.4. All appeared to go well. I didn't get any errors in the process and when I logged in to the database control, all appeared well. It was late at night so I didn't browse around for very long, though. When I came in this morning and did some more extensive testing, upon logging in I first noticed that in the General section the database version was listed as 10.2.0.1.0. I thought that this was pretty odd since I had just been logged on to SQL*Plus and saw that the database was reporting back that it was at version 10.2.0.4.0. I refreshed the page and I saw
    "java.lang.Exception: IOException in reading Response :: Connection reset"
    at the top of the page. I have seen this problem before and, in the past, it has been resolved by either restarting the dbconsole or making sure that the monitoring configuration is set up correctly. The first thing that I did was issue
    [host]$ emctl stop dbconsole followed by
    [host]$ emctl start dbconsole
    to see if that would do the trick. When I saw that it didn't, I went into the Monitoring Configuration and was surprised to see that it said "No items were found." I refreshed the page and this error appeared:
    oracle.sysman.emSDK.emd.comm.CommException: IOException in reading Response :: Connection reset
    I tried to follow all of the instructions in the ReadMe as closely as I could. I have been searching on the Internet and the Oracle Forums for most of the day to try to find out the cause of this error. I see that people have these errors, but the circumstances are not the same as mine. Is this a common problem? Does anyone know what I can do to resolve it?
    Any help would be greatly appreciated.
    Thanks!
    John

    Hello Satish,
    Thank you for your reply. I don't know if this is normal or not but, now after the upgrade, in the ORACLE_HOME I have a directory that's been created called hostnameSID (the fully qualified host name of my computer and the SID of the database).  Inside of it is a sysman directory, an emctl.pid file and an oraInst.loc file.  I also still have a syman directory under the ORACLEHOME but the dbconsole appears to be running out of the hostname_SID directory.  Is that normal?
    I looked up the article that you referenced and looked for the targets.xml file first in the ORACLE_HOME/sysman/emd directory. I found a targets.xml file along with several other similar files, targets.xml.1, targets.xml.2, etc. The targets.xml file just had the following:
    <Targets>
    </Targets>
    Seeing that it was blank, I then took a look at the the hostname_SID/sysman/emd folder. I saw only one targets.xml file in this location and when I opened it up it had the following:
    <Targets AGENT_TOKEN="+alpha numeric string+">
    <Target TYPE="oracle_emd" NAME="+hostname+:3938"/>
    <Target TYPE="host" NAME="+hostname+"/>
    </Targets>
    The contents of that file seemed to match what the article which you cited indicated should be in the file. Since I have a single instance managed by the dbconsole and not EM Grind Control, I'm expecting the files to be a little bit different. Am I wrong in assuming that? Still, I'm not sure if I should have the hostname_SID directory beneath the ORACLE_HOME.
    Any ideas?
    Thanks again for your help,
    John

  • Problem in using Office Control to launch ms word

    Hi Armin,
                   What u said is right, but the data type of both the attributes in view context and controller context are same (binary). I had placed all the code in component controller only and trying to assign the Byte array to controller context (binary) attribute only. I think there might be some problem with supplier function. Plse check it once...
    Regards
    Ramesh.k

    Hello,
    I do not know the source of your problem, but
    a.) Check if the db colum types match the parameter types
    See http://e-docs.bea.com/workshop/docs81/doc/en/workshop/guide/controls/database/conMappingDBFieldsToJavaTypesInTheDBCtrl.html for more info
    b.) command-type is only used for rowset controls.
    -Kai

  • Problem with using database link from oracle 7 to oracle 9i

    Hi To Every One
    I have two oracle database oracle 7.3.4.0.1 and oracle 9i 9.2.0.1.0.
    and the tns alias to connect to oracle 9i database is oracle9i and tns
    alias to oracle 7 database is oracle7.I have no problem in connect to
    these database using these tns aliases from either database.The tns
    alias for oracle 7 is available in tnsnames.ora file of oracle9i and
    tns alias for oracle 9i is available in tnsnames.ora file of oracle 7.
    So there is no connection problem from each other.Connection is
    working fine for each other but the problem with database links is
    like this
    Problem:
    when i create database link from oracle9i user or public database link
    from oracle9i for oracle7 user like this
    SQL ORACLE9I >CREATE DATABASE LINK ORACLE7 CONNECT TO <ORACLE7USER>
    IDENTIFIED BY <PASSWORD> USING 'ORACLE7';
    OR
    SQL ORACLE9I >CREATE PUBLIC DATABASE LINK ORACLE7 CONNECT TO <ORACLE7USER>
    IDENTIFIED BY <PASSWORD> USING 'ORACLE7';
    The links get created sucessfully but when i write command like
    SQL ORACLE9I> DESC <ORACLE7USER_NAME>.<ORACLE7USER_TABLENAME>@ORACLE7
    I RECEIVE A ORACLE ERROR LIKE
    ORA-12663 SERVICE REQUIRED BY CLIENT IS NOT AVAILABLE ON THE SERVER.
    OR IF MY COMMAND IS LIKE
    SQL ORACLE9I> SELECT <FEILD_NAME> FROM
    <ORACLE7USER_NAME>.<ORACLE7USER_TABLENAME>@ORACLE7;
    I RECEIVE AN ORACLE ERROR LIKE
    ORA-01002 FETCH OUT OF SEQUENCE.
    ORA-02063: preceding line from ORACLE7
    BUT IF I CREATE A LINK FROM ORACLE7 USER FOR ORACLE9I USER
    IT WORKS FINE.
    PLZ HELP ME WHAT IS THE PROBLEM THAT THE LINK FOR ORACLE 7 IS NOT WORKING WHEN
    IT IS BEING CREATED FROM ORACLE9I.
    Thank u.

    Oracle 9.2.0 does not support connectivity to Oracle 7. The newest version that will support this is 9.0.1.

  • Problem in use of  control statments

    hii frds  i m new  in abap development
    plz help me...
    i m creating a classical report...i hav selected data in final internal table  i_final .
    fields  are regio , werks 
    let the data r following regio---werks
                                          019 ---1001
                                         019-----1081
                                         019------1081
                                       019-------1081
                                      030----
    1015
                                      030-------1015
    i want output  in this format   
                   019-----1001
                   019---1081
                              1081
                              1081
                     030----1015
                                1015
    i m using following codes
    FORM DISPLAY_DATA .
      SORT I_FINAL BY REGIO  WERKS .
        LOOP AT I_FINAL .
        AT NEW REGIO .
          WRITE : / I_FINAL-REGIO .
        ENDAT .
        WRITE : 5/  I_FINAL-WERKS .
    ENDLOOP .
    ENDFORM.
    please tell me correct code............thanks in advance
      ENDFORM .
    Edited by: vikram00797 on Sep 15, 2009 12:28 PM

    >
    vikram00797 wrote:
    >  I know i m very close to solution ..i hav change it many times .but not getting correct output.can u tell me correct code......
    Hello Vikram,
    In the output are you getting '*' ? If yes, then take the contents of the header line in a dummy line & display the record :
    FORM DISPLAY_DATA .
    DATA: L_FINAL LIKE LINE OF I_FINAL.
    SORT I_FINAL BY REGIO WERKS .
    LOOP AT I_FINAL .
    L_FINAL = I_FINAL.
    AT NEW REGIO .
    WRITE : / L_FINAL-REGIO .
    ENDAT .
    WRITE : 5/ L_FINAL-WERKS .
    ENDLOOP .
    ENDFORM.
    Hope this helps.
    BR,
    Suhas

  • Error using RMAN thru Database Control

    Hello guys..
    I installed Oracle 10gR2 on solaris 10, and created a sample DB called HEAT. This database is configured to run in Archivelog mode and also created Flash_recovery_area.
    Iam trying to take a simple backup thru RMAN using OEM ( Database Control). there is only 1 database on that server and i plan to use controlfile instead of recovery catalog.
    Now here are the steps when i execute, i get an ERROR.
    1. connected as 'sys' from Database Control.
    2. Went to Maintenence Tab, click in Backup settings.
    3. click on Device Tab, enter OS credentials and click on "Test disk backup"..
    4. I get an error that says "Disk Backup Test Failed!"
    When click on View Error Details :
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Recovery Manager: Release 10.2.0.1.0 - Production on Fri Feb 2 12:53:29 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    RMAN>
    connected to target database (not started)
    RMAN>
    echo set on
    RMAN> run {
    2> allocate channel oem_disk_backup device type disk;
    3> backup as BACKUPSET current controlfile tag '02022007125328';
    4> restore controlfile validate from tag '02022007125328';
    5> release channel oem_disk_backup;
    6> }
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of allocate command at 02/02/2007 12:53:30
    RMAN-06403: could not obtain a fully authorized session
    ORA-01034: ORACLE not available
    RMAN> allocate channel for maintenance type disk;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of allocate command at 02/02/2007 12:53:30
    RMAN-06403: could not obtain a fully authorized session
    ORA-01034: ORACLE not available
    RMAN> delete noprompt backuppiece tag '02022007125328';
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of delete command at 02/02/2007 12:53:30
    RMAN-12010: automatic channel allocation initialization failed
    RMAN-06403: could not obtain a fully authorized session
    ORA-01034: ORACLE not available
    RMAN> exit;
    Recovery Manager complete.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    I only have 1 database , and it is configured to backup using Control file and not Recovery catalog ( which is the default)...
    What additional steps do i have to do, to take a simple backup using database control ? I am not sure why it says Database not available...while DB is indeed available and open.
    any help is appreciated..
    thanks

    I, too, am receiving these same errors when I do my backups. The sysadmin took the systems down over the weekend and the backup has failed ever since. Database is up, ORACLE_SID looks fine, what could be wrong? This nightly backup worked before system went down. I can connect as sysdba using the ORACLE_SID as set.
    Thanks,
    Candy

  • Remote access database using EM Database Control Console

    When I install the Oracle database 10g, it gives me two choices:
    1)Using Grid Control for Database Management and
    2)Using Database Control for Database Management.
    When I select the #2, according to the Guide, I'll be able to manage my database locally. (Assume the database server's IP address is: DB_IP_Address, then I can use: http://DB_IP_Address:5560/em). But wait a minute___
    a)What does this "locally" mean? If the Oracle DB is installed in a remote location, and there is no LAN connection to it, can I still access it via the Oracle Enterprise Manager (Database Control Console)? (i.e., via the HTTP protocol)
    b)The same question is asked for the iSQL*Plus in regarding to the remote access. I guess the answer to a) above will automatically answer the b) ? (Actually I doubt that I can access remote database using the iSQL*Plus via HTTP protocol).
    Thanks
    Scott

    Hi,
    and there is no LAN connection to itWell you'll need some network link in order to connect successfully.
    What is meant by locally is that you can only manage databases installed on the local computer.
    For example if you installed it on machine "CPTR1", and on another machine "CPTR2", then you can't use http://cptr1:5560/em to manage the databases on "CPTR2. And vice versa.
    About iSQL*Plus, in fact, as far as the tns alias is ok from "CPTR1", you can connect to the databases on "CPTR2", "CPTR3", ....
    HTH,
    Yoann.

  • Using a control implimentaion file in BEA page flows?

    I'm using BEA Weblogic 9.2 and I've created a custom JDBC control to use in my project with page flows.
    My control has 4 files:
    1.) myModel.java: contains the class that represents the table.
    2.) myControl.java: the interface for the control.
    3.) myControlDB.java: public interface that extends jdbcControl and contains the basic operations for the database. No actual methods, just sql commands in the annotations.
    4.) myControlImpl.java: Contains the business logic for the control and has the @ControlImplimentation annotation.
    However, I'm not sure what purpose the "control implimentation" file servers. I can't use it in the page flows, and I can't add it to the "referenced controls" list.
    How do I use this control implementation in my page flows?

    Hi,
    Does your custom control appear in the insert -> control -> existing control option ?
    Can you also verify that the corresponding method is created in the custom control interface
    In the source view, place the cursor on the custom control method, and enter Ctrl + 1, select the create in super type option. This should create the corresponding method in the interface.
    I've also listed the link to our documentation which explains in detail about using database controls
    http://e-docs.bea.com/workshop/docs92/ws_platform/controls/system/jdbc/navDatabaseControl.html
    -Raj

Maybe you are looking for

  • Multiple inserts for the same object

    We have observed that in certain cases, the same object is attempted to be inserted twice, resulting in Primary Key violation. Here is one example - A(1->1)B, unidirectional, A has the foreign key to B new B copyB = register(B) (also assign sequence

  • Intercompany Billing - Proforma Invoice

    Hi to All, I need your advice regarding an issue related to Proforma Invoice creation. Processing  Intercompany Flow ,we have : 1)Order created in Sales Organization of Selling company 2)Delivery with Sales Organization of Selling company and Deliver

  • HT4572 How do I cancel an automatic payment for my iPad cellular plan if I lost my iPad?

    I have auto-pay turned on and I can't stop the credit card from getting charged - help!

  • Is It going Wobbly!

    Hi, I'm having issues with my connection the noise on the line has increased from its steady 6db to 9db; I'm connected to the only BT socket in the house through an ADSL V1.0 faceplate.  Some weeks back lost connection for most of the weekend althoug

  • Is the latest version of firefox (not beta) compatible with MS 8.1?

    I just bought a dell laptop with ms 8.1 and want to know if I download the latest version of firefox (not a beta version) will it run correctly with 8.1?