Equivalent of dateadd(MS Acess) in oracle

I want the equivalent of
(DateAdd("s",[OBJ_M_DOCUMENTS.M_DOC_N_DATE],"12/15/1970")) which is Acess in oracle.
[OBJ_M_DOCUMENTS.M_DOC_N_DATE] is the column name.

http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/sql_elements001.htm#i48042

Similar Messages

  • Acess to oracle

    Hi I tried to get acess to oracle using the following code but when I tried to run it I got the following error message and I do not know why:
    D:\>javac dbAccess.java
    D:\>java dbAccess
    Exception in thread "main" java.lang.ClassNotFoundException: oracle.jdbc.driver.
    OracleDriver
    at java.net.URLClassLoader$1.run(URLClassLoader.java:198)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:262)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:130)
    at dbAccess.main(dbAccess.java:9)
    ==================================================================
    import java.sql.*;
    import java.util.*;
    class dbAccess {
    public static void main (String args []) throws Exception
    //DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver());
    Class.forName("oracle.jdbc.driver.OracleDriver");
    Connection conn = DriverManager.getConnection
    ("jdbc:oracle:thin:@localhost:1516:ORAL", "name", "ps");
    // @machineName:port:SID, userid, password
    Statement stmt = conn.createStatement();
    ResultSet rset = stmt.executeQuery("select id from sample_table");
    while (rset.next())
    System.out.println (rset.getString(1)); // Print col 1
    stmt.close();
    }

    // Test of Oracle JDBC/OCI connectivity
    // import the java.sql package to use JDBC
    // need to set classpath to /jdk1xxx/jre/lib/ext/classes12.zip;.
    // to run
    Hope that helps.

  • Does SAP offer an equivalent of the PREPARE  command in ORACLE

    Hi Experts,
    Does anyone knows the equivalent of PREPARE statement in SAP. I'm currently coding using Native SQL & the DB is ORACLE. Here is the code:
    SQLSTMT = 'SELECT PARTNER FROM BUT000'.
    EXEC SQL.
       PREPARE STATEMENT_NAME FROM :SQLSTMT
       DECLARE C1 SCROLL CURSOR FOR STATEMENT_NAME
       OPEN C1
       FETCH NEXT C1 INTO :GPARTNER
    ENDEXEC.
    How do I make this work in SAP?

    But once I had the problem to be "quite dynamic" in ABAP
    well it may be it's not that general: I want to select on a table.
    The tricky part was to what to fetch into ? At least I was dealing with one
    table so I could get the structure into a work area using dereferencing it.
    ABAP:
    data :
    dref type ref to data.
    FIELD-SYMBOLS: <wa> type any.
    don't know the table structure so I do it dynamically:
    CREATE DATA dref TYPE (TABLENAME).
    ASSIGN dref->* to <wa>.
    OPEN CURSOR curs FOR
              SELECT     (PART_COLUMNS)
                FROM     (TABLENAME)
                WHERE    (l_where)
                GROUP BY (PART_COLUMNS).
      DO.
              FETCH NEXT CURSOR curs into CORRESPONDING FIELDS OF <wa>.
    do whatever you need to do with <wa>
    ENDDO.

  • Equivalent of this db2 syntax in oracle?

    Can somebody please tell me what is the equivalent of the following in oracle:
    SELECT X.*
    FROM XMLTABLE (xmlnamespaces (DEFAULT "http://posample.org"),
    'db2-fn:xmlcolumn("CUSTOMER.INFO")/customerinfo'
    COLUMNS "CUSTNAME" CHAR(30) PATH 'name',
    "PHONENUM" XML PATH 'phone')
    as X
    I took this from http://publib.boulder.ibm.com/infocenter/db2luw/v9/index.jsp?topic=/com.ibm.db2.udb.apdv.embed.doc/doc/c0023903.htm.
    Thx!

    SELECT X.*
    FROM XMLTABLE
    xmlnamespaces (DEFAULT "http://posample.org"),
    '/customerinfo' passsing "CUSTOMER.INFO"
    COLUMNS
    "CUSTNAME" VARCHAR2(30) PATH 'name',
    "PHONENUM" XMLTYPE PATH 'phone'
    ) x

  • How to do equivalent of Mainframe batch jobs in Oracle

    Hi Everybody ,
    We are considering to move our application from mainframe to Oracle , our present day application relies heavily on mainframe batch jobs for report generation and other purposes, I was wondering what are the similar batch options we have in Oracle .Any feedback is most welcome.
    Thanks in advance ,
    Sanjay

    (Your question was posted to the forum dealing with Oracle's Application software so it's somewhat off topic.)
    However, Oracle does include a Job schedule capability (DBMS_JOBS) as part of the database, as well as other neat capabilities including a full blown Workflow and Message Queue - all built into the database.
    In addition, you might want to consider looking at the Oracle9i Application Server as that includes comprehensive (paper and web based) reports and (web based) ad-hoc query.
    Strongly urge you to contact a sales rep and ask for technical discussion on these capabilities.

  • What is the equivalant to t-sql  integer in oracle?

    I have heard that oracle doesn't have a "integer" value for table structures.
    It took all my integer fields and made them Number(10,0).
    When my program runs it compares the result to an integer and fails.. If I look at the value it says "1d" which I assume to mean 1 decimal datatype.
    I need to return an integer datatype. Do i need to change all the Number(10,0) to Number(10) or something else?

    number (10,0) is an integer type. How are you comparing numbers? I suspect a client conversion problem.
    By the way, this forum is specifically for the SQL Developer tool. You might get more responses in the 'SQL and PL/SQL' forum.

  • Live migration (Data transfer) from MS-Acess to Oracle? please look.

    Dear Members,
    we have our buses GPS system installed, the application gives data in to MS-Access. based on satellite movement once it catches our devices installed in Buses it produces a current position record the current place (GPS software used world places and give names of each small town),speed, etc there is upto 10 columns.
    i'm looking for the possibility of extracting two fields from that Ms-access table current place,speed into my Oracle database, that should be live transfer, means when ever a record stores into Ms-access i want this to be saved in Oracle too.
    actually they have a option SQL-server too, but i dont want to go SQL Server and already we are using Oracle 8 for all other operations. they (GPS software company)dont have an option or drivers to be integrated to Oracle.
    Please.. any ideas..
    thanks in advance

    If there is no primary key and no timestamp, I don't know how you would go about pulling only new records cheaply. The only thing I could think of would be to have a where not exists clause in the select statement, i.e.
    SELECT access.column1, access.column2
      FROM tableName@AccessDatabase access
    WHERE NOT EXISTS (
        SELECT orcl.column1
          FROM oracleTableName orcl
         WHERE orcl.column1 = access.column1
           AND orcl.column2 = access.column2 )which would obviously be an expensive query to issue repeatedly. Can you add a timestamp or some such to the Access table?
    Justin

  • Equivalent to the Pivot command on Oracle 10g

    Hi,
    I have a requirement where i want change the below statement so it pivots on the day of the week
    select periodid, entrydate, duration
    from period
    where period_id = xxxx
    The above statement will return 7 records for each of the days of the week.
    I want these 7 days to become columns.
    Is there a way I can change this so is it
    select period_id_monday, monday_duration, period_id_tuesday, tuesday_duration,
    period_id_wednesday, wednesday_duration, period_id_thursdayday, thursday_duration,
    period_id_friday, friday_duration
    without having 7 separate sub queries.
    Pivot command in SQL server is only for group functions from what I remember
    Regards
    Stephen

    You could have googled or searched the forums! The method is
    select max(decode(to_char(entrydate, 'fmDAY', 'nls_date_language=english'), 'MONDAY', periodid)) monday_perodid,
           max(decode(to_char(entrydate, 'fmDAY', 'nls_date_language=english'), 'MONDAY', duration)) monday_duration,
    from   perod
    where  period_id = xxxxleaving you to fill in the blanks...
    Edited by: Boneist on 01-Jul-2009 12:01

  • WITH clause equivalent in oracle 8i

    Hi friends,
    The "WITH" clause is very well supported in Oracle 9i. Is there any equivalent ways to use it in Oracle 8i?
    Regards
    J.B

    Dear J. B.!
    No, there isn't an equivalent for WITH in Oracle 8i. The only workaround for you is to build inline views in the FROM-Clause of your statements. Please have a look at the following link. It shows some example using a WITH-Clause and the equivalent SQL-Statements with an inline view.
    [http://www.oracle-base.com/articles/misc/WithClause.php]
    Yours sincerely
    Florian W.

  • Equivalent to TRUNCATE in Oracle Lite?

    Short of dropping and recreating a table, is there any way to free up space in Oracle Lite - equivalent to the TRUNCATE command in Oracle?

    TRUNCATE command is supported by Oracle Lite. However, it is basically the same as DELETE command, the database size won't get decreased.
    Jerry Chiang

  • Equivalent to rownum in oracle

    Is there an equivalent in maxdb 7.6 to Oracle's rownum in a select statement?

    ROWNO is the keyword you are looking for
    Elke

  • TIBCO Businessworks equivalent in Oracle SOA Suite

    Hello Experts,
    What is the equivalent of TIBCO Business works in Oracle SOA world??
    I guess Oracle Service Bus. Am I right??
    Thanks
    Rgds
    Natrajan

    Natrajan,
    For process orchestration, ACTIVEMATRIX BusinessWorks is equivalent to Oracle BPEL (which is part of Oracle SOA Suite). ACTIVEMATRIX Service Bus is equivalent to Oracle Service Bus.
    Regards,
    Anuj

  • Differences between Hyperion consolidation and Oracle Financials Consolidat

    I'm looking for a document- recommendations etc. explaining why using Hyperion Consolidations versus Oracle Financials Consolidation ?
    Thanks
    Marcel

    Genie,
    I agree that a case is made on how well these two ERPs solve the day to day tasks before a company chooses one of these two. But my question is aimed at finance to begin with. You are going to need a general ledger for any company or government regardless of ERP. And how well you can drive the ledger to map your business is the key here.
    The way ledger is built is around a business area ,company or country and is very tighly designed in SAP. I would like to know if there is any equivalent of the configuration items in ORACLE. I am more interested in terminology of ORACLE.
    For example ,
    <u><b><u><b>SAP ====> ORACLE</b></u>
    <u><b>GL ==> Book In ORACLE</b></u>
    <b><u>Document Number ===> Invoice Number</u></b>
    <b><u>Posting Period in SAP ==> Posting period In ORACLE</b></u></u></b>
    Most of the terms are finance terms , so they are common ( eg. an account number is an account number in ORACLE and SAP ) between two systems. I am interested in any specific thing that is available in ORACLE but not in SAP and  vice verse.
    thanks for the link you have provided.
    Its very useful.

  • JBO-25013: Too many objects match the primary key oracle.jbo.Key[33 ]!!!

    Hi all, I have a huge problem...
    I have two tables in a parent - child relationship. Each has it's own entity and view object with appropriate associations and links. The parent table has an insert trigger which inserts default rows into the child table when a new parent row is created.
    Even in the application module tester (not to mention the equivalent .jspx)
    this error goes off :
    oracle.jbo.TooManyObjectsException: JBO-25013: Too many objects match the primary key oracle.jbo.Key[35 ].
    Sometimes, I couldn't figure out what makes the difference, the tester inserts the detail records just fine when inserting the master, but never from the page!!!
    How do I get around this problem?? I'm clueless.
    Any suggestions welcome. I'm desperate at this stage!
    A lots'a work will be lost (packages and triggers on the server...:((( if there's no solution.
    Thanx for yr help in advance, Ildiko

    looks like Database trigger causes "TooManyObjectsException JBO-25013" in view object

  • Key Configuration differences between SAP and ORACLE Financials

    Hello,
    After spending good 7 years in SAP related projects recently I started working in ORACLE Applications. I used to be an ORACLE programmer years back. To my surprise the same <b><u>ORACLE Forms</u></b> are still very much the heart of the ORACLE UI.
    Then I thought what will be the key differences between ORACLE and SAP in terms of configuration elements. While I know a bunch of configuraion items in SAP , I am not sure about the same in ORACLE world. I am not even sure some of the configuration items that are available in SAP exists in ORACLE.
    Does anyone know both sides of the coin ? The terminology and design ?
    SAP has
    Client,Company code, Business area, Functional Area, GL, Posting Key, Document Type.
    I am trying to get the details of the equivalents of these in ORACLE.
    Does anyone know it ?
    For e.g , when you post to <b>AP</b> or <b>AR</b> in <b>SAP</b> , <b>GL</b> is updated  automatically. In <b>ORACLE</b> you post to a <b>AP Book</b> or <b>AR Book</b> then Run a batch to move them to <b><u>GL Book</u></b>.
    ORACLE uses SQLLoader to load data . You can write a PL SQL and update the tables directly, which is not the case in SAP. For dataloads and conversions, SAP uses BDC's ( though XI can be used but its slow).For ORACLE its the good old SQL and PlSQL combo.
    What are the equivalents of the configuration elements in ORACLE world ?
    Also what are the major differences between these two in terms of designing a financial system.
    Does any one know ?

    Genie,
    I agree that a case is made on how well these two ERPs solve the day to day tasks before a company chooses one of these two. But my question is aimed at finance to begin with. You are going to need a general ledger for any company or government regardless of ERP. And how well you can drive the ledger to map your business is the key here.
    The way ledger is built is around a business area ,company or country and is very tighly designed in SAP. I would like to know if there is any equivalent of the configuration items in ORACLE. I am more interested in terminology of ORACLE.
    For example ,
    <u><b><u><b>SAP ====> ORACLE</b></u>
    <u><b>GL ==> Book In ORACLE</b></u>
    <b><u>Document Number ===> Invoice Number</u></b>
    <b><u>Posting Period in SAP ==> Posting period In ORACLE</b></u></u></b>
    Most of the terms are finance terms , so they are common ( eg. an account number is an account number in ORACLE and SAP ) between two systems. I am interested in any specific thing that is available in ORACLE but not in SAP and  vice verse.
    thanks for the link you have provided.
    Its very useful.

Maybe you are looking for

  • How to set log4j at runtime

    Hi, I am using log4j and want to take the logfile name as a command line argument. Can anyone help as to how to set the properties which are done statically in log4j.propreties file.... I tried logProperties.setProperty("log4j.appender.ROOT", "org.ap

  • ANNOUNCEMENT: New in Oracle iFS 1.1

    Oracle iFS version 1.1 will soon be released with Oracle8i Release 3 (8.1.7), so the product management team wanted to take the opportunity to let you know what's in our v1.1. The list includes: * NLS and MLS support. Oracle iFS now supports 8-bit an

  • Referencing application item in report query

    I can't seem to find documentation on how to do this. I have defined an application item in shared components called APP_LOCATION. I need to reference this item in a report query where clause. This is an sql report, not an interactive report. I have

  • What are the tools for doing xslt mapping.

    Hi All, I am doing a a scenario with xslt mapping. Can anybody give be step by step procedure for doing xslt mapping.

  • MR21 performance slow on price update for several materials for a company c

    Hi, Can you please tell me if anyone has faced the problem of price updates through MR21 being very slow when performing the update for several materials at one go? Is there a resolution to this? Thanks in advance