ORA-01850 Hour must be 0 and 23

Hi all,
I got the following procedure which in PL/SQL. I hv compiled with no problem in sql*plus. However, when I apply in Oracle apps. and attached with the value set for date parameter ( fdate & tdate ) I got the error message of ORA-01850 hour must be 0 and 23.
Here is, my procedure look like :-
CREATE OR REPLACE PROCEDURE AIC_PROC_AR_INTERFACE(ERRBUF OUT VARCHAR2,
RETCODE OUT NUMBER,
                              FDATE DATE,
                              TDATE DATE) is
VAR_BUF VARCHAR2(1000);
Rcount NUMBER := 0;
CURSOR C1 IS
SELECT AID.INVOICENO RINVOICENO,
AID.PACKAGE RPACKAGE,
     SUM(AID.ASSY_AMOUNT) RAMT,
     AID.BILLING_DATE RDATE
FROM AIC_INVOICE_DETAIL@WSMLINK AID
WHERE AID.BILLING_DATE >= to_date(FDATE || '00:00:00', 'DD-MON-YYYY HH24:MI:SS') AND AID.BILLING_DATE <= TO_DATE(TDATE || '23:59:59', 'DD-MON-YYYY HH24:MI:SS')
AND AID.INVOICENO LIKE 'NS%'
GROUP BY AID.INVOICENO, AID.PACKAGE, AID.BILLING_DATE;
REC1 C1%ROWTYPE;
BEGIN
FOR REC1 IN C1 LOOP
Begin
     SELECT COUNT(1) INTO rcount
FROM AIC_INVOICE_STATUS
WHERE INVOICENO = REC1.RINVOICENO;
IF rcount = 0 then
     INSERT INTO AIC_INVOICE_STATUS VALUES ( REC1.RINVOICENO,'Y');
COMMIT;
END IF;
End;
END LOOP;
RETURN;
END;
Thanks
rgds
Lim

tdate and fdate are specified as dates:
CREATE OR REPLACE PROCEDURE AIC_PROC_AR_INTERFACE(ERRBUF OUT VARCHAR2,
RETCODE OUT NUMBER,
FDATE DATE,
TDATE DATE) iswhen you call your procedure convert your character strings into dates like this:
AIC_PROC_AR_INTERFACE (p_errbuf, p_retcode,
                       to_date('15-OCT-2003', 'DD-MON-YYYY'),
                       to_date('15-OCT-2003', 'DD-MON-YYYY'));

