Fetch statement issue

declare
c1               r_cursor;
l_PIP_xml_data_clob     long;
l_xml_query          long;
begin
l_xml_query:='Dynamically constructed sql query';
open c1 for l_xml_query;
loop
     fetch c1 into l_PIP_xml_data_clob;
     exit when c1%notfound;
     l_PIP_xml_data_xmltype := xmltype(l_PIP_xml_data_clob);
end loop;
In the above example at the fetch statement i am getting the following error
ERROR at line 1:
ORA-19011: Character string buffer too small
ORA-06512: at "INTFMGR.EBIZ_RN", line 1250
ORA-06512: at line 6
Here i have used long data type which is enough to hold the resultant data.But it is showing "Character string buffer too small".
Any idea pls.
cheers
RRK

Use it for l_PIP_xml_data_clob then, since that's the variable holding the return value. Which is pretty evident from the name that it probably should be a clob datatype anyway.
Sounds like the value you're returning is a clob that's over the limit of what a long can hold.

Similar Messages

  • How to fetch certificates issued in past

    Hi,
    I have a long list of templates issued in my Client's Issuing CA, some of them are not in use. If I try to export " Issued Certificates" list from CA, it hangs.
    I want to know how many certificates and last certificate issed from a specific template for fine-tuning and seggregation purpose. Please let me know how we can check that status.
    Thanks
    Neha Garg

    Hi Paul,
    I am getting the output like this :
    C:\Windows\system32>certutil -view -restrict "certificate template=<1.3.6.1.4.1.
    311.21.8.10269956.2688026.1196953.3333800.9810006.227.1092942.575204>"
    Schema:
      Column Name                   Localized Name                Type    MaxLength
      Request.RequestID             Request ID                    Long    4 -- Index
    ed
      Request.RawRequest            Binary Request                Binary  65536
      Request.RawArchivedKey        Archived Key                  Binary  65536
      Request.KeyRecoveryHashes     Key Recovery Agent Hashes     String  8192
      Request.RawOldCertificate     Old Certificate               Binary  16384
      Request.RequestAttributes     Request Attributes            String  32768
      Request.RequestType           Request Type                  Long    4
      Request.RequestFlags          Request Flags                 Long    4
      Request.StatusCode            Request Status Code           Long    4
      Request.Disposition           Request Disposition           Long    4 -- Index
    ed
      Request.DispositionMessage    Request Disposition Message   String  8192
      Request.SubmittedWhen         Request Submission Date       Date    8 -- Index
    ed
      Request.ResolvedWhen          Request Resolution Date       Date    8 -- Index
    ed
      Request.RevokedWhen           Revocation Date               Date    8
      Request.RevokedEffectiveWhen  Effective Revocation Date     Date    8 -- Index
    ed
      Request.RevokedReason         Revocation Reason             Long    4
      Request.RequesterName         Requester Name                String  2048 -- In
    dexed
      Request.CallerName            Caller Name                   String  2048 -- In
    dexed
      Request.SignerPolicies        Signer Policies               String  8192
      Request.SignerApplicationPolicies  Signer Application Policies   String  8192
      Request.Officer               Officer                       Long   
    4
      Request.DistinguishedName     Request Distinguished Name    String  8192
      Request.RawName               Request Binary Name           Binary  4096
      Request.Country               Request Country/Region        String  8192
      Request.Organization          Request Organization          String  8192
      Request.OrgUnit               Request Organization Unit     String  8192
      Request.CommonName            Request Common Name           String  8192
      Request.Locality              Request City                  String  8192
      Request.State                 Request State                 String  8192
      Request.Title                 Request Title                 String  8192
      Request.GivenName             Request First Name            String  8192
      Request.Initials              Request Initials              String  8192
      Request.SurName               Request Last Name             String  8192
      Request.DomainComponent       Request Domain Component      String  8192
      Request.EMail                 Request Email Address         String  8192
      Request.StreetAddress         Request Street Address        String  8192
      Request.UnstructuredName      Request Unstructured Name     String  8192
      Request.UnstructuredAddress   Request Unstructured Address  String  8192
      Request.DeviceSerialNumber    Request Device Serial Number  String  8192
      RequestID                     Issued Request ID             Long    4 -- Index
    ed
      RawCertificate                Binary Certificate            Binary  16384
      CertificateHash               Certificate Hash              String  128 -- Ind
    exed
      CertificateTemplate           Certificate Template          String  254 -- Ind
    exed
      EnrollmentFlags               Template Enrollment Flags     Long    4
      GeneralFlags                  Template General Flags        Long    4
      PrivatekeyFlags               Template Private Key Flags    Long    4
      SerialNumber                  Serial Number                 String  128 -- Ind
    exed
      IssuerNameID                  Issuer Name ID                Long    4
      NotBefore                     Certificate Effective Date    Date    8
      NotAfter                      Certificate Expiration Date   Date    8 -- Index
    ed
      SubjectKeyIdentifier          Issued Subject Key Identifier  String  128 -- In
    dexed
      RawPublicKey                  Binary Public Key             Binary  4096
      PublicKeyLength               Public Key Length             Long    4
      PublicKeyAlgorithm            Public Key Algorithm          String  254
      RawPublicKeyAlgorithmParameters  Public Key Algorithm Parameters  Binary  4096
      PublishExpiredCertInCRL       Publish Expired Certificate in CRL  Long    4
      UPN                           User Principal Name           String 
    2048 -- In
    dexed
      DistinguishedName             Issued Distinguished Name     String  8192
      RawName                       Issued Binary Name            Binary  4096
      Country                       Issued Country/Region         String  8192
      Organization                  Issued Organization           String  8192
      OrgUnit                       Issued Organization Unit      String  8192
      CommonName                    Issued Common Name            String  8192 -- In
    dexed
      Locality                      Issued City                  
    String  8192
      State                         Issued State                 
    String  8192
      Title                         Issued Title                 
    String  8192
      GivenName                     Issued First Name             String  8192
      Initials                      Issued Initials               String  8192
      SurName                       Issued Last Name              String  8192
      DomainComponent               Issued Domain Component       String  8192
      EMail                         Issued Email Address          String  8192
      StreetAddress                 Issued Street Address         String  8192
      UnstructuredName              Issued Unstructured Name      String  8192
      UnstructuredAddress           Issued Unstructured Address   String  8192
      DeviceSerialNumber            Issued Device Serial Number   String  8192
    Maximum Row Index: 0
    0 Rows
       0 Row Properties, Total Size = 0, Max Size = 0, Ave Size = 0
       0 Request Attributes, Total Size = 0, Max Size = 0, Ave Size = 0
       0 Certificate Extensions, Total Size = 0, Max Size = 0, Ave Size = 0
       0 Total Fields, Total Size = 0, Max Size = 0, Ave Size = 0
    CertUtil: -view command completed successfully.
    but it doesnt give me the output that I am looking for. I want to know details of last certificate issued by a given template and its validity status.
    Please let me know if I need to make any changes in command.
    Thanks
    Neha Garg

  • How to monitor  SQL statements issued by SIEBEL ?

    Hi,
    We have developed BI Siebel 10.1.3.3. application.
    One of the requirement is to persist/store in the database real SQL statement issued by BI Dashboards/Answers.
    The best solution would be having acces on-line to cursor cache.
    Could someone please tell me how to achive this ?
    Regards,
    Cezary

    Sounds like you're looking for Usage Tracking.
    OBIEE Server Administration Guide – Pages: 220
    OBIEE Installation and Configuration Guide – Pages: 229
    And this post here;
    http://oraclebizint.wordpress.com/2007/08/14/usage-tracking-in-obi-ee/
    A.

  • Trace SQL statement issued by BC4J

    Is there a way to see at runtime (in the console window or in a log file) the SQL statements issued by the BC4Js to the database?
    Perhaps there is a switch or a -D option to set to the OC4J startup command. This would be really helpfull during development.
    Thanks,
    Marco.

    Yes, you are right. that will be done by specify a Java virtual parameters - -Djbo.debugoutput=console.

  • Stop auditing select statements issued against SYS objects

    Hi,
    My current client has a requirement to track destructive updates (i.e. insert, update, delete) issued by users who can connect directly to the database. At the moment though, SELECT statements issued against SYS-owned objects are also being captured to the Oracle audit trail. For the time being at least these need to be disabled.
    I've issued NOAUDIT SELECT TABLE/SEQUENCE and NOAUDIT SELECT ANY TABLE/SEQUENCE commands, as has a user with the SYSDBA privilege, and they're still being logged. Is there any way to switch these off? I don't know if it's significant (I'm not a DBA by trade) but the audit_sys_operations parameter is set to True.
    My client is currently running Oracle Database 10.2.0.5.0 standard edition.
    If anyone has any suggestions I'd be grateful.
    Thanks in advance,
    Steve

    Hi,
    Thanks for the input so far ...
    @Eduardo and KarK ...
    show parameter audit
    audit_file_dest string D:\ORACLE\PRODUCT\10.2.0\ADMIN\USSUPM2\ADUMP
    audit_sys_operations boolean TRUE
    audit_trail string DB, EXTENDED
    If we set audit_sys_operations to FALSE, won't that stop auditing of all actions carried out by, for example, someone who connects as SYSDBA? That is something that's still needed to be captured. Unfortunately they go to the WIndows Event Log but at least they're captured somewhere.
    @Hemant
    This auditing was in place before my client took me on, so I can't say what was used to initiate it unfortunately. What I can say though is that they absolutely don't want to turn off auditing by SYS- type users, just SELECT against SYS-owned objects.
    Thinking simplistically, could I just write a script which trawls dba_objects for sys-owned tables, views and sequences and explicitly issues a noaudit select against what's found, and get one of the sysdba-type people we have access to to run it?
    Thanks in advance (again)
    Steve

  • Expression   cannot be used as an INTO-target of a SESELECT/FETCH Statement

    Hello guys
    Iam new to oracle and this my first post
    I have written this code in sql
    declare
    2 cursor madecursor is select bus_id ,bus_destination ,seat_no ,
    3 driver_name from bus for update of seat_no nowait ; myseat bus.seat_no%type
    4 ; begin
    5 for bus_id in madecursor loop
    6 select myseat into bus.bus_id from bus where
    7 bus_id = bus_id
    8 ; if
    9 myseat < 5 then
    10 update bus set seat_no = seat_no*2 WHERE CURRENT OF madecursor
    11 ; DBMS_OUTPUT.PUT_LINE('Updated');
    12 end if ;
    13 end loop;
    14 end;
    but I have the following errors:-
    ERROR at line 6:
    ORA-06550: line 6, column 27:
    PLS-00403: expression 'BUS.BUS_ID' cannot be used as an INTO-target of a SELECT/FETCH statement
    ORA-06550: line 6, column 2:
    PL/SQL: SQL Statement ignored
    please help me.
    Thanks in advance.
    user613283

    Firstly thank you for replies , I get use of your suggestions and change my code but still having errors please suggest.
    SQL> declare
    2 I_myseat bus.seat_no%type;
    3 begin
    4
    5
    6 select I_myseat into I_myseat from
    7 bus where
    8 bus_id = bus.bus_id
    9 ;
    10 if I_myseat < 5 then
    11 update bus set seat_no = seat_no*2
    12 where I_myseat<5
    13 ; DBMS_OUTPUT.PUT_LINE('Updated');
    14
    15 end if;
    16 end;
    17 / declare
    ERROR at line 1:
    ORA-01422: exact fetch returns more than requested number of rows
    ORA-06512: at line 6

  • Finding Delete statement issued in particular object

    Dear All,
    Please let me know how to find what are all the delete statement issued against a object in oracle. some one is deleted some data from one table i want to find when the delete statement fired in my schema.
    With Regards
    Ramesh

    you have audit turn on right? there should be a report for DML in audit vault.

  • Finder Saved State Issue

    I don't know why, but just starting today I have 3 apps that open on a restart or login. These are not login items.
    Firefox
    ICal (which displays repeated reminders of three weekly events, some going back several days. cancelling only stops them in the current login session)
    Numbers
    I have repaired permissions twice.
    I have reset the pram.
    Via the Go/library by holding down the option key I have:
    Emptied and locked the saved state folder.
    Deleted the finder plist file.
    Deleted my account login items and deleted the login plist file.
    Restart after each.
    I have checked and unchecked the reopen windows box on logout/restart - no difference either way.
    I have created a new admin account that does not exhibit these issues.
    I have had ongoing issues since buying this 10.7.2 mac mini with permissions and older numbers documents opening when starting the numbers applicataion. I know all about the option key on close or closing all windows before quiting the program, none of that has any effect. Also not being able to create backups of numbers files due to write protection issues. I also have the fetching issue on the system folder as well as other folders.
    Part of this and maybe all of this is caused by attempting to migrate files from a mac mini with 10.4.11 on it.
    Is there any hope by doing a clean install and not lose data files/application keys/etc And can that be done by holding down the command R?
    I guess I am out of ideas and would appreciate some input.

    Wow, these type of problems are always hard to diagnose. Could be a software or hardware issue. Let's not forget RAM problems in addition to the HD. What I would do first is look in the system log for kernel messages. If there are i/o problems with the HD they'll be logged there. Also, your Mac Pro has ECC ram. You'll see corrected ECC errors in the log if there's a RAM problem.
    From Apple:
    "If you see more than four ECC errors in 48 hours, it may be a sign of an impending DIMM failure. Before replacing the DIMM, shut down the server and reseat the DIMM.
    Often, a DIMM that is not fully seated will cause failures due to thermal effects on the DIMM connector. If the failures recur, the DIMM is probably about to fail and should be replaced at your earliest convenience."
    In my experience, multiple corrected ECC errors resulted in a very unstable Mac Pro even though they are supposedly corrected and everything is theoretically okay.

  • SUBMIT REPORT statement issue in abap

    Hi Experts,
    I am facing issue while doing SUBMIT REPORT statement.
    Below are the details for the Issue:
    1. We want to execute another report ZTEST2 from one report , so we have written code in report ZTEST1 as below:
                          SUBMIT ZTEST2 AND RETURN.
    2. It goes to ZTEST2 successfully but when we execute ZTEST2 and click on BACK buttton , it directly goes to ZTEST1 selection screen.
    Instead we want to go ZTEST2 program's selection screen. As this back button is standard ALV button is there any way we can handle this without creating new PF-STATUS.
    Regards,
    Sanjana

    That's very limiting.
    It depends, there are some things you can do if you ztest2 does something that is traceable.
    Without any more info I suggest to check time-lapse between submit calls. If it's inferior to 2 seconds I'd suppose user want's to leave.
    mind you the syntax is wrong:
    do.
    g_initial = get time.
    SUBMIT ZTEST2 AND RETURN.
    g_final = get time.
    if g_final - g_initial <= 2.
         exit.
    endif.
    enddo.
    For the user is in most cases transparent, only if he remains a lot of time in selection screen he'll remain there.
    regards,
    Edgar

  • Manual Bank Reconciliation Statement Issue

    Hi All,
    I am getting Error in Manual Bank Statement Spool Requests.
    I have done the below steps :
    1. Posted Vendor Invoice (FB60)
    2. Made Payment to Vendor (F-53)
    3. Created Check Manually (FCH5)
    4. Done Configuration for Manual BRS.
    5. Execute FF67
    6. I got status message Statement/List Posted
    7. When I go to check Batch Input session ( I am getting an Error in FB05)
    I don't understand , what configuration I missed.
    I checked Posting Rule , Tolerance but not able to fix this issue.
    Please advice.
    Kind Regards,
    Prakash Kumar

    Hi Sanil,
    Thanks for your reply !
    It has been resolved, I missed to update Tolerance for GL (OBA0) without Group name , I just amended it.
    Its resolved.
    Kind Regards,
    Prakash Kumar

  • Select Statement issue

    HI All,
        I have 10 records in a internal table. I have 20 records in a database table. i want those records from the database table which does not exists in internal table.Which is the better select statement for this situation with performance.
    Regards,
    Hazam

    simplest way is just fetch all the records instead of checking each and every record of internal table with database table records.
    select f1 f2 f3
           from mara
    <b>       into table itab</b>
           where <condition>.
    this will just replace all the existing records of ITAB with the new values.
    here alternatively you can use <b>RANGES</b>. but if your primaarey key of that database table is only 1 field,then you can use RANGES. but if your WHERE condition fields also more,then this way of doing with RANGES is time consuming.
    For example, if you are fetching data from MARA table,
    RANGES R_MATNR FOR MARA-MATNR.
    R_MATNR-SIGN = 'E'.
    R_MATNR-OPTION = 'EQ'.
    LOOP AT ITAB1.
      R_MATNR-LOW = ITAB1-MATNR.
      APPEND R_MATNR.
    ENDLOOP.
    Now R_MATNR will have all material nos fromn the first internal table.
    then send this to select
    SELECT * FROM MARA
    <b>         APPENDING TABLE ITAB1</b>
             WHERE MATNR NOT IN R_MATNR.
    Regards,
    Srikanth
    Message was edited by: Srikanth Kidambi
    Message was edited by: Srikanth Kidambi

  • Xpower 2 SLI and C-state issues

    Hi there,
    unfortunately faced a couple of not critical but annoying problems.
    First of all it is an SLI trouble. Every time I switch off my PC and then try to switch it on there is no video output - the monitor just stays black while PC normally boots up, I can hear sound when windows loads but no video output. The only way to get video back is to take out a power cord or switch off and on the PSU or to switch off and on UPS. Well, I usually shut down UPS when PC is not needed so I do not face troubles on first boot a day, but sometimes you just need to switch on and off not through reboot. Btw with reboot there is no such problem. This doesn't happen when there is only one card.
    Secondly, looks like somethings wrong with C-states or my hardware. When C1 is enabled I get high-voltage noise coming out of CPU socket. Noise remains only at zero load and if C-state is switched off - no sound. I've seen someone here with same issue but on another board, however, no solution was provided besides contacting MSI...
    I've come across these troubles on all bioses from 1.5 to 2.6, so, any advice would be apreciated.
    My system:
    3930k
    xpower 2
    Hynix-1 4gb 1600x8
    Zotac ref GTX 680 x2
    TT TPG-1200W

    Quote from: G10shish on 21-January-14, 17:15:20
    Yep, it is multi-rail, well, will have an opportunity to test with single rail in a couple of weeks I guess. My mistake, it is C1E that makes the CPU sound sick, generally I don't need power saving and turbo boost at all as even 3.8 is not always enough for MEgui) Just curious
    Yes, both cards were tested separately

  • Selected state issue with Menu Module V2

    OK so I am getting an issue with Menu Module V2. I have used this before with success but this time I have hit a wall. I possed this question to BC live chat and they bugged out real quick.
    The site in construction is http://www.urbanista.com.au
    What is happening is that in the top right tools nav with the headings Home, Services, People, Contact Us using Menu Module V2. The Heading Services has a drop down and this is where the issue resides. Roll over any of these nav devices and you will see they will highlight orange. Home is already auto activating its Selcted state. Click on Contact Us and it will do the same.  Roll over and click on Services and it appears to have worked. While in Services roll over the drop down again and you will see all links have activated the Selected state. This is the issue. If you view the code of the Services UL you will see only the Services state has been alocated the Slected state. See below:
    <li id="Services" class="selected">
    <a href="/services.htm">Services</a>
    <ul>
    <li id="tools-panningdev">
    <li id="tools-housing">
    <li id="tools-urban-renewal">
    <li id="tools-project-management">
    <li id="tools-feasibility-tools">
    <li id="tools-governance-systems">
    <li id="tools-communications">
    <li id="tools-projects">
    </ul>
    </li>
    The CSS that runs the nav is as follows:
    ul.dropdown {
        font-weight: normal;
        font-family: Arial, Helvetica, sans-serif;
        font-style: normal;
        text-decoration: none;
        ul.dropdown li {
        background-color: transparent;
        color: #999;
        padding-top: 5px;
        padding-right: 10px;
        padding-bottom: 5px;
        padding-left: 10px;
        font-size: 12px;
        ul.dropdown li.hover,
        ul.dropdown li:hover {
        background-color: transparent;
        color: #FFF;
        ul.dropdown a:link,
        ul.dropdown a:visited    {
        color: #FFF;
        text-decoration: none;
        ul.dropdown a:hover        { color: #ff871f; }
        ul.dropdown a:active    {
        color: #b33b00;
        /* -- level mark -- */
        ul.dropdown ul {
        width: 150px;
        margin-top: 1px;
        background-image: url(/images/nav-transparency.png);
        background-repeat: repeat;
        color: #FFF;
        ul.dropdown ul li {
        font-weight: normal;
    ul.dropdown li.selected a {
        color: #ff871f;
    The last entry 'ul.dropdown li.selected a {color: #ff871f;}' is required in order to allocate a Slected State. Without it not Selected state is active and the links al remian white.
    I have tried all manner of combinations and additonal tags with no success. Any suggestions greatly appreciated. I have not modified the default Javascript provided by BC in the system apart from allocating the required ulTagClass as specified. The Javascript in the supplied 'container.html' is as follows:
    <script type="text/javascript" >
        // ids need to be unique per page, use different ones if you are including multiple menus in the same page
        // id of the nav tag, used above
        var divTagId = "myMenu1";
        // desired id for 1st <ul> tag
        var ulTagId = "myMenu1List";
        // desired class for 1st <ul> tag
        var ulTagClass = "dropdown dropdown-vertical";
        if ((null !== ulTagId) && ("" !== ulTagId)) {
            document.getElementById(divTagId).getElementsByTagName("ul")[0].setAttribute("id",ulTagId );
        if ((null !== ulTagClass) && ("" !== ulTagClass)) {
            document.getElementById(divTagId).getElementsByTagName("ul")[0].className = ulTagClass;
        // this will set the selected state
        if ((null !== ulTagId) && ("" !== ulTagId)) {
            catSetSelectedCSSItem(ulTagId);
    </script>
    Lastly this is one of the recomended navs by BC at the following address: http://lwis.net/free-css-drop-down-menu/
    I have used these before with success but for the life of me this has stumped me big time.

    Hi Matthew,
    Having a super quick look at the code I'd say it's because of:
    ul.dropdown li.selected a {
        color: #ff871f;
    This affects all the child elements.
    To override this down the line you could do something like:
    ul.dropdown li.selected ul li a {
        color: #fff;
    This would override the parent link color when selected.
    You could probably then also add:
    ul.dropdown li.selected ul li.selected a {
        color: #ff871f;
    For the dropdown selected states.
    That's a quick look though so don't quote me too much

  • Function moule to fetch stat reccords in ECC6.0

    Hi All,
    The function module
    SAPWL_WORKLOAD_GET_STATISTIC dosen't work in version ECC6 but it's ok in 4.7.
    The Function module is available in ECC6.0 but it doesn't fetch the stat records from ST03.
    which is the replacement function module of SAPWL_WORKLOAD_GET_STATISTIC in ECC6.0?
    The tables used by ST03 in Version ECC6?
    Regards,
    Siraj.

    hi,
    changes to transactions for versions is stored in table PRGN_CORR2.
    SAPWL_ST03N
    open this program in se80,u can find all tables used.

  • Webview Real Time Agent State issue

    Hi
    We have UCCE 8.0(1) Environment, We have an issue in Webview like one single agent state is always TALKING even if he loggedout. We could see the Active-Skill-group is DEFAULT_5342. We tried that paticular extension unregister state still the same..
    We deleted that agent id in AW and still same. We checked for any event logs in CTI Server, there was no events, We have restarted the CTI Server, still the agent state showing as TALKING and the Duration is 360 hours. Does anyone have any suggestions
    Regards
    Senthil

    In order to recover from this, you'll likely need to cycle the PG for the site (both sides stopped at the same time & brought up clean, or via an opctest: exit_opc).
    To perform true root cause analysis, you'd likely need to enable some tracing on the PG & get logs from when the processes restart clean, all the way until you see this 'ghost agent'.
    TAC could help you with the trace settings but I'd think "opctest: debug /agent" would be a good start.
    Good luck.

Maybe you are looking for