Levels of logs

what are the different levels at which logging can be done? Can we do it at fields' level or is it restricted to only table level?

hi,
We can do the logging at field level also..
http://help.sap.com/saphelp_erp2005vp/helpdata/en/2a/fa015b493111d182b70000e829fbfe/frameset.htm
Eg Prog
REPORT zvinay_cd .
DATA : lv_objectid TYPE cdhdr-objectid,
       lv_trnscode TYPE cdhdr-tcode.
DATA : lt_icdtxt_cnvxpracd TYPE TABLE OF cdtxt,
       ls_icdtxt_cnvxpracd TYPE cdtxt.
DATA : lt_n_xkdb_comp TYPE TABLE OF cnv_xkdb_comp,
       lt_o_xkdb_comp TYPE TABLE OF cnv_xkdb_comp,
       ls_n_xkdb_comp TYPE cnv_xkdb_comp,
       ls_o_xkdb_comp TYPE cnv_xkdb_comp.
ls_o_xkdb_comp-dlvunit = 'DFGDFG'.
ls_o_xkdb_comp-planrel = 'GDFGDF'.
ls_o_xkdb_comp-suppack = 'DFGDFG'.
*APPEND ls_xkdb_comp TO lt_o_xkdb_comp.
ls_n_xkdb_comp-dlvunit = 'DFGDFG'.
ls_n_xkdb_comp-planrel = 'GDFGDF'.
ls_n_xkdb_comp-suppack = 'DFGDFG'.
ls_n_xkdb_comp-orgsystem = 'CLR'.
*APPEND ls_xkdb_comp TO lt_n_xkdb_comp.
lv_objectid = 'CNVXPRACD'.
lv_trnscode = 'CNV_XPRA_KDB_COMP'.
ls_icdtxt_cnvxpracd-teilobjid = 'CNVXPRACD'.
ls_icdtxt_cnvxpracd-textart = 'VINAY'.
ls_icdtxt_cnvxpracd-textspr = 'EN'.
ls_icdtxt_cnvxpracd-textart = 'U'.
APPEND ls_icdtxt_cnvxpracd TO lt_icdtxt_cnvxpracd.
CALL FUNCTION 'CNVXPRACD_WRITE_DOCUMENT'
  EXPORTING
    objectid                      = lv_objectid
    tcode                         = lv_trnscode
    utime                         = sy-uzeit
    udate                         = sy-datum
    username                      = sy-uname
  PLANNED_CHANGE_NUMBER         = ' '
    object_change_indicator       = 'U'
  PLANNED_OR_REAL_CHANGES       = ' '
  NO_CHANGE_POINTERS            = ' '
  UPD_ICDTXT_CNVXPRACD          = ' '
    n_cnv_xkdb_action             = 'CNV_XKDB_ACTION'
    o_cnv_xkdb_action             = 'CNV_XKDB_ACTION'
  UPD_CNV_XKDB_ACTION           = ' '
    n_cnv_xkdb_comp               = ls_n_xkdb_comp
    o_cnv_xkdb_comp               = ls_o_xkdb_comp
    upd_cnv_xkdb_comp             = 'U'
    n_cnv_xkdb_xpra               = 'CNV_XKDB_XPRA'
    o_cnv_xkdb_xpra               = 'CNV_XKDB_XPRA'
  UPD_CNV_XKDB_XPRA             = ' '
  TABLES
    icdtxt_cnvxpracd              = lt_icdtxt_cnvxpracd.
IF sy-subrc NE 0.
  WRITE: 'not working'.
ENDIF.
Regards,
Sourabh

