Tracing APEX SQL

I'm having a problem with a bit of complex SQL in an Apex region.
I've been pasting bits of SQL into SQL Developer to debug the statements but this is a bit tedious when there are a lot of parameters to manually put in.
Is there a quick way to see the actual SQL statements that Apex is sending to the database (a trace or something)?

Hi Varad
I've found the trace files in udump but as I say there is no sign of any of the SQL Apex is running in page regions.
The files show SQL statements I run through SQL Plus and SQL Developer only.
I also tried adding &p_trace=YES to the end of my URLs but still no sign of any APEX SQL in the trace files.
Edit - I'm looking in the wrong directory. As you say they're in bdump - I'm looking in udump.
Thank you I've found them now.
Edited by: Antilles on Jan 6, 2009 5:50 AM

Similar Messages

  • Unable to edit some functions in APEX Sql Workshop

    Hi
    Users are able to edit some procedures/functions in APEX SQL Work shop. ( Object Browser - functions - EDIT)
    When we press edit we get cursor in the code area and can edit some procedures, But for some procedures when we click edit we don't get cursor in the code area and we are not able to edit the functions/procedures.
    I am using fairfox browser.This is happening with only some. Is there any security.grants issue???
    Thanks
    Sree

    Hi
    This is happening with some procedures, For others this works fine.In IE I get red block in code area.
    EDIT is working for some procedures so I think may not be the browser issue.
    Thanks
    Sree

  • APEX - SQL Workshop - SQL Commands : Issue in extracting hour from date

    Hello All,
    When I run
    SELECT to_char(sysdate,'hh24') from DUALon SQL Developer and APEX SQL Commands window, both are returning correct hour value.
    But when I run
    SELECT to_char(i_date,'hh24') from t_factthen I'm getting correct values in SQL Developer but not in APEX SQL Commands window. In APEX, it always returns '00' for all rows. I'm totally lost what could be the issue with APEX? Any suggestions?
    DB Version: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    APEX Version: 4.0.1.00.03
    Web Server : EPG
    Table structure:
    CREATE TABLE  "T_FACT"
       (     "TF_KEY" NUMBER,
         "TOWER" VARCHAR2(20),
         "LOC_ID" NUMBER,
         "TF_CAT" VARCHAR2(35),
         "EQP_NAME" VARCHAR2(35),
         "I_DATE" DATE,
         "MON_CATEGORY" VARCHAR2(35),
         "EVENT" VARCHAR2(35),
         "UNIT" VARCHAR2(35),
         "TF_VALUE" NUMBER
       );Regards,
    Hari

    Hi,
    Just silly question case you have same table in multiple schemas:
    You run query in same schema?
    Regards,
    Jari

  • Apex SQL Code

    Hi guys:
    I'm not an expert in SQL and I saw what Apex is doing is very useful.
    Can I see the SQL code generated by Apex -by woking in Apex environment-

    With a little research on tracing, you should be able to easily get back the SQL statements that APEX uses, but not the PL/SQL. The PL/SQL is wrapped, so you won't be able to see that. With that said, the SQL is nothing special. That's is not a knock on the APEX team (I used to be on it), it's just nothing you couldn't find examples of throughout asktom.oracle.com.
    The APEX Team follows some pretty simple and well known design principals that keeps the code very efficient. Above all else, the principal of designing the data structures for how they'll be accessed, not how they make sense to the developers is key. Since the nature of the APEX data structures is 95% read, they may make the edit of a page less efficient and do some extra work up front to make the display of that page as efficient and fast as possible.
    In keeping with that theme, they will create indexes on tables that makes the reads as fast as possible, but again may make the create / edit of a page much slower due to additional index maintenance.
    You'll notice that all of the tables have a single primary key column; none of this 3 column composite key stuff you see discussed all over this forum. This makes foreign keys, queries, updates, and deletes much easier on the programmers. I've stopped responding to the questions about DML on tables with 3+ composite key columns or tables with no primary key at all. IMHO it's just not good database design, but people get very defensive of their data models. So, I've given up. My advise to you is to stick with a single, random primary key that will never ever be changed. Also please ignore the flame war this is likely to start in this thread ;)
    I'm also a big believer in instrumenting your code. This is definately Tom Kyte's influence on me, but also the APEX team's. Notice that APEX has a debug mode with timing, so they've clearly instrumented their code. You can see an example of this in a wiki project I'm working on now. Take a look at this package. Notice how every procedure in there has 2 "$IF $$debug $THEN" blocks, 1 at the beginning and one at the end. This is using conditional compilation and allows me to recompile this package with debug on so I can see how much time each procedure is taking. I can't stress this enough, instrument your code.
    Other good SQL principals to keep in mind include:
    - Don't call functions in SQL predicates (where clauses) as it's VERY slow. If you need to call a function such as upper, make sure you use a function-based index on that column.
    - Do everything in bulk SQL operations that you can. A lot of people resort to PL/SQL loops for processing. Tom Kyte refers to this as "row-by-row or slow-by-slow".
    - Don't call functions in SQL at all if you are returning a lot of rows. That function will be called once for every row and you'll context switch between SQL and PL/SQL once for every row.
    - For your most popular queries, particularly on "wide" tables, if you index every column in the select and predicates section, the data can be returned from just the index without going back to the table.
    - Materialized views are your friend when you want to pre-compute the answers to your most expensive questions.
    - Buy Tom Kyte's books. This is not a commercial for them, but the philosophy contained in those books has absolutely influenced the philosophy of the APEX team... They all used to work together on a daily basis.
    Hope this helps,
    Tyler

  • TRACING IN SQL*NET V2

    제품 : SQL*NET
    작성날짜 : 1997-10-10
    Introduction
    ~~~~~~~~~~~~
    For most problems you need to identify the relevant parts of a
    connection to trace. To do this consider which scenario you are
    having problems with and where tracing needs to be enabled.
    Note that tracing produces a lot of output , especially at higher
    trace levels.
    There are 3 main areas of SQL*Net that can produce trace output:
    1 = the SQL*Net 'client'
    2 = the 'listener' process
    3 = the SQL*Net 'server'.
    a) Establishing a connection:
    Client ----> Listener ----> Server
    1 2 3
    b) An established connection:
    Client --------> Server
    1 3
    c) Opening a database link:
    Client ----> Server ----> Listener -----> Server2
    1 3 1 2 3
    Note here that the Oracle server process is also a SQL*Net
    client when it makes an outgoing call to a listener to
    open a database link. Database links are OPENED when first
    used. They should then remain open until closed.
    d) An established database link:
    Client ----> Server -----> Server2
    1 3 1 3
    In each case here there are several potential sampling points. You
    should be able to identify quickly which of these scenarios matches
    your setup. As these scenarios are likely to involve connections
    between different machines you should remember that tracing for any
    process is controlled by the configuration details that the process
    reads WHEN IT IS STARTED. This is especially important when looking
    at MTS connections as the SQL*Net server is the 'dispatcher' process.
    Some dispatchers are started when the database instance is started
    and others may start at a later time (on demand). Each dispatcher will
    read their SQL*Net configuration WHEN THEY START.
    7.2 Client Tracing
    ~~~~~~~~~~~~~~
    For client TOOLS edit or create the file $HOME/.sqlnet.ora and add
    the lines:
    trace_level_client=16
    trace_file_client=cli
    trace_directory_client=/tmp # Or a known directory
    trace_unique_client=true # Add '_pid' to trace filename
    This will turn on FULL tracing for your user account only producing
    output in a file called /tmp/cli_<PID>.trc .
    (For some SQL*Net versions the file will be just /tmp/cli.trc)
    For client 'ORACLE' process (as in the case of database links) put this
    same information into $TNS_ADMIN/sqlnet.ora file.
    On versions up to and including Oracle 7.0.16 client trace may not
    add a process ID to the name of the trace file. This means two
    processes may end up writing to the same trace file unless you
    take care to control which processes write trace output to each file.
    7.3 Listener Tracing
    ~~~~~~~~~~~~~~~~
    Listener tracing can ONLY be configured in the listener.ora file.
    Add the lines below to the listener.ora file:
    trace_level_listener=16
    trace_file_listener=listener
    trace_directory_listener=/tmp # Or a known directory
    This will define FULL listener tracing to the file /tmp/listener.trc.
    You can enable this tracing by either:
    lsnrctl reload
    OR
    lsnrctl stop;
    lsnrctl start;
    TCP/IP
    ~~~~~~
    It is often useful to confirm that a listener is listening on a
    specified address. Most Unix machines include a command called
    'netstat' (Often in /etc or in /usr/etc). The command netstat -a
    should list all TCP/IP end points on which a listener is listening.
    Eg:
    For a listener listening on HOST=... PORT=1580 there should be a
    netstat entry of the form:
    RecvQ SendQ Local Address Foreign Address TCP state
    0 0 *.1580 *.* LISTEN
    Note: Some versions of netstat will only list established connections
    and not listen end points. See the man page on your machine.
    7.4 Server Tracing
    ~~~~~~~~~~~~~~
    Server side trace is not required as often as the other two traces
    mainly because most problems are related to establishing a connection.
    Once a connection has been established the client and server processes
    are communicating. It is sometimes useful to see exactly what SQL
    commands have been received by the server, and what data it has sent
    back out.
    The file $TNS_ADMIN/sqlnet.ora controls the server side tracing. Add
    the lines below to this file:
    trace_level_server=16
    trace_file_server=server
    trace_directory_server=/tmp # Or a known directory
    Output should be sent to the file /tmp/server_<PID>.trc
    Note: Server side tracing acts on the SQL*Net server side.
    For dedicated connections this is the Oracle process on the
    server machine.
    For MTS connections this is the DISPATCHER and NOT the shared
    server. Data is passed between the dispatcher and the shared
    servers via the SGA and this does NOT involve SQL*Net.
    It is also important to note that as a dispatcher handles
    several client processes the dispatcher trace output can be a
    mix of trace from many client processes making it VERY difficult
    to follow. The general advice for such problems is:
    a) See if the problem reproduces WITHOUT using MTS - if
    so the trace is much cleaner
    b) If a problem ONLY reproduces under MTS ensure the machine
    is in a controlled environment so you can be sure that only
    YOUR process is using the dispatcher.
    7.5 Trace Summary
    ~~~~~~~~~~~~~
    1) Identify where you need to trace.
    2) Identify which files on which machines control tracing at these
    points. Tracing is controlled in the following files:
    Client Server Listener
    ~~~~~~ ~~~~~~ ~~~~~~~~
    Files: $HOME/.sqlnet.ora sqlnet.ora listener.ora
    sqlnet.ora
    3) Add in the relevant trace parameters (See Below)
    4) Restart any processes that need to read the new trace values.
    Reload the listener as required.
    5) Reproduce your problem
    6) Save all your trace output immediately
    7) Disable the tracing
    7.6 Main Trace Parameters
    ~~~~~~~~~~~~~~~~~~~~~
    trace_level_listener = off
    trace_file_listener = Filename *1
    trace_directory_listener = Directory *2
    *1 Unquoted (") filenames will be translated into lower case.
    *2 You CANNOT use environment variables in the Filename or Directory
    name.
    7.7 Diagnosing Trace output
    ~~~~~~~~~~~~~~~~~~~~~~~
    Trace output can be very difficult to follow. Before looking at a
    trace file make sure:
    a) You are familiar with the sequence of events in setting up
    a connection. SQL*Net connections follow a sequence of
    events - you will need to determin where in the sequence
    the problem occurs.
    b) Do not be misled by error reports in the trace files. You
    must follow the context of the errors - an error may be
    quite valid at that point in a sequence. Eg: For client
    connections a list of addresses to call is built - if the
    first address yeilds no response the next address is tried.
    This next address may yeild a response and the 'true' error
    occurs at this point in the sequence.
    c) Do not be misled by unusual 'Bequeath' connections in the
    trace. If an error is received over SQL*Net the client
    may use a "Bequeath" operation to spawn an oracle process
    which it then uses to get the TEXT of the error. A very short
    exchange of packets occurs and the bequethed process exits.
    The 'TRUE' problem is likely to be before this bequeath
    operation.
    Useful trace 'tags':
    The following are useful items to follow in trace files - these
    are not guaranteed to be valid across all SQL*Net releases and
    are for guidance only. Entries are assumed to be taken at trace
    level 16 to allow data packets to be seen. This will produce a
    LOT of trace output.
    -<ERROR>-
    Error information follows. Remember the error may be acceptable
    osntns: Calling address
    Shows address list constructed for a call OUT to a listener
    nricall: Making call with following address information: ...
    Shows the ACTUAL address being called from the above list
    nsopen: entry
    We are about to try and open a connection.
    nsopen: transport is open
    nsopen: error exit
    A connection to the called address has been made / failed.
    nsclose: ...
    An established connection is being closed - check nearby
    for errors.
    nscall: redirected
    The client has been redirected to a differenct address.
    The next step should be to call the new address. The address
    should appear in an earlier data packet.
    nspsend / nsprecv
    Outgoung / Incoming data

    This forum is for Oracle Migration Workbench issues, i.e. migration using the workbench from a non Oracle database to an Oracle database.
    Here are some pointers that may be useful, but you may need to get more information elsewhere, for example Oracle Customer Support.
    a Oracle 7.1 client (including your example) will connect to an Oracle 8.1.5 server.
    Is the server correctly configured (can a client connect from another machine)?
    Tracing can be turned on in the client, server and/or listener to get further information.
    Turloch

  • CLIENT SIDE TRACING IN SQL*NET V2

    제품 : SQL*NET
    작성날짜 : 1997-10-10
    Client Tracing
    ~~~~~~~~~~~~~~
    1) Set the environment variable TNS_ADMIN to the directory where the
    tnsnames.ora and listener.ora files exist.
    The default location is $ORACLE_HOME/network/admin. Set $TNS_ADMIN
    to this if it is not set. This ENSURES you know which files you are
    using.
    2) Start the listener: lsnrctl
    > set password <password>
    > start
    Note any errors. If you do not have a password set then ignore the
    set password command.
    3) If the listener started, start the database.
    4) Create a file in $HOME called .sqlnet.ora and add the lines:
    trace_level_client= 16
    trace_file_client=client
    trace_directory_client= /tmp (or similar)
    trace_unique_client=true
    5) Try to connect from SQL*Plus thus:
    sqlplus username/password@alias
    or
    sqlplus username/password
    substituting a suitable alias.
    6) If you get an error we may need to see the client trace file
    /tmp/client_<PID>.trc where <PID> is the process ID of the
    client process (*1).
    This will be quite large so it is best to FAX or EMAIL it.
    *1 Note: On earlier versions of SQL*Net the filename may NOT have
    the process ID appended to it.
    Listener Tracing:
    ~~~~~~~~~~~~~~~~~
    1) Edit your $TNS_ADMIN/listener.ora file and add the lines:
    TRACE_LEVEL_LISTENER = 16
    TRACE_DIRECTORY_LISTENER = /tmp
    TRACE_FILE_LISTENER = "listener"
    2) Stop and restart the listener:
    lsnrctl stop
    lsnrctl start
    Output should go to /tmp/listener.trc

    By default in 11g traces will go to the ADR which is a new feature.
    To disable that feature add the following line to your sqlnet.ora
    diag_adr_enabled =OFF
    [oops] saw that this is over a month old this post - sorry about that!
    hope that helps
    John
    Edited by: Johnsung on Sep 27, 2012 3:59 PM

  • APEX SQL Reports bug? Apex 3.0.1 Oracle 10g XE

    Hi
    I have a few SQL Based reports and I'm having performance problems with showing them over remote connections.
    I have looked at the HTML for the page produced from these reports and I see something very strange.
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';
                rowStyleHover[50]='';
                rowActive[50]='N';
                rowStyle[50]='';This goes on for pages and pages and in fact it takes up 6.60MB of data on a single webpage. After a bit of testing, I discovered this only happens on reports that have grouping.
    Is there a workaround for this?
    Regards
    Adam

    I note that the Licensing document at http://www.oracle.com/pls/xe102/homepage does not specify the version of Application Express.
    I also note that the APEX version information is not found on the XE product page http://www.oracle.com/technology/products/database/xe/index.html
    I also note that Oracle publishes the upgrade and the upgrade steps - specifically for XE - and still does not discuss any restrictions by version.
    I also note that there is no license restriction or fee required for Apex at any version based on the XE specific and the regular 10gR2 licensing doc at http://www.oracle.com/pls/db102/homepage
    For ME, the above is sufficient to assume that Apex 3 is included. Especially if I take a soft copy of the referenced license doc PDFs.

  • Apex - SQL query report.

    Hi,
    Apex - 4.0 and Oracle -11g
    I m having a SQL Query report.
    Query
    SELECT htmldb_item.hidden(1,id) id,
      htmldb_item.select_list_from_query_xl(2,name,'SELECT name ,                                                              
    deptid                                                     
    FROM  emp                                                     
    WHERE name like ''E%''') name,
      htmldb_item.select_list_from_query_xl(3,deptname,'SELECT  deptname from dept where deptid =   ???') deptname
    FROM tabel
    My problem, in the report when the Select list for 'name' has been choosen , then it should retrieve the deptname based on the 'name'.
    Is it possible ?

    you want  select list value should affected in SQL report? i mean redirect and set value to SQL report?

  • UTL_HTTP, different error codes: APEX SQL Commands vs. Oracle SQL Developer

    Hi, omniscient all!
    I have a code sample where I try to request some URL from an inactive server:
    declare
      l_text varchar2(32000);
    begin
      l_text := utl_http.request('http://inactive.url:7777');
    exception
      when others then
        declare
          l_errcode number := utl_http.get_detailed_sqlcode;
        begin
          dbms_output.put_line(l_errcode);
          dbms_output.put_line(sqlerrm(l_errcode));
        end;
    end;
    /When I run it in Oracle SQL Developer it shows:
    anonymous block completed
    -12541
    ORA-12541: TNS:no listenerWhen I run it in the APEX 4.0 SQL Commands window it shows:
    -29263
    ORA-29263: HTTP protocol error
    Statement processed.The question is: why?
    In real world, I need to make a HTTP POST request (no problem) and catch some exceptions. But instead of the usual ORA-12541 error APEX throws an ORA-29261 one.

    Any thoughts?

  • Apex & SQL server reporting services

    Hi,
    Has anyone integrated SQL server reporting services with apex?
    I have a client that is running both Microsoft dynamics using SQL server reporting services and oracle.
    I am building them a web application on the oracle database and would like to use apex for the application and piggy bank onto the SSRS.
    The alternative is pl/PDF, which is too complex, jasper - can't see my client going down this road or bi publisher which is too expensive.
    I would love to use apex as it is a great tool, but unless I can integrate with SSRS I suspect I'll have to use ASP.net
    Thanks & happy new year

    PLPDF is not complex at all. Just skim through their sample reports and try to build some of yours, Then you'll realize how easy and powerful it is.

  • Does CTAS evaluate "order by" in APEX SQL Command window?

    I need to recreate my table in order to change the column order. When I use the SQL Commands window and run the SQL, it runs successfully, creates the new table, but doesn't reorder the columns.
    Is this expected behavior?

    user648567 wrote:
    Please update your forum profile with a real handle instead of "user648567".
    I need to recreate my table in order to change the column order. When I use the SQL Commands window and run the SQL, it runs successfully, creates the new table, but doesn't reorder the columns.
    What do you mean by "order by"?
    Using an "ORDER BY" clause in a CTAS (in APEX or anywhare else) will have no effect on column order, which is determined by the order in which columns appear in the projection. It will affect the order in which rows are returned by that query, and it will not determine the order in which rows will be returned by querying the new table in the future.
    To change the column order the columns in the SELECT clause of the CTAS would have to be in a different order from those in the original table,

  • Tracing / Profiling SQL statements in Sybase

    Hi Guys, I would like to capture the SQL statements that have been fired from a web app (bit like SQL Server's profiler). Is there such a tool / facility?Please note that I cannot use dbcc commands like traceon as DBA's wont grant me sa rights (in dev...crazy eh).
    Is there any easy way of doing this?
    Thanks

    General comment about MDA monitoring (tools) ...
    If the local DBAs don't have any tools for monitoring MDA tables there are a few 3rd party tools that can provide MDA monitoring (ie, little/no programming required by the local DBAs).
    Most of these 3rd party tools cost $$ to purchase, and each one has its strengths and weaknesses.
    There is one 3rd party tool (that I know of) that is free, highly configurable, and IMHO does a very good job at collecting/presenting MDA data (especially from a historical perspective): ASEMON
    I personally:
    - use ASEMON for P&T work
    - install/configure ASEMON at my clients when a) they don't already have a MDA monitoring capability or b) they want to free up the $$ they're paying for some other 3rd party tool
    NOTE: As Mike has pointed out, MDA collections can grow quite large and rather quickly.  This is true with ASEMON, too.

  • Tracing of sql statements

    in the debug level normally we can trace the step by step. but how can we trace the sql statements.

    In Debug mode
    Go to menu Break Poiunts-> Break Point At -> Statement
    Give the Break Point At Statement As  SELECT
    Now you will stop for each and every select in the Debug mode.
    In general we use Sql trace.

  • Create OS filesystem Directory Using Apex, SQL commands of SQL worshop

    I am using Apex 3.0, Oracle Database 10g and IE 6.5
    Code Here:
    Create or replace Directory 'Data_Dir' as 'C:\temp\'
    Error Message:
    Insufficient Priveleges
    This code runs fine when I access server remotely. Our projec team has no APex experience. our workspace administrator does not know how to grant appropriate privileges to my user accounts.
    Please provide us step by step help immediately on 'How to create OS Directory from APEX'.
    Thank you very much.

    Please provide us step by step help immediately on 'How to create OS Directory from APEX'.Please bear in mind that most people in this forum are doing it in their own time, without any financial gain from it. If you have an urgent support issue that is critical to your business and you want it answered immediately you should contact Oracle support, otherwise remember that you may need to wait some time for someone to answer your question here (especially considering it's the weekend).
    However, in answer to your question, yes your DBA will need to grant 'create directory' or 'create any directory' to the user you've specified. If you're saying it runs fine when you access the server remotely (I'm assuming you mean via SQLPlus etc), that probably suggests your DBA has granted the right via a role which won't work while connected in the APEX environment (you will need to explicitly grant the permission to the user).
    Hope this helps.

  • P_trace=YES not working in XE

    Hi,
    I'm trying to do a trace on a report. When I append &p_trace=YES to my URL there's no trace file generated in the udump directory. Does anyone know why this wouldn't work? Here's some information about the database and OS:
    Ex URL: http://fcapex40.clarifit.com:8080/apex/f?p=101:4:4002989996060036::NO&p_trace=YES
    SQL> SHOW PARAMETERS user_dump_dest
    NAME                                 TYPE        VALUE
    user_dump_dest                       string      /usr/lib/oracle/xe/app/oracle/admin/XE/udumpOracle Database 10g Express Edition Release 10.2.0.1.0 - Product
    Fedora release 12 - 2.6.31.5-127.fc12.i686.PAE
    Martin
    http://www.talkapex.com

    Hi,
    I did found this post
    Re: Tracing APEX SQL
    >
    If your APEX installation uses the Embedded pl/sql gateway,the trace files will be in the 'bdump' directory. The file names will have the string pattern 's00' within them.
    >
    Regards,
    Jari

Maybe you are looking for

  • Want to deploy BI Office.ear file on weblogic version 10

    Hi, I want to deploy BIOffice.ear file on weblogic 10version. As per oracle weblogic version 9 is supported with OBIEE 10.2.3.4.1 version. Please let me know if anyone hase done that. Thanks Nitasha Edited by: user13005863 on Jan 11, 2011 4:03PM

  • How to fill the "budget" in an initiative in SEM BSC

    Good Afternoon for all! We have a Balanced Scorecard implemented in SAP SEM BSC, using SAP BW. Our Balanced Scorecard actually manages ratios, objectives, perspectives, strategy and scorecard. Now, we are trying to use "iniatiatives" and we have usin

  • Create unique filename by auto-incre​ment path

    I needed a program that would take in a pathname, see if the file name already existed at that location, and if so it needed to auto-increment the file name. I wanted it to work the way windows inherently does when you copy a file of the same name in

  • List of all computers in network

    dear I want a list of all computers in the same network on which my vi is running. i.e. if my vi is running on one computer i want the list of all computers which are connected on same network. please suggest me a good solution. falgandha

  • FM to search for Contracts related to Ibase (CRM)

    Hi there, Is there any FM that can be used to search for contracts that are attached to the Ibase? I can't seem to find any suitable way to get this data... Thanks, Josh