Making sql faster not in pl.sql but in sql

this sql takes a long time running from Application to oracle database
11.2.0.3.0 on win 2008 r2
in Toad it runs much faster
any suggestions to make it faster in SQL, this is dynamic code where 1500000 is bind variable passed from application side. this can be 10million 20million ...etc
there are enough indexes, constraints on the related tables below. thought of using /*+APPEND*/
cant use BULK COLLECT as its part of PL/SQL
any suggestions
INSERT INTO pds.dlg_participant
(dp_id, dp_dg_id, dp_dlg_id, dp_customer_id, dp_context, dp_inserted_timestamp, dp_moved_timestamp, dp_active, dp_internal_id)
(SELECT
pds.DLG_PARTICIPANT_SEQ.NEXTVAL,
1224,
1074,
mh_customer_id,
mh_context,
SYSDATE,
SYSDATE,
0,
7820
FROM
SELECT
Relations.MARE_ID as mh_customer_id,
'0' as mh_context,
null as mh_participant_id
FROM
(select *
from Testuser.RelationsEnriched_10M
) Relations
WHERE
((1500000 >= Relations.MARE_ID)))
AND
NOT EXISTS (SELECT
dp_id
FROM
pds.dlg_participant,
pds.dlg_group
WHERE
(dp_dg_id = dg_id) AND
(dg_dlg_id = 1074) AND
(dp_active = 0) AND
(dp_customer_id = Relations.MARE_ID)) ) mh_container
)

912919 wrote:
this sql takes a long time running from Application to oracle database
11.2.0.3.0 on win 2008 r2
in Toad it runs much fasterYou did not post timings of the execution. So, how can we see or you prove that it actually runs faster in Toad than on SQL Prompt.
I will suggest you to do the following and post the details here:
@SQL Prompt
ALTER session SET TIMED_STATISTICS = TRUE;
Execute your Insert Statement;
@Toad
ALTER session SET TIMED_STATISTICS = TRUE;
Execute your Insert Statement;Post the timing details here. Also it will be highly appreciable if you can post the Explain plan or the TKPROF output.
Just in case you are not aware of getting TKPROF, read here.
any suggestions to make it faster in SQL, this is dynamic code where 1500000 is bind variable passed from application side. this can be 10million 20million ...etc
there are enough indexes, constraints on the related tables below. thought of using /*+APPEND*/
cant use BULK COLLECT as its part of PL/SQL
any suggestionsIn order to speed us the Insert Select Operations, the key for improvement in performance lies, mostly, in the Select statement. So, if you can optimize the select statment you would have achieved most of the job.
If this is a One time or A Data Load performed during an Outage or Low activity period, you can alter the table to NOLOGGING and perform INSERT APPEND and then alter table back to LOGGING.

