Function in 10g & 11g

Hi all,
i have a function which is running fine in Oracle 10g But in 11g iam getting a error
FUNCTION START_date RETURN DATE AS
BEGIN
select TO_DATE(test_VALUE,'YYYYMMDDHH24:MI:SS') INTO test_start_time from tst_rslt  WHERE tst_NAME='VM_START_TIME';
RETURN vm_run_start_time;
EXCEPTION
     WHEN NO_DATA_FOUND THEN
        vm_run_start_time:=SYSDATE;
RETURN vm_run_start_time;
     WHEN OTHERS THEN
        RAISE_APPLICATION_ERROR(-20000, 'Error in START_date '|| sqlerrm ,TRUE);
       return NULL;
END;in 10g
SQL> select * from v$version;
BANNER
Oracle Database 10g Release 10.2.0.4.0 - Production
PL/SQL Release 10.2.0.4.0 - Production
CORE    10.2.0.4.0      Production
TNS for 32-bit Windows: Version 10.2.0.4.0 - Production
NLSRTL Version 10.2.0.4.0 - Production
SQL> SELECT testb.START_date  FROM DUAL;
START_date
02-SEP-10in 11g
SQL> select * from v$version;
BANNER
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
PL/SQL Release 11.2.0.1.0 - Production
CORE    11.2.0.1.0      Production
TNS for 32-bit Windows: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production
SQL>SELECT testb.START_date  FROM DUAL;
ERROR at line 1:
ORA-20000: Error in testb.START_date   ORA-01841: (full) year must be
between -4713 and +9999, and not be 0
ORA-06512: at "ULIM.testb", line 16741
ORA-01841: (full) year must be between -4713 and +9999, and not be 0

In Oracle 10g
SQL> select * from nls_session_parameters;
PARAMETER
VALUE
NLS_LANGUAGE
AMERICAN
NLS_TERRITORY
AMERICA
NLS_CURRENCY
$
PARAMETER
VALUE
NLS_ISO_CURRENCY
AMERICA
NLS_NUMERIC_CHARACTERS
NLS_CALENDAR
GREGORIAN
PARAMETER
VALUE
NLS_DATE_FORMAT
DD-MON-RR
NLS_DATE_LANGUAGE
AMERICAN
NLS_SORT
BINARY
PARAMETER
VALUE
NLS_TIME_FORMAT
HH.MI.SSXFF AM
NLS_TIMESTAMP_FORMAT
DD-MON-RR HH.MI.SSXFF AM
NLS_TIME_TZ_FORMAT
HH.MI.SSXFF AM TZR
PARAMETER
VALUE
NLS_TIMESTAMP_TZ_FORMAT
DD-MON-RR HH.MI.SSXFF AM TZR
NLS_DUAL_CURRENCY
$
NLS_COMP
BINARY
PARAMETER
VALUE
NLS_LENGTH_SEMANTICS
BYTE
NLS_NCHAR_CONV_EXCP
FALSE
17 rows selected.In Oracle 11g
SQL> select * from nls_session_paramet
PARAMETER
VALUE
NLS_LANGUAGE
AMERICAN
NLS_TERRITORY
AMERICA
NLS_CURRENCY
$
PARAMETER
VALUE
NLS_ISO_CURRENCY
AMERICA
NLS_NUMERIC_CHARACTERS
NLS_CALENDAR
GREGORIAN
PARAMETER
VALUE
NLS_DATE_FORMAT
DD-MON-RR
NLS_DATE_LANGUAGE
AMERICAN
NLS_SORT
BINARY
PARAMETER
VALUE
NLS_TIME_FORMAT
HH.MI.SSXFF AM
NLS_TIMESTAMP_FORMAT
DD-MON-RR HH.MI.SSXFF AM
NLS_TIME_TZ_FORMAT
HH.MI.SSXFF AM TZR
PARAMETER
VALUE
NLS_TIMESTAMP_TZ_FORMAT
DD-MON-RR HH.MI.SSXFF AM TZR
NLS_DUAL_CURRENCY
$
NLS_COMP
BINARY
PARAMETER
VALUE
NLS_LENGTH_SEMANTICS
BYTE
NLS_NCHAR_CONV_EXCP
FALSE
17 rows selected.

