insert calendar problem

Hi I have a scheduled task that executes the code below, I have problems with it.

what I have to do is

1. get all the records of appoint_table where the servertime is lessthan present (which I'm sure that my request is ok).

2. define a TotalSMSLeft session that gets users credit left.

3. If the credit users is SUPERIOR to 0, follow this
3. send an email
UPDATE appoint_table 3 b. delete the server time
3 c. Select all records that servertime is empty
3D. Insert in SMS_Records where servertime is empty
3. remove all records where servertime is empty.

4. If not, remove all records in which servertime is empty.

Maybe I owe a lot of code for what I m doing?

can some help me please with the best code to use

Thank you very much

I think it's get sent twice because your tag is inside a of your GetSchH1 request, but you also have your tag a loop in the query (query = "GetSchH1"). Delete the query = "GetSchH1" of your tag and it should only send 1 copy of each.

Also, I would perform your deletions outside your loops - in this way, you only need to do 1 connection to the database to delete everything and you won't delete other records before send you by e-mail.

Tags: ColdFusion

Similar Questions

  • Windows sidebar calendar problem, sees nothing except chassis. How can I solve?

    Windows sidebar calendar problem, sees nothing except chassis. How can I solve?

    Hello SEEN H K,

    1. this work was very well at any time before your computer?

    I suggest that you try the methods below to resolve this issue:

    Method 1:

    Open a windows Explorer window and then paste the following text in the address bar:

    %LocalAppData%\microsoft\Windows sidebar

    This will open the Sidebar gadgets folder, where you should see a file named Settings.ini.

    If this is due to recent changes to the computer, I suggest that you do a system restore on your computer.

    a. Click Start, type system restore in the search box and then in the list click on the system restore program.

    b. If you are prompted for an administrator password or a confirmation, type your password or click on continue.

    (c) in the System Restore dialog box, click on choose a different restore point and then click Next.

    d. in the list of restore points, click a restore point created before you started having the problem, and then click Next.

    e. click Finish.

    You can see the following article for reference:

    http://Windows.Microsoft.com/en-us/Windows-Vista/system-restore-frequently-asked-questions

    Thank you
    Irfan H, Engineer Support Microsoft Answers.

  • Lightning don't talk to Google Calendar - problem with cookies?

    Execution of Thunderbird 31.1.0 with Lightning 1.0 and the module supplier of Google. I maintain four different calendars with google (work room, home, other, conf) account. When I woke up today all my calendars worked. They have been set up in lightning as calendars google network, which stressed their respective links to XML.

    All of a sudden this afternoon, without me antics with any of the parameters GCal or lightning, calendars in the sidebar of the lightning stopped to talk with the platform of google calendar. All events always appear in google calendar thin and fine always sync up to my mobile device.

    The problem is: the calendars are just sitting and showing the color of the light "synchronized." When I right click on one and try to activate it manually in lightning, it displays a prompt of password for google account. After entering my google login information, returns the window of dialogue: "Oops!" Your browser appears to have cookies disabled. Make sure that cookies are enabled, or try to open a new browser window. "

    I can assure you that cookies have been enabled in my Chrome browser settings. Double even checked in Firefox, even though it isn't my default browser, they are activated too. There is no need to change the message "cookies disabled". I went up to erase all data of the chrome, by suggestion of the googles and no dice. Even uninstalled Chrome and re-installed and no luck.

    I must be missing something. It shouldn't be so hard to make the switch from cookies and get these programs talk to once again...

    Will be

    You must allow cookies for google.com in Thunderbird.

  • Calendar problem-how to do that I get rid of "09:00"?

    This is a minor annoyance, but he has already missed for me-how can I permanently get rid of the notation "09:00" that appears whenever I enter an event in a calendar day? Considering that some of the entries track point before the real, in time real of the appointment of watch, it can be problematic. Why does it appear in the first place? I tried to change the preferences, but nothing works. How can I get rid of him? Is not solve all the problems for me, but to create.

    Please post a scene filmed when this problem occurs.

  • Contacts synchronization to Smartphones blackBerry and calendar - problems with Outlook Connector (and other things).

    Hello world

    I just got my first BlackBerry (storm) and this is my first post on the forums.  I read around a lot and found pieces of this problem but no definitive answer (which I understand).  So, I know it's a delicate subject, but really hope that someone can help you.

    FYI, I use Windows Vista and Outlook 2003 with the connector Outlook synchronize my e-mail, contacts and calendar on my Windows Live Hotmail account.

    I installed the Desktop Manager software V.4.7 and crossed to set up > sync and selected Outlook for Contacts.  The wizard all seems to work OK but then when I press "Finish" I get the error message ' file is does more part of the system data source or the couldnot folder is located.

    I partially understand the idea that my Contacts are not in Outlook, they are in my hotmail/live account.  My question is how can I work around this problem and import my contacts to the BlackBerry?  It will not accept an exported .pst file or can it link directly to hotmail?

    (On the basis of the advice on the forum), I found is you go into Outlook and adjust the settings of your e-mail account to send incoming emails into "Personal folder" instead of "* @hotmail.co.uk ' then he manages to pass the error message, however, I found no data calendar or contact in my outlook personal folders for BlackBerry to synchronize with a time that I did."

    I'll try to do a few requests on a Microsoft forum on the features between Outlook and Hotmail to see if there is an easy way to get my data anywhere in the personal folders so that the BlackBerry it can sync from there.  I'm afraid to lose emails or functionalitly to the Outlook Connector on my PC to subsequently change the default e-mail folder.

    Sorry for the length of the message but thought the more detail the better - thanks in advance for any help you can offer,

    Al.

    Just in case anyone else has this problem, I got a work around (not a solution, but it works).  In Outlook, go to Contacts - export to file and select: separation by comma (Windows). CSV file - save it to your PC.

    Then open a Yahoo mail account (if you have not already one) go to Classic view, Contacts and to the right of the screen, there is an option to import/export.  Select the location of the CSV file you saved on your PC and transfer it on Yahoo.

    You can now go through the DM Assistant and select sync with Yahoo.  It is ideal to add contacts to the phone for the first time.  Don't forget to make sure that everything is up-to-date and complete in Outlook Contacts before export to the CSV file.

    If you want to add contacts to the future, the best way is to add to Outlook first and then go through the process of exporting the CSV file again - this will ensure that all records are the same.  Although if you wanted too, you can also export from BB in Yahoo, then in Outlook as Yahoo also exported contacts to a CSV file.

    Hope that helps someone...

    Al.

  • Director of office of Smartphones blackBerry V. 6.0 and Outlook calendar problems

    I have recently updated my office to the new V 6.0 Manager and have problems with the calendar not updated device to Outlook. I use outlook 2007 and I have a Bold 9650. I don't get any errors and am able to spend in the Organizer data select option synchronize and make adjustments to the way I want the data to be transferred. If I'm going from Outlook to device I have no problem, but if I leave peripheral to Outlook entries do not give in and all future entries there where already on the calendar until I upgraded disappeared. The only problem I have with it is the calendar option.  When I press the sync button, he thinks that for a short period of time is as he transferred the data then nothing. If I can give you more info to help solve this problem please let me know.

    Must say that I am disappointed by the fact that this message was for a while with absolutely no response. Desktop Manager 6 is useless for me. And have already deleted. Will download an older version and I hope it helps.

  • Insert - Performance problem

    Hi Experts,

    I am new to Oracle. Ask for your help to fix the performance of a query of insertion problem.

    I have an insert query that is go search for records of the partitioned table.

    Background: the user indicates that the query was running in 30 minutes to 10 G. The database is upgraded to 12 by one of my colleague. Now the query works continuously for hours, but no result. Check the settings and SGA is 9 GB, Windows - 4 GB. DB block size is 8192, DB Multiblock read file Count is 128. Overall target of PGA is 2457M.

    The parameters are given below


    VALUE OF TYPE NAME
    ------------------------------------ ----------- ----------
    DBFIPS_140 boolean FALSE
    O7_DICTIONARY_ACCESSIBILITY boolean FALSE
    whole active_instance_count
    aq_tm_processes integer 1
    ARCHIVE_LAG_TARGET integer 0
    asm_diskgroups chain
    asm_diskstring chain
    asm_power_limit integer 1
    asm_preferred_read_failure_groups string
    audit_file_dest string C:\APP\ADM
    audit_sys_operations Boolean TRUE

    AUDIT_TRAIL DB string
    awr_snapshot_time_offset integer 0
    background_core_dump partial string
    background_dump_dest string C:\APP\PRO
    \RDBMS\TRA
    BACKUP_TAPE_IO_SLAVES boolean FALSE
    bitmap_merge_area_size integer 1048576
    blank_trimming boolean FALSE
    buffer_pool_keep string
    buffer_pool_recycle string
    cell_offload_compaction ADAPTIVE channel


    cell_offload_decryption Boolean TRUE
    cell_offload_parameters string
    cell_offload_plan_display string AUTO
    cell_offload_processing Boolean TRUE
    cell_offloadgroup_name string
    whole circuits
    whole big client_result_cache_lag 3000
    client_result_cache_size big integer 0
    clonedb boolean FALSE
    cluster_database boolean FALSE
    cluster_database_instances integer 1


    cluster_interconnects chain
    commit_logging string
    commit_point_strength integer 1
    commit_wait string
    string commit_write
    common_user_prefix string C#.
    compatible string 12.1.0.2.0
    connection_brokers string ((TYPE = DED
    ((TYPE = EM
    control_file_record_keep_time integer 7
    control_files string G:\ORACLE\

    TROL01. CTL
    FAST_RECOV
    NTROL02. CT
    control_management_pack_access string diagnostic
    core_dump_dest string C:\app\dia
    bal12\cdum
    cpu_count integer 4
    create_bitmap_area_size integer 8388608
    create_stored_outlines string
    cursor_bind_capture_destination memory of the string + tell
    CURSOR_SHARING EXACT string

    cursor_space_for_time boolean FALSE
    db_16k_cache_size big integer 0
    db_2k_cache_size big integer 0
    db_32k_cache_size big integer 0
    db_4k_cache_size big integer 0
    db_8k_cache_size big integer 0
    db_big_table_cache_percent_target string 0
    db_block_buffers integer 0
    db_block_checking FALSE string
    db_block_checksum string TYPICAL
    Whole DB_BLOCK_SIZE 8192

    db_cache_advice string WE
    db_cache_size large integer 0
    db_create_file_dest chain
    db_create_online_log_dest_1 string
    db_create_online_log_dest_2 string
    db_create_online_log_dest_3 string
    db_create_online_log_dest_4 string
    db_create_online_log_dest_5 string
    db_domain chain
    db_file_multiblock_read_count integer 128
    db_file_name_convert chain

    DB_FILES integer 200
    db_flash_cache_file string
    db_flash_cache_size big integer 0
    db_flashback_retention_target around 1440
    chain of db_index_compression_inheritance NONE
    DB_KEEP_CACHE_SIZE big integer 0
    chain of db_lost_write_protect NONE
    db_name string ORCL
    db_performance_profile string
    db_recovery_file_dest string G:\Oracle\
    y_Area


    whole large db_recovery_file_dest_size 12840M
    db_recycle_cache_size large integer 0
    db_securefile string PREFERRED
    channel db_ultra_safe
    db_unique_name string ORCL
    db_unrecoverable_scn_tracking Boolean TRUE
    db_writer_processes integer 1
    dbwr_io_slaves integer 0
    DDL_LOCK_TIMEOUT integer 0
    deferred_segment_creation Boolean TRUE
    dg_broker_config_file1 string C:\APP\PRO


    \DATABASE\
    dg_broker_config_file2 string C:\APP\PRO
    \DATABASE\
    dg_broker_start boolean FALSE
    diagnostic_dest channel directory
    disk_asynch_io Boolean TRUE
    dispatchers (PROTOCOL = string
    12XDB)
    distributed_lock_timeout integer 60
    dml_locks whole 2076
    whole dnfs_batch_size 4096

    dst_upgrade_insert_conv Boolean TRUE
    enable_ddl_logging boolean FALSE
    enable_goldengate_replication boolean FALSE
    enable_pluggable_database boolean FALSE
    event string
    exclude_seed_cdb_view Boolean TRUE
    fal_client chain
    fal_server chain
    FAST_START_IO_TARGET integer 0
    fast_start_mttr_target integer 0
    fast_start_parallel_rollback string LOW


    file_mapping boolean FALSE
    fileio_network_adapters string
    filesystemio_options chain
    fixed_date chain
    gcs_server_processes integer 0
    global_context_pool_size string
    global_names boolean FALSE
    global_txn_processes integer 1
    hash_area_size integer 131072
    channel heat_map
    hi_shared_memory_address integer 0

    hs_autoregister Boolean TRUE
    iFile file
    inmemory_clause_default string
    inmemory_force string by DEFAULT
    inmemory_max_populate_servers integer 0
    inmemory_query string ENABLE
    inmemory_size big integer 0
    inmemory_trickle_repopulate_servers_ integer 1
    percent
    instance_groups string
    instance_name string ORCL


    instance_number integer 0
    instance_type string RDBMS
    instant_restore boolean FALSE
    java_jit_enabled Boolean TRUE
    java_max_sessionspace_size integer 0
    JAVA_POOL_SIZE large integer 0
    java_restrict string no
    java_soft_sessionspace_limit integer 0
    JOB_QUEUE_PROCESSES around 1000
    LARGE_POOL_SIZE large integer 0
    ldap_directory_access string NONE


    ldap_directory_sysauth string no.
    license_max_sessions integer 0
    license_max_users integer 0
    license_sessions_warning integer 0
    listener_networks string
    LOCAL_LISTENER (ADDRESS = string
    = i184borac
    (NET) (PORT =
    lock_name_space string
    lock_sga boolean FALSE
    log_archive_config string


    Log_archive_dest chain
    Log_archive_dest_1 chain
    LOG_ARCHIVE_DEST_10 string
    log_archive_dest_11 string
    log_archive_dest_12 string
    log_archive_dest_13 string
    log_archive_dest_14 string
    log_archive_dest_15 string
    log_archive_dest_16 string
    log_archive_dest_17 string
    log_archive_dest_18 string


    log_archive_dest_19 string
    LOG_ARCHIVE_DEST_2 string
    log_archive_dest_20 string
    log_archive_dest_21 string
    log_archive_dest_22 string
    log_archive_dest_23 string
    log_archive_dest_24 string
    log_archive_dest_25 string
    log_archive_dest_26 string
    log_archive_dest_27 string
    log_archive_dest_28 string


    log_archive_dest_29 string
    log_archive_dest_3 string
    log_archive_dest_30 string
    log_archive_dest_31 string
    log_archive_dest_4 string
    log_archive_dest_5 string
    log_archive_dest_6 string
    log_archive_dest_7 string
    log_archive_dest_8 string
    log_archive_dest_9 string
    allow the chain of log_archive_dest_state_1


    allow the chain of log_archive_dest_state_10
    allow the chain of log_archive_dest_state_11
    allow the chain of log_archive_dest_state_12
    allow the chain of log_archive_dest_state_13
    allow the chain of log_archive_dest_state_14
    allow the chain of log_archive_dest_state_15
    allow the chain of log_archive_dest_state_16
    allow the chain of log_archive_dest_state_17
    allow the chain of log_archive_dest_state_18
    allow the chain of log_archive_dest_state_19
    allow the chain of LOG_ARCHIVE_DEST_STATE_2

    allow the chain of log_archive_dest_state_20
    allow the chain of log_archive_dest_state_21
    allow the chain of log_archive_dest_state_22
    allow the chain of log_archive_dest_state_23
    allow the chain of log_archive_dest_state_24
    allow the chain of log_archive_dest_state_25
    allow the chain of log_archive_dest_state_26
    allow the chain of log_archive_dest_state_27
    allow the chain of log_archive_dest_state_28
    allow the chain of log_archive_dest_state_29
    allow the chain of log_archive_dest_state_3

    allow the chain of log_archive_dest_state_30
    allow the chain of log_archive_dest_state_31
    allow the chain of log_archive_dest_state_4
    allow the chain of log_archive_dest_state_5
    allow the chain of log_archive_dest_state_6
    allow the chain of log_archive_dest_state_7
    allow the chain of log_archive_dest_state_8
    allow the chain of log_archive_dest_state_9
    log_archive_duplex_dest string
    log_archive_format string ARC%S_%R.%
    log_archive_max_processes integer 4

    log_archive_min_succeed_dest integer 1
    log_archive_start Boolean TRUE
    log_archive_trace integer 0
    whole very large log_buffer 28784K
    log_checkpoint_interval integer 0
    log_checkpoint_timeout around 1800
    log_checkpoints_to_alert boolean FALSE
    log_file_name_convert chain
    whole MAX_DISPATCHERS
    max_dump_file_size unlimited string
    max_enabled_roles integer 150


    whole max_shared_servers
    max_string_size string STANDARD
    memory_max_target big integer 0
    memory_target large integer 0
    NLS_CALENDAR string GREGORIAN
    nls_comp BINARY string
    nls_currency channel u
    string of NLS_DATE_FORMAT DD-MON-RR
    nls_date_language channel ENGLISH
    string nls_dual_currency C
    nls_iso_currency string UNITED KIN

    nls_language channel ENGLISH
    nls_length_semantics string OCTET
    string nls_nchar_conv_excp FALSE
    nls_numeric_characters chain.,.
    nls_sort BINARY string
    nls_territory string UNITED KIN
    nls_time_format HH24.MI string. SS
    nls_time_tz_format HH24.MI string. SS
    chain of NLS_TIMESTAMP_FORMAT DD-MON-RR
    NLS_TIMESTAMP_TZ_FORMAT string DD-MON-RR
    noncdb_compatible boolean FALSE


    object_cache_max_size_percent integer 10
    object_cache_optimal_size integer 102400
    olap_page_pool_size big integer 0
    open_cursors integer 300
    Open_links integer 4
    open_links_per_instance integer 4
    optimizer_adaptive_features Boolean TRUE
    optimizer_adaptive_reporting_only boolean FALSE
    OPTIMIZER_CAPTURE_SQL_PLAN_BASELINES boolean FALSE
    optimizer_dynamic_sampling integer 2
    optimizer_features_enable string 12.1.0.2

    optimizer_index_caching integer 0
    OPTIMIZER_INDEX_COST_ADJ integer 100
    optimizer_inmemory_aware Boolean TRUE
    the string ALL_ROWS optimizer_mode
    optimizer_secure_view_merging Boolean TRUE
    optimizer_use_invisible_indexes boolean FALSE
    optimizer_use_pending_statistics boolean FALSE
    optimizer_use_sql_plan_baselines Boolean TRUE
    OPS os_authent_prefix string $
    OS_ROLES boolean FALSE
    parallel_adaptive_multi_user Boolean TRUE


    parallel_automatic_tuning boolean FALSE
    parallel_degree_level integer 100
    parallel_degree_limit string CPU
    parallel_degree_policy chain MANUAL
    parallel_execution_message_size integer 16384
    parallel_force_local boolean FALSE
    parallel_instance_group string
    parallel_io_cap_enabled boolean FALSE
    PARALLEL_MAX_SERVERS integer 160
    parallel_min_percent integer 0
    parallel_min_servers integer 16

    parallel_min_time_threshold string AUTO
    parallel_server boolean FALSE
    parallel_server_instances integer 1
    parallel_servers_target integer 64
    parallel_threads_per_cpu integer 2
    pdb_file_name_convert string
    pdb_lockdown string
    pdb_os_credential string
    permit_92_wrap_format Boolean TRUE
    pga_aggregate_limit great whole 4914M
    whole large pga_aggregate_target 2457M

    -
    Plscope_settings string IDENTIFIER
    plsql_ccflags string
    plsql_code_type chain INTERPRETER
    plsql_debug boolean FALSE
    plsql_optimize_level integer 2
    plsql_v2_compatibility boolean FALSE
    plsql_warnings DISABLE channel: AL
    PRE_PAGE_SGA Boolean TRUE
    whole process 300
    processor_group_name string
    query_rewrite_enabled string TRUE


    applied query_rewrite_integrity chain
    rdbms_server_dn chain
    read_only_open_delayed boolean FALSE
    recovery_parallelism integer 0
    Recyclebin string on
    redo_transport_user string
    remote_dependencies_mode string TIMESTAMP
    remote_listener chain
    Remote_login_passwordfile string EXCLUSIVE
    REMOTE_OS_AUTHENT boolean FALSE
    remote_os_roles boolean FALSE

    replication_dependency_tracking Boolean TRUE
    resource_limit Boolean TRUE
    resource_manager_cpu_allocation integer 4
    resource_manager_plan chain
    result_cache_max_result integer 5
    whole big result_cache_max_size K 46208
    result_cache_mode chain MANUAL
    result_cache_remote_expiration integer 0
    resumable_timeout integer 0
    rollback_segments chain
    SEC_CASE_SENSITIVE_LOGON Boolean TRUE

    sec_max_failed_login_attempts integer 3
    string sec_protocol_error_further_action (DROP, 3)
    sec_protocol_error_trace_action string PATH
    sec_return_server_release_banner boolean FALSE
    disable the serial_reuse chain
    service name string ORCL
    session_cached_cursors integer 50
    session_max_open_files integer 10
    entire sessions 472
    Whole large SGA_MAX_SIZE M 9024
    Whole large SGA_TARGET M 9024


    shadow_core_dump string no
    shared_memory_address integer 0
    SHARED_POOL_RESERVED_SIZE large integer 70464307
    shared_pool_size large integer 0
    whole shared_server_sessions
    SHARED_SERVERS integer 1
    skip_unusable_indexes Boolean TRUE
    smtp_out_server chain
    sort_area_retained_size integer 0
    sort_area_size integer 65536
    spatial_vector_acceleration boolean FALSE


    SPFile string C:\APP\PRO
    \DATABASE\
    sql92_security boolean FALSE
    SQL_Trace boolean FALSE
    sqltune_category string by DEFAULT
    standby_archive_dest channel % ORACLE_HO
    standby_file_management string MANUAL
    star_transformation_enabled string TRUE
    statistics_level string TYPICAL
    STREAMS_POOL_SIZE big integer 0
    tape_asynch_io Boolean TRUE

    temp_undo_enabled boolean FALSE
    entire thread 0
    threaded_execution boolean FALSE
    timed_os_statistics integer 0
    TIMED_STATISTICS Boolean TRUE
    trace_enabled Boolean TRUE
    tracefile_identifier chain
    whole of transactions 519
    transactions_per_rollback_segment integer 5
    UNDO_MANAGEMENT string AUTO
    UNDO_RETENTION integer 900

    undo_tablespace string UNDOTBS1
    unified_audit_sga_queue_size integer 1048576
    use_dedicated_broker boolean FALSE
    use_indirect_data_buffers boolean FALSE
    use_large_pages string TRUE
    user_dump_dest string C:\APP\PRO
    \RDBMS\TRA
    UTL_FILE_DIR chain
    workarea_size_policy string AUTO
    xml_db_events string enable

    Thanks in advance

    Firstly, thank you for posting the 10g implementation plan, which was one of the key things that we were missing.

    Second, you realize that you have completely different execution plans, so you can expect different behavior on each system.

    Your package of 10g has a total cost of 23 959 while your plan of 12 c has a cost of 95 373 which is almost 4 times more.  All things being equal, cost is supposed to relate directly to the time spent, so I expect the 12 c plan to take much more time to run.

    From what I can see the 10g plan begins with a scan of full table on DEALERS, and then a full scan on SCARF_VEHICLE_EXCLUSIONS table, and then a full scan on CBX_tlemsani_2000tje table, and then a full scan on CLAIM_FACTS table.  The first three of these analyses tables have a very low cost (2 each), while the last has a huge cost of 172K.  Yet once again, the first three scans produce very few lines in 10g, less than 1,000 lines each, while the last product table scan 454 K lines.

    It also looks that something has gone wrong in the 10g optimizer plan - maybe a bug, which I consider that Jonathan Lewis commented.  Despite the full table scan with a cost of 172 K, NESTED LOOPS it is part of the only has a cost of 23 949 or 24 K.  If the math is not in terms of 10g.  In other words, maybe it's not really optimal plan because 10g optimizer may have got its sums wrong and 12 c might make his right to the money.  But luckily this 'imperfect' 10g plan happens to run fairly fast for one reason or another.

    The plan of 12 starts with similar table scans but in a different order.  The main difference is that instead of a full table on CLAIM_FACTS scan, it did an analysis of index on CLAIM_FACTS_AK9 beach at the price of 95 366.  It is the only main component of the final total cost of 95 373.

    Suggestions for what to do?  It is difficult, because there is clearly an anomaly in the system of 10g to have produced the particular execution plan that he uses.  And there is other information that you have not provided - see later.

    You can try and force a scan of full table on CLAIM_FACTS by adding a suitable example suspicion "select / * + full (CF) * / cf.vehicle_chass_no...". "However, the tips are very difficult to use and does not, guarantee that you will get the desired end result.  So be careful.  For the essay on 12 c, it may be worth trying just to see what happens and what produces the execution plan looks like.  But I would not use such a simple, unique tip in a production system for a variety of reasons.  For testing only it might help to see if you can force the full table on CLAIM_FACTS scan as in 10g, and if the performance that results is the same.

    The two plans are parallel ones, which means that the query is broken down into separate, independent steps and several steps that are executed at the same time, i.e. several CPUS will be used, and there will be several readings of the disc at the same time.  (It is a mischaracterization of the works of parallel query how).  If 10g and 12 c systems do not have the SAME hardware configuration, then you would naturally expect different time elapsed to run the same parallel queries.  See the end of this answer for the additional information that you may provide.

    But I would be very suspicious of the hardware configuration of the two systems.  Maybe 10 g system has 16-core processors or more and 100's of discs in a matrix of big drives and maybe the 12 c system has only 4 cores of the processor and 4 disks.  That would explain a lot about why the 12 c takes hours to run when the 10 g takes only 30 minutes.

    Remember what I said in my last reply:

    "Without any contrary information I guess the filter conditions are very low, the optimizer believes he needs of most of the data in the table and that a table scan or even a limited index scan complete is the"best"way to run this SQL.  In other words, your query takes just time because your tables are big and your application has most of the data in these tables. "

    When dealing with very large tables and to do a full table parallel analysis on them, the most important factor is the amount of raw hardware, you throw the ball to her.  A system with twice the number of CPUS and twice the number of disks will run the same parallel query in half of the time, at least.  It could be that the main reason for the 12 c system is much slower than the system of 10g, rather than on the implementation plan itself.

    You may also provide us with the following information which would allow a better analysis:

    • Row counts in each tables referenced in the query, and if one of them are partitioned.
    • Hardware configurations for both systems - the 10g and the 12 a.  Number of processors, the model number and speed, physical memory, CPU of discs.
    • The discs are very important - 10g and 12 c have similar disk subsystems?  You use simple old records, or you have a San, or some sort of disk array?  Are the bays of identical drives in both systems?  How are they connected?  Fast Fibre Channel, or something else?  Maybe even network storage?
    • What is the size of the SGA in both systems?  of values for MEMORY_TARGET and SGA_TARGET.
    • The fact of the CLAIM_FACTS_AK9 index exist on the system of 10g.  I guess he does, but I would like that it confirmed to be safe.

    John Brady

  • Insert the problem using a SELECT table with an index by TRUNC function

    I came across this problem when you try to insert a select query, select returns the correct results, but when you try to insert the results into a table, the results are different. I found a work around by forcing a selection order, but surely this is a bug in Oracle as how the value of select statements may differ from the insert?

    Platform: Windows Server 2008 R2
    11.2.3 Oracle Enterprise Edition
    (I've not tried to reproduce this on other versions)

    Here are the scripts to create the two tables and the data source:
    CREATE TABLE source_data
    (
      ID                 NUMBER(2),
      COUNT_DATE       DATE
    );
    
    CREATE INDEX IN_SOURCE_DATA ON SOURCE_DATA (TRUNC(count_date, 'MM'));
    
    INSERT INTO source_data VALUES (1, TO_DATE('20120101', 'YYYYMMDD'));
    INSERT INTO source_data VALUES (1, TO_DATE('20120102', 'YYYYMMDD'));
    INSERT INTO source_data VALUES (1, TO_DATE('20120103', 'YYYYMMDD'));
    INSERT INTO source_data VALUES (1, TO_DATE('20120201', 'YYYYMMDD'));
    INSERT INTO source_data VALUES (1, TO_DATE('20120202', 'YYYYMMDD'));
    INSERT INTO source_data VALUES (1, TO_DATE('20120203', 'YYYYMMDD'));
    INSERT INTO source_data VALUES (1, TO_DATE('20120301', 'YYYYMMDD'));
    INSERT INTO source_data VALUES (1, TO_DATE('20120302', 'YYYYMMDD'));
    INSERT INTO source_data VALUES (1, TO_DATE('20120303', 'YYYYMMDD'));
    
    CREATE TABLE result_data
    (
      ID                 NUMBER(2),
      COUNT_DATE       DATE
    );
    Now, execute the select statement:
    SELECT id, TRUNC(count_date, 'MM')
    FROM source_data
    GROUP BY id, TRUNC(count_date, 'MM')
    You should get the following:
    1     2012/02/01
    1     2012/03/01
    1     2012/01/01
    Now insert in the table of results:
    INSERT INTO result_data
    SELECT id, TRUNC(count_date, 'MM')
    FROM source_data
    GROUP BY id, TRUNC(count_date, 'MM');
    Select the table, and you get:
    1     2012/03/01
    1     2012/03/01
    1     2012/03/01
    The most recent month is repeated for each line.

    Truncate your table and insert the following statement and results should now be correct:
    INSERT INTO result_data
    SELECT id, TRUNC(count_date, 'MM')
    FROM source_data
    GROUP BY id, TRUNC(count_date, 'MM')
    ORDER BY 1, 2;
    If someone has encountered this problem before, could you please let me know, I don't see what I make a mistake because the selection results are correct, they should not be different from what is being inserted.

    Published by: user11285442 on May 13, 2013 05:16

    Published by: user11285442 on May 13, 2013 06:15

    Most likely a bug in 11.2.0.3. I can reproduce on Red Hat Linux and AIX.

    You can perform a search on MOS to see if this is a known bug (very likely), if not then you have a pretty simple test box to open a SR with.

    John

  • Inserted HTML problem

    I have some html that I'm trying to insert. I tried too stick and insert using "insert html" in the subject. The HTML 'object' comes without a problem, but it shifts my footer right without apparent reason. Remove the object and everything returns to normal. I pasted the HTML below to see if anyone can sport the glitch.

    Paul

    < div id = 'contact form' >

    " < form action =" http://www.galesendpress.com/cgi-bin/GEP-contact.pl "method ="post"id ="contact form"> "

    < fieldset >

    < p > < label for 'contact' = > name: < span > * </span > < / label > < br / > < input class = 'text' type = "text" name = "contact" id = 'contact' alt = 'your name' / > < /p >

    < p > < label for 'email' = > Email: < span > * </span > < / label > < br / > < input class = "text" type = "text" name = "email" id = "email" alt = "email address" / > < / p >

    < p > < label for 'message' = > Message: < / label > < br / > < textarea cols = "40" lines = "10" name = "message" id = "message" > < / textarea > < / p >

    < div >

    < input class = "submit" type = "submit" value = "Send Message" alt = "submit button."

    OnClick = "if (this.form.email.value ==" |) "

    This.Form.contact.value == "|

    This.Form.Phone.value == "|

    This.Form.Subject.value == "|

    This.Form.message.value == ") {alert ('Please fill in all the fields before sending your message'); return false ;};} "/ >

    < / div >

    < / fieldset >

    < / make >

    The HTML code you are trying to insert is not valid.

    You are missing a closing for your opening div tag make sure you copy all the code embed everywhere where you get this HTML code from.

  • data insert a problem...

    I am creating a table type nested and used in a type of table column after that I want to insert data in the table... but there is an occurred.when problem I am executing the insert view ',' missing...

    Insert a statement like that...
    INSERT INTO TAB_EMPLOYEE_DTL
    (EMP_ID,
    EMP_CODE,
    EMP_NAME,
    SEX,
    Date of birth
    NT_EMP_ADDRESS (TY_EMP_ADDRESS (ADD_LINE_1,
    ADD_LINE_2,
    DISTRICE,
    PIN_NUBER,
    STATE)))
    VALUES
    (1,
    "a01",.
    "Patricia."
    '.
    To_date (10-mar-87', 'dd-MON-rr'),
    NT_EMP_ADDRESS (TY_EMP_ADDRESS ('a', 'sss', 'wer', 561234, "UP")));

    You must provide a column name to «*»

    and also delete

    NT_EMP_ADDRESS(TY_EMP_ADDRESS(ADD_LINE_1,ADD_LINE_2,DISTRICE,PIN_NUBER,STATE)
    

    and replace it with a column name

    Published by: bluefrog August 22, 2011 17:02

  • Java Calendar problem

    Hello

    I have problems with the Java Calendar class:

    Problem 1:
    I try to fix the Java calendar date, but an exception is thrown. The issues dates are 19210501 and 19420403 (YYYYMMDD) to midnight (time of day = 0, minutes = 0, seconds = 0, milliseconds = 0). Setting other dates between 15000101 and 22000101 work OK. Exception is thrown when the calendar calculates new values. Note that this exception is NOT thrown if I don't have hour / minute / second fields!

    Problem 2:
    I put the Java specific date schedule has and convert that date to timeInMillis. Then I put this timeInMillis for calendar and convert them to date B. For some dates has! = B. problematic dates are 19210501 and 19420403 (YYYYMMDD) to midnight (time of day = 0, minutes = 0, seconds = 0, milliseconds = 0). Setting other dates between 15000101 and 22000101 work OK.

    These problems occur if timeZone = "Europe/Helsinki. Problem does not occur if timeZone = "EET" or "GMT".

    Example code for this issue is below:
    ==================
    package z_javaexperiments5;

    import java.util.Calendar;
    import java.util.TimeZone;

    public class CalendarProblem {}

    Public Shared Sub main (String [] args) {}

    Main CalendarProblem = new CalendarProblem();

    System.out.println ("RunSetCalendars");

    Time zone time zone = TimeZone.getTimeZone ("GMT");
    main.runSetCalendars (time zone, L 19420403000000000);
    main.runSetCalendars (time zone, L 19210501000000000);
    main.runSetCalendars (time zone, L 19210502000000000);

    zone = TimeZone.getTimeZone ("EET");
    main.runSetCalendars (time zone, L 19420403000000000);
    main.runSetCalendars (time zone, L 19210501000000000);
    main.runSetCalendars (time zone, L 19210502000000000);

    zone = TimeZone.getTimeZone (' Europe/Helsinki');
    main.runSetCalendars (time zone, L 19420403000000000);
    main.runSetCalendars (time zone, L 19210501000000000);
    main.runSetCalendars (time zone, L 19210502000000000);

    }

    Calendar setCalendar1 (time zone time zone, long dateTimeYYYYMMDDHHMMSSsss) {}
    Calendar calendar = Calendar.getInstance (timeZone);
    Calendar.Clear ();
    System.out.println ("setCalendar1 timeZone =" + calendar.getTimeZone () .getID ());

    year int = (int) (dateTimeYYYYMMDDHHMMSSsss / 10000000000000L);
    int month = (int) ((dateTimeYYYYMMDDHHMMSSsss % L 10000000000000) / 100000000000 L)-1;
    Day = (int) ((dateTimeYYYYMMDDHHMMSSsss % L 100000000000) int / 1000000000);
    int h = (int) ((dateTimeYYYYMMDDHHMMSSsss % 1000000000) / 10000000);
    int min = (int) ((dateTimeYYYYMMDDHHMMSSsss % 10000000) / 100000);
    dry int = (int) ((dateTimeYYYYMMDDHHMMSSsss % 100000) / 1000);
    int mSec = (int) (dateTimeYYYYMMDDHHMMSSsss % 1000);
    System.out.println (year + "." + (month + 1) + "." + day + "" + hour + ":" + min + ":" + dry + "." + mSec);
    Calendar.Set (year, month, day);
    Calendar.Set (Calendar.HOUR_OF_DAY, time);
    Calendar.Set (Calendar.MINUTE, minutes);
    Calendar.Set (Calendar.SECOND, dry);
    Calendar.Set (Calendar.MILLISECOND, mSec);
    calendar.setLenient (false); Reject invalid values

    try {}
    Calendar.get (Calendar.SECOND); Recalculate values
    } catch (IllegalArgumentException e) {}
    throw new RuntimeException ("Invalid argument: cannot convert long dateTimeYYYYMMDDHHMMSSsss, long =" + dateTimeYYYYMMDDHHMMSSsss + "message of Exception =" + e.getMessage ());
    }

    return calendar;
    }

    Calendar setCalendar2 (time zone time zone, long dateTimeYYYYMMDDHHMMSSsss) {}
    Calendar calendar = Calendar.getInstance (timeZone);
    System.out.println ("setCalendar2 timeZone =" + calendar.getTimeZone () .getID ());
    Calendar.Clear ();

    year int = (int) (dateTimeYYYYMMDDHHMMSSsss / 10000000000000L);
    int month = (int) ((dateTimeYYYYMMDDHHMMSSsss % L 10000000000000) / 100000000000 L)-1;
    Day = (int) ((dateTimeYYYYMMDDHHMMSSsss % L 100000000000) int / 1000000000);
    int h = (int) ((dateTimeYYYYMMDDHHMMSSsss % 1000000000) / 10000000);
    int min = (int) ((dateTimeYYYYMMDDHHMMSSsss % 10000000) / 100000);
    dry int = (int) ((dateTimeYYYYMMDDHHMMSSsss % 100000) / 1000);
    int mSec = (int) (dateTimeYYYYMMDDHHMMSSsss % 1000);
    System.out.println ("Initial dateTime =" + year + "." + (month + 1) + "." + day + "" + hour + ":" + min + ":" + dry + "." + mSec "");
    Calendar.Set (year, month, day);
    If (hour! = 0)
    Calendar.Set (Calendar.HOUR_OF_DAY, time);
    on the other
    Calendar.Clear (Calendar.HOUR_OF_DAY);
    If (min! = 0)
    Calendar.Set (Calendar.MINUTE, minutes);
    on the other
    Calendar.Clear (Calendar.MINUTE);
    If (s! = 0)
    Calendar.Set (Calendar.SECOND, dry);
    on the other
    Calendar.Clear (Calendar.SECOND);
    If (mSec! = 0)
    Calendar.Set (Calendar.MILLISECOND, mSec);
    on the other
    Calendar.Clear (Calendar.MILLISECOND);
    calendar.setLenient (false); Reject invalid values

    try {}
    Calendar.get (Calendar.SECOND); Recalculate values
    } catch (IllegalArgumentException e) {}
    throw new RuntimeException ("Invalid argument: cannot convert long dateTimeYYYYMMDDHHMMSSsss, long =" + dateTimeYYYYMMDDHHMMSSsss + "message of Exception =" + e.getMessage ());
    }

    long millis = calendar.getTimeInMillis ();
    System.out.println ("Initial dateTime =" + millis);

    Calendar = Calendar.getInstance (timeZone);
    Calendar.Clear ();

    calendar.setTimeInMillis (millis);
    an2 int = calendar.get (Calendar.YEAR);
    Month2 = calendar.get (Calendar.MONTH) int;
    day 2 = int calendar.get (Calendar.DAY_OF_MONTH);
    time2 int = calendar.get (Calendar.HOUR_OF_DAY);
    min2 int = calendar.get (Calendar.MINUTE);
    sec2 int = calendar.get (Calendar.SECOND);
    mSec2 int = calendar.get (Calendar.MILLISECOND);
    System.out.println ("Final dateTime =" + an2 + '. ' + (Month2 + 1) + "." + day2 + "" + time2 + ":" + min2 + ":" + S2 + "." + mSec2 "');
    If ((année! = AN2) |) (month! = Month2) | (day! = day2) | (time! = time2) | (min! = min2) | (s! = S2) | (mSec! = mSec2))
    System.out.println ("setCalendar2 failed, dates are not equal");
    return calendar;
    }

    void runSetCalendars (time zone time zone, long dateTimeYYYYMMDDHHMMSSsss) {}
    System.out.println ("");
    System.out.println ("runSetCalendars dateTimeYYYYMMDDHHMMSSsss =" + dateTimeYYYYMMDDHHMMSSsss);
    try {}
    setCalendar1 (time zone, dateTimeYYYYMMDDHHMMSSsss);
    } catch (RuntimeException e) {}
    System.out.println ("failed to setCalendar1, dateTimeYYYYMMDDHHMMSSsss =" + dateTimeYYYYMMDDHHMMSSsss + "Exception ="+ try () ");
    }

    Calendar calendar = null;
    try {}
    calendar = setCalendar2 (time zone, dateTimeYYYYMMDDHHMMSSsss);
    long timeInMillis = calendar.getTimeInMillis ();
    Calendar.Clear ();
    calendar.setTimeInMillis (timeInMillis);
    } catch (RuntimeException e) {}
    System.out.println ("failed to setCalendar2, dateTimeYYYYMMDDHHMMSSsss =" + dateTimeYYYYMMDDHHMMSSsss + "Exception ="+ try () ");

    }
    }

    }
    ==================

    The program output is below:
    ==================
    RunSetCalendars

    runSetCalendars dateTimeYYYYMMDDHHMMSSsss = 19420403000000000
    setCalendar1 timeZone = GMT
    1942.4.3 0:0:0.0
    setCalendar2 timeZone = GMT
    Initial DateTime = 1942.4.3 0:0:0.0
    Final DateTime = 1942.4.3 0:0:0.0

    runSetCalendars dateTimeYYYYMMDDHHMMSSsss = 19210501000000000
    setCalendar1 timeZone = GMT
    1921.5.1 0:0:0.0
    setCalendar2 timeZone = GMT
    Initial DateTime = 1921.5.1 0:0:0.0
    Final DateTime = 1921.5.1 0:0:0.0

    runSetCalendars dateTimeYYYYMMDDHHMMSSsss = 19210502000000000
    setCalendar1 timeZone = GMT
    1921.5.2 0:0:0.0
    setCalendar2 timeZone = GMT
    Initial DateTime = 1921.5.2 0:0:0.0
    Final DateTime = 1921.5.2 0:0:0.0

    runSetCalendars dateTimeYYYYMMDDHHMMSSsss = 19420403000000000
    time zone = EET setCalendar1 schedule
    1942.4.3 0:0:0.0
    time zone = EET setCalendar2 schedule
    Initial DateTime = 1942.4.3 0:0:0.0
    Final DateTime = 1942.4.3 0:0:0.0

    runSetCalendars dateTimeYYYYMMDDHHMMSSsss = 19210501000000000
    time zone = EET setCalendar1 schedule
    1921.5.1 0:0:0.0
    time zone = EET setCalendar2 schedule
    Initial DateTime = 1921.5.1 0:0:0.0
    Final DateTime = 1921.5.1 0:0:0.0

    runSetCalendars dateTimeYYYYMMDDHHMMSSsss = 19210502000000000
    time zone = EET setCalendar1 schedule
    1921.5.2 0:0:0.0
    time zone = EET setCalendar2 schedule
    Initial DateTime = 1921.5.2 0:0:0.0
    Final DateTime = 1921.5.2 0:0:0.0

    runSetCalendars dateTimeYYYYMMDDHHMMSSsss = 19420403000000000
    setCalendar1 timeZone = Europe/Paris
    1942.4.3 0:0:0.0
    setCalendar1 failed, dateTimeYYYYMMDDHHMMSSsss = Exception 19420403000000000 = java.lang.RuntimeException: bad argument: cannot convert long dateTimeYYYYMMDDHHMMSSsss, long = Exception 19420403000000000 message = HOUR_OF_DAY
    setCalendar2 timeZone = Europe/Paris
    Initial DateTime = 1942.4.3 0:0:0.0
    Final DateTime = 1942.4.3 1:0:0.0
    setCalendar2 failed, dates are not equal

    runSetCalendars dateTimeYYYYMMDDHHMMSSsss = 19210501000000000
    setCalendar1 timeZone = Europe/Paris
    1921.5.1 0:0:0.0
    setCalendar1 failed, dateTimeYYYYMMDDHHMMSSsss = Exception 19210501000000000 = java.lang.RuntimeException: bad argument: cannot convert long dateTimeYYYYMMDDHHMMSSsss, long = Exception 19210501000000000 message = MINUTE
    setCalendar2 timeZone = Europe/Paris
    Initial DateTime = 1921.5.1 0:0:0.0
    Final DateTime = 1921.5.1 0:20:8.0
    setCalendar2 failed, dates are not equal

    runSetCalendars dateTimeYYYYMMDDHHMMSSsss = 19210502000000000
    setCalendar1 timeZone = Europe/Paris
    1921.5.2 0:0:0.0
    setCalendar2 timeZone = Europe/Paris
    Initial DateTime = 1921.5.2 0:0:0.0
    Final DateTime = 1921.5.2 0:0:0.0
    ==================

    Why the program fails when timeZone = ' Europe/Helsinki '?

    Could it be related to changes in time zone that took place at that time?

    http://www.timeanddate.com/worldclock/clockchange.html?n=101&year=1921

  • Insert images problems

    When I insert PNG images in Captivate 5.5, the contours change color and become Red, green, etc.

    I use PNG images because it allows me to have Forms with the Center transparent (like the grey in the video lines). Is it the format that the causes problems? If Yes, what format I could use that would allow me to keep transparent areas ?




    Little surprised by the response of the stem.

    That slide quality do you use? If it's 'Down - 8-bit' try to change for optimized or high - 24-bit and check the result.

    Lilybiri

  • Prior insertion trigger problem

    Hi Guyz,

    I am facing a strange problem or may be wrong somewhere, but can't find my problem, I hope I'll get the solution to my problem here im im.

    IM updating my quantities in the table MN_ITEM_DETAILS.
    SQL> DESC MN_ITEM_DETAILS
     Name                                      Null?    Type
     ----------------------------------------- -------- ------------------
     SI_SHORT_CODE                                      NUMBER(10)
     SI_CODE                                            NUMBER(15)
     ITEM_DESCP                                         VARCHAR2(200)
     ITEM_U_M                                           VARCHAR2(6)
     ITEM_QTY                                           NUMBER(10)
     ITEM_REMARKS                                       VARCHAR2(100)
    I have below master-details on before insert trigger block works very well.
    SQL> DESC MN_MDV_MASTER
     Name                                      Null?    Type
     ----------------------------------------- -------- ----------------------------
     MDV_NO                                    NOT NULL NUMBER(15)
     MDV_DATE                                           DATE
     WHSE_LOC                                           VARCHAR2(15)
     PROJ_WHSE                                          VARCHAR2(30)
     ACTIVITY_LOC                                       VARCHAR2(30)
     MRF_NO                                             VARCHAR2(30)
     CLIENT                                             VARCHAR2(30)
     CLIENT_PO#                                         VARCHAR2(15)
     CLIENT_PO_DATE                                     DATE
     WHSE_INCHG                                         VARCHAR2(30)
     WHSE_DATE                                          DATE
     RECD_BY                                            VARCHAR2(30)
     INSPECTED_BY                                       VARCHAR2(30)
     DRIVER_NAME                                        VARCHAR2(30)
     REMARKS                                            VARCHAR2(200)
     RECD_BY_DATE                                       DATE
     INSPECTED_DATE                                     DATE
     DRIVER_NAME_DATE                                   DATE
     CST_CENTER                                         VARCHAR2(15)
    
    SQL> DESC MN_MDV_DETAILS
     Name                                      Null?    Type
     ----------------------------------------- -------- ----------------------------
     MDV_NO                                             NUMBER(15)
     ITEM_CODE                                          NUMBER(15)
     ITEM_DESCP                                         VARCHAR2(150)
     ITEM_U_M                                           VARCHAR2(6)
     ITEM_QTY                                           NUMBER(6)
     ITEM_BALANCE                                       NUMBER(10)
     PROJECT                                            VARCHAR2(15)
     ACTIVITY                                           VARCHAR2(15)
     LOCATION                                           VARCHAR2(15)
    All the triggers to INSERT before & after INSERTION block level
    PRE-INSERT -- ON details block level 
    UPDATE MN_ITEM_DETAILS
    SET ITEM_QTY = NVL(ITEM_QTY,0) - NVL(:MN_MDV_DETAILS.ITEM_QTY,0)
    WHERE SI_CODE = :MN_MDV_DETAILS.ITEM_CODE;
    
    POST-INSERT MASTER BLOCK LEVEL TRIGGER
    INSERT INTO MN_MRBV_MASTER(
    MDV#        ,
    MDV_DATE      , 
    WHSE_LOC      , 
    CST_CENTER    )VALUES
    (:MN_MDV_MASTER.MDV_NO         ,        
    :MN_MDV_MASTER.MDV_DATE       ,        
    :MN_MDV_MASTER.WHSE_LOC       ,        
    :MN_MDV_MASTER.CST_CENTER); 
    
    POST-INSERT ON DETAILS BLOCK LEVEL
    INSERT INTO MN_MRBV_DETAILS(
    MDV#         ,
    ITEM_CODE     , 
    ITEM_DESCP    , 
    ITEM_U_M           , 
    QTY      , 
    ITEM_BALANCE  ,
    PROJECT       , 
    ACTIVITY      , 
    LOCATION      )VALUES
    (:MN_MDV_DETAILS.MDV_NO         ,
    :MN_MDV_DETAILS.ITEM_CODE     , 
    :MN_MDV_DETAILS.ITEM_DESCP     ,
    :MN_MDV_DETAILS.ITEM_U_M       ,
    :MN_MDV_DETAILS.ITEM_QTY       ,
    :MN_MDV_DETAILS.ITEM_BALANCE,
    :MN_MDV_DETAILS.PROJECT      ,  
    :MN_MDV_DETAILS.ACTIVITY      , 
    :MN_MDV_DETAILS.LOCATION       ); 
    until the above works fine and its update of the MN_ITEM_DETAILS. ITEM_QTY correctly

    but im using the same as above in the MASTER-DETAIL table below but do not update the ITEM_QTY in MN_ITEM_DETAILS
    SQL> DESC MN_MRBV_MASTER
     Name                                      Null?    Type
     ----------------------------------------- -------- ----------------------------
     MDV#                                      NOT NULL NUMBER(15)
     MDV_DATE                                           DATE
     WHSE_LOC                                           VARCHAR2(15)
     RET_FRM_PROJECT                                    VARCHAR2(1)
     RET_FRM_CLIENT                                     VARCHAR2(1)
     CST_CENTER                                         VARCHAR2(15)
     WHSE_INCHG                                         VARCHAR2(30)
     WHSE_DATE                                          DATE
     RETURN_BY                                          VARCHAR2(30)
     INSPECTED_BY                                       VARCHAR2(30)
     RETURN_BY_DATE                                     DATE
     INSPECTED_BY_DATE                                  DATE
     DRIVER_NAME                                        VARCHAR2(30)
     DRIVER_DATE                                        DATE
     REMARKS                                            VARCHAR2(250)
    
    SQL> DESC MN_MRBV_DETAILS
     Name                                      Null?    Type
     ----------------------------------------- -------- ----------------------------
     MDV#                                               NUMBER(15)
     ITEM_CODE                                          NUMBER(15)
     ITEM_DESCP                                         VARCHAR2(150)
     ITEM_U_M                                           VARCHAR2(6)
     QTY                                                NUMBER(6)
     ITEM_BALANCE                                       NUMBER(10)
     PROJECT                                            VARCHAR2(15)
     ACTIVITY                                           VARCHAR2(15)
     LOCATION                                           VARCHAR2(15)
    PRE-INSERT--> here its not updating the MN_ITEM_DETAILS.ITEM_QTY table any sugesstion plz why its not updating...?
    MDV_DETAILS
    UPDATE MN_ITEM_DETAILS
    SET ITEM_QTY = NVL(ITEM_QTY,0) + NVL(:MN_MRBV_DETAILS.QTY,0)
    WHERE SI_CODE = :MN_MRBV_DETAILS.ITEM_CODE;
    Concerning

    Houda

    Published by: houda Shareef on January 8, 2011 02:19

    try to write your code in before update trigger

  • Insert query problem

    I have an insert query that I have not changed, but for some reason it won't insert anything in the database.

    The data is entered by a form of Ajax submission and goes to insert.php

    {if (isset($_POST['message_wall']))}
    / * The database connection * /.
    include ('config.php');

    / * Remove the HTML tag to prevent the injection of the query * /.
    $message = mysql_real_escape_string($_POST['message_wall']);
    $to = mysql_real_escape_string($_POST['profile_to']);

    $sql = "INSERT INTO wall (VALUES) (message)
    « '. $message. " »)';
    mysql_query ($SQL);

    I want to be able to add a user_id in the database too

    The ajax code:

    $(document) .ready (function () {}
    {$("form#submit_wall").submit (function ()}

    var message_wall is $('#message_wall').attr ('value');.

    $.ajax({)
    type: 'POST',
    URL: "insert.php"
    data: "message_wall ="+ message_wall, ".
    success: function() {}
    $("ul#wall").prepend ("< style li =' display: none" > "+ message_wall +"< /li > < br > < HR >");
    $("ul #wall li:first").fadeIn();)
    }
    });
    Returns false;
    });
    });

    Hello

    As it is a form ajax post then the form data should be inserted into your database using the insert.php script. All in the form of ajax jQuery is passed to the script of treatment if you process in the insert script it should work o/k.

    You must then include a text response to aid a statement simple echo in your insert script, this should include everything that you want to appear on your page.

    Php in your insert script would be similar to.

    At the beginning of the script.

    $date = $_POST ['msg_date'];

    At the bottom of the script.

    If {($success)
    echo "Inserted on $date ';
    } else {}
    echo "there was a problem processing your information.';
    }

    The jQuery to achieve code would be-

    Perform tasks of post-tabling
    function showResponse (responseText, statusText) {}
    $('.response').text (responseText);
    }

    More-

    success: showResponse,

    Treatment options in your ajax form

    And just include a

    where you want to display in your html code.

    PZ

    www.pziecina.com

  • The Insert bar problem

    Using DW 8.0.2 MAC OS x 10.5.4.
    Installed "Insert a QuickTime Movie" extension to Adobe Exchange by using the Mail Manager. (extension worked)
    After my insertion bar is now labeled "Common" and that there only the common tab with only first of 4-5 icons. Same scenario in configuration "menu. Attempts to customize only show available common objects.
    Can also insert is more layer in the main menu.
    Have reinstalled DW 8 and updated to version 8.0.2 without change.
    How can I fix?

    I'm sure this is part of the Preferences file. If you go to your library-> preferences and find the .plist file that Dreamweaver was named in it, you can drag to the trash and then restart DW. It will take more time to reboot after doing this because OSX you will need to create a new preferences file, but it should solve the problems with the menus.

Maybe you are looking for

  • HP Pavilion model 14-d005TX: Downgrade from windows 8; back to 8

    I have a HP Pavilion model 14-d005TX. It came with windows 8. 64-bit. I went down the OS for windows 7-32 bit. Now, I want to go back to 8-64 bit windows. Can I do? How can I have my windows license 8 original provided with the laptop when I bought i

  • Limits__ FS 2004 aircraft

    I downloaded more than a thousand different airplanes, but I can't do that much to display in FS2004.  Therer is a fix or there are limits that I can not go beyond

  • Back factory settings - Pavilion a642n - Windows 7 - 32 bit

    Initially, I had Windows Vista Home Premium, I did an upgrade to Windows 7.  I had problems with a corrupted user account files, I couldn't see my devices and printers, can not use Windows Move Maker, cannot use some of the troubleshooting wizards. I

  • The message failed Stopped C3180 filter

    Print not now and stopped - "filter" message failed.  It's a C3180 all-in-One and excellent and reliable for 3 years.

  • Just try installing the SDK makes me crazy

    A few months ago the QNX Momentics 10.2 I downloaded was working fine until suddenly, the pacemaker stopped working. I gave up sorta trying to develop my App. recently, I decided to pick it up again, but I have so much to download files (I know that