Problem with connect_by_isleaf in apex

Hello,
I'm having problem with a query that, executed in sqlplus and in apex htmldb workshop, gives me different results !
try the following :
CREATE TABLE test_tab (ID INT PRIMARY KEY, ID_MASTER INT, DESCRIPTION VARCHAR2(100),PLACE INT);
INSERT INTO test_tab (ID,ID_MASTER,DESCRIPTION,PLACE) VALUES (1,NULL,'ROOT',1);
INSERT INTO test_tab (ID,ID_MASTER,DESCRIPTION,PLACE) VALUES (2,1,'LEVEL_ONE_A',1);
INSERT INTO test_tab (ID,ID_MASTER,DESCRIPTION,PLACE) VALUES (3,1,'LEVEL_ONE_B',2);
INSERT INTO test_tab (ID,ID_MASTER,DESCRIPTION,PLACE) VALUES (4,2,'LEVEL_TWO_A',1);
INSERT INTO test_tab (ID,ID_MASTER,DESCRIPTION,PLACE) VALUES (5,2,'LEVEL_TWO_B',2);
INSERT INTO test_tab (ID,ID_MASTER,DESCRIPTION,PLACE) VALUES (6,5,'LEVEL_THREE_A',1);
INSERT INTO test_tab (ID,ID_MASTER,DESCRIPTION,PLACE) VALUES (7,6,'LEVEL_FOUR_A',2);
INSERT INTO test_tab (ID,ID_MASTER,DESCRIPTION,PLACE) VALUES (8,1,'LEVEL_ONE_C',3);
select connect_by_isleaf LEAF,DESCRIPTION,PLACE
from test_tab
start with id = 1 connect by prior id = id_master
this gives following correct result in sqlplus :
0 ROOT      1
0 LEVEL_ONE_A 1
1 LEVEL_TWO_A 1
0 LEVEL_TWO_B 2
0 LEVEL_THREE_A 1
1 LEVEL_FOUR_A 2
1 LEVEL_ONE_B 2
1 LEVEL_ONE_C 3
If i execute this in htmldb , on the same database, i get :
0     ROOT     1
0     LEVEL_ONE_A     1
1     LEVEL_TWO_A     1
1     LEVEL_TWO_B     2
0     LEVEL_THREE_A     1
1     LEVEL_FOUR_A     1
1     LEVEL_ONE_B     2
1     LEVEL_ONE_C     3
-> level_two_b should be 0 !!
I found a bug that describes this (3900842) but that was executed on the DB. Isn't a query executed in the sqlworkshop or in sqlplus, executed in the same sql engine ?
grtz,
Chris.

Looks like it's still a database bug. In 10.1.0.4, I get the correct results in sqlplus from the query but I get incorrect results in sqlplus if I do it like this:set serveroutput on
declare
    l_cursor    integer := DBMS_SQL.OPEN_CURSOR;
    l_desc_tbl  DBMS_SQL.DESC_TAB2;
    l_ignore    number;
    l_col_cnt   integer;
    l_col_val   varchar2(32767);
BEGIN
    DBMS_SQL.PARSE(l_cursor,
'select connect_by_isleaf LEAF,DESCRIPTION,PLACE from test_tab start with id = 1 connect by prior id = id_master',
        DBMS_SQL.NATIVE);
    l_ignore := DBMS_SQL.EXECUTE(l_cursor);   
    DBMS_SQL.DESCRIBE_COLUMNS2(l_cursor, l_col_cnt, l_desc_tbl );
    for i in 1 .. l_col_cnt loop              
        DBMS_SQL.DEFINE_COLUMN(l_cursor, i, l_col_val, 32767 );
    end loop;
    while (DBMS_SQL.FETCH_ROWS(l_cursor) > 0)
    loop
        for i in 1 .. l_col_cnt loop
            DBMS_SQL.COLUMN_VALUE(l_cursor, i, l_col_val);           
            -- print the column value
            dbms_output.put_line(l_col_val);
        end loop;
        dbms_output.put_line(chr(10));      
    END LOOP;
    if DBMS_SQL.IS_OPEN(l_cursor) then
        DBMS_SQL.CLOSE_CURSOR(l_cursor);
    end if;
END;
/Scott