Similar Messages

  • BI admin tool : Oracle OLAP vs ODBC3.5 OCI 10g/11g ...

    Hi everyone,
    I'm facing a problem when I try to create a repository using Oracle BI admin Tool.
    In the second step of Create new repository , I have to choose between a lot of connexion types : ODBC3.5 , Oracle OLAP, OCI 10g/11g .... I don't know which of them I need to choose in my case.
    In my case, I have a cube that I created using AWM, and I need to make a report that is based on that cube.
    I don't really know how to proceed ...
    I have Oracle BI is in a Unix server , and I installed Oracle BI admin tool client in my Windows 7.
    Any idea which connexion type I should use, do I need to make an ODBC connexion for all of them ?
    My comprehension of this is unclear ... any help ?
    Thx all !!

    Starting with OBIEE 11.1.1.5, as it understands Oracle-OLAP metadata in Oracle data dictionary, so to query data from OLAP Analytical workspaces you will always use "Oracle OLAP" as the source in BI-Admin-Tool.
    When you will create report in OBIEE, it will then generate the query using the OLAP_TABLE sql function.
    Note that automatically generated CUBE_TABLE views in OLAP (the ones suffixed with _VIEW) are not used at all (or even needed) when working with OBIEE 11.1.1.5+.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to display an image in FORM 10g/11g data recovered through Web Services

    I need to show in a FORM 10g/11g an image that is recovered from a Web Service (XML format).
    (The Web Service retrieves several images from SQL Server database).
    versions previous 6i... one use field type ActiveX Control, and there showed the respective images, even with previous and next controls. Aspect that new versions of form 10g & 11g is obsolete.
    Any help thank you.
    Edited by: 859272 on 16/05/2011 03:06 PM
    Edited by: 859272 on 17/05/2011 07:15 AM

    I tried it doing it this way and it worked -
    1. copy the image into the directory aliased in 9iAS configuration file as '/images/'.
    2. In the PL/SQL code section after header, I write the following code -
    begin
    htp.p('<img src="/images/pobexp.gif"/>');
    end;

  • Subpartition with MOD Function in Oracle 11g

    Hi All,
    Can we create Subpartition based on MOD Function in Oracle 11g ?

    Hi!
    What are you refering with "MTS"? Anybody knows a term like this (except MultiThreaded Server).

  • About the filter function in OBIEE 11g

    Hi, all.
    when i use the filter function in OBIEE 11g, it turn out a wrong result.
    The operation steps and detail are described as follow:
    1. In the Column Formula pane, I typed the Formula of the column 'count of customer' as:
    FILTER(count(distinct("customer info dimesion"."customerID")) USING ("TradeType Dimesion"."TradeType" = '001'))
    2. But the phisical SQL about this column in the NQquery file is that: "count(distinct(T11520.CUSTOMERID)) as c5, "
    which means that, the filter wasn't applied, right?
    If so, what shall I do in this situation, in other words , how can i make a Condition COUNT?
    Any Suggestion is appreciated!
    Thank you in advance~~O(∩_∩)O~

    Hi katherine,
    FILTER(count(distinct("customer info dimesion"."customerID")) USING ("TradeType Dimesion"."TradeType" = '001'))I think your formula there is mistake like many braces...instead type this in your f(x)
    =>Filter(count(distinct customer_id) USING trade type='001')
    This filter function is same like a case statement,if you filter still gives error write a case statement
    CASE WHEN TradeType Dimesion.TradeType='001' THEN count(distinct customer info dimesion.customerID) ELSE 0 END
    Will it be helpful?,follow this etiquette http://forums.oracle.com/forums/ann.jspa?annID=939
    By,
    KK

  • Maximum Data file size in 10g,11g

    DB Versions:10g, 11g
    OS & versions: Aix 6.1, Sun OS 5.9, Solaris 10
    This is what Oracle 11g Documentation
    http://download.oracle.com/docs/cd/B28359_01/server.111/b28320/limits002.htm
    says about the Maximum Data file size
    Operating system dependent. Limited by maximum operating system file size;typically 2^22 or 4 MB blocksI don't understand what this 2^22 thing is.
    In our AIX machine and ulimit command show
    $ ulimit -a
    time(seconds)        unlimited
    file(blocks)         unlimited  <-------------------------------------------
    data(kbytes)         unlimited
    stack(kbytes)        4194304
    memory(kbytes)       unlimited
    coredump(blocks)     unlimited
    nofiles(descriptors) unlimited
    threads(per process) unlimited
    processes(per user)  unlimitedSo, this means, In AIX that both the OS and Oracle can create a data file of any Size. Right?
    What about 10g, 11g DBs running on Sun OS 5.9 and Solaris 10 ? Is there any Limit on the data file size?

    How do i determine maximum number of blocks for an OS?df -g would give you the block size. OS blocksize is 512 bytes on AIX.
    Lets say the db_block_size is 8k. What would the maximum file size for data file in Small File tablespace and Big File tablespace be?Smallfile (traditional) Tablespaces - A smallfile tablespace is a traditional Oracle tablespace, which can contain 1022 datafiles or tempfiles, each of which can contain up to approximately 4 million (222) blocks. - 32G
    A bigfile tablespace contains only one datafile or tempfile, which can contain up to approximately 4 billion ( 232 ) blocks. The maximum size of the single datafile or tempfile is 128 terabytes (TB) for a tablespace with 32K blocks and 32TB for a tablespace with 8K blocks.
    HTH
    -Anantha

  • Integrate OBIEE 10g/11g  and APEX 4.2

    Hi All,
    We are trying to integrate OBIEE 10g/11g and APEX 4.2. We would like to open report and a form in OBIEE so that users can update/writeback the data from OBIEE. Is there a way we can do this ? Please advice.
    Thanks

    then i tryed just this URL -> http://127.0.0.1:8080/apex
    it works as it schould.

  • Oracle 10g/11g to Sql Server 2005 Migration

    Dear All,
    I am a beginner to this migration Activities..
    We have designed one Application which is havin Database as Oracle 10g.
    and We had another small Application which is having Sql Server 2005 has Database.
    Daily we need to convert DB of Oracle to Sql server DB in order to acces recent updated data..
    Pls help me how to convert Database in Oracle 10g/11g to Database in sqlserver 2005..

    Hello,
    this is an Oracle forum and we are handling here migrations from foreign databases to an Oracle database.
    For migrations in the other direction, in your case from Oracle to MS SQL Server, you need to read the Microsoft pages, e.g.:
    http://www.microsoft.com/sqlserver/2005/en/us/migration.aspx
    Daily we need to convert DB of Oracle to Sql server DB in order to acces recent updated data..Normally a migration is not a daily process, so I guess that you just want to transfer data from Oracle to SQL Server on a daily basis. If that is the case, you should consider to use our Gateways. Please start reading here:
    http://www.oracle.com/technetwork/database/gateways/index-100140.html
    Using the Database Gateway for MS SQL Server (DG4MSQL) or the Database Gateway for ODBC (DG4ODBC) you can copy your data from your Oracle database to your SQL Server database, using a database link in the Oracle database.
    Please let me know whether this answer helped you.
    Regards
    Wolfgang

  • Oracle 9i, 10g, 11g on same machine...11g not working....

    Hello All,
    I have a dilemma.
    I have a server that originally had 9i client installed.
    We installed 10g and ODP .Net to gain use of some new funcionality used in .Net and batch processing.
    Halfway through testing we realized that 10g's version of ODP.Net has a memory leak issue.
    11g was found to correct this issue so we installed it on the server as well and it solved the problem.
    Life was good.
    9i, 10g, 11g, and ODP.net were all working well.
    However, this was a test server. We now needed to go through the same installs for the production server.
    On the night of the software install someone made a mistake and installed 10g on the test server again for the second time, after 11g was already installed.
    So at this point the test server has:
    9i
    10g
    11g
    10g
    And now many of the applications on the server are not working correctly and no amount of config changes seemed to fix it.
    So we decided to uninstall 11g and then 10g and start over.
    At this point we have 9i and 10g installed and the applications are working correctly.
    We have tried to reinstall 11g and configure multiple times and 11g will simply not work.
    I am stumped at this point. The application that actually does use 11g and ODP.Net simply stops executing at the point it attempts to open a connection with NO ERRORS.
    An Exception does occur but there are no contents or error messages in the exception. I have never had this happen before. How do you fix an error you dont have?
    So at this point I am just reaching out to see if anyone might have a suggestion. The next step might be to perform a system restore to the point where life was good (before 10g was installed a 2nd time after 11g).
    Anyone?

    Thanks gdarling.
    I was hoping to just start the thread and go from there as sometimes information overload makes people pass on reading the whole post. I am glad you still read it:)
    To start off with here are the entries (unedited in my PATH variable):
    E:\oracle11\product\11.2.0\client_1\bin;E:\oracle102\product\10.2.0\client_1\bin;E:\oracle\product\10.2.0\client_1;E:\Orant9i\bin;
    I recently moved the 9i path back to the front in order to get the other applications on the server working again as some were erroring out with this when 11.2 was first:
    *"OCIEnvCreate failed with return code -1 but error message text was not available"*
    I searched for a long time as to the cause of this error but did not turn up much. Most of the posts just mention that the client was installed incorrectly.
    Policy files:
    I compared the assembly of the "working" server to the "bad" server and they appear identical as far as I can see.
    Directories
    -9i has one directory
    -As you can probably see from the path, it still looks like there are 2 installations of 10g on the server. As well as remnants of three directories that resemble 10g install directories.
    -11g has one directory
    Couple observed behaviors:
    1.
    running sqlplus from the 9i and 10g directories works.
    running sqlplus from the 11g directory results in the following error:
    E:\oracle11\product\11.2.0\client_1\bin>sqlplus.exe
    Error 6 initializing SQL*Plus
    SP2-0667: Message file sp1<lang>.msb not found
    SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory
    2.
    Running tnsping works from the 9i and 10g directories
    Running tnsping from 11g results in this:
    TNS Ping Utility for 32-bit Windows: Version 11.2.0.1.0 - Production on 13-MAY-2
    010 09:32:32
    Copyright (c) 1997, 2010, Oracle. All rights reserved.
    Message 3511 not found; No message file for product=NETWORK, facility=TNSTNS-035
    05: Message 3505 not found; No message file for product=NETWORK, facility=TNS
    *(NOTE: THIS ERROR ALSO OCCURS ON THE "GOOD" SERVER)*
    Registry:
    There is a difference in the registry.
    The "good" server has this entry in the ORACLE area:
    KEY_OraClient10g_home1
    KEY_OraClient11g_home1
    where as the "bad" just has
    KEY_OraClient10g_home1
    Both servers have ODP.Net folder containing:
    2.112.1.0
    There are also other entires in this registry area but they are the same.
    It wasn't our original intention to have all three clients on the same machine. Halfway through our system testing of a new process we realized the 10g has a memory leak which was corrected in 11g.
    So we just installed 11g. These are supposed to be able to coexist right?
    It sounds like we could have just installed 11g...
    I am going to look into your suggestions.
    As far as sysinternals I am a novice. And I am assuming it would need to be loaded on the server...is that correct? Or should I be using it on my local machine with the application in question running?
    Getting more software (sysinternals) installed on the server might be a hurdle...
    Thanks again

  • How import 10g,11g dump file in oracle 9 and oracle 8

    Dear all
    I import dump file exported from oracle 9 to oracle 10g and 11g now i want exported dump file from oracle 10g/11g to import in oracle 9 (lower version).
    How said job will be done.
    Thanks

    I've already tried your method, but it fails when you import the dmp exported from lower version.
    To import Oracle 11g user to Oracle 10g, the following method works fine:
    It is assumed that both 11g and 10g servers are on same LAN.
    Make sure that 11g sqlplus connects to your 10g server.
    Step 1. Export the 11g user from 11g machine.
    Step 2.Import the dmp file created in step 1 into 10g server from 11g machine itself.
    The 11g exp/import utility should be used for both export and import operations.
    Only source and destination servers will be different.
    Pramod Dubey

  • Oracle 10G/11G with JBuilder

    Hi Gurus,
    I am new bie in the Java development world. I am looking for purchasing a laptop on which I can install Oracle (either 10G or 11G does not matter) and JBuilder as the project on which I am going to work on uses JBuilder tool.
    I have two questions
    1) Is Windows 8 comptaible with Oracle 10G or 11G ?
    2) Also can I install JBuilder on a Windows 8 Laptop ?
    Regards
    Fm

    Thanks Timo for getting back to me so promptly. I do understand that this forum is not for JBuilder as Oracle uses JDeveloper to do the same stuff.
    But can u specifically answer my question
    1) Is Windows 8 compatible with Oracle 10G/ 11G ?
    2) Assuming if its not yet compatible with Oracle 11G. Can we safely install JBuilder on Windows 7 and use it with Oracle 10G.
    Please advise. I value advise from experts like you.
    Cheers !

  • Oracle 10g / 11g is ROLAP/MOLAP/HOLAP?

    Hi Greets,
    Can any one please tell me whethe the available version of Oracle 10G /11g OLAP
    is ROLAP or MOLAP or HOLAP.
    Thanks
    Anandraj

    The OLAP Option is highly integrated with the Oracle database by this stage (11.1). Metadata is stored in the data dictionary and the primary access mechanism is SQL. So traditional terms like ROLAP, MOLAP, and HOLAP are getting hard to apply. But at a broad level you could say the following.
    ROLAP was supported in 10g based on CwM metadata and the Java OLAP API as query tool. (Both Discoverer for OLAP and the Excel Add-In use the Java OLAP API.) CwM was deprecated in 10.2 and ROLAP in general has received no new development for years. So while it technically still works in 11g, I would not recommend it.
    MOLAP (i.e. the Analytic Workspace) is supported in both 10g and 11g. In 10g the metadata is managed by AWXML, and in 11g it is managed using by the OLAP API. In both cases you can access the data via SQL, the OLAP API, or OLAP DML. In 11g you can also integrate with the Materialized View system.
    The MOLAP implementation is faster and more scalable than the ROLAP version, and all development and future plans centre around MOLAP.
    David

  • Oracle 10g/11g - Operating system support info required

    I want to know all the operating systems supported by oracle 10g and 11g. I searched through oracle tech. center, but failed to find this information.
    I want to know if oracle (10g/11g) is supported on Linux S/390?
    Thanks
    Mac

    Did you go through the certification matrix?
    http://www.oracle.com/technology/support/metalink/index.html

  • Oracle 10g/11g database use on UEK versus Red Hat kernel? How widely used?

    Greetings
    is there any official or semi-official information regarding how widely used is Oracle UEK to run Oracle 10g/11g database (RAC or single-node) versus running Oracle database on Red Hat Linux or on Oracle Linux with Red Hat kernel ?
    I am asking because at my customer site there is a perception that Red Hat (or Oracle Linux with Red Hat kernel) is much more widely used in production to run Oracle 10g/11g database and therefore it will provide better stability even if the performance may be somewhat reduced compared to Oracle UEK option.
    So I need some sort of approximate percentage numbers of how well is UEK used in Linux Oracle community to run Oracle 10g/11g databases.
    Many thanks.
    Yuri B

    The problem with the world is that the intelligent people are full of doubts, while the stupid ones are full of confidence. Well, in my opinion, a higher market share does not reflect the quality or reliability of a product. Take MS Windows for example. Unfortunately, the reason for success is often not due to knowledge and experience, but rather due to fear and sheep effect or herd behavior.
    Perhaps you can use other arguments or questions to help you to make a decision, eg.:
    Oracle has a better understanding of what Oracle products require than Red Hat.
    Oracle takes full responsibility for the OS and Database, no finger pointing.
    Oracle tries to provide a better product than the RHEL kernel.
    The Oracle UEK kernel contains Oracle driver software, not available for RHEL 6 or later.
    Oracle updates are free of charge, RHEL requires a subscription.
    Oracle as a company is about 20 times bigger than Red Hat.
    There can be reasons that require the use of the original RHEL kernel, for instance if the vendor of a specific driver for your hardware demands it. But otherwise...

  • Oracle 8i,9i,10g,11g

    Hi,
    Can anyone help to know about the differences of Oracle 8i,9i,10g,11g and wit definition?

    For each version there is a complete New Features Manual of more than 10 pages!
    Do you expect anyone is going to abstract them?
    Please don't answer yes.
    Please visit http://tahiti.oracle.com or the product pages on http://otn.oracle.com
    Sybrand Bakker
    Senior Oracle DBA

Maybe you are looking for