DDL commands in APEX

Can anyone help me how to use DDL commands in Apex ?
For eg. DESCRIBE <table name>
that is clickin a button should give me the description of the table..
where should i give this query so that i would fetch me the table structure.
thanks,
arun

Arun
You can do this two ways.
1) Go to SQL Commands in SQLWorkshop, type describe <tablename> in the upper window and click run, the table structure is displayed in the lower window
2) Go to Object Browser in SQLWorkshop, the tables should be listed in the left hand side of the screen, choose the table you want to view and the structure is shown on the right hand side. You can also select to view the DDL script for this table here.
Hope this helps, sorry, but I'm not sure of an area where you can just click a button.
Karen

Similar Messages

  • Error while generating DDL commands using startSQLRepository for a new Repository

    Hi,
    I am trying to generate DDL Commands using startSQLRepository for my new repository SubashRepository so that I can use them to create new table structure.
    All the repository related changes looks good. i can see my repository in ACC
    When I run the command:
    startSQLRepository -m SupremeATG –repository /com/supreme/SubashRepository /com/supreme/subashRepository.xml -outputSQLFile C:/ATG/ATG9.3/SupremeATG/config/com/supreme/subashRepositoryDDL.txt
    I get following error:
    Table 'SUBASH_MEMBER' in item-descriptor: 'member' does not exist in a table space accessible by the data source.  DatabaseMetaData.getColumns returns no columns
    Note:
    * errors related to definition file were cleared as the same command threw relevant exception while trying to store a array property with out creating a multi table.
    * Now this is the only exception i see
    * Some DDL are getting generated in the output file, but those are related to inventory repository (I am not sure why this is happening as I have specifically gave the path to my definition file).
    Any help in resolving this is highly appreciated.

    Pl post in the ATG forum

  • Getting an error while executing ddl commands using dblink

    Hi,
    i am using Oracle9iR2 Version.
    i have created a procedure like below to execute ddl commands on remote database through dblink using dbms_sql.
    CREATE OR REPLACE PROCEDURE run_remote_ddl (p_dblink VARCHAR2, qry VARCHAR2)
    AS
    c_handle NUMBER;
    feedback INTEGER;
    stat VARCHAR2 (2000);
    BEGIN
    stat := 'select DBMS_SQL.open_cursor' || p_dblink || ' from dual';
    EXECUTE IMMEDIATE stat
    INTO c_handle;
    stat :=
    'begin DBMS_SQL.parse'
    || p_dblink
    || ' ('
    || c_handle
    || ','''
    || qry
    || ''', DBMS_SQL.v7); end;';
    EXECUTE IMMEDIATE stat;
    stat :=
    ' select DBMS_SQL.EXECUTE' || p_dblink || '(' || c_handle
    || ') from dual';
    EXECUTE IMMEDIATE stat
    INTO feedback;
    stat :=
    'declare x integer; begin x:= :1; DBMS_SQL.close_cursor'
    || p_dblink
    || '(x); end;';
    EXECUTE IMMEDIATE stat
    USING c_handle;
    END;
    when i run this procedure like below
    begin
    run_remote_ddl ('@dblink', 'create table scott.ttt(num number)');
    end;
    got an error:
    ORA-06553: PLS-103: Encountered the symbol ".2" when expecting one of the following:
    . ( * @ & = - + ; < / > at in is mod not rem
    <an exponent (**)> <> or != or ~= >= <= <> and or like
    between ||
    The symbol ". was inserted before ".2" to continue.
    ORA-06512: at RUN_REMOTE_DDL", line 9
    ORA-06512: at line 2
    Please tell me how to resolve this.
    Thanks in advance.

    Hi,
    >
    ORA-06553: PLS-103: Encountered the symbol ".2" when expecting one of the following:
    . ( * @ & = - + ; < / > at in is mod not rem
    <an exponent (**)> or != or ~= >= <= <> and or like
    between
    >
    Hope you are not typing 2 instead of @ as both are on the same key
    Can you run the following and see what is happening
    CREATE OR REPLACE PROCEDURE run_remote_ddl (p_dblink VARCHAR2, qry VARCHAR2)
    AS
    c_handle NUMBER;
    feedback INTEGER;
    stat VARCHAR2 (2000);
    BEGIN
    dbms_output.put_line(p_dblink);
    stat := 'select DBMS_SQL.open_cursor@dblink from dual';
    --stat := 'select DBMS_SQL.open_cursor from dual';
    EXECUTE IMMEDIATE stat
    INTO c_handle;
    END;
    exec run_remote_ddl('@dblink', 'create table scott.ttt(num number)');Regards
    Edited by: yoonus on Feb 20, 2013 3:47 AM

  • Will any of DDL command trigger a data flush from the data buffer to disk?

    Will any of DDL command trigger a data flush from the data buffer to disk?---No.164

    I mean if I issue the DDL commands Such as DROP, TRUNCAE, CREATE, Can these commands trigger a data flush action?

  • Stop session from commit whenever DDL command takes place

    After DDL command the session is commited, we know.
    But I don't want to let the session to commit.
    Pls reply immediately.

    You can move your ddl off to a procedure/function that has its own (autonomous) transaction. For example, I've hidden TRUNCATE commands from the calling transaction this way.
    Of course this should be a rare exception. In general you really don't want to be performing ddl in your code.
    Cheers,
    Scott

  • 특정 USER에서 DDL 등의 COMMAND 실행을 제한하는 방법 - DDL EVENT TRIGGER

    제품 : ORACLE SERVER
    작성날짜 :
    특정 USER에서 DDL 등의 COMMAND 실행을 제한하는 방법 - DDL EVENT TRIGGER
    =======================================================================
    Purpose
    User에 있는 table등에 DDL 문장이 실행되지 않도록 막고 싶은 경우가 있다.
    Oracle8.1.6 부터 사용가능한 system trigger에 의해 이런 기능을 구현해 보자.
    Explanation
    Oracle8.1.6 의 new feature인 DDL event trigger를 이용하여 특정 user에서
    특정 DDL(예를 들어 create, drop, truncate 등)이나 모든 DDL이 실행할 때
    에러를 발생시킨다거나 특정한 action을 하도록 설정할 수 있다.
    DML 의 경우는 기존의 trigger 대로 각 object에 대해 각각 생성하여야 한다.
    이 자료에서는 주로 DDL 이나 DML 이 실행될 때 에러를 발생하도록 하여 해당
    문장이 실행되지 않도록 하는 방법을 기술하였다.
    (system or ddl event trigger에 대한 다른 자료로 Bulletin 11903,11848 참고)
    DDL event trigger 를 이용하기 위해서는 $ORACLE_HOME/dbs/initSID.ora
    file에서 COMPATIBLE parameter의 값이 "8.1.6" 이상으로 설정되어 있어야 한다.
    DDL event trigger 는 각 DDL이 발생할 때에 실행되는 trigger로
    다음과 같은 시점에서 실행되도록 만들 수 있다.
    BEFORE ALTER, AFTER ALTER, BEFORE DROP, AFTER DROP,
    BEFORE ANALYZE, AFTER ANALYZE, BEFORE ASSOCIATE STATISTICS,
    AFTER ASSOCIATE STATISTICS, BEFORE AUDIT, AFTER AUDIT,
    BEFORE NOAUDIT, AFTER NOAUDIT, BEFORE COMMENT, AFTER COMMENT,
    BEFORE CREATE, AFTER CREATE, BEFORE DDL, AFTER DDL,
    BEFORE DISASSOCIATE STATISTICS, AFTER DISASSOCIATE STATISTICS,
    BEFORE GRANT, AFTER GRANT, BEFORE RENAME, AFTER RENAME,
    BEFORE REVOKE, AFTER REVOKE, BEFORE TRUNCATE, AFTER TRUNCATE
    Example
    * 아래의 trigger 를 system 등의 별도로 관리하는 dba user에서 생성한다.
    [예제1] EJ user에서 table과 index에 해당하는 DDL의 실행을 막는 경우
    $ sqlplus system/manager
    CREATE OR REPLACE TRIGGER ej_no_ddl
    before DDL ON ej.schema
    WHEN (ora_dict_obj_type = 'TABLE' or
    ora_dict_obj_type = 'INDEX')
    begin
    raise_application_error (-20101, 'Cannot execute any DDL !!');
    end;
    -> 위의 trigger는 ej user의 schema 에서 Table과 Index 에 대한 DDL이
    실행될 때 user-defined error ora-20101 이 발생하도록 한 것이다.
    [예제2] EJ user에서 실행되는 모든 DDL을 막는 경우
    $ sqlplus system/manager
    CREATE OR REPLACE TRIGGER ej_no_ddl
    before DDL ON ej.schema
    begin
    raise_application_error (-20101, 'Cannot execute any DDL !!');
    end;
    -> 위의 예제는 모든 DDL 이 실행될 때 에러를 발생시키게 된다.
    예제1과 2의 경우 EJ user에서 DDL 실행시 아래와 같은 에러가 발생한다.
    $ sqlplus ej/ej
    SQL> create table test ( a number );
    create table test ( a number )
    ERROR at line 1:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-20101: Cannot execute any DDL !!
    ORA-06512: at line 2
    SQL> drop table dept;
    drop table dept
    ERROR at line 1:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-20101: Cannot execute any DDL !!
    ORA-06512: at line 2
    [예제3] EJ user에서 실행되는 drop과 truncate 문장을 막는 경우
    $ sqlplus system/manager
    CREATE OR REPLACE TRIGGER ej_no_ddl
    before drop or truncate ON ej.schema
    begin
    raise_application_error (-20102, 'Cannot execute DROP or TRUNCATE !!');
    end;
    위와 같이 trigger를 생성한 경우 EJ user에서 table의 생성은 되지만 drop은 할 수
    없다.
    $ sqlplus ej/ej
    SQL> create table test2 ( a number );
    Table created.
    SQL> drop table test2;
    drop table test2
    ERROR at line 1:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-20102: Cannot execute DROP or TRUNCATE !!
    ORA-06512: at line 2
    [예제4] EJ user의 docu2 table에 대한 dml을 막는 경우
    $ sqlplus system/manager
    CREATE OR REPLACE TRIGGER ej_no_dml_docu2
    before insert or update or delete on ej.docu2
    begin
    raise_application_error (-20103, 'Cannot execute DML');
    end;
    $ sqlplus ej/ej
    SQL> delete from docu2 where docu_id=2;
    delete from docu2 where docu_id=2
    ERROR at line 1:
    ORA-20103: Cannot execute DML
    ORA-06512: at "SYSTEM.EJ_NO_DML_DOCU2", line 2
    ORA-04088: error during execution of trigger 'SYSTEM.EJ_NO_DML_DOCU2'
    * table의 작업을 위해 일시적으로 trigger의 기능을
    disable 또는 enable시킬 수 있다.
    $ sqlplus system/manager
    SQL> alter trigger ej_no_ddl disable;
    or
    SQL> alter trigger ej_no_ddl enable;

  • No DDL Command found for activation of VSCAUFV_CN

    Dear Friends,
    I am getting RCC Error 8 for the VSCAUFV_CN.
    In Development its working fine but when i am sending request to Quaility its showing me error
    "No DDL Command found for activation of VSCAUFV_CN".
    Please let me konw what to do in this case.
    Rav Jordan

    Hi Rav,
    Free some disk space and try ,it will work.
    The below Reference  may help you :
    [http://www.sapfans.com/forums/viewtopic.php?f=12&t=318588&p=965954]
    Hope it will solve your issue.
    Regards
    CB

  • No DDL commands found for activation while updating SPAM/SAINT

    Hi,
    Hi,
    While updating SPAM/SAINT version 0053 (SAPKD70053) we are getting
    error in activation.
    If we check the logs we found error related to no ddl command found for
    activation
    No DDL commands found for activation of /SDF/SWCM_PAT03D
    No DDL commands found for activation of /SDF/SWCM_PAT03P
    No DDL commands found for activation of /SDF/SWCM_PAT03Q
    No DDL commands found for activation of CLNT_CVERS
    No DDL commands found for activation of CLNT_CVRS2
    No DDL commands found for activation of CVERS_SUB
    No DDL commands found for activation of PAD03
    No DDL commands found for activation of PAT05
    No DDL commands found for activation of PAT06
    No DDL commands found for activation of PAT09
    No DDL commands found for activation of PAT10B
    No DDL commands found for activation of PATPRDVRS
    No DDL commands found for activation of PATRTVERS
    No DDL commands found for activation of PATSWFEATR
    No DDL commands found for activation of PATSWFTINC
    No DDL commands found for activation of PRDVERS
    No DDL commands found for activation of STACKCOMPS
    No DDL commands found for activation of SWFEATURE
    No DDL commands found for activation of SWFEATUREINC
    No DDL commands found for activation of TECHUSAGES
    No DDL commands found for activation of TFDIR_INIM
    No DDL commands found for activation of TRBAT3
    We try to activate the table but were not able to activate it.It giving message that Table cannot be activated.
    Attaching the error log files
    System Details:
    SAP NetWeaver 2004s
    Database: DB2 10.5
    Can anyone help us in this

    Hi Amit,
    From the logs you attached
    2WETP000 13:44:36: Retcode 1024: error in DDL statement for "CLNT_CVRS2                    " - repe
    2WETP000 at
    2EETP345 13:44:48: Retcode 1024: SQL-error "-601-SQL0601N  The name of the object to be created is
    2EETP345 identical to the existing name "SAP<SID>.CLNT_CVRS2" of type "VIEW".  SQLSTATE=42710" in DDL
    2EETP345  statement for "CLNT_CVRS2 
    Can you check in database for the existence of the object.
    Also what is your kernel level ?
    Regards,
    Deepak Kori

  • No DDL commands found for activation of YCO_REPALVCOLOR

    Hi Gurus,
    we had a problem with one transport request which got successfully in Dev but failed in QUA environment.
    Transport needs to create a table in Qua env, but it is comleted successfully with RC=0. but error found in "Import steps not specific to transport request".
    Activate inactive runtime objects        12.07.2011 17:35:38    (8) Ended with errors
    ABAP Dictionary Distribution             12.07.2011 17:42:04    (0) Successfully Completed
    17:35:26: Retcode 1: error in DDL statement for YCO_REPALVCOLOR                - repeat
    Error 604-ORA-00604: error occurred at recursive SQL lev when executing ADD-FIELD of
    Error  in DDL statem when executing ADD-FIELD of
    Error YCO_REPALVCOLOR when executing ADD-FIELD of
            (dummy, do not translate)
    No DDL commands found for activation of YCO_REPALVCOLOR
    Could you please help me.
    Regards
    Sudhar

    Hi
    here is Import log
    Main import
    Transport request   : D<SID>K907261
    System              : Q<SID>
    tp path             : tp
    Version and release: 340.16.63 640
    R3trans version 6.13 (release 640 - 17.02.10 - 13:07:00).
    unicode enabled version
    ===============================================
    date&time   : 12.07.2011 - 17:35:41
    control file: /usr/sap/trans/tmp/D<SID>KK907261.Q<SID>
    > #pid 2461838 on parva1102546 (Q<SID>adm)
    > import
    > buffersync=yes
    > file='/usr/sap/trans/data/R907261.D<SID>'
    > continuation='/usr/sap/trans/data/R907261_#.D<SID>'
    > client=510
    > csi=yes
    > setunicodeflag yes
    >
    > excluding 'R3TRDDDD','R3TRDOMA','R3TRDTEL','R3TRENQU','R3TRMACO','R3TRMCID','R3TRMCOB','R3TRSHLP','R3TRSQLT','R3TRTABL','R3TRTTYP
    R3trans was called as follows: R3trans -w /usr/sap/trans/tmp/D<SID>I907261.Q<SID> /usr/sap/trans/tmp/D<SID>KK907261.Q<SID>
    Connected to DBMS = ORACLE     dbs_ora_tnsname = 'Q<SID>'     SYSTEM = 'Q<SID>'.
    0 0
    COMMIT (0).
    trace at level 1 opened for a given file pointer
    ================== STEP 1 =====================
    date&time   : 12.07.2011 - 17:35:41
    function    : IMPORT
    data file   : /usr/sap/trans/data/R907261.D<SID>
    Continuation: /usr/sap/trans/data/R907261_#.D<SID>
    buffersync  : YES
    client      : 510
    repeatimport: NO
    repeatclimp.: NO
    c.s.i.      : YES
    setunicdflg: YES
    l.s.m.      : VECTOR
    charsetadapt: YES
    def. charset: WEUROPEAN
    commit      : 100000
    table cache : 32000000
    EXCLUDING   : 'R3TRVIEW','R3TRUENO','R3TRTTYP','R3TRTABL','R3TRSQLT','R3TRSHLP','R3TRMCOB','R3TRMCID','R3TRMACO','R3TRENQU','R3TRDT
    Data file is compressed with algorithm 'L'.
    Export was executed on 12.07.2011 at 17:14:59 by D<SID>adm
    640
      with R3trans version: 17.02.10 - 13:07:00
    Source System = IBM RS/6000 with AIX on DBMS = ORACLE     dbs_ora_tnsname = 'D<SID>'     SYSTEM = 'D<SID>'.
    language vector during export: ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdi(),./:;
    language vector during export: ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdi(),./:;& (ISO-ARHECSDEENFRELHUITJADAPLZFNLNOPTSKRUESTRFISVB
    lsm during export: VECTOR
    trfunction = K (transport to consolidation system)
    Used Commandfile D<SID>K907261           (535646/3)
    2 E071C entries created
    Target client in E070C updated (510)
      0 entries for E070 imported (D<SID>K907261).
      0 entries for E071 imported (D<SID>K907261          *).
    R3TRDTELYY_LINEID was not imported in this step
    R3TRTABLYCO_REPALVCOLOR was not imported in this step
    D<SID>K907261           touched.
    636 636
    COMMIT (6559).
    6559 bytes read.
    Transport overhead 40.1 %.
    Data compressed to 9.8 %.
    Duration: 0 sec (6559 bytes/sec).
    0 0
    Summary:
    636 bytes modified in database.
    [dev trc     ,00000]  Disconnecting from ALL connections:                26787  0.026787
    [dev trc     ,00000]  Disconnecting from connection 0 ...                   70  0.026857
    [dev trc     ,00000]  Close user session (con_hdl=0,svchp=0x111415838,usrhp=0x111475f40)
                                                                                501  0.027358
    [dev trc     ,00000]  Detaching from DB Server (con_hdl=0,svchp=0x111415838,srvhp=0x111416718)
                                                                                623  0.027981
    [dev trc     ,00000]  Now connection 0 is disconnected                     264  0.028245
    [dev trc     ,00000]  Disconnected from connection 0                        58  0.028303
    [dev trc     ,00000]  statistics db_con_commit (com_total=2, com_tx=2)
                                                                                  67  0.028370
      [dev trc     ,00000]  statistics db_con_rollback (roll_total=0, roll_tx=0)
                                                                                 144  0.028514
    Disconnected from database.
    End of Transport (0000).
    date&time: 12.07.2011 - 17:35:41
    Main import
    End date and time : 20110712173541
    Ended with return code:  ===> 0 <===

  • Execute DDL Commands inside a transactionScope

    Hi,
    I know that in Oracle all DDL commands include an implicit COMMIT so when you use one of them inside a transactionScope an exception is thrown due to this internal COMMIT. I’m receiving following exception ORA-02089: COMMIT is not allowed in a subordinate session. Is there any way to avoid this limitation?
    Thanks in advance,
    Francesc

    Hi,
    There's no way to get DDL to not autocommit.
    What you could do though is use a stored procedure to do the ddl, and declare the procedure with PRAGMA AUTONOMOUS_TRANSACTION.
    I'm not sure what the advisability of that is since anything that that occurs in the procedure wont be rolled back as part of the transaction, but it works anyway.
    Cheers,
    Greg
    create or replace procedure ExecOutsideTxn(strsql in varchar2) as
    pragma autonomous_transaction;
    begin
    execute immediate strsql;
    end;
    using System;
    using Oracle.DataAccess.Client;
    using System.Transactions;
    using System.Data;
    class Program
    static void Main(string[] args)
    using (TransactionScope ts = new TransactionScope(TransactionScopeOption.RequiresNew))
    using (OracleConnection con = new OracleConnection())
    con.ConnectionString = "user id=scott;password=tiger;data source=orcl";
    con.Open();
    using (OracleCommand cmd = new OracleCommand())
    cmd.CommandText = "begin ExecOutsideTxn('create table foo (col1 varchar2(10))');end;";
    cmd.Connection = con;
    cmd.ExecuteNonQuery();
    // do some other stuff
    ts.Complete();
    }

  • DDL commands through XSQL pages

    Dear All,
    Does anybody know how to run DDL commands such as DELETE or UPDATE through a XSQL page?
    1.DELETE FROM book
    WHERE publisher='Publisher2'
    2.UPDATE book
    SET price=150.5
    WHERE bookid=1
    If yes, could you please write how to implemet the above statements through an xsql page?
    Thanks,
    Mustafa
    null

    Use the <xsql:dml> action.
    See the online XSQL Pages Documentation, or my Building Oracle XML Applications book for details.
    Steve Muench
    Development Lead, Oracle XSQL Pages Framework
    Lead Product Manager for BC4J and Lead XML Evangelist, Oracle Corp
    Author, Building Oracle XML Applications
    null

  • See the detalis of DDL commands executing on oracle 10g

    Hi,
    how can i see the detail of DDL command executed on oracle 10g on ECC 6.0
    ECC 6.0
    HPUX
    Regards,

    Did you activated the auditing mechanish on the Oracle? If it is active, you can query the audit table;
    select * from sys.aud$;
    Another way is using Oracle Log Miner. You can find the related information, on the link below;
    http://docs.oracle.com/cd/B10501_01/server.920/a96521/logminer.htm
    Best regards,
    Orkun Gedik

  • Execute immediate on DDL command

    Below sample SQL is 1 of the many code that is running OK in our database. And this code has causes a lot of latch contention to our database and it's being called so many times that cause hard parse.
    /* test code */
    CREATE OR REPLACE PROCEDURE dsal (p_client_id NUMBER) IS
    BEGIN
    EXECUTE IMMEDIATE
    'create table tmp_dsal_'||p_client_id
    ' (client_id number, '||
    ' trade_id number, '||
    ' ps_id number, '||
    ' ps_liquid varchar2(2), '||
    ' status_code varchar2(3) default ''NA'' not null, '||
    ' start_value_dte date, '||
    ' end_value_dte date)';
    EXECUTE IMMEDIATE 'drop table tmp_dsal_'||p_client_id;
    END;
    I want to improve it by using bind variable. The below program compile with no error.
    CREATE OR REPLACE PROCEDURE dsal (p_client_id NUMBER) IS
    BEGIN
    EXECUTE IMMEDIATE
    'create table tmp_dsal_:client_id'||
    ' (client_id number, '||
    ' trade_id number, '||
    ' ps_id number, '||
    ' ps_liquid varchar2(2), '||
    ' status_code varchar2(3) default ''NA'' not null, '||
    ' start_value_dte date, '||
    ' end_value_dte date)' using p_client_id;
    EXECUTE IMMEDIATE 'drop table tmp_dsal_:client_id' using p_client_id;
    END;
    When I execute it, I'm getting the below error. I understand DML statement using bind variable in execute immediate command but not sure on DDL. Is there a workaround on issue or this is limitation?
    SQL> exec dsal(223);
    BEGIN dsal(223); END;
    ERROR at line 1:
    ORA-00922: missing or invalid option
    ORA-06512: at "SYS.DSAL", line 3
    ORA-06512: at line 1
    Appreciate any comment/help. Thanks

    Assuming that all of the client load processes run in seperate session, then do this once in the database and use this global temporary table for the loads. A GTT is a permanent object in the database, but the data it contains is only visible to the session that inserts it. Multiple sessions can access the same GTT at the same time, and will never see each other's data.
    CREATE TEMPORARY TABLE tmp_dsal (
       client_id       NUMBER,
       trade_id        NUMBER,
       ps_id           NUMBER,
       ps_liquid       VARCHAR2(2),
       status_code     VARCHAR2(3) DEFAULT 'NA' NOT NULL,
       start_value_dte DATE,
       end_value_dte   DATE)
    ON COMMIT [PRESERVE|DELETE] ROWSThe on commit clause determines what happens to the data in the GTT when the session that created the data issues a commit. DELETE will automaticall delete all of that session's data while PRESERVE will keep the data until the session either explicitly deletes it or the session ends.
    John

  • Calling unix command in Apex Window

    I am working on a small project where in; it would be handy to run an external plsql in oracle database which calls for unix command such as tail -f alert.log or tail -1000 alert.log when a button is pressed in the application.
    I know the client and server aspect and very difficult to forward the server output to Application specially web based but still thought of trying my luck to get some insights from this forum .
    Is this possible in Apex ?
    UK

    Don't see why not. All the building blocks are there (assuming a recent version of the database, and that 1000 is a realistic metric of the data volume):
    1. A script to run the required UN*X commands.
    2. An initial log extract file created manually using the script.
    3. An external table on the log extract file.
    4. An external scheduler job to rerun the log extract script to refresh the log extract.
    5. An APEX page with a report based on the external table, and a button that calls the external job.
    Note that providing relevant information when asking a question is helpful in determining a solution:
    - APEX version
    - DB version and edition
    - Web server architecture (EPG, OHS or APEX listener)
    - Browser(s) used
    - Theme used
    - Templates used

  • Help needed on SQL Where Command  in APEX

    Hi all !
    Some one know how to use a url referal as a variable with the WHERE command ?
    I Have this url : http://10.10.10.2/apex/f?p=116:20:6597653175650651::NO::P20_TEST_N3:1 and i would like to have the :1 or everything else (depend of the selection of the user) at the end of the url as a variable of the WHERE command in the P20_TEST_N3 page of my application.
    Thanks in advance for your response !

    Hi,
    Try report query
    SELECT GLE1N2_NOM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           AS Services,
      GLE1N2_SOLDES_AC_NET_1           + GLE1N2_SOLDES_AC_NET_1 + GLE1N2_SOLDES_AC_NET_2 + GLE1N2_SOLDES_AC_NET_3 + GLE1N2_SOLDES_AC_NET_4 + GLE1N2_SOLDES_AC_NET_5 + GLE1N2_SOLDES_AC_NET_6 + GLE1N2_SOLDES_AC_NET_7                                                                                                                                                                                                                                                                                                                                                                           AS "Total à ce jour",
      GLE1N2_SOLDES_BC_NET_1           + GLE1N2_SOLDES_BC_NET_2 + GLE1N2_SOLDES_BC_NET_3 + GLE1N2_SOLDES_BC_NET_4 + GLE1N2_SOLDES_BC_NET_5 + GLE1N2_SOLDES_BC_NET_6 + GLE1N2_SOLDES_BC_NET_7                                                                                                                                                                                                                                                                                                                                                                                                    AS Budget,
      ((GLE1N2_SOLDES_BC_NET_1         + GLE1N2_SOLDES_BC_NET_2 + GLE1N2_SOLDES_BC_NET_3 + GLE1N2_SOLDES_BC_NET_4 + GLE1N2_SOLDES_BC_NET_5 + GLE1N2_SOLDES_BC_NET_6 + GLE1N2_SOLDES_BC_NET_7)-( GLE1N2_SOLDES_AC_NET_1 + GLE1N2_SOLDES_AC_NET_1 + GLE1N2_SOLDES_AC_NET_2 + GLE1N2_SOLDES_AC_NET_3 + GLE1N2_SOLDES_AC_NET_4 + GLE1N2_SOLDES_AC_NET_5 + GLE1N2_SOLDES_AC_NET_6 + GLE1N2_SOLDES_AC_NET_7))                                                                                                                                                                                         AS "Variation en $",
      ROUND(((((GLE1N2_SOLDES_BC_NET_1 + GLE1N2_SOLDES_BC_NET_2 + GLE1N2_SOLDES_BC_NET_3 + GLE1N2_SOLDES_BC_NET_4 + GLE1N2_SOLDES_BC_NET_5 + GLE1N2_SOLDES_BC_NET_6 + GLE1N2_SOLDES_BC_NET_7)-( GLE1N2_SOLDES_AC_NET_1 + GLE1N2_SOLDES_AC_NET_1 + GLE1N2_SOLDES_AC_NET_2 + GLE1N2_SOLDES_AC_NET_3 + GLE1N2_SOLDES_AC_NET_4 + GLE1N2_SOLDES_AC_NET_5 + GLE1N2_SOLDES_AC_NET_6 + GLE1N2_SOLDES_AC_NET_7))/(GLE1N2_SOLDES_BC_NET_1 + GLE1N2_SOLDES_BC_NET_2 + GLE1N2_SOLDES_BC_NET_3 + GLE1N2_SOLDES_BC_NET_4 + GLE1N2_SOLDES_BC_NET_5 + GLE1N2_SOLDES_BC_NET_6 + GLE1N2_SOLDES_BC_NET_7))*100),2) AS "Variation %"
    FROM DM2_XWC_GLE1N2
    WHERE GLE1N2_CENTRE_ACT_N1 = :P20_TEST_N3And you have item P20_TEST_N3 ? And you do not have process that clear that item value?
    PS: do not give alias like "Variation en $". Give simple alias and use report attributes to give real column name
    Regards,
    Jari

Maybe you are looking for