ORA-01427 in C# but not in SQL Developer

Hello everyone!
I have a query that works perfectly when executed from SQL Developer. However, executing the same query from C# gives error ORA-01427.
I am using Oracle.DataAccess.dll version 2.111.6.20, which cannot be changed, because the software is distributed and all users would have to install the new driver.
-- part 1
with
mat_stats
as
(select
t1.nr,
t1.ver,
t4.stat,
count( distinct t4.kom_id) as cnt
from
table1 t1,
table2 t2,
table3 t3,
table4 t4
where
t3.spec_spec_id = t2.spec_id
and t1.man_id = t2.man_man_id
and t4.kom_id = t3.kom_kom_id
group by t1.nr, t1.ver, t4.stat
order by t1.nr, t1.ver, t4.stat )
-- part 2
select distinct
nr,
ver,
-- part 2a
(select cnt from mat_stats xres
where xres.nr=nr
and xres.ver=ver
and stat='OK') as ok_cnt,
-- part 2b
(select cnt from mat_stats xres
where xres.nr=nr
and xres.ver=ver
and stat='TOL') as tol_cnt
from mat_stats
The output from part 1 is
"nr" "ver" "stat" "cnt"
1 5 "NOK" 4
1 5 "TOL" 1
And the output of part2 is (SQL Developer)
"nr" "ver" "ok_cnt" "tol_cnt
1 5 "" 1
What am I doing wrong ? Or is this a known bug ?
Cheers,
Chris

now if the sum is changing the value then I have to ask: are these hitting the same data sources?
let's change the query around a bit and see if you get the same result
try this query
with
mat_stats
as
SELECT 1 NR  ,
       5 VER ,
       'NOK' STAT ,
       4 CNT
FROM DUAL
UNION
SELECT 1 NR  ,
       5 VER ,
       'TOL' STAT ,
       1 CNT
FROM DUAL
-- part 2
select distinct
nr,
VER,
SUM(CASE STAT WHEN 'OK' THEN CNT ELSE 0 END) OVER() OK_CNT,
SUM(CASE STAT WHEN 'TOL' THEN CNT ELSE 0 END) OVER() tol_cnt
FROM MAT_STATS ;
NR                     VER                    OK_CNT                 TOL_CNT               
1                      5                      0                      1                      note I just "faked" your data based on your initial results, so you ought to be able to be able to change the with clause back to yours.
Run a full select in C# and look over the result set (fill a datatable and do a row.count then compare to a full select in Developer and see if the row counts are the same.

