Getting a Row in Access

Hello there:
Is there a way that I can get a specific Row from Access. For example, if I'm trying to pull the info from row 30 what should I do?
I've tryied things like
rs.getRow(30)
and
rs.absolute(30)
but have had no success.
Does anyone know?
Regards,
neowhere

Now I understand the problem. TYPE_FORWARD_ONLY in the
JdbcOdbcDriver is preventing me from do what id like
to do. Let's say I have 500 records and I want to get
the column values from record 485 really fast, I
wouldn't want to use rs.next() to past thru 484 rows
before getting to 485. rs.absolute() would be
perfect. rs.relative() would come in handy too.
Can anyone recommend the appropriate driver and a URL
path to download it?
Thank you in advance!i think you are still better off getting the row you want using sql. why do you want the 485th row or any other arbitrary number. why don't you just use the where clause in the select statement.
i suggest this because no matter what kind of scrolling the driver supports you will be still loading all the data into the result set which is the performance issue you have identified.

Similar Messages

  • How to get multiple rows from database table?

    hello !
    I need to get multiple rows from a OLEDB database table and display them on a table object.
    I did "Wrap in subfrom" on the table,  set  subform of the table to "flowed", and checked "Repeat row for each data item" of Row1 of the table.
    But I can get only one row on the table object.
    I need your help.
    Thanks

    Hi,
    best practices when deleting multiple rows is to do this on the business service, not the view layer for performance reasons. When you selected the rows to delete and press submit, then in a managed bean you access thetable instance (put a reference to a managed bean from the table "binding" property") and call getSeletedRowKeys. In JDeveloper 11g, ADF Faces returns the RowKeySet as a Set of List, where each list conatins the server side row key (e.g. oracle.jbo.Key) if you use ADF BC. Then you create a List (ArrayList) with this keys in it and call a method exposed on the business service (through a method activity in ADF) and pass the list as an argument. On the server side you then access the View Object that holds the data and find the row to delte by the keys in the list
    Example 134 here: http://blogs.oracle.com/smuenchadf/examples/#134 provides you with the code
    Frank

  • Getting ORA-00376 while accessing from application

    Hi,
    Application team is getting below error while accessing the database.
    “ERROR: SQLException, while closing
    connection, exception is ==ORA-00376: file 5 cannot be read at this time
    ORA-01110: data file 5: '/dborafiles/nGTA/oradata01/smartsgs/tblspcsmarts01.dbf'
    Later we renamed the datafile from tblspcsmarts01.dbf  to tblspcsmarts_01.dbf, and still getting the same error while accessing the application.
    And, the datafiles are in online and READ WRITE mode.
    File Status:
    SQL> select file#,name,status,ENABLED,CHECKPOINT_CHANGE#,to_char(CHECKPOINT_TIME,'dd-mon-yy hh24:mi:ss') from v$datafile;
         FILE# NAME                                                         STATUS  ENABLED    CHECKPOINT_CHANGE# TO_CHAR(CHECKPOINT
             1 /dborafiles/nGTA/oradata01/smartsgs/system01.dbf             SYSTEM  READ WRITE           94950500 23-oct-13 15:41:40
             2 /dborafiles/nGTA/oradata01/smartsgs/undo02.dbf               ONLINE  READ WRITE           94950500 23-oct-13 15:41:40
             3 /dborafiles/nGTA/oradata01/smartsgs/sysaux01.dbf             ONLINE  READ WRITE           94950500 23-oct-13 15:41:40
             4 /dborafiles/nGTA/oradata01/smartsgs/users01.dbf              ONLINE  READ WRITE           94950500 23-oct-13 15:41:40
             5 /dborafiles/nGTA/oradata01/smartsgs/tblspcsmarts_01.dbf      ONLINE  READ WRITE           94950500 23-oct-13 15:41:40
             6 /dborafiles/nGTA/oradata01/smartsgs/tblspcsmarts02.dbf       ONLINE  READ WRITE           94950500 23-oct-13 15:41:40
             7 /dborafiles/nGTA/oradata01/smartsgs/tblspcsmarts_03.dbf      ONLINE  READ WRITE           94950500 23-oct-13 15:41:40
    SQL> select FILE_ID,TABLESPACE_NAME,FILE_NAME,BYTES/1024/1024,status  from dba_data_files;
       FILE_ID TABLESPACE_NAME      FILE_NAME                                                    BYTES/1024/1024 STATUS
             1 SYSTEM               /dborafiles/nGTA/oradata01/smartsgs/system01.dbf                        1024 AVAILABLE
             5 TBLSPCSMARTS         /dborafiles/nGTA/oradata01/smartsgs/tblspcsmarts_01.dbf                 7000 AVAILABLE
             3 SYSAUX               /dborafiles/nGTA/oradata01/smartsgs/sysaux01.dbf                        1024 AVAILABLE
             4 USERS                /dborafiles/nGTA/oradata01/smartsgs/users01.dbf                         2048 AVAILABLE
             6 TBLSPCSMARTS         /dborafiles/nGTA/oradata01/smartsgs/tblspcsmarts02.dbf                  6144 AVAILABLE
             7 TBLSPCSMARTS         /dborafiles/nGTA/oradata01/smartsgs/tblspcsmarts_03.dbf                 2048 AVAILABLE
             2 UNDOTBS1             /dborafiles/nGTA/oradata01/smartsgs/undo02.dbf                          1024 AVAILABLE
    File permissions at OS level.
    [oracle@apt3vl05 smartsgs]$ pwd
    /dborafiles/nGTA/oradata01/smartsgs
    [oracle@apt3vl05 smartsgs]$ ls -lrt
    total 29057944
    -rw-r----- 1 oracle dba 7340040192 Oct 23 10:37 tblspcsmarts01.dbf_old
    -rw-r----- 1 oracle dba 1073750016 Oct 23 12:37 temp01.dbf
    -rw-r----- 1 oracle dba 2147491840 Oct 23 15:41 users01.dbf
    -rw-r----- 1 oracle dba 2147491840 Oct 23 15:41 tblspcsmarts_03.dbf
    -rw-r----- 1 oracle dba 6442459136 Oct 23 15:41 tblspcsmarts02.dbf
    -rw-r----- 1 oracle dba 7340040192 Oct 23 15:41 tblspcsmarts_01.dbf
    -rw-r----- 1 oracle dba 1073750016 Oct 23 16:05 sysaux01.dbf
    -rw-r----- 1 oracle dba 1073750016 Oct 23 16:25 undo02.dbf
    -rw-r----- 1 oracle dba 1073750016 Oct 23 16:25 system01.dbf
    -rw-r----- 1 oracle dba    6832128 Oct 23 16:25 control02.ctl
    -rw-r----- 1 oracle dba    6832128 Oct 23 16:25 control01.ctl
    Even i am able to do switch logfile and every thing fine. Below is the excerpt from alert log.
    Wed Oct 23 10:29:59 2013
    Starting ORACLE instance (normal)
    LICENSE_MAX_SESSION = 0
    LICENSE_SESSIONS_WARNING = 0
    Picked latch-free SCN scheme 3
    Using LOG_ARCHIVE_DEST_1 parameter default value as /dboracle/orabase/product/10.2.0.4/dbs/arch
    Autotune of undo retention is turned on.
    IMODE=BR
    ILAT =97
    LICENSE_MAX_USERS = 0
    SYS auditing is disabled
    ksdpec: called for event 13740 prior to event group initialization
    Starting up ORACLE RDBMS Version: 10.2.0.4.0.
    System parameters with non-default values:
      processes                = 800
      timed_statistics         = TRUE
      shared_pool_size         = 159383552
      large_pool_size          = 16777216
      java_pool_size           = 159383552
      streams_pool_size        = 16777216
      control_files            = /dborafiles/nGTA/oradata01/smartsgs/control01.ctl, /dborafiles/nGTA/oradata01/smartsgs/control02.ctl, /dboracle/admin/smartsgs/control03.ctl
      db_block_size            = 8192
      db_cache_size            = 16777216
      compatible               = 10.2.0.4
      db_file_multiblock_read_count= 16
      fast_start_mttr_target   = 300
      undo_management          = AUTO
      undo_tablespace          = UNDOTBS1
      undo_retention           = 10800
      O7_DICTIONARY_ACCESSIBILITY= TRUE
      remote_login_passwordfile= EXCLUSIVE
      db_domain                =
      instance_name            = smartsgs
      job_queue_processes      = 10
      background_dump_dest     = /dboracle/admin/smartsgs/bdump
      user_dump_dest           = /dboracle/admin/smartsgs/udump
      core_dump_dest           = /dboracle/admin/smartsgs/cdump
      sort_area_size           = 524288
      db_name                  = smartsgs
      open_cursors             = 800
      star_transformation_enabled= FALSE
      query_rewrite_enabled    = FALSE
      pga_aggregate_target     = 25165824
      aq_tm_processes          = 1
    PMON started with pid=2, OS id=9173
    PSP0 started with pid=3, OS id=9178
    MMAN started with pid=4, OS id=9180
    DBW0 started with pid=5, OS id=9187
    LGWR started with pid=6, OS id=9194
    CKPT started with pid=7, OS id=9200
    SMON started with pid=8, OS id=9202
    RECO started with pid=9, OS id=9204
    CJQ0 started with pid=10, OS id=9206
    MMON started with pid=11, OS id=9208
    MMNL started with pid=12, OS id=9210
    Wed Oct 23 10:30:01 2013
    ALTER DATABASE   MOUNT
    Wed Oct 23 10:30:06 2013
    Setting recovery target incarnation to 1
    Wed Oct 23 10:30:06 2013
    Successful mount of redo thread 1, with mount id 765417449
    Wed Oct 23 10:30:06 2013
    Database mounted in Exclusive Mode
    Completed: ALTER DATABASE   MOUNT
    Wed Oct 23 10:30:06 2013
    ALTER DATABASE OPEN
    Wed Oct 23 10:30:06 2013
    Thread 1 opened at log sequence 855
      Current log# 3 seq# 855 mem# 0: /dborafiles/nGTA/oraredo1/smartsgs/redo01c.log
      Current log# 3 seq# 855 mem# 1: /dborafiles/nGTA/oraredo2/smartsgs/redo02c.log
      Current log# 3 seq# 855 mem# 2: /dborafiles/nGTA/oraredo3/smartsgs/redo03c.log
    Successful open of redo thread 1
    Wed Oct 23 10:30:06 2013
    SMON: enabling cache recovery
    Wed Oct 23 10:30:07 2013
    Successfully onlined Undo Tablespace 6.
    Wed Oct 23 10:30:07 2013
    SMON: enabling tx recovery
    Wed Oct 23 10:30:07 2013
    Database Characterset is WE8ISO8859P15
    Opening with internal Resource Manager plan
    where NUMA PG = 1, CPUs = 2
    replication_dependency_tracking turned off (no async multimaster replication found)
    Starting background process QMNC
    QMNC started with pid=14, OS id=9246
    Wed Oct 23 10:30:10 2013
    Completed: ALTER DATABASE OPEN
    Wed Oct 23 10:37:38 2013
    alter tablespace TBLSPCSMARTS offline
    Wed Oct 23 10:37:38 2013
    Completed: alter tablespace TBLSPCSMARTS offline
    Wed Oct 23 10:43:58 2013
    alter tablespace TBLSPCSMARTS rename datafile '/dborafiles/nGTA/oradata01/smartsgs/tblspcsmarts01.dbf' to '/dborafiles/nGTA/oradata01/smartsgs/tblspcsmarts_01.dbf'
    Wed Oct 23 10:43:58 2013
    Completed: alter tablespace TBLSPCSMARTS rename datafile '/dborafiles/nGTA/oradata01/smartsgs/tblspcsmarts01.dbf' to '/dborafiles/nGTA/oradata01/smartsgs/tblspcsmarts_01.dbf'
    Wed Oct 23 10:44:14 2013
    alter tablespace TBLSPCSMARTS online
    Wed Oct 23 10:44:15 2013
    Completed: alter tablespace TBLSPCSMARTS online
    Wed Oct 23 15:02:00 2013
    Thread 1 advanced to log sequence 856 (LGWR switch)
      Current log# 1 seq# 856 mem# 0: /dborafiles/nGTA/oraredo1/smartsgs/redo01a.log
      Current log# 1 seq# 856 mem# 1: /dborafiles/nGTA/oraredo2/smartsgs/redo02a.log
      Current log# 1 seq# 856 mem# 2: /dborafiles/nGTA/oraredo3/smartsgs/redo03a.log
    Wed Oct 23 15:06:11 2013
    Thread 1 advanced to log sequence 857 (LGWR switch)
      Current log# 2 seq# 857 mem# 0: /dborafiles/nGTA/oraredo1/smartsgs/redo01b.log
      Current log# 2 seq# 857 mem# 1: /dborafiles/nGTA/oraredo2/smartsgs/redo02b.log
      Current log# 2 seq# 857 mem# 2: /dborafiles/nGTA/oraredo3/smartsgs/redo03b.log
    Thread 1 cannot allocate new log, sequence 858
    Checkpoint not complete
      Current log# 2 seq# 857 mem# 0: /dborafiles/nGTA/oraredo1/smartsgs/redo01b.log
      Current log# 2 seq# 857 mem# 1: /dborafiles/nGTA/oraredo2/smartsgs/redo02b.log
      Current log# 2 seq# 857 mem# 2: /dborafiles/nGTA/oraredo3/smartsgs/redo03b.log
    Wed Oct 23 15:06:17 2013
    Thread 1 advanced to log sequence 858 (LGWR switch)
      Current log# 3 seq# 858 mem# 0: /dborafiles/nGTA/oraredo1/smartsgs/redo01c.log
      Current log# 3 seq# 858 mem# 1: /dborafiles/nGTA/oraredo2/smartsgs/redo02c.log
      Current log# 3 seq# 858 mem# 2: /dborafiles/nGTA/oraredo3/smartsgs/redo03c.log
    Wed Oct 23 15:06:17 2013
    Thread 1 advanced to log sequence 859 (LGWR switch)
      Current log# 1 seq# 859 mem# 0: /dborafiles/nGTA/oraredo1/smartsgs/redo01a.log
      Current log# 1 seq# 859 mem# 1: /dborafiles/nGTA/oraredo2/smartsgs/redo02a.log
      Current log# 1 seq# 859 mem# 2: /dborafiles/nGTA/oraredo3/smartsgs/redo03a.log
    Wed Oct 23 15:09:00 2013
    Thread 1 advanced to log sequence 860 (LGWR switch)
      Current log# 2 seq# 860 mem# 0: /dborafiles/nGTA/oraredo1/smartsgs/redo01b.log
      Current log# 2 seq# 860 mem# 1: /dborafiles/nGTA/oraredo2/smartsgs/redo02b.log
      Current log# 2 seq# 860 mem# 2: /dborafiles/nGTA/oraredo3/smartsgs/redo03b.log
    Wed Oct 23 15:09:02 2013
    Thread 1 advanced to log sequence 861 (LGWR switch)
      Current log# 3 seq# 861 mem# 0: /dborafiles/nGTA/oraredo1/smartsgs/redo01c.log
      Current log# 3 seq# 861 mem# 1: /dborafiles/nGTA/oraredo2/smartsgs/redo02c.log
      Current log# 3 seq# 861 mem# 2: /dborafiles/nGTA/oraredo3/smartsgs/redo03c.log
    Wed Oct 23 15:37:37 2013
    alter database datafile 5 online
    Wed Oct 23 15:37:37 2013
    Completed: alter database datafile 5 online
    Wed Oct 23 15:37:58 2013
    alter database datafile 7 online
    Wed Oct 23 15:37:58 2013
    Completed: alter database datafile 7 online
    Wed Oct 23 15:41:09 2013
    Thread 1 advanced to log sequence 862 (LGWR switch)
      Current log# 1 seq# 862 mem# 0: /dborafiles/nGTA/oraredo1/smartsgs/redo01a.log
      Current log# 1 seq# 862 mem# 1: /dborafiles/nGTA/oraredo2/smartsgs/redo02a.log
      Current log# 1 seq# 862 mem# 2: /dborafiles/nGTA/oraredo3/smartsgs/redo03a.log
    Wed Oct 23 15:41:10 2013
    Thread 1 advanced to log sequence 863 (LGWR switch)
      Current log# 2 seq# 863 mem# 0: /dborafiles/nGTA/oraredo1/smartsgs/redo01b.log
      Current log# 2 seq# 863 mem# 1: /dborafiles/nGTA/oraredo2/smartsgs/redo02b.log
      Current log# 2 seq# 863 mem# 2: /dborafiles/nGTA/oraredo3/smartsgs/redo03b.log
    Please advice how can we troubleshoot what could be the issue.
    Thanks,
    Dasarath

    Output of the requested commands.
    SQL> select * from v$datafile_header;
         FILE# STATUS  ERROR                                                                 FORMAT REC FUZ CREATION_CHANGE# CREATION_ TABLESPACE_NAME             TS#     RFILE# RESETLOGS_CHANGE# RESETLOGS CHECKPOINT_CHANGE# CHECKPOIN CHECKPOINT_COUNT      BYTES     BLOCKS NAME                                               SPACE_HEADER    LAST_DEALLOC_SCN
             1 ONLINE                                                                             0 NO  YES                8 23-JUL-09 SYSTEM                        0         1                  1 23-JUL-09           94978106 24-OCT-13              913 1073741824     131072 /dborafiles/nGTA/oradata01/smartsgs/system01.dbf
             2 ONLINE                                                                             0 NO  YES         94828823 22-OCT-13 UNDOTBS1                      6         2                  1 23-JUL-09           94978106 24-OCT-13               37 1073741824     131072 /dborafiles/nGTA/oradata01/smartsgs/undo02.dbf     8388610
             3 ONLINE                                                                             0 NO  YES             7545 23-JUL-09 SYSAUX                        2         3                  1 23-JUL-09           94978106 24-OCT-13              912 1073741824     131072 /dborafiles/nGTA/oradata01/smartsgs/sysaux01.dbf   12582914
             4 ONLINE                                                                             0 NO  YES           170715 23-JUL-09 USERS                         4         4                  1 23-JUL-09           94978106 24-OCT-13              907 2147483648     262144 /dborafiles/nGTA/oradata01/smartsgs/users01.dbf    16777218
             5 ONLINE                                                                             0 NO  YES         94891412 22-OCT-13 TBLSPCSMARTS                  5         5                  1 23-JUL-09           94978106 24-OCT-13               30 7340032000     896000 /dborafiles/nGTA/oradata01/smartsgs/tblspcsmarts_0 20971522
                                                                                                                                                                                 1.dbf
             6 ONLINE                                                                             0 NO  YES         94891511 22-OCT-13 TBLSPCSMARTS                  5         6                  1 23-JUL-09           94978106 24-OCT-13               28 6442450944     786432 /dborafiles/nGTA/oradata01/smartsgs/tblspcsmarts02 25165826
                                                                                                                                                                                 .dbf
             7 ONLINE                                                                             0 NO  YES         94891933 22-OCT-13 TBLSPCSMARTS                  5         7                  1 23-JUL-09           94978106 24-OCT-13               29 2147483648     262144 /dborafiles/nGTA/oradata01/smartsgs/tblspcsmarts_0 29360130
                                                                                                                                                                                 3.dbf
    7 rows selected.
    SQL> select * from v$recover_file;
    no rows selected
    Thanks,
    Dasarath

  • How to get selected row keys from RichSelectManyCheckbox

    Adf Table has getSelectedRowKeys but SelectManyChekcbox does not has anything similar. Can you tell me how to get selected row keys programmatically for RichSelectManyCheckbox?

    Hi User,
    selectManyCheckbox component's value property holds the selected items values. Bind this property to some bean variable(of type list) so that you can get the selected values by accessing the bean property.
    Sireesha

  • SQL*Plus two fetches for getting one row.

    Hi all.
    I have tested following script.
    alter session set events '10046 trace name context forever, level 12';
    select * from dual;And achieved such results (extract from .trc file).
    SQL*Plus: Release 11.2.0.1.0; (Oracle Version 10.2.0.4.0, 11.2.0.1.0)
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      1      0.00       0.00          0          0          0           0
    Fetch        2      0.00       0.00          0          0          0           1
    total        4      0.00       0.00          0          0          0           1SQL*Plus: Release 8.1.7.0.0; (Oracle Version 8.1.7.0.0)
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      2      0.00       0.00          0          0          0           0
    Fetch        2      0.00       0.00          0          1          4           1
    total        5      0.00       0.00          0          1          4           1Allround Automations PL/SQL Developer 8.0.4; (Oracle Version 10.2.0.4.0, 11.2.0.1.0)
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      1      0.00       0.00          0          0          0           0
    Fetch        1      0.00       0.00          0          0          0           1
    total        3      0.00       0.00          0          0          0           1Allround Automations PL/SQL Developer 8.0.4; (Oracle Version 8.1.7.0.0)
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      1      0.00       0.00          0          0          0           0
    Fetch        1      0.00       0.00          0          1          4           1
    total        3      0.00       0.00          0          1          4           11) I can't figure out why sqlplus does TWO fetches for getting ONE row (instead of pl/sql developer).
    8i raw trace
    PARSING IN CURSOR #1 len=31 dep=0 uid=0 oct=3 lid=0 tim=0 hv=3549852361 ad='4a0155c'
    select 'hello world' from dual
    END OF STMT
    PARSE #1:c=0,e=0,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=4,tim=0
    BINDS #1:
    EXEC #1:c=0,e=0,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=4,tim=0
    WAIT #1: nam='SQL*Net message to client' ela= 0 p1=1111838976 p2=1 p3=0
    FETCH #1:c=0,e=0,p=0,cr=1,cu=4,mis=0,r=1,dep=0,og=4,tim=0
    WAIT #1: nam='SQL*Net message from client' ela= 0 p1=1111838976 p2=1 p3=0
    FETCH #1:c=0,e=0,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=0,tim=0
    WAIT #1: nam='SQL*Net message to client' ela= 0 p1=1111838976 p2=1 p3=0
    WAIT #1: nam='SQL*Net message from client' ela= 0 p1=1111838976 p2=1 p3=0
    STAT #1 id=1 cnt=1 pid=0 pos=0 obj=195 op='TABLE ACCESS FULL DUAL '11g raw trace
    PARSING IN CURSOR #3 len=30 dep=0 uid=96 oct=3 lid=96 tim=1581355246985 hv=1158622143 ad='b8a1bcdc' sqlid='5h2yvx92hyaxz'
    select 'hello world' from dual
    END OF STMT
    PARSE #3:c=0,e=130,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=1,plh=1388734953,tim=1581355246984
    EXEC #3:c=0,e=40,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=1,plh=1388734953,tim=1581355247154
    WAIT #3: nam='SQL*Net message to client' ela= 7 driver id=1111838976 #bytes=1 p3=0 obj#=-1 tim=1581355247252
    FETCH #3:c=0,e=18,p=0,cr=0,cu=0,mis=0,r=1,dep=0,og=1,plh=1388734953,tim=1581355247324
    STAT #3 id=1 cnt=1 pid=0 pos=1 obj=0 op='FAST DUAL  (cr=0 pr=0 pw=0 time=0 us cost=2 size=0 card=1)'
    WAIT #3: nam='SQL*Net message from client' ela= 193 driver id=1111838976 #bytes=1 p3=0 obj#=-1 tim=1581355247735
    FETCH #3:c=0,e=2,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=0,plh=1388734953,tim=1581355247800
    WAIT #3: nam='SQL*Net message to client' ela= 5 driver id=1111838976 #bytes=1 p3=0 obj#=-1 tim=15813552478552) Is there any possibility to view data provided by each fetch?
    Thanks in advance!
    P.S.
    SQL> sho arraysize
    arraysize 15

    Thanks.
    I have tested two statements.
    select 'hello world' from dual where 1=1;
    select 'hello world' from dual where 1=0;When query returns no data, there is only one SQL*Net roundtrip (and one fetch)
    SQL> set autot on statistics
    SQL> select 'hello world' from dual where 1=1;
    'HELLOWORLD
    hello world
    Statistics
              0  recursive calls
              0  db block gets
              0  consistent gets
              0  physical reads
              0  redo size
            528  bytes sent via SQL*Net to client
            492  bytes received via SQL*Net from client
              2  SQL*Net roundtrips to/from client
              0  sorts (memory)
              0  sorts (disk)
              1  rows processed
    SQL> select 'hello world' from dual where 1=0;
    no rows selected
    Statistics
              0  recursive calls
              0  db block gets
              0  consistent gets
              0  physical reads
              0  redo size
            329  bytes sent via SQL*Net to client
            481  bytes received via SQL*Net from client
              1  SQL*Net roundtrips to/from client
              0  sorts (memory)
              0  sorts (disk)
              0  rows processedBut in both cases i found in client trace this sequence of bytes:
    ] nsprecv: 00 00 36 01 00 00 00 00  |..6.....|
    ] nsprecv: 00 00 00 00 00 00 00 00  |........|
    ] nsprecv: 00 00 90 19 43 13 00 00  |....C...|
    ] nsprecv: 00 00 00 00 00 00 00 00  |........|
    ] nsprecv: 00 00 00 00 00 00 00 00  |........|
    ] nsprecv: 00 00 00 00 00 00 00 00  |........|
    ] nsprecv: 00 00 00 00 00 00 00 00  |........|
    ] nsprecv: 00 00 00 00 00 00 00 00  |........|
    ] nsprecv: 00 00 00 00 00 00 00 00  |........|
    ] nsprecv: 00 00 00 00 00 00 00 00  |........|
    ] nsprecv: 00 00 19 4F 52 41 2D 30  |...ORA-0|
    ] nsprecv: 31 34 30 33 3A 20 6E 6F  |1403:.no|
    ] nsprecv: 20 64 61 74 61 20 66 6F  |.data.fo|
    ] nsprecv: 75 6E 64 0A              |und.    |In first case - it was in 2nd packet and in second case (query returns no data) - part of 1st packet.

  • Cannot get all rows from cfProcResult

    We upgraded one of our servers (A) from CF 6 to 7.02. Another
    server (B) has CF 7.01.
    On server B (CF 7.01) the code works (below), all rows of
    each dataset are returned.
    Now on server A (CF 7.02) all of the resulting datasets have
    only the first record in them. If I add maxrows="-1" to each of the
    cfProcResult tags there is no change. If I change that to
    maxrows="100" then I can get the rows up to 100.
    Is this a bug or is there a different means to return all
    rows?

    It think its a bug. I got the same results under MX 7.0.2.
    The topic of maxrows recently came up on another thread. I
    did some searching and according to TechNote 18339 there was a
    change with maxrow
    "<cfquery maxrows=N> bug. ColdFusion MX (until ColdFusion
    MX 7.0.1 CHF2) didn't pass maxrows to the underlying driver
    (statement.setMaxRows())"
    Given the results you're getting, it sounds like CF is
    applying the maxrow to all of the resultsets, not just the one
    where maxrows was declared. I suspect cfstoredproc's usage of
    statement.setMaxRows() is incorrect. Thats just a guess though.
    Bottom line, I think you'll need handle it manually.
    Personally, I would recommend placing the row count logic in the
    stored procedure (if possible). The overall results will be more
    consistent and you won't have to worry about this kind of issue
    again.
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_18339
    http://livedocs.adobe.com/coldfusion/7/htmldocs/00000314.htm
    http://www.remotesynthesis.com/blog/index.cfm/2006/3/23/Maxrows-Issue-in-CFQuery

  • Get selected row from grid

    Hi
    I use JDev 11.1 with ADF, i have grid, i need to get selected row of grid when i press buttom, how can i do that?
    Thanks

    Hi,
    You have a table in your page that is based on a viewObject iterator and you need to get the selected row in your backing bean when you click on a button.
    Did I get this right?
    If so then you need to add an actionListener on this button that executes a method in the backing bean.
    the button code:
    <af:commandButton text="commandButton 1" id="cb1"
                                        actionListener="#{myBean.buttonActionListener}"/>In this method you need to add code like this:
      public void buttonActionListener(ActionEvent actionEvent) {
        BindingContext bindingctx=BindingContext.getCurrent();
        DCBindingContainer bindings=(DCBindingContainer)bindingctx;
        DCIteratorBinding iter= bindings.findIteratorBinding("iteratorName");
        Row currentRow=iter.getCurrentRow();
      }If this is not what you need give some more details.
    Gabriel

  • How to get the rows from a table having some column has any letter

    Hi All,
    suppose i have a table having columns id(number), code(varchar).
    code has alphanumeric characters (ex. ABC123, 67B56 etc).
    some codes are only numbers (2344, 7898 etc).
    how can i get the rows which have alphabets in the code.
    ex:
    id code
    1 AB45
    2 456
    3 890
    4 67B7
    how can i write a query such that it should give me the ids 1 and 4 (as they have alphabets in code)
    thanks in advance to all

    Thanks to one and all.
    i am gettig my required output.
    But i have a doubt in the operator.
    If i add or remove '[]' in the operator, i am getting different ouputs.
    There is a count difference in the result of the operators used.
    REGEXP_LIKE(<column>,'[[:lower:]]')
    REGEXP_LIKE(<column>,'[[[:lower:]]]')
    REGEXP_LIKE(<column>,'[:lower:]')
    Can anybody please explain what is the difference in using '[]', in the operator?
    What is the correct syntax, whether i have to use two '[]'s or one '[]'.
    Also, can i use REGEXP_LIKE() in oracle 8i version.( I am unable to use the operator in 8i)?
    Any query to get the required output in 8i version?
    Thanks in advance to all.

  • I Get an Error "To Access Your iTunes Library ..." And Other Things Are Wonky Too ... Can't Reset ... Internet Radio Drops ... But Things Look To Be Set Up Okay

    When I use my Apple TV and try to play music from my computer I get an error: "To access your iTunes library on Apple TV, turn on Home Sharing in iTunes on your computer using 'myname'"
    On my computer n iTunes Preferences / Sharing I have the "Share my library on my local network" checked with "Share entire library" -- no password, no update play counts.  I've turned it off and on again.
    The Apple TV settings show we are "talking to" my WIFI -- it has my network, shows a good signal strenght, all sorts of internet addresses and IP stuff I don't understand ...
    The "Internet" tab works with some of those things I'd never use -- like I see the current NHL standings.
    My TV works and I get an ATV signal and those little chimes / bongs when I hit things in the menu.  And when it works I get audio so the cables and TV are okay.
    In the past I had trouble with the settings for my favourite Internet Radio stations (the provider changed their URL but Apple didn't update the presets for a while) but those are now resolved.
    I had a crappy old G class router and week signal strenght but I have a new N class Cisco router with a strong signal.
    But other things are wonky:
    * I play interent radio and my station will go fine for about five minutes then stop -- the little wheel spins trying to reconnect.  Sometimes it resets but more often than not it won't.  I just tried again four hours later and the same thing.
    * I've unplugged the ATV and plugged it back in but no noticable improvement
    * I tried to do the factory reset from the ATV menu.  It says it will download the latest bla bla bla and after a few minutes tells me "Apple TV can't download latest update right now, try again later" -- I've tried three times today always with the same results.
    * I unhooked it from the power and HDMI and plugged it into a Micro USB cable and plugged that into my Mac -- it doesn't show up in the devices in iTunes.
    * I have a bunch of photos in a folder that I use for my ATV Screen Saver.  A few weeks ago I added two photos to that folder -- they don't show up in the ATV screen show but the others still do.
    * When I started today I checked my iTunes and the airplay icon didn't show in the bottom right (beside the genious icon and the little thing to show or hide the sidebar).  Now I noticed the Airplay icon is there.  When I try to switch from playing through my computer speaakers to my Apple TV I get an error "An unknown error (-15006) occurred while connecting to the Airplay device "Apple TV"" -- the ATV shows that Airplay is on.
    * I see from the ATV settings that I'm running ATV Software 4.4.3 (3323) and when I do a "Update Software" on the ATV it tells me that my software is current.
    * My iTunes is 10.5.2 (11) and my OS is 10.6.8 -- both are up to date.
    Yikes and double yikes!
    Any ideas?

    Hey Chunk,
    I love the idea of the ATV more than I have loved the little black box but ... famous last words ... my ATV seems to be working better these days.
    A big challenge for me was too many variables at play -- new router, new ATV OS / firmware / whatever, changing internet radio presets, a less than perfect physical set up ... and a short attention span from yours truly.
    Here's what I did.  Somwhere in these changes things got "fixed."
    * I unhooked the ATV and did a factory restore by hard wiring the ATV to my computer with a micro USB cable (no external power needed) working through iTunes (I run iTunes 10.5.2 on an iMac with OS X 10.6.8).
    * after the reset I now have ATV (is that an operating system or a firmware?) 4.4.4
    * then I plugged it back into my home theatre and it didn't work :-) but in slightly different ways.  The settings showed that I was connected to my home network but I couln't get connected using my Apple ID and no internet radio.  (it is often counterintuitive -- like why when I want my ATV to talk to my iMac over my local network am I logging in to the iTnes Store with my Apple ID? but there you go.)
    * I booked with the genius bar at the Apple Store and put my ATV in my pocket.  They pulled out a TV, HDMI cable, ATV power source and even the remote -- all I provided was my little black ATV.  We hooked the ATV to their TV and from the Apple Store (using thier WIFI) I logged in using my Apple ID and the thing worked fine.
    * so now I knew that my ATV was up to date and it worked in the Apple Store using their network so it looked like the issue was my network.
    * rebooted my router and noticed that when I had upgraded to the new super dooper Cisco n router we had plugged my iMac direct to the router via ethernet cable.  I unhooked the ethernet and now just run my computer WIFI using AirPort.
    And ...
    It works.  I use my ATV exclusivly for music -- my iTunes and internet radio and AirPlay -- and now both work fine.  The ATV does pick up photos from my iPhoto for the screen saver and all that other stuff -- netflix, youtube, the hockey scores, ... all seem to be there.  And my son played a video off his iPod Touch using AirPlay.
    I know my approach is more scattered than a proper scientific try but ...
    From my experience ... reset the ATV and get it up to date; see if it will work on someone else's network; check your network set up.
    Good luck!

  • How to get multiple rows at one time in a table?

    hi
    I have a JTable bound with ViewObject and i use multiple selection mode setting to get selection row.
    My question is when i select more then one row at one time i only can get those index from JTable but can't get those rows from ViewObject.is it possible to get rows from ViewObject? or how to use JTable row index to get row from ViewObject?

    repost

  • How do I get Front Row to work with Lion?

    Hello fellow Mac users,
    How do I get Front Row to work with Lion? I have an iMac 27 inch computer and is the sole entertainment provider for my bedroom. I refuse to put a TV in my room and wanted to know how to get Front Row to work again on my mac? It seems that the upgrade to Lion erased the app.
    I have quite a few movies and series that I bought off iTunes and is a shame that I can't use a media center app like Front Row on Lion.

    I kind of have the opposite problem. I need to know how to turn off my remote on the computer. I am using the remote for my Apple TV and it keeps making the volume on my Computer go up and down (with annoying sounds).
    There used to be a way to un-sync the remote with the comp but I cannot remember how and the Apple help is not much help! I have Lion.
    Thanks!
    Best,
    Tony

  • How do I get into iTunes to access Netflix, when I get "iTunes unable to connect until time has been set", after submiting my password?

    How do I get into iTunes to access Netflix, when I get "iTunes unable to connect until time has been set", after submiting my password?

    You need to follow the instructions in this article that best apply to your situation:
    Forgot passcode for your iPhone, iPad, or iPod touch, or your device is disabled - Apple Support
    If you do not have a backup in either iCloud or iTunes, then you will have no way to retain the information on your device because you will have to restore it in order to access it again.
    Sorry,
    GB

  • How do i get my laptop to access the itunes library on my external drive hooked up to my desktop via my home network?

    How do i get my laptop to access the itunes library on my external drive hooked up to my desktop via my home network?

    If you are willing to pay $24.99 per year for iTunes Match you can put your library in the cloud provided you don't have more than 25,000 tracks.
    iCloud- iTunes Match
    iTunes in the Cloud and iTunes Match Availability
    iTunes Store- Troubleshooting iTunes Match
    iTunes- How to add a computer or iOS device to iTunes Match

  • How to get current row data in table control

    Hi , expert ,
       I am professional in oracle ,  but  now I am a new guy in SAP ABAP .
    I  have a question in UI
    How to get current row data and click pushbutton  in table control  to open next screen ?
    I want to get the current data and open next screen to carry out detail detail .
    Thansk for all your suggestion .

    GET CURSOR LINE SY-CUROW .
      READ TABLE internal_table index SY-CUROW.

  • How to get first row from View Object cache.

    hi,
    I am using Jdeveloper 11.1.1.6
    can we get first row from View Object cache??
    Thanks in Advance.
    Best
    Shashidhar

    Hi Frank,
    Thanks for reply!!
    My case is:
    I have a Query based ViewObject.
    One of the field is LOV and remaining fields are in ADF table. the LOV field is out side ADF table when i insert first record in ADF table and i choose LOV  filed the value is selected.
    when i create second row LOV value got refreshed because both are in same VO.
    I need to get the LOV value of first row and set same value to second Row.
    Shashidhar

Maybe you are looking for