CLOB data issue while select
Hi All,
I have a clob colum below
select dbms_lob.substr(my_columnname,4000,1) from my_table
it gives below error
ORA-06502: PL/SQL: numeric or value error: character string buffer too small
ORA-06512: at line 1
whats the solution ?
Rgds
s
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
NLS_CHARACTERSET = 'EE8MSWIN1250'
NLS_NCHAR_CHARACTERSET = 'AL16UTF16'
insert into clob_gtt
select lpad('@',4000,'@') from dual
update clob_gtt
set clob_column = clob_column || lpad('#',4000,'#')
select dbms_lob.substr(clob_column,10,3996) junction
,dbms_lob.getlength(clob_column) len_0
,length(dbms_lob.substr(clob_column,3998,1)) len_1
,length(dbms_lob.substr(clob_column,3999,1)) len_2
,length(dbms_lob.substr(clob_column,4000,1)) len_3
-- ,length(dbms_lob.substr(clob_column,4001,1)) len_4 /* ORA-06502: PL/SQL: numeric or value error: character string buffer too small */
from clob_gtt
JUNCTION LEN_0 LEN_1 LEN_2 LEN_3
@@@@@##### 8000 3998 3999 4000Regards
Etbin
Similar Messages
-
Performance issue while selecting material documents MKPF & MSEG
Hello,
I'm facing performance issues in production while selecting Material documents for Sales order and item based on the Sales order Stock.
Here is the query :
I'm first selecting data from ebew table which is the Sales order Stock table then this query.
IF ibew[] IS NOT INITIAL AND ignore_material_documents IS INITIAL.
* Select the Material documents created for the the sales orders.
SELECT mkpf~mblnr mkpf~budat
mseg~matnr mseg~mat_kdauf mseg~mat_kdpos mseg~shkzg
mseg~dmbtr mseg~menge
INTO CORRESPONDING FIELDS OF TABLE i_mseg
FROM mkpf INNER JOIN mseg
ON mkpf~mandt = mseg~mandt
AND mkpf~mblnr = mseg~mblnr
AND mkpf~mjahr = mseg~mjahr
FOR ALL entries IN ibew
WHERE mseg~matnr = ibew-matnr
AND mseg~werks = ibew-bwkey
AND mseg~mat_kdauf = ibew-vbeln
AND mseg~mat_kdpos = ibew-posnr.
SORT i_mseg BY mat_kdauf ASCENDING
mat_kdpos ASCENDING
budat DESCENDING.
ENDIF.
I need to select the material documents because the end users want to see the stock as on certain date for the sales orders and only material document lines can give this information. Also EBEW table gives Stock only for current date.
For Example :
If the report was run for Stock date 30th Sept 2008, but on the 5th Oct 2008, then I need to consider the goods movements after 30th Sept and add if stock was issued or subtract if stock was added.
I know there is an Index MSEG~M in database system on mseg, however I don't know the Storage location LGORT and Movement types BWART that should be considered, so I tried to use all the Storage locations and Movement types available in the system, but this caused the query to run even slower than before.
I could create an index for the fields mentioned in where clause , but it would be an overhead anyways.
Your help will be appreciated. Thanks in advance
regards,
AdvaitHi Thomas,
Thanks for your reply. the performance of the query has significantly improved than before after switching the join from mseg join mkpf.
Actually, I even tried without join and looped using field symbols ,this is working slightly faster than the switched join.
Here are the result , tried with 371 records as our sandbox doesn't have too many entries unfortunately ,
Results before switching the join 146036 microseconds
Results after swithing the join 38029 microseconds
Results w/o join 28068 microseconds for selection and 5725 microseconds for looping
Thanks again.
regards,
Advait -
Dates issue while running ETL in DAC
Hello all,
I am trying to do a load from EBS12 into OBI Applications..everytime there is a task that uses a date, I am getting a date error...I changed the dates in dac..I tryied with runtime or static..I changed the configuration of my date to yyyy-mm-dd and nothing ever changes...
Those are the messages from the log:
DIRECTOR> VAR_27028 Use override value DataWarehouse for session parameter:[$DBConnection_OLAP|http://forums.oracle.com/forums/].
DIRECTOR> VAR_27028 Use override value [ODBC_ORA|http://forums.oracle.com/forums/] for session parameter:[$DBConnection_OLTP|http://forums.oracle.com/forums/].
DIRECTOR> VAR_27028 Use override value [9] for mapping parameter:[http://mplt_sa_ora_codes.$$datasource_num_id/].
DIRECTOR> VAR_27028 Use override value --09/25/2008-- for mapping parameter:[http://mplt_bc_ora_codes_sales_picktype.$$last_extract_date/].
WRITER_1_*_1> WRT_8124 Target Table W_CODE_D :SQL UPDATE statement:
UPDATE W_CODE_D SET SOURCE_CODE_1 = ?, SOURCE_CODE_2 = ?, SOURCE_CODE_3 = ?, SOURCE_NAME_1 = ?, SOURCE_NAME_2 = ?, MASTER_DATASOURCE_NUM_ID = ?, MASTER_CODE = ?, MASTER_VALUE = ?, W_INSERT_DT = ?, W_UPDATE_DT = ?, TENANT_ID = ? WHERE DATASOURCE_NUM_ID = ? AND SOURCE_CODE = ? AND CATEGORY = ? AND LANGUAGE_CODE = ?
WRITER_1_*_1> WRT_8124 Target Table W_CODE_D :SQL DELETE statement:
DELETE FROM W_CODE_D WHERE DATASOURCE_NUM_ID = ? AND SOURCE_CODE = ? AND CATEGORY = ? AND LANGUAGE_CODE = ?
WRITER_1_*_1> WRT_8270 Target connection group #1 consists of target(s) [W_CODE_D|http://forums.oracle.com/forums/]
WRITER_1_*_1> WRT_8003 Writer initialization complete.
READER_1_1_1> BLKR_16007 Reader run started.
READER_1_1_1> RR_4029 SQ Instance [http://mplt_bc_ora_codes_sales_picktype.sq_wsh_new_deliveries/] User specified SQL Query [SELECT DISTINCT WSH_NEW_DELIVERIES.DELIVERY_TYPE
FROM
WSH_NEW_DELIVERIES
WHERE
WSH_NEW_DELIVERIES.LAST_UPDATE_DATE > TO_DATE(*'2008-09-25 00:00:00', 'MM/DD/YYYY HH24:MI:SS'*)]
READER_1_1_1> RR_4049 SQL Query issued to database : (Thu Oct 02 15:12:32 2008)
WRITER_1_*_1> WRT_8005 Writer run started.
WRITER_1_*_1> WRT_8158
*****START LOAD SESSION*****
Load Start Time: Thu Oct 02 15:12:32 2008
Target tables:
W_CODE_D
READER_1_1_1> CMN_1761 Timestamp Event: [Thu Oct 02 15:16:11 2008]
READER_1_1_1> RR_4035 SQL Error [
FnName: Fetch Optimize -- [DataDirect][ODBC Oracle Wire Protocol driver]Error in row.
FnName: Fetch Optimize -- [DataDirect][ODBC Oracle Wire Protocol driver][Oracle]ORA-01843: not a valid month
FnName: Fetch Optimize -- [DataDirect][ODBC Oracle Wire Protocol driver]Error in row.
FnName: Fetch Optimize -- [DataDirect][ODBC Oracle Wire Protocol driver][Oracle]ORA-01002: fetch out of sequence
FnName: Fetch Optimize -- [DataDirect][ODBC Oracle Wire Protocol driver]Error in row.
I was never able and I don't know where is the setup for that MM/DD/YYYY that is showing there...that was the first configuration of my date...
Also, I put null on the dates of the SIL_ tasks as stated in the documentation...but nothing changed....
is there anyone who can help me?
thank you very much in advanceYou should start a new thread rather than adding to one that's over 18 months old.
Make sure to include details of your servers, OS, versions, exact error message, etc. -
Data Mismatch while selecting from External Table
Hi I am not able create an external table,I am trying to create and test table and able to create but when i selecting the data it showing data mismatch.I tried for an test data but it returned error.I want to load from an excel file saved as test.csv
CREATE TABLE Per_ext
CITY VARCHAR2(30),
STATE VARCHAR2(20),
ZIP VARCHAR2(10),
COUNTRY VARCHAR2(30)
ORGANIZATION EXTERNAL
TYPE ORACLE_LOADER
DEFAULT DIRECTORY dataload
ACCESS PARAMETERS
MISSING FIELD VALUES ARE NULL
LOCATION ('test.csv')
REJECT LIMIT UNLIMITED;
test.csv file contents
city ---------- state---------Zip------------country
Bombay----- MH------------34324-------india
london-------London------1321---------UK
Pune---------MH------------3224---------india
Banglore---- Karnataka---11313-------india
rgds
soumyaHi Justin
I am getting following error when i trying from toad
ORA-29913: error in executing ODCIEXTTABLEOPEN callout
ORA-29400: data cartridge error
KUP-00554: error encountered while parsing access parameters
KUP-01005: syntax error: found "comma": expecting one of: "badfile, byteordermark, characterset, column, data, delimited, discardfile, exit, fields, fixed, load, logfile, language, nodiscardfile, nobadfile, nologfile, date_cache, processing, readsize, string, skip, territory, variable"
KUP-01007: at line 1 column 29
ORA-06512: at "SYS.ORACLE_LOADER", line 19
rgds
soumya -
Issue while selecting XMLType column in Oracle 10G
HI All.
We are trying to get some value from XML Type column and it works fine with Oracle 11g, we are trying the same with Oracle 10g but it fails with below stack Trace . looking at the stack Trace we feel it is the issue with ODP.net ,
we have below oracle Versions installed in our Server .
Oracle Data Access Components --- 10.2.0.2.21
Oracle Database 10g Release 2 Patch Set 3 --- 10.2.0.4.0
Kindly let us know if it is specific to any ODP.net issue, or anyone has some sought of work around to resolve this issue .
-----------Stack Trace --------------------------------------------------------
Message: Exception has been thrown by the target of an invocation.
StackTrace: at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Web.Services.Protocols.LogicalMethodInfo.Invoke(Object target, Object[] values)
at System.Web.Services.Protocols.WebServiceHandler.Invoke()
at System.Web.Services.Protocols.WebServiceHandler.CoreProcessRequest()
at System.Web.Services.Protocols.SyncSessionlessHandler.ProcessRequest(HttpContext context)
at System.Web.Script.Services.ScriptHandlerFactory.HandlerWrapper.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
at System.Web.HttpApplication.ApplicationStepManager.ResumeSteps(Exception error)
at System.Web.HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)
at System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
at System.Web.HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr)
at System.Web.Hosting.ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)
InnerException: System.AccessViolationException
Message: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
StackTrace: at Oracle.DataAccess.Types.OpsXmlStream.GetValueBuffer(IntPtr opsConCtx, IntPtr opsErrCtx, IntPtr opsXmlTypeCtx, IntPtr& opsXmlStreamValueBuffer, Int32& numCharsInBuffer)
at Oracle.DataAccess.Client.OracleDataReader.GetString(Int32 i)
at Oracle.DataAccess.Client.OracleDataReader.GetValue(Int32 i)
at Oracle.DataAccess.Client.OracleCommand.ExecuteScalar()
at ProVation.DataAccess.CProvDatabase.GetScalar(SQLText& sql, Object& returnval, String& user)
at ProVation.DataAccess.CProvDatabase.GetScalar(SQLText& sql, String& returnval, String defaultvalue, String& user)
at ProVation.BusinessRules.ConfigsBR.GetDocumentXML(String specialty, Boolean isProvationXML, Boolean isEdit)
at ProVation.BusinessRules.ConfigsBR.GetTreeXML(String terminal, String site, String speciality, DataSet& ds, DataSet& dsXML)
at WKOSAWS.GetTreeXML(String terminal, String key, String strSpeciality, String strSite, DataSet& dsSpeciality) in c:\inetpub\wwwroot\WKOSAWS\App_Code\WKOSAWS.cs:line 207
Thanks in Advance
SurenThanks Alex .
We will try to Install ODP.NET 11.2 Release 5 and proceed further .
Thanks,
Suren -
Date issue while transfering pics from macbook to external drive
Hello
I am transferring pictures from my Macbook to an external hard drive and my issue is that the date of the picture (date of creation/modified) is being replaced by the date of the transfer… So let say that all my 2013 pictures have now the date of today – 19th June 2014. I tried to drag the pics as well as to export them but I am getting the same issue. I am doing transfers regularly and it is the first time I encounter this issue. Funnily enough it works when I drag one picture at a time but not for more than 3 pictures – very weird. Your help will be very appreciated !There are two kinds of metadata involved when you consider jpeg or other image file.
One is the file data. This is what the Finder shows. This tells you nothing about the contents of the file, just the File itself.
The problem with File metadata is that it can easily change as the file is moved from place to place or exported, e-mailed, uploaded etc.
Photographs have also got both Exif and IPTC metadata. The date and time that your camera snapped the Photograph is recorded in the Exif metadata. Regardless if what the file date says, this is the actual time recorded by the camera.
Photo applications like iPhoto, Aperture, Lightroom, Picasa, Photoshop etc get their date and time from the Exif metadata.
When you export from iPhoto to the Finder new file is created containing your Photo (and its Exif). The File date is - quite accurately - reported as the date of Export.
However, the Photo Date doesn't change.
The problem is that the Finder doesn't work with Exif.
So, your photo has the correct date, and so does the file, but they are different things. To sort on the Photo date you'll need to use a photo app. -
Date Issue while creating Activity using BAPI_ACTIVITYCRM_CREATEMULTI
Hi,
I'm creating an activity using BAPI BAPI_ACTIVITYCRM_CREATEMULTI and this is working fine. The only thing which is not reflecting in the activity is the date which I'm passing to this BAPI. The system always puts the default date, which is system date.
Below are the parameters I'm passing in DATE and DATEX parameters of BAPI_ACTIVITYCRM_CREATEMULTI. Let me know if I'm doing something wrong.
Can someone help me? Any help in resolving this would be appreciated and rewarded with points. Thanks!
lt_date-ref_handle = lt_header-handle. "handle for activity
lt_date-ref_kind = 'A'. "Adm header
lt_date-appt_type = 'ORDERACTUAL'. "Order actual date type
lt_date-date_from = '20060120'. "e.g.
lt_date-time_from = '1200000'. "e.g.
lt_date-date_to = '20060120'."e.g.
lt_date-time_to = '1200000'. "e.g.
lt_date-show_local = 'X'.
lt_date-mode = 'A'."Create
lt_datex-ref_handle = 'X'.
lt_datex-ref_kind = 'X'.
lt_datex-appt_type = 'X'.
lt_datex-date_from = 'X'.
lt_datex-time_from = 'X'.
lt_datex-date_to = 'X'.
lt_datex-time_to = 'X'.
lt_datex-show_local = 'X'.
lt_datex-mode = 'X'.
append: lt_date, lt_datex.
Regards,
SandeepHi,
Here is a sample code for you.
*& Report YAM_TEST_CONT_END_DATE *
REPORT yam_test_cont_end_date .
DATA: lit_header_guid TYPE crmt_object_guid_tab,
lit_appointment TYPE crmt_appointment_comt,
lit_status_comt TYPE crmt_status_comt,
wa_status_comt LIKE LINE OF lit_status_comt.
DATA : lit_ret TYPE TABLE OF bapiret2,
lit_obj_to_save TYPE TABLE OF bapibus20001_guid_dis,
lit_saved_obj TYPE TABLE OF bapibus20001_object_id.
DATA: lv_header_guid TYPE crmt_object_guid,
lv_item_guid TYPE crmt_object_guid,
lv_timestamp(15) TYPE c.
DATA: lit_fname TYPE crmt_input_field_names_tab,
wa_fname TYPE crmt_input_field_names.
DATA: lit_input TYPE crmt_input_field_tab,
wa_input TYPE crmt_input_field.
DATA: wa_appointment TYPE crmt_appointment_com,
wa_logical_date_key TYPE crmt_date_logical_date_key.
CONSTANTS: lc_end TYPE crmt_apptype VALUE 'CONTEND',
lc_appt TYPE crmt_fieldname VALUE 'APPT_TYPE',
lc_from TYPE crmt_fieldname VALUE 'TIMESTAMP_FROM',
lc_to TYPE crmt_fieldname VALUE 'TIMESTAMP_TO',
lc_obj TYPE crmt_object_name VALUE 'APPOINTMENT',
lc_tzone_from(13) TYPE c VALUE 'TIMEZONE_FROM',
lc_tzone_to(11) TYPE c VALUE 'TIMEZONE_TO'.
PARAMETER: p_objid TYPE crmt_object_id.
START-OF-SELECTION.
* Get the HEADER GUID for the Contract Number
SELECT SINGLE guid
INTO lv_header_guid
FROM crmd_orderadm_h
WHERE object_id EQ p_objid.
CHECK sy-subrc EQ 0.
* Get the Item GUID for the HEADER GUID
SELECT SINGLE guid
INTO lv_item_guid
FROM crmd_orderadm_i
WHERE header EQ lv_header_guid.
CHECK sy-subrc EQ 0.
APPEND lv_header_guid TO lit_header_guid.
APPEND lv_header_guid TO lit_obj_to_save.
* Convert System date and time to timestamp
CONCATENATE sy-datum sy-uzeit INTO lv_timestamp.
* Setting Contract End Date
MOVE: lv_item_guid TO wa_appointment-ref_guid,
'B' TO wa_appointment-ref_kind,
'CONTEND' TO wa_appointment-appt_type,
lv_timestamp TO wa_appointment-timestamp_from,
lv_timestamp TO wa_appointment-timestamp_to,
sy-zonlo TO wa_appointment-timezone_to,
sy-zonlo TO wa_appointment-timezone_from.
* Filling the Input Fields for Appointment
wa_fname-fieldname = lc_appt.
INSERT wa_fname INTO TABLE lit_fname.
CLEAR: wa_fname.
wa_fname-fieldname = lc_from.
INSERT wa_fname INTO TABLE lit_fname.
CLEAR: wa_fname.
wa_fname-fieldname = lc_to.
INSERT wa_fname INTO TABLE lit_fname.
CLEAR: wa_fname.
wa_fname-fieldname = lc_tzone_from.
INSERT wa_fname INTO TABLE lit_fname.
CLEAR: wa_fname.
wa_fname-fieldname = lc_tzone_to.
INSERT wa_fname INTO TABLE lit_fname.
CLEAR: wa_fname.
wa_logical_date_key-appt_type = lc_end.
MOVE: lv_item_guid TO wa_input-ref_guid,
'B' TO wa_input-ref_kind,
lc_obj TO wa_input-objectname,
wa_logical_date_key TO wa_input-logical_key,
lit_fname TO wa_input-field_names.
APPEND wa_input TO lit_input.
CLEAR: wa_input, wa_logical_date_key.
APPEND wa_appointment TO lit_appointment.
CALL FUNCTION 'CRM_ORDER_MAINTAIN'
EXPORTING
it_appointment = lit_appointment
it_status = lit_status_comt
CHANGING
ct_input_fields = lit_input
EXCEPTIONS
error_occurred = 1
document_locked = 2
no_change_allowed = 3
no_authority = 4
OTHERS = 5.
CHECK sy-subrc EQ 0.
* Saving the items alone
CALL FUNCTION 'BAPI_BUSPROCESSND_SAVE'
TABLES
objects_to_save = lit_obj_to_save
saved_objects = lit_saved_obj
return = lit_ret.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
<b>Reward points if it helps.</b>
Regards,
Amit Mishra -
Issue while selecting the LOCL printer for printing the form
Hi all,
I have created the PO form and it is working fine.
I am facing one strange issue.
I am displaying the PIR text and item text in the form.
When i do the print preview the PIR text and Item text is displayed but when i create the spool for the same PO by
giving the printer as LOCL these text is not displayed.
I am not getting why it is coming when i do the print preview and why it is not coming while creating the spool.
Kindly help.Hi,
You did not specified the form Type whether it is a smart form or Adobe form.
If it is the Adobe form LOCL is not supported if the printer specified to LOCL is not supporting the PDF forms.
Better use LP01 or any other Printer which support the PDF forms.
Thanks.
UmaS. -
Date issue while saving a record
Hi,
I have a standard report/form page. On form page I have a date field of type Datepicker and display format is DD/MM/YYYY. When I am trying save data it comes up with following error:
ORA-20505: Error in DML: p_rowid=1, p_alt_rowid=REQUEST_ID, p_rowid2=, p_alt_rowid2=. ORA-01830: date format picture ends before converting entire input string
Error Unable to process row of table RP_REQUESTS_TB.
OKHow can I resolve this? Can't figure it out?
Can anyone help me please?
FYI - I am using Apex V3.2 on FF v5.0 & IE v7
Kind Regards,
BhavinHi,
Thanks for your prompt reply.
I only have 2 processes, which have been created automatically.
(1) Process Row of RP_REQUESTS_TB Automatic Row Processing (DML) Unconditional
(2) reset page Clear Cache for all Items on Pages (PageID,PageID,PageID) Conditional
Kind Regards,
Bhavin -
Error while loading data into clob data type.
Hi,
I have created interface to load data from oracle table into oracle table.In target table we have attribute with clob data type. while loading data into clob field ODI gave below error. I use odi 10.1.3.6.0
java.lang.NumberFormatException: For input string: "4294967295"
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
Let me know if anyone come across and resolved this kind of issue.
Thanks much,
Nishit GajjarMr. Gajjar,
You didnt mention what KMs you are using ?
have a read of
Re: Facing issues while using BLOB
and
Load BLOB column in Oracle to Image column in MS SQL Server
Try again.
And can you please mark the Correct/Helpful points to the answers too.
Edited by: actdi on Jan 10, 2012 10:45 AM -
Convert CLOB to XMLType in SELECT statement ?
Hi XML Xperts,
In my Oracle 9.2.0.3 I have 1 table (tab1) with 2 cols (col1 as XMLType and col2 as CLOB). I Inserted in both fields the following same XML data :
<?xml version="1.0"?>
<TABLE_NAME>MY_TABLE</TABLE_NAME>
With the following statement, I can get the data from col1 which is a XMLType column :
SELECT a.col1.extract('//TABLE_NAME/text()').getStringVal() AS "Table Name"
FROM tab1 a
WHERE a.col1.existsNode('/TABLE_NAME') = 1;
How to get the same data FROM col2 whcih is a CLOB column ? Is it possible to transform the CLOB to XMLType in the SELECT statement ?
Note : I cannot change the type of the colulmn col2 to XMLType
Thanks in advance.
PhilI tested it in 10g and it seems to be OK.
create table clobtoxml(xmldata clob);
insert into clobtoxml
values('<RootE><FirstNode>This is CLOB data to XML</FirstNode></RootE>');
commit;
select sys.xmltype(xmldata).extract('/RootE/FirstNode/text()').getStringVal() from clobtoxml;
This is CLOB data to XML
select sys.xmltype(xmldata).extract('/*') from clobtoxml;
<RootE>
<FirstNode>This is CLOB data to XML</FirstNode>
</RootE>
Ben -
Error in selection of clob data
Hello Everyone
I am running a select on a hana table which contains clob data. But i receive some notification regrading persistence
Could not complete result operation. SAP DBTech JDBC: [21]: persistence error: exception 70029020: ltt::exception caught while operating on DISK_NCLOB:2:1090921698160exception 1000002: Allocation failed ; $size$=10485760; $name$=PersistenceLayer; $type$=pool; $inuse_count$=6580; $allocated_size$=5444213184 at function __copy__()
Does anyone have any idea to tackle this issue?
Thanks in Advance
Best Regards
VivekHi Vivek,
It seems a memory issue while fetching the information - Allocation failed ; $size$=10485760; $name$=PersistenceLayer; $type$=pool; $inuse_count$=6580; $allocated_size$=5444213184
I would suggest:
1. To fetch a small set of information, if the the current is very large, to ensure it is indeed a memory issue.
2. If it is a memory issue, memory parameters in the Administration Console will need to be changed.
Let me know.
Regards,
kG -
How can you SELECT via Database Link CLOB data using Application Express?
Customer Issue:
Developer using Oracle's Application Express 3.1. The Developer is trying to SELECT a CLOB datatype column from a remote (10.2.0.3) database, via a database link on her 10.2.0.4 based client Application. The Developer wants to be able to select CLOB data from the remote database which has limitation that she can't make any changes to the remote database.
Developer's Comments:
I do a select and get the error. Getting error ORA-22992: cannot use LOB locators selected from remote tables. So she feels she can't use dbms_lob.substr in this configuration I can do a "select into" but that is for one value. I am trying to run a select statement for a report that brings back more than one row. I do not have permission to change anything on the remote database. I want to access the remote database and multiple tables.
This is not something I work with, would greatly appreciate help or ideas. Is this a limitation of the 3.1; or does she just not have this set up correctly; or should she be using a Collection (if yes, please share example)
Thanks very much,
Pam
Edited by: pmoutrie on Jun 4, 2009 12:01 PM
Hello???
Would really appreciate an answer.
Thanks,
PamThis may not be a perfect solution for you but it worked for my situation.
I wanted to grab some data from Grid Control's MGMT$JOB_STEP_HISTORY table but I couldnt' create an Interactive Report due to the existance of a CLOB column. I cheated this by creating a view on the GC DB, grabbing the first 4000 characters and turning it into a varchar2 column:
create view test_job_step_history as
select job_Name, target_name, status, start_time, end_time, to_char(substr(output,1,4000)) output
from MGMT$JOB_STEP_HISTORY where trunc(end_time) > trunc(sysdate)-90
In an APEX Interactive Report:
select * from test_job_step_history@GCDB
Granted, the output looks aweful right now but I am only looking for a very particular output (failed, denied, ORA-, RMAN-, etc) so the formatting isn't the most important thing to me right now.
If anyone can improve -- and I'm sure you can -- on this I'd love to hear about it.
Thanks,
Rich -
Issue while insert and update data to DB tables
Hello all,
i am having an issue while insert the data to DB table.
my scenario is DB1 to DB2. i had a sender channel with select query which fetches data from DB1 and inserts to DB2.
so the select query will fetch the records that were INSERTED to DB1 and records that were UPDATED to DB1 and needs to insert/update to DB2 table.
Now the issue is i am able to insert the records but not able toupdate the records to DB2 table due to primary key issue.
im message mapping
sender message type is as follows:
<src_message1>
----<row>
-------<fieldA>
-------<filedB>
-------<filedC>
Receiver message type as follows:
<trgt_message1>
----<STATEMENT_1>
----<TABLE_NAME>
----<ACTION> INSERT
----<TABLE>
----<ACCESS>
----<field1> primary key
----<field2>
----<field3>
----<field4>
----<KEY>
----<field1>
----<field2>
----<field3>
----<field4>
my query in sender channel is : select filedA, filedB, filedC from test_table where createdate=sysdate or updatedate=sysdate
so it feteches the data from DB1 and inserting to DB2 but not updating the records to DB2 due to primarykey issue.
please suggest how to solve ....will it solve by using UPDATE_INSERT for action?
Best Regards,SARANHi Nagarjuna,
i have done the following changes to target mapping structure;
1. action as UPDATE_INSERT
2. in access tab, i had mapped fieldDate to field4.
3. in Key tab, i assigned the sysdate to field4.
but issue still exist. could you please check my above changes are correct or not. if wrong please provide me the details that needs to be done.
thanks in advance.
i'm providing the error details again:
my query in sender channel is : select filedA, filedB, filedC, FiledDate from TEST_TABLE where fieldDate=sysdate or updatedate=sysdate
it returns 4 records as follows:
fieldA--fieldB-fieldC---fieldDate
1001----EU---- 1----
2011-11-10
1002----CN---- 0----
2011-11-10
1003----AP---- 1----
2008-03-15 (already exist in DB2)
1004----JP---- 1----
2007-04-12 (already exist in DB2)
the first two records are created today and remaining 2 records are updated the fieldC from 0 to 1 ( in DB1 )
while inserting these 4 records to DB2, we get the following error "java.sql.SQLException: ORA-00001: unique constraint (data.TEST_TABLE_PK) violated" .
Best Regards,SARAN -
Hi,
I am using PHP4.4 and Oracle 10g for my research work. I defined 'protein_seq' field as CLOB in a table. I uploaded data into it using sqlloader.
Now, I want to display the value of that field based on user requirements. When i did like this, I am getting 'Object' as value instead of original value.
$s4 = OCIParse($conn, "select * from protein_uniprot where uniprot_id LIKE '$protein%'");
OCIExecute($s4, OCI_DEFAULT);
while (OCIFetch($s4)) {
$proteinseq = OCIResult($s4, "PROTEIN_SEQ");
echo $proteinseq;
Could you please help me how to fetch CLOB data from oracle table using PHP.
Thanks,
Rani.convert the lob column to varchar2. Use [dbms_lob |http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_lob.htm#BABEEAAH] package to convert
select dbms_lob.SUBSTR(column,2000,1) from table- - - - - - - - - - - - - - - - - - - - -
Kamran Agayev A. (10g OCP)
http://kamranagayev.wordpress.com
Maybe you are looking for
-
How can I set the HDMI output to 1366x768?
1024x768 is an option from the ATV to the HDMI Port. But my TV is 16:9 and has the resolution of 1366x768 when I plug a computer into the HDMI port. If 1366x768 is not currently possible from the ATV, could apple be so kind as to add it, thanks, Jona
-
Does DB 11g runInstaller really run on OEL5.3?
Thanks to help here on the forum, I've gotten OEL 5.3 running on my new machine uname -a Linux otm.58bluespruce.com 2.6.18-128.1.14.0.1.el5 #1 SMP Tue Jun 16 19:44:55 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux I'm now trying to install 11.1.0.6 on the b
-
Unable to deploy BPEL from jdeveloper 11g
Hi I tried to deploy a simple bpel project from jdeveloper 11g to SOA 11g but i get the following error in the jdeveloper.. Buildfile: D:\software\JDeveloper 111100\jdeveloper\bin\ant-sca-compile.xml scac: [scac] Validating composite : 'D:\software\J
-
Screenshot Pimp 6 causing browser slowdowns Just an FYI...
Just an FYI for anyone whose experiencing page freezes when loading images and has Screenshot Pimp installed. OK... to start im using w2k pro... believe it or not!! Never liked XP much and vista...FORGET IT! Now testing the w8 developers preview. SOO
-
Change the status of Excise invoice from deleted
Hi, In the transaction J1IEX, we have canceled one excise invoice by mistake. This Excise invoice was actually meant to be posted. What can be done now to post the excise invoice now in the system? Please help....... Regards,