How to compile external procedure for Linxu
Hello to all.
I'm not able to find how to compile external procedure on Linux.
I have 64bit release Linux (I don't know if I need special 64bit library or not).
I found only something like that:
gcc -fPIC -shared -o comsh64.so comsh64.c
Listener are correctly configured.
Library is in Oracle bin directory.
If I run select externproc from dual ... I don't receive any error message but program don't work.
I think that there is some missing parameter in gcc or some small thing ?
Thank you for possible answeer
Filip
Do you have someone any idea?
Now I have 1 library, 2 functions and 1 package with 2 functions:
int renamefile(char source, char destination)
{ int result;
result=rename(source,destination);
return result;
int comexi (char *c)
{ int ret;
ret = system(c);
return ret;
FUNCTION callSystemI(c in varchar2) RETURN binary_integer is
EXTERNAL LIBRARY extern_utils
NAME "comexi"
LANGUAGE C
PARAMETERS (c string);
function renamefile (src IN varchar2, dst IN varchar2) return binary_integer
AS EXTERNAL
NAME "renamefile"
LIBRARY extern_utils
LANGUAGE C
PARAMETERS (src string, dst string);
The first function still don't works, second function works.
Why?
Similar Messages
-
How to compile Oracle procedure throught ODI procedure
Hi
Can any one help me how to compile oracle procedure through ODI11g
I am awar of that, how to call oracle procedure in ODI and execute it.
Please help me
Regards,
PhanikanthYou want to know how to compile, or how to call, or both ?
I don't know for compilation, but call a procedure is simple.
You juste have to create an ODI Procedure and write the SQL statement like you do in a query editor. -
How to configure release procedure for rate contracts release
Dear all,
How to configure release procedure for rate contract following are the requirements
they are two release codes c1 & c2 <=100000,>=100000
if c1 is not there c2 has to be approved
Change in the value of the rate contract contract
Change in the validity of the rate contract
Addition of deletion of line items
While using a non u2013 released rate contract in the PO an error message should shoot out.
Also the logic should be changed while using the rate contract in the PO.
The usage of the rate contract should be till the validity of the rate contract. i.e. the measurement should be end date of the rate contract and the PO creation date and not the delivery date of the PO. &
It should be possible to refer existing valid rate contracts in purchase orders.
Regards,
bhaskarHi,
In SAP rate contract is known as value contract denoted with wk. The release procedure for rate contract is same as that of other contracts and scheduling agreements. The tables for contracts will vary with SA (Scheduling agreement) .You may try and maintain condition records based on the customer combination and maintian the validity date of condition records as per your requirement.For contract and PO will have the same header/item table as EKKO/EKPO, and the release
class in standard is the same FRG_EKKO, you can use the same for contract.
To distinguish if it's a contract or PO, EKKO-BSART can be used.
For contract EKKO-BSART will be MK or WK, while PO will have NB/UB etc..
You can restrict the document type to set up the release strategy for only contract.
Of cause, you can also create your own release class Z* for contract copying standard
one FRG_EKKO via CL01/Class type 032, and then assign the class Z* to customizing:
OLME:
-> contract
->Release Procedure for Contracts
->Define Release Procedure for Contracts
->Release Groups
If you have already created the PO release class.
Assign a new chracteristic of Document Category -BSTYP
Please check below link for detailed release procedure. I hope this wil help you out .Thanking you.
http://wiki.sdn.sap.com/wiki/display/ERPSCM/RELEASE+PROCEDURE#RELEASEPROCEDURE-TABLESUSEDFORRELEASEPROCEDURES -
HOW TO GIVE EXTERNAL NUMBER FOR ORG UNIT
HOW TO GIVE EXTERNAL NUMBER FOR ORG UNIT
Regards,
KumarHAI..
External number assignment
If you want the user to assign the numbers, enter "EX" in the 'NR' field. The number ranges are then indicated by the letters "EX".
Number assignment for plan version 10 / object type S: Subgroup 10S -
How to determine pricing procedure for invoice list
Hi ,
Could you pl let me know "How to determine pricing procedure for invoice list"
All other things are available i.e.
Create Condition Tables
Maintain access sequences
Maintain pricing procedures
Define condition types
Basically how the pricing procedure will be assigned for the Invoice list.
br
pinkyHi Pinky,
Create a billing doc type by coping std.(ZF1)
Assign invoice list to billing type Zf1
Now maintain a document pricing procedure (for Eg: Z )
Assign this to billing type in pricing control - document pricing procedure.
Now maintain the pricing procedure determination as per the sales area /doc pp/cust pp.
Also in copy control in VTFL maintain pricing type as " B".
REgards,
Krishna O -
How to compile my procedure.
create or replace procedure sp_trans_log(i_trans_id number) as
TYPE tab_trans IS RECORD
v_table_name varchar2(20),
v_mode varchar2(3)
TYPE tb_trans_tbl IS TABLE OF tab_trans INDEX BY BINARY_INTEGER ;
v_trans_tbl tb_trans_tbl;
begin
execute immediate 'select table_name,mode from transaction_detail where i_trans_id = 1'
bulk collect into v_trans_tbl;
FOR i IN 1..v_trans_tbl.COUNT LOOP
if v_trans_tbl(i).mode = 'I' then
-- My procedure is not getting compiled because of the below statement. The sql file gets executed based on
the no of records present in pl sql table . How to make the procedure a compiled one.
@C:\gaioscodes\jul20\thatinsert.sql v_trans_tbl(i).v_table_name;
end if;
if v_trans_tbl(i).mode = 'U' then
@C:\gaioscodes\jul20\thatupdatescript v_trans_tbl(i).v_table_name;
end if;
if v_trans_tbl(i).mode = 'D' then
@C:\gaioscodes\jul20\thatDELETE v_trans_tbl(i).v_table_name;
end if;
end loop;
end;Vinodh2 wrote:
begin
prompt set serveroutput on
end;
the above file is test.sql
i am writing a code as below:
begin
@c:\test.sql;
end;
"@", "prompt" and "set serveroutput on" are all SQL*Plus commands. You cannot issue these inside PL/SQL code.
Let's keep it simple and assume you have a script called "runme.sql" and it contains the following:
set serveroutput on
spool c:\tmp.output.txt
begin
my_procedure(123);
end;
spool offand the my_procedure procedure is like:
PROCEDURE my_procedure(p_value IN NUMBER) IS
BEGIN
DBMS_OUTPUT(TO_CHAR(p_value*p_value,'fm999999')); -- display the square of the number
END;and you want to put that into a procedure on the database.
Firstly, the "set serveroutput on" is an SQL*Plus command that enables the output buffer to be displayed if any code uses DBMS_OUTPUT to put out information.
PL/SQL has no user interface, so there is no such concept as a place where output can be displayed. Therefore we will just have to abandon the set serveroutput on statement for our PL/SQL
Next, "spool" is a SQL*Plus command that takes output and puts it into the specified file. PL/SQL doesn't have a native spool feature, but it does have packages that allow data to be written into files. e.g. UTL_FILE. So we can do something with that to convert it.
Next the procedure call. It simply does some calculations and outputs the data using DBMS_OUTPUT, which our SQL*Plus script is capturing and putting out to the spool file. Hang on though, we can't spool in PL/SQL so that procedure will have to be re-written a little.
So let's just put all that into our procedure and make life simple...
CREATE OR REPLACE DIRECTORY MYDIR AS 'C:\TMP'
PROCEDURE my_procedure(p_value IN NUMBER) IS
fh UTL_FILE.FILE_TYPE;
BEGIN
fh := UTL_FILE.FOPEN('MYDIR','output.txt','w',32767);
-- DBMS_OUTPUT(p_value*p_value); -- display the square of the number
UTL_FILE.PUT_LINE(fh, TO_CHAR(p_value,'fm999999'));
UTL_FILE.FCLOSE(fh);
END;
/This procedure now opens a file, writes out the data and closes the file again. No spooling, no server output using DBMS_OUTPUT, just all self-contained within the PL/SQL code.
Now, you need to do something similar with your own code. Take what you are doing in your scripts and put them into procedures and just have one procedure call other procedures as necessary. Stop confusing yourself by mixing SQL*Plus scipts and PL/SQL code. -
How to use external procedures in OWB Mapping
Hi,
Does anyone have an exmple of using external procdures in Mapping.
Thanks
mandiHi Mandi,
you can use Public and self created external Procedures/Functions in a Mapping.
You can integrate them in Expressions, e.g.
or use them as Post or Premapping in a Mapping.
It´s simple, just play a bit :-)
Only on a few Things you´ve to watch:
Every external Objects you want to use in a Mapping must be known in the Metadatas.
If you create a Mapping under the User scott,(e.g.), and you want to use
an external Procedures/Functions from the User Tiger,(e.g.), you must make sure
that theres a connection between these two Schematas.
For such things you can create a Connector in the Control Center.
Regards
Lone -
How to compile a procedure from Sql*Plus?
Dear friends,
I couldnt find the way how to compile my invalid procedure through sql*Plus.
I know this is very awkward,but I m in need of that command only.
Thanks
Ritesh SharmaPls check it --
SQL>
SQL>
SQL> @C:\RND\Oracle\Function\a.sql;
11 /
Function created.
SQL>
SQL>
SQL> start C:\RND\Oracle\Function\a.sql;
11 /
Function created.
SQL> Regards.
Satyaki De. -
How to write a procedure for update the table
Hi all
can any body please tell me how to write a procedure to update the table......
I have a table with about 10,000 records...........Now I have add a new column and I want to add values for that like
registration Code Creidits
13213 BBA
1232 MCS
I had add the creidit now i want to update the table.........the new value want to get by SQL like
Creidit = select creidit from othere_table...........
Hope u can understand my problem
Thanks in advance
Regards
Shayan
[email protected]Please try the following --
update Program_reg a
set TotalCreidit = ( select tot_cr <Accroding to your logic>
from Program_reg b
where a.Registration = b.Registration
and a.Enrollment = b.Enrollment
and a.code = b.code
where a.Registration in ( select distinct Registration
from Program_reg );
N.B.: Not Tested....
Regards.
Satyaki De. -
How to compile a dll for JNI in the CMD correctly
Now I find alot of old threads on using the mno command in cygwin to created dlls to use as an interface between c and Java, however I know this command is no longer available in cygwin and so I took the advid of downloading minGW and using this in the CMD instead.
However every example I try to compile and run this way throws the unsatified link error when the native function is to be called by the Java program. I believe it must be a compiling error creating a mismatch between the native function and the function to be called.
Here is the method I'm using to comile dlls for JNI, it is from the FAQ section of the minGw website:
gcc -Wall -D_JNI_IMPLEMENTATION_ -Wl,--kill-at
-Ic:/j2sdk1.4.1_02/include -Ic:/j2sdk1.4.1_02/include/win32
-shared someJavaImp.c -o JavaImp.dll
Is this how dll should be compiled? If not any suggestions?sudsey wrote:
I know how to program well in C and Java, I just need to know the proper way to compile a dll for JNI.1. Get the MS IDE
2. Create a dll project - it must NOT be a managed dll
3. All done. -
External procedures for RAC system
Hi Experts,
I have 4 nodes 11.1 RAC in red hat. I saw some node listener configuration with IP=FIRST and other nodes does not have IP=FIRST entry.
I made a search onlin and get statement as IP=FIRST at listening endpoints are for external procedures in the database.
I want to know which means is for external procedures in RAC ? does expert can show some example ?
Thanks
JImNo the IP=FIRST is not for external procedures. It is to restrict the listener to listening on the specific IP address specified not just the port on any address. This is explained in the NET SERVICES GUIDE
-
How to start approval procedure for a Document/Draft using DI API
Hi!
My code imports purchase orders from one non-B1 system to SAP B1 using DI API. The problem is that in B1 system there is an approval process configured and I need the newly created purchase order to enter this approval process.
Currently this is not done because approval procedure isn't triggered when creating documents using DI API.
I had an idea to create a draft of PO instead of the PO and then push this draft into approval process somehow. But I can't find a way how to tell DI API to start approval procedure for my draft/document.
Thank you for your replies!
JanUnfortunately there is no way to trigger the approval process for any object added through the DI API.
Your workaround of adding the documents as drafts is as close as you can really come but maybe you could extend it slightly - it will involve a UI API addon:
Make the addon mandatory, and add a UDF to the user table, for example "U_Approver" and a UDF to PO document, like "U_Approval"
- Set this U_Approval to yes when adding through DI and add as draft
- When user opens draft document in the application, check are they an approver (U_Approver = "Y")
- If they are not, and try to view/add a draft which is flagged as needing approval, block them from adding.
You could further expand your DI project to send a mail to the approver whenever a draft PO is added. -
How to format external drive for use against windows and mac
Hi.
Please bear with me, a possible MAC newbie here
I'm about to buy the 13" Mac Book Pro (after ditching the Lenovo X301 because of a super slow processor, slow FSB, slow intel graphics).
But I have a couple of questions before I buy this Mac Book Pro.
NOTE:
My main OS (stationary pc) is Windows, and will probably be so for a long time.
But I need a lightweight laptop while on the run, and could not actually find any other one than the Mac Book Pro that met my requirements.
I'm using Adobe Lightroom for indexing and managing images on my windows stationary computer and will also use Lightroom on my Mac Book Pro.
I'm to use an external HDD for this purpose and will need to be able to both write and read to/from that HDD from both MAC and Windows.
Export lightroom library to External HDD from Windows (thumbnails + keywords).
Import new images and edit keywords etc from mac book pro in lightroom.
Import changes into my windows library version after been edited from library in mac book pro.
What options do I have when it comes to formatting that HDD?
What will the PROS and CONS be for the different options?
Note (I'm not to switch to Aperture (my main computer is still Windows))
RegardsHi.. and thanks for that answer... another related here:
I'm to buy this external drive:
http://www.lacie.com/no/products/product.htm?pid=11038
This page:
http://pc.wikia.com/wiki/FAT32
tells me that windows XP will only format FAT32 to max 32GB,
will my upcoming MAC book PRO be able to format that whole disk using FAT32?
Or do I have to use something else to format it with?
Regards -
How to create Approval procedures for various departments
Hi Experts,
I want to create a approval procedures for sales , purchase, production and finance screens.
I am going to the Approval stages , there i am giving name, description and selecting authorizer and finally when i want to select the sales module under department , there i can see only general .
i cldnt see all the departments here. what is the reason? solution for this. PLease.
Thanks & Regards,
DwarakHi Dwarak,
Please specify the department in Administration --> Setup --> General --> Users and find the user code and then map the departments.
In the Approval templates Originator is where the users can be setup and in the select the required documents and map the create th Approval stage ( The user who authorises the document created by the originators)
Regards,
Rakesh N -
How to Configuring external certificate for MEP
Hi,
I want to configuring external certificate to my mep gateway tier , can any one tell me procedure how to configure the certificate.
I am configuring behind the firewall I cannot run default port no 8181 for https , so where can I change https port no for MEP after installation and I need to import external certificates in to keystore.Hi Jayanth,
Both issues you raise are GlassFish issues rather than MEP issues per se.
To change the port, after doing 'asadmin stop-domain mep' you just edit the
domain.xml file in the .../domains/mep/config directory manually. Search for
8181 and change it to whatever you want, then restart GlassFish (asadmin start-domain mep).
In the MEP Installation Guide, there is a section on establishing trust between
tier1 and tier2 in a two-tier configuration. See http://docs.sun.com/app/docs/doc/820-7203/ggxmb?a=view
Hopefully, you can generalize that procedure to your situation.
Maybe you are looking for
-
AP payment batch is running very slow
Dear All, We have an issue with AP payment batch, wherein the batch is unning very very slow. The DB is currently on 11gR2 with application on CU2. After having a close look into it we have seen an SQL ID dq3nnqyx0u7ht. Please help us if any patch is
-
How to Increase Number of Images from 500 in a LR3 Flash Gallery
I noticed people asking (and I myself needed to know) so I thought I would explain how to increase the number of images (from 500) in a Flash gallery in Light Room 3 1. I exported a Flash gallery from LR3 and it capped the gallery at 500 images. 2.
-
Help with saving movie (external hard drive)
Hello, I am using iMovie for the first time and am converting a VHS tape to DVD. I have a cord going from the VCR to a digital camcorder, in turn going to my iBook for iMovie, and then onto a 150 gig external hard drive that has all 150 gigs availabl
-
How do I reverse page order in Preview?
Is there a way to reverse the page order when viewing a pdf in Preview. It opens with the last page first, I assume to accommodate printing. But it's a hassle when it comes to viewing onscreen. Preferences doesn't seem to offer the option to reverse
-
Hello, I'm currenntly facing some problems with my application. I have developed a passwordframe for an application and what i like to do is after the user keys in 3 trys of the password the frame would actaully dispose. But currently i'm having a pr