Similar Messages

  • Problem with XML in APEX ORA-06502

    i, I have a problem with XML generation, I developed an application in APEX, and in a html page I have this process:
    declare
    l_XML varchar2(32767);
    begin
    select xmlElement
    "iva",
    xmlElement("numeroRuc",J.RUC),
    xmlElement("razonSocial", J.RAZON_SOCIAL),
    xmlElement("idRepre", J.ID_REPRE),
    xmlElement("rucContador", J.RUC_CONTADOR),
    xmlElement("anio", J.ANIO),
    xmlElement("mes", J.MES),
    xmlElement
    "compras",
    select xmlAgg
    xmlElement
    "detalleCompra",
    --xmlAttributes(K.ID_COMPRA as "COMPRA"),
    xmlForest
    K.COD_SUSTENTO as "codSustento",
    K.TPLD_PROV as "tpldProv",
    K.ID_PROV as "idProv",
    K.TIPO_COMPROBANTE as "tipoComprobante",
    to_char(K.FECHA_REGISTRO, 'DD/MM/YYYY') as "fechaRegistro",
    K.ESTABLECIMIENTO as "establecimiento",
    K.PUNTO_EMISION as "puntoEmision",
    K.SECUENCIAL as "secuencial",
    to_char(K.FECHA_EMISION, 'DD/MM/YYYY') as "fechaEmision",
    K.AUTORIZACION as "autorizacion",
    to_char(K.BASE_NO_GRA_IVA, 9999999999.99) as "baseNoGraIva",
    to_char(K.BASE_IMPONIBLE, 9999999999.99) as "baseImponible",
    to_char(K.BASE_IMP_GRAV, 9999999999.99) as "baseImpGrav",
    to_char(K.MONTO_ICE, 9999999999.99) as "montoIce",
    to_char(K.MONTO_IVA, 9999999999.99) as "montoIva",
    to_char(K.VALOR_RET_BIENES, 9999999999.99) as "valorRetBienes",
    to_char(K.VALOR_RET_SERVICIOS, 9999999999.99) as "valorRetServicios",
    to_char(K.VALOR_RET_SERV_100, 9999999999.99) as "valorRetServ100"
    xmlElement
    "air",
    select xmlAgg
    xmlElement
    "detalleAir",
    xmlForest
    P.COD_RET_AIR as "codRetAir",
    to_char(P.BASE_IMP_AIR, 9999999999.99) as "baseImpAir",
    to_char(P.PORCENTAJE_AIR, 999.99) as "porcentajeAir",
    to_char(P.VAL_RET_AIR, 9999999999.99) as "valRetAir"
    from ANEXO_COMPRAS P
    where P.ID_COMPRA = K.ID_COMPRA
    AND P.ID_INFORMANTE_XML = K.ID_INFORMANTE_XML
    xmlElement("estabRetencion1", K.ESTAB_RETENCION_1),
    xmlElement("ptoEmiRetencion1", K.PTO_EMI_RETENCION_1),
    xmlElement("secRetencion1", K.SEC_RETENCION_1),
    xmlElement("autRetencion1", K.AUT_RETENCION_1),
    xmlElement("fechaEmiRet1", to_char(K.FECHA_EMI_RET_1,'DD/MM/YYYY')),
    xmlElement("docModificado", K.DOC_MODIFICADO),
    xmlElement("estabModificado", K.ESTAB_MODIFICADO),
    xmlElement("ptoEmiModificado", K.PTO_EMI_MODIFICADO),
    xmlElement("secModificado", K.SEC_MODIFICADO),
    xmlElement("autModificado", K.AUT_MODIFICADO)
    from SRI_COMPRAS K
    WHERE K.ID IS NOT NULL
    AND K.ID_INFORMANTE_XML = J.ID_INFORMANTE
    AND K.ID BETWEEN 1 AND 25
    ).getClobVal()
    into l_XML
    from ANEXO_INFORMANTE J
    where J.ID_INFORMANTE =:P3_MES
    and J.RUC =:P3_ID_RUC
    and J.ANIO =:P3_ANIO
    and J.MES =:P3_MES;
    --HTML
    sys.owa_util.mime_header('text/xml',FALSE);
    sys.htp.p('Content-Length: ' || length(l_XML));
    sys.owa_util.http_header_close;
    sys.htp.print(l_XML);
    end;
    Now my table has more than 900 rows and only when I specifically selected 25 rows of the table "ANEXO_COMPRAS" in the where ( AND K.ID BETWEEN 1 AND 25) the XML is generated.+
    I think that the problem may be the data type declared "varchar2", but I was trying with the data type "CLOB" and the error is the same.+
    declare
    l_XML CLOB;
    begin
    --Oculta XML
    sys.htp.init;
    wwv_flow.g_page_text_generated := true;
    wwv_flow.g_unrecoverable_error := true;
    --select XML
    select xmlElement
    from SRI_COMPRAS K
    WHERE K.ID IS NOT NULL
    AND K.ID_INFORMANTE_XML = J.ID_INFORMANTE
    ).getClobVal()
    into l_XML
    from ANEXO_INFORMANTE J
    where J.ID_INFORMANTE =:P3_MES
    and J.RUC =:P3_ID_RUC
    and J.ANIO =:P3_ANIO
    and J.MES =:P3_MES;
    --HTML
    sys.owa_util.mime_header('text/xml',FALSE);
    sys.htp.p('Content-Length: ' || length(l_XML));
    sys.owa_util.http_header_close;
    sys.htp.print(l_XML);
    end;
    The error generated is ORA-06502: PL/SQL: numeric or value error+_
    Please I need your help. I don`t know how to resolve this problem, how to use the data type "CLOB" for the XML can be generate+

    JohannaCevallos07 wrote:
    Now my table has more than 900 rows and only when I specifically selected 25 rows of the table "ANEXO_COMPRAS" in the where ( AND K.ID BETWEEN 1 AND 25) the XML is generated.+
    I think that the problem may be the data type declared "varchar2", but I was trying with the data type "CLOB" and the error is the same.+
    The error generated is ORA-06502: PL/SQL: numeric or value error+_
    Please I need your help. I don`t know how to resolve this problem, how to use the data type "CLOB" for the XML can be generate+The likeliest explanation for this is that length of the XML exceeds 32K, which is the maximum size that <tt>htp.p</tt> can output. A CLOB can store much more than this, so it's necessary to buffer the output as shown in +{message:id=4497571}+
    Help us to help you. When you have a problem include as much relevant information as possible upfront. This should include:
    <li>Full APEX version
    <li>Full DB/version/edition/host OS
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s) (making particular distinction as to whether a "report" is a standard report, an interactive report, or in fact an "updateable report" (i.e. a tabular form)
    And always post code wrapped in <tt>\...\</tt> tags, as described in the FAQ.
    Thanks

  • Problems with FOP/Apache - Apex PDF printing

    Hello,
    I have configured
    Apex 3.0.1
    iAS 10.1.3.x (http + modplsql)
    OC4J 10.1.3.3 (stand alone)
    FOP for PDF printing
    RDBMS 9.2.0.8 64bits (Solaris)
    following the OTN recipee and this setup does not seem to work for all cases.
    For instance, using the Apex admin interface, I go to the monitoring page :
    Home -> Monitor Page -> Login Attempts
    And click on the Print link (left bottom corner of the page) , it works o.k, the PDF is generated correctly.
    However, if I go to
    Home -> utilities -> Object Reports -> Table Storage Sizes
    and click on the Print link, it does not work. A pdf file is generated with the following text
    <HTML><HEAD><TITLE>500 Internal Server Error</TITLE></HEAD>
    <BODY><H1>500 Internal Server Error</H1>
    <PRE>Servlet error: An exception occurred. The current application deployment descriptors do not allow for including it in this response. Please consult the application log for details.</PRE>
    </BODY>
    </HTML>
    If I check in the application log I see the following error
    07/08/08 11:52:21.584 fop: Servlet error
    oracle.xml.xpath.XPathException: Error in expression: './/BYTES/1024/1024'.
    at oracle.xml.xslt.XSLBuilder.startElement(XSLBuilder.java:468)
    at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1288)
    at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:336)
    at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:303)
    at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:320)
    at oracle.xml.xslt.XSLProcessor.newXSLStylesheet(XSLProcessor.java:712)
    at oracle.xml.xslt.XSLStylesheet.<init>(XSLStylesheet.java:321)
    at oracle.xml.parser.v2.XSLStylesheet.<init>(XSLStylesheet.java:114)
    at apex_fop._jspService(_apex__fop.java:71)
    at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.3.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
    at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
    at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
    at java.lang.Thread.run(Thread.java:595)
    I do not think it is related to a config/installation issue. It seems a parsing issue with the SQL stmt being executed, but it works for some SQL code and not for other.
    Some users did notice this problem this morning when testing the new PDF printing.
    Any ideas ?
    Nilo Segura
    CERN.

    ups.. sorry for the ugly formatting exercise...

  • Problem with PopupReturn in Apex 3.1

    I have a popup page (for saved searches), and one of the columns is a checkbox. The user can click a checkbox to select a saved search criteria, and the value is passed back to the calling page and the search is automatically executed.
    This worked fine in 3.0, but now that I'm on 3.1, it's not working the same anymore. Now, instead of passing back a number, the value being passed back is an object.
    The code from the popup window is:
    select apex_item.checkbox(1,seq,'onClick="javascript:$v_PopupReturn(this,''P3_SEQ'');$v_PopupReturn(''N'',''P3_SHOW_SAVE_BUTTON'');$v_PopupReturn(''N'',''P3_USE_CACHED_SEARCH'');window.opener.doSubmit();"') this,
    apex_item.display_and_save(2,save_date) date_saved,
    apex_item.display_and_save(3,name_of_search) search_name,
    apex_item.display_and_save(4,where_clause) where_clause,
    apex_item.display_and_save(5,search_area) search_area,
    apex_item.checkbox(6,seq) del
    from playlist
    where userid = v('APP_USER')
    The report region that then executes the search based upon the passed value is:
    declare
    v_stmnt varchar2(4000) := null;
    v_where varchar2(4000) := null;
    v_area varchar2(4000) := null;
    v_seq number := null;
    begin
    v_seq := APEX_UTIL.GET_SESSION_STATE('P3_SEQ');
    if :P3_SEQ IS NULL THEN
    v_where := :P3_WHERE_CLAUSE;
    v_area := :P3_SEARCH_AREA;
    else
    SELECT where_clause, search_area
    INTO v_where, v_area
    FROM playlist
    WHERE seq = v_seq;
    end if;
    v_stmnt := 'SELECT dep_id, dev_st, oper_tp, sig, NAME, ';
    v_stmnt := v_stmnt||'commod, commod_group, ';
    v_stmnt := v_stmnt||'MIN (usgs_num) KEEP (DENSE_RANK FIRST ORDER BY mt_rec ASC) usgs_num, ';
    v_stmnt := v_stmnt||'MIN (model_name) KEEP (DENSE_RANK FIRST ORDER BY mt_rec ASC) model_name, ';
    v_stmnt := v_stmnt||'MIN (country) KEEP (DENSE_RANK FIRST ORDER BY l_line ASC) country, ';
    v_stmnt := v_stmnt||'MIN (state_prov) KEEP (DENSE_RANK FIRST ORDER BY l_line ASC) state_prov, ';
    v_stmnt := v_stmnt||'MIN (county) KEEP (DENSE_RANK FIRST ORDER BY l_line ASC) county, ';
    v_stmnt := v_stmnt||'MIN (wgs84_lat) KEEP (DENSE_RANK FIRST ORDER BY g_line ASC) wgs84_lat, ';
    v_stmnt := v_stmnt||'MIN (wgs84_lon) KEEP (DENSE_RANK FIRST ORDER BY g_line ASC) wgs84_lon, ';
    v_stmnt := v_stmnt||'mas_id, mrds_id, ''Print'' print_link ';
    v_stmnt := v_stmnt||'FROM NEW_MASTER_QUERY1 ';
    v_stmnt := v_stmnt||'WHERE dep_id IN ';
    v_stmnt := v_stmnt||' (SELECT dep_id ';
    v_stmnt := v_stmnt||' FROM search_table where '||v_where||' ';
    v_stmnt := v_stmnt||v_area||') and rec_tp <> ''Model Type''';
    v_stmnt := v_stmnt||'GROUP BY dep_id, dev_st, oper_tp, sig, NAME, ';
    v_stmnt := v_stmnt||'commod, commod_group, mas_id, mrds_id';
    return v_stmnt;
    END;
    So, what happens now is that :P3_SEQ is no longer a number (I get an "Invalid Number" error message), and the page won't run after the user has made the selection. The user instead is 'kicked back' to a previous page. If I'm logged in as a developer, then I just kicked back to the page edit screen.
    Anybody have an idea on why it's returning an object now (under 3.1) as opposed to returning the number it used to (under 3.0)?
    Thanks,
    Bill Ferguson

    Okay, thanks Patrick. I commented that out so now I can see the full error message. Actually, now the page just returns an "OK" (nothing else), and I click on that to return back to the page where I see:
    Checksum error for Hidden and Protected item ID (26968176992578859), value ([object]), posted checksum (326873D5A54A4AF425EC4D500B9B4D02), expected checksum (********************************), index_i (10), index_j (2), index_m (2);
    Okay, so that's evidently a new option in 3.1, it should have just been a 'Hidden' item, not 'Hidden and Protected'. So, I change this back to just 'Hidden', refressh the page, the re-execute it and try to select from the popup again. This time, instead of the more-or-less blank page with only "OK" on it, I also get "ORA-01722: invalid number" above the "OK". When I click the "OK", then I am returned back to the last good 'runnable' page I executed (since the search page is no longer 'runnable' (the javascript evidently is still returning an object instead of a number).
    On a previous run of trying to track the problem down, I made the :P3_SEQ as a regular text field so I could try to see what was going on, and it briefly displayed "[object]" before the search executed and returned the error.
    So thanks for helping me get past the first stage so I could see a better version of what the error is. Now I just need to figure out why an object is being returned instead of number. This worked fine in 3.0, and the only thing I can think of is that something, somewhere in 3.1's javascript is slightly different now, but I really don't know.
    Bill Ferguson

  • Problem with connection to APEX contemporaneously to Internet connection

    Hi all! I can't connect to ApEX 2.1.xx (embeddeed in DB 10g XE, OS Windows 7 x64) while Internet connection is active (with 3G modem, hybrid, DHCP is off). As I disconnect from Net, everithing is OK.
    I'm using IE9.0 and Firefox 11.0, with the same outcome. I've tried to change Cookie and Security Settings in IE, nothing has changed.
    What can I do to fix it out?
    Thanks to all!

    I had lost Wifi and 3G connection. At the end,
    http://europe.nokia.com/find-products/nokia-belle-update/nokia-belle-update-faq
    "SPB Monitor" was closest to the solution. I deactivated all subdirectories in \private\ in all drives (phone, cards) even so they were not the ones mentioned. I restarted the phone, created an access point and could connect.
    Eight hours of my life devoted to Nokia Belle configuration and four days without functioning phone. Hope Nokia is worth it.

  • Apex instalation problem with ACL

    Hi
    I had apex 4.0 and oracle 11g. My apex worked properly - I think about mailing.
    Next I have made upgrade -> apex 4.2.1 and I have a problem with it. Apex doesn't send mail.
    I run PL/SQl block (from documentation http://docs.oracle.com/cd/E37097_01/doc/install.42/e35123/otn_install.htm#autoId3
    topic 3.3.8 and 3.3.8.1):
    DECLARE
    ACL_PATH VARCHAR2(4000);
    BEGIN
    -- Look for the ACL currently assigned to '*' and give APEX_040200
    -- the "connect" privilege if APEX_040200 does not have the privilege yet.
    SELECT ACL INTO ACL_PATH FROM DBA_NETWORK_ACLS
    WHERE HOST = '*' AND LOWER_PORT IS NULL AND UPPER_PORT IS NULL;
    IF DBMS_NETWORK_ACL_ADMIN.CHECK_PRIVILEGE(ACL_PATH, 'APEX_040200',
    'connect') IS NULL THEN
    DBMS_NETWORK_ACL_ADMIN.ADD_PRIVILEGE(ACL_PATH,
    'APEX_040200', TRUE, 'connect');
    END IF;
    EXCEPTION
    -- When no ACL has been assigned to '*'.
    WHEN NO_DATA_FOUND THEN
    DBMS_NETWORK_ACL_ADMIN.CREATE_ACL('power_users.xml',
    'ACL that lets power users to connect to everywhere',
    'APEX_040200', TRUE, 'connect');
    DBMS_NETWORK_ACL_ADMIN.ASSIGN_ACL('power_users.xml','*');
    END;
    COMMIT;
    It ended with errors:
    Error report:
    ORA-29903: błąd podczas wykonywania podprogramu ODCIIndexFetch()
    ORA-22881: wiszący REF
    ORA-06512: przy linia 7
    29903. 00000 - "error in executing ODCIIndexFetch() routine"
    *Cause:    The execution of ODCIIndexFetch routine caused an error.
    *Action:   Examine the error messages produced by the indextype code and
    take appropriate action.
    committed.
    What should I do?
    Ziut

    I repaired all the permissions on the user account directories and this fixed my issues with share folder permissions for some reason.
    Here is a script that will do it all in one go. Change /Volumes/XXXX/Users/ to where you users directory is. chmod the script to 755 and run with sudo and it will fix the user directory permissions for all accounts.
    #!/bin/sh
    # This shell script needs to be run as super-user
    for i in /Volumes/XXXX/Users/*
    do
    u=`echo $i | cut -d/ -f5`
    case $u in
      Shared)
      Temporary)
       /usr/sbin/chown -R $u:staff $i
       /bin/chmod -R 700 $i
    esac
    done
    for i in /Volumes/XXXX/Users/*
    do
    u=`echo $i | cut -d/ -f5`
    case $u in
      Shared)
      Temporary)
       /usr/sbin/chown $u:staff $i
       /bin/chmod 755 $i
    esac
    done
    /usr/sbin/chown -R 'root':wheel '/Users/Shared'
    /bin/chmod -R 777 '/Users/Shared'
    for i in /Volumes/XXXX/Users/*
    do
    u=`echo $i | cut -d/ -f5`
    case $u in
      Shared)
      Temporary)
       /usr/sbin/chown -R $u:staff $i/Public
       /bin/chmod -R 755 $i/Public
    esac
    done
    for i in /Volumes/XXXX/Users/*
    do
    u=`echo $i | cut -d/ -f5`
    case $u in
      Shared)
      Temporary)
       /usr/sbin/chown -R $u:staff $i/Public/Drop\ Box
       /bin/chmod -R 733 $i/Public/Drop\ Box
    esac
    done
    for i in /Volumes/XXXX/Users/*
    do
    u=`echo $i | cut -d/ -f5`
    case $u in
      Shared)
      Temporary)
       /usr/sbin/chown -R $u:staff $i/Sites
       /bin/chmod -R 755 $i/Sites
    esac
    done
    exit 0

  • Problem with logging in to apex application builder listener

    I have problem with my settings and am posting this in hope that someone else out there had similar problem and solved it!
    I am trying to use reverseproxy to access to our db through apex listener.
    It's been all set-up and I can login to the application it self either through proxy or no proxy using the listener.
    But when I try to login to apex application builder I cannot do it through proxy(with no proxy, it works).
    It just refreshes the login page when I click login....
    I tried to upgrade the listener to the latest v1.1(using 1.0.2) but it causes my tomcat to crash...
    So solution i am looking for is how to make logging in work through proxy..
    In the firebug it is showing that below and few other request status as 302 moved temporariry
    http://myserver:8080/testsin/apex/wwv_flow.accept
    Where as with no proxy it is saying Found.....
    Any thoughts??
    Thanks
    Sin K

    Hello Sin K,
    so proxy and Tomcat are located on different machines as well? Is the proxy able to commuicate with the Tomcat on the configured internal ports and is the proxy able to lookup the hostname you configured for the Tomcat?
    For the connector, the proxyName and proxyPort should be the parameters the client uses to call APEX. So if your clients should call via http://proxyserver:8080/testsin/apex the settings would be
    proxyName=proxyserver
    proxyPort=8080Reason for this is that applications (e.g. the APEX Listener) generate there URL references with these parameters.
    But does your proxy actually serve on port 8080? And is that port accessible by clients? Do clients accept cookies from that server?
    In my case, there is only one 302 which redirects to http://host:port/apex/f?p=4500:1000:sessionid which is correct.
    If you look into your first post request in firebug, what's in the request header?
    -Udo

  • Installation Problem with APEX 3.1 on 11g

    Hey,
    I've a big problem with apex3.1 on 11g. Yesterday i wanted to install the new version, which i've downloaded from the oracle server. Furthermore i have followed the instructions by the documentation.
    i executed:
    1. apexins.sql FLOW_1 USERS TEMP /i/ Is that correct?
    2. apxconf.sql
    Do i have do remove the old version (3.0)?
    Thanks for your help
    Best Regards,
    Andi

    Hi Andrea,
    I tried to reproduce this and could not.
    I created a new 11.1.0.6 database on Oracle Enterprise Linux with character set WE8MSWIN1252. I even did this with an OS locale of Italian (and trust me, it was a struggle, as my Italian is about as weak as my German). The only thing that is different between my test and your configuration is the server OS.
    I then installed APEX 3.1, tried it in browser language 'it' and 'en-us', but I could not reproduce the issue.
    Can you think of anything atypical in your configuration, installation, or database parameter settings?
    Joel

  • Problem with EXPORT IMPORT PROCESS in ApEx 3.1

    Hi all:
    I'm having a problem with the EXPORT IMPORT PROCESS in ApEx 3.1
    When I export an application, and try to import it again. I get this error message
    ORA-20001: GET_BLOCK Error. ORA-20001: Execution of the statement was unsuccessful. ORA-06550: line 16, column 28: PLS-00103: Encountered the symbol &amp;quot;牃慥整㈰㈯⼴〲㐰〠㨷㐵㈺′䵐&amp;quot; when expecting one of the following: ( - + case mod new not null &amp;lt;an identifier&amp;gt; &amp;lt;a double-quoted delimited-identifier&amp;gt; &amp;lt;a bind variable&amp;gt; avg count current exists max min prior sql stddev sum variance execute forall merge time timestamp in
    As a workaround, I check the exported file and found this
    wwv_flow_api.create_flow
    p_documentation_banner=> '牃慥整⠤㈰㈯⼴〲㠰〠㨷㠵㈺′äµ
    And when I replace with this
    p_documentation_banner=> ' ',
    I can import the application without the error.
    somebody knows why I have to do this??
    Thank you all.
    Nicolas.

    Hi,
    This issue seems to have been around for a while:
    Re: Error importing file
    I've had similar issues and made manual changes to the file to get it to install correctly. In my case, I got:
    ORA-20001: GET_BLOCK Error. ORA-20001: Execution of the statement was unsuccessful.<br>ORA-02047: cannot join the distributed transaction in progress<br>begin execute immediate 'alter session set nls_numeric_characters='''||wwv_flow_api.g_nls_numeric_chars||'''';end;There are several suggestions, if you follow that thread, about character sets or reviewing some of the line breaks within pl/sql code within your processes etc. Not sure what would work for you.

  • Problem with apex_item.date_popup in APEX 3.1

    Hi,
    I encountered a problem with the date_popup item after installing APEX3.1, probably someone can tell me if I am doing something wrong or if it is a sequel bug of 3.0.
    I have a form with a manually generated region displaying a row with different kinds of input fields for every entry in a look up table. So there may be 5 rows to enter values or 30.
    There are two date_popup fields in each row (id x and y), therefore it is not possible to give each of these popup-fields a unique id as it would exceed the limit of 50.
    The problem is the same as in version 3.0 and before: when I select a date, let's say in the popup with id x row 6, it will allways show up in the first date_popup-field with id ix. The same for the fields with id y.
    I solved the problem in 3.0 by adding an id-attribute with a unique name in html and replacing some values in the html-output. This helped distinguishing the different fields.
    But with 3.1 there ist already an id-attribute (apex_date_11, 11 representing the column)
    <input type="text" name="f11" size="15" maxlength="10" value="" id="P4_foo_2" style="margin-right:5px;" id="apex_date_11" />
    which is referenced by the javascript-function of the popup.
    Every popup either has the value apex_date_11 or apex_date_12.
    This disrupts my work around from version 3.0.
    The only solution that I see to get it working again is to replace or add a unique identifier to the input-id as well as to the function call, like apex_date_11_i.
    Maybe there is another solution to distinguish the different date-fields, like setting the row attribute, which does not work.
    Thanks in advance,
    Alex

    Hello,
    Can you put an example on apex.oracle.com , see if we can help you out.
    What has happened is we have tried to make items and their outputs more consistent across the product. This includes things like auto generation of ID's based on item names, fieldset's around compound items etc, looks like the auto generation of ID's is getting you here.
    Sorry for the trouble.
    Regards,
    Carl
    blog : http://carlback.blogspot.com//
    apex examples : http://apex.oracle.com/pls/otn/f?p=11933:5

  • Apex 4 , problem with collection executions

    Hi ,
    I am having the following problem with the execution of one collection :
    Reference thread : Re: APEX 4 , executing a remote procedure and populating data using collection
    DBNAME ---> list item which I build from the DB links which I built ( as dynamic query in the shared components from a local table which holds entries of dblink names )
    USERLIST --> list item of users which should display dynamicaly the users of that db link I choose in DBNAME ( based on a collection )
    buttons CANCEL and SUBMIT
    4- Initial COLLECTION page process which is calculated before Header :
    DECLARE
    q varchar2(4000);
    BEGIN
    IF APEX_COLLECTION.COLLECTION_EXISTS(P_COLLECTION_NAME => 'QRY1') THEN
    APEX_COLLECTION.DELETE_COLLECTION(P_COLLECTION_NAME => 'QRY1');
    END IF;
    q := 'SELECT username , username FROM sys.dba_users@'||:P23_DBNAME ;
    APEX_COLLECTION.CREATE_COLLECTION_FROM_QUERY_B(
    P_COLLECTION_NAME => 'QRY1',
    P_QUERY => Q);
    END;
    For USERLIST list item I am using the following in LIST OF VALUES DEFINITION :
    SELECT C001, C002 FROM APEX_COLLECTIONS WHERE COLLECTION_NAME='QRY1'
    5 - to submit the values from the screen to the remote database procedure I am using the following submit process ON SUBMIT AFTER CALCULATIONS:
    DECLARE
    v_statement varchar2(255);
    BEGIN
    v_statement := 'begin
    Lock_User@&P24_DBNAME.(''&P24_USERLIST.'');
    insert into log values (1,''user locked'') ;
    commit ;
    end;';
    EXECUTE IMMEDIATE v_statement;
    END;
    The problem :
    The form runs sucessfully , where I the USERLIST changes dynamicaly when I change the DBNAME values , but as soon as I logout and login with another user1 , the collection does not execute and i get "ORA-01729: database link name expected".
    I login with user1 in edit mode and recreate the collection , run again , the collection executes successfuly .
    If I create a new user2 ( using the sample application pages ) and login with the new user2 , i have the same problem , thus I ho login with user2 in edit mode and try to run the collection .
    How can I control the collection to execute regardless of the application user logged in ??
    thanks in advance
    yousef

    Hi ,
    I am having the following problem with the execution of one collection :
    Reference thread : Re: APEX 4 , executing a remote procedure and populating data using collection
    DBNAME ---> list item which I build from the DB links which I built ( as dynamic query in the shared components from a local table which holds entries of dblink names )
    USERLIST --> list item of users which should display dynamicaly the users of that db link I choose in DBNAME ( based on a collection )
    buttons CANCEL and SUBMIT
    4- Initial COLLECTION page process which is calculated before Header :
    DECLARE
    q varchar2(4000);
    BEGIN
    IF APEX_COLLECTION.COLLECTION_EXISTS(P_COLLECTION_NAME => 'QRY1') THEN
    APEX_COLLECTION.DELETE_COLLECTION(P_COLLECTION_NAME => 'QRY1');
    END IF;
    q := 'SELECT username , username FROM sys.dba_users@'||:P23_DBNAME ;
    APEX_COLLECTION.CREATE_COLLECTION_FROM_QUERY_B(
    P_COLLECTION_NAME => 'QRY1',
    P_QUERY => Q);
    END;
    For USERLIST list item I am using the following in LIST OF VALUES DEFINITION :
    SELECT C001, C002 FROM APEX_COLLECTIONS WHERE COLLECTION_NAME='QRY1'
    5 - to submit the values from the screen to the remote database procedure I am using the following submit process ON SUBMIT AFTER CALCULATIONS:
    DECLARE
    v_statement varchar2(255);
    BEGIN
    v_statement := 'begin
    Lock_User@&P24_DBNAME.(''&P24_USERLIST.'');
    insert into log values (1,''user locked'') ;
    commit ;
    end;';
    EXECUTE IMMEDIATE v_statement;
    END;
    The problem :
    The form runs sucessfully , where I the USERLIST changes dynamicaly when I change the DBNAME values , but as soon as I logout and login with another user1 , the collection does not execute and i get "ORA-01729: database link name expected".
    I login with user1 in edit mode and recreate the collection , run again , the collection executes successfuly .
    If I create a new user2 ( using the sample application pages ) and login with the new user2 , i have the same problem , thus I ho login with user2 in edit mode and try to run the collection .
    How can I control the collection to execute regardless of the application user logged in ??
    thanks in advance
    yousef

  • Problem with german special characters in APEX

    Hi,
    we have a problem with all the special characters in german language in our Application.
    APEX version 3.1.0.00.32 is installed on a oracle database 9.2.0.6.0
    The nls_characterset of the database is: American_America.WE8ISO8859P1
    We have modified the wdbsvr.app file on our HTTP-Server like it's shown in the installationguide for APEX and have set the nls_lang parameter to American_America.AL32UTF8.
    If I look at the source code of the html-pages of our application, there are already the following settings in the header of every page:
    meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"
    With this settings all the german special characters like ä ö ü are not shown correctly in the browser.
    What can I do that the pages are shown correctly?
    Thanks for help!

    Hi Petra,
    ok, so my guess was correct. So the solution is to set the charset attribute in the HTML header to "charset=UTF-8". This is actually the way it should be. But I'm wondering why it is not in your case? Are you using a custom template for the page(s) in question where the charset attribute is set to a custom value? The meta tags in the HTML header are usually set by/through the #HEAD# substitution string in the header definition section of the page template, cp. one of the page templates in Shared Components --> Templates. And as far as I know you are not able to change this substitution string, you can only switch the inclusion on/off with the option "Include Standard CSS and JavaScript" in each page definition. (I might be mistaken, though, I'm quite new to APEX...)
    Regards
    Frank

  • Apex 4.0 Cascading Select List: ajax problem with german umlaute

    Hi everybody,
    Apex 4.0
    Dad PlsqlNLSLanguage: GERMAN_GERMANY.WE8MSWIN1252
    I have problems with german umlaute and ajax cascading select lists (Cascading LOV Parent Item).
    The data is populated without a page refresh in the select list when the parent select list changes but special signs like german umlaute are shown as weird characters.
    Seems like there is some charset problem with ajax.
    This is the only part of the application where special signs like umlaute are messed up. Everything else is fine.
    I allready tried to figure out if I can escape the umlaute in the javascript (file apex_widget_4_0.js) but no success here.
    Can anybody help me with this issue?
    Thanks in advance,
    Markus

    Hi Markus,
    your specified character set in your DAD is wrong. As mentioned in the installation instructions at http://download.oracle.com/docs/cd/E17556_01/doc/install.40/e15513/otn_install.htm#CHDHCBGI , Oracle APEX always requires AL32UTF8.
    >
    3. Locate the line containing PlsqlNLSLanguage.
    The PlsqlNLSLanguage setting determines the language setting of the DAD. The character set portion of the PlsqlNLSLanguage value must be set to AL32UTF8,
    regardless of whether or not the database character set is AL32UTF8. For example:Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Apex 4.1 - problem with navigation component LIST after upgrade

    There seems to be problem with Tags in LIST component, after upgrade from 4.0 to 4.1 release

    Right, we verified a problem for migrated lists.
    We have lists of links, that are not based on a specific template. After upgrade to 4.1, they stopped from rendering in their region. Found out that the tag <TABLE> was not included in the HTML Source, hence the list body was not built to render.
    The only way we found to include it was to create a template for Lists (there is not one by default in Apex in certain themes), edit it and include the tag (in the section "Before List Entry" > "List Template Before Rows" - the tag itself is not present in the newly created template, too). Then, you need to assign the template to the existing Lists to make the list body re-appear: it doesn't seem to be a good practice to create a list without a template, but Apex should at least provide 1 by default.
    Edited by: Kleber M on Oct 28, 2011 9:03 AM

  • Problem with Apex: wwv_flow.accept

    Hello!
    I've developped an application which worked perfect since nearly one year. Now - suddenly - when changing data in an tabular form and pressing the submit button this page appears:
    <h1>Not found</h1>
    The requested URL /apex/wwv_flow.accept was not found on this server
    <br>
    From time to time it seems to work again, but then - after changing some data again... it appears again. Turning Debugging on has no effect. Do someone know or give me some advice what went wrong? Thank you Johann Message was edited by: horvatj
    I aksed this topic in the APEX Forum - see thread:
    Problem with Apex: wwv_flow.accept
    Scott answered:
    Johann - Check the Apache error log for more details.
    Okay, but XE doesn't use Apache!?
    How can I access the logfiles?
    Where can I find them?
    Thank you
    Johann

    If you believe it or not, I solved without any logfile...
    The problem was some kind of corrupt data.
    After correcting this everything works fine again. I really don't know why this not found error occurs, but ;-)
    Thanks Johann

Maybe you are looking for

  • Switch support for NAC CCA for 6500 series switch

    per the 4.0 document "switch support for Cisco NAC" there is a note that says Catalyst 6000/6500 on IOS do not support mac-notification Does this mean you cannot deploy layer 2 OOB mode, as snmp notification to the CAM will not happen with the 6k pla

  • Dealing with "Accept to download" agreements?

    Hey guys, I wanted to make a little package for the "ventrilo_status" program. This is a CLI tool that's part of the ventrilo voice chat software. The download page for this particular piece of software is located here http://www.ventrilo.com/dlprod.

  • How to run script file Oracle XE?

    Hi there, I'm new here. I've just started on a tutorial (i.e. ADF) and it requires me to run a script, i.e. SQLPLUS>Start <tutorial_install>\scripts\build.sql How do I run this in Oracle XE? The content of the build.sql is included below. The build.s

  • Toolkit for CreateJS showing blank HTML pages after publish on only some Flash projects?

    When I used Toolkit for CreateJS on Flash CC for the first time on a simple test movie, it worked fine. I've now created a new movie of a scrolling portfolio banner to go on my homepage. After hitting publish, it only shows a blank HTML page, with a

  • IE9 top margin problem

    Hi All, I know this topic has been done to death but I still can't find a fix after many trawling the net. The layout consists of a background swf file with html on top of that. The html has a centred div and inside that a floating div that I wanted