Can't set long value when I type the value in
I don't work with long values much so I don't know if I'm missing something but I'm working on a Java program that needs to get the last modified dates from files and see if they've been updated since the last run. Well the date it returns is long. I set a long variable and when I tried to type in the value of a file I get an integer number too large error. This is a direct paste of the last modified date on one of the files. However, if I tell the variable to equal the files date it works fine. What am I missing?
long oldTime = 1169806999093;
File tempFile = new File("C:\\cygwin");
oldTime = tempFile.lastModified();
You must tell the compiler that the thing on the right hand side is a long literal rather than an int literal:
long oldTime = 1169806999093LL; // notice the L at the end
Similar Messages
-
ORA-01461: can bind a LONG value ... Please hlep ASAP
In my java code I try to update a table in the db like this:
"ps = conn.prepareStatement("update dg_log set ISUPDATED=1,CAUser=?
where qnum =? and cid !=3"); "
and when i tried to bind a variables to one of the fields like that:
" ps.setString(1,"32");
ps.setString(2,"3");"
On my local Oracle 8.1.5 db these statement work fine.
When I conncted to Oracle 8.1.6 I encountered this problem :
"ORA-01461: can bind a LONG value only for insert into a LONG
column"
This is caused because the binded variable is of type :NUMBER.
I do not wont to use setInt()
Is there any way to config the Oracle the he will do the translation string to number?
nullNop, it didn't make any difference.
"Sree Bodapati" <[email protected]> wrote in message
news:3d2edd39$[email protected]..
Can you try to turn off the PreparedStatement cache by placing
PreparedStatementCacheSize=0
in the properties of the pool and see if it helps.
sree
"erj" <[email protected]> wrote in message
news:[email protected]..
Hi guys,
I am trying to use a prepared statemnt to insert into a table that has
two
fields. One is Char(3) -From field- and the second is Varchar2(8) -user
field.
My code looks like :
lstrSQL = "INSERT INTO Table1( ID, From, DateAdded, USer) VALUES
(TheInsertSeq.nextVal,? , sysdate, ?) ";
ps = con.prepareCall(lstrSQL);
String Temp1 = "dee";
ps.setString(1, Temp1);
String Temp2="abcde";
ps.setString(2, Temp2);
retVal = ps.executeUpdate();
But after the execute statement I get the error:
ORA-01461: can bind a LONG value only for insert into a LONG column
I am using Weblogic Server 6.1 SP2 and Oracle 8.1.7. The database is in
AMERICAN_AMERICA.WE8ISO8859P9 and in the startweblogic.cmd file I use:
set NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P9
The connection pool has properties of:
weblogic.codeset=ISO8859_9
weblogic.oci.min_bind_size=660
weblogic.oci.ncodeset=WE8ISO8859P9
server=OracleServer
user=testUsert
I have tried to run the code over and over, with and without theNLS_LANG
and connection pool settings. I even set NLS_LANG as a systemenvironment
variable. But nothing changed, could someone please give me a hand?
Thanx.
Ercu -
ORA-01461: can bind a LONG value only for insert into a LONG column in 11.2
Hello,
We have been getting the following exception when we try to save an XML (>5k).
SQL state [72000]; error code [1461]; ORA-01461: can bind a LONG value only for insert into a LONG column
This is occurring only for Oracle 11g (11.2.0.1.0)
Our column is CLOB type, not LONG type.
Could anyone please suggest what could be the reason and fix?
Thanks in advance
--Cheers
paruvidThanks for quick response!!
Inserting throw JDBC (Spring jdbcTemplate)
using the ojdbc6.jar as driver
here is the stask strace
Caused by: org.springframework.jdbc.UncategorizedSQLException: PreparedStatementCallback; uncategorized SQLException for SQL [INSERT INTO tabl1(c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11, c12, c13, c14, c15,c16(CLOBCOL),c17, c18, c19) SELECT c1,c2, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? FROM table2 S JOIN table1 D ON S.c1 = D.c1 WHERE S.c2 = ? AND D.c5 = ? GROUP BY S.c1];
SQL state [72000]; error code [1461]; ORA-01461: can bind a LONG value only for insert into a LONG column
; nested exception is java.sql.SQLException: ORA-01461: can bind a LONG value only for insert into a LONG column
at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:83)
at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:80)
at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:80)
at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:602)
at org.springframework.jdbc.core.JdbcTemplate.update(JdbcTemplate.java:786)
at org.springframework.jdbc.core.JdbcTemplate.update(JdbcTemplate.java:842)
at org.springframework.jdbc.core.JdbcTemplate.update(JdbcTemplate.java:846)
at com.smartstream.cms.message.dao.SSIMessageDao.editSSIInstance(SSIMessageDao.java:522)
... 52 more
Caused by: java.sql.SQLException: ORA-01461: can bind a LONG value only for insert into a LONG column
Edited by: paruvid on Aug 9, 2011 5:07 AM
Edited by: paruvid on Aug 9, 2011 5:17 AM
Edited by: paruvid on Aug 9, 2011 5:23 AM -
ORA-01461: can bind a LONG value only for insert into a LONG Classic Report
I am trying to create a report but get a ORA-01461: can bind a LONG value only for insert into a LONG column error. I am a fairley new to Apex and my SQL skills are far from expert level. I have 3 groups we will call 'A' 'B' 'C'. 'A' is the best group 'B' is the next best and 'C' is the lowest group. Let say there are 5 people they all want to be in group A but where they are placed is based on their audition score and the users selection.
Joe score is 50
Beth 40
John 30
Ken 20
Sally 10
The user selects that he wants 2 people in group 'A' and 1 in group 'B' and 2 in group C. The SQL needs to rank Joe and Beth in Group A. John in group 'B' and Ken and Sally in group 'C'. The user does this type of selection for about 15 different instrument groups to make up group (band) for 'A', 'B', and 'C'.
Here is what I have come up with that gives me the error mention above when creating a report but works in SQL developer. There is probably a far better way to write this than what I have. I am open to suggestions. Band 'A' SQL example is for all instruments. SQL's for 'B' and 'C' are just a samples of the whole thing.
SQL for Band 'A'
SELECT lname,fname,instrument,total
FROM
(SELECT lname, fname, a.instrument, a.total, DENSE_RANK() OVER
( ORDER BY a.total DESC,a.ID NULLS LAST) AS Stu_Rank
FROM band_students, festival_records A
JOIN festival_records B on a.ID = b.ID
where band_students.id = a.ID
and a.instrument = 'Piccolo'
and a.festival_year = ':P6_YEAR'
ORDER BY total, a.ID DESC NULLS LAST)
WHERE Stu_Rank <= (select hb_piccolo from festival_years
where year = ':P6_YEAR')
UNION ALL
SELECT lname,fname,instrument,total
FROM
(SELECT lname, fname, a.instrument, a.total, DENSE_RANK() OVER
(ORDER BY a.total DESC,a.ID NULLS LAST) AS Stu_Rank
FROM band_students, festival_records A
JOIN festival_records B on a.ID = b.ID
where band_students.id = a.ID
and a.instrument = 'Flute'
and a.festival_year = ':P6_YEAR'
ORDER BY total, a.ID DESC NULLS LAST)
WHERE Stu_Rank <= (select hb_Flute from festival_years
where year = ':P6_YEAR')
UNION ALL
SELECT lname,fname,instrument,total
FROM
(SELECT lname, fname, a.instrument, a.total, DENSE_RANK() OVER
(ORDER BY a.total DESC,a.ID NULLS LAST) AS Stu_Rank
FROM band_students, festival_records A
JOIN festival_records B on a.ID = b.ID
where band_students.id = a.ID
and a.instrument = 'Oboe'
and a.festival_year = ':P6_YEAR'
ORDER BY total, a.ID DESC NULLS LAST)
WHERE Stu_Rank <= (select hb_Oboe from festival_years
where year = ':P6_YEAR')
UNION ALL
SELECT lname,fname,instrument,total
FROM
(SELECT lname, fname, a.instrument, a.total, DENSE_RANK() OVER
(ORDER BY a.total DESC,a.ID NULLS LAST) AS Stu_Rank
FROM band_students, festival_records A
JOIN festival_records B on a.ID = b.ID
where band_students.id = a.ID
and a.instrument = 'English_Horn'
and a.festival_year = ':P6_YEAR'
ORDER BY total, a.ID DESC NULLS LAST)
WHERE Stu_Rank <= (select hb_Englishhorn from festival_years
where year = ':P6_YEAR')
UNION ALL
SELECT lname,fname,instrument,total
FROM
(SELECT lname, fname, a.instrument, a.total, DENSE_RANK() OVER
(ORDER BY a.total DESC,a.ID NULLS LAST) AS Stu_Rank
FROM band_students, festival_records A
JOIN festival_records B on a.ID = b.ID
where band_students.id = a.ID
and a.instrument = 'English_Horn'
and a.festival_year = ':P6_YEAR'
ORDER BY total, a.ID DESC NULLS LAST)
WHERE Stu_Rank <= (select hb_Englishhorn from festival_years
where year = ':P6_YEAR')
UNION ALL
SELECT lname,fname,instrument,total
FROM
(SELECT lname, fname, a.instrument, a.total, DENSE_RANK() OVER
(ORDER BY a.total DESC,a.ID NULLS LAST) AS Stu_Rank
FROM band_students, festival_records A
JOIN festival_records B on a.ID = b.ID
where band_students.id = a.ID
and a.instrument = 'Clarinet_Eflat'
and a.festival_year = ':P6_YEAR'
ORDER BY total, a.ID DESC NULLS LAST)
WHERE Stu_Rank <= (select hb_Clarineteflat from festival_years
where year = ':P6_YEAR')
UNION ALL
SELECT lname,fname,instrument,total
FROM
(SELECT lname, fname, a.instrument, a.total, DENSE_RANK() OVER
(ORDER BY a.total DESC,a.ID NULLS LAST) AS Stu_Rank
FROM band_students, festival_records A
JOIN festival_records B on a.ID = b.ID
where band_students.id = a.ID
and a.instrument = 'Clarinet'
and a.festival_year = ':P6_YEAR'
ORDER BY total, a.ID DESC NULLS LAST)
WHERE Stu_Rank <= (select hb_Clarinet from festival_years where year = ':P6_YEAR')
UNION ALL SELECT lname,fname,instrument,total FROM(SELECT lname, fname, a.instrument, a.total, DENSE_RANK() OVER (ORDER BY a.total DESC,a.ID NULLS LAST) AS Stu_Rank FROM band_students, festival_records A JOIN festival_records B on a.ID = b.ID where band_students.id = a.ID and a.instrument = 'Clarinet Bass' and a.festival_year = ':P6_YEAR' ORDER BY total, a.ID DESC NULLS LAST) WHERE Stu_Rank <= (select hb_Clarinetbass from festival_years where year = ':P6_YEAR')
UNION ALL
SELECT lname,fname,instrument,total
FROM
(SELECT lname, fname, a.instrument, a.total, DENSE_RANK() OVER
(ORDER BY a.total DESC,a.ID NULLS LAST) AS Stu_Rank
FROM band_students, festival_records A
JOIN festival_records B on a.ID = b.ID
where band_students.id = a.ID
and a.instrument = 'Clarinet Contrabass'
and a.festival_year = ':P6_YEAR'
ORDER BY total, a.ID DESC NULLS LAST)
WHERE Stu_Rank <= (select hb_Clarinetcontrabass from festival_years
where year = ':P6_YEAR')
UNION ALL
SELECT lname,fname,instrument,total
FROM
(SELECT lname, fname, a.instrument, a.total, DENSE_RANK() OVER
(ORDER BY a.total DESC,a.ID NULLS LAST) AS Stu_Rank
FROM band_students, festival_records A
JOIN festival_records B on a.ID = b.ID
where band_students.id = a.ID
and a.instrument = 'Saxophone Alto'
and a.festival_year = ':P6_YEAR'
ORDER BY total, a.ID DESC NULLS LAST)
WHERE Stu_Rank <= (select hb_Saxophonealto from festival_years
where year = ':P6_YEAR')
UNION ALL
SELECT lname,fname,instrument,total
FROM
(SELECT lname, fname, a.instrument, a.total, DENSE_RANK() OVER
(ORDER BY a.total DESC,a.ID NULLS LAST) AS Stu_Rank
FROM band_students, festival_records A
JOIN festival_records B on a.ID = b.ID
where band_students.id = a.ID
and a.instrument = 'Saxophone Tenor'
and a.festival_year = ':P6_YEAR'
ORDER BY total, a.ID DESC NULLS LAST)
WHERE Stu_Rank <= (select hb_Saxophonetenor from festival_years
where year = ':P6_YEAR')
UNION ALL
SELECT lname,fname,instrument,total
FROM
(SELECT lname, fname, a.instrument, a.total, DENSE_RANK() OVER
(ORDER BY a.total DESC,a.ID NULLS LAST) AS Stu_Rank
FROM band_students, festival_records A
JOIN festival_records B on a.ID = b.ID
where band_students.id = a.ID
and a.instrument = 'Saxophone Bari'
and a.festival_year = ':P6_YEAR'
ORDER BY total, a.ID DESC NULLS LAST)
WHERE Stu_Rank <= (select hb_Saxophonebari from festival_years
where year = ':P6_YEAR')
UNION ALL
SELECT lname,fname,instrument,total
FROM
(SELECT lname, fname, a.instrument, a.total, DENSE_RANK() OVER
(ORDER BY a.total DESC,a.ID NULLS LAST) AS Stu_Rank
FROM band_students, festival_records A
JOIN festival_records B on a.ID = b.ID
where band_students.id = a.ID
and a.instrument = 'Bassoon'
and a.festival_year = ':P6_YEAR'
ORDER BY total, a.ID DESC NULLS LAST)
WHERE Stu_Rank <= (select hb_Bassoon from festival_years
where year = ':P6_YEAR')
UNION ALL
SELECT lname,fname,instrument,total
FROM
(SELECT lname, fname, a.instrument, a.total, DENSE_RANK() OVER
(ORDER BY a.total DESC,a.ID NULLS LAST) AS Stu_Rank
FROM band_students, festival_records A
JOIN festival_records B on a.ID = b.ID
where band_students.id = a.ID
and a.instrument = 'Bassoon Contra'
and a.festival_year = ':P6_YEAR'
ORDER BY total, a.ID DESC NULLS LAST)
WHERE Stu_Rank <= (select hb_Bassooncontra from festival_years
where year = ':P6_YEAR')
UNION ALL
SELECT lname,fname,instrument,total
FROM
(SELECT lname, fname, a.instrument, a.total, DENSE_RANK() OVER
(ORDER BY a.total DESC,a.ID NULLS LAST) AS Stu_Rank
FROM band_students, festival_records A
JOIN festival_records B on a.ID = b.ID
where band_students.id = a.ID
and a.instrument = 'Horn'
and a.festival_year = ':P6_YEAR'
ORDER BY total, a.ID DESC NULLS LAST)
WHERE Stu_Rank <= (select hb_Horn from festival_years
where year = ':P6_YEAR')
UNION ALL
SELECT lname,fname,instrument,total
FROM
(SELECT lname, fname, a.instrument, a.total, DENSE_RANK() OVER
(ORDER BY a.total DESC,a.ID NULLS LAST) AS Stu_Rank
FROM band_students, festival_records A
JOIN festival_records B on a.ID = b.ID
where band_students.id = a.ID
and a.instrument = 'Trumpet'
and a.festival_year = ':P6_YEAR'
ORDER BY total, a.ID DESC NULLS LAST)
WHERE Stu_Rank <= (select hb_Trumpet from festival_years
where year = ':P6_YEAR')
UNION ALL
SELECT lname,fname,instrument,total
FROM
(SELECT lname, fname, a.instrument, a.total, DENSE_RANK() OVER
(ORDER BY a.total DESC,a.ID NULLS LAST) AS Stu_Rank
FROM band_students, festival_records A
JOIN festival_records B on a.ID = b.ID
where band_students.id = a.ID
and a.instrument = 'Trombone'
and a.festival_year = ':P6_YEAR'
ORDER BY total, a.ID DESC NULLS LAST)
WHERE Stu_Rank <= (select hb_Trombone from festival_years
where year = ':P6_YEAR')
UNION ALL
SELECT lname,fname,instrument,total
FROM
(SELECT lname, fname, a.instrument, a.total, DENSE_RANK() OVER
(ORDER BY a.total DESC,a.ID NULLS LAST) AS Stu_Rank
FROM band_students, festival_records A
JOIN festival_records B on a.ID = b.ID
where band_students.id = a.ID
and a.instrument = 'Trombone Bass'
and a.festival_year = ':P6_YEAR'
ORDER BY total, a.ID DESC NULLS LAST)
WHERE Stu_Rank <= (select hb_Trombonebass from festival_years
where year = ':P6_YEAR')
UNION ALL
SELECT lname,fname,instrument,total
FROM
(SELECT lname, fname, a.instrument, a.total, DENSE_RANK() OVER
(ORDER BY a.total DESC,a.ID NULLS LAST) AS Stu_Rank
FROM band_students, festival_records A
JOIN festival_records B on a.ID = b.ID
where band_students.id = a.ID
and a.instrument = 'Euphonium'
and a.festival_year = ':P6_YEAR'
ORDER BY total, a.ID DESC NULLS LAST)
WHERE Stu_Rank <= (select hb_Trombonebass from festival_years
where year = ':P6_YEAR')
UNION ALL
SELECT lname,fname,instrument,total
FROM
(SELECT lname, fname, a.instrument, a.total, DENSE_RANK() OVER
(ORDER BY a.total DESC,a.ID NULLS LAST) AS Stu_Rank
FROM band_students, festival_records A
JOIN festival_records B on a.ID = b.ID
where band_students.id = a.ID
and a.instrument = 'Tuba'
and a.festival_year = ':P6_YEAR'
ORDER BY total, a.ID DESC NULLS LAST)
WHERE Stu_Rank <= (select hb_Tuba from festival_years
where year = ':P6_YEAR')
UNION ALL
SELECT lname,fname,instrument,total
FROM
(SELECT lname, fname, a.instrument, a.total, DENSE_RANK() OVER
(ORDER BY a.total DESC,a.ID NULLS LAST) AS Stu_Rank
FROM band_students, festival_records A
JOIN festival_records B on a.ID = b.ID
where band_students.id = a.ID
and a.instrument = 'Percussion'
and a.festival_year = ':P6_YEAR'
ORDER BY total, a.ID DESC NULLS LAST)
WHERE Stu_Rank <= (select hb_Percussion from festival_years
where year = ':P6_YEAR')
UNION ALL
SELECT lname,fname,instrument,total
FROM
(SELECT lname, fname, a.instrument, a.total, DENSE_RANK() OVER
(ORDER BY a.total DESC,a.ID NULLS LAST) AS Stu_Rank
FROM band_students, festival_records A
JOIN festival_records B on a.ID = b.ID
where band_students.id = a.ID
and a.instrument = 'Piano'
and a.festival_year = ':P6_YEAR'
ORDER BY total, a.ID DESC NULLS LAST)
WHERE Stu_Rank <= (select hb_Piano from festival_years
where year = ':P6_YEAR')
UNION ALL
SELECT lname,fname,instrument,total
FROM
(SELECT lname, fname, a.instrument, a.total, DENSE_RANK() OVER
(ORDER BY a.total DESC,a.ID NULLS LAST) AS Stu_Rank
FROM band_students, festival_records A
JOIN festival_records B on a.ID = b.ID
where band_students.id = a.ID
and a.instrument = 'Violin'
and a.festival_year = ':P6_YEAR'
ORDER BY total, a.ID DESC NULLS LAST)
WHERE Stu_Rank <= (select hb_Violin from festival_years
where year = ':P6_YEAR')
UNION ALL
SELECT lname,fname,instrument,total
FROM
(SELECT lname, fname, a.instrument, a.total, DENSE_RANK() OVER
(ORDER BY a.total DESC,a.ID NULLS LAST) AS Stu_Rank
FROM band_students, festival_records A
JOIN festival_records B on a.ID = b.ID
where band_students.id = a.ID
and a.instrument = 'Viola'
and a.festival_year = ':P6_YEAR'
ORDER BY total, a.ID DESC NULLS LAST)
WHERE Stu_Rank <= (select hb_Viola from festival_years
where year = ':P6_YEAR')
UNION ALL
SELECT lname,fname,instrument,total
FROM
(SELECT lname, fname, a.instrument, a.total, DENSE_RANK() OVER
(ORDER BY a.total DESC,a.ID NULLS LAST) AS Stu_Rank
FROM band_students, festival_records A
JOIN festival_records B on a.ID = b.ID
where band_students.id = a.ID
and a.instrument = 'Cello'
and a.festival_year = ':P6_YEAR'
ORDER BY total, a.ID DESC NULLS LAST)
WHERE Stu_Rank <= (select hb_Cello from festival_years
where year = ':P6_YEAR')
UNION ALL
SELECT lname,fname,instrument,total
FROM
(SELECT lname, fname, a.instrument, a.total, DENSE_RANK() OVER
(ORDER BY a.total DESC,a.ID NULLS LAST) AS Stu_Rank
FROM band_students, festival_records A
JOIN festival_records B on a.ID = b.ID
where band_students.id = a.ID
and a.instrument = 'Bass'
and a.festival_year = ':P6_YEAR'
ORDER BY total, a.ID DESC NULLS LAST)
WHERE Stu_Rank <= (select hb_Cello from festival_years
where year = ':P6_YEAR'
SQL for band 'B'
SELECT lname,fname,instrument, total
FROM
(SELECT lname, fname, instrument, total, RANK() OVER
( ORDER BY instrument,total ASC NULLS LAST) AS Stu_Rank
FROM festival_records, band_students
where band_students.id = festival_records.id
and instrument = 'Piccolo'
and festival_year = '2014'
ORDER BY instrument, total ASC NULLS LAST)
WHERE Stu_Rank < (select hb_piccolo from festival_years
where year = :P6_YEAR)
SQL for band 'C'
SELECT lname,fname,instrument, total
FROM festival_records, band_students
where band_students.id = festival_records.student_id
and instrument = 'Piccolo'
and festival_year = ':P6_YEAR'
minus
SELECT lname,fname,instrument, total
FROM
(SELECT lname, fname, instrument, total, RANK() OVER
( ORDER BY instrument,total DESC NULLS LAST) AS Stu_Rank
FROM festival_records, band_students
where band_students.id = festival_records.student_id
and instrument = 'Piccolo'
and festival_year = ':P6_YEAR'
ORDER BY instrument, total DESC NULLS LAST)
WHERE Stu_Rank < (select hb_piccolo from festival_years
where year = ':P6_YEAR')
SQL>
Welcome to the forum: please read the FAQ and forum sticky threads (if you haven't done so already).
When you have a problem you'll get a faster, more effective response by including as much relevant information as possible upfront. This should include:
<li>Full APEX version
<li>Full DB/version/edition/host OS
<li>Web server architecture (EPG, OHS or APEX listener/host OS)
<li>Browser(s) and version(s) used
<li>Theme
<li>Template(s)
<li>Region/item type(s)
With APEX we're also fortunate to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproducing things there is the best way to troubleshoot most issues, especially those relating to layout and visual formatting. If you expect a detailed answer then it's appropriate for you to take on a significant part of the effort by getting as far as possible with an example of the problem on apex.oracle.com before asking for assistance with specific issues, which we can then see at first hand.
You should also always post code wrapped in <tt>\...\</tt> tags.
I am trying to create a reportWhen asking a question about "reports" it's firstly essential to differentiate between standard and interactive reports. Which is it?
but get a ORA-01461: can bind a LONG value only for insert into a LONG column error.Where and when do you get this error? When creating the report? Or running it?
There's also an obvious bug (repeated many times):
and a.festival_year = ':P6_YEAR'
ORDER BY total, a.ID DESC NULLS LAST)
WHERE Stu_Rank <= (select hb_piccolo from festival_years
where year = ':P6_YEAR')
...<tt>':P6_YEAR'</tt> is a literal string, not a bind variable reference. <tt>':P6_YEAR'</tt> seems an unlikely value for <tt>festival_year</tt> and <tt>year</tt> values. It should be:
and a.festival_year = :P6_YEAR
ORDER BY total, a.ID DESC NULLS LAST)
WHERE Stu_Rank <= (select hb_piccolo from festival_years
where year = :P6_YEAR)
...or even better:
and a.festival_year = to_number(:P6_YEAR)
ORDER BY total, a.ID DESC NULLS LAST)
WHERE Stu_Rank <= (select hb_piccolo from festival_years
where year = to_number(:P6_YEAR))
...if the <tt>festival_year</tt> and <tt>year</tt> columns are of type NUMBER. There's a possibility that this bug is in fact the source of your error...
Furthermore, this is a long piece of SQL. It may be that APEX can't cope with the length. However it's also very repetitive: we see the same SQL pattern repeated many times and UNIONed together. One way to reduce the length of the query would be to replace some (or all) of those repeating patterns. This will not only make the query more APEX-friendly, but it will probably be more efficient and easier to maintain too.
I recommend that you Re: 2. How do I ask a question on the forums? that will enable others to have a go at this. Reproducing the app on apex.oracle.com and posting guest developer credentials would also be helpful. -
I have a Windows app that accesses an Oracle 12c database via ODBC (the driver version is 12.01.00.01).
I have a table that has a key column named REGION_ID (NVARCHAR2(9)), and about a dozen other columns, three of which are named REGION1, REGION2, and REGION3, all of type NVARCHAR2(40).
When I try to insert a string into the REGION1 field that's greater than 9 characters (the length of REGION_ID), I get an ORA-01461 error ('Can bind a LONG value only for insert into a LONG column). If I define the length of REGION_ID to be NVARCHAR2(15), then I can add strings to the REGION1 field with a length up to 15 before I get the ORA-01461 exception again. Oddly, if I change the REGION1 column name to REGIONONE, I do not get any errors, and everything works fine. It's almost as if the column name REGION1 is being confused with REGION_ID behind the scenes.
Any ideas? I’m using SQLBindParameter to bind the columns, and all of the calls succeed. I get the exception when I execute the insert statement. This same code worked for previous versions of Oracle (11g, 10g, and 9i). And if I use an 11g client driver against the 12c server, I do not get the exception.
Thanks!Sorry, I was just now able to install the patch for bug 18232462, and it did indeed solve the issue I described above. Thanks!
-
ORA-01461 can bind a LONG value only for insert into a LONG
I Use ODP.net Insert and update Image files to Oralce blob columns(Oracle8i Server,ora92 client),
When the files larger than 4000 characters,It doesn't work.error:ORA-01461 can bind a LONG value only for insert into a LONG
My Vb.net code:
Dim dlg As OpenFileDialog
Dim strFileName() As String
Dim fsBLOB As System.IO.FileStream
Dim Adapter As OracleDataAdapter
Dim ds As New DataSet
Dim row As DataRow
Dim cb As OracleCommandBuilder
Dim bytes() As Byte
dlg = New OpenFileDialog
dlg.Filter = "Import File (*.*)|*.*"
Adapter = New OracleDataAdapter("select * from a_blob_contents where 1=0", Me.OraConnection)
Adapter.MissingSchemaAction = MissingSchemaAction.AddWithKey
Adapter.FillSchema(ds, SchemaType.Source, "BLOB")
cb = New OracleCommandBuilder(Adapter)
If dlg.ShowDialog() = DialogResult.OK Then
strFileName = dlg.FileNames()
Dim loopCount As Integer
For loopCount = 0 To strFileName.GetLength(0) - 1
row = ds.Tables("BLOB").NewRow()
row("BLOB_ID") = GetMaxBh("A_BLOB_CONTENTS", "BLOB_ID")
row("FILE_ID") = FileID
row("FILE_TYPE") = FileType
Dim file_name As String
file_name = strFileName(loopCount)
file_name = file_name.Substring(file_name.LastIndexOf("\") + 1, file_name.Length - file_name.LastIndexOf("\") - 1)
row("BLOB_NAME") = file_name
fsBLOB = New FileStream(strFileName(loopCount), FileMode.Open, FileAccess.Read)
ReDim bytes(fsBLOB.Length)
fsBLOB.Read(bytes, 0, System.Convert.ToInt32(fsBLOB.Length))
fsBLOB.Close()
row("blob_contents") = bytes
row("user_code") = Global.user_code
row("Operate_date") = Now
ds.Tables("BLOB").Rows.Add(row)
Next
Try
Adapter.Update(ds, "BLOB")
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
End If
I'll appreciate for anyone who can help me solve this problem.Hi Zhenquan,
The issue is that you can not direct insert more than 4K (as you have discovered). Two methods I use in this situation are:
1) sql statement or procedure that returns a lob locator into an ODP.NET OracleBlob parameter such as:
insert into the_table (primary_key, blob_column) values (pk_value, empty_blob()) returning blob_column into :blob_parameter.
Once you have the OracleBlob you should be able to write/update the data.
2) use an anonymous pl/sql block or package that uses the dbms_lob supplied package to work with the LOB.
Here is a simple console example...
SQL> create table blob_test
2 (
3 blob_id number,
4 blob_data blob,
5 constraint blob_test_pk primary key (blob_id)
6 )
7 tablespace users;
Table created.
Sub Main()
Dim strFileName As String = "c:\temp\testimage.jpg"
Dim fsBlob As FileStream = New FileStream(strFileName, FileMode.Open)
Dim bytes(fsBlob.Length) As Byte
fsBlob.Read(bytes, 0, fsBlob.Length)
fsBlob.Close()
Dim con As OracleConnection = New OracleConnection("User Id=/; Data Source=lt8i")
con.Open()
Dim trans As OracleTransaction = con.BeginTransaction()
Dim sql As String = "insert into blob_test (blob_id, blob_data) values (1,empty_blob()) returning blob_data into :blob_parameter"
Dim blob_parameter As OracleParameter = New OracleParameter
blob_parameter.OracleDbType = OracleDbType.Blob
blob_parameter.Direction = ParameterDirection.InputOutput
Dim cmd As OracleCommand = New OracleCommand(sql, con)
cmd.Parameters.Add(blob_parameter)
cmd.ExecuteNonQuery()
Dim blob As OracleBlob = blob_parameter.Value
blob.Write(bytes, 0, bytes.Length)
sql = "update blob_test set blob_data = :blob_parameter where blob_id = 1"
cmd.CommandText = sql
blob_parameter.Value = blob
cmd.ExecuteNonQuery()
trans.Commit()
End Sub
This sample was tossed together pretty quickly, so it is not a complete, bullet-proof sample, but hopefully it will give you what you need to get started. The 'testimage.jpg' file is just over 5MB in size.
Hope that helps,
Mark
=======================================
Mark A. Williams
Oracle DBA
Author, Professional .NET Oracle Programming
http://www.apress.com/book/bookDisplay.html?bID=378 -
Periodically receiving the following error on our Grid Control machine:
[oracle@lugc01 agent10g]$ ./bin/emctl upload agent
Oracle Enterprise Manager 10g Release 4 Grid Control 10.2.0.4.0.
Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
EMD upload error: Failed to upload file B0000021.xml: HTTP error.
Response received: ERROR-400|ORA-01461: can bind a LONG value only for insert into a LONG column
This is the agent that is on the host that runs Grid Control. GC Seems to be running fine, but the agent has this problem quite regularly. This also seems to happen on other linux 10.2.0.4 agents as well.
To remedy it, I go in and remove the upload data in $AGENT_HOME/sysman/emd/upload and then restart the agent. I don't like doing this.
Any ideas?Hi
The error display is very strong. The mean is that the agent try upload a file to the OMS and when the OMS Server go to insert the data in a SYSMAN Table , the value is of a LONG COLUMN and the table not have this type of column.
Please provide me:
- When the error appear , take the xml file and send me
- Run this comand in the agent:
emctl config agent listtargets
If i have the xml file, i can try to solve the problem
Regards
Roberto Hernandez
[email protected] -
ORA-01461: can bind a LONG value only for insert into a LONG column error
Oracle 11g R1 RHEL 5 64bit (Apex 3.1)
Hi all,
I am having a tough time with this error:
ORA-01461: can bind a LONG value only for insert into a LONG column
ORA-06512: at "FPRCHR.PKG_TRIGGER_EMAIL", line 39
ORA-06512: at "ISWRNEW.PKG_NOTIFICATION", line 310
ORA-06512: at "ISWRNEW.PKG_NOTIFICATION", line 1745
ORA-06512: at line 1
The FPRCHR.PKG_TRIGGER_EMAIL looks like follows:
INSERT INTO fprchr.trigger_email
(trigger_email_rid,
email_to,
email_from,
email_body,
email_subject,
email_cc,
email_bcc,
mime_type,
email_priority
VALUES (l_job,
p_recipients,
p_sender,
p_message,
p_subject,
p_cc,
p_bcc,
p_mime_type,
p_priority
execute immediate 'alter session set events ''10046 trace name context off''';
END submit;
It seems like the characters have exceeded the limit that VARCHAR2 can handle? What other data type could I change the fprchr.trigger_email table to? Is that all that is needed?
Thanks.It seems like the characters have exceeded the limit that VARCHAR2 can handle? What other data type could I change the fprchr.trigger_email table to? Is that all that is needed?
Did you try with clob data type?
Regards.
Satyaki De -
APex 4.1 Error ORA-01461: can bind a LONG value only for insert into a LONG
Hi There,
Facing a strange issue.
I have a regular cursor, and in that cursor loop I have a select statement into some variables based on cursor parameters.
I was getting the "ORA-01461: can bind a LONG value only for insert into a LONG column" error so I started individually checking each of the columns. Now it works fine for some column, but the moment I add this number field. It starts throwing this error. Now, the database source where the select is fired is of type number, the variable into which I select it is number .
Infact, I dont have any LONG column defined anywhere.
The strange thing is that the block executes perfectly fine in SQl developer. So looks like a Apex specific issue.
I am on 4.1/11g
Any ideas?
Thanks,
Sunsun1977 wrote:
Now, I have put this inside a Dynamic action (PL/SQL procedure). I think this PL/SQL procedure will go up to about 1500 to 2000 lines of code. There are no long columns involved anywhere or even CLOB, BLOB etc.
Is there any limitation to the size of code? When you say size of a code. Are you saying the whole PL/SQL block is stored in one Varchar2(4000) field? :) Did not know that. I am quite sure, the PL/SQL compiled package on the database would work perfect. Just was wondering why it was not working within APEX!
Also, Is there any documentation regarding this that you might be aware of?You can look at the APEX views. Code for some purposes (like region source) is stored in CLOBs:
desc apex_application_page_regions
Name Null Type
WORKSPACE NOT NULL VARCHAR2(255 BYTE)
WORKSPACE_DISPLAY_NAME VARCHAR2(4000 BYTE)
APPLICATION_ID NOT NULL NUMBER
APPLICATION_NAME NOT NULL VARCHAR2(255 BYTE)
PAGE_ID NOT NULL NUMBER
PAGE_NAME NOT NULL VARCHAR2(255 BYTE)
REGION_NAME NOT NULL VARCHAR2(255 BYTE)
PARENT_REGION_ID NUMBER
PARENT_REGION_NAME VARCHAR2(255 BYTE)
TEMPLATE VARCHAR2(255 BYTE)
TEMPLATE_ID NUMBER
STATIC_ID VARCHAR2(255 BYTE)
REST_ENABLED VARCHAR2(3 BYTE)
DISPLAY_SEQUENCE NOT NULL NUMBER
DISPLAY_REGION_SELECTOR VARCHAR2(3 BYTE)
REGION_ATTRIBUTES_SUBSTITUTION VARCHAR2(4000 BYTE)
ESCAPE_ON_HTTP_OUTPUT VARCHAR2(3 BYTE)
DISPLAY_COLUMN NUMBER
DISPLAY_POSITION VARCHAR2(255 BYTE)
DISPLAY_POSITION_CODE VARCHAR2(255 BYTE)
REGION_SOURCE CLOB
...for others—like LOV source and DA actions (PL/SQL code is stored in <tt>ATTRIBUTE_01</tt>)—are only VARCHAR2(4000 BYTE):
desc apex_application_page_da_acts
Name Null Type
WORKSPACE NOT NULL VARCHAR2(255 BYTE)
WORKSPACE_DISPLAY_NAME VARCHAR2(4000 BYTE)
APPLICATION_ID NOT NULL NUMBER
APPLICATION_NAME NOT NULL VARCHAR2(255 BYTE)
PAGE_ID NOT NULL NUMBER
PAGE_NAME NOT NULL VARCHAR2(255 BYTE)
DYNAMIC_ACTION_ID NOT NULL NUMBER
DYNAMIC_ACTION_NAME NOT NULL VARCHAR2(255 BYTE)
ACTION_NAME VARCHAR2(100 BYTE)
ACTION_CODE NOT NULL VARCHAR2(50 BYTE)
ACTION_SEQUENCE NOT NULL NUMBER
DYNAMIC_ACTION_EVENT_RESULT VARCHAR2(5 BYTE)
EXECUTE_ON_PAGE_INIT VARCHAR2(3 BYTE)
AFFECTED_ELEMENTS VARCHAR2(4000 BYTE)
AFFECTED_ELEMENTS_TYPE VARCHAR2(30 BYTE)
AFFECTED_REGION VARCHAR2(255 BYTE)
AFFECTED_REGION_ID NUMBER
ATTRIBUTE_01 VARCHAR2(4000 BYTE)
ATTRIBUTE_02 VARCHAR2(4000 BYTE)
ATTRIBUTE_03 VARCHAR2(4000 BYTE)
ATTRIBUTE_04 VARCHAR2(4000 BYTE)
ATTRIBUTE_05 VARCHAR2(4000 BYTE)
ATTRIBUTE_06 VARCHAR2(4000 BYTE)
ATTRIBUTE_07 VARCHAR2(4000 BYTE)
ATTRIBUTE_08 VARCHAR2(4000 BYTE)
ATTRIBUTE_09 VARCHAR2(4000 BYTE)
ATTRIBUTE_10 VARCHAR2(4000 BYTE)
ATTRIBUTE_11 VARCHAR2(4000 BYTE)
ATTRIBUTE_12 VARCHAR2(4000 BYTE)
ATTRIBUTE_13 VARCHAR2(4000 BYTE)
ATTRIBUTE_14 VARCHAR2(4000 BYTE)
ATTRIBUTE_15 VARCHAR2(4000 BYTE)
STOP_EXECUTION_ON_ERROR VARCHAR2(3 BYTE)
LAST_UPDATED_BY VARCHAR2(255 BYTE)
LAST_UPDATED_ON DATE
COMPONENT_COMMENT VARCHAR2(4000 BYTE)
ACTION_ID NOT NULL NUMBER
COMPONENT_SIGNATURE CHAR(15 BYTE) Oracle presmably have reasons for this difference but it's not something that is made clear in any way through the Builder UI.
Common sense should come into play. As Tony points out, the proper way to develop and deploy complex PL/SQL is using modular subprograms stored in packages. Same for APEX as for anything else. -
ORA-01461: can bind a LONG value only for insert into a LONG column ORA-020
Getting error --
ORA-01461: can bind a LONG value only for insert into a LONG column ORA-02063: preceding line from APPS
A page has 3 fields and a Add button
(1) first field is a LOV "select with submit"
(2) second field is getting its value from select statement with where clause = ID selected from field1
(3) field 3 is the value of field1
In After submit Process , I write simple insert as follows in the
BEGIn
INSERT INTO TABLE_NAME (ELEMENT_NAME,ELEMENT_TYPE_ID )
VALUES (:P3_NAME ,to_number(:P3_ELEMENT_TYPE_ID));
COMMIT;
END;
when i click on Add i get the error abovetry doing the bind locally before executing the remote dml...
declare
l_long long := :P3_NAME;
begin
insert into table_name (ELEMENT_NAME,ELEMENT_TYPE_ID )
values (l_long ,to_number(:P3_ELEMENT_TYPE_ID));
end;
...and if that doesn't work, please let us know the definition of you TABLE_NAME table.
thanks,
raj -
ORA-01461: can bind a LONG value only for insert into a LONG column - Issue
We are getting an error from Oracle DB --- Cause: java.sql.SQLException: ORA-01461: can bind a LONG value only for insert into a LONG column
The application was working fine with Oracle 10.2.0.4 and ojbc14 driver 10.2.0.1 Error occurs only after an upgrade to Oracle 10g 10.2.0.5. So after some googling, we found that a driver upgrade would eliminate this error. So the 10.2.0.5 version of the driver was used. But the ORA error still occurs. The readme of ojdb14.jar specified this - BUG 8847022 - ORA-01461: CAN BIND A LONG VALUE ONLY FOR INSERT INTO A LONG COLUMN
The problem is that we are not able to reproduce this using a sample program however it is happening consistently in the client environment.
we get the error ORA-01461, when the oracle version is upgraded to 10.2.0.5. This error occurs when we try to insert a file(BLOB) data with the file length greater than 4KB to a table.
Exception trace
uncategorized SQLException for SQL []; SQL state [72000]; error code [1461];
--- The error occurred in nl/sss/gict/mcb/data/dao/config/StateQueries.xml.
--- The error occurred while applying a parameter map.
--- Check the setReceivedFile-InlineParameterMap.
--- Check the statement (update failed).
--- Cause: java.sql.SQLException: ORA-01461: can bind a LONG value only for insert into a LONG column
; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException:
--- The error occurred in nl/sss/gict/mcb/data/dao/config/StateQueries.xml.
--- The error occurred while applying a parameter map.
--- Check the setReceivedFile-InlineParameterMap.
--- Check the statement (update failed).
--- Cause: java.sql.SQLException: ORA-01461: can bind a LONG value only for insert into a LONG column
Oracle version installed in acceptance:
1 Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
2 PL/SQL Release 10.2.0.5.0 - Production
3 CORE 10.2.0.5.0 Production
4 TNS for Linux: Version 10.2.0.5.0 - Production
5 NLSRTL Version 10.2.0.5.0 - ProductionIs the server running Java 1.4? If it is Java 5 or higher there is no need to keep using OJDBC14, you can upgrade to OJDBC5.
If you cannot do that, then I ask you: why make this post? What are you expecting someone to do? Your problem is with the OJDBC driver, you are not going to get tech support for it in this Java programming forum. -
Why this Error comes "ORA-01461: can bind a LONG value only for insert into
I'm using Oracle 9.2 with Weblogic 8 server. After Googling i got to resolve this issue "ORA-01461: can bind a LONG value only for insert into a LONG column" by adding : oracle.jdbc.RetainV9LongBindBehavior=true in server properties for the datasource.
But why did this error come and after keeping the above property why did this error go away ?
Can anyone help me on this.....You have an error in the code:
1. you don't provide a value for 'what' - you have to tell Oracle what it should execute when it submits the job.
And remember - with ISUBMIT the next_date parameter has datatype VARCHAR2 - SUBMIT uses datatype DATE. So make sure you provide a VARCHAR2 value and do not rely on implicit conversion.
>
PROCEDURE DBMS_JOB.ISUBMIT
(job IN BINARY_INTEGER
,what IN VARCHAR2
,next_date IN VARCHAR2
,interval IN VARCHAR2 DEFAULT 'null'
,no_parse IN BOOLEAN DEFAULT FALSE);
PROCEDURE DBMS_JOB.SUBMIT
(job OUT BINARY_INTEGER
,what IN VARCHAR2
,next_date IN DATE DEFAULT SYSDATE
,interval IN VARCHAR2 DEFAULT 'null'
,no_parse IN BOOLEAN DEFAULT FALSE); -
ORA-01461: can bind a LONG value only for insert into a LONG column-Update
Hi,
I'm using Oracle 9.2 with Weblogic 8 server. There are two columns OBJ_EVIDENCE_COMP - varchar2(4000 bytes), Descriptiion - varchar2(4000 bytes) in a table.I'm getting the Data from that table and again I'm updating into the same table with same data after updating the Data object in java.
I am getting the following error
"Java.sql.SQLException: ORA-01461: can bind a LONG value only for insert into a LONG column"
Can some one let me know why this error occurs ? Please do let me know if you want any other information. Below is my SQL Query:
* @jc:sql statement::
* UPDATE CORRECTIVE_ACTION SET
* CA_ID = {dt.caId},
* CA_NBR = {dt.caNbr},
* CAPA_PLAN_ID = {dt.capaPlanId},
* OBJ_EVIDENCE_COMP = {dt.objEvidenceComp},
* APPLICABLE_ELSE_WHERE = {dt.applicableElseWhere},
* JUSTIFICATION = {dt.justification},
* MOE = {dt.moe},
* COMPLETION_DATE = {dt.completionDate},
* EXTENSION_DUE_DATE = {dt.extensionDueDate},
* STATUS_CD = {dt.statusCd},
* SYSTEM_STATUS_CD = {dt.systemStatusCd},
* ROOT_CAUSE_CD = {dt.rootCauseCd},
* DESCRIPTION = {dt.description},
* CA_TYPE = {dt.caType},
* CREATED_BY = {dt.createdBy},
* CREATED_DATE = {dt.createdDate},
* MODIFIED_BY = {dt.modifiedBy},
* MODIFIED_DATE = {dt.modifiedDate},
* COMPLETION_DUE_DATE = {dt.completionDueDate}
* WHERE CA_ID = {dt.caId}
In the above update statement if i remove one among the 2 columns mentioned then it is getting updated properly......
Regards,
Bharat
Edited by: 908508 on Jan 17, 2012 2:18 AMI am occasionally getting this error in an Oracle 11g database
I use Rogue Wave to insert:
connection.beginTransaction ("bulkInsertEvents");
RWDBTBuffer <RWCString> symbols (symbol, rowCount);
RWDBTBuffer <RWDateTime> timeStamps (timeStamp, rowCount);
RWDBTBuffer <int> eventCounts (eventCount, rowCount);
RWDBTBuffer <RWCString> events (event, rowCount);
RWDBBulkInserter ins = table.bulkInserter (connection);
ins << symbols << timeStamps << eventCounts << events;
ins.execute ();
connection.commitTransaction ("bulkInsertEvents");
catch (RWxmsg & exception)
cout << Logging::getProgramName () << " " << exception.why () << endl;
throw "Failed to do bulk insert events to DBTools.";
Some of the inserts give me
"[SERVERERROR] ORA-01461: can bind a LONG value only for insert into a LONG column"
the table structure is
SYMBOL VARCHAR2(33 BYTE)
DATEANDTIME TIMESTAMP(6)
NUMOFEVENTS NUMBER
EVENTS VARCHAR2(4000 BYTE) -
Can bind a LONG value only for insert into a LONG column
I got an exception when I was using sesame adapter to dump a turtle file which contains long texts as objects into oracle semantic database. The exception information is:
org.openrdf.repository.RepositoryException: org.openrdf.sail.SailException: java.sql.SQLException: ORA-01461: can bind a LONG value only for insert into a LONG column
ORA-06512: in "SF.ORACLE_ORARDF_ADDHELPER", line 1
ORA-06512: in line 1
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:439)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:395)
at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:802)
at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:436)
at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:186)
at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:521)
at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:202)
at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:1005)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1307)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3449)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3530)
at oracle.jdbc.driver.OracleCallableStatement.executeUpdate(OracleCallableStatement.java:4735)
at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeUpdate(OraclePreparedStatementWrapper.java:1350)
at oracle.spatial.rdf.client.sesame.OracleSailConnection.addStatement(OracleSailConnection.java:1976)
at org.openrdf.repository.sail.SailRepositoryConnection.addWithoutCommit(SailRepositoryConnection.java:249)
at org.openrdf.repository.base.RepositoryConnectionBase.add(RepositoryConnectionBase.java:510)
at org.openrdf.repository.util.RDFInserter.handleStatement(RDFInserter.java:193)
at org.openrdf.rio.turtle.TurtleParser.reportStatement(TurtleParser.java:963)
at org.openrdf.rio.turtle.TurtleParser.parseObject(TurtleParser.java:416)
at org.openrdf.rio.turtle.TurtleParser.parseObjectList(TurtleParser.java:339)
at org.openrdf.rio.turtle.TurtleParser.parsePredicateObjectList(TurtleParser.java:315)
at org.openrdf.rio.turtle.TurtleParser.parseTriples(TurtleParser.java:301)
at org.openrdf.rio.turtle.TurtleParser.parseStatement(TurtleParser.java:208)
at org.openrdf.rio.turtle.TurtleParser.parse(TurtleParser.java:186)
at org.openrdf.rio.turtle.TurtleParser.parse(TurtleParser.java:131)
at org.openrdf.repository.base.RepositoryConnectionBase.addInputStreamOrReader(RepositoryConnectionBase.java:404)
at org.openrdf.repository.base.RepositoryConnectionBase.add(RepositoryConnectionBase.java:295)
at org.openrdf.repository.base.RepositoryConnectionBase.add(RepositoryConnectionBase.java:226)
at sforcl.dao.support.OracleSailDaoTemplate.addTTLFile(OracleSailDaoTemplate.java:114)
at sforcl.test.OracleSailDaoTemplateTest.testAddTTLFile(OracleSailDaoTemplateTest.java:33)
at sforcl.test.OracleSailDaoTemplateTest.main(OracleSailDaoTemplateTest.java:122)
How can I solve this problem?Hi,
Can you please try loading the same file following Example 5 in Section 8.10.5 of
http://docs.oracle.com/cd/E11882_01/appdev.112/e25609/sem_sesame.htm
Thanks,
Zhe -
Insert Record Via Dblink Get Error ORA-01461: can bind a LONG value only
Hi
When i try to insert record in Htmldb 2.0 Form to a table that is locate in remote DB via DBlink , I get the error ORA-01461: can bind a LONG value only for insert into a LONG column ORA-02063: preceding line from SAPREPOS.ADBAZAN.COM.
My command is insert into [email protected]
(OVED_ID,
REPMONTH,
REPYEAR,
SAPDATE,
SAPTIME)
values
(:P1_XOVED_ID,
:P1_XMANTHLY,
:P1_XYEAR,
to_char(sysdate,'DDMMYYYY'),
to_char(sysdate,'HH:MI AM'));
I try on local Table and it work OK.
I try with sqlplus to the remote DB and it works OK.
Need Help !!!
ThanksHi
When i try to insert record in Htmldb 2.0 Form to a table that is locate in remote DB via DBlink , I get the error ORA-01461: can bind a LONG value only for insert into a LONG column ORA-02063: preceding line from SAPREPOS.ADBAZAN.COM.
My command is insert into [email protected]
(OVED_ID,
REPMONTH,
REPYEAR,
SAPDATE,
SAPTIME)
values
(:P1_XOVED_ID,
:P1_XMANTHLY,
:P1_XYEAR,
to_char(sysdate,'DDMMYYYY'),
to_char(sysdate,'HH:MI AM'));
I try on local Table and it work OK.
I try with sqlplus to the remote DB and it works OK.
Need Help !!!
Thanks
Maybe you are looking for
-
Do I need to plug my airport express into a modem to use it as its own router?
I want to use my airport express as a router. Do I need to plug it into a modem to do this or can I do this without pluging anything into it.
-
In my dock there was this weird program called "tutorial". While throwing away this program I had to fill in my password. Afterwards I tried to change my password, but my old password doesn't work anymore. Who can help?
-
Hello. I'm trying to bring back a BLOB object from a PL/SQL procedure. I keep getting a class cast exception when I do it java.lang.ClassCastException: weblogic.jdbc.wrapper.Blob_oracle_sql_BLOB cannot be cast to oracle.sql.BLOB I get similar results
-
Replace child, then query for uncle fails
Hello, I am using DbXml 2.4.13 through the C++ interface on Ubuntu 8.04. Ran across the following scenario that I cannot get to work: 1. create a transactional node container 2. place the following document inside the container: <config> <a>
-
SF-200 not displaying all MAC addresses
I have an SF-200-24 port switch, I have a workstation attached that is working and accessible. When I display the Dynamic MAC table, it shows most of the switch ports (including multiple MAC's of the uplink/downlink connections). I have even tried to