Oracle RAC and sql loader

Hi all
We have Oracle 10 g RAC on IBM AIX
Today I will be downloading the data in a table through sql loader.

I want that at the point only insert data that i am inserting all in the table, as I use the sequence on A particular column.

Problem is if I stop database, then I will not be able to insert data, and if I was not closing db value this column A is generated automatically when the application is running.

I have recommended that we should stop application with database connectivity and then I will fill insertion, but some people say no. Find another method

Should what I do?

Must sqlldr data have column has specific values?

Sequences do not guarantee free gap values. They guarantee the increase of the unique values.

If you have data that NEEDS to have a specific primary key, so it would be best to fill with sql and plsql instead of a sequence.

Tags: Database

Similar Questions

  • Need to understand the basics of Oracle RAC and grid technology, for training

    I need to understand the infrastructure Oracle RAC and grid, a manager / training perspective.

    I see links here and here , so a few questions:

    -What is the fundamental difference from the layman's point of view (for example, a Manager)?

    -What training options are available for a generic 11g DBA to learn this new technology? I've seen this course from a partner of Oracle ("" courses: Oracle 11 g: RAC and Grid Infrastructure Administration accelerated Release 2 ""), to a boat load of money, during 5 days I think. So we are looking for something a bit more reasonable (and accessible), for example, books, online, etc.

    WM Peck 1958 wrote:

    I need to understand the infrastructure Oracle RAC and grid, a manager / training perspective.

    I see the links here and here, so a few questions:

    -What is the fundamental difference from the layman's point of view (for example, a Manager)?

    -What training options are available for a generic 11g DBA to learn this new technology? I've seen this course from a partner of Oracle ("" courses: Oracle 11 g: RAC and Grid Infrastructure Administration accelerated Release 2 ""), to a boat load of money, during 5 days I think. So we are looking for something a bit more reasonable (and accessible), for example, books, online, etc.

    For a very basic definition, ACR is technology that is used by the database and IM is the infrastructure that makes the CAR work. In a response to the forum, this is probably all that can be said about the two. For a very long answer, you should read the links you cited.

    # 2, the course you are looking at is called accelerated because it combines two courses in one week training-RAC (4) and GI (3). So it's a day 7 curriculum that we would do in a 5 day course and who must justify its cost. But let me say, it's a really very good. But on the other side, it can be pretty intimidating to someone who does not already know these technologies. So I suggest that you send your team to each course individually and no doubt after doing some research. They can start to read the following books

    Pro Oracle Database 11g RAC on Linux

    https://www.mheducation.co.in/HTML/9781259004063.html

    And this link to doc,

    Online Oracle Database Documentation 11g Release 2 (11.2)

    Aman...

  • Difference between external tables and sql * loader

    Hello

    Could you please tell me the difference between
    tables external and sql * loader

    I have serached on the net but did ' get correct idea

    Please help me

    1 SQL LOADER can be run on the network (from any client computer), external tables can't

    2. return to the Oracle 9, external Tables could not load CLOB/BLOB (Oracle10 changed it)

    3 oracle 11 external tables have preprocessor, which is pretty dam characteristic cool - running essentially any OS command e.g. decompress before external table run. What's even better is the fact that the result of the operating system command is the source of the outer table, which means that there are no required temporary file (unzip the tracks and the output is the source of the external table). There are several ways to great use this - look at my blog for samples rare http://jiri.wordpress.com/2010/01/19/no-more-unix-scripts-in-11-2/

    4. as long as the 009 stressed, filed external load anything, they show just. Think of it more as load on request - it's great if you have old files archived and one or two users what to see content once a while

    5. external tables require no user access to the operating system, it is oracle environment pure - this may seem minor but for me it's huge. The fact that the ETL needs no special unix, no control file command and uses the simple SQL and DDL is nice and important

    6. external tables can load more text files, Oracle export dump files can be loaded, perhaps in the future more formats will be supported (hopefully all right excel format?)

    now the same thing to kill the myth - the TWO are EXACTLY the same when it comes to speed, I would actually drive of the external tables before will be faster because sql loader is old technology oracle doesn't really develops more

  • How Oracle Clusterware Oracle RAC and 3rd-party Clustering with them

    I have some questions on how Oracle, Oracle RAC and 3rd party clustering CLusterware fit between them.

    Q1. My understanding is that the Infrastructure Grid Oracle Clusterware is Oracle's Clustering solution that allows applications to cluster? that is, it is a general clusterware solution to compete with those already on the market. Is this correct?

    Q2. So why CARS is necessary for the Oracle cluster databases? An Oracle database is not just considered one application like any other? So why can not just use you GI / Clusterware to gather what you would do for any other application? Why so you need RAC to the Clusterware Summit?

    Q3. Is it is possible to combine an Oracle database using 3rd party of clustering and not use Oracle Clusterware and CARS at all that is can you say cluster, an Oracle database using say Sun Clusters, Clustering AIX or Linux native same clustering?

    Q4. If the RAC is purely for Oracle Cluster databases - what is with the title "Real Application Clusters"? What's real on this subject?, what to ask?

    Q5. I also read that RAC can use 3rd party of clustering. However if you decide that this is the case, then you need to install Oracle Clusterware when even (I think for interconnection must be created to allow the merger with Cache between Instances of node?).

    Is this the case?  If yes why never bore you with 3rd party clusters? -Since you will have to install Oracle Clustering anyway - and I probably have to license (all I can think about is the scenario that you already have a cluster of 3rd party in place and you decide that you need to use the same material for a database cluster)?

    All wisdom greatly appreciated,

    Jim

    Yes, with 10g, you had to use the CRS, and with 11g, to use the GI.  For 9i RAC, you would use Verits Cluster and Sun Cluster or anything else.

    11g RAC to GI.  As above, you can use clusterware extra if needed.  I gave the example above where to a 10g RAC we used the CRS to the cluster database/listener/vip and allowing groups of volume and filesystem in HACMP cluster.  File systems were not shared, but could switch to another node failure node, who has been treated by HACMP.  The volume of the groups containing the raw devices were shared volume groups.  For 11g, I never used extra clusterware on top of CRS and have always used ASM which is part of the GI.

    The application provider only certified database to run on 10g on AIX with raw devices.  What is strange about that?  It would be unusual that you probably expect to use ASM instead of raw devices, but it is what it is.

    See the following Note of Oracle for more information: using Oracle Clusterware with vendor Clusterware FAQ (Doc ID 332257.1)

    It is perhaps easier to explain if you can explain what problem you are trying to solve?

  • Oracle RAC and replacement of equipment

    Hello world

    next year our Oracle RAC (hardware) servers will be is more supported. We have a 2 node RAC (SE) running on Linux 5. For you, what is the strategy easier (and safer) to replace the equipment:

    • Reinstall complete with database exports / imports.
    • Adding new nodes to the cluster with new servers and delete 'old' (but it seems that the same version of operating system is required in accordance with the documentation).
    • Clone of the cluster according to the Oracle documentation on news servers.

    Thank you for all your ideas. I googled a bit, but I've not found much info.

    Carlos.

    • Adding new nodes to the cluster with new servers and delete 'old' (but it seems that the same version of operating system is required in accordance with the documentation).

    It's what I strive for. If your time with new nodes in the cluster is short (less than 24 hours), and you stay on the same distribution (i.e. OL5 to OL7), then several times, this isn't a problem. If you still have concerns and do not feel comfortable with this recommendation, then I'll recommend another avenue. I often used it when I was doing something similar for the production system was too critical to take no risk.

    1. Up new servers in a cluster. You can even start with the version of grid Infrastructure more later/more big who can save a future update maybe you.

      1. It will take a new OCR and voting disk new configuration.
    2. Attach the storage shared on the new cluster. For a short period of time, you will have storage mounted to both old and new.
    3. Install the RDBMS software on the new cluster. Wear on all the config files you might need more... tnsnames.ora, sqlnet.ora, etc..
    4. When you are ready to drop the database on the old cluster, cutting on the new cluster.
    5. Use "srvctl database add" to add the database to the new cluster.
    6. Use 'srvctl add instance' to add the instances to the new cluster.
    7. (Optional but normally a good idea), use 'srvctl add service' to add services to the new cluster.
      1. Steps 5 and 6 above usually use the same name of db, same instance names, same service name.
    8. You now have the database running on the new hardware. Stop the old servers

    The only other sticking point would be handling the SCAN and traditional VIP. When I made this drive, I usually my network guy change the SCAN VIP and traditional dignitaries to be alias in DNS that point to the new VIP.

    If you do your homework and have everything ready to go, the downtime can be less than 15 minutes for this approach.

    See you soon,.
    Brian

  • Difference between Oracle database and SQL or SQL Developer +?

    Hello
    I am very very new to Oracle... Only yesterday I installed Oracle 11 G for learing... I found to create an Oracle database

    Oracle Db11gHome1 = > Configuration and Migration Tools = > Database Configuration Wizard
    ... blah... blah... blah... Success... I created...

    But I found the menus

    Oracle Db11gHome1 = > application development = > SQL Developer
    Oracle Db11gHome1 = > = application development > SQL Plus

    And so I get confused... I know SQLSERVER 2008... etc... to create databases... So the above said two is for what purpose?
    Anyone can show me a route for this spirit of quarrels?

    Thank you

    Hello

    Welcome to the world of Oracle.

    SQL Developer: http://www.oracle.com/technetwork/developer-tools/sql-developer/what-is-sqldev-093866.html

    SQl more: http://docs.oracle.com/cd/B13789_01/server.101/b12170/qstart.htm

    These docs will give an initial advance for these tools.

    Something in common between these two tools is: both are used to access the Oracle database.

    Thank you
    Navneet

  • Oracle RAC and HACMP

    Hi all

    I want to install Oracle 11 g R2 on AIX 6.1.

    After doing some research, I found that there are some documents stating that HACMP does not have to be installed during the installation of Oracle RAC.

    What is the use of HACMP? It is optional? where will be installed and where not?

    Please can you give me details are contiguous HACMP and how it affects RAC ORACLE 11g R2 installation on AIX?

    Kind regards

    NB wrote:
    Hi all

    I want to install Oracle 11 g R2 on AIX 6.1.

    After doing some research, I found that there are some documents stating that HACMP does not have to be installed during the installation of Oracle RAC.

    What is the use of HACMP? It is optional? where will be installed and where not?

    Please can you give me details are contiguous HACMP and how it affects RAC ORACLE 11g R2 installation on AIX?

    Kind regards

    Hello

    HACMP is vendor clusterware (technology IBM) it is cluster high availability Cluster Multi Processing. During the installation of Oracle RAC it must installed on top of the vendor clusterware.

    HACMP comes in the room when you use a logical volume gross and it must be managed by HACMP.

    Since the 10g, it is not mandatory to use HACMP so that you can choose not to use it and let the Oracle to manage all the services cluster

    Hope this helps

    See you soon

  • core for Oracle RAC and grid on Linux x 86-64 RHEL 5.5 Infrastructure

    The manual "Oracle Grid Infrastructure Installation Guide 11 g Release 2 (11.2) for Linux.
    Chapter 2.8.2 list software requirements for Linux x 86-64 platforms
    Table 2-8, x 86-64 Linux operating system kernel requirements

    States, whether it is supported:
    Red Hat Enterprise Linux 5 Update 2, kernel 2.6.18 or LATER version
    Red Hat Enterprise Linux 5 update 5 with kernel unbreakable Enterprise for Linux, the kernel 2.6.32 or later version

    http://download.Oracle.com/docs/CD/E11882_01/install.112/e17212/prelinux.htm#BABFDJJF

    My doubts are (for linux x86_x64):
    "Unbreakable Enterprise Kernel for Linux" is really mandatory for RHEL 5.5 and Oracle Grid Infrastructure or is it possible to use RHEL 5.5 with RHEL kernel.
    Oracle RAC Database 11 g 2 is supported on RHEL 5.5 with RHEL kernel supported?

    Thank you

    Pavang is right.

    I opened a SR and Oracle Support they confirmed she RHEL 5.5 with RHEL kernel is supported (minimal support). but Oracle is highly recommend to deploy the nucleus of the unbreakable Company Oracle.

    Some reasons for their recommendations:
    http://public-yum.Oracle.com/
    The core Oracle Unbreakable Enterprise for Linux is the standard kernel used with Oracle products. The build
    and QA Oracle database systems and other Oracle products use the core of Oracle Unbreakable company
    for Linux exclusively. The core Oracle Unbreakable Enterprise for Linux is also the kernel used in Oracle
    Exadata and Oracle Exalogic systems. Oracle Unbreakable Enterprise Kernel for Linux is used in all benchmarks
    tests on Linux in which Oracle participates, as well as in the setup of valid Oracle for x 86-64.

    Thank you.

  • What is the difference between Oracle RAC and Oracle Clusterware?

    Hi all, it's maybe a stupid question, but I read the documentation and still do not understand what is the difference between RAC and Clusterware.
    Can someone explain it to me?

    Thanks in advance!

    ACR is part of database software Oracle database option should be the database mode cluster; See http://download.oracle.com/docs/cd/E11882_01/server.112/e16508/glossary.htm#CNCPT2076.

    Clusterware is a separate required to run the Oracle database in cluster mode: you can use Oracle Clusterware without Oracle database, but you cannot use Oracle Database with the option CARS without Oracle Clusterware.
    See http://download.oracle.com/docs/cd/E11882_01/rac.112/e16794/intro.htm#BABCHEEE.

    Edited by: P. Forstmann on November 19. 2010 19:11

    Edited by: P. Forstmann on November 19. 2010 19:11

  • APEX and SQL Loader

    Is it possible to use SQL within the APEX charger? I want to have a table editing a csv file... normally I would use the WWV_FLOW_FILES table, but with this file, it mixes tabs and comma in the data, in order to create a reliable upload script is becoming a nightmare. I would like to take advantage of the sql loader so I can specify the delimiter, optional quotes etc. The file will be in the same location on the file system, so a regular and automated process would be perfect.

    If so, does anyone know of a tutorial that could help out me?

    If you have a chance, you can send me the error?

    Thank you
    Tyler

  • Oracle RAC Concept - load balancing

    Hi all

    I have a question about the Oracle RAC and how it balances the load.
    What I know about Oracle RAC that it load balancing between his node, so if a new session is connected to the database it will run on the node that has less load.
    If I have an application that connects to the database with little number of sessions and a few sessions are huge (huge load) implementation process while other sessions are running small processes (in terms of load).

    So here's an example scenario that I request a response to this one:
    If am having a two node RAC database.

    My application connected to this database RAC wants to run three processes P1, P2 and P3, each will have a session correlatively S1, S2 and S3
    Let's say that P1 will take 60% of database resources (memory) and P2 P3 1% and 1%.
    So my question is this a sessions load balancing or load balancing process? So in this case and at random (Managed by ORACLE RAC) S1 is connected to node 1 and it uses the resources of node 1 so the load on node 1 will be 60%, so when S2 and S3 must connect it will go to node 2 from node 1 is loaded. in this case I'll have 1 node using 60% of it's resources (because of S1 that runs P1) while node 2 uses only 2% (because of the S2 and S3 running P2 and P3).
    Is - this operation of Oracle RAC? or it S1 (60%) load balance between nodes 1 and 2?

    I ask this question because my application is not users, so it will connect to the database with the small number of sessions, and 1 session of them can run a huge process while the other runs of small processes.
    So in this case, how RAC takes stock of loading?

    Kind regards

    Check out more excellent document on the management of the CAR of James Morle connections:
    http://www.scaleabilities.co.uk/index.php/view-details/whitepapers/12-RAC_Connection_Management.pdf.html

    Registration is required, but free...

    -Mark

  • Oracle RAC ASM issues SQLLoader

    One of our clients wants to use Oracle RAC ASM for our application, I just want to know if there will be transactions of validation in two phases and SQL * Loader broadcasts in ASM.

    Oracle 10 g database is

    ASM works only at the level of the storage layer and has nothing to do with:
    -the distributed transactions
    -executable client that connects to the database instance: SQL * Loader, SQL * Plus, etc.

    RAC has also nothing to do with distributed transactions: a RAC database is a single database with multiple instances, but always a single database; There is no need to use distributed transactions because you have a RAC database.

    Edited by: P. Forstmann on 24 Feb. 2011 13:27

    Edited by: P. Forstmann on 24 Feb. 2011 13:31

  • SQL Loader - null is not recognized

    Hi, I have a very strange question that I would really appreciate help with.

    We have the file following sql ctl charger that works very well.

    OPTIONS (DIRECT = TRUE, PARALLEL = FALSE, ERRORS = 0, BINDSIZE = 50000, LINES = 10000, READ)

    SIZE = 65536)

    DOWNLOAD THE DATA

    CHARACTERSET WE8MSWIN1252

    INFILE 'file1' "STR X ' 0 and has.

    READBUFFERS 4

    IN THE TABLE test.tabl1

    TRUNCATE

    REACTIVATE THE DISABLED_CONSTRAINTS

    FIELDS

    (

    POSITION TANK (01:25) "DT_TM_ADDED" "DECODE (SUBSTR (: DT_TM_ADDED, 13.2), null,).

    Substr(:dt_tm_added,1,11) | "(00:00:00 ',: DT_TM_ADDED) ' etc. .

    We must now change our ctl files so the fields are completed by |

    It now looks like this.

    FIELDS TERMINATED BY ' |'

    (

    "DT_TM_ADDED" TANK "DECODE (SUBSTR (: DT_TM_ADDED, 13.2), null, substr(:dt_tm_add)).

    Ed, 1, 11). 00:00:00',TRIM(:DT_TM_ADDED)) ", etc.

    This works great besides when the DT_TM_ADDED, 13.2 has a value zero. Its not picking up that it is worth zero. If I change the statement as follows using a ' ' instead of null, IE (: DT_TM_ADDED, 13.2), ' ', substr,... it works very well.


    Am I missing something really obvious here?

    Any help would be really appreciated.

    Morgan Library has great demos on SQL LOADER.

    Demo 6

    "Use keywords NULLIF and DRAFTS to manage a length no strings loaded into numeric columns. Also note the use of the Direct path load in the control file (DIRECT = TRUE). »

    Link: Oracle 12 c SQL * Loader

    It could be that useful...

  • SQL * Loader Control path

    Hi all


    I created a sql * simultaneous program of charger with a parameter to pass the path of the data file with file name. Now my question is how does the program know that the control file is in a specific path.

    For example, I kept the control file in the $XXX_TOP/bin and the data file in the $XXX_TOP.

    I have now in the program parameter, pass the path of the data file, but how the program takes the path of the default control file $XXX_TOP/bin.

    Thanks and greetings
    El M

    I created a sql * simultaneous program of charger with a parameter to pass the path of the data file with file name. Now my question is how does the program know that the control file is in a specific path.

    For example, I kept the control file in the $XXX_TOP/bin and the data file in the $XXX_TOP.

    I have now in the program parameter, pass the path of the data file, but how the program takes the path of the default control file $XXX_TOP/bin.

    You can provide information on the data file in the control file, or switch the full directory path and the name of your file as an argument. Concurrent Manager passes the "data = (full path of the data file)" token at query execution time. Without a data file name, the concurrent manager ignores this token and SQL * Loader uses the data file name specified in the control file.

    http://docs.Oracle.com/CD/E18727_01/doc.121/e12897/T302934T458254.htm#4163833

    The control file must be placed in the directory XX_TOP/bin $.

    http://oracleapplications99.blogspot.ca/2011/12/sqlloader-examples.html
    http://imdjkoch.WordPress.com/2010/08/12/registering-SQL-Loader-as-a-concurrent-program/
    http://erpschools.com/articles/SQL-Loader

    Thank you
    Hussein

  • SQL * Loader: load data in the format MM/DD/YYYY HH: mi: SS PM

    Please advice how to load data in the format MM/DD/YYYY HH: mi: SS PM in an Oracle Table using SQL * Loader.

    -Should what format I give in the control file?
    -What would be the type of column to create the table to load data.

    Examples of data below;

    MM/DD/YYYY HH: MI: SS PM

    14:40:20 09/12/2012
    29/11/2011 11:23:12

    Thanks in advance
    Avinash

    Astr0 wrote:
    Hello Srini,

    I tried with the date of creation as DATE data type, but I had an error like

    ORA-01830: date format picture ends before converting entire input string
    CREATION_DATE               "TO_CHAR(TO_DATE(:CREATION_DATE,'MM/DD/YYYY HH:MI:SS AM'),'DD-MON-YYYY HH:MI:SS AM')",
    

    Try

    CREATION_DATE "to_Date(:CREATION_DATE,'yyyy-mm-dd hh:mi:ss AM')",
    

    Does that help? It is charging correctly in the timestamp column

    REDA

Maybe you are looking for