Similar Messages

  • ORA-01850: hour must be between 0 and 23

    Hi techies,
    We have created a procedure for our daily report.its running fine for two location.when we run for a location we end up with this error.our current NLS_DATE_FORMAT is HH24:MI:SS.but its running successfully when we set nls_date_format='DD-MON-YY'.whereas other two (Which is same except a table from where it fetch data thru dblink) running properly with NLS_DATE_FORMAT is HH24:MI:SS.
    ORA-01850: hour must be between 0 and 23
    ORA-02063: preceding line from DW_TO_DIRC.NACALOGISTICS.COM
    ORA-06512: at "OTSLGWEB.DAILY_JOB_PROFIT_REPORT_USA", line 89
    ORA-06512: at line 1

    Hi Techie,
    Apologies for my vague post.
    Here it would be clear.
    My database NLS_DATE_FORMAT='HH24:MI:SS'
    We have three procedure one is for AUSTRALIA,NEW ZEALAND and USA for daily report.all three are SAME CODE except a view whice is used inside the procedure from where these procedures get data thru dblink and create table in local database.
    when i execute procdure for AUSTRALI AND NEW ZEALAND it was successfull whereas when i execute for USA it was failing with the error i above mentioned.
    if I set
    alter session set nls_date_format='DD-MON-YY';
    and execute the USA Procedure it was successfully completing.
    My question here is..
    1.What was the real cause of this error?
    2.if NLS settings are wrong.how the same code of AUSTRALIA AND NEW ZEALAND is successfull?
    3.Can we add 'alter session set NLS_DATE_FORMAT='DD-MON-YY' inside the procedure? (We do not have approval to change this in DB level so we intend to add it in session level)
    4.is it caused due to data?
    Cheers
    Sameer Ameen

  • ORA-1850: hor must be between 0 and 23 error

    Hi All
    i have the following table for creating and inserting i included only two fileds as these are the fields that i'm getting errors on.
    WITH     sample_data     AS
         SELECT     '50709' AS start_date, '2400' AS start_time  FROM dual     UNION ALL
         SELECT     '082510',              '0000'                  FROM dual
    SELECT       *
    FROM       sample_data
    ;DATA:
    START_DATE     START_TIME
    50709                        2400
    082510                        0000And now when i run the query against the table:
    SELECT   direction, car_count_pos, truck_count_pos,
             (car_count_pos + 2 * (truck_count_pos)) AS adjusted, car_count_neg,
             truck_count_neg,
             (car_count_neg + 2 * (truck_count_neg)) AS adjusted_neg,
             TO_DATE (start_date, 'MMDDYY') AS start_date,
             TO_DATE (end_date, 'MMDDYY') AS end_date,
             ROUND (TO_CHAR (TO_DATE (LPAD (start_time, 4, '0'), 'HH24MI'),
                             'HH24.MI'
                   ) AS start_time,
             start_time,
             (TO_DATE (end_date, 'MMDDYY') - TO_DATE (start_date, 'MMDDYY')
             ) AS days
        FROM (SELECT   (CASE
                           WHEN t1.direction = '1'
                              THEN (  COUNT (t1.bin_1_data)
                                    + COUNT (t1.bin_2_data)
                                    + COUNT (t1.bin_3_data) * 0.981 * 1.019
                           ELSE NULL
                        END
                       ) AS car_count_pos,
                       t1.direction,
                       (CASE
                           WHEN t1.direction = '1'
                              THEN (  COUNT (t1.bin_4_data)
                                    + COUNT (t1.bin_5_data)
                                    + COUNT (t1.bin_6_data)
                                    + COUNT (t1.bin_7_data)
                                    + COUNT (t1.bin_8_data)
                                    + COUNT (t1.bin_9_data)
                                    + COUNT (t1.bin_10_data)
                                    + COUNT (t1.bin_11_data)
                                    + COUNT (t1.bin_12_data)
                                    + COUNT (t1.bin_13_data)
                                    + COUNT (t1.bin_14_data)
                                    + COUNT (t1.bin_15_data) * 0.981 * 1.019
                           ELSE NULL
                        END
                       ) AS truck_count_pos,
                       (CASE
                           WHEN t1.direction = '3'
                              THEN (  COUNT (t1.bin_1_data)
                                    + COUNT (t1.bin_2_data)
                                    + COUNT (t1.bin_3_data) * 0.981 * 1.019
                           ELSE NULL
                        END
                       ) AS car_count_neg,
                       (CASE
                           WHEN t1.direction = '3'
                              THEN (  COUNT (t1.bin_4_data)
                                    + COUNT (t1.bin_5_data)
                                    + COUNT (t1.bin_6_data)
                                    + COUNT (t1.bin_7_data)
                                    + COUNT (t1.bin_8_data)
                                    + COUNT (t1.bin_9_data)
                                    + COUNT (t1.bin_10_data)
                                    + COUNT (t1.bin_11_data)
                                    + COUNT (t1.bin_12_data)
                                    + COUNT (t1.bin_13_data)
                                    + COUNT (t1.bin_14_data)
                                    + COUNT (t1.bin_15_data) * 0.981 * 1.019
                           ELSE NULL
                        END
                       ) AS truck_count_neg,
                       t2.start_date, t2.start_time, t2.end_date, t2.end_time
                  FROM bin_data t1, traffic_sample t2
                 WHERE t1.traffic_sample_id = t2.traffic_sample_id
              GROUP BY t1.direction,
                       t2.start_date,
                       t2.start_time,
                       t2.end_date,
                       t2.end_time)
       WHERE direction IN ('1', '3')
    GROUP BY TO_DATE (start_date, 'MMDDYY'),
             direction,
             car_count_pos,
             truck_count_pos,
             (car_count_pos + 2 * (truck_count_pos)),
             truck_count_neg,
             (car_count_neg + 2 * (truck_count_neg)),
             TO_DATE (end_date, 'MMDDYY'),
             ROUND (TO_CHAR (TO_DATE (LPAD (start_time, 4, '0'), 'HH24MI'),
                             'HH24.MI'
             start_time,
             car_count_negI'm getting the error
    ORA-1850: Hour must be between 0 and 23
    But as you see there is a value 2400 in the table is there any way to get around this? please need help.
    Thanks
    Edited by: thinkingeye on Aug 26, 2010 8:42 AM

    Thanks AP but i came up with something different which i guess sserved the same purpose i used the DECODE fucntion in the INNER query.
    SELECT   direction, car_count_pos, truck_count_pos,
             (car_count_pos + 2 * (truck_count_pos)) AS adjusted, car_count_neg,
             truck_count_neg,
             (car_count_neg + 2 * (truck_count_neg)) AS adjusted_neg,
             TO_DATE (start_date, 'MMDDYY') AS start_date,
             TO_DATE (end_date, 'MMDDYY') AS end_date,
             ROUND (TO_CHAR (TO_DATE (LPAD (start_time, 4, '0'), 'HH24MI'),
                             'HH24.MI'
                   ) AS start_time,
                   ROUND (TO_CHAR (TO_DATE (LPAD (end_time, 4, '0'), 'HH24MI'),
                             'HH24.MI'
                   ) AS end_time,
             start_time,
             (TO_DATE (end_date, 'MMDDYY') - TO_DATE (start_date, 'MMDDYY')
             ) AS days,
             CITY,COUNTY,LOCATION,ROUTE_NBR,ROUTE_TYPE
        FROM (SELECT   (CASE
                           WHEN t1.direction = '1'
                              THEN (  COUNT (t1.bin_1_data)
                                    + COUNT (t1.bin_2_data)
                                    + COUNT (t1.bin_3_data) * 0.981 * 1.019
                           ELSE NULL
                        END
                       ) AS car_count_pos,
                       t1.direction,
                       (CASE
                           WHEN t1.direction = '1'
                              THEN (  COUNT (t1.bin_4_data)
                                    + COUNT (t1.bin_5_data)
                                    + COUNT (t1.bin_6_data)
                                    + COUNT (t1.bin_7_data)
                                    + COUNT (t1.bin_8_data)
                                    + COUNT (t1.bin_9_data)
                                    + COUNT (t1.bin_10_data)
                                    + COUNT (t1.bin_11_data)
                                    + COUNT (t1.bin_12_data)
                                    + COUNT (t1.bin_13_data)
                                    + COUNT (t1.bin_14_data)
                                    + COUNT (t1.bin_15_data) * 0.981 * 1.019
                           ELSE NULL
                        END
                       ) AS truck_count_pos,
                       (CASE
                           WHEN t1.direction = '3'
                              THEN (  COUNT (t1.bin_1_data)
                                    + COUNT (t1.bin_2_data)
                                    + COUNT (t1.bin_3_data) * 0.981 * 1.019
                           ELSE NULL
                        END
                       ) AS car_count_neg,
                       (CASE
                           WHEN t1.direction = '3'
                              THEN (  COUNT (t1.bin_4_data)
                                    + COUNT (t1.bin_5_data)
                                    + COUNT (t1.bin_6_data)
                                    + COUNT (t1.bin_7_data)
                                    + COUNT (t1.bin_8_data)
                                    + COUNT (t1.bin_9_data)
                                    + COUNT (t1.bin_10_data)
                                    + COUNT (t1.bin_11_data)
                                    + COUNT (t1.bin_12_data)
                                    + COUNT (t1.bin_13_data)
                                    + COUNT (t1.bin_14_data)
                                    + COUNT (t1.bin_15_data) * 0.981 * 1.019
                           ELSE NULL
                        END
                       ) AS truck_count_neg,
                       t2.start_date, t2.start_time, t2.end_date,*decode(t2.END_TIME,2400,'2359',t2.end_time) as end_time*,t3.CITY, t3.COUNTY,t3.LOCATION,t3.ROUTE_NBR, t3.ROUTE_TYPE
                  FROM bin_data t1, traffic_sample t2,location_details t3
                 WHERE t1.traffic_sample_id = t2.traffic_sample_id
                 and t2.TRAFFIC_SAMPLE_ID=t3.TRAFFIC_SAMPLE_ID
              GROUP BY t1.direction,
                       t2.start_date,
                       t2.start_time,
                       t2.end_date,
                       t2.end_time,
                       t3.CITY, t3.COUNTY,t3.LOCATION,t3.ROUTE_NBR, t3.ROUTE_TYPE)
       WHERE direction IN ('1', '3')
    GROUP BY TO_DATE (start_date, 'MMDDYY'),
             direction,
             car_count_pos,
             truck_count_pos,
             (car_count_pos + 2 * (truck_count_pos)),
             truck_count_neg,
             (car_count_neg + 2 * (truck_count_neg)),
             TO_DATE (end_date, 'MMDDYY'),
             ROUND (TO_CHAR (TO_DATE (LPAD (start_time, 4, '0'), 'HH24MI'),
                             'HH24.MI'
             start_time,
             car_count_neg,
             end_time,
             CITY,COUNTY,LOCATION,ROUTE_NBR,ROUTE_TYPE

  • Hour must be between 1 and 12

    UPDATE ATTENDENCE SET OUTTIME=TO_TIMESTAMP('" + attendence.getLeaveTime() + "','HH:MI AM') WHERE EMPID='" + attendence.getEmpID() + "' AND ATTENDENCEDATE=to_date('" + attendence.getDate() + "','YYYY-MM-DD')
    attendence.getLeaveTime's return type is Time Stamp. I got error "hour must be between 1 and 12". I passed time stamp like this. setLeaveTime(new Timestamp(inTime.getTime()))
    Edited by: 993001 on Mar 24, 2013 9:47 AM

    CREATE TABLE "ELAMOR"."ATTENDENCE"
    (     "ATTENDENCEID" VARCHAR2(20 BYTE) NOT NULL ENABLE,
         "INTIME" TIMESTAMP (6) NOT NULL ENABLE,
         "OUTTIME" TIMESTAMP (6) NOT NULL ENABLE,
         "EMPID" VARCHAR2(20 BYTE) NOT NULL ENABLE,
         "ATTENDENCEDATE" DATE,
         CONSTRAINT "ATTENDENCE_PK" PRIMARY KEY ("ATTENDENCEID")
    USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
    TABLESPACE "USERS" ENABLE,
         CONSTRAINT "ATTENDENCE_EMPLOYEE_FK1" FOREIGN KEY ("EMPID")
         REFERENCES "ELAMOR"."EMPLOYEE" ("EMPID") ON DELETE CASCADE ENABLE
    ) SEGMENT CREATION IMMEDIATE
    PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
    TABLESPACE "USERS" ;

  • ORA-23420: interval must evaluate to a time in the future

    Hi to All,
    While creating matrelized view im facing this error.Can any one help me on this.
    ORA-23420: interval must evaluate to a time in the future
    ORA-06512: at "SYS.DBMS_JOB", line 57
    ORA-06512: at "SYS.DBMS_JOB", line 134
    ORA-06512: at "SYS.DBMS_IREFRESH", line 186
    ORA-06512: at "SYS.DBMS_IREFRESH", line 369
    ORA-06512: at "SYS.DBMS_REFRESH", line 88
    ORA-06512: at "SYS.DBMS_REFRESH", line 62
    ORA-06512: at "SYS.DBMS_ISNAPSHOT", line 76
    ORA-06512: at line 1
    Thanks

    You NEXT clause is seriously dependent on the date and time you run the create statement. For me, you want the next run of the job to start almost 15 hours ago.
    SQL> ALTER SESSION SET nls_date_format = 'dd-mon-yy hh24:mi:ss';
    Session altered.
    SQL> SELECT TO_DATE('12-May-2008','dd-mon-yyyy') startdt,
      2         TRUNC(sysdate) - TO_NUMBER(TO_CHAR(sysdate - 1, 'd')) + 7 next_dt,
      3         sysdate now
      4  FROM dual;
    STARTDT            NEXT_DT            NOW
    12-may-08 00:00:00 11-may-08 00:00:00 11-may-08 14:57:32Since I'm not sure when exactly you want to run this next time, you need to play wth your formula.
    John

  • Time Machine spends hours partially backing up and then fails with "Time Machine couldn't complete the backup due to a network problem."  Tried suggestions I've seen on the forum.

    Time Machine spends hours partially backing up and then fails with "Time Machine couldn't complete the backup due to a network problem."  I've tried various suggestions I've seen on the forum but nothing has worked.  TIme Machine worked fine for the last two years and just suddenly started having this problem every time.  The only thing that was a little different is that the computer was off for a week while on vacation and then I added a large amount (20 GB) of photos. Now the requested backup size is 82GB, which is large, and process proceeds very slowly for 2-3 hours before failing with the message mentioned.  I have more than enough available backup storage space for it.  Before failing, Time Machine has backed up no more than 12GB or so of the backup.  It fails during different files each time.
    I've turned off the computer sleep feature, and I've checked that the NAS is set to never automatically power down. I normally backup over Wi-Fi, but I've also tried connecting to Ethernet and it still has the same problem.  It's odd because I also have a MacBook Pro that is still backing up fine to the same NAS using the MacBook's Time Machine. 
    I am using an iMac with OS X 10.6.8 and an Iomega StorCenter ix2-200 NAS.
    I have system logs that I can share if helpful.  The logged messages vary a bit from run to run, but here are some messages that I've been seeing:
    I always get this message near the beginning of the backup:
    Event store UUIDs don't match for volume: Macintosh HD
    I've gotten this messsage a number of times:
    Bulk setting Spotlight attributes failed.
    One Day
    Stopping backupd to allow ejection of backup destination disk!
    Another day
    1/7/12 10:44:20 AM
    mDNSResponder[18]
    PenaltyTimeForServer: PenaltyTime negative -112916, (server penaltyTime -1132397006, timenow -1132284090) resetting the penalty
    1/7/12 10:46:37 AM
    kernel
    ASP_TCP Disconnect: triggering reconnect by bumping reconnTrigger from curr value 0 on so 0x1106be94
    1/7/12 10:46:37 AM
    kernel
    AFP_VFS afpfs_DoReconnect started /Volumes/TimeMachine prevTrigger 0 currTrigger 1
    Another Day
    1/6/12 8:03:22 AM
    Google Chrome[164]
    Cannot find function pointer CMPluginInFactory for factory 3487BB5A-3E66-11D5-A64E-003065B300BC in CFBundle/CFPlugIn 0x16f99e20 </Users/smarmer/Library/Contextual Menu Items/Google Notifier Quick Add CM Plugin.plugin> (not loaded)
    1/6/12 8:04:02 AM
    com.apple.backupd[193]
    Copied 7.5 GB of 67.0 GB, 8866 of 8866 items
    1/6/12 8:06:58 AM
    /System/Library/CoreServices/CCacheServer.app/Contents/MacOS/CCacheServer[1013]
    No valid tickets, timing out
    1/6/12 8:29:44 AM
    mDNSResponder[19]
    PenaltyTimeForServer: PenaltyTime negative -148702, (server penaltyTime 2056822773, timenow 2056971475) resetting the penalty
    1/6/12 8:59:22 AM
    kernel
    ASP_TCP Disconnect: triggering reconnect by bumping reconnTrigger from curr value 0 on so 0xa5ac380
    1/6/12 8:59:22 AM
    kernel
    AFP_VFS afpfs_DoReconnect started /Volumes/TimeMachine prevTrigger 0 currTrigger 1
    1/6/12 8:59:22 AM
    kernel
    AFP_VFS afpfs_DoReconnect:  doing reconnect on /Volumes/TimeMachine
    1/6/12 8:59:22 AM
    kernel
    AFP_VFS afpfs_DoReconnect:  soft mounted and hidden volume so do not notify KEA for /Volumes/TimeMachine
    1/6/12 8:59:22 AM
    kernel
    AFP_VFS afpfs_DoReconnect:  Max reconnect time: 30 secs, Connect timeout: 15 secs for /Volumes/TimeMachine
    1/6/12 8:59:22 AM
    kernel
    AFP_VFS afpfs_DoReconnect:  connect to the server /Volumes/TimeMachine
    1/6/12 8:59:22 AM
    kernel
    ASP_TCP asp_SetTCPQoS:  sock_settclassopt got error 57
    Another day
    1/5/12 3:48:55 PM
    mdworker[2128]
    CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary.
    1/5/12 4:24:54 PM
    mDNSResponder[19]
    PenaltyTimeForServer: PenaltyTime negative -42698, (server penaltyTime 1148718961, timenow 1148761659) resetting the penalty
    1/5/12 4:29:58 PM
    com.apple.backupd[2074]
    Copied 586.4 MB of 67.0 GB, 9891 of 9891 items
    1/5/12 4:39:00 PM
    kernel
    ASP_TCP Disconnect: triggering reconnect by bumping reconnTrigger from curr value 0 on so 0xa1c0380

    bokon0n wrote:
    1/11/12 8:53:30 AM
    com.apple.backupd[1169]
    Warning: Destination /Volumes/TimeMachine does not support TM Lock Stealing
    1/11/12 8:53:30 AM
    com.apple.backupd[1169]
    Warning: Destination /Volumes/TimeMachine does not support Server Reply Cache
    Those indicate that your NAS is not fully compatible with Snow Leopard. 
    1/11/12 8:53:35 AM
    kernel
    jnl: disk2s2: replay_journal: from: 67182592 to: 78680064 (joffset 0xa7b8000)
    1/11/12 8:53:39 AM
    kernel
    jnl: disk2s2: examining extra transactions starting @ 78680064 / 0x4b09000
    1/11/12 8:53:39 AM
    kernel
    jnl: disk2s2: Extra txn replay stopped @ 79056896 / 0x4b65000
    1/11/12 8:53:49 AM
    kernel
    jnl: disk2s2: journal replay done.
    1/11/12 8:53:49 AM
    fseventsd[41]
    event logs in /Volumes/Time Machine/.fseventsd out of sync with volume.  destroying old logs. (253512 14 253512)
    1/11/12 8:53:50 AM
    kernel
    hfs: Removed 1 orphaned / unlinked files and 0 directories
    That looks like a problem was found with the file system (data) on the TM disk.  I don't know the details, but OSX tried to recover it from the journal, and found extra data on the drive.    Likely a result of the incompatibility mentioned above.
    1/11/12 9:47:40 AM
    com.apple.backupd[1169]
    Bulk setting Spotlight attributes failed.
    That's a problem writing to the NAS drive.
    But the backup continued after all this.
    1/11/12 1:25:07 PM
    kernel
    ASP_TCP Disconnect: triggering reconnect by bumping reconnTrigger from curr value 0 on so 0x9d00b44
    Something caused a disconnect.  Can't tell from the log what it was.
    I doubt it's a problem with something in OSX being damaged or corrupted, but reinstalling OSX isn't a major hassle, so might be worth a try.
    To be incompatible with Snow Leopard, this NAS must be at least a couple of years old.  It may be beginning to fail.
    Contact the maker.  See if there's an update to make it compatible with Snow Leopard.  If so, that might fix it.
    If not, or if that doesn't fix it, see if they have any diagnostics that will shed any light.

  • ITunes takes hours to import CDs and doesn't playback properly

    I recently bought four CDs (all by the same artist) and only one of the four will import to iTunes.  The first CD imported in about five minutes, and there were no problems.
    Despite iTunes still recognising the track titles and other info, the other three CDs took literally hours each to import just the first track, and when I tried to play them back, the music was practically inaudible because there was some kind of strange white noise over the top.
    I have checked the discs and they're all clean, and none of them are pirated either, so I'm really confused as to what could be causing the problem. I couldn't see anybody else having this exact problem so I'm not entirely sure what to do about it! Any help would be really appreciated!

    First of all - songs do go to the Music app for playing on the iPad - not iTunes. Look in the Music app. If it's not there - this may help ....
    When you sync the iPad with iTunes - you have to select the music to sync within the Music Tab of iTunes. the Sync Music Heading must be checked and the albums, artists, playlists, etc must be selected as well in order to sync.
    These kb articles should be of some help. It works the same way on the iPad.
    Syncing music to iPod or iPhone
    iOS: Syncing with iTunes

  • ORA-10827: database must be opened with MIGRATE option

    Hi,
    We are trying to migrate an Oracle 8.1.7 database to an Oracle 9i(9.2) database. I moved all the database files to the appr folder and I created a new instance using:
    oradim -new -sid PROD -intpwd Oracle -startmode a -pfile C:\oracle\OraDb\Neuropace\initPROD.ORA.
    I checked the alter log file and I get the following error:
    ORA-10827: database must be opened with MIGRATE option.
    How should one go about migrating a database(different versions). I went ahead with the migration. I opened the database using
    alter database open resetlogs migrate.
    But when i log into the database, I get an internal code error.
    Any pointers?.

    You must not open normally your database after an upgrade, in short the method is
    1) startup migrate
    2) run the upgrade script (which one depends on your old database version)
    For step-by-step instructions see
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96530/upgrade.htm#1009200
    'alter database open resetlogs migrate' is only applicable to upgrades from version 7 to 9.2, hopefully your database is not corrupted now.

  • ORA-39700: database must be opened with UPGRADE option

    Dear buddies,
    I just opened my database : startup upgrade and it started up.
    But couldn't perform a backup.
    Should I be running pupbld?
    Could this problem be due to some opatch?
    Here is a part of my alert log:
    Thread 1 opened at log sequence 1050
    Current log# 3 seq# 1050 mem# 0: D:\ORACLE\DATA\MIG\LOG_03.DBF
    Successful open of redo thread 1
    Wed Aug 11 13:35:15 2010
    MTTR advisory is disabled because either FAST_START_IO_TARGET or LOG_CHECKPOINT_INTERVAL is set
    Wed Aug 11 13:35:15 2010
    SMON: enabling cache recovery
    Wed Aug 11 13:35:16 2010
    Errors in file d:\oracle\admin\mig\udump\mig_ora_1564.trc:
    ORA-00704: bootstrap process failure
    ORA-39700: database must be opened with UPGRADE option
    Wed Aug 11 13:35:16 2010
    Error 704 happened during db open, shutting down database
    USER: terminating instance due to error 704
    Wed Aug 11 13:35:16 2010
    Errors in file d:\oracle\admin\mig\bdump\mig_pmon_3088.trc:
    ORA-00704: bootstrap process failure
    Wed Aug 11 13:35:16 2010
    Errors in file d:\oracle\admin\mig\bdump\mig_reco_1868.trc:
    ORA-00704: bootstrap process failure
    Wed Aug 11 13:35:16 2010
    Errors in file d:\oracle\admin\mig\bdump\mig_psp0_2624.trc:
    ORA-00704: bootstrap process failure
    Wed Aug 11 13:35:16 2010
    Errors in file d:\oracle\admin\mig\bdump\mig_mman_3312.trc:
    ORA-00704: bootstrap process failure
    Wed Aug 11 13:35:16 2010
    Errors in file d:\oracle\admin\mig\bdump\mig_dbw0_2304.trc:
    ORA-00704: bootstrap process failure
    Wed Aug 11 13:35:16 2010
    Errors in file d:\oracle\admin\mig\bdump\mig_lgwr_552.trc:
    ORA-00704: bootstrap process failure
    Wed Aug 11 13:35:16 2010
    Errors in file d:\oracle\admin\mig\bdump\mig_ckpt_2300.trc:
    ORA-00704: bootstrap process failure
    Wed Aug 11 13:35:17 2010
    Errors in file d:\oracle\admin\mig\bdump\mig_smon_2136.trc:
    ORA-00704: bootstrap process failure
    Instance terminated by USER, pid = 1564
    ORA-1092 signalled during: ALTER DATABASE OPEN...
    Please comment.
    Thanks.
    Nith

    I just opened my database : startup upgrade and it started up.
    But couldn't perform a backup.As you said you have started the DB in upgrade mode and trying to take the backup of database. I think you can't take the backup of DB in upgrade mode.Please shut it down first and start up it in normal mode and do the backup.
    Which backup strategy you are following?
    What you exactly want to do upgrade the database or trying to take a bcakup?

  • Getting ORA-01849 hours between 1 & 12

    Hi,
    Hi
    I have a table - audit with the following fields
    org_id number,
    grn_n number,
    ed_eff_m timestamp(6),
    data
    org_grp_i grn_n ed_eff_m
    3 1 07/21/2006 12:21:16 Am
    I want to update ed_eff_m with 07/21/2006 00:00:00
    for the above.
    But when i update the record the record, Iam getting the
    ORA-01849 hours between 1 & 12
    please suggest this update stmt is correct
    update audit ag
    set ed_eff_m= to_date(to_date('07/21/2006 00:00:00','mm/dd/yyyy hh:mi:ss')
    WHERE ag.ORG_GRP_I = 3
    AND ag.GRN_n =1
    Thanks in advance

    If all that is needed is to clear the hour part, you may try this too:
    UPDATE audit_grant_vesting_schedule ag
    SET ag.ed_eff_m = TRUNC(ag.ed_eff_m)
    WHERE ag.ORG_GRP_I = 3
    AND ag.GRN_n = 5633486;
    Hope this helps.

  • ORA-20001: Query must begin with SELECT or WITH

    Hi,
    On a page we have a hidden item :P3_SQL in which we save the dynamic sql query.
    We have a report region of SQL QUERY type whose source is this item :P3_SQL.
    This used to work fine in apex 3.*. We have upgraded our application to 4.0.1 and now we get this error.
    ORA-20001: Query must begin with SELECT or WITH
    I have a workaround for this, but just wanted to make sure somebody recognizes this as a bug in our latest apex version.
    Thanks
    Knut

    Hello Knut,
    I'm not sure if you encountered a bug or an improved validation of your query. If you had just ":P3_SQL" as source, this obviously is neither a correct query nor is it a function returning a query. I guess your workaround is actually encapsulating ":P3_SQL" in a block that returns the value. This is the intended way, not a bug. You just were lucky it was not validated and worked in previous versions.
    If my assumption was wrong, please post both working and non-working solution and a more precise description on when this error actually occurs.
    Thanks,
    Udo

  • ORA-25402: transaction must roll back

    I found this problem.ORA-25402: transaction must roll back
    Please introduce , how resolve problem?
    what view ? I'll able check for this problem.

    If you had a network problem it is unlikely that the client would still be connected and able to issue a rollback. I have seen this message but I cannot remember what the situation is when it occurs. What Oracle wants is for the client to issue an explicit rollback statement.
    There is a bug that produces this error unfortunately the OP did not include their Oracle version. The bug could be in all versions from 8 - 9.2.0.3 but is only confirmed to be in 9.2.0.3 where after Transaction Failover a commit or rollback incorrectly produces this error. According to the note a Select should produce this error. This would need to be a RAC system that uses transaction failover for this to apply: Note:2652886.8 Also TAF problem: Note:2652845.8
    But it seems to me you can get this error on a distributed transaction. Oracle wants the client to issue an explicit rollback so that all parties to the distributed transaction rollback. If the application terminates due to the error then RECO will rollback the transaction. If the application issues the rollback it can then continue with additional (or retry) distributed queries.
    HTH -- Mark D Powell --

  • Get number of hours between two dates and two hours using factory calendar

    Hello all,
    I have the following requirement: I need to calculate the number of hours between two dates and two hours (start date- finish date and start hour-finish hour) or timestamps using a factory calendar. I must program it on CRM environment.
    Does anybody know a function module that makes it?
    Thanks in advance.
    Carmen

    Please check function module DURATION_DETERMINE.
    - April King

  • I have invested over 6 hours on the phone and with my Verizon Authorized Rep. trying to get the Bonus 1 Gig of Data for myself on the More Plus Plan.  Cut and dry situation but today was told I have to wait about 7 days until they can get me "an answer" o

    Basic question is why are any of the minimun 8 Verizon reps that I or my Authorized Verizon Rep (at Costco) spoke with unable to resolve a very simple, straightforward issue that should have been resolved in 15 minutes max.  Instead I (a 14 year verizon customer) have been given the runaround and have invested over 6 1/2 hours in trying to get someone to acknowledge that I an owed 1 GB of Bonus Data on my new phone on our new plan.  My wife got hers.  I am just venting now as I intend on returning the phone tomorrow (I got it Thursday) and turning around and getting an identical new phone.  This was suggested to me as an option by both the Rep who sold my wife her phone and the rep who sold me mine as that way I would not have to contiinue dealing with this ridiculous state of affairs (they indicated that my Free gig request was being sent to another department and that it would be about 7 days befor they get an answer).   Just Venting  .  Thanks

    No I was considerate, etc.  The root of the problem stems from the fact that when I went to get my new phone I asked the salesperson if I should sign up for the new plan or if my wife should do it the following day when she buys her new phone (also at a Costco but in a different state).  The salesperson said it made absolutely no difference so I elected to have my wife do it.  When she did the next day she got her free Gig and her salesperson told her that I need to call in to make sure I get the gig that I am entitled to as well.  That's when the runaround started with the first call  consisting of me basically advising Verizon of what the promotion consists of, etc.since they insisted that it was one gig per Plan, that there were no exceptions to this, etc.  As mentioned they wanted to know where I got the information that it was one gig per qualifying phone. (Both the rep and her supervisor obviously were not aware of how Verizons heavily touted More Everything plan works). They told me finally that I needed to go back to the Costco where I got the phone.  I did.  The salesperson apologized numerous times to me for advising me that it made no difference who signs up for the plan or when.  She then spent over two hours on the phone (with me next to her) attempting to explain to Verizon what happened, how it was her fault, and how I was clearly entitled to the Bonus Gig since I also had a qualifying phone.  Finally she was transferred to someone who authorized the Bonus Gig (since I was clearly entitled to it) and who indicated that it might take 24 hours to show up on my new Plan.  72 hours later, no change, and the runaround continues some more.  The only reason I even came to this forum was to let off some steam since no one could give me an answer..  It's clear that I am entitled to the Bonus Gig yet the last supervisor I spoke with told me that he could only pass the request on to another department via e-mail (no direct contact, etc. even though I gave him the name and employee # of the Verizon rep who indicated the Bonus was approved) and that an answer should be forthcoming in about 7 days.  I was very cordial with everyone I spoke with as I understand that they take their direction from the top.  The countless hours I have spent dealing with this situation is something that no-one should have to go through, particularily someone who has been a Verizon Plan customer since about year 2000.  Everyone seems to agree that I am entitled to the free gig but no one seems to be in a position to help this customer.  Its a horrible way to treat someone.  I talked with the original saleslady today and told her I would be in tomorrow to turn in the phone and get a new one along with the gig I was entitled to.  She said that would be fine and wouldn't be a problem but that she would be happy to try calling Verizon once again to try to resolve the issue.  I indicated that I'm done with wasting time taliking with well-meaning and courteous (and I assume underpaid) employees who I assume are pretty much directed from above that any concessions they make, even if the customer is entitled to them, will reflect badly on their employee evaluations .  Good thing I am retired or I would really be worked up.  They only way I would consider even talking to Verizon anymore on this is if they were to waive  the $60 in upgrade fees my wife and I paid for the new phones.  I hope this explains the situation to your satisfaction.  Thanks.

  • Lightroom 4 crashes when trying to open the slideshow module. I spent over three hours with both Adobe and Apple tech support and we know it is a permission issue but have not been able to get it solved.  It started with the last upgrade to 10.8

    Lightroom 4 crashes when trying to open the slideshow module. I spent over three hours with both Adobe and Apple tech support and we know it is a permission issue but have not been able to get it solved.  It started with the last upgrade to 10.8

    Back up all data.
    This procedure will unlock all your user files (not system files) and reset their ownership and access-control lists to the default. If you've set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it.
    Step 1
    If you have more than one user account, and the one in question is not an administrator account, then temporarily promote it to administrator status in the Users & Groups preference pane. To do that, unlock the preference pane using the credentials of an administrator, check the box marked Allow user to administer this computer, then reboot. You can demote the problem account back to standard status when this step has been completed.
    Triple-click the following line to select it. Copy the selected text to the Clipboard (command-C):
    { sudo chflags -R nouchg,nouappnd ~ $TMPDIR.. ; sudo chown -Rh $UID:staff ~ $_ ; sudo chmod -R u+rwX ~ $_ ; chmod -R -N ~ $_ ; } 2> /dev/null
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V). You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The command will take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear, then quit Terminal.
    Step 2 (optional)
    The first step should give you usable permissions in your home folder. This step will restore special attributes set by OS X on some user folders to protect them from unintended deletion or renaming. You can skip this step if you don't consider that protection to be necessary.
    Boot into Recovery by holding down the key combination command-R at startup. Release the keys when you see a gray screen with a spinning dial.
    When the OS X Utilities screen appears, select
    Utilities ▹ Terminal
    from the menu bar. A Terminal window will open.
    In the Terminal window, type this:
    resetpassword
    That's one word, all lower case, with no spaces. Then press return. A Reset Password window will open. You’re not  going to reset a password.
    Select your boot volume ("Macintosh HD," unless you gave it a different name) if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select
     ▹ Restart
    from the menu bar.

Maybe you are looking for

  • Could I buy a Mac OSX CD only for VM purpose? Thanks!

    I would like to setup Mac OSX on VM using a normal PC (not a Macbook series) Could I do that? or I have to buy a Macbook. Thanks!

  • SQL Developer extension

    Hello, I'm trying to add an extension to SQL Developer. I download manually RDB for SQL Developer extension and then I follow those instructions : 1 . Click Help menu 2 . Click Search for updates menu item 3 . Install from local file and select insta

  • How to move photos from one library to another?

    Hi, I currently have 2 libraries and I want to move photos from one library into the other. How do I have to proceed? Thx A

  • Edit/change swf files in pages based on DW templates

    I have seen how to make banners or pictures editable by using the »Editable Tag Attribute« function. But when I want to do the same with a swf banner I don't get the option SCR in the popup menu, but: ID, CLASSID, WIDTH and HIGHT instead. I have trie

  • IMovie-cannot find movies on gallery.

    After upgrading to ios6, iMovie projects (new and existing ones) are not synchronizing with movies that are in the gallery. When I try to search for that movies on iPad via iMovie, it appears an error. How can I solve this problem?