Similar Messages

  • SQL Query works in MS Access but caused SQL exception

    Hi all,
    I've got this query that works if I run it in MS Access but caused an SQL Exception if I run in my Java programme.
    The query
    SELECT Count(*) AS countPlayerMax FROM (SELECT Count(*) AS countSent, sent.mobileno FROM sent WHERE (((sent.date_sent) Between #2002-3-1# And #2002-3-8#)) GROUP BY sent.mobileno HAVING (((Count(*))>100)))
    The exception is
    [Microsoft][ODBC Microsoft Access Driver] Syntax error in FROM clause.
    I've done nested queries before but this one doesn't work. Any ides why??
    thanks

    Thanks for your suggestion
    I tried it but it still gives the same error, now the SQL looks like this
    SELECT Count(*) AS countPlayerMax FROM (SELECT Count(*) AS countSent, sent.mobileno FROM sent WHERE sent.date_sent Between #2002-3-1# And #2002-3-8# GROUP BY sent.mobileno HAVING Count(*)>100)
    the exception is the same
    [Microsoft][ODBC Microsoft Access Driver] Syntax error in FROM clause.

  • SQL Developer 2.1 - Autotrace not only explain statement but executes it

    I need old behaviour when statement was only explained and not executed. I am optimizing sql updates, merges and inserts on tables with 50M rows and it gets me angry if SD executes the statement. I found a workaround by using explain plan for ..., but I think that such a tool as SD is should give me an option to configure the Autotrace functionality (I even tried to setup what should be returned as a result of auto trace in menu Tools/Preferences/Database/ Autotrace/Explain plan , but it always executes the statement).

    Don't know if I get what you're asking.
    Explain plan: F10, Autotrace: F6.
    Autotrace logically executes the statement (RTM), Explain doesn't.
    If you get other behaviour, please explain yourself better.
    Hope that helps,
    K.

  • Using Outlook Business Manager but SQL will not start

    When I start Outlook Business Manager it tells me that SQL is not running. I have followed all the procedures to try to restart it without success.
    The SQL log is reporting the following
    2014-01-22 09:38:43.54 Server      The SQL Server Network Interface library could not register the Service Principal Name (SPN) for the SQL Server service. Error: 0x54b, state: 3. Failure to register an SPN may cause integrated
    authentication to fall back to NTLM instead of Kerberos. This is an informational message. Further action is only required if Kerberos authentication is required by authentication policies.
    2014-01-22 09:38:43.54 Server      SQL Server is now ready for client connections. This is an informational message; no user action is required.
    2014-01-22 09:38:43.61 spid10s     Error: 9003, Severity: 20, State: 1.
    2014-01-22 09:38:43.61 spid10s     The log scan number (36:96:1) passed to log scan in database 'model' is not valid. This error may indicate data corruption or that the log file (.ldf) does not match the data file (.mdf). If this error
    occurred during replication, re-create the publication. Otherwise, restore from backup if the problem results in a failure during startup.
    2014-01-22 09:38:43.61 spid10s     SQL Trace was stopped due to server shutdown. Trace ID = '1'. This is an informational message only; no user action is required.
    Any help is appreciated
    Thanks
    Mark

    2014-01-22 09:38:43.54 Server      The SQL Server Network Interface library could not register the Service Principal Name (SPN) for the SQL Server service. Error: 0x54b, state: 3.
    Failure to register an SPN may cause integrated authentication to fall back to NTLM instead of Kerberos.
    Helo Mark,
    SPN registration failed, you can register it manually, see
    Register a Service Principal Name for Kerberos Connections
    Or you can use this tool:
    Microsoft® Kerberos Configuration Manager for SQL Server®
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • SQL History not sorting by timestamp; new v4 TS format ?

    I was worried that  my SQL History was not accumulating post upgrade, as it did not appear as I expected.
    I typically sort it by descending timestamp, but I'm finding that since installing the 4.0 production version that a different timestamp format on SQL History has taken hold, ignoring the NLS settings that I put in my preferences (which were not the default ones by the way for my territory and language, by the way).  
    I migrated all my settings from the previous installation I had ...sqldev4 ea3.  previous migrations from v3 to v4 ea1 to v4 ea2 to v4 ea3 never disrupted my SQL History.
    Now my recent entries are buried in the SQL History and won't show on top anymore, and the sorting by timestamp seems erratic making it impossible to see a chronological order of SQLs executed before and after the migration.
    Is there a control for formatting the SQL History timestamps or do I need to go spelunking through xml files to alter a setting ?
    Curiously,
    Steve 

    A timestamp found inside one of my older  "history.xml"  files looks like this:
    <timestamp><![CDATA[12/11/13 2:18 PM]]></timestamp>
    A newer one looks like this:
    <timestamp><![CDATA[12/17/13 20:54]]></timestamp>
    It would probably give Xquery fits reconciling the different formats, sorting, eliminating older SQLs in the history according to one's preferences inside SQL Developer 4, etc.
    I'm going back to the last early adopter release just to preserve history and sequence until the tool makers resolve the timestamp and the weird sort order problem.

  • ORA-06508: PL/SQL: could not find program unit being called: "APPS.FND_GSM_

    Hi All,
    We are following Export/Import Process for Oracle Applications Release 11i Database Instances Using Oracle Database 10g Release 2
    note: 362205.1
    Source OS = AIX
    Target OS = RHEL 5
    DB version = 10.2.0.4
    At Section 5: Update the imported Applications Release 11i database instance
    Perform post-import steps outlined in the Interoperability documents
    At post-import step: Implement and run AutoConfig
    Completed the below tasks:
    Copied the appsutil.zip file to to new OS ORacle home
    Generated the Database Context File
    While Running adconfig get the error
    ADX Database Utility
    getConnectionUsingAppsJDBCConnector() -->
    APPS_JDBC_URL='null'
    Trying to get connection using SID based connect descriptor
    getConnection() -->
    sDbHost : ORADB
    sDbDomain : quest-global.com
    sDbPort : 1521
    sDbSid : TST
    sDbUser : apps
    Trying to connect using SID...
    getConnectionUsingSID() -->
    JDBC URL: jdbc:oracle:thin:@ORADB.quest-global.com:1521:TST
    Connection obtained
    -------------------ADX Database Utility Finished---------------
    Result : Failed to upload the Context file to the DataBase
         Uploading Context file and its templates to the database...FAILED
    StackTrace:
    java.lang.Exception: oracle.apps.ad.autoconfig.oam.InDbCtxFileException: SQLException : ORA-04063: package body "APPS.FND_GSM_UTIL" has errors
    ORA-06508: PL/SQL: could not find program unit being called: "APPS.FND_GSM_UTIL"
    ORA-06512: at line 1
         at oracle.apps.ad.tools.configuration.FileSysDBCtxMerge.updateDBCtx(FileSysDBCtxMerge.java:685)
         at oracle.apps.ad.tools.configuration.FileSysDBCtxMerge.updateDBFiles(FileSysDBCtxMerge.java:222)
         at oracle.apps.ad.context.CtxValueMgt.processCtxFile(CtxValueMgt.java:1579)
         at oracle.apps.ad.context.CtxValueMgt.main(CtxValueMgt.java:661)
    Updating rdbms version in Context file to db102
    Updating rdbms type in Context file to 64 bits
    Kindly suggest
    Regards,
    SK

    HI,
    As per note 369693.1 - Using Oracle Applications with a Split Configuration Database Tier on Oracle 10g Release 2
    Section 4: Post-Migration Tasks
    Reconfigure the application tier to connect to the target database machine
    i have updated the context file parameters s_dbhost, s_dbdomain, s_dbport, s_apps_jdbc_connect_descriptor, s_isDB
    but will running autoconfig i get the error
    Making database connection using DBUtil
    ADX Database Utility
    getConnectionUsingAppsJDBCConnector() -->
    APPS_JDBC_URL='NULL'
    Trying to connect using APPS_JDBC_URL
    Exception occurred: java.sql.SQLException: No suitable driver
    Trying to get connection using SID based connect descriptor
    getConnection() -->
    sDbHost : oradb
    sDbDomain : quest-global.com
    sDbPort : 1521
    sDbSid : TST
    sDbUser : APPS
    Trying to connect using SID...
    getConnectionUsingSID() -->
    JDBC URL: jdbc:oracle:thin:@oradb.quest-global.com:1521:TST
    Exception occurred: java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
    Trying to connect using SID as ServiceName
    getConnectionUsingServiceName() -->
    JDBC URL: jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oradb.quest-global.com)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=TST)))
    Exception occurred: java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
    Trying to connect using SID as ServiceName.DomainName
    getConnectionUsingServiceName() -->
    JDBC URL: jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oradb.quest-global.com)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=TST.quest-global.com)))
    Exception occurred: java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
    Connection could not be obtained; returning null
    -------------------ADX Database Utility Finished---------------
    Exception occurred while preseeding variables in the context file: java.sql.SQLException: Could not get connection to the database
    StackTrace:
    java.sql.SQLException: Could not get connection to the database
         at oracle.apps.ad.tools.configuration.CVMHelper.processNewContextFile(CVMHelper.java:884)
         at oracle.apps.ad.context.CtxValueMgt.preSeed2Ctx(CtxValueMgt.java:1714)
         at oracle.apps.ad.context.CtxValueMgt.processCtxFile(CtxValueMgt.java:1516)
         at oracle.apps.ad.context.CtxValueMgt.main(CtxValueMgt.java:661)
    is there any check we can do to test the DB conection?
    Thanks
    SK

  • Error : ORA-06508: PL/SQL: could not find program unit being called

    Hi
    I got surprise issue while testing my Oracle code . Let me explain first the environment detail . Our appliaction built on
    Java/J2EE(Weblogic) and backend is Oracle 11g re2 . While calling from java it call thru different user which have been provide
    synonym and exectue option for corresponding procdure ,
    I created on package EXTRACT_CUSTOMER_INFO_PK which will exract data to text file using UTL_FILE ( direcory , UTL_FILE grant is provided to DB user).
    Now this package has been called from rp_execute_procedure_pr -- Here I is the code
    CREATE OR REPLACE PROCEDURE RP_EXECUTE_PROCEDURE_PR
    i_atlas_job_schedule_fk IN atlas_job_schedule.atlas_job_schedule_pk%TYPE,
    i_job_id IN atlas_job.job_id%TYPE,
    i_parm_value IN atlas_job_schedule.parm_value%TYPE,
    o_status_code OUT NUMBER,
    o_status_mesg OUT VARCHAR2
    IS
    -------Other old code which is not relevent for this issue ----
    --------Other old code which is not relevent for this issue ----
    ----Below code I added ----
    ELSIF l_job_id = 'CUST_EXTRACT' THEN
    EXTRACT_CUSTOMER_INFO_PK.customer_report ( i_parm_value ,
                   o_status_code,
    o_status_mesg ) ;
    -- o_status_code := -99999999;
    --o_status_mesg := 'PARTHA PARTHA PARTHAcess terminated!';
    ELSE
    o_status_code := -20300;
    o_status_mesg := 'Job Id : ' || l_job_id || ' NOT found. Process terminated!';
    END IF;
    update_log_auto
    ajs_rec.atlas_job_schedule_pk ,
    'Processing End Time (GMT): '
    EXCEPTION
    WHEN eProcError THEN
    o_status_code := SQLCODE;
    o_status_mesg := SUBSTR(vMsg ||'-'||SQLERRM, 1, 200);
    WHEN OTHERS THEN
    o_status_code := -20300;
    o_status_mesg := SUBSTR(SQLERRM, 1, 200);
    update_log_auto
    ajs_rec.atlas_job_schedule_pk ,
    'Error : '||SQLERRM||' '
    update_log_auto
    ajs_rec.atlas_job_schedule_pk,
    'Processing End Time (GMT): '
    END RP_EXECUTE_PROCEDURE_PR;
    Now It compiled sucesfully . And while I did SIT then RP_EXECUTE_PROCEDURE_PR run fine and extracted txt file . But while I called it from Java procedure It gives us error like
    Error : ORA-06508: PL/SQL: could not find program unit being called 02-AUG-2012 13:16:51.
    As I told RP_EXECUTE_PROCEDURE_PR old proc and used by other proc , So I first suspect issue is newly added code or may be some grant or synonym ( Although it should not be )
    so I created public synony amd gave execute grant to my pkg to public .
    But it repeat same error .
    I did lot of R&D on my pkg but nothing happen . Finally I remane my new pkg RP_EXTRACT_CUSTOMER_INFO_PK and it works fine
    I need to know what is the RCA for it . I donot think any dependecy issue as renaming pkg is working fine .
    NB my DB user is iATLAS and Javauser is SUDEEP
    Thanks in Advance
    Debashis Mallick

    First of all If i run the main procedure in like below in my Schema it is working fine
    begin
    -- Call the procedure
    rp_execute_procedure_pr(i_atlas_job_schedule_fk => :i_atlas_job_schedule_fk,
    i_job_id => :i_job_id,
    i_parm_value => :i_parm_value,
    o_status_code => :o_status_code,
    o_status_mesg => :o_status_mesg);
    end;
    So thre is no question of parameter .... or Invalid state etc . If it is parameter or Invalid state issue it will give other error.
    Here problem is not syntax issue .
    let me give u more detail regards this issue
    1.. All objects corresponding to procedure all Valid
    2.. If I test on the proc on my schema like above code . It works fine
    3.rp_execute_procedure_pr is a old procudere which called for differner report generartion based on parameter passing . Also as extract_customer_info_pk called with in rp_execute_procedure_pr So there is no question of synonym or privilage issue for new procedure.
    4. Suprising thing is if I rename and recreate package like extract_customer_info_pk _1 or rp_extract_customer_info_pk . Which are exactly same as extract_customer_info_pk and replace those new one with extract_customer_info_pk then it work fine in my java application
    I think I make it clear the issue
    Edited by: debashisora on Aug 3, 2012 5:31 AM
    Edited by: debashisora on Aug 3, 2012 5:40 AM

  • Filters 'OR' function not passing the values to the sql

    Hi,
    I am facing an issue with the 'OR' function on the filters that are used in the reports.
    The report needs to fetch all the records on the three tables as the user enters the value in the dashboard prompts.
    eg: [   update_dt_A1 is prompted
    and user_name_A1 is prompted ]
    or
    [    update_dt_B1 is prompted
    and user_name_B1 is prompted ]
    or
    [    update_dt_C1 is prompted
    and user_name_C1 is prompted ]
    The values entered in the dashboard prompt gets passed to the filter, but the vaules are not passed over to the SQL that runs on the database, hence the reports shows all values and does not reflect the values entered.
    When the 'OR' function is replaced with 'AND' the values get passed to the SQL.
    Can anyone help on what is the issue on the filters?
    Thanks

    Here is how my Filters are set up
    Vendor Name is Prompted
    AND
    Vendor Number is Prompted
    AND
    [   [Last_update_date_Vendor is prompted
    AND
    User_name_Vendor is prompted]
    OR
    [Last_update_date_Site is prompted
        AND
        User_name_Site is prompted]
    OR
    [Last_update_date_Bank is prompted
        AND
        User_name_Bank is prompted]
    The values from the dashboard prompts gets passed to the filter, but the sql that runs does not take the values in the where clause.

  • SQLEXEC not able to filter extract on sql statement or function call.

    hi all,
    i'm trying to do some basic extract filtering using a stored function and am not having much success.
    i started off using a procedure call but have been unsuccessful getting that working, i've simplified
    it to use a sql statement calling a function for a value to filter on, but cannot even get that to work.
    i've read through the documentation and i cannot figure out what is going wrong.
    any help would be much appreciated.
    thx,
    daniel
    function code is very simple, just trying to get something working.
    FUNCTION f_lookup_offer_id(v_offer_id IN offer.offer_id%TYPE)
    RETURN company.name%TYPE IS
    lv_company_name company.name%TYPE;
    BEGIN
    SELECT c.name
    INTO lv_company_name
    FROM orders a, offer b, company c
    WHERE a.offer_id = b.offer_id
    AND b.company_id = c.company_id
    AND a.order_id = v_order_id;
    RETURN lv_company_name;
    END f_lookup_offer_id ;
    Oracle GoldenGate Command Interpreter for Oracle
    Version 11.1.1.0.0 Build 078
    Solaris, sparc, 64bit (optimized), Oracle 10 on Jul 28 2010 13:26:39
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    EXTRACT EATUOP1
    INCLUDE ./dirprm/GGS_LOGIN.inc
    EXTTRAIL ./dirdat/up
    DISCARDFILE ./dirout/eatuop1.dsc, append , MEGABYTES 50
    DISCARDROLLOVER ON SUNDAY AT 06:00
    -- Database and DDL Options
    -- Added to avoid errors when setting unused columns
    DBOPTIONS ALLOWUNUSEDCOLUMN
    -- Get full row for deletes
    NOCOMPRESSDELETES
    -- Get updates before
    GETUPDATEBEFORES
    -- If commit SCN that is not greater than the highest SCN already processed error
    THREADOPTIONS MAXCOMMITPROPAGATIONDELAY 15000 IOLATENCY 6000
    -- Retains original timestamp. Currently using GMT
    NOTCPSOURCETIMER
    --TABLE DEFS
    TABLE master.OFFER,
    SQLEXEC ( ID ck_offer,
    QUERY " select master.f_lookup_offer_id(:off_id) is_company from dual ",
    PARAMS (off_id = offer_id),
    BEFOREFILTER),
    FILTER (@GETVAL (ck_offer.is_company = "Google, Inc."));
    does not give any errors, but also does not capture any data, it's filtering everything out and trail files are empty, minus a header.
    thoughts or help?
    2012-04-04 22:17:36 INFO OGG-00993 Oracle GoldenGate Capture for Oracle, eatuop1.prm: EXTRACT EATUOP1 started.
    2012-04-04 22:17:36 INFO OGG-01055 Oracle GoldenGate Capture for Oracle, eatuop1.prm: Recovery initialization completed for target file ./dirdat/up000022, at RBA 978.
    2012-04-04 22:17:36 INFO OGG-01478 Oracle GoldenGate Capture for Oracle, eatuop1.prm: Output file ./dirdat/up is using format RELEASE 10.4/11.1.
    2012-04-04 22:17:36 INFO OGG-01026 Oracle GoldenGate Capture for Oracle, eatuop1.prm: Rolling over remote file ./dirdat/up000022.
    2012-04-04 22:17:36 INFO OGG-01053 Oracle GoldenGate Capture for Oracle, eatuop1.prm: Recovery completed for target file ./dirdat/up000023, at RBA 978.
    2012-04-04 22:17:36 INFO OGG-01057 Oracle GoldenGate Capture for Oracle, eatuop1.prm: Recovery completed for all targets.
    2012-04-04 22:17:36 INFO OGG-01517 Oracle GoldenGate Capture for Oracle, eatuop1.prm: Position of first record processed Sequence 13469, RBA 21894160, SCN 1789.722275534, Apr 4, 2012 10:12:40 PM.
    -rw-rw-rw- 1 svc_ggs 502 978 Apr 4 22:17 up000023

    got it working, this seems to be about as simple as i could formulate it. thanks for pointing me in the right direction.
    TABLE GGS_TEST_EXT, &
    SQLEXEC ( ID co_count, &
    QUERY " select f_lookup_company_name(:P1) x from dual ", &
    PARAMS ( P1 = company_id), BEFOREFILTER), &
    FILTER ( @GETVAL (co_count.x = 0) );
    then i have a function that returns 1 or 0, depending on the company id passed in.
    thx,
    daniel

  • ORA-00933: SQL command not properly ended

    I am attempting to create a view in oracle 8.0.6 but get the error message ORA-00933 SQL command not properly ended, can anyone help?:
    SQL> create view AJT_SCHEDULES01 as
    2 select SCHDL_REFNO, STRAN_REFNO from SCHEDULES order by STRAN_REFNO desc;
    select SCHDL_REFNO, STRAN_REFNO from SCHEDULES order by STRAN_REFNO desc
    ERROR at line 2:
    ORA-00933: SQL command not properly ended

    ORDER BY cannot be used to create an ordered view or to insert in a certain order.
    Please refer to Section ORA-00933: SQL command not properly ended at : http://otn.oracle.com/doc/server.805/a58312/newch220.htm
    For further assistance, please post in the forum at : PL/SQL
    Hope this helps
    Regards
    Pushkala

  • Using EXECUTE IMMEDIATE with Create Table SQL Statement not working

    Hi ,
    I am all the privileges given from the SYSTEM user , but still i am not able to create a table under procedure . Please see these and advice.
    create or replace procedure sp_dummy as
    begin
    Execute Immediate 'Create table Dummy99_99 (Dummy_Field number)';
    end;
    even i tried this way also
    create or replace PROCEDURE clearing_Practise(p_file_id in varchar2, p_country in VARCHAR2,p_mapId in VARCHAR2)
    AUTHID CURRENT_USER AS
    strStatusCode VARCHAR2(6);
    BEGIN
    EXECUTE IMMEDIATE 'create table bonus(name varchar2(50))';
    commit;
    EXCEPTION
    WHEN OTHERS THEN
    dbms_output.put_line('ERROR Creating Table');
    END ;

    William Robertson wrote:
    Since the syntax is correct, my guess is you do not have CREATE TABLE system privilege granted directly to your account. A common scenario is that you have this privilege granted indirectly via a role, allowing you to create tables on the command line, but stored PL/SQL is stricter and requires a direct grant and therefore the procedure fails with 'insufficient privileges'.A bit like he's already been told on his first thread...
    Using of Execute Immediate in Oracle PLSQL
    Generally you would not create tables from stored PL/SQL. Also as you have found out, it's best not to hide exceptions with 'WHEN OTHERS THEN [some message which gives less detail than the one generated by Oracle]'.Again like he was told on the other thread.
    There's just no telling some people eh! :)

  • What will you do if any SQL is not working.in oracle 10g...apps 11.5.10.2

    What will you do if any SQL is not working. in oracle 10g....apps 11.5.10.2

    928714 wrote:
    yes sir.If you help me in answering my questions i wll be very thankful to you sir.
    tnx,I haven't a clue.
    As you have been advised in many of your posts, go study the documentation for whichever specific topic you are interested in.
    For me to answer your questions, I would need to go get that documentation.
    Then I would need to read that documentation.
    Then I would need to write a forum post that interprets what I think I learned from that documentation.
    It is so very much faster if YOU go do that instead of posting to a forum and expecting others to do it. You will remember what you study for a lot longer time if you teach yourself.

  • ERP 6.0 on MS SQL 2005 not start

    Hello.
    System ERP 6.0
    OS: Win2003
    DB: MS SQL 2005
    Try startup SAP System, but dispatcher stopped.
    Work process are died...
    In wp00 log next:
    M Wed Dec 10 15:42:32 2008
    M  calling db_connect ...
    C  Thread ID:1860
    C  Thank You for using the SLOLEDB-interface
    C  Using dynamic link library 'E:\usr\sap\E01\DVEBMGS00\exe\dbmssslib.dll'
    C  dbmssslib.dll patch info
    C    patchlevel   0
    C    patchno      144
    C    patchcomment MSSQL: ODBC fastload on separate connection (1131805)
    C  np:(local) connection used on STG-PTP-R3
    C  CopyLocalParameters: dbuser is 'e01'
    C  Using Provider SQLNCLI
    C  OpenOledbConnection: MARS property was set successfully.
    C  Provider Release:9.00.2047.00
    C  Using Provider SQLNCLI
    C  OpenOledbConnection: MARS property was set successfully.
    C  OpenOledbConnection: line 23715. hr: 0x8000ffff Communication link failure
    C  sloledb.cpp [OpenOledbConnection,line 23715]: Error/Message: (err 233, sev 0), Communication link failure
    C  Procname: [OpenOledbConnection - no proc]
    C  sloledb.cpp [OpenOledbConnection,line 23715]: Error/Message: (err 233, sev 0), Named Pipes Provider: РЎ РѕРu00B1РѕРёСu2026 РєРѕРЅСu2020РѕРІ РєРu00B0РЅРu00B0Рu00BBРu00B0 РѕСu201AСЃСѓСu201AСЃСu201AРІСѓСЋСu201A РїСЂРѕСu2020Рu00B5СЃСЃСu2039.
    C  Procname: [OpenOledbConnection - no proc]
    C  sloledb.cpp [OpenOledbConnection,line 23715]: Error/Message: (err 0, sev 0), Invalid connection string attribute
    C  Procname: [OpenOledbConnection - no proc]
    C  Using Provider SQLNCLI
    C  OpenOledbConnection: MARS property was set successfully.
    C  OpenOledbConnection: line 23715. hr: 0x8000ffff Communication link failure
    C  sloledb.cpp [OpenOledbConnection,line 23715]: Error/Message: (err 233, sev 0), Communication link failure
    C  Procname: [OpenOledbConnection - no proc]
    C  sloledb.cpp [OpenOledbConnection,line 23715]: Error/Message: (err 233, sev 0), Named Pipes Provider: РЎ РѕРu00B1РѕРёСu2026 РєРѕРЅСu2020РѕРІ РєРu00B0РЅРu00B0Рu00BBРu00B0 РѕСu201AСЃСѓСu201AСЃСu201AРІСѓСЋСu201A РїСЂРѕСu2020Рu00B5СЃСЃСu2039.
    C  Procname: [OpenOledbConnection - no proc]
    C  sloledb.cpp [OpenOledbConnection,line 23715]: Error/Message: (err 0, sev 0), Invalid connection string attribute
    C  Procname: [OpenOledbConnection - no proc]
    C  Using Provider SQLNCLI
    C  OpenOledbConnection: MARS property was set successfully.
    C  OpenOledbConnection: line 23715. hr: 0x8000ffff Communication link failure
    C  sloledb.cpp [OpenOledbConnection,line 23715]: Error/Message: (err 233, sev 0), Communication link failure
    C  Procname: [OpenOledbConnection - no proc]
    C  sloledb.cpp [OpenOledbConnection,line 23715]: Error/Message: (err 233, sev 0), Named Pipes Provider: РЎ РѕРu00B1РѕРёСu2026 РєРѕРЅСu2020РѕРІ РєРu00B0РЅРu00B0Рu00BBРu00B0 РѕСu201AСЃСѓСu201AСЃСu201AРІСѓСЋСu201A РїСЂРѕСu2020Рu00B5СЃСЃСu2039.
    C  Procname: [OpenOledbConnection - no proc]
    C  sloledb.cpp [OpenOledbConnection,line 23715]: Error/Message: (err 0, sev 0), Invalid connection string attribute
    C  Procname: [OpenOledbConnection - no proc]
    C  failed to establish conn. 1
    B  ***LOG BY2=> sql error -1     performing CON [dbsh#2 @ 1204] [dbsh    1204 ]
    B  ***LOG BY0=> Communication link failure [dbsh#2 @ 1204] [dbsh    1204 ]
    B  ***LOG BY2=> sql error -1     performing CON [dblink#5 @ 431] [dblink  0431 ]
    B  ***LOG BY0=> Communication link failure [dblink#5 @ 431] [dblink  0431 ]
    M  ***LOG R19=> ThInit, db_connect ( DB-Connect 000256) [thxxhead.c   1440]
    M  in_ThErrHandle: 1
    M  *** ERROR => ThInit: db_connect (step 1, th_errno 13, action 3, level 1) [thxxhead.c   10468]
    What's it mean?
    I have a little experience with SQL Server...

    Hi,
    Is this a new installation, if so is it started all fresh or from upgrade.
    If this is not new installation what are the activities executed that has affected the database, i feel no process on other end of pipe which was something related to non-existence of shadow process at database level for the process from SAP.
    See also the amount of free space available and what was the LOG file size since this grow enormously in MSS.
    Go thru the links
    [http://forums.microsoft.com/TechNet/ShowPost.aspx?PostID=3940600&SiteID=17]
    [http://blogs.msdn.com/sql_protocols/archive/2006/07/26/678596.aspx]
    have you installed the MSSQL supportpacks provided by SAP along with MSSQL database, i feel problem in database installation, this DB is not tuned in accordance to SAP.
    Regards....
    Edited by: Sita Rr Uppalapati on Dec 11, 2008 8:31 PM

  • SQL Query (not OMBPlus) to get Join- and Filter-Conditions

    Hallo,
    I allready used the Views ALL_IV_XFORM_... to get serveral informations on my mappings using SQL-Queries,
    but how can I retrieve the Conditions of an Join- or Filter-Transformation using SQL and not OMBPLUS?
    Thanks in advance
    Frank

    but how can I retrieve the Conditions of an Join- or Filter-Transformation using SQL and not OMBPLUS?if i understood the question correctlly then
    join will be written as
    select * from table_1 , table_2  where table_1.col1=table_2.col2;filter will be written as
    select * from table_1  where table_1.col1='A';

  • SQL Logging not working in SSIS 2008

    Hello,
    I have packages created in SSIS 2008 and I am trying to enable logging in them. I specified a SQL Server provider and gave it a working SQL Server DB connection as the configuration. I chose to log all the events from the Details tab, then I executed the package. It ran without errors, but no logging occured. Actually neither the logging table, nor the stored procedure that should perform the loggign were created. These exact steps used to work with SSIS 2005 and they'd generate the table, stored proc and start storing logging information. For testing, I also added to the same package logging options a text logging and a SQL Profiler log providers. These were created successfully and have logs entered in them. I tried different DB connections on different servers, but still the table and sp are not even getting created. Any ideas?
    Best Regards,
    Ketara

    Had the same problem. When I read the documentation Microsoft explicitly states that you must use an OLEDB provider for SQL Server logging. I checked, and mine was the "SQL Server Native Client" rather than the "Microsoft OLE DB Provider for
    SQL Server". When I switched out the driver, it worked. 
    The log table is under System Tables called: dbo.sysssislog
    The stored procedure that populates the table is under System Stored Procedures called: dbo.sp_ssis_addlogentry

Maybe you are looking for

  • Firefox doesnt load an image when *lots* of tabs are open

    Hi, An old website I created has a problem displaying a very large background image when *loads* of tabs are open (which makes me think its something to do with memory). An example page of the site in question is: http://www.southbankcentre.co.uk/abo

  • Error when I oull out Ipod nano from pc

    After connection my Ipod to pc (with windows 2000 pro), the automatic syncronization transfer the songs to the ipod. After received a message the all is ok...in the display of Ipod there is this message: "NOT DISCONECT" I click on icon "eject" but i

  • GET_BLOB_FILE_SRC and IE9 - 64 bit

    I can't seem to get the GET_BLOB_FILE_SRC to display a PDF inline using IE9 64bit. The same code works correctly using the 32 bit version of IE but the 64 bit version just displays a box with a red X. Does anyone have any solutions? Thank you --Seatt

  • HTTP Receiver adpater configuration for Web Application server

    Hello All, I am trying to configure a HTTP scenario. I want to configue the receiver HTTP channel to connect to the WebApplication server installed locally. I am able connect to the WebApplication server from by browser by giving the URL http://inld5

  • Upgrade directly from 1.2 to 2.0?

    Hi, Do I need to upgrade from my current version of 1.2 to the last pre 2.0 version (1.4 or whatever it was last on) before I can upgrade to 2.0? Thanks a lot. -keith.