SQL Loader and Oracle 11g

Hello

IM receiving a sqlldr: not found error. IM is going to discuss with our system of administration of the situation. Before I wanted to make sure that SQL Loader (sqlldr) is an add-on available for customer Oracle 11. A colleague mentioned SQLLDR maybe isn't available as an add-on in the Oracle 11 client and that we should rather use IMPORT/EXPORT. Is that a true statement?

Can someone please clarify these questions for me?

Thanks a bunch!

SQL * Loader is certainly available in 11.1 or 11.2 full client install. It may or may not be a component that is installed by default according to the type of installation you choose during installation. But you can always go back and install this component.

If you mean the instant customer, I'm not sure that SQL * Loader or import and export work with the Instant Client.

And just to the point, if you are using 11g, you usually would using external tables rather than SQL * Loader.

Justin

Tags: Database

Similar Questions

  • data replication with ODI between SQL SERVER and ORACLE

    Hello world
    First of all, I want to migrate database SQL SERVER and ORACLE DB tables.
    And then make online (synchronous) replication from SQL SERVER to ORACLE using ODI.

    I have not used before ODI.
    How to use the ODI for this?

    1. create a master repository and connect to the "topology Manager.
    2. in the topology Manager, you must configure the following
    2.1 create a data server for the Oracle under Oracle database in the physical connection
    2.2. create a database for the SQL Server database server in SQL Server in the physical connection. To do this, the jdbc for sql server driver.
    2.3 implement the logical connection and frame
    2.4 create a workrepository in the topology manager repositories tab
    3. connect to the designer and follow these steps
    3.1 create a template for the SQL Server source and reverse (import) the datastores (tables) to the model.
    3.2 the value of the model for the target of the Oracle
    3.3 create a (mapping) interface, under the table in schema define the source and then add it to the target and bind
    3.3 on the flow tab, you must set the Modules (KMs) of knowledge to perform the load. You must have imported the KMs before creating the interface.
    3.4 in IKM put 'create table traget' to 'yes '.
    4 run the interface to load data from SQL to Oracle Server

    Thank you
    Fati

  • Interlink with Sql server and Oracle

    Hello

    We have some data in SQL Server.
    We need to link SQL Server and Oracle Database. To make reports in Oracle Apex.

    Please someone guide me to interconnect with Oracle database

    Kind regards
    Thérèse

    Therese,
    You can find more information on gateways in this available in My Oracle Support note-

    Note to master for the Oracle Gateway (Doc ID 1083703.1) products

    Kind regards
    Mike

  • Different output for the same query in SQL Server and Oracle

    I have two tables table1 and table2

    -table1 has two columns c1 int and varchar c2. There are no constraints added in it. It contains data as shown below

    C1 c2
    -------------------
    d 6
    5 d
    102 g
    6%
    f 103
    5.
    501 j
    1 g
    601 n
    2 m

    -table2 has only a single column c1 int. There is no added in constraints. It contains data as shown below

    C1
    ----
    6
    1
    4
    3
    2

    now when I run below, given the query in sql server and oracle it gives me different results

    Select *.
    FROM table1
    table2 on table2.c1 = table1.c1 inner join (SELECT ROW_NUMBER() (any ORDER by ASC c1) AS c1 from table2)

    output of SQL server
    ------------------------
    C1 c2 c1
    --------------------------------
    1 g 1
    2 m 2
    3 h 3
    4 g 4
    5 d 5


    release of Oracle
    ----------------------
    C1 C2 C1
    ---------------------------------
    5 d 5
    4 g 4
    3 h 3
    1 g 1
    2 m 2


    If you notice the first column in the two outputs. It is sorted in sql server and no oracle.

    Why he behaves differently in oracle? Is there a way I can fix this problem in oracle?

    Thank you
    Jigs

    It is NOT a behavior "differently" in Oracle; you did not specify just an order that you expect of your results, so you'll get output in what order the fantasies of the database showing (ie. no guaranteed order). It is an artifact of the way the database chooses to collect the data and databases (or same sets of data within the same database) can and will most likely behave differently.

    Same SQL Server will not be guaranteed to always get your data in an orderly manner if you exclude the order by clause, even if you think that there always display the data in an orderly manner.

    Your solution is to add an order by clause, in the TWO databases, to force the order of the data output.

  • SQL Loader and batch ID

    Hi all

    In our application, we allow the user to download data using the worksheet in the excel user interface.

    We use a PHP script in the user interface and using SQL Loader to load the data of insert_table excel sheet.

    The insert_table has a primary key.


    Here, my question is, is it possible to put some package for each download id in the table in an automatic way?

    While we can easily extract data using the code batch

    We use Oracle 11 g.

    What is load a constant value, in which case you may as well use 815 constant in your control file. If you want to automatically increment the value of each batch, then you must use a different method.

    Please see the example below. Before each data load, he loads the next value in the sequence into a separate table and then selects this value while loading data. Note that SQL * expression of charger that uses select must appear in parentheses in the double quotes.

    SCOTT@orcl_11gR2> host type test1.dat
    1 Prod1
    2 Prod2
    3 Prod3
    4 Prod4
    5 Prod5
    
    SCOTT@orcl_11gR2> host type test2.dat
    6 Prod6
    7 Prod7
    8 Prod8
    
    SCOTT@orcl_11gR2> host type batch.ctl
    options(load=1)
    load data
    replace
    into table batch_tab
    (batch_id expression "test_seq.nextval")
    
    SCOTT@orcl_11gR2> host type data.ctl
    load data
    append
    into table temp_table
    fields terminated by whitespace
    trailing nullcols
    (p_id,
    p_name,
    batch_id expression "(select batch_id from batch_tab)")
    
    SCOTT@orcl_11gR2> create table temp_table
      2    (p_id      number primary key,
      3     p_name    varchar2(6),
      4     batch_id  number)
      5  /
    
    Table created.
    
    SCOTT@orcl_11gR2> create sequence test_seq
      2  /
    
    Sequence created.
    
    SCOTT@orcl_11gR2> create table batch_tab
      2    (batch_id  number)
      3  /
    
    Table created.
    
    SCOTT@orcl_11gR2> -- first load:
    SCOTT@orcl_11gR2> host sqlldr scott/tiger control=batch.ctl log=batch1.log
    
    SQL*Loader: Release 11.2.0.1.0 - Production on Fri Apr 19 17:16:33 2013
    
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    
    Commit point reached - logical record count 1
    
    SCOTT@orcl_11gR2> host sqlldr scott/tiger control=data.ctl data=test1.dat log=test1.log
    
    SQL*Loader: Release 11.2.0.1.0 - Production on Fri Apr 19 17:16:33 2013
    
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    
    Commit point reached - logical record count 5
    
    SCOTT@orcl_11gR2> select * from batch_tab
      2  /
    
      BATCH_ID
    ----------
             1
    
    1 row selected.
    
    SCOTT@orcl_11gR2> select * from temp_table
      2  /
    
          P_ID P_NAME   BATCH_ID
    ---------- ------ ----------
             1 Prod1           1
             2 Prod2           1
             3 Prod3           1
             4 Prod4           1
             5 Prod5           1
    
    5 rows selected.
    
    SCOTT@orcl_11gR2> -- second load:
    SCOTT@orcl_11gR2> host sqlldr scott/tiger control=batch.ctl log=batch2.log
    
    SQL*Loader: Release 11.2.0.1.0 - Production on Fri Apr 19 17:16:33 2013
    
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    
    Commit point reached - logical record count 1
    
    SCOTT@orcl_11gR2> host sqlldr scott/tiger control=data.ctl data=test2.dat log=test2.log
    
    SQL*Loader: Release 11.2.0.1.0 - Production on Fri Apr 19 17:16:33 2013
    
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    
    Commit point reached - logical record count 3
    
    SCOTT@orcl_11gR2> select * from batch_tab
      2  /
    
      BATCH_ID
    ----------
             2
    
    1 row selected.
    
    SCOTT@orcl_11gR2> select * from temp_table
      2  /
    
          P_ID P_NAME   BATCH_ID
    ---------- ------ ----------
             1 Prod1           1
             2 Prod2           1
             3 Prod3           1
             4 Prod4           1
             5 Prod5           1
             6 Prod6           2
             7 Prod7           2
             8 Prod8           2
    
    8 rows selected.
    
  • SQL Loader for Oracle instant client 11

    I have a problem sqlldr.exe running on a machine having Oralce 11.1.0.6 instant client installed. I already copied all the DLL files it says that he needs and the whole repertoire of a machine with installation complete of RDBMS. This is the error I get:

    + SQL * Loader-704: Internal error: ulconnect: OCIEnvCreate [-1] +.

    I have no problem to connect what either using sqldeveloper. Are there files or the steps I'm missing?

    Thank you
    -Chris

    The add-on only supported for the moment customer is sqlplus, integration of other utilities is not supported. You can just mix DLLs of different software. There are a few documents on workarounds, for example:

    http://www.nyoug.org/presentations/2007/200703_Ji_Instant%20Client.PDF

    But no guarantee that it works and not support of Oracle.

    Werner

  • Problem with Oracle 9i and Oracle 11g

    Hello
    I have 2 Installation of Oracle: Oracle 9i client and Server Oracle 11.2
    Oracle 9i to: C:\oraclient9\
    Oracle 11g: C:\app\a.l\product\11.2.0\

    I have an application that has to connect to Oracle via ODBC, but whenever I try to connect looking for odbc Oracle 9i and I get this error:
    ORA-12541: TNS no listener

    If I try to boot with sqlplus to: start-> run-> sqlplusw get Oracle 9i version

    If I'm running sqlplus from start-> program-> Oracle 11-> I can connect properly.

    If I try to create a new ODBC it always plug the Oracle version 9i.

    I tried:
    Set ORACLE_HOME=C:\app\a.l\product\11.2.0\dbhome_1
    Set ORACLE_SID = ORCL

    but when I try: sqlplus / as sysdba I get this error:
    14 error initializing SQL * more
    SP1 file < lang > .msb not found message
    SP2-0750: you may need to set ORACLE_HOME in your Oracle software directory

    If I try to boot with sqlplus to: start-> run-> sqlplusw get Oracle 9i version with the error:
    ORA-12541: TNS no listener

    Variables environment variables in the path are:
    C:\oraclient9\bin; C:\Program Files\Oracle\jre\1.3.1\bin; C:\Program Files\Oracle\jre\1.1.8\bin; C:\app\a.l\product\11.2.0\dbhome_1\BIN; C:\app\a.l\product\11.2.0\dbhome_1\bin;%SystemRoot%\System32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SystemRoot%\system32\WindowsPowerShell\v1.0\; C:\Program Files\Sybase\SQL Anywhere 9\win32. C:\Program Files\Sybase\Shared\win32; C:\Program Files\Sybase\SQL Anywhere 9\drivers; C:\Program Files\Sybase\Shared\Sybase 4.2 Central; c:\Program Files\Microsoft SQL Server\90\Tools\binn\; C:\Progra~1\XRay



    tnsnames 11g:
    # tnsnames.ora Network Configuration File: C:\app\a.l\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    
    LISTENER_ORCL =
      (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    
    
    ORACLR_CONNECTION_DATA =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
        )
        (CONNECT_DATA =
          (SID = CLRExtProc)
          (PRESENTATION = RO)
        )
      )
    
    ORCL =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = orcl.domopenplan.local)
        )
      )
    tnsnames 9i:
    # TNSNAMES.ORA Network Configuration File: C:\oraclient9\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    
    ORCL.DOMOPENPLAN.LOCAL =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
        )
        (CONNECT_DATA =
          (SERVICE_NAME = orcl.domopenplan.local)
        )
      )
    11g listener.ora:
    # listener.ora Network Configuration File: C:\app\a.l\product\11.2.0\dbhome_1\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = CLRExtProc)
          (ORACLE_HOME = C:\app\a.l\product\11.2.0\dbhome_1)
          (PROGRAM = extproc)
          (ENVS = "EXTPROC_DLLS=ONLY:C:\app\a.l\product\11.2.0\dbhome_1\bin\oraclr11.dll")
        )
        (SID_DESC =
          (GLOBAL_DBNAME = orcl.domopenplan.local)
          (SID_NAME = orcl.domopenplan.local)
          (ORACLE_HOME = C:\app\a.l\product\11.2.0\dbhome_1)
          (PROGRAM = extproc)
          (ENVS = "EXTPROC_DLLS=ONLY:C:\app\a.l\product\11.2.0\dbhome_1\bin\oraclr11.dll")
        )
      )
    
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
          (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.2.103)(PORT = 1521))
        )
      )
    
    ADR_BASE_LISTENER = C:\app\a.l
    Do you have any idea how I can create a new ODBC to connect to Oracle 11g?

    Thanks in advance!

    opening for the system control window Server DB & question OS command sequence

    lsnrctl status
    set
    lsnrctl service

    COPY orders & results then PASTE all come back here

  • Hyperion at level 11.1.1.3 to Hyperion 11.1.2.3 with change of database SQL server and Oracle DB

    I am upgrading the Hyperion 11.1.1.3 environment in new infrastructure which include (HFM, Shared service, FDM and Hyperion reporting). The 11.1.1.3 had SQL Server repository, now we are making everything on the Oracle database repository. Can I directly use the LCM to migrate all of the artifacts of 11.1.1.3 11.1.2.3. Can someone advise how best to do the migration. Y at - it something I should look. Something that fail often I should look.

    There are a number of ways to achieve what you're trying to do and it may depend on the number of products/applications and the complexity of the environment.

    There are also ways to migrate to a SQL database to Oracle with different success rates depending on what is involved.

    See you soon

    John

    http://John-Goodwin.blogspot.com/

  • Planning for SQL server and Oracle db

    Hi friends

    We intend to improve our environment Hyperion of 9.3.3 to 11.1.2.2. and we will go from SQL server as our RDBMS Oracle.

    If we change DBMS, do we have to rebuild the total application or is there an easy way to migrate from sql server to Oracle

    Please suggest

    Thank you

    Upgrade the application to 11.1.2.2 while remaining on the SQL Server, then use LCM to export the application, remove the application, update the data source to point to Oracle, use LCM to import.

    See you soon

    John

    http://John-Goodwin.blogspot.com/

  • How to migrate from SQL server to oracle 11g

    Hello
    I have a lot of tables in sql server, and I want to connect them in oracle

    Welcome to the forum,

    Hello
    To create a link Oracle with SQL Server follow these steps:
    1. install Oracle ODBC drivers on the server (your Oracle database local) who will have access to the remote SQL Server database by using the database link.

    2. configuration of the ODBC connection on the local Oracle using the Windows ODBC Data Source Administrator database

    3 test pilots to verify ODBC connectivity is made to the SQL Server database.

    4. make sure that your global_names parameter is set to False.

    5. configure Oracle heterogeneous services by creating an initodbc.ora file in the Oracle database.

    7 change the Listener.ora file.

    SID_NAME is the DSN for the remote database.
    ORACLE_HOME is the real path to the file at Oracle.
    PROGRAM says Oracle heterogeneous services.

    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = Cas30C) - enter the DSN on this line
    (ORACLE_HOME = c:\oracle10gdb)--Inscrivez your Oracle home
    (Program = hsodbc)) )

    8. change the Tnsnames.ora file. It's accessed by users Oracle database installation connect for ODBC drivers

    (DESCRIPTION =
    (ADDRESS_LIST =
    (Address = (PROTOCOL = TCP)
    (HOST =
    -(X server)
    (PORT = 1521))) -Enter the port on which the server x installing Oracle
    -is listening
    (CONNECT_DATA = (SID = Cas30c)) - enter the name of the DSN
    (HS = OK)-enter this value. He indicates to Oracle to use transfer services
    )

    9 recharge the listener on a local Oracle database

    10. create a link of database on the local Oracle installation that accesses the heterogeneous connection, which, in turn, connect to SQL Server.

    11 execute SQL Select Server from the Oracle installation using the database link

    Thank you
    BelMan :)

  • Installation guide for BPM SOA Suite and Oracle 11g

    Does anyone know of a good installation guide for a new installation of the following SOA and BPM of Oracle 11 g (Windows 64 bit)?

    I'm looking to the 'Setup Guide quick for Oracle SOA Suite and Oracle Business Process Management Suite 11 g Release 1"(http://download.oracle.com/docs/cd/E14571_01/install.1111/e14318.pdf), but it is a bit dated (April 2010) and I see that is missing a few steps.

    Thank you

    Take a look at the for Oracle SOA Suite 11 g 1 material (http://www.oracle.com/technetwork/middleware/soasuite/overview/quickstartguidesoasuite11gr1ps3-313245.pdf) Quick Start Guide.

    The steps that do not appear in the document you mentioned are included in this document. It takes you through the necessary extra step for the installation of Oracle BPM. Although for 11.1.1.4, it works very well for implementing 11.1.15 in a DEV environment.

    Dan

  • SQL * loader and sdo_geometry field

    Is it possible to load coordinates longitude/latitude of a flat file directly into a field sdo_geometry with sql * loader? If so, does anyone have an example? I just want to create point functions.

    Thank you
    David

    David,
    Section 4.1.2 of the space Guide has examples for this:

    DOWNLOAD THE DATA
    INFILE *.
    TRUNCATE
    CONTINUEIF NEXT(1:1) = ' # '.
    POINT OF TABLE
    FIELDS TERMINATED BY ' |'
    TRAILING NULLCOLS)
    GID INTEGER EXTERNAL,
    GEOMETRY COLUMN OBJECT
    (
    SDO_GTYPE INTEGER EXTERNAL,
    COLUMN SDO_POINT_TYPE OBJECT
    (X FLOAT EXTERNAL,
    THERE FLOAT EXTERNAL)
    )
    )

    BEGINDATA
    1. 2001 | -122.4215 | 37.7862 |
    2. 2001 | -122.4019 | 37.8052 |
    3. 2001 | -122.426 | 37.803 |
    4. 2001 | -122.4171 | 37.8034 |
    5. 2001 | -122.416151 | 37.8027228 |

    You must add the SRID field if you want to add the SRID for geometry.
    Or you can do this with SQL when the data is loaded into the DB.

    Siva

  • Oracle SQL Developer 1.5.4 and Oracle 11g

    Support the developers use SQL 1.5.4 of Oracle 11 g?

    I think that the State of docs so

    http://download.Oracle.com/docs/CD/E12151_01/doc.150/e12153/install.htm#CIHDHHHJ

    HTH
    Srini

  • SQL Loader works in 11g?

    Hello

    Work of charger of SQL using the 11g client?, my RS is Windows XP, what version of client to do, because I look in the BIN folder and not found (is installed elsewhere)

    using Oracle Database 11 g Enterprise Edition Release 11.2.0.4.0

    Yes. May be it was not installed with your real client components.

    You can ask your operating system-admin to add it to the installation of the client.

  • Basic parameters of SQL defining in oracle 11g env plan

    Hi Experts,
    We have recently improved 10 g for the version of database 11g folloing on hardware 'SUN SPARC ENTERPRISE T5440 SERVER'

    Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production
    PL/SQL Release 11.2.0.3.0 - Production
    CORE Production 11.2.0.3.0
    AMT for Solaris: 11.2.0.3.0 - Production Version
    NLSRTL Version 11.2.0.3.0 - Production

    Please can you comment on the setting that we set as below.
    If you see a problem with this setting.

    NAME VALUE ISDEFAULT
    FALSE FALSE OPTIMIZER_CAPTURE_SQL_PLAN_BASELINES
    optimizer_use_sql_plan_baselines TRUE TRUE

    Target memory is set as 0
    Memory max target is defined as 49280M
    Size max of SGA is defined as 49280M
    SGA_target is defined as 44G
    PGA_aggregate_target is defined as 4G

    So now, when my developers will keep on adding changes, plans will be less than optimal.

    Why not optimal? Optimizer generates plan based on statistics. If the statistics are fresh, in most cases the plan will be optimal. But in some cases, for complex queries, plan may be not optimal. In this case, you can manually create fixed plan with outline, profile sql or sql base plan.

    As long as you recommend, that I should change the value of the parameter optimizer_capture_sql_plan_baselines to TRUE and must schedule a task that will evaluate and evolve the lines plan basic sql newly captured.

    Yes, you can leave data base automatically resolve these issues in this way. In addition, you can use "automatic sql tuning task" that will generate and accept the sql Profiler. But in this case DBA can lose control of what's going on. Bad plan may be caused by an error of the developer. The best way is to test each change in the QA system before it will be applied on production.

    Another question. Since I updated memory_target zero and set parameters of the SGA to a zero, I think I do not allow Oracle to decide what is the best setting it shoud choose automatically. You are recommended to set all the parameters of the SGA to zero and the MEMORY_TARGET value to a non zero value? current setting is as below.

    Target memory is set as 0
    Memory max target is defined as 49280M
    Size max of SGA is defined as 49280M
    SGA_target is defined as 44G
    PGA_aggregate_target is defined as 4G

    It depends on the workload, amount of the session. For example, if consuption pga and sga is constant, there is no need to follow to the memory usage, therefore, you can use sga_target and pga_aggregate_target. If the workload varies during the day, requiring more sga the morning and less time use memory_target order to always use all the memory. If you want to limit the total PGA in order to have still large SGA, use not memory_target. For example, by default a session cannot use more than 200 MB of pga. Seen 100 simultaneous sessions requiring a great pga database can use up to 20 GB of memory that will be used on the buffer cache, causing the performance impact.

Maybe you are looking for