How to get Source of DB Triggers
Hey All,
I want to get source code of Database Triggers from database.
I have Oracle8i (8.1.7) database then Metadata.get_ddl is not availabe. I also tried ALL_SOURCE, USER_SOURCE but I didn't get Complete Source Code of Database Triggers.
There any other way I can get Complete Source code of database triggers?
Thanks
How are you querying user_source?
column text format a60;
column name format a15;
SELECT name, text
FROM user_source
WHERE type = 'TRIGGER'
ORDER BY name, line;
NAME TEXT
DEPT1 trigger dept1
DEPT1 before insert on dept
DEPT1 begin
DEPT1 raise_application_error( num => -20107,
DEPT1 msg => 'Trigger error' );
DEPT1 end;
ODBC_EMP_TST TRIGGER odbc_emp_tst
ODBC_EMP_TST BEFORE INSERT ON emp
ODBC_EMP_TST FOR EACH ROW
ODBC_EMP_TST BEGIN
ODBC_EMP_TST INSERT INTO emp_log VALUES('X');
ODBC_EMP_TST END;Justin
Distributed Database Consulting, Inc.
www.ddbcinc.com/askDDBC
Similar Messages
-
How to get source table name according to target table
hi all
another question:
once a map was created and deployed,the corresponding information was stored in the repository and rtr repository.My question is how to find the source table name according to the target table,and in which table these records are recorded.
somebody help me plz!!
thanks a lot!This is a query that will get you the operators in a mapping. To get source and targets you will need some additional information but this should get you started:
set pages 999
col PROJECT format a20
col MODULE format a20
col MAPPING format a25
col OPERATOR format a20
col OP_TYPE format a15
select mod.project_name PROJECT
, map.information_system_name MODULE
, map.map_name MAPPING
, cmp.map_component_name OPERATOR
, cmp.operator_type OP_TYPE
from all_iv_xform_maps map
, all_iv_modules mod
, all_iv_xform_map_components cmp
where mod.information_system_id = map.information_system_id
and map.map_id = cmp.map_id
and mod.project_name = '&Project'
order by 1,2,3
Jean-Pierre -
How to get source in createResource() in IMutableNamespaceManager
Hi,
In my repository, I wrote my namespace manager by extending AbstractSubManager implementing IMutableNamespaceManager. In method
public IResourceHandle createResource(ICreateDescriptor cd){...}
I only see ICreateDescriptor, through which we can get RID of the object to be created (
cd.getDestinationDescriptor().getParentCollectionRid()
). But how to get the source object, from which the new object is created?
Thanks,
RayWell, I have implemented my own repository manager (say MyRepositoryManager). We have multiple instances of this repository manager. Now I wanna copy a resource from one instance to another, which will call createResource() (right?).
My question is, what value should I return for createResource()? I thought I need get the rid of the source object and the target folder path, so that I can create a new resource in the target folder, based on the source object.
Pieces of my code?
public IResourceHandle createResource(ICreateDescriptor cd)
throws ResourceException {
Test.log("We are now at createResource.)");
try{
IResourceFactory factory = ResourceFactory.getInstance();
Test.log("Rid: " + cd.getDestinationDescriptor().getParentCollectionRid().getPath());
if(cd.getLockInfo() != null)
Test.log("path1: " + cd.getLockInfo().getRid());
else
Test.log("lockinfo null");
String parentPath = cd.getDestinationDescriptor().getParentCollectionRid().getPath();
Test.log("Create: " + parentPath);
}catch(Exception e0){
Test.log("Error in getUser: " + e0.getLocalizedMessage());
return null;
Thanks,
Ray -
How to get source code in the video examples
I'm wondering how to get the source code, which used in the
video training. Thank you very much.I don't believe that the source code is available.... however
you can do what I am going to do. On my 2nd round of going through
this stuff I am going to try to re-create that system in the
videos. So far it seems each step and every line of code is
shown... though there may be some things I have to get creative
with. :)
Someone else posted a link to get a csv of the employees
info, which can be used to create an xml file for the tutorials. -
How to Get Source Code of Standard ESS Component.
Hi,
I need to implement SAP Note 904107, in ESS ( Personal Info.) package. However no tracks are maintained in NWDI for ESS.
Please suggest me from where I can get Source Code for Standard SAP Web Dynpro component VcPerFamilyBEReview .
I read in some blogs and its suggested to create Track in NWDI using ESS package which is deployed on server. Please provide detail procedure, doc. and links for this.
If any other approach is there to get sorce code please suggest.Hi,
VcPerFamilyBEReview component is found in the DC sap.com/essbefam
check these links to create track in NWDI
[https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0b2b146-5776-2910-4a8f-9b3190eab060]
[https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/7014086d-3fd9-2910-80bd-be3417810c6f]
[https://www.sdn.sap.com/irj/sdn/wiki?path=/display/java/netweaver%2bdevelopment%2binfrastructure%2b(NWDI)]
Regards,
vv -
Hi,
I need to know how get a source table name. I need to get a source table name and do some transformation. I am adding the step in IKM to do this and therefore need source table name in there.
<%=odiRef.getSrcTablesList("","[RES_NAME]","","")%> gives work table name (C$_0XXXXX) whereas actual source table name is expected.
Could someone please help?
Thanks.Hi,
May i add a point?
In IKM level, if u use this API it will always return u C$ table name only since for IKM C$ is the source. You need to capture and use this API in LKM level.
In LKM add a step in Command on target and technology as Jython and try the below code.
mySourceTable= '<%=odiRef.getSrcTablesList("", "[RES_NAME]", ", ", "")%>'
And later in IKM use this variable for ur transformation.
Thanks,
Guru -
** How to get Source File Name thru XSLT Mapping
Hi friends,
We require source file name after message processing (SXMB_MONI) in the output structure. We understad from Forums and blog 2664, this is possible thru UDF - DynamicConfiguration class. This UDF will work if we use message mapping. But, in our case we are using XSLT mapping. So, how do we call the same from Java Pacakage ? (Imported Archives). For writing java class separately, what are the changes to be made in the program?
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
String ourSourceFileName = conf.get(key);
return ourSourceFileName;
Kindly reply, friends.
Kind Regards,
Jeg P.Hi,
This is the example in this similar manner u have to call the method in which u have to write the code for picking the source file name.
<name>
<xsl:if test="function-available('javamap:concat')">
<xsl:value-of select="javamap:concat($first, $last, $inputparam)"/>
</xsl:if>
</name>
for reference check the Link,
http://help.sap.com/saphelp_nw04s/helpdata/en/73/f61eea1741453eb8f794e150067930/frameset.htm
Regards,
Phani -
How to get source payload using MessageID during runtime
Hi Friends
I have a requirement to re-process a successful message from PI as we are receiving an error in its application acknowledgment . For this we are planning to take the source payload of that successful message (for which application acknowledgment is erroneous) and planning to reprocess that as a file again. For this we are in a need to get the source payload using the Message ID, If we have the parent message ID how can I get the source payload of that successful message.Hi Suman,
Your requirement is not very clear to me. But whatever i understood is that you need source payload.
You can go to sxmb_moni transaction and double click on your message (you can got your message either by date and time filter or by checking the namespace and sender and receiver interfaces)
Inside message at left hand pane you can see XML message -> inbound message-> payloads
Inside payload you will find main document. Now here you can see source xml. Right click on the xml and select view source and copy it.
I hope it helps. Let me know if something is unclear
Regards,
Shradha -
How to get source code for WinCE 6.0 USB Camera Driver for ARM4I Processor
Hi,
I am implementing USB camera driver for my mini2440 board which has an ARM4I processor. The sample code
"Windows Embedded CE 6.0 USB camera Driver" downloaded from:
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=2ef087c0-a4ae-42cc-abd0-c466787c11f2
does not support ARM4I processors. When trying to generate in VS2005 Platform Builder my WinCE 6.0
image for mini2440 with the Third party catalog items "MJPEG Decompression Filter" and "USB CameraDriver",
the linker giver errors. Please advise where to find a working source code for USB (now revision 1.1
("full-speed") is supported in my WinCE 6.0 image) camera for my ARM4I processor. The code should
be in C# but C++ will be fine also.
Thanks,
Pauli get this on the hyperterminal when i run the cameradshowapp.exe
Compulab Windows CE NAND X-Loader for CM-T35
Built Dec 20 2009 at 16:48:16
Version 1.01.222
Commit Date 16/12/09
Jumping to bootloader
Microsoft Windows CE Bootloader Common Library Version 1.4 Built Dec 20 2009 16:
46:16
INFO:OALLogSetZones: dpCurSettings.ulZoneMask: 0x200b
Texas Instruments Windows CE EBOOT for CM-T35, Built Dec 20 2009 at 16:48:10
Version 1.01.222
OMAP3430 Version 0x4b7ae02f (Unknown)
TPS659XX Version 0x10 (ES2.x)
-OEMPinMuxSetup....
System ready!
Preparing for download...
INFO: Predownload
+FMD_Init
Checking bootloader blocks are marked as reserved (Num = 6)
+FMD_Init
WARN: Boot config wasn't found, using defaults
+FMD_Init
OALFlashStoreOpen: 4096 blocks, 64 sectors/block
OALFlashStoreOpen: 2048 bytes/sector, 14 reserved blocks
Calling LCD_TurnOn
+FMD_Init
+FMD_Init
BLConfigureFlashPartitions: dwBootPartitionSectorCount = 0x5fff, partition actua
l size =0x4d3a!!!
Hit space to enter configuration menu 5...
Hit space to enter configuration menu 4...
Hit space to enter configuration menu 3...
Hit space to enter configuration menu 2...
Hit space to enter configuration menu 1...
INFO: Boot Device location = 0x8000020
Load NK image from flash memory
+FMD_Init
ROMHDR (pTOC = 0x823b8c28) ---------------------
DLL First : 0x4001c001
DLL Last : 0x41c7c0d8
Physical First : 0x84001000
Physical Last : 0x863bbdec
Num Modules : 294
RAM Start : 0x863c0000
RAM Free : 0x863d5000
RAM End : 0x90800000
Num Copy Entries
Copy Entries Offset : 0x85256e38
Prof Symbol Length : 0x00000000
Prof Symbol Offset : 0x00000000
Num Files : 116
Kernel Flags : 0x00000002
FileSys RAM Percent : 0x00000020
Driver Glob Start : 0x00000000
Driver Glob Length : 0x00000000
CPU : 0x01c2
MiscFlags : 0x0002
Extensions : 0x84002020
Tracking Mem Start : 0x00000000
Tracking Mem Length : 0x00000000
NK Image Loaded
Launch Windows CE image by jumping to 0x80001000...
Windows CE Kernel for ARM (Thumb Enabled) Built on Apr 5 2011 at 17:47:22
+OEMInit
ýSETDATAOUT access is OK....
Forcing clean boot
MainMemoryEndAddress = 0x90800000
-OEMInit
+FMD_Init
Dumping registry defined VK
Row 0: 0x18 0x9 0x25 0x0 0x0 0x0
Row 1: 0x26 0xd 0x28 0x0 0x0 0x0
Row 2: 0x27 0x24 0x23 0x0 0x0 0x0
Row 3: 0x0 0x0 0x0 0x0 0x0 0x0
Row 4: 0x0 0x0 0x0 0x0 0x0
Row 5: 0x0 0x0 0x0 0x0 0x0 0x0
SMSC922x: Core Ethernet Init.
Lan9220 identified. ID_REV = 0x92200000
SMSC922x: MAC address = 00:01:c0:0a:a0:db
Lan9220 identified. ID_REV = 0x92200000
SMSC922x: MAC address = 00:01:c0:09:88:80
SDIO8686: Loading Driver [version = 38.p44]
SDIO8686: Reset with TPS GPIO 2 --> done
!!!Kernel mode PSL 'PRdr' de-registered!!!
!!!Kernel mode PSL 'HRdr' de-registered!!!
!!!Kernel mode PSL 'FRdr' de-registered!!!
EHCI USB Host: HcdPdd_Init+
[OTG] OMAPMHSUSBOTG::Init()+
OMAPMHSUSBOTG::PostInit(): Start.
DSPLINK Module (1.61.04) created on Date: Jun 24 2009 Time: 16:30:52
Display parameters:
Height = 0x280
Width = 0x1e0
HSW = 0x20
HFP = 0x8
HBP = 0x17
VSW = 0x1
VFP = 0x4
VBP = 0x3
DVI is not enabled
PixelClkDiv = 0x7
LogClkDiv = 0x1
ClkSelDSS = 0x5
TD035:: LCDTurnOn
TD035STEE1: Turned display on.
TD035:: Finished LCD VGA init
AUTOLAUNCH: Checking HKEY_LOCAL_MACHINE\Startup key for programs to run.
Can't open HKEY_LOCAL_MACHINE\Startup key.
[WiFi]: Firmware Version: 9.70.3.23
CCaptureFramework: Failed setting up the camera data.
CameraDShowApp: Initializing the camera driver list failed.CameraDShowApp: Retri
eving the driver list failed.CameraDShowApp: Selecting the camera device failed.
CameraDShowApp: Selecting the camera device failed.CameraDShowApp: Selecting the
camera device failed.CameraDShowApp: Selecting the camera device failed.CCaptur
eFramework: Retrieving the still stream config failed.
CameraDShowApp: Initializing the capture graph failed. -
How to get source table inside Template Mapping code template
Hi guys,
I have the following scenario, I have an table from external database and want to map it to an oracle table. This is done with Template mapping and I selected an Load code template on the execution unit that holds only the external table, this load code template will read row by row from source table and make the inserts into the flow table. I know that oracle use odiRef.getFrom() in order to construct the select statement from the external table. Because i need to do something custom i will need to have a list of the source tables inside the Load code template.
Is this possible?
P.S. I use owb 11gr2.
Regards,
Cipi
Edited by: Iancu Ciprian on Jan 11, 2011 10:58 AMHi Suraj,
Thx for your answer!
After posting the message i found in ODI documentation about odiRef other function and this I'm trying now to see if works, will let you know my results ...
I implemented an custom iterator that retrieves the data from an external source and pass it to INSERT commands to execute against flow table. In order that this iterator to work i need the source table name of the current execution unit. Then the iterator is using the that name to get the data from the external entity and retrieve it as an array of Objects, this array of objects will be inserted in the flow table.
Regards,
Cipi -
How to get Source code of a Schedular Java concurrent program in Payments
Hi Experts,
I am very new to Java Concurrent program.
I need java source code of a schedule java concurrent program.Following are the details of Executable.
Executable :Format Payment Instructions
Short Name :IBY_FD_PAYMENT_FORMAT
Application : Payments
Execution Method :Java Concurrent Program
Execution File Name:FDExtractAndFormatting
Execution File Path : oracle.apps.iby.scheduler
I searched in execution file path,but i am unable to find required java source.
Please someone help regarding this issue..
It's Urgent Issue.
Regards
AmarHi Srini,
Thanks for reply...
In the attached template of concurrent program "Format Payment Instructions", i need to add voucher number in the template.
How can i do this?how to decompile the executable?
It is a check printing.
Please give me suggestions..
Regards
Amar -
How to get Source Code out of SCA File
I have a SCA file comprising SAP Ecommerce 5 solution. What I want to achieve is to get all the source code out of it including the original directory structure. Unzipping it doesn't give me the required results and requires a lot of manual work creating directories and more unzipping.
I tried importing it into a Local SC in NWDS but it complains that " Import (into source SC) not possible: SCA doesn't contain DC sources".
I don't have access to NWDI at this point.Hi,
For getting the source code of the Business Package Content, follow the steps below:
1. Make sure Source Archive is available for the Business Package.
2. Create a NWDI Track, and include all dependencies (check SAP Note : 1080927 - Creating CMS Tracks for common Application Types )
3. Once you have track in place, you can import the Track into NWDS
4. In Development Configurations perspective of the NWDS you can see the track.
5. Now create Project from Inactive Workspace to start modifying the code.
Check the link for general links
http://wiki.sdn.sap.com/wiki/display/JDI/NWDIRelatedNotesandLinks
Hope this helps.
Cheers-
Pramod -
How to get source of remote html file.
i want to read the remote html file source
i don't have any physical / original path of the file
i have only the url path
example url : http://mydomain.com/myhomepage.html
using this url can i get the source of the file myhomepage.html
thanx
senthil.U can use java.io.*, java.net.* API
here goes a sample code
import java.io.*;
import java.net.*;
public class URLconnecting{
public static void main(String[] args)throws Exception{
URL url = new URL("http://www.yahoo.com");
URLConnection conn = url.openConnection();
BufferedReader reader = new BufferedReader(new InputStreamReader(conn.getInputStream()));
String line;
while( (line= reader.readLine()) != null) System.out.println(line);
reader.close(); -
hi there
i have about three JTables in my application, i have added ListSelectionListener to these tables to see if any selection was made on them.
Table1.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
ListSelectionModel rowSM = Table1.getSelectionModel();
//add listener to the table selection
rowSM.addListSelectionListener(this);
in the ValueChanged() method, i need to get the selection made on these tables.
public void valueChanged(ListSelectionEvent e)
how do i find out on which table the selection was made?
thank you.ListSelectionEvent.getSource(): returns an object. Check its type with instanceof :
if(e.getSource() instanceof JTable)
JTable sourceTable=(JTable)e.getSource();
... off you go...
} -
How to get source code from portal app
Hi,
I have a successful Web dynpro portal application running, which I would like to modify. We lost the source code. Is there any way that I can get the source code from the portal?.
Thanks and I appreciate your help.
/Sunita.Hi,
You can extract class files from app.jar and decompile it(.ear->.wda) but it is only generated classes without metadata. Metadata is stored in .wda file but format is not compatible with studio. That all options you have.
Go through the following links, it will be helpfull to you
Some of the solutions provided in it
[Re: Retrieve the source code from .EAR;
[Restore source code from ear file;
Regards
Raghu
Maybe you are looking for
-
Panda Cam not working in 10.3.9
I've been addicted to the San Diego Zoo's Panda Cam the last few weeks (http://www.sandiegozoo.org/zoo/expandastation.html) at home and at work. It works fine in 10.4.x with Safari (home G4 tower setup). It worked fine in 10.3.8 with Safari (work Pow
-
I already use iTunes for iPhone4, iPad and iPod classic. Can I add another iPhone4 now my wife has one? If I already set up an Apple ID for her, do I now need to keep the two separate or can I simply erase that Apple ID and put all devices and Itun
-
E-mail Alerts from Essbase Cubes
Hi, I have Essbase 7.1.3 windows server and We do lots of Cube processing through Batch Files. I would like to have an option to send email alerts to the business users once we are done with the processing. Say for example , I have a Deposits Essbase
-
Specifying nested element with two different XML Schema
Hello, I am trying to convert one xml file to another file. I figure data services would be great for this. My problem relates to how to have a source xml file with a certain xml schema be transformed to one of a different xml schema. I cannot build
-
Where is the WLSTUtil API documentation
I've been playing around with Python/Jython and WLST. But I cannot seem to find the API for the WLST commands. I can get code completion in eclipse that gives me all the possible commands for a certain variable for a dataSource say. But where are the