Similar Messages

  • Can connect via ODBC but not via SQL Developer?

    Hi, all.
    My setup:
    Windows XP Pro
    JDK 1.6
    SQL Developer 2.1.1.64.45
    I'm attempting to connect to an Oracle DB using OS authentication and trying hand-entry of the host and SID; and also trying my TNS file. When I attempt to connect via SQL Developer, I get the following error:
    "Status : Failure -Test failed: ORA-01017: invalid username/password; logon denied."
    When I attempt this same connection, however, using ODBC and Access, I can get right in and see the tables.
    What can I try in order to get SQL Developer working correctly?
    Thanks,
    IVR Avenger

    I'm not really familiar with connections Using OS authentication, but if OCI+TNS based connections work you could try to activate OCI connections by selecting
    Preferences -> Database -> Advanced -> Use OCI/Thick Driverand then use the TNS connection type when creating your connection.
    It should work well even with the thin driver but i cannot help you in this case because i've never had to use this kind of authentication.

  • Seeing decimal values in TOAD, but not in SQL Developer

    I'm writing on behalf of a co-worker. He's using SQL Developer to look at some records in a database, but in one column he sees zeroes instead of the correct decimal values (the values are between 0 and 1).
    However, the developer he's working with is using TOAD and sees the correct decimal values in the column.
    Any idea as to how to get the decimal values to appear correctly within SQL Developer?

    The database version is 10g, the version supported by TOAD is 9.
    Hi ,
    1/I have not seen this reported please give a create
    table statement and some test data to insert to
    reproduce the problem.. Please give versions of
    SQLDeveloper and the Oracle database - out current
    production release of SQLDeveloper is 1.5.1(.54.40)
    2.If you can convert the number to a string at the
    database side say with TO_CHAR you should see the
    string representation of the number in SQLDeveloper.
    This would work if you are using a select via the
    worksheet or a view on the table with the number if
    you want to see it in a views data tab.
    -Turloch

  • ORA-01031: insufficient privileges in PL/SQL but not in SQL

    I have problem with following situation.
    I switched current schema to another one "ban", and selected 4 rows from "ed"
    alter session set current_schema=ban;
    SELECT * FROM ed.PS WHERE ROWNUM < 5;
    the output is OK, and I get 4 rows like
    ID_S ID_Z
    1000152 1
    1000153 1
    1000154 1
    1000155 1
    but following procedure is compiled with warning
    create or replace
    procedure proc1
    as
    rowcnt int;
    begin
    select count(*) into rowcnt from ed.PS where rownum < 5;
    end;
    "Create procedure, executed in 0.031 sec."
    5,29,PL/SQL: ORA-01031: insufficient privileges
    5,2,PL/SQL: SQL Statement ignored
    ,,Total execution time 0.047 sec.
    Could you help me why SELECT does work in SQL but not in PL/SQL procedure?
    Thanks.
    Message was edited by:
    MattSk

    Privs granted via a role are only valid from SQL - and not from/within stored PL/SQL code.
    Quoting Tom's (from http://asktom.oracle.com) response to this:I did address this role thing in my book Expert one on one Oracle:
    <quote>
    What happens when we compile a Definer rights procedure
    When we compile the procedure into the database, a couple of things happen with regards to
    privileges.  We will list them here briefly and then go into more detail:
    q    All of the objects the procedure statically accesses (anything not accessed via dynamic SQL)
    are verified for existence. Names are resolved via the standard scoping rules as they apply to the
    definer of the procedure.
    q    All of the objects it accesses are verified to ensure that the required access mode will be
    available. That is, if an attempt to UPDATE T is made - Oracle will verify the definer or PUBLIC
    has the ability to UPDATE T without use of any ROLES.
    q    A dependency between this procedure and the referenced objects is setup and maintained. If
    this procedure SELECTS FROM T, then a dependency between T and this procedure is recorded
    If, for example, I have a procedure P that attempted to 'SELECT * FROM T', the compiler will first
    resolve T into a fully qualified referenced.  T is an ambiguous name in the database - there may be
    many T's to choose from. Oracle will follow its scoping rules to figure out what T really is, any
    synonyms will be resolved to their base objects and the schema name will be associated with the
    object as well. It does this name resolution using the rules for the currently logged in user (the
    definer). That is, it will look for an object owned by this user called T and use that first (this
    includes private synonyms), then it will look at public synonyms and try to find T and so on.
    Once it determines exactly what T refers to - Oracle will determine if the mode in which we are
    attempting to access T is permitted.   In this case, if we as the definer of the procedure either
    owns the object T or has been granted SELECT on T directly or PUBLIC was granted SELECT, the
    procedure will compile.  If we do not have access to an object called T by a direct grant - the
    procedure P will fail compilation.  So, when the object (the stored procedure that references T) is
    compiled into the database, Oracle will do these checks - and if they "pass", Oracle will compile
    the procedure, store the binary code for the procedure and set up a dependency between this
    procedure and this object T.  This dependency is used to invalidate the procedure later - in the
    event something happens to T that necessitates the stored procedures recompilation.  For example,
    if at a later date - we REVOKE SELECT ON T from the owner of this stored procedure - Oracle will
    mark all stored procedures this user has that are dependent on T, that refer to T, as INVALID. If
    we ALTER T ADD  some column, Oracle can invalidate all of the dependent procedures. This will cause
    them to be recompiled automatically upon their next execution.
    What is interesting to note is not only what is stored but what is not stored when we compile the
    object. Oracle does not store the exact privilege that was used to get access to T. We only know
    that procedure P is dependent on T. We do not know if the reason we were allowed to see T was due
    to:
    q    A grant given to the definer of the procedure (grant select on T to user)
    q    A grant to public on T (grant select on T to public)
    q    The user having the SELECT ANY TABLE privilege
    The reason it is interesting to note what is not stored is that a REVOKE of any of the above will
    cause the procedure P to become invalid. If all three privileges were in place when the procedure
    was compiled, a revoke of ANY of them will invalidate the procedure - forcing it to be recompiled
    before it is executed again. Since all three privileges were in place when we created the procedure
    - it will compile successfully (until we revoke all three that is). This recompilation will happen
    automatically the next time that the procedure is executed.
    Now that the procedure is compiled into the database and the dependencies are all setup, we can
    execute the procedure and be assured that it knows what T is and that T is accessible. If something
    happens to either the table T or to the set of base privileges available to the definer of this
    procedure that might affect our ability to access T -- our procedure will become invalid and will
    need to be recompiled.
    This leads into why ROLES are not enabled during the compilation and execution of a stored
    procedure in Definer rights mode. Oracle is not storing exactly WHY you are allowed to access T -
    only that you are. Any change to your privileges that might cause access to T to go away will cause
    the procedure to become invalid and necessitate its recompilation. Without roles - that means only
    'REVOKE SELECT ANY TABLE' or 'REVOKE SELECT ON T' from the Definer account or from PUBLIC. With
    roles - it greatly expands the number of times we would invalidate this procedure. If some role
    that was granted to some role that was granted to this user was modified, this procedure might go
    invalid, even if we did not rely on that privilege from that role. ROLES are designed to be very
    fluid when compared to GRANTS given to users as far as privilege sets go. For a minute, let's say
    that roles did give us privileges in stored objects. Now, most any time anything was revoked from
    ANY ROLE we had, or any role any role we have has (and so on -- roles can and are granted to roles)
    -- many of our objects would become invalid. Think about that, REVOKE some privilege from a ROLE
    and suddenly your entire database must be recompiled! Consider the impact of revoking some system
    privilege from a ROLE, it would be like doing that to PUBLIC is now, don't do it, just think about
    it (if you do revoke some powerful system privilege from PUBLIC, do it on a test database). If
    PUBLIC had been granted SELECT ANY TABLE, revoking that privilege would cause virtually every
    procedure in the database to go invalid. If procedures relied on roles, virtually every procedure
    in the database would constantly become invalid due to small changes in permissions. Since one of
    the major benefits of procedures is the 'compile once, run many' model - this would be disastrous
    for performance.
    Also consider that roles may be
    q    Non-default: If I have a non-default role and I enable it and I compile a procedure that
    relies on those privileges, when I log out I no longer have that role -- should my procedure become
    invalid -- why? Why not? I could easily argue both sides.
    q    Password Protected: if someone changes the password on a ROLE, should everything that might
    need that role be recompiled?  I might be granted that role but not knowing the new password - I
    can no longer enable it. Should the privileges still be available?  Why or Why not?  Again, arguing
    either side of this is easy. There are cases for and against each.
    The bottom line with respect to roles in procedures with Definer rights are:
    q    You have thousands or tens of thousands of end users. They don't create stored objects (they
    should not). We need roles to manage these people. Roles are designed for these people (end users).
    q    You have far fewer application schema's (things that hold stored objects). For these we want
    to be explicit as to exactly what privileges we need and why. In security terms this is called the
    concept of 'least privileges', you want to specifically say what privilege you need and why you
    need it. If you inherit lots of privileges from roles you cannot do that effectively. We can manage
    to be explicit since the number of development schemas is SMALL (but the number of end users is
    large)...
    q    Having the direct relationship between the definer and the procedure makes for a much more
    efficient database. We recompile objects only when we need to, not when we might need to. It is a
    large efficiency enhancement.
    </quote>

  • Not a valid month, but works from sql developer

    Hi,
    so this sample works from SQL DEV. :
    insert into aspa2_magaddendum (contractid, addendum_number, from_date, to_date) values(2, 0, '03.05.2012', '24.05.2012');
    but not from code using ODP.NET
                string date1 = "03.05.2012";
                string date2 = "24.05.2012";
                OracleConnection conn = new OracleConnection("Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=127.0.0.1)(PORT=1521))(CONNECT_DATA=(SID=XE)));User Id=aspa2;Password=aspa2;");
                conn.Open();
                OracleCommand cmd = new OracleCommand();
                cmd.Connection = conn;
                cmd.Parameters.Add("date1", date1);
                cmd.Parameters.Add("date2", date2);
                cmd.CommandText = "insert into aspa2_magaddendum (contractid, addendum_number, from_date, to_date) values(2, 0, :date1, :date2)";
                cmd.ExecuteNonQuery();I get:
    ORA-1843: not a valid month message from exception
    Edited by: user2704811 on May 3, 2012 2:47 AM

    Looks like SQL DEV. session is a bit different from the one in code...
    From SQL DEV i get:
    select value from nls_session_parameters where parameter = 'NLS_DATE_FORMAT';
    "DD.MM.RR"
    and from the code I get:
    cmd.CommandText = "select value from nls_session_parameters where parameter = 'NLS_DATE_FORMAT'";
    string format = cmd.ExecuteScalar().ToString();
    "DD-MON-RR"

  • 11g on Win2k8R2 - ORA-12560 - Database up but not reachable

    Hello,
    i've got a serious issue with a production database which affects about 500 users. I already created a SR but by now i got no answer and i thought maybe someone here got an idea.
    What i did:
    - Installed Windows Updates via WSUS Offline
    - Rebooted the machine
    What works:
    - Database can be opened without a problem via sqlplus or "oradim -startup -sid xxx"
    - "tnsping xxx" works
    - listener can be started via "lsnrctl start" and shows a handler for xxx
    What does not work:
    - listener can NOT alternativel be started via "srvctl start listener" (PRCR-1079: Ressource ora.LISTENER.lsnr could not be started, CRS-5016, CRS-2674
    - database is not reachable via sql developer - not from my work client and not locally from the server itself
    - enterprise manager is extremely slow and gets timeouts (i can't login) when the database is open, when i shutdown the db em is really fast
    - alertlog is full of "Fatal NI connect error 12560 [...] opiodr aborting proccess unknown ospid (6696) as a result of ORA-609)
    What i tried to resolve the issue:
    - Uninstalled all Windows Updates which i installed -> no effect
    - rebooted the machine -> no effect
    - tried to start listener before the database or database before listener -> no effect
    - checked local_listener parameter which is automatically set by system when starting the database, also set by myself -> no effect
    - disabled windows firewall and antivirus -> no effect
    The thing is, that i just rebooted the machine and the database is perfectly up but not reachable. I really don't know if it's a good idea to change tns files etc. because it worked before the reboot.
    Anyone got an idea?
    Thank you very much!

    which OS user owns the grid software?
    which OS user owns the asm software?
    which OS user owns the Oracle DB software?
    Do you mean the windows service? I installed the database and grid software with the user oracle (with administrator privileges).
    The services are all owned by "local system", besides OracleOraCrs11g_home1TNSListener and OracleServiceSID (they are owned by ./oracle)
    which %ORACLE_HOME% is being used to start the listener?
    ORACLE_HOME=C:\app\oracle\product\11.2.0\grid
    what does %PATH% contain when invoking lsnrctl & similar utilities?
    Path=c:\app\oracle\product\11.2.0\dbname_1\bin;C:\app\oracle\product\11.2.0\grid\bin;[other windows paths]
    which OS user is logged onto the DB trying to start the listener & such?
    user "oracle" with administrative privileges, i used a command line started as administrator

  • Db link error in PL/SQL but not in SQL

    oracle 10.2.0.4
    solaris 10
    I have a simple procedure (anonymous block) that uses a db link to update a table in another db (on same host)
    The procedure fails with the following error:
    ORA-02019: connection description for remote database not found
    I can insert records using the same db_link using the exact same line pasted from the stored proc (same line that raises the ORA-02019).
    insert into table_x@my_db_link (select * from local_table_y);
    x rows inserted
    I use the same sql*plus session to run both the stored proc and sql command;
    SQL> conn my_user/my_pwd
    connected
    SQL> @my_proc.sql
    ORA-02019: connection description for remote database not found
    SQL> insert into table_x@my_db_link (select * from local_table_y);
    x rows inserted
    QUESTION:
    Why does the db_link fail in the procedure and not the sql command line call?
    P.S.
    I converted the procedure to a store proc and it also fails with the same call.

    Perhaps if the Database link is non-public?There is a bug, #3240720, which applies when the owner of the db link is not the user who's executing the query.
    There are several bugs which demonstrate this sort of behaviour. For instance ORA-2019 can be hurled if the local PL/SQL is running against a remote Dataguard standby database (although I would hope we wouldn't be running an INSERT in that scenario).
    Cheers, APC
    blog: http://radiofreetooting.blogspot.com

  • TSQL working in 2008 but not in SQL Server 2014

    Hello,
    We recently have been asked to move from SQL Server 2008 to SQL Server 2014. We are trying to run parallel tests and one of our queries that was working perfectly in 2008 is not working in 2014.
    One of the filter on the our query(from 2008) is we convert a varchar field to date and compare it to anotehr calulated filed ("convert(date,Quick_Data_Start_Date) <= convert(date,(Year_ID_to_Use + '-' + Month_ID_to_Use + '-01'))").
    This worked fine in 2008 but when i try to do similar operation in 2014 it returns no result.
    For testing purposes, instead of converting the field to date format, i manully converted the actual value i.e. instead of using "convert(date,Quick_Data_Start_Date)" when i use "convert(date,'8/1/2014')" the code works fine.
    The field "Quick_Data_Start_Date" comes from a pivot query.
    When i create a temporary table for the pivot query and use the temporary table in  my code and then convert the field on fly the code works fine again.
    Seems like the T sql is not able to convert the field from varchar to date on the fly when coming from a different query. We have tried changing the compatbility level to 100 as well and it still would not work.
    Any suggestions and comments will be really helpful. Thanks.
    Regards,
    GM

    Hello, here is my overall review:
    The query is not optimized … agreed!  But that’s not the issue.
    There are a number of indexes that could be created, a number of minor calculations or evaluation criteria that could be improved to make the query more efficient … again – AGREED.
    The query “as is” runs in just under a minute (on SQL 2008 machine with less memory and slower hard drives).  Adding the indexes would take more time to add than they would save.
    NONE of that should make the query NOT WORK.  These deficiencies might make it run more slowly, but should not cause the query to return no results.
    “order by” shouldn’t make any difference because the query plan isn’t assuming or using any special order
    The main table (~10 M rows) is using a clustered index scan (not efficient, but not the point)
    The Time dimension table is using a non-clustered index seek (so the index is sorted but the data in the table is NOT physically sorted that way)
    The pivot subquery is using clustered index scan (it’s only 6 rows, so who cares)
    Once again, the order by might make it less efficient, but shouldn’t make it fail.  We get no errors or warnings – it just returns no rows.
    Because the query DOES return results when we 
    Either dump the Pivot query result into a #temp table(single row) and use the #temp table instead of the pivot query in the big SQL or  
    The “input” tables are limited to X rows but DOES NOT when the inputs have more rows
            This strongly suggests a memory issue.
    The server has 64 GB of RAM, but this probably isn’t enough to hold millions of rows and calculations.
    Can we turn on some traces to see what’s happening to the data in the query?  How and what are we looking for?
    Once the memory capacity is exceeded, SQL should be pushing these results to a temporary table (either in the local database or the tempdb).  Can we test to see if that is happening? 
    How?
    Is there a permissions issue?
    I have successfully done large copies outside of SQL (copied 300+ GB file from one location to another) that had to use the disk instead of just memory … means the disk write operation
    isn’t restricted from my user account.
    I can also confirm that the account that runs the SQL Service (“Network Service” account) has full permissions to the drives and paths where the mdf and ldf files are stored (including
    master and temp).
    If this doesn’t work, our upgrade is basically frozen and cannot proceed.  I’m really out of ideas … anything?

  • ORA-01041 Error while query in PL/SQl Developer

    Hi All,
    I am trying to execute a simple select statement in PL/SQL developer. After the query gets executed i am getting a error
    ORA-01041 internal error. hostdef extension doesn`t exist.
    But when i perform the same query in sqlplus, i do not receive this kinda error.
    Does any 1 have a idea on this error?
    Regards,
    Ritesh Khuller

    PL/SQL Developer is a third-party tool and not from oracle.
    maybe you have better chances in the rdbms-forum where they know more about hostdef's
    PL/SQL
    General Database Discussions

  • Username password works in SQL Plus not in SQL Developer

    I have SQL Dev 1.2.1. It works fine with some databases, but with two databases with logons managed by Oracle Enterprise User it does not work. I receive an Ora 01017 error invalid username password. The user name and password work fine from SQL Plus and from a third party tool. I have a local developer client environment installed, so am using TNS. SQL Developer was installed before the client environment. I was not trying to access this database before the client environment install. I was using the basic connection before the client install. Neither basic or TNS connection works for this particular database.
    Any ideas?

    We have changed the password and it still does not work. There are no special characters in the password.
    I am tempted to think the problem is the jdbc driver versions. The logon for Enterprise user controlled databases stopped working after I installed the thick client Oracle developer. I have tried to find the threads with information on disabling the thick client jdbc but have not found them. I also have tried to enter a URL for the thin client without success. One of our DBAs is saying that the 11g clients are broken and he is in communication with Oracle about it. He says 10g works but 11g does not.
    Any further help would be appreciated.
    Gerry

  • SCANIP not connect sql developer

    I install rac 11gr2 on Oracle Enterprise Linux 5.7
    but i not use SCANIP connect
    I use sql developer of client (example notebook) connect by use SCANIP not connect but I use ip address direct can connect
    Why?
    Thank you very much
    Edited by: 891982 on Dec 4, 2011 5:28 AM

    I install client but I connect go to ip of scan but find error
    ora-12545 connect failed because target
    resolve ?
    in client
    I not want resolve in file hosts
    Thank you
    Edited by: 891982 on Dec 6, 2011 1:51 AM
    Edited by: 891982 on Dec 6, 2011 1:58 AM

  • ORA-01722 when opening a package in SQL Developer 1.2 with oracle 9iR1

    Hi,
    I use SQL Developer with Oracle Database 9i release 1.
    When I open a package in SQL Developer 1.2 (or 1.5) for editing, I receive the error ORA-01722. The package successfully opens but this message, which pops everytime, is really annoying.
    I monitored the requests sent by SQL Developer and it seems that the following request is responsible of the error :
    SELECT LINE,POSITION,TEXT,ATTRIBUTE FROM USER_ERRORS WHERE TYPE=:1AND NAME=:2
    Notice there are no spaces between ':1' and 'AND'. When executing 'by hand' the request with SQL Developer, it asks for the value of '1AND' bind variable and the value of '2'. Then, it fails to execute with... ORA-01722.
    Is it possible to avoid this bug ?
    Thank you for your help.

    We're doing rolling 2 week releases until production. Expect something new next week.

  • D2kWutil error at runtime, but not in Forms Developer

    Hi,
    I need 'Form on top as SDI' (C/S 6.0.8.) and it works on my WNT machine stabil, also at runtime:
    W-N-F-I Trigger
    OnTop.Window_On_Top('WINDOW1');
    On my WXP machine the same code
    The runtime start with usesdi=NO is OK, but not with usesdi=YES :
    there is a error: 'FRM 06503: PL/SQL Function returned without value.'
    Here is a debug-log from the error run:
    <00> SetDebug: Logging to File chk-debug-new.log
    <99> Win_API(init): Searching For DLL (D2KWUT60.DLL)
    <99> Win_API(init): Preload location not set
    <99> Win_API(init): DLL loaded from D2KWUTIL60_PATH (d:\orawork\d2kwut60\)
    <99> Win_API(init): DLL Found and Loaded
    <99> PreLoad: Args: (None)
    <99> DLLVersion: Args: <No Arguments>
    <99> Register_Function_Call: Ftn="d2kwutil_Version", DLL Count=1, Initial Reg
    <99> DLLVersion: Result: Version=D2KWUT60.DLL Version 6.0.6.0 Production
    <99> Play_Wav: Args: FileName="SystemStart", Asynchronous=TRUE, RaiseExceptions=FALSE
    <99> Register_Function_Call: Ftn="d2kwutil_PlaySound", DLL Count=1, Initial Reg
    <99> Play_WAV: Result: RC=1
    <99> Get_Parent_Window: Args: Window_Handle =198416, Recursive=TRUE, RaiseExceptions=FALSE
    <99> Register_Function_Call: Ftn="d2kwutil_ParentWin", DLL Count=1, Initial Reg
    <99> Get_Parent_Window: Result: RC=0
    <99> Add_Error: Get_Parent_Window: Unable to obtain parent window handle
    <99> Get_Parent_Window: Args: Window_Handle =329460, Recursive=TRUE, RaiseExceptions=FALSE
    <99> Get_Parent_Window: Result: RC=0
    <99> Add_Error: Get_Parent_Window: Unable to obtain parent window handle
    <99> Get_Parent_Window: Args: Window_Handle =329460, Recursive=TRUE, RaiseExceptions=FALSE
    <99> Get_Parent_Window: Result: RC=0
    <99> Add_Error: Get_Parent_Window: Unable to obtain parent window handle
    The ok debug:
    <00> SetDebug: Logging to File chk-debug-new.log
    <99> Win_API(init): Searching For DLL (D2KWUT60.DLL)
    <99> Win_API(init): Preload location not set
    <99> Win_API(init): DLL loaded from D2KWUTIL60_PATH (d:\orawork\d2kwut60\)
    <99> Win_API(init): DLL Found and Loaded
    <99> PreLoad: Args: (None)
    <99> DLLVersion: Args: <No Arguments>
    <99> Register_Function_Call: Ftn="d2kwutil_Version", DLL Count=1, Initial Reg
    <99> DLLVersion: Result: Version=D2KWUT60.DLL Version 6.0.6.0 Production
    <99> Play_Wav: Args: FileName="SystemStart", Asynchronous=TRUE, RaiseExceptions=FALSE
    <99> Register_Function_Call: Ftn="d2kwutil_PlaySound", DLL Count=1, Initial Reg
    <99> Play_WAV: Result: RC=1
    <99> Get_Parent_Window: Args: Window_Handle =526002, Recursive=TRUE, RaiseExceptions=FALSE
    <99> Register_Function_Call: Ftn="d2kwutil_ParentWin", DLL Count=1, Initial Reg
    <99> Get_Parent_Window: Result: RC=198372
    What is wrong?
    Best Regards
    Friedhold

    Hi Duncan,
    thank you for the tip:
    I've modified the OnTop Package and it works fine
    in SDI-mode (the Form is permanent on top!):
    PROCEDURE Window_On_Top (Window_Name IN WINDOW) is
    hWnd PLS_INTEGER;
    hParent PLS_INTEGER;
    iRC PLS_INTEGER;
    BEGIN
    hWnd := to_number(get_window_property(Window_Name,WINDOW_HANDLE));
    ------- hParent := win_api_utility.get_parent_window(hWnd,TRUE,FALSE);
    ------- if hParent <> 0 then
    ------- hWnd := hParent;
    ------- end if;
    iRC := i_SetwindowPos(fh_SetWindowPos,hwnd,-1,0,0,0,0,19);
    END;
    Best Regards
    Friedhold

  • Notes on Sql Developer - Importing - XLS

    This isn't really a question, but I thought I should get the record of my tribulations posted so someone else won't have to work as hard as I did.
    Please note when using import in sql dev - first, the file MUST be a xls formated BINARY file. I received a file with the extension xls, but it was actually a tab delimited csv, and the only message import gave me was : 'an error has occurred' , and then a stack trace with :
    java.io.IOException: Invalid header signature; read 664572811392150337, expected -2226271756974174256
         at org.apache.poi.poifs.storage.HeaderBlockReader
    A ascii csv would cause this since it doesn't have the binary header. Incidentally, poi is a java (apache) library for reading microsoft file formats.

    You can try changing the column in the excel to general datatype before you attempt to load using sql developer.
    alternate way...
    You can save the excel file as .csv file. Once saved you should be able to use the sql*loader to load the data.
    the sqlldr command for online
    sqlldr userid control=test.ctl log=test.log bad=test.bad data=test.csv discard=test.txt
    the test.ctl should be as follows
    load data
    infile 'test.csv'
    into table constraint_chk
    fields terminated by ','
    (column1 char(10),
    column2 date,
    column3 number) ;
    please let me know, if you need more info...

  • Task fails on server but not on my development PC

    hi
    I have this annoying error on my server but not in my PC,
    When I run the task from VisualStudio2010 it works perfectly. Then I deploy the package to my SqlServer2012 "Intgegration Services Catalogs" and run the deployed package from the SqlManagementConsole I got the error.
    The source is an oracle DB and the query wich calculate the field "MONJTO_HRSEXTR" do it with this "sum(nvl(h.monto,0)) monto_hrsext" on the select statement.
    I guess the problem is SSIS thinks that the column MONTO_HRSEXTR is "Unicode string[DT_WSTR]" with "lenght=38" and when the conversion process try to cast to Decimal(12,2) it fails. There are 2 big questions here
    1.Why it works on my development PC and not in the server when deployed?
    2.why the "Data Conversion Transtormation Editor" thinks the field is a  Unicode string[DT_WSTR] if that field is a sum result from numerics fields in the oracle table
    Thanks a lot!!! for any Idea
    Salu2 Sergio T

    Hello
    Thanks for your time, I made a modification
    to the package to redirect all rows
    that cause error
    All errors are rows with decimal values
    ​​such as "11.3" "33.44"
    All values ​​are using "," instead of
    "." and that's the problem
    what is strange is that the same source,
    in both cases the same database
    It will be something related to the
    configuration of the oracle client on the Windows
    server? The Oracle is in another server, a unix server.
    I do not know much about oracle.
    I know we use TSNnames for connecting, but I really don't know what to see, any idea??
    thanks again for your time Jan
    Salu2 Sergio T

Maybe you are looking for

  • [CS3 JS] How to Create a Timer?

    Within InDesign I need to be able to fire a periodic process to examine links from a JavaScript script. I have my own script running in its own engine. I can't figure out how to create a timer that will run in the background and call the appropriate

  • Updated to 10.1, now can't find projects/events on external drives

    Yesterday, I blithely updated my Final Cut Pro X to version 10.1. Now I am totally lost... I have gradually got used to the way FCP operates and now, all my Events and Projects are on an external drive, organised in a series of folders; current, fini

  • Replace text in pdf files by sript

    Hi, I have a huge number of pdf files. There is a phone number in which has to be changed. Is there a way to do this using a script or any other kind of automation? Thanks.

  • IP Issues on i7 iMac and Aiport Station

    I bough the iMac not even two weeks ago and it worked wonderfully. I just did a iMac Firmware Update via the Software Update tool and now every time it goes to sleep it some how comes back with the following Wifi Error: Another device is already usin

  • Rh_struc_get  authorization

    Hi,      rh_struc_get function module is failing for a user.Its working fine for other users.     Its a authorization problem.    i am using evalution paths like a008,etc.    Any specific HR authorizations to be given for this??    please provide any