Database controls and logging

I'm try to use the @jc:log annotation with my database controls, but I'm not having any luck.
Has anyone had success using this annotation? If so, can you tell me what I'm doing wrong?
When I included the @jc:log annotation, Workshop complained that the attribute category was not allowed. Here is what I tried:
* @jc:connection data-source-jndi-name="cgDataSource"
* @jc:log category="mycategory"
public interface MyDbControl
extends DatabaseControl, ControlExtension
thanks in advance,
Erik

Ron--
There are some examples of how to do stored procedures with the DatabaseControl here:
http://edocs.bea.com/workshop/docs81/doc/en/workshop/guide/controls/database/conStoredProcedures.html
One issue with SPs and ResultSets is that the ResultSets can't be returned to JPFs because of
limiations in the DatabaseControl lifecycle in 8.1. So, you can process the ResultSets in a web
service or custom control if you need to return the data to a page flow.
Hope that helps...
Eddie
Ron wrote:
Hi,
I am developing database controls that use Sybase stored procedures.
My stored procedures mostly return result sets.
How would I specify the use of both a stored procedure and the processing
of the result sets returned?

Similar Messages

  • Process Flow ignores name and location for Control- and Log-Files

    Hi!
    Our OWB Version is 10.1.0.3.0 - DB Version 9.2.0.7.0 - OWF Version 2.6.2
    Clients and server are running on Windows. Database contains target schemas as well as OWB Design and Runtime, plus OWF repositories. The source files to load reside on the same server as the database.
    I have for example a SQL*Loader Mapping MAP_TEXT which loads one flat file "text.dat" into a table stg_text.
    The mapping MAP_TEXT is well configured and runs perfect. i.e. Control file "text.ctl" is generated to location LOC_CTL, flat file "text.dat" read from another location LOC_DATA, bad file "text.bad" is written to LOC_BAD and the log file "text.log" is placed into LOC_LOG. All locations are registered in runtime repository.
    When I integrate this mapping into a WorkFlow Process PF_TEXT, then only LOC_DATA and LOC_BAD are used. After deploying PF_TEXT, I execute it and found out, that Control and Log file are placed into the directory <OWB_HOME>\owb\temp and got generic names <Mapping Name>.ctl and <Mapping Name>.log (in this case MAP_TEXT.ctl and MAP_TEXT.log).
    How can I influence OWB to execute the Process Flow using the locations configured for the mapping placed inside?
    Has anyone any helpfull idea?
    Thx,
    Johann.

    I didn't expect to be the only one to encounter this misbehaviour of OWB.
    Meanwhile I found out what the problem is and had to recognize that it is like it is!
    There is no solution for it till Paris Release.
    Bug Nr. 3099551 at Oracle MetaLink adresses this issue.
    Regards,
    Johann Lodina.

  • OEM Database Control and 10g Grid Control

    Can any one tell the difference between OEM Database Control and OEM 10g Grid Control.

    Database Control is the HTTP Management environment and comes installed with the 10g Database. It can be used to manage one database (one target) at a time (standalone). To monitor more than one database, you must create a new console on a different port for each database.
    10g Grid Control is the Enterprise version in that you can monitor different Target from different operationg systems at the same time. These include Application Servers, Listeners, Operation Systems, Non Oracle Database Systems using plugins (from 10gR2).
    So, for someone who was using OEM 9i, there was connection in to Standalone Console (Java) and Oracle Management Server (Java and HTML). In 10g, they are replaced with Database Control (Java and HTML versions) and Grid Control respectively.

  • 11GR2 : installation without database control and grid

    Hi men,
    i would like to know if it is possible to install 11GR2 database without install Database Control and Grid. It is important because my customer doesn't need to use these products.
    Thx.

    BlueR wrote:
    Hi men,
    i would like to know if it is possible to install 11GR2 database without install Database Control and Grid. It is important because my customer doesn't need to use these products.
    Thx.Your customer thinks he doesn't need a management tool? He may very well not need Grid. Technically, you don't need dbcontrol either. But as much of a command-line bigot as I am, I'd hate to have to go back to scripting everything, and I see no sense in paying good money for a third-party tool to do the same thing I can do with dbcontrol for free. I'd say that as a professional, you owe it to your customer to question him and explain why this might not be "A Good Thing".

  • Run Singlular Database Control and Grid Control Agents at the same time????

    Hello,
    I have walked into a new job where one of my 1st tasks is installing and configuring EM Grid Control version 10.2.0.3. Most of the individual databases already have singular EM/Database Control also set up for basic monitoring - some are 10.2.0.1 databases; some are 9.2.0.7 databases.
    Can I continue to run the existing singular EM Database Controls for monitoring and managing the databases while I am getting connected, the new agents up and running, and the Grid Control templates and alerts and notification fully set up?
    Or will I have to shut down those agents fully prior to installing the new 10.2.0.3 agents???
    I am hoping so since they use different communication ports of 1158 for the singular Database Controls versus 4889 for Enterprise Wide Grid Control.
    Thanks for any help in clarifying this.
    KL

    OK, so as long as I keep the homes separate & straight, I could conceivably allow them both (Database Control and Grid Control Agent) to run AND be used at the same time - even when using secured grid control (https), correct? Just have the separate homes for separate agents and use separate ports for the different consoles?
    Of course I might still run into an issue with this, ass I am also in the process of securing Grid Control... The current Database Console used by the app users to monitor is NOT an https url...
    The real reason for this is because some app users are used to using the EM Database Control for application monitoring. I would like to not take that away from them while I am in the process of setting up all of the users, roles, alerts, groups, etc. on Grid Control.

  • Differences between EM Database Control and Grid Control/Cloud Control

    Hi everybody,
    just a short question: To show my colleagues and my boss, which one is the better one I would like to have a view about what the differences between Database Control and Cloud Control Versions of EM are and which functions would like the monitoring work more comfortable for us DBA's. Does anybody know a link or document for that?
    Thanks a lot!
    Regards,
    David

    Is this the own advantage of between Cloud Control and DB Control, that Cloud Control can monitor more than one instance?Someone that are using Grid control will tell you that it is a great avantage.
    We've just one database instance. But I've read about SNMP functions, that are only supported in Cloud Control. Are there more advantages?if you only have one database instance, Enterprise Manager is your best way at this moment.
    At some time, for example when 12g arrives, will Cloud Control be the standard installation?for the moment...nobody knows what is coming with 12c database...

  • Oracle 10G Database Control and Scheduling OWB Process Flow

    Does anyone know how to go about scheduling an OWB Process Flow from
    Oracle 10G Data Base Control. I knew how to do this with Oracle Enterprise Manager 9.2 but we recently upgraded to Oracle Db 10G and the interface has changed significantly.
    Now the interface seems to require a PL/SQL stored procedure to be executed.
    Is there a template procedure that is installed with 10G Data Base Control as there was for 9.2 i.e. oem_exec_template.sql?
    Thanks! Deadline approaching fast...
    Marion

    I've used the oem_exec_template.sql successfully with OWB 10.1 and Oracle 10G Database Control, with a little trial and error at first.
    I'm assuming that your job execution environment is set up correctly, ie. that you can properly execute jobs via the host agent.
    1. Log on to Database Control as SYSTEM, select Jobs from the links at the bottom of the page
    2. In the Results section, Create Job, select "SQL Script" and press Go
    3. In the General section, enter Job Name, and as SQL Script enter e.g.:
    @/u01/app/oracle/owb_oracle_home/owb/rtp/sql/oem_exec_template.sql owb_runtime WF_LOC PROCESS MY_PROCESS , ,
    4. In the Databases section, add your target database
    5. In the Credentials section, I select "Override Preferred Credentials" and use the agent account (oracle on my Linux system) and db user owb_access (OWB Runtime Access user)
    6. Review Schedule tab and submit
    Comments on step 3:
    - the oem_exec_template.sql script must be installed according to the path specified in step 3, on the database host where the OWB Runtime Repository is located
    - owb_runtime is the owner of my OWB Runtime Repository
    - WF_LOC is the name of my Workflow Location as seen in OWB Deployment Manager
    - MY_PROCESS is the name of a deployed Workflow Process
    - the commas indicate that I don't supply any system or custom parameters.
    - step 3 is actually a shell command line that is interpreted by eg. /bin/sh on Unix or cmd on Windows, and must obey proper quoting rules. On windows, I had to specify the empty commas as "\," (including dblquotes)
    Regards, Hans Henrik

  • Database Control and Segment Shrink

    Page 10-16 of oracle10g new features for administrators
    Book says to click the TABLES link in the STORAGE section.
    Should that be from SCHEMA section? STORAGE section has tablespace information and not table info
    Thanks,
    Viji

    ahb72 wrote:
    Hi,
    I installed Oracle 10g DB and configure its DB Control. Then, I added that database as a target to OEM Grid Control.
    My question is: After adding the database as a target to the Grid control, will it be still monitored by both the DB Control and the Enterprise Grid control?I think , Yes ...
    Just keep the dbconsole services down.
    So stop the dbconsole and start OEM agent and monitor it from grid.
    Regards
    Rajesh

  • Modify database schema and logging expression

    I want to add more information to my TestStand database. For example I want to add the UUT Part Number to the database. Presently I collect the UUT part number in a station globals variable. I assume that I need to move this part number to the database local expression "logging.UUT.PartNumber" so that I can log this info, but I can't figure out how to add this variable. How do I create this variable?
    Thanks in advance for any suggestions.

    In the process model (i.e. SequentialModel.seq) you can modify the custom data type "UUT". Go to the "Sequence File Types" window and select "Custom Data Types" and you will see the UUT container. Add a variable called "PartNumber". Then you will need to add a statement in your process model to assign the value of the part number. Go to the "Single Pass" sequence (and/or Test UUTs) and add a statement similar to "Locals.UUT.PartNumber = StationGlobal.PartNumber". The statement needs to be after the MainSequence call, assuming that is where the part number gets assigned.
    The database logging utility automatically adds the UUT container to the Logging container, so you will now be able to access it as Logging.UUT.PartNumber when you configure your databas
    e statement.

  • How to Perform Recovery in Database Control on tablespace?

    Hi,
    I am runnig 10gR2 on Windows XP SP 2.
    I have taken backup of my nonsystem tablespace by using Database Control.
    Now to test it I dropped tablespace.
    Logged in as sys on Database Control:
    Maintenance->Perform Recovery->          
    Object Level Recovery
    Here in Object Type I choosed Tablespace from the dropdown
    But what do I choose in Operation Type? There are three choises:
    - Recover to current time or a previous point-in-time
    - Restore tablespaces
    - Recover from previously restored tablespaces
    And as I said, I have taken backup of my whole tablespace...
    Thanks

    Hi Werner,
    thanks again, but I still would like to perform backup of my tablespace.
    Now I understood, that to drop a tablespace was an error. OK.
    Next try:
    Step 1:
    CREATE TABLESPACE TEST_TS DATAFILE
    'C:\ORACLE\ORADATA\ORCL\TEST_01.DBF' SIZE 1M AUTOEXTEND ON,
    'C:\ORACLE\ORADATA\ORCL\TEST_02.DBF' SIZE 1M AUTOEXTEND ON;
    Step 2:
    CREATE TABLE TEST_TBL (
    NAME VARCHAR2(10))
    TABLESPACE TEST_TS;
    Step 3:
    INSERT INTO TEST_TBL VALUES('DB2');
    Step 4:
    COMMIT;
    Step 5:
    I have done backup of newly created tablespace TEST_TS via Database Control.
    Step 6:
    shutdown database;
    Step 7:
    I have manually renamed datafile TEST_01.DBF to TEST_01_.DBF
    Step 8:
    Now I have started database and have following entries in alert.log:
    Errors in file c:\oracle\oracle\product\10.2.0\db_1\admin\orcl\bdump\orcl_dbw0_4124.trc:
    ORA-01157: cannot identify/lock data file 6 - see DBWR trace file
    ORA-01110: data file 6: 'C:\ORACLE\ORADATA\ORCL\TEST_01.DBF'
    ORA-27041: unable to open file
    OSD-04002: unable to open file
    O/S-Error: (OS 2) The system cannot find the file specified.
    ORA-1157 signalled during: alter database open...
    Which is correct. Oracle can not find the datafile I have renamed.
    Step 9:
    Now I thought I could be able to access Backup/Recovery Page in Database Control,
    but all I can reach is 'Recovery Settings'
    Do I need to go in open stage first to perfor recovery?
    What needs to be done in Step 9? Do I have to drop my
    ALTER DATABASE DATAFILE 'C:\ORACLE\ORADATA\ORCL\TEST_01.DBF' OFFLINE DROP;
    alter database open;
    Go to Database Control and try it out?
    Thanks

  • Is OEM database control configured for the DBs?

    Hi
    I have multiple oracle (10gR2) databases running on a linux (5.8) server. How can I check that for which of the databases has the OEM Database Control been configured and on what port is it listening?
    Best regards

    Thank you everyone!
    Here is what I see (I have changed the DB names):
    ==============
    [oracle@vm58-1 install]$ emctl status dbconsole
    TZ set to US/Eastern
    Oracle Enterprise Manager 10g Database Control Release 10.2.0.4.0
    Copyright (c) 1996, 2007 Oracle Corporation.  All rights reserved.
    https://vm58-1.com:1158/em/console/aboutApplication
    EM Daemon is not running.
    Logs are generated in directory
    /u01/app/oracle/product/10.2.0/db_1/vm58-1.com_db1/sysman/log
    [oracle@vm58-1 install]$ export ORACLE_SID=db2
    [oracle@vm58-1 install]$ emctl status dbconsole
    TZ set to US/Eastern
    OC4J Configuration issue.
    /u01/app/oracle/product/10.2.0/db_1/oc4j/j2ee/OC4J_DBConsole_vm58-1.com_db2
    not found.
    [oracle@vm58-1 install]$
    ==============
    So it seems that DB Console was configured for db1. When I try to start it, I get following output
    ========
    [oracle@vm58-1 install]$ export ORACLE_SID=db1
    [oracle@vm58-1 install]$ emctl start dbconsole
    TZ set to US/Eastern
    Oracle Enterprise Manager 10g Database Control Release 10.2.0.4.0
    Copyright (c) 1996, 2007 Oracle Corporation.  All rights reserved.
    https://vm58-1.com:1158/em/console/aboutApplication
    Starting Oracle Enterprise Manager 10g Database Control
    ========
    And these "dots" just continue to appear and it is running for 15+ minutes now.
    Please advise how to check what is happening.
    Grid Control suggestion - I agree. I believe Grid Control is not free and the client does not seem to be interested to spend more money :-)
    Best regards

  • How to do rollback in a database control in ajpd

    Hello,
    I created a database control which has 3 methods that calls 3 respective stored procedures that inserts/updates tables. I have a jpd which uses the database control and calls each of the 3 methods. When it fails on the 3rd method, it doesn't rollback the inserts/updates done by the 2 methods. I'm using BEA's XA driver for SQL Server. Im new in this thing so please any help will be greatly appreciated.
    Thanks.
    Florence

    Dear Dinsh,
    Here are some links that will help you:
    http://download-uk.oracle.com/docs/cd/A97630_01/server.920/a96540/statements_510a.htm#2062405
    http://download-uk.oracle.com/docs/cd/A97630_01/server.920/a96540/toc.htm
    http://www.oracle.com/technology/products/oracle9i/index.html
    Regards,
    Francisco Munoz Alvarez

  • Using "in" clause in the query in Database control

    Hi,
    I have a database control and need to fire an update query to update a set of rows based on a list of values as input
    Like below
    update tablename
    set column1="value1"
    where column2 in (.......)
    I need to pass a list of values for this query where column2 is a NUMBER field in Oracle DB.
    can anyone help me how to go about passing this list of values?
    Help is appreciated.
    Thanks

    You may build the comma-separated list in Java and use " {sql: ...} " in your query: http://e-docs.bea.com/workshop/docs81/doc/en/workshop/java-class/com/bea/control/DatabaseControl.html (sorry, I can't find the documentation for WLI 9.2).

  • Way to change database control connection at runtime

    Is there a way to change the database connection (the @jc:connection data-source-jndi-name) at runtime? I want to build only one database control and be able to use it against different connections.

    Hi,
    There is no way to do this as of now.
    Ejbcontrol and service control has a method setJndiName and setEndPoint(wsdl url) respectively to do so. But database control doesn't and is a good enhancement.
    Thanks a lot,
    Vimala

  • Oracle 10g database control

    hi,
    Working on oracle 10g is just like a mirage for me. I have installed and uninstalled it many times on my new laptop, but not been able to work on it, because of many oracle problems. my OS is windows xp prof. sp2. i have cracked my brain on accessing to oracle 10g database control webpage, but have not succeeded yet. everytime i am successful in installing oracle 10g on my machine but everytime i fail to connect to em-database control and got the error 'page can not be displayed'.
    my laptop uses dhcp and it uses a wireless LAN. i install and configure loopback adapter before installing 10g. i have tried with 192.168.x.y as the ip address of the loop back adapter and have put many numbers in place of x, y where 0<x<254 and 0<y<254 . Infact i have tried with 192.168.15.16
    192.168.18.12
    192.168.78.12
    192.168.84.123
    192.168.67.102
    192.168.20.178
    and many more and in all the previous cases i configured subnet mask to be
    255.255.255.0. Everytime database installation is successful but not able to connect to oem db control webpage.
    One more error i get everytime is that whenever i try to connect to database through sql window , sometimes i connect and sometimes i dont.i get the error ORA-12357 TNS Connection Closed.
    i provide username: scott
    password : tiger .
    host string: orcl
    ( orcl is the database name and also the name of the sid).
    But i always am able to connect to the database through command line c:\ prompt and everything works fine.
    Please provide me some solutions for the above problems...

    See Response to your other post
    its very very urgent, please reply

