Oracle PL SQL interview question SQL loader

Поделиться
HTML-код
  • Опубликовано: 4 окт 2024
  • НаукаНаука

Комментарии • 132

  • @dprasannapondy
    @dprasannapondy 4 года назад +4

    Your videos are really helpful and they way you explain is very clear and organised.. You are a master in teaching what you clearly understand.. You had mastered that.. Thanks a lot

  • @vipul1177
    @vipul1177 5 лет назад +3

    Hi Siva, very well explained. Have a suggestion, I understand it’s difficult to cover all interview questions, but if u can include few. 1 can we load multiple external files into a single table? 1. Can one file be loaded into multiple tables? 3. Can we skip columns ? 4. Can we limit the number of rows ? 5. Types of sql loader and which is faster?

    • @SivaAcademy
      @SivaAcademy  5 лет назад +4

      Ya Vipul,
      You are right, Its bit difficult to cover all the questions, however this videos would just give some starting point for some readers to start with.
      However, I will try to cover all these questions in some other videos.
      Thanks for your comment.
      Siva.

  • @vikrantks
    @vikrantks Год назад +1

    Very well Explained. Thank You Siva.

  • @achyutdeokatepatil897
    @achyutdeokatepatil897 Месяц назад

    Too late to watch this video. Again this was a masterpiece. Thanks Siva bhai

  • @vikneshn3272
    @vikneshn3272 4 года назад +1

    Good and understanding way of explanation. 👍👍👍👍

  • @akashsinghal1510
    @akashsinghal1510 3 года назад +3

    Hello Sir, Thank you so much. You are a gem :)

    • @SivaAcademy
      @SivaAcademy  3 года назад

      💐💐thanks for your comments bro

  • @gurumoorthysivakolunthu9878
    @gurumoorthysivakolunthu9878 2 года назад +1

    Thank you for your indepth details, Sir....
    Once data is loaded can we manipulate do DML functions, can we join that table with other tables... and store it in new table...?

  • @g.sreekanthreddy1164
    @g.sreekanthreddy1164 5 лет назад +1

    Hi Siva,
    There are tables A and B and each having 1 lakh records. Truncated table A nd deleted table B. If write query to find out count which one will return faster..

    • @SivaAcademy
      @SivaAcademy  5 лет назад +1

      Partially answered in this video.
      ruclips.net/user/edit?o=U&video_id=evktGJrgORA
      However, i will cover this in detail some time later.
      Thanks,
      Siva.

  • @geniusfreetraining
    @geniusfreetraining 10 месяцев назад

    Very nice explanation . thanks.

  • @AmitSoni-gb2nn
    @AmitSoni-gb2nn 3 месяца назад

    Very Nice

  • @summaseen
    @summaseen 2 года назад

    Very good explanation 👌👌👋👋👍👍

  • @sreenivasborra9540
    @sreenivasborra9540 2 года назад

    Hello siva bro any Oracle coaching available from siva academy... Your way of teaching is amazing bro

  • @ShivaKumar-ps1vh
    @ShivaKumar-ps1vh 3 года назад +2

    When I use the sqlldr script in a SQL file and try to execute it throws unknown error. Can you please show the syntax

    • @cesarl.c.847
      @cesarl.c.847 3 года назад

      Review "LoaderDataPlus" tool to load flat files and to create sintax to import data on: MariaDB, MySQL, PostgreSQL, ORACLE, SQLServer y SQLite.

  • @PKstar143
    @PKstar143 2 года назад

    Super explation thank you

  • @raghum660
    @raghum660 3 года назад +2

    Thanks for the valuable information..
    I have CSV file and file name with date format..example data_load_12112020.csv
    Kindly help me to write control file..

  • @Ins_8800
    @Ins_8800 3 года назад

    Perfectly and clearly explained 😊☺

  • @jay.shah96
    @jay.shah96 4 года назад +1

    Hi Sir, can you make a video about some of the advanced features in PLSQL like function overloading, synonyms, etc. ?

    • @SivaAcademy
      @SivaAcademy  4 года назад +3

      sure, Please stay tuned for more advanced features in PLSQL

  • @AnIndianCricketer
    @AnIndianCricketer 3 года назад

    Thanks a lot Sir. Nicely explained

  • @syedanoorumar1419
    @syedanoorumar1419 4 года назад

    Excellent and clear explanation

  • @swamivivekananda-cyclonicm8781
    @swamivivekananda-cyclonicm8781 2 года назад

    Clear cut explanation

  • @priyavoonna5967
    @priyavoonna5967 2 года назад

    Very clear explanation 😍

  • @gsraj511
    @gsraj511 2 года назад

    Nice and Clear explanation Siva... :)

  • @poojachaudhari1341
    @poojachaudhari1341 2 года назад

    thanks

  • @peramsudheerreddy9888
    @peramsudheerreddy9888 2 года назад

    Tq u so much my dear bro

  • @shashank2004
    @shashank2004 5 лет назад

    Awsome video sir,very well explained..pls make a video on advanced topics like.. local and global index, explain plan and nested loop join ,hash join,sort merge join and pipeline function , performance tuning etc..

    • @SivaAcademy
      @SivaAcademy  5 лет назад +2

      Sure Shashank, Will do soon. Working on sql performance tuning videos, will try to post soon.
      Thanks for your comment.
      Siva.

  • @dheemathimadhu847
    @dheemathimadhu847 3 года назад +1

    Hello sir, can you please make a Video on UTL_FILE package.Thanks.

  • @kuntalbanerjee6903
    @kuntalbanerjee6903 2 года назад

    Hi Siva,Can you please make a video for loading a csv/text file into table using dbms utl file package?Thanks!

  • @A_a0705
    @A_a0705 Год назад

    Hello sir. Your videos are very much helpful.
    I have one question, being asked in interview.
    How to load unique records from flat file to Oracle table? Can we achieve this using SQL loader?
    Kindly answer sir

    • @SivaAcademy
      @SivaAcademy  Год назад +1

      Thank you, sure I will cover in upcoming videos, please stay tuned

    • @A_a0705
      @A_a0705 Год назад

      @@SivaAcademy sure I will watch

  • @sujathapullareddy7726
    @sujathapullareddy7726 4 года назад

    Thanks for the clear explanation, I would like to know if there are thousands of records to load and if everyone of them fail, what is the outcome? Also is there a limit to load the data, or if it needs to be set?

    • @SivaAcademy
      @SivaAcademy  4 года назад

      Hi Sujatha, Yes all the errored out records will be moved to log files

    • @surbhisharma8129
      @surbhisharma8129 3 года назад

      In SQL loader control file you can mention the number of records you want to load. There is a parameter called Load which you need to set.

  • @sampratijain8054
    @sampratijain8054 5 лет назад

    Great explanation Sir

    • @SivaAcademy
      @SivaAcademy  5 лет назад

      @samprati jain, Thanks for your comment 🙏

  • @prashantrohilla4267
    @prashantrohilla4267 3 года назад

    To the point.
    Great Video

  • @anurag970
    @anurag970 3 года назад

    Hello Sir
    Your explanation over any topic is phenomenal
    Can you please make videos on interview questions on data warehouse also??

    • @SivaAcademy
      @SivaAcademy  3 года назад

      Sure bro, please send me few questions to start with

    • @anurag970
      @anurag970 3 года назад

      @@SivaAcademy different types of facts and dimension tables??

    • @anurag970
      @anurag970 3 года назад

      Different data warehouse modelling concept??

    • @SivaAcademy
      @SivaAcademy  3 года назад

      Sure bro

  • @Rathod-P_Raj
    @Rathod-P_Raj 3 года назад

    Can you share demo how to improve performance while loading data using SQL loader if I have txt file of 20gb

  • @mallikarjunreddy4243
    @mallikarjunreddy4243 5 лет назад

    Nice explain

  • @Creative_MIS
    @Creative_MIS 3 года назад

    Useful

  • @nehaPrateek11
    @nehaPrateek11 3 года назад

    great video..can you please cover direct and conventional load as well

  • @sn8957
    @sn8957 3 года назад

    How can we handle error message if the data file not available in the path..

  • @poojagonla7824
    @poojagonla7824 2 года назад

    👌

  • @rajashriwatve3533
    @rajashriwatve3533 3 года назад

    How to exclude extra last line from data file using SQL Loader

  • @srikanthsri5028
    @srikanthsri5028 5 лет назад

    SIR can we move data from csv file to csv file using SQL*LOADER ...?

  • @manjunathganesan7049
    @manjunathganesan7049 4 года назад

    Thanks for the Video, is it possible that sqlldr can be used in PL/SQL block. Thanks in advance.

  • @nehathefamilywoman2785
    @nehathefamilywoman2785 3 года назад

    What is Normalisation ,asked in 3round of CTS interview

    • @king-hc6vi
      @king-hc6vi 5 месяцев назад

      Hi Neha,
      Can you share your mail id so that I can connect with you for interview guidance on plsql

  • @shaikrasheed2861
    @shaikrasheed2861 5 лет назад

    what is difference between in- memory databases and Cloud database??

    • @SivaAcademy
      @SivaAcademy  5 лет назад +1

      Its quite interesting question to answer, i will cover in detail as part of some other viedo.
      In short, the Cloud database is managed somewere in the newtwork ( or say managed by cloud service providers like AWS etc) and we just access as if it is a normal db. Its just a DB service by cloud.
      However in-memory database is sometimes used to save the frequently accessed data in the OS RAM itself, rather than accessing from actual underlying DB to avoid roundtrip to/from DB. you can look into REDIS db , an inmemory DB thats being used these days.

  • @vickypatekar9532
    @vickypatekar9532 5 лет назад

    Sir is it mandatory to save files in .txt or .bad or . discarded file or .log file please Explain

  • @ragupathi15
    @ragupathi15 4 года назад

    Is there any way to Restrict Null values while loading datas using SQL loader.....

    • @SivaAcademy
      @SivaAcademy  4 года назад

      Yes, you can use when clause in control file to restrict based on condition

    • @ragupathi15
      @ragupathi15 4 года назад

      @@SivaAcademy
      load data
      infile 'E:\A\Book1.csv'
      Truncate
      into table Test
      fields terminated by ','
      (
      ID,
      NAME "WHEN NAME IS NOT NULL"
      ) is this correct bro????

    • @SivaAcademy
      @SivaAcademy  4 года назад +1

      No,
      Something similar to the below one
      Load data
      infile 'E:\A\Book1.csv'
      Truncate
      into table Test
      fields terminated by ','
      WHEN NAME ''
      (
      ID,
      NAME
      )

  • @srikanthsri5028
    @srikanthsri5028 5 лет назад

    what is difference between SQL loader and external table?

    • @SivaAcademy
      @SivaAcademy  5 лет назад

      @Sri Kanth, Posted the difference between SQL Loader and External table as a seperate video,
      ruclips.net/video/Gx31qIvI7MQ/видео.html
      Thanks,Siva

  • @shaikrasheed2861
    @shaikrasheed2861 5 лет назад

    What is difference between sqlloader vs datapump?

    • @SivaAcademy
      @SivaAcademy  5 лет назад

      @Shaik
      SQLLOADER - used to transfer data from files into database.( Files should have a standard format), Mainly to used to bulk load data from external files to tables.( Only one way of loading, we cannot export back to file from database using sqlloader utility)
      DATAPUMP - Used to export & import the data from/to database. Mainly used to transfer database objects, metadata, and data from one database to another. The dump will be of binary format, hence only the datapump uitliy only can be used to import back the data.

  • @richardmadhan4124
    @richardmadhan4124 3 года назад

    Hi, I've loaded a data but the log, bad and discarded.txt files are not shown in the folder. In command prompt, it shows an error called 'Commit point reached - logical record count 4 and 5'. can you please help me?

    • @SivaAcademy
      @SivaAcademy  3 года назад

      Please check whether the table loaded with data

    • @richardmadhan4124
      @richardmadhan4124 3 года назад

      @@SivaAcademy yes the table is loaded but the log,bad,discarded files are not displayed

    • @SivaAcademy
      @SivaAcademy  3 года назад

      Please make sure you are checking in the same directory where you are executing the sql loader command from

    • @richardmadhan4124
      @richardmadhan4124 3 года назад

      Thank you, I've got it 👍

    • @SivaAcademy
      @SivaAcademy  3 года назад

      Welcome

  • @GopalRoy-nn6ft
    @GopalRoy-nn6ft 5 лет назад

    is it like autosys or controlm mq for db migration

    • @SivaAcademy
      @SivaAcademy  5 лет назад

      This is just a utility to load data from external files to database, and using scripting, this can be automated, and can be used...

  • @shaikrasheed2861
    @shaikrasheed2861 5 лет назад

    What is data sets and data patterns???

    • @SivaAcademy
      @SivaAcademy  5 лет назад

      The data format I have used in the example is simple comma separated data, however sql loader supports other formats too.
      We need to define the format in the control file, then sql loader will take care of loading the data.

  • @susmithareddy3084
    @susmithareddy3084 5 лет назад

    how to check the content of the control file?how to recreate control file in oracle database?

    • @SivaAcademy
      @SivaAcademy  5 лет назад

      I hope you are asking about the SQL Loader control file only. Its just a txt file only. You can open in any text editor like notepad etc, and you can edit and save the changes.

    • @susmithareddy3084
      @susmithareddy3084 5 лет назад

      @@SivaAcademy thanks

  • @chitrasrinivas7089
    @chitrasrinivas7089 4 года назад

    🙏👌

  • @NEHALSANTOSHKUMAR
    @NEHALSANTOSHKUMAR 4 года назад

    HI , How we can convert "Wed May 21 00:00:00 EDT 2008" as date and store using the SQL loader
    Column name
    street,city,zip,state,beds,baths,sq__ft,type,sale_date,price,latitude,longitude
    Record
    3526 HIGH ST,SACRAMENTO,95838,CA,2,1,836,Residential,Wed May 21 00:00:00 EDT 2008,59222,38.631913,-121.434879

  • @suyogthakare828
    @suyogthakare828 5 лет назад

    Sir how can we load fixed record file by using sql ldr the file like
    1s10
    2b20
    How i load these data

    • @SivaAcademy
      @SivaAcademy  5 лет назад

      @suyog, you can use fixed position method, rather than using delimiter.
      sample control file for your reference
      load data
      infile 'emp.txt'
      insert
      into table emp
      (
      field_1 position( 1:5),
      field_2 position(6:10),
      field_3 position(11:25)
      )

    • @suyogthakare828
      @suyogthakare828 5 лет назад

      @@SivaAcademy sir this position can give acoording to datatype length or something else

    • @SivaAcademy
      @SivaAcademy  5 лет назад +1

      Sample data for your reference.
      First 5 char is student id
      6th postition to 9th postition is Student Name
      10th to 12th postition is department name.
      10000SIVAECE
      10002RAVIEEE
      10003KINGCSE
      field_1 position( 1:5),
      field_2 position(6:9),
      field_3 position(10:12)
      You can refer to this link for exact syntax and a good example explained here
      www.oracle-dba-online.com/sql-loader-case-studies.htm

    • @suyogthakare828
      @suyogthakare828 5 лет назад

      Thank you sir

  • @bhushanpalse516
    @bhushanpalse516 2 года назад

    Sir make this video slow,not understanding in speed

    • @SivaAcademy
      @SivaAcademy  2 года назад

      ok bro, will try to make it slow for upcoming videos, pls stay tuned

  • @susmithareddy3084
    @susmithareddy3084 5 лет назад

    what is meaning of above two stms

    • @SivaAcademy
      @SivaAcademy  5 лет назад

      Please mention the statements here.

  • @gowrishankar1338
    @gowrishankar1338 5 лет назад

    hi sir what is mutating table error in oracle how to solve it.

    • @SivaAcademy
      @SivaAcademy  5 лет назад

      Hi Gowri,
      Thanks for asking, Its very interesting question, I will try to post a video soon.
      Thanks,
      Siva

    • @gowrishankar1338
      @gowrishankar1338 5 лет назад

      please upload it

    • @SivaAcademy
      @SivaAcademy  5 лет назад

      Sure :-)

  • @susmithareddy3084
    @susmithareddy3084 5 лет назад

    Difference between failed data and rejected data

    • @SivaAcademy
      @SivaAcademy  5 лет назад

      Failed Record - Records selected for insertion, but due to some error like data type mismatch or length etc, if sql loader unable to insert into target table, then those are failed records, moved to bad file.
      Rejected records - by specifying a condition in sql loader control file ( like"when deptno="10"), we are asking sql loader to load records that matches the condition. Any record thats not matched will be moved to discard file or you can say rejected data

    • @susmithareddy3084
      @susmithareddy3084 5 лет назад

      @@SivaAcademy thank you very much

  • @arunkumarrajbhar7417
    @arunkumarrajbhar7417 5 лет назад

    Please help sir how to solve
    ora-00900 invalid sql statement
    When execute procedure show this errors on Oracle 11g SQL developer mode

    • @SivaAcademy
      @SivaAcademy  5 лет назад +1

      Hi Arun, With just error message its bit difficult to say, unless we the see the like of code that throws this error.
      so, if possible you can share the code to my mail id, and mention the line number from where this error is being throwed.

  • @anonymoussocialissues3846
    @anonymoussocialissues3846 Год назад

    C:\DEMO>sqlldr (here which path i write ) control=control_file.ctl.txt

  • @shaikrasheed2861
    @shaikrasheed2861 5 лет назад

    what is difference between sql loader and etl?

    • @SivaAcademy
      @SivaAcademy  5 лет назад +1

      SQL Loader is an oracle specific UTILITY for loading the data from files into oracle tables.
      ETL is the process( in-fact a series of operation) of extracting , transforming and loading the data.
      SQL Loader is can be used as part of ETL process, however we cannot say SQLLOADER is full fledged ETL.
      There are many ETL tools, like informatica, Talend, ODI available in the market to specially do ETL operation end to end.