Similar Messages

  • How to set at the server level to log transport request in SAP ME

    Hi:
    when I do configuration in SAP ME, can I set at the system level to log for transport request ?
    so I can  use transport request for other client or server.

    Hi!
    There is no "transport request" in SAP ME, however, there is Configuration Data Transfer Export/Import activity which can export the data to ZIP file at the source site and then import that file at the destination site.
    CDT activity can utilize CTS+ as a transport channel but I would suggest ZIP file instead because the file can be edited manually in case of any issue or if you want to remove some data.
    For details, please consult this How-To Guide.
    Regards,
    Sergiy

  • What level suplemental logging requires to setup Streams at Schema level

    Hi,
    Working on setting-up streams from 10g to 11g db @ schema level. And the session is hanging with statement "ALTER DATABASE ADD SUPPLEMENTAL LOG DATA" while running following command - generated using DBMS_STREAMS_ADM.MAINTAIN_SCHEMAS.
    Begin
    dbms_streams_adm.add_schema_rules(
    schema_name => '"DPX1"',
    streams_type => 'CAPTURE',
    streams_name => '"CAPTURE_DPX1"',
    queue_name => '"STRMADMIN"."CAPTURE_QUEUE"',
    include_dml => TRUE,
    include_ddl => TRUE,
    include_tagged_lcr => TRUE,
    source_database => 'DPX1DB',
    inclusion_rule => TRUE,
    and_condition => get_compatible);
    END;
    The generated script also setting each table with table-level logging "'ALTER TABLE "DPX1"."DEPT" ADD SUPPLEMENTAL LOG DATA (PRIMARY KEY, FOREIGN KEY, UNIQUE INDEX) COLUMNS'".
    So my question is: Is Database level supplemental logging required to setup schema-level replication? If answer is no then why the following script is invoking "ALTER DATABASE ADD SUPPLEMENTAL LOG DATA" command.
    Thanks in advance.
    Regards,
    Sridhar

    Hi sri dhar,
    From what I found, the "ALTER DATABASE ADD SUPPLEMENTAL LOG DATA" is required for the first capture you create in a database. Once it has been run, you'll see V$DATABASE with the column SUPPLEMENTAL_LOG_DATA_MIN set to YES. It requires a strong level of locking - for example, you cannot run this alter database while an index rebuild is running (maybe an rebuild online?)
    I know it is called implicitly by DBMS_STREAMS_ADM.add_table_rules for the first rule created.
    So, you can just run the statement once in a maintenance window and you'll be all set.
    Minimal Supplemental Logging - http://www.oracle.com/pls/db102/to_URL?remark=ranked&urlname=http:%2F%2Fdownload.oracle.com%2Fdocs%2Fcd%2FB19306_01%2Fserver.102%2Fb14215%2Flogminer.htm%23sthref2006
    NOT to be confused with database level supplemental log group.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14228/mon_rep.htm#BABHHCCC
    Hope this helps,
    Regards,

  • Table level supplemental logging

    How is table level supplemental logging different from Database level supplemental logging? Is Database level supplemental logging required for enabling table level supplemental logging?
    I have done 3 test cases, please suggest!
    Case 1
    Enabled only DB level supplemental logging(sl)
    observations--->
    DML on all tables can be tracked with logminer.
    I find this perfect.
    case 2
    Enabling only table level supplemental logging
    Setting---->
    2 tables ---AAA(with table level sl) & BBB (without table level sl)
    Only DDL is recorded with the help of logminer & few of the operations are listed as internal.
    case3
    Enabling database level sl first & then enabling table level sl only on one table --->AAA & no table level sl on BBB
    observation---> All the tables DDL & DML are getting tracked--point is if this is getting the same result
    as DB level SL, what is the significance of enabling Table level SL? or am I missing something?

    I have the same experience: when database level supplemental logging is enabled, adding supplemental logging at the table level does not affect functionality or performance.  Inserting 1 M rows into test table takes 25 sec ( measured on target database ) with table level supplemental logging, and 26 sec without it.  My GoldenGate version is 11.2, Oracle database version 11.2.0.3.0
    If someone can show the benefit of having table level supplemental logging in addition to database level logging, I would very much appreciate.

  • Schema level and table level supplemental logging

    Hello,
    I'm setting up bi- directional DML replication between two oracle databases. I have enabled supplemental logging database level by running this command-
    SQL>alter database add supplemental log data (primary key) columns;
    Database altered.
    SQL> select SUPPLEMENTAL_LOG_DATA_MIN, SUPPLEMENTAL_LOG_DATA_PK, SUPPLEMENTAL_LOG_DATA_UI from v$database;
    SUPPLEME SUP SUP
    IMPLICIT YES NO
    -My question is should I enable supplemental logging table level also(for DML replication only)? should I run the below command also?
    GGSCI (db1) 1> DBLOGIN USERID ggs_admin, PASSWORD ggs_admin
    Successfully logged into database.
    GGSCI (db1) 2> ADD TRANDATA schema.<table-name>
    what is the deference between schema level and table level supplemental logging?

    For Oracle, ADD TRANDATA by default enables table-level supplemental logging. The supplemental log group includes one of the following sets of columns, in the listed order of priority, depending on what is defined on the table:
    1. Primary key
    2. First unique key alphanumerically with no virtual columns, no UDTs, no functionbased
    columns, and no nullable columns
    3. First unique key alphanumerically with no virtual columns, no UDTs, or no functionbased
    columns, but can include nullable columns
    4. If none of the preceding key types exist (even though there might be other types of keys
    defined on the table) Oracle GoldenGate constructs a pseudo key of all columns that
    the database allows to be used in a unique key, excluding virtual columns, UDTs,
    function-based columns, and any columns that are explicitly excluded from the Oracle
    GoldenGate configuration.
    The command issues an ALTER TABLE command with an ADD SUPPLEMENTAL LOG DATA clause that
    is appropriate for the type of unique constraint (or lack of one) that is defined for the table.
    When to use ADD TRANDATA for an Oracle source database
    Use ADD TRANDATA only if you are not using the Oracle GoldenGate DDL replication feature.
    If you are using the Oracle GoldenGate DDL replication feature, use the ADD SCHEMATRANDATA command to log the required supplemental data. It is possible to use ADD
    TRANDATA when DDL support is enabled, but only if you can guarantee one of the following:
    ● You can stop DML activity on any and all tables before users or applications perform DDL on them.
    ● You cannot stop DML activity before the DDL occurs, but you can guarantee that:
    ❍ There is no possibility that users or applications will issue DDL that adds new tables whose names satisfy an explicit or wildcarded specification in a TABLE or MAP
    statement.
    ❍ There is no possibility that users or applications will issue DDL that changes the key definitions of any tables that are already in the Oracle GoldenGate configuration.
    ADD SCHEMATRANDATA ensures replication continuity should DML ever occur on an object for which DDL has just been performed.
    You can use ADD TRANDATA even when using ADD SCHEMATRANDATA if you need to use the COLS option to log any non-key columns, such as those needed for FILTER statements and KEYCOLS clauses in the TABLE and MAP parameters.
    Additional requirements when using ADD TRANDATA
    Besides table-level logging, minimal supplemental logging must be enabled at the database level in order for Oracle GoldenGate to process updates to primary keys and
    chained rows. This must be done through the database interface, not through Oracle GoldenGate. You can enable minimal supplemental logging by issuing the following DDL
    statement:
    SQL> alter database add supplemental log data;
    To verify that supplemental logging is enabled at the database level, issue the following statement:
    SELECT SUPPLEMENTAL_LOG_DATA_MIN FROM V$DATABASE;
    The output of the query must be YES or IMPLICIT. LOG_DATA_MIN must be explicitly set, because it is not enabled automatically when other LOG_DATA options are set.
    If you required more details refer Oracle® GoldenGate Windows and UNIX Reference Guide 11g Release 2 (11.2.1.0.0)

  • Setting privilege level for logging into ASA through ACS

    Hi!,
    In my environment i implemented AAA for logging into switches, routers, asa etc through ACS which is being configured TACACS+.
    I have set different privilege levels like readonly, readwrite etc into ACS. There are working fine when i try to login into switch or router.
    But in ASA i am unable to restrict the privilege levels of different users.
    Can someone plz guide me with ASA & ACS setting to solve this issue!!!!!

    Hi!!
    I tried this option. It is working fine with routers & switches. But for ASA privilege access it is not functioning.
    I created 3 profiles in "Shared Profiles" & added 1 of them in Group setting & added users to this group with mentioning group authentication. This way i am able to control access to the switches & routers with proper privilege. But the same way when i tried to impolement ASA it's not happening.
    Can u plz check it out...

  • E-Recruitment - Requisition - Infotype Field Level Change Log

    Hi Experts,
    We are implementing SAP E-Recruitment, and would like to know how to capture the changes made in Requisition at infotype field level.
    For example: If a support team member is added/delete in the Requisition (Tab - Support Team), then these changes (NEW/DELETE) at the infotype field level are required.
    I have tried to maintain the infotype and the required fields in V_T582A, V_T585A, V_T585B and V_T585C. But didnt get any result when I executed the report RPUAUD00. Is there any additional configuration required for this?
    Please adivse.
    Thanks and Regards,
    Dinakaran R

    Hi,
    You can just to that with the infotype table log. Support team is stored in table HRP5131.
    Regards,
    Nicole

  • Building a hidden database level tracing log

    Hi,
    I am currently using oracle 8, does any one know how to create an automatically log file that keep track of who executive which sql query on what time and date?
    I need this becasue I would like to find some record that tells me what each user did to the database and which terminer and time they used.
    Thanks

    Oups looks like the formating did not show up corectly ... It should look like this :
    A�rien // The base level
              Planeur
              Parachute
              H�lico
              Fus�e
              ULM
              avion // An other level
                        militaire
                        tourisme
                        civil And :
    A�rien // The base level
              Planeur
              Parachute
              H�lico
              Fus�e
              ULM
              NEWOBJ // Here would have to be inserted the new object
             avion // An other level
                       militaire
                       tourisme
                       civil

  • Accessing trace level or logging flag from applet

    I need to do some performance tracking related logging from my applet. It will be decided at runtime whether the applet should perform logging or not. The logging should work for java plugin 1.4.x.
    The java plugin console provides the facility to set trace level and enable / disable logging. Is there some way I can access these values from my applet? Is it possible to access the PluginLogger from my applet ?

    Thanks for the reply.
    If I set a runtime parameter on the Java Plug-in Control Panel, I need to access it through my applet.
    I am not able to figure out how to access the runtime parameters from my applet.

  • Specific Level for Log

    Hi !
    Is this possible to define some new and specific log level for our own application, for example a TRAP level ?
    If yes:
    How is inserted this new Level in the existing ones ? if I want this TRAP level to be located between INFO and CONFIG, possible ?
    Thanks
    Regards
    Ludovic Maillet

    I asked this question because I saw this in the Javadoc (1.4):
    protected Level(String name,
    int value)Create a named Level with a given integer value.
    Note that this constructor is "protected" to allow subclassing. In general clients of logging should use one of the constant Level objects such as SEVERE or FINEST. However, if clients need to add new logging levels, they may subclass Level and define new constants.
    ??

  • How to control listener log levels with log.xml

    I'm running Oracle 11 and I am seeing tons of log.xml files being created, rotated, and renamed. Looking at the log.xml files, I'm seeing what appears to be rather excessive logging. It appears to be logging every single connection. Is there any way to control the logging levels for this file and/or decrease the number of log files kept in the rotation?

    I don't believe it is possible to disable part of the ADR activity. But I would be interested in your definition of "excessive logging."
    Are you seeing a specific performance impact or are you just seeing something different from 10gR2 (meaning the new ADR functionality)?

  • Increasing verbosity level of logs alert_orcl.log etc..

    Hi!
    How can I increase the verbosity of the log files in ../admin/orcl/*/
    especially alert_orcl.log and all the trc files in bdump subdirectory ?
    I tried to change the parameter "event" in init.ora without success.
    Thanks for you help.
    F.

    Hi Rattus,
    generally, the event parameters relate to specific events, not the database as a whole. Are
    you having a particular issue that you need help with?Actually I'm using a virtualization technology to checkpoint and restart oracle server (simple installation on a single node, with the default database).
    Everything's OK till the checkpoint, including the latter, but at restart it fails (the process tree is being rebuild but when the processes restart, they almost immediatly die with SIGSEGV, leaving core file), and something might badly be restored.
    I'm trying to find according to oracle what is bad, ressources corrupted (shm, memory etc), timeouts that occurs, specific checking made that fails etc...
    The logs at restart, at failure time are the following (extract of alert_orcl.log):
    Wed Dec 5 11:29:12 2007
    PSP0: terminating instance due to error 472
    Instance terminated by PSP0, pid = 434281
    Wed Dec 5 11:29:12 2007
    Errors in file /opt/qa/qa1/s390x/oracle/product/10.2.0/db_1/admin/orcl/bdump/orcl_j000_569482.trc:
    ORA-00472: PMON process terminated with error
    Wed Dec 5 11:29:12 2007
    Errors in file /opt/qa/qa1/s390x/oracle/product/10.2.0/db_1/admin/orcl/bdump/orcl_reco_483445.trc:
    ORA-00472: PMON process terminated with error
    Wed Dec 5 11:29:12 2007
    Errors in file /opt/qa/qa1/s390x/oracle/product/10.2.0/db_1/admin/orcl/bdump/orcl_q001_856272.trc:
    ORA-00472: PMON process terminated with error
    extract of orcl_j000_569482.trc :
    error 472 in job queue process
    ORA-00472: PMON process terminated with error
    I would like to know what's wrong exactly, and that's why I would like
    to increase the verbosity level of these logs :-/
    If so, I'd recommed that you post in the database forum.Let me know if so :)
    Thanks,
    F.

  • Setting the debug level of log

    What do you set in order to get more verbose log messages from OC4J? I can't tell if things are going right ..

    http://www.orionserver.com/howtos/debug-tips.html
    I hope this link will give you some help!

  • OBIEE 11g Presentation Level Session Logging

    Hi All
    I have migrated OBIEE 10g to 11g in which everything is working fine.But when i am looking into the session for physical query in analytics ,iam getting the logical query . i.e. the query on the subject areas instead of the exact physical query.Can anybody help me in this to find my exact physical query.
    Advance Thanks

    Hi,
    Go to Manage> Identity> double click the required user > click on Permission Button > click on Data Filters tab > there select the required column,
    here year column > then set the filter year =2006,07,08.
    for another user follow the same steps then set the filter year= 2009,10,11.
    so when the user login he can only see the restricted data.
    please mark if Helpful/correct.
    Thanks,
    Tinku
    Edited by: 934322 on Feb 22, 2013 2:52 AM

  • Java.util.logging - Problem with setting different Levels for each Handler

    Hello all,
    I am having issues setting up the java.util.logging system to use multiple handlers.
    I will paste the relevant code below, but basically I have 3 Handlers. One is a custom handler that opens a JOptionPane dialog with the specified error, the others are ConsoleHandler and FileHandler. I want Console and File to display ALL levels, and I want the custom handler to only display SEVERE levels.
    As it is now, all log levels are being displayed in the JOptionPane, and the Console is displaying duplicates.
    Here is the code that sets up the logger:
    logger = Logger.getLogger("lib.srr.applet");
    // I have tried both with and without the following statement          
    logger.setLevel(Level.ALL);
    // Log to file for all levels FINER and up
    FileHandler fh = new FileHandler("mylog.log");
    fh.setFormatter(new SimpleFormatter());
    fh.setLevel(Level.FINER);
    // Log to console for all levels FINER and up
    ConsoleHandler ch = new ConsoleHandler();
    ch.setLevel(Level.FINER);
    // Log SEVERE levels to the User, through a JOptionPane message dialog
    SRRUserAlertHandler uah = new SRRUserAlertHandler();
    uah.setLevel(Level.SEVERE);
    uah.setFormatter(new SRRUserAlertFormatter());
    // Add handlers
    logger.addHandler(fh);
    logger.addHandler(ch);
    logger.addHandler(uah);
    logger.info(fh.getLevel().toString() + " -- " + ch.getLevel().toString() + " -- " + uah.getLevel().toString());
    logger.info("Logger Initialized.");Both of those logger.info() calls displays to the SRRUserAlertHandler, despite the level being set to SEVERE.
    The getLevel calls displays the proper levels: "FINER -- FINER -- SEVERE"
    When I start up the applet, I get the following in the console:
    Apr 28, 2009 12:01:34 PM lib.srr.applet.SRR initLogger
    INFO: FINER -- FINER -- SEVERE
    Apr 28, 2009 12:01:34 PM lib.srr.applet.SRR initLogger
    INFO: FINER -- FINER -- SEVERE
    Apr 28, 2009 12:01:40 PM lib.srr.applet.SRR initLogger
    INFO: Logger Initialized.
    Apr 28, 2009 12:01:40 PM lib.srr.applet.SRR initLogger
    INFO: Logger Initialized.
    Apr 28, 2009 12:01:41 PM lib.srr.applet.SRR init
    INFO: Preparing Helper Files.
    Apr 28, 2009 12:01:41 PM lib.srr.applet.SRR init
    INFO: Preparing Helper Files.
    Apr 28, 2009 12:01:42 PM lib.srr.applet.SRR init
    INFO: Getting PC Name.
    Apr 28, 2009 12:01:42 PM lib.srr.applet.SRR init
    INFO: Getting PC Name.
    Apr 28, 2009 12:01:42 PM lib.srr.applet.SRR init
    INFO: Finished Initialization.
    Apr 28, 2009 12:01:42 PM lib.srr.applet.SRR init
    INFO: Finished Initialization.Notice they all display twice. Each of those are also being displayed to the user through the JOptionPane dialogs.
    Any ideas how I can properly set this up to send ONLY SEVERE to the user, and FINER and up to the File/Console?
    Thanks!
    Edit:
    Just in case, here is the code for my SRRUserAlertHandler:
    public class SRRUserAlertHandler extends Handler {
         public void close() throws SecurityException {
         public void flush() {
         public void publish(LogRecord arg0) {
              JOptionPane.showMessageDialog(null, arg0.getMessage());
    }Edited by: compbry15 on Apr 28, 2009 9:44 AM

    For now I have fixed the issue of setLevel not working by making a Filter class:
    public class SRRUserAlertFilter implements Filter {
         public boolean isLoggable(LogRecord arg0) {
              if (arg0.getLevel().intValue() >= Level.WARNING.intValue()) {
                   System.err.println(arg0.getLevel().intValue() + " -- " + Level.WARNING.intValue());
                   return true;
              return false;
    }My new SRRUserAlertHandler goes like this now:
    public class SRRUserAlertHandler extends Handler {
         public void close() throws SecurityException {
         public void flush() {
         public void publish(LogRecord arg0) {
              Filter theFilter = this.getFilter();
              if (theFilter.isLoggable(arg0))
                   JOptionPane.showMessageDialog(null, arg0.getMessage());
    }This is ugly as sin .. but I cannot be required to change an external config file when this is going in an applet.
    After much searching around, this logging api is quite annoying at times. I have seen numerous other people run into problems with it not logging specific levels, or logging too many levels, etc. A developer should be able to complete configure the system without having to modify external config files.
    Does anyone else have another solution?

Maybe you are looking for