problem with sql default_where statement

Hello gurus


I use forms 6i, shaped with blocks of data AREA and the area euro1, their sources of data are derived from a table of unique 'space '.

right side of the form displays the list of all the domain names (one attribute in a table) inserted before the trigger of when_new_form instance (i.e. Grenier1 block).

by clicking on: AREA1.NAME I want to execute the details of corner table block area...

to do this, I specified trigger on_mouse_click
   go_block('area');
   execute_query;
and I call it a procedure on prior request

Matching(:Area1.Name);


Code of procedure of correspondence is

PROCEDURE matching(c_name in varchar2) IS
sql_state varchar2(100);
BEGIN
  
  
  
   ----- if not null then
        
        if c_name is not null then 
        sql_state := 'UPPER(name)  like ''%'''||UPPER(c_name)||'''%'''; 
                 set_block_property('area',default_where,sql_state);     
        else
              message('feild is empty');
              end if;
         exception when others then
              display_error;
  
  
END; 
It works only 2 or 3 times, but now it gives me the error FRM-40505 unable to execute the query
There is no any element non-base of data on two blocks of

What can be the problem, please


Thank you
like ''%' ||UPPER(c_name)|| '%''';

Tags: Oracle Development

Similar Questions

  • Having problems with SQL Developer connection to the database on a LINUX machine

    Having problems with SQL Developer connection to the database on a LINUX machine
    Hello
    I am trying to connect my machine to windows 7 Home premium to an oracle database 11 g on RedHat 5 machine using SQL Developer. I got this error on SQL Developer
    Status: Failed - Test has failed: the network adapter could not establish the connection


    on Linux
    LSNRCTL> status
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    STATUS of the LISTENER
    ------------------------
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    Start Date                03-APR-2013 16:13:13
    Uptime                    7 days 22 hr. 16 min. 41 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
    Listener Log File         /u01/app/oracle/product/11.2.0/db_1/network/log/listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=172.X.X.X)(PORT=1521)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "orc11g" has 1 instance(s).
    Instance "orc11g", status READY, has 1 handler(s) for this service...
    Service "orc11gXDB" has 1 instance(s).
    Instance "orc11g", status READY, has 1 handler(s) for this service...
    Service "orc11g_XPT" has 1 instance(s).
    Instance "orc11g", status READY, has 1 handler(s) for this service...
    The command completed successfully
    LSNRCTL>
    and TNSPING
    tnsping 172.x.x.x
    
    TNS Ping Utility for Linux: Version 10.2.0.1.0 - Production on 11-APR-2013 14:32:17
    
    Copyright (c) 1997, 2005, Oracle.  All rights reserved.
    
    Used parameter files:
    /u01/app/oracle/product/11.2.0/db_1/network/admin/sqlnet.ora
    
    Used EZCONNECT adapter to resolve the alias
    Attempting to contact (DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=172.x.x.x))(ADDRESS=(PROTOCOL=TCP)(HOST=172.x.x.x)(PORT=1521)))
    OK (0 msec)
    [oracle@ltebilling ~]$
    Tnsnames.ora on Linux,
    ORC11G =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 172.x.x.x)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orc11g)
    )
    )
    Listner on Linux,
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /u01/app/oracle/product/11.2.0/db_1)
    (PROGRAM = extproc)
    )
    )
    
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 172.x.x.x)(PORT = 1521))
    )
    )
    hosts/ect/Linux,
    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    127.0.0.1               localhost.localdomain localhost
    172.x.x.x             LTEBilling
    and there is no problem to ping linux from windows

    Published by: user11309581 on April 11, 2013 15:16

    user11309581 wrote:
    as I have already desciped earlier, I can't connect to the server throw Linux my Windows SQL Server, with error message below.
    tatus: failed - Test has failed: the network adapter could not establish the connection

    It's too generic to mean anything. The application is hidden the real error message. You got when you did the tnsping and obtained "TNS-12535: TNS:operation has expired. Now THAT's an error.

    This indicates a problem firewall and routing. You said earlier you could ping the server, but now we see tnsping fails. Two different protocols of usage, so that both the successful ping turns out a valid physical path, it guarantees not that all traffic will pass. What happens with

    c:\ telnet 172.x.x.x 1521
    
  • Connection problem with SQL Developer 3.0.0.4

    I have a strange problem with SQL Developer (SD) 3.0.0.4. So that the implementation of a new connection I have in double entries listed for some of the databases listed in my TNSNAMES.ora file. When I try to connect to one of the databases has entered duplicated, I get the following Oracle error:
    ORA-01034: Oracle not available ORA-27101: Kingdom does not exist SVR4 shared memory error: 2: no files or directory
    however, if I try to connect to the same database using SQL * more or TOAD, it works perfectly and TOAD has no duplicates.

    At first, I thought maybe that SD has been reading multiple copies of the TNSNAMES.ora so I checked and removed all the duplicate files and set the variable of environment TNS_ADMIN to point to that and the single instance of the TNSNAMES.ora file. Yet once, SQLPlus and TOAD to work fine, but SD is always showing entries twice and always have reported the above error when I try to connect to a database with a duplicate entry. I should mention, I'm able to connect to the database that have only a single entry listed use SD.

    If I understand correctly, SD uses JDBC as underlying connection mechanism. Based on this "agreement" I thought that maybe I had a file corrupted in the Java Cache, so I cleared the cache, but I always get errors.

    As mentioned, I use SQL Developer 3.0.0.4 with Java 1.6.0_11 (included in the download). In addition, I have installed JRE 1.6.0_24 and I am running Windows XP SP3. Any ideas or suggestions are greatly appreciated.

    Craig...

    Hi Craig,.

    Or, if I have misunderstood completely the scenario you describe, here's a post on the forum about duplicate entries appear in the drop-down list Alias network when the connection Type is TNS:

    Developer SQL 2.1.0.63 TNS name in characters of the connection

    This solution involves clean a bad TNSNAMES. ORA file with double score entries to test the death of SID.

    -Gary

  • What is the problem with this WHERE statement?

    What is the problem with this WHERE statement?

    < cfquery datasource = "manna_premier" name = "kit_report" >
    SELECT SaleDate,
    TerritoryManager,
    Distributor,
    DealerID,
    Variable,
    US_Dealers.ID,
    DealerName,
    DealerAddress,
    DealerCity,
    DealerState,
    DealerZIPCode
    Orders, US_Dealers
    WHERE US_Dealers.ID EQ DealerID AND SaleDate BETWEEN #CreateODBCDate (FORM. Implementation) # AND #CreateODBCDate (FORM. End) #.
    ORDER BY SaleDate
    < / cfquery >

    It's driving me crazy!

    Syntax error (missing operator) in query expression ' US_Dealers.ID EQ DealerID

    You accidentally use the CF equals operator: "EQ".

    Instead of MS Access: «=»

    [Macromedia] [SequeLink JDBC Driver] [ODBC Socket] [Microsoft] [ODBC Microsoft Access driver]...

    in a query expression. AND SaleDate BETWEEN #10/1/2009 #-October 18, 2009 #'.

    I don't see how CreateODBCDate() would produce these values.  But maybe it's just a quirk of the error message?

  • Print SQL with SQL output statements

    I am a student in learning SQL for Oracle 10 g.
    Our missions are typically a set of problems that have an SQL statement as the solution.
    We pass in the SQL statement and SQL output generated by the statement.
    I use SQL Developer to create my scripts, print my files, etc. Very convenient.
    I want to be able to do is to somehow combine the two impressions that I always generate.
    So I would like to have a report which has my SQL statement (Select * From Customers ;) and)
    the output of SQL that has generated this statement.
    Anyway is to do it with SQL Developer? Or maybe in another tool?

    Thanks for any help!

    Just this question before your scripts:

    set echo on

    Have fun
    K.

  • Specific problem with pimples and States

    Hello

    I firstly apologize for use Google Translate :-(

    I have a problem with InDesign does not resolve. That's a digital publication.

    My goal is:

    A 'Gallery' button and the image of the ball appears with three buttons: "Previous Image", "Next Image" and "narrow Gallery.

    I don't want the Gallery either visible, or buttons that control, until the 'Gallery' button, so I think that all the buttons except 'Gallery' by selecting the option 'hidden until this active'.

    I want the gallery and the buttons that control, disappears when I press the "Close Gallery" button.

    What I call 'Gallery' is an image that fills the screen.

    After you have placed the image on your site have become the button property "Hidden until this that active."

    Then convert this key in order to several States (what I will call 'button States') and by successive Governments with the pictures I want to show in the gallery.

    I think that the interactions between the buttons.

    When the 'Gallery' button I attribute the following "I click on the '.

    -"Go to the State."

    -Hide the "Gallery".

    -Show 'narrow Gallery.

    -Show "previous image".

    -Show "next image".

    -Show "States of the button.

    "Previous Image" and "Next Image" buttons are assigned, respectively, to go to the previous state and go to the next State.

    When "Close Gallery" button I attribute the following "I click on the '.

    -Show "Gallery."

    -Hide 'narrow Gallery.

    -Hide "previous image".

    -Hide "next image".

    -Show "States of the button.

    "Previous Image" and "Next Image" buttons are assigned, respectively, to go to the previous state and go to the next State.

    When "Close Gallery" button I attribute the following "I click on the '.

    -Show "Gallery."

    -Hide 'narrow Gallery.

    -Hide "previous image".

    -Hide "next image".

    -Hide the "States of the button.

    I put it to the top and works correctly until I press "close". Then I hide buttons "Close Gallery", "previous image" and "next image" but it keeps me visible "Button States" showing the last image that was shown.

    Don't know how to solve this problem, and I'm going crazy!

    Please can someone help me?

    Maybe the solution is another approach, but without using "Folio overlays.

    Thank you very much.

    I moved your post to the DPS forum.

    I'm afraid of how you do this will not work with DPS.

    This should all be done with a multi state object. The first State would contain anything other than a button to access the first State. After that, set up each State with the appropriate buttons. Without seeing the file, it's a little hard for me to imagine exactly what you want to do.

  • Problem with SQL Loader ODI

    Hello

    I have problems using SQL Loader with ODI. I am filling an oracle table with data from a txt file. Initially, I had used 'File to SQL' LKM, but due to the size of the file (700 MB) source, I decided to use 'file to Oracle (SQLLDR)' LKM.
    The error that appears in myFile.txt.log is: "SQL * Loader-101: invalid argument for the name of user and password.

    I think the problem might be in the definition of the database server (physical JavaBeans in topology), because I left empty Host, user and password.

    What is the problem? What host and user should I use? With "File to SQL" works fine living that white, but takes too much time.

    Thanks in advance

    Note the last * @*. He expects a connection string after him.

    So, goto Oracle server topology, specify Instance/Dblink (server) as the SID of the oracle database you want to connect.

  • Problem with SQL Developer to capture

    Hi guys,.

    I am facing a problem for the last 4 days with SQL Developer. I use to migrate sql database to oracle SQL Developer. It worked well before and I had migrated some tables as well. But all of a sudden a few days before I had a mistake, I was unable to capture the objects. While I am trying to capture the sql database or the tables the progress dialog box is displayed as usual, but he suddenly gets hit and the green light turns red which is in the upper left corner. Said at that time, the progress message that appears at the bottom of the box +' stored jdbc:jtds:sqlserver: / / < hostname >: < port > / < the database name > ' +. But if I use another oracle server, then I can capture objects.

    Because of this error, I'm not able to go forward. I tried to solve this problem in many ways. But nothing helps! Please help me solve this problem, as it's an emergency.

    Thanks in advance.

    RAM.

    Published by: Ram Dhilip on March 22, 2010 08:16

    Published by: Ram Dhilip on March 22, 2010 08:16

    Published by: Ram Dhilip on March 22, 2010 08:19

    Published by: Ram Dhilip on March 22, 2010 08:34

    You can use the method of capture in offline mode:
    Click on tools-> Migration-> third party database offline Capture-> Capture database creation scripts
    Now select the output directory of these scripts and the source database. Also, make sure that you have selected the Batch mode. Once this is done, copy all scripts on a computer with an installed SQL Server client or perform the export on the SQL Server computer directly.
    Run the script and you'll get 2 directories with a couple of DAT files created. ALL switch to SQL Developer machine and load them into the SQL Developer
    Click on tools-> Migration-> third party database offline Capture-> Capture Script output load of database

  • Problem with 'if - ElseIf' statement with the mouse, click.

    I'm having a problem with the code IF ELSE use with a mouse click. I want whenever a user 'clicks' I want to run a particular block of code, up to 3 clicks, then nothing. I tried var meter click local and global but can't seem to cross the first '' if. '' That's what I have now (I use console.log () to keep track.

    Ready model I create a global var...

    Enter the code to run when the composition is fully charged here
    sym.getComposition () .getStage () .setVariable ('clickcnt', 1); //Set 1 meter

    var i = sym.getComposition () .getStage () .getVariable ('clickcnt');

    Console.log ("count starts at"+ i ");


    on the stage, I create an event 'click '...

    Insert the code for the mouse, click here
    var i = (sym.getComposition () .getStage () .getVariable ('clickcnt');)
    If (i = 1) {}
    Console.log ("counter is =" + i);
    c code
    sym.getComposition () .getStage () .setVariable ('clickcnt', 2); //Set against 2
    }
    ElseIf (i = 2) {}
    Console.log ("counter is =" + i);
    c code
    sym.getComposition () .getStage () .setVariable ('clickcnt', 3);
    //Set against 3
    }
    ElseIf (i = 3) {}
    Console.log ("counter is =" + i);
    c code
    sym.getComposition () .getStage () .setVariable ('clickcnt', 4);
    //Set against 4 to take away
    SYM. Play (100); //play scenario animation
    }
    else { //I'm using it to deny any additional clicks.} I don't know there is a good way to do this. I don't know him
    SYM. Stop (1000);
    Console.log ("End");
    }
    ;

    I when I run this it never happened the first if it's like the 'clickcnt' var is not getting updated or read correctly.

    Thank you

    Joel H

    try if (I == 1) double equal.

  • The problem with SQL after the migration of the database to another machine

    Having a SQL strange problem trying to extract a database being moved from one machine to the other.  Both machines are running SQL 2008 32-bit and are both Windows 2008 servers.  When I try to backup the database using the SQL tools and restore the. BAK file on the new SQL Server, I get the following error:

    Restore failed for server 'servername' (Microsoft.SqlServer.Smo)
    Additional information:
    System.Data.SqlClient.SqlError: RESTORE detected an error on the page (44:2097184) in database 'RestoreDBName' read from the backup set.

    Similarly, when I am trying to copy the. MDF and. LDF files to the new server and tie them, I get the following error:

    Attach the database failed for the server 'servername '.
    Additional information:
    An exception occurred during the execution of a Transact-SQL statement or batch.
    A system assertion failed.  An assertion failure is usually caused by a corruption of data or software bug.  To check the database, consider running DBCC CHECKDB.  If you have agreed to send images to Microsoft during installation, a mini dump will be sent to Microsoft.  An update can be an available from Microsoft in the latest Service Pack or a QFE from Technical Support.
    Could not open new database 'NewDatabaseName' create a DATABASE is dropped.
    "" Location: "logmgr.cpp": 3277
    Expression: lfh-> lfh_startOffset is startOffset
    SPID:55
    PID: 292876 (Microsoft SQL Server, error: 3624)

    Everything I've read, these errors usually indicate some sort of database corruption.  However when I run DBCC CHECKDB on the database on the source server, it is up to perfectly don't own... None detected corruption.  In fact, this server hosts 8 different databases.  Departure from all the correct DB on the source server, none of them will restore however to a new server using one of the methods above.  I'm having a hard time to believe that each of them could be corrupted when they show absolutely no indication of a problem.

    Anyone have any ideas?

    Try to make the backup and restore via SQLCMD (or via a query in SQL Server MS window).

    The backup will be the following (obviously, change "MaBase" and "D:\BACKUPS" to some database and the location you wish to save - just using for example):

    BACKUP DATABASE MyDatabase

    TO DISK = 'D:\BACKUPS\MyDatabase.bak. '

    WITH NOFORMAT, NOINIT,.

    NAME = 'Database MyDatabase - Full Backup',

    NOREWIND, NOUNLOAD, STATS = 10, SKIP

    Copy your backup to the other server and file make:

    RESTORE the DATABASE to MyDatabase

    FROM DISK = 'E:\Backups\MyDatabase.bak' WITH FILE = 1,

    GO to "MyDatabase_Data" to "E:\SQLDATA\MyDatabase_Data.mdf,"

    GO to "MyDatabase_Log" to "E:\SQLLOG\MyDatabase_Data.ldf,"

    NOUNLOAD, STATS = 10 REPLACE

    Again, change your names and locations in function.

    If this does not work, try to restore a database by third-party tools. You can find them in Google. If you don't want to spend the time to research, you can try a tool SQL Server Recovery Toolbox. All the details about this program on the link. http://www.oemailrecovery.com/sql_repair.html

  • Other new lines in SQL script file and problem with SQL * more

    Hi all


    I would like to ask a question on the characters of new line inside files SQL scripts. I have a very long SQL query, stored in a file txt (ANSI encoding). Because query instructions are very long (several table joins and WHERE conditions) tried to separate, WHERE and ORDER BY clauses by inserting several new characters of lines (just hit the entrance) among them in order to improve the clarity of the source code. Now the problem is, whenever these newline characters are inserted in the file, apparently SQL * Plus cannot parse the file properly and gives me the following error message:
    SP2-0042: unknown command "FROM" - rest of line ignored.
    SP2-0734: unknown command beginning "myenterpri..." - rest of line ignored.
    The problem is definitely related to these new line because characters that when I remove them, the scripts runs without any problem. I would appreciate that you could kindly guide me how should I deal with this problem. Is there any SQL * Plus command to run to correctly interpret the new line characters?


    Thanks in advance,


    Kind regards
    Dariyoosh

    Hello

    In [SQL * Plus 9 | http://download.oracle.com/docs/cd/B10501_01/server.920/a90842/ch13.htm#1013073] (and), you can tell

    SET     SQLBLANKLINES   ON
    

    allow to completely empty rows in an SQL statement.

  • Problems with my timed State machien

    Hi all

    The project

    I'm trying to create a timed state machine that can scroll through a series of cooling-then-heating cycles, where every cold or heat function occurs during a specific period of time.
    For example, if I set the number of cycles to 20 cycles 'cool-then-heat', with a cool cycle lasts 10 seconds and a cycle of prolonged heat of 10 seconds, the program will run for 400 seconds and then stops.

    After initialization, a clock will start. In the cool loop, there will be a cool clock which is compared to all of the cool cycle time. If they are equal, continuous cooling, noto, if they are equal the progresses of program in a heat cycle.

    The cycle has estrogen to a clock of heat that will be compared to the heat set duration of the cycle. If hot clocks are not equal, heating continues, if they are equal the cycle estrogen is complete and the product is finished or running in another round of cool.

    Another round of cool is selected if the elapsed time (since the State apparatus has been initialized) matches both total managed program (i.e. the total length = 400 seconds).

    (I've also attached a drawing that explains the process I want schematically the state machine).

    The problem

    I have a few, but the first is I think I use the block of bad timing - in my VI, the clock of the tick is not starting from scratch when I press run. It is included in a while loop as I have reason to think it will be easier to run (for the computer) if I put a delay (without delay the state machine functions). Rather than from

    I have a small calculator that determines how long will be the run time in total (this value is compared to the length of time since the entry into force).

    If anyone no matter what other tasks that help sadjusting need me know - I'm very new to labview and want to pick up good practices on the way!

    There is also the express VI "out of time", you could use.

  • Problem with insert/update statements on the MS Access database

    Hi all

    Before posting this question, I did a search and found this thread.

    I have the same problem as pawel had (in this thread), i.e. cannot insert or update data in the Access database. However, the reason is not that I am using some keywords in my domain name - it has been several years using SQL, some things are 'unwritten' rules But this is the first time I try something in LV

    However, after losing all day for work that I expect to do the same morning in 1 hour, try many different options and debugging until the level low in the Toolbox of data base screw (building or higher), I saw some weird SQL statement being trained in-house - so I tried what Troy has tried.

    "password" is a reserved word in the Jet.  I just looked at MOManagers_M, but by changing the field "password" to 'passworda', it does the job.

  • Problems with SQL server 2008 nvarchar type varchar in oracle.

    Hello

    I did a heterogeneous connectivity between db to SQL server 2008, and Oracle 11 g, well, but when I try to display the data of colum on RPD (only the varchar type) I see only the first character of the string.

    One last thing, when I try to see the data on Oracle SQL developer, I get strange characters, like when we have the wrong character encoding in your browser.

    Some print to illustrate the problem.

    Query Oracle SQL developer:

    http://postimg.org/image/5cvyqw6ih/

    Developer Microsoft SQL query:
    http://postimg.org/image/skddx991f/

    Printscreen RPD:
    http://postimg.org/image/aok2337cp/

    SQLplus (as you can see are spaces between characters):
    http://postimg.org/image/664xw1xjh/


    To finish the data be used to build a mobile application with the oracle mobile app Designer.

    Thank you

    Hello  

    Thank you kgronau

    I've corrected this problem setting in the file gateway (in my case dg4odbc) HS_NLS_NCHAR = UCS2 init

  • Problem with Sql Loader

    Hi s/n,.

    I am facing problems when loading the dates in the database by using sql loader. My data file can have several date formats, so I have a function that interprets date and removes the time settings and the date of return.

    Something like that.

    For example:

    I have a table-

    CREATE TABLE TEMP1234

    (

    IDENTIFICATION NUMBER,

    DATE OF ASOF_DATE

    );

    Data file

    10001172 | 09/12/1945

    Control file:

    OPTIONS (DIRECT = TRUE, SILENT (FEEDBACK) =, skip = 0)

    DATA RELATING TO SUNK COSTS

    REPLACE

    in the temp1234 table

    ' fields completed by "|" possibly provided by ' "'

    TRAILING NULLCOLS

    (ID,

    ASOF_DATE "decode (: ASOF_DATE, null,:ASOF_DATE,conv_date1(:ASOF_DATE))).

    )

    Function CONV_DATE1:

    FUNCTION to CREATE or REPLACE conv_date1 (p_str IN VARCHAR2)
    DATE OF RETURN
    IS
    RETURN_VALUE DATE;

    p_str1 VARCHAR2 (15): = NULL;

    FmtArray TYPE IS a TABLE OF VARCHAR2 (30);

    g_fmts fmtArray
    : = fmtArray ("yyyy-mm-dd",
    "yyyy/mm/dd"
    mm/dd/yyyy"."
    "dd-mm-yyyy",
    "dd/mm/yyyy",
    "mm-dd-yyyy");
    BEGIN
    p_str1: = SUBSTR (p_str, 1, 10);

    BECAUSE me in 1... g_fmts. COUNTY
    LOOP
    BEGIN
    return_value: = TO_DATE (p_str1, g_fmts (i));
    EXIT;
    EXCEPTION
    WHILE OTHERS
    THEN
    NULL;
    END;
    END LOOP;

    IF (return_value IS NULL)
    THEN
    RAISE PROGRAM_ERROR;
    END IF;

    RETURN Return_value;
    END;
    /

    In this case, if the year in the data file shown in 1945, date which is load in the poster 2045 database.

    But when I run this function by putting a sql editor - it returns the correct value.

    Select double conv_date1('12/09/1945');

    Please help me understand what is causing the problem.

    I think there may be an implicit conversion going on with the combination of decode and checking nvl and function within SQL * Loader.  I put the nvl checking in function and simply use the function in the control file, as shown below.

    OPTIONS (DIRECT = TRUE, SILENT (FEEDBACK) =, skip = 0)

    DATA RELATING TO SUNK COSTS

    REPLACE

    in the temp1234 table

    ' fields completed by "|" possibly provided by ' "'

    TRAILING NULLCOLS

    (ID,

    asof_date ' conv_date1 (: asof_date).

    )

    FUNCTION to CREATE or REPLACE conv_date1 (p_str IN VARCHAR2)

    DATE OF RETURN

    IS

    RETURN_VALUE DATE;

    p_str1 VARCHAR2 (15): = NULL;

    FmtArray TYPE IS a TABLE OF VARCHAR2 (30);

    g_fmts fmtArray

    : = fmtArray ("yyyy-mm-dd",

    "yyyy/mm/dd"

    mm/dd/yyyy"."

    "dd-mm-yyyy",

    "dd/mm/yyyy",

    "mm-dd-yyyy");

    BEGIN

    IF p_str IS NULL

    THEN RETURN NULL;

    ON THE OTHER

    p_str1: = SUBSTR (p_str, 1, 10);

    BECAUSE me in 1... g_fmts. COUNTY

    LOOP

    BEGIN

    return_value: = TO_DATE (p_str1, g_fmts (i));

    EXIT;

    EXCEPTION

    WHILE OTHERS

    THEN

    NULL;

    END;

    END LOOP;

    IF (return_value IS NULL)

    THEN

    RAISE PROGRAM_ERROR;

    END IF;

    RETURN Return_value;

    END IF;

    END;

    /

Maybe you are looking for

  • Satellite Pro L450D-need fix WLAN Driver for XP

    I put Windows Xp on Toshiba laptop Satellite Pro L450D with drivers... The only driver I'm not 100% on is the Wlan driver for xp so I can use it wireless...Could someone please send me the correct link please... I now use a driver but I keep losing t

  • On Satellite L555-10R with Tempro and disc problems

    Hello The service the customer in France did not answer me, I bought a laptop thinking that the customer service was bad. Once more I'm wrong, I come from Acer and I to have the same quality of service after sale = zero. So, I'm here to try to get an

  • Network error when you try to update

    I have the Acer Iconia A200, game of Google tablet, I don't know what else you need for the info but I'm trying to make sure that it is updated. It has become very slow. When I go to check the software updates I get the message: "network - network co

  • Pavilion dv6t-2000: Post recover process reimage disk - windows update error code a 8024, 000

    Hello After replacing my old HDD with a new SSD, I successfully used my purchased 1 & 2 recovery discs to reload Windows 7 x 64.  Now, I am able to connect to the internet and navigate through Internet Explorer, but I can't get Windows Update to work

  • Copy of files and folder

    Could someone let me know how to copy my faulty hard drive data? My hard drive, I can open normally and see all the files and folder on there, but when I perform to copy all the files and folder to others files, some files and secure hard drive can c