Forms 6.0 how to query clob column with oracle 9.2 DB
hi every body,
i made install for oracle 9.2 oracle DB every thing goes ok but when i made query in my form version 6.0 which have CLOB column the form closed automatically without any message?
and just for know when i run the same form with oracle 8.1.7 DB the form made query normally without any problem.
i want your help please.
Message was edited by:
mshaqalaih
I know there was a problem in 6i where you would get a crash if your query returned more than {Max Length} characters of the field representing the CLOB column.
Similar Messages
-
How to update html file in clob column in oracle
hi,
please help me how to update html file in clob column in oracle
ThanksThis is your main query as i am able to understand and you want to update your html file into terms columns based on conditions :
SELECT b.terms As terms
FROM chklst_item_x_enrlmnt_type a, prvdr_enrlmnt_agreement b
WHERE a.enrlmnt_type_cid = 1
AND a.chklst_item_cid = b.chklst_item_cid
AND a.chklst_item_cid = 79
AND a.oprtnl_flag = 'A'
AND b.oprtnl_flag = 'A'
AND TRUNC (SYSDATE) BETWEEN b.from_date AND b.TO_DATE;So i suggest below one but you need to create a directory where you can store your html file and then you can update .. And remaining consult Experts suggestions too as your
question is improperly posted . . .
DECLARE
vclob CLOB;
v_bfile BFILE := BFILENAME ('YOUR_DIR', 'filename.html');
BEGIN
SELECT b.terms
INTO vclob
FROM chklst_item_x_enrlmnt_type a, prvdr_enrlmnt_agreement b
WHERE a.enrlmnt_type_cid = 1
AND a.chklst_item_cid = b.chklst_item_cid
AND a.chklst_item_cid = 79
AND a.oprtnl_flag = 'A'
AND b.oprtnl_flag = 'A'
AND TRUNC (SYSDATE) BETWEEN b.from_date AND b.TO_DATE
FOR UPDATE;
DBMS_LOB.fileopen (v_bfile);
DBMS_LOB.loadfromfile (vclob, v_bfile, DBMS_LOB.getlength (v_bfile));
DBMS_LOB.fileclose (v_bfile);
END;
/ Regards.. -
How can i register column with in the query
hi all
how can i register column with in the query?Thanks.
In my business one, the column width was registed.
But I don't know how can I do it.
So I try to save the query again after change column width.
Then the query was opend with changed column width.
Is it right function?
Is there any way to register the column width?
It's very troublesome to change column width every time.
seiichi -
Fetching a text file into CLOB column in Oracle!
Can anyone please help me to find out how to fetch a text file present on the network on to the CLOB column in Oracle 8i?
I dont want to use BFILE for this.
Please help its urgent.
Love
Prathab
nullPrathab,
This is an example from the SQL package doc for DBMS_LOB, that reads from a bfile, and store in a lob.
CREATE OR REPLACE PROCEDURE Example_l2f IS
lobd BLOB;
fils BFILE := BFILENAME('SOME_DIR_OBJ','some_file');
amt INTEGER := 4000;
BEGIN
SELECT b_lob INTO lobd FROM lob_table WHERE key_value = 42 FOR UPDATE;
dbms_lob.fileopen(fils, dbms_lob.file_readonly);
dbms_lob.loadfromfile(lobd, fils, amt);
COMMIT;
dbms_lob.fileclose(fils);
END;
Hope it helps.
Eric
null -
How to create dynamics columns in oracle query1.
hi,
how to create dynamics columns in oracle query.its very urgent.
regards
prasad..Urgent is it?
Why? Have you forgotten to do your coursework and you'll get thrown off your course if you don't hand it in today?
What makes you believe that your request for help is more important than someone else who has requested help? It's very rude to assume you are more important than somebody else, and I'm sure they would like an answer to their issue as soon as they can get one too, but they've generally been polite and not demanded that it is urgent.
Also, you assume that people giving answers are all sitting here just waiting to answer your question for you. That's not so. We're all volunteers with our own jobs to do. How dare you presume to demand our attention with urgency.
If you want help and you want it answering quickly you simply just put your issue forward and provide as much valuable information as possible.
Looking at your post you haven't told us what database version you are using, you haven't provided any create table DDL's and insert statements to populate that with sample data, and you haven't even shown us that you've had a go at doing something yourself.
You will find if you post on here demanding your post is urgent then most people will just ignore it, some will tell you to get lost, and some will explain to you why you shouldn't post "urgent" requests. Occasionally you may find somebody who's got nothing better to do who will actually provide you with an answer, but you really are limiting your options by not asking properly.
/rant
As a basic example of dyanamic SQL:
DECLARE
cur PLS_INTEGER := DBMS_SQL.OPEN_CURSOR;
cols DBMS_SQL.DESC_TAB;
ncols PLS_INTEGER;
BEGIN
-- Parse the query.
DBMS_SQL.PARSE(cur, 'SELECT hiredate, sal FROM emp', DBMS_SQL.NATIVE);
-- Retrieve column information
DBMS_SQL.DESCRIBE_COLUMNS (cur, ncols, cols);
-- Display each of the column names
FOR colind IN 1 .. ncols
LOOP
DBMS_OUTPUT.PUT_LINE (cols.col_name);
END LOOP;
DBMS_SQL.CLOSE_CURSOR (cur);
END;
/ -
Doubt handling Clob columns with Java JDBC api
Hi,
we have a doubt handling Clob columns with Java JDBC api.
Reading Oracle 10g official documentation (document b10979.pdf, page 236), we found this note:
============================================
To write LOB data, the application must acquire a write lock on the LOB object. One way to accomplish this is through a SELECT FOR UPDATE. Also, disable auto-commit mode.
============================================
We also found a java sample code about how to handle Lob objects at this URL:
http://www.oracle.com/technology/sample_code/tech/java/sqlj_jdbc/files/advanced/LOBSample/LOBSample.java.html
In our java2 application, we access Clob objects in a quite different
manner: we use normal setString() and getString() methods, as described into paragraph "Shortcuts For Inserting and Retrieving CLOB Data"
(document b10979.pdf, page 244).
Using those methods, we never lock the table row by a SELECT FOR UPDATE statement (as described into the note above). We use simply SELECT, UPDATE and INSERT prepared statement.
In this way we can insert both clob objects and normal timestamp, number and other types with a single insert statement. Idem for update.
To recap, our question is:
Is it mandatory to create a SELECT FOR UPDATE statement when updating clob data? What may be the consequences if we don't use it? It is also correct to insert with a single sql statement both clob and not clob data using the setString() method for the clob types? And more than one lob column in the same record?
bye,
luca acri.And columns of type FLOAT. These also have, for some unknown reason a metadata type of OTHER, and a type string of 'FLOAT'. Yet PreparedStatement.setNull(x, Types.OTHER) doesn't work and setNull(x, Types.DECIMAL) does.
-
How to make text columns with adobe muse
Hi,How to make text columns with adobe muse (like InDesign)?
Multiple columns can be acheived with CSS - http://www.w3schools.com/css/css3_multiple_columns.asp
div
-moz-column-count:3; /* Firefox */
-webkit-column-count:3; /* Safari and Chrome */
column-count:3;
I'm surprised that Muse does not support text columns yet, but perhaps the custom CSS can be added in style tags on page properties. Haven't tried it, but don't see why it wouldn't work. -
How to find encrypted columns in oracle 10g database
Hi,
How to find encrypted columns in oracle 10g database? We can see using view dba_encrypted_columns or all_encrypted_columns .
my question is apart from this is there anyother views or tables?
Thanks..user602872 wrote:
Hi,
How to find encrypted columns in oracle 10g database? We can see using view dba_encrypted_columns or all_encrypted_columns .
my question is apart from this is there anyother views or tables?Hmm not which I could find,
SQL> select * from dict where lower(table_name) like '%encrypted%';
TABLE_NAME
COMMENTS
DBA_ENCRYPTED_COLUMNS
Encryption information on columns in the database
ALL_ENCRYPTED_COLUMNS
Encryption information on all accessible columns
USER_ENCRYPTED_COLUMNS
Encryption information on columns of tables owned by the user
SQL>HTH
Aman.... -
How to install apex 4 with Oracle Fusion Middleware Web Tier Utilities
Hi all,
Does any one know how to install apex 4 with Oracle Fusion Middleware Web Tier Utilities ?
I follow the instructions http://download.oracle.com/docs/cd/E17556_01/doc/install.40/e15513/toc.htm but there's no directory called ORACLE_HTTPSERVER_HOME\Apache and ORACLE_HTTPSERVER_HOME/ohs/modplsql/conf/dads.conf
I don't know where's dads.conf file to make change
Please hellp me on this case
Thanks & regardsA little bit odd is an understatement. The first time I found I had to download over 1Gb of stuff to run a simple web server I practically fell over! Hopefully, the Apex Listener team will update it to have backwards compatibility with mod_plsql and we can ignore trying to install Oracle Fusion Middleware Web Tier Utilities...
However, until then the TNS Names error generally means that there isn't a TNS alias set up for the database you have referenced in the mod_plsql dad. If you open up the dads.conf file you should see something like
PlsqlDatabaseConnectString localhost:1521:databasealias
If you then open a command prompt and do TNSPING databasealias you should get a response like this
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)
(HOST = localhost)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = ***)))
OK (20 msec)
If you don't it means you need to add it in.
Hope this helps -
How to connect google maps with oracle
Hello people ,
i read an artical there is a way to connect google maps with oracle .
can anyone give us lesson or more information to do that ?
regards .I guess, using Google for the same should be the best way to find the solution for it,
http://www.google.com/search?sourceid=chrome&ie=UTF-8&q=How+to+connect+google+maps+with+oracle
HTH
Aman.... -
How SAP QM is comparable with Oracle's Agile PQM solution ?
Hi QM Gurus,
I would like to know how SAP QM is comparable with Oracle's Agile PQM Solution. Request you to please share your experience. Regards, KrishnaM
Edited by: Krishna. Madduri on Feb 29, 2012 12:00 PMHi,
SAP QM supports you both internally and externally. It provides complete support, from product and process planning in research and development (the planning phase); through procurement, production, and sales and distribution (the implementation phase); to service and usage (the usage phase).
Please go through the below link to know more about the functionality in SAP QM
http://www.google.co.in/url?sa=t&rct=j&q=solution%20managementmanufacturing%20%2F%20quality%20managementsap%20ag&source=web&cd=2&ved=0CDoQFjAB&url=http%3A%2F%2Fhelp.sap.com%2Fbp_pharmav1600%2FPharma_Global%2FDocumentation%2FSAP_QM_News_EN.ppt&ei=TQ1OT6e1Fcm4rAefweSiDw&usg=AFQjCNGb33bopm3PzUZYxvxAwEK_LaFvew
Regards
Hari -
How to integrate Crystal Report with oracle JDeveloper 11g
Hi,
How to integrate Crystal Report with oracle JDeveloper 11g
Regards ,
AmolI dont think that you can integrate Crystal Reports with JDevelpoer but you can use runtime libraries to your project to get crystal report functionality
To know more please go through supported platforms
[Supported Platforms|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/504d0204-681e-2b10-2381-853d88974cfc]
Regards,
Tej -
How to update a column with default in a tabular form.
We have a tabular form that has a submit button that does a multi row update. We would like to update a column with a defaut like APP_USER = updated user when the row is updated. Is this possible and how?
used lovs and conditions.
-
How to view CLOB column in SQLdeveloper
I'd like to know how to display the value of a CLOB column when in SQLDeveloper. Thanks.
The data grid's cell has a popup editor (a ... button in the cell) where you can see CLOB contents.
-Raghu -
SQL LOADER: how to load CLOB column using stored function
Hi,
I am a newbie of sql loader. Everything seems to be fine until I hit a
road block - the CLOB column type. I want to load data into the clob
column using a stored function. I need to do some manipulation on the
data before it gets saved to that column. But I got this error when I
run the sql loader.
SQL*Loader-309: No SQL string allowed as part of "DATA" field
specification
DATA is my CLOB type column.
here is the content of the control file:
LOAD DATA
INFILE 'test.csv'
BADFILE 'test.bad'
DISCARDFILE 'test.dsc'
REPLACE
INTO TABLE test_table
FIELDS TERMINATED BY ','
OPTIONALLY ENCLOSED BY '"'
TRAILING NULLCOLS
codeid BOUNDFILLER,
reason BOUNDFILLER,
Checkstamp "to_date(:CHECKSTAMP, 'mm/dd/yyyy')",
"DATA" "GetContent(:codeid, :reason)"
All references are suggesting to use a file to load data on
CLOB column but I want to use a function in which it generates
the content to be saved into the column.
Any help is greatly appreciated.
Thanks,
Baldwin
MISICompany*** Duplicate Post ... Please Ignore ***
Maybe you are looking for
-
Processing the multibyte chars in the [b]cluster[/b] environment.
Hi I have a problem while processing the multibyte chars in the cluster environment. I have 2 pages(JSP) where one is a handler jsp. I entered the multibyte say HINDHI language chars in one jsp, and in the 2nd jsp I used the request.getParameter() me
-
How to make the stage transparent for SWF file being used in Dreamweaver
I have a SWF file in my Dreamweaver site, that plays correctly. The problem is that the stage is white and we would like it to be transparent. Searching the archives the following advice was given: in your html embedding code you need to set the wmod
-
HT201272 list of purchases in app store disappeared after system recovery followed by an update
Hi I have just recovered my mid 2011 MBA through the internet and after OSX installation proceeded to updating it. While downloading the 10.7.4 update I also started downloading apps from my purchase list in my app store account. The purchased list
-
Wireless PEAP users authenticated by TACACS+
Hello, I have the following scenario, access points 1214 (fat AP) connected to ACS (RADIUS) and the ACS integrated with Novell LDAP as external database. The wireless users use PEAP for authentication, here the problem when I tried to connect wireles
-
NullPointerException in EntityEJBContext - WL 4.5.1
Hi people WL 4.5.1 SP 14 on Solaris. We are getting these two exceptions rather often: Wed Nov 21 13:07:18 CET 2001:<I> <EJB> Ignoring exception raised in ejbPassivate: java.lang.NullPointerException at weblogic.ejb.internal.EntityEJBContext.passivat