Oracle triggers for auditing

Let us say I want to audit data updates, deletes on existing table EMP_TAB that
has a few hundred thousands of records.
I created a shadow table Emp_tab_audit and added few audit columns
Emp_tab (
Empno NUMBER NOT NULL,
Ename VARCHAR2(10),
Job VARCHAR2(9),
Mgr NUMBER(4),
Hiredate DATE,
Sal NUMBER(7,2),
Comm NUMBER(7,2),
Deptno NUMBER(2) NOT NULL);
CREATE TABLE Emp_tab_audit (
seq number
operation varchar2(3),
user varchar2(20),
Timestamp date,
ip_address varchar2(25),
Terminal varchar2(10,
Empno NUMBER NOT NULL,
Ename VARCHAR2(10),
Job VARCHAR2(9),
Mgr NUMBER(4),
Hiredate DATE,
Sal NUMBER(7,2),
Comm NUMBER(7,2),
Deptno NUMBER(2) NOT NULL);
I am mostly interested in UPDATES and DELETES but I decided to add INSERTS to have full history for
each eomplyee in one table (audit schema) instead of querying two tables all the time (production
table and audit table) to see the changes.
I created this AFTER INSERT, UPDATE, DELETE trigger.
I decided to copy the :NEW values for INSERT and UPDATE and :OLD values for DELETE.
see attached.
so when insert happens, the first audit row is created in EMP_TAB_AUDIT.
when update happens, the 2nd new row is created in EMP_TAB_AUDIT.
The problem I am facing is the old records that curently exist. If someone updates an old row I am
copying the :NEW values so I won't have a copy of the :OLD values unless I create 2 ROWS (one for
the old and one for the new).
Do you think I should copy all the hundreds of thousands of records to the AUDIT tables for this to
work. I am hesitant to do that.
ANy better ideas. I am applying this solution to several tables (not just one).
This is also in 9i and i dont flexibility other than using a trigger to track data changes.
CREATE OR REPLACE TRIGGER TRG_EMP_AUDIT
AFTER INSERT OR DELETE OR UPDATE ON EMP_TAB
FOR EACH ROW DECLARE
v_operation VARCHAR2(10) := NULL;
v_user VARCHAR2(20);
v_timestamp Date;
v_ip_address VARCHAR2(25),
v_terminal VARCHAR2(10);
BEGIN
v_user := USERENV(user);
v_timestamp := SYSDATE;
v_ip_address := USERENV(ip_address);
v_terminal := USERENV(terminal);
IF INSERTING THEN
v_operation := 'INS';
ELSIF UPDATING THEN
v_operation := 'UPD';
ELSE
v_operation := 'DEL';
END IF;
IF INSERTING OR UPDATING THEN
INSERT INTO EMP_TAB_AUDIT (
seq,
operation,
user
timestamp,
ip_address,
terminal,
empno,
job,
mgr,
hiredate,
sal,
comm,
deptno )
VALUES (
audit_seq.nextval,
v_operation,
v_user,
v_timestamp,
v_ip_address,
v_terminal,
:new.empno,
:new.job,
:new.mgr,
:new.hiredate,
:new.sal,
:new.comm,
:new.deptno);
ELSIF DELETING THEN
INSERT INTO EMP_TAB_AUDIT (
seq,
aud_action,
user
timestamp,
ip_address,
terminal,
empno,
job,
mgr,
hiredate,
sal,
comm,
deptno )
VALUES (
audit_seq.nextval,
v_operation,
v_user,
v_timestamp,
v_ip_address,
v_terminal,
:old.empno,
:old.job,
:old.mgr,
:old.hiredate,
:old.sal,
:old.comm,
:old.deptno);
END IF;
END;
*******************************************************************************

For auditing normailly you do AFTER triggers (not BEFORE) as ther could be other triggers that change the :NEW data stored in the row.
You can capture :OLD in AFTER too, but the issue you are saving the updated values. You are storing an image of the OLD row so you still need to check the current row to find out what has been updated. My preference was to store NEW values on updates.

