issue of pl/sql instead of point

Hello

I want to insert the tel. PRIJS (varchar2, only amounts with a point) value to lin.attribute3 (varchar). But instead he insert the point it inserts a paragraph.

What can cause this? See the below script

ALTER SESSION SET NLS_LANGUAGE = "TO THE AMERICAN";

MERGE IN okc_k_lines_b lin

With the HELP of such xxdpi_temp1_elge

WE (lin.dnz_chr_id = this. HDR_id)

WHEN MATCHED THEN

Lin.attribute3 UPDATE SET is such. PRIJS

where 1 = 1

and STS_CODE = 'SIGNATURE'

AND flax. LSe_ID = 9

Thanks to advanged!


Concerning

ELCO

Check if it has something to do with NLS_NUMERIC_CHARACTERS

SQL> alter session set nls_numeric_characters=', ';

Session altered.

SQL> select 999.99 val from dual;

       VAL
----------
    999,99

SQL>

Tags: Database

Similar Questions

  • Issue of Oracle SQL Developer when you use VPN (Cisco)

    All,

    We have a somewhat obscure issue with connectivity SQL Developer to our databases of the laptop has distance from the employee.

    The database is hosted inside our firewall and when the employee is trying to connect to the database that it receives the following error message:
    + "Encountered error: an error has occurred to perform the requested operation: the network adapter could not establish the connection." Code provider 20 "+"

    I think maybe I saw the error at some point as well...
    Status: Failure-Test failed: IO error: the network adapter could not establish the connection

    Note: It gets this error when you are connected to our VPN & so that it can connect through SQL * more on that same basis. It gets the error without worrying if he uses the option to enter tnsnames in SQL Developer or if it uses the "basic" connection type

    What is interesting, is that if he disconnects the VPN, will turn off its wireless connectivity, then hard-wire in our network, it can connect, without issue.

    The strangest part for me, is that although it cannot connect to the database using SQL Developer, it can connect through SQL * more. It can ping the IP source address very well, he can tnsping database without problem, it can connect through SQL * Plus, it just cannot connect through SQL * Developer. Since SQL * more and tnsping work, I know that it can access the db server through port 1521, so I don't think it's a problem of port.

    Another weird thing: when it connects to our network via a 'old' virtual private network (VPN open) there is no problem.

    His machine is Windoz 64 bit (HP laptop) and it uses the latest version of the SQL Developer and a JAVA virtual machine.

    Also interesting: I also have a Windoz 64 bit computer laptop (Lenovo) and I don't have the same issues, as it does. I am however running an older version of SQL Developer and probably an older JVM.

    I dug around a bit, looks like maybe it has something to do with IPv6? No idea what to do next, except have my network guy look at the logs of firewall to try to grasp where the connectivity has been ignored.

    Any ideas or suggestions would be appreciated. I tried all sorts of things (giving him my file tnsnames.ora and sqlnet.ora, manually editing these files, try IP addresses instead of host names, host names I tried with the doman.org extensions, etc.).

    Still, any suggestion would be appreciated and I thank very you much.

    Rich

    Published by: rmurnane on October 23, 2012 10:58

    If it is IPv6, you can try adding

    AddVMOption -Djava.net.preferIPv4Stack=true
    

    at \sqldeveloper\bin\sqldeveloper.con

  • How to avoid performance issues in PL/SQL?

    How to avoid performance issues in PL/SQL?

    According to my knowledge, below a few points to avoid performance problems in PL/SQL.
    Is there any other point to avoid performance problems?

    1. use FORALL instead of the FORUM and GATHER in BULK to avoid a loop several times.
    2. RUN IMMEDIATE is faster than DBMS_SQL
    3. use NOCOPY for OUT and IN OUT if the original value need not be retained. Overhead of keeping a copy of OUT is avoided.

    Thanks for your comments Justin!

    BC explains things right on part SQL...

    http://www.DBA-Oracle.com/art_sql_tune.htm

  • Machine virtual SQL & vCenter (easy points)

    Asked at a meeting today about our plan to upgrade to vSphere (ESX4).  Our biggest hold back is an expired SQL Server that can accommodate the vCenter DB.  We will set up a new SQL 2008 Server, I want to be single VM stand instead of the way we now installed it on the physical server vCenter.

    Respect to water them with the possibility of having a host to sleep that running this SQL server computer and the DB vCenter and she would all bring to its knees.  I know there are a lot of documents about vCenter running as a virtual machine, and if a host falls down running it HA is already configured on the host to restart the virtual machine on a different server, and life is good.  I said I was sure that would be the same thing about SQL server than relys vCenter but wasn't sure at 100% to 99% because we never tried it nor have I tested it yet.

    So easy points, are valid thoughts, or am I missing something that the SQL database for vCenter is more important and could cause problems down the road if it disconnects?

    • Kyle

    Yes, HA will restart the virtual computer, it doesn't care the application inside. Thus, if the ESX host that hosts your vCenter or VCDB goes down, it will be restarted on another host in the cluster.  Yes, manual intervention of the vCenter Server Service may be necessary.

    A good way to backup the SQL backup.

    One thing to consider, if you have the admission control located on your cluster, you might consider affecting the restart of high priority for vCenter and the VCDB, just so that if there are claims to resources, they will start first.

  • I wonder if this can be done with a sql instead of a code pl\sql' in SQL and PL/SQL

    delete

    @OP,

    As Frank said expected according to the sample data will be very useful.

    If I understand you correct, so what follows is the output you want (Unabridged). Is this correct?

    ECON 2555 three courses: [(ECON 1101 ou 101) or (won ECON 1101 with placement)] AND [(ECON 1102 ou 102) or (won ECON 1102 with placement)] AND [(MATH 1600-3999 ou 161-399 ou (Placement en MATHS 1700) or (Placement in MATH 1750) or (Placement in MATH 1800) or (Placement in MATH 2000 level))]

    If so the following query would start point... just to show that this is possible in SQL (no need for PL/SQL)

    There is some lack of consistency between your description and examples of data.

    You said

    Won ECON 1101 with investment coming from TVATTS_DESC = ECON:

    However sample data contains NO any row for ECON in TVATTS_DESC

    Also, I made several ASSUMPTIONS about your model and data according to the data from the sample, so this request may not work for your real cases. In any case this query should give you a good starting point (I hope).

    > film format A60 outstr col

    > with x as)

    SELECT

    AREA                 ,

    TERM_CODE_EFF,

    SSET                  ,

    SUBSET,

    SUBJ_CODE,

    CRSE_NUMB_LOW,

    CRSE_NUMB_HIGH,

    ATTS_CODE,

    TVATTS_DESC,

    -case when a.subj_code is null then substr (b.tvatts_desc, 1, instr(b.tvatts_desc,':')-1) to another a.subj_code end drvsubj_code

    Of

    SMRACAA_TEST has,

    TVATTS b

    WHERE AREA = "ECON2555."

    AND ATTS_CODE = TVATTS_CODE

    order by Tess, subset)

    , like)

    Select x.*

    ,

    case

    When the tvatts_desc is not null then ' (Placement in ': substr (tvatts_desc, instr(tvatts_desc,':') + 1) | ")' »  || ' '

    When the crse_numb_high is not null then subj_code | ' '|| crse_numb_low | '-' || crse_numb_high | ' '

    When crse_numb_high is null and row_number() over (partition of domain, Tess order by subset) = 1

    then ' ' | subj_code | ' '|| crse_numb_low | "or" | Lead (crse_numb_low) over (partition of domain, Tess order by subset)

    Another null

    end tvstr

    x where drvsubj_code is not null

    )

    Select the separate area, listagg (tvstr) Group (order by null) on outstr (partition by area)

    of y;

    OUTSTR AREA

    ---------- ------------------------------------------------------------

    ECON2555 ECON 1101 or ECON 101 1102 or 102MATH 1600-3999 MATH 162-39

    9 (positioning in MATHEMATICS 1700) (placement in MATHEMATICS 1750) (Placeme

    NT in MATHEMATICS 1800) (Placement in MATH 2000)

    I hope this helps.

  • Fast and slow when issued by app SQL query on the issue mnaually

    Hello

    I have a more general question concerning a specific behavior of Oracle.

    I update a feature of an application. The application is not responding and I finally put end. I checked Oracle if a request is long running by using the following statement:

    Select s.username,s.sid,s.serial#,s.last_call_et/60 mins_running, q.sql_text from v$ session s
    Join v$ sqltext_with_newlines q
    On s.sql_address = q.address
    When status = 'ACTIVE'.
    Type <>'BACKGROUND '.
    and last_call_et > 60
    order of sid, serial #, q.piece


    The result of the above query is:

    WITH CONNECTION AS (SELECT * FROM WW_CONN C WHERE (C.FID_FROM I))
    N (SELECT FID FROM WW_LINE WHERE FID_ATTR =: B1) AND C.F_CLASS_ID
    FROM = 22) OR (C.FIDto IN (SELECT FID FROM WW_LINE WHERE FID_AT))
    TR =: B1) AND C.F_CLASS_ID_TO = 22)) SELECT MIN (P.FID_ATTR) AS FI
    CONNECTION C, WW_POINT D_FROM P WHERE (P.FID = C.FID_FROM A
    C.F_CLASS_ID_FROM ND = 32 AND C.FLOW = 1) OR (P.FID = C.FID_TO
    C.F_CLASS_ID_TO ND = 32 AND C.FLOW = 2)

    I have another tool that shows me the connection parameter values. So I know that the value of: B1 is 5011 - the id of the feature updates. This query runs for 20 minutes and finally more time stops in front of him. The update process involves several sql statements - if it does not have the update, but is part of the process.

    Here's the bit I don't understand: when I run the query in SQL Developer with value 5011: B1 it takes 0.5 seconds to return a result.

    Why did the sql statement taking so long on the issue by the application, but takes less than one second when I run it manually?

    I sent a dump of the data to the vendor of the application that is not able to reproduce the problem in their environment. Could someone explain to me what is happening here or give me key words for the search?

    We use 11 GR 2, 64-bit.

    Thank you very much
    Rob

    Hi Rob,

    at least, you should see some differences in the statistics for the child cursor different (one for running the application must show at least a higher value for ELAPSED_TIME). I would like to use something like the following query to verify the information for the child cursors:

    select sql_id
         , PLAN_HASH_VALUE
         , CHILD_NUMBER
         , EXECUTIONS
         , ELAPSED_TIME
         , USER_IO_WAIT_TIME
         , CONCURRENCY_WAIT_TIME
         , DISK_READS
         , BUFFER_GETS
         , ROWS_PROCESSED
      from v$sql
     where sql_id = your_sql_id
    

    Concerning

    Martin

  • Wireles Mobile Mouse 4000 instead of pointer, I get a distorted square.

    How to solve the mobile mouse 4000 on the desktop into a distorted square pointer wireless?

    Have you tried...
    Start > settings > Control Panel > mouse > pointers

    I hope this helps.

  • Issue of database SQL-lite

    If I created a sql database - lite in my application and the database is created when the application starts, how I would write a condition statement to not recognize the creation of database code?

    Is there a better way to do what I'm trying to do here I saw more?

    Here's my code for creation of data base that I want to only be invoked if the database is not present and must be created:

                      try
            {
                URI myURI = URI.create("file:///SDCard/flash.db");
                d = DatabaseFactory.create(myURI);
                d.close();
            }
            catch(Exception e)
            {
    
            }
    
            try
            {
                URI myURI = URI.create("/SDCard/flash.db");
                d = DatabaseFactory.open(myURI);
                Statement st = d.createStatement("CREATE TABLE 'Restaurant' (  'Experience' TEXT, 'Date' TEXT)");
                st.prepare();
                st.execute();
                st.close();
                d.close();
            }
            catch(Exception e)
            {
    
            }
    

    You must use FileConnection, look at this code example.

            url="file:///SDCard/Databases/flash.db";
            if(f==ok)
            {
                try
                {
                    FileConnection fc=(FileConnection)Connector.open(url, Connector.READ_WRITE);
                    if(!fc.exists())
                    {
                        URI uri=URI.create("file:///SDCard/Databases/flash.db");
                        d=DatabaseFactory.create(uri);
                    }
                    else
                    {
                        Dialog.alert("File Exits! Proceed");
                    }
                    d.close();
                }catch(Exception e)
                {
                    System.out.println(e.getMessage());
                    e.printStackTrace();
                }
       }
    

    ------------------------------------------------------------------------------------
    Kudo press to say thank you to the developer.
    Also, press accept it as a button when you got the Solution.

  • sdcli on linux launches full developer SQL instead

    SQL Developer version: 4.1.1.19

    Java version: 1.8.0_51

    Version of Linux. RedHat 7.1

    Any idea?

    Thank you.

    Fixed.

    I added the $PATH with the sdcli path (ex: / tools/sqldeveloper/sqldeveloper/bin) and command line interface is properly launched.

  • Issue of Oracle SQL Developer

    Hello

    The problem is that when I execute queries "heavy" through SQL Developer (v. 4.1.1.19 or back) the IDE does not meet any other action during the execution of the query (queries) (I can't cancel the task). I mean if want to connect to another diagram or choose an option from the menu of the IDE, then I have to open a second window of SQL Developer. Why is it so... Is this something I did wrong?

    After further investigation, I think that the following tips will help you to avoid situations where a request seems to have been cancelled but...

    1. He continues to run on the DB.

    2. subsequent attempts to use or to break this connection are blocked.

    3. another action (as if we were trying to close SQL Developer) causes the interface user to hang completely.

    Your first choice should be to install an Oracle client (full or instant) and configure SQL Developer in Tools > Preferences > Database > advanced to use the JDBC OCI/thick driver.

    If you do not want to install an Oracle client and prefer to use the JDBC Thin driver by default, then adding this to the file sqldeveloper.conf to your installation should help:

    AddVMOption - .net .disableOob Doracle = true

    The full dump thread you provide merely reflects the fact that the request does not actually get cancelled, the login is locked, and any other attempts to use it will hang. Anyway, as long as the user interface does not block, even if a request did not get cancelled at the DB level you should always be able to do things like...

    1. open an unshared connection (Ctrl + Shift + N) of the worksheet occupied this connection.

    2. create another name of the connection with the same details as the locked connection and use it.

    3. open Tools > Sessions of the monitor for a user with enough power and kill the hanging session using the menu popup kill .

    I hope this helps.

  • Issue multiple exe SQL Developer 4.0

    Hello

    In our application, we do an action dependent on sql client exe. Our application supports several client sql but we are facing problem for sql developer 4.0 support as there are four exe for this customer.

    1 sqldeveloper.exe

    2 sqldeveloper64.exe

    3 sqldeveloper64w.exe

    (4 sqldeveloperw.exe)

    When we launch developer sql 4 one of the tracks of these four exe based on certain conditions. (Not sure, but it could be based on OS)

    Can someone tell me on what condition these exe runs, so that I can put this condition in my code.

    Thank you

    Saurabh

    Ask your application to look in the parent directory exe - it handles the logic for you

    two are 32-bit, two are 64-bit - then look at the jdk level bit

    two are for debugging, the two are not

  • Issue of PL/SQL - conversion 250 char column field in lines - 1 characters per line

    I recently started working in Oracle TOAD and was given the task of creating a SQL statement that will take eight fields of 250-column of a table and convert them to 2000 lines with line numbers.

    I have no idea how to read character by character (most of the characters being blank).

    How to use a variable which increases the value of a?

    I tied Select substr(myFieldA,varA,1) from myTable

    but he dislikes the variable, also how to make the statement in a loop.

    My result will be similar to:

    0001 THERE

    N 0002

    0003

    0004 ARE...

    0251 N

    0252

    0253. THERE

    Any help will be greatly appreciated

    and a few different ideas...

    with t as)

    Select c1 'abcdefhijk', '123456789' c2, c3 "ABCDEFGHIJK" of the double

    ), -t is a test of the single line "table" with 3 columns of 10 characters each

    counter that)

    Select the level of double connect by level<= 3="" *="">

    ) -meter is an array of column unique return of 30 lines with i from 1 to 30

    Select counter.i rn,

    substr (t.c1 | t.c2 | t.c3, counter.i, 1) c

    t, counter - just them unite

    order of counter.i;

  • Issues of weird in replication time Point

    I asked questions when you specify until WHAT the clauses in the RMAN clones.

    For example, suppose we have a RMAN full backup of the source database taken Thursday night at 22:00 which is completed by 23:00.

    Then on Friday, I indicate in my RMAN clone one hour Friday from 05:00 UNTIL. Instead of using the backup from Thursday night and roll forward six hours, RMAN uses the full backup on Wednesday night and rolls forward 30 hours.

    Or on other occasions it will cancel the Wednesday and just stop rolling forward, just after midnight.

    This is the script used when cloning

    connect target sys / * @ < SOURCE >

    auxiliary connection.

    Run {}

    DUPLICATE the TARGET < helper > DATABASE

    until time ' TO_DATE (November 22, 2013 02:00 "").

    LOGFILE, GROUP 1 ('+ DATA) 250M, SIZE

    GROUP 2 ('+ DATA') SIZE 250 M,

    GROUP 3 ('+ DATA') SIZE 250 M,

    GROUP 4 ('+ DATA') SIZE 250 M;

    }

    Look at the Notes of the Oracle:

    Bug 11694127 - RMAN DUPLICATE not to honor TIME portion of the date for 'Until' [11694127.8 ID]

    Recovery Rman Duplication time does not Match specified until the time Clause [ID 1300348.1]

    see if they apply.

    Hemant K Collette

  • utils is a packege so should I use the SQL instead of utils.

    Hello

    everything in translating my MS in mssql to oracle is converted into code bit: utils

    utils is a set I think so is it good to use it or do I find any equivenlent sql function.

    so please tel me oracle sql function for utils.patindex ();

    Yours sincerely

    An Oracle database is not delivered with a package called "utils". We have no idea what is this package. We do not know what it contains.

    If someone in your organization or a tool that you use to convert the SQL Server T - SQL code to Oracle PL/SQL code created a package which simulates some T - SQL functions, you must determine if it is useful to use this package or using the built-ins Oracle. It may be wise to normalize the using the utils package if the hope is that the vast majority of the code will be converted by a tool and not touched by man so that there is consistency between the code base. It may be wise to normalize the Oracle built-in functions if the goal is to make easily understandable code for Oracle developers who do not know the T - SQL functions that are simulated. This isn't something that we can answer for you.

    Justin

  • Calendar holiday table logic required in sql instead of pl sql

    My fn_test function calculates the date of-1. And if it's a holiday according to the temp_calendar of the table, and then call it recursively the fn_test again to-1. In this case until I get a holiday, no date.
    I've implemented as follows:

    But I can have a single SQL do which is more effective?


    Drop table temp_calendar;
    Create table temp_calendar)
    Identification number,
    date of vacation);

    Insert into temp_calendar values (1, "January 5, 2012'");
    Insert into temp_calendar values (1, ' 6 January 2012');
    Insert into temp_calendar values (1, 10 January 2012 ');
    Insert into temp_calendar values (1, ' 2 February 2012');
    Insert into temp_calendar values (1, 11 February 2012 ');
    Commit;

    FUNCTION to CREATE or REPLACE fn_test (in_date IN DATE)
    DATE OF RETURN
    IS
    v_pr_day DATE;
    BEGIN
    v_pr_day: = in_date-1;
    BY Calendar_Dates (holiday SELECT FROM temp_calendar)
    LOOP
    IF (v_pr_day = Calendar_Dates.holiday)
    THEN
    v_pr_day: = fn_test (v_pr_day);
    END IF;
    END LOOP;
    RETURN TRUNC (v_pr_day);
    END fn_test;
    /

    Select double fn_test('8-JAN-2012'); -Returns Jan. 7 as no holiday in the temp_calendar table.
    But select double fn_test('7-JAN-2012'); -Returns Jan 6 4 and 5 is holidays in the temp_calendar table.


    Thank you...

    Hello

    It could do:

    create or replace FUNCTION fn_test (in_date IN DATE)
    return date
    is
            l_ret date;
    begin
            select startdt-1
            into l_ret
            from (
                    select min(holiday) startdt, max(holiday) enddt
                    from (
                            select id, holiday, holiday-(row_number() over (order by holiday)) grp
                            from temp_calendar
                    )
                    group by grp
            ) v
            where in_date-1 between startdt and enddt;
            return l_ret;
    exception when no_data_found then
            return in_date-1;
    end fn_test;
    /
    

    Test:

    [11.2] Scott @ My11g > l
      1  declare
      2  l_date1 date := to_date('8-JAN-2012','dd-Mon-yyyy');
      3  l_date2 date := to_date('7-JAN-2012','dd-Mon-yyyy');
      4  begin
      5  null;
      6  dbms_output.put_line(l_date1 ||' => '||fn_test(l_date1));
      7  dbms_output.put_line(l_date2 ||' => '||fn_test(l_date2));
      8* end;
    [11.2] Scott @ My11g > /
    08/01/2012 00:00:00 => 07/01/2012 00:00:00
    07/01/2012 00:00:00 => 04/01/2012 00:00:00
    
    PL/SQL procedure successfully completed.
    
    Elapsed: 00:00:00.02
    

Maybe you are looking for