How to insert date in mmm/dd/yyyy format

hi all,
im getting date from user-interface in the format of mmm/dd/yyy.
when i tried to insert data in this format,
insert into temp values('10-july-2000);
insert into temp values('july-10-2000');
the first statement is working fine. and the second statement is givine msg,
SQL> insert into temp values('10-july-1999');
1 row created.
SQL> insert into temp values('july-10-1999');
insert into temp values('july-10-1999')
ERROR at line 1:
ORA-01858: a non-numeric character was found where a numeric was expected
how to get this.
regards
pavan

I have read that ALTER SYSTEM changes will be effective immediately and there is no need to bounce the database.
right but if parameter is "modifiable" if not then we need to "restart database"
there three parameter with "alter system .... cmd"
1. Memory
2. Spfile ------------effect in next startup
3. Both ( Memory + spfile) Default
hope this helps
Let take example : PROCESSES is not modifiable parameter.
SQL> show parameter process
NAME                                 TYPE        VALUE
processes                            integer     150
SQL> alter system set processes = 152 scope=both
  2  /
alter system set processes = 152 scope=both
ERROR at line 1:
ORA-02095: specified initialization parameter cannot be modified
SQL> alter system set processes = 152 scope=memory
  2  /
alter system set processes = 152 scope=memory
ERROR at line 1:
ORA-02095: specified initialization parameter cannot be modified
SQL> alter system set processes = 152 scope=spfile;
System altered.
SQL> show parameter processes
NAME                                 TYPE        VALUE
processes                            integer     150
SQL> startup force
ORA-01031: insufficient privileges
SQL> conn sys as sysdba
Enter password:
Connected.
SQL> startup force
ORACLE instance started.
Total System Global Area  171966464 bytes
Fixed Size                   787988 bytes
Variable Size             145488364 bytes
Database Buffers           25165824 bytes
Redo Buffers                 524288 bytes
Database mounted.
Database opened.
SQL>
SQL> show parameter processes
NAME                                 TYPE        VALUE
processes                            integer     152
SQL>Message was edited by:
user52

Similar Messages

  • How to Insert date in 'DD/MM/YYYY' format in oracle using stored procedure?

    Hi
    How to Insert date in 'DD/MM/YYYY' format in oracle using stored procedure?
    This is my Input data.
    11/25/2007.
    By using below query, it is inserted into database.
    sql>Insert into tblname values(to_date('11/25/2007','MM/DD/YYYY'));
    But using stored procedure, the same query is not running.
    It shows error like
    ORA-01843: not a valid month ORA-06512: at line 1
    Procedure:
    create or replace procedure Date_Test(datejoin in DATE) is
    begin
    insert into datetest values(to_date(datejoin,'MM/DD/YYYY'));
    end Date_Test;
    I had used 'nls_date_language = american' also.
    Prcodeure is created but not worked in jsp. The same error is thrown.
    Pls provide a solution

    This might help you....
    SQL> Create Table DateTest(col1 Date);
    Table created.
    Elapsed: 00:00:00.00
    SQL> create or replace procedure Date_Test(datejoin in DATE) is
    2 begin
    3 insert into datetest values(to_date(datejoin,'MM/DD/YYYY'));
    4 end ;
    5 /
    Procedure created.
    Elapsed: 00:00:00.00
    SQL> exec Date_Test('11/25/2007');
    BEGIN Date_Test('11/25/2007'); END;
    ERROR at line 1:
    ORA-01843: not a valid month
    ORA-06512: at line 1
    Elapsed: 00:00:00.00
    SQL> exec Date_Test(To_Date('11/25/2007','mm/dd/yyyy'));
    BEGIN Date_Test(To_Date('11/25/2007','mm/dd/yyyy')); END;
    ERROR at line 1:
    ORA-01843: not a valid month
    ORA-06512: at "CTBATCH.DATE_TEST", line 3
    ORA-06512: at line 1
    Elapsed: 00:00:00.00
    SQL> create or replace procedure Date_Test(datejoin in DATE) is
    2 begin
    3 insert into datetest values(datejoin);
    4 end ;
    5 /
    Procedure created.
    Elapsed: 00:00:00.00
    SQL> exec Date_Test(To_Date('11/25/2007','mm/dd/yyyy'));
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.00
    SQL> Select * from DateTest;
    COL1
    25-NOV-07
    Elapsed: 00:00:00.00
    SQL> create or replace procedure Date_Test(datejoin in VarChar2) is
    2 begin
    3 insert into datetest values(to_date(datejoin,'mm/dd/yyyy'));
    4 end ;
    5 /
    Procedure created.
    Elapsed: 00:00:00.00
    SQL> exec Date_Test('11/25/2007');
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.00
    SQL> select * from DateTest;
    COL1
    25-NOV-07
    25-NOV-07
    Elapsed: 00:00:00.00
    SQL>

  • How to convert date  into dd mon yyyy format

    hi all,
    i have a problem in date format i am using date like below .
    <%java.util.Date date = new java.util.Date();%>
    i am inserting date into a table and its storing like this
    insert into tablename (d_date) values (date)
    and its inserting date like below
    Sun Oct 19 09:05:45 GMT+03:00 2003
    i want to fetch date in dd mon yyyy format.
    with this format i want to make a select query.i struck with the format conversion.
    how to do this.
    any comments please.
    any help

    hi all,
    i understand now where i am wrong.
    the below code is not working why because in my server where i am executing code the regional setting month value is in arabic.
    i executed the same code in a different server where date and time jones are english its working fine.
    All the problem is in regional setting and not the jsp code.
    <%
    String whtEverDateFormatYouWAnt = "dd MMM yy";
    String str = new SimpleDateFormat(whtEverDateFormatYouWAnt).format(new SimpleDateFormat("EEE MMM dd HH:mm:ss vvv yyyy").parse("Sun Oct 19 09:05:45 GMT+03:00 2003"));
    out.print(str);
    %>
    Thanks a lot for the excellent solution.
    Thanks again.

  • How to get date in dd/mm/yyyy format ?

    Hello,
    for this query :
    >select to_date(to_char(sysdate),'dd/mm/yyyy') from dual;
    i wanted to get date in dd/mm/yyyy format , but this query is not returning in correct date format .
    How to get that ?

    select id,
    to_date(to_char(dt1,'mm/dd/yyyy'),'dd/mm/yyyy') dt1,
    to_date(to_char(dt2,'mm/dd/yyyy'),'dd/mm/yyyy') dt2
    from t_table1 where no=23;This is my actual query.
    But this query is giving error.
    ORA-01843: not a valid monthWhen i issued this query :
    select id,dt1,dt2 from t_table1 where no=23 ;
    this is the output :
    ID DT1 DT2
    001 10/7/2011 10/19/2011Edited by: bootstrap on Oct 8, 2011 2:13 PM
    Edited by: bootstrap on Oct 8, 2011 2:13 PM

  • Inserting dates in mm/dd/yyyy format in excel sheet

    I am reading data from sql server 2005 which returns dates in the yyyy/mm/dd format. Now I have to insert this data into an excel sheet and it is supposed to be in the mm/dd/yyyy format. I tried converting the date formats in java but when I insert the date as a String the program throws
    java.sql.SQLException: [Microsoft][ODBC Excel Driver] Data type mismatch in criteria expression.
    If I try to insert it as a java.util.Date or java.sql.Date it also includes the timestamp(which i do not want ) since thats the way MS SQL Server returns it in the result set.
    Someone said using PreparedStatement would help. How?
    Can someone please help me ?

    neoforu7 wrote:
    I have to insert data into excel sheets that already have pre defined macroes that do some calculations and get the data in the format i want. I dont know if this is possible with POI or JExcel. You most definitely not are going to find that in ODBC. The excel odbc driver does very, very little.
    [http://support.microsoft.com/kb/178717]
    And I also dont have the time to learn these. So please help me if u canSorry - then you should just tell someone that it isn't going to happen.
    Your requirements, excel and macros, is going to take a LOT of time.
    At a minimum, without seeing the exact requirements and macros, myself I wouldn't start with less than three months of time.

  • How to print date in dd/MM/yyyy format??

    Hi All,
    I want to print a date in a dd/MM/yyyy format. I am doing like this
    Date d = new Date(23-11-2006); but it is printing
    like Wed Dec 31 18:59:58 EST 1969 .
    Please help me .

    I am doing like this
    Date d = new Date(23-11-2006); but it is
    printing No you're not, because that won't compile. Show us exactly what you're doing and we might be able to help.
    You seem to suggest you want to print a date in a certain format, but then the (pseudo-) code you present seems to suggest you want to be able to parse a date from a given format into a Date object.
    Be clear and specific about exactly what you want, what you have tried, and why it didn't work and then people will be better placed to help! :-)

  • How to insert data into the mysql table by giving as a text file

    Hi,
    Any one know's how to insert data into the mysql table by giving as a text file as the input in JSP.Please respond ASAP.
    Thanks:)

    At least you can try StringTokenizer to parse your text files. Or download a text JDBC driver to parse your files, for instance, HXTT Text(www.hxtt.net) or StelsCSV(www.csv-jdbc.com).

  • How to insert data from site into DB?

    Hi
    Does anyone know how to insert data into a database from a
    website?
    I have created a Registration form for users to register to
    my web site. With this I would like the data they have entered to
    be stored in a MySQL database. I have created the a form and used
    the record insertion form wizard.
    When they have registered, I need to be able to check their
    username every time they log in.
    If anyone could help, it would be greatly appreciated,
    thanks Lou.

    LoobieLouLou wrote:
    > When I inserted a form, I enetered a name and the method
    was POST, but it also needed an action.
    > How do I write in java script that it needs to be
    inserted into the database?
    You can't do it with JavaScript. You need to use a
    server-side language
    like ASP, ASP.NET, ColdFusion, or PHP. Dreamweaver automates
    a lot of
    the process for you, but you need to choose your server model
    first.
    It sounds as though you are completely new to this. First ask
    your
    hosting company whether it supports a server-side language,
    and if so,
    which one. Then open Dreamweaver help (F1) and read the
    section titled
    "Preparing to Build Dynamic Sites".
    Working with server-side languages and databases isn't
    difficult, but
    it's not something you can pick up in five minutes or be
    shown how to do
    in a couple of forum posts.
    If you can't make up your mind which server-side language to
    use,
    ASP.NET is the most difficult of the four I mentioned. ASP is
    popular,
    but is no longer actively developed, so will eventually die
    out
    (although it will take many years to do so). ColdFusion and
    PHP are
    relatively easy to learn. I prefer PHP, but all of them do
    basically the
    same thing. However, you must choose one; they cannot be
    mixed.
    David Powers, Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • *Urgent*How to insert data from MS SQL to the table that create at the adobe form?

    Hi,
    I'm using Adobe life cycle designer 8 to do my interactive form. I would like to ask how to insert data from MS SQL to the table that i have created in my adobe interactive form?
    I really need the information ASAP as i need to hand in my project by next week... i really appreciate any one who reply this post.
    Thanks

    Tou need to do a couple of things
    1. On the Essbase server, set up an odbc system connection to your MySQL database
    2. In the load rule , go to the file menu and select open SQL data source and in the data source put in your SQL statement . A couple of hints. Where it says Select, don't put in the word select and where it say from don't put in from. The system adds them for you. The easiest way ti enter a SQL statement is to do it all in the select area So if your SQL would normanlly say select * from mytable just enter the code as * from mytable in the select area
    The click ol/retrieve and enter in your connection info. Itshould bring data back into the load rule. Save the load rule and use it

  • Its very urgent:how to insert data into database tables

    Hi All,
    I am very new to oaf.
    I have one requirement data insert into database tables.
    here createPG having data that data insert into one custom table.
    but i dont know how to insert data into database tables.
    i wrote the code in am,co as follows.
    in am i wrote the code:
    public void NewoperationManagerLogic()
    ManagerCustomTableVOImpl vo1=getManagerCustomTableVO1();
    OADBTransaction oadbt=getOADBTransaction();
    if(!vo1.isPreparedForExecution())
    vo1.executeQuery();
    Row row=vo1.createRow();
    vo1.insertRow(row);
    in createPG processrequest co:
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    ManagerInformationAMImpl am=(ManagerInformationAMImpl)pageContext.getApplicationModule(webBean);
    am.NewoperationManagerLogic();
    process form request:
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    if(pageContext.getParameter("Submit")!=null)
    ManagerInformationAMImpl am=(ManagerInformationAMImpl)pageContext.getApplicationModule(webBean);
    am.getOADBTransaction().commit();
    please help with an example(sample code).
    its very urgent.
    thanks in advance
    Seshu
    Edited by: its urgent on Dec 25, 2011 9:31 PM

    Hi ,
    1.)You must have to create a EO based on custom table and then VO based on this EO eventually to save the values in DB
    2.) the row.setNewRowState(Row.STATUS_INITIALIZED); is used to set the the status of row as inialized ,this is must required.
    3.) When u will create the VO based on EO the viewattributes will be created in VO which will be assigned to the fields to take care the db handling .
    You must go thtough the lab excercise shipped with you Jdeveloper ,there is a example of Create Employee page ,that will solve your number of doubts.
    Thanks
    Pratap

  • How to insert date in pages

    How to insert date and time using PAGES via IPAD

    How to insert date and time using PAGES via IPAD

  • How to insert data from access to sql server ?

    How to insert data from access to sql server ?
    Please help me
    thanks

    phamtrungkien wrote:
    How to insert data from access to sql server by JAVA?The first four words of my last post:
    masijade wrote:
    JDBC with two connectionsGet a resultset from the jdbc-odbc bridge access connection, cycle through it and add batch insert commands to the jdbc connection to sql server. Give it a try and if the code has an error, then post your code ans ask a question.
    The real question, though, is why you think it absolutely necessary to use Java for this.

  • How to insert data in table UI elements

    Hi Guys,
    Here is my questions. How to insert data in table UI elements.
    Here i try to insert data by using Add button
    data:
        Node_Item                           type ref to If_Wd_Context_Node.
        Node_Item = wd_comp_controller->get_data_node( ).
      data:
        lr_table_line type ref to ITEM.
       lr_table_line = Node_Item->create_element( ).
      field-symbols:
        <ls_table> type any.
      assign lr_table_line->* to <ls_table>.
      Node_Item->bind_element(
        new_item             = <ls_table>
        set_initial_elements = abap_false
        index                = 1 ).
    But i got syntax error the result type of the function method cannot not be converted in to the type of lr_table_line.
    And i set cardinality and selection as 0.n.
    Pls, let me know for the soulutions
    Chandru
    Message was edited by:
            chandrasekar muthuvelraj

    Chadru, another option is for you to bind the table UI field to an internal table and to populate the internal table. Then, automatically, your Table UI field will be populated with the data from the internal table. Here is the code that does that and works for me.  Good luck!
    method FILL_DATA .
    DATA: node_level1 type ref to if_wd_context_node,
          node_level2 type ref to if_wd_context_node,
          node_items type ref to if_wd_context_node,
          stru_ResItems type BAPI2093_RES_ITEM,
          tab_ResItems TYPE TABLE OF BAPI2093_RES_ITEM,
          n type i.
    node_level1 = wd_context->get_child_node( name = 'BAPI_RESERVATION_CRE' ).
    node_level2 = node_level1->get_child_node( name = 'CHANGING' ).
    node_items = node_level2->get_child_node( name = 'RESERVATIONITEMS' ).
    n = 2.
      do n times.
        insert stru_ResItems into table tab_ResItems.
      enddo.
    node_items->bind_table( tab_ResItems ).
    endmethod.

  • How to insert data in to msaccess through jsp

    i am doin a project in jsp, which i am new to. i have completed the design part in jsp now i am supposed to work with backend and stuffs.
    yesterday i had asked how to connect jsp with msaccess and Mr sharma had helped me in that and now that part is up and running. i am able to retrieve data from the table
    now my problem is how to insert data that i get from the user through the forms in to a table
    i have a registration form in jsp that contains the username, password, age etc. how can i get add these informations in to access.pls help me
    thanks in advance

    Hi....
    Simply obtain a jdbc connection to your ms access database.
    one u have a connection u can use , Statement Or PreparedStatement to
    execute queries against database
    Here is an example of mysql...
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.PreparedStatement;
    public class SqlAuthenticationHandler{
         private Connection conn;
         private PreparedStatement statement;
         private ResultSet rs;
         public SqlAuthenticationHandler(){
    /** Load ur JDBC driver **/
    try{
                   Class.forName("com.mysql.jdbc.Driver");
    conn=DriverManager.getConnection("jdbc:mysql://localhost:3306/JDrive","root","password");
              }catch(Exception ex){
                   ex.printStackTrace();
    public void insertUser(String name, String password){
    try{
    /** Create a statement **/
    statement=conn.prepareStatement("INSERT into user values(?,?)");
    statement.setString(1,name);
    statement.setString(2,password);
    statement.executeUpdate();
    statement.close()
    }catch(SQLException e){
                        e.printStackTrace();
    Here replace "com.mysql.jdbc.Driver" with class name of your type 4 Ms Access Driver.
    replace jdbc:mysql://localhost:3306/JDrive","root","password" with url of ur access database
    check out this jdbc tutorial
    http://java.sun.com/docs/books/tutorial/jdbc/overview/index.html
    Sudhir Nimavat (Sudhir_nimavat at yahoo dot com)

  • How to insert data in database table

    Hi experts,
                   How to insert data into database table using internal table from function module.

    Hi,
    As per my understanding are you looking for the complete API feature of data insertion into the database using the Locking Mechanism? If yes, then you need to create a Lock Object using the Primary keys of the Primary Table and Secondary Tables. You need to call the lock object first and then you need to make the entry into the table. This principle is based on  'All or None Concept'.
    For the insert Statement Key word you can have a look at the following link:
    http://help.sap.com/abapdocu/en/ABAPINSERT_SOURCE.htm
    Hope this helps.
    Thanks,
    Samantak.

Maybe you are looking for

  • Report Engine

    i am trying to install Oracle Developer Suite 10 g rel 1 over RHEL 5.3 64 bit, the installation pre-req stuck due to the following rpms. pdksh-5.2.14-21 openmotif21-2.1.30-8 gnome-libs-1:1.4.1.90-34.1 compat-libstdc++-devel-7.3-2.96.128 compat-libstd

  • Is it possible to restrict Content Administrator from a room?

    I'm having a hard time wrapping my brain around this one so please bare with me. The client wants the following situation: - they want a collaboration room that is restricted to 4 individuals in the company - this room needs to be secure so that only

  • Hp laserjet pro mfp m125-m126 pclmS, x86 driver. operation could not be conplited

    unable to install hp laserjet pro mfp m125-m126 pclmS, x86 driver. operation could not be conplited

  • Differences between Debug .exe file and Execute .exe file

    We are very confused by the following problem when we are using LabWindows/CVI to develop our application: Our program is for retrieving data from real time and process the data to get the statistic results. If we run the program using "Run >> Debug

  • Where can I find enterprise developer license agreement?

    I am about to sign up (my company) for the enterprise devloper program.  It forces me to go through the process before I can see the license agreement.  I need to have my legal team review this before I start the process.  How do I get a copy of the