Unspecified error (80004005) with LONG datatypes
Hi,
I am trying to create a recordset (using ADO/ASP) which has two or more LONG fields returned but an Unspecified error (80004005) is returned by the browser.
Any help/hints on why this happening and whether this can be worked around.
Thanks.
null
insert into temp values ('abc');
cannot (must not) work, when the column is type long (thats a numeric type!!)
-> here you get an ora- 00911 errorcode
that the select doesn't work then should be clear.
mfg f.humer
Similar Messages
-
Hi there
Wonder if anyone can advise me on a BDD 2007 OS deployment issue? (Apologies if this is in the wrong forum, I couldn't see a forum for BDD 2007.)
First of all, this BDD 2007 server and the OSD config was not done by me. For info, it is part of a SMS 2003 infrastructure.
I am trying to get the XP Pro build process working. I am led to believe the config has been completed.
Unfortunately, after booting the pc from the nic, I get an error. This is the order:
- the 'Initializing Windows PE' splash appears for perhaps 15 seconds
- very briefly, the text changes to 'Initializing Network'
- for a second or two only 'Initializing Windows PE' appears again
- then this error message appears:
"SMS Operating System Deployment - The Operating System Installation failed. Please contact your system administrator for assistance. Unspecified Error (80004005)"
I've spent some time looking into this error (80004005) and from what I can gather it possibly means 'access denied'.
I'm assuming after Windows PE loads the first Task Sequence begins, and if this possibly is where the issue lies?
One thing I cannot understand - the first Task Sequence (Initialization) has this command line (as do most, with different .wsf file):
cscript.exe "%SCRIPTROOT%\ZTIGather.wsf" /localonly
However, I cannot access %SCRIPTROOT% at all, Windows says it can't find it. I can run other variables such as %USERPROFILE%, %SYSTEMROOT%, etc, but cannot open %SCRIPTROOT%.
Is it simply the case that I should create a new system variable (that has not been created by whoever built the server)?
Thanks
John HenrySince no one has answer this post, I recommend opening a support case with CSS as they can work with you to solve this problem.
Garth Jones | My blogs: Enhansoft and
Old Blog site | Twitter:
@GarthMJ -
Error when using LONG Datatype
Hi,
I am transferring data from oracle to oracle. In my source table and target table i have a column of "long" datatype. When i execute the interface i am getting the following error.
997 : 42000 : java.sql.SQLException: ORA-00997: illegal use of LONG datatype
Cause: A value of datatype LONG was used in a function or in a DISTINCT, WHERE, CONNECT BY, GROUP BY, or ORDER BY clause. A LONG value can only be used in a SELECT clause.
How can we resolve this issue in ODI?
Thanks in Advance,
Ram Mohan TCezar,
I am bit confused with the steps.
1) Create first interface with IKM Control append and flow_control yes but no long mapping
This is the real interface to be created with out the Long Column mapping.
2) Create second interface with IKM PL/SQL and "flow_control" NO and a "not exists "filter to "E$" (from first interface)
Do I need to duplicate the same mapping here. I couldn’t understand this line Cezar. “and a "not exists "filter to "E$" (from first interface)”
Does ODI doesnt provide any direct way to resolve this issue? When ever a table with Long datatype, do we need to do this steps?
Thanks in Advance,
Ram Mohan T -
How to get length of data on column with long datatype
How to get length of data on column with long datatype without using pl/sql block
...another reason not to use LONG datatype for columns.
Oracle advises to switch to LOB columns instead
SQL> create table t
2 (x long)
3 /
Table created.
SQL> insert into t values (rpad ('x', 10000, 'x'))
2 /
1 row created.
SQL> alter table t
2 modify x clob
3 /
Table altered.
SQL> desc t
Name Null? Type
X CLOB -
i try to use the substr function with the long datatype but it gave me error ora-00932 inconsistant datatypes...........
i had saw u r given link and try that example also but it gave me the same ora-06502
declare
text_c1 varchar2(32767);
sql_cur varchar2(2000);
begin
sql_cur := 'select '||'text'||' from
'||'alpine'||'.'||'letters'||' where letter_id =
'||chr(39)||7||chr(39);
dbms_output.put_line (sql_cur);
execute immediate sql_cur into text_c1;
text_c1 := substr(text_c1, 1, 4000);
--RETURN ;
dbms_output.put_line (TEXT_C1);
END; -
Selecting From Column with Long Datatypes
create table temp
a long
insert into temp values ('abc');
commit;
select * from temp
where a = 'abc'
I am getting the following error while am tring to select a = 'abc';
ora-00997 : illegal use of LONG datatype
How can i select values from a column with long datatypesinsert into temp values ('abc');
cannot (must not) work, when the column is type long (thats a numeric type!!)
-> here you get an ora- 00911 errorcode
that the select doesn't work then should be clear.
mfg f.humer -
Exporting a table with Long datatype col. name
Hello,
I need help exporting a table, One of the column is long datatype.
How can I do this without using Export Util?
Is it possible.
(If someone has a solution then PLEASE Email
me)
URGENT.
Thanks.
Pankaj Patel.Just wanted to find out, if you already solved this problem. I have a similar issue with long column. I am trying to sql dump a table with long column that will be imported into another database(probably using sql*load), but the spooled file puts the data from the long column in separate lines 80 char long and not on a single line. I have set the long to 64000 and linesize to 32000. Wrap is on too.
null -
VERY URGENT: problem in sql query with long datatype in weblogic
I have a problem while tryind to retrieve a column value with a long datatype using servlet and oci driver and the server is weblogic5.1 .I have used prepared statement the problem comes in the
preparedStatement.executeQuery().
The sql Query is simple query and runs well in all cases and fails only when the long datatype column is included in the query.
The exception that comes on the weblogic server is that :
AN UNEXPECTED EXCEPTION DETECTED IN THE NATIVE CODE OUTSIDE THE VM.Did you try changing the driver then?
Please use Oracle's thin driver instead of the oci driver.
There are many advantages of using the type 4 driver. the first and foremost being that it does not require oracle client side software on your machine. Therefore no enteries to be made in tnsnames.ora
The thin driver is available in a jar called classes112.zip the class which implements the thin driver is oracle.jdbc.driver.OracleDriver
the connection string is
jdbc:oracle:thin:@<machine name>:1521:<sid>
please try out with the thin driver and let me know.
regards,
Abhishek. -
Using Decode with "Long" datatypes
Hi,
I want to use a select statement in a view which uses a decode function involving a "long" datatype. But doing some raises an error "Invalid datatypes". Is there a way around?
Anupam.I'm a bit puzzled as to what it is you are trying to achieve (it has been an afternoon for vague requirements). Normally the sort of data that we would want to store in a LONG is ,er, long and therefore not susceptible to use in a DECODE. But it does not matter, because we can only manipulate LONGs in PL/SQL and that does not parse DECODE statements. We will have to use IF...ELSE constructs instead.
CREATE OR REPLACE FUNCTION l2v (pl in rowid) RETURN VARCHAR2
AS
ll LONG;
rv VARCHAR2(20);
BEGIN
SELECT col1
INTO ll
FROM T_LONG
WHERE rowid = pl;
IF ll LIKE '%text%'
THEN
rv := 'yes!';
ELSE
rv := 'noooo';
END IF;
RETURN rv;
END;
SQL> select l2v(rowid) from t_long;
L2V(ROWID)
yes!
yes!
SQL> You can use this function in a query. Note that it is doing a SELECT in its own right so this will not be a very performant solution if you build the view on a big table.
Cheers, APC -
ORA-06502: error when inserting into table via db link with long datatype
Folks,
I am getting the following error:
ORA-06502: PL/SQL: numeric or value error: character string buffer too small.
This occurs when an insert is done via a database link into a table that has a LONG data type for one of the columns, and the string contains some carriage returns and or line feeds.
I have checked by removing the db link, and inserting into a local table with identical column data types, where there is no error.
So this might be another db link bug?
So I need to remove the carriage returns and/or line feeds
in my pl/sql block in the page process. I have tried
l_text := REPLACE(l_text, CHR(10), ' ');
l_text := REPLACE(l_text, CHR(13), NULL);
but still getting the ORA-06502. Would really appreciate some advice here, please.
Cheers
KIMScott,
Time to 'fess up':
My fault sorry, the error was coming from another page process where I had allowed insufficient string length for one of the variables, and my error message did not identify the page process clearly.
This leads me to make a request for future releases, could the system error messages state which page process caused the problem?
One other thing I notice, and this might be a feature not a fault, the page processes are numbered: "Page Process: 3 of 5". However process 3 is not the 3rd one to be processed, and probably refers to the order in which they are created. Should the number reflect the process order?
Cheers
KIM -
Move tables (some with LONG datatypes) across tablespaces in Oracle 9i
I have a 14GB tablespace which about 3,000 tables (and only tables) in. Only 2.6GB is used so I would like to resize the tablespace to about 3GB initially.
I moved the tables with "alter table <owner>.<tablename> move tablespace <tablespace>" and this worked for most of the tables but failed on some with this kind of error:
alter table IFSAPP.COMMAND_SYS_BUFFER_TAB move tablespace IFSAPP_DATA_TEMP
ERROR at line 1:
ORA-00997: illegal use of LONG datatypeI then moved the other tables back to the original a little frustrated.
Further reading suggested exporting and importing the tables is the way to go.
I prefer the alter table because Oracle manages the lock whilst it moves. If I export and import, the table could change in between, potentially ending with me importing an old copy, couldn't it? [It seems neigh on impossible to guarantee an available window to do much!]
So I though I could you the alter table move for ALL tables and those that are left, use export/import, to minimise the risk.
How should I proceed?
1) Create TEMP_TABLESPACE as 3GB
2) "alter table ... move tablespace ..." for all tables in ORIGINAL_TABLESPACE to TEMP_TABLESPACE
3) For the remaining tables, individually:
a) lock table (not sure how)
b) export table: exp user/pass tables=tablename file=exp.dmp rows=yes
c) drop table
d) create table in TEMP_TABLESPACE*
e) import table: imp user/pass tables=tablename
* this means I need to know how to re-create the table. It also means views and indexes and packages are going to become invalid.
4) drop tablespace ORIGINAL_TABLESPACE
5) Create ORIGINAL_TABLESPACE as 3GB
6) "alter table ... move tablespace ..." for all tables in TEMP_TABLESPACE to ORIGINAL_TABLESPACE
7) For the remaining tables, individually:
a) lock table (not sure how)
b) export table: exp user/pass tables=tablename file=exp.dmp rows=yes
c) drop table
d) create table in ORIGINAL_TABLESPACE
e) import table: imp user/pass tables=tablename
This seems high risk and messy.
Has anyone advice or tips to make it simpler?
As it stands I am considering leaving alone, the risks worry me!
ThanksInteresting idea.. so this would create a temporary table in the temporary tablespace.
Rather than set the default tablespace, can I merely add the tablespace clause?
COPY FROM user/password@database CREATE TmpTblName TABLESPACE TmpTablespace USING SELECT
* FROM Table_name;
Either way - can you confirm for each table, I would need to:
COPY FROM user/password@database CREATE TmpTblName TABLESPACE temp_tablespace USING SELECT * FROM Table_name;
At this point all indexes for these will be invalid.
Drop tablespace ORIGINAL_TABLESPACE
Create ORIGINAL_TABLESPACE as 3GB
COPY FROM user/password@database CREATE TblName TABLESPACE original_tablespace USING SELECT * FROM TmpTable_name;
rebuild any indexes which are unusable.
recompile any invalid objects -
Replace operator with long datatypes
hi. i am trying to run the following replace command, but i have not had experience of using it before.
update UNI72TEST.SCMAPPING set attributes = trim(replace(attributes,'TLCLIVE','TLCTEST'))
ERROR at line 1:
ORA-00932: inconsistent datatypes: expected NUMBER got LONG
is there a to_long converter at all? i cant seem to find oneIf your long data is not too big, maybe you could use this workaround ( said that, i should mention, the other advices are correct and you should try to migrate from long to clob instead).
SQL> create table t_long(c_long long)
2 /
Table created.
SQL> insert into t_long values('Hello, world')
2 /
1 row created.
SQL> select * from t_long
2 /
C_LONG
Hello, world
SQL> declare
2 l_long long;
3 begin
4 select c_long into l_long from t_long;
5 l_long := replace(l_long,'world','Oracle');
6 update t_long set c_long=l_long;
7 end;
8 /
PL/SQL procedure successfully completed.
SQL> select * from t_long
2 /
C_LONG
Hello, OracleBest regards
Maxim -
Hi,
I am getting the following error in system center orchestrator when I assign permission to the run books.
I run the designer with my admin account. I have bounced the server and check for every possible thing I can think of and still getting this error. It was working fine a couple of weeks ago.
Has anyone seen error ?
Appreciate any help you can give me.Hi,
If you didn't change anything before the issue, I recommand check SQL server, especially for performance issue.
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected] -
Error : ORA-06502: PL/SQL: numeric or value error while fetch LONG datatype
Hello All,
I have written a script to fetch the text for a view in PLSQL and it gives me the following error :
Error : ORA-06502: PL/SQL: numeric or value error
declare
l_text all_views.text%type;
begin
SELECT text INTO l_text FROM all_views WHERE view_name = 'XXVIEW';
exception
when others then
dbms_output.put_line('Error : '||sqlerrm);
end;
The above works for some views and not view other views. Can anyone let me know what could be the reason for ORA-06502 when fetching into a long variable in PLSQL.
Would appreciate any response.
Thanks,If view 'XXVIEW' contains "no record" for field "text" then it'll show this error.
I mean "SELECT text FROM all_views WHERE view_name = 'XXVIEW';" returns "No record found" then how can you assign "no record" to a variable "l_text ".
try to execute : SELECT text FROM all_views WHERE view_name = 'XXVIEW';
What does it give you? any "Blank records"?
Edited by: H. on Feb 20, 2009 8:17 AM -
Using UPPER function with LONG datatype column
Hi,
Can anyone tell that how can I use UPPER function on a column which has data type as-- LONG?
For ex--
SELECT * FROM TABLE WHERE UPPER(LONG_COL) LIKE 'MYTEXT%';
thanks,
Abhijeet
Edited by: @bhijeet ☻☻☻ on Nov 18, 2009 5:20 AM@bhijeet ☻☻☻ wrote:
Yes I know that that's why I am asking about an alternate solution for it. Could you please let me know if you have any solution to do it?
Thanks,
AbhijeetI think you'll have to write a function to do this for you. You can use DBMS_SQL to break a LONG into pieces and work with 32K segments. I am not sure how to put the converted data back into the LOB at that point, though DBMS_SQL might provide a way to do this.
Maybe you are looking for
-
How do I install iTunes 10.5.3 on Windows Vista?
I've been trying for some time to install iTunes on my computer for some time now. As I'm sure you're aware, the iPod Touch currently requires 10.5.3 in order to operate. Here are the issues I've been having: After the I run the Setup and the iTune
-
Do we have any certification for OEM -grid control ?
Do we have any certification for OEM -grid control ?
-
Keywords in Lightroom/Bridge
I have all my photos marked with a lot of keywords i Bridge, but I would like to use Lightroom to add keywords to all my new Photos, but if I do that, Bridge can't read them Any one who knows what to do ???
-
Windows 7 Photoshop 12 known issues?
My windows 7 upgrade advisor (from Vista) says that my freshly installed Photoshop Elements 12 has known issues with Windows 7 and should be uninstalled before upgrading to win7. Does anyone know what the known issues are?
-
My Other Section Is Very Large What Should I Do About It? It Is Taking Up a Pretty Good Chunk Pf Memory It's 9.14Gb What Should I Do To fix It