SQLPlus truncates output of sdo_geometry.get_wkt()

Hi,
I'm trying to SELECT some geometries into a text file in WKT form. Here's my query:
SQL> SPOOL test.txt
SQL> set heading off
SQL> SELECT bpa.geom.get_wkt() AS wkt FROM sometable bpa WHERE rownum < 20;
POLYGON ((4447140.53 5524045.28, 4447140.23 5524039.01, 4447139.81 5524030.16, 4
POLYGON ((4511477.74 5539886.53, 4511475.03 5539893.95, 4511475.66 5539892.22, 4
POLYGON ((4498775.47 5498353.01, 4498706.4 5498250.08, 4498734.02 5498291.24, 44
POLYGON ((4513154.45 5406475.53, 4513145.56 5406476.08, 4513144.92 5406476.12, 4
POLYGON ((4476982.53 5402998.39, 4476981.58 5402996.39, 4476981.47 5402994.19, 4
POLYGON ((4524167.48 5413731.54, 4524169.48 5413729.78, 4524167.35 5413731.66, 4
POLYGON ((4446506.63 5541947.65, 4446479.58 5541979.87, 4446494.95 5541961.56, 4
POLYGON ((4433027.68 5544846.82, 4433036.98 5544849.58, 4433033.03 5544848.41, 4
POLYGON ((4573435.48 5444136.89, 4573415.72 5444136.16, 4573412.91 5444136.45, 4
POLYGON ((4422226.47 5516390.6, 4422228.2 5516392.84, 4422223.4 5516386.63, 4422
POLYGON ((4499254.27 5560837.55, 4499189.2 5560874.46, 4499220.72 5560856.58, 44
POLYGON ((4505027.06 5446480.85, 4505025.14 5446479.0, 4505022.74 5446476.68, 45
POLYGON ((4516619.23 5448833.21, 4516630.5 5448836.57, 4516602.33 5448828.18, 45
POLYGON ((4514831.61 5544276.5, 4514801.23 5544278.79, 4514790.06 5544279.63, 45
POLYGON ((4374582.1 5594210.1, 4374640.61 5594299.34, 4374694.83 5594382.58, 437
POLYGON ((4468030.1 5571713.32, 4468028.64 5571712.42, 4468034.16 5571715.8, 446
POLYGON ((4517477.25 5465889.51, 4517476.93 5465890.77, 4517475.91 5465894.8, 45
POLYGON ((4513972.85 5540673.02, 4513966.3 5540676.54, 4513979.65 5540669.36, 45
POLYGON ((4537466.64 5474602.04, 4537464.63 5474599.88, 4537440.48 5474573.85, 4
19 Zeilen ausgewahlt.
SQL> SPOOL OFFAs you can see the resulting WKT geoms get truncated after a certain length. I've tried "column wkt format a160" and "set linesize 160" but it doesn't change anything. The contents of test.txt are also truncated and therefore useless.
Does anyone know how to fix this or work around it?
Note I cannot connect to this DB with SQLDeveloper - there's a firewall preventing that. SQLPlus through SSH only.
Regards,
Christian

assuming get_wkt returns a CLOB, you can try
set long <some random high number>
Sybrand Bakker
Senior Oracle DBA

Similar Messages

  • Truncate output text in hierarchyViewer component

    Hi,
    I want to display the text with truncated to 30 characters only. I identified the outputText and added the truncateAt attribute and set it to 30. but it doesn't seem to work. Moreover the line - truncateAt="30" is underlined with orange squiggly lines indicating that there is some error and when I mouse over it , it says that this attribute is not supported when the component is inside of a hierarchyViewer component.
    Any pointers how can I truncate the output text to 30 characters only?
    Thanks,
    Dhirendra

    hi Vinod,
    Thanks for the reply.
    I have run it and it doesn't work. Use case is that we have a hierarchy viewer and I want to just truncate the long names of the Node Title.
    Here is my local deploy link
    http://rws65447fwks:7101/projectsManagement/faces/ResourceManagementDashboard
    All I want to do is truncate the Node Title and limit it to lets say 30 characters. So "Resources with No Pool Membership" becomes "Resources with No Pool Mem..."
    I tried to change in the jsff file and add the attribute called truncateAt and set it to 30, but as I said it says by underlying squiggly lines that the attribute is not supported.
    Please let me know against what team should I file a bug? or it has to bean SR?
    Thanks,
    Dhirendra

  • Sqlplus script output

    I understand I can re-direct the query result to an output file using the SPOOL command in sqlplus. However, is there any way in sqlplus such that I can manipulate the data return from the query before spooling to the output file? Thanks in advance for your great help.

    hi,
    there are two possible options you can choose from to do that. First option is to use PL/SQL. Second option is to use the MODEL clause. You can visit the website of SnippetJoe to learn the MODEL clause. This is the link: http://www.sqlsnippets.com/en/topic-11663.html
    Brett

  • Sqlplus with output to .csv

    Hi friends,
    I have seen notes about sqlplus query which spooled output to .html
    How do I write a sqlplus query which output spool file is .csv?
    Thanks a lot,
    Ms K

    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:68212348056

  • Sqlplus CLOB output

    Could you pls post an example of retreieving a CLOB in sqlplus from a Stored Procedure ..

    Given a procedure that looks like:
    PROCEDURE clob_getter (p_id   IN  NUMBER, p_clob OUT CLOB) then in sqlplus you can do:
    var myclob CLOB;
    exec clob_getter(6, :myclob);
    set long 32767;
    print myclob;

  • Sqlplus fromatting output

    How can i format my output so that the screen shows only 40 rows of output. And if i press enter I want show the next 40 lines and so on.

    Refer PAGESIZE, PAUSE
    http://download-west.oracle.com/docs/cd/B12037_01/server.101/b12170/toc.htm
    Message was edited by:
    jeneesh

  • SQLPlus XML Output

    My output is going over to a new line right after 2000 characters. What am I doing wrong? Below are my options as well as the SQL. Any help would be greatly appreciated.
    Thanks,
    Dinesh.
    set linesize 32767 long 300000 longchunksize 300000;
    set pagesize 0 echo off;
    set trims on;
    spool c:/test.txt replace;
    select xmlelement("root",
    xmlattributes('http://www.w3.org/2001/XMLSchema' as "xmlns:xsi",
    'http://www.terex.com/exposure.xsd' as "xsi:nonamespaceSchemaLocation"),
    xmlagg( xmlelement("applicant",
    xmlattributes('com' as "applicanttypecode",
    trim(les_s) as "applicantid")
    ))) as test
    from lpr_prod_summary.lease a
    , lpr_prod.rls b
    where a.lse_s = b.lse_s;
    spool off;
    exit;

    If you still have this issue, please post table DDLs and INSERTS for some related sample data for all tables.

  • Truncating Output values..

    Hi Experts,
    Hi Friends here am getting values into final internal table then while printing am looping into wa, then am passing into one more internal table and am printing using last internal table.
    but here problem is while debugging am geting correct values into workarea. then am passing to last int table, using this last tab am printing but here values are truncating on screen.
    for ex: main value is : 6751.33 but it displaying 6,7 only.
    but here my last internal table and final internal table is same type.
       could anyone tell where i ve gone wrong.
    thanks in advance,
    sudharsan.

    Do you using  write +  filed length?
    if yes, you should increase your filed length.

  • How to switch sqlplus language output e.g. french- english ?

    When I enter a command in SQL@plus then result comments (e.g
    PL/SQL procudre successfully finsihed
    or
    Transaction with COMMIT finished
    are displayed. However on some installations they are
    written in another language like french or german.
    The "main" installation menues and labels (e.g. GUI in http//127.0.0.1) are in english.
    I am talking only about the comments from SQL*Plus.
    Is there a way to switch to english language comments ?

    SQL> exec null
    PL/SQL-Prozedur wurde erfolgreich abgeschlossen.
    SQL> alter session set nls_language=american;
    Session altered.
    SQL> exec null
    PL/SQL procedure successfully completed.NLS_LANG can also be defined at the OS level to american_america

  • JSF output truncated when integrating with OpenCms

    Hi all!
    I'm quite new to JSF and am trying to integrate it with OpenCms, a JSP based content management system. In OpenCms all files reside in a virtual filesystem (VFS) and are accessed through the opencms-servlet which is mapped to "/opencms/*".
    While trying to integrate JSF with OpenCms I added another prefix servlet mapping for the faces servlet: "/faces/*". When I now try to access a JSF-page I have to use a URL like this:
    http://myserver:8080/mywebapp/faces/opencms/page1.jsp
    For my understanding the faces servlet now tries to read a file /opencms/page1.jsp from the real filesystem, which does not exist. Is this correct? How could I get faces-servlet to obtain page1.jsp from the VFS? However, I do not get an exception or a message telling me that the resource page1.jsp is missing.
    Instead the faces-servlet seems to do it's work and forwards to the opencms-servlet which in turn forwards to the JSP-servlet and processes the JSP. I'm sure the whole JSP is processed as I added log-statements from the beginning to the end, of which all are executed. However, the output of the JSP is truncated whenever there exists at least one JSF tag in the page.
    Any ideas what's going wrong here?
    Is my understanding of the executing order correct?
    many thanks in advance for your help,
    - martin

    Hi!
    Working with JSF 1.1 works, but now I want to switch to JSF 1.2, which does not work :-(
    I have a simple demo application (webapp 2.4 and webapp 2.5) without OpenCms which works. OpenCms 7.0.2 without JSF works as a 2.4 and as a 2.5 webapp. As soon as I want to access a JSF-page with an URL like http://localhost:8080/opencms-7.0.24/faces/opencms/mypage.jsp I get only truncated output like the following:
    <form id="j_id_jsp_2033902881_1" name="j_id_
    {code}
    Any Ideas what could cause the truncation?
    There are now log messages and no exceptions in any logfile :-(
    tia,
    - martin                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Missing output in PDF file

    When I use Adobe Acrobat X Pro to produce a PDF from my appliation (Family Tree Maker), the output is missing a vertical strip of image on the right hand side. The image displays correctly when viewed in the application. This effect seems to be related to the size of the image, small images convert correctly. Any idea what's going on? Sorry I'm a new user, so inexperienced in the ways of Adobe.
    Thanks in advance

    Application is Family Tree Maker (FTM) on Windows Vista (with full updates)
    Physical printer is an Epson B1100 A3 printer
    With the page size set to A3, FTM displays a family tree on multiple pages
    This prints out on the B1100 on multiple pages successfully
    Adobe Acrobat X Pro
    “Print Setup” in application set to “Adobe PDF”
    This gives a selection of “virtual” page sizes up to 92x92
    I choose the smallest virtual paper size that gives the family tree on one page, say A0
    Then “Print” with printer set to “Adobe PDF” assigning a file name
    Acrobat displays the family tree with “truncated” output.
    If this is sent to the B1100 with “Print Preview”, the truncated image is printed
    Under Edit/Preferences – Show Large Images is ticked
    Many thanks, Phil

  • DBMS_METADATA.GET_DDL - output trucating

    Hi,
    I am generating Database Package Scripts using the following.
    =====================================================
    set pagesize 0
    set long 90000
    set feedback off;
    column DDL format a80 WORD_WRAPPED
    spool FMONTUSER_PACKAGE.sql
    select dbms_metadata.get_ddl(object_type,object_name,owner) DDL from dba_objects
    where owner='FMONTUSER' and
    object_type in('PACKAGE');
    spool off;
    ============================================
    This is the last PROCEDURE of Last PAKCGE in FMONTUSER_PACKAGE.sql
    =============================================
    PROCEDURE insert_loan_year_end_data(argloan_id IN LOAN.LOAN_ID%TYPE,
    arg_temp_prio_end_row IN TEMP_PRIOR_YEAR_END%ROWTYPE)
    IS
    v_as_of_dt LOAN_YEAR_END_DATA.ASOFDATE%TYPE;
    BEGIN
    -- Insert the record into original loan table
    DBMS_OUTPUT.put_line ('before insert LOAN_YEAR_END_DATA');
    v_as_of_dt := arg_temp_prio_end_row.AS_OF_DATE;
    INSERT INTO LOAN_YEAR_END_DATA     VALUES(LOAN_YEAR_END_DATA_SEQ.NEXTVAL,argloan_id,
    arg_temp_
    prio_end_row.BEGINNING_PRINCIPAL_BAL,arg_temp_prio_end_row.YTD_PRINCIPAL_PAID,
    =============================================
    I am getting trucated some lines in this procedure.
    I increased 'set long 90000' to 'set long 100000'
    Still I am getting truncated output.
    Please help me to solve this.
    regards,
    Mathew

    Hi,
    This script I am using.
    =======================================
    set pagesize 0
    --set long 90000
    set long 2000000000
    set feedback off;
    column DDL format a80 WORD_WRAPPED
    EXECUTE dbms_metadata.set_transform_param(DBMS_METADATA.SESSION_TRANSFORM,'SQLTERMINATOR',true);
    EXECUTE dbms_metadata.set_transform_param(DBMS_METADATA.SESSION_TRANSFORM,'PRETTY',true);
    EXECUTE dbms_metadata.set_transform_param(DBMS_METADATA.SESSION_TRANSFORM,'CONSTRAINTS',true);
    EXECUTE dbms_metadata.set_transform_param(DBMS_METADATA.SESSION_TRANSFORM,'REF_CONSTRAINTS',false);
    EXECUTE dbms_metadata.set_transform_param( DBMS_METADATA.SESSION_TRANSFORM, 'CONSTRAINTS_AS_ALTER', false);
    EXECUTE dbms_metadata.set_transform_param( DBMS_METADATA.SESSION_TRANSFORM, 'STORAGE', false );
    EXECUTE dbms_metadata.set_transform_param( DBMS_METADATA.SESSION_TRANSFORM, 'SEGMENT_ATTRIBUTES', false );
    EXECUTE dbms_metadata.set_transform_param( DBMS_METADATA.SESSION_TRANSFORM, 'TABLESPACE', false );
    spool FMONTUSER_PACKAGE.sql
    REM -------------------------------------------------------------------------------------------------------
    REM FMONTUSER_PACKAGE.sql
    REM PACKAGE.sql
    select dbms_metadata.get_ddl(object_type,object_name,owner) DDL from dba_objects
    where owner='FMONTUSER' and
    object_type in('PACKAGE');
    spool off;
    regards
    Mathew

  • Prstat output

    Dear all,
    One of my server shows 99% used by Oracle continuously. I just want to know is there any issue related with lack of memory or Issue from Solaris 10 Operating System. Please see the output of prstat -a.
    NPROC USERNAME SIZE RSS MEMORY TIME CPU
    206 oracle 157G 154G 99% 0:05:39 0.3%
    46 root 219M 92M 0.1% 1:21:56 0.1%
    58 application 1020M 689M 0.4% 0:00:15 0.0%
    1 noaccess 225M 110M 0.1% 0:35:31 0.0%
    1 smmsp 7752K 936K 0.0% 0:00:05 0.0%
    Best Regards
    Bikash

    Hi,
    Extremely sorry if I had mentioned something wrong. The truncated output of �prstat �a� is the same what I mentioned above. I just want to know whether there is any issue relater to Operating System or memory if the output seems as below,
    NPROC USERNAME SIZE RSS MEMORY TIME CPU
    206 oracle 157G 154G 99% 0:05:39 0.3%
    46 root 219M 92M 0.1% 1:21:56 0.1%
    58 finadm 1020M 689M 0.4% 0:00:15 0.0%
    1 noaccess 225M 110M 0.1% 0:35:31 0.0%
    1 smmsp 7752K 936K 0.0% 0:00:05 0.0%
    Total: 318 processes, 842 lwps, load averages: 0.16, 0.18, 0.21
    Bikash

  • Problem with displaying sdo_geometry objects

    Hi all,
    formerly in sql developer at my query result tab, the sdo_geometry objects used to look like this: mdsys.sdo_geometry(2001, 8307, sdo_point_type(12, 8, null), null, null)
    now for all the columns with sdo_geometry objects I'm getting [mdsys.sdo_geometry].
    I'm using sql developer 3.1.07 with oracle 10g express edition.
    Does anybody know how I can switch to the previous view?
    Thanks

    Welcome to the forum.
    Thanks for reposting here. The people that read this forum use and know sql developer so you should be able to get help.
    I'm not familiar with SDO_GEOMETRY but I did find this other recent thread in this forum.
    You might want to look at it to see if it has any info you can use.
    Re: SQL Developer 3.0.04 - SDO_GEOM Issues
    That thread has this reply at the bottom
    >
    To add to Gary, the SDO_GEOMETRY cell will now show "SDO_GEOMETRY" & you can see it's value in the popup cell viewer/editor (double clicking inside the cell & then clicking the "..." button).
    >
    Is that what you needed?
    That thread also mentions this thread
    Re: SQLD 3.1EA -  Fails to render resultset output containing SDO_GEOMETRY
    Where one of the developers appears to say that made is not show the content automatically to address a performance issue. So maybe the double-click will work to display it when you want it or maybe there is a tools-preference setting.

  • How silent is sqlplus -s /nolog?

    I am executing a script script that looks something like this ...
    sqlplus -s /nolog <<SQL
    set feedback off
    set serveroutput on
    connect scott/tiger@testdb
    declare
    begin
    DBMS_OUTPUT.PUT_LINE( 12 );
    end;
    SQL
    the output is ...
    Connected.
    12
    I just want to see 12. How can I stop sqlplus from outputting the Connected.
    I am using SQL*Plus Release 8.1.7.0.0
    Thanks!

    Try
      sqlplus -s << EOF
      scott/tiger@mydb
      set whatever
      select something...
      EOFNote the lack of "/nolog" and lack of "connect".
    The username/password must be the first line of the script.
    -- CJ

Maybe you are looking for

  • Ipod touch 4G not recognized in itunes

    I just received my new ipod touch 4G 32GB in the mail today. It's running 4.1 (the latest firmware). I also have itunes 10. But itunes doesn't recognize my device but my laptop (Windows 7) does. Although, it is recognizing it as a digital camera, not

  • Error U44M1P7 on PS & Expt. Mgr. 6.0.5 Installations

    These two installations fail to install. What can  I do to make these updates to make them install? Juan

  • Will PC Games Run on a Macbook?

    Hello everyone =) My boyfriend recently purchased a MacBook. I don't know anything about it other than its white and has a 13" screen (I'm a PC girl, sorry, please dont throw things at me). Anyway, I really want to get him a game to play on it. He LO

  • Why is the speakerphone volume so low?

    I was using the speakerphone feature during a call and I could barely  hear the caller. Is there a way to change the speaker phone volume?

  • Headcount planning issue

    Hi, I am working on NWBPC 7.5 version, i have a problem with Headcount planning The headcount planning is by Positions and it is incremental planning. I have created two dummy account for headcount and salarybypoistion, so positions and both the dumm