need some notes about sql loder

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sonajain
    New Member
    • Jul 2006
    • 12

    need some notes about sql loder

    Hi,
    i want to know what is sql loader and how is work, and how to export full database and import it again .plz send me the snytex. waiting fro reply asap.
    from
    sona
  • goudelly
    New Member
    • Sep 2006
    • 13

    #2
    Hi,

    The sql*loader is a utility you load the text,csv data into you oracle database.

    The Ex :

    emp.ctl (control file)

    options(direct= true)
    load data
    infile 'd:\utl_dir\emp 2.txt'
    badfile 'd:\utl_dir\emp .bad'
    discardfile 'd:\utl_dir\emp .dsc'
    into table emp
    fields terminated by "|"
    trailing nullcols
    (empno,ename.., ...)

    from dosprompt : sqlldr scott/tiger control=emp.ctl

    It will insert the data from emp2.txt file to oracle emp table.

    For exporting the oracle database :

    exp userid=system/manager@orcl file=c:\backup. dmp log=c:\backup.l og full=y rows=y owner=scott;

    It will export the scott schema objects into backup.dmp file.

    For more gothrough the export utility


    For Import :

    imp userid=system/manager@orcl fromuser=scott touser=scott file=c:\backup. dmp log=c:\backup.l og

    It will import the data from backup.dmp to oralce database.

    Thanks,

    Mohan Reddy G



    Originally posted by sonajain
    Hi,
    i want to know what is sql loader and how is work, and how to export full database and import it again .plz send me the snytex. waiting fro reply asap.
    from
    sona

    Comment

    • sonajain
      New Member
      • Jul 2006
      • 12

      #3
      [QUOTE=goudelly]Hi,

      Hi, mohanji
      Thanks for your help. it really help me in my ocp exams

      from
      sona

      Comment

      • dwhramana
        New Member
        • Jan 2007
        • 1

        #4
        http://www.oreilly.com/catalog/orsqlloader/chapter/ch01.html#43545

        go to this u will find good description

        rams

        Comment

        Working...