Similar Messages

  • Triggers for audit control

    Good morning all,
    I am in desperate need of a trigger for audit control, that is who is doing what action (udpate, delete, insert)to a record, old value, and new value. Time and date wouild also be helpful.
    Problem -- and it's a big one. I don't know pl/sql. Trying to learn it, but in time for this project.
    Thanks all.
    P.S. If you have a link to a documentation that tells you how to do something like this, please let me know. Thanks again.

    Hi,
    The following example demonstrates a trigger that audits modifications to the Emp_tab table for each row. It requires that a "reason code" be stored in a global
    package variable before the update. This shows how triggers can be used to provide value-based auditing and how to use public package variables.
    Note:
    You may need to set up the following data structures for the examples to work:
    CREATE OR REPLACE PACKAGE Auditpackage AS
    Reason VARCHAR2(10);
    PROCEDURE Set_reason(Reason VARCHAR2);
    END;
    CREATE TABLE Emp99 (
    Empno NOT NULL NUMBER(4)
    Ename VARCHAR2(10)
    Job VARCHAR2(9)
    Mgr NUMBER(4)
    Hiredate DATE
    Sal NUMBER(7,2)
    Comm NUMBER(7,2)
    Deptno NUMBER(2)
    Bonus NUMBER
    Ssn NUMBER
    Job_classification NUMBER);
    CREATE TABLE Audit_employee (
    Oldssn NUMBER
    Oldname VARCHAR2(10)
    Oldjob VARCHAR2(2)
    Oldsal NUMBER
    Newssn NUMBER
    Newname VARCHAR2(10)
    Newjob VARCHAR2(2)
    Newsal NUMBER
    Reason VARCHAR2(10)
    User1 VARCHAR2(10)
    Systemdate DATE);
    CREATE OR REPLACE TRIGGER Audit_employee
    AFTER INSERT OR DELETE OR UPDATE ON Emp99
    FOR EACH ROW
    BEGIN
    /* AUDITPACKAGE is a package with a public package
    variable REASON. REASON could be set by the
    application by a command such as EXECUTE
    AUDITPACKAGE.SET_REASON(reason_string). Note that a
    package variable has state for the duration of a
    session and that each session has a separate copy of
    all package variables. */
    IF Auditpackage.Reason IS NULL THEN
    Raise_application_error(-20201, 'Must specify reason'
    || ' with AUDITPACKAGE.SET_REASON(Reason_string)');
    END IF;
    /* If the above conditional evaluates to TRUE, the
    user-specified error number and message is raised,
    the trigger stops execution, and the effects of the
    triggering statement are rolled back. Otherwise, a
    new row is inserted into the predefined auditing
    table named AUDIT_EMPLOYEE containing the existing
    and new values of the Emp_tab table and the reason code
    defined by the REASON variable of AUDITPACKAGE. Note
    that the "old" values are NULL if triggering
    statement is an INSERT and the "new" values are NULL
    if the triggering statement is a DELETE. */
    INSERT INTO Audit_employee VALUES
    (:old.Ssn, :old.Ename, :old.Job_classification, :old.Sal,
    :new.Ssn, :new.Ename, :new.Job_classification, :new.Sal,
    auditpackage.Reason, User, Sysdate );
    END;
    Optionally, you can also set the reason code back to NULL if you wanted to force the reason code to be set for every update. The following simple AFTER statement
    trigger sets the reason code back to NULL after the triggering statement is run:
    CREATE OR REPLACE TRIGGER Audit_employee_reset
    AFTER INSERT OR DELETE OR UPDATE ON Emp_tab
    BEGIN
    auditpackage.set_reason(NULL);
    END;
    Hope that helps.
    Thanks,
    Sharmila

  • ORACLE 10g generate reports for audit trail

    HELP ORACLE 10 g
    I am a beginner about the oracle 10g
    anybody can guide me how to start with
    generate reports for audit trail , top ten url
    , no of hits in the portlets ......
    =(
    thank you ....

    In a nutshell:
    1 - You will have to have the portal database schema as your data source.
    2 - You will have to design a target database schema with the target data bjects (tables, dimensions and fact tables - cubes) where the data will be loaded for reporting purposes.
    3 - Then you will have to model the loading process by defining mappings (mappings will translate into generated code for the load process) and process flows to run the mappings in the right order etc.
    4 - You will deploy the sources, targets and processing entities to the target schema.
    5 - You will run the deployed code periodically as needed and maintain the source, target and loading entities which might change with time.
    One observetion - OWB does not produce reports. It creates and maintains the data infrastructure for a reporting/analysis system (a data warehouse, data mart or an operational data store). To produce reports (for example, the top-10 report mentioned by you), you will have to run a reporting tool on top of the data structures created and maintained by OWB.
    Regards:
    Igor

  • Oracle Workflow for Java (OW4J) Preview Available!

    Oracle® Workflow for Java (OW4J) delivers a java based business process management system that supports business process definition, business process automation, and business process integration. The technology enables modeling, automation, and continuous improvement of business processes, routing information of any type according to user-defined business rules. Oracle Workflow for Java supports fast, non-persistent, straight-through processes which run only in memory. It does not require a database, but does support persistent, long-running business processes with a complete audit trail stored in a database. OW4J will also include the Worklist and email notification and response capabilities which are essential to business process automation activities.
    Oracle Workflow for Java provides the users with all the components required to build and deploy a business processes using J2EE technology.
    * Oracle Workflow for Java Engine: OW4J is based on open standards and is a high-performance, scalable workflow engine capable of executing Java classes, Enterprise JavaBeans (EJBs), and Web services, sending and receiving Java Message Services (JMS) messages and e-mails, and launching workflows from message-driven beans.
    * Oracle JDeveloper Workflow Modeler: Oracle JDeveloper Workflow Modeler is a Business Process Modeling tool used to build and deploy business processes using Oracle JDeveloper IDE. It provides the user with an easy-to-use, intuitive drag-and-drop tool for modeling business processes.
    OW4J Developer Preview
    Download the developer preview and start building and running business processes using the new JDeveloper Workflow Modeler. Out-of-the-box Runnable Demo including stock quote web service demo (does not require database) and Procurement Demo which demonstartes the range of capabilities of OW4J by including various technologies like EJB, Web Services, PL/SQL and Java Classes into a business processes without any coding.
    Please post your feedback and questions using the Forum. It is valuable to us!
    Cheers,
    Raja

    Raja,
    We're having some difficulty getting the StockQuote demo working with the latest OW4J Preview release. We get the demo web page to appear but are not sure how to set Owner, ItemKey, and UserKey such that we don't get the following errors when we click "Run Workflow". Any help would be appreciated.
    Cheers,
    tim
    Error output in JDev 9.0.5.2 after clicking "Run Workflow" with or without entering values for above entries:
    Handle.Fault[oracle.apps.fnd.wf.engine.ExecutionException] at C:/jdev9052/jdev/mywork/OW4JDemos/StockQuote/src./ow4j/demo/stockquote.StockQuote[1086617569608]
    Caused By: executeRPC[C:/jdev9052/jdev/mywork/OW4JDemos/StockQuote/src./ow4j/demo/stockquote.StockQuote[1086617569608].processActivity1[1086617569610]] at $Header: AbstractExecutor.java 30.0 2003/03/25 22:43:21 anpwang noship $
    Caused By: 04/06/07 10:13:10 [SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsupported response content type "text/html", must be: "text/xml". Response was:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML dir=ltr><HEAD><TITLE>The page cannot be displayed</TITLE>
    <STYLE>A:link {
         FONT: 8pt/11pt verdana; COLOR: #ff0000
    A:visited {
         FONT: 8pt/11pt verdana; COLOR: #4e4e4e
    </STYLE>
    <META content=NOINDEX name=ROBOTS>
    <META http-equiv=Content-Type content="text-html; charset=Windows-1252">
    <META content="MSHTML 5.50.4522.1800" name=GENERATOR></HEAD>
    <BODY bgColor=#ffffff>
    <TABLE cellSpacing=5 cellPadding=3 width=410>
    <TBODY>
    <TR>
    <TD vAlign=center align=left width=360>
    <H1 style="FONT: 13pt/15pt verdana; COLOR: #000000"><!--Problem-->The page
    cannot be displayed</H1></TD></TR>
    <TR>
    <TD width=400 colSpan=2><FONT
    style="FONT: 8pt/11pt verdana; COLOR: #000000">There is a problem with the
    page you are trying to reach and it cannot be displayed.</FONT></TD></TR>
    <TR>
    <TD width=400 colSpan=2><FONT
    style="FONT: 8pt/11pt verdana; COLOR: #000000">
    <HR color=#c0c0c0 noShade>
    <P>Please try the following:</P>
    <UL>
    <LI>Click the Refresh button,
    or try again later.<BR>
    <LI>Open the Web site
    home page, and then look for links to the information you want.</LI>
    <LI>If you believe you should be able to view this directory or page,
    please contact the Web site administrator by using the e-mail address or
    phone number listed on the Web site
    home page. </LI></UL>
    <H2 style="FONT: 8pt/11pt verdana; COLOR: #000000">10060 - Connection timeout<BR>Internet Security and Acceleration Server</H2>
    <HR color=#c0c0c0 noShade>
    <P>Technical Information (for support personnel)</P>
    <UL>
    <LI>Background:<BR>The gateway could not receive a timely response from the Web site you are trying to access. This might indicate that the network is congested, or that the Web site is experiencing technical difficulties.<P></P></LI>
    <LI>ISA Server: ns.mgbltd.com<BR>
    Via: <BR><BR>Time: 6/7/2004 2:13:10 PM GMT
    </LI></UL></FONT></TD></TR></TBODY></TABLE></BODY></HTML>
    04/06/07 10:13:10      at org.apache.soap.rpc.Call.getEnvelopeString(Call.java:209)
    04/06/07 10:13:10      at org.apache.soap.rpc.Call.invoke(Call.java:268)
    04/06/07 10:13:10      at oracle.apps.fnd.wf.engine.executor.OracleSoapExecutor.executRPC(OracleSoapExecutor.java:179)
    04/06/07 10:13:10      at oracle.apps.fnd.wf.engine.executor.OracleSoapExecutor.execute(OracleSoapExecutor.java:115)
    04/06/07 10:13:10      at oracle.apps.fnd.wf.engine.impl.JavaEngine.executeActivityInternal(JavaEngine.java:1088)
    04/06/07 10:13:10      at oracle.apps.fnd.wf.engine.impl.JavaEngine.executeActivity(JavaEngine.java:709)
    04/06/07 10:13:10      at oracle.apps.fnd.wf.engine.impl.JavaEngine.processStack(JavaEngine.java:841)
    04/06/07 10:13:10      at oracle.apps.fnd.wf.engine.impl.JavaEngine.doStartProcess(JavaEngine.java:979)
    04/06/07 10:13:10      at oracle.apps.fnd.wf.engine.impl.JavaEngine.startFlow(JavaEngine.java:171)
    04/06/07 10:13:10      at oracle.apps.fnd.wf.engine.WorkItemProcess.startFlow(WorkItemProcess.java:132)
    04/06/07 10:13:10      at oracle.apps.fnd.wf.runner.RequestHelper.processRequest(RequestHelper.java:105)
    04/06/07 10:13:10      at WFProcessDetails.jspService(WFProcessDetails.jsp:232)
    04/06/07 10:13:10      at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:57)
    04/06/07 10:13:10      at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:349)
    04/06/07 10:13:10      at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
    04/06/07 10:13:10      at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
    04/06/07 10:13:10      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    04/06/07 10:13:10      at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
    04/06/07 10:13:10      at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
    04/06/07 10:13:10      at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:604)
    04/06/07 10:13:10      at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
    04/06/07 10:13:10      at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
    04/06/07 10:13:10      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
    04/06/07 10:13:10      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
    04/06/07 10:13:10      at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
    04/06/07 10:13:10      at java.lang.Thread.run(Thread.java:534)
    executeRPC[C:/jdev9052/jdev/mywork/OW4JDemos/StockQuote/src./ow4j/demo/stockquote.StockQuote[1086617569608].processActivity1[1086617569610]] at $Header: AbstractExecutor.java 30.0 2003/03/25 22:43:21 anpwang noship $
    Caused By: 04/06/07 10:13:10 [SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsupported response content type "text/html", must be: "text/xml". Response was:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML dir=ltr><HEAD><TITLE>The page cannot be displayed</TITLE>
    <STYLE>A:link {
         FONT: 8pt/11pt verdana; COLOR: #ff0000
    A:visited {
         FONT: 8pt/11pt verdana; COLOR: #4e4e4e
    </STYLE>
    <META content=NOINDEX name=ROBOTS>
    <META http-equiv=Content-Type content="text-html; charset=Windows-1252">
    <META content="MSHTML 5.50.4522.1800" name=GENERATOR></HEAD>
    <BODY bgColor=#ffffff>
    <TABLE cellSpacing=5 cellPadding=3 width=410>
    <TBODY>
    <TR>
    <TD vAlign=center align=left width=360>
    <H1 style="FONT: 13pt/15pt verdana; COLOR: #000000"><!--Problem-->The page
    cannot be displayed</H1></TD></TR>
    <TR>
    <TD width=400 colSpan=2><FONT
    style="FONT: 8pt/11pt verdana; COLOR: #000000">There is a problem with the
    page you are trying to reach and it cannot be displayed.</FONT></TD></TR>
    <TR>
    <TD width=400 colSpan=2><FONT
    style="FONT: 8pt/11pt verdana; COLOR: #000000">
    <HR color=#c0c0c0 noShade>
    <P>Please try the following:</P>
    <UL>
    <LI>Click the Refresh button,
    or try again later.<BR>
    <LI>Open the Web site
    home page, and then look for links to the information you want.</LI>
    <LI>If you believe you should be able to view this directory or page,
    please contact the Web site administrator by using the e-mail address or
    phone number listed on the Web site
    home page. </LI></UL>
    <H2 style="FONT: 8pt/11pt verdana; COLOR: #000000">10060 - Connection timeout<BR>Internet Security and Acceleration Server</H2>
    <HR color=#c0c0c0 noShade>
    <P>Technical Information (for support personnel)</P>
    <UL>
    <LI>Background:<BR>The gateway could not receive a timely response from the Web site you are trying to access. This might indicate that the network is congested, or that the Web site is experiencing technical difficulties.<P></P></LI>
    <LI>ISA Server: ns.mgbltd.com<BR>
    Via: <BR><BR>Time: 6/7/2004 2:13:10 PM GMT
    </LI></UL></FONT></TD></TR></TBODY></TABLE></BODY></HTML>
    04/06/07 10:13:10      at org.apache.soap.rpc.Call.getEnvelopeString(Call.java:209)
    04/06/07 10:13:10      at org.apache.soap.rpc.Call.invoke(Call.java:268)
    04/06/07 10:13:10      at oracle.apps.fnd.wf.engine.executor.OracleSoapExecutor.executRPC(OracleSoapExecutor.java:179)
    04/06/07 10:13:10      at oracle.apps.fnd.wf.engine.executor.OracleSoapExecutor.execute(OracleSoapExecutor.java:115)
    04/06/07 10:13:10      at oracle.apps.fnd.wf.engine.impl.JavaEngine.executeActivityInternal(JavaEngine.java:1088)
    04/06/07 10:13:10      at oracle.apps.fnd.wf.engine.impl.JavaEngine.executeActivity(JavaEngine.java:709)
    04/06/07 10:13:10      at oracle.apps.fnd.wf.engine.impl.JavaEngine.processStack(JavaEngine.java:841)
    04/06/07 10:13:10      at oracle.apps.fnd.wf.engine.impl.JavaEngine.doStartProcess(JavaEngine.java:979)
    04/06/07 10:13:10      at oracle.apps.fnd.wf.engine.impl.JavaEngine.startFlow(JavaEngine.java:171)
    04/06/07 10:13:10      at oracle.apps.fnd.wf.engine.WorkItemProcess.startFlow(WorkItemProcess.java:132)
    04/06/07 10:13:10      at oracle.apps.fnd.wf.runner.RequestHelper.processRequest(RequestHelper.java:105)
    04/06/07 10:13:10      at WFProcessDetails.jspService(WFProcessDetails.jsp:232)
    04/06/07 10:13:10      at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:57)
    04/06/07 10:13:10      at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:349)
    04/06/07 10:13:10      at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
    04/06/07 10:13:10      at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
    04/06/07 10:13:10      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    04/06/07 10:13:10      at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
    04/06/07 10:13:10      at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
    04/06/07 10:13:10      at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:604)
    04/06/07 10:13:10      at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
    04/06/07 10:13:10      at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
    04/06/07 10:13:10      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
    04/06/07 10:13:10      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
    04/06/07 10:13:10      at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
    04/06/07 10:13:10      at java.lang.Thread.run(Thread.java:534)

  • V2 Style Triggers to oracle triggers

    Dear All,
    I am working on Forms 2.5 to Forms 6i migration. I have come across some 'V2 Style Triggers'. Can any one guide me how to convert these triggers to Oracle triggers.
    Thanks in advance.
    Please let me know as soon as possible.

    Hi,
    As far as I know Forms does not provide such migration functionality.
    Oracle partners offer migration tools that handled V2 triggers when upgrading Forms. See the partner page on otn.oracle.com/products/forms for a list of partners and their solutions
    Frank

  • Oracle Configurations for High User Volume

    Hi,
    Can anyone point me to some resources which discusses choosing a suitable Oracle configuration ?
    Like what configurations are best suited for a high user(5K to 10 concurrent logged in users) Architecture ?
    Regards,
    Amila.

    Hi,
          We can call the stored procedure using receiver adapter using ccBPM, we can follow different approaches for reading the data in this case.
    a) In this  a ccBPM instance needs to be triggered using some dummy message, after receiving this message the ccBPM can make  a sync call to the Oracle database the store procedure(this can be done using the specific receiver data type strucure), on getting the response message the ccBPM  can then proceed with the further steps.The stored procedure needs to be optimized for improving the performance as the mapping complexity will largely get affected by the structure in which the stored procedure returns the message.Prioritization of the objects can be handled in the stored procedure.
    b) In this a ccBPM instance can first read data from the header level table, then it can make subsequent sync calls to Oracle tables for reading data from the child tables.This approach is less suitable for this interface as the number child tables is big.
    Pravesh.

  • Portal Users name for auditing

    Hi,
    How can i get the name of portal users. Some one told me that there is some Portal_api through which i can get Portal user and then i can write custom code to insert that name for auditing purpose in tha database table. Can any one tell me what that Portal_api is? If any has done this before then can you expalin it with some example.
    Your help in this matter will be highly appreciated.

    muhammad
    I can't tell you the exact name of any particular api but I can tell you where a good place to look.
    If you are familiar with any of the MONITOR functions on the Oracle main page, there is one sub category for "chart by user". The contents for these are located under the navigator -> contents -> monitor -> chart by user.
    I haven't drilled down far enough to find any specific calls, but since documentation seems so lacking for these thints, I have to go find an example to take apart for the pieces I need.
    Hope this helps.
    Mike

  • How To Integrate ADF Application with Oracle Fusion Middleware Audit Fmwk ?

    Hi All,
    I'm having ADF/ADF Face Application (using Jdev 11.1.1.5) and want to integrate it with Oracle Fusion Middleware Audit Framework.
    I want to generate audit records by using oracle.security.jps.service.audit API and also want that Audit Policy
    for my Application will be visible and manageable through FusionMiddlewareControl (as well as othe admin tools)
    on the same way how it is for the OPSS services for example.
    Unfortunately i didn't find any detailed docs for the topics above. In the Oracle Fusion Middleware Security Guide,
    it is steated only that:
    "Stand-alone applications can be integrate d with the Oracle Fusion Middleware Audit Framework through configuration with the jps-config.xml file."
    , but nothing in details.
    Can somebody help with this, giving some more detailed info or links to the appropriate detailed documentation(if any) ?
    Thanks in advance,
    Krasimir

    deepak - why not link to the real documentation instead of that site that illegally publishes stuff?
    Krasimir - I had a look at this a long way back, and didn't explore it much further because I reached a dead end in trying to figure out how it worked. It seems to me that the function is there and may be used internally within Oracle, but that it's not documented well enough for we mere mortals of the public to use it.
    Have you tried opening an SR with Support? They won't know, but they will be able to raise it up and perhaps find someone who does know - be sure to reference this thread in your SR if you go that route.
    John

  • Oracle Lite for Windows CE H/PC

    I have one question about Oracle Lite for Windows CE on Handheld/PC.
    Which version of Oracle Lite for Windows CE supports Java stored procedures and
    triggers and the Oracle Lite JAC and JDBC interfaces on H/PC? I have version 3.6 and 4.0.1 but this versions don't support
    JAC, JDBC interfaces, Java stored procedures and triggers ( this is written in documentation ).
    I urgently need version of Oracle Lite for Windows CE on H/PC which
    mostly supports JDBC interface because I've developed an application for
    Oracle Lite in JDeveloper with
    JDBC interface and I intend to transfer this application on H/PC ( Velo
    Phillips ) with Widows CE 2.0 operating system.
    Does such version of Oracle Lite for Windows CE which supports JDBC
    interface exist at all?
    Please help me.
    Thank you in advance.
    null

    This is a forum for Forms questions. You should ask your question on one of the database forums.
    Regards,
    Robin Zimmermann
    Forms Product Management

  • Enter event not triggering for read-only checkbox

    I have some objects in a form that get "locked" when the user signs the form.  I'm not using the digital signatures.  Instead, when the user types their name into the signature text field, a script runs on the change event that makes all of the fields in the form read only.  It also unlocks the fields if the signature is deleted.
    I was worried that we would get a lot of phone calls with users that didn't understand that the form had locked ("Why doesn't this form work?!"), so I added some code to the enter event for all of the fields that would pop up a messagebox to explain to people trying to edit a signed form that the form was locked and that they would need to delete the signature to edit the form.
    This plan works perfect for my text fields and decimal fields.  It does NOT work at all for my checkboxes.  For some reason, the enter event is never triggered for read-only checkboxes.  I don't see any other events that would obviously work for me though.  Any ideas?
    Thanks

    Thanks, those are reasonable suggestions.
    In the first suggestion, I'm unclear about one aspect of how I would accomplish this.  I assume I would allow people to modify fields in the form, but that when they did, a msgbox would pop up that would inform them that, if they continued with this modification to a signed form, the signature would be removed.  I'm all good to that point.  But if they answered that they do not want to continue modifying that field and removing the signature, how can I code it to set the value back to what it was before the change?  Is there some method that will give me access to the value of the field BEFORE the attempted modification?  I went looking for something like $.previousvalue, but found nothing.
    I'd suggest that I could use a two-stage solution, in which I store the previous value on the enter event, and save it just in case they do not want to change the field when prompted by the msgbox, but since the enter event does not exist for checkboxes (my original problem), that seems like it won't work.
    As far as radio button suggestion, I like radio buttons very much except for one fatal flaw: they aren't (as far as I can tell) clearable.  That is a shame.  Clearly some people (like me) want both exclusivity AND clearability.  And we'd like the controls to have an enter event.  But I know I'm demanding   Anyway, as it is, I just end up having to use checkboxes and create a boatload of silly code to make them exclusive.
    Emily

  • STOCK REPORT FOR AUDIT

    Hi GUYS
    I am working for a Garment Industry and the audit is in next month end.
    I need your advice in how to catch up with the things related to Stock for Audit.
    We have 3-4 locations in System
    Like
    FABRIC STORE
    CUTTING STORE
    STICHING STORE
    FINISHING STORE
    FINISHED GOOD STORE(from there the material gets dispached EXPORT/LOCAL)
    I need to maintain the STOCK from Cutting to Finishing , Stock at Sub Contractor, How much dispached and how much left, rejected etc
    Please Advice how to do the things.
    I know its all related to MB51 MB52, MBLB, ME2L, MC.9, MB5B ETC
    But i am Confused from where to start and how to proceed.
    I dont even know from which report the auditor will get the details and ask us
    SHD i take the Physical report ie Work in progress report in my hand first or shd i take the SAP Reports first
    I am looking after the following things
    SUB COntracting PO
    STO
    GRN(Fabric, CUT PART , ACCESSORIES ETC)
    Out Bound Dillivery
    PI
    CI
    EI
    Work Related to PP Making production orders etc
    Need a procedure to maintain the stuff in SAP
    Thanks & REGards
    Abhishek

    Dear Abhishek,
    It all depends on how efficiently your company Uses SAP, If company has properly entered all the transactions that take place on a day to day basis in SAP, then there is nothing which can't be answered to the Auditor, its all Integrated and you can see all the stock movements that have happend, If required you can go for a Physical Inventory Count Also so that these is no discrepancy in the system stock and Physical Stock.
    Rest for any material if any question comes up then you can readily use MB5B which will give the material movements in a specified period along with Opening and Closing Stock. The basic questions which Auditors Put up is on the movement of Stock and sometimes the reason for the movement, so if everything is maintained properly in SAP you will have no issues in getting any data.

  • Error fetching data from a foxpro db using Oracle Gateway for ODBC

    Hi.
    I have an 10.2.0.1 database an a 11.2.0 Oracle Gateway for ODBC installed and configured.
    The dblink test works fine, I can connect with the foxpro database because if I execute desc centros I can see the
    columns of table centros.
    The problem comes when I try to execute Select * from centros@fox1;
    A syntax error is returned ([Microsoft][ODBC Visual FoxPro Driver]Syntax error. {42000,NativeErr = 200})
    I paste down the output of the trace file with HS_FDS_TRACE_LEVEL=255
    If I run select codcen from centros@fox1; another error is shown. Tell me if you want the other trace file.
    select codcen from centros@fox1
    ERROR en lÝnea 1:
    ORA-00904: "CODCEN": identificador no vßlido
    Oracle Corporation --- JUEVES MAY 31 2012 13:11:24.765
    Heterogeneous Agent Release
    11.2.0.1.0
    Oracle Corporation --- JUEVES MAY 31 2012 13:11:24.750
    Version 11.2.0.1.0
    Entered hgogprd
    HOSGIP for "HS_FDS_TRACE_LEVEL" returned "255"
    Entered hgosdip
    setting HS_OPEN_CURSORS to default of 50
    setting HS_FDS_RECOVERY_ACCOUNT to default of "RECOVER"
    setting HS_FDS_RECOVERY_PWD to default value
    setting HS_FDS_TRANSACTION_LOG to default of HS_TRANSACTION_LOG
    setting HS_IDLE_TIMEOUT to default of 0
    setting HS_FDS_TRANSACTION_ISOLATION to default of "READ_COMMITTED"
    setting HS_NLS_NCHAR to default of "UCS2"
    setting HS_FDS_TIMESTAMP_MAPPING to default of "DATE"
    setting HS_FDS_DATE_MAPPING to default of "DATE"
    setting HS_RPC_FETCH_REBLOCKING to default of "ON"
    setting HS_FDS_FETCH_ROWS to default of "100"
    setting HS_FDS_RESULTSET_SUPPORT to default of "FALSE"
    setting HS_FDS_RSET_RETURN_ROWCOUNT to default of "FALSE"
    setting HS_FDS_PROC_IS_FUNC to default of "FALSE"
    setting HS_FDS_CHARACTER_SEMANTICS to default of "FALSE"
    setting HS_FDS_MAP_NCHAR to default of "TRUE"
    setting HS_NLS_DATE_FORMAT to default of "YYYY-MM-DD HH24:MI:SS"
    setting HS_FDS_REPORT_REAL_AS_DOUBLE to default of "FALSE"
    setting HS_LONG_PIECE_TRANSFER_SIZE to default of "65536"
    setting HS_SQL_HANDLE_STMT_REUSE to default of "FALSE"
    setting HS_FDS_QUERY_DRIVER to default of "TRUE"
    setting HS_FDS_SUPPORT_STATISTICS to default of "FALSE"
    Parameter HS_FDS_QUOTE_IDENTIFIER is not set
    setting HS_KEEP_REMOTE_COLUMN_SIZE to default of "OFF"
    setting HS_FDS_GRAPHIC_TO_MBCS to default of "FALSE"
    setting HS_FDS_MBCS_TO_GRAPHIC to default of "FALSE"
    Default value of 32 assumed for HS_FDS_SQLLEN_INTERPRETATION
    setting HS_CALL_NAME_ISP to "gtw$:SQLTables;gtw$:SQLColumns;gtw$:SQLPrimaryKeys;gtw$:SQLForeignKeys;gtw$:SQLProcedures;gtw$:SQLStatistics;gtw$:SQLGetInfo"
    setting HS_FDS_DELAYED_OPEN to default of "TRUE"
    setting HS_FDS_WORKAROUNDS to default of "0"
    Exiting hgosdip, rc=0
    ORACLE_SID is "DAVID"
    Product-Info:
    Port Rls/Upd:1/0 PrdStat:0
    Agent:Oracle Database Gateway for ODBC
    Facility:hsa
    Class:ODBC, ClassVsn:11.2.0.1.0_0008, Instance:DAVID
    Exiting hgogprd, rc=0
    hostmstr: 2057416704:      HOA After hoagprd
    hostmstr: 2057416704:      HOA Before hoainit
    Entered hgoinit
    HOCXU_COMP_CSET=1
    HOCXU_DRV_CSET=178
    HOCXU_DRV_NCHAR=1000
    HOCXU_DB_CSET=178
    HOCXU_SEM_VER=102000
    Entered hgolofn at 2012/05/31-13:11:25
    Exiting hgolofn, rc=0 at 2012/05/31-13:11:25
    HOSGIP for "HS_OPEN_CURSORS" returned "50"
    HOSGIP for "HS_FDS_FETCH_ROWS" returned "100"
    HOSGIP for "HS_LONG_PIECE_TRANSFER_SIZE" returned "65536"
    HOSGIP for "HS_NLS_NUMERIC_CHARACTER" returned ".,"
    HOSGIP for "HS_KEEP_REMOTE_COLUMN_SIZE" returned "OFF"
    HOSGIP for "HS_FDS_DELAYED_OPEN" returned "TRUE"
    HOSGIP for "HS_FDS_WORKAROUNDS" returned "0"
    HOSGIP for "HS_FDS_MBCS_TO_GRAPHIC" returned "FALSE"
    HOSGIP for "HS_FDS_GRAPHIC_TO_MBCS" returned "FALSE"
    Invalid value of 32 given for HS_FDS_SQLLEN_INTERPRETATION
    treat_SQLLEN_as_compiled = 1
    Exiting hgoinit, rc=0 at 2012/05/31-13:11:25
    hostmstr: 2057416704:      HOA After hoainit
    hostmstr: 2057416704:      HOA Before hoalgon
    Entered hgolgon at 2012/05/31-13:11:25
    reco:0, name:SYSTEM, tflag:0
    Entered hgosuec at 2012/05/31-13:11:25
    Exiting hgosuec, rc=0 at 2012/05/31-13:11:25
    HOSGIP for "HS_FDS_RECOVERY_ACCOUNT" returned "RECOVER"
    HOSGIP for "HS_FDS_TRANSACTION_LOG" returned "HS_TRANSACTION_LOG"
    HOSGIP for "HS_FDS_TIMESTAMP_MAPPING" returned "DATE"
    HOSGIP for "HS_FDS_DATE_MAPPING" returned "DATE"
    HOSGIP for "HS_FDS_CHARACTER_SEMANTICS" returned "FALSE"
    HOSGIP for "HS_FDS_MAP_NCHAR" returned "TRUE"
    HOSGIP for "HS_FDS_RESULTSET_SUPPORT" returned "FALSE"
    HOSGIP for "HS_FDS_RSET_RETURN_ROWCOUNT" returned "FALSE"
    HOSGIP for "HS_FDS_PROC_IS_FUNC" returned "FALSE"
    HOSGIP for "HS_FDS_REPORT_REAL_AS_DOUBLE" returned "FALSE"
    using SYSTEM as default value for "HS_FDS_DEFAULT_OWNER"
    HOSGIP for "HS_SQL_HANDLE_STMT_REUSE" returned "FALSE"
    Entered hgocont at 2012/05/31-13:11:25
    HS_FDS_CONNECT_INFO = "Prueba_Foxpro"
    RC=-1 from HOSGIP for "HS_FDS_CONNECT_STRING"
    Entered hgogenconstr at 2012/05/31-13:11:25
    dsn:Prueba_Foxpro, name:SYSTEM
    optn:
    Entered hgocip at 2012/05/31-13:11:25
    dsn:Prueba_Foxpro
    Exiting hgocip, rc=0 at 2012/05/31-13:11:25
    ##>Connect Parameters (len=39)<##
    ## DSN=Prueba_Foxpro;
    #! UID=SYSTEM;
    #! PWD=*
    Exiting hgogenconstr, rc=0 at 2012/05/31-13:11:25
    Entered hgopoer at 2012/05/31-13:11:26
    hgopoer, line 233: got native error 0 and sqlstate 01000; message follows...
    [*Microsoft][Administrador de controladores ODBC] El controlador no admite una versión de ODBC distinta de la que la necesita la aplicación (vea SQLSetEnvAttr)*. {01000}
    Exiting hgopoer, rc=0 at 2012/05/31-13:11:26
    hgocont, line 2686: calling SqlDriverConnect got sqlstate 01000
    Entered hgolosf at 2012/05/31-13:11:26
    ODBC Function-Available-Array 0xFFFE 0x00FF 0xFF00 0xAA7F 0x03B3 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0xEE00 0x395C
    Exiting hgolosf, rc=0 at 2012/05/31-13:11:26
    DriverName:VFPODBC.DLL, DriverVer:06.86.0001
    DBMS Name:Visual FoxPro, DBMS Version:03.00.0000
    Exiting hgocont, rc=0 at 2012/05/31-13:11:26 with error ptr FILE:hgocont.c LINE:2686 ID:SQLDriverConnect
    Entered hgopoer at 2012/05/31-13:11:26
    hgopoer, line 233: got native error 0 and sqlstate HYC00; message follows...
    [Microsoft][ODBC Visual FoxPro Driver]Driver not capable {HYC00}
    Exiting hgopoer, rc=0 at 2012/05/31-13:11:26
    hgolgon, line 795: calling SQLGetInfo got sqlstate HYC00
    SQLGetInfo returns N for SQL_CATALOG_NAME
    Exiting hgolgon, rc=0 at 2012/05/31-13:11:26 with error ptr FILE:hgolgon.c LINE:795 ID:GetInfo: Support catalogs
    hostmstr: 2036506624:      HOA After hoalgon
    RPC Calling nscontrol(0), rc=0
    hostmstr: 2036506624: RPC Before Upload Caps
    hostmstr: 2036506624:      HOA Before hoaulcp
    Entered hgoulcp at 2012/05/31-13:11:26
    Entered hgowlst at 2012/05/31-13:11:26
    Exiting hgowlst, rc=0 at 2012/05/31-13:11:26
    SQLGetInfo returns 0x0 for SQL_OWNER_USAGE
    TXN Capable:1, Isolation Option:0x2
    SQLGetInfo returns 0 for SQL_MAX_SCHEMA_NAME_LEN
    SQLGetInfo returns 128 for SQL_MAX_TABLE_NAME_LEN
    SQLGetInfo returns 0 for SQL_MAX_PROCEDURE_NAME_LEN
    SQLGetInfo returns ` (0x60) for SQL_IDENTIFIER_QUOTE_CHAR
    SQLGetInfo returns Y for SQL_COLUMN_ALIAS
    16 instance capabilities will be uploaded
    capno:1964, context:0x00000000, add-info: 0
    capno:1989, context:0x00000000, add-info: 0
    capno:1991, context:0x0001ffff, add-info: 0
    capno:1992, context:0x0001ffff, add-info: 1, translation:"`"
    capno:3042, context:0x00000000, add-info: 0, translation:"42"
    capno:3047, context:0x00000000, add-info: 0, translation:"57"
    capno:3049, context:0x00000000, add-info: 0, translation:"59"
    capno:3050, context:0x00000000, add-info: 0, translation:"60"
    capno:3066, context:0x00000000, add-info: 0
    capno:3067, context:0x00000000, add-info: 0
    capno:3068, context:0x00000000, add-info: 0
    capno:3069, context:0x00000000, add-info: 0
    capno:3500, context:0x00000001, add-info: 91, translation:"42"
    capno:3501, context:0x00000001, add-info: 93, translation:"57"
    capno:3502, context:0x00000001, add-info: 107, translation:"59"
    capno:3503, context:0x00000001, add-info: 110, translation:"60"
    Exiting hgoulcp, rc=0 at 2012/05/31-13:11:26
    hostmstr: 2036506624:      HOA After hoaulcp
    hostmstr: 2036506624: RPC After Upload Caps
    hostmstr: 2036506624: RPC Before Upload DDTR
    hostmstr: 2036506624:      HOA Before hoauldt
    Entered hgouldt at 2012/05/31-13:11:27
    NO instance DD translations were uploaded
    Exiting hgouldt, rc=0 at 2012/05/31-13:11:27
    hostmstr: 2036506624:      HOA After hoauldt
    hostmstr: 2036506624: RPC After Upload DDTR
    hostmstr: 2036506624: RPC Before Begin Trans
    hostmstr: 2036506624:      HOA Before hoabegn
    Entered hgobegn at 2012/05/31-13:11:27
    tflag:0 , initial:1
    hoi:0x12f094, ttid (len 54) is ...
    00: 54455354 2E524547 52455353 2E524442 [TEST.REGRESS.RDB]
    10: 4D532E44 45562E55 532E4F52 41434C45 [MS.DEV.US.ORACLE]
    20: 2E434F4D 2E663033 63383037 372E392E [.COM.f03c8077.9.]
    30: 34342E37 3735 [44.775]
    tbid (len 10) is ...
    0: 09002C00 07030000 0104 [..,.......]
    Exiting hgobegn, rc=0 at 2012/05/31-13:11:27
    hostmstr: 2036506624:      HOA After hoabegn
    hostmstr: 2036506624: RPC After Begin Trans
    hostmstr: 2036506624: RPC Before Describe Table
    hostmstr: 2036506624:      HOA Before hoadtab
    Entered hgodtab at 2012/05/31-13:11:27
    count:1
    table: CENTROS
    Entered hgopdsc at 2012/05/31-13:11:27
    Describing procedure CENTROS
    Output hoada
    hgopdsc, line 1426: NO hoada to print
    Exiting hgopdsc, rc=942 at 2012/05/31-13:11:27
    The hoada for table CENTROS follows...
    hgodtab, line 904: NO hoada to print
    Exiting hgodtab, rc=0 at 2012/05/31-13:11:27
    hostmstr: 2036506624:      HOA After hoadtab
    hostmstr: 2036506624: RPC After Describe Table
    hostmstr: 2036506624: RPC Before SQL Bundling
    hostmstr: 2036506624:      HOA Before hoxpars
    Entered hgopars, cursor id 1 at 2012/05/31-13:11:27
    type:0
    SQL text from hgopars, id=1, len=23 ...
    00: 53454C45 4354202A 2046524F 4D202243 [SELECT * FROM "C]
    10: 454E5452 4F5322 [ENTROS"]
    Exiting hgopars, rc=0 at 2012/05/31-13:11:28
    hostmstr: 2036506624:      HOA After hoxpars
    hostmstr: 2036506624: RPC After SQL Bundling
    hostmstr: 2036506624: RPC Before SQL Bundling
    hostmstr: 2036506624:      HOA Before hoxopen
    Entered hgoopen, cursor id 1 at 2012/05/31-13:11:28
    hgoopen, line 87: NO hoada to print
    Deferred open until first fetch.
    Exiting hgoopen, rc=0 at 2012/05/31-13:11:28
    hostmstr: 2036506624:      HOA After hoxopen
    hostmstr: 2036506624:      HOA Before hoxdscr
    Entered hgodscr, cursor id 1 at 2012/05/31-13:11:28
    Allocate hoada @ 023E983C
    Entered hgopoer at 2012/05/31-13:11:28
    hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
    [Microsoft][ODBC Visual FoxPro Driver]*Descriptor type out of range* {HY091}
    Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
    hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
    Entered hgopcda at 2012/05/31-13:11:28
    Column:1(codcen): dtype:1 (CHAR), prc/scl:8/0, nullbl:0, octet:8, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
    Entered hgopoer at 2012/05/31-13:11:28
    hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
    [Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
    Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
    hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
    Entered hgopcda at 2012/05/31-13:11:28
    Column:2(litcen): dtype:1 (CHAR), prc/scl:45/0, nullbl:0, octet:45, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
    Entered hgopoer at 2012/05/31-13:11:28
    hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
    [Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
    Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
    hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
    Entered hgopcda at 2012/05/31-13:11:28
    Column:3(codpos): dtype:1 (CHAR), prc/scl:5/0, nullbl:0, octet:5, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
    Entered hgopoer at 2012/05/31-13:11:28
    hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
    [Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
    Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
    hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
    Entered hgopcda at 2012/05/31-13:11:28
    Column:4(codprov): dtype:1 (CHAR), prc/scl:2/0, nullbl:0, octet:2, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
    Entered hgopoer at 2012/05/31-13:11:28
    hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
    [Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
    Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
    hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
    Entered hgopcda at 2012/05/31-13:11:28
    Column:5(codmun): dtype:1 (CHAR), prc/scl:3/0, nullbl:0, octet:3, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
    Entered hgopoer at 2012/05/31-13:11:28
    hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
    [Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
    Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
    hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
    Entered hgopcda at 2012/05/31-13:11:28
    Column:6(codecol): dtype:1 (CHAR), prc/scl:2/0, nullbl:0, octet:2, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
    Entered hgopoer at 2012/05/31-13:11:28
    hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
    [Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
    Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
    hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
    Entered hgopcda at 2012/05/31-13:11:28
    Column:7(codesin): dtype:1 (CHAR), prc/scl:2/0, nullbl:0, octet:2, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
    Entered hgopoer at 2012/05/31-13:11:28
    hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
    [Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
    Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
    hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
    Entered hgopcda at 2012/05/31-13:11:28
    Column:8(cb): dtype:1 (CHAR), prc/scl:4/0, nullbl:0, octet:4, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
    Entered hgopoer at 2012/05/31-13:11:28
    hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
    [Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
    Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
    hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
    Entered hgopcda at 2012/05/31-13:11:28
    Column:9(cs): dtype:1 (CHAR), prc/scl:4/0, nullbl:0, octet:4, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
    Entered hgopoer at 2012/05/31-13:11:28
    hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
    [Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
    Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
    hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
    Entered hgopcda at 2012/05/31-13:11:28
    Column:10(digitocon): dtype:1 (CHAR), prc/scl:2/0, nullbl:0, octet:2, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
    Entered hgopoer at 2012/05/31-13:11:28
    hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
    [Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
    Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
    hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
    Entered hgopcda at 2012/05/31-13:11:28
    Column:11(cuenta): dtype:1 (CHAR), prc/scl:10/0, nullbl:0, octet:10, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
    Entered hgopcda at 2012/05/31-13:11:28
    Column:12(solar): dtype:2 (NUMERIC), prc/scl:5/0, nullbl:0, octet:10, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
    Entered hgopcda at 2012/05/31-13:11:28
    Column:13(construido): dtype:2 (NUMERIC), prc/scl:5/0, nullbl:0, octet:10, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
    Entered hgopoer at 2012/05/31-13:11:28
    hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
    [Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
    Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
    hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
    Entered hgopcda at 2012/05/31-13:11:28
    Column:14(domicen): dtype:1 (CHAR), prc/scl:40/0, nullbl:0, octet:40, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
    Entered hgopoer at 2012/05/31-13:11:28
    hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
    [Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
    Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
    hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
    Entered hgopcda at 2012/05/31-13:11:28
    Column:15(telef): dtype:1 (CHAR), prc/scl:11/0, nullbl:0, octet:11, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
    Entered hgopoer at 2012/05/31-13:11:28
    hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
    [Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
    Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
    hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
    Entered hgopcda at 2012/05/31-13:11:28
    Column:16(fax): dtype:1 (CHAR), prc/scl:11/0, nullbl:0, octet:11, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
    Entered hgopoer at 2012/05/31-13:11:28
    hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
    [Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
    Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
    hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
    Entered hgopcda at 2012/05/31-13:11:28
    Column:17(cif): dtype:1 (CHAR), prc/scl:11/0, nullbl:0, octet:11, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
    Entered hgopoer at 2012/05/31-13:11:28
    hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
    [Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
    Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
    hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
    Entered hgopcda at 2012/05/31-13:11:28
    Column:18(litloc): dtype:1 (CHAR), prc/scl:30/0, nullbl:0, octet:30, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
    hgodscr, line 910: Printing hoada @ 023E983C
    MAX:18, ACTUAL:18, BRC:100, WHT=5 (SELECT_LIST)
    hoadaMOD bit-values found (0x200:TREAT_AS_CHAR)
    DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
    1 CHAR N 8 8 0/ 0 0 0 200 codcen
    1 CHAR N 45 45 0/ 0 0 0 200 litcen
    1 CHAR N 5 5 0/ 0 0 0 200 codpos
    1 CHAR N 2 2 0/ 0 0 0 200 codprov
    1 CHAR N 3 3 0/ 0 0 0 200 codmun
    1 CHAR N 2 2 0/ 0 0 0 200 codecol
    1 CHAR N 2 2 0/ 0 0 0 200 codesin
    1 CHAR N 4 4 0/ 0 0 0 200 cb
    1 CHAR N 4 4 0/ 0 0 0 200 cs
    1 CHAR N 2 2 0/ 0 0 0 200 digitocon
    1 CHAR N 10 10 0/ 0 0 0 200 cuenta
    3 DECIMAL N 7 7 5/ 0 0 0 0 solar
    3 DECIMAL N 7 7 5/ 0 0 0 0 construido
    1 CHAR N 40 40 0/ 0 0 0 200 domicen
    1 CHAR N 11 11 0/ 0 0 0 200 telef
    1 CHAR N 11 11 0/ 0 0 0 200 fax
    1 CHAR N 11 11 0/ 0 0 0 200 cif
    1 CHAR N 30 30 0/ 0 0 0 200 litloc
    Exiting hgodscr, rc=0 at 2012/05/31-13:11:28 with error ptr FILE:hgodscr.c LINE:615 ID:Transfer Octet Length
    hostmstr: 2036506624:      HOA After hoxdscr
    hostmstr: 2036506624: RPC After SQL Bundling
    hostmstr: 2036506624: RPC Before SQL Bundling
    hostmstr: 2036506624:      HOA Before hoxclse
    Entered hgoclse, cursor id 1 at 2012/05/31-13:11:28
    Exiting hgoclse, rc=0 at 2012/05/31-13:11:28
    hostmstr: 2036506624:      HOA After hoxclse
    hostmstr: 2036506624:      HOA Before hoadafr
    Entered hgodafr, cursor id 1 at 2012/05/31-13:11:28
    Free hoada @ 023E983C
    Exiting hgodafr, rc=0 at 2012/05/31-13:11:28
    hostmstr: 2036506624:      HOA After hoadafr
    hostmstr: 2036506624:      HOA Before hoxpars
    Entered hgopars, cursor id 1 at 2012/05/31-13:11:28
    type:0
    SQL text from hgopars, id=1, len=235 ...
    00: 53454C45 43542041 312E2263 6F646365 [SELECT A1."codce]
    10: 6E222C41 312E226C 69746365 6E222C41 [n",A1."litcen",A]
    20: 312E2263 6F64706F 73222C41 312E2263 [1."codpos",A1."c]
    30: 6F647072 6F76222C 41312E22 636F646D [odprov",A1."codm]
    40: 756E222C 41312E22 636F6465 636F6C22 [un",A1."codecol"]
    50: 2C41312E 22636F64 6573696E 222C4131 [,A1."codesin",A1]
    60: 2E226362 222C4131 2E226373 222C4131 [."cb",A1."cs",A1]
    70: 2E226469 6769746F 636F6E22 2C41312E [."digitocon",A1.]
    80: 22637565 6E746122 2C41312E 22736F6C ["cuenta",A1."sol]
    90: 6172222C 41312E22 636F6E73 74727569 [ar",A1."construi]
    A0: 646F222C 41312E22 646F6D69 63656E22 [do",A1."domicen"]
    B0: 2C41312E 2274656C 6566222C 41312E22 [,A1."telef",A1."]
    C0: 66617822 2C41312E 22636966 222C4131 [fax",A1."cif",A1]
    D0: 2E226C69 746C6F63 22204652 4F4D2022 [."litloc" FROM "]
    E0: 43454E54 524F5322 204131 [CENTROS" A1]
    Entered hgopoer at 2012/05/31-13:11:28
    hgopoer, line 233: got native error 200 and sqlstate 42000; message follows...
    [Microsoft][ODBC Visual FoxPro Driver]Syntax error. {42000,NativeErr = 200}
    Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
    hgopars, line 457: calling SQLPrepare got sqlstate 42000
    Exiting hgopars, rc=28500 at 2012/05/31-13:11:28 with error ptr FILE:hgopars.c LINE:487 ID:Prepare stmt
    hostmstr: 2036506624:      HOA After hoxpars
    hostmstr: 2036506624: RPC After SQL Bundling

    The first issue I see is that Oracle 10.2.0.1 was never certified with DG4ODBC 11. Only 10.2.0.4 or 10.2.0.5 can be used as the Oracle database HS kernel requires a gateway compatibility patch and this patch is included in 10.2.0.4 or 10.2.0.5 Oracle database patch set.
    Then another error in the trace is that for each column description you have an error:
    hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
    [Microsoft][ODBC Visual FoxPro Driver]*Descriptor type out of range* {HY091}
    Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
    hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
    It seems it is not critical as DG4ODBC continues, but a more detailed analysis would require an ODBC trace.
    When looking at the table description it seems the column names are all in lower letters, for example: solar. So commonly Dg4ODBC needs to quote the names
    00: 53454C45 43542041 312E2263 6F646365 [SELECT A1."codce]
    10: 6E222C41 312E226C 69746365 6E222C41 [n",A1."litcen",A]
    20: 312E2263 6F64706F 73222C41 312E2263 [1."codpos",A1."c]
    30: 6F647072 6F76222C 41312E22 636F646D [odprov",A1."codm]
    40: 756E222C 41312E22 636F6465 636F6C22 [un",A1."codecol"]
    50: 2C41312E 22636F64 6573696E 222C4131 [,A1."codesin",A1]
    60: 2E226362 222C4131 2E226373 222C4131 [."cb",A1."cs",A1]
    70: 2E226469 6769746F 636F6E22 2C41312E [."digitocon",A1.]
    80: 22637565 6E746122 2C41312E 22736F6C ["cuenta",A1."sol]
    90: 6172222C 41312E22 636F6E73 74727569 [ar",A1."construi]
    A0: 646F222C 41312E22 646F6D69 63656E22 [do",A1."domicen"]
    B0: 2C41312E 2274656C 6566222C 41312E22 [,A1."telef",A1."]
    C0: 66617822 2C41312E 22636966 222C4131 [fax",A1."cif",A1]
    D0: 2E226C69 746C6F63 22204652 4F4D2022 [."litloc" FROM "]
    E0: 43454E54 524F5322 204131 [CENTROS" A1]
    and according to the trace the FoxPro ODBC driver doesn't like these quotes and reports a syntax error.
    So this explains at least why select codcen from centros@fox1 will fail. In general the Oracle database is case insensitive and translates all object names to upper case and the select it will pass to the foreign database would be similar to:
    select CODCEN from CENTROS => which will fail as FoxPro is case sensitive. So the error message ORA-00904 (missing column name) is correct and the statement you need to use is:
    select "codcen" from centros@fox1;
    But this might lead again to the Syntax error you got earlier => You need to check which sign (single quote, back tick, double quote) Foxpro uses to quote object names and then set the gateway parameter HS_FDS_QUOTE_IDENTIFIER accordingly.
    To check which character can be used to quote column/table names you might use the Microsoft ODBc test utility which was distributed in the old MDAC 2.8:
    http://www.microsoft.com/downloads/details.aspx?familyid=5067faf8-0db4-429a-b502-de4329c8c850&displaylang=en
    Edited by: kgronau on Jun 1, 2012 7:27 AM
    If you know where I can download the MS FoxPro ODBC driver, please let me know and I'll check.

  • PO Release Strategy not triggerred for particular Total Net Order Value

    Dear,
    I am currently facing the issue where release strategy for purchase orders is not getting triggered for a particular value or lower.
    For order value 1 INR or less, no release strategy is triggered for new created PO. And for value > 1 INR release strategy is getting triggered.
    All otehr PO characterstics are the same, I mean to say the values for other characterstics such as plant material group are identical.
    But the characterstics for release for Total net order value are <= 30000 INR. There are two system copies, where in one system the same release strategy is working as expected. But in other system the above mentioned issue occurs. There is no differnce which I can see in the release strategy setup.
    Please suggest for solution.
    Thank you.
    Warm Regards.

    Dear All,
    While looking further into the issue by going into debugging mode, we have found that in include LCLSCF2I, Internal table p_selection_criteria_tab , the value for ATFLV (Internal Floating point from) gets different values in the two systems. For example, in the affected system, for PO with 1INR tottal value, for one of the Total value chaaracterstics before INR characterstic, ATFLV value is 0,0000000000000000E+00, hence it gets out of loop and doesn't trigger release strategy.
    But in another system for same PO values and release setup, ATFLV value is 1,0000000000000000E+00 for that characterstic.
    May I know how the value for this field gets calculated.
    Thank you.
    Warm Regards.

  • Event not getting triggered for PR generated through MRP run

    Hi All,
    Could anyone let me know how to get a workflow triggered for the ReleaseStepCreated event (obj - bus2105) when the PR is created through MRP run. The MD02 control paramters have the value '1'.
    Interstingly the workflow triggers when the value is set to '2' or '3'.
    Thanks,
    Ameekar

    Thanks Aman,
    I checked field restrictions but there are none there. Actually i checked them for other object 'AOOMARA' which is being thrown as an exception when i am creating the PR through MRP run.
    Exception says -> field not maintained.
    So i guess, i need to maintain the field for Change Document but i am not sure how. COuld you please aid me with that.
    Thanks A lot !!

  • How to configure Oracle SSO for forms and apex

    Hi All,
    I am trying to configure oracle SSO for forms and apex using third party external authentication. Please help me how to configure. I a have tried all possible things
    from web but I am not able to do it. Is there any doc or links are much appreciated.
    Info: Some reason my oiddas web link is not working it used to work fine before and also the from /pls/orasso/ link I am not able to login may be because of my oiddas issue
    Thanks

    Hi Andreas,
    Thanks you for your help. I am trying to implement third party external LDAP authentication for APEX and Forms.
    So I started with OID and SSO setup to create external Partner Applications. Some reason my oid and sso web login links are not working. I didn't find any errors. I need some help in finding the problem and direction, I already read docs on web but no proper direction. I appreciate your help.
    Thanks

Maybe you are looking for

  • ITunes Match unable to stream music or download songs from?

    Trying to stream music from itunes match it doesn't play.  Try to download a song from itunes match and get error - We're sorry, we cannot complete your request on the iTunes Store at this time.  Thoughts?  Everything was working a few minutes before

  • Printing notes similarly to comments in Word

    Hello, I have a PDF document which I commented extensively. When I print it, my comments that are on the printed page cover too much space - the orginal text is not easily readable (lowering opacity is not helping). Therefore, I would like to print m

  • How do you delete songs on iTune that are NOT on the library?

    I got a new computer few days ago, and I downloaded iTune on my new computer today. I want to delete all my songs that are in my iPod Touch now, and want to buy other songs. I don't have any songs in my library at the moment, since there's no song in

  • Geotagging / GPS Metadata Time Stamp Format

    I have a photo/image taken on an iPhone. The GPS information in the Preview application (inspector menu) shows a Time Stamp of 11:10:56.63. Can anyone explain to me what the ".63" at the end of the time stamp format represents? Thank You.

  • BPEL designer issues

    Hi, I facing following problems while designing BPEL process using Oracle JDeveloper 10g BPEL Designer : 1> While editing XPath exp through query builder in activities (e.g assign, switch) it takes a lot of time which is actually irritating. 2>Someti