How to get added columns in the after DDL trigger?
As title, I want to get information, like name/type/.., about the added columns by sql statement "alter table *** add (***)" in the after ddl trigger. But looks like dba_tab_columns view doesn't include the added columns.
Thanks
Hi
Hi try other versions of the trigger like
create or replace trigger addl_trigger
after alter on schema
declare
TYPE attrs_cur IS REF CURSOR;
m_cur attrs_cur;
m_event varchar2(50);
m_user varchar2(50);
m_owner varchar2(50);
m_user1 varchar2(50);
m_type varchar2(50);
m_name varchar2(50);
m_column varchar2(50);
m_cnt NUMBER;
m_stmt varchar2(512);
number_of_modified_objects BINARY_INTEGER;
t ora_name_list_t;
begin
m_event:=ora_sysevent;
m_user:=SYS_CONTEXT('USERENV','SESSION_USER');
m_user1:=ora_login_user;
m_owner:=ora_dict_obj_owner;
m_type:=ora_dict_obj_type;
m_name:=ora_dict_obj_name;
if (m_type='TABLE' and m_event='ALTER')
then
execute immediate 'select count(*) from dba_tab_columns where owner=:1 and table_name=:2' into m_cnt
using m_owner,m_name;
insert into log values (m_cnt);
dbms_output.put_line('->'||m_cnt);
OPEN m_cur FOR 'select c.name from sys.col$ c, sys.obj$ o, sys.user$ u where o.obj# = c.obj# and o.owner# = u.user# and u.name=:1 and o.name=:2' using m_owner,m_name;
LOOP
FETCH m_cur INTO m_stmt;
EXIT WHEN m_cur%NOTFOUND;
insert into log values (m_stmt);
--dbms_output.put_line(m_stmt||'**************');
END LOOP;
end if;
but all versions continue to insert only the already existing columns. I think that Oracle actualize the dictionary first after this system event.
Bye, Aron
Similar Messages
-
How to get af:column in the bean using findComponent
Hi
I am getting null if I find the component using id in the bean. The component does exist in the JSP though. Can someone tell me how it can be done please? I am trying to set the header text in the bean.
<af:panelCollection id="pc1" inlineStyle="width:900px;">
<f:facet name="menus"/>
<f:facet name="toolbar"/>
<f:facet name="statusbar"/>
<af:table value="#{bindings.Invoice.collectionModel}"
var="row" rows="#{bindings.Invoice.rangeSize}"
emptyText="#{bindings.Invoice.viewable ? 'No data to display.' : 'Access Denied.'}"
fetchSize="#{bindings.Invoice.rangeSize}"
rowBandingInterval="0"
selectedRowKeys="#{bindings.Invoice.collectionModel.selectedRow}"
selectionListener="#{bindings.Invoice.collectionModel.makeCurrent}"
rowSelection="single" id="invoiceTable">
<af:column sortProperty="OrganizationName"
sortable="true"
headerText="#{bindings.Invoice.hints.OrganizationName.label}"
id="c16">in the bean
RichColumn crdWrtRfncolumn = (RichColumn)context.getViewRoot().findComponent("c26");
if(crdWrtRfncolumn != null){
log.info(">>>>> Column 2 " + ((RichColumn)context.getViewRoot().findComponent("c16")).getId());
crdWrtRfncolumn.setHeaderText(crdWrtRfndamountColumnLabel);
I refered
http://kr.forums.oracle.com/forums/thread.jspa?threadID=970889 and it is resolved. -
How to get Open Balance for the year and Total Ending Balance?
For a given account, how to get Open Balance for the year (Cumulative Ending Balance) and Total Ending Balance (Cumulative Ending Balance)?
Is there any function module available? or should I read from some tables? Please advice.Hello Paul,
You could try calling one of the following BAPIs - see which one meets your requirement. They are documented well so shouldn't be a problem finding out the correct one for your requirements.
BAPI_GL_GETGLACCBALANCE
BAPI_GL_GETGLACCCURRENTBALANCE
BAPI_GL_ACC_GETBALANCE
BAPI_GL_ACC_GETCURRENTBALANCE
BAPI_GL_ACC_GETPERIODBALANCES
BAPI_COND_VAL_DECRE_BALANCES
You might have to put in some of your own logic after the BAPI call to get what you want.
Hope this helps,
Cheers,
Sougata.
p.s. Also look at FM FAGL_GET_ACCOUNT_BALANCE
Edited by: Sougata Chatterjee on May 7, 2008 11:47 AM -
How to get summary columns in delimited text file
How to get summary columns in delimited text file
I am trying to generate a delimited text file output with delimited_hdr = no.The report is a Group above report with summary columns at the bottom.In the text file the headers are not getting repeated & thats ok.The problem is the summary data is getting repeated for each row of data.Is there a way where i will get all the data & summary data will get displayed only once.I have to import the delimited text file in excel spreadsheet.Sorry there were a typos :
When I used desformat=DELIMITEDDATA with desttype=FILE, I get error "unknown printer driver DELIMITEDDATA". When you look for help, DELIMITED is not even listed as one of the values for DESTFORMAT. But if you scroll down and look for DELIMITER it says , this works only in conjuction with DESTFORMAT=DELIMITED !!!!!!??!! This is in 9i.
Has this thing worked for anybody ? Can anyone please tell if they were able to suppress the sumary columns or the parent columns of a master-detail data for that matter ? -
Replacing System hard drive with a new one. How to get everything over to the new boot drive? Should I use Carbon Copy or does apple have a better untility to do this?
I can't get my current system drive (OSX 10.8.3) to start on the first try. I always have to shut down and restart again to finally see the Apple logo.
Have used disc utility to repair the disc and permissions several times and that works. The next time I boot up, it works fine and I get the apple logo, but then the second time I boot up, it's back to the blank screen again and it only boots after the second try. I have tried this repair three different times now always with the same result. Works right the first try (after the repair) then from the second time on it doesn't work. I just get the white screen until I reboot a second time.
Thinking I should change drives but what's the easist and best way to move everything over to the new drive so it will boot correctly with all my data on it. This is the system drive for a Pro Tools 10HD setup. MacPro 3,1 with 16 gigs ram and OSX10.8.3 on it.
Thanks for any help!If you have a time machine back up of your current drive you can do this
Shut down your computer, install the new drive. While the computer is off plug in the external hard drive that you have your time machine back up on. Hold Option key while the computer turnes on, let go of the option key once you get a grey screen. Shortly after you'll see a list of bootable drives, select the one that has your time machine back up on it and boot into that drive.
From there go into disk utility, format your new drive too, osx extended journaled ( I think, double check that, its been awhile since ive had to do this), hit format
Exit disk utility and then you can use time machine to copy all your exisit data to the new hhd and then your pretty much done.
There is also a program called Carbon Cloner that will do esentially the same thing however I've never uesed it. -
How to get LOV column's DISPLAY value in IR report?
Hi,
I would like to get LOV column's DISPLAY value to trigger another javascript function. Could you please provide any hint?
For example, there is one IR report with 2 column, DEPT_NAME & SHOW.
The DEPT_NAME type is LOV .
The SHOW column is one link image, when clicking it , I would like to fire a javascript to get DEPT_NAME 's display value.
I know I can use #DEPT_NAME# to get the return value of LOV. However, how to get current row's DEPT_NAME's display value?
Thanks in advance.
Ray
Edited by: 最爱用中文 on 2013-4-11 下午4:14Is there any way you can create a table join, instead of using LOV as your display type?
That way you can select the name of the department in your IR query, display it as text, and then easily reference it as #DEPARTMENT_NAME#, for example. -
I am using the window xp and firefox 6.
I watch the youtube videos online.
How I get that video from the catch folder and where that catch folder are situated in the window xp.''How can I view or retrieve a video from Firefox's cache''
To actually view/retrieve the file from the cache and its web address you can use
the "Cache Viewer" extension 32.8KB
* https://addons.mozilla.org/firefox/addon/cacheviewer/
* http://dmcritchie.mvps.org/firefox/firefox.htm#cacheviewer
For you to be able to view the cached file you would have had to have watched the entire file.
The latest version of the extension is 0.7b available in all versions you would have to override compatibility by any of these methods
* checking or pick up one of the xpi versions in the reader comments for Firefox 6.0
* extensions.checkCompatibility.6.0 set to False
*: http://kb.mozillazine.org/Extensions.checkCompatibility
* or with an extension "Add-on Compatibility Reporter" (84.0 KB) seems preferred in this group
*:https://addons.mozilla.org/en-US/firefox/addon/add-on-compatibility-reporter/
There are also extensions such as Video downloader 132.8 KB
* Download YouTube Videos + Flash Video Downloader / Download-Helper
*:https://addons.mozilla.org/firefox/addon/download-youtube-videos/
<br><small>Please mark "Solved" one answer that will best help others with a similar problem after you've tried several things.</small> -
How to get 2 columns data in One Column
Hi,
I have requirement like below
EName Sal
Smith 1000
Scott 2000
Miller 3000
I want to display this two column like as follows
Emp
Smith
1000
Scott
2000
Miller
3000
Thanks & Regards,
Hari BabuHi,
That's called Unpivoting.
In Oracle 11.1 (and higher) you can use the SELECT ... UNPIVOT feature. For details and examples, see the SQL Language manual: http://docs.oracle.com/cd/E11882_01/server.112/e26088/statements_10002.htm#sthref6810
In any version of Oracle, you can cross-join your table to any table or result set that has at least 2 rows, and use CASE (or DECODE) to get the results you want.
Remember that a column can only have 1 datatype: it's impossible to have a column that's a VARCHAR2 on some rows, but a NUMBER on other rows. You'll have to convert some data so that everything in the 1 output column has the same datatype. There's no way to express 'Smith' as a NUMBER, but you can convert all the NUMBERs to strings.
I hope this answers your question.
If not, post a little sample data (CREATE TABLE and INSERT statements), and also post the results you want from that data (if not what you posted already).
Post your best attempt at a query. Point out where it is getting the wrong results, and explain, using specific examples, how you get those results from the given data in those places.
Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
See the forum FAQ: https://forums.oracle.com/message/9362002 -
How to get form input in the same portlet using pageflow
Hi this is premkumar
i created 2 portlet in a portal how to get form input in the sampe portlet using
pageflow
help as early as possibleDo to the complexity of the program we need to run it with sequences. This is because we need to aquire data with DAQ until it reaches a certain point and then stop collecting so that it can do its process (only once for all times criteria is met), and then loop around till again collecting after DAQ drops back below certain point looking to once again reach that point. Another flat sequence is going outside of this where I want to put the prompt and have a user input to affect how many times that that the inner loop is run (No a For Loop instead of the while loop will not work either for other reasons).
I just want to know if after the program starts you can have a user input that will change the effect of the rest of the programs action based on the number inputed. -
HOW points get you privileges within the community
1. Create an account.
2. Receive welcome email: "Welcome to Apple Support Communities! ... "Participate: Check out the community by reading existing discussions and see what the latest buzz is about. Got answers? Post responses, enlighten the community, and earn points! See how points get you privileges within the community."
3. Go to link to see how points get you privileges.
4. Read what points are...
OK, so it explains how to get points and that they give you privileges, but no mention of how points get you privileges or link to that information. Not that I really care, but pointing it out. Is it just another "status" in our communities for people to feel good about [authoratative, look at me], or does it really provide something worthwhile relative to being helpful and providing Apple's support for them?Refer to ... 'More like this', this page, right hand column, bottom entry ... 'What's the benefit of accruing points in Apple communities'
Carolyn Samit's excellent answer details all the levels and the justification for taking part in community discussions.
Personally, simply scouting around the different sections is an education in itself and I would heartily recommend you to take an interest. -
Hi, I'm pretty new to itunes. I bought a song and it downloaded, but will only play the first 3 seconds? Any idea how I get it to play the rest of the tune?
I'd report the problem to the iTunes Store.
Log in to the Store. Click on "Account" in your Quick Links. When you're in your Account information screen, go down to Purchase History and click "See all".
Find the item that is not playing properly. If you can't see "Report a Problem" next to the entry, click the "Report a problem" button. Now click the "Report a Problem" link next to the item.
(Not entirely sure what happens after you click that link, but fingers crossed it should be relatively straightforward.) -
Adding Columns to the matrix in SAP B1 user form using Visual studio 2010
Hi,
Using Visual studio 2010, I have created a SAP B1 user form( b1f ) with one matrix.Matrix is having 5 columns. Its working properly. Later, I want to add few more columns. Then I added columns to the matrix as I have created columns initially. But, it does not saves.
i.e, Whenever I run, In B1 I could see only old columns. Newly created columns are not showing.So, I closed the .net project and opened again. Created columns are not showing in visual studio b1f itself. So, I created again and saved. But, its not saving.I tried it many times.
What I am missing?
Any help is appreciated.
Thanks in advance,
Parvatha Solai.NHi Parvatha,
Are you using B1 Studio? Anyway try to clean the solution first then rebuild it. This would re-copy files to the output directory, that contain your changes.
Best regards,
Pedro Magueija -
How to get maximal value from the data/class for show in Map legend
I make WAD report that using Map Web Item.
I devide to four (4) classes for legend (Generate_Breaks).
I want to change default value for the class by javascript and for this,
I need to get maximal value from the class.
How to get maximal value from the data/class.
please give me solution for my problem.
Many Thx
Eddy Utomouse this to get the following End_date
<?following-sibling::../END_DATE?>
Try this
<?for-each:/ROOT/ROW?>
==================
Current StartDate <?START_DATE?>
Current End Date <?END_DATE?>
Next Start Date <?following-sibling::ROW/END_DATE?>
Previous End Date <?preceding-sibling::ROW[1]/END_DATE?>
================
<?end for-each?>
o/p
==================
Current StartDate 01-01-1980
Current End Date 01-01-1988
Next Start Date 01-01-1990
Previous End Date
================
==================
Current StartDate 01-01-1988
Current End Date 01-01-1990
Next Start Date 01-01-2005
Previous End Date 01-01-1988
================
==================
Current StartDate 01-01-2000
Current End Date 01-01-2005
Next Start Date
Previous End Date 01 -
i deleted most visited, latest headlines, getting started, yahoo, youtube, apple in mozilla's folder,how to get it back like the first time i installed? thx
if you hid the menu bar and the navigation bar simply press the alt button, this will bring back the menu bar and form there you can right click and select which bars you want shown
-
How to delete a column from the table control in module pool?
Hi,
can any one please tell How to delete a column from the table control in module pool?
thanks in advance
warm regards
HareeshKumar Nhi hareesh,
I think it is better to hide it.
How to hide: You can check this link
Dynamic Hide column in table control
Maybe you are looking for
-
Powerbook keep freezing and closing application frequently. Please Help
Recently my laptop acting very strange. Whenever I am running a program, the program itself will automatically close and then a message box will pop out and asking me do I want to "close, re-open or report" It happens to me all the time regardless wh
-
How to read a local file using as3 in a flash object in HTML? [urgent]
My web site contains a flash object. I want to use as3 to read some local .txt file by getting the user directory of the file. i know AIR can support this by sth like: File.desktopDirectory.resolvePath but when i open a AIR file for this, it seems th
-
Nano 6th generation turn on button
I would like to know my ipod nano (6th generation) doesnt turn on. Actually the turn on button doesnt work. It seems like the button loose inside but at the same time when I connect to the power it works. What should I do? Thanks
-
Need help with HTTP keep-alive
Hi folks! I have this very simple web server and I would like to add keep-alive support. I've been trying to get my head around it for a while and could need some help (I found this question in the archive, but those replies didn't help)... This is m
-
I cannot download the newest iTunes software on my Windows?
Why can't I download the latest iTunes software to my Windows 7?