use function TO_DATE in Oracle 11i

Expected output below using the query: select sysdate, ' to_date ('|) '''|| SYSDATE | " (', "DD-MON-YYYY"),' the double;

To_date('08-OCT-2013','DD-MON-YYYY') 8 October 2013,

But by getting the output below, please provide your inputs.

To_date('08-OCT-13','DD-MON-YYYY') 8 October 2013,

Select sysdate, ' to_date ('|) '''|| to_char(sysdate,'DD-MON-YYYY') | " (', "DD-MON-YYYY"), "of the double;

Tags: Database

Similar Questions

  • What functions PKCS #11 Oracle Database 11 g made use of?

    I am currently come with a library PKCS #11 with a minimum set of features such as my legacy HSM supports transparent encryption of Oracle database 11 g (TDE) data. I don't want to come up with the full PKCS #11 library with all the functions for all that I need is to support the Oracle database. In addition, all functions of encoding will take too long a development effort and it would be an overdose in doing so.

    Does anyone have ideas on what are the PKCS #11 functions that makes "Oracle Database 11 g Release 2 (11.2)" use to support TDE with HSM?

    Hello

    I checked the code 11.2 and you need implement these functions for use with TDE:

    C_Initialize
    C_GetFunctionList
    C_GetInfo
    C_GetSlotList
    C_OpenSession
    Http://localhost
    C_CloseSession
    C_Finalize
    C_GenerateKey
    C_FindObjectsInit
    C_FindObjects
    C_FindObjectsFinal
    C_EncryptInit
    C_Encrypt
    C_DecryptInit
    C_Decrypt
    C_CloseSession

    It is also recommended to implement of the C_GenerateKeyPair so it can be used by Portfolio Manager to create a certificate request.

    Greetings,

    Damage

    Published by: hnapel on 14 Sep, 2010 06:58

  • using = with to_date function fails to get results

    Hi all
    I have the table for more visits. my table has two fields survey_id (number) and visit_date (date).
    the visit_date also contain the time visiting hh.
    When I query the table to find information for a day and using the following qyery:
    Select survey_id, visit_date
    from my_table
    where visit_date = to_date('26/04/2010','DD/MM/YYYY');
    Therefore, no data found
    but when I used another query such as
    Select survey_id, visit_date
    from my_table
    where visit_date > to_date('25/04/2010','DD/MM/YYYY');
    There are records to date 26/04/2010.
    In other words, always when I query the table for a day using
    visit_date = to_date(:my_date,'DD/mm/YYYY');
    Although there is data in the table, there is no return data.
    is the problem because the time HH exisits visit_date field.
    any help please.

    Published by: M.Jabr on May 5, 2010 06:12

    Hello

    M.Jabr wrote:
    is the problem because the time HH exisits visit_date field.

    Yes.

    Use the TRUNC function to eliminate the part of hour:

    trunc(visit_date) = to_date('26/04/2010','DD/MM/YYYY')
    
  • Function table in oracle

    Hi all

    I am using Oracle 11g

    I want to know in order to learn

    What is the CURSOR in the function table.

    What is its usefulness

    Can someone explain to me.

    SELECT x.*

    (TABLE (package1.function1)

    CURSOR (SELECT

    t.*

    OF test1 t))) x

    Thank you

    What is the CURSOR in the function table.

    What is its usefulness

    Can someone explain to me.

    SELECT x.*

    (TABLE (package1.function1)

    CURSOR (SELECT

    t.*

    OF test1 t))) x

    This slider is NOT 'in the function table. It is in the call to YOUR function named "packagae1.function1" and the function returns a collection. If it is the result of the collection of YOUR function call which is 'in the function table.

    Your probable function takes a REF CURSOR as a parameter, so the code above uses the CURSOR operator to create a cursor from a subquery.

    Your function then returns a collection and SCOREBOARD operator is used to make this collection available in SQL.

    See FUNCTIONS TABLE in the Oracle documentation. A simple search for 'oracle 11g table function' returns the Oracle doc as the FIRST result listed:

    http://docs.Oracle.com/CD/B28359_01/AppDev.111/b28425/pipe_paral_tbl.htm

    This chapter describes the functions of table

    . . .

    Overview of the functions of table

    Table functions are producing a set of lines (a nested table or a varray) that can be queried as a physical database table. You use a function table as the name of a database table, in the FROM clause of a query.

    A table function can take a set of input lines. A parameter of the input collection can be of a collection type or a REF CURSOR .

    . . .

    Look at the examples 5-13 and 13-6, because they show the code for your EXACT example:

    http://docs.Oracle.com/CD/B28359_01/AppDev.111/b28425/pipe_paral_tbl.htm#CIHEGADE

    . . .

    Example 13-6 How to use a function Table in pipeline with REF CURSOR Arguments

    SELECT * FROM TABLE(StockPivot(CURSOR(SELECT * FROM StockTable)));
    

    In the previous query, the function table in pipeline StockPivot retrieves the lines of the CURSOR subquery SELECT * FROM StockTable , performs the transformation and channels the results to the user in the form of table. The function produces two lines of output for each input line (items in the collection).

    Note that when a CURSOR subquery went from SQL for a REF CURSOR argument of function as in the previous example, the referenced cursor is already open when the function begins to run.

    As the doc example, as in your example, a subquery of CURSOR to create a cursor to be used as a function parameter. Example 13 - 5 has the actual code for the function.

    The documentation is your FRY - don't be afraid to use it.

    If you try to learn something a good question to ask on the forums is: where can I get more information about the functions of the table (or other topic).

    Then, we can direct you to the Oracle documentation that covers this topic.

  • Clone/refresh of oracle 11i applications

    I HAV two requirements here: -.

    1. to not clone our production to a new server instance IE no binaries on the server (clone) target

    2. to clone our instance of prod to PREPRD binary IE farm on the server target (updated)

    3. you want to clone the database with rman

    instance of Prod: configuration to 2 knots

    Node1: application of type n (n cp db)
    Node2: application (web form)

    versions:

    OS: Red Hat Enterprise Linux AS release 4 (Nahant Update 4) HP box
    DB: 9.2.0.8.0
    EBS: 11.5.9


    Thank you for your patience guys
    might b the solution/steps are already here, but I'm unaware of m

    Published by: Hafiz on December 14, 2012 20:02

    1. to not clone our production to a new server instance IE no binaries on the server (clone) target

    Make sure you have all the OS pre - req. software/packages installed the quick clone of use.

    Cloning Oracle Applications 11i with Clone version fast [ID 230672.1] - Section 2: Clone Oracle Applications 11i)

    2. to clone our instance of prod to PREPRD binary IE farm on the server target (updated)

    Use quick Clone.

    Cloning Oracle Applications 11i with Clone version fast [ID 230672.1] - Section 2: Clone Oracle Applications 11i)

    3. you want to clone the database with rman

    instance of Prod: configuration to 2 knots

    Node1: application of type n (n cp db)
    Node2: application (web form)

    Cloning Oracle Applications Release 11i with rapid Clone [230672.1 ID] - Appendix b: recreation of database control files manually in the quick Clone.
    11i: cloning of E-Business Suite using hot backup for minimum downtime of the Source environment. [362473.1 ID]
    Cloning of Oracle Application 11i with rapid Clone /R12 - database backup hot (9i/10 g / 11 g) to aid at the opening of databases [ID 760772.1]

    Thank you
    Hussein

  • query not given function function index in oracle 11g

    I have a query that uses function based indexes when run in oracle 9i, but when I run the same query
    without any change, it does not consider the index. This is the query:

    SELECT distinct patient_role.domain_key, patient_role.patient_role_key,
    patient_role.emergency_contact_name,
    patient_role.emergency_contact_phone, patient_role.emergency_contact_note,
    patient_role.emergency_contact_relation_id,
    patient_role.financial_class_desc_id, no_known_allergies, patient_role. CREATED_BY,
    patient_role. CREATED_TIMESTAMP,
    patient_role. CREATED_TIMESTAMP_TZ, patient_role. UPDATED_BY, patient_role. UPDATED_TIMESTAMP,
    patient_role. UPDATED_TIMESTAMP_TZ,
    patient_role.discontinued_date
    MEETING, patient_role
    WHERE patient_role.patient_role_key = encounter.patient_role_key
    AND SUPERIOR (TRIM (main: encounter.account_number SYS_B_0)) = UPPER (TRIM (main: SYS_B_1 of))
    ((: SYS_B_2))
    AND patient_role.discontinued_date IS null
    AND encounter.discontinued_date IS null;

    Definition of the index:

    CREATE INDEX "user1". "' IX_TRIM_ACCOUNT_NUMBER ' ON 'user1 '. MEETING"(AT THE TOP (TRIM (LEADING))
    ('0' TO 'ACCOUNT_NUMBER')), 'PATIENT_ROLE_KEY', 'DOMAIN_KEY', 'DISCONTINUED_DATE')
    PCTFREE, INITRANS 10 2 MAXTRANS 255 COMPUTE STATISTICS
    STORAGE (INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645)
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
    DEFAULT USER_TABLES)
    TABLESPACE "user1".

    Database: Oracle 11g (11.2.0.3)
    O / s: 64-bit Linux (the query does not consider the index even on the windows operating system)

    Any suggestions?

    -Onkar

    Published by: onkar.nath on July 2, 2012 15:32

    Onkar,

    I don't appreciate posting you this issue in several forums at the same time.
    If I know you also posted this on Asktom, I wouldn't even bother.
    As for your "problem":
    First of all: some kind cursor_sharing MUST have been implemented. Oracle is a predictable system, not a fruitmachine.
    Anyway, your statement that '0' is replaced by a variable binding is simply false. If you really believe this isn't fake, SUBMIT an SR.

    But your real problem isn't Oracle: it is your 'application', which is a mess anyway. Allowing for alphanumeric numbers is a very bad idea.
    Now, you already put workaround on workaround on workaround on workaround.
    Question is this: it is terminal, and you must either to kill him or to replace it.

    -------------
    Sybrand Bakker
    Senior Oracle DBA

  • Relaxation - using functions on captured date

    Hello community, Oracle,.

    I have a problem on the development of a simple AFTER INSERT trigger, I read a lot of web sites and search here but have not found something to help me.
    This trigger must copy the inserted values from one table to another, some of these fields of column dealing with a function called hora_dst. I am getting error ORA-00984, I could use functions such as as described below?

    create or replace
    Aeven_sreports_hora RELAXATION
    AFTER INSERT ON aeven FOR EACH ROW
    START
    INSERT INTO aeven_sreports VALUES
    + (AD_SEC, hora_dst (AD_TS), AG_ID, ALARM_LEV, APPT_ALARM_UNTIL, hora_dst (APPT_END_TS) +)
    + hora_dst (APPT_START_DTS), AR_SEC, hora_ds (AR_TS) +.
    +, ASSIGNED_UNITS, CALLBACK_DTS, CBTIME2 +.
    + hora_dst (CAD), CLOSING_ALLOWED, CPERS, CREATE_PERS, CREATE_TERM, CSEC, CAPITAL +.
    +, CURENT, DEST_EID, DGROUP, DISPASS_UNIT, DS_SEC, hora_dst (DS_TS) +.
    + hora_dst (DUE_DTS), EID, EN_SEC, hora_dst (EN_TS), ESZ, ETA, EVENT_STATUS +.
    +, EVT_REV_NUM, EX_EVT, hora_dst (HOLD_DTS), HOLD_TYPE, HOLD_UNT, LATE_RUN, LEV2 +.
    + LEV3, LEV4, LEV5, hora_dst (LOI_AVAIL_DTS), MAJEVT_EVTY, MAJEVT_LOC, MUN, NUM_1 +.
    + OPEN_AND_CURENT, hora_dst (PEND_DTS), PRIM_MEMBER, PRIM_UNIT, PRIORITY +.
    +, PROBE_FLAG, PROQANUMBER, RECOM_INCOMPLETE, REOPEN, RESP_DOWN, RESP_TIME +.
    + REV_NUM, hora_dst (SCDTS), hora_dst (PTE), SITFND, HSEC, SUB_ENG, SUB_SITFND +.
    +, SUB_TYCOD, SUPP_INFO, TA_SEC, hora_dst (TA_TS), TR_SEC, hora_dst (TR_TS), TYCOD +.
    + TYP_ENG, hora_dst (UDT), UPPERS, UTERM, visualization (TEV), VSEC, Steevetrochet, XDOW hora_dst +.
    + hora_dst (XDTS), XPERS, XSEC, XTERM); +
    END;

    Thank you very much!

    La: new is only for the column. If you pass it to a function you must not apply to the function.

    Hora_dst(:new.ad_ts)
    

    Concerning
    Marcus

  • Step to period NO AWT - release system hold on Oracle 11i

    Hello

    We use Oracle 11i. Some of our bills showing on hold under reason to detain "any period AWT - tax Majan15% keep group Majan15% keep.

    Please help me how to the realse this type of system waiting.

    Hi Vikas.

    You have defined a special calendar of withholding type and the period of the invoice has not been set on your calendar.

    Octavio

  • How license Latin American localization (JL) in the Oracle 11i Applications

    Hello

    How license Latin American localization (JL) in the Oracle 11i Applications.

    Kind regards.

    Pls check below MOS: -.

    How to use OAM license JA (Asia/Pacific locations), I (European locations), JG (regional locations) and JL (Latin American locations) in the Oracle Applications? [351900.1 ID]

    How to install the localization of Latin America? [268396.1 ID]

    Also, to check the currently installed location, pls check below MOS: -.

    NOTE: 122491.1 -how can I know what I need a setup of country-globalization 11i?

    Thank you
    JD

    Published by: JD on May 27, 2011 03:28

  • Need help - financial Oracle 11i vs (payable Oracle and Oracl pay) r12

    Hi all

    I am beginner in Oracle Application and request your help answering my questions.

    Background:
    Three years ago, my company intended to implement ERP Oracle Financials.
    To facilitate the plan, an open call for tenders was created to find the best implementation of the company at an affordable price.
    The tender was created when Oracle Financials 11i.
    When the contract was signed 2 years ago by my company and the winning company, it is mentioned that the installed version must be the last.
    The answer to the needs, the winning company said that payment activity will be facilitated by Oracle Payable.
    Now, the project is going and the Oracle has the version of recommendation 12.

    Problem:
    To 11i, there was only a single module related to the activities of payment, that is Payable to Oracle.
    Recommendation 12, Oracle has a new module, i.e. Oracle payment, which was the subdomain of Oracle Payable.

    Question:
    1. is my view on the relationship between Oracle and Oracle payment payable above correct?
    2 - is my company has the right to ask for payment of the Oracle installation?
    3. If the answer to the number 2 is Yes, what is the basis for this?

    Thanks for the explanation.
    Sorry if I ask a simple question.

    Kind regards
    Dodydh

    Published by: 840286 on February 28, 2011 03:28

    Hi Dodydh,

    I'm afraid, your statement "Oracle to recommendation 12, a new module, i.e. Oracle payment, which was the subdomain of Oracle to pay." is not correct.

    Oracle payments is a version upgrade of Oracle 11i iPayments and this module is supposed to use Self service modules. But lots of payment which is part of the creditors of the Oracle was moved to Oracle payments.

    You may very well ask to implement payment lots (process related to the disbursement of funds) but not all of the module.

    Please let me know if you need more information.

    Kind regards
    Sridhar

  • cloning oracle 11i on windows applications

    Hello
    I have clone oracle 11i with db version 10 g (10.2.0.1) applications under windows. Is there something different AIX or LINUX compared to WINDOWS. Y at - it any good method to copy the files to the production server to clone the server. Any consideration, I have to take.

    Please advice

    Concerning
    Taher

    Hi taher;

    That is how long it takes to copy. I know it depends on network resources and resources H/W. I want to estiamate how long it takes to copy. Please if you can get a rough idea, I could say so, how much time I need.

    You are right, but if you need example, for 90 GB it takes aprox. 1.5 hours on our server. But as you do it depends on a lot of things so it's difficult to compare... But like I said start copying APPL_TOP and COMMON_TOP next to the apps... Normally I follow these steps:

    1. first I copy the file ORACLE_HOME and dbf source to the target
    2. I started APPL_TOP copy simultaneously
    3 Dbside copy is complete earlier then APPL_TOP thatswhy I have the chance to start dbtier clone post. Meanwhile, I'm starting to COMMON_TOP in these steps
    4. While COMMON and APPL is made I copy other folders
    5. start clone post to appstier

    I hope she gives u idea and might be useful for your question

    Respect of
    HELIOS

  • Problem with Autoconfig on Oracle 11i

    Hello

    I installed the Oracle 11i (11.5.10.2) with Oracle 9.2.0.6.0 in single node mode. The applications are on CU2 is autoconfig enabled. I renamed the appsutil on DB level and what follows on the applications

    Perl $AD_TOP/bin/admkappsutil.pl

    Starting from the generation of appsutil.zip
    Logfile located at /u01/app/oracle/VIS/visappl/admin/log/MakeAppsUtil_03160452.log
    Exit to /u01/app/oracle/VIS/visappl/admin/out/appsutil.zip
    MakeAppsUtil completed successfully.

    I moved over the appsutil.zip to the RDBMS Oracle Home and unziped the appsutil.zip, but the problem is that I am only able to find the following directories, any directory script or the context file etc.

    Ben pilot html java support perl sql model xml

    where, as in the directory of apputil Moose, I have the following directories / files


    bin clone pilot html install java media model VIS_ocapma.xml perl scripts sql temp outgoing xml journal

    It comes to the new installation of 11.5.10.2. Please notify.

    Thank you
    -Samar
    .

    Published by: user4314207 on March 16, 2009 15:00

    Hi Samar,

    You have the bin directory, which is sufficient. Just follow the steps described in the note mentioned above to create the context file (using 'perl adbldxml.pl level = db'), then you need to run adconfig.sh (which is also in the bin directory) and this will create the scripts folder.

    Please read the note again once, it should solve the problem.

    Kind regards
    Hussein

  • Oracle 11i system - IZ0-232 Administration certification

    Hi all

    I worked as admin system for oracle 11i e-Business suite for over 2 years now and who was one of the reasons for which I decided to take the Oracle 11i my company administration system review already had self-training CD purchased at least 5 years for this certification. I gave the review two weeks ago and could not succeed (57%) that concepts of most of the questions I had in the exams were not covered in the old training material, that I had.

    Now, my question to everyone is that what should be my next step for training? Should I buy new Oracle will decrease self training CDs (new package costs $1200! don't know if the company who will refund!) or shall I seek other alternatives, like a book or any other similar material? Also, does anyone know any good book for getting trained in this review or any other material of training in addition to CDs?

    I want to take this test again as soon as possible. As a result, views on how to prepare (should I just stick to CD, if I buy, etc.) will be useful!

    Help on any of these topics would be appreciated.

    Thank you
    GP

    GP,

    I managed to pass this review using the following:

    (1) 11i system administrator Fundamentals Training Manual
    http://education.Oracle.com/pls/web_prod-PLQ-dad/show_desc.redirect?DC=D14411GC30&p_org_id=&lang=&source_call=

    (2) Documentation of the oracle Applications system administrator set
    http://download-UK.Oracle.com/docs/CD/B25516_14/current/HTML/docset.html

    The training manual was useful, but I have to say that all of the documentation has been my main reference to prepare for this exam. I did not have the CD for self-training for this review, but I think that all the documentation topics for review and should be sufficient. Given that you've got 57% (which is so close to the 60% pass mark) on your first attempt, so I think you manage to take the exam next time if you prepare well and go through the system administrator manuals.

    Oracle 11i system administration
    http://education.Oracle.com/pls/web_prod-PLQ-dad/db_pages.GetPage?page_id=41&p_exam_id=1Z0_232

    1Z0 - 232 tips: Oracle Certified Expert (ECAS) - Sys Admin Exam
    http://ebizocp.blogspot.com/2007/09/tips-for-1Z0-232-Oracle-certified.html

    Good luck!

  • What is the difference this 2 examples of photos? Use function IMAQ detect circles to detect the GREEN button.

    Hi all

    Please refer to the attached 2 pictures, they are similar, just the size is defferent. (pass PNG, 5478 pass. PNG).

    But now I try to use IMAQ detect circles to catch the GREEN button. For the PNG pass, it works very well, but for another example, it is still does not detect this button.

    I also try to change the curve settings and note that entry, but still no. Another way, I also try to use function IMAQ find circles , but the result is worse that IMAQ detect circles, so give up.

    The code is detect the circles.png, copy of block diagram.

    So what is the root cause? Thanks for help.

    Hi colinzhang,

    The extraction of curve so it uniform mode, you can get the result.

    -Suggestion, if you want to use the entire image area as KING should get the size of the image, get the rectangle and convert it to the descriptor of KING. (I think this is unnecessary)

    -Be careful with the extraction of the plane, u use default color which is the Red plan. In this example, it is fine. but make sure you know what aircraft you are extracting.

    s ' Please find vi saved in the 2010 version.

  • Oracle cloud virtual image, I was able to create the database using DBCA (virtual image) oracle cloud. I understand with the virtual image, we won't have a lot of tools like on DAAS cloud... But could please at least use us dbconsole?

    On oracle cloud virtual, image I was able to create the database using DBCA (virtual image) oracle cloud. I understand with the virtual image, we won't have a lot of tools like on DAAS cloud. But could please at least use us dbconsole?


    I tried to start dbconsole, and it did not work:

    [oracle@ltutest ~] $ emctl start dbconsole

    OC4J Configuration problem. /U01/app/Oracle/product/11.2.0/dbhome_1/OC4J/J2EE/OC4J_DBConsole_ltutest.compute-aulatrobeu83140.oraclecloud.internal_ORCL not found.


    According to the oracle help doc center - "creating a database on an instance of virtual image service" (http://docs.oracle.com/cloud/latest/dbcs_dbaas/CSDBI/GUID-29290A81-8798-4988-848E-77A1BE0CF08A.htm#GUID-4851560B-D4B6-42...)

    database was created with the option as:

    emConfiguration - NONE - storageType FS


    I guess we have to manually configure the em console, but when I tried to create it, he told me that "' Dbcontrol repository already exists." "

    When I try to start it, it exports the error

    [Oracle@ltutest ~] $ emctl start dbconsole

    OC4J Configuration problem. /U01/app/Oracle/product/11.2.0/dbhome_1/OC4J/J2EE/OC4J_DBConsole_ltutest.compute-aulatrobeu83140.oraclecloud.internal_ORCL not found.

    Could someone could give me help with this problem?


    Thanks Brian. I tried your command, and it works. Now I've encountered another problem, how can I browse the URL?

    I created the access rule for access remote on port 1521 and 1158. but when I try to browse the EM console URL, it does not work. all the configurations that I need to do?

Maybe you are looking for

  • Do you have a dv9700? or something similar to this family? concerns...

    Hello I have some concerns on my new laptop.  I bought this laptop about 4 months in August.  Recently, it seems to be the warm-up everwhere.  Before she would get under hot but now the fan runs continuously until I can still hear it.  The fan seems

  • Satellite A30: HARD drive, modem and USB controller

    Hi, I have problems with my laptop A30. The HARD drive looks like it will fail (bad sectors) utility that I downloaded on the Hitachi site tells me that it is a hardware failure. I am also unable to use my modem that I also get a "cannot open port '

  • Satellite L755-1GH - noise from the fan always on

    HelloI own a laptop L755-1GH which has its fan always on, producing a large amount of noise. Temperature is not the 80 ° c but nor least fan is already blowing less than 70º, for now it is at 58ºC and it is already underway.The pc is still in the war

  • Creating Windows DVD won't finish burning

    From: pafos Problem - DVD burned with Windows DVD maker not fianalize Amend will be will not play back on normal household players After spending a considerable amount of time and money (on blank media) trying to produce a DVD that will play on my Pa

  • Recovery disks did not work! Reinstall bunk! Ideas?

    Hey guys,. I had problems freezing during startup on my vaio vgn-aw120j with windows premium 64 bit and couldn't get 30secs without making it not responsive, so I tried to run the startup of the vaio recovery partition repair. Message said that windo