Doc oracle 10g SQL in french

Hi all.
I don't know if i am allowed to make this request.
I am lookink for a document 5pdf for example)
about Oracle 10g SQL.
I have some in english but i am looking for a french document.
Any help is good.
Thanks

Your problem is most likely in decode - the return type in your expression will be character based on first search value ('null'), so it will be implicitly converted to character and then again implicitly converted to date by loading into date column. At some of this conversions you probably are loosing your time part. You can try instead use cast:
SQL> desc t
Name                                      Null?    Type
LASTWRITTEN                                        DATE
CREATEDON                                          DATE
LASTUPDATEDON                                      DATE
SQL> select * from t;
no rows selected
SQL> !cat t.ctl
LOAD DATA
INFILE *
INTO TABLE T
TRUNCATE
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' TRAILING NULLCOLS
LASTWRITTEN
"decode(:LASTWRITTEN,'null',cast(Null as date),
  to_date(:LASTWRITTEN,'YYYY-MM-DD HH24:MI:SS'))",
CREATEDON
"decode(:CREATEDON,'null',cast(Null as date),
  to_date(:CREATEDON,'YYYY-MM-DD HH24:MI:SS'))",
LASTUPDATEDON
"decode(:LASTUPDATEDON,'null',cast(Null as date),
  to_date(:LASTUPDATEDON,'DD/MM/YYYY HH24:MI:SS'))"
BEGINDATA
2007-02-15 15:10:20,null,null
null,2007-02-15 15:10:20,null
null,null,15/02/2007 15:10:20
SQL> !sqlldr userid=scott/tiger control=t.ctl log=t.log
SQL*Loader: Release 10.2.0.3.0 - Production on Fri Feb 29 00:20:07 2008
Copyright (c) 1982, 2005, Oracle.  All rights reserved.
Commit point reached - logical record count 3
SQL> select * from t;
LASTWRITTEN         CREATEDON           LASTUPDATEDON
15.02.2007 15:10:20
                    15.02.2007 15:10:20
                                        15.02.2007 15:10:20Best regards
Maxim

