Date datatype conversion through ODBC

Using Form5 when datatype date is entered or modified, the save
command gives error FRM-40508 unable to insert record or unable
to update record. When checked under help to display error, the
message in OCA-30010 error in data conversion by ODBC. The
record in the database entered through command line having date
field show alright in the form but if it is modified then the
error start coming. The default date format (DD-MON-YYYY) is
uded.
Can you please let me know the reason of this error and how date
datatype can be entered in the record using Forms with ODBC
connectivity.

If you need to pass the string parameter value to a command object as a date then you will need to use a subreport that is based on the commadn object. The main report will have the string date parameter and in a formula in the main report convert the string to a date. Link the subreport on this formula to the commadn object parameter

Similar Messages

  • Extract data on forms9i through ODBC/systemDSN

    Im trying to extract data through system DSN using ODBC utility on
    forms 9i , i'll be grateful if anyone help me that how can i connect to ODBC/system DSN on forms9i and inform me in this regard.
    Asim

    Well yeah,
    That's what I have done actually (I just forgot to update this thread).
    I was actually able to create views over informix tables with serial data type, using a cast to integer, and then, I was able to extract data from those informix tables.
    Indeed, the DI documentation states that the serial datatype in informix is not supported in DI...
    I just wonder how I could solve that if I hadn't the right to create views in the production database....
    Any thoughts ?

  • Does ODBC encrypts data while passing through the network?

    Does ODBC encrypts data while passing through the network?

    ODBC uses the underlying Oracle networking components to transmit data. By default, these components do not encrypt data, although they can be made to do so-- see the "SSL Encryption" thread from a few days ago.
    Justin

  • Converting 99999999 to date datatype through sql/ssis

    Hi,
    I am developing an ETL in which we get this column which holds the value 99999999 in one of the columnwhich is of numeric datatype. User wants that field to be date time in destination. Please help me on how to convert that value into date datatype in SSIS.
    Please........

    Thank you Rajen,
    But I have used Collasce to solve this issue.
    COALESCE
    (NULLIF(t1.dtetrm,
    '99999999')
    ,'20991231')

  • Data type Replication and ODBC

    I want to convert table that has column with LONG datatype to
    supported datatype by replication. Currently the LONG column
    contains more than 4,000 bytes so I can't convert to Varchar(2).
    If I convert to CLOB then the application that we are using is
    connecting through ODBC drivers and CLOB is not supported by
    ODBC.
    Is any one run into this situation? What is recommended or
    practical solutions for this problem?
    Thanks.
    --Pravin

    Thx,
    I used data type java.sql.Timezone and it works fine ;) This data type parse Date to format yyyy-MM-dd hh:mm:ss, so basically does not matter if I use string or this type :) but this is better ;)
    Problem is in timezone ! :( In data type java.sql.Timezone is not possible set timezone! :(

  • Unable to import tables through ODBC in obiee 11g

    Hi all,
    In obiee 11g,
    OBIEE 11g is successfully installed but when i am trying to import the tables in RPD through odbc then it is giving a problem.
    I have tried using the OCI and it is working fine but can anyone tell me why it is not happening through odbc.
    created the dSN for it and it is working fine.
    any help would be appreciated.
    thanks in advance.

    Hi,
    You need do full installation of obiee11g.
    Go through this..May help you.Not getting connected to a data source in obiee 11g
    How to install 11g ODBC client drivers to access OBIEE 11g server?
    Regards,
    Srikanth

  • Need Help with data type conversion

    Hello People,
    I am new to java, i need some help with data type conversion:
    I have variable(string) storing IP Address
    IPAddr="10.10.103.10"
    I have to call a library function which passes IP Address and does something and returns me a value.
    The problem I have is that external function call in this library excepts IP Address in form of a byte array.
    Here is the syntax for the function I am calling through my program
    int createDevice (byte[] ipAddress).
    now my problem is I don't know how to convert the string  IPAddr variable into a byte[] ipAddress to pass it through method.

    Class InetAddress has a method
    byte[]      getAddress() You can create an instance using the static method getByName() providing the IP address string as argument.

  • Database Variant to Data.vi not working for the Date datatype with LV 8.2?

    I'm moving a large body of LV database code from LV 7.1 to 8.2 and find that the Database Variant to Data.vi is not working correctly when used with the Date datatype. It works fine with 8.0, and the common Variant to Data works also. Am I missing something? Thanks in advance for any assistance. Wes

    Thanks for the prompt reply Crystal,
    The data is stored in an Oracle database using the DATE type. I'm querying many rows along with other columns and converting each of the values as necessary for each column with the 'Database Variant to Data' vi. Only conversion to Timestamp is no longer working as of version 8.2. I recognize that plain Variant to Data works but I have many (100's) of VIs to change if that is the only solution (not the end of the world). Most often the dates are originally generated in the database using PL/SQL procedures calling SYSDATE which look like: 5/1/2006 11:56:26 AM (in TOAD anyway) which I then need to read into LV as type Timestamp.
    Regards, Wes.

  • Connect PostgreSQL to Oracle 10g through ODBC: can't read all_tables

    Oracle 10g is not able to read the database table names (all_tables and all_objects, es. select * from all_tables@hspostgresodbc) from PostgreSQL using ODBC (v. 08.01.0200). This functionality is essential to be able to use Oracle Warehouse Builder and import external database definitions (heterogeneous services).
    However, Oracle (SQL*Plus) is able to retrieve records when the table name is stated in the SQL query (es. select * from “my_table”).
    The problem seems to be specifically with the PostgreSQL ODBC because Oracle is able to read schemes from other databases through ODBC. I’ve done some tests with Access dbs just to be sure that the problem is not with my system (Windows XP SP2).
    The problem appears both with ANSI and UNICODE PostgreSQL drivers.
    Any suggestion of how workaround this problem?
    thanks in advance,
    Raoni

    Dear all,
    I’ve tried different tracing levels with out success. The log file does not seem to be created by Oracle.
    Looking closer to the debug and comm logs from the driver 8.01.0200, I’ve found out that the problem was generated after a table wasn’t found (the driver seems to search for the all_tables table, and just afterwards to query the scheme pg_catalog). In this case the all the following queries returned with the error “ERROR: current transaction is aborted, commands ignored until end of transaction block”. Maybe this problem is related with the bug [#1000641] http://pgfoundry.org/tracker/index.php?func=detail&aid=1000641&group_id=1000125&atid=538
    Following the Postgres odbc developers suggestion, I’ve installed the psqlODBC v 08.02.0002 and I’ve got a completely different result.
    As before, the simple query “select * from my_table@hsodbc” returns the result using SQL*Plus clearly faster than before.
    Doing the query “select * from all_tables@hsodbc” the result is OK (the name of 56 tables) but the process is very slow and burdensome. The file paging memory in the machine running Oracle and the SQL*Plus jumps from the normal 700 MB to 1.7 GB, and the query takes about 20 minutes to complete.
    Also the 1.7 GB remains allocated and the query process halted in PostGreSQL even after the on screen result of the query. The memory is freed and the process terminated after the logging out SQL*Plus.
    Probably as result of this memory explosion, the system runs out of memory and Oracle Warehouse Builder selecting data base link -> schema, after some minutes get an error similar to: “can’t read from memory address XXXXX”
    All those test where done with PostGreSQL 8.0.1 (on Linux Suse 9.0) and Oracle 10g (Windows XP SP2).
    To be sure that the problem was not related to the PostGreSQL version, we updated the server to the 8.1.3 (running in Linux Suse 9.0 with psqlODBC v 08.02.0002 ) and OWB couldn’t see any table as before and doing Select * from all_tables@hsodbc we’ve got the message:
    ERROR:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Generic Connectivity Using ODBC]
    ORA-02063: preceding 2 lines from HSPG
    no rows selected
    On the other hand, with the same configuration as before (Oracle 10g under Windows XP SP1, psqlODBC v 08.02.0002) but with PostGreSQL 8.1.3 under Windows XP SP1, OWB can read table names (same tables imported from Linux PostgreSQL) but not all_tables (a minor problem, because what is important for us is to make OWB work with PostgreSQL).
    The encoding for all DBs is UTF8.
    Any ideas of where could be the problem?
    regards,
    R.

  • Can't view a report connecting through ODBC(RDO)  to DB with InfoView (CMC)

    Environment :
    Crystal Reports machine :
    OS :
    Windows Server 2008 64-bit
    Crystal Reports Developer 2008 SP0
    Crystal Reports Server 2008
    DB Server:
    Windows Server 2003 32-bit
    SQL Server 2000 SP3
    What is going on:
    All the reports connecting through ODBC (RDO) to the database server work fine in the developer interface (I can preview them) but cannot be accessed if I try to view them in InfoView / CMC ("Please wait while the document is being processed" message box doesn't go away...).
    I have tried both the SQL Server driver 6.00.6001.1800 and SQL Server Native Client 10.0 2007.100.1600.22 with the same results.
    PS All the reports using OLE DB work just fine, I would prefer to have the ODBC option working through the web interface because I have a few hundreds report to change otherwise ...
    Virgil Rucsandescu

    Our solution is a php web application, but this is not relevant (in my opinion), and here it is why:
    The php code should show the reports by using the direct links given by InfoView
    (like http://dev-web:8080/CrystalReports/viewrpt.cwr?id=801&apsuser=user&apspassword=password).
    Actually in this moment these links are looking different because currently we're using C.R. 10 + C.R. Server 10, but we are planning to move to CR 2008 + CR Server 2008.
    So now I am testing how these direct links do work, they're actually working perfectly till now, but only if I connect through OLEDB to the DB server (SQL Server 2000). Any attempt to do it through the 2 ODBC drivers failed until now.
    And I don't want to think about changing the data source hundreds of reports (lot of them having subreports too) ...

  • SQL Developer: Right-click format doesn't work right with DATE datatype

    Hi All!
    Currently I'm using version SQL Developer Version 3.1.05.
    Got a question regarding the 'auto-format' of syntax whenever writing in the code editor.
    If you take this snippet of code and drop it into a worksheet, then highlight it, right click the mouse, then select "format" it's like it fails to add the proper spacing when it runs into the DATE datatype. I looked all through the : preferences > database > sql formatter > oracle formatting > edit and couldn't find anything regarding the formatting with date types.
    Am I looking in the wrong area?? Is this a known bug? Having trouble searching for this exact issue too. I LOVE the format feature, but I hate having to go to each date type and manually spacing it out to make everything look 'clean'. I'm picky I guess :P I can live with it but figured I'd ask.
    type TEMP_REC
    IS
    record
    ORG_CODE VARCHAR2(15),
    PROJECT VARCHAR2(15),
    WBS VARCHAR2(30),
    SERIAL_NO VARCHAR2(30),
    QTY_ORDERED NUMBER,
    QTY_SCRAPPED NUMBER,
    QTY_COMPLETE NUMBER,
    BOM_ID NUMBER,
    REQUEST_DATE DATE,
    CREATE_DATE DATE,
    REL_DATE DATE,
    START_DATE DATE,
    NEED_DATE DATE,
    DUE_DATE DATE,
    COMPLETE_DATE DATE,
    CREATED_BY VARCHAR2(30),
    MODIFIED_BY VARCHAR2(30),
    MODIFY_DATE DATE,
    EST_HOURS NUMBER(6,2),
    ACT_HOURS NUMBER(6,2),
    BAD_COMMENTS VARCHAR2(1000) );

    Hello,
    I put 3.1.07 as you'd suggested. Seems the problem is still occuring for me... probably a user preference though ;)
    Open a new worksheet and drop this in, highlight everything, right-click and choose "format". All the keywords (varchar2, number, etc) should align on themselves making it look nice. I have mine set up to line-break after a comma. (I can't get it to format properly as I type it here onto the forums, so added a bunch of spaces to try to mimic it in this view)
    type TEMP_REC
    IS
    record
    LEAD_TIME NUMBER(5,0),
    SCRAP_PERCENT NUMBER,
    CREATED_BY VARCHAR2(30),
    MODIFIED_BY VARCHAR2(30),
    OPER_SEQ VARCHAR2(6),
    REF_NO VARCHAR2(2000),
    COMMENTS VARCHAR2(2000),
    BOM_FLAGS VARCHAR2(100),
    BOM_ATTR1 VARCHAR2(30),
    BOM_ATTR2 VARCHAR2(30),
    BOM_ATTR3 VARCHAR2(30),
    BOM_AMT1 NUMBER,
    BOM_AMT2 NUMBER,
    BAD_COMMENTS VARCHAR2(1000) );
    Now, let's add another field in there, but this time a date/timestamp datatype. If you format it like this you will see that the keywords sort of 'reset' their position after it encounters a date/timestamp datatype. The date type doesn't align properly with the others.
    type TEMP_REC
    IS
    record
    LEAD_TIME NUMBER(5,0),
    SCRAP_PERCENT NUMBER,
    CREATED_BY VARCHAR2(30),
    MODIFIED_BY VARCHAR2(30),
    OPER_SEQ VARCHAR2(6),
    REF_NO VARCHAR2(2000),
    test DATE,
    COMMENTS VARCHAR2(2000),
    BOM_FLAGS VARCHAR2(100),
    BOM_ATTR1 VARCHAR2(30),
    BOM_ATTR2 VARCHAR2(30),
    BOM_ATTR3 VARCHAR2(30),
    BOM_AMT1 NUMBER,
    BOM_AMT2 NUMBER,
    BAD_COMMENTS VARCHAR2(1000) );
    Might post a picture next time if that still isn't clear, though I konw folks are leary against clicking links to see screenshots. Might you know what I'm doing wrong here?

  • Crystal Crashes when Creating a Connection to MySQL 5.0 through ODBC

    Post Author: [email protected]
    CA Forum: Data Connectivity and SQL
    I am using a MS Server to run BO Server.  I open Crystal Reports, create a new connection to my MySQL Database through ODBC (that is set up as a System DSN).  After i put in the log in credentials the dang thing crashes... Anyone?

    Now the problem has gone from bad to worse.
    I previously had a connection to my database but just couldn't see the tables.
    Now after I added another user I can't even make a connection. Instead I get an error message that says "An unidentified error has occured"
    My server and database are actually running. I can loginto my database through the MySQL workbench. It says it's running. The apache server also says it's running and if I key in localhost in my internet explorer it says "It works!"
    I have now deleted the new user in MySQL  that I added and now I can't even connect to the database in Dreamweaver.
    Any suggestions?
    Thank you,
    Blain

  • Plotting a graph having data points derived through cumulative functions

    Issue: Couldn't plot a graph that has data set derived through cumulative functions
    Error message: View Display Error
    Odbc driver returned an error (SQLExecDirectW).
    Error Details
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 17001] Oracle Error code: 937, message: ORA-00937: not a single-group group function at OCI call OCIStmtExecute. [nQSError: 17010] SQL statement preparation failed. (HY000)
    Issue Details:
    I have a repository build with Business model mapping having a couple of logical columns based on cumulative functions. The columns are defined as posted in Re: Support to oracle cumulative functions I successfully created those columns in Business model mapping and Presentation layers. Then I checked in my changes to reflect in OBIEE dashboard / answers. I included those columns in my dashboard along with some other required columns. When I try to plot graph / table I am getting the error message as mentioned.
    I observed the sql query sent to database and found that in second level select clause has some columns included with out 'group by' clause. I have executed the SQL query after adding required group by clause and it gave me some results based on the criteria.
    The SQL query sent by OBIEE to database is:
    select D1.c5 as c1,
         D1.c6 as c2,
         ( ( SUM(SUM(D1.c3) ) OVER () ) - ( SUM( SUM(D1.c4) ) OVER ( ORDER BY D1.c2 desc ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING) ) ) as c3,
          ( ( SUM( SUM(D1.c3) ) OVER () ) - ( SUM( SUM(D1.c3) ) OVER ( ORDER BY D1.c2 DESC ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING ) ) ) as c4
    from
         (select T1385.DAY_WID as c2,
                   sum(T1385.PLANNED_LABOR_UNITS) as c3,
                   sum(T1385.ACTUAL_LABOR_UNITS) as c4,
                   T1308.PROJECT_NAME as c5,
                   T1168.DAY_DT as c6
              from
                   W_PROJECT_D T1308 /* Dim_W_PROJECT_D_Project */ ,
                   W_PROJECT_SECURITY_S T5074 /* System_W_PROJECT_SECURITY_S_ProjD */ ,
                   W_ACTIVITY_D T1187 /* Dim_W_ACTIVITY_D_Activity */ ,
                   W_PROJECT_SECURITY_S T5118 /* System_W_PROJECT_SECURITY_S_Actv */ ,
                   W_DAY_D T1168 /* Dim_W_DAY_D_Common */ ,
                   W_ACTIVITY_SPREAD_F T1385 /* Fact_W_ACTIVITY_SPREAD_F_Activity_Spread */ ,
                   W_PROJECT_SECURITY_S T5090 /* System_W_PROJECT_SECURITY_S_ActSpread */
              where  ( T1308.ROW_WID = T1385.PROJECT_WID and T1168.ROW_WID = T1385.DAY_WID and T1308.ROW_WID = T5074.PROJECT_WID and T1187.ROW_WID = T1385.ACTIVITY_WID and T1187.PROJECT_OBJECT_ID = T5118.PROJECT_OBJECT_ID and T1187.ACTIVITY_NAME = 'ActivitySatya8' and T1385.PROJECT_WID = T5090.PROJECT_WID and T5074.PROJECT_SEC_KEY = 1 and T5090.PROJECT_SEC_KEY = 1 and T5118.PROJECT_SEC_KEY = 1 and (T1308.PROJECT_NAME in ('P6PilotPrjSatya2')) )
              group by T1168.DAY_DT, T1308.PROJECT_NAME, T1385.DAY_WID
         ) D1
    order by c1, c2
    {code}
    Any help would be appreciated.
    Thanks,
    Satya                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Hi,
    I have added following code as group by in Answers advanced tab.
    "General - (Project)"."Project Name", "General - (Activity)"."Activity Name", Calendar."Calendar Date", Calendar.DAY_WID
    {code}
    Sql issued shown in Answers advanced tab is
    {code:sql}
    SELECT "General - (Project)"."Project Name" saw_0, "General - (Activity)"."Activity Name" saw_1, Calendar."Calendar Date" saw_2, Calendar.DAY_WID saw_3, Units.SatyaTestRemainingUnits saw_4, Units.SatyaTestAvailableUnits saw_5 FROM "P6 Detailed Performance" WHERE ("General - (Project)"."Project Name" = 'P6PilotPrjSatya2') AND ("General - (Activity)"."Activity Name" = 'ActivitySatya8') GROUP BY "General - (Project)"."Project Name", "General - (Activity)"."Activity Name", Calendar."Calendar Date", Calendar.DAY_WID ORDER BY saw_0, saw_1, saw_2, saw_3
    {code}
    I am getting error even after adding the group by function explicitly from Answers advanced tab. The error message while displaying results in Chart is:
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 17001] Oracle Error code: 937, message: ORA-00937: not a single-group group function at OCI call OCIStmtExecute. [nQSError: 17010] SQL statement preparation failed. (HY000)
    SQL Issued: SELECT "General - (Project)"."Project Name" saw_0, "General - (Activity)"."Activity Name" saw_1, Calendar."Calendar Date" saw_2, Calendar.DAY_WID saw_3, Units.SatyaTestRemainingUnits saw_4, Units.SatyaTestAvailableUnits saw_5, AGGREGATE(saw_4 BY saw_0), AGGREGATE(saw_5 BY saw_0) FROM "P6 Detailed Performance" WHERE ("General - (Project)"."Project Name" = 'P6PilotPrjSatya2') AND ("General - (Activity)"."Activity Name" = 'ActivitySatya8') GROUP BY "General - (Project)"."Project Name", "General - (Activity)"."Activity Name", Calendar."Calendar Date", Calendar.DAY_WID ORDER BY saw_0, saw_1, saw_2, saw_3
    I am getting the following error, while displaying the results in a Table
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 42020] GROUP BY clause, [Dim - Project.Project Name, Dim - Activity.Activity Name, Dim - Date.Calendar Date, Fact - Activity Spread.DAY_WID], is inconsistent with the projected columns in the SQL query request. (HY000)
    SQL Issued: SELECT "General - (Project)"."Project Name" saw_0, "General - (Activity)"."Activity Name" saw_1, Calendar."Calendar Date" saw_2, Calendar.DAY_WID saw_3, Units.SatyaTestRemainingUnits saw_4, Units.SatyaTestAvailableUnits saw_5 FROM "P6 Detailed Performance" WHERE ("General - (Project)"."Project Name" = 'P6PilotPrjSatya2') AND ("General - (Activity)"."Activity Name" = 'ActivitySatya8') GROUP BY "General - (Project)"."Project Name", "General - (Activity)"."Activity Name", Calendar."Calendar Date", Calendar.DAY_WID ORDER BY saw_0, saw_1, saw_2, saw_3
    Thanks,
    Satya                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to execute STP with Named type table as parameter through ODBC calls.

    Hi All,
    I am using Oracle 10g release 2. I am having a Stored function which takes Named Type Table as its parameter.
    For example
    CREATE OR REPLACE TYPE tblName is table of someUDT.
    CREATE OR REPLACE function nestfunction(t tblName)
    return NUMBER
    as
    //function body here.
    end;
    Now, I want to call this Stored function nestfunction through ODBC calls. Also want to add multiple rows in tblName parameter.
    But am unable to perform the above mentioned task. If you have answers please, reply.
    Thanks and regards
    ftil555

    Hi Arik,
    Thanks for the reply. I got the solution by configuring a NonXA data source. The problem was with internal commits of the fnd_global.initialize api.
    If the DB adapter is calling aPL/SQL procedure (written inside a pakcage) using the data source configured to support XA, will expect not to have any commits in side the procedure or anywhere, the XA driver will take of the commits and whole transactions. By default the FND_GLOBAL.INITIALIZE(...) procedure will have the internal commits, so it was throwing the errors.
    The solution was configuring the a NonXA Data source in the databae adapter configuration will allow the commits inside the callings procedures. So we created Two data sources one for XA and another for NonXA and we are using the NonXA datasource whereever we are calling the EBS APIs which have the internal commits.
    -- Khaleel

  • Accessing Oracle spatial objects (SDO_GEOMETRY) through ODBC/OLEDB

    Hello.
    I tried googling and reading through these forums and Oracle documentation, but I'm still uncertain on this question:
    Are Oracle spatial objects (of type SDO_GEOMETRY) accessible through ODBC and/or OLE DB drivers? Can I retrieve them with SELECT clause? Can I write them to database?
    I'm limited to these options because I'm developing Delphi application based on ADO and it must work with different DB servers. However I certainly don't want to implement different ways of accessing database for each server.
    If geometry objects aren't suported by ODBC/OLEDB, is there any way to convert SDO_GEOMETRY to (and from) BLOB or string or whatever, so I can read and write them like a normal data field?
    Thanks in advance.
    Edited by: user13816863 on 25.01.2011 20:35
    Edited by: user13816863 on 25.01.2011 21:57

    The SDO_UTIL package has lots of options to help output spatial data to other formats, and you may be able to use some of them to help.
    Some that come to mind are:
    SDO_UTIL.TO_WKTGEOMETRY
    SDO_UTIL.TO_GMLGEOMETRY
    SDO_UTIL.TO_KMLGEOMETRY
    This is covered in chapter 32 of the Oracle® Spatial Developer's Guide 11g Release 2 (11.2).

Maybe you are looking for

  • Multi devices- use one iTunes account

    I have a macbook, ipad and 2 iphones,  can I use the same itunes account or all devices?

  • How can I make New Tab Homepage work in Firefox 6.0 ?

    I just upgraded to Firefox 6 beta and New Tab Homepage stopped working.

  • Wish list: Voice recorder & address book

    I would love to have a built-in voice recorder for recording memos. Doesn't seem that hard to do. I would also love to have an icon for the address book, a la OS X, instead of having to go through the phone icon. How about BlueTooth syncing? What oth

  • Pass literal to Java Stored Procedure?

    The standard Java SP call spec is of the form: (assume a PLSQL package spec properly declares publicProc) CREATE OR REPLACE PACKAGE BODY JavaSP AS PROCEDURE publicProc(param1 IN VARCHAR2) AS LANGUAGE JAVA NAME 'package1.Class1.method1(java.lang.Strin

  • Using Jspinner in Java GUI

    I now have the code for my JSpinner which sets the date at todays date. The problem i am having is that my spinner is still able to spin backwards when i dont want to give the user the option to choose a date which has already past. My code is: Spinn