Logging table entries - periodic cleanup/archive
Hello All,
Currently we have the parameter rec/client turned on for config client to trace table entries change.
What job need to run/set up for periodically cleaning up logged table change entries in SAP?
If they is any transactions that can be called to run please let me know.
Any help gretaly appreciated with points.
Hi,
I dont remember the note number. but if you go to service.sap.com/notes: search for quaterly jobs or clean log jobs.. etc.. you'll find very good notes. Then apply them. I dont exactly remember the job name either.
Thanks,
Similar Messages
-
Change Log Table entries without Dates and How to Delete these entries !!
Hello Experts,
I was analyzing Change Log tables of some DSOs and figured out in some tables we don't have Date Column and some tables with date columns but many entries with "00/00/0000" date.
Any ideas on this ? Any idea how records can get into the table without dates and if SAP provides a safe way to remove them (without dates) ?
Many Thanks in advance, Please help.
Regards,
S. PatelHi Sunil
Date fileds 00/00/0000 means date are blank..that means either you did not get them from source system or the transformation is not mapped.
Do not delete change log selectively, that might affect your delta loads.
Rather delete old change log ...
From DSO administration ---use the main menu to choose Environment ® Delete Change Log Data.
For more information you can check the log below.
Cheers
Anindya -
Logging table for period open/close
Dear all,
does anybody know if the BCS maintains a logging table (history) or similar for the activity open/close periods within the Consolidation monitor.
Thanks in advance!
Jochen
Edited by: Jochen Röhr on Aug 3, 2011 2:23 PM
No ideas from our BCS-Experts?
Must be a typical question for all BCS application!!!Look at /1SEM/UCS* and UCL* tables, you might find some information.
-
Two entries for each archive log in v$archived_log
Hi,
I have noticied that there are two entries for each archive log. Why this is so...?
I have fired following command.
==================
set pages 300
set lines 120
ALTER SESSION SET nls_date_format='DD-MON-YYYY HH24:MI:SS';
SELECT sequence#, first_time, next_time
FROM v$archived_log
ORDER BY sequence#;
==================
output is as follows.
==================
1436 24-FEB-2012 00:04:09 24-FEB-2012 08:24:21
1436 24-FEB-2012 00:04:09 24-FEB-2012 08:24:21
1437 24-FEB-2012 08:24:21 24-FEB-2012 15:45:01
1437 24-FEB-2012 08:24:21 24-FEB-2012 15:45:01
1438 24-FEB-2012 15:45:01 24-FEB-2012 15:45:04
1438 24-FEB-2012 15:45:01 24-FEB-2012 15:45:04
1439 24-FEB-2012 15:45:04 24-FEB-2012 15:45:57
1439 24-FEB-2012 15:45:04 24-FEB-2012 15:45:57
1440 24-FEB-2012 15:45:57 24-FEB-2012 17:26:41
1440 24-FEB-2012 15:45:57 24-FEB-2012 17:26:41
1441 24-FEB-2012 17:26:41 24-FEB-2012 18:40:07
1441 24-FEB-2012 17:26:41 24-FEB-2012 18:40:07
1442 24-FEB-2012 18:40:07 24-FEB-2012 19:36:17
1442 24-FEB-2012 18:40:07 24-FEB-2012 19:36:17
1443 24-FEB-2012 19:36:17 24-FEB-2012 19:36:18
1443 24-FEB-2012 19:36:17 24-FEB-2012 19:36:18
==================
Regards
DBA.I have noticied that there are two entries for each archive log. Why this is so...?Mseberg already mentioned.. little in detail as below
Check for the name column in v$archived_log,
One location refers to Local destination LOG_ARCHIVE_DEST_1
Other location refers to your standby/DR location, But it will shows you only service name instead of full archive name.
select dest_id,name from v$archived_log where name is not null and completion_time like '%24%FEB%'
DEST_ID NAME
1 +ORAARCHIVE/prod1/archivelogs/arch_0001_0671689302_0000240097.arc
2 (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=sldb1srv)(POR
T=9101)))(CONNECT_DATA=(SERVICE_NAME=prod_sldb1srv_XPT)(INSTANCE_N
AME=prod1)(SERVER=dedicated)))Edited by: CKPT on Feb 24, 2012 8:26 PM -
How To See Change Log For A Table Entry
Hi Experts,
One entry is created in a table. I want to know, when that entry was created/ changed.
Is there a way to find it out.
PLZ NOTE: Table doesn't contain any DATE field.
RegardsHi,
or else do like this...
In order to maintain the log changes the main pre reuisite is to checkmark the checkbox in dataelement of table filed.
To do this...
goto transaction SE11>enter ur table name>cleck on fields tab>cleick on dataelement->click on Furthercharacterstics tab-->select the checkbox'Change Document'.
If u dont select dis the u cannot see the log entry of the particuylar field..Do like this for each dataelement for each table field...selecting all the fields is not mandatory..u can choose the table field u want to see the log report..
Once u done with dat...
Goto SCDO transaction> click on create>give a name change doc startwith Z or Y only>Follow the prodedure and in-->name of table field>enter u r TABLE NAME->click on individual field checkbox.--->insertentries..
Once u done with dis..
Goto SE16->enter CHDIR or CDPOS->press ENTER->enter u r object id>F8
U can see the new and old value of a table entry..... -
Delete Entries of Change Log Table
Can any one tell me when do we require to delete the content of the change log table of standard DSO. I am just fresher to SAP BI.
Thank YouHi
Deleting data from the change log for an ODS object is recommended if several requests, which are no longer required for the delta update and also are no longer used for an initialization from the change log, have already been loaded into the ODS object. If a delta initialization for the update exists in connected data targets, the requests have to be updated first before the respective data can be deleted in the change log.
Only a temporary, limited history is then retained. The change log can possible become so large you might want to reduce the amount of data volume and delete data for a specific time period.
How to Delete it
Since the change log is also stored as a PSA table, you can use the function for deleting data from the PSA to delete data from the change log.
In the ODS object administration, use the main menu to choose Environment -
> Delete Change Log Data.
Or
Go to the PSA tree.
Use the main menu to choose Settings -
> Display Generated Objects, so that you can display the InfoSource for your ODS object. Your InfoSource has the same name as your ODS object, along with the prefix u20188u2019.
Use the context menu to choose Delete Change Log Data.
Santosh -
Logging the entries daily into a Z table Vs Volume
Hi Experts,
Am working on a Billing EXTRACTing report, in this system approximately 1,000 invoices will be created per day.
After filtering the selection as per user selection criteria, approximately 200 (per day) invoices will be seleted by my report, but, functional guy(business analyst) is asking me to insert all these 200 per day into a Z table (say log table). But, am thinking it's not a good practise!! because adding/log these 200 entries per day to a Z table, dont know How big this Z table will become after 1 year!!
So, pls. suggest me Is there any other way/idea to get resolved this requirement?
Thank youSorry for not writing all my requirement in my posting.
Necessity: As soon as my prog. writes a Invoice record entry of VBRK into application server, I hv to create/insert a record with this Invoice into my Z table (which contains a Z field-say STATUS FLAG field), by adding a FLAG saying that, this Invoice sent to appication server (and there by to a legacy ssystem), say STATUS FLAG shuld populate with "S"-Successful....so that, next execution of my prog. will avoid/skip this Invoice re-sending again!!
Thank you -
Deleting data from a very large log table (custom table in our namespace)
Hello,
I have been tasked with clearing a log table in our landscape to only include the most recent entries. Is it possible to do this given that the table has already got 230 000 000 entries and will need to keep around 600 000 recent entries?
Should I do this via ABAP and if so, how? Thanks,
SamirHi,
so you are going to keep 0,3 % of your data?
If you should do it in ABAP or on the database is your decission.
In my opinion doing things on the database directly should be done
exceptional cases only e.g. for one time actions or actions that have to
be done very rarely and with different parameters / options. Regular
and similar tasks should be done in ABAP i think.
In any case i would not delete the majority of the records but copy
the records to keep in an empty table with the same structure, delete the
table as a whole (check clients!) and "copy" the new table back in ABAP
or rename the new table to the old table after droping the old table on the database.
If you have only one client you can copy the data you need in a new
table and truncate the old table (fast deletion for all clients). If you have
data to keep for other clients as well check how much data it is per client
in comparison to the total number of lines (if only a small fraction, pefer copying
them too).
On the database you can use CTAS (create table as select) and drop table and
rename table. Those commands shoudl be very efficient but work client independently.
If you have to consider clients SELECT; INSERT; DELETE or TRUNCATE (depends on if you have
copied all data considering clients) are
your friends.
Kind regards,
Hermann -
How to find out the changes made to the customized table entries
Hi Team
i want to know the changes made to the customized table. i have a 'Z' table in my production system, in that table i would like to know whether any table entry is deleted or not. if at all there is any deletion happened, i want to know who had done it.
So i request you to please let me know the procedure for the same.
Thanks
RajHi Nagaraju,
Go to Table Maintenance (SM30)- Display mode-- Utilities-- change Logs. Give the Date range. before giving the date range click on display status , this will show you If the display is active or not. Kindly please let me know If you need any more information on this.
Regards
Ram Pedarla -
Logical system entry for table entry
Hi,
After system copy from one system name to another , I am facing some inconsistenices in various tables.
The table entry can be seen in se16.But when I try to select entries from the same table using SELECT statement, table are not getting populated.
I ran the BDLS also . How do I check the logical system entried for table where I have inconsistent entries?
Thanks,
ChittaHello Chitta,
But when I try to select entries from the same table using SELECT statement, table are not getting populated.
what are you trying to populate?
If your question is, its not showing anything... what error message you're getting? are you trying to run in the DB level?
If you're getting error, that this object doesn't exist in the database then you might not be logging with correct user. its an SAP table, then its owner is the SAP schema user. If you login with the schema user, it should show in a normal select statement. But if you login with <sid>adm then you have to give the correct schema id before tablename.
select * from <SchemaID>.<tablename>
SchemaID may be sapr3, sapsr3, or sap<SID> depending on your release.
Regards,
Debasis. -
Error log table how to track the run details
Hi ,
I am using the log errors concept in oracle and recording the errors.
My table is employees and I used the
be low script to create the error log tables.
BEGIN
DBMS_ERRLOG.create_error_log (dml_table_name => 'employees');
END;
It has created a table called err$_employees;
I have run the procedure and the procedure has inserted some records into the table for unique constraint error .
but when i rerun the same job , again it has inserted the same records whcih has created a proble now .
How will i figure out that which records are from the first runa dn which are from the second run?
Also i want to fail my job based on entried in the error log table i created.
Is it possible to track whats records belong to what instance in error log table.
hope i am clear abt the requirement i'm looking for ?
thanks
sriIf you look at the documentation you will see you can tag records that are inserted in the error log table e.g.
insert into employees
select ...
from ...
where ...
log errors into err$_employees('My Run Identifier')
You need to construct the string used as a tag so you can identify your individual runs. -
SQL Developer 3.1.07 does not show a Tables entry under the Navigator
Installed SQL Developer 3.1.07. Under my Connections window, I log into the SYSTEM account. There is NO tables entry. SYSTEM has access to all tables in the database. It's the same behavior for other database users as well.
I re-installed SQL Developer 3.0.04 and a Tables entry DOES appear for the same SYSTEM user connected to the same database.Hi J,
I was under the impression that regardless of the Java version that my environment variables are setup to use,
the installation of SQL Developer (when you install with a JDK), that the JDK version installed with SQL Developer
is the one that is used.Exactly correct, unless you decide to override it in the conf file. I needed to be certain you did not.
Anyway, trying to resolve the problem, let's go back to a possibility that something went wrong with the migration of your preference settings. Here is an old thread discussing a missing Tables node in the Connection view (sometimes called the navigator tree):
Table node missing from navigator tree in 3.0.04
The poster had to rename the system directory containing these settings, then ignore the offer to migrate settings upon starting up SQL Developer again. If you never migrated settings in the first place, then I'm not sure what more to say -- probably would require additional research here in the forum. But if you did migrate settings, then try the following:
1. Export your connections (Connections node | right-click | Export Connections...)
2. Exit SQL Developer
3. Rename the directory to something else
4. Restart SQL Developer
5. Import your connections
That directory on my Windows 7 machine for the current production release is something like:
C:\Users\<username>\AppData\Roaming\SQL Developer\system3.1.07.42
Hope this helps,
Gary -
Team,
Table T77RCF_SMASK has reference to T77RCF_SMG_ASM.
When compared the two tables we found that following entries are missing in T77RCF_SMASK:
71
72
73
74
75
78
92
95
96
Can you please guide on what should be the entry for these in table T77RCF_SMASK? Would appreciate if full table entries are shown in answer for future users.
Missing entries are causing error "Customizing table T77RCF_SMASK contains no corresponding entry for SMASK_ID = 0071 and so on in SLG1 logs display.
Regards
YashThe table enteries should be as attached
Regards
Khalid -
Checking the contents of update function module log table
Dear experts,
I created several CALL FUNCTION ... IN UPDATE TASK lines and is curious about the contents of the update function module log table. How can I see its contents?
Thanks in advance.
Regards,
HarisHi Hari,
Use transaction SM13. This gives all the details
To view the details in SM13 switch on Update debugging before you call your update function module.
In debugger Settings --> Display / change Debugger settings --> Use the check box "Update Debugging" --> Press save button
So after COMMIT WORK statement, debugging will start with the update function module
During this time check the entries in SM13
Once the update is complete the entries will be removed from SM13 (Unless there is a failure)
I am not sure if there is option to view records in SM13 for which update is complete (No authorization to change settings in SM13). So i cannot check this
Regards
Rajvansh
Edited by: Rajvansh Ravi on Jul 24, 2011 3:52 PM -
The SYSVAL table entry for the database version (16) does not match the required version
We upgraded from Tidal Enterprise Scheduler (TES) 5.31 to 6.1 on fresh Windows x64 2008 R2 servers. I did a fresh install but our DBA restored a copy of our database from pre-prod which was at 5.31. I get the error below. Note, SQL went from 2005 to 2012 during this upgrade. Do I need to change a value in this table to reflect the SQL change?
[04/29 12:47:14:198]:TIDAL Enterprise Scheduler: version 6.1.0.133
[04/29 12:47:14:198]:Java version: 1.8.0
[04/29 12:47:14:198]:Java Virtual Machine version: 25.0-b70
[04/29 12:47:14:198]:Start Time : 04/29/14 12:47:14:198
[04/29 12:47:14:198]:----------------------------------------------------------------------------
[04/29 12:47:14:198]:Database URL :jdbc:sqlserver://SQL2012-Host:1433;responseBuffering=adaptive
[04/29 12:47:14:198]:Database Driver :com.microsoft.sqlserver.jdbc.SQLServerDriver
[04/29 12:47:14:198]:Maximum number of log files = 100
[04/29 12:47:14:198]:Added a LogFile called 'RegularFile'
[04/29 12:47:14:198]:LogManager: setting default log
[04/29 12:47:14:214]:Retrieved a LogFile called 'RegularFile'
[04/29 12:47:14:495]:MessageBroker: Instantiated TcpTransportServer (URI = tcp://0.0.0.0:6215)
[04/29 12:47:16:975]:Retrieved a LogFile called 'RegularFile'
[04/29 12:47:17:272]:The SYSVAL table entry for the database version (16) does not match the required version (23). Shutting down.
[04/29 12:47:20:282]:
[04/29 12:47:20:282]:
[04/29 12:47:20:282]:Shutting down the applicationI had this error last night while applying a patch to 6.0. However in my case the version was 21 versus a required version of 23.
As far as i know 6.1 is not compatible with the 5 db schema, so you will need an update / migration plan for the db also.
Maybe you are looking for
-
My mac is running extremely slow lately how can i clean it
my mac is too slow lately how can i clean it
-
How do I move photos from iphoto to a thumbdrive
How do I move pictures from iphoto to a thumdrive. The wood worker
-
GL account assignment in standard PO creation
Dear Experts: We need your kind help regarding the below issue: First we are creating a SO for a Z order type. After that we are creating a standard PO (NB) adopting the PR (automated created PR) of that SO. But when we take the PR as items of the PO
-
Issue with implementing Object Security in RPD (OBIEE 11g)
Hello All, I am following these steps to implement Object Security, but it doesn't work. Please let me know what am I doing wrong here: 1. I want to block a few presentation tables for the user 'weblogic'. 2. I open the RPD in online mode and in the
-
Why aren't you able to download audibooks from iTunes onto your iPhone?
Why can't you download audiobooks off your itunes onto your iphone?