Maybe you are looking for

  • Can two programs recive the same stream from the same port?

    I am sending a video from a server to my client on port 23456. On my client I am running a videoreciver that shows the video, and I also want to run a program that receives the strem with datagramSocket and writes out statistics.. Is this possible? o

  • Are Registrar pool and Front end pool one and the same?

    Hi, What is the RegistrarPool parameter which is used in Enable-CsUser command?  Is it same as Front end pool because whenever I search for information on Registrar pool, I end up with the links explaining about Front end pools?  Are there any msdn o

  • Debug problem in JDeveloper 3.0

    Has anybody come across a problem when debugging an application that causes JDeveloper to go into an infinite loop (until my machine runs out of memory) when a breakpoint is hit. This only seems to happen on certain files I've removed JDeveloper 2.0.

  • Can someone send me the files in /srv/tftp folder ?

    Hello, My company use ZDM, but use ghost for image solution. Now I am thinking of replace it to the ZDM image. I would need to test it first since the server may didn't install pxe component. Now I need the files in /srv/tftp on a ZDM linux server. C

  • What is the uses of a Transport order ?

    Hi, Can any one tell what is the the link between Transport Order, client field ( MANDT ) and Systems (Dev, Integration and production) ? In other words, How can I create an object in Deveopment System and send it to Intergration System? Thnaks Edite