Date diff for oracle 9i

Hi Guys,
I'm new in oracle... I'm using oracle in cf application now.
Oracle 9i.
Now i want to display records for 6 months. How to use
datediff function in oracle?
My query will like this
Select * from tblname
Where datediff(now(),fielddate) <= 6.
Any one use oracle? Please help me on this.
Thank in advance,
Regards
Shaffiq

You might want to use "where fielddate > SYSDATE - 180,
but 180 is just an approximation in days of 6 months and won't be
exact. I use 8i, but aside from outer joins, they're very similar.
I highly recommend this page:
http://www.techonthenet.com/oracle/index.php

Similar Messages

  • OIM 9.1.0.2 - Weblogic JDBC Multi Data Sources for Oracle RAC

    Does OIM OIM 9.1.0.2 BP07 support Weblogic JDBC Multi Data Sources (Services>JDBC>Multi Data Sources) for Oracle RAC instead of inserting the "Oracle RAC JDBC URL" on JDBC Data Sources for xlDS and xlXADS (Services>JDBC>Data Sources> xlDS|xlXADS > Connection Poll> URL) ?
    If yes, is there are any other modifications that need to be made on OIM, or just changing the data sources?

    Yes, it's supported. You install against one instance directly of the Rac Server. Then you update the config.xml file and the jdbc resource in your weblogic server with the full rac address. It is documented for installation against RAC. http://docs.oracle.com/cd/E14049_01/doc.9101/e14047/database.htm#insertedID2
    -Kevin

  • Difference between Data Providers for Oracle

    Hello,
    There are 3 .NET Data Providers for access an Oracle Database:
    1) ODP.NET, who uses Oracle API to access an Oracle Database.
    2) Microsoft .NET Data Provider for Oracle, who comes in the Assemblie System.Data.OracleClient
    3) Microsoft .NET Data Provider for OLE DB.
    My questions are:
    1) There is another Data Provider to access an Oracle DB ?
    2) Which is better, for example to handle LOB fields ?
    3) Which is better in performance ?
    4) ODP.NET uses some Oracle API to handle a DB, and the others ?
    5) What is the requirement (Oracle Client, OS) of each of them ?
    Best Regards
    Alfredo DS

    I would recommend using ODP.NET. Overall, I've seen better performance from it than other Oracle providers. It requires the 9.2 client and any OS that the 9.2 client supports.
    With respect to LOBs, the first ODP.NET version was consistently faster retrieving LOBs than other Oracle providers. The latest version of ODP.NET (and the upcoming version) have made some substantial improvements in LOB performance on top of that.

  • SQL Server 2012 Change Data Capture for Oracle by Attunity support for Oracle 12

    I would like to know if there are any plans for SQL Server 2012 Change Data Capture for Oracle by Attunity to support versions of Oracle 12 and if by when.

    I have asked from the author of
    http://blogs.msdn.com/b/mattm/archive/2012/03/26/cdc-for-oracle-in-sql-server-2012.aspx about this.
    I will either ask him to answer here or I would be a messenger.
    Balmukund Lakhani | Please mark solved if I've answered your question, vote for it as helpful to help other users find a solution quicker
    This posting is provided "AS IS" with no warranties, and confers no rights.
    My Blog |
    Team Blog | @Twitter
    Author: SQL Server 2012 AlwaysOn -
    Paperback, Kindle

  • Test Data generator for oracle?

    Hi again,
    I found a long list of "Test data generators" for oracle by google.Is there anybody there to use some specific product and have nice experience? I have limited time to test them.
    -Your help will be so appreciated.

    The Oracle provided dbms_random package can be used to help generate test data.
    I have found that most test data generation programs are not that useful for generation data in an rdbms environment.
    HTH -- Mark D Powell --

  • Error creating a new Data Source for Oracle connection

    I'm trying to create a new data source connection to our
    Oracle 10gR2 server using ColdFusion Administrator 6.1 Standard on
    a Windows 2003 server.
    I created a System DSN ODBC connection for Oracle. I can use
    the ODBC connection when connecting an Access db to Oracle but when
    I try to use it w/ ColdFusion Admin it generates the following
    error message:
    Connection verification failed for data source: sitest2
    []java.sql.SQLException: [Macromedia][SequeLink JDBC
    Driver][ODBC Socket]internal error:
    Driver's SQLAllocHandle on SQL_HANDLE_ENV failed
    The root cause was that: java.sql.SQLException:
    [Macromedia][SequeLink JDBC Driver][ODBC Socket]internal error:
    Driver's SQLAllocHandle on SQL_HANDLE_ENV failed
    Any help or recommendations would be greatly appreciated.
    Tina

    The schema/user is system and the password is alpha-numeric, upper/lower case, no special char ...
    As a workaround I was able to add the password to the entry in the datasources.xml file and restarted BI Pub.
    The JDBC is working ... I can test the connection successfully ... just wont save the entry
    Edited by: tread on Oct 17, 2011 11:55 AM

  • Oracle Data Provider for Oracle 10g

    We have an application certified on the ODP 9.2.0.2102, Oracle Client and Oracle ODBC 9.2.0.6. We have a client who is moving to Oracle 10g client within the next few months but will still be hitting an Oracle 9.2 backend.
    My question is: Is the 9.2.0.2102 ODP compatible with the 10g client, or do we need to certify against a newer version of the ODP? And if the latter, what version of ODP is recommended?
    We plan to certify against the latest of both this year, but for now, we need the path of least resistence.
    Thanks for your help.
    Todd

    It is not "hard" to create your own geocoding schema though you will need to know how to create tables (with Oracle Spatial columns) in Oracle and before you do create the tables you should read through the documentation to be certain you have all of the required data and metadata.
    Navteq, a data provider, also has sample geocoding data (http://www.oracle.com/technology/products/spatial/htdocs/spatial_partners_data.html) as well as data for sale. Downloading and importing the Navteq data might give you a good idea about what you will need to do if you were to build your own geocoding schema using your data.
    I hope this helps.
    -Justin

  • Change Data Capture for Oracle 9i

    <p>If your environment must keep large amounts of data current, the Oracle CDC feature is a simple solution to limiting the number of rows that Data Integrator reads on a regular basis. A source that reads only the most recent operations (INSERTS, UPDATES, DELETES), allows you to design smaller, faster delta loads.</p><p>With Oracle 9i, Data Integrator manages the CDC environment by accessing Oracle&#39;s CDC packages. Oracle publishes changed data from the original table to its CDC table. After a CDC table receives published data, you can create subscriptions to access the data. Data Integrator Designer allows you to import CDC tables and create subscriptions for them.</p><p>For more information see "Techniques for Capturing Changed Data" of the Data Integrator Designer Guide.</p>

    <p>Werner did a nice step-by-step instruction on how to set up CDC in Oracle and use this inside Data Integrator. </p><p><a href="http://www.consulting-accounting.com/time/servlet/ShowPage?COMPANYID=43&ELEMENTID=1641" target="_blank">http://www.consulting-accounting.com/time/servlet/ShowPage?COMPANYID=43&ELEMENTID=1641</a></p>

  • Problem setting up Weblogic's data source for oracle

              Hi!
              I am trying to setup XA DataSource Pool for Oracle using Weblogic's driver. App-Server
              throws exception during startup.
              config.xml setting are appended with this posting.
              Can somebody help me identifying the problem?
              Thanks,
              Vinay
              <JDBCConnectionPool
              Name="WL_XA_1_Pool"
              Targets="examplesServer"
              CapacityIncrement="1"
              DriverName="weblogic.jdbc.oci.xa.XADataSource"
              InitialCapacity="1"
              JDBCXADebugLevel="1"
              MaxCapacity="5"
              Properties="user=vinay;password=vinay;dataSourceName=WL_XA_1_Pool;serverName=pqasun1"
              RefreshMinutes="0"
              ShrinkPeriodMinutes="15"
              ShrinkingEnabled="true"
              TestConnectionsOnRelease="false"
              TestConnectionsOnReserve="false"
              URL="jdbc:oracle:oci8:@PlatformTest"
              />
              [error_wl2.txt]
              

              Hi Dinu,
              Silversword is our upcoming maintenance release for WLS 6.0, and
              should be available in June timeframe.
              If you are only using 1 database instance, you can use Oracle's
              driver in non-XA mode in distributed transactions. Please refer
              to "Configuring non-XA JDBC drivers" section for details: http://e-docs.bea.com/wls/docs60/adminguide/managetx.html#1045803.
              -- Priscilla Fung, BEA Systems, Inc.
              "Dinu Ramanthara" <[email protected]> wrote:
              >
              >Hi,
              > What is Silversword?
              >
              > I need to use Oracle's Driver as I have to use Oracle
              >AQ and Oracle
              >AQ doesn't seem to work with jDriver. All my database
              >activity,
              >through AQ as well as through JDBC are restricted to the
              >same Oracle
              >instance. Given that what are my options? Should I use
              >Oracle 8.1.6
              >drivers or should I use 8.1.7 drivers.
              >
              >Is there a document/sample code illustrating what need
              >to be done
              >to bind Oracle's XADataSource to the JNDI tree.
              >
              >Regards,
              >Dinu
              >"Priscilla Fung" <[email protected]> wrote:
              >>
              >>Hi Vinay,
              >>
              >>A couple of things to note. Oracle 8.1.6's driver has
              >>a bug that
              >>does not accept foreign Xid, and thus cannot be used
              >with
              >>any 3rd
              >>party vendor's Tranaction Manager, including WLS. Oracle
              >>8.1.7's
              >>driver has fixed this problem, but they have threading
              >>issues.
              >> We have worked around the threading issues in Silversword,
              >>but
              >>not in WLS 6.0 release. For now, the only Oracle XA
              >driver
              >>we
              >>recommend is Weblogic's jDriver for Oracle.
              >>
              >>-- Priscilla Fung, BEA Systems, Inc.
              >>
              >>
              >>"Vinay" <[email protected]> wrote:
              >>>
              >>>
              >>>
              >>>
              >>>Hi!
              >>>
              >>>I am trying to setup XA DataSource Pool for Oracle using
              >>>Weblogic's driver. App-Server
              >>>throws exception during startup.
              >>>config.xml setting are appended with this posting.
              >>>
              >>>Can somebody help me identifying the problem?
              >>>
              >>>Thanks,
              >>>
              >>>Vinay
              >>>
              >>>
              >>>
              >>>
              >>> <JDBCConnectionPool
              >>> Name="WL_XA_1_Pool"
              >>> Targets="examplesServer"
              >>> CapacityIncrement="1"
              >>> DriverName="weblogic.jdbc.oci.xa.XADataSource"
              >>> InitialCapacity="1"
              >>> JDBCXADebugLevel="1"
              >>> MaxCapacity="5"
              >>> Properties="user=vinay;password=vinay;dataSourceName=WL_XA_1_Pool;serverName=pqasun1"
              >>> RefreshMinutes="0"
              >>> ShrinkPeriodMinutes="15"
              >>> ShrinkingEnabled="true"
              >>> TestConnectionsOnRelease="false"
              >>> TestConnectionsOnReserve="false"
              >>> URL="jdbc:oracle:oci8:@PlatformTest"
              >>> />
              >>>
              >>
              >
              

  • Data Source for Oracle reports

    Hi,
    Can Oracle Reports support anyother data source. I am using
    Reports Server to invoke reports. The requirement is client
    passing the dat that have to come in the report. (The size of
    data can be high).So is there any method other than sending the
    data as parametes(which in this case is not feasible).
    The client is a browser.
    Regards
    Ravi

    hello,
    oracle reports 6i supports SQL, PLSQL and Express as datasource.
    for passing large amounts of data, a temporary table in the
    database would be most reasonable.
    regards,
    the oracle reports team

  • License Type Requirements To Use Data Guard For Oracle EE

    Hi,
    I haven't been able to get a straight answer on this, so hopefully someone can help me.
    We currently have two physical servers, both licensed to run Oracle Database 11gR2 EE, however one is running a cpu-based license (primary server/production) and the other is running a named-user based license (secondary server/soon-to-be-standby server).
    I had no hand in selecting the license model, so this is what I have to work with. So the question is this: With this type of license model differences, can I use Oracle Data Guard?
    Our Oracle software vendor says no because of the differences in the license models.
    Any feedback would be invaluable. Thanks.

    That is so because there is not much to say about it: You create your standby as described in the Data Guard doc (RMAN DUPLICATE)
    Then you ship the Archivelogs to the standby and do recover database there. Technically easy. No higher protection mode possible, though.
    I am no License Specialist, but I think that you will always need some kind of license for the standby database - even if you maintain it this way.
    My recommendation would be to clarify with your company first what your Recovery Point Objective is - can you live with the probably high amount of data loss in case of Disaster on the Primary?
    If not - purchase the correct license and continue with Data Guard Best Practices instead of doing a home grown solution.
    Security is not cheap.
    Kind regards
    Uwe Hesse
    http://uhesse.wordpress.com

  • Data type for Oracle 8 CLOB in ABAP?

    I'm calling a stored procedure on a remote Oracle 8 DB and it has an OUT parameter typed as CLOB.  I've tried declaring my host variable as a number of ABAP types, including STRING and XSTRING, but I can't get anything to work - I always get the error "wrong number or types of arguments in call to..." when the native SQL error is thrown.
    I'm entirely in an ABAP environment here and don't have access to a Java stack to handle the call to the stored procedure.  Does anyone have an idea as to how I can get this CLOB into an ABAP/DDIC-typed variable?
    Many thanks,
    Andrew

    should be LCHR
    some data element exists: COMT_CFGD_CLOBBLK -> length 3600

  • Date format for oracle lite client database

    hello....
    When data is entered opened on the oracle lite webtogo OC4J client is giving the following errors:
    JBO-25009: Cannot create an object of type:java.sql.Date with value:2/21/08 12:00 AM
    JBO-27014: Attribute CreationDate in AppModule.ApplicantIncomesView1 is required
    JBO-27024: Failed to validate a row with key oracle.jbo.Key[85685 ] of type AppModule.ApplicantIncomesView1
    Which date format is supported on the OC4J client?The application has been developed using Jdeveloper JSF/ADF BC technology.

    user6998712 wrote:
    Hi all,
    My client has installed Oracle Lite version 10.3.0.3. Oracle Lite Database file (ODB) tends to grow too large. Oracle recommends resizing the Oracle Lite database by running Defrag.exe tool. please post URL where this is documented

  • How to do filter data after Data Collection for Oracle PS

    Hi Experts,
    I have a critical issue on the "Data Volume" after data collection program.
    If I give this big chunk of data as a input to PS, then integration program is not taking this High volume of data into PS.
    Hence now I have a critical task to reduce number of Data.
    In this front, first I need to delete some items which are not required for PS in the base table(In MSC_SYSTEM_ITEMS) after collection program, but I do not know the dependent entities which also has to be taken care in MSC side after collection, If I delete the itrems from MSC_SYSTEM_ITEMS..
    Hence I require help on this data filter issue.
    Appreciating anyone's help in advance...
    Thanks & Regards,
    Bharathram N

    Hello,
    Have you looked at the request Purge ODS Data of Collections? Using this you can delete all the collected data for a specific instance id.
    Once that is done you can run a complete refresh for all entities for all enabled organizations. This will ensure that old data pertaining to disabled orgs is removed.
    Additionally in 11.5.10 (collections rup 32 and later) there is a feature implemented which does not pull data from disabled organizations into the source snapshots. This in itself does not make a difference for the ODS data, but does give better performance in the refresh snapshots.
    One thing to take into account if your purge the ODS data that in the event when you still have ascp plans that are based on this data, then you may end up with no data being displayed in the workbench (because the lid tables have been purged). Here you would have to rerun the plans.
    best regards
    Geert

  • Test data generator for Oracle database

    Hello.
    I'm a student of Computer Engeneering in Poland. I've recently written simple application that can help people to populate database with some simple test data (appliation works only on relational database).
    this is link to website: http://testdatagenerator.jak.pl/
    Requires: .NET Framework 2.0 and ODP.NET
    Every feedback is welcome!

    Yes, I know about it...
    In Firefox you can easily close the ad (in IE it's a little bit difficult).
    Here is direct link to installer (if someone has a problem to handle with ads ):
    http://metis.weia.po.opole.pl/~d51422/generatorOracle/setup_ml.exe
    (both EN and PL version)

Maybe you are looking for

  • Permission error

    I'm at a complete loss here. I cannot get the TS finish properly. I get this error after it finishing applying the WIM: Installation of image 1 in package PS100117 failed to complete.. Permissions on the requested may be configured incorrectly.Access

  • Jstl-1.0 error

    While testing the jstl 1.0, I get the following error message: JspTranslate: Unable to open taglibrary http://java.sun.com/jstl/core JSPGO110E: Parse Error in the tag library descriptor: File "http//java.sun.com/dtd/web-jsptaglibrary_1_2.dtd" not fou

  • Problem sharing images using Photoshop Album Starter Edition 3.2

    Just installed this program and can't seem to email an image. It goes through the processes and the email box pops up with the attachment and when I click on send, it saves and closes. Where does it save and close to and why isn't it sent immediately

  • GDM does not allow me to login

    Hello, I just updated my system after about one week. When computer starts I see initial boot output (information about decompressing kernel image and systemd-fsck output), then normally GDM was starting. Now I only see the same initial output and af

  • OEM CONSOLE LOGIN PROBLEM

    Hi all, When I try to login to the OEM console(Oracle Management Server), I gave the Administrator as Sysman, and Password as OEM_TEMP, and Management server as ????. Because as I am not aware of what to give in Management Server. I got error unable