Similar Messages

  • Is there any difference in Oracle 9i SQL Loader and Oracle 10g SQL Loader

    Hi
    Can anyone tell me whether is there any difference in Oracle 9i SQL Loader and Oracle 10g SQL Loader?
    I am upgrading the 9i db to 10g and wanted to run the 9i SQL Loader control files on upgraded 10g db. So please let me know is there any difference which I need to consider any modifications in the control files..
    Thank you in advance
    Adi

    answered

  • How to use Oracle 10G SQL features in OWB?

    We are using OWB repository 10.2.0.1.0 and OWB client 10.2.0.1.31. The Oracle version is 10 G (10.2.0.3.0). OWB is installed on Linux.
    Oracle 10G SQL offers
    1) Inserting Into a Table with Error Logging
    2) conditional_insert_clause, Specify the conditional_insert_clause to perform a conditional multitable insert.
    Did anyone use above features in OWB10G mapping?
    How do we use them?
    Thanks in advance.
    RI

    Hi,
    Just a thought on the multi-table insert. OWB generates multitable insert when one source is mapped to multiple targets only on the condition that after the splitter there should not be any OWB operator that can change the cardinality of the row-set coming out of the splitter (like joiners, filters, aggregators etc.)..
    Regarding the link, I was wondering where I could find a decent documentation of the shadow table and the DML Error Logging through OWB .. Thanks for the link.
    OWB error messages are basically Oracle Error Messages when you consider the code that gets deployed. Other than that VLD errors are sometimes mysterious and hard to debug.. Hope someone can give us more details on how to handle such VLD errors :)
    HTH
    -AP

  • Oracle 10g SQL

    Hi ,
    I want some information regarding Oracle 10g SQL Exam.Please provide any dumps,links,books or any other related information.
    Thanks in Advance
    Laxman

    login to otn.oracle.com to find more information on exams
    underline Steps to Become Oracle Certified_underline_
    http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=50#1
    If you are from India, below is the contact info
    Bangalore 080 41084657
    Chennai 044-66346114
    Delhi 011-46509015
    Hyderabad 040-66397157
    Kolkata 033-66162000
    Mumbai 022-67711214
    Ahemdabad 079-40024246
    Pune 020-66321002
    Thank You

  • Oracle 10g SQL Profiler Equivalent?

    As per the subject, I can monitor sessions via the web gui, but I need to see actual SQL statements that are hitting the 10g server. Is there an Oracle 10g SQL Profiler equivalent?

    XE?
    You might want to hunker down with some of the docco available at http://www.oracle.com/pls/db102/portal.portal_db?selected=1
    In particular, you could look at the 'Reference' manual (not SQL Reference, or any other ... Reference) and browse through the DBA_ and V$ views listed. The Concepts and Administration manuals are interesting as well.
    The specific views of interest include, but are not limited to, V$SQLAREA and V$SQLTEXT

  • How to login in Oracle 10g SQL Plus

    I just installed Oracle 10g. I tried to login to SQL Plus by using scott and tiger to be user name and password, but it did not work. What can I do about it?
    Please help and thanks in advance!!!

    You have to configure a Net service name, and connect as
    sqlplus scott/tiger@<service_name>
    You can use the Net Configuration Assistant to do that. This is in the Oracle menu on Windows systems. On Unix/Linux you can use the netca utility.
    If you are working locally (on the server), you can also set the ORACLE_SID environment variable :
    Windows : set ORACLE_SID=<your_sid>
    Unix/Linux : ORACLE_SID=<your_sid>; export ORACLE_SID
    then connect as
    sqlplus scott/tiger

  • Oracle 10g sql error

    insert into s_t_dv_entegrasyon
    (office_code, dept_code, dv_tipi, hareket_tipi)
    select a.office_code, a.code dv_code, b.code dv_tipi ,
    c.code hareket_tipi
    from s_t_departments_alt a, s_t_dv_type b , s_t_dv_hareket_tipi c
    where c.sira &gt;= 20
    minus
    select office_Code , dept_code, dv_tipi, hareket_tipi
    from s_t_dv_entegrasyon;
    This sql code is not running to oracle 10g but ,
    running to oracle8,oracle9.
    I don't now , How I solvage this problem.

    what is the exact error?

  • Oracle 10g SQL plus username, password + Host string unkown

    Hi Friends
    I have just installed Oracle 10g in my computer. I could not use SQL plus because I dont know the exact username, password and host string to connect. Is there anybody to help me out. I am bit stressed for this.. Thanks by Hossain

    Do not reply to 5 year old posts. If you have a problem, start a post of your own, referencing the old one if necessary.
    Describe your problem explicitly, giving all relevant information.
    Please see Re: 2. How do I ask a question on the forums?

  • Login problem with Oracle 10g SQL Plus

    Hi, I just down load Oracle 10g from web site. I tried use scott and tiger for user name and password, I can't login. I tried use SYSMAN and the password I used when I installed the software, I can't login in too. Please help!!!

    This forum is for OBE specific questions only. Please post a message to one of the database forums located here:
    http://forums.oracle.com/forums/index.jsp?cat=18
    You can also check metalink or call support.

  • Oracle 10g SQL Tuning Advisor

    I am working as a junior DBA. I tried to tune a query using SQL Tuning Advisor that is with DBMS_SQLTUNE.I have created the tuning task successfully with DBMS_SQLTUNE.create_tuning_task.But when i execute the tuning task with EXEC DBMS_SQLTUNE.execute_tuning_task() i got an error like
    SQL> EXEC DBMS_SQLTUNE.execute_tuning_task(task_name => 'rep_three');
    BEGIN DBMS_SQLTUNE.execute_tuning_task(task_name => 'rep_three'); END;
    ERROR at line 1:
    ORA-00081: address range [0x60000000000A7D70, 0x60000000000A7D74) is not
    readable
    ORA-00600: internal error code, arguments: [kesatmGetSqlStats:optCost], [], [],
    ORA-06512: at "SYS.PRVT_ADVISOR", line 1624
    ORA-06512: at "SYS.DBMS_ADVISOR", line 186
    ORA-06512: at "SYS.DBMS_SQLTUNE", line 1008
    ORA-06512: at line 1The oracle version is Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bi. The OS is HP-UX. The version is HP-UX B.11.23 U ia64.
    I tried to execute DBMS_SQLTUNE as DWH user.I have granted the advisor,DROP ANY SQL PROFILE,ALTER ANY SQL PROFILE,CREATE ANY SQL PROFILE privileges and DBA roles to the DWH user. The way i ran DBMS_SQLTUNE is, first i logged in as DWH user and i tried to execute the query for getting the SQL_ID for the query. For getting the SQL_ID i selected the SQL_ID column value for the DWH user session from v$session.I kept that query executing and meanwhile i opened another session as DWH user and created the tuning task as follows
    DECLARE
      l_sql_tune_task_id  VARCHAR2(100);
    BEGIN
      l_sql_tune_task_id := DBMS_SQLTUNE.create_tuning_task (
                              sql_id      => 'b65fj39dkkb9v',
                              scope       => DBMS_SQLTUNE.scope_limited,
                              time_limit  => 3600,
                              task_name   => 'rep_three',
                              description => 'Report Tuning');
      DBMS_OUTPUT.put_line('l_sql_tune_task_id: ' || l_sql_tune_task_id);
    END;
    /The creation of tuning task was successful.And i executed the tuning task as follows
    EXEC DBMS_SQLTUNE.execute_tuning_task(task_name => 'rep_three');The above mentioned errors came when i executed the tuning task.
    I am also adding the query which i have tried to tune
    select * from dwh.beneficiary_dim BEN_DIM,
                     (Select adr_dp_id,
                   adr_account_no,
                   ADR_ADDRESS_LINE_1 || ' ' ||
                   ADR_ADDRESS_LINE_2 || ' ' ||
                   ADR_ADDRESS_LINE_3 || ' ' ||
                   ADR_ADDRESS_LINE_4 as ADDRESS,
                   adr_pin_code,adr_phone_no,adr_fax_no
              from dwh.beneficiary_address_dim where adr_type_id = 1) PERMANENT_ADD_DIM,
           (Select adr_dp_id,
                   adr_account_no,
                   ADR_ADDRESS_LINE_1 || ' ' ||
                   ADR_ADDRESS_LINE_2 || ' ' ||
                   ADR_ADDRESS_LINE_3 || ' ' ||
                   ADR_ADDRESS_LINE_4 as ADDRESS,
                   adr_pin_code,adr_phone_no,adr_fax_no
              from dwh.beneficiary_address_dim where adr_type_id = 2) BANK_ADD_DIM,
           (Select adr_dp_id,
                   adr_account_no,
                   ADR_ADDRESS_LINE_1 || ' ' ||
                   ADR_ADDRESS_LINE_2 || ' ' ||
                   ADR_ADDRESS_LINE_3 || ' ' ||
                   ADR_ADDRESS_LINE_4 as ADDRESS,
                   adr_pin_code,adr_phone_no,adr_fax_no
              from dwh.beneficiary_address_dim where adr_type_id = 3) NOM_GUARDIAN_ADD_DIM,
           (Select adr_dp_id,
                   adr_account_no,
                   ADR_ADDRESS_LINE_1 || ' ' ||
                   ADR_ADDRESS_LINE_2 || ' ' ||
                   ADR_ADDRESS_LINE_3 || ' ' ||
                   ADR_ADDRESS_LINE_4 as ADDRESS,
                   adr_pin_code,adr_phone_no,adr_fax_no
              from dwh.beneficiary_address_dim where adr_type_id = 4) CORR_ADD_DIM,
           (Select adr_dp_id,
                   adr_account_no,
                   ADR_ADDRESS_LINE_1 || ' ' ||
                   ADR_ADDRESS_LINE_2 || ' ' ||
                   ADR_ADDRESS_LINE_3 || ' ' ||
                   ADR_ADDRESS_LINE_4 as ADDRESS,
                   adr_pin_code,adr_phone_no,adr_fax_no
              from dwh.beneficiary_address_dim where adr_type_id = 6) MINOR_ADDRESS,
                     (Select rp.requestid as requestid,
    decode(rp.value,'ALL','ALL','','ALL',decode(substr(rp.value,1,instr(rp.value,'|',1,1)-1),'','ALL',substr(rp.value,1,instr(rp.value,'|',1,1)-1))) as Name,
    decode(rp.value,'ALL','ALL','','ALL',decode(substr(rp.value,(instr(rp.value,'|',1,1)+1),((instr(rp.value,'|',1,2))-(instr(rp.value,'|',1,1)+1))),'','ALL',substr(rp.value,(instr(rp.value,'|',1,1)+1),((instr(rp.value,'|',1,2))-(instr(rp.value,'|',1,1)+1))))) as Address,
    decode(rp.value,'ALL','ALL','','ALL',decode(substr(rp.value,(instr(rp.value,'|',1,2)+1)),'','ALL',substr(rp.value,(instr(rp.value,'|',1,2)+1)))) as PAN
                      from disadmin.requestparameters rp, disadmin.requestparameters rps, disadmin.reportrequests rr
                     where rp.parameterid = 'CNAS_PARAM_VALUE'   
                       and rr.status = 'A'
                       and rp.requestid = rr.id
                       and rp.id = rps.id) P_PARAM_VALUE,
                     (Select rp.requestid as requestid, rp.value as Type
                        from disadmin.requestparameters rp, disadmin.reportrequests rr
                       where rp.parameterid = 'CNAS_NAME_TYPE'
                         and rr.status = 'A'
                         and rp.requestid = rr.id)  P_NAME_TYPE,
                     (Select rp.requestid as requestid, rp.value as Addtype
                        from disadmin.requestparameters rp, disadmin.reportrequests rr
                       where rp.parameterid = 'CNAS_ADDRESS_TYPE'
                         and rr.status = 'A'
                         and rp.requestid = rr.id) P_ADDRESS_TYPE    
       where ( 1= case when P_NAME_TYPE.Type = 'F' then
                   case when BEN_DIM.BDM_FIRST_HOLDER_NAME like DECODE(P_PARAM_VALUE.Name,'ALL','%'||BEN_DIM.BDM_FIRST_HOLDER_NAME||'%','%'||P_PARAM_VALUE.Name||'%')
                             or BEN_DIM.BDM_FIRST_HOLDER_SURNAME like DECODE(P_PARAM_VALUE.Name,'ALL','%'||BEN_DIM.BDM_FIRST_HOLDER_SURNAME||'%','%'||P_PARAM_VALUE.Name||'%')
                        then 1
                   else null end
                 else            
                   case when P_NAME_TYPE.Type = 'ALL' then
                     case when (BEN_DIM.BDM_FIRST_HOLDER_NAME like DECODE(P_PARAM_VALUE.Name,'ALL','%'||BEN_DIM.BDM_FIRST_HOLDER_NAME||'%','%'||P_PARAM_VALUE.Name||'%')
                                or BEN_DIM.BDM_FIRST_HOLDER_SURNAME like DECODE(P_PARAM_VALUE.Name,'ALL','%'||BEN_DIM.BDM_FIRST_HOLDER_SURNAME||'%','%'||P_PARAM_VALUE.Name||'%'))
                                and BEN_DIM.BDM_SECOND_HOLDER_NAME like DECODE(P_PARAM_VALUE.Name,'ALL','%'||BEN_DIM.BDM_SECOND_HOLDER_NAME||'%','%'||P_PARAM_VALUE.Name||'%')
                                and BEN_DIM.BDM_THIRD_HOLDER_NAME like DECODE(P_PARAM_VALUE.Name,'ALL','%'||BEN_DIM.BDM_THIRD_HOLDER_NAME||'%','%'||P_PARAM_VALUE.Name||'%')
                          then 1
                     else null end
                   else null end 
                 end )                    
         and BEN_DIM.BDM_IT_PAN like DECODE(P_PARAM_VALUE.PAN,'ALL','%'||BEN_DIM.BDM_IT_PAN||'%','%'||P_PARAM_VALUE.PAN||'%')
         and (1 = case when P_ADDRESS_TYPE.ADDTYPE = 1 then
                         case when instr(PERMANENT_ADD_DIM.ADDRESS, DECODE(P_PARAM_VALUE.ADDRESS,'ALL',PERMANENT_ADD_DIM.ADDRESS, P_PARAM_VALUE.ADDRESS)) <> 0
                              then 1
                         else null end
                       when P_ADDRESS_TYPE.ADDTYPE = 3 then
                         case when instr(NOM_GUARDIAN_ADD_DIM.ADDRESS, DECODE(P_PARAM_VALUE.ADDRESS,'ALL',NOM_GUARDIAN_ADD_DIM.ADDRESS, P_PARAM_VALUE.ADDRESS)) <> 0 
                           then 1
                         else null end 
                       when P_ADDRESS_TYPE.ADDTYPE = 4 then
                         case when instr(CORR_ADD_DIM.ADDRESS, DECODE(P_PARAM_VALUE.ADDRESS,'ALL',CORR_ADD_DIM.ADDRESS, P_PARAM_VALUE.ADDRESS)) <> 0 
                           then 1
                         else null end
                       when P_ADDRESS_TYPE.ADDTYPE = 6 then
                         case when instr(MINOR_ADDRESS.ADDRESS, DECODE(P_PARAM_VALUE.ADDRESS,'ALL',MINOR_ADDRESS.ADDRESS, P_PARAM_VALUE.ADDRESS)) <> 0 
                           then 1
                         else null end 
                  else null end );The above query also tries to access some tables from another user DISADMIN. Could you please help me in solving this problem while using SQL Tuning Advisor ? I am the only DBA here.

    will the rows really be updated just by using the package?Considering DMLs
    SQL> select * from test
      2  /
            NO
             1
             2
    SQL> ed
    Wrote file afiedt.buf
      1  DECLARE
      2   my_task_name VARCHAR2(30);
      3  my_sqltext   CLOB;
      4  BEGIN
      5  my_sqltext := 'insert into test values (3)';
      6  my_task_name := DBMS_SQLTUNE.CREATE_TUNING_TASK(
      7   sql_text    => my_sqltext,
      8  task_name   => 'my_sql_tuning_task');
      9* end;
    SQL> /
    PL/SQL procedure successfully completed.
    SQL> BEGIN
      2  DBMS_SQLTUNE.EXECUTE_TUNING_TASK( task_name => 'my_sql_tuning_task' );
      3  END;
      4  /
    PL/SQL procedure successfully completed.
    SQL> select * from test
      2  /
            NO
             1
             2
    SQL> SELECT DBMS_SQLTUNE.REPORT_TUNING_TASK( 'my_sql_tuning_task')
      2    FROM DUAL;
    DBMS_SQLTUNE.REPORT_TUNING_TASK('MY_SQL_TUNING_TASK')
    GENERAL INFORMATION SECTION
    Tuning Task Name   : my_sql_tuning_task
    Tuning Task Owner  : TEST
    Scope              : COMPREHENSIVE
    Time Limit(seconds): 1800
    Completion Status  : COMPLETED
    Started at         : 03/27/2008 05:16:14
    Completed at       : 03/27/2008 05:16:16
    DBMS_SQLTUNE.REPORT_TUNING_TASK('MY_SQL_TUNING_TASK')
    Schema Name: TEST
    SQL ID     : gwkmgmyj9824t
    SQL Text   : insert into test values (3)
    There are no recommendations to improve the statement.
    -------------------------------------------------------------------------------Adith

  • Oracle 10g sql tuning

    I am on Oracle 10.2.0.3 on Windows 2003.
    I have a third party package whose code cannot be modified. There are several queries written using NOT clauses, as a result Oracle does full table scan and hash joins.
    select * from svp_view_s where NOT a_webc_url like '%dm_sig_source%.pdf' and
    r_object_id in (Select parent_id from svp_view_l where child_id='098c4230800d7dd7' and NOT
    a_webc_url like '%dm_sig_source%.pdf');
    Is there a way to force it in a generic fashion to use indexes instead of explicitly adding hints to use specific indexes. Oracle many times ignores the hints. Also I do not have access to code, so somehow has to figure out how to use stored outlines.
    There are many queries. I was looking at some generic solution.
    Prem

    Look into whether you can use the DBMS_ADVANCED_REWRITE built-in package.
    http://www.psoug.org/reference/dbms_adv_rewrite.html

  • Retrieval of xmltype data from oracle 10g to java

    Hi
    Right now we are facing an issue on xmltype retrieval from oracle 10g to java.
    I used xmltype column.getClobval() to get the xml content, but unable to do the parse to get the xml data.
    So i tried getStringval(), getting the xml content as string format and here in this case also, i didn't get document object.
    Here is the code snippet:
    String sql = "SELECT node_id,node_desc,parent_node_id,e.report_xml.getStringval() FROM TABLE_STRUCTURE e";
    st = con.createStatement();
    rs = st.executeQuery(sql);
    while (rs.next()) {
    Object value[] = { rs.getString(1), rs.getString(2), rs.getString(3), rs.getString(4) };
    list.add(value);
    DOMParser parser = new DOMParser();
    parser.parse(rs.getString(4));
    doc = (Document) parser.getDocument();
    System.out.println(": DOM = " + doc.getClass().getName());
    Please do guide in this scenario.
    Thanks in advance.
    Sirisha

    Please see below link
    http://www.stanford.edu/dept/itss/docs/oracle/10g/appdev.101/b10790/xdb11jav.htm

  • Auditing in Oracle 10g

    Hi,
    OS = HP Unix
    Datbase = 10.2.0.1
    My management want me to enable auditing at database level.....It means, once i enabled the auditing at db level...it captures all the uses login,logout, what they are doing at database..everything in sys.aud$ table, dba_audit_trail tables...right...
    If i enable it, i heard that there is performance problem...
    Friends please share your experience....how are you maintaining auditing at your companies...
    Please share your experience

    There are so many levels of enabling auditing.
    The "audit session" will be hardly noticed and will audit connections but as for auditing as you say "what they are doing" "everything" then you will consume large amounts of space and system resource and may need to move the AUD$ table from the SYSTEM tablespace into an AUDIT tablespace. How long will this audit data be kept; a purge job will be needed.? How much spare CPU capacity do you have. You will need to clear up the specific requirements from your management otherwise you will end up with GIG's of audit data very quickly. You may even want to think of placing it on own separate fast storage.
    http://www.stanford.edu/dept/itss/docs/oracle/10g/server.101/b10759/statements_4007.htm
    Review the examples in the manual.
    N.B. Oracle do support moving AUD$ but refer to metalink for details they have docs showing how to......
    Message was edited by:
    triggb

  • Help for certification- oracle 10g

    Hi all,
    I completed my Oracle 10g- SQL expert exam (1z0-047). I want to know next certification which help me to go in
    1.DBA
    2.Developer
    Thank you.
    Regards
    Sachin

    BTW, there is a certification forum:
    Oracle Certification Program
    Edited by: Slow_moe on Dec 1, 2008 11:15 PM

  • "Oracle Database 10g: SQL Fundamentals I"  with a FRENCH language ?

    S'il vous plait ,je veux telecharger des cours en "Oracle Database 10g: SQL Fundamentals I" en francais est ce qu'il ya des liens disponible...? Merci
    -Please i want to download a Course "Oracle Database 10g: SQL Fundamentals I" with a FRENCH language wat do i do?
    thanks for your

    You could look for it in your local bookstore or at amazon.
    I think oracle provides only documentation in english language for download, but I may be wrong.
    Edited by: hm on 09.11.2011 04:08

Maybe you are looking for

  • How can I make signature darker when I print the report?

    I need to put my manager's signature on the report. The signature is too light, How can I make it darker when I print the report? I used file link and OLE, both did't make it. Thanks.

  • Calling parameterised reports from Oracle Forms 11g

    Hi, I wrote a procedure to call the reports as PROCEDURE CALL_REPORT IS BEGIN DECLARE v_report_id Report_Object; vc_report_job_id VARCHAR2(100); /* unique id for each Report request */ vc_rep_status VARCHAR2(100); /* status of the Report job */ BEGIN

  • CS5 64 bit Masking is not working

    Wierd problem in 64 bit layer masking dosen't work properly.  White reveals the layer below when using brush tool.  Black will not paint back in.  Isn't white working backwards?  I am using Win 7 core I7 processor with 12gig of ram. CS5 in 32 bit wor

  • Using airport extreme in china - can't get it to work

    I just moved to china and have been trying to set up a new Airport Extreme dual band to my high speed internet connection but can't get it to work (bought the AE in the US and worked fine there). I have a Green light on the physical AE, and in Networ

  • Moved iTunes from pc to iMac...now have missing file links!

    Hi all. Just bought a new iMac and want to transfer my iTunes library and music to it from my pc. On my pc I had all my music consolidated and organised by itunes, and I transferred the entire itunes folder (music, library, etc) to my iMac via an ext