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

Similar Messages

  • Oracle 10g  Database control installation error

    Hi,
    Installing oracle 10g database control had give me an error.But Repository created successfully . please find the log file below
    Is there i need to install ...? before i start to run emca to install Database Control.
    my points of interest are here
    FileNotFoundException: /opt/db/oracle/product/10.2.0/oc4j/j2ee/OC4J_DBConsole/config/http-web-site.xml (No such file or directory)
    i didn't find jms.xml,rmi.xml,http-web-site.xml etc in this location /opt/db/oracle/product/10.2.0/oc4j/j2ee/OC4J_DBConsole/config/
    File/directory /opt/db/oracle/product/10.2.0/sysman/emdrep/config/repository.variables does not exist
    Let me know how to slove this error.
    Thanks,
    anil
    Error
    =========
    emca -config dbcontrol db -repos create
    STARTED EMCA at Apr 8, 2008 4:33:25 PM
    EM Configuration Assistant, Version 10.2.0.1.0 Production
    Copyright (c) 2003, 2005, Oracle. All rights reserved.
    Enter the following information:
    Database SID: XXX
    Listener port number: 1521
    Password for SYS user:
    Password for DBSNMP user:
    Password for SYSMAN user:
    Email address for notifications (optional):
    Outgoing Mail (SMTP) server for notifications (optional):
    You have specified the following settings
    Database ORACLE_HOME ................ /opt/db/oracle/product/10.2.0
    Database hostname ................ xxx.xxxx.local
    Listener port number ................ 1521
    Database SID ................ XXX
    Email address for notifications ...............
    Outgoing Mail (SMTP) server for notifications ...............
    Do you wish to continue? [yes(Y)/no(N)]: yes
    Apr 8, 2008 4:34:55 PM oracle.sysman.emcp.EMConfig perform
    INFO: This operation is being logged at /opt/db/oracle/product/10.2.0/cfgtoollogs/emca/SDM/emca_2008-04-08_04-33-25-PM.log.
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.EMReposConfig createRepository
    INFO: Creating the EM repository (this may take a while) ...
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.EMReposConfig invoke
    INFO: Repository successfully created
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.EMReposConfig updateReposVars
    SEVERE: File/directory /opt/db/oracle/product/10.2.0/sysman/emdrep/config/repository.variables does not existApr 8, 2008 4:34:58 PM oracle.sysman.emcp.EMReposConfig invoke
    SEVERE: Failed to unlock all EM-related accounts
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.EMConfig perform
    SEVERE: Failed to unlock all EM-related accounts
    Refer to the log file at /opt/db/oracle/product/10.2.0/cfgtoollogs/emca/SDM/emca_2008-04-08_04-33-25-PM.log for more details.
    Could not complete the configuration. Refer to the log file at /opt/db/oracle/product/10.2.0/cfgtoollogs/emca/SDM/emca_2008-04-08_04-33-25-PM.log for more details.
    the following is log generated (emca_2008-04-08_04-33-25-PM.log)
    Apr 8, 2008 4:34:56 PM oracle.sysman.emcp.util.OUIInventoryUtil setOUILoc
    CONFIG: Setting oracle.installer.oui_loc to /opt/db/oracle/product/10.2.0/oui
    Apr 8, 2008 4:34:56 PM oracle.sysman.emcp.util.OUIInventoryUtil setOUILoc
    CONFIG: Setting oracle.installer.oui_loc to /opt/db/oracle/product/10.2.0/oui
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.PortManager markAllUsedPorts
    CONFIG: Homes to scan for used ports: [opt/db/oracle/product/10.2.0]
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.PortManager markAllUsedPorts
    CONFIG: Searching all DBConsole instances for used ports under ORACLE_HOME /opt/db/oracle/product/10.2.0
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.PortManager findUsedPortsFromXML
    CONFIG: Could not find or correctly parse file /opt/db/oracle/product/10.2.0/oc4j/j2ee/OC4J_DBConsole/config/jms.xml in searching for tag jms-server with att
    ribute port
    java.io.FileNotFoundException: /opt/db/oracle/product/10.2.0/oc4j/j2ee/OC4J_DBConsole/config/jms.xml (No such file or directory)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:106)
    at java.io.FileInputStream.<init>(FileInputStream.java:66)
    at java.io.FileReader.<init>(FileReader.java:41)
    at oracle.sysman.emcp.util.PortManager.findUsedPortsFromXML(PortManager.java:282)
    at oracle.sysman.emcp.util.PortManager.markAllUsedPorts(PortManager.java:1172)
    at oracle.sysman.emcp.util.PortManager.getFreePorts(PortManager.java:543)
    at oracle.sysman.emcp.EMDBPreConfig.getFreePorts(EMDBPreConfig.java:2324)
    at oracle.sysman.emcp.EMDBPreConfig.checkPorts(EMDBPreConfig.java:2261)
    at oracle.sysman.emcp.EMDBPreConfig.performConfiguration(EMDBPreConfig.java:670)
    at oracle.sysman.emcp.EMDBPreConfig.invoke(EMDBPreConfig.java:233)
    at oracle.sysman.emcp.EMDBPreConfig.invoke(EMDBPreConfig.java:160)
    at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:141)
    at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:479)
    at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1123)
    at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:463)
    at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:412)
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.PortManager markAllUsedPorts
    CONFIG: Marking JMS port: null from /opt/db/oracle/product/10.2.0/oc4j/j2ee/OC4J_DBConsole
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.PortManager findUsedPortsFromXML
    CONFIG: Could not find or correctly parse file /opt/db/oracle/product/10.2.0/oc4j/j2ee/OC4J_DBConsole/config/rmi.xml in searching for tag rmi-server with att
    ribute port
    java.io.FileNotFoundException: /opt/db/oracle/product/10.2.0/oc4j/j2ee/OC4J_DBConsole/config/rmi.xml (No such file or directory)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:106)
    at java.io.FileInputStream.<init>(FileInputStream.java:66)
    at java.io.FileReader.<init>(FileReader.java:41)
    at oracle.sysman.emcp.util.PortManager.findUsedPortsFromXML(PortManager.java:282)
    at oracle.sysman.emcp.util.PortManager.markAllUsedPorts(PortManager.java:1176)
    at oracle.sysman.emcp.util.PortManager.getFreePorts(PortManager.java:543)
    at oracle.sysman.emcp.EMDBPreConfig.getFreePorts(EMDBPreConfig.java:2324)
    at oracle.sysman.emcp.EMDBPreConfig.checkPorts(EMDBPreConfig.java:2261)
    at oracle.sysman.emcp.EMDBPreConfig.performConfiguration(EMDBPreConfig.java:670)
    at oracle.sysman.emcp.EMDBPreConfig.invoke(EMDBPreConfig.java:233)
    at oracle.sysman.emcp.EMDBPreConfig.invoke(EMDBPreConfig.java:160)
    at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:141)
    at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:479)
    at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1123)
    at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:463)
    at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:412)
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.PortManager markAllUsedPorts
    CONFIG: Marking RMI port: null from /opt/db/oracle/product/10.2.0/oc4j/j2ee/OC4J_DBConsole
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.PortManager findUsedPortsFromXML
    CONFIG: Could not find or correctly parse file /opt/db/oracle/product/10.2.0/oc4j/j2ee/OC4J_DBConsole/config/http-web-site.xml in searching for tag web-site
    with attribute port
    java.io.FileNotFoundException: /opt/db/oracle/product/10.2.0/oc4j/j2ee/OC4J_DBConsole/config/http-web-site.xml (No such file or directory)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:106)
    at java.io.FileInputStream.<init>(FileInputStream.java:66)
    at java.io.FileReader.<init>(FileReader.java:41)
    at oracle.sysman.emcp.util.PortManager.findUsedPortsFromXML(PortManager.java:282)
    at oracle.sysman.emcp.util.PortManager.markAllUsedPorts(PortManager.java:1180)
    at oracle.sysman.emcp.util.PortManager.getFreePorts(PortManager.java:543)
    at oracle.sysman.emcp.EMDBPreConfig.getFreePorts(EMDBPreConfig.java:2324)
    at oracle.sysman.emcp.EMDBPreConfig.checkPorts(EMDBPreConfig.java:2261)
    at oracle.sysman.emcp.EMDBPreConfig.performConfiguration(EMDBPreConfig.java:670)
    at oracle.sysman.emcp.EMDBPreConfig.invoke(EMDBPreConfig.java:233)
    at oracle.sysman.emcp.EMDBPreConfig.invoke(EMDBPreConfig.java:160)
    at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:141)
    at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:479)
    at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1123)
    at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:463)
    at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:412)
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.PortManager markAllUsedPorts
    CONFIG: Marking HTTP port: null from /opt/db/oracle/product/10.2.0/oc4j/j2ee/OC4J_DBConsole
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.FileUtil getProperties
    CONFIG: Error reading file /opt/db/oracle/product/10.2.0/sysman/config/emd.properties
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.PortManager getAgentPort
    CONFIG: Cannot parse EMD_URL correctly. No port identified
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.PortManager markAllUsedPorts
    CONFIG: Marking Agent port: null from /opt/db/oracle/product/10.2.0/sysman/config/emd.properties
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.PortManager markAllUsedPorts
    CONFIG: Cannnot parse EMD_URL correctly. No port identified
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.FileUtil getProperties
    CONFIG: Error reading file /opt/db/oracle/product/10.2.0/install/staticports.ini
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.PortManager getFreePorts
    CONFIG: /opt/db/oracle/product/10.2.0:mcidm11.pacs11.local:null:SDM:{}:null:{DBCONTROL_HTTP_PORT=1158, RMI_PORT=5520, JMS_PORT=5540, AGENT_PORT=3938}
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter AGENT_PORT_SDM.
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.ParamsManager setParam
    CONFIG: Setting param: AGENT_PORT_SDM value: 3938
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter DBCONTROL_HTTP_PORT_SDM.
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.ParamsManager setParam
    CONFIG: Setting param: DBCONTROL_HTTP_PORT_SDM value: 1158
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter JMS_PORT_SDM.
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.ParamsManager setParam
    CONFIG: Setting param: JMS_PORT_SDM value: 5540
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter RMI_PORT_SDM.
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.ParamsManager setParam
    CONFIG: Setting param: RMI_PORT_SDM value: 5520
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.EMDBPreConfig getFreePorts
    CONFIG: Ports assigned for SID: SDM : {DBCONTROL_HTTP_PORT=1158, RMI_PORT=5520, JMS_PORT=5540, AGENT_PORT=3938}
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
    CONFIG: SQLEngine connecting with SID: SDM, oracleHome: /opt/db/oracle/product/10.2.0, and user: SYS
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
    CONFIG: SQLEngine created successfully and connected
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.EMReposConfig createRepository
    CONFIG: Spooling to /opt/db/oracle/product/10.2.0/cfgtoollogs/emca/SDM/emca_repos_create_2008-04-08_04-34-58-PM.log
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.EMReposConfig createRepository
    INFO: Creating the EM repository (this may take a while) ...
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.EMReposConfig invoke
    INFO: Repository successfully created
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
    CONFIG: SQLEngine connecting with SID: SDM, oracleHome: /opt/db/oracle/product/10.2.0, and user: SYS
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
    CONFIG: SQLEngine created successfully and connected
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.EMReposConfig grantPrivsToDbsnmp
    CONFIG: Exception while granting priviliges.
    oracle.sysman.assistants.util.sqlEngine.SQLFatalErrorException: ORA-00942: table or view does not exist
    at oracle.sysman.assistants.util.sqlEngine.SQLEngine.executeImpl(SQLEngine.java:1467)
    at oracle.sysman.assistants.util.sqlEngine.SQLEngine.executeSql(SQLEngine.java:1708)
    at oracle.sysman.emcp.EMReposConfig.grantPrivsToDbsnmp(EMReposConfig.java:503)
    at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:208)
    at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:124)
    at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:142)
    at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:479)
    at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1123)
    at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:463)
    at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:412)
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.EMReposConfig invoke
    CONFIG: Failed to grant priviliges to dbsnmp.
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.EMReposConfig updateReposVars
    SEVERE: File/directory /opt/db/oracle/product/10.2.0/sysman/emdrep/config/repository.variables does not existApr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
    CONFIG: SQLEngine connecting with SID: SDM, oracleHome: /opt/db/oracle/product/10.2.0, and user: SYS
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
    CONFIG: SQLEngine created successfully and connected
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.EMReposConfig unlockAccounts
    CONFIG: Unlocking dbsnmp and sysman
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.EMReposConfig unlockAccounts
    CONFIG: ORA-06550: line 1, column 62:
    PLS-00201: identifier 'SYSMAN.MGMT_VIEW_PRIV' must be declared
    ORA-06550: line 1, column 62:
    PL/SQL: Statement ignored
    oracle.sysman.assistants.util.sqlEngine.SQLFatalErrorException: ORA-06550: line 1, column 62:
    PLS-00201: identifier 'SYSMAN.MGMT_VIEW_PRIV' must be declared
    ORA-06550: line 1, column 62:
    PL/SQL: Statement ignored
    at oracle.sysman.assistants.util.sqlEngine.SQLEngine.executeImpl(SQLEngine.java:1467)
    at oracle.sysman.assistants.util.sqlEngine.SQLEngine.executeSql(SQLEngine.java:1708)
    at oracle.sysman.emcp.EMReposConfig.unlockAccounts(EMReposConfig.java:566)
    at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:235)
    at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:124)
    at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:142)
    at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:479)
    at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1123)
    at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:463)
    at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:412)
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.EMReposConfig invoke
    SEVERE: Failed to unlock all EM-related accounts
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.EMConfig perform
    SEVERE: Failed to unlock all EM-related accounts
    Refer to the log file at /opt/db/oracle/product/10.2.0/cfgtoollogs/emca/SDM/emca_2008-04-08_04-33-25-PM.log for more details.
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.EMConfig perform
    CONFIG: Stack Trace:
    oracle.sysman.emcp.exception.EMConfigException: Failed to unlock all EM-related accounts
    at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:239)
    at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:124)
    at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:142)
    at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:479)
    at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1123)
    at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:463)
    at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:412)

    Hi all,
    i started creating database control repository, when i saw emca running i had seen repository created successfully , but sysman user is not created at this point of time. Then i looked into emca_repos_create_2008-04-10_11-57-03-AM.log file but the file is unable to open because it's looking for file emreposcre.sql which creates sysman user in this location /opt/db/oracle/product/10.2.0/sysman/admin/emdrep/sql/
    i feel while installing the database these files are not created....? or i need to run any scripts before running emca ....?
    give me some inputs to this thread.
    Thanks,
    nil
    STARTED EMCA at Apr 10, 2008 11:55:41 AM
    EM Configuration Assistant, Version 10.2.0.1.0 Production
    Copyright (c) 2003, 2005, Oracle. All rights reserved.
    Enter the following information:
    Database SID: XXXXX
    Listener port number: 1521
    Password for SYS user:
    Password for SYSMAN user:
    Do you wish to continue? [yes(Y)/no(N)]: yes
    Apr 10, 2008 11:57:02 AM oracle.sysman.emcp.EMConfig perform
    INFO: This operation is being logged at /opt/db/oracle/product/10.2.0/cfgtoollog
    Apr 10, 2008 11:57:03 AM oracle.sysman.emcp.EMReposConfig createRepository
    INFO: Creating the EM repository (this may take a while) ...
    Apr 10, 2008 11:57:03 AM oracle.sysman.emcp.EMReposConfig invoke
    INFO: Repository successfully created
    Enterprise Manager configuration completed successfully
    FINISHED EMCA at Apr 10, 2008 11:57:03 AM
    mcidm11 10.2.0/bin>
    CONFIG: Spooling to /opt/db/oracle/product/10.2.0/cfgtoollogs/emca/SDM/emca_repos_create_2008-04-10_11-57-03-AM.log
    Apr 10, 2008 11:57:03 AM oracle.sysman.emcp.EMReposConfig createRepository
    INFO: Creating the EM repository (this may take a while) ...
    Apr 10, 2008 11:57:03 AM oracle.sysman.emcp.EMReposConfig invoke
    INFO: Repository successfully created
    mcidm11 emca/SDM> pwd
    /opt/db/oracle/product/10.2.0/cfgtoollogs/emca/SDM
    mcidm11 emca/SDM> more emca_repos_create_2008-04-10_11-57-03-AM.log
    SP2-0310: unable to open file "/opt/db/oracle/product/10.2.0/sysman/admin/emdrep/sql/emreposcre.sql"mcidm11 emca/SDM> cd
    Directory: /opt/db
    mcidm11 /opt/db> cd /opt/db/oracle/product/10.2.0/sysman/admin/emdrep/sql/
    Directory: /opt/db/oracle/product/10.2.0/sysman/admin/emdrep/sql
    mcidm11 emdrep/sql> ls
    core db ias ocs

  • 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

  • How to Schedule OWB Process Flows through OEM

    Hi,
    I have successfully created mappings and process flows for my project.
    But now I want to schedule the process flows through OEM.
    Following are my DB configurations..
    OWB Version : 10g R1 (Oracle SID LVDSGDEV ) on windows
    Runtime Owner: ATS_RUN_OWNER (Oracle SID LVDSGDEV )
    Runtime User : ATS_RUN_USER (Oracle SID LVDSGDEV )
    Work Flow Schema: OWF_MGR (Oracle SID LVDSGDEV)
    Source & Target DB : 10g (Oracle SID LVRUNDEV) on windows
    Process which I want to Schedule is....
    Process Flow Location: ATS_LOC
    Process Flow Name: PKG_DM
    Process Name: BASE_LOAD
    Can someone please suggest me, the procedure to schedule this process flow.....

    You may choose just to schedule the mapping directly through OEM. Create an OEM SQLPlus job that calls the script:
    @c:\owb_home\owb\rtp\sqlplus_exec_template.sql;
    Check the beginning of the sqlplus_exec_template.sql. It will show examples of the parameters it accepts and it has some documentation. It works nicely.

  • Oracle 10g database as Resource manager and heuristic transaction decision

    Hi,
    I have read in documents about distributed tarnsaction that resource manager like oracle databasecthat are involved in distributed transaction can take heuristic decision(unilateral decision) and can either rollback or commit the transaction associated with itself without having confirmation from the transaction manager.
    I want to know how a resource manager take this unilateral decision and can we set this as parameter either in resource manager or in application server.
    Thanks in advance

    Hi,
    Following are some links to documents.
    Handling Heuristic Completions
    http://edocs.bea.com/wls/docs81/ConsoleHelp/jta.html
    A heuristic completion (or heuristic decision) occurs when a resource makes a unilateral decision during the completion stage of a distributed transaction to commit or rollback updates. This can leave distributed data in an indeterminate state. Network failures or resource timeouts are possible causes for heuristic completion. In the event of an heuristic completion, one of the following heuristic outcome exceptions may be thrown:
    HeuristicRollback—one resource participating in a transaction decided to autonomously rollback its work, even though it agreed to prepare itself and wait for a commit decision. If the Transaction Manager decided to commit the transaction, the resource's heuristic rollback decision was incorrect, and might lead to an inconsistent outcome since other branches of the transaction were committed.
    HeuristicCommit—one resource participating in a transaction decided to autonomously commit its work, even though it agreed to prepare itself and wait for a commit decision. If the Transaction Manager decided to rollback the transaction, the resource's heuristic commit decision was incorrect, and might lead to an inconsistent outcome since other branches of the transaction were rolled back.
    HeuristicMixed—the Transaction Manager is aware that a transaction resulted in a mixed outcome, where some participating resources committed and some rolled back. The underlying cause was most likely heuristic rollback or heuristic commit decisions made by one or more of the participating resources.
    2. Understanding EJB Transaction
    http://www2.sys-con.com/itsg/virtualcd/Java/archives/0504/tyagi/index.html
    Unilateral Decisions
    The transaction manager allows certain heuristic or speculative decisions to be made based on the state of all participating resources in a transaction and the underlying two-phase commit protocol. A heuristic decision occurs when one of the resources in the transaction unilaterally decides to commit or roll back the transaction without permission from the transaction manager
    3. Oracle® Containers for J2EE
    http://download.oracle.com/docs/cd/B31017_01/web.1013/b28958.pdf
    Heuristics
    To achieve consensus, two-phase commit is a blocking protocol. This means that, if a coordinator fails before delivering the final phase messages, the participants must remain blocked, holding onto resources. Modern transaction systems add heuristics to two-phase commit, which allows such participants to make unilateral decisions about whether they will commit or rollback. If a participant makes a choice that turns out to be different from the one taken by other participants, then non-atomic behavior occurs.
    I got this problem while trying to do a distributed J2EE tarnsaction with two XA (one MQ and other Oracle 10g database XA) and one non-xa (oracle 10g database). According to above docs a resource manager can decide tarnsaction final state unilaterally and that can result in unatomic transaction.
    Do oracle also make such decision and if yes then on what ground it takes decision? Can we change this according to our requirement either always rollback/commit anywhere as parameter setting?
    Thanks

  • Add second instance to Enterprise Manager 10g database control

    Hi,
    I have a server with one Oracle 10g database instance, and I
    configured the local Enterprise Manager database control for it.
    Now I added a second instance on the server, using the same Oracle
    home. Can I manage this new instance using the existing database
    control or do I have to configure a second database control using
    another port? The documentation isn't too clear on this.
    Thanks,
    Matthias

    You can't manage the two database using database control. you have to go for Grid control only if you need to configure two or more instance.

  • 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

  • Errors in manual creation of oracle 10g database

    I created oracle 10g database manually and i am getting post installation errors.. could you please help out?
    I executed @?/sqlplus/admin/pupbld.sql but it still shows
    Error accessing PRODUCT_USER_PROFILE
    Warning: Product user profile information not loaded!
    You may need to run PUPBLD.SQL as SYSTEM
    i tried to see
    SQL> desc product_user_profile;
    ERROR:
    ORA-04043: object "SYSTEM"."SQLPLUS_PRODUCT_PROFILE" does not exist
    not there?? any other scripts to be run ? please guide me.
    2. I can not able login sys@sid as sysdba
    SQL> select * from v$pwfile_users;
    no rows selected
    i changed
    remote_login_passwordfile string EXCLUSIVE
    re-started db but no help...
    SQL> grant sysdba to sys;
    grant sysdba to sys
    ERROR at line 1:
    ORA-01990: error opening password file
    I re-created
    $ORACLE_HOME/bin/orapwd file=$ORACLE_HOME/dbs/orapwmydb.ora password=xxxx entries=5 force=y
    but no help..
    Could one please help out... ! great thanks in advance..

    thanks for prompt reply .. but still one issue remain..
    oracle DEVS $ sqlplus sys@sid sysdba
    SQL*Plus: Release 10.1.0.4.0 - Production on Thu Jan 7 10:51:44 2010
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Enter password:
    ERROR:
    ORA-01031: insufficient privileges
    but i can able to login as sqlplus sys as sysdba
    SQL> select * From v$pwfile_users;
    no rows selected
    i tired to do
    SQL> grant sysdba to sys;
    grant sysdba to sys
    ERROR at line 1:
    ORA-01990: error opening password file
    '/u02/app/oracle/product/10.1.0/dbs/orapw'
    ORA-27037: unable to obtain file status
    Linux Error: 2: No such file or directory
    Additional information: 3
    there is already one password file with orapwsid.ora.. how this should be solved ? please help. thanks

  • (urgent)how to run the sqlldr script in owb process flow?

    dear all:
    In my oracle warehouse ,i have to load much *.dat file
    into database with sqlldr in owb process flow. In owb process flow, I use the external process to run the sqlldr file with following configuration:
    1:======external process==========
    command : /app/ftpfile/sqlldr2.sh
    parameter list:
    success_threshold:0
    script:
    ================================
    2:create a file location in FILE LOCATION node:
    =============
    ODS_LOCAL_LOC
    =============
    3: in the runtime repository i register the location
    ============
    user name: oracle (for the sqlldr should run in oracle user)
    password : oracle
    host name: localhost
    root path: /app/ftpfile/
    ============
    4:configure the process flow
    ============
    path settings
    working locations:ods_local_loc
    ============
    after deploy them success in runtime repository,
    i run it ,it show me error following:
    ==========
    SQL*Loader-704: Internal error: ulconnect: OCIServerAttach [0]
    ORA-12545: Connect failed because target host or object does not exist
    ===========
    please help me!
    with best regard!

    Hello,
    our developers were getting this error code just the other day. They are using "sqlplus_exec_template" script to initiate these things. In our case, I had to do two thing:
    1) Modify their "initiator" script (the one that connects to runtime access user, and then calls "template") - it has to use tns connectivity "user/passwd@service_name"
    2) Create TNS entry (server side) for the "service_name" above.
    Now these SQL*LOADER mappings run successfully.
    Alex.

  • How to stop OWB Process Flow job

    I have a problem.
    For scheduling OWB Process Flows I use EM (create Job - SQL Script) in which I schedule jobs with script @/home/oracle/scripts/oem_exec_template.sql.
    Sometimes it happens, that the job doesn't finish and I also can't expedite it through Workflow manager because it is not listed there. So next executions for this job doesn't fire, because it is still active (it is shown in EM as Running …..and also I can't stop it there).
    I also can't find the session for this job and also in dictionary I can't find the job, I went through these views, but nowhere I can't find any of my scheduled jobs, and of course also not the ones that are still running.
    DBA_SCHEDULER_JOBS
    DBA_SCHEDULER_RUNNING_JOBS
    DBA_SCHEDULER_JOB_RUN_DETAILS
    Where in dictionary can I find my jobs?
    How can I kill my running jobs?
    OS: Red Hat Linux 3
    DB: 10.1.0.3.0
    OWB: 10.1.0.2.0
    I'm quite desperate about this isue,
    Thank you,
    Gorazd

    Gorazd,
    the best way to identify problem with processflow execution - using OWB Runtime Audit Browser.
    Other variant - using public OWB runtime view, for example for reporting executions of you process run this select under OWB repository owner or any OWB user:
    select created_on,elapse_time,return_result from all_rt_audit_executions
    where object_name='<your processflow name in uppercase>' order by created_on;
    RETURN_RESULT must be equal 'OK' and ELAPSE_TIME (in seconds) greater then 0.
    If this query returns rows with null RETURN_RESULT or RETURN_RESULT<>'OK' or with zero elapse_time and this cases match (by date) with EM problems then you need analyze process executions in more detail with Runtime Audit Browser.
    Alternatively use select from view ALL_RT_AUDIT_EXEC_MESSAGES / ALL_RT_AUDIT_MAP_RUN_ERRORS / ALL_RT_AUDIT_PROC_RUN_ERRORS.
    Oleg

  • Oracle Enterprise Manager 10g Database Control Release 10.2.0.3.0

    Oracle Enterprise Manager 10g Database Control Release 10.2.0.3.0 is one hour behiend on AIX 5.3.
    I have installed the new timezone version 4 already by oracle DST path database is good OEM main page is showing one hour behiend.
    I have done every possible effort last thing may be i have to update java home i have 1.4 IBM java on the server.
    Please help me in this. Thanks.

    See the Metalink Note *Impact Document for Daylight Saving Time Shift for Enterprise Manager Grid Control [ID 417939.1]* Appendix B - FAQ - point 18
    What is the impact of not patching the JDK on the OMS for 10g Grid Control?
    If you do not patch the JDK on the OMS page refreshed times and possibly other times displayed in the console will be incorrect (they will be off by 1 hour) during an affected period.
    Oracle strongly recommends that you do patch the OMS JDK but we are not aware of any data corruption in the repository nor of any impact on critical EM functionalities (such as severities, notifications and jobs) when the JDK is not patched.

  • Export and import Oracle 10G database

    Hello all
    Can anyone tell me once for all how can i backup oracle 10G database and restore it in other computer (export and import)
    thanks alot
    Ron

    Do you can access to metalink?
    If not, I copy an paste this doc's....
    Doc ID: Note:10767.1
    Subject: How to perform FULL System Export/Imports
    Type: BULLETIN
    Status: PUBLISHED
    Content Type: TEXT/X-HTML
    Creation Date: 18-APR-1994
    Last Revision Date: 30-AUG-2002
    Purpose
    This article highlights some important points to consider when performing
    a Full System Export and Import.
    Scope and Application
    It is intended to assist users performing FULL System Exports and Imports.
    A Full System Export and Import is a useful way to replicate or clean up
    a database. Please note the following guidelines when performing a Full
    System Export and Import:
    1. When performing the import, ensure you are pointing at the correct
    instance. Always check values for the SID and two task driver before
    proceeding.
    *Note:   On Unix systems, just entering a sub-shell, such as using
    C-shell, can change the database that the import would work
    against.
    2. When possible, it is advisable to take a physical copy of the
    exported database and the database you intend to import into before
    starting the import. This ensures any mistakes are reversible.
    3. NEVER run a FULL SYSTEM IMPORT on a machine that has more than one
    database UNLESS you are 100% sure all tablespaces have been
    pre-created. A full import will create any undefined tablespaces
    using the same datafile names as the exported database. There are
    situations where this is very dangerous:
    -> If the datafiles belong to ANY other database, they will be
    CORRUPTED. This is especially true if the exported database is
    on the same machine, because its datafiles will be re-used by
    the database you are importing into.
    -> If the datafiles have names that clash with existing operating
    system files.
    4. When exporting, it is advisable to also produce a report showing
    information you may need before / after the import:
    -> List the tablespaces and datafiles
    -> List the rollback segments
    -> List a count, by user, of each object type such as tables,
    indexes, etc.
    This enables you to ensure that tablespaces have been pre-created
    and to check the success of the import after it is complete.
    5. If you are creating a completely new database from an export, remember
    to create an extra rollback segment in SYSTEM, and make this available
    in the init.ora file before proceeding with the import.
    6. There are some versions of export that do not retain sequence numbers
    correctly. It is advisable to select next_value for each sequence
    after the export so that these can be checked after import.
    Following these guidelines will help you to avoid major problems.
    Doc ID: Note:174226.1
    Subject: How To Copy an Oracle Database To Another Machine
    Type: HOWTO
    Status: PUBLISHED
    Content Type: TEXT/X-HTML
    Creation Date: 12-OCT-2001
    Last Revision Date: 01-OCT-2003
    goal: How to copy an Oracle database to another machine
    fact: Oracle Server - Enterprise Edition
    fix:
    Pre-requisites: The copy is between 2 machines, both have to be on the same OS
    and have to have exactly the same database version installed.
    1. Make sure the database you want to copy was closed with a SHUTDOWN IMMEDIATE,
    SHUTDOWN NORMAL or SHUTDOWN TRANSACTIONAL.
    2. Copy init.ora and control files to create instance and be able to go in
    mount mode. Check the init.ora for the locations where the controlfiles have
    to be, if those locations are not valid on the machine put the control files on
    different places and adjust the init.ora accordingly.
    3.a. Copy the datafiles (all of them).
    b. Copy the redo-logfiles (all of them).
    4.a. (Unix only) Set the environment variables:
    ORACLE_SID - set to the database name you wish to create
    ORACLE_HOME - set to full pathname of the Oracle system home directory
    PATH - needs to include $ORACLE_HOME/bin
    b. (NT/2000 only) Do 'set ORACLE_SID=<SID>'
    Use oradim to create the service for the instance. For more information
    on oradim please refer to (the part that refers to creating a new instance):
    Note:68720.1 Creating a new 7.3, 8.0, 8.1 Instance/Database
    5. Use servermanager (check the name to use for your version of oracle) or
    sqlplus (version 9i and above) to startup the database in mount mode.
    Do
    CONNECT INTERNAL/<PASSWORD>
    then
    STARTUP MOUNT
    Then do a rename of the copied datafiles if they are not in the same path as on
    the other machine. For all the files that are in the result of the query:
    SELECT NAME FROM V$DATAFILE;
    do
    ALTER DATABASE RENAME FILE '<oldfullpath>\<filename>' to <
    newfullpath>\<filename>';
    6. Query the datadictionary for the old location of the redolog files using:
    SELECT MEMBER FROM V$LOGFILE;
    If the new place is not the same as the old do:
    ALTER DATABASE RENAME FILE '<oldfullpath>\<redologfilename>' to &
    lt;newfullpath>\<redologfilename>';
    7. Now open the database:
    ALTER DATBASE OPEN;
    ******************************************************************

  • 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.

  • An instance of Oracle EM 10g Database Control is already running.

    Hello all, I've this problem when I reboot my system and try to start EM console (because it's not working after each reboot until I restarted it):
    Oracle Enterprise Manager 10g Database Control Release 10.2.0.2.0
    Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
    http://IC-Server:1158/em/console/aboutApplication
    - An instance of Oracle Enterprise Manager 10g Database Control is already running.
    but if I check the EM status, these are the results:
    IC605 on IC-Server: emctl status dbconsole
    Oracle Enterprise Manager 10g Database Control Release 10.2.0.2.0
    Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
    http://IC-Server:1158/em/console/aboutApplication
    Oracle Enterprise Manager 10g is not running.
    Logs are generated in directory /u01/app/oracle/product/10.2.0/IC-Server_IC605/sysman/log
    IC605 on IC-Server:The only way to solve this that I found -at least for now- it's to stop the EM console, and then start it again.
    And contents of file emdctl.trc are these:
    IC605 on IC-Server: cat emdctl.trc
    2008-09-02 00:11:00 Thread-1 WARN http: snmehl_connect: connect failed to (IC-Server:3938): Connection refused (error = 146)
    .... a lot of similar lines ....
    2008-09-12 00:47:17 Thread-1 WARN http: snmehl_connect: connect failed to (IC-Server:1158): Connection refused (error = 146)
    2008-09-12 01:11:35 Thread-1 WARN http: snmehl_connect: connect failed to (IC-Server:1158): Connection refused (error = 146)
    IC605 on IC-Server:
    Could you give any clue about where I must search for the problem?
    Thanks a lot.
    Martin
    P.S.: Some additional info...
    OS Version:
    # uname -a
    SunOS IC-Server 5.10 Generic_137112-06 i86pc i386 i86pc
    DB Version:
    SQL> conn /as sysdba
    Connected to an idle instance.
    SQL> startup
    ORACLE instance started.
    Total System Global Area 289406976 bytes
    Fixed Size 1279820 bytes Variable Size 159385780 bytes
    Database Buffers 125829120 bytes
    Redo Buffers 2912256 bytes
    Database mounted.
    Database opened.
    SQL> select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Prod
    PL/SQL Release 10.2.0.2.0 - Production
    CORE 10.2.0.2.0 Production
    TNS for Solaris: Version 10.2.0.2.0 - Production
    NLSRTL Version 10.2.0.2.0 - ProductionEdited by: martinmorono on Sep 14, 2008 3:41 PM

    I've done it. Thanks.
    >SQL> alter session set current_schema = SYSMAN;
    >
    >Session altered.
    >
    >SQL> exec mgmt_target.set_agent_tzrgn('IC-Server:3938','America/Buenos_Aires');
    >
    >PL/SQL procedure successfully completed.
    >
    >SQL>
    But I still have the same trouble with EM Console startup... After rebooting my server, I got this error:
    IC605 on IC-Server: emctl status dbconsole
    Oracle Enterprise Manager 10g Database Control Release 10.2.0.2.0
    Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
    http://IC-Server:1158/em/console/aboutApplication
    Oracle Enterprise Manager 10g is not running.
    Logs are generated in directory /u01/app/oracle/product/10.2.0/IC-Server_IC605/sysman/log
    IC605 on IC-Server: emctl start dbconsole
    Oracle Enterprise Manager 10g Database Control Release 10.2.0.2.0
    Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
    http://IC-Server:1158/em/console/aboutApplication
    - An instance of Oracle Enterprise Manager 10g Database Control is already running.
    IC605 on IC-Server:I must to stop and then to start it "again" to be able to use the EM.
    Have you any idea?

  • Auditing in oracle 10g database and oracle 10g application server

    Dear friends,
    We have oracle 10g application server and oracle 10g database server in place.My criteria is to audit users connected using oracle application user credentials to the database.
    Can you please tell me how can i do it.
    Thanks & regards,

    Its the database connection you want to track. The session audit will show where it came from.
    Auditing is turned using this command:
    alter system set audit_trail = DB scope=spfile;
    Note: The use of spfile will require a DB bounce before audit starts
    To audit Sessions:
    audit create session;
    Query by Audit Type:
    SELECT A.USERNAME,
    OS_USERNAME,
    A.TIMESTAMP,
    A.RETURNCODE,
    TERMINAL,
    USERHOST
    FROM DBA_AUDIT_SESSION A
    WHERE USERHOST = <replace with iAS servername> ;
    By User
    SELECT USERNAME,OBJ_NAME,ACTION_NAME , TIMESTAMP
    FROM DBA_AUDIT_TRAIL WHERE USERNAME = 'SCOTT';
    Check for users sharing database accounts
    select count(distinct(terminal)),username
    from dba_audit_session
    having count(distinct(terminal))>1
    group by username;
    Attempts to access the database at unusual hours
    SELECT username, terminal, action_name, returncode,
    TO_CHAR (TIMESTAMP, 'DD-MON-YYYY HH24:MI:SS'),
    TO_CHAR (logoff_time, 'DD-MON-YYYY HH24:MI:SS')
    FROM dba_audit_session
    WHERE TO_DATE (TO_CHAR (TIMESTAMP, 'HH24:MI:SS'), 'HH24:MI:SS') <
    TO_DATE ('08:00:00', 'HH24:MI:SS')
    OR TO_DATE (TO_CHAR (TIMESTAMP, 'HH24:MI:SS'), 'HH24:MI:SS') >
    TO_DATE ('19:30:00', 'HH24:MI:SS');
    Attempts to access the database with non-existent users
    SELECT username, terminal, TO_CHAR (TIMESTAMP, 'DD-MON-YYYY HH24:MI:SS')
    FROM dba_audit_session
    WHERE returncode <> 0
    AND NOT EXISTS (SELECT 'x'
    FROM dba_users
    WHERE dba_users.username = dba_audit_session.username);
    Other audits you might consider:
    audit grant any object privilege;
    audit alter user;
    audit create user;
    audit drop user;
    audit drop tablespace;
    audit grant any role;
    audit grant any privilege;
    audit alter system;
    audit alter session;
    audit delete on AUD$ by access;
    audit insert on AUD$ by access;
    audit update on AUD$ by access;
    audit delete table;
    audit create tablespace;
    audit alter database;
    audit create role;
    audit create table;
    audit alter any procedure;
    audit create view;
    audit drop any procedure;
    audit drop profile;
    audit alter profile;
    audit alter any table;
    audit create public database link;
    Best Regards
    mseberg

Maybe you are looking for