Loding clob from file-ORA-22994
declare
dest_clob CLOB;
src_clob BFILE ;
dst_offset number :=1;
src_offset number :=1;
lang_ctx number := DBMS_LOB.DEFAULT_LANG_CTX;
warning number;
type filesarray IS VARRAY(5) OF VARCHAR2(50);
names filesarray;
l_stmt CLOB;
BEGIN
names := filesarray('p1.xml','p2.xml','p3.xml','p4.xml','p5.xml');
FOR I IN 1..names.count LOOP
--DBMS_OUTPUT.ENABLE(100000);
dest_clob :='';
src_clob := BFILENAME('PCSORADIR',names(i));
Insert into TEST (NAME,VALUE) values
(SUBSTR(names(i),1,INSTR(names(i),'.xml',1,1)-1),EMPTY_CLOB())
RETURNING VALUE INTO dest_clob;
DBMS_LOB.OPEN(src_clob, DBMS_LOB.LOB_READONLY);
DBMS_OUTPUT.PUT_LINE(names(i));
DBMS_OUTPUT.PUT_LINE(DBMS_LOB.GETLENGTH(src_clob));
DBMS_LOB.LoadCLOBFromFile(
DEST_LOB => dest_clob
, SRC_BFILE => src_clob
, AMOUNT => DBMS_LOB.GETLENGTH(src_clob)
, DEST_OFFSET => dst_offset
, SRC_OFFSET => src_offset
, BFILE_CSID => DBMS_LOB.DEFAULT_CSID
, LANG_CONTEXT => lang_ctx
, WARNING => warning
);DBMS_OUTPUT.PUT_LINE('test');
dbms_lob.filecloseall;
COMMIT;
END LOOP;
DBMS_OUTPUT.PUT_LINE('Loaded XML File using DBMS_LOB.LoadCLOBFromFile: (ID=1001).');
END;
Its giving error-ORA-22994: source offset is beyond the end of the source LOB
If i am loading these files individually(with out any loop) its loading with out any error.
INRi wrote:
declare
dest_clob CLOB;
src_clob BFILE ;
dst_offset number :=1;
src_offset number :=1;
lang_ctx number := DBMS_LOB.DEFAULT_LANG_CTX;
warning number;
type filesarray IS VARRAY(5) OF VARCHAR2(50);
names filesarray;
l_stmt CLOB;
BEGIN
names := filesarray('p1.xml','p2.xml','p3.xml','p4.xml','p5.xml');
FOR I IN 1..names.count LOOP
--DBMS_OUTPUT.ENABLE(100000);
dest_clob :='';
src_clob := BFILENAME('PCSORADIR',names(i));
Insert into TEST (NAME,VALUE) values
(SUBSTR(names(i),1,INSTR(names(i),'.xml',1,1)-1),EMPTY_CLOB())
RETURNING VALUE INTO dest_clob;
DBMS_LOB.OPEN(src_clob, DBMS_LOB.LOB_READONLY);
DBMS_OUTPUT.PUT_LINE(names(i));
DBMS_OUTPUT.PUT_LINE(DBMS_LOB.GETLENGTH(src_clob));
DBMS_LOB.LoadCLOBFromFile(
DEST_LOB => dest_clob
, SRC_BFILE => src_clob
, AMOUNT => DBMS_LOB.GETLENGTH(src_clob)
, DEST_OFFSET => dst_offset
, SRC_OFFSET => src_offset
, BFILE_CSID => DBMS_LOB.DEFAULT_CSID
, LANG_CONTEXT => lang_ctx
, WARNING => warning
);DBMS_OUTPUT.PUT_LINE('test');
dbms_lob.filecloseall;
COMMIT;
END LOOP;
DBMS_OUTPUT.PUT_LINE('Loaded XML File using DBMS_LOB.LoadCLOBFromFile: (ID=1001).');
END;
Its giving error-ORA-22994: source offset is beyond the end of the source LOB
If i am loading these files individually(with out any loop) its loading with out any error.Have you read the documentation on loadclobfromfile? http://docs.oracle.com/cd/B19306_01/appdev.102/b14258/d_lob.htm#i998978
>
dest_offset
(IN) Offset in characters in the destination CLOB (origin: 1) for the start of the write. *(OUT) The new offset in characters right after the end of this load, which is also where the next load should start*. It always points to the beginning of the first complete character after the end of load. If the last character is not complete, offset goes back to the beginning of the partial character.
src_offset
(IN) Offset in bytes in the source BFILE (origin: 1) for the start of the read. *(OUT)Offset in bytes in the source BFILE right after the end of this read, which is also where the next read should begin*.
Similar Messages
-
Load data from File on Client side (via Sqlplus)
Server OS: RedHat, Oracle 10g rel 2.
I am trying to load data from OS .txt files to clob field.
I am able to do this successfully using:
Oracle DIRECTORY
BFILE
DBMS_LOB.loadclobfromfile packageIssue is: this only works if my files and DIR are on database server.
Is it not possible "load clob from file" from client side, files being on client and exec command via SQLPlus. Is there any other option to load data from client side.
Thanks for any help.Options:
1) Search for OraDAV
2) Learn about Application Express. -
ORA-22275 Invalid lob locator when using CLOB from a view
Hi,
I am having problems when passing a CLOB from a "Union all" view to a function. I get an ORA-22275 error when trying to construct an XmlType from the CLOB and
the CLOB originates from a view. If the CLOB originates from a table, eveyting works fine. Here is the code, that reproduces the problem
CREATE TABLE testclob
(field1 CLOB)
-- insert some data
insert into testclob values ('<a/>');
-- Define a clob view over some tables
create or replace view v_testclob
(field1)
as
select field1 from testclob
union all
select field1 from testclob; -- in reallity I use different tables
-- Creat a functions that proceses the CLOB
CREATE OR REPLACE
function MyFunction(v_myClob clob) return VARCHAR2
IS
myXML XMLTYPE;
BEGIN
select xmltype(v_myClob) into myxml from dual; -- the view crashes ** HERE **
-- code ommited
return 'some data';
END;
-- Try to use the function:
-- Selecting from a table works OK
select myfunction(field1) from testclob;
-- Selecting from the view crashes
select myfunction(field1) from v_testclob;
Error: ORA-22275: invalid LOB locator specified ORA-22275: invalid LOB locator specified ORA-06512: at "D_TEST.MYFUNCTION", line 6
-- I using the following version:
select * from v$version;
-- Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
-- PL/SQL Release 9.2.0.1.0 - Production
-- CORE 9.2.0.1.0 Production
-- TNS for 32-bit Windows: Version 9.2.0.1.0 - Production
-- NLSRTL Version 9.2.0.1.0 - Production The only workaround I have found is to use substr
select xmltype(dbms_lob.substr(v_myClob)) into myxml from dual; -- workaround.. but this mght trucnate my data.
What am I doing wrong?
MatejYou need to apply the latest patchset for your version of the database on your version of the operating system:
SQL> CREATE TABLE testclob
2 (field1 CLOB)
3
SQL> /
Table created.
SQL>
SQL> -- insert some data
SQL> insert into testclob values ('<Data>Testing</Data>')
2 /
1 row created.
SQL>
SQL> -- Define a clob view over some tables
SQL>
SQL> create or replace view v_testclob
2 (field1)
3 as
4 select field1 from testclob
5 union all
6 select field1 from testclob
7 /
View created.
SQL>
SQL> -- Creat a functions that proceses the CLOB
SQL>
SQL> CREATE OR REPLACE
2 function MyFunction(v_myClob clob) return VARCHAR2
3 IS
4 myXML XMLTYPE;
5 BEGIN
6
7 select xmltype(v_myClob) into myxml from dual; -- the view crashes ** HERE **
8 -- code ommited
9 return 'some data';
10 END;
11
12 /
Function created.
SQL> -- Try to use the function:
SQL> -- Selecting from a table works OK
SQL> select myfunction(field1) from testclob;
MYFUNCTION(FIELD1)
some data
SQL>
SQL>
SQL> -- Selecting from the view crashes
SQL> select myfunction(field1) from v_testclob;
MYFUNCTION(FIELD1)
some data
some data
SQL> disconnect
Disconnected from Oracle9i Enterprise Edition Release 9.2.0.7.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.7.0 - Production
SQL> -
Export with Table Splitting : ORA-01115: IO error reading block from file
Hello,
We are in perfroming the last dryrun of our CU&UC conversion.
The are now in the process of exporting the ECC6 system (Oracle 10.2.0.4.0, HPUX ia64) using sapinst features, "table splitting preparation"
When doing so, we are facing critical errors :
Creating file /export_uni/sapinst_splitting/ora_query3_tmp3_1.sql.
ERROR 2010-08-11 10:27:28.881
CJS-00084 SQL statement or script failed. DIAGNOSIS: Error message: ORA-12801: error signaled in parallel query server P002
ORA-01115: IO error reading block from file 90 (block # 16640)
ORA-27072: File I/O error
HPUX-ia64 Error: 22: Invalid argument
Additional information: 4
Additional information: 16640
Additional information: -1
ORA-01115: IO error reading block from file 90 (block # 16640)
ORA-27072: File I/O error
HPUX-ia64 Error: 22: Invalid argument
ORA-06512: at "SAPR3.TABLE_SPLITTER", line 775
ORA-06512: at line 1
I have therefore perfmed a dbverify ; no corruption has been recorded.
When trying to perfrom the EXPORT, without table splitting ; it works fine ...but the processing time is extremely long, as you can imagine. Any help would be highly appreciated.Regards.
RaoulThank you Stefan,
Our HPUX Release seems to be indeed 11v3,
[root@:/root]# uname -a
HP-UX B.11.31 U ia64 2566039091 unlimited-user license
I'll check the installation of the patch and keep you informed
Thank you
Raoul
Edited by: Raoul Shiro on Aug 11, 2010 11:57 AM -
SQL developer cannot see connection info from tnsnames.ora file
Greetings All,
I have been using sql developer for a while. Currently on 3.0.04.34.
I have 16 database connections.
Everything was working fine until yesterday.
Today when I tried to connect to a database from the list of connections I am getting following error:
Invalid connection information specified. Verify url format for specified driver.
When I pull up the property for this connection -connection type is still TNS, Netwrok Alias is now greyed out and what was in Netwrok Alias has shifted to Connect Identifier.
When I try to create a new connection I do not see entry from tnsnames.ora file for the databse I am trying to connect to in the Network Alias drop down list.
I can connect to this database from sqlplus.
Has anyone seen this behavior? Does any one know the fix for this?
Thanks.Hi,
Maybe your preference settings got corrupted, or the Tnsnames.ora file got moved to somewhere SQL Developer can't find it.
Are you using either:
1. Tools|Preferences|Database|Advanced|Tnsnames Directory, or a
2. TNS_ADMIN environment variable
to point to your Tnsnames? Having one of those should enable the Network Alias drop-down list to get populated. Otherwise, if the values moved to Connection Identifier are correct, then you won't be to connect in that mode without also having an Oracle client installed with an 11.1 JDBC thick driver (ocijdbc11.dll).
If there is no issue with the Tnsnames. ora location, it might be a good idea to use Export Connections to make a backup of your connections. Then you can try deleting the connections from SQL Developer and re-importing them. Even if that doesn't fix the problem, you should be no worse off.
Regards,
Gary
SQL Developer Team -
How do I Load a clob from an XML field in an XMLTYPE using XMLTABLE ?
I am trying to load data into a CLOB from a XML field using XMLTABLE.
I have a SUMMARY xml field with over 100 K of data (potentialy)
and I can load all the other datatype fields to columns but can not load the xml fields over 4000 characters.
example
First I create a table of XMLTYPE. I need to sqlload new files in at regular intervals.
Create table WEB_XML of XMLTYPE;
Then I create my relational table....
create table WEB_WORKING
request_id varchar(10),
ref_number varchar(20),
summary clob
The I use the .ctl file to sqlload the xml data in
LOAD DATA
INFILE *
INTO TABLE WEB_XML
append
xmltype(XMLDATA)
ext_fname filler char(90),
XMLDATA LOBFILE(ext_fname) TERMINATED BY EOF
BEGINDATA
XMLFILE1.xml
After loading the WEB_XML table using sqlldr, I try to load my relational table using XMLTable
INSERT into WEBBAR_WORKING
request_id ,
ref_number ,
summary
SELECT X.* FROM WEB_XML P2,
XMLTable ( '//Request//REQUESTVIEW'
PASSING P2.object_value
COLUMNS
"request_id" VARCHAR(10) PATH 'REQUEST_ID',
"ref_number" VARchar(20) PATH 'REF_NUMBER',
"SUMMARY" clob PATH 'SUMMARY'
) AS X;
This gives an error saying its not expecting clob
My XML looks somthing like
-<Request>
-<REQUESTVIEW>
<REQUEST_ID>3140</REQUEST_ID>
<ref_number>2003-04-02</RECEIVED_DATE>
<SUMMARY>
OVER 100 K of data
</SUMMARY>
</REQUESTVIEW>
</Request>ok
that helped lot, im getting there however some more help please
This SQL
SELECT request_id, recieved_by, X.SUMMARY.getClobVal()
FROM WEB_XML P2,
XMLTable
'//Request//REQUESTVIEW'
PASSING P2.object_value
COLUMNS
"request_id" VARCHAR(10) PATH 'REQUEST_ID',
"received_by" VARCHAR(10) PATH 'RECEIVED_BY',
"SUMMARY" xmltype PATH 'SUMMARY'
) AS X;
SELECT request_id, recieved_by, X.SUMMARY.getClobVal()
ERROR at line 1:
ORA-00904: "RECIEVED_BY": invalid identifier
If I use the X.request_id, X.received_by ......
i get the error message
Package or function is in aan invalid state.
But this SQL was successful in getting the clob by itself but with the XML tgs around it still, how do I strip the XML tags from around this result ?
SELECT X.SUMMARY.getClobVal()
FROM WEBBAR_XML P2,
XMLTable
'//Request//REQUESTVIEW'
PASSING P2.object_value
COLUMNS
"SUMMARY" XMLTYPE PATH 'SUMMARY'
) AS X;
---------------------------------------------------------- -
PROBLEM DESCRIPTION :
When I try to read a clob from Oracle, I receive "ORA-03120: two-task
conversion routine: integer overflow" Error.
This error occurs only for CLOB Type and only if I try to connect to
Oracle using WebLogic JDriver/Oracle POOL.
IMPORTANT NOTE: I can read CLOB or any other data using direct JDBC
connection to ORacle with out any problem.
Below Please find the JAVA CODE for Both Working and NON Working .
Created a Connection Pool as:
Name: MyJDBCConnectionPool
URL : jdbc:weblogic:oracle
DIRVER:weblogic.jdbc.oci.Driver
NON WORKING JAVA CODE (USES WEBLOGIC JDBC CONNECTION POOL TO ORACLE):
Driver myDriver =
(Driver)Class.forName("weblogic.jdbc.pool.Driver").newInstance();
Connection mconn =
myDriver.connect("jdbc:weblogic:pool:MyJDBCConnectionPool",null);
mconn.setAutoCommit (false);
CallableStatement cs = mconn.prepareCall("{call
P_XMLTEST2(?)}"); //This returns a CLOB
cs.registerOutParameter(1,java.sql.Types.CLOB);
cs.execute();
Clob clob = null;
clob = cs.getClob(1);
String data =new String();
data = clob.getSubString(1, (int)clob.length());
System.out.println(data); //print the data
data = null;
clob=null;
cs.close();
WORKING JAVA CODE (USES DIRECT THIN JDBC CONNECTION TO ORACLE):
Driver myDriver =
(Driver)Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
Connection mconn =
myDriver.connect("jdbc:oracle:thin:@server:1521:DB",null);
mconn.setAutoCommit (false);
CallableStatement cs = mconn.prepareCall("{call
P_XMLTEST2(?)}"); //This returns a CLOB
cs.registerOutParameter(1,java.sql.Types.CLOB);
cs.execute();
Clob clob = null;
clob = cs.getClob(1);
String data =new String();
data = clob.getSubString(1, (int)clob.length());
System.out.println(data); //print the data
data = null;
clob=null;
cs.close();
ERROR MESSAGE:
ORA-03120: two-task conversion routine: integer overflow
I appreciate your help on this problem.PROBLEM DESCRIPTION :
When I try to read a clob from Oracle, I receive "ORA-03120: two-task
conversion routine: integer overflow" Error.
This error occurs only for CLOB Type and only if I try to connect to
Oracle using WebLogic JDriver/Oracle POOL.
IMPORTANT NOTE: I can read CLOB or any other data using direct JDBC
connection to ORacle with out any problem.
Below Please find the JAVA CODE for Both Working and NON Working .
Created a Connection Pool as:
Name: MyJDBCConnectionPool
URL : jdbc:weblogic:oracle
DIRVER:weblogic.jdbc.oci.Driver
NON WORKING JAVA CODE (USES WEBLOGIC JDBC CONNECTION POOL TO ORACLE):
Driver myDriver =
(Driver)Class.forName("weblogic.jdbc.pool.Driver").newInstance();
Connection mconn =
myDriver.connect("jdbc:weblogic:pool:MyJDBCConnectionPool",null);
mconn.setAutoCommit (false);
CallableStatement cs = mconn.prepareCall("{call
P_XMLTEST2(?)}"); //This returns a CLOB
cs.registerOutParameter(1,java.sql.Types.CLOB);
cs.execute();
Clob clob = null;
clob = cs.getClob(1);
String data =new String();
data = clob.getSubString(1, (int)clob.length());
System.out.println(data); //print the data
data = null;
clob=null;
cs.close();
WORKING JAVA CODE (USES DIRECT THIN JDBC CONNECTION TO ORACLE):
Driver myDriver =
(Driver)Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
Connection mconn =
myDriver.connect("jdbc:oracle:thin:@server:1521:DB",null);
mconn.setAutoCommit (false);
CallableStatement cs = mconn.prepareCall("{call
P_XMLTEST2(?)}"); //This returns a CLOB
cs.registerOutParameter(1,java.sql.Types.CLOB);
cs.execute();
Clob clob = null;
clob = cs.getClob(1);
String data =new String();
data = clob.getSubString(1, (int)clob.length());
System.out.println(data); //print the data
data = null;
clob=null;
cs.close();
ERROR MESSAGE:
ORA-03120: two-task conversion routine: integer overflow
I appreciate your help on this problem. -
How to transform data received from file adapter
hi',
I am reading the data from XML file using file adapter, now I want to write the same contents which I have read from this file to a different/new XML file, the issue is I am unable to perform a transform here, when I use a transform with source element as the output of the file read and target as the input to the new file it is writing an empty file,
I have checked the audit trail which showsme that the transform is empty.
please tell me how can I transform the element which I have received from one file to make them as input to next file
thanks
Yatanthanks James for input, this is my XML and XSD files
XML file:
<?xml version="1.0" ?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://www.example.org"
targetNamespace="http://www.example.org"
elementFormDefault="qualified">
<emp>
<name>yatan</name>
<age>28</age>
</emp>
</xsd:schema>
XSD File:
<?xml version="1.0" encoding="windows-1252" ?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://www.example.org"
targetNamespace="http://www.example.org"
elementFormDefault="qualified">
<xsd:element name="readfile">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="name" type="xsd:string"/>
<xsd:element name="empid" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
I am reading XML file, I will describe my process.
1.) File adapter>read operation ---> receive activity
2.) Transform > source(receive input variable) <--->target(Invoke input variable)
3.) File adapter > write operation ---> invoke activity
Now when I am deploying this process it is sucessfully completing and able to read the file.
when I check the audit trail receive activity shows XML data but when I check the transform it
shows empty as below, however the write activity is performed which creates a xml file but no values in the elements
transform in audit trail
<Invoke_1_Write_InputVariable>
-<part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="readfile">
-<readfile xmlns:ns0="http://www.example.org" xmlns="http://www.example.org">
<ns0:name/>
<ns0:empid/>
</readfile>
</part>
</Invoke_1_Write_InputVariable>
this is the code for my .bpel file
<?xml version = "1.0" encoding = "UTF-8" ?>
<!--
Oracle JDeveloper BPEL Designer
Created: Wed May 19 15:04:22 IST 2010
Author: yatanveer.s
Purpose: Empty BPEL Process
-->
<process name="ReadXMLFile2"
targetNamespace="http://xmlns.oracle.com/ReadXMLFile2"
xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
xmlns:ns4="http://xmlns.oracle.com/pcbpel/adapter/file/FileReadSync/"
xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:client="http://xmlns.oracle.com/ReadXMLFile2"
xmlns:ora="http://schemas.oracle.com/xpath/extension"
xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath"
xmlns:ns1="http://xmlns.oracle.com/pcbpel/adapter/file/ReadFile/"
xmlns:ehdr="http://www.oracle.com/XSL/Transform/java/oracle.tip.esb.server.headers.ESBHeaderFunctions"
xmlns:ns3="http://www.example.org"
xmlns:ns2="http://xmlns.oracle.com/pcbpel/adapter/file/WriteFile/"
xmlns:bpelx="http://schemas.oracle.com/bpel/extension"
xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc">
<!--
PARTNERLINKS
List of services participating in this BPEL process
-->
<partnerLinks>
<partnerLink myRole="Read_role" name="ReadFile"
partnerLinkType="ns1:Read_plt"/>
<partnerLink name="WriteFile" partnerRole="Write_role"
partnerLinkType="ns2:Write_plt"/>
</partnerLinks>
<variables>
<variable name="Receive_1_Read_InputVariable"
messageType="ns1:readfile_msg"/>
<variable name="Invoke_1_Write_InputVariable"
messageType="ns2:readfile_msg"/>
</variables>
<!--
VARIABLES
List of messages and XML documents used within this BPEL process
-->
<!--
ORCHESTRATION LOGIC
Set of activities coordinating the flow of messages across the
services integrated within this business process
-->
<sequence name="main">
<receive name="Receive_1" partnerLink="ReadFile" portType="ns1:Read_ptt"
operation="Read" variable="Receive_1_Read_InputVariable"
createInstance="yes"/>
<assign name="Transform_1">
<bpelx:annotation>
<bpelx:pattern>transformation</bpelx:pattern>
</bpelx:annotation>
<copy>
<from expression="ora:processXSLT('Transformation_3.xsl',bpws:getVariableData('Receive_1_Read_InputVariable','readfile'))"/>
<to variable="Invoke_1_Write_InputVariable" part="readfile"/>
</copy>
</assign>
<invoke name="Invoke_1" partnerLink="WriteFile" portType="ns2:Write_ptt"
operation="Write" inputVariable="Invoke_1_Write_InputVariable"/>
</sequence>
</process> -
How to transformed data from File to DB but the data to be insert two tables parallel?
Hi friends ,I am new to Oracle SOA ,I have one requirement for the project
actually in these project
1.I have to read three different types of files (Employee info,Purchase Order Info,Salaes Order Info) through file adapter these records are to be store in data base
transaction table.In these transaction table contains WHO columns and payload with clob data type which contains each record in xml form.
2. Now I have to take these payload data which is in xml form and store in the respective table(employee or PO or SO) .I have to call these in dynamically.
so please give me ideas and suggesstions ,,
thanks in advanceRoger,
I don't know about simple way to load data from file into a table using button from your application,
Maybe some piece of PL/SQL code with UTL_FILE or DBMS_LOB, or you can try to upload file to database using Apex "File browse" item, and then do some processing with DBMS_LOB... but it will require some work...
Maybe someone else could advice with some simple method I don't know...
However loading files using Apex Load Utility is quite easy.
You can use something like this to load data to views created on remote tables:
CREATE TABLE local_tmp_table AS SELECT * FROM view_on_remote_table WHERE 1=0;
--load data from file to created table using Apex Load utility
INSERT INTO view_on_remote_table SELECT * FROM local_tmp_table;
COMMIT;
DROP local_tmp_table;Or without views:
CREATE TABLE local_tmp_table AS SELECT * FROM remote_table@dblink WHERE 1=0;
--load data from file to created table using Apex Load utility
INSERT INTO remote_table@dblink SELECT * FROM local_tmp_table;
DROP local_tmp_table;Regards
Tomasz
Message was edited by:
Tomasz K. -
Trying to pass a CLOB from 8i to 9i
Hello all,
I am trying to select a CLOB data from oracle 8i and trying to insert it into a global temp table in Orace 9i. I am getting the following error...
DECLARE
l_clob CLOB;
BEGIN
-- select clob data into a local variable in oracle 8i
select SUCCESS_RESULTS
into l_clob
from xxcss_ssf_request_results
where request_id =11111 ;
-- select clob data into a local variable in oracle 9i
insert into xx@XXCSS_APPS_CTS.COM(a)VALUES(l_clob);
COMMIT;
END;
ORA-00942: table or view does not exist
ORA-02063: preceding line from XXCSS_APPS_CTS
ORA-06512: at line 12
Is there anyway I can achieve this functionality.
Thanks,
ArunHi,
Did you can, under sql*plus :
select * from xx@XXCSS_APPS_CTS.COM;Maybe the user which used for the dblink has not the grant as well.
Nicolas. -
Unable to read rdbms_server_dn from init.ora
I encounter a error message from trace file Oracle version is v8.1.7.0, windows NT server.
But the database is working fine.., just the trace file often been amend with this message.
*** SESSION ID:(14.482) 2006-09-27 08:40:36.453
Unable to read rdbms_server_dn from init.ora
Can some one help to solve it?
Thankshi
refresh ur cache memory as
Open IR : Environment -
> Clear SLD Data Cache.
now try to import the same.
evenif u wont get use Tcode: SXI_CACHE and from menu bar use as
XI RunTime Cahche------>Start Delta Refresh Cache (F6).
regards
sreeni -
Error reading from file glibc-2.5-24.i686.rpm RHEL 5 Setup stuck at 80%
Hi, I am installing Oracle 10g on RHEL 5 (Red Hat Enterprise Linux 5) machine I am facing two problems
1) while installing the rpm packages the following package gave an error
Error reading from file glibc-2.5-24.i686.rpm
2) I still gave a try to runInstaller command the installer opened but was stuck at 80%
I have 3 GB ram and 320GB hard drive I am not sure what to put in the swap memory and other settings i blindly followed instructions given here
http://www.oracle-base.com/articles/10g/OracleDB10gR2InstallationOnRHEL5.php
What could be the problem where do I find the error log if its created
Please help me
Thanks
Edited by: 891355 on Nov 6, 2011 12:06 PMI found the installActions file in the installer folder and I think this could be the problem
INFO: The 'shiphomeproperties.xml' file is missing from shiphome location '/home/oracle/Desktop/database/install/../stage/products.xml.' Add this file to the 'Disk1/stage' directory of the shiphome.
though I am attaching the log file for more details do you think the installer is corrupt :(
InstallActions log file ==> http://www.mediafire.com/?nh7mx7bxqht9ovu
Edited by: 891355 on Nov 6, 2011 1:35 PM -
Cannot deploy process flow package specification from file
Hi,
we are using owb 11gr2 on linux. We successfully managed to deploy mappings and tables into a specification file, and then deploy from that file into the target database (RAC). But when we try to deploy a process flow package we run into an error:
A process flow package can be deployed to a specification file. But a deployment from that specification file fails with the error: " OMB05623: Cannot deploy specification from file. Exception follows. nulll"
### SETUP
set CONN_DESIGN "xxx"
set CONN_TARGET_DESIGN "yyy"
set CONN_TARGET_RT "xxx'"
set DIR "D:\\tmp"
set RELEASE "V0_2"
set file "$DIR\\$RELEASE"
set plan "FILE_DEPLOY_$RELEASE"
### Deployment via control center: works!
OMBCONNECT $CONN_DESIGN
OMBCONNECT CONTROL_CENTER $CONN_TARGET_RT
OMBCC '/KLINGEL_DWH'
OMBCREATE TRANSIENT DEPLOYMENT_ACTION_PLAN '$plan'
OMBALTER DEPLOYMENT_ACTION_PLAN '$plan' ADD ACTION 'PF_TEST' SET PROPERTIES (OPERATION) VALUES ('REPLACE') SET REFERENCE PROCESS_FLOW_PACKAGE '/KLINGEL_DWH/WF_DWH/PF_TEST'
OMBDEPLOY DEPLOYMENT_ACTION_PLAN '$plan'
OMBDISCONNECT CONTROL_CENTER
OMBCOMMIT
OMBDISCONNECT
### Deployment via specificatin file: fails!
OMBCONNECT $CONN_DESIGN
OMBCONNECT CONTROL_CENTER $CONN_DESIGN
OMBCC '/KLINGEL_DWH'
OMBCREATE TRANSIENT DEPLOYMENT_ACTION_PLAN '$plan'
OMBALTER DEPLOYMENT_ACTION_PLAN '$plan' ADD ACTION 'PF_TEST' SET PROPERTIES (OPERATION) VALUES ('REPLACE') SET REFERENCE PROCESS_FLOW_PACKAGE '/KLINGEL_DWH/WF_DWH/PF_TEST'
OMBDEPLOY DEPLOYMENT_ACTION_PLAN '$plan' AS SPECIFICATION TO '$file.xml'
OMBDROP DEPLOYMENT_ACTION_PLAN '$plan'
OMBDISCONNECT CONTROL_CENTER
OMBCOMMIT
OMBDISCONNECT
OMBCONNECT CONTROL_CENTER $CONN_TARGET_RT
OMBDEPLOY SPECIFICATION FROM '$file.xml'
### OMB05623: Deployment von Spezifikation aus Datei nicht möglich. Exception folgt. null
###OMB05623: Cannot deploy specification from file. Exception follows. nullIf we use the operation DROP it works. But REPLACE and CREATE do not work.
We get the error regardless whether the code is executed as an expert or on the command line at a windows client.
Does anyone knows a workaround?
Deployment via a specification file is a must due to license and architecture requirements.
Thanks,
Carsten.Its woked fine for me for OWB 10.2.0.4 .... some steps are missing from code like
when you are connecting again it should be
OMBDISCONNECT
OMBCONNECT CONTROL_CENTER $CONN_TARGET_RT
OMBDISCONNECT
OMBCC '/KLINGEL_DWH'
OMBCONNECT CONTROL_CENTER $CONN_TARGET_RTI think you can try the same on different system .
Cheers
Nawneet -
HT1923 error reading from file
Error Raeding from file C:\Program File (x86)/common files\apple\coreFP\coreFP.dll. Werify that the file exists and that you can access it?
How do we repair this error?I found the installActions file in the installer folder and I think this could be the problem
INFO: The 'shiphomeproperties.xml' file is missing from shiphome location '/home/oracle/Desktop/database/install/../stage/products.xml.' Add this file to the 'Disk1/stage' directory of the shiphome.
though I am attaching the log file for more details do you think the installer is corrupt :(
InstallActions log file ==> http://www.mediafire.com/?nh7mx7bxqht9ovu
Edited by: 891355 on Nov 6, 2011 1:35 PM -
Hi all
I'm trying to install SQL 2008 Express on my Computer: Hp compact DX7300 Slim tower.
and get this error:
TITLE: Microsoft SQL Server 2008 Setup
The following error has occurred:Error reading from file d:\8268cd7b247d294de359c9\x86\setup\sql_engine_core_inst_msi\PFiles\SqlServr\MSSQL.X\MSSQL\Binn\Template\msdbdata.mdf. Verify that the file exists and that you can access it.
Click 'Retry' to retry the failed action, or click 'Cancel' to cancel this action and continue setup.
For help, click: http://go.microsoft.com/fwlink?LinkID=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=10.0.1823.0&EvtType=0xF45F6601%25401201%25401
Log file
Overall summary:
Final result: SQL Server installation failed. To continue, investigate the reason for the failure, correct the problem, uninstall SQL Server, and then rerun SQL Server Setup.
Exit code (Decimal): -2068643839
Exit facility code: 1203
Exit error code: 1
Exit message: SQL Server installation failed. To continue, investigate the reason for the failure, correct the problem, uninstall SQL Server, and then rerun SQL Server Setup.
Start time: 2014-12-09 23:22:03
End time: 2014-12-09 23:40:28
Requested action: Install
Log with failure: C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20141209_232121\sql_engine_core_inst_Cpu32_1.log
Exception help link: http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=10.0.1823.0
Machine Properties:
Machine name: VISTA-PC
Machine processor count: 2
OS version: Windows Vista
OS service pack: Service Pack 1
OS region: United States
OS language: English (United States)
OS architecture: x86
Process architecture: 32 Bit
OS clustered: No
Product features discovered:
Product Instance Instance ID Feature
Language Edition Version Clustered
Package properties:
Description: SQL Server Database Services 2008
SQLProductFamilyCode: {628F8F38-600E-493D-9946-F4178F20A8A9}
ProductName: SQL2008
Type: RTM
Version: 10
SPLevel: 0
Installation location: d:\8268cd7b247d294de359c9\x86\setup\
Installation edition: EXPRESS
User Input Settings:
ACTION: Install
ADDCURRENTUSERASSQLADMIN: False
AGTSVCACCOUNT: NT AUTHORITY\NETWORK SERVICE
AGTSVCPASSWORD: *****
AGTSVCSTARTUPTYPE: Disabled
ASBACKUPDIR: Backup
ASCOLLATION: Latin1_General_CI_AS
ASCONFIGDIR: Config
ASDATADIR: Data
ASDOMAINGROUP: <empty>
ASLOGDIR: Log
ASPROVIDERMSOLAP: 1
ASSVCACCOUNT: <empty>
ASSVCPASSWORD: *****
ASSVCSTARTUPTYPE: Automatic
ASSYSADMINACCOUNTS: <empty>
ASTEMPDIR: Temp
BROWSERSVCSTARTUPTYPE: Disabled
CONFIGURATIONFILE: C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20141209_232121\ConfigurationFile.ini
ENABLERANU: True
ERRORREPORTING: False
FEATURES: SQLENGINE,REPLICATION
FILESTREAMLEVEL: 0
FILESTREAMSHARENAME: <empty>
FTSVCACCOUNT: <empty>
FTSVCPASSWORD: *****
HELP: False
INDICATEPROGRESS: False
INSTALLSHAREDDIR: C:\Program Files\Microsoft SQL Server\
INSTALLSHAREDWOWDIR: C:\Program Files\Microsoft SQL Server\
INSTALLSQLDATADIR: <empty>
INSTANCEDIR: C:\Program Files\Microsoft SQL Server\
INSTANCEID: SQLExpress
INSTANCENAME: SQLEXPRESS
ISSVCACCOUNT: NT AUTHORITY\NetworkService
ISSVCPASSWORD: *****
ISSVCSTARTUPTYPE: Automatic
MEDIASOURCE: d:\8268cd7b247d294de359c9\
NPENABLED: 0
PID: *****
QUIET: False
QUIETSIMPLE: False
RSINSTALLMODE: FilesOnlyMode
RSSVCACCOUNT: <empty>
RSSVCPASSWORD: *****
RSSVCSTARTUPTYPE: Automatic
SAPWD: *****
SECURITYMODE: <empty>
SQLBACKUPDIR: <empty>
SQLCOLLATION: SQL_Latin1_General_CP1_CI_AS
SQLSVCACCOUNT: NT AUTHORITY\NETWORK SERVICE
SQLSVCPASSWORD: *****
SQLSVCSTARTUPTYPE: Automatic
SQLSYSADMINACCOUNTS: VISTA-PC\VISTA
SQLTEMPDBDIR: <empty>
SQLTEMPDBLOGDIR: <empty>
SQLUSERDBDIR: <empty>
SQLUSERDBLOGDIR: <empty>
SQMREPORTING: False
TCPENABLED: 0
X86: False
Configuration file: C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20141209_232121\ConfigurationFile.ini
Detailed results:
Feature: Database Engine Services
Status: Failed: see logs for details
MSI status: Passed
Configuration status: Passed
Feature: SQL Server Replication
Status: Failed: see logs for details
MSI status: Passed
Configuration status: Passed
Rules with failures:
Global rules:
Scenario specific rules:
Rules report file: C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20141209_232121\SystemConfigurationCheck_Report.htm
I will very appriciate if someone can help me solve it. I was trying to set Full control for my account in Properties/Security of root folder and try again but error is still.
Many thanksHi Foreverduy,
Before you run SQL Server 2008 express setup, make sure that you have installed Windows installer 4.5 and.NET Framework 3.5 SP1 manually. For more information about the process, please refer to the article:
http://msdn.microsoft.com/en-us/library/ms143506(v=sql.100).aspx. Moreover, please turn off all the third-party softwares which could prohibit the installation process.
According to your error message, the issue could be due to that your account has no rights to install SQL Server, or the corruption on the media.
Firstly, please ensure that your account has admin rights. Also make sure that you right-click the setup.exe and choose “Run as administrator” to complete the installation.
Secondly, please check if "msdbdata.mdf" file exists at d:\8268cd7b247d294de359c9\x86\setup\sql_engine_core_inst_msi\PFiles\SqlServr\MSSQL.X\MSSQL\Binn\Template. If it exists, please make sure that your account has read permission to the extracted
folder.
However, if the file doesn't exist in the extraction, the media could be corrupt. Please download the
media
again and check if the issue still occurs.
Regards,
Michelle Li
Maybe you are looking for
-
SQL Developer locks after splash screen
I have succesfully installed SQL Developer on 2 machines in our group and it works fine. However on the machine where we really need it (mine) it absolutely refuses to work. It appears to start up, the splash screen appears and the sqldeveloper.exe a
-
Ical not publishing to dotmac--new information
Hello, I have been having a hard time with icalendar not publishing on dotmac. It started happening suddenly on my upgrade to 10.5.2. The dotmac support people have been responding to my inquiries with the following suggestions (eached bumped to a hi
-
when i create a sales bom, all the components display as independent items on the picklist. why? and it also does not display the parent item. the picker needs to see this information! how can i make that show up on the picklist? any ideas?
-
Major wordpress issues in mozilla browser
I have been using wordpress for a number of years now, mainly in Chrome. I had been repeatedly adviced to adopt firefox because it kept you from Google's prying eyes. I took the advice onboard and ran into a whole heap of issues... 1. In chrome I use
-
hi i am new in the mac world. just started and no way to see the Macintosh HD in the finder windows. i have no permit to save files on Macintosh HD. some idea on how to see it and save info on it ? thanks a lot