strings in sql

Hi all

I want the output as a string given ' jdkfjksdjklfj #91' but I want only "jdkfjksdjklfj", what is and how to write the application of this requirement. ".

and sometimes string is bud ' jdkfjksdjklfj #91' a few times "abc #9876' Please answer."

You can use SUBSTR and INSTR

Select str

, substr (str, 1, instr (str, ' #')-1) new_str

de)

Select ' jdkfjksdjklfj #91' double str.

Union of all the

Select ' abc #9876' double str.

)

Tags: Database

Similar Questions

  • Manipulating strings using SQL - a interesting problem

    Hello

    I came across this problem, but have not been able to find a solution yet.
    If an input string, the output must be a string with all the double quotes ("") replaced by two quotation marks (""). In addition, if a double quotation mark is preceded by a number (s) then the output must be a string where the number is enclosed in quotation marks.

    Should be a SQL solution only (no calls to functions allowed). Preferably without using CASE or DECODING.
    What are the different ways to do this?

    1 abc'd is expected to produce abc' "d as output.
    2 ab 'c' d is expected to produce ab "" c"" d as output
    3 abc "d12" is expected to produce abc "" d"12" as output
    4 ab12 "c34" should produce ab '12' c '34' output

    That's what I've done so far, but it does not work for the fourth case above. I know that there must be a more elegant and correct solution.
    SELECT REGEXP_REPLACE(REPLACE('&test_string', '"', '""'),
                          '[0-9]{1,}""',
                          '"' || REGEXP_SUBSTR(REPLACE('&test_string', '"', '""'),
                                               '[0-9]{1,}"'))
      FROM DUAL
    PS: I'll keep the post updated with my attempts.

    Kind regards
    Ousseni

    >

    Would you like to if the entry is
    a '12' 3 "4B".

    a"""12" "3"4B ".

    And that's exactly what you get with my solution (see the last line):

    {code}
    with mydata as
    (
    Select "abc" test_string of all the double union
    Select "ab"c"d" test_string of all the double union
    Select 'abc 'd12' ' test_string of all the double union
    Select "ab12"c34"" test_string of all the double union
    Select ' a '12' 3 "4 b ' double test_string"
    )
    SELECT REGEXP_REPLACE (REPLACE (test_string, ' "'," "" ""),)
    "([0-9]_{1,})" "", '"\1" ') output
    OF mydata;

    OUTPUT
    -----------------
    ABC"d «»
    AB "" c"" d
    ABC '"d" 12 ".
    AB c '12' "34".
    a"""12" "3"4B ".

    Regards.
    Al                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
    
  • String manipulation SQL query

    Starting with the data for this example:
    GET sampledata
    WITH sampledata AS
         (SELECT 'THIS Information Collection GL Enquiry User' resp
            FROM DUAL
          UNION ALL
          SELECT 'THIS Information Collection PO Web Requisitioner and Receiver'
            FROM DUAL
          UNION ALL
          SELECT 'THIS Asset Management Team GL Enquiry User'
            FROM DUAL        
          UNION ALL
          SELECT 'THIS Asset Management Team PO Web Requisitioner and Receiver'
            FROM DUAL
          UNION ALL
          SELECT 'THIS Collections GL Enquiry User'
            FROM DUAL
          UNION ALL
          SELECT 'THIS Collections PO Web Requisitioner and Receiver'
            FROM DUAL)
    SELECT *
      FROM sampledata;
    I am trying to find a way to get the first section of chain BEFORE and also the little after that, including 2 letter string - for example I would like to extract:
    BEFORE                          | AFTER
    --------------------------------------------------------------------------------
    THIS Information Collection     | GL Enquiry User
    THIS Information Collection     | PO Web Requisitioner and Receiver
    THIS Asset Management Team      | GL Enquiry User
    THIS Asset Management Team      | PO Web Requisitioner and Receiver
    THIS Collections                | GL Enquiry User
    THIS Collections                | PO Web Requisitioner and Receiver
    However, I am rather stuck - I think I will need to use a combination of INSTR() and SUBSTR(), but the problem is that the 2 letter string appears after a variable number of words, so there is no ordinary way to check where to appear the 2 letters - more the 2 letter string will be different each time - not only GL and PO as above , but one range of others, for example, AR, AP, etc. OM.

    Any advice much appreciated.

    Thank you!

    Like this?

    SQL> ed
    Wrote file afiedt.buf
    
      1  WITH sampledata AS
      2       (SELECT 'THIS Information Collection GL Enquiry User' resp FROM DUAL UNION ALL
      3        SELECT 'THIS Information Collection PO Web Requisitioner and Receiver' FROM DUAL UNION ALL
      4        SELECT 'THIS Asset Management Team GL Enquiry User' FROM DUAL UNION ALL
      5        SELECT 'THIS Asset Management Team PO Web Requisitioner and Receiver' FROM DUAL UNION ALL
      6        SELECT 'THIS Collections GL Enquiry User' FROM DUAL UNION ALL
      7        SELECT 'THIS Collections PO Web Requisitioner and Receiver' FROM DUAL)
      8  SELECT regexp_replace(resp,'^(.*) [^ ]{2} .*$','\1') as resp1
      9        ,regexp_replace(resp,'^.* ([^ ]{2} .*)$','\1') as resp2
     10*   FROM sampledata
    SQL> /
    
    RESP1                                    RESP2
    ---------------------------------------- ----------------------------------------
    THIS Information Collection              GL Enquiry User
    THIS Information Collection              PO Web Requisitioner and Receiver
    THIS Asset Management Team               GL Enquiry User
    THIS Asset Management Team               PO Web Requisitioner and Receiver
    THIS Collections                         GL Enquiry User
    THIS Collections                         PO Web Requisitioner and Receiver
    
    6 rows selected.
    
  • Tricky Regexp and string of SQL column row

    Hi all

    I am trying to build a SQL that can convert a string passed as
    HP|250 GB * 2 + 80 GB * 3 + 100 GB | SATA
    TO
    HP | 250 GB | SATA
    HP | 250 GB | SATA
    HP | 80 GB | SATA
    HP | 80 GB | SATA
    HP | 80 GB | SATA
    HP | 100 GB | SATA
    So far, my attempt is (who tells me to learn more about regexp)
    WITH T AS
      ( SELECT q'[HP|250 GB * 2 + 80 GB * 3 + 100 GB | SATA]' str FROM DUAL
      ),
      t2 AS
      (SELECT trim(regexp_substr(str,'[^|]+',1,level)) val
       FROM T
       CONNECT BY level <= LENGTH (str)-LENGTH(REPLACE(str,'|'))+1
      ),t3 AS
    (SELECT DISTINCT trim(regexp_substr(val,'[^+]+',1,level)) val
     FROM t2 WHERE VAL LIKE '%*%' OR VAL LIKE '%+%' 
     CONNECT BY level <= LENGTH (val)-LENGTH(REPLACE(val,'+'))+1
      ),t4 as
      (SELECT VAL,ROWNUM RN FROM T2 A1
       WHERE VAL NOT LIKE '%*%' OR VAL NOT LIKE '%+%'),
      t5 as
      (SELECT A.VAL MK, T3.VAL CONFG, B.VAL TYP
       FROM   T3, (SELECT VAL FROM T4 WHERE RN = 1)A,(SELECT VAL FROM T4 WHERE RN = 2) B)
       SELECT *
       FROM   T5;
    And output, I've got so far is:
    MK                                        CONFG                                     TYP                                       
    ----------------------------------------- ----------------------------------------- ----------------------------------------- 
    HP                                        80 GB * 3                                 SATA                                      
    HP                                        250 GB * 2                                SATA                                      
    HP                                        100 GB                                    SATA                                      
    Please suggest that more need to do to get the desired result (year SQL)?
    BANNER                                                                           
    -------------------------------------------------------------------------------- 
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production           
    PL/SQL Release 11.2.0.1.0 - Production                                           
    CORE     11.2.0.1.0     Production                                                         
    TNS for 32-bit Windows: Version 11.2.0.1.0 - Production                          
    NLSRTL Version 11.2.0.1.0 - Production  
    Thanks for reading this post
    * 009 *.
    with t1 as (
                select 'HP|250 GB * 2 + 80 GB * 3 + 100 GB | SATA' str from dual union all
                select 'INTEL|40 GB  + 55 GB| IDE' from dual
               ),
         t2 as (
                select  regexp_substr(str,'^[^|]+') mk,
                        trim(regexp_substr(replace(str,'|','+'),'[^+]+',1,column_value + 1)) element,
                        regexp_substr(str,'[^|]+$') typ
                  from  t1,
                        table(
                              cast(
                                   multiset(
                                            select  level
                                              from  dual
                                              connect by level <= length(regexp_replace(str || '+','[^+]'))
                                           )
                                   as sys.OdciNumberList
                                  )
                             )
               )
    select  mk,
            trim(regexp_replace(element,'\*.*$')) val,
            typ
      from  t2,
            table(
                  cast(
                       multiset(
                                select  level
                                  from  dual
                                  connect by level <= substr(regexp_substr(element,'\*.*$'),2)
                               )
                       as sys.OdciNumberList
                      )
                 )
    /
    
    MK         VAL        TYP
    ---------- ---------- ----------
    HP         250 GB      SATA
    HP         250 GB      SATA
    HP         80 GB       SATA
    HP         80 GB       SATA
    HP         80 GB       SATA
    HP         100 GB      SATA
    INTEL      40 GB       IDE
    INTEL      55 GB       IDE
    
    8 rows selected.
    
    SQL> 
    

    SY.
    P.S. Message your version. If 11.1, it can be simplified. If 11.2 can be even simpler.

  • Search for string in SQL Developer

    Hello

    I am trying to run a search function in SQL Developer, which locates a string in database objects. I can't find out how to do it-if it is possible. I just saw that I can search for objects not strings in their breast. How to find all the procedures/functions which includes a specific string?

    Concerning
    Marika

    Reports | All reports | DataDictionary reports | PL/SQL | Search the Source Code

  • Part string in SQL

    Hello

    There are two tables I have whose contents are as follows

    Table A

    Keyword Entity
    MissIndividual
    MisterIndividual
    LimitedCompany
    CharityCharity

    Table B

    Names of
    Miss J Smith
    Mister W Samuel
    XXXX Co Limited
    Charity and Trust Foundation

    What I needed, that is if the names in the Table that contains the keyword present in the corressponding a table then the entity will be mapped to that name.

    Is it possible in SQL?

    Thanks in advance

    Prithwish Adhikari kirjoitti:

    Sorry Frank. Was in a bit of a hurry. Will be remmeber it next time.
    1. the search is not case sensitive

    2 mission does not contain Miss since it must be an exact word. So MissJSmith is also does not contain Miss.

    3. we have a priority with the company being the most high and individual lowest. Miss Mary Charity Foundation would be charitable as difference to anyone

    ?

    create table t2(names varchar2(30));
    insert into t2 values ('Miss And Mister');
    insert into t2 values ('Mister Tyre Limited');
    insert into t2 values ('Miss Mary Charity Foundation');
    
    select * from (
      select
        names,
        min(entity) over (partition by names order by decode(entity,'Company','1','Charity','2','Individual','3','4')) entity
      from t2 join t1 on (
        regexp_like(t2.names, '(\W|^)' || t1.keyword || '(\W|$)', 'i')
      )
    )
    group by names, entity
    ;
    
    NAMES                          ENTITY
    ------------------------------ --------------------
    Miss And Mister                Individual
    Miss Mary Charity Foundation   Charity
    Mister Tyre Limited            Company            
    

    'i' edition

  • Help setting up a SQL query with poor performance

    Hi all

    Database version: 10.2.0.5

    I'm working on a new report to view the top users by the number of calls. The table is truncated and filled again every month with records for the previous month; It contains approximately 400 000 records.

    I created a view with the columns needed for the report; also, the two functions of view calls to determine if a phone number is assigned to multiple staffs or several departments.

    It's full again table every month:

     CREATE TABLE "VOIP"."MONTHLY_BILLING_DETAILS" 
       (    "ID" NUMBER NOT NULL ENABLE, 
        "CDRRECORDTYPE" NUMBER, 
        "G_CALLMANAGERID" NUMBER, 
        "G_CALLID" NUMBER, 
        "O_LEGCALLIDENTIFIER" NUMBER, 
        "DATETIMEORIGINATION" NUMBER, 
        "O_NODEID" NUMBER, 
        "O_SPAN" NUMBER, 
        "O_IPADDR" NUMBER, 
        "CALLINGPARTYNUMBER" VARCHAR2(50 BYTE) NOT NULL ENABLE, 
        "CALLINGPARTY_USERID" VARCHAR2(128 BYTE), 
        "O_CAUSE_LOCATION" NUMBER, 
        "O_CAUSE_VALUE" NUMBER, 
        "O_PRECEDENCELEVEL" NUMBER, 
        "O_MEDIATRANSPORTADDR_IP" NUMBER, 
        "O_MEDIATRANSPORTADDR_PORT" NUMBER, 
        "O_MCAP_PAYLOADCAPABILITY" NUMBER, 
        "O_MCAP_MAXFRAMESPERPACKET" NUMBER, 
        "O_MCAP_G723BITRATE" NUMBER, 
        "O_VCAP_CODEC" NUMBER, 
        "O_VCAP_BANDWIDTH" NUMBER, 
        "O_VCAP_RESOLUTION" NUMBER, 
        "O_VIDEOTRANSPORTADDR_IP" NUMBER, 
        "O_VIDEOTRANSPORTADDR_PORT" NUMBER, 
        "O_RSVPAUDIOSTAT" VARCHAR2(64 BYTE), 
        "O_RSVPVIDEOSTAT" VARCHAR2(64 BYTE), 
        "DESTLEGIDENTIFIER" NUMBER, 
        "DESTNODEID" NUMBER, 
        "DESTSPAN" NUMBER, 
        "DESTIPADDR" NUMBER, 
        "ORIGINALCALLEDPARTYNUMBER" VARCHAR2(50 BYTE), 
        "FINALC_PARTYNUMBER" VARCHAR2(50 BYTE), 
        "FINALC_PARTY_USERID" VARCHAR2(128 BYTE), 
        "DESTCAUSE_LOCATION" NUMBER, 
        "DESTCAUSE_VALUE" NUMBER, 
        "DESTPRECEDENCELEVEL" NUMBER, 
        "DESTMEDIATRANSPORTADDR_IP" NUMBER, 
        "DESTMEDIATRANSPORTADDR_PORT" NUMBER, 
        "DESTMCAP_PAYLOADCAPABILITY" NUMBER, 
        "DESTMCAP_MAXFRAMESPERPACKET" NUMBER, 
        "DESTMCAP_G723BITRATE" NUMBER, 
        "DV_CAP_CODEC" NUMBER, 
        "DV_CAP_BANDWIDTH" NUMBER, 
        "DV_CAP_RESOLUTION" NUMBER, 
        "DV_TRANSPORTADDR_IP" NUMBER, 
        "DV_TRANSPORTADDR_PORT" NUMBER, 
        "DESTRSVPAUDIOSTAT" VARCHAR2(64 BYTE), 
        "DESTRSVPVIDEOSTAT" VARCHAR2(64 BYTE), 
        "DATETIMECONNECT" NUMBER, 
        "DATETIMEDISCONNECT" NUMBER, 
        "LASTREDIRECTDN" VARCHAR2(50 BYTE), 
        "PKID" VARCHAR2(4000 BYTE), 
        "O_INALCALLEDPARTYNUM_PARTITION" VARCHAR2(50 BYTE), 
        "CALLINGPARTYNUM_PARTITION" VARCHAR2(50 BYTE), 
        "FINALC_PARTYNUM_PARTITION" VARCHAR2(50 BYTE), 
        "LASTREDIRECTDNPARTITION" VARCHAR2(50 BYTE), 
        "DURATION" NUMBER, 
        "O_DEVICENAME" VARCHAR2(129 BYTE), 
        "DESTDEVICENAME" VARCHAR2(129 BYTE), 
        "O_CALLTERMINATION_BEHALF" NUMBER, 
        "DESTCALLTERMINATION_BEHALF" NUMBER, 
        "O_CALLEDPARTYREDIRECT_BEHALF" NUMBER, 
        "LASTREDIRECTREDIRECT_BEHALF" NUMBER, 
        "O_CALLEDPARTYREDIRECTREASON" NUMBER, 
        "LASTREDIRECTREDIRECTREASON" NUMBER, 
        "DESTCONVERSATIONID" NUMBER, 
        "G_CALLID_CLUSTERID" VARCHAR2(50 BYTE), 
        "JOIN_BEHALF" NUMBER, 
        "COMMENTS" VARCHAR2(2048 BYTE), 
        "AUTHCODEDESCRIPTION" VARCHAR2(50 BYTE), 
        "AUTHORIZATIONLEVEL" NUMBER, 
        "CLIENTMATTERCODE" VARCHAR2(32 BYTE), 
        "O_DTMFMETHOD" NUMBER, 
        "DESTDTMFMETHOD" NUMBER, 
        "CALLSECUREDSTATUS" NUMBER, 
        "O_CONVERSATIONID" NUMBER, 
        "O_MCAP_BANDWIDTH" NUMBER, 
        "DESTMCAP_BANDWIDTH" NUMBER, 
        "AUTHORIZATIONCODEVALUE" VARCHAR2(32 BYTE), 
        "OUTPULSEDCALLINGPARTYNUMBER" VARCHAR2(50 BYTE), 
        "OUTPULSEDCALLEDPARTYNUMBER" VARCHAR2(50 BYTE), 
        "O_IPV4V6ADDR" VARCHAR2(64 BYTE), 
        "DESTIPV4V6ADDR" VARCHAR2(64 BYTE), 
        "O_VCAP_CODEC_CHAN2" NUMBER, 
        "O_VCAP_BANDWIDTH_CHAN2" NUMBER, 
        "O_VCAP_RESOLUTION_CHAN2" NUMBER, 
        "O_V_TRANSPORTADDR_IP_CHAN2" NUMBER, 
        "O_V_TRANSPORTADDR_PORT_CHAN2" NUMBER, 
        "O_V_OCHANNEL_ROLE_CHAN2" NUMBER, 
        "DV_CAP_CODEC_CHAN2" NUMBER, 
        "DV_CAP_BANDWIDTH_CHAN2" NUMBER, 
        "DV_CAP_RESOLUTION_CHAN2" NUMBER, 
        "DV_TRANSPORTADDR_IP_CHAN2" NUMBER, 
        "DV_TRANSPORTADDR_PORT_CHAN2" NUMBER, 
        "DV_CHANNEL_ROLE_CHAN2" NUMBER, 
        "DATE_CREATED" DATE, 
        "DATETIME_CONNECT" DATE, 
        "DATETIME_DISCONNECT" DATE, 
        "USERID_EMAIL_ADDRESS" VARCHAR2(100 BYTE), 
        "FROM_FULL_TELEPHONE" VARCHAR2(20 BYTE), 
        "TO_FULL_TELEPHONE" VARCHAR2(20 BYTE), 
        "FROM_EXCHANGE" VARCHAR2(7 BYTE), 
        "TO_EXCHANGE" VARCHAR2(20 BYTE), 
        "FROM_CITY" VARCHAR2(200 BYTE), 
        "FROM_STATE" VARCHAR2(2 BYTE), 
        "TO_CITY" VARCHAR2(200 BYTE), 
        "TO_STATE" VARCHAR2(2 BYTE), 
        "CALL_TYPE" VARCHAR2(10 BYTE), 
         CONSTRAINT "MONTHLY_BILLING_PK" PRIMARY KEY ("ID")
      USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS 
      STORAGE(INITIAL 3145728 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "VOIPDATA"  ENABLE
       ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
      STORAGE(INITIAL 75497472 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "VOIPDATA" ;
    
    
      CREATE INDEX "VOIP"."MONTHLY_BILL_INDEX1" ON "VOIP"."MONTHLY_BILLING_DETAILS" (TRUNC("DATETIME_CONNECT")) 
      PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS 
      STORAGE(INITIAL 4194304 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "VOIPDATA" ;
    
    
      CREATE INDEX "VOIP"."MONTHLY_BILL_INDEX10" ON "VOIP"."MONTHLY_BILLING_DETAILS" ("CALL_TYPE") 
      PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS 
      STORAGE(INITIAL 4194304 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "VOIPDATA" ;
    
    
      CREATE INDEX "VOIP"."MONTHLY_BILL_INDEX2" ON "VOIP"."MONTHLY_BILLING_DETAILS" ("FROM_EXCHANGE") 
      PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS 
      STORAGE(INITIAL 3145728 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "VOIPDATA" ;
    
    
      CREATE INDEX "VOIP"."MONTHLY_BILL_INDEX3" ON "VOIP"."MONTHLY_BILLING_DETAILS" ("FROM_FULL_TELEPHONE", TRUNC("DATETIME_CONNECT")) 
      PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS 
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "VOIPDATA" ;
    
    
      CREATE INDEX "VOIP"."MONTHLY_BILL_INDEX4" ON "VOIP"."MONTHLY_BILLING_DETAILS" ("DATETIME_CONNECT", NVL("FROM_FULL_TELEPHONE","CALLINGPARTYNUMBER")) 
      PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS 
      STORAGE(INITIAL 5242880 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "VOIPDATA" ;
    
    
      CREATE INDEX "VOIP"."MONTHLY_BILL_INDEX5" ON "VOIP"."MONTHLY_BILLING_DETAILS" ("DATETIME_CONNECT", NVL("TO_FULL_TELEPHONE","ORIGINALCALLEDPARTYNUMBER")) 
      PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS 
      STORAGE(INITIAL 5242880 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "VOIPDATA" ;
    
    
      CREATE INDEX "VOIP"."MONTHLY_BILL_INDEX6" ON "VOIP"."MONTHLY_BILLING_DETAILS" (TO_CHAR("DATETIME_CONNECT",'fmMONTH YYYY')) 
      PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS 
      STORAGE(INITIAL 4194304 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "VOIPDATA" ;
    
    
      CREATE INDEX "VOIP"."MONTHLY_BILL_INDEX7" ON "VOIP"."MONTHLY_BILLING_DETAILS" ("TO_EXCHANGE") 
      PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS 
      STORAGE(INITIAL 3145728 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "VOIPDATA" ;
    
    
      CREATE INDEX "VOIP"."MONTHLY_BILL_INDEX8" ON "VOIP"."MONTHLY_BILLING_DETAILS" (NVL("FROM_FULL_TELEPHONE","CALLINGPARTYNUMBER")) 
      PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS 
      STORAGE(INITIAL 4194304 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "VOIPDATA" ;
    
    
      CREATE INDEX "VOIP"."MONTHLY_BILL_INDEX9" ON "VOIP"."MONTHLY_BILLING_DETAILS" ("DATETIME_CONNECT") 
      PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS 
      STORAGE(INITIAL 3145728 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "VOIPDATA" ;
    

    These are the functions to determine if a phone number is assigned to multiple staffs or departments:

    FUNCTION GET_EMPLOYEE_NAME (P_FROM_FULL_TELEPHONE IN VARCHAR2)
    RETURN VARCHAR2
    AS
      L_NAME EMPLOYEES.NAME%TYPE;
    BEGIN
      SELECT NAME
      INTO L_NAME
      FROM EMPLOYEES
      WHERE WORK_PHONE_1_FORMAT = P_FROM_FULL_TELEPHONE;
      
      RETURN L_NAME;
    EXCEPTION
      WHEN TOO_MANY_ROWS THEN
        L_NAME := 'Multiple Employees';
        RETURN L_NAME;
      WHEN NO_DATA_FOUND THEN
        L_NAME := 'No Employee Assigned';
        RETURN L_NAME;
      WHEN OTHERS THEN
        NULL;
    END;
    

    FUNCTION GET_DEPARTMENT_NAME (P_FROM_FULL_TELEPHONE IN VARCHAR2)
    RETURN VARCHAR2
    AS
      L_DEPT_DESCR EMPLOYEES.DEPT_DESCR%TYPE;
    BEGIN
      SELECT DEPT_DESCR
      INTO L_DEPT_DESCR
      FROM EMPLOYEES
      WHERE WORK_PHONE_1_FORMAT = P_FROM_FULL_TELEPHONE;
      
      RETURN L_DEPT_DESCR;
    EXCEPTION
      WHEN TOO_MANY_ROWS THEN
        L_DEPT_DESCR := 'Multiple Departments';
        RETURN L_DEPT_DESCR;
      WHEN NO_DATA_FOUND THEN
        L_DEPT_DESCR := 'No Department Assigned';
        RETURN L_DEPT_DESCR;
      WHEN OTHERS THEN
        NULL;
    END;
    

    This is the point of view that I'll use in the report:

    CREATE OR REPLACE FORCE VIEW "VOIP"."TOP_USERS_BY_CALLS_V" ("TOP_NO", "EMPLOYEE_NAME", "EMPLOYEE_DEPARTMENT", "PHONE_NUMBER", "QUANTITY_CALLS") AS 
      SELECT
      ROWNUM,
      VOIP_PKG.GET_EMPLOYEE_NAME(FROM_FULL_TELEPHONE),
      VOIP_PKG.GET_DEPARTMENT_NAME(FROM_FULL_TELEPHONE),
      FROM_FULL_TELEPHONE,
      QUANTITY_CALLS
    FROM (
    SELECT
      MBD.FROM_FULL_TELEPHONE,
      COUNT(1) QUANTITY_CALLS
    FROM
      MONTHLY_BILLING_DETAILS MBD
    WHERE
      MBD.FROM_FULL_TELEPHONE IS NOT NULL                                     AND
      MBD.FROM_FULL_TELEPHONE <> '000-000-0000'                               AND
      LENGTH(MBD.FROM_FULL_TELEPHONE) = 12                                    AND
      LENGTH(MBD.TO_FULL_TELEPHONE) = 12                                      AND
      SUBSTR(MBD.TO_FULL_TELEPHONE,1,3) NOT IN (SELECT AREA_CODE
                                                FROM NYNJ_METRO_AREA_CODES)   AND
      SUBSTR(MBD.TO_FULL_TELEPHONE,1,3) NOT IN ('800','822','833','844',
                                                '855','866','877','888')
    GROUP BY
      MBD.FROM_FULL_TELEPHONE
    ORDER BY
      QUANTITY_CALLS DESC
    )
    WHERE ROWNUM <= 100;
    

    Explain Plan output and Extended SQL Trace:


    SQL> 
    SQL> show parameter user_dump_dest
    
    NAME                                 TYPE        VALUE
    ------------------------------------ ----------- ------------------------------
    user_dump_dest                       string      D:\ORACLEHOMES\ADMIN\RTS9\UDUM
                                                     P
    SQL> 
    SQL> show parameter optimizer
    
    NAME                                 TYPE        VALUE
    ------------------------------------ ----------- ------------------------------
    optimizer_dynamic_sampling           integer     2
    optimizer_features_enable            string      10.2.0.5
    optimizer_index_caching              integer     0
    optimizer_index_cost_adj             integer     100
    optimizer_mode                       string      ALL_ROWS
    optimizer_secure_view_merging        boolean     TRUE
    SQL> 
    SQL> show parameter db_file_multi
    
    NAME                                 TYPE        VALUE
    ------------------------------------ ----------- ------------------------------
    db_file_multiblock_read_count        integer     16
    SQL> 
    SQL> show parameter db_block_size
    
    NAME                                 TYPE        VALUE
    ------------------------------------ ----------- ------------------------------
    db_block_size                        integer     8192
    SQL> 
    SQL> show parameter cursor_sharing
    
    NAME                                 TYPE        VALUE
    ------------------------------------ ----------- ------------------------------
    cursor_sharing                       string      EXACT
    SQL> 
    SQL> column sname format a20
    SQL> column pname format a20
    SQL> column pval2 format a20
    SQL> 
    SQL> select
      2  sname
      3  , pname
      4  , pval1
      5  , pval2
      6  from
      7  sys.aux_stats$;
    
    SNAME                PNAME                     PVAL1 PVAL2
    -------------------- -------------------- ---------- --------------------
    SYSSTATS_INFO        STATUS                          COMPLETED
    SYSSTATS_INFO        DSTART                          02-09-2009 15:46
    SYSSTATS_INFO        DSTOP                           02-09-2009 15:46
    SYSSTATS_INFO        FLAGS                         1
    SYSSTATS_MAIN        CPUSPEEDNW            1259.6206
    SYSSTATS_MAIN        IOSEEKTIM                    10
    SYSSTATS_MAIN        IOTFRSPEED                 4096
    SYSSTATS_MAIN        SREADTIM
    SYSSTATS_MAIN        MREADTIM
    SYSSTATS_MAIN        CPUSPEED
    SYSSTATS_MAIN        MBRC
    SYSSTATS_MAIN        MAXTHR
    SYSSTATS_MAIN        SLAVETHR
    
    13 rows selected.
    
    Elapsed: 00:00:00.03
    SQL> 
    SQL> explain plan for
      2  SELECT
      3    TOP_NO,
      4    EMPLOYEE_NAME,
      5    EMPLOYEE_DEPARTMENT,
      6    PHONE_NUMBER,
      7    QUANTITY_CALLS
      8  FROM
      9    TOP_USERS_BY_CALLS_V
     10  ORDER BY
     11    QUANTITY_CALLS DESC;
    
    Explained.
    
    Elapsed: 00:00:00.18
    SQL> 
    SQL> select * from table(dbms_xplan.display);
    
    PLAN_TABLE_OUTPUT
    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Plan hash value: 826236322
    
    ----------------------------------------------------------------------------------------------------------------
    | Id  | Operation                          | Name                      | Rows  | Bytes | Cost (%CPU)| Time     |
    ----------------------------------------------------------------------------------------------------------------
    |   0 | SELECT STATEMENT                   |                           |     1 |  4042 |  1313   (1)| 00:00:16 |
    |   1 |  SORT ORDER BY                     |                           |     1 |  4042 |  1313   (1)| 00:00:16 |
    |   2 |   VIEW                             | TOP_USERS_BY_CALLS_V      |     1 |  4042 |  1312   (1)| 00:00:16 |
    |*  3 |    COUNT STOPKEY                   |                           |       |       |            |          |
    |   4 |     VIEW                           |                           |     1 |    25 |  1312   (1)| 00:00:16 |
    |*  5 |      SORT ORDER BY STOPKEY         |                           |     1 |    26 |  1312   (1)| 00:00:16 |
    |   6 |       HASH GROUP BY                |                           |     1 |    26 |  1312   (1)| 00:00:16 |
    |*  7 |        FILTER                      |                           |       |       |            |          |
    |*  8 |         TABLE ACCESS BY INDEX ROWID| MONTHLY_BILLING_DETAILS   |     1 |    26 |  1310   (1)| 00:00:16 |
    |*  9 |          INDEX FULL SCAN           | MONTHLY_BILL_INDEX3       |   934 |       |   449   (1)| 00:00:06 |
    |* 10 |         INDEX FULL SCAN            | NYNJ_METRO_AREA_CODES_UK1 |     1 |     4 |     1   (0)| 00:00:01 |
    ----------------------------------------------------------------------------------------------------------------
    
    Predicate Information (identified by operation id):
    ---------------------------------------------------
    
       3 - filter(ROWNUM<=100)
       5 - filter(ROWNUM<=100)
       7 - filter( NOT EXISTS (SELECT 0 FROM VOIP."NYNJ_METRO_AREA_CODES" "NYNJ_METRO_AREA_CODES" WHERE
                  LNNVL("AREA_CODE"<>SUBSTR(:B1,1,3))))
       8 - filter(LENGTH("MBD"."TO_FULL_TELEPHONE")=12 AND SUBSTR("MBD"."TO_FULL_TELEPHONE",1,3)<>'800' AND
                  SUBSTR("MBD"."TO_FULL_TELEPHONE",1,3)<>'822' AND SUBSTR("MBD"."TO_FULL_TELEPHONE",1,3)<>'833' AND
                  SUBSTR("MBD"."TO_FULL_TELEPHONE",1,3)<>'844' AND SUBSTR("MBD"."TO_FULL_TELEPHONE",1,3)<>'855' AND
                  SUBSTR("MBD"."TO_FULL_TELEPHONE",1,3)<>'866' AND SUBSTR("MBD"."TO_FULL_TELEPHONE",1,3)<>'877' AND
                  SUBSTR("MBD"."TO_FULL_TELEPHONE",1,3)<>'888')
       9 - filter(LENGTH("MBD"."FROM_FULL_TELEPHONE")=12 AND "MBD"."FROM_FULL_TELEPHONE"<>'000-000-0000'
                  AND "MBD"."FROM_FULL_TELEPHONE" IS NOT NULL)
      10 - filter(LNNVL("AREA_CODE"<>SUBSTR(:B1,1,3)))
    
    33 rows selected.
    
    Elapsed: 00:00:00.82
    SQL> 
    SQL> rollback;
    
    Rollback complete.
    
    Elapsed: 00:00:00.00
    SQL> 
    SQL> set autotrace traceonly arraysize 100
    SQL> 
    SQL> alter session set tracefile_identifier = 'mytrace1';
    
    Session altered.
    
    Elapsed: 00:00:00.01
    SQL> 
    SQL> alter session set events '10046 trace name context forever, level 8';
    
    Session altered.
    
    Elapsed: 00:00:00.15
    SQL> 
    SQL> SELECT
      2    TOP_NO,
      3    EMPLOYEE_NAME,
      4    EMPLOYEE_DEPARTMENT,
      5    PHONE_NUMBER,
      6    QUANTITY_CALLS
      7  FROM
      8    TOP_USERS_BY_CALLS_V
      9  ORDER BY
     10    QUANTITY_CALLS DESC;
    
    100 rows selected.
    
    Elapsed: 00:10:37.68
    
    Execution Plan
    ----------------------------------------------------------
    Plan hash value: 826236322
    
    ----------------------------------------------------------------------------------------------------------------
    | Id  | Operation                          | Name                      | Rows  | Bytes | Cost (%CPU)| Time     |
    ----------------------------------------------------------------------------------------------------------------
    |   0 | SELECT STATEMENT                   |                           |     1 |  4042 |  1313   (1)| 00:00:16 |
    |   1 |  SORT ORDER BY                     |                           |     1 |  4042 |  1313   (1)| 00:00:16 |
    |   2 |   VIEW                             | TOP_USERS_BY_CALLS_V      |     1 |  4042 |  1312   (1)| 00:00:16 |
    |*  3 |    COUNT STOPKEY                   |                           |       |       |            |          |
    |   4 |     VIEW                           |                           |     1 |    25 |  1312   (1)| 00:00:16 |
    |*  5 |      SORT ORDER BY STOPKEY         |                           |     1 |    26 |  1312   (1)| 00:00:16 |
    |   6 |       HASH GROUP BY                |                           |     1 |    26 |  1312   (1)| 00:00:16 |
    |*  7 |        FILTER                      |                           |       |       |            |          |
    |*  8 |         TABLE ACCESS BY INDEX ROWID| MONTHLY_BILLING_DETAILS   |     1 |    26 |  1310   (1)| 00:00:16 |
    |*  9 |          INDEX FULL SCAN           | MONTHLY_BILL_INDEX3       |   934 |       |   449   (1)| 00:00:06 |
    |* 10 |         INDEX FULL SCAN            | NYNJ_METRO_AREA_CODES_UK1 |     1 |     4 |     1   (0)| 00:00:01 |
    ----------------------------------------------------------------------------------------------------------------
    
    Predicate Information (identified by operation id):
    ---------------------------------------------------
    
       3 - filter(ROWNUM<=100)
       5 - filter(ROWNUM<=100)
       7 - filter( NOT EXISTS (SELECT 0 FROM VOIP."NYNJ_METRO_AREA_CODES" "NYNJ_METRO_AREA_CODES" WHERE
                  LNNVL("AREA_CODE"<>SUBSTR(:B1,1,3))))
       8 - filter(LENGTH("MBD"."TO_FULL_TELEPHONE")=12 AND SUBSTR("MBD"."TO_FULL_TELEPHONE",1,3)<>'800' AND
                  SUBSTR("MBD"."TO_FULL_TELEPHONE",1,3)<>'822' AND SUBSTR("MBD"."TO_FULL_TELEPHONE",1,3)<>'833' AND
                  SUBSTR("MBD"."TO_FULL_TELEPHONE",1,3)<>'844' AND SUBSTR("MBD"."TO_FULL_TELEPHONE",1,3)<>'855' AND
                  SUBSTR("MBD"."TO_FULL_TELEPHONE",1,3)<>'866' AND SUBSTR("MBD"."TO_FULL_TELEPHONE",1,3)<>'877' AND
                  SUBSTR("MBD"."TO_FULL_TELEPHONE",1,3)<>'888')
       9 - filter(LENGTH("MBD"."FROM_FULL_TELEPHONE")=12 AND "MBD"."FROM_FULL_TELEPHONE"<>'000-000-0000'
                  AND "MBD"."FROM_FULL_TELEPHONE" IS NOT NULL)
      10 - filter(LNNVL("AREA_CODE"<>SUBSTR(:B1,1,3)))
    
    
    Statistics
    ----------------------------------------------------------
            365  recursive calls
              0  db block gets
         689543  consistent gets
         212906  physical reads
              0  redo size
           5984  bytes sent via SQL*Net to client
            400  bytes received via SQL*Net from client
              2  SQL*Net roundtrips to/from client
              2  sorts (memory)
              0  sorts (disk)
            100  rows processed
    
    SQL> 
    SQL> disconnect
    

    Part of the automatic trace output:

    SELECT
      TOP_NO,
      EMPLOYEE_NAME,
      EMPLOYEE_DEPARTMENT,
      PHONE_NUMBER,
      QUANTITY_CALLS
    FROM
      TOP_USERS_BY_CALLS_V
    ORDER BY
      QUANTITY_CALLS DESC
    
    call     count       cpu    elapsed       disk      query    current        rows
    ------- ------  -------- ---------- ---------- ---------- ----------  ----------
    Parse        1      0.00       0.43          0          0          0           0
    Execute      1      0.00       0.00          0          0          0           0
    Fetch        2     24.70     635.81     212587     631823          0         100
    ------- ------  -------- ---------- ---------- ---------- ----------  ----------
    total        4     24.70     636.25     212587     631823          0         100
    
    Misses in library cache during parse: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 148  
    
    Rows     Row Source Operation
    -------  ---------------------------------------------------
        100  SORT ORDER BY (cr=689531 pr=212900 pw=0 time=636823070 us)
        100   VIEW  TOP_USERS_BY_CALLS_V (cr=689531 pr=212900 pw=0 time=642681672 us)
        100    COUNT STOPKEY (cr=631823 pr=212587 pw=0 time=635667026 us)
        100     VIEW  (cr=631823 pr=212587 pw=0 time=635666810 us)
        100      SORT ORDER BY STOPKEY (cr=631823 pr=212587 pw=0 time=635666493 us)
       2512       HASH GROUP BY (cr=631823 pr=212587 pw=0 time=635666125 us)
      27112        FILTER  (cr=631823 pr=212587 pw=0 time=519230237 us)
     315563         TABLE ACCESS BY INDEX ROWID MONTHLY_BILLING_DETAILS (cr=381523 pr=212587 pw=0 time=580209555 us)
     394473          INDEX FULL SCAN MONTHLY_BILL_INDEX3 (cr=2679 pr=2679 pw=0 time=26793918 us)(object id 206675)
     226627         INDEX FULL SCAN NYNJ_METRO_AREA_CODES_UK1 (cr=250300 pr=0 pw=0 time=3575488 us)(object id 206605)
    
    
    Elapsed times include waiting on following events:
      Event waited on                             Times   Max. Wait  Total Waited
      ----------------------------------------   Waited  ----------  ------------
      SQL*Net message to client                       2        0.00          0.00
      db file sequential read                    212587        0.20        611.67
      SQL*Net message from client                     2        0.00          0.00
      SQL*Net more data to client                     2        0.00          0.00
    ********************************************************************************
    

    DBMS_XPLAN. Output DISPLAY_CURSOR:

    SQL> 
    SQL> select * from table(dbms_xplan.display_cursor(null, null, 'ALLSTATS LAST'));
    
    PLAN_TABLE_OUTPUT
    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    SQL_ID  1ut636vt58jdw, child number 0
    -------------------------------------
    SELECT /*+ gather_plan_statistics */   TOP_NO,   EMPLOYEE_NAME,   EMPLOYEE_DEPARTMENT,   PHONE_NUMBER,   QUANTITY_CALLS FROM   TOP_USERS_BY_CALLS_V
    ORDER BY   QUANTITY_CALLS DESC
    
    Plan hash value: 826236322
    
    --------------------------------------------------------------------------------------------------------------------------------------------------------------
    | Id  | Operation                          | Name                      | Starts | E-Rows | A-Rows |   A-Time   | Buffers | Reads  |  OMem |  1Mem | Used-Mem |
    --------------------------------------------------------------------------------------------------------------------------------------------------------------
    |   0 | SELECT STATEMENT                   |                           |      1 |        |    100 |00:09:56.06 |     689K|    210K|       |       |          |
    |   1 |  SORT ORDER BY                     |                           |      1 |      1 |    100 |00:09:56.06 |     689K|    210K| 13312 | 13312 |12288  (0)|
    |   2 |   VIEW                             | TOP_USERS_BY_CALLS_V      |      1 |      1 |    100 |00:10:04.98 |     689K|    210K|       |       |          |
    |*  3 |    COUNT STOPKEY                   |                           |      1 |        |    100 |00:09:54.89 |     631K|    210K|       |       |          |
    |   4 |     VIEW                           |                           |      1 |      1 |    100 |00:09:54.89 |     631K|    210K|       |       |          |
    |*  5 |      SORT ORDER BY STOPKEY         |                           |      1 |      1 |    100 |00:09:54.88 |     631K|    210K|  6144 |  6144 | 6144  (0)|
    |   6 |       HASH GROUP BY                |                           |      1 |      1 |   2512 |00:09:54.88 |     631K|    210K|   821K|   821K| 1153K (0)|
    |*  7 |        FILTER                      |                           |      1 |        |  27112 |00:08:58.57 |     631K|    210K|       |       |          |
    |*  8 |         TABLE ACCESS BY INDEX ROWID| MONTHLY_BILLING_DETAILS   |      1 |      1 |    315K|00:08:57.07 |     381K|    210K|       |       |          |
    |*  9 |          INDEX FULL SCAN           | MONTHLY_BILL_INDEX3       |      1 |    934 |    394K|00:00:23.02 |    2679 |   2679 |       |       |          |
    |* 10 |         INDEX FULL SCAN            | NYNJ_METRO_AREA_CODES_UK1 |    250K|      1 |    226K|00:00:03.47 |     250K|      0 |       |       |          |
    --------------------------------------------------------------------------------------------------------------------------------------------------------------
    
    Predicate Information (identified by operation id):
    ---------------------------------------------------
    
       3 - filter(ROWNUM<=100)
       5 - filter(ROWNUM<=100)
       7 - filter( IS NULL)
       8 - filter((LENGTH("MBD"."TO_FULL_TELEPHONE")=12 AND SUBSTR("MBD"."TO_FULL_TELEPHONE",1,3)<>'800' AND SUBSTR("MBD"."TO_FULL_TELEPHONE",1,3)<>'822'
                  AND SUBSTR("MBD"."TO_FULL_TELEPHONE",1,3)<>'833' AND SUBSTR("MBD"."TO_FULL_TELEPHONE",1,3)<>'844' AND SUBSTR("MBD"."TO_FULL_TELEPHONE",1,3)<>'855'
                  AND SUBSTR("MBD"."TO_FULL_TELEPHONE",1,3)<>'866' AND SUBSTR("MBD"."TO_FULL_TELEPHONE",1,3)<>'877' AND SUBSTR("MBD"."TO_FULL_TELEPHONE",1,3)<>'888'))
       9 - filter((LENGTH("MBD"."FROM_FULL_TELEPHONE")=12 AND "MBD"."FROM_FULL_TELEPHONE"<>'000-000-0000' AND "MBD"."FROM_FULL_TELEPHONE" IS NOT NULL))
      10 - filter(LNNVL("AREA_CODE"<>SUBSTR(:B1,1,3)))
    
    
    35 rows selected.
    
    Elapsed: 00:00:00.50
    SQL> 
    SQL> spool off
    
    

    Any help will be greatly appreciated. Please let me know if you need additional information.

    Thank you

    Erick

    ediazjorge wrote:

    Please let me know if you need additional information or do additional tests.

    Thanks again!

    Erick

    It's to you if you are satisfied or interested in improvements (if possible).

    If so the first thing I would like if you had your refreshed perspective as advised. According to expected area_code table cardinalities I doubt.

    So, if not cool off with dbms_stats.gather_table_stats on two tables, area_codes and MONTHLY_BILLING_DETAILS.

    Bottlenecks are now obviously the full table of MONTHLY_BILLING_DETAILS as well as the ANTI of LOOPS IMBRIQUEES scan.

    At the moment I don't think that an index of MONTHLY_BILLING_DETAILS will help a lot, because most of the lines will pass filter predicates, and because we need some columns in it, I have now I there will be gain a full index scan.

    I was surprissed that the optimizer pushes the substr <> predicates to both tables.

    So depending on your data, you might try

    1 make a factory of subquery select the two MONTHLY_BILLING_DETAILS columns that all directly apply predicates of membership and use it directly in the join instead of the table.

    or

    2. If all subtr to so are part of the table area_code choose in it using a subquery (or inline view) plant excluding these values.

    Both are attempts to get rid of the substr excluding as filters of join predicates.

    In fact, I was expecting a hash join anti as shown in the plan to explain instead of the nested loops anti, I expect to be more effective in this case.

    Perhaps with correct cardinalities the optimizier would understand himself.

    Just to test it, you can try the use_hash hint in the join:

    Select / * + USE_HASH (MBD, one) * /.

    ..

    OF MONTHLY_BILLING_DETAILS MBD,.

    NYNJ_METRO_AREA_CODES one

    (It's a good habit anyway usually use aliases and precede the names of columns. In the, it is easier to read queries are only trivial).

  • Developer SQL disappears from the Office when connecting

    Behavior occurred rarely, then often now systematically.  After a double click on a link and enter the credentials, I hit the ENTER button for a connection.  Version 4.0.1.14 build HAND-14, 48 application crashes and burns.  If I select the disappearance of first, no unexpected connection properties.  Why?

    #
    # A fatal error has been detected by Java runtime environment:
    #
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc = 0x0c6edeee, pid = 5844, tid = 3772
    #
    # Version JRE: Java (TM) SE Runtime Environment (7.0_51 - b13) (build 1.7.0_51 - b13)
    # Java VM: Java hotspot Client VM (24.51 - b03 mixed mode windows - x 86)
    # Problematic frame:
    # C [oran11.dll + 0x28deee]
    #
    # Write core dump failed. Minidumps are not enabled by default on client versions of Windows
    #
    # If you want to submit a bug report, please visit:
    # http://bugreport.sun.com/bugreport/crash.jsp
    # The accident happened outside the Virtual Machine Java to native code.
    # See problematic frame for where report them the bug.
    #

    ---------------  T H R E A D  ---------------

    The current thread (0x0443a800): JavaThread 'chicken-2-wire-1' [_thread_in_native, id = 3772, stack (0x09ee0000, 0x09fe0000)]

    siginfo: ExceptionCode = 0xc0000005, address 0x4c6ee1b0 reading

    Records:
    EAX = 0X0FFFFFFC EBX = 0 X 00000040, ECX = 0 X 00000000 EDX = 0X09FDE200
    ESP = 0X09FDE170 EBP = 0X09FDE190 ESI = 0X09FDE25C EDI = 0X00000000
    EIP = 0X0C6EDEEE, EFLAGS = 0 X 00010206

    Top of the stack: (sp = 0x09fde170)
    0x09fde170: 00000400 0c6b9428 09fde1c0 09fde21c
    0x09fde180: 00000040 00000016 09fde65c 09fde75c
    0x09fde190: 09fde204 0c60fe5e 09fde1a4 09fde21c
    0x09fde1a0: 00000400 67452301 efcdab89 98badcfe
    0x09fde1b0: 00002000 00000000 10325476 c3d2e1f0
    0x09fde1c0: 08990000 0cd 42000 08990000 0cd 42000
    0x09fde1d0: 08990002 0cc60000 01fde260 09fde26c
    0x09fde1e0: 00000400 7c918cd9 00000000 42000 10 d

    Operating instructions: (pc = 0x0c6edeee)
    0x0c6edece: e7 7A 81 80 00 00 00 7 f9 f0 0f d 96 8B c1 c1 e8
    0x0c6edede: c1 04 e0 04 03 d0 f0 03 2B c1 c8 e8 04 0f ae f8
    0x0c6edeee: ff 24 85 c0 e1 6F 0c 81 80 00 00 00 7 d 03 eb f9
    0x0c6edefe: 69 90 81 e9 80 00 00 00 66 06 66 0f 4th 6f 6f 0f


    Register for memory mapping:

    EAX = 0x0ffffffc is an unknown value
    EBX = 0 x 00000040 is an unknown value
    ECX = 0 x 00000000 is an unknown value
    EDX = 0x09fde200 is oriented in the stack for the thread: 0x0443a800
    ESP = 0x09fde170 is oriented in the stack for the thread: 0x0443a800
    EBP = 0x09fde190 is oriented in the stack for the thread: 0x0443a800
    ESI = 0x09fde25c is oriented in the stack for the thread: 0x0443a800
    EDI = 0 x 00000000 is an unknown value


    Stack: 0x09ee0000 (0x09fe0000) and sp = 0x09fde170, free space = 1016 k
    Native frames: (J = compiled code Java, j = interpreted, Vv = VM code, C = native code)
    [Oran11.dll + 0x28deee] C
    [Oran11.dll + 0x1afe5e] C

    Java images: (J = compiled Java code, j = interpreted, Vv = VM code)
    j oracle.jdbc.driver.T2CConnection.t2cCreateState ([BI [BI [BI [BI [BI [BI [BISI [S [B [BZ [J) I + 0
    j oracle.jdbc.driver.T2CConnection.logon (V + 990)
    oracle.jdbc.driver.PhysicalConnection j. < init > (Ljava/lang/String; Ljava/util/properties; Loracle/jdbc/driver/OracleDriverExtension ;) V + 346
    oracle.jdbc.driver.T2CConnection j. < init > (Ljava/lang/String; Ljava/util/properties; Loracle/jdbc/driver/OracleDriverExtension ;) V + 4
    j oracle.jdbc.driver.T2CDriverExtension.getConnection (Ljava/lang/String; Ljava/util/Properties ;) Ljava/sql/connection; + 34
    j oracle.jdbc.driver.OracleDriver.connect (Ljava/lang/String; Ljava/util/Properties ;) Ljava/sql/connection; + 296
    j oracle.jdeveloper.db.adapter.AbstractConnectionCreator.getConnection (Ljava/util/properties ;) Ljava/sql/connection; + 26
    j oracle.dbtools.raptor.standalone.connection.RaptorConnectionCreator.getConnection (Ljava/util/properties ;) Ljava/sql/connection; + 703
    j oracle.dbtools.raptor.dialogs.conn.ConnectionPrompt.promptForPassword (Ljava/util/properties; Ljava/lang/String; Loracle/jdeveloper/db/adapt/ConnectionCreator ;) Ljava/sql/connection; + 83
    j oracle.jdevimpl.db.DBConnAddin$ 1.promptForPassword (Ljava/util/properties; Ljava/lang/String; Loracle/jdeveloper/db/adapt/ConnectionCreator ;) Ljava/sql/connection; + 7
    j oracle.jdeveloper.db.adapter.DatabaseProvider.getConnection (Ljava/util/properties ;) Ljava/sql/connection; + 156
    j oracle.jdeveloper.db.adapter.DatabaseProvider.getConnection () Ljava/sql/connection; + 5
    j oracle.jdevimpl.db.adapter.CAConnectionCreator.createConnectionImpl (Ljava/lang/String ;) Ljava/sql/connection; + 59
    j oracle.javatools.db.DatabaseFactory.createConnection (Ljava/lang/String; Loracle/javatools/db/DatabaseFactory$ ConnectionCreator ;) Ljava/sql/connection; + 6
    j oracle.javatools.db.DatabaseFactory.createDatabase (Ljava/lang/String; Loracle/javatools/db/DatabaseFactory$ ConnectionCreator ;) Loracle/javatools/db/database; + 2
    j oracle.jdeveloper.db.DatabaseConnections.getDatabase (Ljava/lang/String; (Z) Loracle/javatools / / database db; + 63
    j oracle.dbtools.raptor.utils.Connections$ ConnectionInfo.getDatabase (Z) Loracle/javatools/db/base data; + 40
    j oracle.dbtools.raptor.utils.Connections.getConnection (Ljava/lang/String; (Z) Ljava/sql/connection; + 17
    j oracle.dbtools.raptor.utils.Connections.getConnection (Ljava/lang/String ;) Ljava/sql/connection; + 14
    j oracle.dbtools.raptor.controls.DBConnectionComboBox$ ConnectionOpener.doWork () Ljava/sql/connection; + 14
    j oracle.dbtools.raptor.controls.DBConnectionComboBox$ ConnectionOpener.doWork () Ljava/lang/object; + 1
    j oracle.dbtools.raptor.backgroundTask.RaptorTask.call () Ljava/lang/object; + 10
    J java.util.concurrent.FutureTask.run (V)
    j oracle.dbtools.raptor.backgroundTask.RaptorTaskManager$ RaptorFutureTask.run () V + 60
    j java.util.concurrent.Executors$ RunnableAdapter.call () Ljava/lang/object; + 4
    J java.util.concurrent.FutureTask.run (V)
    j java.util.concurrent.ThreadPoolExecutor.runWorker (Ljava/util/concurrent/ThreadPoolExecutor$ worker ;)) V + 95
    j java.util.concurrent.ThreadPoolExecutor$ Worker.run () V + 5
    j java.lang.Thread.run (V + 11)
    v ~ StubRoutines::call_stub

    ---------------  P R O C E S S  ---------------

    Java threads: (= > current thread)
    JavaThread 0x091ed000 ' Image Fetcher 0 ' demon [_thread_blocked, id = 4584, stack (0 x 08590000, 0 x 08690000)]
    0x0815cc00 JavaThread 'Persistence Auto flush' daemon [_thread_blocked, id = 3292, stack (0 x 07790000, 0 x 07890000)]
    JavaThread 'RequestProcessor queue manager' 0x07f05c00 demon [_thread_blocked, id = 972, stack (0x0b3a0000, 0x0b4a0000)]
    JavaThread 'Context Analyzer' 0x090d8400 [_thread_blocked, id = 1424, stack (0x089d0000, 0x08ad0000)]
    0x0448f000 JavaThread "TextBufferScavenger" [_thread_blocked, id = 3444, stack (0 x 07690000, 0 x 07790000)]
    JavaThread "Swing-Shell" demon 0x090b6800 [_thread_blocked, id = 1412, stack (0x0a770000, 0x0a870000)]
    JavaThread 'status-0' 0x08f00c00 [_thread_blocked, id = 4440, stack (0x0a570000, 0x0a670000)]
    JavaThread 0x08fe6800 ' IconOverlayTracker Timer: null-jdbcNodeInfoType "[_thread_blocked, id = 5260, stack (0x0a470000, 0x0a570000)]
    0x08e93800 JavaThread "WaitCursor-Timer" [_thread_blocked, id = 4708, stack (0x0a1e0000, 0x0a2e0000)]
    0x08e91000 JavaThread "polling WeakDataReference" [_thread_blocked, id = 2624, stack (0x0a0e0000, 0x0a1e0000)]
    = > 0x0443a800 JavaThread 'chicken-2-wire-1' [_thread_in_native, id = 3772, stack (0x09ee0000, 0x09fe0000)]
    0x08d6d400 JavaThread 'Scheduler' daemon [_thread_blocked, id = 308, stack (0x09de0000, 0x09ee0000)]
    JavaThread "Thread-8" 0x08ceb400 demon [_thread_blocked, id = 2680, stack (0x09be0000, 0x09ce0000)]
    0x082d0800 JavaThread "Poller Log" [_thread_blocked, id = 4260, stack (0x08ad0000, 0x08bd0000)]
    0x080af400 JavaThread "JarIndex Timer" daemon [_thread_blocked, id = 4544, stack (0x087c0000, 0x088c0000)]
    JavaThread demon 'Inactive RequestProcessor thread [Was:NbStatusDisplayer/org.netbeans.core.NbStatusDisplayer$MessageImpl]' 0x0806b800 [_thread_blocked, id = 440, stack (0x086c0000, 0x087c0000)]
    0x0471e800 'TimedCache-Timer"demon JavaThread [_thread_blocked, id = 3672, stack (0x07c90000, 0x07d90000)]
    0x0465c000 JavaThread 'Framework event dispatcher' demon [_thread_blocked, id = 4188, stack (0x07a90000, 0x07b90000)]
    0x0460a400 JavaThread 'State Data Manager' demon [_thread_blocked, id = 404, stack(0x07990000,0x07a90000)]
    0x045ccc00 JavaThread "setting active thread" [_thread_blocked, id = 4964, stack (0 x 07890000, 0 x 07990000)]
    JavaThread demon 'Inactive RequestProcessor thread [Was:WinSysModuleChangeHandler/org.netbeans.core.windows.persistence.ModuleChangeHandler$1]' 0x043f4000 [_thread_blocked, id = 4256, stack (0 x 07590000, 0 x 07690000)]
    0x043f2400 JavaThread "CLI request server" daemon [_thread_in_native, id = 4156, stack (0 x 07490000, 0 x 07590000)]
    0x043e0400 JavaThread "Active reference File Daemon" daemon [_thread_blocked, id = 4292, stack (0 x 04720000, 0 x 04820000)]
    0 x 03813000 'TimerQueue' demon JavaThread [_thread_blocked, id = 4644, stack (0x041a0000, 0x042a0000)]
    0x037ba400 JavaThread "AWT-EventQueue-0" [_thread_blocked, id = 3056, stack (0x040a0000, 0x041a0000)]
    0x037b8000 JavaThread "AWT-Windows" daemon [_thread_in_native, id = 5428, stack (0x03fa0000, 0x040a0000)]
    0x037b6400 JavaThread "AWT-stop" [_thread_blocked, id = 5216, stack (0x03ea0000, 0x03fa0000)]
    0x037c8800 JavaThread "Shredder Java2D" demon [_thread_blocked, id = 5768, stack (0x03da0000, 0x03ea0000)]
    0x036b1000 JavaThread 'Thread of the Service' daemon [_thread_blocked, id = 788, stack (0x03ba0000, 0x03ca0000)]
    JavaThread "CompilerThread0 C1" demon 0x036abc00 [_thread_blocked, id = 1760, stack (0x03aa0000, 0x03ba0000)]
    JavaThread "Listener set" 0x036aa000 demon [_thread_blocked, id = 2776, stack (0x039a0000, 0x03aa0000)]
    JavaThread 'Dispatcher of Signal' demon 0x00ecfc00 [_thread_blocked, id = 2112, stack (0x038a0000, 0x039a0000)]
    0x00ec8400 JavaThread 'Finalizer' daemon [_thread_blocked, id = 3168, stack (0x035a0000, 0x036a0000)]
    0x00ec2400 JavaThread "Reference Handler" daemon [_thread_blocked, id = 4780, stack (0x034a0000, 0x035a0000)]
    JavaThread 'hand' 0x00cbd400 [_thread_blocked, id = 4828, stack (00030000 0 x, 0 x 00130000)]

    Other topics:
    0x00ec0400 VMThread [stack: 0x033a0000, 0x034a0000] [id = 5244]
    0x036c4c00 WatcherThread [stack: 0x03ca0000, 0x03da0000] [id = 5584]

    VM status: not to the point of restoration (normal execution)

    VM Mutex/monitor currently owned by thread: None

    Bunch
    total of new generation def 50112K, used 44576K [(0x10040000, 0x13690000, 0x20ae0000)]
    Eden space 44608K, 96% have used [(0x10040000, 0x12a6a6b8, 0x12bd0000)]
    Since 5504K-space, 25% used [0 x 13130000, 0 x 13690000, 0x1328d950)
    5504K-space, 0% used [0x12bd0000, 0x12bd0000, 0 x 13130000)
    tenure generation total 111084K, used 76142K [0x20ae0000, 0x2775b000, 0 x 42040000)
    K-space 111084, 68% have used [0x2553bb60, 0x2553bc00, 0x20ae0000, 0x2775b000)
    compaction perm gen total 48384K, used 48377K [0 x 42040000, 0 x 52040000, 0x44f80000)
    48384K-space, 99% have used [(0x44f7e798, 0x44f7e800, 0x42040000, 0x44f80000)]
    Without shared space configured.

    Card table byte_map: [0x00f50000, 0 x 01170000] byte_map_base: 0x00ecfe00

    Voting page: 0x00da0000

    Cache code [0 x 01310000, 0 x 03310000, 0x01bf0000)
    total_blobs = 5308 nmethods = 4962 cards = 280 free_code_cache = 23708 Ko largest_free_block = 24261824

    Events in compilation (10 events):
    Event: 101.921 wire 0x036abc00 5158 oracle.dbtools.raptor.backgroundTask.IRaptorTaskStatus::isAlive (2 bytes)
    Event: 101.921 wire 0x036abc00 nmethod 5158 0x01bea508 code [0x01bea600, 0x01bea680]
    Event: 102.790 Thread 0x036abc00 5160 java.awt.Window::isRecursivelyVisible (5 bytes)
    Event: 102.790 wire 0x036abc00 nmethod 5160 0x01bea948 code [0x01beaa40, 0x01beaac0]
    Event: 107.771 wire 0x036abc00 sun.awt.windows.WToolkit::needUpdateWindow of 5161 (2 bytes)
    Event: 107.771 wire 0x036abc00 nmethod 5161 0x01beab08 code [0x01beac00, 0x01beac80]
    Event: 109.824 wire 0x036abc00 5162!         javax.swing.RepaintManager$ ProcessingRunnable::run (41 bytes)
    Event: 109.825 wire 0x036abc00 nmethod 5162 0x01beacc8 code [0x01beadf0, 0x01beb044]
    Event: 110.282 wire 0x036abc00 5163!         java.awt.AWTEvent::setSource (95 bytes)
    Event: 110.282 wire 0x036abc00 nmethod 5163 0x01beb188 code [0x01beb2a0, 0x01beb5dc]

    History of the heap GC (10 events):
    Event: bunch of GC 106,000 front
    {Heap before GC = 78 (8 full) calls:}
    total of new generation def 50112K, used 46006K [(0x10040000, 0x13690000, 0x20ae0000)]
    Eden space 44608K, 100% have used [(0x10040000, 0x12bd0000, 0x12bd0000)]
    Since 5504K-space, 25% used [0x12bd0000, 0x12d2d880, 0 x 13130000)
    5504K-space, 0% used [0 x 13130000, 0 x 13130000, 0 x 13690000)
    tenure generation total 111084K, used 76142K [0x20ae0000, 0x2775b000, 0 x 42040000)
    K-space 111084, 68% have used [0x2553bb60, 0x2553bc00, 0x20ae0000, 0x2775b000)
    compaction perm gen total 48384K, used 48151K [0 x 42040000, 0 x 52040000, 0x44f80000)
    48384K-space, 99% have used [(0x44f45f28, 0x44f46000, 0x42040000, 0x44f80000)]
    Without shared space configured.
    Event: bunch of GC 106.005 after
    Bunch after calls GC = 79 (8 full):
    total of new generation def 50112K, used 1398K [(0x10040000, 0x13690000, 0x20ae0000)]
    Eden 44608 K-space, 0% used [(0x10040000, 0x10040000, 0x12bd0000)]
    Since 5504K-space, 25% used [0 x 13130000, 0 x 13690000, 0x1328d870)
    5504K-space, 0% used [0x12bd0000, 0x12bd0000, 0 x 13130000)
    tenure generation total 111084K, used 76142K [0x20ae0000, 0x2775b000, 0 x 42040000)
    K-space 111084, 68% have used [0x2553bb60, 0x2553bc00, 0x20ae0000, 0x2775b000)
    compaction perm gen total 48384K, used 48151K [0 x 42040000, 0 x 52040000, 0x44f80000)
    48384K-space, 99% have used [(0x44f45f28, 0x44f46000, 0x42040000, 0x44f80000)]
    Without shared space configured.
    }
    Event: bunch of GC 107.053 front
    {Heap before GC = 79 (8 full) calls:}
    total of new generation def 50112K, used 46006K [(0x10040000, 0x13690000, 0x20ae0000)]
    Eden space 44608K, 100% have used [(0x10040000, 0x12bd0000, 0x12bd0000)]
    Since 5504K-space, 25% used [0 x 13130000, 0 x 13690000, 0x1328d870)
    5504K-space, 0% used [0x12bd0000, 0x12bd0000, 0 x 13130000)
    tenure generation total 111084K, used 76142K [0x20ae0000, 0x2775b000, 0 x 42040000)
    K-space 111084, 68% have used [0x2553bb60, 0x2553bc00, 0x20ae0000, 0x2775b000)
    compaction perm gen total 48384K, used 48151K [0 x 42040000, 0 x 52040000, 0x44f80000)
    48384K-space, 99% have used [(0x44f45f28, 0x44f46000, 0x42040000, 0x44f80000)]
    Without shared space configured.
    Event: bunch of GC 107.058 after
    Bunch after calls GC = 80 (8 full):
    total of new generation def 50112K, used 1397K [(0x10040000, 0x13690000, 0x20ae0000)]
    Eden 44608 K-space, 0% used [(0x10040000, 0x10040000, 0x12bd0000)]
    Since 5504K-space, 25% used [0x12bd0000, 0x12d2d738, 0 x 13130000)
    5504K-space, 0% used [0 x 13130000, 0 x 13130000, 0 x 13690000)
    tenure generation total 111084K, used 76142K [0x20ae0000, 0x2775b000, 0 x 42040000)
    K-space 111084, 68% have used [0x2553bb60, 0x2553bc00, 0x20ae0000, 0x2775b000)
    compaction perm gen total 48384K, used 48151K [0 x 42040000, 0 x 52040000, 0x44f80000)
    48384K-space, 99% have used [(0x44f45f28, 0x44f46000, 0x42040000, 0x44f80000)]
    Without shared space configured.
    }
    Event: bunch of GC 108.117 front
    {Heap before GC = 80 (8 full) calls:}
    total of new generation def 50112K, used 46005K [(0x10040000, 0x13690000, 0x20ae0000)]
    Eden space 44608K, 100% have used [(0x10040000, 0x12bd0000, 0x12bd0000)]
    Since 5504K-space, 25% used [0x12bd0000, 0x12d2d738, 0 x 13130000)
    5504K-space, 0% used [0 x 13130000, 0 x 13130000, 0 x 13690000)
    tenure generation total 111084K, used 76142K [0x20ae0000, 0x2775b000, 0 x 42040000)
    K-space 111084, 68% have used [0x2553bb60, 0x2553bc00, 0x20ae0000, 0x2775b000)
    compaction perm gen total 48384K, used 48151K [0 x 42040000, 0 x 52040000, 0x44f80000)
    48384K-space, 99% have used [(0x44f45f28, 0x44f46000, 0x42040000, 0x44f80000)]
    Without shared space configured.
    Event: bunch of GC 108.123 after
    Bunch after calls GC = 81 (8 full):
    total of new generation def 50112K, used 1398K [(0x10040000, 0x13690000, 0x20ae0000)]
    Eden 44608 K-space, 0% used [(0x10040000, 0x10040000, 0x12bd0000)]
    Since 5504K-space, 25% used [0 x 13130000, 0 x 13690000, 0x1328d948)
    5504K-space, 0% used [0x12bd0000, 0x12bd0000, 0 x 13130000)
    tenure generation total 111084K, used 76142K [0x20ae0000, 0x2775b000, 0 x 42040000)
    K-space 111084, 68% have used [0x2553bb60, 0x2553bc00, 0x20ae0000, 0x2775b000)
    compaction perm gen total 48384K, used 48151K [0 x 42040000, 0 x 52040000, 0x44f80000)
    48384K-space, 99% have used [(0x44f45f28, 0x44f46000, 0x42040000, 0x44f80000)]
    Without shared space configured.
    }
    Event: bunch of GC 109.202 front
    {Heap before GC = 81 (8 full) calls:}
    total of new generation def 50112K, used 46006K [(0x10040000, 0x13690000, 0x20ae0000)]
    Eden space 44608K, 100% have used [(0x10040000, 0x12bd0000, 0x12bd0000)]
    Since 5504K-space, 25% used [0 x 13130000, 0 x 13690000, 0x1328d948)
    5504K-space, 0% used [0x12bd0000, 0x12bd0000, 0 x 13130000)
    tenure generation total 111084K, used 76142K [0x20ae0000, 0x2775b000, 0 x 42040000)
    K-space 111084, 68% have used [0x2553bb60, 0x2553bc00, 0x20ae0000, 0x2775b000)
    compaction perm gen total 48384K, used 48151K [0 x 42040000, 0 x 52040000, 0x44f80000)
    48384K-space, 99% have used [(0x44f45f28, 0x44f46000, 0x42040000, 0x44f80000)]
    Without shared space configured.
    Event: bunch of GC 109.208 after
    Bunch after calls GC = 82 (8 full):
    total of new generation def 50112K, used 1398K [(0x10040000, 0x13690000, 0x20ae0000)]
    Eden 44608 K-space, 0% used [(0x10040000, 0x10040000, 0x12bd0000)]
    Since 5504K-space, 25% used [0x12bd0000, 0x12d2d940, 0 x 13130000)
    5504K-space, 0% used [0 x 13130000, 0 x 13130000, 0 x 13690000)
    tenure generation total 111084K, used 76142K [0x20ae0000, 0x2775b000, 0 x 42040000)
    K-space 111084, 68% have used [0x2553bb60, 0x2553bc00, 0x20ae0000, 0x2775b000)
    compaction perm gen total 48384K, used 48151K [0 x 42040000, 0 x 52040000, 0x44f80000)
    48384K-space, 99% have used [(0x44f45f28, 0x44f46000, 0x42040000, 0x44f80000)]
    Without shared space configured.
    }
    Event: bunch of GC 110.347 front
    {Heap before GC = 82 (8 full) calls:}
    total of new generation def 50112K, used 46006K [(0x10040000, 0x13690000, 0x20ae0000)]
    Eden space 44608K, 100% have used [(0x10040000, 0x12bd0000, 0x12bd0000)]
    Since 5504K-space, 25% used [0x12bd0000, 0x12d2d940, 0 x 13130000)
    5504K-space, 0% used [0 x 13130000, 0 x 13130000, 0 x 13690000)
    tenure generation total 111084K, used 76142K [0x20ae0000, 0x2775b000, 0 x 42040000)
    K-space 111084, 68% have used [0x2553bb60, 0x2553bc00, 0x20ae0000, 0x2775b000)
    compaction perm gen total 48384K, used 48151K [0 x 42040000, 0 x 52040000, 0x44f80000)
    48384K-space, 99% have used [(0x44f45f28, 0x44f46000, 0x42040000, 0x44f80000)]
    Without shared space configured.
    Event: bunch of GC 110.352 after
    Bunch after calls GC = 83 (8 full):
    total of new generation def 50112K, used 1398K [(0x10040000, 0x13690000, 0x20ae0000)]
    Eden 44608 K-space, 0% used [(0x10040000, 0x10040000, 0x12bd0000)]
    Since 5504K-space, 25% used [0 x 13130000, 0 x 13690000, 0x1328d950)
    5504K-space, 0% used [0x12bd0000, 0x12bd0000, 0 x 13130000)
    tenure generation total 111084K, used 76142K [0x20ae0000, 0x2775b000, 0 x 42040000)
    K-space 111084, 68% have used [0x2553bb60, 0x2553bc00, 0x20ae0000, 0x2775b000)
    compaction perm gen total 48384K, used 48151K [0 x 42040000, 0 x 52040000, 0x44f80000)
    48384K-space, 99% have used [(0x44f45f28, 0x44f46000, 0x42040000, 0x44f80000)]
    Without shared space configured.
    }

    Deoptimization events (0):
    No event

    Inner exceptions (10 events):
    Event: threw 111.415 wire 0x0443a800 0x1294b9a8 C:\re\jdk7u51\527\hotspot\src\share\vm\prims\jvm.cpp:1244
    Event: threw 111.415 wire 0x0443a800 0x1294c670 C:\re\jdk7u51\527\hotspot\src\share\vm\prims\jvm.cpp:1244
    Event: threw 111.416 wire 0x0443a800 0x1294e748 C:\re\jdk7u51\527\hotspot\src\share\vm\prims\jvm.cpp:1244
    Event: threw 111.416 wire 0x0443a800 0x1294f448 C:\re\jdk7u51\527\hotspot\src\share\vm\prims\jvm.cpp:1244
    Event: threw 111.420 wire 0x037ba400 0x128bed38 C:\re\jdk7u51\527\hotspot\src\share\vm\prims\jvm.cpp:1244
    Event: threw 111.420 wire 0x037ba400 0x128c0778 C:\re\jdk7u51\527\hotspot\src\share\vm\prims\jvm.cpp:1244
    Event: threw 111.530 wire 0x0443a800 0x1296ea30 C:\re\jdk7u51\527\hotspot\src\share\vm\prims\jvm.cpp:1244
    Event: threw 111.530 wire 0x0443a800 0x1296f880 C:\re\jdk7u51\527\hotspot\src\share\vm\prims\jvm.cpp:1244
    Event: threw 111.531 wire 0x0443a800 0x1297e2e8 C:\re\jdk7u51\527\hotspot\src\share\vm\prims\jvm.cpp:1244
    Event: threw 111.531 wire 0x0443a800 0x1297f290 C:\re\jdk7u51\527\hotspot\src\share\vm\prims\jvm.cpp:1244

    Events (10):
    Event: 111.416 load class 0x0929cc10
    Event: 111.416 class 0x0929cc10 is loading
    Event: 111.420 class 0x091edc38 loading
    Event: 111.420 class 0x091edc38 is loading
    Event: 111.530 class 0x090fb458 loading
    Event: 111.530 class 0x090fb458 is loading
    Event: 111.531 class 0x090fb040 loading
    Event: 111.531 class 0x090fb040 is loading
    Event: 111.531 class 0x0382bcf8 loading
    Event: 111.556 class 0x0382bcf8 is loading


    Dynamic libraries:
    0x00400000 - 0 x 00417000 C:\Program Files\sqldeveloper\sqldeveloper.exe
    0x7c900000 - 0x7c9b2000 C:\WINDOWS\system32\ntdll.dll
    0x7c800000 - 0x7c8f6000 C:\WINDOWS\system32\kernel32.dll
    0x7e410000 - 0x7e4a1000 C:\WINDOWS\system32\USER32.dll
    0x77f10000 - 0x77f59000 C:\WINDOWS\system32\GDI32.dll
    0 x 76390000 - 0x763ad000 C:\WINDOWS\system32\IMM32. DLL
    0x77dd0000 - 0x77e6b000 C:\WINDOWS\system32\ADVAPI32.dll
    0x77e70000 - 0x77f03000 C:\WINDOWS\system32\RPCRT4.dll
    0x77fe0000 - 0x77ff1000 C:\WINDOWS\system32\Secur32.dll
    0x10000000 - 0x1003f000 C:\PROGRA~1\Citrix\ICACLI~1\RSHook.dll
    0x00a80000 - 0x00abf000 C:\Program Files\Citrix\ICA Client\ShellHook.dll
    0x774e0000 - 0x7761e000 C:\WINDOWS\system32\ole32.dll
    0x77c10000 - 0x77c68000 C:\WINDOWS\system32\msvcrt.dll
    0x77f60000 - 0x77fd6000 C:\WINDOWS\system32\SHLWAPI.dll
    0x7c9c0000 - 0x7d1d7000 C:\WINDOWS\system32\SHELL32.dll
    0x773d0000 - 0x774d3000 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.6028_x-ww_61e65202\comctl32.dll
    0x5d090000 - 0x5d12a000 C:\WINDOWS\system32\comctl32.dll
    0x00b10000 - C:\Program Files\sqldeveloper\ide\bin\launcher.dll 0x00b35000
    0x77c00000 - 0x77c08000 C:\WINDOWS\system32\VERSION.dll
    0 x 74720000 - 0x7476c000 C:\WINDOWS\system32\MSCTF.dll
    0x78aa0000 - C:\Program Files\Java\jdk1.7.0_51\bin\msvcr100.dll 0x78b5f000
    0x6e8a0000 - C:\Program Files\Java\jdk1.7.0_51\jre\bin\client\jvm.dll 0x6ec20000
    0x71ad0000 - 0x71ad9000 C:\WINDOWS\system32\WSOCK32.dll
    0x71ab0000 - 0x71ac7000 C:\WINDOWS\system32\WS2_32.dll
    0x71aa0000 - 0x71aa8000 C:\WINDOWS\system32\WS2HELP.dll
    0x76b40000 - 0x76b6d000 C:\WINDOWS\system32\WINMM.dll
    0x76bf0000 - 0x76bfb000 C:\WINDOWS\system32\PSAPI. DLL
    0x6e7f0000 - C:\Program Files\Java\jdk1.7.0_51\jre\bin\verify.dll 0x6e7fc000
    0x6d590000 - C:\Program Files\Java\jdk1.7.0_51\jre\bin\java.dll 0x6d5b0000
    0x755c0000 - 0x755ee000 C:\WINDOWS\system32\msctfime.ime
    0x6e880000 - C:\Program Files\Java\jdk1.7.0_51\jre\bin\zip.dll 0x6e893000
    0x6d110000 - C:\Program Files\Java\jdk1.7.0_51\jre\bin\awt.dll 0x6d253000
    0 x 77120000 - 0x771ab000 C:\WINDOWS\system32\OLEAUT32.dll
    0x6d380000 - C:\Program Files\Java\jdk1.7.0_51\jre\bin\fontmanager.dll 0x6d3b9000
    0x6e5c0000 - C:\Program Files\Java\jdk1.7.0_51\jre\bin\net.dll 0x6e5d4000
    0x6e5e0000 - C:\Program Files\Java\jdk1.7.0_51\jre\bin\nio.dll 0x6e5ef000
    0x6e7a0000 - C:\Program Files\Java\jdk1.7.0_51\jre\bin\t2k.dll 0x6e7d0000
    0x6d290000 - C:\Program Files\Java\jdk1.7.0_51\jre\bin\dcpr.dll 0x6d2b4000
    0x76d60000 - 0x76d79000 C:\WINDOWS\system32\IPHLPAPI. DLL
    0x76d40000 - 0x76d58000 C:\WINDOWS\system32\MPRAPI.dll
    0x77cc0000 - 0x77cf2000 C:\WINDOWS\system32\ACTIVEDS.dll
    0x76e10000 - 0x76e35000 C:\WINDOWS\system32\adsldpc.dll
    0x5b860000 - 0x5b8b5000 C:\WINDOWS\system32\NETAPI32.dll
    0x76f60000 - 0x76f8c000 C:\WINDOWS\system32\WLDAP32.dll
    0x76b20000 - 0x76b31000 to C:\WINDOWS\system32\ATL. DLL
    0x76e80000 - 0x76e8e000 C:\WINDOWS\system32\rtutils.dll
    0x71bf0000 - 0x71c03000 C:\WINDOWS\system32\SAMLIB.dll
    0 x 77920000 - 0x77a13000 C:\WINDOWS\system32\SETUPAPI.dll
    0x71a50000 - 0x71a8f000 C:\WINDOWS\system32\mswsock.dll
    0x662b0000 - 0 x 66308000 C:\WINDOWS\system32\hnetcfg.dll
    0x71a90000 - 0x71a98000 C:\WINDOWS\System32\wshtcpip.dll
    68000000 0 x - 0 x 68036000 C:\WINDOWS\system32\rsaenh.dll
    0x769c0000 - 0x76a74000 C:\WINDOWS\system32\USERENV.dll
    0x76f20000 - 0x76f47000 C:\WINDOWS\system32\DNSAPI.dll
    0x76fb0000 - 0x76fb8000 C:\WINDOWS\System32\winrnr.dll
    0x76fc0000 - 0x76fc6000 C:\WINDOWS\system32\rasadhlp.dll
    0 x 08690000 - C:\Program Files\sqldeveloper\ide\lib\idenative.dll 0x086ab000
    0x6e520000 - C:\Program Files\Java\jdk1.7.0_51\jre\bin\management.dll 0x6e52a000
    0x6e770000 - C:\Program Files\Java\jdk1.7.0_51\jre\bin\sunec.dll 0x6e790000
    0x76fd0000 - 0x7704f000 C:\WINDOWS\system32\CLBCATQ. DLL
    0 x 77050000 - 0 x 77115000 C:\WINDOWS\system32\COMRes.dll
    0x6e790000 - C:\Program Files\Java\jdk1.7.0_51\jre\bin\sunmscapi.dll 0x6e799000
    0x77a80000 - 0x77b17000 C:\WINDOWS\system32\CRYPT32.dll
    0x77b20000 - 0x77b32000 C:\WINDOWS\system32\MSASN1.dll
    0x71b20000 - 0x71b32000 C:\WINDOWS\system32\MPR.dll
    0x75f60000 - 0x75f67000 C:\WINDOWS\System32\drprov.dll
    0x71c10000 - 0x71c1e000 C:\WINDOWS\System32\ntlanman.dll
    0x71cd0000 - 0x71ce7000 C:\WINDOWS\System32\NETUI0.dll
    0x71c90000 - 0x71cd0000 C:\WINDOWS\System32\NETUI1.dll
    0x71c80000 - 0x71c87000 C:\WINDOWS\System32\NETRAP.dll
    0x75f70000 - 0x75f7a000 C:\WINDOWS\System32\davclnt.dll
    0x77b40000 - 0x77b62000 C:\WINDOWS\system32\appHelp.dll
    0x593f0000 - 0 x 59482000 C:\WINDOWS\system32\wiashext.dll
    0x0a870000 - 0x0aa1b000 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.GdiPlus_6595b64144ccf1df_1.0.6002.23084_x-ww_f3f35550\gdiplus.dll
    0x0aa20000 - 0x0ab07000 C:\WINDOWS\system32\WININET.dll
    0x0ab10000 - 0x0ab19000-C:\WINDOWS\system32\Normaliz.dll
    0 x 78130000 - 0 x 78264000 C:\WINDOWS\system32\urlmon.dll
    0x0ab20000 - 0x0ad0c000 C:\WINDOWS\system32\iertutil.dll
    0x0add0000 - 0x0b095000 C:\WINDOWS\system32\xpsp2res.dll
    0x73ba0000 - 0x73bb3000 C:\WINDOWS\system32\sti.dll
    0x74ae0000 - 0x74ae7000 C:\WINDOWS\system32\CFGMGR32.dll
    0 x 76980000 - 0 x 76988000 C:\WINDOWS\system32\LINKINFO.dll
    0 x 76990000 - 0x769b5000 C:\WINDOWS\system32\ntshrui.dll
    0x09ce0000 - 0x09cfa000 C:\WINDOWS\system32\hccutils. DLL
    0x62f00000 - 0x62f1a000 C:\app\oracle\product\11.2.0\instantclient_11_2\ocijdbc11.dll
    0x0a370000 - 0x0a470000 C:\app\oracle\product\11.2.0\instantclient_11_2\OCI.dll
    0x088f0000 - 0x0898b000 C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.6195_x-ww_44262b86\MSVCR80.dll
    0x0b4a0000 - 0x0b847000 C:\app\oracle\product\11.2.0\client_1\bin\OraClient11.Dll
    0x60f00000 - 0x60ff1000 C:\app\oracle\product\11.2.0\client_1\bin\oracore11.dll
    0 x 61400000 - 0x614ca000 C:\app\oracle\product\11.2.0\client_1\bin\oranls11.dll
    0 x 65830000 - 0x6584b000 C:\app\oracle\product\11.2.0\client_1\bin\oraunls11.dll
    0x618c0000 - 0x618c7000 C:\app\oracle\product\11.2.0\client_1\bin\orauts.dll
    0x619b0000 - 0x61be3000 C:\app\oracle\product\11.2.0\client_1\bin\oracommon11.dll
    0 x 65630000 - 0 x 65660000 C:\app\oracle\product\11.2.0\client_1\bin\orasnls11.dll
    0x0b850000 - 0x0c45f000 C:\app\oracle\product\11.2.0\client_1\bin\orageneric11.dll
    0 x 65910000 - 0x65c80000 C:\app\oracle\product\11.2.0\client_1\bin\oraxml11.dll
    0x7c420000 - 0x7c4a7000 C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.6195_x-ww_44262b86\MSVCP80.dll
    0x0c460000 - 0x0c860000 C:\app\oracle\product\11.2.0\client_1\bin\oran11.dll
    0x0a680000 - 0x0a6e2000 C:\app\oracle\product\11.2.0\client_1\bin\oranl11.dll
    0x09da0000 - 0x09dd6000 C:\app\oracle\product\11.2.0\client_1\bin\orantcp11.dll
    0x0a700000 - 0x0a74d000 C:\app\oracle\product\11.2.0\client_1\bin\oranldap11.dll
    0x627f0000 - 0x6292c000 C:\app\oracle\product\11.2.0\instantclient_11_2\orannzsbb11.dll
    0x638b0000 - 0x63a3c000 C:\app\oracle\product\11.2.0\client_1\bin\oraldapclnt11.dll
    0x0ad50000 - 0x0ad6e000 C:\app\oracle\product\11.2.0\client_1\bin\orancrypt11.dll
    0x65cb0000 - 0x65e38000 C:\app\oracle\product\11.2.0\client_1\bin\orazt11.dll
    0x0c860000 - 0x0c8ac000 C:\app\oracle\product\11.2.0\client_1\bin\oranro11.dll
    0x0adb0000 - 0x0adbd000 C:\app\oracle\product\11.2.0\client_1\bin\oranhost11.dll
    0x0c8c0000 - 0x0c8c6000 C:\app\oracle\product\11.2.0\client_1\bin\orancds11.dll
    0x0c8e0000 - 0x0c8f1000 C:\app\oracle\product\11.2.0\client_1\bin\orantns11.dll
    0x65e40000 - 0x65ed3000 C:\app\oracle\product\11.2.0\client_1\bin\oraztkg11.dll
    0x614d0000 - 0x618b2000 C:\app\oracle\product\11.2.0\client_1\bin\orapls11.dll
    0 x 65620000 - 0 x 65629000 C:\app\oracle\product\11.2.0\client_1\bin\oraslax11.dll
    0 x 65850000 - 0 x 65856000 C:\app\oracle\product\11.2.0\client_1\bin\oravsn11.dll
    0 x 65100000 - 0x653d1000 C:\app\oracle\product\11.2.0\client_1\bin\oraplp11.dll
    0x632b0000 - 0 x 63633000 C:\app\oracle\product\11.2.0\client_1\bin\orahasgen11.dll
    0 x 64630000 - 0x646ce000 C:\app\oracle\product\11.2.0\client_1\bin\oraocr11.dll
    0x646d0000 - 0x6478d000 C:\app\oracle\product\11.2.0\client_1\bin\oraocrb11.dll
    0 x 64790000 - 0x6479d000 C:\app\oracle\product\11.2.0\client_1\bin\oraocrutl11.dll
    0x59a60000 - 0x59b01000 C:\WINDOWS\system32\dbghelp.dll
    0x62bd0000 - 0x62c0e000 C:\app\oracle\product\11.2.0\client_1\bin\oracell11.dll
    0x0c9a0000 - 0x0ca38000 C:\app\oracle\product\11.2.0\instantclient_11_2\orasql11.dll
    0x650e0000 - 0x650f8000 C:\app\oracle\product\11.2.0\client_1\bin\OraPlc11.Dll

    VM Arguments:
    jvm_args:-Xbootclasspath/a: C:\Program Files\Java\jdk1.7.0_51\lib\tools.jar; C:\Program Files\Java\jdk1.7.0_51\lib\dt.jar-Dsun.java2d.noddraw=true-Dnetbeans.home=/Program Files/sqldeveloper/netbeans/platform /-Dnetbeans.logger.console=true-Dexcluded.modules=org.eclipse.osgi-Dide.cluster.dirs=/Program Files/sqldeveloper/netbeans/fcpbridge /: / Program Files/sqldeveloper/netbeans/ide /: / Program files/sqldeveloper/netbeans /... /-Xverify: none-Doracle.ide.extension.HooksProcessingMode=LAZY-Dorg.eclipse.equinox.simpleconfigurator.configUrl=file:bundles.info-Dosgi.bundles=file:/Program Files/sqldeveloper/ide/ide/lib/oracle.ide.osgi.jar@3:start -Dosgi.bundles.defaultStartLevel=1-Dosgi.configuration.cascaded=false-Dosgi.noShutdown=true-Dorg.osgi.framework.bootdelegation=*-Dosgi.parentClassloader=app-Dosgi.locking=none - Xbootclasspath/p:/Program Files/sqldeveloper /. rdbms/jlib/ojdi.jar-Dosgi.classloader.type=parallel-Dosgi.bundlefile.limit=500-Dide.feedback-server=ide.us.oracle.com-Djavax.xml.transform.TransformerFactory=oracle.ide.xml.switchable.SwitchableTransformerFactory-Djavax.xml.stream.XMLInputFactory=com.ctc.wstx.stax.WstxInputFactory-Djavax.xml.stream.util.XMLEventAllocator= oracle.ideimpl.xml.stream.XMLEventAllocatorImpl-Doracle.ide.reportEDTViolations=bug-Doracle.ide.reportEDTViolations.exceptionsfile=/Program Files/sqldeveloper/ide/bin/swing-thread-violations.conf-Xms128M-Xmx800M-Dide.update.usage.servers=http://www.oracle.com/webfolder/technetwork/sqldeveloper/usage.xml -Doracle.ide.util.AddinPolicyUtils.OVERRIDE_FLAG=true-Dsun.java2d.ddoffscreen=false-Dwindows.shell.font.languages= - XX : MaxPermSize = 256 M-Doracle.ide.startup.features=sqldeveloper-Doracle.ide.osgi.boot.api.OJStartupHook=oracle.dbtools.raptor.startup.HomeSupport-Doracle.jdbc.mapDateToTimestamp=false-Doracle.jdbc.autoCommitSpecCompliant=false-Doracle.jdbc.useFetchSizeWithLongColumn=true-Dsun.locale.formatasdefault=true - Dide.AssertTracingDisabled=true - Doracle.ide.util.AddinPolicyUtils.OVERRIDE_FLAG=true-Djava.util.logging.config.file=logging.conf-Dsqldev.debug=false-Xms128m-Xmx800m-Dide.startingArg0=C:\Program Files\sqldeveloper\sqldeveloper.exe-Dide.launcherProcessId=5844-Dide.config_pathname=C:\Program Files\sqldeveloper\sqldeveloper\bin\sqldeveloper.conf-Dide.startingcwd=C:\Program Files\sqldeveloper--Dtool.user.conf=C:\Documents Duser.conf=C:\Documents et Settings\RMURPHY\Application Data\sqldeveloper\1.0.0.0.0\product.conf et Settings\RMURPHY\Application Data\sqldeveloper\1.0.0.0.0\sqldeveloper.conf-Dide.shell.enableFileTypeAssociation=C:\Program Files\sqldeveloper\sqldeveloper.exe-Dide.pref.dir.base=C:\Documents and Settings\RMURPHY\Application Donnees-dide.work.dir.base=c:\sw Documents
    java_command: oracle.ide.osgi.boot.OracleIdeLauncher
    Type of launcher: generic

    Environment variables:
    PATH=C:\app\oracle\product\11.2.0\instantclient_11_2; C:\Program Files\Common Files\Microsoft Shared\Microsoft Services online; C:\app\oracle\product\11.2.0\Client_1\bin; C:\oracle\product\10.2.0\client_2\bin; E:\oracle\product\10.2.0\Client_1\bin; C:\Windows\System32; C:\WINDOWS; C:\WINDOWS\System32\Wbem; C:\Windows\system32\WindowsPowerShell\v1.0; C:\Program Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\; C:\Program Files\Microsoft SQL Server\100\Tools\Binn\; C:\Program Files\Microsoft SQL Server\100\DTS\Binn\; C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\. C:\Program Files\Windows Imaging\. C:\Program Files\OmniBack\bin\
    USERNAME = xxxxxxx

    OS = Windows_NT
    PROCESSOR_IDENTIFIER = x 86 family 6 model 23 Stepping 10, GenuineIntel

    ---------------  S Y S T E M  ---------------

    OS: Windows XP Build 2600 Service Pack 3

    CPU:total 2 (2 cores per processor, 1 threads by heart) family 6 model 23 stepping 10 cmov cx8 fxsr, mmx, sse, sse2, sse3, ssse3, tsc

    Memory: 4 k page, physical 3632676 k (2422308 k free), Exchange 7639844 k (6369116 k free)

    vm_info: Java hotspot Client VM (24.51 - b03) for JRE windows - x 86 (1.7.0_51 - b13), built on 18 December 2013 19:09:58 by 'java_re' with unknown MS VC ++: 1600

    time: kill May 05 13:04:05 2014
    elapsed time: 111 seconds

    Hi 876213,

    Since 'the accident occurred outside the Virtual Machine Java to native code' (e.g. oran11.dll), you should try one of the following conditions:

    1. avoid the Oracle DB client code.

    2. cleaning of the Oracle DB client so that only one Windows PATH ENV variable appears (instead of 3!).  It resembles a version mismatch.

    So I recommend one of these:

    1. use Connection Type: base without database > advanced > use Oracle Client and the driver use OIC/thickness options

    2. at least install client Oracle 11.2.0.3 moment (the minimum for SQL Dev 4.0.x) and put it on the PATH, first removing all other Oracle customers

    If you do not want to change the path globally in Windows system settings, create a .bat file which then adjusts lance SQL Developer.

    Kind regards

    Gary

    SQL development team

  • The elements and the SQL Types

    I just started learning apex and I'm confused about the application and page elements. Since they can serve as a kind of variables in the SQL and PL/SQL (for example, by using the syntax variables bind), at some point they should be prescribed a type, since SQL and PL/SQL are two strongly typed languages.

    It seems that the items have types, see the documentation (http://docs.oracle.com/cd/E11882_01/appdev.112/e11947/bldapp.htm#BCEDCGGH), but I don't know how they correspond to the SQL types.

    For example, I saw that to_date is always used with items of type date picker, implying that it is a string of SQL type.

    So the question. What have SQL type apex page/application parts, is what type conversion do I need to use when dealing with items in SQL and PL/SQL?

    They are all VARCHAR2 (4000) as far as I know - anything application are the same and the page elements is adjustable in number or date more. Put date or number will include only internal validation, check whether the format is match the parameters of globalization of applications.

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Apress.com/9781430235125
    http://Apex.Oracle.com/pls/Apex/f?p=31517:1
    http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
    -------------------------------------------------------------------

  • Dynamic SQL without using SQL

    I have a variable that contains a formula, for example.
    V_FORMULA varchar2 (200): = '5 * 50 + 200';

    I want to assign the result of the formula in another variable, without the help of a call from DB with SQL.

    for example.
    Number V_RESULT;

    V_RESULT: = DBMS_surprise_package (V_FORMULA);

    I want V_RESULT to 450 after the statement is executed.

    Is this possible? Is there such a PLSQL package?

    I think that the package of forms NAME_IN done something similar.

    Where my point about cursor_sharing.
    You can assign only it FORCE (Oracle will be more or less "auto-bind", you'll see: SYS_B0 variable etc. appear in drawings if you trace/tkprof this session) for the session which made the treatment and see if it behaves better.
    It should result in (a lot) less parsed and/or invasion of your shared pool.
    You can test quickly and easily:

    SQL> sho parameter sharing
    
    NAME                                 TYPE        VALUE
    ------------------------------------ ----------- ------------------------------
    cursor_sharing                       string      EXACT
    SQL> alter session set cursor_sharing='FORCE';
    
    Session altered.
    
    SQL> run_your_program_here...trace it or measure timing and compare duration
    
    SQL> alter session set cursor_sharing='EXACT';
    
    Session altered.
    
    SQL> 
    
  • How to validate SQL syntax in Application Engine Peoplecode

    Hello

    Can someone help me to find out How to validate SQL in Application Engine Peoplecode. I just need to validate SQL syntax. If the syntax is wrong, it should save the exception in the log file but engine Apllication should not go WITHOUT success. App Engine should continue with other SQL validation to check the correct syntax and to retrieve values.

    Here is given is peoplecode, which is that I currently use.

    Thanks in advance.


    String local CSG_SQL_ID & sqltext;
    Local date & effdt;
    Local Boolean & sql_flag = True;

    & CSG_SQL_ID = CSG_REP_DIS_AET. CSG_SQL_ID. value;
    SQLExec ("SELECT DEV. CST PS_CSG_SQL_TMP, CRAD PS_CSG_REP_AUT_DST SQLTEXT WHERE CSE. CSG_SQL_ID = DEV. CSG_SQL_ID AND CST. EFFDT = DEV. EFFDT AND CST. CSG_SQL_ID =: 1 ", CSG_SQL_ID, & sqltext);

    Try

    & sql_flag = SQLExec (& sqltext);
    If & sql_flag = True Then
    & sql = CreateSQL (& sqltext);
    Local string SqlString = & sql. Value;
    Logger (String (ExtractTablesJob (& SqlString)));
    Logger (String (ExtractTablesDept (& SqlString)));
    End - If;

    catch Exception & sqlerror
    MessageBox (0, "", 0, 0, "found Exception");
    end - try;

    Ludi,

    I apologize: I remembered wrong. The Select Type must be reselect. I opened a ticket with Oracle on this problem. I hope that maybe they will build better error messaging tools, but we'll see. The real result of the ticket, it is that evolution to select Type of reselect solved my problem.

    Remember that when you Reselect it, you need to follow wherever you are. Reselect him running the DoSelect SQL statement every time until it returns no rows. So, you will need a flag turned on the table. You're DoSelect should select only the rows where the transformed flag is N. Then, you must update the line you are dealing with to set the flag turned on Y. In this way, you will pass through the processing of each lines.

    Also, just to be clear, I don't think that App Designer will ever "validate" your SQL. It allows the database to do that when you run it. It can be frustrating because up to now it is not telling you that you are developing, but the advantage is that App Designer does not limit you. You can place some SQL you want in your program, and it will transmit to the database. Stored procedures, functions, all work because the App Designer do not validate things specific special platform.

    If you wish, you can copy your SQL in the SQLExec to a SQL definition:
    SELECT THE DEV. SQLTEXT
    OF PS_CSG_SQL_TMP CST.
    PS_CSG_REP_AUT_DST SLAG
    WHERE CSE. CSG_SQL_ID = DEV. CSG_SQL_ID
    AND CSE. EFFDT = DEV. EFFDT
    AND CSE. CSG_SQL_ID =: 1

    You could name MY_AE_SQL.

    Then, in your App Engine PeopleCode, you can change the SQLExec in:
    SQLExec (SQL. MY_AE_SQL, & CSG_SQL_ID, & sqltext);

    This will place your SQL in a place that teaches better, but I don't think that it will validate it no more. In my opinion, it makes your code more difficult to read. Someone coming along behind you must open several pieces of code to see what your program does.

    The more I watch your program, you want probably to validate and protect the SQL code that is in & sqltext, rather than the SQLExec. If you want it to be dynamic, I don't see what you can do.

    You could possibly launch an other App Engine as another process. You can use the object API ProcessRequest to plan the program through the process scheduler. You must pass your dynamic SQL code to the other program through a sort of serial control. In this way each SQL would go as a separate instance in process monitor and would go to success or no success individually. I still think it's too complicated.

    I hope these thoughts help. It looks like a difficult task.

    Stephen

  • Format string when to get database

    Hi all

    I have problem when the display string that is based on form data.

    Here is the sample code for this problem:

    var str:String = "this is the first sentence. \n And here's the second sentence.

    ...

    < s:Label text = "{str}" / >

    = > put the output:

    Here is the first sentence.

    And here's the second sentence

    but when I get this string of SQL database, put: here is the first sentence. \n And here's the second sentence

    There are no spacing see what character '\n '.

    I hope someone can help me.

    Thank you and sorry for my bad English.

    It would be unusual for a two-character string "-" and "n" to represent the new lines when it is kept in databases or files.  The '\n' is usually converted by the compilers or interpreters in the correct characters.  You might want to look at how this is happening and change before it is stored.

    But if you can not change it before it is stored, I believe you can use the following to convert

    var fixedString:String = string.replace(/\\n/g, "\n");
    
  • Strange thing in the SQL and PL/SQL

    Hi all

    I meet a very strange thing of the length of the string in SQL and PL/SQL.
    I ran the length of the string SQL and PL/SQL. The output values do not match.
    Can you please help me on how this happens?

    SQL
    select LENGTH ( '!w0n5hn:  0.1 qlpgz-P0h1txtn-tk68-..1tk81-!A_kh0nlw_P0hphn0ln kh0nlw P0hphn0ln
    zyntwm qlpgz – P0h1txtn 0n1 B00n1n – T00xk-..2 pwqt50wmwntn zt0ttn Pwn15nl pwlw0nw
    tk pwfw0wnxw1 Extwnn5hn hf: T00xk ..1 qlpgz-P0h1txtn-tk77-!A_P0hphn0ln_B0hwnw0
    Annhx50tw1 tkpn 
    P05m00y Axth0n 
    zwxhn100y Axth0n 
    gwnx05pt5hn  zx0wwn 1
     
     
     
     
    
    zx0wwn 2
     
     
     
     
     
     
     
     
    
    zx0wwn .
     
     
     
     
     
     
     
     
    
    zx0wwn !
     
     
     
     
     
     
     
     
    
    zx0wwn 5
     
    
    P0w-khn15t5hnn ed Thw tnw0 m0y l0tnxh thw kh0nlw P0hphn0l f0x5l5t5wn hy nwlwxt5nl thw kh0nlw !0ltw ftnxt5hn hn thw p0hphn0ln h0hwnw0
    Phnt khn15t5hnn ed Fhllhw5nl thw ntxxwnnftl kh0nlw hf 0 15xt5hn00y xh0nnwl p0hphn0l, thw nyntwm x0005wn htt fhllhw5nl 0xt5hnn:
    eded Thw xh0nlw1 !0ltw 5n nh lhnlw0 0!05l0hlw fh0 nwlwxt5hn 1t05nl 5twm m05ntwn0nxw; thw nyntwm thw0why p0w!wntn thw !0ltw hw5nl 0nn5lnw1 th 0115t5hn0l 5twmn
    edmq Thw xh0nlw1 !0ltw 5n 0wmh!w1 f0hm 0ll 5twmn hn wh5xh 5t 5n p0wnwnt 0n1 0wpl0xw1 hy thw tnw0 npwx5f5w1 0wpl0xwmwnt; whw0w th5n 5mp0xtn 1w05!w1, 5twm-lw!wl fl0ln, ntxh 0n “pwn15nl 0tthh05n0t5hn”, thw nyntwm 0lnh 0mwn1n thwnw fl0ln 
    ed.. Thw xh0nlw1 !0ltw p0hphn0l 5n 011w1 th thw pwjwxtw1 P0hphn0ln l5h000y, 0lhnl w5th thw xh0nlw x0twlh0y 0n1 0w0nhn th0t 00w npwx5f5w1 hy thw tnw0 5n thw xh0nlw !0ltw 150lhl
    ed!. An 0 0wntlt hf 0wmh!5nl thw xh0nlw1 !0ltw f0hm 0ll 5twmn, 0ll tn0lwn hf thw xh0nlw1 !0ltw 00w, hf xht0nw, 0wmh!wed  Th5n 5nw!5t0hly 0wntltn 5n thw 0wmh!0l hf 0ll p0hphn0ln 5n!hl!5nl thw xh0nlw1 !0ltw 5n 0ll hthw0 xh0nnwln.  Thw 0115t5hn hf 0 nww !0ltw th thwnw 5twmn m0y, hf xht0nw, x0w0tw 0 nww p0hphn0l.  Thwnw p0hphn0ln 00w nht 0tthm0t5x0lly 0tthh05nw1 0n 0 0wntlt hf thw xh0nlw !0ltw 0xt5hn; thwy mtnt hw 01m5n5ntw0w1 hy thw 0pp0hp050tw 0tthh05nw0 5n 0 nwp000tw 0xt5hn
    ed5. An w-m05l nht5f5x0t5hn 5n 1wl5!w0w1 th thw tnw0 whh x0w0tw1 thw p0hphn0l 0n1 th 0ny 0tthh05nw0n whh h0!w 0l0w01y 0tthh05nw1 thw p0hphn0l 5n thw wh0kflhw
    mq Fhllhw5nl thw ntxxwnnftl kh0nlw hf 0 mh1tlw, lhx0l Pk h0 !0ltw-p050 xh0nnwl p0hphn0l, thw nyntwm x0005wn htt fhllhw5nl 0xt5hnn:
    mqed Thw xh0nlw1 !0ltw 5tnwlf 5n 0wt05nw1 5n thw 15xt5hn00y
    mqmq Thw !0ltw 5n 0wmh!w1 f0hm 0ll 5twmn hn wh5xh thw p0hphn0l (NB. thw p0hphn0l, nht thw !0ltw) 5n p0wnwnt 0n1 0wpl0xw1 hy thw tnw0 npwx5f5w1 0wpl0xwmwnt; whw0w th5n 5mp0xtn 1w05!w1, 5twm-lw!wl fl0ln, ntxh 0n “pwn15nl 0tthh05n0t5hn”, thw nyntwm 0lnh 0mwn1n thwnw fl0ln.  In thw x0nw hf !0ltw-p050 p0hphn0ln, hnly thw p0hphn0l !0ltw th0t w0n nwlwxtw1 5n thw p0hphn0ln h0hwnw0 m0y hw xh0nlw1 (5f thw tnw0 w5nhwn th xh0nlw thw hthw0 !0ltw 5n thw p050, thwy mtnt 0xxwnn thw n0mw p050 p0hphn0l !50 th0t !0ltw 5n thw p0hphn0ln h0hwnw0)
    mq.. Thw tn0lw p0hphn0l 5n 011w1 th thw pwjwxtw1 P0hphn0ln l5h000y, 0lhnl w5th thw 0wjwxt5hn x0twlh0y 0n1 0w0nhn th0t 00w npwx5f5w1 hy thw tnw0 5n thw 0wjwxt5hn 150lhl.  Thw 0wpl0xwmwnt !0ltw th0t w0n 0ppl5w1 5n thw xh0nlw 5n 0lnh 0wxh01w1 pw0m0nwntly, nh th0t th5n x0n hw 15npl0yw1 th tnw0n whw0w 0pp0hp050tw 1t05nl 5twm xh15nl 0xt5!5ty
    mq!. An 0 0wntlt hf 0wmh!5nl thw xh0nlw1 !0ltw f0hm nhmw 5twmn, hthw0 tn0lwn hf thw !0ltw m0y 0lnh hw 0wmh!wed  If th5n 5n thw x0nw, 0n1 5f thwnw tn0lwn 00w 0lnh p0hphn0ln, th5n 0lnh 0wntltn 5n thw 0wmh!0l hf p0hphn0ln 5n!hl!5nl thw !0ltw 5n hthw0 tn0lw xh0nnwln (5t 5n w!wn 0 0wmhtw phnn5h5l5ty th0t xh0nl5nl 0 lhx0l Pk p0hphn0l m0y 0wmh!w 0 tn0lw 0n1 p0hphn0l fh0 thw n0mw !0ltw 5n 0nhthw0 lhx0l Pk; n5m5l00ly xh0nl5nl 0 !0ltw p050 m0y 0wmh!w hthw0 !0ltw-p050 tn0lwn/p0hphn0ln).  z5m5l00ly, thw 0115t5hn hf 0 nww !0ltw th 5twmn 0n 0 0wntlt hf thw xh0nlw 0xt5hn, m0y lwnw00tw nww p0hphn0ln 5n 0ny tn0lw xh0nnwl
    mq5. An w-m05l nht5f5x0t5hn 5n 1wl5!w0w1 th thw tnw0 whh x0w0tw1 thw p0hphn0l 0n1 th 0ny 0tthh05nw0n whh h0!w 0l0w01y 0tthh05nw1 thw p0hphn0l 5n thw wh0kflhw
    .. zww 5mplwmwnt0t5hn nhtwn hwlhw, tn1w0 “pwl0tw1 Infh0m0t5hn” 
    B0n5x Flhw 
     fl1l1fl1fl;lj0n1khfh0njkfhzgJKkf xhy0w0ttj 0nwhtj5y0w0hlwfklj0w0lklt5h5hn1fhlj1fhljn1fhlj1fhljwj50w0ytlt5w0j0w5t5
    ztfl!n1fllw0t!qww0wh00wwjh0f0n1jfhn1jkkwjhqw5t! tjt5w0yttwn1fln1ln1fn1') from dual;
    Here, I got an error like
    ORA-01704: string literal too long
    01704. 00000 -  "string literal too long"
    *Cause:    The string literal is longer than 4000 characters.
    *Action:   Use a string literal of at most 4000 characters.
               Longer values may only be entered using bind variables.
    Error at Line: 1 Column: 16
    But in PL/SQL,.
    BEGIN
         dbms_output.put_line(LENGTH ( '!w0n5hn:  0.1 qlpgz-P0h1txtn-tk68-..1tk81-!A_kh0nlw_P0hphn0ln kh0nlw P0hphn0ln
    zyntwm qlpgz – P0h1txtn 0n1 B00n1n – T00xk-..2 pwqt50wmwntn zt0ttn Pwn15nl pwlw0nw
    tk pwfw0wnxw1 Extwnn5hn hf: T00xk ..1 qlpgz-P0h1txtn-tk77-!A_P0hphn0ln_B0hwnw0
    Annhx50tw1 tkpn 
    P05m00y Axth0n 
    zwxhn100y Axth0n 
    gwnx05pt5hn  zx0wwn 1
     
     
     
     
    
    zx0wwn 2
     
     
     
     
     
     
     
     
    
    zx0wwn .
     
     
     
     
     
     
     
     
    
    zx0wwn !
     
     
     
     
     
     
     
     
    
    zx0wwn 5
     
    
    P0w-khn15t5hnn ed Thw tnw0 m0y l0tnxh thw kh0nlw P0hphn0l f0x5l5t5wn hy nwlwxt5nl thw kh0nlw !0ltw ftnxt5hn hn thw p0hphn0ln h0hwnw0
    Phnt khn15t5hnn ed Fhllhw5nl thw ntxxwnnftl kh0nlw hf 0 15xt5hn00y xh0nnwl p0hphn0l, thw nyntwm x0005wn htt fhllhw5nl 0xt5hnn:
    eded Thw xh0nlw1 !0ltw 5n nh lhnlw0 0!05l0hlw fh0 nwlwxt5hn 1t05nl 5twm m05ntwn0nxw; thw nyntwm thw0why p0w!wntn thw !0ltw hw5nl 0nn5lnw1 th 0115t5hn0l 5twmn
    edmq Thw xh0nlw1 !0ltw 5n 0wmh!w1 f0hm 0ll 5twmn hn wh5xh 5t 5n p0wnwnt 0n1 0wpl0xw1 hy thw tnw0 npwx5f5w1 0wpl0xwmwnt; whw0w th5n 5mp0xtn 1w05!w1, 5twm-lw!wl fl0ln, ntxh 0n “pwn15nl 0tthh05n0t5hn”, thw nyntwm 0lnh 0mwn1n thwnw fl0ln 
    ed.. Thw xh0nlw1 !0ltw p0hphn0l 5n 011w1 th thw pwjwxtw1 P0hphn0ln l5h000y, 0lhnl w5th thw xh0nlw x0twlh0y 0n1 0w0nhn th0t 00w npwx5f5w1 hy thw tnw0 5n thw xh0nlw !0ltw 150lhl
    ed!. An 0 0wntlt hf 0wmh!5nl thw xh0nlw1 !0ltw f0hm 0ll 5twmn, 0ll tn0lwn hf thw xh0nlw1 !0ltw 00w, hf xht0nw, 0wmh!wed  Th5n 5nw!5t0hly 0wntltn 5n thw 0wmh!0l hf 0ll p0hphn0ln 5n!hl!5nl thw xh0nlw1 !0ltw 5n 0ll hthw0 xh0nnwln.  Thw 0115t5hn hf 0 nww !0ltw th thwnw 5twmn m0y, hf xht0nw, x0w0tw 0 nww p0hphn0l.  Thwnw p0hphn0ln 00w nht 0tthm0t5x0lly 0tthh05nw1 0n 0 0wntlt hf thw xh0nlw !0ltw 0xt5hn; thwy mtnt hw 01m5n5ntw0w1 hy thw 0pp0hp050tw 0tthh05nw0 5n 0 nwp000tw 0xt5hn
    ed5. An w-m05l nht5f5x0t5hn 5n 1wl5!w0w1 th thw tnw0 whh x0w0tw1 thw p0hphn0l 0n1 th 0ny 0tthh05nw0n whh h0!w 0l0w01y 0tthh05nw1 thw p0hphn0l 5n thw wh0kflhw
    mq Fhllhw5nl thw ntxxwnnftl kh0nlw hf 0 mh1tlw, lhx0l Pk h0 !0ltw-p050 xh0nnwl p0hphn0l, thw nyntwm x0005wn htt fhllhw5nl 0xt5hnn:
    mqed Thw xh0nlw1 !0ltw 5tnwlf 5n 0wt05nw1 5n thw 15xt5hn00y
    mqmq Thw !0ltw 5n 0wmh!w1 f0hm 0ll 5twmn hn wh5xh thw p0hphn0l (NB. thw p0hphn0l, nht thw !0ltw) 5n p0wnwnt 0n1 0wpl0xw1 hy thw tnw0 npwx5f5w1 0wpl0xwmwnt; whw0w th5n 5mp0xtn 1w05!w1, 5twm-lw!wl fl0ln, ntxh 0n “pwn15nl 0tthh05n0t5hn”, thw nyntwm 0lnh 0mwn1n thwnw fl0ln.  In thw x0nw hf !0ltw-p050 p0hphn0ln, hnly thw p0hphn0l !0ltw th0t w0n nwlwxtw1 5n thw p0hphn0ln h0hwnw0 m0y hw xh0nlw1 (5f thw tnw0 w5nhwn th xh0nlw thw hthw0 !0ltw 5n thw p050, thwy mtnt 0xxwnn thw n0mw p050 p0hphn0l !50 th0t !0ltw 5n thw p0hphn0ln h0hwnw0)
    mq.. Thw tn0lw p0hphn0l 5n 011w1 th thw pwjwxtw1 P0hphn0ln l5h000y, 0lhnl w5th thw 0wjwxt5hn x0twlh0y 0n1 0w0nhn th0t 00w npwx5f5w1 hy thw tnw0 5n thw 0wjwxt5hn 150lhl.  Thw 0wpl0xwmwnt !0ltw th0t w0n 0ppl5w1 5n thw xh0nlw 5n 0lnh 0wxh01w1 pw0m0nwntly, nh th0t th5n x0n hw 15npl0yw1 th tnw0n whw0w 0pp0hp050tw 1t05nl 5twm xh15nl 0xt5!5ty
    mq!. An 0 0wntlt hf 0wmh!5nl thw xh0nlw1 !0ltw f0hm nhmw 5twmn, hthw0 tn0lwn hf thw !0ltw m0y 0lnh hw 0wmh!wed  If th5n 5n thw x0nw, 0n1 5f thwnw tn0lwn 00w 0lnh p0hphn0ln, th5n 0lnh 0wntltn 5n thw 0wmh!0l hf p0hphn0ln 5n!hl!5nl thw !0ltw 5n hthw0 tn0lw xh0nnwln (5t 5n w!wn 0 0wmhtw phnn5h5l5ty th0t xh0nl5nl 0 lhx0l Pk p0hphn0l m0y 0wmh!w 0 tn0lw 0n1 p0hphn0l fh0 thw n0mw !0ltw 5n 0nhthw0 lhx0l Pk; n5m5l00ly xh0nl5nl 0 !0ltw p050 m0y 0wmh!w hthw0 !0ltw-p050 tn0lwn/p0hphn0ln).  z5m5l00ly, thw 0115t5hn hf 0 nww !0ltw th 5twmn 0n 0 0wntlt hf thw xh0nlw 0xt5hn, m0y lwnw00tw nww p0hphn0ln 5n 0ny tn0lw xh0nnwl
    mq5. An w-m05l nht5f5x0t5hn 5n 1wl5!w0w1 th thw tnw0 whh x0w0tw1 thw p0hphn0l 0n1 th 0ny 0tthh05nw0n whh h0!w 0l0w01y 0tthh05nw1 thw p0hphn0l 5n thw wh0kflhw
    .. zww 5mplwmwnt0t5hn nhtwn hwlhw, tn1w0 “pwl0tw1 Infh0m0t5hn” 
    B0n5x Flhw 
     fl1l1fl1fl;lj0n1khfh0njkfhzgJKkf xhy0w0ttj 0nwhtj5y0w0hlwfklj0w0lklt5h5hn1fhlj1fhljn1fhlj1fhljwj50w0ytlt5w0j0w5t5
    ztfl!n1fllw0t!qww0wh00wwjh0f0n1jfhn1jkkwjhqw5t! tjt5w0yttwn1fln1ln1fn1') );
    END;
    I got the value as 3969.

    I tried with the same string. I know that the maximum length of the SQL string is 4000 and PL/SQL is 32767. but the thing is when am a length of the string in PL/SQL as less than 4000, then iwhy must not be run alongside SQL?

    Can you help me out on this issue?

    DB: Oracle 11g Release 2

    Thank you and best regards,
    Suresh.

    Suresh Mohan says:

    Outside chr (256), are there other characters of white space available?

    White space characters are listed on http://en.wikipedia.org/wiki/Whitespace_character.

    From the point of view of the old MS-MS-BACK/ASCII characters, a white space character was #256 as the chariot of normal space was #32. He was also a space compared to a difficult space.

    You need to look at the character set you use - ASCII is a set of characters in a single byte, and not the same thing.

    You can use the SQL DUMP() function to watch the characters in a string. For example

    select dump( my_string_column ) from my_table where ...
    
  • info from the connection string

    Hello
    Anyone know if it is possible to get information from the connection string in sql / plsql?
    You can do
    SELECT user to double;
    and you get the current user. Is it possible to get the current connection string information too?
    Thanks in advance.
    Monika

    What happened to create an external table reading the newspaper to the listener?

    How to make an In - Database listener.log File

  • find the number of underscores in a string

    Hi all -

    Is it possible to find the number of underscores in a simple string using SQL?

    Thank you-

    This?

    length (txt) -
           length (replace (txt, '_'))
    

Maybe you are looking for

  • How I rank (using the stars) my music in iOS 10 music app?

    I can't find where to classify my music which is on my iPhone. I found similar / selector do not like, but this isn't what I want. Someone knows how to do? Thank you

  • Is a solution for a first call retriggable?

    Hello world I do labview with stuffs of logic.  I'm stuck by exploting a first call to retriggable. Here's an overview of what I see: There is a loop for, loop inside where some time ago. The while loop contains a structure of the case, the 'first no

  • Black screen problem Acer E5-511

    Hi all My acer became all black I can power walk but windows does not start just black screen and the projection of arrow cursor Help, please

  • How can I remove a second installation of Windows?

    REINSTALLING WINDOWS XP I accidently reinstalled Windows XP Professional on my Dell Latitude D620 and now starting, I gives me the choice of two operating systems XP Professional or XP Professional. When I click on the first option, I can connect but

  • cannot print the document from Windows Mail, get a script error

    When I try to print an electronic document of Windows Mail, I get the following error message: -An error has occurred in the script on this page -Line: 2115 -Char: 1 -Error: unexpected call to method or property access -Code: 0 -url://ieframe.dll/pre