Retrieve binary/BLOB from Oracle using CF8
Hi all, I hope someone can shed some light on a problem I encounter. We rotated CF6/CF7/CF8 successively on several different versions of Oracle. I've been storing binary files in the database and retrieve it without any problem. I do it like this (an example, pretend it's within a cffunction):
< cfset returnStruct = StructNew() var >
< name cfquery = "get" datasource = "#dsn #" >
SELECT doc OF #usr # documents WHERE annual = 1
< / cfquery >
< cfset returnStruct ['document'] = get.doc >
Until the last update of Oracle I could do < cfdump var = #returnStruct # > and see if binary is stored. Now, when I do a cfdump I get an empty string--not even a binary file. When I run the query on the database itself I always get the BLOB so it's something between CF and Oracle which does not play well. I have no chance of finding anyone else with this problem. I don't know the version of the Oracle patch (I asked so I should know soon), but it's something recent to 11g.
If anyone has any ideas or tasks that I am doing wrong, please let me know. I do this for many years so I don't know how else to do it. Thank you!
I just heard of another team with the same problem and found the fix. ColdFusion needs a driver update. The Oracle 11.2.0.3 update will not ColdFusion retrieve binary data without updating the drivers of ColdFusion. I hope this information helps someone.
Tags: ColdFusion
Similar Questions
-
DBMS_SCHEDULER - trying to create and run a UNIX shell script from Oracle
How can I run Script Shell Unix from Oracle using DBMS_SCHEDULER?
After reading many examples online, I finished the 3 steps below.
Create program, create jobs, run task. On my 3rd stage, I get the following error.
How can I make sure that the work was created?
ORA-27475: "APPS. POSPAY_FILE_CHECK_JOB' must be work
(1) create the program
(2) create jobsBEGIN dbms_scheduler.create_program( program_name => 'POSPAY_FILE_CHECK_PROG', program_type => 'EXECUTABLE', program_action => '/home/ldcgroup/ldccbc/POSPAY_USC2_CHECK.sh', number_of_arguments => 0, enabled => TRUE, comments => 'Test Program' ); END;
(3) the job (not calendar, I'll run this a concurrent request of EBS)BEGIN DBMS_SCHEDULER.CREATE_JOB ( job_name => 'POSPAY_CHECK_FILE_JOB', program_name => 'POSPAY_CHECK_FILE_PROG', enabled => TRUE); END; /
BEGIN DBMS_SCHEDULER.run_job ( job_name => 'POSPAY_FILE_CHECK_JOB'); END; /
Of [documentation | http://download.oracle.com/docs/cd/E11882_01/server.112/e10595/scheduse002.htm#i1009668]
The job is created disabled. You must enable it with DBMS_SCHEDULER.ENABLE before the Scheduler will automatically run it. Jobs are set to be automatically dropped by default after they complete. Setting the auto_drop attribute to FALSE causes the job to persist.
-
[Urgent] Retrieve data from oracle datafile partially crushed
We have a big problem, we stopped in a backup/restore process from production to the test database because we found that some development SP/package code was not saved previous test DB. Now we have partially crushed oracle datafile and I guess that / hope the compiled code was stored in the last section of the data file, there is a way to retrieve the data from this data file? I intend to use an editor of exadcimal as a last resource, hoping that the data was not encrypted, but if there is another useful tool could be better. There are other storage media like newspapers/redo logs reach where we can try to find the lost code? The machine was not under a protocol of backup, so we can't count on that.
Help, please
FabrizioMS code is stored in the dictionary (System tablespace), if you were restoring with RMAN, is the last file to restore.
Good luck!
: p -
How to transfer data from oracle to the web service using ODI with axis2 tech
Hi all
Can someone cause a document or markets about 'How to transfer data from oracle to the web service with the help of ODI with AXIS2 technology'
If any person with a document or markets, please share it with me
Thank you
PhaniI can give you a few examples of web services in ODI, perhaps that you find them useful?
Try: -.
http://John-Goodwin.blogspot.com/2009/04/ODI-series-Web-services.html
http://John-Goodwin.blogspot.com/2009/05/ODI-series-Web-services-part-3.html
http://John-Goodwin.blogspot.com/2009/05/ODI-series-Web-services-part-4.htmlSee you soon
John
http://John-Goodwin.blogspot.com/ -
SOS! -Error to load data from Oracle 11 g to Essbase using ODI
Hi all.
I want to load data from oracle database to essbase using ODI.
I have set up correctly the Hyperion essbase physical and logical topology manager and got the structure ESSBASE BASIC app DEMO.
The problem is.
1. when I try see data right click on the table of essbase.
va.sql.SQLException: driver must be specified
at com.sunopsis.sql.SnpsConnection.a (SnpsConnection.java)
at com.sunopsis.sql.SnpsConnection.testConnection (SnpsConnection.java)
at com.sunopsis.sql.SnpsConnection.testConnection (SnpsConnection.java)
at com.sunopsis.graphical.frame.b.jc.bE (jc.java)
at com.sunopsis.graphical.frame.bo.bA (bo.java)
at com.sunopsis.graphical.frame.b.ja.dl (ja.java)
to com.sunopsis.graphical.frame.b.ja. < init > (ja.java)
to com.sunopsis.graphical.frame.b.jc. < init > (jc.java)
I got the answer of partisan Oracle it's ok, just omit it. The second problem will appear.
2 create an interface between the oracle and essbase database, click on the option ' staging of deffirent from the area of the "(ce qui signifie que la mise en scène est créé à la base de données oracle) target, and using IKM SQL for Hyperion Essbase (metadata), run this interface".
org.apache.bsf.BSFException: exception of Jython:
Traceback (innermost last):
"< String >" file, line 61, in there?
com.hyperion.odi.essbase.ODIEssbaseException: invalid value specified [RULES_FILE] for the load option [null]
at com.hyperion.odi.essbase.ODIEssbaseMetaWriter.validateLoadOptions (unknown Source)
at com.hyperion.odi.essbase.AbstractEssbaseWriter.beginLoad (unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (unknown Source)
at java.lang.reflect.Method.invoke (unknown Source)
at org.python.core.PyReflectedFunction.__call__ (PyReflectedFunction.java)
at org.python.core.PyMethod.__call__ (PyMethod.java)
at org.python.core.PyObject.__call__ (PyObject.java)
at org.python.core.PyInstance.invoke (PyInstance.java)
to org.python.pycode._pyx1.f$ 0 (< string >: 61)
to org.python.pycode._pyx1.call_function (< string >)
at org.python.core.PyTableCode.call (PyTableCode.java)
at org.python.core.PyCode.call (PyCode.java)
at org.python.core.Py.runCode (Py.java)
at org.python.core.Py.exec (Py.java)
I am very confused by it. Someone give me a solution or other docs.
Ethan.Hello
You say that you are loading, but you chose the KM for the loading of metadata?
If you load metadata then you must provide a rules file, if you are loading and then choose the KM - IKM SQL for Hyperion Essbase (DATA)Ok?
See you soon
John
http://John-Goodwin.blogspot.com/ -
How to load the date and time from text file to oracle using sqlloader table
Hi friends
I need you to show me what I miss loading date and time text file in a table oracle using sqlloader
It's my data in this way (c:\external\my_data.txt)
my table in the database emp27369,SMITH,17-NOV-81,09:14:04,CLERK,20 7499,ALLEN,01-MAY-81,17:06:08,SALESMAN,30 7521,WARD,09-JUN-81,17:06:30,SALESMAN,30 7566,JONES,02-APR-81,09:24:10,MANAGER,20 7654,MARTIN,28-SEP-81,17:24:10,SALESMAN,30
the code for the control in this path (c:\external\ctrl.ctl) filecreate table emp2 (empno number, ename varchar2(20), hiredate date, etime date, ejob varchar2(20), deptno number);
This is the error:load data infile 'C:\external\my_data.txt' into table emp2 fields terminated by ',' (empno, ename, hiredate, etime, ejob, deptno)
any help that I enjoyedC:\>sqlldr scott/tiger control=C:\external\ctrl.ctl SQL*Loader: Release 10.2.0.1.0 - Production on Mon May 31 09:45:10 2010 Copyright (c) 1982, 2005, Oracle. All rights reserved. Commit point reached - logical record count 5 C:\>
Thank you
Published by: user10947262 on May 31, 2010 09:47load data
INFILE 'C:\external\my_data.txt '.
in the table emp2
fields completed by «,»
(empno, ename, hiredate, etime, Elysa, deptno)Try
load data infile 'C:\external\my_data.txt' into table emp2 fields terminated by ',' (empno, ename, hiredate, etime "to_date(:etime,'hh24:mi:ss')", ejob, deptno)
This is the error:
C:\>sqlldr scott/tiger control=C:\external\ctrl.ctl SQL*Loader: Release 10.2.0.1.0 - Production on Mon May 31 09:45:10 2010 Copyright (c) 1982, 2005, Oracle. All rights reserved. Commit point reached - logical record count 5 C:\>
This isn't a mistake, you can see errors in the log file and bad.
-
Hello
I want to join the two tables to retrieve the data from the columns of the two table passing parameters to the join query. Tables have primary and foreign key relationships
Details of the table
Alert-1 - AlertCode (FK), AlerID (PK)
2 AlertCode-AlertDefinition-(PK)
Help, please
----------
Hi Vincent,.
I think that you have not worked on adf 12.1.3. In adf 12.1.3 you don't have to explicitly create the association. When you create the EO to your table, Association xxxxFkAssoc, will be created by ADF12.1.3 for you automatically. Please try this and do not answer anything... You can also follow the links below. I solved the problem by using the following link
---
-
Extract data from Oracle into excel file
Hello
I have a requirement where in I need to extract data from Oracle into excel file and the worksheet excel name should be 'given '.
for example. Excel 'AR Data_DDMMYY' file name and the name of the "Data" sheet excel
I used the UTL_FILE API to extract the data delimited by tabs that you can open in excel, but it's not exactly an excel file as the name of the worksheet is the same as the name of the file.
I tried to use utl_file.fcopy and frename.
Is it possible to do it using PLSQL?
Select * from version of v$.
Example Code:Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi PL/SQL Release 10.2.0.5.0 - Production "CORE 10.2.0.5.0 Production" TNS for HPUX: Version 10.2.0.5.0 - Production NLSRTL Version 10.2.0.5.0 - Production
Thank youdeclare cursor c is select * from scott.emp; v varchar2(100); f utl_file.file_type; file_name varchar2(100) := 'AR Data.xls'; dir varchar2(50) := 'CESDIR191710'; --select * from dba_directories begin f := utl_file.fopen(dir, file_name, 'W'); v := 'EMPNO'||chr(9)||'ENAME'||chr(9)||'JOB'||chr(9)||'SAL'||chr(9)||'HIREDATE'||chr(9)||'DEPTNO'; utl_file.put_line(f, v); for i in c loop v := i.empno||chr(9)||i.ename||chr(9)||i.job||chr(9)||i.sal||chr(9)||i.hiredate||chr(9)||i.deptno; utl_file.put_line(f, v); end loop; utl_file.fclose(f); --utl_file.frename(dir, file_name, dir, replace(file_name, '.xls', '_')||to_char(sysdate, 'MMDDYY')||'.xls', false); utl_file.fcopy(dir, file_name, dir, replace(file_name, '.xls', '_')||to_char(sysdate, 'MMDDYY')||'.xls'); end;
ImranHello
I tried to change the .xlsx to .xls and it gives a note at the opening of the file "the file you are trying to open, abc.xls, is in a different format that it is specified by the file extension. Check that the file is not corrupted and precedes from a trusted source before you open the file. Do you want to open it now? »
When you rename the file does not solve your problem.
Anton Scheffer package generates a file in format xlsx Office 2010. When rename you it with the .xls extension, then Office 2010 will give you the warning that the file format does not match the extension.but the requirement has to generate excel 2003 file.
The xml_spreadsheet package writes a format that was introduced with Office 2003, but you must use .xml as extension in other Office 2010 will give you the same caveat.
To write the real xls version (binary), you can use Apache POI. You will need to import Java classes in your db and write a PL/SQL wrapper. Or you can use one of the options above, writing the output to a windows server and then use Excel to open and save in the required format.You must decide whether it is easier to write the binary xls format or to convince the customer to accept other formats that can be opened with Excel.
Concerning
Marcus -
ODI or FDM to extract data from Oracle ERP
I want to extract data directly from Oracle ERP GL module in HFM. I use ERPi and ODI. Should I also use FDM to retrieve the data, or if I can load data in HFM using just ERPi and ODI?
I finished the configuration of the ERPi and I am currently in the process of installation and configuration ODI.
All entries on the best practices that I have to follow during the configuration of ODI?You don't need to use FDM. ERPI can load directly to HFM as a stand-alone product and you still get the feature drillback. Use FDM, if you need additional features that offers for example validation of intersection, to check the reports, logic etc.
-
DB Link from Oracle to SQL Server error
Dear friends,
I need met some select on tables that are in SQL Server 2005 from Oracle 10 g.
I followed the steps:
http://www.DBA-Oracle.com/t_heterogeneous_database_connections_sql_server.htm
I could ping TNS who is successful, but only when I run a select I get this error.
ERROR on line 1:
ORA-28545: error diagnosed by Net8 when connecting to an agent
Cannot retrieve the text of the message NETWORK/NCR 65535
ORA-02063: preceding 2 lines of SQLS
I checked my dsn name is in small caps completely everywhere where it is used (since its proposed in many sites).
Please guide me.
I'm looking for really come to a solution.
Kind regards
Nithsimilar use to Setup ODBC and datasource
http://www.databasejournal.com/features/Oracle/article.php/3442661/making-a-connection-from-Oracle-to-SQL-Server.htm
and then create server link in sql server after testing WLAN with oracle -
Can I retrieve text messages from the phone memory?
Can I retrieve text messages from the phone memory? I read that it is possible via iTunes and third party programs. It is of course possible, can what third-party program you recommend? (because I have no backup in iTunes)? I need to backup this message, because I have to use this evidence in court... I have Iphone 4 and iOS 7.1
Bardyt wrote:
Can I retrieve text messages from the phone memory? I read that it is possible via iTunes and third party programs. It is of course possible, can what third-party program you recommend? (because I have no backup in iTunes)? I need to backup this message, because I have to use this evidence in court... I have Iphone 4 and iOS 7.1
The only way to recover data from your phone is if you have backup icloud or iTunes.
If you have not made a backup, then sorry that data has disappeared.
you suggest that to start your backup device.
The backup of your iPhone, iPad and iPod touch - Apple Support
-
Retrieve text messages from old iphone with another carrier and its been reset?
Is it possible to retrieve text messages from old iphone with another carrier and its been reset? I have an iphone 4 that was with att then I switched to tmobile and I reset it as I was planninging on selligg, but I face some legal issues and I was wondering if it was still possible to be able to retrieve these messages? I also have an iphone 4S that I used after that id like these old messages tmobile too and I am currently usin g an iphone 5 c If anyone knows or can help make em let me know please thanks
If you have a backup of the 4 from iTunes or iCloud, messages can be in there.
-
Original title: transfer emails to new computer
Pls is it possible to somehow retrieve the emails from an Outlook Express account on a broken computer to transfer to my new computer which runs Windows Live Mail or do I need to get the old computer fixed? Thank you very much
You are welcome. If you can get the files from hard drive accessible, here's what you need to know.Transfer of data from Outlook Express and Windows Live Mail:
For Messages:Copy the * ENTIRE * OE message store folder to a flash drive. (Folders.dbx must be included). Place it on the desktop or another location on the computer using WLMail.
V-2011/2012: Menu button. Import Messages. Microsoft Outlook Express 6, and the point where it was saved.
Location of OE message store:
In OE: Tools | Options | Maintenance | Store folder will reveal the location of your Outlook Express files. Note the location and navigate on it in Explorer Windows or, copy and paste in start | Run.
In Windows XP the OE User (DBX and WAB) are by default marked as hidden. To view these files in Windows Explorer, you must enable Show hidden files and folders under start | Control Panel | Folder Options icon | Opinion, or in Windows Explorer. Tools | Folder options | View.
-
DB link from oracle to sql server
Hi all
Which is the easiest way to connect to sql server from oracle database? Require a separate permit? It's 11.1.0.7 on RHEL 5.7, 64 bit.
Kind regards
Vinod
Hello
There is a simple example using the 'free' method described here Ed
http://dbaharrison.blogspot.co.UK/2014/12/Oracle-talking-to-SQL-Server-over.html
See you soon,.
Rich
-
Import all the objects from Oracle Designer to SDDM 4.1.1
Hello
I installed SDDM 4.1.1.888 and you import from designer 10.1
I'm looking to import all the Designer items at a time.
Steps to follow:
1 / import from Oracle Designer model
2 / select connection
3 / Select Global shared activities
4 / Select an Application (in my case: SIS)
5 / Select all Tables (2022), views (919), sequences (274) and areas (49)
6 / finishing
After about 5-10 minutes, I get an error saying "there are errors in the import - check the log file ', then ' failed to generate design. See the log file for details.
The log file (this is the last part of the file):
2015-08-10 15:16:16, 932 [Thread-34] WARN ODOForeignKey - ODOForeignKey.generate () - cannot get the Index of the Table: SCC_CAT_RV
2015-08-10 15:16:16, 933 [Thread-34] WARN ODOForeignKey - ODOForeignKey.generate () - cannot get the Index of the Table: SCC_CAT_RV
2015-08-10 15:16:16, 934 [Thread-34] WARN ODOForeignKey - ODOForeignKey.generate () - cannot get the Index of the Table: SCC_CAT_RV
2015-08-10 15:16:16, 935 [Thread-34] WARN ODOForeignKey - ODOForeignKey.generate () - cannot get the Index of the Table: SCC_CAT_RV
2015-08-10 15:16:16, 936 [Thread-34] WARN ODOForeignKey - ODOForeignKey.generate () - cannot get the Index of the Table: SCC_DA_RV
2015-08-10 15:16:16, 937 [Thread-34] WARN ODOForeignKey - ODOForeignKey.generate () - cannot get the Index of the Table: SCC_RV
2015-08-10 15:16:16, 970 [Thread-34] ERROR DesignObject - exception listener caused:
java.lang.ClassCastException
2015-08-10 15:16:16, 970 [Thread-34] ERROR DesignObject - exception listener caused:
java.lang.ClassCastException
2015-08-10 15:16:16, 970 [Thread-34] ERROR DesignObject - exception listener caused:
java.lang.ClassCastException
2015-08-10 15:16:17, 033 [Thread-34] ERROR DesignObject - exception listener caused:
java.lang.ClassCastException
2015-08-10 15:16:17, 033 [Thread-34] ERROR DesignObject - exception listener caused:
java.lang.ClassCastException
2015-08-10 15:16:17, 033 [Thread-34] ERROR DesignObject - exception listener caused:
java.lang.ClassCastException
2015-08-10 15:16:17, 033 [Thread-34] ERROR DesignObject - exception listener caused:
java.lang.ClassCastException
2015-08-10 15:16:17, 034 [Thread-34] ERROR DesignObject - exception listener caused:
java.lang.ClassCastException
2015-08-10 15:16:17, 034 [Thread-34] ERROR DesignObject - exception listener caused:
java.lang.ClassCastException
2015-08-10 15:16:17, 034 [Thread-34] ERROR DesignObject - exception listener caused:
java.lang.ClassCastException
2015-08-10 15:16:17, 034 [Thread-34] ERROR DesignObject - exception listener caused:
java.lang.ClassCastException
2015-08-10 15:16:17, 034 [Thread-34] ERROR DesignObject - exception listener caused:
java.lang.ClassCastException
2015-08-10 15:16:17, 034 [Thread-34] ERROR DesignObject - exception listener caused:
java.lang.ClassCastException
2015-08-10 15:16:17, 128 [Thread-34] ERROR DesignObject - exception listener caused:
java.lang.ClassCastException
2015-08-10 15:16:17, 128 [Thread-34] ERROR DesignObject - exception listener caused:
java.lang.ClassCastException
2015-08-10 15:16:17, 243 [Thread-34] ERROR DesignObject - exception listener caused:
java.lang.ClassCastException
2015-08-10 15:16:17, 243 [Thread-34] ERROR DesignObject - exception listener caused:
java.lang.ClassCastException
2015-08-10 15:16:17, 244 [Thread-34] ERROR DesignObject - exception listener caused:
java.lang.ClassCastException
2015-08-10 15:16:17, 244 [Thread-34] ERROR DesignObject - exception listener caused:
java.lang.ClassCastException
2015-08-10 15:16:17, 260 [Thread-34] ERROR DesignObject - exception listener caused:
java.lang.ClassCastException
2015-08-10 15:16:17, 260 [Thread-34] ERROR DesignObject - exception listener caused:
java.lang.ClassCastException
2015-08-10 15:16:17, 288 [Thread-34] ERROR DesignObject - exception listener caused:
java.lang.ClassCastException
2015-08-10 15:16:17, 288 [Thread-34] ERROR DesignObject - exception listener caused:
java.lang.ClassCastException
2015-08-10 15:16:17, 288 [Thread-34] ERROR DesignObject - exception listener caused:
java.lang.ClassCastException
2015-08-10 15:16:17, 288 [Thread-34] ERROR DesignObject - exception listener caused:
java.lang.ClassCastException
2015-08-10 15:16:18, 465 [Thread-34] ERROR ODExtractionHandler - error when importing the repository Designer
java.lang.ClassCastException
2015-08-10 15:16:24, 900 [Thread-34] ERROR ODExtractionController - impossible to rearrange the Tables
java.lang.ClassCastException
2015-08-10 15:16:32, 699 [Thread-34] ERROR ODExtractionController - error generating Design: Untitled_1
java.lang.ClassCastException
If I import only the points of view, import works fine. If I import just the Tables, import works fine.
However, if I import the Tables and views I seem to lose the most sous-vues. If I import views and Tables, the sequence numbers are not transferred and a half subviews are missing. I can't win.
Any help would be appreciated.
Thank you
Jenny
Hi Jenny,
If I can import successfully with the old version, shouldn't I be able with the newest one?
As David said, you have a problem with the key foreign and probably views involved in the definition of the FK. DM 4.0.3 is not supported for FKs views. 4.1 DM has this support and try to import definitions from the repository of the designer.
So, if you can import with DM 4.0.3 and you are satisfied with the result then import with 4.0.3 and start using DM 4.1.
Philippe
Maybe you are looking for
-
All of our facilities improved to 33.0 this morning FirefoxMost of the users were then able to continue to use Firefox without problemsHowever, about 10% found that when they started Firefox, they were presented with black windows with white outline
-
After Firefox update 11/13/2011, audio no longer works
I take a course online and since Firefox updated tonight, I have no sound with video. It is the same for any u tube, etc.. No sound. The video is good, just no sound. Imperative that I get sound back. I guess that's a few add-on which was disabled, b
-
set preferences 'print email '.
Hello I bought the HP ENVY 4500 e-all-in-one series. I created "print email", and it works fine. I would like to simply set the preferences, print double-sided, i.e., b & w. Is this possible? If so, how? Thanks a lot for your help!
-
Engraving of a Zoom H2 CD in WAV format?
I'm lost - I made the USB connect to your computer the H2-I can read the files - with windows media - through the computer player. I burned a CD - R I can play the CD I did but only in the computer... How to make a CD that can be listened to in the
-
CQ62: bios password clear cq62
bios lost password can be changed. my code is 51873965