Last time the table structure changed
What is the best way to find out as to when a table structure was last changed? (Like adding or modifying a column) ?
I queried LAST_DDL_TIME in the dba_objects view but the problem is that it stores the last time the table was truncated (using TRUNCATE TABLE table_name), as we do truncates often. I was interested in find out when the table was altered. Any ideas ?
Hi,
i think database trigger will do better according to your need....
its simple and best.
Just create a new table and database trigger.
Like
create table db_ddl_log
username varchar2(30),
ddl_date date,
ddl_type varchar2(30),
object_type varchar2(18),
owner varchar2(30),
object_name varchar2(128)
create or replace trigger db_DDL_Trigger
AFTER DDL ON DATABASE
BEGIN
insert into db_ddl_log
username,
ddl_date,
ddl_type,
object_type,
owner,
object_name
VALUES
ora_login_user,
sysdate,
ora_sysevent,
ora_dict_obj_type,
ora_dict_obj_owner,
ora_dict_obj_name
END;
now check it.
SQL> select * from db_ddl_log;
no rows selected
SQL> desc a
Name Null? Type
NO NUMBER
SQL> alter table a add (name varchar2(1));
Table altered.
1* select * from db_ddl_log
USERNAME DDL_DATE DDL_TYPE OBJECT_TYPE OWNER OBJECT_NAME
SYS 06-MAR-06 ALTER TABLE SYS A
SQL> truncate table a;
Table truncated.
sql> select * from db_ddl_log
USERNAME DDL_DATE DDL_TYPE OBJECT_TYPE OWNER OBJECT_NAME
SYS 06-MAR-06 ALTER TABLE SYS A
SYS 06-MAR-06 TRUNCATE TABLE SYS A
Thanks
Kuljeet Pal Singh
Similar Messages
-
Last time the table has been accessed flag
Is there any easier way to "log" when was the last time every table has been accessed than this ones:
-Audit all on every table and just check sys.aud$ when was the last time the table has a session rec (action# = 103)
-Place a trigger on every table to log the last access
If you wonder why I need it is beacause I have around 200 tables, some of them quite heavy, and probably half of them are not being used anymore so I want to backup and delete those tables from the database.
ThanksEasier than
audit select on table <your_table> by access;and later query DBA_AUDIT_TRAIL?
Don't think so. -
Table structure changes from PS HRMS 8.3 & 8.8 to PS 9.1
Hi,
Is there any delivered report (or) excel sheet explaining the table structure changes from PS HRMS 8.3 & 8.8 to PS 9.1
Any help on this highly appreciated.
Thanks
Soundappan
Edited by: Soundappan on Nov 1, 2012 7:04 PMI'm not sure to understand what kind of module you're talking about.
Anyway, there are several docs available in MOS which shows the features differences over the versions, have a look :
PeopleTools Cumulative Feature Overview Tool ID 793143.1*
But I didn't find any starting by your (very old) Peopletools version.
Nicolas. -
Ho to track table structure changes ?
Hi
I need to know how to track the table structure changes ?
I mean how to know when , which column was added/dropped/altered by which user for a table.
Is there any DD view for the same in Oracle??user572632 wrote:
Hi
I need to know how to track the table structure changes ?
I mean how to know when , which column was added/dropped/altered by which user for a table.
Is there any DD view for the same in Oracle??refer auditing
what is your oracle version?
refer
http://download.oracle.com/docs/cd/B10500_01/server.920/a96524/c25audit.htm
http://www.oracle-base.com/articles/10g/Auditing_10gR2.php
also check trigger,
http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_7004.htm -
Need to find last time a table was used.
I am in the process of cleaning out a group of staging tablespaces and I would appreciate some help finding the last time a table was used. (ie: records added, deleted, ect.) Is there an SQL statement that will do it? Any other suggestions?
I will Appreciate any assistance.How can I activate the auditing? http://download-east.oracle.com/docs/cd/B19306_01/network.102/b14266/auditing.htm#i1011984
Daljit Singh -
Revision: 7916
Author: [email protected]
Date: 2009-06-17 09:04:51 -0700 (Wed, 17 Jun 2009)
Log Message:
Last of the List PARB changes - selectedItems is now a Vector of Objects and selectedIndices is a Vector of Numbers.
Also, put alphabetized spark-manifest correctly after my last checkin.
QA: Yes
Doc: Yes
Checkintests: Pass
Modified Paths:
flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/List.as
flex/sdk/trunk/frameworks/spark-manifest.xmlGordon, it looks like its been a while since you made this post. Not sure how valid it is now... I am particularly interested in the LigatureLevel.NONE value. It seems that it is no longer supported.
How do I turn of ligatures in the font rendering?
My flex project involves trying to match the font rendering of Apache's Batik rendering of SVG and ligatures have been turned off in that codebase. Is there any way (even roundabout) to turn ligatures off in flash?
Thanks,
Om -
Revision: 16197
Revision: 16197
Author: [email protected]
Date: 2010-05-18 15:07:01 -0700 (Tue, 18 May 2010)
Log Message:
Config file changes to reflect the folder structure changes of libs and plugins
Modified Paths:
osmf/trunk/apps/samples/framework/DynamicStreamingSample/DynamicStreamingSample-build-con fig.xml
osmf/trunk/apps/samples/plugins/AkamaiPluginSample/AkamaiPluginSample-build-config.xml
osmf/trunk/framework/OSMFAIRTest/OSMFAIRTest-build-config.xml
osmf/trunk/framework/OSMFIntegrationTest/osmfintegrationtest-build-config.xml
osmf/trunk/framework/OSMFTest/OSMFTest.mxml
osmf/trunk/framework/OSMFTest/osmftest-build-config.flex
osmf/trunk/framework/OSMFTest/osmftest-build-config.flexcov
osmf/trunk/framework/OSMFTest/osmftest-build-config.xmlGrant,
It appears that in the past few days you have not received a response to your
posting. That concerns us, and has triggered this automated reply.
Has your problem been resolved? If not, you might try one of the following options:
- Visit http://support.novell.com and search the knowledgebase and/or check all
the other self support options and support programs available.
- You could also try posting your message again. Make sure it is posted in the
correct newsgroup. (http://forums.novell.com)
Be sure to read the forum FAQ about what to expect in the way of responses:
http://forums.novell.com/faq.php
If this is a reply to a duplicate posting, please ignore and accept our apologies
and rest assured we will issue a stern reprimand to our posting bot.
Good luck!
Your Novell Product Support Forums Team
http://forums.novell.com/ -
Number of Times the table has been accessed
Hi,
How to find the number of the times the table has been accessed or read ?
Regards,You can do it with 9i
http://www.mpi-inf.mpg.de/departments/d5/teaching/ss05/is05/oracle/server.920/a96521/audit.htm
Kamran Agayev A. (10g OCP)
http://kamranagayev.wordpress.com -
Is a new SI_ID created every time the InfoObject data changes in the CMS?
I'm trying to create a process that records the FRS file path and file name of every InfoObject created in the CMS and associate it with a timestamp and a friendly report name.
As this process runs the big question is does it need to crawl the entire CMS every time looking for changes in previously created InfoObjects or is a new SI_ID, and by extension new file path and name, created every time the InfoObject data changes in the CMS?
I'm hoping it is the latter. Obviously the actual SI_ID creation behavior changes the code quite a bit. Any help would be appreciated.
Thanks.Just want to make sure we're on the same page here.
If a User takes an infoObject and updates the file associated with an infoObject, then neither the SI_ID or the SI_CUID will change. Any changes to properties of the infoObject won't trigger changes to its SI_ID or SI_CUID value.
However, SI_UPDATE_TS will change with modification of the InfoObject:
http://devlibrary.businessobjects.com/businessobjectsxir2/en/en/BOE_SDK/boesdk_dotNet_doc/doc/boesdk_net_doc/html/QueryLanguageReference177.html
So that may be what you're interested in. Note that SI_UPDATE_TS is an indexed property in the CMS repository database, so a query that filters on SI_UPDATE_TS (such as SI_UPDATE_TS > '2006.02.02') wouldn't be too slow.
One danger to your scheme - it'll pick up updates to the InfoObject, but not to related InfoObjects (such as Web Intelligence - Universe relationships). Working out all the necessary relationships may be daunting.
Sincerely,
Ted Ueda -
How to tell the last time a table was updated
I know I could do this with a trigger, but I was wondering if there is a data dictionary view I can query to find the date/time a table was last updated. What I have is a table that is constantly getting hammered with new data being uploaded from a third party. We need to keep close tabs to verify that this datafeed is constantly running and bringing in new data. Because the data that comes in comes from multiple timezones and there are hundreds of lines, our attempts at monitoring by just looking at the data leave something to be desired.
Any ideas?blarman74 wrote:
I know I could do this with a trigger, but I was wondering if there is a data dictionary view I can query to find the date/time a table was last updated. What I have is a table that is constantly getting hammered with new data being uploaded from a third party. We need to keep close tabs to verify that this datafeed is constantly running and bringing in new data. Because the data that comes in comes from multiple timezones and there are hundreds of lines, our attempts at monitoring by just looking at the data leave something to be desired.
Any ideas?refer this links
How to find Last modified/updated time of a particular table
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:1590655700346557237
Thanks -
Can't change DataTable properties the first time the table is loaded.
Hi all!
I just want to change dynamically the value of columClasses in my DataTable with dataTable1.setColumnClasses(mystylesheet). It works fine when i use any link or button on my page, but the first loaded, the dataTable never change. I put my code in the constructor, in the beforeRenderResponse(), in afterRenderResponse(), without success.
Any idea ?Hi,
Here are the steps I followed:
1. Added the following lines in the stylesheet (created a new class)
.column-appearance {
background-color: cyan
2. Dragged and dropped a datatable
2. In the constructor of Page1.java added the following line of code
dataTable1.setColumnClasses("column-appearance");
3. Save and run the application
4. The datatable is rendered with the columns having cyan as the background color
Is it the same as what you are trying or having I missed out anything???
Cheers
Giri :-)
Creator Team -
Suggestion required in target table structure change
Hi all good morning,
I have one requirement. I have a target table T with some coulmns. Now I need to add one additional column to T and one procedure is there to populate the data for new column. This target table T is used by 50 mappings.my questions is if we change the structure of the table do we need to import(I think we must import). If we import what could be the impact of this re-import. do we need to rebound and validate alla the mappings and then deploy?
the other possibility what I can do is I will create a replica of T as T1 with one additional column. I will create a new mapping which dumps data from T to T1and I will replace my T with T1 in my reporting environment.
pls suggest which is good one. it is urgent.
thanks in advance.
VikiHello, if you don't need the new column in the 50 mappings, you can temporarily leave them alone (you say it's urgent), and just feed the new col..
When you have more time, you should reconcile the mappings with table T and re-deploy them. OMBPlus scripting is ideal for this task.
Hope this helps, Antonio -
Table Structure changed in Function Module
Hello All,
How to check the strcuture of the table " yrdb_tp10_map:
got changed in the following FM.
As its not working properly.
function yrdb_tp10_get_mapping.
""Lokale Schnittstelle:
*" IMPORTING
*" REFERENCE(VARIANTE) TYPE YDOMAENE
*" REFERENCE(DOMAENE) TYPE YDOMAENE OPTIONAL
*" REFERENCE(OLD_VALUE) TYPE YOVALUE OPTIONAL
*" EXPORTING
*" REFERENCE(NEUER_WERT) TYPE YNVALUE
*" TABLES
*" YRDB_TP10_MAP TYPE YRDB_TP10_MAP_TYPE
*" EXCEPTIONS
*" NOT_FOUND
*" WRONG_IMPORT
tp10_map Feld über Zustand der globalen internen Tabelle
g_yrdbtp10_map
Wert X Tabelle gefüllt
data: import(1) type c,
tab_in type i.
if tp10_map eq space. "interne Tabelle leer.
select * from yrdb_tp10_map into table g_yrdbtp10_map.
sort g_yrdbtp10_map.
tp10_map = 'X'.
endif.
prüfen der importparameter.
wenn import = 'initial' beide Importparameter sind leer
wenn import = 1 domaene gefüllt
wenn import = 2 domaene und old value gefüllt
wenn import = 3 nur old value gefüllt --> raise Exception wrong_import
if domaene(1) ne space.
import = '1'.
endif.
if old_value(1) ne space.
if import = 1.
import = 2.
else.
raise wrong_import.
endif.
endif.
Vorbereitung der Rückgabe
wenn import = 'initial' Rückgabetabelle vorbereiten Ebene VARIANTE
wenn import = 1 Rückgabetabelle vorbereiten Ebene Domaene
wenn import = 2 Einzelwert zurückgeben new_value
case import.
when space.
loop at g_yrdbtp10_map into yrdb_tp10_map
where variante = variante.
append yrdb_tp10_map to yrdb_tp10_map.
endloop.
describe table yrdb_tp10_map lines tab_in.
if tab_in le 0.
raise not_found.
endif.
when '1'.
loop at g_yrdbtp10_map into yrdb_tp10_map
where VARIANTE = VARIANTE
and domaene = domaene.
append yrdb_tp10_map to yrdb_tp10_map.
endloop.
if tab_in le 0.
raise not_found.
endif.
when '2'.
read table g_yrdbtp10_map into yrdb_tp10_map
with key VARIANTE = VARIANTE
domaene = domaene
old_value = old_value.
if sy-subrc eq space.
neuer_wert = yrdb_tp10_map-new_value.
else.
raise not_found.
endif.
endcase.
endfunction.go to tables statements -
> double click on the structure----> it will takes you to that structure -
Demantra PTP table structure changed in 7.3.X.X
The staging tables structure is changed in Demantra version 7.3 onwards as compared to Demantra 7.2.X.X. Some of the "Required" columns in "BIIO_Promotion" table which is used to load promotion data`has been removed in Demantra 7.3. And some more "Required" columns are added in "BIIO_Promotion" table.
The disappointing thing is that the implementation and user guide doesn't speak about it. How the implementer know, what type of values to load in these mandatory columns to populate the promotion data in Demantra.
Regards,
Milind...go to tables statements -
> double click on the structure----> it will takes you to that structure -
Table structure changed in testing system after system refresh.
Hi Team,
Recently we underwent a system refresh in Testing System where the Testing data is filled with Production data. But now we find that in one table some fields which we had deleted they are again found there. The version history of table is also gone. The table object was under testing in testing system and after which it was supposed to be transported to production. I believe System refresh only means refresh of data and it has nothing to do with table structure. Please correct me if I am wrong. Please also let me know what could be the reason of those changes in table if it is not System Refresh.
Regards,
AmitI believe System refresh only means refresh of data and it has nothing to do with table structure.
Alas, you were wrong, after all table definition are data too, as program sources...
You have to re-import every transport request which was not yet transported to production in your test system.
Regards,
Raymond
Maybe you are looking for
-
I have created a form through screen painter and converted it to xml for accesing it through asp.net.The xml file gives following error- An unhandled exception of type 'System.Runtime.InteropServices.COMException' occured in Project1.exe Additional
-
Does anyone have Gnome Shell up and running? If so, how did you do it?
Hi all! I've tried installing Gnome Shell via gnome-shell and gnome-shell-git in AUR and the guide over here: http://zazaq.com/2010/04/27/gnome-scree … 0-on-arch/ to no avail. The latter method actually compiles after a few minor tweaks, but after ru
-
In need of serious JFrame/Stringbuffer Help!
Basicly, it opens a GUI with a few buttons like "previous, last, first, next, add, exit" and i take 3 inputs from the user...from the JTextField. Those values are put in a file and are supposed to be read (i'm assuming that i use stringtokenizer) but
-
Photos :: adding to existing
How may I add new photos to my iPad without iTunes in the sync process deleting the photoa already in the iPad?
-
Hey Guys, I have built an analog clock in java using swing and gregorian calender. Now my professor wants me to add an alarm functionality to it. Any ideas of how to implement this into the already existing code. The folllowing is the code i have wri