Regexp_substr  and connect by level.

Hi
I have a a below query and out put also given below
Query:
select distinct cont_id,ct.TAG245 from contact_tag ct where ct.CONT_ID='AEGA-3R43UM'
OUTPUT
Cont_id TAG245
AEGA-3R43UM     060|02.00|060|02.00|060|02.00|060|02.00
In the above output for TAG245 we have two values first value is percentage and second value is frequency.
I need to make all frequency values sum.(ie 02.00+02.00+02.00+02.00)
Expected output
Plannedcall
6
Step 1
First I am approaching the above output dividing the each pipe symbols into each row using the below query but it is not working it is taking long time.Can you advice me on this so that i can goto next step:2.
The query
SELECT regexp_substr (ct.TAG245, '[|,]+', 1, level) frequency
FROM contact_tag ct
--where ct.CONT_ID='AEGA-3R43UM'
CONNECT BY LEVEL <= LENGTH (REGEXP_REPLACE (ct.TAG245, '[|,]+')) + 1
order by 1;
Step: 2
Once i get the output I will sum the even rows because all evenrows has frequency values.
Thanks

876639 wrote:
Hi Blu Shadow
When I Run the below query
SELECT level as lvl, regexp_substr (ct.TAG245, '[^|]+', 1, level) frequency
FROM contact_tag ct
WHERE cont_id = 'AEGA-3R43UM'
CONNECT BY regexp_substr(ct.TAG245, '[^|]+', 1, level) is not null
it is taking long time, because you have used the with clause, here i am getting the values directly from Table Contact _tag,
could you telll me? why it is like that.Do you have an index on cont_id or is it the primary key?
How much data is in the table?
We can't tell you why it's going slow unless you provide us with sufficient information.
See the threads linked to by the following post:
{message:id=9360003}

