How to [b]update[/b] [b]sdo_geometry[/b] field via [b]Database Link[/b]

I need to update a geom field(defined as mdsys.sdo_geometry) of a remote table via database link,but I failed; This is the SQL statement and the error;
update [email protected] set shape=mdsys.SDO_GEOMETRY(2002, NULL, NULL, mdsys.SDO_ELEM_INFO_ARRAY(1, 2, 1), mdsys.SDO_ORDINATE_ARRAY(2340411, 749349.375, 2340505.75, 749663.25, 2340571.75, 749924.813))
where objectid=1;
ORA-22804: remote operations not permitted on object tables or user-defined type columns
How could I update geometry field of a remote table?
Is there any method available ?
Thanks!!

Hi Percy,
Oracle distributed does not support objects. If you are using 9i there might be just enough functionality to support what you want to do (replication required some distributed support, which might be enough for you).
If it doesn't work then you may be out of luck with respect to distributed support, but you can connect to the remote database and update it that way.

Similar Messages

  • How can i update the ADRT table REMARK field

    How can i update the ADRT table REMARK field
    by using only function modules or BAPI's not by direct update's
    please help me
    i need it urgently

    Hi,
    you can try this code:
        SELECT SINGLE * FROM KNA1 WHERE KUNNR = wa_kunnr.
        IF sy-subrc = 0.
          CLEAR adrct.
          SELECT SINGLE * FROM adrct WHERE addrnumber = kna1-adrnr.
          IF sy-subrc = 0.
            adrct-remark = wa_remark.
            MODIFY adrct.
          ENDIF.
        ENDIF
    best regards,
    Thangesh

  • How to bind JtextFields in Swing to Table fields in the database

    Can some one give the code of how to bind JtextFields in Swing to Table fields in the database
    Am really new to java programming and have interest in learning

    The standard JDK doesn't do this for you. If you search on Google, you may find some 3rd party packages that will do this.
    You need to create your own form add execute the appropriate SQL yourself. Read the tutorial on [url http://java.sun.com/docs/books/tutorial/]JDBC Database Access to get started.

  • How to Find the Data Type of the Field In a Database Table

    Hi Experts,
    I'm currently working on a program which needs to find out the data type of the given field in a database table. In addition to accessing DD03L directly, is there any other workaround such as function module to help me achieve this? It would be helpful if a demo example could be provided.
    Thanks a lot.

    Hi,
    Use this..
    DESCRIBE FIELD dobj  TYPE typ.
    write typ.
    type will contain the data type of the object.
    and check this thread also....
    Re: How to get datatype of fields in dynamic structures
    Cheers,
    Simha.
    Reward all the helpful answers..

  • How do I update the value of  a field programmatically

    I want to change a form field "modified_by" to the current sso
    user using wwctx_api.get_user before updating the record in the
    database, how is a good way to do it? p_session.set_value? not
    having much luck with that, I put it in before processesing the
    for and get this error when I hit QUERY
    Error: An unexpected error occurred: ORA-06502: PL/SQL: numeric
    or value error (WWV-16016)
    An unexpected error occurred: ORA-06502: PL/SQL: numeric or
    value error (WWV-16016)
    (WWV-00000)

    Hi,
    If you create a function to return wwctx_api.get_user you could
    call this inside an update trigger, you could put in an
    exception to return USER if there is an error, this would then
    work for users connected directly and users using Portal.
    Regards Michael
    e.g.
    CREATE OR REPLACE FUNCTION F_PORTAL_USER RETURN VARCHAR2 IS
         vRet VARCHAR2(50) := wwctx_api.get_user;
    BEGIN
         RETURN(vRet);
    EXCEPTION
         WHEN OTHERS THEN
              RETURN (USER);
    END F_PORTAL_USER;

  • HT1414 how to i update 4.0 to my phone none of these links are helping me

    i need a link sent to my phone so i can upgrade ios 4

    You can't upgrade from the iPhone itself. It must be done from iTunes on a computer.
    (69516)

  • How to get Numric value from a Char field in the database?

    I have the following values in a column in Database.
    COMP
    GRADE
    CANC
    CANCELLED
    Comp
    Complete
    INCOMP
    NC
    NS
    85%
    79
    88 .... etc....
    I have to take the value from this field if it is a Numeric other wise I have to ignore that value.
    Please let me know how to handle this?
    Thanks,
    Lakshmi

    Thanks for the inputs.
    Here I want to take the value if it is numeric else I
    will ignore that record.
    Please let me know how to validate the data for a
    Numeric value.
    I don't want to stop my program by throwing these
    exceptions.The sample code catches the exception. At that point you can do whatever you want (set a boolean to say the value is not a number, etc.) - the program does not stop.

  • How to get elements in a multi-value field via javascript?

    The following will set variables.variable1 to variables.variable2 when the "Script Link" component is clicked...
    <Field>
    <Display class='Javascript'>
    <String>
    function myScript() {
    el=getElement(document.mainform,"variables.variable1");
    el2=getElement(document.mainform,"variables.variable2");
    el.value=el2.value;
    </String>
    </Display>
    </Field>
    <Field name='Script Link'>
    <Display class='Link'>
    <Property name='URL'>
    <String>javascript:myScript();submitCommand(document.mainform,%20'Recalculate');</String>
    </Property>
    </Display>
    </Field>
    My issue is, if variables.variabl2 is a list / multivalued, i get errors trying to traverse through the "array".
    How can i read and set an a list element via javascript function above? I've tried things like get() , and variables.variable2[0] .
    any help would be appreciated....
    is there an API somewhere i can reference?

    Hi,
    thanks for your reply!
    If I have the parameters in the URL and use the method GET it works all right.
    but I need the method to be POST. I suppose, I have the wrong way identifying the parameter name
    This is from VB
    varTarget = "http://localhost:9090/gm/getData" ' getData is my servlet
    xmlSendStr = "SQLStmt=SELECT TCPD_Cars.* From TCPD_Cars WHERE (((TCPD_Cars.CarIdent)=45));"
        xmlHttp.Open "POST", varTarget, True   'True means asynchronous
        xmlHttp.Send xmlSendStrthis is part of my Servlet
         protected void doPost(HttpServletRequest request, HttpServletResponse response)
                   throws ServletException, IOException {
              response.setContentType("text/html");
              PrintWriter writer  = response.getWriter();
              String SQLStmt = request.getParameter("SQLStmt") ;
            //make the database query and get the returns
            writer.println(GetSQLData(SQLStmt));
            //close the write
            writer.close();                    
         }I would appreciate any suggestions

  • How to Save pdf file in the BLOB field in the database

    I have to save a pdf file which is on the client machine to save in the database column of type BLOB. How can i do that?

    LostWorld wrote:
    I have to save a pdf file which is on the client machine to save in the database column of type BLOB. How can i do that?PL/SQL code cannot hack across the network. break into that client machine, and read that PDF file from the client's harddrive.
    There is a very fundamental client-server principle at stake here - the purpose of the client. What is the purpose of the client? Amongst others, it is to interface with the client hardware and peripherals and devices. Like reading the client keyboard and sending that to the server. Or reading data from the sever and rendering it on the client's display device. Or to receive CSV data from the server and writing it to a local file.
    It's purpose is also to read a local file, like a PDF file, and submit that file's contents to the server for storage.
    The following pseudo code explains the basic principle:
    client
      // call oracle to create a LOB
      ExecuteSQL( 'DBMS_LOB.CreateTemporary( .. )' )
      open file( fileHandle )
      while not EOF( fileHandle )
        // read data from the file
        read file( fileHandle, buffer )
        // write this buffer to the LOB in Oracle
        ExecuteSQL( 'DBMS_LOB.writeAppend( .. )' )
      end while
      close file( fileHandle )
      // now tell Oracle what to do with that LOB
      ExecuteSQL( '...' )
      .. etc..Thus the client:
    a) creates a LOB in Oracle via a PL/SQL call
    b) passes data from the client and appends it to the LOB
    c) tells Oracle what to do with LOB, such as inserting it into a table

  • How to intercept variables in report's formula field via TOAD?

    I have a case in this report. I have a report that generates a list of items with info of their initial stock, stock movements and final stock. no problem for the in and out stock movements.
    but there's a slight problem with the initial stock. I wrote a formula field that executes several select queries to obtain the inital stock. The XML report format roughly looks like this:
    Item_Name Initial_Stock Stock_In Stock_Out Final_Stock
    <?Item_name?> <?CF_Init?> <?In?> <?Out?> <?CF_Final?>
    As you can see, the Initial Stock and Final stock data is obtained through a formula field. And the select queries I mentioned above are employed in the formula fields. The rest of the fields are obtained directly from the SQL field in the report. Right now the report generates all items, whether their initial stock is zero or not. What I'm trying to do is not displaying items whose initial stock, stock in, stock out and final stock are zero. thanks
    Edited by: 801264 on Oct 14, 2010 9:22 PM
    Edited by: 801264 on Oct 14, 2010 10:39 PM

    Well you could try upgrading to a more recent Java runtime for starters.
    This is a native crash, which means something went wrong outside of Java code. The trouble is that you can't know WHERE it happens; The JVM itself is only a client of the machine it runs in and can be made unstable by outside influence. Under Linux it takes only one wonky shared library. It could be a driver. It could be a problem in the kernel. It could be another process. It could be anything.
    It could also be a bug in the JVM of course, but the only way you have a right to report it as a bug is if you try to see if the problem persists under the latest update.

  • How to upload data to a "CLOB" datatype field in a database table

    Using sqlldr what is the correct way to upload character data (far greater than the 4000 Bytes allowed in varchar2)?
    setting the table field name datatype to clob and then using the field name against a large dataset in the control file I get the error that the input record (field) is to large.. adding "clob" after the table field name in the sqlldr control file just gives me a syntax error..
    Running Oracle 9.2.0.6 on Solaris 9

    user511518,
    I think you're in the wrong forum. Perhaps you should start with this Web page:
    http://www.oracle.com/technology/products/database/utilities/index.html
    Look for the SQL*Loader links.
    Good Luck,
    Avi.

  • How to create a form from a table available from a database link?

    Hi,
    I have a table accessible via a database link.
    It is working perfectly, but I cannot create a from using the wizzard.
    It says: "Primary Key must be specified."
    But there is a primary key in the source database!
    Best regards,
    Sebastien (Geneva)

    a little more about dblink:
    i have a view in the dblink
    when i execute
    insert into ias_time_of_acc(ias29, end_acc_period, start_acc_period, acc_last_date_id, comp_date_id, active)
    values(:p4110_ias29, to_date(:p4110_end_acc,'DD.MM.YYYY'),
    to_date(:p4110_start_acc,'DD.MM.YYYY'),:p4110_last_date, :p4110_comp_date,'N');
    i've got this err:
    ORA-01461: can bind a LONG value only for insert into a LONG column ORA-02063: preceding line from OFSA_OWNER@OFSA_TO_ORCL
    and when i execute
    a:= to_date(:p4110_start_acc,'DD.MM.YYYY') ;
    b:= :p4110_last_date;
    c:= :p4110_comp_date;
    d:= :p4110_ias29;
    insert into ias_time_of_acc(ias29, start_acc_period, end_acc_period, acc_last_date_id, comp_date_id, active )
    values(d, a,to_date(:p4110_end_acc,'DD.MM.YYYY'),
    b, c,'N' );
    everything is working properly
    so problem is in the lenght of insert statment i think.

  • How do I populate a "Person or group" field via Elements.xml?

    So I have created a field titled "EmployeeName" and it's a "Person and Group" type. (View the Schema.xml below)
    <Field Name="EmployeeName" ID="{8579a35a-71a8-4070-b907-b6ede0daa352}" DisplayName="Employee Name" Type="User" />
    Now, I'm trying to populate the column via the Elements.xml file. As you can see by the commented out code below, I've tried every combination and I'm still unable to populate this column:
    <ListInstance Title="Employee_Rec_list" OnQuickLaunch="TRUE" TemplateType="10000" Url="Lists/Employee_Rec_list" Description="My List Instance">
    <Data>
    <Rows>
    <Row>
    <!-- <Field Name="EmployeeName">i:0#.f|membership|[email protected]</Field>
    <Field Name="EmployeeName">i:0#.f|membership|[email protected]</Field>
    <Field Name="EmployeeName">0#.f|membership|[email protected]</Field>
    <Field Name="EmployeeName">#.f|membership|[email protected]</Field>
    <Field Name="EmployeeName">[email protected]</Field> -->
    <Field Name="EmployeeName">[email protected]</Field>
    <Field Name="Achievements">Rock Star</Field>
    <Field Name="Achieve_x005f_Des">Cras congue varius metus, in tincidunt metus Vestibulum vel turpis nec leo porttitor pulvinar fringilla ut lacus. a dictum aliquam. Pellentesque non felis cursus, lobortis, mattis arcu. Duis molestie nisi quis lectus tincidunt, a porttitor turpis iaculis. Donec condimentum, tellus sit amet hendrerit aliquet, est eros faucibus nulla, eu ultricies ligula ante id quam. Suspendisse suscipit orci sit amet vestibulum ultrices. Nunc dictum tortor non magna volutpat</Field>
    </Row>
    </Rows>
    </Data>
    </ListInstance>

    Ok I figured it out. You need to you use the users ID.
    <Field Name="EmployeeName">15</Field>

  • HT4972 How can I update to iOs5 if I no longer have the PC I normally sync my iphone with

    The pc I use to backup and sync my iphone with has crashed and I am no longer able to use it. I need to update to iOs5. My friend has loaned me her pc, how can I update without losing all of my data.

    see this link http://discussions.apple.com/docs/DOC-3141

  • Update to ios 7.0.4 via itunes

    How do I update to ios 7.0.4 via itunes???

    What iphone do you have?
    YOu simply plug your phone to your computer and open itunes, itunes should detect your phone needs an upgrade. 
    You may need to update your itunes also.
    YOu didn't state any details.

Maybe you are looking for