Tracking the name of the column that is changed
hi
How i can track the following information about a table
say i hve the table name tab1 which is like this
col1 col2
1 2
Now if i change the value of col1 by a trigger i can track the change value but how can i track the name of the column
say in the table tab2 i am tracking the result
changed_col_name changed_val prev_val
now changed val and prevval can be tracked by trigger but in the column changed_col_name how i can track the name of the column which i changed?
Thanx in advance
You are being rather unclear here.
If you change the name of a column your trigger will need to be amended. I don't think you're actually asking to track changing actual column names.
What you require is to track value changes and want to know how to assign which value to which column.
each value is associated with a column, therefore if you track that the 5th value in your value clause has changed that means that the column that is affected is the 5th column in your column list.
A simple if block would do the trick.
But probably a better suggestion is to store the rows in a history table.
Each time theres a change insert into the history table (which has its key column based on a sequence or a timestamp)
Then to see whats changed you can merely compare the current row to the previous row
Similar Messages
-
DBMS_CDC find only the columns that are changed along with the primary key in the table
Hello,
We are having a requirement to find the change data in the production environment.
We are planning to use the DBMS_CDC utility.
But for example in the create change table 1 picked emp_id,ename, address, salary,dob.
I have a sample data of
empid
ename
address
salary
DOB
1
test1
24 test street
2000
20-Jan-98
2
test2
25 test street
2500
15-Aug-97
if ename for empid 1 is changed to test1_test3 from test1.
My CDC is capturing the values in the old and new values in the 5 columns.
But i need to get only the empid (primary key of the source table) and the ename column as only that's been updated not the rest of the 3 columns.
Can i accomplish this.
Please advice.Hello,
Thanks for the information.
but if i change the change table then i will miss the other columns right?
I want to get the columns( empid and ename) only if ename is changed. i.e when ever any column in emp table changes i need to get all the columns where the data is changed along with the primary key columns empid.
Is there any way i can tweak the parameters so that i can achieve this or is there any other way using the cdc i can get this data.
Thanks -
How to find the Column data type changes in table
Hi All,
I need to find out the column data type changes where made recently in table .
How do i check past changes in column data type. Any data dictionary are there to find out the data type changes in the column .
Thanks in advance..<FONT FACE="Arial" size=2 color="2D0000">
You have the answer on hand (user_arguments / all_arguments)!
SQL> desc user_arguments
Name Null? Typ
OBJECT_NAME VARCHAR2(30)
PACKAGE_NAME VARCHAR2(30)
OBJECT_ID NOT NULL NUMBER
OVERLOAD VARCHAR2(40)
ARGUMENT_NAME VARCHAR2(30)
POSITION NOT NULL NUMBER
SEQUENCE NOT NULL NUMBER
DATA_LEVEL NOT NULL NUMBER
DATA_TYPE VARCHAR2(30) --> Data Type
DEFAULT_VALUE LONG
DEFAULT_LENGTH NUMBER
IN_OUT VARCHAR2(9) -->Argument direction (IN,OUT,or IN/OUT)
DATA_LENGTH NUMBER
DATA_PRECISION NUMBER
DATA_SCALE NUMBER
RADIX NUMBER
CHARACTER_SET_NAME VARCHAR2(44)
TYPE_OWNER VARCHAR2(30)
TYPE_NAME VARCHAR2(30)
TYPE_SUBNAME VARCHAR2(30)
TYPE_LINK VARCHAR2(128)
PLS_TYPE VARCHAR2(30)
CHAR_LENGTH NUMBER
CHAR_USED VARCHAR2(1)
Look for Data_Type where IN_OUT say OUT. That will be the data type retruned by that function.
Edited :
or POSITION in argument list,or null for function return value
-SK
</FONT> -
I want to move a list from one SharePoint site to another, within the same collection. I have created a template and included the content but the column that is selected to append changes to existing text, has not copied in all cases, although it has for
some items.
I have a limited knowledge so won't be able to implement any solutions that require the use of code.Hi,
According to your post, my understanding is that you wanted to copy a list from one site to another that has a column that appends changes to existing text.
I recommend to use the custom workflow activity Copy List Item Extended Activityto
copy list items and files cross site.
You can do this with codeless SharePoint Designer workflows as long as you can install the
Codeplex Custom SharePoint Designer Workflow Activities.
These activities are also built-in to SPD2010.
To install the custom activities, please follow the steps as below:
Download the solution file form
Useful Sharepoint Designer Custom Workflow Activities
Copy the wps file to the Disk C.
Open the SharePoint 2010 Management Shell.
Run the command: add spsolution c:\ dp.sharepoint.workflow.wsp
Open the Center Administration, click System Setting->Manage Farm Solution-> dp.sharepoint.workflow.wsp->Deploy to one or more Web Application.
Open the SharePoint designer, add action from Custom Actions.
Best Regards,
Linda Li
Linda Li
TechNet Community Support -
The device, an Ocean Optics spectrometer in columns of about 9000 cells.I'm saving this as a lvm file using the "write to measurement file.vi". But it doesn't give me the flexibility as far as I can tell.
I need to move the column by the index of the for loop, so that when i = n, the data will take up the n+1 column. (the 1st column is used for wavelength). How do I use the "write to spreadsheet file.vi" to do this? Also, if I use the "write to spreadsheet file.vi", is there a way one can increment the file name, so that the data isn't written over. I like what "write to measurement file.vi" does.
I'd really appreciate any help someone can give me. I'm a novice at this, so the greater the detail, the better. Thanks!!!You cannot write one column at a time to a spreadsheet file, because a file is arranged linearly and adding a column would need to move (=read and rewwrite elsewhere) almost all existing elements to interlace the new data. You can only append new rows without having to touch the already written data.
Fields typically don't have fixed width. An exception would be binary files that are pre-allocated at the final size. In this case you can write columns by setting the file positions for each element. It still will be very inefficient.
What you could do is append rows until all data is written, the read, transpose, and write back the final file.
What you also could to is build the final array in a shift register and write the entire things to file at once after all data is present.
LabVIEW Champion . Do more with less code and in less time . -
Track the qeries that accessed a particular object during a time period
HI,
I have a list of objects on my schema and i need to track the list of sql queries by different users that accessed by object during this time period.
i haven't enabled any auditing yet.
is there any way i can get that list of queries and their schemas that accessed those particular objects during a particular time period.
Can someone guide me please.
Thanks in advance.
Philip.Too bad you don't have a version number. Oracle functionality changes from version to version and in some versions you can do this and in some you can not.
Look here for one way to accomplish the task:
http://www.psoug.org/reference/dbms_fga.html
Here for another:
http://www.psoug.org/reference/audit_vault.html
Here for another:
http://www.psoug.org/reference/dbms_logmnr.html
Consider posting more information when asking questions in the future. -
Changing name on a column that is (linked to item)
Hi all-
I have a list in SP 2010 that has a column titled "Issue ID" (linked to item). It shows up as the first column when I view my list. I am trying to change the name from Issue ID to Risk ID. When I go into List Settings, the column
does not show up at all. If I go into "Edit View" for the main view, the column displays (I can check and uncheck it to determine if I want it to show up in my list) but I cannot find a way to change the name. What am I missing??
Thanks.Amy Hi,
If you just want to change the column heading in your view. It would easier to do it in sharepoint designer by opening the view and edit the heading.
Other way to do is to create a Risk ID column and create a workflow to populate the column from ID column.
I think Issue ID column linked to the item identity field column name ID.
Hope this helps!
Thanks, -
Deselect radio buttons except the one that execute change
Hey!
Im curious how to improve this code;
if(this.rawValue == true){
radiobtn1.rawValue = 0;
radiobtn2.rawValue = 0;
radiobtn3.rawValue = 0;
into a function that unchecks all radio buttons except the one that you checked as true.
Thank you!I put radio buttons on the stage drag-and-drop style, rather
than have them generated at runtime, and no I don't have any code
to remove previous instances. I'll try adding code to add and
remove those as the script runs and see what I come up with. I'm
still an incredible newbie, so even though I know what I want to
happen it takes me a while to figure out how to code it. -
My ipod has lines on the screen and will change color. It also is not responding to my touch. What can i do?
Try:
- Reset the iOS device. Nothing will be lost
Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
least ten seconds, until the Apple logo appears.
- Restore from backup. See:
iOS: How to back up
- Restore to factory settings/new iOS device.
If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
Apple Retail Store - Genius Bar -
How do i change my name in Leopard so that it changes it everywhere?
When first configuring my new MacBook Pro, it asked me for my name and i put in my First and Last name (so that it registers it correctly), but now every time i want to install something or it asks for a name, Leopard automatically places my first and last name into the fields (sometimes i can't even changed it).
I'm wondering how i am able to do so, i just want to use my first name, so that my last name is no longer on the system.
Thanks.
Saeid.
Ps. I have gone into account, and just set my first name, but still i see my whole name under networks (when selecting sharing)After you changed your account name, all of the password boxes only show your first name, right? To fix the networking issue, open System Preferences and go to the Sharing Tab. Change the computer name at the top from John Doe's Computer to whatever you want. Hope this helps!
-
How to track the URL that comes from a referred page using XSQL Custom Handler
Hi,
I have a cold fusion page(say cf.cfm) that sent a request to xsql page(say test.xsql) and then xsql page displays results. I want to capure the URL of cf.cfm page and then after checking its host name and path name for correctness then want to display the test.xsql results.
Please let me know how can I capture URL of the refered page(cf.cfm) in the Custom Handler and then I want to extract host-name and path-name out of that url and on the basis of their values I want to display the result of XSQL page(test.xsql).
Regards
a2012req.getHeader("Referer") will return the referring url
-
Greetings!
First, thank you for looking at my question. I am trying to count the number of items that = "True" in DataSet2 and display them in the "Week" column in a table who is pointed to DataSet1.
I have a simple table that is set up something like this:
CDC Week |
[Week Number] from DataSet1
| Total
Count of Some Item |
[CountSomeField] from DataSet1
| [ Total of Row]
Count of Another Item |
[CountOfTrueItems] from DataSet2
| [Total of Row]
With the expected results:
CDC Week |
25
| 26 |
27 |
(n/a)
Count of Some Item |
10 |
20 |
30 |
(Expected 60 but not working yet)
Count of Another Item |
5 |
10 |
15 |
(Expected 30 but not working yet)
Instead I get:
CDC Week |
25 |
26 |
27 |
(n/a)
Count of Some Item |
10 |
20 |
30 |
(Not working yet)
Count of Another Item |
30 |
30 |
30 |
(Not working yet)
DataSet1 has a few columns including a "Week" column. DataSet2 has two columns, "WEEK" and "POS".
I need to count items when POS = "TRUE" in DataSet2 and group them on the "Week" column.
My current expression is =SUM(IIF(Fields!Pos_.Value = "True", 1, 0), "DataSet2")
And while this returns a value, it does not count (or sum) by each week. I am missing something...
Thank you for any assistance!
p.s. Sorry My html skills are not shining with the table formatting :(Hi,
Would you please provide some screenshots?
Work hard, play harder! -
Hello, I wanted to see if you can control which columns from a query get written to a excel spreadsheet. I have some items in my query that I do not want in the spreadsheet but need for my query, if that makes sense.
Thanks.
SteveThere are no parameters in the cfSpreadsheet tag to choose specific columns, however you can use a query of queries (About Query of Queries - ColdFusion English Documentation - Adobe Learning Resources) to get a query object with a subset of columns to pass to the tag.
-
I am using Snow Leopard and have created a movie in 16:9 format (SD not HDV) I created a movie which stays in the 16:9 format in fcp file, .mov fiule and MP4 file. I created an iDVD pane in 16:9 but when I play the movie in the iDVD preview window the iDVD pane switches to 4:3 and it burns the DVD in 4:3. How can I stop this so I get a16:9 DVD. Thanks for any help offered
James BowmanHi
As I see this I see two parts
• Howto go from FinalCut to iDVD
• Howto set iDVD right
In FinalCut Express (to 4) or Pro (to 6 - most probably 7 too)
• One has to set Anamorphic in the Browser window - menu columns
• Export as QuickTime movie .mov - NO QUICKTIME CONVERSION
In iDVD there are TWO places to set - WideScreen
- Start a NEW iDVD project - AND HERE SELECT WideScreen 16:9
- in Project - select Projectinfo
- now set WideScreen 16:9 - Here too
This use to work for me.
FOR FinalCut Pro-X - I have not a Clue - as I don't use it. SORRY
BTW - There is a good practice to before BURNING the DVD do
• Save as a DiskImage
• Test this by using DVD-Player tool
And if it is OK Size and All - then burn it by using
• Disk Util tool
• here set down burn speed to x4 or less (less burn errors = plays on more devices and better)
• Not using Memorex or NoName etc cheap media - as they usually DO NOT WORK as Video-DVDs
• I use Verbatim DVD-R as they play on more and even older DVD-players
Yours Bengt W -
Also, I can no longer find my "Recently Added" playlist. I have searched every title in my playlists and its no longer there. It's really frustrating because now if I want to listen to a new playlist that I've added new music to I have to really search for it. Please help! Thank you!
This worked. Yesterday after I logged out - I continued to try to figure it out, and came up with the same solution. I made a smart playlist with both types.
However, I had tried to drop those into the green purchased file yesterday and it would not accept them. Today it works.
Guess it is like a car. It makes a noise, and when you take it to the dealer, it stops making that noise.
I went and looked at all of the songs I had purchased. Some of the more recent songs say Protected. The first five I purchased just say "AAC audio file" but if you look at them in their file, they have the little lock icon on them, as the purchased and protected ones do.. So I dunno... ??
Thanks for the help.
Maybe you are looking for
-
Hi. before you read this, know a few things: I am not computer-stupid. I am not one of those confused people who screams at their computer when it doesn't work. I'm impatiant, but this time I didn't know I screwed up until it was too late. Okay? let'
-
Save Iview as excel/word/html
Is there a neat way of exporting an iview to xls/doc/html format? It could be server side too. So far I have explored possibilities with javascript ( shellExec command) but this seems to work for IE only. Also when I do a SaveAs for the iview the sav
-
How do I disable automatic update download and application?
I was on FF5 and went to Check for Updates ... then it automatically grabbed an update and asked me to restart. I didn't want the update... I just wanted to know if there was one available or not. I killed firefox hoping to avoid the auto-installatio
-
Problem while opening the PDF File in Enterprise Protal
Dear All, I have uploaded a PDF Document of around 30 pages in KM and made an iview to view that document but when i click on the iview the document is not opening properly and after sometime the Portal/system is getting hanged.But when i open the pd
-
Message language determination
How does the Message language get determined in the output (NAST-SPRAS)?