The Dreaded ORA-01830 error.

The following code snippets (taken from a java server pages program) :
<%! private String timeStamp() {
java.util.Date today = new java.util.Date();
SimpleDateFormat formatter = new SimpleDateFormat("dd-MMM-yyyy:HH:mm");
return(formatter.format(today));
%>
<%
SQL = "Insert into changelist (RcdNr,BaseNr,SiteNr,Action,UpdatedBy,DateUpdated,Remarks) ";
SQL += "values (changeListCounter.nextval"+login.getBaseNr()+",'"+selSite;
SQL += "','Reactivated','"+login.getUserID()+"','"+timeStamp()+"',";
SQL += "'"+request.getParameter("txtReason")+"')";
RowsAffected = Stmt.executeUpdate(SQL);
%>
result in the following error:
java.sql.SQLException: ORA-01830: date format picture ends before converting entire input string
The SQL statement created is as follows:
update sites set status = 1,deactivatedby = '[email protected]', datedeactivated = '15-Jun-2001:09:21' where sitenr = 'ULDF0001'"
Datedeactivated is defined as a 'Date' field in table sites.
Oracle 8i Error Messages returns the following:
ORA-01830 date format picture ends before converting entire input string
Cause: A valid date format picture included extra data. The first part of the format picture was converted into a valid date, but the remaining data was not required.
Action: Check the specifications for date format pictures and correct the statement.
QUESTION:
What is the correct date format picture to get both the time and date into an Oracle 'Date' field? I've seen many posting on how but never any on what. TIA.
null

<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by John Haasbeek ([email protected]):
To use a string in an insert, you can guarantee success only by using the TO_DATE function and explicitly specifying the date picture. That is because the default date picture is modifyable in the database init file (initxxx.ora). So do the following:
String myDateString = "20010501";
String myDateFormat = "YYYYMMDD";
sql = "INSERT INTO my_table (my_date) ";
sql += "VALUES (TO_DATE('" + myDateString + "',";
sql += "'" + myDateFormat + "'))";
John H.<HR></BLOCKQUOTE>
And to use both the date and time it would be
String myDateTimeString = "20010501105801";
String myDateTimeFormat = "YYYYMMDDHHMMDD";
sql = "INSERT INTO my_table (my_date) ";
sql += "VALUES (TO_DATE('" + myDateTIMEString + "',";
sql += "'" + myDateTimeFormat + "'))";
Right?

Similar Messages

  • The dreaded ORA-13282 error

    Hi all,
    I have a custom coordinate system created in 10g that otherwise seems to work fine (SRID=9000001).
    When I try this simple conversion:
    SELECT sdo_cs.transform(sdo_geometry(2001,8192,sdo_point_type(13.6,52.4,null),null,null),9000001)
    from dual;
    I am getting:
    ORA-13282: failure on initialization of coordinate transformation
    ORA-06512: at "MDSYS.SDO_CS", line 75
    ORA-06512: at "MDSYS.SDO_CS", line 112
    ORA-06512: at "MDSYS.SDO_CS", line 2678
    So I do:
    SELECT SDO_CS.VALIDATE_WKT(9000001) FROM DUAL;
    And that comes back true. (As does 8192, but I would hope that would!)
    Scanning this forum, none of the other threads seems to help me. Anybody have any idea what I'm doing wrong?? I'm including the WKT for my custom coordinate system.
    PROJCS["BC Hydro Lambert Conformal Conic", GEOGCS["North_American_Datum_1983", DATUM["North_American_Datum_1983", SPHEROID["Geodetic Reference System of 1980",6378137,298.2572221009113]], PRIMEM["Greenwich",0], UNIT["Decimal Degree",0.0174532925199433]], PROJECTION["Lambert_Conformal_Conic_2SP"], PARAMETER["standard_parallel_1",50], PARAMETER["standard_parallel_2",56], PARAMETER["latitude_of_origin",53], PARAMETER["central_meridian",-123], PARAMETER["false_easting",0], PARAMETER["false_northing",0], UNIT["METER",1]]

    Huzzah! I was right.
    New, working WKT:
    PROJCS["BC Hydro Lambert Conformal Conic", GEOGCS["North American Datum 1983", DATUM["North American Datum 1983", SPHEROID["GRS 1980",6378137,298.2572221009113]], PRIMEM["Greenwich",0], UNIT["Decimal Degree",0.0174532925199433]], PROJECTION["Lambert Conformal Conic"], PARAMETER["Standard_Parallel_1",50], PARAMETER["Standard_Parallel_2",56], PARAMETER["Latitude_of_Origin",53], PARAMETER["Central_Meridian",-123], PARAMETER["False_Easting",0], PARAMETER["False_Northing",0], UNIT["METER",1]]
    Turns out that VALIDATE_WKT doesn't do a good job of validating WKTs. The names I used for spheroids were not what Oracle used, so when I converted them to be the same, coordinate conversion works!

  • Ora-01830 error when loading xml doc

    Hi,
    I keep getting this error whenever I try to load an xml document.
    ora-01830: date format picture ends before converting entire input string.
    The date element in the xml document is in this format:
    2003-06-26T11:17:40.130
    The datatype in the XML Schema is DATE and the "table" created by Oracle gives the column datatype as DATE.
    The settings in oracle are as follows:
    PARAMETER VALUE
    ------------------------------ ---------------------------NLS_LANGUAGE AMERICAN
    NLS_TERRITORY AMERICA
    NLS_CURRENCY $
    NLS_ISO_CURRENCY AMERICA
    NLS_NUMERIC_CHARACTERS .,
    NLS_CALENDAR GREGORIAN
    NLS_DATE_FORMAT DD-MON-RR
    NLS_DATE_LANGUAGE AMERICAN
    NLS_SORT BINARY
    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
    NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
    NLS_DUAL_CURRENCY $
    NLS_COMP BINARY
    NLS_LENGTH_SEMANTICS BYTE
    NLS_NCHAR_CONV_EXCP FALSE
    17 rows selected.
    Can anybody tell me how Oracle is expecting the date to appear ?
    Thanks,
    Ned

    I think you need .000000 at the end of the Time

  • Failed to sqlplus into ASM  with the notorious ORA-12505 error

    Hi guys,
    I have a 2-node RAC testing environment and i have been having trouble trying to LOCALLY sqlplus into the ASM instance.
    If I do "sqlplus sys/xxxxx@asm1", it just throws "ORA-12505:TNS: listener does not currently know of SID given in connect descriptor".
    If I do "sqlplus / as SYSASM", it says "ORA-01031: insufficient privileges".
    Can' figure out where I did wrong so really appreciate some help here (maybe in the listener file, i should give the GRID home for one of the ORACLE_HOME parameters)?
    Here is the tns and listener file:
    tnsnames.ora:
    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = vbox-cluster)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = ORCL)
    ASM1 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = vbox-cluster)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SID = +ASM1)
    listener.ora:
    LISTENER=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))) # line a
    dded by Agent
    LISTENER_SCAN1=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN1))))
    # line added by Agent
    ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN1=ON # line added by Agent
    ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER=ON # line added by Agent
    SID_LIST_LISTENER_ASM=
    (SID_LIST=
    (SID_DESC=
    (SID_NAME=PLSExtProc)
    (ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1)
    (PROGRAM=extproc)
    (SID_DESC=
    (ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1)
    (SID_NAME=+ASM1)
    )

    user11957149 wrote:
    Hi guys,
    I have a 2-node RAC testing environment and i have been having trouble trying to LOCALLY sqlplus into the ASM instance.
    If I do "sqlplus sys/xxxxx@asm1", it just throws "ORA-12505:TNS: listener does not currently know of SID given in connect descriptor".
    If I do "sqlplus / as SYSASM", it says "ORA-01031: insufficient privileges".
    Can' figure out where I did wrong so really appreciate some help here (maybe in the listener file, i should give the GRID home for one of the ORACLE_HOME parameters)?
    Here is the tns and listener file:
    tnsnames.ora:
    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = vbox-cluster)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = ORCL)
    ASM1 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = vbox-cluster)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SID = +ASM1)
    listener.ora:
    LISTENER=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))) # line a
    dded by Agent
    LISTENER_SCAN1=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN1))))
    # line added by Agent
    ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN1=ON # line added by Agent
    ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER=ON # line added by Agent
    SID_LIST_LISTENER_ASM=
    (SID_LIST=
    (SID_DESC=
    (SID_NAME=PLSExtProc)
    (ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1)
    (PROGRAM=extproc)
    (SID_DESC=
    (ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1)
    (SID_NAME=+ASM1)
    )with regard to ASM instance, it is NEVER "online"
    There is never any requirement to connect to ASM instance via SQL*Net.
    Log onto DB Server directly & just start ASM instance

  • Why am I suddenly getting the dreaded "ID =  5000" error with Illustrator 5.5? I'm only using CC for Muse.

    I only use Adobe Creative Cloud for Muse... no other option. I have CS 5.5 and am suddenly getting the "you do not have enough access privileges" error and can't save any illustrations. What the hell is going on with Adobe?

    shambles,
    You could try to reinstall using the full three step way (otherwise strange things may linger):
    Uninstall (ticking the box to delete the preferences), run the Cleaner Tool, and reinstall.
    http://www.adobe.com/support/contact/cscleanertool.html

  • The Dreaded message "Publishing Error"

    Hi Kablin, Apnewbie, or anyone for that matter,
    I recently purchased a MacBook and am new to Mac...
    I have read some of the forum comments and have tried to resolve my "Publishing error" message for my first web test page with no avail.
    Varkgirls comments and a few other threads suggested various alternatives:
    I have carried out the deletion on the .plist file in the Domain - no problem...
    I have run a repair on keychain (and not quite sure how Keychain truly works)... I did change access to allow for "all sites"; though when i entered ny password the 'Allow Once' Button was only highlighted instead of the 'Allow always' (why? perhaps you can answer this later).
    First Help please - i created a folder "Web" in my iDisk and now it tells me I have no permission rights to rename or delete it. I can access iDisk from the net however there is no icon to delete the new "Web" folder on the internet-window. I am logged on as administrator.
    I read Apnewbie notes and followed thorough with moving my test site to the folder called sites on iDisk on the net. Yes, I moved the folder and the index across...
    Note the folder 'sites' does not have any other folder inside it as been suggested by the forum that it would contain folders 'web' and inside that 'iWeb'!!!
    Second Help please - from safari I next tried the suggested URL http://web.mac.com/motiondreams/iWeb/eddierodgers/Welcome.html
    and i get back an error message.
    obviously the URL is wrong..
    I am using a Macbook and have a full .Mac account; OSX 10.4.8; iWeb 1.1.2
    i am directly hooked up to my ADSL2 modem, and will also be checking with my service provider on the firewall, proxy, if any issues exitst.
    I reside in Australia so its sure going to be a slow process to get me sorted here. However, I truly would appreciate your help (or anyone who is also reading this)... and thanking you.
    MacBook 2 core Duo (Black)   Mac OS X (10.4.8)  

    Rodgered,
    Sorry I missed your post yesterday.
    For starters, how large is your site? Highlight your Domain file and Command+I to get the size. A lot of network timeout errors have been coming from your part of the world lately. This may be the problem if you are trying to publish a large site or one with a lot of blog entries.
    Mark

  • THE DREADED IMAGE BUFFER ERROR - BACK WITH A VENGENCE IN CS4!

    Hi
    I apologise in advance for bringing up such an old issue - and I know there is a lot on the net about this issue. But I am really struggling having just upgraded to CS4
    I have projects that were created in After Effects CS3 under OSX Leopard. After much forum reading and hours of experimentation, I managed to adjust all the necessary memory and cache settings so that I could render and preview my projects easily.
    I undersood what was needed and how to adjust the settings if the "Unable to allocate space for image buffer...." error ever returned.
    In AE CS3 - it ALWAYS worked.
    Now I have upgraded to CS4 and Snow Leopard.
    Adobe - in their wisdom - have decided to change the memory and cache settings in the preferences dialogue box. I can no longer adjust the settings as I used to.
    No matter what I do - no matter how I change the settings  - I cannot render my projects.
    Why is this now happening.
    I don't need to upgrade my machine (Mac - Intel 2 x 3ghz Quad core - 12 gig memory)
    Plus the fact that it worked perfectly in AE CS3.
    If anyone knows how to reslove this issue - what settings to play with in AECS4 - I would be so grateful.
    Thanks in advance
    Casey Dobie

    Regarding the changes to the Memory & Multiprocessing preferences for After Effects CS4: The changes were intended to make adjusting the preferences easier. Most people had a hard time understanding the old preferences.
    Have you updated to After Effects CS4 (9.0.2)? There are some problems with Snow Leopard that the 9.0.2 update addresses. Can you tell us some things about the composition that is giving you problems, like frame sizes you're working with and other factors that affect RAM usage?
    First, check to make sure that Render Multiple Frames SImultaneously is off and RAM To Leave For Other Applications is set to a very low number. You want to give a single rendering process of After Effects all of the RAM that it can take so that it can render the frame that is giving you the error.

  • The dreaded map loader error

    Hi,
    I've just gotten a new N95 8GB and am trying to download some maps to my phone. I have run the maps application on the phone and successfully connected the phone via USB in data transfer mode. The problem is I am getting the following error:
    "An unexpected error occurred. Try again. Sorry for the inconvenience."
    I've searched everywhere for a solution but without any luck. Sompe people reported proxy/firewall issues but I am running from a home connection and even moved my PC coonected to my phone into the DMZ without luck.
    Has anyone been able to solve this problem or should I give up and keep what is left of my hair on my head?
    grantonstar

    I've been trying to get the maps via Nokia Map Loader 1.2.1. I just installed .net framework 3.0 and reinstalled with no luck either.
    I've been using it with my home wifi connection but I want to be able to download a whole country so the map data is there for when I go out. Unless there is a way to pre-get a region or country direct from the phone?

  • The Dreaded Xilinx Fatal Error

    Hi All,
    I've got a PXI-7813R and several C series modules.
    When I added some code to retreived LSB weights and offsets, after a while I started getting a compile error repeatedly, and I haven't found a way past it yet.  I saw several posts regarding different fatal errors, but so far I haven't been able to figure out what I've done to make the FPGA gods angry.
    Here's the important part of the error message:
    Mapping all equations...
    FATAL_ERROR:Xstortability/export/Port_Main.h:127:1.17 - This application has discovered an exceptional condition from which
    it cannot recover.  Process will terminate. For more information on this error, please consult the Answers Database or open a
    WebCase with this project attached at http://www.xilinx.com/support.
    ERROR:Xflow - Program xst returned error code 1. Aborting flow execution...
    Would someone be kind enough to point me in the right direction?  In the meantime, I'm backtracking and attempting to isolate the issue.
    Thanks,
    Jim

    Thanks once again, Basset Hound. 
    I had tried the instructions in that document the other day without success, but it worked today.  I think I'd made a silly syntactical error before like forgetting the semicolon.  For anyone else who comes across "Port_Main.h:127:1.17", here are the exact modifications I made to vhdl_area.opt, literally spelled out:
    # Global Synthesis Options
    "-keep_hierarchy SOFT";           # Fix outlined in the NI document           
    "-ifn <synthdesign>";             # Input/Project File Name
    That was very helpful, and all seems to be well for now (fingers crossed).  Now I can get back to concentrating on the problem from my last thread. 
    Cheers,
    Jim

  • I fixed my Kin Onem, even though it had the dreaded 'updating modem' error.

    My Kin Onem was recently showing an 'updating modem' error that Verizon and Sharp (the phone's manufacturer) didn't seem to know much about, beyond the usual replacement options that were not very helpful. Not knowing what else to do, I bought and activated a different phone.  After activating my new phone, I decided to take another look at my Kin and, for some reason, I was able to fix it today, and the fix was actually pretty straightforward.
    After plugging my Kin into my PC, I went to 'Devices and Printers' (in the Start menu) and clicked on my phone's icon, which was now just a white hard drive icon since it was unrecognizable. When I clicked on it, Windows noted that there was an error, and asked if I wanted to run Troubleshoot. When Troubleshoot ran its course, it asked whether I wanted to search for a replacement device driver (since that is apparently where the error originated). After it searched for a new driver, my computer automatically installed one on my Kin and the 'updating modem' error message disappeared! My Kin then restarted itself, and it was good as new . I was able to sync it with Zune and put everything I had assumed was irretrievably lost onto my computer.
    I don't know whether the error will happen spontaneously again, but I am happy to have fixed it for now.

    >>Duplicate post removed for cross-posting violation of the Verizon Wireless Terms of Service
        See Why is my Kin onem "updating modem" and what does it mean?  for original message<<
    Message was edited by: Verizon Moderator

  • The dreaded "Infinite Loop" error

    I get a "Serious error.. The Driver for the display was unable to complete drawing operation..blah..blah.. The display driver for nvidia Geforce 4 Ti 4200 with AGP 8X seems responsible....
    The log in windows sez a infinite loop error...blah..blah..
    Anyone have any suggestions?
    Thanx
    Specs
    Enermax 350w PSU
    +3.3V=32A
       +5V=32A
     +12V=17A
        -5V=1A
       -12V=1A
    MSI 865 PE Neo2 L BIOS 1.5/Intel chipset 5.0.1007
    2.4GHZ P4 533FSB
    2X256MB Infineon DDR333 (Using non dual channel)
    80 Gb WD JB
    MSI Geforce 4 Ti 4200/ nvidia 52.16
    Sound Blaster X-Gamer
    LG DVD ROM
    LG 52x32x52
    DirectX9b
    Clean Install Windows XP & Service Pack.
    Idle cpu:32C Load:48C
    Bios settings on default slow

    What is fastwrite (MB or video card?) and can you disable it any way besides buying s/w? I've looked all through my BIOS and Detonator setup, can't find this anywhere.
    My reboots are back.

  • Linux and Jdev ( the dreaded ORA-03115)

    Has any progress been made on a fix for the jdbc thin and OCI8
    bug in Jdeveloper thats prevents connection to the oracle db.
    If there's no fix yet (which i figure there isn't) then when can
    we expect one?
    Cheers
    Adam
    null

    Adam,
    Just to be fair (or whatever), this isn't a JDeveloper bug. I'm
    not even positive it is a JDBC bug.
    At any rate, I have heard that there is a patch available that
    needs to be applied to your Oracle8 LINUX database that will
    allow JDBC (and therefore JDeveloper) to talk to it.
    If you are licensed to use Oracle8 on LINUX, you should be able
    to access the support pages where patches are posted.
    -L
    adam hawkins (guest) wrote:
    : Has any progress been made on a fix for the jdbc thin and OCI8
    : bug in Jdeveloper thats prevents connection to the oracle db.
    : If there's no fix yet (which i figure there isn't) then when
    can
    : we expect one?
    : Cheers
    : Adam
    null

  • ORA-12154 Error After Install of Enterprise Manager

    I have a new new laptop with minimal software installed. Everything was fine and I was able to connect to 4 different Oracle 9i databases.
    This morning I installed Oracle Enterprise Manager (10g) and now I get the dreaded ORA-12154 error.
    I now find a copy of TNSNAMES.ORA in three places. I have copied the correct version to the two new 10G locations and I have verified that all three copies of TNSNAMES.ORA and SQLNET.ORA are correct and identical.
    Do anybody have any idea what else could be wrong?

    I am certain the TNSNAMES.ORA file is fine as it is "pushed" from a central IT department. I have compared it to the one on a second computer (which has only 9i installed) in my office and they are identical.
    I examined the Oracle 9i directories and there was no LISTENER.ORA anywhere. On the 9i only computer the command - C:\>dir listener.ora /s /p executed in a DOS window returned no files.
    Everything was working fine until I installed Enterprise Manager 10g (10.2.0.2.1).
    I have TOAD installed and it connects to both of the 9i development and production databases, so I know the TNSNAMES.ORA is okay.
    It woudl seem that there is a conflict between 10g and 9i Developer/2000.

  • ORA-30966: error detected in the XML Index layer

    Dear all,
    after upgrading from 9.2.0.8 to 11.2.0.1, Autoconfig ended with error:
    Alert log file shows :
    Mon Jul 04 21:33:50 2011
    Errors in file /ebiz/oracle/diag/rdbms/vision/VISION/trace/VISION_ora_31642.trc  (incident=16196):
    +ORA-00600: internal error code, arguments: [kzxcInitLoadLocal-7], [64131], [ORA-64131: XMLIndex Metadata: failure during the looking up of the dictionary+
    +ORA-30966: error detected in the XML Index layer+
    +ORA-31011: XML parsing failed+
    +ORA-01403: no data found+
    +], [], [], [], [], [], [], [], [], []+
    ORA-01403: no data found
    Incident details in: /ebiz/oracle/diag/rdbms/vision/VISION/incident/incdir_16196/VISION_ora_31642_i16196.trc
    Mon Jul 04 21:48:25 2011
    Incremental checkpoint up to RBA [0x3b2.a445.0], current log tail at RBA [0x3b2.a447.0]
    Mon Jul 04 21:49:25 2011
    Errors in file /ebiz/oracle/diag/rdbms/vision/VISION/trace/VISION_ora_330.trc  (incident=16206):
    +ORA-00600: internal error code, arguments: [kzxcInitLoadLocal-7], [64131], [ORA-64131: XMLIndex Metadata: failure during the looking up of the dictionary+
    +ORA-30966: error detected in the XML Index layer+
    +ORA-31011: XML parsing failed+
    for ORA-30966 i found one metalink document
    Bug 9496480: XDB VIEWS INVALIDATED AFTER RUNNING CATUPGRD.SQL UPGRADING 9.2.0.8.0 TO 11.2.0.1I am not able to understand this bug detail, can some one help me to understand this BUG 9496480. Is it possible to run autoconfig ?RegardsHAMEED                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    This the result shows that ORACLE REAL APPLICATION CLUSTERS status is "INVALID" but we dont have any RAC configuration.!!!
    SQL> select COMP_NAME,VERSION,STATUS from dba_registry;
    COMP_NAME VERSION STATUS
    Oracle Database Catalog Views 11.2.0.1.0 VALID
    Oracle Database Packages and Types 11.2.0.1.0 VALID
    Oracle Real Application Clusters                11.2.0.1.0          INVALID
    JServer JAVA Virtual Machine 11.2.0.1.0 VALID
    Oracle XDK 11.2.0.1.0 VALID
    Oracle Database Java Packages 11.2.0.1.0 VALID
    Oracle Multimedia 11.2.0.1.0 VALID
    Spatial 11.2.0.1.0 VALID
    Oracle Text 11.2.0.1.0 VALID
    OLAP Analytic Workspace 11.2.0.1.0 VALID
    Oracle OLAP API 11.2.0.1.0 VALID
    OLAP Catalog 11.2.0.1.0 VALID
    Oracle Data Mining 11.2.0.1.0 VALID
    Oracle XML Database 11.2.0.1.0 VALID
    14 rows selected.Kindly let me know what is the otherway !
    Regards
    HAMEED

  • ORA-42009: error occurred while synchronizing the redefinition

    Hi ,
    While doing a online table redef , I am getting below error . Could you please help me here .
    Done with can_redef_table with rowid,start_redef_table,copy_table_dependents and errored out on below statement
    exec dbms_redefinition.sync_interim_table('MYSCHEMA', 'ORIGINALTAB', 'INTERIMTAB');
    ORA-42009: error occurred while synchronizing the redefinition
    ORA-12008: error in materialized view refresh path
    ORA-04098: trigger MYSCHEMA.TMP$$_ORIGINALTAB_HISTOR0' is invalid and failed re-validation
    ORA-06512: at "SYS.DBMS_REDEFINITION", line 119
    ORA-06512: at "SYS.DBMS_REDEFINITION", line 1753
    ORA-06512: at line 1
    select * from v$version
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    PL/SQL Release 11.2.0.2.0 - Production
    CORE 11.2.0.2.0 Production
    TNS for Linux: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production
    Thanks ,
    Mahesh

    Adding to above .
    I am Redefining a normal table to a partitioned table . We have a index in this original table . Do we need to follow the below in this scenrio or oracle will take care using copy_table_deendencies .
    --from doc
    4.Manually create any local indexes on the interim table.
    CREATE INDEX int_sales_index ON int_salestable
    (s_saledate, s_productid, s_custid)
    TABLESPACE tbs_low_freq;
    I even tried redefining a normal table with no dependencies to a partitioned table and found no errors like above .
    Does this mean that we have to create dependecis manually while redef table to partition as below
    http://www.oracle-base.com/articles/misc/PartitioningAnExistingTable.php
    --it says
    Create Constraints and Indexes
    If there is delay between the completion of the previous operation and moving on to finish the redefinition, it may be sensible to resynchronize the interim table before building any constraints and indexes. The resynchronization of the interim table is initiated using the following command.
    -- Optionally synchronize new table with interim data before index creation
    BEGIN
    dbms_redefinition.sync_interim_table(
    uname => USER,
    orig_table => 'BIG_TABLE',
    int_table => 'BIG_TABLE2');
    END;
    /The constraints and indexes from the original table must be applied to interim table using alternate names to prevent errors. The indexes should be created with the appropriate partitioning scheme to suit their purpose.
    -- Add new keys, FKs and triggers.
    ALTER TABLE big_table2 ADD (
    CONSTRAINT big_table_pk2 PRIMARY KEY (id)
    CREATE INDEX bita_created_date_i2 ON big_table2(created_date) LOCAL;
    CREATE INDEX bita_look_fk_i2 ON big_table2(lookup_id) LOCAL;
    ALTER TABLE big_table2 ADD (
    CONSTRAINT bita_look_fk2
    FOREIGN KEY (lookup_id)
    REFERENCES lookup(id)
    -- Gather statistics on the new table.
    EXEC DBMS_STATS.gather_table_stats(USER, 'BIG_TABLE2', cascade => TRUE);
    Thanks ,
    Mahesh

Maybe you are looking for

  • I'm so Frustrated!!!

    Back story ... We live in a house with a barn at the end of the garden.  We have converted the barn and are moving into it for the next year (or maybe for ever) whilst we gut and renovate the house.  My first book has recently been published and I bo

  • Inform Customers about debts due without a dunning procedure

    Hi, I am looking for a way to inform my customers for due futures payments without starting a dunning procedure or to programm a report. For example: A payment is due within 60 days and after 30 days I would like to send those customers a kindly remi

  • Cannot find Pages files on my iPhone's iCloud although they are available in the other devices?

    I bought iPhone 6 plus few days back and after doing all the required steps including signing in iCloud account and so on, everything is working fine but just pages files, which I have stored in iCloud before and available in the other devices such a

  • Time as a key figure

    Hi, Can you please let me know the possible ways in which we can define time as a key figure, instead of a chaarcteristic ? My requriment is to have a start and end time, and want to calulate the difference between them as the effort. Please note tha

  • IOS 6 Buggy and Slow hot to downgrade.

    i recently updated to IOS6 the yesterday and it it running really slow on my iphone 4s also the phone is hot when running apps. maps is not working properly and text messages are failing and talking a long time to send/recive.icalled apple to be told