Trigger giving no output
hiii everybody,
i executed the trigger shown below on my system's local database ,but trigger is showing no output,where i m wrong ?any HELP HIGHLY APPRECIATED,thanks and trigger is shown below.
SQL> sho user;
USER is "SYS"
SQL> CREATE TABLE logonaudit
2 (
3 user_id VARCHAR2(30),
4 sess_id NUMBER(10),
5 logon_time DATE,
6 logoff_time DATE,
7 host VARCHAR2(20));
Table created.
SQL> CREATE OR REPLACE
2 TRIGGER logon_audit
3 AFTER LOGON
4 ON DATABASE
5 DECLARE
6 V_program varchar2(120);
7 BEGIN
8 SELECT UPPER(program)
9 INTO v_program
10 FROM v$session
11 WHERE audsid = sys_context('USERENV','SESSIONID');
12 if upper(v_program) in ('TOAD','SQLPLUS')
13 then
14 INSERT
15 INTO logonaudit
16 VALUES(
17 user,
18 sys_context('userenv','sessionid'),
19 sysdate,
20 null,
21 sys_context('userenv','host')
22 );
23 end if;
24 END;
25 /
Trigger created.
SQL> conn scott/tiger;
Connected.
SQL> conn /as sysdba
Connected.
SQL> select * from logonaudit;
no rows selected
SQL>
Edited by: 938946 on Dec 24, 2012 11:00 PM
Edited by: 938946 on Dec 24, 2012 11:01 PM
Hi,
As you are able to connect as SYS, you can query directly v$session and see that the value of PROGRAM column for sessions using SQLPLUS to connect to the database is sqlplus.exe. So, if you change, in your trigger, the condition if upper(v_program) in ('TOAD','SQLPLUS') by if ( upper(v_program) like '%TOAD%' or upper(v_program) like '%SQLPLUS%' ), you'll see insertion in the table logonaudit.
Similar Messages
-
How to trigger a TTL output with an analog input
Hello,
I have an apparatus for measuring the flame speed of various hydrocarbon/air mixtures. The chamber uses central ignition as the means for igniting the mixture. My goal is to film the ignition process with a high speed Phantom video camera. I control the ignition with an analog output signal from a SCC-68 DAQ. I would like to trigger the camera with the same signal that triggers the ignition sequence. The camera is triggered with one TTL pulse so ideally I would connect the output analog voltage signal to an input analog voltage port that would be used to trigger a counter output that generates one pulse.
I have a sample VI that triggers a digital pulse each time the analog trigger level is met and it works for what I am trying to do but I do not understand how the two channels are connected. I also can't figure out how to make the VI end after just one pulse. In the VI the digital counter is supposedly triggered using the /Dev1/ai/StartTrigger slot on the DAQ but nothing is connected to this slot.
I need to first figure out how to make the output_pulses_on_sine_wave.vi terminate after a single pulse is generated. Then I can try to incorporate it into the VI that I use to control the ignition and measure the temperature and pressure once the mixture is ignited.
John
Attachments:
output_pulses_on_sine_wave.vi 27 KBI am using the USB-6259, sorry for the confusion. I would be nice if I could trigger with an analog signal to the ignition system but it is controlled with a high voltage relay that operates when 12 volts are supplied to it. It really isn't a trigger as much as powering on the high voltage relay. To control it, I have a 12 V supply line that is switched closed using a SCC-RLY module. Could I somehow connect the 12 V supply to one of the buses and use a digital trigger to supply the 12V on command to the high voltage relay?
Thanks for the quick response. -
I am trying to look for sub programs that use the synonyms in the schema.I wrote the following query.But its giving strange output.
select usy.synonym_name, us.text, us.name, us.type
from user_synonyms usy, user_source us
where upper(us.text) like ('%' || usy.synonym_name || '%')
and usy.synonym_name in
(select synonym_name
from user_synonyms us
where us.synonym_name <> us.table_name
and table_owner = 'XYZ')
order by usy.synonym_nameOutput
synonym_name text
txn_deposit select pir_detail_txn.instrument_amnt
I wonder why txn.instrument is taken same as txn_instrument which is the synonym name??where name like 'txn_instrument'
give all outputs like
txn_instrument
txn.instrument
txn1instrument
txn2instrument .......
but
where name like 'txn\_instrument' escape '\'
gives only txn_instrument
~Praveen -
MCLH giving no output, Problem in Populating tables S091, S090
In out client system,
When we are trying to Run MCLH, it is not giving any output.
1. The tables S090, S091 are empty.
2. when we run the LIS( logistic information system )over all check, it came up with the following errors.
-Errors in field catalog
-Error in update rule
3. When trying to populate the tables S090, S091 through transactions LCO1 & LCO2 ( New setup for info structures S090, S091 ) its not happening.
Can any one suggest how to resolve this issue.
Thanks in advance,
Mallika Maktala.Hi Mallika ,
this is the problem with the Updating rule which u are defined . So better to cross check in SPRO tcode.
Regards
Prabhu -
Hi Gurus,
In R12 I ran Oracle reports with the output type as PDF. The report completing normal but the output was not coming. Only empty page is coming up.
When i ran the main query in TOAD it giving output. In the report itself i have set the policy context values.
If no data available means atleast heading and other columns would be displaying right, in my case the output file is 1KB size and nothing there in it.
Could you please help me to resolve the issue.
Thanks in advance
Regards,
SathyaHi Yuvraj,
The report was upgrading from 11i to R12. The same report was working fine in 11i.
In the report we have 2 date parameter as From_Date and To_Date.
In concurrent program definition the parameter was Date
In RDF the parameter was defined as String but in the query they used TO_DATE function to convert the string into Date.
Is there any other standard report errors? -
CRM_ORDER_READ giving no output when it is called in RFC.
Hi ,
I have written a FM in CRM which is to be called from R3 and further processing logic is there in R3.
I am facing problem when i call this function from R3..
I am getting no output in pridoc i.e. it is blank.
I have checked connection also it is woking fine .
To trace the problem i tried debug the program but when debugger goes in CRM , and starts processing CRM_ORDER_READ it is not giving output and gives short dump as connection closed ( no data ).
When i am pressing F6 on CRM_ORDER_READ to see the output it toggles between R3 and CRM.
And the guids for which the CRM_ORDER_READ is called in my program are valid and having corresponding data in tables.
Please help i am not getting what to do
Thanks.Hi,
from your explanation i understand that you have written an RFC enabled fm in CRM and in side that you are calling the fm CRM_ORDER_READ.
keep a break point in side the CRM_ORDER_READ fm. In thi fm there is another FM CRM_ORDER_READ_OW where teh actual fetching is done.
Make sure that that Guids are present in CRMD_ORDERADM_H and CRMD_ORDERADM_I tables because the fm first checks for these tables and is they are present then they will try to fetch the extensions like activity, opportunity,appointment, partners etc.
Aslo there are number of exporting parameters so check if you are using the correct exporting parameter to read the data.
If your problem persists then post your thread in CRM general or ABAP general forums for more visibility of your problem. -
Trigger special function output type through a custom program
Hi,
I have to trigger the special function output type from a custom program.
This custom program contains a BAPI and the output parameters of this BAPI are required as input to the second BAPI which is contained in the form routine of the special function output type.
I am not able to understand how to trigger the special function as I dont know how the nast-objky will be updated
and how the BAPI parameters will be passed.
Is this has to be done through a Idoc
Can anyone guide me on how to handle the above functionality.Hello,
I am not able to understand your requirement completely...
agree with above post....addition-
1. Transport medium would be '8 - Special Function' where one program would fire and that can be used for further processing.
2. If condition record are maintained and it is matching with parameters then output type with all transport medium would be called
Thanks -
Trigger Workflow using Output types
Hi,
How can we trigger a workflow using Output types ?
We have a Z-output type configured through NACE, which will be generated on shipment document creation, and then we should trigger our Z- workflow.
Please let me know how to achieve this fuctionality....
With Regards,
Arun.Solved....
Reference:
http://help.sap.com/saphelp_nw70/helpdata/en/c5/e4af23453d11d189430000e829fbbd/content.htm -
Video-out adapter (to S-video and composite) giving distorted output.
Recently, we had an anime-fest in my dorm, and we used my laptop (12 inch powerbook G4) with my TV-out adaptor, specifically from Apple (I didn't want to chain two adapters together). While it worked, after fighting with it for a while (the second display properties DESPERATELY need a time-out feature to restore previous settings), finally got it to work.
At which point I noticed that, while playing, the entire video would... shimmer, for lack of a better word. Watching the edge, it would distort slightly, constantly, related to what was being displayed at the time. To me, this seems to say that the analog-out processing is rather crappy, but I'm hoping there's either a way around that, or I got a bad adapter. Is there any hope?
This is all related to the composite output, I have no way to check the S-video out. However. I brought my desktop PC down the next time, and used its video-out (x800 pro. I love it), which worked flawlessly, so I know that it isn't the TV's input or the video file.*another bump*
Come on, anything? The distortion seems to be predictable, based on what's being displayed. In that case, this could be accounted for prior to anything even being sent to the display, and nullified. I don't suppose anyone has tried?
I know other TV-display adapters have similar issues, but this is larger than most. Something contradictory to Apple's trend. -
Format-number,decimal not giving desired output for PO Print report XSL-FO
Hi All,
My requirement was to get the Unit price in european format which is 10.000,00
Iam getting it as 10000,00 but the client needs the thousand's seperator.
if have used the decimal seperator but iam getting the Unit Price value as 'NAN' when i submit it for an international language like Italian or Spanish
This is what i have done
set the decimal format
<xsl:decimal-format name="euro" decimal-separator="," grouping-separator="."/>
<xsl:value-of select="format-number(UNIT_PRICE, '#.###,####', 'euro')"/>
This gives the desired output when i select the US language.
While submitting through the conc request
If i change the Numeric char to '.,' by clickin on Language settings..It works great
I have tried to use the replace function but the syntax is not correct
format-number(replace('UNIT_PRICE',',','.'), '#.###.###.###,####', 'euro')
Any Help would be greatly appreciated.
Thanks
MirzaHi Mirza,
I'm struggling having the same problem. Have you found any solution?
Best regards
Kenneth -
BPM Process trigger - giving error
Hi ,
I have created the WSDL file to trigger start process of BPM.
When i am executing the webservice from WSNAVIGATOR am getting the below error:-
process()
[EXCEPTION]
com.sap.engine.interfaces.webservices.runtime.RuntimeProcessException: Technical difficulties were experienced during process execution.
at com.sap.glx.adapter.app.ucon.UnifiedConnectivityAdapter.invokeProvisionedMethod(UnifiedConnectivityAdapter.java:1026)
at com.sap.glx.adapter.app.ucon.wsprov.GalaxyImplementationContainer.invokeMethod(GalaxyImplementationContainer.java:104)
at com.sap.engine.services.webservices.espbase.server.runtime.RuntimeProcessingEnvironment.process0(RuntimeProcessingEnvironment.java:730)
at
i have created one more wsdl file and running through the WSNAVIGATOR getting below error:-
Server Exception: Could not retrieve SDO HelperContext for service_id XXXX//STARTEVENT; nested exception is:
com.sap.engine.services.webservices.jaxrpc.exceptions.SOAPFaultException: Could not retrieve SDO HelperContext for service_id XXXXX/STARTEVENT
[EXCEPTION]
java.rmi.ServerException: Server Exception: Could not retrieve SDO HelperContext for service_id XXXX/STARTEVENT; nested exception is
Please help me on this.
Thanks in advanceManish,
Thanks for your information.
I have already tried both ways, including the mesage start trigger with WSDL and default service.(No luck on both scenarios, earlier it's was working fine perfectly).
We made some changes to WSDL, adding Few element as per our business logic.
Application it's not triggering the process.
Thanks
Praneeth -
I have a trigger defined as follows:
create or replace trigger TR_MY_TRIGGER after
delete or
update on member
begin
end;
At the end of the trigger I have a SELECT on the member table, the table on which this trigger is based. I get a mutating error: ORA-04091: table member is mutating
How can I get around this problem? I have tried to put the select in a procedure, but that does not work either. I have also tried to put pragma autonomous_transaction in the trigger, but to no avail.
Thanks
Edited by: user447219 on Nov 2, 2012 10:27 AM
Edited by: user447219 on Nov 2, 2012 10:28 AMuser447219 wrote:
At the end of the trigger I have a SELECT on the member table, the table on which this trigger is based. So when you select from the table do you know if you are getting the new or old values that are both present in a row level trigger? And which values do you want?
I get an error message: An error occured.ORA-20505| Error in DML| p_rowid=
You actually get a different error
http://docs.oracle.com/cd/E11882_01/server.112/e17766/e2100.htm#sthref1926
>
ORA-04091: table string.string is mutating, trigger/function may not see it
You are just hiding it and replacing it with that useless message to make troubleshooting and debug more difficult.
How can I get around this problem? I have tried to put the select in a procedure, but that does not work either. I have also tried to put pragma autonomous_transaction in the trigger, but to no avail.The mutating table error is like the safety catch on a gun that makes it go click when you aim it at your toes and pull the trigger. You should not work around it, it is trying to tell you what you are trying to do is not reliable. Autonomous transactions are not a fix for this.
You should read this and then find a different way to do whatever it is you need to do.
http://docs.oracle.com/cd/E11882_01/server.112/e25789/part_txn.htm#CHDJIGBH -
Report is giving wrong output while running in Background ?
Hi,
We have a report program which gives the correct output while running it in forground(or manually) but when we run it in backgroud it gives the wrong output. (The printout goes to the wrong printer.)
I've read in a SAP doc that:
NEW-PAGE PRINT ON even gives unpredictable
results when the print parameters are incomplete; and it suggested to use FM 'GET_PRINT_PARAMETERS to validate the print parameters before NEW-PAGE PRINT ON event . I tried the same but still our report is sending the printout to the wrong printer while running it in background.
Other events used in the program are AT NEW and AT LAST .
Can anyone confirm me NEW-PAGE PRINT ON, AT NEW and AT LAST events work correctly in background mode also.
Thanks,
Bhavanahi
good
NEW-PAGE PRINT ON should be work in the background also,check your syntax with the below syntax,if still it is going to the different printer in the background than check with the configuration setting of printer for the particular report that you r printing,sometime it happens that even in the foreground the correct printer ideanfies but in the background that same printer didnt identify.
NEW-PAGE PRINT ON
NEW-SECTION
PARAMETERS pripar
ARCHIVE PARAMETERS arcpar
NO DIALOG.
DO 440 TIMES.
WRITE (3) sy-index.
ENDDO.
NEW-PAGE PRINT OFF.
ENDFORM.
thanks
mrutyun^ -
Query not giving desired output
Hi
I have the following values for the varchar column
USR_UDF_STAFFID
SEC/116
SEC/842
SEC/820
SEC/843
SEC/590
SEC/604
SEC/014
SEC/849
SEC/866
SEC/601
SEC/602
SEC/1796
SEC/1888
SEC/444
SEC/167
SEC/760
SEC/885
434532
24244
YC/3456
YC/234
CS/4512
CS/345
I am running below query to get the max value.
select max(usr_udf_staffid) as STAFF_ID from usr where usr_udf_staffid like 'SEC/%'
Expected Output: SEC/1888
Actual Output: SEC/885
What's wrong with this simple query?
Pls help.hi Try this it will help
SELECT *
FROM usr
ORDER BY LPAD ( SUBSTR ( usr_udf_staffid
, 1
, INSTR (usr_udf_staffid, '/')
, 5 -- Max. characters before the /
, LPAD ( SUBSTR ( usr_udf_staffid
, 1 + INSTR (usr_udf_staffid, '/')
, 10
) -- Max. characters after the /
;Regards
Hitesh
Edited by: Hitesh Nirkhey on Jan 6, 2011 4:47 PM -
Isnumeric function is giving wrong output
please check the code below.
before converting I am validating the value is isnumeric or not. The Logic is giving isnumeric = 1 and when i am trying to convert to numeric it is giving me the error.
declare @CustPhone varchar(max)
set @CustPhone = '30927600,'
select isnumeric(@CustPhone)
select CONVERT(NUMERIC(15),ISNULL(@CustPhone,0))
Gani.pHi deve_gona
Yes, we are getting the value with the comma. When there is not comma it is working fine. But when there was a comma it is giving error.
Gani.p
then do a replace and then do cast
isnumeric will return 1 for few other characters also like , $ etc so its not fully reliable
see
http://beyondrelational.com/modules/2/blogs/70/posts/10803/enhanced-isnumeric-function.aspx
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
My Wiki User Page
My MSDN Page
My Personal Blog
My Facebook Page
Maybe you are looking for
-
Web Dynpro Application URL Host Name Not Correct
Hello, I am developing a web dynpro application in our development system but when I activate the application it gets a URL that points to our test system. When I test the application in HTTP Service (SICF) the URL for the development system is pass
-
Getting error while Archiving the IDOCS
Hello, i am using the archiving object IDOC. I am getting an error "Infostructure SAP_IDOC_001 contains error. When running the production Mode. I tried to run the same in Test mode there was no error. The error is occurring in the delete program. I
-
I cannot get scrabble to work on my ipod touch. It only works on my macbook. I've uploaded, deleted, reloaded and nothing seems to work. It asks for a password but will not let me in. Anyone else have this problem?
-
Resource pool selection enhancement in UCCX 7.0
Good day. The issue is with our current CSQ setup and available resource pool selection criteria. Just for your record here is how its currently configured. We have five languages based CSQ’s operating in our call centre and following is how they are
-
Help: How to make JDeveloper to connect to Oracle repository through CMAN?
Hi folks, I have a very dummy problem. I have JDeveloper on Linux. I have on Oracle SCM Repository in a database, which is across WAN. The database is accessible through connection manager. BUT HOW DO I EXPLAIN TO JDEVELOPER , that there is a Connect