Data being retrieve from PL/SQL is "???"

Hi,
I follow the sample code shown in getting the data of PL/SQL using Java.
Please see below:
OracleCallableStatement stmt =(OracleCallableStatement)conn.prepareCall
( "begin ? := getEMpArray; end;" );
// The name we use below, EMPARRAY, has to match the name of the
// type defined in the PL/SQL Stored Function
stmt.registerOutParameter( 1, OracleTypes.ARRAY,"EMPARRAY" );
stmt.executeUpdate();
// Get the ARRAY object and print the meta data assosiated with it
ARRAY simpleArray = stmt.getARRAY(1);
System.out.println("Array is of type " + simpleArray.getSQLTypeName());
System.out.println("Array element is of type code "+simpleArray.getBaseType());
System.out.println("Array is of length " + simpleArray.length());
// Print the contents of the array
String[] values = (String[])simpleArray.getArray();
for( int i = 0; i < values.length; i++ )
System.out.println( "row " + i + " = '" + values<em> +"'" );
But when i view the data from java the data that is being fetch is "???". All the array data is like this "???". :(
But when i debug the PL/SQL the data is OK.
I dont know if this is a binary numbers or what.
I dont know how to solve this. And get the real data.
Please help.
By the way, i'm using eclipse as the IDE.
Thanks.</em>

Ok,here is the code.
if(nvl(values1,0) >= nvl(:cf_qty,0)) then
     return (nvl(value1,0)-nvl(value2,0));
else
     pck.p_count_first := pck.p_count_first + 1 ;
     pck.p_FGI(pck.p_count_first):= nvl(value2,0) - nvl(value1,0);
end if;
Here for First counter value stored as 1,
Second value stored as 1.
When I am retriving the values. like
if (pck.p_FGI.count > 0) then
PCK.p_count_second := pck.p_count_second + 1 ;
v_total := pck.p_FGI(pck.p_count_second) – VALUE3;
end if;
Here Value pck.p_FGI(pck.p_count_second) comes as 0 instead of 1.
Can you tell us why is this show value 0.

Similar Messages

  • Count rows in a table being retrieved from dba_segments

    Hello guys,
    I was wondering how can I count the rows in a table that is being retrieved from dba_segments.
    -- I am getting the table name from dba_segment
    -- Is it possible to count the number of rows in that table at the same time?
    -- If not, is there an alternative step without analyzing the table or schema, then getting the result from num_rows in all_tables?
    I want the count code to add to the select statement..
    SELECT owner, segment_name , segment_type, partition_name, bytes
    FROM   dba_segments
    WHERE  owner = UPPER( v_schema )
    ORDER BY segment_name;I try to add this to the select statement. count(segment_name), but that did not work.
    Any direction(s)?

    SYS@DEMO102> show user
    USER is "SYS"
    SYS@DEMO102> l
      1  declare
      2  counter number;
      3  begin
      4  for x in (select segment_name, owner
      5            from dba_segments
      6            where segment_type='TABLE'
      7            and owner='SCOTT') loop
      8  execute immediate 'select count(*) from '||x.owner||'.'||x.segment_name into counter;
      9  dbms_output.put_line(rpad(x.owner,30,' ')
    10                       ||'.'
    11                       ||rpad(x.segment_name,30,' ')
    12                       ||' : '
    13                       || counter
    14                       ||' row(s)');
    15  end loop;
    16* end;
    SYS@DEMO102> /
    SCOTT                         .MYTABLE14                      : 0 row(s)
    SCOTT                         .TAB3                           : 1 row(s)
    SCOTT                         .TAB4                           : 4 row(s)
    SCOTT                         .THE_TABLE                      : 5 row(s)
    SCOTT                         .C                              : 0 row(s)Nicolas.

  • Workflow task details are being retrieved from the server

    Hi,
    Using an approval workflow. when the task has been assigned to the person he is getting an email but when clicking on the edit this task button ,the pop window with the
    "workflow task details are being retrieved from the server" 
    error is getting. SharePoint site 2007 and Microsoft Outlook is 2010.

    I have a similar issue with my version of SharePoint. 
    SharePoint 2010 Enterprise.
    Outlook 2013 with MS Exchange
    Document approval workflow.
    When you open the document approval email that comes from SharePoint and click on "Open this task"  the popup window flashes across "workflow tasks details are being retrieved from the server ".
    I've tried the regedit fix and the hive fix and resetting IE that some of the other people have said that works and it doesn't. 
    When I go the site, and connect the task list to Outlook, I can complete the task that way.
    I also created a new approval workflow in SharePoint designer and it behaves the same way.
    Anything else I should try?
    == Steve Morley MedIT, Dalhousie University

  • How do I remove certain data being imported from a php file

    I have data being loaded from a php into an xml class.
    My host (which is free for testing purposes) keeps adding data to the php file which causes errors.  I need to know how I can delete this extra text before I put the data into an XML class so I do not get the error.  I did a trace of the data and this is what comes up below.  I need everything below the </data> tag to be removed but do not know how to do this.  Can someone please help me.
    <?xml version='1.0' encoding='UTF-8'?><data>
        <google rate='21' />
        <yahoo rate='3' />
        <msn rate='2' />
        <tv rate='10' />
        <diger rate='4' />
    </data>
    <!-- www.000webhost.com Analytics Code -->
    <script type="text/javascript" src="http://analytics.hosting24.com/count.php"></script>
    <noscript><a href="http://www.hosting24.com/"><img src="http://analytics.hosting24.com/count.php" alt="web hosting" /></a></noscript>
    <!-- End Of Analytics Code -->
    Thanks,
    Jason

    in your load complete function:
    var s:String=e.target.data;
    var xml:XML=XML(s.split("<!-- www.000")[0]));

  • Export data into Excel from PL/SQL Block

    Hi,
    Please tell me how to export data into excel comming out from PL/SQL code in APEX.
    We can simply export data into excel if we have Report region, but my query is dynamic for which i had to use PL/SQL block. Now i want to export that data into excel.
    Thanks & Regards,
    Smith

    Hi,
    Take a look here http://spendolini.blogspot.com/2006/04/custom-export-to-csv.html
    Regards
    Paul

  • Convert data into Date Format imported from MS SQL Server.

    I have imported Data from MS SQL Server. The "Date Column" received in number format like 41017.6361109954. How can i convert it into Date in Oracle SQL.
    If i import same Data in Excel and change the Column Type to Date. It changes successfully. But in Oracle, I tried To_Date function with different parameters but it didn't work.
    Edited by: XAVER on Apr 22, 2012 2:31 AM

    XAVER wrote:
    The actual date for 41017.6361109954 is 22-Apr-2012 but its showing 20-APR-2082It looks like offset is January 1, 2000:
    select timestamp '2000-01-01 00:00:00' + numtodsinterval(41017.6361109954,'day') from dual;
    20-APR-12 03.15.59.990002560 PM
    SQL> SY.

  • Query data being picked from which data targets and dimension tables.

    Hi Guys,
    I need help from you people.
    My query is "If we execute any query, i want to know from which data targets and from which dimension tables data being read in the run time", is there any program or any table to find this data.
    thanks in advacne.
    Regards
    Prasad

    Hi Prasad,
    We will get Data target information in query level in information TAB.
    If you want get dimension tables information also you need use technical business content(bwstatistics) Cubes and need to customize the required information. I think standard statisics cubes is not provide dimention tables information. Need to customize that.
    Hope it will help for you.
    Thanks,
    Chandra

  • Error loading data into Essbase from the SQL Server

    Hello experts!
    I've got another urgent and confusing issue. I am loading data from an SQL Server view into Essbase (which is reversed with multiple data columns) using ODI 11.1.1.5 and I get the following error at +"3-Loading -SrcSet0-Load Data"+ step:
    ODI-1227: Task SrcSet0 (Loading) fails on the source MICROSOFT_SQL_SERVER connection.
    +Caused By: java.sql.SQLException: [FMWGEN][SQLServer JDBC Driver][SQLServer]Incorrect syntax near the keyword 'View'+
    where "View" is the name of the dimension (non-data) column in the SQL view.
    Please help me with any hints! Thank you so much!

    John, thank you so much!
    Your answer is exactly correct!
    "View" is an object name in SQL Server so this word cannot be used as a column name in SQL Server tables. Once the name of the colunm changed from "View" to another, the interface runs without errors!

  • Data being removed from previous months calendars.

    My
    Data is being removed from previous months calendars

    Go to settings>mail,contacts, and calendars. Make sure the settings for Sync under calendars is set to all events to sync all past events.

  • How to use Data Pump (epdp) from PL/SQL

    Hi,
    I want to use the Oracle Data Pump Export Utility (expdp) from PL?SQL
    I wan to write a Stored Procedure which will invoke the 'expdp' from PL/SQL itself.
    Kindly anyone who can help me to proceed.
    Regards

    Hello,
    Instead of writing pl/sql procedure ; use dbms_scheduler and use pl/sql anonymous block.
    DECLARE
       l_dp_handle        NUMBER;
       l_last_job_state   VARCHAR2 (30) := 'UNDEFINED';
       l_job_state        VARCHAR2 (30) := 'UNDEFINED';
       l_sts              ku$_status;
    BEGIN
       l_dp_handle   :=
          DBMS_DATAPUMP.open (operation => 'EXPORT',
                              job_mode => 'SCHEMA',
                              remote_link => NULL,
                              job_name => 'RET_EXPORT',
                              version => 'LATEST'
       DBMS_DATAPUMP.add_file (handle => l_dp_handle,
                               filename => 'myexport.dmp',
                               directory => 'EXPORT_DIR'
       DBMS_DATAPUMP.add_file (handle => l_dp_handle,
                               filename => 'myexport.log',
                               directory => 'EXPORT_DIR',
                               filetype => DBMS_DATAPUMP.ku$_file_type_log_file
       DBMS_DATAPUMP.metadata_filter (handle => l_dp_handle,
                                      name => 'SCHEMA_EXPR',
                                      VALUE => '= ''MYSCHEMA'''
       DBMS_DATAPUMP.start_job (l_dp_handle);
       DBMS_DATAPUMP.detach (l_dp_handle);
    END;
    /Regards

  • RE: No data being extacted from R3 to BW

    Hi Gurus,
    Problem:  
    When data is extracted from R3 to BW. In the Monitor, I see that no records have been extracted and this is the error I see in details:
    (Yellow) Overall status :Missing Messages or Warnings.
    (Green) Requests(Messages): Everything Ok.
    (Yellow)Extraction(Messages) : Missing Messages.
    (Yellow) Missing Message :request received.
    (Yellow) Missing Message :Number of sent records.
    (Yellow) Missing Message :Selection Completed.
    (Yellow) Transfer(Idoc and Trfc): Missing message or warnings.
    (Yellow) Request Idoc: Sent, not arrived; data passed to port OK.
    (Yellow) Processing(Data packet) : No data.
    I have checked the connections in SM59, they are working fine.
    On BW side:
    1. There is outbound of the Idoc.
    On R3 side:
    1. No Inbound or outbound of Idoc.
    Need help to solve this issue. Help is appreciated.
    Thanks,
    Aravind

    Authorisation trace can be started in ST01 Txn.(In ECC)
    In general filters, give your username in "Trace for user only" field, check the "Authorisation Check" and switch trace on. Perform the extraction, switch the trace off and then analyse(in the correct time frame).
    RSRQST error in BD87 means something wrong with the source system connection. Is this after a system copy? All problems I have seen in this area, is when someone(Basis) has fiddled with it(I do not know why some Basis guys still feels source system connection requires fiddling, when the system is perfectly capable of generating it automatically). If yes, try and restore the connection from ground up.
    Anyway you require Basis help to sort this out. If it is an option, I recommend deleting and recreating the source system connection without any manual maintenance (ports, idocs etc). You just need to provide server details and background user info to BW, it does all the rest automatically.

  • Formating numbers in a form after retrieving from an SQL database

    Hello everyone,
    I am using php to populate a form using numbers taken from an sql database.  I am having a hard time showing decimal places in those numbers.  The code I am using in the value section of the form is:
    value="<?php if (isset($_POST['unit_price_1'])) {
         echo htmlentities( $_POST['unit_price_1'], ENT_COMPAT, 'UTF-8');
         } else {
              echo htmlentities($row_getInvoice['unit_price_1'], ENT_COMPAT, 'UTF-8');
         } ?>" />
    This code rounds all numbers up and eliminates decimal places.  I am trying to show dollars and cents.
    How do I alter the code to accomplish what I want.
    Jeff

    Not sure what might come in your way here, so I just made the following simple test by using a static value rather than one which gets derived from a recordset (the source shouldn´t matter), and this works well for me without seeing the value altered in any way:
    <?php
    $value = "10.22";
    ?>
    <input type="text" name="whatever" value="<?php echo htmlentities($value, ENT_COMPAT, 'UTF-8'); ?>" />
    However,. for displaying numeric values you really don´t need to use  htmlentities/ENT_COMPAT etc etc -- that´s something you´d rather use for displaying textual contents containg special characters like umlauts and such.
    If all you need is to add some degree of protection by escaping special HTML characters (<, >, &, etc.), the function htmlspecialchars() will only be escaping just these characters and leave the rest "as is", whereas htmlentities() is notably more rigi, because this function will convert all applicable characters to HTML entities -- but again: at this point you´re just *displaying* some numeric value, that is, such security measures are pretty much pointless in this scenario, because there´s nothing to protect from ;-)
    Please test what happens when doing away with the htmlentities - thing.
    Cheers,
    Günter

  • Value retrieve from PL/SQL Table

    Hi all,
    I am using PL/SQL Table to store the data. In table type p_table which I declared in a Package PCK.
    I am storing the value as follows
    pck.p_table(p_count)
    Here p_count is the counter.
    Values are storing the tables. Like
    Counter Values
    1 1
    2 2
    3 1.
    But when I retrieved the values from the table like pck.p_table(p_counter_1).
    Then for first Counter its giving me 0 value instead of 1.
    Can you please tell me why this is happening.
    Thanks in advance.

    Ok,here is the code.
    if(nvl(values1,0) >= nvl(:cf_qty,0)) then
         return (nvl(value1,0)-nvl(value2,0));
    else
         pck.p_count_first := pck.p_count_first + 1 ;
         pck.p_FGI(pck.p_count_first):= nvl(value2,0) - nvl(value1,0);
    end if;
    Here for First counter value stored as 1,
    Second value stored as 1.
    When I am retriving the values. like
    if (pck.p_FGI.count > 0) then
    PCK.p_count_second := pck.p_count_second + 1 ;
    v_total := pck.p_FGI(pck.p_count_second) – VALUE3;
    end if;
    Here Value pck.p_FGI(pck.p_count_second) comes as 0 instead of 1.
    Can you tell us why is this show value 0.

  • Extracting data of data type 'real' from the sql server database

    Hi,
    In my job, my source is a sql server database.
    I am connecting to the source sql server database using ODBC (sqlserver driver) in the datastore.
    In one of my source tables i have a field of data type real.If one of the value is 3.45678 , data services brings it in as 3.456780, which is OK, but if the real value is 4.7 in source, data services brings it  as 4.699997. I want it to be brought in as 4.700000 and not as 4.699997(i.e it is expanding upto 6 digits after the decimal point).
    Is this a default behavior of how data services reads the 'real' data types or is it because of how the ODBC sql server driver reads the data ?
    Is the above problem connected to an option in the DS.config file called
    LAZY_DECIMAL_CONVERSION which is set as true in our file.Should i set as false and will it solve this problem?
    Thanks in Advance.

    I tried reproducing your case, I read a value with real datatype from sql server DB. For me the values are coming fine, 4.7 is read as 4.700000 or 4.528 as 4.528000. I have also checked the value of LAZY_DECIMAL_CONVERSION, it is true. So I dont think it is a problem with that being set to true. Try something out with the Column properties in Query transform.
    I am using DS 3.2/ SQLSERVER 2008.
    Edited by: Lakhan Lalla on Oct 31, 2011 12:04 PM

  • Limited fields being retrieved from BW

    Hi
    We have designed reports in Crystal 2008 using BEx queries. There is a calculation logic defined in BEx due to which we have a huge number of Key figures out of which 34 are being displayed on the report (actuals & budgets for each month; 4 quarters and Total) Also, the report consists of two groups - Cost centre's and Cost elements; cost elements nested within Cost centre's. The report appears as below
                                                Apr May June July Aug Sept
    Finance                                 x     x     x      x     x      x
         Manpower Cost               x     x     x      x     x      x
         Travel Cost                      x     x     x      x     x      x
    Operations                           x      x     x      x     x      x
         Manpower Cost              x      x     x      x     x      x
         Travel Cost                     x      x     x      x     x      x
    The issue that we are facing is that as we increase the number of columns, some of the rows or the cost centre's being displayed on the report automatically get suppressed. For example if in the parameter 10 cost centre's are selected, the report displays only 6; if we display all 34 key figures. However If we reduce the key figures being displayed, then all 10 cost centre's get displayed. Is this due to a limitation on the data that can be fetched from BW? Is there any patch that can be applied or any registry that can be increased so that all the required details can be displayed..Also, the performance of the report is very slow, it takes about 12 mins to open. Kindly help.
    Thanks.

    Hi Ingo
    We raised this issue to SAP support and after they did a Webex, it was concluded that the issue occured due to the MDX query hitting the 1Million cell restriction at the SAP BW level. As such they could not provide us with an resolution and so we have now proposed a re-designing to the client for these particular reports.
    In case you could provide us with a resolution  for this limitation it would be of great help for the future.
    Thanks
    Payal

Maybe you are looking for

  • Dreamweaver - Contribute issue

    In Dreamweaver: I created a template with 2 editable areas: pageheading and content I inserted text and a table onto 1 page - saved as summary.htm and saved everything if I look at the code the "<!-- TemplateEndEditable -->" is in the correct positio

  • DB connect source system

    Hi, I am extracting data from oracle data base source system in to BW. I can see the Table/view in RSDBC transaction . I can also see data, usually shows 50 data records. Now when schedule the infopackage it fetches zero records. I need help with thi

  • Unable to start ./adopmnctl.sh services after fresh installation of 12.2 on linux 6.3

    Hi , Installed E-business suite 12.2 on OEL 6.3 64bit. buildStage.sh script successfully  verified all media and executed rapidwiz script. Trying to start all services using adstrtal.sh but facing issue while starting adopmnctl.sh. Error showing: Sta

  • Can't find application responses

    I started signup sheet and saw the responses, now I cannot find it.  Where is it? Here is the application &#151;https://adobeformscentral.com/?f=IEVlbAUG5DbQLFYHqyhW3Q I do not see this document anywhere on my account.  HELP!

  • Revaluation of actual activity rates

    <MODERATOR:  please post in the appropriate forum.> Dear all, My client is having make to order scenario in which at the time of production order confirmation (co14) actual activity is confirmned and loaded to production order as per planned acticity