0FI_GL_6 retrieve no records in delta

Hi guys
We are using 0FI-GL_6 for uploading FI-GL cubes and it was running fine until last week.
The situation is now, that when I run init with data, everything works fine but no deltas are coming afterwards.
I've check the BWFI_AEDA2 table and it seems to have the deltas, but they are not coming through to BW.
Any help will be appreciated.
Regards
Shlomi

Check the BWOM2_TIMEST table for the 0FI_GL_6 DataSource and see if there's an entry for the date/time stamp. If not, and you're source system is Enterprise R3 (4.7) or older, then apply [OSS Note 683138|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=683138] into the source system and then re-init and see that a timestamp is posted to this table.
You may also want to take a look at [OSS Note 719811|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=719811].

Similar Messages

  • Retrieve All records and display in Report using CAML query in Report Builder if Parameter value is blank

    Hello Experts,
    i have created a report where i have one parameter field where user will pass parameter(e.g. EmpId). As per parameter record will fetched to report if no parameter is passed then it will display all records. I have done it by taking SqlServer Database as datasource.
    by using Following method
    Now i would like to do it by taking Sharepoint List as Datasource. For that what would be the CAML Query.
    Here is my existing CAML query.
    <RSSharePointList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <ListName>Employees</ListName>
      <ViewFields>
        <FieldRef Name="Title" />
        <FieldRef Name="FirstName" />
        <FieldRef Name="LastName" />
        <FieldRef Name="FullName" />
        <FieldRef Name="UserName" />
        <FieldRef Name="Company" />
      </ViewFields>
      <Query>
        <Where>  
    <Eq> 
        <FieldRef Name="Title" />
      <Value Type="Text">    
       <Parameter Name="EmployeeId"/>    
    </Value>
    </Eq>                  
        </Where>
      </Query>
    </RSSharePointList>
    The above code is working if i am passing an employeeId to Parameter. If nothing is passed, it is Not retrieving any record.
    Please suggest
    Thank you
    saroj
    saroj

    Your problem follows the well-established pattern of using an "All" parameter filter in SSRS. There are a few approaches depending on the size of your data. The easiest one is to return all data from CAML and then filter it within SSRS, the following thread
    provides some examples,
    http://stackoverflow.com/questions/18203317/show-all-records-some-records-based-on-parameter-value.
    Other options include passing all of the possible values within the CAML query when "All" is selected, using multiple Report Files to distinguish between both CAML queries, or to use multiple datasets with some logic to show/hide the correct one.
    Dimitri Ayrapetov (MCSE: SharePoint)

  • Retrieve the records based on date where date is not stored

    Hi,
    I have one table in Oracle.
    I want to retrieve the records which are added or modified after a particular date & time.(but the table does not contain any column for date & time )
    For example: Product table(pid number,pname varchar2)
    i am entering 10 records on date 21/07/2005
    i am entering 20 records on date 22/07/2005
    i am entering 15 records on date 23/07/2005
    i am entering 30 records on date 24/07/2005
    If i want to retrieve the records added after 22/7/2005
    (ie.) last 45 records
    But the table does not contain any date field.
    How will you know date & time of each record updated in the table.
    If any one knows, help me.
    bye.

    for 9iR2: check out online document of Oracle9i Application Developer's Guide - Fundamentals and search flash back query
    http://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96590/adg08sql.htm#10851
    for 10G, flash back feature is enhenced to whole database level, you can still use flash back query though.

  • I am using the database connectivity toolkit to retrieve data using a SQL query. The database has 1 million records, I am retrieving 4000 records from the database and the results are taking too long to get, is there any way of speeding it up?

    I am using the "fetch all" vi to do this, but it is retrieving one record at a time, (if you examine the block diagram) How can i retrieve all records in a faster more efficient manner?

    If this isn't faster than your previous method, then I think you found the wrong example. If you have the Database Connectivity Toolkit installed, then go to the LabVIEW Help menu and select "Find Examples". It defaults to searching for tasks, so open the "Communicating with External Applications" and "Databases" and open the Read All Data. The List Column names just gives the correct header to the resulting table and is a fast operation. That's not what you are supposed to be looking at ... it's the DBTools Select All Data subVI that is the important one. If you open it and look at its diagram, you'll see that it uses a completely different set of ADO methods and properties to retrieve all the data.

  • Database hangs after retrieving some records....

    hi,
    I create a two level B+-tree index, for the first level i'm using key as logical database name, for the second level B+-tree i'm using some other field in my data. I am retrieving the records based on logical database name. I am using C++ to implement my index.
    In the following code i'm retrieving records from database. Program is behaving differently for different logical database names. For example in my database i have around 4 lakhs records with logical database name 'A' and around 1 lakh of records with logical database name 'B'. The following code displays all B records but programs hangs after retrieving some A records.
    I'm using PAGE_SIZE=8192, numBuffers=2048, and runnig in Fedora Core3.
    DbEnv myEnv(0);
         myEnv.set_cachesize(0, PAGE_SIZE * numBuffers, 0);
         myEnv.set_data_dir("/home/raviov/new/database");
              try {
                   myEnv.open("./", DB_CREATE | DB_INIT_MPOOL, 0);
              catch (DbException &e) {
                   cerr << "Exception occurred: " << e.what() << endl;
                   exit(1);
              db=new Db(&myEnv,0);
              db->set_pagesize(PAGE_SIZE);     
              db->set_bt_compare(compare_int);
         dbname=itoa(p);
         try
         db->open(NULL,
                   "treedb.db",
                   dbname,
                   DB_BTREE,
                   0,
                   0);
         catch(DbException &e)
              cerr << "Failed to open DB object" << endl;
              exit(1);
         db->cursor(NULL,&cursorp,0);
         key=new Dbt();
         data=new Dbt();
         while(ret=(cursorp->get(key,data,DB_NEXT))==0)
              j=*((int*)key->get_data());
              q=(*((struct tuple*)data->get_data())).startPos;
              r=(*((struct tuple*)data->get_data())).endPos;
              s=(*((struct tuple*)data->get_data())).level;
              cout<<"position : "<<j<<"\t";
              cout<<"start : "<<q<<"\t";
              cout<<"end : "<<r<<"\t";
              cout<<"level : "<<s<<"\n";
         if(ret==DB_NOTFOUND)
              cout<<"no records";
              exit(1);
         if(cursorp!=NULL)
              cursorp->close();
         try
              db->close(0);
         catch(DbException &e)
              cerr << "Failed to close DB object" << endl;
              exit(1);
         myEnv.close(0);

    HI Andrei,
    thank you for giving reply, I'm not using any secondary indecies, subdatabases and not using any threads.
    the following code displays index...
    #include <stdio.h>
    #include <db_cxx.h>
    #include <iostream.h>
    #include <db.h>
    #include <stdlib.h>
    #include <string.h>
    #include <sys/types.h>
    int PAGE_SIZE=8192;
    int numBuffers=2048;
    char *itoa(const int x)
          char buf[100];
          snprintf(buf, sizeof(buf), "%d", x);
           return strdup(buf);
    int compare_int(Db dbp, const Dbt a, const Dbt *b)
      int ai;
      int bi;
      memcpy(&ai,a->get_data(),sizeof(int));
      memcpy(&bi,b->get_data(),sizeof(int));
      return(ai-bi);
    struct tuple
           int startPos;
           int endPos;
           int level;
    main()
         FILE *fp;
         int i,j,k,l,m,n,total=0;
         char dbname[500],filename[500],str [500];
         tuple t;
         Db *db;
         Dbt key,data;
         DbEnv myEnv(0);
         myEnv.set_cachesize(0, PAGE_SIZE * numBuffers, 0);
         try {
                myEnv.open("/home/raviov/Desktop/example", DB_CREATE | DB_INIT_MPOOL, 0);
           catch (DbException &e) {
                  cerr << "Exception occurred: " << e.what() << endl;
                  exit(1);
         for(n=0;n<=84;n++)
              db = new Db(&myEnv, 0);     // Instantiate the Db object
                    db->set_bt_compare(compare_int);
               db->set_pagesize(PAGE_SIZE);
              strcpy(filename,"/home/raviov/Desktop/GTCReport/code/sequence/splitter/tree/");
              strcat(filename,itoa(n));
              fp=fopen(filename,"r");
              if(fp==NULL)
                   cout<<"error in opening the file";
                   exit(0);
              while(fgets (str , 500 , fp)!=NULL)
                   sscanf(str,"%d(%d,%d,%d,%d)",&i,&j,&k,&l,&m);
                   key=new Dbt(&i,sizeof(int));
                   if(total==0)
                        strcpy(dbname,itoa(j));
                   t.startPos=k;
                   t.endPos=l;
                   t.level=m;
                   data=new Dbt(&t,sizeof(t));     
                   if(total==0)
                        try
                             db->open(NULL,
                             "tree.db",
                                       dbname,
                              DB_BTREE,
                                DB_CREATE,
                                0);
                        catch(DbException &e)
                               cerr << "Failed to create DB object" << endl;
                             exit(1);
                        total=99;
                   int ret=db->put(NULL,key,data,DB_NOOVERWRITE);
                   if(ret==DB_KEYEXIST)
                        cout<<"key already exist\n";
                        exit(1);
                   delete key;
                   delete data;
              total=0;
              fclose(fp);
              try
                   db->close(0);
              catch(DbException &e)
                     cerr << "Failed to close DB object" << endl;
                   exit(1);
         myEnv.close(0);
    }The following code retrieves the records from database that we had built above...
    #include <stdio.h>
    #include <db_cxx.h>
    #include <iostream.h>
    #include <db.h>
    #include <stdlib.h>
    #include <string.h>
    #include <sys/types.h>
    int PAGE_SIZE=8192;
    int numBuffers=2048;
    char *itoa(const int x)
          char buf[100];
          snprintf(buf, sizeof(buf), "%d", x);
           return strdup(buf);
    int compare_int(Db dbp, const Dbt a, const Dbt *b)
      int ai;
      int bi;
      memcpy(&ai,a->get_data(),sizeof(int));
      memcpy(&bi,b->get_data(),sizeof(int));
      return(ai-bi);
    struct tuple
           int startPos;
           int endPos;
           int level;
    main()
         FILE *fp;
         int i,j,k,l,m,n,total=0;
         char *dbname;
         char filename[200],str [100];
         tuple t;
         Db *db;
         Dbt key,data;
         Dbc *cursorp=NULL;
         int ret,x=4;
         char *ravi;
         int p=84763;
         int y=2134872;
         int r,s,q,count=0;
         DbEnv myEnv(0);
         myEnv.set_cachesize(0, PAGE_SIZE * numBuffers, 0);
         myEnv.set_data_dir("/home/raviov/new/database");
              try {
                      myEnv.open("./", DB_CREATE | DB_INIT_MPOOL, 0);
               catch (DbException &e) {
                      cerr << "Exception occurred: " << e.what() << endl;
                      exit(1);
              db=new Db(&myEnv,0);
              db->set_pagesize(PAGE_SIZE);     
              db->set_bt_compare(compare_int);
         dbname=itoa(p);
         try
              db->open(NULL,
                    "tree.db",
                     dbname,
                     DB_BTREE,
                     0,
                     0);
         catch(DbException &e)
                cerr << "Failed to open DB object" << endl;
              exit(1);
         db->cursor(NULL,&cursorp,0);
         key=new Dbt();
         data=new Dbt();
         while(ret=(cursorp->get(key,data,DB_NEXT))==0)
              j=*((int*)key->get_data());
              q=(*((struct tuple*)data->get_data())).startPos;
              r=(*((struct tuple*)data->get_data())).endPos;
              s=(*((struct tuple*)data->get_data())).level;
              cout<<"position   : "<<j<<"\t";
              cout<<"start : "<<q<<"\t";
              cout<<"end   : "<<r<<"\t";
              cout<<"level   : "<<s<<"\n";
              delete key;
              delete data;
         if(ret==DB_NOTFOUND)
              cout<<"no records";
              exit(1);
         if(cursorp!=NULL)
              cursorp->close();
         try
              db->close(0);
         catch(DbException &e)
                cerr << "Failed to close DB object" << endl;
              exit(1);
         myEnv.close(0);     
    }

  • Number of records in Delta Queue in table level.

    Hi All,
    I want to know the number of records in Delta Queue for a particular database in Table level. Right now in Production, i dont have access to TCODE RSA7. I just trying to check the Table TRFCQOUT but i am unable to see the exact count of records specific to data source. Can you please provide any other table to see the data and the count of records in delta queue specific to each data source.
    Thanks.

    Hi Jalina,
    Check the follwing tables:
    -ARFCDATA
    -TRFCQOUT
    -ARFCSTATE
    In case you can't find what you need in the above tables. You can always ask a temporary access to RSA7 transcation to your basis team or ask them to give you the required information from RSA7 themseleves (of course provide to them a step by step procedure) .
    Hope it helps.
    Amine

  • Writing to FI-GL records to Delta Queue using a Function Module

    Has anyone of you tried to write FI-GL transactions to delta queue using BTE by configuring a function module. I am trying to achieve it for a datasource based on a view on FAGLFLEXA table (GL Line Items). For some reason I am not able to see records in Delta Queue. I am doing this to achieve RDA functionality. If you have done it please sends me step sequence and the name of FM.
    Your help would be highly appreciable.
    Regards,
    Ram

    Hello Ram,
    See this SAP Network Blog: [Generic Extraction via Function Module|/people/siegfried.szameitat/blog/2005/09/29/generic-extraction-via-function-module]
    Have a look at these docs,
    [How to Create Generic Data Sources which use the Delta Queue (NW7.0)|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10b68b99-022e-2a10-999d-c4dc9ec24a59]
    [How to Create Generic DataSources Which Use the Delta Queue (NW2004)|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d3219af2-0c01-0010-71ac-dbb4356cf4bf]
    [How to Create Generic Delta|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/84bf4d68-0601-0010-13b5-b062adbb3e33]
    Thanks
    Chandran

  • SQL Query to retrieve the records

    Hi All,
    I have one table. It contains millions of records.I gave the query as follows.
    select * from emp where empnob in (1,1000)
    it displays empnob
    1 A 300000 Manager
    6 B 120000 Analyst
    87 C 32980 salsman
    Now I want to retrieve remaining records. Pelase let me know the query which are not available in emp table between the given limit.
    Thank you.

    Hi ,
    For example there are 10 records only.
    I gave
    select * from emp where empno in (1,10)
    t displays the records having the empnos 1,3,4,6,8
    Now I want to display the records 2,5,7,9,10 also...
    Please let me know the query.Are use using an oracle database? My Oracle database would never return such a result for your query.
    Please post some output from an sqlplus session where you show us exactly what you do.
    Message was edited by:
    Sven W.

  • Query Takes 43 seconds to  retrieve 650 records

    Hi,
    We have Query which takes 43 seconds to retrieve 650 records.We are on 10.2.0.4 version.Kindly Suggest me any changes is required.
    SELECT InstrumentID, MEGroupID, MessageSequence FROM TIBEX_msgseqbyinstrumentbymeid WHERE MEGroupID = 'ME1';
    PLAN_TABLE_OUTPUT
    Plan hash value: 1364023912
    | Id  | Operation                 | Name                        | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT          |                             |    25 |  1550 | 56585   (2)| 00:11:20 |
    |   1 |  HASH GROUP BY            |                             |    25 |  1550 | 56585   (2)| 00:11:20 |
    |*  2 |   HASH JOIN               |                             |  3272 |   198K| 56584   (2)| 00:11:20 |
    |*  3 |    TABLE ACCESS FULL      | TIBEX_INSTRUMENT            |   677 | 14894 |    18   (0)| 00:00:01 |
    |   4 |    VIEW                   |                             |  5689 |   222K| 56565   (2)| 00:11:19 |
    |   5 |     UNION-ALL             |                             |       |       |            |          |
    |   6 |      HASH GROUP BY        |                             |   614 | 11052 |  4587   (2)| 00:00:56 |
    |   7 |       TABLE ACCESS FULL   | TIBEX_QUOTE                 |   455K|  8008K|  4564   (1)| 00:00:55 |
    |   8 |      HASH GROUP BY        |                             |   108 |  1944 | 50283   (2)| 00:10:04 |
    |   9 |       TABLE ACCESS FULL   | TIBEX_ORDER                 |  4926K|    84M| 50001   (1)| 00:10:01 |
    |  10 |      HASH GROUP BY        |                             |    52 |   936 |     8  (13)| 00:00:01 |
    |* 11 |       TABLE ACCESS FULL   | TIBEX_EXECUTION             |   307 |  5526 |     7   (0)| 00:00:01 |
    |  12 |      HASH GROUP BY        |                             |     1 |    40 |     3  (34)| 00:00:01 |
    |* 13 |       TABLE ACCESS FULL   | TIBEX_TSTRADE               |     1 |    40 |     2   (0)| 00:00:01 |
    |  14 |      HASH GROUP BY        |                             |   396 |  7128 |    13   (8)| 00:00:01 |
    |  15 |       INDEX FAST FULL SCAN| IX_BESTEXREL                |  3310 | 59580 |    12   (0)| 00:00:01 |
    |  16 |      HASH GROUP BY        |                             |  1125 | 20250 |    12   (9)| 00:00:01 |
    |* 17 |       TABLE ACCESS FULL   | TIBEX_MERESUMEPRDTRANSITION |  1981 | 35658 |    11   (0)| 00:00:01 |
    |  18 |      HASH GROUP BY        |                             |     1 |    17 |     4  (25)| 00:00:01 |
    |  19 |       TABLE ACCESS FULL   | TIBEX_EDPUPDATEREJECT       |    10 |   170 |     3   (0)| 00:00:01 |
    |  20 |      HASH GROUP BY        |                             |  1126 | 32654 |   822   (1)| 00:00:10 |
    |  21 |       NESTED LOOPS        |                             |  8640 |   244K|   821   (1)| 00:00:10 |
    |  22 |        TABLE ACCESS FULL  | TIBEX_INSTRUMENTADMIN       | 17280 |   421K|   820   (1)| 00:00:10 |
    |* 23 |        INDEX UNIQUE SCAN  | XPKTIBEX_CONFIGMEGROUP      |     1 |     4 |     0   (0)| 00:00:01 |
    |  24 |      HASH GROUP BY        |                             |    17 |   306 |    70   (3)| 00:00:01 |
    |  25 |       TABLE ACCESS FULL   | TIBEX_BESTEXECPRICELOG      | 12671 |   222K|    68   (0)| 00:00:01 |
    |  26 |      HASH GROUP BY        |                             |     1 |    40 |     3  (34)| 00:00:01 |
    |* 27 |       TABLE ACCESS FULL   | TIBEX_AUCTIONPRICE          |     1 |    40 |     2   (0)| 00:00:01 |
    |  28 |      HASH GROUP BY        |                             |  1126 | 19142 |   618   (1)| 00:00:08 |
    |* 29 |       TABLE ACCESS FULL   | TIBEX_ADMINACK              | 18121 |   300K|   616   (1)| 00:00:08 |
    |  30 |      HASH GROUP BY        |                             |  1122 | 20196 |   142   (2)| 00:00:02 |
    |  31 |       INDEX FAST FULL SCAN| INSTRUMENTSTATEMSGSEQ       | 23588 |   414K|   140   (0)| 00:00:02 |
    Predicate Information (identified by operation id):
       2 - access("INSTRUMENTID"="B"."INSTRUMENTID")
       3 - filter("B"."MEGROUPID"='ME1')
      11 - filter("INSTRUMENTID" IS NOT NULL)
      13 - filter("INSTRUMENTID" IS NOT NULL)
      17 - filter("INSTRUMENTID" IS NOT NULL)
      23 - access("ADMINUSER"="MEGROUPID")
      27 - filter("INSTRUMENTID" IS NOT NULL)
      29 - filter("INSTRUMENTID" IS NOT NULL)
    50 rows selected.
    654 rows selected.
    Elapsed: 00:00:43.67
    CREATE OR REPLACE VIEW TIBEX_MSGSEQBYINSTRUMENTBYMEID
    (INSTRUMENTID, MESSAGESEQUENCE, MEGROUPID)
    AS
    SELECT  a.*, b.megroupid
        FROM  TIBEX_MSGSEQBYINSTRUMENT a
        JOIN  tibex_instrument b
          ON  a.instrumentid=b.instrumentid
    CREATE OR REPLACE VIEW TIBEX_MSGSEQBYINSTRUMENT
    (INSTRUMENTID, MESSAGESEQUENCE)
    AS
    SELECT instrumentID, NVL(max(MessageSequence),0) as MessageSequence
        FROM  (SELECT instrumentID, max(MessageSequence) as MessageSequence
                FROM  tibex_quote
                WHERE instrumentID IS NOT NULL
                GROUP BY instrumentID
              UNION ALL
              SELECT instrumentID, max(MessageSequence)
                FROM  tibex_order
                WHERE instrumentID IS NOT NULL
                GROUP BY instrumentID
              UNION ALL
              SELECT instrumentID, max(MessageSequence)
                FROM  tibex_execution
                WHERE instrumentID IS NOT NULL
                GROUP BY instrumentID
              UNION ALL
              SELECT instrumentID, max(MessageSequence)
                FROM  tibex_TsTrade
                WHERE instrumentID IS NOT NULL
                GROUP BY instrumentID
              UNION ALL
              SELECT instrumentID, max(MessageSequence)
                FROM  tibex_BestExRel
                WHERE instrumentID IS NOT NULL
                GROUP BY instrumentID
              UNION ALL
              SELECT instrumentID, max(MessageSequence)
                FROM  tibex_MeResumePrdTransition
                WHERE instrumentID IS NOT NULL
                GROUP BY instrumentID
              UNION ALL
              SELECT instrumentID, max(MessageSequence)
                FROM tibex_EDPUpdateReject
                WHERE instrumentID IS NOT NULL
                  GROUP BY instrumentID
              UNION ALL
              SELECT  instrumentID, max(MessageSequence)
                FROM  tibex_INSTRUMENTADMIN
                WHERE instrumentID IS NOT NULL
                  AND adminuser IN (
                        SELECT  megroupID
                          FROM  tibex_configMeGroup
                GROUP by instrumentID
              UNION ALL
              SELECT instrumentID, max(MessageSequence)
                FROM tibex_BestExecPriceLog
                WHERE instrumentID IS NOT NULL
                GROUP BY instrumentID
              UNION ALL
              SELECT instrumentID, max(MessageSequence)
                FROM tibex_auctionPrice
                WHERE instrumentID IS NOT NULL
                GROUP BY instrumentID
              UNION ALL
              SELECT  instrumentID, max(AckMessageSequence)
                FROM  tibex_adminAck
                WHERE instrumentID IS NOT NULL
                GROUP BY instrumentID
              UNION ALL
              SELECT instrumentID, max(MessageSequence)
                FROM tibex_InstrumentState
                WHERE instrumentID IS NOT NULL
                GROUP BY instrumentID
        GROUP BY instrumentID
    /Regards
    Narasimha

    Hi,
    I dropped and recreated the stats without any modification(Eg adding new Indexes).The Query is hitting the indexes and it comes out in 00:00:16.86.But in the Production box the Same Query is doing Full tablescan.
    The only difference in producation and Test Env is I collected the Fresh stats but in prod Kindly read below and give me suggestion
    The Process Happens
    In the Beginning of the Day Following tables contains Like 100 records and as the day process it will reach 1,2,3,4 millions records by the EOD.During the EOD day we generate stats and delete those records and Tables will have 100 or 200 records but the stats will be for 4 Million records.Kindly Suggest me the best option
    tst_pre_eod@MIFEX3> set timing on
    tst_pre_eod@MIFEX3> show parameter user_dump_dest
    NAME                                 TYPE        VALUE
    user_dump_dest                       string      /u01/app/oracle/admin/MIFEX3/u
                                                     dump
    tst_pre_eod@MIFEX3>
    tst_pre_eod@MIFEX3> show parameter optimizer
    NAME                                 TYPE        VALUE
    optimizer_dynamic_sampling           integer     2
    optimizer_features_enable            string      10.2.0.4
    optimizer_index_caching              integer     0
    optimizer_index_cost_adj             integer     100
    optimizer_mode                       string      ALL_ROWS
    optimizer_secure_view_merging        boolean     TRUE
    tst_pre_eod@MIFEX3>
    tst_pre_eod@MIFEX3> show parameter db_file_multi
    NAME                                 TYPE        VALUE
    db_file_multiblock_read_count        integer     128
    tst_pre_eod@MIFEX3>
    tst_pre_eod@MIFEX3> show parameter db_block_size
    NAME                                 TYPE        VALUE
    db_block_size                        integer     8192
    tst_pre_eod@MIFEX3>
    tst_pre_eod@MIFEX3> show parameter cursor_sharing
    NAME                                 TYPE        VALUE
    cursor_sharing                       string      EXACT
    tst_pre_eod@MIFEX3>
    tst_pre_eod@MIFEX3> column sname format a20
    tst_pre_eod@MIFEX3> column pname format a20
    tst_pre_eod@MIFEX3> column pval2 format a20
    tst_pre_eod@MIFEX3>
    tst_pre_eod@MIFEX3> 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                          01-11-2010 17:16
    SYSSTATS_INFO        DSTOP                           01-11-2010 17:16
    SYSSTATS_INFO        FLAGS                         1
    SYSSTATS_MAIN        CPUSPEEDNW           1489.10722
    SYSSTATS_MAIN        IOSEEKTIM                    10
    SYSSTATS_MAIN        IOTFRSPEED                 4096
    SYSSTATS_MAIN        SREADTIM                    .71
    SYSSTATS_MAIN        MREADTIM                 15.027
    SYSSTATS_MAIN        CPUSPEED                   2141
    SYSSTATS_MAIN        MBRC                         29
    SYSSTATS_MAIN        MAXTHR
    SYSSTATS_MAIN        SLAVETHR
    13 rows selected.
    Elapsed: 00:00:00.07
    tst_pre_eod@MIFEX3> set timing on
    tst_pre_eod@MIFEX3> explain plan for
      2
    tst_pre_eod@MIFEX3> SELECT InstrumentID, MEGroupID, MessageSequence FROM
      2           TIBEX_msgseqbyinstrumentbymeid WHERE MEGroupID = 'ME1';
    GLJd                                               ME1             2.9983E+18
    TALKl                                              ME1             2.9983E+18
    ENGl                                               ME1             2.9983E+18
    AGRl                                               ME1             2.9983E+18
    HHFAd                                              ME1             2.9983E+18
    GWI1d                                              ME1             2.9983E+18
    BIO3d                                              ME1             2.9983E+18
    603 rows selected.
    Elapsed: 00:00:16.72
    tst_pre_eod@MIFEX3> SELECT InstrumentID, MEGroupID, MessageSequence FROM
      2           TIBEX_msgseqbyinstrumentbymeid WHERE MEGroupID = 'ME1';
    603 rows selected.
    Elapsed: 00:00:16.86
    Execution Plan
    Plan hash value: 2206731661
    | Id  | Operation                   | Name                        | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT            |                             |    13 |   806 |   111K  (5)| 00:01:20 |
    |   1 |  HASH GROUP BY              |                             |    13 |   806 |   111K  (5)| 00:01:20 |
    |*  2 |   HASH JOIN                 |                             |  3072 |   186K|   111K  (5)| 00:01:20 |
    |*  3 |    TABLE ACCESS FULL        | TIBEX_INSTRUMENT            |   626 | 13772 |    28   (0)| 00:00:01 |
    |   4 |    VIEW                     |                             |  5776 |   225K|   111K  (5)| 00:01:20 |
    |   5 |     UNION-ALL               |                             |       |       |            |          |
    |   6 |      HASH GROUP BY          |                             |   782 | 14076 | 10056   (5)| 00:00:08 |
    |   7 |       TABLE ACCESS FULL     | TIBEX_QUOTE                 |   356K|  6260K|  9860   (3)| 00:00:08 |
    |   8 |      HASH GROUP BY          |                             |   128 |  2304 |   101K  (5)| 00:01:12 |
    |   9 |       VIEW                  | index$_join$_007            |  3719K|    63M| 98846   (3)| 00:01:11 |
    |* 10 |        HASH JOIN            |                             |       |       |            |          |
    |  11 |         INDEX FAST FULL SCAN| IX_ORDERBOOK                |  3719K|    63M| 32019   (3)| 00:00:23 |
    |  12 |         INDEX FAST FULL SCAN| TIBEX_ORDER_ID_ORD_INS      |  3719K|    63M| 24837   (3)| 00:00:18 |
    |  13 |      HASH GROUP BY          |                             |    23 |   414 |     4  (25)| 00:00:01 |
    |  14 |       VIEW                  | index$_join$_008            |   108 |  1944 |     3   (0)| 00:00:01 |
    |* 15 |        HASH JOIN            |                             |       |       |            |          |
    |  16 |         INDEX FAST FULL SCAN| TIBEX_EXECUTION_IDX1        |   108 |  1944 |     1   (0)| 00:00:01 |
    |* 17 |         INDEX FAST FULL SCAN| TIBEX_EXECUTION_IDX4        |   108 |  1944 |     1   (0)| 00:00:01 |
    |  18 |      HASH GROUP BY          |                             |     1 |    40 |     4  (25)| 00:00:01 |
    |* 19 |       TABLE ACCESS FULL     | TIBEX_TSTRADE               |     1 |    40 |     3   (0)| 00:00:01 |
    |  20 |      HASH GROUP BY          |                             |   394 |  7092 |    30  (10)| 00:00:01 |
    |  21 |       INDEX FAST FULL SCAN  | IX_BESTEXREL                |  4869 | 87642 |    28   (4)| 00:00:01 |
    |  22 |      HASH GROUP BY          |                             |  1126 | 20268 |    19  (11)| 00:00:01 |
    |* 23 |       TABLE ACCESS FULL     | TIBEX_MERESUMEPRDTRANSITION |  1947 | 35046 |    17   (0)| 00:00:01 |
    |  24 |      HASH GROUP BY          |                             |     1 |    17 |     7  (15)| 00:00:01 |
    |  25 |       TABLE ACCESS FULL     | TIBEX_EDPUPDATEREJECT       |     8 |   136 |     6   (0)| 00:00:01 |
    |  26 |      HASH GROUP BY          |                             |  1099 | 31871 |   192   (6)| 00:00:01 |
    |* 27 |       HASH JOIN             |                             |  6553 |   185K|   188   (4)| 00:00:01 |
    |  28 |        INDEX FULL SCAN      | XPKTIBEX_CONFIGMEGROUP      |     4 |    16 |     1   (0)| 00:00:01 |
    |  29 |        TABLE ACCESS FULL    | TIBEX_INSTRUMENTADMIN       | 14744 |   359K|   186   (4)| 00:00:01 |
    |  30 |      HASH GROUP BY          |                             |    11 |   198 |    77   (7)| 00:00:01 |
    |  31 |       TABLE ACCESS FULL     | TIBEX_BESTEXECPRICELOG      |  5534 | 99612 |    74   (3)| 00:00:01 |
    |  32 |      HASH GROUP BY          |                             |     1 |    40 |     4  (25)| 00:00:01 |
    |* 33 |       TABLE ACCESS FULL     | TIBEX_AUCTIONPRICE          |     1 |    40 |     3   (0)| 00:00:01 |
    |  34 |      HASH GROUP BY          |                             |  1098 | 18666 |   193   (7)| 00:00:01 |
    |* 35 |       TABLE ACCESS FULL     | TIBEX_ADMINACK              | 15836 |   262K|   185   (3)| 00:00:01 |
    |* 35 |       TABLE ACCESS FULL     | TIBEX_ADMINACK              | 15836 |   262K|   185   (3)| 00:00:01 |
    |  36 |      HASH GROUP BY          |                             |  1112 | 20016 |    76  (16)| 00:00:01 |
    |  37 |       INDEX FAST FULL SCAN  | INSTRUMENTSTATEMSGSEQ       | 20948 |   368K|    66   (4)| 00:00:01 |
    Predicate Information (identified by operation id):
       2 - access("INSTRUMENTID"="B"."INSTRUMENTID")
       3 - filter("B"."MEGROUPID"='ME1')
      10 - access(ROWID=ROWID)
      15 - access(ROWID=ROWID)
      17 - filter("INSTRUMENTID" IS NOT NULL)
      19 - filter("INSTRUMENTID" IS NOT NULL)
      23 - filter("INSTRUMENTID" IS NOT NULL)
      27 - access("ADMINUSER"="MEGROUPID")
      33 - filter("INSTRUMENTID" IS NOT NULL)
      35 - filter("INSTRUMENTID" IS NOT NULL)
    Statistics
            175  recursive calls
              0  db block gets
          57737  consistent gets
          18915  physical reads
              0  redo size
          14908  bytes sent via SQL*Net to client
            558  bytes received via SQL*Net from client
              8  SQL*Net roundtrips to/from client
              0  sorts (memory)
              0  sorts (disk)
            603  rows processed
    SELECT InstrumentID, MEGroupID, MessageSequence FROM
             TIBEX_msgseqbyinstrumentbymeid WHERE MEGroupID = 'ME1'
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.01       0.07          0          0          0           0
    Execute      1      0.00       0.00          0          0          0           0
    Fetch        8     10.46      16.28      18915      57733          0         603
    total       10     10.47      16.35      18915      57733          0         603
    Misses in library cache during parse: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 303
    Rows     Row Source Operation
        603  HASH GROUP BY (cr=57733 pr=18915 pw=18900 time=16283336 us)
       2853   HASH JOIN  (cr=57733 pr=18915 pw=18900 time=281784 us)
        626    TABLE ACCESS FULL TIBEX_INSTRUMENT (cr=38 pr=0 pw=0 time=120 us)
       5594    VIEW  (cr=57695 pr=18915 pw=18900 time=278405 us)
       5594     UNION-ALL  (cr=57695 pr=18915 pw=18900 time=278400 us)
        823      HASH GROUP BY (cr=12938 pr=0 pw=0 time=272798 us)
    356197       TABLE ACCESS FULL TIBEX_QUOTE (cr=12938 pr=0 pw=0 time=41 us)
        136      HASH GROUP BY (cr=43989 pr=18915 pw=18900 time=15962878 us)
    3718076       VIEW  index$_join$_007 (cr=43989 pr=18915 pw=18900 time=13123768 us)
    3718076        HASH JOIN  (cr=43989 pr=18915 pw=18900 time=9405689 us)
    3718076         INDEX FAST FULL SCAN IX_ORDERBOOK (cr=24586 pr=0 pw=0 time=65 us)(object id 387849)
    3718076         INDEX FAST FULL SCAN TIBEX_ORDER_ID_ORD_INS (cr=19403 pr=0 pw=0 time=64 us)(object id 387867)
         23      HASH GROUP BY (cr=6 pr=0 pw=0 time=1265 us)
        108       VIEW  index$_join$_008 (cr=6 pr=0 pw=0 time=1024 us)
        108        HASH JOIN  (cr=6 pr=0 pw=0 time=914 us)
        108         INDEX FAST FULL SCAN TIBEX_EXECUTION_IDX1 (cr=3 pr=0 pw=0 time=155 us)(object id 386846)
        108         INDEX FAST FULL SCAN TIBEX_EXECUTION_IDX4 (cr=3 pr=0 pw=0 time=129 us)(object id 386845)
          0      HASH GROUP BY (cr=3 pr=0 pw=0 time=84 us)
          0       TABLE ACCESS FULL TIBEX_TSTRADE (cr=3 pr=0 pw=0 time=46 us)
        394      HASH GROUP BY (cr=39 pr=0 pw=0 time=2662 us)
       4869       INDEX FAST FULL SCAN IX_BESTEXREL (cr=39 pr=0 pw=0 time=22 us)(object id 386757)
       1126      HASH GROUP BY (cr=23 pr=0 pw=0 time=2338 us)
       1947       TABLE ACCESS FULL TIBEX_MERESUMEPRDTRANSITION (cr=23 pr=0 pw=0 time=29 us)
          1      HASH GROUP BY (cr=7 pr=0 pw=0 time=110 us)
          8       TABLE ACCESS FULL TIBEX_EDPUPDATEREJECT (cr=7 pr=0 pw=0 time=43 us)
        828      HASH GROUP BY (cr=249 pr=0 pw=0 time=6145 us)
        828       HASH JOIN  (cr=249 pr=0 pw=0 time=1008 us)
          4        INDEX FULL SCAN XPKTIBEX_CONFIGMEGROUP (cr=1 pr=0 pw=0 time=21 us)(object id 386786)
      14905        TABLE ACCESS FULL TIBEX_INSTRUMENTADMIN (cr=248 pr=0 pw=0 time=23 us)
         11      HASH GROUP BY (cr=99 pr=0 pw=0 time=3728 us)
       5556       TABLE ACCESS FULL TIBEX_BESTEXECPRICELOG (cr=99 pr=0 pw=0 time=32 us)
          0      HASH GROUP BY (cr=3 pr=0 pw=0 time=72 us)
          0       TABLE ACCESS FULL TIBEX_AUCTIONPRICE (cr=3 pr=0 pw=0 time=30 us)
       1126      HASH GROUP BY (cr=248 pr=0 pw=0 time=11102 us)
      16069       TABLE ACCESS FULL TIBEX_ADMINACK (cr=248 pr=0 pw=0 time=18 us)
       1126      HASH GROUP BY (cr=91 pr=0 pw=0 time=11947 us)
      21235       INDEX FAST FULL SCAN INSTRUMENTSTATEMSGSEQ (cr=91 pr=0 pw=0 time=38 us)(object id 386904)
    Elapsed times include waiting on following events:
      Event waited on                             Times   Max. Wait  Total Waited
      ----------------------------------------   Waited  ----------  ------------
      SQL*Net message to client                       8        0.00          0.00
      direct path write temp                       1260        0.52          5.39
      direct path read temp                        1261        0.04          2.95
      SQL*Net message from client                     8        0.00          0.00
      SQL*Net more data to client                     6        0.00          0.00
    PARSE #8:c=15000,e=83259,p=0,cr=4,cu=0,mis=1,r=0,dep=0,og=1,tim=532014955506
    EXEC #8:c=1000,e=170,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=1,tim=532014955744
    WAIT #8: nam='SQL*Net message to client' ela= 4 driver id=1413697536 #bytes=1 p3=0 obj#=572 tim=532014955794
    WAIT #8: nam='direct path write temp' ela= 4090 file number=201 first dba=84873 block cnt=15 obj#=572 tim=532015639268
    WAIT #8: nam='direct path write temp' ela= 2677 file number=201 first dba=84888 block cnt=15 obj#=572 tim=532015642558
    WAIT #8: nam='direct path write temp' ela= 20 file number=201 first dba=84903 block cnt=15 obj#=572 tim=532015652372
    WAIT #8: nam='direct path write temp' ela= 2190 file number=201 first dba=84918 block cnt=15 obj#=572 tim=532015656105
    WAIT #8: nam='direct path write temp' ela= 2247 file number=201 first dba=84933 block cnt=15 obj#=572 tim=532015659146
    WAIT #8: nam='direct path write temp' ela= 3386 file number=201 first dba=84948 block cnt=15 obj#=572 tim=532015662832
    WAIT #8: nam='direct path write temp' ela= 3375 file number=201 first dba=84963 block cnt=15 obj#=572 tim=532015666444
    WAIT #8: nam='direct path write temp' ela= 2796 file number=201 first dba=84978 block cnt=15 obj#=572 tim=532015670097
    WAIT #8: nam='direct path write temp' ela= 2901 file number=201 first dba=53129 block cnt=15 obj#=572 tim=532015673308
    WAIT #8: nam='direct path write temp' ela= 2933 file number=201 first dba=53144 block cnt=15 obj#=572 tim=532015676474
    WAIT #8: nam='direct path write temp' ela= 15 file number=201 first dba=53159 block cnt=15 obj#=572 tim=532015686479
    WAIT #8: nam='direct path write temp' ela= 2561 file number=201 first dba=53174 block cnt=15 obj#=572 tim=532015690084
    WAIT #8: nam='direct path write temp' ela= 2297 file number=201 first dba=53189 block cnt=15 obj#=572 tim=532015693299
    WAIT #8: nam='direct path write temp' ela= 3448 file number=201 first dba=53204 block cnt=15 obj#=572 tim=532015697026
    WAIT #8: nam='direct path write temp' ela= 2633 file number=201 first dba=53219 block cnt=15 obj#=572 tim=532015700114
    WAIT #8: nam='direct path write temp' ela= 2902 file number=201 first dba=53234 block cnt=15 obj#=572 tim=532015703743
    WAIT #8: nam='direct path write temp' ela= 3219 file number=201 first dba=53001 block cnt=15 obj#=572 tim=532015707190
    WAIT #8: nam='direct path write temp' ela= 2809 file number=201 first dba=53016 block cnt=15 obj#=572 tim=532015710215

  • Personnel Admin AdHoc Query not retrieving all records

    Hi, I recently added a custom info type to a copy of the SAP ad hoc query for Personnel Admin by using the menu path in SQ02>Edit>Change Infotype selection . The query is picking up the new info type and runs fine but does not retrieve all records from the table for a given personnel id. It only retrieves 1 record per id.
    Has anyone dealt with this before and have an easy/quick fix for this?

    Have other users try the query, preferably a user with end user authorization.
    I've had this issue before, I'm an IT person and I customized a Standard infoset.
    During testing, I'm only getting 1 (in my case) Insurance record per employee.
    The end user can see multiple record per employee.
    Btw, did you customize a Global or a Standard Infoset?
    Regards,
    Olekan

  • Full upload misses records while delta brings them

    Hi experts,
    I'm using 2LIS_12_VCHDR extractor and with delta exctractions everything is worknig correct. The problem comes when I want to make a full upload. It is not taking the last records (while delta took them). It is not bringing records into BW since the exact day I reloaded the 12 LIS tables.
    If I create a sales order, and this order is delivered, my delta infopackage brings it into BW, but my full infopackage is not bringing it.
    Any clues?
    Points will be given,
    Thanks

    My scenario is the next one for 2LIS_12_VCHDR:
    - Full upload on Nov 13th (6 months ago) and it takes 170103 records.
    - I make another full upload today and I obtain 107103 records (the same as 6 months ago, and there are a lot more).
    - I make an init request > I create a delivery in ECC> I make a delta upload an it takes it.
    - Then I make a full upload and it is not taking it. I still have 170103 records.
    Do I have to reiniciate the 2LIS_12 in ECC (OLI8BW)?
    In the other hand I have the 2LIS_12_VAITM working with delta every day. How it will affect to this extractor if I reiniciate all the 2LIS_12? I'm going to miss data? I'm going to duplicate data?
    Thanks

  • Query to retrieve the records which have more than one assignment_id

    Hello,
    I am trying to write a query to retrieve all the records from the table per_all_assignments_f which has more than one different assignment_id for each person_id. Below is the query i have written but this retrieves the records even if a person_id has duplicate assignment_id's but i need records which have more than one assignement_id with no duplicates for each person_id
    select assignment_id ,person_id, assignment_id
    From per_all_assignments_f
    having count(assignment_id) >1
    group by person_id, assignment_id
    Thank You.
    PK

    Maybe something like this?
    select *
    From   per_all_assignments_f f1
    where  exists (select 1
                   from   per_all_assignments_f f2
                   where  f2.person_id = f1.person_id
                   and    f2.assignment_id != f1.assignment_id
                  );Edited by: SomeoneElse on May 7, 2010 2:23 PM
    (you can add a DISTINCT to the outer query if you need to)

  • How to build forms which retrieve multiple records

    Hi everyone,
    I am newbie to APEX.I have a question in FORM building in APEX.In oracle FORMS(6i) has the capability to search with any fileld on it . there is
    an option to search
    data with the id or department or name field.If it retrieves more than one record there
    is navigation controls to move from one record to another.
    Can we build same kind of FORMS in APEX .I didnt find any wizard to build such kind of
    FORM which has both inserting and querying capability.
    I found one option for that in apex (FROM with report).In the report section i can query
    for the records and link to FORM which populates all the data in the FORM. Is that the
    only option do we have in APEX to build the forms which gives multiple records as
    output.
    anyone plz help me in solving this
    thank u

    can anyone please help me in solving this issue,
    Is it possible to build such kind of forms with retrieves multiple records in APEX.
    Thanks

  • Please HELP to retrieve all records in PL/SQL --Still waiting for solution

    First of all, I am a PL/SQL beginner. I need help to retrieve all records in PL/SQL from a database (maybe anyone could give me an example). Here is my code, but this code is only able to retrieve one records only. I would like to create a web service by using PL/SQL to view data in a table.
    CREATE or REPLACE package body DRIVER_FETCHER as
    FUNCTION get_driver(driver_id in VARCHAR2) RETURN driver_rec IS
    driver_found tblDrivers%rowtype;
    driver_rtn driver_rec;
    BEGIN
    SELECT *
    INTO driver_found
    FROM tblDrivers;
    WHERE tblDrivers.lngDriverID=driver_id;
    driver_rtn := driver_rec
    driver_found.lngDriverID,
    driver_found.strTitle,
    driver_found.strFirstName,
    driver_found.strLastName,
    driver_found.dteDOB,
    driver_found.dteDateLicensed,
    driver_found.strLicenseReference,
    driver_found.strAddress_Street,
    driver_found.strAddress_TownVillage,
    driver_found.strAddress_Country,
    driver_found.strAddress_PostCode,
    driver_found.strContactDayPhone,
    driver_found.strContactNightPhone
    RETURN driver_rtn;
    END;
    END;
    and here is the tblDrivers table
    CREATE or REPLACE type DRIVER_REC as object
    lngDriverID varchar2(10),
    strTitle varchar2(5),
    strFirstName varchar2(20),
    strLastName varchar2(20),
    dteDOB date,
    dteDateLicensed date,
    strLicenseReference varchar2(30),
    strAddress_Street varchar2(50),
    strAddress_TownVillage varchar2(20),
    strAddress_Country varchar2(15),
    strAddress_PostCode varchar2(10),
    strContactDayPhone varchar2(20),
    strContactNightPhone varchar2(20)
    CREATE or REPLACE package DRIVER_FETCHER as
    FUNCTION get_driver(driver_id IN VARCHAR2) RETURN driver_rec;
    END;
    Thank You,
    Paul
    Message was edited by:
    user452391
    Message was edited by:
    user452391
    Message was edited by:
    user452391

    Hi,
    you will enjoy reading
    http://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96624/toc.htm
    for a fundamental understanding of PL/SQL.
    You can do a "select * from t;" only in SQL, not in PL/SQL. There you have to open a cursor and fetch the results into a variable, e.g.:
    declare
    cursor c_example
    is
       select * from emp;
    begin
       for r_example in c_example loop
           dbms_output.put_line(r_example.empno);
       end loop;
    end;This is an explicit cursor, opened within an "cursor for"-loop. The results are fetched into a (implicitly declared) record "r_example". The record now holds the values of one row from the emp table. The loop ends when all record from emp where fetched.
    Regards,
    Gerd

  • Callprocedure which contain dynamic sql that retrieve multiple records from VB

    hi dear i have problem with using dynamic sql to retrieve multipule records
    and access them from visual basic
    first i use Oracle8 Enterprise Edition Release 8.0.4.0.0
    and odbc microsoft odbc for oracle version 2.573.4403.00
    these are the whole processes to do that
    please check the steps and if u find any error say to me....
    1-table description
    Name Null? Type
    PORT_KEY NOT NULL VARCHAR2(4)
    CITY_KEY NOT NULL VARCHAR2(4)
    and port_key is primary key
    2- package declaration
    create or replace package ww1
    as
    procedure bound_type
    (v_origin in varchar2,v_flag in varchar2
    ,city_key out dbms_sql.varchar2_table
    end ;
    3- package body
    create or replace package body ww1
    as
    procedure bound_type
    (v_origin in varchar2,v_flag in varchar2
    ,city_key out dbms_sql.varchar2_table
    is
    str varchar2(1000);
    cur_hdl integer :=dbms_sql.open_cursor;
    rows_processed integer;
    indx integer :=1;
    begin
    str:='select ltrim(rtrim(city_key)) from special_airport ';
    if ltrim(rtrim(upper(v_flag))) = upper('c')
    then
    str:=str &#0124; &#0124; ' where city_key=ltrim(rtrim(upper('&#0124; &#0124;''''&#0124; &#0124;v_origin&#0124; &#0124;''''&#0124; &#0124;')))';
    elsif ltrim(rtrim(upper(v_flag))) = upper('a') then
    str:= str &#0124; &#0124;' where port_key=ltrim(rtrim(upper('&#0124; &#0124;''''&#0124; &#0124;v_origin&#0124; &#0124;''''&#0124; &#0124;')))';
    end if;
    dbms_sql.parse(cur_hdl,str, dbms_sql.native );
    dbms_sql.define_array(cur_hdl,1,city_key,10,indx);
    rows_processed:=dbms_sql.execute(cur_hdl);
    loop
    rows_processed:=dbms_sql.fetch_rows(cur_hdl);
    dbms_sql.column_value(cur_hdl,1,city_key);
    exit when rows_processed != 10;
    end loop;
    dbms_sql.close_cursor(cur_hdl);
    end bound_type;
    end ww1;
    4- code for calling stored procedure from visual basic
    dim c As New ADODB.Connection
    Dim cmd As New ADODB.Command
    Dim rs As New ADODB.Recordset
    c.Open "dsn=dsnName;uid=uidValue;pwd=pwdValue"
    With cmd
    Set .ActiveConnection = c
    .CommandType = adCmdText
    '---------(call bound_type stored procedure)--------------
    .Parameters.Append .CreateParameter(, adBSTR, adParamInput, , "bwi")
    .Parameters.Append .CreateParameter(, adBSTR, adParamInput, , "a")
    .CommandText = "{call fares_procedures.bound_type (?,?,{resultset 10, city_key }) }"
    End With
    Set rs.Source = cmd
    rs.Open
    While Not rs.EOF
    z = rs.Fields("city_key")
    rs.MoveNext
    Wend
    Set cmd = Nothing
    rs.Close
    Set rs = Nothing
    c.Close
    Set c = Nothing
    ***********result get error*************
    please check the code and steps and if u find any error contact me
    thanks any way
    null

    hi every one i got a simple solusion and its faster than dbms_sql package by 1.5 to 3 times...but it works only for oracle 8i or higher......
    after concatenat the string of dynamic sql
    but it in a ref cursor and loop on it
    TYPE VAR_TABLE IS TABLE OF VARCHAR2(40)
    INDEX BY BINARY_INTEGER;
    procedure bound_type
    (v_origin in varchar2,v_flag in varchar2
    ,city_key out var_table )
    is
    str varchar2(1000);
    type curtype is ref cursor;
    sa_cur curtype;
    i integer default 1;
    begin
    str:='select ltrim(rtrim(city_key)) from special_airport ';
    if ltrim(rtrim(upper(v_flag))) = upper('c')
    then
    str:=str &#0124; &#0124; ' where city_key=ltrim(rtrim(upper('&#0124; &#0124;''''&#0124; &#0124;v_origin&#0124; &#0124;''''&#0124; &#0124;')))';
    elsif ltrim(rtrim(upper(v_flag))) = upper('a') then
    str:= str &#0124; &#0124;' where port_key=ltrim(rtrim(upper('&#0124; &#0124;''''&#0124; &#0124;v_origin&#0124; &#0124;''''&#0124; &#0124;')))';
    end if;
    open sa_cur for str;
    loop
    fetch sa_cur into city_key(i);
    exit when sa_cur%notfound;
    i:=i+1;
    end loop;
    close sa_cur;
    end bound_type;
    null

Maybe you are looking for

  • Your client does not support opening this list with windows explorer - related to multiple uploads?

    Hi folks - I've read through some threads regarding "Your client does not support opening this list with windows explorer" and it seems a lot of folks have a lot of solutions throughout the forum posts.  Is there anything official or semi-official re

  • OS 10.4.6

    Well, since I have a dial up which blazes on at 28.8, I went to the Apple store in Vegas to do my 10.4 to 10.4.6 update. I forgot and had the Call of Duty DVD in the drive but nothing else connected. They let me use their ethernet connection and I do

  • Javax.resource.ResourceException

    Hi, I'm trying to import the class javax.resource.ResourceException in my program but when I compile the code I get the error "class javax.resource.ResourceException not found in import". What is the name of the jar file that contains this class and

  • SBS 2003 Server & email

    Hi everyone! This is my third post regarding not being able to set up my email and I found out a little more info today. We are using SBS 2003 for a server and this is maybe why I'm having problems. We use excange and access our email with Microsoft

  • Is it possible to purchase cellular service while traveling in Japan for an Ipad Air?

    I am traveling to Japan and would like to know if it is possible to purchase cell service for my Ipad Air for several weeks?  What are the possible cell providers?