Similar Messages

  • Level and connect by in query

    Hi Friends,
    I have table TEST_REP  with below data
    DA                     SUMA                  
    2011                   2                     
    2011                   3                     
    2011                   5                     
    2012                   2                     
    2012                   7                     
    2014                   2                     
    2014                   10                    
    2015                   2                     
    2016                   33                    
    2015                   26                    
    2017                   21                    
    2017                   2                     
    2018                   23                    
    13 rows selected
    I have used following query to get the below output:
    select
             br_mat MAT_YEAR,
             sum(br_par)  TOTAL
    from    (
    (select to_char(da) br_mat,suma br_par from test_rep)
    UNION ALL
                select to_char(seeddate + level-1),0
                    from dual d, (select min(da) min_maturity_year,
                                  max(da) max_maturity_year,
                                  TO_Number(TO_CHAR(sysdate,'YYYY')) seeddate
                                                               from test_rep
                                    ) t
                    connect by level <= (t.max_maturity_year - t.min_maturity_year) + 1
    group by br_mat
    order by br_mat;
    Output :
    MAT_YEAR                                 TOTAL                 
    2011                                     10                    
    2012                                     9                     
    2013                                     0                     
    2014                                     12                    
    2015                                     28                    
    2016                                     33                    
    2017                                     23                    
    2018                                     23                    
    2019                                     0                     
    2020                                     0                     
    10 rows selected
    Expected Output :
    MAT_YEAR                                 TOTAL                 
    2011                                     10                    
    2012                                     9                     
    2013                                     0                     
    2014                                     12                    
    2015                                     28                    
    2016                                     33         
    2017 and Greater                 46
    Please help .

    Adapt your query using something like (the following won't list missing years - 2013) NOT TESTED!
    select case when da >= :upper_limit
                then :upper_limit || ' and Greater'
                else to_char(da)
           end mat_year,
           sum(sumA) total
      from test_rep
    group by case when da >= :upper_limit
                   then :upper_limit || ' and Greater'
                   else to_char(da)
              end
    order by 1
    Regards
    Etbin

  • Level and Connect by

    Hello all,
    Can anyone define LEVEL and CONNECT BY as i'm unable to figure out its concept.
    Thank You
    KK

    Perhaps an example may clarify...
    SQL> ed
    Wrote file afiedt.buf
      1  select empno, level, lpad(' ',(level-1)*2,' ')||ename as ename
      2  from emp
      3  connect by mgr = prior empno
      4* start with mgr is null
    SQL> /
         EMPNO      LEVEL ENAME
          7839          1 KING
          7566          2   JONES
          7788          3     SCOTT
          7876          4       ADAMS
          7902          3     FORD
          7369          4       SMITH
          7698          2   BLAKE
          7499          3     ALLEN
          7521          3     WARD
          7654          3     MARTIN
          7844          3     TURNER
          7900          3     JAMES
          7782          2   CLARK
          7934          3     MILLER
    14 rows selected.
    SQL>

  • TS1398 my new ipad works perfectly. the iphone 5, however, cannot connect to the same wifi, can barely get a 3G signal, and the power level is at 53% after being barely used for 1\2 a day. Is this a hardware problem?? My old 3Gs was fine until it died.

    my new ipad works perfectly. the iphone 5, however, cannot connect to the same wifi, can barely get a 3G signal, and the power level is at 53% after being barely used for 1\2 a day. Is this a hardware problem?? My old 3Gs was fine until it died.

    Greetings,
    I've never seen this issue, and I handle many iPads, of all versions. WiFi issues are generally local to the WiFi router - they are not all of the same quality, range, immunity to interference, etc. You have distance, building construction, and the biggie - interference.
    At home, I use Apple routers, and have no issues with any of my WiFi enabled devices, computers, mobile devices, etc - even the lowly PeeCees. I have locations where I have Juniper Networks, as well as Aruba, and a few Netgears - all of them work as they should.
    The cheaper routers, Linksys, D-Link, Seimens home units, and many other no name devices have caused issues of various kinds, and even connectivity.
    I have no idea what Starbucks uses, but I always have a good connection, and I go there nearly every morning and get some work done, as well as play.
    You could try changing channels, 2.4 to 5 Gigs, changing locations of the router. I have had to do all of these at one time or another over the many years that I have been a Network Engineer.
    Good Luck - Cheers,
    M.

  • SQL Query help ( On connect By level clause)

    Hi all,
    I have this query developed with data in with clause.
    With dat As
      select '@AAA @SSS @DDD' col1 from dual union all
      select '@ZZZ @XXX @TTT @RRR @ZZA' col1 from dual
    Select regexp_substr( col1 , '[^@][A-Z]+',1,level) Show from dat
    connect by level  <= regexp_count(col1, '@');Current output :-
    SHOW
    AAA
    SSS
    DDD
    RRR
    ZZA
    TTT
    RRR
    ZZA
    XXX
    DDD
    RRR
    SHOW
    ZZA
    TTT
    RRR
    ZZA
    . . .1st row comes fine, But next row data is getting duplicated. And total record count = 30. I tried with some but didn't work.
    Expected output :-
    SHOW
    AAA
    SSS
    DDD
    ZZZ
    XXX
    TTT
    RRR
    ZZAI need some change on my query and I am not able to find that. So anybody can add on that or can also provide some different solution too.
    Thanks!
    Ashutosh

    Hi,
    When you use something like "CONNECT BY LEVEL <= x", then at least one of the following must be true:
    (a) the table has no more than 1 row
    (b) there are other conditions in the CONNECT BY clause, or
    (c) you know what you are doing.
    To help see why, run this query
    SELECT     SYS_CONNECT_BY_PATH (dname, '/')     AS path
    ,     LEVEL
    FROM     scott.dept
    CONNECT BY     LEVEL <= 3
    ;and study the results:
    PATH                                     LEVEL
    /ACCOUNTING                                  1
    /ACCOUNTING/ACCOUNTING                       2
    /ACCOUNTING/ACCOUNTING/ACCOUNTING            3
    /ACCOUNTING/ACCOUNTING/RESEARCH              3
    /ACCOUNTING/ACCOUNTING/SALES                 3
    /ACCOUNTING/ACCOUNTING/OPERATIONS            3
    /ACCOUNTING/RESEARCH                         2
    /ACCOUNTING/RESEARCH/ACCOUNTING              3
    /ACCOUNTING/RESEARCH/RESEARCH                3
    /ACCOUNTING/RESEARCH/SALES                   3
    /ACCOUNTING/RESEARCH/OPERATIONS              3
    /ACCOUNTING/SALES                            2
    /ACCOUNTING/SALES/ACCOUNTING                 3
    84 rows selected.

  • [Mostly Sorted] Extracting tags - regexp_substr and count help needed!

    My original query got sorted, but additional regexp_substr and count help is required further on down!
    Hi,
    I have a table on a 10.2.0.3 database which contains a clob field (sql_stmt), with contents that look something like:
    SELECT <COB_DATE>, col2, .... coln
    FROM   tab1, tab2, ...., tabn
    WHERE tab1.run_id = <RUNID>
    AND    tab2.other_col = '<OTHER TAG>'(That's a highly simplified sql_stmt example, of course - if they were all that small we'd not be needing a clob field!).
    I wanted to extract all the tags from the sql_stmt field for a given row, so I can get my (well not "mine" - I'd never have designed something like this, but hey, it works, sorta, and I'm improving it as and where I can!) pl/sql to replace the tags with the correct values. A tag is anything that's in triangular brackets (eg. <RUNID> from the above example)
    So, I did this:
    SELECT     SUBSTR (sql_stmt,
                       INSTR (sql_stmt, '<', 1, LEVEL),
                       INSTR (substr(sql_stmt, INSTR (sql_stmt, '<', 1, LEVEL)), '>', 1, 1)
                       ) tag
    FROM       export_jobs
    WHERE      exp_id =  p_exp_id
    CONNECT BY LEVEL <= (LENGTH (sql_stmt) - LENGTH (REPLACE (sql_stmt, '<')))Which I thought would be fine (having tested it on a text column). However, it runs very poorly against a clob column, for some reason (probably doesn't like the substr, instr, etc on the clob, at a guess) - the waits show "direct path read".
    When I cast the sql_stmt as a varchar2 like so:
    with my_tab as (select cast(substr(sql_stmt, instr(sql_stmt, '<', 1), instr(sql_stmt, '>', -1) - instr(sql_stmt, '<', 1) + 1) as varchar2(4000)) sql_stmt
                    from export_jobs
                    WHERE      exp_id = p_exp_id)
    SELECT     SUBSTR (sql_stmt,
                       INSTR (sql_stmt, '<', 1, LEVEL),
                       INSTR (substr(sql_stmt, INSTR (sql_stmt, '<', 1, LEVEL)), '>', 1, 1)
                       ) tag
    FROM       my_tab
    CONNECT BY LEVEL <= (LENGTH (sql_stmt) - LENGTH (REPLACE (sql_stmt, '<')))it runs blisteringly fast in comparison, except when the substr'd sql_stmt is over 4000 chars, of course! Using dbms_lob instr and substr etc doesn't help either.
    So, I thought maybe I could find an xml related method, and from this link:get xml node name in loop , I tried:
    select t.column_value.getrootelement() node
      from (select sql_stmt xml from export_jobs where exp_id = 28) xml,
    table (xmlsequence(xml.xml.extract('//*'))) tBut I get this error: ORA-22806: not an object or REF. (It might not be the way to go after all, as it's not proper xml, being as there are no corresponding close tags, but I was trying to think outside the box. I've not needed to use xml stuff before, so I'm a bit clueless about it, really!)
    I tried casting sql_stmt into an xmltype, but I got: ORA-22907: invalid CAST to a type that is not a nested table or VARRAY
    Is anyone able to suggest a better method of trying to extract my tags from the clob column, please?
    Message was edited by:
    Boneist

    I don't know if it may work for you, but I had a similar activity where I defined sql statements with bind variables (:var_name) and then I simply looked for witch variables to bind in that statement through this query.
    with x as (
         select ':var1
         /*a block comment
         :varname_dontcatch
         select hello, --line comment :var_no
              ''a string with double quote '''' and a :variable '',  --:variable
              :var3,
              :var2, '':var1'''':varno'',
         from dual'     as string
         from dual
    ), fil as (
         select string,
              regexp_replace(string,'(/\*[^*]*\*/)'||'|'||'(--.*)'||'|'||'(''([^'']|(''''))*'')',null) as res
         from x
    select string,res,
         regexp_substr(res,'\:[[:alpha:]]([[:alnum:]]|_)*',1,level)
    from fil
    connect by regexp_instr(res,'\:[[:alpha:]]([[:alnum:]]|_)*',1,level) > 0
    /Or through these procedures
         function get_binds(
              inp_string in varchar2
         ) return string_table
         deterministic
         is
              loc_str varchar2(32767);
              loc_idx number;
              out_tab string_table;
         begin
              --dbms_output.put_line('cond = '||inp_string);
              loc_str := regexp_replace(inp_string,'(/\*[^*]*\*/)'||'|'||'(--.*)'||'|'||'(''([^'']|(''''))*'')',null);
              loc_idx := 0;
              out_tab := string_table();
              --dbms_output.put_line('fcond ='||loc_str);
              loop
                   loc_idx := regexp_instr(loc_str,'\:[[:alpha:]]([[:alnum:]]|_)*',loc_idx+1);
                   exit when loc_idx = 0;
                   out_tab.extend;
                   out_tab(out_tab.last) := regexp_substr(loc_str,'[[:alpha:]]([[:alnum:]]|_)*',loc_idx+1);
              end loop;
              return out_tab;
         end;
         function divide_string (
              inp_string in varchar2
              --,inp_length in number
         --return string_table
         return dbms_sql.varchar2a
         is
              inp_length number := 256;
              loc_ind_1 pls_integer;
              loc_ind_2 pls_integer;
              loc_string_length pls_integer;
              loc_curr_string varchar2(32767);
              --out_tab string_table;
              out_tab dbms_sql.varchar2a;
         begin
              --out_tab := dbms_sql.varchar2a();
              loc_ind_1 := 1;
              loc_ind_2 := 1;
              loc_string_length := length(inp_string);
              while ( loc_ind_2 < loc_string_length ) loop
                   --out_tab.extend;
                   loc_curr_string := substr(inp_string,loc_ind_2,inp_length);
                   dbms_output.put(loc_curr_string);
                   out_tab(loc_ind_1) := loc_curr_string;
                   loc_ind_1 := loc_ind_1 + 1;
                   loc_ind_2 := loc_ind_2 + length(loc_curr_string);
              end loop;
              dbms_output.put_line('');
              return out_tab;
         end;
         function execute_statement(
              inp_statement in varchar2,
              inp_binds in string_table,
              inp_parameters in parametri
         return number
         is
              loc_stat dbms_sql.varchar2a;
              loc_dyn_cur number;
              out_rows number;
         begin
              loc_stat := divide_string(inp_statement);
              loc_dyn_cur := dbms_sql.open_cursor;
              dbms_sql.parse(c => loc_dyn_cur,
                   statement => loc_stat,
                   lb => loc_stat.first,
                   ub => loc_stat.last,
                   lfflg => false,
                   language_flag => dbms_sql.native
              for i in inp_binds.first .. inp_binds.last loop
                   DBMS_SQL.BIND_VARIABLE(loc_dyn_cur, inp_binds(i), inp_parameters(inp_binds(i)));
                   dbms_output.put_line(':'||inp_binds(i)||'='||inp_parameters(inp_binds(i)));
              end loop;
              dbms_output.put_line('');
              --out_rows := DBMS_SQL.EXECUTE(loc_dyn_cur);
              DBMS_SQL.CLOSE_CURSOR(loc_dyn_cur);
              return out_rows;
         end;Bye Alessandro
    Message was edited by:
    Alessandro Rossi
    There is something missing in the functions but if there is something that may interest you you can ask.

  • Problem with REGEXP_SUBSTR and the desired results

    I have table like below:
    USERNAME
    DOCNAME
    DESCRIPTION
    user1
    doc1
    yes|no|none
    user1
    doc2
    ok|not
    user1
    doc3
    allryt
    Now I want to display the table like below:
    USERNAME
    DOCNAME
    DESCRIPTION
    user1
    doc1
    yes
    user1
    doc1
    no
    user1
    doc1
    none
    user1
    doc2
    ok
    user1
    doc2
    not
    user1
    doc3
    allryt
    Now this is the query which I am executing to separate the rows:
    SELECT a.*, REGEXP_SUBSTR (description, '[^|]+', 1, LEVEL, 'i') val
                     FROM (SELECT * FROM sample_table  WHERE username='user1') a
               CONNECT BY LEVEL <=
                             REGEXP_COUNT (description, '[^|]+')
    But I am getting results like below (rows getting duplicated)
    user1
    doc1
    yes|no|none
    yes
    user1
    doc1
    yes|no|none
    no
    user1
    doc1
    yes|no|none
    none
    user1
    doc2
    ok|not
    not
    user1
    doc1
    yes|no|none
    none
    user1
    doc2
    ok|not
    ok
    user1
    doc1
    yes|no|none
    no
    user1
    doc1
    yes|no|none
    none
    user1
    doc2
    ok|not
    not
    user1
    doc1
    yes|no|none
    none
    user1
    doc3
    allryt
    allryt
    user1
    doc1
    yes|no|none
    no
    user1
    doc1
    yes|no|none
    none
    user1
    doc2
    ok|not
    not
    user1
    doc1
    yes|no|none
    none
    Can anyone correct my query or modify it?

    Try this
    SQL> with t
      2  as
      3  (
      4  select 'user1' user_name, 'doc1' doc_name, 'yes|no|none' descr from dual union all
      5  select 'User1' user_name, 'doc2' doc_name, 'ok|not' descr from dual union all
      6  select 'user1' user_name, 'doc3' doc_name, 'allryt' descr from dual
      7  )
      8   select user_name
      9        , doc_name
    10        , regexp_substr(descr, '[^\|]+', 1, level) descr
    11     from t
    12  connect by level <= length(descr) - length(replace(descr, '|')) + 1
    13      and descr = prior descr
    14      and prior sys_guid() is not null
    15    order
    16       by user_name
    17        , doc_name
    18        , level;
    USER_ DOC_ DESCR
    User1 doc2 ok
    User1 doc2 not
    user1 doc1 yes
    user1 doc1 no
    user1 doc1 none
    user1 doc3 allryt
    6 rows selected.

  • Connect by level with regular expression is consuming more time,

    Oracle 11g R2,
    Dear EXPERTS/GURUS,
    i have a table with 4 columns, say
    ID number,OBJECT_NAME varchar2,OBJECT_MANUFACTURER varchar2,REGIONS varchar2.In the column REGIONS i have information like EMEA,AMERICA,CCC, etc..
    The problem is this column is having redudant copy of same date like EMEA,AMERICA,CCC,EMEA,AMERICA,CCC,EMEA,AMERICA,CCC,EMEA,AMERICA,CCC
    All i want to do is to remove that redundancy, and make as one like EMEA,AMERICA,CCC.
    If i do a query like
    select distinct regexp_substr(REGIONS,'[[:alpha:]]+',1,level),ID,OBJECT_NAME,OBJECT_MANUFACTURER from table_name connect by level<=regexp_count(REGIONS,'[[:alpha:]]+');................ then i can get data as i expected with distinct REGION information, but the heck is this column REGION is having 300 times same copy of data, and more over table is having 10000 records, so the query is not at all completing, even when i tried to limit the query to 1000 rows like where rownum<1001, still query was running for more that 30 Mins.
    I need some query, which do same like above, but with alternative, faster approach.

    902629 wrote:
    Oracle 11g R2,
    Dear EXPERTS/GURUS,
    i have a table with 4 columns, say
    ID number,OBJECT_NAME varchar2,OBJECT_MANUFACTURER varchar2,REGIONS varchar2.In the column REGIONS i have information like EMEA,AMERICA,CCC, etc..
    The problem is this column is having redudant copy of same date like EMEA,AMERICA,CCC,EMEA,AMERICA,CCC,EMEA,AMERICA,CCC,EMEA,AMERICA,CCC
    All i want to do is to remove that redundancy, and make as one like EMEA,AMERICA,CCC.
    If i do a query like
    select distinct regexp_substr(REGIONS,'[[:alpha:]]+',1,level),ID,OBJECT_NAME,OBJECT_MANUFACTURER from table_name connect by level<=regexp_count(REGIONS,'[[:alpha:]]+');................ then i can get data as i expected with distinct REGION information, but the heck is this column REGION is having 300 times same copy of data, and more over table is having 10000 records, so the query is not at all completing, even when i tried to limit the query to 1000 rows like where rownum<1001, still query was running for more that 30 Mins.
    I need some query, which do same like above, but with alternative, faster approach.Sounds like a great time to revisit the data model and fix the design.
    With a sub-optimal design, there's only so much performance you can coax out of anything, at some point it becomes necessary to end the madness and address the source of the problem. Perhaps you've hit that point in time?

  • I have pluged a portable battery to the USB and my macbook pro stopped working after that, right before it shut down there was a message on the screen that said something like " USB device is withdrawing so much power, please disconnect and connect again?

    I have plugged a portable battery to the USB and my macbook pro stopped working after that, right before it shut down there was a message on the screen that said something like " USB device is withdrawing so much power, please disconnect and connect again?
    if the device I connected have caused this, shouldn't the macbook itself have some type of protection that should prevent this from happening.
    because when I took it to an apple certified maintenance shop, the guy said that now it could only run while connected to the power. it won't run on batteries. and that I have to change the motherboard.
    can I just replace the damaged part only, would apple consider this as a design issue and they could pay for it, or should I just buy a new motherboard for 800$.
    Help.

    BB1B2,
    The problem is in finding a tech shop that will/can do board level repairs on Macs. They are few. And I certainly wouldn't spend $800 on a new logic board - I would replace the computer if I had to pay that much!
    You could call around to a few repair shops and see if they feel competent to isolate the problem and do a board level repair - but I'm afraid, in the end, that your search will be futile.
    Sorry,
    Clinton

  • Connect by level query is taking too long time to run

    Hello,
    I have a query that returns quarters (YYYYQ) of a begin- and enddate within a specific id, that is built with a connect by level clause, but the query is running to long. I have used explain plan to see what the query is doing, but no silly things to see, just a full table scan, with low costs.
    This is the query:
    select to_char(add_months( cpj.crpj_start_date,3*(level - 1)),'YYYYQ') as sales_quarter
    , cpj.crpj_id as crpj_id
    from mv_gen_cra_projects cpj
    where cpj.crpj_start_date >= to_date('01/01/2009','mm/dd/yyyy')
    and cpj.crpj_start_date <= cpj.crpj_end_date
    and cpj.crpj_routing_type = 'A'
    and ( cpj.crpj_multi_artist_ind = 'N'
    or cpj.crpj_multi_artist_ind is null)
    connect by level <= 1 + ceil(months_between(cpj.crpj_end_date,cpj.crpj_start_date)/3);
    The result have to be like this:
    SALES_QUARTER CRPJ_ID
    20091 100
    20092 100
    20093 100
    20094 100
    20101 100
    20102 100
    Can anyone help me out with this?

    but no silly things to see, just a full table scan, with low costs.Well, maybe an index scan would be faster?
    However:
    You will need to provide us some more details, like:
    - database version (the result of: SQL> select * from v$version;)
    - post the explain plan output (put the tag before and after it, so indentation and formatting are maintained, see the [FAQ|http://forums.oracle.com/forums/help.jspa] for more explanation regarding tags )
    - what are your optimizer settings (the result of: SQL> show parameter optimizer)
    - if applicable: are your table statistics up to date?
    - mv_gen_cra_projects  is a materialized view perhaps?
    Edited by: hoek on Jan 26, 2010 10:50 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • I can't connect to the router in my home.  Things were working fine as usual - I attended school and connected to their WiFi network as usual.  When I returned home I could not connect to my own home router.  The Ipad seeks the network but nothing happens

    I can't connect to the router in my home.  The Ipad seeks the network but nothing happens.  I went to school and connected to their WiFi network as usual with no problems.  When I returned home I could not connect to my home router.  The Ipad seeks the router number but nothing happens.  I rebooted the Ipad a few times in the school.  The numbers identifying the router, etc. on my Ipad no longer appear there. 
    TThe Ipad guide says to connect to the WiFi use setup but I can't find the setup program in the Ipad.
    I reset the network settings to the factory defaults but this doesn't fix the problem.
    What can I do to reconnect to my home router?

    Some things to try first:
    1. Turn Off your iPad. Then turn Off (disconnect power cord for 30 seconds or longer) the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
    2. Go to Settings>Wi-Fi and turn Off. Then while at Settings>Wi-Fi, turn back On and chose a Network.
    3. Change the channel on your wireless router (Auto or Channel 6 is best). Instructions at http://macintoshhowto.com/advanced/how-to-get-a-good-range-on-your-wireless-netw ork.html
    4. Go into your router security settings and change from WEP to WPA with AES.
    5.  Renew IP Address: (especially if you are droping internet connection)
        •    Launch Settings app
        •    Tap on Wi-Fi
        •    Tap on the blue arrow of the Wi-Fi network that you connect to from the list
        •    In the window that opens, tap on the Renew Lease button
    ~~~~~~~~~~~~~~~~~~~~~~~~~
    iOS 6 Wifi Problems/Fixes
    How To: Workaround iPad Wi-Fi Issues
    http://www.theipadfan.com/workaround-ipad-wifi-issues/
    Another Fix For iOS 6 WiFi Problems
    http://tabletcrunch.com/2012/10/27/fix-ios-6-wifi-problems-ssid/
    Wifi Doesn't Connect After Waking From Sleep - Sometimes increasing screen brightness prevents the failure to reconnect after waking from sleep. According to Apple, “If brightness is at lowest level, increase it by moving the slider to the right and set auto brightness to off.”
    Fix For iOS 6 WiFi Problems?
    http://tabletcrunch.com/2012/09/27/fix-ios-6-wifi-problems/
    Did iOS 6 Screw Your Wi-Fi? Here’s How to Fix It
    http://gizmodo.com/5944761/does-ios-6-have-a-wi+fi-bug
    How To Fix Wi-Fi Connectivity Issue After Upgrading To iOS 6
    http://www.iphonehacks.com/2012/09/fix-wi-fi-connectivity-issue-after-upgrading- to-ios-6.html
    iOS 6 iPad 3 wi-fi "connection fix" for netgear router
    http://www.youtube.com/watch?v=XsWS4ha-dn0
    Apple's iOS 6 Wi-Fi problems
    http://www.zdnet.com/apples-ios-6-wi-fi-problems-linger-on-7000004799/
    ~~~~~~~~~~~~~~~~~~~~~~~
    How to Fix a Poor Wi-Fi Signal on Your iPad
    http://ipad.about.com/od/iPad_Troubleshooting/a/How-To-Fix-A-Poor-Wi-Fi-Signal-O n-Your-iPad.htm
    iOS Troubleshooting Wi-Fi networks and connections  http://support.apple.com/kb/TS1398
    iPad: Issues connecting to Wi-Fi networks  http://support.apple.com/kb/ts3304
    WiFi Connecting/Troubleshooting http://www.apple.com/support/ipad/wifi/
    How to Fix: My iPad Won't Connect to WiFi
    http://ipad.about.com/od/iPad_Troubleshooting/ss/How-To-Fix-My-Ipad-Wont-Connect -To-Wi-Fi.htm
    iOS: Connecting to the Internet http://support.apple.com/kb/HT1695
    iOS: Recommended settings for Wi-Fi routers and access points  http://support.apple.com/kb/HT4199
    How to Quickly Fix iPad 3 Wi-Fi Reception Problems
    http://osxdaily.com/2012/03/21/fix-new-ipad-3-wi-fi-reception-problems/
    iPad Wi-Fi Problems: Comprehensive List of Fixes
    http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
    Connect iPad to Wi-Fi (with troubleshooting info)
    http://thehowto.wikidot.com/wifi-connect-ipad
    Fix iPad Wifi Connection and Signal Issues  http://www.youtube.com/watch?v=uwWtIG5jUxE
    Fix Slow WiFi Issue https://discussions.apple.com/thread/2398063?start=60&tstart=0
    How To Fix iPhone, iPad, iPod Touch Wi-Fi Connectivity Issue http://tinyurl.com/7nvxbmz
    Unable to Connect After iOS Update - saw this solution on another post.
    https://discussions.apple.com/thread/4010130
    Note - When troubleshooting wifi connection problems, don't hold your iPad by hand. There have been a few reports that holding the iPad by hand, seems to attenuate the wifi signal.
    ~~~~~~~~~~~~~~~
    If any of the above solutions work, please post back what solved your problem. It will help others with the same problem.
     Cheers, Tom

  • CONNECT BY LEVEL IN TRIGGER IS IN WAITING STATE

    WITH emp_data
         AS (SELECT 1 empno,
                    'mgr1' name,
                    NULL mgr,
                    5 num_of_reportees,
                    'Create' Status
               FROM DUAL
             UNION ALL
             SELECT 2,
                    'mgr2',
                    NULL,
                    6,
                    'Wait'
               FROM DUAL)
    SELECT *
      FROM emp_data;
    create sequence emp_data_seq start with 3 increment by 1;
    now I want to insert num of employees based on num_of_reportees column in the table for the emp status = 'Create' and below code is doing the same.
    INSERT INTO emp_data
       SELECT emp_data_seq.NEXTVAL,
              name,
              NULL,
              NULL,
              NULL
         FROM (    SELECT DISTINCT 'emp' || LEVEL name
                     FROM emp_data
               CONNECT BY LEVEL <= num_of_reportees AND status = 'Create');
    Initiall status will be Wait, whenever user changes it from Wait to Create only this operation has to perform, when I place this insert statment in trigger it's not executing and is in waiting state
    Could you please let me know how to achieve this requirement using trigger,
    I couldn't use the procedure for this requirement, Its a standard application and we are doing customization

    SQL> SELECT  *
      2    FROM  emp_data
      3  /
         EMPNO NAME        MGR NUM_OF_REPORTEES STATUS
             1 mgr1                           5 Create
             2 mgr2                           6 Wait
    INSERT
      INTO emp_data
      SELECT  emp_data_seq.NEXTVAL,
              'emp' || column_value,
              NULL,
              NULL,
              NULL
        FROM  emp_data,
              TABLE(
                    CAST(
                         MULTISET(
                                  SELECT  level
                                    FROM  dual
                                  CONNECT BY LEVEL <= num_of_reportees
                         AS sys.OdciNumberList
        WHERE status = 'Create'
    5 rows created.
    SQL> SELECT  *
      2    FROM  emp_data
      3  /
         EMPNO NAME        MGR NUM_OF_REPORTEES STATUS
             1 mgr1                           5 Create
             2 mgr2                           6 Wait
             3 emp1
             4 emp2
             5 emp3
             6 emp4
             7 emp5
    7 rows selected.
    SQL> SY.

  • Using START WITH and CONNECT BY PRIOR in a report

    Hi - I am using Oracle 9i and reports 10g. Does anyone know of a reason why running my sql in TOAD will produce the correct results, but the report is dropping records? I am using start with and connect by prior to build a hierarchy of linked records. The report is dropping the "child records" and only returning records from the route level.
    Thanks you for your help.

    Hi user574499
    Could u pls share us ur Query...?
    Regards,
    Abdetu...

  • Should my iPhone 1 (iOS 3.1.3) with Bluetooth 2.0 (Handset HSP?) work with wireless earbuds with BT 4.0 and the Headset (and Handsfree, A2DP, AVRCP) protocol? They pair and connect; status bar looks good. But audio always comes out the speaker. Thx.

    Should my iPhone 1 (iOS 3.1.3) with Bluetooth 2.0 (Handset HSP?) work with wireless earbuds with BT 4.0 and the Headset (and Handsfree, A2DP, AVRCP) protocol? They pair and connect as expected (with a PIN); status bar looks good and shows Bluetooth active, and I even see the iPhone displays the battery levels of the wireless earbuds. But audio always comes out the speaker. (If I plug in wired headphones into the headphone jack then audio comes into the wired headphones, as expected.) I have rebooted the iPhone; I have had it forget about the wireless earbuds, and repaired and reconnected; I have reset all network settings. Thx in advance.
    PS: I understand that more recent versions of iOS have a way to choose where audio output goes (speaker, headphone jack, Bluetooth device). Does this older version of iOS? I could not find an option or setting.

    I've noticed this lately as well, with my iPhone 4. I couldn't confidently pin it directly on any particular iOS update, but my iPhone used to automatically connect up via Bluetooth with my Prius's handsfree feature, and now it doesn't. I work with a CE-based device at my job, with Bluetooth capability, and I used to test out that feature by having it discover my iPhone. This no longer works either.
    What I have found (not really a solution, but it does work and may be a clue for Apple) is that if I simply go to the Settings app then the General -> Bluetooth screen and let it sit there, it will pair right up with my car within a few seconds. Bluetooth is always on, and always says "Now Discoverable" at the bottom of the settings screen.

  • Motorolla RF scanners getting disconnect and connecting back

      Hi i have deployed wlc 5508 with software 6.0.199.4 . AP 1142 . Customer have few motorola RF scanners which i added the mac address
    in mac filter and its working. Now cust informed that these scanners get sometime diconected in between and connects back .
    and its using telnet application .
    Can anybody help me out do we need to do any other configuration in WLC .

    Just to add.... have you done a post site survey to verify coverage?  Since its scanners you mentioned, I'm guessing it might be in a warehouse environment.  Well how high are your ap's placed and what power level is RRM setting your TX power.  You might have to tweak that so that the TX power doesn't drop too low.  On the WLC, the lower the number the more power (1-8, 8 being the lowest power).  Take a loot at the power levels and if you see 4-8, then I would maybe set the max and min power levels for both the 2.4ghz and the 5ghz.  Or else you can manually set the TX power level on each AP:
    Depending on how old these scanners are, make sure your data rates are at default with 1 & 2 mbps set to mandatory.  You can also issue a debug client and post the output when the client is having issues and also post the client monitor detail when the issue is happening.

Maybe you are looking for