Extend line segments

I've drawn a line segment between 2 intersections. Can I extend this segment beyond the intersections, such that it still passes through them?
TIA
steven

To extend a straight segment from one of its ends:
1. WhitePointer: Select the anchorPoint at the end of the segment you want to extend.
2. Scale Tool: Altclick the anchorPoint at the opposite end of the segment, to set the transformation anchor there.
3. ShiftDrag to scale the selected anchorPoint.
JET

Similar Messages

  • Drag and dynamically add line segments?

    Dear all:
    I draw a continuous line segments by mouse, which starts by a left
    mouse click. Then if user click on another location on the screen, it
    will continuously add a line segment to the screen. This process ends
    with a right mouse click. In this case, all the points are shown
    in a JPanel and stored in a Vector.
    My question is:
    after the line is shown on the screen, how can I use mouse to drag
    any points on these line segments (it does not necessary need to be
    the line-segment connecting points), such that the new points will be
    added to the line, and original line segments' shape changed
    accordingly during the mouse drag.
    Example:
    Step 1: A line (containing line segments], which is drawn by mouse on the Panel:
        * [left click]
          *  [left click]
          |
          |
          *  [left click]
           * [right click]
    Step 2: Drag any points in the line, this does not necessary to be
    original points that define the line-segments, such as the + in the
    following.
          |
          + [here left click a point on the line]
          |
    Step 3: If I drag the + in above figure to left, it will become:
        +  [right click, the new point and new line segment is added]
    When the mouse released, the new shape is shown on the panel.How to do the dynamically drag?
    Thanks in advance!

    Try this
    regards
    Stas
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.geom.*;
    import java.util.ArrayList;
    public class Test {
        JScrollPane scroll;
        JPanel p=new JPanel(new BorderLayout());
        Robot robot=new Robot();
        public Test()  throws Exception {
            final JFrame frame=new JFrame();
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.getContentPane().add(p);
            frame.getContentPane().add(new Desktop());
            frame.setBounds(0,0,350,350);
            frame.show();
        public static void main(String[] args) throws Exception {
            new Test();
    class Desktop extends JPanel implements MouseListener, MouseMotionListener{
        ArrayList polyline=new ArrayList();
        Point startPoint;
        boolean dragged=false;
        int lineIndex=-1;
        public Desktop() {
            super();
            addMouseListener(this);
            addMouseMotionListener(this);
            polyline.add(new Line2D.Double(10,10,150,150));
            polyline.add(new Line2D.Double(150,150,10,300));
        public void mouseDragged(MouseEvent e) {
        public void mouseMoved(MouseEvent e) {
        public void mouseClicked(MouseEvent e) {
        public void mousePressed(MouseEvent e) {
            Point point=e.getPoint();
            Rectangle2D pointRect=new Rectangle(point.x-3,point.y-3,7,7);
            for (int i=0; i<polyline.size(); i++) {
                Line2D line=(Line2D)polyline.get(i);
                if (line.intersects(pointRect)) {
                    startPoint=point;
                    lineIndex=i;
                    return;
            lineIndex=-1;
        public void mouseReleased(MouseEvent e) {
            if (lineIndex>=0) {
                Point2D endPoint=e.getPoint();
                Line2D line=(Line2D)polyline.get(lineIndex);
                Line2D firstPart=new Line2D.Double(line.getP1(),endPoint);
                Line2D secondPart=new Line2D.Double(endPoint,line.getP2());
                polyline.remove(lineIndex);
                polyline.add(secondPart);
                polyline.add(firstPart);
                this.repaint();
        public void mouseEntered(MouseEvent e) {
        public void mouseExited(MouseEvent e) {
        public void paint(Graphics g) {
            super.paint(g);
            g.setColor(Color.red);
            for (int i=0; i<polyline.size(); i++) {
                Line2D line=(Line2D)polyline.get(i);
                ((Graphics2D)g).draw(line);

  • How to make line segments persist

    I am studying by myself, and I have already Googled the subject line, to no avail.
    I am trying to write lines with movement dictated by the arrow keys. I can get a line segment to move, but after the movement the whole panel gets repainted. So I don't get any lines written anywhere.
    Anyone have a solution to this?
    Here's my code.
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class DrawLinesUsingKeys extends JFrame {
        private DisplayCoordinatePanelSEVEN keyboardPanel =
                new DisplayCoordinatePanelSEVEN();
        public DrawLinesUsingKeys() {
            getContentPane().add(keyboardPanel);
            keyboardPanel.setFocusable(true);
        /**Main method*/
        public static void main(String[] args) {
            // Create a frame
            DrawLinesUsingKeys frame = new DrawLinesUsingKeys();
            frame.setTitle("Draw Lines Using Keys");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setSize(300, 300);
            frame.setLocationRelativeTo(null);
            frame.setVisible(true);
    class DisplayCoordinatePanelSEVEN extends JPanel implements KeyListener {
        private boolean pressedAction = false;
        private int x = 150;
        private int y = 150;
        private int z = 150;
        private int a = 150;
        public DisplayCoordinatePanelSEVEN() {
            addKeyListener(this);
        public void keyPressed(KeyEvent e) {
            pressedAction = true;
            switch (e.getKeyCode()) {
                case KeyEvent.VK_DOWN:
                    a = y + 10;
                    break;
                case KeyEvent.VK_UP:
                    a = y - 10;
                    break;
                case KeyEvent.VK_LEFT:
                    z = x - 10;
                    break;
                case KeyEvent.VK_RIGHT:
                    z = x + 10;
            repaint();
        public void keyReleased(KeyEvent e) {
        public void keyTyped(KeyEvent e) {
        public void paintComponent(Graphics g) {
            super.paintComponent(g);
            g.setColor(Color.BLACK);
            if (pressedAction) {
                g.drawLine(x, y, z, a);
                pressedAction = false;
                x = z;
                y = a;
        }Thank you for your time.

    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    class DrawLinesUsingKeys extends JFrame {
        private DisplayCoordinatePanelSEVEN keyboardPanel =
                new DisplayCoordinatePanelSEVEN();
        public DrawLinesUsingKeys() {
            getContentPane().add(keyboardPanel);
            keyboardPanel.setFocusable(true);
        public static void main(String[] args) {
            DrawLinesUsingKeys frame = new DrawLinesUsingKeys();
            frame.setTitle("Draw Lines Using Keys");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setSize(300, 300);
            frame.setLocationRelativeTo(null);
            frame.setVisible(true);
    class DisplayCoordinatePanelSEVEN extends JPanel implements KeyListener {
        java.util.List<Point> points = new java.util.ArrayList<Point>();
        private boolean pressedAction = false;
        private int x = 150;
        private int y = 150;
        private int z = 150;
        private int a = 150;
        public DisplayCoordinatePanelSEVEN() {
            addKeyListener(this);
            points.add(new Point(x,y));
        public void keyPressed(KeyEvent e) {
            pressedAction = true;
            switch (e.getKeyCode()) {
                case KeyEvent.VK_DOWN:
                    //a = y + 10;
                    y += 10;
                    points.add(new Point(x,y));
                    break;
                case KeyEvent.VK_UP:
                    //a = y - 10;
                    y -= 10;
                    points.add(new Point(x,y));
                    break;
                case KeyEvent.VK_LEFT:
                    //z = x - 10;
                    x -= 10;
                    points.add(new Point(x,y));
                    break;
                case KeyEvent.VK_RIGHT:
                    //z = x + 10;
                    x += 10;
                    points.add(new Point(x,y));
            repaint();
        public void keyReleased(KeyEvent e) {
        public void keyTyped(KeyEvent e) {
        public void paintComponent(Graphics g) {
            super.paintComponent(g);
            g.setColor(Color.BLACK);
            if (pressedAction) {
                for(int xx = 0, yy = points.size()-1; xx < yy; xx++)
                  Point p1 = points.get(xx);
                  Point p2 = points.get(xx+1);
                  g.drawLine(p1.x, p1.y, p2.x, p2.y);
                pressedAction = false;
                //x = z;
                //y = a;
    }

  • One dimensional line segments

    Hi,
    I 'm facing the problem of indexing temporal intervals
    and performing interval intersection queries. I 've seen
    timestamp and interval data types but no information
    about the existence of a temporal indexing scheme or
    interval query operators, but only interval arithmetic operators. I 'am thinking of using a 2d line segment spatial index
    with the extend of the second dimension set to zero, something like
    MDSYS.SDO_DIM_ELEMENT('T1', 0, 100, 1), -- 1st d
    MDSYS.SDO_DIM_ELEMENT('T2', 0, 0, 0) -- 2nd d
    time is in seconds.
    I was wondering if anyone has dealt with such problem
    before and would like to share his experience.
    Thanks,
    Sotiris

    In Snow Leopard I had lots of spaces and they were organized in a rectangular grid, as I'm sure you remember.  It was easy to use numbers to get to the ones on the first row or two, but after that I usually navigated the grid with the arrow keys.  The up/down arrows let me quickly move between rows and I would organize related apps so they might be not just adjacent to each other horizontally, but also vertically.  When in Safari, the left arrow would take me in one step to Mail, the right arrow in one step to iTunes, and the down arrow in one step to Quicken.  So apps that I used a lot were just one keystroke away.  It was convenient to be able to jump in one keystroke from space 1 to space 5 (down arrow), which was possible because the spaces were organized in a grid. 

  • ORA-1652: unable to extend temp segment by 128 in tablespace PSAPTEMP

    Hi Gurus,
    We are getting this alert continuosly , anybody please suggest me.
    OS: AIX
    DB:ORACLE 10g
    We disabled STAT file also,, but still we are getting this alert
    please check table spaces,,,
    PSAPTEMP                          10.485.760     10.481.664          0          0          0    Off                  0    ONLINE
    PSAPUNDO                           8.514.344      2.062.912         75         31        951    Off                 75    ONLINE     NOT ACTand file system also fine
    please find below error details..
    02/05/10 10:45:12 Europe/Middle (open.related - System Open Related):
    External Update
    05/02/2010 08:27:41 by CA
    Attached new CA message: 1535095
    .Last matching line that caused this alert: ORA-1652: unable to extend temp segment by 128 in tablespace PSAPTEMP
    BR0301E SQL error -1652 in thread 4 at location stats_tab_collect-20, SQL statement:
    'BEGIN DBMS_STATS.GATHER_TABLE_STATS (OWNNAME => '"SAPP01"', TABNAME => '"GLPCA"', ESTIMATE_PERCENT => NULL, METHOD_OPT => 'FOR ALL COLUMNS SI
    ORA-01652: unable to extend temp segment by 128 in tablespace PSAPTEMP
    ORA-06512: at "SYS.DBMS_STATS", line 13437
    ORA-06512: at "SYS.DBMS_STATS", line 13457
    ORA-06512: at line 1
    BR0886E Checking/collecting statistics failed for table SAPP01.GLPCA
    Regards,
    balaram

    HI,
    ORA-01652: This error is caused by a tablespace overflow. As a rule of thumb, PSAPTEMP should be at least twice as large as the largest index. If an overflow occurs despite this size, this is     frequently due to external reasons such as incorrect Oracle parameter settings, large-scale parallel processing or    unfavorable access paths. See also Note 3155.
    Check - 659946 for details.
    Best Regards
    Niraj

  • Unable to extend temp segment by 128

    Hello
    In our Company an erp is running very well.
    All reports were running very fine. and forms lov also.
    an error is comming when seen from sql
    unable to extend temp segment by 128 in tablespace MAKESS_TEMP
    for e.g
    1 select e.vc_group_desc,f.vc_sub_group_desc,
    2 to_number(substr(d.vc_invoice_no,3)) inv_no1,d.dt_invoice_date inv_date,
    3 b.vc_item_group,b.vc_item_sub_group,
    4 d.vc_item_code,d.vc_item_desc,d.vc_unit,d.vc_invoice_no,d.dt_invoice_date,
    5 d.nu_item_disc,
    6 d.vc_invoice_no inv_no,
    7 d.vc_cust_name cf_cust_name,d.nu_tot_sale_val,
    8 d.nu_tot_charge charge,d.nu_tot_disc disc,
    9 d.nu_tot_freight freight,d.nu_product_quantity,d.nu_product_rate,
    10 d.nu_item_val ,d.vc_voucher_no voucher_no,
    11 d.nu_tot_cycle_val,d.nu_tot_parts_val
    12 from dt_sale_invent d,
    13 makess.mst_item b,
    14 mst_group e,mst_sub_group f
    15 where
    16 f.vc_comp_code='01'
    17 and f.vc_sub_group_code=b.vc_item_sub_group
    18 and e.vc_comp_code='01'
    19 and e.vc_group_code=b.vc_item_group
    20 and b.vc_comp_code='01'
    21 and b.vc_item_code =d.vc_item_code
    22 and d.vc_comp_code='01'
    23 and d.dt_invoice_date between '01-APR-03' AND '31-MAR-04'
    24 and e.vc_group_code='66'
    25 and d.vc_item_group='66'
    26* order by 2,4,3
    SQL> /
    from dt_sale_invent d,
    ERROR at line 12:
    ORA-01652: unable to extend temp segment by 128 in tablespace MAKESS_TEMP
    here makess_temp is temporary tablespace
    i have seen makess_temp.ora file size has gone to 16 GB
    This tablespace was generated by this query
    CREATE TEMPORARY TABLESPACE makess_temp TEMPFILE 'D:\ORACLE9I\avondata\avon\maketemp.ora' SIZE 200M AUTOEXTEND ON NEXT 20M DEFAULT STORAGE ( INITIAL 100K NEXT 100K MINEXTENTS 1 MAXEXTENTS UNLIMITED PCTINCREASE 1 );
    pls recommend me what to do,how to increase its size

    As Jeroen suggests, you could add a datafile to your temp tablespace, but, I'm not sure that that is your problem.
    Unless your tables are really huge (and I mean several tens of Gb each), and that query actually returns a substantial percentage of the rows in the tables, I don't see why it would use 16Gb of temp.
    I would re-create the temp tablespace with:
    EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M
    for starters. Minimally, I would set pctincrease to 0.
    I would also look at the the Explain Plan for the query to see if there are a lot of sort joins going on. Make sure that the tables and indexes are analyzed properly so the statistics are up to date.
    HTH
    John

  • Unable to extend temp segment by 128 in tablespace TEMP

    Hi all,
    I am using apps 11.5.10.2 and i think this is a database issue
    ERROR at line 1:
    ORA-01652: unable to extend temp segment by 128 in tablespace TEMP
    Do i have to increase the tablespace, if so how to do it. I don't even know the EM Pass
    Regards
    Jagan

    what is the size of your temp tablespace?
    Have another try, if the problem persists, increase the temp datafile size.
    alter database tempfile <temp file name> resize <integer> M;
    You can also add a new datafile.
    ALTER TABLESPACE name ADD TEMPFILE 'filename.dbf' SIZE 10M;
    You can always investigate and try to avoid too much sort by checking the SQL.
    Jaffar

  • Unable to extend temp segment by 256 in tablespace PROD_REV_FACT_TS

    I get the following error
    please let me know how to solve this
    ERROR at line 31:
    ORA-01652: unable to extend temp segment by 256 in tablespace PROD_REV_FACT_TS
    Free space
    1 select tablespace_name , sum(bytes)
    2 from dba_free_space
    3 where tablespace_name ='PROD_REV_FACT_TS'
    4 group by tablespace_name
    5* order by 2 asc
    SQL> /
    TABLESPACE_NAME SUM(BYTES)
    PROD_REV_FACT_TS 1547698176
    Tables available
    SQL> select count(1) from all_tables where tablespace_name ='PROD_REV_FACT_TS';
    COUNT(1)
    0

    As William pointed out, the total amount of free space is not very revealing. Also, there are potentially more things in tablespaces than tables. Try these two queries to get a better picture of what space you have, and what is in the tablespace.
    SELECT file_id, MAX(bytes) biggest, SUM(Bytes) total
    FROM dba_free_space
    WHERE tablespace_name = 'PROD_REV_FACT_TS';
    SELECT segment_name, segment_type, owner, bytes
    FROM dba_segments
    WHERE tablespace_name = 'PROD_REV_FACT_TS';For a really detailed view of free_space you could try:
    SELECT file_id, block_id, bytes
    FROM dba_free_space
    WHERE tablespace_name = 'PROD_REV_FACT_TS'
    ORDER BY 1, 2;It sounds like you are trying to create a table or an index in that tablespace, and running out of space. When you do that, Oracle initially builds the segment as a temporary segment. When the segment is fully built, the temporary segments are changed to permanent segments. This makes cleanup easier for Oracle if the database goes down in the middle of the operation.
    HTH
    John

  • ORA-01652: unable to extend temp segment by 128 in tablespace TEMP2

    Dear all,
    received this error when generate a report.
    check the TEMP1 and TEMP2 they all have lot of spaces.
    check the env $APPLLCSP return empty.
    Please advise how to correct this error.
    Regards,
    Payables: Version : 12.0.0
    APXSSIMP module: Supplier Sites Open Interface Import
    APPLLCSP Environment Variable set to :
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    American_America.UTF8
    Enter Password:
    REP-0069: Internal error
    REP-57054: In-process job terminated:Terminated with error:
    REP-300: MSG-00001: After SRWINIT
    MSG-00002: After Get_Company_Name
    MSG-00003: After Get_NLS_Strings
    MSG-00004: After Importing Suppliers
    MSG-00005: After Get_Header_Information
    ORA-01652: unable to extend temp segment by 128 in tablespace TEMP2
    ==> SELECT assi.org_id C_Rejected_Org_Id,
    MSG-00020: After SRWEXIT
    Report Builder: Release 10.1.2.0.2 - Production on Mon May 11 09:55:36 2009

    >
    check the TEMP1 and TEMP2 they all have lot of spaces.
    >
    How much is "lot" ? :-) How did you determine this "lot" ?
    Pl see MOS Doc 1025288.6 (How to Diagnose and Resolve UNABLE TO EXTEND Errors)
    HTH
    Srini

  • Combining Line Segments into a single shape

    I drew one half of a shape by drawing multiple line segments using the arc tool. Think of the shape as sort of a C. Once I had the shape the way I wanted it, I copied and reflected it to give me the other half, so now it looks sort of like an O. However, when I go to fill the shape, I get all sort of weird fills, like it is trying to close each of the individual arcs that I drew.
    I have spent over an hour going through Illustrators help and searching the internet, but I can't figure out how to join all these line segments into a single shape that I can then apply a fill to. I'm sure this is easy, but I'm frustrated.
    Thanks,
    Ken

    Thanks Kurt. That did it. My gosh, I would never have thought of looking for something like that. I upgrade to CS3 sometime ago, but hadn't used illustrator much since I upgraded.
    Thanks for the help.
    Ken

  • Joining Line Segments

    The line looks like it's connected, but it's not. When I apply the brush effect it becomes disjointed. I want it to be one smooth stroke. Is there any way to join the line segments without having to redraw the stroke? I ask this because the line was imported into Illustrator from Flash, there are many more and I don't want to have to redraw them all. Thanks in advance for any help.

    Bob,
    Hopefully, you can:
    1. Deselect the path and then drag across each set of Anchor Points where the brushes go thin;
    2. Object>Path>Join.
    If you select the lot before 1+2, and look in the Layers palette, or open Window>Document Info, and select Objects in the flyout menu, you should be able to see that there are multiple paths; the latter shows the number of points in each selected object.
    If 1 + 2 do (or should it be does) not work, there are probably multiple Anchor Points at the end(s) of either/both of the paths to be joined; the surplus should be deleted.
    Or the paths may be grouped, and should be ungrouped first; that may also be seen in the Layers palette/Document info.

  • Joining Line Segments in CS6

    I am drawing a simple diamond shape made with one rectanlge shape and multiple line segments.  As I drew the design, I made sure to connect all the segments at the anchors.  When I select all of the segments and try to join the paths, the end points or corners are not smooth.  In other words, some of the line segment ends hang over the edges...  What am I doing wrong?  Thanks!
    The image below shows the left side of the diamond, where the top portion meets the bottom...

    Thank you, DayForce.  Changing the corner type to "round join" did the trick!  May I ask another question?  When I select all the segments and join the paths, I get an additional line segment from one point to another.  How can I elminiate this?

  • Unable to extend TEMP segment even after adding fresh temp files

    Hi All,
    I have a huge table with rows nearly 2 million. When this table is moved to another tablespace, the command failed giving the following error:
    ORA-01652: unable to extend temp segment by 128 in tablespace XYZ
    To overcome this error, an additional temp file was added with huge size. Unfortunately, the same error appeared again when the table was tried to move to another tablespace. I wonder if the new temp file was not recognized by database, so tried to see how many files belong to temporary tablespace, but the query listed the newly added temp file also.
    What could be the possible reason for this error? Suggestions or clues are most welcome.
    Thanks,
    ...

    The temp segment is for the table that is being moved.
    Oracle creates a temporary segment when doing a move. If the target tablespace has enough space, the move succeeds and the temp segment gets converted to a Table segment. Else, if the move fails because of lack of space (the temp segment itself unable to grow), then the temp segment is dropped on failure.
    Thus, in a
    alter table ABC move tablespace MY_TBS;or
    the target tablespace MY_TBS should have enough space for ABC. While Oracle is building the copy of ABC in MY_TBS, it is being built as a temporary segment. If the copy succeeds, the temporary segment is renamed as a Table segment 'ABC' and the original table segment 'ABC' is dropped.
    This behaviour also happens when you do an ALTER TABLE .. MOVE ; into the same tablespace that it is existing in. The new copy of the table is a temporary sgement till the copy succeeds.

  • Unable to extend temp segment by 128 in tablespace PSAPTEMP

    Hi everybody!
    While processing a UNICODE coversion with SAPINST on my SAP NW2004s system (AIX 5,2  - Oracle 10.2 - BW 7.0) into my.SAPDFACT_1.log file the following errors occured:
    DbSl Trace: ORA-1403 when accessing table SAPUSER
    (DB) INFO: connected to DB
    (DB) INFO: DbSlControl(DBSL_CMD_NLS_CHARACTERSET_GET): UTF8
    (GSI) INFO: dbname   = "HBQ20080503070541                                                                                "
    (GSI) INFO: vname    = "ORACLE                          "
    (GSI) INFO: hostname = "si088ss1                                                        "
    (GSI) INFO: sysname  = "AIX"
    (GSI) INFO: nodename = "si088ss1"
    (GSI) INFO: release  = "2"
    (GSI) INFO: version  = "5"
    (GSI) INFO: machine  = "0031832B4C00"
    (DB) INFO: /BIC/FZHPY_LIM created #20080503200234
    (IMP) INFO: import of /BIC/FZHPY_LIM completed (133182692 rows) #20080503212420
    DbSl Trace: Error 1652 in exec_immediate() from oci_execute_stmt(), orpc=0
    DbSl Trace: ORA-1652 occurred when executing SQL stmt (parse error offset=42)
    (DB) ERROR: DDL statement failed
    (CREATE UNIQUE INDEX "/BIC/FZHPY_LIM~0" ON "/BIC/FZHPY_LIM" ( "KEY_ZHPY_LIMP", "KEY_ZHPY_LIMT", "KEY_ZHPY_LIMU", "KEY_ZHPY_LIM2", "KEY_ZHPY_LIM3", "KEY_ZHPY_LIM4", "KEY_ZH
    PY_LIM5", "KEY_ZHPY_LIM6", "KEY_ZHPY_LIM7" ) TABLESPACE PSAPSR3 STORAGE (INITIAL 65536 NEXT 0000002560K MINEXTENTS 0000000001 MAXEXTENTS 2147483645 PCTINCREASE 0 ) NOLOGGING COMPUTE STATISTICS )
    DbSlExecute: rc = 99
      (SQL error 1652)
      error message returned by DbSl:
    ORA-01652: unable to extend temp segment by 128 in tablespace PSAPTEMP
    (DB) INFO: disconnected from DB
    Anybody can help me?
    Thanks a lot!

    Hi Stefan!
    desc SAPSR3."/BIC/FZHPY_LIM";
    Name                                      Null?    Type
    KEY_ZHPY_LIMP                             NOT NULL NUMBER(10)
    KEY_ZHPY_LIMT                             NOT NULL NUMBER(10)
    KEY_ZHPY_LIMU                             NOT NULL NUMBER(10)
    KEY_ZHPY_LIM2                             NOT NULL NUMBER(10)
    KEY_ZHPY_LIM3                             NOT NULL NUMBER(10)
    KEY_ZHPY_LIM4                             NOT NULL NUMBER(10)
    KEY_ZHPY_LIM5                             NOT NULL NUMBER(10)
    KEY_ZHPY_LIM6                             NOT NULL NUMBER(10)
    KEY_ZHPY_LIM7                             NOT NULL NUMBER(10)
    /BIC/ZHCONTING                            NOT NULL NUMBER(17,2)
    /BIC/ZHD_IMP                              NOT NULL NUMBER(17,2)
    /BIC/ZHPERC2                              NOT NULL NUMBER(10)
    SELECT AVG_ROW_LEN FROM ALL_TABLES WHERE TABLE_NAME = '/BIC/FZHPY_LIM';
    AVG_ROW_LEN
    SELECT BYTES, BLOCKS FROM DBA_SEGMENTS WHERE SEGMENT_NAME = '/BIC/FZHPY_LIM';
         BYTES     BLOCKS
    7180648448     876544
    SELECT FILE_NAME, TABLESPACE_NAME, BYTES, BLOCKS, AUTOEXTENSIBLE, MAXBYTES, MAXBLOCKS FROM DBA_TEMP_FILES;
    FILE_NAME
    TABLESPACE_NAME                     BYTES     BLOCKS AUT   MAXBYTES  MAXBLOCKS
    /oracle/HBQ/sapdata1/temp_1/temp.data1
    PSAPTEMP                       1048576000     128000 YES 1.0486E+10    1280000
    /oracle/HBQ/sapdata1/temp_1/temp2.data1
    PSAPTEMP                        298844160      36480 YES 3.4359E+10    4194176
    Thanks.

  • Unable to extend temp segment

    Hi All,
    I received the following error;
    ORA-01652: unable to extend temp segment by 128 in tablespace TEMP2
    Then I added the datafile in temp2 tablespace.
    But still it giving the same error;
    Syntax of Create tablespace is
    Create temporary tablespace temp2
    Datafile ‘\temp_01.dbf’ size 500m;
    Table contains 100000 records;
    Please help me.
    Thanks and regards,
    Prathamesh.

    Please check the allocation and deallocation of space in a temporary tablespace sort segment using the V$SORT_SEGMENT view. The V$TEMPSEG_USAGE view identifies the current sort users in those segments.
    Also, check settings of TEMP tablespace. May be it's trying to create a huge extent as NEXT (larger than available space), which is not required. In that case reduce NEXT EXTENT for this.

Maybe you are looking for