Spoolling output of CLOBs from GET_DDL().
Hi,
In both dos command window and puTTY on AIX, I can't seem to get my spooled output to not wrap at 80 characters. It's driving me nutz.
set pagesize 0
set linesize 10000
set trim on
set trimspool on
SET LONG 32000
spool tts_ddl.sql
SELECT trim(DBMS_METADATA.GET_DDL(object_type, object_name, owner)) || ';'
FROM DBA_OBJECTS
WHERE OBJECT_TYPE in ('SEQUENCE')
AND OWNER = 'FPPS'
ORDER BY OBJECT_TYPE;
spool off;
exit;
Any help would be really appreciated.
Thanks.
brian
Hi guys,
Will try your two suggestions in the morning.
It may not have anything to do with CLOBS. I'm trying to create ddl from the GET_DDL function but my output is always like this.
And of course the wrap at where it is, the command will fail when I try to run it.
CREATE SEQUENCE "FPPS"."JOURNAL_ENTRY_SUMRY_S" MINVALUE 1000 MAXVALUE 99999
9999999 INCREMENT BY 1 START WITH 110053 CACHE 20 NOORDER NOCYCLE
CREATE SEQUENCE "FPPS"."FINANCIAL_CONTROL_S" MINVALUE 1000 MAXVALUE 9999999
99999 INCREMENT BY 1 START WITH 1000 CACHE 20 NOORDER NOCYCLE
CREATE SEQUENCE "FPPS"."DISBURSEMENT_BATCH_NUMBER_S" MINVALUE 1250 MAXVALUE
999999999999 INCREMENT BY 1 START WITH 4023 CACHE 20 NOORDER NOCYCLE
CREATE SEQUENCE "FPPS"."CHEQUE_NUM_S" MINVALUE 750000 MAXVALUE 999999999999
INCREMENT BY 1 START WITH 1039810 NOCACHE NOORDER NOCYCLE
CREATE SEQUENCE "FPPS"."FINANCIAL_BATCH_DISBURSEMENT_S" MINVALUE 1000 MAXVA
LUE 999999999999 INCREMENT BY 1 START WITH 1000 CACHE 20 NOORDER NOCYCLE
CREATE SEQUENCE "FPPS"."BANK_CHEQUE_S" MINVALUE 1000 MAXVALUE 999999999999
INCREMENT BY 1 START WITH 266703 CACHE 20 NOORDER NOCYCLE
CREATE SEQUENCE "FPPS"."ELECTRONIC_FUND_TRNSFR_INFO_S" MINVALUE 1000 MAXVAL
UE 999999999999 INCREMENT BY 1 START WITH 23037 CACHE 20 NOORDER NOCYCLE
CREATE SEQUENCE "FPPS"."TEMP_POOL_RATE_STORE_S" MINVALUE 1000 MAXVALUE 9999
99999999 INCREMENT BY 1 START WITH 1000 CACHE 20 NOORDER NOCYCLE
CREATE SEQUENCE "FPPS"."TST_RECEIPT_ADD_S" MINVALUE 1000 MAXVALUE 999999999
999 INCREMENT BY 1 START WITH 1000 CACHE 20 NOORDER NOCYCLE
;
Similar Messages
-
How to generate multiple output pdf's from one oracle reports
how to generate multiple output pdf's from one oracle reports.
I have a report where I have to generate more than one output files from the same report based on a parameter.
Each output file is for each parameter.
Is this possible in oracle reports, is so how ?You can better post your question in the reports forum instead of this pl/sql forum.
-
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;
---------------------------------------------------------- -
Is it possible to output multiple clips from a multitrack session, at the same time?
I'm using Audition CC 2014.2
on Windows 7 Pro x64
I am trying to figure out how to output several clips from a multitrack session, at the same time.
A session like this:
Is it possible to output 5 files right now?
I can select each one (or even multiple) and use File > Export > Multitrack Mixdown > Selected Clips to do one at a time only.
I'm hoping for a way to give each clip (or group of clips) a predefined filename, by perhaps using markers or something like that, which would then allow me to faster "automate" the exporting of each section into a different sound file.
This ability would be really helpful when using a single multitrack session to generate multiple sounds and a change to globally applied effects is made and all sounds now need to be updated.
Any ideas?They are, yes, but I'm also working with multitrack sessions using clips made from various different sound files.
Ahh ok, use markers?
So, this sort of thing isn't possible in multitrack mode then?
If not, it sounds I'll have to "mix down" my multitrack session into a single file and set up the markers in Waveform Edit view.
That's an extra step I'd have to do, and after editing the multitrack session, surely some markers . . . oh wait, no . . . every time I output the new mix down file from the multitrack I'd need to redo all the markers. Drat . . .
Honestly, I am very new to Audition, but I'm about to plow into it, big-time, and I'm hoping for a nice non-destructive and fast workflow that'll enable me to output sets of sounds from the same multitrack session.
But, it seems like this functionality is currently missing. -
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. -
Urgent : output in excel from reports6i
I am running reports 6i on the web and we want the output in excel. we have applied the patch 11 so that we can output in excel.
what r the things to be changed in reports and elsewhere so that i can get the report output in excel
I have changed the desformat to delimiteddata in the reports
but still the report in excel is coming with headers placed on left of every line of data.
Thanks
VinodSee update at:
output in excel from reports -
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> -
I want to translate output of JSP from English to HINDI and other language.
hi frens !!
i want to translate output of JSP from english to HIndi and other languages.I need the class which could traslate the Output in other languages.
Thanks and Regards
Allwynhi frens !!
i want to translate output of JSP from english to
HIndi and other languages.I need the class which
could traslate the Output in other languages.
Thanks and Regards
Allwynit looks like your translator is not working correctly. read up on internationalization. -
AME renders incomplete output MPEG2 files from my h264 footage
I'm trying to crrate Mepg2-DVD files for output to dvd, from canon DSLR footage, but somhow AME does not render the whole work area an loses the last 30-40secons of the clip on export.
Any help?
MY AME settings are : Codec : Mainconcept Mpeg Video - quality 5
Tv Standard : PAL
Frame Rate : 25
Fioeld order : progressive
Pixel aspect ratio stanard 4:3(1,094)
Bitrate encoding : VBR Two Pass
Min Bitrare 3
Target bitrate: 3.69
Max bitrate : 4
GOP settings : m Frames 3
n Frames 12
Source range : work area
Working on an 3.5ghx i7 an a gtx 670 for cuda ( with the ammended text file for enabling cuda on this card)
MPE with CUDA acceleration turned on.
This happens in both 1 pas an 2 pass vbr, but not when I export to h264 ....this seems to be a bug in AME! Is it possble though? How long has these codecs been around!! ?Ok, I see this is a Quicktimeplayer mistake .... somehow Quicktime player does not play the wholf of the file. It all seemed fine once I opened it in MPEG streamclip! ^&%$%*$ Half a day waste thinking AME is broken and then it ends up being Apple ... Their software is just getting WORSE!
-
Outputting standard definition from Sony ex1
I'm triyng to outputting standard definition from Sony ex1 clips as explained in this article http://www.kenstone.net/fcphomepage/ex1_sd_outputyoung.html.
I got some motion files in the hd timeline. When I paste this file on the sd timeline the scale is totally different from the original.
Any ideas on what happens?We are working with Final Cut 5 and DVCProHD material... (which, btw, is a good codec to use for FCP 4.5)
Downcoverting a finished product for SD DVD works really good in Compressor 2. After editing in FCP, I find it best to export as Self contained QT of your project. Then importing that into Compressor... and use the Compressor Preset for the SD MPEG-2 Compression for delivery on DVD. It has worked great!
But, another way you could try.. is once you have a finished product edited in FCP.... Print to render it, print it to Video on your HDV camera...
Use the Camera to Playback and recapture the the downconverted video onto the computer. You may find the downcoversion a bit better this way.
Good luck, hope this helps -
How can I output eps data from PDF?
With CS6, why can't I output eps data from PDF, as I could did in use with CS zero version?
What specifically? AI stil lcan save EPS, so what's the problem?
Mylenium -
Create Output to Excel from PL/SQL
I've created a procedure that generates an excel output. The output is generated if the number of rows are less than 850. If more than 850, I received a "Page Not Found" error.
I used Note:132262.1 "How to Create Output to Excel from PL/SQL".
Does anybody know a fix or workaround for this issue?It might be worth your time to check out owa_sylk from asktom.oracle.com. It's a pl/sql package that generates SYLK files, which Excel can then open. By using a standard file format instead of a proprietary one you get away from most of the "which version of Excel" issues.
Scott -
Outputting 2 channels from an AT-MIO board
i'm attempting to output 2 channels from an AT-MIO-16E-1 board using
labview. the first channel goes out fine but when i try to add the second
i get an error message and no second channel. the error mesage is:
Error -10687 occured at AO Buffer Write.
Possible reasons: A configuration change has invalidated the acquistion
buffer, or an acquisition buffer has not been configured.
does anyone know how to solve this problem?
thanks,
jon.Thank you for contacting National Instruments.
When you write �instrument driver,� I understand you to mean one of the complete LabVIEW VIs often available for communicating with things like o-scopes and DMMs through serial or GPIB interfaces. These usually have front panels similar to the look of the actual instrument.
When it comes to DAQ products, there are no �instrument drivers� per se. Nonetheless, there are a variety of example programs available. From the first screen that you see when you load LabVIEW, choose the option to search examples. Then look under Data Acquisition. There will be examples available for whatever type of DAQ operation you wish to perform.
Regards,
Mike G.
National Instruments Support -
Persisting Oracle BLOBs & CLOBs from a CMP Bean
Can someone tell me how to persist Oracle BLOBs and CLOBs from a CMP Bean?
Thanks,
AbelA link to the answer might be helpful.
Dave
"Abel Rosnovski" <[email protected]> wrote in message
news:[email protected]..
>
> -
Output cut off from dbms_metadata.get_ddl
When I execute DBMS_METADATA.GET_DDL('TABLE','table_name','schema_name'), the output for some tables is cut off. When I run it from SQL Plus or Toad, it works fine. Is there a setting that I am missing.
Thanks[email protected] wrote:
When I execute DBMS_METADATA.GET_DDL('TABLE','table_name','schema_name'), the output for some tables is cut off. When I run it from SQL Plus or Toad, it works fine. Is there a setting that I am missing.You did not tell where are you running the dbms_metadata package.
If you can set long 10000 on the client utility try this then.
Otherwise SQLPLUS is the best way to extract metadata and spool it to the file.
HTH
SS
Maybe you are looking for
-
Images are not loading or flash player not working EXCEPT in private browsing mode
I recently used Auslogics Boost Speed to clear out my cache, defrag and optimize my computer. When I went to start my browser, none of my images from my regularly visited sites were loading. Nor were any of the sites that had Flash? I tried several s
-
How to publish a website in iweb to safari by "Publish to Local Folder"?
yep
-
Hi, How block to access the Mail? In the restriction in the general settings don't block access to mail. tks
-
Select does not recognizes subelement/nodes in xml
Problem: Querying(or update) xml using xpath recognizes only the root node, and ignores all of the subnodes. What was done: 1. I created and registered xml schema using dbms_xmlschema 2. Created a table with xmltype column refeencing above schema 3.
-
Can't use 3TB drive in Xserve drive caddy?
I am using a 2006 Intel Xserve (10.6.8) at home for storing lots of multimedia. My 2 TB user drive, which is inside of one of the Xserve's drive caddies is nearly full. I purchased a $157 3 TB Seagate Barracuda (Model No. ST3000DM001) from Amazon and